wave-ui 3.10.1 → 3.11.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/dist/types/$waveui.d.ts +29 -0
- package/dist/types/$waveui.js +2 -0
- package/dist/types/colors.d.ts +503 -0
- package/dist/types/colors.js +2 -0
- package/dist/types/components/WAccordion.d.ts +226 -0
- package/dist/types/components/WAccordion.js +2 -0
- package/dist/types/components/WAlert.d.ts +225 -0
- package/dist/types/components/WAlert.js +2 -0
- package/dist/types/components/WApp.d.ts +84 -0
- package/dist/types/components/WApp.js +2 -0
- package/dist/types/components/WBadge.d.ts +194 -0
- package/dist/types/components/WBadge.js +2 -0
- package/dist/types/components/WBreadcrumbs.d.ts +129 -0
- package/dist/types/components/WBreadcrumbs.js +2 -0
- package/dist/types/components/WButton.d.ts +218 -0
- package/dist/types/components/WButton.js +2 -0
- package/dist/types/components/WCard.d.ts +140 -0
- package/dist/types/components/WCard.js +2 -0
- package/dist/types/components/WCheckbox.d.ts +132 -0
- package/dist/types/components/WCheckbox.js +2 -0
- package/dist/types/components/WCheckboxes.d.ts +141 -0
- package/dist/types/components/WCheckboxes.js +2 -0
- package/dist/types/components/WConfirm.d.ts +250 -0
- package/dist/types/components/WConfirm.js +2 -0
- package/dist/types/components/WDialog.d.ts +189 -0
- package/dist/types/components/WDialog.js +2 -0
- package/dist/types/components/WDivider.d.ts +49 -0
- package/dist/types/components/WDivider.js +2 -0
- package/dist/types/components/WDrawer.d.ts +249 -0
- package/dist/types/components/WDrawer.js +2 -0
- package/dist/types/components/WFlex.d.ts +137 -0
- package/dist/types/components/WFlex.js +2 -0
- package/dist/types/components/WForm.d.ts +165 -0
- package/dist/types/components/WForm.js +2 -0
- package/dist/types/components/WFormElement.d.ts +112 -0
- package/dist/types/components/WFormElement.js +2 -0
- package/dist/types/components/WGrid.d.ts +51 -0
- package/dist/types/components/WGrid.js +2 -0
- package/dist/types/components/WIcon.d.ts +167 -0
- package/dist/types/components/WIcon.js +2 -0
- package/dist/types/components/WImage.d.ts +172 -0
- package/dist/types/components/WImage.js +2 -0
- package/dist/types/components/WInput.d.ts +338 -0
- package/dist/types/components/WInput.js +2 -0
- package/dist/types/components/WList.d.ts +336 -0
- package/dist/types/components/WList.js +2 -0
- package/dist/types/components/WMenu.d.ts +250 -0
- package/dist/types/components/WMenu.js +2 -0
- package/dist/types/components/WNotification.d.ts +283 -0
- package/dist/types/components/WNotification.js +2 -0
- package/dist/types/components/WNotificationManager.d.ts +33 -0
- package/dist/types/components/WNotificationManager.js +2 -0
- package/dist/types/components/WOverlay.d.ts +118 -0
- package/dist/types/components/WOverlay.js +2 -0
- package/dist/types/components/WProgress.d.ts +177 -0
- package/dist/types/components/WProgress.js +2 -0
- package/dist/types/components/WRadio.d.ts +121 -0
- package/dist/types/components/WRadio.js +2 -0
- package/dist/types/components/WRadios.d.ts +129 -0
- package/dist/types/components/WRadios.js +2 -0
- package/dist/types/components/WRating.d.ts +176 -0
- package/dist/types/components/WRating.js +2 -0
- package/dist/types/components/WSelect.d.ts +371 -0
- package/dist/types/components/WSelect.js +2 -0
- package/dist/types/components/WSlider.d.ts +263 -0
- package/dist/types/components/WSlider.js +2 -0
- package/dist/types/components/WSpinner.d.ts +101 -0
- package/dist/types/components/WSpinner.js +2 -0
- package/dist/types/components/WSteps.d.ts +29 -0
- package/dist/types/components/WSteps.js +2 -0
- package/dist/types/components/WSwitch.d.ts +132 -0
- package/dist/types/components/WSwitch.js +2 -0
- package/dist/types/components/WTable.d.ts +406 -0
- package/dist/types/components/WTable.js +2 -0
- package/dist/types/components/WTabs.d.ts +301 -0
- package/dist/types/components/WTabs.js +2 -0
- package/dist/types/components/WTag.d.ts +160 -0
- package/dist/types/components/WTag.js +2 -0
- package/dist/types/components/WTextarea.d.ts +243 -0
- package/dist/types/components/WTextarea.js +2 -0
- package/dist/types/components/WTimeline.d.ts +102 -0
- package/dist/types/components/WTimeline.js +2 -0
- package/dist/types/components/WToolbar.d.ts +134 -0
- package/dist/types/components/WToolbar.js +2 -0
- package/dist/types/components/WTooltip.d.ts +170 -0
- package/dist/types/components/WTooltip.js +2 -0
- package/dist/types/components/WTree.d.ts +359 -0
- package/dist/types/components/WTree.js +2 -0
- package/dist/types/components/index.d.ts +42 -0
- package/dist/types/components/index.js +2 -0
- package/dist/types/extra-vue-types.d.ts +8 -0
- package/dist/types/extra-vue-types.js +2 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.js +4 -0
- package/dist/types/plugin.d.ts +19 -0
- package/dist/types/plugin.js +2 -0
- package/package.json +8 -2
- package/src/wave-ui/components/w-parallax.vue +0 -1
- package/src/wave-ui/index.d.ts +21 -0
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { ComputedGetter, ComputedOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, SlotsType } from 'vue';
|
|
2
|
+
import { PublicProps, ResolveProps } from '../extra-vue-types';
|
|
3
|
+
export interface WaveOverlayProps {
|
|
4
|
+
/**
|
|
5
|
+
* ``value` in Vue 2.`
|
|
6
|
+
* This prop controls the visibility of the overlay. Any truthy value will show the overlay whereas any falsy value will hide it.
|
|
7
|
+
* @property {any} modelValue
|
|
8
|
+
* @see https://antoniandre.github.io/wave-ui/w-overlay
|
|
9
|
+
*/
|
|
10
|
+
modelValue?: any;
|
|
11
|
+
/**
|
|
12
|
+
* Sets a custom opacity on the overlay.
|
|
13
|
+
* @property {number|string|boolean} opacity
|
|
14
|
+
* @see https://antoniandre.github.io/wave-ui/w-overlay
|
|
15
|
+
*/
|
|
16
|
+
opacity?: number | string | boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Applies a color to the overlay's background. Accepts all the color names of the color palette, status colors, or custom colors (learn more about the colors in the `colors` knowledge base page).
|
|
19
|
+
* Providing a color hex, rgb(a) or hsl(a) will not work.
|
|
20
|
+
* @property {string} bgColor
|
|
21
|
+
* @see https://antoniandre.github.io/wave-ui/w-overlay
|
|
22
|
+
* @see https://antoniandre.github.io/wave-ui/colors
|
|
23
|
+
*/
|
|
24
|
+
bgColor?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Sets the CSS position of the overlay to `absolute`. By default it is set to `fixed`.
|
|
27
|
+
* @property {boolean} absolute
|
|
28
|
+
* @see https://antoniandre.github.io/wave-ui/w-overlay
|
|
29
|
+
*/
|
|
30
|
+
absolute?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Applies a z-index (positive or negative integer) to the overlay.
|
|
33
|
+
* @property {number|string|boolean} zIndex
|
|
34
|
+
* @see https://antoniandre.github.io/wave-ui/w-overlay
|
|
35
|
+
*/
|
|
36
|
+
zIndex?: number | string | boolean;
|
|
37
|
+
/**
|
|
38
|
+
* When set to true, clicking outside of the overlay or pressing the escape key will not close the overlay.
|
|
39
|
+
* A bounce animation will give the user a feedback that the overlay content needs attention and cannot be closed.
|
|
40
|
+
* @property {boolean} persistent
|
|
41
|
+
* @see https://antoniandre.github.io/wave-ui/w-overlay
|
|
42
|
+
*/
|
|
43
|
+
persistent?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* When this and the `persistent` props are set to true, clicking outside of the overlay or pressing the escape key will not trigger the default bounce animation (no feedback is given to the user).
|
|
46
|
+
* @property {boolean} persistentNoAnimation
|
|
47
|
+
* @see https://antoniandre.github.io/wave-ui/w-overlay
|
|
48
|
+
*/
|
|
49
|
+
persistentNoAnimation?: boolean;
|
|
50
|
+
}
|
|
51
|
+
export interface WaveOverlayEmits {
|
|
52
|
+
/**
|
|
53
|
+
* Emitted on overlay close (a click on overlay doesn't trigger this event if <code>persistent</code>).<br>Updates the v-model value in Vue 2.x only.
|
|
54
|
+
* @param {any} renameMe1 - Represents the open state of the overlay: false on overlay close.
|
|
55
|
+
* @see https://antoniandre.github.io/wave-ui/w-overlay
|
|
56
|
+
*/
|
|
57
|
+
'onInput'?: (renameMe1: any) => void;
|
|
58
|
+
/**
|
|
59
|
+
* Emitted on overlay close (a click on overlay doesn't trigger this event if <code>persistent</code>).<br>Updates the v-model value in Vue 3 only.
|
|
60
|
+
* @param {any} renameMe1 - Represents the open state of the overlay: false on overlay close.
|
|
61
|
+
* @see https://antoniandre.github.io/wave-ui/w-overlay
|
|
62
|
+
*/
|
|
63
|
+
'onUpdate:modelValue'?: (renameMe1: any) => void;
|
|
64
|
+
/**
|
|
65
|
+
* Emitted on every overlay click. Whether the <code>persistent</code> prop is set to true or false.
|
|
66
|
+
* @param {any} renameMe1 - The associated click DOM event.
|
|
67
|
+
* @see https://antoniandre.github.io/wave-ui/w-overlay
|
|
68
|
+
*/
|
|
69
|
+
'onClick'?: (renameMe1: any) => void;
|
|
70
|
+
/**
|
|
71
|
+
* TODO: Add Description
|
|
72
|
+
* @see https://antoniandre.github.io/wave-ui/w-overlay
|
|
73
|
+
*/
|
|
74
|
+
'onBeforeClose'?: () => void;
|
|
75
|
+
/**
|
|
76
|
+
* Emitted on overlay close (a click on overlay doesn't trigger this event if <code>persistent</code>).
|
|
77
|
+
* @see https://antoniandre.github.io/wave-ui/w-overlay
|
|
78
|
+
*/
|
|
79
|
+
'onClose'?: () => void;
|
|
80
|
+
}
|
|
81
|
+
export interface WaveOverlayComputeds extends ComputedOptions {
|
|
82
|
+
/**
|
|
83
|
+
* TODO: Add Description
|
|
84
|
+
* @see https://antoniandre.github.io/wave-ui/w-overlay
|
|
85
|
+
*/
|
|
86
|
+
backgroundColor: ComputedGetter<any>;
|
|
87
|
+
/**
|
|
88
|
+
* TODO: Add Description
|
|
89
|
+
* @see https://antoniandre.github.io/wave-ui/w-overlay
|
|
90
|
+
*/
|
|
91
|
+
classes: ComputedGetter<any>;
|
|
92
|
+
/**
|
|
93
|
+
* TODO: Add Description
|
|
94
|
+
* @see https://antoniandre.github.io/wave-ui/w-overlay
|
|
95
|
+
*/
|
|
96
|
+
styles: ComputedGetter<any>;
|
|
97
|
+
}
|
|
98
|
+
export interface WaveOverlayMethods extends MethodOptions {
|
|
99
|
+
/**
|
|
100
|
+
* TODO: Add Description
|
|
101
|
+
* @param {any} e
|
|
102
|
+
* @see https://antoniandre.github.io/wave-ui/w-overlay
|
|
103
|
+
*/
|
|
104
|
+
onClick(e: any): void;
|
|
105
|
+
/**
|
|
106
|
+
* TODO: Add Description
|
|
107
|
+
* @see https://antoniandre.github.io/wave-ui/w-overlay
|
|
108
|
+
*/
|
|
109
|
+
onClose(): void;
|
|
110
|
+
}
|
|
111
|
+
export type WaveOverlaySlots = SlotsType<{
|
|
112
|
+
/**
|
|
113
|
+
* The overlay content, if any.
|
|
114
|
+
* @see https://antoniandre.github.io/wave-ui/w-overlay
|
|
115
|
+
*/
|
|
116
|
+
'default': () => any;
|
|
117
|
+
}>;
|
|
118
|
+
export type WOverlay = DefineComponent<WaveOverlayProps, {}, {}, WaveOverlayComputeds, WaveOverlayMethods, {}, {}, WaveOverlayEmits & EmitsOptions, string, PublicProps, ResolveProps<WaveOverlayProps & WaveOverlayEmits, EmitsOptions>, ExtractDefaultPropTypes<WaveOverlayProps>, WaveOverlaySlots>;
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { ComputedGetter, ComputedOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, SlotsType } from 'vue';
|
|
2
|
+
import { PublicProps, ResolveProps } from '../extra-vue-types';
|
|
3
|
+
export interface WaveProgressProps {
|
|
4
|
+
/**
|
|
5
|
+
* ``value` in Vue 2.`
|
|
6
|
+
* Accepts a percentage value (ranging from 0 to 100) as a number or a string.
|
|
7
|
+
* If the value is `undefined`, `-1` or not provided at all, it will be assumed indeterminate.
|
|
8
|
+
* @property {number|string|boolean} modelValue - Default: -1
|
|
9
|
+
* @see https://antoniandre.github.io/wave-ui/w-progress
|
|
10
|
+
*/
|
|
11
|
+
modelValue?: number | string | boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Shows or hides the label of the progress containing the current progress value.
|
|
14
|
+
* @property {boolean} label
|
|
15
|
+
* @see https://antoniandre.github.io/wave-ui/w-progress
|
|
16
|
+
*/
|
|
17
|
+
label?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Applies a round line-cap to the progress.
|
|
20
|
+
* @property {boolean} roundCap
|
|
21
|
+
* @see https://antoniandre.github.io/wave-ui/w-progress
|
|
22
|
+
*/
|
|
23
|
+
roundCap?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Applies a foreground color to the progress. Accepts all the color names of the color palette, status colors, or custom colors (learn more about the colors in the `colors` knowledge base page).
|
|
26
|
+
* Providing a color hex, rgb(a) or hsl(a) will not work.
|
|
27
|
+
* @property {string} color - Default: 'primary'
|
|
28
|
+
* @see https://antoniandre.github.io/wave-ui/w-progress
|
|
29
|
+
* @see https://antoniandre.github.io/wave-ui/colors
|
|
30
|
+
*/
|
|
31
|
+
color?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Applies a color to the progress' background. Accepts all the color names of the color palette, status colors, or custom colors (learn more about the colors in the `colors` knowledge base page).
|
|
34
|
+
* Providing a color hex, rgb(a) or hsl(a) will not work.
|
|
35
|
+
* @property {string} bgColor
|
|
36
|
+
* @see https://antoniandre.github.io/wave-ui/w-progress
|
|
37
|
+
* @see https://antoniandre.github.io/wave-ui/colors
|
|
38
|
+
*/
|
|
39
|
+
bgColor?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Applies a color to the progress label's text. Accepts all the color names of the color palette, status colors, or custom colors (learn more about the colors in the `colors` knowledge base page).
|
|
42
|
+
* Providing a color hex, rgb(a) or hsl(a) will not work.
|
|
43
|
+
* @property {string} labelColor
|
|
44
|
+
* @see https://antoniandre.github.io/wave-ui/w-progress
|
|
45
|
+
* @see https://antoniandre.github.io/wave-ui/colors
|
|
46
|
+
*/
|
|
47
|
+
labelColor?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Sets the size of the progress element: the width if circular, or the height if linear.
|
|
50
|
+
* Accepts a string made of a value and a unit (e.g. `2.5em`) or a number (e.g. `45`) that will be a pixel value.
|
|
51
|
+
* @property {number|string} size
|
|
52
|
+
* @see https://antoniandre.github.io/wave-ui/w-progress
|
|
53
|
+
*/
|
|
54
|
+
size?: number | string;
|
|
55
|
+
/**
|
|
56
|
+
* Sets the progress style to circle.
|
|
57
|
+
* @property {boolean} circle
|
|
58
|
+
* @see https://antoniandre.github.io/wave-ui/w-progress
|
|
59
|
+
*/
|
|
60
|
+
circle?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Only applies to a circular progress.
|
|
63
|
+
* Sets the thickness of the circular progress.
|
|
64
|
+
* @property {number|string} stroke - Default: 4
|
|
65
|
+
* @see https://antoniandre.github.io/wave-ui/w-progress
|
|
66
|
+
*/
|
|
67
|
+
stroke?: number | string;
|
|
68
|
+
/**
|
|
69
|
+
* Only applies to a linear progress.
|
|
70
|
+
* Applies a drop shadow to the progress bar.
|
|
71
|
+
* @property {boolean} shadow
|
|
72
|
+
* @see https://antoniandre.github.io/wave-ui/w-progress
|
|
73
|
+
*/
|
|
74
|
+
shadow?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Only applies to a linear progress.
|
|
77
|
+
* Removes the default border-radius and sets sharp edges on the progress bar.
|
|
78
|
+
* @property {boolean} tile
|
|
79
|
+
* @see https://antoniandre.github.io/wave-ui/w-progress
|
|
80
|
+
*/
|
|
81
|
+
tile?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Only applies to a linear progress.
|
|
84
|
+
* Sets a maximum border-radius on the corners of the progress, giving it a round look.
|
|
85
|
+
* @property {boolean} round
|
|
86
|
+
* @see https://antoniandre.github.io/wave-ui/w-progress
|
|
87
|
+
*/
|
|
88
|
+
round?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Only applies to a linear progress.
|
|
91
|
+
* When using the linear progress, the outline style applies the provided `color` (by default the `primary` color is used) to the progress, border and label and no background color is set.
|
|
92
|
+
* @property {boolean} outline
|
|
93
|
+
* @see https://antoniandre.github.io/wave-ui/w-progress
|
|
94
|
+
*/
|
|
95
|
+
outline?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Only applies to a linear progress.
|
|
98
|
+
* Applies an animated stripes background on the progress bar.
|
|
99
|
+
* @property {boolean} stripes
|
|
100
|
+
* @see https://antoniandre.github.io/wave-ui/w-progress
|
|
101
|
+
*/
|
|
102
|
+
stripes?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Sets the CSS position of the progress element to `absolute`.
|
|
105
|
+
* @property {boolean} absolute
|
|
106
|
+
* @see https://antoniandre.github.io/wave-ui/w-progress
|
|
107
|
+
*/
|
|
108
|
+
absolute?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Sets the CSS position of the progress element to `fixed`.
|
|
111
|
+
* @property {boolean} fixed
|
|
112
|
+
* @see https://antoniandre.github.io/wave-ui/w-progress
|
|
113
|
+
*/
|
|
114
|
+
fixed?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Places the progress element at the top of the screen when the `fixed` prop is set to true or at the top of its container when the `absolute` prop is set to true.
|
|
117
|
+
* @property {boolean} top
|
|
118
|
+
* @see https://antoniandre.github.io/wave-ui/w-progress
|
|
119
|
+
*/
|
|
120
|
+
top?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Places the progress element at the bottom of the screen when the `fixed` prop is set to true or at the bottom of its container when the `absolute` prop is set to true.
|
|
123
|
+
* @property {boolean} bottom
|
|
124
|
+
* @see https://antoniandre.github.io/wave-ui/w-progress
|
|
125
|
+
*/
|
|
126
|
+
bottom?: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Applies a z-index (positive or negative integer) to the progress element.
|
|
129
|
+
* @property {number|string|boolean} zIndex
|
|
130
|
+
* @see https://antoniandre.github.io/wave-ui/w-progress
|
|
131
|
+
*/
|
|
132
|
+
zIndex?: number | string | boolean;
|
|
133
|
+
}
|
|
134
|
+
export interface WaveProgressEmits {
|
|
135
|
+
}
|
|
136
|
+
export interface WaveProgressComputeds extends ComputedOptions {
|
|
137
|
+
/**
|
|
138
|
+
* TODO: Add Description
|
|
139
|
+
* @see https://antoniandre.github.io/wave-ui/w-progress
|
|
140
|
+
*/
|
|
141
|
+
progressValue: ComputedGetter<any>;
|
|
142
|
+
/**
|
|
143
|
+
* TODO: Add Description
|
|
144
|
+
* @see https://antoniandre.github.io/wave-ui/w-progress
|
|
145
|
+
*/
|
|
146
|
+
circleCenter: ComputedGetter<any>;
|
|
147
|
+
/**
|
|
148
|
+
* TODO: Add Description
|
|
149
|
+
* @see https://antoniandre.github.io/wave-ui/w-progress
|
|
150
|
+
*/
|
|
151
|
+
forcedSize: ComputedGetter<any>;
|
|
152
|
+
/**
|
|
153
|
+
* TODO: Add Description
|
|
154
|
+
* @see https://antoniandre.github.io/wave-ui/w-progress
|
|
155
|
+
*/
|
|
156
|
+
position: ComputedGetter<any>;
|
|
157
|
+
/**
|
|
158
|
+
* TODO: Add Description
|
|
159
|
+
* @see https://antoniandre.github.io/wave-ui/w-progress
|
|
160
|
+
*/
|
|
161
|
+
classes: ComputedGetter<any>;
|
|
162
|
+
/**
|
|
163
|
+
* TODO: Add Description
|
|
164
|
+
* @see https://antoniandre.github.io/wave-ui/w-progress
|
|
165
|
+
*/
|
|
166
|
+
styles: ComputedGetter<any>;
|
|
167
|
+
}
|
|
168
|
+
export interface WaveProgressMethods extends MethodOptions {
|
|
169
|
+
}
|
|
170
|
+
export type WaveProgressSlots = SlotsType<{
|
|
171
|
+
/**
|
|
172
|
+
* Provide a custom progress label.
|
|
173
|
+
* @see https://antoniandre.github.io/wave-ui/w-progress
|
|
174
|
+
*/
|
|
175
|
+
'default': () => any;
|
|
176
|
+
}>;
|
|
177
|
+
export type WProgress = DefineComponent<WaveProgressProps, {}, {}, WaveProgressComputeds, WaveProgressMethods, {}, {}, WaveProgressEmits & EmitsOptions, string, PublicProps, ResolveProps<WaveProgressProps & WaveProgressEmits, EmitsOptions>, ExtractDefaultPropTypes<WaveProgressProps>, WaveProgressSlots>;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { ComputedGetter, ComputedOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, SlotsType } from 'vue';
|
|
2
|
+
import { PublicProps, ResolveProps } from '../extra-vue-types';
|
|
3
|
+
export interface WaveRadioProps {
|
|
4
|
+
/**
|
|
5
|
+
* TODO: Add Description
|
|
6
|
+
* @property {any} wRadios - Default: null }
|
|
7
|
+
* @see https://antoniandre.github.io/wave-ui/w-radio
|
|
8
|
+
*/
|
|
9
|
+
wRadios?: any;
|
|
10
|
+
/**
|
|
11
|
+
* ``value` in Vue 2.`
|
|
12
|
+
* Provide a boolean to dictate the selected state of the radio button.
|
|
13
|
+
* This value gets updated when using a v-model.
|
|
14
|
+
* @property {any} modelValue - Default: false
|
|
15
|
+
* @see https://antoniandre.github.io/wave-ui/w-radio
|
|
16
|
+
*/
|
|
17
|
+
modelValue?: any;
|
|
18
|
+
/**
|
|
19
|
+
* Since the native HTML radio uses the `value` attribute to define the selected state, the `return-value` prop let you specify a value to return to the `v-model` when the radio is selected (instead of returning `true`).
|
|
20
|
+
* @property {any} returnValue
|
|
21
|
+
* @see https://antoniandre.github.io/wave-ui/w-radio
|
|
22
|
+
*/
|
|
23
|
+
returnValue?: any;
|
|
24
|
+
/**
|
|
25
|
+
* Sets a visible label for the radio button.
|
|
26
|
+
* @property {string} label
|
|
27
|
+
* @see https://antoniandre.github.io/wave-ui/w-radio
|
|
28
|
+
*/
|
|
29
|
+
label?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Moves the label to the left of the radio button. By default the label is displayed on the right.
|
|
32
|
+
* @property {boolean} labelOnLeft
|
|
33
|
+
* @see https://antoniandre.github.io/wave-ui/w-radio
|
|
34
|
+
*/
|
|
35
|
+
labelOnLeft?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Applies a color to the radio button when active. Accepts all the color names of the color palette, status colors, or custom colors (learn more about the colors in the `colors` knowledge base page).
|
|
38
|
+
* Providing a color hex, rgb(a) or hsl(a) will not work.
|
|
39
|
+
* @property {string} color - Default: 'primary'
|
|
40
|
+
* @see https://antoniandre.github.io/wave-ui/w-radio
|
|
41
|
+
* @see https://antoniandre.github.io/wave-ui/colors
|
|
42
|
+
*/
|
|
43
|
+
color?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Applies a specific color to the radio button's label. Note that on validation failure, the validation-color takes precedence.
|
|
46
|
+
* Accepts all the color names of the color palette, status colors, or custom colors (learn more about the colors in the `colors` knowledge base page).
|
|
47
|
+
* Providing a color hex, rgb(a) or hsl(a) will not work.
|
|
48
|
+
* @property {string} labelColor - Default: 'primary'
|
|
49
|
+
* @see https://antoniandre.github.io/wave-ui/w-radio
|
|
50
|
+
* @see https://antoniandre.github.io/wave-ui/colors
|
|
51
|
+
*/
|
|
52
|
+
labelColor?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Removes the ripple animation on select.
|
|
55
|
+
* @property {boolean} noRipple
|
|
56
|
+
* @see https://antoniandre.github.io/wave-ui/w-radio
|
|
57
|
+
*/
|
|
58
|
+
noRipple?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* TODO: Add Description
|
|
61
|
+
* @property {boolean} dark
|
|
62
|
+
* @see https://antoniandre.github.io/wave-ui/w-radio
|
|
63
|
+
*/
|
|
64
|
+
dark?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* TODO: Add Description
|
|
67
|
+
* @property {boolean} light
|
|
68
|
+
* @see https://antoniandre.github.io/wave-ui/w-radio
|
|
69
|
+
*/
|
|
70
|
+
light?: boolean;
|
|
71
|
+
}
|
|
72
|
+
export interface WaveRadioEmits {
|
|
73
|
+
/**
|
|
74
|
+
* TODO: Add Description
|
|
75
|
+
* @see https://antoniandre.github.io/wave-ui/w-radio
|
|
76
|
+
*/
|
|
77
|
+
'onInput'?: () => void;
|
|
78
|
+
/**
|
|
79
|
+
* TODO: Add Description
|
|
80
|
+
* @see https://antoniandre.github.io/wave-ui/w-radio
|
|
81
|
+
*/
|
|
82
|
+
'onUpdate:modelValue'?: () => void;
|
|
83
|
+
/**
|
|
84
|
+
* TODO: Add Description
|
|
85
|
+
* @see https://antoniandre.github.io/wave-ui/w-radio
|
|
86
|
+
*/
|
|
87
|
+
'onFocus'?: () => void;
|
|
88
|
+
}
|
|
89
|
+
export interface WaveRadioComputeds extends ComputedOptions {
|
|
90
|
+
/**
|
|
91
|
+
* TODO: Add Description
|
|
92
|
+
* @see https://antoniandre.github.io/wave-ui/w-radio
|
|
93
|
+
*/
|
|
94
|
+
hasLabel: ComputedGetter<any>;
|
|
95
|
+
/**
|
|
96
|
+
* TODO: Add Description
|
|
97
|
+
* @see https://antoniandre.github.io/wave-ui/w-radio
|
|
98
|
+
*/
|
|
99
|
+
classes: ComputedGetter<any>;
|
|
100
|
+
}
|
|
101
|
+
export interface WaveRadioMethods extends MethodOptions {
|
|
102
|
+
/**
|
|
103
|
+
* TODO: Add Description
|
|
104
|
+
* @see https://antoniandre.github.io/wave-ui/w-radio
|
|
105
|
+
*/
|
|
106
|
+
toggleFromOutside(): void;
|
|
107
|
+
/**
|
|
108
|
+
* TODO: Add Description
|
|
109
|
+
* @param {any} e
|
|
110
|
+
* @see https://antoniandre.github.io/wave-ui/w-radio
|
|
111
|
+
*/
|
|
112
|
+
onInput(e: any): void;
|
|
113
|
+
}
|
|
114
|
+
export type WaveRadioSlots = SlotsType<{
|
|
115
|
+
/**
|
|
116
|
+
* The radio button label content.
|
|
117
|
+
* @see https://antoniandre.github.io/wave-ui/w-radio
|
|
118
|
+
*/
|
|
119
|
+
'default': () => any;
|
|
120
|
+
}>;
|
|
121
|
+
export type WRadio = DefineComponent<WaveRadioProps, {}, {}, WaveRadioComputeds, WaveRadioMethods, {}, {}, WaveRadioEmits & EmitsOptions, string, PublicProps, ResolveProps<WaveRadioProps & WaveRadioEmits, EmitsOptions>, ExtractDefaultPropTypes<WaveRadioProps>, WaveRadioSlots>;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { ComputedGetter, ComputedOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, SlotsType } from 'vue';
|
|
2
|
+
import { PublicProps, ResolveProps } from '../extra-vue-types';
|
|
3
|
+
export interface WaveRadiosProps {
|
|
4
|
+
/**
|
|
5
|
+
* An array of radio button items to display. Each item object should contain at least a `label` or a `value` attribute.
|
|
6
|
+
* @property {Array<any>} [items]
|
|
7
|
+
* @see https://antoniandre.github.io/wave-ui/w-radios
|
|
8
|
+
*/
|
|
9
|
+
items: Array<any>;
|
|
10
|
+
/**
|
|
11
|
+
* ``value` in Vue 2.`
|
|
12
|
+
* Provide a value (of one of the `items` objects) to dictate the selected choice.
|
|
13
|
+
* This value gets updated when using a v-model.
|
|
14
|
+
* @property {string|number|boolean} modelValue
|
|
15
|
+
* @see https://antoniandre.github.io/wave-ui/w-radios
|
|
16
|
+
*/
|
|
17
|
+
modelValue?: string | number | boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Moves the label to the left of each radio button. By default the label is displayed on the right.
|
|
20
|
+
* @property {boolean} labelOnLeft
|
|
21
|
+
* @see https://antoniandre.github.io/wave-ui/w-radios
|
|
22
|
+
*/
|
|
23
|
+
labelOnLeft?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The property name (aka "key") in each item object where to find the label of the item (if any).
|
|
26
|
+
* @property {string} itemLabelKey - Default: 'label'
|
|
27
|
+
* @see https://antoniandre.github.io/wave-ui/w-radios
|
|
28
|
+
*/
|
|
29
|
+
itemLabelKey?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The property name (aka "key") in each item object where to find the value of the item (if any).
|
|
32
|
+
* @property {string} itemValueKey - Default: 'value'
|
|
33
|
+
* @see https://antoniandre.github.io/wave-ui/w-radios
|
|
34
|
+
*/
|
|
35
|
+
itemValueKey?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The property name (aka "key") in each item object where to find the color of the item (if any).
|
|
38
|
+
* @property {string} itemColorKey - Default: 'color'
|
|
39
|
+
* @see https://antoniandre.github.io/wave-ui/w-radios
|
|
40
|
+
*/
|
|
41
|
+
itemColorKey?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Displays all the radio buttons inline instead of in column.
|
|
44
|
+
* @property {boolean} inline
|
|
45
|
+
* @see https://antoniandre.github.io/wave-ui/w-radios
|
|
46
|
+
*/
|
|
47
|
+
inline?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Applies a color to the active radio buttons. Accepts all the color names of the color palette, status colors, or custom colors (learn more about the colors in the `colors` knowledge base page).
|
|
50
|
+
* Providing a color hex, rgb(a) or hsl(a) will not work.
|
|
51
|
+
* @property {string} color - Default: 'primary'
|
|
52
|
+
* @see https://antoniandre.github.io/wave-ui/w-radios
|
|
53
|
+
* @see https://antoniandre.github.io/wave-ui/colors
|
|
54
|
+
*/
|
|
55
|
+
color?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Applies a specific color to the radio buttons' labels. Note that on validation failure, the validation-color takes precedence.
|
|
58
|
+
* Accepts all the color names of the color palette, status colors, or custom colors (learn more about the colors in the `colors` knowledge base page).
|
|
59
|
+
* Providing a color hex, rgb(a) or hsl(a) will not work.
|
|
60
|
+
* @property {string} labelColor - Default: 'primary'
|
|
61
|
+
* @see https://antoniandre.github.io/wave-ui/w-radios
|
|
62
|
+
* @see https://antoniandre.github.io/wave-ui/colors
|
|
63
|
+
*/
|
|
64
|
+
labelColor?: string;
|
|
65
|
+
}
|
|
66
|
+
export interface WaveRadiosEmits {
|
|
67
|
+
/**
|
|
68
|
+
* TODO: Add Description
|
|
69
|
+
* @see https://antoniandre.github.io/wave-ui/w-radios
|
|
70
|
+
*/
|
|
71
|
+
'onInput'?: () => void;
|
|
72
|
+
/**
|
|
73
|
+
* TODO: Add Description
|
|
74
|
+
* @see https://antoniandre.github.io/wave-ui/w-radios
|
|
75
|
+
*/
|
|
76
|
+
'onUpdate:modelValue'?: () => void;
|
|
77
|
+
/**
|
|
78
|
+
* TODO: Add Description
|
|
79
|
+
* @see https://antoniandre.github.io/wave-ui/w-radios
|
|
80
|
+
*/
|
|
81
|
+
'onFocus'?: () => void;
|
|
82
|
+
}
|
|
83
|
+
export interface WaveRadiosComputeds extends ComputedOptions {
|
|
84
|
+
/**
|
|
85
|
+
* TODO: Add Description
|
|
86
|
+
* @see https://antoniandre.github.io/wave-ui/w-radios
|
|
87
|
+
*/
|
|
88
|
+
radioItems: ComputedGetter<any>;
|
|
89
|
+
/**
|
|
90
|
+
* TODO: Add Description
|
|
91
|
+
* @see https://antoniandre.github.io/wave-ui/w-radios
|
|
92
|
+
*/
|
|
93
|
+
classes: ComputedGetter<any>;
|
|
94
|
+
}
|
|
95
|
+
export interface WaveRadiosMethods extends MethodOptions {
|
|
96
|
+
/**
|
|
97
|
+
* TODO: Add Description
|
|
98
|
+
* @param {any} item
|
|
99
|
+
* @see https://antoniandre.github.io/wave-ui/w-radios
|
|
100
|
+
*/
|
|
101
|
+
onInput(item: any): void;
|
|
102
|
+
/**
|
|
103
|
+
* TODO: Add Description
|
|
104
|
+
* @param {any} item
|
|
105
|
+
* @see https://antoniandre.github.io/wave-ui/w-radios
|
|
106
|
+
*/
|
|
107
|
+
getOriginalItem(item: any): void;
|
|
108
|
+
}
|
|
109
|
+
export type WaveRadiosSlots = SlotsType<{
|
|
110
|
+
/**
|
|
111
|
+
* TODO: Add Description
|
|
112
|
+
* @param {any} item TODO: Describe me!
|
|
113
|
+
* @param {any} index TODO: Describe me!
|
|
114
|
+
* @param {any} checked TODO: Describe me!
|
|
115
|
+
* @see https://antoniandre.github.io/wave-ui/w-radios
|
|
116
|
+
*/
|
|
117
|
+
'item.x': (_: {
|
|
118
|
+
item: any;
|
|
119
|
+
index: any;
|
|
120
|
+
checked: any;
|
|
121
|
+
}) => any;
|
|
122
|
+
} & {
|
|
123
|
+
[k in `item'${number}`]: (_: {
|
|
124
|
+
item: any;
|
|
125
|
+
index: any;
|
|
126
|
+
checked: any;
|
|
127
|
+
}) => any;
|
|
128
|
+
}>;
|
|
129
|
+
export type WRadios = DefineComponent<WaveRadiosProps, {}, {}, WaveRadiosComputeds, WaveRadiosMethods, {}, {}, WaveRadiosEmits & EmitsOptions, string, PublicProps, ResolveProps<WaveRadiosProps & WaveRadiosEmits, EmitsOptions>, ExtractDefaultPropTypes<WaveRadiosProps>, WaveRadiosSlots>;
|