@bagelink/vue 0.0.400 → 0.0.407

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 (36) hide show
  1. package/dist/components/BglVideo.vue.d.ts.map +1 -1
  2. package/dist/components/Drop.vue.d.ts +34 -0
  3. package/dist/components/Drop.vue.d.ts.map +1 -0
  4. package/dist/components/FileUploader.vue.d.ts +60 -0
  5. package/dist/components/FileUploader.vue.d.ts.map +1 -0
  6. package/dist/components/ModalConfirm.vue.d.ts +24 -0
  7. package/dist/components/ModalConfirm.vue.d.ts.map +1 -0
  8. package/dist/components/ModalForm.vue.d.ts +10 -6
  9. package/dist/components/ModalForm.vue.d.ts.map +1 -1
  10. package/dist/components/form/ItemRef.vue.d.ts +1 -0
  11. package/dist/components/form/ItemRef.vue.d.ts.map +1 -1
  12. package/dist/components/form/inputs/RichText.vue.d.ts.map +1 -1
  13. package/dist/components/form/inputs/SelectField.vue.d.ts +1 -4
  14. package/dist/components/form/inputs/SelectField.vue.d.ts.map +1 -1
  15. package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
  16. package/dist/components/index.d.ts +1 -0
  17. package/dist/components/index.d.ts.map +1 -1
  18. package/dist/index.cjs +147 -91
  19. package/dist/index.mjs +147 -91
  20. package/dist/plugins/modal.d.ts +14 -2
  21. package/dist/plugins/modal.d.ts.map +1 -1
  22. package/dist/style.css +69 -26
  23. package/package.json +1 -1
  24. package/src/components/BglVideo.vue +8 -4
  25. package/src/components/ModalConfirm.vue +26 -0
  26. package/src/components/ModalForm.vue +15 -12
  27. package/src/components/form/inputs/RichText.vue +59 -33
  28. package/src/components/form/inputs/SelectInput.vue +5 -4
  29. package/src/components/index.ts +1 -0
  30. package/src/plugins/modal.ts +26 -4
  31. package/src/styles/layout.css +9 -0
  32. package/src/styles/mobilLayout.css +11 -0
  33. package/dist/components/Popover.vue.d.ts +0 -10
  34. package/dist/components/Popover.vue.d.ts.map +0 -1
  35. package/dist/types/materialIcon.d.ts +0 -2
  36. package/dist/types/materialIcon.d.ts.map +0 -1
