@bagelink/vue 0.0.400 → 0.0.402

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