@bagelink/vue 0.0.284 → 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.
Files changed (37) hide show
  1. package/dist/components/Alert.vue.d.ts +30 -0
  2. package/dist/components/Alert.vue.d.ts.map +1 -0
  3. package/dist/components/Avatar.vue.d.ts.map +1 -1
  4. package/dist/components/Badge.vue.d.ts +20 -0
  5. package/dist/components/Badge.vue.d.ts.map +1 -0
  6. package/dist/components/Card.vue.d.ts +2 -2
  7. package/dist/components/MaterialIcon.vue.d.ts +2 -0
  8. package/dist/components/MaterialIcon.vue.d.ts.map +1 -1
  9. package/dist/components/Modal.vue.d.ts +4 -2
  10. package/dist/components/Modal.vue.d.ts.map +1 -1
  11. package/dist/components/index.d.ts +2 -1
  12. package/dist/components/index.d.ts.map +1 -1
  13. package/dist/index.cjs +254 -303
  14. package/dist/index.mjs +254 -303
  15. package/dist/plugins/modal.d.ts +2 -0
  16. package/dist/plugins/modal.d.ts.map +1 -1
  17. package/dist/style.css +52 -197
  18. package/dist/types/index.d.ts.map +1 -1
  19. package/dist/types/materialIcon.d.ts +2 -0
  20. package/dist/types/materialIcon.d.ts.map +1 -0
  21. package/dist/types/materialIcons.d.ts.map +1 -1
  22. package/package.json +1 -1
  23. package/src/components/Accordion.vue +4 -4
  24. package/src/components/AccordionItem.vue +41 -41
  25. package/src/components/Alert.vue +44 -0
  26. package/src/components/Avatar.vue +23 -24
  27. package/src/components/Badge.vue +28 -0
  28. package/src/components/BglVideo.vue +58 -0
  29. package/src/components/MaterialIcon.vue +6 -8
  30. package/src/components/Modal.vue +38 -53
  31. package/src/components/index.ts +2 -1
  32. package/src/components/layout/Column.vue +6 -0
  33. package/src/plugins/modal.ts +3 -1
  34. package/src/types/index.ts +8 -8
  35. package/src/types/materialIcons.ts +3006 -3006
  36. package/src/components/charts/BarChart.vue +0 -301
  37. package/src/components/charts/index.ts +0 -1
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$z, props2, modal.componentSlots);
4881
+ return h$2(_sfc_main$A, 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$F = /* @__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$E = /* @__PURE__ */ defineComponent({
17083
17083
  __name: "RTXEditor",
17084
17084
  props: {
17085
17085
  elementId: { default: Math.random().toString(36).substr(2, 9) },
@@ -17156,32 +17156,33 @@ 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$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
  }
17177
17178
  });
17178
- const _hoisted_1$G = { class: "full-nav" };
17179
- const _hoisted_2$x = { 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({
17179
+ const _hoisted_1$F = { class: "full-nav" };
17180
+ const _hoisted_2$w = { class: "nav-scroll" };
17181
+ const _hoisted_3$o = { class: "nav-links-wrapper" };
17182
+ const _hoisted_4$i = { class: "tooltip" };
17183
+ const _hoisted_5$f = { class: "bot-buttons-wrapper" };
17184
+ const _hoisted_6$a = { class: "tooltip" };
17185
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
17185
17186
  __name: "NavBar",
17186
17187
  props: {
17187
17188
  footerLinks: { default: () => [] },
@@ -17205,14 +17206,14 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
17205
17206
  "aria-label": "Toggle Navigation",
17206
17207
  tabindex: "0"
17207
17208
  }, [
17208
- createVNode(unref(_sfc_main$C), {
17209
+ createVNode(unref(_sfc_main$D), {
17209
17210
  icon: "chevron_right",
17210
17211
  class: "top-arrow"
17211
17212
  })
17212
17213
  ], 32),
17213
- createElementVNode("div", _hoisted_1$G, [
17214
- createElementVNode("div", _hoisted_2$x, [
17215
- createElementVNode("div", _hoisted_3$p, [
17214
+ createElementVNode("div", _hoisted_1$F, [
17215
+ createElementVNode("div", _hoisted_2$w, [
17216
+ createElementVNode("div", _hoisted_3$o, [
17216
17217
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.links, (link) => {
17217
17218
  return openBlock(), createBlock(resolveDynamicComponent(link.to ? "router-link" : "div"), {
17218
17219
  class: "nav-button",
@@ -17224,17 +17225,17 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
17224
17225
  }
17225
17226
  }, {
17226
17227
  default: withCtx(() => [
17227
- createVNode(unref(_sfc_main$C), {
17228
+ createVNode(unref(_sfc_main$D), {
17228
17229
  icon: link.materialIcon
17229
17230
  }, null, 8, ["icon"]),
17230
- createElementVNode("div", _hoisted_4$j, toDisplayString(link.label), 1)
17231
+ createElementVNode("div", _hoisted_4$i, toDisplayString(link.label), 1)
17231
17232
  ]),
17232
17233
  _: 2
17233
17234
  }, 1032, ["to", "onClick"]);
17234
17235
  }), 128))
17235
17236
  ])
17236
17237
  ]),
17237
- createElementVNode("div", _hoisted_5$g, [
17238
+ createElementVNode("div", _hoisted_5$f, [
17238
17239
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.footerLinks, (link) => {
17239
17240
  return openBlock(), createBlock(resolveDynamicComponent(link.to ? "router-link" : "div"), {
17240
17241
  class: "nav-button",
@@ -17246,10 +17247,10 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
17246
17247
  key: link.label
17247
17248
  }, {
17248
17249
  default: withCtx(() => [
17249
- createVNode(unref(_sfc_main$C), {
17250
+ createVNode(unref(_sfc_main$D), {
17250
17251
  icon: link.materialIcon
17251
17252
  }, null, 8, ["icon"]),
17252
- createElementVNode("div", _hoisted_6$b, toDisplayString(link.label), 1)
17253
+ createElementVNode("div", _hoisted_6$a, toDisplayString(link.label), 1)
17253
17254
  ]),
17254
17255
  _: 2
17255
17256
  }, 1032, ["to", "onClick"]);
@@ -17268,16 +17269,16 @@ const _export_sfc = (sfc, props2) => {
17268
17269
  }
17269
17270
  return target;
17270
17271
  };
17271
- const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-776ccc02"]]);
17272
- const _hoisted_1$F = {
17272
+ const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-776ccc02"]]);
17273
+ const _hoisted_1$E = {
17273
17274
  key: 0,
17274
17275
  class: "loading"
17275
17276
  };
17276
- const _hoisted_2$w = {
17277
+ const _hoisted_2$v = {
17277
17278
  key: 1,
17278
17279
  class: "bgl_btn-flex"
17279
17280
  };
17280
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
17281
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
17281
17282
  __name: "Btn",
17282
17283
  props: {
17283
17284
  disabled: { type: Boolean, default: false },
@@ -17363,8 +17364,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
17363
17364
  })
17364
17365
  }, {
17365
17366
  default: withCtx(() => [
17366
- _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$F)) : (openBlock(), createElementBlock("div", _hoisted_2$w, [
17367
- _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$C), {
17367
+ _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$E)) : (openBlock(), createElementBlock("div", _hoisted_2$v, [
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$A = /* @__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$C), {
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,48 +17384,57 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
17383
17384
  };
17384
17385
  }
17385
17386
  });
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$v = { class: "modal-footer mt-3" };
17389
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
17387
+ const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-7a7625e7"]]);
17388
+ const _hoisted_1$D = { class: "tool-bar" };
17389
+ const _hoisted_2$u = { class: "modal-footer mt-3" };
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$n), {
17431
+ createVNode(unref(_sfc_main$o), {
17422
17432
  class: "modal",
17423
17433
  onClick: _cache[0] || (_cache[0] = withModifiers(() => {
17424
17434
  }, ["stop"]))
17425
17435
  }, {
17426
17436
  default: withCtx(() => [
17427
- createElementVNode("header", _hoisted_1$E, [
17437
+ createElementVNode("header", _hoisted_1$D, [
17428
17438
  renderSlot(_ctx.$slots, "toolbar"),
17429
17439
  createVNode(unref(Btn), {
17430
17440
  style: normalizeStyle({ float: _ctx.side ? "left" : "right" }),
@@ -17432,7 +17442,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
17432
17442
  icon: "close",
17433
17443
  onClick: closeModal
17434
17444
  }, null, 8, ["style"]),
17435
- _ctx.title ? (openBlock(), createBlock(unref(_sfc_main$l), {
17445
+ _ctx.title ? (openBlock(), createBlock(unref(_sfc_main$m), {
17436
17446
  key: 0,
17437
17447
  class: "modal-title",
17438
17448
  tag: "h3",
@@ -17440,7 +17450,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
17440
17450
  }, null, 8, ["label"])) : createCommentVNode("", true)
17441
17451
  ]),
17442
17452
  renderSlot(_ctx.$slots, "default"),
17443
- createElementVNode("footer", _hoisted_2$v, [
17453
+ createElementVNode("footer", _hoisted_2$u, [
17444
17454
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.actions, (action, i2) => {
17445
17455
  return openBlock(), createBlock(unref(Btn), mergeProps({
17446
17456
  key: i2,
@@ -17457,7 +17467,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
17457
17467
  };
17458
17468
  }
17459
17469
  });
17460
- const _sfc_main$y = /* @__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$y = /* @__PURE__ */ defineComponent({
17514
17524
  }
17515
17525
  __expose({ setFormValues });
17516
17526
  return (_ctx, _cache) => {
17517
- return openBlock(), createBlock(unref(_sfc_main$z), {
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$y = /* @__PURE__ */ defineComponent({
17565
17575
  };
17566
17576
  }
17567
17577
  });
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$u = ["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({
17578
+ const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-dca6fe18"]]);
17579
+ const _hoisted_1$C = { class: "accordion-item" };
17580
+ const _hoisted_2$t = ["aria-expanded", "aria-controls"];
17581
+ const _hoisted_3$n = { class: "accordion-label" };
17582
+ const _hoisted_4$h = ["id", "aria-hidden"];
17583
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
17574
17584
  __name: "AccordionItem",
17575
17585
  props: {
17576
17586
  label: {},
@@ -17581,33 +17591,33 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
17581
17591
  let open = ref(false);
17582
17592
  const accordionState = inject("accordionState");
17583
17593
  const id = props2.id || Math.random().toString(36).substring(7);
17584
- watch(() => accordionState.openItem, (currentOpenId) => {
17594
+ watch(() => accordionState == null ? void 0 : accordionState.openItem, (currentOpenId) => {
17585
17595
  if (currentOpenId !== id) {
17586
17596
  open.value = false;
17587
17597
  }
17588
17598
  }, { immediate: true });
17589
17599
  function toggle() {
17590
17600
  open.value = !open.value;
17591
- if (open.value)
17601
+ if (open.value && (accordionState == null ? void 0 : accordionState.openItem))
17592
17602
  accordionState.openItem = id;
17593
- else if (accordionState.openItem === id)
17603
+ else if ((accordionState == null ? void 0 : accordionState.openItem) === id)
17594
17604
  accordionState.openItem = null;
17595
17605
  }
17596
17606
  return (_ctx, _cache) => {
17597
- return openBlock(), createElementBlock("div", _hoisted_1$D, [
17607
+ return openBlock(), createElementBlock("div", _hoisted_1$C, [
17598
17608
  createElementVNode("button", {
17599
17609
  onClick: _cache[0] || (_cache[0] = ($event) => toggle()),
17600
17610
  "aria-expanded": unref(open) ? "true" : "false",
17601
17611
  class: "accordion-head",
17602
17612
  "aria-controls": `accordion-body-${unref(id)}`
17603
17613
  }, [
17604
- createElementVNode("span", _hoisted_3$o, toDisplayString(_ctx.label), 1),
17614
+ createElementVNode("span", _hoisted_3$n, toDisplayString(_ctx.label), 1),
17605
17615
  createElementVNode("div", {
17606
17616
  class: normalizeClass(["accordion-icon", { open: unref(open) }])
17607
17617
  }, [
17608
- createVNode(unref(_sfc_main$C), { icon: "expand_more" })
17618
+ createVNode(unref(_sfc_main$D), { icon: "expand_more" })
17609
17619
  ], 2)
17610
- ], 8, _hoisted_2$u),
17620
+ ], 8, _hoisted_2$t),
17611
17621
  createVNode(Transition, { name: "expand" }, {
17612
17622
  default: withCtx(() => [
17613
17623
  unref(open) ? (openBlock(), createElementBlock("div", {
@@ -17617,7 +17627,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
17617
17627
  "aria-hidden": unref(open) ? "false" : "true"
17618
17628
  }, [
17619
17629
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
17620
- ], 8, _hoisted_4$i)) : createCommentVNode("", true)
17630
+ ], 8, _hoisted_4$h)) : createCommentVNode("", true)
17621
17631
  ]),
17622
17632
  _: 3
17623
17633
  })
@@ -17625,16 +17635,16 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
17625
17635
  };
17626
17636
  }
17627
17637
  });
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$t = { class: "list-header flex gap-3 align-items-top" };
17631
- const _hoisted_3$n = {
17638
+ const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-bf74738b"]]);
17639
+ const _hoisted_1$B = { class: "card list-view grid thin" };
17640
+ const _hoisted_2$s = { class: "list-header flex gap-3 align-items-top" };
17641
+ const _hoisted_3$m = {
17632
17642
  key: 0,
17633
17643
  class: "bagel-input search-wrap"
17634
17644
  };
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({
17645
+ const _hoisted_4$g = ["placeholder"];
17646
+ const _hoisted_5$e = { class: "list-content grid auto-flow-rows align-items-start" };
17647
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
17638
17648
  __name: "ListView",
17639
17649
  props: {
17640
17650
  enableAdd: { type: Boolean },
@@ -17650,17 +17660,17 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
17650
17660
  debounce(() => emit2("debounce", searchTerm.value));
17651
17661
  };
17652
17662
  return (_ctx, _cache) => {
17653
- return openBlock(), createElementBlock("div", _hoisted_1$C, [
17654
- createElementVNode("div", _hoisted_2$t, [
17655
- _ctx.enableSearch ? (openBlock(), createElementBlock("div", _hoisted_3$n, [
17663
+ return openBlock(), createElementBlock("div", _hoisted_1$B, [
17664
+ createElementVNode("div", _hoisted_2$s, [
17665
+ _ctx.enableSearch ? (openBlock(), createElementBlock("div", _hoisted_3$m, [
17656
17666
  withDirectives(createElementVNode("input", {
17657
17667
  placeholder: _ctx.searchPlaceholder,
17658
17668
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchTerm.value = $event),
17659
17669
  onInput: _cache[1] || (_cache[1] = ($event) => search())
17660
- }, null, 40, _hoisted_4$h), [
17670
+ }, null, 40, _hoisted_4$g), [
17661
17671
  [vModelText, searchTerm.value]
17662
17672
  ]),
17663
- createVNode(unref(_sfc_main$C), {
17673
+ createVNode(unref(_sfc_main$D), {
17664
17674
  class: "txtgray",
17665
17675
  icon: "search"
17666
17676
  })
@@ -17671,16 +17681,16 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
17671
17681
  onClick: _cache[2] || (_cache[2] = ($event) => emit2("add"))
17672
17682
  })) : createCommentVNode("", true)
17673
17683
  ]),
17674
- createElementVNode("div", _hoisted_5$f, [
17684
+ createElementVNode("div", _hoisted_5$e, [
17675
17685
  renderSlot(_ctx.$slots, "default")
17676
17686
  ])
17677
17687
  ]);
17678
17688
  };
17679
17689
  }
17680
17690
  });
17681
- const _hoisted_1$B = { class: "txt16 no-margin ellipsis" };
17682
- const _hoisted_2$s = { class: "txt14 no-margin txtgray ellipsis" };
17683
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
17691
+ const _hoisted_1$A = { class: "txt16 no-margin ellipsis" };
17692
+ const _hoisted_2$r = { class: "txt14 no-margin txtgray ellipsis" };
17693
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
17684
17694
  __name: "ListItem",
17685
17695
  props: {
17686
17696
  src: {},
@@ -17704,11 +17714,11 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
17704
17714
  size: 40
17705
17715
  }, null, 8, ["name", "src"])) : createCommentVNode("", true),
17706
17716
  createElementVNode("div", null, [
17707
- createElementVNode("p", _hoisted_1$B, [
17717
+ createElementVNode("p", _hoisted_1$A, [
17708
17718
  createTextVNode(toDisplayString(_ctx.title) + " ", 1),
17709
17719
  renderSlot(_ctx.$slots, "default")
17710
17720
  ]),
17711
- createElementVNode("p", _hoisted_2$s, [
17721
+ createElementVNode("p", _hoisted_2$r, [
17712
17722
  createTextVNode(toDisplayString(_ctx.subtitle) + " ", 1),
17713
17723
  renderSlot(_ctx.$slots, "subtitle")
17714
17724
  ])
@@ -17719,10 +17729,10 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
17719
17729
  };
17720
17730
  }
17721
17731
  });
17722
- const _hoisted_1$A = { class: "card tabs-top" };
17723
- const _hoisted_2$r = { class: "tabs grid auto-flow-columns fit-content" };
17724
- const _hoisted_3$m = ["onClick"];
17725
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
17732
+ const _hoisted_1$z = { class: "card tabs-top" };
17733
+ const _hoisted_2$q = { class: "tabs grid auto-flow-columns fit-content" };
17734
+ const _hoisted_3$l = ["onClick"];
17735
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
17726
17736
  __name: "TabbedLayout",
17727
17737
  props: {
17728
17738
  title: {},
@@ -17757,9 +17767,9 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
17757
17767
  return openBlock(), createElementBlock("div", {
17758
17768
  class: normalizeClass(["h-100 grid list-view gap-3", { "side-tabs": _ctx.sideTabs }])
17759
17769
  }, [
17760
- createElementVNode("div", _hoisted_1$A, [
17770
+ createElementVNode("div", _hoisted_1$z, [
17761
17771
  renderSlot(_ctx.$slots, "top-section", {}, void 0, true),
17762
- createElementVNode("div", _hoisted_2$r, [
17772
+ createElementVNode("div", _hoisted_2$q, [
17763
17773
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.tabs, (tab) => {
17764
17774
  var _a2;
17765
17775
  return openBlock(), createElementBlock("div", {
@@ -17768,7 +17778,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
17768
17778
  }, "tab"]),
17769
17779
  key: tab,
17770
17780
  onClick: ($event) => changeTab(tab)
17771
- }, toDisplayString(tab), 11, _hoisted_3$m);
17781
+ }, toDisplayString(tab), 11, _hoisted_3$l);
17772
17782
  }), 128))
17773
17783
  ])
17774
17784
  ]),
@@ -17784,16 +17794,16 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
17784
17794
  };
17785
17795
  }
17786
17796
  });
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$q = { 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({
17797
+ const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-09fce741"]]);
17798
+ const _hoisted_1$y = { class: "comments-wrap" };
17799
+ const _hoisted_2$p = { class: "comment-list" };
17800
+ const _hoisted_3$k = { class: "comment-top" };
17801
+ const _hoisted_4$f = { class: "comment-owner" };
17802
+ const _hoisted_5$d = { class: "comment-time" };
17803
+ const _hoisted_6$9 = { class: "comment-actions" };
17804
+ const _hoisted_7$5 = ["innerHTML"];
17805
+ const _hoisted_8$2 = { class: "new-comment" };
17806
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
17797
17807
  __name: "Comments",
17798
17808
  props: {
17799
17809
  ref_table: {},
@@ -17836,8 +17846,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
17836
17846
  void fetchData();
17837
17847
  };
17838
17848
  return (_ctx, _cache) => {
17839
- return openBlock(), createElementBlock("div", _hoisted_1$z, [
17840
- createElementVNode("div", _hoisted_2$q, [
17849
+ return openBlock(), createElementBlock("div", _hoisted_1$y, [
17850
+ createElementVNode("div", _hoisted_2$p, [
17841
17851
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(comments), (comment) => {
17842
17852
  var _a2, _b, _c;
17843
17853
  return openBlock(), createElementBlock("div", {
@@ -17847,23 +17857,23 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
17847
17857
  }, "comment"]),
17848
17858
  key: comment.id
17849
17859
  }, [
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), {
17860
+ createElementVNode("div", _hoisted_3$k, [
17861
+ createElementVNode("div", _hoisted_4$f, toDisplayString(comment.sender.first_name) + " " + toDisplayString(comment.sender.last_name), 1),
17862
+ createElementVNode("div", _hoisted_5$d, toDisplayString(comment.updated_at.split("T")[0]), 1),
17863
+ createElementVNode("div", _hoisted_6$9, [
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$C), {
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$C), {
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$t = /* @__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$D), {
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),
@@ -17880,12 +17890,12 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
17880
17890
  key: 1,
17881
17891
  class: "editor-wrapper",
17882
17892
  innerHTML: comment.body_html
17883
- }, null, 8, _hoisted_7$6))
17893
+ }, null, 8, _hoisted_7$5))
17884
17894
  ], 2);
17885
17895
  }), 128))
17886
17896
  ]),
17887
- createElementVNode("div", _hoisted_8$3, [
17888
- createVNode(unref(_sfc_main$D), {
17897
+ createElementVNode("div", _hoisted_8$2, [
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$t = /* @__PURE__ */ defineComponent({
17905
17915
  };
17906
17916
  }
17907
17917
  });
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$p = { class: "top-title" };
17911
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
17918
+ const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-c4b41dc0"]]);
17919
+ const _hoisted_1$x = { class: "page-top" };
17920
+ const _hoisted_2$o = { class: "top-title" };
17921
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
17912
17922
  __name: "PageTitle",
17913
17923
  props: {
17914
17924
  value: {
@@ -17918,8 +17928,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
17918
17928
  },
17919
17929
  setup(__props) {
17920
17930
  return (_ctx, _cache) => {
17921
- return openBlock(), createElementBlock("div", _hoisted_1$y, [
17922
- createElementVNode("h1", _hoisted_2$p, [
17931
+ return openBlock(), createElementBlock("div", _hoisted_1$x, [
17932
+ createElementVNode("h1", _hoisted_2$o, [
17923
17933
  renderSlot(_ctx.$slots, "default"),
17924
17934
  createTextVNode(" " + toDisplayString(__props.value), 1)
17925
17935
  ])
@@ -17927,14 +17937,14 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
17927
17937
  };
17928
17938
  }
17929
17939
  });
17930
- const _hoisted_1$x = { class: "table-list-wrap h-100" };
17931
- const _hoisted_2$o = { 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({
17940
+ const _hoisted_1$w = { class: "table-list-wrap h-100" };
17941
+ const _hoisted_2$n = { class: "infinite-wrapper" };
17942
+ const _hoisted_3$j = { class: "row first-row" };
17943
+ const _hoisted_4$e = ["onClick"];
17944
+ const _hoisted_5$c = { class: "flex" };
17945
+ const _hoisted_6$8 = ["onClick"];
17946
+ const _hoisted_7$4 = { key: 1 };
17947
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
17938
17948
  __name: "TableSchema",
17939
17949
  props: {
17940
17950
  data: {},
@@ -17968,27 +17978,27 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
17968
17978
  emit2("orderBy", `${fieldname} ${sortDirection.value}`.trim());
17969
17979
  };
17970
17980
  return (_ctx, _cache) => {
17971
- return openBlock(), createElementBlock("div", _hoisted_1$x, [
17972
- createElementVNode("table", _hoisted_2$o, [
17973
- createElementVNode("thead", _hoisted_3$k, [
17981
+ return openBlock(), createElementBlock("div", _hoisted_1$w, [
17982
+ createElementVNode("table", _hoisted_2$n, [
17983
+ createElementVNode("thead", _hoisted_3$j, [
17974
17984
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(computedSchema.value, (field) => {
17975
17985
  return openBlock(), createElementBlock("th", {
17976
17986
  class: "col",
17977
17987
  key: field.id,
17978
17988
  onClick: ($event) => sort2((field == null ? void 0 : field.id) || "")
17979
17989
  }, [
17980
- createElementVNode("div", _hoisted_5$d, [
17990
+ createElementVNode("div", _hoisted_5$c, [
17981
17991
  createTextVNode(toDisplayString(field.id) + " ", 1),
17982
17992
  createElementVNode("div", {
17983
17993
  class: normalizeClass(["list-arrows", { sorted: unref(sortField) === field.id }])
17984
17994
  }, [
17985
- createVNode(unref(_sfc_main$C), {
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"])
17989
17999
  ], 2)
17990
18000
  ])
17991
- ], 8, _hoisted_4$f);
18001
+ ], 8, _hoisted_4$e);
17992
18002
  }), 128))
17993
18003
  ]),
17994
18004
  createElementVNode("tbody", {
@@ -18010,7 +18020,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
18010
18020
  key: 0,
18011
18021
  row,
18012
18022
  field
18013
- }, void 0, true) : (openBlock(), createElementBlock("div", _hoisted_7$5, [
18023
+ }, void 0, true) : (openBlock(), createElementBlock("div", _hoisted_7$4, [
18014
18024
  createVNode(unref(_sfc_main$g), {
18015
18025
  field,
18016
18026
  modelValue: row
@@ -18018,7 +18028,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
18018
18028
  ]))
18019
18029
  ]);
18020
18030
  }), 128))
18021
- ], 8, _hoisted_6$9);
18031
+ ], 8, _hoisted_6$8);
18022
18032
  }), 128))
18023
18033
  ], 2)
18024
18034
  ])
@@ -18026,16 +18036,16 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
18026
18036
  };
18027
18037
  }
18028
18038
  });
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" };
18039
+ const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-2137a7a8"]]);
18040
+ const _sfc_main$r = {};
18041
+ const _hoisted_1$v = { class: "flex space-between" };
18032
18042
  function _sfc_render$1(_ctx, _cache) {
18033
- return openBlock(), createElementBlock("div", _hoisted_1$w, [
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$q, [["render", _sfc_render$1]]);
18038
- const _sfc_main$p = {};
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,20 +18067,20 @@ function _sfc_render(_ctx, _cache) {
18057
18067
  _: 1
18058
18068
  });
18059
18069
  }
18060
- const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render]]);
18061
- const _hoisted_1$v = {
18070
+ const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render]]);
18071
+ const _hoisted_1$u = {
18062
18072
  key: 0,
18063
18073
  class: "data"
18064
18074
  };
18065
- const _hoisted_2$n = {
18075
+ const _hoisted_2$m = {
18066
18076
  key: 0,
18067
18077
  class: "data-row"
18068
18078
  };
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({
18079
+ const _hoisted_3$i = { class: "key" };
18080
+ const _hoisted_4$d = { key: 1 };
18081
+ const _hoisted_5$b = { class: "key" };
18082
+ const _hoisted_6$7 = { class: "vlue" };
18083
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
18074
18084
  __name: "DataPreview",
18075
18085
  props: /* @__PURE__ */ mergeModels({
18076
18086
  schema: {},
@@ -18084,8 +18094,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
18084
18094
  const itemData = useModel(__props, "data");
18085
18095
  return (_ctx, _cache) => {
18086
18096
  var _a2;
18087
- return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$v, [
18088
- _ctx.title ? (openBlock(), createBlock(unref(_sfc_main$l), {
18097
+ return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$u, [
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),
@@ -18093,8 +18103,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
18093
18103
  return openBlock(), createElementBlock(Fragment$1, {
18094
18104
  key: field.id
18095
18105
  }, [
18096
- unref(iffer)(field, itemData.value) ? (openBlock(), createElementBlock("div", _hoisted_2$n, [
18097
- createElementVNode("div", _hoisted_3$j, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1),
18106
+ unref(iffer)(field, itemData.value) ? (openBlock(), createElementBlock("div", _hoisted_2$m, [
18107
+ createElementVNode("div", _hoisted_3$i, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1),
18098
18108
  createVNode(unref(_sfc_main$g), {
18099
18109
  field,
18100
18110
  modelValue: itemData.value,
@@ -18103,14 +18113,14 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
18103
18113
  ])) : createCommentVNode("", true)
18104
18114
  ], 64);
18105
18115
  }), 128)),
18106
- !((_a2 = _ctx.schema) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_4$e, [
18116
+ !((_a2 = _ctx.schema) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_4$d, [
18107
18117
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(Object.entries(itemData.value), ([key, value]) => {
18108
18118
  return openBlock(), createElementBlock("div", {
18109
18119
  class: "data-row",
18110
18120
  key
18111
18121
  }, [
18112
- createElementVNode("div", _hoisted_5$c, toDisplayString(unref(keyToLabel)(key)), 1),
18113
- createElementVNode("div", _hoisted_6$8, toDisplayString(value), 1)
18122
+ createElementVNode("div", _hoisted_5$b, toDisplayString(unref(keyToLabel)(key)), 1),
18123
+ createElementVNode("div", _hoisted_6$7, toDisplayString(value), 1)
18114
18124
  ]);
18115
18125
  }), 128))
18116
18126
  ])) : createCommentVNode("", true),
@@ -18119,8 +18129,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
18119
18129
  };
18120
18130
  }
18121
18131
  });
18122
- const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-bb2526f9"]]);
18123
- const _sfc_main$n = /* @__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 },
@@ -18138,8 +18148,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
18138
18148
  };
18139
18149
  }
18140
18150
  });
18141
- const _hoisted_1$u = ["src", "alt"];
18142
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
18151
+ const _hoisted_1$t = ["src", "alt"];
18152
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
18143
18153
  __name: "Avatar",
18144
18154
  props: {
18145
18155
  fallback: {},
@@ -18157,7 +18167,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18157
18167
  key: 0,
18158
18168
  src: _ctx.src,
18159
18169
  alt: _ctx.name
18160
- }, null, 8, _hoisted_1$u)) : (openBlock(), createElementBlock("p", {
18170
+ }, null, 8, _hoisted_1$t)) : (openBlock(), createElementBlock("p", {
18161
18171
  key: 1,
18162
18172
  style: normalizeStyle({ "line-height": `${_ctx.size * 0.9}px` })
18163
18173
  }, toDisplayString(_ctx.fallback || unref(initials)(_ctx.name || "")), 5))
@@ -18165,8 +18175,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18165
18175
  };
18166
18176
  }
18167
18177
  });
18168
- const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-0441b0b8"]]);
18169
- const _sfc_main$l = /* @__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$l = /* @__PURE__ */ defineComponent({
18194
18204
  };
18195
18205
  }
18196
18206
  });
18197
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
18207
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
18198
18208
  __name: "Accordion",
18199
18209
  setup(__props) {
18200
18210
  const state = reactive({
@@ -18208,8 +18218,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
18208
18218
  };
18209
18219
  }
18210
18220
  });
18211
- const _hoisted_1$t = ["onClick"];
18212
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
18221
+ const _hoisted_1$s = ["onClick"];
18222
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
18213
18223
  __name: "ComboBox",
18214
18224
  props: {
18215
18225
  options: {},
@@ -18289,7 +18299,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
18289
18299
  class: "bagel-input combobox"
18290
18300
  }, {
18291
18301
  popper: withCtx(({ hide }) => [
18292
- createVNode(unref(_sfc_main$n), {
18302
+ createVNode(unref(_sfc_main$o), {
18293
18303
  thin: "",
18294
18304
  class: "combobox-options"
18295
18305
  }, {
@@ -18314,11 +18324,11 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
18314
18324
  }
18315
18325
  }, [
18316
18326
  createElementVNode("span", null, toDisplayString(label(option2)), 1),
18317
- isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$C), {
18327
+ isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$D), {
18318
18328
  key: 0,
18319
18329
  icon: "check"
18320
18330
  })) : createCommentVNode("", true)
18321
- ], 10, _hoisted_1$t);
18331
+ ], 10, _hoisted_1$s);
18322
18332
  }), 128))
18323
18333
  ]),
18324
18334
  _: 2
@@ -18331,7 +18341,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
18331
18341
  onClick: toggle
18332
18342
  }, [
18333
18343
  createTextVNode(toDisplayString(valueToLabel(unref(selectedItem)) || _ctx.placeholder || "Select") + " ", 1),
18334
- createVNode(unref(_sfc_main$C), 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,126 +18357,66 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
18347
18357
  };
18348
18358
  }
18349
18359
  });
18350
- const ComboBox = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-ceeb5855"]]);
18351
- const _withScopeId$2 = (n2) => (pushScopeId("data-v-fe5af582"), n2 = n2(), popScopeId(), n2);
18352
- const _hoisted_1$s = { class: "bar-chart" };
18353
- const _hoisted_2$m = {
18354
- key: 0,
18355
- class: "group-wrap"
18356
- };
18357
- const _hoisted_3$i = { class: "group-title" };
18358
- const _hoisted_4$d = {
18359
- key: 1,
18360
- class: "bar-wrap"
18361
- };
18362
- const _hoisted_5$b = { class: "bar-txt" };
18363
- const _hoisted_6$7 = { class: "factor" };
18364
- const _hoisted_7$4 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "red-bar" }, null, -1));
18365
- const _hoisted_8$2 = { class: "bar-lines" };
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"]]);
18366
18389
  const _sfc_main$i = /* @__PURE__ */ defineComponent({
18367
- __name: "BarChart",
18390
+ __name: "Badge",
18368
18391
  props: {
18369
- title: {},
18370
- showMarks: { type: Boolean },
18371
- flood: {},
18372
- modelValue: {}
18392
+ color: {},
18393
+ size: {},
18394
+ text: {},
18395
+ icon: {},
18396
+ "icon.end": {}
18373
18397
  },
18374
18398
  setup(__props) {
18375
- useCssVars((_ctx) => ({
18376
- "b74eb91e": floodPercent.value
18377
- }));
18378
18399
  const props2 = __props;
18379
- const loaded = ref(false);
18380
- onMounted(() => {
18381
- setTimeout(() => {
18382
- loaded.value = true;
18383
- }, 400);
18384
- });
18385
- const dataArray = computed(
18386
- () => props2.modelValue
18387
- // const allData = []
18388
- // for (const item of props.modelValue) {
18389
- // if (item.group) {
18390
- // let groupIndex = allData.findIndex(d => d.group === item.group)
18391
- // if (groupIndex > -1) allData[groupIndex].data?.push(item);
18392
- // else allData.push({ group: item.group, data: [item] })
18393
- // } else {
18394
- // allData.push(item)
18395
- // }
18396
- // }
18397
- // return allData;
18398
- );
18399
- const maxValue = computed(
18400
- () => Math.ceil(
18401
- Math.max(
18402
- ...dataArray.value.map((d2) => d2.value),
18403
- ...dataArray.value.map((d2) => (d2 == null ? void 0 : d2.compareValue) || 0)
18404
- )
18405
- )
18406
- );
18407
- const marks2 = computed(() => {
18408
- const marksArray = [];
18409
- for (let i2 = 0; i2 <= 5; i2 += 1) {
18410
- const step = i2 * maxValue.value / 5;
18411
- marksArray.push(Math.round(step / 10) * 10);
18412
- }
18413
- return marksArray;
18414
- });
18415
- const percent = (val) => val / maxValue.value * 100;
18416
- const floodPercent = computed(() => `${props2.flood}%`);
18417
18400
  return (_ctx, _cache) => {
18418
- return openBlock(), createElementBlock("div", _hoisted_1$s, [
18419
- (openBlock(true), createElementBlock(Fragment$1, null, renderList(dataArray.value, (item, i2) => {
18420
- return openBlock(), createElementBlock("div", {
18421
- class: "graph-wrap",
18422
- key: i2
18423
- }, [
18424
- item.group ? (openBlock(), createElementBlock("div", _hoisted_2$m, [
18425
- createElementVNode("p", _hoisted_3$i, toDisplayString(item.group), 1),
18426
- (openBlock(true), createElementBlock(Fragment$1, null, renderList((item == null ? void 0 : item.data) || [], (nested, i22) => {
18427
- return openBlock(), createElementBlock("div", {
18428
- key: i22,
18429
- class: "bar-wrap"
18430
- }, [
18431
- createElementVNode("div", {
18432
- class: "bar",
18433
- style: normalizeStyle({ height: loaded.value ? `${percent(nested.value)}%` : "0" })
18434
- }, null, 4),
18435
- nested.compareValue ? (openBlock(), createElementBlock("div", {
18436
- key: 0,
18437
- class: "bar compare",
18438
- style: normalizeStyle({
18439
- height: loaded.value ? `${percent(nested.compareValue)}%` : "0"
18440
- })
18441
- }, null, 4)) : createCommentVNode("", true)
18442
- ]);
18443
- }), 128))
18444
- ])) : (openBlock(), createElementBlock("div", _hoisted_4$d, [
18445
- createElementVNode("div", {
18446
- class: "bar",
18447
- style: normalizeStyle({ height: loaded.value ? `${percent(item.value)}%` : "0" })
18448
- }, null, 4),
18449
- (item == null ? void 0 : item.compareValue) ? (openBlock(), createElementBlock("div", {
18450
- key: 0,
18451
- class: "bar compare",
18452
- style: normalizeStyle({ height: loaded.value ? `${percent(item.compareValue)}%` : "0" })
18453
- }, null, 4)) : createCommentVNode("", true),
18454
- createElementVNode("p", _hoisted_5$b, toDisplayString(item.title), 1)
18455
- ]))
18456
- ]);
18457
- }), 128)),
18458
- createElementVNode("p", _hoisted_6$7, toDisplayString(_ctx.title), 1),
18459
- _hoisted_7$4,
18460
- createElementVNode("div", _hoisted_8$2, [
18461
- (openBlock(true), createElementBlock(Fragment$1, null, renderList(marks2.value, (mark) => {
18462
- return openBlock(), createElementBlock("p", { key: mark }, toDisplayString(mark.toLocaleString()), 1);
18463
- }), 128))
18464
- ])
18465
- ]);
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);
18466
18416
  };
18467
18417
  }
18468
18418
  });
18469
- const BarChart = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-fe5af582"]]);
18419
+ const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-64e0d988"]]);
18470
18420
  const _hoisted_1$r = {
18471
18421
  key: 1,
18472
18422
  type: "submit",
@@ -18547,7 +18497,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
18547
18497
  ref: form,
18548
18498
  onSubmit: withModifiers(runSubmit, ["prevent"])
18549
18499
  }, [
18550
- _ctx.label ? (openBlock(), createBlock(unref(_sfc_main$l), {
18500
+ _ctx.label ? (openBlock(), createBlock(unref(_sfc_main$m), {
18551
18501
  key: 0,
18552
18502
  tag: "h4",
18553
18503
  label: _ctx.label
@@ -31446,7 +31396,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
31446
31396
  key: row.id
31447
31397
  }, [
31448
31398
  createElementVNode("div", _hoisted_5$9, [
31449
- createVNode(unref(_sfc_main$C), { icon: "more_vert" })
31399
+ createVNode(unref(_sfc_main$D), { icon: "more_vert" })
31450
31400
  ]),
31451
31401
  (openBlock(true), createElementBlock(Fragment$1, null, renderList((_a3 = unref(entityMeta)) == null ? void 0 : _a3.fields, (field) => {
31452
31402
  return openBlock(), createElementBlock("div", {
@@ -31463,7 +31413,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
31463
31413
  ], 2);
31464
31414
  }), 128)),
31465
31415
  createElementVNode("div", _hoisted_6$5, [
31466
- createVNode(unref(_sfc_main$C), {
31416
+ createVNode(unref(_sfc_main$D), {
31467
31417
  icon: "delete",
31468
31418
  onClick: ($event) => removeRow(index2)
31469
31419
  }, null, 8, ["onClick"])
@@ -31625,12 +31575,12 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
31625
31575
  ]),
31626
31576
  _ctx.helptext ? (openBlock(), createElementBlock("p", _hoisted_5$8, toDisplayString(_ctx.helptext), 1)) : createCommentVNode("", true)
31627
31577
  ], 8, _hoisted_2$f),
31628
- _ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$C), {
31578
+ _ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$D), {
31629
31579
  key: 0,
31630
31580
  class: "iconStart",
31631
31581
  icon: _ctx.iconStart
31632
31582
  }, null, 8, ["icon"])) : createCommentVNode("", true),
31633
- _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$C), {
31583
+ _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$D), {
31634
31584
  key: 1,
31635
31585
  icon: _ctx.icon
31636
31586
  }, null, 8, ["icon"])) : createCommentVNode("", true),
@@ -31669,7 +31619,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
31669
31619
  [vModelCheckbox, val.value]
31670
31620
  ]),
31671
31621
  createElementVNode("span", null, [
31672
- createVNode(unref(_sfc_main$C), { icon: "check" })
31622
+ createVNode(unref(_sfc_main$D), { icon: "check" })
31673
31623
  ])
31674
31624
  ]);
31675
31625
  };
@@ -32034,7 +31984,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
32034
31984
  style: normalizeStyle([`--p:${fileQ.progress}`, { "--b": "2px" }])
32035
31985
  }, [
32036
31986
  fileQ.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_12, toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : createCommentVNode("", true),
32037
- createVNode(unref(_sfc_main$C), {
31987
+ createVNode(unref(_sfc_main$D), {
32038
31988
  class: "success",
32039
31989
  icon: "check"
32040
31990
  })
@@ -38549,7 +38499,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
38549
38499
  return (_ctx, _cache) => {
38550
38500
  var _a2, _b, _c, _d, _e2, _f;
38551
38501
  return openBlock(), createElementBlock("div", _hoisted_1, [
38552
- createVNode(unref(_sfc_main$s), null, {
38502
+ createVNode(unref(_sfc_main$t), null, {
38553
38503
  default: withCtx(() => [
38554
38504
  createTextVNode("Whatsapp Template")
38555
38505
  ]),
@@ -38670,16 +38620,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
38670
38620
  }
38671
38621
  });
38672
38622
  export {
38673
- _sfc_main$k as Accordion,
38623
+ _sfc_main$l as Accordion,
38674
38624
  AccordionItem,
38625
+ Alert,
38675
38626
  Avatar,
38627
+ Badge,
38676
38628
  _sfc_main$h as BagelForm,
38677
38629
  BagelVue,
38678
- BarChart,
38679
38630
  _sfc_main$g as BglField,
38680
38631
  _sfc_main$h as BglForm,
38681
38632
  Btn,
38682
- _sfc_main$n as Card,
38633
+ _sfc_main$o as Card,
38683
38634
  CheckInput,
38684
38635
  Checkbox,
38685
38636
  _sfc_main$7 as ColorPicker,
@@ -38689,20 +38640,20 @@ export {
38689
38640
  _sfc_main$e as DateInput,
38690
38641
  _sfc_main$6 as DatePicker,
38691
38642
  FileUpload,
38692
- _sfc_main$C as Icon,
38643
+ _sfc_main$D as Icon,
38693
38644
  JSONInput,
38694
- _sfc_main$E as LangText,
38645
+ _sfc_main$F as LangText,
38695
38646
  _sfc_main$2 as Lineart,
38696
- _sfc_main$v as ListItem,
38697
- _sfc_main$w as ListView,
38698
- _sfc_main$C as MaterialIcon,
38699
- _sfc_main$z 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,
38700
38651
  ModalForm,
38701
38652
  ModalPlugin,
38702
38653
  MsgTemplate,
38703
38654
  NavBar,
38704
- _sfc_main$s as PageTitle,
38705
- _sfc_main$D as RTXEditor,
38655
+ _sfc_main$t as PageTitle,
38656
+ _sfc_main$E as RTXEditor,
38706
38657
  RadioPillsInput,
38707
38658
  RichTextEditor,
38708
38659
  RouterWrapper,
@@ -38712,7 +38663,7 @@ export {
38712
38663
  TableSchema,
38713
38664
  TextInput,
38714
38665
  _sfc_main as TextVariableExamples,
38715
- _sfc_main$l as Title,
38666
+ _sfc_main$m as Title,
38716
38667
  ToggleInput,
38717
38668
  TopBar,
38718
38669
  bagelInjectionKey,