@illinois-grad/grad-vue 2.5.0 → 2.5.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/custom-elements.json +149 -1
- package/dist/components/GButton.vue.d.ts +9 -0
- package/dist/components/GCurrencyInput.vue.d.ts +13 -0
- package/dist/components/GDateInput.vue.d.ts +13 -0
- package/dist/components/GDateRangeInput.vue.d.ts +13 -0
- package/dist/components/GForm.vue.d.ts +13 -0
- package/dist/components/GHamburgerMenu.vue.d.ts +13 -0
- package/dist/components/GModal.vue.d.ts +0 -6
- package/dist/components/GPopover.vue.d.ts +24 -8
- package/dist/components/GSelect.vue.d.ts +13 -0
- package/dist/components/GSelectButton.vue.d.ts +13 -0
- package/dist/components/GSidebar.vue.d.ts +14 -0
- package/dist/components/GSubmitButton.vue.d.ts +15 -0
- package/dist/components/GTextInput.vue.d.ts +13 -0
- package/dist/components/GTooltip.vue.d.ts +37 -0
- package/dist/compose/tooltipDom.d.ts +6 -0
- package/dist/compose/useCustomElementAttrs.d.ts +14 -0
- package/dist/compose/useFormField.d.ts +4 -0
- package/dist/compose/useOverlayFocus.d.ts +1 -1
- package/dist/compose/useWebComponentForm.d.ts +2 -0
- package/dist/compose/useWebComponentSidebar.d.ts +9 -0
- package/dist/grad-vue-V6VDJQTJ.js +3478 -0
- package/dist/grad-vue-V6VDJQTJ.js.map +1 -0
- package/dist/grad-vue-elements.css +2 -1
- package/dist/grad-vue-elements.d.ts +3 -0
- package/dist/grad-vue-elements.js +8036 -9418
- package/dist/grad-vue-elements.js.map +1 -1
- package/dist/grad-vue.css +2 -1
- package/dist/grad-vue.d.ts +4 -1
- package/dist/grad-vue.js +2 -240
- package/dist/plugin.d.ts +2 -1
- package/dist/plugin.js +9 -12
- package/dist/plugin.js.map +1 -1
- package/package.json +1 -1
- package/dist/grad-vue.js.map +0 -1
- package/dist/main-D8BC78tE.js +0 -3394
- package/dist/main-D8BC78tE.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -170,6 +170,16 @@
|
|
|
170
170
|
"optional": true,
|
|
171
171
|
"description": "Optional icon classes to render an icon span before the label. Example: \"fa-solid fa-plus\" or \"material-symbols:add\". If a named slot `icon` is provided, it takes precedence over this prop.",
|
|
172
172
|
"default": "undefined"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"kind": "field",
|
|
176
|
+
"name": "type",
|
|
177
|
+
"type": {
|
|
178
|
+
"text": "\"button\" | \"submit\" | \"reset\""
|
|
179
|
+
},
|
|
180
|
+
"optional": true,
|
|
181
|
+
"description": "Native button type",
|
|
182
|
+
"default": "\"button\""
|
|
173
183
|
}
|
|
174
184
|
],
|
|
175
185
|
"events": [
|
|
@@ -341,6 +351,16 @@
|
|
|
341
351
|
"description": "Name for form registration",
|
|
342
352
|
"default": "undefined"
|
|
343
353
|
},
|
|
354
|
+
{
|
|
355
|
+
"kind": "field",
|
|
356
|
+
"name": "formKey",
|
|
357
|
+
"type": {
|
|
358
|
+
"text": "string"
|
|
359
|
+
},
|
|
360
|
+
"optional": true,
|
|
361
|
+
"description": "Form channel key for custom elements mode",
|
|
362
|
+
"default": "undefined"
|
|
363
|
+
},
|
|
344
364
|
{
|
|
345
365
|
"kind": "field",
|
|
346
366
|
"name": "modelValue",
|
|
@@ -423,6 +443,16 @@
|
|
|
423
443
|
"description": "Name for form registration",
|
|
424
444
|
"default": "undefined"
|
|
425
445
|
},
|
|
446
|
+
{
|
|
447
|
+
"kind": "field",
|
|
448
|
+
"name": "formKey",
|
|
449
|
+
"type": {
|
|
450
|
+
"text": "string"
|
|
451
|
+
},
|
|
452
|
+
"optional": true,
|
|
453
|
+
"description": "Form channel key for custom elements mode",
|
|
454
|
+
"default": "undefined"
|
|
455
|
+
},
|
|
426
456
|
{
|
|
427
457
|
"kind": "field",
|
|
428
458
|
"name": "modelValue",
|
|
@@ -515,6 +545,16 @@
|
|
|
515
545
|
"description": "Name for form registration",
|
|
516
546
|
"default": "undefined"
|
|
517
547
|
},
|
|
548
|
+
{
|
|
549
|
+
"kind": "field",
|
|
550
|
+
"name": "formKey",
|
|
551
|
+
"type": {
|
|
552
|
+
"text": "string"
|
|
553
|
+
},
|
|
554
|
+
"optional": true,
|
|
555
|
+
"description": "Form channel key for custom elements mode",
|
|
556
|
+
"default": "undefined"
|
|
557
|
+
},
|
|
518
558
|
{
|
|
519
559
|
"kind": "field",
|
|
520
560
|
"name": "modelValue",
|
|
@@ -686,6 +726,16 @@
|
|
|
686
726
|
"description": "HTTP method (optional, for native form submission)",
|
|
687
727
|
"default": "\"post\""
|
|
688
728
|
},
|
|
729
|
+
{
|
|
730
|
+
"kind": "field",
|
|
731
|
+
"name": "formKey",
|
|
732
|
+
"type": {
|
|
733
|
+
"text": "string"
|
|
734
|
+
},
|
|
735
|
+
"optional": true,
|
|
736
|
+
"description": "Form channel key for custom elements mode",
|
|
737
|
+
"default": "\"default\""
|
|
738
|
+
},
|
|
689
739
|
{
|
|
690
740
|
"kind": "field",
|
|
691
741
|
"name": "modelValue",
|
|
@@ -724,6 +774,16 @@
|
|
|
724
774
|
"optional": true,
|
|
725
775
|
"description": "Accessible label",
|
|
726
776
|
"default": "\"Main Navigation\""
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
"kind": "field",
|
|
780
|
+
"name": "sidebarKey",
|
|
781
|
+
"type": {
|
|
782
|
+
"text": "string"
|
|
783
|
+
},
|
|
784
|
+
"optional": true,
|
|
785
|
+
"description": "Sidebar channel key for custom elements mode",
|
|
786
|
+
"default": "\"default\""
|
|
727
787
|
}
|
|
728
788
|
],
|
|
729
789
|
"events": [
|
|
@@ -877,7 +937,9 @@
|
|
|
877
937
|
"type": {
|
|
878
938
|
"text": "boolean"
|
|
879
939
|
},
|
|
880
|
-
"optional": true
|
|
940
|
+
"optional": true,
|
|
941
|
+
"description": "v-model binding for the open state. Also works as a plain prop/attribute in custom-element mode where `defineModel` would revert local state.",
|
|
942
|
+
"default": "false"
|
|
881
943
|
}
|
|
882
944
|
],
|
|
883
945
|
"events": [
|
|
@@ -892,6 +954,42 @@
|
|
|
892
954
|
"type": {
|
|
893
955
|
"text": "CustomEvent"
|
|
894
956
|
}
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
"name": "update:modelValue",
|
|
960
|
+
"type": {
|
|
961
|
+
"text": "CustomEvent"
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
]
|
|
965
|
+
}
|
|
966
|
+
]
|
|
967
|
+
},
|
|
968
|
+
{
|
|
969
|
+
"kind": "javascript-module",
|
|
970
|
+
"path": "dist/web-components.js",
|
|
971
|
+
"declarations": [
|
|
972
|
+
{
|
|
973
|
+
"kind": "custom-element",
|
|
974
|
+
"name": "GTooltipElement",
|
|
975
|
+
"tagName": "g-tooltip",
|
|
976
|
+
"members": [
|
|
977
|
+
{
|
|
978
|
+
"kind": "field",
|
|
979
|
+
"name": "text",
|
|
980
|
+
"type": {
|
|
981
|
+
"text": "string"
|
|
982
|
+
},
|
|
983
|
+
"optional": false,
|
|
984
|
+
"description": "Tooltip text"
|
|
985
|
+
}
|
|
986
|
+
],
|
|
987
|
+
"events": [
|
|
988
|
+
{
|
|
989
|
+
"name": "tooltip-hide",
|
|
990
|
+
"type": {
|
|
991
|
+
"text": "CustomEvent"
|
|
992
|
+
}
|
|
895
993
|
}
|
|
896
994
|
]
|
|
897
995
|
}
|
|
@@ -1127,6 +1225,16 @@
|
|
|
1127
1225
|
"description": "Error messages array (supports multiple validation errors)",
|
|
1128
1226
|
"default": "() => []"
|
|
1129
1227
|
},
|
|
1228
|
+
{
|
|
1229
|
+
"kind": "field",
|
|
1230
|
+
"name": "formKey",
|
|
1231
|
+
"type": {
|
|
1232
|
+
"text": "string"
|
|
1233
|
+
},
|
|
1234
|
+
"optional": true,
|
|
1235
|
+
"description": "Form channel key for custom elements mode",
|
|
1236
|
+
"default": "undefined"
|
|
1237
|
+
},
|
|
1130
1238
|
{
|
|
1131
1239
|
"kind": "field",
|
|
1132
1240
|
"name": "modelValue",
|
|
@@ -1214,6 +1322,16 @@
|
|
|
1214
1322
|
"description": "Error messages array (supports multiple validation errors)",
|
|
1215
1323
|
"default": "() => []"
|
|
1216
1324
|
},
|
|
1325
|
+
{
|
|
1326
|
+
"kind": "field",
|
|
1327
|
+
"name": "formKey",
|
|
1328
|
+
"type": {
|
|
1329
|
+
"text": "string"
|
|
1330
|
+
},
|
|
1331
|
+
"optional": true,
|
|
1332
|
+
"description": "Form channel key for custom elements mode",
|
|
1333
|
+
"default": "undefined"
|
|
1334
|
+
},
|
|
1217
1335
|
{
|
|
1218
1336
|
"kind": "field",
|
|
1219
1337
|
"name": "modelValue",
|
|
@@ -1302,6 +1420,16 @@
|
|
|
1302
1420
|
"optional": true,
|
|
1303
1421
|
"description": "Width Width of the sidebar",
|
|
1304
1422
|
"default": "\"300px\""
|
|
1423
|
+
},
|
|
1424
|
+
{
|
|
1425
|
+
"kind": "field",
|
|
1426
|
+
"name": "sidebarKey",
|
|
1427
|
+
"type": {
|
|
1428
|
+
"text": "string"
|
|
1429
|
+
},
|
|
1430
|
+
"optional": true,
|
|
1431
|
+
"description": "Sidebar channel key for custom elements mode",
|
|
1432
|
+
"default": "\"default\""
|
|
1305
1433
|
}
|
|
1306
1434
|
],
|
|
1307
1435
|
"events": []
|
|
@@ -1426,6 +1554,16 @@
|
|
|
1426
1554
|
"optional": true,
|
|
1427
1555
|
"description": "Variant",
|
|
1428
1556
|
"default": "\"primary\""
|
|
1557
|
+
},
|
|
1558
|
+
{
|
|
1559
|
+
"kind": "field",
|
|
1560
|
+
"name": "formKey",
|
|
1561
|
+
"type": {
|
|
1562
|
+
"text": "string"
|
|
1563
|
+
},
|
|
1564
|
+
"optional": true,
|
|
1565
|
+
"description": "Form channel key for custom elements mode",
|
|
1566
|
+
"default": "\"default\""
|
|
1429
1567
|
}
|
|
1430
1568
|
],
|
|
1431
1569
|
"events": []
|
|
@@ -2008,6 +2146,16 @@
|
|
|
2008
2146
|
"description": "Name for form registration",
|
|
2009
2147
|
"default": "undefined"
|
|
2010
2148
|
},
|
|
2149
|
+
{
|
|
2150
|
+
"kind": "field",
|
|
2151
|
+
"name": "formKey",
|
|
2152
|
+
"type": {
|
|
2153
|
+
"text": "string"
|
|
2154
|
+
},
|
|
2155
|
+
"optional": true,
|
|
2156
|
+
"description": "Form channel key for custom elements mode",
|
|
2157
|
+
"default": "undefined"
|
|
2158
|
+
},
|
|
2011
2159
|
{
|
|
2012
2160
|
"kind": "field",
|
|
2013
2161
|
"name": "modelValue",
|
|
@@ -53,6 +53,10 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
53
53
|
* If a named slot `icon` is provided, it takes precedence over this prop.
|
|
54
54
|
*/
|
|
55
55
|
icon?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Native button type
|
|
58
|
+
*/
|
|
59
|
+
type?: "button" | "submit" | "reset";
|
|
56
60
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
57
61
|
click: (...args: any[]) => void;
|
|
58
62
|
focus: (...args: any[]) => void;
|
|
@@ -98,6 +102,10 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
98
102
|
* If a named slot `icon` is provided, it takes precedence over this prop.
|
|
99
103
|
*/
|
|
100
104
|
icon?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Native button type
|
|
107
|
+
*/
|
|
108
|
+
type?: "button" | "submit" | "reset";
|
|
101
109
|
}> & Readonly<{
|
|
102
110
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
103
111
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
@@ -110,6 +118,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
110
118
|
onMouseleave?: ((...args: any[]) => any) | undefined;
|
|
111
119
|
}>, {
|
|
112
120
|
size: "small" | "medium" | "large";
|
|
121
|
+
type: "button" | "submit" | "reset";
|
|
113
122
|
text: boolean;
|
|
114
123
|
theme: "primary" | "secondary" | "accent" | "danger" | "none";
|
|
115
124
|
outlined: boolean;
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* This component is a wrapper around a text input with a prefix and
|
|
5
5
|
* appropriate input type for currency values.
|
|
6
|
+
*
|
|
7
|
+
* In standard Vue usage, this registers with the nearest parent `GForm` via
|
|
8
|
+
* injection. In custom-elements mode, use matching `form-key` values to pair
|
|
9
|
+
* with a `GForm`.
|
|
6
10
|
*/
|
|
7
11
|
declare const _default: typeof __VLS_export;
|
|
8
12
|
export default _default;
|
|
@@ -35,6 +39,10 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
35
39
|
* Name for form registration
|
|
36
40
|
*/
|
|
37
41
|
name?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Form channel key for custom elements mode
|
|
44
|
+
*/
|
|
45
|
+
formKey?: string;
|
|
38
46
|
} & {
|
|
39
47
|
modelValue?: string | null;
|
|
40
48
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -68,6 +76,10 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
68
76
|
* Name for form registration
|
|
69
77
|
*/
|
|
70
78
|
name?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Form channel key for custom elements mode
|
|
81
|
+
*/
|
|
82
|
+
formKey?: string;
|
|
71
83
|
} & {
|
|
72
84
|
modelValue?: string | null;
|
|
73
85
|
}> & Readonly<{
|
|
@@ -79,4 +91,5 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
79
91
|
disabled: boolean;
|
|
80
92
|
errors: string[];
|
|
81
93
|
instructions: string;
|
|
94
|
+
formKey: string;
|
|
82
95
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* This component is a wrapper around GTextInput with type="date" for
|
|
5
5
|
* proper date selection using the browser's native date picker.
|
|
6
|
+
*
|
|
7
|
+
* In standard Vue usage, this registers with the nearest parent `GForm` via
|
|
8
|
+
* injection. In custom-elements mode, use matching `form-key` values to pair
|
|
9
|
+
* with a `GForm`.
|
|
6
10
|
*/
|
|
7
11
|
declare const _default: typeof __VLS_export;
|
|
8
12
|
export default _default;
|
|
@@ -35,6 +39,10 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
35
39
|
* Name for form registration
|
|
36
40
|
*/
|
|
37
41
|
name?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Form channel key for custom elements mode
|
|
44
|
+
*/
|
|
45
|
+
formKey?: string;
|
|
38
46
|
} & {
|
|
39
47
|
modelValue?: string | null;
|
|
40
48
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -68,6 +76,10 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
68
76
|
* Name for form registration
|
|
69
77
|
*/
|
|
70
78
|
name?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Form channel key for custom elements mode
|
|
81
|
+
*/
|
|
82
|
+
formKey?: string;
|
|
71
83
|
} & {
|
|
72
84
|
modelValue?: string | null;
|
|
73
85
|
}> & Readonly<{
|
|
@@ -79,4 +91,5 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
79
91
|
disabled: boolean;
|
|
80
92
|
errors: string[];
|
|
81
93
|
instructions: string;
|
|
94
|
+
formKey: string;
|
|
82
95
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* This component uses two GDateInput components laid out horizontally
|
|
5
5
|
* to allow selecting a date range.
|
|
6
|
+
*
|
|
7
|
+
* In standard Vue usage, this registers with the nearest parent `GForm` via
|
|
8
|
+
* injection. In custom-elements mode, use matching `form-key` values to pair
|
|
9
|
+
* with a `GForm`.
|
|
6
10
|
*/
|
|
7
11
|
declare const _default: typeof __VLS_export;
|
|
8
12
|
export default _default;
|
|
@@ -40,6 +44,10 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
40
44
|
* Name for form registration
|
|
41
45
|
*/
|
|
42
46
|
name?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Form channel key for custom elements mode
|
|
49
|
+
*/
|
|
50
|
+
formKey?: string;
|
|
43
51
|
} & {
|
|
44
52
|
modelValue?: {
|
|
45
53
|
start: string | null;
|
|
@@ -84,6 +92,10 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
84
92
|
* Name for form registration
|
|
85
93
|
*/
|
|
86
94
|
name?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Form channel key for custom elements mode
|
|
97
|
+
*/
|
|
98
|
+
formKey?: string;
|
|
87
99
|
} & {
|
|
88
100
|
modelValue?: {
|
|
89
101
|
start: string | null;
|
|
@@ -100,6 +112,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
100
112
|
disabled: boolean;
|
|
101
113
|
errors: string[];
|
|
102
114
|
instructions: string;
|
|
115
|
+
formKey: string;
|
|
103
116
|
startLabel: string;
|
|
104
117
|
endLabel: string;
|
|
105
118
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
* - Reactive error handling by providing a computed list of errors
|
|
12
12
|
* - Optionally manage your own form state in a parent component by providing a
|
|
13
13
|
* `form` injection
|
|
14
|
+
* - In web components mode, use the `form-key` prop to pair a form with
|
|
15
|
+
* matching inputs/buttons across custom element app boundaries
|
|
14
16
|
*
|
|
15
17
|
* ### Basic example
|
|
16
18
|
*
|
|
@@ -36,6 +38,11 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
36
38
|
* @demo
|
|
37
39
|
*/
|
|
38
40
|
method?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Form channel key for custom elements mode
|
|
43
|
+
* @demo
|
|
44
|
+
*/
|
|
45
|
+
formKey?: string;
|
|
39
46
|
} & {
|
|
40
47
|
modelValue?: Record<string, any>;
|
|
41
48
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -52,12 +59,18 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
52
59
|
* @demo
|
|
53
60
|
*/
|
|
54
61
|
method?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Form channel key for custom elements mode
|
|
64
|
+
* @demo
|
|
65
|
+
*/
|
|
66
|
+
formKey?: string;
|
|
55
67
|
} & {
|
|
56
68
|
modelValue?: Record<string, any>;
|
|
57
69
|
}> & Readonly<{
|
|
58
70
|
onSubmit?: ((values: Record<string, any>) => any) | undefined;
|
|
59
71
|
"onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
|
|
60
72
|
}>, {
|
|
73
|
+
formKey: string;
|
|
61
74
|
action: string;
|
|
62
75
|
method: string;
|
|
63
76
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
@@ -25,6 +25,8 @@
|
|
|
25
25
|
*
|
|
26
26
|
* > [!NOTE]
|
|
27
27
|
* > This button hides itself automatically according to the useSidebar media query.
|
|
28
|
+
* > In web components mode, use the `sidebar-key` prop to pair this menu with a
|
|
29
|
+
* > matching GSidebar instance.
|
|
28
30
|
*/
|
|
29
31
|
declare const _default: typeof __VLS_export;
|
|
30
32
|
export default _default;
|
|
@@ -34,6 +36,11 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
34
36
|
* @demo
|
|
35
37
|
*/
|
|
36
38
|
label?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Sidebar channel key for custom elements mode
|
|
41
|
+
* @demo
|
|
42
|
+
*/
|
|
43
|
+
sidebarKey?: string;
|
|
37
44
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
38
45
|
toggle: () => any;
|
|
39
46
|
}, string, import("vue").PublicProps, Readonly<{
|
|
@@ -42,8 +49,14 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
42
49
|
* @demo
|
|
43
50
|
*/
|
|
44
51
|
label?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Sidebar channel key for custom elements mode
|
|
54
|
+
* @demo
|
|
55
|
+
*/
|
|
56
|
+
sidebarKey?: string;
|
|
45
57
|
}> & Readonly<{
|
|
46
58
|
onToggle?: (() => any) | undefined;
|
|
47
59
|
}>, {
|
|
48
60
|
label: string;
|
|
61
|
+
sidebarKey: string;
|
|
49
62
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -26,12 +26,6 @@
|
|
|
26
26
|
*
|
|
27
27
|
* Adding a dimming overlay behind modals can be done by placing `GOverlay`
|
|
28
28
|
* at the end of the page structure.
|
|
29
|
-
*
|
|
30
|
-
* > [!WARNING]
|
|
31
|
-
* > There are some shenanigans in the modal and overlay implementation in order
|
|
32
|
-
* > to support Nuxt without including it as a dependency. Specifically, the refs
|
|
33
|
-
* > to store the state of the overlay stack is added to `window._g_overlay_stack_state`
|
|
34
|
-
* > when `document` is defined. That makes it only load in the client.
|
|
35
29
|
*/
|
|
36
30
|
declare const _default: typeof __VLS_export;
|
|
37
31
|
export default _default;
|
|
@@ -2,11 +2,14 @@
|
|
|
2
2
|
* Popover that appears next to or over a trigger element, staying visible
|
|
3
3
|
* in the viewport as much as possible.
|
|
4
4
|
*
|
|
5
|
-
* **Slot** `trigger`
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* **Slot** `trigger` is optional. When provided, it should contain an
|
|
6
|
+
* interactive element for opening the popover and it is used for
|
|
7
|
+
* `aria-labelledby`. The trigger is passed a prop `toggle` which is a function
|
|
8
8
|
* that toggles the popover's open state.
|
|
9
9
|
*
|
|
10
|
+
* Without a trigger slot, open the popover programmatically via `show()` or
|
|
11
|
+
* `toggle()` on the component instance / custom element.
|
|
12
|
+
*
|
|
10
13
|
* **Slot** `default` is the content of the popover.
|
|
11
14
|
*
|
|
12
15
|
* Example:
|
|
@@ -30,25 +33,38 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
30
33
|
* @demo
|
|
31
34
|
*/
|
|
32
35
|
minimal?: boolean;
|
|
33
|
-
|
|
36
|
+
/**
|
|
37
|
+
* v-model binding for the open state. Also works as a plain
|
|
38
|
+
* prop/attribute in custom-element mode where `defineModel`
|
|
39
|
+
* would revert local state.
|
|
40
|
+
*/
|
|
34
41
|
modelValue?: boolean;
|
|
35
|
-
}, {
|
|
42
|
+
}, {
|
|
43
|
+
show: () => void;
|
|
44
|
+
hide: () => void;
|
|
45
|
+
toggle: () => void;
|
|
46
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
47
|
+
"update:modelValue": (...args: any[]) => void;
|
|
36
48
|
show: (...args: any[]) => void;
|
|
37
49
|
hide: (...args: any[]) => void;
|
|
38
|
-
"update:modelValue": (value: boolean) => void;
|
|
39
50
|
}, string, import("vue").PublicProps, Readonly<{
|
|
40
51
|
/**
|
|
41
52
|
* Render without padding
|
|
42
53
|
* @demo
|
|
43
54
|
*/
|
|
44
55
|
minimal?: boolean;
|
|
45
|
-
|
|
56
|
+
/**
|
|
57
|
+
* v-model binding for the open state. Also works as a plain
|
|
58
|
+
* prop/attribute in custom-element mode where `defineModel`
|
|
59
|
+
* would revert local state.
|
|
60
|
+
*/
|
|
46
61
|
modelValue?: boolean;
|
|
47
62
|
}> & Readonly<{
|
|
48
|
-
"onUpdate:modelValue"?: ((
|
|
63
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
49
64
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
50
65
|
onHide?: ((...args: any[]) => any) | undefined;
|
|
51
66
|
}>, {
|
|
67
|
+
modelValue: boolean;
|
|
52
68
|
minimal: boolean;
|
|
53
69
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
54
70
|
trigger?: (props: {
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
* By default, this component behaves like a normal select element with
|
|
3
3
|
* custom styling.
|
|
4
4
|
*
|
|
5
|
+
* In standard Vue usage, this registers with the nearest parent `GForm` via
|
|
6
|
+
* injection. In custom-elements mode, use matching `form-key` values to pair
|
|
7
|
+
* with a `GForm`.
|
|
8
|
+
*
|
|
5
9
|
* The component can be marked `searchable` to enable search functionality.
|
|
6
10
|
* This turns it into a text input that filters the options. Filtering is
|
|
7
11
|
* done with a simple lower-case string search.
|
|
@@ -64,6 +68,10 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
64
68
|
* Error messages array (supports multiple validation errors)
|
|
65
69
|
*/
|
|
66
70
|
errors?: string[];
|
|
71
|
+
/**
|
|
72
|
+
* Form channel key for custom elements mode
|
|
73
|
+
*/
|
|
74
|
+
formKey?: string;
|
|
67
75
|
} & {
|
|
68
76
|
modelValue?: string | number | null;
|
|
69
77
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -122,6 +130,10 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
122
130
|
* Error messages array (supports multiple validation errors)
|
|
123
131
|
*/
|
|
124
132
|
errors?: string[];
|
|
133
|
+
/**
|
|
134
|
+
* Form channel key for custom elements mode
|
|
135
|
+
*/
|
|
136
|
+
formKey?: string;
|
|
125
137
|
} & {
|
|
126
138
|
modelValue?: string | number | null;
|
|
127
139
|
}> & Readonly<{
|
|
@@ -131,6 +143,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
131
143
|
name: string;
|
|
132
144
|
disabled: boolean;
|
|
133
145
|
errors: string[];
|
|
146
|
+
formKey: string;
|
|
134
147
|
searchable: boolean;
|
|
135
148
|
compact: boolean;
|
|
136
149
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This component is just a radio button group with special styling.
|
|
3
3
|
*
|
|
4
|
+
* In standard Vue usage, this registers with the nearest parent `GForm` via
|
|
5
|
+
* injection. In custom-elements mode, use matching `form-key` values to pair
|
|
6
|
+
* with a `GForm`.
|
|
7
|
+
*
|
|
4
8
|
* Use the `options` prop to provide a list of choices. Each option can
|
|
5
9
|
* be a string or an object with `label` and `value` properties.
|
|
6
10
|
*
|
|
@@ -40,6 +44,10 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
40
44
|
* Error messages array (supports multiple validation errors)
|
|
41
45
|
*/
|
|
42
46
|
errors?: string[];
|
|
47
|
+
/**
|
|
48
|
+
* Form channel key for custom elements mode
|
|
49
|
+
*/
|
|
50
|
+
formKey?: string;
|
|
43
51
|
} & {
|
|
44
52
|
modelValue?: string | number;
|
|
45
53
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -76,6 +84,10 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
76
84
|
* Error messages array (supports multiple validation errors)
|
|
77
85
|
*/
|
|
78
86
|
errors?: string[];
|
|
87
|
+
/**
|
|
88
|
+
* Form channel key for custom elements mode
|
|
89
|
+
*/
|
|
90
|
+
formKey?: string;
|
|
79
91
|
} & {
|
|
80
92
|
modelValue?: string | number;
|
|
81
93
|
}> & Readonly<{
|
|
@@ -86,4 +98,5 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
86
98
|
name: string;
|
|
87
99
|
disabled: boolean;
|
|
88
100
|
errors: string[];
|
|
101
|
+
formKey: string;
|
|
89
102
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
* The sidebar can be made collapsible by providing the `sidebar` injected
|
|
12
12
|
* object from `useSidebar`. See the [Hamburger Menu Documentation](#use-sidebar)
|
|
13
13
|
* for details.
|
|
14
|
+
*
|
|
15
|
+
* In web components mode, use the `sidebar-key` prop to pair this sidebar
|
|
16
|
+
* with a matching GHamburgerMenu instance.
|
|
14
17
|
*/
|
|
15
18
|
declare const _default: typeof __VLS_export;
|
|
16
19
|
export default _default;
|
|
@@ -45,6 +48,11 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
45
48
|
* @demo
|
|
46
49
|
*/
|
|
47
50
|
width?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Sidebar channel key for custom elements mode
|
|
53
|
+
* @demo
|
|
54
|
+
*/
|
|
55
|
+
sidebarKey?: string;
|
|
48
56
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
49
57
|
/**
|
|
50
58
|
* Custom background color
|
|
@@ -76,9 +84,15 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
76
84
|
* @demo
|
|
77
85
|
*/
|
|
78
86
|
width?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Sidebar channel key for custom elements mode
|
|
89
|
+
* @demo
|
|
90
|
+
*/
|
|
91
|
+
sidebarKey?: string;
|
|
79
92
|
}> & Readonly<{}>, {
|
|
80
93
|
width: string;
|
|
81
94
|
theme: "light" | "dark";
|
|
95
|
+
sidebarKey: string;
|
|
82
96
|
backgroundColor: string;
|
|
83
97
|
backgroundImage: string;
|
|
84
98
|
topOffset: string;
|