@bagelink/vue 0.0.709 → 0.0.714

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 (179) hide show
  1. package/dist/components/Accordion.d.ts +12 -0
  2. package/dist/components/Accordion.d.ts.map +1 -0
  3. package/dist/components/AccordionItem.d.ts +34 -0
  4. package/dist/components/AccordionItem.d.ts.map +1 -0
  5. package/dist/components/Alert.d.ts +34 -0
  6. package/dist/components/Alert.d.ts.map +1 -0
  7. package/dist/components/Avatar.d.ts +36 -0
  8. package/dist/components/Avatar.d.ts.map +1 -0
  9. package/dist/components/Badge.d.ts +22 -0
  10. package/dist/components/Badge.d.ts.map +1 -0
  11. package/dist/components/BglVideo.d.ts +20 -0
  12. package/dist/components/BglVideo.d.ts.map +1 -0
  13. package/dist/components/Btn.d.ts +99 -0
  14. package/dist/components/Btn.d.ts.map +1 -0
  15. package/dist/components/Card.d.ts +39 -0
  16. package/dist/components/Card.d.ts.map +1 -0
  17. package/dist/components/Carousel.d.ts +74 -0
  18. package/dist/components/Carousel.d.ts.map +1 -0
  19. package/dist/components/ComboBox.vue.d.ts +3 -3
  20. package/dist/components/Comments.vue.d.ts +2 -2
  21. package/dist/components/ContactSubmissions.vue.d.ts +2 -2
  22. package/dist/components/DataPreview.d.ts +42 -0
  23. package/dist/components/DataPreview.d.ts.map +1 -0
  24. package/dist/components/Drop.vue.d.ts +34 -0
  25. package/dist/components/Drop.vue.d.ts.map +1 -0
  26. package/dist/components/DropDown.vue.d.ts +3 -3
  27. package/dist/components/FileUploader.vue.d.ts +60 -0
  28. package/dist/components/FileUploader.vue.d.ts.map +1 -0
  29. package/dist/components/Flag.d.ts +20 -0
  30. package/dist/components/Flag.d.ts.map +1 -0
  31. package/dist/components/FormSchema.vue.d.ts +5 -4
  32. package/dist/components/LangText.vue.d.ts +2 -2
  33. package/dist/components/ListItem.d.ts +34 -0
  34. package/dist/components/ListItem.d.ts.map +1 -0
  35. package/dist/components/ListItem.vue.d.ts.map +1 -1
  36. package/dist/components/ListView.d.ts +13 -0
  37. package/dist/components/ListView.d.ts.map +1 -0
  38. package/dist/components/MapEmbed.d.ts +3 -0
  39. package/dist/components/MapEmbed.d.ts.map +1 -0
  40. package/dist/components/MaterialIcon.d.ts +26 -0
  41. package/dist/components/MaterialIcon.d.ts.map +1 -0
  42. package/dist/components/Modal.d.ts +46 -0
  43. package/dist/components/Modal.d.ts.map +1 -0
  44. package/dist/components/ModalBglForm.vue.d.ts +21 -20
  45. package/dist/components/ModalConfirm.d.ts +24 -0
  46. package/dist/components/ModalConfirm.d.ts.map +1 -0
  47. package/dist/components/ModalConfirm.vue.d.ts +1 -10
  48. package/dist/components/ModalConfirm.vue.d.ts.map +1 -1
  49. package/dist/components/ModalForm.d.ts +78 -0
  50. package/dist/components/ModalForm.d.ts.map +1 -0
  51. package/dist/components/NavBar.d.ts +64 -0
  52. package/dist/components/NavBar.d.ts.map +1 -0
  53. package/dist/components/PageTitle.d.ts +24 -0
  54. package/dist/components/PageTitle.d.ts.map +1 -0
  55. package/dist/components/PersonPreview.vue.d.ts +5 -4
  56. package/dist/components/PersonPreviewFormkit.vue.d.ts +4 -3
  57. package/dist/components/RTXEditor.vue.d.ts +3 -3
  58. package/dist/components/RouterWrapper.d.ts +3 -0
  59. package/dist/components/RouterWrapper.d.ts.map +1 -0
  60. package/dist/components/TabbedLayout.vue.d.ts +5 -4
  61. package/dist/components/TableSchema.d.ts +35 -0
  62. package/dist/components/TableSchema.d.ts.map +1 -0
  63. package/dist/components/Title.d.ts +42 -0
  64. package/dist/components/Title.d.ts.map +1 -0
  65. package/dist/components/TopBar.d.ts +12 -0
  66. package/dist/components/TopBar.d.ts.map +1 -0
  67. package/dist/components/charts/BarChart.vue.d.ts +2 -2
  68. package/dist/components/dashboard/Lineart.d.ts +20 -0
  69. package/dist/components/dashboard/Lineart.d.ts.map +1 -0
  70. package/dist/components/form/BglField.d.ts +25 -0
  71. package/dist/components/form/BglField.d.ts.map +1 -0
  72. package/dist/components/form/BglForm.d.ts +75 -0
  73. package/dist/components/form/BglForm.d.ts.map +1 -0
  74. package/dist/components/form/BglForm.vue.d.ts +5 -0
  75. package/dist/components/form/BglForm.vue.d.ts.map +1 -1
  76. package/dist/components/form/ItemRef.vue.d.ts +5 -3
  77. package/dist/components/form/ItemRef.vue.d.ts.map +1 -1
  78. package/dist/components/form/MaterialIcon.vue.d.ts +4 -3
  79. package/dist/components/form/PlainInputField.vue.d.ts +3 -3
  80. package/dist/components/form/inputs/CheckInput.d.ts +56 -0
  81. package/dist/components/form/inputs/CheckInput.d.ts.map +1 -0
  82. package/dist/components/form/inputs/Checkbox.d.ts +16 -0
  83. package/dist/components/form/inputs/Checkbox.d.ts.map +1 -0
  84. package/dist/components/form/inputs/ColorPicker.d.ts +48 -0
  85. package/dist/components/form/inputs/ColorPicker.d.ts.map +1 -0
  86. package/dist/components/form/inputs/CurrencyInput.vue.d.ts +3 -3
  87. package/dist/components/form/inputs/DateInput.d.ts +64 -0
  88. package/dist/components/form/inputs/DateInput.d.ts.map +1 -0
  89. package/dist/components/form/inputs/DatePicker.d.ts +33 -0
  90. package/dist/components/form/inputs/DatePicker.d.ts.map +1 -0
  91. package/dist/components/form/inputs/DatetimeInput.vue.d.ts +3 -3
  92. package/dist/components/form/inputs/DurationInput.vue.d.ts +3 -3
  93. package/dist/components/form/inputs/DynamicLinkField.vue.d.ts +3 -3
  94. package/dist/components/form/inputs/EmailInput.vue.d.ts +3 -3
  95. package/dist/components/form/inputs/FileUpload.d.ts +108 -0
  96. package/dist/components/form/inputs/FileUpload.d.ts.map +1 -0
  97. package/dist/components/form/inputs/FileUpload.vue.d.ts +6 -0
  98. package/dist/components/form/inputs/FileUpload.vue.d.ts.map +1 -1
  99. package/dist/components/form/inputs/FloatInput.vue.d.ts +3 -3
  100. package/dist/components/form/inputs/IntInput.vue.d.ts +3 -3
  101. package/dist/components/form/inputs/JSONInput.d.ts +53 -0
  102. package/dist/components/form/inputs/JSONInput.d.ts.map +1 -0
  103. package/dist/components/form/inputs/LinkField.vue.d.ts +3 -3
  104. package/dist/components/form/inputs/Password.vue.d.ts +3 -3
  105. package/dist/components/form/inputs/PasswordInput.vue.d.ts +3 -3
  106. package/dist/components/form/inputs/PlainText.vue.d.ts +3 -3
  107. package/dist/components/form/inputs/RadioGroup.d.ts +42 -0
  108. package/dist/components/form/inputs/RadioGroup.d.ts.map +1 -0
  109. package/dist/components/form/inputs/RadioPillsInput.d.ts +48 -0
  110. package/dist/components/form/inputs/RadioPillsInput.d.ts.map +1 -0
  111. package/dist/components/form/inputs/ReadOnlyInput.vue.d.ts +2 -2
  112. package/dist/components/form/inputs/RichText.d.ts +20 -0
  113. package/dist/components/form/inputs/RichText.d.ts.map +1 -0
  114. package/dist/components/form/inputs/RichText2/Toolbar.d.ts +22 -0
  115. package/dist/components/form/inputs/RichText2/Toolbar.d.ts.map +1 -0
  116. package/dist/components/form/inputs/RichText2/index.d.ts +24 -0
  117. package/dist/components/form/inputs/RichText2/index.d.ts.map +1 -0
  118. package/dist/components/form/inputs/RichTextEditor.vue.d.ts +3 -3
  119. package/dist/components/form/inputs/SelectField.vue.d.ts +6 -8
  120. package/dist/components/form/inputs/SelectField.vue.d.ts.map +1 -1
  121. package/dist/components/form/inputs/SelectInput.d.ts +55 -0
  122. package/dist/components/form/inputs/SelectInput.d.ts.map +1 -0
  123. package/dist/components/form/inputs/SignaturePad.d.ts +72 -0
  124. package/dist/components/form/inputs/SignaturePad.d.ts.map +1 -0
  125. package/dist/components/form/inputs/TableField.d.ts +45 -0
  126. package/dist/components/form/inputs/TableField.d.ts.map +1 -0
  127. package/dist/components/form/inputs/TelInput.d.ts +241 -0
  128. package/dist/components/form/inputs/TelInput.d.ts.map +1 -0
  129. package/dist/components/form/inputs/TextArea.vue.d.ts +3 -3
  130. package/dist/components/form/inputs/TextInput.d.ts +90 -0
  131. package/dist/components/form/inputs/TextInput.d.ts.map +1 -0
  132. package/dist/components/form/inputs/ToggleInput.d.ts +58 -0
  133. package/dist/components/form/inputs/ToggleInput.d.ts.map +1 -0
  134. package/dist/components/formkit/AddressArray.vue.d.ts +2 -2
  135. package/dist/components/formkit/BankDetailsArray.vue.d.ts +2 -2
  136. package/dist/components/formkit/ContactArrayFormKit.vue.d.ts +2 -2
  137. package/dist/components/formkit/FileUploader.vue.d.ts +2 -2
  138. package/dist/components/formkit/MiscFields.vue.d.ts +2 -2
  139. package/dist/components/formkit/Toggle.vue.d.ts +2 -2
  140. package/dist/components/layout/BottomMenu.d.ts +27 -0
  141. package/dist/components/layout/BottomMenu.d.ts.map +1 -0
  142. package/dist/components/layout/Layout.d.ts +58 -0
  143. package/dist/components/layout/Layout.d.ts.map +1 -0
  144. package/dist/components/layout/SidebarMenu.d.ts +38 -0
  145. package/dist/components/layout/SidebarMenu.d.ts.map +1 -0
  146. package/dist/components/layout/TabbedLayout.d.ts +42 -0
  147. package/dist/components/layout/TabbedLayout.d.ts.map +1 -0
  148. package/dist/components/layout/Tabs.d.ts +31 -0
  149. package/dist/components/layout/Tabs.d.ts.map +1 -0
  150. package/dist/components/layout/TabsBody.d.ts +23 -0
  151. package/dist/components/layout/TabsBody.d.ts.map +1 -0
  152. package/dist/components/layout/TabsNav.d.ts +35 -0
  153. package/dist/components/layout/TabsNav.d.ts.map +1 -0
  154. package/dist/components/whatsapp/form/MsgTemplate.vue.d.ts +4 -3
  155. package/dist/components/whatsapp/form/TextVariableExamples.vue.d.ts +2 -2
  156. package/dist/index.cjs +254 -158
  157. package/dist/index.d.ts +1 -0
  158. package/dist/index.d.ts.map +1 -1
  159. package/dist/index.mjs +254 -158
  160. package/dist/plugins/modal.d.ts.map +1 -1
  161. package/dist/style.css +118 -39
  162. package/dist/utils/BagelFormUtils.d.ts +10 -0
  163. package/dist/utils/BagelFormUtils.d.ts.map +1 -1
  164. package/dist/utils/constants.d.ts +5 -0
  165. package/dist/utils/constants.d.ts.map +1 -0
  166. package/dist/utils/objects.d.ts +1 -0
  167. package/package.json +13 -13
  168. package/src/components/ListItem.vue +6 -3
  169. package/src/components/ModalConfirm.vue +9 -5
  170. package/src/components/form/BglForm.vue +11 -1
  171. package/src/components/form/inputs/FileUpload.vue +185 -64
  172. package/src/index.ts +1 -0
  173. package/src/plugins/modal.ts +48 -16
  174. package/src/utils/constants.ts +4 -0
  175. package/dist/components/Popover.vue.d.ts +0 -10
  176. package/dist/components/Popover.vue.d.ts.map +0 -1
  177. package/dist/types/materialIcon.d.ts +0 -2
  178. package/dist/types/materialIcon.d.ts.map +0 -1
  179. package/src/components/form/inputs/FileUploadURL.vue +0 -300
