Залить
This commit is contained in:
1 parent
1c250ce12b
commit
5b453f2205
33 files changed
+34
-34
No files matched your search
+6
@@ -0,0 +1,6 @@
|
||||
import{_ as K,r as k,aG as ne,C as v,D as T,E as h,Y as m,$ as A,Z as V,aE as Q,F as c,R as j,I as ie,K as Y,L as H,G as x,ad as f,aq as Oe,J,p as Ae,ah as qe,a1 as Ke,aH as Xe,ai as Ze,aI as Je,aJ as Qe,aj as et,a4 as tt,a5 as it,a6 as ye,a8 as st,ak as at,al as nt,am as lt,aK as ot,an as rt,aL as dt,aM as ut,ao as ct,ac as $e,X as I,a as ht,o as re,af as N,A as we,aN as vt,aO as mt,aP as pt,w as fe,S as D,V as U,aF as W,aQ as _t,aR as gt,c as _e,U as Le,W as He,M as yt,a9 as De,aS as wt,h as ft,aT as Dt,H as ee,aU as bt,aV as kt,ae as w,N as Et,O as Tt,aW as X,aX as b,aY as B,Q as be,aZ as Ct,az as ce,a_ as ge,a$ as Mt,b0 as ke,b1 as g,B as xt,aB as St}from"./index-2438997c.js";import{V as Vt,a as Ot}from"./VCarouselItem-6d0154d6.js";import{V as We}from"./VContainer-45854169.js";import{V as At}from"./VTextarea-94917299.js";import{a as $t,b as Lt,C as Ie,V as Pe}from"./VTooltip-4db07b5f.js";import{m as Ht,b as Wt,V as he,c as It,d as Pt}from"./VBtn-97df61f1.js";import{f as jt,m as Yt,V as Ee}from"./VSelectionControl-95553937.js";import{b as Ft,c as oe,V as Rt,d as Bt,f as Nt,a as je}from"./VList-695bac8b.js";import{V as zt,L as Ut}from"./load-round-65079095.js";import{m as Gt,u as qt,V as Te}from"./VInput-2154a6f7.js";import"./VWindowItem-41d0496d.js";import"./VChip-535f3e92.js";import"./VAlert-910b6b05.js";const Kt={setup(){const e=Q.slice(0,-1),t=k([{link:""}]);return ne("api/navigation/carousels/",t),{burl:e,carous:t}}};function Xt(e,t,i,a,o,s){return v(),T(Vt,{cycle:"",interval:"10000",cover:"",height:"450","hide-delimiters":"","hide-delimiter-background":"","show-arrows":"hover",color:"white"},{default:h(()=>[(v(!0),m(V,null,A(a.carous,(l,n)=>(v(),T(Ot,{key:n,src:`${a.burl}${l.link}`,cover:"",eager:""},{default:h(()=>[c(We,{"fill-height":"",fluid:"","pa-0":"","ma-0":"","pb-3":"",class:"flex-column h-100 d-flex"},{default:h(()=>[c(j,{class:"bgCard h-100 d-flex flex-column"},{default:h(()=>[c(ie,{class:"ma-2 text-h3 text-uppercase titles text-text_carous py-5 flex-column"},{default:h(()=>[c(Y,null,{default:h(()=>[c(H,{class:"pa-0 pl-1 align-self-center"},{default:h(()=>[x(f(l.title),1)]),_:2},1024),c(H,{class:"flex-grow-0 pa-0 pr-1"},{default:h(()=>[c(Oe,{width:"50","aspect-ratio":1,src:`${a.burl}${l.sender}`,cover:""},null,8,["src"])]),_:2},1024)]),_:2},1024)]),_:2},1024),c(J,{class:"ml-2 mb-0 mb-2 w-50 flex-grow-0 pb-3 text-h6 bgText overflow-auto"},{default:h(()=>[c(At,{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=K(Kt,[["render",Xt]]);const Jt=Ae({color:String,...qe(),...Ke(),...Xe(),...Ze(),...Je(),...Qe(),...et(),...tt(),...it()},"VSheet"),Qt=ye()({name:"VSheet",props:Jt(),setup(e,t){let{slots:i}=t;const{themeClasses:a}=st(e),{backgroundColorClasses:o,backgroundColorStyles:s}=at(nt(e,"color")),{borderClasses:l}=lt(e),{dimensionStyles:n}=ot(e),{elevationClasses:r}=rt(e),{locationStyles:d}=dt(e),{positionClasses:u}=ut(e),{roundedClasses:p}=ct(e);return $e(()=>c(e.tag,{class:["v-sheet",a.value,o.value,l.value,r.value,u.value,p.value,e.class],style:[s.value,n.value,d.value,e.style]},i)),{}}}),ei=ye()({name:"VSlideGroupItem",props:Ht(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:i}=t;const a=Wt(e,$t);return()=>{var o;return(o=i.default)==null?void 0:o.call(i,{isSelected:a.isSelected.value,select:a.select,toggle:a.toggle,selectedClass:a.selectedClass.value})}}}),ti={props:{digitalData:{type:Object,default:{}}},setup(){const e=Q.slice(0,-1);return{model:k(!1),burl:e}}};function ii(e,t,i,a,o,s){const l=I("vue3-autocounter");return v(),T(j,{class:"d-flex ml-3"},{default:h(()=>[c(Qt,{class:"mx-auto",elevation:"0","max-width":"813"},{default:h(()=>[c(Lt,{modelValue:a.model,"onUpdate:modelValue":t[0]||(t[0]=n=>a.model=n),class:"pa-0","selected-class":"bg-primary",mandatory:"","show-arrows":""},{default:h(()=>[(v(!0),m(V,null,A(i.digitalData,n=>(v(),T(ei,{key:n},{default:h(()=>[c(j,{class:"ma-2 mt-4 d-flex flex-column",height:"100",width:"169",elevation:"0"},{default:h(()=>[c(j,{class:"h-100 text-center g text-black_grey"},{default:h(()=>[c(ie,{class:"statstyle my-2 py-0 text-overline font-weight-bold"},{default:h(()=>[x(f(n.status),1)]),_:2},1024),c(J,{class:"numstyle mt-4 py-0 font-weight-bold"},{default:h(()=>[c(l,{ref_for:!0,ref:"counter",startAmount:0,endAmount:Number(n.num),duration:1},null,8,["endAmount"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})}const si=K(ti,[["render",ii]]);const ai={name:"calendar-full",props:{initial:{type:String,default:"multiMonthYear"}},setup(e){const t=ht({plugins:[dayGridPlugin,interactionPlugin,timeGridPlugin,listPlugin,multiMonthPlugin],initialView:e.initial,dayMaxEventRows:3,locale:"ru",buttonText:{today:"Сегодня",month:"Месяц",week:"Неделя",day:"День",listLine truncated
|
||||
* vue-cal v4.8.1
|
||||
* (c) 2022 Antoni Andre <antoniandre.web@gmail.com>
|
||||
* @license MIT
|
||||
*/let se,Me,xe,R,ae={},Z={};class $i{constructor(t){G(this,"_vuecal",null),G(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)))}),G(this,"keyPressEnterCell",(i,a)=>{this._vuecal.$emit("cell-keypress-enter",a?{date:i,split:a}:i),this._vuecal.switchToNarrowerView()}),G(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}}),G(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 C,M,pe;class Li{constructor(t,i){G(this,"_vuecal",null),G(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,C=i}createAnEvent(t,i,a){if(typeof t=="string"&&(t=C.stringToDate(t)),!(t instanceof Date))return!1;const o=C.dateToMinutes(t),s=o+(i=1*i||120),l=C.addMinutes(new Date(t),i);a.end&&(typeof a.end=="string"&&(a.end=C.stringToDate(a.end)),a.endTimeMinutes=C.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=C.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[C.formatDateLite(t.start)]={start:t.start,startTimeMinutes:t.startTimeMinutes,endTimeMinutes:1440,isFirstDay:!0,isLastDay:!1});const i=t.segments[C.formatDateLite(t.end)];i&&(i.isLastDay=!1,i.endTimeMinutes=1440);const a=C.addDays(t.end,1),o=C.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=C.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 C.formatDateLite(t.end);delete t.segments[C.formatDateLite(t.end)],i--;const a=C.subtractDays(t.end,1),o=C.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(),u=t.end.getTime(),p=!1;for(t.end.getHours()||t.end.getMinutes()||(u-=1e3),t.segments={},t.repeat?(l=o,n=Math.min(s,t.repeat.until?C.stringToDate(t.repeat.until).getTime():s)):(l=Math.max(o,d),n=Math.min(s,u));l<=n;){let _=!1;const L=C.addDays(new Date(l),1).setHours(0,0,0,0);let E,P,F,y;if(t.repeat){const $=new Date(l),O=C.formatDateLite($);(p||t.occurrences&&t.occurrences[O])&&(p||(d=t.occurrences[O].start,r=new Date(d).setHours(0,0,0,0),u=t.occurrences[O].end),p=!0,_=!0),E=l===r,P=O===C.formatDateLite(new Date(u)),F=new Date(E?d:l),y=C.formatDateLite(F),P&&(p=!1)}else _=!0,E=l===d,P=n===u&&L>n,F=E?t.start:new Date(l),y=C.formatDateLite(E?t.start:F);_&&(t.segments[y]={start:F,startTimeMinutes:E?t.startTimeMinutes:0,endTimeMinutes:P?t.endTimeMinutes:1440,isFirstDay:E,isLastDay:P}),l=L}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){pe=t.slice(0),M={},t.forEach(o=>{pe.shift(),M[o._eid]||(M[o._eid]={overlaps:[],start:o.start,position:0}),M[o._eid].position=0,pe.forEach(s=>{M[s._eid]||(M[s._eid]={overlaps:[],start:s.start,position:0});const l=this.eventInRange(s,o.start,o.end),n=i.overlapsPerTimeStep?C.datesInSameTimeStep(o.start,s.start,i.timeStep):1;if(o.background||o.allDay||s.background||s.allDay||!l||!n){let r,d;(r=(M[o._eid]||{overlaps:[]}).overlaps.indexOf(s._eid))>-1&&M[o._eid].overlaps.splice(r,1),(d=(M[s._eid]||{overlaps:[]}).overlaps.indexOf(o._eid))>-1&&M[s._eid].oveLine truncated
|
||||
A valid view must be one of: ${Se.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((u,p)=>({...u,i:p}));let d=0;e?([...r.slice(n),...r].find(u=>(d++,!u.hide)).i,d--):[...r,...r.slice(0,n)].reverse().find(u=>(d++,!u.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