@bagelink/vue 0.0.282 → 0.0.287

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -4878,7 +4878,7 @@ const ModalPlugin = {
4878
4878
  const props2 = { ...modal.modalOptions, "onUpdate:isModalVisible": () => hideModal(index2) };
4879
4879
  if (modal.modalType === "modalForm")
4880
4880
  return h$2(ModalForm, props2, modal.componentSlots);
4881
- return h$2(_sfc_main$z, props2, modal.componentSlots);
4881
+ return h$2(_sfc_main$y, props2, modal.componentSlots);
4882
4882
  });
4883
4883
  }
4884
4884
  });
@@ -4956,8 +4956,8 @@ const iffer = (field, itemData) => {
4956
4956
  return true;
4957
4957
  };
4958
4958
  const denullify = (itemData, fieldID) => fieldID && itemData ? itemData[fieldID] : null;
4959
- const _hoisted_1$I = { ref: "el" };
4960
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
4959
+ const _hoisted_1$H = { ref: "el" };
4960
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
4961
4961
  __name: "LangText",
4962
4962
  props: {
4963
4963
  input: {}
@@ -4965,7 +4965,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
4965
4965
  setup(__props) {
4966
4966
  return (_ctx, _cache) => {
4967
4967
  return openBlock(), createElementBlock(Fragment$1, null, [
4968
- createElementVNode("span", _hoisted_1$I, null, 512),
4968
+ createElementVNode("span", _hoisted_1$H, null, 512),
4969
4969
  createTextVNode(" " + toDisplayString(_ctx.input), 1)
4970
4970
  ], 64);
4971
4971
  };
@@ -17078,8 +17078,8 @@ const marks = {
17078
17078
  }
17079
17079
  };
17080
17080
  const schema = new Schema({ nodes, marks });
17081
- const _hoisted_1$H = ["id"];
17082
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
17081
+ const _hoisted_1$G = ["id"];
17082
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
17083
17083
  __name: "RTXEditor",
17084
17084
  props: {
17085
17085
  elementId: { default: Math.random().toString(36).substr(2, 9) },
@@ -17156,11 +17156,11 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
17156
17156
  onClick: focusEditor,
17157
17157
  id: `canvas-${_ctx.elementId}`,
17158
17158
  onKeydown: _cache[0] || (_cache[0] = withKeys(withModifiers(($event) => _ctx.$emit("keydown.meta.enter"), ["meta"]), ["enter"]))
17159
- }, null, 40, _hoisted_1$H);
17159
+ }, null, 40, _hoisted_1$G);
17160
17160
  };
17161
17161
  }
17162
17162
  });
17163
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
17163
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
17164
17164
  __name: "MaterialIcon",
17165
17165
  props: {
17166
17166
  icon: {},
@@ -17175,13 +17175,13 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
17175
17175
  };
17176
17176
  }
17177
17177
  });
17178
- const _hoisted_1$G = { class: "full-nav" };
17179
- const _hoisted_2$y = { class: "nav-scroll" };
17180
- const _hoisted_3$p = { class: "nav-links-wrapper" };
17181
- const _hoisted_4$j = { class: "tooltip" };
17182
- const _hoisted_5$g = { class: "bot-buttons-wrapper" };
17183
- const _hoisted_6$b = { class: "tooltip" };
17184
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
17178
+ const _hoisted_1$F = { class: "full-nav" };
17179
+ const _hoisted_2$w = { class: "nav-scroll" };
17180
+ const _hoisted_3$o = { class: "nav-links-wrapper" };
17181
+ const _hoisted_4$i = { class: "tooltip" };
17182
+ const _hoisted_5$f = { class: "bot-buttons-wrapper" };
17183
+ const _hoisted_6$a = { class: "tooltip" };
17184
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
17185
17185
  __name: "NavBar",
