@bagelink/vue 0.0.1023 → 0.0.1025

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 (166) hide show
  1. package/dist/components/Accordion.vue.d.ts +3 -2
  2. package/dist/components/Accordion.vue.d.ts.map +1 -1
  3. package/dist/components/AccordionItem.vue.d.ts +14 -20
  4. package/dist/components/AccordionItem.vue.d.ts.map +1 -1
  5. package/dist/components/AddressSearch.vue.d.ts +1 -1
  6. package/dist/components/AddressSearch.vue.d.ts.map +1 -1
  7. package/dist/components/Alert.vue.d.ts.map +1 -1
  8. package/dist/components/Avatar.vue.d.ts +4 -8
  9. package/dist/components/Avatar.vue.d.ts.map +1 -1
  10. package/dist/components/Badge.vue.d.ts +1 -1
  11. package/dist/components/Badge.vue.d.ts.map +1 -1
  12. package/dist/components/BglVideo.vue.d.ts +1 -1
  13. package/dist/components/BglVideo.vue.d.ts.map +1 -1
  14. package/dist/components/Btn.vue.d.ts +13 -31
  15. package/dist/components/Btn.vue.d.ts.map +1 -1
  16. package/dist/components/Card.vue.d.ts +13 -20
  17. package/dist/components/Card.vue.d.ts.map +1 -1
  18. package/dist/components/Carousel.vue.d.ts +12 -2
  19. package/dist/components/Carousel.vue.d.ts.map +1 -1
  20. package/dist/components/DataPreview.vue.d.ts +6 -5
  21. package/dist/components/DataPreview.vue.d.ts.map +1 -1
  22. package/dist/components/DropDown.vue.d.ts +7 -3
  23. package/dist/components/DropDown.vue.d.ts.map +1 -1
  24. package/dist/components/Flag.vue.d.ts +1 -1
  25. package/dist/components/Flag.vue.d.ts.map +1 -1
  26. package/dist/components/IframeVue.vue.d.ts +7 -22
  27. package/dist/components/IframeVue.vue.d.ts.map +1 -1
  28. package/dist/components/Image.vue.d.ts +4 -7
  29. package/dist/components/Image.vue.d.ts.map +1 -1
  30. package/dist/components/ListItem.vue.d.ts +13 -20
  31. package/dist/components/ListItem.vue.d.ts.map +1 -1
  32. package/dist/components/ListView.vue.d.ts +3 -2
  33. package/dist/components/ListView.vue.d.ts.map +1 -1
  34. package/dist/components/Loading.vue.d.ts +3 -8
  35. package/dist/components/Loading.vue.d.ts.map +1 -1
  36. package/dist/components/MapEmbed.vue.d.ts +5 -11
  37. package/dist/components/MapEmbed.vue.d.ts.map +1 -1
  38. package/dist/components/MaterialIcon.vue.d.ts +3 -8
  39. package/dist/components/MaterialIcon.vue.d.ts.map +1 -1
  40. package/dist/components/Modal.vue.d.ts +13 -18
  41. package/dist/components/Modal.vue.d.ts.map +1 -1
  42. package/dist/components/ModalConfirm.vue.d.ts +5 -12
  43. package/dist/components/ModalConfirm.vue.d.ts.map +1 -1
  44. package/dist/components/ModalForm.vue.d.ts +9 -3
  45. package/dist/components/ModalForm.vue.d.ts.map +1 -1
  46. package/dist/components/NavBar.vue.d.ts +11 -15
  47. package/dist/components/NavBar.vue.d.ts.map +1 -1
  48. package/dist/components/PageTitle.vue.d.ts +3 -2
  49. package/dist/components/PageTitle.vue.d.ts.map +1 -1
  50. package/dist/components/Pill.vue.d.ts +12 -24
  51. package/dist/components/Pill.vue.d.ts.map +1 -1
  52. package/dist/components/RouterWrapper.vue.d.ts.map +1 -1
  53. package/dist/components/TableSchema.vue.d.ts +4 -8
  54. package/dist/components/TableSchema.vue.d.ts.map +1 -1
  55. package/dist/components/Title.vue.d.ts +2 -1
  56. package/dist/components/Title.vue.d.ts.map +1 -1
  57. package/dist/components/TopBar.vue.d.ts +3 -2
  58. package/dist/components/TopBar.vue.d.ts.map +1 -1
  59. package/dist/components/Zoomer.vue.d.ts +3 -2
  60. package/dist/components/Zoomer.vue.d.ts.map +1 -1
  61. package/dist/components/dashboard/Lineart.vue.d.ts +3 -5
  62. package/dist/components/dashboard/Lineart.vue.d.ts.map +1 -1
  63. package/dist/components/form/BglField.vue.d.ts +1 -1
  64. package/dist/components/form/BglField.vue.d.ts.map +1 -1
  65. package/dist/components/form/BglForm.vue.d.ts +15 -23
  66. package/dist/components/form/BglForm.vue.d.ts.map +1 -1
  67. package/dist/components/form/BglMultiStepForm.vue.d.ts +3 -4
  68. package/dist/components/form/BglMultiStepForm.vue.d.ts.map +1 -1
  69. package/dist/components/form/FieldArray.vue.d.ts +1 -1
  70. package/dist/components/form/FieldArray.vue.d.ts.map +1 -1
  71. package/dist/components/form/inputs/CheckInput.vue.d.ts +7 -6
  72. package/dist/components/form/inputs/CheckInput.vue.d.ts.map +1 -1
  73. package/dist/components/form/inputs/Checkbox.vue.d.ts +5 -4
  74. package/dist/components/form/inputs/Checkbox.vue.d.ts.map +1 -1
  75. package/dist/components/form/inputs/CodeEditor/Index.vue.d.ts +4 -9
  76. package/dist/components/form/inputs/CodeEditor/Index.vue.d.ts.map +1 -1
  77. package/dist/components/form/inputs/ColorPicker.vue.d.ts +4 -14
  78. package/dist/components/form/inputs/ColorPicker.vue.d.ts.map +1 -1
  79. package/dist/components/form/inputs/DateInput.vue.d.ts +5 -17
  80. package/dist/components/form/inputs/DateInput.vue.d.ts.map +1 -1
  81. package/dist/components/form/inputs/DatePicker.vue.d.ts +5 -14
  82. package/dist/components/form/inputs/DatePicker.vue.d.ts.map +1 -1
  83. package/dist/components/form/inputs/FileUpload.vue.d.ts +5 -4
  84. package/dist/components/form/inputs/FileUpload.vue.d.ts.map +1 -1
  85. package/dist/components/form/inputs/JSONInput.vue.d.ts +5 -11
  86. package/dist/components/form/inputs/JSONInput.vue.d.ts.map +1 -1
  87. package/dist/components/form/inputs/NumberInput.vue.d.ts +26 -0
  88. package/dist/components/form/inputs/NumberInput.vue.d.ts.map +1 -0
  89. package/dist/components/form/inputs/OTP.vue.d.ts +5 -8
  90. package/dist/components/form/inputs/OTP.vue.d.ts.map +1 -1
  91. package/dist/components/form/inputs/PasswordInput.vue.d.ts +7 -7
  92. package/dist/components/form/inputs/PasswordInput.vue.d.ts.map +1 -1
  93. package/dist/components/form/inputs/RadioGroup.vue.d.ts +3 -4
  94. package/dist/components/form/inputs/RadioGroup.vue.d.ts.map +1 -1
  95. package/dist/components/form/inputs/RadioPillsInput.vue.d.ts +5 -9
  96. package/dist/components/form/inputs/RadioPillsInput.vue.d.ts.map +1 -1
  97. package/dist/components/form/inputs/RangeInput.vue.d.ts +1 -1
  98. package/dist/components/form/inputs/RangeInput.vue.d.ts.map +1 -1
  99. package/dist/components/form/inputs/RichText/components/Toolbar.vue.d.ts +5 -7
  100. package/dist/components/form/inputs/RichText/components/Toolbar.vue.d.ts.map +1 -1
  101. package/dist/components/form/inputs/RichText/components/gridBox.vue.d.ts +1 -1
  102. package/dist/components/form/inputs/RichText/components/gridBox.vue.d.ts.map +1 -1
  103. package/dist/components/form/inputs/RichText/index.vue.d.ts +5 -7
  104. package/dist/components/form/inputs/RichText/index.vue.d.ts.map +1 -1
  105. package/dist/components/form/inputs/SelectInput.vue.d.ts +11 -3
  106. package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
  107. package/dist/components/form/inputs/SignaturePad.vue.d.ts +5 -5
  108. package/dist/components/form/inputs/SignaturePad.vue.d.ts.map +1 -1
  109. package/dist/components/form/inputs/TableField.vue.d.ts +5 -12
  110. package/dist/components/form/inputs/TableField.vue.d.ts.map +1 -1
  111. package/dist/components/form/inputs/TelInput.vue.d.ts +3 -3
  112. package/dist/components/form/inputs/TelInput.vue.d.ts.map +1 -1
  113. package/dist/components/form/inputs/TextInput.vue.d.ts +5 -31
  114. package/dist/components/form/inputs/TextInput.vue.d.ts.map +1 -1
  115. package/dist/components/form/inputs/ToggleInput.vue.d.ts +7 -6
  116. package/dist/components/form/inputs/ToggleInput.vue.d.ts.map +1 -1
  117. package/dist/components/form/inputs/index.d.ts +1 -0
  118. package/dist/components/form/inputs/index.d.ts.map +1 -1
  119. package/dist/components/layout/BottomMenu.vue.d.ts +6 -6
  120. package/dist/components/layout/BottomMenu.vue.d.ts.map +1 -1
  121. package/dist/components/layout/Layout.vue.d.ts +3 -2
  122. package/dist/components/layout/Layout.vue.d.ts.map +1 -1
  123. package/dist/components/layout/SidebarMenu.vue.d.ts +10 -12
  124. package/dist/components/layout/SidebarMenu.vue.d.ts.map +1 -1
  125. package/dist/components/layout/Skeleton.vue.d.ts +11 -16
  126. package/dist/components/layout/Skeleton.vue.d.ts.map +1 -1
  127. package/dist/components/layout/TabbedLayout.vue.d.ts +12 -16
  128. package/dist/components/layout/TabbedLayout.vue.d.ts.map +1 -1
  129. package/dist/components/layout/Tabs.vue.d.ts +9 -11
  130. package/dist/components/layout/Tabs.vue.d.ts.map +1 -1
  131. package/dist/components/layout/TabsBody.vue.d.ts +6 -6
  132. package/dist/components/layout/TabsBody.vue.d.ts.map +1 -1
  133. package/dist/components/layout/TabsNav.vue.d.ts +14 -20
  134. package/dist/components/layout/TabsNav.vue.d.ts.map +1 -1
  135. package/dist/components/lightbox/Lightbox.vue.d.ts.map +1 -1
  136. package/dist/directives/index.d.ts +3 -0
  137. package/dist/directives/index.d.ts.map +1 -0
  138. package/dist/directives/pattern.d.ts +8 -0
  139. package/dist/directives/pattern.d.ts.map +1 -0
  140. package/dist/directives/ripple.d.ts +4 -0
  141. package/dist/directives/ripple.d.ts.map +1 -0
  142. package/dist/index.cjs +595 -270
  143. package/dist/index.mjs +595 -270
  144. package/dist/plugins/bagel.d.ts.map +1 -1
  145. package/dist/style.css +4704 -2659
  146. package/dist/utils/BagelFormUtils.d.ts +21 -0
  147. package/dist/utils/BagelFormUtils.d.ts.map +1 -1
  148. package/package.json +1 -1
  149. package/src/components/Card.vue +0 -1
  150. package/src/components/Carousel.vue +25 -3
  151. package/src/components/Dropdown.vue +1 -1
  152. package/src/components/FieldSet.vue +15 -0
  153. package/src/components/Image.vue +11 -1
  154. package/src/components/form/inputs/NumberInput.vue +163 -0
  155. package/src/components/form/inputs/RangeInput.vue +7 -3
  156. package/src/components/form/inputs/index.ts +1 -0
  157. package/src/components/layout/TabsNav.vue +1 -1
  158. package/src/directives/index.ts +2 -0
  159. package/src/directives/pattern.ts +156 -0
  160. package/src/plugins/bagel.ts +2 -1
  161. package/src/styles/appearance.css +17 -0
  162. package/src/styles/layout.css +2892 -1954
  163. package/src/styles/mobilLayout.css +3004 -1920
  164. package/src/utils/BagelFormUtils.ts +16 -0
  165. package/tsconfig.json +1 -1
  166. /package/src/{plugins → directives}/ripple.ts +0 -0