package/dist/index.mjs CHANGED
@@ -4718,6 +4718,8 @@ class Bagel {
4718
4718
  __publicField(this, "onError");
4719
4719
  __publicField(this, "read_table", null);
4720
4720
  __publicField(this, "auth", new BagelAuth(this));
4721
+ if (!this.host)
4722
+ throw new Error("you probably need to set VITE_BAGEL_BASE_URL in the .env file");
4721
4723
  this.host = host.replace(/\/$/, "");
4722
4724
  axios.defaults.baseURL = this.host;
4723
4725
  this.onError = onError;
@@ -4855,6 +4857,15 @@ const ModalPlugin = {
4855
4857
  const hideModal = (index2) => {
4856
4858
  modalStack.value.splice(index2, 1);
4857
4859
  };
4860
+ const modalConfirm = (options) => new Promise((resolve) => {
4861
+ if (typeof options === "string")
4862
+ options = { title: options, message: "" };
4863
+ modalStack.value.push({
4864
+ modalOptions: { ...options, resolve },
4865
+ modalType: "confirm",
4866
+ componentSlots: {}
4867
+ });
4868
+ });
4858
4869
  const showModal = (modalType, options, slots = {}) => {
4859
4870
  modalStack.value.push({
4860
4871
  modalOptions: options,
@@ -4868,6 +4879,7 @@ const ModalPlugin = {
4868
4879
  app.provide(ModalSymbol, {
4869
4880
  showModal: (options, slots) => showModal("modal", options, slots),
4870
4881
  showModalForm: (options, slots) => showModal("modalForm", options, slots),
4882
+ confirm: (userOptions) => modalConfirm(userOptions),
4871
4883
  hideModal: (index2 = modalStack.value.length - 1) => hideModal(index2)
4872
4884
  // modalOptions,
4873
4885
  });
@@ -4878,7 +4890,9 @@ const ModalPlugin = {
4878
4890
  const props2 = { ...modal.modalOptions, visible: true, "onUpdate:visible": () => hideModal(index2) };
4879
4891
  if (modal.modalType === "modalForm")
4880
4892
  return h$2(ModalForm, props2, modal.componentSlots);
4881
- return h$2(_sfc_main$E, props2, modal.componentSlots);
4893
+ if (modal.modalType === "confirm")
4894
+ return h$2(_sfc_main$n, props2, {});
4895
+ return h$2(_sfc_main$F, props2, modal.componentSlots);
4882
4896
  });
4883
4897
  }
4884
4898
  });
@@ -5017,7 +5031,7 @@ const iffer = (field, itemData) => {
5017
5031
  return true;
5018
5032
  };
5019
5033
  const denullify = (itemData, fieldID) => fieldID && itemData ? itemData[fieldID] : null;
5020
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
5034
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
5021
5035
  __name: "MaterialIcon",
5022
5036
  props: {
5023
5037
  icon: {},
@@ -5040,7 +5054,7 @@ const _hoisted_3$l = { class: "nav-links-wrapper" };
5040
5054
  const _hoisted_4$e = { class: "tooltip" };
5041
5055
  const _hoisted_5$b = { class: "bot-buttons-wrapper" };
5042
5056
  const _hoisted_6$7 = { class: "tooltip" };
5043
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
5057
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
5044
5058
  __name: "NavBar",
5045
5059
  props: {
5046
5060
  footerLinks: { default: () => [] },
@@ -5064,7 +5078,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
5064
5078
  "aria-label": "Toggle Navigation",
5065
5079
  tabindex: "0"
5066
5080
  }, [
5067
- createVNode(unref(_sfc_main$H), {
5081
+ createVNode(unref(_sfc_main$I), {
5068
5082
  icon: "chevron_right",
5069
5083
  class: "top-arrow"
5070
5084
  })
@@ -5083,7 +5097,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
5083
5097
  }
5084
5098
  }, {
5085
5099
  default: withCtx(() => [
5086
- createVNode(unref(_sfc_main$H), {
5100
+ createVNode(unref(_sfc_main$I), {
5087
5101
  icon: link.icon
5088
5102
  }, null, 8, ["icon"]),
5089
5103
  createElementVNode("div", _hoisted_4$e, toDisplayString(link.label), 1)
@@ -5105,7 +5119,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
5105
5119
  key: link.label
5106
5120
  }, {
5107
5121
  default: withCtx(() => [
5108
- createVNode(unref(_sfc_main$H), {
5122
+ createVNode(unref(_sfc_main$I), {
5109
5123
  icon: link.icon
5110
5124
  }, null, 8, ["icon"]),
5111
5125
  createElementVNode("div", _hoisted_6$7, toDisplayString(link.label), 1)
@@ -5127,7 +5141,7 @@ const _export_sfc = (sfc, props2) => {
5127
5141
  }
5128
5142
  return target;
5129
5143
  };
5130
- const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-727b754a"]]);
5144
+ const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-727b754a"]]);
5131
5145
  const _hoisted_1$D = {
5132
5146
  key: 0,
5133
5147
  class: "loading"
@@ -5136,7 +5150,7 @@ const _hoisted_2$w = {
5136
5150
  key: 1,
5137
5151
  class: "bgl_btn-flex"
5138
5152
  };
5139
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
5153
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
5140
5154
  __name: "Btn",
5141
5155
  props: {
5142
5156
  disabled: { type: Boolean, default: false },
@@ -5224,7 +5238,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
5224
5238
  }, {
5225
5239
  default: withCtx(() => [
5226
5240
  _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$D)) : (openBlock(), createElementBlock("div", _hoisted_2$w, [
5227
- _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$H), {
5241
+ _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$I), {
5228
5242
  key: 0,
5229
5243
  icon: _ctx.icon
5230
5244
  }, null, 8, ["icon"])) : createCommentVNode("", true),
@@ -5232,7 +5246,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
5232
5246
  !unref(slots)["default"] && _ctx.value ? (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
5233
5247
  createTextVNode(toDisplayString(_ctx.value), 1)
5234
5248
  ], 64)) : createCommentVNode("", true),
5235
- props2["icon.end"] ? (openBlock(), createBlock(unref(_sfc_main$H), {
5249
+ props2["icon.end"] ? (openBlock(), createBlock(unref(_sfc_main$I), {
5236
5250
  key: 2,
5237
5251
  icon: props2["icon.end"]
5238
5252
  }, null, 8, ["icon"])) : createCommentVNode("", true)
@@ -5243,10 +5257,10 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
5243
5257
  };
5244
5258
  }
5245
5259
  });
5246
- const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-d09a83c5"]]);
5260
+ const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-d09a83c5"]]);
5247
5261
  const _hoisted_1$C = { class: "tool-bar" };
5248
5262
  const _hoisted_2$v = { class: "modal-footer mt-3" };
5249
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
5263
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
5250
5264
  __name: "Modal",
5251
5265
  props: {
5252
5266
  side: { type: Boolean },
@@ -5300,7 +5314,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
5300
5314
  onClick: _cache[1] || (_cache[1] = () => _ctx.dismissable ? closeModal() : ""),
5301
5315
  onKeydown: withKeys(closeModal, ["esc"])
5302
5316
  }, [
5303
- createVNode(unref(_sfc_main$u), {
5317
+ createVNode(unref(_sfc_main$v), {
5304
5318
  class: "modal",
5305
5319
  onClick: _cache[0] || (_cache[0] = withModifiers(() => {
5306
5320
  }, ["stop"])),
@@ -5315,7 +5329,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
5315
5329
  icon: "close",
5316
5330
  onClick: closeModal
5317
5331
  }, null, 8, ["style"]),
5318
- _ctx.title ? (openBlock(), createBlock(unref(_sfc_main$s), {
5332
+ _ctx.title ? (openBlock(), createBlock(unref(_sfc_main$t), {
5319
5333
  key: 0,
5320
5334
  class: "modal-title",
5321
5335
  tag: "h3",
@@ -5340,7 +5354,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
5340
5354
  };
5341
5355
  }
5342
5356
  });
5343
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
5357
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
5344
5358
  __name: "ModalForm",
5345
5359
  props: /* @__PURE__ */ mergeModels({
5346
5360
  side: { type: Boolean },
@@ -5351,7 +5365,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
5351
5365
  schema: { type: Function },
5352
5366
  onSubmit: { type: Function },
5353
5367
  onDelete: { type: Function },
5354
- "onUpdate:isModalVisible": { type: Function },
5368
+ visible: { type: Boolean },
5355
5369
  onError: { type: Function },
5356
5370
  modelValue: {}
5357
5371
  }, {
@@ -5360,10 +5374,11 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
5360
5374
  },
5361
5375
  "modelModifiers": {}
5362
5376
  }),
5363
- emits: ["update:modelValue"],
5364
- setup(__props, { expose: __expose }) {
5377
+ emits: /* @__PURE__ */ mergeModels(["update:visible"], ["update:modelValue"]),
5378
+ setup(__props, { expose: __expose, emit: __emit }) {
5365
5379
  const bagel = useBagel();
5366
5380
  const props2 = __props;
5381
+ const emit2 = __emit;
5367
5382
  const modal = ref();
5368
5383
  const computedFormSchema = computed(() => {
5369
5384
  if (typeof props2.schema === "function")
@@ -5400,12 +5415,13 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
5400
5415
  }
5401
5416
  __expose({ setFormValues });
5402
5417
  return (_ctx, _cache) => {
5403
- return openBlock(), createBlock(unref(_sfc_main$E), {
5404
- "onOnUpdate:isModalVisible": props2["onUpdate:isModalVisible"],
5418
+ return openBlock(), createBlock(unref(_sfc_main$F), {
5419
+ "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => emit2("update:visible", $event)),
5405
5420
  side: _ctx.side,
5406
5421
  ref_key: "modal",
5407
5422
  ref: modal,
5408
5423
  width: _ctx.width,
5424
+ visible: _ctx.visible,
5409
5425
  dismissable: _ctx.dismissable,
5410
5426
  title: _ctx.title
5411
5427
  }, createSlots({
@@ -5448,16 +5464,16 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
5448
5464
  ]),
5449
5465
  key: "0"
5450
5466
  } : void 0
5451
- ]), 1032, ["onOnUpdate:isModalVisible", "side", "width", "dismissable", "title"]);
5467
+ ]), 1032, ["side", "width", "visible", "dismissable", "title"]);
5452
5468
  };
5453
5469
  }
5454
5470
  });
5455
- const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-204f5236"]]);
5471
+ const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-04d84995"]]);
5456
5472
  const _hoisted_1$B = { class: "accordion-item" };
5457
5473
  const _hoisted_2$u = ["aria-expanded", "aria-controls"];
5458
5474
  const _hoisted_3$k = { class: "accordion-label" };
5459
5475
  const _hoisted_4$d = ["id", "aria-hidden"];
5460
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
5476
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
5461
5477
  __name: "AccordionItem",
5462
5478
  props: {
5463
5479
  label: {},
@@ -5492,7 +5508,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
5492
5508
  createElementVNode("div", {
5493
5509
  class: normalizeClass(["accordion-icon", { open: unref(open) }])
5494
5510
  }, [
5495
- createVNode(unref(_sfc_main$H), { icon: "expand_more" })
5511
+ createVNode(unref(_sfc_main$I), { icon: "expand_more" })
5496
5512
  ], 2)
5497
5513
  ], 8, _hoisted_2$u),
5498
5514
  createVNode(Transition, { name: "expand" }, {
@@ -5512,11 +5528,11 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
5512
5528
  };
5513
5529
  }
5514
5530
  });
5515
- const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-bf74738b"]]);
5531
+ const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-bf74738b"]]);
5516
5532
  const _hoisted_1$A = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 p-0" };
5517
5533
  const _hoisted_2$t = { class: "p-1" };
5518
5534
  const _hoisted_3$j = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
5519
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
5535
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
5520
5536
  __name: "ListView",
5521
5537
  setup(__props) {
5522
5538
  return (_ctx, _cache) => {
@@ -5533,7 +5549,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
5533
5549
  });
5534
5550
  const _hoisted_1$z = { class: "txt16 no-margin ellipsis" };
5535
5551
  const _hoisted_2$s = { class: "txt14 no-margin txt-gray ellipsis" };
5536
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
5552
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
5537
5553
  __name: "ListItem",
5538
5554
  props: {
5539
5555
  src: {},
@@ -5574,7 +5590,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
5574
5590
  });
5575
5591
  const _hoisted_1$y = { class: "page-top" };
5576
5592
  const _hoisted_2$r = { class: "top-title" };
5577
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
5593
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
5578
5594
  __name: "PageTitle",
5579
5595
  props: {
5580
5596
  value: {
@@ -5600,7 +5616,7 @@ const _hoisted_4$c = ["onClick"];
5600
5616
  const _hoisted_5$a = { class: "flex" };
5601
5617
  const _hoisted_6$6 = ["onClick"];
5602
5618
  const _hoisted_7$2 = { key: 1 };
5603
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
5619
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
5604
5620
  __name: "TableSchema",
5605
5621
  props: {
5606
5622
  data: {},
@@ -5648,7 +5664,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
5648
5664
  createElementVNode("div", {
5649
5665
  class: normalizeClass(["list-arrows", { sorted: unref(sortField) === field.id }])
5650
5666
  }, [
5651
- createVNode(unref(_sfc_main$H), {
5667
+ createVNode(unref(_sfc_main$I), {
5652
5668
  class: normalizeClass({ desc: unref(sortDirection) === "DESC" }),
5653
5669
  icon: "keyboard_arrow_up"
5654
5670
  }, null, 8, ["class"])
@@ -5694,16 +5710,16 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
5694
5710
  };
5695
5711
  }
5696
5712
  });
5697
- const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-10808aad"]]);
5698
- const _sfc_main$x = {};
5713
+ const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-10808aad"]]);
5714
+ const _sfc_main$y = {};
5699
5715
  const _hoisted_1$w = { class: "flex space-between" };
5700
5716
  function _sfc_render$1(_ctx, _cache) {
5701
5717
  return openBlock(), createElementBlock("div", _hoisted_1$w, [
5702
5718
  renderSlot(_ctx.$slots, "default")
5703
5719
  ]);
5704
5720
  }
5705
- const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$1]]);
5706
- const _sfc_main$w = {};
5721
+ const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$1]]);
5722
+ const _sfc_main$x = {};
5707
5723
  function _sfc_render(_ctx, _cache) {
5708
5724
  const _component_router_view = resolveComponent("router-view");
5709
5725
  return openBlock(), createBlock(_component_router_view, null, {
@@ -5725,7 +5741,7 @@ function _sfc_render(_ctx, _cache) {
5725
5741
  _: 1
5726
5742
  });
5727
5743
  }
5728
- const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render]]);
5744
+ const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render]]);
5729
5745
  const _hoisted_1$v = {
5730
5746
  key: 0,
5731
5747
  class: "data"
@@ -5738,7 +5754,7 @@ const _hoisted_3$h = { class: "key" };
5738
5754
  const _hoisted_4$b = { key: 1 };
5739
5755
  const _hoisted_5$9 = { class: "key" };
5740
5756
  const _hoisted_6$5 = { class: "vlue" };
5741
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
5757
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
5742
5758
  __name: "DataPreview",
5743
5759
  props: /* @__PURE__ */ mergeModels({
5744
5760
  schema: {},
@@ -5753,7 +5769,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
5753
5769
  return (_ctx, _cache) => {
5754
5770
  var _a2;
5755
5771
  return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$v, [
5756
- _ctx.title ? (openBlock(), createBlock(unref(_sfc_main$s), {
5772
+ _ctx.title ? (openBlock(), createBlock(unref(_sfc_main$t), {
5757
5773
  key: 0,
5758
5774
  label: _ctx.title
5759
5775
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -5787,12 +5803,12 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
5787
5803
  };
5788
5804
  }
5789
5805
  });
5790
- const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-bb2526f9"]]);
5806
+ const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-bb2526f9"]]);
5791
5807
  const _hoisted_1$u = {
5792
5808
  key: 0,
5793
5809
  class: "card_label"
5794
5810
  };
5795
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
5811
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
5796
5812
  __name: "Card",
5797
5813
  props: {
5798
5814
  label: {},
@@ -5822,7 +5838,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
5822
5838
  }
5823
5839
  });
5824
5840
  const _hoisted_1$t = ["src", "alt"];
5825
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
5841
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
5826
5842
  __name: "Avatar",
5827
5843
  props: {
5828
5844
  fallback: {},
@@ -5848,8 +5864,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
5848
5864
  };
5849
5865
  }
5850
5866
  });
5851
- const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-c38bc02a"]]);
5852
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
5867
+ const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-c38bc02a"]]);
5868
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
5853
5869
  __name: "Title",
5854
5870
  props: {
5855
5871
  value: {
@@ -5877,7 +5893,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
5877
5893
  };
5878
5894
  }
5879
5895
  });