package/dist/index.mjs CHANGED
@@ -2937,7 +2937,10 @@ function AxiosError(message2, code2, config, request, response) {
2937
2937
  code2 && (this.code = code2);
2938
2938
  config && (this.config = config);
2939
2939
  request && (this.request = request);
2940
- response && (this.response = response);
2940
+ if (response) {
2941
+ this.response = response;
2942
+ this.status = response.status ? response.status : null;
2943
+ }
2941
2944
  }
2942
2945
  utils$1.inherits(AxiosError, Error, {
2943
2946
  toJSON: function toJSON() {
@@ -2956,7 +2959,7 @@ utils$1.inherits(AxiosError, Error, {
2956
2959
  // Axios
2957
2960
  config: utils$1.toJSONObject(this.config),
2958
2961
  code: this.code,
2959
- status: this.response && this.response.status ? this.response.status : null
2962
+ status: this.status
2960
2963
  };
2961
2964
  }
2962
2965
  });
@@ -3237,9 +3240,8 @@ const platform$1 = {
3237
3240
  protocols: ["http", "https", "file", "blob", "url", "data"]
3238
3241
  };
3239
3242
  const hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
3240
- const hasStandardBrowserEnv = ((product) => {
3241
- return hasBrowserEnv && ["ReactNative", "NativeScript", "NS"].indexOf(product) < 0;
3242
- })(typeof navigator !== "undefined" && navigator.product);
3243
+ const _navigator = typeof navigator === "object" && navigator || void 0;
3244
+ const hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0);
3243
3245
  const hasStandardBrowserWebWorkerEnv = (() => {
3244
3246
  return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
3245
3247
  self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
@@ -3250,6 +3252,7 @@ const utils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
3250
3252
  hasBrowserEnv,
3251
3253
  hasStandardBrowserEnv,
3252
3254
  hasStandardBrowserWebWorkerEnv,
3255
+ navigator: _navigator,
3253
3256
  origin
3254
3257
  }, Symbol.toStringTag, { value: "Module" }));