package/dist/index.mjs CHANGED
@@ -5,6 +5,9 @@ import { defineComponent, reactive, provide, openBlock, createElementBlock, rend
5
5
  import { RouterLink } from "vue-router";
6
6
  const bagelFormUtils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7
7
  __proto__: null,
8
+ get arrField() {
9
+ return arrField;
10
+ },
8
11
  get bglForm() {
9
12
  return bglForm;
10
13
  },
@@ -39,7 +42,7 @@ const bagelFormUtils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
39
42
  return txtField;
40
43
  }
41
44
  }, Symbol.toStringTag, { value: "Module" }));
42
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
45
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
43
46
  __name: "Accordion",
44
47
  setup(__props) {
45
48
  const state2 = reactive({
@@ -53,10 +56,10 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
53
56
  };
54
57
  }
55
58
  });
56
- const _hoisted_1$P = ["aria-expanded", "aria-controls"];
57
- const _hoisted_2$w = { class: "accordion-label" };
58
- const _hoisted_3$p = ["id", "aria-hidden"];
59
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
59
+ const _hoisted_1$Q = ["aria-expanded", "aria-controls"];
60
+ const _hoisted_2$y = { class: "accordion-label" };
61
+ const _hoisted_3$r = ["id", "aria-hidden"];
62
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
60
63
  __name: "AccordionItem",
61
64
  props: {
62
65
  label: {},
@@ -122,7 +125,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
122
125
  createVNode(unref(_sfc_main$c), { icon: computedIcon.value }, null, 8, ["icon"])
123
126
  ], 2)) : createCommentVNode("", true),
124
127
  renderSlot(_ctx.$slots, "head", {}, () => [
125
- createElementVNode("span", _hoisted_2$w, toDisplayString(_ctx.label), 1)
128
+ createElementVNode("span", _hoisted_2$y, toDisplayString(_ctx.label), 1)
126
129
  ], true),
127
130
  iconPosition.value === "end" ? (openBlock(), createElementBlock("span", {
128
131
  key: 1,
@@ -130,7 +133,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
130
133
  }, [
131
134
  createVNode(unref(_sfc_main$c), { icon: computedIcon.value }, null, 8, ["icon"])
132
135
  ], 2)) : createCommentVNode("", true)
133
- ], 8, _hoisted_1$P),
136
+ ], 8, _hoisted_1$Q),
134
137
  createVNode(Transition, { name: "expand" }, {
135
138
  default: withCtx(() => [
136
139
  unref(isOpen) ? (openBlock(), createElementBlock("div", {
@@ -140,7 +143,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
140
143
  "aria-hidden": unref(isOpen) ? "false" : "true"
141
144
  }, [
142
145
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
143
- ], 8, _hoisted_3$p)) : createCommentVNode("", true)
146
+ ], 8, _hoisted_3$r)) : createCommentVNode("", true)
144
147
  ]),
145
148
  _: 3
146
149
  })
@@ -155,9 +158,9 @@ const _export_sfc = (sfc, props2) => {
155
158
  }
156
159
  return target;
157
160
  };
158
- const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-1e73ca3e"]]);
159
- const _hoisted_1$O = { class: "relative" };
160
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
161
+ const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-1e73ca3e"]]);
162
+ const _hoisted_1$P = { class: "relative" };
163
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
161
164
  __name: "AddressSearch",
162
165
  emits: ["addressSelected"],
163
166
  setup(__props, { emit: __emit }) {
@@ -179,8 +182,8 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
179
182
  (_a2 = suggestion.value) == null ? void 0 : _a2.show();
180
183
  }
181
184
  return (_ctx, _cache) => {
182
- return openBlock(), createElementBlock("div", _hoisted_1$O, [
183
- createVNode(unref(_sfc_main$S), {
185
+ return openBlock(), createElementBlock("div", _hoisted_1$P, [
186
+ createVNode(unref(_sfc_main$T), {
184
187
  ref_key: "suggestion",
185
188
  ref: suggestion,
186
189
  noAutoFocus: true,
@@ -215,11 +218,11 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
215
218
  };
216
219
  }
217
220
  });
218
- const _hoisted_1$N = {
221
+ const _hoisted_1$O = {
219
222
  key: 1,
220
223
  class: "bgl_btn-flex"
221
224
  };
222
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
225
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
223
226
  __name: "Btn",
224
227
  props: {
225
228
  disabled: { type: Boolean, default: false },
@@ -284,7 +287,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
284
287
  _ctx.loading ? (openBlock(), createBlock(unref(Loading), {
285
288
  key: 0,
286
289
  size: "15"
287
- })) : (openBlock(), createElementBlock("div", _hoisted_1$N, [
290
+ })) : (openBlock(), createElementBlock("div", _hoisted_1$O, [
288
291
  _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$c), {
289
292
  key: 0,
290
293
  icon: _ctx.icon
@@ -306,10 +309,10 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
306
309
  };
307
310
  }
308
311
  });
309
- const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-c23a3626"]]);
310
- const _hoisted_1$M = ["dismissable"];
311
- const _hoisted_2$v = { class: "m-0" };
312
- const _sfc_main$_ = /* @__PURE__ */ defineComponent({
312
+ const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-c23a3626"]]);
313
+ const _hoisted_1$N = ["dismissable"];
314
+ const _hoisted_2$x = { class: "m-0" };
315
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
313
316
  __name: "Alert",
314
317
  props: {
315
318
  message: {},
@@ -337,7 +340,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
337
340
  size: 2,
338
341
  color: color2[_ctx.type]
339
342
  }, null, 8, ["icon", "color"])) : createCommentVNode("", true),
340
- createElementVNode("p", _hoisted_2$v, toDisplayString(_ctx.message), 1),
343
+ createElementVNode("p", _hoisted_2$x, toDisplayString(_ctx.message), 1),
341
344
  createVNode(Btn, {
342
345
  flat: "",
343
346
  thin: "",
@@ -345,13 +348,13 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
345
348
  icon: "close",
346
349
  onClick: _cache[0] || (_cache[0] = ($event) => isDismissed.value = true)
347
350
  })
348
- ], 10, _hoisted_1$M)) : createCommentVNode("", true);
351
+ ], 10, _hoisted_1$N)) : createCommentVNode("", true);
349
352
  };
350
353
  }
351
354
  });
352
- const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-57141c32"]]);
353
- const _hoisted_1$L = ["src", "alt"];
354
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
355
+ const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-57141c32"]]);
356
+ const _hoisted_1$M = ["src", "alt"];
357
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
355
358
  __name: "Avatar",
356
359
  props: {
357
360
  fallback: {},
@@ -369,7 +372,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
369
372
  key: 0,
370
373
  src: _ctx.src,
371
374
  alt: _ctx.name
372
- }, null, 8, _hoisted_1$L)) : (openBlock(), createElementBlock("p", {
375
+ }, null, 8, _hoisted_1$M)) : (openBlock(), createElementBlock("p", {
373
376
  key: 1,
374
377
  style: normalizeStyle({ "line-height": `${_ctx.size}px`, "font-size": `calc(1.5rem * ${_ctx.size} / 50)` })
375
378
  }, toDisplayString((_ctx.fallback || unref(initials)(_ctx.name || "")).toUpperCase()), 5))
@@ -377,8 +380,8 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
377
380
  };
378
381
  }
379
382
  });
380
- const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-46ad8c25"]]);
381
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
383
+ const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-46ad8c25"]]);
384
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
382
385
  __name: "Badge",
383
386
  props: {
384
387
  color: {},
@@ -407,11 +410,11 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
407
410
  };
408
411
  }
409
412
  });
410
- const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-2f3caf93"]]);
411
- const _hoisted_1$K = ["src"];
412
- const _hoisted_2$u = ["autoplay", "muted", "loop", "controls", "playsinline"];
413
- const _hoisted_3$o = ["src", "type"];
414
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
413
+ const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-2f3caf93"]]);
414
+ const _hoisted_1$L = ["src"];
415
+ const _hoisted_2$w = ["autoplay", "muted", "loop", "controls", "playsinline"];
416
+ const _hoisted_3$q = ["src", "type"];
417
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
415
418
  __name: "BglVideo",
416
419
  props: {
417
420
  src: {},
@@ -488,7 +491,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
488
491
  allowfullscreen: "",
489
492
  title: "Video",
490
493
  allow: "autoplay"
491
- }, null, 12, _hoisted_1$K)) : _ctx.src ? (openBlock(), createElementBlock("video", {
494
+ }, null, 12, _hoisted_1$L)) : _ctx.src ? (openBlock(), createElementBlock("video", {
492
495
  key: 1,
493
496
  ref_key: "video",
494
497
  ref: video,
@@ -502,18 +505,18 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
502
505
  createElementVNode("source", {
503
506
  src: _ctx.src,
504
507
  type: `video/${videoFormat.value}`
505
- }, null, 8, _hoisted_3$o)
506
- ], 12, _hoisted_2$u)) : createCommentVNode("", true)
508
+ }, null, 8, _hoisted_3$q)
509
+ ], 12, _hoisted_2$w)) : createCommentVNode("", true)
507
510
  ], 2);
508
511
  };
509
512
  }
510
513
  });
511
- const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-006552f6"]]);
512
- const _hoisted_1$J = {
514
+ const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-006552f6"]]);
515
+ const _hoisted_1$K = {
513
516
  key: 0,
514
517
  class: "card_label"
515
518
  };
516
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
519
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
517
520
  __name: "Card",
518
521
  props: {
519
522
  label: {},
@@ -542,7 +545,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
542
545
  }])
543
546
  }, {
544
547
  default: withCtx(() => [
545
- _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$J, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
548
+ _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$K, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
546
549
  renderSlot(_ctx.$slots, "default")
547
550
  ]),
548
551
  _: 3
@@ -552,13 +555,18 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
552
555
  };
553
556
  }
554
557
  });
555
- const _hoisted_1$I = ["dir"];
556
- const _hoisted_2$t = {
558
+ const _hoisted_1$J = ["dir"];
559
+ const _hoisted_2$v = {
557
560
  key: 0,
558
561
  class: "blocker"
559
562
  };
560
- const _hoisted_3$n = { class: "Handlers" };
561
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
563
+ const _hoisted_3$p = {
564
+ key: 0,
565
+ class: "dots flex-center gap-05 mt-1"
566
+ };
567
+ const _hoisted_4$h = ["onClick"];
568
+ const _hoisted_5$f = { class: "Handlers" };
569
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
562
570
  __name: "Carousel",
563
571
  props: {
564
572
  autoHeight: { type: Boolean, default: false },
@@ -568,7 +576,8 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
568
576
  index: { type: Number, default: 0 },
569
577
  rtl: { type: Boolean, default: false },
570
578
  autoplay: { type: Boolean, default: false },
571
- autoPlaySpeed: { type: Number, default: 4e3 }
579
+ autoPlaySpeed: { type: Number, default: 4e3 },
580
+ dots: { type: Boolean, default: false }
572
581
  },
573
582
  emits: ["update:index"],
574
583
  setup(__props, { emit: __emit }) {
@@ -582,11 +591,16 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
582
591
  let startX = ref(0);
583
592
  let scrollStart = ref(0);
584
593
  let yHeight = ref("auto");
594
+ let slideCount = ref(0);
585
595
  let timeout;
586
596
  let autoPlayInterval;
587
597
  function preventDefaultClick(e) {
588
598
  e.preventDefault();
589
599
  }
600
+ function countSlides() {
601
+ if (!bglSlider.value) return;
602
+ slideCount.value = bglSlider.value.children.length;
603
+ }
590
604
  function disableDrag() {
591
605
  var _a2, _b;
592
606
  (_a2 = bglSlider.value) == null ? void 0 : _a2.querySelectorAll("img").forEach((img) => {
@@ -631,7 +645,8 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
631
645
  requestAnimationFrame(animate);
632
646
  }
633
647
  function goToSlide(index2) {
634
- if (!bglSlider.value || index2 < 0 || index2 >= bglSlider.value.children.length) return;
648
+ countSlides();
649
+ if (!bglSlider.value || index2 < 0 || index2 >= slideCount.value) return;
635
650
  const offset2 = bglSlider.value.offsetWidth * index2 * (props2.rtl ? -1 : 1);
636
651
  const duration = window.innerWidth < 600 ? 400 : window.innerWidth < 991 ? 500 : 700;
637
652
  easeScroll(offset2, duration);
@@ -685,19 +700,20 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
685
700
  }
686
701
  function next() {
687
702
  if (!bglSlider.value) return;
688
- const slideCount = bglSlider.value.children.length;
689
- goToSlide((activeSlideIndex.value + 1) % slideCount);
703
+ countSlides();
704
+ goToSlide((activeSlideIndex.value + 1) % slideCount.value);
690
705
  }
691
706
  function prev() {
692
707
  if (!bglSlider.value) return;
693
- const slideCount = bglSlider.value.children.length;
694
- goToSlide((activeSlideIndex.value - 1 + slideCount) % slideCount);
708
+ countSlides();
709
+ goToSlide((activeSlideIndex.value - 1 + slideCount.value) % slideCount.value);
695
710
  }
696
711
  onMounted(() => {
697
712
  window.addEventListener("resize", handleResize);
698
713
  disableDrag();
699
714
  updateHeight();
700
715
  handleResize();
716
+ countSlides();
701
717
  if (props2.autoplay) {
702
718
  autoPlayInterval = setInterval(next, props2.autoPlaySpeed);
703
719
  }
@@ -726,10 +742,19 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
726
742
  onMouseover: clearAutoplay,
727
743
  onFocusin: clearAutoplay
728
744
  }, [
729
- unref(isDragging) ? (openBlock(), createElementBlock("div", _hoisted_2$t)) : createCommentVNode("", true),
745
+ unref(isDragging) ? (openBlock(), createElementBlock("div", _hoisted_2$v)) : createCommentVNode("", true),
730
746
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
731
747
  ], 38),
732
- createElementVNode("div", _hoisted_3$n, [
748
+ __props.dots && unref(slideCount) > 1 ? (openBlock(), createElementBlock("div", _hoisted_3$p, [
749
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(slideCount), (i2) => {
750
+ return openBlock(), createElementBlock("span", {
751
+ key: i2,
752
+ class: normalizeClass(["dot cursor", { current: unref(activeSlideIndex) === i2 - 1 }]),
753
+ onClick: ($event) => goToSlide(i2 - 1)
754
+ }, null, 10, _hoisted_4$h);
755
+ }), 128))
756
+ ])) : createCommentVNode("", true),
757
+ createElementVNode("div", _hoisted_5$f, [
733
758
  createElementVNode("span", { onClick: prev }, [
734
759
  renderSlot(_ctx.$slots, "prev", {
735
760
  index: unref(activeSlideIndex),
@@ -743,11 +768,11 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
743
768
  }, void 0, true)
744
769
  ])
745
770
  ])
746
- ], 14, _hoisted_1$I);
771
+ ], 14, _hoisted_1$J);
747
772
  };
748
773
  }
749
774
  });
750
- const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-98e36ac5"]]);
775
+ const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-eec2b184"]]);
751
776
  function _isPlaceholder(a2) {
752
777
  return a2 != null && typeof a2 === "object" && a2["@@functional/placeholder"] === true;
753
778
  }
@@ -6581,8 +6606,8 @@ const _hoisted_1$1$1 = {
6581
6606
  style: { display: "flex", position: "relative" }
6582
6607
  };
6583
6608
  const _hoisted_2$1$1 = ["width", "height", "viewBox"];
6584
- const _hoisted_3$m = { class: "layer-rectangles" };
6585
- const _hoisted_4$f = ["transform", "onMouseover"];
6609
+ const _hoisted_3$o = { class: "layer-rectangles" };
6610
+ const _hoisted_4$g = ["transform", "onMouseover"];
6586
6611
  const _hoisted_5$e = ["width", "height"];
6587
6612
  const _hoisted_6$b = {
6588
6613
  x: 0 + 10,
@@ -6599,7 +6624,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
6599
6624
  viewBox: `0 0 ${_ctx.size.width} ${_ctx.size.height}`,
6600
6625
  ref: "el"
6601
6626
  }, [
6602
- createElementVNode("g", _hoisted_3$m, [
6627
+ createElementVNode("g", _hoisted_3$o, [
6603
6628
  (openBlock(true), createElementBlock(
6604
6629
  Fragment,
6605
6630
  null,
@@ -6634,7 +6659,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
6634
6659
  )
6635
6660
  ])
6636
6661
  ])
6637
- ], 42, _hoisted_4$f);
6662
+ ], 42, _hoisted_4$g);
6638
6663
  }),
6639
6664
  128
6640
6665
  /* KEYED_FRAGMENT */
@@ -6691,25 +6716,25 @@ var script = defineComponent({
6691
6716
  return { bar, canvas, direction, mouse };
6692
6717
  }
6693
6718
  });
6694
- const _hoisted_1$H = {
6719
+ const _hoisted_1$I = {
6695
6720
  key: 0,
6696
6721
  class: "layer-hover-bar"
6697
6722
  };
6698
- const _hoisted_2$s = ["x", "y", "width", "height"];
6723
+ const _hoisted_2$u = ["x", "y", "width", "height"];
6699
6724
  function render(_ctx, _cache, $props, $setup, $data, $options) {
6700
- return _ctx.mouse.hover ? (openBlock(), createElementBlock("g", _hoisted_1$H, [
6725
+ return _ctx.mouse.hover ? (openBlock(), createElementBlock("g", _hoisted_1$I, [
6701
6726
  createElementVNode("rect", mergeProps({ class: "hover-bar" }, _ctx.barStyle, {
6702
6727
  x: _ctx.bar.x,
6703
6728
  y: _ctx.bar.y,
6704
6729
  width: _ctx.bar.width > 0 ? _ctx.bar.width : 0,
6705
6730
  height: _ctx.bar.height > 0 ? _ctx.bar.height : 0
6706
- }), null, 16, _hoisted_2$s)
6731
+ }), null, 16, _hoisted_2$u)
6707
6732
  ])) : createCommentVNode("v-if", true);
6708
6733
  }
6709
6734
  script.render = render;
6710
6735
  script.__file = "src/components/HoverBar/index.vue";
6711
6736
  const BRAND_COLOR = "var(--bgl-primary)";
6712
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
6737
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
6713
6738
  __name: "Lineart",
6714
6739
  props: {
6715
6740
  data: {},
@@ -6849,16 +6874,16 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
6849
6874
  };
6850
6875
  }
6851
6876
  });
6852
- const _hoisted_1$G = {
6877
+ const _hoisted_1$H = {
6853
6878
  key: 0,
6854
6879
  class: "data"
6855
6880
  };
6856
- const _hoisted_2$r = {
6881
+ const _hoisted_2$t = {
6857
6882
  key: 0,
6858
6883
  class: "data-row m_py-05"
6859
6884
  };
6860
- const _hoisted_3$l = { class: "key" };
6861
- const _hoisted_4$e = { class: "m-0" };
6885
+ const _hoisted_3$n = { class: "key" };
6886
+ const _hoisted_4$f = { class: "m-0" };
6862
6887
  const _hoisted_5$d = { key: 1 };
6863
6888
  const _hoisted_6$a = {
6864
6889
  key: 0,
@@ -6870,7 +6895,7 @@ const _hoisted_9$3 = {
6870
6895
  key: 0,
6871
6896
  class: "m-0"
6872
6897
  };
6873
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
6898
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
6874
6899
  __name: "DataPreview",
6875
6900
  props: /* @__PURE__ */ mergeModels({
6876
6901
  showFields: {},
@@ -6906,7 +6931,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
6906
6931
  const computedSchema = computed(() => getFallbackSchema([itemData.value], props2.showFields));
6907
6932
  return (_ctx, _cache) => {
6908
6933
  var _a2;
6909
- return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
6934
+ return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$H, [
6910
6935
  _ctx.title ? (openBlock(), createBlock(unref(_sfc_main$3), {
6911
6936
  key: 0,
6912
6937
  label: _ctx.title
@@ -6915,11 +6940,11 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
6915
6940
  return openBlock(), createElementBlock(Fragment, {
6916
6941
  key: field.id
6917
6942
  }, [
6918
- unref(iffer)(field, itemData.value) ? (openBlock(), createElementBlock("div", _hoisted_2$r, [
6919
- createElementVNode("div", _hoisted_3$l, [
6920
- createElementVNode("p", _hoisted_4$e, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1)
6943
+ unref(iffer)(field, itemData.value) ? (openBlock(), createElementBlock("div", _hoisted_2$t, [
6944
+ createElementVNode("div", _hoisted_3$n, [
6945
+ createElementVNode("p", _hoisted_4$f, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1)
6921
6946
  ]),
6922
- createVNode(unref(_sfc_main$P), {
6947
+ createVNode(unref(_sfc_main$Q), {
6923
6948
  modelValue: itemData.value,
6924
6949
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => itemData.value = $event),
6925
6950
  label: "",
@@ -6948,7 +6973,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
6948
6973
  };
6949
6974
  }
6950
6975
  });
6951
- const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-6c27f163"]]);
6976
+ const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-6c27f163"]]);
6952
6977
  const sides = ["top", "right", "bottom", "left"];
6953
6978
  const alignments = ["start", "end"];
6954
6979
  const placements = /* @__PURE__ */ sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
@@ -9490,7 +9515,7 @@ const Gt$1 = {
9490
9515
  install: Ct$1,
9491
9516
  options: h
9492
9517
  };
9493
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
9518
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
9494
9519
  __name: "Dropdown",
9495
9520
  props: /* @__PURE__ */ mergeModels({
9496
9521
  value: {},
@@ -9504,7 +9529,8 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
9504
9529
  outline: { type: Boolean },
9505
9530
  round: { type: Boolean },
9506
9531
  placement: {},
9507
- noAutoFocus: { type: Boolean }
9532
+ noAutoFocus: { type: Boolean },
9533
+ positioningDisabled: { type: Boolean }
9508
9534
  }, {
9509
9535
  "shown": {
9510
9536
  type: Boolean,
@@ -9561,7 +9587,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
9561
9587
  };
9562
9588
  }
9563
9589
  });
9564
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
9590
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
9565
9591
  __name: "Flag",
9566
9592
  props: {
9567
9593
  country: {},
@@ -9591,7 +9617,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
9591
9617
  };
9592
9618
  }
9593
9619
  });
9594
- const Flag = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-f99f1900"]]);
9620
+ const Flag = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-f99f1900"]]);
9595
9621
  const state$1 = reactive(/* @__PURE__ */ new Map());
9596
9622
  function useTabs(group) {
9597
9623
  if (!state$1.has(group)) {
@@ -9605,8 +9631,8 @@ function useTabs(group) {
9605
9631
  });
9606
9632
  return { currentTab };
9607
9633
  }
9608
- const _hoisted_1$F = ["onClick"];
9609
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
9634
+ const _hoisted_1$G = ["onClick"];
9635
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
9610
9636
  __name: "TabsNav",
9611
9637
  props: {
9612
9638
  title: {},
@@ -9670,7 +9696,6 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
9670
9696
  window.removeEventListener("resize", updateIndicator);
9671
9697
  });
9672
9698
  return (_ctx, _cache) => {
9673
- const _component_Icon = resolveComponent("Icon");
9674
9699
  return openBlock(), createElementBlock("div", {
9675
9700
  ref_key: "tabsWrap",
9676
9701
  ref: tabsWrap,
@@ -9684,20 +9709,20 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
9684
9709
  class: normalizeClass([{ active: isActive(tab) }, "bgl_tab relative z-1"]),
9685
9710
  onClick: ($event) => selectTab(tab)
9686
9711
  }, [
9687
- typeof tab !== "string" && tab.icon ? (openBlock(), createBlock(_component_Icon, {
9712
+ typeof tab !== "string" && tab.icon ? (openBlock(), createBlock(unref(_sfc_main$c), {
9688
9713
  key: 0,
9689
9714
  icon: tab.icon
9690
9715
  }, null, 8, ["icon"])) : createCommentVNode("", true),
9691
9716
  createTextVNode(" " + toDisplayString(tabLabel(tab)), 1)
9692
- ], 10, _hoisted_1$F);
9717
+ ], 10, _hoisted_1$G);
9693
9718
  }), 128))
9694
9719
  ], true)
9695
9720
  ], 2);
9696
9721
  };
9697
9722
  }
9698
9723
  });
9699
- const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-bbb66a44"]]);
9700
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
9724
+ const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-307612a9"]]);
9725
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
9701
9726
  __name: "BglField",
9702
9727
  props: {
9703
9728
  field: {},
@@ -9714,15 +9739,15 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
9714
9739
  customAttrs.value.multiline = true;
9715
9740
  return TextInput;
9716
9741
  }
9717
- if (props2.field.$el === "array") return _sfc_main$M;
9742
+ if (props2.field.$el === "array") return _sfc_main$N;
9718
9743
  if (props2.field.$el === "select") return SelectInput;
9719
9744
  if (props2.field.$el === "toggle") return ToggleInput;
9720
9745
  if (props2.field.$el === "check") return CheckInput;
9721
9746
  if (props2.field.$el === "richtext") return RichText;
9722
9747
  if (props2.field.$el === "file") return FileUpload;
9723
- if (props2.field.$el === "date") return _sfc_main$H;
9748
+ if (props2.field.$el === "date") return _sfc_main$I;
9724
9749
  if (props2.field.$el === "tabs") return TabsNav;
9725
- if (props2.field.$el === "form") return _sfc_main$O;
9750
+ if (props2.field.$el === "form") return _sfc_main$P;
9726
9751
  return props2.field.$el ?? "div";
9727
9752
  });
9728
9753
  const formData = computed({
@@ -9745,7 +9770,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
9745
9770
  temp[keys4[keys4.length - 1]] = val;
9746
9771
  return data2;
9747
9772
  }
9748
- const isForm = computed(() => props2.field.$el === "form" || props2.field.$el === _sfc_main$O);
9773
+ const isForm = computed(() => props2.field.$el === "form" || props2.field.$el === _sfc_main$P);
9749
9774
  function getFieldData(obj, key) {
9750
9775
  if (typeof obj !== "object" || obj === null) return obj;
9751
9776
  const keys4 = key.split(objPathRegex);
@@ -9839,7 +9864,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
9839
9864
  };
9840
9865
  }
9841
9866
  });
