@illinois-grad/grad-vue 2.2.0 → 2.3.1

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/grad-vue.js CHANGED
@@ -1,8 +1,8 @@
1
- import { e as N, G as Q, _ as U, j as W, x as _, z as j, A as q, s as J, t as Y, y as X, r as Z, k as ee, p as te, q as ne, b as re, d as se, g as oe, f as ae, c as ue, h as ce, i as ie, m as le, n as ge, o as fe, u as he, v as de, a as me, l as ve, w as pe, V as Ee, L as Ge, B as ye, M as Ce, K as we, J as be, I as Se, H as Ie, C as Te, D as Me, E as Ve, F as ke } from "./main-Cfnx_6UB.js";
1
+ import { e as Q, G as $, _ as U, j as W, x as _, z as j, A as q, s as J, t as Y, y as X, B as Z, r as ee, k as te, p as ne, q as re, b as se, d as oe, g as ae, f as ue, c as ie, h as ce, i as le, C as ge, m as me, n as fe, o as he, u as de, v as ve, a as pe, l as Ee, w as Ge, V as ye, P as Ce, D as we, Q as be, O as Se, N as Ie, M as Te, L as Me, J as Ve, K as ke, E as xe, F as Le, H as Be, I as De } from "./main-BiwAEGyQ.js";
2
2
  import { unrefElement as I, useMutationObserver as M, useIntersectionObserver as V, useMediaQuery as k, createEventHook as x } from "@vueuse/core";
