@bagelink/vue 0.0.1256 → 0.0.1258

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/index.mjs CHANGED
@@ -64,7 +64,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
64
64
  });
65
65
  const _hoisted_1$19 = ["aria-expanded", "aria-controls"];
66
66
  const _hoisted_2$R = { class: "accordion-label" };
67
- const _hoisted_3$F = ["id", "aria-hidden"];
67
+ const _hoisted_3$G = ["id", "aria-hidden"];
68
68
  const _sfc_main$1l = /* @__PURE__ */ defineComponent({
69
69
  __name: "AccordionItem",
70
70
  props: {
@@ -149,7 +149,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
149
149
  "aria-hidden": unref(isOpen) ? "false" : "true"
150
150
  }, [
151
151
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
152
- ], 8, _hoisted_3$F)) : createCommentVNode("", true)
152
+ ], 8, _hoisted_3$G)) : createCommentVNode("", true)
153
153
  ]),
154
154
  _: 3
155
155
  })
@@ -422,7 +422,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
422
422
  const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["__scopeId", "data-v-689f051f"]]);
423
423
  const _hoisted_1$14 = ["src"];
424
424
  const _hoisted_2$P = ["autoplay", "muted", "loop", "controls", "playsinline"];
425
- const _hoisted_3$E = ["src", "type"];
425
+ const _hoisted_3$F = ["src", "type"];
426
426
  const _sfc_main$1f = /* @__PURE__ */ defineComponent({
427
427
  __name: "BglVideo",
428
428
  props: {
@@ -514,7 +514,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
514
514
  createElementVNode("source", {
515
515
  src: _ctx.src,
516
516
  type: `video/${videoFormat.value}`
517
- }, null, 8, _hoisted_3$E)
517
+ }, null, 8, _hoisted_3$F)
518
518
  ], 12, _hoisted_2$P)) : createCommentVNode("", true)
519
519
  ], 2);
520
520
  };
@@ -784,16 +784,16 @@ const DATE_TIME_STRING_PATTERN = /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$/;
784
784
  const DATE_TIME_STRING_FULL_DAY_PATTERN = /^\d{4}-\d{2}-\d{2}$/;
785
785
  const _hoisted_1$12 = ["id"];
786
786
  const _hoisted_2$N = { class: "flex txt14 flex column align-items-start gap-025 opacity-6" };
