@bagelink/vue 1.0.38 → 1.0.41
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/DataTable/DataTable.vue.d.ts +2 -7
- package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
- package/dist/components/DataTable/useTableData.d.ts +1 -6
- package/dist/components/DataTable/useTableData.d.ts.map +1 -1
- package/dist/components/form/BagelForm.vue.d.ts +17 -11
- package/dist/components/form/BagelForm.vue.d.ts.map +1 -1
- package/dist/components/form/FieldArray.vue.d.ts.map +1 -1
- package/dist/composables/index.d.ts +1 -1
- package/dist/composables/index.d.ts.map +1 -1
- package/dist/index.cjs +282 -239
- package/dist/index.mjs +283 -240
- package/dist/style.css +27 -27
- package/dist/types/BagelForm.d.ts +1 -1
- package/dist/types/BagelForm.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Loading.vue +2 -2
- package/src/components/form/BagelForm.vue +138 -78
- package/src/components/form/FieldArray.vue +110 -74
- package/src/composables/index.ts +14 -4
- package/src/types/BagelForm.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -19,7 +19,7 @@ const _sfc_main$1n = /* @__PURE__ */ vue.defineComponent({
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
const _hoisted_1$
|
|
22
|
+
const _hoisted_1$1b = ["aria-expanded", "aria-controls"];
|
|
23
23
|
const _hoisted_2$T = { class: "accordion-label" };
|
|
24
24
|
const _hoisted_3$I = ["id", "aria-hidden"];
|
|
25
25
|
const _sfc_main$1m = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -96,7 +96,7 @@ const _sfc_main$1m = /* @__PURE__ */ vue.defineComponent({
|
|
|
96
96
|
}, [
|
|
97
97
|
vue.createVNode(vue.unref(_sfc_main$s), { icon: computedIcon.value }, null, 8, ["icon"])
|
|
98
98
|
], 2)) : vue.createCommentVNode("", true)
|
|
99
|
-
], 8, _hoisted_1$
|
|
99
|
+
], 8, _hoisted_1$1b),
|
|
100
100
|
vue.createVNode(vue.Transition, { name: "expand" }, {
|
|
101
101
|
default: vue.withCtx(() => [
|
|
102
102
|
vue.unref(isOpen) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -122,7 +122,7 @@ const _export_sfc = (sfc, props2) => {
|
|
|
122
122
|
return target;
|
|
123
123
|
};
|
|
124
124
|
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["__scopeId", "data-v-3334f637"]]);
|
|
125
|
-
const _hoisted_1$
|
|
125
|
+
const _hoisted_1$1a = { class: "relative" };
|
|
126
126
|
const _sfc_main$1l = /* @__PURE__ */ vue.defineComponent({
|
|
127
127
|
__name: "AddressSearch",
|
|
128
128
|
emits: ["addressSelected"],
|
|
@@ -145,7 +145,7 @@ const _sfc_main$1l = /* @__PURE__ */ vue.defineComponent({
|
|
|
145
145
|
(_a = suggestion.value) == null ? void 0 : _a.show();
|
|
146
146
|
}
|
|
147
147
|
return (_ctx, _cache) => {
|
|
148
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
148
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1a, [
|
|
149
149
|
vue.createVNode(vue.unref(_sfc_main$W), {
|
|
150
150
|
ref_key: "suggestion",
|
|
151
151
|
ref: suggestion,
|
|
@@ -181,7 +181,7 @@ const _sfc_main$1l = /* @__PURE__ */ vue.defineComponent({
|
|
|
181
181
|
};
|
|
182
182
|
}
|
|
183
183
|
});
|
|
184
|
-
const _hoisted_1$
|
|
184
|
+
const _hoisted_1$19 = {
|
|
185
185
|
key: 1,
|
|
186
186
|
class: "bgl_btn-flex"
|
|
187
187
|
};
|
|
@@ -251,7 +251,7 @@ const _sfc_main$1k = /* @__PURE__ */ vue.defineComponent({
|
|
|
251
251
|
key: 0,
|
|
252
252
|
class: "h-100p",
|
|
253
253
|
size: "15"
|
|
254
|
-
})) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
254
|
+
})) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$19, [
|
|
255
255
|
_ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
|
|
256
256
|
key: 0,
|
|
257
257
|
icon: _ctx.icon,
|
|
@@ -276,7 +276,7 @@ const _sfc_main$1k = /* @__PURE__ */ vue.defineComponent({
|
|
|
276
276
|
}
|
|
277
277
|
});
|
|
278
278
|
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["__scopeId", "data-v-bfc435b3"]]);
|
|
279
|
-
const _hoisted_1$
|
|
279
|
+
const _hoisted_1$18 = ["dismissable"];
|
|
280
280
|
const _hoisted_2$S = { class: "m-0" };
|
|
281
281
|
const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
|
|
282
282
|
__name: "Alert",
|
|
@@ -314,12 +314,12 @@ const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
|
|
|
314
314
|
icon: "close",
|
|
315
315
|
onClick: _cache[0] || (_cache[0] = ($event) => isDismissed.value = true)
|
|
316
316
|
})
|
|
317
|
-
], 10, _hoisted_1$
|
|
317
|
+
], 10, _hoisted_1$18)) : vue.createCommentVNode("", true);
|
|
318
318
|
};
|
|
319
319
|
}
|
|
320
320
|
});
|
|
321
321
|
const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-064bdd20"]]);
|
|
322
|
-
const _hoisted_1$
|
|
322
|
+
const _hoisted_1$17 = ["src", "alt"];
|
|
323
323
|
const _sfc_main$1i = /* @__PURE__ */ vue.defineComponent({
|
|
324
324
|
__name: "Avatar",
|
|
325
325
|
props: {
|
|
@@ -338,7 +338,7 @@ const _sfc_main$1i = /* @__PURE__ */ vue.defineComponent({
|
|
|
338
338
|
key: 0,
|
|
339
339
|
src: _ctx.src,
|
|
340
340
|
alt: _ctx.name
|
|
341
|
-
}, null, 8, _hoisted_1$
|
|
341
|
+
}, null, 8, _hoisted_1$17)) : (vue.openBlock(), vue.createElementBlock("p", {
|
|
342
342
|
key: 1,
|
|
343
343
|
style: vue.normalizeStyle({ "line-height": `${_ctx.size}px`, "font-size": `calc(1.5rem * ${_ctx.size} / 50)` })
|
|
344
344
|
}, vue.toDisplayString((_ctx.fallback || vue.unref(initials)(_ctx.name || "")).toUpperCase()), 5))
|
|
@@ -377,7 +377,7 @@ const _sfc_main$1h = /* @__PURE__ */ vue.defineComponent({
|
|
|
377
377
|
}
|
|
378
378
|
});
|
|
379
379
|
const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-689f051f"]]);
|
|
380
|
-
const _hoisted_1$
|
|
380
|
+
const _hoisted_1$16 = ["src"];
|
|
381
381
|
const _hoisted_2$R = ["autoplay", "muted", "loop", "controls", "playsinline"];
|
|
382
382
|
const _hoisted_3$H = ["src", "type"];
|
|
383
383
|
const _sfc_main$1g = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -457,7 +457,7 @@ const _sfc_main$1g = /* @__PURE__ */ vue.defineComponent({
|
|
|
457
457
|
allowfullscreen: "",
|
|
458
458
|
title: "Video",
|
|
459
459
|
allow: "autoplay"
|
|
460
|
-
}, null, 12, _hoisted_1$
|
|
460
|
+
}, null, 12, _hoisted_1$16)) : _ctx.src ? (vue.openBlock(), vue.createElementBlock("video", {
|
|
461
461
|
key: 1,
|
|
462
462
|
ref_key: "video",
|
|
463
463
|
ref: video,
|
|
@@ -608,7 +608,7 @@ function translate(key, locale2 = "en-US") {
|
|
|
608
608
|
const language = languageKeys[key] || {};
|
|
609
609
|
return language[locale2] || key;
|
|
610
610
|
}
|
|
611
|
-
const _hoisted_1$
|
|
611
|
+
const _hoisted_1$15 = { class: "flex gap-05 space-between pb-1 datePick" };
|
|
612
612
|
const _hoisted_2$Q = { class: "flex gap-1 m_gap-025" };
|
|
613
613
|
const _sfc_main$1f = /* @__PURE__ */ vue.defineComponent({
|
|
614
614
|
__name: "Header",
|
|
@@ -688,7 +688,7 @@ const _sfc_main$1f = /* @__PURE__ */ vue.defineComponent({
|
|
|
688
688
|
emit2("updatedPeriod", currentPeriod.value);
|
|
689
689
|
}
|
|
690
690
|
return (_ctx, _cache) => {
|
|
691
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
691
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$15, [
|
|
692
692
|
vue.createElementVNode("div", _hoisted_2$Q, [
|
|
693
693
|
vue.createVNode(vue.unref(Btn), {
|
|
694
694
|
flat: "",
|
|
@@ -739,7 +739,7 @@ const EVENT_COLORS = {
|
|
|
739
739
|
};
|
|
740
740
|
const DATE_TIME_STRING_PATTERN = /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$/;
|
|
741
741
|
const DATE_TIME_STRING_FULL_DAY_PATTERN = /^\d{4}-\d{2}-\d{2}$/;
|
|
742
|
-
const _hoisted_1$
|
|
742
|
+
const _hoisted_1$14 = ["id"];
|
|
743
743
|
const _hoisted_2$P = { class: "flex txt14 flex column align-items-start gap-025 opacity-6" };
|
|
744
744
|
const _hoisted_3$G = {
|
|
745
745
|
key: 0,
|
|
@@ -749,8 +749,8 @@ const _hoisted_4$u = {
|
|
|
749
749
|
key: 1,
|
|
750
750
|
class: "agenda__event-location flex gap-025"
|
|
751
751
|
};
|
|
752
|
-
const _hoisted_5$
|
|
753
|
-
const _hoisted_6$
|
|
752
|
+
const _hoisted_5$q = { class: "agenda__event-title" };
|
|
753
|
+
const _hoisted_6$m = {
|
|
754
754
|
key: 0,
|
|
755
755
|
class: "agenda__event-with txt14 opacity-6"
|
|
756
756
|
};
|
|
@@ -846,25 +846,25 @@ const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent({
|
|
|
846
846
|
])) : vue.createCommentVNode("", true)
|
|
847
847
|
]),
|
|
848
848
|
vue.createElementVNode("div", null, [
|
|
849
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
850
|
-
__props.calendarEvent.with ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$
|
|
849
|
+
vue.createElementVNode("div", _hoisted_5$q, vue.toDisplayString(__props.calendarEvent.title), 1),
|
|
850
|
+
__props.calendarEvent.with ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$m, [
|
|
851
851
|
vue.createVNode(vue.unref(_sfc_main$s), {
|
|
852
852
|
icon: icons.user
|
|
853
853
|
}, null, 8, ["icon"]),
|
|
854
854
|
vue.createTextVNode(" " + vue.toDisplayString(__props.calendarEvent.with), 1)
|
|
855
855
|
])) : vue.createCommentVNode("", true)
|
|
856
856
|
])
|
|
857
|
-
], 8, _hoisted_1$
|
|
857
|
+
], 8, _hoisted_1$14);
|
|
858
858
|
};
|
|
859
859
|
}
|
|
860
860
|
});
|
|
861
861
|
const AgendaEventTile = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__scopeId", "data-v-5740437b"]]);
|
|
862
|
-
const _hoisted_1$
|
|
862
|
+
const _hoisted_1$13 = { class: "agenda__wrapper grid align-items-start gap-1 h-100p" };
|
|
863
863
|
const _hoisted_2$O = { class: "m_sticky" };
|
|
864
864
|
const _hoisted_3$F = { class: "agenda__header-day-name txt-center" };
|
|
865
865
|
const _hoisted_4$t = { class: "agenda__header-date flex justify-content-center rounded p-025 txt24 line-height-04" };
|
|
866
|
-
const _hoisted_5$
|
|
867
|
-
const _hoisted_6$
|
|
866
|
+
const _hoisted_5$p = { class: "agenda__content flex column w-100p h-100p min-h-100px pt-05 border-start ps-1 m_pt-0 min-h-50px" };
|
|
867
|
+
const _hoisted_6$l = {
|
|
868
868
|
key: 0,
|
|
869
869
|
class: "align-items-center flex justify-content-center h-100p opacity-6"
|
|
870
870
|
};
|
|
@@ -892,13 +892,13 @@ const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
|
|
|
892
892
|
setup(__props, { emit: __emit }) {
|
|
893
893
|
const emit2 = __emit;
|
|
894
894
|
return (_ctx, _cache) => {
|
|
895
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
895
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$13, [
|
|
896
896
|
vue.createElementVNode("header", _hoisted_2$O, [
|
|
897
897
|
vue.createElementVNode("div", _hoisted_3$F, vue.toDisplayString(__props.day.dayName.slice(0, 3)), 1),
|
|
898
898
|
vue.createElementVNode("div", _hoisted_4$t, vue.toDisplayString(__props.day.dateTimeString.substring(8, 10)), 1)
|
|
899
899
|
]),
|
|
900
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
901
|
-
__props.day.events.length === 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$
|
|
900
|
+
vue.createElementVNode("div", _hoisted_5$p, [
|
|
901
|
+
__props.day.events.length === 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$l, vue.toDisplayString(vue.unref(getLanguage)(vue.unref(languageKeys).noEvent, __props.time.CALENDAR_LOCALE)), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$g, [
|
|
902
902
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.day.events, (dayEvent) => {
|
|
903
903
|
return vue.openBlock(), vue.createBlock(AgendaEventTile, {
|
|
904
904
|
key: `agenda_event_${dayEvent.id}`,
|
|
@@ -1594,7 +1594,7 @@ class EventFlyoutPosition {
|
|
|
1594
1594
|
return { top: eventElementDOMRect.top, left: null };
|
|
1595
1595
|
}
|
|
1596
1596
|
}
|
|
1597
|
-
const _hoisted_1$
|
|
1597
|
+
const _hoisted_1$12 = {
|
|
1598
1598
|
key: 0,
|
|
1599
1599
|
class: "event-flyout__relative-wrapper"
|
|
1600
1600
|
};
|
|
@@ -1604,11 +1604,11 @@ const _hoisted_3$E = {
|
|
|
1604
1604
|
class: "event-flyout__menu-editable"
|
|
1605
1605
|
};
|
|
1606
1606
|
const _hoisted_4$s = { class: "event-flyout__menu-close" };
|
|
1607
|
-
const _hoisted_5$
|
|
1607
|
+
const _hoisted_5$o = {
|
|
1608
1608
|
key: 0,
|
|
1609
1609
|
class: "event-flyout__info-wrapper"
|
|
1610
1610
|
};
|
|
1611
|
-
const _hoisted_6$
|
|
1611
|
+
const _hoisted_6$k = {
|
|
1612
1612
|
key: 0,
|
|
1613
1613
|
class: "event-flyout__row is-title"
|
|
1614
1614
|
};
|
|
@@ -1806,7 +1806,7 @@ const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
|
|
|
1806
1806
|
class: vue.normalizeClass(["event-flyout p-05 bg-white", { "is-visible": isVisible.value, "is-not-editable": !isEditable.value }]),
|
|
1807
1807
|
style: vue.normalizeStyle(eventFlyoutInlineStyles.value)
|
|
1808
1808
|
}, [
|
|
1809
|
-
!__props.config.eventDialog || !__props.config.eventDialog.isCustom ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
1809
|
+
!__props.config.eventDialog || !__props.config.eventDialog.isCustom ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$12, [
|
|
1810
1810
|
vue.createElementVNode("div", _hoisted_2$N, [
|
|
1811
1811
|
isEditable.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$E, [
|
|
1812
1812
|
vue.createVNode(vue.unref(_sfc_main$s), {
|
|
@@ -1828,8 +1828,8 @@ const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
|
|
|
1828
1828
|
}, null, 8, ["icon"])
|
|
1829
1829
|
])
|
|
1830
1830
|
]),
|
|
1831
|
-
calendarEvent.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$
|
|
1832
|
-
calendarEvent.value.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$
|
|
1831
|
+
calendarEvent.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$o, [
|
|
1832
|
+
calendarEvent.value.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$k, [
|
|
1833
1833
|
vue.createElementVNode("div", {
|
|
1834
1834
|
class: "event-flyout__color-icon",
|
|
1835
1835
|
style: vue.normalizeStyle({ backgroundColor: eventBackgroundColor.value })
|
|
@@ -1873,7 +1873,7 @@ const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
|
|
|
1873
1873
|
};
|
|
1874
1874
|
}
|
|
1875
1875
|
});
|
|
1876
|
-
const _hoisted_1$
|
|
1876
|
+
const _hoisted_1$11 = {
|
|
1877
1877
|
key: 0,
|
|
1878
1878
|
class: "calendar-month__event"
|
|
1879
1879
|
};
|
|
@@ -1883,7 +1883,7 @@ const _hoisted_4$r = {
|
|
|
1883
1883
|
key: 0,
|
|
1884
1884
|
class: "calendar-month__event-time opacity-6 flex-shrink-0"
|
|
1885
1885
|
};
|
|
1886
|
-
const _hoisted_5$
|
|
1886
|
+
const _hoisted_5$n = { class: "calendar-month__event-title1 white-space ellipsis" };
|
|
1887
1887
|
const eventIdPrefix = "calendar-month__event-";
|
|
1888
1888
|
const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
|
|
1889
1889
|
__name: "Event",
|
|
@@ -1965,7 +1965,7 @@ const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
|
|
|
1965
1965
|
setColors();
|
|
1966
1966
|
});
|
|
1967
1967
|
return (_ctx, _cache) => {
|
|
1968
|
-
return __props.config.isSmall ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
1968
|
+
return __props.config.isSmall ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$11)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
1969
1969
|
isCustomEvent.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
1970
1970
|
key: 0,
|
|
1971
1971
|
id: elementId.value,
|
|
@@ -1987,14 +1987,14 @@ const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
|
|
|
1987
1987
|
}, [
|
|
1988
1988
|
_cache[0] || (_cache[0] = vue.createElementVNode("span", { class: "calendar-month__event-color round flex-shrink-0" }, null, -1)),
|
|
1989
1989
|
eventTimeStart.value && !__props.calendarEvent.originalEvent ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$r, vue.toDisplayString(eventTimeStart.value), 1)) : vue.createCommentVNode("", true),
|
|
1990
|
-
vue.createElementVNode("span", _hoisted_5$
|
|
1990
|
+
vue.createElementVNode("span", _hoisted_5$n, vue.toDisplayString(__props.calendarEvent.title), 1)
|
|
1991
1991
|
], 42, _hoisted_3$D))
|
|
1992
1992
|
], 64));
|
|
1993
1993
|
};
|
|
1994
1994
|
}
|
|
1995
1995
|
});
|
|
1996
1996
|
const Event = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-3c4101df"]]);
|
|
1997
|
-
const _hoisted_1
|
|
1997
|
+
const _hoisted_1$10 = ["id"];
|
|
1998
1998
|
const _hoisted_2$L = { class: "w-100p flex justify-content-end txt14 p-025 m_h-100p" };
|
|
1999
1999
|
const _hoisted_3$C = { class: "calendar-month_events" };
|
|
2000
2000
|
const _hoisted_4$q = {
|
|
@@ -2131,12 +2131,12 @@ const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
|
|
|
2131
2131
|
}, vue.toDisplayString(vue.unref(getLanguage)(vue.unref(languageKeys).moreEvents, __props.time.CALENDAR_LOCALE)), 1)) : vue.createCommentVNode("", true)
|
|
2132
2132
|
])
|
|
2133
2133
|
], true)
|
|
2134
|
-
], 42, _hoisted_1
|
|
2134
|
+
], 42, _hoisted_1$10)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$q));
|
|
2135
2135
|
};
|
|
2136
2136
|
}
|
|
2137
2137
|
});
|
|
2138
2138
|
const Day$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-c1dfa100"]]);
|
|
2139
|
-
const _hoisted_1
|
|
2139
|
+
const _hoisted_1$$ = { class: "txt12 normal block color-black pb-025" };
|
|
2140
2140
|
const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
|
|
2141
2141
|
__name: "WeekDay",
|
|
2142
2142
|
props: {
|
|
@@ -2144,11 +2144,11 @@ const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2144
2144
|
},
|
|
2145
2145
|
setup(__props) {
|
|
2146
2146
|
return (_ctx, _cache) => {
|
|
2147
|
-
return vue.openBlock(), vue.createElementBlock("span", _hoisted_1
|
|
2147
|
+
return vue.openBlock(), vue.createElementBlock("span", _hoisted_1$$, vue.toDisplayString(_ctx.day.dayName), 1);
|
|
2148
2148
|
};
|
|
2149
2149
|
}
|
|
2150
2150
|
});
|
|
2151
|
-
const _hoisted_1$
|
|
2151
|
+
const _hoisted_1$_ = { class: "calendar-month relative column w-100p h-100p overflow-y flex flex-stretch" };
|
|
2152
2152
|
const _hoisted_2$K = { class: "flex space-between" };
|
|
2153
2153
|
const _hoisted_3$B = { class: "calendar-month__weeks h-100p flex-grow flex flex-stretch column space-between" };
|
|
2154
2154
|
const _hoisted_4$p = {
|
|
@@ -2257,7 +2257,7 @@ const _sfc_main$18 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2257
2257
|
});
|
|
2258
2258
|
return (_ctx, _cache) => {
|
|
2259
2259
|
var _a;
|
|
2260
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
2260
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$_, [
|
|
2261
2261
|
vue.createElementVNode("div", _hoisted_2$K, [
|
|
2262
2262
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(month.value[0], (day, dayIndex) => {
|
|
2263
2263
|
return vue.openBlock(), vue.createBlock(_sfc_main$19, {
|
|
@@ -2534,18 +2534,18 @@ class EventChange {
|
|
|
2534
2534
|
this.dayEnd = `${endHourString}:00`;
|
|
2535
2535
|
}
|
|
2536
2536
|
}
|
|
2537
|
-
const _hoisted_1$
|
|
2537
|
+
const _hoisted_1$Z = ["data-ref"];
|
|
2538
2538
|
const _hoisted_2$J = { class: "calendar-week__event-row is-title" };
|
|
2539
2539
|
const _hoisted_3$A = { class: "calendar-week__event-row is-time flex" };
|
|
2540
2540
|
const _hoisted_4$o = {
|
|
2541
2541
|
key: 0,
|
|
2542
2542
|
class: "calendar-week__event-row is-location"
|
|
2543
2543
|
};
|
|
2544
|
-
const _hoisted_5$
|
|
2544
|
+
const _hoisted_5$m = {
|
|
2545
2545
|
key: 1,
|
|
2546
2546
|
class: "calendar-week__event-row is-with"
|
|
2547
2547
|
};
|
|
2548
|
-
const _hoisted_6$
|
|
2548
|
+
const _hoisted_6$j = {
|
|
2549
2549
|
key: 2,
|
|
2550
2550
|
class: "calendar-week__event-row is-topic"
|
|
2551
2551
|
};
|
|
@@ -2911,14 +2911,14 @@ const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2911
2911
|
}, null, 8, ["icon"]),
|
|
2912
2912
|
vue.createElementVNode("span", null, vue.toDisplayString(event.value.location), 1)
|
|
2913
2913
|
])) : vue.createCommentVNode("", true),
|
|
2914
|
-
event.value.with ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$
|
|
2914
|
+
event.value.with ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$m, [
|
|
2915
2915
|
vue.createVNode(vue.unref(_sfc_main$s), {
|
|
2916
2916
|
icon: icons.value.user,
|
|
2917
2917
|
class: "calendar-week__event-icon"
|
|
2918
2918
|
}, null, 8, ["icon"]),
|
|
2919
2919
|
vue.createElementVNode("span", null, vue.toDisplayString(event.value.with), 1)
|
|
2920
2920
|
])) : vue.createCommentVNode("", true),
|
|
2921
|
-
event.value.topic ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$
|
|
2921
|
+
event.value.topic ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$j, [
|
|
2922
2922
|
vue.createVNode(vue.unref(_sfc_main$s), {
|
|
2923
2923
|
icon: icons.value.topic,
|
|
2924
2924
|
class: "calendar-week__event-icon"
|
|
@@ -2955,12 +2955,12 @@ const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2955
2955
|
class: "calendar-week__event-resize calendar-week__event-resize-down",
|
|
2956
2956
|
onMousedown: _cache[1] || (_cache[1] = ($event) => resizeEvent("down"))
|
|
2957
2957
|
}, null, 32)) : vue.createCommentVNode("", true)
|
|
2958
|
-
], 46, _hoisted_1$
|
|
2958
|
+
], 46, _hoisted_1$Z);
|
|
2959
2959
|
};
|
|
2960
2960
|
}
|
|
2961
2961
|
});
|
|
2962
2962
|
const DayEvent = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-c512b81d"]]);
|
|
2963
|
-
const _hoisted_1$
|
|
2963
|
+
const _hoisted_1$Y = ["id", "onClick"];
|
|
2964
2964
|
const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
|
|
2965
2965
|
__name: "Day",
|
|
2966
2966
|
props: {
|
|
@@ -3098,14 +3098,14 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3098
3098
|
class: vue.normalizeClass(["calendar-week__day-interval", { "has-border": interval.hasBorder }]),
|
|
3099
3099
|
style: vue.normalizeStyle(intervalStyles.value),
|
|
3100
3100
|
onClick: ($event) => handleClickOnInterval(interval)
|
|
3101
|
-
}, vue.toDisplayString(__props.time.getLocalizedTime(interval.intervalStart)), 15, _hoisted_1$
|
|
3101
|
+
}, vue.toDisplayString(__props.time.getLocalizedTime(interval.intervalStart)), 15, _hoisted_1$Y);
|
|
3102
3102
|
}), 128)) : vue.createCommentVNode("", true)
|
|
3103
3103
|
]);
|
|
3104
3104
|
};
|
|
3105
3105
|
}
|
|
3106
3106
|
});
|
|
3107
3107
|
const Day = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-87669cec"]]);
|
|
3108
|
-
const _hoisted_1$
|
|
3108
|
+
const _hoisted_1$X = { class: "day-timeline absolute top-0 start-0 space-evenly column display-flex" };
|
|
3109
3109
|
const _hoisted_2$I = { class: "day-timeline__hour-text line-height-0" };
|
|
3110
3110
|
const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
|
|
3111
3111
|
__name: "DayTimeline",
|
|
@@ -3133,7 +3133,7 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3133
3133
|
return props2.time.getLocalizedHour(new Date(2100, 1, 1, hour));
|
|
3134
3134
|
}
|
|
3135
3135
|
return (_ctx, _cache) => {
|
|
3136
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
3136
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$X, [
|
|
3137
3137
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(timelineHours.value, (hour) => {
|
|
3138
3138
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
3139
3139
|
key: hour,
|
|
@@ -3147,7 +3147,7 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3147
3147
|
}
|
|
3148
3148
|
});
|
|
3149
3149
|
const DayTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-0b3de5c5"]]);
|
|
3150
|
-
const _hoisted_1$
|
|
3150
|
+
const _hoisted_1$W = ["id"];
|
|
3151
3151
|
const _hoisted_2$H = {
|
|
3152
3152
|
key: 1,
|
|
3153
3153
|
class: "week-timeline__event"
|
|
@@ -3219,20 +3219,20 @@ const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3219
3219
|
zIndex: 1
|
|
3220
3220
|
}),
|
|
3221
3221
|
onClick: handleClickOnEvent
|
|
3222
|
-
}, vue.toDisplayString(__props.scheduleEvent.title), 13, _hoisted_1$
|
|
3222
|
+
}, vue.toDisplayString(__props.scheduleEvent.title), 13, _hoisted_1$W)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$H));
|
|
3223
3223
|
};
|
|
3224
3224
|
}
|
|
3225
3225
|
});
|
|
3226
3226
|
const FullDayEvent = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-8bd51337"]]);
|
|
3227
|
-
const _hoisted_1$
|
|
3227
|
+
const _hoisted_1$V = {
|
|
3228
3228
|
class: "week-timeline flex space-between border-bottom ms-3-5",
|
|
3229
3229
|
style: { "margin-inline-end": "0.5em" }
|
|
3230
3230
|
};
|
|
3231
3231
|
const _hoisted_2$G = ["onClick"];
|
|
3232
3232
|
const _hoisted_3$z = { class: "flex justify-content-center gap-025 txt12 pb-025" };
|
|
3233
3233
|
const _hoisted_4$n = { class: "" };
|
|
3234
|
-
const _hoisted_5$
|
|
3235
|
-
const _hoisted_6$
|
|
3234
|
+
const _hoisted_5$l = { class: "week-timeline__date txt14 round inline-flex justify-content-center" };
|
|
3235
|
+
const _hoisted_6$i = { class: "week-timeline__events" };
|
|
3236
3236
|
const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
|
|
3237
3237
|
__name: "WeekTimeline",
|
|
3238
3238
|
props: {
|
|
@@ -3254,7 +3254,7 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3254
3254
|
return date2;
|
|
3255
3255
|
}
|
|
3256
3256
|
return (_ctx, _cache) => {
|
|
3257
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
3257
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$V, [
|
|
3258
3258
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.days, (day, dayIndex) => {
|
|
3259
3259
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
3260
3260
|
key: dayIndex,
|
|
@@ -3265,9 +3265,9 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3265
3265
|
}, [
|
|
3266
3266
|
vue.createElementVNode("div", _hoisted_3$z, [
|
|
3267
3267
|
vue.createElementVNode("div", _hoisted_4$n, vue.toDisplayString(day.dayName.charAt(0).toUpperCase() + day.dayName.slice(1, 3).toLowerCase()), 1),
|
|
3268
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
3268
|
+
vue.createElementVNode("div", _hoisted_5$l, vue.toDisplayString(getDaysDate(day)), 1)
|
|
3269
3269
|
]),
|
|
3270
|
-
vue.createElementVNode("div", _hoisted_6$
|
|
3270
|
+
vue.createElementVNode("div", _hoisted_6$i, [
|
|
3271
3271
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(day.fullDayEvents, (event, key) => {
|
|
3272
3272
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key }, [
|
|
3273
3273
|
key !== "date" ? (vue.openBlock(), vue.createBlock(FullDayEvent, {
|
|
@@ -3287,7 +3287,7 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3287
3287
|
}
|
|
3288
3288
|
});
|
|
3289
3289
|
const WeekTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-18ecf6c3"]]);
|
|
3290
|
-
const _hoisted_1$
|
|
3290
|
+
const _hoisted_1$U = { class: "calendar-week__wrapper relative ps-3-5" };
|
|
3291
3291
|
const _hoisted_2$F = { class: "calendar-week" };
|
|
3292
3292
|
const _hoisted_3$y = { class: "calendar-week__events" };
|
|
3293
3293
|
const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -3516,7 +3516,7 @@ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3516
3516
|
onEventWasClicked: handleClickOnEvent,
|
|
3517
3517
|
onDayWasClicked: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("dayWasClicked", $event))
|
|
3518
3518
|
}, null, 8, ["days", "time", "full-day-events", "config", "mode"]),
|
|
3519
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
3519
|
+
vue.createElementVNode("div", _hoisted_1$U, [
|
|
3520
3520
|
!__props.config.eventDialog || !__props.config.eventDialog.isDisabled ? (vue.openBlock(), vue.createBlock(_sfc_main$1c, {
|
|
3521
3521
|
key: 0,
|
|
3522
3522
|
"calendar-event-prop": selectedEvent.value,
|
|
@@ -3637,7 +3637,7 @@ ${_Errors.SUFFIX}`);
|
|
|
3637
3637
|
__publicField(_Errors, "MISSING_TIME_END_WARNING", `${_Errors.PREFIX} required event property 'time.end' is missing
|
|
3638
3638
|
${_Errors.SUFFIX}`);
|
|
3639
3639
|
let Errors = _Errors;
|
|
3640
|
-
const _hoisted_1$
|
|
3640
|
+
const _hoisted_1$T = { class: "calendar-root-wrapper txt16" };
|
|
3641
3641
|
const _hoisted_2$E = ["data-lang"];
|
|
3642
3642
|
const _hoisted_3$x = {
|
|
3643
3643
|
key: 0,
|
|
@@ -3817,7 +3817,7 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3817
3817
|
}
|
|
3818
3818
|
return (_ctx, _cache) => {
|
|
3819
3819
|
var _a2, _b2;
|
|
3820
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
3820
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$T, [
|
|
3821
3821
|
vue.createElementVNode("div", {
|
|
3822
3822
|
ref_key: "calendarRoot",
|
|
3823
3823
|
ref: calendarRoot,
|
|
@@ -3921,7 +3921,7 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3921
3921
|
};
|
|
3922
3922
|
}
|
|
3923
3923
|
});
|
|
3924
|
-
const _hoisted_1$
|
|
3924
|
+
const _hoisted_1$S = {
|
|
3925
3925
|
key: 0,
|
|
3926
3926
|
class: "card_label"
|
|
3927
3927
|
};
|
|
@@ -3954,7 +3954,7 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3954
3954
|
}])
|
|
3955
3955
|
}, {
|
|
3956
3956
|
default: vue.withCtx(() => [
|
|
3957
|
-
_ctx.label ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$
|
|
3957
|
+
_ctx.label ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$S, vue.toDisplayString(_ctx.label), 1)) : vue.createCommentVNode("", true),
|
|
3958
3958
|
vue.renderSlot(_ctx.$slots, "default")
|
|
3959
3959
|
]),
|
|
3960
3960
|
_: 3
|
|
@@ -3964,7 +3964,7 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3964
3964
|
};
|
|
3965
3965
|
}
|
|
3966
3966
|
});
|
|
3967
|
-
const _hoisted_1$
|
|
3967
|
+
const _hoisted_1$R = ["dir"];
|
|
3968
3968
|
const _hoisted_2$D = {
|
|
3969
3969
|
key: 0,
|
|
3970
3970
|
class: "dots"
|
|
@@ -4422,7 +4422,7 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
|
4422
4422
|
}, void 0, true)
|
|
4423
4423
|
])
|
|
4424
4424
|
])
|
|
4425
|
-
], 14, _hoisted_1$
|
|
4425
|
+
], 14, _hoisted_1$R);
|
|
4426
4426
|
};
|
|
4427
4427
|
}
|
|
4428
4428
|
});
|
|
@@ -10262,8 +10262,8 @@ const _hoisted_1$1$1 = {
|
|
|
10262
10262
|
const _hoisted_2$1$1 = ["width", "height", "viewBox"];
|
|
10263
10263
|
const _hoisted_3$v = { class: "layer-rectangles" };
|
|
10264
10264
|
const _hoisted_4$l = ["transform", "onMouseover"];
|
|
10265
|
-
const _hoisted_5$
|
|
10266
|
-
const _hoisted_6$
|
|
10265
|
+
const _hoisted_5$k = ["width", "height"];
|
|
10266
|
+
const _hoisted_6$h = {
|
|
10267
10267
|
x: 0 + 10,
|
|
10268
10268
|
y: 0 + 20,
|
|
10269
10269
|
"font-size": `15px`,
|
|
@@ -10299,14 +10299,14 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10299
10299
|
y: 0,
|
|
10300
10300
|
width: r2.width,
|
|
10301
10301
|
height: r2.height
|
|
10302
|
-
}), null, 16, _hoisted_5$
|
|
10302
|
+
}), null, 16, _hoisted_5$k),
|
|
10303
10303
|
vue.renderSlot(_ctx.$slots, "text", {
|
|
10304
10304
|
r: r2,
|
|
10305
10305
|
selected: _ctx.selected === i2
|
|
10306
10306
|
}, () => [
|
|
10307
10307
|
vue.createElementVNode(
|
|
10308
10308
|
"text",
|
|
10309
|
-
_hoisted_6$
|
|
10309
|
+
_hoisted_6$h,
|
|
10310
10310
|
vue.toDisplayString(r2.data.name),
|
|
10311
10311
|
1
|
|
10312
10312
|
/* TEXT */
|
|
@@ -10370,13 +10370,13 @@ var script = vue.defineComponent({
|
|
|
10370
10370
|
return { bar, canvas, direction, mouse };
|
|
10371
10371
|
}
|
|
10372
10372
|
});
|
|
10373
|
-
const _hoisted_1$
|
|
10373
|
+
const _hoisted_1$Q = {
|
|
10374
10374
|
key: 0,
|
|
10375
10375
|
class: "layer-hover-bar"
|
|
10376
10376
|
};
|
|
10377
10377
|
const _hoisted_2$C = ["x", "y", "width", "height"];
|
|
10378
10378
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10379
|
-
return _ctx.mouse.hover ? (vue.openBlock(), vue.createElementBlock("g", _hoisted_1$
|
|
10379
|
+
return _ctx.mouse.hover ? (vue.openBlock(), vue.createElementBlock("g", _hoisted_1$Q, [
|
|
10380
10380
|
vue.createElementVNode("rect", vue.mergeProps({ class: "hover-bar" }, _ctx.barStyle, {
|
|
10381
10381
|
x: _ctx.bar.x,
|
|
10382
10382
|
y: _ctx.bar.y,
|
|
@@ -10811,7 +10811,7 @@ function useTableData(options) {
|
|
|
10811
10811
|
cleanTransformedData
|
|
10812
10812
|
};
|
|
10813
10813
|
}
|
|
10814
|
-
const _hoisted_1$
|
|
10814
|
+
const _hoisted_1$P = { class: "data-preview" };
|
|
10815
10815
|
const _hoisted_2$B = {
|
|
10816
10816
|
key: 1,
|
|
10817
10817
|
class: "empty-preview"
|
|
@@ -10857,7 +10857,7 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
|
|
|
10857
10857
|
includeUnset: props2.includeUnset
|
|
10858
10858
|
});
|
|
10859
10859
|
return (_ctx, _cache) => {
|
|
10860
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
10860
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$P, [
|
|
10861
10861
|
vue.unref(computedSchema) && vue.unref(computedSchema).length > 0 ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(vue.unref(computedSchema), (field) => {
|
|
10862
10862
|
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(renderField)(field, vue.unref(slots))), {
|
|
10863
10863
|
key: field.id
|
|
@@ -11508,15 +11508,15 @@ function useTableVirtualization(options) {
|
|
|
11508
11508
|
registerLastItemObserver
|
|
11509
11509
|
};
|
|
11510
11510
|
}
|
|
11511
|
-
const _hoisted_1$
|
|
11511
|
+
const _hoisted_1$O = {
|
|
11512
11512
|
key: 0,
|
|
11513
11513
|
class: "loading-table-wrapper z-99 h-100 w-100 absolute inset"
|
|
11514
11514
|
};
|
|
11515
11515
|
const _hoisted_2$A = { class: "infinite-wrapper" };
|
|
11516
11516
|
const _hoisted_3$u = { class: "row first-row" };
|
|
11517
11517
|
const _hoisted_4$k = { key: 0 };
|
|
11518
|
-
const _hoisted_5$
|
|
11519
|
-
const _hoisted_6$
|
|
11518
|
+
const _hoisted_5$j = ["onClick"];
|
|
11519
|
+
const _hoisted_6$g = { class: "flex" };
|
|
11520
11520
|
const _hoisted_7$c = ["onClick"];
|
|
11521
11521
|
const _hoisted_8$7 = { key: 0 };
|
|
11522
11522
|
const _hoisted_9$6 = ["value"];
|
|
@@ -11632,7 +11632,7 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
|
|
|
11632
11632
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({ class: "table-list-wrap h-100" }, vue.unref(containerProps), {
|
|
11633
11633
|
class: { "loading-table": loading.value }
|
|
11634
11634
|
}), [
|
|
11635
|
-
loading.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
11635
|
+
loading.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$O, _cache[4] || (_cache[4] = [
|
|
11636
11636
|
vue.createElementVNode("div", { class: "loading-table-animation absolute oval" }, null, -1)
|
|
11637
11637
|
]))) : (vue.openBlock(), vue.createElementBlock("div", vue.normalizeProps(vue.mergeProps({ key: 1 }, vue.unref(wrapperProps))), [
|
|
11638
11638
|
vue.createElementVNode("table", _hoisted_2$A, [
|
|
@@ -11654,7 +11654,7 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
|
|
|
11654
11654
|
class: "col",
|
|
11655
11655
|
onClick: ($event) => vue.unref(toggleSort)((field == null ? void 0 : field.id) || "")
|
|
11656
11656
|
}, [
|
|
11657
|
-
vue.createElementVNode("div", _hoisted_6$
|
|
11657
|
+
vue.createElementVNode("div", _hoisted_6$g, [
|
|
11658
11658
|
vue.createTextVNode(vue.toDisplayString(field.label || vue.unref(keyToLabel)(field == null ? void 0 : field.id)) + " ", 1),
|
|
11659
11659
|
vue.createElementVNode("div", {
|
|
11660
11660
|
class: vue.normalizeClass(["list-arrows", { sorted: vue.unref(sortField) === (field == null ? void 0 : field.id) }])
|
|
@@ -11665,7 +11665,7 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
|
|
|
11665
11665
|
}, null, 8, ["class"])
|
|
11666
11666
|
], 2)
|
|
11667
11667
|
])
|
|
11668
|
-
], 8, _hoisted_5$
|
|
11668
|
+
], 8, _hoisted_5$j);
|
|
11669
11669
|
}), 128))
|
|
11670
11670
|
]),
|
|
11671
11671
|
vue.createElementVNode("tbody", null, [
|
|
@@ -14898,7 +14898,7 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
|
|
|
14898
14898
|
};
|
|
14899
14899
|
}
|
|
14900
14900
|
});
|
|
14901
|
-
const _hoisted_1$
|
|
14901
|
+
const _hoisted_1$N = { class: "px-1 pt-025 pb-1" };
|
|
14902
14902
|
const _hoisted_2$z = { class: "ms-1" };
|
|
14903
14903
|
const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
|
|
14904
14904
|
__name: "FieldSetVue",
|
|
@@ -14908,7 +14908,7 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
|
|
|
14908
14908
|
},
|
|
14909
14909
|
setup(__props) {
|
|
14910
14910
|
return (_ctx, _cache) => {
|
|
14911
|
-
return vue.openBlock(), vue.createElementBlock("fieldset", _hoisted_1$
|
|
14911
|
+
return vue.openBlock(), vue.createElementBlock("fieldset", _hoisted_1$N, [
|
|
14912
14912
|
vue.createElementVNode("legend", _hoisted_2$z, vue.toDisplayString(_ctx.legend || _ctx.label), 1),
|
|
14913
14913
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
14914
14914
|
]);
|
|
@@ -15356,6 +15356,7 @@ function getNestedValue(obj, path, defaultValue = void 0) {
|
|
|
15356
15356
|
}
|
|
15357
15357
|
return current ?? defaultValue;
|
|
15358
15358
|
}
|
|
15359
|
+
const _hoisted_1$M = { class: "flex-center h-300px" };
|
|
15359
15360
|
const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
|
|
15360
15361
|
__name: "BagelForm",
|
|
15361
15362
|
props: {
|
|
@@ -15369,52 +15370,65 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
|
|
|
15369
15370
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
15370
15371
|
const props2 = __props;
|
|
15371
15372
|
const emit2 = __emit;
|
|
15372
|
-
|
|
15373
|
-
if (!obj) return obj;
|
|
15374
|
-
try {
|
|
15375
|
-
return JSON.parse(JSON.stringify(obj));
|
|
15376
|
-
} catch (e) {
|
|
15377
|
-
console.warn("Failed to clone object:", e);
|
|
15378
|
-
return obj;
|
|
15379
|
-
}
|
|
15380
|
-
}
|
|
15373
|
+
const clone2 = (obj) => !obj ? obj : JSON.parse(JSON.stringify(obj));
|
|
15381
15374
|
const form = vue.ref();
|
|
15382
|
-
const formData = vue.ref(
|
|
15383
|
-
const initialFormData = vue.ref(
|
|
15384
|
-
vue.onMounted(() => {
|
|
15385
|
-
if (props2.modelValue) {
|
|
15386
|
-
initialFormData.value = safeClone2(props2.modelValue);
|
|
15387
|
-
}
|
|
15388
|
-
});
|
|
15375
|
+
const formData = vue.ref(clone2(props2.modelValue ?? {}));
|
|
15376
|
+
const initialFormData = vue.ref(clone2(props2.modelValue ?? {}));
|
|
15389
15377
|
const formState = vue.ref("idle");
|
|
15390
|
-
|
|
15391
|
-
|
|
15392
|
-
|
|
15393
|
-
|
|
15394
|
-
}, { immediate: true, deep: true });
|
|
15395
|
-
const resolvedSchema = vue.computed(() => {
|
|
15396
|
-
if (!props2.schema) return void 0;
|
|
15397
|
-
return typeof props2.schema === "function" ? props2.schema() : props2.schema;
|
|
15398
|
-
});
|
|
15378
|
+
const schemaState = vue.ref("loaded");
|
|
15379
|
+
const resolvedSchemaData = vue.ref();
|
|
15380
|
+
const schemaRef = vue.toRef(props2, "schema");
|
|
15381
|
+
const resolvedSchema = vue.computed(() => resolvedSchemaData.value);
|
|
15399
15382
|
const isDirty = vue.computed(() => {
|
|
15400
15383
|
try {
|
|
15401
|
-
|
|
15402
|
-
|
|
15403
|
-
return current !== initial;
|
|
15404
|
-
} catch (e) {
|
|
15405
|
-
console.warn("Failed to compare form data:", e);
|
|
15384
|
+
return JSON.stringify(formData.value) !== JSON.stringify(initialFormData.value);
|
|
15385
|
+
} catch {
|
|
15406
15386
|
return false;
|
|
15407
15387
|
}
|
|
15408
15388
|
});
|
|
15389
|
+
vue.onMounted(() => {
|
|
15390
|
+
if (props2.modelValue) initialFormData.value = clone2(props2.modelValue);
|
|
15391
|
+
refreshSchema();
|
|
15392
|
+
});
|
|
15393
|
+
vue.watch(() => props2.modelValue, (val) => {
|
|
15394
|
+
if (val !== void 0) formData.value = clone2(val);
|
|
15395
|
+
}, { immediate: true, deep: true });
|
|
15396
|
+
async function resolveSchema(schema) {
|
|
15397
|
+
if (!schema) {
|
|
15398
|
+
resolvedSchemaData.value = void 0;
|
|
15399
|
+
schemaState.value = "loaded";
|
|
15400
|
+
return;
|
|
15401
|
+
}
|
|
15402
|
+
try {
|
|
15403
|
+
schemaState.value = "loading";
|
|
15404
|
+
const isPromise = (obj) => obj && typeof obj.then === "function";
|
|
15405
|
+
let result2;
|
|
15406
|
+
if (typeof schema === "function") {
|
|
15407
|
+
result2 = schema();
|
|
15408
|
+
result2 = isPromise(result2) ? await result2 : result2;
|
|
15409
|
+
} else {
|
|
15410
|
+
result2 = isPromise(schema) ? await schema : schema;
|
|
15411
|
+
}
|
|
15412
|
+
resolvedSchemaData.value = result2;
|
|
15413
|
+
schemaState.value = "loaded";
|
|
15414
|
+
} catch (error) {
|
|
15415
|
+
console.error("Schema error:", error);
|
|
15416
|
+
schemaState.value = "error";
|
|
15417
|
+
resolvedSchemaData.value = void 0;
|
|
15418
|
+
}
|
|
15419
|
+
}
|
|
15420
|
+
async function refreshSchema() {
|
|
15421
|
+
await resolveSchema(props2.schema);
|
|
15422
|
+
return resolvedSchemaData.value;
|
|
15423
|
+
}
|
|
15424
|
+
vue.watch(schemaRef, resolveSchema, { immediate: true, deep: true });
|
|
15409
15425
|
function updateFormData(fieldId, value) {
|
|
15410
15426
|
const keys4 = fieldId.split(".");
|
|
15411
|
-
const newData =
|
|
15427
|
+
const newData = clone2(formData.value);
|
|
15412
15428
|
let current = newData;
|
|
15413
15429
|
for (let i2 = 0; i2 < keys4.length - 1; i2++) {
|
|
15414
15430
|
const key = keys4[i2];
|
|
15415
|
-
if (!current[key] || typeof current[key] !== "object") {
|
|
15416
|
-
current[key] = {};
|
|
15417
|
-
}
|
|
15431
|
+
if (!current[key] || typeof current[key] !== "object") current[key] = {};
|
|
15418
15432
|
current = current[key];
|
|
15419
15433
|
}
|
|
15420
15434
|
current[keys4[keys4.length - 1]] = value;
|
|
@@ -15427,38 +15441,34 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
|
|
|
15427
15441
|
if (formState.value === "submitting") return;
|
|
15428
15442
|
formState.value = "submitting";
|
|
15429
15443
|
await ((_a = props2.onSubmit) == null ? void 0 : _a.call(props2, formData.value));
|
|
15430
|
-
initialFormData.value =
|
|
15444
|
+
initialFormData.value = clone2(formData.value);
|
|
15431
15445
|
formState.value = "success";
|
|
15432
15446
|
window.parent.postMessage({ type: "BAGEL_FORM_SUCCESS", data: JSON.stringify(formData.value) }, "*");
|
|
15433
15447
|
} catch (error) {
|
|
15434
|
-
console.error("
|
|
15448
|
+
console.error("Submit error:", error);
|
|
15435
15449
|
formState.value = "error";
|
|
15436
15450
|
}
|
|
15437
15451
|
}
|
|
15438
|
-
|
|
15439
|
-
|
|
15440
|
-
return form.value.reportValidity();
|
|
15441
|
-
}
|
|
15452
|
+
const validateForm = () => {
|
|
15453
|
+
var _a;
|
|
15454
|
+
return ((_a = form.value) == null ? void 0 : _a.reportValidity()) ?? false;
|
|
15455
|
+
};
|
|
15442
15456
|
const { renderField } = useSchemaField({
|
|
15443
15457
|
mode: "form",
|
|
15444
|
-
getRowData: () => {
|
|
15445
|
-
|
|
15446
|
-
|
|
15447
|
-
|
|
15448
|
-
get: (path) => getNestedValue(formData.value, path, "")
|
|
15449
|
-
};
|
|
15450
|
-
},
|
|
15458
|
+
getRowData: () => ({
|
|
15459
|
+
...formData.value,
|
|
15460
|
+
get: (path) => getNestedValue(formData.value, path, "")
|
|
15461
|
+
}),
|
|
15451
15462
|
onUpdate: (field, value) => {
|
|
15452
15463
|
var _a;
|
|
15453
|
-
if (
|
|
15454
|
-
|
|
15455
|
-
|
|
15464
|
+
if (field.id) {
|
|
15465
|
+
updateFormData(field.id, value);
|
|
15466
|
+
(_a = field.onUpdate) == null ? void 0 : _a.call(field, value, formData.value);
|
|
15467
|
+
}
|
|
15456
15468
|
}
|
|
15457
15469
|
});
|
|
15458
|
-
|
|
15459
|
-
|
|
15460
|
-
}
|
|
15461
|
-
__expose({ form, isDirty: isDirty.value, validateForm });
|
|
15470
|
+
const renderSchemaField = (field) => renderField(field);
|
|
15471
|
+
__expose({ form, isDirty, validateForm, resolveSchema, refreshSchema });
|
|
15462
15472
|
return (_ctx, _cache) => {
|
|
15463
15473
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
15464
15474
|
formState.value !== "success" || !_ctx.$slots.success ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
@@ -15469,23 +15479,36 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
|
|
|
15469
15479
|
class: vue.normalizeClass(props2.class),
|
|
15470
15480
|
onSubmit: vue.withModifiers(handleSubmit, ["prevent"])
|
|
15471
15481
|
}, [
|
|
15472
|
-
|
|
15482
|
+
schemaState.value === "loading" ? vue.renderSlot(_ctx.$slots, "loading", { key: 0 }, () => [
|
|
15483
|
+
vue.createElementVNode("div", _hoisted_1$M, [
|
|
15484
|
+
vue.createVNode(vue.unref(Loading))
|
|
15485
|
+
])
|
|
15486
|
+
]) : schemaState.value === "error" ? vue.renderSlot(_ctx.$slots, "schema-error", { key: 1 }, () => [
|
|
15487
|
+
_cache[0] || (_cache[0] = vue.createElementVNode("div", { class: "flex-center h-300px txt-red" }, " Error loading form ", -1))
|
|
15488
|
+
]) : resolvedSchema.value ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 2 }, vue.renderList(resolvedSchema.value, (field) => {
|
|
15473
15489
|
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(renderSchemaField(field)), {
|
|
15474
15490
|
key: field.id
|
|
15475
15491
|
});
|
|
15476
|
-
}), 128)) : vue.renderSlot(_ctx.$slots, "default", { key:
|
|
15492
|
+
}), 128)) : vue.renderSlot(_ctx.$slots, "default", { key: 3 }),
|
|
15477
15493
|
vue.renderSlot(_ctx.$slots, "submit", {
|
|
15478
15494
|
submit: handleSubmit,
|
|
15479
15495
|
isDirty: isDirty.value,
|
|
15480
15496
|
validateForm,
|
|
15481
|
-
formState: formState.value
|
|
15497
|
+
formState: formState.value,
|
|
15498
|
+
schemaState: schemaState.value
|
|
15482
15499
|
})
|
|
15483
|
-
], 34)) : (vue.openBlock(
|
|
15484
|
-
|
|
15485
|
-
|
|
15486
|
-
|
|
15487
|
-
|
|
15488
|
-
|
|
15500
|
+
], 34)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
15501
|
+
schemaState.value === "loading" ? vue.renderSlot(_ctx.$slots, "loading", { key: 0 }, () => [
|
|
15502
|
+
vue.createVNode(vue.unref(Loading))
|
|
15503
|
+
]) : schemaState.value === "error" ? vue.renderSlot(_ctx.$slots, "schema-error", { key: 1 }, () => [
|
|
15504
|
+
_cache[1] || (_cache[1] = vue.createElementVNode("div", { class: "flex-center h-300px txt-red" }, " Error loading form ", -1))
|
|
15505
|
+
]) : resolvedSchema.value ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 2 }, vue.renderList(resolvedSchema.value, (field) => {
|
|
15506
|
+
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(renderSchemaField(field)), {
|
|
15507
|
+
key: field.id,
|
|
15508
|
+
class: vue.normalizeClass(props2.class)
|
|
15509
|
+
}, null, 8, ["class"]);
|
|
15510
|
+
}), 128)) : vue.createCommentVNode("", true)
|
|
15511
|
+
], 64))
|
|
15489
15512
|
], 64)) : vue.createCommentVNode("", true),
|
|
15490
15513
|
formState.value === "success" ? vue.renderSlot(_ctx.$slots, "success", { key: 1 }) : vue.createCommentVNode("", true),
|
|
15491
15514
|
formState.value === "error" ? vue.renderSlot(_ctx.$slots, "error", { key: 2 }) : vue.createCommentVNode("", true)
|
|
@@ -15499,10 +15522,18 @@ const _hoisted_2$y = {
|
|
|
15499
15522
|
class: "ps-025 border-start mb-05"
|
|
15500
15523
|
};
|
|
15501
15524
|
const _hoisted_3$t = {
|
|
15525
|
+
key: 0,
|
|
15526
|
+
class: "flex-center h-300px"
|
|
15527
|
+
};
|
|
15528
|
+
const _hoisted_4$j = {
|
|
15529
|
+
key: 1,
|
|
15530
|
+
class: "flex-center h-300px txt-red"
|
|
15531
|
+
};
|
|
15532
|
+
const _hoisted_5$i = {
|
|
15502
15533
|
key: 0,
|
|
15503
15534
|
class: "minimizedText txt14 p-025 opacity-7"
|
|
15504
15535
|
};
|
|
15505
|
-
const
|
|
15536
|
+
const _hoisted_6$f = { class: "bg-gray-80 -my-05 px-025 pt-065 pb-05 txt-center space-between flex column" };
|
|
15506
15537
|
const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
15507
15538
|
__name: "FieldArray",
|
|
15508
15539
|
props: {
|
|
@@ -15529,109 +15560,114 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
|
15529
15560
|
const props2 = __props;
|
|
15530
15561
|
const emit2 = __emit;
|
|
15531
15562
|
const minimizedItems = vue.ref([]);
|
|
15532
|
-
const
|
|
15563
|
+
const internalData = vue.ref(props2.modelValue || []);
|
|
15564
|
+
const schemaState = vue.ref("loaded");
|
|
15565
|
+
const resolvedSchemaData = vue.ref([]);
|
|
15566
|
+
async function resolveSchema() {
|
|
15567
|
+
if (!props2.schema) {
|
|
15568
|
+
resolvedSchemaData.value = [];
|
|
15569
|
+
schemaState.value = "loaded";
|
|
15570
|
+
return;
|
|
15571
|
+
}
|
|
15572
|
+
try {
|
|
15573
|
+
schemaState.value = "loading";
|
|
15574
|
+
const isPromise = (obj) => obj && typeof obj.then === "function";
|
|
15575
|
+
let result2;
|
|
15576
|
+
if (typeof props2.schema === "function") {
|
|
15577
|
+
result2 = props2.schema();
|
|
15578
|
+
result2 = isPromise(result2) ? await result2 : result2;
|
|
15579
|
+
} else {
|
|
15580
|
+
result2 = isPromise(props2.schema) ? await props2.schema : props2.schema;
|
|
15581
|
+
}
|
|
15582
|
+
resolvedSchemaData.value = result2;
|
|
15583
|
+
schemaState.value = "loaded";
|
|
15584
|
+
} catch (error) {
|
|
15585
|
+
console.error("Schema error:", error);
|
|
15586
|
+
schemaState.value = "error";
|
|
15587
|
+
resolvedSchemaData.value = [];
|
|
15588
|
+
}
|
|
15589
|
+
}
|
|
15590
|
+
vue.onMounted(() => {
|
|
15591
|
+
resolveSchema();
|
|
15592
|
+
});
|
|
15533
15593
|
function emitValue() {
|
|
15534
|
-
emit2("update:modelValue",
|
|
15594
|
+
emit2("update:modelValue", internalData.value);
|
|
15535
15595
|
}
|
|
15536
15596
|
function deleteItem(i2) {
|
|
15537
|
-
|
|
15597
|
+
internalData.value.splice(i2, 1);
|
|
15538
15598
|
emitValue();
|
|
15539
15599
|
}
|
|
15540
15600
|
function addItem() {
|
|
15541
|
-
|
|
15601
|
+
internalData.value.push({});
|
|
15542
15602
|
emitValue();
|
|
15543
15603
|
}
|
|
15544
15604
|
function toggleMinimized(index2) {
|
|
15545
15605
|
minimizedItems.value[index2] = !minimizedItems.value[index2];
|
|
15546
15606
|
}
|
|
15547
|
-
|
|
15548
|
-
|
|
15549
|
-
|
|
15550
|
-
|
|
15551
|
-
children: props2.children,
|
|
15552
|
-
// class: props.class,
|
|
15553
|
-
attrs: props2.attrs,
|
|
15554
|
-
required: props2.required,
|
|
15555
|
-
disabled: props2.disabled,
|
|
15556
|
-
helptext: props2.helptext,
|
|
15557
|
-
options: props2.options,
|
|
15558
|
-
defaultValue: props2.defaultValue,
|
|
15559
|
-
transform: props2.transform,
|
|
15560
|
-
$el: props2.el
|
|
15561
|
-
})
|
|
15562
|
-
);
|
|
15563
|
-
const resolvedSchema = vue.computed(() => {
|
|
15564
|
-
if (!props2.schema) return [];
|
|
15565
|
-
return typeof props2.schema === "function" ? props2.schema() : props2.schema;
|
|
15566
|
-
});
|
|
15567
|
-
const { renderField } = useSchemaField({
|
|
15568
|
-
mode: "form",
|
|
15569
|
-
getRowData: () => data2.value,
|
|
15570
|
-
onUpdate: (field, value) => {
|
|
15571
|
-
if (!field.id) return;
|
|
15572
|
-
const index2 = Number.parseInt(field.id);
|
|
15573
|
-
if (Number.isNaN(index2)) return;
|
|
15574
|
-
data2.value[index2] = value;
|
|
15575
|
-
emitValue();
|
|
15576
|
-
}
|
|
15577
|
-
});
|
|
15607
|
+
function updateItem(index2, value) {
|
|
15608
|
+
internalData.value[index2] = value;
|
|
15609
|
+
emitValue();
|
|
15610
|
+
}
|
|
15578
15611
|
return (_ctx, _cache) => {
|
|
15579
15612
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
15580
15613
|
class: vue.normalizeClass(props2.class)
|
|
15581
15614
|
}, [
|
|
15582
15615
|
vue.createElementVNode("p", _hoisted_1$L, vue.toDisplayString(_ctx.label), 1),
|
|
15583
|
-
|
|
15584
|
-
(vue.openBlock(
|
|
15585
|
-
|
|
15586
|
-
|
|
15587
|
-
|
|
15588
|
-
|
|
15589
|
-
|
|
15590
|
-
|
|
15591
|
-
|
|
15592
|
-
|
|
15593
|
-
|
|
15594
|
-
"
|
|
15595
|
-
schema: resolvedSchema.value
|
|
15596
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "schema"])),
|
|
15597
|
-
vue.createElementVNode("div", _hoisted_4$j, [
|
|
15598
|
-
resolvedSchema.value.length > 4 ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
|
|
15599
|
-
key: 0,
|
|
15600
|
-
class: "block rotate-180 txt10 opacity-7 p-025",
|
|
15601
|
-
flat: "",
|
|
15602
|
-
thin: "",
|
|
15603
|
-
icon: "keyboard_arrow_down",
|
|
15604
|
-
onClick: ($event) => toggleMinimized(i2)
|
|
15605
|
-
}, null, 8, ["onClick"])) : vue.createCommentVNode("", true),
|
|
15606
|
-
props2.delete ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
|
|
15616
|
+
resolvedSchemaData.value.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$y, [
|
|
15617
|
+
schemaState.value === "loading" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$t, [
|
|
15618
|
+
vue.createVNode(vue.unref(Loading))
|
|
15619
|
+
])) : schemaState.value === "error" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$j, " Error ")) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
|
|
15620
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(internalData.value, (item, i2) => {
|
|
15621
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
15622
|
+
key: i2,
|
|
15623
|
+
outline: "",
|
|
15624
|
+
thin: "",
|
|
15625
|
+
class: vue.normalizeClass(["mb-05 itemBox transition ps-05 pb-025 pt-025 radius-05 gap-05 overflow-hidden", { minimized: minimizedItems.value[i2] }])
|
|
15626
|
+
}, [
|
|
15627
|
+
minimizedItems.value[i2] ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_5$i, vue.toDisplayString(_ctx.label) + " " + vue.toDisplayString(i2 + 1), 1)) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$T), {
|
|
15607
15628
|
key: 1,
|
|
15608
|
-
|
|
15609
|
-
|
|
15610
|
-
|
|
15611
|
-
|
|
15612
|
-
|
|
15613
|
-
|
|
15614
|
-
|
|
15615
|
-
|
|
15616
|
-
|
|
15617
|
-
|
|
15618
|
-
|
|
15619
|
-
|
|
15620
|
-
|
|
15621
|
-
|
|
15622
|
-
|
|
15623
|
-
|
|
15624
|
-
|
|
15625
|
-
|
|
15626
|
-
|
|
15627
|
-
|
|
15628
|
-
|
|
15629
|
-
|
|
15630
|
-
|
|
15631
|
-
|
|
15632
|
-
|
|
15633
|
-
|
|
15634
|
-
|
|
15629
|
+
"model-value": item,
|
|
15630
|
+
schema: resolvedSchemaData.value,
|
|
15631
|
+
"onUpdate:modelValue": (val) => updateItem(i2, val)
|
|
15632
|
+
}, null, 8, ["model-value", "schema", "onUpdate:modelValue"])),
|
|
15633
|
+
vue.createElementVNode("div", _hoisted_6$f, [
|
|
15634
|
+
resolvedSchemaData.value.length > 4 ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
|
|
15635
|
+
key: 0,
|
|
15636
|
+
class: "block rotate-180 txt10 opacity-7 p-025",
|
|
15637
|
+
flat: "",
|
|
15638
|
+
thin: "",
|
|
15639
|
+
icon: "keyboard_arrow_down",
|
|
15640
|
+
onClick: ($event) => toggleMinimized(i2)
|
|
15641
|
+
}, null, 8, ["onClick"])) : vue.createCommentVNode("", true),
|
|
15642
|
+
props2.delete ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
|
|
15643
|
+
key: 1,
|
|
15644
|
+
icon: "delete",
|
|
15645
|
+
class: "txt10 opacity-7",
|
|
15646
|
+
thin: "",
|
|
15647
|
+
flat: "",
|
|
15648
|
+
onClick: ($event) => deleteItem(i2)
|
|
15649
|
+
}, null, 8, ["onClick"])) : vue.createCommentVNode("", true)
|
|
15650
|
+
])
|
|
15651
|
+
], 2);
|
|
15652
|
+
}), 128)),
|
|
15653
|
+
_ctx.add ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
|
|
15654
|
+
key: 0,
|
|
15655
|
+
thin: "",
|
|
15656
|
+
icon: "add",
|
|
15657
|
+
color: "gray",
|
|
15658
|
+
class: "txt12",
|
|
15659
|
+
onClick: addItem
|
|
15660
|
+
}, {
|
|
15661
|
+
default: vue.withCtx(() => [
|
|
15662
|
+
vue.createElementVNode("p", null, vue.toDisplayString(_ctx.label), 1)
|
|
15663
|
+
]),
|
|
15664
|
+
_: 1
|
|
15665
|
+
})) : vue.createCommentVNode("", true)
|
|
15666
|
+
], 64))
|
|
15667
|
+
])) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(internalData.value, (_2, i2) => {
|
|
15668
|
+
return vue.openBlock(), vue.createElementBlock("div", { key: i2 }, _cache[0] || (_cache[0] = [
|
|
15669
|
+
vue.createElementVNode("p", null, "No schema available", -1)
|
|
15670
|
+
]));
|
|
15635
15671
|
}), 128))
|
|
15636
15672
|
], 2);
|
|
15637
15673
|
};
|
|
@@ -34126,7 +34162,7 @@ const _hoisted_1$c = { class: "flex-center" };
|
|
|
34126
34162
|
const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
34127
34163
|
__name: "Loading",
|
|
34128
34164
|
props: {
|
|
34129
|
-
size: { default:
|
|
34165
|
+
size: { default: 50 },
|
|
34130
34166
|
thickness: {},
|
|
34131
34167
|
duration: { default: 1.2 },
|
|
34132
34168
|
type: { default: "ring" },
|
|
@@ -34141,7 +34177,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
34141
34177
|
const computedSize = vue.computed(() => standardSize(__props.size));
|
|
34142
34178
|
const animationDuration = vue.computed(() => `${__props.duration}s`);
|
|
34143
34179
|
const computedBorder = vue.computed(() => {
|
|
34144
|
-
const borderValue = __props.thickness ?? Number.parseInt(computedSize.value) /
|
|
34180
|
+
const borderValue = __props.thickness ?? Math.max(Number.parseInt(computedSize.value) / 9, 2);
|
|
34145
34181
|
return standardSize(borderValue);
|
|
34146
34182
|
});
|
|
34147
34183
|
return (_ctx, _cache) => {
|
|
@@ -34187,7 +34223,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
34187
34223
|
};
|
|
34188
34224
|
}
|
|
34189
34225
|
});
|
|
34190
|
-
const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
34226
|
+
const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-221a3053"]]);
|
|
34191
34227
|
const _hoisted_1$b = ["id"];
|
|
34192
34228
|
const defaultMarkerSVG = '<svg width="28" height="38" viewBox="0 0 28 38" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.2263 37.7955C17.0897 37.7955 19.4109 37.0138 19.4109 36.0496C19.4109 35.0854 17.0897 34.3037 14.2263 34.3037C11.363 34.3037 9.04175 35.0854 9.04175 36.0496C9.04175 37.0138 11.363 37.7955 14.2263 37.7955Z" fill="black" fill-opacity="0.1"/><path d="M14.2265 0.549591C21.2842 0.549591 27.0131 6.23786 27.0787 13.28V13.4024C27.0787 19.3328 24.4759 24.4306 21.5627 28.2764C18.6511 32.12 15.4577 34.6754 14.3457 35.5097C14.2748 35.5629 14.1778 35.5629 14.1068 35.5097C12.9947 34.675 9.80135 32.1197 6.88984 28.2762C3.97665 24.4304 1.37378 19.3328 1.37378 13.4024C1.37378 6.30387 7.12806 0.549591 14.2265 0.549591Z" fill="#ED1b3E" stroke="#ED6C6F"/><path d="M14.2263 21.6185C18.7639 21.6185 22.4424 17.94 22.4424 13.4024C22.4424 8.86477 18.7639 5.18631 14.2263 5.18631C9.68872 5.18631 6.01025 8.86477 6.01025 13.4024C6.01025 17.94 9.68872 21.6185 14.2263 21.6185Z" fill="white"/></svg>';
|
|
34193
34229
|
const leafletScriptUrl = "https://unpkg.com/leaflet@1.9.4/dist/leaflet.js";
|
|
@@ -36220,10 +36256,17 @@ function useBagelFormState() {
|
|
|
36220
36256
|
if (!state2) throw new Error("BagelFormState must be provided");
|
|
36221
36257
|
return state2;
|
|
36222
36258
|
}
|
|
36223
|
-
function useBglSchema({ schema, columns, data: data2 } = {}) {
|
|
36259
|
+
async function useBglSchema({ schema, columns, data: data2 } = {}) {
|
|
36224
36260
|
let _schema = schema;
|
|
36225
36261
|
if (typeof _schema === "function") {
|
|
36226
|
-
|
|
36262
|
+
const result2 = _schema();
|
|
36263
|
+
if (result2 instanceof Promise) {
|
|
36264
|
+
_schema = await result2;
|
|
36265
|
+
} else {
|
|
36266
|
+
_schema = result2;
|
|
36267
|
+
}
|
|
36268
|
+
} else if (_schema instanceof Promise) {
|
|
36269
|
+
_schema = await _schema;
|
|
36227
36270
|
}
|
|
36228
36271
|
if (_schema) {
|
|
36229
36272
|
return columns && columns.length > 0 ? _schema.filter((f2) => columns.includes(f2.id)) : _schema;
|