@bagelink/vue 0.0.287 → 0.0.291

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
@@ -4875,10 +4875,10 @@ const ModalPlugin = {
4875
4875
  data: () => ({ modalStack: modalStack.value }),
4876
4876
  render() {
4877
4877
  return modalStack.value.map((modal, index2) => {
4878
- const props2 = { ...modal.modalOptions, "onUpdate:isModalVisible": () => hideModal(index2) };
4878
+ const props2 = { ...modal.modalOptions, visible: true, "onUpdate:visible": () => hideModal(index2) };
4879
4879
  if (modal.modalType === "modalForm")
4880
4880
  return h$2(ModalForm, props2, modal.componentSlots);
4881
- return h$2(_sfc_main$y, props2, modal.componentSlots);
4881
+ return h$2(_sfc_main$A, props2, modal.componentSlots);
4882
4882
  });
4883
4883
  }
4884
4884
  });
@@ -4957,7 +4957,7 @@ const iffer = (field, itemData) => {
4957
4957
  };
4958
4958
  const denullify = (itemData, fieldID) => fieldID && itemData ? itemData[fieldID] : null;
4959
4959
  const _hoisted_1$H = { ref: "el" };
4960
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
4960
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
4961
4961
  __name: "LangText",
4962
4962
  props: {
4963
4963
  input: {}
@@ -17079,7 +17079,7 @@ const marks = {
17079
17079
  };
17080
17080
  const schema = new Schema({ nodes, marks });
17081
17081
  const _hoisted_1$G = ["id"];
17082
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
17082
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
17083
17083
  __name: "RTXEditor",
17084
17084
  props: {
17085
17085
  elementId: { default: Math.random().toString(36).substr(2, 9) },
@@ -17160,17 +17160,18 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
17160
17160
  };
17161
17161
  }
17162
17162
  });
17163
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
17163
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
17164
17164
  __name: "MaterialIcon",
17165
17165
  props: {
17166
17166
  icon: {},
17167
- size: {}
17167
+ size: {},
17168
+ color: {}
17168
17169
  },
17169
17170
  setup(__props) {
17170
17171
  return (_ctx, _cache) => {
17171
17172
  return openBlock(), createElementBlock("div", {
17172
17173
  class: "bgl_icon-font",
17173
- style: normalizeStyle({ fontSize: `${_ctx.size}rem` })
17174
+ style: normalizeStyle({ fontSize: `${_ctx.size}rem`, color: _ctx.color })
17174
17175
  }, toDisplayString(_ctx.icon), 5);
17175
17176
  };
17176
17177
  }
@@ -17181,7 +17182,7 @@ const _hoisted_3$o = { class: "nav-links-wrapper" };
17181
17182
  const _hoisted_4$i = { class: "tooltip" };
17182
17183
  const _hoisted_5$f = { class: "bot-buttons-wrapper" };
17183
17184
  const _hoisted_6$a = { class: "tooltip" };
17184
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
17185
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
17185
17186
  __name: "NavBar",