787
- const _hoisted_3$D = {
787
+ const _hoisted_3$E = {
788
788
  key: 0,
789
789
  class: "agenda__event-time flex gap-025"
790
790
  };
791
- const _hoisted_4$r = {
791
+ const _hoisted_4$s = {
792
792
  key: 1,
793
793
  class: "agenda__event-location flex gap-025"
794
794
  };
795
- const _hoisted_5$n = { class: "agenda__event-title" };
796
- const _hoisted_6$j = {
795
+ const _hoisted_5$o = { class: "agenda__event-title" };
796
+ const _hoisted_6$k = {
797
797
  key: 0,
798
798
  class: "agenda__event-with txt14 opacity-6"
799
799
  };
@@ -873,14 +873,14 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
873
873
  onClick: withModifiers(handleClickOnEvent, ["prevent"])
874
874
  }, [
875
875
  createElementVNode("div", _hoisted_2$N, [
876
- eventTime.value && !__props.calendarEvent.originalEvent ? (openBlock(), createElementBlock("span", _hoisted_3$D, [
876
+ eventTime.value && !__props.calendarEvent.originalEvent ? (openBlock(), createElementBlock("span", _hoisted_3$E, [
877
877
  createVNode(unref(_sfc_main$r), {
878
878
  icon: icons.clock,
879
879
  size: 0.8
880
880
  }, null, 8, ["icon"]),
881
881
  createTextVNode(" " + toDisplayString(eventTime.value), 1)
882
882
  ])) : createCommentVNode("", true),
883
- __props.calendarEvent.location ? (openBlock(), createElementBlock("span", _hoisted_4$r, [
883
+ __props.calendarEvent.location ? (openBlock(), createElementBlock("span", _hoisted_4$s, [
884
884
  createVNode(unref(_sfc_main$r), {
885
885
  icon: icons.location,
886
886
  size: 1
@@ -889,8 +889,8 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
889
889
  ])) : createCommentVNode("", true)
890
890
  ]),
891
891
  createElementVNode("div", null, [
892
- createElementVNode("div", _hoisted_5$n, toDisplayString(__props.calendarEvent.title), 1),
893
- __props.calendarEvent.with ? (openBlock(), createElementBlock("div", _hoisted_6$j, [
892
+ createElementVNode("div", _hoisted_5$o, toDisplayString(__props.calendarEvent.title), 1),
893
+ __props.calendarEvent.with ? (openBlock(), createElementBlock("div", _hoisted_6$k, [
894
894
  createVNode(unref(_sfc_main$r), {
895
895
  icon: icons.user
896
896
  }, null, 8, ["icon"]),
@@ -904,14 +904,14 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
904
904
  const AgendaEventTile = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["__scopeId", "data-v-5740437b"]]);
905
905
  const _hoisted_1$11 = { class: "agenda__wrapper grid align-items-start gap-1 h-100p" };
906
906
  const _hoisted_2$M = { class: "m_sticky" };
907
- const _hoisted_3$C = { class: "agenda__header-day-name txt-center" };
908
- const _hoisted_4$q = { class: "agenda__header-date flex justify-content-center rounded p-025 txt24 line-height-04" };
909
- const _hoisted_5$m = { class: "agenda__content flex column w-100p h-100p min-h-100px pt-05 border-start ps-1 m_pt-0 min-h-50px" };
910
- const _hoisted_6$i = {
907
+ const _hoisted_3$D = { class: "agenda__header-day-name txt-center" };
908
+ const _hoisted_4$r = { class: "agenda__header-date flex justify-content-center rounded p-025 txt24 line-height-04" };
909
+ const _hoisted_5$n = { class: "agenda__content flex column w-100p h-100p min-h-100px pt-05 border-start ps-1 m_pt-0 min-h-50px" };
910
+ const _hoisted_6$j = {
911
911
  key: 0,
912
912
  class: "align-items-center flex justify-content-center h-100p opacity-6"
913
913
  };
914
- const _hoisted_7$d = {
914
+ const _hoisted_7$e = {
915
915
  key: 1,
916
916
  class: "w-100p"
917
917
  };
@@ -937,11 +937,11 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
937
937
  return (_ctx, _cache) => {
938
938
  return openBlock(), createElementBlock("div", _hoisted_1$11, [
939
939
  createElementVNode("header", _hoisted_2$M, [
940
- createElementVNode("div", _hoisted_3$C, toDisplayString(__props.day.dayName.slice(0, 3)), 1),
941
- createElementVNode("div", _hoisted_4$q, toDisplayString(__props.day.dateTimeString.substring(8, 10)), 1)
940
+ createElementVNode("div", _hoisted_3$D, toDisplayString(__props.day.dayName.slice(0, 3)), 1),
941
+ createElementVNode("div", _hoisted_4$r, toDisplayString(__props.day.dateTimeString.substring(8, 10)), 1)
942
942
  ]),
943
- createElementVNode("div", _hoisted_5$m, [
944
- __props.day.events.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_6$i, toDisplayString(unref(getLanguage)(unref(languageKeys).noEvent, __props.time.CALENDAR_LOCALE)), 1)) : (openBlock(), createElementBlock("div", _hoisted_7$d, [
943
+ createElementVNode("div", _hoisted_5$n, [
944
+ __props.day.events.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_6$j, toDisplayString(unref(getLanguage)(unref(languageKeys).noEvent, __props.time.CALENDAR_LOCALE)), 1)) : (openBlock(), createElementBlock("div", _hoisted_7$e, [
945
945
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.day.events, (dayEvent) => {
946
946
  return openBlock(), createBlock(AgendaEventTile, {
947
947
  key: `agenda_event_${dayEvent.id}`,
@@ -1642,40 +1642,40 @@ const _hoisted_1$10 = {
1642
1642
  class: "event-flyout__relative-wrapper"
1643
1643
  };
1644
1644
  const _hoisted_2$L = { class: "event-flyout__menu" };
1645
- const _hoisted_3$B = {
1645
+ const _hoisted_3$C = {
1646
1646
  key: 0,
1647
1647
  class: "event-flyout__menu-editable"
1648
1648
  };
1649
- const _hoisted_4$p = { class: "event-flyout__menu-close" };
1650
- const _hoisted_5$l = {
1649
+ const _hoisted_4$q = { class: "event-flyout__menu-close" };
1650
+ const _hoisted_5$m = {
1651
1651
  key: 0,
1652
1652
  class: "event-flyout__info-wrapper"
1653
1653
  };
1654
- const _hoisted_6$h = {
1654
+ const _hoisted_6$i = {
1655
1655
  key: 0,
1656
1656
  class: "event-flyout__row is-title"
1657
1657
  };
1658
- const _hoisted_7$c = {
1658
+ const _hoisted_7$d = {
1659
1659
  key: 1,
1660
1660
  class: "event-flyout__row is-time"
1661
1661
  };
1662
- const _hoisted_8$8 = {
1662
+ const _hoisted_8$9 = {
1663
1663
  key: 2,
1664
1664
  class: "event-flyout__row is-location"
1665
1665
  };
1666
- const _hoisted_9$6 = {
1666
+ const _hoisted_9$7 = {
1667
1667
  key: 3,
1668
1668
  class: "event-flyout__row is-with"
1669
1669
  };
1670
- const _hoisted_10$6 = {
1670
+ const _hoisted_10$7 = {
1671
1671
  key: 4,
1672
1672
  class: "event-flyout__row is-topic"
1673
1673
  };
1674
- const _hoisted_11$5 = {
1674
+ const _hoisted_11$6 = {
1675
1675
  key: 5,
1676
1676
  class: "event-flyout__row is-description"
1677
1677
  };
1678
- const _hoisted_12$5 = ["innerHTML"];
1678
+ const _hoisted_12$6 = ["innerHTML"];
1679
1679
  const _sfc_main$1b = /* @__PURE__ */ defineComponent({
1680
1680
  __name: "EventFlyout",
1681
1681
  props: {
@@ -1851,7 +1851,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
1851
1851
  }, [
1852
1852
  !__props.config.eventDialog || !__props.config.eventDialog.isCustom ? (openBlock(), createElementBlock("div", _hoisted_1$10, [
1853
1853
  createElementVNode("div", _hoisted_2$L, [
1854
- isEditable.value ? (openBlock(), createElementBlock("span", _hoisted_3$B, [
1854
+ isEditable.value ? (openBlock(), createElementBlock("span", _hoisted_3$C, [
1855
1855
  createVNode(unref(_sfc_main$r), {
1856
1856
  class: "event-flyout__menu-item is-edit-icon",
1857
1857
  icon: icons.edit,
@@ -1863,7 +1863,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
1863
1863
  onClick: deleteEvent
1864
1864
  }, null, 8, ["icon"])
1865
1865
  ])) : createCommentVNode("", true),
1866
- createElementVNode("span", _hoisted_4$p, [
1866
+ createElementVNode("span", _hoisted_4$q, [
1867
1867
  createVNode(unref(_sfc_main$r), {
1868
1868
  class: "event-flyout__menu-item is-times-icon",
1869
1869
  icon: icons.times,
@@ -1871,40 +1871,40 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
1871
1871
  }, null, 8, ["icon"])
1872
1872
  ])
1873
1873
  ]),
1874
- calendarEvent.value ? (openBlock(), createElementBlock("div", _hoisted_5$l, [
1875
- calendarEvent.value.title ? (openBlock(), createElementBlock("div", _hoisted_6$h, [
1874
+ calendarEvent.value ? (openBlock(), createElementBlock("div", _hoisted_5$m, [
1875
+ calendarEvent.value.title ? (openBlock(), createElementBlock("div", _hoisted_6$i, [
1876
1876
  createElementVNode("div", {
1877
1877
  class: "event-flyout__color-icon",
1878
1878
  style: normalizeStyle({ backgroundColor: eventBackgroundColor.value })
1879
1879
  }, null, 4),
1880
1880
  createTextVNode(" " + toDisplayString(calendarEvent.value.title), 1)
1881
1881
  ])) : createCommentVNode("", true),
1882
- calendarEvent.value.time ? (openBlock(), createElementBlock("div", _hoisted_7$c, toDisplayString(getEventTime.value), 1)) : createCommentVNode("", true),
1883
- calendarEvent.value.location ? (openBlock(), createElementBlock("div", _hoisted_8$8, [
1882
+ calendarEvent.value.time ? (openBlock(), createElementBlock("div", _hoisted_7$d, toDisplayString(getEventTime.value), 1)) : createCommentVNode("", true),
1883
+ calendarEvent.value.location ? (openBlock(), createElementBlock("div", _hoisted_8$9, [
1884
1884
  createVNode(unref(_sfc_main$r), {
1885
1885
  icon: icons.location
1886
1886
  }, null, 8, ["icon"]),
1887
1887
  createTextVNode(" " + toDisplayString(calendarEvent.value.location), 1)
1888
1888
  ])) : createCommentVNode("", true),
1889
- calendarEvent.value.with ? (openBlock(), createElementBlock("div", _hoisted_9$6, [
1889
+ calendarEvent.value.with ? (openBlock(), createElementBlock("div", _hoisted_9$7, [
1890
1890
  createVNode(unref(_sfc_main$r), {
1891
1891
  icon: icons.user
1892
1892
  }, null, 8, ["icon"]),
1893
1893
  createTextVNode(" " + toDisplayString(calendarEvent.value.with), 1)
1894
1894
  ])) : createCommentVNode("", true),
1895
- calendarEvent.value.topic ? (openBlock(), createElementBlock("div", _hoisted_10$6, [
1895
+ calendarEvent.value.topic ? (openBlock(), createElementBlock("div", _hoisted_10$7, [
1896
1896
  createVNode(unref(_sfc_main$r), {
1897
1897
  icon: icons.topic
1898
1898
  }, null, 8, ["icon"]),
1899
1899
  createTextVNode(" " + toDisplayString(calendarEvent.value.topic), 1)
1900
1900
  ])) : createCommentVNode("", true),
1901
- calendarEvent.value.description ? (openBlock(), createElementBlock("div", _hoisted_11$5, [
1901
+ calendarEvent.value.description ? (openBlock(), createElementBlock("div", _hoisted_11$6, [
1902
1902
  createVNode(unref(_sfc_main$r), {
1903
1903
  icon: icons.description
1904
1904
  }, null, 8, ["icon"]),
1905
1905
  createElementVNode("p", {
1906
1906
  innerHTML: calendarEvent.value.description
1907
- }, null, 8, _hoisted_12$5)
1907
+ }, null, 8, _hoisted_12$6)
1908
1908
  ])) : createCommentVNode("", true)
1909
1909
  ])) : createCommentVNode("", true)
1910
1910
  ])) : renderSlot(_ctx.$slots, "default", {
@@ -1921,12 +1921,12 @@ const _hoisted_1$$ = {
1921
1921
  class: "calendar-month__event"
1922
1922
  };
1923
1923
  const _hoisted_2$K = ["id", "draggable"];
1924
- const _hoisted_3$A = ["id", "draggable"];
1925
- const _hoisted_4$o = {
1924
+ const _hoisted_3$B = ["id", "draggable"];
1925
+ const _hoisted_4$p = {
1926
1926
  key: 0,
1927
1927
  class: "calendar-month__event-time opacity-6 flex-shrink-0"
1928
1928
  };
1929
- const _hoisted_5$k = { class: "calendar-month__event-title1 white-space ellipsis" };
1929
+ const _hoisted_5$l = { class: "calendar-month__event-title1 white-space ellipsis" };
1930
1930
  const eventIdPrefix = "calendar-month__event-";
1931
1931
  const _sfc_main$1a = /* @__PURE__ */ defineComponent({
1932
1932
  __name: "Event",
@@ -2029,9 +2029,9 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
2029
2029
  onClick: handleClickOnEvent
2030
2030
  }, [
2031
2031
  _cache[0] || (_cache[0] = createElementVNode("span", { class: "calendar-month__event-color round flex-shrink-0" }, null, -1)),
2032
- eventTimeStart.value && !__props.calendarEvent.originalEvent ? (openBlock(), createElementBlock("span", _hoisted_4$o, toDisplayString(eventTimeStart.value), 1)) : createCommentVNode("", true),
2033
- createElementVNode("span", _hoisted_5$k, toDisplayString(__props.calendarEvent.title), 1)
2034
- ], 42, _hoisted_3$A))
2032
+ eventTimeStart.value && !__props.calendarEvent.originalEvent ? (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(eventTimeStart.value), 1)) : createCommentVNode("", true),
2033
+ createElementVNode("span", _hoisted_5$l, toDisplayString(__props.calendarEvent.title), 1)
2034
+ ], 42, _hoisted_3$B))
2035
2035
  ], 64));
2036
2036
  };
2037
2037
  }
@@ -2039,8 +2039,8 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
2039
2039
  const Event = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-3c4101df"]]);
2040
2040
  const _hoisted_1$_ = ["id"];
2041
2041
  const _hoisted_2$J = { class: "w-100p flex justify-content-end txt14 p-025 m_h-100p" };
2042
- const _hoisted_3$z = { class: "calendar-month_events" };
2043
- const _hoisted_4$n = {
2042
+ const _hoisted_3$A = { class: "calendar-month_events" };
2043
+ const _hoisted_4$o = {
2044
2044
  key: 1,
2045
2045
  class: "space-reserver"
2046
2046
  };
@@ -2147,7 +2147,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
2147
2147
  onClick: emitDayWasClicked
2148
2148
  }, toDisplayString(__props.day.dateTimeString.substring(8, 10).startsWith("0") ? __props.day.dateTimeString.substring(9, 10) : __props.day.dateTimeString.substring(8, 10)), 1)
2149
2149
  ]),
2150
- createElementVNode("div", _hoisted_3$z, [
2150
+ createElementVNode("div", _hoisted_3$A, [
2151
2151
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.day.events, (calendarEvent, index2) => {
2152
2152
  return openBlock(), createElementBlock(Fragment, { key: index2 }, [
2153
2153
  index2 < 3 ? (openBlock(), createBlock(Event, {
@@ -2174,7 +2174,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
2174
2174
  }, toDisplayString(unref(getLanguage)(unref(languageKeys).moreEvents, __props.time.CALENDAR_LOCALE)), 1)) : createCommentVNode("", true)
2175
2175
  ])
2176
2176
  ], true)
2177
- ], 42, _hoisted_1$_)) : (openBlock(), createElementBlock("div", _hoisted_4$n));
2177
+ ], 42, _hoisted_1$_)) : (openBlock(), createElementBlock("div", _hoisted_4$o));
2178
2178
  };
2179
2179
  }
2180
2180
  });
@@ -2193,8 +2193,8 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
2193
2193
  });
2194
2194
  const _hoisted_1$Y = { class: "calendar-month relative column w-100p h-100p overflow-y flex flex-stretch" };
2195
2195
  const _hoisted_2$I = { class: "flex space-between" };
2196
- const _hoisted_3$y = { class: "calendar-month__weeks h-100p flex-grow flex flex-stretch column space-between" };
2197
- const _hoisted_4$m = {
2196
+ const _hoisted_3$z = { class: "calendar-month__weeks h-100p flex-grow flex flex-stretch column space-between" };
2197
+ const _hoisted_4$n = {
2198
2198
  key: 0,
2199
2199
  class: "calendar-month__day_events w-100p pt-1 m_pb-1"
2200
2200
  };
@@ -2312,7 +2312,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
2312
2312
  }, null, 8, ["config", "day", "time"]);
2313
2313
  }), 128))
2314
2314
  ]),
2315
- createElementVNode("div", _hoisted_3$y, [
2315
+ createElementVNode("div", _hoisted_3$z, [
2316
2316
  (openBlock(true), createElementBlock(Fragment, null, renderList(month.value, (week, weekIndex) => {
2317
2317
  return openBlock(), createElementBlock("div", {
2318
2318
  key: weekIndex,
@@ -2344,7 +2344,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
2344
2344
  ]);
2345
2345
  }), 128))
2346
2346
  ]),
2347
- !(((_a2 = __props.config.month) == null ? void 0 : _a2.showEventsOnMobileView) === false) ? (openBlock(), createElementBlock("div", _hoisted_4$m, [
2347
+ !(((_a2 = __props.config.month) == null ? void 0 : _a2.showEventsOnMobileView) === false) ? (openBlock(), createElementBlock("div", _hoisted_4$n, [
2348
2348
  selectedDay.value ? (openBlock(), createBlock(AgendaEvents, {
2349
2349
  key: 0,
2350
2350
  config: __props.config,
@@ -2581,24 +2581,24 @@ class EventChange {
2581
2581
  }
2582
2582
  const _hoisted_1$X = ["data-ref"];
2583
2583
  const _hoisted_2$H = { class: "calendar-week__event-row is-title" };
2584
- const _hoisted_3$x = { class: "calendar-week__event-row is-time flex" };
2585
- const _hoisted_4$l = {
2584
+ const _hoisted_3$y = { class: "calendar-week__event-row is-time flex" };
2585
+ const _hoisted_4$m = {
2586
2586
  key: 0,
2587
2587
  class: "calendar-week__event-row is-location"
2588
2588
  };
2589
- const _hoisted_5$j = {
2589
+ const _hoisted_5$k = {
2590
2590
  key: 1,
2591
2591
  class: "calendar-week__event-row is-with"
2592
2592
  };
2593
- const _hoisted_6$g = {
2593
+ const _hoisted_6$h = {
2594
2594
  key: 2,
2595
2595
  class: "calendar-week__event-row is-topic"
2596
2596
  };
2597
- const _hoisted_7$b = {
2597
+ const _hoisted_7$c = {
2598
2598
  key: 3,
2599
2599
  class: "calendar-week__event-row is-description"
2600
2600
  };
2601
- const _hoisted_8$7 = ["innerHTML"];
2601
+ const _hoisted_8$8 = ["innerHTML"];
2602
2602
  const _sfc_main$16 = /* @__PURE__ */ defineComponent({
2603
2603
  __name: "DayEvent",
2604
2604
  props: {
@@ -2942,42 +2942,42 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
2942
2942
  })
2943
2943
  }, [
2944
2944
  createElementVNode("div", _hoisted_2$H, toDisplayString(event.value.title), 1),
2945
- createElementVNode("div", _hoisted_3$x, [
2945
+ createElementVNode("div", _hoisted_3$y, [
2946
2946
  createVNode(unref(_sfc_main$r), {
2947
2947
  icon: icons.value.clock,
2948
2948
  class: "calendar-week__event-icon"
2949
2949
  }, null, 8, ["icon"]),
2950
2950
  createElementVNode("span", null, toDisplayString(getEventTime.value), 1)
2951
2951
  ]),
2952
- event.value.location ? (openBlock(), createElementBlock("div", _hoisted_4$l, [
2952
+ event.value.location ? (openBlock(), createElementBlock("div", _hoisted_4$m, [
2953
2953
  createVNode(unref(_sfc_main$r), {
2954
2954
  icon: icons.value.location,
2955
2955
  class: "calendar-week__event-icon"
2956
2956
  }, null, 8, ["icon"]),
2957
2957
  createElementVNode("span", null, toDisplayString(event.value.location), 1)
2958
2958
  ])) : createCommentVNode("", true),
2959
- event.value.with ? (openBlock(), createElementBlock("div", _hoisted_5$j, [
2959
+ event.value.with ? (openBlock(), createElementBlock("div", _hoisted_5$k, [
2960
2960
  createVNode(unref(_sfc_main$r), {
2961
2961
  icon: icons.value.user,
2962
2962
  class: "calendar-week__event-icon"
2963
2963
  }, null, 8, ["icon"]),
2964
2964
  createElementVNode("span", null, toDisplayString(event.value.with), 1)
2965
2965
  ])) : createCommentVNode("", true),
2966
- event.value.topic ? (openBlock(), createElementBlock("div", _hoisted_6$g, [
2966
+ event.value.topic ? (openBlock(), createElementBlock("div", _hoisted_6$h, [
2967
2967
  createVNode(unref(_sfc_main$r), {
2968
2968
  icon: icons.value.topic,
2969
2969
  class: "calendar-week__event-icon"
2970
2970
  }, null, 8, ["icon"]),
2971
2971
  createElementVNode("span", null, toDisplayString(event.value.topic), 1)
2972
2972
  ])) : createCommentVNode("", true),
2973
- event.value.description ? (openBlock(), createElementBlock("div", _hoisted_7$b, [
2973
+ event.value.description ? (openBlock(), createElementBlock("div", _hoisted_7$c, [
2974
2974
  createVNode(unref(_sfc_main$r), {
2975
2975
  icon: icons.value.description,
2976
2976
  class: "calendar-week__event-icon"
2977
2977
  }, null, 8, ["icon"]),
2978
2978
  createElementVNode("p", {
2979
2979
  innerHTML: event.value.description
2980
- }, null, 8, _hoisted_8$7)
2980
+ }, null, 8, _hoisted_8$8)
2981
2981
  ])) : createCommentVNode("", true),
2982
2982
  eventIsLongerThan30Minutes.value ? (openBlock(), createElementBlock("div", {
2983
2983
  key: 4,
@@ -3274,10 +3274,10 @@ const _hoisted_1$T = {
3274
3274
  style: { "margin-inline-end": "0.5em" }
3275
3275
  };
3276
3276
  const _hoisted_2$E = ["onClick"];
3277
- const _hoisted_3$w = { class: "flex justify-content-center gap-025 txt12 pb-025" };
3278
- const _hoisted_4$k = { class: "" };
3279
- const _hoisted_5$i = { class: "week-timeline__date txt14 round inline-flex justify-content-center" };
3280
- const _hoisted_6$f = { class: "week-timeline__events" };
3277
+ const _hoisted_3$x = { class: "flex justify-content-center gap-025 txt12 pb-025" };
3278
+ const _hoisted_4$l = { class: "" };
3279
+ const _hoisted_5$j = { class: "week-timeline__date txt14 round inline-flex justify-content-center" };
3280
+ const _hoisted_6$g = { class: "week-timeline__events" };
3281
3281
  const _sfc_main$12 = /* @__PURE__ */ defineComponent({
3282
3282
  __name: "WeekTimeline",
3283
3283
  props: {
@@ -3308,11 +3308,11 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
3308
3308
  }]),
3309
3309
  onClick: ($event) => emit2("dayWasClicked", _ctx.time.dateStringFrom(day.dateTimeString))
3310
3310
  }, [
3311
- createElementVNode("div", _hoisted_3$w, [
3312
- createElementVNode("div", _hoisted_4$k, toDisplayString(day.dayName.charAt(0).toUpperCase() + day.dayName.slice(1, 3).toLowerCase()), 1),
3313
- createElementVNode("div", _hoisted_5$i, toDisplayString(getDaysDate(day)), 1)
3311
+ createElementVNode("div", _hoisted_3$x, [
3312
+ createElementVNode("div", _hoisted_4$l, toDisplayString(day.dayName.charAt(0).toUpperCase() + day.dayName.slice(1, 3).toLowerCase()), 1),
3313
+ createElementVNode("div", _hoisted_5$j, toDisplayString(getDaysDate(day)), 1)
3314
3314
  ]),
3315
- createElementVNode("div", _hoisted_6$f, [
3315
+ createElementVNode("div", _hoisted_6$g, [
3316
3316
  (openBlock(true), createElementBlock(Fragment, null, renderList(day.fullDayEvents, (event, key) => {
3317
3317
  return openBlock(), createElementBlock(Fragment, { key }, [
3318
3318
  key !== "date" ? (openBlock(), createBlock(FullDayEvent, {
@@ -3334,7 +3334,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
3334
3334
  const WeekTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-18ecf6c3"]]);
3335
3335
  const _hoisted_1$S = { class: "calendar-week__wrapper relative ps-3-5" };
3336
3336
  const _hoisted_2$D = { class: "calendar-week" };
3337
- const _hoisted_3$v = { class: "calendar-week__events" };
3337
+ const _hoisted_3$w = { class: "calendar-week__events" };
3338
3338
  const _sfc_main$11 = /* @__PURE__ */ defineComponent({
3339
3339
  __name: "Week",
3340
3340
  props: {
@@ -3600,7 +3600,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
3600
3600
  "day-intervals": dayIntervals.value,
3601
3601
  "week-height": weekHeight.value
3602
3602
  }, null, 8, ["time", "day-intervals", "week-height"])),
3603
- createElementVNode("div", _hoisted_3$v, [
3603
+ createElementVNode("div", _hoisted_3$w, [
3604
3604
  (openBlock(true), createElementBlock(Fragment, null, renderList(days.value, (day, dayIndex) => {
3605
3605
  return openBlock(), createBlock(Day, {
3606
3606
  key: day.dateTimeString + mode.value + weekVersion.value,
@@ -3684,7 +3684,7 @@ ${_Errors.SUFFIX}`);
3684
3684
  let Errors = _Errors;
3685
3685
  const _hoisted_1$R = { class: "calendar-root-wrapper txt16" };
3686
3686
  const _hoisted_2$C = ["data-lang"];
3687
- const _hoisted_3$u = {
3687
+ const _hoisted_3$v = {
3688
3688
  key: 0,
3689
3689
  class: "top-bar-loader"
3690
3690
  };
@@ -3880,7 +3880,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
3880
3880
  }, [
3881
3881
  createVNode(Transition, { name: "loading" }, {
3882
3882
  default: withCtx(() => [
3883
- __props.isLoading ? (openBlock(), createElementBlock("div", _hoisted_3$u)) : createCommentVNode("", true)
3883
+ __props.isLoading ? (openBlock(), createElementBlock("div", _hoisted_3$v)) : createCommentVNode("", true)
3884
3884
  ]),
3885
3885
  _: 1
3886
3886
  }),
@@ -4018,8 +4018,8 @@ const _hoisted_2$B = {
4018
4018
  key: 0,
4019
4019
  class: "dots"
4020
4020
  };
4021
- const _hoisted_3$t = ["onClick"];
4022
- const _hoisted_4$j = { class: "Handlers" };
4021
+ const _hoisted_3$u = ["onClick"];
4022
+ const _hoisted_4$k = { class: "Handlers" };
4023
4023
  const GAP_PERCENT = 1;
4024
4024
  const VELOCITY_SAMPLE_DURATION = 100;
4025
4025
  const _sfc_main$_ = /* @__PURE__ */ defineComponent({
@@ -4454,10 +4454,10 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
4454
4454
  key: i2,
4455
4455
  class: normalizeClass(["dot", { current: unref(activeSlideIndex) === i2 - 1 }]),
4456
4456
  onClick: ($event) => goToSlide(i2 - 1)
4457
- }, null, 10, _hoisted_3$t);
4457
+ }, null, 10, _hoisted_3$u);
4458
4458
  }), 128))
4459
4459
  ])) : createCommentVNode("", true),
4460
- createElementVNode("div", _hoisted_4$j, [
4460
+ createElementVNode("div", _hoisted_4$k, [
4461
4461
  createElementVNode("span", { onClick: prev }, [
4462
4462
  renderSlot(_ctx.$slots, "prev", {
4463
4463
  index: unref(activeSlideIndex),
@@ -9386,7 +9386,7 @@ const _hoisted_4$2$1 = {
9386
9386
  };
9387
9387
  const _hoisted_5$2$1 = ["x1", "y1", "x2", "y2"];
9388
9388
  const _hoisted_6$2$1 = ["x1", "y1", "x2", "y2"];
9389
- const _hoisted_7$a = ["x1", "y1", "x2", "y2"];
9389
+ const _hoisted_7$b = ["x1", "y1", "x2", "y2"];
9390
9390
  function render$5(_ctx, _cache, $props, $setup, $data, $options) {
9391
9391
  return _ctx.data.length ? (openBlock(), createElementBlock("g", {
9392
9392
  key: 0,
@@ -9442,7 +9442,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
9442
9442
  y1: _ctx.canvas.y,
9443
9443
  x2: _ctx.canvas.width - 1,
9444
9444
  y2: _ctx.canvas.height
9445
- }, null, 8, _hoisted_7$a)
9445
+ }, null, 8, _hoisted_7$b)
9446
9446
  ])
9447
9447
  ], 8, _hoisted_1$4$1)) : createCommentVNode("v-if", true);
9448
9448
  }
@@ -10309,10 +10309,10 @@ const _hoisted_1$1$1 = {
10309
10309
  style: { display: "flex", position: "relative" }
10310
10310
  };
10311
10311
  const _hoisted_2$1$1 = ["width", "height", "viewBox"];
10312
- const _hoisted_3$s = { class: "layer-rectangles" };
10313
- const _hoisted_4$i = ["transform", "onMouseover"];
10314
- const _hoisted_5$h = ["width", "height"];
10315
- const _hoisted_6$e = {
10312
+ const _hoisted_3$t = { class: "layer-rectangles" };
10313
+ const _hoisted_4$j = ["transform", "onMouseover"];
10314
+ const _hoisted_5$i = ["width", "height"];
10315
+ const _hoisted_6$f = {
10316
10316
  x: 0 + 10,
10317
10317
  y: 0 + 20,
10318
10318
  "font-size": `15px`,
@@ -10327,7 +10327,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
10327
10327
  viewBox: `0 0 ${_ctx.size.width} ${_ctx.size.height}`,
10328
10328
  ref: "el"
10329
10329
  }, [
10330
- createElementVNode("g", _hoisted_3$s, [
10330
+ createElementVNode("g", _hoisted_3$t, [
10331
10331
  (openBlock(true), createElementBlock(
10332
10332
  Fragment,
10333
10333
  null,
@@ -10348,21 +10348,21 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
10348
10348
  y: 0,
10349
10349
  width: r2.width,
10350
10350
  height: r2.height
10351
- }), null, 16, _hoisted_5$h),
10351
+ }), null, 16, _hoisted_5$i),
10352
10352
  renderSlot(_ctx.$slots, "text", {
10353
10353
  r: r2,
10354
10354
  selected: _ctx.selected === i2
10355
10355
  }, () => [
10356
10356
  createElementVNode(
10357
10357
  "text",
10358
- _hoisted_6$e,
10358
+ _hoisted_6$f,
10359
10359
  toDisplayString(r2.data.name),
10360
10360
  1
10361
10361
  /* TEXT */
10362
10362
  )
10363
10363
  ])
10364
10364
  ])
10365
- ], 42, _hoisted_4$i);
10365
+ ], 42, _hoisted_4$j);
10366
10366
  }),
10367
10367
  128
10368
10368
  /* KEYED_FRAGMENT */
@@ -10594,7 +10594,7 @@ function useSchemaField(options) {
10594
10594
  richtext: RichText,
10595
10595
  upload: UploadInput,
10596
10596
  file: UploadInput,
10597
- date: _sfc_main$M,
10597
+ date: DateInput,
10598
10598
  tabs: TabsNav,
10599
10599
  form: _sfc_main$S
10600
10600
  };
@@ -11483,14 +11483,14 @@ const _hoisted_1$M = {
11483
11483
  class: "loading-table-wrapper z-99 h-100 w-100 absolute inset"
11484
11484
  };
11485
11485
  const _hoisted_2$z = { class: "infinite-wrapper" };
11486
- const _hoisted_3$r = { class: "row first-row" };
11487
- const _hoisted_4$h = { key: 0 };
11488
- const _hoisted_5$g = ["onClick"];
11489
- const _hoisted_6$d = { class: "flex" };
11490
- const _hoisted_7$9 = ["onClick"];
11491
- const _hoisted_8$6 = { key: 0 };
11492
- const _hoisted_9$5 = ["value"];
11493
- const _hoisted_10$5 = { key: 1 };
11486
+ const _hoisted_3$s = { class: "row first-row" };
11487
+ const _hoisted_4$i = { key: 0 };
11488
+ const _hoisted_5$h = ["onClick"];
11489
+ const _hoisted_6$e = { class: "flex" };
11490
+ const _hoisted_7$a = ["onClick"];
11491
+ const _hoisted_8$7 = { key: 0 };
11492
+ const _hoisted_9$6 = ["value"];
11493
+ const _hoisted_10$6 = { key: 1 };
11494
11494
  const _sfc_main$X = /* @__PURE__ */ defineComponent({
11495
11495
  __name: "DataTable",
11496
11496
  props: /* @__PURE__ */ mergeModels({
@@ -11610,8 +11610,8 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
11610
11610
  createElementVNode("div", { class: "loading-table-animation absolute oval" }, null, -1)
11611
11611
  ]))) : (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 1 }, unref(wrapperProps))), [
11612
11612
  createElementVNode("table", _hoisted_2$z, [
11613
- createElementVNode("thead", _hoisted_3$r, [
11614
- unref(isSelectable) ? (openBlock(), createElementBlock("th", _hoisted_4$h, [
11613
+ createElementVNode("thead", _hoisted_3$s, [
11614
+ unref(isSelectable) ? (openBlock(), createElementBlock("th", _hoisted_4$i, [
11615
11615
  createElementVNode("input", {
11616
11616
  ref_key: "allSelectorEl",
11617
11617
  ref: allSelectorEl,
@@ -11628,7 +11628,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
11628
11628
  class: "col",
11629
11629
  onClick: ($event) => unref(toggleSort)((field == null ? void 0 : field.id) || "")
11630
11630
  }, [
11631
- createElementVNode("div", _hoisted_6$d, [
11631
+ createElementVNode("div", _hoisted_6$e, [
11632
11632
  createTextVNode(toDisplayString(field.label || unref(keyToLabel)(field.id)) + " ", 1),
11633
11633
  createElementVNode("div", {
11634
11634
  class: normalizeClass(["list-arrows", { sorted: unref(sortField) === field.id }])
@@ -11639,7 +11639,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
11639
11639
  }, null, 8, ["class"])
11640
11640
  ], 2)
11641
11641
  ])
11642
- ], 8, _hoisted_5$g);
11642
+ ], 8, _hoisted_5$h);
11643
11643
  }), 128))
11644
11644
  ]),
11645
11645
  createElementVNode("tbody", null, [
@@ -11649,7 +11649,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
11649
11649
  class: normalizeClass(["row row-item position-relative", { selected: unref(computedSelectedItems).includes(row.id ?? "") }]),
11650
11650
  onClick: ($event) => unref(toggleSelectItem)(row)
11651
11651
  }, [
11652
- unref(isSelectable) ? (openBlock(), createElementBlock("td", _hoisted_8$6, [
11652
+ unref(isSelectable) ? (openBlock(), createElementBlock("td", _hoisted_8$7, [
11653
11653
  createElementVNode("div", {
11654
11654
  onClick: _cache[3] || (_cache[3] = withModifiers(() => {
11655
11655
  }, ["stop"]))
@@ -11658,7 +11658,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
11658
11658
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => selectedItems.value = $event),
11659
11659
  type: "checkbox",
11660
11660
  value: row.id
11661
- }, null, 8, _hoisted_9$5), [
11661
+ }, null, 8, _hoisted_9$6), [
11662
11662
  [vModelCheckbox, selectedItems.value]
11663
11663
  ])
11664
11664
  ])
@@ -11672,12 +11672,12 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
11672
11672
  key: 0,
11673
11673
  row,
11674
11674
  field
11675
- }, void 0, true) : (openBlock(), createElementBlock("div", _hoisted_10$5, [
11675
+ }, void 0, true) : (openBlock(), createElementBlock("div", _hoisted_10$6, [
11676
11676
  (openBlock(), createBlock(resolveDynamicComponent(renderFieldForRow(field, row))))
11677
11677
  ]))
11678
11678
  ]);
11679
11679
  }), 128))
11680
- ], 10, _hoisted_7$9);
11680
+ ], 10, _hoisted_7$a);
11681
11681
  }), 128)),
11682
11682
  props2.onLastItemVisible !== void 0 ? (openBlock(), createElementBlock("tr", {
11683
11683
  key: 0,
@@ -14939,7 +14939,6 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
14939
14939
  const formData = ref(safeClone2(props2.modelValue ?? {}));
14940
14940
  const initialFormData = ref(safeClone2(props2.modelValue ?? {}));
14941
14941
  onMounted(() => {
14942
- console.log("formData.value");
14943
14942
  if (props2.modelValue) {
14944
14943
  initialFormData.value = safeClone2(props2.modelValue);
14945
14944
  }
@@ -15058,7 +15057,7 @@ const _hoisted_2$x = {
15058
15057
  key: 0,
15059
15058
  class: "ps-025 border-start"
15060
15059
  };
15061
- const _hoisted_3$q = { class: "bg-gray-80 -my-05 px-025 pt-065 txt-center" };
15060
+ const _hoisted_3$r = { class: "bg-gray-80 -my-05 px-025 pt-065 txt-center" };
15062
15061
  const _sfc_main$R = /* @__PURE__ */ defineComponent({
15063
15062
  __name: "FieldArray",
15064
15063
  props: {
@@ -15141,7 +15140,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
15141
15140
  "onUpdate:modelValue": [($event) => data2.value[i2] = $event, emitValue],
15142
15141
  schema: _ctx.schema
15143
15142
  }, null, 8, ["modelValue", "onUpdate:modelValue", "schema"]),
15144
- createElementVNode("div", _hoisted_3$q, [
15143
+ createElementVNode("div", _hoisted_3$r, [
15145
15144
  props2.delete ? (openBlock(), createBlock(unref(Btn), {
15146
15145
  key: 0,
15147
15146
  icon: "delete",
@@ -15202,7 +15201,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
15202
15201
  const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-73f1d9ad"]]);
15203
15202
  const _hoisted_1$I = ["title"];
15204
15203
  const _hoisted_2$w = ["id", "value", "required"];
15205
- const _hoisted_3$p = ["for"];
15204
+ const _hoisted_3$q = ["for"];
15206
15205
  const _sfc_main$P = /* @__PURE__ */ defineComponent({
15207
15206
  __name: "CheckInput",
15208
15207
  props: /* @__PURE__ */ mergeModels({
@@ -15244,7 +15243,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
15244
15243
  renderSlot(_ctx.$slots, "label", {}, () => [
15245
15244
  createTextVNode(toDisplayString(_ctx.label), 1)
15246
15245
  ], true)
15247
- ], 8, _hoisted_3$p)
15246
+ ], 8, _hoisted_3$q)
15248
15247
  ], 10, _hoisted_1$I);
15249
15248
  };
15250
15249
  }
@@ -15255,13 +15254,13 @@ const _hoisted_2$v = {
15255
15254
  key: 0,
15256
15255
  class: "label txt-start"
15257
15256
  };
15258
- const _hoisted_3$o = {
15257
+ const _hoisted_3$p = {
15259
15258
  key: 1,
15260
15259
  class: "code-editor-wrap grid rounded p-1 overflow hm-300px ltr txt-start relative h-100p"
15261
15260
  };
15262
- const _hoisted_4$g = { class: "overflow-hidden absolute inset-0 p-0 m-0 h-100 codeText" };
15263
- const _hoisted_5$f = ["innerHTML"];
15264
- const _hoisted_6$c = ["onKeydown"];
15261
+ const _hoisted_4$h = { class: "overflow-hidden absolute inset-0 p-0 m-0 h-100 codeText" };
15262
+ const _hoisted_5$g = ["innerHTML"];
15263
+ const _hoisted_6$d = ["onKeydown"];
15265
15264
  const _sfc_main$O = /* @__PURE__ */ defineComponent({
15266
15265
  __name: "Index",
15267
15266
  props: {
@@ -15346,17 +15345,17 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
15346
15345
  return (_ctx, _cache) => {
15347
15346
  return openBlock(), createElementBlock("div", _hoisted_1$H, [
15348
15347
  _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$v, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
15349
- unref(loaded) ? (openBlock(), createElementBlock("div", _hoisted_3$o, [
15348
+ unref(loaded) ? (openBlock(), createElementBlock("div", _hoisted_3$p, [
15350
15349
  createElementVNode("div", {
15351
15350
  class: "relative block h-100",
15352
15351
  style: normalizeStyle({ height: `calc(${unref(elHeight)} - 2rem)` })
15353
15352
  }, [
15354
- createElementVNode("pre", _hoisted_4$g, [
15353
+ createElementVNode("pre", _hoisted_4$h, [
15355
15354
  _cache[2] || (_cache[2] = createTextVNode(" ")),
15356
15355
  createElementVNode("code", {
15357
15356
  class: normalizeClass(["absolute inset-0", className.value]),
15358
15357
  innerHTML: highlightedCode.value
15359
- }, null, 10, _hoisted_5$f),
15358
+ }, null, 10, _hoisted_5$g),
15360
15359
  _cache[3] || (_cache[3] = createTextVNode("\n "))
15361
15360
  ]),
15362
15361
  !_ctx.readonly ? withDirectives((openBlock(), createElementBlock("textarea", {
@@ -15371,7 +15370,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
15371
15370
  "data-gramm": "false",
15372
15371
  onKeydown: withKeys(withModifiers(handleTab, ["prevent"]), ["tab"]),
15373
15372
  onInput: _cache[1] || (_cache[1] = ($event) => emit2("update:modelValue", unref(code)))
15374
- }, null, 40, _hoisted_6$c)), [
15373
+ }, null, 40, _hoisted_6$d)), [
15375
15374
  [vModelText, unref(code)]
15376
15375
  ]) : createCommentVNode("", true)
15377
15376
  ], 4)
@@ -15429,6 +15428,801 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
15429
15428
  };
15430
15429
  }
15431
15430
  });
15431
+ const _hoisted_1$F = ["title"];
15432
+ const _hoisted_2$t = { key: 0 };
15433
+ const _hoisted_3$o = {
15434
+ key: 0,
15435
+ class: "required"
15436
+ };
15437
+ const _hoisted_4$g = { class: "date-picker-container" };
15438
+ const _hoisted_5$f = { class: "flex gap-075 p-05 m_flex-wrap calendar-container justify-content-center h-100p" };
15439
+ const _hoisted_6$c = { class: "calendar-section m_border-none pe-05 m_p-0" };
15440
+ const _hoisted_7$9 = { class: "flex space-between pb-1" };
15441
+ const _hoisted_8$6 = { class: "flex gap-05" };
15442
+ const _hoisted_9$5 = { class: "month-year" };
15443
+ const _hoisted_10$5 = {
15444
+ key: 0,
15445
+ class: "calendar-grid grid gap-025"
15446
+ };
15447
+ const _hoisted_11$5 = ["disabled", "onClick"];
15448
+ const _hoisted_12$5 = {
15449
+ key: 1,
15450
+ class: "month-grid grid gap-05 p-05"
15451
+ };
15452
+ const _hoisted_13$4 = ["disabled", "onClick"];
15453
+ const _hoisted_14$4 = {
15454
+ key: 2,
15455
+ class: "year-grid grid gap-05 p-0"
15456
+ };
15457
+ const _hoisted_15$4 = ["disabled", "onClick"];
15458
+ const _hoisted_16$4 = {
15459
+ key: 0,
15460
+ class: "time-picker border-start flex column gap-1 w-120px"
15461
+ };
15462
+ const _hoisted_17$4 = { class: "flex gap-025" };
15463
+ const _hoisted_18$2 = { class: "txt-center opacity-6 txt14" };
15464
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
15465
+ __name: "DateInput",
15466
+ props: {
15467
+ required: { type: Boolean },
15468
+ label: {},
15469
+ editMode: { type: Boolean, default: true },
15470
+ small: { type: Boolean, default: false },
15471
+ enableTime: { type: Boolean, default: false },
15472
+ modelValue: {},
15473
+ min: {},
15474
+ max: {},
15475
+ timezone: { default: "UTC" },
15476
+ mode: { default: "day" },
15477
+ firstDayOfWeek: { default: WEEK_START_DAY.MONDAY },
15478
+ locale: { default: "" },
15479
+ center: { type: Boolean }
15480
+ },
15481
+ emits: ["update:modelValue"],
15482
+ setup(__props, { emit: __emit }) {
15483
+ const props2 = __props;
15484
+ const emit2 = __emit;
15485
+ let isOpen = ref(false);
15486
+ let currentMonth = ref(/* @__PURE__ */ new Date());
15487
+ let currentView = ref("days");
15488
+ const time = new Time(props2.firstDayOfWeek, props2.locale);
15489
+ function formatDisplayDate(date2) {
15490
+ if (!date2) return "";
15491
+ const dateObj = typeof date2 === "string" ? new Date(date2) : date2;
15492
+ if (props2.enableTime) {
15493
+ return dateObj.toLocaleString(props2.locale || void 0, {
15494
+ year: "numeric",
15495
+ month: "short",
15496
+ day: "numeric",
15497
+ hour: "2-digit",
15498
+ minute: "2-digit",
15499
+ timeZone: props2.timezone
15500
+ });
15501
+ }
15502
+ return dateObj.toLocaleString(props2.locale || void 0, {
15503
+ year: "numeric",
15504
+ month: "short",
15505
+ day: "numeric",
15506
+ timeZone: props2.timezone
15507
+ });
15508
+ }
15509
+ function formatDate(date2) {
15510
+ if (!date2) return "";
15511
+ const dateObj = typeof date2 === "string" ? new Date(date2) : date2;
15512
+ return props2.enableTime ? dateObj.toISOString().slice(0, 16) : dateObj.toISOString().split("T")[0];
15513
+ }
15514
+ const formattedDisplayValue = computed(() => formatDisplayDate(props2.modelValue));
15515
+ const formattedMin = computed(() => formatDate(props2.min));
15516
+ const formattedMax = computed(() => formatDate(props2.max));
15517
+ const selectedDate = computed(() => {
15518
+ if (!props2.modelValue) return null;
15519
+ return typeof props2.modelValue === "string" ? new Date(props2.modelValue) : props2.modelValue;
15520
+ });
15521
+ const currentMonthDays = computed(() => {
15522
+ const year = currentMonth.value.getFullYear();
15523
+ const month = currentMonth.value.getMonth();
15524
+ return time.getCalendarMonthSplitInWeeks(year, month).flat();
15525
+ });
15526
+ const currentMonthValue = computed(() => ({
15527
+ month: currentMonth.value.getMonth(),
15528
+ year: currentMonth.value.getFullYear(),
15529
+ formatted: {
15530
+ month: time.getLocalizedNameOfMonth(currentMonth.value, "long"),
15531
+ year: time.getLocalizedDateString(currentMonth.value).split("/").pop()
15532
+ // Get just the year part
15533
+ }
15534
+ }));
15535
+ const months = computed(() => Array.from({ length: 12 }, (_2, i2) => {
15536
+ const date2 = new Date(currentMonthValue.value.year, i2, 1);
15537
+ return {
15538
+ name: time.getLocalizedNameOfMonth(date2, "short"),
15539
+ value: i2,
15540
+ disabled: isDateDisabled(date2)
15541
+ };
15542
+ }));
15543
+ const years = computed(() => {
15544
+ const startYear = currentMonthValue.value.year - 10;
15545
+ return Array.from({ length: 21 }, (_2, i2) => ({
15546
+ value: startYear + i2,
15547
+ disabled: isYearDisabled(startYear + i2)
15548
+ }));
15549
+ });
15550
+ const weekDays = computed(() => {
15551
+ const weekStart = /* @__PURE__ */ new Date();
15552
+ weekStart.setDate(weekStart.getDate() - weekStart.getDay() + (props2.firstDayOfWeek === WEEK_START_DAY.MONDAY ? 1 : 0));
15553
+ return Array.from({ length: 7 }, (_2, i2) => {
15554
+ const day = new Date(weekStart);
15555
+ day.setDate(weekStart.getDate() + i2);
15556
+ return time.getLocalizedNameOfWeekday(day, "short");
15557
+ });
15558
+ });
15559
+ function isDateDisabled(date2) {
15560
+ if (!date2) return true;
15561
+ const minDate = props2.min ? new Date(props2.min) : null;
15562
+ const maxDate = props2.max ? new Date(props2.max) : null;
15563
+ if (minDate && date2 < minDate) return true;
15564
+ if (maxDate && date2 > maxDate) return true;
15565
+ return false;
15566
+ }
15567
+ function isYearDisabled(year) {
15568
+ const minDate = props2.min ? new Date(props2.min) : null;
15569
+ const maxDate = props2.max ? new Date(props2.max) : null;
15570
+ if (minDate && year < minDate.getFullYear()) return true;
15571
+ if (maxDate && year > maxDate.getFullYear()) return true;
15572
+ return false;
15573
+ }
15574
+ function selectMonth(monthIndex) {
15575
+ currentMonth.value = new Date(currentMonth.value.getFullYear(), monthIndex, 1);
15576
+ currentView.value = "days";
15577
+ }
15578
+ function selectYear(year) {
15579
+ currentMonth.value = new Date(year, currentMonth.value.getMonth(), 1);
15580
+ currentView.value = "months";
15581
+ }
15582
+ function previousMonth() {
15583
+ currentMonth.value = new Date(currentMonth.value.getFullYear(), currentMonth.value.getMonth() - 1, 1);
15584
+ }
15585
+ function nextMonth() {
15586
+ currentMonth.value = new Date(currentMonth.value.getFullYear(), currentMonth.value.getMonth() + 1, 1);
15587
+ }
15588
+ function previousYear() {
15589
+ const offset2 = currentView.value === "months" ? 1 : 21;
15590
+ currentMonth.value = new Date(currentMonth.value.getFullYear() - offset2, currentMonth.value.getMonth(), 1);
15591
+ }
15592
+ function nextYear() {
15593
+ const offset2 = currentView.value === "months" ? 1 : 21;
15594
+ currentMonth.value = new Date(currentMonth.value.getFullYear() + offset2, currentMonth.value.getMonth(), 1);
15595
+ }
15596
+ function selectDate(date2) {
15597
+ var _a2, _b;
15598
+ if (!date2 || !props2.editMode) return;
15599
+ const newDate = new Date(date2.getFullYear(), date2.getMonth(), date2.getDate());
15600
+ if (props2.enableTime) {
15601
+ const currentHours = ((_a2 = selectedDate.value) == null ? void 0 : _a2.getHours()) ?? (/* @__PURE__ */ new Date()).getHours();
15602
+ const currentMinutes = ((_b = selectedDate.value) == null ? void 0 : _b.getMinutes()) ?? (/* @__PURE__ */ new Date()).getMinutes();
15603
+ newDate.setHours(currentHours);
15604
+ newDate.setMinutes(currentMinutes);
15605
+ emit2("update:modelValue", newDate.toISOString());
15606
+ } else {
15607
+ newDate.setUTCHours(0, 0, 0, 0);
15608
+ emit2("update:modelValue", newDate.toISOString().split("T")[0]);
15609
+ isOpen.value = false;
15610
+ }
15611
+ }
15612
+ const hours = computed(() => {
15613
+ var _a2;
15614
+ return ((_a2 = selectedDate.value) == null ? void 0 : _a2.getHours()) ?? 0;
15615
+ });
15616
+ const minutes = computed(() => {
15617
+ var _a2;
15618
+ return ((_a2 = selectedDate.value) == null ? void 0 : _a2.getMinutes()) ?? 0;
15619
+ });
15620
+ function handleHourInput(value) {
15621
+ if (!selectedDate.value) return;
15622
+ const newDate = new Date(selectedDate.value);
15623
+ newDate.setHours(value);
15624
+ emit2("update:modelValue", newDate.toISOString());
15625
+ }
15626
+ function handleMinuteInput(value) {
15627
+ if (!selectedDate.value) return;
15628
+ const newDate = new Date(selectedDate.value);
15629
+ newDate.setMinutes(value);
15630
+ emit2("update:modelValue", newDate.toISOString());
15631
+ }
15632
+ function isSelected(date2) {
15633
+ if (!date2 || !selectedDate.value) return false;
15634
+ return date2.toISOString().split("T")[0] === selectedDate.value.toISOString().split("T")[0];
15635
+ }
15636
+ function isToday(date2) {
15637
+ if (!date2) return false;
15638
+ return time.dateIsToday(date2);
15639
+ }
15640
+ const timezoneDisplay = computed(() => {
15641
+ if (!props2.enableTime) return "";
15642
+ try {
15643
+ return (/* @__PURE__ */ new Date()).toLocaleString("en-US", {
15644
+ timeZoneName: "short",
15645
+ timeZone: props2.timezone
15646
+ }).split(" ").pop();
15647
+ } catch {
15648
+ return "UTC";
15649
+ }
15650
+ });
15651
+ function isNotInMonth(date2) {
15652
+ return time.isTrailingOrLeadingDate(date2, currentMonth.value.getMonth());
15653
+ }
15654
+ return (_ctx, _cache) => {
15655
+ return openBlock(), createElementBlock("div", {
15656
+ class: normalizeClass(["bagel-input", { small: _ctx.small }]),
15657
+ title: _ctx.label
15658
+ }, [
15659
+ _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$t, [
15660
+ createTextVNode(toDisplayString(_ctx.label) + " ", 1),
15661
+ _ctx.required ? (openBlock(), createElementBlock("span", _hoisted_3$o, "*")) : createCommentVNode("", true)
15662
+ ])) : createCommentVNode("", true),
15663
+ createVNode(unref(_sfc_main$V), {
15664
+ shown: unref(isOpen),
15665
+ placement: "bottom-start",
15666
+ onApplyShow: _cache[4] || (_cache[4] = ($event) => isRef(isOpen) ? isOpen.value = true : isOpen = true),
15667
+ onApplyHide: _cache[5] || (_cache[5] = ($event) => isRef(isOpen) ? isOpen.value = false : isOpen = false)
15668
+ }, {
15669
+ trigger: withCtx(() => [
15670
+ createElementVNode("div", _hoisted_4$g, [
15671
+ createVNode(unref(TextInput), {
15672
+ modelValue: formattedDisplayValue.value,
15673
+ icon: "calendar",
15674
+ min: formattedMin.value,
15675
+ max: formattedMax.value,
15676
+ required: _ctx.required,
15677
+ disabled: !_ctx.editMode,
15678
+ class: normalizeClass(["date-input", {
15679
+ "txt-center": _ctx.center
15680
+ }]),
15681
+ readonly: "",
15682
+ onClick: _cache[0] || (_cache[0] = ($event) => isRef(isOpen) ? isOpen.value = true : isOpen = true)
15683
+ }, null, 8, ["modelValue", "min", "max", "required", "disabled", "class"])
15684
+ ])
15685
+ ]),
15686
+ default: withCtx(() => [
15687
+ createElementVNode("div", _hoisted_5$f, [
15688
+ createElementVNode("div", _hoisted_6$c, [
15689
+ createElementVNode("div", _hoisted_7$9, [
15690
+ unref(currentView) === "days" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
15691
+ createVNode(unref(Btn), {
15692
+ flat: "",
15693
+ icon: "chevron_left",
15694
+ onClick: previousMonth
15695
+ }),
15696
+ createElementVNode("div", _hoisted_8$6, [
15697
+ createVNode(unref(Btn), {
15698
+ flat: "",
15699
+ class: "month-btn",
15700
+ onClick: _cache[1] || (_cache[1] = ($event) => isRef(currentView) ? currentView.value = "months" : currentView = "months")
15701
+ }, {
15702
+ default: withCtx(() => [
15703
+ createTextVNode(toDisplayString(currentMonthValue.value.formatted.month), 1)
15704
+ ]),
15705
+ _: 1
15706
+ }),
15707
+ createVNode(unref(Btn), {
15708
+ flat: "",
15709
+ class: "year-btn",
15710
+ onClick: _cache[2] || (_cache[2] = ($event) => isRef(currentView) ? currentView.value = "years" : currentView = "years")
15711
+ }, {
15712
+ default: withCtx(() => [
15713
+ createTextVNode(toDisplayString(currentMonthValue.value.formatted.year), 1)
15714
+ ]),
15715
+ _: 1
15716
+ })
15717
+ ]),
15718
+ createVNode(unref(Btn), {
15719
+ flat: "",
15720
+ icon: "chevron_right",
15721
+ onClick: nextMonth
15722
+ })
15723
+ ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
15724
+ createVNode(unref(Btn), {
15725
+ flat: "",
15726
+ icon: "chevron_left",
15727
+ onClick: previousYear
15728
+ }),
15729
+ createElementVNode("span", _hoisted_9$5, toDisplayString(currentMonthValue.value.formatted.year), 1),
15730
+ createVNode(unref(Btn), {
15731
+ flat: "",
15732
+ icon: "chevron_right",
15733
+ onClick: nextYear
15734
+ })
15735
+ ], 64))
15736
+ ]),
15737
+ unref(currentView) === "days" ? (openBlock(), createElementBlock("div", _hoisted_10$5, [
15738
+ (openBlock(true), createElementBlock(Fragment, null, renderList(weekDays.value, (day) => {
15739
+ return openBlock(), createElementBlock("div", {
15740
+ key: day,
15741
+ class: "txt-center txt-12 opacity-6"
15742
+ }, toDisplayString(day), 1);
15743
+ }), 128)),
15744
+ (openBlock(true), createElementBlock(Fragment, null, renderList(currentMonthDays.value, (date2) => {
15745
+ return openBlock(), createElementBlock("button", {
15746
+ key: date2 == null ? void 0 : date2.toISOString(),
15747
+ type: "button",
15748
+ class: normalizeClass(["day aspect-ratio-1 flex align-items-center justify-content-center pointer round txt14 p-0", {
15749
+ "selected": isSelected(date2),
15750
+ "today": isToday(date2),
15751
+ "disabled": isDateDisabled(date2),
15752
+ "not-in-month": isNotInMonth(date2)
15753
+ }]),
15754
+ disabled: isDateDisabled(date2),
15755
+ onClick: ($event) => selectDate(date2)
15756
+ }, toDisplayString(date2 == null ? void 0 : date2.getDate()), 11, _hoisted_11$5);
15757
+ }), 128))
15758
+ ])) : unref(currentView) === "months" ? (openBlock(), createElementBlock("div", _hoisted_12$5, [
15759
+ (openBlock(true), createElementBlock(Fragment, null, renderList(months.value, (month) => {
15760
+ return openBlock(), createElementBlock("button", {
15761
+ key: month.value,
15762
+ class: normalizeClass(["month-item flex align-items-center justify-content-center pointer rounded p-05 txt14 border-none", {
15763
+ selected: month.value === currentMonthValue.value.month,
15764
+ disabled: month.disabled
15765
+ }]),
15766
+ disabled: month.disabled,
15767
+ onClick: ($event) => selectMonth(month.value)
15768
+ }, toDisplayString(month.name), 11, _hoisted_13$4);
15769
+ }), 128))
15770
+ ])) : (openBlock(), createElementBlock("div", _hoisted_14$4, [
15771
+ (openBlock(true), createElementBlock(Fragment, null, renderList(years.value, (year) => {
15772
+ return openBlock(), createElementBlock("button", {
15773
+ key: year.value,
15774
+ class: normalizeClass(["year-item flex align-items-center justify-content-center pointer rounded p-05 txt14 border-none", {
15775
+ selected: year.value === currentMonthValue.value.year,
15776
+ disabled: year.disabled
15777
+ }]),
15778
+ disabled: year.disabled,
15779
+ onClick: ($event) => selectYear(year.value)
15780
+ }, toDisplayString(year.value), 11, _hoisted_15$4);
15781
+ }), 128))
15782
+ ]))
15783
+ ]),
15784
+ _ctx.enableTime && unref(currentView) === "days" ? (openBlock(), createElementBlock("div", _hoisted_16$4, [
15785
+ createElementVNode("div", _hoisted_17$4, [
15786
+ createVNode(unref(NumberInput), {
15787
+ center: "",
15788
+ "model-value": hours.value,
15789
+ disabled: !selectedDate.value,
15790
+ min: 0,
15791
+ max: 23,
15792
+ layout: "vertical",
15793
+ padZero: 2,
15794
+ "onUpdate:modelValue": handleHourInput
15795
+ }, null, 8, ["model-value", "disabled"]),
15796
+ _cache[6] || (_cache[6] = createElementVNode("p", { class: "pb-075" }, " : ", -1)),
15797
+ createVNode(unref(NumberInput), {
15798
+ center: "",
15799
+ "model-value": minutes.value,
15800
+ disabled: !selectedDate.value,
15801
+ min: 0,
15802
+ max: 59,
15803
+ padZero: 2,
15804
+ layout: "vertical",
15805
+ "onUpdate:modelValue": handleMinuteInput
15806
+ }, null, 8, ["model-value", "disabled"])
15807
+ ]),
15808
+ createElementVNode("span", _hoisted_18$2, toDisplayString(timezoneDisplay.value), 1),
15809
+ selectedDate.value ? (openBlock(), createBlock(unref(Btn), {
15810
+ key: 0,
15811
+ flat: "",
15812
+ onClick: _cache[3] || (_cache[3] = ($event) => isRef(isOpen) ? isOpen.value = false : isOpen = false)
15813
+ }, {
15814
+ default: withCtx(() => _cache[7] || (_cache[7] = [
15815
+ createTextVNode(" Done ")
15816
+ ])),
15817
+ _: 1
15818
+ })) : createCommentVNode("", true)
15819
+ ])) : createCommentVNode("", true)
15820
+ ])
15821
+ ]),
15822
+ _: 1
15823
+ }, 8, ["shown"])
15824
+ ], 10, _hoisted_1$F);
15825
+ };
15826
+ }
15827
+ });
15828
+ const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-a2f98d6e"]]);
15829
+ const _hoisted_1$E = ["title"];
15830
+ const _hoisted_2$s = { key: 0 };
15831
+ const _hoisted_3$n = {
15832
+ key: 0,
15833
+ class: "required"
15834
+ };
15835
+ const _hoisted_4$f = { class: "date-picker-container" };
15836
+ const _hoisted_5$e = ["value", "min", "max", "required", "disabled"];
15837
+ const _hoisted_6$b = { class: "flex gap-075 p-05 m_flex-wrap calendar-container justify-content-center h-100p" };
15838
+ const _hoisted_7$8 = { class: "calendar-section m_border-none pe-05 m_p-0" };
15839
+ const _hoisted_8$5 = { class: "flex space-between pb-1" };
15840
+ const _hoisted_9$4 = { class: "flex gap-05" };
15841
+ const _hoisted_10$4 = { class: "month-year" };
15842
+ const _hoisted_11$4 = {
15843
+ key: 0,
15844
+ class: "calendar-grid grid gap-025"
15845
+ };
15846
+ const _hoisted_12$4 = ["disabled", "onClick"];
15847
+ const _hoisted_13$3 = {
15848
+ key: 1,
15849
+ class: "month-grid grid gap-05 p-05"
15850
+ };
15851
+ const _hoisted_14$3 = ["disabled", "onClick"];
15852
+ const _hoisted_15$3 = {
15853
+ key: 2,
15854
+ class: "year-grid grid gap-05 p-0"
15855
+ };
15856
+ const _hoisted_16$3 = ["disabled", "onClick"];
15857
+ const _hoisted_17$3 = {
15858
+ key: 0,
15859
+ class: "time-picker border-start flex column gap-1 w-120px"
15860
+ };
15861
+ const _hoisted_18$1 = { class: "flex gap-025" };
15862
+ const _hoisted_19$1 = { class: "txt-center opacity-6 txt14" };
15863
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
15864
+ __name: "DatePick",
15865
+ props: {
15866
+ required: { type: Boolean },
15867
+ label: {},
15868
+ editMode: { type: Boolean, default: true },
15869
+ small: { type: Boolean, default: false },
15870
+ enableTime: { type: Boolean, default: false },
15871
+ modelValue: {},
15872
+ min: {},
15873
+ max: {},
15874
+ timezone: { default: "UTC" },
15875
+ mode: { default: "day" },
15876
+ firstDayOfWeek: { default: WEEK_START_DAY.MONDAY },
15877
+ locale: { default: "" },
15878
+ center: { type: Boolean }
15879
+ },
15880
+ emits: ["update:modelValue"],
15881
+ setup(__props, { emit: __emit }) {
15882
+ const props2 = __props;
15883
+ const emit2 = __emit;
15884
+ let isOpen = ref(false);
15885
+ let currentMonth = ref(/* @__PURE__ */ new Date());
15886
+ let currentView = ref("days");
15887
+ const time = new Time(props2.firstDayOfWeek, props2.locale);
15888
+ function formatDisplayDate(date2) {
15889
+ if (!date2) return "";
15890
+ const dateObj = typeof date2 === "string" ? new Date(date2) : date2;
15891
+ if (props2.enableTime) {
15892
+ return dateObj.toLocaleString(props2.locale || void 0, {
15893
+ year: "numeric",
15894
+ month: "short",
15895
+ day: "numeric",
15896
+ hour: "2-digit",
15897
+ minute: "2-digit",
15898
+ timeZone: props2.timezone
15899
+ });
15900
+ }
15901
+ return dateObj.toLocaleString(props2.locale || void 0, {
15902
+ year: "numeric",
15903
+ month: "short",
15904
+ day: "numeric",
15905
+ timeZone: props2.timezone
15906
+ });
15907
+ }
15908
+ function formatDate(date2) {
15909
+ if (!date2) return "";
15910
+ const dateObj = typeof date2 === "string" ? new Date(date2) : date2;
15911
+ return props2.enableTime ? dateObj.toISOString().slice(0, 16) : dateObj.toISOString().split("T")[0];
15912
+ }
15913
+ const formattedDisplayValue = computed(() => formatDisplayDate(props2.modelValue));
15914
+ const formattedMin = computed(() => formatDate(props2.min));
15915
+ const formattedMax = computed(() => formatDate(props2.max));
15916
+ const selectedDate = computed(() => {
15917
+ if (!props2.modelValue) return null;
15918
+ return typeof props2.modelValue === "string" ? new Date(props2.modelValue) : props2.modelValue;
15919
+ });
15920
+ const currentMonthDays = computed(() => {
15921
+ const year = currentMonth.value.getFullYear();
15922
+ const month = currentMonth.value.getMonth();
15923
+ return time.getCalendarMonthSplitInWeeks(year, month).flat();
15924
+ });
15925
+ const currentMonthValue = computed(() => ({
15926
+ month: currentMonth.value.getMonth(),
15927
+ year: currentMonth.value.getFullYear(),
15928
+ formatted: {
15929
+ month: time.getLocalizedNameOfMonth(currentMonth.value, "long"),
15930
+ year: time.getLocalizedDateString(currentMonth.value).split("/").pop()
15931
+ // Get just the year part
15932
+ }
15933
+ }));
15934
+ const months = computed(() => Array.from({ length: 12 }, (_2, i2) => {
15935
+ const date2 = new Date(currentMonthValue.value.year, i2, 1);
15936
+ return {
15937
+ name: time.getLocalizedNameOfMonth(date2, "short"),
15938
+ value: i2,
15939
+ disabled: isDateDisabled(date2)
15940
+ };
15941
+ }));
15942
+ const years = computed(() => {
15943
+ const startYear = currentMonthValue.value.year - 10;
15944
+ return Array.from({ length: 21 }, (_2, i2) => ({
15945
+ value: startYear + i2,
15946
+ disabled: isYearDisabled(startYear + i2)
15947
+ }));
15948
+ });
15949
+ const weekDays = computed(() => {
15950
+ const weekStart = /* @__PURE__ */ new Date();
15951
+ weekStart.setDate(weekStart.getDate() - weekStart.getDay() + (props2.firstDayOfWeek === WEEK_START_DAY.MONDAY ? 1 : 0));
15952
+ return Array.from({ length: 7 }, (_2, i2) => {
15953
+ const day = new Date(weekStart);
15954
+ day.setDate(weekStart.getDate() + i2);
15955
+ return time.getLocalizedNameOfWeekday(day, "short");
15956
+ });
15957
+ });
15958
+ function isDateDisabled(date2) {
15959
+ if (!date2) return true;
15960
+ const minDate = props2.min ? new Date(props2.min) : null;
15961
+ const maxDate = props2.max ? new Date(props2.max) : null;
15962
+ if (minDate && date2 < minDate) return true;
15963
+ if (maxDate && date2 > maxDate) return true;
15964
+ return false;
15965
+ }
15966
+ function isYearDisabled(year) {
15967
+ const minDate = props2.min ? new Date(props2.min) : null;
15968
+ const maxDate = props2.max ? new Date(props2.max) : null;
15969
+ if (minDate && year < minDate.getFullYear()) return true;
15970
+ if (maxDate && year > maxDate.getFullYear()) return true;
15971
+ return false;
15972
+ }
15973
+ function selectMonth(monthIndex) {
15974
+ currentMonth.value = new Date(currentMonth.value.getFullYear(), monthIndex, 1);
15975
+ currentView.value = "days";
15976
+ }
15977
+ function selectYear(year) {
15978
+ currentMonth.value = new Date(year, currentMonth.value.getMonth(), 1);
15979
+ currentView.value = "months";
15980
+ }
15981
+ function previousMonth() {
15982
+ currentMonth.value = new Date(currentMonth.value.getFullYear(), currentMonth.value.getMonth() - 1, 1);
15983
+ }
15984
+ function nextMonth() {
15985
+ currentMonth.value = new Date(currentMonth.value.getFullYear(), currentMonth.value.getMonth() + 1, 1);
15986
+ }
15987
+ function previousYear() {
15988
+ const offset2 = currentView.value === "months" ? 1 : 21;
15989
+ currentMonth.value = new Date(currentMonth.value.getFullYear() - offset2, currentMonth.value.getMonth(), 1);
15990
+ }
15991
+ function nextYear() {
15992
+ const offset2 = currentView.value === "months" ? 1 : 21;
15993
+ currentMonth.value = new Date(currentMonth.value.getFullYear() + offset2, currentMonth.value.getMonth(), 1);
15994
+ }
15995
+ function selectDate(date2) {
15996
+ var _a2, _b;
15997
+ if (!date2 || !props2.editMode) return;
15998
+ const newDate = new Date(date2.getFullYear(), date2.getMonth(), date2.getDate(), 0, 0, 0);
15999
+ if (props2.enableTime) {
16000
+ const currentHours = ((_a2 = selectedDate.value) == null ? void 0 : _a2.getHours()) ?? (/* @__PURE__ */ new Date()).getHours();
16001
+ const currentMinutes = ((_b = selectedDate.value) == null ? void 0 : _b.getMinutes()) ?? (/* @__PURE__ */ new Date()).getMinutes();
16002
+ newDate.setHours(currentHours);
16003
+ newDate.setMinutes(currentMinutes);
16004
+ } else {
16005
+ isOpen.value = false;
16006
+ }
16007
+ emit2("update:modelValue", newDate);
16008
+ }
16009
+ const hours = computed(() => {
16010
+ var _a2;
16011
+ return ((_a2 = selectedDate.value) == null ? void 0 : _a2.getHours()) ?? 0;
16012
+ });
16013
+ const minutes = computed(() => {
16014
+ var _a2;
16015
+ return ((_a2 = selectedDate.value) == null ? void 0 : _a2.getMinutes()) ?? 0;
16016
+ });
16017
+ function handleHourInput(value) {
16018
+ if (!selectedDate.value) return;
16019
+ const newDate = new Date(selectedDate.value);
16020
+ newDate.setHours(value);
16021
+ emit2("update:modelValue", newDate.toISOString());
16022
+ }
16023
+ function handleMinuteInput(value) {
16024
+ if (!selectedDate.value) return;
16025
+ const newDate = new Date(selectedDate.value);
16026
+ newDate.setMinutes(value);
16027
+ emit2("update:modelValue", newDate.toISOString());
16028
+ }
16029
+ function isSelected(date2) {
16030
+ if (!date2 || !selectedDate.value) return false;
16031
+ return date2.toISOString().split("T")[0] === selectedDate.value.toISOString().split("T")[0];
16032
+ }
16033
+ function isToday(date2) {
16034
+ if (!date2) return false;
16035
+ return time.dateIsToday(date2);
16036
+ }
16037
+ const timezoneDisplay = computed(() => {
16038
+ if (!props2.enableTime) return "";
16039
+ try {
16040
+ return (/* @__PURE__ */ new Date()).toLocaleString("en-US", {
16041
+ timeZoneName: "short",
16042
+ timeZone: props2.timezone
16043
+ }).split(" ").pop();
16044
+ } catch {
16045
+ return "UTC";
16046
+ }
16047
+ });
16048
+ function isNotInMonth(date2) {
16049
+ return time.isTrailingOrLeadingDate(date2, currentMonth.value.getMonth());
16050
+ }
16051
+ return (_ctx, _cache) => {
16052
+ return openBlock(), createElementBlock("div", {
16053
+ class: normalizeClass(["bagel-input", { small: _ctx.small }]),
16054
+ title: _ctx.label
16055
+ }, [
16056
+ _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$s, [
16057
+ createTextVNode(toDisplayString(_ctx.label) + " ", 1),
16058
+ _ctx.required ? (openBlock(), createElementBlock("span", _hoisted_3$n, "*")) : createCommentVNode("", true)
16059
+ ])) : createCommentVNode("", true),
16060
+ createVNode(unref(_sfc_main$V), {
16061
+ shown: unref(isOpen),
16062
+ placement: "bottom-start",
16063
+ onApplyShow: _cache[4] || (_cache[4] = ($event) => isRef(isOpen) ? isOpen.value = true : isOpen = true),
16064
+ onApplyHide: _cache[5] || (_cache[5] = ($event) => isRef(isOpen) ? isOpen.value = false : isOpen = false)
16065
+ }, {
16066
+ trigger: withCtx(() => [
16067
+ createElementVNode("div", _hoisted_4$f, [
16068
+ createElementVNode("input", {
16069
+ type: "text",
16070
+ value: formattedDisplayValue.value,
16071
+ min: formattedMin.value,
16072
+ max: formattedMax.value,
16073
+ required: _ctx.required,
16074
+ disabled: !_ctx.editMode,
16075
+ class: normalizeClass(["date-input", {
16076
+ "txt-center": _ctx.center
16077
+ }]),
16078
+ readonly: "",
16079
+ onClick: _cache[0] || (_cache[0] = ($event) => isRef(isOpen) ? isOpen.value = true : isOpen = true)
16080
+ }, null, 10, _hoisted_5$e)
16081
+ ])
16082
+ ]),
16083
+ default: withCtx(() => [
16084
+ createElementVNode("div", _hoisted_6$b, [
16085
+ createElementVNode("div", _hoisted_7$8, [
16086
+ createElementVNode("div", _hoisted_8$5, [
16087
+ unref(currentView) === "days" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
16088
+ createVNode(unref(Btn), {
16089
+ flat: "",
16090
+ icon: "chevron_left",
16091
+ onClick: previousMonth
16092
+ }),
16093
+ createElementVNode("div", _hoisted_9$4, [
16094
+ createVNode(unref(Btn), {
16095
+ flat: "",
16096
+ class: "month-btn",
16097
+ onClick: _cache[1] || (_cache[1] = ($event) => isRef(currentView) ? currentView.value = "months" : currentView = "months")
16098
+ }, {
16099
+ default: withCtx(() => [
16100
+ createTextVNode(toDisplayString(currentMonthValue.value.formatted.month), 1)
16101
+ ]),
16102
+ _: 1
16103
+ }),
16104
+ createVNode(unref(Btn), {
16105
+ flat: "",
16106
+ class: "year-btn",
16107
+ onClick: _cache[2] || (_cache[2] = ($event) => isRef(currentView) ? currentView.value = "years" : currentView = "years")
16108
+ }, {
16109
+ default: withCtx(() => [
16110
+ createTextVNode(toDisplayString(currentMonthValue.value.formatted.year), 1)
16111
+ ]),
16112
+ _: 1
16113
+ })
16114
+ ]),
16115
+ createVNode(unref(Btn), {
16116
+ flat: "",
16117
+ icon: "chevron_right",
16118
+ onClick: nextMonth
16119
+ })
16120
+ ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
16121
+ createVNode(unref(Btn), {
16122
+ flat: "",
16123
+ icon: "chevron_left",
16124
+ onClick: previousYear
16125
+ }),
16126
+ createElementVNode("span", _hoisted_10$4, toDisplayString(currentMonthValue.value.formatted.year), 1),
16127
+ createVNode(unref(Btn), {
16128
+ flat: "",
16129
+ icon: "chevron_right",
16130
+ onClick: nextYear
16131
+ })
16132
+ ], 64))
16133
+ ]),
16134
+ unref(currentView) === "days" ? (openBlock(), createElementBlock("div", _hoisted_11$4, [
16135
+ (openBlock(true), createElementBlock(Fragment, null, renderList(weekDays.value, (day) => {
16136
+ return openBlock(), createElementBlock("div", {
16137
+ key: day,
16138
+ class: "txt-center txt-12 opacity-6"
16139
+ }, toDisplayString(day), 1);
16140
+ }), 128)),
16141
+ (openBlock(true), createElementBlock(Fragment, null, renderList(currentMonthDays.value, (date2) => {
16142
+ return openBlock(), createElementBlock("button", {
16143
+ key: date2 == null ? void 0 : date2.toISOString(),
16144
+ type: "button",
16145
+ class: normalizeClass(["day aspect-ratio-1 flex align-items-center justify-content-center pointer round txt14 p-0", {
16146
+ "selected": isSelected(date2),
16147
+ "today": isToday(date2),
16148
+ "disabled": isDateDisabled(date2),
16149
+ "not-in-month": isNotInMonth(date2)
16150
+ }]),
16151
+ disabled: isDateDisabled(date2),
16152
+ onClick: ($event) => selectDate(date2)
16153
+ }, toDisplayString(date2 == null ? void 0 : date2.getDate()), 11, _hoisted_12$4);
16154
+ }), 128))
16155
+ ])) : unref(currentView) === "months" ? (openBlock(), createElementBlock("div", _hoisted_13$3, [
16156
+ (openBlock(true), createElementBlock(Fragment, null, renderList(months.value, (month) => {
16157
+ return openBlock(), createElementBlock("button", {
16158
+ key: month.value,
16159
+ class: normalizeClass(["month-item flex align-items-center justify-content-center pointer rounded p-05 txt14 border-none", {
16160
+ selected: month.value === currentMonthValue.value.month,
16161
+ disabled: month.disabled
16162
+ }]),
16163
+ disabled: month.disabled,
16164
+ onClick: ($event) => selectMonth(month.value)
16165
+ }, toDisplayString(month.name), 11, _hoisted_14$3);
16166
+ }), 128))
16167
+ ])) : (openBlock(), createElementBlock("div", _hoisted_15$3, [
16168
+ (openBlock(true), createElementBlock(Fragment, null, renderList(years.value, (year) => {
16169
+ return openBlock(), createElementBlock("button", {
16170
+ key: year.value,
16171
+ class: normalizeClass(["year-item flex align-items-center justify-content-center pointer rounded p-05 txt14 border-none", {
16172
+ selected: year.value === currentMonthValue.value.year,
16173
+ disabled: year.disabled
16174
+ }]),
16175
+ disabled: year.disabled,
16176
+ onClick: ($event) => selectYear(year.value)
16177
+ }, toDisplayString(year.value), 11, _hoisted_16$3);
16178
+ }), 128))
16179
+ ]))
16180
+ ]),
16181
+ _ctx.enableTime && unref(currentView) === "days" ? (openBlock(), createElementBlock("div", _hoisted_17$3, [
16182
+ createElementVNode("div", _hoisted_18$1, [
16183
+ createVNode(unref(NumberInput), {
16184
+ center: "",
16185
+ "model-value": hours.value,
16186
+ disabled: !selectedDate.value,
16187
+ min: 0,
16188
+ max: 23,
16189
+ layout: "vertical",
16190
+ padZero: 2,
16191
+ "onUpdate:modelValue": handleHourInput
16192
+ }, null, 8, ["model-value", "disabled"]),
16193
+ _cache[6] || (_cache[6] = createElementVNode("p", { class: "pb-075" }, " : ", -1)),
16194
+ createVNode(unref(NumberInput), {
16195
+ center: "",
16196
+ "model-value": minutes.value,
16197
+ disabled: !selectedDate.value,
16198
+ min: 0,
16199
+ max: 59,
16200
+ padZero: 2,
16201
+ layout: "vertical",
16202
+ "onUpdate:modelValue": handleMinuteInput
16203
+ }, null, 8, ["model-value", "disabled"])
16204
+ ]),
16205
+ createElementVNode("span", _hoisted_19$1, toDisplayString(timezoneDisplay.value), 1),
16206
+ selectedDate.value ? (openBlock(), createBlock(unref(Btn), {
16207
+ key: 0,
16208
+ flat: "",
16209
+ onClick: _cache[3] || (_cache[3] = ($event) => isRef(isOpen) ? isOpen.value = false : isOpen = false)
16210
+ }, {
16211
+ default: withCtx(() => _cache[7] || (_cache[7] = [
16212
+ createTextVNode(" Done ")
16213
+ ])),
16214
+ _: 1
16215
+ })) : createCommentVNode("", true)
16216
+ ])) : createCommentVNode("", true)
16217
+ ])
16218
+ ]),
16219
+ _: 1
16220
+ }, 8, ["shown"])
16221
+ ], 10, _hoisted_1$E);
16222
+ };
16223
+ }
16224
+ });
16225
+ const DatePick = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-c6c8cc7b"]]);
15432
16226
  function toDate(argument) {
15433
16227
  const argStr = Object.prototype.toString.call(argument);
15434
16228
  if (argument instanceof Date || typeof argument === "object" && argStr === "[object Date]") {
@@ -23983,467 +24777,6 @@ const eo = ({
23983
24777
  Object.entries(go).forEach(([e, t]) => {
23984
24778
  e !== "default" && (Hn[e] = t);
23985
24779
  });
23986
- const _hoisted_1$F = ["title"];
23987
- const _hoisted_2$t = { key: 0 };
23988
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
23989
- __name: "DateInput",
23990
- props: {
23991
- required: { type: Boolean },
23992
- label: {},
23993
- editMode: { type: Boolean, default: true },
23994
- small: { type: Boolean, default: false },
23995
- enableTime: { type: Boolean, default: false },
23996
- modelValue: {},
23997
- defaultValue: {},
23998
- extraProps: {},
23999
- allowedDates: {},
24000
- timePickerInline: { type: Boolean },
24001
- minutesIncrement: {},
24002
- minutesGridIncrement: {}
24003
- },
24004
- emits: ["update:modelValue"],
24005
- setup(__props, { emit: __emit }) {
24006
- const props2 = __props;
24007
- const emit2 = __emit;
24008
- const datePicker = ref();
24009
- const date2 = computed({
24010
- get: () => props2.modelValue || "",
24011
- set: (val) => {
24012
- const d2 = typeof val === "string" ? new Date(val) : val;
24013
- if (props2.enableTime) {
24014
- emit2("update:modelValue", d2.toISOString());
24015
- } else {
24016
- emit2("update:modelValue", d2.toISOString().split("T")[0]);
24017
- }
24018
- }
24019
- });
24020
- onMounted(() => {
24021
- if (props2.defaultValue && date2.value === "") {
24022
- Object.assign(date2.value, { date: props2.defaultValue });
24023
- }
24024
- });
24025
- return (_ctx, _cache) => {
24026
- return openBlock(), createElementBlock("div", {
24027
- class: normalizeClass(["bagel-input", { small: _ctx.small }]),
24028
- title: _ctx.label
24029
- }, [
24030
- _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$t, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
24031
- createVNode(unref(Hn), mergeProps({
24032
- ref_key: "datePicker",
24033
- ref: datePicker,
24034
- modelValue: date2.value,
24035
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => date2.value = $event),
24036
- required: _ctx.required,
24037
- "auto-apply": true,
24038
- "enable-time-picker": _ctx.enableTime,
24039
- "allowed-dates": _ctx.allowedDates
24040
- }, _ctx.extraProps, {
24041
- "time-picker-inline": _ctx.timePickerInline,
24042
- "minutes-increment": _ctx.minutesIncrement,
24043
- "minutes-grid-increment": _ctx.minutesGridIncrement,
24044
- "start-time": { hours: 8, minutes: 0 }
24045
- }), null, 16, ["modelValue", "required", "enable-time-picker", "allowed-dates", "time-picker-inline", "minutes-increment", "minutes-grid-increment"])
24046
- ], 10, _hoisted_1$F);
24047
- };
24048
- }
24049
- });
24050
- const _hoisted_1$E = ["title"];
24051
- const _hoisted_2$s = { key: 0 };
24052
- const _hoisted_3$n = {
24053
- key: 0,
24054
- class: "required"
24055
- };
24056
- const _hoisted_4$f = { class: "date-picker-container" };
24057
- const _hoisted_5$e = ["value", "min", "max", "required", "disabled"];
24058
- const _hoisted_6$b = { class: "flex gap-075 p-05 m_flex-wrap calendar-container justify-content-center h-100p" };
24059
- const _hoisted_7$8 = { class: "calendar-section m_border-none pe-05 m_p-0" };
24060
- const _hoisted_8$5 = { class: "flex space-between pb-1" };
24061
- const _hoisted_9$4 = { class: "flex gap-05" };
24062
- const _hoisted_10$4 = { class: "month-year" };
24063
- const _hoisted_11$4 = {
24064
- key: 0,
24065
- class: "calendar-grid grid gap-025"
24066
- };
24067
- const _hoisted_12$4 = ["disabled", "onClick"];
24068
- const _hoisted_13$3 = {
24069
- key: 1,
24070
- class: "month-grid grid gap-05 p-05"
24071
- };
24072
- const _hoisted_14$3 = ["disabled", "onClick"];
24073
- const _hoisted_15$3 = {
24074
- key: 2,
24075
- class: "year-grid grid gap-05 p-0"
24076
- };
24077
- const _hoisted_16$3 = ["disabled", "onClick"];
24078
- const _hoisted_17$3 = {
24079
- key: 0,
24080
- class: "time-picker border-start flex column gap-1 w-120px"
24081
- };
24082
- const _hoisted_18$1 = { class: "flex gap-025" };
24083
- const _hoisted_19$1 = { class: "txt-center opacity-6 txt14" };
24084
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
24085
- __name: "DatePick",
24086
- props: {
24087
- required: { type: Boolean },
24088
- label: {},
24089
- editMode: { type: Boolean, default: true },
24090
- small: { type: Boolean, default: false },
24091
- enableTime: { type: Boolean, default: false },
24092
- modelValue: {},
24093
- min: {},
24094
- max: {},
24095
- timezone: { default: "UTC" },
24096
- mode: { default: "day" },
24097
- firstDayOfWeek: { default: WEEK_START_DAY.MONDAY },
24098
- locale: { default: "" },
24099
- center: { type: Boolean }
24100
- },
24101
- emits: ["update:modelValue"],
24102
- setup(__props, { emit: __emit }) {
24103
- const props2 = __props;
24104
- const emit2 = __emit;
24105
- let isOpen = ref(false);
24106
- let currentMonth = ref(/* @__PURE__ */ new Date());
24107
- let currentView = ref("days");
24108
- const time = new Time(props2.firstDayOfWeek, props2.locale);
24109
- function formatDisplayDate(date2) {
24110
- if (!date2) return "";
24111
- const dateObj = typeof date2 === "string" ? new Date(date2) : date2;
24112
- if (props2.enableTime) {
24113
- return dateObj.toLocaleString(props2.locale || void 0, {
24114
- year: "numeric",
24115
- month: "short",
24116
- day: "numeric",
24117
- hour: "2-digit",
24118
- minute: "2-digit",
24119
- timeZone: props2.timezone
24120
- });
24121
- }
24122
- return dateObj.toLocaleString(props2.locale || void 0, {
24123
- year: "numeric",
24124
- month: "short",
24125
- day: "numeric",
24126
- timeZone: props2.timezone
24127
- });
24128
- }
24129
- function formatDate(date2) {
24130
- if (!date2) return "";
24131
- const dateObj = typeof date2 === "string" ? new Date(date2) : date2;
24132
- return props2.enableTime ? dateObj.toISOString().slice(0, 16) : dateObj.toISOString().split("T")[0];
24133
- }
24134
- const formattedDisplayValue = computed(() => formatDisplayDate(props2.modelValue));
24135
- const formattedMin = computed(() => formatDate(props2.min));
24136
- const formattedMax = computed(() => formatDate(props2.max));
24137
- const selectedDate = computed(() => {
24138
- if (!props2.modelValue) return null;
24139
- return typeof props2.modelValue === "string" ? new Date(props2.modelValue) : props2.modelValue;
24140
- });
24141
- const currentMonthDays = computed(() => {
24142
- const year = currentMonth.value.getFullYear();
24143
- const month = currentMonth.value.getMonth();
24144
- return time.getCalendarMonthSplitInWeeks(year, month).flat();
24145
- });
24146
- const currentMonthValue = computed(() => ({
24147
- month: currentMonth.value.getMonth(),
24148
- year: currentMonth.value.getFullYear(),
24149
- formatted: {
24150
- month: time.getLocalizedNameOfMonth(currentMonth.value, "long"),
24151
- year: time.getLocalizedDateString(currentMonth.value).split("/").pop()
24152
- // Get just the year part
24153
- }
24154
- }));
24155
- const months = computed(() => Array.from({ length: 12 }, (_2, i2) => {
24156
- const date2 = new Date(currentMonthValue.value.year, i2, 1);
24157
- return {
24158
- name: time.getLocalizedNameOfMonth(date2, "short"),
24159
- value: i2,
24160
- disabled: isDateDisabled(date2)
24161
- };
24162
- }));
24163
- const years = computed(() => {
24164
- const startYear = currentMonthValue.value.year - 10;
24165
- return Array.from({ length: 21 }, (_2, i2) => ({
24166
- value: startYear + i2,
24167
- disabled: isYearDisabled(startYear + i2)
24168
- }));
24169
- });
24170
- const weekDays = computed(() => {
24171
- const weekStart = /* @__PURE__ */ new Date();
24172
- weekStart.setDate(weekStart.getDate() - weekStart.getDay() + (props2.firstDayOfWeek === WEEK_START_DAY.MONDAY ? 1 : 0));
24173
- return Array.from({ length: 7 }, (_2, i2) => {
24174
- const day = new Date(weekStart);
24175
- day.setDate(weekStart.getDate() + i2);
24176
- return time.getLocalizedNameOfWeekday(day, "short");
24177
- });
24178
- });
24179
- function isDateDisabled(date2) {
24180
- if (!date2) return true;
24181
- const minDate = props2.min ? new Date(props2.min) : null;
24182
- const maxDate = props2.max ? new Date(props2.max) : null;
24183
- if (minDate && date2 < minDate) return true;
24184
- if (maxDate && date2 > maxDate) return true;
24185
- return false;
24186
- }
24187
- function isYearDisabled(year) {
24188
- const minDate = props2.min ? new Date(props2.min) : null;
24189
- const maxDate = props2.max ? new Date(props2.max) : null;
24190
- if (minDate && year < minDate.getFullYear()) return true;
24191
- if (maxDate && year > maxDate.getFullYear()) return true;
24192
- return false;
24193
- }
24194
- function selectMonth(monthIndex) {
24195
- currentMonth.value = new Date(currentMonth.value.getFullYear(), monthIndex, 1);
24196
- currentView.value = "days";
24197
- }
24198
- function selectYear(year) {
24199
- currentMonth.value = new Date(year, currentMonth.value.getMonth(), 1);
24200
- currentView.value = "months";
24201
- }
24202
- function previousMonth() {
24203
- currentMonth.value = new Date(currentMonth.value.getFullYear(), currentMonth.value.getMonth() - 1, 1);
24204
- }
24205
- function nextMonth() {
24206
- currentMonth.value = new Date(currentMonth.value.getFullYear(), currentMonth.value.getMonth() + 1, 1);
24207
- }
24208
- function previousYear() {
24209
- const offset2 = currentView.value === "months" ? 1 : 21;
24210
- currentMonth.value = new Date(currentMonth.value.getFullYear() - offset2, currentMonth.value.getMonth(), 1);
24211
- }
24212
- function nextYear() {
24213
- const offset2 = currentView.value === "months" ? 1 : 21;
24214
- currentMonth.value = new Date(currentMonth.value.getFullYear() + offset2, currentMonth.value.getMonth(), 1);
24215
- }
24216
- function selectDate(date2) {
24217
- var _a2, _b;
24218
- if (!date2 || !props2.editMode) return;
24219
- const newDate = new Date(date2.getFullYear(), date2.getMonth(), date2.getDate(), 0, 0, 0);
24220
- if (props2.enableTime) {
24221
- const currentHours = ((_a2 = selectedDate.value) == null ? void 0 : _a2.getHours()) ?? (/* @__PURE__ */ new Date()).getHours();
24222
- const currentMinutes = ((_b = selectedDate.value) == null ? void 0 : _b.getMinutes()) ?? (/* @__PURE__ */ new Date()).getMinutes();
24223
- newDate.setHours(currentHours);
24224
- newDate.setMinutes(currentMinutes);
24225
- } else {
24226
- isOpen.value = false;
24227
- }
24228
- emit2("update:modelValue", newDate);
24229
- }
24230
- const hours = computed(() => {
24231
- var _a2;
24232
- return ((_a2 = selectedDate.value) == null ? void 0 : _a2.getHours()) ?? 0;
24233
- });
24234
- const minutes = computed(() => {
24235
- var _a2;
24236
- return ((_a2 = selectedDate.value) == null ? void 0 : _a2.getMinutes()) ?? 0;
24237
- });
24238
- function handleHourInput(value) {
24239
- if (!selectedDate.value) return;
24240
- const newDate = new Date(selectedDate.value);
24241
- newDate.setHours(value);
24242
- emit2("update:modelValue", newDate.toISOString());
24243
- }
24244
- function handleMinuteInput(value) {
24245
- if (!selectedDate.value) return;
24246
- const newDate = new Date(selectedDate.value);
24247
- newDate.setMinutes(value);
24248
- emit2("update:modelValue", newDate.toISOString());
24249
- }
24250
- function isSelected(date2) {
24251
- if (!date2 || !selectedDate.value) return false;
24252
- return date2.toISOString().split("T")[0] === selectedDate.value.toISOString().split("T")[0];
24253
- }
24254
- function isToday(date2) {
24255
- if (!date2) return false;
24256
- return time.dateIsToday(date2);
24257
- }
24258
- const timezoneDisplay = computed(() => {
24259
- if (!props2.enableTime) return "";
24260
- try {
24261
- return (/* @__PURE__ */ new Date()).toLocaleString("en-US", {
24262
- timeZoneName: "short",
24263
- timeZone: props2.timezone
24264
- }).split(" ").pop();
24265
- } catch {
24266
- return "UTC";
24267
- }
24268
- });
24269
- function isNotInMonth(date2) {
24270
- return time.isTrailingOrLeadingDate(date2, currentMonth.value.getMonth());
24271
- }
24272
- return (_ctx, _cache) => {
24273
- return openBlock(), createElementBlock("div", {
24274
- class: normalizeClass(["bagel-input", { small: _ctx.small }]),
24275
- title: _ctx.label
24276
- }, [
24277
- _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$s, [
24278
- createTextVNode(toDisplayString(_ctx.label) + " ", 1),
24279
- _ctx.required ? (openBlock(), createElementBlock("span", _hoisted_3$n, "*")) : createCommentVNode("", true)
24280
- ])) : createCommentVNode("", true),
24281
- createVNode(unref(_sfc_main$V), {
24282
- shown: unref(isOpen),
24283
- placement: "bottom-start",
24284
- onApplyShow: _cache[4] || (_cache[4] = ($event) => isRef(isOpen) ? isOpen.value = true : isOpen = true),
24285
- onApplyHide: _cache[5] || (_cache[5] = ($event) => isRef(isOpen) ? isOpen.value = false : isOpen = false)
24286
- }, {
24287
- trigger: withCtx(() => [
24288
- createElementVNode("div", _hoisted_4$f, [
24289
- createElementVNode("input", {
24290
- type: "text",
24291
- value: formattedDisplayValue.value,
24292
- min: formattedMin.value,
24293
- max: formattedMax.value,
24294
- required: _ctx.required,
24295
- disabled: !_ctx.editMode,
24296
- class: normalizeClass(["date-input", {
24297
- "txt-center": _ctx.center
24298
- }]),
24299
- readonly: "",
24300
- onClick: _cache[0] || (_cache[0] = ($event) => isRef(isOpen) ? isOpen.value = true : isOpen = true)
24301
- }, null, 10, _hoisted_5$e)
24302
- ])
24303
- ]),
24304
- default: withCtx(() => [
24305
- createElementVNode("div", _hoisted_6$b, [
24306
- createElementVNode("div", _hoisted_7$8, [
24307
- createElementVNode("div", _hoisted_8$5, [
24308
- unref(currentView) === "days" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
24309
- createVNode(unref(Btn), {
24310
- flat: "",
24311
- icon: "chevron_left",
24312
- onClick: previousMonth
24313
- }),
24314
- createElementVNode("div", _hoisted_9$4, [
24315
- createVNode(unref(Btn), {
24316
- flat: "",
24317
- class: "month-btn",
24318
- onClick: _cache[1] || (_cache[1] = ($event) => isRef(currentView) ? currentView.value = "months" : currentView = "months")
24319
- }, {
24320
- default: withCtx(() => [
24321
- createTextVNode(toDisplayString(currentMonthValue.value.formatted.month), 1)
24322
- ]),
24323
- _: 1
24324
- }),
24325
- createVNode(unref(Btn), {
24326
- flat: "",
24327
- class: "year-btn",
24328
- onClick: _cache[2] || (_cache[2] = ($event) => isRef(currentView) ? currentView.value = "years" : currentView = "years")
24329
- }, {
24330
- default: withCtx(() => [
24331
- createTextVNode(toDisplayString(currentMonthValue.value.formatted.year), 1)
24332
- ]),
24333
- _: 1
24334
- })
24335
- ]),
24336
- createVNode(unref(Btn), {
24337
- flat: "",
24338
- icon: "chevron_right",
24339
- onClick: nextMonth
24340
- })
24341
- ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
24342
- createVNode(unref(Btn), {
24343
- flat: "",
24344
- icon: "chevron_left",
24345
- onClick: previousYear
24346
- }),
24347
- createElementVNode("span", _hoisted_10$4, toDisplayString(currentMonthValue.value.formatted.year), 1),
24348
- createVNode(unref(Btn), {
24349
- flat: "",
24350
- icon: "chevron_right",
24351
- onClick: nextYear
24352
- })
24353
- ], 64))
24354
- ]),
24355
- unref(currentView) === "days" ? (openBlock(), createElementBlock("div", _hoisted_11$4, [
24356
- (openBlock(true), createElementBlock(Fragment, null, renderList(weekDays.value, (day) => {
24357
- return openBlock(), createElementBlock("div", {
24358
- key: day,
24359
- class: "txt-center txt-12 opacity-6"
24360
- }, toDisplayString(day), 1);
24361
- }), 128)),
24362
- (openBlock(true), createElementBlock(Fragment, null, renderList(currentMonthDays.value, (date2) => {
24363
- return openBlock(), createElementBlock("button", {
24364
- key: date2 == null ? void 0 : date2.toISOString(),
24365
- type: "button",
24366
- class: normalizeClass(["day aspect-ratio-1 flex align-items-center justify-content-center pointer round txt14 p-0", {
24367
- "selected": isSelected(date2),
24368
- "today": isToday(date2),
24369
- "disabled": isDateDisabled(date2),
24370
- "not-in-month": isNotInMonth(date2)
24371
- }]),
24372
- disabled: isDateDisabled(date2),
24373
- onClick: ($event) => selectDate(date2)
24374
- }, toDisplayString(date2 == null ? void 0 : date2.getDate()), 11, _hoisted_12$4);
24375
- }), 128))
24376
- ])) : unref(currentView) === "months" ? (openBlock(), createElementBlock("div", _hoisted_13$3, [
24377
- (openBlock(true), createElementBlock(Fragment, null, renderList(months.value, (month) => {
24378
- return openBlock(), createElementBlock("button", {
24379
- key: month.value,
24380
- class: normalizeClass(["month-item flex align-items-center justify-content-center pointer rounded p-05 txt14 border-none", {
24381
- selected: month.value === currentMonthValue.value.month,
24382
- disabled: month.disabled
24383
- }]),
24384
- disabled: month.disabled,
24385
- onClick: ($event) => selectMonth(month.value)
24386
- }, toDisplayString(month.name), 11, _hoisted_14$3);
24387
- }), 128))
24388
- ])) : (openBlock(), createElementBlock("div", _hoisted_15$3, [
24389
- (openBlock(true), createElementBlock(Fragment, null, renderList(years.value, (year) => {
24390
- return openBlock(), createElementBlock("button", {
24391
- key: year.value,
24392
- class: normalizeClass(["year-item flex align-items-center justify-content-center pointer rounded p-05 txt14 border-none", {
24393
- selected: year.value === currentMonthValue.value.year,
24394
- disabled: year.disabled
24395
- }]),
24396
- disabled: year.disabled,
24397
- onClick: ($event) => selectYear(year.value)
24398
- }, toDisplayString(year.value), 11, _hoisted_16$3);
24399
- }), 128))
24400
- ]))
24401
- ]),
24402
- _ctx.enableTime && unref(currentView) === "days" ? (openBlock(), createElementBlock("div", _hoisted_17$3, [
24403
- createElementVNode("div", _hoisted_18$1, [
24404
- createVNode(unref(NumberInput), {
24405
- center: "",
24406
- "model-value": hours.value,
24407
- disabled: !selectedDate.value,
24408
- min: 0,
24409
- max: 23,
24410
- layout: "vertical",
24411
- padZero: 2,
24412
- "onUpdate:modelValue": handleHourInput
24413
- }, null, 8, ["model-value", "disabled"]),
24414
- _cache[6] || (_cache[6] = createElementVNode("p", { class: "pb-075" }, " : ", -1)),
24415
- createVNode(unref(NumberInput), {
24416
- center: "",
24417
- "model-value": minutes.value,
24418
- disabled: !selectedDate.value,
24419
- min: 0,
24420
- max: 59,
24421
- padZero: 2,
24422
- layout: "vertical",
24423
- "onUpdate:modelValue": handleMinuteInput
24424
- }, null, 8, ["model-value", "disabled"])
24425
- ]),
24426
- createElementVNode("span", _hoisted_19$1, toDisplayString(timezoneDisplay.value), 1),
24427
- selectedDate.value ? (openBlock(), createBlock(unref(Btn), {
24428
- key: 0,
24429
- flat: "",
24430
- onClick: _cache[3] || (_cache[3] = ($event) => isRef(isOpen) ? isOpen.value = false : isOpen = false)
24431
- }, {
24432
- default: withCtx(() => _cache[7] || (_cache[7] = [
24433
- createTextVNode(" Done ")
24434
- ])),
24435
- _: 1
24436
- })) : createCommentVNode("", true)
24437
- ])) : createCommentVNode("", true)
24438
- ])
24439
- ]),
24440
- _: 1
24441
- }, 8, ["shown"])
24442
- ], 10, _hoisted_1$E);
24443
- };
24444
- }
24445
- });
24446
- const DatePick = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-c6c8cc7b"]]);
24447
24780
  const _hoisted_1$D = { class: "datetime-wrap" };
24448
24781
  const _hoisted_2$r = {
24449
24782
  key: 0,
@@ -25038,6 +25371,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
25038
25371
  iconStart: {},
25039
25372
  icon: {},
25040
25373
  label: {},
25374
+ defaultValue: {},
25041
25375
  placeholder: {},
25042
25376
  disabled: { type: Boolean },
25043
25377
  required: { type: Boolean },
@@ -25050,7 +25384,12 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
25050
25384
  emits: ["update:modelValue"],
25051
25385
  setup(__props, { emit: __emit }) {
25052
25386
  const emit2 = __emit;
25053
- let numberValue = ref(Number.parseFloat(`${__props.modelValue}`) || void 0);
25387
+ let numberValue = ref();
25388
+ onMounted(() => {
25389
+ const num = __props.modelValue !== void 0 ? Number.parseFloat(`${__props.modelValue}`) : void 0;
25390
+ const defaultNum = __props.defaultValue !== void 0 ? Number.parseFloat(`${__props.defaultValue}`) : void 0;
25391
+ numberValue.value = num || defaultNum;
25392
+ });
25054
25393
  const btnLayouts = ["horizontal", "vertical"];
25055
25394
  function add2(...numbers) {
25056
25395
  var _a2;
@@ -25207,7 +25546,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
25207
25546
  };
25208
25547
  }
25209
25548
  });
25210
- const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-6e5ae00f"]]);
25549
+ const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-26b79ca5"]]);
25211
25550
  const _hoisted_1$z = ["value", "autofocus", "onKeydown", "onPaste"];
25212
25551
  const _sfc_main$G = /* @__PURE__ */ defineComponent({
25213
25552
  __name: "OTP",
@@ -25237,10 +25576,9 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
25237
25576
  emitUpdate();
25238
25577
  }
25239
25578
  function emitUpdate() {
25579
+ emit2("update:modelValue", digits.join(""));
25240
25580
  if (isDigitsFull()) {
25241
25581
  emit2("complete", digits.join(""));
25242
- } else {
25243
- emit2("update:modelValue", digits.join(""));
25244
25582
  }
25245
25583
  }
25246
25584
  function handleKeyDown(event, index2) {
@@ -25304,7 +25642,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
25304
25642
  autofocus: ind === 0,
25305
25643
  maxlength: "1",
25306
25644
  pattern: "[0-9]*",
25307
- oninput: "this.value = this.value.slice(0, 1);",
25645
+ oninput: "this.value = this.value.slice(0, 1)",
25308
25646
  onKeydown: ($event) => handleKeyDown($event, ind),
25309
25647
  onPaste: ($event) => handlePaste($event, ind)
25310
25648
  }, null, 40, _hoisted_1$z);
@@ -25313,7 +25651,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
25313
25651
  };
25314
25652
  }
25315
25653
  });
25316
- const OTP = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-5c22c199"]]);
25654
+ const OTP = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-8e8db33e"]]);
25317
25655
  const _hoisted_1$y = { class: "relative" };
25318
25656
  const _hoisted_2$n = { class: "m-password position-bottom-end flex column justify-content-center" };
25319
25657
  const _sfc_main$F = /* @__PURE__ */ defineComponent({
@@ -35556,6 +35894,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
35556
35894
  dense: { type: Boolean },
35557
35895
  required: { type: Boolean },
35558
35896
  pattern: {},
35897
+ defaultValue: {},
35559
35898
  shrink: { type: Boolean },
35560
35899
  disabled: { type: Boolean },
35561
35900
  type: { default: "text" },
@@ -35568,7 +35907,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
35568
35907
  rows: {},
35569
35908
  autocomplete: {},
35570
35909
  autofocus: { type: Boolean },
35571
- onFocusout: {}
35910
+ onFocusout: {},
35911
+ onFocus: {}
35572
35912
  },
35573
35913
  emits: ["update:modelValue", "debounce"],
35574
35914
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -35608,6 +35948,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
35608
35948
  var _a2;
35609
35949
  return (_a2 = input.value) == null ? void 0 : _a2.focus();
35610
35950
  }, 10);
35951
+ if (props2.defaultValue && !props2.modelValue) inputVal.value = props2.defaultValue;
35611
35952
  });
35612
35953
  return (_ctx, _cache) => {
35613
35954
  return openBlock(), createElementBlock("div", {
@@ -35640,6 +35981,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
35640
35981
  }, _ctx.nativeInputAttrs, {
35641
35982
  onFocusout: _cache[1] || (_cache[1] = //@ts-ignore
35642
35983
  (...args) => _ctx.onFocusout && _ctx.onFocusout(...args)),
35984
+ onFocus: _cache[2] || (_cache[2] = //@ts-ignore
35985
+ (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
35643
35986
  onInput: updateInputVal
35644
35987
  }), null, 16, _hoisted_3$a)), [
35645
35988
  [
@@ -35653,7 +35996,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
35653
35996
  id: _ctx.id,
35654
35997
  ref_key: "input",
35655
35998
  ref: input,
35656
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(inputVal) ? inputVal.value = $event : inputVal = $event),
35999
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(inputVal) ? inputVal.value = $event : inputVal = $event),
35657
36000
  title: _ctx.title,
35658
36001
  type: _ctx.type,
35659
36002
  rows: inputRows.value,
@@ -35663,7 +36006,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
35663
36006
  pattern: _ctx.pattern
35664
36007
  }, _ctx.nativeInputAttrs, {
35665
36008
  onInput: updateInputVal,
35666
- onFocusout: _cache[3] || (_cache[3] = //@ts-ignore
36009
+ onFocusout: _cache[4] || (_cache[4] = //@ts-ignore
35667
36010
  (...args) => _ctx.onFocusout && _ctx.onFocusout(...args))
35668
36011
  }), null, 16, _hoisted_4$5)), [
35669
36012
  [vModelText, unref(inputVal)]
@@ -35683,7 +36026,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
35683
36026
  };
35684
36027
  }
35685
36028
  });
35686
- const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-54de82a7"]]);
36029
+ const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-99e3ea36"]]);
35687
36030
  const _hoisted_1$m = ["title"];
35688
36031
  const _hoisted_2$c = ["id", "required"];
35689
36032
  const _hoisted_3$9 = ["for"];
@@ -40595,9 +40938,9 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
40595
40938
  key: 0,
40596
40939
  class: "bgl_icon-font",
40597
40940
  style: normalizeStyle({ "fontSize": `${_ctx.size}rem`, color: _ctx.color, "font-variation-settings": `'wght' ${_ctx.weight || 400}` })
40598
- }, toDisplayString(iconRender.value), 5)) : iconRenderType.value === "font-awesome" ? (openBlock(), createElementBlock("i", {
40941
+ }, toDisplayString(iconRender.value), 5)) : iconRenderType.value === "font-awesome" ? (openBlock(), createElementBlock("span", {
40599
40942
  key: 1,
40600
- class: normalizeClass(["fa far", [`fa-${iconRender.value}`, { "fa-brands": isFaBrand.value }]]),
40943
+ class: normalizeClass(["fa far bgl_icon-font", [`fa-${iconRender.value}`, { "fa-brands": isFaBrand.value }]]),
40601
40944
  style: normalizeStyle({ "fontSize": `${_ctx.size}rem`, color: _ctx.color, "font-variation-settings": `'wght' ${_ctx.weight || 400}` })
40602
40945
  }, null, 6)) : createCommentVNode("", true);
40603
40946
  };
@@ -41449,6 +41792,7 @@ const _hoisted_3$4 = {
41449
41792
  const _sfc_main$c = /* @__PURE__ */ defineComponent({
41450
41793
  __name: "Modal",
41451
41794
  props: {
41795
+ thin: { type: Boolean },
41452
41796
  side: { type: Boolean },
41453
41797
  title: {},
41454
41798
  width: {},
@@ -41505,6 +41849,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
41505
41849
  createVNode(unref(_sfc_main$$), {
41506
41850
  class: "modal",
41507
41851
  style: normalizeStyle({ ...maxWidth.value }),
41852
+ thin: _ctx.thin,
41508
41853
  onClick: _cache[0] || (_cache[0] = withModifiers(() => {
41509
41854
  }, ["stop"]))
41510
41855
  }, {
@@ -41549,7 +41894,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
41549
41894
  ];
41550
41895
  }),
41551
41896
  _: 3
41552
- }, 8, ["style"])
41897
+ }, 8, ["style", "thin"])
41553
41898
  ], 34);
41554
41899
  };
41555
41900
  }
@@ -44943,7 +45288,7 @@ export {
44943
45288
  _sfc_main$N as ColorPicker,
44944
45289
  DataPreview,
44945
45290
  DataTable,
44946
- _sfc_main$M as DateInput,
45291
+ DateInput,
44947
45292
  DatePick,
44948
45293
  _sfc_main$K as DatePicker,
44949
45294
  _sfc_main$W as Draggable,