17186
17186
  props: {
17187
17187
  footerLinks: { default: () => [] },
@@ -17205,14 +17205,14 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
17205
17205
  "aria-label": "Toggle Navigation",
17206
17206
  tabindex: "0"
17207
17207
  }, [
17208
- createVNode(unref(_sfc_main$C), {
17208
+ createVNode(unref(_sfc_main$B), {
17209
17209
  icon: "chevron_right",
17210
17210
  class: "top-arrow"
17211
17211
  })
17212
17212
  ], 32),
17213
- createElementVNode("div", _hoisted_1$G, [
17214
- createElementVNode("div", _hoisted_2$y, [
17215
- createElementVNode("div", _hoisted_3$p, [
17213
+ createElementVNode("div", _hoisted_1$F, [
17214
+ createElementVNode("div", _hoisted_2$w, [
17215
+ createElementVNode("div", _hoisted_3$o, [
17216
17216
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.links, (link) => {
17217
17217
  return openBlock(), createBlock(resolveDynamicComponent(link.to ? "router-link" : "div"), {
17218
17218
  class: "nav-button",
@@ -17224,17 +17224,17 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
17224
17224
  }
17225
17225
  }, {
17226
17226
  default: withCtx(() => [
17227
- createVNode(unref(_sfc_main$C), {
17227
+ createVNode(unref(_sfc_main$B), {
17228
17228
  icon: link.materialIcon
17229
17229
  }, null, 8, ["icon"]),
17230
- createElementVNode("div", _hoisted_4$j, toDisplayString(link.label), 1)
17230
+ createElementVNode("div", _hoisted_4$i, toDisplayString(link.label), 1)
17231
17231
  ]),
17232
17232
  _: 2
17233
17233
  }, 1032, ["to", "onClick"]);
17234
17234
  }), 128))
17235
17235
  ])
17236
17236
  ]),
17237
- createElementVNode("div", _hoisted_5$g, [
17237
+ createElementVNode("div", _hoisted_5$f, [
17238
17238
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.footerLinks, (link) => {
17239
17239
  return openBlock(), createBlock(resolveDynamicComponent(link.to ? "router-link" : "div"), {
17240
17240
  class: "nav-button",
@@ -17246,10 +17246,10 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
17246
17246
  key: link.label
17247
17247
  }, {
17248
17248
  default: withCtx(() => [
17249
- createVNode(unref(_sfc_main$C), {
17249
+ createVNode(unref(_sfc_main$B), {
17250
17250
  icon: link.materialIcon
17251
17251
  }, null, 8, ["icon"]),
17252
- createElementVNode("div", _hoisted_6$b, toDisplayString(link.label), 1)
17252
+ createElementVNode("div", _hoisted_6$a, toDisplayString(link.label), 1)
17253
17253
  ]),
17254
17254
  _: 2
17255
17255
  }, 1032, ["to", "onClick"]);
@@ -17268,16 +17268,16 @@ const _export_sfc = (sfc, props2) => {
17268
17268
  }
17269
17269
  return target;
17270
17270
  };
17271
- const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-776ccc02"]]);
17272
- const _hoisted_1$F = {
17271
+ const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-776ccc02"]]);
17272
+ const _hoisted_1$E = {
17273
17273
  key: 0,
17274
17274
  class: "loading"
17275
17275
  };
17276
- const _hoisted_2$x = {
17276
+ const _hoisted_2$v = {
17277
17277
  key: 1,
17278
17278
  class: "bgl_btn-flex"
17279
17279
  };
17280
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
17280
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
17281
17281
  __name: "Btn",
17282
17282
  props: {
17283
17283
  disabled: { type: Boolean, default: false },
@@ -17363,8 +17363,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
17363
17363
  })
17364
17364
  }, {
17365
17365
  default: withCtx(() => [
17366
- _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$F)) : (openBlock(), createElementBlock("div", _hoisted_2$x, [
17367
- _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$C), {
17366
+ _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$E)) : (openBlock(), createElementBlock("div", _hoisted_2$v, [
17367
+ _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$B), {
17368
17368
  key: 0,
17369
17369
  icon: _ctx.icon
17370
17370
  }, null, 8, ["icon"])) : createCommentVNode("", true),
@@ -17372,7 +17372,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
17372
17372
  !unref(slots)["default"] && _ctx.value ? (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
17373
17373
  createTextVNode(toDisplayString(_ctx.value), 1)
17374
17374
  ], 64)) : createCommentVNode("", true),
17375
- props2["icon.end"] ? (openBlock(), createBlock(unref(_sfc_main$C), {
17375
+ props2["icon.end"] ? (openBlock(), createBlock(unref(_sfc_main$B), {
17376
17376
  key: 2,
17377
17377
  icon: props2["icon.end"]
17378
17378
  }, null, 8, ["icon"])) : createCommentVNode("", true)
@@ -17383,10 +17383,10 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
17383
17383
  };
17384
17384
  }
17385
17385
  });
17386
- const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-7a7625e7"]]);
17387
- const _hoisted_1$E = { class: "tool-bar" };
17388
- const _hoisted_2$w = { class: "modal-footer mt-3" };
17389
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
17386
+ const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-7a7625e7"]]);
17387
+ const _hoisted_1$D = { class: "tool-bar" };
17388
+ const _hoisted_2$u = { class: "modal-footer mt-3" };
17389
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
17390
17390
  __name: "Modal",
17391
17391
  props: {
17392
17392
  side: { type: Boolean },
@@ -17418,13 +17418,13 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
17418
17418
  onClick: _cache[1] || (_cache[1] = () => _ctx.dismissable ? closeModal() : ""),
17419
17419
  onKeydown: withKeys(closeModal, ["esc"])
17420
17420
  }, [
17421
- createVNode(unref(_sfc_main$n), {
17421
+ createVNode(unref(_sfc_main$m), {
17422
17422
  class: "modal",
17423
17423
  onClick: _cache[0] || (_cache[0] = withModifiers(() => {
17424
17424
  }, ["stop"]))
17425
17425
  }, {
17426
17426
  default: withCtx(() => [
17427
- createElementVNode("header", _hoisted_1$E, [
17427
+ createElementVNode("header", _hoisted_1$D, [
17428
17428
  renderSlot(_ctx.$slots, "toolbar"),
17429
17429
  createVNode(unref(Btn), {
17430
17430
  style: normalizeStyle({ float: _ctx.side ? "left" : "right" }),
@@ -17432,7 +17432,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
17432
17432
  icon: "close",
17433
17433
  onClick: closeModal
17434
17434
  }, null, 8, ["style"]),
17435
- _ctx.title ? (openBlock(), createBlock(unref(_sfc_main$l), {
17435
+ _ctx.title ? (openBlock(), createBlock(unref(_sfc_main$k), {
17436
17436
  key: 0,
17437
17437
  class: "modal-title",
17438
17438
  tag: "h3",
@@ -17440,7 +17440,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
17440
17440
  }, null, 8, ["label"])) : createCommentVNode("", true)
17441
17441
  ]),
17442
17442
  renderSlot(_ctx.$slots, "default"),
17443
- createElementVNode("footer", _hoisted_2$w, [
17443
+ createElementVNode("footer", _hoisted_2$u, [
17444
17444
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.actions, (action, i2) => {
17445
17445
  return openBlock(), createBlock(unref(Btn), mergeProps({
17446
17446
  key: i2,
@@ -17457,7 +17457,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
17457
17457
  };
17458
17458
  }
17459
17459
  });
17460
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
17460
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
17461
17461
  __name: "ModalForm",
17462
17462
  props: /* @__PURE__ */ mergeModels({
17463
17463
  side: { type: Boolean },
@@ -17514,7 +17514,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
17514
17514
  }
17515
17515
  __expose({ setFormValues });
17516
17516
  return (_ctx, _cache) => {
17517
- return openBlock(), createBlock(unref(_sfc_main$z), {
17517
+ return openBlock(), createBlock(unref(_sfc_main$y), {
17518
17518
  "onOnUpdate:isModalVisible": props2["onUpdate:isModalVisible"],
17519
17519
  side: _ctx.side,
17520
17520
  ref_key: "modal",
@@ -17565,12 +17565,12 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
17565
17565
  };
17566
17566
  }
17567
17567
  });
17568
- const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-dca6fe18"]]);
17569
- const _hoisted_1$D = { class: "accordion-item" };
17570
- const _hoisted_2$v = ["aria-expanded", "aria-controls"];
17571
- const _hoisted_3$o = { class: "accordion-label" };
17572
- const _hoisted_4$i = ["id", "aria-hidden"];
17573
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
17568
+ const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-dca6fe18"]]);
17569
+ const _hoisted_1$C = { class: "accordion-item" };
17570
+ const _hoisted_2$t = ["aria-expanded", "aria-controls"];
17571
+ const _hoisted_3$n = { class: "accordion-label" };
17572
+ const _hoisted_4$h = ["id", "aria-hidden"];
17573
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
17574
17574
  __name: "AccordionItem",
17575
17575
  props: {
17576
17576
  label: {},
@@ -17581,33 +17581,33 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
17581
17581
  let open = ref(false);
17582
17582
  const accordionState = inject("accordionState");
17583
17583
  const id = props2.id || Math.random().toString(36).substring(7);
17584
- watch(() => accordionState.openItem, (currentOpenId) => {
17584
+ watch(() => accordionState == null ? void 0 : accordionState.openItem, (currentOpenId) => {
17585
17585
  if (currentOpenId !== id) {
17586
17586
  open.value = false;
17587
17587
  }
17588
17588
  }, { immediate: true });
17589
17589
  function toggle() {
17590
17590
  open.value = !open.value;
17591
- if (open.value)
17591
+ if (open.value && (accordionState == null ? void 0 : accordionState.openItem))
17592
17592
  accordionState.openItem = id;
17593
- else if (accordionState.openItem === id)
17593
+ else if ((accordionState == null ? void 0 : accordionState.openItem) === id)
17594
17594
  accordionState.openItem = null;
17595
17595
  }
17596
17596
  return (_ctx, _cache) => {
17597
- return openBlock(), createElementBlock("div", _hoisted_1$D, [
17597
+ return openBlock(), createElementBlock("div", _hoisted_1$C, [
17598
17598
  createElementVNode("button", {
17599
17599
  onClick: _cache[0] || (_cache[0] = ($event) => toggle()),
17600
17600
  "aria-expanded": unref(open) ? "true" : "false",
17601
17601
  class: "accordion-head",
17602
17602
  "aria-controls": `accordion-body-${unref(id)}`
17603
17603
  }, [
17604
- createElementVNode("span", _hoisted_3$o, toDisplayString(_ctx.label), 1),
17604
+ createElementVNode("span", _hoisted_3$n, toDisplayString(_ctx.label), 1),
17605
17605
  createElementVNode("div", {
17606
17606
  class: normalizeClass(["accordion-icon", { open: unref(open) }])
17607
17607
  }, [
17608
- createVNode(unref(_sfc_main$C), { icon: "expand_more" })
17608
+ createVNode(unref(_sfc_main$B), { icon: "expand_more" })
17609
17609
  ], 2)
17610
- ], 8, _hoisted_2$v),
17610
+ ], 8, _hoisted_2$t),
17611
17611
  createVNode(Transition, { name: "expand" }, {
17612
17612
  default: withCtx(() => [
17613
17613
  unref(open) ? (openBlock(), createElementBlock("div", {
@@ -17617,7 +17617,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
17617
17617
  "aria-hidden": unref(open) ? "false" : "true"
17618
17618
  }, [
17619
17619
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
17620
- ], 8, _hoisted_4$i)) : createCommentVNode("", true)
17620
+ ], 8, _hoisted_4$h)) : createCommentVNode("", true)
17621
17621
  ]),
17622
17622
  _: 3
17623
17623
  })
@@ -17625,16 +17625,16 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
17625
17625
  };
17626
17626
  }
17627
17627
  });
17628
- const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-41718a1b"]]);
17629
- const _hoisted_1$C = { class: "card list-view grid thin" };
17630
- const _hoisted_2$u = { class: "list-header flex gap-3 align-items-top" };
17631
- const _hoisted_3$n = {
17628
+ const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-bf74738b"]]);
17629
+ const _hoisted_1$B = { class: "card list-view grid thin" };
17630
+ const _hoisted_2$s = { class: "list-header flex gap-3 align-items-top" };
17631
+ const _hoisted_3$m = {
17632
17632
  key: 0,
17633
17633
  class: "bagel-input search-wrap"
17634
17634
  };
17635
- const _hoisted_4$h = ["placeholder"];
17636
- const _hoisted_5$f = { class: "list-content grid auto-flow-rows align-items-start" };
17637
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
17635
+ const _hoisted_4$g = ["placeholder"];
17636
+ const _hoisted_5$e = { class: "list-content grid auto-flow-rows align-items-start" };
17637
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
17638
17638
  __name: "ListView",
17639
17639
  props: {
17640
17640
  enableAdd: { type: Boolean },
@@ -17650,17 +17650,17 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
17650
17650
  debounce(() => emit2("debounce", searchTerm.value));
17651
17651
  };
17652
17652
  return (_ctx, _cache) => {
17653
- return openBlock(), createElementBlock("div", _hoisted_1$C, [
17654
- createElementVNode("div", _hoisted_2$u, [
17655
- _ctx.enableSearch ? (openBlock(), createElementBlock("div", _hoisted_3$n, [
17653
+ return openBlock(), createElementBlock("div", _hoisted_1$B, [
17654
+ createElementVNode("div", _hoisted_2$s, [
17655
+ _ctx.enableSearch ? (openBlock(), createElementBlock("div", _hoisted_3$m, [
17656
17656
  withDirectives(createElementVNode("input", {
17657
17657
  placeholder: _ctx.searchPlaceholder,
17658
17658
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchTerm.value = $event),
17659
17659
  onInput: _cache[1] || (_cache[1] = ($event) => search())
17660
- }, null, 40, _hoisted_4$h), [
17660
+ }, null, 40, _hoisted_4$g), [
17661
17661
  [vModelText, searchTerm.value]
17662
17662
  ]),
17663
- createVNode(unref(_sfc_main$C), {
17663
+ createVNode(unref(_sfc_main$B), {
17664
17664
  class: "txtgray",
17665
17665
  icon: "search"
17666
17666
  })
@@ -17671,16 +17671,16 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
17671
17671
  onClick: _cache[2] || (_cache[2] = ($event) => emit2("add"))
17672
17672
  })) : createCommentVNode("", true)
17673
17673
  ]),
17674
- createElementVNode("div", _hoisted_5$f, [
17674
+ createElementVNode("div", _hoisted_5$e, [
17675
17675
  renderSlot(_ctx.$slots, "default")
17676
17676
  ])
17677
17677
  ]);
17678
17678
  };
17679
17679
  }
17680
17680
  });
17681
- const _hoisted_1$B = { class: "txt16 no-margin ellipsis" };
17682
- const _hoisted_2$t = { class: "txt14 no-margin txtgray ellipsis" };
17683
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
17681
+ const _hoisted_1$A = { class: "txt16 no-margin ellipsis" };
17682
+ const _hoisted_2$r = { class: "txt14 no-margin txtgray ellipsis" };
17683
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
17684
17684
  __name: "ListItem",
17685
17685
  props: {
17686
17686
  src: {},
@@ -17704,11 +17704,11 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
17704
17704
  size: 40
17705
17705
  }, null, 8, ["name", "src"])) : createCommentVNode("", true),
17706
17706
  createElementVNode("div", null, [
17707
- createElementVNode("p", _hoisted_1$B, [
17707
+ createElementVNode("p", _hoisted_1$A, [
17708
17708
  createTextVNode(toDisplayString(_ctx.title) + " ", 1),
17709
17709
  renderSlot(_ctx.$slots, "default")
17710
17710
  ]),
17711
- createElementVNode("p", _hoisted_2$t, [
17711
+ createElementVNode("p", _hoisted_2$r, [
17712
17712
  createTextVNode(toDisplayString(_ctx.subtitle) + " ", 1),
17713
17713
  renderSlot(_ctx.$slots, "subtitle")
17714
17714
  ])
@@ -17719,10 +17719,10 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
17719
17719
  };
17720
17720
  }
17721
17721
  });
17722
- const _hoisted_1$A = { class: "card tabs-top" };
17723
- const _hoisted_2$s = { class: "tabs grid auto-flow-columns fit-content" };
17724
- const _hoisted_3$m = ["onClick"];
17725
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
17722
+ const _hoisted_1$z = { class: "card tabs-top" };
17723
+ const _hoisted_2$q = { class: "tabs grid auto-flow-columns fit-content" };
17724
+ const _hoisted_3$l = ["onClick"];
17725
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
17726
17726
  __name: "TabbedLayout",
17727
17727
  props: {
17728
17728
  title: {},
@@ -17757,9 +17757,9 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
17757
17757
  return openBlock(), createElementBlock("div", {
17758
17758
  class: normalizeClass(["h-100 grid list-view gap-3", { "side-tabs": _ctx.sideTabs }])
17759
17759
  }, [
17760
- createElementVNode("div", _hoisted_1$A, [
17760
+ createElementVNode("div", _hoisted_1$z, [
17761
17761
  renderSlot(_ctx.$slots, "top-section", {}, void 0, true),
17762
- createElementVNode("div", _hoisted_2$s, [
17762
+ createElementVNode("div", _hoisted_2$q, [
17763
17763
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.tabs, (tab) => {
17764
17764
  var _a2;
17765
17765
  return openBlock(), createElementBlock("div", {
@@ -17768,7 +17768,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
17768
17768
  }, "tab"]),
17769
17769
  key: tab,
17770
17770
  onClick: ($event) => changeTab(tab)
17771
- }, toDisplayString(tab), 11, _hoisted_3$m);
17771
+ }, toDisplayString(tab), 11, _hoisted_3$l);
17772
17772
  }), 128))
17773
17773
  ])
17774
17774
  ]),
@@ -17784,16 +17784,16 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
17784
17784
  };
17785
17785
  }
17786
17786
  });
17787
- const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-09fce741"]]);
17788
- const _hoisted_1$z = { class: "comments-wrap" };
17789
- const _hoisted_2$r = { class: "comment-list" };
17790
- const _hoisted_3$l = { class: "comment-top" };
17791
- const _hoisted_4$g = { class: "comment-owner" };
17792
- const _hoisted_5$e = { class: "comment-time" };
17793
- const _hoisted_6$a = { class: "comment-actions" };
17794
- const _hoisted_7$6 = ["innerHTML"];
17795
- const _hoisted_8$3 = { class: "new-comment" };
17796
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
17787
+ const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-09fce741"]]);
17788
+ const _hoisted_1$y = { class: "comments-wrap" };
17789
+ const _hoisted_2$p = { class: "comment-list" };
17790
+ const _hoisted_3$k = { class: "comment-top" };
17791
+ const _hoisted_4$f = { class: "comment-owner" };
17792
+ const _hoisted_5$d = { class: "comment-time" };
17793
+ const _hoisted_6$9 = { class: "comment-actions" };
17794
+ const _hoisted_7$5 = ["innerHTML"];
17795
+ const _hoisted_8$2 = { class: "new-comment" };
17796
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
17797
17797
  __name: "Comments",
17798
17798
  props: {
17799
17799
  ref_table: {},
@@ -17836,8 +17836,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
17836
17836
  void fetchData();
17837
17837
  };
17838
17838
  return (_ctx, _cache) => {
17839
- return openBlock(), createElementBlock("div", _hoisted_1$z, [
17840
- createElementVNode("div", _hoisted_2$r, [
17839
+ return openBlock(), createElementBlock("div", _hoisted_1$y, [
17840
+ createElementVNode("div", _hoisted_2$p, [
17841
17841
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(comments), (comment) => {
17842
17842
  var _a2, _b, _c;
17843
17843
  return openBlock(), createElementBlock("div", {
@@ -17847,23 +17847,23 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
17847
17847
  }, "comment"]),
17848
17848
  key: comment.id
17849
17849
  }, [
17850
- createElementVNode("div", _hoisted_3$l, [
17851
- createElementVNode("div", _hoisted_4$g, toDisplayString(comment.sender.first_name) + " " + toDisplayString(comment.sender.last_name), 1),
17852
- createElementVNode("div", _hoisted_5$e, toDisplayString(comment.updated_at.split("T")[0]), 1),
17853
- createElementVNode("div", _hoisted_6$a, [
17854
- createVNode(unref(_sfc_main$C), {
17850
+ createElementVNode("div", _hoisted_3$k, [
17851
+ createElementVNode("div", _hoisted_4$f, toDisplayString(comment.sender.first_name) + " " + toDisplayString(comment.sender.last_name), 1),
17852
+ createElementVNode("div", _hoisted_5$d, toDisplayString(comment.updated_at.split("T")[0]), 1),
17853
+ createElementVNode("div", _hoisted_6$9, [
17854
+ createVNode(unref(_sfc_main$B), {
17855
17855
  size: 1,
17856
17856
  class: "edit",
17857
17857
  icon: "edit",
17858
17858
  onClick: ($event) => isRef(editComment) ? editComment.value = comment : editComment = comment
17859
17859
  }, null, 8, ["onClick"]),
17860
- createVNode(unref(_sfc_main$C), {
17860
+ createVNode(unref(_sfc_main$B), {
17861
17861
  size: 1.2,
17862
17862
  class: "delete",
17863
17863
  icon: "delete",
17864
17864
  onClick: ($event) => deleteComment(comment.id)
17865
17865
  }, null, 8, ["onClick"]),
17866
- createVNode(unref(_sfc_main$C), {
17866
+ createVNode(unref(_sfc_main$B), {
17867
17867
  size: 1.2,
17868
17868
  class: "save",
17869
17869
  icon: "save",
@@ -17871,7 +17871,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
17871
17871
  })
17872
17872
  ])
17873
17873
  ]),
17874
- unref(editComment) !== null && ((_c = unref(editComment)) == null ? void 0 : _c.id) === comment.id ? (openBlock(), createBlock(unref(_sfc_main$D), {
17874
+ unref(editComment) !== null && ((_c = unref(editComment)) == null ? void 0 : _c.id) === comment.id ? (openBlock(), createBlock(unref(_sfc_main$C), {
17875
17875
  key: 0,
17876
17876
  modelValue: unref(editComment).body_html,
17877
17877
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(editComment).body_html = $event),
@@ -17880,12 +17880,12 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
17880
17880
  key: 1,
17881
17881
  class: "editor-wrapper",
17882
17882
  innerHTML: comment.body_html
17883
- }, null, 8, _hoisted_7$6))
17883
+ }, null, 8, _hoisted_7$5))
17884
17884
  ], 2);
17885
17885
  }), 128))
17886
17886
  ]),
17887
- createElementVNode("div", _hoisted_8$3, [
17888
- createVNode(unref(_sfc_main$D), {
17887
+ createElementVNode("div", _hoisted_8$2, [
17888
+ createVNode(unref(_sfc_main$C), {
17889
17889
  class: "comment-input",
17890
17890
  modelValue: unref(bodyHtml),
17891
17891
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(bodyHtml) ? bodyHtml.value = $event : bodyHtml = $event),
@@ -17905,10 +17905,10 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
17905
17905
  };
17906
17906
  }
17907
17907
  });
17908
- const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-c4b41dc0"]]);
17909
- const _hoisted_1$y = { class: "page-top" };
17910
- const _hoisted_2$q = { class: "top-title" };
17911
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
17908
+ const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-c4b41dc0"]]);
17909
+ const _hoisted_1$x = { class: "page-top" };
17910
+ const _hoisted_2$o = { class: "top-title" };
17911
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
17912
17912
  __name: "PageTitle",
17913
17913
  props: {
17914
17914
  value: {
@@ -17918,8 +17918,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
17918
17918
  },
17919
17919
  setup(__props) {
17920
17920
  return (_ctx, _cache) => {
17921
- return openBlock(), createElementBlock("div", _hoisted_1$y, [
17922
- createElementVNode("h1", _hoisted_2$q, [
17921
+ return openBlock(), createElementBlock("div", _hoisted_1$x, [
17922
+ createElementVNode("h1", _hoisted_2$o, [
17923
17923
  renderSlot(_ctx.$slots, "default"),
17924
17924
  createTextVNode(" " + toDisplayString(__props.value), 1)
17925
17925
  ])
@@ -17927,14 +17927,14 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
17927
17927
  };
17928
17928
  }
17929
17929
  });
17930
- const _hoisted_1$x = { class: "table-list-wrap h-100" };
17931
- const _hoisted_2$p = { class: "infinite-wrapper" };
17932
- const _hoisted_3$k = { class: "row first-row" };
17933
- const _hoisted_4$f = ["onClick"];
17934
- const _hoisted_5$d = { class: "flex" };
17935
- const _hoisted_6$9 = ["onClick"];
17936
- const _hoisted_7$5 = { key: 1 };
17937
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
17930
+ const _hoisted_1$w = { class: "table-list-wrap h-100" };
17931
+ const _hoisted_2$n = { class: "infinite-wrapper" };
17932
+ const _hoisted_3$j = { class: "row first-row" };
17933
+ const _hoisted_4$e = ["onClick"];
17934
+ const _hoisted_5$c = { class: "flex" };
17935
+ const _hoisted_6$8 = ["onClick"];
17936
+ const _hoisted_7$4 = { key: 1 };
17937
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
17938
17938
  __name: "TableSchema",
17939
17939
  props: {
17940
17940
  data: {},
@@ -17968,27 +17968,27 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
17968
17968
  emit2("orderBy", `${fieldname} ${sortDirection.value}`.trim());
17969
17969
  };
17970
17970
  return (_ctx, _cache) => {
17971
- return openBlock(), createElementBlock("div", _hoisted_1$x, [
17972
- createElementVNode("table", _hoisted_2$p, [
17973
- createElementVNode("thead", _hoisted_3$k, [
17971
+ return openBlock(), createElementBlock("div", _hoisted_1$w, [
17972
+ createElementVNode("table", _hoisted_2$n, [
17973
+ createElementVNode("thead", _hoisted_3$j, [
17974
17974
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(computedSchema.value, (field) => {
17975
17975
  return openBlock(), createElementBlock("th", {
17976
17976
  class: "col",
17977
17977
  key: field.id,
17978
17978
  onClick: ($event) => sort2((field == null ? void 0 : field.id) || "")
17979
17979
  }, [
17980
- createElementVNode("div", _hoisted_5$d, [
17980
+ createElementVNode("div", _hoisted_5$c, [
17981
17981
  createTextVNode(toDisplayString(field.id) + " ", 1),
17982
17982
  createElementVNode("div", {
17983
17983
  class: normalizeClass(["list-arrows", { sorted: unref(sortField) === field.id }])
17984
17984
  }, [
17985
- createVNode(unref(_sfc_main$C), {
17985
+ createVNode(unref(_sfc_main$B), {
17986
17986
  class: normalizeClass({ desc: unref(sortDirection) === "DESC" }),
17987
17987
  icon: "keyboard_arrow_up"
17988
17988
  }, null, 8, ["class"])
17989
17989
  ], 2)
17990
17990
  ])
17991
- ], 8, _hoisted_4$f);
17991
+ ], 8, _hoisted_4$e);
17992
17992
  }), 128))
17993
17993
  ]),
17994
17994
  createElementVNode("tbody", {
@@ -18010,7 +18010,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
18010
18010
  key: 0,
18011
18011
  row,
18012
18012
  field
18013
- }, void 0, true) : (openBlock(), createElementBlock("div", _hoisted_7$5, [
18013
+ }, void 0, true) : (openBlock(), createElementBlock("div", _hoisted_7$4, [
18014
18014
  createVNode(unref(_sfc_main$g), {
18015
18015
  field,
18016
18016
  modelValue: row
@@ -18018,7 +18018,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
18018
18018
  ]))
18019
18019
  ]);
18020
18020
  }), 128))
18021
- ], 8, _hoisted_6$9);
18021
+ ], 8, _hoisted_6$8);
18022
18022
  }), 128))
18023
18023
  ], 2)
18024
18024
  ])
@@ -18026,16 +18026,16 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
18026
18026
  };
18027
18027
  }
18028
18028
  });
18029
- const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-2137a7a8"]]);
18030
- const _sfc_main$q = {};
18031
- const _hoisted_1$w = { class: "flex space-between" };
18029
+ const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-2137a7a8"]]);
18030
+ const _sfc_main$p = {};
18031
+ const _hoisted_1$v = { class: "flex space-between" };
18032
18032
  function _sfc_render$1(_ctx, _cache) {
18033
- return openBlock(), createElementBlock("div", _hoisted_1$w, [
18033
+ return openBlock(), createElementBlock("div", _hoisted_1$v, [
18034
18034
  renderSlot(_ctx.$slots, "default")
18035
18035
  ]);
18036
18036
  }
18037
- const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$1]]);
18038
- const _sfc_main$p = {};
18037
+ const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$1]]);
18038
+ const _sfc_main$o = {};
18039
18039
  function _sfc_render(_ctx, _cache) {
18040
18040
  const _component_router_view = resolveComponent("router-view");
18041
18041
  return openBlock(), createBlock(_component_router_view, null, {
@@ -18057,20 +18057,20 @@ function _sfc_render(_ctx, _cache) {
18057
18057
  _: 1
18058
18058
  });
18059
18059
  }
18060
- const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render]]);
18061
- const _hoisted_1$v = {
18060
+ const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render]]);
18061
+ const _hoisted_1$u = {
18062
18062
  key: 0,
18063
18063
  class: "data"
18064
18064
  };
18065
- const _hoisted_2$o = {
18065
+ const _hoisted_2$m = {
18066
18066
  key: 0,
18067
18067
  class: "data-row"
18068
18068
  };
18069
- const _hoisted_3$j = { class: "key" };
18070
- const _hoisted_4$e = { key: 1 };
18071
- const _hoisted_5$c = { class: "key" };
18072
- const _hoisted_6$8 = { class: "vlue" };
18073
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
18069
+ const _hoisted_3$i = { class: "key" };
18070
+ const _hoisted_4$d = { key: 1 };
18071
+ const _hoisted_5$b = { class: "key" };
18072
+ const _hoisted_6$7 = { class: "vlue" };
18073
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
18074
18074
  __name: "DataPreview",
18075
18075
  props: /* @__PURE__ */ mergeModels({
18076
18076
  schema: {},
@@ -18084,8 +18084,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
18084
18084
  const itemData = useModel(__props, "data");
18085
18085
  return (_ctx, _cache) => {
18086
18086
  var _a2;
18087
- return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$v, [
18088
- _ctx.title ? (openBlock(), createBlock(unref(_sfc_main$l), {
18087
+ return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$u, [
18088
+ _ctx.title ? (openBlock(), createBlock(unref(_sfc_main$k), {
18089
18089
  key: 0,
18090
18090
  label: _ctx.title
18091
18091
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -18093,8 +18093,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
18093
18093
  return openBlock(), createElementBlock(Fragment$1, {
18094
18094
  key: field.id
18095
18095
  }, [
18096
- unref(iffer)(field, itemData.value) ? (openBlock(), createElementBlock("div", _hoisted_2$o, [
18097
- createElementVNode("div", _hoisted_3$j, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1),
18096
+ unref(iffer)(field, itemData.value) ? (openBlock(), createElementBlock("div", _hoisted_2$m, [
18097
+ createElementVNode("div", _hoisted_3$i, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1),
18098
18098
  createVNode(unref(_sfc_main$g), {
18099
18099
  field,
18100
18100
  modelValue: itemData.value,
@@ -18103,14 +18103,14 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
18103
18103
  ])) : createCommentVNode("", true)
18104
18104
  ], 64);
18105
18105
  }), 128)),
18106
- !((_a2 = _ctx.schema) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_4$e, [
18106
+ !((_a2 = _ctx.schema) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_4$d, [
18107
18107
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(Object.entries(itemData.value), ([key, value]) => {
18108
18108
  return openBlock(), createElementBlock("div", {
18109
18109
  class: "data-row",
18110
18110
  key
18111
18111
  }, [
18112
- createElementVNode("div", _hoisted_5$c, toDisplayString(unref(keyToLabel)(key)), 1),
18113
- createElementVNode("div", _hoisted_6$8, toDisplayString(value), 1)
18112
+ createElementVNode("div", _hoisted_5$b, toDisplayString(unref(keyToLabel)(key)), 1),
18113
+ createElementVNode("div", _hoisted_6$7, toDisplayString(value), 1)
18114
18114
  ]);
18115
18115
  }), 128))
18116
18116
  ])) : createCommentVNode("", true),
@@ -18119,8 +18119,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
18119
18119
  };
18120
18120
  }
18121
18121
  });
18122
- const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-bb2526f9"]]);
18123
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
18122
+ const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-bb2526f9"]]);
18123
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18124
18124
  __name: "Card",
18125
18125
  props: {
18126
18126
  thin: { type: Boolean },
@@ -18138,8 +18138,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
18138
18138
  };
18139
18139
  }
18140
18140
  });
18141
- const _hoisted_1$u = ["src", "alt"];
18142
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
18141
+ const _hoisted_1$t = ["src", "alt"];
18142
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
18143
18143
  __name: "Avatar",
18144
18144
  props: {
18145
18145
  fallback: {},
@@ -18157,7 +18157,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18157
18157
  key: 0,
18158
18158
  src: _ctx.src,
18159
18159
  alt: _ctx.name
18160
- }, null, 8, _hoisted_1$u)) : (openBlock(), createElementBlock("p", {
18160
+ }, null, 8, _hoisted_1$t)) : (openBlock(), createElementBlock("p", {
18161
18161
  key: 1,
18162
18162
  style: normalizeStyle({ "line-height": `${_ctx.size * 0.9}px` })
18163
18163
  }, toDisplayString(_ctx.fallback || unref(initials)(_ctx.name || "")), 5))
@@ -18165,8 +18165,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18165
18165
  };
18166
18166
  }
18167
18167
  });
18168
- const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-0441b0b8"]]);
18169
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
18168
+ const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-b46163a3"]]);
18169
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
18170
18170
  __name: "Title",
18171
18171
  props: {
18172
18172
  value: {
@@ -18194,7 +18194,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
18194
18194
  };
18195
18195
  }
18196
18196
  });
18197
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
18197
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
18198
18198
  __name: "Accordion",
18199
18199
  setup(__props) {
18200
18200
  const state = reactive({
@@ -18208,8 +18208,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
18208
18208
  };
18209
18209
  }
18210
18210
  });
18211
- const _hoisted_1$t = ["onClick"];
18212
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
18211
+ const _hoisted_1$s = ["onClick"];
18212
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
18213
18213
  __name: "ComboBox",
18214
18214
  props: {
18215
18215
  options: {},
@@ -18222,9 +18222,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
18222
18222
  emits: ["update:modelValue"],
18223
18223
  setup(__props, { emit: __emit }) {
18224
18224
  let open = ref(false);
18225
- let selectedItem = ref();
18226
18225
  const searchInput = ref(null);
18227
18226
  const props2 = __props;
18227
+ let selectedItem = ref();
18228
18228
  let search = ref("");
18229
18229
  const toggle = () => {
18230
18230
  open.value = !open.value;
@@ -18279,13 +18279,17 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
18279
18279
  emit2("update:modelValue", selectedItem.value);
18280
18280
  open.value = false;
18281
18281
  };
18282
+ watch(() => props2.modelValue, (value) => {
18283
+ if (value !== selectedItem.value)
18284
+ selectedItem.value = value;
18285
+ }, { immediate: true });
18282
18286
  return (_ctx, _cache) => {
18283
18287
  return openBlock(), createBlock(unref(kt$1), {
18284
18288
  placement: "auto-start",
18285
18289
  class: "bagel-input combobox"
18286
18290
  }, {
18287
18291
  popper: withCtx(({ hide }) => [
18288
- createVNode(unref(_sfc_main$n), {
18292
+ createVNode(unref(_sfc_main$m), {
18289
18293
  thin: "",
18290
18294
  class: "combobox-options"
18291
18295
  }, {
@@ -18310,11 +18314,11 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
18310
18314
  }
18311
18315
  }, [
18312
18316
  createElementVNode("span", null, toDisplayString(label(option2)), 1),
18313
- isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$C), {
18317
+ isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$B), {
18314
18318
  key: 0,
18315
18319
  icon: "check"
18316
18320
  })) : createCommentVNode("", true)
18317
- ], 10, _hoisted_1$t);
18321
+ ], 10, _hoisted_1$s);
18318
18322
  }), 128))
18319
18323
  ]),
18320
18324
  _: 2
@@ -18327,7 +18331,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
18327
18331
  onClick: toggle
18328
18332
  }, [
18329
18333
  createTextVNode(toDisplayString(valueToLabel(unref(selectedItem)) || _ctx.placeholder || "Select") + " ", 1),
18330
- createVNode(unref(_sfc_main$C), normalizeProps(guardReactiveProps({ "icon": unref(open) ? "unfold_less" : "unfold_more" })), null, 16)
18334
+ createVNode(unref(_sfc_main$B), normalizeProps(guardReactiveProps({ "icon": unref(open) ? "unfold_less" : "unfold_more" })), null, 16)
18331
18335
  ]),
18332
18336
  _ctx.required ? withDirectives((openBlock(), createElementBlock("input", {
18333
18337
  key: 0,
@@ -18343,126 +18347,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
18343
18347
  };
18344
18348
  }
18345
18349
  });
18346
- const ComboBox = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-6c62bdf1"]]);
18347
- const _withScopeId$2 = (n2) => (pushScopeId("data-v-fe5af582"), n2 = n2(), popScopeId(), n2);
18348
- const _hoisted_1$s = { class: "bar-chart" };
18349
- const _hoisted_2$n = {
18350
- key: 0,
18351
- class: "group-wrap"
18352
- };
18353
- const _hoisted_3$i = { class: "group-title" };
18354
- const _hoisted_4$d = {
18355
- key: 1,
18356
- class: "bar-wrap"
18357
- };
18358
- const _hoisted_5$b = { class: "bar-txt" };
18359
- const _hoisted_6$7 = { class: "factor" };
18360
- const _hoisted_7$4 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "red-bar" }, null, -1));
18361
- const _hoisted_8$2 = { class: "bar-lines" };
18362
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
18363
- __name: "BarChart",
18364
- props: {
18365
- title: {},
18366
- showMarks: { type: Boolean },
18367
- flood: {},
18368
- modelValue: {}
18369
- },
18370
- setup(__props) {
18371
- useCssVars((_ctx) => ({
18372
- "b74eb91e": floodPercent.value
18373
- }));
18374
- const props2 = __props;
18375
- const loaded = ref(false);
18376
- onMounted(() => {
18377
- setTimeout(() => {
18378
- loaded.value = true;
18379
- }, 400);
18380
- });
18381
- const dataArray = computed(
18382
- () => props2.modelValue
18383
- // const allData = []
18384
- // for (const item of props.modelValue) {
18385
- // if (item.group) {
18386
- // let groupIndex = allData.findIndex(d => d.group === item.group)
18387
- // if (groupIndex > -1) allData[groupIndex].data?.push(item);
18388
- // else allData.push({ group: item.group, data: [item] })
18389
- // } else {
18390
- // allData.push(item)
18391
- // }
18392
- // }
18393
- // return allData;
18394
- );
18395
- const maxValue = computed(
18396
- () => Math.ceil(
18397
- Math.max(
18398
- ...dataArray.value.map((d2) => d2.value),
18399
- ...dataArray.value.map((d2) => (d2 == null ? void 0 : d2.compareValue) || 0)
18400
- )
18401
- )
18402
- );
18403
- const marks2 = computed(() => {
18404
- const marksArray = [];
18405
- for (let i2 = 0; i2 <= 5; i2 += 1) {
18406
- const step = i2 * maxValue.value / 5;
18407
- marksArray.push(Math.round(step / 10) * 10);
18408
- }
18409
- return marksArray;
18410
- });
18411
- const percent = (val) => val / maxValue.value * 100;
18412
- const floodPercent = computed(() => `${props2.flood}%`);
18413
- return (_ctx, _cache) => {
18414
- return openBlock(), createElementBlock("div", _hoisted_1$s, [
18415
- (openBlock(true), createElementBlock(Fragment$1, null, renderList(dataArray.value, (item, i2) => {
18416
- return openBlock(), createElementBlock("div", {
18417
- class: "graph-wrap",
18418
- key: i2
18419
- }, [
18420
- item.group ? (openBlock(), createElementBlock("div", _hoisted_2$n, [
18421
- createElementVNode("p", _hoisted_3$i, toDisplayString(item.group), 1),
18422
- (openBlock(true), createElementBlock(Fragment$1, null, renderList((item == null ? void 0 : item.data) || [], (nested, i22) => {
18423
- return openBlock(), createElementBlock("div", {
18424
- key: i22,
18425
- class: "bar-wrap"
18426
- }, [
18427
- createElementVNode("div", {
18428
- class: "bar",
18429
- style: normalizeStyle({ height: loaded.value ? `${percent(nested.value)}%` : "0" })
18430
- }, null, 4),
18431
- nested.compareValue ? (openBlock(), createElementBlock("div", {
18432
- key: 0,
18433
- class: "bar compare",
18434
- style: normalizeStyle({
18435
- height: loaded.value ? `${percent(nested.compareValue)}%` : "0"
18436
- })
18437
- }, null, 4)) : createCommentVNode("", true)
18438
- ]);
18439
- }), 128))
18440
- ])) : (openBlock(), createElementBlock("div", _hoisted_4$d, [
18441
- createElementVNode("div", {
18442
- class: "bar",
18443
- style: normalizeStyle({ height: loaded.value ? `${percent(item.value)}%` : "0" })
18444
- }, null, 4),
18445
- (item == null ? void 0 : item.compareValue) ? (openBlock(), createElementBlock("div", {
18446
- key: 0,
18447
- class: "bar compare",
18448
- style: normalizeStyle({ height: loaded.value ? `${percent(item.compareValue)}%` : "0" })
18449
- }, null, 4)) : createCommentVNode("", true),
18450
- createElementVNode("p", _hoisted_5$b, toDisplayString(item.title), 1)
18451
- ]))
18452
- ]);
18453
- }), 128)),
18454
- createElementVNode("p", _hoisted_6$7, toDisplayString(_ctx.title), 1),
18455
- _hoisted_7$4,
18456
- createElementVNode("div", _hoisted_8$2, [
18457
- (openBlock(true), createElementBlock(Fragment$1, null, renderList(marks2.value, (mark) => {
18458
- return openBlock(), createElementBlock("p", { key: mark }, toDisplayString(mark.toLocaleString()), 1);
18459
- }), 128))
18460
- ])
18461
- ]);
18462
- };
18463
- }
18464
- });
18465
- const BarChart = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-fe5af582"]]);
18350
+ const ComboBox = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-ceeb5855"]]);
18466
18351
  const _hoisted_1$r = {
18467
18352
  key: 1,
18468
18353
  type: "submit",
@@ -18543,7 +18428,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
18543
18428
  ref: form,
18544
18429
  onSubmit: withModifiers(runSubmit, ["prevent"])
18545
18430
  }, [
18546
- _ctx.label ? (openBlock(), createBlock(unref(_sfc_main$l), {
18431
+ _ctx.label ? (openBlock(), createBlock(unref(_sfc_main$k), {
18547
18432
  key: 0,
18548
18433
  tag: "h4",
18549
18434
  label: _ctx.label
@@ -18654,7 +18539,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
18654
18539
  });
18655
18540
  const _withScopeId$1 = (n2) => (pushScopeId("data-v-e8219826"), n2 = n2(), popScopeId(), n2);
18656
18541
  const _hoisted_1$q = ["title"];
18657
- const _hoisted_2$m = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("svg", {
18542
+ const _hoisted_2$l = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("svg", {
18658
18543
  xmlns: "http://www.w3.org/2000/svg",
18659
18544
  height: "24",
18660
18545
  viewBox: "0 -960 960 960",
@@ -18663,7 +18548,7 @@ const _hoisted_2$m = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ create
18663
18548
  /* @__PURE__ */ createElementVNode("path", { d: "M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z" })
18664
18549
  ], -1));
18665
18550
  const _hoisted_3$h = [
18666
- _hoisted_2$m
18551
+ _hoisted_2$l
18667
18552
  ];
18668
18553
  const _hoisted_4$c = ["required", "id"];
18669
18554
  const _sfc_main$f = /* @__PURE__ */ defineComponent({
@@ -27317,7 +27202,7 @@ Object.entries(Mo).forEach(([e, t]) => {
27317
27202
  e !== "default" && (Va[e] = t);
27318
27203
  });
27319
27204
  const _hoisted_1$p = ["title"];
27320
- const _hoisted_2$l = { key: 0 };
27205
+ const _hoisted_2$k = { key: 0 };
27321
27206
  const _sfc_main$e = /* @__PURE__ */ defineComponent({
27322
27207
  __name: "DateInput",
27323
27208
  props: {
@@ -27355,7 +27240,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
27355
27240
  class: normalizeClass(["bagel-input", { small: _ctx.small }]),
27356
27241
  title: _ctx.label
27357
27242
  }, [
27358
- _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$l, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
27243
+ _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$k, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
27359
27244
  createVNode(unref(Va), mergeProps({
27360
27245
  ref_key: "datePicker",
27361
27246
  ref: datePicker,
@@ -27369,7 +27254,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
27369
27254
  }
27370
27255
  });
27371
27256
  const _hoisted_1$o = ["title"];
27372
- const _hoisted_2$k = { key: 0 };
27257
+ const _hoisted_2$j = { key: 0 };
27373
27258
  const _hoisted_3$g = ["value", "placeholder"];
27374
27259
  const _sfc_main$d = /* @__PURE__ */ defineComponent({
27375
27260
  __name: "JSONInput",
@@ -27394,7 +27279,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
27394
27279
  class: normalizeClass(["bagel-input", { small: _ctx.small }]),
27395
27280
  title: _ctx.description
27396
27281
  }, [
27397
- _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$k, [
27282
+ _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$j, [
27398
27283
  createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
27399
27284
  ])) : createCommentVNode("", true),
27400
27285
  createElementVNode("textarea", {
@@ -28399,7 +28284,7 @@ const _hoisted_1$n = {
28399
28284
  ref: "tags",
28400
28285
  class: "multiselect__tags"
28401
28286
  };
28402
- const _hoisted_2$j = { class: "multiselect__tags-wrap" };
28287
+ const _hoisted_2$i = { class: "multiselect__tags-wrap" };
28403
28288
  const _hoisted_3$f = { class: "multiselect__spinner" };
28404
28289
  const _hoisted_4$b = { key: 0 };
28405
28290
  const _hoisted_5$a = { class: "multiselect__option" };
@@ -28447,7 +28332,7 @@ function render$e(_ctx, _cache, $props, $setup, $data, $options) {
28447
28332
  }, () => [
28448
28333
  withDirectives(createVNode(
28449
28334
  "div",
28450
- _hoisted_2$j,
28335
+ _hoisted_2$i,
28451
28336
  [
28452
28337
  (openBlock(true), createBlock(
28453
28338
  Fragment$1,
@@ -28713,8 +28598,7 @@ function render$e(_ctx, _cache, $props, $setup, $data, $options) {
28713
28598
  }
28714
28599
  script$e.render = render$e;
28715
28600
  const Multiselect = script$e;
28716
- const _hoisted_1$m = { class: "pb-1" };
28717
- const _hoisted_2$i = ["for"];
28601
+ const _hoisted_1$m = ["for"];
28718
28602
  const _sfc_main$c = /* @__PURE__ */ defineComponent({
28719
28603
  __name: "SelectInput",
28720
28604
  props: {
@@ -28754,7 +28638,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
28754
28638
  }
28755
28639
  watch(() => props2.options, updateOptionList, { immediate: true });
28756
28640
  return (_ctx, _cache) => {
28757
- return openBlock(), createElementBlock("div", _hoisted_1$m, [
28641
+ return openBlock(), createElementBlock("div", null, [
28758
28642
  createElementVNode("label", {
28759
28643
  class: "txt-start",
28760
28644
  for: _ctx.id
@@ -28773,7 +28657,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
28773
28657
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => seletValue.value = $event),
28774
28658
  "close-on-select": true
28775
28659
  }, _ctx.extraProps), null, 16, ["id", "options", "required", "placeholder", "modelValue"])
28776
- ], 8, _hoisted_2$i)
28660
+ ], 8, _hoisted_1$m)
28777
28661
  ]);
28778
28662
  };
28779
28663
  }
@@ -31443,7 +31327,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
31443
31327
  key: row.id
31444
31328
  }, [
31445
31329
  createElementVNode("div", _hoisted_5$9, [
31446
- createVNode(unref(_sfc_main$C), { icon: "more_vert" })
31330
+ createVNode(unref(_sfc_main$B), { icon: "more_vert" })
31447
31331
  ]),
31448
31332
  (openBlock(true), createElementBlock(Fragment$1, null, renderList((_a3 = unref(entityMeta)) == null ? void 0 : _a3.fields, (field) => {
31449
31333
  return openBlock(), createElementBlock("div", {
@@ -31460,7 +31344,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
31460
31344
  ], 2);
31461
31345
  }), 128)),
31462
31346
  createElementVNode("div", _hoisted_6$5, [
31463
- createVNode(unref(_sfc_main$C), {
31347
+ createVNode(unref(_sfc_main$B), {
31464
31348
  icon: "delete",
31465
31349
  onClick: ($event) => removeRow(index2)
31466
31350
  }, null, 8, ["onClick"])
@@ -31622,12 +31506,12 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
31622
31506
  ]),
31623
31507
  _ctx.helptext ? (openBlock(), createElementBlock("p", _hoisted_5$8, toDisplayString(_ctx.helptext), 1)) : createCommentVNode("", true)
31624
31508
  ], 8, _hoisted_2$f),
31625
- _ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$C), {
31509
+ _ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$B), {
31626
31510
  key: 0,
31627
31511
  class: "iconStart",
31628
31512
  icon: _ctx.iconStart
31629
31513
  }, null, 8, ["icon"])) : createCommentVNode("", true),
31630
- _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$C), {
31514
+ _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$B), {
31631
31515
  key: 1,
31632
31516
  icon: _ctx.icon
31633
31517
  }, null, 8, ["icon"])) : createCommentVNode("", true),
@@ -31666,7 +31550,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
31666
31550
  [vModelCheckbox, val.value]
31667
31551
  ]),
31668
31552
  createElementVNode("span", null, [
31669
- createVNode(unref(_sfc_main$C), { icon: "check" })
31553
+ createVNode(unref(_sfc_main$B), { icon: "check" })
31670
31554
  ])
31671
31555
  ]);
31672
31556
  };
@@ -32031,7 +31915,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
32031
31915
  style: normalizeStyle([`--p:${fileQ.progress}`, { "--b": "2px" }])
32032
31916
  }, [
32033
31917
  fileQ.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_12, toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : createCommentVNode("", true),
32034
- createVNode(unref(_sfc_main$C), {
31918
+ createVNode(unref(_sfc_main$B), {
32035
31919
  class: "success",
32036
31920
  icon: "check"
32037
31921
  })
@@ -38546,7 +38430,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
38546
38430
  return (_ctx, _cache) => {
38547
38431
  var _a2, _b, _c, _d, _e2, _f;
38548
38432
  return openBlock(), createElementBlock("div", _hoisted_1, [
38549
- createVNode(unref(_sfc_main$s), null, {
38433
+ createVNode(unref(_sfc_main$r), null, {
38550
38434
  default: withCtx(() => [
38551
38435
  createTextVNode("Whatsapp Template")
38552
38436
  ]),
@@ -38667,16 +38551,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
38667
38551
  }
38668
38552
  });
38669
38553
  export {
38670
- _sfc_main$k as Accordion,
38554
+ _sfc_main$j as Accordion,
38671
38555
  AccordionItem,
38672
38556
  Avatar,
38673
38557
  _sfc_main$h as BagelForm,
38674
38558
  BagelVue,
38675
- BarChart,
38676
38559
  _sfc_main$g as BglField,
38677
38560
  _sfc_main$h as BglForm,
38678
38561
  Btn,
38679
- _sfc_main$n as Card,
38562
+ _sfc_main$m as Card,
38680
38563
  CheckInput,
38681
38564
  Checkbox,
38682
38565
  _sfc_main$7 as ColorPicker,
@@ -38686,20 +38569,20 @@ export {
38686
38569
  _sfc_main$e as DateInput,
38687
38570
  _sfc_main$6 as DatePicker,
38688
38571
  FileUpload,
38689
- _sfc_main$C as Icon,
38572
+ _sfc_main$B as Icon,
38690
38573
  JSONInput,
38691
- _sfc_main$E as LangText,
38574
+ _sfc_main$D as LangText,
38692
38575
  _sfc_main$2 as Lineart,
38693
- _sfc_main$v as ListItem,
38694
- _sfc_main$w as ListView,
38695
- _sfc_main$C as MaterialIcon,
38696
- _sfc_main$z as Modal,
38576
+ _sfc_main$u as ListItem,
38577
+ _sfc_main$v as ListView,
38578
+ _sfc_main$B as MaterialIcon,
38579
+ _sfc_main$y as Modal,
38697
38580
  ModalForm,
38698
38581
  ModalPlugin,
38699
38582
  MsgTemplate,
38700
38583
  NavBar,
38701
- _sfc_main$s as PageTitle,
38702
- _sfc_main$D as RTXEditor,
38584
+ _sfc_main$r as PageTitle,
38585
+ _sfc_main$C as RTXEditor,
38703
38586
  RadioPillsInput,
38704
38587
  RichTextEditor,
38705
38588
  RouterWrapper,
@@ -38709,7 +38592,7 @@ export {
38709
38592
  TableSchema,
38710
38593
  TextInput,
38711
38594
  _sfc_main as TextVariableExamples,
38712
- _sfc_main$l as Title,
38595
+ _sfc_main$k as Title,
38713
38596
  ToggleInput,
38714
38597
  TopBar,
38715
38598
  bagelInjectionKey,