@signal24/vue-foundation 4.19.6 → 4.19.7

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.
@@ -1,8 +1,8 @@
1
1
  var Tt = Object.defineProperty;
2
2
  var St = (e, t, n) => t in e ? Tt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var O = (e, t, n) => St(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { defineComponent as N, ref as T, computed as M, watch as A, onMounted as V, openBlock as E, createElementBlock as k, createElementVNode as D, toDisplayString as U, withDirectives as Q, createCommentVNode as F, Fragment as J, renderList as he, vModelSelect as Ct, getCurrentInstance as pe, withModifiers as ye, normalizeStyle as xt, normalizeClass as B, renderSlot as G, reactive as Lt, h as ee, Teleport as Mt, markRaw as It, onBeforeUnmount as ge, resolveDirective as Ht, createBlock as qe, createSlots as Ot, withCtx as ue, createTextVNode as ce, vModelText as At, onActivated as ze, onDeactivated as Ye } from "vue";
5
- import { compact as Ke, debounce as Ft, isEqual as Xe, startCase as Dt, upperFirst as Bt, cloneDeep as $t, remove as Vt, last as _t } from "lodash";
4
+ import { defineComponent as N, ref as T, computed as M, watch as A, onMounted as V, openBlock as E, createElementBlock as k, createElementVNode as D, toDisplayString as U, withDirectives as Q, createCommentVNode as F, Fragment as J, renderList as he, vModelSelect as Ct, getCurrentInstance as pe, withModifiers as ye, normalizeStyle as xt, normalizeClass as B, renderSlot as G, reactive as Lt, h as ee, Teleport as Mt, markRaw as It, onBeforeUnmount as ge, resolveDirective as Ht, createBlock as qe, createSlots as Ot, withCtx as ue, createTextVNode as ce, vModelText as At, onActivated as ze, onDeactivated as Ke } from "vue";
5
+ import { compact as Ye, debounce as Ft, isEqual as Xe, startCase as Dt, upperFirst as Bt, cloneDeep as $t, remove as Vt, last as _t } from "lodash";
6
6
  import { escapeHtml as Nt } from "@vue/shared";
7
7
  import { escapeHtml as Uo } from "@vue/shared";
8
8
  import { configureOpenApiClient as Rt, OpenApiError as Wt } from "@signal24/openapi-client-codegen/browser";
@@ -96,7 +96,7 @@ const Ut = {
96
96
  };
97
97
  }
98
98
  function d() {
99
- window.removeEventListener("click", d), Kt(t.overlayId);
99
+ window.removeEventListener("click", d), Yt(t.overlayId);
100
100
  }