17186
17187
  props: {
17187
17188
  footerLinks: { default: () => [] },
@@ -17205,7 +17206,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
17205
17206
  "aria-label": "Toggle Navigation",
17206
17207
  tabindex: "0"
17207
17208
  }, [
17208
- createVNode(unref(_sfc_main$B), {
17209
+ createVNode(unref(_sfc_main$D), {
17209
17210
  icon: "chevron_right",
17210
17211
  class: "top-arrow"
17211
17212
  })
@@ -17224,7 +17225,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
17224
17225
  }
17225
17226
  }, {
17226
17227
  default: withCtx(() => [
17227
- createVNode(unref(_sfc_main$B), {
17228
+ createVNode(unref(_sfc_main$D), {
17228
17229
  icon: link.materialIcon
17229
17230
  }, null, 8, ["icon"]),
17230
17231
  createElementVNode("div", _hoisted_4$i, toDisplayString(link.label), 1)
@@ -17246,7 +17247,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
17246
17247
  key: link.label
17247
17248
  }, {
17248
17249
  default: withCtx(() => [
17249
- createVNode(unref(_sfc_main$B), {
17250
+ createVNode(unref(_sfc_main$D), {
17250
17251
  icon: link.materialIcon
17251
17252
  }, null, 8, ["icon"]),
17252
17253
  createElementVNode("div", _hoisted_6$a, toDisplayString(link.label), 1)
@@ -17268,7 +17269,7 @@ const _export_sfc = (sfc, props2) => {
17268
17269
  }
17269
17270
  return target;
17270
17271
  };
17271
- const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-776ccc02"]]);
17272
+ const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-776ccc02"]]);
17272
17273
  const _hoisted_1$E = {
17273
17274
  key: 0,
17274
17275
  class: "loading"
@@ -17277,7 +17278,7 @@ const _hoisted_2$v = {
17277
17278
  key: 1,
17278
17279
  class: "bgl_btn-flex"
17279
17280
  };
17280
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
17281
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
17281
17282
  __name: "Btn",
17282
17283
  props: {
17283
17284
  disabled: { type: Boolean, default: false },
@@ -17364,7 +17365,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
17364
17365
  }, {
17365
17366
  default: withCtx(() => [
17366
17367
  _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$E)) : (openBlock(), createElementBlock("div", _hoisted_2$v, [
17367
- _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$B), {
17368
+ _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$D), {
17368
17369
  key: 0,
17369
17370
  icon: _ctx.icon
17370
17371
  }, null, 8, ["icon"])) : createCommentVNode("", true),
@@ -17372,7 +17373,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
17372
17373
  !unref(slots)["default"] && _ctx.value ? (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
17373
17374
  createTextVNode(toDisplayString(_ctx.value), 1)
17374
17375
  ], 64)) : createCommentVNode("", true),
17375
- props2["icon.end"] ? (openBlock(), createBlock(unref(_sfc_main$B), {
17376
+ props2["icon.end"] ? (openBlock(), createBlock(unref(_sfc_main$D), {
17376
17377
  key: 2,
17377
17378
  icon: props2["icon.end"]
17378
17379
  }, null, 8, ["icon"])) : createCommentVNode("", true)
@@ -17383,42 +17384,51 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
17383
17384
  };
17384
17385
  }
17385
17386
  });
17386
- const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-7a7625e7"]]);
17387
+ const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-7a7625e7"]]);
17387
17388
  const _hoisted_1$D = { class: "tool-bar" };
17388
17389
  const _hoisted_2$u = { class: "modal-footer mt-3" };
17389
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
17390
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
17390
17391
  __name: "Modal",
17391
17392
  props: {
17392
17393
  side: { type: Boolean },
17393
17394
  title: {},
17394
17395
  dismissable: { type: Boolean },
17395
- actions: {}
17396
+ actions: {},
17397
+ visible: { type: Boolean }
17396
17398
  },
17397
- emits: ["update:isModalVisible"],
17399
+ emits: ["update:visible"],
17398
17400
  setup(__props, { expose: __expose, emit: __emit }) {
17399
17401
  const props2 = __props;
17400
- let isActive = ref(false);
17402
+ let isVisible = ref(false);
17403
+ watch(() => props2.visible, (val) => {
17404
+ if (val === isVisible.value || val === void 0)
17405
+ return;
17406
+ if (val)
17407
+ openModal();
17408
+ else
17409
+ closeModal();
17410
+ }, { immediate: true });
17401
17411
  const emit2 = __emit;
17402
17412
  const closeModal = () => {
17403
- isActive.value = false;
17404
- setTimeout(() => emit2("update:isModalVisible", false), 200);
17413
+ isVisible.value = false;
17414
+ setTimeout(() => emit2("update:visible", false), 200);
17405
17415
  };
17406
17416
  __expose({ closeModal });
17407
17417
  const escapeKeyClose = (e) => (props2 == null ? void 0 : props2.dismissable) && useEscape(e, () => closeModal());
17408
- onMounted(() => {
17409
- setTimeout(() => isActive.value = true, 1);
17418
+ function openModal() {
17419
+ setTimeout(() => isVisible.value = true, 1);
17410
17420
  document.addEventListener("keydown", escapeKeyClose);
17411
- });
17421
+ }
17412
17422
  onUnmounted(() => {
17413
17423
  document.removeEventListener("keydown", escapeKeyClose);
17414
17424
  });
17415
17425
  return (_ctx, _cache) => {
17416
17426
  return openBlock(), createElementBlock("div", {
17417
- class: normalizeClass(["bg-dark", { "is-side": _ctx.side, "is-active": unref(isActive), "bg-lignt": false }]),
17427
+ class: normalizeClass(["bg-dark", { "is-side": _ctx.side, "is-active": unref(isVisible), "bg-lignt": false }]),
17418
17428
  onClick: _cache[1] || (_cache[1] = () => _ctx.dismissable ? closeModal() : ""),
17419
17429
  onKeydown: withKeys(closeModal, ["esc"])
17420
17430
  }, [
17421
- createVNode(unref(_sfc_main$m), {
17431
+ createVNode(unref(_sfc_main$o), {
17422
17432
  class: "modal",
17423
17433
  onClick: _cache[0] || (_cache[0] = withModifiers(() => {
17424
17434
  }, ["stop"]))
@@ -17432,7 +17442,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
17432
17442
  icon: "close",
17433
17443
  onClick: closeModal
17434
17444
  }, null, 8, ["style"]),
17435
- _ctx.title ? (openBlock(), createBlock(unref(_sfc_main$k), {
17445
+ _ctx.title ? (openBlock(), createBlock(unref(_sfc_main$m), {
17436
17446
  key: 0,
17437
17447
  class: "modal-title",
17438
17448
  tag: "h3",
@@ -17457,7 +17467,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
17457
17467
  };
17458
17468
  }
17459
17469
  });
17460
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
17470
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
17461
17471
  __name: "ModalForm",
17462
17472
  props: /* @__PURE__ */ mergeModels({
17463
17473
  side: { type: Boolean },
@@ -17514,7 +17524,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
17514
17524
  }
17515
17525
  __expose({ setFormValues });
17516
17526
  return (_ctx, _cache) => {
17517
- return openBlock(), createBlock(unref(_sfc_main$y), {
17527
+ return openBlock(), createBlock(unref(_sfc_main$A), {
17518
17528
  "onOnUpdate:isModalVisible": props2["onUpdate:isModalVisible"],
17519
17529
  side: _ctx.side,
17520
17530
  ref_key: "modal",
@@ -17565,12 +17575,12 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
17565
17575
  };
17566
17576
  }
17567
17577
  });
17568
- const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-dca6fe18"]]);
17578
+ const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-dca6fe18"]]);
17569
17579
  const _hoisted_1$C = { class: "accordion-item" };
17570
17580
  const _hoisted_2$t = ["aria-expanded", "aria-controls"];
17571
17581
  const _hoisted_3$n = { class: "accordion-label" };
17572
17582
  const _hoisted_4$h = ["id", "aria-hidden"];
17573
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
17583
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
17574
17584
  __name: "AccordionItem",
17575
17585
  props: {
17576
17586
  label: {},
@@ -17605,7 +17615,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
17605
17615
  createElementVNode("div", {
17606
17616
  class: normalizeClass(["accordion-icon", { open: unref(open) }])
17607
17617
  }, [
17608
- createVNode(unref(_sfc_main$B), { icon: "expand_more" })
17618
+ createVNode(unref(_sfc_main$D), { icon: "expand_more" })
17609
17619
  ], 2)
17610
17620
  ], 8, _hoisted_2$t),
17611
17621
  createVNode(Transition, { name: "expand" }, {
@@ -17625,7 +17635,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
17625
17635
  };
17626
17636
  }
17627
17637
  });
17628
- const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-bf74738b"]]);
17638
+ const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-bf74738b"]]);
17629
17639
  const _hoisted_1$B = { class: "card list-view grid thin" };
17630
17640
  const _hoisted_2$s = { class: "list-header flex gap-3 align-items-top" };
17631
17641
  const _hoisted_3$m = {
@@ -17634,7 +17644,7 @@ const _hoisted_3$m = {
17634
17644
  };
17635
17645
  const _hoisted_4$g = ["placeholder"];
17636
17646
  const _hoisted_5$e = { class: "list-content grid auto-flow-rows align-items-start" };
17637
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
17647
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
17638
17648
  __name: "ListView",
17639
17649
  props: {
17640
17650
  enableAdd: { type: Boolean },
@@ -17660,7 +17670,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
17660
17670
  }, null, 40, _hoisted_4$g), [
17661
17671
  [vModelText, searchTerm.value]
17662
17672
  ]),
17663
- createVNode(unref(_sfc_main$B), {
17673
+ createVNode(unref(_sfc_main$D), {
17664
17674
  class: "txtgray",
17665
17675
  icon: "search"
17666
17676
  })
@@ -17680,7 +17690,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
17680
17690
  });
17681
17691
  const _hoisted_1$A = { class: "txt16 no-margin ellipsis" };
17682
17692
  const _hoisted_2$r = { class: "txt14 no-margin txtgray ellipsis" };
17683
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
17693
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
17684
17694
  __name: "ListItem",
17685
17695
  props: {
17686
17696
  src: {},
@@ -17722,7 +17732,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
17722
17732
  const _hoisted_1$z = { class: "card tabs-top" };
17723
17733
  const _hoisted_2$q = { class: "tabs grid auto-flow-columns fit-content" };
17724
17734
  const _hoisted_3$l = ["onClick"];
17725
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
17735
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
17726
17736
  __name: "TabbedLayout",
17727
17737
  props: {
17728
17738
  title: {},
@@ -17784,7 +17794,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
17784
17794
  };
17785
17795
  }
17786
17796
  });
17787
- const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-09fce741"]]);
17797
+ const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-09fce741"]]);
17788
17798
  const _hoisted_1$y = { class: "comments-wrap" };
17789
17799
  const _hoisted_2$p = { class: "comment-list" };
17790
17800
  const _hoisted_3$k = { class: "comment-top" };
@@ -17793,7 +17803,7 @@ const _hoisted_5$d = { class: "comment-time" };
17793
17803
  const _hoisted_6$9 = { class: "comment-actions" };
17794
17804
  const _hoisted_7$5 = ["innerHTML"];
17795
17805
  const _hoisted_8$2 = { class: "new-comment" };
17796
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
17806
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
17797
17807
  __name: "Comments",
17798
17808
  props: {
17799
17809
  ref_table: {},
@@ -17851,19 +17861,19 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
17851
17861
  createElementVNode("div", _hoisted_4$f, toDisplayString(comment.sender.first_name) + " " + toDisplayString(comment.sender.last_name), 1),
17852
17862
  createElementVNode("div", _hoisted_5$d, toDisplayString(comment.updated_at.split("T")[0]), 1),
17853
17863
  createElementVNode("div", _hoisted_6$9, [
17854
- createVNode(unref(_sfc_main$B), {
17864
+ createVNode(unref(_sfc_main$D), {
17855
17865
  size: 1,
17856
17866
  class: "edit",
17857
17867
  icon: "edit",
17858
17868
  onClick: ($event) => isRef(editComment) ? editComment.value = comment : editComment = comment
17859
17869
  }, null, 8, ["onClick"]),
17860
- createVNode(unref(_sfc_main$B), {
17870
+ createVNode(unref(_sfc_main$D), {
17861
17871
  size: 1.2,
17862
17872
  class: "delete",
17863
17873
  icon: "delete",
17864
17874
  onClick: ($event) => deleteComment(comment.id)
17865
17875
  }, null, 8, ["onClick"]),
17866
- createVNode(unref(_sfc_main$B), {
17876
+ createVNode(unref(_sfc_main$D), {
17867
17877
  size: 1.2,
17868
17878
  class: "save",
17869
17879
  icon: "save",
@@ -17871,7 +17881,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
17871
17881
  })
17872
17882
  ])
17873
17883
  ]),
17874
- unref(editComment) !== null && ((_c = unref(editComment)) == null ? void 0 : _c.id) === comment.id ? (openBlock(), createBlock(unref(_sfc_main$C), {
17884
+ unref(editComment) !== null && ((_c = unref(editComment)) == null ? void 0 : _c.id) === comment.id ? (openBlock(), createBlock(unref(_sfc_main$E), {
17875
17885
  key: 0,
17876
17886
  modelValue: unref(editComment).body_html,
17877
17887
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(editComment).body_html = $event),
@@ -17885,7 +17895,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
17885
17895
  }), 128))
17886
17896
  ]),
17887
17897
  createElementVNode("div", _hoisted_8$2, [
17888
- createVNode(unref(_sfc_main$C), {
17898
+ createVNode(unref(_sfc_main$E), {
17889
17899
  class: "comment-input",
17890
17900
  modelValue: unref(bodyHtml),
17891
17901
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(bodyHtml) ? bodyHtml.value = $event : bodyHtml = $event),
@@ -17905,10 +17915,10 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
17905
17915
  };
17906
17916
  }
17907
17917
  });
17908
- const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-c4b41dc0"]]);
17918
+ const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-c4b41dc0"]]);
17909
17919
  const _hoisted_1$x = { class: "page-top" };
17910
17920
  const _hoisted_2$o = { class: "top-title" };
17911
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
17921
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
17912
17922
  __name: "PageTitle",
17913
17923
  props: {
17914
17924
  value: {
@@ -17934,7 +17944,7 @@ const _hoisted_4$e = ["onClick"];
17934
17944
  const _hoisted_5$c = { class: "flex" };
17935
17945
  const _hoisted_6$8 = ["onClick"];
17936
17946
  const _hoisted_7$4 = { key: 1 };
17937
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
17947
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
17938
17948
  __name: "TableSchema",
17939
17949
  props: {
17940
17950
  data: {},
@@ -17982,7 +17992,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
17982
17992
  createElementVNode("div", {
17983
17993
  class: normalizeClass(["list-arrows", { sorted: unref(sortField) === field.id }])
17984
17994
  }, [
17985
- createVNode(unref(_sfc_main$B), {
17995
+ createVNode(unref(_sfc_main$D), {
17986
17996
  class: normalizeClass({ desc: unref(sortDirection) === "DESC" }),
17987
17997
  icon: "keyboard_arrow_up"
17988
17998
  }, null, 8, ["class"])
@@ -18026,16 +18036,16 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
18026
18036
  };
18027
18037
  }
18028
18038
  });
18029
- const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-2137a7a8"]]);
18030
- const _sfc_main$p = {};
18039
+ const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-2137a7a8"]]);
18040
+ const _sfc_main$r = {};
18031
18041
  const _hoisted_1$v = { class: "flex space-between" };
18032
18042
  function _sfc_render$1(_ctx, _cache) {
18033
18043
  return openBlock(), createElementBlock("div", _hoisted_1$v, [
18034
18044
  renderSlot(_ctx.$slots, "default")
18035
18045
  ]);
18036
18046
  }
18037
- const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$1]]);
18038
- const _sfc_main$o = {};
18047
+ const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$1]]);
18048
+ const _sfc_main$q = {};
18039
18049
  function _sfc_render(_ctx, _cache) {
18040
18050
  const _component_router_view = resolveComponent("router-view");
18041
18051
  return openBlock(), createBlock(_component_router_view, null, {
@@ -18057,7 +18067,7 @@ function _sfc_render(_ctx, _cache) {
18057
18067
  _: 1
18058
18068
  });
18059
18069
  }
18060
- const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render]]);
18070
+ const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render]]);
18061
18071
  const _hoisted_1$u = {
18062
18072
  key: 0,
18063
18073
  class: "data"
@@ -18070,7 +18080,7 @@ const _hoisted_3$i = { class: "key" };
18070
18080
  const _hoisted_4$d = { key: 1 };
18071
18081
  const _hoisted_5$b = { class: "key" };
18072
18082
  const _hoisted_6$7 = { class: "vlue" };
18073
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
18083
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
18074
18084
  __name: "DataPreview",
18075
18085
  props: /* @__PURE__ */ mergeModels({
18076
18086
  schema: {},
@@ -18085,7 +18095,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
18085
18095
  return (_ctx, _cache) => {
18086
18096
  var _a2;
18087
18097
  return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$u, [
18088
- _ctx.title ? (openBlock(), createBlock(unref(_sfc_main$k), {
18098
+ _ctx.title ? (openBlock(), createBlock(unref(_sfc_main$m), {
18089
18099
  key: 0,
18090
18100
  label: _ctx.title
18091
18101
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -18119,8 +18129,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
18119
18129
  };
18120
18130
  }
18121
18131
  });
18122
- const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-bb2526f9"]]);
18123
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
18132
+ const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-bb2526f9"]]);
18133
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
18124
18134
  __name: "Card",
18125
18135
  props: {
18126
18136
  thin: { type: Boolean },
@@ -18139,7 +18149,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18139
18149
  }
18140
18150
  });
18141
18151
  const _hoisted_1$t = ["src", "alt"];
18142
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
18152
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
18143
18153
  __name: "Avatar",
18144
18154
  props: {
18145
18155
  fallback: {},
@@ -18165,8 +18175,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
18165
18175
  };
18166
18176
  }
18167
18177
  });
18168
- const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-b46163a3"]]);
18169
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
18178
+ const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-b46163a3"]]);
18179
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18170
18180
  __name: "Title",
18171
18181
  props: {
18172
18182
  value: {
@@ -18194,7 +18204,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
18194
18204
  };
18195
18205
  }
18196
18206
  });
18197
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
18207
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
18198
18208
  __name: "Accordion",
18199
18209
  setup(__props) {
18200
18210
  const state = reactive({
@@ -18209,7 +18219,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
18209
18219
  }
18210
18220
  });
18211
18221
  const _hoisted_1$s = ["onClick"];
18212
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
18222
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
18213
18223
  __name: "ComboBox",
18214
18224
  props: {
18215
18225
  options: {},
@@ -18289,7 +18299,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
18289
18299
  class: "bagel-input combobox"
18290
18300
  }, {
18291
18301
  popper: withCtx(({ hide }) => [
18292
- createVNode(unref(_sfc_main$m), {
18302
+ createVNode(unref(_sfc_main$o), {
18293
18303
  thin: "",
18294
18304
  class: "combobox-options"
18295
18305
  }, {
@@ -18314,7 +18324,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
18314
18324
  }
18315
18325
  }, [
18316
18326
  createElementVNode("span", null, toDisplayString(label(option2)), 1),
18317
- isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$B), {
18327
+ isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$D), {
18318
18328
  key: 0,
18319
18329
  icon: "check"
18320
18330
  })) : createCommentVNode("", true)
@@ -18331,7 +18341,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
18331
18341
  onClick: toggle
18332
18342
  }, [
18333
18343
  createTextVNode(toDisplayString(valueToLabel(unref(selectedItem)) || _ctx.placeholder || "Select") + " ", 1),
18334
- createVNode(unref(_sfc_main$B), normalizeProps(guardReactiveProps({ "icon": unref(open) ? "unfold_less" : "unfold_more" })), null, 16)
18344
+ createVNode(unref(_sfc_main$D), normalizeProps(guardReactiveProps({ "icon": unref(open) ? "unfold_less" : "unfold_more" })), null, 16)
18335
18345
  ]),
18336
18346
  _ctx.required ? withDirectives((openBlock(), createElementBlock("input", {
18337
18347
  key: 0,
@@ -18347,7 +18357,66 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
18347
18357
  };
18348
18358
  }
18349
18359
  });
18350
- const ComboBox = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-ceeb5855"]]);
18360
+ const ComboBox = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-ceeb5855"]]);
18361
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
18362
+ __name: "Alert",
18363
+ props: {
18364
+ message: {},
18365
+ type: { default: "info" }
18366
+ },
18367
+ setup(__props) {
18368
+ const color2 = {
18369
+ info: "#739DEF",
18370
+ warning: "#efdb73",
18371
+ error: "#DC3545"
18372
+ };
18373
+ return (_ctx, _cache) => {
18374
+ return openBlock(), createElementBlock("div", {
18375
+ class: normalizeClass(["alert", [_ctx.type]])
18376
+ }, [
18377
+ createVNode(unref(_sfc_main$D), {
18378
+ class: "alert_icon",
18379
+ icon: _ctx.type,
18380
+ size: 2,
18381
+ color: color2[_ctx.type]
18382
+ }, null, 8, ["icon", "color"]),
18383
+ createTextVNode(" " + toDisplayString(_ctx.message), 1)
18384
+ ], 2);
18385
+ };
18386
+ }
18387
+ });
18388
+ const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-dfb0f29d"]]);
18389
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
18390
+ __name: "Badge",
18391
+ props: {
18392
+ color: {},
18393
+ size: {},
18394
+ text: {},
18395
+ icon: {},
18396
+ "icon.end": {}
18397
+ },
18398
+ setup(__props) {
18399
+ const props2 = __props;
18400
+ return (_ctx, _cache) => {
18401
+ return openBlock(), createElementBlock("div", {
18402
+ class: normalizeClass(["pill", [_ctx.color]])
18403
+ }, [
18404
+ _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$D), {
18405
+ key: 0,
18406
+ class: "inline",
18407
+ icon: _ctx.icon
18408
+ }, null, 8, ["icon"])) : createCommentVNode("", true),
18409
+ createTextVNode(" " + toDisplayString(_ctx.text) + " ", 1),
18410
+ props2["icon.end"] ? (openBlock(), createBlock(unref(_sfc_main$D), {
18411
+ key: 1,
18412
+ class: "inline",
18413
+ icon: props2["icon.end"]
18414
+ }, null, 8, ["icon"])) : createCommentVNode("", true)
18415
+ ], 2);
18416
+ };
18417
+ }
18418
+ });
18419
+ const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-64e0d988"]]);
18351
18420
  const _hoisted_1$r = {
18352
18421
  key: 1,
18353
18422
  type: "submit",
@@ -18428,7 +18497,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
18428
18497
  ref: form,
18429
18498
  onSubmit: withModifiers(runSubmit, ["prevent"])
18430
18499
  }, [
18431
- _ctx.label ? (openBlock(), createBlock(unref(_sfc_main$k), {
18500
+ _ctx.label ? (openBlock(), createBlock(unref(_sfc_main$m), {
18432
18501
  key: 0,
18433
18502
  tag: "h4",
18434
18503
  label: _ctx.label
@@ -31327,7 +31396,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
31327
31396
  key: row.id
31328
31397
  }, [
31329
31398
  createElementVNode("div", _hoisted_5$9, [
31330
- createVNode(unref(_sfc_main$B), { icon: "more_vert" })
31399
+ createVNode(unref(_sfc_main$D), { icon: "more_vert" })
31331
31400
  ]),
31332
31401
  (openBlock(true), createElementBlock(Fragment$1, null, renderList((_a3 = unref(entityMeta)) == null ? void 0 : _a3.fields, (field) => {
31333
31402
  return openBlock(), createElementBlock("div", {
@@ -31344,7 +31413,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
31344
31413
  ], 2);
31345
31414
  }), 128)),
31346
31415
  createElementVNode("div", _hoisted_6$5, [
31347
- createVNode(unref(_sfc_main$B), {
31416
+ createVNode(unref(_sfc_main$D), {
31348
31417
  icon: "delete",
31349
31418
  onClick: ($event) => removeRow(index2)
31350
31419
  }, null, 8, ["onClick"])
@@ -31506,12 +31575,12 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
31506
31575
  ]),
31507
31576
  _ctx.helptext ? (openBlock(), createElementBlock("p", _hoisted_5$8, toDisplayString(_ctx.helptext), 1)) : createCommentVNode("", true)
31508
31577
  ], 8, _hoisted_2$f),
31509
- _ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$B), {
31578
+ _ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$D), {
31510
31579
  key: 0,
31511
31580
  class: "iconStart",
31512
31581
  icon: _ctx.iconStart
31513
31582
  }, null, 8, ["icon"])) : createCommentVNode("", true),
31514
- _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$B), {
31583
+ _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$D), {
31515
31584
  key: 1,
31516
31585
  icon: _ctx.icon
31517
31586
  }, null, 8, ["icon"])) : createCommentVNode("", true),
@@ -31550,7 +31619,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
31550
31619
  [vModelCheckbox, val.value]
31551
31620
  ]),
31552
31621
  createElementVNode("span", null, [
31553
- createVNode(unref(_sfc_main$B), { icon: "check" })
31622
+ createVNode(unref(_sfc_main$D), { icon: "check" })
31554
31623
  ])
31555
31624
  ]);
