@bagelink/vue 0.0.1113 → 0.0.1119

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 (223) hide show
  1. package/dist/common-C_IH8b5S.cjs +12580 -0
  2. package/dist/common-DoeNgx31.js +12579 -0
  3. package/dist/components/AddressSaerch.vue.d.ts +7 -0
  4. package/dist/components/AddressSaerch.vue.d.ts.map +1 -0
  5. package/dist/components/ComboBox.vue.d.ts +3 -3
  6. package/dist/components/Comments.vue.d.ts +2 -2
  7. package/dist/components/ContactSubmissions.vue.d.ts +2 -2
  8. package/dist/components/FormSchema.vue.d.ts +4 -5
  9. package/dist/components/LangText.vue.d.ts +2 -2
  10. package/dist/components/ModalBglForm.vue.d.ts +20 -21
  11. package/dist/components/ModalForm.vue.d.ts +0 -125
  12. package/dist/components/ModalForm.vue.d.ts.map +1 -1
  13. package/dist/components/PersonPreview.vue.d.ts +4 -5
  14. package/dist/components/PersonPreviewFormkit.vue.d.ts +3 -4
  15. package/dist/components/Popover.vue.d.ts +10 -0
  16. package/dist/components/Popover.vue.d.ts.map +1 -0
  17. package/dist/components/RTXEditor.vue.d.ts +3 -3
  18. package/dist/components/TabbedLayout.vue.d.ts +4 -5
  19. package/dist/components/charts/BarChart.vue.d.ts +2 -2
  20. package/dist/components/form/BagelForm.vue.d.ts +44 -0
  21. package/dist/components/form/BagelForm.vue.d.ts.map +1 -0
  22. package/dist/components/form/ItemRef.vue.d.ts +3 -5
  23. package/dist/components/form/ItemRef.vue.d.ts.map +1 -1
  24. package/dist/components/form/MaterialIcon.vue.d.ts +3 -4
  25. package/dist/components/form/PlainInputField.vue.d.ts +3 -3
  26. package/dist/components/form/index.d.ts +1 -1
  27. package/dist/components/form/index.d.ts.map +1 -1
  28. package/dist/components/form/inputs/CurrencyInput.vue.d.ts +3 -3
  29. package/dist/components/form/inputs/DatetimeInput.vue.d.ts +3 -3
  30. package/dist/components/form/inputs/DurationInput.vue.d.ts +3 -3
  31. package/dist/components/form/inputs/DynamicLinkField.vue.d.ts +3 -3
  32. package/dist/components/form/inputs/EmailInput.vue.d.ts +3 -3
  33. package/dist/components/form/inputs/FloatInput.vue.d.ts +3 -3
  34. package/dist/components/form/inputs/IntInput.vue.d.ts +3 -3
  35. package/dist/components/form/inputs/LinkField.vue.d.ts +3 -3
  36. package/dist/components/form/inputs/NumberInput.vue.d.ts +1 -1
  37. package/dist/components/form/inputs/NumberInput.vue.d.ts.map +1 -1
  38. package/dist/components/form/inputs/Password.vue.d.ts +3 -3
  39. package/dist/components/form/inputs/PlainText.vue.d.ts +3 -3
  40. package/dist/components/form/inputs/ReadOnlyInput.vue.d.ts +2 -2
  41. package/dist/components/form/inputs/RichText/Toolbar.vue.d.ts +14 -0
  42. package/dist/components/form/inputs/RichText/Toolbar.vue.d.ts.map +1 -0
  43. package/dist/components/form/inputs/RichText/formatting.d.ts +11 -0
  44. package/dist/components/form/inputs/RichText/formatting.d.ts.map +1 -0
  45. package/dist/components/form/inputs/RichText/richtext-types.d.ts +3 -0
  46. package/dist/components/form/inputs/RichText/richtext-types.d.ts.map +1 -0
  47. package/dist/components/form/inputs/RichText2/Toolbar.vue.d.ts.map +1 -1
  48. package/dist/components/form/inputs/RichText2/index.vue.d.ts +0 -1
  49. package/dist/components/form/inputs/RichText2/index.vue.d.ts.map +1 -1
  50. package/dist/components/form/inputs/RichTextEditor.vue.d.ts +3 -3
  51. package/dist/components/form/inputs/SelectField.vue.d.ts +8 -6
  52. package/dist/components/form/inputs/SelectField.vue.d.ts.map +1 -1
  53. package/dist/components/form/inputs/TextArea.vue.d.ts +3 -3
  54. package/dist/components/form/inputs/Upload/UploadFile.vue.d.ts +86 -0
  55. package/dist/components/form/inputs/Upload/UploadFile.vue.d.ts.map +1 -0
  56. package/dist/components/formkit/AddressArray.vue.d.ts +2 -2
  57. package/dist/components/formkit/BankDetailsArray.vue.d.ts +2 -2
  58. package/dist/components/formkit/ContactArrayFormKit.vue.d.ts +2 -2
  59. package/dist/components/formkit/FileUploader.vue.d.ts +2 -2
  60. package/dist/components/formkit/MiscFields.vue.d.ts +2 -2
  61. package/dist/components/formkit/Toggle.vue.d.ts +2 -2
  62. package/dist/components/sortable/Animation.d.ts +43 -0
  63. package/dist/components/sortable/Animation.d.ts.map +1 -0
  64. package/dist/components/sortable/BrowserInfo.d.ts +7 -0
  65. package/dist/components/sortable/BrowserInfo.d.ts.map +1 -0
  66. package/dist/components/sortable/EventDispatcher.d.ts +13 -0
  67. package/dist/components/sortable/EventDispatcher.d.ts.map +1 -0
  68. package/dist/components/sortable/PluginManager.d.ts +27 -0
  69. package/dist/components/sortable/PluginManager.d.ts.map +1 -0
  70. package/dist/components/sortable/Sortable.d.ts +81 -0
  71. package/dist/components/sortable/Sortable.d.ts.map +1 -0
  72. package/dist/components/sortable/index.d.ts +5 -0
  73. package/dist/components/sortable/index.d.ts.map +1 -0
  74. package/dist/components/sortable/utils.d.ts +49 -0
  75. package/dist/components/sortable/utils.d.ts.map +1 -0
  76. package/dist/components/whatsapp/form/MsgTemplate.vue.d.ts +3 -4
  77. package/dist/components/whatsapp/form/TextVariableExamples.vue.d.ts +2 -2
  78. package/dist/composables/drag-n-drop/useDraggable.d.ts +2 -0
  79. package/dist/composables/drag-n-drop/useDraggable.d.ts.map +1 -0
  80. package/dist/editor-CUDRLdmS.js +4 -0
  81. package/dist/editor-Cu374vEW.cjs +4 -0
  82. package/dist/editor-a8DSbb6P.js +4 -0
  83. package/dist/editor-xBt_vIha.cjs +4 -0
  84. package/dist/heic2any-8wMqMfB_.js +933 -0
  85. package/dist/heic2any-BrqcNzfV.js +935 -0
  86. package/dist/heic2any-C8KwH72N.cjs +934 -0
  87. package/dist/heic2any-k9wDCKka.cjs +932 -0
  88. package/dist/index-DiG-xM9T.cjs +35016 -0
  89. package/dist/index-nGuSAiY2.js +35017 -0
  90. package/dist/index.cjs +192 -176
  91. package/dist/index.mjs +192 -176
  92. package/dist/plugins/drag-n-drop/draggable.d.ts +4 -0
  93. package/dist/plugins/drag-n-drop/draggable.d.ts.map +1 -0
  94. package/dist/plugins/drag-n-drop/droppable.d.ts +4 -0
  95. package/dist/plugins/drag-n-drop/droppable.d.ts.map +1 -0
  96. package/dist/plugins/drag-n-drop/index.d.ts +5 -0
  97. package/dist/plugins/drag-n-drop/index.d.ts.map +1 -0
  98. package/dist/plugins/drag-n-drop/useDraggable.d.ts +8 -0
  99. package/dist/plugins/drag-n-drop/useDraggable.d.ts.map +1 -0
  100. package/dist/plugins/drag-n-drop/useDroppable.d.ts +7 -0
  101. package/dist/plugins/drag-n-drop/useDroppable.d.ts.map +1 -0
  102. package/dist/style.css +21 -21
  103. package/dist/types/materialIcon.d.ts +2 -0
  104. package/dist/types/materialIcon.d.ts.map +1 -0
  105. package/dist/utils/objects.d.ts +0 -1
  106. package/package.json +1 -1
  107. package/src/components/Image.vue +2 -2
  108. package/src/components/ModalForm.vue +6 -11
  109. package/src/components/form/BagelForm.vue +150 -0
  110. package/src/components/form/index.ts +1 -1
  111. package/src/components/form/inputs/NumberInput.vue +3 -3
  112. package/src/components/form/inputs/RangeInput.vue +1 -1
  113. package/tsconfig.json +5 -6
  114. package/dist/components/Accordion.d.ts +0 -12
  115. package/dist/components/Accordion.d.ts.map +0 -1
  116. package/dist/components/AccordionItem.d.ts +0 -34
  117. package/dist/components/AccordionItem.d.ts.map +0 -1
  118. package/dist/components/Alert.d.ts +0 -34
  119. package/dist/components/Alert.d.ts.map +0 -1
  120. package/dist/components/Avatar.d.ts +0 -36
  121. package/dist/components/Avatar.d.ts.map +0 -1
  122. package/dist/components/Badge.d.ts +0 -22
  123. package/dist/components/Badge.d.ts.map +0 -1
  124. package/dist/components/BglVideo.d.ts +0 -20
  125. package/dist/components/BglVideo.d.ts.map +0 -1
  126. package/dist/components/Btn.d.ts +0 -99
  127. package/dist/components/Btn.d.ts.map +0 -1
  128. package/dist/components/Card.d.ts +0 -39
  129. package/dist/components/Card.d.ts.map +0 -1
  130. package/dist/components/Carousel.d.ts +0 -74
  131. package/dist/components/Carousel.d.ts.map +0 -1
  132. package/dist/components/DataPreview.d.ts +0 -42
  133. package/dist/components/DataPreview.d.ts.map +0 -1
  134. package/dist/components/Drop.vue.d.ts +0 -34
  135. package/dist/components/Drop.vue.d.ts.map +0 -1
  136. package/dist/components/FileUploader.vue.d.ts +0 -60
  137. package/dist/components/FileUploader.vue.d.ts.map +0 -1
  138. package/dist/components/Flag.d.ts +0 -20
  139. package/dist/components/Flag.d.ts.map +0 -1
  140. package/dist/components/ListItem.d.ts +0 -34
  141. package/dist/components/ListItem.d.ts.map +0 -1
  142. package/dist/components/ListView.d.ts +0 -13
  143. package/dist/components/ListView.d.ts.map +0 -1
  144. package/dist/components/MapEmbed.d.ts +0 -3
  145. package/dist/components/MapEmbed.d.ts.map +0 -1
  146. package/dist/components/MaterialIcon.d.ts +0 -26
  147. package/dist/components/MaterialIcon.d.ts.map +0 -1
  148. package/dist/components/Modal.d.ts +0 -46
  149. package/dist/components/Modal.d.ts.map +0 -1
  150. package/dist/components/ModalConfirm.d.ts +0 -24
  151. package/dist/components/ModalConfirm.d.ts.map +0 -1
  152. package/dist/components/ModalForm.d.ts +0 -78
  153. package/dist/components/ModalForm.d.ts.map +0 -1
  154. package/dist/components/NavBar.d.ts +0 -64
  155. package/dist/components/NavBar.d.ts.map +0 -1
  156. package/dist/components/PageTitle.d.ts +0 -24
  157. package/dist/components/PageTitle.d.ts.map +0 -1
  158. package/dist/components/RouterWrapper.d.ts +0 -3
  159. package/dist/components/RouterWrapper.d.ts.map +0 -1
  160. package/dist/components/TableSchema.d.ts +0 -35
  161. package/dist/components/TableSchema.d.ts.map +0 -1
  162. package/dist/components/Title.d.ts +0 -42
  163. package/dist/components/Title.d.ts.map +0 -1
  164. package/dist/components/TopBar.d.ts +0 -12
  165. package/dist/components/TopBar.d.ts.map +0 -1
  166. package/dist/components/dashboard/Lineart.d.ts +0 -20
  167. package/dist/components/dashboard/Lineart.d.ts.map +0 -1
  168. package/dist/components/form/BglField.d.ts +0 -25
  169. package/dist/components/form/BglField.d.ts.map +0 -1
  170. package/dist/components/form/BglForm.d.ts +0 -75
  171. package/dist/components/form/BglForm.d.ts.map +0 -1
  172. package/dist/components/form/inputs/CheckInput.d.ts +0 -56
  173. package/dist/components/form/inputs/CheckInput.d.ts.map +0 -1
  174. package/dist/components/form/inputs/Checkbox.d.ts +0 -16
  175. package/dist/components/form/inputs/Checkbox.d.ts.map +0 -1
  176. package/dist/components/form/inputs/ColorPicker.d.ts +0 -48
  177. package/dist/components/form/inputs/ColorPicker.d.ts.map +0 -1
  178. package/dist/components/form/inputs/DateInput.d.ts +0 -64
  179. package/dist/components/form/inputs/DateInput.d.ts.map +0 -1
  180. package/dist/components/form/inputs/DatePicker.d.ts +0 -33
  181. package/dist/components/form/inputs/DatePicker.d.ts.map +0 -1
  182. package/dist/components/form/inputs/FileUpload.d.ts +0 -108
  183. package/dist/components/form/inputs/FileUpload.d.ts.map +0 -1
  184. package/dist/components/form/inputs/JSONInput.d.ts +0 -53
  185. package/dist/components/form/inputs/JSONInput.d.ts.map +0 -1
  186. package/dist/components/form/inputs/RadioGroup.d.ts +0 -42
  187. package/dist/components/form/inputs/RadioGroup.d.ts.map +0 -1
  188. package/dist/components/form/inputs/RadioPillsInput.d.ts +0 -48
  189. package/dist/components/form/inputs/RadioPillsInput.d.ts.map +0 -1
  190. package/dist/components/form/inputs/RichText.d.ts +0 -20
  191. package/dist/components/form/inputs/RichText.d.ts.map +0 -1
  192. package/dist/components/form/inputs/RichText2/Toolbar.d.ts +0 -22
  193. package/dist/components/form/inputs/RichText2/Toolbar.d.ts.map +0 -1
  194. package/dist/components/form/inputs/RichText2/index.d.ts +0 -24
  195. package/dist/components/form/inputs/RichText2/index.d.ts.map +0 -1
  196. package/dist/components/form/inputs/SelectInput.d.ts +0 -55
  197. package/dist/components/form/inputs/SelectInput.d.ts.map +0 -1
  198. package/dist/components/form/inputs/SignaturePad.d.ts +0 -72
  199. package/dist/components/form/inputs/SignaturePad.d.ts.map +0 -1
  200. package/dist/components/form/inputs/TableField.d.ts +0 -45
  201. package/dist/components/form/inputs/TableField.d.ts.map +0 -1
  202. package/dist/components/form/inputs/TelInput.d.ts +0 -241
  203. package/dist/components/form/inputs/TelInput.d.ts.map +0 -1
  204. package/dist/components/form/inputs/TextInput.d.ts +0 -90
  205. package/dist/components/form/inputs/TextInput.d.ts.map +0 -1
  206. package/dist/components/form/inputs/ToggleInput.d.ts +0 -58
  207. package/dist/components/form/inputs/ToggleInput.d.ts.map +0 -1
  208. package/dist/components/layout/BottomMenu.d.ts +0 -27
  209. package/dist/components/layout/BottomMenu.d.ts.map +0 -1
  210. package/dist/components/layout/Layout.d.ts +0 -58
  211. package/dist/components/layout/Layout.d.ts.map +0 -1
  212. package/dist/components/layout/SidebarMenu.d.ts +0 -38
  213. package/dist/components/layout/SidebarMenu.d.ts.map +0 -1
  214. package/dist/components/layout/TabbedLayout.d.ts +0 -42
  215. package/dist/components/layout/TabbedLayout.d.ts.map +0 -1
  216. package/dist/components/layout/Tabs.d.ts +0 -31
  217. package/dist/components/layout/Tabs.d.ts.map +0 -1
  218. package/dist/components/layout/TabsBody.d.ts +0 -23
  219. package/dist/components/layout/TabsBody.d.ts.map +0 -1
  220. package/dist/components/layout/TabsNav.d.ts +0 -35
  221. package/dist/components/layout/TabsNav.d.ts.map +0 -1
  222. package/dist/styles.css +0 -14073
  223. package/dist/vue.css +0 -14073
