@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.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { defineComponent, reactive, provide, openBlock, createElementBlock, renderSlot, ref, computed, inject, watch, normalizeClass, createElementVNode, unref, createVNode, createCommentVNode, toDisplayString, Transition, withCtx, isRef, Fragment, renderList, createBlock, useSlots, resolveDirective, withDirectives, resolveDynamicComponent, mergeProps, withModifiers, withKeys, createTextVNode, normalizeStyle, useCssVars, onMounted, Comment, Text, nextTick, onBeforeUnmount, onUnmounted, resolveComponent, isVNode, h as h$2, getCurrentScope, onScopeDispose, toValue, getCurrentInstance, shallowRef, mergeModels, useModel, normalizeProps, vModelCheckbox, pushScopeId, popScopeId, guardReactiveProps, withScopeId, createApp, vModelText, vModelRadio, TransitionGroup, vModelDynamic,
|
|
4
|
+
import { defineComponent, reactive, provide, openBlock, createElementBlock, renderSlot, ref, computed, inject, watch, normalizeClass, createElementVNode, unref, createVNode, createCommentVNode, toDisplayString, Transition, withCtx, isRef, Fragment, renderList, createBlock, useSlots, resolveDirective, withDirectives, resolveDynamicComponent, mergeProps, withModifiers, withKeys, createTextVNode, normalizeStyle, useCssVars, onMounted, Comment, Text, nextTick, onBeforeUnmount, onUnmounted, resolveComponent, isVNode, h as h$2, getCurrentScope, onScopeDispose, toValue, getCurrentInstance, shallowRef, mergeModels, useModel, normalizeProps, vModelCheckbox, pushScopeId, popScopeId, guardReactiveProps, withScopeId, createApp, toRef, vModelText, vModelRadio, TransitionGroup, vModelDynamic, createSlots } from "vue";
|
|
5
5
|
import { RouterLink } from "vue-router";
|
|
6
6
|
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "Accordion",
|
|
@@ -17,7 +17,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
const _hoisted_1$
|
|
20
|
+
const _hoisted_1$1b = ["aria-expanded", "aria-controls"];
|
|
21
21
|
const _hoisted_2$T = { class: "accordion-label" };
|
|
22
22
|
const _hoisted_3$I = ["id", "aria-hidden"];
|
|
23
23
|
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
@@ -94,7 +94,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
94
94
|
}, [
|
|
95
95
|
createVNode(unref(_sfc_main$s), { icon: computedIcon.value }, null, 8, ["icon"])
|
|
96
96
|
], 2)) : createCommentVNode("", true)
|
|
97
|
-
], 8, _hoisted_1$
|
|
97
|
+
], 8, _hoisted_1$1b),
|
|
98
98
|
createVNode(Transition, { name: "expand" }, {
|
|
99
99
|
default: withCtx(() => [
|
|
100
100
|
unref(isOpen) ? (openBlock(), createElementBlock("div", {
|
|
@@ -120,7 +120,7 @@ const _export_sfc = (sfc, props2) => {
|
|
|
120
120
|
return target;
|
|
121
121
|
};
|
|
122
122
|
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["__scopeId", "data-v-3334f637"]]);
|
|
123
|
-
const _hoisted_1$
|
|
123
|
+
const _hoisted_1$1a = { class: "relative" };
|
|
124
124
|
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
125
125
|
__name: "AddressSearch",
|
|
126
126
|
emits: ["addressSelected"],
|
|
@@ -143,7 +143,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
143
143
|
(_a = suggestion.value) == null ? void 0 : _a.show();
|
|
144
144
|
}
|
|
145
145
|
return (_ctx, _cache) => {
|
|
146
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
146
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1a, [
|
|
147
147
|
createVNode(unref(_sfc_main$W), {
|
|
148
148
|
ref_key: "suggestion",
|
|
149
149
|
ref: suggestion,
|
|
@@ -179,7 +179,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
181
|
});
|
|
182
|
-
const _hoisted_1$
|
|
182
|
+
const _hoisted_1$19 = {
|
|
183
183
|
key: 1,
|
|
184
184
|
class: "bgl_btn-flex"
|
|
185
185
|
};
|
|
@@ -249,7 +249,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
249
249
|
key: 0,
|
|
250
250
|
class: "h-100p",
|
|
251
251
|
size: "15"
|
|
252
|
-
})) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
252
|
+
})) : (openBlock(), createElementBlock("div", _hoisted_1$19, [
|
|
253
253
|
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$s), {
|
|
254
254
|
key: 0,
|
|
255
255
|
icon: _ctx.icon,
|
|
@@ -274,7 +274,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
274
274
|
}
|
|
275
275
|
});
|
|
276
276
|
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["__scopeId", "data-v-bfc435b3"]]);
|
|
277
|
-
const _hoisted_1$
|
|
277
|
+
const _hoisted_1$18 = ["dismissable"];
|
|
278
278
|
const _hoisted_2$S = { class: "m-0" };
|
|
279
279
|
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
280
280
|
__name: "Alert",
|
|
@@ -312,12 +312,12 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
312
312
|
icon: "close",
|
|
313
313
|
onClick: _cache[0] || (_cache[0] = ($event) => isDismissed.value = true)
|
|
314
314
|
})
|
|
315
|
-
], 10, _hoisted_1$
|
|
315
|
+
], 10, _hoisted_1$18)) : createCommentVNode("", true);
|
|
316
316
|
};
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
319
|
const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-064bdd20"]]);
|
|
320
|
-
const _hoisted_1$
|
|
320
|
+
const _hoisted_1$17 = ["src", "alt"];
|
|
321
321
|
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
322
322
|
__name: "Avatar",
|
|
323
323
|
props: {
|
|
@@ -336,7 +336,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
336
336
|
key: 0,
|
|
337
337
|
src: _ctx.src,
|
|
338
338
|
alt: _ctx.name
|
|
339
|
-
}, null, 8, _hoisted_1$
|
|
339
|
+
}, null, 8, _hoisted_1$17)) : (openBlock(), createElementBlock("p", {
|
|
340
340
|
key: 1,
|
|
341
341
|
style: normalizeStyle({ "line-height": `${_ctx.size}px`, "font-size": `calc(1.5rem * ${_ctx.size} / 50)` })
|
|
342
342
|
}, toDisplayString((_ctx.fallback || unref(initials)(_ctx.name || "")).toUpperCase()), 5))
|
|
@@ -375,7 +375,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
375
375
|
}
|
|
376
376
|
});
|
|
377
377
|
const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-689f051f"]]);
|
|
378
|
-
const _hoisted_1$
|
|
378
|
+
const _hoisted_1$16 = ["src"];
|
|
379
379
|
const _hoisted_2$R = ["autoplay", "muted", "loop", "controls", "playsinline"];
|
|
380
380
|
const _hoisted_3$H = ["src", "type"];
|
|
381
381
|
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
@@ -455,7 +455,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
455
455
|
allowfullscreen: "",
|
|
456
456
|
title: "Video",
|
|
457
457
|
allow: "autoplay"
|
|
458
|
-
}, null, 12, _hoisted_1$
|
|
458
|
+
}, null, 12, _hoisted_1$16)) : _ctx.src ? (openBlock(), createElementBlock("video", {
|
|
459
459
|
key: 1,
|
|
460
460
|
ref_key: "video",
|
|
461
461
|
ref: video,
|
|
@@ -606,7 +606,7 @@ function translate(key, locale2 = "en-US") {
|
|
|
606
606
|
const language = languageKeys[key] || {};
|
|
607
607
|
return language[locale2] || key;
|
|
608
608
|
}
|
|
609
|
-
const _hoisted_1$
|
|
609
|
+
const _hoisted_1$15 = { class: "flex gap-05 space-between pb-1 datePick" };
|
|
610
610
|
const _hoisted_2$Q = { class: "flex gap-1 m_gap-025" };
|
|
611
611
|
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
612
612
|
__name: "Header",
|
|
@@ -686,7 +686,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
686
686
|
emit2("updatedPeriod", currentPeriod.value);
|
|
687
687
|
}
|
|
688
688
|
return (_ctx, _cache) => {
|
|
689
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
689
|
+
return openBlock(), createElementBlock("div", _hoisted_1$15, [
|
|
690
690
|
createElementVNode("div", _hoisted_2$Q, [
|
|
691
691
|
createVNode(unref(Btn), {
|
|
692
692
|
flat: "",
|
|
@@ -737,7 +737,7 @@ const EVENT_COLORS = {
|
|
|
737
737
|
};
|
|
738
738
|
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
|
-
const _hoisted_1$
|
|
740
|
+
const _hoisted_1$14 = ["id"];
|
|
741
741
|
const _hoisted_2$P = { class: "flex txt14 flex column align-items-start gap-025 opacity-6" };
|
|
742
742
|
const _hoisted_3$G = {
|
|
743
743
|
key: 0,
|
|
@@ -747,8 +747,8 @@ const _hoisted_4$u = {
|
|
|
747
747
|
key: 1,
|
|
748
748
|
class: "agenda__event-location flex gap-025"
|
|
749
749
|
};
|
|
750
|
-
const _hoisted_5$
|
|
751
|
-
const _hoisted_6$
|
|
750
|
+
const _hoisted_5$q = { class: "agenda__event-title" };
|
|
751
|
+
const _hoisted_6$m = {
|
|
752
752
|
key: 0,
|
|
753
753
|
class: "agenda__event-with txt14 opacity-6"
|
|
754
754
|
};
|
|
@@ -844,25 +844,25 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
844
844
|
])) : createCommentVNode("", true)
|
|
845
845
|
]),
|
|
846
846
|
createElementVNode("div", null, [
|
|
847
|
-
createElementVNode("div", _hoisted_5$
|
|
848
|
-
__props.calendarEvent.with ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
847
|
+
createElementVNode("div", _hoisted_5$q, toDisplayString(__props.calendarEvent.title), 1),
|
|
848
|
+
__props.calendarEvent.with ? (openBlock(), createElementBlock("div", _hoisted_6$m, [
|
|
849
849
|
createVNode(unref(_sfc_main$s), {
|
|
850
850
|
icon: icons.user
|
|
851
851
|
}, null, 8, ["icon"]),
|
|
852
852
|
createTextVNode(" " + toDisplayString(__props.calendarEvent.with), 1)
|
|
853
853
|
])) : createCommentVNode("", true)
|
|
854
854
|
])
|
|
855
|
-
], 8, _hoisted_1$
|
|
855
|
+
], 8, _hoisted_1$14);
|
|
856
856
|
};
|
|
857
857
|
}
|
|
858
858
|
});
|
|
859
859
|
const AgendaEventTile = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__scopeId", "data-v-5740437b"]]);
|
|
860
|
-
const _hoisted_1$
|
|
860
|
+
const _hoisted_1$13 = { class: "agenda__wrapper grid align-items-start gap-1 h-100p" };
|
|
861
861
|
const _hoisted_2$O = { class: "m_sticky" };
|
|
862
862
|
const _hoisted_3$F = { class: "agenda__header-day-name txt-center" };
|
|
863
863
|
const _hoisted_4$t = { class: "agenda__header-date flex justify-content-center rounded p-025 txt24 line-height-04" };
|
|
864
|
-
const _hoisted_5$
|
|
865
|
-
const _hoisted_6$
|
|
864
|
+
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" };
|
|
865
|
+
const _hoisted_6$l = {
|
|
866
866
|
key: 0,
|
|
867
867
|
class: "align-items-center flex justify-content-center h-100p opacity-6"
|
|
868
868
|
};
|
|
@@ -890,13 +890,13 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
890
890
|
setup(__props, { emit: __emit }) {
|
|
891
891
|
const emit2 = __emit;
|
|
892
892
|
return (_ctx, _cache) => {
|
|
893
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
893
|
+
return openBlock(), createElementBlock("div", _hoisted_1$13, [
|
|
894
894
|
createElementVNode("header", _hoisted_2$O, [
|
|
895
895
|
createElementVNode("div", _hoisted_3$F, toDisplayString(__props.day.dayName.slice(0, 3)), 1),
|
|
896
896
|
createElementVNode("div", _hoisted_4$t, toDisplayString(__props.day.dateTimeString.substring(8, 10)), 1)
|
|
897
897
|
]),
|
|
898
|
-
createElementVNode("div", _hoisted_5$
|
|
899
|
-
__props.day.events.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
898
|
+
createElementVNode("div", _hoisted_5$p, [
|
|
899
|
+
__props.day.events.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_6$l, toDisplayString(unref(getLanguage)(unref(languageKeys).noEvent, __props.time.CALENDAR_LOCALE)), 1)) : (openBlock(), createElementBlock("div", _hoisted_7$g, [
|
|
900
900
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.day.events, (dayEvent) => {
|
|
901
901
|
return openBlock(), createBlock(AgendaEventTile, {
|
|
902
902
|
key: `agenda_event_${dayEvent.id}`,
|
|
@@ -1592,7 +1592,7 @@ class EventFlyoutPosition {
|
|
|
1592
1592
|
return { top: eventElementDOMRect.top, left: null };
|
|
1593
1593
|
}
|
|
1594
1594
|
}
|
|
1595
|
-
const _hoisted_1$
|
|
1595
|
+
const _hoisted_1$12 = {
|
|
1596
1596
|
key: 0,
|
|
1597
1597
|
class: "event-flyout__relative-wrapper"
|
|
1598
1598
|
};
|
|
@@ -1602,11 +1602,11 @@ const _hoisted_3$E = {
|
|
|
1602
1602
|
class: "event-flyout__menu-editable"
|
|
1603
1603
|
};
|
|
1604
1604
|
const _hoisted_4$s = { class: "event-flyout__menu-close" };
|
|
1605
|
-
const _hoisted_5$
|
|
1605
|
+
const _hoisted_5$o = {
|
|
1606
1606
|
key: 0,
|
|
1607
1607
|
class: "event-flyout__info-wrapper"
|
|
1608
1608
|
};
|
|
1609
|
-
const _hoisted_6$
|
|
1609
|
+
const _hoisted_6$k = {
|
|
1610
1610
|
key: 0,
|
|
1611
1611
|
class: "event-flyout__row is-title"
|
|
1612
1612
|
};
|
|
@@ -1804,7 +1804,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
1804
1804
|
class: normalizeClass(["event-flyout p-05 bg-white", { "is-visible": isVisible.value, "is-not-editable": !isEditable.value }]),
|
|
1805
1805
|
style: normalizeStyle(eventFlyoutInlineStyles.value)
|
|
1806
1806
|
}, [
|
|
1807
|
-
!__props.config.eventDialog || !__props.config.eventDialog.isCustom ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
1807
|
+
!__props.config.eventDialog || !__props.config.eventDialog.isCustom ? (openBlock(), createElementBlock("div", _hoisted_1$12, [
|
|
1808
1808
|
createElementVNode("div", _hoisted_2$N, [
|
|
1809
1809
|
isEditable.value ? (openBlock(), createElementBlock("span", _hoisted_3$E, [
|
|
1810
1810
|
createVNode(unref(_sfc_main$s), {
|
|
@@ -1826,8 +1826,8 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
1826
1826
|
}, null, 8, ["icon"])
|
|
1827
1827
|
])
|
|
1828
1828
|
]),
|
|
1829
|
-
calendarEvent.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
1830
|
-
calendarEvent.value.title ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
1829
|
+
calendarEvent.value ? (openBlock(), createElementBlock("div", _hoisted_5$o, [
|
|
1830
|
+
calendarEvent.value.title ? (openBlock(), createElementBlock("div", _hoisted_6$k, [
|
|
1831
1831
|
createElementVNode("div", {
|
|
1832
1832
|
class: "event-flyout__color-icon",
|
|
1833
1833
|
style: normalizeStyle({ backgroundColor: eventBackgroundColor.value })
|
|
@@ -1871,7 +1871,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
1871
1871
|
};
|
|
1872
1872
|
}
|
|
1873
1873
|
});
|
|
1874
|
-
const _hoisted_1$
|
|
1874
|
+
const _hoisted_1$11 = {
|
|
1875
1875
|
key: 0,
|
|
1876
1876
|
class: "calendar-month__event"
|
|
1877
1877
|
};
|
|
@@ -1881,7 +1881,7 @@ const _hoisted_4$r = {
|
|
|
1881
1881
|
key: 0,
|
|
1882
1882
|
class: "calendar-month__event-time opacity-6 flex-shrink-0"
|
|
1883
1883
|
};
|
|
1884
|
-
const _hoisted_5$
|
|
1884
|
+
const _hoisted_5$n = { class: "calendar-month__event-title1 white-space ellipsis" };
|
|
1885
1885
|
const eventIdPrefix = "calendar-month__event-";
|
|
1886
1886
|
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
1887
1887
|
__name: "Event",
|
|
@@ -1963,7 +1963,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1963
1963
|
setColors();
|
|
1964
1964
|
});
|
|
1965
1965
|
return (_ctx, _cache) => {
|
|
1966
|
-
return __props.config.isSmall ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
1966
|
+
return __props.config.isSmall ? (openBlock(), createElementBlock("div", _hoisted_1$11)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1967
1967
|
isCustomEvent.value ? (openBlock(), createElementBlock("div", {
|
|
1968
1968
|
key: 0,
|
|
1969
1969
|
id: elementId.value,
|
|
@@ -1985,14 +1985,14 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1985
1985
|
}, [
|
|
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$r, toDisplayString(eventTimeStart.value), 1)) : createCommentVNode("", true),
|
|
1988
|
-
createElementVNode("span", _hoisted_5$
|
|
1988
|
+
createElementVNode("span", _hoisted_5$n, toDisplayString(__props.calendarEvent.title), 1)
|
|
1989
1989
|
], 42, _hoisted_3$D))
|
|
1990
1990
|
], 64));
|
|
1991
1991
|
};
|
|
1992
1992
|
}
|
|
1993
1993
|
});
|
|
1994
1994
|
const Event = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-3c4101df"]]);
|
|
1995
|
-
const _hoisted_1
|
|
1995
|
+
const _hoisted_1$10 = ["id"];
|
|
1996
1996
|
const _hoisted_2$L = { class: "w-100p flex justify-content-end txt14 p-025 m_h-100p" };
|
|
1997
1997
|
const _hoisted_3$C = { class: "calendar-month_events" };
|
|
1998
1998
|
const _hoisted_4$q = {
|
|
@@ -2129,12 +2129,12 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
2129
2129
|
}, toDisplayString(unref(getLanguage)(unref(languageKeys).moreEvents, __props.time.CALENDAR_LOCALE)), 1)) : createCommentVNode("", true)
|
|
2130
2130
|
])
|
|
2131
2131
|
], true)
|
|
2132
|
-
], 42, _hoisted_1
|
|
2132
|
+
], 42, _hoisted_1$10)) : (openBlock(), createElementBlock("div", _hoisted_4$q));
|
|
2133
2133
|
};
|
|
2134
2134
|
}
|
|
2135
2135
|
});
|
|
2136
2136
|
const Day$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-c1dfa100"]]);
|
|
2137
|
-
const _hoisted_1
|
|
2137
|
+
const _hoisted_1$$ = { class: "txt12 normal block color-black pb-025" };
|
|
2138
2138
|
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
2139
2139
|
__name: "WeekDay",
|
|
2140
2140
|
props: {
|
|
@@ -2142,11 +2142,11 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
2142
2142
|
},
|
|
2143
2143
|
setup(__props) {
|
|
2144
2144
|
return (_ctx, _cache) => {
|
|
2145
|
-
return openBlock(), createElementBlock("span", _hoisted_1
|
|
2145
|
+
return openBlock(), createElementBlock("span", _hoisted_1$$, toDisplayString(_ctx.day.dayName), 1);
|
|
2146
2146
|
};
|
|
2147
2147
|
}
|
|
2148
2148
|
});
|
|
2149
|
-
const _hoisted_1$
|
|
2149
|
+
const _hoisted_1$_ = { class: "calendar-month relative column w-100p h-100p overflow-y flex flex-stretch" };
|
|
2150
2150
|
const _hoisted_2$K = { class: "flex space-between" };
|
|
2151
2151
|
const _hoisted_3$B = { class: "calendar-month__weeks h-100p flex-grow flex flex-stretch column space-between" };
|
|
2152
2152
|
const _hoisted_4$p = {
|
|
@@ -2255,7 +2255,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
2255
2255
|
});
|
|
2256
2256
|
return (_ctx, _cache) => {
|
|
2257
2257
|
var _a;
|
|
2258
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2258
|
+
return openBlock(), createElementBlock("div", _hoisted_1$_, [
|
|
2259
2259
|
createElementVNode("div", _hoisted_2$K, [
|
|
2260
2260
|
(openBlock(true), createElementBlock(Fragment, null, renderList(month.value[0], (day, dayIndex) => {
|
|
2261
2261
|
return openBlock(), createBlock(_sfc_main$19, {
|
|
@@ -2532,18 +2532,18 @@ class EventChange {
|
|
|
2532
2532
|
this.dayEnd = `${endHourString}:00`;
|
|
2533
2533
|
}
|
|
2534
2534
|
}
|
|
2535
|
-
const _hoisted_1$
|
|
2535
|
+
const _hoisted_1$Z = ["data-ref"];
|
|
2536
2536
|
const _hoisted_2$J = { class: "calendar-week__event-row is-title" };
|
|
2537
2537
|
const _hoisted_3$A = { class: "calendar-week__event-row is-time flex" };
|
|
2538
2538
|
const _hoisted_4$o = {
|
|
2539
2539
|
key: 0,
|
|
2540
2540
|
class: "calendar-week__event-row is-location"
|
|
2541
2541
|
};
|
|
2542
|
-
const _hoisted_5$
|
|
2542
|
+
const _hoisted_5$m = {
|
|
2543
2543
|
key: 1,
|
|
2544
2544
|
class: "calendar-week__event-row is-with"
|
|
2545
2545
|
};
|
|
2546
|
-
const _hoisted_6$
|
|
2546
|
+
const _hoisted_6$j = {
|
|
2547
2547
|
key: 2,
|
|
2548
2548
|
class: "calendar-week__event-row is-topic"
|
|
2549
2549
|
};
|
|
@@ -2909,14 +2909,14 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
2909
2909
|
}, null, 8, ["icon"]),
|
|
2910
2910
|
createElementVNode("span", null, toDisplayString(event.value.location), 1)
|
|
2911
2911
|
])) : createCommentVNode("", true),
|
|
2912
|
-
event.value.with ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
2912
|
+
event.value.with ? (openBlock(), createElementBlock("div", _hoisted_5$m, [
|
|
2913
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
|
-
event.value.topic ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
2919
|
+
event.value.topic ? (openBlock(), createElementBlock("div", _hoisted_6$j, [
|
|
2920
2920
|
createVNode(unref(_sfc_main$s), {
|
|
2921
2921
|
icon: icons.value.topic,
|
|
2922
2922
|
class: "calendar-week__event-icon"
|
|
@@ -2953,12 +2953,12 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
2953
2953
|
class: "calendar-week__event-resize calendar-week__event-resize-down",
|
|
2954
2954
|
onMousedown: _cache[1] || (_cache[1] = ($event) => resizeEvent("down"))
|
|
2955
2955
|
}, null, 32)) : createCommentVNode("", true)
|
|
2956
|
-
], 46, _hoisted_1$
|
|
2956
|
+
], 46, _hoisted_1$Z);
|
|
2957
2957
|
};
|
|
2958
2958
|
}
|
|
2959
2959
|
});
|
|
2960
2960
|
const DayEvent = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-c512b81d"]]);
|
|
2961
|
-
const _hoisted_1$
|
|
2961
|
+
const _hoisted_1$Y = ["id", "onClick"];
|
|
2962
2962
|
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
2963
2963
|
__name: "Day",
|
|
2964
2964
|
props: {
|
|
@@ -3096,14 +3096,14 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
3096
3096
|
class: normalizeClass(["calendar-week__day-interval", { "has-border": interval.hasBorder }]),
|
|
3097
3097
|
style: normalizeStyle(intervalStyles.value),
|
|
3098
3098
|
onClick: ($event) => handleClickOnInterval(interval)
|
|
3099
|
-
}, toDisplayString(__props.time.getLocalizedTime(interval.intervalStart)), 15, _hoisted_1$
|
|
3099
|
+
}, toDisplayString(__props.time.getLocalizedTime(interval.intervalStart)), 15, _hoisted_1$Y);
|
|
3100
3100
|
}), 128)) : createCommentVNode("", true)
|
|
3101
3101
|
]);
|
|
3102
3102
|
};
|
|
3103
3103
|
}
|
|
3104
3104
|
});
|
|
3105
3105
|
const Day = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-87669cec"]]);
|
|
3106
|
-
const _hoisted_1$
|
|
3106
|
+
const _hoisted_1$X = { class: "day-timeline absolute top-0 start-0 space-evenly column display-flex" };
|
|
3107
3107
|
const _hoisted_2$I = { class: "day-timeline__hour-text line-height-0" };
|
|
3108
3108
|
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
3109
3109
|
__name: "DayTimeline",
|
|
@@ -3131,7 +3131,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
3131
3131
|
return props2.time.getLocalizedHour(new Date(2100, 1, 1, hour));
|
|
3132
3132
|
}
|
|
3133
3133
|
return (_ctx, _cache) => {
|
|
3134
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3134
|
+
return openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
3135
3135
|
(openBlock(true), createElementBlock(Fragment, null, renderList(timelineHours.value, (hour) => {
|
|
3136
3136
|
return openBlock(), createElementBlock("div", {
|
|
3137
3137
|
key: hour,
|
|
@@ -3145,7 +3145,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
3145
3145
|
}
|
|
3146
3146
|
});
|
|
3147
3147
|
const DayTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-0b3de5c5"]]);
|
|
3148
|
-
const _hoisted_1$
|
|
3148
|
+
const _hoisted_1$W = ["id"];
|
|
3149
3149
|
const _hoisted_2$H = {
|
|
3150
3150
|
key: 1,
|
|
3151
3151
|
class: "week-timeline__event"
|
|
@@ -3217,20 +3217,20 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
3217
3217
|
zIndex: 1
|
|
3218
3218
|
}),
|
|
3219
3219
|
onClick: handleClickOnEvent
|
|
3220
|
-
}, toDisplayString(__props.scheduleEvent.title), 13, _hoisted_1$
|
|
3220
|
+
}, toDisplayString(__props.scheduleEvent.title), 13, _hoisted_1$W)) : (openBlock(), createElementBlock("div", _hoisted_2$H));
|
|
3221
3221
|
};
|
|
3222
3222
|
}
|
|
3223
3223
|
});
|
|
3224
3224
|
const FullDayEvent = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-8bd51337"]]);
|
|
3225
|
-
const _hoisted_1$
|
|
3225
|
+
const _hoisted_1$V = {
|
|
3226
3226
|
class: "week-timeline flex space-between border-bottom ms-3-5",
|
|
3227
3227
|
style: { "margin-inline-end": "0.5em" }
|
|
3228
3228
|
};
|
|
3229
3229
|
const _hoisted_2$G = ["onClick"];
|
|
3230
3230
|
const _hoisted_3$z = { class: "flex justify-content-center gap-025 txt12 pb-025" };
|
|
3231
3231
|
const _hoisted_4$n = { class: "" };
|
|
3232
|
-
const _hoisted_5$
|
|
3233
|
-
const _hoisted_6$
|
|
3232
|
+
const _hoisted_5$l = { class: "week-timeline__date txt14 round inline-flex justify-content-center" };
|
|
3233
|
+
const _hoisted_6$i = { class: "week-timeline__events" };
|
|
3234
3234
|
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
3235
3235
|
__name: "WeekTimeline",
|
|
3236
3236
|
props: {
|
|
@@ -3252,7 +3252,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
3252
3252
|
return date2;
|
|
3253
3253
|
}
|
|
3254
3254
|
return (_ctx, _cache) => {
|
|
3255
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3255
|
+
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
3256
3256
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.days, (day, dayIndex) => {
|
|
3257
3257
|
return openBlock(), createElementBlock("div", {
|
|
3258
3258
|
key: dayIndex,
|
|
@@ -3263,9 +3263,9 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
3263
3263
|
}, [
|
|
3264
3264
|
createElementVNode("div", _hoisted_3$z, [
|
|
3265
3265
|
createElementVNode("div", _hoisted_4$n, toDisplayString(day.dayName.charAt(0).toUpperCase() + day.dayName.slice(1, 3).toLowerCase()), 1),
|
|
3266
|
-
createElementVNode("div", _hoisted_5$
|
|
3266
|
+
createElementVNode("div", _hoisted_5$l, toDisplayString(getDaysDate(day)), 1)
|
|
3267
3267
|
]),
|
|
3268
|
-
createElementVNode("div", _hoisted_6$
|
|
3268
|
+
createElementVNode("div", _hoisted_6$i, [
|
|
3269
3269
|
(openBlock(true), createElementBlock(Fragment, null, renderList(day.fullDayEvents, (event, key) => {
|
|
3270
3270
|
return openBlock(), createElementBlock(Fragment, { key }, [
|
|
3271
3271
|
key !== "date" ? (openBlock(), createBlock(FullDayEvent, {
|
|
@@ -3285,7 +3285,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
3285
3285
|
}
|
|
3286
3286
|
});
|
|
3287
3287
|
const WeekTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-18ecf6c3"]]);
|
|
3288
|
-
const _hoisted_1$
|
|
3288
|
+
const _hoisted_1$U = { class: "calendar-week__wrapper relative ps-3-5" };
|
|
3289
3289
|
const _hoisted_2$F = { class: "calendar-week" };
|
|
3290
3290
|
const _hoisted_3$y = { class: "calendar-week__events" };
|
|
3291
3291
|
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
@@ -3514,7 +3514,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
3514
3514
|
onEventWasClicked: handleClickOnEvent,
|
|
3515
3515
|
onDayWasClicked: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("dayWasClicked", $event))
|
|
3516
3516
|
}, null, 8, ["days", "time", "full-day-events", "config", "mode"]),
|
|
3517
|
-
createElementVNode("div", _hoisted_1$
|
|
3517
|
+
createElementVNode("div", _hoisted_1$U, [
|
|
3518
3518
|
!__props.config.eventDialog || !__props.config.eventDialog.isDisabled ? (openBlock(), createBlock(_sfc_main$1c, {
|
|
3519
3519
|
key: 0,
|
|
3520
3520
|
"calendar-event-prop": selectedEvent.value,
|
|
@@ -3635,7 +3635,7 @@ ${_Errors.SUFFIX}`);
|
|
|
3635
3635
|
__publicField(_Errors, "MISSING_TIME_END_WARNING", `${_Errors.PREFIX} required event property 'time.end' is missing
|
|
3636
3636
|
${_Errors.SUFFIX}`);
|
|
3637
3637
|
let Errors = _Errors;
|
|
3638
|
-
const _hoisted_1$
|
|
3638
|
+
const _hoisted_1$T = { class: "calendar-root-wrapper txt16" };
|
|
3639
3639
|
const _hoisted_2$E = ["data-lang"];
|
|
3640
3640
|
const _hoisted_3$x = {
|
|
3641
3641
|
key: 0,
|
|
@@ -3815,7 +3815,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
3815
3815
|
}
|
|
3816
3816
|
return (_ctx, _cache) => {
|
|
3817
3817
|
var _a2, _b2;
|
|
3818
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3818
|
+
return openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
3819
3819
|
createElementVNode("div", {
|
|
3820
3820
|
ref_key: "calendarRoot",
|
|
3821
3821
|
ref: calendarRoot,
|
|
@@ -3919,7 +3919,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
3919
3919
|
};
|
|
3920
3920
|
}
|
|
3921
3921
|
});
|
|
3922
|
-
const _hoisted_1$
|
|
3922
|
+
const _hoisted_1$S = {
|
|
3923
3923
|
key: 0,
|
|
3924
3924
|
class: "card_label"
|
|
3925
3925
|
};
|
|
@@ -3952,7 +3952,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
3952
3952
|
}])
|
|
3953
3953
|
}, {
|
|
3954
3954
|
default: withCtx(() => [
|
|
3955
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
3955
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$S, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
|
|
3956
3956
|
renderSlot(_ctx.$slots, "default")
|
|
3957
3957
|
]),
|
|
3958
3958
|
_: 3
|
|
@@ -3962,7 +3962,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
3962
3962
|
};
|
|
3963
3963
|
}
|
|
3964
3964
|
});
|
|
3965
|
-
const _hoisted_1$
|
|
3965
|
+
const _hoisted_1$R = ["dir"];
|
|
3966
3966
|
const _hoisted_2$D = {
|
|
3967
3967
|
key: 0,
|
|
3968
3968
|
class: "dots"
|
|
@@ -4420,7 +4420,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
4420
4420
|
}, void 0, true)
|
|
4421
4421
|
])
|
|
4422
4422
|
])
|
|
4423
|
-
], 14, _hoisted_1$
|
|
4423
|
+
], 14, _hoisted_1$R);
|
|
4424
4424
|
};
|
|
4425
4425
|
}
|
|
4426
4426
|
});
|
|
@@ -10260,8 +10260,8 @@ const _hoisted_1$1$1 = {
|
|
|
10260
10260
|
const _hoisted_2$1$1 = ["width", "height", "viewBox"];
|
|
10261
10261
|
const _hoisted_3$v = { class: "layer-rectangles" };
|
|
10262
10262
|
const _hoisted_4$l = ["transform", "onMouseover"];
|
|
10263
|
-
const _hoisted_5$
|
|
10264
|
-
const _hoisted_6$
|
|
10263
|
+
const _hoisted_5$k = ["width", "height"];
|
|
10264
|
+
const _hoisted_6$h = {
|
|
10265
10265
|
x: 0 + 10,
|
|
10266
10266
|
y: 0 + 20,
|
|
10267
10267
|
"font-size": `15px`,
|
|
@@ -10297,14 +10297,14 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10297
10297
|
y: 0,
|
|
10298
10298
|
width: r2.width,
|
|
10299
10299
|
height: r2.height
|
|
10300
|
-
}), null, 16, _hoisted_5$
|
|
10300
|
+
}), null, 16, _hoisted_5$k),
|
|
10301
10301
|
renderSlot(_ctx.$slots, "text", {
|
|
10302
10302
|
r: r2,
|
|
10303
10303
|
selected: _ctx.selected === i2
|
|
10304
10304
|
}, () => [
|
|
10305
10305
|
createElementVNode(
|
|
10306
10306
|
"text",
|
|
10307
|
-
_hoisted_6$
|
|
10307
|
+
_hoisted_6$h,
|
|
10308
10308
|
toDisplayString(r2.data.name),
|
|
10309
10309
|
1
|
|
10310
10310
|
/* TEXT */
|
|
@@ -10368,13 +10368,13 @@ var script = defineComponent({
|
|
|
10368
10368
|
return { bar, canvas, direction, mouse };
|
|
10369
10369
|
}
|
|
10370
10370
|
});
|
|
10371
|
-
const _hoisted_1$
|
|
10371
|
+
const _hoisted_1$Q = {
|
|
10372
10372
|
key: 0,
|
|
10373
10373
|
class: "layer-hover-bar"
|
|
10374
10374
|
};
|
|
10375
10375
|
const _hoisted_2$C = ["x", "y", "width", "height"];
|
|
10376
10376
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10377
|
-
return _ctx.mouse.hover ? (openBlock(), createElementBlock("g", _hoisted_1$
|
|
10377
|
+
return _ctx.mouse.hover ? (openBlock(), createElementBlock("g", _hoisted_1$Q, [
|
|
10378
10378
|
createElementVNode("rect", mergeProps({ class: "hover-bar" }, _ctx.barStyle, {
|
|
10379
10379
|
x: _ctx.bar.x,
|
|
10380
10380
|
y: _ctx.bar.y,
|
|
@@ -10809,7 +10809,7 @@ function useTableData(options) {
|
|
|
10809
10809
|
cleanTransformedData
|
|
10810
10810
|
};
|
|
10811
10811
|
}
|
|
10812
|
-
const _hoisted_1$
|
|
10812
|
+
const _hoisted_1$P = { class: "data-preview" };
|
|
10813
10813
|
const _hoisted_2$B = {
|
|
10814
10814
|
key: 1,
|
|
10815
10815
|
class: "empty-preview"
|
|
@@ -10855,7 +10855,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
10855
10855
|
includeUnset: props2.includeUnset
|
|
10856
10856
|
});
|
|
10857
10857
|
return (_ctx, _cache) => {
|
|
10858
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10858
|
+
return openBlock(), createElementBlock("div", _hoisted_1$P, [
|
|
10859
10859
|
unref(computedSchema) && unref(computedSchema).length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(computedSchema), (field) => {
|
|
10860
10860
|
return openBlock(), createBlock(resolveDynamicComponent(unref(renderField)(field, unref(slots))), {
|
|
10861
10861
|
key: field.id
|
|
@@ -11506,15 +11506,15 @@ function useTableVirtualization(options) {
|
|
|
11506
11506
|
registerLastItemObserver
|
|
11507
11507
|
};
|
|
11508
11508
|
}
|
|
11509
|
-
const _hoisted_1$
|
|
11509
|
+
const _hoisted_1$O = {
|
|
11510
11510
|
key: 0,
|
|
11511
11511
|
class: "loading-table-wrapper z-99 h-100 w-100 absolute inset"
|
|
11512
11512
|
};
|
|
11513
11513
|
const _hoisted_2$A = { class: "infinite-wrapper" };
|
|
11514
11514
|
const _hoisted_3$u = { class: "row first-row" };
|
|
11515
11515
|
const _hoisted_4$k = { key: 0 };
|
|
11516
|
-
const _hoisted_5$
|
|
11517
|
-
const _hoisted_6$
|
|
11516
|
+
const _hoisted_5$j = ["onClick"];
|
|
11517
|
+
const _hoisted_6$g = { class: "flex" };
|
|
11518
11518
|
const _hoisted_7$c = ["onClick"];
|
|
11519
11519
|
const _hoisted_8$7 = { key: 0 };
|
|
11520
11520
|
const _hoisted_9$6 = ["value"];
|
|
@@ -11630,7 +11630,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
11630
11630
|
return openBlock(), createElementBlock("div", mergeProps({ class: "table-list-wrap h-100" }, unref(containerProps), {
|
|
11631
11631
|
class: { "loading-table": loading.value }
|
|
11632
11632
|
}), [
|
|
11633
|
-
loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
11633
|
+
loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$O, _cache[4] || (_cache[4] = [
|
|
11634
11634
|
createElementVNode("div", { class: "loading-table-animation absolute oval" }, null, -1)
|
|
11635
11635
|
]))) : (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 1 }, unref(wrapperProps))), [
|
|
11636
11636
|
createElementVNode("table", _hoisted_2$A, [
|
|
@@ -11652,7 +11652,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
11652
11652
|
class: "col",
|
|
11653
11653
|
onClick: ($event) => unref(toggleSort)((field == null ? void 0 : field.id) || "")
|
|
11654
11654
|
}, [
|
|
11655
|
-
createElementVNode("div", _hoisted_6$
|
|
11655
|
+
createElementVNode("div", _hoisted_6$g, [
|
|
11656
11656
|
createTextVNode(toDisplayString(field.label || unref(keyToLabel)(field == null ? void 0 : field.id)) + " ", 1),
|
|
11657
11657
|
createElementVNode("div", {
|
|
11658
11658
|
class: normalizeClass(["list-arrows", { sorted: unref(sortField) === (field == null ? void 0 : field.id) }])
|
|
@@ -11663,7 +11663,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
11663
11663
|
}, null, 8, ["class"])
|
|
11664
11664
|
], 2)
|
|
11665
11665
|
])
|
|
11666
|
-
], 8, _hoisted_5$
|
|
11666
|
+
], 8, _hoisted_5$j);
|
|
11667
11667
|
}), 128))
|
|
11668
11668
|
]),
|
|
11669
11669
|
createElementVNode("tbody", null, [
|
|
@@ -14896,7 +14896,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
14896
14896
|
};
|
|
14897
14897
|
}
|
|
14898
14898
|
});
|
|
14899
|
-
const _hoisted_1$
|
|
14899
|
+
const _hoisted_1$N = { class: "px-1 pt-025 pb-1" };
|
|
14900
14900
|
const _hoisted_2$z = { class: "ms-1" };
|
|
14901
14901
|
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
14902
14902
|
__name: "FieldSetVue",
|
|
@@ -14906,7 +14906,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
14906
14906
|
},
|
|
14907
14907
|
setup(__props) {
|
|
14908
14908
|
return (_ctx, _cache) => {
|
|
14909
|
-
return openBlock(), createElementBlock("fieldset", _hoisted_1$
|
|
14909
|
+
return openBlock(), createElementBlock("fieldset", _hoisted_1$N, [
|
|
14910
14910
|
createElementVNode("legend", _hoisted_2$z, toDisplayString(_ctx.legend || _ctx.label), 1),
|
|
14911
14911
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
14912
14912
|
]);
|
|
@@ -15354,6 +15354,7 @@ function getNestedValue(obj, path, defaultValue = void 0) {
|
|
|
15354
15354
|
}
|
|
15355
15355
|
return current ?? defaultValue;
|
|
15356
15356
|
}
|
|
15357
|
+
const _hoisted_1$M = { class: "flex-center h-300px" };
|
|
15357
15358
|
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
15358
15359
|
__name: "BagelForm",
|
|
15359
15360
|
props: {
|
|
@@ -15367,52 +15368,65 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
15367
15368
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
15368
15369
|
const props2 = __props;
|
|
15369
15370
|
const emit2 = __emit;
|
|
15370
|
-
|
|
15371
|
-
if (!obj) return obj;
|
|
15372
|
-
try {
|
|
15373
|
-
return JSON.parse(JSON.stringify(obj));
|
|
15374
|
-
} catch (e) {
|
|
15375
|
-
console.warn("Failed to clone object:", e);
|
|
15376
|
-
return obj;
|
|
15377
|
-
}
|
|
15378
|
-
}
|
|
15371
|
+
const clone2 = (obj) => !obj ? obj : JSON.parse(JSON.stringify(obj));
|
|
15379
15372
|
const form = ref();
|
|
15380
|
-
const formData = ref(
|
|
15381
|
-
const initialFormData = ref(
|
|
15382
|
-
onMounted(() => {
|
|
15383
|
-
if (props2.modelValue) {
|
|
15384
|
-
initialFormData.value = safeClone2(props2.modelValue);
|
|
15385
|
-
}
|
|
15386
|
-
});
|
|
15373
|
+
const formData = ref(clone2(props2.modelValue ?? {}));
|
|
15374
|
+
const initialFormData = ref(clone2(props2.modelValue ?? {}));
|
|
15387
15375
|
const formState = ref("idle");
|
|
15388
|
-
|
|
15389
|
-
|
|
15390
|
-
|
|
15391
|
-
|
|
15392
|
-
}, { immediate: true, deep: true });
|
|
15393
|
-
const resolvedSchema = computed(() => {
|
|
15394
|
-
if (!props2.schema) return void 0;
|
|
15395
|
-
return typeof props2.schema === "function" ? props2.schema() : props2.schema;
|
|
15396
|
-
});
|
|
15376
|
+
const schemaState = ref("loaded");
|
|
15377
|
+
const resolvedSchemaData = ref();
|
|
15378
|
+
const schemaRef = toRef(props2, "schema");
|
|
15379
|
+
const resolvedSchema = computed(() => resolvedSchemaData.value);
|
|
15397
15380
|
const isDirty = computed(() => {
|
|
15398
15381
|
try {
|
|
15399
|
-
|
|
15400
|
-
|
|
15401
|
-
return current !== initial;
|
|
15402
|
-
} catch (e) {
|
|
15403
|
-
console.warn("Failed to compare form data:", e);
|
|
15382
|
+
return JSON.stringify(formData.value) !== JSON.stringify(initialFormData.value);
|
|
15383
|
+
} catch {
|
|
15404
15384
|
return false;
|
|
15405
15385
|
}
|
|
15406
15386
|
});
|
|
15387
|
+
onMounted(() => {
|
|
15388
|
+
if (props2.modelValue) initialFormData.value = clone2(props2.modelValue);
|
|
15389
|
+
refreshSchema();
|
|
15390
|
+
});
|
|
15391
|
+
watch(() => props2.modelValue, (val) => {
|
|
15392
|
+
if (val !== void 0) formData.value = clone2(val);
|
|
15393
|
+
}, { immediate: true, deep: true });
|
|
15394
|
+
async function resolveSchema(schema) {
|
|
15395
|
+
if (!schema) {
|
|
15396
|
+
resolvedSchemaData.value = void 0;
|
|
15397
|
+
schemaState.value = "loaded";
|
|
15398
|
+
return;
|
|
15399
|
+
}
|
|
15400
|
+
try {
|
|
15401
|
+
schemaState.value = "loading";
|
|
15402
|
+
const isPromise = (obj) => obj && typeof obj.then === "function";
|
|
15403
|
+
let result2;
|
|
15404
|
+
if (typeof schema === "function") {
|
|
15405
|
+
result2 = schema();
|
|
15406
|
+
result2 = isPromise(result2) ? await result2 : result2;
|
|
15407
|
+
} else {
|
|
15408
|
+
result2 = isPromise(schema) ? await schema : schema;
|
|
15409
|
+
}
|
|
15410
|
+
resolvedSchemaData.value = result2;
|
|
15411
|
+
schemaState.value = "loaded";
|
|
15412
|
+
} catch (error) {
|
|
15413
|
+
console.error("Schema error:", error);
|
|
15414
|
+
schemaState.value = "error";
|
|
15415
|
+
resolvedSchemaData.value = void 0;
|
|
15416
|
+
}
|
|
15417
|
+
}
|
|
15418
|
+
async function refreshSchema() {
|
|
15419
|
+
await resolveSchema(props2.schema);
|
|
15420
|
+
return resolvedSchemaData.value;
|
|
15421
|
+
}
|
|
15422
|
+
watch(schemaRef, resolveSchema, { immediate: true, deep: true });
|
|
15407
15423
|
function updateFormData(fieldId, value) {
|
|
15408
15424
|
const keys4 = fieldId.split(".");
|
|
15409
|
-
const newData =
|
|
15425
|
+
const newData = clone2(formData.value);
|
|
15410
15426
|
let current = newData;
|
|
15411
15427
|
for (let i2 = 0; i2 < keys4.length - 1; i2++) {
|
|
15412
15428
|
const key = keys4[i2];
|
|
15413
|
-
if (!current[key] || typeof current[key] !== "object") {
|
|
15414
|
-
current[key] = {};
|
|
15415
|
-
}
|
|
15429
|
+
if (!current[key] || typeof current[key] !== "object") current[key] = {};
|
|
15416
15430
|
current = current[key];
|
|
15417
15431
|
}
|
|
15418
15432
|
current[keys4[keys4.length - 1]] = value;
|
|
@@ -15425,38 +15439,34 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
15425
15439
|
if (formState.value === "submitting") return;
|
|
15426
15440
|
formState.value = "submitting";
|
|
15427
15441
|
await ((_a = props2.onSubmit) == null ? void 0 : _a.call(props2, formData.value));
|
|
15428
|
-
initialFormData.value =
|
|
15442
|
+
initialFormData.value = clone2(formData.value);
|
|
15429
15443
|
formState.value = "success";
|
|
15430
15444
|
window.parent.postMessage({ type: "BAGEL_FORM_SUCCESS", data: JSON.stringify(formData.value) }, "*");
|
|
15431
15445
|
} catch (error) {
|
|
15432
|
-
console.error("
|
|
15446
|
+
console.error("Submit error:", error);
|
|
15433
15447
|
formState.value = "error";
|
|
15434
15448
|
}
|
|
15435
15449
|
}
|
|
15436
|
-
|
|
15437
|
-
|
|
15438
|
-
return form.value.reportValidity();
|
|
15439
|
-
}
|
|
15450
|
+
const validateForm = () => {
|
|
15451
|
+
var _a;
|
|
15452
|
+
return ((_a = form.value) == null ? void 0 : _a.reportValidity()) ?? false;
|
|
15453
|
+
};
|
|
15440
15454
|
const { renderField } = useSchemaField({
|
|
15441
15455
|
mode: "form",
|
|
15442
|
-
getRowData: () => {
|
|
15443
|
-
|
|
15444
|
-
|
|
15445
|
-
|
|
15446
|
-
get: (path) => getNestedValue(formData.value, path, "")
|
|
15447
|
-
};
|
|
15448
|
-
},
|
|
15456
|
+
getRowData: () => ({
|
|
15457
|
+
...formData.value,
|
|
15458
|
+
get: (path) => getNestedValue(formData.value, path, "")
|
|
15459
|
+
}),
|
|
15449
15460
|
onUpdate: (field, value) => {
|
|
15450
15461
|
var _a;
|
|
15451
|
-
if (
|
|
15452
|
-
|
|
15453
|
-
|
|
15462
|
+
if (field.id) {
|
|
15463
|
+
updateFormData(field.id, value);
|
|
15464
|
+
(_a = field.onUpdate) == null ? void 0 : _a.call(field, value, formData.value);
|
|
15465
|
+
}
|
|
15454
15466
|
}
|
|
15455
15467
|
});
|
|
15456
|
-
|
|
15457
|
-
|
|
15458
|
-
}
|
|
15459
|
-
__expose({ form, isDirty: isDirty.value, validateForm });
|
|
15468
|
+
const renderSchemaField = (field) => renderField(field);
|
|
15469
|
+
__expose({ form, isDirty, validateForm, resolveSchema, refreshSchema });
|
|
15460
15470
|
return (_ctx, _cache) => {
|
|
15461
15471
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
15462
15472
|
formState.value !== "success" || !_ctx.$slots.success ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
@@ -15467,23 +15477,36 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
15467
15477
|
class: normalizeClass(props2.class),
|
|
15468
15478
|
onSubmit: withModifiers(handleSubmit, ["prevent"])
|
|
15469
15479
|
}, [
|
|
15470
|
-
|
|
15480
|
+
schemaState.value === "loading" ? renderSlot(_ctx.$slots, "loading", { key: 0 }, () => [
|
|
15481
|
+
createElementVNode("div", _hoisted_1$M, [
|
|
15482
|
+
createVNode(unref(Loading))
|
|
15483
|
+
])
|
|
15484
|
+
]) : schemaState.value === "error" ? renderSlot(_ctx.$slots, "schema-error", { key: 1 }, () => [
|
|
15485
|
+
_cache[0] || (_cache[0] = createElementVNode("div", { class: "flex-center h-300px txt-red" }, " Error loading form ", -1))
|
|
15486
|
+
]) : resolvedSchema.value ? (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList(resolvedSchema.value, (field) => {
|
|
15471
15487
|
return openBlock(), createBlock(resolveDynamicComponent(renderSchemaField(field)), {
|
|
15472
15488
|
key: field.id
|
|
15473
15489
|
});
|
|
15474
|
-
}), 128)) : renderSlot(_ctx.$slots, "default", { key:
|
|
15490
|
+
}), 128)) : renderSlot(_ctx.$slots, "default", { key: 3 }),
|
|
15475
15491
|
renderSlot(_ctx.$slots, "submit", {
|
|
15476
15492
|
submit: handleSubmit,
|
|
15477
15493
|
isDirty: isDirty.value,
|
|
15478
15494
|
validateForm,
|
|
15479
|
-
formState: formState.value
|
|
15495
|
+
formState: formState.value,
|
|
15496
|
+
schemaState: schemaState.value
|
|
15480
15497
|
})
|
|
15481
|
-
], 34)) : (openBlock(
|
|
15482
|
-
|
|
15483
|
-
|
|
15484
|
-
|
|
15485
|
-
|
|
15486
|
-
|
|
15498
|
+
], 34)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
15499
|
+
schemaState.value === "loading" ? renderSlot(_ctx.$slots, "loading", { key: 0 }, () => [
|
|
15500
|
+
createVNode(unref(Loading))
|
|
15501
|
+
]) : schemaState.value === "error" ? renderSlot(_ctx.$slots, "schema-error", { key: 1 }, () => [
|
|
15502
|
+
_cache[1] || (_cache[1] = createElementVNode("div", { class: "flex-center h-300px txt-red" }, " Error loading form ", -1))
|
|
15503
|
+
]) : resolvedSchema.value ? (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList(resolvedSchema.value, (field) => {
|
|
15504
|
+
return openBlock(), createBlock(resolveDynamicComponent(renderSchemaField(field)), {
|
|
15505
|
+
key: field.id,
|
|
15506
|
+
class: normalizeClass(props2.class)
|
|
15507
|
+
}, null, 8, ["class"]);
|
|
15508
|
+
}), 128)) : createCommentVNode("", true)
|
|
15509
|
+
], 64))
|
|
15487
15510
|
], 64)) : createCommentVNode("", true),
|
|
15488
15511
|
formState.value === "success" ? renderSlot(_ctx.$slots, "success", { key: 1 }) : createCommentVNode("", true),
|
|
15489
15512
|
formState.value === "error" ? renderSlot(_ctx.$slots, "error", { key: 2 }) : createCommentVNode("", true)
|
|
@@ -15497,10 +15520,18 @@ const _hoisted_2$y = {
|
|
|
15497
15520
|
class: "ps-025 border-start mb-05"
|
|
15498
15521
|
};
|
|
15499
15522
|
const _hoisted_3$t = {
|
|
15523
|
+
key: 0,
|
|
15524
|
+
class: "flex-center h-300px"
|
|
15525
|
+
};
|
|
15526
|
+
const _hoisted_4$j = {
|
|
15527
|
+
key: 1,
|
|
15528
|
+
class: "flex-center h-300px txt-red"
|
|
15529
|
+
};
|
|
15530
|
+
const _hoisted_5$i = {
|
|
15500
15531
|
key: 0,
|
|
15501
15532
|
class: "minimizedText txt14 p-025 opacity-7"
|
|
15502
15533
|
};
|
|
15503
|
-
const
|
|
15534
|
+
const _hoisted_6$f = { class: "bg-gray-80 -my-05 px-025 pt-065 pb-05 txt-center space-between flex column" };
|
|
15504
15535
|
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
15505
15536
|
__name: "FieldArray",
|
|
15506
15537
|
props: {
|
|
@@ -15527,109 +15558,114 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
15527
15558
|
const props2 = __props;
|
|
15528
15559
|
const emit2 = __emit;
|
|
15529
15560
|
const minimizedItems = ref([]);
|
|
15530
|
-
const
|
|
15561
|
+
const internalData = ref(props2.modelValue || []);
|
|
15562
|
+
const schemaState = ref("loaded");
|
|
15563
|
+
const resolvedSchemaData = ref([]);
|
|
15564
|
+
async function resolveSchema() {
|
|
15565
|
+
if (!props2.schema) {
|
|
15566
|
+
resolvedSchemaData.value = [];
|
|
15567
|
+
schemaState.value = "loaded";
|
|
15568
|
+
return;
|
|
15569
|
+
}
|
|
15570
|
+
try {
|
|
15571
|
+
schemaState.value = "loading";
|
|
15572
|
+
const isPromise = (obj) => obj && typeof obj.then === "function";
|
|
15573
|
+
let result2;
|
|
15574
|
+
if (typeof props2.schema === "function") {
|
|
15575
|
+
result2 = props2.schema();
|
|
15576
|
+
result2 = isPromise(result2) ? await result2 : result2;
|
|
15577
|
+
} else {
|
|
15578
|
+
result2 = isPromise(props2.schema) ? await props2.schema : props2.schema;
|
|
15579
|
+
}
|
|
15580
|
+
resolvedSchemaData.value = result2;
|
|
15581
|
+
schemaState.value = "loaded";
|
|
15582
|
+
} catch (error) {
|
|
15583
|
+
console.error("Schema error:", error);
|
|
15584
|
+
schemaState.value = "error";
|
|
15585
|
+
resolvedSchemaData.value = [];
|
|
15586
|
+
}
|
|
15587
|
+
}
|
|
15588
|
+
onMounted(() => {
|
|
15589
|
+
resolveSchema();
|
|
15590
|
+
});
|
|
15531
15591
|
function emitValue() {
|
|
15532
|
-
emit2("update:modelValue",
|
|
15592
|
+
emit2("update:modelValue", internalData.value);
|
|
15533
15593
|
}
|
|
15534
15594
|
function deleteItem(i2) {
|
|
15535
|
-
|
|
15595
|
+
internalData.value.splice(i2, 1);
|
|
15536
15596
|
emitValue();
|
|
15537
15597
|
}
|
|
15538
15598
|
function addItem() {
|
|
15539
|
-
|
|
15599
|
+
internalData.value.push({});
|
|
15540
15600
|
emitValue();
|
|
15541
15601
|
}
|
|
15542
15602
|
function toggleMinimized(index2) {
|
|
15543
15603
|
minimizedItems.value[index2] = !minimizedItems.value[index2];
|
|
15544
15604
|
}
|
|
15545
|
-
|
|
15546
|
-
|
|
15547
|
-
|
|
15548
|
-
|
|
15549
|
-
children: props2.children,
|
|
15550
|
-
// class: props.class,
|
|
15551
|
-
attrs: props2.attrs,
|
|
15552
|
-
required: props2.required,
|
|
15553
|
-
disabled: props2.disabled,
|
|
15554
|
-
helptext: props2.helptext,
|
|
15555
|
-
options: props2.options,
|
|
15556
|
-
defaultValue: props2.defaultValue,
|
|
15557
|
-
transform: props2.transform,
|
|
15558
|
-
$el: props2.el
|
|
15559
|
-
})
|
|
15560
|
-
);
|
|
15561
|
-
const resolvedSchema = computed(() => {
|
|
15562
|
-
if (!props2.schema) return [];
|
|
15563
|
-
return typeof props2.schema === "function" ? props2.schema() : props2.schema;
|
|
15564
|
-
});
|
|
15565
|
-
const { renderField } = useSchemaField({
|
|
15566
|
-
mode: "form",
|
|
15567
|
-
getRowData: () => data2.value,
|
|
15568
|
-
onUpdate: (field, value) => {
|
|
15569
|
-
if (!field.id) return;
|
|
15570
|
-
const index2 = Number.parseInt(field.id);
|
|
15571
|
-
if (Number.isNaN(index2)) return;
|
|
15572
|
-
data2.value[index2] = value;
|
|
15573
|
-
emitValue();
|
|
15574
|
-
}
|
|
15575
|
-
});
|
|
15605
|
+
function updateItem(index2, value) {
|
|
15606
|
+
internalData.value[index2] = value;
|
|
15607
|
+
emitValue();
|
|
15608
|
+
}
|
|
15576
15609
|
return (_ctx, _cache) => {
|
|
15577
15610
|
return openBlock(), createElementBlock("div", {
|
|
15578
15611
|
class: normalizeClass(props2.class)
|
|
15579
15612
|
}, [
|
|
15580
15613
|
createElementVNode("p", _hoisted_1$L, toDisplayString(_ctx.label), 1),
|
|
15581
|
-
|
|
15582
|
-
(openBlock(
|
|
15583
|
-
|
|
15584
|
-
|
|
15585
|
-
|
|
15586
|
-
|
|
15587
|
-
|
|
15588
|
-
|
|
15589
|
-
|
|
15590
|
-
|
|
15591
|
-
|
|
15592
|
-
"
|
|
15593
|
-
schema: resolvedSchema.value
|
|
15594
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "schema"])),
|
|
15595
|
-
createElementVNode("div", _hoisted_4$j, [
|
|
15596
|
-
resolvedSchema.value.length > 4 ? (openBlock(), createBlock(unref(Btn), {
|
|
15597
|
-
key: 0,
|
|
15598
|
-
class: "block rotate-180 txt10 opacity-7 p-025",
|
|
15599
|
-
flat: "",
|
|
15600
|
-
thin: "",
|
|
15601
|
-
icon: "keyboard_arrow_down",
|
|
15602
|
-
onClick: ($event) => toggleMinimized(i2)
|
|
15603
|
-
}, null, 8, ["onClick"])) : createCommentVNode("", true),
|
|
15604
|
-
props2.delete ? (openBlock(), createBlock(unref(Btn), {
|
|
15614
|
+
resolvedSchemaData.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_2$y, [
|
|
15615
|
+
schemaState.value === "loading" ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
|
|
15616
|
+
createVNode(unref(Loading))
|
|
15617
|
+
])) : schemaState.value === "error" ? (openBlock(), createElementBlock("div", _hoisted_4$j, " Error ")) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
15618
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(internalData.value, (item, i2) => {
|
|
15619
|
+
return openBlock(), createElementBlock("div", {
|
|
15620
|
+
key: i2,
|
|
15621
|
+
outline: "",
|
|
15622
|
+
thin: "",
|
|
15623
|
+
class: normalizeClass(["mb-05 itemBox transition ps-05 pb-025 pt-025 radius-05 gap-05 overflow-hidden", { minimized: minimizedItems.value[i2] }])
|
|
15624
|
+
}, [
|
|
15625
|
+
minimizedItems.value[i2] ? (openBlock(), createElementBlock("p", _hoisted_5$i, toDisplayString(_ctx.label) + " " + toDisplayString(i2 + 1), 1)) : (openBlock(), createBlock(unref(_sfc_main$T), {
|
|
15605
15626
|
key: 1,
|
|
15606
|
-
|
|
15607
|
-
|
|
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
|
-
|
|
15627
|
+
"model-value": item,
|
|
15628
|
+
schema: resolvedSchemaData.value,
|
|
15629
|
+
"onUpdate:modelValue": (val) => updateItem(i2, val)
|
|
15630
|
+
}, null, 8, ["model-value", "schema", "onUpdate:modelValue"])),
|
|
15631
|
+
createElementVNode("div", _hoisted_6$f, [
|
|
15632
|
+
resolvedSchemaData.value.length > 4 ? (openBlock(), createBlock(unref(Btn), {
|
|
15633
|
+
key: 0,
|
|
15634
|
+
class: "block rotate-180 txt10 opacity-7 p-025",
|
|
15635
|
+
flat: "",
|
|
15636
|
+
thin: "",
|
|
15637
|
+
icon: "keyboard_arrow_down",
|
|
15638
|
+
onClick: ($event) => toggleMinimized(i2)
|
|
15639
|
+
}, null, 8, ["onClick"])) : createCommentVNode("", true),
|
|
15640
|
+
props2.delete ? (openBlock(), createBlock(unref(Btn), {
|
|
15641
|
+
key: 1,
|
|
15642
|
+
icon: "delete",
|
|
15643
|
+
class: "txt10 opacity-7",
|
|
15644
|
+
thin: "",
|
|
15645
|
+
flat: "",
|
|
15646
|
+
onClick: ($event) => deleteItem(i2)
|
|
15647
|
+
}, null, 8, ["onClick"])) : createCommentVNode("", true)
|
|
15648
|
+
])
|
|
15649
|
+
], 2);
|
|
15650
|
+
}), 128)),
|
|
15651
|
+
_ctx.add ? (openBlock(), createBlock(unref(Btn), {
|
|
15652
|
+
key: 0,
|
|
15653
|
+
thin: "",
|
|
15654
|
+
icon: "add",
|
|
15655
|
+
color: "gray",
|
|
15656
|
+
class: "txt12",
|
|
15657
|
+
onClick: addItem
|
|
15658
|
+
}, {
|
|
15659
|
+
default: withCtx(() => [
|
|
15660
|
+
createElementVNode("p", null, toDisplayString(_ctx.label), 1)
|
|
15661
|
+
]),
|
|
15662
|
+
_: 1
|
|
15663
|
+
})) : createCommentVNode("", true)
|
|
15664
|
+
], 64))
|
|
15665
|
+
])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(internalData.value, (_2, i2) => {
|
|
15666
|
+
return openBlock(), createElementBlock("div", { key: i2 }, _cache[0] || (_cache[0] = [
|
|
15667
|
+
createElementVNode("p", null, "No schema available", -1)
|
|
15668
|
+
]));
|
|
15633
15669
|
}), 128))
|
|
15634
15670
|
], 2);
|
|
15635
15671
|
};
|
|
@@ -34124,7 +34160,7 @@ const _hoisted_1$c = { class: "flex-center" };
|
|
|
34124
34160
|
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
34125
34161
|
__name: "Loading",
|
|
34126
34162
|
props: {
|
|
34127
|
-
size: { default:
|
|
34163
|
+
size: { default: 50 },
|
|
34128
34164
|
thickness: {},
|
|
34129
34165
|
duration: { default: 1.2 },
|
|
34130
34166
|
type: { default: "ring" },
|
|
@@ -34139,7 +34175,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
34139
34175
|
const computedSize = computed(() => standardSize(__props.size));
|
|
34140
34176
|
const animationDuration = computed(() => `${__props.duration}s`);
|
|
34141
34177
|
const computedBorder = computed(() => {
|
|
34142
|
-
const borderValue = __props.thickness ?? Number.parseInt(computedSize.value) /
|
|
34178
|
+
const borderValue = __props.thickness ?? Math.max(Number.parseInt(computedSize.value) / 9, 2);
|
|
34143
34179
|
return standardSize(borderValue);
|
|
34144
34180
|
});
|
|
34145
34181
|
return (_ctx, _cache) => {
|
|
@@ -34185,7 +34221,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
34185
34221
|
};
|
|
34186
34222
|
}
|
|
34187
34223
|
});
|
|
34188
|
-
const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
34224
|
+
const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-221a3053"]]);
|
|
34189
34225
|
const _hoisted_1$b = ["id"];
|
|
34190
34226
|
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>';
|
|
34191
34227
|
const leafletScriptUrl = "https://unpkg.com/leaflet@1.9.4/dist/leaflet.js";
|
|
@@ -36218,10 +36254,17 @@ function useBagelFormState() {
|
|
|
36218
36254
|
if (!state2) throw new Error("BagelFormState must be provided");
|
|
36219
36255
|
return state2;
|
|
36220
36256
|
}
|
|
36221
|
-
function useBglSchema({ schema, columns, data: data2 } = {}) {
|
|
36257
|
+
async function useBglSchema({ schema, columns, data: data2 } = {}) {
|
|
36222
36258
|
let _schema = schema;
|
|
36223
36259
|
if (typeof _schema === "function") {
|
|
36224
|
-
|
|
36260
|
+
const result2 = _schema();
|
|
36261
|
+
if (result2 instanceof Promise) {
|
|
36262
|
+
_schema = await result2;
|
|
36263
|
+
} else {
|
|
36264
|
+
_schema = result2;
|
|
36265
|
+
}
|
|
36266
|
+
} else if (_schema instanceof Promise) {
|
|
36267
|
+
_schema = await _schema;
|
|
36225
36268
|
}
|
|
36226
36269
|
if (_schema) {
|
|
36227
36270
|
return columns && columns.length > 0 ? _schema.filter((f2) => columns.includes(f2.id)) : _schema;
|