101
101
  return V(() => {
102
102
  setTimeout(() => {
@@ -137,14 +137,14 @@ function po(e) {
137
137
  }
138
138
  function Ze(e) {
139
139
  let t = e;
140
- for (; t && !Yt(t.vnode); )
140
+ for (; t && !Kt(t.vnode); )
141
141
  t = t.parent;
142
142
  }
143
- function Yt(e) {
143
+ function Kt(e) {
144
144
  const t = _.findIndex((n) => n.vnode.component === e.component);
145
145
  return t >= 0 ? (_[t].props.callback(), !0) : !1;
146
146
  }
147
- function Kt(e) {
147
+ function Yt(e) {
148
148
  const t = _.findIndex((n) => n.id === e);
149
149
  return t >= 0 ? (_[t].props.callback(), !0) : !1;
150
150
  }
@@ -303,7 +303,7 @@ const Jt = ["id"], en = {
303
303
  setup(e, { expose: t }) {
304
304
  const n = pe(), o = e;
305
305
  t({ mask: f, unmask: w, hide: m, unhide: r });
306
- const i = T(), l = T(), u = T(!1), a = M(() => Ke([...Array.isArray(o.class) ? o.class : [o.class], u.value && "hidden"]));
306
+ const i = T(), l = T(), u = T(!1), a = M(() => Ye([...Array.isArray(o.class) ? o.class : [o.class], u.value && "hidden"]));
307
307
  V(() => {
308
308
  var c;
309
309
  document.body.classList.add("vf-modal-open"), o.closeOnMaskClick && (window.addEventListener("keydown", g), (c = i.value) == null || c.addEventListener("click", d));
@@ -952,15 +952,15 @@ function $o(e, t) {
952
952
  const be = Symbol("HookState");
953
953
  function Vo(e, t) {
954
954
  const n = t ?? pe();
955
- V(() => Rn(n, e), n), ze(() => Wn(n), n), Ye(() => Ve(n), n), ge(() => Ve(n), n);
955
+ V(() => Rn(n, e), n), ze(() => Wn(n), n), Ke(() => Ve(n), n), ge(() => Ve(n), n);
956
956
  }
957
957
  function Rn(e, t) {
958
958
  const n = {};
959
- if (t.elScrolledToBottom && (n.el = new Y(e.vnode.el, t.elScrolledToBottom)), t.ancestorScrolledToBottom) {
959
+ if (t.elScrolledToBottom && (n.el = new K(e.vnode.el, t.elScrolledToBottom)), t.ancestorScrolledToBottom) {
960
960
  const o = et(e.vnode.el);
961
- o ? n.ancestor = new Y(o, t.ancestorScrolledToBottom) : console.warn("[VueFoundation] No scollable ancestor found for component:", e);
961
+ o ? n.ancestor = new K(o, t.ancestorScrolledToBottom) : console.warn("[VueFoundation] No scollable ancestor found for component:", e);
962
962
  }
963
- t.windowScrolledToBottom && (n.window = new Y(window, t.windowScrolledToBottom)), e[be] = n;
963
+ t.windowScrolledToBottom && (n.window = new K(window, t.windowScrolledToBottom)), e[be] = n;
964
964
  }
965
965
  function Wn(e) {
966
966
  var n, o, i;
@@ -979,7 +979,7 @@ function et(e) {
979
979
  const n = window.getComputedStyle(t);
980
980
  return fe.includes(n.overflow) || fe.includes(n.overflowX) || fe.includes(n.overflowY) ? t : et(t);
981
981
  }
982
- class Y {
982
+ class K {
983
983
  constructor(t, n) {
984
984
  O(this, "isTripped", !1);
985
985
  O(this, "onScrollWithContext", this.onScroll.bind(this));
@@ -996,7 +996,7 @@ class Y {
996
996
  }
997
997
  }
998
998
  function _o(e) {
999
- V(() => window.addEventListener("resize", e)), ze(() => window.addEventListener("resize", e)), Ye(() => window.removeEventListener("resize", e)), ge(() => window.removeEventListener("resize", e));
999
+ V(() => window.addEventListener("resize", e)), ze(() => window.addEventListener("resize", e)), Ke(() => window.removeEventListener("resize", e)), ge(() => window.removeEventListener("resize", e));
1000
1000
  }
1001
1001
  const Un = {
1002
1002
  mounted: Ne,
@@ -1044,14 +1044,14 @@ function zn(e) {
1044
1044
  isNaN(n) ? e.value = "" : e.value = ve(n, "MM/dd/yyyy"), e.dispatchEvent(new Event("input"));
1045
1045
  });
1046
1046
  }
1047
- const Yn = {
1047
+ const Kn = {
1048
1048
  beforeMount: Re,
1049
1049
  updated: Re
1050
1050
  };
1051
1051
  function Re(e, t) {
1052
- t.value == t.oldValue && e.innerHTML.length || (e.innerText = Kn(e, t));
1052
+ t.value == t.oldValue && e.innerHTML.length || (e.innerText = Yn(e, t));
1053
1053
  }
1054
- function Kn(e, t) {
1054
+ function Yn(e, t) {
1055
1055
  var g, b;
1056
1056
  if (!t.value)
1057
1057
  return ((g = e.attributes.getNamedItem("placeholder")) == null ? void 0 : g.value) ?? "";
@@ -1067,9 +1067,9 @@ function Kn(e, t) {
1067
1067
  if (!u && e.attributes.getNamedItem("simplified-date") !== null) {
1068
1068
  let f = null;
1069
1069
  const w = /* @__PURE__ */ new Date();
1070
- w.getFullYear() === l.getFullYear() ? (w.getMonth() !== l.getMonth() || w.getDate() !== l.getDate()) && (f = "M/d") : f = "M/d/YY";
1070
+ w.getFullYear() === l.getFullYear() ? (w.getMonth() !== l.getMonth() || w.getDate() !== l.getDate()) && (f = "M/d") : f = "M/d/yy";
1071
1071
  const m = a ? null : $.defaultTimeFormat;
1072
- u = Ke([f, m]).join(" ");
1072
+ u = Ye([f, m]).join(" ");
1073
1073
  }
1074
1074
  u || (a ? u = $.defaultDateFormat : u = `${$.defaultDateFormat} ${$.defaultTimeFormat}`);
1075
1075
  let d = ve(l, u);
@@ -1149,11 +1149,11 @@ function st(e) {
1149
1149
  }
1150
1150
  const q = Symbol("InfiniteScrollHandler"), no = {
1151
1151
  mounted(e, t) {
1152
- e[q] = new Y(e, t.value);
1152
+ e[q] = new K(e, t.value);
1153
1153
  },
1154
1154
  updated(e, t) {
1155
1155
  var n;
1156
- (n = e[q]) == null || n.uninstall(), e[q] = new Y(e, t.value);
1156
+ (n = e[q]) == null || n.uninstall(), e[q] = new K(e, t.value);
1157
1157
  },
1158
1158
  unmounted(e) {
1159
1159
  var t;
@@ -1170,7 +1170,7 @@ const lo = {
1170
1170
  mounted: Pe,
1171
1171
  updated: Pe,
1172
1172
  unmounted: it
1173
- }, K = Symbol("TooltipState");
1173
+ }, Y = Symbol("TooltipState");
1174
1174
  function Pe(e, t) {
1175
1175
  var o;
1176
1176
  let n = ((o = e.attributes.getNamedItem("tip")) == null ? void 0 : o.value) ?? t.value;
@@ -1179,13 +1179,13 @@ function Pe(e, t) {
1179
1179
  content: n,
1180
1180
  html: e.getAttribute("html") !== null
1181
1181
  };
1182
- e[K] ? e[K].configure(i) : e[K] = new so(e, i);
1182
+ e[Y] ? e[Y].configure(i) : e[Y] = new so(e, i);
1183
1183
  } else
1184
1184
  it(e);
1185
1185
  }
1186
1186
  function it(e) {
1187
1187
  var t;
1188
- (t = e[K]) == null || t.destroy(), delete e[K];
1188
+ (t = e[Y]) == null || t.destroy(), delete e[Y];
1189
1189
  }
1190
1190
  class so {
1191
1191
  constructor(t, n) {
@@ -1236,7 +1236,7 @@ class so {
1236
1236
  }
1237
1237
  }
1238
1238
  function io(e) {
1239
- e.directive("autofocus", Un), e.directive("confirm-button", jn), e.directive("date-input", qn), e.directive("datetime", Yn), e.directive("disabled", Xn), e.directive("duration", Gn), e.directive("hotkey", eo), e.directive("infinite-scroll", no), e.directive("readonly", oo), e.directive("tooltip", lo);
1239
+ e.directive("autofocus", Un), e.directive("confirm-button", jn), e.directive("date-input", qn), e.directive("datetime", Kn), e.directive("disabled", Xn), e.directive("duration", Gn), e.directive("hotkey", eo), e.directive("infinite-scroll", no), e.directive("readonly", oo), e.directive("tooltip", lo);
1240
1240
  }
1241
1241
  function No(e) {
1242
1242
  io(e);
@@ -1255,10 +1255,10 @@ export {
1255
1255
  Ho as createFilters,
1256
1256
  we as createOverlayInjection,
1257
1257
  fn as desnakeCase,
1258
- Kt as dismissOverlayInjectionById,
1258
+ Yt as dismissOverlayInjectionById,
1259
1259
  po as dismissOverlayInjectionByInstance,
1260
1260
  Ze as dismissOverlayInjectionByInternalInstance,
1261
- Yt as dismissOverlayInjectionByVnode,
1261
+ Kt as dismissOverlayInjectionByVnode,
1262
1262
  Uo as escapeHtml,
1263
1263
  Zt as formatError,
1264
1264
  Nn as formatNumber,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@signal24/vue-foundation",
3
3
  "type": "module",
4
- "version": "4.19.6",
4
+ "version": "4.19.7",
5
5
  "description": "Common components, directives, and helpers for Vue 3 apps",
6
6
  "module": "./dist/vue-foundation.es.js",
7
7
  "exports": {
@@ -47,7 +47,7 @@ function getDateTimeValue(el: HTMLElement, binding: DirectiveBinding<string>) {
47
47
  dateSpec = 'M/d';
48
48
  }
49
49
  } else {
50
- dateSpec = 'M/d/YY';
50
+ dateSpec = 'M/d/yy';
51
51
  }
52
52
 
53
53
  const timeSpec = isDateOnly ? null : VfOptions.defaultTimeFormat;