package/dist/index.mjs CHANGED
@@ -59,7 +59,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
59
59
  };
60
60
  }
61
61
  });
62
- const _hoisted_1$X = ["aria-expanded", "aria-controls"];
62
+ const _hoisted_1$W = ["aria-expanded", "aria-controls"];
63
63
  const _hoisted_2$D = { class: "accordion-label" };
64
64
  const _hoisted_3$t = ["id", "aria-hidden"];
65
65
  const _sfc_main$17 = /* @__PURE__ */ defineComponent({
@@ -136,7 +136,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
136
136
  }, [
137
137
  createVNode(unref(_sfc_main$d), { icon: computedIcon.value }, null, 8, ["icon"])
138
138
  ], 2)) : createCommentVNode("", true)
139
- ], 8, _hoisted_1$X),
139
+ ], 8, _hoisted_1$W),
140
140
  createVNode(Transition, { name: "expand" }, {
141
141
  default: withCtx(() => [
142
142
  unref(isOpen) ? (openBlock(), createElementBlock("div", {
@@ -162,7 +162,7 @@ const _export_sfc = (sfc, props2) => {
162
162
  return target;
163
163
  };
164
164
  const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-1e73ca3e"]]);
165
- const _hoisted_1$W = { class: "relative" };
165
+ const _hoisted_1$V = { class: "relative" };
166
166
  const _sfc_main$16 = /* @__PURE__ */ defineComponent({
167
167
  __name: "AddressSearch",
168
168
  emits: ["addressSelected"],
@@ -185,7 +185,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
185
185
  (_a2 = suggestion.value) == null ? void 0 : _a2.show();
186
186
  }
187
187
  return (_ctx, _cache) => {
188
- return openBlock(), createElementBlock("div", _hoisted_1$W, [
188
+ return openBlock(), createElementBlock("div", _hoisted_1$V, [
189
189
  createVNode(unref(_sfc_main$X), {
190
190
  ref_key: "suggestion",
191
191
  ref: suggestion,
@@ -221,7 +221,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
221
221
  };
222
222
  }
223
223
  });
224
- const _hoisted_1$V = {
224
+ const _hoisted_1$U = {
225
225
  key: 1,
226
226
  class: "bgl_btn-flex"
227
227
  };
@@ -291,7 +291,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
291
291
  key: 0,
292
292
  class: "h-100p",
293
293
  size: "15"
294
- })) : (openBlock(), createElementBlock("div", _hoisted_1$V, [
294
+ })) : (openBlock(), createElementBlock("div", _hoisted_1$U, [
295
295
  _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$d), {
296
296
  key: 0,
297
297
  icon: _ctx.icon
@@ -314,7 +314,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
314
314
  }
315
315
  });
316
316
  const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-3efa79fb"]]);
317
- const _hoisted_1$U = ["dismissable"];
317
+ const _hoisted_1$T = ["dismissable"];
318
318
  const _hoisted_2$C = { class: "m-0" };
319
319
  const _sfc_main$14 = /* @__PURE__ */ defineComponent({
320
320
  __name: "Alert",
@@ -352,12 +352,12 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
352
352
  icon: "close",
353
353
  onClick: _cache[0] || (_cache[0] = ($event) => isDismissed.value = true)
354
354
  })
355
- ], 10, _hoisted_1$U)) : createCommentVNode("", true);
355
+ ], 10, _hoisted_1$T)) : createCommentVNode("", true);
356
356
  };
357
357
  }
358
358
  });
