@illinois-grad/grad-vue 3.0.4 → 3.0.6
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 +1 -1
- package/dist/components/GDetailList.vue.d.ts +5 -0
- package/dist/components/GTreeMenu.vue.d.ts +7 -3
- package/dist/components/tree-menu/GTreeMenuItem.vue.d.ts +2 -5
- package/dist/{grad-vue-BlLcBFHO.js → grad-vue-CAmKhHhp.js} +682 -637
- package/dist/grad-vue-CAmKhHhp.js.map +1 -0
- package/dist/grad-vue-elements.css +30 -30
- package/dist/grad-vue-elements.js +122 -77
- 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-BlLcBFHO.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -2867,7 +2867,7 @@
|
|
|
2867
2867
|
"text": "string"
|
|
2868
2868
|
},
|
|
2869
2869
|
"optional": true,
|
|
2870
|
-
"description": "When provided, expanded/collapsed states are saved to `sessionStorage` under this key and restored on page load. Item states are keyed by each the `label` prop."
|
|
2870
|
+
"description": "When provided, expanded/collapsed states are saved to `sessionStorage` under this key and restored on page load. Item states are keyed by each the `label` prop. If the menu is inside a scrollable container such as `GSidebar`, the scroll position is also saved and restored automatically."
|
|
2871
2871
|
},
|
|
2872
2872
|
{
|
|
2873
2873
|
"kind": "field",
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
* This component is used with the `GDetailListItem` component to display
|
|
3
3
|
* a list of key-value pairs in a grid or vertical layout.
|
|
4
4
|
*
|
|
5
|
+
* > [!WARNING]
|
|
6
|
+
* > This component is not accessible in Custom Elements mode because there
|
|
7
|
+
* > is no way to avoid the custom elements being nested in `<dl>` tags, which
|
|
8
|
+
* > is not valid HTML. You can use the classes instead for the same styling.
|
|
9
|
+
*
|
|
5
10
|
* For example:
|
|
6
11
|
*
|
|
7
12
|
* ```vue-html
|
|
@@ -38,7 +38,9 @@
|
|
|
38
38
|
* - `storageKey` - when provided, expanded/collapsed states are persisted to
|
|
39
39
|
* `sessionStorage` under this key and restored on page load. This is useful
|
|
40
40
|
* in Web Component / Drupal contexts where every page navigation is a full
|
|
41
|
-
* refresh. Item states are keyed by the item's `label` prop.
|
|
41
|
+
* refresh. Item states are keyed by the item's `label` prop. If the menu is
|
|
42
|
+
* inside a scrollable container such as `GSidebar`, the scroll position is
|
|
43
|
+
* also saved and restored automatically.
|
|
42
44
|
*
|
|
43
45
|
* **Keyboard navigation** (tree-view style):
|
|
44
46
|
*
|
|
@@ -69,7 +71,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
69
71
|
/**
|
|
70
72
|
* When provided, expanded/collapsed states are saved to `sessionStorage`
|
|
71
73
|
* under this key and restored on page load. Item states are keyed by each
|
|
72
|
-
* the `label` prop.
|
|
74
|
+
* the `label` prop. If the menu is inside a scrollable container such as
|
|
75
|
+
* `GSidebar`, the scroll position is also saved and restored automatically.
|
|
73
76
|
*/
|
|
74
77
|
storageKey?: string;
|
|
75
78
|
/**
|
|
@@ -96,7 +99,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
96
99
|
/**
|
|
97
100
|
* When provided, expanded/collapsed states are saved to `sessionStorage`
|
|
98
101
|
* under this key and restored on page load. Item states are keyed by each
|
|
99
|
-
* the `label` prop.
|
|
102
|
+
* the `label` prop. If the menu is inside a scrollable container such as
|
|
103
|
+
* `GSidebar`, the scroll position is also saved and restored automatically.
|
|
100
104
|
*/
|
|
101
105
|
storageKey?: string;
|
|
102
106
|
/**
|
|
@@ -41,11 +41,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
41
41
|
}>, {
|
|
42
42
|
expanded: boolean;
|
|
43
43
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
44
|
-
default?: (
|
|
45
|
-
|
|
46
|
-
default?: (props: {}) => any;
|
|
47
|
-
} & {
|
|
48
|
-
children?: (props: {}) => any;
|
|
44
|
+
default?: () => any;
|
|
45
|
+
children?: () => any;
|
|
49
46
|
}>;
|
|
50
47
|
type __VLS_WithSlots<T, S> = T & {
|
|
51
48
|
new (): {
|