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.
@@ -1,4 +1,4 @@
1
- import { g as rt } from "./index-Tfb24sE0.js";
1
+ import { g as rt } from "./index-DzypHeiD.js";
2
2
  var Q = { exports: {} }, it = Q.exports, et;
3
3
  function st() {
4
4
  return et || (et = 1, function(j, V) {
@@ -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-JDDBhBcj.js").then(({ parseDate: $g }) => (Qg) => $g(Qg, Dg)));
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 = (Qg) => {
124235
- Bg("event-was-resized", Qg), Vg();
124236
- }, Yg = (Qg) => {
124237
- const { intervalStart: Kg, intervalEnd: _g } = Qg;
124238
- Bg("interval-was-clicked", { intervalStart: Kg, intervalEnd: _g });
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 Kg;
124241
- let Qg = Gg.day.dateTimeString;
124240
+ var _g;
124241
+ let Kg = Gg.day.dateTimeString;
124242
124242
  if (Gg.time.DAY_START !== 0) {
124243
- const { hour: _g } = Gg.time.getHourAndMinutesFromTimePoints(Gg.time.DAY_START);
124244
- Qg = Gg.time.setSegmentOfDateTimeString(Qg, { hour: _g });
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(((Kg = Gg.dayIntervals) == null ? void 0 : Kg.length) || 60, Qg, Gg.time.HOURS_PER_DAY).getIntervals();
124247
- }, Hg = (Qg, Kg) => {
124248
- const _g = new Date(Qg.getFullYear(), Qg.getMonth(), Qg.getDate()), il = new Date(Kg.getFullYear(), Kg.getMonth(), Kg.getDate());
124249
- return _g > il ? 1 : _g < il ? -1 : 0;
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 Qg = Gg.time.dateStringFrom(Gg.day.dateTimeString);
124252
- return Hg(/* @__PURE__ */ new Date(), new Date(Qg)) === 1;
124253
- }), Dg = (Qg) => {
124254
- const Kg = Gg.time.getTimeFromClick(Qg.offsetY, Gg.weekHeight);
124255
- let _g = Gg.time.dateStringFrom(Gg.day.dateTimeString);
124256
- Gg.time.DAY_END <= Gg.time.DAY_START && (_g = Jg(_g, Kg));
124257
- const Tg = `${_g} ${Kg}`;
124258
- Bg("day-was-clicked", _g), Bg("datetime-was-clicked", Tg);
124259
- }, Jg = (Qg, Kg) => {
124260
- const il = `${Gg.time.doubleDigit(Gg.time.DAY_START / 100)}:00`;
124261
- return Kg < il && (Qg = Gg.time.dateStringFrom(
124262
- Gg.time.addDaysToDateTimeString(1, Qg)
124263
- )), Qg;
124264
- }, $g = computed(() => {
124265
- var Qg;
124266
- return (Qg = Gg.config.dayIntervals) != null && Qg.intervalStyles ? Gg.config.dayIntervals.intervalStyles : {};
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
- }), (Qg, Kg) => {
124271
- const _g = __unplugin_components_0$3;
124273
+ }), (Kg, _g) => {
124274
+ const il = __unplugin_components_0$3;
124272
124275
  return openBlock(), createElementBlock("div", {
124273
- class: normalizeClass(["calendar-week__day", [!Lg.value && "has-pointer-cursor"]]),
124274
- onClick: withModifiers(Dg, ["self"])
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, (il, Tg) => (openBlock(), createBlock(_g, {
124277
- key: Tg,
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": il,
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: Kg[0] || (Kg[0] = (eI) => Bg("event-was-clicked", eI)),
124286
- onEventWasDragged: Kg[1] || (Kg[1] = (eI) => Bg("event-was-dragged", eI)),
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: Kg[2] || (Kg[2] = (eI) => Bg("drag-start")),
124289
- onDragEnd: Kg[3] || (Kg[3] = (eI) => Bg("drag-end"))
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((eI) => [
124292
- renderSlot(Qg.$slots, "weekDayEvent", {
124293
- eventData: eI.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, (il, Tg) => (openBlock(), createElementBlock("div", {
124299
- id: "interval-" + Tg,
124300
- key: il.intervalStart,
124301
- class: normalizeClass(["calendar-week__day-interval", { "has-border": il.hasBorder }]),
124302
- style: normalizeStyle($g.value),
124303
- onClick: (eI) => Yg(il)
124304
- }, toDisplayString$1(ps.time.getLocalizedTime(il.intervalStart)), 15, _hoisted_1$q))), 128)) : createCommentVNode("", !0)
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-d9a49457"]]), _hoisted_1$p = { class: "day-timeline" }, _hoisted_2$n = { class: "day-timeline__hour-text" }, _sfc_main$v = /* @__PURE__ */ defineComponent({
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 = (Ng) => {
124427
- const { date: Vg } = Zg.time.getAllVariablesFromDateTimeString(Ng.dateTimeString);
124428
- return Vg;
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
- }), (Ng, Vg) => {
124433
- const Xg = __unplugin_components_0$2;
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, (Yg, Fg) => (openBlock(), createElementBlock("div", {
124436
- key: Fg,
124437
- class: normalizeClass(["week-timeline__day", { "is-today": ps.time.getDateTimeStringFromDate(Bg.value, "start") === Yg.dateTimeString }]),
124438
- onClick: (Hg) => Gg("day-was-clicked", ps.time.dateStringFrom(Yg.dateTimeString))
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(Yg.dayName.substring(0, 2).toUpperCase()), 1),
124441
- createElementVNode("div", _hoisted_4$d, toDisplayString$1(Wg(Yg)), 1),
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(Yg.fullDayEvents, (Hg, Lg) => (openBlock(), createElementBlock(Fragment, { key: Lg }, [
124444
- Lg !== "date" ? (openBlock(), createBlock(Xg, {
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 Hg == "object" ? Hg : null,
124458
+ "schedule-event": typeof Lg == "object" ? Lg : null,
124447
124459
  config: ps.config,
124448
124460
  mode: ps.mode,
124449
- onEventWasClicked: Vg[0] || (Vg[0] = (Dg) => Gg("event-was-clicked", Dg))
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-5ce9c333"]]);
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;