@bagelink/vue 1.1.23 → 1.1.27

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/index.cjs CHANGED
@@ -21,7 +21,7 @@ const _sfc_main$1n = /* @__PURE__ */ vue.defineComponent({
21
21
  });
22
22
  const _hoisted_1$1b = ["aria-expanded", "aria-controls"];
23
23
  const _hoisted_2$T = { class: "accordion-label" };
24
- const _hoisted_3$I = ["id", "aria-hidden"];
24
+ const _hoisted_3$J = ["id", "aria-hidden"];
25
25
  const _sfc_main$1m = /* @__PURE__ */ vue.defineComponent({
26
26
  __name: "AccordionItem",
27
27
  props: {
@@ -106,7 +106,7 @@ const _sfc_main$1m = /* @__PURE__ */ vue.defineComponent({
106
106
  "aria-hidden": vue.unref(isOpen) ? "false" : "true"
107
107
  }, [
108
108
  vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
109
- ], 8, _hoisted_3$I)) : vue.createCommentVNode("", true)
109
+ ], 8, _hoisted_3$J)) : vue.createCommentVNode("", true)
110
110
  ]),
111
111
  _: 3
112
112
  })
@@ -379,7 +379,7 @@ const _sfc_main$1h = /* @__PURE__ */ vue.defineComponent({
379
379
  const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-689f051f"]]);
380
380
  const _hoisted_1$16 = ["src"];
381
381
  const _hoisted_2$R = ["autoplay", "muted", "loop", "controls", "playsinline"];
382
- const _hoisted_3$H = ["src", "type"];
382
+ const _hoisted_3$I = ["src", "type"];
383
383
  const _sfc_main$1g = /* @__PURE__ */ vue.defineComponent({
384
384
  __name: "BglVideo",
385
385
  props: {
@@ -471,7 +471,7 @@ const _sfc_main$1g = /* @__PURE__ */ vue.defineComponent({
471
471
  vue.createElementVNode("source", {
472
472
  src: _ctx.src,
473
473
  type: `video/${videoFormat.value}`
474
- }, null, 8, _hoisted_3$H)
474
+ }, null, 8, _hoisted_3$I)
475
475
  ], 12, _hoisted_2$R)) : vue.createCommentVNode("", true)
476
476
  ], 2);
477
477
  };
@@ -741,11 +741,11 @@ const DATE_TIME_STRING_PATTERN = /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$/;
741
741
  const DATE_TIME_STRING_FULL_DAY_PATTERN = /^\d{4}-\d{2}-\d{2}$/;
742
742
  const _hoisted_1$14 = ["id"];
743
743
  const _hoisted_2$P = { class: "flex txt14 flex column align-items-start gap-025 opacity-6" };
744
- const _hoisted_3$G = {
744
+ const _hoisted_3$H = {
745
745
  key: 0,
746
746
  class: "agenda__event-time flex gap-025"
747
747
  };
748
- const _hoisted_4$u = {
748
+ const _hoisted_4$t = {
749
749
  key: 1,
750
750
  class: "agenda__event-location flex gap-025"
751
751
  };
@@ -825,14 +825,14 @@ const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent({
825
825
  onClick: vue.withModifiers(handleClickOnEvent, ["prevent"])
826
826
  }, [
827
827
  vue.createElementVNode("div", _hoisted_2$P, [
828
- eventTime.value && !__props.calendarEvent.originalEvent ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$G, [
828
+ eventTime.value && !__props.calendarEvent.originalEvent ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$H, [
829
829
  vue.createVNode(vue.unref(_sfc_main$s), {
830
830
  icon: icons.clock,
831
831
  size: 0.8
832
832
  }, null, 8, ["icon"]),
833
833
  vue.createTextVNode(" " + vue.toDisplayString(eventTime.value), 1)
834
834
  ])) : vue.createCommentVNode("", true),
835
- __props.calendarEvent.location ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$u, [
835
+ __props.calendarEvent.location ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$t, [
836
836
  vue.createVNode(vue.unref(_sfc_main$s), {
837
837
  icon: icons.location,
838
838
  size: 1
@@ -856,8 +856,8 @@ const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent({
856
856
  const AgendaEventTile = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__scopeId", "data-v-d63dd40c"]]);
857
857
  const _hoisted_1$13 = { class: "agenda__wrapper grid align-items-start gap-1 h-100p" };
858
858
  const _hoisted_2$O = { class: "m_sticky" };
859
- const _hoisted_3$F = { class: "agenda__header-day-name txt-center" };
860
- const _hoisted_4$t = { class: "agenda__header-date flex justify-content-center rounded p-025 txt24 line-height-04" };
859
+ const _hoisted_3$G = { class: "agenda__header-day-name txt-center" };
860
+ const _hoisted_4$s = { class: "agenda__header-date flex justify-content-center rounded p-025 txt24 line-height-04" };
861
861
  const _hoisted_5$p = { class: "agenda__content flex column w-100p h-100p min-h-100px pt-05 border-start ps-1 m_pt-0 min-h-50px" };
862
862
  const _hoisted_6$l = {
863
863
  key: 0,
@@ -889,8 +889,8 @@ const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
889
889
  return (_ctx, _cache) => {
890
890
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$13, [
891
891
  vue.createElementVNode("header", _hoisted_2$O, [
892
- vue.createElementVNode("div", _hoisted_3$F, vue.toDisplayString(__props.day.dayName.slice(0, 3)), 1),
893
- vue.createElementVNode("div", _hoisted_4$t, vue.toDisplayString(__props.day.dateTimeString.substring(8, 10)), 1)
892
+ vue.createElementVNode("div", _hoisted_3$G, vue.toDisplayString(__props.day.dayName.slice(0, 3)), 1),
893
+ vue.createElementVNode("div", _hoisted_4$s, vue.toDisplayString(__props.day.dateTimeString.substring(8, 10)), 1)
894
894
  ]),
895
895
  vue.createElementVNode("div", _hoisted_5$p, [
896
896
  __props.day.events.length === 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$l, vue.toDisplayString(vue.unref(getLanguage)(vue.unref(languageKeys).noEvent, __props.time.CALENDAR_LOCALE)), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$g, [
@@ -1590,11 +1590,11 @@ const _hoisted_1$12 = {
1590
1590
  class: "event-flyout__relative-wrapper"
1591
1591
  };
1592
1592
  const _hoisted_2$N = { class: "event-flyout__menu" };
1593
- const _hoisted_3$E = {
1593
+ const _hoisted_3$F = {
1594
1594
  key: 0,
1595
1595
  class: "event-flyout__menu-editable"
1596
1596
  };
1597
- const _hoisted_4$s = { class: "event-flyout__menu-close" };
1597
+ const _hoisted_4$r = { class: "event-flyout__menu-close" };
1598
1598
  const _hoisted_5$o = {
1599
1599
  key: 0,
1600
1600
  class: "event-flyout__info-wrapper"
@@ -1798,7 +1798,7 @@ const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
1798
1798
  }, [
1799
1799
  !__props.config.eventDialog || !__props.config.eventDialog.isCustom ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$12, [
1800
1800
  vue.createElementVNode("div", _hoisted_2$N, [
1801
- isEditable.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$E, [
1801
+ isEditable.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$F, [
1802
1802
  vue.createVNode(vue.unref(_sfc_main$s), {
1803
1803
  class: "event-flyout__menu-item is-edit-icon",
1804
1804
  icon: icons.edit,
@@ -1810,7 +1810,7 @@ const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
1810
1810
  onClick: deleteEvent
1811
1811
  }, null, 8, ["icon"])
1812
1812
  ])) : vue.createCommentVNode("", true),
1813
- vue.createElementVNode("span", _hoisted_4$s, [
1813
+ vue.createElementVNode("span", _hoisted_4$r, [
1814
1814
  vue.createVNode(vue.unref(_sfc_main$s), {
1815
1815
  class: "event-flyout__menu-item is-times-icon",
1816
1816
  icon: icons.times,
@@ -1868,8 +1868,8 @@ const _hoisted_1$11 = {
1868
1868
  class: "calendar-month__event"
1869
1869
  };
1870
1870
  const _hoisted_2$M = ["id", "draggable"];
1871
- const _hoisted_3$D = ["id", "draggable"];
1872
- const _hoisted_4$r = {
1871
+ const _hoisted_3$E = ["id", "draggable"];
1872
+ const _hoisted_4$q = {
1873
1873
  key: 0,
1874
1874
  class: "calendar-month__event-time opacity-6 flex-shrink-0"
1875
1875
  };
@@ -1976,9 +1976,9 @@ const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
1976
1976
  onClick: handleClickOnEvent
1977
1977
  }, [
1978
1978
  _cache[0] || (_cache[0] = vue.createElementVNode("span", { class: "calendar-month__event-color round flex-shrink-0" }, null, -1)),
1979
- eventTimeStart.value && !__props.calendarEvent.originalEvent ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$r, vue.toDisplayString(eventTimeStart.value), 1)) : vue.createCommentVNode("", true),
1979
+ eventTimeStart.value && !__props.calendarEvent.originalEvent ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$q, vue.toDisplayString(eventTimeStart.value), 1)) : vue.createCommentVNode("", true),
1980
1980
  vue.createElementVNode("span", _hoisted_5$n, vue.toDisplayString(__props.calendarEvent.title), 1)
1981
- ], 42, _hoisted_3$D))
1981
+ ], 42, _hoisted_3$E))
1982
1982
  ], 64));
1983
1983
  };
1984
1984
  }
@@ -1986,8 +1986,8 @@ const _sfc_main$1b = /* @__PURE__ */ vue.defineComponent({
1986
1986
  const Event = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-16d8079e"]]);
1987
1987
  const _hoisted_1$10 = ["id"];
1988
1988
  const _hoisted_2$L = { class: "w-100p flex justify-content-end txt14 p-025 m_h-100p" };
1989
- const _hoisted_3$C = { class: "calendar-month_events" };
1990
- const _hoisted_4$q = {
1989
+ const _hoisted_3$D = { class: "calendar-month_events" };
1990
+ const _hoisted_4$p = {
1991
1991
  key: 1,
1992
1992
  class: "space-reserver"
1993
1993
  };
@@ -2094,7 +2094,7 @@ const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
2094
2094
  onClick: emitDayWasClicked
2095
2095
  }, vue.toDisplayString(__props.day.dateTimeString.substring(8, 10).startsWith("0") ? __props.day.dateTimeString.substring(9, 10) : __props.day.dateTimeString.substring(8, 10)), 1)
2096
2096
  ]),
2097
- vue.createElementVNode("div", _hoisted_3$C, [
2097
+ vue.createElementVNode("div", _hoisted_3$D, [
2098
2098
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.day.events, (calendarEvent, index2) => {
2099
2099
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index2 }, [
2100
2100
  index2 < 3 ? (vue.openBlock(), vue.createBlock(Event, {
@@ -2121,7 +2121,7 @@ const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
2121
2121
  }, vue.toDisplayString(vue.unref(getLanguage)(vue.unref(languageKeys).moreEvents, __props.time.CALENDAR_LOCALE)), 1)) : vue.createCommentVNode("", true)
2122
2122
  ])
2123
2123
  ], true)
2124
- ], 42, _hoisted_1$10)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$q));
2124
+ ], 42, _hoisted_1$10)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$p));
2125
2125
  };
2126
2126
  }
2127
2127
  });
@@ -2140,8 +2140,8 @@ const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
2140
2140
  });