5880
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
5896
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
5881
5897
  __name: "Accordion",
5882
5898
  setup(__props) {
5883
5899
  const state2 = reactive({
@@ -5893,7 +5909,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
5893
5909
  });
5894
5910
  const _hoisted_1$s = ["dismissable"];
5895
5911
  const _hoisted_2$o = { class: "m-0" };
5896
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
5912
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
5897
5913
  __name: "Alert",
5898
5914
  props: {
5899
5915
  message: {},
@@ -5913,7 +5929,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
5913
5929
  class: normalizeClass(["alert", [_ctx.type]]),
5914
5930
  dismissable: _ctx.dismissable
5915
5931
  }, [
5916
- createVNode(unref(_sfc_main$H), {
5932
+ createVNode(unref(_sfc_main$I), {
5917
5933
  class: "alert_icon",
5918
5934
  icon: _ctx.type,
5919
5935
  size: 2,
@@ -5931,8 +5947,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
5931
5947
  };
5932
5948
  }
5933
5949
  });
5934
- const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-4017e821"]]);
5935
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
5950
+ const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-4017e821"]]);
5951
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
5936
5952
  __name: "Badge",
5937
5953
  props: {
5938
5954
  color: {},
@@ -5947,13 +5963,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
5947
5963
  return openBlock(), createElementBlock("div", {
5948
5964
  class: normalizeClass(["pill", [_ctx.color]])
5949
5965
  }, [
5950
- _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$H), {
5966
+ _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$I), {
5951
5967
  key: 0,
5952
5968
  class: "inline",
5953
5969
  icon: _ctx.icon
5954
5970
  }, null, 8, ["icon"])) : createCommentVNode("", true),
5955
5971
  createTextVNode(" " + toDisplayString(_ctx.text) + " ", 1),
5956
- props2["icon.end"] ? (openBlock(), createBlock(unref(_sfc_main$H), {
5972
+ props2["icon.end"] ? (openBlock(), createBlock(unref(_sfc_main$I), {
5957
5973
  key: 1,
5958
5974
  class: "inline",
5959
5975
  icon: props2["icon.end"]
@@ -5962,10 +5978,10 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
5962
5978
  };
5963
5979
  }
5964
5980
  });
5965
- const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-561f7a72"]]);
5981
+ const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-561f7a72"]]);
5966
5982
  const _hoisted_1$r = ["src"];
5967
5983
  const _hoisted_2$n = ["src", "autoplay", "muted", "loop", "controls"];
5968
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
5984
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
5969
5985
  __name: "BglVideo",
5970
5986
  props: {
5971
5987
  src: {},
@@ -6033,13 +6049,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
6033
6049
  };
6034
6050
  }
6035
6051
  });
6036
- const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-bbfc4353"]]);
6052
+ const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-b1ad7c32"]]);
6037
6053
  const _hoisted_1$q = {
6038
6054
  key: 0,
6039
6055
  class: "blocker"
6040
6056
  };
6041
6057
  const _hoisted_2$m = { class: "Handlers" };
6042
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
6058
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
6043
6059
  __name: "Carousel",
6044
6060
  props: {
6045
6061
  autoHeight: {
@@ -6213,7 +6229,48 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
6213
6229
  };
6214
6230
  }
6215
6231
  });
