@bagelink/vue 0.0.206 → 0.0.214

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 (34) hide show
  1. package/dist/components/ModalBglForm.vue.d.ts +44 -0
  2. package/dist/components/ModalBglForm.vue.d.ts.map +1 -0
  3. package/dist/components/NavBar.vue.d.ts.map +1 -1
  4. package/dist/components/form/BglForm.vue.d.ts.map +1 -1
  5. package/dist/components/form/index.d.ts +1 -0
  6. package/dist/components/form/index.d.ts.map +1 -1
  7. package/dist/components/form/inputs/CheckInput.vue.d.ts +11 -4
  8. package/dist/components/form/inputs/CheckInput.vue.d.ts.map +1 -1
  9. package/dist/components/form/inputs/FileUpload.vue.d.ts.map +1 -1
  10. package/dist/components/index.d.ts +1 -0
  11. package/dist/components/index.d.ts.map +1 -1
  12. package/dist/index.cjs +252 -139
  13. package/dist/index.mjs +253 -140
  14. package/dist/plugins/modal.d.ts +3 -1
  15. package/dist/plugins/modal.d.ts.map +1 -1
  16. package/dist/style.css +153 -172
  17. package/dist/types/BagelForm.d.ts +2 -0
  18. package/dist/types/BagelForm.d.ts.map +1 -1
  19. package/dist/types/BtnOptions.d.ts +1 -0
  20. package/dist/types/BtnOptions.d.ts.map +1 -1
  21. package/package.json +1 -1
  22. package/src/components/ModalBglForm.vue +120 -0
  23. package/src/components/NavBar.vue +47 -45
  24. package/src/components/form/BglForm.vue +14 -12
  25. package/src/components/form/index.ts +1 -0
  26. package/src/components/form/inputs/CheckInput.vue +84 -110
  27. package/src/components/form/inputs/FileUpload.vue +52 -45
  28. package/src/components/form/inputs/ToggleInput.vue +127 -0
  29. package/src/components/formkit/Toggle.vue +22 -22
  30. package/src/components/index.ts +1 -0
  31. package/src/plugins/modal.ts +16 -8
  32. package/src/styles/theme.css +0 -8
  33. package/src/types/BagelForm.ts +2 -0
  34. package/src/types/BtnOptions.ts +1 -1
package/dist/index.cjs CHANGED
@@ -2279,16 +2279,17 @@ const ModalPlugin = {
2279
2279
  const hideModal = (index2) => {
2280
2280
  modalStack.value.splice(index2, 1);
2281
2281
  };
2282
- const showModal = (isForm, options, slots = {}) => {
2282
+ const showModal = (modalType, options, slots = {}) => {
2283
2283
  modalStack.value.push({
2284
2284
  modalOptions: options,
2285
- isModalForm: isForm,
2285
+ modalType,
2286
2286
  componentSlots: slots
2287
2287
  });
2288
2288
  };
2289
2289
  app.provide(ModalSymbol, {
2290
- modalForm: (options, slots) => showModal(true, options, slots),
2291
- showModal: (options, slots) => showModal(false, options, slots),
2290
+ modalForm: (options, slots) => showModal(1, options, slots),
2291
+ showModal: (options, slots) => showModal(0, options, slots),
2292
+ showModalForm: (options, slots) => showModal(2, options, slots),
2292
2293
  hideModal: (index2 = modalStack.value.length - 1) => hideModal(index2)
2293
2294
  // modalOptions,
2294
2295
  });
@@ -2300,7 +2301,13 @@ const ModalPlugin = {
2300
2301
  },
2301
2302
  render() {
2302
2303
  return modalStack.value.map((modal, index2) => {
2303
- const renderComponent = modal.isModalForm ? ModalForm : _sfc_main$T;
2304
+ let renderComponent;
2305
+ if (modal.modalType === 1)
2306
+ renderComponent = ModalForm;
2307
+ else if (modal.modalType === 2)
2308
+ renderComponent = ModalBglForm;
2309
+ else
2310
+ renderComponent = _sfc_main$U;
2304
2311
  return vue.h(
2305
2312
  renderComponent,
2306
2313
  {
@@ -2364,8 +2371,8 @@ function bindAttrs(attrs, fieldVal, row) {
2364
2371
  const resolvedAttrs = Object.fromEntries(arr);
2365
2372
  return resolvedAttrs;
2366
2373
  }
2367
- const _hoisted_1$11 = { ref: "el" };
2368
- const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
2374
+ const _hoisted_1$12 = { ref: "el" };
2375
+ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
2369
2376
  __name: "LangText",
2370
2377
  props: {
2371
2378
  input: {}
@@ -2373,7 +2380,7 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
2373
2380
  setup(__props) {
2374
2381
  return (_ctx, _cache) => {
2375
2382
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
2376
- vue.createElementVNode("span", _hoisted_1$11, null, 512),
2383
+ vue.createElementVNode("span", _hoisted_1$12, null, 512),
2377
2384
  vue.createTextVNode(" " + vue.toDisplayString(_ctx.input), 1)
2378
2385
  ], 64);
2379
2386
  };
@@ -14486,8 +14493,8 @@ const marks = {
14486
14493
  }
14487
14494
  };
14488
14495
  const schema = new Schema({ nodes, marks });
14489
- const _hoisted_1$10 = ["id"];
14490
- const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
14496
+ const _hoisted_1$11 = ["id"];
14497
+ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
14491
14498
  __name: "RTXEditor",
14492
14499
  props: {
14493
14500
  elementId: { default: Math.random().toString(36).substr(2, 9) },
@@ -14564,11 +14571,11 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
14564
14571
  onClick: focusEditor,
14565
14572
  id: `canvas-${_ctx.elementId}`,
14566
14573
  onKeydown: _cache[0] || (_cache[0] = vue.withKeys(vue.withModifiers(($event) => _ctx.$emit("keydown.meta.enter"), ["meta"]), ["enter"]))
14567
- }, null, 40, _hoisted_1$10);
14574
+ }, null, 40, _hoisted_1$11);
14568
14575
  };
14569
14576
  }
14570
14577
  });
14571
- const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
14578
+ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
14572
14579
  __name: "MaterialIcon",
14573
14580
  props: {
14574
14581
  icon: {},
@@ -14583,17 +14590,18 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
14583
14590
  };
14584
14591
  }
14585
14592
  });
14586
- const _hoisted_1$$ = /* @__PURE__ */ vue.createElementVNode("div", { class: "icon-font top-arrow" }, "chevron_right", -1);
14587
- const _hoisted_2$S = [
14588
- _hoisted_1$$
14593
+ const _withScopeId$3 = (n) => (vue.pushScopeId("data-v-fddb4764"), n = n(), vue.popScopeId(), n);
14594
+ const _hoisted_1$10 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "icon-font top-arrow" }, " chevron_right ", -1));
14595
+ const _hoisted_2$T = [
14596
+ _hoisted_1$10
14589
14597
  ];
14590
14598
  const _hoisted_3$K = { class: "full-nav" };
14591
14599
  const _hoisted_4$t = { class: "nav-scroll" };
