vue3-beak-ui-framework 1.2.35 → 1.2.36
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.
|
@@ -119643,7 +119643,7 @@ class Columns {
|
|
|
119643
119643
|
const Hg = Bg.headings[Ig], Lg = [];
|
|
119644
119644
|
if (Hg.getAttribute("data-type") === "date") {
|
|
119645
119645
|
let Dg = !1;
|
|
119646
|
-
Hg.hasAttribute("data-format") && (Dg = Hg.getAttribute("data-format")), Lg.push(import("./date-
|
|
119646
|
+
Hg.hasAttribute("data-format") && (Dg = Hg.getAttribute("data-format")), Lg.push(import("./date-Dk_bm_aX.js").then(({ parseDate: $g }) => (Qg) => $g(Qg, Dg)));
|
|
119647
119647
|
}
|
|
119648
119648
|
Promise.all(Lg).then((Dg) => {
|
|
119649
119649
|
const Jg = Dg[0];
|
|
@@ -124231,81 +124231,87 @@ const _hoisted_1$q = ["id", "onClick"], _sfc_main$w = /* @__PURE__ */ defineComp
|
|
|
124231
124231
|
setup(ps, { emit: Ig }) {
|
|
124232
124232
|
const Zg = new EventConcurrency(), Gg = ps, Bg = Ig, Wg = ref$1([]), Ng = ref$1([]), Vg = () => {
|
|
124233
124233
|
Wg.value = Zg.calculateConcurrencyForEvents(Gg.day.events);
|
|
124234
|
-
}, Xg = (
|
|
124235
|
-
Bg("event-was-resized",
|
|
124236
|
-
}, Yg = (
|
|
124237
|
-
const { intervalStart:
|
|
124238
|
-
Bg("interval-was-clicked", { intervalStart:
|
|
124234
|
+
}, Xg = (Kg) => {
|
|
124235
|
+
Bg("event-was-resized", Kg), Vg();
|
|
124236
|
+
}, Yg = (Kg) => {
|
|
124237
|
+
const { intervalStart: _g, intervalEnd: il } = Kg;
|
|
124238
|
+
Bg("interval-was-clicked", { intervalStart: _g, intervalEnd: il });
|
|
124239
124239
|
}, Fg = () => {
|
|
124240
|
-
var
|
|
124241
|
-
let
|
|
124240
|
+
var _g;
|
|
124241
|
+
let Kg = Gg.day.dateTimeString;
|
|
124242
124242
|
if (Gg.time.DAY_START !== 0) {
|
|
124243
|
-
const { hour:
|
|
124244
|
-
|
|
124243
|
+
const { hour: il } = Gg.time.getHourAndMinutesFromTimePoints(Gg.time.DAY_START);
|
|
124244
|
+
Kg = Gg.time.setSegmentOfDateTimeString(Kg, { hour: il });
|
|
124245
124245
|
}
|
|
124246
|
-
Ng.value = new DayIntervals(((
|
|
124247
|
-
}, Hg = (
|
|
124248
|
-
const
|
|
124249
|
-
return
|
|
124246
|
+
Ng.value = new DayIntervals(((_g = Gg.dayIntervals) == null ? void 0 : _g.length) || 60, Kg, Gg.time.HOURS_PER_DAY).getIntervals();
|
|
124247
|
+
}, Hg = (Kg, _g) => {
|
|
124248
|
+
const il = new Date(Kg.getFullYear(), Kg.getMonth(), Kg.getDate()), Tg = new Date(_g.getFullYear(), _g.getMonth(), _g.getDate());
|
|
124249
|
+
return il > Tg ? 1 : il < Tg ? -1 : 0;
|
|
124250
124250
|
}, Lg = computed(() => {
|
|
124251
|
-
let
|
|
124252
|
-
return Hg(/* @__PURE__ */ new Date(), new Date(
|
|
124253
|
-
}), Dg = (
|
|
124254
|
-
const Kg = Gg.time.
|
|
124255
|
-
|
|
124256
|
-
|
|
124257
|
-
const
|
|
124258
|
-
|
|
124259
|
-
|
|
124260
|
-
const
|
|
124261
|
-
|
|
124262
|
-
|
|
124263
|
-
)
|
|
124264
|
-
|
|
124265
|
-
|
|
124266
|
-
|
|
124251
|
+
let Kg = Gg.time.dateStringFrom(Gg.day.dateTimeString);
|
|
124252
|
+
return Hg(/* @__PURE__ */ new Date(), new Date(Kg)) === 1;
|
|
124253
|
+
}), Dg = computed(() => {
|
|
124254
|
+
const Kg = Gg.time.dateStringFrom(Gg.day.dateTimeString);
|
|
124255
|
+
return Hg(/* @__PURE__ */ new Date(), new Date(Kg)) === 0;
|
|
124256
|
+
}), Jg = (Kg) => {
|
|
124257
|
+
const _g = Gg.time.getTimeFromClick(Kg.offsetY, Gg.weekHeight);
|
|
124258
|
+
let il = Gg.time.dateStringFrom(Gg.day.dateTimeString);
|
|
124259
|
+
Gg.time.DAY_END <= Gg.time.DAY_START && (il = $g(il, _g));
|
|
124260
|
+
const eI = `${il} ${_g}`;
|
|
124261
|
+
Bg("day-was-clicked", il), Bg("datetime-was-clicked", eI);
|
|
124262
|
+
}, $g = (Kg, _g) => {
|
|
124263
|
+
const Tg = `${Gg.time.doubleDigit(Gg.time.DAY_START / 100)}:00`;
|
|
124264
|
+
return _g < Tg && (Kg = Gg.time.dateStringFrom(
|
|
124265
|
+
Gg.time.addDaysToDateTimeString(1, Kg)
|
|
124266
|
+
)), Kg;
|
|
124267
|
+
}, Qg = computed(() => {
|
|
124268
|
+
var Kg;
|
|
124269
|
+
return (Kg = Gg.config.dayIntervals) != null && Kg.intervalStyles ? Gg.config.dayIntervals.intervalStyles : {};
|
|
124267
124270
|
});
|
|
124268
124271
|
return onMounted(() => {
|
|
124269
124272
|
Vg(), Gg.dayIntervals.displayClickableInterval && Fg();
|
|
124270
|
-
}), (
|
|
124271
|
-
const
|
|
124273
|
+
}), (Kg, _g) => {
|
|
124274
|
+
const il = __unplugin_components_0$3;
|
|
124272
124275
|
return openBlock(), createElementBlock("div", {
|
|
124273
|
-
class: normalizeClass(["calendar-week__day", [
|
|
124274
|
-
|
|
124276
|
+
class: normalizeClass(["calendar-week__day", [
|
|
124277
|
+
!Lg.value && "has-pointer-cursor",
|
|
124278
|
+
Dg.value && "is-today"
|
|
124279
|
+
]]),
|
|
124280
|
+
onClick: withModifiers(Jg, ["self"])
|
|
124275
124281
|
}, [
|
|
124276
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(Wg.value, (
|
|
124277
|
-
key:
|
|
124282
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(Wg.value, (Tg, eI) => (openBlock(), createBlock(il, {
|
|
124283
|
+
key: eI,
|
|
124278
124284
|
"data-test": "day-event",
|
|
124279
|
-
"event-prop":
|
|
124285
|
+
"event-prop": Tg,
|
|
124280
124286
|
day: ps.day,
|
|
124281
124287
|
time: ps.time,
|
|
124282
124288
|
config: ps.config,
|
|
124283
124289
|
"day-info": ps.dayInfo,
|
|
124284
124290
|
mode: ps.mode,
|
|
124285
|
-
onEventWasClicked:
|
|
124286
|
-
onEventWasDragged:
|
|
124291
|
+
onEventWasClicked: _g[0] || (_g[0] = (iI) => Bg("event-was-clicked", iI)),
|
|
124292
|
+
onEventWasDragged: _g[1] || (_g[1] = (iI) => Bg("event-was-dragged", iI)),
|
|
124287
124293
|
onEventWasResized: Xg,
|
|
124288
|
-
onDragStart:
|
|
124289
|
-
onDragEnd:
|
|
124294
|
+
onDragStart: _g[2] || (_g[2] = (iI) => Bg("drag-start")),
|
|
124295
|
+
onDragEnd: _g[3] || (_g[3] = (iI) => Bg("drag-end"))
|
|
124290
124296
|
}, {
|
|
124291
|
-
weekDayEvent: withCtx((
|
|
124292
|
-
renderSlot(
|
|
124293
|
-
eventData:
|
|
124297
|
+
weekDayEvent: withCtx((iI) => [
|
|
124298
|
+
renderSlot(Kg.$slots, "weekDayEvent", {
|
|
124299
|
+
eventData: iI.eventData
|
|
124294
124300
|
}, void 0, !0)
|
|
124295
124301
|
]),
|
|
124296
124302
|
_: 2
|
|
124297
124303
|
}, 1032, ["event-prop", "day", "time", "config", "day-info", "mode"]))), 128)),
|
|
124298
|
-
ps.dayIntervals && ps.dayIntervals.displayClickableInterval ? (openBlock(!0), createElementBlock(Fragment, { key: 0 }, renderList(Ng.value, (
|
|
124299
|
-
id: "interval-" +
|
|
124300
|
-
key:
|
|
124301
|
-
class: normalizeClass(["calendar-week__day-interval", { "has-border":
|
|
124302
|
-
style: normalizeStyle(
|
|
124303
|
-
onClick: (
|
|
124304
|
-
}, toDisplayString$1(ps.time.getLocalizedTime(
|
|
124304
|
+
ps.dayIntervals && ps.dayIntervals.displayClickableInterval ? (openBlock(!0), createElementBlock(Fragment, { key: 0 }, renderList(Ng.value, (Tg, eI) => (openBlock(), createElementBlock("div", {
|
|
124305
|
+
id: "interval-" + eI,
|
|
124306
|
+
key: Tg.intervalStart,
|
|
124307
|
+
class: normalizeClass(["calendar-week__day-interval", { "has-border": Tg.hasBorder }]),
|
|
124308
|
+
style: normalizeStyle(Qg.value),
|
|
124309
|
+
onClick: (iI) => Yg(Tg)
|
|
124310
|
+
}, toDisplayString$1(ps.time.getLocalizedTime(Tg.intervalStart)), 15, _hoisted_1$q))), 128)) : createCommentVNode("", !0)
|
|
124305
124311
|
], 2);
|
|
124306
124312
|
};
|
|
124307
124313
|
}
|
|
124308
|
-
}), __unplugin_components_3 = /* @__PURE__ */ _export_sfc$1(_sfc_main$w, [["__scopeId", "data-v-
|
|
124314
|
+
}), __unplugin_components_3 = /* @__PURE__ */ _export_sfc$1(_sfc_main$w, [["__scopeId", "data-v-4f5b1c42"]]), _hoisted_1$p = { class: "day-timeline" }, _hoisted_2$n = { class: "day-timeline__hour-text" }, _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
124309
124315
|
__name: "DayTimeline",
|
|
124310
124316
|
props: {
|
|
124311
124317
|
time: {
|
|
@@ -124423,30 +124429,36 @@ const _hoisted_1$q = ["id", "onClick"], _sfc_main$w = /* @__PURE__ */ defineComp
|
|
|
124423
124429
|
},
|
|
124424
124430
|
emits: ["event-was-clicked", "day-was-clicked"],
|
|
124425
124431
|
setup(ps, { emit: Ig }) {
|
|
124426
|
-
const Zg = ps, Gg = Ig, Bg = ref$1(/* @__PURE__ */ new Date()), Wg = (
|
|
124427
|
-
const { date:
|
|
124428
|
-
return
|
|
124432
|
+
const Zg = ps, Gg = Ig, Bg = ref$1(/* @__PURE__ */ new Date()), Wg = (Vg) => {
|
|
124433
|
+
const { date: Xg } = Zg.time.getAllVariablesFromDateTimeString(Vg.dateTimeString);
|
|
124434
|
+
return Xg;
|
|
124435
|
+
}, Ng = (Vg) => {
|
|
124436
|
+
const Xg = new Date(Zg.time.dateStringFrom(Vg.dateTimeString)), Yg = /* @__PURE__ */ new Date();
|
|
124437
|
+
return Xg.setHours(0, 0, 0, 0), Yg.setHours(0, 0, 0, 0), Xg < Yg;
|
|
124429
124438
|
};
|
|
124430
124439
|
return onMounted(() => {
|
|
124431
124440
|
console.log("WeekTimeLine:", Zg);
|
|
124432
|
-
}), (
|
|
124433
|
-
const
|
|
124441
|
+
}), (Vg, Xg) => {
|
|
124442
|
+
const Yg = __unplugin_components_0$2;
|
|
124434
124443
|
return openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
124435
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(ps.days, (
|
|
124436
|
-
key:
|
|
124437
|
-
class: normalizeClass(["week-timeline__day", {
|
|
124438
|
-
|
|
124444
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(ps.days, (Fg, Hg) => (openBlock(), createElementBlock("div", {
|
|
124445
|
+
key: Hg,
|
|
124446
|
+
class: normalizeClass(["week-timeline__day", {
|
|
124447
|
+
"is-today": ps.time.getDateTimeStringFromDate(Bg.value, "start") === Fg.dateTimeString,
|
|
124448
|
+
"is-past": Ng(Fg)
|
|
124449
|
+
}]),
|
|
124450
|
+
onClick: (Lg) => Gg("day-was-clicked", ps.time.dateStringFrom(Fg.dateTimeString))
|
|
124439
124451
|
}, [
|
|
124440
|
-
createElementVNode("div", _hoisted_3$j, toDisplayString$1(
|
|
124441
|
-
createElementVNode("div", _hoisted_4$d, toDisplayString$1(Wg(
|
|
124452
|
+
createElementVNode("div", _hoisted_3$j, toDisplayString$1(Fg.dayName.substring(0, 2).toUpperCase()), 1),
|
|
124453
|
+
createElementVNode("div", _hoisted_4$d, toDisplayString$1(Wg(Fg)), 1),
|
|
124442
124454
|
createElementVNode("div", _hoisted_5$c, [
|
|
124443
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
124444
|
-
|
|
124455
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(Fg.fullDayEvents, (Lg, Dg) => (openBlock(), createElementBlock(Fragment, { key: Dg }, [
|
|
124456
|
+
Dg !== "date" ? (openBlock(), createBlock(Yg, {
|
|
124445
124457
|
key: 0,
|
|
124446
|
-
"schedule-event": typeof
|
|
124458
|
+
"schedule-event": typeof Lg == "object" ? Lg : null,
|
|
124447
124459
|
config: ps.config,
|
|
124448
124460
|
mode: ps.mode,
|
|
124449
|
-
onEventWasClicked:
|
|
124461
|
+
onEventWasClicked: Xg[0] || (Xg[0] = (Jg) => Gg("event-was-clicked", Jg))
|
|
124450
124462
|
}, null, 8, ["schedule-event", "config", "mode"])) : createCommentVNode("", !0)
|
|
124451
124463
|
], 64))), 128))
|
|
124452
124464
|
])
|
|
@@ -124454,7 +124466,7 @@ const _hoisted_1$q = ["id", "onClick"], _sfc_main$w = /* @__PURE__ */ defineComp
|
|
|
124454
124466
|
]);
|
|
124455
124467
|
};
|
|
124456
124468
|
}
|
|
124457
|
-
}), __unplugin_components_0$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["__scopeId", "data-v-
|
|
124469
|
+
}), __unplugin_components_0$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["__scopeId", "data-v-efb7ca83"]]);
|
|
124458
124470
|
class EventsFilter {
|
|
124459
124471
|
constructor(Ig) {
|
|
124460
124472
|
this.events = Ig;
|