6216
- const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-068aa914"]]);
6232
+ const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-068aa914"]]);
6233
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
6234
+ __name: "ModalConfirm",
6235
+ props: {
6236
+ title: {},
6237
+ message: {},
6238
+ resolve: { type: Function }
6239
+ },
6240
+ emits: ["update:visible"],
6241
+ setup(__props, { emit: __emit }) {
6242
+ const props2 = __props;
6243
+ const emit2 = __emit;
6244
+ function select2(val) {
6245
+ props2.resolve(val);
6246
+ emit2("update:visible");
6247
+ }
6248
+ return (_ctx, _cache) => {
6249
+ return openBlock(), createBlock(unref(_sfc_main$F), {
6250
+ width: "380px",
6251
+ dismissable: false,
6252
+ title: _ctx.title
6253
+ }, {
6254
+ footer: withCtx(() => [
6255
+ createVNode(unref(Btn), {
6256
+ onClick: _cache[0] || (_cache[0] = ($event) => select2(true)),
6257
+ color: "primary",
6258
+ value: "Confirm"
6259
+ }),
6260
+ createVNode(unref(Btn), {
6261
+ onClick: _cache[1] || (_cache[1] = ($event) => select2(false)),
6262
+ color: "red",
6263
+ value: "Cancel"
6264
+ })
6265
+ ]),
6266
+ default: withCtx(() => [
6267
+ createTextVNode(toDisplayString(_ctx.message) + " ", 1)
6268
+ ]),
6269
+ _: 1
6270
+ }, 8, ["title"]);
6271
+ };
6272
+ }
6273
+ });
6217
6274
  const _sfc_main$m = /* @__PURE__ */ defineComponent({
6218
6275
  __name: "BglForm",
6219
6276
  props: {
@@ -6297,7 +6354,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
6297
6354
  ref: form,
6298
6355
  onSubmit: withModifiers(runSubmit, ["prevent"])
6299
6356
  }, [
6300
- _ctx.label ? (openBlock(), createBlock(unref(_sfc_main$s), {
6357
+ _ctx.label ? (openBlock(), createBlock(unref(_sfc_main$t), {
6301
6358
  key: 0,
6302
6359
  tag: "h4",
6303
6360
  label: _ctx.label
@@ -15223,6 +15280,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
15223
15280
  });
15224
15281
  const emit2 = __emit;
15225
15282
  const getLabel = (option2) => {
15283
+ if (!option2)
15284
+ return "";
15226
15285
  if (typeof option2 === "string")
15227
15286
  return option2;
15228
15287
  if (typeof option2 === "number")
@@ -15230,6 +15289,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
15230
15289
  return option2.label;
15231
15290
  };
15232
15291
  const getValue = (option2) => {
15292
+ if (!option2)
15293
+ return "";
15233
15294
  if (typeof option2 === "string")
15234
15295
  return option2;
15235
15296
  if (typeof option2 === "number")
@@ -15277,8 +15338,6 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
15277
15338
  watch(
15278
15339
  () => props2.modelValue,
15279
15340
  (newVal) => {
15280
- if (!newVal)
15281
- return;
15282
15341
  if (!props2.multiselect) {
15283
15342
  const newOption = props2.options.find((o2) => getValue(o2) === newVal) || newVal;
15284
15343
  if (!isSelected(newOption)) {
@@ -15296,7 +15355,6 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
15296
15355
  watch(
15297
15356
  () => props2.options,
15298
15357
  () => {
15299
- const original = JSON.stringify(props2.options.map(getValue));
15300
15358
  [...selectedItems.value].forEach((option2, i2) => {
15301
15359
  const exists = props2.options.find(
15302
15360
  (o2) => getValue(o2) === getValue(option2)
@@ -15306,9 +15364,6 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
15306
15364
  else
15307
15365
  selectedItems.value.splice(i2, 1, exists);
15308
15366
  });
15309
- const newSelection = JSON.stringify(selectedItems.value.map(getValue));
15310
- if (original !== newSelection)
15311
- emitUpdate();
15312
15367
  },
15313
15368
  { deep: true }
15314
15369
  );
@@ -15321,7 +15376,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
15321
15376
  class: "bagel-input selectinput"
15322
15377
  }, {
15323
15378
  popper: withCtx(({ hide: hide2 }) => [
15324
- createVNode(unref(_sfc_main$u), {
15379
+ createVNode(unref(_sfc_main$v), {
15325
15380
  class: "selectinput-options p-05",
15326
15381
  style: normalizeStyle({ width: _ctx.fullWidth ? "100%" : "auto" })
15327
15382
  }, {
@@ -15342,11 +15397,11 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
15342
15397
  key: `${option2}${i2}`,
15343
15398
  onClick: ($event) => select2(option2)
15344
15399
  }, [
15345
- isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$H), {
15400
+ isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$I), {
15346
15401
  key: 0,
15347
15402
  icon: "check"
15348
15403
  })) : createCommentVNode("", true),
15349
- !isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$H), {
15404
+ !isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$I), {
15350
15405
  key: 1,
15351
15406
  class: "opacity-3",
15352
15407
  icon: "fiber_manual_record"
@@ -15370,7 +15425,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
15370
15425
  class: normalizeClass(["selectinput-btn", { isEmpty: selectedItems.value.length === 0 }])
15371
15426
  }, [
15372
15427
  createElementVNode("p", null, toDisplayString(selectedLabel.value), 1),
15373
- createVNode(unref(_sfc_main$H), normalizeProps(guardReactiveProps({ icon: unref(open) ? "unfold_less" : "unfold_more" })), null, 16)
15428
+ createVNode(unref(_sfc_main$I), normalizeProps(guardReactiveProps({ icon: unref(open) ? "unfold_less" : "unfold_more" })), null, 16)
15374
15429
  ], 42, _hoisted_1$m),
15375
15430
  _ctx.required ? (openBlock(), createElementBlock("input", {
15376
15431
  key: 0,
@@ -15387,7 +15442,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
15387
15442
  };
15388
15443
  }
15389
15444
  });
15390
- const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-3e27cf1d"]]);
15445
+ const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-fdfda40b"]]);
15391
15446
  /*!
15392
15447
  * vue-draggable-next v2.2.0
15393
15448
  * (c) 2023 Anish George
@@ -18013,7 +18068,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
18013
18068
  key: row.id
18014
18069
  }, [
18015
18070
  createElementVNode("div", _hoisted_5$8, [
18016
- createVNode(unref(_sfc_main$H), { icon: "more_vert" })
18071
+ createVNode(unref(_sfc_main$I), { icon: "more_vert" })
18017
18072
  ]),
18018
18073
  (openBlock(true), createElementBlock(Fragment$1, null, renderList((_a3 = unref(entityMeta)) == null ? void 0 : _a3.fields, (field) => {
18019
18074
  return openBlock(), createElementBlock("div", {
@@ -18030,7 +18085,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
18030
18085
  ], 2);
18031
18086
  }), 128)),
18032
18087
  createElementVNode("div", _hoisted_6$4, [
18033
- createVNode(unref(_sfc_main$H), {
18088
+ createVNode(unref(_sfc_main$I), {
18034
18089
  icon: "delete",
18035
18090
  onClick: ($event) => removeRow2(index2)
18036
18091
  }, null, 8, ["onClick"])
@@ -18200,12 +18255,12 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
18200
18255
  ]),
18201
18256
  _ctx.helptext ? (openBlock(), createElementBlock("p", _hoisted_5$7, toDisplayString(_ctx.helptext), 1)) : createCommentVNode("", true)
18202
18257
  ], 8, _hoisted_2$g),
18203
- _ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$H), {
18258
+ _ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$I), {
18204
18259
  key: 0,
18205
18260
  class: "iconStart",
18206
18261
  icon: _ctx.iconStart
18207
18262
  }, null, 8, ["icon"])) : createCommentVNode("", true),
18208
- _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$H), {
18263
+ _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$I), {
18209
18264
  key: 1,
18210
18265
  icon: _ctx.icon
18211
18266
  }, null, 8, ["icon"])) : createCommentVNode("", true),
@@ -18244,7 +18299,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
18244
18299
  [vModelCheckbox, val.value]
18245
18300
  ]),
18246
18301
  createElementVNode("span", null, [
18247
- createVNode(unref(_sfc_main$H), { icon: "check" })
18302
+ createVNode(unref(_sfc_main$I), { icon: "check" })
18248
18303
  ])
18249
18304
  ]);
18250
18305
  };
@@ -18636,7 +18691,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
18636
18691
  style: normalizeStyle([`--p:${fileQ.progress}`, { "--b": "2px" }])
18637
18692
  }, [
18638
18693
  fileQ.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_12, toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : createCommentVNode("", true),
18639
- createVNode(unref(_sfc_main$H), {
18694
+ createVNode(unref(_sfc_main$I), {
18640
18695
  class: "success",
18641
18696
  icon: "check"
18642
18697
  })
@@ -42240,6 +42295,11 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
42240
42295
  command: () => focus2().setHardBreak().run(),
42241
42296
  icon: "keyboard_return"
42242
42297
  },
42298
+ {
42299
+ name: "Table",
42300
+ command: () => editor.value.chain().focus().insertTable({ rows: 3, cols: 3, withHeaderRow: true }).run(),
42301
+ icon: "table_chart"
42302
+ },
42243
42303
  {
42244
42304
  name: "Undo",
42245
42305
  command: () => focus2().undo().run(),
@@ -42257,11 +42317,6 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
42257
42317
  var _a2;
42258
42318
  return !((_a2 = editor.value) == null ? void 0 : _a2.can().chain().focus().redo().run());
42259
42319
  }
42260
- },
42261
- {
42262
- name: "Table",
42263
- command: () => editor.value.chain().focus().insertTable({ rows: 3, cols: 3, withHeaderRow: true }).run(),
42264
- icon: "table"
42265
42320
  }
42266
42321
  ];
42267
42322
  const emit2 = __emit;
@@ -48736,7 +48791,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
48736
48791
  }
48737
48792
  return (_ctx, _cache) => {
48738
48793
  const _directive_tooltip = resolveDirective("tooltip");
48739
- return openBlock(), createBlock(unref(_sfc_main$u), {
48794
+ return openBlock(), createBlock(unref(_sfc_main$v), {
48740
48795
  class: normalizeClass(["flex column gap-05 pt-1 bgl_sidebar", { wideNav: unref(isOpen) }])
48741
48796
  }, {
48742
48797
  default: withCtx(() => [
@@ -48759,7 +48814,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
48759
48814
  class: "nav-button px-075"
48760
48815
  }, {
48761
48816
  default: withCtx(() => [
48762
- createVNode(unref(_sfc_main$H), {
48817
+ createVNode(unref(_sfc_main$I), {
48763
48818
  icon: nav2.icon,
48764
48819
  size: 1.4
48765
48820
  }, null, 8, ["icon"]),
@@ -48796,7 +48851,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
48796
48851
  },
48797
48852
  setup(__props) {
48798
48853
  return (_ctx, _cache) => {
48799
- return openBlock(), createBlock(unref(_sfc_main$u), { class: "hide m_grid gap-05 bgl_bottombar px-1 txt14 justify-content-start align-items-center overflow-x" }, {
48854
+ return openBlock(), createBlock(unref(_sfc_main$v), { class: "hide m_grid gap-05 bgl_bottombar px-1 txt14 justify-content-start align-items-center overflow-x" }, {
48800
48855
  default: withCtx(() => [
48801
48856
  renderSlot(_ctx.$slots, "brand", {}, void 0, true),
48802
48857
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.navLinks, (nav2, i2) => {
@@ -48807,7 +48862,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
48807
48862
  class: "m_h-auto"
48808
48863
  }, {
48809
48864
  default: withCtx(() => [
48810
- createVNode(unref(_sfc_main$H), {
48865
+ createVNode(unref(_sfc_main$I), {
48811
48866
  icon: nav2.icon,
48812
48867
  size: 1.4,
48813
48868
  class: "m-0"
@@ -48911,7 +48966,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
48911
48966
  onClick: ($event) => selectTab(tab),
48912
48967
  key: i2
48913
48968
  }, [
48914
- typeof tab !== "string" && tab.icon ? (openBlock(), createBlock(unref(_sfc_main$H), {
48969
+ typeof tab !== "string" && tab.icon ? (openBlock(), createBlock(unref(_sfc_main$I), {
48915
48970
  key: 0,
48916
48971
  icon: tab.icon
48917
48972
  }, null, 8, ["icon"])) : createCommentVNode("", true),
@@ -49006,7 +49061,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
49006
49061
  });
49007
49062
  const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fd61196d"]]);
49008
49063
  export {
49009
- _sfc_main$r as Accordion,
49064
+ _sfc_main$s as Accordion,
49010
49065
  AccordionItem,
49011
49066
  Alert,
49012
49067
  Avatar,
@@ -49018,7 +49073,7 @@ export {
49018
49073
  BglVideo,
49019
49074
  BottomMenu,
49020
49075
  Btn,
49021
- _sfc_main$u as Card,
49076
+ _sfc_main$v as Card,
49022
49077
  Carousel,
49023
49078
  CheckInput,
49024
49079
  Checkbox,
@@ -49028,18 +49083,19 @@ export {
49028
49083
  _sfc_main$c as DatePicker,
49029
49084
  kt$1 as Dropdown,
49030
49085
  $el as FileUpload,
49031
- _sfc_main$H as Icon,
49086
+ _sfc_main$I as Icon,
49032
49087
  JSONInput,
49033
49088
  Layout,
49034
49089
  _sfc_main$7 as Lineart,
49035
- _sfc_main$A as ListItem,
49036
- _sfc_main$B as ListView,
49037
- _sfc_main$H as MaterialIcon,
49038
- _sfc_main$E as Modal,
49090
+ _sfc_main$B as ListItem,
49091
+ _sfc_main$C as ListView,
49092
+ _sfc_main$I as MaterialIcon,
49093
+ _sfc_main$F as Modal,
49094
+ _sfc_main$n as ModalConfirm,
49039
49095
  ModalForm,
49040
49096
  ModalPlugin,
49041
49097
  NavBar,
49042
- _sfc_main$z as PageTitle,
49098
+ _sfc_main$A as PageTitle,
49043
49099
  RadioPillsInput,
49044
49100
  _sfc_main$8 as RichText,
49045
49101
  RouterWrapper,
@@ -49052,7 +49108,7 @@ export {
49052
49108
  _sfc_main$1 as TabsBody,
49053
49109
  TabsNav,
49054
49110
  TextInput,
49055
- _sfc_main$s as Title,
49111
+ _sfc_main$t as Title,
49056
49112
  ToggleInput,
49057
49113
  TopBar,
49058
49114
  bagelFormUtils,