@signal24/vue-foundation 4.10.3 → 4.11.0

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.
@@ -2,14 +2,14 @@ type GenericObject = {
2
2
  [key: string]: any;
3
3
  };
4
4
  declare const _default: import("vue").DefineComponent<{}, {
5
- props: Readonly<{
5
+ props: Readonly<import("@vue/shared").LooseRequired<{
6
6
  modelValue: any;
7
7
  loadFn: () => Promise<GenericObject[]>;
8
8
  nullText?: string | undefined;
9
9
  loadingText?: string | undefined;
10
10
  displayKey?: string | undefined;
11
11
  preprocesor?: ((option: GenericObject) => string) | undefined;
12
- }> & {
12
+ }>> & {
13
13
  readonly modelValue: boolean;
14
14
  };
15
15
  options: import("vue").Ref<GenericObject[] | null>;
@@ -1 +1 @@
1
- .vf-overlay-anchor{position:absolute;z-index:100}.vf-overlay{position:fixed;top:0;left:0;width:100%;height:100%;z-index:100}.vf-overlay.hidden{display:none}.vf-modal-wrap{background:rgba(0,0,0,.25);display:flex;justify-content:center;align-items:center}.vf-modal{background:white;box-shadow:0 3px 6px #00000026;min-width:200px;max-width:95%;max-height:95%;display:flex;flex-direction:column}.vf-modal-header,.vf-modal-footer{flex-shrink:0;position:relative}.vf-modal.scrolls>.vf-modal-content{overflow:auto;flex-grow:1;flex-shrink:1;flex-basis:0%}.vf-modal-wrap.vf-alert .vf-modal{max-width:800px}.vf-modal-wrap.vf-alert .vf-modal>.vf-modal-content{padding:12px}.vf-modal-wrap.vf-alert.wait .vf-modal-content{text-align:center}.vf-modal-wrap.vf-alert.destructive button.primary{color:red}.vf-smart-select{position:relative}.vf-smart-select input{width:100%;padding-right:24px!important}.vf-smart-select input.nullable::placeholder{color:#000}.vf-smart-select:after{content:" ";display:block;position:absolute;top:50%;right:8px;margin-top:-3px;width:0;height:0;border-style:solid;border-width:5px 5px 0 5px;border-color:#333333 transparent transparent transparent;pointer-events:none}.vf-smart-select.open:after{margin-top:-4px;border-width:0 5px 5px 5px;border-color:transparent transparent #333333 transparent}.vf-smart-select:not(.disabled) input{cursor:pointer}.vf-smart-select.disabled:after{opacity:.4}.vf-smart-select-options{visibility:hidden;position:absolute;min-height:20px;border:1px solid #e8e8e8;background:white;overflow:auto;z-index:101}.vf-smart-select-options .option,.vf-smart-select-options .no-results{padding:5px 8px}.vf-smart-select-options .option{cursor:pointer}.vf-smart-select-options .option.highlighted{background-color:#f5f5f5}.vf-toast{position:absolute;bottom:50px;left:50%;transform:translate(-50%)}.vf-toast .content{display:flex;align-items:center}
1
+ .vf-overlay-anchor{position:absolute;z-index:100}.vf-overlay{position:fixed;top:0;left:0;width:100%;height:100%;z-index:100}.vf-overlay.hidden{display:none}.vf-modal-wrap{background:#00000040;display:flex;justify-content:center;align-items:center}.vf-modal{background:#fff;box-shadow:0 3px 6px #00000026;min-width:200px;max-width:95%;max-height:95%;display:flex;flex-direction:column}.vf-modal-header,.vf-modal-footer{flex-shrink:0;position:relative}.vf-modal.scrolls>.vf-modal-content{overflow:auto;flex-grow:1;flex-shrink:1;flex-basis:0%}.vf-modal-wrap.vf-alert .vf-modal{max-width:800px}.vf-modal-wrap.vf-alert .vf-modal>.vf-modal-content{padding:12px}.vf-modal-wrap.vf-alert.wait .vf-modal-content{text-align:center}.vf-modal-wrap.vf-alert.destructive button.primary{color:red}.vf-smart-select{position:relative}.vf-smart-select input{width:100%;padding-right:24px!important}.vf-smart-select input.nullable::placeholder{color:#000}.vf-smart-select:after{content:" ";display:block;position:absolute;top:50%;right:8px;margin-top:-3px;width:0;height:0;border-style:solid;border-width:5px 5px 0 5px;border-color:#333333 transparent transparent transparent;pointer-events:none}.vf-smart-select.open:after{margin-top:-4px;border-width:0 5px 5px 5px;border-color:transparent transparent #333333 transparent}.vf-smart-select:not(.disabled) input{cursor:pointer}.vf-smart-select.disabled:after{opacity:.4}.vf-smart-select-options{visibility:hidden;position:absolute;min-height:20px;border:1px solid #e8e8e8;background:#fff;overflow:auto;z-index:101}.vf-smart-select-options .option,.vf-smart-select-options .no-results{padding:5px 8px}.vf-smart-select-options .option{cursor:pointer}.vf-smart-select-options .option.highlighted{background-color:#f5f5f5}.vf-toast{position:absolute;bottom:50px;left:50%;transform:translate(-50%)}.vf-toast .content{display:flex;align-items:center}
@@ -1,17 +1,17 @@
1
- var Be = Object.defineProperty;
2
- var Ve = (e, t, n) => t in e ? Be(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var E = (e, t, n) => (Ve(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import { defineComponent as C, defineProps as Fe, defineEmits as Ne, ref as O, computed as V, openBlock as d, createElementBlock as u, createElementVNode as w, toDisplayString as x, withDirectives as j, createCommentVNode as b, Fragment as U, renderList as J, vModelSelect as Re, getCurrentInstance as ee, onMounted as L, normalizeClass as k, normalizeStyle as Ke, withModifiers as te, renderSlot as K, reactive as je, h as W, Teleport as Ue, markRaw as We, onBeforeUnmount as ne, resolveDirective as Oe, createBlock as be, createSlots as Pe, withCtx as Y, createTextVNode as ae, vModelText as qe, watch as ce, onActivated as ke, onDeactivated as Se } from "vue";
1
+ var Ve = Object.defineProperty;
2
+ var Fe = (e, t, n) => t in e ? Ve(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var E = (e, t, n) => (Fe(e, typeof t != "symbol" ? t + "" : t, n), n);
4
+ import { defineComponent as C, defineProps as _e, defineEmits as Ne, ref as O, computed as F, openBlock as d, createElementBlock as u, createElementVNode as w, toDisplayString as x, withDirectives as j, createCommentVNode as b, Fragment as U, renderList as J, vModelSelect as Re, getCurrentInstance as ee, onMounted as L, normalizeClass as k, normalizeStyle as Ke, withModifiers as te, renderSlot as K, reactive as je, h as W, Teleport as Ue, markRaw as We, onBeforeUnmount as ne, resolveDirective as Oe, createBlock as be, createSlots as Pe, withCtx as Y, createTextVNode as ae, vModelText as qe, watch as ce, onActivated as ke, onDeactivated as Se } from "vue";
5
5
  import { compact as ze, debounce as Xe, isEqual as Ce, upperFirst as Ye, startCase as Ze, cloneDeep as Ge, remove as Qe } from "lodash";
6
6
  import { escapeHtml as Je } from "@vue/shared";
7
- import { escapeHtml as si } from "@vue/shared";
7
+ import { escapeHtml as ni } from "@vue/shared";
8
8
  import { installOpenApiClientInterceptors as et, isOpenApiError as tt } from "@signal24/openapi-client-codegen/browser";
9
9
  import { format as G } from "date-fns";
10
10
  const nt = C({
11
11
  setup() {
12
- const e = Fe();
12
+ const e = _e();
13
13
  Ne(["update:modelValue"]);
14
- const t = O(null), n = V(() => t.value ? t.value.map((o) => e.preprocesor ? e.preprocesor(o) : o[e.displayKey ?? ""]) : null), i = O(e.modelValue ?? null);
14
+ const t = O(null), n = F(() => t.value ? t.value.map((o) => e.preprocesor ? e.preprocesor(o) : o[e.displayKey ?? ""]) : null), i = O(e.modelValue ?? null);
15
15
  return { props: e, options: t, renderOptions: n, selectedItem: i };
16
16
  },
17
17
  watch: {
@@ -64,7 +64,7 @@ function lt(e, t, n, i, s, o) {
64
64
  w("option", null, x(e.props.loadingText || "Loading..."), 1)
65
65
  ]));
66
66
  }
67
- const Hn = /* @__PURE__ */ xe(nt, [["render", lt]]), rt = ["onClick"], at = /* @__PURE__ */ C({
67
+ const Mn = /* @__PURE__ */ xe(nt, [["render", lt]]), rt = /* @__PURE__ */ C({
68
68
  __name: "overlay-anchor",
69
69
  props: {
70
70
  overlayId: {},
@@ -105,7 +105,7 @@ const Hn = /* @__PURE__ */ xe(nt, [["render", lt]]), rt = ["onClick"], at = /* @
105
105
  };
106
106
  }
107
107
  function a() {
108
- window.removeEventListener("click", a), ut(t.overlayId);
108
+ window.removeEventListener("click", a), dt(t.overlayId);
109
109
  }
110
110
  return L(() => {
111
111
  setTimeout(() => {
@@ -117,11 +117,11 @@ const Hn = /* @__PURE__ */ xe(nt, [["render", lt]]), rt = ["onClick"], at = /* @
117
117
  onClick: te(a, ["stop"])
118
118
  }, [
119
119
  K(p.$slots, "default")
120
- ], 14, rt));
120
+ ], 6));
121
121
  }
122
122
  });
123
- let ct = 0;
124
- const S = je([]), _n = C({
123
+ let at = 0;
124
+ const S = je([]), In = C({
125
125
  setup() {
126
126
  return () => W("div", [
127
127
  J(S, (e) => W(Ue, { key: e.id, to: "#vf-overlay-target" }, [e.wrapperVnode ?? e.vnode]))
@@ -131,7 +131,7 @@ const S = je([]), _n = C({
131
131
  function ie(e, t, n) {
132
132
  const i = document.getElementById("vf-overlay-target") ?? document.createElement("div");
133
133
  i.id = "vf-overlay-target", i.removeAttribute("inert"), document.body.appendChild(i);
134
- const s = String(++ct), o = We(e), r = W(o, t), l = n != null && n.anchor ? W(at, { overlayId: s, anchor: n.anchor }, () => [r]) : void 0, a = {
134
+ const s = String(++at), o = We(e), r = W(o, t), l = n != null && n.anchor ? W(rt, { overlayId: s, anchor: n.anchor }, () => [r]) : void 0, a = {
135
135
  id: s,
136
136
  component: o,
137
137
  props: t,
@@ -141,19 +141,19 @@ function ie(e, t, n) {
141
141
  };
142
142
  return S.push(a), a;
143
143
  }
144
- function Dn(e) {
144
+ function Hn(e) {
145
145
  Le(e.$);
146
146
  }
147
147
  function Le(e) {
148
148
  let t = e;
149
- for (; t && !dt(t.vnode); )
149
+ for (; t && !ct(t.vnode); )
150
150
  t = t.parent;
151
151
  }
152
- function dt(e) {
152
+ function ct(e) {
153
153
  const t = S.findIndex((n) => n.vnode.component === e.component);
154
154
  return t >= 0 ? (S[t].props.callback(), !0) : !1;
155
155
  }
156
- function ut(e) {
156
+ function dt(e) {
157
157
  const t = S.findIndex((n) => n.id === e);
158
158
  return t >= 0 ? (S[t].props.callback(), !0) : !1;
159
159
  }
@@ -176,20 +176,20 @@ function q(e, t) {
176
176
  async function de(e, t) {
177
177
  await se(X, q(e, t));
178
178
  }
179
- async function An(e, t) {
179
+ async function Dn(e, t) {
180
180
  return await se(X, {
181
181
  ...q(e, t),
182
182
  shouldConfirm: !0
183
183
  }) === !0;
184
184
  }
185
- async function $n(e, t) {
185
+ async function An(e, t) {
186
186
  return await se(X, {
187
187
  ...q(e, t),
188
188
  shouldConfirm: !0,
189
189
  classes: ["destructive"]
190
190
  }) === !0;
191
191
  }
192
- function Bn(e, t) {
192
+ function $n(e, t) {
193
193
  const n = ie(X, {
194
194
  ...q(e, t),
195
195
  isBare: !0,
@@ -204,7 +204,7 @@ const N = {
204
204
  errorHandler: (e) => console.error("Unhandled error:", e),
205
205
  defaultDateTimeFormat: "MM/dd/yy HH:mm"
206
206
  };
207
- function Vn(e) {
207
+ function Bn(e) {
208
208
  Object.assign(N, e);
209
209
  }
210
210
  class z extends Error {
@@ -212,7 +212,7 @@ class z extends Error {
212
212
  super(t), this.name = "UserError";
213
213
  }
214
214
  }
215
- function ht(e) {
215
+ function ut(e) {
216
216
  return e instanceof z ? e.message : `An application error has occurred:
217
217
 
218
218
  ${oe(e).message}
@@ -222,35 +222,35 @@ Please refresh the page and try again. If this error persists, ${N.unhandledErro
222
222
  function oe(e) {
223
223
  return e instanceof Error ? e : new Error(String(e));
224
224
  }
225
- async function Fn(e, t) {
225
+ async function Vn(e, t) {
226
226
  const n = oe(e);
227
227
  return n instanceof z || N.errorHandler(n), t ? de(t, n) : de(n);
228
228
  }
229
- async function Nn(e) {
229
+ async function Fn(e) {
230
230
  const t = oe(e);
231
231
  t instanceof z || N.errorHandler(t);
232
232
  }
233
- const A = Symbol("MaskState");
234
- function Rn(e, t) {
233
+ const $ = Symbol("MaskState");
234
+ function _n(e, t) {
235
235
  const n = e.$.vnode.el, i = n.closest(".vf-modal");
236
- return ft(i ?? n, t);
236
+ return ht(i ?? n, t);
237
237
  }
238
- function Kn(e) {
238
+ function Nn(e) {
239
239
  const t = e.$.vnode.el, n = t.closest(".vf-modal");
240
240
  return Me(n ?? t);
241
241
  }
242
- function ft(e, t) {
243
- if (!e[A]) {
242
+ function ht(e, t) {
243
+ if (!e[$]) {
244
244
  const n = document.createElement("div");
245
- n.classList.add("vf-mask"), e.appendChild(n), e[A] = { maskEl: n };
245
+ n.classList.add("vf-mask"), e.appendChild(n), e[$] = { maskEl: n };
246
246
  }
247
- return e[A].maskEl.innerText = t ?? "", () => Me(e);
247
+ return e[$].maskEl.innerText = t ?? "", () => Me(e);
248
248
  }
249
249
  function Me(e) {
250
- e[A] && e.removeChild(e[A].maskEl);
250
+ e[$] && e.removeChild(e[$].maskEl);
251
251
  }
252
252
  const Q = Symbol("FormMaskState");
253
- function pt(e, t, n) {
253
+ function ft(e, t, n) {
254
254
  const i = e instanceof Element ? e : He(e);
255
255
  i.classList.add("vf-masked");
256
256
  const s = t instanceof Element ? t : i.querySelectorAll(t ?? 'button:not([disabled]):not([type="button"])')[0];
@@ -271,13 +271,13 @@ function He(e) {
271
271
  const t = e.$.vnode.el;
272
272
  return t.tagName === "FORM" ? t : t.querySelector("form");
273
273
  }
274
- const mt = ["id"], vt = {
274
+ const pt = ["id"], mt = {
275
275
  key: 0,
276
276
  class: "vf-modal-header"
277
- }, yt = { class: "vf-modal-content" }, gt = {
277
+ }, vt = { class: "vf-modal-content" }, yt = {
278
278
  key: 1,
279
279
  class: "vf-modal-footer"
280
- }, Et = /* @__PURE__ */ C({
280
+ }, gt = /* @__PURE__ */ C({
281
281
  __name: "modal",
282
282
  props: {
283
283
  id: {},
@@ -290,7 +290,7 @@ const mt = ["id"], vt = {
290
290
  setup(e, { expose: t }) {
291
291
  const n = ee(), i = e;
292
292
  t({ mask: m, unmask: y, hide: f, unhide: h });
293
- const s = O(), o = O(), r = O(!1), l = V(() => ze([i.class, r.value && "hidden"]));
293
+ const s = O(), o = O(), r = O(!1), l = F(() => ze([i.class, r.value && "hidden"]));
294
294
  L(() => {
295
295
  var c;
296
296
  document.body.classList.add("vf-modal-open"), i.closeOnMaskClick && (window.addEventListener("keydown", p), (c = s.value) == null || c.addEventListener("click", a));
@@ -310,7 +310,7 @@ const mt = ["id"], vt = {
310
310
  Le(n);
311
311
  }
312
312
  function m() {
313
- pt(o.value);
313
+ ft(o.value);
314
314
  }
315
315
  function y() {
316
316
  Ie(o.value);
@@ -334,7 +334,7 @@ const mt = ["id"], vt = {
334
334
  ref_key: "form",
335
335
  ref: o
336
336
  }, [
337
- c.$slots.header ? (d(), u("div", vt, [
337
+ c.$slots.header ? (d(), u("div", mt, [
338
338
  K(c.$slots, "header"),
339
339
  i.closeX ? (d(), u("i", {
340
340
  key: 0,
@@ -342,17 +342,16 @@ const mt = ["id"], vt = {
342
342
  onClick: g
343
343
  })) : b("", !0)
344
344
  ])) : b("", !0),
345
- w("div", yt, [
345
+ w("div", vt, [
346
346
  K(c.$slots, "default")
347
347
  ]),
348
- c.$slots.footer ? (d(), u("div", gt, [
348
+ c.$slots.footer ? (d(), u("div", yt, [
349
349
  K(c.$slots, "footer")
350
350
  ])) : b("", !0)
351
351
  ], 34)
352
- ], 10, mt));
352
+ ], 10, pt));
353
353
  }
354
- });
355
- const Tt = ["innerHtml"], wt = ["innerText"], X = /* @__PURE__ */ C({
354
+ }), Et = ["innerHtml"], Tt = ["innerText"], X = /* @__PURE__ */ C({
356
355
  __name: "alert-modal",
357
356
  props: {
358
357
  isBare: { type: Boolean },
@@ -364,10 +363,10 @@ const Tt = ["innerHtml"], wt = ["innerText"], X = /* @__PURE__ */ C({
364
363
  callback: { type: Function }
365
364
  },
366
365
  setup(e) {
367
- const t = e, n = V(() => t.message instanceof Error ? ht(t.message) : t.message);
366
+ const t = e, n = F(() => t.message instanceof Error ? ut(t.message) : t.message);
368
367
  return (i, s) => {
369
368
  const o = Oe("autofocus");
370
- return d(), be(Et, {
369
+ return d(), be(gt, {
371
370
  class: k(["vf-alert", i.classes])
372
371
  }, Pe({
373
372
  default: Y(() => [
@@ -375,10 +374,10 @@ const Tt = ["innerHtml"], wt = ["innerText"], X = /* @__PURE__ */ C({
375
374
  key: 0,
376
375
  innerHtml: i.message,
377
376
  class: "user-message"
378
- }, null, 8, Tt)) : (d(), u("div", {
377
+ }, null, 8, Et)) : (d(), u("div", {
379
378
  key: 1,
380
379
  innerText: n.value
381
- }, null, 8, wt))
380
+ }, null, 8, Tt))
382
381
  ]),
383
382
  _: 2
384
383
  }, [
@@ -422,51 +421,51 @@ const Tt = ["innerHtml"], wt = ["innerText"], X = /* @__PURE__ */ C({
422
421
  }
423
422
  });
424
423
  let R;
425
- const Ot = new Uint8Array(16);
426
- function bt() {
424
+ const wt = new Uint8Array(16);
425
+ function Ot() {
427
426
  if (!R && (R = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !R))
428
427
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
429
- return R(Ot);
428
+ return R(wt);
430
429
  }
431
430
  const v = [];
432
431
  for (let e = 0; e < 256; ++e)
433
432
  v.push((e + 256).toString(16).slice(1));
434
- function kt(e, t = 0) {
433
+ function bt(e, t = 0) {
435
434
  return v[e[t + 0]] + v[e[t + 1]] + v[e[t + 2]] + v[e[t + 3]] + "-" + v[e[t + 4]] + v[e[t + 5]] + "-" + v[e[t + 6]] + v[e[t + 7]] + "-" + v[e[t + 8]] + v[e[t + 9]] + "-" + v[e[t + 10]] + v[e[t + 11]] + v[e[t + 12]] + v[e[t + 13]] + v[e[t + 14]] + v[e[t + 15]];
436
435
  }
437
- const St = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ue = {
438
- randomUUID: St
436
+ const kt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ue = {
437
+ randomUUID: kt
439
438
  };
440
- function Ct(e, t, n) {
439
+ function St(e, t, n) {
441
440
  if (ue.randomUUID && !t && !e)
442
441
  return ue.randomUUID();
443
442
  e = e || {};
444
- const i = e.random || (e.rng || bt)();
443
+ const i = e.random || (e.rng || Ot)();
445
444
  if (i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, t) {
446
445
  n = n || 0;
447
446
  for (let s = 0; s < 16; ++s)
448
447
  t[n + s] = i[s];
449
448
  return t;
450
449
  }
451
- return kt(i);
450
+ return bt(i);
452
451
  }
453
- function jn(e) {
452
+ function Rn(e) {
454
453
  return e.replace(/\n/g, "<br>");
455
454
  }
456
- function xt(e) {
455
+ function Ct(e) {
457
456
  return e.replace(/_/g, " ");
458
457
  }
459
- function Lt(e) {
458
+ function xt(e) {
460
459
  const t = e.replace(/\D/g, "").replace(/^1/, "");
461
460
  return t.length != 10 ? e : "(" + t.substring(0, 3) + ") " + t.substring(3, 6) + "-" + t.substring(6);
462
461
  }
463
- function Mt(e) {
462
+ function Lt(e) {
464
463
  return "$" + Number(e).toFixed(3).replace(/0$/, "").replace(/\B(?=(\d{3})+(?!\d))/g, ",");
465
464
  }
466
- function Un() {
467
- return Ct();
465
+ function Kn() {
466
+ return St();
468
467
  }
469
- const H = Symbol("null"), he = Symbol("create"), It = "`1234567890-=[]\\;',./~!@#$%^&*()_+{}|:\"<>?qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", Ht = {
468
+ const H = Symbol("null"), he = Symbol("create"), Mt = "`1234567890-=[]\\;',./~!@#$%^&*()_+{}|:\"<>?qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", It = {
470
469
  props: {
471
470
  modelValue: {
472
471
  type: null,
@@ -653,7 +652,7 @@ const H = Symbol("null"), he = Symbol("create"), It = "`1234567890-=[]\\;',./~!@
653
652
  this.searchText.length > 1 && (this.isSearching = !0);
654
653
  return;
655
654
  }
656
- !e.metaKey && It.includes(e.key) && (this.isSearching = !0);
655
+ !e.metaKey && Mt.includes(e.key) && (this.isSearching = !0);
657
656
  }
658
657
  },
659
658
  handleInputFocused() {
@@ -728,8 +727,7 @@ const H = Symbol("null"), he = Symbol("create"), It = "`1234567890-=[]\\;',./~!@
728
727
  this.loadedOptions.unshift(e);
729
728
  }
730
729
  }
731
- };
732
- const _t = ["placeholder", "required"], Dt = {
730
+ }, Ht = ["placeholder", "required"], Dt = {
733
731
  key: 0,
734
732
  ref: "optionsContainer",
735
733
  class: "vf-smart-select-options"
@@ -740,7 +738,7 @@ const _t = ["placeholder", "required"], Dt = {
740
738
  key: 0,
741
739
  class: "no-results"
742
740
  };
743
- function Nt(e, t, n, i, s, o) {
741
+ function _t(e, t, n, i, s, o) {
744
742
  const r = Oe("disabled");
745
743
  return d(), u("div", {
746
744
  class: k(["vf-smart-select", { disabled: o.effectiveDisabled, open: e.shouldDisplayOptions }])
@@ -755,7 +753,7 @@ function Nt(e, t, n, i, s, o) {
755
753
  onFocus: t[2] || (t[2] = (...l) => o.handleInputFocused && o.handleInputFocused(...l)),
756
754
  onBlur: t[3] || (t[3] = (...l) => o.handleInputBlurred && o.handleInputBlurred(...l)),
757
755
  required: n.required
758
- }, null, 42, _t), [
756
+ }, null, 42, Ht), [
759
757
  [qe, e.searchText],
760
758
  [r, o.effectiveDisabled]
761
759
  ]),
@@ -784,7 +782,7 @@ function Nt(e, t, n, i, s, o) {
784
782
  ], 512)) : b("", !0)
785
783
  ], 2);
786
784
  }
787
- const Rt = /* @__PURE__ */ xe(Ht, [["render", Nt]]), Wn = /* @__PURE__ */ C({
785
+ const Nt = /* @__PURE__ */ xe(It, [["render", _t]]), jn = /* @__PURE__ */ C({
788
786
  __name: "ez-smart-select",
789
787
  props: {
790
788
  modelValue: {},
@@ -795,10 +793,10 @@ const Rt = /* @__PURE__ */ xe(Ht, [["render", Nt]]), Wn = /* @__PURE__ */ C({
795
793
  },
796
794
  emits: ["update:modelValue"],
797
795
  setup(e, { emit: t }) {
798
- const n = e, i = V(() => Array.isArray(n.options) ? n.options.map((l) => ({ value: l, label: l })) : Object.entries(n.options).map(([l, a]) => ({
796
+ const n = e, i = F(() => Array.isArray(n.options) ? n.options.map((l) => ({ value: l, label: l })) : Object.entries(n.options).map(([l, a]) => ({
799
797
  value: l,
800
798
  label: a
801
- }))), s = V(() => n.formatter ? (l) => {
799
+ }))), s = F(() => n.formatter ? (l) => {
802
800
  var a;
803
801
  return (a = n.formatter) == null ? void 0 : a.call(n, l.label);
804
802
  } : (l) => l.label), o = t, r = O(i.value.find((l) => l.value === n.modelValue) ?? null);
@@ -810,7 +808,7 @@ const Rt = /* @__PURE__ */ xe(Ht, [["render", Nt]]), Wn = /* @__PURE__ */ C({
810
808
  ), ce(r, (l) => {
811
809
  var a;
812
810
  o("update:modelValue", l ? ((a = i.value.find((p) => Ce(p, l))) == null ? void 0 : a.value) ?? null : null);
813
- }), (l, a) => (d(), be(Rt, {
811
+ }), (l, a) => (d(), be(Nt, {
814
812
  modelValue: r.value,
815
813
  "onUpdate:modelValue": a[0] || (a[0] = (p) => r.value = p),
816
814
  options: i.value,
@@ -818,13 +816,13 @@ const Rt = /* @__PURE__ */ xe(Ht, [["render", Nt]]), Wn = /* @__PURE__ */ C({
818
816
  "null-title": l.nullTitle
819
817
  }, null, 8, ["modelValue", "options", "formatter", "null-title"]));
820
818
  }
821
- }), Kt = ["onClick"], jt = { class: "content" }, Ut = { class: "message" }, Wt = {
819
+ }), Rt = { class: "content" }, Kt = { class: "message" }, jt = {
822
820
  key: 0,
823
821
  class: "close"
824
- }, Pt = {
822
+ }, Ut = {
825
823
  key: 0,
826
824
  class: "progress-bar"
827
- }, qt = /* @__PURE__ */ C({
825
+ }, Wt = /* @__PURE__ */ C({
828
826
  __name: "toast",
829
827
  props: {
830
828
  message: {},
@@ -851,78 +849,78 @@ const Rt = /* @__PURE__ */ xe(Ht, [["render", Nt]]), Wn = /* @__PURE__ */ C({
851
849
  class: k(["vf-toast", s.className]),
852
850
  onClick: te(n, ["stop"])
853
851
  }, [
854
- w("div", jt, [
855
- w("div", Ut, x(s.message), 1),
856
- s.disableClose ? b("", !0) : (d(), u("div", Wt, "x"))
852
+ w("div", Rt, [
853
+ w("div", Kt, x(s.message), 1),
854
+ s.disableClose ? b("", !0) : (d(), u("div", jt, "x"))
857
855
  ]),
858
- s.durationSecs !== null ? (d(), u("div", Pt, [
856
+ s.durationSecs !== null ? (d(), u("div", Ut, [
859
857
  w("div", {
860
858
  ref_key: "progressInnerEl",
861
859
  ref: i,
862
860
  class: "inner"
863
861
  }, null, 512)
864
862
  ])) : b("", !0)
865
- ], 10, Kt));
863
+ ], 2));
866
864
  }
867
865
  });
868
- function Pn(e) {
869
- const t = ie(qt, {
866
+ function Un(e) {
867
+ const t = ie(Wt, {
870
868
  ...e,
871
869
  callback: () => P(t)
872
870
  });
873
871
  return () => P(t);
874
872
  }
875
- function zt(e) {
873
+ function Pt(e) {
876
874
  const t = Math.floor(Math.log(e) / Math.log(1024)), i = (e / Math.pow(1024, t)).toFixed(2), s = ["B", "KB", "MB", "GB", "TB"][t];
877
875
  return `${i} ${s}`;
878
876
  }
879
- function Xt(e) {
877
+ function qt(e) {
880
878
  return e != null && String(e).length ? e : "-";
881
879
  }
882
- function Yt(e) {
880
+ function zt(e) {
883
881
  return e || "-";
884
882
  }
885
- function Zt(e) {
886
- return e === null || typeof e == "string" && !/^\d+$/.test(e) ? e : on(Number(e));
883
+ function Xt(e) {
884
+ return e === null || typeof e == "string" && !/^\d+$/.test(e) ? e : nn(Number(e));
887
885
  }
888
- function Gt(e) {
889
- return e && Lt(e);
886
+ function Yt(e) {
887
+ return e && xt(e);
890
888
  }
891
- function Qt(e) {
889
+ function Zt(e) {
892
890
  return e ? Ye(e) : null;
893
891
  }
894
- function Jt(e) {
892
+ function Gt(e) {
895
893
  return e ? Ze(e) : null;
896
894
  }
897
- function en(e) {
895
+ function Qt(e) {
898
896
  return e ? e.toUpperCase() : null;
899
897
  }
900
- function tn(e) {
901
- return e ? xt(e) : null;
898
+ function Jt(e) {
899
+ return e ? Ct(e) : null;
902
900
  }
903
- function nn(e) {
904
- return Mt(e);
901
+ function en(e) {
902
+ return Lt(e);
905
903
  }
906
904
  const fe = {
907
- bytes: zt,
908
- dash: Xt,
909
- dashZeros: Yt,
910
- number: Zt,
911
- phone: Gt,
912
- upperFirst: Qt,
913
- startCase: Jt,
914
- upperCase: en,
915
- desnake: tn,
916
- usCurrency: nn
917
- }, qn = (e) => ({
905
+ bytes: Pt,
906
+ dash: qt,
907
+ dashZeros: zt,
908
+ number: Xt,
909
+ phone: Yt,
910
+ upperFirst: Zt,
911
+ startCase: Gt,
912
+ upperCase: Qt,
913
+ desnake: Jt,
914
+ usCurrency: en
915
+ }, Wn = (e) => ({
918
916
  ...fe,
919
917
  ...e(fe)
920
918
  });
921
- function zn(e, t, n) {
919
+ function Pn(e, t, n) {
922
920
  const i = typeof t == "function" ? e.findIndex(t) : e.indexOf(t);
923
921
  return i === -1 ? !1 : (e.splice(i, 1, n), !0);
924
922
  }
925
- function Xn(e, t) {
923
+ function qn(e, t) {
926
924
  const n = document.createElement("div");
927
925
  n.classList.add("vf-overlay"), n.addEventListener("click", m), document.body.appendChild(n);
928
926
  const i = document.createElement("div");
@@ -955,20 +953,20 @@ function Xn(e, t) {
955
953
  h.addEventListener("mouseleave", M), f.stopPropagation();
956
954
  }
957
955
  }
958
- const sn = (e) => new Promise((t) => setTimeout(t, e)), Yn = (e) => sn(e * 1e3);
959
- function on(e) {
956
+ const tn = (e) => new Promise((t) => setTimeout(t, e)), zn = (e) => tn(e * 1e3);
957
+ function nn(e) {
960
958
  return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
961
959
  }
962
- function Zn(e, t) {
960
+ function Xn(e, t) {
963
961
  return e != null ? Ge(e) : t;
964
962
  }
965
- function Gn(e, t) {
963
+ function Yn(e, t) {
966
964
  const n = { ...e };
967
965
  for (const i of t)
968
966
  n[i] === "" && (n[i] = null);
969
967
  return n;
970
968
  }
971
- function Qn(e) {
969
+ function Zn(e) {
972
970
  et({
973
971
  ...e,
974
972
  onError(t, n) {
@@ -980,19 +978,19 @@ function Qn(e) {
980
978
  });
981
979
  }
982
980
  const le = Symbol("HookState");
983
- function Jn(e, t) {
981
+ function Gn(e, t) {
984
982
  const n = t ?? ee();
985
- L(() => ln(n, e), n), ke(() => rn(n), n), Se(() => pe(n), n), ne(() => pe(n), n);
983
+ L(() => sn(n, e), n), ke(() => on(n), n), Se(() => pe(n), n), ne(() => pe(n), n);
986
984
  }
987
- function ln(e, t) {
985
+ function sn(e, t) {
988
986
  const n = {};
989
- if (t.elScrolledToBottom && (n.el = new $(e.vnode.el, t.elScrolledToBottom)), t.ancestorScrolledToBottom) {
990
- const i = _e(e.vnode.el);
991
- i ? n.ancestor = new $(i, t.ancestorScrolledToBottom) : console.warn("[VueFoundation] No scollable ancestor found for component:", e);
987
+ if (t.elScrolledToBottom && (n.el = new B(e.vnode.el, t.elScrolledToBottom)), t.ancestorScrolledToBottom) {
988
+ const i = De(e.vnode.el);
989
+ i ? n.ancestor = new B(i, t.ancestorScrolledToBottom) : console.warn("[VueFoundation] No scollable ancestor found for component:", e);
992
990
  }
993
- t.windowScrolledToBottom && (n.window = new $(window, t.windowScrolledToBottom)), e[le] = n;
991
+ t.windowScrolledToBottom && (n.window = new B(window, t.windowScrolledToBottom)), e[le] = n;
994
992
  }
995
- function rn(e) {
993
+ function on(e) {
996
994
  var n, i, s;
997
995
  const t = e[le];
998
996
  (n = t == null ? void 0 : t.el) == null || n.install(), (i = t == null ? void 0 : t.ancestor) == null || i.install(), (s = t == null ? void 0 : t.window) == null || s.install();
@@ -1003,14 +1001,14 @@ function pe(e) {
1003
1001
  (n = t == null ? void 0 : t.el) == null || n.uninstall(), (i = t == null ? void 0 : t.ancestor) == null || i.uninstall(), (s = t == null ? void 0 : t.window) == null || s.uninstall();
1004
1002
  }
1005
1003
  const Z = ["auto", "scroll"];
1006
- function _e(e) {
1004
+ function De(e) {
1007
1005
  const t = e.parentElement;
1008
1006
  if (!t)
1009
1007
  return null;
1010
1008
  const n = window.getComputedStyle(t);
1011
- return Z.includes(n.overflow) || Z.includes(n.overflowX) || Z.includes(n.overflowY) ? t : _e(t);
1009
+ return Z.includes(n.overflow) || Z.includes(n.overflowX) || Z.includes(n.overflowY) ? t : De(t);
1012
1010
  }
1013
- class $ {
1011
+ class B {
1014
1012
  constructor(t, n) {
1015
1013
  E(this, "isTripped", !1);
1016
1014
  E(this, "onScrollWithContext", this.onScroll.bind(this));
@@ -1026,10 +1024,10 @@ class $ {
1026
1024
  Math.ceil(this.el.scrollTop + this.el.clientHeight + 5) >= this.el.scrollHeight ? this.isTripped || (this.handler(t), this.isTripped = !0) : this.isTripped && (this.isTripped = !1);
1027
1025
  }
1028
1026
  }
1029
- function ei(e) {
1027
+ function Qn(e) {
1030
1028
  L(() => window.addEventListener("resize", e)), ke(() => window.addEventListener("resize", e)), Se(() => window.removeEventListener("resize", e)), ne(() => window.removeEventListener("resize", e));
1031
1029
  }
1032
- const an = {
1030
+ const ln = {
1033
1031
  mounted: ve,
1034
1032
  updated: ve
1035
1033
  }, me = Symbol("HasAutoFocused");
@@ -1040,16 +1038,16 @@ function ve(e, t) {
1040
1038
  const n = ["BUTTON", "INPUT", "TEXTAREA", "SELECT"].indexOf(e.tagName) > -1 ? e : e.querySelectorAll("input")[0];
1041
1039
  setTimeout(() => n.focus(), 10);
1042
1040
  }
1043
- const cn = {
1044
- mounted: dn
1045
- }, _ = Symbol("ConfirmState");
1046
- function dn(e) {
1041
+ const rn = {
1042
+ mounted: an
1043
+ }, D = Symbol("ConfirmState");
1044
+ function an(e) {
1047
1045
  e.addEventListener("click", (t) => {
1048
1046
  const n = Date.now();
1049
- if (e[_]) {
1050
- if (n - e[_].initTime < 300)
1047
+ if (e[D]) {
1048
+ if (n - e[D].initTime < 300)
1051
1049
  return;
1052
- e[_].resetHandler(), e.dispatchEvent(new Event("confirm"));
1050
+ e[D].resetHandler(), e.dispatchEvent(new Event("confirm"));
1053
1051
  return;
1054
1052
  }
1055
1053
  t.preventDefault(), t.stopImmediatePropagation();
@@ -1057,16 +1055,16 @@ function dn(e) {
1057
1055
  initTime: n,
1058
1056
  preconfirmHtml: e.innerHTML,
1059
1057
  resetHandler: () => {
1060
- e.innerHTML = i.preconfirmHtml, e.blur(), e.removeEventListener("mouseout", i.resetHandler), delete e[_];
1058
+ e.innerHTML = i.preconfirmHtml, e.blur(), e.removeEventListener("mouseout", i.resetHandler), delete e[D];
1061
1059
  }
1062
1060
  };
1063
- e[_] = i, e.innerHTML = "Confirm", e.addEventListener("mouseout", i.resetHandler);
1061
+ e[D] = i, e.innerHTML = "Confirm", e.addEventListener("mouseout", i.resetHandler);
1064
1062
  });
1065
1063
  }
1066
- const un = {
1067
- beforeMount: hn
1064
+ const cn = {
1065
+ beforeMount: dn
1068
1066
  };
1069
- function hn(e) {
1067
+ function dn(e) {
1070
1068
  e.addEventListener("blur", () => {
1071
1069
  let t = e.value;
1072
1070
  /^\d{1,2}\/\d{1,2}$/.test(t) && (t += "/" + G(/* @__PURE__ */ new Date(), "yy"));
@@ -1074,14 +1072,14 @@ function hn(e) {
1074
1072
  isNaN(n) ? e.value = "" : e.value = G(n, "MM/dd/yyyy"), e.dispatchEvent(new Event("input"));
1075
1073
  });
1076
1074
  }
1077
- const fn = {
1075
+ const un = {
1078
1076
  beforeMount: ye,
1079
1077
  updated: ye
1080
1078
  };
1081
1079
  function ye(e, t) {
1082
- t.value == t.oldValue && e.innerHTML.length || (e.innerText = pn(e, t));
1080
+ t.value == t.oldValue && e.innerHTML.length || (e.innerText = hn(e, t));
1083
1081
  }
1084
- function pn(e, t) {
1082
+ function hn(e, t) {
1085
1083
  var a, p;
1086
1084
  if (!t.value)
1087
1085
  return ((a = e.attributes.getNamedItem("placeholder")) == null ? void 0 : a.value) ?? "";
@@ -1097,46 +1095,46 @@ function pn(e, t) {
1097
1095
  let l = G(o, r);
1098
1096
  return n && (l = n + " " + l), l;
1099
1097
  }
1100
- const mn = {
1098
+ const fn = {
1101
1099
  beforeMount: ge,
1102
1100
  updated: ge,
1103
- unmounted: vn
1101
+ unmounted: pn
1104
1102
  };
1105
1103
  function ge(e, t) {
1106
1104
  e.tagName === "LABEL" && (t.value ? e.classList.remove("disabled") : e.classList.add("disabled"), e = e.querySelector("input")), t.value ? e.setAttribute("disabled", "disabled") : e.removeAttribute("disabled");
1107
1105
  }
1108
- function vn(e) {
1106
+ function pn(e) {
1109
1107
  e.tagName === "LABEL" && (e.classList.remove("disabled"), e = e.querySelector("input")), e.removeAttribute("disabled");
1110
1108
  }
1111
- const yn = {
1109
+ const mn = {
1112
1110
  beforeMount: Ee,
1113
1111
  updated: Ee,
1114
- unmounted: Ae
1115
- }, F = Symbol("HasAutoFocused"), re = [];
1116
- function gn() {
1117
- re.forEach(De);
1112
+ unmounted: $e
1113
+ }, _ = Symbol("HasAutoFocused"), re = [];
1114
+ function vn() {
1115
+ re.forEach(Ae);
1118
1116
  }
1119
- setInterval(gn, 1e3);
1117
+ setInterval(vn, 1e3);
1120
1118
  function Ee(e, t) {
1121
1119
  var r;
1122
1120
  if (t.value == t.oldValue)
1123
1121
  return;
1124
1122
  if (!t.value)
1125
- return Ae(e);
1123
+ return $e(e);
1126
1124
  const n = new Date(t.value), i = (r = e.attributes.getNamedItem("base-time")) == null ? void 0 : r.value, s = n.getTime() - (i ? new Date(i).getTime() - t.value * 1e3 : 0), o = e.getAttribute("no-seconds") === null;
1127
- e[F] || re.push(e), e[F] = {
1125
+ e[_] || re.push(e), e[_] = {
1128
1126
  startTs: s,
1129
1127
  includeSeconds: o
1130
- }, De(e);
1131
- }
1132
- function De(e) {
1133
- const t = e[F], n = Math.round((Date.now() - t.startTs) / 1e3);
1134
- e.innerText = En(n, t.includeSeconds);
1128
+ }, Ae(e);
1135
1129
  }
1136
1130
  function Ae(e) {
1137
- e[F] && (Qe(re, e), delete e[F]), e.innerText = "-";
1131
+ const t = e[_], n = Math.round((Date.now() - t.startTs) / 1e3);
1132
+ e.innerText = yn(n, t.includeSeconds);
1138
1133
  }
1139
- function En(e, t) {
1134
+ function $e(e) {
1135
+ e[_] && (Qe(re, e), delete e[_]), e.innerText = "-";
1136
+ }
1137
+ function yn(e, t) {
1140
1138
  const n = [], i = Math.floor(e / 86400);
1141
1139
  i && n.push(i + "d"), e -= i * 86400;
1142
1140
  const s = Math.floor(e / 3600);
@@ -1144,30 +1142,30 @@ function En(e, t) {
1144
1142
  const o = Math.floor(e / 60);
1145
1143
  return (i || s || o) && n.push(o + "m"), t ? n.length || n.push("0m") : (e -= o * 60, n.push(e + "s")), n.join(" ");
1146
1144
  }
1147
- const D = Symbol("InfiniteScrollHandler"), Tn = {
1145
+ const A = Symbol("InfiniteScrollHandler"), gn = {
1148
1146
  mounted(e, t) {
1149
- e[D] = new $(e, t.value);
1147
+ e[A] = new B(e, t.value);
1150
1148
  },
1151
1149
  updated(e, t) {
1152
1150
  var n;
1153
- (n = e[D]) == null || n.uninstall(), e[D] = new $(e, t.value);
1151
+ (n = e[A]) == null || n.uninstall(), e[A] = new B(e, t.value);
1154
1152
  },
1155
1153
  unmounted(e) {
1156
1154
  var t;
1157
- (t = e[D]) == null || t.uninstall(), delete e[D];
1155
+ (t = e[A]) == null || t.uninstall(), delete e[A];
1158
1156
  }
1159
- }, wn = {
1157
+ }, En = {
1160
1158
  beforeMount: Te,
1161
1159
  updated: Te
1162
1160
  };
1163
1161
  function Te(e, t) {
1164
1162
  e.tagName == "LABEL" && (e = e.querySelector("input")), t.value ? e.setAttribute("readonly", "readonly") : e.removeAttribute("readonly");
1165
1163
  }
1166
- const On = {
1164
+ const Tn = {
1167
1165
  mounted: we,
1168
1166
  updated: we,
1169
- unmounted: $e
1170
- }, B = Symbol("TooltipState");
1167
+ unmounted: Be
1168
+ }, V = Symbol("TooltipState");
1171
1169
  function we(e, t) {
1172
1170
  var i;
1173
1171
  let n = ((i = e.attributes.getNamedItem("tip")) == null ? void 0 : i.value) ?? t.value;
@@ -1176,15 +1174,15 @@ function we(e, t) {
1176
1174
  content: n,
1177
1175
  html: e.getAttribute("html") !== null
1178
1176
  };
1179
- e[B] ? e[B].configure(s) : e[B] = new bn(e, s);
1177
+ e[V] ? e[V].configure(s) : e[V] = new wn(e, s);
1180
1178
  } else
1181
- $e(e);
1179
+ Be(e);
1182
1180
  }
1183
- function $e(e) {
1181
+ function Be(e) {
1184
1182
  var t;
1185
- (t = e[B]) == null || t.destroy(), delete e[B];
1183
+ (t = e[V]) == null || t.destroy(), delete e[V];
1186
1184
  }
1187
- class bn {
1185
+ class wn {
1188
1186
  constructor(t, n) {
1189
1187
  E(this, "lastMoveEvt");
1190
1188
  E(this, "checkInterval");
@@ -1232,59 +1230,59 @@ class bn {
1232
1230
  this.shouldShow = !1, this.removeTooltip(), this.el.removeEventListener("mouseenter", this.handleTargetMouseEnterWithContext), this.el.removeEventListener("mouseleave", this.handleTargetMouseLeaveWithContext);
1233
1231
  }
1234
1232
  }
1235
- function kn(e) {
1236
- e.directive("autofocus", an), e.directive("confirm-button", cn), e.directive("date-input", un), e.directive("datetime", fn), e.directive("disabled", mn), e.directive("duration", yn), e.directive("infinite-scroll", Tn), e.directive("readonly", wn), e.directive("tooltip", On);
1233
+ function On(e) {
1234
+ e.directive("autofocus", ln), e.directive("confirm-button", rn), e.directive("date-input", cn), e.directive("datetime", un), e.directive("disabled", fn), e.directive("duration", mn), e.directive("infinite-scroll", gn), e.directive("readonly", En), e.directive("tooltip", Tn);
1237
1235
  }
1238
- function ti(e) {
1239
- kn(e);
1236
+ function Jn(e) {
1237
+ On(e);
1240
1238
  }
1241
1239
  export {
1242
- _n as OverlayContainer,
1240
+ In as OverlayContainer,
1243
1241
  z as UserError,
1244
- Hn as VfAjaxSelect,
1242
+ Mn as VfAjaxSelect,
1245
1243
  X as VfAlertModal,
1246
- Wn as VfEzSmartSelect,
1247
- Et as VfModal,
1248
- Rt as VfSmartSelect,
1249
- Zn as cloneProp,
1250
- Vn as configureVf,
1251
- qn as createFilters,
1244
+ jn as VfEzSmartSelect,
1245
+ gt as VfModal,
1246
+ Nt as VfSmartSelect,
1247
+ Xn as cloneProp,
1248
+ Bn as configureVf,
1249
+ Wn as createFilters,
1252
1250
  ie as createOverlayInjection,
1253
- xt as desnakeCase,
1254
- ut as dismissOverlayInjectionById,
1255
- Dn as dismissOverlayInjectionByInstance,
1251
+ Ct as desnakeCase,
1252
+ dt as dismissOverlayInjectionById,
1253
+ Hn as dismissOverlayInjectionByInstance,
1256
1254
  Le as dismissOverlayInjectionByInternalInstance,
1257
- dt as dismissOverlayInjectionByVnode,
1258
- si as escapeHtml,
1259
- ht as formatError,
1260
- on as formatNumber,
1261
- Lt as formatPhone,
1262
- Mt as formatUSCurrency,
1263
- Nn as handleError,
1264
- Fn as handleErrorAndAlert,
1265
- Qn as installApiClientInterceptors,
1266
- ti as installVf,
1267
- Rn as maskComponent,
1268
- ft as maskEl,
1269
- pt as maskForm,
1270
- jn as nl2br,
1271
- Gn as nullifyEmptyInputs,
1255
+ ct as dismissOverlayInjectionByVnode,
1256
+ ni as escapeHtml,
1257
+ ut as formatError,
1258
+ nn as formatNumber,
1259
+ xt as formatPhone,
1260
+ Lt as formatUSCurrency,
1261
+ Fn as handleError,
1262
+ Vn as handleErrorAndAlert,
1263
+ Zn as installApiClientInterceptors,
1264
+ Jn as installVf,
1265
+ _n as maskComponent,
1266
+ ht as maskEl,
1267
+ ft as maskForm,
1268
+ Rn as nl2br,
1269
+ Yn as nullifyEmptyInputs,
1272
1270
  se as presentOverlay,
1273
1271
  P as removeOverlayInjection,
1274
- zn as replaceElement,
1272
+ Pn as replaceElement,
1275
1273
  de as showAlert,
1276
- An as showConfirm,
1277
- $n as showConfirmDestroy,
1278
- Xn as showContextMenu,
1279
- Pn as showToast,
1280
- Bn as showWait,
1281
- sn as sleep,
1282
- Yn as sleepSecs,
1274
+ Dn as showConfirm,
1275
+ An as showConfirmDestroy,
1276
+ qn as showContextMenu,
1277
+ Un as showToast,
1278
+ $n as showWait,
1279
+ tn as sleep,
1280
+ zn as sleepSecs,
1283
1281
  oe as toError,
1284
- Kn as unmaskComponent,
1282
+ Nn as unmaskComponent,
1285
1283
  Me as unmaskEl,
1286
1284
  Ie as unmaskForm,
1287
- Jn as useInfiniteScroll,
1288
- ei as useResizeWatcher,
1289
- Un as uuid
1285
+ Gn as useInfiniteScroll,
1286
+ Qn as useResizeWatcher,
1287
+ Kn as uuid
1290
1288
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@signal24/vue-foundation",
3
3
  "type": "module",
4
- "version": "4.10.3",
4
+ "version": "4.11.0",
5
5
  "description": "Common components, directives, and helpers for Vue 3 apps",
6
6
  "module": "./dist/vue-foundation.es.js",
7
7
  "exports": {
@@ -21,10 +21,10 @@
21
21
  "typings": "./dist/src/index.d.ts",
22
22
  "scripts": {
23
23
  "dev": "vite",
24
- "build": "rm -rf dist && vite build && vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json && tsc -p tsconfig.vite-plugins.json && find dist -name '*.tsbuildinfo' -delete",
24
+ "build": "rm -rf dist && vite build && vue-tsc -p tsconfig.app.json && tsc -p tsconfig.vite-plugins.json && find dist -name '*.tsbuildinfo' -delete",
25
25
  "build:watch": "fswatch -o src | xargs -n1 -I{} yarn build",
26
26
  "preview": "vite preview",
27
- "test:types": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
27
+ "test:types": "vue-tsc -p tsconfig.vitest.json",
28
28
  "test:unit": "vitest",
29
29
  "test:e2e": "start-server-and-test preview http://localhost:4173 'cypress run --e2e'",
30
30
  "test:e2e:dev": "start-server-and-test 'vite dev --port 4173' http://localhost:4173 'cypress open --e2e'",
@@ -43,36 +43,39 @@
43
43
  "vue": "^3.3.7"
44
44
  },
45
45
  "devDependencies": {
46
- "@nabla/vite-plugin-eslint": "^1.5.0",
47
- "@rushstack/eslint-patch": "^1.5.1",
46
+ "@nabla/vite-plugin-eslint": "^2.0.2",
47
+ "@rushstack/eslint-patch": "^1.6.1",
48
+ "@signal24/openapi-client-codegen": "^1.1.0",
48
49
  "@tsconfig/node20": "^20.1.2",
49
- "@types/jsdom": "^21.1.4",
50
- "@types/lodash": "^4.14.200",
51
- "@types/node": "^20.8.9",
52
- "@types/uuid": "^9.0.6",
53
- "@vitejs/plugin-vue": "^4.4.0",
50
+ "@types/jsdom": "^21.1.6",
51
+ "@types/lodash": "^4.14.202",
52
+ "@types/node": "^20.10.5",
53
+ "@types/uuid": "^9.0.7",
54
+ "@vitejs/plugin-vue": "^5.0.0",
54
55
  "@vue/eslint-config-prettier": "^8.0.0",
55
56
  "@vue/eslint-config-typescript": "^12.0.0",
56
- "@vue/test-utils": "^2.4.1",
57
- "@vue/tsconfig": "^0.4.0",
58
- "cypress": "^13.3.3",
59
- "eslint": "^8.52.0",
57
+ "@vue/test-utils": "^2.4.3",
58
+ "@vue/tsconfig": "^0.5.1",
59
+ "cypress": "^13.6.2",
60
+ "date-fns": "^3.0.6",
61
+ "eslint": "^8.56.0",
60
62
  "eslint-plugin-cypress": "^2.15.1",
61
63
  "eslint-plugin-simple-import-sort": "^10.0.0",
62
64
  "eslint-plugin-unused-imports": "^3.0.0",
63
- "eslint-plugin-vue": "^9.18.1",
64
- "jsdom": "^22.1.0",
65
- "prettier": "^3.0.3",
66
- "sass": "^1.69.5",
67
- "start-server-and-test": "^2.0.1",
68
- "typescript": "~5.2.2",
69
- "type-fest": "^4.6.0",
70
- "vite": "^4.5.0",
71
- "vitest": "^0.34.6",
72
- "vue-tsc": "^1.8.22",
73
- "@signal24/openapi-client-codegen": "^1.1.0",
74
- "date-fns": "^2.30.0",
65
+ "eslint-plugin-vue": "^9.19.2",
66
+ "jsdom": "^23.0.1",
75
67
  "lodash": "^4.17.21",
76
- "vue": "^3.3.7"
68
+ "prettier": "^3.1.1",
69
+ "sass": "^1.69.6",
70
+ "start-server-and-test": "^2.0.3",
71
+ "type-fest": "^4.9.0",
72
+ "typescript": "~5.3.3",
73
+ "vite": "^5.0.10",
74
+ "vitest": "^1.1.0",
75
+ "vue": "^3.3.13",
76
+ "vue-tsc": "^1.8.27"
77
+ },
78
+ "resolutions": {
79
+ "jackspeak": "2.1.1"
77
80
  }
78
81
  }
@@ -77,11 +77,11 @@ export type OverlayComponentConfig<T> = T extends Vue__ComponentPublicInstanceCo
77
77
  component: Raw<T>;
78
78
  }
79
79
  : T extends (props: infer P) => any
80
- ? {
81
- props: Omit<ObjectOrDefault<P>, keyof VNodeProps | keyof AllowedComponentProps>;
82
- component: T;
83
- }
84
- : never;
80
+ ? {
81
+ props: Omit<ObjectOrDefault<P>, keyof VNodeProps | keyof AllowedComponentProps>;
82
+ component: T;
83
+ }
84
+ : never;
85
85
  export type OverlayComponentUnwrapped<T extends OverlayComponent> = OverlayComponentConfig<T>['component'];
86
86
  export type OverlayComponentProps<T extends OverlayComponent> = OverlayComponentConfig<T>['props'];
87
87
 
package/tsconfig.app.json CHANGED
@@ -3,6 +3,8 @@
3
3
  "include": ["src/**/*.ts", "src/**/*.vue"],
4
4
  "exclude": ["src/**/__tests__/*", "src/vite-plugins/*"],
5
5
  "compilerOptions": {
6
+ "noEmit": false,
7
+ "emitDeclarationOnly": true,
6
8
  "composite": true,
7
9
  "baseUrl": ".",
8
10
  "paths": {
@@ -2,8 +2,10 @@
2
2
  "extends": "./tsconfig.app.json",
3
3
  "exclude": [],
4
4
  "compilerOptions": {
5
- "composite": true,
5
+ "composite": false,
6
6
  "lib": [],
7
- "types": ["node", "jsdom"]
7
+ "types": ["node", "jsdom"],
8
+ "emitDeclarationOnly": false,
9
+ "noEmit": true
8
10
  }
9
11
  }
package/vite.config.ts CHANGED
@@ -26,7 +26,7 @@ export default defineConfig({
26
26
  external: ['date-fns', 'lodash', 'vue', '@vue/shared', '@signal24/openapi-client-codegen/browser'],
27
27
  output: {
28
28
  assetFileNames: assetInfo => {
29
- if (assetInfo.name === 'index.css') return 'vue-foundation.css';
29
+ if (assetInfo.name === 'main.css') return 'vue-foundation.css';
30
30
  return assetInfo.name!;
31
31
  },
32
32
  exports: 'named',