31556
31625
  };
@@ -31915,7 +31984,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
31915
31984
  style: normalizeStyle([`--p:${fileQ.progress}`, { "--b": "2px" }])
31916
31985
  }, [
31917
31986
  fileQ.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_12, toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : createCommentVNode("", true),
31918
- createVNode(unref(_sfc_main$B), {
31987
+ createVNode(unref(_sfc_main$D), {
31919
31988
  class: "success",
31920
31989
  icon: "check"
31921
31990
  })
@@ -38430,7 +38499,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
38430
38499
  return (_ctx, _cache) => {
38431
38500
  var _a2, _b, _c, _d, _e2, _f;
38432
38501
  return openBlock(), createElementBlock("div", _hoisted_1, [
38433
- createVNode(unref(_sfc_main$r), null, {
38502
+ createVNode(unref(_sfc_main$t), null, {
38434
38503
  default: withCtx(() => [
38435
38504
  createTextVNode("Whatsapp Template")
38436
38505
  ]),
@@ -38551,15 +38620,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
38551
38620
  }
38552
38621
  });
38553
38622
  export {
38554
- _sfc_main$j as Accordion,
38623
+ _sfc_main$l as Accordion,
38555
38624
  AccordionItem,
38625
+ Alert,
38556
38626
  Avatar,
38627
+ Badge,
38557
38628
  _sfc_main$h as BagelForm,
38558
38629
  BagelVue,
38559
38630
  _sfc_main$g as BglField,
38560
38631
  _sfc_main$h as BglForm,
38561
38632
  Btn,
38562
- _sfc_main$m as Card,
38633
+ _sfc_main$o as Card,
38563
38634
  CheckInput,
38564
38635
  Checkbox,
38565
38636
  _sfc_main$7 as ColorPicker,
@@ -38569,20 +38640,20 @@ export {
38569
38640
  _sfc_main$e as DateInput,
38570
38641
  _sfc_main$6 as DatePicker,
38571
38642
  FileUpload,
38572
- _sfc_main$B as Icon,
38643
+ _sfc_main$D as Icon,
38573
38644
  JSONInput,
38574
- _sfc_main$D as LangText,
38645
+ _sfc_main$F as LangText,
38575
38646
  _sfc_main$2 as Lineart,
38576
- _sfc_main$u as ListItem,
38577
- _sfc_main$v as ListView,
38578
- _sfc_main$B as MaterialIcon,
38579
- _sfc_main$y as Modal,
38647
+ _sfc_main$w as ListItem,
38648
+ _sfc_main$x as ListView,
38649
+ _sfc_main$D as MaterialIcon,
38650
+ _sfc_main$A as Modal,
38580
38651
  ModalForm,
38581
38652
  ModalPlugin,
38582
38653
  MsgTemplate,
38583
38654
  NavBar,
38584
- _sfc_main$r as PageTitle,
38585
- _sfc_main$C as RTXEditor,
38655
+ _sfc_main$t as PageTitle,
38656
+ _sfc_main$E as RTXEditor,
38586
38657
  RadioPillsInput,
38587
38658
  RichTextEditor,
38588
38659
  RouterWrapper,
@@ -38592,7 +38663,7 @@ export {
38592
38663
  TableSchema,
38593
38664
  TextInput,
38594
38665
  _sfc_main as TextVariableExamples,
38595
- _sfc_main$k as Title,
38666
+ _sfc_main$m as Title,
38596
38667
  ToggleInput,
38597
38668
  TopBar,
38598
38669
  bagelInjectionKey,