@bagelink/vue 0.0.138 → 0.0.142

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
@@ -1,4 +1,4 @@
1
- import { inject, ref, defineComponent, h, openBlock, createElementBlock, Fragment as Fragment$1, createElementVNode, createTextVNode, toDisplayString, watch, onMounted, withKeys, withModifiers, normalizeStyle, resolveComponent, normalizeClass, renderSlot, renderList, createBlock, withCtx, useSlots, resolveDynamicComponent, unref, createCommentVNode, mergeProps, createVNode, withDirectives, vModelText, isRef, computed, reactive, Transition, useCssVars, pushScopeId, popScopeId, markRaw, vModelCheckbox, onUnmounted, Teleport, vModelDynamic, TransitionGroup, provide } from "vue";
1
+ import { inject, ref, defineComponent, h, openBlock, createElementBlock, Fragment as Fragment$1, createElementVNode, createTextVNode, toDisplayString, watch, onMounted, withKeys, withModifiers, normalizeStyle, resolveComponent, normalizeClass, renderSlot, renderList, createBlock, withCtx, useSlots, resolveDynamicComponent, unref, createCommentVNode, onUnmounted, mergeProps, createVNode, withDirectives, vModelText, isRef, computed, reactive, Transition, useCssVars, pushScopeId, popScopeId, markRaw, vModelCheckbox, Teleport, vModelDynamic, TransitionGroup, provide } from "vue";
2
2
  function bind$2(fn, thisArg) {
3
3
  return function wrap2() {
4
4
  return fn.apply(thisArg, arguments);
@@ -2267,6 +2267,9 @@ const useModal = () => {
2267
2267
  const ModalPlugin = {
2268
2268
  install: (app) => {
2269
2269
  const modalStack = ref([]);
2270
+ const hideModal = (index2) => {
2271
+ modalStack.value.splice(index2, 1);
2272
+ };
2270
2273
  const showModal = (isForm, options, slots = {}) => {
2271
2274
  modalStack.value.push({
2272
2275
  modalOptions: options,
@@ -2274,9 +2277,6 @@ const ModalPlugin = {
2274
2277
  componentSlots: slots
2275
2278
  });
2276
2279
  };
2277
- const hideModal = (index2) => {
2278
- modalStack.value.splice(index2, 1);
2279
- };
2280
2280
  app.provide(ModalSymbol, {
2281
2281
  modalForm: (options, slots) => showModal(true, options, slots),
2282
2282
  showModal: (options, slots) => showModal(false, options, slots),
@@ -2286,7 +2286,7 @@ const ModalPlugin = {
2286
2286
  const ModalComponent = defineComponent({
2287
2287
  data() {
2288
2288
  return {
2289
- modalStack
2289
+ modalStack: modalStack.value
2290
2290
  };
2291
2291
  },
2292
2292
  render() {
@@ -2362,6 +2362,11 @@ const useFormkit = () => {
2362
2362
  return formkit;
2363
2363
  };
2364
2364
  const initials = (...strArr) => strArr.map((str) => str == null ? void 0 : str.charAt(0)).join("");
2365
+ function useEscape(event, closeModel) {
2366
+ if (event.key === "Escape") {
2367
+ closeModel();
2368
+ }
2369
+ }
2365
2370
  const _hoisted_1$V = { ref: "el" };
2366
2371
  const _sfc_main$P = /* @__PURE__ */ defineComponent({
2367
2372
  __name: "LangText",
@@ -14732,11 +14737,6 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
14732
14737
  emits: ["update:isModalVisible"],
14733
14738
  setup(__props, { emit: __emit }) {
14734
14739
  let isActive = ref(false);
14735
- onMounted(() => {
14736
- setTimeout(() => {
14737
- isActive.value = true;
14738
- }, 1);
14739
- });
14740
14740
  const emit2 = __emit;
14741
14741
  const closeModal = () => {
14742
14742
  isActive.value = false;
@@ -14744,6 +14744,22 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
14744
14744
  emit2("update:isModalVisible", false);
14745
14745
  }, 200);
14746
14746
  };
14747
+ const escapeKeyClose = (e) => useEscape(e, () => closeModal());
14748
+ onMounted(() => {
14749
+ setTimeout(() => {
14750
+ isActive.value = true;
14751
+ }, 1);
14752
+ document.addEventListener(
14753
+ "keydown",
14754
+ escapeKeyClose
14755
+ );
14756
+ });
14757
+ onUnmounted(() => {
14758
+ document.removeEventListener(
14759
+ "keydown",
14760
+ escapeKeyClose
14761
+ );
14762
+ });
14747
14763
  return (_ctx, _cache) => {
14748
14764
  return openBlock(), createElementBlock("div", {
14749
14765
  class: normalizeClass(["bg-dark", { "is-side": _ctx.side, "is-active": unref(isActive) }]),
@@ -15128,11 +15144,6 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
15128
15144
  return props2.schema;
15129
15145
  });
15130
15146
  let isActive = ref(false);
15131
- onMounted(() => {
15132
- setTimeout(() => {
15133
- isActive.value = true;
15134
- }, 1);
15135
- });
15136
15147
  const emit2 = __emit;
15137
15148
  const handleEmit = (value) => {
15138
15149
  emit2("update:modelValue", value);
@@ -15157,6 +15168,22 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
15157
15168
  (_b = props2.onDelete) == null ? void 0 : _b.call(props2, (_a = props2.modelValue) == null ? void 0 : _a.id);
15158
15169
  closeModal();
15159
15170
  };
15171
+ const escapeKeyClose = (e) => useEscape(e, () => closeModal());
15172
+ onMounted(() => {
15173
+ setTimeout(() => {
15174
+ isActive.value = true;
15175
+ }, 1);
15176
+ document.addEventListener(
15177
+ "keydown",
15178
+ escapeKeyClose
15179
+ );
15180
+ });
15181
+ onUnmounted(() => {
15182
+ document.removeEventListener(
15183
+ "keydown",
15184
+ escapeKeyClose
15185
+ );
15186
+ });
15160
15187
  return (_ctx, _cache) => {
15161
15188
  return openBlock(), createElementBlock("div", {
15162
15189
  class: normalizeClass(["bg-dark", { "is-side": _ctx.side, "is-active": unref(isActive) }]),
@@ -15190,7 +15217,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
15190
15217
  };
15191
15218
  }
15192
15219
  });
15193
- const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-665350cb"]]);
15220
+ const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-ca1b8501"]]);
15194
15221
  const _hoisted_1$J = {
15195
15222
  key: 0,
15196
15223
  class: "data"
@@ -17048,6 +17075,10 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
17048
17075
  setup(__props) {
17049
17076
  const bagel = useBagel();
17050
17077
  const props2 = __props;
17078
+ const formPlaceholders = computed(() => {
17079
+ var _a, _b;
17080
+ return (_b = (_a = props2.context) == null ? void 0 : _a.attrs) == null ? void 0 : _b.formPlaceholders;
17081
+ });
17051
17082
  let val = ref([]);
17052
17083
  let deleteCandidate = ref(-1);
17053
17084
  const del2 = (i2) => {
@@ -17090,22 +17121,22 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
17090
17121
  return openBlock(), createElementBlock("div", _hoisted_1$C, [
17091
17122
  createElementVNode("div", _hoisted_2$x, [
17092
17123
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(val), (contact, i2) => {
17093
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
17124
+ var _a, _b, _c, _d, _e, _f;
17094
17125
  return openBlock(), createElementBlock("div", {
17095
17126
  class: "bglform-contact mb-2",
17096
17127
  key: i2
17097
17128
  }, [
17098
17129
  unref(deleteCandidate) === i2 ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
17099
- createElementVNode("p", _hoisted_4$g, toDisplayString((_b = (_a = _ctx.context) == null ? void 0 : _a.formPlaceholders) == null ? void 0 : _b.sure), 1),
17130
+ createElementVNode("p", _hoisted_4$g, toDisplayString((_a = formPlaceholders.value) == null ? void 0 : _a.sure), 1),
17100
17131
  createVNode(unref(Btn), {
17101
17132
  thin: "",
17102
17133
  color: "red",
17103
17134
  onClick: ($event) => deleteContact(contact.id)
17104
17135
  }, {
17105
17136
  default: withCtx(() => {
17106
- var _a2, _b2;
17137
+ var _a2;
17107
17138
  return [
17108
- createTextVNode(toDisplayString((_b2 = (_a2 = _ctx.context) == null ? void 0 : _a2.formPlaceholders) == null ? void 0 : _b2.delete), 1)
17139
+ createTextVNode(toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.delete), 1)
17109
17140
  ];
17110
17141
  }),
17111
17142
  _: 2
@@ -17115,9 +17146,9 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
17115
17146
  onClick: _cache[0] || (_cache[0] = ($event) => isRef(deleteCandidate) ? deleteCandidate.value = -1 : deleteCandidate = -1)
17116
17147
  }, {
17117
17148
  default: withCtx(() => {
17118
- var _a2, _b2;
17149
+ var _a2;
17119
17150
  return [
17120
- createTextVNode(toDisplayString((_b2 = (_a2 = _ctx.context) == null ? void 0 : _a2.formPlaceholders) == null ? void 0 : _b2.cancel), 1)
17151
+ createTextVNode(toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.cancel), 1)
17121
17152
  ];
17122
17153
  }),
17123
17154
  _: 1
@@ -17131,22 +17162,22 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
17131
17162
  class: "bglform-contact-label",
17132
17163
  "onUpdate:modelValue": ($event) => contact.label = $event,
17133
17164
  type: "text",
17134
- placeholder: (_d = (_c = _ctx.context) == null ? void 0 : _c.formPlaceholders) == null ? void 0 : _d.label
17165
+ placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
17135
17166
  }, null, 8, _hoisted_5$e), [
17136
17167
  [vModelText, contact.label]
17137
17168
  ]),
17138
- ((_e = _ctx.context) == null ? void 0 : _e.id) === "email" ? withDirectives((openBlock(), createElementBlock("input", {
17169
+ ((_c = _ctx.context) == null ? void 0 : _c.id) === "email" ? withDirectives((openBlock(), createElementBlock("input", {
17139
17170
  key: 1,
17140
17171
  "onUpdate:modelValue": ($event) => contact.email = $event,
17141
- placeholder: (_g = (_f = _ctx.context) == null ? void 0 : _f.formPlaceholders) == null ? void 0 : _g.email,
17172
+ placeholder: (_d = formPlaceholders.value) == null ? void 0 : _d.email,
17142
17173
  type: "email"
17143
17174
  }, null, 8, _hoisted_6$b)), [
17144
17175
  [vModelText, contact.email]
17145
17176
  ]) : createCommentVNode("", true),
17146
- ((_h = _ctx.context) == null ? void 0 : _h.id) === "phone" ? withDirectives((openBlock(), createElementBlock("input", {
17177
+ ((_e = _ctx.context) == null ? void 0 : _e.id) === "phone" ? withDirectives((openBlock(), createElementBlock("input", {
17147
17178
  key: 2,
17148
17179
  "onUpdate:modelValue": ($event) => contact.phone = $event,
17149
- placeholder: (_j = (_i = _ctx.context) == null ? void 0 : _i.formPlaceholders) == null ? void 0 : _j.phone,
17180
+ placeholder: (_f = formPlaceholders.value) == null ? void 0 : _f.phone,
17150
17181
  type: "tel"
17151
17182
  }, null, 8, _hoisted_7$7)), [
17152
17183
  [vModelText, contact.phone]
@@ -17168,9 +17199,9 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
17168
17199
  onClick: _cache[1] || (_cache[1] = ($event) => unref(val).push({}))
17169
17200
  }, {
17170
17201
  default: withCtx(() => {
17171
- var _a, _b, _c;
17202
+ var _a, _b;
17172
17203
  return [
17173
- createTextVNode(toDisplayString((_b = (_a = _ctx.context) == null ? void 0 : _a.formPlaceholders) == null ? void 0 : _b.add) + " " + toDisplayString((_c = _ctx.context) == null ? void 0 : _c.label), 1)
17204
+ createTextVNode(toDisplayString((_a = formPlaceholders.value) == null ? void 0 : _a.add) + " " + toDisplayString((_b = _ctx.context) == null ? void 0 : _b.label), 1)
17174
17205
  ];
17175
17206
  }),
17176
17207
  _: 1
@@ -17180,7 +17211,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
17180
17211
  };
17181
17212
  }
17182
17213
  });
17183
- const ContactArrayFormKit = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-33e63930"]]);
17214
+ const ContactArrayFormKit = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-0533667e"]]);
17184
17215
  const _hoisted_1$B = { class: "bagel-input" };
17185
17216
  const _hoisted_2$w = { class: "mt-1" };
17186
17217
  const _hoisted_3$t = {
@@ -17204,6 +17235,10 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
17204
17235
  setup(__props) {
17205
17236
  const bagel = useBagel();
17206
17237
  const props2 = __props;
17238
+ const formPlaceholders = computed(() => {
17239
+ var _a, _b;
17240
+ return (_b = (_a = props2.context) == null ? void 0 : _a.attrs) == null ? void 0 : _b.formPlaceholders;
17241
+ });
17207
17242
  let val = ref([]);
17208
17243
  const addNew = () => {
17209
17244
  if (!val.value)
@@ -17252,22 +17287,22 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
17252
17287
  return openBlock(), createElementBlock("div", _hoisted_1$B, [
17253
17288
  createElementVNode("div", _hoisted_2$w, [
17254
17289
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(val), (address, i2) => {
17255
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
17290
+ var _a, _b, _c, _d, _e, _f;
17256
17291
  return openBlock(), createElementBlock("div", {
17257
17292
  class: "bglform-contact mb-3",
17258
17293
  key: i2
17259
17294
  }, [
17260
17295
  unref(deleteCandidate) === i2 ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
17261
- createElementVNode("p", _hoisted_4$f, toDisplayString((_b = (_a = _ctx.context) == null ? void 0 : _a.formPlaceholders) == null ? void 0 : _b.sure), 1),
17296
+ createElementVNode("p", _hoisted_4$f, toDisplayString((_a = formPlaceholders.value) == null ? void 0 : _a.sure), 1),
17262
17297
  createVNode(unref(Btn), {
17263
17298
  thin: "",
17264
17299
  color: "red",
17265
17300
  onClick: ($event) => deleteContact(address.id)
17266
17301
  }, {
17267
17302
  default: withCtx(() => {
17268
- var _a2, _b2;
17303
+ var _a2;
17269
17304
  return [
17270
- createTextVNode(toDisplayString((_b2 = (_a2 = _ctx.context) == null ? void 0 : _a2.formPlaceholders) == null ? void 0 : _b2.delete), 1)
17305
+ createTextVNode(toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.delete), 1)
17271
17306
  ];
17272
17307
  }),
17273
17308
  _: 2
@@ -17277,9 +17312,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
17277
17312
  onClick: _cache[0] || (_cache[0] = ($event) => isRef(deleteCandidate) ? deleteCandidate.value = -1 : deleteCandidate = -1)
17278
17313
  }, {
17279
17314
  default: withCtx(() => {
17280
- var _a2, _b2;
17315
+ var _a2;
17281
17316
  return [
17282
- createTextVNode(toDisplayString((_b2 = (_a2 = _ctx.context) == null ? void 0 : _a2.formPlaceholders) == null ? void 0 : _b2.cancel), 1)
17317
+ createTextVNode(toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.cancel), 1)
17283
17318
  ];
17284
17319
  }),
17285
17320
  _: 1
@@ -17293,14 +17328,14 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
17293
17328
  class: "bglform-contact-label",
17294
17329
  "onUpdate:modelValue": ($event) => address.label = $event,
17295
17330
  type: "text",
17296
- placeholder: (_d = (_c = _ctx.context) == null ? void 0 : _c.formPlaceholders) == null ? void 0 : _d.label
17331
+ placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
17297
17332
  }, null, 8, _hoisted_5$d), [
17298
17333
  [vModelText, address.label]
17299
17334
  ]),
17300
17335
  createElementVNode("div", _hoisted_6$a, [
17301
17336
  withDirectives(createElementVNode("input", {
17302
17337
  "onUpdate:modelValue": ($event) => address.street = $event,
17303
- placeholder: (_f = (_e = _ctx.context) == null ? void 0 : _e.formPlaceholders) == null ? void 0 : _f.street,
17338
+ placeholder: (_c = formPlaceholders.value) == null ? void 0 : _c.street,
17304
17339
  type: "text"
17305
17340
  }, null, 8, _hoisted_7$6), [
17306
17341
  [vModelText, address.street]
@@ -17308,14 +17343,14 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
17308
17343
  createElementVNode("div", _hoisted_8$3, [
17309
17344
  withDirectives(createElementVNode("input", {
17310
17345
  "onUpdate:modelValue": ($event) => address.city = $event,
17311
- placeholder: (_h = (_g = _ctx.context) == null ? void 0 : _g.formPlaceholders) == null ? void 0 : _h.city,
17346
+ placeholder: (_d = formPlaceholders.value) == null ? void 0 : _d.city,
17312
17347
  type: "text"
17313
17348
  }, null, 8, _hoisted_9$3), [
17314
17349
  [vModelText, address.city]
17315
17350
  ]),
17316
17351
  withDirectives(createElementVNode("input", {
17317
17352
  "onUpdate:modelValue": ($event) => address.postal_code = $event,
17318
- placeholder: (_j = (_i = _ctx.context) == null ? void 0 : _i.formPlaceholders) == null ? void 0 : _j.zip,
17353
+ placeholder: (_e = formPlaceholders.value) == null ? void 0 : _e.zip,
17319
17354
  type: "text"
17320
17355
  }, null, 8, _hoisted_10$2), [
17321
17356
  [vModelText, address.postal_code]
@@ -17323,7 +17358,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
17323
17358
  ]),
17324
17359
  withDirectives(createElementVNode("input", {
17325
17360
  "onUpdate:modelValue": ($event) => address.country = $event,
17326
- placeholder: (_l = (_k = _ctx.context) == null ? void 0 : _k.formPlaceholders) == null ? void 0 : _l.country,
17361
+ placeholder: (_f = formPlaceholders.value) == null ? void 0 : _f.country,
17327
17362
  type: "text"
17328
17363
  }, null, 8, _hoisted_11$1), [
17329
17364
  [vModelText, address.country]
@@ -17347,9 +17382,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
17347
17382
  onClick: addNew
17348
17383
  }, {
17349
17384
  default: withCtx(() => {
17350
- var _a, _b, _c;
17385
+ var _a, _b;
17351
17386
  return [
17352
- createTextVNode(toDisplayString((_b = (_a = _ctx.context) == null ? void 0 : _a.formPlaceholders) == null ? void 0 : _b.add) + " " + toDisplayString((_c = _ctx.context) == null ? void 0 : _c.label), 1)
17387
+ createTextVNode(toDisplayString((_a = formPlaceholders.value) == null ? void 0 : _a.add) + " " + toDisplayString((_b = _ctx.context) == null ? void 0 : _b.label), 1)
17353
17388
  ];
17354
17389
  }),
17355
17390
  _: 1
@@ -17359,7 +17394,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
17359
17394
  };
17360
17395
  }
17361
17396
  });
17362
- const AddressArray = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-0b835e6e"]]);
17397
+ const AddressArray = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-98a4f943"]]);
17363
17398
  const _hoisted_1$A = { class: "bagel-input" };
17364
17399
  const _hoisted_2$v = { class: "mt-1" };
17365
17400
  const _hoisted_3$s = {
@@ -17388,6 +17423,10 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
17388
17423
  setup(__props) {
17389
17424
  const bagel = useBagel();
17390
17425
  const props2 = __props;
17426
+ const formPlaceholders = computed(() => {
17427
+ var _a, _b;
17428
+ return (_b = (_a = props2.context) == null ? void 0 : _a.attrs) == null ? void 0 : _b.formPlaceholders;
17429
+ });
17391
17430
  let val = ref([]);
17392
17431
  let deleteCandidate = ref(-1);
17393
17432
  const del2 = (i2) => {
@@ -17430,22 +17469,22 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
17430
17469
  return openBlock(), createElementBlock("div", _hoisted_1$A, [
17431
17470
  createElementVNode("div", _hoisted_2$v, [
17432
17471
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(val), (bank_account, i2) => {
17433
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
17472
+ var _a, _b, _c, _d, _e, _f, _g, _h;
17434
17473
  return openBlock(), createElementBlock("div", {
17435
17474
  class: "bglform-contact mb-3",
17436
17475
  key: i2
17437
17476
  }, [
17438
17477
  unref(deleteCandidate) === i2 ? (openBlock(), createElementBlock("div", _hoisted_3$s, [
17439
- createElementVNode("p", _hoisted_4$e, toDisplayString((_b = (_a = _ctx.context) == null ? void 0 : _a.formPlaceholders) == null ? void 0 : _b.sure), 1),
17478
+ createElementVNode("p", _hoisted_4$e, toDisplayString((_a = formPlaceholders.value) == null ? void 0 : _a.sure), 1),
17440
17479
  createVNode(unref(Btn), {
17441
17480
  thin: "",
17442
17481
  color: "red",
17443
17482
  onClick: ($event) => deleteContact(bank_account.id)
17444
17483
  }, {
17445
17484
  default: withCtx(() => {
17446
- var _a2, _b2;
17485
+ var _a2;
17447
17486
  return [
17448
- createTextVNode(toDisplayString((_b2 = (_a2 = _ctx.context) == null ? void 0 : _a2.formPlaceholders) == null ? void 0 : _b2.delete), 1)
17487
+ createTextVNode(toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.delete), 1)
17449
17488
  ];
17450
17489
  }),
17451
17490
  _: 2
@@ -17455,9 +17494,9 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
17455
17494
  onClick: _cache[0] || (_cache[0] = ($event) => isRef(deleteCandidate) ? deleteCandidate.value = -1 : deleteCandidate = -1)
17456
17495
  }, {
17457
17496
  default: withCtx(() => {
17458
- var _a2, _b2;
17497
+ var _a2;
17459
17498
  return [
17460
- createTextVNode(toDisplayString((_b2 = (_a2 = _ctx.context) == null ? void 0 : _a2.formPlaceholders) == null ? void 0 : _b2.cancel), 1)
17499
+ createTextVNode(toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.cancel), 1)
17461
17500
  ];
17462
17501
  }),
17463
17502
  _: 1
@@ -17471,14 +17510,14 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
17471
17510
  class: "bglform-contact-label",
17472
17511
  "onUpdate:modelValue": ($event) => bank_account.label = $event,
17473
17512
  type: "text",
17474
- placeholder: (_d = (_c = _ctx.context) == null ? void 0 : _c.formPlaceholders) == null ? void 0 : _d.label
17513
+ placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
17475
17514
  }, null, 8, _hoisted_5$c), [
17476
17515
  [vModelText, bank_account.label]
17477
17516
  ]),
17478
17517
  createElementVNode("div", _hoisted_6$9, [
17479
17518
  withDirectives(createElementVNode("input", {
17480
17519
  "onUpdate:modelValue": ($event) => bank_account.bank_name = $event,
17481
- placeholder: (_f = (_e = _ctx.context) == null ? void 0 : _e.formPlaceholders) == null ? void 0 : _f.bankName,
17520
+ placeholder: (_c = formPlaceholders.value) == null ? void 0 : _c.bankName,
17482
17521
  type: "text",
17483
17522
  required: ""
17484
17523
  }, null, 8, _hoisted_7$5), [
@@ -17487,7 +17526,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
17487
17526
  createElementVNode("div", _hoisted_8$2, [
17488
17527
  withDirectives(createElementVNode("input", {
17489
17528
  "onUpdate:modelValue": ($event) => bank_account.branch = $event,
17490
- placeholder: (_h = (_g = _ctx.context) == null ? void 0 : _g.formPlaceholders) == null ? void 0 : _h.bankBranch,
17529
+ placeholder: (_d = formPlaceholders.value) == null ? void 0 : _d.bankBranch,
17491
17530
  type: "text",
17492
17531
  required: ""
17493
17532
  }, null, 8, _hoisted_9$2), [
@@ -17495,7 +17534,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
17495
17534
  ]),
17496
17535
  withDirectives(createElementVNode("input", {
17497
17536
  "onUpdate:modelValue": ($event) => bank_account.account_number = $event,
17498
- placeholder: (_j = (_i = _ctx.context) == null ? void 0 : _i.formPlaceholders) == null ? void 0 : _j.bankAccount,
17537
+ placeholder: (_e = formPlaceholders.value) == null ? void 0 : _e.bankAccount,
17499
17538
  type: "text",
17500
17539
  required: ""
17501
17540
  }, null, 8, _hoisted_10$1), [
@@ -17505,7 +17544,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
17505
17544
  createElementVNode("div", _hoisted_11, [
17506
17545
  withDirectives(createElementVNode("input", {
17507
17546
  "onUpdate:modelValue": ($event) => bank_account.bank_account_holder = $event,
17508
- placeholder: (_l = (_k = _ctx.context) == null ? void 0 : _k.formPlaceholders) == null ? void 0 : _l.bankAccountHolder,
17547
+ placeholder: (_f = formPlaceholders.value) == null ? void 0 : _f.bankAccountHolder,
17509
17548
  type: "text",
17510
17549
  required: ""
17511
17550
  }, null, 8, _hoisted_12), [
@@ -17513,7 +17552,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
17513
17552
  ]),
17514
17553
  withDirectives(createElementVNode("input", {
17515
17554
  "onUpdate:modelValue": ($event) => bank_account.bank_account_holder_id = $event,
17516
- placeholder: (_n = (_m = _ctx.context) == null ? void 0 : _m.formPlaceholders) == null ? void 0 : _n.bankAccountHolderID,
17555
+ placeholder: (_g = formPlaceholders.value) == null ? void 0 : _g.bankAccountHolderID,
17517
17556
  type: "text"
17518
17557
  }, null, 8, _hoisted_13), [
17519
17558
  [vModelText, bank_account.bank_account_holder_id]
@@ -17534,7 +17573,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
17534
17573
  ]),
17535
17574
  withDirectives(createElementVNode("input", {
17536
17575
  "onUpdate:modelValue": ($event) => bank_account.bank_address = $event,
17537
- placeholder: (_p = (_o = _ctx.context) == null ? void 0 : _o.formPlaceholders) == null ? void 0 : _p.bankAddress,
17576
+ placeholder: (_h = formPlaceholders.value) == null ? void 0 : _h.bankAddress,
17538
17577
  type: "text"
17539
17578
  }, null, 8, _hoisted_16), [
17540
17579
  [vModelText, bank_account.bank_address]
@@ -17559,9 +17598,9 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
17559
17598
  onClick: _cache[1] || (_cache[1] = ($event) => unref(val).push({}))
17560
17599
  }, {
17561
17600
  default: withCtx(() => {
17562
- var _a, _b, _c;
17601
+ var _a, _b;
17563
17602
  return [
17564
- createTextVNode(toDisplayString((_b = (_a = _ctx.context) == null ? void 0 : _a.formPlaceholders) == null ? void 0 : _b.add) + " " + toDisplayString((_c = _ctx.context) == null ? void 0 : _c.label), 1)
17603
+ createTextVNode(toDisplayString((_a = formPlaceholders.value) == null ? void 0 : _a.add) + " " + toDisplayString((_b = _ctx.context) == null ? void 0 : _b.label), 1)
17565
17604
  ];
17566
17605
  }),
17567
17606
  _: 1
@@ -17571,7 +17610,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
17571
17610
  };
17572
17611
  }
17573
17612
  });
17574
- const BankDetailsArray = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-60b0c498"]]);
17613
+ const BankDetailsArray = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-0928eb22"]]);
17575
17614
  const _hoisted_1$z = { class: "misc-wrap" };
17576
17615
  const _sfc_main$q = /* @__PURE__ */ defineComponent({
17577
17616
  __name: "MiscFields",
@@ -28513,6 +28552,7 @@ export {
28513
28552
  initials,
28514
28553
  keyToLabel,
28515
28554
  useBagel,
28555
+ useEscape,
28516
28556
  useFormkit,
28517
28557
  useModal
28518
28558
  };
@@ -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,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAE7D,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,gBAAiB,SAAQ,YAAY;IAC9C,UAAU,CAAC,EAAE,GAAG,CAAC;IAEjB,qBAAqB,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IAE3C,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IAE7B,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,MAAM,EAAE,uBAAuB,CAAC;CAChC;AAED,UAAU,QAAQ;IAEjB,SAAS,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IAExE,SAAS,EAAE,CAAC,OAAO,EAAE,gBAAgB,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IAE5E,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAEpC;AAED,eAAO,MAAM,WAAW,EAAE,YAAY,CAAC,QAAQ,CAAmB,CAAC;AAEnE,eAAO,MAAM,QAAQ,QAAO,QAI3B,CAAC;AAQF,eAAO,MAAM,WAAW,EAAE,MAgDzB,CAAC"}
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,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAE7D,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,gBAAiB,SAAQ,YAAY;IAC9C,UAAU,CAAC,EAAE,GAAG,CAAC;IAEjB,qBAAqB,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IAE3C,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IAE7B,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,MAAM,EAAE,uBAAuB,CAAC;CAChC;AAED,UAAU,QAAQ;IAEjB,SAAS,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IAExE,SAAS,EAAE,CAAC,OAAO,EAAE,gBAAgB,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IAE5E,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAEpC;AAED,eAAO,MAAM,WAAW,EAAE,YAAY,CAAC,QAAQ,CAAmB,CAAC;AAEnE,eAAO,MAAM,QAAQ,QAAO,QAI3B,CAAC;AAQF,eAAO,MAAM,WAAW,EAAE,MAkDzB,CAAC"}