wave-ui 3.10.1 → 3.12.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 +221 -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 +352 -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 +416 -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 +504 -0
- package/dist/types/components/WTable.js +2 -0
- package/dist/types/components/WTabs.d.ts +343 -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 +257 -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/dist/wave-ui.cjs.js +1 -1
- package/dist/wave-ui.css +1 -1
- package/dist/wave-ui.es.js +359 -333
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +8 -2
- package/src/wave-ui/components/w-autocomplete.vue +1 -8
- package/src/wave-ui/components/w-input.vue +1 -0
- package/src/wave-ui/components/w-parallax.vue +0 -1
- package/src/wave-ui/components/w-select.vue +10 -8
- package/src/wave-ui/components/w-switch.vue +1 -1
- package/src/wave-ui/components/w-table.vue +18 -1
- package/src/wave-ui/components/w-textarea.vue +12 -10
- package/src/wave-ui/index.d.ts +21 -0
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
import { ComputedGetter, ComputedOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, SlotsType } from 'vue';
|
|
2
|
+
import { PublicProps, ResolveProps } from '../extra-vue-types';
|
|
3
|
+
export interface WaveMenuProps {
|
|
4
|
+
/**
|
|
5
|
+
* ``value` in Vue 2.`
|
|
6
|
+
* This prop controls the visibility of the menu. Any truthy value will show the menu whereas any falsy value will hide it.
|
|
7
|
+
* @property {any} modelValue
|
|
8
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
9
|
+
*/
|
|
10
|
+
modelValue?: any;
|
|
11
|
+
/**
|
|
12
|
+
* Triggers the menu apparition on activator hover instead of click by default. A mouseleave on the activator will hide the menu.
|
|
13
|
+
* @property {boolean} showOnHover
|
|
14
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
15
|
+
*/
|
|
16
|
+
showOnHover?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Hides the menu when a click is made inside the menu. For instance when selecting a list item inside a menu.
|
|
19
|
+
* @property {boolean} hideOnMenuClick
|
|
20
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
21
|
+
*/
|
|
22
|
+
hideOnMenuClick?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Applies a color to the menu'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).
|
|
25
|
+
* Providing a color hex, rgb(a) or hsl(a) will not work.
|
|
26
|
+
* @property {string} color
|
|
27
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
28
|
+
* @see https://antoniandre.github.io/wave-ui/colors
|
|
29
|
+
*/
|
|
30
|
+
color?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Applies a color to the menu'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).
|
|
33
|
+
* Providing a color hex, rgb(a) or hsl(a) will not work.
|
|
34
|
+
* @property {string} bgColor
|
|
35
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
36
|
+
* @see https://antoniandre.github.io/wave-ui/colors
|
|
37
|
+
*/
|
|
38
|
+
bgColor?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Applies a drop shadow to the menu element.
|
|
41
|
+
* @property {boolean} shadow
|
|
42
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
43
|
+
*/
|
|
44
|
+
shadow?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* By default, the menu layout is a `w-card`. To have more flexibility, you can set this option to `true`.
|
|
47
|
+
* @property {boolean} custom
|
|
48
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
49
|
+
*/
|
|
50
|
+
custom?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Removes the default border-radius and sets sharp edges on the menu.
|
|
53
|
+
* @property {boolean} tile
|
|
54
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
55
|
+
*/
|
|
56
|
+
tile?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Sets a maximum border-radius on the corners of the menu, giving it a round look.
|
|
59
|
+
* @property {boolean} round
|
|
60
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
61
|
+
*/
|
|
62
|
+
round?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Removes the default border from the menu element.
|
|
65
|
+
* @property {boolean} noBorder
|
|
66
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
67
|
+
*/
|
|
68
|
+
noBorder?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Applies a particular transition to the menu element when showing and hiding.
|
|
71
|
+
* Accepts all the transitions listed in the `transitions` knowledge base page. You can also disable the transition by setting this prop to an empty string.
|
|
72
|
+
* @property {string} transition
|
|
73
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
74
|
+
* @see https://antoniandre.github.io/wave-ui/transitions
|
|
75
|
+
*/
|
|
76
|
+
transition?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Provide custom CSS classes for the menu element.
|
|
79
|
+
* @property {string|{}|Array<any>} menuClass
|
|
80
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
81
|
+
*/
|
|
82
|
+
menuClass?: string | {} | Array<any>;
|
|
83
|
+
/**
|
|
84
|
+
* Provide custom CSS classes for the menu's title when using the default card layout (when not using the `custom` prop).
|
|
85
|
+
* @property {string|{}|Array<any>} titleClass
|
|
86
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
87
|
+
*/
|
|
88
|
+
titleClass?: string | {} | Array<any>;
|
|
89
|
+
/**
|
|
90
|
+
* Provide custom CSS classes for the menu's content when using the default card layout (when not using the `custom` prop).
|
|
91
|
+
* @property {string|{}|Array<any>} contentClass
|
|
92
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
93
|
+
*/
|
|
94
|
+
contentClass?: string | {} | Array<any>;
|
|
95
|
+
/**
|
|
96
|
+
* Adds a small triangle on the edge of the menu, pointing toward the activator.
|
|
97
|
+
* @property {boolean} arrow
|
|
98
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
99
|
+
*/
|
|
100
|
+
arrow?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Sets a min-width on the menu.
|
|
103
|
+
* 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.
|
|
104
|
+
* @property {number|string} minWidth
|
|
105
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
106
|
+
*/
|
|
107
|
+
minWidth?: number | string;
|
|
108
|
+
/**
|
|
109
|
+
* Displays a full screen overlay underneath the menu (uses the `w-overlay` component).
|
|
110
|
+
* @property {boolean} overlay
|
|
111
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
112
|
+
*/
|
|
113
|
+
overlay?: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Provide custom CSS classes for the `w-overlay` component.
|
|
116
|
+
* @property {string|{}|Array<any>} overlayClass
|
|
117
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
118
|
+
*/
|
|
119
|
+
overlayClass?: string | {} | Array<any>;
|
|
120
|
+
/**
|
|
121
|
+
* An object of props to pass down to the `w-overlay` component for more control.
|
|
122
|
+
* @property {{}} overlayProps
|
|
123
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
124
|
+
*/
|
|
125
|
+
overlayProps?: {};
|
|
126
|
+
/**
|
|
127
|
+
* When set to `true`, clicking outside of the menu will not close the menu.
|
|
128
|
+
* @property {boolean} persistent
|
|
129
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
130
|
+
*/
|
|
131
|
+
persistent?: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* A delay - in milliseconds - before opening the menu.
|
|
134
|
+
* A small delay may help the menu position computing if the menu content changes at the moment the activator is activated. For instance, when defining multiple activators opening the same menu with different content.
|
|
135
|
+
* @property {number} delay
|
|
136
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
137
|
+
*/
|
|
138
|
+
delay?: number;
|
|
139
|
+
/**
|
|
140
|
+
* TODO: Add Description
|
|
141
|
+
* @property {boolean} dark
|
|
142
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
143
|
+
*/
|
|
144
|
+
dark?: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* TODO: Add Description
|
|
147
|
+
* @property {boolean} light
|
|
148
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
149
|
+
*/
|
|
150
|
+
light?: boolean;
|
|
151
|
+
}
|
|
152
|
+
export interface WaveMenuEmits {
|
|
153
|
+
/**
|
|
154
|
+
* TODO: Add Description
|
|
155
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
156
|
+
*/
|
|
157
|
+
'onInput'?: () => void;
|
|
158
|
+
/**
|
|
159
|
+
* TODO: Add Description
|
|
160
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
161
|
+
*/
|
|
162
|
+
'onUpdate:modelValue'?: () => void;
|
|
163
|
+
/**
|
|
164
|
+
* TODO: Add Description
|
|
165
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
166
|
+
*/
|
|
167
|
+
'onOpen'?: () => void;
|
|
168
|
+
/**
|
|
169
|
+
* TODO: Add Description
|
|
170
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
171
|
+
*/
|
|
172
|
+
'onClose'?: () => void;
|
|
173
|
+
}
|
|
174
|
+
export interface WaveMenuComputeds extends ComputedOptions {
|
|
175
|
+
/**
|
|
176
|
+
* TODO: Add Description
|
|
177
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
178
|
+
*/
|
|
179
|
+
transitionName: ComputedGetter<any>;
|
|
180
|
+
/**
|
|
181
|
+
* TODO: Add Description
|
|
182
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
183
|
+
*/
|
|
184
|
+
menuMinWidth: ComputedGetter<any>;
|
|
185
|
+
/**
|
|
186
|
+
* TODO: Add Description
|
|
187
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
188
|
+
*/
|
|
189
|
+
menuClasses: ComputedGetter<any>;
|
|
190
|
+
/**
|
|
191
|
+
* TODO: Add Description
|
|
192
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
193
|
+
*/
|
|
194
|
+
titleClasses: ComputedGetter<any>;
|
|
195
|
+
/**
|
|
196
|
+
* TODO: Add Description
|
|
197
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
198
|
+
*/
|
|
199
|
+
contentClasses: ComputedGetter<any>;
|
|
200
|
+
/**
|
|
201
|
+
* TODO: Add Description
|
|
202
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
203
|
+
*/
|
|
204
|
+
overlayClasses: ComputedGetter<any>;
|
|
205
|
+
/**
|
|
206
|
+
* TODO: Add Description
|
|
207
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
208
|
+
*/
|
|
209
|
+
classes: ComputedGetter<any>;
|
|
210
|
+
/**
|
|
211
|
+
* TODO: Add Description
|
|
212
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
213
|
+
*/
|
|
214
|
+
styles: ComputedGetter<any>;
|
|
215
|
+
/**
|
|
216
|
+
* TODO: Add Description
|
|
217
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
218
|
+
*/
|
|
219
|
+
activatorEventHandlers: ComputedGetter<any>;
|
|
220
|
+
}
|
|
221
|
+
export interface WaveMenuMethods extends MethodOptions {
|
|
222
|
+
/**
|
|
223
|
+
* TODO: Add Description
|
|
224
|
+
* @param {any} e
|
|
225
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
226
|
+
*/
|
|
227
|
+
toggle(e: any): void;
|
|
228
|
+
}
|
|
229
|
+
export type WaveMenuSlots = SlotsType<{
|
|
230
|
+
/**
|
|
231
|
+
* `This slot is required and must have the `v-on="on"` directive set on it for the menu to toggle correctly.`
|
|
232
|
+
* The activator can be any visible DOM element or mounted component.
|
|
233
|
+
* @param {any} on TODO: Describe me!
|
|
234
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
235
|
+
*/
|
|
236
|
+
'activator': (_: {
|
|
237
|
+
on: any;
|
|
238
|
+
}) => any;
|
|
239
|
+
/**
|
|
240
|
+
* The menu content.
|
|
241
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
242
|
+
*/
|
|
243
|
+
'default': () => any;
|
|
244
|
+
/**
|
|
245
|
+
* By default (when `custom` is set to false), the menu uses a `w-card`. This slot allows a custom title for the `w-card`.
|
|
246
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
247
|
+
*/
|
|
248
|
+
'title': () => any;
|
|
249
|
+
}>;
|
|
250
|
+
export type WMenu = DefineComponent<WaveMenuProps, {}, {}, WaveMenuComputeds, WaveMenuMethods, {}, {}, WaveMenuEmits & EmitsOptions, string, PublicProps, ResolveProps<WaveMenuProps & WaveMenuEmits, EmitsOptions>, ExtractDefaultPropTypes<WaveMenuProps>, WaveMenuSlots>;
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
import { ComputedGetter, ComputedOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, SlotsType } from 'vue';
|
|
2
|
+
import { PublicProps, ResolveProps } from '../extra-vue-types';
|
|
3
|
+
export interface WaveNotificationProps {
|
|
4
|
+
/**
|
|
5
|
+
* ``value` in Vue 2.`
|
|
6
|
+
* This prop controls the visibility of the notification. Any truthy value will show the notification whereas any falsy value will hide it.
|
|
7
|
+
* @property {any} modelValue - Default: true
|
|
8
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
9
|
+
*/
|
|
10
|
+
modelValue?: any;
|
|
11
|
+
/**
|
|
12
|
+
* Applies a particular transition to the notification when showing and hiding.
|
|
13
|
+
* Check all the transitions that apply to the notification in the `Transitions` example.
|
|
14
|
+
* @property {string|boolean} transition - Default: ''
|
|
15
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
16
|
+
* @see https://antoniandre.github.io/wave-ui/#transitions
|
|
17
|
+
*/
|
|
18
|
+
transition?: string | boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Sets a timer to hide a visible notification after a certain amount of milliseconds. E.g. `2000` will hide the notification after 2 seconds. A value of `0` or empty string will keep the notification persistent (no timeout).
|
|
21
|
+
* @property {number|string} timeout - Default: 0
|
|
22
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
23
|
+
*/
|
|
24
|
+
timeout?: number | string;
|
|
25
|
+
/**
|
|
26
|
+
* Sets the CSS position of the notification to `absolute` (fixed by default).
|
|
27
|
+
* @property {boolean} absolute
|
|
28
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
29
|
+
*/
|
|
30
|
+
absolute?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Places the notification at the top of the screen or at the top of its container if the `absolute` prop is set to true.
|
|
33
|
+
* @property {boolean} top
|
|
34
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
35
|
+
*/
|
|
36
|
+
top?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Places the notification at the bottom of the screen or at the bottom of its container if the `absolute` prop is set to true.
|
|
39
|
+
* @property {boolean} bottom
|
|
40
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
41
|
+
*/
|
|
42
|
+
bottom?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Places the notification at the left of the screen or at the left of its container if the `absolute` prop is set to true.
|
|
45
|
+
* @property {boolean} left
|
|
46
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
47
|
+
*/
|
|
48
|
+
left?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Places the notification at the right of the screen or at the right of its container if the `absolute` prop is set to true.
|
|
51
|
+
* @property {boolean} right
|
|
52
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
53
|
+
*/
|
|
54
|
+
right?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Applies a z-index (positive or negative integer) to the notification.
|
|
57
|
+
* @property {number|string|boolean} zIndex
|
|
58
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
59
|
+
*/
|
|
60
|
+
zIndex?: number | string | boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Sets the type of the notification, applying the `success` class (green color) and adding a success icon on the left in the notification.
|
|
63
|
+
* @property {boolean} success
|
|
64
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
65
|
+
*/
|
|
66
|
+
success?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Sets the type of the notification, applying the `info` class (blue color) and adding an info icon on the left in the notification.
|
|
69
|
+
* @property {boolean} info
|
|
70
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
71
|
+
*/
|
|
72
|
+
info?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Sets the type of the notification, applying the `warning` class (orange color) and adding a warning icon on the left in the notification.
|
|
75
|
+
* @property {boolean} warning
|
|
76
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
77
|
+
*/
|
|
78
|
+
warning?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Sets the type of the notification, applying the `error` class (red color) and adding an error icon on the left in the notification.
|
|
81
|
+
* @property {boolean} error
|
|
82
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
83
|
+
*/
|
|
84
|
+
error?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Applies a color to the notification'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).
|
|
87
|
+
* Providing a color hex, rgb(a) or hsl(a) will not work.
|
|
88
|
+
* @property {string} color
|
|
89
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
90
|
+
* @see https://antoniandre.github.io/wave-ui/colors
|
|
91
|
+
*/
|
|
92
|
+
color?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Applies a color to the notification'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).
|
|
95
|
+
* Providing a color hex, rgb(a) or hsl(a) will not work.
|
|
96
|
+
* @property {string} bgColor
|
|
97
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
98
|
+
* @see https://antoniandre.github.io/wave-ui/colors
|
|
99
|
+
*/
|
|
100
|
+
bgColor?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Applies a drop shadow to the notification.
|
|
103
|
+
* @property {boolean} shadow
|
|
104
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
105
|
+
*/
|
|
106
|
+
shadow?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Removes the default border-radius and sets sharp edges on the notification.
|
|
109
|
+
* @property {boolean} tile
|
|
110
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
111
|
+
*/
|
|
112
|
+
tile?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Sets a maximum border-radius on the corners of the notification, giving it a round look.
|
|
115
|
+
* @property {boolean} round
|
|
116
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
117
|
+
*/
|
|
118
|
+
round?: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Emphasizes a "typed" notification (one of `success`, `info`, `warning`, `error`) by applying a white text color and a full opacity background of the chosen type color.
|
|
121
|
+
* @property {boolean} plain
|
|
122
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
123
|
+
*/
|
|
124
|
+
plain?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Removes the default border from the notification container.
|
|
127
|
+
* @property {boolean} noBorder
|
|
128
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
129
|
+
*/
|
|
130
|
+
noBorder?: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* Adds a left border on the notification. Only one side-border can be applied at the same time.
|
|
133
|
+
* @property {boolean} borderLeft
|
|
134
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
135
|
+
*/
|
|
136
|
+
borderLeft?: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* Adds a right border on the notification. Only one side-border can be applied at the same time.
|
|
139
|
+
* @property {boolean} borderRight
|
|
140
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
141
|
+
*/
|
|
142
|
+
borderRight?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* Adds a top border on the notification. Only one side-border can be applied at the same time.
|
|
145
|
+
* @property {boolean} borderTop
|
|
146
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
147
|
+
*/
|
|
148
|
+
borderTop?: boolean;
|
|
149
|
+
/**
|
|
150
|
+
* Adds a bottom border on the notification. Only one side-border can be applied at the same time.
|
|
151
|
+
* @property {boolean} borderBottom
|
|
152
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
153
|
+
*/
|
|
154
|
+
borderBottom?: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* The outline style applies the provided `color` (by default the color is inherited) to the text and border and no background color is set.
|
|
157
|
+
* @property {boolean} outline
|
|
158
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
159
|
+
*/
|
|
160
|
+
outline?: boolean;
|
|
161
|
+
/**
|
|
162
|
+
* Adds a close button (cross icon) on the right in the notification. Clicking on this button hides the notification.
|
|
163
|
+
* @property {boolean} dismiss
|
|
164
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
165
|
+
*/
|
|
166
|
+
dismiss?: boolean;
|
|
167
|
+
/**
|
|
168
|
+
* Sets the size of the notification.
|
|
169
|
+
* @property {boolean} xs
|
|
170
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
171
|
+
*/
|
|
172
|
+
xs?: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* Sets the size of the notification.
|
|
175
|
+
* @property {boolean} sm
|
|
176
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
177
|
+
*/
|
|
178
|
+
sm?: boolean;
|
|
179
|
+
/**
|
|
180
|
+
* Sets the size of the notification.
|
|
181
|
+
* @property {boolean} md
|
|
182
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
183
|
+
*/
|
|
184
|
+
md?: boolean;
|
|
185
|
+
/**
|
|
186
|
+
* Sets the size of the notification.
|
|
187
|
+
* @property {boolean} lg
|
|
188
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
189
|
+
*/
|
|
190
|
+
lg?: boolean;
|
|
191
|
+
/**
|
|
192
|
+
* Sets the size of the notification.
|
|
193
|
+
* @property {boolean} xl
|
|
194
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
195
|
+
*/
|
|
196
|
+
xl?: boolean;
|
|
197
|
+
/**
|
|
198
|
+
* TODO: Add Description
|
|
199
|
+
* @property {boolean} dark
|
|
200
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
201
|
+
*/
|
|
202
|
+
dark?: boolean;
|
|
203
|
+
/**
|
|
204
|
+
* TODO: Add Description
|
|
205
|
+
* @property {boolean} light
|
|
206
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
207
|
+
*/
|
|
208
|
+
light?: boolean;
|
|
209
|
+
}
|
|
210
|
+
export interface WaveNotificationEmits {
|
|
211
|
+
/**
|
|
212
|
+
* TODO: Add Description
|
|
213
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
214
|
+
*/
|
|
215
|
+
'onInput'?: () => void;
|
|
216
|
+
/**
|
|
217
|
+
* TODO: Add Description
|
|
218
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
219
|
+
*/
|
|
220
|
+
'onUpdate:modelValue'?: () => void;
|
|
221
|
+
/**
|
|
222
|
+
* TODO: Add Description
|
|
223
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
224
|
+
*/
|
|
225
|
+
'onClose'?: () => void;
|
|
226
|
+
}
|
|
227
|
+
export interface WaveNotificationComputeds extends ComputedOptions {
|
|
228
|
+
/**
|
|
229
|
+
* TODO: Add Description
|
|
230
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
231
|
+
*/
|
|
232
|
+
transitionName: ComputedGetter<any>;
|
|
233
|
+
/**
|
|
234
|
+
* TODO: Add Description
|
|
235
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
236
|
+
*/
|
|
237
|
+
position: ComputedGetter<any>;
|
|
238
|
+
/**
|
|
239
|
+
* TODO: Add Description
|
|
240
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
241
|
+
*/
|
|
242
|
+
hasType: ComputedGetter<any>;
|
|
243
|
+
/**
|
|
244
|
+
* TODO: Add Description
|
|
245
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
246
|
+
*/
|
|
247
|
+
alertProps: ComputedGetter<any>;
|
|
248
|
+
/**
|
|
249
|
+
* TODO: Add Description
|
|
250
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
251
|
+
*/
|
|
252
|
+
classes: ComputedGetter<any>;
|
|
253
|
+
/**
|
|
254
|
+
* TODO: Add Description
|
|
255
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
256
|
+
*/
|
|
257
|
+
alertClasses: ComputedGetter<any>;
|
|
258
|
+
/**
|
|
259
|
+
* TODO: Add Description
|
|
260
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
261
|
+
*/
|
|
262
|
+
styles: ComputedGetter<any>;
|
|
263
|
+
/**
|
|
264
|
+
* TODO: Add Description
|
|
265
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
266
|
+
*/
|
|
267
|
+
timeoutVal: ComputedGetter<any>;
|
|
268
|
+
}
|
|
269
|
+
export interface WaveNotificationMethods extends MethodOptions {
|
|
270
|
+
/**
|
|
271
|
+
* TODO: Add Description
|
|
272
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
273
|
+
*/
|
|
274
|
+
countdown(): void;
|
|
275
|
+
}
|
|
276
|
+
export type WaveNotificationSlots = SlotsType<{
|
|
277
|
+
/**
|
|
278
|
+
* The notification content.
|
|
279
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification
|
|
280
|
+
*/
|
|
281
|
+
'default': () => any;
|
|
282
|
+
}>;
|
|
283
|
+
export type WNotification = DefineComponent<WaveNotificationProps, {}, {}, WaveNotificationComputeds, WaveNotificationMethods, {}, {}, WaveNotificationEmits & EmitsOptions, string, PublicProps, ResolveProps<WaveNotificationProps & WaveNotificationEmits, EmitsOptions>, ExtractDefaultPropTypes<WaveNotificationProps>, WaveNotificationSlots>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ComputedGetter, ComputedOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, SlotsType } from 'vue';
|
|
2
|
+
import { PublicProps, ResolveProps } from '../extra-vue-types';
|
|
3
|
+
export interface WaveNotificationManagerProps {
|
|
4
|
+
}
|
|
5
|
+
export interface WaveNotificationManagerEmits {
|
|
6
|
+
}
|
|
7
|
+
export interface WaveNotificationManagerComputeds extends ComputedOptions {
|
|
8
|
+
/**
|
|
9
|
+
* TODO: Add Description
|
|
10
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification-manager
|
|
11
|
+
*/
|
|
12
|
+
conf: ComputedGetter<any>;
|
|
13
|
+
/**
|
|
14
|
+
* TODO: Add Description
|
|
15
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification-manager
|
|
16
|
+
*/
|
|
17
|
+
notifications: ComputedGetter<any>;
|
|
18
|
+
/**
|
|
19
|
+
* TODO: Add Description
|
|
20
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification-manager
|
|
21
|
+
*/
|
|
22
|
+
transition: ComputedGetter<any>;
|
|
23
|
+
}
|
|
24
|
+
export interface WaveNotificationManagerMethods extends MethodOptions {
|
|
25
|
+
/**
|
|
26
|
+
* TODO: Add Description
|
|
27
|
+
* @param {any} notif
|
|
28
|
+
* @see https://antoniandre.github.io/wave-ui/w-notification-manager
|
|
29
|
+
*/
|
|
30
|
+
notifProps(notif: any): void;
|
|
31
|
+
}
|
|
32
|
+
export type WaveNotificationManagerSlots = SlotsType<{}>;
|
|
33
|
+
export type WNotificationManager = DefineComponent<WaveNotificationManagerProps, {}, {}, WaveNotificationManagerComputeds, WaveNotificationManagerMethods, {}, {}, WaveNotificationManagerEmits & EmitsOptions, string, PublicProps, ResolveProps<WaveNotificationManagerProps & WaveNotificationManagerEmits, EmitsOptions>, ExtractDefaultPropTypes<WaveNotificationManagerProps>, WaveNotificationManagerSlots>;
|