wave-ui 3.28.0 → 4.0.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/types/$waveui.d.ts +15 -1
- package/dist/types/types/colors.d.ts +2 -0
- package/dist/types/types/components/WAccordion.d.ts +92 -6
- package/dist/types/types/components/WAutocomplete.d.ts +437 -0
- package/dist/types/types/components/WCheckbox.d.ts +34 -0
- package/dist/types/types/components/WCheckboxes.d.ts +30 -0
- package/dist/types/types/components/WInput.d.ts +34 -0
- package/dist/types/types/components/WMenu.d.ts +12 -6
- package/dist/types/types/components/WRadio.d.ts +34 -0
- package/dist/types/types/components/WRadios.d.ts +30 -0
- package/dist/types/types/components/WSelect.d.ts +34 -0
- package/dist/types/types/components/WSwitch.d.ts +34 -0
- package/dist/types/types/components/WTable.d.ts +7 -0
- package/dist/types/types/components/WTooltip.d.ts +20 -7
- package/dist/types/types/components/WTransitions.d.ts +104 -0
- package/dist/types/types/components/WTransitions.js +2 -0
- package/dist/types/types/components/WTree.d.ts +7 -0
- package/dist/types/types/components/index.d.ts +2 -1
- package/dist/wave-ui.cjs.js +3 -3
- package/dist/wave-ui.css +1 -1
- package/dist/wave-ui.esm.js +1711 -1338
- package/dist/wave-ui.umd.js +3 -3
- package/package.json +1 -1
- package/src/wave-ui/components/index.js +0 -1
- package/src/wave-ui/components/transitions/w-transition-bounce.vue +2 -1
- package/src/wave-ui/components/transitions/w-transition-expand.vue +3 -2
- package/src/wave-ui/components/transitions/w-transition-fade.vue +2 -1
- package/src/wave-ui/components/transitions/w-transition-scale-fade.vue +2 -1
- package/src/wave-ui/components/transitions/w-transition-scale.vue +2 -1
- package/src/wave-ui/components/transitions/w-transition-slide-fade.vue +2 -1
- package/src/wave-ui/components/transitions/w-transition-slide.vue +2 -1
- package/src/wave-ui/components/transitions/w-transition-twist.vue +2 -1
- package/src/wave-ui/components/w-accordion/index.vue +10 -5
- package/src/wave-ui/components/w-accordion/item.vue +29 -14
- package/src/wave-ui/components/w-alert.vue +27 -29
- package/src/wave-ui/components/w-autocomplete.vue +626 -192
- package/src/wave-ui/components/w-badge.vue +54 -53
- package/src/wave-ui/components/w-breadcrumbs.vue +7 -9
- package/src/wave-ui/components/w-button/button.vue +21 -23
- package/src/wave-ui/components/w-button/index.vue +4 -4
- package/src/wave-ui/components/w-card.vue +8 -7
- package/src/wave-ui/components/w-checkbox.vue +31 -11
- package/src/wave-ui/components/w-checkboxes.vue +21 -3
- package/src/wave-ui/components/w-confirm.vue +22 -22
- package/src/wave-ui/components/w-dialog.vue +1 -1
- package/src/wave-ui/components/w-divider.vue +5 -5
- package/src/wave-ui/components/w-drawer.vue +3 -3
- package/src/wave-ui/components/w-form-element.vue +2 -2
- package/src/wave-ui/components/w-icon.vue +12 -14
- package/src/wave-ui/components/w-image.vue +1 -1
- package/src/wave-ui/components/w-input.vue +43 -25
- package/src/wave-ui/components/w-list.vue +11 -12
- package/src/wave-ui/components/w-menu.vue +57 -55
- package/src/wave-ui/components/w-notification.vue +4 -4
- package/src/wave-ui/components/w-progress.vue +6 -7
- package/src/wave-ui/components/w-radio.vue +32 -7
- package/src/wave-ui/components/w-radios.vue +28 -3
- package/src/wave-ui/components/w-rating.vue +7 -9
- package/src/wave-ui/components/w-scrollable.vue +4 -4
- package/src/wave-ui/components/w-select.vue +119 -101
- package/src/wave-ui/components/w-slider.vue +26 -26
- package/src/wave-ui/components/w-spinner.vue +5 -7
- package/src/wave-ui/components/w-switch.vue +71 -47
- package/src/wave-ui/components/w-table.vue +69 -36
- package/src/wave-ui/components/w-tabs/index.vue +21 -24
- package/src/wave-ui/components/w-tag.vue +35 -38
- package/src/wave-ui/components/w-textarea.vue +22 -22
- package/src/wave-ui/components/w-timeline.vue +6 -6
- package/src/wave-ui/components/w-toolbar.vue +8 -8
- package/src/wave-ui/components/w-tooltip.vue +30 -25
- package/src/wave-ui/components/w-tree.vue +35 -16
- package/src/wave-ui/core.js +9 -1
- package/src/wave-ui/mixins/detachable.js +98 -43
- package/src/wave-ui/mixins/ripple.js +2 -2
- package/src/wave-ui/scss/_base.scss +82 -17
- package/src/wave-ui/scss/_colors.scss +6 -75
- package/src/wave-ui/scss/_layout.scss +39 -47
- package/src/wave-ui/scss/_ripple.scss +2 -2
- package/src/wave-ui/scss/_transitions.scss +19 -19
- package/src/wave-ui/scss/_typography.scss +8 -9
- package/src/wave-ui/scss/variables/_mixins.scss +24 -25
- package/src/wave-ui/scss/variables/_variables.scss +4 -149
- package/src/wave-ui/utils/colors.js +7 -4
- package/src/wave-ui/utils/config.js +3 -4
- package/src/wave-ui/utils/dynamic-css.js +42 -20
- package/src/wave-ui/utils/ripple.js +3 -2
- package/dist/types/types/components/WApp.d.ts +0 -83
- package/src/wave-ui/components/w-app.vue +0 -24
- /package/dist/types/types/components/{WApp.js → WAutocomplete.js} +0 -0
|
@@ -172,6 +172,40 @@ export interface WaveInputProps {
|
|
|
172
172
|
* @see https://antoniandre.github.io/wave-ui/w-input
|
|
173
173
|
*/
|
|
174
174
|
files?: Array<any>;
|
|
175
|
+
/**
|
|
176
|
+
* Sets the height of the input field to extra small (~20 px at 14 px base font size).
|
|
177
|
+
* Equivalent to setting the CSS variable `--w-size` to the corresponding value.
|
|
178
|
+
* @property {boolean} xs
|
|
179
|
+
* @see https://antoniandre.github.io/wave-ui/w-input
|
|
180
|
+
*/
|
|
181
|
+
xs?: boolean;
|
|
182
|
+
/**
|
|
183
|
+
* Sets the height of the input field to small (~24 px at 14 px base font size).
|
|
184
|
+
* Equivalent to setting the CSS variable `--w-size` to the corresponding value.
|
|
185
|
+
* @property {boolean} sm
|
|
186
|
+
* @see https://antoniandre.github.io/wave-ui/w-input
|
|
187
|
+
*/
|
|
188
|
+
sm?: boolean;
|
|
189
|
+
/**
|
|
190
|
+
* Sets the height of the input field to medium, which is the same as the default height (~28 px at 14 px base font size).
|
|
191
|
+
* @property {boolean} md
|
|
192
|
+
* @see https://antoniandre.github.io/wave-ui/w-input
|
|
193
|
+
*/
|
|
194
|
+
md?: boolean;
|
|
195
|
+
/**
|
|
196
|
+
* Sets the height of the input field to large (~32 px at 14 px base font size).
|
|
197
|
+
* Equivalent to setting the CSS variable `--w-size` to the corresponding value.
|
|
198
|
+
* @property {boolean} lg
|
|
199
|
+
* @see https://antoniandre.github.io/wave-ui/w-input
|
|
200
|
+
*/
|
|
201
|
+
lg?: boolean;
|
|
202
|
+
/**
|
|
203
|
+
* Sets the height of the input field to extra large (~38 px at 14 px base font size).
|
|
204
|
+
* Equivalent to setting the CSS variable `--w-size` to the corresponding value.
|
|
205
|
+
* @property {boolean} xl
|
|
206
|
+
* @see https://antoniandre.github.io/wave-ui/w-input
|
|
207
|
+
*/
|
|
208
|
+
xl?: boolean;
|
|
175
209
|
/**
|
|
176
210
|
* TODO: Add Description
|
|
177
211
|
* @property {boolean} dark
|
|
@@ -234,19 +234,25 @@ export interface WaveMenuMethods extends MethodOptions {
|
|
|
234
234
|
}
|
|
235
235
|
export type WaveMenuSlots = SlotsType<{
|
|
236
236
|
/**
|
|
237
|
-
*
|
|
237
|
+
* Place the element that triggers the menu inside this slot. Event listeners are attached
|
|
238
|
+
* automatically — no `v-on="on"` binding is required on the activator element.
|
|
238
239
|
* The activator can be any visible DOM element or mounted component.
|
|
239
|
-
*
|
|
240
|
+
* When this slot is used (legacy API), the default slot becomes the menu content.
|
|
240
241
|
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
241
242
|
*/
|
|
242
|
-
'activator': (
|
|
243
|
-
on: any;
|
|
244
|
-
}) => any;
|
|
243
|
+
'activator': () => any;
|
|
245
244
|
/**
|
|
246
|
-
*
|
|
245
|
+
* **New API:** When no `#activator` slot is used, the default slot is the activator element.
|
|
246
|
+
* **Legacy API:** When an `#activator` slot is provided, the default slot is the menu content.
|
|
247
247
|
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
248
248
|
*/
|
|
249
249
|
'default': () => any;
|
|
250
|
+
/**
|
|
251
|
+
* The menu body content. Used with the new API (default slot = activator).
|
|
252
|
+
* When `custom` is `false` (default), the content is placed inside a `w-card`.
|
|
253
|
+
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
254
|
+
*/
|
|
255
|
+
'content': () => any;
|
|
250
256
|
/**
|
|
251
257
|
* By default (when `custom` is set to false), the menu uses a `w-card`. This slot allows a custom title for the `w-card`.
|
|
252
258
|
* @see https://antoniandre.github.io/wave-ui/w-menu
|
|
@@ -56,6 +56,40 @@ export interface WaveRadioProps {
|
|
|
56
56
|
* @see https://antoniandre.github.io/wave-ui/w-radio
|
|
57
57
|
*/
|
|
58
58
|
noRipple?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Sets the radio button size to extra small (~12 px at 14 px base font size).
|
|
61
|
+
* Equivalent to setting the CSS variable `--w-size` to the corresponding value.
|
|
62
|
+
* @property {boolean} xs
|
|
63
|
+
* @see https://antoniandre.github.io/wave-ui/w-radio
|
|
64
|
+
*/
|
|
65
|
+
xs?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Sets the radio button size to small (~16 px at 14 px base font size).
|
|
68
|
+
* Equivalent to setting the CSS variable `--w-size` to the corresponding value.
|
|
69
|
+
* @property {boolean} sm
|
|
70
|
+
* @see https://antoniandre.github.io/wave-ui/w-radio
|
|
71
|
+
*/
|
|
72
|
+
sm?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Sets the radio button size to medium, which is the same as the default size (~18 px at 14 px base font size).
|
|
75
|
+
* @property {boolean} md
|
|
76
|
+
* @see https://antoniandre.github.io/wave-ui/w-radio
|
|
77
|
+
*/
|
|
78
|
+
md?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Sets the radio button size to large (~20 px at 14 px base font size).
|
|
81
|
+
* Equivalent to setting the CSS variable `--w-size` to the corresponding value.
|
|
82
|
+
* @property {boolean} lg
|
|
83
|
+
* @see https://antoniandre.github.io/wave-ui/w-radio
|
|
84
|
+
*/
|
|
85
|
+
lg?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Sets the radio button size to extra large (~24 px at 14 px base font size).
|
|
88
|
+
* Equivalent to setting the CSS variable `--w-size` to the corresponding value.
|
|
89
|
+
* @property {boolean} xl
|
|
90
|
+
* @see https://antoniandre.github.io/wave-ui/w-radio
|
|
91
|
+
*/
|
|
92
|
+
xl?: boolean;
|
|
59
93
|
/**
|
|
60
94
|
* TODO: Add Description
|
|
61
95
|
* @property {boolean} dark
|
|
@@ -62,6 +62,36 @@ export interface WaveRadiosProps {
|
|
|
62
62
|
* @see https://antoniandre.github.io/wave-ui/colors
|
|
63
63
|
*/
|
|
64
64
|
labelColor?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Sets all radio buttons to extra small (~12 px at 14 px base font size) via the cascading `--w-size` CSS variable.
|
|
67
|
+
* @property {boolean} xs
|
|
68
|
+
* @see https://antoniandre.github.io/wave-ui/w-radios
|
|
69
|
+
*/
|
|
70
|
+
xs?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Sets all radio buttons to small (~16 px at 14 px base font size) via the cascading `--w-size` CSS variable.
|
|
73
|
+
* @property {boolean} sm
|
|
74
|
+
* @see https://antoniandre.github.io/wave-ui/w-radios
|
|
75
|
+
*/
|
|
76
|
+
sm?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Sets all radio buttons to medium, which is the same as the default size (~18 px at 14 px base font size).
|
|
79
|
+
* @property {boolean} md
|
|
80
|
+
* @see https://antoniandre.github.io/wave-ui/w-radios
|
|
81
|
+
*/
|
|
82
|
+
md?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Sets all radio buttons to large (~20 px at 14 px base font size) via the cascading `--w-size` CSS variable.
|
|
85
|
+
* @property {boolean} lg
|
|
86
|
+
* @see https://antoniandre.github.io/wave-ui/w-radios
|
|
87
|
+
*/
|
|
88
|
+
lg?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Sets all radio buttons to extra large (~24 px at 14 px base font size) via the cascading `--w-size` CSS variable.
|
|
91
|
+
* @property {boolean} xl
|
|
92
|
+
* @see https://antoniandre.github.io/wave-ui/w-radios
|
|
93
|
+
*/
|
|
94
|
+
xl?: boolean;
|
|
65
95
|
}
|
|
66
96
|
export interface WaveRadiosEmits {
|
|
67
97
|
/**
|
|
@@ -211,6 +211,40 @@ export interface WaveSelectProps {
|
|
|
211
211
|
* @see https://antoniandre.github.io/wave-ui/w-select
|
|
212
212
|
*/
|
|
213
213
|
fitToContent?: boolean;
|
|
214
|
+
/**
|
|
215
|
+
* Sets the height of the select field to extra small (~20 px at 14 px base font size).
|
|
216
|
+
* Equivalent to setting the CSS variable `--w-size` to the corresponding value.
|
|
217
|
+
* @property {boolean} xs
|
|
218
|
+
* @see https://antoniandre.github.io/wave-ui/w-select
|
|
219
|
+
*/
|
|
220
|
+
xs?: boolean;
|
|
221
|
+
/**
|
|
222
|
+
* Sets the height of the select field to small (~24 px at 14 px base font size).
|
|
223
|
+
* Equivalent to setting the CSS variable `--w-size` to the corresponding value.
|
|
224
|
+
* @property {boolean} sm
|
|
225
|
+
* @see https://antoniandre.github.io/wave-ui/w-select
|
|
226
|
+
*/
|
|
227
|
+
sm?: boolean;
|
|
228
|
+
/**
|
|
229
|
+
* Sets the height of the select field to medium, which is the same as the default height (~28 px at 14 px base font size).
|
|
230
|
+
* @property {boolean} md
|
|
231
|
+
* @see https://antoniandre.github.io/wave-ui/w-select
|
|
232
|
+
*/
|
|
233
|
+
md?: boolean;
|
|
234
|
+
/**
|
|
235
|
+
* Sets the height of the select field to large (~32 px at 14 px base font size).
|
|
236
|
+
* Equivalent to setting the CSS variable `--w-size` to the corresponding value.
|
|
237
|
+
* @property {boolean} lg
|
|
238
|
+
* @see https://antoniandre.github.io/wave-ui/w-select
|
|
239
|
+
*/
|
|
240
|
+
lg?: boolean;
|
|
241
|
+
/**
|
|
242
|
+
* Sets the height of the select field to extra large (~38 px at 14 px base font size).
|
|
243
|
+
* Equivalent to setting the CSS variable `--w-size` to the corresponding value.
|
|
244
|
+
* @property {boolean} xl
|
|
245
|
+
* @see https://antoniandre.github.io/wave-ui/w-select
|
|
246
|
+
*/
|
|
247
|
+
xl?: boolean;
|
|
214
248
|
}
|
|
215
249
|
export interface WaveSelectEmits {
|
|
216
250
|
/**
|
|
@@ -55,6 +55,40 @@ export interface WaveSwitchProps {
|
|
|
55
55
|
* @see https://antoniandre.github.io/wave-ui/w-switch
|
|
56
56
|
*/
|
|
57
57
|
loading?: boolean | number;
|
|
58
|
+
/**
|
|
59
|
+
* Sets the switch size to extra small (~12 px thumb at 14 px base font size).
|
|
60
|
+
* Equivalent to setting the CSS variable `--w-size` to the corresponding value.
|
|
61
|
+
* @property {boolean} xs
|
|
62
|
+
* @see https://antoniandre.github.io/wave-ui/w-switch
|
|
63
|
+
*/
|
|
64
|
+
xs?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Sets the switch size to small (~16 px thumb at 14 px base font size).
|
|
67
|
+
* Equivalent to setting the CSS variable `--w-size` to the corresponding value.
|
|
68
|
+
* @property {boolean} sm
|
|
69
|
+
* @see https://antoniandre.github.io/wave-ui/w-switch
|
|
70
|
+
*/
|
|
71
|
+
sm?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Sets the switch size to medium, which is the same as the default size (~18 px thumb at 14 px base font size).
|
|
74
|
+
* @property {boolean} md
|
|
75
|
+
* @see https://antoniandre.github.io/wave-ui/w-switch
|
|
76
|
+
*/
|
|
77
|
+
md?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Sets the switch size to large (~20 px thumb at 14 px base font size).
|
|
80
|
+
* Equivalent to setting the CSS variable `--w-size` to the corresponding value.
|
|
81
|
+
* @property {boolean} lg
|
|
82
|
+
* @see https://antoniandre.github.io/wave-ui/w-switch
|
|
83
|
+
*/
|
|
84
|
+
lg?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Sets the switch size to extra large (~24 px thumb at 14 px base font size).
|
|
87
|
+
* Equivalent to setting the CSS variable `--w-size` to the corresponding value.
|
|
88
|
+
* @property {boolean} xl
|
|
89
|
+
* @see https://antoniandre.github.io/wave-ui/w-switch
|
|
90
|
+
*/
|
|
91
|
+
xl?: boolean;
|
|
58
92
|
/**
|
|
59
93
|
* TODO: Add Description
|
|
60
94
|
* @property {boolean} dark
|
|
@@ -169,6 +169,13 @@ export interface WaveTableProps {
|
|
|
169
169
|
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
170
170
|
*/
|
|
171
171
|
forceSelection?: boolean;
|
|
172
|
+
/**
|
|
173
|
+
* When `true`, disables the pointer ripple on sortable headers and interactive row cells for this table only.
|
|
174
|
+
* Global default still follows `$waveui.config.ripple`.
|
|
175
|
+
* @property {boolean} noRipple
|
|
176
|
+
* @see https://antoniandre.github.io/wave-ui/w-table
|
|
177
|
+
*/
|
|
178
|
+
noRipple?: boolean;
|
|
172
179
|
/**
|
|
173
180
|
* In order to keep the same row selected after sorting or filtering, each row is assigned a unique identifier.
|
|
174
181
|
* By default the expanded rows array will use an `id` key, if present in the item object, or will assign an
|
|
@@ -8,6 +8,12 @@ export interface WaveTooltipProps {
|
|
|
8
8
|
* @see https://antoniandre.github.io/wave-ui/w-tooltip
|
|
9
9
|
*/
|
|
10
10
|
modelValue?: any;
|
|
11
|
+
/**
|
|
12
|
+
* Simple string content for the tooltip. For rich/complex content, use the `#tooltip` slot instead.
|
|
13
|
+
* @property {string} tooltip
|
|
14
|
+
* @see https://antoniandre.github.io/wave-ui/w-tooltip
|
|
15
|
+
*/
|
|
16
|
+
tooltip?: string;
|
|
11
17
|
/**
|
|
12
18
|
* Triggers the tooltip apparition on activator click instead of hover by default. Another click on the activator will hide the tooltip.
|
|
13
19
|
* @property {boolean} showOnClick
|
|
@@ -159,18 +165,25 @@ export interface WaveTooltipMethods extends MethodOptions {
|
|
|
159
165
|
}
|
|
160
166
|
export type WaveTooltipSlots = SlotsType<{
|
|
161
167
|
/**
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
*
|
|
168
|
+
* The activator element — the element the tooltip appears around on hover/click.
|
|
169
|
+
* When using the new API (without `#activator`), pass the activator as the default slot
|
|
170
|
+
* and use the `tooltip` prop or `#tooltip` named slot for the tooltip content.
|
|
171
|
+
* When using the legacy API, pass the activator here and put the tooltip content in the
|
|
172
|
+
* default slot.
|
|
165
173
|
* @see https://antoniandre.github.io/wave-ui/w-tooltip
|
|
166
174
|
*/
|
|
167
|
-
'activator': (
|
|
168
|
-
on: any;
|
|
169
|
-
}) => any;
|
|
175
|
+
'activator': () => any;
|
|
170
176
|
/**
|
|
171
|
-
*
|
|
177
|
+
* **New API:** When no `#activator` slot is used, the default slot is the activator element.
|
|
178
|
+
* **Legacy API:** When an `#activator` slot is provided, the default slot is the tooltip content.
|
|
172
179
|
* @see https://antoniandre.github.io/wave-ui/w-tooltip
|
|
173
180
|
*/
|
|
174
181
|
'default': () => any;
|
|
182
|
+
/**
|
|
183
|
+
* Rich tooltip content. Use this slot instead of the `tooltip` prop when the content is
|
|
184
|
+
* complex (HTML, components, multi-line, etc.). Only used with the new API (default slot = activator).
|
|
185
|
+
* @see https://antoniandre.github.io/wave-ui/w-tooltip
|
|
186
|
+
*/
|
|
187
|
+
'tooltip': () => any;
|
|
175
188
|
}>;
|
|
176
189
|
export type WTooltip = DefineComponent<WaveTooltipProps, {}, {}, WaveTooltipComputeds, WaveTooltipMethods, {}, {}, WaveTooltipEmits & EmitsOptions, string, PublicProps, ResolveProps<WaveTooltipProps & WaveTooltipEmits, EmitsOptions>, ExtractDefaultPropTypes<WaveTooltipProps>, WaveTooltipSlots>;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import type { ComputedOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, SlotsType } from 'vue';
|
|
2
|
+
import type { PublicProps, ResolveProps } from '../extra-vue-types';
|
|
3
|
+
export interface WaveTransitionBaseProps {
|
|
4
|
+
/**
|
|
5
|
+
* Triggers the transition on the initial render of the element.
|
|
6
|
+
* @property {boolean} appear
|
|
7
|
+
* @see https://antoniandre.github.io/wave-ui/transitions
|
|
8
|
+
*/
|
|
9
|
+
appear?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Overrides the default CSS transition/animation duration (in milliseconds or as a CSS value string).
|
|
12
|
+
* @property {number | string} duration
|
|
13
|
+
* @see https://antoniandre.github.io/wave-ui/transitions
|
|
14
|
+
*/
|
|
15
|
+
duration?: number | string;
|
|
16
|
+
/**
|
|
17
|
+
* Controls the timing of enter/leave transitions when switching between two elements.
|
|
18
|
+
* Use `'out-in'` so the current element transitions out before the new one enters, or
|
|
19
|
+
* `'in-out'` for the reverse order. Leave unset for simultaneous enter + leave.
|
|
20
|
+
* @property {'out-in' | 'in-out'} mode
|
|
21
|
+
* @see https://vuejs.org/guide/built-ins/transition.html#transition-modes
|
|
22
|
+
* @see https://antoniandre.github.io/wave-ui/transitions
|
|
23
|
+
*/
|
|
24
|
+
mode?: 'out-in' | 'in-out';
|
|
25
|
+
}
|
|
26
|
+
export interface WaveTransitionDirectionProps extends WaveTransitionBaseProps {
|
|
27
|
+
/**
|
|
28
|
+
* Slides the element from / towards the left.
|
|
29
|
+
* @property {boolean} left
|
|
30
|
+
* @see https://antoniandre.github.io/wave-ui/transitions
|
|
31
|
+
*/
|
|
32
|
+
left?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Slides the element from / towards the right.
|
|
35
|
+
* @property {boolean} right
|
|
36
|
+
* @see https://antoniandre.github.io/wave-ui/transitions
|
|
37
|
+
*/
|
|
38
|
+
right?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Slides the element from / towards the top.
|
|
41
|
+
* @property {boolean} up
|
|
42
|
+
* @see https://antoniandre.github.io/wave-ui/transitions
|
|
43
|
+
*/
|
|
44
|
+
up?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Slides the element from / towards the bottom (default direction).
|
|
47
|
+
* @property {boolean} down
|
|
48
|
+
* @see https://antoniandre.github.io/wave-ui/transitions
|
|
49
|
+
*/
|
|
50
|
+
down?: boolean;
|
|
51
|
+
}
|
|
52
|
+
type DefaultSlot = SlotsType<{
|
|
53
|
+
/**
|
|
54
|
+
* The element or component to transition.
|
|
55
|
+
* @see https://antoniandre.github.io/wave-ui/transitions
|
|
56
|
+
*/
|
|
57
|
+
'default': () => any;
|
|
58
|
+
}>;
|
|
59
|
+
export type WTransitionFadeProps = WaveTransitionBaseProps;
|
|
60
|
+
export type WTransitionFade = DefineComponent<WTransitionFadeProps, {}, {}, ComputedOptions, MethodOptions, {}, {}, EmitsOptions, string, PublicProps, ResolveProps<WTransitionFadeProps, EmitsOptions>, ExtractDefaultPropTypes<WTransitionFadeProps>, DefaultSlot>;
|
|
61
|
+
export type WTransitionScaleProps = WaveTransitionBaseProps;
|
|
62
|
+
export type WTransitionScale = DefineComponent<WTransitionScaleProps, {}, {}, ComputedOptions, MethodOptions, {}, {}, EmitsOptions, string, PublicProps, ResolveProps<WTransitionScaleProps, EmitsOptions>, ExtractDefaultPropTypes<WTransitionScaleProps>, DefaultSlot>;
|
|
63
|
+
export type WTransitionScaleFadeProps = WaveTransitionBaseProps;
|
|
64
|
+
export type WTransitionScaleFade = DefineComponent<WTransitionScaleFadeProps, {}, {}, ComputedOptions, MethodOptions, {}, {}, EmitsOptions, string, PublicProps, ResolveProps<WTransitionScaleFadeProps, EmitsOptions>, ExtractDefaultPropTypes<WTransitionScaleFadeProps>, DefaultSlot>;
|
|
65
|
+
export type WTransitionBounceProps = WaveTransitionBaseProps;
|
|
66
|
+
export type WTransitionBounce = DefineComponent<WTransitionBounceProps, {}, {}, ComputedOptions, MethodOptions, {}, {}, EmitsOptions, string, PublicProps, ResolveProps<WTransitionBounceProps, EmitsOptions>, ExtractDefaultPropTypes<WTransitionBounceProps>, DefaultSlot>;
|
|
67
|
+
export type WTransitionTwistProps = WaveTransitionBaseProps;
|
|
68
|
+
export type WTransitionTwist = DefineComponent<WTransitionTwistProps, {}, {}, ComputedOptions, MethodOptions, {}, {}, EmitsOptions, string, PublicProps, ResolveProps<WTransitionTwistProps, EmitsOptions>, ExtractDefaultPropTypes<WTransitionTwistProps>, DefaultSlot>;
|
|
69
|
+
export interface WTransitionExpandProps {
|
|
70
|
+
/**
|
|
71
|
+
* Animates the element's width (and its horizontal margins, paddings and borders).
|
|
72
|
+
* Defaults to `true` when neither `x` nor `y` is set.
|
|
73
|
+
* @property {boolean} x
|
|
74
|
+
* @see https://antoniandre.github.io/wave-ui/transitions
|
|
75
|
+
*/
|
|
76
|
+
x?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Animates the element's height (and its vertical margins, paddings and borders).
|
|
79
|
+
* Defaults to `true` when neither `x` nor `y` is set.
|
|
80
|
+
* @property {boolean} y
|
|
81
|
+
* @see https://antoniandre.github.io/wave-ui/transitions
|
|
82
|
+
*/
|
|
83
|
+
y?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Duration of the JavaScript-driven expand/collapse animation in milliseconds.
|
|
86
|
+
* @property {number} duration - Default: 250
|
|
87
|
+
* @see https://antoniandre.github.io/wave-ui/transitions
|
|
88
|
+
*/
|
|
89
|
+
duration?: number;
|
|
90
|
+
/**
|
|
91
|
+
* Controls the timing of enter/leave transitions when switching between two elements.
|
|
92
|
+
* Defaults to `'out-in'` so the collapsing element finishes before the expanding one starts.
|
|
93
|
+
* @property {'out-in' | 'in-out'} mode - Default: 'out-in'
|
|
94
|
+
* @see https://vuejs.org/guide/built-ins/transition.html#transition-modes
|
|
95
|
+
* @see https://antoniandre.github.io/wave-ui/transitions
|
|
96
|
+
*/
|
|
97
|
+
mode?: 'out-in' | 'in-out';
|
|
98
|
+
}
|
|
99
|
+
export type WTransitionExpand = DefineComponent<WTransitionExpandProps, {}, {}, ComputedOptions, MethodOptions, {}, {}, EmitsOptions, string, PublicProps, ResolveProps<WTransitionExpandProps, EmitsOptions>, ExtractDefaultPropTypes<WTransitionExpandProps>, DefaultSlot>;
|
|
100
|
+
export type WTransitionSlideProps = WaveTransitionDirectionProps;
|
|
101
|
+
export type WTransitionSlide = DefineComponent<WTransitionSlideProps, {}, {}, ComputedOptions, MethodOptions, {}, {}, EmitsOptions, string, PublicProps, ResolveProps<WTransitionSlideProps, EmitsOptions>, ExtractDefaultPropTypes<WTransitionSlideProps>, DefaultSlot>;
|
|
102
|
+
export type WTransitionSlideFadeProps = WaveTransitionDirectionProps;
|
|
103
|
+
export type WTransitionSlideFade = DefineComponent<WTransitionSlideFadeProps, {}, {}, ComputedOptions, MethodOptions, {}, {}, EmitsOptions, string, PublicProps, ResolveProps<WTransitionSlideFadeProps, EmitsOptions>, ExtractDefaultPropTypes<WTransitionSlideFadeProps>, DefaultSlot>;
|
|
104
|
+
export {};
|
|
@@ -98,6 +98,13 @@ export interface WaveTreeProps {
|
|
|
98
98
|
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
99
99
|
*/
|
|
100
100
|
selectable?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* When `true`, disables the pointer ripple on selectable nodes for this tree only.
|
|
103
|
+
* Global default still follows `$waveui.config.ripple`.
|
|
104
|
+
* @property {boolean} noRipple
|
|
105
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
106
|
+
*/
|
|
107
|
+
noRipple?: boolean;
|
|
101
108
|
/**
|
|
102
109
|
* TODO: Add Description
|
|
103
110
|
* @property {boolean} deepReactivity
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { WAccordion } from './WAccordion';
|
|
2
2
|
export { WAlert } from './WAlert';
|
|
3
|
-
export {
|
|
3
|
+
export { WAutocomplete, WAutocompleteItem } from './WAutocomplete';
|
|
4
4
|
export { WBadge } from './WBadge';
|
|
5
5
|
export { WBreadcrumbs } from './WBreadcrumbs';
|
|
6
6
|
export { WButton } from './WButton';
|
|
@@ -41,3 +41,4 @@ export { WTimeline } from './WTimeline';
|
|
|
41
41
|
export { WToolbar } from './WToolbar';
|
|
42
42
|
export { WTooltip } from './WTooltip';
|
|
43
43
|
export { WTree } from './WTree';
|
|
44
|
+
export { WTransitionFade, WTransitionScale, WTransitionScaleFade, WTransitionBounce, WTransitionTwist, WTransitionExpand, WTransitionSlide, WTransitionSlideFade, type WaveTransitionBaseProps, type WaveTransitionDirectionProps, type WTransitionFadeProps, type WTransitionScaleProps, type WTransitionScaleFadeProps, type WTransitionBounceProps, type WTransitionTwistProps, type WTransitionExpandProps, type WTransitionSlideProps, type WTransitionSlideFadeProps } from './WTransitions';
|