3255
3258
  const platform = {
@@ -3825,7 +3828,7 @@ const isURLSameOrigin = platform.hasStandardBrowserEnv ? (
3825
3828
  // Standard browser envs have full support of the APIs needed to test
3826
3829
  // whether the request URL is of the same origin as current location.
3827
3830
  function standardBrowserEnv() {
3828
- const msie = /(msie|trident)/i.test(navigator.userAgent);
3831
+ const msie = platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent);
3829
3832
  const urlParsingNode = document.createElement("a");
3830
3833
  let originURL;
3831
3834
  function resolveURL(url) {
@@ -4331,6 +4334,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
4331
4334
  if (!utils$1.isString(withCredentials)) {
4332
4335
  withCredentials = withCredentials ? "include" : "omit";
4333
4336
  }
4337
+ const isCredentialsSupported = "credentials" in Request.prototype;
4334
4338
  request = new Request(url, {
4335
4339
  ...fetchOptions,
4336
4340
  signal: composedSignal,
@@ -4338,7 +4342,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
4338
4342
  headers: headers.normalize().toJSON(),
4339
4343
  body: data2,
4340
4344
  duplex: "half",
4341
- credentials: withCredentials
4345
+ credentials: isCredentialsSupported ? withCredentials : void 0
4342
4346
  });
4343
4347
  let response = await fetch(request);
4344
4348
  const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
@@ -4482,7 +4486,7 @@ function dispatchRequest(config) {
4482
4486
  return Promise.reject(reason);
4483
4487
  });
4484
4488
  }
4485
- const VERSION = "1.7.4";
4489
+ const VERSION = "1.7.5";
4486
4490
  const validators$1 = {};
4487
4491
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type3, i2) => {
4488
4492
  validators$1[type3] = function validator2(thing) {
@@ -5467,14 +5471,16 @@ const ModalPlugin = {
5467
5471
  const hideModal = (index2) => {
5468
5472
  modalStack.value.splice(index2, 1);
5469
5473
  };
5470
- const modalConfirm = async (options) => new Promise((resolve) => {
5471
- if (typeof options === "string") options = { title: options, message: "" };
5472
- modalStack.value.push({
5473
- modalOptions: { ...options, resolve },
5474
- modalType: "confirm",
5475
- componentSlots: {}
5476
- });
5477
- });
5474
+ const modalConfirm = async (options) => new Promise(
5475
+ (resolve) => {
5476
+ if (typeof options === "string") options = { title: "", message: options };
5477
+ modalStack.value.push({
5478
+ modalOptions: { ...options, resolve },
5479
+ modalType: "confirm",
5480
+ componentSlots: {}
5481
+ });
5482
+ }
5483
+ );
5478
5484
  const showModal = (modalType, options, slots = {}) => {
5479
5485
  modalStack.value.push({
5480
5486
  modalOptions: options,
@@ -5496,11 +5502,19 @@ const ModalPlugin = {
5496
5502
  data: () => ({ modalStack: modalStack.value }),
5497
5503
  render() {
5498
5504
  return this.modalStack.map((modal, index2) => {
5499
- const props2 = { ...modal.modalOptions, "visible": true, "onUpdate:visible": () => {
5500
- hideModal(index2);
5501
- } };
5502
- if (modal.modalType === "modalForm") return h$2(ModalForm, props2, modal.componentSlots);
5503
- if (modal.modalType === "confirm") return h$2(_sfc_main$v, props2, {});
5505
+ const props2 = {
5506
+ ...modal.modalOptions,
5507
+ "visible": true,
5508
+ "onUpdate:visible": () => {
5509
+ hideModal(index2);
5510
+ }
5511
+ };
5512
+ if (modal.modalType === "modalForm") {
5513
+ return h$2(ModalForm, props2, modal.componentSlots);
5514
+ }
5515
+ if (modal.modalType === "confirm") {
5516
+ return h$2(_sfc_main$v, props2, {});
5517
+ }
5504
5518
  return h$2(_sfc_main$N, props2, modal.componentSlots);
5505
5519
  });
5506
5520
  }
@@ -5545,8 +5559,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
5545
5559
  };
5546
5560
  }
5547
5561
  });
5548
- const _hoisted_1$L = { class: "full-nav" };
5549
- const _hoisted_2$A = { class: "nav-scroll" };
5562
+ const _hoisted_1$M = { class: "full-nav" };
5563
+ const _hoisted_2$B = { class: "nav-scroll" };
5550
5564
  const _hoisted_3$o = { class: "nav-links-wrapper" };
5551
5565
  const _hoisted_4$g = { class: "tooltip" };
5552
5566
  const _hoisted_5$f = { class: "bot-buttons-wrapper" };
@@ -5581,8 +5595,8 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
5581
5595
  class: "top-arrow"
5582
5596
  })
5583
5597
  ], 32),
