@illinois-grad/grad-vue 6.0.1 → 6.0.2
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 +46 -0
- package/dist/components/GAppHeader.vue.d.ts +30 -3
- package/dist/components/GHamburgerMenu.vue.d.ts +41 -3
- package/dist/components/hamburger/GHamburgerMenuButton.vue.d.ts +15 -0
- package/dist/compose/focusable.d.ts +3 -0
- package/dist/{grad-vue-Bsk9dI_O.js → grad-vue-B1qlZLc2.js} +820 -647
- package/dist/grad-vue-B1qlZLc2.js.map +1 -0
- package/dist/grad-vue-elements.css +29 -29
- package/dist/grad-vue-elements.js +2160 -1984
- package/dist/grad-vue-elements.js.map +1 -1
- package/dist/grad-vue.css +1 -1
- package/dist/grad-vue.js +2 -2
- package/dist/plugin.js +2 -2
- package/package.json +1 -1
- package/dist/grad-vue-Bsk9dI_O.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -86,6 +86,26 @@
|
|
|
86
86
|
"optional": true,
|
|
87
87
|
"description": "Top-left corner text You can customize this text element with the \"left\" slot.",
|
|
88
88
|
"default": "\"GRAD\""
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"kind": "field",
|
|
92
|
+
"name": "navigationLabel",
|
|
93
|
+
"type": {
|
|
94
|
+
"text": "string"
|
|
95
|
+
},
|
|
96
|
+
"optional": true,
|
|
97
|
+
"description": "Accessible label for the main navigation",
|
|
98
|
+
"default": "\"Main navigation\""
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"kind": "field",
|
|
102
|
+
"name": "navigationMediaQuery",
|
|
103
|
+
"type": {
|
|
104
|
+
"text": "string"
|
|
105
|
+
},
|
|
106
|
+
"optional": true,
|
|
107
|
+
"description": "Media query for when the main navigation should collapse",
|
|
108
|
+
"default": "\"(max-width: 800px)\""
|
|
89
109
|
}
|
|
90
110
|
],
|
|
91
111
|
"events": []
|
|
@@ -1084,6 +1104,26 @@
|
|
|
1084
1104
|
"optional": true,
|
|
1085
1105
|
"description": "Show a visible label",
|
|
1086
1106
|
"default": "false"
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
"kind": "field",
|
|
1110
|
+
"name": "mode",
|
|
1111
|
+
"type": {
|
|
1112
|
+
"text": "\"sidebar\" | \"popover\""
|
|
1113
|
+
},
|
|
1114
|
+
"optional": true,
|
|
1115
|
+
"description": "Whether the menu controls a sidebar or shows a popover",
|
|
1116
|
+
"default": "\"sidebar\""
|
|
1117
|
+
},
|
|
1118
|
+
{
|
|
1119
|
+
"kind": "field",
|
|
1120
|
+
"name": "modelValue",
|
|
1121
|
+
"type": {
|
|
1122
|
+
"text": "boolean"
|
|
1123
|
+
},
|
|
1124
|
+
"optional": true,
|
|
1125
|
+
"description": "Open state for popover mode",
|
|
1126
|
+
"default": "false"
|
|
1087
1127
|
}
|
|
1088
1128
|
],
|
|
1089
1129
|
"events": [
|
|
@@ -1092,6 +1132,12 @@
|
|
|
1092
1132
|
"type": {
|
|
1093
1133
|
"text": "CustomEvent"
|
|
1094
1134
|
}
|
|
1135
|
+
},
|
|
1136
|
+
{
|
|
1137
|
+
"name": "update:modelValue",
|
|
1138
|
+
"type": {
|
|
1139
|
+
"text": "CustomEvent"
|
|
1140
|
+
}
|
|
1095
1141
|
}
|
|
1096
1142
|
]
|
|
1097
1143
|
}
|
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
*
|
|
7
7
|
* **Slot** `title` is to the right of the logo.
|
|
8
8
|
*
|
|
9
|
+
* **Slot** `navigation` shows a short set of main navigation links. On small
|
|
10
|
+
* screens it automatically switches to a popover menu.
|
|
11
|
+
*
|
|
9
12
|
* **Slot** `app-controls` is the remaining area to the right.
|
|
10
13
|
*/
|
|
11
14
|
declare const _default: typeof __VLS_export;
|
|
@@ -22,6 +25,16 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
22
25
|
* @demo
|
|
23
26
|
*/
|
|
24
27
|
brand?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Accessible label for the main navigation
|
|
30
|
+
* @demo
|
|
31
|
+
*/
|
|
32
|
+
navigationLabel?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Media query for when the main navigation should collapse
|
|
35
|
+
* @demo
|
|
36
|
+
*/
|
|
37
|
+
navigationMediaQuery?: string;
|
|
25
38
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
26
39
|
/**
|
|
27
40
|
* Whether to show the Illinois logo
|
|
@@ -34,9 +47,21 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
34
47
|
* @demo
|
|
35
48
|
*/
|
|
36
49
|
brand?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Accessible label for the main navigation
|
|
52
|
+
* @demo
|
|
53
|
+
*/
|
|
54
|
+
navigationLabel?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Media query for when the main navigation should collapse
|
|
57
|
+
* @demo
|
|
58
|
+
*/
|
|
59
|
+
navigationMediaQuery?: string;
|
|
37
60
|
}> & Readonly<{}>, {
|
|
38
61
|
illinois: boolean;
|
|
39
62
|
brand: string;
|
|
63
|
+
navigationLabel: string;
|
|
64
|
+
navigationMediaQuery: string;
|
|
40
65
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
41
66
|
left?: (props: {}) => any;
|
|
42
67
|
} & {
|
|
@@ -44,9 +69,11 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
44
69
|
} & {
|
|
45
70
|
title?: (props: {}) => any;
|
|
46
71
|
} & {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}) => any;
|
|
72
|
+
navigation?: (props: {}) => any;
|
|
73
|
+
} & {
|
|
74
|
+
navigation?: (props: {}) => any;
|
|
75
|
+
} & {
|
|
76
|
+
'app-controls'?: (props: {}) => any;
|
|
50
77
|
}>;
|
|
51
78
|
type __VLS_WithSlots<T, S> = T & {
|
|
52
79
|
new (): {
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
* A hamburger menu button that toggles a sidebar, intended for the
|
|
3
3
|
* GAppHeader and GSidebar components.
|
|
4
4
|
*
|
|
5
|
+
* When `mode="popover"`, the default slot becomes the popover content.
|
|
6
|
+
*
|
|
5
7
|
* <span id="use-sidebar">Use with the `useSidebar`</span> composable function
|
|
6
8
|
* that takes care of passing state between the different components.
|
|
7
9
|
*
|
|
@@ -30,7 +32,7 @@
|
|
|
30
32
|
*/
|
|
31
33
|
declare const _default: typeof __VLS_export;
|
|
32
34
|
export default _default;
|
|
33
|
-
declare const __VLS_export: import("vue").DefineComponent<{
|
|
35
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
34
36
|
/**
|
|
35
37
|
* Accessible label
|
|
36
38
|
* @demo
|
|
@@ -51,7 +53,24 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
51
53
|
* @demo
|
|
52
54
|
*/
|
|
53
55
|
labelVisible?: boolean;
|
|
54
|
-
|
|
56
|
+
/**
|
|
57
|
+
* Whether the menu controls a sidebar or shows a popover
|
|
58
|
+
* @demo
|
|
59
|
+
*/
|
|
60
|
+
mode?: "sidebar" | "popover";
|
|
61
|
+
/**
|
|
62
|
+
* Open state for popover mode
|
|
63
|
+
*/
|
|
64
|
+
modelValue?: boolean;
|
|
65
|
+
}, {
|
|
66
|
+
show: () => void;
|
|
67
|
+
hide: () => void;
|
|
68
|
+
toggle: () => void;
|
|
69
|
+
focusItem: (index: number) => Promise<boolean>;
|
|
70
|
+
focusTrigger: () => void;
|
|
71
|
+
getFocusedItemIndex: () => number;
|
|
72
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
73
|
+
"update:modelValue": (value: boolean) => any;
|
|
55
74
|
toggle: () => any;
|
|
56
75
|
}, string, import("vue").PublicProps, Readonly<{
|
|
57
76
|
/**
|
|
@@ -74,10 +93,29 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
74
93
|
* @demo
|
|
75
94
|
*/
|
|
76
95
|
labelVisible?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Whether the menu controls a sidebar or shows a popover
|
|
98
|
+
* @demo
|
|
99
|
+
*/
|
|
100
|
+
mode?: "sidebar" | "popover";
|
|
101
|
+
/**
|
|
102
|
+
* Open state for popover mode
|
|
103
|
+
*/
|
|
104
|
+
modelValue?: boolean;
|
|
77
105
|
}> & Readonly<{
|
|
106
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
78
107
|
onToggle?: (() => any) | undefined;
|
|
79
108
|
}>, {
|
|
80
109
|
label: string;
|
|
110
|
+
modelValue: boolean;
|
|
111
|
+
mode: "sidebar" | "popover";
|
|
81
112
|
sidebarKey: string;
|
|
82
113
|
labelVisible: boolean;
|
|
83
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any
|
|
114
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
115
|
+
default?: (props: {}) => any;
|
|
116
|
+
}>;
|
|
117
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
118
|
+
new (): {
|
|
119
|
+
$slots: S;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
id: string;
|
|
3
|
+
controlsId?: string;
|
|
4
|
+
expanded: boolean;
|
|
5
|
+
label: string;
|
|
6
|
+
labelVisible: boolean;
|
|
7
|
+
popover?: boolean;
|
|
8
|
+
collapsible?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare function focus(): void;
|
|
11
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {
|
|
12
|
+
focus: typeof focus;
|
|
13
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|