359
359
  const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-57141c32"]]);
360
- const _hoisted_1$T = ["src", "alt"];
360
+ const _hoisted_1$S = ["src", "alt"];
361
361
  const _sfc_main$13 = /* @__PURE__ */ defineComponent({
362
362
  __name: "Avatar",
363
363
  props: {
@@ -376,7 +376,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
376
376
  key: 0,
377
377
  src: _ctx.src,
378
378
  alt: _ctx.name
379
- }, null, 8, _hoisted_1$T)) : (openBlock(), createElementBlock("p", {
379
+ }, null, 8, _hoisted_1$S)) : (openBlock(), createElementBlock("p", {
380
380
  key: 1,
381
381
  style: normalizeStyle({ "line-height": `${_ctx.size}px`, "font-size": `calc(1.5rem * ${_ctx.size} / 50)` })
382
382
  }, toDisplayString((_ctx.fallback || unref(initials)(_ctx.name || "")).toUpperCase()), 5))
@@ -415,7 +415,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
415
415
  }
416
416
  });
417
417
  const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-2f3caf93"]]);
418
- const _hoisted_1$S = { key: 1 };
418
+ const _hoisted_1$R = { key: 1 };
419
419
  const _sfc_main$11 = /* @__PURE__ */ defineComponent({
420
420
  __name: "BglComponent",
421
421
  props: {
@@ -445,7 +445,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
445
445
  if (props2.field.$el === "file") return FileUpload;
446
446
  if (props2.field.$el === "date") return _sfc_main$L;
447
447
  if (props2.field.$el === "tabs") return TabsNav;
448
- if (props2.field.$el === "form") return _sfc_main$S;
448
+ if (props2.field.$el === "form") return _sfc_main$R;
449
449
  return props2.field.$el ?? "div";
450
450
  });
451
451
  function getFieldData(path) {
@@ -562,7 +562,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
562
562
  id: [props2.id, child.id].filter(Boolean).join("."),
563
563
  field: child,
564
564
  "parent-path": props2.id
565
- }, null, 8, ["id", "field", "parent-path"])) : (openBlock(), createElementBlock("span", _hoisted_1$S, toDisplayString(child), 1))
565
+ }, null, 8, ["id", "field", "parent-path"])) : (openBlock(), createElementBlock("span", _hoisted_1$R, toDisplayString(child), 1))
566
566
  ], 64);