5584
- createElementVNode("div", _hoisted_1$L, [
5585
- createElementVNode("div", _hoisted_2$A, [
5598
+ createElementVNode("div", _hoisted_1$M, [
5599
+ createElementVNode("div", _hoisted_2$B, [
5586
5600
  createElementVNode("div", _hoisted_3$o, [
5587
5601
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.links, (link) => {
5588
5602
  return openBlock(), createBlock(resolveDynamicComponent(link.to ? "router-link" : "div"), {
@@ -5640,11 +5654,11 @@ const _export_sfc = (sfc, props2) => {
5640
5654
  return target;
5641
5655
  };
5642
5656
  const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-776cab4a"]]);
5643
- const _hoisted_1$K = {
5657
+ const _hoisted_1$L = {
5644
5658
  key: 0,
5645
5659
  class: "loading"
5646
5660
  };
5647
- const _hoisted_2$z = {
5661
+ const _hoisted_2$A = {
5648
5662
  key: 1,
5649
5663
  class: "bgl_btn-flex"
5650
5664
  };
@@ -5742,7 +5756,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
5742
5756
  onClick: withModifiers(_ctx.onClick, ["stop"])
5743
5757
  }, {
5744
5758
  default: withCtx(() => [
5745
- _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$K)) : (openBlock(), createElementBlock("div", _hoisted_2$z, [
5759
+ _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$L)) : (openBlock(), createElementBlock("div", _hoisted_2$A, [
5746
5760
  _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$Q), {
5747
5761
  key: 0,
5748
5762
  icon: _ctx.icon
@@ -5763,11 +5777,11 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
5763
5777
  }
5764
5778
  });
5765
5779
  const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-895cf824"]]);
5766
- const _hoisted_1$J = {
5780
+ const _hoisted_1$K = {
5767
5781
  key: 0,
5768
5782
  class: "tool-bar"
5769
5783
  };
5770
- const _hoisted_2$y = {
5784
+ const _hoisted_2$z = {
5771
5785
  key: 1,
5772
5786
  class: "sticky bg-white z-index-999 -mt-1 -ms-1 px-025 h-30px pt-025 modal-no-title"
5773
5787
  };
@@ -5840,7 +5854,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
5840
5854
  default: withCtx(() => {
5841
5855
  var _a2;
5842
5856
  return [
5843
- unref(slots).toolbar || _ctx.title ? (openBlock(), createElementBlock("header", _hoisted_1$J, [
5857
+ unref(slots).toolbar || _ctx.title ? (openBlock(), createElementBlock("header", _hoisted_1$K, [
5844
5858
  renderSlot(_ctx.$slots, "toolbar"),
5845
5859
  createVNode(unref(Btn), {
5846
5860
  style: normalizeStyle({ float: _ctx.side ? "left" : "right" }),
@@ -5854,7 +5868,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
5854
5868
  tag: "h3",
5855
5869
  label: _ctx.title
5856
5870
  }, null, 8, ["label"])) : createCommentVNode("", true)
5857
- ])) : (openBlock(), createElementBlock("div", _hoisted_2$y, [
5871
+ ])) : (openBlock(), createElementBlock("div", _hoisted_2$z, [
5858
5872
  createVNode(unref(Btn), {
5859
5873
  class: "color-black position-start",
5860
5874
  icon: "close",
@@ -5997,8 +6011,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
5997
6011
  }
5998
6012
  });
5999
6013
  const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-083a1b2d"]]);
6000
- const _hoisted_1$I = { class: "accordion-item" };
6001
- const _hoisted_2$x = ["aria-expanded", "aria-controls"];
6014
+ const _hoisted_1$J = { class: "accordion-item" };
6015
+ const _hoisted_2$y = ["aria-expanded", "aria-controls"];
6002
6016
  const _hoisted_3$m = { class: "accordion-label" };
6003
6017
  const _hoisted_4$f = ["id", "aria-hidden"];
6004
6018
  const _sfc_main$L = /* @__PURE__ */ defineComponent({
@@ -6038,7 +6052,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
6038
6052
  else if (accordionState.openItem === id) accordionState.openItem = null;
6039
6053
  }
6040
6054
  return (_ctx, _cache) => {
6041
- return openBlock(), createElementBlock("div", _hoisted_1$I, [
6055
+ return openBlock(), createElementBlock("div", _hoisted_1$J, [
6042
6056
  createElementVNode("button", {
6043
6057
  "aria-expanded": unref(isOpen) ? "true" : "false",
6044
6058
  class: "accordion-head",
@@ -6053,7 +6067,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
6053
6067
  }, [
6054
6068
  createVNode(unref(_sfc_main$Q), { icon: "expand_more" })
6055
6069
  ], 2)
6056
- ], 8, _hoisted_2$x),
6070
+ ], 8, _hoisted_2$y),
6057
6071
  createVNode(Transition, { name: "expand" }, {
6058
6072
  default: withCtx(() => [
6059
6073
  unref(isOpen) ? (openBlock(), createElementBlock("div", {
@@ -6073,12 +6087,12 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
6073
6087
  });
6074
6088
  const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-f87b579d"]]);
6075
6089
  const _sfc_main$K = {};
6076
- const _hoisted_1$H = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 pt-0 pb-05 px-0 m_pb-0" };
6077
- const _hoisted_2$w = { class: "p-1" };
6090
+ const _hoisted_1$I = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 pt-0 pb-05 px-0 m_pb-0" };
6091
+ const _hoisted_2$x = { class: "p-1" };
6078
6092
  const _hoisted_3$l = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
6079
6093
  function _sfc_render$2(_ctx, _cache) {
6080
- return openBlock(), createElementBlock("div", _hoisted_1$H, [
6081
- createElementVNode("div", _hoisted_2$w, [
6094
+ return openBlock(), createElementBlock("div", _hoisted_1$I, [
6095
+ createElementVNode("div", _hoisted_2$x, [
6082
6096
  renderSlot(_ctx.$slots, "header")
6083
6097
  ]),
6084
6098
  createElementVNode("div", _hoisted_3$l, [
@@ -6087,8 +6101,8 @@ function _sfc_render$2(_ctx, _cache) {
6087
6101
  ]);
6088
6102
  }
6089
6103
  const ListView = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$2]]);
6090
- const _hoisted_1$G = { class: "no-margin ellipsis line-height-14 pb-025" };
6091
- const _hoisted_2$v = { class: "txt12 no-margin txt-gray ellipsis" };
6104
+ const _hoisted_1$H = { class: "no-margin ellipsis line-height-14 pb-025" };
6105
+ const _hoisted_2$w = { class: "txt12 no-margin txt-gray ellipsis" };
6092
6106
  const _sfc_main$J = /* @__PURE__ */ defineComponent({
6093
6107
  __name: "ListItem",
6094
6108
  props: {
@@ -6105,7 +6119,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
6105
6119
  return (_ctx, _cache) => {
6106
6120
  return openBlock(), createBlock(resolveDynamicComponent(_ctx.to ? "RouterLink" : "div"), {
6107
6121
  to: _ctx.to,
6108
- class: normalizeClass(["flex gap-1", { "list-item": _ctx.to || _ctx.onClick, "no-border-list": _ctx.flat }])
6122
+ class: normalizeClass(["flex gap-1 list-item", { "notClickable": !(_ctx.to || _ctx.onClick), "no-border-list": _ctx.flat }])
6109
6123
  }, {
6110
6124
  default: withCtx(() => [
6111
6125
  _ctx.src || _ctx.showAvatar ? (openBlock(), createBlock(unref(Avatar), {
@@ -6122,11 +6136,11 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
6122
6136
  icon: _ctx.icon
6123
6137
  }, null, 8, ["icon"])) : createCommentVNode("", true),
6124
6138
  createElementVNode("div", null, [
6125
- createElementVNode("p", _hoisted_1$G, [
6139
+ createElementVNode("p", _hoisted_1$H, [
6126
6140
  createTextVNode(toDisplayString(_ctx.title) + " ", 1),
6127
6141
  renderSlot(_ctx.$slots, "default")
6128
6142
  ]),
6129
- createElementVNode("p", _hoisted_2$v, [
6143
+ createElementVNode("p", _hoisted_2$w, [
6130
6144
  createTextVNode(toDisplayString(_ctx.subtitle) + " ", 1),
6131
6145
  renderSlot(_ctx.$slots, "subtitle")
6132
6146
  ])
@@ -6137,8 +6151,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
6137
6151
  };
6138
6152
  }
6139
6153
  });
6140
- const _hoisted_1$F = { class: "page-top" };
6141
- const _hoisted_2$u = { class: "top-title m-0" };
6154
+ const _hoisted_1$G = { class: "page-top" };
6155
+ const _hoisted_2$v = { class: "top-title m-0" };
6142
6156
  const _sfc_main$I = /* @__PURE__ */ defineComponent({
6143
6157
  __name: "PageTitle",
6144
6158
  props: {
@@ -6149,8 +6163,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
6149
6163
  },
6150
6164
  setup(__props) {
6151
6165
  return (_ctx, _cache) => {
6152
- return openBlock(), createElementBlock("div", _hoisted_1$F, [
6153
- createElementVNode("h1", _hoisted_2$u, [
6166
+ return openBlock(), createElementBlock("div", _hoisted_1$G, [
6167
+ createElementVNode("h1", _hoisted_2$v, [
6154
6168
  renderSlot(_ctx.$slots, "default"),
6155
6169
  createTextVNode(" " + toDisplayString(__props.value), 1)
6156
6170
  ])
@@ -6472,14 +6486,14 @@ function useVerticalVirtualList(options, list) {
6472
6486
  containerRef
6473
6487
  };
6474
6488
  }
6475
- const _withScopeId$3 = (n2) => (pushScopeId("data-v-5441d9cd"), n2 = n2(), popScopeId(), n2);
6476
- const _hoisted_1$E = {
6489
+ const _withScopeId$2 = (n2) => (pushScopeId("data-v-5441d9cd"), n2 = n2(), popScopeId(), n2);
6490
+ const _hoisted_1$F = {
6477
6491
  key: 0,
6478
6492
  class: "loading-table-wrapper z-99 h-100 w-100 absolute inset"
6479
6493
  };
6480
- const _hoisted_2$t = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "loading-table-animation absolute oval" }, null, -1));
6494
+ const _hoisted_2$u = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "loading-table-animation absolute oval" }, null, -1));
6481
6495
  const _hoisted_3$k = [
6482
- _hoisted_2$t
6496
+ _hoisted_2$u
6483
6497
  ];
6484
6498
  const _hoisted_4$e = { class: "infinite-wrapper" };
6485
6499
  const _hoisted_5$e = { class: "row first-row" };
@@ -6627,7 +6641,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
6627
6641
  return openBlock(), createElementBlock("div", mergeProps({ class: "table-list-wrap h-100" }, unref(containerProps), {
6628
6642
  class: { "loading-table": loading.value }
6629
6643
  }), [
6630
- loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$E, _hoisted_3$k)) : (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 1 }, unref(wrapperProps))), [
6644
+ loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$F, _hoisted_3$k)) : (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 1 }, unref(wrapperProps))), [
6631
6645
  createElementVNode("table", _hoisted_4$e, [
6632
6646
  createElementVNode("thead", _hoisted_5$e, [
6633
6647
  unref(isSelectable) ? (openBlock(), createElementBlock("th", _hoisted_6$9, [
@@ -6711,9 +6725,9 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
6711
6725
  });
6712
6726
  const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-5441d9cd"]]);
6713
6727
  const _sfc_main$G = {};
6714
- const _hoisted_1$D = { class: "flex space-between" };
6728
+ const _hoisted_1$E = { class: "flex space-between" };
6715
6729
  function _sfc_render$1(_ctx, _cache) {
6716
- return openBlock(), createElementBlock("div", _hoisted_1$D, [
6730
+ return openBlock(), createElementBlock("div", _hoisted_1$E, [
6717
6731
  renderSlot(_ctx.$slots, "default")
6718
6732
  ]);
6719
6733
  }
@@ -6741,11 +6755,11 @@ function _sfc_render(_ctx, _cache) {
6741
6755
  });
6742
6756
  }
6743
6757
  const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render]]);
6744
- const _hoisted_1$C = {
6758
+ const _hoisted_1$D = {
6745
6759
  key: 0,
6746
6760
  class: "data"
6747
6761
  };
6748
- const _hoisted_2$s = {
6762
+ const _hoisted_2$t = {
6749
6763
  key: 0,
6750
6764
  class: "data-row m_py-05"
6751
6765
  };
@@ -6798,7 +6812,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
6798
6812
  const computedSchema = computed(() => getFallbackSchema([itemData.value], props2.showFields));
6799
6813
  return (_ctx, _cache) => {
6800
6814
  var _a2;
6801
- return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$C, [
6815
+ return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$D, [
6802
6816
  _ctx.title ? (openBlock(), createBlock(unref(_sfc_main$B), {
6803
6817
  key: 0,
6804
6818
  label: _ctx.title
@@ -6807,7 +6821,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
6807
6821
  return openBlock(), createElementBlock(Fragment$1, {
6808
6822
  key: field.id
6809
6823
  }, [
6810
- unref(iffer)(field, itemData.value) ? (openBlock(), createElementBlock("div", _hoisted_2$s, [
6824
+ unref(iffer)(field, itemData.value) ? (openBlock(), createElementBlock("div", _hoisted_2$t, [
6811
6825
  createElementVNode("div", _hoisted_3$j, [
6812
6826
  createElementVNode("p", _hoisted_4$d, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1)
6813
6827
  ]),
@@ -6841,7 +6855,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
6841
6855
  }
6842
6856
  });
6843
6857
  const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-4d174f13"]]);
6844
- const _hoisted_1$B = {
6858
+ const _hoisted_1$C = {
6845
6859
  key: 0,
6846
6860
  class: "card_label"
6847
6861
  };
@@ -6873,7 +6887,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
6873
6887
  }])
6874
6888
  }, {
6875
6889
  default: withCtx(() => [
6876
- _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$B, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
6890
+ _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$C, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
6877
6891
  renderSlot(_ctx.$slots, "default")
6878
6892
  ]),
6879
6893
  _: 3
@@ -6881,7 +6895,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
6881
6895
  };
6882
6896
  }
6883
6897
  });
6884
- const _hoisted_1$A = ["src", "alt"];
6898
+ const _hoisted_1$B = ["src", "alt"];
6885
6899
  const _sfc_main$C = /* @__PURE__ */ defineComponent({
6886
6900
  __name: "Avatar",
6887
6901
  props: {
@@ -6900,7 +6914,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
6900
6914
  key: 0,
6901
6915
  src: _ctx.src,
6902
6916
  alt: _ctx.name
6903
- }, null, 8, _hoisted_1$A)) : (openBlock(), createElementBlock("p", {
6917
+ }, null, 8, _hoisted_1$B)) : (openBlock(), createElementBlock("p", {
6904
6918
  key: 1,
6905
6919
  style: normalizeStyle({ "line-height": `${_ctx.size}px`, "font-size": `calc(1.5rem * ${_ctx.size} / 50)` })
6906
6920
  }, toDisplayString(_ctx.fallback || unref(initials)(_ctx.name || "")), 5))
@@ -6951,8 +6965,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
6951
6965
  };
6952
6966
  }
6953
6967
  });
6954
- const _hoisted_1$z = ["dismissable"];
6955
- const _hoisted_2$r = { class: "m-0" };
6968
+ const _hoisted_1$A = ["dismissable"];
6969
+ const _hoisted_2$s = { class: "m-0" };
6956
6970
  const _sfc_main$z = /* @__PURE__ */ defineComponent({
6957
6971
  __name: "Alert",
6958
6972
  props: {
@@ -6981,7 +6995,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
6981
6995
  size: 2,
6982
6996
  color: color2[_ctx.type]
6983
6997
  }, null, 8, ["icon", "color"])) : createCommentVNode("", true),
6984
- createElementVNode("p", _hoisted_2$r, toDisplayString(_ctx.message), 1),
6998
+ createElementVNode("p", _hoisted_2$s, toDisplayString(_ctx.message), 1),
6985
6999
  createVNode(Btn, {
6986
7000
  flat: "",
6987
7001
  thin: "",
@@ -6989,7 +7003,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
6989
7003
  icon: "close",
6990
7004
  onClick: _cache[0] || (_cache[0] = ($event) => isDismissed.value = true)
6991
7005
  })
6992
- ], 10, _hoisted_1$z)) : createCommentVNode("", true);
7006
+ ], 10, _hoisted_1$A)) : createCommentVNode("", true);
6993
7007
  };
6994
7008
  }
6995
7009
  });
@@ -7026,8 +7040,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
7026
7040
  }
7027
7041
  });
7028
7042
  const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-532b36ae"]]);
7029
- const _hoisted_1$y = ["src"];
7030
- const _hoisted_2$q = ["src", "autoplay", "muted", "loop", "controls"];
7043
+ const _hoisted_1$z = ["src"];
7044
+ const _hoisted_2$r = ["src", "autoplay", "muted", "loop", "controls"];
7031
7045
  const _sfc_main$x = /* @__PURE__ */ defineComponent({
7032
7046
  __name: "BglVideo",
7033
7047
  props: {
@@ -7080,7 +7094,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
7080
7094
  frameborder: "0",
7081
7095
  allowfullscreen: "",
7082
7096
  title: "Video"
7083
- }, null, 12, _hoisted_1$y)) : _ctx.src ? (openBlock(), createElementBlock("video", {
7097
+ }, null, 12, _hoisted_1$z)) : _ctx.src ? (openBlock(), createElementBlock("video", {
7084
7098
  key: 1,
7085
7099
  src: _ctx.src,
7086
7100
  autoplay: _ctx.autoplay,
@@ -7089,17 +7103,17 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
7089
7103
  style: normalizeStyle({ aspectRatio: aspectRatio.value }),
7090
7104
  controls: _ctx.controls,
7091
7105
  playsinline: ""
7092
- }, null, 12, _hoisted_2$q)) : createCommentVNode("", true)
7106
+ }, null, 12, _hoisted_2$r)) : createCommentVNode("", true)
7093
7107
  ], 2);
7094
7108
  };
7095
7109
  }
7096
7110
  });
7097
7111
  const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-862e1f20"]]);
7098
- const _hoisted_1$x = {
7112
+ const _hoisted_1$y = {
7099
7113
  key: 0,
7100
7114
  class: "blocker"
7101
7115
  };
7102
- const _hoisted_2$p = { class: "Handlers" };
7116
+ const _hoisted_2$q = { class: "Handlers" };
7103
7117
  const _sfc_main$w = /* @__PURE__ */ defineComponent({
7104
7118
  __name: "Carousel",
7105
7119
  props: {
@@ -7248,10 +7262,10 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
7248
7262
  onScrollend: scrollEnd,
7249
7263
  onMousedown: startDragging
7250
7264
  }, [
7251
- unref(isDragging) ? (openBlock(), createElementBlock("div", _hoisted_1$x)) : createCommentVNode("", true),
7265
+ unref(isDragging) ? (openBlock(), createElementBlock("div", _hoisted_1$y)) : createCommentVNode("", true),
7252
7266
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
7253
7267
  ], 34),
7254
- createElementVNode("div", _hoisted_2$p, [
7268
+ createElementVNode("div", _hoisted_2$q, [
7255
7269
  createElementVNode("span", { onClick: prev }, [
7256
7270
  renderSlot(_ctx.$slots, "prev", {
7257
7271
  prev,
@@ -7270,6 +7284,8 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
7270
7284
  }
7271
7285
  });
7272
7286
  const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-1f9c6644"]]);
7287
+ const _hoisted_1$x = { class: "m-0" };
7288
+ const _hoisted_2$p = { class: "px-1 py-1 pretty m-0" };
7273
7289
  const _sfc_main$v = /* @__PURE__ */ defineComponent({
7274
7290
  __name: "ModalConfirm",
7275
7291
  props: {
@@ -7289,26 +7305,27 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
7289
7305
  return openBlock(), createBlock(unref(_sfc_main$N), {
7290
7306
  width: "380px",
7291
7307
  dismissable: false,
7292
- title: _ctx.title
7308
+ class: "color-black txt-center"
7293
7309
  }, {
7294
7310
  footer: withCtx(() => [
7295
7311
  createVNode(unref(Btn), {
7296
- color: "primary",
7297
- value: "Confirm",
7298
- onClick: _cache[0] || (_cache[0] = ($event) => select2(true))
7312
+ flat: "",
7313
+ thin: "",
7314
+ value: "Cancel",
7315
+ onClick: _cache[0] || (_cache[0] = ($event) => select2(false))
7299
7316
  }),
7300
7317
  createVNode(unref(Btn), {
7301
- color: "red",
7302
- value: "Cancel",
7303
- onClick: _cache[1] || (_cache[1] = ($event) => select2(false))
7318
+ color: "green",
7319
+ value: "Confirm",
7320
+ onClick: _cache[1] || (_cache[1] = ($event) => select2(true))
7304
7321
  })
7305
7322
  ]),
7306
7323
  default: withCtx(() => [
7307
- createTextVNode(toDisplayString(_ctx.message) + " ", 1),
7308
- renderSlot(_ctx.$slots, "default")
7324
+ createElementVNode("h3", _hoisted_1$x, toDisplayString(_ctx.title), 1),
7325
+ createElementVNode("p", _hoisted_2$p, toDisplayString(_ctx.message), 1)
7309
7326
  ]),
7310
- _: 3
7311
- }, 8, ["title"]);
7327
+ _: 1
7328
+ });
7312
7329
  };
7313
7330
  }
7314
7331
  });
@@ -7443,8 +7460,27 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
7443
7460
  });
7444
7461
  return (_ctx, _cache) => {
7445
7462
  return openBlock(), createElementBlock(Fragment$1, null, [
7446
- !unref(slots).success || _ctx.status !== "success" ? (openBlock(), createElementBlock("form", {
7447
- key: 0,
7463
+ _ctx.id ? (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
7464
+ _ctx.label ? (openBlock(), createBlock(unref(_sfc_main$B), {
7465
+ key: 0,
7466
+ tag: "h4",
7467
+ label: _ctx.label
7468
+ }, null, 8, ["label"])) : createCommentVNode("", true),
7469
+ (openBlock(true), createElementBlock(Fragment$1, null, renderList(computedSchema.value, (field, i2) => {
7470
+ return openBlock(), createBlock(unref(_sfc_main$r), {
7471
+ key: field.id || `${i2}p`,
7472
+ modelValue: unref(data2),
7473
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(data2) ? data2.value = $event : data2 = $event),
7474
+ field
7475
+ }, null, 8, ["modelValue", "field"]);
7476
+ }), 128)),
7477
+ renderSlot(_ctx.$slots, "submit", {
7478
+ submit: runSubmit,
7479
+ isDirty: unref(isDirty),
7480
+ validateForm
7481
+ })
7482
+ ], 64)) : !unref(slots).success || _ctx.status !== "success" ? (openBlock(), createElementBlock("form", {
7483
+ key: 1,
7448
7484
  ref_key: "form",
7449
7485
  ref: form,
7450
7486
  onSubmit: withModifiers(runSubmit, ["prevent"])
@@ -7458,7 +7494,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
7458
7494
  return openBlock(), createBlock(unref(_sfc_main$r), {
7459
7495
  key: field.id || `${i2}p`,
7460
7496
  modelValue: unref(data2),
7461
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(data2) ? data2.value = $event : data2 = $event),
7497
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(data2) ? data2.value = $event : data2 = $event),
7462
7498
  field
7463
7499
  }, null, 8, ["modelValue", "field"]);
7464
7500
  }), 128)),
@@ -7468,8 +7504,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
7468
7504
  validateForm
7469
7505
  })
7470
7506
  ], 544)) : createCommentVNode("", true),
7471
- _ctx.status === "success" ? renderSlot(_ctx.$slots, "success", { key: 1 }) : createCommentVNode("", true),
7472
- _ctx.status === "error" ? renderSlot(_ctx.$slots, "error", { key: 2 }) : createCommentVNode("", true)
7507
+ _ctx.status === "success" ? renderSlot(_ctx.$slots, "success", { key: 2 }) : createCommentVNode("", true),
7508
+ _ctx.status === "error" ? renderSlot(_ctx.$slots, "error", { key: 3 }) : createCommentVNode("", true)
7473
7509
  ], 64);
7474
7510
  };
7475
7511
  }
@@ -19518,32 +19554,30 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19518
19554
  }
19519
19555
  });
19520
19556
  const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-d86ce838"]]);
19521
- const _withScopeId$2 = (n2) => (pushScopeId("data-v-4c71cd49"), n2 = n2(), popScopeId(), n2);
19522
19557
  const _hoisted_1$k = { class: "bagel-input" };
19523
19558
  const _hoisted_2$f = {
19524
19559
  key: 0,
19525
- class: "single-image"
19560
+ class: "bgl-multi-preview"
19526
19561
  };
19527
19562
  const _hoisted_3$b = ["src"];
19528
- const _hoisted_4$7 = {
19529
- key: 1,
19530
- class: "multi-image-item previewName"
19531
- };
19532
- const _hoisted_5$7 = ["src"];
19533
- const _hoisted_6$5 = { class: "no-margin" };
19563
+ const _hoisted_4$7 = { class: "m-0" };
19564
+ const _hoisted_5$7 = ["width", "src"];
19565
+ const _hoisted_6$5 = { class: "no-margin multi-preview-txt" };
19534
19566
  const _hoisted_7$2 = {
19535
19567
  key: 0,
19536
- class: "imagePreviewWrap"
19568
+ class: "progress"
19569
+ };
19570
+ const _hoisted_8 = {
19571
+ key: 1,
19572
+ class: "bgl-single-preview"
19537
19573
  };
19538
- const _hoisted_8 = ["src"];
19539
- const _hoisted_9 = { class: "previewName" };
19540
- const _hoisted_10 = ["width", "src"];
19541
- const _hoisted_11 = { class: "no-margin" };
19542
- const _hoisted_12 = {
19574
+ const _hoisted_9 = ["src"];
19575
+ const _hoisted_10 = {
19543
19576
  key: 0,
19544
19577
  class: "progress"
19545
19578
  };
19546
- const _hoisted_13 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("p", null, "Drop files here or click to upload", -1));
19579
+ const _hoisted_11 = ["src"];
19580
+ const _hoisted_12 = { class: "p-1 flex column hover fileUploadPlaceHolder" };
19547
19581
  const _sfc_main$f = /* @__PURE__ */ defineComponent({
19548
19582
  __name: "FileUpload",
19549
19583
  props: {
@@ -19553,7 +19587,10 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19553
19587
  bindkey: {},
19554
19588
  modelValue: {},
19555
19589
  width: {},
19556
- topic: {}
19590
+ height: {},
19591
+ topic: {},
19592
+ fill: { type: Boolean },
19593
+ oval: { type: Boolean }
19557
19594
  },
19558
19595
  emits: ["update:modelValue", "addFileStart"],
19559
19596
  setup(__props, { emit: __emit }) {
@@ -19561,6 +19598,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19561
19598
  const emit2 = __emit;
19562
19599
  const bagel = useBagel();
19563
19600
  const bindKey2 = props2.bindkey || "id";
19601
+ const isImage = (str) => IMAGE_FORMATS_REGEXP.test(str);
19564
19602
  let file_bindkeys = ref(props2.modelValue || []);
19565
19603
  const storageFiles = ref([]);
19566
19604
  async function fetchFiles() {
@@ -19679,9 +19717,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19679
19717
  createElementVNode("label", null, toDisplayString(_ctx.label), 1),
19680
19718
  createElementVNode("div", {
19681
19719
  class: normalizeClass(["fileUploadWrap", {
19682
- fileDropZone: !storageFiles.value.length && !fileQueue.value.length,
19683
- dragover: unref(isDragOver)
19720
+ "fileDropZone": !storageFiles.value.length && !fileQueue.value.length,
19721
+ "dragover": unref(isDragOver),
19722
+ "bgl_oval-upload": _ctx.oval
19684
19723
  }]),
19724
+ style: normalizeStyle({ width: props2.width, height: props2.height || "215px" }),
19685
19725
  onClick: browse,
19686
19726
  onDragover: dragover,
19687
19727
  onDrop: drop3,
@@ -19691,24 +19731,23 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19691
19731
  files: storageFiles.value,
19692
19732
  fileQueue: fileQueue.value
19693
19733
  }, () => [
19694
- (openBlock(true), createElementBlock(Fragment$1, null, renderList(storageFiles.value, (file) => {
19695
- return openBlock(), createElementBlock(Fragment$1, {
19696
- key: file.id
19697
- }, [
19698
- !_ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_2$f, [
19699
- createElementVNode("img", {
19700
- class: "single preview",
19701
- src: file.url,
19702
- alt: ""
19703
- }, null, 8, _hoisted_3$b)
19704
- ])) : createCommentVNode("", true),
19705
- _ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_4$7, [
19706
- createElementVNode("img", {
19707
- class: "preview",
19734
+ _ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_2$f, [
19735
+ (openBlock(true), createElementBlock(Fragment$1, null, renderList(storageFiles.value, (file) => {
19736
+ return openBlock(), createElementBlock("div", {
19737
+ key: file.id,
19738
+ class: "multi-image-item-preview"
19739
+ }, [
19740
+ isImage(file.extension || file.url) ? (openBlock(), createElementBlock("img", {
19741
+ key: 0,
19742
+ class: "multi-preview",
19708
19743
  src: file.url,
19709
19744
  alt: ""
19710
- }, null, 8, _hoisted_5$7),
19711
- createElementVNode("p", _hoisted_6$5, toDisplayString(file.name), 1),
19745
+ }, null, 8, _hoisted_3$b)) : (openBlock(), createBlock(unref(_sfc_main$Q), {
19746
+ key: 1,
19747
+ icon: "draft",
19748
+ class: "multi-preview"
19749
+ })),
19750
+ createElementVNode("p", _hoisted_4$7, toDisplayString(file.name), 1),
19712
19751
  createVNode(unref(Btn), {
19713
19752
  thin: "",
19714
19753
  flat: "",
@@ -19716,42 +19755,84 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19716
19755
  color: "red",
19717
19756
  onClick: withModifiers(($event) => removeFile(file), ["stop"])
19718
19757
  }, null, 8, ["onClick"])
19719
- ])) : createCommentVNode("", true)
19720
- ], 64);
19721
- }), 128)),
19722
- (openBlock(true), createElementBlock(Fragment$1, null, renderList(fileQueue.value, (fileQ) => {
19723
- return openBlock(), createElementBlock(Fragment$1, {
19724
- key: fileQ.file
19725
- }, [
19726
- !_ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_7$2, [
19727
- createElementVNode("img", {
19728
- class: "preview",
19729
- src: fileToUrl(fileQ.file),
19730
- alt: ""
19731
- }, null, 8, _hoisted_8)
19732
- ])) : createCommentVNode("", true),
19733
- createElementVNode("div", _hoisted_9, [
19734
- _ctx.multiple ? (openBlock(), createElementBlock("img", {
19758
+ ]);
19759
+ }), 128)),
19760
+ (openBlock(true), createElementBlock(Fragment$1, null, renderList(fileQueue.value, (fileQ) => {
19761
+ return openBlock(), createElementBlock("div", {
19762
+ key: fileQ.file.name,
19763
+ class: "multi-image-item-preview"
19764
+ }, [
19765
+ isImage(fileQ.file.type) ? (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
19766
+ _ctx.multiple ? (openBlock(), createElementBlock("img", {
19767
+ key: 0,
19768
+ width: _ctx.width || "220",
19769
+ class: "multi-preview",
19770
+ src: fileToUrl(fileQ.file),
19771
+ alt: ""
19772
+ }, null, 8, _hoisted_5$7)) : createCommentVNode("", true)
19773
+ ], 64)) : (openBlock(), createBlock(unref(_sfc_main$Q), {
19774
+ key: 1,
19775
+ icon: "draft",
19776
+ class: "multi-preview"
19777
+ })),
19778
+ createElementVNode("p", _hoisted_6$5, toDisplayString(fileQ.name), 1),
19779
+ createElementVNode("div", {
19780
+ class: normalizeClass(["pie", { complete: fileQ.progress === 100 }]),
19781
+ style: normalizeStyle([`--p:${fileQ.progress}`, { "--b": "2px" }])
19782
+ }, [
19783
+ fileQ.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_7$2, toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : createCommentVNode("", true),
19784
+ createVNode(unref(_sfc_main$Q), {
19785
+ class: "success",
19786
+ icon: "check"
19787
+ })
19788
+ ], 6)
19789
+ ]);
19790
+ }), 128))
19791
+ ])) : createCommentVNode("", true),
19792
+ !_ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_8, [
19793
+ (openBlock(true), createElementBlock(Fragment$1, null, renderList(storageFiles.value, (file) => {
19794
+ return openBlock(), createElementBlock("div", {
19795
+ key: file.id,
19796
+ class: normalizeClass(["single-image-item-preview", { "bgl_fill-image": _ctx.fill }])
19797
+ }, [
19798
+ isImage(file.extension || file.url) ? (openBlock(), createElementBlock("img", {
19735
19799
  key: 0,
19736
- width: _ctx.width || "220",
19737
- class: "preview",
19738
- src: fileToUrl(fileQ.file),
19800
+ class: "single-preview",
19801
+ src: file.url,
19739
19802
  alt: ""
19740
- }, null, 8, _hoisted_10)) : createCommentVNode("", true),
19741
- createElementVNode("p", _hoisted_11, toDisplayString(fileQ.name), 1),
19803
+ }, null, 8, _hoisted_9)) : (openBlock(), createBlock(unref(_sfc_main$Q), {
19804
+ key: 1,
19805
+ size: 4,
19806
+ weight: "2",
19807
+ icon: "draft",
19808
+ class: "color-primary w-100"
19809
+ }))
19810
+ ], 2);
19811
+ }), 128)),
19812
+ (openBlock(true), createElementBlock(Fragment$1, null, renderList(fileQueue.value, (fileQ) => {
19813
+ return openBlock(), createElementBlock("div", {
19814
+ key: fileQ.file.name,
19815
+ class: normalizeClass(["single-image-item-preview", { "bgl_fill-image": _ctx.fill }])
19816
+ }, [
19742
19817
  createElementVNode("div", {
19743
19818
  class: normalizeClass(["pie", { complete: fileQ.progress === 100 }]),
19744
19819
  style: normalizeStyle([`--p:${fileQ.progress}`, { "--b": "2px" }])
19745
19820
  }, [
19746
- fileQ.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_12, toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : createCommentVNode("", true),
19821
+ fileQ.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_10, toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : createCommentVNode("", true),
19747
19822
  createVNode(unref(_sfc_main$Q), {
19748
19823
  class: "success",
19749
19824
  icon: "check"
19750
19825
  })
19751
- ], 6)
19752
- ])
19753
- ], 64);
19754
- }), 128))
19826
+ ], 6),
19827
+ isImage(fileQ.file.type) ? (openBlock(), createElementBlock("img", {
19828
+ key: 0,
19829
+ class: "single-preview",
19830
+ src: fileToUrl(fileQ.file),
19831
+ alt: ""
19832
+ }, null, 8, _hoisted_11)) : createCommentVNode("", true)
19833
+ ], 2);
19834
+ }), 128))
19835
+ ])) : createCommentVNode("", true)
19755
19836
  ], true),
19756
19837
  !storageFiles.value.length && !fileQueue.value.length || _ctx.multiple ? renderSlot(_ctx.$slots, "placeholder", {
19757
19838
  key: 0,
@@ -19759,14 +19840,17 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19759
19840
  fileQueue: fileQueue.value,
19760
19841
  browse
19761
19842
  }, () => [
19762
- _hoisted_13
19843
+ createElementVNode("p", _hoisted_12, [
19844
+ createVNode(unref(_sfc_main$Q), { icon: "upload_2" }),
19845
+ createTextVNode(" Drop files here or click to upload ")
19846
+ ])
19763
19847
  ], true) : createCommentVNode("", true)
19764
- ], 34)
19848
+ ], 38)
19765
19849
  ]);
19766
19850
  };
19767
19851
  }
19768
19852
  });
