@bagelink/vue 1.0.24 → 1.0.30
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/AddressSearch.vue.d.ts +3 -0
- package/dist/components/AddressSearch.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
- package/dist/components/DataTable/tableTypes.d.ts +9 -9
- package/dist/components/DataTable/tableTypes.d.ts.map +1 -1
- package/dist/components/DataTable/useTableData.d.ts +10 -5
- package/dist/components/DataTable/useTableData.d.ts.map +1 -1
- package/dist/components/DropDown.vue.d.ts +2 -1
- package/dist/components/DropDown.vue.d.ts.map +1 -1
- package/dist/components/Icon/Icon.vue.d.ts.map +1 -1
- package/dist/components/Spreadsheet/Index.vue.d.ts.map +1 -1
- package/dist/components/form/BagelForm.vue.d.ts +1 -0
- package/dist/components/form/BagelForm.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/CheckInput.vue.d.ts +22 -30
- package/dist/components/form/inputs/CheckInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/ColorInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/DateInput.vue.d.ts +1 -0
- package/dist/components/form/inputs/DateInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/DatePick.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/NumberInput.vue.d.ts +1 -1
- package/dist/components/form/inputs/NumberInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/PasswordInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SelectInput.vue.d.ts +15 -6
- package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TelInput.vue.d.ts.map +1 -1
- package/dist/components/layout/TabsNav.vue.d.ts.map +1 -1
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.d.ts.map +1 -1
- package/dist/index.cjs +287 -243
- package/dist/index.mjs +287 -243
- package/dist/style.css +232 -142
- package/dist/types/TableSchema.d.ts +2 -2
- package/dist/types/TableSchema.d.ts.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/timeAgo.d.ts +1 -1
- package/dist/utils/timeAgo.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/DataPreview.vue +1 -1
- package/src/components/DataTable/DataTable.vue +6 -9
- package/src/components/DataTable/tableTypes.ts +10 -10
- package/src/components/DataTable/useTableData.ts +25 -10
- package/src/components/Dropdown.vue +3 -1
- package/src/components/Icon/Icon.vue +1 -1
- package/src/components/Modal.vue +1 -1
- package/src/components/Spreadsheet/Index.vue +1 -0
- package/src/components/form/BagelForm.vue +5 -3
- package/src/components/form/inputs/CheckInput.vue +7 -7
- package/src/components/form/inputs/ColorInput.vue +33 -5
- package/src/components/form/inputs/DateInput.vue +14 -33
- package/src/components/form/inputs/DatePick.vue +10 -27
- package/src/components/form/inputs/NumberInput.vue +1 -1
- package/src/components/form/inputs/PasswordInput.vue +1 -2
- package/src/components/form/inputs/SelectInput.vue +4 -1
- package/src/components/form/inputs/TelInput.vue +1 -2
- package/src/components/layout/TabsNav.vue +15 -6
- package/src/composables/index.ts +5 -5
- package/src/styles/inputs.css +1 -0
- package/src/styles/layout.css +45 -0
- package/src/styles/mobilLayout.css +45 -0
- package/src/styles/theme.css +13 -0
- package/src/types/TableSchema.ts +2 -2
- package/src/utils/index.ts +3 -3
- package/src/utils/timeAgo.ts +87 -25
package/dist/index.mjs
CHANGED
|
@@ -19,7 +19,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
19
19
|
});
|
|
20
20
|
const _hoisted_1$1a = ["aria-expanded", "aria-controls"];
|
|
21
21
|
const _hoisted_2$S = { class: "accordion-label" };
|
|
22
|
-
const _hoisted_3$
|
|
22
|
+
const _hoisted_3$I = ["id", "aria-hidden"];
|
|
23
23
|
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
24
24
|
__name: "AccordionItem",
|
|
25
25
|
props: {
|
|
@@ -83,7 +83,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
83
83
|
key: 0,
|
|
84
84
|
class: normalizeClass(["accordion-icon", [_ctx.iconClass, { open: unref(isOpen) && _ctx.iconType === "expand_more" }]])
|
|
85
85
|
}, [
|
|
86
|
-
createVNode(unref(
|
|
86
|
+
createVNode(unref(_sfc_main$s), { icon: computedIcon.value }, null, 8, ["icon"])
|
|
87
87
|
], 2)) : createCommentVNode("", true),
|
|
88
88
|
renderSlot(_ctx.$slots, "head", {}, () => [
|
|
89
89
|
createElementVNode("span", _hoisted_2$S, toDisplayString(_ctx.label), 1)
|
|
@@ -92,7 +92,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
92
92
|
key: 1,
|
|
93
93
|
class: normalizeClass(["accordion-icon", [_ctx.iconClass, { open: unref(isOpen) && _ctx.iconType === "expand_more" }]])
|
|
94
94
|
}, [
|
|
95
|
-
createVNode(unref(
|
|
95
|
+
createVNode(unref(_sfc_main$s), { icon: computedIcon.value }, null, 8, ["icon"])
|
|
96
96
|
], 2)) : createCommentVNode("", true)
|
|
97
97
|
], 8, _hoisted_1$1a),
|
|
98
98
|
createVNode(Transition, { name: "expand" }, {
|
|
@@ -104,7 +104,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
104
104
|
"aria-hidden": unref(isOpen) ? "false" : "true"
|
|
105
105
|
}, [
|
|
106
106
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
107
|
-
], 8, _hoisted_3$
|
|
107
|
+
], 8, _hoisted_3$I)) : createCommentVNode("", true)
|
|
108
108
|
]),
|
|
109
109
|
_: 3
|
|
110
110
|
})
|
|
@@ -250,7 +250,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
250
250
|
class: "h-100p",
|
|
251
251
|
size: "15"
|
|
252
252
|
})) : (openBlock(), createElementBlock("div", _hoisted_1$18, [
|
|
253
|
-
_ctx.icon ? (openBlock(), createBlock(unref(
|
|
253
|
+
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$s), {
|
|
254
254
|
key: 0,
|
|
255
255
|
icon: _ctx.icon,
|
|
256
256
|
class: "transition-400"
|
|
@@ -259,7 +259,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
259
259
|
!unref(slots).default && _ctx.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
260
260
|
createTextVNode(toDisplayString(_ctx.value), 1)
|
|
261
261
|
], 64)) : createCommentVNode("", true),
|
|
262
|
-
_ctx.iconEnd ? (openBlock(), createBlock(unref(
|
|
262
|
+
_ctx.iconEnd ? (openBlock(), createBlock(unref(_sfc_main$s), {
|
|
263
263
|
key: 2,
|
|
264
264
|
icon: _ctx.iconEnd,
|
|
265
265
|
class: "transition-400"
|
|
@@ -297,7 +297,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
297
297
|
class: normalizeClass(["alert", [_ctx.type]]),
|
|
298
298
|
dismissable: _ctx.dismissable
|
|
299
299
|
}, [
|
|
300
|
-
_ctx.icon !== "none" ? (openBlock(), createBlock(unref(
|
|
300
|
+
_ctx.icon !== "none" ? (openBlock(), createBlock(unref(_sfc_main$s), {
|
|
301
301
|
key: 0,
|
|
302
302
|
class: "alert_icon",
|
|
303
303
|
icon: _ctx.icon || _ctx.type,
|
|
@@ -359,13 +359,13 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
359
359
|
return openBlock(), createElementBlock("div", {
|
|
360
360
|
class: normalizeClass(["pill", [_ctx.color]])
|
|
361
361
|
}, [
|
|
362
|
-
_ctx.icon ? (openBlock(), createBlock(unref(
|
|
362
|
+
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$s), {
|
|
363
363
|
key: 0,
|
|
364
364
|
class: "inline",
|
|
365
365
|
icon: _ctx.icon
|
|
366
366
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
367
367
|
createTextVNode(" " + toDisplayString(_ctx.text) + " ", 1),
|
|
368
|
-
_ctx.iconEnd ? (openBlock(), createBlock(unref(
|
|
368
|
+
_ctx.iconEnd ? (openBlock(), createBlock(unref(_sfc_main$s), {
|
|
369
369
|
key: 1,
|
|
370
370
|
class: "inline",
|
|
371
371
|
icon: _ctx.iconEnd
|
|
@@ -377,7 +377,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
377
377
|
const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-689f051f"]]);
|
|
378
378
|
const _hoisted_1$15 = ["src"];
|
|
379
379
|
const _hoisted_2$Q = ["autoplay", "muted", "loop", "controls", "playsinline"];
|
|
380
|
-
const _hoisted_3$
|
|
380
|
+
const _hoisted_3$H = ["src", "type"];
|
|
381
381
|
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
382
382
|
__name: "BglVideo",
|
|
383
383
|
props: {
|
|
@@ -469,7 +469,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
469
469
|
createElementVNode("source", {
|
|
470
470
|
src: _ctx.src,
|
|
471
471
|
type: `video/${videoFormat.value}`
|
|
472
|
-
}, null, 8, _hoisted_3$
|
|
472
|
+
}, null, 8, _hoisted_3$H)
|
|
473
473
|
], 12, _hoisted_2$Q)) : createCommentVNode("", true)
|
|
474
474
|
], 2);
|
|
475
475
|
};
|
|
@@ -739,7 +739,7 @@ const DATE_TIME_STRING_PATTERN = /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$/;
|
|
|
739
739
|
const DATE_TIME_STRING_FULL_DAY_PATTERN = /^\d{4}-\d{2}-\d{2}$/;
|
|
740
740
|
const _hoisted_1$13 = ["id"];
|
|
741
741
|
const _hoisted_2$O = { class: "flex txt14 flex column align-items-start gap-025 opacity-6" };
|
|
742
|
-
const _hoisted_3$
|
|
742
|
+
const _hoisted_3$G = {
|
|
743
743
|
key: 0,
|
|
744
744
|
class: "agenda__event-time flex gap-025"
|
|
745
745
|
};
|
|
@@ -828,15 +828,15 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
828
828
|
onClick: withModifiers(handleClickOnEvent, ["prevent"])
|
|
829
829
|
}, [
|
|
830
830
|
createElementVNode("div", _hoisted_2$O, [
|
|
831
|
-
eventTime.value && !__props.calendarEvent.originalEvent ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
832
|
-
createVNode(unref(
|
|
831
|
+
eventTime.value && !__props.calendarEvent.originalEvent ? (openBlock(), createElementBlock("span", _hoisted_3$G, [
|
|
832
|
+
createVNode(unref(_sfc_main$s), {
|
|
833
833
|
icon: icons.clock,
|
|
834
834
|
size: 0.8
|
|
835
835
|
}, null, 8, ["icon"]),
|
|
836
836
|
createTextVNode(" " + toDisplayString(eventTime.value), 1)
|
|
837
837
|
])) : createCommentVNode("", true),
|
|
838
838
|
__props.calendarEvent.location ? (openBlock(), createElementBlock("span", _hoisted_4$t, [
|
|
839
|
-
createVNode(unref(
|
|
839
|
+
createVNode(unref(_sfc_main$s), {
|
|
840
840
|
icon: icons.location,
|
|
841
841
|
size: 1
|
|
842
842
|
}, null, 8, ["icon"]),
|
|
@@ -846,7 +846,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
846
846
|
createElementVNode("div", null, [
|
|
847
847
|
createElementVNode("div", _hoisted_5$p, toDisplayString(__props.calendarEvent.title), 1),
|
|
848
848
|
__props.calendarEvent.with ? (openBlock(), createElementBlock("div", _hoisted_6$l, [
|
|
849
|
-
createVNode(unref(
|
|
849
|
+
createVNode(unref(_sfc_main$s), {
|
|
850
850
|
icon: icons.user
|
|
851
851
|
}, null, 8, ["icon"]),
|
|
852
852
|
createTextVNode(" " + toDisplayString(__props.calendarEvent.with), 1)
|
|
@@ -859,7 +859,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
859
859
|
const AgendaEventTile = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__scopeId", "data-v-5740437b"]]);
|
|
860
860
|
const _hoisted_1$12 = { class: "agenda__wrapper grid align-items-start gap-1 h-100p" };
|
|
861
861
|
const _hoisted_2$N = { class: "m_sticky" };
|
|
862
|
-
const _hoisted_3$
|
|
862
|
+
const _hoisted_3$F = { class: "agenda__header-day-name txt-center" };
|
|
863
863
|
const _hoisted_4$s = { class: "agenda__header-date flex justify-content-center rounded p-025 txt24 line-height-04" };
|
|
864
864
|
const _hoisted_5$o = { class: "agenda__content flex column w-100p h-100p min-h-100px pt-05 border-start ps-1 m_pt-0 min-h-50px" };
|
|
865
865
|
const _hoisted_6$k = {
|
|
@@ -892,7 +892,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
892
892
|
return (_ctx, _cache) => {
|
|
893
893
|
return openBlock(), createElementBlock("div", _hoisted_1$12, [
|
|
894
894
|
createElementVNode("header", _hoisted_2$N, [
|
|
895
|
-
createElementVNode("div", _hoisted_3$
|
|
895
|
+
createElementVNode("div", _hoisted_3$F, toDisplayString(__props.day.dayName.slice(0, 3)), 1),
|
|
896
896
|
createElementVNode("div", _hoisted_4$s, toDisplayString(__props.day.dateTimeString.substring(8, 10)), 1)
|
|
897
897
|
]),
|
|
898
898
|
createElementVNode("div", _hoisted_5$o, [
|
|
@@ -1597,7 +1597,7 @@ const _hoisted_1$11 = {
|
|
|
1597
1597
|
class: "event-flyout__relative-wrapper"
|
|
1598
1598
|
};
|
|
1599
1599
|
const _hoisted_2$M = { class: "event-flyout__menu" };
|
|
1600
|
-
const _hoisted_3$
|
|
1600
|
+
const _hoisted_3$E = {
|
|
1601
1601
|
key: 0,
|
|
1602
1602
|
class: "event-flyout__menu-editable"
|
|
1603
1603
|
};
|
|
@@ -1806,20 +1806,20 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
1806
1806
|
}, [
|
|
1807
1807
|
!__props.config.eventDialog || !__props.config.eventDialog.isCustom ? (openBlock(), createElementBlock("div", _hoisted_1$11, [
|
|
1808
1808
|
createElementVNode("div", _hoisted_2$M, [
|
|
1809
|
-
isEditable.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1810
|
-
createVNode(unref(
|
|
1809
|
+
isEditable.value ? (openBlock(), createElementBlock("span", _hoisted_3$E, [
|
|
1810
|
+
createVNode(unref(_sfc_main$s), {
|
|
1811
1811
|
class: "event-flyout__menu-item is-edit-icon",
|
|
1812
1812
|
icon: icons.edit,
|
|
1813
1813
|
onClick: editEvent
|
|
1814
1814
|
}, null, 8, ["icon"]),
|
|
1815
|
-
createVNode(unref(
|
|
1815
|
+
createVNode(unref(_sfc_main$s), {
|
|
1816
1816
|
class: "event-flyout__menu-item is-trash-icon",
|
|
1817
1817
|
icon: icons.trash,
|
|
1818
1818
|
onClick: deleteEvent
|
|
1819
1819
|
}, null, 8, ["icon"])
|
|
1820
1820
|
])) : createCommentVNode("", true),
|
|
1821
1821
|
createElementVNode("span", _hoisted_4$r, [
|
|
1822
|
-
createVNode(unref(
|
|
1822
|
+
createVNode(unref(_sfc_main$s), {
|
|
1823
1823
|
class: "event-flyout__menu-item is-times-icon",
|
|
1824
1824
|
icon: icons.times,
|
|
1825
1825
|
onClick: closeFlyout
|
|
@@ -1836,25 +1836,25 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
1836
1836
|
])) : createCommentVNode("", true),
|
|
1837
1837
|
calendarEvent.value.time ? (openBlock(), createElementBlock("div", _hoisted_7$f, toDisplayString(getEventTime.value), 1)) : createCommentVNode("", true),
|
|
1838
1838
|
calendarEvent.value.location ? (openBlock(), createElementBlock("div", _hoisted_8$9, [
|
|
1839
|
-
createVNode(unref(
|
|
1839
|
+
createVNode(unref(_sfc_main$s), {
|
|
1840
1840
|
icon: icons.location
|
|
1841
1841
|
}, null, 8, ["icon"]),
|
|
1842
1842
|
createTextVNode(" " + toDisplayString(calendarEvent.value.location), 1)
|
|
1843
1843
|
])) : createCommentVNode("", true),
|
|
1844
1844
|
calendarEvent.value.with ? (openBlock(), createElementBlock("div", _hoisted_9$7, [
|
|
1845
|
-
createVNode(unref(
|
|
1845
|
+
createVNode(unref(_sfc_main$s), {
|
|
1846
1846
|
icon: icons.user
|
|
1847
1847
|
}, null, 8, ["icon"]),
|
|
1848
1848
|
createTextVNode(" " + toDisplayString(calendarEvent.value.with), 1)
|
|
1849
1849
|
])) : createCommentVNode("", true),
|
|
1850
1850
|
calendarEvent.value.topic ? (openBlock(), createElementBlock("div", _hoisted_10$7, [
|
|
1851
|
-
createVNode(unref(
|
|
1851
|
+
createVNode(unref(_sfc_main$s), {
|
|
1852
1852
|
icon: icons.topic
|
|
1853
1853
|
}, null, 8, ["icon"]),
|
|
1854
1854
|
createTextVNode(" " + toDisplayString(calendarEvent.value.topic), 1)
|
|
1855
1855
|
])) : createCommentVNode("", true),
|
|
1856
1856
|
calendarEvent.value.description ? (openBlock(), createElementBlock("div", _hoisted_11$6, [
|
|
1857
|
-
createVNode(unref(
|
|
1857
|
+
createVNode(unref(_sfc_main$s), {
|
|
1858
1858
|
icon: icons.description
|
|
1859
1859
|
}, null, 8, ["icon"]),
|
|
1860
1860
|
createElementVNode("p", {
|
|
@@ -1876,7 +1876,7 @@ const _hoisted_1$10 = {
|
|
|
1876
1876
|
class: "calendar-month__event"
|
|
1877
1877
|
};
|
|
1878
1878
|
const _hoisted_2$L = ["id", "draggable"];
|
|
1879
|
-
const _hoisted_3$
|
|
1879
|
+
const _hoisted_3$D = ["id", "draggable"];
|
|
1880
1880
|
const _hoisted_4$q = {
|
|
1881
1881
|
key: 0,
|
|
1882
1882
|
class: "calendar-month__event-time opacity-6 flex-shrink-0"
|
|
@@ -1986,7 +1986,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1986
1986
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "calendar-month__event-color round flex-shrink-0" }, null, -1)),
|
|
1987
1987
|
eventTimeStart.value && !__props.calendarEvent.originalEvent ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(eventTimeStart.value), 1)) : createCommentVNode("", true),
|
|
1988
1988
|
createElementVNode("span", _hoisted_5$m, toDisplayString(__props.calendarEvent.title), 1)
|
|
1989
|
-
], 42, _hoisted_3$
|
|
1989
|
+
], 42, _hoisted_3$D))
|
|
1990
1990
|
], 64));
|
|
1991
1991
|
};
|
|
1992
1992
|
}
|
|
@@ -1994,7 +1994,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1994
1994
|
const Event = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-3c4101df"]]);
|
|
1995
1995
|
const _hoisted_1$$ = ["id"];
|
|
1996
1996
|
const _hoisted_2$K = { class: "w-100p flex justify-content-end txt14 p-025 m_h-100p" };
|
|
1997
|
-
const _hoisted_3$
|
|
1997
|
+
const _hoisted_3$C = { class: "calendar-month_events" };
|
|
1998
1998
|
const _hoisted_4$p = {
|
|
1999
1999
|
key: 1,
|
|
2000
2000
|
class: "space-reserver"
|
|
@@ -2102,7 +2102,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
2102
2102
|
onClick: emitDayWasClicked
|
|
2103
2103
|
}, toDisplayString(__props.day.dateTimeString.substring(8, 10).startsWith("0") ? __props.day.dateTimeString.substring(9, 10) : __props.day.dateTimeString.substring(8, 10)), 1)
|
|
2104
2104
|
]),
|
|
2105
|
-
createElementVNode("div", _hoisted_3$
|
|
2105
|
+
createElementVNode("div", _hoisted_3$C, [
|
|
2106
2106
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.day.events, (calendarEvent, index2) => {
|
|
2107
2107
|
return openBlock(), createElementBlock(Fragment, { key: index2 }, [
|
|
2108
2108
|
index2 < 3 ? (openBlock(), createBlock(Event, {
|
|
@@ -2148,7 +2148,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
2148
2148
|
});
|
|
2149
2149
|
const _hoisted_1$Z = { class: "calendar-month relative column w-100p h-100p overflow-y flex flex-stretch" };
|
|
2150
2150
|
const _hoisted_2$J = { class: "flex space-between" };
|
|
2151
|
-
const _hoisted_3$
|
|
2151
|
+
const _hoisted_3$B = { class: "calendar-month__weeks h-100p flex-grow flex flex-stretch column space-between" };
|
|
2152
2152
|
const _hoisted_4$o = {
|
|
2153
2153
|
key: 0,
|
|
2154
2154
|
class: "calendar-month__day_events w-100p pt-1 m_pb-1"
|
|
@@ -2267,7 +2267,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
2267
2267
|
}, null, 8, ["config", "day", "time"]);
|
|
2268
2268
|
}), 128))
|
|
2269
2269
|
]),
|
|
2270
|
-
createElementVNode("div", _hoisted_3$
|
|
2270
|
+
createElementVNode("div", _hoisted_3$B, [
|
|
2271
2271
|
(openBlock(true), createElementBlock(Fragment, null, renderList(month.value, (week, weekIndex) => {
|
|
2272
2272
|
return openBlock(), createElementBlock("div", {
|
|
2273
2273
|
key: weekIndex,
|
|
@@ -2534,7 +2534,7 @@ class EventChange {
|
|
|
2534
2534
|
}
|
|
2535
2535
|
const _hoisted_1$Y = ["data-ref"];
|
|
2536
2536
|
const _hoisted_2$I = { class: "calendar-week__event-row is-title" };
|
|
2537
|
-
const _hoisted_3$
|
|
2537
|
+
const _hoisted_3$A = { class: "calendar-week__event-row is-time flex" };
|
|
2538
2538
|
const _hoisted_4$n = {
|
|
2539
2539
|
key: 0,
|
|
2540
2540
|
class: "calendar-week__event-row is-location"
|
|
@@ -2895,36 +2895,36 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
2895
2895
|
})
|
|
2896
2896
|
}, [
|
|
2897
2897
|
createElementVNode("div", _hoisted_2$I, toDisplayString(event.value.title), 1),
|
|
2898
|
-
createElementVNode("div", _hoisted_3$
|
|
2899
|
-
createVNode(unref(
|
|
2898
|
+
createElementVNode("div", _hoisted_3$A, [
|
|
2899
|
+
createVNode(unref(_sfc_main$s), {
|
|
2900
2900
|
icon: icons.value.clock,
|
|
2901
2901
|
class: "calendar-week__event-icon"
|
|
2902
2902
|
}, null, 8, ["icon"]),
|
|
2903
2903
|
createElementVNode("span", null, toDisplayString(getEventTime.value), 1)
|
|
2904
2904
|
]),
|
|
2905
2905
|
event.value.location ? (openBlock(), createElementBlock("div", _hoisted_4$n, [
|
|
2906
|
-
createVNode(unref(
|
|
2906
|
+
createVNode(unref(_sfc_main$s), {
|
|
2907
2907
|
icon: icons.value.location,
|
|
2908
2908
|
class: "calendar-week__event-icon"
|
|
2909
2909
|
}, null, 8, ["icon"]),
|
|
2910
2910
|
createElementVNode("span", null, toDisplayString(event.value.location), 1)
|
|
2911
2911
|
])) : createCommentVNode("", true),
|
|
2912
2912
|
event.value.with ? (openBlock(), createElementBlock("div", _hoisted_5$l, [
|
|
2913
|
-
createVNode(unref(
|
|
2913
|
+
createVNode(unref(_sfc_main$s), {
|
|
2914
2914
|
icon: icons.value.user,
|
|
2915
2915
|
class: "calendar-week__event-icon"
|
|
2916
2916
|
}, null, 8, ["icon"]),
|
|
2917
2917
|
createElementVNode("span", null, toDisplayString(event.value.with), 1)
|
|
2918
2918
|
])) : createCommentVNode("", true),
|
|
2919
2919
|
event.value.topic ? (openBlock(), createElementBlock("div", _hoisted_6$i, [
|
|
2920
|
-
createVNode(unref(
|
|
2920
|
+
createVNode(unref(_sfc_main$s), {
|
|
2921
2921
|
icon: icons.value.topic,
|
|
2922
2922
|
class: "calendar-week__event-icon"
|
|
2923
2923
|
}, null, 8, ["icon"]),
|
|
2924
2924
|
createElementVNode("span", null, toDisplayString(event.value.topic), 1)
|
|
2925
2925
|
])) : createCommentVNode("", true),
|
|
2926
2926
|
event.value.description ? (openBlock(), createElementBlock("div", _hoisted_7$e, [
|
|
2927
|
-
createVNode(unref(
|
|
2927
|
+
createVNode(unref(_sfc_main$s), {
|
|
2928
2928
|
icon: icons.value.description,
|
|
2929
2929
|
class: "calendar-week__event-icon"
|
|
2930
2930
|
}, null, 8, ["icon"]),
|
|
@@ -3227,7 +3227,7 @@ const _hoisted_1$U = {
|
|
|
3227
3227
|
style: { "margin-inline-end": "0.5em" }
|
|
3228
3228
|
};
|
|
3229
3229
|
const _hoisted_2$F = ["onClick"];
|
|
3230
|
-
const _hoisted_3$
|
|
3230
|
+
const _hoisted_3$z = { class: "flex justify-content-center gap-025 txt12 pb-025" };
|
|
3231
3231
|
const _hoisted_4$m = { class: "" };
|
|
3232
3232
|
const _hoisted_5$k = { class: "week-timeline__date txt14 round inline-flex justify-content-center" };
|
|
3233
3233
|
const _hoisted_6$h = { class: "week-timeline__events" };
|
|
@@ -3261,7 +3261,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
3261
3261
|
}]),
|
|
3262
3262
|
onClick: ($event) => emit2("dayWasClicked", _ctx.time.dateStringFrom(day.dateTimeString))
|
|
3263
3263
|
}, [
|
|
3264
|
-
createElementVNode("div", _hoisted_3$
|
|
3264
|
+
createElementVNode("div", _hoisted_3$z, [
|
|
3265
3265
|
createElementVNode("div", _hoisted_4$m, toDisplayString(day.dayName.charAt(0).toUpperCase() + day.dayName.slice(1, 3).toLowerCase()), 1),
|
|
3266
3266
|
createElementVNode("div", _hoisted_5$k, toDisplayString(getDaysDate(day)), 1)
|
|
3267
3267
|
]),
|
|
@@ -3287,7 +3287,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
3287
3287
|
const WeekTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-18ecf6c3"]]);
|
|
3288
3288
|
const _hoisted_1$T = { class: "calendar-week__wrapper relative ps-3-5" };
|
|
3289
3289
|
const _hoisted_2$E = { class: "calendar-week" };
|
|
3290
|
-
const _hoisted_3$
|
|
3290
|
+
const _hoisted_3$y = { class: "calendar-week__events" };
|
|
3291
3291
|
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
3292
3292
|
__name: "Week",
|
|
3293
3293
|
props: {
|
|
@@ -3553,7 +3553,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
3553
3553
|
"day-intervals": dayIntervals.value,
|
|
3554
3554
|
"week-height": weekHeight.value
|
|
3555
3555
|
}, null, 8, ["time", "day-intervals", "week-height"])),
|
|
3556
|
-
createElementVNode("div", _hoisted_3$
|
|
3556
|
+
createElementVNode("div", _hoisted_3$y, [
|
|
3557
3557
|
(openBlock(true), createElementBlock(Fragment, null, renderList(days.value, (day, dayIndex) => {
|
|
3558
3558
|
return openBlock(), createBlock(Day, {
|
|
3559
3559
|
key: day.dateTimeString + mode.value + weekVersion.value,
|
|
@@ -3637,7 +3637,7 @@ ${_Errors.SUFFIX}`);
|
|
|
3637
3637
|
let Errors = _Errors;
|
|
3638
3638
|
const _hoisted_1$S = { class: "calendar-root-wrapper txt16" };
|
|
3639
3639
|
const _hoisted_2$D = ["data-lang"];
|
|
3640
|
-
const _hoisted_3$
|
|
3640
|
+
const _hoisted_3$x = {
|
|
3641
3641
|
key: 0,
|
|
3642
3642
|
class: "top-bar-loader"
|
|
3643
3643
|
};
|
|
@@ -3829,7 +3829,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
3829
3829
|
}, [
|
|
3830
3830
|
createVNode(Transition, { name: "loading" }, {
|
|
3831
3831
|
default: withCtx(() => [
|
|
3832
|
-
__props.isLoading ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
3832
|
+
__props.isLoading ? (openBlock(), createElementBlock("div", _hoisted_3$x)) : createCommentVNode("", true)
|
|
3833
3833
|
]),
|
|
3834
3834
|
_: 1
|
|
3835
3835
|
}),
|
|
@@ -3967,7 +3967,7 @@ const _hoisted_2$C = {
|
|
|
3967
3967
|
key: 0,
|
|
3968
3968
|
class: "dots"
|
|
3969
3969
|
};
|
|
3970
|
-
const _hoisted_3$
|
|
3970
|
+
const _hoisted_3$w = ["onClick"];
|
|
3971
3971
|
const _hoisted_4$l = { class: "Handlers" };
|
|
3972
3972
|
const GAP_PERCENT = 1;
|
|
3973
3973
|
const VELOCITY_SAMPLE_DURATION = 100;
|
|
@@ -4403,7 +4403,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
4403
4403
|
key: i2,
|
|
4404
4404
|
class: normalizeClass(["dot", { current: unref(activeSlideIndex) === i2 - 1 }]),
|
|
4405
4405
|
onClick: ($event) => goToSlide(i2 - 1)
|
|
4406
|
-
}, null, 10, _hoisted_3$
|
|
4406
|
+
}, null, 10, _hoisted_3$w);
|
|
4407
4407
|
}), 128))
|
|
4408
4408
|
])) : createCommentVNode("", true),
|
|
4409
4409
|
createElementVNode("div", _hoisted_4$l, [
|
|
@@ -10258,7 +10258,7 @@ const _hoisted_1$1$1 = {
|
|
|
10258
10258
|
style: { display: "flex", position: "relative" }
|
|
10259
10259
|
};
|
|
10260
10260
|
const _hoisted_2$1$1 = ["width", "height", "viewBox"];
|
|
10261
|
-
const _hoisted_3$
|
|
10261
|
+
const _hoisted_3$v = { class: "layer-rectangles" };
|
|
10262
10262
|
const _hoisted_4$k = ["transform", "onMouseover"];
|
|
10263
10263
|
const _hoisted_5$j = ["width", "height"];
|
|
10264
10264
|
const _hoisted_6$g = {
|
|
@@ -10276,7 +10276,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10276
10276
|
viewBox: `0 0 ${_ctx.size.width} ${_ctx.size.height}`,
|
|
10277
10277
|
ref: "el"
|
|
10278
10278
|
}, [
|
|
10279
|
-
createElementVNode("g", _hoisted_3$
|
|
10279
|
+
createElementVNode("g", _hoisted_3$v, [
|
|
10280
10280
|
(openBlock(true), createElementBlock(
|
|
10281
10281
|
Fragment,
|
|
10282
10282
|
null,
|
|
@@ -10686,11 +10686,16 @@ const SRC_VALUE_COMPONENTS = /* @__PURE__ */ new Set(["img", "iframe"]);
|
|
|
10686
10686
|
function useTableData(options) {
|
|
10687
10687
|
const sortField = ref("");
|
|
10688
10688
|
const sortDirection = ref("ASC");
|
|
10689
|
-
|
|
10690
|
-
|
|
10691
|
-
|
|
10692
|
-
|
|
10693
|
-
|
|
10689
|
+
function getValue(value) {
|
|
10690
|
+
return value.value !== void 0 ? value.value : value;
|
|
10691
|
+
}
|
|
10692
|
+
const computedSchema = computed(() => {
|
|
10693
|
+
return useBglSchema({
|
|
10694
|
+
schema: getValue(options.schema),
|
|
10695
|
+
columns: getValue(options.columns),
|
|
10696
|
+
data: options.data.value
|
|
10697
|
+
});
|
|
10698
|
+
});
|
|
10694
10699
|
function transform(rowData) {
|
|
10695
10700
|
const transformed = { ...rowData };
|
|
10696
10701
|
const schemaFields = computedSchema.value.filter((f2) => f2.id);
|
|
@@ -10718,7 +10723,8 @@ function useTableData(options) {
|
|
|
10718
10723
|
const computedSortField = computed(() => sortField.value ? `_transformed_${sortField.value}` : "");
|
|
10719
10724
|
const computedData = computed(() => {
|
|
10720
10725
|
const currentData = options.data.value;
|
|
10721
|
-
|
|
10726
|
+
const useServerSortValue = getValue(options.useServerSort);
|
|
10727
|
+
if (!sortField.value || useServerSortValue === true) {
|
|
10722
10728
|
return currentData.map(transform);
|
|
10723
10729
|
}
|
|
10724
10730
|
return currentData.map(transform).sort((a2, z2) => {
|
|
@@ -10766,7 +10772,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
10766
10772
|
__name: "DataPreview",
|
|
10767
10773
|
props: {
|
|
10768
10774
|
schema: { type: Function },
|
|
10769
|
-
|
|
10775
|
+
columns: {},
|
|
10770
10776
|
useServerSort: { type: Boolean },
|
|
10771
10777
|
selectable: { type: Boolean },
|
|
10772
10778
|
onLastItemVisible: { type: Function },
|
|
@@ -10783,7 +10789,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
10783
10789
|
} = useTableData({
|
|
10784
10790
|
data: data2,
|
|
10785
10791
|
schema: props2.schema,
|
|
10786
|
-
|
|
10792
|
+
columns: props2.columns,
|
|
10787
10793
|
useServerSort: false
|
|
10788
10794
|
});
|
|
10789
10795
|
const firstItem = computed(() => computedData.value[0] || {});
|
|
@@ -10803,7 +10809,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
10803
10809
|
};
|
|
10804
10810
|
}
|
|
10805
10811
|
});
|
|
10806
|
-
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-
|
|
10812
|
+
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-88ed9d8d"]]);
|
|
10807
10813
|
function useTableSelection(options) {
|
|
10808
10814
|
const allSelectorEl = ref();
|
|
10809
10815
|
const computedSelectedItems = computed(() => options.selectedItems.value);
|
|
@@ -11437,7 +11443,7 @@ const _hoisted_1$N = {
|
|
|
11437
11443
|
class: "loading-table-wrapper z-99 h-100 w-100 absolute inset"
|
|
11438
11444
|
};
|
|
11439
11445
|
const _hoisted_2$A = { class: "infinite-wrapper" };
|
|
11440
|
-
const _hoisted_3$
|
|
11446
|
+
const _hoisted_3$u = { class: "row first-row" };
|
|
11441
11447
|
const _hoisted_4$j = { key: 0 };
|
|
11442
11448
|
const _hoisted_5$i = ["onClick"];
|
|
11443
11449
|
const _hoisted_6$f = { class: "flex" };
|
|
@@ -11450,7 +11456,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
11450
11456
|
props: /* @__PURE__ */ mergeModels({
|
|
11451
11457
|
data: {},
|
|
11452
11458
|
schema: { type: Function },
|
|
11453
|
-
|
|
11459
|
+
columns: {},
|
|
11454
11460
|
useServerSort: { type: Boolean },
|
|
11455
11461
|
selectable: { type: Boolean },
|
|
11456
11462
|
onLastItemVisible: { type: Function }
|
|
@@ -11467,7 +11473,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
11467
11473
|
emits: /* @__PURE__ */ mergeModels(["update:selectedItems", "orderBy", "select", "lastItemVisible"], ["update:loading", "update:itemHeight", "update:selectedItems"]),
|
|
11468
11474
|
setup(__props, { emit: __emit }) {
|
|
11469
11475
|
useCssVars((_ctx) => ({
|
|
11470
|
-
"
|
|
11476
|
+
"53d3340a": unref(computedItemHeight)
|
|
11471
11477
|
}));
|
|
11472
11478
|
const props2 = __props;
|
|
11473
11479
|
const emit2 = __emit;
|
|
@@ -11482,21 +11488,18 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
11482
11488
|
}
|
|
11483
11489
|
);
|
|
11484
11490
|
const data2 = computed(() => props2.data);
|
|
11491
|
+
const schema = computed(() => props2.schema);
|
|
11492
|
+
const columns = computed(() => props2.columns);
|
|
11493
|
+
const useServerSort = computed(() => props2.useServerSort);
|
|
11485
11494
|
const {
|
|
11486
11495
|
computedSchema,
|
|
11487
11496
|
computedData,
|
|
11488
11497
|
sortField,
|
|
11489
11498
|
sortDirection,
|
|
11490
11499
|
toggleSort
|
|
11491
|
-
} = useTableData({
|
|
11492
|
-
|
|
11493
|
-
|
|
11494
|
-
showFields: props2.showFields,
|
|
11495
|
-
useServerSort: props2.useServerSort,
|
|
11496
|
-
onSort: (field, direction) => {
|
|
11497
|
-
emit2("orderBy", `${field} ${direction}`.trim());
|
|
11498
|
-
}
|
|
11499
|
-
});
|
|
11500
|
+
} = useTableData({ data: data2, schema, columns, useServerSort, onSort: (field, direction) => {
|
|
11501
|
+
emit2("orderBy", `${field} ${direction}`.trim());
|
|
11502
|
+
} });
|
|
11500
11503
|
const {
|
|
11501
11504
|
computedSelectedItems,
|
|
11502
11505
|
isSelectable,
|
|
@@ -11569,7 +11572,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
11569
11572
|
createElementVNode("div", { class: "loading-table-animation absolute oval" }, null, -1)
|
|
11570
11573
|
]))) : (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 1 }, unref(wrapperProps))), [
|
|
11571
11574
|
createElementVNode("table", _hoisted_2$A, [
|
|
11572
|
-
createElementVNode("thead", _hoisted_3$
|
|
11575
|
+
createElementVNode("thead", _hoisted_3$u, [
|
|
11573
11576
|
unref(isSelectable) ? (openBlock(), createElementBlock("th", _hoisted_4$j, [
|
|
11574
11577
|
createElementVNode("input", {
|
|
11575
11578
|
ref_key: "allSelectorEl",
|
|
@@ -11592,7 +11595,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
11592
11595
|
createElementVNode("div", {
|
|
11593
11596
|
class: normalizeClass(["list-arrows", { sorted: unref(sortField) === field.id }])
|
|
11594
11597
|
}, [
|
|
11595
|
-
createVNode(unref(
|
|
11598
|
+
createVNode(unref(_sfc_main$s), {
|
|
11596
11599
|
class: normalizeClass({ desc: unref(sortDirection) === "DESC" }),
|
|
11597
11600
|
icon: "keyboard_arrow_up"
|
|
11598
11601
|
}, null, 8, ["class"])
|
|
@@ -11651,7 +11654,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
11651
11654
|
};
|
|
11652
11655
|
}
|
|
11653
11656
|
});
|
|
11654
|
-
const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-
|
|
11657
|
+
const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-c730b48b"]]);
|
|
11655
11658
|
function useDraggable(options = {}) {
|
|
11656
11659
|
const isDragging = ref(false);
|
|
11657
11660
|
const dragElement = ref(null);
|
|
@@ -14754,6 +14757,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
14754
14757
|
flat: { type: Boolean },
|
|
14755
14758
|
disabled: { type: Boolean },
|
|
14756
14759
|
icon: {},
|
|
14760
|
+
color: {},
|
|
14757
14761
|
triggerClass: {},
|
|
14758
14762
|
iconEnd: {},
|
|
14759
14763
|
border: { type: Boolean },
|
|
@@ -14820,8 +14824,9 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
14820
14824
|
thin: _ctx.thin,
|
|
14821
14825
|
flat: _ctx.flat,
|
|
14822
14826
|
outline: _ctx.outline,
|
|
14823
|
-
round: _ctx.round
|
|
14824
|
-
|
|
14827
|
+
round: _ctx.round,
|
|
14828
|
+
color: _ctx.color
|
|
14829
|
+
}, null, 8, ["class", "iconEnd", "icon", "value", "thin", "flat", "outline", "round", "color"])
|
|
14825
14830
|
])
|
|
14826
14831
|
]),
|
|
14827
14832
|
_: 3
|
|
@@ -15201,7 +15206,7 @@ function denullify(itemData, fieldID) {
|
|
|
15201
15206
|
return itemData ? itemData[fieldID] : void 0;
|
|
15202
15207
|
}
|
|
15203
15208
|
const isDate$1 = (dateToTest) => !Number.isNaN(Date.parse(dateToTest));
|
|
15204
|
-
function getFallbackSchema(data2,
|
|
15209
|
+
function getFallbackSchema(data2, columns) {
|
|
15205
15210
|
const keys4 = Array.from(new Set((data2 ?? []).flatMap(Object.keys)));
|
|
15206
15211
|
const schema = keys4.map((id) => ({
|
|
15207
15212
|
id,
|
|
@@ -15212,7 +15217,7 @@ function getFallbackSchema(data2, showFields) {
|
|
|
15212
15217
|
return val;
|
|
15213
15218
|
}
|
|
15214
15219
|
}));
|
|
15215
|
-
return
|
|
15220
|
+
return columns ? schema.filter((f2) => columns.includes(f2.id) || !f2.id) : schema;
|
|
15216
15221
|
}
|
|
15217
15222
|
function sleep(ms = 100) {
|
|
15218
15223
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -15293,6 +15298,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
15293
15298
|
modelValue: { default: void 0 },
|
|
15294
15299
|
schema: { default: void 0 },
|
|
15295
15300
|
tag: { default: "form" },
|
|
15301
|
+
class: { default: "" },
|
|
15296
15302
|
onSubmit: {}
|
|
15297
15303
|
},
|
|
15298
15304
|
emits: ["update:modelValue"],
|
|
@@ -15396,6 +15402,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
15396
15402
|
key: 0,
|
|
15397
15403
|
ref_key: "form",
|
|
15398
15404
|
ref: form,
|
|
15405
|
+
class: normalizeClass(props2.class),
|
|
15399
15406
|
onSubmit: withModifiers(handleSubmit, ["prevent"])
|
|
15400
15407
|
}, [
|
|
15401
15408
|
resolvedSchema.value ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(resolvedSchema.value, (field) => {
|
|
@@ -15409,10 +15416,11 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
15409
15416
|
validateForm,
|
|
15410
15417
|
formState: formState.value
|
|
15411
15418
|
})
|
|
15412
|
-
],
|
|
15419
|
+
], 34)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(resolvedSchema.value, (field) => {
|
|
15413
15420
|
return openBlock(), createBlock(resolveDynamicComponent(renderSchemaField(field)), {
|
|
15414
|
-
key: field.id
|
|
15415
|
-
|
|
15421
|
+
key: field.id,
|
|
15422
|
+
class: normalizeClass(props2.class)
|
|
15423
|
+
}, null, 8, ["class"]);
|
|
15416
15424
|
}), 128))
|
|
15417
15425
|
], 64)) : createCommentVNode("", true),
|
|
15418
15426
|
formState.value === "success" ? renderSlot(_ctx.$slots, "success", { key: 1 }) : createCommentVNode("", true),
|
|
@@ -15426,7 +15434,7 @@ const _hoisted_2$y = {
|
|
|
15426
15434
|
key: 0,
|
|
15427
15435
|
class: "ps-025 border-start mb-05"
|
|
15428
15436
|
};
|
|
15429
|
-
const _hoisted_3$
|
|
15437
|
+
const _hoisted_3$t = { class: "bg-gray-80 -my-05 px-025 pt-065 txt-center" };
|
|
15430
15438
|
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
15431
15439
|
__name: "FieldArray",
|
|
15432
15440
|
props: {
|
|
@@ -15509,7 +15517,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
15509
15517
|
"onUpdate:modelValue": [($event) => data2.value[i2] = $event, emitValue],
|
|
15510
15518
|
schema: _ctx.schema
|
|
15511
15519
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "schema"]),
|
|
15512
|
-
createElementVNode("div", _hoisted_3$
|
|
15520
|
+
createElementVNode("div", _hoisted_3$t, [
|
|
15513
15521
|
props2.delete ? (openBlock(), createBlock(unref(Btn), {
|
|
15514
15522
|
key: 0,
|
|
15515
15523
|
icon: "delete",
|
|
@@ -15570,7 +15578,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
15570
15578
|
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-73f1d9ad"]]);
|
|
15571
15579
|
const _hoisted_1$J = ["title"];
|
|
15572
15580
|
const _hoisted_2$x = ["id", "value", "required"];
|
|
15573
|
-
const _hoisted_3$
|
|
15581
|
+
const _hoisted_3$s = ["for"];
|
|
15574
15582
|
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
15575
15583
|
__name: "CheckInput",
|
|
15576
15584
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -15579,19 +15587,18 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
15579
15587
|
title: {},
|
|
15580
15588
|
small: { type: Boolean },
|
|
15581
15589
|
required: { type: Boolean },
|
|
15582
|
-
defaultValue: {
|
|
15590
|
+
defaultValue: { default: false },
|
|
15583
15591
|
value: {}
|
|
15584
15592
|
}, {
|
|
15585
|
-
"modelValue": {
|
|
15593
|
+
"modelValue": { default: void 0 },
|
|
15586
15594
|
"modelModifiers": {}
|
|
15587
15595
|
}),
|
|
15588
15596
|
emits: ["update:modelValue"],
|
|
15589
15597
|
setup(__props) {
|
|
15590
|
-
const
|
|
15591
|
-
const inputId = computed(() => props2.id || Math.random().toString(36).slice(7));
|
|
15598
|
+
const inputId = computed(() => __props.id || Math.random().toString(36).slice(7));
|
|
15592
15599
|
const checked = useModel(__props, "modelValue");
|
|
15593
15600
|
onMounted(() => {
|
|
15594
|
-
if (checked.value === void 0) checked.value =
|
|
15601
|
+
if (checked.value === void 0) checked.value = __props.defaultValue;
|
|
15595
15602
|
});
|
|
15596
15603
|
return (_ctx, _cache) => {
|
|
15597
15604
|
return openBlock(), createElementBlock("div", {
|
|
@@ -15612,18 +15619,18 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
15612
15619
|
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
15613
15620
|
createTextVNode(toDisplayString(_ctx.label), 1)
|
|
15614
15621
|
], true)
|
|
15615
|
-
], 8, _hoisted_3$
|
|
15622
|
+
], 8, _hoisted_3$s)
|
|
15616
15623
|
], 10, _hoisted_1$J);
|
|
15617
15624
|
};
|
|
15618
15625
|
}
|
|
15619
15626
|
});
|
|
15620
|
-
const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-
|
|
15627
|
+
const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-0c86700b"]]);
|
|
15621
15628
|
const _hoisted_1$I = { class: "mb-05" };
|
|
15622
15629
|
const _hoisted_2$w = {
|
|
15623
15630
|
key: 0,
|
|
15624
15631
|
class: "label txt-start"
|
|
15625
15632
|
};
|
|
15626
|
-
const _hoisted_3$
|
|
15633
|
+
const _hoisted_3$r = {
|
|
15627
15634
|
key: 1,
|
|
15628
15635
|
class: "code-editor-wrap grid rounded p-1 overflow hm-300px ltr txt-start relative h-100p"
|
|
15629
15636
|
};
|
|
@@ -15714,7 +15721,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
15714
15721
|
return (_ctx, _cache) => {
|
|
15715
15722
|
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
15716
15723
|
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$w, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
|
|
15717
|
-
unref(loaded) ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
15724
|
+
unref(loaded) ? (openBlock(), createElementBlock("div", _hoisted_3$r, [
|
|
15718
15725
|
createElementVNode("div", {
|
|
15719
15726
|
class: "relative block h-100",
|
|
15720
15727
|
style: normalizeStyle({ height: `calc(${unref(elHeight)} - 2rem)` })
|
|
@@ -15750,7 +15757,8 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
15750
15757
|
});
|
|
15751
15758
|
const CodeEditor = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-1fbc9b61"]]);
|
|
15752
15759
|
const _hoisted_1$H = ["title"];
|
|
15753
|
-
const _hoisted_2$v =
|
|
15760
|
+
const _hoisted_2$v = { class: "flex bg-input rounded px-025 colorInputPickWrap" };
|
|
15761
|
+
const _hoisted_3$q = ["id", "placeholder", "required"];
|
|
15754
15762
|
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
15755
15763
|
__name: "ColorInput",
|
|
15756
15764
|
props: {
|
|
@@ -15781,15 +15789,34 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
15781
15789
|
}, [
|
|
15782
15790
|
createElementVNode("label", null, [
|
|
15783
15791
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
15784
|
-
|
|
15785
|
-
|
|
15786
|
-
|
|
15787
|
-
|
|
15788
|
-
|
|
15789
|
-
|
|
15790
|
-
|
|
15791
|
-
|
|
15792
|
-
|
|
15792
|
+
createElementVNode("div", _hoisted_2$v, [
|
|
15793
|
+
withDirectives(createElementVNode("input", mergeProps({
|
|
15794
|
+
id: _ctx.id,
|
|
15795
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputVal.value = $event),
|
|
15796
|
+
class: ["border", { "no-edit": !_ctx.editMode, "opacity-1": !inputVal.value }],
|
|
15797
|
+
type: "color",
|
|
15798
|
+
placeholder: _ctx.placeholder || _ctx.label,
|
|
15799
|
+
required: _ctx.required
|
|
15800
|
+
}, _ctx.nativeInputAttrs), null, 16, _hoisted_3$q), [
|
|
15801
|
+
[vModelText, inputVal.value]
|
|
15802
|
+
]),
|
|
15803
|
+
withDirectives(createElementVNode("input", {
|
|
15804
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => inputVal.value = $event),
|
|
15805
|
+
class: "flex-grow-4 border colorInputPick",
|
|
15806
|
+
style: { "width": "50px" },
|
|
15807
|
+
type: "text",
|
|
15808
|
+
placeholder: "Enter color"
|
|
15809
|
+
}, null, 512), [
|
|
15810
|
+
[vModelText, inputVal.value]
|
|
15811
|
+
]),
|
|
15812
|
+
createVNode(unref(Btn), {
|
|
15813
|
+
class: normalizeClass({ "not-allowed opacity-3": !inputVal.value }),
|
|
15814
|
+
round: "",
|
|
15815
|
+
flat: "",
|
|
15816
|
+
thin: "",
|
|
15817
|
+
icon: "clear",
|
|
15818
|
+
onClick: _cache[2] || (_cache[2] = ($event) => inputVal.value = "")
|
|
15819
|
+
}, null, 8, ["class"])
|
|
15793
15820
|
])
|
|
15794
15821
|
])
|
|
15795
15822
|
], 10, _hoisted_1$H);
|
|
@@ -15840,6 +15867,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
15840
15867
|
max: {},
|
|
15841
15868
|
timezone: { default: "UTC" },
|
|
15842
15869
|
mode: { default: "day" },
|
|
15870
|
+
defaultValue: {},
|
|
15843
15871
|
firstDayOfWeek: { default: WEEK_START_DAY.SUNDAY },
|
|
15844
15872
|
locale: { default: "" },
|
|
15845
15873
|
center: { type: Boolean }
|
|
@@ -15855,23 +15883,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
15855
15883
|
function useFormatting() {
|
|
15856
15884
|
const formatDisplayDate = (date2) => {
|
|
15857
15885
|
if (!date2) return "";
|
|
15858
|
-
|
|
15859
|
-
const options = {
|
|
15860
|
-
year: "numeric",
|
|
15861
|
-
month: "short",
|
|
15862
|
-
day: "numeric",
|
|
15863
|
-
...props2.enableTime && {
|
|
15864
|
-
hour: "2-digit",
|
|
15865
|
-
minute: "2-digit"
|
|
15866
|
-
},
|
|
15867
|
-
timeZone: props2.timezone
|
|
15868
|
-
};
|
|
15869
|
-
return dateObj.toLocaleString(props2.locale || void 0, options);
|
|
15870
|
-
};
|
|
15871
|
-
const formatDate2 = (date2) => {
|
|
15872
|
-
if (!date2) return "";
|
|
15873
|
-
const dateObj = typeof date2 === "string" ? new Date(date2) : date2;
|
|
15874
|
-
return props2.enableTime ? dateObj.toISOString().slice(0, 16) : dateObj.toISOString().split("T")[0];
|
|
15886
|
+
return formatDate(date2, props2.enableTime ? "dd.mm.yy HH:MM" : "dd.mm.yy");
|
|
15875
15887
|
};
|
|
15876
15888
|
const parseUserInput = (input) => {
|
|
15877
15889
|
const date2 = new Date(input);
|
|
@@ -15892,7 +15904,6 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
15892
15904
|
};
|
|
15893
15905
|
return {
|
|
15894
15906
|
formatDisplayDate,
|
|
15895
|
-
formatDate: formatDate2,
|
|
15896
15907
|
parseUserInput
|
|
15897
15908
|
};
|
|
15898
15909
|
}
|
|
@@ -15918,13 +15929,14 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
15918
15929
|
};
|
|
15919
15930
|
}
|
|
15920
15931
|
function useDateState() {
|
|
15921
|
-
const { formatDisplayDate
|
|
15932
|
+
const { formatDisplayDate } = useFormatting();
|
|
15922
15933
|
const formattedDisplayValue2 = computed(() => formatDisplayDate(props2.modelValue));
|
|
15923
|
-
const formattedMin2 = computed(() =>
|
|
15924
|
-
const formattedMax2 = computed(() =>
|
|
15934
|
+
const formattedMin2 = computed(() => formatDate(props2.min, props2.enableTime ? "dd.mm.yy HH:MM" : "dd.mm.yy"));
|
|
15935
|
+
const formattedMax2 = computed(() => formatDate(props2.max, props2.enableTime ? "dd.mm.yy HH:MM" : "dd.mm.yy"));
|
|
15925
15936
|
const selectedDate2 = computed(() => {
|
|
15926
|
-
|
|
15927
|
-
|
|
15937
|
+
const value = props2.modelValue || props2.defaultValue;
|
|
15938
|
+
if (!value) return null;
|
|
15939
|
+
return typeof value === "string" ? new Date(value) : value;
|
|
15928
15940
|
});
|
|
15929
15941
|
return {
|
|
15930
15942
|
formattedDisplayValue: formattedDisplayValue2,
|
|
@@ -16129,14 +16141,14 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
16129
16141
|
function selectDate(date2) {
|
|
16130
16142
|
var _a, _b;
|
|
16131
16143
|
if (!date2 || !props2.editMode) return;
|
|
16132
|
-
const tzOffset = (/* @__PURE__ */ new Date()).getTimezoneOffset();
|
|
16133
|
-
const newDate = new Date(date2.getFullYear(), date2.getMonth(), date2.getDate());
|
|
16134
16144
|
if (props2.enableTime) {
|
|
16145
|
+
const newDate = new Date(date2.getFullYear(), date2.getMonth(), date2.getDate());
|
|
16135
16146
|
const currentHours = ((_a = selectedDate.value) == null ? void 0 : _a.getHours()) ?? (/* @__PURE__ */ new Date()).getHours();
|
|
16136
16147
|
const currentMinutes = ((_b = selectedDate.value) == null ? void 0 : _b.getMinutes()) ?? (/* @__PURE__ */ new Date()).getMinutes();
|
|
16137
16148
|
newDate.setHours(currentHours);
|
|
16138
16149
|
newDate.setMinutes(currentMinutes);
|
|
16139
16150
|
if (props2.timezone === "UTC") {
|
|
16151
|
+
const tzOffset = (/* @__PURE__ */ new Date()).getTimezoneOffset();
|
|
16140
16152
|
newDate.setMinutes(newDate.getMinutes() + tzOffset);
|
|
16141
16153
|
}
|
|
16142
16154
|
emit2("update:modelValue", newDate.toISOString());
|
|
@@ -16354,7 +16366,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
16354
16366
|
};
|
|
16355
16367
|
}
|
|
16356
16368
|
});
|
|
16357
|
-
const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-
|
|
16369
|
+
const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-ca4c1d9b"]]);
|
|
16358
16370
|
const _hoisted_1$F = ["title"];
|
|
16359
16371
|
const _hoisted_2$t = { key: 0 };
|
|
16360
16372
|
const _hoisted_3$o = {
|
|
@@ -16416,32 +16428,12 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
16416
16428
|
const time = new Time(props2.firstDayOfWeek, props2.locale);
|
|
16417
16429
|
function formatDisplayDate(date2) {
|
|
16418
16430
|
if (!date2) return "";
|
|
16419
|
-
|
|
16420
|
-
|
|
16421
|
-
return dateObj.toLocaleString(props2.locale || void 0, {
|
|
16422
|
-
year: "numeric",
|
|
16423
|
-
month: "short",
|
|
16424
|
-
day: "numeric",
|
|
16425
|
-
hour: "2-digit",
|
|
16426
|
-
minute: "2-digit",
|
|
16427
|
-
timeZone: props2.timezone
|
|
16428
|
-
});
|
|
16429
|
-
}
|
|
16430
|
-
return dateObj.toLocaleString(props2.locale || void 0, {
|
|
16431
|
-
year: "numeric",
|
|
16432
|
-
month: "short",
|
|
16433
|
-
day: "numeric",
|
|
16434
|
-
timeZone: props2.timezone
|
|
16435
|
-
});
|
|
16436
|
-
}
|
|
16437
|
-
function formatDate2(date2) {
|
|
16438
|
-
if (!date2) return "";
|
|
16439
|
-
const dateObj = typeof date2 === "string" ? new Date(date2) : date2;
|
|
16440
|
-
return props2.enableTime ? dateObj.toISOString().slice(0, 16) : dateObj.toISOString().split("T")[0];
|
|
16431
|
+
console.log("date", date2);
|
|
16432
|
+
return formatDate(date2, props2.enableTime ? "dd.mm.yy HH:MM" : "dd.mm.yy", props2.locale);
|
|
16441
16433
|
}
|
|
16442
16434
|
const formattedDisplayValue = computed(() => formatDisplayDate(props2.modelValue));
|
|
16443
|
-
const formattedMin = computed(() =>
|
|
16444
|
-
const formattedMax = computed(() =>
|
|
16435
|
+
const formattedMin = computed(() => formatDate(props2.min, props2.enableTime ? "dd.mm.yy HH:MM" : "dd.mm.yy"));
|
|
16436
|
+
const formattedMax = computed(() => formatDate(props2.max, props2.enableTime ? "dd.mm.yy HH:MM" : "dd.mm.yy"));
|
|
16445
16437
|
const selectedDate = computed(() => {
|
|
16446
16438
|
if (!props2.modelValue) return null;
|
|
16447
16439
|
return typeof props2.modelValue === "string" ? new Date(props2.modelValue) : props2.modelValue;
|
|
@@ -16751,7 +16743,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
16751
16743
|
};
|
|
16752
16744
|
}
|
|
16753
16745
|
});
|
|
16754
|
-
const DatePick = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-
|
|
16746
|
+
const DatePick = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-2550becf"]]);
|
|
16755
16747
|
const _hoisted_1$E = { class: "datetime-wrap" };
|
|
16756
16748
|
const _hoisted_2$s = {
|
|
16757
16749
|
key: 0,
|
|
@@ -17077,7 +17069,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
17077
17069
|
[_directive_lightbox, { src: file.url, download: true }]
|
|
17078
17070
|
]),
|
|
17079
17071
|
createElementVNode("div", _hoisted_5$e, [
|
|
17080
|
-
createVNode(unref(
|
|
17072
|
+
createVNode(unref(_sfc_main$s), {
|
|
17081
17073
|
icon: "draft",
|
|
17082
17074
|
size: 1.5
|
|
17083
17075
|
}),
|
|
@@ -17128,7 +17120,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
17128
17120
|
class: "multi-preview",
|
|
17129
17121
|
src: file.url,
|
|
17130
17122
|
alt: ""
|
|
17131
|
-
}, null, 8, ["src"])) : (openBlock(), createBlock(unref(
|
|
17123
|
+
}, null, 8, ["src"])) : (openBlock(), createBlock(unref(_sfc_main$s), {
|
|
17132
17124
|
key: 1,
|
|
17133
17125
|
icon: "draft",
|
|
17134
17126
|
class: "multi-preview"
|
|
@@ -17158,7 +17150,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
17158
17150
|
src: fileToUrl(fileQ.file),
|
|
17159
17151
|
alt: ""
|
|
17160
17152
|
}, null, 8, ["width", "src"])) : createCommentVNode("", true)
|
|
17161
|
-
], 64)) : (openBlock(), createBlock(unref(
|
|
17153
|
+
], 64)) : (openBlock(), createBlock(unref(_sfc_main$s), {
|
|
17162
17154
|
key: 1,
|
|
17163
17155
|
icon: "draft",
|
|
17164
17156
|
class: "multi-preview"
|
|
@@ -17169,7 +17161,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
17169
17161
|
style: normalizeStyle([`--p:${fileQ.progress}`, { "--b": "2px" }])
|
|
17170
17162
|
}, [
|
|
17171
17163
|
fileQ.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_11$3, toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : createCommentVNode("", true),
|
|
17172
|
-
createVNode(unref(
|
|
17164
|
+
createVNode(unref(_sfc_main$s), {
|
|
17173
17165
|
class: "success",
|
|
17174
17166
|
icon: "check"
|
|
17175
17167
|
})
|
|
@@ -17221,7 +17213,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
17221
17213
|
}, null, 8, ["src"]), [
|
|
17222
17214
|
[_directive_lightbox, { src: file.url, download: true }]
|
|
17223
17215
|
])
|
|
17224
|
-
])) : withDirectives((openBlock(), createBlock(unref(
|
|
17216
|
+
])) : withDirectives((openBlock(), createBlock(unref(_sfc_main$s), {
|
|
17225
17217
|
key: 1,
|
|
17226
17218
|
size: 4,
|
|
17227
17219
|
weight: "2",
|
|
@@ -17242,7 +17234,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
17242
17234
|
style: normalizeStyle([`--p:${fileQ.progress}`, { "--b": "2px" }])
|
|
17243
17235
|
}, [
|
|
17244
17236
|
fileQ.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_15$1, toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : createCommentVNode("", true),
|
|
17245
|
-
createVNode(unref(
|
|
17237
|
+
createVNode(unref(_sfc_main$s), {
|
|
17246
17238
|
class: "success",
|
|
17247
17239
|
icon: "check"
|
|
17248
17240
|
})
|
|
@@ -17266,7 +17258,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
17266
17258
|
browse
|
|
17267
17259
|
}, () => [
|
|
17268
17260
|
createElementVNode("p", _hoisted_16$1, [
|
|
17269
|
-
createVNode(unref(
|
|
17261
|
+
createVNode(unref(_sfc_main$s), { icon: "upload_2" }),
|
|
17270
17262
|
createElementVNode("span", _hoisted_17$1, toDisplayString(_ctx.dropPlaceholder || "Drag and Drop files here or click to upload"), 1)
|
|
17271
17263
|
])
|
|
17272
17264
|
], true) : createCommentVNode("", true)
|
|
@@ -17482,12 +17474,12 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
17482
17474
|
]
|
|
17483
17475
|
]),
|
|
17484
17476
|
_ctx.helptext ? (openBlock(), createElementBlock("p", _hoisted_4$d, toDisplayString(_ctx.helptext), 1)) : createCommentVNode("", true),
|
|
17485
|
-
_ctx.iconStart ? (openBlock(), createBlock(unref(
|
|
17477
|
+
_ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$s), {
|
|
17486
17478
|
key: 2,
|
|
17487
17479
|
class: "iconStart",
|
|
17488
17480
|
icon: _ctx.iconStart
|
|
17489
17481
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
17490
|
-
_ctx.icon ? (openBlock(), createBlock(unref(
|
|
17482
|
+
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$s), {
|
|
17491
17483
|
key: 3,
|
|
17492
17484
|
icon: _ctx.icon
|
|
17493
17485
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
@@ -17525,7 +17517,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
17525
17517
|
};
|
|
17526
17518
|
}
|
|
17527
17519
|
});
|
|
17528
|
-
const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-
|
|
17520
|
+
const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-af266bf2"]]);
|
|
17529
17521
|
const _hoisted_1$A = ["value", "autofocus", "onKeydown", "onPaste"];
|
|
17530
17522
|
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
17531
17523
|
__name: "OTP",
|
|
@@ -17669,9 +17661,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
17669
17661
|
const props2 = __props;
|
|
17670
17662
|
const password = useModel(__props, "modelValue");
|
|
17671
17663
|
const showPwd = useModel(__props, "showPwd");
|
|
17672
|
-
const toggleShowPwdIcon = computed(
|
|
17673
|
-
() => showPwd.value ? "visibility_off" : "visibility"
|
|
17674
|
-
);
|
|
17664
|
+
const toggleShowPwdIcon = computed(() => showPwd.value ? "visibility_off" : "visibility");
|
|
17675
17665
|
const inputType = computed(() => showPwd.value ? "text" : "password");
|
|
17676
17666
|
return (_ctx, _cache) => {
|
|
17677
17667
|
return openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
@@ -19728,6 +19718,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
19728
19718
|
hideLabel: { type: Boolean },
|
|
19729
19719
|
defaultValue: {},
|
|
19730
19720
|
clearable: { type: Boolean },
|
|
19721
|
+
placement: { default: "bottom-start" },
|
|
19731
19722
|
searchPlaceholder: {},
|
|
19732
19723
|
onSearch: {}
|
|
19733
19724
|
},
|
|
@@ -19893,7 +19884,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
19893
19884
|
ref: dropdown,
|
|
19894
19885
|
shown: unref(open),
|
|
19895
19886
|
"onUpdate:shown": _cache[9] || (_cache[9] = ($event) => isRef(open) ? open.value = $event : open = $event),
|
|
19896
|
-
placement:
|
|
19887
|
+
placement: _ctx.placement,
|
|
19897
19888
|
class: "bagel-input selectinput",
|
|
19898
19889
|
"no-auto-focus": ""
|
|
19899
19890
|
}, {
|
|
@@ -19927,7 +19918,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
19927
19918
|
_cache[6] || (_cache[6] = withKeys(withModifiers(($event) => navigate("up"), ["prevent"]), ["up"]))
|
|
19928
19919
|
]
|
|
19929
19920
|
}, [
|
|
19930
|
-
_ctx.icon ? (openBlock(), createBlock(unref(
|
|
19921
|
+
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$s), {
|
|
19931
19922
|
key: 0,
|
|
19932
19923
|
icon: _ctx.icon
|
|
19933
19924
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
@@ -19944,7 +19935,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
19944
19935
|
})
|
|
19945
19936
|
})
|
|
19946
19937
|
])) : createCommentVNode("", true),
|
|
19947
|
-
!_ctx.disabled ? (openBlock(), createBlock(unref(
|
|
19938
|
+
!_ctx.disabled ? (openBlock(), createBlock(unref(_sfc_main$s), mergeProps({
|
|
19948
19939
|
key: 3,
|
|
19949
19940
|
thin: ""
|
|
19950
19941
|
}, { icon: unref(open) ? "unfold_less" : "unfold_more" }), null, 16)) : createCommentVNode("", true)
|
|
@@ -19992,12 +19983,12 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
19992
19983
|
]
|
|
19993
19984
|
}, [
|
|
19994
19985
|
_ctx.multiselect ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
19995
|
-
isSelected(option2) ? (openBlock(), createBlock(unref(
|
|
19986
|
+
isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$s), {
|
|
19996
19987
|
key: 0,
|
|
19997
19988
|
size: 1.1,
|
|
19998
19989
|
icon: "select_check_box"
|
|
19999
19990
|
})) : createCommentVNode("", true),
|
|
20000
|
-
!isSelected(option2) ? (openBlock(), createBlock(unref(
|
|
19991
|
+
!isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$s), {
|
|
20001
19992
|
key: 1,
|
|
20002
19993
|
class: "opacity-3",
|
|
20003
19994
|
icon: "check_box_outline_blank",
|
|
@@ -20014,11 +20005,11 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
20014
20005
|
}, 8, ["style"])
|
|
20015
20006
|
]),
|
|
20016
20007
|
_: 3
|
|
20017
|
-
}, 8, ["shown"]);
|
|
20008
|
+
}, 8, ["shown", "placement"]);
|
|
20018
20009
|
};
|
|
20019
20010
|
}
|
|
20020
20011
|
});
|
|
20021
|
-
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-
|
|
20012
|
+
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-44384e8f"]]);
|
|
20022
20013
|
/*!
|
|
20023
20014
|
* Signature Pad v5.0.4 | https://github.com/szimek/signature_pad
|
|
20024
20015
|
* (c) 2024 Szymon Nowak | Released under the MIT license
|
|
@@ -23407,7 +23398,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
23407
23398
|
class: "flex table-row"
|
|
23408
23399
|
}, [
|
|
23409
23400
|
createElementVNode("div", _hoisted_5$8, [
|
|
23410
|
-
createVNode(unref(
|
|
23401
|
+
createVNode(unref(_sfc_main$s), { icon: "more_vert" })
|
|
23411
23402
|
]),
|
|
23412
23403
|
(openBlock(true), createElementBlock(Fragment, null, renderList((_a2 = unref(entityMeta)) == null ? void 0 : _a2.fields, (field) => {
|
|
23413
23404
|
return openBlock(), createElementBlock("div", {
|
|
@@ -23424,7 +23415,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
23424
23415
|
], 2);
|
|
23425
23416
|
}), 128)),
|
|
23426
23417
|
createElementVNode("div", _hoisted_6$7, [
|
|
23427
|
-
createVNode(unref(
|
|
23418
|
+
createVNode(unref(_sfc_main$s), {
|
|
23428
23419
|
icon: "delete",
|
|
23429
23420
|
onClick: ($event) => removeRow(index2)
|
|
23430
23421
|
}, null, 8, ["onClick"])
|
|
@@ -28216,7 +28207,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
28216
28207
|
}, {
|
|
28217
28208
|
trigger: withCtx(() => [
|
|
28218
28209
|
createElementVNode("span", _hoisted_2$f, [
|
|
28219
|
-
createVNode(unref(
|
|
28210
|
+
createVNode(unref(_sfc_main$s), {
|
|
28220
28211
|
icon: open.value ? "collapse_all" : "expand_all"
|
|
28221
28212
|
}, null, 8, ["icon"]),
|
|
28222
28213
|
unref(computedDropDownOptions).showFlags && unref(activeCountryCode) ? (openBlock(), createBlock(unref(Flag), {
|
|
@@ -28243,7 +28234,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
28243
28234
|
return openBlock(), createElementBlock("li", {
|
|
28244
28235
|
key: pb.iso2 + isPreferred(pb),
|
|
28245
28236
|
role: "option",
|
|
28246
|
-
class: "flex gap-075",
|
|
28237
|
+
class: "flex gap-075 pointer hover",
|
|
28247
28238
|
tabindex: "-1",
|
|
28248
28239
|
"aria-selected": unref(activeCountryCode) === pb.iso2 && !isPreferred(pb),
|
|
28249
28240
|
onClick: ($event) => unref(chooseCountry)(pb.iso2),
|
|
@@ -28270,7 +28261,6 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
28270
28261
|
disabled: _ctx.disabled,
|
|
28271
28262
|
type: "tel",
|
|
28272
28263
|
autocomplete: _ctx.autocomplete,
|
|
28273
|
-
class: "vti__input",
|
|
28274
28264
|
pattern: unref(computedInputOptions).pattern,
|
|
28275
28265
|
minlength: unref(computedInputOptions).minlength,
|
|
28276
28266
|
maxlength: unref(computedInputOptions).maxlength,
|
|
@@ -28295,7 +28285,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
28295
28285
|
};
|
|
28296
28286
|
}
|
|
28297
28287
|
});
|
|
28298
|
-
const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-
|
|
28288
|
+
const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-133e2b3f"]]);
|
|
28299
28289
|
const _hoisted_1$o = ["title"];
|
|
28300
28290
|
const _hoisted_2$e = ["for"];
|
|
28301
28291
|
const _hoisted_3$b = ["id", "title", "autocomplete", "type", "placeholder", "disabled", "required", "pattern"];
|
|
@@ -28432,12 +28422,12 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
28432
28422
|
[vModelText, unref(inputVal)]
|
|
28433
28423
|
]),
|
|
28434
28424
|
_ctx.helptext ? (openBlock(), createElementBlock("p", _hoisted_5$6, toDisplayString(_ctx.helptext), 1)) : createCommentVNode("", true),
|
|
28435
|
-
_ctx.iconStart ? (openBlock(), createBlock(unref(
|
|
28425
|
+
_ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$s), {
|
|
28436
28426
|
key: 3,
|
|
28437
28427
|
class: "iconStart",
|
|
28438
28428
|
icon: _ctx.iconStart
|
|
28439
28429
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
28440
|
-
_ctx.icon ? (openBlock(), createBlock(unref(
|
|
28430
|
+
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$s), {
|
|
28441
28431
|
key: 4,
|
|
28442
28432
|
icon: _ctx.icon
|
|
28443
28433
|
}, null, 8, ["icon"])) : createCommentVNode("", true)
|
|
@@ -28726,7 +28716,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
28726
28716
|
download: path_key.split("/").pop()
|
|
28727
28717
|
}, null, 8, ["href", "download"]),
|
|
28728
28718
|
createElementVNode("div", _hoisted_5$5, [
|
|
28729
|
-
createVNode(unref(
|
|
28719
|
+
createVNode(unref(_sfc_main$s), {
|
|
28730
28720
|
icon: "draft",
|
|
28731
28721
|
size: 1.5
|
|
28732
28722
|
}),
|
|
@@ -28769,7 +28759,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
28769
28759
|
key: 0,
|
|
28770
28760
|
pathKey: path_key,
|
|
28771
28761
|
class: "multi-preview"
|
|
28772
|
-
}, null, 8, ["pathKey"])) : (openBlock(), createBlock(unref(
|
|
28762
|
+
}, null, 8, ["pathKey"])) : (openBlock(), createBlock(unref(_sfc_main$s), {
|
|
28773
28763
|
key: 1,
|
|
28774
28764
|
icon: "description",
|
|
28775
28765
|
class: "multi-preview"
|
|
@@ -28796,7 +28786,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
28796
28786
|
class: "multi-preview",
|
|
28797
28787
|
src: fileToUrl(file.file),
|
|
28798
28788
|
alt: ""
|
|
28799
|
-
}, null, 8, ["src"])) : (openBlock(), createBlock(unref(
|
|
28789
|
+
}, null, 8, ["src"])) : (openBlock(), createBlock(unref(_sfc_main$s), {
|
|
28800
28790
|
key: 1,
|
|
28801
28791
|
icon: "description",
|
|
28802
28792
|
class: "multi-preview"
|
|
@@ -28807,7 +28797,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
28807
28797
|
style: normalizeStyle([{ "--p": file.progress }, { "--b": "2px" }])
|
|
28808
28798
|
}, [
|
|
28809
28799
|
file.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_11$2, toDisplayString(file.progress.toFixed(0)), 1)) : createCommentVNode("", true),
|
|
28810
|
-
createVNode(unref(
|
|
28800
|
+
createVNode(unref(_sfc_main$s), {
|
|
28811
28801
|
class: "success",
|
|
28812
28802
|
icon: "check_circle"
|
|
28813
28803
|
})
|
|
@@ -28855,7 +28845,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
28855
28845
|
}, null, 8, ["pathKey"]), [
|
|
28856
28846
|
[_directive_lightbox, { src: unref(pathKeyToURL)(path_key), download: true }]
|
|
28857
28847
|
])
|
|
28858
|
-
])) : withDirectives((openBlock(), createBlock(unref(
|
|
28848
|
+
])) : withDirectives((openBlock(), createBlock(unref(_sfc_main$s), {
|
|
28859
28849
|
key: 1,
|
|
28860
28850
|
size: 4,
|
|
28861
28851
|
weight: "2",
|
|
@@ -28876,7 +28866,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
28876
28866
|
style: normalizeStyle([{ "--p": file.progress }, { "--b": "2px" }])
|
|
28877
28867
|
}, [
|
|
28878
28868
|
file.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_15, toDisplayString(file.progress.toFixed(0)), 1)) : createCommentVNode("", true),
|
|
28879
|
-
createVNode(unref(
|
|
28869
|
+
createVNode(unref(_sfc_main$s), {
|
|
28880
28870
|
class: "success",
|
|
28881
28871
|
icon: "check_circle"
|
|
28882
28872
|
})
|
|
@@ -28900,7 +28890,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
28900
28890
|
browse
|
|
28901
28891
|
}, () => [
|
|
28902
28892
|
createElementVNode("p", _hoisted_16, [
|
|
28903
|
-
createVNode(unref(
|
|
28893
|
+
createVNode(unref(_sfc_main$s), { icon: "upload_2" }),
|
|
28904
28894
|
createElementVNode("span", _hoisted_17, toDisplayString(_ctx.dropPlaceholder || "Drag and Drop files here or click to upload"), 1)
|
|
28905
28895
|
])
|
|
28906
28896
|
], true) : createCommentVNode("", true)
|
|
@@ -33366,7 +33356,6 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
33366
33356
|
};
|
|
33367
33357
|
}
|
|
33368
33358
|
});
|
|
33369
|
-
const Icon = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-b28cd148"]]);
|
|
33370
33359
|
const _hoisted_1$l = ["src", "title", "width", "height", "marginwidth", "marginheight", "csp", "scrolling", "srcset"];
|
|
33371
33360
|
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
33372
33361
|
__name: "IframeVue",
|
|
@@ -33539,7 +33528,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
33539
33528
|
height: unref(normalizeDimension)(_ctx.height)
|
|
33540
33529
|
})
|
|
33541
33530
|
}, [
|
|
33542
|
-
createVNode(unref(
|
|
33531
|
+
createVNode(unref(_sfc_main$s), { name: "broken_image" })
|
|
33543
33532
|
], 4)) : (openBlock(), createBlock(unref(Skeleton), {
|
|
33544
33533
|
key: 3,
|
|
33545
33534
|
class: "img-web-kit",
|
|
@@ -33569,7 +33558,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
33569
33558
|
onClick: nav.onClick
|
|
33570
33559
|
}, {
|
|
33571
33560
|
default: withCtx(() => [
|
|
33572
|
-
createVNode(unref(
|
|
33561
|
+
createVNode(unref(_sfc_main$s), {
|
|
33573
33562
|
icon: nav.icon,
|
|
33574
33563
|
size: 1.4,
|
|
33575
33564
|
class: "m-0 line-height-14"
|
|
@@ -33671,7 +33660,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
33671
33660
|
class: "nav-button px-075 me-auto w-100"
|
|
33672
33661
|
}, {
|
|
33673
33662
|
default: withCtx(() => [
|
|
33674
|
-
createVNode(unref(
|
|
33663
|
+
createVNode(unref(_sfc_main$s), {
|
|
33675
33664
|
icon: nav.icon,
|
|
33676
33665
|
size: 1.4
|
|
33677
33666
|
}, null, 8, ["icon"]),
|
|
@@ -33898,14 +33887,15 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
33898
33887
|
const tabsWrap = ref(void 0);
|
|
33899
33888
|
const tabs = ref([]);
|
|
33900
33889
|
function updateIndicator() {
|
|
33901
|
-
|
|
33902
|
-
|
|
33903
|
-
const
|
|
33904
|
-
|
|
33905
|
-
|
|
33890
|
+
nextTick(() => {
|
|
33891
|
+
if (!tabsWrap.value) return;
|
|
33892
|
+
const activeTab = tabs.value.find((tab) => tab.classList.contains("active"));
|
|
33893
|
+
if (activeTab) {
|
|
33894
|
+
const { offsetLeft, offsetWidth } = activeTab;
|
|
33895
|
+
tabsWrap.value.style.setProperty("--indicator-left", `${offsetLeft}px`);
|
|
33906
33896
|
tabsWrap.value.style.setProperty("--indicator-width", `${offsetWidth}px`);
|
|
33907
33897
|
}
|
|
33908
|
-
}
|
|
33898
|
+
});
|
|
33909
33899
|
}
|
|
33910
33900
|
function selectTab(tab) {
|
|
33911
33901
|
currentTab.value = typeof tab === "string" ? tab : tab.id;
|
|
@@ -33938,6 +33928,15 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
33938
33928
|
updateIndicator();
|
|
33939
33929
|
window.addEventListener("resize", updateIndicator);
|
|
33940
33930
|
});
|
|
33931
|
+
watch(
|
|
33932
|
+
() => tabs.value,
|
|
33933
|
+
() => {
|
|
33934
|
+
nextTick(() => {
|
|
33935
|
+
updateIndicator();
|
|
33936
|
+
});
|
|
33937
|
+
},
|
|
33938
|
+
{ deep: true }
|
|
33939
|
+
);
|
|
33941
33940
|
onBeforeUnmount(() => {
|
|
33942
33941
|
window.removeEventListener("resize", updateIndicator);
|
|
33943
33942
|
});
|
|
@@ -33955,7 +33954,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
33955
33954
|
class: normalizeClass([{ active: isActive(tab) }, "bgl_tab relative z-1"]),
|
|
33956
33955
|
onClick: ($event) => selectTab(tab)
|
|
33957
33956
|
}, [
|
|
33958
|
-
typeof tab !== "string" && tab.icon ? (openBlock(), createBlock(unref(
|
|
33957
|
+
typeof tab !== "string" && tab.icon ? (openBlock(), createBlock(unref(_sfc_main$s), {
|
|
33959
33958
|
key: 0,
|
|
33960
33959
|
icon: tab.icon
|
|
33961
33960
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
@@ -33967,7 +33966,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
33967
33966
|
};
|
|
33968
33967
|
}
|
|
33969
33968
|
});
|
|
33970
|
-
const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-
|
|
33969
|
+
const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-6ece2018"]]);
|
|
33971
33970
|
const _hoisted_1$e = { class: "no-margin ellipsis line-height-14 pb-025" };
|
|
33972
33971
|
const _hoisted_2$9 = { class: "txt12 no-margin txt-gray ellipsis" };
|
|
33973
33972
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
@@ -33997,7 +33996,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
33997
33996
|
src: _ctx.src,
|
|
33998
33997
|
size: 40
|
|
33999
33998
|
}, null, 8, ["name", "src"])) : createCommentVNode("", true),
|
|
34000
|
-
_ctx.icon ? (openBlock(), createBlock(unref(
|
|
33999
|
+
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$s), {
|
|
34001
34000
|
key: 1,
|
|
34002
34001
|
size: "1.2",
|
|
34003
34002
|
class: "color-primary",
|
|
@@ -34204,7 +34203,7 @@ const _hoisted_1$a = {
|
|
|
34204
34203
|
};
|
|
34205
34204
|
const _hoisted_2$7 = {
|
|
34206
34205
|
key: 1,
|
|
34207
|
-
class: "sticky
|
|
34206
|
+
class: "sticky z-index-999 -mt-1 -ms-1 px-025 h-30px pt-025 modal-no-title"
|
|
34208
34207
|
};
|
|
34209
34208
|
const _hoisted_3$5 = {
|
|
34210
34209
|
key: 2,
|
|
@@ -34552,7 +34551,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
34552
34551
|
onClick: toggleMenu,
|
|
34553
34552
|
onKeypress: withKeys(toggleMenu, ["enter"])
|
|
34554
34553
|
}, [
|
|
34555
|
-
createVNode(unref(
|
|
34554
|
+
createVNode(unref(_sfc_main$s), {
|
|
34556
34555
|
icon: "chevron_right",
|
|
34557
34556
|
class: "top-arrow"
|
|
34558
34557
|
})
|
|
@@ -34571,7 +34570,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
34571
34570
|
}
|
|
34572
34571
|
}, {
|
|
34573
34572
|
default: withCtx(() => [
|
|
34574
|
-
createVNode(unref(
|
|
34573
|
+
createVNode(unref(_sfc_main$s), {
|
|
34575
34574
|
icon: link.icon
|
|
34576
34575
|
}, null, 8, ["icon"]),
|
|
34577
34576
|
createElementVNode("div", _hoisted_4$4, toDisplayString(link.label), 1)
|
|
@@ -34593,7 +34592,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
34593
34592
|
}
|
|
34594
34593
|
}, {
|
|
34595
34594
|
default: withCtx(() => [
|
|
34596
|
-
createVNode(unref(
|
|
34595
|
+
createVNode(unref(_sfc_main$s), {
|
|
34597
34596
|
icon: link.icon
|
|
34598
34597
|
}, null, 8, ["icon"]),
|
|
34599
34598
|
createElementVNode("div", _hoisted_6$4, toDisplayString(link.label), 1)
|
|
@@ -34738,7 +34737,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
34738
34737
|
}, _ctx.btn), null, 16)
|
|
34739
34738
|
])) : createCommentVNode("", true)
|
|
34740
34739
|
])),
|
|
34741
|
-
_ctx.icon ? (openBlock(), createBlock(unref(
|
|
34740
|
+
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$s), {
|
|
34742
34741
|
key: 2,
|
|
34743
34742
|
icon: _ctx.icon
|
|
34744
34743
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
@@ -34746,7 +34745,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
34746
34745
|
!unref(slots).default ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
34747
34746
|
createTextVNode(toDisplayString(_ctx.value || _ctx.modelValue), 1)
|
|
34748
34747
|
], 64)) : createCommentVNode("", true),
|
|
34749
|
-
_ctx.iconEnd ? (openBlock(), createBlock(unref(
|
|
34748
|
+
_ctx.iconEnd ? (openBlock(), createBlock(unref(_sfc_main$s), {
|
|
34750
34749
|
key: 4,
|
|
34751
34750
|
icon: _ctx.iconEnd
|
|
34752
34751
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
@@ -34888,7 +34887,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
34888
34887
|
createElementVNode("span", {
|
|
34889
34888
|
onClick: ($event) => col.sortable && _ctx.$emit("sortColumn", col.key)
|
|
34890
34889
|
}, toDisplayString(col.label || col.key), 9, _hoisted_3$2),
|
|
34891
|
-
_ctx.sortColumn === col.key ? (openBlock(), createBlock(unref(
|
|
34890
|
+
_ctx.sortColumn === col.key ? (openBlock(), createBlock(unref(_sfc_main$s), {
|
|
34892
34891
|
key: 0,
|
|
34893
34892
|
class: normalizeClass(["line-height-0 transition-400", { "rotate-180": _ctx.sortDirection === "desc" }]),
|
|
34894
34893
|
name: "keyboard_arrow_down"
|
|
@@ -35482,7 +35481,10 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
35482
35481
|
return openBlock(), createBlock(unref(CheckInput), {
|
|
35483
35482
|
key: col.key,
|
|
35484
35483
|
modelValue: visibleColumns.value,
|
|
35485
|
-
"onUpdate:modelValue":
|
|
35484
|
+
"onUpdate:modelValue": [
|
|
35485
|
+
_cache[2] || (_cache[2] = ($event) => visibleColumns.value = $event),
|
|
35486
|
+
_cache[3] || (_cache[3] = (val) => void 0)
|
|
35487
|
+
],
|
|
35486
35488
|
value: col.key,
|
|
35487
35489
|
label: col.label || col.key
|
|
35488
35490
|
}, null, 8, ["modelValue", "value", "label"]);
|
|
@@ -35495,7 +35497,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
35495
35497
|
ref_key: "searchInputRef",
|
|
35496
35498
|
ref: searchInputRef,
|
|
35497
35499
|
modelValue: search.value,
|
|
35498
|
-
"onUpdate:modelValue": _cache[
|
|
35500
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => search.value = $event),
|
|
35499
35501
|
icon: "search",
|
|
35500
35502
|
placeholder: "Search",
|
|
35501
35503
|
class: "m-0 max-w200px"
|
|
@@ -35611,7 +35613,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
35611
35613
|
};
|
|
35612
35614
|
}
|
|
35613
35615
|
});
|
|
35614
|
-
const Index = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
35616
|
+
const Index = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-42b4475d"]]);
|
|
35615
35617
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
35616
35618
|
__name: "Title",
|
|
35617
35619
|
props: {
|
|
@@ -36129,15 +36131,15 @@ function useBagelFormState() {
|
|
|
36129
36131
|
if (!state2) throw new Error("BagelFormState must be provided");
|
|
36130
36132
|
return state2;
|
|
36131
36133
|
}
|
|
36132
|
-
function useBglSchema({ schema,
|
|
36134
|
+
function useBglSchema({ schema, columns, data: data2 } = {}) {
|
|
36133
36135
|
let _schema = schema;
|
|
36134
36136
|
if (typeof _schema === "function") {
|
|
36135
36137
|
_schema = _schema();
|
|
36136
36138
|
}
|
|
36137
36139
|
if (_schema) {
|
|
36138
|
-
return
|
|
36140
|
+
return columns && columns.length > 0 ? _schema.filter((f2) => columns.includes(f2.id)) : _schema;
|
|
36139
36141
|
}
|
|
36140
|
-
return getFallbackSchema(data2,
|
|
36142
|
+
return getFallbackSchema(data2, columns);
|
|
36141
36143
|
}
|
|
36142
36144
|
function localRef(key, initialValue) {
|
|
36143
36145
|
const storedValue = localStorage.getItem(key);
|
|
@@ -36595,13 +36597,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36595
36597
|
title: item == null ? void 0 : item.name,
|
|
36596
36598
|
class: "vw90"
|
|
36597
36599
|
}, null, 8, _hoisted_5)) : (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
36598
|
-
createVNode(unref(
|
|
36600
|
+
createVNode(unref(_sfc_main$s), {
|
|
36599
36601
|
class: "m-0 m_none",
|
|
36600
36602
|
icon: "draft",
|
|
36601
36603
|
size: 10,
|
|
36602
36604
|
weight: "12"
|
|
36603
36605
|
}),
|
|
36604
|
-
createVNode(unref(
|
|
36606
|
+
createVNode(unref(_sfc_main$s), {
|
|
36605
36607
|
class: "m-0 none m_block m_-mb-1",
|
|
36606
36608
|
icon: "draft",
|
|
36607
36609
|
size: 4,
|
|
@@ -36640,7 +36642,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36640
36642
|
src: item.src,
|
|
36641
36643
|
alt: "",
|
|
36642
36644
|
onClick: ($event) => selectItem(index2)
|
|
36643
|
-
}, null, 8, ["src", "class", "onClick"])) : (openBlock(), createBlock(unref(
|
|
36645
|
+
}, null, 8, ["src", "class", "onClick"])) : (openBlock(), createBlock(unref(_sfc_main$s), {
|
|
36644
36646
|
key: 1,
|
|
36645
36647
|
class: normalizeClass(["thumbnail object-fit-cover hover opacity-5 ed flex bg-popup justify-content-center align-items-center flex-shrink-0", { active: unref(currentIndex) === index2 }]),
|
|
36646
36648
|
icon: "description",
|
|
@@ -37449,34 +37451,76 @@ function timeAgo(date2, lang = "en") {
|
|
|
37449
37451
|
}
|
|
37450
37452
|
return selectedLang.justNow;
|
|
37451
37453
|
}
|
|
37452
|
-
|
|
37453
|
-
|
|
37454
|
-
|
|
37455
|
-
|
|
37456
|
-
|
|
37457
|
-
|
|
37458
|
-
mmmm: { type: "month", format: "long" },
|
|
37459
|
-
yy: { type: "year", format: "2-digit" },
|
|
37460
|
-
yyyy: { type: "year", format: "numeric" },
|
|
37461
|
-
HH: { type: "hour", format: "2-digit" },
|
|
37462
|
-
hh: { type: "hour", format: "2-digit" },
|
|
37463
|
-
MM: { type: "minute", format: "2-digit" },
|
|
37464
|
-
ss: { type: "second", format: "2-digit" },
|
|
37465
|
-
ampm: { type: "dayPeriod", format: "short" }
|
|
37466
|
-
};
|
|
37467
|
-
function formatDate(date2, format2 = "dd.mm.yy") {
|
|
37454
|
+
function getBrowserNavigatorLocale() {
|
|
37455
|
+
if (typeof navigator !== "object") return "en-US";
|
|
37456
|
+
return navigator.languages && navigator.languages.length ? navigator.languages[0] : navigator.language;
|
|
37457
|
+
}
|
|
37458
|
+
function formatDate(date2, format2 = "dd.mm.yy", locale2) {
|
|
37459
|
+
var _a;
|
|
37468
37460
|
if (!date2) return "";
|
|
37461
|
+
locale2 = locale2 || getBrowserNavigatorLocale();
|
|
37469
37462
|
try {
|
|
37470
|
-
const formatParts = format2.split(/[.\s:]/);
|
|
37471
|
-
const formatObject = {};
|
|
37472
|
-
for (const part of formatParts) {
|
|
37473
|
-
const formatInfo = formatMap[part];
|
|
37474
|
-
if (!formatInfo) continue;
|
|
37475
|
-
formatObject[formatInfo.type] = formatInfo.format;
|
|
37476
|
-
}
|
|
37477
37463
|
const d2 = typeof date2 === "string" ? new Date(date2) : date2;
|
|
37478
|
-
|
|
37464
|
+
if (Number.isNaN(d2.getTime())) {
|
|
37465
|
+
console.warn("Invalid date provided to formatDate:", date2);
|
|
37466
|
+
return "";
|
|
37467
|
+
}
|
|
37468
|
+
const separator = ((_a = format2.match(/[^\w\s]/)) == null ? void 0 : _a[0]) || ".";
|
|
37469
|
+
const formatParts = format2.split(/[^\w\s]/);
|
|
37470
|
+
const datePartsMap = {
|
|
37471
|
+
dd: String(d2.getDate()).padStart(2, "0"),
|
|
37472
|
+
ddd: d2.toLocaleString(locale2, { weekday: "short" }),
|
|
37473
|
+
dddd: d2.toLocaleString(locale2, { weekday: "long" }),
|
|
37474
|
+
mm: String(d2.getMonth() + 1).padStart(2, "0"),
|
|
37475
|
+
mmm: d2.toLocaleString(locale2, { month: "short" }),
|
|
37476
|
+
mmmm: d2.toLocaleString(locale2, { month: "long" }),
|
|
37477
|
+
yy: String(d2.getFullYear()).slice(-2),
|
|
37478
|
+
yyyy: String(d2.getFullYear()),
|
|
37479
|
+
HH: String(d2.getHours()).padStart(2, "0"),
|
|
37480
|
+
MM: String(d2.getMinutes()).padStart(2, "0"),
|
|
37481
|
+
ss: String(d2.getSeconds()).padStart(2, "0")
|
|
37482
|
+
};
|
|
37483
|
+
const formatter = new Intl.DateTimeFormat(locale2, {
|
|
37484
|
+
weekday: "long",
|
|
37485
|
+
month: "long",
|
|
37486
|
+
day: "numeric",
|
|
37487
|
+
year: "numeric",
|
|
37488
|
+
hour: "2-digit",
|
|
37489
|
+
minute: "2-digit",
|
|
37490
|
+
second: "2-digit",
|
|
37491
|
+
hour12: true
|
|
37492
|
+
});
|
|
37493
|
+
const formattedParts = formatter.formatToParts(d2);
|
|
37494
|
+
const partsMap = {};
|
|
37495
|
+
formattedParts.forEach((part) => {
|
|
37496
|
+
if (part.type !== "literal") {
|
|
37497
|
+
partsMap[part.type] = part.value;
|
|
37498
|
+
}
|
|
37499
|
+
});
|
|
37500
|
+
if (partsMap.month) {
|
|
37501
|
+
datePartsMap.mmm = partsMap.month.substring(0, 3);
|
|
37502
|
+
datePartsMap.mmmm = partsMap.month;
|
|
37503
|
+
}
|
|
37504
|
+
if (partsMap.weekday) {
|
|
37505
|
+
datePartsMap.ddd = partsMap.weekday.substring(0, 3);
|
|
37506
|
+
datePartsMap.dddd = partsMap.weekday;
|
|
37507
|
+
}
|
|
37508
|
+
if (partsMap.dayPeriod) {
|
|
37509
|
+
datePartsMap.ampm = partsMap.dayPeriod;
|
|
37510
|
+
}
|
|
37511
|
+
let formattedDate = "";
|
|
37512
|
+
for (let i2 = 0; i2 < formatParts.length; i2++) {
|
|
37513
|
+
const part = formatParts[i2];
|
|
37514
|
+
if (datePartsMap[part]) {
|
|
37515
|
+
formattedDate += datePartsMap[part];
|
|
37516
|
+
}
|
|
37517
|
+
if (i2 < formatParts.length - 1) {
|
|
37518
|
+
formattedDate += separator;
|
|
37519
|
+
}
|
|
37520
|
+
}
|
|
37521
|
+
return formattedDate;
|
|
37479
37522
|
} catch (error) {
|
|
37523
|
+
console.warn("Error formatting date", error);
|
|
37480
37524
|
return "";
|
|
37481
37525
|
}
|
|
37482
37526
|
}
|
|
@@ -37514,7 +37558,7 @@ export {
|
|
|
37514
37558
|
Flag,
|
|
37515
37559
|
IMAGE_FORMATS,
|
|
37516
37560
|
IMAGE_FORMATS_REGEXP,
|
|
37517
|
-
Icon,
|
|
37561
|
+
_sfc_main$s as Icon,
|
|
37518
37562
|
_sfc_main$r as IframeVue,
|
|
37519
37563
|
Image$1 as Image,
|
|
37520
37564
|
JSONInput,
|