1
This commit is contained in:
1 parent
921821ffe4
commit
721e9a1ba0
47 files changed
+46
-46
No files matched your search
+6
@@ -0,0 +1,6 @@
|
||||
import{_ as U,r as f,aH as ie,D as c,E as k,F as u,a0 as m,a2 as O,a1 as S,aF as X,G as h,T as Y,K as ne,M as $,N as x,H as M,a6 as b,a4 as Te,a7 as g,L as ae,ae as Ie,aI as je,aJ as Ye,$ as H,a as Pe,o as le,a8 as B,B as ce,aK as Fe,aL as Ce,w as ge,a5 as re,J,U as me,c as Me,Y as pe,Z as _e,O as xe,n as Re,aM as Be,W as V,P as Ne,Q as Ue,aN as K,aO as D,aG as I,aP as R,S as we,aQ as ze,aC as de,aR as ve,aS as Ge,aT as ye,I as ue,aU as _,V as Q,ab as Se,C as Ke,aV as qe,aW as Xe}from"./index-ddb661b1.js";import{V as Je,a as Ze}from"./VCarouselItem-d3edbdb7.js";import{V as Ve}from"./VContainer-d9d8cb56.js";import{V as Qe}from"./VTextarea-0c3c4ea4.js";import{V as et,a as Oe}from"./VChip-16944d2d.js";import{V as Ae}from"./VSheet-24a4290d.js";import{n as $e}from"./news-card-4d3879fb.js";import{f as tt}from"./index-ba42aa01.js";import{V as it,L as st}from"./load-round-25f02d8f.js";import{V as at}from"./vcardUser-48ba2816.js";import{L as nt}from"./listUser-6e4397c7.js";import{V as lt,a as ot,c as rt}from"./VList-5c852a1d.js";import{V as dt}from"./VSwitch-abc2915d.js";import"./VWindowItem-315fc550.js";import"./ssrBoot-5aad72c9.js";/* empty css */import"./VField-d615442f.js";import"./index-92c6beb3.js";import"./VInput-2732ad59.js";import"./icoUser-2876928d.js";import"./VAlert-c5491c0f.js";import"./VListItem-6c69c6ce.js";import"./VSelectionControl-25d550bf.js";const ut={setup(){const t=X.slice(0,-1),e=f([{link:"newsimage/default.jpg"}]);return ie("api/navigation/carousels/",e),{burl:t,carous:e}}};function ct(t,e,i,a,o,s){return c(),k(Je,{cycle:"",interval:"10000",cover:"",height:"450","hide-delimiters":"","hide-delimiter-background":"","show-arrows":"hover",color:"white"},{default:u(()=>[(c(!0),m(S,null,O(a.carous,(l,n)=>(c(),k(Ze,{key:n,src:`${a.burl}${l.link}`,cover:"",eager:""},{default:u(()=>[h(Ve,{"fill-height":"",fluid:"","pa-0":"","ma-0":"","pb-3":"",class:"flex-column h-100 d-flex"},{default:u(()=>[l.text!=""||l.title!=null?(c(),k(Y,{key:0,class:"bgCard h-100 d-flex flex-column"},{default:u(()=>[l.title!=null?(c(),k(ne,{key:0,class:"text-h3 text-uppercase titles text-text_carous ma-1 mb-0"},{default:u(()=>[h($,{"no-gutters":""},{default:u(()=>[h(x,{class:"align-self-center"},{default:u(()=>[M(b(l.title),1)]),_:2},1024),h(x,{class:"flex-grow-0"},{default:u(()=>[h(Te,{width:"50","aspect-ratio":1,src:`${a.burl}${l.sender}`,cover:""},null,8,["src"])]),_:2},1024)]),_:2},1024)]),_:2},1024)):g("",!0),l.text!=""?(c(),k(ae,{key:1,class:"w-50 flex-grow-0 text-h6 bgText overflow-auto ma-1 pa-0"},{default:u(()=>[h(Qe,{class:"text-text_caroustext-black textareas font-weight-medium nocursor","model-value":l.text,variant:"solo",readonly:"","auto-grow":"",rows:"1","hide-details":"",flat:"","bg-color":"transparent"},null,8,["model-value"])]),_:2},1024)):g("",!0)]),_:2},1024)):g("",!0)]),_:2},1024)]),_:2},1032,["src"]))),128))]),_:1})}const ht=U(ut,[["render",ct]]);const Le=Ie()({name:"VSlideGroupItem",props:je(),emits:{"group:selected":t=>!0},setup(t,e){let{slots:i}=e;const a=Ye(t,et);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})}}}),vt={props:{digitalData:{type:Object,default:{}}},setup(){const t=X.slice(0,-1);return{model:f(!1),burl:t}}};function mt(t,e,i,a,o,s){const l=H("vue3-autocounter");return c(),k(Y,{class:"d-flex ml-3"},{default:u(()=>[h(Ae,{class:"mx-auto",elevation:"0","max-width":"813"},{default:u(()=>[h(Oe,{modelValue:a.model,"onUpdate:modelValue":e[0]||(e[0]=n=>a.model=n),class:"pa-0","selected-class":"bg-primary",mandatory:"","show-arrows":""},{default:u(()=>[(c(!0),m(S,null,O(i.digitalData,n=>(c(),k(Le,{key:n},{default:u(()=>[h(Y,{class:"ma-2 mt-4 d-flex flex-column",height:"100",width:"169",elevation:"0"},{default:u(()=>[h(Y,{class:"h-100 text-center g text-black_grey"},{default:u(()=>[h(ne,{class:"statstyle my-2 py-0 text-overline font-weight-bold"},{default:u(()=>[M(b(n.status),1)]),_:2},1024),h(ae,{class:"numstyle mt-4 py-0 font-weight-bold"},{default:u(()=>[h(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 pt=U(vt,[["render",mt]]);const _t={name:"calendar-full",props:{initial:{type:String,default:"multiMonthYear"}},setup(t){const e=Pe({plugins:[dayGridPlugin,interactionPlugin,timeGridPlugin,listPlugin,multiMonthPlugin],initialView:t.initial,dayMaxEventRows:3,locale:"ru",buttonText:{today:"Сегодня",month:"Месяц",week:"Неделя",day:"День",list:"Список",year:"Год"},firstDay:"1",events:[],editable:!0,headerToolbar:{left:"prev",center:"title",right:"next"},aspectRatio:1,multiMonthMaxColumns:2,displayEventEnd:!0,height:"100%",stickyHeaderDates:!0,dayMaxEventRows:2,moreLinkContent:function(a){return a.shortText+" события"},views:{multiMonthYear:{moreLinkContent:function(a){return a.num}Line truncated
|
||||
* vue-cal v4.8.1
|
||||
* (c) 2022 Antoni Andre <antoniandre.web@gmail.com>
|
||||
* @license MIT
|
||||
*/let ee,De,be,F,te={},q={};class Yt{constructor(e){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=e}}let T,C,he;class Pt{constructor(e,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=e,T=i}createAnEvent(e,i,a){if(typeof e=="string"&&(e=T.stringToDate(e)),!(e instanceof Date))return!1;const o=T.dateToMinutes(e),s=o+(i=1*i||120),l=T.addMinutes(new Date(e),i);a.end&&(typeof a.end=="string"&&(a.end=T.stringToDate(a.end)),a.endTimeMinutes=T.dateToMinutes(a.end));const n={...this.eventDefaults,_eid:`${this._vuecal._.uid}_${this._vuecal.eventIdIncrement++}`,start:e,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=T.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(e){e.segments||(e.segments={},e.segments[T.formatDateLite(e.start)]={start:e.start,startTimeMinutes:e.startTimeMinutes,endTimeMinutes:1440,isFirstDay:!0,isLastDay:!1});const i=e.segments[T.formatDateLite(e.end)];i&&(i.isLastDay=!1,i.endTimeMinutes=1440);const a=T.addDays(e.end,1),o=T.formatDateLite(a);return a.setHours(0,0,0,0),e.segments[o]={start:a,startTimeMinutes:0,endTimeMinutes:e.endTimeMinutes,isFirstDay:!1,isLastDay:!0},e.end=T.addMinutes(a,e.endTimeMinutes),e.daysCount=Object.keys(e.segments).length,o}removeEventSegment(e){let i=Object.keys(e.segments).length;if(i<=1)return T.formatDateLite(e.end);delete e.segments[T.formatDateLite(e.end)],i--;const a=T.subtractDays(e.end,1),o=T.formatDateLite(a),s=e.segments[o];return i?s&&(s.isLastDay=!0,s.endTimeMinutes=e.endTimeMinutes):e.segments=null,e.daysCount=i||1,e.end=a,o}createEventSegments(e,i,a){const o=i.getTime(),s=a.getTime();let l,n,r,d=e.start.getTime(),v=e.end.getTime(),p=!1;for(e.end.getHours()||e.end.getMinutes()||(v-=1e3),e.segments={},e.repeat?(l=o,n=Math.min(s,e.repeat.until?T.stringToDate(e.repeat.until).getTime():s)):(l=Math.max(o,d),n=Math.min(s,v));l<=n;){let w=!1;const j=T.addDays(new Date(l),1).setHours(0,0,0,0);let E,P,N,y;if(e.repeat){const W=new Date(l),A=T.formatDateLite(W);(p||e.occurrences&&e.occurrences[A])&&(p||(d=e.occurrences[A].start,r=new Date(d).setHours(0,0,0,0),v=e.occurrences[A].end),p=!0,w=!0),E=l===r,P=A===T.formatDateLite(new Date(v)),N=new Date(E?d:l),y=T.formatDateLite(N),P&&(p=!1)}else w=!0,E=l===d,P=n===v&&j>n,N=E?e.start:new Date(l),y=T.formatDateLite(E?e.start:N);w&&(e.segments[y]={start:N,startTimeMinutes:E?e.startTimeMinutes:0,endTimeMinutes:P?e.endTimeMinutes:1440,isFirstDay:E,isLastDay:P}),l=j}return e}deleteAnEvent(e){this._vuecal.emitWithEvent("event-delete",e),this._vuecal.mutableEvents=this._vuecal.mutableEvents.filter(i=>i._eid!==e._eid),this._vuecal.view.events=this._vuecal.view.events.filter(i=>i._eid!==e._eid)}checkCellOverlappingEvents(e,i){he=e.slice(0),C={},e.forEach(o=>{he.shift(),C[o._eid]||(C[o._eid]={overlaps:[],start:o.start,position:0}),C[o._eid].position=0,he.forEach(s=>{C[s._eid]||(C[s._eid]={overlaps:[],start:s.start,position:0});const l=this.eventInRange(s,o.start,o.end),n=i.overlapsPerTimeStep?T.datesInSameTimeStep(o.start,s.start,i.timeStep):1;if(o.background||o.allDay||s.background||s.allDay||!l||!n){let r,d;(r=(C[o._eid]||{overlaps:[]}).overlaps.indexOf(s._eid))>-1&&C[o._eid].overlaps.splice(r,1),(d=(C[s._eid]||{overlaps:[]}).overlaps.indexOf(o._eid))>-1&&C[s._eid].oveLine truncated
|
||||
A valid view must be one of: ${ke.join(", ")}.`),t="week"),this.enabledViews.includes(t)||(console.warn(`Vue Cal: the provided active-view "${t}" is disabled. Using the "${this.enabledViews[0]}" view instead.`),t=this.enabledViews[0]),t},switchToNarrowerView(t=null){this.transitionDirection="right";const e=this.enabledViews[this.enabledViews.indexOf(this.view.id)+1];e&&this.switchView(e,t)},switchView(t,e=null,i=!1){t=this.validateView(t);const a=this.utils.date,o=this.view.startDate&&this.view.startDate.getTime();if(this.transitions&&i){if(this.view.id===t)return;const n=this.enabledViews;this.transitionDirection=n.indexOf(this.view.id)>n.indexOf(t)?"left":"right"}const s=this.view.id;switch(this.view.events=[],this.view.id=t,this.view.firstCellDate=null,this.view.lastCellDate=null,e||(e=this.view.selectedDate||this.view.startDate),t){case"years":this.view.startDate=new Date(25*Math.floor(e.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(e.getFullYear(),0,1),this.view.endDate=new Date(e.getFullYear()+1,0,1),this.view.endDate.setSeconds(-1);break;case"month":{this.view.startDate=new Date(e.getFullYear(),e.getMonth(),1),this.view.endDate=new Date(e.getFullYear(),e.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":{e=a.getPreviousFirstDayOfWeek(e,this.startWeekOnSunday);const n=this.hideWeekends?5:7;this.view.startDate=this.hideWeekends&&this.startWeekOnSunday?a.addDays(e,1):e,this.view.startDate.setHours(0,0,0,0),this.view.endDate=a.addDays(e,n),this.view.endDate.setSeconds(-1);break}case"day":this.view.startDate=e,this.view.startDate.setHours(0,0,0,0),this.view.endDate=new Date(e),this.view.endDate.setHours(23,59,59,0)}this.addEventsToView();const l=this.view.startDate&&this.view.startDate.getTime();if((s!==t||l!==o)&&(this.$emit("update:activeView",t),this.ready)){const n=this.view.startDate,r={view:t,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(t=!0){const e=this.utils.date;this.transitionDirection=t?"right":"left";const i=t?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=e[t?"addDays":"subtractDays"](e.getPreviousFirstDayOfWeek(o,this.startWeekOnSunday),7);break;case"day":a=e[t?"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((v,p)=>({...v,i:p}));let d=0;t?([...r.slice(n),...r].find(v=>(d++,!v.hide)).i,d--):[...r,...r.slice(0,n)].reverse().find(v=>(d++,!v.hide)).i,a=e[t?"addDays":"subtractDays"](a,d)}}a&&this.switchView(s,a)},addEventsToView(t=[]){const e=this.utils.event,{startDate:i,endDate:a,firstCellDate:o,lastCellDate:s}=this.view;if(t.length||(this.view.events=[]),!(t=t.length?t:[...this.mutableEvents])||this.isYearsOrYearView&&!this.eventsCountOnYearView)return;let l=t.filter(n=>e.eventInRange(n,i,a));this.isYearsOrYearView||this.isMonthView&&!this.eventsOnMonthView||(l=l.map(n=>n.daysCount>1?e.createEventSegments(n,o||i,s||a):n)),this.view.events.push(...l),this.isMonthView&&(this.view.outOfScopeEvents=[],t.forEach(n=>{(e.eventInRange(n,o,i)||e.eventInRange(n,a,s))&&(this.view.events.some(r=>r._eid===n._eid)||this.view.outOfScopeEvents.push(n))}))},findAncestor(t,e){for(;(t=t.parentElement)&&!t.classList.contains(e););return t},isDOMElementAnEvent(t){return t.classList.contains("vuecal__event")||this.findAncestor(t,"vuecal__event")},onMouseMove(t){const{resizeAnEvent:e,dr
Line truncated
|
||||
Reference in new issue
Block a user