14592
- const _hoisted_5$o = { class: "nav-links-wrapper" };
14600
+ const _hoisted_5$n = { class: "nav-links-wrapper" };
14593
14601
  const _hoisted_6$i = { class: "icon-font" };
14594
14602
  const _hoisted_7$d = { class: "tooltip" };
14595
14603
  const _hoisted_8$7 = { class: "bot-buttons-wrapper" };
14596
- const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
14604
+ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
14597
14605
  __name: "NavBar",
14598
14606
  props: {
14599
14607
  links: {},
@@ -14609,7 +14617,7 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
14609
14617
  return vue.openBlock(), vue.createElementBlock("div", {
14610
14618
  class: vue.normalizeClass({ open: isOpen.value, closed: !isOpen.value })
14611
14619
  }, [
14612
- vue.renderSlot(_ctx.$slots, "top"),
14620
+ vue.renderSlot(_ctx.$slots, "top", {}, void 0, true),
14613
14621
  vue.createElementVNode("div", {
14614
14622
  class: "nav-expend",
14615
14623
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value),
@@ -14617,10 +14625,10 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
14617
14625
  role: "button",
14618
14626
  "aria-label": "Toggle Navigation",
14619
14627
  tabindex: "0"
14620
- }, _hoisted_2$S, 32),
14628
+ }, _hoisted_2$T, 32),
14621
14629
  vue.createElementVNode("div", _hoisted_3$K, [
14622
14630
  vue.createElementVNode("div", _hoisted_4$t, [
14623
- vue.createElementVNode("div", _hoisted_5$o, [
14631
+ vue.createElementVNode("div", _hoisted_5$n, [
14624
14632
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList((_a2 = _ctx.links) == null ? void 0 : _a2.call(_ctx), (link) => {
14625
14633
  return vue.openBlock(), vue.createBlock(_component_RouterLink, {
14626
14634
  class: "nav-button",
@@ -14637,22 +14645,30 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
14637
14645
  ])
14638
14646
  ]),
14639
14647
  vue.createElementVNode("div", _hoisted_8$7, [
14640
- vue.renderSlot(_ctx.$slots, "floor")
14648
+ vue.renderSlot(_ctx.$slots, "floor", {}, void 0, true)
14641
14649
  ])
14642
14650
  ])
14643
14651
  ], 2);
14644
14652
  };
14645
14653
  }
14646
14654
  });
14647
- const _hoisted_1$_ = {
14655
+ const _export_sfc = (sfc, props2) => {
14656
+ const target = sfc.__vccOpts || sfc;
14657
+ for (const [key, val] of props2) {
14658
+ target[key] = val;
14659
+ }
14660
+ return target;
14661
+ };
14662
+ const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-fddb4764"]]);
14663
+ const _hoisted_1$$ = {
14648
14664
  key: 0,
14649
14665
  class: "loading"
14650
14666
  };
14651
- const _hoisted_2$R = {
14667
+ const _hoisted_2$S = {
14652
14668
  key: 1,
14653
14669
  class: "btn-flex"
14654
14670
  };
14655
- const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
14671
+ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
14656
14672
  __name: "Btn",
14657
14673
  props: {
14658
14674
  disabled: { type: Boolean, default: false },
@@ -14732,8 +14748,8 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
14732
14748
  })
14733
14749
  }, {
14734
14750
  default: vue.withCtx(() => [
14735
- _ctx.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$_)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$R, [
14736
- _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$W), {
14751
+ _ctx.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$$)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$S, [
14752
+ _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$X), {
14737
14753
  key: 0,
14738
14754
  icon: _ctx.icon
14739
14755
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
@@ -14741,7 +14757,7 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
14741
14757
  !vue.unref(slots)["default"] && _ctx.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
14742
14758
  vue.createTextVNode(vue.toDisplayString(_ctx.value), 1)
14743
14759
  ], 64)) : vue.createCommentVNode("", true),
14744
- props2["icon.end"] ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$W), {
14760
+ props2["icon.end"] ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$X), {
14745
14761
  key: 2,
14746
14762
  icon: props2["icon.end"]
14747
14763
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true)
@@ -14752,18 +14768,11 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
14752
14768
  };
14753
14769
  }
14754
14770
  });
14755
- const _export_sfc = (sfc, props2) => {
14756
- const target = sfc.__vccOpts || sfc;
14757
- for (const [key, val] of props2) {
14758
- target[key] = val;
14759
- }
14760
- return target;
14761
- };
14762
- const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-0ca0d3de"]]);
14763
- const _hoisted_1$Z = { class: "tool-bar" };
14764
- const _hoisted_2$Q = { class: "modal-title" };
14771
+ const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-0ca0d3de"]]);
14772
+ const _hoisted_1$_ = { class: "tool-bar" };
14773
+ const _hoisted_2$R = { class: "modal-title" };
14765
14774
  const _hoisted_3$J = { class: "modal-footer mt-3" };
14766
- const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
14775
+ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
14767
14776
  __name: "Modal",
14768
14777
  props: {
14769
14778
  side: { type: Boolean },
@@ -14809,7 +14818,7 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
14809
14818
  onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
14810
14819
  }, ["stop"]))
