@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/components/GCurrencyInput.vue.d.ts +4 -5
- package/dist/components/GDateInput.vue.d.ts +4 -5
- package/dist/components/GDateRangeInput.vue.d.ts +4 -5
- package/dist/components/GEmailInput.vue.d.ts +4 -5
- package/dist/components/GForm.vue.d.ts +42 -0
- package/dist/components/GSearch.vue.d.ts +1 -1
- package/dist/components/GSelect.vue.d.ts +3 -4
- package/dist/components/GSelectButton.vue.d.ts +3 -4
- package/dist/components/GSubmitButton.vue.d.ts +31 -0
- package/dist/components/GTextInput.vue.d.ts +4 -5
- package/dist/components/form/GFormErrorMessages.vue.d.ts +18 -0
- package/dist/compose/useForm.d.ts +21 -0
- package/dist/compose/useFormField.d.ts +29 -0
- package/dist/grad-vue.css +1 -1
- package/dist/grad-vue.d.ts +7 -1
- package/dist/grad-vue.js +80 -76
- package/dist/main-BiwAEGyQ.js +3106 -0
- package/dist/main-BiwAEGyQ.js.map +1 -0
- package/dist/plugin.d.ts +3 -1
- package/dist/plugin.js +4 -4
- package/dist/plugin.js.map +1 -1
- package/package.json +1 -1
- package/dist/main-Cfnx_6UB.js +0 -2905
- package/dist/main-Cfnx_6UB.js.map +0 -1
package/dist/grad-vue.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { e as
|
|
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
|
|
4
|
-
function
|
|
5
|
-
const g = [0, 0.25, 0.5, 0.75, 1],
|
|
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:
|
|
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
|
-
|
|
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 &&
|
|
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
|
|
28
|
-
const G =
|
|
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:
|
|
36
|
+
rootMargin: d,
|
|
37
37
|
immediate: !0
|
|
38
38
|
}
|
|
39
39
|
);
|
|
40
|
-
return { stop:
|
|
40
|
+
return { stop: m };
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
const
|
|
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
|
|
46
|
+
function d(a) {
|
|
47
47
|
if (!g.value || !o.value)
|
|
48
48
|
return;
|
|
49
|
-
const
|
|
50
|
-
l && (l.contains(
|
|
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
|
|
54
|
+
function c(a) {
|
|
55
55
|
if (!g.value || !o.value)
|
|
56
56
|
return;
|
|
57
|
-
const
|
|
58
|
-
l && (l.contains(
|
|
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",
|
|
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",
|
|
69
|
+
document.removeEventListener("mousedown", d), document.removeEventListener("focusin", c);
|
|
70
70
|
}), {
|
|
71
|
-
id:
|
|
71
|
+
id: i,
|
|
72
72
|
open: o,
|
|
73
73
|
isCollapsible: g,
|
|
74
74
|
toggle: () => o.value = !o.value
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
const r =
|
|
79
|
-
const n = t.column.key, e = t.row.key, s = t.value,
|
|
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
|
|
81
|
+
const h = r.get(e), y = h.get(n), C = y ? y.previousValue : f, S = y?.error;
|
|
82
82
|
if (s === C)
|
|
83
|
-
|
|
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),
|
|
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
|
-
},
|
|
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((
|
|
105
|
-
s[
|
|
104
|
+
n.forEach((f, h) => {
|
|
105
|
+
s[h] = f.newValue;
|
|
106
106
|
}), t.set(e, s);
|
|
107
107
|
}), t;
|
|
108
|
-
},
|
|
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
|
-
},
|
|
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((
|
|
124
|
-
s[
|
|
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
|
|
135
|
-
|
|
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:
|
|
149
|
-
hasChanges:
|
|
148
|
+
getChangesByRow: d,
|
|
149
|
+
hasChanges: c,
|
|
150
150
|
hasChange: a,
|
|
151
|
-
getChange:
|
|
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:
|
|
163
|
+
onChange: i.on
|
|
164
164
|
};
|
|
165
165
|
}
|
|
166
166
|
export {
|
|
167
|
-
|
|
168
|
-
|
|
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
|
|
178
|
-
ee as
|
|
179
|
-
te as
|
|
180
|
-
ne as
|
|
181
|
-
re as
|
|
182
|
-
se as
|
|
183
|
-
oe as
|
|
184
|
-
ae as
|
|
185
|
-
ue as
|
|
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
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
fe as
|
|
191
|
-
he as
|
|
192
|
-
de as
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
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
|