wave-ui 3.10.0 → 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/dist/wave-ui.cjs.js +1 -1
- package/dist/wave-ui.es.js +405 -382
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +16 -10
- package/src/wave-ui/components/transitions/w-transition-expand.vue +2 -4
- package/src/wave-ui/components/w-parallax.vue +0 -1
- package/src/wave-ui/index.d.ts +21 -0
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
import { ComputedGetter, ComputedOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, SlotsType } from 'vue';
|
|
2
|
+
import { PublicProps, ResolveProps } from '../extra-vue-types';
|
|
3
|
+
export interface WaveTreeProps {
|
|
4
|
+
/**
|
|
5
|
+
* ``value` in Vue 2.`
|
|
6
|
+
* This value gets updated with the tree selected item when using a `v-model` and when `selectable` is set to `true`.
|
|
7
|
+
* @property {{}|Array<any>} modelValue
|
|
8
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
9
|
+
*/
|
|
10
|
+
modelValue?: {} | Array<any>;
|
|
11
|
+
/**
|
|
12
|
+
* TODO: Add Description
|
|
13
|
+
* @property {{}|Array<any>} [data]
|
|
14
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
15
|
+
*/
|
|
16
|
+
data: {} | Array<any>;
|
|
17
|
+
/**
|
|
18
|
+
* TODO: Add Description
|
|
19
|
+
* @property {number} depth - Default: 0
|
|
20
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
21
|
+
*/
|
|
22
|
+
depth?: number;
|
|
23
|
+
/**
|
|
24
|
+
* TODO: Add Description
|
|
25
|
+
* @property {{}} parent - Default: null
|
|
26
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
27
|
+
*/
|
|
28
|
+
parent?: {};
|
|
29
|
+
/**
|
|
30
|
+
* TODO: Add Description
|
|
31
|
+
* @property {string} branchClass
|
|
32
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
33
|
+
*/
|
|
34
|
+
branchClass?: string;
|
|
35
|
+
/**
|
|
36
|
+
* TODO: Add Description
|
|
37
|
+
* @property {string} leafClass
|
|
38
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
39
|
+
*/
|
|
40
|
+
leafClass?: string;
|
|
41
|
+
/**
|
|
42
|
+
* TODO: Add Description
|
|
43
|
+
* @property {string} branchIcon
|
|
44
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
45
|
+
*/
|
|
46
|
+
branchIcon?: string;
|
|
47
|
+
/**
|
|
48
|
+
* TODO: Add Description
|
|
49
|
+
* @property {string} branchOpenIcon
|
|
50
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
51
|
+
*/
|
|
52
|
+
branchOpenIcon?: string;
|
|
53
|
+
/**
|
|
54
|
+
* TODO: Add Description
|
|
55
|
+
* @property {string} leafIcon
|
|
56
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
57
|
+
*/
|
|
58
|
+
leafIcon?: string;
|
|
59
|
+
/**
|
|
60
|
+
* TODO: Add Description
|
|
61
|
+
* @property {boolean|string} expandIcon - Default: 'wi-triangle-down'
|
|
62
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
63
|
+
*/
|
|
64
|
+
expandIcon?: boolean | string;
|
|
65
|
+
/**
|
|
66
|
+
* TODO: Add Description
|
|
67
|
+
* @property {boolean|string} expandOpenIcon
|
|
68
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
69
|
+
*/
|
|
70
|
+
expandOpenIcon?: boolean | string;
|
|
71
|
+
/**
|
|
72
|
+
* TODO: Add Description
|
|
73
|
+
* @property {boolean} expandAll
|
|
74
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
75
|
+
*/
|
|
76
|
+
expandAll?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* TODO: Add Description
|
|
79
|
+
* @property {boolean} unexpandableEmpty
|
|
80
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
81
|
+
*/
|
|
82
|
+
unexpandableEmpty?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* TODO: Add Description
|
|
85
|
+
* @property {boolean} disabled
|
|
86
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
87
|
+
*/
|
|
88
|
+
disabled?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* TODO: Add Description
|
|
91
|
+
* @property {boolean} noTransition
|
|
92
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
93
|
+
*/
|
|
94
|
+
noTransition?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* TODO: Add Description
|
|
97
|
+
* @property {boolean} selectable
|
|
98
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
99
|
+
*/
|
|
100
|
+
selectable?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* TODO: Add Description
|
|
103
|
+
* @property {boolean} deepReactivity
|
|
104
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
105
|
+
*/
|
|
106
|
+
deepReactivity?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* TODO: Add Description
|
|
109
|
+
* @property {boolean} counts
|
|
110
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
111
|
+
*/
|
|
112
|
+
counts?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* TODO: Add Description
|
|
115
|
+
* @property {string} itemIconKey - Default: 'icon'
|
|
116
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
117
|
+
*/
|
|
118
|
+
itemIconKey?: string;
|
|
119
|
+
/**
|
|
120
|
+
* TODO: Add Description
|
|
121
|
+
* @property {string} iconColor
|
|
122
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
123
|
+
*/
|
|
124
|
+
iconColor?: string;
|
|
125
|
+
/**
|
|
126
|
+
* TODO: Add Description
|
|
127
|
+
* @property {string} itemLabelKey - Default: 'label'
|
|
128
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
129
|
+
*/
|
|
130
|
+
itemLabelKey?: string;
|
|
131
|
+
/**
|
|
132
|
+
* TODO: Add Description
|
|
133
|
+
* @property {string} itemIconColorKey - Default: 'iconColor'
|
|
134
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
135
|
+
*/
|
|
136
|
+
itemIconColorKey?: string;
|
|
137
|
+
/**
|
|
138
|
+
* TODO: Add Description
|
|
139
|
+
* @property {string} itemRouteKey - Default: 'route'
|
|
140
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
141
|
+
*/
|
|
142
|
+
itemRouteKey?: string;
|
|
143
|
+
/**
|
|
144
|
+
* TODO: Add Description
|
|
145
|
+
* @property {string} itemDisabledKey - Default: 'disabled'
|
|
146
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
147
|
+
*/
|
|
148
|
+
itemDisabledKey?: string;
|
|
149
|
+
/**
|
|
150
|
+
* TODO: Add Description
|
|
151
|
+
* @property {string} itemOpenKey - Default: 'open'
|
|
152
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
153
|
+
*/
|
|
154
|
+
itemOpenKey?: string;
|
|
155
|
+
}
|
|
156
|
+
export interface WaveTreeEmits {
|
|
157
|
+
/**
|
|
158
|
+
* test
|
|
159
|
+
* @param {any} renameMe1 - The current tree item object.
|
|
160
|
+
* @param {any} renameMe2 - An integer representing the item's depth in the tree. Starts at 0 for the root.
|
|
161
|
+
* @param {any} renameMe3 - When applicable, a boolean representing the open state of the tree branch item.
|
|
162
|
+
* @param {any} renameMe4 - An array containing the item's ancestors path, from the root to the leaf, including itself at the last position.<br>All items of the array are the original tree items as they have been provided to the <strong class="code">w-tree</strong> component.
|
|
163
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
164
|
+
*/
|
|
165
|
+
'onUpdate:modelValue'?: (renameMe1: any, renameMe2: any, renameMe3: any, renameMe4: any) => void;
|
|
166
|
+
/**
|
|
167
|
+
* Fired right before opening a tree branch item and exposes the following parameters:
|
|
168
|
+
* @param {any} renameMe1 - The current tree item object.
|
|
169
|
+
* @param {any} renameMe2 - An integer representing the item's depth in the tree. Starts at 0 for the root.
|
|
170
|
+
* @param {any} renameMe3 - When applicable, a boolean representing the open state of the tree branch item.
|
|
171
|
+
* @param {any} renameMe4 - An array containing the item's ancestors path, from the root to the leaf, including itself at the last position.<br>All items of the array are the original tree items as they have been provided to the <strong class="code">w-tree</strong> component.
|
|
172
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
173
|
+
*/
|
|
174
|
+
'onBeforeOpen'?: (renameMe1: any, renameMe2: any, renameMe3: any, renameMe4: any) => void;
|
|
175
|
+
/**
|
|
176
|
+
* Fired after opening a tree branch item and exposes the following parameters:
|
|
177
|
+
* @param {any} renameMe1 - The current tree item object.
|
|
178
|
+
* @param {any} renameMe2 - An integer representing the item's depth in the tree. Starts at 0 for the root.
|
|
179
|
+
* @param {any} renameMe3 - When applicable, a boolean representing the open state of the tree branch item.
|
|
180
|
+
* @param {any} renameMe4 - An array containing the item's ancestors path, from the root to the leaf, including itself at the last position.<br>All items of the array are the original tree items as they have been provided to the <strong class="code">w-tree</strong> component.
|
|
181
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
182
|
+
*/
|
|
183
|
+
'onOpen'?: (renameMe1: any, renameMe2: any, renameMe3: any, renameMe4: any) => void;
|
|
184
|
+
/**
|
|
185
|
+
* Fired right before closing a tree branch item and exposes the following parameters:
|
|
186
|
+
* @param {any} renameMe1 - The current tree item object.
|
|
187
|
+
* @param {any} renameMe2 - An integer representing the item's depth in the tree. Starts at 0 for the root.
|
|
188
|
+
* @param {any} renameMe3 - When applicable, a boolean representing the open state of the tree branch item.
|
|
189
|
+
* @param {any} renameMe4 - An array containing the item's ancestors path, from the root to the leaf, including itself at the last position.<br>All items of the array are the original tree items as they have been provided to the <strong class="code">w-tree</strong> component.
|
|
190
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
191
|
+
*/
|
|
192
|
+
'onBeforeClose'?: (renameMe1: any, renameMe2: any, renameMe3: any, renameMe4: any) => void;
|
|
193
|
+
/**
|
|
194
|
+
* Fired after closing a tree branch item and exposes the following parameters:
|
|
195
|
+
* @param {any} renameMe1 - The current tree item object.
|
|
196
|
+
* @param {any} renameMe2 - An integer representing the item's depth in the tree. Starts at 0 for the root.
|
|
197
|
+
* @param {any} renameMe3 - When applicable, a boolean representing the open state of the tree branch item.
|
|
198
|
+
* @param {any} renameMe4 - An array containing the item's ancestors path, from the root to the leaf, including itself at the last position.<br>All items of the array are the original tree items as they have been provided to the <strong class="code">w-tree</strong> component.
|
|
199
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
200
|
+
*/
|
|
201
|
+
'onClose'?: (renameMe1: any, renameMe2: any, renameMe3: any, renameMe4: any) => void;
|
|
202
|
+
/**
|
|
203
|
+
* Fired on tree item click and exposes the following parameters:
|
|
204
|
+
* @param {any} renameMe1 - The current tree item object.
|
|
205
|
+
* @param {any} renameMe2 - An integer representing the item's depth in the tree. Starts at 0 for the root.
|
|
206
|
+
* @param {any} renameMe3 - When applicable, a boolean representing the open state of the tree branch item.
|
|
207
|
+
* @param {any} renameMe4 - An array containing the item's ancestors path, from the root to the leaf, including itself at the last position.<br>All items of the array are the original tree items as they have been provided to the <strong class="code">w-tree</strong> component.
|
|
208
|
+
* @param {any} renameMe5 - The associated native click event.
|
|
209
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
210
|
+
*/
|
|
211
|
+
'onClick'?: (renameMe1: any, renameMe2: any, renameMe3: any, renameMe4: any, renameMe5: any) => void;
|
|
212
|
+
/**
|
|
213
|
+
* test
|
|
214
|
+
* @param {any} renameMe1 - The current tree item object.
|
|
215
|
+
* @param {any} renameMe2 - An integer representing the item's depth in the tree. Starts at 0 for the root.
|
|
216
|
+
* @param {any} renameMe3 - When applicable, a boolean representing the open state of the tree branch item.
|
|
217
|
+
* @param {any} renameMe4 - A boolean representing the selected state of the tree item.
|
|
218
|
+
* @param {any} renameMe5 - An array containing the item's ancestors path, from the root to the leaf, including itself at the last position.<br>All items of the array are the original tree items as they have been provided to the <strong class="code">w-tree</strong> component.
|
|
219
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
220
|
+
*/
|
|
221
|
+
'onSelect'?: (renameMe1: any, renameMe2: any, renameMe3: any, renameMe4: any, renameMe5: any) => void;
|
|
222
|
+
}
|
|
223
|
+
export interface WaveTreeComputeds extends ComputedOptions {
|
|
224
|
+
/**
|
|
225
|
+
* TODO: Add Description
|
|
226
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
227
|
+
*/
|
|
228
|
+
classes: ComputedGetter<any>;
|
|
229
|
+
}
|
|
230
|
+
export interface WaveTreeMethods extends MethodOptions {
|
|
231
|
+
/**
|
|
232
|
+
* TODO: Add Description
|
|
233
|
+
* @param {any} items
|
|
234
|
+
* @param {any} [oldItems] - []
|
|
235
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
236
|
+
*/
|
|
237
|
+
updateCurrentDepthTree(items: any, oldItems?: any): void;
|
|
238
|
+
/**
|
|
239
|
+
* TODO: Add Description
|
|
240
|
+
* @param {any} item
|
|
241
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
242
|
+
*/
|
|
243
|
+
getTreeItemComponent(item: any): void;
|
|
244
|
+
/**
|
|
245
|
+
* TODO: Add Description
|
|
246
|
+
* @param {any} item
|
|
247
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
248
|
+
*/
|
|
249
|
+
getTreeItemTabindex(item: any): void;
|
|
250
|
+
/**
|
|
251
|
+
* TODO: Add Description
|
|
252
|
+
* @param {any} item
|
|
253
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
254
|
+
*/
|
|
255
|
+
getTreeItemPath(item: any): void;
|
|
256
|
+
/**
|
|
257
|
+
* TODO: Add Description
|
|
258
|
+
* @param {any} ancestor
|
|
259
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
260
|
+
*/
|
|
261
|
+
while(ancestor: any): void;
|
|
262
|
+
/**
|
|
263
|
+
* TODO: Add Description
|
|
264
|
+
* @param {any} item
|
|
265
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
266
|
+
*/
|
|
267
|
+
getTreeItemPathForOutput(item: any): void;
|
|
268
|
+
/**
|
|
269
|
+
* TODO: Add Description
|
|
270
|
+
* @param {any} item
|
|
271
|
+
* @param {any} open
|
|
272
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
273
|
+
*/
|
|
274
|
+
expandDepth(item: any, open: any): void;
|
|
275
|
+
/**
|
|
276
|
+
* TODO: Add Description
|
|
277
|
+
* @param {any} item
|
|
278
|
+
* @param {any} e
|
|
279
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
280
|
+
*/
|
|
281
|
+
onLabelClick(item: any, e: any): void;
|
|
282
|
+
/**
|
|
283
|
+
* TODO: Add Description
|
|
284
|
+
* @param {any} item
|
|
285
|
+
* @param {any} e
|
|
286
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
287
|
+
*/
|
|
288
|
+
onLabelKeydown(item: any, e: any): void;
|
|
289
|
+
/**
|
|
290
|
+
* TODO: Add Description
|
|
291
|
+
* @param {any} item
|
|
292
|
+
* @param {any} e
|
|
293
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
294
|
+
*/
|
|
295
|
+
emitItemSelection(item: any, e: any): void;
|
|
296
|
+
/**
|
|
297
|
+
* TODO: Add Description
|
|
298
|
+
* @param {any} item
|
|
299
|
+
* @param {any} e
|
|
300
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
301
|
+
*/
|
|
302
|
+
emitPayload(item: any, e: any): void;
|
|
303
|
+
/**
|
|
304
|
+
* TODO: Add Description
|
|
305
|
+
* @param {any} node
|
|
306
|
+
* @param {any} selector
|
|
307
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
308
|
+
*/
|
|
309
|
+
getPreviousSibling(node: any, selector: any): void;
|
|
310
|
+
/**
|
|
311
|
+
* TODO: Add Description
|
|
312
|
+
* @param {any} node
|
|
313
|
+
* @param {any} selector
|
|
314
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
315
|
+
*/
|
|
316
|
+
getNextSibling(node: any, selector: any): void;
|
|
317
|
+
/**
|
|
318
|
+
* TODO: Add Description
|
|
319
|
+
* @param {any} liNode
|
|
320
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
321
|
+
*/
|
|
322
|
+
focusTreeItem(liNode: any): void;
|
|
323
|
+
/**
|
|
324
|
+
* TODO: Add Description
|
|
325
|
+
* @param {any} item
|
|
326
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
327
|
+
*/
|
|
328
|
+
itemIcon(item: any): void;
|
|
329
|
+
/**
|
|
330
|
+
* TODO: Add Description
|
|
331
|
+
* @param {any} item
|
|
332
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
333
|
+
*/
|
|
334
|
+
hasExternalLink(item: any): void;
|
|
335
|
+
/**
|
|
336
|
+
* TODO: Add Description
|
|
337
|
+
* @param {any} item
|
|
338
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
339
|
+
*/
|
|
340
|
+
itemClasses(item: any): void;
|
|
341
|
+
}
|
|
342
|
+
export type WaveTreeSlots = SlotsType<{
|
|
343
|
+
/**
|
|
344
|
+
* Provide a custom template for all the items (includes the item icon if any, label, and count if active).
|
|
345
|
+
* @param {any} item The current tree item object.
|
|
346
|
+
* @param {any} depth An integer representing the item's depth in the tree. Starts at 0 for the root.
|
|
347
|
+
* @param {any} open When applicable, a boolean representing the open state of the tree branch item.
|
|
348
|
+
* @param {any} path An array containing the item's ancestors path, from the root to the leaf, including itself at the last position.
|
|
349
|
+
* All items of the array are the original tree items as they have been provided to the `w-tree` component.
|
|
350
|
+
* @see https://antoniandre.github.io/wave-ui/w-tree
|
|
351
|
+
*/
|
|
352
|
+
'item': (_: {
|
|
353
|
+
item: any;
|
|
354
|
+
depth: any;
|
|
355
|
+
open: any;
|
|
356
|
+
path: any;
|
|
357
|
+
}) => any;
|
|
358
|
+
}>;
|
|
359
|
+
export type WTree = DefineComponent<WaveTreeProps, {}, {}, WaveTreeComputeds, WaveTreeMethods, {}, {}, WaveTreeEmits & EmitsOptions, string, PublicProps, ResolveProps<WaveTreeProps & WaveTreeEmits, EmitsOptions>, ExtractDefaultPropTypes<WaveTreeProps>, WaveTreeSlots>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export { WAccordion } from './WAccordion';
|
|
2
|
+
export { WAlert } from './WAlert';
|
|
3
|
+
export { WApp } from './WApp';
|
|
4
|
+
export { WBadge } from './WBadge';
|
|
5
|
+
export { WBreadcrumbs } from './WBreadcrumbs';
|
|
6
|
+
export { WButton } from './WButton';
|
|
7
|
+
export { WCard } from './WCard';
|
|
8
|
+
export { WCheckbox } from './WCheckbox';
|
|
9
|
+
export { WCheckboxes } from './WCheckboxes';
|
|
10
|
+
export { WConfirm } from './WConfirm';
|
|
11
|
+
export { WDialog } from './WDialog';
|
|
12
|
+
export { WDivider } from './WDivider';
|
|
13
|
+
export { WDrawer } from './WDrawer';
|
|
14
|
+
export { WFlex } from './WFlex';
|
|
15
|
+
export { WFormElement } from './WFormElement';
|
|
16
|
+
export { WForm } from './WForm';
|
|
17
|
+
export { WGrid } from './WGrid';
|
|
18
|
+
export { WIcon } from './WIcon';
|
|
19
|
+
export { WImage } from './WImage';
|
|
20
|
+
export { WInput } from './WInput';
|
|
21
|
+
export { WList } from './WList';
|
|
22
|
+
export { WMenu } from './WMenu';
|
|
23
|
+
export { WNotificationManager } from './WNotificationManager';
|
|
24
|
+
export { WNotification } from './WNotification';
|
|
25
|
+
export { WOverlay } from './WOverlay';
|
|
26
|
+
export { WProgress } from './WProgress';
|
|
27
|
+
export { WRadio } from './WRadio';
|
|
28
|
+
export { WRadios } from './WRadios';
|
|
29
|
+
export { WRating } from './WRating';
|
|
30
|
+
export { WSelect } from './WSelect';
|
|
31
|
+
export { WSlider } from './WSlider';
|
|
32
|
+
export { WSpinner } from './WSpinner';
|
|
33
|
+
export { WSteps } from './WSteps';
|
|
34
|
+
export { WSwitch } from './WSwitch';
|
|
35
|
+
export { WTable } from './WTable';
|
|
36
|
+
export { WTabs } from './WTabs';
|
|
37
|
+
export { WTag } from './WTag';
|
|
38
|
+
export { WTextarea } from './WTextarea';
|
|
39
|
+
export { WTimeline } from './WTimeline';
|
|
40
|
+
export { WToolbar } from './WToolbar';
|
|
41
|
+
export { WTooltip } from './WTooltip';
|
|
42
|
+
export { WTree } from './WTree';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AllowedComponentProps, ComponentCustomProps, ComponentPropsOptions, EmitsOptions, ExtractPropTypes, ObjectEmitsOptions, VNodeProps } from 'vue';
|
|
2
|
+
export type EmitsToProps<T extends EmitsOptions> = T extends string[] ? {
|
|
3
|
+
[K in string & `on${Capitalize<T[number]>}`]?: (...args: any[]) => any;
|
|
4
|
+
} : T extends ObjectEmitsOptions ? {
|
|
5
|
+
[K in string & `on${Capitalize<string & keyof T>}`]?: K extends `on${infer C}` ? T[Uncapitalize<C>] extends null ? (...args: any[]) => any : (...args: T[Uncapitalize<C>] extends (...args: infer P) => any ? P : never) => any : never;
|
|
6
|
+
} : {};
|
|
7
|
+
export type ResolveProps<PropsOrPropOptions, E extends EmitsOptions> = Readonly<PropsOrPropOptions extends ComponentPropsOptions ? ExtractPropTypes<PropsOrPropOptions> : PropsOrPropOptions> & ({} extends E ? {} : EmitsToProps<E>);
|
|
8
|
+
export type PublicProps = VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
import { $waveui } from '@/types/$waveui';
|
|
3
|
+
export interface BreakpointConfig {
|
|
4
|
+
xs?: number;
|
|
5
|
+
sm?: number;
|
|
6
|
+
md?: number;
|
|
7
|
+
lg?: number;
|
|
8
|
+
xl?: number;
|
|
9
|
+
}
|
|
10
|
+
export interface ConstructorOptions {
|
|
11
|
+
colors?: Record<string, string>;
|
|
12
|
+
breakpoints?: BreakpointConfig;
|
|
13
|
+
}
|
|
14
|
+
export declare class WaveUIPlugin {
|
|
15
|
+
#private;
|
|
16
|
+
$waveui: $waveui;
|
|
17
|
+
constructor(app: App, options?: ConstructorOptions & {});
|
|
18
|
+
static install(app: App, options?: ConstructorOptions & {}): undefined;
|
|
19
|
+
}
|