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.
Files changed (109) hide show
  1. package/dist/types/$waveui.d.ts +221 -0
  2. package/dist/types/$waveui.js +2 -0
  3. package/dist/types/colors.d.ts +503 -0
  4. package/dist/types/colors.js +2 -0
  5. package/dist/types/components/WAccordion.d.ts +226 -0
  6. package/dist/types/components/WAccordion.js +2 -0
  7. package/dist/types/components/WAlert.d.ts +225 -0
  8. package/dist/types/components/WAlert.js +2 -0
  9. package/dist/types/components/WApp.d.ts +84 -0
  10. package/dist/types/components/WApp.js +2 -0
  11. package/dist/types/components/WBadge.d.ts +194 -0
  12. package/dist/types/components/WBadge.js +2 -0
  13. package/dist/types/components/WBreadcrumbs.d.ts +129 -0
  14. package/dist/types/components/WBreadcrumbs.js +2 -0
  15. package/dist/types/components/WButton.d.ts +218 -0
  16. package/dist/types/components/WButton.js +2 -0
  17. package/dist/types/components/WCard.d.ts +140 -0
  18. package/dist/types/components/WCard.js +2 -0
  19. package/dist/types/components/WCheckbox.d.ts +132 -0
  20. package/dist/types/components/WCheckbox.js +2 -0
  21. package/dist/types/components/WCheckboxes.d.ts +141 -0
  22. package/dist/types/components/WCheckboxes.js +2 -0
  23. package/dist/types/components/WConfirm.d.ts +250 -0
  24. package/dist/types/components/WConfirm.js +2 -0
  25. package/dist/types/components/WDialog.d.ts +189 -0
  26. package/dist/types/components/WDialog.js +2 -0
  27. package/dist/types/components/WDivider.d.ts +49 -0
  28. package/dist/types/components/WDivider.js +2 -0
  29. package/dist/types/components/WDrawer.d.ts +249 -0
  30. package/dist/types/components/WDrawer.js +2 -0
  31. package/dist/types/components/WFlex.d.ts +137 -0
  32. package/dist/types/components/WFlex.js +2 -0
  33. package/dist/types/components/WForm.d.ts +165 -0
  34. package/dist/types/components/WForm.js +2 -0
  35. package/dist/types/components/WFormElement.d.ts +112 -0
  36. package/dist/types/components/WFormElement.js +2 -0
  37. package/dist/types/components/WGrid.d.ts +51 -0
  38. package/dist/types/components/WGrid.js +2 -0
  39. package/dist/types/components/WIcon.d.ts +167 -0
  40. package/dist/types/components/WIcon.js +2 -0
  41. package/dist/types/components/WImage.d.ts +172 -0
  42. package/dist/types/components/WImage.js +2 -0
  43. package/dist/types/components/WInput.d.ts +352 -0
  44. package/dist/types/components/WInput.js +2 -0
  45. package/dist/types/components/WList.d.ts +336 -0
  46. package/dist/types/components/WList.js +2 -0
  47. package/dist/types/components/WMenu.d.ts +250 -0
  48. package/dist/types/components/WMenu.js +2 -0
  49. package/dist/types/components/WNotification.d.ts +283 -0
  50. package/dist/types/components/WNotification.js +2 -0
  51. package/dist/types/components/WNotificationManager.d.ts +33 -0
  52. package/dist/types/components/WNotificationManager.js +2 -0
  53. package/dist/types/components/WOverlay.d.ts +118 -0
  54. package/dist/types/components/WOverlay.js +2 -0
  55. package/dist/types/components/WProgress.d.ts +177 -0
  56. package/dist/types/components/WProgress.js +2 -0
  57. package/dist/types/components/WRadio.d.ts +121 -0
  58. package/dist/types/components/WRadio.js +2 -0
  59. package/dist/types/components/WRadios.d.ts +129 -0
  60. package/dist/types/components/WRadios.js +2 -0
  61. package/dist/types/components/WRating.d.ts +176 -0
  62. package/dist/types/components/WRating.js +2 -0
  63. package/dist/types/components/WSelect.d.ts +416 -0
  64. package/dist/types/components/WSelect.js +2 -0
  65. package/dist/types/components/WSlider.d.ts +263 -0
  66. package/dist/types/components/WSlider.js +2 -0
  67. package/dist/types/components/WSpinner.d.ts +101 -0
  68. package/dist/types/components/WSpinner.js +2 -0
  69. package/dist/types/components/WSteps.d.ts +29 -0
  70. package/dist/types/components/WSteps.js +2 -0
  71. package/dist/types/components/WSwitch.d.ts +132 -0
  72. package/dist/types/components/WSwitch.js +2 -0
  73. package/dist/types/components/WTable.d.ts +504 -0
  74. package/dist/types/components/WTable.js +2 -0
  75. package/dist/types/components/WTabs.d.ts +343 -0
  76. package/dist/types/components/WTabs.js +2 -0
  77. package/dist/types/components/WTag.d.ts +160 -0
  78. package/dist/types/components/WTag.js +2 -0
  79. package/dist/types/components/WTextarea.d.ts +257 -0
  80. package/dist/types/components/WTextarea.js +2 -0
  81. package/dist/types/components/WTimeline.d.ts +102 -0
  82. package/dist/types/components/WTimeline.js +2 -0
  83. package/dist/types/components/WToolbar.d.ts +134 -0
  84. package/dist/types/components/WToolbar.js +2 -0
  85. package/dist/types/components/WTooltip.d.ts +170 -0
  86. package/dist/types/components/WTooltip.js +2 -0
  87. package/dist/types/components/WTree.d.ts +359 -0
  88. package/dist/types/components/WTree.js +2 -0
  89. package/dist/types/components/index.d.ts +42 -0
  90. package/dist/types/components/index.js +2 -0
  91. package/dist/types/extra-vue-types.d.ts +8 -0
  92. package/dist/types/extra-vue-types.js +2 -0
  93. package/dist/types/index.d.ts +5 -0
  94. package/dist/types/index.js +4 -0
  95. package/dist/types/plugin.d.ts +19 -0
  96. package/dist/types/plugin.js +2 -0
  97. package/dist/wave-ui.cjs.js +1 -1
  98. package/dist/wave-ui.css +1 -1
  99. package/dist/wave-ui.es.js +359 -333
  100. package/dist/wave-ui.umd.js +1 -1
  101. package/package.json +8 -2
  102. package/src/wave-ui/components/w-autocomplete.vue +1 -8
  103. package/src/wave-ui/components/w-input.vue +1 -0
  104. package/src/wave-ui/components/w-parallax.vue +0 -1
  105. package/src/wave-ui/components/w-select.vue +10 -8
  106. package/src/wave-ui/components/w-switch.vue +1 -1
  107. package/src/wave-ui/components/w-table.vue +18 -1
  108. package/src/wave-ui/components/w-textarea.vue +12 -10
  109. package/src/wave-ui/index.d.ts +21 -0