567
567
  }), 128))
568
568
  ], 64))
@@ -572,7 +572,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
572
572
  };
573
573
  }
574
574
  });
575
- const _hoisted_1$R = ["src"];
575
+ const _hoisted_1$Q = ["src"];
576
576
  const _hoisted_2$B = ["autoplay", "muted", "loop", "controls", "playsinline"];
577
577
  const _hoisted_3$s = ["src", "type"];
578
578
  const _sfc_main$10 = /* @__PURE__ */ defineComponent({
@@ -652,7 +652,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
652
652
  allowfullscreen: "",
653
653
  title: "Video",
654
654
  allow: "autoplay"
655
- }, null, 12, _hoisted_1$R)) : _ctx.src ? (openBlock(), createElementBlock("video", {
655
+ }, null, 12, _hoisted_1$Q)) : _ctx.src ? (openBlock(), createElementBlock("video", {
656
656
  key: 1,
657
657
  ref_key: "video",
658
658
  ref: video,
@@ -673,7 +673,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
673
673
  }
674
674
  });
675
675
  const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-006552f6"]]);
676
- const _hoisted_1$Q = {
676
+ const _hoisted_1$P = {
677
677
  key: 0,
678
678
  class: "card_label"
679
679
  };
@@ -706,7 +706,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
706
706
  }])
707
707
  }, {
708
708
  default: withCtx(() => [
709
- _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$Q, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
709
+ _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$P, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
710
710
  renderSlot(_ctx.$slots, "default")
711
711
  ]),
712
712
  _: 3
@@ -716,7 +716,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
716
716
  };
717
717
  }
718
718
  });
719
- const _hoisted_1$P = ["dir"];
719
+ const _hoisted_1$O = ["dir"];
720
720
  const _hoisted_2$A = {
721
721
  key: 0,
722
722
  class: "blocker"
@@ -931,7 +931,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
931
931
  }, void 0, true)
932
932
  ])
933
933
  ])
934
- ], 14, _hoisted_1$P);
934
+ ], 14, _hoisted_1$O);
935
935
  };
936
936
  }
937
937
  });
@@ -6879,13 +6879,13 @@ var script = defineComponent({
6879
6879
  return { bar, canvas, direction, mouse };
6880
6880
  }
6881
6881
  });
