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