3
- import { ref as T, useId as L, watch as B, onBeforeUnmount as D, reactive as A } from "vue";
4
- function H(r, c, o) {
5
- const g = [0, 0.25, 0.5, 0.75, 1], m = `${-c}px 0px 0px 0px`, i = /* @__PURE__ */ new Map(), a = T(
3
+ import { ref as T, useId as L, watch as B, onBeforeUnmount as D, reactive as O } from "vue";
4
+ function R(r, i, o) {
5
+ const g = [0, 0.25, 0.5, 0.75, 1], d = `${-i}px 0px 0px 0px`, c = /* @__PURE__ */ new Map(), a = T(
6
6
  Array.from(I(r)?.children || [])
7
7
  );
8
8
  M(
@@ -14,18 +14,18 @@ function H(r, c, o) {
14
14
  },
15
15
  { childList: !0 }
16
16
  );
17
- const { stop: f } = V(
17
+ const { stop: m } = V(
18
18
  a,
19
19
  (l) => {
20
20
  const v = a.value[a.value.length - 1];
21
21
  for (const u of l)
22
- i.set(
22
+ c.set(
23
23
  u.target,
24
24
  u.isIntersecting ? Math.ceil(100 * u.intersectionRatio) / 100 : 0
25
- ), u.target === v && u.intersectionRatio === 1 && i.set(u.target, Number.POSITIVE_INFINITY);
25
+ ), u.target === v && u.intersectionRatio === 1 && c.set(u.target, Number.POSITIVE_INFINITY);
26
26
  let p = null, E = 0;
27
- for (const u of i.keys()) {
28
- const G = i.get(u) || 0;
27
+ for (const u of c.keys()) {
28
+ const G = c.get(u) || 0;
29
29
  G <= E || (u.getBoundingClientRect(), p = u, E = G);
30
30
  }
31
31
  p instanceof HTMLElement ? o.value = p.id : o.value = "";
@@ -33,54 +33,54 @@ function H(r, c, o) {
33
33
  {
34
34
  threshold: g,
35
35
  root: null,
36
- rootMargin: m,
36
+ rootMargin: d,
37
37
  immediate: !0
38
38
  }
39
39
  );
40
- return { stop: f };
40
+ return { stop: m };
41
41
  }
42
- function z(r = "(max-width: 800px)") {
43
- const c = L(), o = T(!1), g = k(r, {
42
+ function H(r = "(max-width: 800px)") {
43
+ const i = L(), o = T(!1), g = k(r, {
44
44
  ssrWidth: 1e3
45
45
  });
46
- function m(a) {
46
+ function d(a) {
47
47
  if (!g.value || !o.value)
48
48
  return;
49
- const f = a.target, l = document.getElementById(`${c}-sidebar`);
50
- l && (l.contains(f) || setTimeout(() => {
49
+ const m = a.target, l = document.getElementById(`${i}-sidebar`);
50
+ l && (l.contains(m) || setTimeout(() => {
51
51
  o.value = !1;
52
52
  }, 5));
53
53
  }
54
- function i(a) {
54
+ function c(a) {
55
55
  if (!g.value || !o.value)
56
56
  return;
57
- const f = a.target, l = document.getElementById(`${c}-sidebar`), v = document.getElementById(`${c}-hamburger`);
58
- l && (l.contains(f) || v?.contains(f) || setTimeout(() => {
57
+ const m = a.target, l = document.getElementById(`${i}-sidebar`), v = document.getElementById(`${i}-hamburger`);
58
+ l && (l.contains(m) || v?.contains(m) || setTimeout(() => {
59
59
  o.value = !1;
60
60
  }, 5));
61
61
  }
62
62
  return document && B(
63
63
  g,
64
64
  (a) => {
65
- a ? (document.addEventListener("mousedown", m), document.addEventListener("focusin", i)) : (document.removeEventListener("mousedown", m), document.removeEventListener("focusin", i));
65
+ a ? (document.addEventListener("mousedown", d), document.addEventListener("focusin", c)) : (document.removeEventListener("mousedown", d), document.removeEventListener("focusin", c));
66
66
  },
67
67
  { immediate: !0 }
68
68
  ), D(() => {
69
- document.removeEventListener("mousedown", m), document.removeEventListener("focusin", i);
69
+ document.removeEventListener("mousedown", d), document.removeEventListener("focusin", c);
70
70
  }), {
71
- id: c,
71
+ id: i,
72
72
  open: o,
73
73
  isCollapsible: g,
74
74
  toggle: () => o.value = !o.value
75
75
  };
76
76
  }
77
- function F() {
78
- const r = A(/* @__PURE__ */ new Map()), c = x(), o = (t) => {
79
- const n = t.column.key, e = t.row.key, s = t.value, h = t.previousValue;
77
+ function z() {
78
+ const r = O(/* @__PURE__ */ new Map()), i = x(), o = (t) => {
79
+ const n = t.column.key, e = t.row.key, s = t.value, f = t.previousValue;
80
80
  r.has(e) || r.set(e, /* @__PURE__ */ new Map());
81
- const d = r.get(e), y = d.get(n), C = y ? y.previousValue : h, S = y?.error;
81
+ const h = r.get(e), y = h.get(n), C = y ? y.previousValue : f, S = y?.error;
82
82
  if (s === C)
83
- d.delete(n), d.size === 0 && r.delete(e), c.trigger({ rowKey: e, columnKey: n, previousValue: C, newValue: null });
83
+ h.delete(n), h.size === 0 && r.delete(e), i.trigger({ rowKey: e, columnKey: n, previousValue: C, newValue: null });
84
84
  else {
85
85
  const w = {
86
86
  rowKey: e,
@@ -88,7 +88,7 @@ function F() {
88
88
  previousValue: C,
89
89
  newValue: s
90
90
  };
91
- S !== void 0 && (w.error = S), d.set(n, w), c.trigger(w);
91
+ S !== void 0 && (w.error = S), h.set(n, w), i.trigger(w);
92
92
  }
93
93
  }, g = () => {
94
94
  const t = [];
@@ -97,18 +97,18 @@ function F() {
97
97
  t.push({ ...e });
98
98
  });
99
99
  }), t;
100
- }, m = () => {
100
+ }, d = () => {
101
101
  const t = /* @__PURE__ */ new Map();
102
102
  return r.forEach((n, e) => {
103
103
  const s = { key: e };
104
- n.forEach((h, d) => {
105
- s[d] = h.newValue;
104
+ n.forEach((f, h) => {
105
+ s[h] = f.newValue;
106
106
  }), t.set(e, s);
107
107
  }), t;
108
- }, i = () => r.size > 0, a = (t, n) => {
108
+ }, c = () => r.size > 0, a = (t, n) => {
109
109
  const e = r.get(t);
110
110
  return e ? e.has(String(n)) : !1;
111
- }, f = (t, n) => {
111
+ }, m = (t, n) => {
112
112
  const e = r.get(t);
113
113
  return e ? e.get(String(n))?.newValue : void 0;
114
114
  }, l = () => {
@@ -120,8 +120,8 @@ function F() {
120
120
  if (!e || e.size === 0)
121
121
  return n;
122
122
  const s = { ...n };
123
- return e.forEach((h, d) => {
124
- s[d] = h.newValue;
123
+ return e.forEach((f, h) => {
124
+ s[h] = f.newValue;
125
125
  }), s;
126
126
  }), E = () => {
127
127
  let t = 0;
@@ -131,8 +131,8 @@ function F() {
131
131
  }, u = (t, n, e) => {
132
132
  const s = r.get(t);
133
133
  if (!s) return;
134
- const h = s.get(String(n));
135
- h && (h.error = e);
134
+ const f = s.get(String(n));
135
+ f && (f.error = e);
136
136
  }, G = (t, n) => {
137
137
  const e = r.get(t);
138
138
  if (!e) return;
@@ -145,10 +145,10 @@ function F() {
145
145
  return {
146
146
  trackChange: o,
147
147
  getChanges: g,
148
- getChangesByRow: m,
149
- hasChanges: i,
148
+ getChangesByRow: d,
149
+ hasChanges: c,
150
150
  hasChange: a,
151
- getChange: f,
151
+ getChange: m,
152
152
  clearChanges: l,
153
153
  clearRowChanges: v,
154
154
  applyChangesToData: p,
@@ -160,12 +160,12 @@ function F() {
160
160
  const e = b(t, n);
161
161
  return e !== void 0 && e !== "";
162
162
  },
163
- onChange: c.on
163
+ onChange: i.on
164
164
  };
165
165
  }
166
166
  export {
167
- N as GAlertDialog,
168
- Q as GAppHeader,
167
+ Q as GAlertDialog,
168
+ $ as GAppHeader,
169
169
  U as GButton,
170
170
  W as GClipboard,
171
171
  _ as GCurrencyInput,
@@ -174,39 +174,43 @@ export {
174
174
  J as GDetailList,
175
175
  Y as GDetailListItem,
176
176
  X as GEmailInput,
177
- Z as GHamburgerMenu,
178
- ee as GHistoryScroller,
179
- te as GModal,
180
- ne as GOverlay,
181
- re as GPopover,
182
- se as GProgress,
183
- oe as GSearch,
184
- ae as GSelect,
185
- ue as GSelectButton,
177
+ Z as GForm,
178
+ ee as GHamburgerMenu,
179
+ te as GHistoryScroller,
180
+ ne as GModal,
181
+ re as GOverlay,
182
+ se as GPopover,
183
+ oe as GProgress,
184
+ ae as GSearch,
185
+ ue as GSelect,
186
+ ie as GSelectButton,
186
187
  ce as GSidebar,
187
- ie as GSidebarMenu,
188
- le as GTable,
189
- ge as GTableBody,
190
- fe as GTablePagination,
191
- he as GTermSelector,
192
- de as GTermSelectorControl,
193
- me as GTextInput,
194
- ve as GThreeWayToggle,
195
- pe as GUserMenu,
196
- Ee as VGtooltip,
197
- Ge as asArray,
198
- ye as calculatePopoverPosition,
199
- Ce as emptyAsUndefined,
200
- we as filterAsQuery,
201
- be as filterOmitEmpty,
202
- Se as filtersToQueryParams,
203
- H as useActiveLinkContent,
204
- Ie as useFiltering,
205
- Te as useOverlayEscape,
206
- Me as useOverlayFocus,
207
- Ve as useOverlayStack,
208
- ke as useOverlayStackState,
209
- z as useSidebar,
210
- F as useTableChanges
188
+ le as GSidebarMenu,
189
+ ge as GSubmitButton,
190
+ me as GTable,
191
+ fe as GTableBody,
192
+ he as GTablePagination,
193
+ de as GTermSelector,
194
+ ve as GTermSelectorControl,
195
+ pe as GTextInput,
196
+ Ee as GThreeWayToggle,
197
+ Ge as GUserMenu,
198
+ ye as VGtooltip,
199
+ Ce as asArray,
200
+ we as calculatePopoverPosition,
201
+ be as emptyAsUndefined,
202
+ Se as filterAsQuery,
203
+ Ie as filterOmitEmpty,
204
+ Te as filtersToQueryParams,
205
+ R as useActiveLinkContent,
206
+ Me as useFiltering,
207
+ Ve as useForm,
208
+ ke as useFormField,
209
+ xe as useOverlayEscape,
210
+ Le as useOverlayFocus,
211
+ Be as useOverlayStack,
212
+ De as useOverlayStackState,
213
+ H as useSidebar,
214
+ z as useTableChanges
211
215
  };
212
216
  //# sourceMappingURL=grad-vue.js.map