тест
This commit is contained in:
1 parent
7da93d5194
commit
fc826eab08
39 files changed
+44
-44
No files matched your search
+6
@@ -0,0 +1,6 @@
|
||||
import{_ as X,r as b,aF as ue,D as v,E as C,F as c,a0 as m,a2 as W,a1 as A,aD as ne,G as u,T as F,K as ve,M as j,N as O,H as V,a6 as E,a4 as Ue,L as he,p as ht,aG as He,a9 as vt,an as mt,ak as pt,aH as ft,ab as Ge,ad as _t,at as gt,aI as wt,s as ie,c as K,u as Le,aJ as yt,w as Ee,ae as Dt,V as Q,aK as bt,af as kt,aL as Et,aM as Tt,$ as P,a as Ct,o as me,a8 as U,B as we,aN as Mt,aO as qe,a5 as fe,J as le,U as Ce,Y as Me,Z as xe,O as Ke,n as xt,aP as St,a7 as y,W as L,P as Vt,Q as Ot,aQ as se,aR as k,aE as R,aS as N,S as We,aT as At,az as _e,aU as Te,aV as $t,aW as Ie,I as ge,aX as _,C as Ht,aY as Lt,aZ as Wt}from"./index-eaaba80e.js";import{V as It,a as jt}from"./VCarouselItem-cc313579.js";import{V as Xe}from"./VContainer-a08551cf.js";import{V as Pt}from"./VTextarea-1b51a32b.js";import{V as je}from"./index-68f89f30.js";import{V as Ze,l as Yt}from"./listUser-1bea0b7c.js";import{n as Je}from"./news-card-2da79561.js";import{f as Rt}from"./index-ba42aa01.js";import{V as Ft,L as zt}from"./load-round-c259ad52.js";import{V as Bt}from"./vcardUser-89d76716.js";import{V as Nt}from"./VTextField-2f8cae6e.js";import{V as Ut,b as Gt}from"./VList-45bad4a0.js";import{V as qt}from"./VSwitch-d066cd58.js";import{V as Qe}from"./VTooltip-68ae19a1.js";import"./ssrBoot-ad5ab840.js";/* empty css */import"./VInput-90b12813.js";import"./VListItem-5da0d122.js";import"./icoUser-7d47b757.js";import"./VChip-dc7453ff.js";import"./VAlert-4429ce4f.js";import"./VSelectionControl-c3c69e7b.js";const Kt={setup(){const e=ne.slice(0,-1),t=b([{link:"newsimage/default.jpg"}]);return ue("api/navigation/carousels/",t),{burl:e,carous:t}}};function Xt(e,t,i,a,o,s){return v(),C(It,{cycle:"",interval:"10000",cover:"",height:"450","hide-delimiters":"","hide-delimiter-background":"","show-arrows":"hover",color:"white"},{default:c(()=>[(v(!0),m(A,null,W(a.carous,(l,n)=>(v(),C(jt,{key:n,src:`${a.burl}${l.link}`,cover:"",eager:""},{default:c(()=>[u(Xe,{"fill-height":"",fluid:"","pa-0":"","ma-0":"","pb-3":"",class:"flex-column h-100 d-flex"},{default:c(()=>[u(F,{class:"bgCard h-100 d-flex flex-column"},{default:c(()=>[u(ve,{class:"ma-2 text-h3 text-uppercase titles text-text_carous py-5 flex-column"},{default:c(()=>[u(j,null,{default:c(()=>[u(O,{class:"pa-0 pl-1 align-self-center"},{default:c(()=>[V(E(l.title),1)]),_:2},1024),u(O,{class:"flex-grow-0 pa-0 pr-1"},{default:c(()=>[u(Ue,{width:"50","aspect-ratio":1,src:`${a.burl}${l.sender}`,cover:""},null,8,["src"])]),_:2},1024)]),_:2},1024)]),_:2},1024),u(he,{class:"ml-2 mb-0 mb-2 w-50 flex-grow-0 pb-3 text-h6 bgText overflow-auto"},{default:c(()=>[u(Pt,{class:"text-text_carous mt-n3 text-black textareas pt-2 font-weight-medium","model-value":l.text,variant:"plain",readonly:"","auto-grow":"",rows:"1","hide-details":""},null,8,["model-value"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1032,["src"]))),128))]),_:1})}const Zt=X(Kt,[["render",Xt]]);function Pe(e){const i=Math.abs(e);return Math.sign(e)*(i/((1/.501-2)*(1-i)+1))}function Ye(e){let{selectedElement:t,containerSize:i,contentSize:a,isRtl:o,currentScrollOffset:s,isHorizontal:l}=e;const n=l?t.clientWidth:t.clientHeight,r=l?t.offsetLeft:t.offsetTop,d=o&&l?a-r-n:r,h=i+s,p=n+d,f=n*.4;return d<=s?s=Math.max(d-f,0):h<=p&&(s=Math.min(s-(h-p-f),a-i)),s}function Jt(e){let{selectedElement:t,containerSize:i,contentSize:a,isRtl:o,isHorizontal:s}=e;const l=s?t.clientWidth:t.clientHeight,n=s?t.offsetLeft:t.offsetTop,r=o&&s?a-n-l/2-i/2:n+l/2-i/2;return Math.min(a-i,Math.max(0,r))}const et=Symbol.for("vuetify:v-slide-group"),Qt=ht({centerActive:Boolean,direction:{type:String,default:"horizontal"},symbol:{type:null,default:et},nextIcon:{type:He,default:"$next"},prevIcon:{type:He,default:"$prev"},showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["always","desktop","mobile"].includes(e)},...vt(),...mt(),...pt(),...ft({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),tt=Ge()({name:"VSlideGroup",props:Qt(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:i}=t;const{isRtl:a}=_t(),{displayClasses:o,mobile:s}=gt(e),l=wt(e,e.symbol),n=ie(!1),r=ie(0),d=ie(0),h=ie(0),p=K(()=>e.direction==="horizontal"),{resizeRef:f,contentRect:I}=Le(),{resizeRef:w,contentRect:Y}=Le(),z=K(()=>l.selected.value.length?l.items.value.findIndex(D=>D.id===l.selected.value[0]):-1),g=K(()=>l.selected.value.length?l.items.value.findIndex(D=>D.id===l.selected.value[l.selected.value.length-1]):-1);if(yt){let D=-1;Ee(()=>[l.selected.value,I.value,Y.value,p.value],()=>{cancelAnimationFrame(D),D=requestAnimationFrame(()=>{if(I.value&&Y.value){const T=p.value?"width":"height";d.value=I.value[T],h.value=Y.value[T],n.value=d.value+1<h.value}if(z.value>=0&&w.value){const T=w.value.children[g.value];z.value===0||!n.value?r.value=0:e.centerActive?r.value=Jt({selectedElement:T,containerSize:d.value,contentSize:h.value,isRtl:a.value,isHorizontal:p.value}):n.value&&(r.value=Ye({selectedElement:T,containerSize:d.value,contentSize:h.value,isRtl:a.value,currentScrollOfLine truncated
|
||||
* vue-cal v4.8.1
|
||||
* (c) 2022 Antoni Andre <antoniandre.web@gmail.com>
|
||||
* @license MIT
|
||||
*/let re,Fe,ze,B,de={},ae={};class Ci{constructor(t){Z(this,"_vuecal",null),Z(this,"selectCell",(i=!1,a,o)=>{this._vuecal.$emit("cell-click",o?{date:a,split:o}:a),this._vuecal.clickToNavigate||i?this._vuecal.switchToNarrowerView():this._vuecal.dblclickToNavigate&&"ontouchstart"in window&&(this._vuecal.domEvents.dblTapACell.taps++,setTimeout(()=>this._vuecal.domEvents.dblTapACell.taps=0,this._vuecal.domEvents.dblTapACell.timeout),this._vuecal.domEvents.dblTapACell.taps>=2&&(this._vuecal.domEvents.dblTapACell.taps=0,this._vuecal.switchToNarrowerView(),this._vuecal.$emit("cell-dblclick",o?{date:a,split:o}:a)))}),Z(this,"keyPressEnterCell",(i,a)=>{this._vuecal.$emit("cell-keypress-enter",a?{date:i,split:a}:i),this._vuecal.switchToNarrowerView()}),Z(this,"getPosition",i=>{const{left:a,top:o}=this._vuecal.cellsEl.getBoundingClientRect(),{clientX:s,clientY:l}="ontouchstart"in window&&i.touches?i.touches[0]:i;return{x:s-a,y:l-o}}),Z(this,"minutesAtCursor",i=>{let a=0,o={x:0,y:0};const{timeStep:s,timeCellHeight:l,timeFrom:n}=this._vuecal.$props;return typeof i=="number"?a=i:typeof i=="object"&&(o=this.getPosition(i),a=Math.round(o.y*s/parseInt(l)+n)),{minutes:Math.max(Math.min(a,1440),0),cursorCoords:o}}),this._vuecal=t}}let x,S,ke;class Mi{constructor(t,i){Z(this,"_vuecal",null),Z(this,"eventDefaults",{_eid:null,start:"",startTimeMinutes:0,end:"",endTimeMinutes:0,title:"",content:"",background:!1,allDay:!1,segments:null,repeat:null,daysCount:1,deletable:!0,deleting:!1,titleEditable:!0,resizable:!0,resizing:!1,draggable:!0,dragging:!1,draggingStatic:!1,focused:!1,class:""}),this._vuecal=t,x=i}createAnEvent(t,i,a){if(typeof t=="string"&&(t=x.stringToDate(t)),!(t instanceof Date))return!1;const o=x.dateToMinutes(t),s=o+(i=1*i||120),l=x.addMinutes(new Date(t),i);a.end&&(typeof a.end=="string"&&(a.end=x.stringToDate(a.end)),a.endTimeMinutes=x.dateToMinutes(a.end));const n={...this.eventDefaults,_eid:`${this._vuecal._.uid}_${this._vuecal.eventIdIncrement++}`,start:t,startTimeMinutes:o,end:l,endTimeMinutes:s,segments:null,...a};return typeof this._vuecal.onEventCreate!="function"||this._vuecal.onEventCreate(n,()=>this.deleteAnEvent(n))?(n.startDateF!==n.endDateF&&(n.daysCount=x.countDays(n.start,n.end)),this._vuecal.mutableEvents.push(n),this._vuecal.addEventsToView([n]),this._vuecal.emitWithEvent("event-create",n),this._vuecal.$emit("event-change",{event:this._vuecal.cleanupEvent(n),originalEvent:null}),n):void 0}addEventSegment(t){t.segments||(t.segments={},t.segments[x.formatDateLite(t.start)]={start:t.start,startTimeMinutes:t.startTimeMinutes,endTimeMinutes:1440,isFirstDay:!0,isLastDay:!1});const i=t.segments[x.formatDateLite(t.end)];i&&(i.isLastDay=!1,i.endTimeMinutes=1440);const a=x.addDays(t.end,1),o=x.formatDateLite(a);return a.setHours(0,0,0,0),t.segments[o]={start:a,startTimeMinutes:0,endTimeMinutes:t.endTimeMinutes,isFirstDay:!1,isLastDay:!0},t.end=x.addMinutes(a,t.endTimeMinutes),t.daysCount=Object.keys(t.segments).length,o}removeEventSegment(t){let i=Object.keys(t.segments).length;if(i<=1)return x.formatDateLite(t.end);delete t.segments[x.formatDateLite(t.end)],i--;const a=x.subtractDays(t.end,1),o=x.formatDateLite(a),s=t.segments[o];return i?s&&(s.isLastDay=!0,s.endTimeMinutes=t.endTimeMinutes):t.segments=null,t.daysCount=i||1,t.end=a,o}createEventSegments(t,i,a){const o=i.getTime(),s=a.getTime();let l,n,r,d=t.start.getTime(),h=t.end.getTime(),p=!1;for(t.end.getHours()||t.end.getMinutes()||(h-=1e3),t.segments={},t.repeat?(l=o,n=Math.min(s,t.repeat.until?x.stringToDate(t.repeat.until).getTime():s)):(l=Math.max(o,d),n=Math.min(s,h));l<=n;){let f=!1;const I=x.addDays(new Date(l),1).setHours(0,0,0,0);let w,Y,z,g;if(t.repeat){const $=new Date(l),M=x.formatDateLite($);(p||t.occurrences&&t.occurrences[M])&&(p||(d=t.occurrences[M].start,r=new Date(d).setHours(0,0,0,0),h=t.occurrences[M].end),p=!0,f=!0),w=l===r,Y=M===x.formatDateLite(new Date(h)),z=new Date(w?d:l),g=x.formatDateLite(z),Y&&(p=!1)}else f=!0,w=l===d,Y=n===h&&I>n,z=w?t.start:new Date(l),g=x.formatDateLite(w?t.start:z);f&&(t.segments[g]={start:z,startTimeMinutes:w?t.startTimeMinutes:0,endTimeMinutes:Y?t.endTimeMinutes:1440,isFirstDay:w,isLastDay:Y}),l=I}return t}deleteAnEvent(t){this._vuecal.emitWithEvent("event-delete",t),this._vuecal.mutableEvents=this._vuecal.mutableEvents.filter(i=>i._eid!==t._eid),this._vuecal.view.events=this._vuecal.view.events.filter(i=>i._eid!==t._eid)}checkCellOverlappingEvents(t,i){ke=t.slice(0),S={},t.forEach(o=>{ke.shift(),S[o._eid]||(S[o._eid]={overlaps:[],start:o.start,position:0}),S[o._eid].position=0,ke.forEach(s=>{S[s._eid]||(S[s._eid]={overlaps:[],start:s.start,position:0});const l=this.eventInRange(s,o.start,o.end),n=i.overlapsPerTimeStep?x.datesInSameTimeStep(o.start,s.start,i.timeStep):1;if(o.background||o.allDay||s.background||s.allDay||!l||!n){let r,d;(r=(S[o._eid]||{overlaps:[]}).overlaps.indexOf(s._eid))>-1&&S[o._eid].overlaps.splice(r,1),(d=(S[s._eid]||{overlaps:[]}).overlaps.indexOf(o._eid))>-1&&S[s._eid].ovLine truncated
|
||||
A valid view must be one of: ${Be.join(", ")}.`),e="week"),this.enabledViews.includes(e)||(console.warn(`Vue Cal: the provided active-view "${e}" is disabled. Using the "${this.enabledViews[0]}" view instead.`),e=this.enabledViews[0]),e},switchToNarrowerView(e=null){this.transitionDirection="right";const t=this.enabledViews[this.enabledViews.indexOf(this.view.id)+1];t&&this.switchView(t,e)},switchView(e,t=null,i=!1){e=this.validateView(e);const a=this.utils.date,o=this.view.startDate&&this.view.startDate.getTime();if(this.transitions&&i){if(this.view.id===e)return;const n=this.enabledViews;this.transitionDirection=n.indexOf(this.view.id)>n.indexOf(e)?"left":"right"}const s=this.view.id;switch(this.view.events=[],this.view.id=e,this.view.firstCellDate=null,this.view.lastCellDate=null,t||(t=this.view.selectedDate||this.view.startDate),e){case"years":this.view.startDate=new Date(25*Math.floor(t.getFullYear()/25)||2e3,0,1),this.view.endDate=new Date(this.view.startDate.getFullYear()+25,0,1),this.view.endDate.setSeconds(-1);break;case"year":this.view.startDate=new Date(t.getFullYear(),0,1),this.view.endDate=new Date(t.getFullYear()+1,0,1),this.view.endDate.setSeconds(-1);break;case"month":{this.view.startDate=new Date(t.getFullYear(),t.getMonth(),1),this.view.endDate=new Date(t.getFullYear(),t.getMonth()+1,1),this.view.endDate.setSeconds(-1);let n=new Date(this.view.startDate);if(n.getDay()!==(this.startWeekOnSunday?0:1)&&(n=a.getPreviousFirstDayOfWeek(n,this.startWeekOnSunday)),this.view.firstCellDate=n,this.view.lastCellDate=a.addDays(n,41),this.view.lastCellDate.setHours(23,59,59,0),this.hideWeekends){if([0,6].includes(this.view.firstCellDate.getDay())){const r=this.view.firstCellDate.getDay()!==6||this.startWeekOnSunday?1:2;this.view.firstCellDate=a.addDays(this.view.firstCellDate,r)}if([0,6].includes(this.view.startDate.getDay())){const r=this.view.startDate.getDay()===6?2:1;this.view.startDate=a.addDays(this.view.startDate,r)}if([0,6].includes(this.view.lastCellDate.getDay())){const r=this.view.lastCellDate.getDay()!==0||this.startWeekOnSunday?1:2;this.view.lastCellDate=a.subtractDays(this.view.lastCellDate,r)}if([0,6].includes(this.view.endDate.getDay())){const r=this.view.endDate.getDay()===0?2:1;this.view.endDate=a.subtractDays(this.view.endDate,r)}}break}case"week":{t=a.getPreviousFirstDayOfWeek(t,this.startWeekOnSunday);const n=this.hideWeekends?5:7;this.view.startDate=this.hideWeekends&&this.startWeekOnSunday?a.addDays(t,1):t,this.view.startDate.setHours(0,0,0,0),this.view.endDate=a.addDays(t,n),this.view.endDate.setSeconds(-1);break}case"day":this.view.startDate=t,this.view.startDate.setHours(0,0,0,0),this.view.endDate=new Date(t),this.view.endDate.setHours(23,59,59,0)}this.addEventsToView();const l=this.view.startDate&&this.view.startDate.getTime();if((s!==e||l!==o)&&(this.$emit("update:activeView",e),this.ready)){const n=this.view.startDate,r={view:e,startDate:n,endDate:this.view.endDate,...this.isMonthView?{firstCellDate:this.view.firstCellDate,lastCellDate:this.view.lastCellDate,outOfScopeEvents:this.view.outOfScopeEvents.map(this.cleanupEvent)}:{},events:this.view.events.map(this.cleanupEvent),...this.isWeekView?{week:a.getWeek(this.startWeekOnSunday?a.addDays(n,1):n)}:{}};this.$emit("view-change",r)}},previous(){this.previousNext(!1)},next(){this.previousNext()},previousNext(e=!0){const t=this.utils.date;this.transitionDirection=e?"right":"left";const i=e?1:-1;let a=null;const{startDate:o,id:s}=this.view;switch(s){case"years":a=new Date(o.getFullYear()+25*i,0,1);break;case"year":a=new Date(o.getFullYear()+1*i,1,1);break;case"month":a=new Date(o.getFullYear(),o.getMonth()+1*i,1);break;case"week":a=t[e?"addDays":"subtractDays"](t.getPreviousFirstDayOfWeek(o,this.startWeekOnSunday),7);break;case"day":a=t[e?"addDays":"subtractDays"](o,1);const l=a.getDay(),n=this.startWeekOnSunday?l:(l||7)-1;if(this.weekDays[n].hide){const r=this.weekDays.map((h,p)=>({...h,i:p}));let d=0;e?([...r.slice(n),...r].find(h=>(d++,!h.hide)).i,d--):[...r,...r.slice(0,n)].reverse().find(h=>(d++,!h.hide)).i,a=t[e?"addDays":"subtractDays"](a,d)}}a&&this.switchView(s,a)},addEventsToView(e=[]){const t=this.utils.event,{startDate:i,endDate:a,firstCellDate:o,lastCellDate:s}=this.view;if(e.length||(this.view.events=[]),!(e=e.length?e:[...this.mutableEvents])||this.isYearsOrYearView&&!this.eventsCountOnYearView)return;let l=e.filter(n=>t.eventInRange(n,i,a));this.isYearsOrYearView||this.isMonthView&&!this.eventsOnMonthView||(l=l.map(n=>n.daysCount>1?t.createEventSegments(n,o||i,s||a):n)),this.view.events.push(...l),this.isMonthView&&(this.view.outOfScopeEvents=[],e.forEach(n=>{(t.eventInRange(n,o,i)||t.eventInRange(n,a,s))&&(this.view.events.some(r=>r._eid===n._eid)||this.view.outOfScopeEvents.push(n))}))},findAncestor(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e},isDOMElementAnEvent(e){return e.classList.contains("vuecal__event")||this.findAncestor(e,"vuecal__event")},onMouseMove(e){const{resizeAnEvent:t,dr
Line truncated
|
||||
Reference in new issue
Block a user