6882
- const _hoisted_1$O = {
6882
+ const _hoisted_1$N = {
6883
6883
  key: 0,
6884
6884
  class: "layer-hover-bar"
6885
6885
  };
6886
6886
  const _hoisted_2$z = ["x", "y", "width", "height"];
6887
6887
  function render(_ctx, _cache, $props, $setup, $data, $options) {
6888
- return _ctx.mouse.hover ? (openBlock(), createElementBlock("g", _hoisted_1$O, [
6888
+ return _ctx.mouse.hover ? (openBlock(), createElementBlock("g", _hoisted_1$N, [
6889
6889
  createElementVNode("rect", mergeProps({ class: "hover-bar" }, _ctx.barStyle, {
6890
6890
  x: _ctx.bar.x,
6891
6891
  y: _ctx.bar.y,
@@ -7037,7 +7037,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
7037
7037
  };
7038
7038
  }
7039
7039
  });
7040
- const _hoisted_1$N = {
7040
+ const _hoisted_1$M = {
7041
7041
  key: 0,
7042
7042
  class: "data"
7043
7043
  };
@@ -7094,7 +7094,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
7094
7094
  const computedSchema = computed(() => getFallbackSchema([itemData.value], props2.showFields));
7095
7095
  return (_ctx, _cache) => {
7096
7096
  var _a2;
7097
- return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$N, [
7097
+ return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$M, [
7098
7098
  _ctx.title ? (openBlock(), createBlock(unref(_sfc_main$4), {
7099
7099
  key: 0,
7100
7100
  label: _ctx.title
@@ -7107,7 +7107,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
7107
7107
  createElementVNode("div", _hoisted_3$p, [
7108
7108
  createElementVNode("p", _hoisted_4$h, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1)
7109
7109
  ]),
7110
- createVNode(unref(_sfc_main$T), {
7110
+ createVNode(unref(_sfc_main$S), {
7111
7111
  modelValue: itemData.value,
7112
7112
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => itemData.value = $event),
7113
7113
  label: "",
@@ -7740,10 +7740,9 @@ async function convertValueToCoords(state2, options) {
7740
7740
  crossAxis: 0,
7741
7741
  alignmentAxis: null
7742
7742
  } : {
7743
- mainAxis: 0,
7744
- crossAxis: 0,
7745
- alignmentAxis: null,
7746
- ...rawValue
7743
+ mainAxis: rawValue.mainAxis || 0,
7744
+ crossAxis: rawValue.crossAxis || 0,
7745
+ alignmentAxis: rawValue.alignmentAxis
7747
7746
  };
7748
7747
  if (alignment && typeof alignmentAxis === "number") {
7749
7748
  crossAxis = alignment === "end" ? alignmentAxis * -1 : alignmentAxis;
@@ -7848,7 +7847,11 @@ const shift = function(options) {
7848
7847
  ...limitedCoords,
7849
7848
  data: {
7850
7849
  x: limitedCoords.x - x2,
7851
- y: limitedCoords.y - y2
7850
+ y: limitedCoords.y - y2,
7851
+ enabled: {
7852
+ [mainAxis]: checkMainAxis,
7853
+ [crossAxis]: checkCrossAxis
7854
+ }
7852
7855
  }
7853
7856
  };
7854
7857
  }
@@ -7862,6 +7865,7 @@ const size = function(options) {
7862
7865
  name: "size",
7863
7866
  options,
7864
7867
  async fn(state2) {
7868
+ var _state$middlewareData, _state$middlewareData2;
7865
7869
  const {
7866
7870
  placement,
7867
7871
  rects,
@@ -7897,10 +7901,11 @@ const size = function(options) {
7897
7901
  const noShift = !state2.middlewareData.shift;
7898
7902
  let availableHeight = overflowAvailableHeight;
7899
7903
  let availableWidth = overflowAvailableWidth;
7900
- if (isYAxis) {
7901
- availableWidth = alignment || noShift ? min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
7902
- } else {
7903
- availableHeight = alignment || noShift ? min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
7904
+ if ((_state$middlewareData = state2.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
7905
+ availableWidth = maximumClippingWidth;
7906
+ }
7907
+ if ((_state$middlewareData2 = state2.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
7908
+ availableHeight = maximumClippingHeight;
7904
7909
  }
7905
7910
  if (noShift && !alignment) {
7906
7911
  const xMin = max(overflow.left, 0);
@@ -9756,7 +9761,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
9756
9761
  };
9757
9762
  }
9758
9763
  });
9759
- const _hoisted_1$M = { class: "px-1 pt-025 pb-1" };
9764
+ const _hoisted_1$L = { class: "px-1 pt-025 pb-1" };
9760
9765
  const _hoisted_2$x = { class: "ms-1" };
9761
9766
  const _sfc_main$W = /* @__PURE__ */ defineComponent({
9762
9767
  __name: "FieldSetVue",
@@ -9766,7 +9771,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
9766
9771
  },
9767
9772
  setup(__props) {
9768
9773
  return (_ctx, _cache) => {
9769
- return openBlock(), createElementBlock("fieldset", _hoisted_1$M, [
9774
+ return openBlock(), createElementBlock("fieldset", _hoisted_1$L, [
9770
9775
  createElementVNode("legend", _hoisted_2$x, toDisplayString(_ctx.legend || _ctx.label), 1),
9771
9776
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
9772
9777
  ]);
@@ -9805,6 +9810,128 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
9805
9810
  }
9806
9811
  });
9807
9812
  const Flag = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-f99f1900"]]);
9813
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
9814
+ __name: "BagelForm",
9815
+ props: {
9816
+ modelValue: { default: () => ({}) },
9817
+ schema: { default: void 0 }
9818
+ },
9819
+ emits: ["update:modelValue", "submit"],
9820
+ setup(__props, { expose: __expose, emit: __emit }) {
9821
+ const props2 = __props;
9822
+ const emit2 = __emit;
9823
+ const form = ref();
9824
+ let formData = ref({ ...props2.modelValue });
9825
+ let initialFormData = ref({ ...props2.modelValue });
9826
+ watch(() => props2.modelValue, (newValue) => {
9827
+ formData.value = { ...newValue };
9828
+ }, { immediate: true, deep: true });
9829
+ const resolvedSchema = computed(() => {
9830
+ if (!props2.schema) return void 0;
9831
+ return typeof props2.schema === "function" ? props2.schema() : props2.schema;
9832
+ });
9833
+ const isDirty = computed(() => {
9834
+ const current = JSON.stringify(formData.value);
9835
+ const initial = JSON.stringify(initialFormData.value);
9836
+ return current !== initial;
9837
+ });
9838
+ function getComponent(field) {
9839
+ var _a2;
9840
+ const componentMap = {
9841
+ text: TextInput,
9842
+ textarea: TextInput,
9843
+ number: NumberInput,
9844
+ array: _sfc_main$Q,
9845
+ select: SelectInput,
9846
+ toggle: ToggleInput,
9847
+ check: CheckInput,
9848
+ richtext: RichText,
9849
+ upload: UploadInput,
9850
+ file: FileUpload,
9851
+ date: _sfc_main$L,
9852
+ tabs: TabsNav,
9853
+ bglform: _sfc_main$R
9854
+ };
9855
+ if (field.$el === "textarea" && !((_a2 = field.attrs) == null ? void 0 : _a2.multiline)) {
9856
+ field.attrs = { ...field.attrs, multiline: true };
9857
+ }
9858
+ return componentMap[field.$el] ?? field.$el ?? "div";
9859
+ }
9860
+ function processFieldValue(fieldType, value) {
9861
+ if (value == null) return value;
9862
+ if (fieldType === "select" && typeof value === "object") return value.value;
9863
+ if (typeof value === "object" && "value" in value) return value.value;
9864
+ return value;
9865
+ }
9866
+ function updateFormData(fieldId, value, fieldType) {
9867
+ formData.value = {
9868
+ ...formData.value,
9869
+ [fieldId]: processFieldValue(fieldType, value)
9870
+ };
9871
+ emit2("update:modelValue", formData.value);
9872
+ }
9873
+ function handleSubmit() {
9874
+ emit2("submit", formData.value);
9875
+ initialFormData.value = { ...formData.value };
9876
+ }
9877
+ function renderSchemaField(field) {
9878
+ var _a2;
9879
+ const Component = getComponent(field);
9880
+ if (!Component) return null;
9881
+ const { $el, vIf, "v-if": vIf2, children: children2, ...fieldProps } = field;
9882
+ const currentValue = field.id ? formData.value[field.id] : void 0;
9883
+ const props22 = {
9884
+ ...fieldProps,
9885
+ "modelValue": processFieldValue(field.$el, currentValue),
9886
+ "onUpdate:modelValue": (value) => {
9887
+ var _a3;
9888
+ if (!field.id) return;
9889
+ updateFormData(field.id, value, field.$el);
9890
+ (_a3 = field.onUpdate) == null ? void 0 : _a3.call(field, value, formData.value);
9891
+ }
9892
+ };
9893
+ if (field.attrs) {
9894
+ Object.entries(field.attrs).forEach(([key, value]) => {
9895
+ props22[key] = typeof value === "function" ? value(field, formData.value) : value;
9896
+ });
9897
+ }
9898
+ if (field.class) {
9899
+ props22.class = typeof field.class === "function" ? field.class(field, formData.value) : field.class;
9900
+ }
9901
+ const slots = ((_a2 = field.children) == null ? void 0 : _a2.length) ? {
9902
+ default: () => field.children.map(
9903
+ (child) => typeof child === "string" ? child : renderSchemaField(child)
9904
+ )
9905
+ } : void 0;
9906
+ return h$2(Component, props22, slots);
9907
+ }
9908
+ function shouldRenderField(field) {
9909
+ const condition = field.vIf ?? field["v-if"];
9910
+ if (condition === void 0) return true;
9911
+ return typeof condition === "function" ? condition(formData.value[field.id], formData.value) : !!condition;
9912
+ }
9913
+ __expose({ form: form.value, isDirty: isDirty.value });
9914
+ return (_ctx, _cache) => {
9915
+ return openBlock(), createElementBlock("form", {
9916
+ ref_key: "form",
9917
+ ref: form,
9918
+ onSubmit: withModifiers(handleSubmit, ["prevent"])
9919
+ }, [
9920
+ resolvedSchema.value ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(resolvedSchema.value, (field, index2) => {
9921
+ return openBlock(), createElementBlock(Fragment, {
9922
+ key: field.id || index2
9923
+ }, [
9924
+ shouldRenderField(field) ? (openBlock(), createBlock(resolveDynamicComponent(renderSchemaField(field)), { key: 0 })) : createCommentVNode("", true)
9925
+ ], 64);
9926
+ }), 128)) : renderSlot(_ctx.$slots, "default", { key: 1 }),
9927
+ renderSlot(_ctx.$slots, "submit", {
9928
+ submit: handleSubmit,
9929
+ isDirty: isDirty.value
9930
+ })
9931
+ ], 544);
9932
+ };
9933
+ }
9934
+ });
9808
9935
  const state$1 = reactive(/* @__PURE__ */ new Map());
9809
9936
  function useTabs(group) {
9810
9937
  if (!state$1.has(group)) {
@@ -9818,8 +9945,8 @@ function useTabs(group) {
9818
9945
  });
9819
9946
  return { currentTab };
9820
9947
  }
9821
- const _hoisted_1$L = ["onClick"];
9822
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
9948
+ const _hoisted_1$K = ["onClick"];
9949
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
9823
9950
  __name: "TabsNav",
9824
9951
  props: {
9825
9952
  title: {},
@@ -9901,14 +10028,14 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
9901
10028
  icon: tab.icon
9902
10029
  }, null, 8, ["icon"])) : createCommentVNode("", true),
9903
10030
  createTextVNode(" " + toDisplayString(tabLabel(tab)), 1)
9904
- ], 10, _hoisted_1$L);
10031
+ ], 10, _hoisted_1$K);
9905
10032
  }), 128))
9906
10033
  ], true)
9907
10034
  ], 2);
9908
10035
  };
9909
10036
  }
9910
10037
  });
9911
- const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-307612a9"]]);
10038
+ const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-307612a9"]]);
9912
10039
  const FORM_STATE_KEY = Symbol("bagelFormState");
9913
10040
  function safeClone(obj) {
9914
10041
  if (obj === null || typeof obj !== "object") return obj;
@@ -9970,8 +10097,8 @@ function useBagelFormState() {
9970
10097
  if (!state2) throw new Error("BagelFormState must be provided");
9971
10098
  return state2;
9972
10099
  }
9973
- const _hoisted_1$K = { key: 1 };
9974
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
10100
+ const _hoisted_1$J = { key: 1 };
10101
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
9975
10102
  __name: "BglField",
9976
10103
  props: {
9977
10104
  field: {},
@@ -10001,7 +10128,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
10001
10128
  if (props2.field.$el === "file") return FileUpload;
10002
10129
  if (props2.field.$el === "date") return _sfc_main$L;
10003
10130
  if (props2.field.$el === "tabs") return TabsNav;
10004
- if (props2.field.$el === "bglform") return _sfc_main$S;
10131
+ if (props2.field.$el === "bglform") return _sfc_main$R;
10005
10132
  return props2.field.$el ?? "div";
10006
10133
  });
10007
10134
  const fieldData = computed({
@@ -10066,7 +10193,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
10066
10193
  fieldID: [props2.fieldID, child.id].filter(Boolean).join("."),
10067
10194
  field: child,
10068
10195
  "parent-path": props2.fieldID
10069
- }, null, 8, ["fieldID", "field", "parent-path"])) : (openBlock(), createElementBlock("span", _hoisted_1$K, toDisplayString(child), 1))
10196
+ }, null, 8, ["fieldID", "field", "parent-path"])) : (openBlock(), createElementBlock("span", _hoisted_1$J, toDisplayString(child), 1))
10070
10197
  ], 64);
