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,226 @@
|
|
|
1
|
+
import { ComputedGetter, ComputedOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, SlotsType } from 'vue';
|
|
2
|
+
import { PublicProps, ResolveProps } from '../extra-vue-types';
|
|
3
|
+
export interface WaveAccordionProps {
|
|
4
|
+
/**
|
|
5
|
+
* `value` in Vue 2.
|
|
6
|
+
* Provide an array of booleans to dictate the state (expanded and collapsed) of all the accordion items. This value gets updated by the accordion when using a v-model.
|
|
7
|
+
* @property {Array<any>} modelValue
|
|
8
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
9
|
+
*/
|
|
10
|
+
modelValue?: Array<any>;
|
|
11
|
+
/**
|
|
12
|
+
* Applies a text color on each accordion item. 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).
|
|
13
|
+
* Providing a color hex, rgb(a) or hsl(a) will not work.
|
|
14
|
+
* @property {string} color
|
|
15
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
16
|
+
* @see https://antoniandre.github.io/wave-ui/colors
|
|
17
|
+
*/
|
|
18
|
+
color?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Applies a background color on each accordion item. 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).
|
|
21
|
+
* Providing a color hex, rgb(a) or hsl(a) will not work.
|
|
22
|
+
* @property {string} bgColor
|
|
23
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
24
|
+
* @see https://antoniandre.github.io/wave-ui/colors
|
|
25
|
+
*/
|
|
26
|
+
bgColor?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Expecting an array of objects. Each object being an accordion item, it should include a `title` and `content` attributes.
|
|
29
|
+
* Alternatively, you can provide an integer number (call it `x`), to loop through and create `x` items in the accordion. You can then use the individual slots `item-title.x` & `item-content.x` to define each item title and content.
|
|
30
|
+
* @property {Array<any>|number} [items]
|
|
31
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
32
|
+
*/
|
|
33
|
+
items: Array<any> | number;
|
|
34
|
+
/**
|
|
35
|
+
* Specifies the name of the attribute in each item object where to find the item's desired color string. This allows a different color for each accordion item.
|
|
36
|
+
* @property {string} itemColorKey - Default: 'color'
|
|
37
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
38
|
+
*/
|
|
39
|
+
itemColorKey?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Specifies the name of the attribute in each item object where to find the item's title string.
|
|
42
|
+
* @property {string} itemTitleKey - Default: 'title'
|
|
43
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
44
|
+
*/
|
|
45
|
+
itemTitleKey?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Specifies the name of the attribute in each item object where to find the item's content string.
|
|
48
|
+
* @property {string} itemContentKey - Default: 'content'
|
|
49
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
50
|
+
*/
|
|
51
|
+
itemContentKey?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Applies a custom CSS class (or space separated classes) on every item container (which includes both the title and the content of the item).
|
|
54
|
+
* @property {string} itemClass
|
|
55
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
56
|
+
*/
|
|
57
|
+
itemClass?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Applies a custom CSS class (or space separated classes) on every title container.
|
|
60
|
+
* @property {string} titleClass
|
|
61
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
62
|
+
*/
|
|
63
|
+
titleClass?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Applies a custom CSS class (or space separated classes) on every content container.
|
|
66
|
+
* @property {string} contentClass
|
|
67
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
68
|
+
*/
|
|
69
|
+
contentClass?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Specifies the name of the icon to display in the toggle button. If set to false or empty string, the button will be removed.
|
|
72
|
+
* @property {string|boolean} expandIcon - Default: 'wi-triangle-down'
|
|
73
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
74
|
+
*/
|
|
75
|
+
expandIcon?: string | boolean;
|
|
76
|
+
/**
|
|
77
|
+
* When set to true, the expand button will be placed at the right end of the item's title.
|
|
78
|
+
* @property {boolean} expandIconRight
|
|
79
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
80
|
+
*/
|
|
81
|
+
expandIconRight?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* With this option, the expand icon will initially point to the right, then point down on expand with a clockwise rotation of 90 degrees.
|
|
84
|
+
* @property {boolean} expandIconRotate90
|
|
85
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
86
|
+
*/
|
|
87
|
+
expandIconRotate90?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* TODO: Add Description
|
|
90
|
+
* @property {{}} expandIconProps - Default: () => ({})
|
|
91
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
92
|
+
*/
|
|
93
|
+
expandIconProps?: {};
|
|
94
|
+
/**
|
|
95
|
+
* TODO: Add Description
|
|
96
|
+
* @property {boolean} expandSingle
|
|
97
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
98
|
+
*/
|
|
99
|
+
expandSingle?: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* TODO: Add Description
|
|
102
|
+
* @property {string} collapseIcon
|
|
103
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
104
|
+
*/
|
|
105
|
+
collapseIcon?: string;
|
|
106
|
+
/**
|
|
107
|
+
* TODO: Add Description
|
|
108
|
+
* @property {boolean} shadow
|
|
109
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
110
|
+
*/
|
|
111
|
+
shadow?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* TODO: Add Description
|
|
114
|
+
* @property {number} duration - Default: 250
|
|
115
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
116
|
+
*/
|
|
117
|
+
duration?: number;
|
|
118
|
+
/**
|
|
119
|
+
* TODO: Add Description
|
|
120
|
+
* @property {boolean} dark
|
|
121
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
122
|
+
*/
|
|
123
|
+
dark?: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* TODO: Add Description
|
|
126
|
+
* @property {boolean} light
|
|
127
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
128
|
+
*/
|
|
129
|
+
light?: boolean;
|
|
130
|
+
}
|
|
131
|
+
export interface WaveAccordionEmits {
|
|
132
|
+
/**
|
|
133
|
+
* Emitted each time the state of the accordion changes (when an item is expanded or collapsed).<br>Updates the v-model value in Vue 2.x only.
|
|
134
|
+
* @param {any} renameMe1 - An array of booleans representing the expanded state of each accordion item.
|
|
135
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
136
|
+
*/
|
|
137
|
+
'onInput'?: (renameMe1: any) => void;
|
|
138
|
+
/**
|
|
139
|
+
* Emitted each time the state of the accordion changes (when an item is expanded or collapsed).<br>Updates the v-model value in Vue 3 only.
|
|
140
|
+
* @param {any} renameMe1 - An array of booleans representing the expanded state of each accordion item.
|
|
141
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
142
|
+
*/
|
|
143
|
+
'onUpdate:modelValue'?: (renameMe1: any) => void;
|
|
144
|
+
/**
|
|
145
|
+
* Emitted on each accordion item title focus.
|
|
146
|
+
* @param {any} renameMe1 - The focused accordion item object.
|
|
147
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
148
|
+
*/
|
|
149
|
+
'onFocus'?: (renameMe1: any) => void;
|
|
150
|
+
/**
|
|
151
|
+
* TODO: Add Description
|
|
152
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
153
|
+
*/
|
|
154
|
+
'onItemExpand'?: () => void;
|
|
155
|
+
/**
|
|
156
|
+
* TODO: Add Description
|
|
157
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
158
|
+
*/
|
|
159
|
+
'onItemCollapsed'?: () => void;
|
|
160
|
+
}
|
|
161
|
+
export interface WaveAccordionComputeds extends ComputedOptions {
|
|
162
|
+
/**
|
|
163
|
+
* TODO: Add Description
|
|
164
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
165
|
+
*/
|
|
166
|
+
accordionClasses: ComputedGetter<any>;
|
|
167
|
+
}
|
|
168
|
+
export interface WaveAccordionMethods extends MethodOptions {
|
|
169
|
+
/**
|
|
170
|
+
* TODO: Add Description
|
|
171
|
+
* @param {any} item
|
|
172
|
+
* @param {any} e
|
|
173
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
174
|
+
*/
|
|
175
|
+
toggleItem(item: any, e: any): void;
|
|
176
|
+
/**
|
|
177
|
+
* TODO: Add Description
|
|
178
|
+
* @param {any} item
|
|
179
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
180
|
+
*/
|
|
181
|
+
onEndOfCollapse(item: any): void;
|
|
182
|
+
/**
|
|
183
|
+
* TODO: Add Description
|
|
184
|
+
* @param {any} item
|
|
185
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
186
|
+
*/
|
|
187
|
+
getOriginalItem(item: any): void;
|
|
188
|
+
/**
|
|
189
|
+
* TODO: Add Description
|
|
190
|
+
* @param {any} item
|
|
191
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
192
|
+
*/
|
|
193
|
+
itemClasses(item: any): void;
|
|
194
|
+
/**
|
|
195
|
+
* TODO: Add Description
|
|
196
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
197
|
+
*/
|
|
198
|
+
updateItems(): void;
|
|
199
|
+
}
|
|
200
|
+
export type WaveAccordionSlots = SlotsType<{
|
|
201
|
+
/**
|
|
202
|
+
* Provide a custom title for every item. Applies to all the items, but can be overridden by the `item-title.x` slot.
|
|
203
|
+
* @param {any} item The current item object.
|
|
204
|
+
* @param {any} index The item index in the array of items. Starts at 1 to be consistent with the `item.x` slot.
|
|
205
|
+
* @param {any} expanded A boolean representing the expanded state of the accordion item.
|
|
206
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
207
|
+
*/
|
|
208
|
+
'item-title': (_: {
|
|
209
|
+
item: any;
|
|
210
|
+
index: any;
|
|
211
|
+
expanded: any;
|
|
212
|
+
}) => any;
|
|
213
|
+
/**
|
|
214
|
+
* Provide a custom content for every item. Applies to all the items, but can be overridden by the `item-content.x` slot.
|
|
215
|
+
* @param {any} item The current item object.
|
|
216
|
+
* @param {any} index The item index in the array of items. Starts at 1 to be consistent with the `item.x` slot.
|
|
217
|
+
* @param {any} expanded A boolean representing the expanded state of the accordion item.
|
|
218
|
+
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
219
|
+
*/
|
|
220
|
+
'item-content': (_: {
|
|
221
|
+
item: any;
|
|
222
|
+
index: any;
|
|
223
|
+
expanded: any;
|
|
224
|
+
}) => any;
|
|
225
|
+
}>;
|
|
226
|
+
export type WAccordion = DefineComponent<WaveAccordionProps, {}, {}, WaveAccordionComputeds, WaveAccordionMethods, {}, {}, WaveAccordionEmits & EmitsOptions, string, PublicProps, ResolveProps<WaveAccordionProps & WaveAccordionEmits, EmitsOptions>, ExtractDefaultPropTypes<WaveAccordionProps>, WaveAccordionSlots>;
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import { ComputedGetter, ComputedOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, SlotsType } from 'vue';
|
|
2
|
+
import { PublicProps, ResolveProps } from '../extra-vue-types';
|
|
3
|
+
export interface WaveAlertProps {
|
|
4
|
+
/**
|
|
5
|
+
* ``value` in Vue 2.`
|
|
6
|
+
* This prop controls the visibility of the alert. Any truthy value will show the alert whereas any falsy value will hide it.
|
|
7
|
+
* @property {any} modelValue - Default: true
|
|
8
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
9
|
+
*/
|
|
10
|
+
modelValue?: any;
|
|
11
|
+
/**
|
|
12
|
+
* Applies a color to the alert'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).
|
|
13
|
+
* Providing a color hex, rgb(a) or hsl(a) will not work.
|
|
14
|
+
* @property {string} color
|
|
15
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
16
|
+
* @see https://antoniandre.github.io/wave-ui/colors
|
|
17
|
+
*/
|
|
18
|
+
color?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Applies a color to the alert'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).
|
|
21
|
+
* Providing a color hex, rgb(a) or hsl(a) will not work.
|
|
22
|
+
* @property {string} bgColor
|
|
23
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
24
|
+
* @see https://antoniandre.github.io/wave-ui/colors
|
|
25
|
+
*/
|
|
26
|
+
bgColor?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Applies a drop shadow to the alert container.
|
|
29
|
+
* @property {boolean} shadow
|
|
30
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
31
|
+
*/
|
|
32
|
+
shadow?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Removes the default border-radius and sets sharp edges on the alert container.
|
|
35
|
+
* @property {boolean} tile
|
|
36
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
37
|
+
*/
|
|
38
|
+
tile?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Sets a maximum border-radius on the corners of the alert container, giving it a round look.
|
|
41
|
+
* @property {boolean} round
|
|
42
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
43
|
+
*/
|
|
44
|
+
round?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Provide a custom icon string (e.g. `mdi mdi-star`) to display on the left of the alert message.
|
|
47
|
+
* @property {string} icon
|
|
48
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
49
|
+
*/
|
|
50
|
+
icon?: string;
|
|
51
|
+
/**
|
|
52
|
+
* If an icon is provided, this option changes the style and displays the icon on the left border.
|
|
53
|
+
* @property {boolean} iconOutside
|
|
54
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
55
|
+
*/
|
|
56
|
+
iconOutside?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Emphasizes a "typed" alert (one of `success`, `info`, `warning`, `error`) by applying a white text color and a full opacity background of the chosen type color.
|
|
59
|
+
* @property {boolean} plain
|
|
60
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
61
|
+
*/
|
|
62
|
+
plain?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Adds a close button (cross icon) on the right in the alert. Clicking on this button hides the alert.
|
|
65
|
+
* @property {boolean} dismiss
|
|
66
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
67
|
+
*/
|
|
68
|
+
dismiss?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Sets the type of the alert, applying the `success` class (green color) and adding a success icon on the left in the alert.
|
|
71
|
+
* @property {boolean} success
|
|
72
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
73
|
+
*/
|
|
74
|
+
success?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Sets the type of the alert, applying the `info` class (blue color) and adding an info icon on the left in the alert.
|
|
77
|
+
* @property {boolean} info
|
|
78
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
79
|
+
*/
|
|
80
|
+
info?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Sets the type of the alert, applying the `warning` class (orange color) and adding a warning icon on the left in the alert.
|
|
83
|
+
* @property {boolean} warning
|
|
84
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
85
|
+
*/
|
|
86
|
+
warning?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Sets the type of the alert, applying the `error` class (red color) and adding an error icon on the left in the alert.
|
|
89
|
+
* @property {boolean} error
|
|
90
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
91
|
+
*/
|
|
92
|
+
error?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Sets the size of the alert.
|
|
95
|
+
* @property {boolean} xs
|
|
96
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
97
|
+
*/
|
|
98
|
+
xs?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Sets the size of the alert.
|
|
101
|
+
* @property {boolean} sm
|
|
102
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
103
|
+
*/
|
|
104
|
+
sm?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Sets the size of the alert.
|
|
107
|
+
* @property {boolean} md
|
|
108
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
109
|
+
*/
|
|
110
|
+
md?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Sets the size of the alert.
|
|
113
|
+
* @property {boolean} lg
|
|
114
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
115
|
+
*/
|
|
116
|
+
lg?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Sets the size of the alert.
|
|
119
|
+
* @property {boolean} xl
|
|
120
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
121
|
+
*/
|
|
122
|
+
xl?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* Removes the default border from the alert container.
|
|
125
|
+
* @property {boolean} noBorder
|
|
126
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
127
|
+
*/
|
|
128
|
+
noBorder?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Adds a left border on the alert. Only one side-border can be applied at the same time.
|
|
131
|
+
* @property {boolean} borderLeft
|
|
132
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
133
|
+
*/
|
|
134
|
+
borderLeft?: boolean;
|
|
135
|
+
/**
|
|
136
|
+
* Adds a right border on the alert. Only one side-border can be applied at the same time.
|
|
137
|
+
* @property {boolean} borderRight
|
|
138
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
139
|
+
*/
|
|
140
|
+
borderRight?: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* Adds a top border on the alert. Only one side-border can be applied at the same time.
|
|
143
|
+
* @property {boolean} borderTop
|
|
144
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
145
|
+
*/
|
|
146
|
+
borderTop?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Adds a bottom border on the alert. Only one side-border can be applied at the same time.
|
|
149
|
+
* @property {boolean} borderBottom
|
|
150
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
151
|
+
*/
|
|
152
|
+
borderBottom?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* The outline style applies the provided `color` (by default the color is inherited) to the text and border and no background color is set.
|
|
155
|
+
* @property {boolean} outline
|
|
156
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
157
|
+
*/
|
|
158
|
+
outline?: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* TODO: Add Description
|
|
161
|
+
* @property {boolean} dark
|
|
162
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
163
|
+
*/
|
|
164
|
+
dark?: boolean;
|
|
165
|
+
/**
|
|
166
|
+
* TODO: Add Description
|
|
167
|
+
* @property {boolean} light
|
|
168
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
169
|
+
*/
|
|
170
|
+
light?: boolean;
|
|
171
|
+
}
|
|
172
|
+
export interface WaveAlertEmits {
|
|
173
|
+
/**
|
|
174
|
+
* TODO: Add Description
|
|
175
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
176
|
+
*/
|
|
177
|
+
'onInput'?: () => void;
|
|
178
|
+
/**
|
|
179
|
+
* TODO: Add Description
|
|
180
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
181
|
+
*/
|
|
182
|
+
'onUpdate:modelValue'?: () => void;
|
|
183
|
+
/**
|
|
184
|
+
* TODO: Add Description
|
|
185
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
186
|
+
*/
|
|
187
|
+
'onClose'?: () => void;
|
|
188
|
+
}
|
|
189
|
+
export interface WaveAlertComputeds extends ComputedOptions {
|
|
190
|
+
/**
|
|
191
|
+
* TODO: Add Description
|
|
192
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
193
|
+
*/
|
|
194
|
+
typeIcon: ComputedGetter<any>;
|
|
195
|
+
/**
|
|
196
|
+
* TODO: Add Description
|
|
197
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
198
|
+
*/
|
|
199
|
+
type: ComputedGetter<any>;
|
|
200
|
+
/**
|
|
201
|
+
* TODO: Add Description
|
|
202
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
203
|
+
*/
|
|
204
|
+
presetSize: ComputedGetter<any>;
|
|
205
|
+
/**
|
|
206
|
+
* TODO: Add Description
|
|
207
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
208
|
+
*/
|
|
209
|
+
hasSingleBorder: ComputedGetter<any>;
|
|
210
|
+
/**
|
|
211
|
+
* TODO: Add Description
|
|
212
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
213
|
+
*/
|
|
214
|
+
classes: ComputedGetter<any>;
|
|
215
|
+
}
|
|
216
|
+
export interface WaveAlertMethods extends MethodOptions {
|
|
217
|
+
}
|
|
218
|
+
export type WaveAlertSlots = SlotsType<{
|
|
219
|
+
/**
|
|
220
|
+
* TODO: Add Description
|
|
221
|
+
* @see https://antoniandre.github.io/wave-ui/w-alert
|
|
222
|
+
*/
|
|
223
|
+
'default': () => any;
|
|
224
|
+
}>;
|
|
225
|
+
export type WAlert = DefineComponent<WaveAlertProps, {}, {}, WaveAlertComputeds, WaveAlertMethods, {}, {}, WaveAlertEmits & EmitsOptions, string, PublicProps, ResolveProps<WaveAlertProps & WaveAlertEmits, EmitsOptions>, ExtractDefaultPropTypes<WaveAlertProps>, WaveAlertSlots>;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { ComputedOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, SlotsType } from 'vue';
|
|
2
|
+
import { PublicProps, ResolveProps } from '../extra-vue-types';
|
|
3
|
+
export interface WaveAppProps {
|
|
4
|
+
/**
|
|
5
|
+
* Sets the layout to `display: block`. By default the layout is: `display: flex`, `flex-direction: column`.
|
|
6
|
+
* @property {boolean} block
|
|
7
|
+
* @see https://antoniandre.github.io/wave-ui/w-app
|
|
8
|
+
*/
|
|
9
|
+
block?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Sets the layout to display in a row when using the default flex layout (column by default).
|
|
12
|
+
* @property {boolean} row
|
|
13
|
+
* @see https://antoniandre.github.io/wave-ui/w-app
|
|
14
|
+
*/
|
|
15
|
+
row?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Applies the CSS property: `align-items: center;`.
|
|
18
|
+
* @property {boolean} alignCenter
|
|
19
|
+
* @see https://antoniandre.github.io/wave-ui/w-app
|
|
20
|
+
*/
|
|
21
|
+
alignCenter?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Applies the CSS property: `align-items: flex-end;`.
|
|
24
|
+
* @property {boolean} alignEnd
|
|
25
|
+
* @see https://antoniandre.github.io/wave-ui/w-app
|
|
26
|
+
*/
|
|
27
|
+
alignEnd?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Applies the CSS property: `justify-content: center;`.
|
|
30
|
+
* @property {boolean} justifyCenter
|
|
31
|
+
* @see https://antoniandre.github.io/wave-ui/w-app
|
|
32
|
+
*/
|
|
33
|
+
justifyCenter?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Applies the CSS property: `justify-content: end;`.
|
|
36
|
+
* @property {boolean} justifyEnd
|
|
37
|
+
* @see https://antoniandre.github.io/wave-ui/w-app
|
|
38
|
+
*/
|
|
39
|
+
justifyEnd?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Applies the CSS property: `justify-content: space-between;`.
|
|
42
|
+
* @property {boolean} justifySpaceBetween
|
|
43
|
+
* @see https://antoniandre.github.io/wave-ui/w-app
|
|
44
|
+
*/
|
|
45
|
+
justifySpaceBetween?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Applies the CSS property: `justify-content: space-around;`.
|
|
48
|
+
* @property {boolean} justifySpaceAround
|
|
49
|
+
* @see https://antoniandre.github.io/wave-ui/w-app
|
|
50
|
+
*/
|
|
51
|
+
justifySpaceAround?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Applies the CSS property: `justify-content: space-evenly;`.
|
|
54
|
+
* @property {boolean} justifySpaceEvenly
|
|
55
|
+
* @see https://antoniandre.github.io/wave-ui/w-app
|
|
56
|
+
*/
|
|
57
|
+
justifySpaceEvenly?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Applies the CSS property: `text-align: center;`.
|
|
60
|
+
* @property {boolean} textCenter
|
|
61
|
+
* @see https://antoniandre.github.io/wave-ui/w-app
|
|
62
|
+
*/
|
|
63
|
+
textCenter?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Applies the CSS property: `text-align: right;`.
|
|
66
|
+
* @property {boolean} textRight
|
|
67
|
+
* @see https://antoniandre.github.io/wave-ui/w-app
|
|
68
|
+
*/
|
|
69
|
+
textRight?: boolean;
|
|
70
|
+
}
|
|
71
|
+
export interface WaveAppEmits {
|
|
72
|
+
}
|
|
73
|
+
export interface WaveAppComputeds extends ComputedOptions {
|
|
74
|
+
}
|
|
75
|
+
export interface WaveAppMethods extends MethodOptions {
|
|
76
|
+
}
|
|
77
|
+
export type WaveAppSlots = SlotsType<{
|
|
78
|
+
/**
|
|
79
|
+
* The content of the app.
|
|
80
|
+
* @see https://antoniandre.github.io/wave-ui/w-app
|
|
81
|
+
*/
|
|
82
|
+
'default': () => any;
|
|
83
|
+
}>;
|
|
84
|
+
export type WApp = DefineComponent<WaveAppProps, {}, {}, WaveAppComputeds, WaveAppMethods, {}, {}, WaveAppEmits & EmitsOptions, string, PublicProps, ResolveProps<WaveAppProps & WaveAppEmits, EmitsOptions>, ExtractDefaultPropTypes<WaveAppProps>, WaveAppSlots>;
|