2141
2141
  const _hoisted_1$_ = { class: "calendar-month relative column w-100p h-100p overflow-y flex flex-stretch" };
2142
2142
  const _hoisted_2$K = { class: "flex space-between" };
2143
- const _hoisted_3$B = { class: "calendar-month__weeks h-100p flex-grow flex flex-stretch column space-between" };
2144
- const _hoisted_4$p = {
2143
+ const _hoisted_3$C = { class: "calendar-month__weeks h-100p flex-grow flex flex-stretch column space-between" };
2144
+ const _hoisted_4$o = {
2145
2145
  key: 0,
2146
2146
  class: "calendar-month__day_events w-100p pt-1 m_pb-1"
2147
2147
  };
@@ -2259,7 +2259,7 @@ const _sfc_main$18 = /* @__PURE__ */ vue.defineComponent({
2259
2259
  }, null, 8, ["config", "day", "time"]);
2260
2260
  }), 128))
2261
2261
  ]),
2262
- vue.createElementVNode("div", _hoisted_3$B, [
2262
+ vue.createElementVNode("div", _hoisted_3$C, [
2263
2263
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(month.value, (week, weekIndex) => {
2264
2264
  return vue.openBlock(), vue.createElementBlock("div", {
2265
2265
  key: weekIndex,
@@ -2290,7 +2290,7 @@ const _sfc_main$18 = /* @__PURE__ */ vue.defineComponent({
2290
2290
  ]);
2291
2291
  }), 128))
2292
2292
  ]),
2293
- !(((_a = __props.config.month) == null ? void 0 : _a.showEventsOnMobileView) === false) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$p, [
2293
+ !(((_a = __props.config.month) == null ? void 0 : _a.showEventsOnMobileView) === false) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$o, [
2294
2294
  selectedDay.value ? (vue.openBlock(), vue.createBlock(AgendaEvents, {
2295
2295
  key: 0,
2296
2296
  config: __props.config,
@@ -2526,8 +2526,8 @@ class EventChange {
2526
2526
  }
2527
2527
  const _hoisted_1$Z = ["data-ref"];
2528
2528
  const _hoisted_2$J = { class: "calendar-week__event-row is-title" };
2529
- const _hoisted_3$A = { class: "calendar-week__event-row is-time flex" };
2530
- const _hoisted_4$o = {
2529
+ const _hoisted_3$B = { class: "calendar-week__event-row is-time flex" };
2530
+ const _hoisted_4$n = {
2531
2531
  key: 0,
2532
2532
  class: "calendar-week__event-row is-location"
2533
2533
  };
@@ -2887,14 +2887,14 @@ const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent({
2887
2887
  })
2888
2888
  }, [
2889
2889
  vue.createElementVNode("div", _hoisted_2$J, vue.toDisplayString(event.value.title), 1),
2890
- vue.createElementVNode("div", _hoisted_3$A, [
2890
+ vue.createElementVNode("div", _hoisted_3$B, [
2891
2891
  vue.createVNode(vue.unref(_sfc_main$s), {
2892
2892
  icon: icons.value.clock,
2893
2893
  class: "calendar-week__event-icon"
2894
2894
  }, null, 8, ["icon"]),
2895
2895
  vue.createElementVNode("span", null, vue.toDisplayString(getEventTime.value), 1)
2896
2896
  ]),
2897
- event.value.location ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$o, [
2897
+ event.value.location ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$n, [
2898
2898
  vue.createVNode(vue.unref(_sfc_main$s), {
2899
2899
  icon: icons.value.location,
2900
2900
  class: "calendar-week__event-icon"
@@ -3219,8 +3219,8 @@ const _hoisted_1$V = {
3219
3219
  style: { "margin-inline-end": "0.5em" }
3220
3220
  };
3221
3221
  const _hoisted_2$G = ["onClick"];
3222
- const _hoisted_3$z = { class: "flex justify-content-center gap-025 txt12 pb-025" };
3223
- const _hoisted_4$n = { class: "" };
3222
+ const _hoisted_3$A = { class: "flex justify-content-center gap-025 txt12 pb-025" };
3223
+ const _hoisted_4$m = { class: "" };
3224
3224
  const _hoisted_5$l = { class: "week-timeline__date txt14 round inline-flex justify-content-center" };
3225
3225
  const _hoisted_6$i = { class: "week-timeline__events" };
3226
3226
  const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
@@ -3253,8 +3253,8 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
3253
3253
  }]),
3254
3254
  onClick: ($event) => emit2("dayWasClicked", _ctx.time.dateStringFrom(day.dateTimeString))
3255
3255
  }, [
3256
- vue.createElementVNode("div", _hoisted_3$z, [
3257
- vue.createElementVNode("div", _hoisted_4$n, vue.toDisplayString(day.dayName.charAt(0).toUpperCase() + day.dayName.slice(1, 3).toLowerCase()), 1),
3256
+ vue.createElementVNode("div", _hoisted_3$A, [
3257
+ vue.createElementVNode("div", _hoisted_4$m, vue.toDisplayString(day.dayName.charAt(0).toUpperCase() + day.dayName.slice(1, 3).toLowerCase()), 1),
3258
3258
  vue.createElementVNode("div", _hoisted_5$l, vue.toDisplayString(getDaysDate(day)), 1)
3259
3259
  ]),
3260
3260
  vue.createElementVNode("div", _hoisted_6$i, [
@@ -3279,7 +3279,7 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
3279
3279
  const WeekTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-9aaa9a54"]]);
3280
3280
  const _hoisted_1$U = { class: "calendar-week__wrapper relative ps-3-5" };
3281
3281
  const _hoisted_2$F = { class: "calendar-week" };
3282
- const _hoisted_3$y = { class: "calendar-week__events" };
3282
+ const _hoisted_3$z = { class: "calendar-week__events" };
3283
3283
  const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
3284
3284
  __name: "Week",
3285
3285
  props: {
@@ -3545,7 +3545,7 @@ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
3545
3545
  "day-intervals": dayIntervals.value,
3546
3546
  "week-height": weekHeight.value
3547
3547
  }, null, 8, ["time", "day-intervals", "week-height"])),
3548
- vue.createElementVNode("div", _hoisted_3$y, [
3548
+ vue.createElementVNode("div", _hoisted_3$z, [
3549
3549
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(days.value, (day, dayIndex) => {
3550
3550
  return vue.openBlock(), vue.createBlock(Day, {
3551
3551
  key: day.dateTimeString + mode.value + weekVersion.value,
@@ -3629,7 +3629,7 @@ ${_Errors.SUFFIX}`);
3629
3629
  let Errors = _Errors;
3630
3630
  const _hoisted_1$T = { class: "calendar-root-wrapper txt16" };
3631
3631
  const _hoisted_2$E = ["data-lang"];
3632
- const _hoisted_3$x = {
3632
+ const _hoisted_3$y = {
3633
3633
  key: 0,
3634
3634
  class: "top-bar-loader"
3635
3635
  };
@@ -3821,7 +3821,7 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
3821
3821
  }, [
3822
3822
  vue.createVNode(vue.Transition, { name: "loading" }, {
3823
3823
  default: vue.withCtx(() => [
3824
- __props.isLoading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$x)) : vue.createCommentVNode("", true)
3824
+ __props.isLoading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$y)) : vue.createCommentVNode("", true)
3825
3825
  ]),
3826
3826
  _: 1
3827
3827
  }),
@@ -3959,8 +3959,7 @@ const _hoisted_2$D = {
3959
3959
  key: 0,
3960
3960
  class: "dots"
3961
3961
  };
3962
- const _hoisted_3$w = ["onClick"];
3963
- const _hoisted_4$m = { class: "Handlers" };
3962
+ const _hoisted_3$x = ["onClick"];
3964
3963
  const GAP_PERCENT = 1;
3965
3964
  const VELOCITY_SAMPLE_DURATION = 100;
3966
3965
  const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
@@ -4067,12 +4066,14 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
4067
4066
  function next() {
4068
4067
  if (!isSliderAvailable.value) return;
4069
4068
  countSlides();
4070
- goToSlide((activeSlideIndex.value + 1) % slideCount.value);
4069
+ const nextIndex = props2.rtl ? (activeSlideIndex.value - 1 + slideCount.value) % slideCount.value : (activeSlideIndex.value + 1) % slideCount.value;
4070
+ goToSlide(nextIndex);
4071
4071
  }
4072
4072
  function prev() {
4073
4073
  if (!isSliderAvailable.value) return;
4074
4074
  countSlides();
4075
- goToSlide((activeSlideIndex.value - 1 + slideCount.value) % slideCount.value);
4075
+ const prevIndex = props2.rtl ? (activeSlideIndex.value + 1) % slideCount.value : (activeSlideIndex.value - 1 + slideCount.value) % slideCount.value;
4076
+ goToSlide(prevIndex);
4076
4077
  }
4077
4078
  function calcHeight() {
4078
4079
  if (!isSliderAvailable.value || !bglSlider.value) return;
@@ -4154,7 +4155,7 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
4154
4155
  const distance = x2 - startX.value;
4155
4156
  if (Math.abs(distance) > THRESHOLDS.DRAG) isDragging.value = true;
4156
4157
  if (isDragging.value) {
4157
- const newTranslate = translateX2.value + distance;
4158
+ const newTranslate = translateX2.value + (props2.rtl ? -distance : distance);
4158
4159
  const maxTranslate = 0;
4159
4160
  const containerWidth = bglSlider.value.offsetWidth;
4160
4161
  const gapWidth = containerWidth * GAP_PERCENT / 100;
@@ -4177,8 +4178,8 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
4177
4178
  const dragPercentage = Math.abs(totalDragDistance) / singleItemWidth;
4178
4179
  let targetPanel = currentPanel;
4179
4180
  if (dragPercentage > THRESHOLDS.SWIPE_PERCENT) {
4180
- const direction = totalDragDistance > 0 ? -1 : 1;
4181
- targetPanel = Math.floor(currentPanel) + (direction < 0 ? 0 : 1);
4181
+ const distnace = totalDragDistance > 0 ? -1 : 1;
4182
+ targetPanel = Math.floor(currentPanel) + (distnace < 0 ? 0 : 1);
4182
4183
  } else {
4183
4184
  targetPanel = Math.round(currentPanel);
4184
4185
  }
@@ -4323,7 +4324,7 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
4323
4324
  if (!isHorizontal) return;
4324
4325
  clearAutoplay();
4325
4326
  if (wheelTimeout) clearTimeout(wheelTimeout);
4326
- accumulatedDeltaX.value += e.deltaX;
4327
+ accumulatedDeltaX.value += props2.rtl ? -e.deltaX : e.deltaX;
4327
4328
  wheelTimeout = setTimeout(() => {
4328
4329
  accumulatedDeltaX.value = 0;
4329
4330
  }, 50);
@@ -4370,15 +4371,14 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
4370
4371
  vue.watch(() => activeSlideIndex.value, handleSlideChange);
4371
4372
  return (_ctx, _cache) => {
4372
4373
  return vue.openBlock(), vue.createElementBlock("div", {
4373
- class: vue.normalizeClass(["BglCarousel", { autoHeight: __props.autoHeight }]),
4374
- style: vue.normalizeStyle({ height: vue.unref(yHeight) }),
4374
+ class: "BglCarousel",
4375
4375
  dir: __props.rtl ? "rtl" : "ltr"
4376
4376
  }, [
4377
4377
  vue.createElementVNode("div", {
4378
4378
  ref_key: "bglSlider",
4379
4379
  ref: bglSlider,
4380
- class: vue.normalizeClass(["bgl-slider", { dragging: vue.unref(isDragging), clicking: vue.unref(isPressed), [`slides-${vue.unref(itemCount)}`]: true, grab: __props.freeDrag && vue.unref(slideCount) > 1 }]),
4381
- style: vue.normalizeStyle({ "--item-count": vue.unref(itemCount) }),
4380
+ class: vue.normalizeClass(["bgl-slider", { dragging: vue.unref(isDragging), clicking: vue.unref(isPressed), [`slides-${vue.unref(itemCount)}`]: true, grab: __props.freeDrag && vue.unref(slideCount) > 1, autoHeight: __props.autoHeight }]),
4381
+ style: vue.normalizeStyle({ "--item-count": vue.unref(itemCount), "height": vue.unref(yHeight) }),
4382
4382
  onMousedown: startDrag,
4383
4383
  onMouseover: clearAutoplay,
4384
4384
  onFocusin: clearAutoplay,
@@ -4395,28 +4395,36 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
4395
4395
  key: i2,
4396
4396
  class: vue.normalizeClass(["dot", { current: vue.unref(activeSlideIndex) === i2 - 1 }]),
4397
4397
  onClick: ($event) => goToSlide(i2 - 1)
4398
- }, null, 10, _hoisted_3$w);
4398
+ }, null, 10, _hoisted_3$x);
4399
4399
  }), 128))
4400
4400
  ])) : vue.createCommentVNode("", true),
4401
- vue.createElementVNode("div", _hoisted_4$m, [
4402
- vue.createElementVNode("span", { onClick: prev }, [
4401
+ vue.createElementVNode("div", {
4402
+ class: vue.normalizeClass(["navigation-buttons", { rtl: __props.rtl }])
4403
+ }, [
4404
+ vue.createElementVNode("span", {
4405
+ class: "prev",
4406
+ onClick: prev
4407
+ }, [
4403
4408
  vue.renderSlot(_ctx.$slots, "prev", {
4404
4409
  index: vue.unref(activeSlideIndex),
4405
4410
  prev
4406
4411
  }, void 0, true)
4407
4412
  ]),
4408
- vue.createElementVNode("span", { onClick: next }, [
4413
+ vue.createElementVNode("span", {
4414
+ class: "next",
4415
+ onClick: next
4416
+ }, [
4409
4417
  vue.renderSlot(_ctx.$slots, "next", {
4410
4418
  index: vue.unref(activeSlideIndex),
4411
4419
  next
4412
4420
  }, void 0, true)
4413
4421
  ])
4414
- ])
4415
- ], 14, _hoisted_1$R);
4422
+ ], 2)
4423
+ ], 8, _hoisted_1$R);
4416
4424
  };
4417
4425
  }
4418
4426
  });
4419
- const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-31632a3b"]]);
4427
+ const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-c2b21a75"]]);
4420
4428
  function _isPlaceholder(a2) {
4421
4429
  return a2 != null && typeof a2 === "object" && a2["@@functional/placeholder"] === true;
4422
4430
  }
@@ -10250,7 +10258,7 @@ const _hoisted_1$1$1 = {
10250
10258
  style: { display: "flex", position: "relative" }
10251
10259
  };
10252
10260
  const _hoisted_2$1$1 = ["width", "height", "viewBox"];
10253
- const _hoisted_3$v = { class: "layer-rectangles" };
10261
+ const _hoisted_3$w = { class: "layer-rectangles" };
10254
10262
  const _hoisted_4$l = ["transform", "onMouseover"];
10255
10263
  const _hoisted_5$k = ["width", "height"];
10256
10264
  const _hoisted_6$h = {
@@ -10268,7 +10276,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
10268
10276
  viewBox: `0 0 ${_ctx.size.width} ${_ctx.size.height}`,
10269
10277
  ref: "el"
10270
10278
  }, [
10271
- vue.createElementVNode("g", _hoisted_3$v, [
10279
+ vue.createElementVNode("g", _hoisted_3$w, [
10272
10280
  (vue.openBlock(true), vue.createElementBlock(
10273
10281
  vue.Fragment,
10274
10282
  null,
@@ -11701,7 +11709,7 @@ const _hoisted_2$A = {
11701
11709
  key: 1,
11702
11710
  class: "flex-center h-300px txt-red"
11703
11711
  };
11704
- const _hoisted_3$u = { class: "infinite-wrapper" };
11712
+ const _hoisted_3$v = { class: "infinite-wrapper" };
11705
11713
  const _hoisted_4$k = { class: "row first-row" };
11706
11714
  const _hoisted_5$j = { key: 0 };
11707
11715
  const _hoisted_6$g = ["onClick"];
@@ -11835,7 +11843,7 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
11835
11843
  vue.createElementVNode("div", vue.mergeProps(vue.unref(wrapperProps), {
11836
11844
  class: { "pointer-events-none": showLoading.value }
11837
11845
  }), [
11838
- vue.createElementVNode("table", _hoisted_3$u, [
11846
+ vue.createElementVNode("table", _hoisted_3$v, [
11839
11847
  vue.createElementVNode("thead", _hoisted_4$k, [
11840
11848
  vue.unref(isSelectable) ? (vue.openBlock(), vue.createElementBlock("th", _hoisted_5$j, [
11841
11849
  vue.createElementVNode("input", {
@@ -15028,6 +15036,7 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
15028
15036
  outline: { type: Boolean },
15029
15037
  round: { type: Boolean },
15030
15038
  placement: { default: "bottom-start" },
15039
+ disablePlacement: { type: Boolean, default: false },
15031
15040
  noAutoFocus: { type: Boolean },
15032
15041
  autoHide: { type: Boolean, default: true },
15033
15042
  triggers: { default: () => ["click"] }
@@ -15053,6 +15062,10 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
15053
15062
  (_a = triggerRef.value) == null ? void 0 : _a.focus();
15054
15063
  (_b = ddownRef.value) == null ? void 0 : _b.hide();
15055
15064
  }
15065
+ const { isMobile } = useDevice();
15066
+ const shouldDisablePositioning = vue.computed(() => {
15067
+ return __props.disablePlacement && isMobile;
15068
+ });
15056
15069
  __expose({ show, hide, shown });
15057
15070
  return (_ctx, _cache) => {
15058
15071
  return vue.openBlock(), vue.createBlock(vue.unref(kt), {
@@ -15062,6 +15075,7 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
15062
15075
  "onUpdate:shown": _cache[0] || (_cache[0] = ($event) => shown.value = $event),
15063
15076
  disabled: _ctx.disabled,
15064
15077
  noAutoFocus: _ctx.noAutoFocus,
15078
+ "positioning-disabled": shouldDisablePositioning.value,
15065
15079
  placement: _ctx.placement,
15066
15080
  autoHide: _ctx.autoHide,
15067
15081
  triggers: _ctx.triggers,
@@ -15094,7 +15108,7 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
15094
15108
  ])
15095
15109
  ]),
15096
15110
  _: 3
15097
- }, 8, ["shown", "disabled", "noAutoFocus", "placement", "autoHide", "triggers"]);
15111
+ }, 8, ["shown", "disabled", "noAutoFocus", "positioning-disabled", "placement", "autoHide", "triggers"]);
15098
15112
  };
15099
15113
  }
15100
15114
  });
@@ -15751,7 +15765,7 @@ const _hoisted_1$L = {
15751
15765
  class: "label mb-05"
15752
15766
  };
15753
15767
  const _hoisted_2$y = { class: "ps-025 border-start mb-05" };
15754
- const _hoisted_3$t = {
15768
+ const _hoisted_3$u = {
15755
15769
  key: 0,
15756
15770
  class: "flex-center h-300px"
15757
15771
  };
@@ -15876,7 +15890,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
15876
15890
  }, [
15877
15891
  _ctx.label ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_1$L, vue.toDisplayString(_ctx.label), 1)) : vue.createCommentVNode("", true),
15878
15892
  vue.createElementVNode("div", _hoisted_2$y, [
15879
- schemaState.value !== "loaded" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$t, [
15893
+ schemaState.value !== "loaded" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$u, [
15880
15894
  schemaState.value === "loading" ? (vue.openBlock(), vue.createBlock(vue.unref(Loading), { key: 0 })) : schemaState.value === "error" ? (vue.openBlock(), vue.createBlock(_component_Icon, {
15881
15895
  key: 1,
15882
15896
  icon: "error",
@@ -15963,7 +15977,7 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
15963
15977
  const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-73f1d9ad"]]);
15964
15978
  const _hoisted_1$J = ["title"];
15965
15979
  const _hoisted_2$x = ["id", "value", "required"];
15966
- const _hoisted_3$s = ["for"];
15980
+ const _hoisted_3$t = ["for"];
15967
15981
  const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
15968
15982
  __name: "CheckInput",
15969
15983
  props: /* @__PURE__ */ vue.mergeModels({
@@ -16004,7 +16018,7 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
16004
16018
  vue.renderSlot(_ctx.$slots, "label", {}, () => [
16005
16019
  vue.createTextVNode(vue.toDisplayString(_ctx.label), 1)
16006
16020
  ], true)
16007
- ], 8, _hoisted_3$s)
16021
+ ], 8, _hoisted_3$t)
16008
16022
  ], 10, _hoisted_1$J);
16009
16023
  };
16010
16024
  }
@@ -16015,7 +16029,7 @@ const _hoisted_2$w = {
16015
16029
  key: 0,
16016
16030
  class: "label txt-start"
16017
16031
  };
16018
- const _hoisted_3$r = {
16032
+ const _hoisted_3$s = {
16019
16033
  key: 1,
16020
16034
  class: "code-editor-wrap grid rounded p-1 overflow hm-300px ltr txt-start relative h-100p"
16021
16035
  };
@@ -16106,7 +16120,7 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
16106
16120
  return (_ctx, _cache) => {
16107
16121
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$I, [
16108
16122
  _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$w, vue.toDisplayString(_ctx.label), 1)) : vue.createCommentVNode("", true),
16109
- vue.unref(loaded) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$r, [
16123
+ vue.unref(loaded) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$s, [
16110
16124
  vue.createElementVNode("div", {
16111
16125
  class: "relative block h-100",
16112
16126
  style: vue.normalizeStyle({ height: `calc(${vue.unref(elHeight)} - 2rem)` })
@@ -16143,7 +16157,7 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
16143
16157
  const CodeEditor = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-1fbc9b61"]]);
16144
16158
  const _hoisted_1$H = ["title"];
16145
16159
  const _hoisted_2$v = { class: "flex bg-input rounded px-025 colorInputPickWrap" };
16146
- const _hoisted_3$q = ["id", "placeholder", "required"];
16160
+ const _hoisted_3$r = ["id", "placeholder", "required"];
16147
16161
  const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
16148
16162
  __name: "ColorInput",
16149
16163
  props: {
@@ -16182,7 +16196,7 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
16182
16196
  type: "color",
16183
16197
  placeholder: _ctx.placeholder || _ctx.label,
16184
16198
  required: _ctx.required
16185
- }, _ctx.nativeInputAttrs), null, 16, _hoisted_3$q), [
16199
+ }, _ctx.nativeInputAttrs), null, 16, _hoisted_3$r), [
16186
16200
  [vue.vModelText, inputVal.value]
16187
16201
  ]),
16188
16202
  vue.withDirectives(vue.createElementVNode("input", {
@@ -16210,7 +16224,7 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
16210
16224
  });
16211
16225
  const _hoisted_1$G = ["title"];
16212
16226
  const _hoisted_2$u = { key: 0 };
16213
- const _hoisted_3$p = {
16227
+ const _hoisted_3$q = {
16214
16228
  key: 0,
16215
16229
  class: "required"
16216
16230
  };
@@ -16550,7 +16564,7 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
16550
16564
  }, [
16551
16565
  _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$u, [
16552
16566
  vue.createTextVNode(vue.toDisplayString(_ctx.label) + " ", 1),
16553
- _ctx.required ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$p, "*")) : vue.createCommentVNode("", true)
16567
+ _ctx.required ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$q, "*")) : vue.createCommentVNode("", true)
16554
16568
  ])) : vue.createCommentVNode("", true),
16555
16569
  vue.createVNode(vue.unref(_sfc_main$W), {
16556
16570
  shown: isOpen.value,
@@ -16736,7 +16750,7 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
16736
16750
  const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-7d6fb8a5"]]);
16737
16751
  const _hoisted_1$F = ["title"];
16738
16752
  const _hoisted_2$t = { key: 0 };
16739
- const _hoisted_3$o = {
16753
+ const _hoisted_3$p = {
16740
16754
  key: 0,
16741
16755
  class: "required"
16742
16756
  };
@@ -16943,7 +16957,7 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
16943
16957
  }, [
16944
16958
  _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$t, [
16945
16959
  vue.createTextVNode(vue.toDisplayString(_ctx.label) + " ", 1),
16946
- _ctx.required ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$o, "*")) : vue.createCommentVNode("", true)
16960
+ _ctx.required ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$p, "*")) : vue.createCommentVNode("", true)
16947
16961
  ])) : vue.createCommentVNode("", true),
16948
16962
  vue.createVNode(vue.unref(_sfc_main$W), {
16949
16963
  shown: vue.unref(isOpen),
@@ -17116,7 +17130,7 @@ const _hoisted_2$s = {
17116
17130
  key: 0,
17117
17131
  class: "time-wrap"
17118
17132
  };
17119
- const _hoisted_3$n = ["id", "name", "value"];
17133
+ const _hoisted_3$o = ["id", "name", "value"];
17120
17134
  const _hoisted_4$f = ["for"];
17121
17135
  const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
17122
17136
  __name: "DatePicker",
@@ -17148,7 +17162,7 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
17148
17162
  type: "radio",
17149
17163
  name: _ctx.label,
17150
17164
  value: hr
17151
- }, null, 8, _hoisted_3$n), [
17165
+ }, null, 8, _hoisted_3$o), [
17152
17166
  [vue.vModelRadio, selectedHour.value]
17153
17167
  ]),
17154
17168
  vue.createElementVNode("label", {
@@ -17169,7 +17183,7 @@ const _hoisted_2$r = {
17169
17183
  required: "",
17170
17184
  class: "pixel"
17171
17185
  };
17172
- const _hoisted_3$m = { class: "m-05 flex opacity-7 z-99" };
17186
+ const _hoisted_3$n = { class: "m-05 flex opacity-7 z-99" };
17173
17187
  const _hoisted_4$e = { class: "ellipsis-1 word-break-all h-20 m-0 color-black" };
17174
17188
  const _hoisted_5$e = { class: "flex gap-025 rounded pe-1 ps-05 py-025 bg-gray-80 -my-1" };
17175
17189
  const _hoisted_6$b = { class: "ellipsis-1 word-break-all h-20 m-0 color-black txt16" };
@@ -17401,7 +17415,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
17401
17415
  key: file.id,
17402
17416
  class: "txt-gray txt-12 flex"
17403
17417
  }, [
17404
- vue.createElementVNode("div", _hoisted_3$m, [
17418
+ vue.createElementVNode("div", _hoisted_3$n, [
17405
17419
  vue.withDirectives(vue.createVNode(vue.unref(Btn), {
17406
17420
  color: "gray",
17407
17421
  thin: "",
@@ -17637,7 +17651,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
17637
17651
  const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-50fd0597"]]);
17638
17652
  const _hoisted_1$C = ["title"];
17639
17653
  const _hoisted_2$q = { key: 0 };
17640
- const _hoisted_3$l = ["value", "placeholder"];
17654
+ const _hoisted_3$m = ["value", "placeholder"];
17641
17655
  const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
17642
17656
  __name: "JSONInput",
17643
17657
  props: {
@@ -17669,7 +17683,7 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
17669
17683
  class: vue.normalizeClass({ "no-edit": !_ctx.editMode }),
17670
17684
  placeholder: _ctx.placeholder,
17671
17685
  onInput: handleInput
17672
- }, null, 42, _hoisted_3$l)
17686
+ }, null, 42, _hoisted_3$m)
17673
17687
  ], 10, _hoisted_1$C);
17674
17688
  };
17675
17689
  }
@@ -17680,7 +17694,7 @@ const _hoisted_2$p = {
17680
17694
  key: 0,
17681
17695
  class: "block"
17682
17696
  };
17683
- const _hoisted_3$k = ["id", "placeholder", "disabled", "required", "readonly", "pattern", "onKeydown"];
17697
+ const _hoisted_3$l = ["id", "placeholder", "disabled", "required", "readonly", "pattern", "onKeydown"];
17684
17698
  const _hoisted_4$d = {
17685
17699
  key: 1,
17686
17700
  class: "opacity-7 light"
@@ -17829,7 +17843,7 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
17829
17843
  vue.withKeys(vue.withModifiers(increment, ["prevent"]), ["up"]),
17830
17844
  vue.withKeys(vue.withModifiers(decrement, ["prevent"]), ["down"])
17831
17845
  ]
17832
- }, null, 42, _hoisted_3$k), [
17846
+ }, null, 42, _hoisted_3$l), [
17833
17847
  [
17834
17848
  vue.vModelText,
17835
17849
  vue.unref(formattedValue),
@@ -22539,7 +22553,7 @@ function parsePhoneNumber() {
22539
22553
  }
22540
22554
  const _hoisted_1$y = ["aria-expanded"];
22541
22555
  const _hoisted_2$n = { class: "flex gap-05 country-code-display" };
22542
- const _hoisted_3$j = { class: "p-075 tel-countryp-dropdown" };
22556
+ const _hoisted_3$k = { class: "p-075 tel-countryp-dropdown" };
22543
22557
  const _hoisted_4$c = {
22544
22558
  class: "overflow-y p-0 max-h-300px",
22545
22559
  role: "listbox"
@@ -22745,7 +22759,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
22745
22759
  ])
22746
22760
  ]),
22747
22761
  default: vue.withCtx(() => [
22748
- vue.createElementVNode("div", _hoisted_3$j, [
22762
+ vue.createElementVNode("div", _hoisted_3$k, [
22749
22763
  searchable.value ? (vue.openBlock(), vue.createBlock(vue.unref(TextInput), {
22750
22764
  key: 0,
22751
22765
  ref_key: "searchInput",
@@ -22814,7 +22828,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
22814
22828
  const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-ea318aee"]]);
22815
22829
  const _hoisted_1$x = ["for"];
22816
22830
  const _hoisted_2$m = ["id", "disabled", "name", "value", "required"];
22817
- const _hoisted_3$i = { class: "flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025" };
22831
+ const _hoisted_3$j = { class: "flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025" };
22818
22832
  const _hoisted_4$b = ["src", "alt"];
22819
22833
  const _hoisted_5$b = { class: "" };
22820
22834
  const _hoisted_6$9 = {
@@ -22886,7 +22900,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
22886
22900
  }, null, 40, _hoisted_2$m), [
22887
22901
  [vue.vModelRadio, selectedOption.value]
22888
22902
  ]),
22889
- vue.createElementVNode("div", _hoisted_3$i, [
22903
+ vue.createElementVNode("div", _hoisted_3$j, [
22890
22904
  opt.imgSrc ? (vue.openBlock(), vue.createElementBlock("img", {
22891
22905
  key: 0,
22892
22906
  class: "bg-popup shadow-light py-025 radius-05 m_w40",
@@ -22917,7 +22931,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
22917
22931
  const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-a692c596"]]);
22918
22932
  const _hoisted_1$w = { class: "bagel-input" };
22919
22933
  const _hoisted_2$l = { class: "pb-025" };
22920
- const _hoisted_3$h = { class: "flex gap-05 flex-wrap" };
22934
+ const _hoisted_3$i = { class: "flex gap-05 flex-wrap" };
22921
22935
  const _hoisted_4$a = ["id", "name", "value", "checked"];
22922
22936
  const _hoisted_5$a = ["for"];
22923
22937
  const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
@@ -22965,7 +22979,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
22965
22979
  return (_ctx, _cache) => {
22966
22980
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$w, [
22967
22981
  vue.createElementVNode("label", _hoisted_2$l, vue.toDisplayString(_ctx.label), 1),
22968
- vue.createElementVNode("div", _hoisted_3$h, [
22982
+ vue.createElementVNode("div", _hoisted_3$i, [
22969
22983
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.options, (option2, index2) => {
22970
22984
  return vue.openBlock(), vue.createElementBlock("div", {
22971
22985
  key: index2,
@@ -22995,7 +23009,7 @@ const _hoisted_2$k = {
22995
23009
  key: 0,
22996
23010
  class: "label"
22997
23011
  };
22998
- const _hoisted_3$g = { class: "range-slider relative w-100" };
23012
+ const _hoisted_3$h = { class: "range-slider relative w-100" };
22999
23013
  const _hoisted_4$9 = ["id", "value", "min", "max", "step", "required", "disabled", "aria-label"];
23000
23014
  const _hoisted_5$9 = ["value", "min", "max", "step", "required", "disabled"];
23001
23015
  const _hoisted_6$8 = { class: "track absolute pointer-events-none overflow-hidden round" };
@@ -23065,7 +23079,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
23065
23079
  dir: _ctx.rtl ? "rtl" : "ltr"
23066
23080
  }, [
23067
23081
  props2.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$k, vue.toDisplayString(props2.label), 1)) : vue.createCommentVNode("", true),
23068
- vue.createElementVNode("div", _hoisted_3$g, [
23082
+ vue.createElementVNode("div", _hoisted_3$h, [
23069
23083
  vue.createElementVNode("input", {
23070
23084
  id: _ctx.id,
23071
23085
  value: validFrom.value,
@@ -23226,7 +23240,7 @@ const toolbarOptions = [
23226
23240
  ];
23227
23241
  const _hoisted_1$u = { class: "grid grid-wrap p-05" };
23228
23242
  const _hoisted_2$j = ["onMousemove", "onClick"];
23229
- const _hoisted_3$f = { class: "txt-center txt-12 color-gray" };
23243
+ const _hoisted_3$g = { class: "txt-center txt-12 color-gray" };
23230
23244
  const fb = 1;
23231
23245
  const base = 5;
23232
23246
  const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
@@ -23276,7 +23290,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
23276
23290
  }), 128))
23277
23291
  ], 32);
23278
23292
  }), 128)),
23279
- vue.createElementVNode("p", _hoisted_3$f, vue.toDisplayString(hoveredRow.value) + "x" + vue.toDisplayString(hoveredCol.value), 1)
23293
+ vue.createElementVNode("p", _hoisted_3$g, vue.toDisplayString(hoveredRow.value) + "x" + vue.toDisplayString(hoveredCol.value), 1)
23280
23294
  ]);
23281
23295
  };
23282
23296
  }
@@ -24617,7 +24631,7 @@ function isNodeEmpty(node) {
24617
24631
  }
24618
24632
  const _hoisted_1$s = { class: "bagel-input" };
24619
24633
  const _hoisted_2$i = { class: "content-area radius-05" };
24620
- const _hoisted_3$e = {
24634
+ const _hoisted_3$f = {
24621
24635
  key: 1,
24622
24636
  class: "flex"
24623
24637
  };
@@ -24775,7 +24789,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
24775
24789
  class: "code-editor"
24776
24790
  }, null, 8, ["modelValue"])) : vue.createCommentVNode("", true)
24777
24791
  ], 2),
24778
- _ctx.debug ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$e, [
24792
+ _ctx.debug ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$f, [
24779
24793
  _cache[6] || (_cache[6] = vue.createElementVNode("p", { class: "text12 txt-gray mb-0 p-0" }, " Debug ", -1)),
24780
24794
  vue.createVNode(vue.unref(Btn), {
24781
24795
  thin: "",
@@ -24822,7 +24836,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
24822
24836
  const RichText = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-30bcda4c"]]);
24823
24837
  const _hoisted_1$r = { class: "flex gap-05" };
24824
24838
  const _hoisted_2$h = ["disabled"];
24825
- const _hoisted_3$d = { key: 1 };
24839
+ const _hoisted_3$e = { key: 1 };
24826
24840
  const _hoisted_4$8 = {
24827
24841
  key: 2,
24828
24842
  class: "ms-auto ps-05 me-05"
@@ -25052,7 +25066,7 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
25052
25066
  key: 0,
25053
25067
  icon: _ctx.icon
25054
25068
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
25055
- !_ctx.hideLabel ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_3$d, vue.toDisplayString(selectedLabel.value), 1)) : vue.createCommentVNode("", true),
25069
+ !_ctx.hideLabel ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_3$e, vue.toDisplayString(selectedLabel.value), 1)) : vue.createCommentVNode("", true),
25056
25070
  _ctx.clearable && selectedItemCount.value > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$8, [
25057
25071
  vue.createVNode(vue.unref(Btn), {
25058
25072
  flat: "",
@@ -25141,7 +25155,7 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
25141
25155
  });
25142
25156
  const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-da5bc268"]]);
25143
25157
  /*!
25144
- * Signature Pad v5.0.6 | https://github.com/szimek/signature_pad
25158
+ * Signature Pad v5.0.7 | https://github.com/szimek/signature_pad
25145
25159
  * (c) 2025 Szymon Nowak | Released under the MIT license
25146
25160
  */
25147
25161
  class Point {
@@ -28427,7 +28441,7 @@ const VueDraggableNext = vue.defineComponent({
28427
28441
  });
28428
28442
  const _hoisted_1$p = ["title"];
28429
28443
  const _hoisted_2$f = { class: "bagel-input" };
28430
- const _hoisted_3$c = { class: "table-side-scroll" };
28444
+ const _hoisted_3$d = { class: "table-side-scroll" };
28431
28445
  const _hoisted_4$7 = { class: "table-header" };
28432
28446
  const _hoisted_5$7 = { class: "table-reorder" };
28433
28447
  const _hoisted_6$6 = { class: "table-action" };
@@ -28499,7 +28513,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
28499
28513
  vue.createElementVNode("div", _hoisted_2$f, [
28500
28514
  vue.createElementVNode("label", null, vue.toDisplayString((_a = vue.unref(fieldMeta)) == null ? void 0 : _a.label), 1)
28501
28515
  ]),
28502
- vue.createElementVNode("div", _hoisted_3$c, [
28516
+ vue.createElementVNode("div", _hoisted_3$d, [
28503
28517
  vue.createElementVNode("div", _hoisted_4$7, [
28504
28518
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList((_b = vue.unref(entityMeta)) == null ? void 0 : _b.fields, (field) => {
28505
28519
  return vue.openBlock(), vue.createElementBlock("div", {
@@ -28578,7 +28592,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
28578
28592
  const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-e9632f79"]]);
28579
28593
  const _hoisted_1$o = ["title"];
28580
28594
  const _hoisted_2$e = ["for"];
28581
- const _hoisted_3$b = ["id", "name", "title", "autocomplete", "type", "placeholder", "disabled", "required", "pattern"];
28595
+ const _hoisted_3$c = ["id", "name", "title", "autocomplete", "type", "placeholder", "disabled", "required", "pattern"];
28582
28596
  const _hoisted_4$6 = ["id", "name", "title", "type", "rows", "placeholder", "disabled", "required", "pattern"];
28583
28597
  const _hoisted_5$6 = {
28584
28598
  key: 2,
@@ -28689,7 +28703,7 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
28689
28703
  onFocus: _cache[2] || (_cache[2] = //@ts-ignore
28690
28704
  (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
28691
28705
  onInput: updateInputVal
28692
- }), null, 16, _hoisted_3$b)), [
28706
+ }), null, 16, _hoisted_3$c)), [
28693
28707
  [
28694
28708
  vue.vModelDynamic,
28695
28709
  vue.unref(inputVal),
@@ -28735,7 +28749,7 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
28735
28749
  const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-dbcf2010"]]);
28736
28750
  const _hoisted_1$n = ["title"];
28737
28751
  const _hoisted_2$d = ["id", "required"];
28738
- const _hoisted_3$a = ["for"];
28752
+ const _hoisted_3$b = ["for"];
28739
28753
  const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
28740
28754
  __name: "ToggleInput",
28741
28755
  props: /* @__PURE__ */ vue.mergeModels({
@@ -28779,7 +28793,7 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
28779
28793
  vue.renderSlot(_ctx.$slots, "label", {}, () => [
28780
28794
  vue.createTextVNode(vue.toDisplayString(_ctx.label), 1)
28781
28795
  ], true)
28782
- ], 8, _hoisted_3$a)
28796
+ ], 8, _hoisted_3$b)
28783
28797
  ], 10, _hoisted_1$n);
28784
28798
  };
28785
28799
  }
@@ -28815,7 +28829,7 @@ const files = {
28815
28829
  };
28816
28830
  const _hoisted_1$m = { class: "bagel-input" };
28817
28831
  const _hoisted_2$c = { key: 0 };
28818
- const _hoisted_3$9 = {
28832
+ const _hoisted_3$a = {
28819
28833
  key: 1,
28820
28834
  placeholder: "required",
28821
28835
  type: "text",
@@ -28965,7 +28979,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
28965
28979
  const _directive_lightbox = vue.resolveDirective("lightbox");
28966
28980
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$m, [
28967
28981
  _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$c, vue.toDisplayString(_ctx.label), 1)) : vue.createCommentVNode("", true),
28968
- _ctx.required && !pathKeys.value.length ? (vue.openBlock(), vue.createElementBlock("input", _hoisted_3$9)) : vue.createCommentVNode("", true),
28982
+ _ctx.required && !pathKeys.value.length ? (vue.openBlock(), vue.createElementBlock("input", _hoisted_3$a)) : vue.createCommentVNode("", true),
28969
28983
  _ctx.theme === "basic" ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$10), {
28970
28984
  key: 2,
28971
28985
  outline: "",
@@ -33718,7 +33732,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
33718
33732
  });
33719
33733
  const _hoisted_1$k = { key: 0 };
33720
33734
  const _hoisted_2$b = ["src", "alt", "width", "height"];
33721
- const _hoisted_3$8 = ["src", "alt", "width", "height"];
33735
+ const _hoisted_3$9 = ["src", "alt", "width", "height"];
33722
33736
  const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
33723
33737
  __name: "Image",
33724
33738
  props: {
@@ -33816,7 +33830,7 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
33816
33830
  alt: _ctx.alt,
33817
33831
  width: vue.unref(normalizeDimension)(_ctx.width),
33818
33832
  height: vue.unref(normalizeDimension)(_ctx.height)
33819
- }), null, 16, _hoisted_3$8)) : vue.unref(loadingError) ? (vue.openBlock(), vue.createElementBlock("div", {
33833
+ }), null, 16, _hoisted_3$9)) : vue.unref(loadingError) ? (vue.openBlock(), vue.createElementBlock("div", {
33820
33834
  key: 2,
33821
33835
  class: "flex-center error-image",
33822
33836
  style: vue.normalizeStyle({
@@ -34024,7 +34038,7 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
34024
34038
  const Skeleton = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-8788ed73"]]);
34025
34039
  const _hoisted_1$h = { class: "bgl_card tabs-top" };
34026
34040
  const _hoisted_2$a = { class: "tabs grid auto-flow-columns fit-content" };
34027
- const _hoisted_3$7 = ["onClick"];
34041
+ const _hoisted_3$8 = ["onClick"];
34028
34042
  const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
34029
34043
  __name: "TabbedLayout",
34030
34044
  props: {
@@ -34069,7 +34083,7 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
34069
34083
  active: tab === vue.unref(activeTab) || tab === ((_a = _ctx.router) == null ? void 0 : _a.currentRoute.value.path.split("/").slice(-1)[0])
34070
34084
  }, "tab"]),
34071
34085
  onClick: ($event) => changeTab(tab)
34072
- }, vue.toDisplayString(tab), 11, _hoisted_3$7);
34086
+ }, vue.toDisplayString(tab), 11, _hoisted_3$8);
34073
34087
  }), 128))
34074
34088
  ])
34075
34089
  ]),
@@ -34263,27 +34277,57 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
34263
34277
  }
34264
34278
  });
34265
34279
  const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-6ece2018"]]);
34266
- const _hoisted_1$e = { class: "no-margin ellipsis line-height-14 pb-025" };
34267
- const _hoisted_2$9 = { class: "txt12 no-margin txt-gray ellipsis" };
34280
+ const _hoisted_1$e = {
34281
+ key: 0,
34282
+ class: "txt10 no-margin txt-gray ellipsis"
34283
+ };
34284
+ const _hoisted_2$9 = { class: "no-margin ellipsis line-height-14 pb-025" };
34285
+ const _hoisted_3$7 = {
34286
+ key: 1,
34287
+ class: "txt12 no-margin txt-gray ellipsis"
34288
+ };
34268
34289
  const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
34269
34290
  __name: "ListItem",
34270
34291
  props: {
34271
34292
  src: {},
34272
34293
  showAvatar: { type: Boolean },
34273
34294
  to: {},
34295
+ href: {},
34274
34296
  icon: {},
34275
34297
  title: {},
34276
34298
  subtitle: {},
34277
34299
  flat: { type: Boolean },
34300
+ disabled: { type: Boolean },
34301
+ lead: {},
34302
+ iconEnd: {},
34303
+ target: {},
34278
34304
  onClick: { type: Function }
34279
34305
  },
34280
34306
  setup(__props) {
34307
+ const props2 = __props;
34308
+ const isComponent = vue.computed(() => {
34309
+ if (props2.to) return "router-link";
34310
+ if (props2.href) return "a";
34311
+ if (props2.onClick) return "button";
34312
+ return "div";
34313
+ });
34314
+ const bind3 = vue.computed(() => {
34315
+ const obj = {};
34316
+ if (props2.to) obj.to = props2.to;
34317
+ else if (props2.href) obj.href = props2.href;
34318
+ if (props2.target && (props2.to || props2.href)) obj.target = props2.target;
34319
+ obj.class = {
34320
+ "notClickable": !(props2.to || props2.onClick),
34321
+ "no-border-list": props2.flat
34322
+ };
34323
+ if (props2.disabled) obj.disabled = true;
34324
+ return obj;
34325
+ });
34281
34326
  return (_ctx, _cache) => {
34282
- return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.to ? "RouterLink" : "div"), {
34283
- to: _ctx.to,
34284
- class: vue.normalizeClass(["flex gap-05 list-item", { "notClickable": !(_ctx.to || _ctx.onClick), "no-border-list": _ctx.flat }]),
34327
+ return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(isComponent.value), vue.mergeProps(bind3.value, {
34328
+ class: "flex gap-05 list-item",
34285
34329
  onClick: _ctx.onClick
34286
- }, {
34330
+ }), {
34287
34331
  default: vue.withCtx(() => [
34288
34332
  _ctx.src || _ctx.showAvatar ? (vue.openBlock(), vue.createBlock(vue.unref(Avatar), {
34289
34333
  key: 0,
@@ -34299,18 +34343,27 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
34299
34343
  icon: _ctx.icon
34300
34344
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
34301
34345
  vue.createElementVNode("div", null, [
34302
- vue.createElementVNode("p", _hoisted_1$e, [
34346
+ _ctx.lead ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_1$e, [
34347
+ vue.createTextVNode(vue.toDisplayString(_ctx.lead) + " ", 1),
34348
+ vue.renderSlot(_ctx.$slots, "lead")
34349
+ ])) : vue.createCommentVNode("", true),
34350
+ vue.createElementVNode("p", _hoisted_2$9, [
34303
34351
  vue.createTextVNode(vue.toDisplayString(_ctx.title) + " ", 1),
34304
34352
  vue.renderSlot(_ctx.$slots, "default")
34305
34353
  ]),
34306
- vue.createElementVNode("p", _hoisted_2$9, [
34354
+ _ctx.subtitle ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_3$7, [
34307
34355
  vue.createTextVNode(vue.toDisplayString(_ctx.subtitle) + " ", 1),
34308
34356
  vue.renderSlot(_ctx.$slots, "subtitle")
34309
- ])
34310
- ])
34357
+ ])) : vue.createCommentVNode("", true)
34358
+ ]),
34359
+ _ctx.iconEnd ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
34360
+ key: 2,
34361
+ icon: _ctx.iconEnd,
34362
+ class: "transition-400"
34363
+ }, null, 8, ["icon"])) : vue.createCommentVNode("", true)
34311
34364
  ]),
34312
34365
  _: 3
34313
- }, 8, ["to", "class", "onClick"]);
34366
+ }, 16, ["onClick"]);
34314
34367
  };
34315
34368
  }
34316
34369
  });
@@ -36428,6 +36481,24 @@ function useBagelFormState(injectionKey = FORM_STATE_KEY) {
36428
36481
  if (!state2) throw new Error("BagelFormState must be provided");
36429
36482
  return state2;
36430
36483
  }
36484
+ function useDevice() {
36485
+ const innerWidth = vue.ref(window.innerWidth);
36486
+ const isMobile = vue.ref(window.innerWidth < 768);
36487
+ function updateDeviceInfo() {
36488
+ innerWidth.value = window.innerWidth;
36489
+ isMobile.value = window.innerWidth < 768;
36490
+ }
36491
+ vue.onMounted(() => {
36492
+ window.addEventListener("resize", updateDeviceInfo);
36493
+ });
36494
+ vue.onUnmounted(() => {
36495
+ window.removeEventListener("resize", updateDeviceInfo);
36496
+ });
36497
+ return {
36498
+ innerWidth,
36499
+ isMobile
36500
+ };
36501
+ }
36431
36502
  function useBglSchema({ schema, columns, data: data2 } = {}) {
36432
36503
  let _schema = schema;
36433
36504
  if (typeof _schema === "function") {
@@ -37931,6 +38002,7 @@ exports.useBagel = useBagel;
37931
38002
  exports.useBagelFormState = useBagelFormState;
37932
38003
  exports.useBglSchema = useBglSchema;
37933
38004
  exports.useDebounceFn = useDebounceFn;
38005
+ exports.useDevice = useDevice;
37934
38006
  exports.useDraggable = useDraggable;
37935
38007
  exports.useEscape = useEscape;
37936
38008
  exports.useI18nT = useI18nT;