hisonvue 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{HAccordion-BzYBxdbM.mjs → HAccordion-2BXGsG5B.mjs} +2 -2
- package/dist/{HAccordion-Dv-0kIeJ.js → HAccordion-BXzQTj-T.js} +1 -1
- package/dist/{HBaggie-BrKjhTmV.js → HBaggie-DP-oXbIt.js} +1 -1
- package/dist/{HBaggie-L15S6qU_.mjs → HBaggie-DbUnI6Cg.mjs} +2 -2
- package/dist/{HBanner-_c3_uNZ-.js → HBanner-C_RVokKc.js} +1 -1
- package/dist/{HBanner-Cs789wZY.mjs → HBanner-DS1wAGBj.mjs} +2 -2
- package/dist/{HButton-C-5U9CYg.mjs → HButton-CJZsjgRh.mjs} +2 -2
- package/dist/{HButton-DOQKYh71.js → HButton-EmsUduJx.js} +1 -1
- package/dist/{HCalendar-BipekQSd.mjs → HCalendar-BHuielDt.mjs} +468 -458
- package/dist/{HCalendar-c2E04a6F.js → HCalendar-BQcg95QP.js} +2 -2
- package/dist/{HCaption-BdFi4pjO.mjs → HCaption-B_TLREQt.mjs} +1 -1
- package/dist/{HCaption-B9Z4Mpiq.js → HCaption-DnnfU-4f.js} +1 -1
- package/dist/HChart-C9gfq-PC.mjs +187 -0
- package/dist/HChart-CPILy-I8.js +1 -0
- package/dist/{HDrawer-ByedlBps.mjs → HDrawer-D_kSIGBU.mjs} +1 -1
- package/dist/{HDrawer-BQoL9a2M.js → HDrawer-tfvUaRKv.js} +1 -1
- package/dist/{HDropdown-B7jzU0cs.mjs → HDropdown-BIPy8aU4.mjs} +2 -2
- package/dist/{HDropdown-DTgQ8ftU.js → HDropdown-BjUvzvFC.js} +1 -1
- package/dist/{HFileset-BGoufA9f.mjs → HFileset-BtK0nmzk.mjs} +1 -1
- package/dist/{HFileset-Cjaw2O3B.js → HFileset-PW9YCJgS.js} +1 -1
- package/dist/{HGap-dZHCG6qG.js → HGap-BbdxTgBt.js} +1 -1
- package/dist/{HGap-o5cZ31NS.mjs → HGap-CW02Hxpc.mjs} +1 -1
- package/dist/{HGrid-WGfCDsSF.mjs → HGrid-CJ4-xVpR.mjs} +113 -86
- package/dist/HGrid-olge21bD.js +1 -0
- package/dist/{HImagebox-CffwxfLM.js → HImagebox-AXcA-jAB.js} +1 -1
- package/dist/{HImagebox-BPa0Q6fk.mjs → HImagebox-FTiJuOTN.mjs} +1 -1
- package/dist/{HInput-cbRg1F3h.js → HInput-CZ11eUJB.js} +1 -1
- package/dist/{HInput-CQ7d9LR-.mjs → HInput-Cqo_Tfru.mjs} +1 -1
- package/dist/{HInputGroup-B1osISBq.mjs → HInputGroup-SzCxRqaF.mjs} +1 -1
- package/dist/{HInputGroup-BsP87aLA.js → HInputGroup-zaJVW7RE.js} +1 -1
- package/dist/{HLabel-tg5p1PWE.mjs → HLabel-DEVMDggG.mjs} +2 -2
- package/dist/{HLabel-BPlT16ny.js → HLabel-jZG7tY-0.js} +1 -1
- package/dist/{HLayout-C1x5k8_W.js → HLayout-Fh65aaVI.js} +1 -1
- package/dist/{HLayout-DkGhoxFJ.mjs → HLayout-x_jVkIo4.mjs} +1 -1
- package/dist/{HList-B_W8rTjZ.js → HList-JIhEylRe.js} +1 -1
- package/dist/{HList-vGkLpoY9.mjs → HList-V-fyd5fw.mjs} +2 -2
- package/dist/{HModal-D-XuHQbV.mjs → HModal-B7pME4H2.mjs} +1 -1
- package/dist/{HModal-DAbW9nf8.js → HModal-M0YUil9A.js} +1 -1
- package/dist/HNote-C5nujdV1.js +1 -0
- package/dist/{HNote-_E_hiFhb.mjs → HNote-HqNrL-U2.mjs} +195 -137
- package/dist/{HPagination-C_vo9s9C.js → HPagination-6aWyrTI-.js} +1 -1
- package/dist/{HPagination-DZlbOqpd.mjs → HPagination-h8MaMUIE.mjs} +2 -2
- package/dist/{HParagraph-BjceB4Ns.mjs → HParagraph-CP1IofM4.mjs} +1 -1
- package/dist/{HParagraph-BIw7MBhH.js → HParagraph-IvsIOdD1.js} +1 -1
- package/dist/{HPopup-s9d8mVuM.js → HPopup-Cj5IaN9N.js} +1 -1
- package/dist/{HPopup-BYFWFdFV.mjs → HPopup-DUnn4AIb.mjs} +1 -1
- package/dist/{HSpinner-xBqdZckJ.js → HSpinner-HdIJ62aF.js} +1 -1
- package/dist/{HSpinner-RGpoM6-h.mjs → HSpinner-bShjHynQ.mjs} +1 -1
- package/dist/{HTable-DBqYOBFv.js → HTable-BgZ-XAZx.js} +1 -1
- package/dist/{HTable-EjjZX5VV.mjs → HTable-BuGAaqrq.mjs} +1 -1
- package/dist/hisonvue.cjs.js +1 -1
- package/dist/hisonvue.css +1 -1
- package/dist/hisonvue.es.js +2 -2
- package/dist/{index-C3MEbk_F.mjs → index-BU8h1J_W.mjs} +1 -1
- package/dist/{index-CwePYZaW.js → index-BzCcaeiL.js} +1 -1
- package/dist/{setButtonCssEvent-B9b6lRmT.mjs → setButtonCssEvent-C-ESkC60.mjs} +1 -1
- package/dist/{setButtonCssEvent-Cza1WBk4.js → setButtonCssEvent-Oy4ojn9y.js} +1 -1
- package/package.json +1 -1
- package/dist/HChart-DjFP4QD3.mjs +0 -179
- package/dist/HChart-JkV5z9ZG.js +0 -1
- package/dist/HGrid-D2han0jb.js +0 -1
- package/dist/HNote-nxbvJZx8.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { resolveComponent as
|
|
2
|
-
import { H as
|
|
3
|
-
import { _ as
|
|
4
|
-
var
|
|
5
|
-
const
|
|
1
|
+
import { resolveComponent as ne, createElementBlock as m, openBlock as v, normalizeClass as V, createVNode as Ve, createCommentVNode as D, createSlots as Ie, withCtx as T, renderSlot as C, createTextVNode as z, toDisplayString as E, createElementVNode as H, Transition as Pe, createBlock as J, normalizeProps as Ke, mergeProps as Xe, normalizeStyle as R, Fragment as L, renderList as B, resolveDynamicComponent as ut, TransitionGroup as pt, withKeys as dt, withModifiers as ue, defineComponent as bt, ref as p, useSlots as kt, computed as Re, onMounted as Ct, onBeforeUnmount as _t, watch as b, nextTick as et, guardReactiveProps as Tt } from "vue";
|
|
2
|
+
import { H as tt, k as Mt, g as St, u as Et, l as x, n as de, m as ce, e as Ht, t as Ot, a as Wt, b as it, h as k, o as Fe, p as st, q as U, s as Le, v as Ye, d as Ne, r as Vt, c as At } from "./index-BU8h1J_W.mjs";
|
|
3
|
+
import { _ as jt } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
+
var Ft = Object.defineProperty, Lt = (t, e, s) => e in t ? Ft(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, Q = (t, e, s) => Lt(t, typeof e != "symbol" ? e + "" : e, s);
|
|
5
|
+
const Yt = (t, e, s) => {
|
|
6
6
|
const l = t[e];
|
|
7
7
|
return l ? typeof l == "function" ? l() : Promise.resolve(l) : new Promise((r, i) => {
|
|
8
8
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
@@ -15,34 +15,34 @@ const jt = (t, e, s) => {
|
|
|
15
15
|
);
|
|
16
16
|
});
|
|
17
17
|
};
|
|
18
|
-
let
|
|
19
|
-
class
|
|
18
|
+
let He, lt, at, q, Oe = {}, he = {};
|
|
19
|
+
class Nt {
|
|
20
20
|
constructor(e, s = !1) {
|
|
21
|
-
|
|
21
|
+
Q(this, "texts", {}), Q(this, "dateToMinutes", (l) => l.getHours() * 60 + l.getMinutes()), q = this, this._texts = e, !s && Date && !Date.prototype.addDays && this._initDatePrototypes();
|
|
22
22
|
}
|
|
23
23
|
_initDatePrototypes() {
|
|
24
24
|
Date.prototype.addDays = function(e) {
|
|
25
|
-
return
|
|
25
|
+
return q.addDays(this, e);
|
|
26
26
|
}, Date.prototype.subtractDays = function(e) {
|
|
27
|
-
return
|
|
27
|
+
return q.subtractDays(this, e);
|
|
28
28
|
}, Date.prototype.addHours = function(e) {
|
|
29
|
-
return
|
|
29
|
+
return q.addHours(this, e);
|
|
30
30
|
}, Date.prototype.subtractHours = function(e) {
|
|
31
|
-
return
|
|
31
|
+
return q.subtractHours(this, e);
|
|
32
32
|
}, Date.prototype.addMinutes = function(e) {
|
|
33
|
-
return
|
|
33
|
+
return q.addMinutes(this, e);
|
|
34
34
|
}, Date.prototype.subtractMinutes = function(e) {
|
|
35
|
-
return
|
|
35
|
+
return q.subtractMinutes(this, e);
|
|
36
36
|
}, Date.prototype.getWeek = function() {
|
|
37
|
-
return
|
|
37
|
+
return q.getWeek(this);
|
|
38
38
|
}, Date.prototype.isToday = function() {
|
|
39
|
-
return
|
|
39
|
+
return q.isToday(this);
|
|
40
40
|
}, Date.prototype.isLeapYear = function() {
|
|
41
|
-
return
|
|
41
|
+
return q.isLeapYear(this);
|
|
42
42
|
}, Date.prototype.format = function(e = "YYYY-MM-DD") {
|
|
43
|
-
return
|
|
43
|
+
return q.formatDate(this, e);
|
|
44
44
|
}, Date.prototype.formatTime = function(e = "HH:mm") {
|
|
45
|
-
return
|
|
45
|
+
return q.formatTime(this, e);
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
removePrototypes() {
|
|
@@ -54,7 +54,7 @@ class Ft {
|
|
|
54
54
|
// Cache Today's date (to a maximum) for better isToday() performances. Formatted without leading 0.
|
|
55
55
|
// We still need to update Today's date when Today changes without page refresh.
|
|
56
56
|
_todayFormatted() {
|
|
57
|
-
return
|
|
57
|
+
return lt !== (/* @__PURE__ */ new Date()).getDate() && (He = /* @__PURE__ */ new Date(), lt = He.getDate(), at = `${He.getFullYear()}-${He.getMonth()}-${He.getDate()}`), at;
|
|
58
58
|
}
|
|
59
59
|
// UTILITIES.
|
|
60
60
|
// ====================================================================
|
|
@@ -146,7 +146,7 @@ class Ft {
|
|
|
146
146
|
*/
|
|
147
147
|
formatDate(e, s = "YYYY-MM-DD", l = null) {
|
|
148
148
|
if (l || (l = this._texts), s || (s = "YYYY-MM-DD"), s === "YYYY-MM-DD") return this.formatDateLite(e);
|
|
149
|
-
|
|
149
|
+
Oe = {}, he = {};
|
|
150
150
|
const r = {
|
|
151
151
|
YYYY: () => this._hydrateDateObject(e, l).YYYY,
|
|
152
152
|
YY: () => this._hydrateDateObject(e, l).YY(),
|
|
@@ -199,7 +199,7 @@ class Ft {
|
|
|
199
199
|
h + d + c === 141 && (i = !0);
|
|
200
200
|
}
|
|
201
201
|
if (e instanceof Date && s === "HH:mm") return i ? "24:00" : this.formatTimeLite(e);
|
|
202
|
-
|
|
202
|
+
he = {}, l || (l = this._texts);
|
|
203
203
|
const o = this._hydrateTimeObject(e, l), n = s.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g, (h, d) => {
|
|
204
204
|
const c = o[d.replace(/\{|\}/g, "")];
|
|
205
205
|
return c !== void 0 ? c : d;
|
|
@@ -230,9 +230,9 @@ class Ft {
|
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
_hydrateDateObject(e, s) {
|
|
233
|
-
if (
|
|
233
|
+
if (Oe.D) return Oe;
|
|
234
234
|
const l = e.getFullYear(), r = e.getMonth() + 1, i = e.getDate(), n = (e.getDay() - 1 + 7) % 7;
|
|
235
|
-
return
|
|
235
|
+
return Oe = {
|
|
236
236
|
// Year.
|
|
237
237
|
YYYY: l,
|
|
238
238
|
// 2019.
|
|
@@ -265,14 +265,14 @@ class Ft {
|
|
|
265
265
|
// Mon to Sun.
|
|
266
266
|
dddd: () => s.weekDays[n]
|
|
267
267
|
// Monday to Sunday.
|
|
268
|
-
},
|
|
268
|
+
}, Oe;
|
|
269
269
|
}
|
|
270
270
|
_hydrateTimeObject(e, s) {
|
|
271
|
-
if (
|
|
271
|
+
if (he.am) return he;
|
|
272
272
|
let l, r;
|
|
273
273
|
e instanceof Date ? (l = e.getHours(), r = e.getMinutes()) : (l = Math.floor(e / 60), r = Math.floor(e % 60));
|
|
274
274
|
const i = l % 12 ? l % 12 : 12, o = (s || { am: "am", pm: "pm" })[l === 24 || l < 12 ? "am" : "pm"];
|
|
275
|
-
return
|
|
275
|
+
return he = {
|
|
276
276
|
H: l,
|
|
277
277
|
h: i,
|
|
278
278
|
HH: (l < 10 ? "0" : "") + l,
|
|
@@ -281,32 +281,32 @@ class Ft {
|
|
|
281
281
|
AM: o.toUpperCase(),
|
|
282
282
|
m: r,
|
|
283
283
|
mm: (r < 10 ? "0" : "") + r
|
|
284
|
-
},
|
|
284
|
+
}, he;
|
|
285
285
|
}
|
|
286
286
|
// ====================================================================
|
|
287
287
|
}
|
|
288
|
-
const
|
|
289
|
-
class
|
|
288
|
+
const Bt = 24 * 60;
|
|
289
|
+
class It {
|
|
290
290
|
constructor(e) {
|
|
291
|
-
|
|
291
|
+
Q(this, "_vuecal", null), Q(this, "selectCell", (s = !1, l, r) => {
|
|
292
292
|
this._vuecal.$emit("cell-click", r ? { date: l, split: r } : l), this._vuecal.clickToNavigate || s ? 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", r ? { date: l, split: r } : l)));
|
|
293
|
-
}),
|
|
293
|
+
}), Q(this, "keyPressEnterCell", (s, l) => {
|
|
294
294
|
this._vuecal.$emit("cell-keypress-enter", l ? { date: s, split: l } : s), this._vuecal.switchToNarrowerView();
|
|
295
|
-
}),
|
|
295
|
+
}), Q(this, "getPosition", (s) => {
|
|
296
296
|
const { left: l, top: r } = this._vuecal.cellsEl.getBoundingClientRect(), { clientX: i, clientY: o } = "ontouchstart" in window && s.touches ? s.touches[0] : s;
|
|
297
297
|
return { x: i - l, y: o - r };
|
|
298
|
-
}),
|
|
298
|
+
}), Q(this, "minutesAtCursor", (s) => {
|
|
299
299
|
let l = 0, r = { x: 0, y: 0 };
|
|
300
300
|
const { timeStep: i, timeCellHeight: o, timeFrom: n } = this._vuecal.$props;
|
|
301
|
-
return typeof s == "number" ? l = s : typeof s == "object" && (r = this.getPosition(s), l = Math.round(r.y * i / parseInt(o) + n)), { minutes: Math.max(Math.min(l,
|
|
301
|
+
return typeof s == "number" ? l = s : typeof s == "object" && (r = this.getPosition(s), l = Math.round(r.y * i / parseInt(o) + n)), { minutes: Math.max(Math.min(l, Bt), 0), cursorCoords: r };
|
|
302
302
|
}), this._vuecal = e;
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
|
-
const
|
|
306
|
-
let M, S,
|
|
307
|
-
class
|
|
305
|
+
const Pt = 2, Ue = 24 * 60;
|
|
306
|
+
let M, S, qe;
|
|
307
|
+
class xt {
|
|
308
308
|
constructor(e, s) {
|
|
309
|
-
|
|
309
|
+
Q(this, "_vuecal", null), Q(this, "eventDefaults", {
|
|
310
310
|
_eid: null,
|
|
311
311
|
start: "",
|
|
312
312
|
// Externally given formatted date & time or Date object.
|
|
@@ -345,7 +345,7 @@ class Bt {
|
|
|
345
345
|
createAnEvent(e, s, l) {
|
|
346
346
|
if (typeof e == "string" && (e = M.stringToDate(e)), !(e instanceof Date)) return !1;
|
|
347
347
|
const r = M.dateToMinutes(e);
|
|
348
|
-
s = s * 1 ||
|
|
348
|
+
s = s * 1 || Pt * 60;
|
|
349
349
|
const i = r + s, o = M.addMinutes(new Date(e), s);
|
|
350
350
|
l.end && (typeof l.end == "string" && (l.end = M.stringToDate(l.end)), l.endTimeMinutes = M.dateToMinutes(l.end));
|
|
351
351
|
const n = {
|
|
@@ -370,12 +370,12 @@ class Bt {
|
|
|
370
370
|
e.segments || (e.segments = {}, e.segments[M.formatDateLite(e.start)] = {
|
|
371
371
|
start: e.start,
|
|
372
372
|
startTimeMinutes: e.startTimeMinutes,
|
|
373
|
-
endTimeMinutes:
|
|
373
|
+
endTimeMinutes: Ue,
|
|
374
374
|
isFirstDay: !0,
|
|
375
375
|
isLastDay: !1
|
|
376
376
|
});
|
|
377
377
|
const s = e.segments[M.formatDateLite(e.end)];
|
|
378
|
-
s && (s.isLastDay = !1, s.endTimeMinutes =
|
|
378
|
+
s && (s.isLastDay = !1, s.endTimeMinutes = Ue);
|
|
379
379
|
const l = M.addDays(e.end, 1), r = M.formatDateLite(l);
|
|
380
380
|
return l.setHours(0, 0, 0, 0), e.segments[r] = {
|
|
381
381
|
start: l,
|
|
@@ -418,14 +418,14 @@ class Bt {
|
|
|
418
418
|
const A = M.addDays(new Date(d), 1).setHours(0, 0, 0, 0);
|
|
419
419
|
let g, Y, j, _;
|
|
420
420
|
if (e.repeat) {
|
|
421
|
-
const
|
|
421
|
+
const I = new Date(d), O = M.formatDateLite(I);
|
|
422
422
|
(h || e.occurrences && e.occurrences[O]) && (h || (o = e.occurrences[O].start, y = new Date(o).setHours(0, 0, 0, 0), n = e.occurrences[O].end), h = !0, w = !0), g = d === y, Y = O === M.formatDateLite(new Date(n)), j = new Date(g ? o : d), _ = M.formatDateLite(j), Y && (h = !1);
|
|
423
423
|
} else
|
|
424
424
|
w = !0, g = d === o, Y = c === n && A > c, j = g ? e.start : new Date(d), _ = M.formatDateLite(g ? e.start : j);
|
|
425
425
|
w && (e.segments[_] = {
|
|
426
426
|
start: j,
|
|
427
427
|
startTimeMinutes: g ? e.startTimeMinutes : 0,
|
|
428
|
-
endTimeMinutes: Y ? e.endTimeMinutes :
|
|
428
|
+
endTimeMinutes: Y ? e.endTimeMinutes : Ue,
|
|
429
429
|
isFirstDay: g,
|
|
430
430
|
isLastDay: Y
|
|
431
431
|
}), d = A;
|
|
@@ -445,8 +445,8 @@ class Bt {
|
|
|
445
445
|
// Will recalculate all the overlaps of the current cell OR split.
|
|
446
446
|
// cellEvents will contain only the current split events if in a split.
|
|
447
447
|
checkCellOverlappingEvents(e, s) {
|
|
448
|
-
|
|
449
|
-
|
|
448
|
+
qe = e.slice(0), S = {}, e.forEach((r) => {
|
|
449
|
+
qe.shift(), S[r._eid] || (S[r._eid] = { overlaps: [], start: r.start, position: 0 }), S[r._eid].position = 0, qe.forEach((i) => {
|
|
450
450
|
S[i._eid] || (S[i._eid] = { overlaps: [], start: i.start, position: 0 });
|
|
451
451
|
const o = this.eventInRange(i, r.start, r.end), n = s.overlapsPerTimeStep ? M.datesInSameTimeStep(r.start, i.start, s.timeStep) : 1;
|
|
452
452
|
if (!r.background && !r.allDay && !i.background && !i.allDay && o && n)
|
|
@@ -499,25 +499,25 @@ class Bt {
|
|
|
499
499
|
return r < l.getTime() && i > s.getTime();
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
const
|
|
502
|
+
const zt = { class: "vuecal__flex vuecal__weekdays-headings" }, Rt = ["onClick"], Ut = {
|
|
503
503
|
class: "vuecal__flex weekday-label",
|
|
504
504
|
grow: ""
|
|
505
|
-
},
|
|
505
|
+
}, qt = { class: "full" }, Kt = { class: "small" }, Xt = { class: "xsmall" }, Gt = { key: 0 }, Jt = {
|
|
506
506
|
key: 0,
|
|
507
507
|
class: "vuecal__flex vuecal__split-days-headers",
|
|
508
508
|
grow: ""
|
|
509
509
|
};
|
|
510
|
-
function
|
|
511
|
-
return v(), m("div",
|
|
512
|
-
(v(!0), m(L, null,
|
|
510
|
+
function Zt(t, e, s, l, r, i) {
|
|
511
|
+
return v(), m("div", zt, [
|
|
512
|
+
(v(!0), m(L, null, B(i.headings, (o, n) => (v(), m(L, { key: n }, [
|
|
513
513
|
o.hide ? D("", !0) : (v(), m("div", {
|
|
514
514
|
key: 0,
|
|
515
515
|
class: V(["vuecal__flex vuecal__heading", { today: o.today, clickable: i.cellHeadingsClickable }]),
|
|
516
|
-
style:
|
|
516
|
+
style: R(i.weekdayCellStyles),
|
|
517
517
|
onClick: (h) => i.view.id === "week" && i.selectCell(o.date, h),
|
|
518
518
|
onDblclick: e[0] || (e[0] = (h) => i.view.id === "week" && i.vuecal.dblclickToNavigate && s.switchToNarrowerView())
|
|
519
519
|
}, [
|
|
520
|
-
|
|
520
|
+
Ve(Pe, {
|
|
521
521
|
name: `slide-fade--${s.transitionDirection}`,
|
|
522
522
|
appear: i.vuecal.transitions
|
|
523
523
|
}, {
|
|
@@ -527,27 +527,27 @@ function Xt(t, e, s, l, r, i) {
|
|
|
527
527
|
column: "",
|
|
528
528
|
key: i.vuecal.transitions ? `${n}-${o.dayOfMonth}` : !1
|
|
529
529
|
}, [
|
|
530
|
-
H("div",
|
|
531
|
-
|
|
530
|
+
H("div", Ut, [
|
|
531
|
+
C(t.$slots, "weekday-heading", {
|
|
532
532
|
heading: i.cleanupHeading(o),
|
|
533
533
|
view: i.view
|
|
534
534
|
}, () => [
|
|
535
|
-
H("span",
|
|
536
|
-
H("span",
|
|
537
|
-
H("span",
|
|
538
|
-
o.dayOfMonth ? (v(), m("span",
|
|
535
|
+
H("span", qt, E(o.full), 1),
|
|
536
|
+
H("span", Kt, E(o.small), 1),
|
|
537
|
+
H("span", Xt, E(o.xsmall), 1),
|
|
538
|
+
o.dayOfMonth ? (v(), m("span", Gt, " " + E(o.dayOfMonth), 1)) : D("", !0)
|
|
539
539
|
])
|
|
540
540
|
]),
|
|
541
|
-
i.vuecal.hasSplits && i.vuecal.stickySplitLabels ? (v(), m("div",
|
|
542
|
-
(v(!0), m(L, null,
|
|
541
|
+
i.vuecal.hasSplits && i.vuecal.stickySplitLabels ? (v(), m("div", Jt, [
|
|
542
|
+
(v(!0), m(L, null, B(i.vuecal.daySplits, (h, d) => (v(), m("div", {
|
|
543
543
|
class: V(["day-split-header", h.class || !1]),
|
|
544
544
|
key: d
|
|
545
545
|
}, [
|
|
546
|
-
|
|
546
|
+
C(t.$slots, "split-label", {
|
|
547
547
|
split: h,
|
|
548
548
|
view: i.view
|
|
549
549
|
}, () => [
|
|
550
|
-
|
|
550
|
+
z(E(h.label), 1)
|
|
551
551
|
])
|
|
552
552
|
], 2))), 128))
|
|
553
553
|
])) : D("", !0)
|
|
@@ -555,16 +555,16 @@ function Xt(t, e, s, l, r, i) {
|
|
|
555
555
|
]),
|
|
556
556
|
_: 2
|
|
557
557
|
}, 1032, ["name", "appear"])
|
|
558
|
-
], 46,
|
|
558
|
+
], 46, Rt))
|
|
559
559
|
], 64))), 128))
|
|
560
560
|
]);
|
|
561
561
|
}
|
|
562
|
-
const
|
|
562
|
+
const ve = (t, e) => {
|
|
563
563
|
const s = t.__vccOpts || t;
|
|
564
564
|
for (const [l, r] of e)
|
|
565
565
|
s[l] = r;
|
|
566
566
|
return s;
|
|
567
|
-
},
|
|
567
|
+
}, Qt = {
|
|
568
568
|
inject: ["vuecal", "utils", "view"],
|
|
569
569
|
props: {
|
|
570
570
|
transitionDirection: { type: String, default: "right" },
|
|
@@ -616,26 +616,26 @@ const he = (t, e) => {
|
|
|
616
616
|
return this.view.id === "week" && (this.vuecal.clickToNavigate || this.vuecal.dblclickToNavigate);
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
},
|
|
619
|
+
}, ct = /* @__PURE__ */ ve(Qt, [["render", Zt]]), $t = { class: "vuecal__header" }, ei = {
|
|
620
620
|
key: 0,
|
|
621
621
|
class: "vuecal__flex vuecal__menu",
|
|
622
622
|
role: "tablist",
|
|
623
623
|
"aria-label": "Calendar views navigation"
|
|
624
|
-
},
|
|
624
|
+
}, ti = ["onDragenter", "onDragleave", "onClick", "aria-label"], ii = {
|
|
625
625
|
key: 1,
|
|
626
626
|
class: "vuecal__title-bar"
|
|
627
|
-
},
|
|
627
|
+
}, si = ["aria-label"], li = {
|
|
628
628
|
class: "vuecal__flex vuecal__title",
|
|
629
629
|
grow: ""
|
|
630
|
-
},
|
|
630
|
+
}, ai = ["aria-label"], ni = {
|
|
631
631
|
key: 0,
|
|
632
632
|
class: "vuecal__flex vuecal__split-days-headers"
|
|
633
633
|
};
|
|
634
|
-
function
|
|
635
|
-
const o =
|
|
636
|
-
return v(), m("div",
|
|
637
|
-
s.options.hideViewSelector ? D("", !0) : (v(), m("div",
|
|
638
|
-
(v(!0), m(L, null,
|
|
634
|
+
function ri(t, e, s, l, r, i) {
|
|
635
|
+
const o = ne("weekdays-headings");
|
|
636
|
+
return v(), m("div", $t, [
|
|
637
|
+
s.options.hideViewSelector ? D("", !0) : (v(), m("div", ei, [
|
|
638
|
+
(v(!0), m(L, null, B(s.viewProps.views, (n, h) => (v(), m(L, { key: h }, [
|
|
639
639
|
n.enabled ? (v(), m("button", {
|
|
640
640
|
key: 0,
|
|
641
641
|
class: V(["vuecal__view-btn", { "vuecal__view-btn--active": i.view.id === h, "vuecal__view-btn--highlighted": t.highlightedControl === h }]),
|
|
@@ -644,10 +644,10 @@ function li(t, e, s, l, r, i) {
|
|
|
644
644
|
onDragleave: (d) => s.editEvents.drag && i.dnd && i.dnd.viewSelectorDragLeave(d, h, t.$data),
|
|
645
645
|
onClick: (d) => i.switchView(h, null, !0),
|
|
646
646
|
"aria-label": `${n.label} view`
|
|
647
|
-
}, E(n.label), 43,
|
|
647
|
+
}, E(n.label), 43, ti)) : D("", !0)
|
|
648
648
|
], 64))), 128))
|
|
649
649
|
])),
|
|
650
|
-
s.options.hideTitleBar ? D("", !0) : (v(), m("div",
|
|
650
|
+
s.options.hideTitleBar ? D("", !0) : (v(), m("div", ii, [
|
|
651
651
|
H("button", {
|
|
652
652
|
class: V(["vuecal__arrow vuecal__arrow--prev", { "vuecal__arrow--highlighted": t.highlightedControl === "previous" }]),
|
|
653
653
|
type: "button",
|
|
@@ -656,21 +656,21 @@ function li(t, e, s, l, r, i) {
|
|
|
656
656
|
onDragleave: e[2] || (e[2] = (n) => s.editEvents.drag && i.dnd && i.dnd.viewSelectorDragLeave(n, "previous", t.$data)),
|
|
657
657
|
"aria-label": `Previous ${i.view.id}`
|
|
658
658
|
}, [
|
|
659
|
-
|
|
660
|
-
], 42,
|
|
661
|
-
H("div",
|
|
662
|
-
|
|
659
|
+
C(t.$slots, "arrow-prev")
|
|
660
|
+
], 42, si),
|
|
661
|
+
H("div", li, [
|
|
662
|
+
Ve(Pe, {
|
|
663
663
|
name: s.options.transitions ? `slide-fade--${i.transitionDirection}` : ""
|
|
664
664
|
}, {
|
|
665
665
|
default: T(() => [
|
|
666
|
-
(v(),
|
|
666
|
+
(v(), J(ut(i.broaderView ? "button" : "span"), {
|
|
667
667
|
type: !!i.broaderView && "button",
|
|
668
668
|
key: `${i.view.id}${i.view.startDate.toString()}`,
|
|
669
669
|
onClick: e[3] || (e[3] = (n) => !!i.broaderView && i.switchToBroaderView()),
|
|
670
670
|
"aria-label": !!i.broaderView && `Go to ${i.broaderView} view`
|
|
671
671
|
}, {
|
|
672
672
|
default: T(() => [
|
|
673
|
-
|
|
673
|
+
C(t.$slots, "title")
|
|
674
674
|
]),
|
|
675
675
|
_: 3
|
|
676
676
|
}, 8, ["type", "aria-label"]))
|
|
@@ -687,7 +687,7 @@ function li(t, e, s, l, r, i) {
|
|
|
687
687
|
onDragleave: e[6] || (e[6] = (n) => s.editEvents.drag && i.dnd && i.dnd.viewSelectorDragLeave(n, "today", t.$data)),
|
|
688
688
|
"aria-label": "Today"
|
|
689
689
|
}, [
|
|
690
|
-
|
|
690
|
+
C(t.$slots, "today-button")
|
|
691
691
|
], 34)) : D("", !0),
|
|
692
692
|
H("button", {
|
|
693
693
|
class: V(["vuecal__arrow vuecal__arrow--next", { "vuecal__arrow--highlighted": t.highlightedControl === "next" }]),
|
|
@@ -697,19 +697,19 @@ function li(t, e, s, l, r, i) {
|
|
|
697
697
|
onDragleave: e[9] || (e[9] = (n) => s.editEvents.drag && i.dnd && i.dnd.viewSelectorDragLeave(n, "next", t.$data)),
|
|
698
698
|
"aria-label": `Next ${i.view.id}`
|
|
699
699
|
}, [
|
|
700
|
-
|
|
701
|
-
], 42,
|
|
700
|
+
C(t.$slots, "arrow-next")
|
|
701
|
+
], 42, ai)
|
|
702
702
|
])),
|
|
703
|
-
s.viewProps.weekDaysInHeader ? (v(),
|
|
703
|
+
s.viewProps.weekDaysInHeader ? (v(), J(o, {
|
|
704
704
|
key: 2,
|
|
705
705
|
"week-days": s.weekDays,
|
|
706
706
|
"transition-direction": i.transitionDirection,
|
|
707
707
|
"switch-to-narrower-view": s.switchToNarrowerView
|
|
708
|
-
},
|
|
708
|
+
}, Ie({ _: 2 }, [
|
|
709
709
|
t.$slots["weekday-heading"] ? {
|
|
710
710
|
name: "weekday-heading",
|
|
711
711
|
fn: T(({ heading: n, view: h }) => [
|
|
712
|
-
|
|
712
|
+
C(t.$slots, "weekday-heading", {
|
|
713
713
|
heading: n,
|
|
714
714
|
view: h
|
|
715
715
|
})
|
|
@@ -719,7 +719,7 @@ function li(t, e, s, l, r, i) {
|
|
|
719
719
|
t.$slots["split-label"] ? {
|
|
720
720
|
name: "split-label",
|
|
721
721
|
fn: T(({ split: n }) => [
|
|
722
|
-
|
|
722
|
+
C(t.$slots, "split-label", {
|
|
723
723
|
split: n,
|
|
724
724
|
view: i.view
|
|
725
725
|
})
|
|
@@ -727,20 +727,20 @@ function li(t, e, s, l, r, i) {
|
|
|
727
727
|
key: "1"
|
|
728
728
|
} : void 0
|
|
729
729
|
]), 1032, ["week-days", "transition-direction", "switch-to-narrower-view"])) : D("", !0),
|
|
730
|
-
|
|
730
|
+
Ve(Pe, {
|
|
731
731
|
name: `slide-fade--${i.transitionDirection}`
|
|
732
732
|
}, {
|
|
733
733
|
default: T(() => [
|
|
734
|
-
i.showDaySplits ? (v(), m("div",
|
|
735
|
-
(v(!0), m(L, null,
|
|
734
|
+
i.showDaySplits ? (v(), m("div", ni, [
|
|
735
|
+
(v(!0), m(L, null, B(s.daySplits, (n, h) => (v(), m("div", {
|
|
736
736
|
class: V(["day-split-header", n.class || !1]),
|
|
737
737
|
key: h
|
|
738
738
|
}, [
|
|
739
|
-
|
|
739
|
+
C(t.$slots, "split-label", {
|
|
740
740
|
split: n,
|
|
741
741
|
view: i.view.id
|
|
742
742
|
}, () => [
|
|
743
|
-
|
|
743
|
+
z(E(n.label), 1)
|
|
744
744
|
])
|
|
745
745
|
], 2))), 128))
|
|
746
746
|
])) : D("", !0)
|
|
@@ -749,9 +749,9 @@ function li(t, e, s, l, r, i) {
|
|
|
749
749
|
}, 8, ["name"])
|
|
750
750
|
]);
|
|
751
751
|
}
|
|
752
|
-
const
|
|
752
|
+
const oi = {
|
|
753
753
|
inject: ["vuecal", "previous", "next", "switchView", "updateSelectedDate", "modules", "view"],
|
|
754
|
-
components: { WeekdaysHeadings:
|
|
754
|
+
components: { WeekdaysHeadings: ct },
|
|
755
755
|
props: {
|
|
756
756
|
// Vuecal main component options (props).
|
|
757
757
|
options: { type: Object, default: () => ({}) },
|
|
@@ -795,17 +795,17 @@ const ai = {
|
|
|
795
795
|
return this.modules.dnd;
|
|
796
796
|
}
|
|
797
797
|
}
|
|
798
|
-
},
|
|
799
|
-
function
|
|
798
|
+
}, ui = /* @__PURE__ */ ve(oi, [["render", ri]]), di = ["draggable"];
|
|
799
|
+
function ci(t, e, s, l, r, i) {
|
|
800
800
|
return v(), m("div", {
|
|
801
801
|
class: V(["vuecal__event", i.eventClasses]),
|
|
802
|
-
style:
|
|
802
|
+
style: R(i.eventStyles),
|
|
803
803
|
tabindex: "0",
|
|
804
804
|
onFocus: e[4] || (e[4] = (...o) => i.focusEvent && i.focusEvent(...o)),
|
|
805
|
-
onKeypress: e[5] || (e[5] =
|
|
805
|
+
onKeypress: e[5] || (e[5] = dt(ue((...o) => i.onEnterKeypress && i.onEnterKeypress(...o), ["stop"]), ["enter"])),
|
|
806
806
|
onMouseenter: e[6] || (e[6] = (...o) => i.onMouseEnter && i.onMouseEnter(...o)),
|
|
807
807
|
onMouseleave: e[7] || (e[7] = (...o) => i.onMouseLeave && i.onMouseLeave(...o)),
|
|
808
|
-
onTouchstart: e[8] || (e[8] =
|
|
808
|
+
onTouchstart: e[8] || (e[8] = ue((...o) => i.onTouchStart && i.onTouchStart(...o), ["stop"])),
|
|
809
809
|
onMousedown: e[9] || (e[9] = (o) => i.onMouseDown(o)),
|
|
810
810
|
onMouseup: e[10] || (e[10] = (...o) => i.onMouseUp && i.onMouseUp(...o)),
|
|
811
811
|
onTouchend: e[11] || (e[11] = (...o) => i.onMouseUp && i.onMouseUp(...o)),
|
|
@@ -818,10 +818,10 @@ function oi(t, e, s, l, r, i) {
|
|
|
818
818
|
i.vuecal.editEvents.delete && s.event.deletable ? (v(), m("div", {
|
|
819
819
|
key: 0,
|
|
820
820
|
class: "vuecal__event-delete",
|
|
821
|
-
onClick: e[0] || (e[0] =
|
|
822
|
-
onTouchstart: e[1] || (e[1] =
|
|
821
|
+
onClick: e[0] || (e[0] = ue((...o) => i.deleteEvent && i.deleteEvent(...o), ["stop"])),
|
|
822
|
+
onTouchstart: e[1] || (e[1] = ue((...o) => i.touchDeleteEvent && i.touchDeleteEvent(...o), ["stop"]))
|
|
823
823
|
}, E(i.vuecal.texts.deleteEvent), 33)) : D("", !0),
|
|
824
|
-
|
|
824
|
+
C(t.$slots, "event", {
|
|
825
825
|
event: s.event,
|
|
826
826
|
view: i.view.id
|
|
827
827
|
}),
|
|
@@ -829,12 +829,12 @@ function oi(t, e, s, l, r, i) {
|
|
|
829
829
|
key: 1,
|
|
830
830
|
class: "vuecal__event-resize-handle",
|
|
831
831
|
contenteditable: "false",
|
|
832
|
-
onMousedown: e[2] || (e[2] =
|
|
833
|
-
onTouchstart: e[3] || (e[3] =
|
|
832
|
+
onMousedown: e[2] || (e[2] = ue((...o) => i.onResizeHandleMouseDown && i.onResizeHandleMouseDown(...o), ["stop", "prevent"])),
|
|
833
|
+
onTouchstart: e[3] || (e[3] = ue((...o) => i.onResizeHandleMouseDown && i.onResizeHandleMouseDown(...o), ["stop", "prevent"]))
|
|
834
834
|
}, null, 32)) : D("", !0)
|
|
835
|
-
], 46,
|
|
835
|
+
], 46, di);
|
|
836
836
|
}
|
|
837
|
-
const
|
|
837
|
+
const hi = {
|
|
838
838
|
inject: ["vuecal", "utils", "modules", "view", "domEvents", "editEvents"],
|
|
839
839
|
props: {
|
|
840
840
|
cellFormattedDate: { type: String, default: "" },
|
|
@@ -1002,24 +1002,24 @@ const ui = {
|
|
|
1002
1002
|
return this.modules.dnd;
|
|
1003
1003
|
}
|
|
1004
1004
|
}
|
|
1005
|
-
},
|
|
1005
|
+
}, vi = /* @__PURE__ */ ve(hi, [["render", ci]]), mi = ["data-split", "aria-label", "onTouchstart", "onMousedown", "onDragover", "onDrop"], yi = {
|
|
1006
1006
|
key: 0,
|
|
1007
1007
|
class: "cell-time-labels"
|
|
1008
|
-
},
|
|
1008
|
+
}, fi = ["innerHTML"], wi = {
|
|
1009
1009
|
key: 2,
|
|
1010
1010
|
class: "vuecal__cell-events"
|
|
1011
|
-
},
|
|
1012
|
-
function
|
|
1013
|
-
const o =
|
|
1014
|
-
return v(),
|
|
1011
|
+
}, Di = ["title"];
|
|
1012
|
+
function gi(t, e, s, l, r, i) {
|
|
1013
|
+
const o = ne("event");
|
|
1014
|
+
return v(), J(pt, {
|
|
1015
1015
|
class: V(["vuecal__cell", i.cellClasses]),
|
|
1016
1016
|
name: `slide-fade--${i.transitionDirection}`,
|
|
1017
1017
|
tag: "div",
|
|
1018
1018
|
appear: s.options.transitions,
|
|
1019
|
-
style:
|
|
1019
|
+
style: R(i.cellStyles)
|
|
1020
1020
|
}, {
|
|
1021
1021
|
default: T(() => [
|
|
1022
|
-
(v(!0), m(L, null,
|
|
1022
|
+
(v(!0), m(L, null, B(i.splitsCount ? i.splits : 1, (n, h) => (v(), m("div", {
|
|
1023
1023
|
class: V(["vuecal__flex vuecal__cell-content", i.splitsCount && i.splitClasses(n)]),
|
|
1024
1024
|
key: s.options.transitions ? `${i.view.id}-${s.data.content}-${h}` : h,
|
|
1025
1025
|
"data-split": i.splitsCount ? n.id : !1,
|
|
@@ -1027,7 +1027,7 @@ function fi(t, e, s, l, r, i) {
|
|
|
1027
1027
|
tabindex: "0",
|
|
1028
1028
|
"aria-label": s.data.content,
|
|
1029
1029
|
onFocus: e[0] || (e[0] = (d) => i.onCellFocus(d)),
|
|
1030
|
-
onKeypress: e[1] || (e[1] =
|
|
1030
|
+
onKeypress: e[1] || (e[1] = dt((d) => i.onCellkeyPressEnter(d), ["enter"])),
|
|
1031
1031
|
onTouchstart: (d) => !i.isDisabled && i.onCellTouchStart(d, i.splitsCount ? n.id : null),
|
|
1032
1032
|
onMousedown: (d) => !i.isDisabled && i.onCellMouseDown(d, i.splitsCount ? n.id : null),
|
|
1033
1033
|
onClick: e[2] || (e[2] = (d) => !i.isDisabled && i.onCellClick(d)),
|
|
@@ -1038,29 +1038,29 @@ function fi(t, e, s, l, r, i) {
|
|
|
1038
1038
|
onDragleave: e[6] || (e[6] = (d) => !i.isDisabled && s.editEvents.drag && i.dnd && i.dnd.cellDragLeave(d, t.$data, s.data.startDate)),
|
|
1039
1039
|
onDrop: (d) => !i.isDisabled && s.editEvents.drag && i.dnd && i.dnd.cellDragDrop(d, t.$data, s.data.startDate, i.splitsCount ? n.id : null)
|
|
1040
1040
|
}, [
|
|
1041
|
-
s.options.showTimeInCells && s.options.time && i.isWeekOrDayView && !s.allDay ? (v(), m("div",
|
|
1042
|
-
(v(!0), m(L, null,
|
|
1041
|
+
s.options.showTimeInCells && s.options.time && i.isWeekOrDayView && !s.allDay ? (v(), m("div", yi, [
|
|
1042
|
+
(v(!0), m(L, null, B(i.vuecal.timeCells, (d, c) => (v(), m("span", {
|
|
1043
1043
|
class: "cell-time-label",
|
|
1044
1044
|
key: c
|
|
1045
1045
|
}, E(d.label), 1))), 128))
|
|
1046
1046
|
])) : D("", !0),
|
|
1047
|
-
i.isWeekOrDayView && !s.allDay && i.specialHours.length ? (v(!0), m(L, { key: 1 },
|
|
1047
|
+
i.isWeekOrDayView && !s.allDay && i.specialHours.length ? (v(!0), m(L, { key: 1 }, B(i.specialHours, (d, c) => (v(), m("div", {
|
|
1048
1048
|
class: V(["vuecal__special-hours", `vuecal__special-hours--day${d.day} ${d.class}`]),
|
|
1049
|
-
style:
|
|
1049
|
+
style: R(`height: ${d.height}px;top: ${d.top}px`)
|
|
1050
1050
|
}, [
|
|
1051
1051
|
d.label ? (v(), m("div", {
|
|
1052
1052
|
key: 0,
|
|
1053
1053
|
class: "special-hours-label",
|
|
1054
1054
|
innerHTML: d.label
|
|
1055
|
-
}, null, 8,
|
|
1055
|
+
}, null, 8, fi)) : D("", !0)
|
|
1056
1056
|
], 6))), 256)) : D("", !0),
|
|
1057
|
-
|
|
1057
|
+
C(t.$slots, "cell-content", {
|
|
1058
1058
|
events: i.events,
|
|
1059
1059
|
selectCell: (d) => i.selectCell(d, !0),
|
|
1060
1060
|
split: i.splitsCount ? n : !1
|
|
1061
1061
|
}),
|
|
1062
|
-
i.eventsCount && (i.isWeekOrDayView || i.view.id === "month" && s.options.eventsOnMonthView) ? (v(), m("div",
|
|
1063
|
-
(v(!0), m(L, null,
|
|
1062
|
+
i.eventsCount && (i.isWeekOrDayView || i.view.id === "month" && s.options.eventsOnMonthView) ? (v(), m("div", wi, [
|
|
1063
|
+
(v(!0), m(L, null, B(i.splitsCount ? n.events : i.events, (d, c) => (v(), J(o, {
|
|
1064
1064
|
key: c,
|
|
1065
1065
|
"cell-formatted-date": s.data.formattedDate,
|
|
1066
1066
|
event: d,
|
|
@@ -1071,7 +1071,7 @@ function fi(t, e, s, l, r, i) {
|
|
|
1071
1071
|
"overlaps-streak": i.splitsCount ? n.overlapsStreak : t.cellOverlapsStreak
|
|
1072
1072
|
}, {
|
|
1073
1073
|
event: T(({ event: y, view: w }) => [
|
|
1074
|
-
|
|
1074
|
+
C(t.$slots, "event", {
|
|
1075
1075
|
view: w,
|
|
1076
1076
|
event: y
|
|
1077
1077
|
})
|
|
@@ -1079,20 +1079,20 @@ function fi(t, e, s, l, r, i) {
|
|
|
1079
1079
|
_: 2
|
|
1080
1080
|
}, 1032, ["cell-formatted-date", "event", "all-day", "cell-events", "overlaps", "event-position", "overlaps-streak"]))), 128))
|
|
1081
1081
|
])) : D("", !0)
|
|
1082
|
-
], 42,
|
|
1082
|
+
], 42, mi))), 128)),
|
|
1083
1083
|
i.timelineVisible ? (v(), m("div", {
|
|
1084
1084
|
class: "vuecal__now-line",
|
|
1085
|
-
style:
|
|
1085
|
+
style: R(`top: ${i.todaysTimePosition}px`),
|
|
1086
1086
|
key: s.options.transitions ? `${i.view.id}-now-line` : "now-line",
|
|
1087
1087
|
title: i.utils.date.formatTime(i.vuecal.now)
|
|
1088
|
-
}, null, 12,
|
|
1088
|
+
}, null, 12, Di)) : D("", !0)
|
|
1089
1089
|
]),
|
|
1090
1090
|
_: 3
|
|
1091
1091
|
}, 8, ["class", "name", "appear", "style"]);
|
|
1092
1092
|
}
|
|
1093
|
-
const
|
|
1093
|
+
const pi = {
|
|
1094
1094
|
inject: ["vuecal", "utils", "modules", "view", "domEvents"],
|
|
1095
|
-
components: { Event:
|
|
1095
|
+
components: { Event: vi },
|
|
1096
1096
|
props: {
|
|
1097
1097
|
// Vue-cal main component options (props).
|
|
1098
1098
|
options: { type: Object, default: () => ({}) },
|
|
@@ -1325,26 +1325,26 @@ const wi = {
|
|
|
1325
1325
|
return this.options.timeCellHeight / this.options.timeStep;
|
|
1326
1326
|
}
|
|
1327
1327
|
}
|
|
1328
|
-
},
|
|
1328
|
+
}, ht = /* @__PURE__ */ ve(pi, [["render", gi]]), bi = {
|
|
1329
1329
|
key: 0,
|
|
1330
1330
|
class: "vuecal__all-day-text",
|
|
1331
1331
|
style: { width: "3em" }
|
|
1332
1332
|
};
|
|
1333
|
-
function
|
|
1334
|
-
const o =
|
|
1333
|
+
function ki(t, e, s, l, r, i) {
|
|
1334
|
+
const o = ne("vuecal-cell");
|
|
1335
1335
|
return v(), m("div", {
|
|
1336
1336
|
class: "vuecal__flex vuecal__all-day",
|
|
1337
|
-
style:
|
|
1337
|
+
style: R(s.cellOrSplitMinWidth && { height: s.height })
|
|
1338
1338
|
}, [
|
|
1339
|
-
s.cellOrSplitMinWidth ? D("", !0) : (v(), m("div",
|
|
1339
|
+
s.cellOrSplitMinWidth ? D("", !0) : (v(), m("div", bi, [
|
|
1340
1340
|
H("span", null, E(s.label), 1)
|
|
1341
1341
|
])),
|
|
1342
1342
|
H("div", {
|
|
1343
1343
|
class: V(["vuecal__flex vuecal__cells", `${i.view.id}-view`]),
|
|
1344
1344
|
grow: "",
|
|
1345
|
-
style:
|
|
1345
|
+
style: R(s.cellOrSplitMinWidth ? `min-width: ${s.cellOrSplitMinWidth}px` : "")
|
|
1346
1346
|
}, [
|
|
1347
|
-
(v(!0), m(L, null,
|
|
1347
|
+
(v(!0), m(L, null, B(s.cells, (n, h) => (v(), J(o, {
|
|
1348
1348
|
key: h,
|
|
1349
1349
|
options: s.options,
|
|
1350
1350
|
"edit-events": i.editEvents,
|
|
@@ -1356,7 +1356,7 @@ function gi(t, e, s, l, r, i) {
|
|
|
1356
1356
|
"cell-splits": s.daySplits
|
|
1357
1357
|
}, {
|
|
1358
1358
|
event: T(({ event: d, view: c }) => [
|
|
1359
|
-
|
|
1359
|
+
C(t.$slots, "event", {
|
|
1360
1360
|
view: c,
|
|
1361
1361
|
event: d
|
|
1362
1362
|
})
|
|
@@ -1366,9 +1366,9 @@ function gi(t, e, s, l, r, i) {
|
|
|
1366
1366
|
], 6)
|
|
1367
1367
|
], 4);
|
|
1368
1368
|
}
|
|
1369
|
-
const
|
|
1369
|
+
const Ci = {
|
|
1370
1370
|
inject: ["vuecal", "view", "editEvents"],
|
|
1371
|
-
components: { "vuecal-cell":
|
|
1371
|
+
components: { "vuecal-cell": ht },
|
|
1372
1372
|
props: {
|
|
1373
1373
|
// Vue-cal main component options (props).
|
|
1374
1374
|
options: { type: Object, required: !0 },
|
|
@@ -1384,46 +1384,46 @@ const pi = {
|
|
|
1384
1384
|
return !!(this.options.minCellWidth || this.daySplits.length && this.options.minSplitWidth);
|
|
1385
1385
|
}
|
|
1386
1386
|
}
|
|
1387
|
-
},
|
|
1387
|
+
}, _i = /* @__PURE__ */ ve(Ci, [["render", ki]]), Ti = ["lang"], Mi = { class: "default" }, Si = {
|
|
1388
1388
|
key: 0,
|
|
1389
1389
|
class: "vuecal__flex vuecal__body",
|
|
1390
1390
|
grow: ""
|
|
1391
|
-
},
|
|
1391
|
+
}, Ei = ["onBlur", "innerHTML"], Hi = ["innerHTML"], Oi = ["innerHTML"], Wi = {
|
|
1392
1392
|
class: "vuecal__flex",
|
|
1393
1393
|
row: "",
|
|
1394
1394
|
grow: ""
|
|
1395
|
-
},
|
|
1395
|
+
}, Vi = {
|
|
1396
1396
|
key: 0,
|
|
1397
1397
|
class: "vuecal__time-column"
|
|
1398
|
-
},
|
|
1398
|
+
}, Ai = { class: "vuecal__time-cell-label" }, ji = {
|
|
1399
1399
|
key: 1,
|
|
1400
1400
|
class: "vuecal__flex vuecal__week-numbers",
|
|
1401
1401
|
column: ""
|
|
1402
|
-
},
|
|
1402
|
+
}, Fi = ["wrap", "column"], Li = ["onBlur", "innerHTML"], Yi = ["innerHTML"], Ni = ["innerHTML"], Bi = ["wrap"], Ii = ["innerHTML"], Pi = ["innerHTML"], xi = {
|
|
1403
1403
|
key: 2,
|
|
1404
1404
|
class: "vuecal__cell-events-count"
|
|
1405
|
-
},
|
|
1405
|
+
}, zi = {
|
|
1406
1406
|
key: 3,
|
|
1407
1407
|
class: "vuecal__no-event"
|
|
1408
|
-
},
|
|
1408
|
+
}, Ri = ["onBlur", "innerHTML"], Ui = ["innerHTML"], qi = {
|
|
1409
1409
|
key: 2,
|
|
1410
1410
|
class: "vuecal__event-time"
|
|
1411
|
-
},
|
|
1411
|
+
}, Ki = { key: 0 }, Xi = {
|
|
1412
1412
|
key: 1,
|
|
1413
1413
|
class: "days-to-end"
|
|
1414
|
-
},
|
|
1414
|
+
}, Gi = ["innerHTML"], Ji = {
|
|
1415
1415
|
key: 0,
|
|
1416
1416
|
class: "vuecal__scrollbar-check"
|
|
1417
1417
|
};
|
|
1418
|
-
function
|
|
1419
|
-
const o =
|
|
1418
|
+
function Zi(t, e, s, l, r, i) {
|
|
1419
|
+
const o = ne("vuecal-header"), n = ne("all-day-bar"), h = ne("weekdays-headings"), d = ne("vuecal-cell");
|
|
1420
1420
|
return v(), m("div", {
|
|
1421
1421
|
class: V(["vuecal__flex vuecal", i.cssClasses]),
|
|
1422
1422
|
column: "",
|
|
1423
1423
|
ref: "vuecal",
|
|
1424
1424
|
lang: s.locale
|
|
1425
1425
|
}, [
|
|
1426
|
-
|
|
1426
|
+
Ve(o, {
|
|
1427
1427
|
options: t.$props,
|
|
1428
1428
|
"edit-events": i.editEvents,
|
|
1429
1429
|
"view-props": { views: i.views, weekDaysInHeader: i.weekDaysInHeader },
|
|
@@ -1431,32 +1431,32 @@ function Xi(t, e, s, l, r, i) {
|
|
|
1431
1431
|
"has-splits": i.hasSplits,
|
|
1432
1432
|
"day-splits": i.daySplits,
|
|
1433
1433
|
"switch-to-narrower-view": i.switchToNarrowerView
|
|
1434
|
-
},
|
|
1434
|
+
}, Ie({
|
|
1435
1435
|
"arrow-prev": T(() => [
|
|
1436
|
-
|
|
1437
|
-
e[0] || (e[0] =
|
|
1436
|
+
C(t.$slots, "arrow-prev", {}, () => [
|
|
1437
|
+
e[0] || (e[0] = z(" ")),
|
|
1438
1438
|
e[1] || (e[1] = H("i", { class: "angle" }, null, -1)),
|
|
1439
|
-
e[2] || (e[2] =
|
|
1439
|
+
e[2] || (e[2] = z(" "))
|
|
1440
1440
|
])
|
|
1441
1441
|
]),
|
|
1442
1442
|
"arrow-next": T(() => [
|
|
1443
|
-
|
|
1444
|
-
e[3] || (e[3] =
|
|
1443
|
+
C(t.$slots, "arrow-next", {}, () => [
|
|
1444
|
+
e[3] || (e[3] = z(" ")),
|
|
1445
1445
|
e[4] || (e[4] = H("i", { class: "angle" }, null, -1)),
|
|
1446
|
-
e[5] || (e[5] =
|
|
1446
|
+
e[5] || (e[5] = z(" "))
|
|
1447
1447
|
])
|
|
1448
1448
|
]),
|
|
1449
1449
|
"today-button": T(() => [
|
|
1450
|
-
|
|
1451
|
-
H("span",
|
|
1450
|
+
C(t.$slots, "today-button", {}, () => [
|
|
1451
|
+
H("span", Mi, E(r.texts.today), 1)
|
|
1452
1452
|
])
|
|
1453
1453
|
]),
|
|
1454
1454
|
title: T(() => [
|
|
1455
|
-
|
|
1455
|
+
C(t.$slots, "title", {
|
|
1456
1456
|
title: i.viewTitle,
|
|
1457
1457
|
view: r.view
|
|
1458
1458
|
}, () => [
|
|
1459
|
-
|
|
1459
|
+
z(E(i.viewTitle), 1)
|
|
1460
1460
|
])
|
|
1461
1461
|
]),
|
|
1462
1462
|
_: 2
|
|
@@ -1464,7 +1464,7 @@ function Xi(t, e, s, l, r, i) {
|
|
|
1464
1464
|
t.$slots["weekday-heading"] ? {
|
|
1465
1465
|
name: "weekday-heading",
|
|
1466
1466
|
fn: T(({ heading: c, view: y }) => [
|
|
1467
|
-
|
|
1467
|
+
C(t.$slots, "weekday-heading", {
|
|
1468
1468
|
heading: c,
|
|
1469
1469
|
view: y
|
|
1470
1470
|
})
|
|
@@ -1474,7 +1474,7 @@ function Xi(t, e, s, l, r, i) {
|
|
|
1474
1474
|
t.$slots["split-label"] ? {
|
|
1475
1475
|
name: "split-label",
|
|
1476
1476
|
fn: T(({ split: c }) => [
|
|
1477
|
-
|
|
1477
|
+
C(t.$slots, "split-label", {
|
|
1478
1478
|
split: c,
|
|
1479
1479
|
view: r.view.id
|
|
1480
1480
|
})
|
|
@@ -1482,8 +1482,8 @@ function Xi(t, e, s, l, r, i) {
|
|
|
1482
1482
|
key: "1"
|
|
1483
1483
|
} : void 0
|
|
1484
1484
|
]), 1032, ["options", "edit-events", "view-props", "week-days", "has-splits", "day-splits", "switch-to-narrower-view"]),
|
|
1485
|
-
s.hideBody ? D("", !0) : (v(), m("div",
|
|
1486
|
-
|
|
1485
|
+
s.hideBody ? D("", !0) : (v(), m("div", Si, [
|
|
1486
|
+
Ve(Pe, {
|
|
1487
1487
|
name: `slide-fade--${r.transitionDirection}`,
|
|
1488
1488
|
appear: s.transitions
|
|
1489
1489
|
}, {
|
|
@@ -1494,9 +1494,9 @@ function Xi(t, e, s, l, r, i) {
|
|
|
1494
1494
|
key: s.transitions ? r.view.id : !1,
|
|
1495
1495
|
column: ""
|
|
1496
1496
|
}, [
|
|
1497
|
-
s.showAllDayEvents && i.hasTimeColumn && (!i.cellOrSplitMinWidth || i.isDayView && !s.minSplitWidth) ? (v(),
|
|
1497
|
+
s.showAllDayEvents && i.hasTimeColumn && (!i.cellOrSplitMinWidth || i.isDayView && !s.minSplitWidth) ? (v(), J(n, Ke(Xe({ key: 0 }, i.allDayBar)), {
|
|
1498
1498
|
event: T(({ event: c, view: y }) => [
|
|
1499
|
-
|
|
1499
|
+
C(t.$slots, "event", {
|
|
1500
1500
|
view: y,
|
|
1501
1501
|
event: c
|
|
1502
1502
|
}, () => [
|
|
@@ -1506,16 +1506,16 @@ function Xi(t, e, s, l, r, i) {
|
|
|
1506
1506
|
contenteditable: "",
|
|
1507
1507
|
onBlur: (w) => i.onEventTitleBlur(w, c),
|
|
1508
1508
|
innerHTML: c.title
|
|
1509
|
-
}, null, 40,
|
|
1509
|
+
}, null, 40, Ei)) : c.title ? (v(), m("div", {
|
|
1510
1510
|
key: 1,
|
|
1511
1511
|
class: "vuecal__event-title",
|
|
1512
1512
|
innerHTML: c.title
|
|
1513
|
-
}, null, 8,
|
|
1513
|
+
}, null, 8, Hi)) : D("", !0),
|
|
1514
1514
|
c.content && !i.hasShortEvents && !i.isShortMonthView ? (v(), m("div", {
|
|
1515
1515
|
key: 2,
|
|
1516
1516
|
class: "vuecal__event-content",
|
|
1517
1517
|
innerHTML: c.content
|
|
1518
|
-
}, null, 8,
|
|
1518
|
+
}, null, 8, Oi)) : D("", !0)
|
|
1519
1519
|
])
|
|
1520
1520
|
]),
|
|
1521
1521
|
_: 3
|
|
@@ -1524,39 +1524,39 @@ function Xi(t, e, s, l, r, i) {
|
|
|
1524
1524
|
class: V(["vuecal__bg", { vuecal__flex: !i.hasTimeColumn }]),
|
|
1525
1525
|
column: ""
|
|
1526
1526
|
}, [
|
|
1527
|
-
H("div",
|
|
1528
|
-
i.hasTimeColumn ? (v(), m("div",
|
|
1527
|
+
H("div", Wi, [
|
|
1528
|
+
i.hasTimeColumn ? (v(), m("div", Vi, [
|
|
1529
1529
|
s.showAllDayEvents && i.cellOrSplitMinWidth && !(i.isDayView && !s.minSplitWidth) ? (v(), m("div", {
|
|
1530
1530
|
key: 0,
|
|
1531
1531
|
class: "vuecal__all-day-text",
|
|
1532
|
-
style:
|
|
1532
|
+
style: R({ height: i.allDayBar.height })
|
|
1533
1533
|
}, [
|
|
1534
1534
|
H("span", null, E(r.texts.allDay), 1)
|
|
1535
1535
|
], 4)) : D("", !0),
|
|
1536
|
-
(v(!0), m(L, null,
|
|
1536
|
+
(v(!0), m(L, null, B(i.timeCells, (c, y) => (v(), m("div", {
|
|
1537
1537
|
class: "vuecal__time-cell",
|
|
1538
1538
|
key: y,
|
|
1539
|
-
style:
|
|
1539
|
+
style: R(`height: ${s.timeCellHeight}px`)
|
|
1540
1540
|
}, [
|
|
1541
|
-
|
|
1541
|
+
C(t.$slots, "time-cell", {
|
|
1542
1542
|
hours: c.hours,
|
|
1543
1543
|
minutes: c.minutes
|
|
1544
1544
|
}, () => [
|
|
1545
1545
|
e[6] || (e[6] = H("span", { class: "vuecal__time-cell-line" }, null, -1)),
|
|
1546
|
-
H("span",
|
|
1546
|
+
H("span", Ai, E(c.label), 1)
|
|
1547
1547
|
])
|
|
1548
1548
|
], 4))), 128))
|
|
1549
1549
|
])) : D("", !0),
|
|
1550
|
-
s.showWeekNumbers && i.isMonthView ? (v(), m("div",
|
|
1551
|
-
(v(), m(L, null,
|
|
1550
|
+
s.showWeekNumbers && i.isMonthView ? (v(), m("div", ji, [
|
|
1551
|
+
(v(), m(L, null, B(6, (c) => H("div", {
|
|
1552
1552
|
class: "vuecal__flex vuecal__week-number-cell",
|
|
1553
1553
|
key: c,
|
|
1554
1554
|
grow: ""
|
|
1555
1555
|
}, [
|
|
1556
|
-
|
|
1556
|
+
C(t.$slots, "week-number-cell", {
|
|
1557
1557
|
week: i.getWeekNumber(c - 1)
|
|
1558
1558
|
}, () => [
|
|
1559
|
-
|
|
1559
|
+
z(E(i.getWeekNumber(c - 1)), 1)
|
|
1560
1560
|
])
|
|
1561
1561
|
])), 64))
|
|
1562
1562
|
])) : D("", !0),
|
|
@@ -1566,17 +1566,17 @@ function Xi(t, e, s, l, r, i) {
|
|
|
1566
1566
|
wrap: !i.cellOrSplitMinWidth || !i.isWeekView,
|
|
1567
1567
|
column: !!i.cellOrSplitMinWidth
|
|
1568
1568
|
}, [
|
|
1569
|
-
i.cellOrSplitMinWidth && i.isWeekView ? (v(),
|
|
1569
|
+
i.cellOrSplitMinWidth && i.isWeekView ? (v(), J(h, {
|
|
1570
1570
|
key: 0,
|
|
1571
1571
|
"transition-direction": r.transitionDirection,
|
|
1572
1572
|
"week-days": i.weekDays,
|
|
1573
1573
|
"switch-to-narrower-view": i.switchToNarrowerView,
|
|
1574
|
-
style:
|
|
1575
|
-
},
|
|
1574
|
+
style: R(i.cellOrSplitMinWidth ? `min-width: ${i.cellOrSplitMinWidth}px` : "")
|
|
1575
|
+
}, Ie({ _: 2 }, [
|
|
1576
1576
|
t.$slots["weekday-heading"] ? {
|
|
1577
1577
|
name: "weekday-heading",
|
|
1578
1578
|
fn: T(({ heading: c, view: y }) => [
|
|
1579
|
-
|
|
1579
|
+
C(t.$slots, "weekday-heading", {
|
|
1580
1580
|
heading: c,
|
|
1581
1581
|
view: y
|
|
1582
1582
|
})
|
|
@@ -1586,7 +1586,7 @@ function Xi(t, e, s, l, r, i) {
|
|
|
1586
1586
|
t.$slots["split-label"] ? {
|
|
1587
1587
|
name: "split-label",
|
|
1588
1588
|
fn: T(({ split: c }) => [
|
|
1589
|
-
|
|
1589
|
+
C(t.$slots, "split-label", {
|
|
1590
1590
|
split: c,
|
|
1591
1591
|
view: r.view.id
|
|
1592
1592
|
})
|
|
@@ -1596,23 +1596,23 @@ function Xi(t, e, s, l, r, i) {
|
|
|
1596
1596
|
]), 1032, ["transition-direction", "week-days", "switch-to-narrower-view", "style"])) : i.hasSplits && s.stickySplitLabels && s.minSplitWidth ? (v(), m("div", {
|
|
1597
1597
|
key: 1,
|
|
1598
1598
|
class: "vuecal__flex vuecal__split-days-headers",
|
|
1599
|
-
style:
|
|
1599
|
+
style: R(i.cellOrSplitMinWidth ? `min-width: ${i.cellOrSplitMinWidth}px` : "")
|
|
1600
1600
|
}, [
|
|
1601
|
-
(v(!0), m(L, null,
|
|
1601
|
+
(v(!0), m(L, null, B(i.daySplits, (c, y) => (v(), m("div", {
|
|
1602
1602
|
class: V(["day-split-header", c.class || !1]),
|
|
1603
1603
|
key: y
|
|
1604
1604
|
}, [
|
|
1605
|
-
|
|
1605
|
+
C(t.$slots, "split-label", {
|
|
1606
1606
|
split: c,
|
|
1607
1607
|
view: r.view.id
|
|
1608
1608
|
}, () => [
|
|
1609
|
-
|
|
1609
|
+
z(E(c.label), 1)
|
|
1610
1610
|
])
|
|
1611
1611
|
], 2))), 128))
|
|
1612
1612
|
], 4)) : D("", !0),
|
|
1613
|
-
s.showAllDayEvents && i.hasTimeColumn && (i.isWeekView && i.cellOrSplitMinWidth || i.isDayView && i.hasSplits && s.minSplitWidth) ? (v(),
|
|
1613
|
+
s.showAllDayEvents && i.hasTimeColumn && (i.isWeekView && i.cellOrSplitMinWidth || i.isDayView && i.hasSplits && s.minSplitWidth) ? (v(), J(n, Ke(Xe({ key: 2 }, i.allDayBar)), {
|
|
1614
1614
|
event: T(({ event: c, view: y }) => [
|
|
1615
|
-
|
|
1615
|
+
C(t.$slots, "event", {
|
|
1616
1616
|
view: y,
|
|
1617
1617
|
event: c
|
|
1618
1618
|
}, () => [
|
|
@@ -1622,16 +1622,16 @@ function Xi(t, e, s, l, r, i) {
|
|
|
1622
1622
|
contenteditable: "",
|
|
1623
1623
|
onBlur: (w) => i.onEventTitleBlur(w, c),
|
|
1624
1624
|
innerHTML: c.title
|
|
1625
|
-
}, null, 40,
|
|
1625
|
+
}, null, 40, Li)) : c.title ? (v(), m("div", {
|
|
1626
1626
|
key: 1,
|
|
1627
1627
|
class: "vuecal__event-title",
|
|
1628
1628
|
innerHTML: c.title
|
|
1629
|
-
}, null, 8,
|
|
1629
|
+
}, null, 8, Yi)) : D("", !0),
|
|
1630
1630
|
c.content && !i.hasShortEvents && !i.isShortMonthView ? (v(), m("div", {
|
|
1631
1631
|
key: 2,
|
|
1632
1632
|
class: "vuecal__event-content",
|
|
1633
1633
|
innerHTML: c.content
|
|
1634
|
-
}, null, 8,
|
|
1634
|
+
}, null, 8, Ni)) : D("", !0)
|
|
1635
1635
|
])
|
|
1636
1636
|
]),
|
|
1637
1637
|
_: 3
|
|
@@ -1641,9 +1641,9 @@ function Xi(t, e, s, l, r, i) {
|
|
|
1641
1641
|
ref: (c) => r.cellsEl = c,
|
|
1642
1642
|
grow: "",
|
|
1643
1643
|
wrap: !i.cellOrSplitMinWidth || !i.isWeekView,
|
|
1644
|
-
style:
|
|
1644
|
+
style: R(i.cellOrSplitMinWidth ? `min-width: ${i.cellOrSplitMinWidth}px` : "")
|
|
1645
1645
|
}, [
|
|
1646
|
-
(v(!0), m(L, null,
|
|
1646
|
+
(v(!0), m(L, null, B(i.viewCells, (c, y) => (v(), J(d, {
|
|
1647
1647
|
key: y,
|
|
1648
1648
|
options: t.$props,
|
|
1649
1649
|
"edit-events": i.editEvents,
|
|
@@ -1654,7 +1654,7 @@ function Xi(t, e, s, l, r, i) {
|
|
|
1654
1654
|
"cell-splits": i.hasSplits && i.daySplits || []
|
|
1655
1655
|
}, {
|
|
1656
1656
|
"cell-content": T(({ events: w, split: A, selectCell: g }) => [
|
|
1657
|
-
|
|
1657
|
+
C(t.$slots, "cell-content", {
|
|
1658
1658
|
cell: c,
|
|
1659
1659
|
view: r.view,
|
|
1660
1660
|
goNarrower: g,
|
|
@@ -1664,29 +1664,29 @@ function Xi(t, e, s, l, r, i) {
|
|
|
1664
1664
|
key: 0,
|
|
1665
1665
|
class: "split-label",
|
|
1666
1666
|
innerHTML: A.label
|
|
1667
|
-
}, null, 8,
|
|
1667
|
+
}, null, 8, Ii)) : D("", !0),
|
|
1668
1668
|
c.content ? (v(), m("div", {
|
|
1669
1669
|
key: 1,
|
|
1670
1670
|
class: "vuecal__cell-date",
|
|
1671
1671
|
innerHTML: c.content
|
|
1672
|
-
}, null, 8,
|
|
1673
|
-
(i.isMonthView && !s.eventsOnMonthView || i.isYearsOrYearView && s.eventsCountOnYearView) && w.length ? (v(), m("div",
|
|
1674
|
-
|
|
1672
|
+
}, null, 8, Pi)) : D("", !0),
|
|
1673
|
+
(i.isMonthView && !s.eventsOnMonthView || i.isYearsOrYearView && s.eventsCountOnYearView) && w.length ? (v(), m("div", xi, [
|
|
1674
|
+
C(t.$slots, "events-count", {
|
|
1675
1675
|
view: r.view,
|
|
1676
1676
|
events: w
|
|
1677
1677
|
}, () => [
|
|
1678
|
-
|
|
1678
|
+
z(E(w.length), 1)
|
|
1679
1679
|
])
|
|
1680
1680
|
])) : D("", !0),
|
|
1681
|
-
!i.cellOrSplitHasEvents(w, A) && i.isWeekOrDayView ? (v(), m("div",
|
|
1682
|
-
|
|
1683
|
-
|
|
1681
|
+
!i.cellOrSplitHasEvents(w, A) && i.isWeekOrDayView ? (v(), m("div", zi, [
|
|
1682
|
+
C(t.$slots, "no-event", {}, () => [
|
|
1683
|
+
z(E(r.texts.noEvent), 1)
|
|
1684
1684
|
])
|
|
1685
1685
|
])) : D("", !0)
|
|
1686
1686
|
])
|
|
1687
1687
|
]),
|
|
1688
1688
|
event: T(({ event: w, view: A }) => [
|
|
1689
|
-
|
|
1689
|
+
C(t.$slots, "event", {
|
|
1690
1690
|
view: A,
|
|
1691
1691
|
event: w
|
|
1692
1692
|
}, () => [
|
|
@@ -1696,45 +1696,45 @@ function Xi(t, e, s, l, r, i) {
|
|
|
1696
1696
|
contenteditable: "",
|
|
1697
1697
|
onBlur: (g) => i.onEventTitleBlur(g, w),
|
|
1698
1698
|
innerHTML: w.title
|
|
1699
|
-
}, null, 40,
|
|
1699
|
+
}, null, 40, Ri)) : w.title ? (v(), m("div", {
|
|
1700
1700
|
key: 1,
|
|
1701
1701
|
class: "vuecal__event-title",
|
|
1702
1702
|
innerHTML: w.title
|
|
1703
|
-
}, null, 8,
|
|
1704
|
-
s.time && !w.allDay && !(i.isMonthView && (w.allDay || s.showAllDayEvents === "short")) && !i.isShortMonthView ? (v(), m("div",
|
|
1705
|
-
|
|
1706
|
-
w.endTimeMinutes ? (v(), m("span",
|
|
1707
|
-
w.daysCount > 1 && (w.segments[c.formattedDate] || {}).isFirstDay ? (v(), m("small",
|
|
1703
|
+
}, null, 8, Ui)) : D("", !0),
|
|
1704
|
+
s.time && !w.allDay && !(i.isMonthView && (w.allDay || s.showAllDayEvents === "short")) && !i.isShortMonthView ? (v(), m("div", qi, [
|
|
1705
|
+
z(E(r.utils.date.formatTime(w.start, i.TimeFormat)), 1),
|
|
1706
|
+
w.endTimeMinutes ? (v(), m("span", Ki, " - " + E(r.utils.date.formatTime(w.end, i.TimeFormat, null, !0)), 1)) : D("", !0),
|
|
1707
|
+
w.daysCount > 1 && (w.segments[c.formattedDate] || {}).isFirstDay ? (v(), m("small", Xi, " +" + E(w.daysCount - 1) + E((r.texts.day[0] || "").toLowerCase()), 1)) : D("", !0)
|
|
1708
1708
|
])) : D("", !0),
|
|
1709
1709
|
w.content && !(i.isMonthView && w.allDay && s.showAllDayEvents === "short") && !i.isShortMonthView ? (v(), m("div", {
|
|
1710
1710
|
key: 3,
|
|
1711
1711
|
class: "vuecal__event-content",
|
|
1712
1712
|
innerHTML: w.content
|
|
1713
|
-
}, null, 8,
|
|
1713
|
+
}, null, 8, Gi)) : D("", !0)
|
|
1714
1714
|
])
|
|
1715
1715
|
]),
|
|
1716
1716
|
"no-event": T(() => [
|
|
1717
|
-
|
|
1718
|
-
|
|
1717
|
+
C(t.$slots, "no-event", {}, () => [
|
|
1718
|
+
z(E(r.texts.noEvent), 1)
|
|
1719
1719
|
])
|
|
1720
1720
|
]),
|
|
1721
1721
|
_: 2
|
|
1722
1722
|
}, 1032, ["options", "edit-events", "data", "cell-width", "min-timestamp", "max-timestamp", "cell-splits"]))), 128))
|
|
1723
|
-
], 12,
|
|
1724
|
-
], 10,
|
|
1723
|
+
], 12, Bi)
|
|
1724
|
+
], 10, Fi)
|
|
1725
1725
|
])
|
|
1726
1726
|
], 2)
|
|
1727
1727
|
]))
|
|
1728
1728
|
]),
|
|
1729
1729
|
_: 3
|
|
1730
1730
|
}, 8, ["name", "appear"]),
|
|
1731
|
-
r.ready ? D("", !0) : (v(), m("div",
|
|
1731
|
+
r.ready ? D("", !0) : (v(), m("div", Ji, e[7] || (e[7] = [
|
|
1732
1732
|
H("div", null, null, -1)
|
|
1733
1733
|
])))
|
|
1734
1734
|
]))
|
|
1735
|
-
], 10,
|
|
1735
|
+
], 10, Ti);
|
|
1736
1736
|
}
|
|
1737
|
-
const
|
|
1737
|
+
const We = 24 * 60, Be = {
|
|
1738
1738
|
weekDays: Array(7).fill(""),
|
|
1739
1739
|
weekDaysShort: [],
|
|
1740
1740
|
months: Array(12).fill(""),
|
|
@@ -1751,9 +1751,9 @@ const Oe = 24 * 60, Fe = {
|
|
|
1751
1751
|
dateFormat: "dddd MMMM D, YYYY",
|
|
1752
1752
|
am: "am",
|
|
1753
1753
|
pm: "pm"
|
|
1754
|
-
},
|
|
1754
|
+
}, nt = ["years", "year", "month", "week", "day"], rt = new Nt(Be), Qi = {
|
|
1755
1755
|
name: "vue-cal",
|
|
1756
|
-
components: { "vuecal-cell":
|
|
1756
|
+
components: { "vuecal-cell": ht, "vuecal-header": ui, WeekdaysHeadings: ct, AllDayBar: _i },
|
|
1757
1757
|
// By Vue design, passing props loses the reactivity unless it's a method or reactive OBJECT.
|
|
1758
1758
|
provide() {
|
|
1759
1759
|
return {
|
|
@@ -1824,7 +1824,7 @@ const Oe = 24 * 60, Fe = {
|
|
|
1824
1824
|
// In minutes.
|
|
1825
1825
|
timeStep: { type: Number, default: 60 },
|
|
1826
1826
|
// In minutes.
|
|
1827
|
-
timeTo: { type: Number, default:
|
|
1827
|
+
timeTo: { type: Number, default: We },
|
|
1828
1828
|
// In minutes.
|
|
1829
1829
|
todayButton: { type: Boolean, default: !1 },
|
|
1830
1830
|
transitions: { type: Boolean, default: !0 },
|
|
@@ -1838,10 +1838,10 @@ const Oe = 24 * 60, Fe = {
|
|
|
1838
1838
|
ready: !1,
|
|
1839
1839
|
// Is vue-cal ready.
|
|
1840
1840
|
// Make texts reactive before a locale is loaded.
|
|
1841
|
-
texts: { ...
|
|
1841
|
+
texts: { ...Be },
|
|
1842
1842
|
utils: {
|
|
1843
1843
|
// Remove prototypes ASAP if the user wants so.
|
|
1844
|
-
date: (this.disableDatePrototypes ?
|
|
1844
|
+
date: (this.disableDatePrototypes ? rt.removePrototypes() : !1) || rt,
|
|
1845
1845
|
cell: null,
|
|
1846
1846
|
// Note: Destructuring class method loses the `this` context and Vue Cal becomes inaccessible
|
|
1847
1847
|
// from the event utils function. Don't do:
|
|
@@ -1942,11 +1942,11 @@ const Oe = 24 * 60, Fe = {
|
|
|
1942
1942
|
*/
|
|
1943
1943
|
async loadLocale(t) {
|
|
1944
1944
|
if (typeof this.locale == "object") {
|
|
1945
|
-
this.texts = Object.assign({},
|
|
1945
|
+
this.texts = Object.assign({}, Be, t), this.utils.date.updateTexts(this.texts);
|
|
1946
1946
|
return;
|
|
1947
1947
|
}
|
|
1948
|
-
const e = await
|
|
1949
|
-
this.texts = Object.assign({},
|
|
1948
|
+
const e = await Yt(/* @__PURE__ */ Object.assign({ "./i18n/ar.json": () => import("./ar.es-XxSuE68c.mjs"), "./i18n/bg.json": () => import("./bg.es-BJ7fu6yy.mjs"), "./i18n/bn.json": () => import("./bn.es-CYlBkxc5.mjs"), "./i18n/bs.json": () => import("./bs.es-yMnaKmdi.mjs"), "./i18n/ca.json": () => import("./ca.es-DIhlxmQc.mjs"), "./i18n/cs.json": () => import("./cs.es-BN8oxRXQ.mjs"), "./i18n/da.json": () => import("./da.es-DJB5lAli.mjs"), "./i18n/de.json": () => import("./de.es-glb8GeJh.mjs"), "./i18n/el.json": () => import("./el.es-_bBZf22h.mjs"), "./i18n/en.json": () => import("./en.es-CV9nmQGr.mjs"), "./i18n/es.json": () => import("./es.es-CZjcWK54.mjs"), "./i18n/et.json": () => import("./et.es-CjvQAzNF.mjs"), "./i18n/fa.json": () => import("./fa.es-DykeFwDA.mjs"), "./i18n/fi.json": () => import("./fi.es-Bl7Pp7AO.mjs"), "./i18n/fr.json": () => import("./fr.es-CNKVhFfO.mjs"), "./i18n/he.json": () => import("./he.es-nF4GFhjH.mjs"), "./i18n/hr.json": () => import("./hr.es-QFfz660j.mjs"), "./i18n/hu.json": () => import("./hu.es-Ck2rE01V.mjs"), "./i18n/id.json": () => import("./id.es-Je7FEUJ5.mjs"), "./i18n/is.json": () => import("./is.es-bzprHvXI.mjs"), "./i18n/it.json": () => import("./it.es-CJtfqmNS.mjs"), "./i18n/ja.json": () => import("./ja.es-BaiGjqZ6.mjs"), "./i18n/ka.json": () => import("./ka.es-x9QJo_dl.mjs"), "./i18n/ko.json": () => import("./ko.es-6c447eTS.mjs"), "./i18n/lt.json": () => import("./lt.es-2twYdvmJ.mjs"), "./i18n/mn.json": () => import("./mn.es-BLQRG1uu.mjs"), "./i18n/nl.json": () => import("./nl.es-bB1qWR_S.mjs"), "./i18n/no.json": () => import("./no.es-CWDVXpTf.mjs"), "./i18n/pl.json": () => import("./pl.es-Dzct23w9.mjs"), "./i18n/pt-br.json": () => import("./pt-br.es-BeBuiitI.mjs"), "./i18n/pt-pt.json": () => import("./pt-pt.es-BeBuiitI.mjs"), "./i18n/ro.json": () => import("./ro.es-DfMVJ30M.mjs"), "./i18n/ru.json": () => import("./ru.es-Bv9UvrBe.mjs"), "./i18n/sk.json": () => import("./sk.es-CUOTpLuL.mjs"), "./i18n/sl.json": () => import("./sl.es-DeIGgZbR.mjs"), "./i18n/sq.json": () => import("./sq.es-CQJJrZHv.mjs"), "./i18n/sr.json": () => import("./sr.es-CKS0AkiW.mjs"), "./i18n/sv.json": () => import("./sv.es-ChHQRrAe.mjs"), "./i18n/tr.json": () => import("./tr.es-B3v90gVv.mjs"), "./i18n/uk.json": () => import("./uk.es-CiR4NnbN.mjs"), "./i18n/vi.json": () => import("./vi.es-DFDi5l7p.mjs"), "./i18n/zh-cn.json": () => import("./zh-cn.es-9cbEAuAi.mjs"), "./i18n/zh-hk.json": () => import("./zh-hk.es-z0tio4jE.mjs") }), `./i18n/${t}.json`, 3);
|
|
1949
|
+
this.texts = Object.assign({}, Be, e), this.utils.date.updateTexts(this.texts);
|
|
1950
1950
|
},
|
|
1951
1951
|
/**
|
|
1952
1952
|
* Only import drag and drop module on demand to keep a small library weight.
|
|
@@ -1966,8 +1966,8 @@ const Oe = 24 * 60, Fe = {
|
|
|
1966
1966
|
* @return {String} a valid view.
|
|
1967
1967
|
*/
|
|
1968
1968
|
validateView(t) {
|
|
1969
|
-
return
|
|
1970
|
-
A valid view must be one of: ${
|
|
1969
|
+
return nt.includes(t) || (console.error(`Vue Cal: invalid active-view parameter provided: "${t}".
|
|
1970
|
+
A valid view must be one of: ${nt.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;
|
|
1971
1971
|
},
|
|
1972
1972
|
/**
|
|
1973
1973
|
* On click/dblclick of a cell go to a narrower view if available.
|
|
@@ -2176,16 +2176,16 @@ A valid view must be one of: ${it.join(", ")}.`), t = "week"), this.enabledViews
|
|
|
2176
2176
|
const { event: d, start: c } = i, y = this.isDOMElementAnEvent(t.target), w = e.mousedUp;
|
|
2177
2177
|
if (e.mousedUp = !1, y && (this.domEvents.cancelClickEventCreation = !0), r.eventCreated) return;
|
|
2178
2178
|
if (n) {
|
|
2179
|
-
const { originalEnd: g, originalEndTimeMinutes: Y, endTimeMinutes: j } = s, _ = this.view.events.find((
|
|
2179
|
+
const { originalEnd: g, originalEndTimeMinutes: Y, endTimeMinutes: j } = s, _ = this.view.events.find((I) => I._eid === s._eid);
|
|
2180
2180
|
if (h = j && j !== Y, _ && _.end.getTime() !== g.getTime()) {
|
|
2181
|
-
const
|
|
2182
|
-
|
|
2183
|
-
const O = this.cleanupEvent(_),
|
|
2181
|
+
const I = this.mutableEvents.find(($) => $._eid === s._eid);
|
|
2182
|
+
I.endTimeMinutes = _.endTimeMinutes, I.end = _.end;
|
|
2183
|
+
const O = this.cleanupEvent(_), K = {
|
|
2184
2184
|
...this.cleanupEvent(_),
|
|
2185
2185
|
end: g,
|
|
2186
2186
|
endTimeMinutes: _.originalEndTimeMinutes
|
|
2187
2187
|
};
|
|
2188
|
-
this.$emit("event-duration-change", { event: O, oldDate: s.originalEnd, originalEvent:
|
|
2188
|
+
this.$emit("event-duration-change", { event: O, oldDate: s.originalEnd, originalEvent: K }), this.$emit("event-change", { event: O, originalEvent: K });
|
|
2189
2189
|
}
|
|
2190
2190
|
_ && (_.resizing = !1), s._eid = null, s.start = null, s.split = null, s.segment = null, s.originalEndTimeMinutes = null, s.originalEnd = null, s.endTimeMinutes = null, s.startCell = null, s.endCell = null;
|
|
2191
2191
|
} else c && (d && (this.emitWithEvent("event-drag-create", d), i.event.resizing = !1), i.start = null, i.split = null, i.event = null);
|
|
@@ -2215,7 +2215,7 @@ A valid view must be one of: ${it.join(", ")}.`), t = "week"), this.enabledViews
|
|
|
2215
2215
|
const d = s.endTimeMinutes + this.snapToTime / 2;
|
|
2216
2216
|
s.endTimeMinutes = d - d % this.snapToTime;
|
|
2217
2217
|
}
|
|
2218
|
-
if (i && (i.endTimeMinutes = s.endTimeMinutes), s.end.setHours(0, s.endTimeMinutes, s.endTimeMinutes ===
|
|
2218
|
+
if (i && (i.endTimeMinutes = s.endTimeMinutes), s.end.setHours(0, s.endTimeMinutes, s.endTimeMinutes === We ? -1 : 0, 0), this.resizeX && this.isWeekView) {
|
|
2219
2219
|
s.daysCount = o.countDays(s.start, s.end);
|
|
2220
2220
|
const d = this.cellsEl, c = d.offsetWidth / d.childElementCount, y = Math.floor(r.x / c);
|
|
2221
2221
|
if (e.startCell === null && (e.startCell = y - (s.daysCount - 1)), e.endCell !== y) {
|
|
@@ -2238,7 +2238,7 @@ A valid view must be one of: ${it.join(", ")}.`), t = "week"), this.enabledViews
|
|
|
2238
2238
|
const { dragCreateAnEvent: e } = this.domEvents, { start: s, startCursorY: l, split: r } = e, i = new Date(s), { minutes: o, cursorCoords: { y: n } } = this.minutesAtCursor(t);
|
|
2239
2239
|
if (!(!e.event && Math.abs(l - n) < this.dragToCreateThreshold))
|
|
2240
2240
|
if (e.event) {
|
|
2241
|
-
if (i.setHours(0, o, o ===
|
|
2241
|
+
if (i.setHours(0, o, o === We ? -1 : 0, 0), this.snapToTime) {
|
|
2242
2242
|
let c = i.getHours() * 60 + i.getMinutes();
|
|
2243
2243
|
const y = c + this.snapToTime / 2;
|
|
2244
2244
|
c = y - y % this.snapToTime, i.setHours(0, c, 0, 0);
|
|
@@ -2298,7 +2298,7 @@ A valid view must be one of: ${it.join(", ")}.`), t = "week"), this.enabledViews
|
|
|
2298
2298
|
let i = null;
|
|
2299
2299
|
typeof e.end == "string" && e.end.includes("24:00") ? (i = new Date(e.end.replace(" 24:00", "")), i.setHours(23, 59, 59, 0)) : i = typeof e.end == "string" ? t.stringToDate(e.end) : e.end;
|
|
2300
2300
|
let o = t.formatDateLite(i), n = t.dateToMinutes(i);
|
|
2301
|
-
(!n || n ===
|
|
2301
|
+
(!n || n === We) && (!this.time || typeof e.end == "string" && e.end.length === 10 ? i.setHours(23, 59, 59, 0) : i.setSeconds(i.getSeconds() - 1), o = t.formatDateLite(i), n = We);
|
|
2302
2302
|
const h = l !== o;
|
|
2303
2303
|
e = Object.assign({ ...this.utils.event.eventDefaults }, e, {
|
|
2304
2304
|
// Keep the event ids scoped to this calendar instance.
|
|
@@ -2444,7 +2444,7 @@ A valid view must be one of: ${it.join(", ")}.`), t = "week"), this.enabledViews
|
|
|
2444
2444
|
}
|
|
2445
2445
|
},
|
|
2446
2446
|
created() {
|
|
2447
|
-
this.utils.cell = new
|
|
2447
|
+
this.utils.cell = new It(this), this.utils.event = new xt(this, this.utils.date), this.loadLocale(this.locale), this.editEvents.drag && this.loadDragAndDrop(), this.updateMutableEvents(this.events), this.view.id = this.currentView, this.selectedDate ? this.updateSelectedDate(this.selectedDate) : (this.view.selectedDate = /* @__PURE__ */ new Date(), this.switchView(this.currentView)), this.time && this.watchRealTime && (this.timeTickerIds[0] = setTimeout(this.timeTick, (60 - this.now.getSeconds()) * 1e3));
|
|
2448
2448
|
},
|
|
2449
2449
|
mounted() {
|
|
2450
2450
|
const t = this.utils.date, e = "ontouchstart" in window, { resize: s, drag: l, create: r, delete: i, title: o } = this.editEvents, n = this.onEventClick && typeof this.onEventClick == "function";
|
|
@@ -2783,7 +2783,7 @@ A valid view must be one of: ${it.join(", ")}.`), t = "week"), this.enabledViews
|
|
|
2783
2783
|
this.switchView(t);
|
|
2784
2784
|
}
|
|
2785
2785
|
}
|
|
2786
|
-
},
|
|
2786
|
+
}, ot = /* @__PURE__ */ ve(Qi, [["render", Zi]]), $i = {
|
|
2787
2787
|
/**
|
|
2788
2788
|
* Unique identifier for the calendar component.
|
|
2789
2789
|
* - Use `hison.component.getCalendar(id)` to access methods at runtime.
|
|
@@ -2925,7 +2925,7 @@ A valid view must be one of: ${it.join(", ")}.`), t = "week"), this.enabledViews
|
|
|
2925
2925
|
timeFormat: {
|
|
2926
2926
|
type: String,
|
|
2927
2927
|
required: !1,
|
|
2928
|
-
validator: (t) => t == null ||
|
|
2928
|
+
validator: (t) => t == null || Mt.includes(t)
|
|
2929
2929
|
},
|
|
2930
2930
|
/**
|
|
2931
2931
|
* Time axis start (minutes from 0..1440).
|
|
@@ -2967,7 +2967,7 @@ A valid view must be one of: ${it.join(", ")}.`), t = "week"), this.enabledViews
|
|
|
2967
2967
|
activeView: {
|
|
2968
2968
|
type: String,
|
|
2969
2969
|
required: !1,
|
|
2970
|
-
validator: (t) => t == null ||
|
|
2970
|
+
validator: (t) => t == null || tt.includes(t)
|
|
2971
2971
|
},
|
|
2972
2972
|
/**
|
|
2973
2973
|
* List of views to disable in navigation.
|
|
@@ -2976,12 +2976,12 @@ A valid view must be one of: ${it.join(", ")}.`), t = "week"), this.enabledViews
|
|
|
2976
2976
|
disableViews: {
|
|
2977
2977
|
type: Array,
|
|
2978
2978
|
required: !1,
|
|
2979
|
-
validator: (t) => t == null || Array.isArray(t) && t.every((e) =>
|
|
2979
|
+
validator: (t) => t == null || Array.isArray(t) && t.every((e) => tt.includes(e))
|
|
2980
2980
|
}
|
|
2981
|
-
},
|
|
2981
|
+
}, es = bt({
|
|
2982
2982
|
name: "HCalendar",
|
|
2983
|
-
components: { VueCal:
|
|
2984
|
-
props:
|
|
2983
|
+
components: { VueCal: ot },
|
|
2984
|
+
props: $i,
|
|
2985
2985
|
emits: [
|
|
2986
2986
|
"responsive-change",
|
|
2987
2987
|
"cell-click",
|
|
@@ -2989,353 +2989,363 @@ A valid view must be one of: ${it.join(", ")}.`), t = "week"), this.enabledViews
|
|
|
2989
2989
|
"mounted"
|
|
2990
2990
|
],
|
|
2991
2991
|
setup(t, { emit: e, attrs: s }) {
|
|
2992
|
-
const l = t.id ||
|
|
2992
|
+
const l = t.id || St(), r = `hcalendar:${l}`, i = p(null), o = p(null), n = Et(), h = kt(), d = Re(() => Object.keys(h)), c = p(t.visible), y = p(t.disable), w = Re(() => c.value ? "" : "hison-display-none"), A = Re(() => y.value ? "hison-disable-calendar" : ""), g = p(x.utils.getJSDateObject(t.selectedDate) ?? /* @__PURE__ */ new Date()), Y = g.value, j = p(t.events ?? []), _ = p(t.weekendColor ? de(t.weekendColor) : void 0), I = p(t.weekendDays), O = p(t.selectedColor ? de(t.selectedColor) : void 0), K = p(t.showTodayColor), $ = p(t.specialTime ?? {}), re = p(t.dateCellMinHeight), te = p(t.dateCellMaxHeight), me = p(t.disableDays), ye = p(t.eventsOnMonthView), fe = p(t.hideWeekdays), we = p(t.hideWeekends), De = p(t.locale), X = p(
|
|
2993
2993
|
y.value ? "100-01-01" : t.maxDate
|
|
2994
|
-
),
|
|
2994
|
+
), ie = p(t.minDate), oe = p(t.startWeekOnSunday), ge = p(t.time), pe = p(t.timeCellHeight), be = p(t.timeFormat), ke = p(t.timeFrom), Ce = p(t.timeStep), _e = p(t.timeTo), Te = p(t.hideTitleBar), Me = p(t.twelveHour), xe = p(t.activeView), Se = p(t.disableViews), G = p([]), Ae = p(!0), je = p(!1), N = p(!1), se = () => {
|
|
2995
2995
|
var a;
|
|
2996
|
-
if (
|
|
2996
|
+
if (G.value = Ht(Ot(t.class) || "", n.value), Wt(G.value, "col") === -1 && G.value.push("hison-col-12"), it(G.value, "size", k.componentStyle.size), it(G.value, "color", "primary"), (a = i.value) != null && a.$el) {
|
|
2997
2997
|
const u = i.value.$el;
|
|
2998
|
-
let f =
|
|
2999
|
-
const W =
|
|
3000
|
-
switch ((!f ||
|
|
3001
|
-
case
|
|
2998
|
+
let f = Fe(G.value, "color");
|
|
2999
|
+
const W = Fe(G.value, "size");
|
|
3000
|
+
switch ((!f || !st(f)) && (f = "primary"), u.style.setProperty("--vuecal-filled-back-color", k.componentStyle.componentColor[`${f}`].buttonColor), u.style.setProperty("--vuecal-filled-font-color", k.componentStyle.componentColor[`${f}`].filledTextColor), k.componentStyle.invertColor ? (u.style.setProperty("--vuecal-empty-back-color", k.componentStyle.emptyInvertColor), u.style.setProperty("--vuecal-empty-font-color", k.componentStyle.emptyTextInvertColor), u.style.setProperty("--vuecal-empty-disabled-color", U(k.componentStyle.emptyTextInvertColor, 0.3)), u.style.setProperty("--vuecal-empty-out-of-scope-font-color", U(k.componentStyle.emptyTextInvertColor, 0.5)), u.style.setProperty("--vuecal-selected-back-color", O.value ? Le(O.value) : U(k.componentStyle.componentColor[`${f}`].buttonColor, 0.5)), u.style.setProperty("--vuecal-weekend-back-color", _.value ? Le(_.value) : null), u.style.setProperty("--vuecal-today-back-color", K.value ? U(k.componentStyle.componentColor[`${f}`].buttonColor, 0.3) : k.componentStyle.emptyInvertColor)) : (u.style.setProperty("--vuecal-empty-back-color", k.componentStyle.emptyColor), u.style.setProperty("--vuecal-empty-font-color", k.componentStyle.emptyTextColor), u.style.setProperty("--vuecal-empty-disabled-color", U(k.componentStyle.emptyTextColor, 0.3)), u.style.setProperty("--vuecal-empty-out-of-scope-font-color", U(k.componentStyle.emptyTextColor, 0.5)), u.style.setProperty("--vuecal-selected-back-color", O.value ? O.value : U(k.componentStyle.componentColor[`${f}`].buttonColor, 0.5)), u.style.setProperty("--vuecal-weekend-back-color", _.value ? _.value : null), u.style.setProperty("--vuecal-today-back-color", K.value ? U(k.componentStyle.componentColor[`${f}`].buttonColor, 0.3) : k.componentStyle.emptyColor)), W) {
|
|
3001
|
+
case Ye.xl:
|
|
3002
3002
|
u.style.setProperty("--vuecal-header-font-size", "0.9em"), u.style.setProperty("--vuecal-title-button-font-size", "1em"), u.style.setProperty("--vuecal-body-font-size", "0.9em"), u.style.setProperty("--vuecal-no-event-font-size", "0.8em");
|
|
3003
3003
|
break;
|
|
3004
|
-
case
|
|
3004
|
+
case Ye.l:
|
|
3005
3005
|
u.style.setProperty("--vuecal-header-font-size", "0.75em"), u.style.setProperty("--vuecal-title-button-font-size", "1em"), u.style.setProperty("--vuecal-body-font-size", "0.9em"), u.style.setProperty("--vuecal-no-event-font-size", "0.8em");
|
|
3006
3006
|
break;
|
|
3007
|
-
case
|
|
3007
|
+
case Ye.m:
|
|
3008
3008
|
u.style.setProperty("--vuecal-header-font-size", "0.7em"), u.style.setProperty("--vuecal-title-button-font-size", "0.6em"), u.style.setProperty("--vuecal-body-font-size", "0.8em"), u.style.setProperty("--vuecal-no-event-font-size", "0.7em");
|
|
3009
3009
|
break;
|
|
3010
|
-
case
|
|
3010
|
+
case Ye.s:
|
|
3011
3011
|
u.style.setProperty("--vuecal-header-font-size", "0.6em"), u.style.setProperty("--vuecal-title-button-font-size", "0.5em"), u.style.setProperty("--vuecal-body-font-size", "0.8em"), u.style.setProperty("--vuecal-no-event-font-size", "0.7em");
|
|
3012
3012
|
break;
|
|
3013
3013
|
}
|
|
3014
3014
|
u.style.setProperty("--calendar-clickable-cursor", y.value ? "not-allowed" : null);
|
|
3015
3015
|
}
|
|
3016
|
-
},
|
|
3016
|
+
}, vt = (a) => {
|
|
3017
3017
|
const u = /pm/i.test(a), f = /am/i.test(a), W = a.replace(/[^\d:]/g, "").trim();
|
|
3018
|
-
let F = 0,
|
|
3018
|
+
let F = 0, Z = 0;
|
|
3019
3019
|
if (W.includes(":")) {
|
|
3020
|
-
const [
|
|
3021
|
-
F = parseInt(
|
|
3020
|
+
const [P, ae] = W.split(":");
|
|
3021
|
+
F = parseInt(P, 10), Z = parseInt(ae, 10);
|
|
3022
3022
|
} else {
|
|
3023
|
-
const
|
|
3024
|
-
|
|
3023
|
+
const P = parseInt(W, 10);
|
|
3024
|
+
P <= 12 && (f || u) || P <= 23 ? F = P : Z = P;
|
|
3025
3025
|
}
|
|
3026
|
-
return u && F < 12 && (F += 12), f && F === 12 && (F = 0), F * 60 +
|
|
3027
|
-
},
|
|
3028
|
-
if (!i.value) return;
|
|
3029
|
-
const u = i.value.$el, f = a ??
|
|
3030
|
-
if (
|
|
3031
|
-
const W = f.getDay(), F =
|
|
3032
|
-
|
|
3033
|
-
const
|
|
3034
|
-
if (
|
|
3035
|
-
const
|
|
3036
|
-
let
|
|
3037
|
-
F.some(({ from:
|
|
3038
|
-
const
|
|
3039
|
-
return
|
|
3040
|
-
}) &&
|
|
3026
|
+
return u && F < 12 && (F += 12), f && F === 12 && (F = 0), F * 60 + Z;
|
|
3027
|
+
}, ee = (a) => {
|
|
3028
|
+
if (!i.value || N.value) return;
|
|
3029
|
+
const u = i.value.$el, f = a ?? x.utils.getJSDateObject(g.value);
|
|
3030
|
+
if ($.value && f) {
|
|
3031
|
+
const W = f.getDay(), F = $.value[W], Z = u.querySelectorAll(".vuecal__time-cell");
|
|
3032
|
+
Z.length > 0 && F && Array.isArray(F) ? Z.forEach((P) => {
|
|
3033
|
+
const ae = P.querySelector(".vuecal__time-cell-label");
|
|
3034
|
+
if (ae) {
|
|
3035
|
+
const ft = ae.textContent, Qe = vt(ft);
|
|
3036
|
+
let ze = "";
|
|
3037
|
+
F.some(({ from: wt, to: Dt, className: gt }) => {
|
|
3038
|
+
const $e = wt <= Qe && Qe <= Dt;
|
|
3039
|
+
return $e && (ze = gt ?? ""), $e;
|
|
3040
|
+
}) && P.classList.add(ze || "special_time");
|
|
3041
3041
|
}
|
|
3042
|
-
}) :
|
|
3043
|
-
|
|
3044
|
-
|
|
3042
|
+
}) : Z.forEach((P) => {
|
|
3043
|
+
P.classList.forEach((ae) => {
|
|
3044
|
+
ae !== "vuecal__time-cell" && P.classList.remove(ae);
|
|
3045
3045
|
});
|
|
3046
3046
|
});
|
|
3047
3047
|
}
|
|
3048
|
-
},
|
|
3049
|
-
if (a ===
|
|
3050
|
-
const u = i.value.$el, f =
|
|
3051
|
-
W.length > 0 && W.forEach((F,
|
|
3052
|
-
f.includes(
|
|
3048
|
+
}, le = (a) => {
|
|
3049
|
+
if (!N.value && (a === ce.month || a === ce.week)) {
|
|
3050
|
+
const u = i.value.$el, f = I.value ? I.value : oe.value ? [0, 6] : [5, 6], W = u.querySelectorAll(".vuecal__heading");
|
|
3051
|
+
W.length > 0 && W.forEach((F, Z) => {
|
|
3052
|
+
f.includes(Z) ? F.classList.add("weekend") : F.classList.remove("weekend");
|
|
3053
3053
|
});
|
|
3054
3054
|
}
|
|
3055
|
-
},
|
|
3055
|
+
}, Ee = (a) => {
|
|
3056
|
+
if (!i.value || N.value) return;
|
|
3056
3057
|
const u = i.value.$el;
|
|
3057
|
-
u.style.setProperty("--vuecal-cell-content-min_heihgt", a === "month" &&
|
|
3058
|
-
},
|
|
3059
|
-
if (!i.value) return;
|
|
3058
|
+
u.style.setProperty("--vuecal-cell-content-min_heihgt", a === "month" && re.value ? re.value + "px" : null), u.style.setProperty("--vuecal-cell-content-max_heihgt", a === "month" && te.value ? te.value + "px" : null), u.style.setProperty("--vuecal-cell-content-overflow", a === "month" && te.value ? "auto" : null);
|
|
3059
|
+
}, Ge = (a) => {
|
|
3060
|
+
if (!i.value || N.value) return;
|
|
3060
3061
|
const u = a ?? i.value.view.id;
|
|
3061
|
-
_.value &&
|
|
3062
|
-
},
|
|
3063
|
-
|
|
3064
|
-
},
|
|
3062
|
+
_.value && et(() => le(u)), Ee(u);
|
|
3063
|
+
}, mt = (a) => {
|
|
3064
|
+
N.value || (Ge(a.view), a.view === ce.day ? ee(a.startDate) : a.view === ce.week && ee(), xe.value = a.view, e("view-change", a));
|
|
3065
|
+
}, yt = (a) => {
|
|
3065
3066
|
var f;
|
|
3067
|
+
if (N.value) return;
|
|
3066
3068
|
const u = a instanceof Date ? a : a.date;
|
|
3067
3069
|
y.value ? (g.value = Y, (f = i.value) == null || f.updateSelectedDate(Y)) : (g.value = u, e("cell-click", u));
|
|
3068
|
-
},
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3070
|
+
}, Je = () => {
|
|
3071
|
+
!Ae.value || je.value || N.value || (k.component.calendarList[l] && k.component.calendarList[l].isHisonvueComponent && console.warn(`[Hisonvue] The calendar ID is at risk of being duplicated. ${l}`), Ne(r), Vt(r, () => {
|
|
3072
|
+
Ae.value && (Ne(r), Ze(), et(() => {
|
|
3073
|
+
Ae.value && Je();
|
|
3074
|
+
}));
|
|
3075
|
+
}), i.value && (se(), ee(), Ge(), o.value = {
|
|
3072
3076
|
isHisonvueComponent: !0,
|
|
3073
3077
|
getId: () => l,
|
|
3074
3078
|
getType: () => "calendar",
|
|
3075
3079
|
isDisable: () => y.value,
|
|
3076
3080
|
setDisable: (a) => {
|
|
3077
|
-
y.value = a, y.value ?
|
|
3081
|
+
y.value = a, y.value ? X.value = "100-01-01" : X.value = t.maxDate;
|
|
3078
3082
|
},
|
|
3079
3083
|
isVisible: () => c.value,
|
|
3080
3084
|
setVisible: (a) => {
|
|
3081
3085
|
c.value = a;
|
|
3082
3086
|
},
|
|
3083
|
-
getSelectedDate: (a, u) => a ? g.value :
|
|
3087
|
+
getSelectedDate: (a, u) => a ? g.value : x.utils.getDateWithFormat(g.value, u ?? x.getDatetimeFormat()),
|
|
3084
3088
|
setSelectedDate: (a) => {
|
|
3085
|
-
const u =
|
|
3089
|
+
const u = x.utils.getJSDateObject(a);
|
|
3086
3090
|
u && (g.value = u);
|
|
3087
3091
|
},
|
|
3088
3092
|
getEvents: () => j.value,
|
|
3089
3093
|
setEvents: (a) => {
|
|
3090
3094
|
j.value = a;
|
|
3091
3095
|
},
|
|
3092
|
-
getSpecialTime: () =>
|
|
3096
|
+
getSpecialTime: () => $.value,
|
|
3093
3097
|
setSpecialTime: (a) => {
|
|
3094
|
-
|
|
3098
|
+
$.value = a;
|
|
3095
3099
|
},
|
|
3096
3100
|
getWeekendColor: () => _.value,
|
|
3097
3101
|
setWeekendColor: (a) => {
|
|
3098
|
-
if (_.value =
|
|
3102
|
+
if (_.value = de(a), !i.value) return;
|
|
3099
3103
|
const u = i.value.$el;
|
|
3100
|
-
u && (
|
|
3104
|
+
u && (k.componentStyle.invertColor ? u.style.setProperty("--vuecal-weekend-back-color", _.value ? Le(_.value) : null) : u.style.setProperty("--vuecal-weekend-back-color", _.value ? _.value : null), le(i.value.view.id));
|
|
3101
3105
|
},
|
|
3102
|
-
getWeekendDays: () =>
|
|
3106
|
+
getWeekendDays: () => I.value,
|
|
3103
3107
|
setWeekendDays: (a) => {
|
|
3104
|
-
|
|
3108
|
+
I.value = a, le(i.value.view.id);
|
|
3105
3109
|
},
|
|
3106
|
-
isShowTodayColor: () =>
|
|
3110
|
+
isShowTodayColor: () => K.value,
|
|
3107
3111
|
setShowTodayColor: (a) => {
|
|
3108
|
-
if (
|
|
3112
|
+
if (K.value = a, !i.value) return;
|
|
3109
3113
|
const u = i.value.$el;
|
|
3110
3114
|
if (!u) return;
|
|
3111
|
-
let f =
|
|
3112
|
-
(!f ||
|
|
3115
|
+
let f = Fe(G.value, "color");
|
|
3116
|
+
(!f || !st(f)) && (f = "primary"), k.componentStyle.invertColor ? u.style.setProperty("--vuecal-today-back-color", K.value ? U(k.componentStyle.componentColor[`${f}`].buttonColor, 0.3) : k.componentStyle.emptyInvertColor) : u.style.setProperty("--vuecal-today-back-color", K.value ? U(k.componentStyle.componentColor[`${f}`].buttonColor, 0.3) : k.componentStyle.emptyColor);
|
|
3113
3117
|
},
|
|
3114
3118
|
getSelectedColor: () => O.value,
|
|
3115
3119
|
setSelectedColor: (a) => {
|
|
3116
|
-
if (O.value =
|
|
3120
|
+
if (O.value = de(a), !i.value) return;
|
|
3117
3121
|
const u = i.value.$el;
|
|
3118
3122
|
if (!u) return;
|
|
3119
|
-
let f =
|
|
3120
|
-
|
|
3123
|
+
let f = Fe(G.value, "color");
|
|
3124
|
+
k.componentStyle.invertColor ? u.style.setProperty("--vuecal-selected-back-color", O.value ? Le(O.value) : U(k.componentStyle.componentColor[`${f}`].buttonColor, 0.5)) : u.style.setProperty("--vuecal-selected-back-color", O.value ? O.value : U(k.componentStyle.componentColor[`${f}`].buttonColor, 0.5));
|
|
3121
3125
|
},
|
|
3122
|
-
getDateCellMinHeight: () =>
|
|
3126
|
+
getDateCellMinHeight: () => re.value,
|
|
3123
3127
|
setDateCellMinHeight: (a) => {
|
|
3124
|
-
|
|
3128
|
+
re.value = a, Ee(i.value.view.id);
|
|
3125
3129
|
},
|
|
3126
|
-
getDateCellMaxHeight: () =>
|
|
3130
|
+
getDateCellMaxHeight: () => te.value,
|
|
3127
3131
|
setDateCellMaxHeight: (a) => {
|
|
3128
|
-
|
|
3132
|
+
te.value = a, Ee(i.value.view.id);
|
|
3129
3133
|
},
|
|
3130
|
-
getDisableDays: () =>
|
|
3134
|
+
getDisableDays: () => me.value,
|
|
3131
3135
|
setDisableDays: (a) => {
|
|
3132
|
-
|
|
3136
|
+
me.value = a;
|
|
3133
3137
|
},
|
|
3134
|
-
getEventsOnMonthView: () =>
|
|
3138
|
+
getEventsOnMonthView: () => ye.value,
|
|
3135
3139
|
setEventsOnMonthView: (a) => {
|
|
3136
|
-
|
|
3140
|
+
ye.value = a;
|
|
3137
3141
|
},
|
|
3138
|
-
getHideWeekdays: () =>
|
|
3142
|
+
getHideWeekdays: () => fe.value,
|
|
3139
3143
|
setHideWeekdays: (a) => {
|
|
3140
|
-
|
|
3144
|
+
fe.value = a;
|
|
3141
3145
|
},
|
|
3142
|
-
getHideWeekends: () =>
|
|
3146
|
+
getHideWeekends: () => we.value,
|
|
3143
3147
|
setHideWeekends: (a) => {
|
|
3144
|
-
|
|
3148
|
+
we.value = a;
|
|
3145
3149
|
},
|
|
3146
|
-
getLocale: () =>
|
|
3150
|
+
getLocale: () => De.value,
|
|
3147
3151
|
setLocale: (a) => {
|
|
3148
|
-
|
|
3152
|
+
De.value = a;
|
|
3149
3153
|
},
|
|
3150
3154
|
getMaxDate: (a) => {
|
|
3151
|
-
if (
|
|
3152
|
-
return a ? y.value ? new Date(100, 0, 1) :
|
|
3155
|
+
if (X.value)
|
|
3156
|
+
return a ? y.value ? new Date(100, 0, 1) : x.utils.getJSDateObject(X.value) : y.value ? "100-01-01" : x.utils.getDateWithFormat(X.value, x.getDateFormat());
|
|
3153
3157
|
},
|
|
3154
3158
|
setMaxDate: (a) => {
|
|
3155
|
-
|
|
3159
|
+
X.value = a;
|
|
3156
3160
|
},
|
|
3157
3161
|
getMinDate: (a) => {
|
|
3158
|
-
if (
|
|
3159
|
-
return a ?
|
|
3162
|
+
if (ie.value)
|
|
3163
|
+
return a ? x.utils.getJSDateObject(ie.value) : x.utils.getDateWithFormat(ie.value, x.getDateFormat());
|
|
3160
3164
|
},
|
|
3161
3165
|
setMinDate: (a) => {
|
|
3162
|
-
|
|
3166
|
+
ie.value = a;
|
|
3163
3167
|
},
|
|
3164
|
-
isStartWeekOnSunday: () =>
|
|
3168
|
+
isStartWeekOnSunday: () => oe.value,
|
|
3165
3169
|
setStartWeekOnSunday: (a) => {
|
|
3166
|
-
|
|
3170
|
+
oe.value = a, le(i.value.view.id);
|
|
3167
3171
|
},
|
|
3168
|
-
isShowTimeCell: () =>
|
|
3172
|
+
isShowTimeCell: () => ge.value,
|
|
3169
3173
|
setShowTimeCell: (a) => {
|
|
3170
|
-
|
|
3174
|
+
ge.value = a;
|
|
3171
3175
|
},
|
|
3172
|
-
getTimeCellHeight: () =>
|
|
3176
|
+
getTimeCellHeight: () => pe.value,
|
|
3173
3177
|
setTimeCellHeight: (a) => {
|
|
3174
|
-
|
|
3178
|
+
pe.value = a;
|
|
3175
3179
|
},
|
|
3176
|
-
getTimeFormat: () =>
|
|
3180
|
+
getTimeFormat: () => be.value,
|
|
3177
3181
|
setTimeFormat: (a) => {
|
|
3178
|
-
|
|
3182
|
+
be.value = a;
|
|
3179
3183
|
},
|
|
3180
|
-
getTimeFrom: () =>
|
|
3184
|
+
getTimeFrom: () => ke.value,
|
|
3181
3185
|
setTimeFrom: (a) => {
|
|
3182
|
-
|
|
3186
|
+
ke.value = a;
|
|
3183
3187
|
},
|
|
3184
|
-
getTimeStep: () =>
|
|
3188
|
+
getTimeStep: () => Ce.value,
|
|
3185
3189
|
setTimeStep: (a) => {
|
|
3186
|
-
|
|
3190
|
+
Ce.value = a;
|
|
3187
3191
|
},
|
|
3188
|
-
getTimeTo: () =>
|
|
3192
|
+
getTimeTo: () => _e.value,
|
|
3189
3193
|
setTimeTo: (a) => {
|
|
3190
|
-
|
|
3194
|
+
_e.value = a;
|
|
3191
3195
|
},
|
|
3192
|
-
isHideTitleBar: () =>
|
|
3196
|
+
isHideTitleBar: () => Te.value,
|
|
3193
3197
|
setHideTitleBar: (a) => {
|
|
3194
|
-
|
|
3198
|
+
Te.value = a;
|
|
3195
3199
|
},
|
|
3196
|
-
isTwelveHour: () =>
|
|
3200
|
+
isTwelveHour: () => Me.value,
|
|
3197
3201
|
setTwelveHour: (a) => {
|
|
3198
|
-
|
|
3202
|
+
Me.value = a;
|
|
3199
3203
|
},
|
|
3200
3204
|
getActiveView: () => i.value.view.id,
|
|
3201
3205
|
setActiveView: (a) => {
|
|
3202
3206
|
i.value.switchView(a);
|
|
3203
3207
|
},
|
|
3204
|
-
getDisableViews: () =>
|
|
3208
|
+
getDisableViews: () => Se.value,
|
|
3205
3209
|
setDisableViews: (a) => {
|
|
3206
|
-
if (
|
|
3210
|
+
if (Se.value = a, a.includes(i.value.view.id)) {
|
|
3207
3211
|
const u = ["years", "year", "month", "week", "day"].filter((f) => !a.includes(f));
|
|
3208
3212
|
i.value.switchView(u[0]);
|
|
3209
3213
|
}
|
|
3210
3214
|
},
|
|
3211
|
-
reload: () =>
|
|
3212
|
-
},
|
|
3213
|
-
},
|
|
3214
|
-
|
|
3215
|
+
reload: () => At(r)
|
|
3216
|
+
}, k.component.calendarList[l] = o.value, N.value = !1, e("mounted", o.value)));
|
|
3217
|
+
}, Ze = () => {
|
|
3218
|
+
if (je.value || N.value) {
|
|
3219
|
+
Ne(r), delete k.component.calendarList[l];
|
|
3220
|
+
return;
|
|
3221
|
+
}
|
|
3222
|
+
je.value = !0, Ne(r), delete k.component.calendarList[l], N.value = !0;
|
|
3215
3223
|
};
|
|
3216
|
-
return
|
|
3217
|
-
|
|
3218
|
-
}),
|
|
3219
|
-
|
|
3220
|
-
}),
|
|
3221
|
-
|
|
3222
|
-
}),
|
|
3223
|
-
|
|
3224
|
-
}),
|
|
3224
|
+
return Ct(Je), _t(() => {
|
|
3225
|
+
Ae.value = !1, Ze();
|
|
3226
|
+
}), b(n, (a) => {
|
|
3227
|
+
je.value || N.value || (se(), e("responsive-change", a));
|
|
3228
|
+
}), b(() => g.value, () => {
|
|
3229
|
+
N.value || ee();
|
|
3230
|
+
}), b(() => t.selectedDate, (a) => {
|
|
3231
|
+
N.value || (g.value = x.utils.getJSDateObject(a) ?? /* @__PURE__ */ new Date(), ee());
|
|
3232
|
+
}), b(() => t.events, (a) => {
|
|
3233
|
+
N.value || (j.value = a);
|
|
3234
|
+
}), b(() => t.visible, (a) => {
|
|
3225
3235
|
a !== c.value && (c.value = !!a);
|
|
3226
|
-
}),
|
|
3236
|
+
}), b(() => t.disable, (a) => {
|
|
3227
3237
|
const u = !!a;
|
|
3228
|
-
u !== y.value && (y.value = u,
|
|
3229
|
-
}),
|
|
3230
|
-
const u =
|
|
3231
|
-
+u != +g.value && (g.value = u,
|
|
3232
|
-
}),
|
|
3238
|
+
u !== y.value && (y.value = u, X.value = u ? "100-01-01" : t.maxDate, se());
|
|
3239
|
+
}), b(() => g.value, () => ee()), b(() => t.selectedDate, (a) => {
|
|
3240
|
+
const u = x.utils.getJSDateObject(a) ?? /* @__PURE__ */ new Date();
|
|
3241
|
+
+u != +g.value && (g.value = u, ee());
|
|
3242
|
+
}), b(() => t.events, (a) => {
|
|
3233
3243
|
a !== j.value && (j.value = a ?? []);
|
|
3234
|
-
}),
|
|
3244
|
+
}), b(() => t.weekendColor, (a) => {
|
|
3235
3245
|
var f, W;
|
|
3236
|
-
const u = a ?
|
|
3237
|
-
u !== _.value && (_.value = u,
|
|
3238
|
-
}),
|
|
3246
|
+
const u = a ? de(a) : void 0;
|
|
3247
|
+
u !== _.value && (_.value = u, se(), (W = (f = i.value) == null ? void 0 : f.view) != null && W.id && le(i.value.view.id));
|
|
3248
|
+
}), b(() => t.weekendDays, (a) => {
|
|
3239
3249
|
var u, f;
|
|
3240
|
-
a && a !==
|
|
3241
|
-
}),
|
|
3242
|
-
const u = a ?
|
|
3243
|
-
u !== O.value && (O.value = u,
|
|
3244
|
-
}),
|
|
3250
|
+
a && a !== I.value && (I.value = a, (f = (u = i.value) == null ? void 0 : u.view) != null && f.id && le(i.value.view.id));
|
|
3251
|
+
}), b(() => t.selectedColor, (a) => {
|
|
3252
|
+
const u = a ? de(a) : void 0;
|
|
3253
|
+
u !== O.value && (O.value = u, se());
|
|
3254
|
+
}), b(() => t.showTodayColor, (a) => {
|
|
3245
3255
|
const u = !!a;
|
|
3246
|
-
u !==
|
|
3247
|
-
}),
|
|
3248
|
-
a !==
|
|
3249
|
-
}),
|
|
3256
|
+
u !== K.value && (K.value = u, se());
|
|
3257
|
+
}), b(() => t.specialTime, (a) => {
|
|
3258
|
+
a !== $.value && ($.value = a ?? {}, ee());
|
|
3259
|
+
}), b(() => t.dateCellMinHeight, (a) => {
|
|
3250
3260
|
var u, f;
|
|
3251
|
-
a !==
|
|
3252
|
-
}),
|
|
3261
|
+
a !== re.value && (re.value = a, Ee(((f = (u = i.value) == null ? void 0 : u.view) == null ? void 0 : f.id) || ce.month));
|
|
3262
|
+
}), b(() => t.dateCellMaxHeight, (a) => {
|
|
3253
3263
|
var u, f;
|
|
3254
|
-
a !==
|
|
3255
|
-
}),
|
|
3256
|
-
a !== ve.value && (ve.value = a);
|
|
3257
|
-
}), p(() => t.eventsOnMonthView, (a) => {
|
|
3264
|
+
a !== te.value && (te.value = a, Ee(((f = (u = i.value) == null ? void 0 : u.view) == null ? void 0 : f.id) || ce.month));
|
|
3265
|
+
}), b(() => t.disableDays, (a) => {
|
|
3258
3266
|
a !== me.value && (me.value = a);
|
|
3259
|
-
}),
|
|
3267
|
+
}), b(() => t.eventsOnMonthView, (a) => {
|
|
3260
3268
|
a !== ye.value && (ye.value = a);
|
|
3261
|
-
}),
|
|
3269
|
+
}), b(() => t.hideWeekdays, (a) => {
|
|
3270
|
+
a !== fe.value && (fe.value = a);
|
|
3271
|
+
}), b(() => t.hideWeekends, (a) => {
|
|
3262
3272
|
const u = !!a;
|
|
3263
|
-
u !==
|
|
3264
|
-
}),
|
|
3265
|
-
a && a !==
|
|
3266
|
-
}),
|
|
3267
|
-
!y.value && a !==
|
|
3268
|
-
}),
|
|
3269
|
-
a !==
|
|
3270
|
-
}),
|
|
3273
|
+
u !== we.value && (we.value = u);
|
|
3274
|
+
}), b(() => t.locale, (a) => {
|
|
3275
|
+
a && a !== De.value && (De.value = a);
|
|
3276
|
+
}), b(() => t.maxDate, (a) => {
|
|
3277
|
+
!y.value && a !== X.value && (X.value = a);
|
|
3278
|
+
}), b(() => t.minDate, (a) => {
|
|
3279
|
+
a !== ie.value && (ie.value = a);
|
|
3280
|
+
}), b(() => t.startWeekOnSunday, (a) => {
|
|
3271
3281
|
var f, W;
|
|
3272
3282
|
const u = !!a;
|
|
3273
|
-
u !==
|
|
3274
|
-
}),
|
|
3283
|
+
u !== oe.value && (oe.value = u, (W = (f = i.value) == null ? void 0 : f.view) != null && W.id && le(i.value.view.id));
|
|
3284
|
+
}), b(() => t.time, (a) => {
|
|
3275
3285
|
const u = !!a;
|
|
3276
|
-
u !==
|
|
3277
|
-
}),
|
|
3278
|
-
a !==
|
|
3279
|
-
}),
|
|
3280
|
-
a && a !==
|
|
3281
|
-
}),
|
|
3286
|
+
u !== ge.value && (ge.value = u);
|
|
3287
|
+
}), b(() => t.timeCellHeight, (a) => {
|
|
3288
|
+
a !== pe.value && (pe.value = a);
|
|
3289
|
+
}), b(() => t.timeFormat, (a) => {
|
|
3290
|
+
a && a !== be.value && (be.value = a);
|
|
3291
|
+
}), b(() => t.timeFrom, (a) => {
|
|
3282
3292
|
const u = Number(a);
|
|
3283
|
-
(a == null || Number.isFinite(u) && u >= 0 && u <= 1440) && a !==
|
|
3284
|
-
}),
|
|
3293
|
+
(a == null || Number.isFinite(u) && u >= 0 && u <= 1440) && a !== ke.value && (ke.value = a);
|
|
3294
|
+
}), b(() => t.timeStep, (a) => {
|
|
3285
3295
|
const u = Number(a);
|
|
3286
|
-
(a == null || Number.isFinite(u) && u > 0 && u <= 1440) && a !==
|
|
3287
|
-
}),
|
|
3296
|
+
(a == null || Number.isFinite(u) && u > 0 && u <= 1440) && a !== Ce.value && (Ce.value = a);
|
|
3297
|
+
}), b(() => t.timeTo, (a) => {
|
|
3288
3298
|
const u = Number(a);
|
|
3289
|
-
(a == null || Number.isFinite(u) && u >= 0 && u <= 1440) && a !==
|
|
3290
|
-
}),
|
|
3291
|
-
const u = !!a;
|
|
3292
|
-
u !== _e.value && (_e.value = u);
|
|
3293
|
-
}), p(() => t.twelveHour, (a) => {
|
|
3299
|
+
(a == null || Number.isFinite(u) && u >= 0 && u <= 1440) && a !== _e.value && (_e.value = a);
|
|
3300
|
+
}), b(() => t.hideTitleBar, (a) => {
|
|
3294
3301
|
const u = !!a;
|
|
3295
3302
|
u !== Te.value && (Te.value = u);
|
|
3296
|
-
}),
|
|
3303
|
+
}), b(() => t.twelveHour, (a) => {
|
|
3304
|
+
const u = !!a;
|
|
3305
|
+
u !== Me.value && (Me.value = u);
|
|
3306
|
+
}), b(() => t.activeView, (a) => {
|
|
3297
3307
|
var u, f, W;
|
|
3298
|
-
a && a !== ((f = (u = i.value) == null ? void 0 : u.view) == null ? void 0 : f.id) && (
|
|
3299
|
-
}),
|
|
3300
|
-
if (a !==
|
|
3308
|
+
a && a !== ((f = (u = i.value) == null ? void 0 : u.view) == null ? void 0 : f.id) && (xe.value = a, (W = i.value) == null || W.switchView(a));
|
|
3309
|
+
}), b(() => t.disableViews, (a) => {
|
|
3310
|
+
if (a !== Se.value && (Se.value = a, i.value && Array.isArray(a) && a.includes(i.value.view.id))) {
|
|
3301
3311
|
const u = ["years", "year", "month", "week", "day"].find((f) => !a.includes(f));
|
|
3302
3312
|
u && i.value.switchView(u);
|
|
3303
3313
|
}
|
|
3304
|
-
}),
|
|
3305
|
-
VueCal:
|
|
3314
|
+
}), b(() => t.class, () => se()), {
|
|
3315
|
+
VueCal: ot,
|
|
3306
3316
|
attrs: s,
|
|
3307
3317
|
props: t,
|
|
3308
3318
|
calendarRef: i,
|
|
3309
3319
|
visibleClass: w,
|
|
3310
3320
|
disableClass: A,
|
|
3311
|
-
responsiveClassList:
|
|
3321
|
+
responsiveClassList: G,
|
|
3312
3322
|
slotNames: d,
|
|
3313
3323
|
selectedDate: g,
|
|
3314
3324
|
events: j,
|
|
3315
|
-
disableDays:
|
|
3316
|
-
eventsOnMonthView:
|
|
3317
|
-
hideWeekdays:
|
|
3318
|
-
hideWeekends:
|
|
3319
|
-
locale:
|
|
3320
|
-
maxDate:
|
|
3321
|
-
minDate:
|
|
3322
|
-
startWeekOnSunday:
|
|
3323
|
-
time:
|
|
3324
|
-
timeCellHeight:
|
|
3325
|
-
timeFormat:
|
|
3326
|
-
timeFrom:
|
|
3327
|
-
timeStep:
|
|
3328
|
-
timeTo:
|
|
3329
|
-
hideTitleBar:
|
|
3330
|
-
twelveHour:
|
|
3331
|
-
activeView:
|
|
3332
|
-
disableViews:
|
|
3333
|
-
onViewChange:
|
|
3334
|
-
onCellClick:
|
|
3325
|
+
disableDays: me,
|
|
3326
|
+
eventsOnMonthView: ye,
|
|
3327
|
+
hideWeekdays: fe,
|
|
3328
|
+
hideWeekends: we,
|
|
3329
|
+
locale: De,
|
|
3330
|
+
maxDate: X,
|
|
3331
|
+
minDate: ie,
|
|
3332
|
+
startWeekOnSunday: oe,
|
|
3333
|
+
time: ge,
|
|
3334
|
+
timeCellHeight: pe,
|
|
3335
|
+
timeFormat: be,
|
|
3336
|
+
timeFrom: ke,
|
|
3337
|
+
timeStep: Ce,
|
|
3338
|
+
timeTo: _e,
|
|
3339
|
+
hideTitleBar: Te,
|
|
3340
|
+
twelveHour: Me,
|
|
3341
|
+
activeView: xe,
|
|
3342
|
+
disableViews: Se,
|
|
3343
|
+
onViewChange: mt,
|
|
3344
|
+
onCellClick: yt
|
|
3335
3345
|
};
|
|
3336
3346
|
}
|
|
3337
3347
|
});
|
|
3338
|
-
function
|
|
3348
|
+
function ts(t, e, s, l, r, i) {
|
|
3339
3349
|
return v(), m("div", {
|
|
3340
3350
|
class: V([
|
|
3341
3351
|
"hison-calendar",
|
|
@@ -3344,9 +3354,9 @@ function Qi(t, e, s, l, r, i) {
|
|
|
3344
3354
|
t.visibleClass,
|
|
3345
3355
|
t.disableClass
|
|
3346
3356
|
]),
|
|
3347
|
-
style:
|
|
3357
|
+
style: R(t.props.style)
|
|
3348
3358
|
}, [
|
|
3349
|
-
(v(),
|
|
3359
|
+
(v(), J(ut(t.VueCal), Xe({ ref: "calendarRef" }, t.attrs, {
|
|
3350
3360
|
"selected-date": t.selectedDate,
|
|
3351
3361
|
events: t.events,
|
|
3352
3362
|
"dblclick-to-create": !1,
|
|
@@ -3371,17 +3381,17 @@ function Qi(t, e, s, l, r, i) {
|
|
|
3371
3381
|
"disable-views": t.disableViews,
|
|
3372
3382
|
onViewChange: t.onViewChange,
|
|
3373
3383
|
onCellClick: t.onCellClick
|
|
3374
|
-
}),
|
|
3375
|
-
|
|
3384
|
+
}), Ie({ _: 2 }, [
|
|
3385
|
+
B(t.slotNames, (o) => ({
|
|
3376
3386
|
name: o,
|
|
3377
3387
|
fn: T((n) => [
|
|
3378
|
-
|
|
3388
|
+
C(t.$slots, o, Ke(Tt(n)), void 0, !0)
|
|
3379
3389
|
])
|
|
3380
3390
|
}))
|
|
3381
3391
|
]), 1040, ["selected-date", "events", "disable-days", "events-on-month-view", "hide-weekdays", "hide-weekends", "locale", "max-date", "min-date", "start-week-on-sunday", "time", "time-cell-height", "time-format", "time-from", "time-step", "time-to", "hide-title-bar", "twelve-hour", "active-view", "disable-views", "onViewChange", "onCellClick"]))
|
|
3382
3392
|
], 6);
|
|
3383
3393
|
}
|
|
3384
|
-
const
|
|
3394
|
+
const ns = /* @__PURE__ */ jt(es, [["render", ts], ["__scopeId", "data-v-15dac12e"]]);
|
|
3385
3395
|
export {
|
|
3386
|
-
|
|
3396
|
+
ns as default
|
|
3387
3397
|
};
|