14811
14820
  }, [
14812
- vue.createElementVNode("header", _hoisted_1$Z, [
14821
+ vue.createElementVNode("header", _hoisted_1$_, [
14813
14822
  vue.renderSlot(_ctx.$slots, "toolbar"),
14814
14823
  vue.createVNode(vue.unref(Btn), {
14815
14824
  style: vue.normalizeStyle({ float: _ctx.side ? "left" : "right" }),
@@ -14817,7 +14826,7 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
14817
14826
  icon: "close",
14818
14827
  onClick: closeModal
14819
14828
  }, null, 8, ["style"]),
14820
- vue.createElementVNode("h3", _hoisted_2$Q, vue.toDisplayString(_ctx.title), 1)
14829
+ vue.createElementVNode("h3", _hoisted_2$R, vue.toDisplayString(_ctx.title), 1)
14821
14830
  ]),
14822
14831
  vue.renderSlot(_ctx.$slots, "default"),
14823
14832
  vue.createElementVNode("footer", _hoisted_3$J, [
@@ -14835,6 +14844,104 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
14835
14844
  };
14836
14845
  }
14837
14846
  });
14847
+ const _hoisted_1$Z = { class: "tool-bar" };
14848
+ const _hoisted_2$Q = { class: "modal-title" };
14849
+ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
14850
+ __name: "ModalBglForm",
14851
+ props: {
14852
+ side: { type: Boolean },
14853
+ title: {},
14854
+ dismissable: { type: Boolean },
14855
+ actions: {},
14856
+ schema: { type: Function },
14857
+ modelValue: {},
14858
+ onSubmit: { type: Function },
14859
+ onDelete: { type: Function }
14860
+ },
14861
+ emits: ["update:isModalVisible", "update:modelValue"],
14862
+ setup(__props, { emit: __emit }) {
14863
+ const props2 = __props;
14864
+ const computedFormSchema = vue.computed(() => {
14865
+ if (typeof props2.schema === "function") {
14866
+ return props2.schema();
14867
+ }
14868
+ return props2.schema;
14869
+ });
14870
+ let isActive = vue.ref(false);
14871
+ const emit2 = __emit;
14872
+ const handleEmit = (value) => {
14873
+ emit2("update:modelValue", value);
14874
+ };
14875
+ const closeModal = () => {
14876
+ isActive.value = false;
14877
+ setTimeout(() => {
14878
+ emit2("update:isModalVisible", false);
14879
+ }, 200);
14880
+ };
14881
+ const runSubmit = async (formData) => {
14882
+ var _a2;
14883
+ try {
14884
+ await ((_a2 = props2.onSubmit) == null ? void 0 : _a2.call(props2, formData));
14885
+ closeModal();
14886
+ } catch (err) {
14887
+ console.error(err);
14888
+ }
14889
+ };
14890
+ const runDelete = () => {
14891
+ var _a2, _b;
14892
+ (_b = props2.onDelete) == null ? void 0 : _b.call(props2, (_a2 = props2.modelValue) == null ? void 0 : _a2.id);
14893
+ closeModal();
14894
+ };
14895
+ const escapeKeyClose = (e3) => (props2 == null ? void 0 : props2.dismissable) && useEscape(e3, () => closeModal());
14896
+ vue.onMounted(() => {
14897
+ setTimeout(() => {
14898
+ isActive.value = true;
14899
+ }, 1);
14900
+ document.addEventListener(
14901
+ "keydown",
14902
+ escapeKeyClose
14903
+ );
14904
+ });
14905
+ vue.onUnmounted(() => {
14906
+ document.removeEventListener(
14907
+ "keydown",
14908
+ escapeKeyClose
14909
+ );
14910
+ });
14911
+ return (_ctx, _cache) => {
14912
+ return vue.openBlock(), vue.createElementBlock("div", {
14913
+ class: vue.normalizeClass(["bg-dark", { "is-side": _ctx.side, "is-active": vue.unref(isActive) }]),
14914
+ onClick: _cache[1] || (_cache[1] = () => _ctx.dismissable ? closeModal() : ""),
14915
+ onKeydown: vue.withKeys(closeModal, ["esc"])
14916
+ }, [
14917
+ vue.createElementVNode("div", {
14918
+ class: "card modal",
14919
+ onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
14920
+ }, ["stop"]))
14921
+ }, [
14922
+ vue.createElementVNode("header", _hoisted_1$Z, [
14923
+ vue.renderSlot(_ctx.$slots, "toolbar", {}, void 0, true),
14924
+ vue.createVNode(vue.unref(Btn), {
14925
+ style: vue.normalizeStyle({ float: _ctx.side ? "left" : "right" }),
14926
+ flat: "",
14927
+ icon: "close",
14928
+ onClick: closeModal
14929
+ }, null, 8, ["style"]),
14930
+ vue.createElementVNode("h3", _hoisted_2$Q, vue.toDisplayString(_ctx.title), 1)
14931
+ ]),
14932
+ vue.createVNode(vue.unref(_sfc_main$r), {
14933
+ onDelete: _ctx.onDelete ? runDelete : void 0,
14934
+ modelValue: _ctx.modelValue,
14935
+ "onUpdate:modelValue": handleEmit,
14936
+ onSubmit: runSubmit,
14937
+ schema: computedFormSchema.value
14938
+ }, null, 8, ["onDelete", "modelValue", "schema"])
14939
+ ])
14940
+ ], 34);
14941
+ };
14942
+ }
14943
+ });
14944
+ const ModalBglForm = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-bd719890"]]);
14838
14945
  const _hoisted_1$Y = { class: "dropdown-title" };
14839
14946
  const _hoisted_2$P = { class: "dropdown-body" };
14840
14947
  const _hoisted_3$I = ["onClick"];
@@ -14866,7 +14973,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
14866
14973
  }, [
14867
14974
  vue.createElementVNode("div", _hoisted_1$Y, [
14868
14975
  vue.createTextVNode(vue.toDisplayString(vue.unref(selectedOption) || __props.placeholder) + " ", 1),
14869
- vue.createVNode(vue.unref(_sfc_main$W), { icon: "keyboard_arrow_down" })
14976
+ vue.createVNode(vue.unref(_sfc_main$X), { icon: "keyboard_arrow_down" })
14870
14977
  ]),
14871
14978
  vue.createElementVNode("div", _hoisted_2$P, [
14872
14979
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.options, (option2, index2) => {
@@ -14887,7 +14994,7 @@ const _hoisted_3$H = {
14887
14994
  class: "bagel-input search-wrap"
14888
14995
  };
14889
14996
  const _hoisted_4$s = ["placeholder"];
14890
- const _hoisted_5$n = { class: "list-content grid auto-flow-rows align-items-start" };
14997
+ const _hoisted_5$m = { class: "list-content grid auto-flow-rows align-items-start" };
14891
14998
  const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
14892
14999
  __name: "ListView",
14893
15000
  props: {
@@ -14914,7 +15021,7 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
14914
15021
  }, null, 40, _hoisted_4$s), [
14915
15022
  [vue.vModelText, searchTerm.value]
14916
15023
  ]),
14917
- vue.createVNode(vue.unref(_sfc_main$W), {
15024
+ vue.createVNode(vue.unref(_sfc_main$X), {
14918
15025
  class: "txtgray",
14919
15026
  icon: "search"
14920
15027
  })
@@ -14925,7 +15032,7 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
14925
15032
  onClick: _cache[2] || (_cache[2] = ($event) => emit2("add"))
14926
15033
  })) : vue.createCommentVNode("", true)
14927
15034
  ]),
14928
- vue.createElementVNode("div", _hoisted_5$n, [
15035
+ vue.createElementVNode("div", _hoisted_5$m, [
14929
15036
  vue.renderSlot(_ctx.$slots, "default")
14930
15037
  ])
14931
15038
  ]);
@@ -15028,7 +15135,7 @@ const _hoisted_1$U = { class: "comments-wrap" };
15028
15135
  const _hoisted_2$L = { class: "comment-list" };
15029
15136
  const _hoisted_3$F = { class: "comment-top" };
15030
15137
  const _hoisted_4$r = { class: "comment-owner" };
15031
- const _hoisted_5$m = { class: "comment-time" };
15138
+ const _hoisted_5$l = { class: "comment-time" };
15032
15139
  const _hoisted_6$h = { class: "comment-actions" };
15033
15140
  const _hoisted_7$c = ["innerHTML"];
15034
15141
  const _hoisted_8$6 = { class: "new-comment" };