19769
- const $el = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-4c71cd49"]]);
19853
+ const $el = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-5911e10d"]]);
19770
19854
  const _withScopeId$1 = (n2) => (pushScopeId("data-v-06b95183"), n2 = n2(), popScopeId(), n2);
19771
19855
  const _hoisted_1$j = ["title"];
19772
19856
  const _hoisted_2$e = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "slider round" }, null, -1));
@@ -33156,7 +33240,11 @@ function createNodeFromContent(content, schema, options) {
33156
33240
  if (isArrayContent) {
33157
33241
  return Fragment.fromArray(content.map((item) => schema.nodeFromJSON(item)));
33158
33242
  }
33159
- return schema.nodeFromJSON(content);
33243
+ const node = schema.nodeFromJSON(content);
33244
+ if (options.errorOnInvalidContent) {
33245
+ node.check();
33246
+ }
33247
+ return node;
33160
33248
  } catch (error) {
33161
33249
  if (options.errorOnInvalidContent) {
33162
33250
  throw new Error("[tiptap error]: Invalid JSON content", { cause: error });
@@ -46335,7 +46423,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
46335
46423
  });
46336
46424
  const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-9d176183"]]);
46337
46425
  /*!
46338
- * Signature Pad v5.0.2 | https://github.com/szimek/signature_pad
46426
+ * Signature Pad v5.0.3 | https://github.com/szimek/signature_pad
46339
46427
  * (c) 2024 Szymon Nowak | Released under the MIT license
46340
46428
  */
