@illinois-grad/grad-vue 6.0.4 → 6.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 +65 -0
- package/dist/components/GToggle.vue.d.ts +71 -0
- package/dist/compose/usePersistentTableColumnState.d.ts +6 -0
- package/dist/{grad-vue-Bd30K3vh.js → grad-vue-HOjq8hB5.js} +773 -690
- package/dist/grad-vue-HOjq8hB5.js.map +1 -0
- package/dist/grad-vue-elements.css +31 -30
- package/dist/grad-vue-elements.d.ts +3 -0
- package/dist/grad-vue-elements.js +446 -380
- package/dist/grad-vue-elements.js.map +1 -1
- package/dist/grad-vue.css +1 -1
- package/dist/grad-vue.d.ts +4 -2
- package/dist/grad-vue.js +2 -2
- package/dist/plugin.d.ts +2 -1
- package/dist/plugin.js +4 -4
- package/dist/plugin.js.map +1 -1
- package/package.json +2 -2
- package/dist/grad-vue-Bd30K3vh.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -2936,6 +2936,71 @@
|
|
|
2936
2936
|
}
|
|
2937
2937
|
]
|
|
2938
2938
|
},
|
|
2939
|
+
{
|
|
2940
|
+
"kind": "javascript-module",
|
|
2941
|
+
"path": "dist/web-components.js",
|
|
2942
|
+
"declarations": [
|
|
2943
|
+
{
|
|
2944
|
+
"kind": "custom-element",
|
|
2945
|
+
"name": "GToggleElement",
|
|
2946
|
+
"tagName": "g-toggle",
|
|
2947
|
+
"members": [
|
|
2948
|
+
{
|
|
2949
|
+
"kind": "field",
|
|
2950
|
+
"name": "label",
|
|
2951
|
+
"type": {
|
|
2952
|
+
"text": "string"
|
|
2953
|
+
},
|
|
2954
|
+
"optional": false,
|
|
2955
|
+
"description": "Accessible label"
|
|
2956
|
+
},
|
|
2957
|
+
{
|
|
2958
|
+
"kind": "field",
|
|
2959
|
+
"name": "describedby",
|
|
2960
|
+
"type": {
|
|
2961
|
+
"text": "string"
|
|
2962
|
+
},
|
|
2963
|
+
"optional": true,
|
|
2964
|
+
"description": "ID of an element that describes the input"
|
|
2965
|
+
},
|
|
2966
|
+
{
|
|
2967
|
+
"kind": "field",
|
|
2968
|
+
"name": "error",
|
|
2969
|
+
"type": {
|
|
2970
|
+
"text": "string"
|
|
2971
|
+
},
|
|
2972
|
+
"optional": true,
|
|
2973
|
+
"description": "Error message"
|
|
2974
|
+
},
|
|
2975
|
+
{
|
|
2976
|
+
"kind": "field",
|
|
2977
|
+
"name": "disabled",
|
|
2978
|
+
"type": {
|
|
2979
|
+
"text": "boolean"
|
|
2980
|
+
},
|
|
2981
|
+
"optional": true,
|
|
2982
|
+
"description": "Disabled"
|
|
2983
|
+
},
|
|
2984
|
+
{
|
|
2985
|
+
"kind": "field",
|
|
2986
|
+
"name": "modelValue",
|
|
2987
|
+
"type": {
|
|
2988
|
+
"text": "boolean"
|
|
2989
|
+
},
|
|
2990
|
+
"optional": true
|
|
2991
|
+
}
|
|
2992
|
+
],
|
|
2993
|
+
"events": [
|
|
2994
|
+
{
|
|
2995
|
+
"name": "change",
|
|
2996
|
+
"type": {
|
|
2997
|
+
"text": "CustomEvent"
|
|
2998
|
+
}
|
|
2999
|
+
}
|
|
3000
|
+
]
|
|
3001
|
+
}
|
|
3002
|
+
]
|
|
3003
|
+
},
|
|
2939
3004
|
{
|
|
2940
3005
|
"kind": "javascript-module",
|
|
2941
3006
|
"path": "dist/web-components.js",
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A compact two-state toggle for boolean values.
|
|
3
|
+
*
|
|
4
|
+
* Arrow keys and the 'y' and 'n' keys can be used to set the value when the
|
|
5
|
+
* toggle has focus. A `describedby` prop can be passed with an ID to an
|
|
6
|
+
* element to be used as the `aria-describedby` for the toggle group.
|
|
7
|
+
*
|
|
8
|
+
* When the value changes, `v-model` is updated. A `change` event is also
|
|
9
|
+
* emitted if the value changed from user interaction.
|
|
10
|
+
*
|
|
11
|
+
* Slots:
|
|
12
|
+
* - `label`: Custom label content. Defaults to `label` prop if not provided.
|
|
13
|
+
*/
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
17
|
+
/**
|
|
18
|
+
* Accessible label
|
|
19
|
+
* @demo Toggle
|
|
20
|
+
*/
|
|
21
|
+
label: string;
|
|
22
|
+
/**
|
|
23
|
+
* ID of an element that describes the input
|
|
24
|
+
*/
|
|
25
|
+
describedby?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Error message
|
|
28
|
+
* @demo
|
|
29
|
+
*/
|
|
30
|
+
error?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Disabled
|
|
33
|
+
* @demo
|
|
34
|
+
*/
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
} & {
|
|
37
|
+
modelValue?: boolean;
|
|
38
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
39
|
+
"update:modelValue": (value: boolean) => any;
|
|
40
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
41
|
+
/**
|
|
42
|
+
* Accessible label
|
|
43
|
+
* @demo Toggle
|
|
44
|
+
*/
|
|
45
|
+
label: string;
|
|
46
|
+
/**
|
|
47
|
+
* ID of an element that describes the input
|
|
48
|
+
*/
|
|
49
|
+
describedby?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Error message
|
|
52
|
+
* @demo
|
|
53
|
+
*/
|
|
54
|
+
error?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Disabled
|
|
57
|
+
* @demo
|
|
58
|
+
*/
|
|
59
|
+
disabled?: boolean;
|
|
60
|
+
} & {
|
|
61
|
+
modelValue?: boolean;
|
|
62
|
+
}> & Readonly<{
|
|
63
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
64
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
65
|
+
label?: (props: {}) => any;
|
|
66
|
+
}>;
|
|
67
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
68
|
+
new (): {
|
|
69
|
+
$slots: S;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TableColumn, TableColumnState, TableColumnStateValue, TableRow } from "@illinois-grad/grad-vue";
|
|
2
|
+
import { type MaybeRefOrGetter } from "vue";
|
|
3
|
+
export declare function normalizeTableColumnState<T extends TableRow>(value: unknown, columns: readonly TableColumn<T>[]): TableColumnState<T>;
|
|
4
|
+
export declare function usePersistentTableColumnState<T extends TableRow>(storageKey: string, columns: MaybeRefOrGetter<readonly TableColumn<T>[]>): {
|
|
5
|
+
columnState: import("@vueuse/core").RemovableRef<Partial<Record<Extract<keyof T, string>, TableColumnStateValue>>>;
|
|
6
|
+
};
|