@@ -15088,21 +15195,21 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
15088
15195
  }, [
15089
15196
  vue.createElementVNode("div", _hoisted_3$F, [
15090
15197
  vue.createElementVNode("div", _hoisted_4$r, vue.toDisplayString(comment.sender.first_name) + " " + vue.toDisplayString(comment.sender.last_name), 1),
15091
- vue.createElementVNode("div", _hoisted_5$m, vue.toDisplayString(comment.updated_at.split("T")[0]), 1),
15198
+ vue.createElementVNode("div", _hoisted_5$l, vue.toDisplayString(comment.updated_at.split("T")[0]), 1),
15092
15199
  vue.createElementVNode("div", _hoisted_6$h, [
15093
- vue.createVNode(vue.unref(_sfc_main$W), {
15200
+ vue.createVNode(vue.unref(_sfc_main$X), {
15094
15201
  size: 1,
15095
15202
  class: "edit",
15096
15203
  icon: "edit",
15097
15204
  onClick: ($event) => vue.isRef(editComment) ? editComment.value = comment : editComment = comment
15098
15205
  }, null, 8, ["onClick"]),
15099
- vue.createVNode(vue.unref(_sfc_main$W), {
15206
+ vue.createVNode(vue.unref(_sfc_main$X), {
15100
15207
  size: 1.2,
15101
15208
  class: "delete",
15102
15209
  icon: "delete",
15103
15210
  onClick: ($event) => deleteComment(comment.id)
15104
15211
  }, null, 8, ["onClick"]),
15105
- vue.createVNode(vue.unref(_sfc_main$W), {
15212
+ vue.createVNode(vue.unref(_sfc_main$X), {
15106
15213
  size: 1.2,
15107
15214
  class: "save",
15108
15215
  icon: "save",
@@ -15110,7 +15217,7 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
15110
15217
  })
15111
15218
  ])
15112
15219
  ]),
15113
- vue.unref(editComment) !== null && ((_c = vue.unref(editComment)) == null ? void 0 : _c.id) === comment.id ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$X), {
15220
+ vue.unref(editComment) !== null && ((_c = vue.unref(editComment)) == null ? void 0 : _c.id) === comment.id ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$Y), {
15114
15221
  key: 0,
15115
15222
  modelValue: vue.unref(editComment).body_html,
15116
15223
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.unref(editComment).body_html = $event),
@@ -15124,7 +15231,7 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
15124
15231
  }), 128))
15125
15232
  ]),
15126
15233
  vue.createElementVNode("div", _hoisted_8$6, [
15127
- vue.createVNode(vue.unref(_sfc_main$X), {
15234
+ vue.createVNode(vue.unref(_sfc_main$Y), {
15128
15235
  class: "comment-input",
15129
15236
  modelValue: vue.unref(bodyHtml),
15130
15237
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(bodyHtml) ? bodyHtml.value = $event : bodyHtml = $event),
@@ -15341,7 +15448,7 @@ const _hoisted_1$R = { class: "table-list-wrap h-100" };
15341
15448
  const _hoisted_2$I = { class: "infinite-wrapper" };
15342
15449
  const _hoisted_3$E = { class: "row first-row" };
15343
15450
  const _hoisted_4$q = ["onClick"];
15344
- const _hoisted_5$l = { class: "flex" };
15451
+ const _hoisted_5$k = { class: "flex" };
15345
15452
  const _hoisted_6$g = ["onClick"];
15346
15453
  const _hoisted_7$b = { key: 1 };
15347
15454
  const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
@@ -15399,12 +15506,12 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
15399
15506
  key: field.id,
15400
15507
  onClick: ($event) => sort2(field.id)
15401
15508
  }, [
15402
- vue.createElementVNode("div", _hoisted_5$l, [
15509
+ vue.createElementVNode("div", _hoisted_5$k, [
15403
15510
  vue.createTextVNode(vue.toDisplayString((field == null ? void 0 : field.label) || (field == null ? void 0 : field.id)) + " ", 1),
15404
15511
  vue.createElementVNode("div", {
15405
15512
  class: vue.normalizeClass(["list-arrows", { sorted: vue.unref(sortField) === field.id }])
15406
15513
  }, [
15407
- vue.createVNode(vue.unref(_sfc_main$W), {
15514
+ vue.createVNode(vue.unref(_sfc_main$X), {
15408
15515
  class: vue.normalizeClass({ desc: vue.unref(sortDirection) === "DESC" }),
15409
15516
  icon: "keyboard_arrow_up"
15410
15517
  }, null, 8, ["class"])
@@ -15540,7 +15647,7 @@ const _hoisted_1$O = {
15540
15647
  const _hoisted_2$H = { class: "person-card-icon-wrap" };
15541
15648
  const _hoisted_3$D = { class: "person-card-icon" };
15542
15649
  const _hoisted_4$p = { class: "person-card-name txt20" };
15543
- const _hoisted_5$k = { class: "person-card-details-wrap" };
15650
+ const _hoisted_5$j = { class: "person-card-details-wrap" };
15544
15651
  const _hoisted_6$f = {
15545
15652
  key: 0,
15546
15653
  class: "person-card-details"
@@ -15606,9 +15713,9 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
15606
15713
  vue.createElementVNode("p", _hoisted_3$D, vue.toDisplayString(vue.unref(initials)(_ctx.person.first_name, _ctx.person.last_name)), 1),
15607
15714
  vue.createElementVNode("p", _hoisted_4$p, vue.toDisplayString(_ctx.person.first_name) + " " + vue.toDisplayString(_ctx.person.last_name), 1)
15608
15715
  ]),
15609
- vue.createElementVNode("div", _hoisted_5$k, [
15716
+ vue.createElementVNode("div", _hoisted_5$j, [
15610
15717
  ((_a2 = _ctx.person.phone) == null ? void 0 : _a2.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$f, [
15611
- vue.createVNode(vue.unref(_sfc_main$W), { icon: "phone" }),
15718
+ vue.createVNode(vue.unref(_sfc_main$X), { icon: "phone" }),
15612
15719
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.person.phone, (phone) => {
15613
15720
  return vue.openBlock(), vue.createElementBlock("p", {
15614
15721
  key: phone.id
@@ -15616,7 +15723,7 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
15616
15723
  }), 128))
15617
15724
  ])) : vue.createCommentVNode("", true),
15618
15725
  ((_b = _ctx.person.email) == null ? void 0 : _b.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$a, [
15619
- vue.createVNode(vue.unref(_sfc_main$W), { icon: "email" }),
15726
+ vue.createVNode(vue.unref(_sfc_main$X), { icon: "email" }),
15620
15727
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.person.email, (email) => {
15621
15728
  return vue.openBlock(), vue.createElementBlock("p", {
15622
15729
  key: email.id
@@ -15624,7 +15731,7 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
15624
15731
  }), 128))
15625
15732
  ])) : vue.createCommentVNode("", true),
15626
15733
  _ctx.person.date_of_birth || _ctx.person.gender ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$5, [
15627
- vue.createVNode(vue.unref(_sfc_main$W), { icon: "badge" }),
15734
+ vue.createVNode(vue.unref(_sfc_main$X), { icon: "badge" }),
15628
15735
  _ctx.person.date_of_birth ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_9$3, vue.toDisplayString(_ctx.person.date_of_birth), 1)) : vue.createCommentVNode("", true),
15629
15736
  _ctx.person.gender ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_10$3, vue.toDisplayString(_ctx.person.gender), 1)) : vue.createCommentVNode("", true)
15630
15737
  ])) : vue.createCommentVNode("", true)
@@ -15646,7 +15753,7 @@ const _hoisted_3$C = {
15646
15753
  class: "data-row"
15647
15754
  };
15648
15755
  const _hoisted_4$o = { class: "key" };
15649
- const _hoisted_5$j = { key: 1 };
15756
+ const _hoisted_5$i = { key: 1 };
15650
15757
  const _hoisted_6$e = { class: "key" };
15651
15758
  const _hoisted_7$9 = { class: "vlue" };
15652
15759
  const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
@@ -15698,7 +15805,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
15698
15805
  ])) : vue.createCommentVNode("", true)
15699
15806
  ], 64);
15700
15807
  }), 128)),
