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