@illinois-grad/grad-vue 6.0.9 → 6.0.10
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/custom-elements.json +11 -1
- package/dist/components/GButton.vue.d.ts +14 -3
- package/dist/components/GCurrencyInput.vue.d.ts +1 -1
- package/dist/components/GDateInput.vue.d.ts +1 -1
- package/dist/components/GDateRangeInput.vue.d.ts +1 -1
- package/dist/components/GEmailInput.vue.d.ts +1 -1
- package/dist/components/GFileInput.vue.d.ts +1 -1
- package/dist/components/GMultiSelect.vue.d.ts +1 -1
- package/dist/components/GSelect.vue.d.ts +1 -1
- package/dist/components/GSelectButton.vue.d.ts +1 -1
- package/dist/components/GSubmitButton.vue.d.ts +1 -1
- package/dist/components/GTextInput.vue.d.ts +1 -1
- package/dist/components/GTextarea.vue.d.ts +1 -1
- package/dist/{grad-vue-BvxFT_h2.js → grad-vue-BzzzfIfW.js} +44 -28
- package/dist/grad-vue-BzzzfIfW.js.map +1 -0
- package/dist/grad-vue-elements.css +26 -26
- package/dist/grad-vue-elements.js +43 -27
- package/dist/grad-vue-elements.js.map +1 -1
- package/dist/grad-vue.css +1 -1
- package/dist/grad-vue.js +1 -1
- package/dist/plugin.js +1 -1
- package/package.json +1 -1
- package/dist/grad-vue-BvxFT_h2.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"kind": "field",
|
|
126
126
|
"name": "size",
|
|
127
127
|
"type": {
|
|
128
|
-
"text": "\"small\" | \"medium\" | \"large\""
|
|
128
|
+
"text": "\"tiny\" | \"small\" | \"medium\" | \"large\""
|
|
129
129
|
},
|
|
130
130
|
"optional": true,
|
|
131
131
|
"description": "Button size",
|
|
@@ -161,6 +161,16 @@
|
|
|
161
161
|
"description": "Use text style",
|
|
162
162
|
"default": "false"
|
|
163
163
|
},
|
|
164
|
+
{
|
|
165
|
+
"kind": "field",
|
|
166
|
+
"name": "disabled",
|
|
167
|
+
"type": {
|
|
168
|
+
"text": "boolean"
|
|
169
|
+
},
|
|
170
|
+
"optional": true,
|
|
171
|
+
"description": "Prevent interaction with the button",
|
|
172
|
+
"default": "false"
|
|
173
|
+
},
|
|
164
174
|
{
|
|
165
175
|
"kind": "field",
|
|
166
176
|
"name": "to",
|
|
@@ -23,7 +23,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
23
23
|
* Button size
|
|
24
24
|
* @demo
|
|
25
25
|
*/
|
|
26
|
-
size?: "small" | "medium" | "large";
|
|
26
|
+
size?: "tiny" | "small" | "medium" | "large";
|
|
27
27
|
/**
|
|
28
28
|
* Button color theme
|
|
29
29
|
* @demo
|
|
@@ -39,6 +39,11 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
39
39
|
* @demo
|
|
40
40
|
*/
|
|
41
41
|
text?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Prevent interaction with the button
|
|
44
|
+
* @demo
|
|
45
|
+
*/
|
|
46
|
+
disabled?: boolean;
|
|
42
47
|
/**
|
|
43
48
|
* The to target for when using the button as a router-link
|
|
44
49
|
*/
|
|
@@ -72,7 +77,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
72
77
|
* Button size
|
|
73
78
|
* @demo
|
|
74
79
|
*/
|
|
75
|
-
size?: "small" | "medium" | "large";
|
|
80
|
+
size?: "tiny" | "small" | "medium" | "large";
|
|
76
81
|
/**
|
|
77
82
|
* Button color theme
|
|
78
83
|
* @demo
|
|
@@ -88,6 +93,11 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
88
93
|
* @demo
|
|
89
94
|
*/
|
|
90
95
|
text?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Prevent interaction with the button
|
|
98
|
+
* @demo
|
|
99
|
+
*/
|
|
100
|
+
disabled?: boolean;
|
|
91
101
|
/**
|
|
92
102
|
* The to target for when using the button as a router-link
|
|
93
103
|
*/
|
|
@@ -117,11 +127,12 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
117
127
|
onMouseenter?: ((...args: any[]) => any) | undefined;
|
|
118
128
|
onMouseleave?: ((...args: any[]) => any) | undefined;
|
|
119
129
|
}>, {
|
|
120
|
-
size: "small" | "medium" | "large";
|
|
130
|
+
size: "tiny" | "small" | "medium" | "large";
|
|
121
131
|
type: "button" | "submit" | "reset";
|
|
122
132
|
text: boolean;
|
|
123
133
|
theme: "primary" | "secondary" | "accent" | "danger" | "none";
|
|
124
134
|
outlined: boolean;
|
|
135
|
+
disabled: boolean;
|
|
125
136
|
to: string | Record<string, any>;
|
|
126
137
|
component: string;
|
|
127
138
|
icon: string;
|
|
@@ -99,8 +99,8 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
99
99
|
placeholder: string;
|
|
100
100
|
required: boolean;
|
|
101
101
|
name: string;
|
|
102
|
+
disabled: boolean;
|
|
102
103
|
instructions: string;
|
|
103
104
|
errors: string[];
|
|
104
105
|
formKey: string;
|
|
105
|
-
disabled: boolean;
|
|
106
106
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -99,8 +99,8 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
99
99
|
placeholder: string;
|
|
100
100
|
required: boolean;
|
|
101
101
|
name: string;
|
|
102
|
+
disabled: boolean;
|
|
102
103
|
instructions: string;
|
|
103
104
|
errors: string[];
|
|
104
105
|
formKey: string;
|
|
105
|
-
disabled: boolean;
|
|
106
106
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -120,10 +120,10 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
120
120
|
label: string;
|
|
121
121
|
required: boolean;
|
|
122
122
|
name: string;
|
|
123
|
+
disabled: boolean;
|
|
123
124
|
instructions: string;
|
|
124
125
|
errors: string[];
|
|
125
126
|
formKey: string;
|
|
126
|
-
disabled: boolean;
|
|
127
127
|
startLabel: string;
|
|
128
128
|
endLabel: string;
|
|
129
129
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -87,7 +87,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
87
87
|
placeholder: string;
|
|
88
88
|
required: boolean;
|
|
89
89
|
name: string;
|
|
90
|
+
disabled: boolean;
|
|
90
91
|
instructions: string;
|
|
91
92
|
errors: string[];
|
|
92
|
-
disabled: boolean;
|
|
93
93
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -131,8 +131,8 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
131
131
|
onChange?: ((files: File[]) => any) | undefined;
|
|
132
132
|
}>, {
|
|
133
133
|
required: boolean;
|
|
134
|
+
disabled: boolean;
|
|
134
135
|
instructions: string;
|
|
135
136
|
errors: string[];
|
|
136
|
-
disabled: boolean;
|
|
137
137
|
multiple: boolean;
|
|
138
138
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -147,8 +147,8 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
147
147
|
onChange?: ((value: (string | number)[]) => any) | undefined;
|
|
148
148
|
}>, {
|
|
149
149
|
required: boolean;
|
|
150
|
-
errors: string[];
|
|
151
150
|
disabled: boolean;
|
|
151
|
+
errors: string[];
|
|
152
152
|
hiddenLabel: boolean;
|
|
153
153
|
searchDescription: boolean;
|
|
154
154
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -161,8 +161,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
161
161
|
"onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
|
|
162
162
|
}>, {
|
|
163
163
|
required: boolean;
|
|
164
|
-
errors: string[];
|
|
165
164
|
disabled: boolean;
|
|
165
|
+
errors: string[];
|
|
166
166
|
searchDescription: boolean;
|
|
167
167
|
searchable: boolean;
|
|
168
168
|
compact: boolean;
|
|
@@ -105,7 +105,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
105
105
|
size: "small" | "medium" | "large";
|
|
106
106
|
required: boolean;
|
|
107
107
|
name: string;
|
|
108
|
+
disabled: boolean;
|
|
108
109
|
errors: string[];
|
|
109
110
|
formKey: string;
|
|
110
|
-
disabled: boolean;
|
|
111
111
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -60,8 +60,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
60
60
|
*/
|
|
61
61
|
formKey?: string;
|
|
62
62
|
}> & Readonly<{}>, {
|
|
63
|
-
formKey: string;
|
|
64
63
|
disabled: boolean;
|
|
64
|
+
formKey: string;
|
|
65
65
|
variant: "primary" | "secondary" | "danger";
|
|
66
66
|
loadingText: string;
|
|
67
67
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
@@ -141,10 +141,10 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
141
141
|
placeholder: string;
|
|
142
142
|
required: boolean;
|
|
143
143
|
name: string;
|
|
144
|
+
disabled: boolean;
|
|
144
145
|
instructions: string;
|
|
145
146
|
errors: string[];
|
|
146
147
|
formKey: string;
|
|
147
|
-
disabled: boolean;
|
|
148
148
|
prefix: string;
|
|
149
149
|
suffix: string;
|
|
150
150
|
debounce: number;
|
|
@@ -152,10 +152,10 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
152
152
|
placeholder: string;
|
|
153
153
|
required: boolean;
|
|
154
154
|
name: string;
|
|
155
|
+
disabled: boolean;
|
|
155
156
|
instructions: string;
|
|
156
157
|
errors: string[];
|
|
157
158
|
formKey: string;
|
|
158
|
-
disabled: boolean;
|
|
159
159
|
readonly: boolean;
|
|
160
160
|
rows: number;
|
|
161
161
|
maxlength: number;
|
|
@@ -34,6 +34,10 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
34
34
|
type: Boolean,
|
|
35
35
|
default: !1
|
|
36
36
|
},
|
|
37
|
+
disabled: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: !1
|
|
40
|
+
},
|
|
37
41
|
to: { default: void 0 },
|
|
38
42
|
component: { default: void 0 },
|
|
39
43
|
icon: { default: void 0 },
|
|
@@ -50,45 +54,57 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
50
54
|
"mouseenter",
|
|
51
55
|
"mouseleave"
|
|
52
56
|
],
|
|
53
|
-
setup(t) {
|
|
54
|
-
let
|
|
57
|
+
setup(t, { emit: n }) {
|
|
58
|
+
let a = t, c = z(), l = n, { forwardedAttrs: u } = fe({ omitInCustomElement: ["id"] }), d = r(() => [
|
|
55
59
|
"g-btn",
|
|
56
|
-
`g-btn--${
|
|
57
|
-
`g-btn--${
|
|
60
|
+
`g-btn--${a.size}`,
|
|
61
|
+
`g-btn--${a.theme}`,
|
|
58
62
|
{
|
|
59
|
-
"g-btn--outlined":
|
|
60
|
-
"g-btn--text":
|
|
61
|
-
"g-btn--primary":
|
|
62
|
-
"g-btn--accent":
|
|
63
|
-
"g-btn-has-text":
|
|
64
|
-
"g-btn-has-icon-class":
|
|
65
|
-
"g-btn-has-icon-svg": !!
|
|
63
|
+
"g-btn--outlined": a.outlined,
|
|
64
|
+
"g-btn--text": a.text,
|
|
65
|
+
"g-btn--primary": a.theme === "primary",
|
|
66
|
+
"g-btn--accent": a.theme === "accent",
|
|
67
|
+
"g-btn-has-text": a.text,
|
|
68
|
+
"g-btn-has-icon-class": a.icon,
|
|
69
|
+
"g-btn-has-icon-svg": !!c.icon,
|
|
70
|
+
"g-btn--disabled": a.disabled
|
|
66
71
|
}
|
|
67
72
|
]);
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
73
|
+
function f(e) {
|
|
74
|
+
if (a.disabled) {
|
|
75
|
+
e.preventDefault(), e.stopPropagation();
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
l("click", e);
|
|
79
|
+
}
|
|
80
|
+
return (n, r) => (S(), i(O(a.component ? a.component : "button"), m(F(u), {
|
|
81
|
+
to: a.to,
|
|
82
|
+
class: d.value,
|
|
83
|
+
type: a.to ? void 0 : a.type,
|
|
84
|
+
disabled: a.disabled,
|
|
85
|
+
"aria-disabled": a.disabled || void 0,
|
|
86
|
+
onClick: f,
|
|
87
|
+
onFocus: r[0] ||= (e) => n.$emit("focus", e),
|
|
88
|
+
onBlur: r[1] ||= (e) => n.$emit("blur", e),
|
|
89
|
+
onKeydown: r[2] ||= (e) => n.$emit("keydown", e),
|
|
90
|
+
onKeyup: r[3] ||= (e) => n.$emit("keyup", e),
|
|
91
|
+
onMousedown: r[4] ||= (e) => n.$emit("mousedown", e),
|
|
92
|
+
onMouseup: r[5] ||= (e) => n.$emit("mouseup", e),
|
|
93
|
+
onMouseenter: r[6] ||= (e) => n.$emit("mouseenter", e),
|
|
94
|
+
onMouseleave: r[7] ||= (e) => n.$emit("mouseleave", e)
|
|
81
95
|
}), {
|
|
82
|
-
default: G(() => [t.icon ||
|
|
96
|
+
default: G(() => [t.icon || c.icon ? (S(), o(e, { key: 0 }, [s("span", pe, [c.icon ? D(n.$slots, "icon", {}, void 0, void 0, 0) : (S(), o("span", {
|
|
83
97
|
key: 1,
|
|
84
98
|
class: g(t.icon + " g-btn--icon-span"),
|
|
85
99
|
"aria-hidden": "true"
|
|
86
|
-
}, null, 2))]), s("span", me, [D(
|
|
100
|
+
}, null, 2))]), s("span", me, [D(n.$slots, "default")])], 64)) : D(n.$slots, "default", {}, void 0, void 0, 1)]),
|
|
87
101
|
_: 3
|
|
88
102
|
}, 16, [
|
|
89
103
|
"to",
|
|
90
104
|
"class",
|
|
91
|
-
"type"
|
|
105
|
+
"type",
|
|
106
|
+
"disabled",
|
|
107
|
+
"aria-disabled"
|
|
92
108
|
]));
|
|
93
109
|
}
|
|
94
110
|
}), he = { class: "g-tree-menu__divider" }, ge = {
|
|
@@ -5260,4 +5276,4 @@ function Wo(e, t) {
|
|
|
5260
5276
|
//#endregion
|
|
5261
5277
|
export { ht as $, li as A, An as B, La as C, ui as D, Ea as E, Rr as F, bn as G, Dn as H, Dr as I, rn as J, fn as K, dr as L, di as M, vi as N, ci as O, _i as P, St as Q, Xn as R, za as S, Ma as T, Cn as U, On as V, xn as W, Nt as X, qt as Y, Dt as Z, eo as _, Po as a, qe as at, qa as b, Mo as c, ke as ct, To as d, be as dt, st as et, yo as f, ye as ft, so as g, co as h, No as i, Ke as it, gi as j, hi as k, jo as l, De as lt, go as m, Ho as n, tt as nt, Fo as o, Re as ot, vo as p, Q as pt, sn as q, Io as r, et as rt, Vo as s, $ as st, Wo as t, nt as tt, Ao as u, Ee as ut, $a as v, Na as w, Ua as x, Qa as y, Fn as z };
|
|
5262
5278
|
|
|
5263
|
-
//# sourceMappingURL=grad-vue-
|
|
5279
|
+
//# sourceMappingURL=grad-vue-BzzzfIfW.js.map
|