15701
- !((_a2 = _ctx.schema) == null ? void 0 : _a2.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$j, [
15808
+ !((_a2 = _ctx.schema) == null ? void 0 : _a2.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$i, [
15702
15809
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(Object.entries(itemData.value).filter(
15703
15810
  ([key]) => !keysToIgnore.includes(key)
15704
15811
  ), ([key, value]) => {
@@ -15728,7 +15835,7 @@ const _hoisted_4$n = {
15728
15835
  key: 1,
15729
15836
  class: "bar-wrap"
15730
15837
  };
15731
- const _hoisted_5$i = { class: "bar-txt" };
15838
+ const _hoisted_5$h = { class: "bar-txt" };
15732
15839
  const _hoisted_6$d = { class: "factor" };
15733
15840
  const _hoisted_7$8 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "red-bar" }, null, -1));
15734
15841
  const _hoisted_8$4 = { class: "bar-lines" };
@@ -15820,7 +15927,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
15820
15927
  class: "bar compare",
15821
15928
  style: vue.normalizeStyle({ height: loaded.value ? `${percent(item.compareValue)}%` : "0" })
15822
15929
  }, null, 4)) : vue.createCommentVNode("", true),
15823
- vue.createElementVNode("p", _hoisted_5$i, vue.toDisplayString(item.title), 1)
15930
+ vue.createElementVNode("p", _hoisted_5$h, vue.toDisplayString(item.title), 1)
15824
15931
  ]))
15825
15932
  ]);
15826
15933
  }), 128)),
@@ -17128,7 +17235,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
17128
17235
  [vue.vModelCheckbox, vue.unref(val)]
17129
17236
  ]),
17130
17237
  vue.createElementVNode("span", null, [
17131
- vue.createVNode(vue.unref(_sfc_main$W), { icon: "check" })
17238
+ vue.createVNode(vue.unref(_sfc_main$X), { icon: "check" })
17132
17239
  ])
17133
17240
  ]);
17134
17241
  };
@@ -17142,7 +17249,7 @@ const _hoisted_3$A = {
17142
17249
  class: "bglform-contact-confirm"
17143
17250
  };
17144
17251
  const _hoisted_4$m = { class: "txt14" };
17145
- const _hoisted_5$h = ["onUpdate:modelValue", "placeholder"];
17252
+ const _hoisted_5$g = ["onUpdate:modelValue", "placeholder"];
17146
17253
  const _hoisted_6$c = ["onUpdate:modelValue", "placeholder"];
17147
17254
  const _hoisted_7$7 = ["onUpdate:modelValue", "placeholder"];
17148
17255
  const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
@@ -17243,7 +17350,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
17243
17350
  "onUpdate:modelValue": ($event) => contact.label = $event,
17244
17351
  type: "text",
17245
17352
  placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
17246
- }, null, 8, _hoisted_5$h), [
17353
+ }, null, 8, _hoisted_5$g), [
17247
17354
  [vue.vModelText, contact.label]
17248
17355
  ]),
17249
17356
  ((_c = _ctx.context) == null ? void 0 : _c.id) === "email" ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
@@ -17298,7 +17405,7 @@ const _hoisted_3$z = {
17298
17405
  class: "bglform-contact-confirm"
17299
17406
  };
17300
17407
  const _hoisted_4$l = { class: "txt14" };
17301
- const _hoisted_5$g = ["onUpdate:modelValue", "placeholder"];
17408
+ const _hoisted_5$f = ["onUpdate:modelValue", "placeholder"];
17302
17409
  const _hoisted_6$b = { class: "bglform-contact-address" };
17303
17410
  const _hoisted_7$6 = ["onUpdate:modelValue", "placeholder"];
17304
17411
  const _hoisted_8$3 = { class: "bglform-contact-address-flex" };
@@ -17410,7 +17517,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
17410
17517
  "onUpdate:modelValue": ($event) => address.label = $event,
17411
17518
  type: "text",
17412
17519
  placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
17413
- }, null, 8, _hoisted_5$g), [
17520
+ }, null, 8, _hoisted_5$f), [
17414
17521
  [vue.vModelText, address.label]
17415
17522
  ]),
17416
17523
  vue.createElementVNode("div", _hoisted_6$b, [
@@ -17482,7 +17589,7 @@ const _hoisted_3$y = {
17482
17589
  class: "bglform-contact-confirm"
17483
17590
  };
17484
17591
  const _hoisted_4$k = { class: "txt14" };
17485
- const _hoisted_5$f = ["onUpdate:modelValue", "placeholder"];
17592
+ const _hoisted_5$e = ["onUpdate:modelValue", "placeholder"];
17486
17593
  const _hoisted_6$a = { class: "bglform-contact-address" };
17487
17594
  const _hoisted_7$5 = ["onUpdate:modelValue", "placeholder"];
17488
17595
  const _hoisted_8$2 = { class: "bglform-contact-address-flex" };
@@ -17593,7 +17700,7 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
17593
17700
  "onUpdate:modelValue": ($event) => bank_account.label = $event,
17594
17701
  type: "text",
17595
17702
  placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
17596
- }, null, 8, _hoisted_5$f), [
17703
+ }, null, 8, _hoisted_5$e), [
17597
17704
  [vue.vModelText, bank_account.label]
17598
17705
  ]),
17599
17706
  vue.createElementVNode("div", _hoisted_6$a, [
@@ -17739,7 +17846,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
17739
17846
  }
17740
17847
  });
17741
17848
  const MiscFieldsBtns = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-a096417d"]]);
17742
- const _withScopeId$1 = (n) => (vue.pushScopeId("data-v-d0543d4b"), n = n(), vue.popScopeId(), n);
17849
+ const _withScopeId$1 = (n) => (vue.pushScopeId("data-v-dee6bdf5"), n = n(), vue.popScopeId(), n);
17743
17850
  const _hoisted_1$G = ["title"];
17744
17851
  const _hoisted_2$B = { class: "switch" };
17745
17852
  const _hoisted_3$x = ["id"];
@@ -17786,7 +17893,7 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
17786
17893
  };
17787
17894
  }
17788
17895
  });
17789
- const Toggle = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-d0543d4b"]]);
17896
+ const Toggle = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-dee6bdf5"]]);
17790
17897
  const _hoisted_1$F = { class: "files-wrapper flex" };
17791
17898
  const _hoisted_2$A = {
17792
17899
  key: 0,
@@ -17794,7 +17901,7 @@ const _hoisted_2$A = {
17794
17901
  };
17795
17902
  const _hoisted_3$w = { class: "uploading-wrap" };
17796
17903
  const _hoisted_4$i = { class: "load-file-bar" };
17797
- const _hoisted_5$e = ["src", "alt"];
17904
+ const _hoisted_5$d = ["src", "alt"];
17798
17905
  const _hoisted_6$9 = { class: "flex" };
17799
17906
  const _hoisted_7$4 = {
17800
17907
  key: 0,
@@ -17978,7 +18085,7 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
17978
18085
  src: item.dataUrl,
17979
18086
  alt: item.name,
17980
18087
  style: { "margin-inline-end": "10px" }
17981
- }, null, 8, _hoisted_5$e)) : vue.createCommentVNode("", true),
18088
+ }, null, 8, _hoisted_5$d)) : vue.createCommentVNode("", true),
17982
18089
  vue.createElementVNode("p", null, vue.toDisplayString(item.name), 1),