@@ -0,0 +1,176 @@
1
+ import { ComputedGetter, ComputedOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, SlotsType } from 'vue';
2
+ import { PublicProps, ResolveProps } from '../extra-vue-types';
3
+ export interface WaveRatingProps {
4
+ /**
5
+ * ``value` in Vue 2.`
6
+ * Dictates the current rating value. When the user rates, the `v-model` value will be updated.
7
+ * @property {any} modelValue
8
+ * @see https://antoniandre.github.io/wave-ui/w-rating
9
+ */
10
+ modelValue?: any;
11
+ /**
12
+ * The total count of buttons (usually stars) to display in the rating component.
13
+ * @property {number|string} max - Default: 5
14
+ * @see https://antoniandre.github.io/wave-ui/w-rating
15
+ */
16
+ max?: number | string;
17
+ /**
18
+ * Sets the color of the rating active icons (when hovering or when showing the current rating).
19
+ * 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).
20
+ * Providing a color hex, rgb(a) or hsl(a) will not work.
21
+ * @property {string} color - Default: 'primary'
22
+ * @see https://antoniandre.github.io/wave-ui/w-rating
23
+ * @see https://antoniandre.github.io/wave-ui/colors
24
+ */
25
+ color?: string;
26
+ /**
27
+ * Sets color of the background icons (grey by default).
28
+ * 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).
29
+ * Providing a color hex, rgb(a) or hsl(a) will not work.
30
+ * @property {string} bgColor
31
+ * @see https://antoniandre.github.io/wave-ui/w-rating
32
+ * @see https://antoniandre.github.io/wave-ui/colors
33
+ */
34
+ bgColor?: string;
35
+ /**
36
+ * Sets the icon (star by default) of each button of the rating component.
37
+ * Accepts a string: e.g. `mdi mdi-home`.
38
+ * @property {string} icon - Default: 'wi-star'
39
+ * @see https://antoniandre.github.io/wave-ui/w-rating
40
+ */
41
+ icon?: string;
42
+ /**
43
+ * Sets the size of the rating component (font-size).
44
+ * @property {boolean} xs
45
+ * @see https://antoniandre.github.io/wave-ui/w-rating
46
+ */
47
+ xs?: boolean;
48
+ /**
49
+ * Sets the size of the rating component (font-size).
50
+ * @property {boolean} sm
51
+ * @see https://antoniandre.github.io/wave-ui/w-rating
52
+ */
53
+ sm?: boolean;
54
+ /**
55
+ * Sets the size of the rating component (font-size).
56
+ * @property {boolean} md
57
+ * @see https://antoniandre.github.io/wave-ui/w-rating
58
+ */
59
+ md?: boolean;
60
+ /**
61
+ * Sets the size of the rating component (font-size).
62
+ * @property {boolean} lg
63
+ * @see https://antoniandre.github.io/wave-ui/w-rating
64
+ */
65
+ lg?: boolean;
66
+ /**
67
+ * Sets the size of the rating component (font-size).
68
+ * @property {boolean} xl
69
+ * @see https://antoniandre.github.io/wave-ui/w-rating
70
+ */
71
+ xl?: boolean;
72
+ /**
73
+ * Removes the ripple animation on click of one of the buttons.
74
+ * @property {boolean} noRipple
75
+ * @see https://antoniandre.github.io/wave-ui/w-rating
76
+ */
77
+ noRipple?: boolean;
78
+ /**
79
+ * TODO: Add Description
80
+ * @property {boolean} dark
81
+ * @see https://antoniandre.github.io/wave-ui/w-rating
82
+ */
83
+ dark?: boolean;
84
+ /**
85
+ * TODO: Add Description
86
+ * @property {boolean} light
87
+ * @see https://antoniandre.github.io/wave-ui/w-rating
88
+ */
89
+ light?: boolean;
90
+ }
91
+ export interface WaveRatingEmits {
92
+ /**
93
+ * Emitted each time the rating changes.<br>Updates the v-model value in Vue 2.x only.
94
+ * @param {any} renameMe1 - The current rating.
95
+ * @see https://antoniandre.github.io/wave-ui/w-rating
96
+ */
97
+ 'onInput'?: (renameMe1: any) => void;
98
+ /**
99
+ * Emitted each time the rating changes.<br>Updates the v-model value in Vue 3 only.
100
+ * @param {any} renameMe1 - The current rating.
101
+ * @see https://antoniandre.github.io/wave-ui/w-rating
102
+ */
103
+ 'onUpdate:modelValue'?: (renameMe1: any) => void;
104
+ /**
105
+ * Emitted when the rating component is focused (any button).
106
+ * @param {any} renameMe1 - The associated focus DOM event.
107
+ * @see https://antoniandre.github.io/wave-ui/w-rating
108
+ */
109
+ 'onFocus'?: (renameMe1: any) => void;
110
+ /**
111
+ * Emitted when the rating component is blurred (any button).
112
+ * @param {any} renameMe1 - The associated blur DOM event.
113
+ * @see https://antoniandre.github.io/wave-ui/w-rating
114
+ */
115
+ 'onBlur'?: (renameMe1: any) => void;
116
+ }
117
+ export interface WaveRatingComputeds extends ComputedOptions {
118
+ /**
119
+ * TODO: Add Description
120
+ * @see https://antoniandre.github.io/wave-ui/w-rating
121
+ */
122
+ size: ComputedGetter<any>;
123
+ /**
124
+ * TODO: Add Description
125
+ * @see https://antoniandre.github.io/wave-ui/w-rating
126
+ */
127
+ classes: ComputedGetter<any>;
128
+ /**
129
+ * TODO: Add Description
130
+ * @see https://antoniandre.github.io/wave-ui/w-rating
131
+ */
132
+ halfStarStyle: ComputedGetter<any>;
133
+ }
134
+ export interface WaveRatingMethods extends MethodOptions {
135
+ /**
136
+ * TODO: Add Description
137
+ * @param {any} i
138
+ * @see https://antoniandre.github.io/wave-ui/w-rating
139
+ */
140
+ onButtonClick(i: any): void;
141
+ /**
142
+ * TODO: Add Description
143
+ * @param {any} e
144
+ * @see https://antoniandre.github.io/wave-ui/w-rating
145
+ */
146
+ onFocus(e: any): void;
147
+ /**
148
+ * TODO: Add Description
149
+ * @param {any} e
150
+ * @see https://antoniandre.github.io/wave-ui/w-rating
151
+ */
152
+ onBlur(e: any): void;
153
+ /**
154
+ * TODO: Add Description
155
+ * @param {any} e
156
+ * @see https://antoniandre.github.io/wave-ui/w-rating
157
+ */
158
+ onKeydown(e: any): void;
159
+ /**
160
+ * TODO: Add Description
161
+ * @param {any} i
162
+ * @see https://antoniandre.github.io/wave-ui/w-rating
163
+ */
164
+ buttonClasses(i: any): void;
165
+ }
166
+ export type WaveRatingSlots = SlotsType<{
167
+ /**
168
+ * Provide a custom content for each item.
169
+ * @param {any} index The item index, starting at 1.
170
+ * @see https://antoniandre.github.io/wave-ui/w-rating
171
+ */
172
+ 'item': (_: {
173
+ index: any;
174
+ }) => any;
175
+ }>;
176
+ export type WRating = DefineComponent<WaveRatingProps, {}, {}, WaveRatingComputeds, WaveRatingMethods, {}, {}, WaveRatingEmits & EmitsOptions, string, PublicProps, ResolveProps<WaveRatingProps & WaveRatingEmits, EmitsOptions>, ExtractDefaultPropTypes<WaveRatingProps>, WaveRatingSlots>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,416 @@
1
+ import { ComputedGetter, ComputedOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, SlotsType } from 'vue';
2
+ import { PublicProps, ResolveProps } from '../extra-vue-types';
3
+ export interface WSelectDropdownItem {
4
+ /**
5
+ * The *default* key to access the label of the item.
6
+ * This can be overriden using the `item-label-key` property.
7
+ * @property {string} label
8
+ * @see https://antoniandre.github.io/wave-ui/w-select#item-label-key-prop
9
+ */
10
+ label?: string;
11
+ /**
12
+ * The *default* key to access the color of the item.
13
+ * This can be overriden using the `item-color-key` property.
14
+ * @property {string} color
15
+ * @see https://antoniandre.github.io/wave-ui/w-select#item-color-key-prop
16
+ */
17
+ color?: string;
18
+ /**
19
+ * The *default* key to access the vlue of the item.
20
+ * This can be overriden using the `item-value-key` property.
21
+ * @property {string} value
22
+ * @see https://antoniandre.github.io/wave-ui/w-select#item-value-key-prop
23
+ */
24
+ value?: string;
25
+ /**
26
+ * Whether or not this list item is disabled.
27
+ * @property {boolean} disabled
28
+ * @see https://antoniandre.github.io/wave-ui/w-select#disabled-and-readonly
29
+ */
30
+ disabled?: boolean;
31
+ /**
32
+ * You can also have any additional data attached to the item.
33
+ * It will not affect the default behavior of the select component.
34
+ * @see https://antoniandre.github.io/wave-ui/w-select#items-prop
35
+ */
36
+ [key: string]: any;
37
+ }
38
+ export interface WaveSelectProps {
39
+ /**
40
+ * Expecting an array of objects. Each object being a select list item, it should include at least a `label` attribute.
41
+ * @property {Array<WSelectDropdownItem} [items]
42
+ * @see https://antoniandre.github.io/wave-ui/w-select
43
+ */
44
+ items: Array<WSelectDropdownItem>;
45
+ /**
46
+ * ``value` in Vue 2.`
47
+ * The current selection of the select field.
48
+ * Gets updated on selection change.
49
+ * @property {any} modelValue
50
+ * @see https://antoniandre.github.io/wave-ui/w-select
51
+ */
52
+ modelValue?: any;
53
+ /**
54
+ * Allows multiple selections. When set to `true`, the list of choices will stay open after selecting an item.
55
+ * @property {boolean} multiple
56
+ * @see https://antoniandre.github.io/wave-ui/w-select
57
+ */
58
+ multiple?: boolean;
59
+ /**
60
+ * Provide a placeholder for the select field. If a label is positioned inside, it will be moved above the field so it doesn't overlap.
61
+ * @property {string} placeholder
62
+ * @see https://antoniandre.github.io/wave-ui/w-select
63
+ */
64
+ placeholder?: string;
65
+ /**
66
+ * Sets a visible label for the select field.
67
+ * @property {string} label
68
+ * @see https://antoniandre.github.io/wave-ui/w-select
69
+ */
70
+ label?: string;
71
+ /**
72
+ * Sets the position of the label to one of the following positions: 'left\', \'right\', \'inside\'.
73
+ * @property {string} labelPosition - Default: 'inside'
74
+ * @see https://antoniandre.github.io/wave-ui/w-select
75
+ */
76
+ labelPosition?: string;
77
+ /**
78
+ * Adds an icon on the left inside the select field.
79
+ * Accepts a string: e.g. `mdi mdi-eye`.
80
+ * @property {string} innerIconLeft
81
+ * @see https://antoniandre.github.io/wave-ui/w-select
82
+ */
83
+ innerIconLeft?: string;
84
+ /**
85
+ * Adds an icon on the right inside the select field.
86
+ * Accepts a string: e.g. `mdi mdi-eye`.
87
+ * @property {string} innerIconRight - Default: 'wi-triangle-down'
88
+ * @see https://antoniandre.github.io/wave-ui/w-select
89
+ */
90
+ innerIconRight?: string;
91
+ /**
92
+ * Prevents moving the label above the select field when the `labelPosition` is equal to `inside`. If a placeholder is present, it will be hidden and the label will be displayed instead.
93
+ * When a value is set the static label is replaced by the textual value.
94
+ * @property {boolean} staticLabel
95
+ * @see https://antoniandre.github.io/wave-ui/w-select
96
+ */
97
+ staticLabel?: boolean;
98
+ /**
99
+ * The property name (aka "key") in each item object where to find the label of the item.
100
+ * @property {string} itemLabelKey - Default: 'label'
101
+ * @see https://antoniandre.github.io/wave-ui/w-select
102
+ */
103
+ itemLabelKey?: string;
104
+ /**
105
+ * The property name (aka "key") in each item object where to find the color of the item.
106
+ * By default, the `color` key of the current item will be used to render this item in this color.
107
+ * You can also provide an empty string to disable this feature.
108
+ * @property {string} itemColorKey - Default: 'color'
109
+ * @see https://antoniandre.github.io/wave-ui/w-select
110
+ */
111
+ itemColorKey?: string;
112
+ /**
113
+ * The property name (aka "key") in each item object where to find the value of the item.
114
+ * @property {string} itemValueKey - Default: 'value'
115
+ * @see https://antoniandre.github.io/wave-ui/w-select
116
+ */
117
+ itemValueKey?: string;
118
+ /**
119
+ * Applies a custom CSS class to each select list item.
120
+ * @property {string} itemClass
121
+ * @see https://antoniandre.github.io/wave-ui/w-select
122
+ */
123
+ itemClass?: string;
124
+ /**
125
+ * Applies a custom CSS class to the select list's floating menu element.
126
+ * @property {string} menuClass
127
+ * @see https://antoniandre.github.io/wave-ui/w-select
128
+ */
129
+ menuClass?: string;
130
+ /**
131
+ * TODO: Add Description
132
+ * @property {string} color - Default: 'primary'
133
+ * @see https://antoniandre.github.io/wave-ui/w-select
134
+ */
135
+ color?: string;
136
+ /**
137
+ * TODO: Add Description
138
+ * @property {string} bgColor
139
+ * @see https://antoniandre.github.io/wave-ui/w-select
140
+ */
141
+ bgColor?: string;
142
+ /**
143
+ * TODO: Add Description
144
+ * @property {string} labelColor - Default: 'primary'
145
+ * @see https://antoniandre.github.io/wave-ui/w-select
146
+ */
147
+ labelColor?: string;
148
+ /**
149
+ * TODO: Add Description
150
+ * @property {string} selectionColor - Default: 'primary'
151
+ * @see https://antoniandre.github.io/wave-ui/w-select
152
+ */
153
+ selectionColor?: string;
154
+ /**
155
+ * TODO: Add Description
156
+ * @property {boolean} outline
157
+ * @see https://antoniandre.github.io/wave-ui/w-select
158
+ */
159
+ outline?: boolean;
160
+ /**
161
+ * TODO: Add Description
162
+ * @property {boolean} round
163
+ * @see https://antoniandre.github.io/wave-ui/w-select
164
+ */
165
+ round?: boolean;
166
+ /**
167
+ * TODO: Add Description
168
+ * @property {boolean} shadow
169
+ * @see https://antoniandre.github.io/wave-ui/w-select
170
+ */
171
+ shadow?: boolean;
172
+ /**
173
+ * TODO: Add Description
174
+ * @property {boolean} tile
175
+ * @see https://antoniandre.github.io/wave-ui/w-select
176
+ */
177
+ tile?: boolean;
178
+ /**
179
+ * TODO: Add Description
180
+ * @property {boolean} returnObject
181
+ * @see https://antoniandre.github.io/wave-ui/w-select
182
+ */
183
+ returnObject?: boolean;
184
+ /**
185
+ * TODO: Add Description
186
+ * @property {boolean} noUnselect
187
+ * @see https://antoniandre.github.io/wave-ui/w-select
188
+ */
189
+ noUnselect?: boolean;
190
+ /**
191
+ * TODO: Add Description
192
+ * @property {{}} menuProps
193
+ * @see https://antoniandre.github.io/wave-ui/w-select
194
+ */
195
+ menuProps?: {};
196
+ /**
197
+ * TODO: Add Description
198
+ * @property {boolean} dark
199
+ * @see https://antoniandre.github.io/wave-ui/w-select
200
+ */
201
+ dark?: boolean;
202
+ /**
203
+ * TODO: Add Description
204
+ * @property {boolean} light
205
+ * @see https://antoniandre.github.io/wave-ui/w-select
206
+ */
207
+ light?: boolean;
208
+ /**
209
+ * TODO: Add Description
210
+ * @property {boolean} fitToContent
211
+ * @see https://antoniandre.github.io/wave-ui/w-select
212
+ */
213
+ fitToContent?: boolean;
214
+ }
215
+ export interface WaveSelectEmits {
216
+ /**
217
+ * Emitted each time the selected item(s) changes.<br>Updates the v-model value in Vue 2.x only.
218
+ * @param {any} selectedValues - The new selected value(s). Array if <code>multiple</code> is set to <code>true</code>, single value otherwise.
219
+ * @see https://antoniandre.github.io/wave-ui/w-select
220
+ */
221
+ 'onInput'?: (selectedValues: any) => void;
222
+ /**
223
+ * Emitted each time the selected item(s) changes.<br>Updates the v-model value in Vue 3 only.
224
+ * @param {any} selectedValues - The new selected value(s). Array if <code>multiple</code> is set to <code>true</code>, single value otherwise.
225
+ * @see https://antoniandre.github.io/wave-ui/w-select
226
+ */
227
+ 'onUpdate:modelValue'?: (selectedValues: any) => void;
228
+ /**
229
+ * Emitted on select focus.
230
+ * @param {Event} e - The associated focus DOM event.
231
+ * @see https://antoniandre.github.io/wave-ui/w-select
232
+ */
233
+ 'onFocus'?: (e: Event) => void;
234
+ /**
235
+ * Emitted on select blur.
236
+ * @param {Event} e - The associated blur DOM event.
237
+ * @see https://antoniandre.github.io/wave-ui/w-select
238
+ */
239
+ 'onBlur'?: (e: Event) => void;
240
+ /**
241
+ * Emitted on select list item click.
242
+ * @param {WSelectDropdownItem} item - The clicked item object.
243
+ * @see https://antoniandre.github.io/wave-ui/w-select
244
+ */
245
+ 'onItemClick'?: (item: WSelectDropdownItem) => void;
246
+ /**
247
+ * Emitted on list item select (click or <kbd>enter</kbd> keydown).
248
+ * @param {WSelectDropdownItem} item - The selected item object.
249
+ * @see https://antoniandre.github.io/wave-ui/w-select
250
+ */
251
+ 'onItemSelect'?: (item: WSelectDropdownItem) => void;
252
+ /**
253
+ * Emitted on click of the left inner icon, if any.
254
+ * @param {Event} e - The associated click DOM event.
255
+ * @see https://antoniandre.github.io/wave-ui/w-select
256
+ */
257
+ 'onClick:innerIconLeft'?: (e: Event) => void;
258
+ /**
259
+ * Emitted on click of the right inner icon, if any.
260
+ * @param {Event} e - The associated click DOM event.
261
+ * @see https://antoniandre.github.io/wave-ui/w-select
262
+ */
263
+ 'onClick:innerIconRight'?: (e: Event) => void;
264
+ }
265
+ export interface WaveSelectComputeds extends ComputedOptions {
266
+ /**
267
+ * TODO: Add Description
268
+ * @see https://antoniandre.github.io/wave-ui/w-select
269
+ */
270
+ selectItems: ComputedGetter<any>;
271
+ /**
272
+ * TODO: Add Description
273
+ * @see https://antoniandre.github.io/wave-ui/w-select
274
+ */
275
+ hasValue: ComputedGetter<any>;
276
+ /**
277
+ * TODO: Add Description
278
+ * @see https://antoniandre.github.io/wave-ui/w-select
279
+ */
280
+ hasLabel: ComputedGetter<any>;
281
+ /**
282
+ * TODO: Add Description
283
+ * @see https://antoniandre.github.io/wave-ui/w-select
284
+ */
285
+ showLabelInside: ComputedGetter<any>;
286
+ /**
287
+ * TODO: Add Description
288
+ * @see https://antoniandre.github.io/wave-ui/w-select
289
+ */
290
+ selectionString: ComputedGetter<any>;
291
+ /**
292
+ * TODO: Add Description
293
+ * @see https://antoniandre.github.io/wave-ui/w-select
294
+ */
295
+ classes: ComputedGetter<any>;
296
+ /**
297
+ * TODO: Add Description
298
+ * @see https://antoniandre.github.io/wave-ui/w-select
299
+ */
300
+ inputWrapClasses: ComputedGetter<any>;
301
+ }
302
+ export interface WaveSelectMethods extends MethodOptions {
303
+ /**
304
+ * TODO: Add Description
305
+ * @param {any} e
306
+ * @see https://antoniandre.github.io/wave-ui/w-select
307
+ */
308
+ onFocus(e: any): void;
309
+ /**
310
+ * TODO: Add Description
311
+ * @param {any} e
312
+ * @see https://antoniandre.github.io/wave-ui/w-select
313
+ */
314
+ onBlur(e: any): void;
315
+ /**
316
+ * TODO: Add Description
317
+ * @param {any} e
318
+ * @see https://antoniandre.github.io/wave-ui/w-select
319
+ */
320
+ onKeydown(e: any): void;
321
+ /**
322
+ * TODO: Add Description
323
+ * @param {any} items
324
+ * @see https://antoniandre.github.io/wave-ui/w-select
325
+ */
326
+ onInput(items: any): void;
327
+ /**
328
+ * TODO: Add Description
329
+ * @see https://antoniandre.github.io/wave-ui/w-select
330
+ */
331
+ onInputFieldClick(): void;
332
+ /**
333
+ * TODO: Add Description
334
+ * @param {any} e
335
+ * @see https://antoniandre.github.io/wave-ui/w-select
336
+ */
337
+ onListItemSelect(e: any): void;
338
+ /**
339
+ * TODO: Add Description
340
+ * @see https://antoniandre.github.io/wave-ui/w-select
341
+ */
342
+ onReset(): void;
343
+ /**
344
+ * TODO: Add Description
345
+ * @param {any} items
346
+ * @see https://antoniandre.github.io/wave-ui/w-select
347
+ */
348
+ checkSelection(items: any): void;
349
+ /**
350
+ * TODO: Add Description
351
+ * @see https://antoniandre.github.io/wave-ui/w-select
352
+ */
353
+ openMenu(): void;
354
+ /**
355
+ * TODO: Add Description
356
+ * @see https://antoniandre.github.io/wave-ui/w-select
357
+ */
358
+ closeMenu(): void;
359
+ }
360
+ export type WaveSelectSlots = SlotsType<{
361
+ /**
362
+ * The label content, if the `label` prop is not flexible enough.
363
+ * @see https://antoniandre.github.io/wave-ui/w-select
364
+ */
365
+ 'default': () => any;
366
+ /**
367
+ * Provide a custom template for the selection string.
368
+ * @param {WSelectDropdownItem} item The selected item(s) object(s). May be an array if `multiple` is `true`, or a single object otherwise.
369
+ * @see https://antoniandre.github.io/wave-ui/w-select
370
+ */
371
+ 'selection': (_: {
372
+ item: WSelectDropdownItem;
373
+ }) => any;
374
+ /**
375
+ * `x` is an integer starting at `1`.
376
+ * Provide a custom content for a single select list item: the item at the index `x`.
377
+ * @param {WSelectDropdownItem} item The current item object.
378
+ * @param {boolean} selected A Boolean representing the selected state of the list item.
379
+ * @param {number} index The index of the list item.
380
+ * @see https://antoniandre.github.io/wave-ui/w-select
381
+ */
382
+ 'item.x': (_: {
383
+ item: WSelectDropdownItem;
384
+ selected: boolean;
385
+ index: number;
386
+ }) => any;
387
+ /**
388
+ * Provide a common custom template for all the select list items.
389
+ * @param {WSelectDropdownItem} item The current item object.
390
+ * @param {boolean} selected A Boolean representing the selected state of the list item.
391
+ * @param {number} index The index of the list item.
392
+ * @see https://antoniandre.github.io/wave-ui/w-select
393
+ */
394
+ 'item': (_: {
395
+ item: WSelectDropdownItem;
396
+ selected: boolean;
397
+ index: number;
398
+ }) => any;
399
+ /**
400
+ * The left icon, if the `innerIconLeft` prop is not flexible enough.
401
+ * @see https://antoniandre.github.io/wave-ui/w-input
402
+ */
403
+ 'icon-left': () => any;
404
+ /**
405
+ * The right icon, if the `innerIconRight` prop is not flexible enough.
406
+ * @see https://antoniandre.github.io/wave-ui/w-input
407
+ */
408
+ 'icon-right': () => any;
409
+ } & {
410
+ [k in `item${number}`]: (_: {
411
+ item: WSelectDropdownItem;
412
+ selected: boolean;
413
+ index: number;
414
+ }) => any;
415
+ }>;
416
+ export type WSelect = DefineComponent<WaveSelectProps, {}, {}, WaveSelectComputeds, WaveSelectMethods, {}, {}, WaveSelectEmits & EmitsOptions, string, PublicProps, ResolveProps<WaveSelectProps & WaveSelectEmits, EmitsOptions>, ExtractDefaultPropTypes<WaveSelectProps>, WaveSelectSlots>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });