@illinois-grad/grad-vue 2.3.5 → 2.4.0
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/README.md +20 -5
- package/dist/components/GAlertDialog.vue.d.ts +43 -12
- package/dist/components/GAppHeader.vue.d.ts +30 -18
- package/dist/components/GButton.vue.d.ts +77 -12
- package/dist/components/GClipboard.vue.d.ts +30 -5
- package/dist/components/GCurrencyInput.vue.d.ts +53 -10
- package/dist/components/GDateInput.vue.d.ts +53 -10
- package/dist/components/GDateRangeInput.vue.d.ts +74 -17
- package/dist/components/GDetailList.vue.d.ts +14 -11
- package/dist/components/GEmailInput.vue.d.ts +53 -10
- package/dist/components/GForm.vue.d.ts +54 -21
- package/dist/components/GHamburgerMenu.vue.d.ts +40 -6
- package/dist/components/GHistoryScroller.vue.d.ts +34 -2
- package/dist/components/GModal.vue.d.ts +74 -12
- package/dist/components/GOverlay.vue.d.ts +4 -1
- package/dist/components/GPopover.vue.d.ts +46 -21
- package/dist/components/GProgress.vue.d.ts +38 -5
- package/dist/components/GSearch.vue.d.ts +73 -2
- package/dist/components/GSelect.vue.d.ts +103 -26
- package/dist/components/GSelectButton.vue.d.ts +65 -16
- package/dist/components/GSidebar.vue.d.ts +62 -11
- package/dist/components/GSidebarMenu.vue.d.ts +125 -16
- package/dist/components/GSubmitButton.vue.d.ts +39 -11
- package/dist/components/GTable.vue.d.ts +86 -3
- package/dist/components/GTermSelector.vue.d.ts +48 -10
- package/dist/components/GTextInput.vue.d.ts +80 -18
- package/dist/components/GThreeWayToggle.vue.d.ts +54 -17
- package/dist/components/GUserMenu.vue.d.ts +61 -10
- package/dist/components/form/GFormErrorMessages.vue.d.ts +13 -5
- package/dist/components/table/GTableBody.vue.d.ts +5 -2
- package/dist/components/table/GTablePagination.vue.d.ts +43 -11
- package/dist/components/term/GTermSelectorControl.vue.d.ts +32 -10
- package/dist/grad-vue.css +1 -1
- package/dist/grad-vue.js +1 -1
- package/dist/{main-DmtFFIij.js → main-BtQAK04Y.js} +707 -676
- package/dist/main-BtQAK04Y.js.map +1 -0
- package/dist/plugin.js +1 -1
- package/package.json +1 -1
- package/dist/main-DmtFFIij.js.map +0 -1
package/README.md
CHANGED
|
@@ -97,11 +97,26 @@ npm run sync-props
|
|
|
97
97
|
|
|
98
98
|
Some notes on this process:
|
|
99
99
|
|
|
100
|
-
- The `docs` section is generated from a
|
|
101
|
-
- The `props-config` section is generated from the `Props` interface or type in the component script
|
|
102
|
-
|
|
103
|
-
-
|
|
104
|
-
|
|
100
|
+
- The `docs` section is generated from a JSDoc comment at the top of the non-setup `<script>` block. It supports markdown formatting.
|
|
101
|
+
- The `props-config` section is generated from the `Props` interface or type in the component script.
|
|
102
|
+
- **Only props with a `@demo` tag in their JSDoc are included in the demo config.** This lets you write full JSDoc on every prop for IDE/documentation purposes without all of them appearing in the interactive demo panel.
|
|
103
|
+
- A non-empty `@demo` value is used as the pre-filled default shown in the demo input:
|
|
104
|
+
```typescript
|
|
105
|
+
/**
|
|
106
|
+
* Modal label
|
|
107
|
+
* @demo Basic Modal
|
|
108
|
+
*/
|
|
109
|
+
label: string;
|
|
110
|
+
```
|
|
111
|
+
- An empty `@demo` tag (no value) includes the prop in the demo but with no pre-filled value:
|
|
112
|
+
```typescript
|
|
113
|
+
/**
|
|
114
|
+
* Placeholder text
|
|
115
|
+
* @demo
|
|
116
|
+
*/
|
|
117
|
+
placeholder?: string;
|
|
118
|
+
```
|
|
119
|
+
- Props without a `@demo` tag will not be included in the demo, regardless of whether they have a JSDoc comment.
|
|
105
120
|
|
|
106
121
|
> [!TIP]
|
|
107
122
|
> The markdown docs at the top of the component file cannot have a `</script>` because of how Vue.js parses the file.
|
|
@@ -1,35 +1,66 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Alert dialog for confirming or canceling actions.
|
|
3
|
+
*
|
|
4
|
+
* Clicking on the outside or pressing the escape key will close the dialog
|
|
5
|
+
* and that counts as canceling.
|
|
6
|
+
*
|
|
7
|
+
* > [!IMPORTANT]
|
|
8
|
+
* >
|
|
9
|
+
* > The surrounding page **must** have an element with the id `modal-root`,
|
|
10
|
+
* > this dialog will be teleported to it, so it can properly be over all
|
|
11
|
+
* > other content. The `modal-root` should be somewhere near the end of the
|
|
12
|
+
* > page structure.
|
|
13
|
+
*
|
|
14
|
+
* **Slot** `default` is used as the content of the alert, and also becomes
|
|
15
|
+
* the ARIA description of the alert.
|
|
16
|
+
*/
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
2
20
|
/**
|
|
3
21
|
* Dialog label
|
|
22
|
+
* @demo
|
|
4
23
|
*/
|
|
5
24
|
label?: string;
|
|
6
25
|
/**
|
|
7
26
|
* Accept button text
|
|
27
|
+
* @demo
|
|
8
28
|
*/
|
|
9
29
|
buttonText?: string;
|
|
10
30
|
/**
|
|
11
31
|
* Accept button color
|
|
32
|
+
* @demo
|
|
12
33
|
*/
|
|
13
34
|
buttonColor?: "primary" | "secondary" | "danger";
|
|
14
|
-
}
|
|
15
|
-
declare var __VLS_13: {};
|
|
16
|
-
type __VLS_Slots = {} & {
|
|
17
|
-
default?: (props: typeof __VLS_13) => any;
|
|
18
|
-
};
|
|
19
|
-
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
35
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
36
|
cancel: (...args: any[]) => void;
|
|
21
37
|
confirm: (...args: any[]) => void;
|
|
22
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
38
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
39
|
+
/**
|
|
40
|
+
* Dialog label
|
|
41
|
+
* @demo
|
|
42
|
+
*/
|
|
43
|
+
label?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Accept button text
|
|
46
|
+
* @demo
|
|
47
|
+
*/
|
|
48
|
+
buttonText?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Accept button color
|
|
51
|
+
* @demo
|
|
52
|
+
*/
|
|
53
|
+
buttonColor?: "primary" | "secondary" | "danger";
|
|
54
|
+
}> & Readonly<{
|
|
23
55
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
24
56
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
25
57
|
}>, {
|
|
26
58
|
label: string;
|
|
27
59
|
buttonText: string;
|
|
28
60
|
buttonColor: "primary" | "secondary" | "danger";
|
|
29
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
export default _default;
|
|
61
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
62
|
+
default?: (props: {}) => any;
|
|
63
|
+
}>;
|
|
33
64
|
type __VLS_WithSlots<T, S> = T & {
|
|
34
65
|
new (): {
|
|
35
66
|
$slots: S;
|
|
@@ -8,34 +8,46 @@
|
|
|
8
8
|
*
|
|
9
9
|
* **Slot** `app-controls` is the remaining area to the right.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
14
|
+
/**
|
|
15
|
+
* Whether to show the Illinois logo
|
|
16
|
+
*/
|
|
12
17
|
illinois?: boolean;
|
|
13
18
|
/**
|
|
14
19
|
* Top-left corner text
|
|
15
20
|
*
|
|
16
21
|
* You can customize this text element with the "left" slot.
|
|
22
|
+
* @demo
|
|
17
23
|
*/
|
|
18
24
|
brand?: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
26
|
+
/**
|
|
27
|
+
* Whether to show the Illinois logo
|
|
28
|
+
*/
|
|
29
|
+
illinois?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Top-left corner text
|
|
32
|
+
*
|
|
33
|
+
* You can customize this text element with the "left" slot.
|
|
34
|
+
* @demo
|
|
35
|
+
*/
|
|
36
|
+
brand?: string;
|
|
37
|
+
}> & Readonly<{}>, {
|
|
38
|
+
illinois: boolean;
|
|
39
|
+
brand: string;
|
|
40
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
41
|
+
left?: (props: {}) => any;
|
|
25
42
|
} & {
|
|
26
|
-
icon?: (props:
|
|
43
|
+
icon?: (props: {}) => any;
|
|
27
44
|
} & {
|
|
28
|
-
title?: (props:
|
|
45
|
+
title?: (props: {}) => any;
|
|
29
46
|
} & {
|
|
30
|
-
'app-controls'?: (props:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
brand: string;
|
|
35
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
36
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
37
|
-
declare const _default: typeof __VLS_export;
|
|
38
|
-
export default _default;
|
|
47
|
+
'app-controls'?: (props: {
|
|
48
|
+
class: string;
|
|
49
|
+
}) => any;
|
|
50
|
+
}>;
|
|
39
51
|
type __VLS_WithSlots<T, S> = T & {
|
|
40
52
|
new (): {
|
|
41
53
|
$slots: S;
|
|
@@ -1,29 +1,59 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* The element or component can be set with the `component` prop, so it can be
|
|
3
|
+
* a link or `router-link` component from vue-router. For example:
|
|
4
|
+
*
|
|
5
|
+
* ```vue-html
|
|
6
|
+
* <GButton component="router-link" to="/some-route">
|
|
7
|
+
* Click me
|
|
8
|
+
* </GButton>
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* Note that grad-vue doesn't include vue-router as a dependency.
|
|
12
|
+
*
|
|
13
|
+
* **Icons** can be added with either the `icon` prop or a named slot `icon`:
|
|
14
|
+
* - Use the `icon` prop to pass an icon class string, e.g., "fa-solid fa-plus".
|
|
15
|
+
* - If using the `icon` prop, the icon will be rendered as a span with the `aria-hidden` attribute set to `true`.
|
|
16
|
+
* - Use a named slot `icon` to provide custom icon content.
|
|
17
|
+
* - If both `icon` prop and named slot `icon` are provided, the named slot takes precedence.
|
|
18
|
+
*/
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
21
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
2
22
|
/**
|
|
3
23
|
* Button size
|
|
24
|
+
* @demo
|
|
4
25
|
*/
|
|
5
26
|
size?: "small" | "medium" | "large";
|
|
6
27
|
/**
|
|
7
28
|
* Button color theme
|
|
29
|
+
* @demo
|
|
8
30
|
*/
|
|
9
31
|
theme?: "primary" | "secondary" | "accent" | "danger" | "none";
|
|
10
32
|
/**
|
|
11
33
|
* Use outlined style
|
|
34
|
+
* @demo
|
|
12
35
|
*/
|
|
13
36
|
outlined?: boolean;
|
|
14
37
|
/**
|
|
15
38
|
* Use text style
|
|
39
|
+
* @demo
|
|
16
40
|
*/
|
|
17
41
|
text?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* The to target for when using the button as a router-link
|
|
44
|
+
*/
|
|
18
45
|
to?: string | Record<string, any>;
|
|
46
|
+
/**
|
|
47
|
+
* The component to use for the button
|
|
48
|
+
*/
|
|
19
49
|
component?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Optional icon classes to render an icon span before the label.
|
|
52
|
+
* Example: "fa-solid fa-plus" or "material-symbols:add".
|
|
53
|
+
* If a named slot `icon` is provided, it takes precedence over this prop.
|
|
54
|
+
*/
|
|
20
55
|
icon?: string;
|
|
21
|
-
}
|
|
22
|
-
type __VLS_Slots = {
|
|
23
|
-
default(): any;
|
|
24
|
-
icon?: () => any;
|
|
25
|
-
};
|
|
26
|
-
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
56
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
57
|
click: (...args: any[]) => void;
|
|
28
58
|
focus: (...args: any[]) => void;
|
|
29
59
|
blur: (...args: any[]) => void;
|
|
@@ -33,7 +63,42 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, i
|
|
|
33
63
|
mouseup: (...args: any[]) => void;
|
|
34
64
|
mouseenter: (...args: any[]) => void;
|
|
35
65
|
mouseleave: (...args: any[]) => void;
|
|
36
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
66
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
67
|
+
/**
|
|
68
|
+
* Button size
|
|
69
|
+
* @demo
|
|
70
|
+
*/
|
|
71
|
+
size?: "small" | "medium" | "large";
|
|
72
|
+
/**
|
|
73
|
+
* Button color theme
|
|
74
|
+
* @demo
|
|
75
|
+
*/
|
|
76
|
+
theme?: "primary" | "secondary" | "accent" | "danger" | "none";
|
|
77
|
+
/**
|
|
78
|
+
* Use outlined style
|
|
79
|
+
* @demo
|
|
80
|
+
*/
|
|
81
|
+
outlined?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Use text style
|
|
84
|
+
* @demo
|
|
85
|
+
*/
|
|
86
|
+
text?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* The to target for when using the button as a router-link
|
|
89
|
+
*/
|
|
90
|
+
to?: string | Record<string, any>;
|
|
91
|
+
/**
|
|
92
|
+
* The component to use for the button
|
|
93
|
+
*/
|
|
94
|
+
component?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Optional icon classes to render an icon span before the label.
|
|
97
|
+
* Example: "fa-solid fa-plus" or "material-symbols:add".
|
|
98
|
+
* If a named slot `icon` is provided, it takes precedence over this prop.
|
|
99
|
+
*/
|
|
100
|
+
icon?: string;
|
|
101
|
+
}> & Readonly<{
|
|
37
102
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
38
103
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
39
104
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
@@ -51,10 +116,10 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, i
|
|
|
51
116
|
to: string | Record<string, any>;
|
|
52
117
|
component: string;
|
|
53
118
|
icon: string;
|
|
54
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
119
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
120
|
+
default(): any;
|
|
121
|
+
icon?: () => any;
|
|
122
|
+
}>;
|
|
58
123
|
type __VLS_WithSlots<T, S> = T & {
|
|
59
124
|
new (): {
|
|
60
125
|
$slots: S;
|
|
@@ -1,17 +1,42 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Displays text with a clipboard button that copies the text to the clipboard.
|
|
3
|
+
* The text can be hidden in cases where it's already displayed differently.
|
|
4
|
+
*
|
|
5
|
+
* If for some reason the user's browser doesn't support a clipboard,
|
|
6
|
+
* the tooltip will indicate that when they try to copy.
|
|
7
|
+
*/
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
2
11
|
/**
|
|
3
12
|
* Text
|
|
13
|
+
* @demo This is some text to get copied
|
|
4
14
|
*/
|
|
5
15
|
text: string;
|
|
6
16
|
/**
|
|
7
17
|
* Hide the visible text
|
|
18
|
+
* @demo
|
|
8
19
|
*/
|
|
9
20
|
hideText?: boolean;
|
|
10
21
|
/**
|
|
11
22
|
* Copy button label
|
|
23
|
+
* @demo
|
|
12
24
|
*/
|
|
13
25
|
copyLabel?: string;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
26
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
27
|
+
/**
|
|
28
|
+
* Text
|
|
29
|
+
* @demo This is some text to get copied
|
|
30
|
+
*/
|
|
31
|
+
text: string;
|
|
32
|
+
/**
|
|
33
|
+
* Hide the visible text
|
|
34
|
+
* @demo
|
|
35
|
+
*/
|
|
36
|
+
hideText?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Copy button label
|
|
39
|
+
* @demo
|
|
40
|
+
*/
|
|
41
|
+
copyLabel?: string;
|
|
42
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,31 +1,76 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* A currency input component for US dollars.
|
|
3
|
+
*
|
|
4
|
+
* This component is a wrapper around a text input with a prefix and
|
|
5
|
+
* appropriate input type for currency values.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
2
10
|
/**
|
|
3
11
|
* Label
|
|
12
|
+
* @demo
|
|
4
13
|
*/
|
|
5
14
|
label?: string;
|
|
6
15
|
/**
|
|
7
16
|
* Placeholder text
|
|
17
|
+
* @demo
|
|
8
18
|
*/
|
|
9
19
|
placeholder?: string;
|
|
10
20
|
/**
|
|
11
21
|
* Disabled
|
|
22
|
+
* @demo
|
|
12
23
|
*/
|
|
13
24
|
disabled?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Error messages array (supports multiple validation errors)
|
|
27
|
+
*/
|
|
14
28
|
errors?: string[];
|
|
15
29
|
/**
|
|
16
30
|
* Instructions
|
|
31
|
+
* @demo
|
|
17
32
|
*/
|
|
18
33
|
instructions?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Name for form registration
|
|
36
|
+
*/
|
|
19
37
|
name?: string;
|
|
20
|
-
}
|
|
21
|
-
type __VLS_Props = Props;
|
|
22
|
-
type __VLS_ModelProps = {
|
|
38
|
+
} & {
|
|
23
39
|
modelValue?: string | null;
|
|
24
|
-
}
|
|
25
|
-
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
26
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
40
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
41
|
"update:modelValue": (value: string | null | undefined) => any;
|
|
28
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
42
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
43
|
+
/**
|
|
44
|
+
* Label
|
|
45
|
+
* @demo
|
|
46
|
+
*/
|
|
47
|
+
label?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Placeholder text
|
|
50
|
+
* @demo
|
|
51
|
+
*/
|
|
52
|
+
placeholder?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Disabled
|
|
55
|
+
* @demo
|
|
56
|
+
*/
|
|
57
|
+
disabled?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Error messages array (supports multiple validation errors)
|
|
60
|
+
*/
|
|
61
|
+
errors?: string[];
|
|
62
|
+
/**
|
|
63
|
+
* Instructions
|
|
64
|
+
* @demo
|
|
65
|
+
*/
|
|
66
|
+
instructions?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Name for form registration
|
|
69
|
+
*/
|
|
70
|
+
name?: string;
|
|
71
|
+
} & {
|
|
72
|
+
modelValue?: string | null;
|
|
73
|
+
}> & Readonly<{
|
|
29
74
|
"onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
|
|
30
75
|
}>, {
|
|
31
76
|
label: string;
|
|
@@ -35,5 +80,3 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
35
80
|
disabled: boolean;
|
|
36
81
|
instructions: string;
|
|
37
82
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
|
-
declare const _default: typeof __VLS_export;
|
|
39
|
-
export default _default;
|
|
@@ -1,31 +1,76 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* A date input component.
|
|
3
|
+
*
|
|
4
|
+
* This component is a wrapper around GTextInput with type="date" for
|
|
5
|
+
* proper date selection using the browser's native date picker.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
2
10
|
/**
|
|
3
11
|
* Label
|
|
12
|
+
* @demo
|
|
4
13
|
*/
|
|
5
14
|
label?: string;
|
|
6
15
|
/**
|
|
7
16
|
* Placeholder text
|
|
17
|
+
* @demo
|
|
8
18
|
*/
|
|
9
19
|
placeholder?: string;
|
|
10
20
|
/**
|
|
11
21
|
* Disabled
|
|
22
|
+
* @demo
|
|
12
23
|
*/
|
|
13
24
|
disabled?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Error messages array (supports multiple validation errors)
|
|
27
|
+
*/
|
|
14
28
|
errors?: string[];
|
|
15
29
|
/**
|
|
16
30
|
* Instructions
|
|
31
|
+
* @demo
|
|
17
32
|
*/
|
|
18
33
|
instructions?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Name for form registration
|
|
36
|
+
*/
|
|
19
37
|
name?: string;
|
|
20
|
-
}
|
|
21
|
-
type __VLS_Props = Props;
|
|
22
|
-
type __VLS_ModelProps = {
|
|
38
|
+
} & {
|
|
23
39
|
modelValue?: string | null;
|
|
24
|
-
}
|
|
25
|
-
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
26
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
40
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
41
|
"update:modelValue": (value: string | null | undefined) => any;
|
|
28
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
42
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
43
|
+
/**
|
|
44
|
+
* Label
|
|
45
|
+
* @demo
|
|
46
|
+
*/
|
|
47
|
+
label?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Placeholder text
|
|
50
|
+
* @demo
|
|
51
|
+
*/
|
|
52
|
+
placeholder?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Disabled
|
|
55
|
+
* @demo
|
|
56
|
+
*/
|
|
57
|
+
disabled?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Error messages array (supports multiple validation errors)
|
|
60
|
+
*/
|
|
61
|
+
errors?: string[];
|
|
62
|
+
/**
|
|
63
|
+
* Instructions
|
|
64
|
+
* @demo
|
|
65
|
+
*/
|
|
66
|
+
instructions?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Name for form registration
|
|
69
|
+
*/
|
|
70
|
+
name?: string;
|
|
71
|
+
} & {
|
|
72
|
+
modelValue?: string | null;
|
|
73
|
+
}> & Readonly<{
|
|
29
74
|
"onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
|
|
30
75
|
}>, {
|
|
31
76
|
label: string;
|
|
@@ -35,5 +80,3 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
35
80
|
disabled: boolean;
|
|
36
81
|
instructions: string;
|
|
37
82
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
|
-
declare const _default: typeof __VLS_export;
|
|
39
|
-
export default _default;
|
|
@@ -1,40 +1,99 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* A date range input component with start and end dates.
|
|
3
|
+
*
|
|
4
|
+
* This component uses two GDateInput components laid out horizontally
|
|
5
|
+
* to allow selecting a date range.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
10
|
+
/**
|
|
11
|
+
* Label for the component
|
|
12
|
+
* @demo
|
|
13
|
+
*/
|
|
14
|
+
label?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Label for the start date input
|
|
17
|
+
* @demo
|
|
18
|
+
*/
|
|
19
|
+
startLabel?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Label for the end date input
|
|
22
|
+
* @demo
|
|
23
|
+
*/
|
|
24
|
+
endLabel?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Disabled
|
|
27
|
+
* @demo
|
|
28
|
+
*/
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Error messages array (supports multiple validation errors)
|
|
32
|
+
*/
|
|
33
|
+
errors?: string[];
|
|
34
|
+
/**
|
|
35
|
+
* Instructions
|
|
36
|
+
* @demo
|
|
37
|
+
*/
|
|
38
|
+
instructions?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Name for form registration
|
|
41
|
+
*/
|
|
42
|
+
name?: string;
|
|
43
|
+
} & {
|
|
44
|
+
modelValue?: {
|
|
45
|
+
start: string | null;
|
|
46
|
+
end: string | null;
|
|
47
|
+
};
|
|
48
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
49
|
+
"update:modelValue": (value: {
|
|
50
|
+
start: string | null;
|
|
51
|
+
end: string | null;
|
|
52
|
+
}) => any;
|
|
53
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
2
54
|
/**
|
|
3
55
|
* Label for the component
|
|
56
|
+
* @demo
|
|
4
57
|
*/
|
|
5
58
|
label?: string;
|
|
6
59
|
/**
|
|
7
60
|
* Label for the start date input
|
|
61
|
+
* @demo
|
|
8
62
|
*/
|
|
9
63
|
startLabel?: string;
|
|
10
64
|
/**
|
|
11
65
|
* Label for the end date input
|
|
66
|
+
* @demo
|
|
12
67
|
*/
|
|
13
68
|
endLabel?: string;
|
|
14
69
|
/**
|
|
15
70
|
* Disabled
|
|
71
|
+
* @demo
|
|
16
72
|
*/
|
|
17
73
|
disabled?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Error messages array (supports multiple validation errors)
|
|
76
|
+
*/
|
|
18
77
|
errors?: string[];
|
|
19
78
|
/**
|
|
20
79
|
* Instructions
|
|
80
|
+
* @demo
|
|
21
81
|
*/
|
|
22
82
|
instructions?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Name for form registration
|
|
85
|
+
*/
|
|
23
86
|
name?: string;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
35
|
-
"update:modelValue": (value: DateRange) => any;
|
|
36
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
37
|
-
"onUpdate:modelValue"?: ((value: DateRange) => any) | undefined;
|
|
87
|
+
} & {
|
|
88
|
+
modelValue?: {
|
|
89
|
+
start: string | null;
|
|
90
|
+
end: string | null;
|
|
91
|
+
};
|
|
92
|
+
}> & Readonly<{
|
|
93
|
+
"onUpdate:modelValue"?: ((value: {
|
|
94
|
+
start: string | null;
|
|
95
|
+
end: string | null;
|
|
96
|
+
}) => any) | undefined;
|
|
38
97
|
}>, {
|
|
39
98
|
label: string;
|
|
40
99
|
name: string;
|
|
@@ -44,5 +103,3 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
44
103
|
startLabel: string;
|
|
45
104
|
endLabel: string;
|
|
46
105
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
47
|
-
declare const _default: typeof __VLS_export;
|
|
48
|
-
export default _default;
|