10071
10198
  }), 128))
10072
10199
  ]),
@@ -10075,7 +10202,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
10075
10202
  };
10076
10203
  }
10077
10204
  });
10078
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
10205
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
10079
10206
  __name: "BglForm",
10080
10207
  props: {
10081
10208
  label: {},
@@ -10177,7 +10304,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
10177
10304
  return openBlock(), createElementBlock(Fragment, null, [
10178
10305
  _ctx.tag === "template" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
10179
10306
  (openBlock(true), createElementBlock(Fragment, null, renderList(computedSchema.value, (field, i2) => {
10180
- return openBlock(), createBlock(unref(_sfc_main$T), {
10307
+ return openBlock(), createBlock(unref(_sfc_main$S), {
10181
10308
  key: field.id || `${i2}p`,
10182
10309
  fieldID: field.id,
10183
10310
  field
@@ -10200,7 +10327,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
10200
10327
  label: _ctx.label
10201
10328
  }, null, 8, ["label"])) : createCommentVNode("", true),
10202
10329
  (openBlock(true), createElementBlock(Fragment, null, renderList(computedSchema.value, (field, i2) => {
10203
- return openBlock(), createBlock(unref(_sfc_main$T), {
10330
+ return openBlock(), createBlock(unref(_sfc_main$S), {
10204
10331
  key: field.id || `${i2}p`,
10205
10332
  fieldID: field.id,
10206
10333
  field
@@ -10218,114 +10345,6 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
10218
10345
  };
10219
10346
  }
10220
10347
  });
10221
- const _hoisted_1$J = { key: 0 };
10222
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
10223
- __name: "BglMultiStepForm",
10224
- props: /* @__PURE__ */ mergeModels({
10225
- bagelFormProps: { default: () => ({}) },
10226
- schema: {}
10227
- }, {
10228
- "modelValue": { default: () => {
10229
- }, required: true },
10230
- "modelModifiers": {}
10231
- }),
10232
- emits: /* @__PURE__ */ mergeModels(["submit"], ["update:modelValue"]),
10233
- setup(__props, { expose: __expose, emit: __emit }) {
10234
- var _a2, _b, _c, _d;
10235
- const props2 = __props;
10236
- const emits = __emit;
10237
- const formRef = ref();
10238
- const formData = useModel(
10239
- __props,
10240
- "modelValue"
10241
- );
10242
- function reportValidity() {
10243
- if (!formRef.value) return false;
10244
- return formRef.value.validateForm();
10245
- }
10246
- const computedSchema = computed(
10247
- () => useBglSchema({ schema: props2.schema })
10248
- );
10249
- const numberOfSteps = ref(computedSchema.value.length);
10250
- let currentStep = ref(0);
10251
- const currentStepSchema = computed(() => computedSchema.value[currentStep.value]);
10252
- let isStepping = ref(false);
10253
- let isSteppingTO;
10254
- watch(
10255
- () => currentStep.value,
10256
- () => {
10257
- clearTimeout(isSteppingTO);
10258
- isStepping.value = true;
10259
- isSteppingTO = setTimeout(() => isStepping.value = false, 600);
10260
- }
10261
- );
10262
- const canDoNext = computed(() => currentStep.value < numberOfSteps.value - 1);
10263
- function prevStep() {
10264
- if (currentStep.value > 0) currentStep.value--;
10265
- }
10266
- function nextStep() {
10267
- if (reportValidity() === false) return;
10268
- if (canDoNext.value) currentStep.value++;
10269
- }
10270
- function handleSubmit() {
10271
- if (reportValidity() === false) return;
10272
- emits("submit", formData.value);
10273
- }
10274
- __expose({
10275
- submit: handleSubmit,
10276
- validateForm: (_a2 = formRef.value) == null ? void 0 : _a2.validateForm,
10277
- deleteItem: (_b = formRef.value) == null ? void 0 : _b.deleteItem,
10278
- isDirty: (_c = formRef.value) == null ? void 0 : _c.isDirty,
10279
- clearForm: (_d = formRef.value) == null ? void 0 : _d.clearForm
10280
- });
10281
- return (_ctx, _cache) => {
10282
- return openBlock(), createElementBlock(Fragment, null, [
10283
- createVNode(Transition, {
10284
- duration: 600,
10285
- name: "fade",
10286
- mode: "out-in"
10287
- }, {
10288
- default: withCtx(() => [
10289
- !unref(isStepping) ? (openBlock(), createElementBlock("div", _hoisted_1$J, [
10290
- createVNode(unref(_sfc_main$S), mergeProps({
10291
- ref_key: "formRef",
10292
- ref: formRef,
10293
- modelValue: formData.value,
10294
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formData.value = $event),
10295
- schema: [currentStepSchema.value]
10296
- }, _ctx.bagelFormProps), {
10297
- success: withCtx(() => [
10298
- renderSlot(_ctx.$slots, "success")
10299
- ]),
10300
- error: withCtx(() => [
10301
- renderSlot(_ctx.$slots, "error")
10302
- ]),
10303
- _: 3
10304
- }, 16, ["modelValue", "schema"])
10305
- ])) : createCommentVNode("", true)
10306
- ]),
10307
- _: 3
10308
- }),
10309
- renderSlot(_ctx.$slots, "steppers", normalizeProps(guardReactiveProps({ prevStep, nextStep, submit: handleSubmit })), () => [
10310
- createVNode(unref(Btn), {
10311
- disabled: unref(currentStep) === 0,
10312
- value: "Back",
10313
- onClick: prevStep
10314
- }, null, 8, ["disabled"]),
10315
- canDoNext.value ? (openBlock(), createBlock(unref(Btn), {
10316
- key: 0,
10317
- value: "Next",
10318
- onClick: nextStep
10319
- })) : (openBlock(), createBlock(unref(Btn), {
10320
- key: 1,
10321
- value: "Submit",
10322
- onClick: handleSubmit
10323
- }))
10324
- ])
10325
- ], 64);
10326
- };
10327
- }
10328
- });
10329
10348
  const _hoisted_1$I = { class: "label mb-05" };
10330
10349
  const _hoisted_2$w = {
10331
10350
  key: 0,
@@ -10397,7 +10416,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
10397
10416
  thin: "",
10398
10417
  class: "mb-05 itemBox transition p-05"
10399
10418
  }, [
10400
- createVNode(unref(_sfc_main$S), {
10419
+ createVNode(unref(_sfc_main$R), {
10401
10420
  modelValue: data2.value[i2],
10402
10421
  "onUpdate:modelValue": [($event) => data2.value[i2] = $event, emitValue],
10403
10422
  schema: _ctx.schema
@@ -10427,7 +10446,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
10427
10446
  _: 1
10428
10447
  })) : createCommentVNode("", true)
10429
10448
  ])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(data2.value, (_2, i2) => {
10430
- return openBlock(), createBlock(unref(_sfc_main$T), {
10449
+ return openBlock(), createBlock(unref(_sfc_main$S), {
10431
10450
  key: i2,
10432
10451
  modelValue: data2.value[i2],
10433
10452
  "onUpdate:modelValue": [($event) => data2.value[i2] = $event, emitValue],
@@ -20279,7 +20298,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
20279
20298
  emits: ["update:modelValue"],
20280
20299
  setup(__props, { emit: __emit }) {
20281
20300
  const emit2 = __emit;
20282
- let numberValue = ref(__props.modelValue || 0);
20301
+ let numberValue = ref(Number.parseFloat(`${__props.modelValue}`) || 0);
20283
20302
  const btnLayouts = ["horizontal", "vertical"];
20284
20303
  const canAdd = computed(() => !(__props.max !== void 0 && numberValue.value + __props.step > __props.max));
20285
20304
  const canDecrement = computed(() => !(__props.min !== void 0 && numberValue.value - __props.step < __props.min));
@@ -20313,7 +20332,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
20313
20332
  }, { immediate: true });
20314
20333
  watch(() => __props.modelValue, (newVal) => {
20315
20334
  if (newVal !== numberValue.value) {
20316
- numberValue.value = newVal || 0;
20335
+ numberValue.value = Number.parseFloat(`${newVal}`) || 0;
20317
20336
  }
20318
20337
  }, { immediate: true });
20319
20338
  return (_ctx, _cache) => {
@@ -20417,7 +20436,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
20417
20436
  };
20418
20437
  }
20419
20438
  });
20420
- const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-f265687e"]]);
20439
+ const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-4a70ce50"]]);
20421
20440
  const _hoisted_1$x = ["value", "autofocus", "onKeydown", "onPaste"];
20422
20441
  const _sfc_main$F = /* @__PURE__ */ defineComponent({
20423
20442
  __name: "OTP",
@@ -20910,7 +20929,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
20910
20929
  };
20911
20930
  }
20912
20931
  });
20913
- const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-e606435a"]]);
20932
+ const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-25d991e5"]]);
20914
20933
  const tableTools = [
20915
20934
  "mergeCells",
20916
20935
  "splitCells",
@@ -31418,7 +31437,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
31418
31437
  }
31419
31438
  try {
31420
31439
  await appendScript("https://cdnjs.cloudflare.com/ajax/libs/heic2any/0.0.1/index.min.js");
31421
- const response = await fetch(url);
31440
+ const response = await fetch(normalizeURL(url));
31422
31441
  const blob = await response.blob();
31423
31442
  const convertedBlob = await window.heic2any({ blob });
31424
31443
  imageSrc.value = URL.createObjectURL(convertedBlob);
@@ -31469,7 +31488,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
31469
31488
  };
31470
31489
  }
31471
31490
  });
31472
- const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-29509e85"]]);
31491
+ const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-1b7f9bb3"]]);
31473
31492
  const _hoisted_1$g = { class: "m-0 pb-025 txt14 line-height-1 w60 menu-text" };
31474
31493
  const _sfc_main$o = /* @__PURE__ */ defineComponent({
31475
31494
  __name: "BottomMenu",
@@ -32277,15 +32296,12 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
32277
32296
  "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => emit2("update:visible", $event))
32278
32297
  }, createSlots({
32279
32298
  default: withCtx(() => [
32280
- _ctx.visible ? (openBlock(), createBlock(unref(_sfc_main$S), {
32281
- key: 0,
32282
- ref_key: "form",
32283
- ref: form,
32299
+ createVNode(unref(_sfc_main$U), {
32284
32300
  modelValue: formData.value,
32285
32301
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formData.value = $event),
32286
32302
  schema: computedFormSchema.value,
32287
32303
  onSubmit: runSubmit
32288
- }, null, 8, ["modelValue", "schema"])) : createCommentVNode("", true)
32304
+ }, null, 8, ["modelValue", "schema"])
32289
32305
  ]),
32290
32306
  _: 2
32291
32307
  }, [
@@ -32320,7 +32336,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
32320
32336
  };
32321
32337
  }
32322
32338
  });
32323
- const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-7361477b"]]);
32339
+ const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-f796c518"]]);
32324
32340
  const _hoisted_1$6 = { class: "full-nav" };
32325
32341
  const _hoisted_2$4 = { class: "nav-scroll" };
32326
32342
  const _hoisted_3$3 = { class: "nav-links-wrapper" };
@@ -32626,7 +32642,6 @@ function debounceFilter(ms, options = {}) {
32626
32642
  lastRejector();
32627
32643
  lastRejector = noop;
32628
32644
  };
32629
- let lastInvoker;
32630
32645
  const filter3 = (invoke) => {
32631
32646
  const duration = toValue(ms);
32632
32647
  const maxDuration = toValue(options.maxWait);
@@ -32641,13 +32656,12 @@ function debounceFilter(ms, options = {}) {
32641
32656
  }
32642
32657
  return new Promise((resolve, reject3) => {
32643
32658
  lastRejector = options.rejectOnCancel ? reject3 : resolve;
32644
- lastInvoker = invoke;
32645
32659
  if (maxDuration && !maxTimer) {
32646
32660
  maxTimer = setTimeout(() => {
32647
32661
  if (timer)
32648
32662
  _clearTimeout(timer);
32649
32663
  maxTimer = null;
32650
- resolve(lastInvoker());
32664
+ resolve(invoke());
32651
32665
  }, maxDuration);
32652
32666
  }
32653
32667
  timer = setTimeout(() => {
@@ -34051,12 +34065,14 @@ class BagelAuth {
34051
34065
  }
34052
34066
  }
34053
34067
  class Bagel {
34054
- constructor({ host, onError }) {
34068
+ constructor({ host, fileBaseUrl, onError }) {
34055
34069
  __publicField(this, "host");
34070
+ __publicField(this, "fileBaseUrl");
34056
34071
  __publicField(this, "onError");
34057
34072
  __publicField(this, "read_table");
34058
34073
  __publicField(this, "auth", new BagelAuth(this));
34059
34074
  this.host = host == null ? void 0 : host.replace(/\/$/, "");
34075
+ this.fileBaseUrl = fileBaseUrl == null ? void 0 : fileBaseUrl.replace(/\/$/, "");
34060
34076
  if (!this.host) {
34061
34077
  return this;
34062
34078
  }
@@ -35529,12 +35545,12 @@ export {
35529
35545
  Alert,
35530
35546
  Avatar,
35531
35547
  Badge,
35532
- _sfc_main$S as BagelForm,
35548
+ _sfc_main$R as BagelForm,
35549
+ _sfc_main$U as BagelForm2,
35533
35550
  BagelVue,
35534
35551
  _sfc_main$11 as BglComponent,
35535
- _sfc_main$T as BglField,
35536
- _sfc_main$S as BglForm,
35537
- _sfc_main$R as BglMultiStepForm,
35552
+ _sfc_main$S as BglField,
35553
+ _sfc_main$R as BglForm,
35538
35554
  BglVideo,
35539
35555
  BottomMenu,
35540
35556
  Btn,