@bagelink/vue 1.0.33 → 1.0.38
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/DataPreview.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.vue.d.ts +6 -1
- package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
- package/dist/components/DataTable/useTableData.d.ts +7 -1
- package/dist/components/DataTable/useTableData.d.ts.map +1 -1
- package/dist/components/DataTable/useTableSelection.d.ts +4 -1
- package/dist/components/DataTable/useTableSelection.d.ts.map +1 -1
- package/dist/components/DataTable/useTableVirtualization.d.ts.map +1 -1
- package/dist/components/form/BagelForm.vue.d.ts.map +1 -1
- package/dist/components/form/FieldArray.vue.d.ts.map +1 -1
- package/dist/index.cjs +183 -92
- package/dist/index.mjs +183 -92
- package/dist/style.css +475 -56
- package/package.json +1 -1
- package/src/components/DataPreview.vue +30 -4
- package/src/components/DataTable/DataTable.vue +9 -7
- package/src/components/DataTable/useTableData.ts +75 -9
- package/src/components/DataTable/useTableSelection.ts +17 -3
- package/src/components/DataTable/useTableVirtualization.ts +11 -2
- package/src/components/form/FieldArray.vue +44 -5
- package/src/components/layout/BottomMenu.vue +1 -1
- package/src/styles/layout.css +240 -0
- package/src/styles/mobilLayout.css +240 -0
package/dist/index.mjs
CHANGED
|
@@ -18,7 +18,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
const _hoisted_1$1a = ["aria-expanded", "aria-controls"];
|
|
21
|
-
const _hoisted_2$
|
|
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({
|
|
24
24
|
__name: "AccordionItem",
|
|
@@ -86,7 +86,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
86
86
|
createVNode(unref(_sfc_main$s), { icon: computedIcon.value }, null, 8, ["icon"])
|
|
87
87
|
], 2)) : createCommentVNode("", true),
|
|
88
88
|
renderSlot(_ctx.$slots, "head", {}, () => [
|
|
89
|
-
createElementVNode("span", _hoisted_2$
|
|
89
|
+
createElementVNode("span", _hoisted_2$T, toDisplayString(_ctx.label), 1)
|
|
90
90
|
], true),
|
|
91
91
|
iconPosition.value === "end" ? (openBlock(), createElementBlock("span", {
|
|
92
92
|
key: 1,
|
|
@@ -275,7 +275,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
275
275
|
});
|
|
276
276
|
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["__scopeId", "data-v-bfc435b3"]]);
|
|
277
277
|
const _hoisted_1$17 = ["dismissable"];
|
|
278
|
-
const _hoisted_2$
|
|
278
|
+
const _hoisted_2$S = { class: "m-0" };
|
|
279
279
|
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
280
280
|
__name: "Alert",
|
|
281
281
|
props: {
|
|
@@ -304,7 +304,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
304
304
|
size: 2,
|
|
305
305
|
color: color2[_ctx.type]
|
|
306
306
|
}, null, 8, ["icon", "color"])) : createCommentVNode("", true),
|
|
307
|
-
createElementVNode("p", _hoisted_2$
|
|
307
|
+
createElementVNode("p", _hoisted_2$S, toDisplayString(_ctx.message), 1),
|
|
308
308
|
createVNode(Btn, {
|
|
309
309
|
flat: "",
|
|
310
310
|
thin: "",
|
|
@@ -376,7 +376,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
376
376
|
});
|
|
377
377
|
const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-689f051f"]]);
|
|
378
378
|
const _hoisted_1$15 = ["src"];
|
|
379
|
-
const _hoisted_2$
|
|
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({
|
|
382
382
|
__name: "BglVideo",
|
|
@@ -470,7 +470,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
470
470
|
src: _ctx.src,
|
|
471
471
|
type: `video/${videoFormat.value}`
|
|
472
472
|
}, null, 8, _hoisted_3$H)
|
|
473
|
-
], 12, _hoisted_2$
|
|
473
|
+
], 12, _hoisted_2$R)) : createCommentVNode("", true)
|
|
474
474
|
], 2);
|
|
475
475
|
};
|
|
476
476
|
}
|
|
@@ -607,7 +607,7 @@ function translate(key, locale2 = "en-US") {
|
|
|
607
607
|
return language[locale2] || key;
|
|
608
608
|
}
|
|
609
609
|
const _hoisted_1$14 = { class: "flex gap-05 space-between pb-1 datePick" };
|
|
610
|
-
const _hoisted_2$
|
|
610
|
+
const _hoisted_2$Q = { class: "flex gap-1 m_gap-025" };
|
|
611
611
|
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
612
612
|
__name: "Header",
|
|
613
613
|
props: {
|
|
@@ -687,7 +687,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
687
687
|
}
|
|
688
688
|
return (_ctx, _cache) => {
|
|
689
689
|
return openBlock(), createElementBlock("div", _hoisted_1$14, [
|
|
690
|
-
createElementVNode("div", _hoisted_2$
|
|
690
|
+
createElementVNode("div", _hoisted_2$Q, [
|
|
691
691
|
createVNode(unref(Btn), {
|
|
692
692
|
flat: "",
|
|
693
693
|
icon: "chevron_left",
|
|
@@ -738,12 +738,12 @@ const EVENT_COLORS = {
|
|
|
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
740
|
const _hoisted_1$13 = ["id"];
|
|
741
|
-
const _hoisted_2$
|
|
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,
|
|
744
744
|
class: "agenda__event-time flex gap-025"
|
|
745
745
|
};
|
|
746
|
-
const _hoisted_4$
|
|
746
|
+
const _hoisted_4$u = {
|
|
747
747
|
key: 1,
|
|
748
748
|
class: "agenda__event-location flex gap-025"
|
|
749
749
|
};
|
|
@@ -827,7 +827,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
827
827
|
class: "agenda__event is-event rounded mb-05 pointer user-select-none p-1 grid gap-1",
|
|
828
828
|
onClick: withModifiers(handleClickOnEvent, ["prevent"])
|
|
829
829
|
}, [
|
|
830
|
-
createElementVNode("div", _hoisted_2$
|
|
830
|
+
createElementVNode("div", _hoisted_2$P, [
|
|
831
831
|
eventTime.value && !__props.calendarEvent.originalEvent ? (openBlock(), createElementBlock("span", _hoisted_3$G, [
|
|
832
832
|
createVNode(unref(_sfc_main$s), {
|
|
833
833
|
icon: icons.clock,
|
|
@@ -835,7 +835,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
835
835
|
}, null, 8, ["icon"]),
|
|
836
836
|
createTextVNode(" " + toDisplayString(eventTime.value), 1)
|
|
837
837
|
])) : createCommentVNode("", true),
|
|
838
|
-
__props.calendarEvent.location ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
838
|
+
__props.calendarEvent.location ? (openBlock(), createElementBlock("span", _hoisted_4$u, [
|
|
839
839
|
createVNode(unref(_sfc_main$s), {
|
|
840
840
|
icon: icons.location,
|
|
841
841
|
size: 1
|
|
@@ -858,9 +858,9 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
858
858
|
});
|
|
859
859
|
const AgendaEventTile = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__scopeId", "data-v-5740437b"]]);
|
|
860
860
|
const _hoisted_1$12 = { class: "agenda__wrapper grid align-items-start gap-1 h-100p" };
|
|
861
|
-
const _hoisted_2$
|
|
861
|
+
const _hoisted_2$O = { class: "m_sticky" };
|
|
862
862
|
const _hoisted_3$F = { class: "agenda__header-day-name txt-center" };
|
|
863
|
-
const _hoisted_4$
|
|
863
|
+
const _hoisted_4$t = { class: "agenda__header-date flex justify-content-center rounded p-025 txt24 line-height-04" };
|
|
864
864
|
const _hoisted_5$o = { class: "agenda__content flex column w-100p h-100p min-h-100px pt-05 border-start ps-1 m_pt-0 min-h-50px" };
|
|
865
865
|
const _hoisted_6$k = {
|
|
866
866
|
key: 0,
|
|
@@ -891,9 +891,9 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
891
891
|
const emit2 = __emit;
|
|
892
892
|
return (_ctx, _cache) => {
|
|
893
893
|
return openBlock(), createElementBlock("div", _hoisted_1$12, [
|
|
894
|
-
createElementVNode("header", _hoisted_2$
|
|
894
|
+
createElementVNode("header", _hoisted_2$O, [
|
|
895
895
|
createElementVNode("div", _hoisted_3$F, toDisplayString(__props.day.dayName.slice(0, 3)), 1),
|
|
896
|
-
createElementVNode("div", _hoisted_4$
|
|
896
|
+
createElementVNode("div", _hoisted_4$t, toDisplayString(__props.day.dateTimeString.substring(8, 10)), 1)
|
|
897
897
|
]),
|
|
898
898
|
createElementVNode("div", _hoisted_5$o, [
|
|
899
899
|
__props.day.events.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_6$k, toDisplayString(unref(getLanguage)(unref(languageKeys).noEvent, __props.time.CALENDAR_LOCALE)), 1)) : (openBlock(), createElementBlock("div", _hoisted_7$g, [
|
|
@@ -1596,12 +1596,12 @@ const _hoisted_1$11 = {
|
|
|
1596
1596
|
key: 0,
|
|
1597
1597
|
class: "event-flyout__relative-wrapper"
|
|
1598
1598
|
};
|
|
1599
|
-
const _hoisted_2$
|
|
1599
|
+
const _hoisted_2$N = { class: "event-flyout__menu" };
|
|
1600
1600
|
const _hoisted_3$E = {
|
|
1601
1601
|
key: 0,
|
|
1602
1602
|
class: "event-flyout__menu-editable"
|
|
1603
1603
|
};
|
|
1604
|
-
const _hoisted_4$
|
|
1604
|
+
const _hoisted_4$s = { class: "event-flyout__menu-close" };
|
|
1605
1605
|
const _hoisted_5$n = {
|
|
1606
1606
|
key: 0,
|
|
1607
1607
|
class: "event-flyout__info-wrapper"
|
|
@@ -1805,7 +1805,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
1805
1805
|
style: normalizeStyle(eventFlyoutInlineStyles.value)
|
|
1806
1806
|
}, [
|
|
1807
1807
|
!__props.config.eventDialog || !__props.config.eventDialog.isCustom ? (openBlock(), createElementBlock("div", _hoisted_1$11, [
|
|
1808
|
-
createElementVNode("div", _hoisted_2$
|
|
1808
|
+
createElementVNode("div", _hoisted_2$N, [
|
|
1809
1809
|
isEditable.value ? (openBlock(), createElementBlock("span", _hoisted_3$E, [
|
|
1810
1810
|
createVNode(unref(_sfc_main$s), {
|
|
1811
1811
|
class: "event-flyout__menu-item is-edit-icon",
|
|
@@ -1818,7 +1818,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
1818
1818
|
onClick: deleteEvent
|
|
1819
1819
|
}, null, 8, ["icon"])
|
|
1820
1820
|
])) : createCommentVNode("", true),
|
|
1821
|
-
createElementVNode("span", _hoisted_4$
|
|
1821
|
+
createElementVNode("span", _hoisted_4$s, [
|
|
1822
1822
|
createVNode(unref(_sfc_main$s), {
|
|
1823
1823
|
class: "event-flyout__menu-item is-times-icon",
|
|
1824
1824
|
icon: icons.times,
|
|
@@ -1875,9 +1875,9 @@ const _hoisted_1$10 = {
|
|
|
1875
1875
|
key: 0,
|
|
1876
1876
|
class: "calendar-month__event"
|
|
1877
1877
|
};
|
|
1878
|
-
const _hoisted_2$
|
|
1878
|
+
const _hoisted_2$M = ["id", "draggable"];
|
|
1879
1879
|
const _hoisted_3$D = ["id", "draggable"];
|
|
1880
|
-
const _hoisted_4$
|
|
1880
|
+
const _hoisted_4$r = {
|
|
1881
1881
|
key: 0,
|
|
1882
1882
|
class: "calendar-month__event-time opacity-6 flex-shrink-0"
|
|
1883
1883
|
};
|
|
@@ -1974,7 +1974,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1974
1974
|
onClick: handleClickOnEvent
|
|
1975
1975
|
}, [
|
|
1976
1976
|
renderSlot(_ctx.$slots, "monthEvent", { eventData: __props.calendarEvent }, void 0, true)
|
|
1977
|
-
], 42, _hoisted_2$
|
|
1977
|
+
], 42, _hoisted_2$M)) : (openBlock(), createElementBlock("div", {
|
|
1978
1978
|
key: 1,
|
|
1979
1979
|
id: elementId.value,
|
|
1980
1980
|
"data-ref": "default-event",
|
|
@@ -1984,7 +1984,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1984
1984
|
onClick: handleClickOnEvent
|
|
1985
1985
|
}, [
|
|
1986
1986
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "calendar-month__event-color round flex-shrink-0" }, null, -1)),
|
|
1987
|
-
eventTimeStart.value && !__props.calendarEvent.originalEvent ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
1987
|
+
eventTimeStart.value && !__props.calendarEvent.originalEvent ? (openBlock(), createElementBlock("span", _hoisted_4$r, toDisplayString(eventTimeStart.value), 1)) : createCommentVNode("", true),
|
|
1988
1988
|
createElementVNode("span", _hoisted_5$m, toDisplayString(__props.calendarEvent.title), 1)
|
|
1989
1989
|
], 42, _hoisted_3$D))
|
|
1990
1990
|
], 64));
|
|
@@ -1993,9 +1993,9 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
1993
1993
|
});
|
|
1994
1994
|
const Event = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-3c4101df"]]);
|
|
1995
1995
|
const _hoisted_1$$ = ["id"];
|
|
1996
|
-
const _hoisted_2$
|
|
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
|
-
const _hoisted_4$
|
|
1998
|
+
const _hoisted_4$q = {
|
|
1999
1999
|
key: 1,
|
|
2000
2000
|
class: "space-reserver"
|
|
2001
2001
|
};
|
|
@@ -2096,7 +2096,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
2096
2096
|
onDragend: handleDragEnd
|
|
2097
2097
|
}, [
|
|
2098
2098
|
renderSlot(_ctx.$slots, "dayCell", { dayData: __props.day }, () => [
|
|
2099
|
-
createElementVNode("div", _hoisted_2$
|
|
2099
|
+
createElementVNode("div", _hoisted_2$L, [
|
|
2100
2100
|
createElementVNode("p", {
|
|
2101
2101
|
class: "calendar-month__day-date ms-auto flex aspect-ratio-1 w-30px h-30px justify-content-center m_mx-auto",
|
|
2102
2102
|
onClick: emitDayWasClicked
|
|
@@ -2129,7 +2129,7 @@ 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$$)) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
2132
|
+
], 42, _hoisted_1$$)) : (openBlock(), createElementBlock("div", _hoisted_4$q));
|
|
2133
2133
|
};
|
|
2134
2134
|
}
|
|
2135
2135
|
});
|
|
@@ -2147,9 +2147,9 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
2147
2147
|
}
|
|
2148
2148
|
});
|
|
2149
2149
|
const _hoisted_1$Z = { class: "calendar-month relative column w-100p h-100p overflow-y flex flex-stretch" };
|
|
2150
|
-
const _hoisted_2$
|
|
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
|
-
const _hoisted_4$
|
|
2152
|
+
const _hoisted_4$p = {
|
|
2153
2153
|
key: 0,
|
|
2154
2154
|
class: "calendar-month__day_events w-100p pt-1 m_pb-1"
|
|
2155
2155
|
};
|
|
@@ -2256,7 +2256,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
2256
2256
|
return (_ctx, _cache) => {
|
|
2257
2257
|
var _a;
|
|
2258
2258
|
return openBlock(), createElementBlock("div", _hoisted_1$Z, [
|
|
2259
|
-
createElementVNode("div", _hoisted_2$
|
|
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, {
|
|
2262
2262
|
key: dayIndex,
|
|
@@ -2298,7 +2298,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
2298
2298
|
]);
|
|
2299
2299
|
}), 128))
|
|
2300
2300
|
]),
|
|
2301
|
-
!(((_a = __props.config.month) == null ? void 0 : _a.showEventsOnMobileView) === false) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
2301
|
+
!(((_a = __props.config.month) == null ? void 0 : _a.showEventsOnMobileView) === false) ? (openBlock(), createElementBlock("div", _hoisted_4$p, [
|
|
2302
2302
|
selectedDay.value ? (openBlock(), createBlock(AgendaEvents, {
|
|
2303
2303
|
key: 0,
|
|
2304
2304
|
config: __props.config,
|
|
@@ -2533,9 +2533,9 @@ class EventChange {
|
|
|
2533
2533
|
}
|
|
2534
2534
|
}
|
|
2535
2535
|
const _hoisted_1$Y = ["data-ref"];
|
|
2536
|
-
const _hoisted_2$
|
|
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
|
-
const _hoisted_4$
|
|
2538
|
+
const _hoisted_4$o = {
|
|
2539
2539
|
key: 0,
|
|
2540
2540
|
class: "calendar-week__event-row is-location"
|
|
2541
2541
|
};
|
|
@@ -2894,7 +2894,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
2894
2894
|
backgroundColor: eventBackgroundColor.value
|
|
2895
2895
|
})
|
|
2896
2896
|
}, [
|
|
2897
|
-
createElementVNode("div", _hoisted_2$
|
|
2897
|
+
createElementVNode("div", _hoisted_2$J, toDisplayString(event.value.title), 1),
|
|
2898
2898
|
createElementVNode("div", _hoisted_3$A, [
|
|
2899
2899
|
createVNode(unref(_sfc_main$s), {
|
|
2900
2900
|
icon: icons.value.clock,
|
|
@@ -2902,7 +2902,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
2902
2902
|
}, null, 8, ["icon"]),
|
|
2903
2903
|
createElementVNode("span", null, toDisplayString(getEventTime.value), 1)
|
|
2904
2904
|
]),
|
|
2905
|
-
event.value.location ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
2905
|
+
event.value.location ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
|
|
2906
2906
|
createVNode(unref(_sfc_main$s), {
|
|
2907
2907
|
icon: icons.value.location,
|
|
2908
2908
|
class: "calendar-week__event-icon"
|
|
@@ -3104,7 +3104,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
3104
3104
|
});
|
|
3105
3105
|
const Day = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-87669cec"]]);
|
|
3106
3106
|
const _hoisted_1$W = { class: "day-timeline absolute top-0 start-0 space-evenly column display-flex" };
|
|
3107
|
-
const _hoisted_2$
|
|
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",
|
|
3110
3110
|
props: {
|
|
@@ -3137,7 +3137,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
3137
3137
|
key: hour,
|
|
3138
3138
|
class: "day-timeline__hour display-flex column ustify-content-start h-100p ps-05"
|
|
3139
3139
|
}, [
|
|
3140
|
-
createElementVNode("span", _hoisted_2$
|
|
3140
|
+
createElementVNode("span", _hoisted_2$I, toDisplayString(getLocaleTimeString(hour)), 1)
|
|
3141
3141
|
]);
|
|
3142
3142
|
}), 128))
|
|
3143
3143
|
]);
|
|
@@ -3146,7 +3146,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
3146
3146
|
});
|
|
3147
3147
|
const DayTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-0b3de5c5"]]);
|
|
3148
3148
|
const _hoisted_1$V = ["id"];
|
|
3149
|
-
const _hoisted_2$
|
|
3149
|
+
const _hoisted_2$H = {
|
|
3150
3150
|
key: 1,
|
|
3151
3151
|
class: "week-timeline__event"
|
|
3152
3152
|
};
|
|
@@ -3217,7 +3217,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
3217
3217
|
zIndex: 1
|
|
3218
3218
|
}),
|
|
3219
3219
|
onClick: handleClickOnEvent
|
|
3220
|
-
}, toDisplayString(__props.scheduleEvent.title), 13, _hoisted_1$V)) : (openBlock(), createElementBlock("div", _hoisted_2$
|
|
3220
|
+
}, toDisplayString(__props.scheduleEvent.title), 13, _hoisted_1$V)) : (openBlock(), createElementBlock("div", _hoisted_2$H));
|
|
3221
3221
|
};
|
|
3222
3222
|
}
|
|
3223
3223
|
});
|
|
@@ -3226,9 +3226,9 @@ const _hoisted_1$U = {
|
|
|
3226
3226
|
class: "week-timeline flex space-between border-bottom ms-3-5",
|
|
3227
3227
|
style: { "margin-inline-end": "0.5em" }
|
|
3228
3228
|
};
|
|
3229
|
-
const _hoisted_2$
|
|
3229
|
+
const _hoisted_2$G = ["onClick"];
|
|
3230
3230
|
const _hoisted_3$z = { class: "flex justify-content-center gap-025 txt12 pb-025" };
|
|
3231
|
-
const _hoisted_4$
|
|
3231
|
+
const _hoisted_4$n = { class: "" };
|
|
3232
3232
|
const _hoisted_5$k = { class: "week-timeline__date txt14 round inline-flex justify-content-center" };
|
|
3233
3233
|
const _hoisted_6$h = { class: "week-timeline__events" };
|
|
3234
3234
|
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
@@ -3262,7 +3262,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
3262
3262
|
onClick: ($event) => emit2("dayWasClicked", _ctx.time.dateStringFrom(day.dateTimeString))
|
|
3263
3263
|
}, [
|
|
3264
3264
|
createElementVNode("div", _hoisted_3$z, [
|
|
3265
|
-
createElementVNode("div", _hoisted_4$
|
|
3265
|
+
createElementVNode("div", _hoisted_4$n, toDisplayString(day.dayName.charAt(0).toUpperCase() + day.dayName.slice(1, 3).toLowerCase()), 1),
|
|
3266
3266
|
createElementVNode("div", _hoisted_5$k, toDisplayString(getDaysDate(day)), 1)
|
|
3267
3267
|
]),
|
|
3268
3268
|
createElementVNode("div", _hoisted_6$h, [
|
|
@@ -3278,7 +3278,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
3278
3278
|
], 64);
|
|
3279
3279
|
}), 128))
|
|
3280
3280
|
])
|
|
3281
|
-
], 10, _hoisted_2$
|
|
3281
|
+
], 10, _hoisted_2$G);
|
|
3282
3282
|
}), 128))
|
|
3283
3283
|
]);
|
|
3284
3284
|
};
|
|
@@ -3286,7 +3286,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
3286
3286
|
});
|
|
3287
3287
|
const WeekTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-18ecf6c3"]]);
|
|
3288
3288
|
const _hoisted_1$T = { class: "calendar-week__wrapper relative ps-3-5" };
|
|
3289
|
-
const _hoisted_2$
|
|
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({
|
|
3292
3292
|
__name: "Week",
|
|
@@ -3533,7 +3533,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
3533
3533
|
]),
|
|
3534
3534
|
_: 3
|
|
3535
3535
|
}, 8, ["calendar-event-prop", "event-element", "time", "config"])) : createCommentVNode("", true),
|
|
3536
|
-
createElementVNode("section", _hoisted_2$
|
|
3536
|
+
createElementVNode("section", _hoisted_2$F, [
|
|
3537
3537
|
hasCustomCurrentTimeSlot.value && showCurrentTime.value ? (openBlock(), createElementBlock("div", {
|
|
3538
3538
|
key: 0,
|
|
3539
3539
|
class: "custom-current-time",
|
|
@@ -3636,7 +3636,7 @@ __publicField(_Errors, "MISSING_TIME_END_WARNING", `${_Errors.PREFIX} required e
|
|
|
3636
3636
|
${_Errors.SUFFIX}`);
|
|
3637
3637
|
let Errors = _Errors;
|
|
3638
3638
|
const _hoisted_1$S = { class: "calendar-root-wrapper txt16" };
|
|
3639
|
-
const _hoisted_2$
|
|
3639
|
+
const _hoisted_2$E = ["data-lang"];
|
|
3640
3640
|
const _hoisted_3$x = {
|
|
3641
3641
|
key: 0,
|
|
3642
3642
|
class: "top-bar-loader"
|
|
@@ -3914,7 +3914,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
3914
3914
|
]),
|
|
3915
3915
|
_: 3
|
|
3916
3916
|
}, 8, ["events-prop", "time", "config", "period"])) : createCommentVNode("", true)
|
|
3917
|
-
], 10, _hoisted_2$
|
|
3917
|
+
], 10, _hoisted_2$E)
|
|
3918
3918
|
]);
|
|
3919
3919
|
};
|
|
3920
3920
|
}
|
|
@@ -3963,12 +3963,12 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
3963
3963
|
}
|
|
3964
3964
|
});
|
|
3965
3965
|
const _hoisted_1$Q = ["dir"];
|
|
3966
|
-
const _hoisted_2$
|
|
3966
|
+
const _hoisted_2$D = {
|
|
3967
3967
|
key: 0,
|
|
3968
3968
|
class: "dots"
|
|
3969
3969
|
};
|
|
3970
3970
|
const _hoisted_3$w = ["onClick"];
|
|
3971
|
-
const _hoisted_4$
|
|
3971
|
+
const _hoisted_4$m = { class: "Handlers" };
|
|
3972
3972
|
const GAP_PERCENT = 1;
|
|
3973
3973
|
const VELOCITY_SAMPLE_DURATION = 100;
|
|
3974
3974
|
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
@@ -4397,7 +4397,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
4397
4397
|
}, [
|
|
4398
4398
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4399
4399
|
], 38),
|
|
4400
|
-
props2.dots && unref(slideCount) > 1 ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
4400
|
+
props2.dots && unref(slideCount) > 1 ? (openBlock(), createElementBlock("div", _hoisted_2$D, [
|
|
4401
4401
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(slideCount), (i2) => {
|
|
4402
4402
|
return openBlock(), createElementBlock("span", {
|
|
4403
4403
|
key: i2,
|
|
@@ -4406,7 +4406,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
4406
4406
|
}, null, 10, _hoisted_3$w);
|
|
4407
4407
|
}), 128))
|
|
4408
4408
|
])) : createCommentVNode("", true),
|
|
4409
|
-
createElementVNode("div", _hoisted_4$
|
|
4409
|
+
createElementVNode("div", _hoisted_4$m, [
|
|
4410
4410
|
createElementVNode("span", { onClick: prev }, [
|
|
4411
4411
|
renderSlot(_ctx.$slots, "prev", {
|
|
4412
4412
|
index: unref(activeSlideIndex),
|
|
@@ -10259,7 +10259,7 @@ const _hoisted_1$1$1 = {
|
|
|
10259
10259
|
};
|
|
10260
10260
|
const _hoisted_2$1$1 = ["width", "height", "viewBox"];
|
|
10261
10261
|
const _hoisted_3$v = { class: "layer-rectangles" };
|
|
10262
|
-
const _hoisted_4$
|
|
10262
|
+
const _hoisted_4$l = ["transform", "onMouseover"];
|
|
10263
10263
|
const _hoisted_5$j = ["width", "height"];
|
|
10264
10264
|
const _hoisted_6$g = {
|
|
10265
10265
|
x: 0 + 10,
|
|
@@ -10311,7 +10311,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10311
10311
|
)
|
|
10312
10312
|
])
|
|
10313
10313
|
])
|
|
10314
|
-
], 42, _hoisted_4$
|
|
10314
|
+
], 42, _hoisted_4$l);
|
|
10315
10315
|
}),
|
|
10316
10316
|
128
|
|
10317
10317
|
/* KEYED_FRAGMENT */
|
|
@@ -10372,7 +10372,7 @@ const _hoisted_1$P = {
|
|
|
10372
10372
|
key: 0,
|
|
10373
10373
|
class: "layer-hover-bar"
|
|
10374
10374
|
};
|
|
10375
|
-
const _hoisted_2$
|
|
10375
|
+
const _hoisted_2$C = ["x", "y", "width", "height"];
|
|
10376
10376
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10377
10377
|
return _ctx.mouse.hover ? (openBlock(), createElementBlock("g", _hoisted_1$P, [
|
|
10378
10378
|
createElementVNode("rect", mergeProps({ class: "hover-bar" }, _ctx.barStyle, {
|
|
@@ -10380,7 +10380,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10380
10380
|
y: _ctx.bar.y,
|
|
10381
10381
|
width: _ctx.bar.width > 0 ? _ctx.bar.width : 0,
|
|
10382
10382
|
height: _ctx.bar.height > 0 ? _ctx.bar.height : 0
|
|
10383
|
-
}), null, 16, _hoisted_2$
|
|
10383
|
+
}), null, 16, _hoisted_2$C)
|
|
10384
10384
|
])) : createCommentVNode("v-if", true);
|
|
10385
10385
|
}
|
|
10386
10386
|
script.render = render;
|
|
@@ -10687,14 +10687,43 @@ function useTableData(options) {
|
|
|
10687
10687
|
const sortField = ref("");
|
|
10688
10688
|
const sortDirection = ref("ASC");
|
|
10689
10689
|
function getValue(value) {
|
|
10690
|
-
|
|
10690
|
+
if (value === void 0 || value === null) {
|
|
10691
|
+
return void 0;
|
|
10692
|
+
}
|
|
10693
|
+
try {
|
|
10694
|
+
if (value && typeof value === "object" && "value" in value) {
|
|
10695
|
+
return value.value;
|
|
10696
|
+
}
|
|
10697
|
+
return value;
|
|
10698
|
+
} catch (error) {
|
|
10699
|
+
console.error("Error in getValue:", error);
|
|
10700
|
+
return void 0;
|
|
10701
|
+
}
|
|
10691
10702
|
}
|
|
10692
10703
|
const computedSchema = computed(() => {
|
|
10693
|
-
|
|
10704
|
+
const dataValue = options.data.value || [];
|
|
10705
|
+
const schema = useBglSchema({
|
|
10694
10706
|
schema: getValue(options.schema),
|
|
10695
10707
|
columns: getValue(options.columns),
|
|
10696
|
-
data:
|
|
10697
|
-
});
|
|
10708
|
+
data: dataValue
|
|
10709
|
+
});
|
|
10710
|
+
if (Array.isArray(schema) && schema.length > 0) {
|
|
10711
|
+
return schema.filter((field) => field && field.id);
|
|
10712
|
+
}
|
|
10713
|
+
if (Array.isArray(dataValue) && dataValue.length > 0) {
|
|
10714
|
+
const firstItem = dataValue[0];
|
|
10715
|
+
return Object.keys(firstItem || {}).filter((key) => key !== "id" && !key.startsWith("_")).map((key) => ({
|
|
10716
|
+
id: key,
|
|
10717
|
+
label: keyToLabel(key),
|
|
10718
|
+
$el: "div",
|
|
10719
|
+
transform: (val) => {
|
|
10720
|
+
const dateFields = ["created_at", "updated_at"];
|
|
10721
|
+
if (dateFields.includes(key)) return val ? new Date(val).toLocaleString() : val;
|
|
10722
|
+
return val;
|
|
10723
|
+
}
|
|
10724
|
+
}));
|
|
10725
|
+
}
|
|
10726
|
+
return [];
|
|
10698
10727
|
});
|
|
10699
10728
|
function transform(rowData) {
|
|
10700
10729
|
const transformed = { ...rowData };
|
|
@@ -10720,9 +10749,21 @@ function useTableData(options) {
|
|
|
10720
10749
|
}
|
|
10721
10750
|
return transformed;
|
|
10722
10751
|
}
|
|
10752
|
+
function cleanTransformedData(data2) {
|
|
10753
|
+
const cleanData = { ...data2 };
|
|
10754
|
+
Object.keys(cleanData).forEach((key) => {
|
|
10755
|
+
if (key.startsWith("_")) {
|
|
10756
|
+
delete cleanData[key];
|
|
10757
|
+
}
|
|
10758
|
+
});
|
|
10759
|
+
return cleanData;
|
|
10760
|
+
}
|
|
10723
10761
|
const computedSortField = computed(() => sortField.value ? `_transformed_${sortField.value}` : "");
|
|
10724
10762
|
const computedData = computed(() => {
|
|
10725
|
-
const currentData = options.data.value;
|
|
10763
|
+
const currentData = options.data.value || [];
|
|
10764
|
+
if (!Array.isArray(currentData) || currentData.length === 0) {
|
|
10765
|
+
return [];
|
|
10766
|
+
}
|
|
10726
10767
|
const useServerSortValue = getValue(options.useServerSort);
|
|
10727
10768
|
if (!sortField.value || useServerSortValue === true) {
|
|
10728
10769
|
return currentData.map(transform);
|
|
@@ -10764,10 +10805,15 @@ function useTableData(options) {
|
|
|
10764
10805
|
transform,
|
|
10765
10806
|
sortField: computed(() => sortField.value),
|
|
10766
10807
|
sortDirection: computed(() => sortDirection.value),
|
|
10767
|
-
toggleSort
|
|
10808
|
+
toggleSort,
|
|
10809
|
+
cleanTransformedData
|
|
10768
10810
|
};
|
|
10769
10811
|
}
|
|
10770
10812
|
const _hoisted_1$O = { class: "data-preview" };
|
|
10813
|
+
const _hoisted_2$B = {
|
|
10814
|
+
key: 1,
|
|
10815
|
+
class: "empty-preview"
|
|
10816
|
+
};
|
|
10771
10817
|
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
10772
10818
|
__name: "DataPreview",
|
|
10773
10819
|
props: {
|
|
@@ -10782,7 +10828,12 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
10782
10828
|
setup(__props) {
|
|
10783
10829
|
const props2 = __props;
|
|
10784
10830
|
const slots = useSlots();
|
|
10785
|
-
const data2 = computed(() =>
|
|
10831
|
+
const data2 = computed(() => {
|
|
10832
|
+
if (!props2.modelValue) {
|
|
10833
|
+
return [];
|
|
10834
|
+
}
|
|
10835
|
+
return Array.isArray(props2.modelValue) ? props2.modelValue : [props2.modelValue];
|
|
10836
|
+
});
|
|
10786
10837
|
const {
|
|
10787
10838
|
computedSchema,
|
|
10788
10839
|
computedData
|
|
@@ -10792,7 +10843,12 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
10792
10843
|
columns: props2.columns,
|
|
10793
10844
|
useServerSort: false
|
|
10794
10845
|
});
|
|
10795
|
-
const firstItem = computed(() =>
|
|
10846
|
+
const firstItem = computed(() => {
|
|
10847
|
+
if (!computedData.value || computedData.value.length === 0) {
|
|
10848
|
+
return {};
|
|
10849
|
+
}
|
|
10850
|
+
return computedData.value[0] || {};
|
|
10851
|
+
});
|
|
10796
10852
|
const { renderField } = useSchemaField({
|
|
10797
10853
|
mode: "preview",
|
|
10798
10854
|
getRowData: () => firstItem.value,
|
|
@@ -10800,16 +10856,16 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
10800
10856
|
});
|
|
10801
10857
|
return (_ctx, _cache) => {
|
|
10802
10858
|
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
10803
|
-
(openBlock(true), createElementBlock(Fragment,
|
|
10859
|
+
unref(computedSchema) && unref(computedSchema).length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(computedSchema), (field) => {
|
|
10804
10860
|
return openBlock(), createBlock(resolveDynamicComponent(unref(renderField)(field, unref(slots))), {
|
|
10805
10861
|
key: field.id
|
|
10806
10862
|
});
|
|
10807
|
-
}), 128))
|
|
10863
|
+
}), 128)) : (openBlock(), createElementBlock("div", _hoisted_2$B, " No data to display "))
|
|
10808
10864
|
]);
|
|
10809
10865
|
};
|
|
10810
10866
|
}
|
|
10811
10867
|
});
|
|
10812
|
-
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-
|
|
10868
|
+
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-4cd3d931"]]);
|
|
10813
10869
|
function useTableSelection(options) {
|
|
10814
10870
|
const allSelectorEl = ref();
|
|
10815
10871
|
const computedSelectedItems = computed(() => options.selectedItems.value);
|
|
@@ -10822,8 +10878,14 @@ function useTableSelection(options) {
|
|
|
10822
10878
|
}
|
|
10823
10879
|
function toggleSelectItem(item) {
|
|
10824
10880
|
if (computedSelectedItems.value.length === 0) {
|
|
10825
|
-
const cleanItem = { ...item };
|
|
10826
|
-
|
|
10881
|
+
const cleanItem = options.cleanData ? options.cleanData(item) : { ...item };
|
|
10882
|
+
if (!options.cleanData) {
|
|
10883
|
+
Object.keys(cleanItem).forEach((key) => {
|
|
10884
|
+
if (key.startsWith("_")) {
|
|
10885
|
+
delete cleanItem[key];
|
|
10886
|
+
}
|
|
10887
|
+
});
|
|
10888
|
+
}
|
|
10827
10889
|
options.onSelect(cleanItem);
|
|
10828
10890
|
return;
|
|
10829
10891
|
}
|
|
@@ -11424,7 +11486,13 @@ function useTableVirtualization(options) {
|
|
|
11424
11486
|
await until(() => lastItemEl.value).toBeTruthy();
|
|
11425
11487
|
useIntersectionObserver(lastItemEl, ([entry]) => {
|
|
11426
11488
|
var _a;
|
|
11427
|
-
|
|
11489
|
+
let dataLength = 0;
|
|
11490
|
+
if (isRef(options.data) && options.data.value) {
|
|
11491
|
+
dataLength = Array.isArray(options.data.value) ? options.data.value.length : 0;
|
|
11492
|
+
} else if (Array.isArray(options.data)) {
|
|
11493
|
+
dataLength = options.data.length;
|
|
11494
|
+
}
|
|
11495
|
+
if (entry.isIntersecting && dataLength > 0) {
|
|
11428
11496
|
(_a = options.onLastItemVisible) == null ? void 0 : _a.call(options);
|
|
11429
11497
|
}
|
|
11430
11498
|
});
|
|
@@ -11444,7 +11512,7 @@ const _hoisted_1$N = {
|
|
|
11444
11512
|
};
|
|
11445
11513
|
const _hoisted_2$A = { class: "infinite-wrapper" };
|
|
11446
11514
|
const _hoisted_3$u = { class: "row first-row" };
|
|
11447
|
-
const _hoisted_4$
|
|
11515
|
+
const _hoisted_4$k = { key: 0 };
|
|
11448
11516
|
const _hoisted_5$i = ["onClick"];
|
|
11449
11517
|
const _hoisted_6$f = { class: "flex" };
|
|
11450
11518
|
const _hoisted_7$c = ["onClick"];
|
|
@@ -11471,7 +11539,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
11471
11539
|
emits: /* @__PURE__ */ mergeModels(["orderBy", "select", "lastItemVisible"], ["update:loading", "update:itemHeight", "update:selectedItems"]),
|
|
11472
11540
|
setup(__props, { emit: __emit }) {
|
|
11473
11541
|
useCssVars((_ctx) => ({
|
|
11474
|
-
"
|
|
11542
|
+
"31aad8d2": unref(computedItemHeight)
|
|
11475
11543
|
}));
|
|
11476
11544
|
const props2 = __props;
|
|
11477
11545
|
const emit2 = __emit;
|
|
@@ -11488,7 +11556,8 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
11488
11556
|
computedData,
|
|
11489
11557
|
sortField,
|
|
11490
11558
|
sortDirection,
|
|
11491
|
-
toggleSort
|
|
11559
|
+
toggleSort,
|
|
11560
|
+
cleanTransformedData
|
|
11492
11561
|
} = useTableData({ data: data2, schema, columns, useServerSort, onSort: (field, direction) => {
|
|
11493
11562
|
emit2("orderBy", `${field} ${direction}`.trim());
|
|
11494
11563
|
} });
|
|
@@ -11502,6 +11571,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
11502
11571
|
} = useTableSelection({
|
|
11503
11572
|
selectable: props2.selectable,
|
|
11504
11573
|
selectedItems,
|
|
11574
|
+
cleanData: cleanTransformedData,
|
|
11505
11575
|
onSelect: (item) => {
|
|
11506
11576
|
emit2("select", item);
|
|
11507
11577
|
}
|
|
@@ -11565,7 +11635,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
11565
11635
|
]))) : (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 1 }, unref(wrapperProps))), [
|
|
11566
11636
|
createElementVNode("table", _hoisted_2$A, [
|
|
11567
11637
|
createElementVNode("thead", _hoisted_3$u, [
|
|
11568
|
-
unref(isSelectable) ? (openBlock(), createElementBlock("th", _hoisted_4$
|
|
11638
|
+
unref(isSelectable) ? (openBlock(), createElementBlock("th", _hoisted_4$k, [
|
|
11569
11639
|
createElementVNode("input", {
|
|
11570
11640
|
ref_key: "allSelectorEl",
|
|
11571
11641
|
ref: allSelectorEl,
|
|
@@ -11583,9 +11653,9 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
11583
11653
|
onClick: ($event) => unref(toggleSort)((field == null ? void 0 : field.id) || "")
|
|
11584
11654
|
}, [
|
|
11585
11655
|
createElementVNode("div", _hoisted_6$f, [
|
|
11586
|
-
createTextVNode(toDisplayString(field.label || unref(keyToLabel)(field.id)) + " ", 1),
|
|
11656
|
+
createTextVNode(toDisplayString(field.label || unref(keyToLabel)(field == null ? void 0 : field.id)) + " ", 1),
|
|
11587
11657
|
createElementVNode("div", {
|
|
11588
|
-
class: normalizeClass(["list-arrows", { sorted: unref(sortField) === field.id }])
|
|
11658
|
+
class: normalizeClass(["list-arrows", { sorted: unref(sortField) === (field == null ? void 0 : field.id) }])
|
|
11589
11659
|
}, [
|
|
11590
11660
|
createVNode(unref(_sfc_main$s), {
|
|
11591
11661
|
class: normalizeClass({ desc: unref(sortDirection) === "DESC" }),
|
|
@@ -11599,8 +11669,8 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
11599
11669
|
createElementVNode("tbody", null, [
|
|
11600
11670
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(list), ({ data: row }) => {
|
|
11601
11671
|
return openBlock(), createElementBlock("tr", {
|
|
11602
|
-
key: row.id
|
|
11603
|
-
class: normalizeClass(["row row-item position-relative", { selected: unref(computedSelectedItems).includes(row.id
|
|
11672
|
+
key: (row == null ? void 0 : row.id) || `row-${Math.random()}`,
|
|
11673
|
+
class: normalizeClass(["row row-item position-relative", { selected: (row == null ? void 0 : row.id) && unref(computedSelectedItems).includes(row.id) }]),
|
|
11604
11674
|
onClick: ($event) => unref(toggleSelectItem)(row)
|
|
11605
11675
|
}, [
|
|
11606
11676
|
unref(isSelectable) ? (openBlock(), createElementBlock("td", _hoisted_8$7, [
|
|
@@ -11611,7 +11681,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
11611
11681
|
withDirectives(createElementVNode("input", {
|
|
11612
11682
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => selectedItems.value = $event),
|
|
11613
11683
|
type: "checkbox",
|
|
11614
|
-
value: row.id
|
|
11684
|
+
value: (row == null ? void 0 : row.id) || ""
|
|
11615
11685
|
}, null, 8, _hoisted_9$6), [
|
|
11616
11686
|
[vModelCheckbox, selectedItems.value]
|
|
11617
11687
|
])
|
|
@@ -11619,7 +11689,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
11619
11689
|
])) : createCommentVNode("", true),
|
|
11620
11690
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(computedSchema), (field) => {
|
|
11621
11691
|
return openBlock(), createElementBlock("td", {
|
|
11622
|
-
key: `${field.id}-${row.id}`,
|
|
11692
|
+
key: `${field.id}-${(row == null ? void 0 : row.id) || Math.random()}`,
|
|
11623
11693
|
class: "col"
|
|
11624
11694
|
}, [
|
|
11625
11695
|
field.id && unref(slots)[field.id] ? renderSlot(_ctx.$slots, field.id, {
|
|
@@ -11646,7 +11716,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
11646
11716
|
};
|
|
11647
11717
|
}
|
|
11648
11718
|
});
|
|
11649
|
-
const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-
|
|
11719
|
+
const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-43f28baa"]]);
|
|
11650
11720
|
function useDraggable(options = {}) {
|
|
11651
11721
|
const isDragging = ref(false);
|
|
11652
11722
|
const dragElement = ref(null);
|
|
@@ -15426,7 +15496,11 @@ const _hoisted_2$y = {
|
|
|
15426
15496
|
key: 0,
|
|
15427
15497
|
class: "ps-025 border-start mb-05"
|
|
15428
15498
|
};
|
|
15429
|
-
const _hoisted_3$t = {
|
|
15499
|
+
const _hoisted_3$t = {
|
|
15500
|
+
key: 0,
|
|
15501
|
+
class: "minimizedText txt14 p-025 opacity-7"
|
|
15502
|
+
};
|
|
15503
|
+
const _hoisted_4$j = { class: "bg-gray-80 -my-05 px-025 pt-065 pb-05 txt-center space-between flex column" };
|
|
15430
15504
|
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
15431
15505
|
__name: "FieldArray",
|
|
15432
15506
|
props: {
|
|
@@ -15452,6 +15526,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
15452
15526
|
setup(__props, { emit: __emit }) {
|
|
15453
15527
|
const props2 = __props;
|
|
15454
15528
|
const emit2 = __emit;
|
|
15529
|
+
const minimizedItems = ref([]);
|
|
15455
15530
|
const data2 = ref(props2.modelValue || []);
|
|
15456
15531
|
function emitValue() {
|
|
15457
15532
|
emit2("update:modelValue", data2.value);
|
|
@@ -15464,6 +15539,9 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
15464
15539
|
data2.value.push({});
|
|
15465
15540
|
emitValue();
|
|
15466
15541
|
}
|
|
15542
|
+
function toggleMinimized(index2) {
|
|
15543
|
+
minimizedItems.value[index2] = !minimizedItems.value[index2];
|
|
15544
|
+
}
|
|
15467
15545
|
const computedField = computed(
|
|
15468
15546
|
() => ({
|
|
15469
15547
|
label: props2.label,
|
|
@@ -15480,6 +15558,10 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
15480
15558
|
$el: props2.el
|
|
15481
15559
|
})
|
|
15482
15560
|
);
|
|
15561
|
+
const resolvedSchema = computed(() => {
|
|
15562
|
+
if (!props2.schema) return [];
|
|
15563
|
+
return typeof props2.schema === "function" ? props2.schema() : props2.schema;
|
|
15564
|
+
});
|
|
15483
15565
|
const { renderField } = useSchemaField({
|
|
15484
15566
|
mode: "form",
|
|
15485
15567
|
getRowData: () => data2.value,
|
|
@@ -15496,22 +15578,31 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
15496
15578
|
class: normalizeClass(props2.class)
|
|
15497
15579
|
}, [
|
|
15498
15580
|
createElementVNode("p", _hoisted_1$L, toDisplayString(_ctx.label), 1),
|
|
15499
|
-
|
|
15581
|
+
resolvedSchema.value ? (openBlock(), createElementBlock("div", _hoisted_2$y, [
|
|
15500
15582
|
(openBlock(true), createElementBlock(Fragment, null, renderList(data2.value, (_2, i2) => {
|
|
15501
15583
|
return openBlock(), createElementBlock("div", {
|
|
15502
15584
|
key: i2,
|
|
15503
15585
|
outline: "",
|
|
15504
15586
|
thin: "",
|
|
15505
|
-
class: "mb-05 itemBox transition ps-05 pb-025 pt-025 radius-05 gap-05 overflow-hidden"
|
|
15587
|
+
class: normalizeClass(["mb-05 itemBox transition ps-05 pb-025 pt-025 radius-05 gap-05 overflow-hidden", { minimized: minimizedItems.value[i2] }])
|
|
15506
15588
|
}, [
|
|
15507
|
-
|
|
15589
|
+
minimizedItems.value[i2] ? (openBlock(), createElementBlock("p", _hoisted_3$t, toDisplayString(_ctx.label) + " " + toDisplayString(i2 + 1), 1)) : (openBlock(), createBlock(unref(_sfc_main$T), {
|
|
15590
|
+
key: 1,
|
|
15508
15591
|
modelValue: data2.value[i2],
|
|
15509
15592
|
"onUpdate:modelValue": [($event) => data2.value[i2] = $event, emitValue],
|
|
15510
|
-
schema:
|
|
15511
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "schema"]),
|
|
15512
|
-
createElementVNode("div",
|
|
15513
|
-
|
|
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), {
|
|
15514
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), {
|
|
15605
|
+
key: 1,
|
|
15515
15606
|
icon: "delete",
|
|
15516
15607
|
class: "txt10 opacity-7",
|
|
15517
15608
|
thin: "",
|
|
@@ -15519,7 +15610,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
15519
15610
|
onClick: ($event) => deleteItem(i2)
|
|
15520
15611
|
}, null, 8, ["onClick"])) : createCommentVNode("", true)
|
|
15521
15612
|
])
|
|
15522
|
-
]);
|
|
15613
|
+
], 2);
|
|
15523
15614
|
}), 128)),
|
|
15524
15615
|
_ctx.add ? (openBlock(), createBlock(unref(Btn), {
|
|
15525
15616
|
key: 0,
|
|
@@ -33535,7 +33626,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
33535
33626
|
}
|
|
33536
33627
|
});
|
|
33537
33628
|
const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-2f5e271c"]]);
|
|
33538
|
-
const _hoisted_1$j = { class: "m-0 pb-025
|
|
33629
|
+
const _hoisted_1$j = { class: "m-0 pb-025 txt10 line-height-1 w60 menu-text" };
|
|
33539
33630
|
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
33540
33631
|
__name: "BottomMenu",
|
|
33541
33632
|
props: {
|
|
@@ -33571,7 +33662,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
33571
33662
|
};
|
|
33572
33663
|
}
|
|
33573
33664
|
});
|
|
33574
|
-
const BottomMenu = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-
|
|
33665
|
+
const BottomMenu = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-2227f9cc"]]);
|
|
33575
33666
|
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
33576
33667
|
__name: "Layout",
|
|
33577
33668
|
props: {
|