17983
18090
  vue.createElementVNode("div", _hoisted_6$9, [
17984
18091
  vue.createElementVNode("div", {
@@ -17986,7 +18093,7 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
17986
18093
  style: vue.normalizeStyle([`--p:${item.progress}`, { "--b": "2px" }])
17987
18094
  }, [
17988
18095
  item.progress < 100 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_7$4, vue.toDisplayString(`${item.progress.toFixed(0)}`), 1)) : vue.createCommentVNode("", true),
17989
- vue.createVNode(vue.unref(_sfc_main$W), {
18096
+ vue.createVNode(vue.unref(_sfc_main$X), {
17990
18097
  class: "success",
17991
18098
  icon: "check"
17992
18099
  })
@@ -18023,7 +18130,7 @@ const _hoisted_1$E = {
18023
18130
  const _hoisted_2$z = { class: "person-card-icon-wrap" };
18024
18131
  const _hoisted_3$v = { class: "person-card-icon" };
18025
18132
  const _hoisted_4$h = { class: "person-card-name txt20" };
18026
- const _hoisted_5$d = { class: "person-card-details-wrap" };
18133
+ const _hoisted_5$c = { class: "person-card-details-wrap" };
18027
18134
  const _hoisted_6$8 = {
18028
18135
  key: 0,
18029
18136
  class: "person-card-details"
@@ -18091,9 +18198,9 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
18091
18198
  vue.createElementVNode("p", _hoisted_3$v, vue.toDisplayString(vue.unref(initials)(person.value.first_name, person.value.last_name)), 1),
18092
18199
  vue.createElementVNode("p", _hoisted_4$h, vue.toDisplayString(person.value.first_name) + " " + vue.toDisplayString(person.value.last_name), 1)
18093
18200
  ]),
18094
- vue.createElementVNode("div", _hoisted_5$d, [
18201
+ vue.createElementVNode("div", _hoisted_5$c, [
18095
18202
  ((_a2 = person.value.phone) == null ? void 0 : _a2.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$8, [
18096
- vue.createVNode(vue.unref(_sfc_main$W), { icon: "phone" }),
18203
+ vue.createVNode(vue.unref(_sfc_main$X), { icon: "phone" }),
18097
18204
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(person.value.phone, (phone) => {
18098
18205
  return vue.openBlock(), vue.createElementBlock("p", {
18099
18206
  key: phone.id
@@ -18101,7 +18208,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
18101
18208
  }), 128))
18102
18209
  ])) : vue.createCommentVNode("", true),
18103
18210
  ((_b = person.value.email) == null ? void 0 : _b.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$3, [
18104
- vue.createVNode(vue.unref(_sfc_main$W), { icon: "email" }),
18211
+ vue.createVNode(vue.unref(_sfc_main$X), { icon: "email" }),
18105
18212
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(person.value.email, (email) => {
18106
18213
  return vue.openBlock(), vue.createElementBlock("p", {
18107
18214
  key: email.id
@@ -18109,7 +18216,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
18109
18216
  }), 128))
18110
18217
  ])) : vue.createCommentVNode("", true),
18111
18218
  person.value.date_of_birth || person.value.gender ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8, [
18112
- vue.createVNode(vue.unref(_sfc_main$W), { icon: "badge" }),
18219
+ vue.createVNode(vue.unref(_sfc_main$X), { icon: "badge" }),
18113
18220
  person.value.date_of_birth ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_9, vue.toDisplayString(person.value.date_of_birth), 1)) : vue.createCommentVNode("", true),
18114
18221
  person.value.gender ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_10, vue.toDisplayString(person.value.gender), 1)) : vue.createCommentVNode("", true)
18115
18222
  ])) : vue.createCommentVNode("", true)
@@ -18251,7 +18358,7 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
18251
18358
  }, {
18252
18359
  default: vue.withCtx(() => [
18253
18360
  vue.createTextVNode(vue.toDisplayString(content.value) + " ", 1),
18254
- vue.createVNode(vue.unref(_sfc_main$W), { icon: "arrow_forward" })
18361
+ vue.createVNode(vue.unref(_sfc_main$X), { icon: "arrow_forward" })
18255
18362
  ]),
18256
18363
  _: 1
18257
18364
  })) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$D, vue.toDisplayString(content.value), 1))
@@ -18278,7 +18385,7 @@ const _hoisted_1$C = { class: "bagel-input" };
18278
18385
  const _hoisted_2$y = ["for"];
18279
18386
  const _hoisted_3$u = ["checked"];
18280
18387
  const _hoisted_4$g = ["name", "type", "value"];
18281
- const _hoisted_5$c = ["name", "type", "value"];
18388
+ const _hoisted_5$b = ["name", "type", "value"];
18282
18389
  const _hoisted_6$7 = ["name", "type", "value"];
18283
18390
  const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
18284
18391
  __name: "PlainInputField",
@@ -18314,7 +18421,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
18314
18421
  vue.createElementVNode("label", {
18315
18422
  for: vue.unref(formatString)(_ctx.name, "pascal")
18316
18423
  }, [
18317
- vue.createVNode(_sfc_main$Y, {
18424
+ vue.createVNode(_sfc_main$Z, {
18318
18425
  input: vue.unref(formatString)(_ctx.name, "titleCase")
18319
18426
  }, null, 8, ["input"])
18320
18427
  ], 8, _hoisted_2$y),
@@ -18344,7 +18451,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
18344
18451
  value: _ctx.modelValue,
18345
18452
  class: "ctl",
18346
18453
  onInput: handleInput
18347
- }, null, 40, _hoisted_5$c)) : _ctx.type === "textarea" ? (vue.openBlock(), vue.createElementBlock("textarea", {
18454
+ }, null, 40, _hoisted_5$b)) : _ctx.type === "textarea" ? (vue.openBlock(), vue.createElementBlock("textarea", {
18348
18455
  key: 3,
18349
18456
  ref_key: "el",
18350
18457
  ref: el2,
@@ -18355,7 +18462,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
18355
18462
  onInput: handleInput
18356
18463
  }, null, 40, _hoisted_6$7)) : vue.createCommentVNode("", true),
18357
18464
  vue.createElementVNode("div", null, [
18358
- vue.createVNode(_sfc_main$Y, { input: _ctx.errorMessage }, null, 8, ["input"])
18465
+ vue.createVNode(_sfc_main$Z, { input: _ctx.errorMessage }, null, 8, ["input"])
18359
18466
  ])
18360
18467
  ]);
18361
18468
  };
