@bagelink/vue 1.0.30 → 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.
Files changed (33) hide show
  1. package/dist/components/DataPreview.vue.d.ts.map +1 -1
  2. package/dist/components/DataTable/DataTable.vue.d.ts +8 -3
  3. package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
  4. package/dist/components/DataTable/useTableData.d.ts +7 -1
  5. package/dist/components/DataTable/useTableData.d.ts.map +1 -1
  6. package/dist/components/DataTable/useTableSelection.d.ts +4 -1
  7. package/dist/components/DataTable/useTableSelection.d.ts.map +1 -1
  8. package/dist/components/DataTable/useTableVirtualization.d.ts.map +1 -1
  9. package/dist/components/form/BagelForm.vue.d.ts.map +1 -1
  10. package/dist/components/form/FieldArray.vue.d.ts.map +1 -1
  11. package/dist/components/form/inputs/RadioPillsInput.vue.d.ts.map +1 -1
  12. package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
  13. package/dist/index.cjs +194 -107
  14. package/dist/index.mjs +194 -107
  15. package/dist/style.css +487 -68
  16. package/dist/types/BagelForm.d.ts +1 -1
  17. package/dist/types/BagelForm.d.ts.map +1 -1
  18. package/dist/types/index.d.ts +1 -1
  19. package/dist/types/index.d.ts.map +1 -1
  20. package/package.json +1 -1
  21. package/src/components/DataPreview.vue +30 -4
  22. package/src/components/DataTable/DataTable.vue +13 -18
  23. package/src/components/DataTable/useTableData.ts +76 -10
  24. package/src/components/DataTable/useTableSelection.ts +17 -3
  25. package/src/components/DataTable/useTableVirtualization.ts +11 -2
  26. package/src/components/form/FieldArray.vue +44 -5
  27. package/src/components/form/inputs/RadioPillsInput.vue +2 -0
  28. package/src/components/form/inputs/SelectInput.vue +2 -0
  29. package/src/components/layout/BottomMenu.vue +1 -1
  30. package/src/styles/layout.css +240 -0
  31. package/src/styles/mobilLayout.css +240 -0
  32. package/src/types/BagelForm.ts +1 -0
  33. package/src/types/index.ts +1 -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$S = { class: "accordion-label" };
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$S, toDisplayString(_ctx.label), 1)
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$R = { class: "m-0" };
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$R, toDisplayString(_ctx.message), 1),
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$Q = ["autoplay", "muted", "loop", "controls", "playsinline"];
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$Q)) : createCommentVNode("", true)
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$P = { class: "flex gap-1 m_gap-025" };
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$P, [
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$O = { class: "flex txt14 flex column align-items-start gap-025 opacity-6" };
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$t = {
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$O, [
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$t, [
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$N = { class: "m_sticky" };
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$s = { class: "agenda__header-date flex justify-content-center rounded p-025 txt24 line-height-04" };
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$N, [
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$s, toDisplayString(__props.day.dateTimeString.substring(8, 10)), 1)
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$M = { class: "event-flyout__menu" };
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$r = { class: "event-flyout__menu-close" };
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$M, [
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$r, [
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$L = ["id", "draggable"];
1878
+ const _hoisted_2$M = ["id", "draggable"];
1879
1879
  const _hoisted_3$D = ["id", "draggable"];
1880
- const _hoisted_4$q = {
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$L)) : (openBlock(), createElementBlock("div", {
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$q, toDisplayString(eventTimeStart.value), 1)) : createCommentVNode("", true),
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$K = { class: "w-100p flex justify-content-end txt14 p-025 m_h-100p" };
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$p = {
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$K, [
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$p));
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$J = { class: "flex space-between" };
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$o = {
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$J, [
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$o, [
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$I = { class: "calendar-week__event-row is-title" };
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$n = {
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$I, toDisplayString(event.value.title), 1),
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$n, [
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$H = { class: "day-timeline__hour-text line-height-0" };
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$H, toDisplayString(getLocaleTimeString(hour)), 1)
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$G = {
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$G));
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$F = ["onClick"];
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$m = { class: "" };
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$m, toDisplayString(day.dayName.charAt(0).toUpperCase() + day.dayName.slice(1, 3).toLowerCase()), 1),
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$F);
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$E = { class: "calendar-week" };
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$E, [
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$D = ["data-lang"];
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$D)
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$C = {
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$l = { class: "Handlers" };
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$C, [
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$l, [
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$k = ["transform", "onMouseover"];
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$k);
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$B = ["x", "y", "width", "height"];
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$B)
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
- return value.value !== void 0 ? value.value : value;
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
- return useBglSchema({
10704
+ const dataValue = options.data.value || [];
10705
+ const schema = useBglSchema({
10694
10706
  schema: getValue(options.schema),
10695
10707
  columns: getValue(options.columns),
10696
- data: options.data.value
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(() => Array.isArray(props2.modelValue) ? props2.modelValue : [props2.modelValue]);
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(() => computedData.value[0] || {});
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, null, renderList(unref(computedSchema), (field) => {
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-88ed9d8d"]]);
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
- Object.keys(cleanItem).forEach((key) => key.startsWith("_transformed_") && delete cleanItem[key]);
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
- if (entry.isIntersecting && options.data.value.length) {
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$j = { key: 0 };
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"];
@@ -11465,28 +11533,20 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
11465
11533
  "loadingModifiers": {},
11466
11534
  "itemHeight": { default: 50 },
11467
11535
  "itemHeightModifiers": {},
11468
- "selectedItems": {
11469
- default: []
11470
- },
11536
+ "selectedItems": { default: [] },
11471
11537
  "selectedItemsModifiers": {}
11472
11538
  }),
11473
- emits: /* @__PURE__ */ mergeModels(["update:selectedItems", "orderBy", "select", "lastItemVisible"], ["update:loading", "update:itemHeight", "update:selectedItems"]),
11539
+ emits: /* @__PURE__ */ mergeModels(["orderBy", "select", "lastItemVisible"], ["update:loading", "update:itemHeight", "update:selectedItems"]),
11474
11540
  setup(__props, { emit: __emit }) {
11475
11541
  useCssVars((_ctx) => ({
11476
- "53d3340a": unref(computedItemHeight)
11542
+ "31aad8d2": unref(computedItemHeight)
11477
11543
  }));
11478
11544
  const props2 = __props;
11479
11545
  const emit2 = __emit;
11480
11546
  const slots = useSlots();
11481
11547
  const loading = useModel(__props, "loading");
11482
11548
  const itemHeight = useModel(__props, "itemHeight");
11483
- const selectedItems = useModel(
11484
- __props,
11485
- "selectedItems",
11486
- {
11487
- set: (value) => value
11488
- }
11489
- );
11549
+ const selectedItems = useModel(__props, "selectedItems");
11490
11550
  const data2 = computed(() => props2.data);
11491
11551
  const schema = computed(() => props2.schema);
11492
11552
  const columns = computed(() => props2.columns);
@@ -11496,7 +11556,8 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
11496
11556
  computedData,
11497
11557
  sortField,
11498
11558
  sortDirection,
11499
- toggleSort
11559
+ toggleSort,
11560
+ cleanTransformedData
11500
11561
  } = useTableData({ data: data2, schema, columns, useServerSort, onSort: (field, direction) => {
11501
11562
  emit2("orderBy", `${field} ${direction}`.trim());
11502
11563
  } });
@@ -11510,6 +11571,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
11510
11571
  } = useTableSelection({
11511
11572
  selectable: props2.selectable,
11512
11573
  selectedItems,
11574
+ cleanData: cleanTransformedData,
11513
11575
  onSelect: (item) => {
11514
11576
  emit2("select", item);
11515
11577
  }
@@ -11573,7 +11635,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
11573
11635
  ]))) : (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 1 }, unref(wrapperProps))), [
11574
11636
  createElementVNode("table", _hoisted_2$A, [
11575
11637
  createElementVNode("thead", _hoisted_3$u, [
11576
- unref(isSelectable) ? (openBlock(), createElementBlock("th", _hoisted_4$j, [
11638
+ unref(isSelectable) ? (openBlock(), createElementBlock("th", _hoisted_4$k, [
11577
11639
  createElementVNode("input", {
11578
11640
  ref_key: "allSelectorEl",
11579
11641
  ref: allSelectorEl,
@@ -11591,9 +11653,9 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
11591
11653
  onClick: ($event) => unref(toggleSort)((field == null ? void 0 : field.id) || "")
11592
11654
  }, [
11593
11655
  createElementVNode("div", _hoisted_6$f, [
11594
- createTextVNode(toDisplayString(field.label || unref(keyToLabel)(field.id)) + " ", 1),
11656
+ createTextVNode(toDisplayString(field.label || unref(keyToLabel)(field == null ? void 0 : field.id)) + " ", 1),
11595
11657
  createElementVNode("div", {
11596
- class: normalizeClass(["list-arrows", { sorted: unref(sortField) === field.id }])
11658
+ class: normalizeClass(["list-arrows", { sorted: unref(sortField) === (field == null ? void 0 : field.id) }])
11597
11659
  }, [
11598
11660
  createVNode(unref(_sfc_main$s), {
11599
11661
  class: normalizeClass({ desc: unref(sortDirection) === "DESC" }),
@@ -11607,8 +11669,8 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
11607
11669
  createElementVNode("tbody", null, [
11608
11670
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(list), ({ data: row }) => {
11609
11671
  return openBlock(), createElementBlock("tr", {
11610
- key: row.id,
11611
- 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) }]),
11612
11674
  onClick: ($event) => unref(toggleSelectItem)(row)
11613
11675
  }, [
11614
11676
  unref(isSelectable) ? (openBlock(), createElementBlock("td", _hoisted_8$7, [
@@ -11619,7 +11681,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
11619
11681
  withDirectives(createElementVNode("input", {
11620
11682
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => selectedItems.value = $event),
11621
11683
  type: "checkbox",
11622
- value: row.id
11684
+ value: (row == null ? void 0 : row.id) || ""
11623
11685
  }, null, 8, _hoisted_9$6), [
11624
11686
  [vModelCheckbox, selectedItems.value]
11625
11687
  ])
@@ -11627,7 +11689,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
11627
11689
  ])) : createCommentVNode("", true),
11628
11690
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(computedSchema), (field) => {
11629
11691
  return openBlock(), createElementBlock("td", {
11630
- key: `${field.id}-${row.id}`,
11692
+ key: `${field.id}-${(row == null ? void 0 : row.id) || Math.random()}`,
11631
11693
  class: "col"
11632
11694
  }, [
11633
11695
  field.id && unref(slots)[field.id] ? renderSlot(_ctx.$slots, field.id, {
@@ -11654,7 +11716,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
11654
11716
  };
11655
11717
  }
11656
11718
  });
11657
- const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-c730b48b"]]);
11719
+ const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-43f28baa"]]);
11658
11720
  function useDraggable(options = {}) {
11659
11721
  const isDragging = ref(false);
11660
11722
  const dragElement = ref(null);
@@ -15434,7 +15496,11 @@ const _hoisted_2$y = {
15434
15496
  key: 0,
15435
15497
  class: "ps-025 border-start mb-05"
15436
15498
  };
15437
- const _hoisted_3$t = { class: "bg-gray-80 -my-05 px-025 pt-065 txt-center" };
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" };
15438
15504
  const _sfc_main$S = /* @__PURE__ */ defineComponent({
15439
15505
  __name: "FieldArray",
15440
15506
  props: {
@@ -15460,6 +15526,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
15460
15526
  setup(__props, { emit: __emit }) {
15461
15527
  const props2 = __props;
15462
15528
  const emit2 = __emit;
15529
+ const minimizedItems = ref([]);
15463
15530
  const data2 = ref(props2.modelValue || []);
15464
15531
  function emitValue() {
15465
15532
  emit2("update:modelValue", data2.value);
@@ -15472,6 +15539,9 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
15472
15539
  data2.value.push({});
15473
15540
  emitValue();
15474
15541
  }
15542
+ function toggleMinimized(index2) {
15543
+ minimizedItems.value[index2] = !minimizedItems.value[index2];
15544
+ }
15475
15545
  const computedField = computed(
15476
15546
  () => ({
15477
15547
  label: props2.label,
@@ -15488,6 +15558,10 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
15488
15558
  $el: props2.el
15489
15559
  })
15490
15560
  );
15561
+ const resolvedSchema = computed(() => {
15562
+ if (!props2.schema) return [];
15563
+ return typeof props2.schema === "function" ? props2.schema() : props2.schema;
15564
+ });
15491
15565
  const { renderField } = useSchemaField({
15492
15566
  mode: "form",
15493
15567
  getRowData: () => data2.value,
@@ -15504,22 +15578,31 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
15504
15578
  class: normalizeClass(props2.class)
15505
15579
  }, [
15506
15580
  createElementVNode("p", _hoisted_1$L, toDisplayString(_ctx.label), 1),
15507
- _ctx.schema ? (openBlock(), createElementBlock("div", _hoisted_2$y, [
15581
+ resolvedSchema.value ? (openBlock(), createElementBlock("div", _hoisted_2$y, [
15508
15582
  (openBlock(true), createElementBlock(Fragment, null, renderList(data2.value, (_2, i2) => {
15509
15583
  return openBlock(), createElementBlock("div", {
15510
15584
  key: i2,
15511
15585
  outline: "",
15512
15586
  thin: "",
15513
- 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] }])
15514
15588
  }, [
15515
- createVNode(unref(_sfc_main$T), {
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,
15516
15591
  modelValue: data2.value[i2],
15517
15592
  "onUpdate:modelValue": [($event) => data2.value[i2] = $event, emitValue],
15518
- schema: _ctx.schema
15519
- }, null, 8, ["modelValue", "onUpdate:modelValue", "schema"]),
15520
- createElementVNode("div", _hoisted_3$t, [
15521
- props2.delete ? (openBlock(), createBlock(unref(Btn), {
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), {
15522
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,
15523
15606
  icon: "delete",
15524
15607
  class: "txt10 opacity-7",
15525
15608
  thin: "",
@@ -15527,7 +15610,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
15527
15610
  onClick: ($event) => deleteItem(i2)
15528
15611
  }, null, 8, ["onClick"])) : createCommentVNode("", true)
15529
15612
  ])
15530
- ]);
15613
+ ], 2);
15531
15614
  }), 128)),
15532
15615
  _ctx.add ? (openBlock(), createBlock(unref(Btn), {
15533
15616
  key: 0,
@@ -17808,11 +17891,13 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
17808
17891
  function getLabel(option2) {
17809
17892
  if (typeof option2 === "string") return option2;
17810
17893
  if (typeof option2 === "number") return `${option2}`;
17894
+ if (typeof option2 === "boolean") return option2 ? "Yes" : "No";
17811
17895
  return option2.label;
17812
17896
  }
17813
17897
  function getValue(option2) {
17814
17898
  if (typeof option2 === "string") return option2;
17815
17899
  if (typeof option2 === "number") return option2;
17900
+ if (typeof option2 === "boolean") return option2 ? "Yes" : "No";
17816
17901
  return option2.value;
17817
17902
  }
17818
17903
  let selectedValue = ref(props2.modelValue);
@@ -17860,7 +17945,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
17860
17945
  };
17861
17946
  }
17862
17947
  });
17863
- const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-cf892d71"]]);
17948
+ const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-68b4cdd0"]]);
17864
17949
  const _hoisted_1$w = ["dir"];
17865
17950
  const _hoisted_2$l = {
17866
17951
  key: 0,
@@ -19708,7 +19793,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
19708
19793
  options: {},
19709
19794
  placeholder: { default: "Select" },
19710
19795
  disabled: { type: Boolean },
19711
- modelValue: {},
19796
+ modelValue: { type: [String, Number, Boolean, Object] },
19712
19797
  searchable: { type: Boolean },
19713
19798
  required: { type: Boolean },
19714
19799
  label: {},
@@ -19716,7 +19801,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
19716
19801
  multiselect: { type: Boolean },
19717
19802
  icon: {},
19718
19803
  hideLabel: { type: Boolean },
19719
- defaultValue: {},
19804
+ defaultValue: { type: [String, Number, Boolean, Object] },
19720
19805
  clearable: { type: Boolean },
19721
19806
  placement: { default: "bottom-start" },
19722
19807
  searchPlaceholder: {},
@@ -19789,12 +19874,14 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
19789
19874
  if (!option2) return "";
19790
19875
  if (typeof option2 === "string") return option2;
19791
19876
  if (typeof option2 === "number") return `${option2}`;
19877
+ if (typeof option2 === "boolean") return option2 ? "Yes" : "No";
19792
19878
  return option2.label;
19793
19879
  }
19794
19880
  function getValue(option2) {
19795
19881
  if (!option2) return;
19796
19882
  if (typeof option2 === "string") return option2;
19797
19883
  if (typeof option2 === "number") return option2;
19884
+ if (typeof option2 === "boolean") return option2 ? "Yes" : "No";
19798
19885
  return option2.value;
19799
19886
  }
19800
19887
  function focusInput() {
@@ -20009,7 +20096,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
20009
20096
  };
20010
20097
  }
20011
20098
  });
20012
- const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-44384e8f"]]);
20099
+ const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-da5bc268"]]);
20013
20100
  /*!
20014
20101
  * Signature Pad v5.0.4 | https://github.com/szimek/signature_pad
20015
20102
  * (c) 2024 Szymon Nowak | Released under the MIT license
@@ -33539,7 +33626,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
33539
33626
  }
33540
33627
  });
33541
33628
  const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-2f5e271c"]]);
33542
- const _hoisted_1$j = { class: "m-0 pb-025 txt14 line-height-1 w60 menu-text" };
33629
+ const _hoisted_1$j = { class: "m-0 pb-025 txt10 line-height-1 w60 menu-text" };
33543
33630
  const _sfc_main$p = /* @__PURE__ */ defineComponent({
33544
33631
  __name: "BottomMenu",
33545
33632
  props: {
@@ -33575,7 +33662,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
33575
33662
  };
33576
33663
  }
33577
33664
  });
33578
- const BottomMenu = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-fe3a895e"]]);
33665
+ const BottomMenu = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-2227f9cc"]]);
33579
33666
  const _sfc_main$o = /* @__PURE__ */ defineComponent({
33580
33667
  __name: "Layout",
33581
33668
  props: {