@bagelink/vue 0.0.258 → 0.0.262

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
@@ -2183,6 +2183,7 @@ class BagelAuth {
2183
2183
  class Bagel {
2184
2184
  constructor({ host, onError }) {
2185
2185
  __publicField(this, "host");
2186
+ __publicField(this, "axiosInstance", axios);
2186
2187
  __publicField(this, "onError");
2187
2188
  __publicField(this, "read_table", null);
2188
2189
  __publicField(this, "auth", new BagelAuth(this));
@@ -14618,7 +14619,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
14618
14619
  });
14619
14620
  const _hoisted_1$F = { class: "full-nav" };
14620
14621
  const _hoisted_2$z = { class: "nav-scroll" };
14621
- const _hoisted_3$p = { class: "nav-links-wrapper" };
14622
+ const _hoisted_3$q = { class: "nav-links-wrapper" };
14622
14623
  const _hoisted_4$j = { class: "tooltip" };
14623
14624
  const _hoisted_5$g = { class: "bot-buttons-wrapper" };
14624
14625
  const _hoisted_6$b = { class: "tooltip" };
@@ -14653,7 +14654,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
14653
14654
  ], 32),
14654
14655
  createElementVNode("div", _hoisted_1$F, [
14655
14656
  createElementVNode("div", _hoisted_2$z, [
14656
- createElementVNode("div", _hoisted_3$p, [
14657
+ createElementVNode("div", _hoisted_3$q, [
14657
14658
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.links, (link) => {
14658
14659
  return openBlock(), createBlock(resolveDynamicComponent(link.to ? "router-link" : "div"), {
14659
14660
  class: "nav-button",
@@ -14908,13 +14909,15 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
14908
14909
  schema: { type: Function },
14909
14910
  onSubmit: { type: Function },
14910
14911
  onDelete: { type: Function },
14911
- "onUpdate:isModalVisible": { type: Function }
14912
+ "onUpdate:isModalVisible": { type: Function },
14913
+ onError: { type: Function }
14912
14914
  }, {
14913
14915
  "modelValue": { default: {} },
14914
14916
  "modelModifiers": {}
14915
14917
  }),
14916
14918
  emits: ["update:modelValue"],
14917
14919
  setup(__props) {
14920
+ const bagel = useBagel();
14918
14921
  const props2 = __props;
14919
14922
  const modal = ref();
14920
14923
  const computedFormSchema = computed(() => {
@@ -14929,14 +14932,17 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
14929
14932
  return (_a2 = modal.value) == null ? void 0 : _a2.closeModal();
14930
14933
  };
14931
14934
  const runSubmit = async () => {
14932
- var _a2, _b, _c;
14935
+ var _a2, _b, _c, _d;
14933
14936
  if (((_b = (_a2 = form.value) == null ? void 0 : _a2.validateForm) == null ? void 0 : _b.call(_a2)) === false)
14934
14937
  return;
14935
14938
  try {
14936
14939
  await ((_c = props2.onSubmit) == null ? void 0 : _c.call(props2, formData.value));
14937
14940
  closeModal();
14938
14941
  } catch (err) {
14939
- console.error(err);
14942
+ if (props2.onError)
14943
+ props2.onError(err);
14944
+ else
14945
+ (_d = bagel == null ? void 0 : bagel.onError) == null ? void 0 : _d.call(bagel, err);
14940
14946
  }
14941
14947
  };
14942
14948
  const runDelete = () => {
@@ -14995,7 +15001,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
14995
15001
  };
14996
15002
  }
14997
15003
  });
14998
- const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-753a1016"]]);
15004
+ const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-82698669"]]);
14999
15005
  const _hoisted_1$C = { class: "accordion-item" };
15000
15006
  const _hoisted_2$w = {
15001
15007
  key: 0,
@@ -15040,7 +15046,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
15040
15046
  const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-172f43f1"]]);
15041
15047
  const _hoisted_1$B = { class: "card list-view grid thin" };
15042
15048
  const _hoisted_2$v = { class: "list-header flex gap-3 align-items-top" };
15043
- const _hoisted_3$o = {
15049
+ const _hoisted_3$p = {
15044
15050
  key: 0,
15045
15051
  class: "bagel-input search-wrap"
15046
15052
  };
@@ -15064,7 +15070,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
15064
15070
  return (_ctx, _cache) => {
15065
15071
  return openBlock(), createElementBlock("div", _hoisted_1$B, [
15066
15072
  createElementVNode("div", _hoisted_2$v, [
15067
- _ctx.enableSearch ? (openBlock(), createElementBlock("div", _hoisted_3$o, [
15073
+ _ctx.enableSearch ? (openBlock(), createElementBlock("div", _hoisted_3$p, [
15068
15074
  withDirectives(createElementVNode("input", {
15069
15075
  placeholder: _ctx.searchPlaceholder,
15070
15076
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchTerm.value = $event),
@@ -15133,7 +15139,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
15133
15139
  });
15134
15140
  const _hoisted_1$z = { class: "card tabs-top" };
15135
15141
  const _hoisted_2$t = { class: "tabs grid auto-flow-columns fit-content" };
15136
- const _hoisted_3$n = ["onClick"];
15142
+ const _hoisted_3$o = ["onClick"];
15137
15143
  const _sfc_main$t = /* @__PURE__ */ defineComponent({
15138
15144
  __name: "TabbedLayout",
15139
15145
  props: {
@@ -15180,7 +15186,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
15180
15186
  }, "tab"]),
15181
15187
  key: tab,
15182
15188
  onClick: ($event) => changeTab(tab)
15183
- }, toDisplayString(tab), 11, _hoisted_3$n);
15189
+ }, toDisplayString(tab), 11, _hoisted_3$o);
15184
15190
  }), 128))
15185
15191
  ])
15186
15192
  ]),
@@ -15199,7 +15205,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
15199
15205
  const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-09fce741"]]);
15200
15206
  const _hoisted_1$y = { class: "comments-wrap" };
15201
15207
  const _hoisted_2$s = { class: "comment-list" };
15202
- const _hoisted_3$m = { class: "comment-top" };
15208
+ const _hoisted_3$n = { class: "comment-top" };
15203
15209
  const _hoisted_4$h = { class: "comment-owner" };
15204
15210
  const _hoisted_5$e = { class: "comment-time" };
15205
15211
  const _hoisted_6$a = { class: "comment-actions" };
@@ -15259,7 +15265,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
15259
15265
  }, "comment"]),
15260
15266
  key: comment.id
15261
15267
  }, [
15262
- createElementVNode("div", _hoisted_3$m, [
15268
+ createElementVNode("div", _hoisted_3$n, [
15263
15269
  createElementVNode("div", _hoisted_4$h, toDisplayString(comment.sender.first_name) + " " + toDisplayString(comment.sender.last_name), 1),
15264
15270
  createElementVNode("div", _hoisted_5$e, toDisplayString(comment.updated_at.split("T")[0]), 1),
15265
15271
  createElementVNode("div", _hoisted_6$a, [
@@ -15341,7 +15347,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
15341
15347
  });
15342
15348
  const _hoisted_1$w = { class: "table-list-wrap h-100" };
15343
15349
  const _hoisted_2$q = { class: "infinite-wrapper" };
15344
- const _hoisted_3$l = { class: "row first-row" };
15350
+ const _hoisted_3$m = { class: "row first-row" };
15345
15351
  const _hoisted_4$g = ["onClick"];
15346
15352
  const _hoisted_5$d = { class: "flex" };
15347
15353
  const _hoisted_6$9 = ["onClick"];
@@ -15382,7 +15388,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
15382
15388
  return (_ctx, _cache) => {
15383
15389
  return openBlock(), createElementBlock("div", _hoisted_1$w, [
15384
15390
  createElementVNode("table", _hoisted_2$q, [
15385
- createElementVNode("thead", _hoisted_3$l, [
15391
+ createElementVNode("thead", _hoisted_3$m, [
15386
15392
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(computedSchema.value, (field) => {
15387
15393
  return openBlock(), createElementBlock("th", {
15388
15394
  class: "col",
@@ -15438,7 +15444,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
15438
15444
  };
15439
15445
  }
15440
15446
  });
15441
- const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-555ad739"]]);
15447
+ const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-2137a7a8"]]);
15442
15448
  const _sfc_main$p = {};
15443
15449
  const _hoisted_1$v = { class: "flex space-between" };
15444
15450
  function _sfc_render$1(_ctx, _cache) {
@@ -15478,7 +15484,7 @@ const _hoisted_2$p = {
15478
15484
  key: 0,
15479
15485
  class: "data-row"
15480
15486
  };
15481
- const _hoisted_3$k = { class: "key" };
15487
+ const _hoisted_3$l = { class: "key" };
15482
15488
  const _hoisted_4$f = { key: 1 };
15483
15489
  const _hoisted_5$c = { class: "key" };
15484
15490
  const _hoisted_6$8 = { class: "vlue" };
@@ -15506,7 +15512,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
15506
15512
  key: field.id
15507
15513
  }, [
15508
15514
  unref(iffer)(field, itemData.value) ? (openBlock(), createElementBlock("div", _hoisted_2$p, [
15509
- createElementVNode("div", _hoisted_3$k, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1),
15515
+ createElementVNode("div", _hoisted_3$l, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1),
15510
15516
  createVNode(unref(_sfc_main$h), {
15511
15517
  field,
15512
15518
  modelValue: itemData.value,
@@ -15612,7 +15618,7 @@ const _hoisted_2$o = {
15612
15618
  key: 0,
15613
15619
  class: "group-wrap"
15614
15620
  };
15615
- const _hoisted_3$j = { class: "group-title" };
15621
+ const _hoisted_3$k = { class: "group-title" };
15616
15622
  const _hoisted_4$e = {
15617
15623
  key: 1,
15618
15624
  class: "bar-wrap"
@@ -15680,7 +15686,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
15680
15686
  key: i2
15681
15687
  }, [
15682
15688
  item.group ? (openBlock(), createElementBlock("div", _hoisted_2$o, [
15683
- createElementVNode("p", _hoisted_3$j, toDisplayString(item.group), 1),
15689
+ createElementVNode("p", _hoisted_3$k, toDisplayString(item.group), 1),
15684
15690
  (openBlock(true), createElementBlock(Fragment$1, null, renderList((item == null ? void 0 : item.data) || [], (nested, i22) => {
15685
15691
  return openBlock(), createElementBlock("div", {
15686
15692
  key: i22,
@@ -15918,7 +15924,7 @@ const _hoisted_2$n = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ create
15918
15924
  }, [
15919
15925
  /* @__PURE__ */ createElementVNode("path", { d: "M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z" })
15920
15926
  ], -1));
15921
- const _hoisted_3$i = [
15927
+ const _hoisted_3$j = [
15922
15928
  _hoisted_2$n
15923
15929
  ];
15924
15930
  const _hoisted_4$d = ["id"];
@@ -15944,7 +15950,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
15944
15950
  createElementVNode("div", {
15945
15951
  class: normalizeClass(["check-square", { checked: checked.value }]),
15946
15952
  onClick: _cache[0] || (_cache[0] = ($event) => checked.value = !checked.value)
15947
- }, _hoisted_3$i, 2),
15953
+ }, _hoisted_3$j, 2),
15948
15954
  createElementVNode("label", null, [
15949
15955
  withDirectives(createElementVNode("input", {
15950
15956
  id: _ctx.id,
@@ -24621,7 +24627,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
24621
24627
  });
24622
24628
  const _hoisted_1$p = ["title"];
24623
24629
  const _hoisted_2$l = { key: 0 };
24624
- const _hoisted_3$h = ["value", "placeholder"];
24630
+ const _hoisted_3$i = ["value", "placeholder"];
24625
24631
  const _sfc_main$e = /* @__PURE__ */ defineComponent({
24626
24632
  __name: "JSONInput",
24627
24633
  props: {
@@ -24653,7 +24659,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
24653
24659
  onInput: handleInput,
24654
24660
  class: normalizeClass({ "no-edit": !_ctx.editMode }),
24655
24661
  placeholder: _ctx.placeholder
24656
- }, null, 42, _hoisted_3$h)
24662
+ }, null, 42, _hoisted_3$i)
24657
24663
  ], 10, _hoisted_1$p);
24658
24664
  };
24659
24665
  }
@@ -25651,7 +25657,7 @@ const _hoisted_1$o = {
25651
25657
  class: "multiselect__tags"
25652
25658
  };
25653
25659
  const _hoisted_2$k = { class: "multiselect__tags-wrap" };
25654
- const _hoisted_3$g = { class: "multiselect__spinner" };
25660
+ const _hoisted_3$h = { class: "multiselect__spinner" };
25655
25661
  const _hoisted_4$c = { key: 0 };
25656
25662
  const _hoisted_5$a = { class: "multiselect__option" };
25657
25663
  const _hoisted_6$6 = { class: "multiselect__option" };
@@ -25746,7 +25752,7 @@ function render$e(_ctx, _cache, $props, $setup, $data, $options) {
25746
25752
  renderSlot(_ctx.$slots, "loading", {}, () => [
25747
25753
  withDirectives(createVNode(
25748
25754
  "div",
25749
- _hoisted_3$g,
25755
+ _hoisted_3$h,
25750
25756
  null,
25751
25757
  512
25752
25758
  /* NEED_PATCH */
@@ -25966,6 +25972,7 @@ script$e.render = render$e;
25966
25972
  const Multiselect = script$e;
25967
25973
  const _hoisted_1$n = { class: "pb-1" };
25968
25974
  const _hoisted_2$j = ["for"];
25975
+ const _hoisted_3$g = ["name", "required"];
25969
25976
  const _sfc_main$d = /* @__PURE__ */ defineComponent({
25970
25977
  __name: "SelectInput",
25971
25978
  props: {
@@ -25975,7 +25982,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
25975
25982
  modelValue: {},
25976
25983
  placeholder: {},
25977
25984
  defaultValue: {},
25978
- options: {}
25985
+ options: {},
25986
+ extraProps: {}
25979
25987
  },
25980
25988
  emits: ["update:modelValue"],
25981
25989
  setup(__props, { emit: __emit }) {
@@ -26014,7 +26022,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
26014
26022
  for: _ctx.id
26015
26023
  }, [
26016
26024
  createTextVNode(toDisplayString(_ctx.label) + " ", 1),
26017
- createVNode(unref(Multiselect), {
26025
+ createVNode(unref(Multiselect), mergeProps({
26018
26026
  ref_key: "multiselect",
26019
26027
  ref: multiselect,
26020
26028
  id: _ctx.id,
@@ -26025,7 +26033,15 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
26025
26033
  placeholder: _ctx.placeholder,
26026
26034
  modelValue: seletValue.value,
26027
26035
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => seletValue.value = $event)
26028
- }, null, 8, ["id", "options", "required", "placeholder", "modelValue"])
26036
+ }, _ctx.extraProps), null, 16, ["id", "options", "required", "placeholder", "modelValue"]),
26037
+ withDirectives(createElementVNode("input", mergeProps({
26038
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => seletValue.value = $event),
26039
+ type: "hidden",
26040
+ name: _ctx.id,
26041
+ required: _ctx.required
26042
+ }, _ctx.extraProps), null, 16, _hoisted_3$g), [
26043
+ [vModelText, seletValue.value]
26044
+ ])
26029
26045
  ], 8, _hoisted_2$j)
26030
26046
  ]);
26031
26047
  };
@@ -28827,7 +28843,16 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
28827
28843
  );
28828
28844
  return (_ctx, _cache) => {
28829
28845
  return openBlock(), createElementBlock("div", {
28830
- class: normalizeClass(["bagel-input text-input", { dense: _ctx.dense, small: _ctx.small, shrink: _ctx.shrink, toggleEdit: _ctx.toggleEdit, editMode: unref(editMode), textInputIconWrap: _ctx.icon, txtInputIconStart: _ctx.iconStart, code: _ctx.code }]),
28846
+ class: normalizeClass(["bagel-input text-input", {
28847
+ dense: _ctx.dense,
28848
+ small: _ctx.small,
28849
+ shrink: _ctx.shrink,
28850
+ toggleEdit: _ctx.toggleEdit,
28851
+ editMode: unref(editMode),
28852
+ code: _ctx.code,
28853
+ textInputIconWrap: _ctx.icon,
28854
+ txtInputIconStart: _ctx.iconStart
28855
+ }]),
28831
28856
  title: _ctx.title
28832
28857
  }, [
28833
28858
  createElementVNode("label", { for: _ctx.id }, [
@@ -28887,14 +28912,14 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
28887
28912
  };
28888
28913
  }
28889
28914
  });
28890
- const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-8c868409"]]);
28915
+ const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-e116816b"]]);
28891
28916
  const _hoisted_1$j = ["title"];
28892
28917
  const _hoisted_2$f = { key: 0 };
28893
28918
  const _hoisted_3$c = {
28894
28919
  key: 1,
28895
28920
  class: "character-limit"
28896
28921
  };
28897
- const _hoisted_4$9 = ["value"];
28922
+ const _hoisted_4$9 = ["value", "required"];
28898
28923
  const _sfc_main$9 = /* @__PURE__ */ defineComponent({
28899
28924
  __name: "TextArea",
28900
28925
  props: {
@@ -28905,7 +28930,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
28905
28930
  editMode: { type: Boolean, default: true },
28906
28931
  small: { type: Boolean },
28907
28932
  nativeInputAttrs: {},
28908
- showCharacterLimit: { type: Boolean }
28933
+ showCharacterLimit: { type: Boolean },
28934
+ required: { type: Boolean }
28909
28935
  },
28910
28936
  emits: ["update:modelValue"],
28911
28937
  setup(__props, { emit: __emit }) {
@@ -28928,12 +28954,12 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
28928
28954
  value: _ctx.modelValue,
28929
28955
  onInput: handleInput,
28930
28956
  class: { "no-edit": !_ctx.editMode }
28931
- }, _ctx.nativeInputAttrs), null, 16, _hoisted_4$9)
28957
+ }, _ctx.nativeInputAttrs, { required: _ctx.required }), null, 16, _hoisted_4$9)
28932
28958
  ], 10, _hoisted_1$j);
28933
28959
  };
28934
28960
  }
28935
28961
  });
28936
- const TextArea = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-a5b28c58"]]);
28962
+ const TextArea = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-64dc9f53"]]);
28937
28963
  const _hoisted_1$i = { class: "primary-checkbox" };
28938
28964
  const _sfc_main$8 = /* @__PURE__ */ defineComponent({
28939
28965
  __name: "Checkbox",
@@ -29166,7 +29192,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
29166
29192
  props: /* @__PURE__ */ mergeModels({
29167
29193
  label: {},
29168
29194
  multiple: { type: Boolean },
29169
- files: {}
29195
+ files: {},
29196
+ deleteEndpoint: {}
29170
29197
  }, {
29171
29198
  "modelValue": {},
29172
29199
  "modelModifiers": {}
@@ -29202,17 +29229,21 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
29202
29229
  const removeFile = (file) => {
29203
29230
  const index2 = storageFiles.value.indexOf(file);
29204
29231
  storageFiles.value.splice(index2, 1);
29232
+ if (props2.deleteEndpoint)
29233
+ void bagel.delete(`${props2.deleteEndpoint}/${file.id}`);
29205
29234
  };
29206
29235
  const flushQueue = () => {
29207
- fileQueue.value.forEach(async (file, i2) => {
29208
- if (!props2.multiple)
29209
- storageFiles.value.splice(0, 1);
29210
- const serverFile = await bagel.uploadFile(file.file, {
29211
- onUploadProgress: (e) => file.progress = e.progress * 100 - 1
29212
- });
29213
- storageFiles.value.push(serverFile);
29214
- fileQueue.value.splice(i2, 1);
29215
- });
29236
+ fileQueue.value.forEach(
29237
+ async (file, i2) => {
29238
+ if (!props2.multiple)
29239
+ storageFiles.value.splice(0, 1);
29240
+ const serverFile = await bagel.uploadFile(file.file, {
29241
+ onUploadProgress: (e) => file.progress = e.progress * 100 - 1
29242
+ });
29243
+ storageFiles.value.push(serverFile);
29244
+ fileQueue.value.splice(i2, 1);
29245
+ }
29246
+ );
29216
29247
  };
29217
29248
  const browse = () => {
29218
29249
  const input = document.createElement("input");
@@ -29244,7 +29275,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
29244
29275
  const drop3 = (e) => {
29245
29276
  preventDefault(e);
29246
29277
  if (e.dataTransfer) {
29247
- Array.from(e.dataTransfer.files).forEach((file) => fileQueue.value.push({ name: file.name, file, progress: 0 }));
29278
+ Array.from(e.dataTransfer.files).forEach(
29279
+ (file) => fileQueue.value.push({ name: file.name, file, progress: 0 })
29280
+ );
29248
29281
  }
29249
29282
  isDragOver.value = false;
29250
29283
  flushQueue();
@@ -29327,7 +29360,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
29327
29360
  };
29328
29361
  }
29329
29362
  });
29330
- const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-7deb423e"]]);
29363
+ const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-1be8d7b1"]]);
29331
29364
  const _withScopeId = (n) => (pushScopeId("data-v-13b65ea3"), n = n(), popScopeId(), n);
29332
29365
  const _hoisted_1$d = ["title"];
29333
29366
  const _hoisted_2$a = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "slider round" }, null, -1));
@@ -16,6 +16,7 @@ interface ModalFormOptions {
16
16
  modelValue?: Record<string, any>;
17
17
  onSubmit?: (formData: any) => Promise<any>;
18
18
  onDelete?: (id: string) => Promise<void>;
19
+ onError?: ((err: any) => void);
19
20
  }
20
21
  interface ModalApi {
21
22
  showModal: (options: ModalOptions, slots?: Record<string, any>) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../src/plugins/modal.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACf,MAAM,KAAK,CAAC;AACb,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGhE,UAAU,YAAY;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED,UAAU,gBAAgB;IACzB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,EAAE,cAA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