@@ -18374,22 +18481,23 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
18374
18481
  setup(__props, { emit: __emit }) {
18375
18482
  const { showModal } = useModal();
18376
18483
  const props2 = __props;
18484
+ let data2 = vue.ref({});
18485
+ vue.watch(() => props2.modelValue, (val) => {
18486
+ data2.value = val;
18487
+ }, { immediate: true, deep: true });
18488
+ const updateModelValue = (val, fieldID) => {
18489
+ if (!fieldID)
18490
+ return;
18491
+ data2.value[fieldID] = val;
18492
+ emits("update:modelValue", data2.value);
18493
+ };
18377
18494
  const emits = __emit;
18378
- const handleEmit = (val) => emits("update:modelValue", val);
18379
- let data2 = vue.ref({
18380
- ...props2.modelValue
18381
- });
18382
18495
  const runSubmit = () => {
18383
18496
  emits("submit", data2.value);
18384
18497
  clearForm();
18385
18498
  };
18386
18499
  const clearForm = () => data2.value = {};
18387
18500
  const i18nT = (val) => val;
18388
- vue.watch(
18389
- () => data2.value,
18390
- () => handleEmit,
18391
- { immediate: true }
18392
- );
18393
18501
  const runDelete = () => {
18394
18502
  showModal(
18395
18503
  {
@@ -18420,7 +18528,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
18420
18528
  key: field.id || `${i3}p`,
18421
18529
  field,
18422
18530
  modelValue: vue.unref(data2),
18423
- "onUpdate:modelValue": ($event) => field.id ? vue.unref(data2)[field.id] = $event : ""
18531
+ "onUpdate:modelValue": ($event) => updateModelValue($event, (field == null ? void 0 : field.id) || "")
18424
18532
  }, null, 8, ["field", "modelValue", "onUpdate:modelValue"]);
18425
18533
  }), 128)),
18426
18534
  ((_a2 = _ctx.modelValue) == null ? void 0 : _a2.id) && _ctx.onDelete ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
@@ -18482,17 +18590,25 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
18482
18590
  };
18483
18591
  }
18484
18592
  });
18485
- const _withScopeId = (n) => (vue.pushScopeId("data-v-0dacba34"), n = n(), vue.popScopeId(), n);
18593
+ const _withScopeId = (n) => (vue.pushScopeId("data-v-4594626f"), n = n(), vue.popScopeId(), n);
18486
18594
  const _hoisted_1$A = ["title"];
18487
- const _hoisted_2$x = ["for"];
18488
- const _hoisted_3$t = { class: "switch" };
18489
- const _hoisted_4$f = ["id"];
18490
- const _hoisted_5$b = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("span", { class: "slider round" }, null, -1));
18595
+ const _hoisted_2$x = ["id"];
18596
+ const _hoisted_3$t = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("svg", {
18597
+ xmlns: "http://www.w3.org/2000/svg",
18598
+ height: "24",
18599
+ viewBox: "0 -960 960 960",
18600
+ width: "24"
18601
+ }, [
18602
+ /* @__PURE__ */ vue.createElementVNode("path", { d: "M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z" })
18603
+ ], -1));
18604
+ const _hoisted_4$f = ["for"];
18491
18605
  const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
18492
18606
  __name: "CheckInput",
18493
18607
  props: {
18494
- field: {},
18495
- modelValue: {},
18608
+ label: {},
18609
+ id: { default: Math.random().toString(36).substring(7) },
18610
+ title: {},
18611
+ modelValue: { type: Boolean },
18496
18612
  editMode: { type: Boolean, default: true },
18497
18613
  small: { type: Boolean }
18498
18614
  },
@@ -18500,8 +18616,8 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
18500
18616
  setup(__props, { emit: __emit }) {
18501
18617
  const emits = __emit;
18502
18618
  const props2 = __props;
18503
- const inputVal = vue.ref(false);
18504
- vue.watch(inputVal, (newVal) => {
18619
+ let inputVal = vue.ref(false);
18620
+ vue.watch(inputVal.value, (newVal) => {
18505
18621
  if (newVal === void 0)
18506
18622
  return;
18507
18623
  emits("update:modelValue", newVal);
@@ -18511,33 +18627,29 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
18511
18627
  (newVal) => {
18512
18628
  if (inputVal.value !== newVal)
18513
18629
  inputVal.value = newVal;
18514
- }
18630
+ },
18631
+ { immediate: true }
18515
18632
  );
18516
- vue.onMounted(() => inputVal.value = !!props2.modelValue);
18517
18633
  return (_ctx, _cache) => {
18518
18634
  return vue.openBlock(), vue.createElementBlock("div", {
18519
- class: vue.normalizeClass(["bagel-input checkbox", { small: _ctx.small, "no-edit": !_ctx.editMode }]),
18520
- title: _ctx.field.description
18635
+ class: vue.normalizeClass(["bagel-input bgl-checkbox", { small: _ctx.small, "no-edit": !_ctx.editMode }]),
18636
+ title: _ctx.title
18521
18637
  }, [
18522
- vue.createElementVNode("label", {
18523
- for: _ctx.field.id
18524
- }, vue.toDisplayString(_ctx.field.label), 9, _hoisted_2$x),
18525
- vue.createElementVNode("label", _hoisted_3$t, [
18526
- vue.withDirectives(vue.createElementVNode("input", {
18527
- id: _ctx.field.id,
18528
- type: "checkbox",
18529
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputVal.value = $event),
18530
- class: vue.normalizeClass({ "no-edit": !_ctx.editMode })
18531
- }, null, 10, _hoisted_4$f), [
18532
- [vue.vModelCheckbox, inputVal.value]
18533
- ]),
18534
- _hoisted_5$b
18535
- ])
18638
+ vue.withDirectives(vue.createElementVNode("input", {
18639
+ id: _ctx.id,
18640
+ type: "checkbox",
18641
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(inputVal) ? inputVal.value = $event : inputVal = $event),
18642
+ class: vue.normalizeClass({ "no-edit": !_ctx.editMode })
18643
+ }, null, 10, _hoisted_2$x), [
18644
+ [vue.vModelCheckbox, vue.unref(inputVal)]
18645
+ ]),
18646
+ _hoisted_3$t,
18647
+ vue.createElementVNode("label", { for: _ctx.id }, vue.toDisplayString(_ctx.label), 9, _hoisted_4$f)
18536
18648
  ], 10, _hoisted_1$A);
18537
18649
  };
18538
18650
  }
18539
18651
  });
18540
- const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-0dacba34"]]);
18652
+ const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-4594626f"]]);
18541
18653
  const _hoisted_1$z = ["title"];
18542
18654
  const _hoisted_2$w = { key: 0 };
18543
18655
  const _hoisted_3$s = { class: "flex gap-3" };
@@ -19205,7 +19317,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
19205
19317
  [vue.vModelDynamic, inputVal.value]
19206
19318
  ])
19207
19319
  ], 8, _hoisted_2$n),
19208
- vue.createVNode(vue.unref(_sfc_main$W), {
19320
+ vue.createVNode(vue.unref(_sfc_main$X), {
19209
19321
  onClick: showPassword,
19210
19322
  icon: vue.unref(seePassword) ? "visibility" : "visibility_off"
19211
19323
  }, null, 8, ["icon"])
@@ -19354,7 +19466,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
19354
19466
  for: "label",
19355
19467
  class: vue.normalizeClass({ active: showList.value })
19356
19468
  }, [
19357
- vue.createVNode(vue.unref(_sfc_main$Y), { input: _ctx.label }, null, 8, ["input"])
19469
+ vue.createVNode(vue.unref(_sfc_main$Z), { input: _ctx.label }, null, 8, ["input"])
19358
19470
  ], 2)) : vue.createCommentVNode("", true),