46341
46429
  class Point {
@@ -46375,7 +46463,7 @@ class Bezier {
46375
46463
  const l2 = Math.sqrt(dx2 * dx2 + dy2 * dy2);
46376
46464
  const dxm = m1.x - m2.x;
46377
46465
  const dym = m1.y - m2.y;
46378
- const k2 = l2 / (l1 + l2);
46466
+ const k2 = l1 + l2 == 0 ? 0 : l2 / (l1 + l2);
46379
46467
  const cm = { x: m2.x + dxm * k2, y: m2.y + dym * k2 };
46380
46468
  const tx = s2.x - cm.x;
46381
46469
  const ty = s2.y - cm.y;
@@ -54358,6 +54446,10 @@ const allCountries = countryArray.map(
54358
54446
  areaCodes
54359
54447
  })
54360
54448
  );
54449
+ const IMAGE_FORMATS = ["jpeg", "png", "webp", "avif", "apng", "gif", "avifs", "svg", "bmp", "jpg"];
54450
+ const IMAGE_FORMATS_REGEXP = new RegExp(`(${IMAGE_FORMATS.join("|")})$`, "i");
54451
+ const VIDEO_FORMATS = ["mp4", "webm", "ogg", "mov", "avi", "flv", "wmv", "mkv", "ts", "m3u8"];
54452
+ const VIDEO_FORMATS_REGEXP = new RegExp(`(${VIDEO_FORMATS.join("|")})$`, "i");
54361
54453
  export {
54362
54454
  _sfc_main$A as Accordion,
54363
54455
  AccordionItem,
@@ -54383,6 +54475,8 @@ export {
54383
54475
  kt$1 as Dropdown,
54384
54476
  $el as FileUpload,
54385
54477
  Flag,
54478
+ IMAGE_FORMATS,
54479
+ IMAGE_FORMATS_REGEXP,
54386
54480
  _sfc_main$Q as Icon,
54387
54481
  JSONInput,
54388
54482
  Layout,
@@ -54416,6 +54510,8 @@ export {
54416
54510
  _sfc_main$B as Title,
54417
54511
  ToggleInput,
54418
54512
  TopBar,
54513
+ VIDEO_FORMATS,
54514
+ VIDEO_FORMATS_REGEXP,
54419
54515
  allCountries,
54420
54516
  bagelFormUtils,
54421
54517
  bagelInjectionKey,