@bagelink/vue 0.0.1256 → 0.0.1260
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/components/Carousel.vue.d.ts.map +1 -1
- package/dist/components/Modal.vue.d.ts +1 -0
- package/dist/components/Modal.vue.d.ts.map +1 -1
- package/dist/components/form/BagelForm.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/DateInput.vue.d.ts +13 -7
- package/dist/components/form/inputs/DateInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/NumberInput.vue.d.ts +1 -0
- package/dist/components/form/inputs/NumberInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/OTP.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SelectInput.vue.d.ts +8 -0
- package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TextInput.vue.d.ts +2 -0
- package/dist/components/form/inputs/TextInput.vue.d.ts.map +1 -1
- package/dist/index.cjs +975 -625
- package/dist/index.mjs +975 -625
- package/dist/style.css +859 -604
- package/dist/utils/BagelFormUtils.d.ts +2 -2
- package/dist/utils/BagelFormUtils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Carousel.vue +1 -2
- package/src/components/Icon/Icon.vue +2 -2
- package/src/components/Modal.vue +2 -1
- package/src/components/form/BagelForm.vue +15 -13
- package/src/components/form/inputs/DateInput.vue +434 -55
- package/src/components/form/inputs/NumberInput.vue +10 -2
- package/src/components/form/inputs/OTP.vue +2 -3
- package/src/components/form/inputs/TextInput.vue +4 -0
- package/src/styles/layout.css +121 -0
- package/src/styles/mobilLayout.css +121 -0
- package/src/styles/text.css +565 -562
- package/src/utils/BagelFormUtils.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -66,7 +66,7 @@ const _sfc_main$1m = /* @__PURE__ */ vue.defineComponent({
|
|
|
66
66
|
});
|
|
67
67
|
const _hoisted_1$19 = ["aria-expanded", "aria-controls"];
|
|
68
68
|
const _hoisted_2$R = { class: "accordion-label" };
|
|
69
|
-
const _hoisted_3$
|
|
69
|
+
const _hoisted_3$G = ["id", "aria-hidden"];
|
|
70
70
|
const _sfc_main$1l = /* @__PURE__ */ vue.defineComponent({
|
|
71
71
|
__name: "AccordionItem",
|
|
72
72
|
props: {
|
|
@@ -151,7 +151,7 @@ const _sfc_main$1l = /* @__PURE__ */ vue.defineComponent({
|
|
|
151
151
|
"aria-hidden": vue.unref(isOpen) ? "false" : "true"
|
|
152
152
|
}, [
|
|
153
153
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
154
|
-
], 8, _hoisted_3$
|
|
154
|
+
], 8, _hoisted_3$G)) : vue.createCommentVNode("", true)
|
|
155
155
|
]),
|
|
156
156
|
_: 3
|
|
157
157
|
})
|
|
@@ -424,7 +424,7 @@ const _sfc_main$1g = /* @__PURE__ */ vue.defineComponent({
|
|
|
424
424
|
const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["__scopeId", "data-v-689f051f"]]);
|
|
425
425
|
const _hoisted_1$14 = ["src"];
|
|
426
426
|
const _hoisted_2$P = ["autoplay", "muted", "loop", "controls", "playsinline"];
|
|
427
|
-
const _hoisted_3$
|
|
427
|
+
const _hoisted_3$F = ["src", "type"];
|
|
428
428
|
const _sfc_main$1f = /* @__PURE__ */ vue.defineComponent({
|
|
429
429
|
__name: "BglVideo",
|
|
430
430
|
props: {
|
|
@@ -516,7 +516,7 @@ const _sfc_main$1f = /* @__PURE__ */ vue.defineComponent({
|
|
|
516
516
|
vue.createElementVNode("source", {
|
|
517
517
|
src: _ctx.src,
|
|
518
518
|
type: `video/${videoFormat.value}`
|
|
519
|
-
}, null, 8, _hoisted_3$
|
|
519
|
+
}, null, 8, _hoisted_3$F)
|
|
520
520
|
], 12, _hoisted_2$P)) : vue.createCommentVNode("", true)
|
|
521
521
|
], 2);
|
|
522
522
|
};
|
|
@@ -786,16 +786,16 @@ const DATE_TIME_STRING_PATTERN = /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$/;
|
|
|
786
786
|
const DATE_TIME_STRING_FULL_DAY_PATTERN = /^\d{4}-\d{2}-\d{2}$/;
|
|
787
787
|
const _hoisted_1$12 = ["id"];
|
|
788
788
|
const _hoisted_2$N = { class: "flex txt14 flex column align-items-start gap-025 opacity-6" };
|
|
789
|
-
const _hoisted_3$
|
|
789
|
+
const _hoisted_3$E = {
|
|
790
790
|
key: 0,
|
|
791
791
|
class: "agenda__event-time flex gap-025"
|
|
792
792
|
};
|
|
793
|
-
const _hoisted_4$
|
|
793
|
+
const _hoisted_4$s = {
|
|
794
794
|
key: 1,
|
|
795
795
|
class: "agenda__event-location flex gap-025"
|
|
796
796
|
};
|
|
797
|
-
const _hoisted_5$
|
|
798
|
-
const _hoisted_6$
|
|
797
|
+
const _hoisted_5$o = { class: "agenda__event-title" };
|
|
798
|
+
const _hoisted_6$k = {
|
|
799
799
|
key: 0,
|
|
800
800
|
class: "agenda__event-with txt14 opacity-6"
|
|
801
801
|
};
|
|
@@ -875,14 +875,14 @@ const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
|
|
|
875
875
|
onClick: vue.withModifiers(handleClickOnEvent, ["prevent"])
|
|
876
876
|
}, [
|
|
877
877
|
vue.createElementVNode("div", _hoisted_2$N, [
|
|
878
|
-
eventTime.value && !__props.calendarEvent.originalEvent ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$
|
|
878
|
+
eventTime.value && !__props.calendarEvent.originalEvent ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$E, [
|
|
879
879
|
vue.createVNode(vue.unref(_sfc_main$r), {
|
|
880
880
|
icon: icons.clock,
|
|
881
881
|
size: 0.8
|
|
882
882
|
}, null, 8, ["icon"]),
|
|
883
883
|
vue.createTextVNode(" " + vue.toDisplayString(eventTime.value), 1)
|
|
884
884
|
])) : vue.createCommentVNode("", true),
|
|
885
|
-
__props.calendarEvent.location ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$
|
|
885
|
+
__props.calendarEvent.location ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$s, [
|
|
886
886
|
vue.createVNode(vue.unref(_sfc_main$r), {
|
|
887
887
|
icon: icons.location,
|
|
888
888
|
size: 1
|
|
@@ -891,8 +891,8 @@ const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
|
|
|
891
891
|
])) : vue.createCommentVNode("", true)
|
|
892
892
|
]),
|
|
893
893
|
vue.createElementVNode("div", null, [
|
|
894
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
895
|
-
__props.calendarEvent.with ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$
|
|
894
|
+
vue.createElementVNode("div", _hoisted_5$o, vue.toDisplayString(__props.calendarEvent.title), 1),
|
|
895
|
+
__props.calendarEvent.with ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$k, [
|
|
896
896
|
vue.createVNode(vue.unref(_sfc_main$r), {
|
|
897
897
|
icon: icons.user
|
|
898
898
|
}, null, 8, ["icon"]),
|
|
@@ -906,14 +906,14 @@ const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
|
|
|
906
906
|
const AgendaEventTile = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["__scopeId", "data-v-5740437b"]]);
|
|
907
907
|
const _hoisted_1$11 = { class: "agenda__wrapper grid align-items-start gap-1 h-100p" };
|
|
908
908
|
const _hoisted_2$M = { class: "m_sticky" };
|
|
909
|
-
const _hoisted_3$
|
|
910
|
-
const _hoisted_4$
|
|
911
|
-
const _hoisted_5$
|
|
912
|
-
const _hoisted_6$
|
|
909
|
+
const _hoisted_3$D = { class: "agenda__header-day-name txt-center" };
|
|
910
|
+
const _hoisted_4$r = { class: "agenda__header-date flex justify-content-center rounded p-025 txt24 line-height-04" };
|
|
911
|
+
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" };
|
|
912
|
+
const _hoisted_6$j = {
|
|
913
913
|
key: 0,
|
|
914
914
|
class: "align-items-center flex justify-content-center h-100p opacity-6"
|
|
915
915
|
};
|
|
916
|
-
const _hoisted_7$
|
|
916
|
+
const _hoisted_7$e = {
|
|
917
917
|
key: 1,
|
|
918
918
|
class: "w-100p"
|
|
919
919
|
};
|
|
@@ -939,11 +939,11 @@ const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
|
|
|
939
939
|
return (_ctx, _cache) => {
|
|
940
940
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$11, [
|
|
941
941
|
vue.createElementVNode("header", _hoisted_2$M, [
|
|
942
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
943
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
942
|
+
vue.createElementVNode("div", _hoisted_3$D, vue.toDisplayString(__props.day.dayName.slice(0, 3)), 1),
|
|
943
|
+
vue.createElementVNode("div", _hoisted_4$r, vue.toDisplayString(__props.day.dateTimeString.substring(8, 10)), 1)
|
|
944
944
|
]),
|
|
945
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
946
|
-
__props.day.events.length === 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$
|
|
945
|
+
vue.createElementVNode("div", _hoisted_5$n, [
|
|
946
|
+
__props.day.events.length === 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$j, vue.toDisplayString(vue.unref(getLanguage)(vue.unref(languageKeys).noEvent, __props.time.CALENDAR_LOCALE)), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$e, [
|
|
947
947
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.day.events, (dayEvent) => {
|
|
948
948
|
return vue.openBlock(), vue.createBlock(AgendaEventTile, {
|
|
949
949
|
key: `agenda_event_${dayEvent.id}`,
|
|
@@ -1644,40 +1644,40 @@ const _hoisted_1$10 = {
|
|
|
1644
1644
|
class: "event-flyout__relative-wrapper"
|
|
1645
1645
|
};
|
|
1646
1646
|
const _hoisted_2$L = { class: "event-flyout__menu" };
|
|
1647
|
-
const _hoisted_3$
|
|
1647
|
+
const _hoisted_3$C = {
|
|
1648
1648
|
key: 0,
|
|
1649
1649
|
class: "event-flyout__menu-editable"
|
|
1650
1650
|
};
|
|
1651
|
-
const _hoisted_4$
|
|
1652
|
-
const _hoisted_5$
|
|
1651
|
+
const _hoisted_4$q = { class: "event-flyout__menu-close" };
|
|
1652
|
+
const _hoisted_5$m = {
|
|
1653
1653
|
key: 0,
|
|
1654
1654
|
class: "event-flyout__info-wrapper"
|
|
1655
1655
|
};
|
|
1656
|
-
const _hoisted_6$
|
|
1656
|
+
const _hoisted_6$i = {
|
|
1657
1657
|
key: 0,
|
|
1658
1658
|
class: "event-flyout__row is-title"
|
|
1659
1659
|
};
|
|
1660
|
-
const _hoisted_7$
|
|
1660
|
+
const _hoisted_7$d = {
|
|
1661
1661
|
key: 1,
|
|
1662
1662
|
class: "event-flyout__row is-time"
|
|
1663
1663
|
};
|
|
1664
|
-
const _hoisted_8$
|
|
1664
|
+
const _hoisted_8$9 = {
|
|
1665
1665
|
key: 2,
|
|
1666
1666
|
class: "event-flyout__row is-location"
|
|
1667
1667
|
};
|
|
1668
|
-
const _hoisted_9$
|
|
1668
|
+
const _hoisted_9$7 = {
|
|
1669
1669
|
key: 3,
|
|
1670
1670
|
class: "event-flyout__row is-with"
|
|
1671
1671
|
};
|
|
1672
|
-
const _hoisted_10$
|
|
1672
|
+
const _hoisted_10$7 = {
|
|
1673
1673
|
key: 4,
|
|
1674
1674
|
class: "event-flyout__row is-topic"
|
|
1675
1675
|
};
|
|
1676
|
-
const _hoisted_11$
|
|
1676
|
+
const _hoisted_11$6 = {
|
|
1677
1677
|
key: 5,
|
|
1678
1678
|
class: "event-flyout__row is-description"
|
|
1679
1679
|
};
|
|
1680
|
-
const _hoisted_12$
|
|
1680
|
+
const _hoisted_12$6 = ["innerHTML"];
|
|
1681
1681
|
const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
|
|
1682
1682
|
__name: "EventFlyout",
|
|
1683
1683
|
props: {
|
|
@@ -1853,7 +1853,7 @@ const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
|
|
|
1853
1853
|
}, [
|
|
1854
1854
|
!__props.config.eventDialog || !__props.config.eventDialog.isCustom ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$10, [
|
|
1855
1855
|
vue.createElementVNode("div", _hoisted_2$L, [
|
|
1856
|
-
isEditable.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$
|
|
1856
|
+
isEditable.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$C, [
|
|
1857
1857
|
vue.createVNode(vue.unref(_sfc_main$r), {
|
|
1858
1858
|
class: "event-flyout__menu-item is-edit-icon",
|
|
1859
1859
|
icon: icons.edit,
|
|
@@ -1865,7 +1865,7 @@ const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
|
|
|
1865
1865
|
onClick: deleteEvent
|
|
1866
1866
|
}, null, 8, ["icon"])
|
|
1867
1867
|
])) : vue.createCommentVNode("", true),
|
|
1868
|
-
vue.createElementVNode("span", _hoisted_4$
|
|
1868
|
+
vue.createElementVNode("span", _hoisted_4$q, [
|
|
1869
1869
|
vue.createVNode(vue.unref(_sfc_main$r), {
|
|
1870
1870
|
class: "event-flyout__menu-item is-times-icon",
|
|
1871
1871
|
icon: icons.times,
|
|
@@ -1873,40 +1873,40 @@ const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
|
|
|
1873
1873
|
}, null, 8, ["icon"])
|
|
1874
1874
|
])
|
|
1875
1875
|
]),
|
|
1876
|
-
calendarEvent.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$
|
|
1877
|
-
calendarEvent.value.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$
|
|
1876
|
+
calendarEvent.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$m, [
|
|
1877
|
+
calendarEvent.value.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$i, [
|
|
1878
1878
|
vue.createElementVNode("div", {
|
|
1879
1879
|
class: "event-flyout__color-icon",
|
|
1880
1880
|
style: vue.normalizeStyle({ backgroundColor: eventBackgroundColor.value })
|
|
1881
1881
|
}, null, 4),
|
|
1882
1882
|
vue.createTextVNode(" " + vue.toDisplayString(calendarEvent.value.title), 1)
|
|
1883
1883
|
])) : vue.createCommentVNode("", true),
|
|
1884
|
-
calendarEvent.value.time ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$
|
|
1885
|
-
calendarEvent.value.location ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$
|
|
1884
|
+
calendarEvent.value.time ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$d, vue.toDisplayString(getEventTime.value), 1)) : vue.createCommentVNode("", true),
|
|
1885
|
+
calendarEvent.value.location ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$9, [
|
|
1886
1886
|
vue.createVNode(vue.unref(_sfc_main$r), {
|
|
1887
1887
|
icon: icons.location
|
|
1888
1888
|
}, null, 8, ["icon"]),
|
|
1889
1889
|
vue.createTextVNode(" " + vue.toDisplayString(calendarEvent.value.location), 1)
|
|
1890
1890
|
])) : vue.createCommentVNode("", true),
|
|
1891
|
-
calendarEvent.value.with ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9$
|
|
1891
|
+
calendarEvent.value.with ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9$7, [
|
|
1892
1892
|
vue.createVNode(vue.unref(_sfc_main$r), {
|
|
1893
1893
|
icon: icons.user
|
|
1894
1894
|
}, null, 8, ["icon"]),
|
|
1895
1895
|
vue.createTextVNode(" " + vue.toDisplayString(calendarEvent.value.with), 1)
|
|
1896
1896
|
])) : vue.createCommentVNode("", true),
|
|
1897
|
-
calendarEvent.value.topic ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_10$
|
|
1897
|
+
calendarEvent.value.topic ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_10$7, [
|
|
1898
1898
|
vue.createVNode(vue.unref(_sfc_main$r), {
|
|
1899
1899
|
icon: icons.topic
|
|
1900
1900
|
}, null, 8, ["icon"]),
|
|
1901
1901
|
vue.createTextVNode(" " + vue.toDisplayString(calendarEvent.value.topic), 1)
|
|
1902
1902
|
])) : vue.createCommentVNode("", true),
|
|
1903
|
-
calendarEvent.value.description ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_11$
|
|
1903
|
+
calendarEvent.value.description ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_11$6, [
|
|
1904
1904
|
vue.createVNode(vue.unref(_sfc_main$r), {
|
|
1905
1905
|
icon: icons.description
|
|
1906
1906
|
}, null, 8, ["icon"]),
|
|
1907
1907
|
vue.createElementVNode("p", {
|
|
1908
1908
|
innerHTML: calendarEvent.value.description
|
|
1909
|
-
}, null, 8, _hoisted_12$
|
|
1909
|
+
}, null, 8, _hoisted_12$6)
|
|
1910
1910
|
])) : vue.createCommentVNode("", true)
|
|
1911
1911
|
])) : vue.createCommentVNode("", true)
|
|
1912
1912
|
])) : vue.renderSlot(_ctx.$slots, "default", {
|
|
@@ -1923,12 +1923,12 @@ const _hoisted_1$$ = {
|
|
|
1923
1923
|
class: "calendar-month__event"
|
|
1924
1924
|
};
|
|
1925
1925
|
const _hoisted_2$K = ["id", "draggable"];
|
|
1926
|
-
const _hoisted_3$
|
|
1927
|
-
const _hoisted_4$
|
|
1926
|
+
const _hoisted_3$B = ["id", "draggable"];
|
|
1927
|
+
const _hoisted_4$p = {
|
|
1928
1928
|
key: 0,
|
|
1929
1929
|
class: "calendar-month__event-time opacity-6 flex-shrink-0"
|
|
1930
1930
|
};
|
|
1931
|
-
const _hoisted_5$
|
|
1931
|
+
const _hoisted_5$l = { class: "calendar-month__event-title1 white-space ellipsis" };
|
|
1932
1932
|
const eventIdPrefix = "calendar-month__event-";
|
|
1933
1933
|
const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
|
|
1934
1934
|
__name: "Event",
|
|
@@ -2031,9 +2031,9 @@ const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
|
|
|
2031
2031
|
onClick: handleClickOnEvent
|
|
2032
2032
|
}, [
|
|
2033
2033
|
_cache[0] || (_cache[0] = vue.createElementVNode("span", { class: "calendar-month__event-color round flex-shrink-0" }, null, -1)),
|
|
2034
|
-
eventTimeStart.value && !__props.calendarEvent.originalEvent ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$
|
|
2035
|
-
vue.createElementVNode("span", _hoisted_5$
|
|
2036
|
-
], 42, _hoisted_3$
|
|
2034
|
+
eventTimeStart.value && !__props.calendarEvent.originalEvent ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$p, vue.toDisplayString(eventTimeStart.value), 1)) : vue.createCommentVNode("", true),
|
|
2035
|
+
vue.createElementVNode("span", _hoisted_5$l, vue.toDisplayString(__props.calendarEvent.title), 1)
|
|
2036
|
+
], 42, _hoisted_3$B))
|
|
2037
2037
|
], 64));
|
|
2038
2038
|
};
|
|
2039
2039
|
}
|
|
@@ -2041,8 +2041,8 @@ const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
|
|
|
2041
2041
|
const Event = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-3c4101df"]]);
|
|
2042
2042
|
const _hoisted_1$_ = ["id"];
|
|
2043
2043
|
const _hoisted_2$J = { class: "w-100p flex justify-content-end txt14 p-025 m_h-100p" };
|
|
2044
|
-
const _hoisted_3$
|
|
2045
|
-
const _hoisted_4$
|
|
2044
|
+
const _hoisted_3$A = { class: "calendar-month_events" };
|
|
2045
|
+
const _hoisted_4$o = {
|
|
2046
2046
|
key: 1,
|
|
2047
2047
|
class: "space-reserver"
|
|
2048
2048
|
};
|
|
@@ -2149,7 +2149,7 @@ const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2149
2149
|
onClick: emitDayWasClicked
|
|
2150
2150
|
}, vue.toDisplayString(__props.day.dateTimeString.substring(8, 10).startsWith("0") ? __props.day.dateTimeString.substring(9, 10) : __props.day.dateTimeString.substring(8, 10)), 1)
|
|
2151
2151
|
]),
|
|
2152
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
2152
|
+
vue.createElementVNode("div", _hoisted_3$A, [
|
|
2153
2153
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.day.events, (calendarEvent, index2) => {
|
|
2154
2154
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index2 }, [
|
|
2155
2155
|
index2 < 3 ? (vue.openBlock(), vue.createBlock(Event, {
|
|
@@ -2176,7 +2176,7 @@ const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2176
2176
|
}, vue.toDisplayString(vue.unref(getLanguage)(vue.unref(languageKeys).moreEvents, __props.time.CALENDAR_LOCALE)), 1)) : vue.createCommentVNode("", true)
|
|
2177
2177
|
])
|
|
2178
2178
|
], true)
|
|
2179
|
-
], 42, _hoisted_1$_)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$
|
|
2179
|
+
], 42, _hoisted_1$_)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$o));
|
|
2180
2180
|
};
|
|
2181
2181
|
}
|
|
2182
2182
|
});
|
|
@@ -2195,8 +2195,8 @@ const _sfc_main$18 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2195
2195
|
});
|
|
2196
2196
|
const _hoisted_1$Y = { class: "calendar-month relative column w-100p h-100p overflow-y flex flex-stretch" };
|
|
2197
2197
|
const _hoisted_2$I = { class: "flex space-between" };
|
|
2198
|
-
const _hoisted_3$
|
|
2199
|
-
const _hoisted_4$
|
|
2198
|
+
const _hoisted_3$z = { class: "calendar-month__weeks h-100p flex-grow flex flex-stretch column space-between" };
|
|
2199
|
+
const _hoisted_4$n = {
|
|
2200
2200
|
key: 0,
|
|
2201
2201
|
class: "calendar-month__day_events w-100p pt-1 m_pb-1"
|
|
2202
2202
|
};
|
|
@@ -2314,7 +2314,7 @@ const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2314
2314
|
}, null, 8, ["config", "day", "time"]);
|
|
2315
2315
|
}), 128))
|
|
2316
2316
|
]),
|
|
2317
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
2317
|
+
vue.createElementVNode("div", _hoisted_3$z, [
|
|
2318
2318
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(month.value, (week, weekIndex) => {
|
|
2319
2319
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
2320
2320
|
key: weekIndex,
|
|
@@ -2346,7 +2346,7 @@ const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2346
2346
|
]);
|
|
2347
2347
|
}), 128))
|
|
2348
2348
|
]),
|
|
2349
|
-
!(((_a2 = __props.config.month) == null ? void 0 : _a2.showEventsOnMobileView) === false) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$
|
|
2349
|
+
!(((_a2 = __props.config.month) == null ? void 0 : _a2.showEventsOnMobileView) === false) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$n, [
|
|
2350
2350
|
selectedDay.value ? (vue.openBlock(), vue.createBlock(AgendaEvents, {
|
|
2351
2351
|
key: 0,
|
|
2352
2352
|
config: __props.config,
|
|
@@ -2583,24 +2583,24 @@ class EventChange {
|
|
|
2583
2583
|
}
|
|
2584
2584
|
const _hoisted_1$X = ["data-ref"];
|
|
2585
2585
|
const _hoisted_2$H = { class: "calendar-week__event-row is-title" };
|
|
2586
|
-
const _hoisted_3$
|
|
2587
|
-
const _hoisted_4$
|
|
2586
|
+
const _hoisted_3$y = { class: "calendar-week__event-row is-time flex" };
|
|
2587
|
+
const _hoisted_4$m = {
|
|
2588
2588
|
key: 0,
|
|
2589
2589
|
class: "calendar-week__event-row is-location"
|
|
2590
2590
|
};
|
|
2591
|
-
const _hoisted_5$
|
|
2591
|
+
const _hoisted_5$k = {
|
|
2592
2592
|
key: 1,
|
|
2593
2593
|
class: "calendar-week__event-row is-with"
|
|
2594
2594
|
};
|
|
2595
|
-
const _hoisted_6$
|
|
2595
|
+
const _hoisted_6$h = {
|
|
2596
2596
|
key: 2,
|
|
2597
2597
|
class: "calendar-week__event-row is-topic"
|
|
2598
2598
|
};
|
|
2599
|
-
const _hoisted_7$
|
|
2599
|
+
const _hoisted_7$c = {
|
|
2600
2600
|
key: 3,
|
|
2601
2601
|
class: "calendar-week__event-row is-description"
|
|
2602
2602
|
};
|
|
2603
|
-
const _hoisted_8$
|
|
2603
|
+
const _hoisted_8$8 = ["innerHTML"];
|
|
2604
2604
|
const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
|
|
2605
2605
|
__name: "DayEvent",
|
|
2606
2606
|
props: {
|
|
@@ -2944,42 +2944,42 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2944
2944
|
})
|
|
2945
2945
|
}, [
|
|
2946
2946
|
vue.createElementVNode("div", _hoisted_2$H, vue.toDisplayString(event.value.title), 1),
|
|
2947
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
2947
|
+
vue.createElementVNode("div", _hoisted_3$y, [
|
|
2948
2948
|
vue.createVNode(vue.unref(_sfc_main$r), {
|
|
2949
2949
|
icon: icons.value.clock,
|
|
2950
2950
|
class: "calendar-week__event-icon"
|
|
2951
2951
|
}, null, 8, ["icon"]),
|
|
2952
2952
|
vue.createElementVNode("span", null, vue.toDisplayString(getEventTime.value), 1)
|
|
2953
2953
|
]),
|
|
2954
|
-
event.value.location ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$
|
|
2954
|
+
event.value.location ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$m, [
|
|
2955
2955
|
vue.createVNode(vue.unref(_sfc_main$r), {
|
|
2956
2956
|
icon: icons.value.location,
|
|
2957
2957
|
class: "calendar-week__event-icon"
|
|
2958
2958
|
}, null, 8, ["icon"]),
|
|
2959
2959
|
vue.createElementVNode("span", null, vue.toDisplayString(event.value.location), 1)
|
|
2960
2960
|
])) : vue.createCommentVNode("", true),
|
|
2961
|
-
event.value.with ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$
|
|
2961
|
+
event.value.with ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$k, [
|
|
2962
2962
|
vue.createVNode(vue.unref(_sfc_main$r), {
|
|
2963
2963
|
icon: icons.value.user,
|
|
2964
2964
|
class: "calendar-week__event-icon"
|
|
2965
2965
|
}, null, 8, ["icon"]),
|
|
2966
2966
|
vue.createElementVNode("span", null, vue.toDisplayString(event.value.with), 1)
|
|
2967
2967
|
])) : vue.createCommentVNode("", true),
|
|
2968
|
-
event.value.topic ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$
|
|
2968
|
+
event.value.topic ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$h, [
|
|
2969
2969
|
vue.createVNode(vue.unref(_sfc_main$r), {
|
|
2970
2970
|
icon: icons.value.topic,
|
|
2971
2971
|
class: "calendar-week__event-icon"
|
|
2972
2972
|
}, null, 8, ["icon"]),
|
|
2973
2973
|
vue.createElementVNode("span", null, vue.toDisplayString(event.value.topic), 1)
|
|
2974
2974
|
])) : vue.createCommentVNode("", true),
|
|
2975
|
-
event.value.description ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$
|
|
2975
|
+
event.value.description ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$c, [
|
|
2976
2976
|
vue.createVNode(vue.unref(_sfc_main$r), {
|
|
2977
2977
|
icon: icons.value.description,
|
|
2978
2978
|
class: "calendar-week__event-icon"
|
|
2979
2979
|
}, null, 8, ["icon"]),
|
|
2980
2980
|
vue.createElementVNode("p", {
|
|
2981
2981
|
innerHTML: event.value.description
|
|
2982
|
-
}, null, 8, _hoisted_8$
|
|
2982
|
+
}, null, 8, _hoisted_8$8)
|
|
2983
2983
|
])) : vue.createCommentVNode("", true),
|
|
2984
2984
|
eventIsLongerThan30Minutes.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
2985
2985
|
key: 4,
|
|
@@ -3276,10 +3276,10 @@ const _hoisted_1$T = {
|
|
|
3276
3276
|
style: { "margin-inline-end": "0.5em" }
|
|
3277
3277
|
};
|
|
3278
3278
|
const _hoisted_2$E = ["onClick"];
|
|
3279
|
-
const _hoisted_3$
|
|
3280
|
-
const _hoisted_4$
|
|
3281
|
-
const _hoisted_5$
|
|
3282
|
-
const _hoisted_6$
|
|
3279
|
+
const _hoisted_3$x = { class: "flex justify-content-center gap-025 txt12 pb-025" };
|
|
3280
|
+
const _hoisted_4$l = { class: "" };
|
|
3281
|
+
const _hoisted_5$j = { class: "week-timeline__date txt14 round inline-flex justify-content-center" };
|
|
3282
|
+
const _hoisted_6$g = { class: "week-timeline__events" };
|
|
3283
3283
|
const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
|
|
3284
3284
|
__name: "WeekTimeline",
|
|
3285
3285
|
props: {
|
|
@@ -3310,11 +3310,11 @@ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3310
3310
|
}]),
|
|
3311
3311
|
onClick: ($event) => emit2("dayWasClicked", _ctx.time.dateStringFrom(day.dateTimeString))
|
|
3312
3312
|
}, [
|
|
3313
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
3314
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
3315
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
3313
|
+
vue.createElementVNode("div", _hoisted_3$x, [
|
|
3314
|
+
vue.createElementVNode("div", _hoisted_4$l, vue.toDisplayString(day.dayName.charAt(0).toUpperCase() + day.dayName.slice(1, 3).toLowerCase()), 1),
|
|
3315
|
+
vue.createElementVNode("div", _hoisted_5$j, vue.toDisplayString(getDaysDate(day)), 1)
|
|
3316
3316
|
]),
|
|
3317
|
-
vue.createElementVNode("div", _hoisted_6$
|
|
3317
|
+
vue.createElementVNode("div", _hoisted_6$g, [
|
|
3318
3318
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(day.fullDayEvents, (event, key) => {
|
|
3319
3319
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key }, [
|
|
3320
3320
|
key !== "date" ? (vue.openBlock(), vue.createBlock(FullDayEvent, {
|
|
@@ -3336,7 +3336,7 @@ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3336
3336
|
const WeekTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-18ecf6c3"]]);
|
|
3337
3337
|
const _hoisted_1$S = { class: "calendar-week__wrapper relative ps-3-5" };
|
|
3338
3338
|
const _hoisted_2$D = { class: "calendar-week" };
|
|
3339
|
-
const _hoisted_3$
|
|
3339
|
+
const _hoisted_3$w = { class: "calendar-week__events" };
|
|
3340
3340
|
const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
|
|
3341
3341
|
__name: "Week",
|
|
3342
3342
|
props: {
|
|
@@ -3602,7 +3602,7 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3602
3602
|
"day-intervals": dayIntervals.value,
|
|
3603
3603
|
"week-height": weekHeight.value
|
|
3604
3604
|
}, null, 8, ["time", "day-intervals", "week-height"])),
|
|
3605
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
3605
|
+
vue.createElementVNode("div", _hoisted_3$w, [
|
|
3606
3606
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(days.value, (day, dayIndex) => {
|
|
3607
3607
|
return vue.openBlock(), vue.createBlock(Day, {
|
|
3608
3608
|
key: day.dateTimeString + mode.value + weekVersion.value,
|
|
@@ -3686,7 +3686,7 @@ ${_Errors.SUFFIX}`);
|
|
|
3686
3686
|
let Errors = _Errors;
|
|
3687
3687
|
const _hoisted_1$R = { class: "calendar-root-wrapper txt16" };
|
|
3688
3688
|
const _hoisted_2$C = ["data-lang"];
|
|
3689
|
-
const _hoisted_3$
|
|
3689
|
+
const _hoisted_3$v = {
|
|
3690
3690
|
key: 0,
|
|
3691
3691
|
class: "top-bar-loader"
|
|
3692
3692
|
};
|
|
@@ -3882,7 +3882,7 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3882
3882
|
}, [
|
|
3883
3883
|
vue.createVNode(vue.Transition, { name: "loading" }, {
|
|
3884
3884
|
default: vue.withCtx(() => [
|
|
3885
|
-
__props.isLoading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
3885
|
+
__props.isLoading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$v)) : vue.createCommentVNode("", true)
|
|
3886
3886
|
]),
|
|
3887
3887
|
_: 1
|
|
3888
3888
|
}),
|
|
@@ -4020,8 +4020,8 @@ const _hoisted_2$B = {
|
|
|
4020
4020
|
key: 0,
|
|
4021
4021
|
class: "dots"
|
|
4022
4022
|
};
|
|
4023
|
-
const _hoisted_3$
|
|
4024
|
-
const _hoisted_4$
|
|
4023
|
+
const _hoisted_3$u = ["onClick"];
|
|
4024
|
+
const _hoisted_4$k = { class: "Handlers" };
|
|
4025
4025
|
const GAP_PERCENT = 1;
|
|
4026
4026
|
const VELOCITY_SAMPLE_DURATION = 100;
|
|
4027
4027
|
const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -4438,7 +4438,7 @@ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
|
|
|
4438
4438
|
vue.createElementVNode("div", {
|
|
4439
4439
|
ref_key: "bglSlider",
|
|
4440
4440
|
ref: bglSlider,
|
|
4441
|
-
class: vue.normalizeClass(["bgl-slider", { dragging: vue.unref(isDragging), clicking: vue.unref(isPressed), [`slides-${vue.unref(itemCount)}`]: true }]),
|
|
4441
|
+
class: vue.normalizeClass(["bgl-slider", { dragging: vue.unref(isDragging), clicking: vue.unref(isPressed), [`slides-${vue.unref(itemCount)}`]: true, grab: __props.freeDrag && vue.unref(slideCount) > 1 }]),
|
|
4442
4442
|
style: vue.normalizeStyle({ "--item-count": vue.unref(itemCount) }),
|
|
4443
4443
|
onMousedown: startDrag,
|
|
4444
4444
|
onMouseover: clearAutoplay,
|
|
@@ -4456,10 +4456,10 @@ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
|
|
|
4456
4456
|
key: i2,
|
|
4457
4457
|
class: vue.normalizeClass(["dot", { current: vue.unref(activeSlideIndex) === i2 - 1 }]),
|
|
4458
4458
|
onClick: ($event) => goToSlide(i2 - 1)
|
|
4459
|
-
}, null, 10, _hoisted_3$
|
|
4459
|
+
}, null, 10, _hoisted_3$u);
|
|
4460
4460
|
}), 128))
|
|
4461
4461
|
])) : vue.createCommentVNode("", true),
|
|
4462
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
4462
|
+
vue.createElementVNode("div", _hoisted_4$k, [
|
|
4463
4463
|
vue.createElementVNode("span", { onClick: prev }, [
|
|
4464
4464
|
vue.renderSlot(_ctx.$slots, "prev", {
|
|
4465
4465
|
index: vue.unref(activeSlideIndex),
|
|
@@ -4477,7 +4477,7 @@ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
|
|
|
4477
4477
|
};
|
|
4478
4478
|
}
|
|
4479
4479
|
});
|
|
4480
|
-
const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-
|
|
4480
|
+
const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-31632a3b"]]);
|
|
4481
4481
|
function _isPlaceholder(a2) {
|
|
4482
4482
|
return a2 != null && typeof a2 === "object" && a2["@@functional/placeholder"] === true;
|
|
4483
4483
|
}
|
|
@@ -9388,7 +9388,7 @@ const _hoisted_4$2$1 = {
|
|
|
9388
9388
|
};
|
|
9389
9389
|
const _hoisted_5$2$1 = ["x1", "y1", "x2", "y2"];
|
|
9390
9390
|
const _hoisted_6$2$1 = ["x1", "y1", "x2", "y2"];
|
|
9391
|
-
const _hoisted_7$
|
|
9391
|
+
const _hoisted_7$b = ["x1", "y1", "x2", "y2"];
|
|
9392
9392
|
function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9393
9393
|
return _ctx.data.length ? (vue.openBlock(), vue.createElementBlock("g", {
|
|
9394
9394
|
key: 0,
|
|
@@ -9444,7 +9444,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9444
9444
|
y1: _ctx.canvas.y,
|
|
9445
9445
|
x2: _ctx.canvas.width - 1,
|
|
9446
9446
|
y2: _ctx.canvas.height
|
|
9447
|
-
}, null, 8, _hoisted_7$
|
|
9447
|
+
}, null, 8, _hoisted_7$b)
|
|
9448
9448
|
])
|
|
9449
9449
|
], 8, _hoisted_1$4$1)) : vue.createCommentVNode("v-if", true);
|
|
9450
9450
|
}
|
|
@@ -10311,10 +10311,10 @@ const _hoisted_1$1$1 = {
|
|
|
10311
10311
|
style: { display: "flex", position: "relative" }
|
|
10312
10312
|
};
|
|
10313
10313
|
const _hoisted_2$1$1 = ["width", "height", "viewBox"];
|
|
10314
|
-
const _hoisted_3$
|
|
10315
|
-
const _hoisted_4$
|
|
10316
|
-
const _hoisted_5$
|
|
10317
|
-
const _hoisted_6$
|
|
10314
|
+
const _hoisted_3$t = { class: "layer-rectangles" };
|
|
10315
|
+
const _hoisted_4$j = ["transform", "onMouseover"];
|
|
10316
|
+
const _hoisted_5$i = ["width", "height"];
|
|
10317
|
+
const _hoisted_6$f = {
|
|
10318
10318
|
x: 0 + 10,
|
|
10319
10319
|
y: 0 + 20,
|
|
10320
10320
|
"font-size": `15px`,
|
|
@@ -10329,7 +10329,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10329
10329
|
viewBox: `0 0 ${_ctx.size.width} ${_ctx.size.height}`,
|
|
10330
10330
|
ref: "el"
|
|
10331
10331
|
}, [
|
|
10332
|
-
vue.createElementVNode("g", _hoisted_3$
|
|
10332
|
+
vue.createElementVNode("g", _hoisted_3$t, [
|
|
10333
10333
|
(vue.openBlock(true), vue.createElementBlock(
|
|
10334
10334
|
vue.Fragment,
|
|
10335
10335
|
null,
|
|
@@ -10350,21 +10350,21 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10350
10350
|
y: 0,
|
|
10351
10351
|
width: r2.width,
|
|
10352
10352
|
height: r2.height
|
|
10353
|
-
}), null, 16, _hoisted_5$
|
|
10353
|
+
}), null, 16, _hoisted_5$i),
|
|
10354
10354
|
vue.renderSlot(_ctx.$slots, "text", {
|
|
10355
10355
|
r: r2,
|
|
10356
10356
|
selected: _ctx.selected === i2
|
|
10357
10357
|
}, () => [
|
|
10358
10358
|
vue.createElementVNode(
|
|
10359
10359
|
"text",
|
|
10360
|
-
_hoisted_6$
|
|
10360
|
+
_hoisted_6$f,
|
|
10361
10361
|
vue.toDisplayString(r2.data.name),
|
|
10362
10362
|
1
|
|
10363
10363
|
/* TEXT */
|
|
10364
10364
|
)
|
|
10365
10365
|
])
|
|
10366
10366
|
])
|
|
10367
|
-
], 42, _hoisted_4$
|
|
10367
|
+
], 42, _hoisted_4$j);
|
|
10368
10368
|
}),
|
|
10369
10369
|
128
|
|
10370
10370
|
/* KEYED_FRAGMENT */
|
|
@@ -10596,7 +10596,7 @@ function useSchemaField(options) {
|
|
|
10596
10596
|
richtext: RichText,
|
|
10597
10597
|
upload: UploadInput,
|
|
10598
10598
|
file: UploadInput,
|
|
10599
|
-
date:
|
|
10599
|
+
date: DateInput,
|
|
10600
10600
|
tabs: TabsNav,
|
|
10601
10601
|
form: _sfc_main$S
|
|
10602
10602
|
};
|
|
@@ -11485,14 +11485,14 @@ const _hoisted_1$M = {
|
|
|
11485
11485
|
class: "loading-table-wrapper z-99 h-100 w-100 absolute inset"
|
|
11486
11486
|
};
|
|
11487
11487
|
const _hoisted_2$z = { class: "infinite-wrapper" };
|
|
11488
|
-
const _hoisted_3$
|
|
11489
|
-
const _hoisted_4$
|
|
11490
|
-
const _hoisted_5$
|
|
11491
|
-
const _hoisted_6$
|
|
11492
|
-
const _hoisted_7$
|
|
11493
|
-
const _hoisted_8$
|
|
11494
|
-
const _hoisted_9$
|
|
11495
|
-
const _hoisted_10$
|
|
11488
|
+
const _hoisted_3$s = { class: "row first-row" };
|
|
11489
|
+
const _hoisted_4$i = { key: 0 };
|
|
11490
|
+
const _hoisted_5$h = ["onClick"];
|
|
11491
|
+
const _hoisted_6$e = { class: "flex" };
|
|
11492
|
+
const _hoisted_7$a = ["onClick"];
|
|
11493
|
+
const _hoisted_8$7 = { key: 0 };
|
|
11494
|
+
const _hoisted_9$6 = ["value"];
|
|
11495
|
+
const _hoisted_10$6 = { key: 1 };
|
|
11496
11496
|
const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
11497
11497
|
__name: "DataTable",
|
|
11498
11498
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
@@ -11612,8 +11612,8 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
|
11612
11612
|
vue.createElementVNode("div", { class: "loading-table-animation absolute oval" }, null, -1)
|
|
11613
11613
|
]))) : (vue.openBlock(), vue.createElementBlock("div", vue.normalizeProps(vue.mergeProps({ key: 1 }, vue.unref(wrapperProps))), [
|
|
11614
11614
|
vue.createElementVNode("table", _hoisted_2$z, [
|
|
11615
|
-
vue.createElementVNode("thead", _hoisted_3$
|
|
11616
|
-
vue.unref(isSelectable) ? (vue.openBlock(), vue.createElementBlock("th", _hoisted_4$
|
|
11615
|
+
vue.createElementVNode("thead", _hoisted_3$s, [
|
|
11616
|
+
vue.unref(isSelectable) ? (vue.openBlock(), vue.createElementBlock("th", _hoisted_4$i, [
|
|
11617
11617
|
vue.createElementVNode("input", {
|
|
11618
11618
|
ref_key: "allSelectorEl",
|
|
11619
11619
|
ref: allSelectorEl,
|
|
@@ -11630,7 +11630,7 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
|
11630
11630
|
class: "col",
|
|
11631
11631
|
onClick: ($event) => vue.unref(toggleSort)((field == null ? void 0 : field.id) || "")
|
|
11632
11632
|
}, [
|
|
11633
|
-
vue.createElementVNode("div", _hoisted_6$
|
|
11633
|
+
vue.createElementVNode("div", _hoisted_6$e, [
|
|
11634
11634
|
vue.createTextVNode(vue.toDisplayString(field.label || vue.unref(keyToLabel)(field.id)) + " ", 1),
|
|
11635
11635
|
vue.createElementVNode("div", {
|
|
11636
11636
|
class: vue.normalizeClass(["list-arrows", { sorted: vue.unref(sortField) === field.id }])
|
|
@@ -11641,7 +11641,7 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
|
11641
11641
|
}, null, 8, ["class"])
|
|
11642
11642
|
], 2)
|
|
11643
11643
|
])
|
|
11644
|
-
], 8, _hoisted_5$
|
|
11644
|
+
], 8, _hoisted_5$h);
|
|
11645
11645
|
}), 128))
|
|
11646
11646
|
]),
|
|
11647
11647
|
vue.createElementVNode("tbody", null, [
|
|
@@ -11651,7 +11651,7 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
|
11651
11651
|
class: vue.normalizeClass(["row row-item position-relative", { selected: vue.unref(computedSelectedItems).includes(row.id ?? "") }]),
|
|
11652
11652
|
onClick: ($event) => vue.unref(toggleSelectItem)(row)
|
|
11653
11653
|
}, [
|
|
11654
|
-
vue.unref(isSelectable) ? (vue.openBlock(), vue.createElementBlock("td", _hoisted_8$
|
|
11654
|
+
vue.unref(isSelectable) ? (vue.openBlock(), vue.createElementBlock("td", _hoisted_8$7, [
|
|
11655
11655
|
vue.createElementVNode("div", {
|
|
11656
11656
|
onClick: _cache[3] || (_cache[3] = vue.withModifiers(() => {
|
|
11657
11657
|
}, ["stop"]))
|
|
@@ -11660,7 +11660,7 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
|
11660
11660
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => selectedItems.value = $event),
|
|
11661
11661
|
type: "checkbox",
|
|
11662
11662
|
value: row.id
|
|
11663
|
-
}, null, 8, _hoisted_9$
|
|
11663
|
+
}, null, 8, _hoisted_9$6), [
|
|
11664
11664
|
[vue.vModelCheckbox, selectedItems.value]
|
|
11665
11665
|
])
|
|
11666
11666
|
])
|
|
@@ -11674,12 +11674,12 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
|
11674
11674
|
key: 0,
|
|
11675
11675
|
row,
|
|
11676
11676
|
field
|
|
11677
|
-
}, void 0, true) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_10$
|
|
11677
|
+
}, void 0, true) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_10$6, [
|
|
11678
11678
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(renderFieldForRow(field, row))))
|
|
11679
11679
|
]))
|
|
11680
11680
|
]);
|
|
11681
11681
|
}), 128))
|
|
11682
|
-
], 10, _hoisted_7$
|
|
11682
|
+
], 10, _hoisted_7$a);
|
|
11683
11683
|
}), 128)),
|
|
11684
11684
|
props2.onLastItemVisible !== void 0 ? (vue.openBlock(), vue.createElementBlock("tr", {
|
|
11685
11685
|
key: 0,
|
|
@@ -14941,7 +14941,6 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
|
14941
14941
|
const formData = vue.ref(safeClone2(props2.modelValue ?? {}));
|
|
14942
14942
|
const initialFormData = vue.ref(safeClone2(props2.modelValue ?? {}));
|
|
14943
14943
|
vue.onMounted(() => {
|
|
14944
|
-
console.log("formData.value");
|
|
14945
14944
|
if (props2.modelValue) {
|
|
14946
14945
|
initialFormData.value = safeClone2(props2.modelValue);
|
|
14947
14946
|
}
|
|
@@ -14998,8 +14997,9 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
|
14998
14997
|
await ((_a2 = props2.onSubmit) == null ? void 0 : _a2.call(props2, formData.value));
|
|
14999
14998
|
initialFormData.value = safeClone2(formData.value);
|
|
15000
14999
|
formState.value = "success";
|
|
15001
|
-
window.parent.postMessage({ type: "BAGEL_FORM_SUCCESS", data: formData.value }, "*");
|
|
15000
|
+
window.parent.postMessage({ type: "BAGEL_FORM_SUCCESS", data: JSON.stringify(formData.value) }, "*");
|
|
15002
15001
|
} catch (error) {
|
|
15002
|
+
console.error("Form submission error:", error);
|
|
15003
15003
|
formState.value = "error";
|
|
15004
15004
|
}
|
|
15005
15005
|
}
|
|
@@ -15028,30 +15028,34 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
|
15028
15028
|
}
|
|
15029
15029
|
__expose({ form, isDirty: isDirty.value, validateForm });
|
|
15030
15030
|
return (_ctx, _cache) => {
|
|
15031
|
-
return
|
|
15032
|
-
key: 0,
|
|
15033
|
-
|
|
15034
|
-
|
|
15035
|
-
|
|
15036
|
-
|
|
15037
|
-
|
|
15038
|
-
|
|
15039
|
-
key: field
|
|
15040
|
-
|
|
15041
|
-
|
|
15042
|
-
|
|
15043
|
-
|
|
15044
|
-
|
|
15045
|
-
|
|
15046
|
-
|
|
15047
|
-
|
|
15048
|
-
|
|
15049
|
-
|
|
15050
|
-
|
|
15051
|
-
|
|
15052
|
-
|
|
15053
|
-
|
|
15054
|
-
|
|
15031
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
15032
|
+
formState.value !== "success" || !_ctx.$slots.success ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
15033
|
+
props2.tag === "form" ? (vue.openBlock(), vue.createElementBlock("form", {
|
|
15034
|
+
key: 0,
|
|
15035
|
+
ref_key: "form",
|
|
15036
|
+
ref: form,
|
|
15037
|
+
onSubmit: vue.withModifiers(handleSubmit, ["prevent"])
|
|
15038
|
+
}, [
|
|
15039
|
+
resolvedSchema.value ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(resolvedSchema.value, (field) => {
|
|
15040
|
+
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(renderSchemaField(field)), {
|
|
15041
|
+
key: field.id
|
|
15042
|
+
});
|
|
15043
|
+
}), 128)) : vue.renderSlot(_ctx.$slots, "default", { key: 1 }),
|
|
15044
|
+
vue.renderSlot(_ctx.$slots, "submit", {
|
|
15045
|
+
submit: handleSubmit,
|
|
15046
|
+
isDirty: isDirty.value,
|
|
15047
|
+
validateForm,
|
|
15048
|
+
formState: formState.value
|
|
15049
|
+
})
|
|
15050
|
+
], 544)) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(resolvedSchema.value, (field) => {
|
|
15051
|
+
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(renderSchemaField(field)), {
|
|
15052
|
+
key: field.id
|
|
15053
|
+
});
|
|
15054
|
+
}), 128))
|
|
15055
|
+
], 64)) : vue.createCommentVNode("", true),
|
|
15056
|
+
formState.value === "success" ? vue.renderSlot(_ctx.$slots, "success", { key: 1 }) : vue.createCommentVNode("", true),
|
|
15057
|
+
formState.value === "error" ? vue.renderSlot(_ctx.$slots, "error", { key: 2 }) : vue.createCommentVNode("", true)
|
|
15058
|
+
], 64);
|
|
15055
15059
|
};
|
|
15056
15060
|
}
|
|
15057
15061
|
});
|
|
@@ -15060,7 +15064,7 @@ const _hoisted_2$x = {
|
|
|
15060
15064
|
key: 0,
|
|
15061
15065
|
class: "ps-025 border-start"
|
|
15062
15066
|
};
|
|
15063
|
-
const _hoisted_3$
|
|
15067
|
+
const _hoisted_3$r = { class: "bg-gray-80 -my-05 px-025 pt-065 txt-center" };
|
|
15064
15068
|
const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
15065
15069
|
__name: "FieldArray",
|
|
15066
15070
|
props: {
|
|
@@ -15143,7 +15147,7 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
|
15143
15147
|
"onUpdate:modelValue": [($event) => data2.value[i2] = $event, emitValue],
|
|
15144
15148
|
schema: _ctx.schema
|
|
15145
15149
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "schema"]),
|
|
15146
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
15150
|
+
vue.createElementVNode("div", _hoisted_3$r, [
|
|
15147
15151
|
props2.delete ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
|
|
15148
15152
|
key: 0,
|
|
15149
15153
|
icon: "delete",
|
|
@@ -15204,7 +15208,7 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
|
15204
15208
|
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-73f1d9ad"]]);
|
|
15205
15209
|
const _hoisted_1$I = ["title"];
|
|
15206
15210
|
const _hoisted_2$w = ["id", "value", "required"];
|
|
15207
|
-
const _hoisted_3$
|
|
15211
|
+
const _hoisted_3$q = ["for"];
|
|
15208
15212
|
const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
15209
15213
|
__name: "CheckInput",
|
|
15210
15214
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
@@ -15246,7 +15250,7 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
|
15246
15250
|
vue.renderSlot(_ctx.$slots, "label", {}, () => [
|
|
15247
15251
|
vue.createTextVNode(vue.toDisplayString(_ctx.label), 1)
|
|
15248
15252
|
], true)
|
|
15249
|
-
], 8, _hoisted_3$
|
|
15253
|
+
], 8, _hoisted_3$q)
|
|
15250
15254
|
], 10, _hoisted_1$I);
|
|
15251
15255
|
};
|
|
15252
15256
|
}
|
|
@@ -15257,13 +15261,13 @@ const _hoisted_2$v = {
|
|
|
15257
15261
|
key: 0,
|
|
15258
15262
|
class: "label txt-start"
|
|
15259
15263
|
};
|
|
15260
|
-
const _hoisted_3$
|
|
15264
|
+
const _hoisted_3$p = {
|
|
15261
15265
|
key: 1,
|
|
15262
15266
|
class: "code-editor-wrap grid rounded p-1 overflow hm-300px ltr txt-start relative h-100p"
|
|
15263
15267
|
};
|
|
15264
|
-
const _hoisted_4$
|
|
15265
|
-
const _hoisted_5$
|
|
15266
|
-
const _hoisted_6$
|
|
15268
|
+
const _hoisted_4$h = { class: "overflow-hidden absolute inset-0 p-0 m-0 h-100 codeText" };
|
|
15269
|
+
const _hoisted_5$g = ["innerHTML"];
|
|
15270
|
+
const _hoisted_6$d = ["onKeydown"];
|
|
15267
15271
|
const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
15268
15272
|
__name: "Index",
|
|
15269
15273
|
props: {
|
|
@@ -15348,17 +15352,17 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
|
15348
15352
|
return (_ctx, _cache) => {
|
|
15349
15353
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$H, [
|
|
15350
15354
|
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$v, vue.toDisplayString(_ctx.label), 1)) : vue.createCommentVNode("", true),
|
|
15351
|
-
vue.unref(loaded) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
15355
|
+
vue.unref(loaded) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$p, [
|
|
15352
15356
|
vue.createElementVNode("div", {
|
|
15353
15357
|
class: "relative block h-100",
|
|
15354
15358
|
style: vue.normalizeStyle({ height: `calc(${vue.unref(elHeight)} - 2rem)` })
|
|
15355
15359
|
}, [
|
|
15356
|
-
vue.createElementVNode("pre", _hoisted_4$
|
|
15360
|
+
vue.createElementVNode("pre", _hoisted_4$h, [
|
|
15357
15361
|
_cache[2] || (_cache[2] = vue.createTextVNode(" ")),
|
|
15358
15362
|
vue.createElementVNode("code", {
|
|
15359
15363
|
class: vue.normalizeClass(["absolute inset-0", className.value]),
|
|
15360
15364
|
innerHTML: highlightedCode.value
|
|
15361
|
-
}, null, 10, _hoisted_5$
|
|
15365
|
+
}, null, 10, _hoisted_5$g),
|
|
15362
15366
|
_cache[3] || (_cache[3] = vue.createTextVNode("\n "))
|
|
15363
15367
|
]),
|
|
15364
15368
|
!_ctx.readonly ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("textarea", {
|
|
@@ -15373,7 +15377,7 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
|
15373
15377
|
"data-gramm": "false",
|
|
15374
15378
|
onKeydown: vue.withKeys(vue.withModifiers(handleTab, ["prevent"]), ["tab"]),
|
|
15375
15379
|
onInput: _cache[1] || (_cache[1] = ($event) => emit2("update:modelValue", vue.unref(code)))
|
|
15376
|
-
}, null, 40, _hoisted_6$
|
|
15380
|
+
}, null, 40, _hoisted_6$d)), [
|
|
15377
15381
|
[vue.vModelText, vue.unref(code)]
|
|
15378
15382
|
]) : vue.createCommentVNode("", true)
|
|
15379
15383
|
], 4)
|
|
@@ -15431,6 +15435,801 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
|
15431
15435
|
};
|
|
15432
15436
|
}
|
|
15433
15437
|
});
|
|
15438
|
+
const _hoisted_1$F = ["title"];
|
|
15439
|
+
const _hoisted_2$t = { key: 0 };
|
|
15440
|
+
const _hoisted_3$o = {
|
|
15441
|
+
key: 0,
|
|
15442
|
+
class: "required"
|
|
15443
|
+
};
|
|
15444
|
+
const _hoisted_4$g = { class: "date-picker-container" };
|
|
15445
|
+
const _hoisted_5$f = { class: "flex gap-075 p-05 m_flex-wrap calendar-container justify-content-center h-100p" };
|
|
15446
|
+
const _hoisted_6$c = { class: "calendar-section m_border-none pe-05 m_p-0" };
|
|
15447
|
+
const _hoisted_7$9 = { class: "flex space-between pb-1" };
|
|
15448
|
+
const _hoisted_8$6 = { class: "flex gap-05" };
|
|
15449
|
+
const _hoisted_9$5 = { class: "month-year" };
|
|
15450
|
+
const _hoisted_10$5 = {
|
|
15451
|
+
key: 0,
|
|
15452
|
+
class: "calendar-grid grid gap-025"
|
|
15453
|
+
};
|
|
15454
|
+
const _hoisted_11$5 = ["disabled", "onClick"];
|
|
15455
|
+
const _hoisted_12$5 = {
|
|
15456
|
+
key: 1,
|
|
15457
|
+
class: "month-grid grid gap-05 p-05"
|
|
15458
|
+
};
|
|
15459
|
+
const _hoisted_13$4 = ["disabled", "onClick"];
|
|
15460
|
+
const _hoisted_14$4 = {
|
|
15461
|
+
key: 2,
|
|
15462
|
+
class: "year-grid grid gap-05 p-0"
|
|
15463
|
+
};
|
|
15464
|
+
const _hoisted_15$4 = ["disabled", "onClick"];
|
|
15465
|
+
const _hoisted_16$4 = {
|
|
15466
|
+
key: 0,
|
|
15467
|
+
class: "time-picker border-start flex column gap-1 w-120px"
|
|
15468
|
+
};
|
|
15469
|
+
const _hoisted_17$4 = { class: "flex gap-025" };
|
|
15470
|
+
const _hoisted_18$2 = { class: "txt-center opacity-6 txt14" };
|
|
15471
|
+
const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
15472
|
+
__name: "DateInput",
|
|
15473
|
+
props: {
|
|
15474
|
+
required: { type: Boolean },
|
|
15475
|
+
label: {},
|
|
15476
|
+
editMode: { type: Boolean, default: true },
|
|
15477
|
+
small: { type: Boolean, default: false },
|
|
15478
|
+
enableTime: { type: Boolean, default: false },
|
|
15479
|
+
modelValue: {},
|
|
15480
|
+
min: {},
|
|
15481
|
+
max: {},
|
|
15482
|
+
timezone: { default: "UTC" },
|
|
15483
|
+
mode: { default: "day" },
|
|
15484
|
+
firstDayOfWeek: { default: WEEK_START_DAY.MONDAY },
|
|
15485
|
+
locale: { default: "" },
|
|
15486
|
+
center: { type: Boolean }
|
|
15487
|
+
},
|
|
15488
|
+
emits: ["update:modelValue"],
|
|
15489
|
+
setup(__props, { emit: __emit }) {
|
|
15490
|
+
const props2 = __props;
|
|
15491
|
+
const emit2 = __emit;
|
|
15492
|
+
let isOpen = vue.ref(false);
|
|
15493
|
+
let currentMonth = vue.ref(/* @__PURE__ */ new Date());
|
|
15494
|
+
let currentView = vue.ref("days");
|
|
15495
|
+
const time = new Time(props2.firstDayOfWeek, props2.locale);
|
|
15496
|
+
function formatDisplayDate(date2) {
|
|
15497
|
+
if (!date2) return "";
|
|
15498
|
+
const dateObj = typeof date2 === "string" ? new Date(date2) : date2;
|
|
15499
|
+
if (props2.enableTime) {
|
|
15500
|
+
return dateObj.toLocaleString(props2.locale || void 0, {
|
|
15501
|
+
year: "numeric",
|
|
15502
|
+
month: "short",
|
|
15503
|
+
day: "numeric",
|
|
15504
|
+
hour: "2-digit",
|
|
15505
|
+
minute: "2-digit",
|
|
15506
|
+
timeZone: props2.timezone
|
|
15507
|
+
});
|
|
15508
|
+
}
|
|
15509
|
+
return dateObj.toLocaleString(props2.locale || void 0, {
|
|
15510
|
+
year: "numeric",
|
|
15511
|
+
month: "short",
|
|
15512
|
+
day: "numeric",
|
|
15513
|
+
timeZone: props2.timezone
|
|
15514
|
+
});
|
|
15515
|
+
}
|
|
15516
|
+
function formatDate(date2) {
|
|
15517
|
+
if (!date2) return "";
|
|
15518
|
+
const dateObj = typeof date2 === "string" ? new Date(date2) : date2;
|
|
15519
|
+
return props2.enableTime ? dateObj.toISOString().slice(0, 16) : dateObj.toISOString().split("T")[0];
|
|
15520
|
+
}
|
|
15521
|
+
const formattedDisplayValue = vue.computed(() => formatDisplayDate(props2.modelValue));
|
|
15522
|
+
const formattedMin = vue.computed(() => formatDate(props2.min));
|
|
15523
|
+
const formattedMax = vue.computed(() => formatDate(props2.max));
|
|
15524
|
+
const selectedDate = vue.computed(() => {
|
|
15525
|
+
if (!props2.modelValue) return null;
|
|
15526
|
+
return typeof props2.modelValue === "string" ? new Date(props2.modelValue) : props2.modelValue;
|
|
15527
|
+
});
|
|
15528
|
+
const currentMonthDays = vue.computed(() => {
|
|
15529
|
+
const year = currentMonth.value.getFullYear();
|
|
15530
|
+
const month = currentMonth.value.getMonth();
|
|
15531
|
+
return time.getCalendarMonthSplitInWeeks(year, month).flat();
|
|
15532
|
+
});
|
|
15533
|
+
const currentMonthValue = vue.computed(() => ({
|
|
15534
|
+
month: currentMonth.value.getMonth(),
|
|
15535
|
+
year: currentMonth.value.getFullYear(),
|
|
15536
|
+
formatted: {
|
|
15537
|
+
month: time.getLocalizedNameOfMonth(currentMonth.value, "long"),
|
|
15538
|
+
year: time.getLocalizedDateString(currentMonth.value).split("/").pop()
|
|
15539
|
+
// Get just the year part
|
|
15540
|
+
}
|
|
15541
|
+
}));
|
|
15542
|
+
const months = vue.computed(() => Array.from({ length: 12 }, (_2, i2) => {
|
|
15543
|
+
const date2 = new Date(currentMonthValue.value.year, i2, 1);
|
|
15544
|
+
return {
|
|
15545
|
+
name: time.getLocalizedNameOfMonth(date2, "short"),
|
|
15546
|
+
value: i2,
|
|
15547
|
+
disabled: isDateDisabled(date2)
|
|
15548
|
+
};
|
|
15549
|
+
}));
|
|
15550
|
+
const years = vue.computed(() => {
|
|
15551
|
+
const startYear = currentMonthValue.value.year - 10;
|
|
15552
|
+
return Array.from({ length: 21 }, (_2, i2) => ({
|
|
15553
|
+
value: startYear + i2,
|
|
15554
|
+
disabled: isYearDisabled(startYear + i2)
|
|
15555
|
+
}));
|
|
15556
|
+
});
|
|
15557
|
+
const weekDays = vue.computed(() => {
|
|
15558
|
+
const weekStart = /* @__PURE__ */ new Date();
|
|
15559
|
+
weekStart.setDate(weekStart.getDate() - weekStart.getDay() + (props2.firstDayOfWeek === WEEK_START_DAY.MONDAY ? 1 : 0));
|
|
15560
|
+
return Array.from({ length: 7 }, (_2, i2) => {
|
|
15561
|
+
const day = new Date(weekStart);
|
|
15562
|
+
day.setDate(weekStart.getDate() + i2);
|
|
15563
|
+
return time.getLocalizedNameOfWeekday(day, "short");
|
|
15564
|
+
});
|
|
15565
|
+
});
|
|
15566
|
+
function isDateDisabled(date2) {
|
|
15567
|
+
if (!date2) return true;
|
|
15568
|
+
const minDate = props2.min ? new Date(props2.min) : null;
|
|
15569
|
+
const maxDate = props2.max ? new Date(props2.max) : null;
|
|
15570
|
+
if (minDate && date2 < minDate) return true;
|
|
15571
|
+
if (maxDate && date2 > maxDate) return true;
|
|
15572
|
+
return false;
|
|
15573
|
+
}
|
|
15574
|
+
function isYearDisabled(year) {
|
|
15575
|
+
const minDate = props2.min ? new Date(props2.min) : null;
|
|
15576
|
+
const maxDate = props2.max ? new Date(props2.max) : null;
|
|
15577
|
+
if (minDate && year < minDate.getFullYear()) return true;
|
|
15578
|
+
if (maxDate && year > maxDate.getFullYear()) return true;
|
|
15579
|
+
return false;
|
|
15580
|
+
}
|
|
15581
|
+
function selectMonth(monthIndex) {
|
|
15582
|
+
currentMonth.value = new Date(currentMonth.value.getFullYear(), monthIndex, 1);
|
|
15583
|
+
currentView.value = "days";
|
|
15584
|
+
}
|
|
15585
|
+
function selectYear(year) {
|
|
15586
|
+
currentMonth.value = new Date(year, currentMonth.value.getMonth(), 1);
|
|
15587
|
+
currentView.value = "months";
|
|
15588
|
+
}
|
|
15589
|
+
function previousMonth() {
|
|
15590
|
+
currentMonth.value = new Date(currentMonth.value.getFullYear(), currentMonth.value.getMonth() - 1, 1);
|
|
15591
|
+
}
|
|
15592
|
+
function nextMonth() {
|
|
15593
|
+
currentMonth.value = new Date(currentMonth.value.getFullYear(), currentMonth.value.getMonth() + 1, 1);
|
|
15594
|
+
}
|
|
15595
|
+
function previousYear() {
|
|
15596
|
+
const offset2 = currentView.value === "months" ? 1 : 21;
|
|
15597
|
+
currentMonth.value = new Date(currentMonth.value.getFullYear() - offset2, currentMonth.value.getMonth(), 1);
|
|
15598
|
+
}
|
|
15599
|
+
function nextYear() {
|
|
15600
|
+
const offset2 = currentView.value === "months" ? 1 : 21;
|
|
15601
|
+
currentMonth.value = new Date(currentMonth.value.getFullYear() + offset2, currentMonth.value.getMonth(), 1);
|
|
15602
|
+
}
|
|
15603
|
+
function selectDate(date2) {
|
|
15604
|
+
var _a2, _b;
|
|
15605
|
+
if (!date2 || !props2.editMode) return;
|
|
15606
|
+
const newDate = new Date(date2.getFullYear(), date2.getMonth(), date2.getDate());
|
|
15607
|
+
if (props2.enableTime) {
|
|
15608
|
+
const currentHours = ((_a2 = selectedDate.value) == null ? void 0 : _a2.getHours()) ?? (/* @__PURE__ */ new Date()).getHours();
|
|
15609
|
+
const currentMinutes = ((_b = selectedDate.value) == null ? void 0 : _b.getMinutes()) ?? (/* @__PURE__ */ new Date()).getMinutes();
|
|
15610
|
+
newDate.setHours(currentHours);
|
|
15611
|
+
newDate.setMinutes(currentMinutes);
|
|
15612
|
+
emit2("update:modelValue", newDate.toISOString());
|
|
15613
|
+
} else {
|
|
15614
|
+
newDate.setUTCHours(0, 0, 0, 0);
|
|
15615
|
+
emit2("update:modelValue", newDate.toISOString().split("T")[0]);
|
|
15616
|
+
isOpen.value = false;
|
|
15617
|
+
}
|
|
15618
|
+
}
|
|
15619
|
+
const hours = vue.computed(() => {
|
|
15620
|
+
var _a2;
|
|
15621
|
+
return ((_a2 = selectedDate.value) == null ? void 0 : _a2.getHours()) ?? 0;
|
|
15622
|
+
});
|
|
15623
|
+
const minutes = vue.computed(() => {
|
|
15624
|
+
var _a2;
|
|
15625
|
+
return ((_a2 = selectedDate.value) == null ? void 0 : _a2.getMinutes()) ?? 0;
|
|
15626
|
+
});
|
|
15627
|
+
function handleHourInput(value) {
|
|
15628
|
+
if (!selectedDate.value) return;
|
|
15629
|
+
const newDate = new Date(selectedDate.value);
|
|
15630
|
+
newDate.setHours(value);
|
|
15631
|
+
emit2("update:modelValue", newDate.toISOString());
|
|
15632
|
+
}
|
|
15633
|
+
function handleMinuteInput(value) {
|
|
15634
|
+
if (!selectedDate.value) return;
|
|
15635
|
+
const newDate = new Date(selectedDate.value);
|
|
15636
|
+
newDate.setMinutes(value);
|
|
15637
|
+
emit2("update:modelValue", newDate.toISOString());
|
|
15638
|
+
}
|
|
15639
|
+
function isSelected(date2) {
|
|
15640
|
+
if (!date2 || !selectedDate.value) return false;
|
|
15641
|
+
return date2.toISOString().split("T")[0] === selectedDate.value.toISOString().split("T")[0];
|
|
15642
|
+
}
|
|
15643
|
+
function isToday(date2) {
|
|
15644
|
+
if (!date2) return false;
|
|
15645
|
+
return time.dateIsToday(date2);
|
|
15646
|
+
}
|
|
15647
|
+
const timezoneDisplay = vue.computed(() => {
|
|
15648
|
+
if (!props2.enableTime) return "";
|
|
15649
|
+
try {
|
|
15650
|
+
return (/* @__PURE__ */ new Date()).toLocaleString("en-US", {
|
|
15651
|
+
timeZoneName: "short",
|
|
15652
|
+
timeZone: props2.timezone
|
|
15653
|
+
}).split(" ").pop();
|
|
15654
|
+
} catch {
|
|
15655
|
+
return "UTC";
|
|
15656
|
+
}
|
|
15657
|
+
});
|
|
15658
|
+
function isNotInMonth(date2) {
|
|
15659
|
+
return time.isTrailingOrLeadingDate(date2, currentMonth.value.getMonth());
|
|
15660
|
+
}
|
|
15661
|
+
return (_ctx, _cache) => {
|
|
15662
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
15663
|
+
class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
15664
|
+
title: _ctx.label
|
|
15665
|
+
}, [
|
|
15666
|
+
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$t, [
|
|
15667
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.label) + " ", 1),
|
|
15668
|
+
_ctx.required ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$o, "*")) : vue.createCommentVNode("", true)
|
|
15669
|
+
])) : vue.createCommentVNode("", true),
|
|
15670
|
+
vue.createVNode(vue.unref(_sfc_main$V), {
|
|
15671
|
+
shown: vue.unref(isOpen),
|
|
15672
|
+
placement: "bottom-start",
|
|
15673
|
+
onApplyShow: _cache[4] || (_cache[4] = ($event) => vue.isRef(isOpen) ? isOpen.value = true : isOpen = true),
|
|
15674
|
+
onApplyHide: _cache[5] || (_cache[5] = ($event) => vue.isRef(isOpen) ? isOpen.value = false : isOpen = false)
|
|
15675
|
+
}, {
|
|
15676
|
+
trigger: vue.withCtx(() => [
|
|
15677
|
+
vue.createElementVNode("div", _hoisted_4$g, [
|
|
15678
|
+
vue.createVNode(vue.unref(TextInput), {
|
|
15679
|
+
modelValue: formattedDisplayValue.value,
|
|
15680
|
+
icon: "calendar",
|
|
15681
|
+
min: formattedMin.value,
|
|
15682
|
+
max: formattedMax.value,
|
|
15683
|
+
required: _ctx.required,
|
|
15684
|
+
disabled: !_ctx.editMode,
|
|
15685
|
+
class: vue.normalizeClass(["date-input", {
|
|
15686
|
+
"txt-center": _ctx.center
|
|
15687
|
+
}]),
|
|
15688
|
+
readonly: "",
|
|
15689
|
+
onClick: _cache[0] || (_cache[0] = ($event) => vue.isRef(isOpen) ? isOpen.value = true : isOpen = true)
|
|
15690
|
+
}, null, 8, ["modelValue", "min", "max", "required", "disabled", "class"])
|
|
15691
|
+
])
|
|
15692
|
+
]),
|
|
15693
|
+
default: vue.withCtx(() => [
|
|
15694
|
+
vue.createElementVNode("div", _hoisted_5$f, [
|
|
15695
|
+
vue.createElementVNode("div", _hoisted_6$c, [
|
|
15696
|
+
vue.createElementVNode("div", _hoisted_7$9, [
|
|
15697
|
+
vue.unref(currentView) === "days" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
15698
|
+
vue.createVNode(vue.unref(Btn), {
|
|
15699
|
+
flat: "",
|
|
15700
|
+
icon: "chevron_left",
|
|
15701
|
+
onClick: previousMonth
|
|
15702
|
+
}),
|
|
15703
|
+
vue.createElementVNode("div", _hoisted_8$6, [
|
|
15704
|
+
vue.createVNode(vue.unref(Btn), {
|
|
15705
|
+
flat: "",
|
|
15706
|
+
class: "month-btn",
|
|
15707
|
+
onClick: _cache[1] || (_cache[1] = ($event) => vue.isRef(currentView) ? currentView.value = "months" : currentView = "months")
|
|
15708
|
+
}, {
|
|
15709
|
+
default: vue.withCtx(() => [
|
|
15710
|
+
vue.createTextVNode(vue.toDisplayString(currentMonthValue.value.formatted.month), 1)
|
|
15711
|
+
]),
|
|
15712
|
+
_: 1
|
|
15713
|
+
}),
|
|
15714
|
+
vue.createVNode(vue.unref(Btn), {
|
|
15715
|
+
flat: "",
|
|
15716
|
+
class: "year-btn",
|
|
15717
|
+
onClick: _cache[2] || (_cache[2] = ($event) => vue.isRef(currentView) ? currentView.value = "years" : currentView = "years")
|
|
15718
|
+
}, {
|
|
15719
|
+
default: vue.withCtx(() => [
|
|
15720
|
+
vue.createTextVNode(vue.toDisplayString(currentMonthValue.value.formatted.year), 1)
|
|
15721
|
+
]),
|
|
15722
|
+
_: 1
|
|
15723
|
+
})
|
|
15724
|
+
]),
|
|
15725
|
+
vue.createVNode(vue.unref(Btn), {
|
|
15726
|
+
flat: "",
|
|
15727
|
+
icon: "chevron_right",
|
|
15728
|
+
onClick: nextMonth
|
|
15729
|
+
})
|
|
15730
|
+
], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
15731
|
+
vue.createVNode(vue.unref(Btn), {
|
|
15732
|
+
flat: "",
|
|
15733
|
+
icon: "chevron_left",
|
|
15734
|
+
onClick: previousYear
|
|
15735
|
+
}),
|
|
15736
|
+
vue.createElementVNode("span", _hoisted_9$5, vue.toDisplayString(currentMonthValue.value.formatted.year), 1),
|
|
15737
|
+
vue.createVNode(vue.unref(Btn), {
|
|
15738
|
+
flat: "",
|
|
15739
|
+
icon: "chevron_right",
|
|
15740
|
+
onClick: nextYear
|
|
15741
|
+
})
|
|
15742
|
+
], 64))
|
|
15743
|
+
]),
|
|
15744
|
+
vue.unref(currentView) === "days" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_10$5, [
|
|
15745
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(weekDays.value, (day) => {
|
|
15746
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
15747
|
+
key: day,
|
|
15748
|
+
class: "txt-center txt-12 opacity-6"
|
|
15749
|
+
}, vue.toDisplayString(day), 1);
|
|
15750
|
+
}), 128)),
|
|
15751
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(currentMonthDays.value, (date2) => {
|
|
15752
|
+
return vue.openBlock(), vue.createElementBlock("button", {
|
|
15753
|
+
key: date2 == null ? void 0 : date2.toISOString(),
|
|
15754
|
+
type: "button",
|
|
15755
|
+
class: vue.normalizeClass(["day aspect-ratio-1 flex align-items-center justify-content-center pointer round txt14 p-0", {
|
|
15756
|
+
"selected": isSelected(date2),
|
|
15757
|
+
"today": isToday(date2),
|
|
15758
|
+
"disabled": isDateDisabled(date2),
|
|
15759
|
+
"not-in-month": isNotInMonth(date2)
|
|
15760
|
+
}]),
|
|
15761
|
+
disabled: isDateDisabled(date2),
|
|
15762
|
+
onClick: ($event) => selectDate(date2)
|
|
15763
|
+
}, vue.toDisplayString(date2 == null ? void 0 : date2.getDate()), 11, _hoisted_11$5);
|
|
15764
|
+
}), 128))
|
|
15765
|
+
])) : vue.unref(currentView) === "months" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_12$5, [
|
|
15766
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(months.value, (month) => {
|
|
15767
|
+
return vue.openBlock(), vue.createElementBlock("button", {
|
|
15768
|
+
key: month.value,
|
|
15769
|
+
class: vue.normalizeClass(["month-item flex align-items-center justify-content-center pointer rounded p-05 txt14 border-none", {
|
|
15770
|
+
selected: month.value === currentMonthValue.value.month,
|
|
15771
|
+
disabled: month.disabled
|
|
15772
|
+
}]),
|
|
15773
|
+
disabled: month.disabled,
|
|
15774
|
+
onClick: ($event) => selectMonth(month.value)
|
|
15775
|
+
}, vue.toDisplayString(month.name), 11, _hoisted_13$4);
|
|
15776
|
+
}), 128))
|
|
15777
|
+
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_14$4, [
|
|
15778
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(years.value, (year) => {
|
|
15779
|
+
return vue.openBlock(), vue.createElementBlock("button", {
|
|
15780
|
+
key: year.value,
|
|
15781
|
+
class: vue.normalizeClass(["year-item flex align-items-center justify-content-center pointer rounded p-05 txt14 border-none", {
|
|
15782
|
+
selected: year.value === currentMonthValue.value.year,
|
|
15783
|
+
disabled: year.disabled
|
|
15784
|
+
}]),
|
|
15785
|
+
disabled: year.disabled,
|
|
15786
|
+
onClick: ($event) => selectYear(year.value)
|
|
15787
|
+
}, vue.toDisplayString(year.value), 11, _hoisted_15$4);
|
|
15788
|
+
}), 128))
|
|
15789
|
+
]))
|
|
15790
|
+
]),
|
|
15791
|
+
_ctx.enableTime && vue.unref(currentView) === "days" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16$4, [
|
|
15792
|
+
vue.createElementVNode("div", _hoisted_17$4, [
|
|
15793
|
+
vue.createVNode(vue.unref(NumberInput), {
|
|
15794
|
+
center: "",
|
|
15795
|
+
"model-value": hours.value,
|
|
15796
|
+
disabled: !selectedDate.value,
|
|
15797
|
+
min: 0,
|
|
15798
|
+
max: 23,
|
|
15799
|
+
layout: "vertical",
|
|
15800
|
+
padZero: 2,
|
|
15801
|
+
"onUpdate:modelValue": handleHourInput
|
|
15802
|
+
}, null, 8, ["model-value", "disabled"]),
|
|
15803
|
+
_cache[6] || (_cache[6] = vue.createElementVNode("p", { class: "pb-075" }, " : ", -1)),
|
|
15804
|
+
vue.createVNode(vue.unref(NumberInput), {
|
|
15805
|
+
center: "",
|
|
15806
|
+
"model-value": minutes.value,
|
|
15807
|
+
disabled: !selectedDate.value,
|
|
15808
|
+
min: 0,
|
|
15809
|
+
max: 59,
|
|
15810
|
+
padZero: 2,
|
|
15811
|
+
layout: "vertical",
|
|
15812
|
+
"onUpdate:modelValue": handleMinuteInput
|
|
15813
|
+
}, null, 8, ["model-value", "disabled"])
|
|
15814
|
+
]),
|
|
15815
|
+
vue.createElementVNode("span", _hoisted_18$2, vue.toDisplayString(timezoneDisplay.value), 1),
|
|
15816
|
+
selectedDate.value ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
|
|
15817
|
+
key: 0,
|
|
15818
|
+
flat: "",
|
|
15819
|
+
onClick: _cache[3] || (_cache[3] = ($event) => vue.isRef(isOpen) ? isOpen.value = false : isOpen = false)
|
|
15820
|
+
}, {
|
|
15821
|
+
default: vue.withCtx(() => _cache[7] || (_cache[7] = [
|
|
15822
|
+
vue.createTextVNode(" Done ")
|
|
15823
|
+
])),
|
|
15824
|
+
_: 1
|
|
15825
|
+
})) : vue.createCommentVNode("", true)
|
|
15826
|
+
])) : vue.createCommentVNode("", true)
|
|
15827
|
+
])
|
|
15828
|
+
]),
|
|
15829
|
+
_: 1
|
|
15830
|
+
}, 8, ["shown"])
|
|
15831
|
+
], 10, _hoisted_1$F);
|
|
15832
|
+
};
|
|
15833
|
+
}
|
|
15834
|
+
});
|
|
15835
|
+
const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-a2f98d6e"]]);
|
|
15836
|
+
const _hoisted_1$E = ["title"];
|
|
15837
|
+
const _hoisted_2$s = { key: 0 };
|
|
15838
|
+
const _hoisted_3$n = {
|
|
15839
|
+
key: 0,
|
|
15840
|
+
class: "required"
|
|
15841
|
+
};
|
|
15842
|
+
const _hoisted_4$f = { class: "date-picker-container" };
|
|
15843
|
+
const _hoisted_5$e = ["value", "min", "max", "required", "disabled"];
|
|
15844
|
+
const _hoisted_6$b = { class: "flex gap-075 p-05 m_flex-wrap calendar-container justify-content-center h-100p" };
|
|
15845
|
+
const _hoisted_7$8 = { class: "calendar-section m_border-none pe-05 m_p-0" };
|
|
15846
|
+
const _hoisted_8$5 = { class: "flex space-between pb-1" };
|
|
15847
|
+
const _hoisted_9$4 = { class: "flex gap-05" };
|
|
15848
|
+
const _hoisted_10$4 = { class: "month-year" };
|
|
15849
|
+
const _hoisted_11$4 = {
|
|
15850
|
+
key: 0,
|
|
15851
|
+
class: "calendar-grid grid gap-025"
|
|
15852
|
+
};
|
|
15853
|
+
const _hoisted_12$4 = ["disabled", "onClick"];
|
|
15854
|
+
const _hoisted_13$3 = {
|
|
15855
|
+
key: 1,
|
|
15856
|
+
class: "month-grid grid gap-05 p-05"
|
|
15857
|
+
};
|
|
15858
|
+
const _hoisted_14$3 = ["disabled", "onClick"];
|
|
15859
|
+
const _hoisted_15$3 = {
|
|
15860
|
+
key: 2,
|
|
15861
|
+
class: "year-grid grid gap-05 p-0"
|
|
15862
|
+
};
|
|
15863
|
+
const _hoisted_16$3 = ["disabled", "onClick"];
|
|
15864
|
+
const _hoisted_17$3 = {
|
|
15865
|
+
key: 0,
|
|
15866
|
+
class: "time-picker border-start flex column gap-1 w-120px"
|
|
15867
|
+
};
|
|
15868
|
+
const _hoisted_18$1 = { class: "flex gap-025" };
|
|
15869
|
+
const _hoisted_19$1 = { class: "txt-center opacity-6 txt14" };
|
|
15870
|
+
const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
15871
|
+
__name: "DatePick",
|
|
15872
|
+
props: {
|
|
15873
|
+
required: { type: Boolean },
|
|
15874
|
+
label: {},
|
|
15875
|
+
editMode: { type: Boolean, default: true },
|
|
15876
|
+
small: { type: Boolean, default: false },
|
|
15877
|
+
enableTime: { type: Boolean, default: false },
|
|
15878
|
+
modelValue: {},
|
|
15879
|
+
min: {},
|
|
15880
|
+
max: {},
|
|
15881
|
+
timezone: { default: "UTC" },
|
|
15882
|
+
mode: { default: "day" },
|
|
15883
|
+
firstDayOfWeek: { default: WEEK_START_DAY.MONDAY },
|
|
15884
|
+
locale: { default: "" },
|
|
15885
|
+
center: { type: Boolean }
|
|
15886
|
+
},
|
|
15887
|
+
emits: ["update:modelValue"],
|
|
15888
|
+
setup(__props, { emit: __emit }) {
|
|
15889
|
+
const props2 = __props;
|
|
15890
|
+
const emit2 = __emit;
|
|
15891
|
+
let isOpen = vue.ref(false);
|
|
15892
|
+
let currentMonth = vue.ref(/* @__PURE__ */ new Date());
|
|
15893
|
+
let currentView = vue.ref("days");
|
|
15894
|
+
const time = new Time(props2.firstDayOfWeek, props2.locale);
|
|
15895
|
+
function formatDisplayDate(date2) {
|
|
15896
|
+
if (!date2) return "";
|
|
15897
|
+
const dateObj = typeof date2 === "string" ? new Date(date2) : date2;
|
|
15898
|
+
if (props2.enableTime) {
|
|
15899
|
+
return dateObj.toLocaleString(props2.locale || void 0, {
|
|
15900
|
+
year: "numeric",
|
|
15901
|
+
month: "short",
|
|
15902
|
+
day: "numeric",
|
|
15903
|
+
hour: "2-digit",
|
|
15904
|
+
minute: "2-digit",
|
|
15905
|
+
timeZone: props2.timezone
|
|
15906
|
+
});
|
|
15907
|
+
}
|
|
15908
|
+
return dateObj.toLocaleString(props2.locale || void 0, {
|
|
15909
|
+
year: "numeric",
|
|
15910
|
+
month: "short",
|
|
15911
|
+
day: "numeric",
|
|
15912
|
+
timeZone: props2.timezone
|
|
15913
|
+
});
|
|
15914
|
+
}
|
|
15915
|
+
function formatDate(date2) {
|
|
15916
|
+
if (!date2) return "";
|
|
15917
|
+
const dateObj = typeof date2 === "string" ? new Date(date2) : date2;
|
|
15918
|
+
return props2.enableTime ? dateObj.toISOString().slice(0, 16) : dateObj.toISOString().split("T")[0];
|
|
15919
|
+
}
|
|
15920
|
+
const formattedDisplayValue = vue.computed(() => formatDisplayDate(props2.modelValue));
|
|
15921
|
+
const formattedMin = vue.computed(() => formatDate(props2.min));
|
|
15922
|
+
const formattedMax = vue.computed(() => formatDate(props2.max));
|
|
15923
|
+
const selectedDate = vue.computed(() => {
|
|
15924
|
+
if (!props2.modelValue) return null;
|
|
15925
|
+
return typeof props2.modelValue === "string" ? new Date(props2.modelValue) : props2.modelValue;
|
|
15926
|
+
});
|
|
15927
|
+
const currentMonthDays = vue.computed(() => {
|
|
15928
|
+
const year = currentMonth.value.getFullYear();
|
|
15929
|
+
const month = currentMonth.value.getMonth();
|
|
15930
|
+
return time.getCalendarMonthSplitInWeeks(year, month).flat();
|
|
15931
|
+
});
|
|
15932
|
+
const currentMonthValue = vue.computed(() => ({
|
|
15933
|
+
month: currentMonth.value.getMonth(),
|
|
15934
|
+
year: currentMonth.value.getFullYear(),
|
|
15935
|
+
formatted: {
|
|
15936
|
+
month: time.getLocalizedNameOfMonth(currentMonth.value, "long"),
|
|
15937
|
+
year: time.getLocalizedDateString(currentMonth.value).split("/").pop()
|
|
15938
|
+
// Get just the year part
|
|
15939
|
+
}
|
|
15940
|
+
}));
|
|
15941
|
+
const months = vue.computed(() => Array.from({ length: 12 }, (_2, i2) => {
|
|
15942
|
+
const date2 = new Date(currentMonthValue.value.year, i2, 1);
|
|
15943
|
+
return {
|
|
15944
|
+
name: time.getLocalizedNameOfMonth(date2, "short"),
|
|
15945
|
+
value: i2,
|
|
15946
|
+
disabled: isDateDisabled(date2)
|
|
15947
|
+
};
|
|
15948
|
+
}));
|
|
15949
|
+
const years = vue.computed(() => {
|
|
15950
|
+
const startYear = currentMonthValue.value.year - 10;
|
|
15951
|
+
return Array.from({ length: 21 }, (_2, i2) => ({
|
|
15952
|
+
value: startYear + i2,
|
|
15953
|
+
disabled: isYearDisabled(startYear + i2)
|
|
15954
|
+
}));
|
|
15955
|
+
});
|
|
15956
|
+
const weekDays = vue.computed(() => {
|
|
15957
|
+
const weekStart = /* @__PURE__ */ new Date();
|
|
15958
|
+
weekStart.setDate(weekStart.getDate() - weekStart.getDay() + (props2.firstDayOfWeek === WEEK_START_DAY.MONDAY ? 1 : 0));
|
|
15959
|
+
return Array.from({ length: 7 }, (_2, i2) => {
|
|
15960
|
+
const day = new Date(weekStart);
|
|
15961
|
+
day.setDate(weekStart.getDate() + i2);
|
|
15962
|
+
return time.getLocalizedNameOfWeekday(day, "short");
|
|
15963
|
+
});
|
|
15964
|
+
});
|
|
15965
|
+
function isDateDisabled(date2) {
|
|
15966
|
+
if (!date2) return true;
|
|
15967
|
+
const minDate = props2.min ? new Date(props2.min) : null;
|
|
15968
|
+
const maxDate = props2.max ? new Date(props2.max) : null;
|
|
15969
|
+
if (minDate && date2 < minDate) return true;
|
|
15970
|
+
if (maxDate && date2 > maxDate) return true;
|
|
15971
|
+
return false;
|
|
15972
|
+
}
|
|
15973
|
+
function isYearDisabled(year) {
|
|
15974
|
+
const minDate = props2.min ? new Date(props2.min) : null;
|
|
15975
|
+
const maxDate = props2.max ? new Date(props2.max) : null;
|
|
15976
|
+
if (minDate && year < minDate.getFullYear()) return true;
|
|
15977
|
+
if (maxDate && year > maxDate.getFullYear()) return true;
|
|
15978
|
+
return false;
|
|
15979
|
+
}
|
|
15980
|
+
function selectMonth(monthIndex) {
|
|
15981
|
+
currentMonth.value = new Date(currentMonth.value.getFullYear(), monthIndex, 1);
|
|
15982
|
+
currentView.value = "days";
|
|
15983
|
+
}
|
|
15984
|
+
function selectYear(year) {
|
|
15985
|
+
currentMonth.value = new Date(year, currentMonth.value.getMonth(), 1);
|
|
15986
|
+
currentView.value = "months";
|
|
15987
|
+
}
|
|
15988
|
+
function previousMonth() {
|
|
15989
|
+
currentMonth.value = new Date(currentMonth.value.getFullYear(), currentMonth.value.getMonth() - 1, 1);
|
|
15990
|
+
}
|
|
15991
|
+
function nextMonth() {
|
|
15992
|
+
currentMonth.value = new Date(currentMonth.value.getFullYear(), currentMonth.value.getMonth() + 1, 1);
|
|
15993
|
+
}
|
|
15994
|
+
function previousYear() {
|
|
15995
|
+
const offset2 = currentView.value === "months" ? 1 : 21;
|
|
15996
|
+
currentMonth.value = new Date(currentMonth.value.getFullYear() - offset2, currentMonth.value.getMonth(), 1);
|
|
15997
|
+
}
|
|
15998
|
+
function nextYear() {
|
|
15999
|
+
const offset2 = currentView.value === "months" ? 1 : 21;
|
|
16000
|
+
currentMonth.value = new Date(currentMonth.value.getFullYear() + offset2, currentMonth.value.getMonth(), 1);
|
|
16001
|
+
}
|
|
16002
|
+
function selectDate(date2) {
|
|
16003
|
+
var _a2, _b;
|
|
16004
|
+
if (!date2 || !props2.editMode) return;
|
|
16005
|
+
const newDate = new Date(date2.getFullYear(), date2.getMonth(), date2.getDate(), 0, 0, 0);
|
|
16006
|
+
if (props2.enableTime) {
|
|
16007
|
+
const currentHours = ((_a2 = selectedDate.value) == null ? void 0 : _a2.getHours()) ?? (/* @__PURE__ */ new Date()).getHours();
|
|
16008
|
+
const currentMinutes = ((_b = selectedDate.value) == null ? void 0 : _b.getMinutes()) ?? (/* @__PURE__ */ new Date()).getMinutes();
|
|
16009
|
+
newDate.setHours(currentHours);
|
|
16010
|
+
newDate.setMinutes(currentMinutes);
|
|
16011
|
+
} else {
|
|
16012
|
+
isOpen.value = false;
|
|
16013
|
+
}
|
|
16014
|
+
emit2("update:modelValue", newDate);
|
|
16015
|
+
}
|
|
16016
|
+
const hours = vue.computed(() => {
|
|
16017
|
+
var _a2;
|
|
16018
|
+
return ((_a2 = selectedDate.value) == null ? void 0 : _a2.getHours()) ?? 0;
|
|
16019
|
+
});
|
|
16020
|
+
const minutes = vue.computed(() => {
|
|
16021
|
+
var _a2;
|
|
16022
|
+
return ((_a2 = selectedDate.value) == null ? void 0 : _a2.getMinutes()) ?? 0;
|
|
16023
|
+
});
|
|
16024
|
+
function handleHourInput(value) {
|
|
16025
|
+
if (!selectedDate.value) return;
|
|
16026
|
+
const newDate = new Date(selectedDate.value);
|
|
16027
|
+
newDate.setHours(value);
|
|
16028
|
+
emit2("update:modelValue", newDate.toISOString());
|
|
16029
|
+
}
|
|
16030
|
+
function handleMinuteInput(value) {
|
|
16031
|
+
if (!selectedDate.value) return;
|
|
16032
|
+
const newDate = new Date(selectedDate.value);
|
|
16033
|
+
newDate.setMinutes(value);
|
|
16034
|
+
emit2("update:modelValue", newDate.toISOString());
|
|
16035
|
+
}
|
|
16036
|
+
function isSelected(date2) {
|
|
16037
|
+
if (!date2 || !selectedDate.value) return false;
|
|
16038
|
+
return date2.toISOString().split("T")[0] === selectedDate.value.toISOString().split("T")[0];
|
|
16039
|
+
}
|
|
16040
|
+
function isToday(date2) {
|
|
16041
|
+
if (!date2) return false;
|
|
16042
|
+
return time.dateIsToday(date2);
|
|
16043
|
+
}
|
|
16044
|
+
const timezoneDisplay = vue.computed(() => {
|
|
16045
|
+
if (!props2.enableTime) return "";
|
|
16046
|
+
try {
|
|
16047
|
+
return (/* @__PURE__ */ new Date()).toLocaleString("en-US", {
|
|
16048
|
+
timeZoneName: "short",
|
|
16049
|
+
timeZone: props2.timezone
|
|
16050
|
+
}).split(" ").pop();
|
|
16051
|
+
} catch {
|
|
16052
|
+
return "UTC";
|
|
16053
|
+
}
|
|
16054
|
+
});
|
|
16055
|
+
function isNotInMonth(date2) {
|
|
16056
|
+
return time.isTrailingOrLeadingDate(date2, currentMonth.value.getMonth());
|
|
16057
|
+
}
|
|
16058
|
+
return (_ctx, _cache) => {
|
|
16059
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
16060
|
+
class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
16061
|
+
title: _ctx.label
|
|
16062
|
+
}, [
|
|
16063
|
+
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$s, [
|
|
16064
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.label) + " ", 1),
|
|
16065
|
+
_ctx.required ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$n, "*")) : vue.createCommentVNode("", true)
|
|
16066
|
+
])) : vue.createCommentVNode("", true),
|
|
16067
|
+
vue.createVNode(vue.unref(_sfc_main$V), {
|
|
16068
|
+
shown: vue.unref(isOpen),
|
|
16069
|
+
placement: "bottom-start",
|
|
16070
|
+
onApplyShow: _cache[4] || (_cache[4] = ($event) => vue.isRef(isOpen) ? isOpen.value = true : isOpen = true),
|
|
16071
|
+
onApplyHide: _cache[5] || (_cache[5] = ($event) => vue.isRef(isOpen) ? isOpen.value = false : isOpen = false)
|
|
16072
|
+
}, {
|
|
16073
|
+
trigger: vue.withCtx(() => [
|
|
16074
|
+
vue.createElementVNode("div", _hoisted_4$f, [
|
|
16075
|
+
vue.createElementVNode("input", {
|
|
16076
|
+
type: "text",
|
|
16077
|
+
value: formattedDisplayValue.value,
|
|
16078
|
+
min: formattedMin.value,
|
|
16079
|
+
max: formattedMax.value,
|
|
16080
|
+
required: _ctx.required,
|
|
16081
|
+
disabled: !_ctx.editMode,
|
|
16082
|
+
class: vue.normalizeClass(["date-input", {
|
|
16083
|
+
"txt-center": _ctx.center
|
|
16084
|
+
}]),
|
|
16085
|
+
readonly: "",
|
|
16086
|
+
onClick: _cache[0] || (_cache[0] = ($event) => vue.isRef(isOpen) ? isOpen.value = true : isOpen = true)
|
|
16087
|
+
}, null, 10, _hoisted_5$e)
|
|
16088
|
+
])
|
|
16089
|
+
]),
|
|
16090
|
+
default: vue.withCtx(() => [
|
|
16091
|
+
vue.createElementVNode("div", _hoisted_6$b, [
|
|
16092
|
+
vue.createElementVNode("div", _hoisted_7$8, [
|
|
16093
|
+
vue.createElementVNode("div", _hoisted_8$5, [
|
|
16094
|
+
vue.unref(currentView) === "days" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
16095
|
+
vue.createVNode(vue.unref(Btn), {
|
|
16096
|
+
flat: "",
|
|
16097
|
+
icon: "chevron_left",
|
|
16098
|
+
onClick: previousMonth
|
|
16099
|
+
}),
|
|
16100
|
+
vue.createElementVNode("div", _hoisted_9$4, [
|
|
16101
|
+
vue.createVNode(vue.unref(Btn), {
|
|
16102
|
+
flat: "",
|
|
16103
|
+
class: "month-btn",
|
|
16104
|
+
onClick: _cache[1] || (_cache[1] = ($event) => vue.isRef(currentView) ? currentView.value = "months" : currentView = "months")
|
|
16105
|
+
}, {
|
|
16106
|
+
default: vue.withCtx(() => [
|
|
16107
|
+
vue.createTextVNode(vue.toDisplayString(currentMonthValue.value.formatted.month), 1)
|
|
16108
|
+
]),
|
|
16109
|
+
_: 1
|
|
16110
|
+
}),
|
|
16111
|
+
vue.createVNode(vue.unref(Btn), {
|
|
16112
|
+
flat: "",
|
|
16113
|
+
class: "year-btn",
|
|
16114
|
+
onClick: _cache[2] || (_cache[2] = ($event) => vue.isRef(currentView) ? currentView.value = "years" : currentView = "years")
|
|
16115
|
+
}, {
|
|
16116
|
+
default: vue.withCtx(() => [
|
|
16117
|
+
vue.createTextVNode(vue.toDisplayString(currentMonthValue.value.formatted.year), 1)
|
|
16118
|
+
]),
|
|
16119
|
+
_: 1
|
|
16120
|
+
})
|
|
16121
|
+
]),
|
|
16122
|
+
vue.createVNode(vue.unref(Btn), {
|
|
16123
|
+
flat: "",
|
|
16124
|
+
icon: "chevron_right",
|
|
16125
|
+
onClick: nextMonth
|
|
16126
|
+
})
|
|
16127
|
+
], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
16128
|
+
vue.createVNode(vue.unref(Btn), {
|
|
16129
|
+
flat: "",
|
|
16130
|
+
icon: "chevron_left",
|
|
16131
|
+
onClick: previousYear
|
|
16132
|
+
}),
|
|
16133
|
+
vue.createElementVNode("span", _hoisted_10$4, vue.toDisplayString(currentMonthValue.value.formatted.year), 1),
|
|
16134
|
+
vue.createVNode(vue.unref(Btn), {
|
|
16135
|
+
flat: "",
|
|
16136
|
+
icon: "chevron_right",
|
|
16137
|
+
onClick: nextYear
|
|
16138
|
+
})
|
|
16139
|
+
], 64))
|
|
16140
|
+
]),
|
|
16141
|
+
vue.unref(currentView) === "days" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_11$4, [
|
|
16142
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(weekDays.value, (day) => {
|
|
16143
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
16144
|
+
key: day,
|
|
16145
|
+
class: "txt-center txt-12 opacity-6"
|
|
16146
|
+
}, vue.toDisplayString(day), 1);
|
|
16147
|
+
}), 128)),
|
|
16148
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(currentMonthDays.value, (date2) => {
|
|
16149
|
+
return vue.openBlock(), vue.createElementBlock("button", {
|
|
16150
|
+
key: date2 == null ? void 0 : date2.toISOString(),
|
|
16151
|
+
type: "button",
|
|
16152
|
+
class: vue.normalizeClass(["day aspect-ratio-1 flex align-items-center justify-content-center pointer round txt14 p-0", {
|
|
16153
|
+
"selected": isSelected(date2),
|
|
16154
|
+
"today": isToday(date2),
|
|
16155
|
+
"disabled": isDateDisabled(date2),
|
|
16156
|
+
"not-in-month": isNotInMonth(date2)
|
|
16157
|
+
}]),
|
|
16158
|
+
disabled: isDateDisabled(date2),
|
|
16159
|
+
onClick: ($event) => selectDate(date2)
|
|
16160
|
+
}, vue.toDisplayString(date2 == null ? void 0 : date2.getDate()), 11, _hoisted_12$4);
|
|
16161
|
+
}), 128))
|
|
16162
|
+
])) : vue.unref(currentView) === "months" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_13$3, [
|
|
16163
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(months.value, (month) => {
|
|
16164
|
+
return vue.openBlock(), vue.createElementBlock("button", {
|
|
16165
|
+
key: month.value,
|
|
16166
|
+
class: vue.normalizeClass(["month-item flex align-items-center justify-content-center pointer rounded p-05 txt14 border-none", {
|
|
16167
|
+
selected: month.value === currentMonthValue.value.month,
|
|
16168
|
+
disabled: month.disabled
|
|
16169
|
+
}]),
|
|
16170
|
+
disabled: month.disabled,
|
|
16171
|
+
onClick: ($event) => selectMonth(month.value)
|
|
16172
|
+
}, vue.toDisplayString(month.name), 11, _hoisted_14$3);
|
|
16173
|
+
}), 128))
|
|
16174
|
+
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_15$3, [
|
|
16175
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(years.value, (year) => {
|
|
16176
|
+
return vue.openBlock(), vue.createElementBlock("button", {
|
|
16177
|
+
key: year.value,
|
|
16178
|
+
class: vue.normalizeClass(["year-item flex align-items-center justify-content-center pointer rounded p-05 txt14 border-none", {
|
|
16179
|
+
selected: year.value === currentMonthValue.value.year,
|
|
16180
|
+
disabled: year.disabled
|
|
16181
|
+
}]),
|
|
16182
|
+
disabled: year.disabled,
|
|
16183
|
+
onClick: ($event) => selectYear(year.value)
|
|
16184
|
+
}, vue.toDisplayString(year.value), 11, _hoisted_16$3);
|
|
16185
|
+
}), 128))
|
|
16186
|
+
]))
|
|
16187
|
+
]),
|
|
16188
|
+
_ctx.enableTime && vue.unref(currentView) === "days" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17$3, [
|
|
16189
|
+
vue.createElementVNode("div", _hoisted_18$1, [
|
|
16190
|
+
vue.createVNode(vue.unref(NumberInput), {
|
|
16191
|
+
center: "",
|
|
16192
|
+
"model-value": hours.value,
|
|
16193
|
+
disabled: !selectedDate.value,
|
|
16194
|
+
min: 0,
|
|
16195
|
+
max: 23,
|
|
16196
|
+
layout: "vertical",
|
|
16197
|
+
padZero: 2,
|
|
16198
|
+
"onUpdate:modelValue": handleHourInput
|
|
16199
|
+
}, null, 8, ["model-value", "disabled"]),
|
|
16200
|
+
_cache[6] || (_cache[6] = vue.createElementVNode("p", { class: "pb-075" }, " : ", -1)),
|
|
16201
|
+
vue.createVNode(vue.unref(NumberInput), {
|
|
16202
|
+
center: "",
|
|
16203
|
+
"model-value": minutes.value,
|
|
16204
|
+
disabled: !selectedDate.value,
|
|
16205
|
+
min: 0,
|
|
16206
|
+
max: 59,
|
|
16207
|
+
padZero: 2,
|
|
16208
|
+
layout: "vertical",
|
|
16209
|
+
"onUpdate:modelValue": handleMinuteInput
|
|
16210
|
+
}, null, 8, ["model-value", "disabled"])
|
|
16211
|
+
]),
|
|
16212
|
+
vue.createElementVNode("span", _hoisted_19$1, vue.toDisplayString(timezoneDisplay.value), 1),
|
|
16213
|
+
selectedDate.value ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
|
|
16214
|
+
key: 0,
|
|
16215
|
+
flat: "",
|
|
16216
|
+
onClick: _cache[3] || (_cache[3] = ($event) => vue.isRef(isOpen) ? isOpen.value = false : isOpen = false)
|
|
16217
|
+
}, {
|
|
16218
|
+
default: vue.withCtx(() => _cache[7] || (_cache[7] = [
|
|
16219
|
+
vue.createTextVNode(" Done ")
|
|
16220
|
+
])),
|
|
16221
|
+
_: 1
|
|
16222
|
+
})) : vue.createCommentVNode("", true)
|
|
16223
|
+
])) : vue.createCommentVNode("", true)
|
|
16224
|
+
])
|
|
16225
|
+
]),
|
|
16226
|
+
_: 1
|
|
16227
|
+
}, 8, ["shown"])
|
|
16228
|
+
], 10, _hoisted_1$E);
|
|
16229
|
+
};
|
|
16230
|
+
}
|
|
16231
|
+
});
|
|
16232
|
+
const DatePick = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-c6c8cc7b"]]);
|
|
15434
16233
|
function toDate(argument) {
|
|
15435
16234
|
const argStr = Object.prototype.toString.call(argument);
|
|
15436
16235
|
if (argument instanceof Date || typeof argument === "object" && argStr === "[object Date]") {
|
|
@@ -23985,467 +24784,6 @@ const eo = ({
|
|
|
23985
24784
|
Object.entries(go).forEach(([e, t]) => {
|
|
23986
24785
|
e !== "default" && (Hn[e] = t);
|
|
23987
24786
|
});
|
|
23988
|
-
const _hoisted_1$F = ["title"];
|
|
23989
|
-
const _hoisted_2$t = { key: 0 };
|
|
23990
|
-
const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
23991
|
-
__name: "DateInput",
|
|
23992
|
-
props: {
|
|
23993
|
-
required: { type: Boolean },
|
|
23994
|
-
label: {},
|
|
23995
|
-
editMode: { type: Boolean, default: true },
|
|
23996
|
-
small: { type: Boolean, default: false },
|
|
23997
|
-
enableTime: { type: Boolean, default: false },
|
|
23998
|
-
modelValue: {},
|
|
23999
|
-
defaultValue: {},
|
|
24000
|
-
extraProps: {},
|
|
24001
|
-
allowedDates: {},
|
|
24002
|
-
timePickerInline: { type: Boolean },
|
|
24003
|
-
minutesIncrement: {},
|
|
24004
|
-
minutesGridIncrement: {}
|
|
24005
|
-
},
|
|
24006
|
-
emits: ["update:modelValue"],
|
|
24007
|
-
setup(__props, { emit: __emit }) {
|
|
24008
|
-
const props2 = __props;
|
|
24009
|
-
const emit2 = __emit;
|
|
24010
|
-
const datePicker = vue.ref();
|
|
24011
|
-
const date2 = vue.computed({
|
|
24012
|
-
get: () => props2.modelValue || "",
|
|
24013
|
-
set: (val) => {
|
|
24014
|
-
const d2 = typeof val === "string" ? new Date(val) : val;
|
|
24015
|
-
if (props2.enableTime) {
|
|
24016
|
-
emit2("update:modelValue", d2.toISOString());
|
|
24017
|
-
} else {
|
|
24018
|
-
emit2("update:modelValue", d2.toISOString().split("T")[0]);
|
|
24019
|
-
}
|
|
24020
|
-
}
|
|
24021
|
-
});
|
|
24022
|
-
vue.onMounted(() => {
|
|
24023
|
-
if (props2.defaultValue && date2.value === "") {
|
|
24024
|
-
Object.assign(date2.value, { date: props2.defaultValue });
|
|
24025
|
-
}
|
|
24026
|
-
});
|
|
24027
|
-
return (_ctx, _cache) => {
|
|
24028
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
24029
|
-
class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
24030
|
-
title: _ctx.label
|
|
24031
|
-
}, [
|
|
24032
|
-
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$t, vue.toDisplayString(_ctx.label), 1)) : vue.createCommentVNode("", true),
|
|
24033
|
-
vue.createVNode(vue.unref(Hn), vue.mergeProps({
|
|
24034
|
-
ref_key: "datePicker",
|
|
24035
|
-
ref: datePicker,
|
|
24036
|
-
modelValue: date2.value,
|
|
24037
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => date2.value = $event),
|
|
24038
|
-
required: _ctx.required,
|
|
24039
|
-
"auto-apply": true,
|
|
24040
|
-
"enable-time-picker": _ctx.enableTime,
|
|
24041
|
-
"allowed-dates": _ctx.allowedDates
|
|
24042
|
-
}, _ctx.extraProps, {
|
|
24043
|
-
"time-picker-inline": _ctx.timePickerInline,
|
|
24044
|
-
"minutes-increment": _ctx.minutesIncrement,
|
|
24045
|
-
"minutes-grid-increment": _ctx.minutesGridIncrement,
|
|
24046
|
-
"start-time": { hours: 8, minutes: 0 }
|
|
24047
|
-
}), null, 16, ["modelValue", "required", "enable-time-picker", "allowed-dates", "time-picker-inline", "minutes-increment", "minutes-grid-increment"])
|
|
24048
|
-
], 10, _hoisted_1$F);
|
|
24049
|
-
};
|
|
24050
|
-
}
|
|
24051
|
-
});
|
|
24052
|
-
const _hoisted_1$E = ["title"];
|
|
24053
|
-
const _hoisted_2$s = { key: 0 };
|
|
24054
|
-
const _hoisted_3$n = {
|
|
24055
|
-
key: 0,
|
|
24056
|
-
class: "required"
|
|
24057
|
-
};
|
|
24058
|
-
const _hoisted_4$f = { class: "date-picker-container" };
|
|
24059
|
-
const _hoisted_5$e = ["value", "min", "max", "required", "disabled"];
|
|
24060
|
-
const _hoisted_6$b = { class: "flex gap-075 p-05 m_flex-wrap calendar-container justify-content-center h-100p" };
|
|
24061
|
-
const _hoisted_7$8 = { class: "calendar-section m_border-none pe-05 m_p-0" };
|
|
24062
|
-
const _hoisted_8$5 = { class: "flex space-between pb-1" };
|
|
24063
|
-
const _hoisted_9$4 = { class: "flex gap-05" };
|
|
24064
|
-
const _hoisted_10$4 = { class: "month-year" };
|
|
24065
|
-
const _hoisted_11$4 = {
|
|
24066
|
-
key: 0,
|
|
24067
|
-
class: "calendar-grid grid gap-025"
|
|
24068
|
-
};
|
|
24069
|
-
const _hoisted_12$4 = ["disabled", "onClick"];
|
|
24070
|
-
const _hoisted_13$3 = {
|
|
24071
|
-
key: 1,
|
|
24072
|
-
class: "month-grid grid gap-05 p-05"
|
|
24073
|
-
};
|
|
24074
|
-
const _hoisted_14$3 = ["disabled", "onClick"];
|
|
24075
|
-
const _hoisted_15$3 = {
|
|
24076
|
-
key: 2,
|
|
24077
|
-
class: "year-grid grid gap-05 p-0"
|
|
24078
|
-
};
|
|
24079
|
-
const _hoisted_16$3 = ["disabled", "onClick"];
|
|
24080
|
-
const _hoisted_17$3 = {
|
|
24081
|
-
key: 0,
|
|
24082
|
-
class: "time-picker border-start flex column gap-1 w-120px"
|
|
24083
|
-
};
|
|
24084
|
-
const _hoisted_18$1 = { class: "flex gap-025" };
|
|
24085
|
-
const _hoisted_19$1 = { class: "txt-center opacity-6 txt14" };
|
|
24086
|
-
const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
24087
|
-
__name: "DatePick",
|
|
24088
|
-
props: {
|
|
24089
|
-
required: { type: Boolean },
|
|
24090
|
-
label: {},
|
|
24091
|
-
editMode: { type: Boolean, default: true },
|
|
24092
|
-
small: { type: Boolean, default: false },
|
|
24093
|
-
enableTime: { type: Boolean, default: false },
|
|
24094
|
-
modelValue: {},
|
|
24095
|
-
min: {},
|
|
24096
|
-
max: {},
|
|
24097
|
-
timezone: { default: "UTC" },
|
|
24098
|
-
mode: { default: "day" },
|
|
24099
|
-
firstDayOfWeek: { default: WEEK_START_DAY.MONDAY },
|
|
24100
|
-
locale: { default: "" },
|
|
24101
|
-
center: { type: Boolean }
|
|
24102
|
-
},
|
|
24103
|
-
emits: ["update:modelValue"],
|
|
24104
|
-
setup(__props, { emit: __emit }) {
|
|
24105
|
-
const props2 = __props;
|
|
24106
|
-
const emit2 = __emit;
|
|
24107
|
-
let isOpen = vue.ref(false);
|
|
24108
|
-
let currentMonth = vue.ref(/* @__PURE__ */ new Date());
|
|
24109
|
-
let currentView = vue.ref("days");
|
|
24110
|
-
const time = new Time(props2.firstDayOfWeek, props2.locale);
|
|
24111
|
-
function formatDisplayDate(date2) {
|
|
24112
|
-
if (!date2) return "";
|
|
24113
|
-
const dateObj = typeof date2 === "string" ? new Date(date2) : date2;
|
|
24114
|
-
if (props2.enableTime) {
|
|
24115
|
-
return dateObj.toLocaleString(props2.locale || void 0, {
|
|
24116
|
-
year: "numeric",
|
|
24117
|
-
month: "short",
|
|
24118
|
-
day: "numeric",
|
|
24119
|
-
hour: "2-digit",
|
|
24120
|
-
minute: "2-digit",
|
|
24121
|
-
timeZone: props2.timezone
|
|
24122
|
-
});
|
|
24123
|
-
}
|
|
24124
|
-
return dateObj.toLocaleString(props2.locale || void 0, {
|
|
24125
|
-
year: "numeric",
|
|
24126
|
-
month: "short",
|
|
24127
|
-
day: "numeric",
|
|
24128
|
-
timeZone: props2.timezone
|
|
24129
|
-
});
|
|
24130
|
-
}
|
|
24131
|
-
function formatDate(date2) {
|
|
24132
|
-
if (!date2) return "";
|
|
24133
|
-
const dateObj = typeof date2 === "string" ? new Date(date2) : date2;
|
|
24134
|
-
return props2.enableTime ? dateObj.toISOString().slice(0, 16) : dateObj.toISOString().split("T")[0];
|
|
24135
|
-
}
|
|
24136
|
-
const formattedDisplayValue = vue.computed(() => formatDisplayDate(props2.modelValue));
|
|
24137
|
-
const formattedMin = vue.computed(() => formatDate(props2.min));
|
|
24138
|
-
const formattedMax = vue.computed(() => formatDate(props2.max));
|
|
24139
|
-
const selectedDate = vue.computed(() => {
|
|
24140
|
-
if (!props2.modelValue) return null;
|
|
24141
|
-
return typeof props2.modelValue === "string" ? new Date(props2.modelValue) : props2.modelValue;
|
|
24142
|
-
});
|
|
24143
|
-
const currentMonthDays = vue.computed(() => {
|
|
24144
|
-
const year = currentMonth.value.getFullYear();
|
|
24145
|
-
const month = currentMonth.value.getMonth();
|
|
24146
|
-
return time.getCalendarMonthSplitInWeeks(year, month).flat();
|
|
24147
|
-
});
|
|
24148
|
-
const currentMonthValue = vue.computed(() => ({
|
|
24149
|
-
month: currentMonth.value.getMonth(),
|
|
24150
|
-
year: currentMonth.value.getFullYear(),
|
|
24151
|
-
formatted: {
|
|
24152
|
-
month: time.getLocalizedNameOfMonth(currentMonth.value, "long"),
|
|
24153
|
-
year: time.getLocalizedDateString(currentMonth.value).split("/").pop()
|
|
24154
|
-
// Get just the year part
|
|
24155
|
-
}
|
|
24156
|
-
}));
|
|
24157
|
-
const months = vue.computed(() => Array.from({ length: 12 }, (_2, i2) => {
|
|
24158
|
-
const date2 = new Date(currentMonthValue.value.year, i2, 1);
|
|
24159
|
-
return {
|
|
24160
|
-
name: time.getLocalizedNameOfMonth(date2, "short"),
|
|
24161
|
-
value: i2,
|
|
24162
|
-
disabled: isDateDisabled(date2)
|
|
24163
|
-
};
|
|
24164
|
-
}));
|
|
24165
|
-
const years = vue.computed(() => {
|
|
24166
|
-
const startYear = currentMonthValue.value.year - 10;
|
|
24167
|
-
return Array.from({ length: 21 }, (_2, i2) => ({
|
|
24168
|
-
value: startYear + i2,
|
|
24169
|
-
disabled: isYearDisabled(startYear + i2)
|
|
24170
|
-
}));
|
|
24171
|
-
});
|
|
24172
|
-
const weekDays = vue.computed(() => {
|
|
24173
|
-
const weekStart = /* @__PURE__ */ new Date();
|
|
24174
|
-
weekStart.setDate(weekStart.getDate() - weekStart.getDay() + (props2.firstDayOfWeek === WEEK_START_DAY.MONDAY ? 1 : 0));
|
|
24175
|
-
return Array.from({ length: 7 }, (_2, i2) => {
|
|
24176
|
-
const day = new Date(weekStart);
|
|
24177
|
-
day.setDate(weekStart.getDate() + i2);
|
|
24178
|
-
return time.getLocalizedNameOfWeekday(day, "short");
|
|
24179
|
-
});
|
|
24180
|
-
});
|
|
24181
|
-
function isDateDisabled(date2) {
|
|
24182
|
-
if (!date2) return true;
|
|
24183
|
-
const minDate = props2.min ? new Date(props2.min) : null;
|
|
24184
|
-
const maxDate = props2.max ? new Date(props2.max) : null;
|
|
24185
|
-
if (minDate && date2 < minDate) return true;
|
|
24186
|
-
if (maxDate && date2 > maxDate) return true;
|
|
24187
|
-
return false;
|
|
24188
|
-
}
|
|
24189
|
-
function isYearDisabled(year) {
|
|
24190
|
-
const minDate = props2.min ? new Date(props2.min) : null;
|
|
24191
|
-
const maxDate = props2.max ? new Date(props2.max) : null;
|
|
24192
|
-
if (minDate && year < minDate.getFullYear()) return true;
|
|
24193
|
-
if (maxDate && year > maxDate.getFullYear()) return true;
|
|
24194
|
-
return false;
|
|
24195
|
-
}
|
|
24196
|
-
function selectMonth(monthIndex) {
|
|
24197
|
-
currentMonth.value = new Date(currentMonth.value.getFullYear(), monthIndex, 1);
|
|
24198
|
-
currentView.value = "days";
|
|
24199
|
-
}
|
|
24200
|
-
function selectYear(year) {
|
|
24201
|
-
currentMonth.value = new Date(year, currentMonth.value.getMonth(), 1);
|
|
24202
|
-
currentView.value = "months";
|
|
24203
|
-
}
|
|
24204
|
-
function previousMonth() {
|
|
24205
|
-
currentMonth.value = new Date(currentMonth.value.getFullYear(), currentMonth.value.getMonth() - 1, 1);
|
|
24206
|
-
}
|
|
24207
|
-
function nextMonth() {
|
|
24208
|
-
currentMonth.value = new Date(currentMonth.value.getFullYear(), currentMonth.value.getMonth() + 1, 1);
|
|
24209
|
-
}
|
|
24210
|
-
function previousYear() {
|
|
24211
|
-
const offset2 = currentView.value === "months" ? 1 : 21;
|
|
24212
|
-
currentMonth.value = new Date(currentMonth.value.getFullYear() - offset2, currentMonth.value.getMonth(), 1);
|
|
24213
|
-
}
|
|
24214
|
-
function nextYear() {
|
|
24215
|
-
const offset2 = currentView.value === "months" ? 1 : 21;
|
|
24216
|
-
currentMonth.value = new Date(currentMonth.value.getFullYear() + offset2, currentMonth.value.getMonth(), 1);
|
|
24217
|
-
}
|
|
24218
|
-
function selectDate(date2) {
|
|
24219
|
-
var _a2, _b;
|
|
24220
|
-
if (!date2 || !props2.editMode) return;
|
|
24221
|
-
const newDate = new Date(date2.getFullYear(), date2.getMonth(), date2.getDate(), 0, 0, 0);
|
|
24222
|
-
if (props2.enableTime) {
|
|
24223
|
-
const currentHours = ((_a2 = selectedDate.value) == null ? void 0 : _a2.getHours()) ?? (/* @__PURE__ */ new Date()).getHours();
|
|
24224
|
-
const currentMinutes = ((_b = selectedDate.value) == null ? void 0 : _b.getMinutes()) ?? (/* @__PURE__ */ new Date()).getMinutes();
|
|
24225
|
-
newDate.setHours(currentHours);
|
|
24226
|
-
newDate.setMinutes(currentMinutes);
|
|
24227
|
-
} else {
|
|
24228
|
-
isOpen.value = false;
|
|
24229
|
-
}
|
|
24230
|
-
emit2("update:modelValue", newDate);
|
|
24231
|
-
}
|
|
24232
|
-
const hours = vue.computed(() => {
|
|
24233
|
-
var _a2;
|
|
24234
|
-
return ((_a2 = selectedDate.value) == null ? void 0 : _a2.getHours()) ?? 0;
|
|
24235
|
-
});
|
|
24236
|
-
const minutes = vue.computed(() => {
|
|
24237
|
-
var _a2;
|
|
24238
|
-
return ((_a2 = selectedDate.value) == null ? void 0 : _a2.getMinutes()) ?? 0;
|
|
24239
|
-
});
|
|
24240
|
-
function handleHourInput(value) {
|
|
24241
|
-
if (!selectedDate.value) return;
|
|
24242
|
-
const newDate = new Date(selectedDate.value);
|
|
24243
|
-
newDate.setHours(value);
|
|
24244
|
-
emit2("update:modelValue", newDate.toISOString());
|
|
24245
|
-
}
|
|
24246
|
-
function handleMinuteInput(value) {
|
|
24247
|
-
if (!selectedDate.value) return;
|
|
24248
|
-
const newDate = new Date(selectedDate.value);
|
|
24249
|
-
newDate.setMinutes(value);
|
|
24250
|
-
emit2("update:modelValue", newDate.toISOString());
|
|
24251
|
-
}
|
|
24252
|
-
function isSelected(date2) {
|
|
24253
|
-
if (!date2 || !selectedDate.value) return false;
|
|
24254
|
-
return date2.toISOString().split("T")[0] === selectedDate.value.toISOString().split("T")[0];
|
|
24255
|
-
}
|
|
24256
|
-
function isToday(date2) {
|
|
24257
|
-
if (!date2) return false;
|
|
24258
|
-
return time.dateIsToday(date2);
|
|
24259
|
-
}
|
|
24260
|
-
const timezoneDisplay = vue.computed(() => {
|
|
24261
|
-
if (!props2.enableTime) return "";
|
|
24262
|
-
try {
|
|
24263
|
-
return (/* @__PURE__ */ new Date()).toLocaleString("en-US", {
|
|
24264
|
-
timeZoneName: "short",
|
|
24265
|
-
timeZone: props2.timezone
|
|
24266
|
-
}).split(" ").pop();
|
|
24267
|
-
} catch {
|
|
24268
|
-
return "UTC";
|
|
24269
|
-
}
|
|
24270
|
-
});
|
|
24271
|
-
function isNotInMonth(date2) {
|
|
24272
|
-
return time.isTrailingOrLeadingDate(date2, currentMonth.value.getMonth());
|
|
24273
|
-
}
|
|
24274
|
-
return (_ctx, _cache) => {
|
|
24275
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
24276
|
-
class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
24277
|
-
title: _ctx.label
|
|
24278
|
-
}, [
|
|
24279
|
-
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$s, [
|
|
24280
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.label) + " ", 1),
|
|
24281
|
-
_ctx.required ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$n, "*")) : vue.createCommentVNode("", true)
|
|
24282
|
-
])) : vue.createCommentVNode("", true),
|
|
24283
|
-
vue.createVNode(vue.unref(_sfc_main$V), {
|
|
24284
|
-
shown: vue.unref(isOpen),
|
|
24285
|
-
placement: "bottom-start",
|
|
24286
|
-
onApplyShow: _cache[4] || (_cache[4] = ($event) => vue.isRef(isOpen) ? isOpen.value = true : isOpen = true),
|
|
24287
|
-
onApplyHide: _cache[5] || (_cache[5] = ($event) => vue.isRef(isOpen) ? isOpen.value = false : isOpen = false)
|
|
24288
|
-
}, {
|
|
24289
|
-
trigger: vue.withCtx(() => [
|
|
24290
|
-
vue.createElementVNode("div", _hoisted_4$f, [
|
|
24291
|
-
vue.createElementVNode("input", {
|
|
24292
|
-
type: "text",
|
|
24293
|
-
value: formattedDisplayValue.value,
|
|
24294
|
-
min: formattedMin.value,
|
|
24295
|
-
max: formattedMax.value,
|
|
24296
|
-
required: _ctx.required,
|
|
24297
|
-
disabled: !_ctx.editMode,
|
|
24298
|
-
class: vue.normalizeClass(["date-input", {
|
|
24299
|
-
"txt-center": _ctx.center
|
|
24300
|
-
}]),
|
|
24301
|
-
readonly: "",
|
|
24302
|
-
onClick: _cache[0] || (_cache[0] = ($event) => vue.isRef(isOpen) ? isOpen.value = true : isOpen = true)
|
|
24303
|
-
}, null, 10, _hoisted_5$e)
|
|
24304
|
-
])
|
|
24305
|
-
]),
|
|
24306
|
-
default: vue.withCtx(() => [
|
|
24307
|
-
vue.createElementVNode("div", _hoisted_6$b, [
|
|
24308
|
-
vue.createElementVNode("div", _hoisted_7$8, [
|
|
24309
|
-
vue.createElementVNode("div", _hoisted_8$5, [
|
|
24310
|
-
vue.unref(currentView) === "days" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
24311
|
-
vue.createVNode(vue.unref(Btn), {
|
|
24312
|
-
flat: "",
|
|
24313
|
-
icon: "chevron_left",
|
|
24314
|
-
onClick: previousMonth
|
|
24315
|
-
}),
|
|
24316
|
-
vue.createElementVNode("div", _hoisted_9$4, [
|
|
24317
|
-
vue.createVNode(vue.unref(Btn), {
|
|
24318
|
-
flat: "",
|
|
24319
|
-
class: "month-btn",
|
|
24320
|
-
onClick: _cache[1] || (_cache[1] = ($event) => vue.isRef(currentView) ? currentView.value = "months" : currentView = "months")
|
|
24321
|
-
}, {
|
|
24322
|
-
default: vue.withCtx(() => [
|
|
24323
|
-
vue.createTextVNode(vue.toDisplayString(currentMonthValue.value.formatted.month), 1)
|
|
24324
|
-
]),
|
|
24325
|
-
_: 1
|
|
24326
|
-
}),
|
|
24327
|
-
vue.createVNode(vue.unref(Btn), {
|
|
24328
|
-
flat: "",
|
|
24329
|
-
class: "year-btn",
|
|
24330
|
-
onClick: _cache[2] || (_cache[2] = ($event) => vue.isRef(currentView) ? currentView.value = "years" : currentView = "years")
|
|
24331
|
-
}, {
|
|
24332
|
-
default: vue.withCtx(() => [
|
|
24333
|
-
vue.createTextVNode(vue.toDisplayString(currentMonthValue.value.formatted.year), 1)
|
|
24334
|
-
]),
|
|
24335
|
-
_: 1
|
|
24336
|
-
})
|
|
24337
|
-
]),
|
|
24338
|
-
vue.createVNode(vue.unref(Btn), {
|
|
24339
|
-
flat: "",
|
|
24340
|
-
icon: "chevron_right",
|
|
24341
|
-
onClick: nextMonth
|
|
24342
|
-
})
|
|
24343
|
-
], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
24344
|
-
vue.createVNode(vue.unref(Btn), {
|
|
24345
|
-
flat: "",
|
|
24346
|
-
icon: "chevron_left",
|
|
24347
|
-
onClick: previousYear
|
|
24348
|
-
}),
|
|
24349
|
-
vue.createElementVNode("span", _hoisted_10$4, vue.toDisplayString(currentMonthValue.value.formatted.year), 1),
|
|
24350
|
-
vue.createVNode(vue.unref(Btn), {
|
|
24351
|
-
flat: "",
|
|
24352
|
-
icon: "chevron_right",
|
|
24353
|
-
onClick: nextYear
|
|
24354
|
-
})
|
|
24355
|
-
], 64))
|
|
24356
|
-
]),
|
|
24357
|
-
vue.unref(currentView) === "days" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_11$4, [
|
|
24358
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(weekDays.value, (day) => {
|
|
24359
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
24360
|
-
key: day,
|
|
24361
|
-
class: "txt-center txt-12 opacity-6"
|
|
24362
|
-
}, vue.toDisplayString(day), 1);
|
|
24363
|
-
}), 128)),
|
|
24364
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(currentMonthDays.value, (date2) => {
|
|
24365
|
-
return vue.openBlock(), vue.createElementBlock("button", {
|
|
24366
|
-
key: date2 == null ? void 0 : date2.toISOString(),
|
|
24367
|
-
type: "button",
|
|
24368
|
-
class: vue.normalizeClass(["day aspect-ratio-1 flex align-items-center justify-content-center pointer round txt14 p-0", {
|
|
24369
|
-
"selected": isSelected(date2),
|
|
24370
|
-
"today": isToday(date2),
|
|
24371
|
-
"disabled": isDateDisabled(date2),
|
|
24372
|
-
"not-in-month": isNotInMonth(date2)
|
|
24373
|
-
}]),
|
|
24374
|
-
disabled: isDateDisabled(date2),
|
|
24375
|
-
onClick: ($event) => selectDate(date2)
|
|
24376
|
-
}, vue.toDisplayString(date2 == null ? void 0 : date2.getDate()), 11, _hoisted_12$4);
|
|
24377
|
-
}), 128))
|
|
24378
|
-
])) : vue.unref(currentView) === "months" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_13$3, [
|
|
24379
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(months.value, (month) => {
|
|
24380
|
-
return vue.openBlock(), vue.createElementBlock("button", {
|
|
24381
|
-
key: month.value,
|
|
24382
|
-
class: vue.normalizeClass(["month-item flex align-items-center justify-content-center pointer rounded p-05 txt14 border-none", {
|
|
24383
|
-
selected: month.value === currentMonthValue.value.month,
|
|
24384
|
-
disabled: month.disabled
|
|
24385
|
-
}]),
|
|
24386
|
-
disabled: month.disabled,
|
|
24387
|
-
onClick: ($event) => selectMonth(month.value)
|
|
24388
|
-
}, vue.toDisplayString(month.name), 11, _hoisted_14$3);
|
|
24389
|
-
}), 128))
|
|
24390
|
-
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_15$3, [
|
|
24391
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(years.value, (year) => {
|
|
24392
|
-
return vue.openBlock(), vue.createElementBlock("button", {
|
|
24393
|
-
key: year.value,
|
|
24394
|
-
class: vue.normalizeClass(["year-item flex align-items-center justify-content-center pointer rounded p-05 txt14 border-none", {
|
|
24395
|
-
selected: year.value === currentMonthValue.value.year,
|
|
24396
|
-
disabled: year.disabled
|
|
24397
|
-
}]),
|
|
24398
|
-
disabled: year.disabled,
|
|
24399
|
-
onClick: ($event) => selectYear(year.value)
|
|
24400
|
-
}, vue.toDisplayString(year.value), 11, _hoisted_16$3);
|
|
24401
|
-
}), 128))
|
|
24402
|
-
]))
|
|
24403
|
-
]),
|
|
24404
|
-
_ctx.enableTime && vue.unref(currentView) === "days" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17$3, [
|
|
24405
|
-
vue.createElementVNode("div", _hoisted_18$1, [
|
|
24406
|
-
vue.createVNode(vue.unref(NumberInput), {
|
|
24407
|
-
center: "",
|
|
24408
|
-
"model-value": hours.value,
|
|
24409
|
-
disabled: !selectedDate.value,
|
|
24410
|
-
min: 0,
|
|
24411
|
-
max: 23,
|
|
24412
|
-
layout: "vertical",
|
|
24413
|
-
padZero: 2,
|
|
24414
|
-
"onUpdate:modelValue": handleHourInput
|
|
24415
|
-
}, null, 8, ["model-value", "disabled"]),
|
|
24416
|
-
_cache[6] || (_cache[6] = vue.createElementVNode("p", { class: "pb-075" }, " : ", -1)),
|
|
24417
|
-
vue.createVNode(vue.unref(NumberInput), {
|
|
24418
|
-
center: "",
|
|
24419
|
-
"model-value": minutes.value,
|
|
24420
|
-
disabled: !selectedDate.value,
|
|
24421
|
-
min: 0,
|
|
24422
|
-
max: 59,
|
|
24423
|
-
padZero: 2,
|
|
24424
|
-
layout: "vertical",
|
|
24425
|
-
"onUpdate:modelValue": handleMinuteInput
|
|
24426
|
-
}, null, 8, ["model-value", "disabled"])
|
|
24427
|
-
]),
|
|
24428
|
-
vue.createElementVNode("span", _hoisted_19$1, vue.toDisplayString(timezoneDisplay.value), 1),
|
|
24429
|
-
selectedDate.value ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
|
|
24430
|
-
key: 0,
|
|
24431
|
-
flat: "",
|
|
24432
|
-
onClick: _cache[3] || (_cache[3] = ($event) => vue.isRef(isOpen) ? isOpen.value = false : isOpen = false)
|
|
24433
|
-
}, {
|
|
24434
|
-
default: vue.withCtx(() => _cache[7] || (_cache[7] = [
|
|
24435
|
-
vue.createTextVNode(" Done ")
|
|
24436
|
-
])),
|
|
24437
|
-
_: 1
|
|
24438
|
-
})) : vue.createCommentVNode("", true)
|
|
24439
|
-
])) : vue.createCommentVNode("", true)
|
|
24440
|
-
])
|
|
24441
|
-
]),
|
|
24442
|
-
_: 1
|
|
24443
|
-
}, 8, ["shown"])
|
|
24444
|
-
], 10, _hoisted_1$E);
|
|
24445
|
-
};
|
|
24446
|
-
}
|
|
24447
|
-
});
|
|
24448
|
-
const DatePick = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-c6c8cc7b"]]);
|
|
24449
24787
|
const _hoisted_1$D = { class: "datetime-wrap" };
|
|
24450
24788
|
const _hoisted_2$r = {
|
|
24451
24789
|
key: 0,
|
|
@@ -25040,6 +25378,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
25040
25378
|
iconStart: {},
|
|
25041
25379
|
icon: {},
|
|
25042
25380
|
label: {},
|
|
25381
|
+
defaultValue: {},
|
|
25043
25382
|
placeholder: {},
|
|
25044
25383
|
disabled: { type: Boolean },
|
|
25045
25384
|
required: { type: Boolean },
|
|
@@ -25052,7 +25391,12 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
25052
25391
|
emits: ["update:modelValue"],
|
|
25053
25392
|
setup(__props, { emit: __emit }) {
|
|
25054
25393
|
const emit2 = __emit;
|
|
25055
|
-
let numberValue = vue.ref(
|
|
25394
|
+
let numberValue = vue.ref();
|
|
25395
|
+
vue.onMounted(() => {
|
|
25396
|
+
const num = __props.modelValue !== void 0 ? Number.parseFloat(`${__props.modelValue}`) : void 0;
|
|
25397
|
+
const defaultNum = __props.defaultValue !== void 0 ? Number.parseFloat(`${__props.defaultValue}`) : void 0;
|
|
25398
|
+
numberValue.value = num || defaultNum;
|
|
25399
|
+
});
|
|
25056
25400
|
const btnLayouts = ["horizontal", "vertical"];
|
|
25057
25401
|
function add2(...numbers) {
|
|
25058
25402
|
var _a2;
|
|
@@ -25209,7 +25553,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
25209
25553
|
};
|
|
25210
25554
|
}
|
|
25211
25555
|
});
|
|
25212
|
-
const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-
|
|
25556
|
+
const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-26b79ca5"]]);
|
|
25213
25557
|
const _hoisted_1$z = ["value", "autofocus", "onKeydown", "onPaste"];
|
|
25214
25558
|
const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
25215
25559
|
__name: "OTP",
|
|
@@ -25239,10 +25583,9 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
|
25239
25583
|
emitUpdate();
|
|
25240
25584
|
}
|
|
25241
25585
|
function emitUpdate() {
|
|
25586
|
+
emit2("update:modelValue", digits.join(""));
|
|
25242
25587
|
if (isDigitsFull()) {
|
|
25243
25588
|
emit2("complete", digits.join(""));
|
|
25244
|
-
} else {
|
|
25245
|
-
emit2("update:modelValue", digits.join(""));
|
|
25246
25589
|
}
|
|
25247
25590
|
}
|
|
25248
25591
|
function handleKeyDown(event, index2) {
|
|
@@ -25306,7 +25649,7 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
|
25306
25649
|
autofocus: ind === 0,
|
|
25307
25650
|
maxlength: "1",
|
|
25308
25651
|
pattern: "[0-9]*",
|
|
25309
|
-
oninput: "this.value = this.value.slice(0, 1)
|
|
25652
|
+
oninput: "this.value = this.value.slice(0, 1)",
|
|
25310
25653
|
onKeydown: ($event) => handleKeyDown($event, ind),
|
|
25311
25654
|
onPaste: ($event) => handlePaste($event, ind)
|
|
25312
25655
|
}, null, 40, _hoisted_1$z);
|
|
@@ -25315,7 +25658,7 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
|
25315
25658
|
};
|
|
25316
25659
|
}
|
|
25317
25660
|
});
|
|
25318
|
-
const OTP = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-
|
|
25661
|
+
const OTP = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-8e8db33e"]]);
|
|
25319
25662
|
const _hoisted_1$y = { class: "relative" };
|
|
25320
25663
|
const _hoisted_2$n = { class: "m-password position-bottom-end flex column justify-content-center" };
|
|
25321
25664
|
const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -35558,6 +35901,7 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
35558
35901
|
dense: { type: Boolean },
|
|
35559
35902
|
required: { type: Boolean },
|
|
35560
35903
|
pattern: {},
|
|
35904
|
+
defaultValue: {},
|
|
35561
35905
|
shrink: { type: Boolean },
|
|
35562
35906
|
disabled: { type: Boolean },
|
|
35563
35907
|
type: { default: "text" },
|
|
@@ -35570,7 +35914,8 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
35570
35914
|
rows: {},
|
|
35571
35915
|
autocomplete: {},
|
|
35572
35916
|
autofocus: { type: Boolean },
|
|
35573
|
-
onFocusout: {}
|
|
35917
|
+
onFocusout: {},
|
|
35918
|
+
onFocus: {}
|
|
35574
35919
|
},
|
|
35575
35920
|
emits: ["update:modelValue", "debounce"],
|
|
35576
35921
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -35610,6 +35955,7 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
35610
35955
|
var _a2;
|
|
35611
35956
|
return (_a2 = input.value) == null ? void 0 : _a2.focus();
|
|
35612
35957
|
}, 10);
|
|
35958
|
+
if (props2.defaultValue && !props2.modelValue) inputVal.value = props2.defaultValue;
|
|
35613
35959
|
});
|
|
35614
35960
|
return (_ctx, _cache) => {
|
|
35615
35961
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -35642,6 +35988,8 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
35642
35988
|
}, _ctx.nativeInputAttrs, {
|
|
35643
35989
|
onFocusout: _cache[1] || (_cache[1] = //@ts-ignore
|
|
35644
35990
|
(...args) => _ctx.onFocusout && _ctx.onFocusout(...args)),
|
|
35991
|
+
onFocus: _cache[2] || (_cache[2] = //@ts-ignore
|
|
35992
|
+
(...args) => _ctx.onFocus && _ctx.onFocus(...args)),
|
|
35645
35993
|
onInput: updateInputVal
|
|
35646
35994
|
}), null, 16, _hoisted_3$a)), [
|
|
35647
35995
|
[
|
|
@@ -35655,7 +36003,7 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
35655
36003
|
id: _ctx.id,
|
|
35656
36004
|
ref_key: "input",
|
|
35657
36005
|
ref: input,
|
|
35658
|
-
"onUpdate:modelValue": _cache[
|
|
36006
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.isRef(inputVal) ? inputVal.value = $event : inputVal = $event),
|
|
35659
36007
|
title: _ctx.title,
|
|
35660
36008
|
type: _ctx.type,
|
|
35661
36009
|
rows: inputRows.value,
|
|
@@ -35665,7 +36013,7 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
35665
36013
|
pattern: _ctx.pattern
|
|
35666
36014
|
}, _ctx.nativeInputAttrs, {
|
|
35667
36015
|
onInput: updateInputVal,
|
|
35668
|
-
onFocusout: _cache[
|
|
36016
|
+
onFocusout: _cache[4] || (_cache[4] = //@ts-ignore
|
|
35669
36017
|
(...args) => _ctx.onFocusout && _ctx.onFocusout(...args))
|
|
35670
36018
|
}), null, 16, _hoisted_4$5)), [
|
|
35671
36019
|
[vue.vModelText, vue.unref(inputVal)]
|
|
@@ -35685,7 +36033,7 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
35685
36033
|
};
|
|
35686
36034
|
}
|
|
35687
36035
|
});
|
|
35688
|
-
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-
|
|
36036
|
+
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-99e3ea36"]]);
|
|
35689
36037
|
const _hoisted_1$m = ["title"];
|
|
35690
36038
|
const _hoisted_2$c = ["id", "required"];
|
|
35691
36039
|
const _hoisted_3$9 = ["for"];
|
|
@@ -40597,9 +40945,9 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
40597
40945
|
key: 0,
|
|
40598
40946
|
class: "bgl_icon-font",
|
|
40599
40947
|
style: vue.normalizeStyle({ "fontSize": `${_ctx.size}rem`, color: _ctx.color, "font-variation-settings": `'wght' ${_ctx.weight || 400}` })
|
|
40600
|
-
}, vue.toDisplayString(iconRender.value), 5)) : iconRenderType.value === "font-awesome" ? (vue.openBlock(), vue.createElementBlock("
|
|
40948
|
+
}, vue.toDisplayString(iconRender.value), 5)) : iconRenderType.value === "font-awesome" ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
40601
40949
|
key: 1,
|
|
40602
|
-
class: vue.normalizeClass(["fa far", [`fa-${iconRender.value}`, { "fa-brands": isFaBrand.value }]]),
|
|
40950
|
+
class: vue.normalizeClass(["fa far bgl_icon-font", [`fa-${iconRender.value}`, { "fa-brands": isFaBrand.value }]]),
|
|
40603
40951
|
style: vue.normalizeStyle({ "fontSize": `${_ctx.size}rem`, color: _ctx.color, "font-variation-settings": `'wght' ${_ctx.weight || 400}` })
|
|
40604
40952
|
}, null, 6)) : vue.createCommentVNode("", true);
|
|
40605
40953
|
};
|
|
@@ -41451,6 +41799,7 @@ const _hoisted_3$4 = {
|
|
|
41451
41799
|
const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
41452
41800
|
__name: "Modal",
|
|
41453
41801
|
props: {
|
|
41802
|
+
thin: { type: Boolean },
|
|
41454
41803
|
side: { type: Boolean },
|
|
41455
41804
|
title: {},
|
|
41456
41805
|
width: {},
|
|
@@ -41507,6 +41856,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
41507
41856
|
vue.createVNode(vue.unref(_sfc_main$$), {
|
|
41508
41857
|
class: "modal",
|
|
41509
41858
|
style: vue.normalizeStyle({ ...maxWidth.value }),
|
|
41859
|
+
thin: _ctx.thin,
|
|
41510
41860
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
|
|
41511
41861
|
}, ["stop"]))
|
|
41512
41862
|
}, {
|
|
@@ -41551,7 +41901,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
41551
41901
|
];
|
|
41552
41902
|
}),
|
|
41553
41903
|
_: 3
|
|
41554
|
-
}, 8, ["style"])
|
|
41904
|
+
}, 8, ["style", "thin"])
|
|
41555
41905
|
], 34);
|
|
41556
41906
|
};
|
|
41557
41907
|
}
|
|
@@ -44944,7 +45294,7 @@ exports.CodeEditor = CodeEditor;
|
|
|
44944
45294
|
exports.ColorPicker = _sfc_main$N;
|
|
44945
45295
|
exports.DataPreview = DataPreview;
|
|
44946
45296
|
exports.DataTable = DataTable;
|
|
44947
|
-
exports.DateInput =
|
|
45297
|
+
exports.DateInput = DateInput;
|
|
44948
45298
|
exports.DatePick = DatePick;
|
|
44949
45299
|
exports.DatePicker = _sfc_main$K;
|
|
44950
45300
|
exports.Draggable = _sfc_main$W;
|