9842
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
9867
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
9843
9868
  __name: "BglForm",
9844
9869
  props: {
9845
9870
  label: {},
@@ -9937,7 +9962,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
9937
9962
  label: _ctx.label
9938
9963
  }, null, 8, ["label"])) : createCommentVNode("", true),
9939
9964
  (openBlock(true), createElementBlock(Fragment, null, renderList(computedSchema.value, (field, i2) => {
9940
- return openBlock(), createBlock(unref(_sfc_main$P), {
9965
+ return openBlock(), createBlock(unref(_sfc_main$Q), {
9941
9966
  key: field.id || `${i2}p`,
9942
9967
  modelValue: unref(data2),
9943
9968
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(data2) ? data2.value = $event : data2 = $event),
@@ -9961,7 +9986,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
9961
9986
  label: _ctx.label
9962
9987
  }, null, 8, ["label"])) : createCommentVNode("", true),
9963
9988
  (openBlock(true), createElementBlock(Fragment, null, renderList(computedSchema.value, (field, i2) => {
9964
- return openBlock(), createBlock(unref(_sfc_main$P), {
9989
+ return openBlock(), createBlock(unref(_sfc_main$Q), {
9965
9990
  key: field.id || `${i2}p`,
9966
9991
  modelValue: unref(data2),
9967
9992
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(data2) ? data2.value = $event : data2 = $event),
@@ -9980,8 +10005,8 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
9980
10005
  };
9981
10006
  }
9982
10007
  });
9983
- const _hoisted_1$E = { key: 0 };
9984
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
10008
+ const _hoisted_1$F = { key: 0 };
10009
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
9985
10010
  __name: "BglMultiStepForm",
9986
10011
  props: /* @__PURE__ */ mergeModels({
9987
10012
  bagelFormProps: { default: () => ({}) },
@@ -10048,8 +10073,8 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
10048
10073
  mode: "out-in"
10049
10074
  }, {
10050
10075
  default: withCtx(() => [
10051
- !unref(isStepping) ? (openBlock(), createElementBlock("div", _hoisted_1$E, [
10052
- createVNode(unref(_sfc_main$O), mergeProps({
10076
+ !unref(isStepping) ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
10077
+ createVNode(unref(_sfc_main$P), mergeProps({
10053
10078
  ref_key: "formRef",
10054
10079
  ref: formRef,
10055
10080
  modelValue: formData.value,
@@ -10088,9 +10113,9 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
10088
10113
  };
10089
10114
  }
10090
10115
  });
10091
- const _hoisted_1$D = { class: "label mb-05" };
10092
- const _hoisted_2$q = { class: "-ms-05 ps-05 border-start" };
10093
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
10116
+ const _hoisted_1$E = { class: "label mb-05" };
10117
+ const _hoisted_2$s = { class: "-ms-05 ps-05 border-start" };
10118
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
10094
10119
  __name: "FieldArray",
10095
10120
  props: {
10096
10121
  el: { default: "div" },
@@ -10128,8 +10153,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
10128
10153
  }
10129
10154
  return (_ctx, _cache) => {
10130
10155
  return openBlock(), createElementBlock("div", null, [
10131
- createElementVNode("p", _hoisted_1$D, toDisplayString(_ctx.label), 1),
10132
- createElementVNode("div", _hoisted_2$q, [
10156
+ createElementVNode("p", _hoisted_1$E, toDisplayString(_ctx.label), 1),
10157
+ createElementVNode("div", _hoisted_2$s, [
10133
10158
  (openBlock(true), createElementBlock(Fragment, null, renderList(data2.value, (_2, i2) => {
10134
10159
  return openBlock(), createElementBlock("div", {
10135
10160
  key: i2,
@@ -10137,7 +10162,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
10137
10162
  thin: "",
10138
10163
  class: "mb-05 itemBox transition p-05"
10139
10164
  }, [
10140
- _ctx.schema ? (openBlock(), createBlock(unref(_sfc_main$O), {
10165
+ _ctx.schema ? (openBlock(), createBlock(unref(_sfc_main$P), {
10141
10166
  key: 0,
10142
10167
  modelValue: data2.value[i2],
10143
10168
  "onUpdate:modelValue": [($event) => data2.value[i2] = $event, emitValue],
@@ -10172,8 +10197,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
10172
10197
  };
10173
10198
  }
10174
10199
  });
10175
- const _hoisted_1$C = { class: "primary-checkbox" };
10176
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
10200
+ const _hoisted_1$D = { class: "primary-checkbox" };
10201
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
10177
10202
  __name: "Checkbox",
10178
10203
  props: {
10179
10204
  "modelValue": { type: Boolean, ...{ default: false } },
@@ -10183,7 +10208,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
10183
10208
  setup(__props) {
10184
10209
  const val = useModel(__props, "modelValue");
10185
10210
  return (_ctx, _cache) => {
10186
- return openBlock(), createElementBlock("label", _hoisted_1$C, [
10211
+ return openBlock(), createElementBlock("label", _hoisted_1$D, [
10187
10212
  renderSlot(_ctx.$slots, "label", {}, void 0, true),
10188
10213
  withDirectives(createElementVNode("input", {
10189
10214
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => val.value = $event),
@@ -10195,11 +10220,11 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
10195
10220
  };
10196
10221
  }
10197
10222
  });
10198
- const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-73f1d9ad"]]);
10199
- const _hoisted_1$B = ["title"];
10200
- const _hoisted_2$p = ["id", "value", "required"];
10201
- const _hoisted_3$k = ["for"];
10202
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
10223
+ const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-73f1d9ad"]]);
10224
+ const _hoisted_1$C = ["title"];
10225
+ const _hoisted_2$r = ["id", "value", "required"];
10226
+ const _hoisted_3$m = ["for"];
10227
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
10203
10228
  __name: "CheckInput",
10204
10229
  props: /* @__PURE__ */ mergeModels({
10205
10230
  label: {},
@@ -10233,27 +10258,27 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
10233
10258
  required: _ctx.required,
10234
10259
  type: "checkbox",
10235
10260
  class: "me-05"
10236
- }, null, 8, _hoisted_2$p), [
10261
+ }, null, 8, _hoisted_2$r), [
10237
10262
  [vModelCheckbox, checked.value]
10238
10263
  ]),
10239
10264
  createElementVNode("label", { for: inputId.value }, [
10240
10265
  renderSlot(_ctx.$slots, "label", {}, () => [
10241
10266
  createTextVNode(toDisplayString(_ctx.label), 1)
10242
10267
  ], true)
10243
- ], 8, _hoisted_3$k)
10244
- ], 10, _hoisted_1$B);
10268
+ ], 8, _hoisted_3$m)
10269
+ ], 10, _hoisted_1$C);
10245
10270
  };
10246
10271
  }
10247
10272
  });
10248
- const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-03ed2982"]]);
10249
- const _hoisted_1$A = {
10273
+ const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-03ed2982"]]);
10274
+ const _hoisted_1$B = {
10250
10275
  key: 0,
10251
10276
  class: "code-editor-wrap grid rounded p-1 overflow hm-300px"
10252
10277
  };
10253
- const _hoisted_2$o = { class: "overflow-hidden absolute inset-0 p-0 m-0 h-100 codeText" };
10254
- const _hoisted_3$j = ["innerHTML"];
10255
- const _hoisted_4$d = ["onKeydown"];
10256
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
10278
+ const _hoisted_2$q = { class: "overflow-hidden absolute inset-0 p-0 m-0 h-100 codeText" };
10279
+ const _hoisted_3$l = ["innerHTML"];
10280
+ const _hoisted_4$e = ["onKeydown"];
10281
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
10257
10282
  __name: "Index",
10258
10283
  props: {
10259
10284
  language: {},
@@ -10333,17 +10358,17 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
10333
10358
  }
10334
10359
  }, { immediate: true });
10335
10360
  return (_ctx, _cache) => {
10336
- return unref(loaded) ? (openBlock(), createElementBlock("div", _hoisted_1$A, [
10361
+ return unref(loaded) ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
10337
10362
  createElementVNode("div", {
10338
10363
  class: "relative block h-100",
10339
10364
  style: normalizeStyle({ height: unref(height) })
10340
10365
  }, [
10341
- createElementVNode("pre", _hoisted_2$o, [
10366
+ createElementVNode("pre", _hoisted_2$q, [
10342
10367
  _cache[2] || (_cache[2] = createTextVNode(" ")),
10343
10368
  createElementVNode("code", {
10344
10369
  class: normalizeClass(className.value),
10345
10370
  innerHTML: highlightedCode.value
10346
- }, null, 10, _hoisted_3$j),
10371
+ }, null, 10, _hoisted_3$l),
10347
10372
  _cache[3] || (_cache[3] = createTextVNode("\n "))
10348
10373
  ]),
10349
10374
  !_ctx.readonly ? withDirectives((openBlock(), createElementBlock("textarea", {
@@ -10358,7 +10383,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
10358
10383
  "data-gramm": "false",
10359
10384
  onKeydown: withKeys(withModifiers(handleTab, ["prevent"]), ["tab"]),
10360
10385
  onInput: _cache[1] || (_cache[1] = ($event) => emit2("update:modelValue", unref(code)))
10361
- }, null, 40, _hoisted_4$d)), [
10386
+ }, null, 40, _hoisted_4$e)), [
10362
10387
  [vModelText, unref(code)]
10363
10388
  ]) : createCommentVNode("", true)
10364
10389
  ], 4)
@@ -10366,10 +10391,10 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
10366
10391
  };
10367
10392
  }
10368
10393
  });
10369
- const CodeEditor = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-4f1dc18a"]]);
10370
- const _hoisted_1$z = ["title"];
10371
- const _hoisted_2$n = ["id", "placeholder", "required"];
10372
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
10394
+ const CodeEditor = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-4f1dc18a"]]);
10395
+ const _hoisted_1$A = ["title"];
10396
+ const _hoisted_2$p = ["id", "placeholder", "required"];
10397
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
10373
10398
  __name: "ColorPicker",
10374
10399
  props: {
10375
10400
  label: {},
@@ -10407,11 +10432,11 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
10407
10432
  placeholder: _ctx.placeholder || _ctx.label,
10408
10433
  class: { "no-edit": !_ctx.editMode },
10409
10434
  required: _ctx.required
10410
- }, _ctx.nativeInputAttrs), null, 16, _hoisted_2$n), [
10435
+ }, _ctx.nativeInputAttrs), null, 16, _hoisted_2$p), [
10411
10436
  [vModelText, inputVal.value]
10412
10437
  ])
10413
10438
  ])
10414
- ], 10, _hoisted_1$z)) : createCommentVNode("", true);
10439
+ ], 10, _hoisted_1$A)) : createCommentVNode("", true);
10415
10440
  };
10416
10441
  }
10417
10442
  });
@@ -11009,9 +11034,9 @@ function buildMatchFn(args) {
11009
11034
  }
11010
11035
  const matchedString = matchResult[0];
11011
11036
  const parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
11012
- const key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, (pattern) => pattern.test(matchedString)) : (
11037
+ const key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, (pattern2) => pattern2.test(matchedString)) : (
11013
11038
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
11014
- findKey$1(parsePatterns, (pattern) => pattern.test(matchedString))
11039
+ findKey$1(parsePatterns, (pattern2) => pattern2.test(matchedString))
11015
11040
  );
11016
11041
  let value;
11017
11042
  value = args.valueCallback ? args.valueCallback(key) : key;
@@ -11938,8 +11963,8 @@ function formatTimezone(offset2, delimiter = "") {
11938
11963
  const minutes = addLeadingZeros(absOffset % 60, 2);
11939
11964
  return sign2 + hours + delimiter + minutes;
11940
11965
  }
11941
- const dateLongFormatter = (pattern, formatLong2) => {
11942
- switch (pattern) {
11966
+ const dateLongFormatter = (pattern2, formatLong2) => {
11967
+ switch (pattern2) {
11943
11968
  case "P":
11944
11969
  return formatLong2.date({ width: "short" });
11945
11970
  case "PP":
@@ -11951,8 +11976,8 @@ const dateLongFormatter = (pattern, formatLong2) => {
11951
11976
  return formatLong2.date({ width: "full" });
11952
11977
  }
11953
11978
  };
11954
- const timeLongFormatter = (pattern, formatLong2) => {
11955
- switch (pattern) {
11979
+ const timeLongFormatter = (pattern2, formatLong2) => {
11980
+ switch (pattern2) {
11956
11981
  case "p":
11957
11982
  return formatLong2.time({ width: "short" });
11958
11983
  case "pp":
@@ -11964,12 +11989,12 @@ const timeLongFormatter = (pattern, formatLong2) => {
11964
11989
  return formatLong2.time({ width: "full" });
11965
11990
  }
11966
11991
  };
11967
- const dateTimeLongFormatter = (pattern, formatLong2) => {
11968
- const matchResult = pattern.match(/(P+)(p+)?/) || [];
11992
+ const dateTimeLongFormatter = (pattern2, formatLong2) => {
11993
+ const matchResult = pattern2.match(/(P+)(p+)?/) || [];
11969
11994
  const datePattern = matchResult[1];
11970
11995
  const timePattern = matchResult[2];
11971
11996
  if (!timePattern) {
11972
- return dateLongFormatter(pattern, formatLong2);
11997
+ return dateLongFormatter(pattern2, formatLong2);
11973
11998
  }
11974
11999
  let dateTimeFormat;
11975
12000
  switch (datePattern) {
@@ -12297,8 +12322,8 @@ function mapValue(parseFnResult, mapFn) {
12297
12322
  rest: parseFnResult.rest
12298
12323
  };
12299
12324
  }
12300
- function parseNumericPattern(pattern, dateString) {
12301
- const matchResult = dateString.match(pattern);
12325
+ function parseNumericPattern(pattern2, dateString) {
12326
+ const matchResult = dateString.match(pattern2);
12302
12327
  if (!matchResult) {
12303
12328
  return null;
12304
12329
  }
@@ -12307,8 +12332,8 @@ function parseNumericPattern(pattern, dateString) {
12307
12332
  rest: dateString.slice(matchResult[0].length)
12308
12333
  };
12309
12334
  }
12310
- function parseTimezonePattern(pattern, dateString) {
12311
- const matchResult = dateString.match(pattern);
12335
+ function parseTimezonePattern(pattern2, dateString) {
12336
+ const matchResult = dateString.match(pattern2);
12312
12337
  if (!matchResult) {
12313
12338
  return null;
12314
12339
  }
@@ -18969,9 +18994,9 @@ const eo = ({
18969
18994
  Object.entries(go).forEach(([e, t]) => {
18970
18995
  e !== "default" && (Hn[e] = t);
18971
18996
  });
18972
- const _hoisted_1$y = ["title"];
18973
- const _hoisted_2$m = { key: 0 };
18974
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
18997
+ const _hoisted_1$z = ["title"];
18998
+ const _hoisted_2$o = { key: 0 };
18999
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
18975
19000
  __name: "DateInput",
18976
19001
  props: {
18977
19002
  required: { type: Boolean },
@@ -19013,7 +19038,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
19013
19038
  class: normalizeClass(["bagel-input", { small: _ctx.small }]),
19014
19039
  title: _ctx.label
19015
19040
  }, [
19016
- _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$m, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
19041
+ _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$o, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
19017
19042
  createVNode(unref(Hn), mergeProps({
19018
19043
  ref_key: "datePicker",
19019
19044
  ref: datePicker,
@@ -19029,19 +19054,19 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
19029
19054
  "minutes-grid-increment": _ctx.minutesGridIncrement,
19030
19055
  "start-time": { hours: 8, minutes: 0 }
19031
19056
  }), null, 16, ["modelValue", "required", "enable-time-picker", "allowed-dates", "time-picker-inline", "minutes-increment", "minutes-grid-increment"])
19032
- ], 10, _hoisted_1$y);
19057
+ ], 10, _hoisted_1$z);
19033
19058
  };
19034
19059
  }
19035
19060
  });
19036
- const _hoisted_1$x = { class: "datetime-wrap" };
19037
- const _hoisted_2$l = { class: "date-wrap" };
19038
- const _hoisted_3$i = {
19061
+ const _hoisted_1$y = { class: "datetime-wrap" };
19062
+ const _hoisted_2$n = { class: "date-wrap" };
19063
+ const _hoisted_3$k = {
19039
19064
  key: 0,
19040
19065
  class: "time-wrap"
19041
19066
  };
19042
- const _hoisted_4$c = ["id", "name", "value"];
19067
+ const _hoisted_4$d = ["id", "name", "value"];
19043
19068
  const _hoisted_5$c = ["for"];
19044
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
19069
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
19045
19070
  __name: "DatePicker",
19046
19071
  props: {
19047
19072
  label: {},
@@ -19069,8 +19094,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
19069
19094
  return `${hour}:${minute}`;
19070
19095
  });
19071
19096
  return (_ctx, _cache) => {
19072
- return openBlock(), createElementBlock("div", _hoisted_1$x, [
19073
- createElementVNode("div", _hoisted_2$l, [
19097
+ return openBlock(), createElementBlock("div", _hoisted_1$y, [
19098
+ createElementVNode("div", _hoisted_2$n, [
19074
19099
  createVNode(unref(Hn), mergeProps({
19075
19100
  modelValue: selectedDate.value,
19076
19101
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedDate.value = $event),
@@ -19088,7 +19113,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
19088
19113
  _: 1
19089
19114
  }, 16, ["modelValue", "allowed-dates", "disabled-dates"])
19090
19115
  ]),
19091
- _ctx.showTimeWrap ? (openBlock(), createElementBlock("div", _hoisted_3$i, [
19116
+ _ctx.showTimeWrap ? (openBlock(), createElementBlock("div", _hoisted_3$k, [
19092
19117
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(hours), (hr2) => {
19093
19118
  return openBlock(), createElementBlock(Fragment, { key: hr2 }, [
19094
19119
  withDirectives(createElementVNode("input", {
@@ -19097,7 +19122,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
19097
19122
  type: "radio",
19098
19123
  name: _ctx.label,
19099
19124
  value: hr2
19100
- }, null, 8, _hoisted_4$c), [
19125
+ }, null, 8, _hoisted_4$d), [
19101
19126
  [vModelRadio, selectedHour.value]
19102
19127
  ]),
19103
19128
  createElementVNode("label", {
@@ -19110,14 +19135,17 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
19110
19135
  };
19111
19136
  }
19112
19137
  });
19113
- const _hoisted_1$w = ["src", "alt", "width", "height"];
19114
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
19138
+ const _hoisted_1$x = { key: 0 };
19139
+ const _hoisted_2$m = ["src", "alt", "width", "height"];
19140
+ const _hoisted_3$j = ["src", "alt", "width", "height"];
19141
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
19115
19142
  __name: "Image",
19116
19143
  props: {
19117
19144
  src: {},
19118
19145
  alt: { default: "" },
19119
19146
  width: {},
19120
- height: {}
19147
+ height: {},
19148
+ caption: {}
19121
19149
  },
19122
19150
  setup(__props) {
19123
19151
  let imageSrc = ref(null);
@@ -19167,15 +19195,29 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
19167
19195
  }
19168
19196
  watch(() => __props.src, loadImage, { immediate: true });
19169
19197
  return (_ctx, _cache) => {
19170
- return unref(imageSrc) ? (openBlock(), createElementBlock("img", mergeProps({
19171
- key: 0,
19198
+ return _ctx.caption ? (openBlock(), createElementBlock("figcaption", _hoisted_1$x, [
19199
+ unref(imageSrc) ? (openBlock(), createElementBlock("img", mergeProps({
19200
+ key: 0,
19201
+ src: unref(imageSrc)
19202
+ }, _ctx.$attrs, {
19203
+ alt: _ctx.alt,
19204
+ width: unref(normalizeDimension)(_ctx.width),
19205
+ height: unref(normalizeDimension)(_ctx.height)
19206
+ }), null, 16, _hoisted_2$m)) : (openBlock(), createBlock(unref(Skeleton), {
19207
+ key: 1,
19208
+ class: "img-web-kit",
19209
+ width: unref(normalizeDimension)(_ctx.width),
19210
+ height: unref(normalizeDimension)(_ctx.height)
19211
+ }, null, 8, ["width", "height"]))
19212
+ ])) : unref(imageSrc) ? (openBlock(), createElementBlock("img", mergeProps({
19213
+ key: 1,
19172
19214
  src: unref(imageSrc)
19173
19215
  }, _ctx.$attrs, {
19174
19216
  alt: _ctx.alt,
19175
19217
  width: unref(normalizeDimension)(_ctx.width),
19176
19218
  height: unref(normalizeDimension)(_ctx.height)
19177
- }), null, 16, _hoisted_1$w)) : (openBlock(), createBlock(unref(Skeleton), {
19178
- key: 1,
19219
+ }), null, 16, _hoisted_3$j)) : (openBlock(), createBlock(unref(Skeleton), {
19220
+ key: 2,
19179
19221
  class: "img-web-kit",
19180
19222
  width: unref(normalizeDimension)(_ctx.width),
19181
19223
  height: unref(normalizeDimension)(_ctx.height)
@@ -19183,17 +19225,17 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
19183
19225
  };
19184
19226
  }
19185
19227
  });
19186
- const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-a96b25a8"]]);
19187
- const _hoisted_1$v = { class: "bagel-input" };
19188
- const _hoisted_2$k = {
19228
+ const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-e7144f6e"]]);
19229
+ const _hoisted_1$w = { class: "bagel-input" };
19230
+ const _hoisted_2$l = {
19189
19231
  key: 0,
19190
19232
  placeholder: "required",
19191
19233
  type: "text",
19192
19234
  required: "",
19193
19235
  class: "pixel"
19194
19236
  };
19195
- const _hoisted_3$h = { class: "m-05 flex opacity-7 z-99" };
19196
- const _hoisted_4$b = { class: "ellipsis-1 word-break-all h-20 m-0" };
19237
+ const _hoisted_3$i = { class: "m-05 flex opacity-7 z-99" };
19238
+ const _hoisted_4$c = { class: "ellipsis-1 word-break-all h-20 m-0" };
19197
19239
  const _hoisted_5$b = {
19198
19240
  key: 1,
19199
19241
  class: "txt-gray txt-12"
@@ -19222,7 +19264,7 @@ const _hoisted_13$1 = {
19222
19264
  class: "progress"
19223
19265
  };
19224
19266
  const _hoisted_14 = { class: "p-1 flex column hover fileUploadPlaceHolder justify-content-center mb-05" };
19225
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
19267
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
19226
19268
  __name: "FileUpload",
19227
19269
  props: /* @__PURE__ */ mergeModels({
19228
19270
  label: {},
@@ -19396,10 +19438,10 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
19396
19438
  return (_ctx, _cache) => {
19397
19439
  const _directive_tooltip = resolveDirective("tooltip");
19398
19440
  const _directive_lightbox = resolveDirective("lightbox");
19399
- return openBlock(), createElementBlock("div", _hoisted_1$v, [
19441
+ return openBlock(), createElementBlock("div", _hoisted_1$w, [
19400
19442
  createElementVNode("label", null, toDisplayString(_ctx.label), 1),
19401
- _ctx.required && !storageFiles.value.length ? (openBlock(), createElementBlock("input", _hoisted_2$k)) : createCommentVNode("", true),
19402
- _ctx.theme === "basic" ? (openBlock(), createBlock(unref(_sfc_main$W), {
19443
+ _ctx.required && !storageFiles.value.length ? (openBlock(), createElementBlock("input", _hoisted_2$l)) : createCommentVNode("", true),
19444
+ _ctx.theme === "basic" ? (openBlock(), createBlock(unref(_sfc_main$X), {
19403
19445
  key: 1,
19404
19446
  outline: "",
19405
19447
  class: "flex p-05 gap-1",
@@ -19424,7 +19466,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
19424
19466
  key: file.id,
19425
19467
  class: "txt-gray txt-12 flex"
19426
19468
  }, [
19427
- createElementVNode("div", _hoisted_3$h, [
19469
+ createElementVNode("div", _hoisted_3$i, [
19428
19470
  withDirectives(createVNode(unref(Btn), {
19429
19471
  color: "gray",
19430
19472
  thin: "",
@@ -19453,7 +19495,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
19453
19495
  }, null, 8, ["href", "download"]), [
19454
19496
  [_directive_tooltip, "Download"]
19455
19497
  ]),
19456
- withDirectives((openBlock(), createElementBlock("p", _hoisted_4$b, [
19498
+ withDirectives((openBlock(), createElementBlock("p", _hoisted_4$c, [
19457
19499
  createTextVNode(toDisplayString(file.name), 1)
19458
19500
  ])), [
19459
19501
  [_directive_lightbox, { src: file.url, download: true }]
@@ -19644,11 +19686,11 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
19644
19686
  };
19645
19687
  }
19646
19688
  });
19647
- const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-6bfdaea2"]]);
19648
- const _hoisted_1$u = ["title"];
19649
- const _hoisted_2$j = { key: 0 };
19650
- const _hoisted_3$g = ["value", "placeholder"];
19651
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
19689
+ const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-6bfdaea2"]]);
19690
+ const _hoisted_1$v = ["title"];
19691
+ const _hoisted_2$k = { key: 0 };
19692
+ const _hoisted_3$h = ["value", "placeholder"];
19693
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
19652
19694
  __name: "JSONInput",
19653
19695
  props: {
19654
19696
  description: { default: "" },
@@ -19671,7 +19713,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
19671
19713
  class: normalizeClass(["bagel-input", { small: _ctx.small }]),
19672
19714
  title: _ctx.description
19673
19715
  }, [
19674
- _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$j, [
19716
+ _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$k, [
19675
19717
  createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
19676
19718
  ])) : createCommentVNode("", true),
19677
19719
  createElementVNode("textarea", {
@@ -19679,12 +19721,164 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
19679
19721
  class: normalizeClass({ "no-edit": !_ctx.editMode }),
19680
19722
  placeholder: _ctx.placeholder,
19681
19723
  onInput: handleInput
19682
- }, null, 42, _hoisted_3$g)
19683
- ], 10, _hoisted_1$u);
19724
+ }, null, 42, _hoisted_3$h)
19725
+ ], 10, _hoisted_1$v);
19726
+ };
19727
+ }
19728
+ });
19729
+ const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-1cbaeab2"]]);
19730
+ const _hoisted_1$u = ["for"];
19731
+ const _hoisted_2$j = ["id", "placeholder", "disabled", "required", "readonly", "onKeydown"];
19732
+ const _hoisted_3$g = { key: 1 };
19733
+ const _hoisted_4$b = {
19734
+ key: 5,
19735
+ class: "flex column spinner"
19736
+ };
19737
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
19738
+ __name: "NumberInput",
19739
+ props: {
19740
+ modelValue: {},
19741
+ min: {},
19742
+ max: {},
19743
+ step: { default: 1 },
19744
+ spinner: { type: Boolean, default: true },
19745
+ iconStart: {},
19746
+ icon: {},
19747
+ label: {},
19748
+ placeholder: {},
19749
+ disabled: { type: Boolean },
19750
+ required: { type: Boolean },
19751
+ id: {},
19752
+ helptext: {},
19753
+ layout: {},
19754
+ center: { type: Boolean }
19755
+ },
19756
+ emits: ["update:modelValue"],
19757
+ setup(__props, { emit: __emit }) {
19758
+ const emit2 = __emit;
19759
+ let numberValue = ref(0);
19760
+ const btnLayouts = ["horizontal", "vertical"];
19761
+ function increment() {
19762
+ if (!__props.max || numberValue.value + __props.step <= __props.max) {
19763
+ numberValue.value = (numberValue.value || 0) + __props.step;
19764
+ emit2("update:modelValue", numberValue.value);
19765
+ }
19766
+ }
19767
+ function decrement() {
19768
+ if (!__props.min || numberValue.value - __props.step >= __props.min) {
19769
+ numberValue.value = (numberValue.value || 0) - __props.step;
19770
+ emit2("update:modelValue", numberValue.value);
19771
+ }
19772
+ }
19773
+ function formatNumber2(num) {
19774
+ return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
19775
+ }
19776
+ let formattedValue = ref("");
19777
+ function inputHandler() {
19778
+ const numeric = formattedValue.value.replace(/[^\d.-]/g, "");
19779
+ if (numeric === "" || numeric === "-" || numeric === "." || numeric === "-." || numeric.endsWith(".")) return;
19780
+ numberValue.value = Number.parseFloat(numeric);
19781
+ formattedValue.value = formatNumber2(numberValue.value);
19782
+ emit2("update:modelValue", numberValue.value);
19783
+ }
19784
+ watch(() => numberValue.value, () => {
19785
+ formattedValue.value = formatNumber2(numberValue.value);
19786
+ }, { immediate: true });
19787
+ watch(() => __props.modelValue, (newVal) => {
19788
+ if (newVal !== numberValue.value) {
19789
+ numberValue.value = newVal;
19790
+ }
19791
+ }, { immediate: true });
19792
+ return (_ctx, _cache) => {
19793
+ const _directive_pattern = resolveDirective("pattern");
19794
+ return openBlock(), createElementBlock("div", {
19795
+ class: normalizeClass(["bagel-input num-input", {
19796
+ textInputSpinnerWrap: _ctx.icon || _ctx.spinner,
19797
+ txtInputIconStart: _ctx.iconStart
19798
+ }])
19799
+ }, [
19800
+ createElementVNode("label", { for: _ctx.id }, [
19801
+ createTextVNode(toDisplayString(_ctx.label) + " ", 1),
19802
+ createElementVNode("div", {
19803
+ class: normalizeClass(["gap-025", { "column flex": _ctx.layout === "vertical", "flex": _ctx.layout === "horizontal" }])
19804
+ }, [
19805
+ _ctx.layout && btnLayouts.includes(_ctx.layout) ? (openBlock(), createBlock(unref(Btn), {
19806
+ key: 0,
19807
+ icon: "add",
19808
+ class: normalizeClass(["radius", [{ "bgl-big-ctrl-num-btn": _ctx.layout === "vertical" }]]),
19809
+ onClick: increment
19810
+ }, null, 8, ["class"])) : createCommentVNode("", true),
19811
+ withDirectives(createElementVNode("input", {
19812
+ id: _ctx.id,
19813
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(formattedValue) ? formattedValue.value = $event : formattedValue = $event),
19814
+ type: "text",
19815
+ class: normalizeClass({ "txt-center": _ctx.center, "min0": _ctx.layout }),
19816
+ placeholder: _ctx.placeholder || _ctx.label,
19817
+ disabled: _ctx.disabled,
19818
+ required: _ctx.required,
19819
+ readonly: _ctx.disabled,
19820
+ inputmode: "numeric",
19821
+ autocomplete: "off",
19822
+ autocorrect: "off",
19823
+ spellcheck: "false",
19824
+ onInput: inputHandler,
19825
+ onKeydown: [
19826
+ withKeys(withModifiers(increment, ["prevent"]), ["up"]),
19827
+ withKeys(withModifiers(decrement, ["prevent"]), ["down"])
19828
+ ]
19829
+ }, null, 42, _hoisted_2$j), [
19830
+ [
19831
+ vModelText,
19832
+ unref(formattedValue),
19833
+ void 0,
19834
+ { trim: true }
19835
+ ],
19836
+ [
19837
+ _directive_pattern,
19838
+ void 0,
19839
+ void 0,
19840
+ { number: true }
19841
+ ]
19842
+ ]),
19843
+ _ctx.helptext ? (openBlock(), createElementBlock("p", _hoisted_3$g, toDisplayString(_ctx.helptext), 1)) : createCommentVNode("", true),
19844
+ _ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$c), {
19845
+ key: 2,
19846
+ class: "iconStart",
19847
+ icon: _ctx.iconStart
19848
+ }, null, 8, ["icon"])) : createCommentVNode("", true),
19849
+ _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$c), {
19850
+ key: 3,
19851
+ icon: _ctx.icon
19852
+ }, null, 8, ["icon"])) : createCommentVNode("", true),
19853
+ _ctx.layout && btnLayouts.includes(_ctx.layout) ? (openBlock(), createBlock(unref(Btn), {
19854
+ key: 4,
19855
+ icon: "remove",
19856
+ class: normalizeClass(["radius", [{ "bgl-big-ctrl-num-btn": _ctx.layout === "vertical" }]]),
19857
+ onClick: decrement
19858
+ }, null, 8, ["class"])) : createCommentVNode("", true),
19859
+ _ctx.spinner && (!_ctx.layout || !btnLayouts.includes(_ctx.layout)) ? (openBlock(), createElementBlock("div", _hoisted_4$b, [
19860
+ createVNode(unref(Btn), {
19861
+ icon: "add",
19862
+ flat: "",
19863
+ thin: "",
19864
+ class: "bgl-ctrl-num-btn",
19865
+ onClick: increment
19866
+ }),
19867
+ createVNode(unref(Btn), {
19868
+ icon: "remove",
19869
+ flat: "",
19870
+ thin: "",
19871
+ class: "bgl-ctrl-num-btn",
19872
+ onClick: decrement
19873
+ })
19874
+ ])) : createCommentVNode("", true)
19875
+ ], 2)
19876
+ ], 8, _hoisted_1$u)
19877
+ ], 2);
19684
19878
  };
19685
19879
  }
19686
19880
  });
19687
- const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-1cbaeab2"]]);
19881
+ const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-7b056cf2"]]);
19688
19882
  const _hoisted_1$t = ["value", "autofocus", "onKeydown", "onPaste"];
19689
19883
  const _sfc_main$C = /* @__PURE__ */ defineComponent({
19690
19884
  __name: "OTP",
@@ -20086,14 +20280,14 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
20086
20280
  unref(from) !== _ctx.min ? (openBlock(), createElementBlock("p", {
20087
20281
  key: 1,
20088
20282
  class: "txt-center txt-12 range-slider-position-txt absolute line-height-1 opacity-0",
20089
- style: normalizeStyle({ marginInlineStart: `calc(${fromPercentage.value}% - 4px)` })
20283
+ style: normalizeStyle({ "--progress": `${fromPercentage.value}` })
20090
20284
  }, [
20091
20285
  createElementVNode("span", null, toDisplayString(unref(from)), 1)
20092
20286
  ], 4)) : createCommentVNode("", true),
20093
20287
  isRange.value && unref(to2) !== _ctx.max ? (openBlock(), createElementBlock("p", {
20094
20288
  key: 2,
20095
20289
  class: "txt-center txt-12 range-slider-position-txt opacity-0 line-height-1 absolute",
20096
- style: normalizeStyle({ marginInlineStart: `calc(${toPercentage.value}% - 12px)` })
20290
+ style: normalizeStyle({ "--progress": `${toPercentage.value}` })
20097
20291
  }, [
20098
20292
  createElementVNode("span", null, toDisplayString(unref(to2)), 1)
20099
20293
  ], 4)) : createCommentVNode("", true)
@@ -20106,7 +20300,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
20106
20300
  };
20107
20301
  }
20108
20302
  });
20109
- const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-dae624bd"]]);
20303
+ const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-df7a13a5"]]);
20110
20304
  const defaultToolbarConfig = [
20111
20305
  "h2",
20112
20306
  "h3",
@@ -20253,7 +20447,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
20253
20447
  return openBlock(), createElementBlock("div", _hoisted_1$o, [
20254
20448
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.config.map(configToOption).filter(Boolean), (action, index2) => {
20255
20449
  return openBlock(), createElementBlock(Fragment, { key: index2 }, [
20256
- action.name === "insertTable" ? (openBlock(), createBlock(unref(_sfc_main$S), {
20450
+ action.name === "insertTable" ? (openBlock(), createBlock(unref(_sfc_main$T), {
20257
20451
  key: 0,
20258
20452
  placement: "bottom-start",
20259
20453
  thin: "",
@@ -21193,7 +21387,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
21193
21387
  }
21194
21388
  });
21195
21389
  return (_ctx, _cache) => {
21196
- return openBlock(), createBlock(unref(_sfc_main$S), {
21390
+ return openBlock(), createBlock(unref(_sfc_main$T), {
21197
21391
  ref_key: "dropdown",
21198
21392
  ref: dropdown,
21199
21393
  shown: unref(open),
@@ -21272,7 +21466,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
21272
21466
  height: "25px",
21273
21467
  class: "mx-1 my-1"
21274
21468
  })) : createCommentVNode("", true),
21275
- createVNode(unref(_sfc_main$W), {
21469
+ createVNode(unref(_sfc_main$X), {
21276
21470
  class: "p-05",
21277
21471
  style: normalizeStyle({ width: _ctx.fullWidth ? "100%" : "auto" })
21278
21472
  }, {
@@ -22196,9 +22390,9 @@ function _objectWithoutProperties(source, excluded) {
22196
22390
  return target;
22197
22391
  }
22198
22392
  var version = "1.14.0";
22199
- function userAgent(pattern) {
22393
+ function userAgent(pattern2) {
22200
22394
  if (typeof window !== "undefined" && window.navigator) {
22201
- return !!/* @__PURE__ */ navigator.userAgent.match(pattern);
22395
+ return !!/* @__PURE__ */ navigator.userAgent.match(pattern2);
22202
22396
  }
22203
22397
  }
22204
22398
  var IE11OrLess = userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);
@@ -27648,7 +27842,7 @@ var Format = /* @__PURE__ */ function() {
27648
27842
  }
27649
27843
  _createClass$1(Format2, [{
27650
27844
  key: "pattern",
27651
- value: function pattern() {
27845
+ value: function pattern2() {
27652
27846
  return this._format[0];
27653
27847
  }
27654
27848
  }, {
@@ -27700,7 +27894,7 @@ var Type = /* @__PURE__ */ function() {
27700
27894
  }
27701
27895
  _createClass$1(Type2, [{
27702
27896
  key: "pattern",
27703
- value: function pattern() {
27897
+ value: function pattern2() {
27704
27898
  if (this.metadata.v1) return this.type;
27705
27899
  return this.type[0];
27706
27900
  }
@@ -28378,7 +28572,7 @@ function _defineProperties(target, props2) {
28378
28572
  }
28379
28573
  }
28380
28574
  function _createClass(Constructor, protoProps, staticProps) {
28381
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
28575
+ _defineProperties(Constructor.prototype, protoProps);
28382
28576
  Object.defineProperty(Constructor, "prototype", { writable: false });
28383
28577
  return Constructor;
28384
28578
  }
@@ -29430,7 +29624,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
29430
29624
  withKeys(reset, ["tab"])
29431
29625
  ]
29432
29626
  }, [
29433
- !computedDropDownOptions.value.hide ? (openBlock(), createBlock(unref(_sfc_main$S), {
29627
+ !computedDropDownOptions.value.hide ? (openBlock(), createBlock(unref(_sfc_main$T), {
29434
29628
  key: 0,
29435
29629
  ref_key: "phoneDropdown",
29436
29630
  ref: phoneDropdown,
@@ -29795,7 +29989,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
29795
29989
  },
29796
29990
  setup(__props) {
29797
29991
  return (_ctx, _cache) => {
29798
- return openBlock(), createBlock(unref(_sfc_main$W), { class: "hide m_grid gap-05 bgl_bottombar px-1 txt14 justify-content-start align-items-center overflow-x" }, {
29992
+ return openBlock(), createBlock(unref(_sfc_main$X), { class: "hide m_grid gap-05 bgl_bottombar px-1 txt14 justify-content-start align-items-center overflow-x" }, {
29799
29993
  default: withCtx(() => [
29800
29994
  renderSlot(_ctx.$slots, "brand", {}, void 0, true),
29801
29995
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.navLinks, (nav, i2) => {
@@ -29896,7 +30090,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
29896
30090
  icon: "keyboard_arrow_right",
29897
30091
  onClick: unref(toggleMenu)
29898
30092
  }, null, 8, ["onClick"]),
29899
- createVNode(unref(_sfc_main$W), { class: "py-1 px-05 h-100 flex column gap-05 rounded relative bg-primary font-light overflow-y" }, {
30093
+ createVNode(unref(_sfc_main$X), { class: "py-1 px-05 h-100 flex column gap-05 rounded relative bg-primary font-light overflow-y" }, {
29900
30094
  default: withCtx(() => [
29901
30095
  !unref(isOpen) || !unref(slots)["brand-open"] ? renderSlot(_ctx.$slots, "brand", { key: 0 }, void 0, true) : createCommentVNode("", true),
29902
30096
  unref(isOpen) ? renderSlot(_ctx.$slots, "brand-open", { key: 1 }, void 0, true) : createCommentVNode("", true),
@@ -30417,7 +30611,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
30417
30611
  onClick: _cache[1] || (_cache[1] = () => _ctx.dismissable ? closeModal() : ""),
30418
30612
  onKeydown: withKeys(closeModal, ["esc"])
30419
30613
  }, [
30420
- createVNode(unref(_sfc_main$W), {
30614
+ createVNode(unref(_sfc_main$X), {
30421
30615
  class: "modal",
30422
30616
  style: normalizeStyle({ ...maxWidth.value }),
30423
30617
  onClick: _cache[0] || (_cache[0] = withModifiers(() => {
@@ -30594,7 +30788,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
30594
30788
  "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => emit2("update:visible", $event))
30595
30789
  }, createSlots({
30596
30790
  default: withCtx(() => [
30597
- _ctx.visible ? (openBlock(), createBlock(unref(_sfc_main$O), {
30791
+ _ctx.visible ? (openBlock(), createBlock(unref(_sfc_main$P), {
30598
30792
  key: 0,
30599
30793
  ref_key: "form",
30600
30794
  ref: form,
@@ -31712,7 +31906,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
31712
31906
  row,
31713
31907
  field
31714
31908
  }, void 0, true) : (openBlock(), createElementBlock("div", _hoisted_10$1, [
31715
- createVNode(unref(_sfc_main$P), {
31909
+ createVNode(unref(_sfc_main$Q), {
31716
31910
  class: "embedded-field",
31717
31911
  field,
31718
31912
  modelValue: row,
@@ -32748,7 +32942,7 @@ function openClickHandler(e, el, binding) {
32748
32942
  const lightboxInstance2 = getLightboxInstance();
32749
32943
  if (!lightboxInstance2 || !lightboxInstance2.open) return;
32750
32944
  const open = lightboxInstance2.open;
32751
- const group = item && item.group ? groups[item.group] : void 0;
32945
+ const group = item.group ? groups[item.group] : void 0;
32752
32946
  open(item, group);
32753
32947
  }
32754
32948
  function bindingToItem(binding, el) {
@@ -32788,6 +32982,179 @@ const Lightbox = {
32788
32982
  app.directive("lightbox", lightboxDirective);
32789
32983
  }
32790
32984
  };
32985
+ const DEFAULT_PATTERNS = {
32986
+ pint: { pattern: /\d/ },
32987
+ int: { pattern: /[\d\-]/ },
32988
+ pnum: { pattern: /[\d.]/ },
32989
+ money: { pattern: /[\d.\s,]/ },
32990
+ number: { pattern: /[\d\-.]/ },
32991
+ num: { pattern: /[\d\-.]/ },
32992
+ hex: { pattern: /[0-9a-f]/i },
32993
+ email: { pattern: /[\w.\-@]/ },
32994
+ alpha: { pattern: /[a-z_]/i },
32995
+ alphanum: { pattern: /\w/ },
32996
+ lower: { pattern: /[a-z]/, transform: (v2) => v2.toLowerCase() },
32997
+ upper: { pattern: /[A-Z]/, transform: (v2) => v2.toUpperCase() },
32998
+ slug: { pattern: /[a-z0-9-]/i, transform: (v2) => v2.toLowerCase().replace(/\s/g, "-") }
32999
+ };
33000
+ const stateMap = /* @__PURE__ */ new WeakMap();
33001
+ function getTarget(el) {
33002
+ if (el instanceof HTMLInputElement || el instanceof HTMLTextAreaElement) {
33003
+ return el;
33004
+ }
33005
+ const target = el.querySelector("input, textarea");
33006
+ return target instanceof HTMLInputElement || target instanceof HTMLTextAreaElement ? target : null;
33007
+ }
33008
+ function getModifiers(binding) {
33009
+ const modifiers = Object.keys(binding.modifiers || {});
33010
+ return modifiers.length ? modifiers[modifiers.length - 1] : "";
33011
+ }
33012
+ function getRegex(state2) {
33013
+ if (state2.pattern) return state2.pattern;
33014
+ if (state2.modifier) return DEFAULT_PATTERNS[state2.modifier].pattern || /./;
33015
+ return /./;
33016
+ }
33017
+ function bindEvents(el, target, state2) {
33018
+ state2.keydownEvent = (event) => {
33019
+ onKeydown(event, target, state2);
33020
+ };
33021
+ state2.pasteEvent = (event) => {
33022
+ onPaste(event, target, state2);
33023
+ };
33024
+ target.addEventListener("keydown", state2.keydownEvent);
33025
+ target.addEventListener("paste", state2.pasteEvent);
33026
+ }
33027
+ function unbindEvents(target, state2) {
33028
+ if (state2.keydownEvent) target.removeEventListener("keydown", state2.keydownEvent);
33029
+ if (state2.pasteEvent) target.removeEventListener("paste", state2.pasteEvent);
33030
+ state2.keydownEvent = void 0;
33031
+ state2.pasteEvent = void 0;
33032
+ }
33033
+ function onKeydown(event, target, state2) {
33034
+ if (event.ctrlKey || event.altKey || event.metaKey || event.key === "Tab" || event.key === "Backspace" || event.key === "Delete" || event.key === "ArrowLeft" || event.key === "ArrowRight" || event.key === "ArrowUp" || event.key === "ArrowDown" || event.key === "Enter") return;
33035
+ const regex2 = getRegex(state2);
33036
+ const testKey = event.key;
33037
+ if (!regex2.test(testKey)) {
33038
+ event.preventDefault();
33039
+ } else if (state2.modifier) {
33040
+ const { transform } = DEFAULT_PATTERNS[state2.modifier];
33041
+ if (transform) {
33042
+ event.preventDefault();
33043
+ const transformedValue = transform(testKey);
33044
+ const cursorPos = target.selectionStart ?? 0;
33045
+ const newValue = target.value.slice(0, cursorPos) + transformedValue + target.value.slice(cursorPos);
33046
+ target.value = newValue;
33047
+ target.setSelectionRange(cursorPos + transformedValue.length, cursorPos + transformedValue.length);
33048
+ }
33049
+ }
33050
+ }
33051
+ function onPaste(event, target, state2) {
33052
+ var _a2;
33053
+ const regex2 = getRegex(state2);
33054
+ const clipboardData = ((_a2 = event.clipboardData) == null ? void 0 : _a2.getData("text")) || "";
33055
+ if (!regex2.test(clipboardData)) {
33056
+ event.preventDefault();
33057
+ } else if (state2.modifier) {
33058
+ const { transform } = DEFAULT_PATTERNS[state2.modifier];
33059
+ if (transform) {
33060
+ event.preventDefault();
33061
+ const transformedValue = transform(clipboardData);
33062
+ const cursorPos = target.selectionStart ?? 0;
33063
+ const newValue = target.value.slice(0, cursorPos) + transformedValue + target.value.slice(cursorPos);
33064
+ target.value = newValue;
33065
+ target.setSelectionRange(cursorPos + transformedValue.length, cursorPos + transformedValue.length);
33066
+ }
33067
+ }
33068
+ }
33069
+ const pattern = {
33070
+ beforeMount(el, binding) {
33071
+ const target = getTarget(el);
33072
+ if (!target) return;
33073
+ const state2 = {
33074
+ modifier: getModifiers(binding)
33075
+ };
33076
+ if (typeof binding.value === "object") {
33077
+ state2.pattern = binding.value.pattern || /./;
33078
+ state2.validateOnly = binding.value.validateOnly || false;
33079
+ }
33080
+ stateMap.set(el, state2);
33081
+ bindEvents(el, target, state2);
33082
+ },
33083
+ updated(el, binding) {
33084
+ const target = getTarget(el);
33085
+ if (!target) return;
33086
+ const state2 = stateMap.get(el);
33087
+ if (!state2) return;
33088
+ unbindEvents(target, state2);
33089
+ state2.modifier = getModifiers(binding);
33090
+ if (typeof binding.value === "object") {
33091
+ state2.pattern = binding.value.pattern || /./;
33092
+ state2.validateOnly = binding.value.validateOnly || false;
33093
+ }
33094
+ bindEvents(el, target, state2);
33095
+ },
33096
+ unmounted(el) {
33097
+ const target = getTarget(el);
33098
+ const state2 = stateMap.get(el);
33099
+ if (target && state2) {
33100
+ unbindEvents(target, state2);
33101
+ }
33102
+ stateMap.delete(el);
33103
+ }
33104
+ };
33105
+ const ripple = {
33106
+ mounted(el, binding) {
33107
+ const clickHandler2 = (e) => {
33108
+ const rect = el.getBoundingClientRect();
33109
+ const size2 = Math.max(rect.width, rect.height);
33110
+ const ripple2 = document.createElement("span");
33111
+ ripple2.className = "ripple";
33112
+ Object.assign(ripple2.style, {
33113
+ width: `${size2}px`,
33114
+ height: `${size2}px`,
33115
+ left: `${e.clientX - rect.left - size2 / 2}px`,
33116
+ top: `${e.clientY - rect.top - size2 / 2}px`,
33117
+ position: "absolute",
33118
+ borderRadius: "50%",
33119
+ transform: "scale(0)",
33120
+ background: "rgba(0, 0, 0, 0.3)",
33121
+ pointerEvents: "none",
33122
+ animation: "rippleEffect 0.6s ease-out"
33123
+ });
33124
+ el.appendChild(ripple2);
33125
+ setTimeout(() => {
33126
+ ripple2.remove();
33127
+ }, 600);
33128
+ };
33129
+ el.__rippleClickHandler = clickHandler2;
33130
+ if (binding.value !== false) {
33131
+ if (getComputedStyle(el).position === "static") {
33132
+ el.style.position = "relative";
33133
+ }
33134
+ el.style.overflow = "hidden";
33135
+ el.addEventListener("mousedown", clickHandler2);
33136
+ }
33137
+ },
33138
+ updated(el, binding) {
33139
+ const clickHandler2 = el.__rippleClickHandler;
33140
+ if (binding.value === false) {
33141
+ el.removeEventListener("mousedown", clickHandler2);
33142
+ } else {
33143
+ if (getComputedStyle(el).position === "static") {
33144
+ el.style.position = "relative";
33145
+ }
33146
+ el.style.overflow = "hidden";
33147
+ el.addEventListener("mousedown", clickHandler2);
33148
+ }
33149
+ },
33150
+ unmounted(el) {
33151
+ const clickHandler2 = el.__rippleClickHandler;
33152
+ if (clickHandler2) {
33153
+ el.removeEventListener("mousedown", clickHandler2);
33154
+ delete el.__rippleClickHandler;
33155
+ }
33156
+ }
33157
+ };
32791
33158
  function getBaseField(id, labelOrRest = {}, rest = {}) {
32792
33159
  if (typeof labelOrRest === "object") return { id, ...labelOrRest };
32793
33160
  return { id, label: labelOrRest, ...rest };
@@ -32834,7 +33201,8 @@ function slctField(id, label, options, config) {
32834
33201
  disabled: config == null ? void 0 : config.disabled,
32835
33202
  searchable: config == null ? void 0 : config.searchable,
32836
33203
  multiselect: config == null ? void 0 : config.multiselect,
32837
- onSearch: config == null ? void 0 : config.onSearch
33204
+ onSearch: config == null ? void 0 : config.onSearch,
33205
+ clearable: config == null ? void 0 : config.clearable
32838
33206
  }
32839
33207
  };
32840
33208
  }
@@ -32892,7 +33260,7 @@ function frmRow(...children2) {
32892
33260
  function bglForm(idOrField, ...schema) {
32893
33261
  if (typeof idOrField === "string") {
32894
33262
  return {
32895
- $el: markRaw(_sfc_main$O),
33263
+ $el: markRaw(_sfc_main$P),
32896
33264
  id: idOrField,
32897
33265
  attrs: {
32898
33266
  schema: [idOrField, ...schema]
@@ -32900,7 +33268,7 @@ function bglForm(idOrField, ...schema) {
32900
33268
  };
32901
33269
  }
32902
33270
  return {
32903
- $el: markRaw(_sfc_main$O),
33271
+ $el: markRaw(_sfc_main$P),
32904
33272
  attrs: {
32905
33273
  schema: [idOrField, ...schema]
32906
33274
  }
@@ -32924,6 +33292,14 @@ function findBglFieldById(id, _schema) {
32924
33292
  }
32925
33293
  return void 0;
32926
33294
  }
33295
+ function arrField(id, label, schema, options) {
33296
+ return {
33297
+ label,
33298
+ id,
33299
+ $el: "array",
33300
+ attrs: { schema, delete: true, add: true, ...options }
33301
+ };
33302
+ }
32927
33303
  const state = reactive({
32928
33304
  defaultLang: "",
32929
33305
  availableLangs: [],
@@ -33108,59 +33484,6 @@ const clickOutside = {
33108
33484
  document.removeEventListener("click", el.clickOutsideEvent);
33109
33485
  }
33110
33486
  };
33111
- const ripple = {
33112
- mounted(el, binding) {
33113
- const clickHandler2 = (e) => {
33114
- const rect = el.getBoundingClientRect();
33115
- const size2 = Math.max(rect.width, rect.height);
33116
- const ripple2 = document.createElement("span");
33117
- ripple2.className = "ripple";
33118
- Object.assign(ripple2.style, {
33119
- width: `${size2}px`,
33120
- height: `${size2}px`,
33121
- left: `${e.clientX - rect.left - size2 / 2}px`,
33122
- top: `${e.clientY - rect.top - size2 / 2}px`,
33123
- position: "absolute",
33124
- borderRadius: "50%",
33125
- transform: "scale(0)",
33126
- background: "rgba(0, 0, 0, 0.3)",
33127
- pointerEvents: "none",
33128
- animation: "rippleEffect 0.6s ease-out"
33129
- });
33130
- el.appendChild(ripple2);
33131
- setTimeout(() => {
33132
- ripple2.remove();
33133
- }, 600);
33134
- };
33135
- el.__rippleClickHandler = clickHandler2;
33136
- if (binding.value !== false) {
33137
- if (getComputedStyle(el).position === "static") {
33138
- el.style.position = "relative";
33139
- }
33140
- el.style.overflow = "hidden";
33141
- el.addEventListener("mousedown", clickHandler2);
33142
- }
33143
- },
33144
- updated(el, binding) {
33145
- const clickHandler2 = el.__rippleClickHandler;
33146
- if (binding.value === false) {
33147
- el.removeEventListener("mousedown", clickHandler2);
33148
- } else {
33149
- if (getComputedStyle(el).position === "static") {
33150
- el.style.position = "relative";
33151
- }
33152
- el.style.overflow = "hidden";
33153
- el.addEventListener("mousedown", clickHandler2);
33154
- }
33155
- },
33156
- unmounted(el) {
33157
- const clickHandler2 = el.__rippleClickHandler;
33158
- if (clickHandler2) {
33159
- el.removeEventListener("mousedown", clickHandler2);
33160
- delete el.__rippleClickHandler;
33161
- }
33162
- }
33163
- };
33164
33487
  const bagelInjectionKey = Symbol("bagel");
33165
33488
  const i18nTInjectionKey = Symbol("bagel");
33166
33489
  function useBagel() {
@@ -33178,6 +33501,7 @@ const BagelVue = {
33178
33501
  const bagel = new Bagel({ host: options.host, onError: options.onError });
33179
33502
  app.directive("click-outside", clickOutside);
33180
33503
  app.directive("ripple", ripple);
33504
+ app.directive("pattern", pattern);
33181
33505
  app.use(Lightbox);
33182
33506
  app.use(Gt$1, {
33183
33507
  themes: {
@@ -33674,31 +33998,31 @@ function timeAgo(date2, lang = "en") {
33674
33998
  return selectedLang.justNow;
33675
33999
  }
33676
34000
  export {
33677
- _sfc_main$12 as Accordion,
34001
+ _sfc_main$13 as Accordion,
33678
34002
  AccordionItem,
33679
- _sfc_main$10 as AddressSearch,
34003
+ _sfc_main$11 as AddressSearch,
33680
34004
  Alert,
33681
34005
  Avatar,
33682
34006
  Badge,
33683
- _sfc_main$O as BagelForm,
34007
+ _sfc_main$P as BagelForm,
33684
34008
  BagelVue,
33685
- _sfc_main$P as BglField,
33686
- _sfc_main$O as BglForm,
33687
- _sfc_main$N as BglMultiStepForm,
34009
+ _sfc_main$Q as BglField,
34010
+ _sfc_main$P as BglForm,
34011
+ _sfc_main$O as BglMultiStepForm,
33688
34012
  BglVideo,
33689
34013
  BottomMenu,
33690
34014
  Btn,
33691
- _sfc_main$W as Card,
34015
+ _sfc_main$X as Card,
33692
34016
  Carousel,
33693
34017
  CheckInput,
33694
34018
  Checkbox,
33695
34019
  CodeEditor,
33696
- _sfc_main$I as ColorPicker,
34020
+ _sfc_main$J as ColorPicker,
33697
34021
  DataPreview,
33698
- _sfc_main$H as DateInput,
33699
- _sfc_main$G as DatePicker,
33700
- _sfc_main$S as Dropdown,
33701
- _sfc_main$M as FieldArray,
34022
+ _sfc_main$I as DateInput,
34023
+ _sfc_main$H as DatePicker,
34024
+ _sfc_main$T as Dropdown,
34025
+ _sfc_main$N as FieldArray,
33702
34026
  FileUpload,
33703
34027
  Flag,
33704
34028
  IMAGE_FORMATS,
@@ -33708,7 +34032,7 @@ export {
33708
34032
  Image$1 as Image,
33709
34033
  JSONInput,
33710
34034
  Layout,
33711
- _sfc_main$U as Lineart,
34035
+ _sfc_main$V as Lineart,
33712
34036
  _sfc_main$g as ListItem,
33713
34037
  ListView,
33714
34038
  Loading,
@@ -33719,6 +34043,7 @@ export {
33719
34043
  ModalForm,
33720
34044
  ModalPlugin,
33721
34045
  NavBar,
34046
+ NumberInput,
33722
34047
  OTP,
33723
34048
  _sfc_main$7 as PageTitle,
33724
34049
  _sfc_main$B as PasswordInput,