19359
19471
  vue.createElementVNode("div", {
19360
19472
  class: vue.normalizeClass(["custom-select", { "open-select": showList.value && _ctx.editMode }]),
@@ -19366,7 +19478,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
19366
19478
  class: vue.normalizeClass(["input", { active: showList.value }]),
19367
19479
  name: "select-input"
19368
19480
  }, [
19369
- vue.createVNode(vue.unref(_sfc_main$Y), { input: displayValue.value }, null, 8, ["input"])
19481
+ vue.createVNode(vue.unref(_sfc_main$Z), { input: displayValue.value }, null, 8, ["input"])
19370
19482
  ], 2),
19371
19483
  (vue.openBlock(), vue.createBlock(vue.Teleport, { to: "#app" }, [
19372
19484
  vue.createElementVNode("div", {
@@ -19379,7 +19491,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
19379
19491
  key: option2.value,
19380
19492
  onClick: ($event) => handleSelect(option2)
19381
19493
  }, [
19382
- vue.createVNode(vue.unref(_sfc_main$Y), {
19494
+ vue.createVNode(vue.unref(_sfc_main$Z), {
19383
19495
  input: option2.label
19384
19496
  }, null, 8, ["input"])
19385
19497
  ], 8, _hoisted_2$l);
@@ -22264,12 +22376,12 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
22264
22376
  [vue.vModelText, vue.unref(inputVal)]
22265
22377
  ])
22266
22378
  ], 8, _hoisted_2$h),
22267
- _ctx.iconStart ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$W), {
22379
+ _ctx.iconStart ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$X), {
22268
22380
  key: 0,
22269
22381
  class: "iconStart",
22270
22382
  icon: _ctx.iconStart
22271
22383
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
22272
- _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$W), {
22384
+ _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$X), {
22273
22385
  key: 1,
22274
22386
  icon: _ctx.icon
22275
22387
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
@@ -22319,7 +22431,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
22319
22431
  title: _ctx.description
22320
22432
  }, [
22321
22433
  _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$g, [
22322
- vue.createVNode(vue.unref(_sfc_main$Y), { input: _ctx.label }, null, 8, ["input"])
22434
+ vue.createVNode(vue.unref(_sfc_main$Z), { input: _ctx.label }, null, 8, ["input"])
22323
22435
  ])) : vue.createCommentVNode("", true),
22324
22436
  _ctx.showCharacterLimit ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$e, vue.toDisplayString((_a2 = _ctx.modelValue) == null ? void 0 : _a2.length) + " " + vue.toDisplayString(((_b = _ctx.nativeInputAttrs) == null ? void 0 : _b.maxlength) ? `/${_ctx.nativeInputAttrs.maxlength}` : ""), 1)) : vue.createCommentVNode("", true),
22325
22437
  vue.createElementVNode("textarea", vue.mergeProps({
@@ -32090,7 +32202,6 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
32090
32202
  files.value.push(file);
32091
32203
  } else
32092
32204
  files.value.splice(0, 1, file);
32093
- console.log(files.value);
32094
32205
  fileQueue.value.splice(i3, 1);
32095
32206
  });
32096
32207
  };
@@ -32113,7 +32224,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
32113
32224
  else
32114
32225
  isDragOver.value = false;
32115
32226
  };
32116
- const dragenter = (e3) => {
32227
+ const dragover = (e3) => {
32117
32228
  preventDefault(e3);
32118
32229
  if (e3.dataTransfer)
32119
32230
  isDragOver.value = true;
@@ -32132,7 +32243,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
32132
32243
  vue.createElementVNode("label", null, vue.toDisplayString(_ctx.label), 1),
32133
32244
  vue.createElementVNode("div", {
32134
32245
  onClick: browse,
32135
- onDragover: dragenter,
32246
+ onDragover: dragover,
32136
32247
  onDrop: drop3,
32137
32248
  onDragleave: dragleave,
32138
32249
  class: vue.normalizeClass(["fileUploadWrap", { fileDropZone: !files.value.length, dragover: vue.unref(isDragOver) }])
@@ -32161,7 +32272,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
32161
32272
  };
32162
32273
  }
32163
32274
  });
32164
- const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-352399c0"]]);
32275
+ const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-c44f8c0d"]]);
32165
32276
  function _isPlaceholder(a3) {
32166
32277
  return a3 != null && typeof a3 === "object" && a3["@@functional/placeholder"] === true;
32167
32278
  }
@@ -38653,6 +38764,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
38653
38764
  });
38654
38765
  const MsgTemplate = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7031e613"]]);
38655
38766
  exports.AddressInput = AddressInput;
38767
+ exports.BagelForm = _sfc_main$r;
38656
38768
  exports.BagelVue = BagelVue;
38657
38769
  exports.BankDetailsInput = BankDetailsInput;
38658
38770
  exports.BarChart = BarChart;
@@ -38682,18 +38794,19 @@ exports.FormSchema = _sfc_main$L;
38682
38794
  exports.IntInput = _sfc_main$j;
38683
38795
  exports.ItemRef = _sfc_main$u;
38684
38796
  exports.JSONInput = JSONInput;
38685
- exports.LangText = _sfc_main$Y;
38797
+ exports.LangText = _sfc_main$Z;
38686
38798
  exports.Lineart = _sfc_main$1;
38687
38799
  exports.LinkField = LinkField;
38688
38800
  exports.ListItem = _sfc_main$Q;
38689
38801
  exports.ListView = _sfc_main$R;
38690
- exports.MaterialIcon = _sfc_main$W;
38802
+ exports.MaterialIcon = _sfc_main$X;
38691
38803
  exports.MiscFieldsInput = MiscFieldsInput;
38692
- exports.Modal = _sfc_main$T;
38804
+ exports.Modal = _sfc_main$U;
38805
+ exports.ModalBglForm = ModalBglForm;
38693
38806
  exports.ModalForm = ModalForm;
38694
38807
  exports.ModalPlugin = ModalPlugin;
38695
38808
  exports.MsgTemplate = MsgTemplate;
38696
- exports.NavBar = _sfc_main$V;
38809
+ exports.NavBar = NavBar;
38697
38810
  exports.PageTitle = _sfc_main$N;
38698
38811
  exports.Password = Password;
38699
38812
  exports.PasswordInput = PasswordInput;
@@ -38701,7 +38814,7 @@ exports.PersonPreview = _sfc_main$G;
38701
38814
  exports.PersonPreviewInput = PersonPreviewInput;
38702
38815
  exports.PlainInputField = _sfc_main$s;
38703
38816
  exports.PlainText = PlainText;
38704
- exports.RTXEditor = _sfc_main$X;
38817
+ exports.RTXEditor = _sfc_main$Y;
38705
38818
  exports.RadioPillsInput = RadioPillsInput;
38706
38819
  exports.ReadOnlyInput = ReadOnlyInput;
38707
38820
  exports.RichTextEditor = RichTextEditor;