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,118 @@
1
+ import { ComputedGetter, ComputedOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, SlotsType } from 'vue';
2
+ import { PublicProps, ResolveProps } from '../extra-vue-types';
3
+ export interface WaveOverlayProps {
4
+ /**
5
+ * ``value` in Vue 2.`
6
+ * This prop controls the visibility of the overlay. Any truthy value will show the overlay whereas any falsy value will hide it.
7
+ * @property {any} modelValue
8
+ * @see https://antoniandre.github.io/wave-ui/w-overlay
9
+ */
10
+ modelValue?: any;
11
+ /**
12
+ * Sets a custom opacity on the overlay.
13
+ * @property {number|string|boolean} opacity
14
+ * @see https://antoniandre.github.io/wave-ui/w-overlay
15
+ */
16
+ opacity?: number | string | boolean;
17
+ /**
18
+ * Applies a color to the overlay'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).
19
+ * Providing a color hex, rgb(a) or hsl(a) will not work.
20
+ * @property {string} bgColor
21
+ * @see https://antoniandre.github.io/wave-ui/w-overlay
22
+ * @see https://antoniandre.github.io/wave-ui/colors
23
+ */
24
+ bgColor?: string;
25
+ /**
26
+ * Sets the CSS position of the overlay to `absolute`. By default it is set to `fixed`.
27
+ * @property {boolean} absolute
28
+ * @see https://antoniandre.github.io/wave-ui/w-overlay
29
+ */
30
+ absolute?: boolean;
31
+ /**
32
+ * Applies a z-index (positive or negative integer) to the overlay.
33
+ * @property {number|string|boolean} zIndex
34
+ * @see https://antoniandre.github.io/wave-ui/w-overlay
35
+ */
36
+ zIndex?: number | string | boolean;
37
+ /**
38
+ * When set to true, clicking outside of the overlay or pressing the escape key will not close the overlay.
39
+ * A bounce animation will give the user a feedback that the overlay content needs attention and cannot be closed.
40
+ * @property {boolean} persistent
41
+ * @see https://antoniandre.github.io/wave-ui/w-overlay
42
+ */
43
+ persistent?: boolean;
44
+ /**
45
+ * When this and the `persistent` props are set to true, clicking outside of the overlay or pressing the escape key will not trigger the default bounce animation (no feedback is given to the user).
46
+ * @property {boolean} persistentNoAnimation
47
+ * @see https://antoniandre.github.io/wave-ui/w-overlay
48
+ */
49
+ persistentNoAnimation?: boolean;
50
+ }
51
+ export interface WaveOverlayEmits {
52
+ /**
53
+ * Emitted on overlay close (a click on overlay doesn't trigger this event if <code>persistent</code>).<br>Updates the v-model value in Vue 2.x only.
54
+ * @param {any} renameMe1 - Represents the open state of the overlay: false on overlay close.
55
+ * @see https://antoniandre.github.io/wave-ui/w-overlay
56
+ */
57
+ 'onInput'?: (renameMe1: any) => void;
58
+ /**
59
+ * Emitted on overlay close (a click on overlay doesn't trigger this event if <code>persistent</code>).<br>Updates the v-model value in Vue 3 only.
60
+ * @param {any} renameMe1 - Represents the open state of the overlay: false on overlay close.
61
+ * @see https://antoniandre.github.io/wave-ui/w-overlay
62
+ */
63
+ 'onUpdate:modelValue'?: (renameMe1: any) => void;
64
+ /**
65
+ * Emitted on every overlay click. Whether the <code>persistent</code> prop is set to true or false.
66
+ * @param {any} renameMe1 - The associated click DOM event.
67
+ * @see https://antoniandre.github.io/wave-ui/w-overlay
68
+ */
69
+ 'onClick'?: (renameMe1: any) => void;
70
+ /**
71
+ * TODO: Add Description
72
+ * @see https://antoniandre.github.io/wave-ui/w-overlay
73
+ */
74
+ 'onBeforeClose'?: () => void;
75
+ /**
76
+ * Emitted on overlay close (a click on overlay doesn't trigger this event if <code>persistent</code>).
77
+ * @see https://antoniandre.github.io/wave-ui/w-overlay
78
+ */
79
+ 'onClose'?: () => void;
80
+ }
81
+ export interface WaveOverlayComputeds extends ComputedOptions {
82
+ /**
83
+ * TODO: Add Description
84
+ * @see https://antoniandre.github.io/wave-ui/w-overlay
85
+ */
86
+ backgroundColor: ComputedGetter<any>;
87
+ /**
88
+ * TODO: Add Description
89
+ * @see https://antoniandre.github.io/wave-ui/w-overlay
90
+ */
91
+ classes: ComputedGetter<any>;
92
+ /**
93
+ * TODO: Add Description
94
+ * @see https://antoniandre.github.io/wave-ui/w-overlay
95
+ */
96
+ styles: ComputedGetter<any>;
97
+ }
98
+ export interface WaveOverlayMethods extends MethodOptions {
99
+ /**
100
+ * TODO: Add Description
101
+ * @param {any} e
102
+ * @see https://antoniandre.github.io/wave-ui/w-overlay
103
+ */
104
+ onClick(e: any): void;
105
+ /**
106
+ * TODO: Add Description
107
+ * @see https://antoniandre.github.io/wave-ui/w-overlay
108
+ */
109
+ onClose(): void;
110
+ }
111
+ export type WaveOverlaySlots = SlotsType<{
112
+ /**
113
+ * The overlay content, if any.
114
+ * @see https://antoniandre.github.io/wave-ui/w-overlay
115
+ */
116
+ 'default': () => any;
117
+ }>;
118
+ export type WOverlay = DefineComponent<WaveOverlayProps, {}, {}, WaveOverlayComputeds, WaveOverlayMethods, {}, {}, WaveOverlayEmits & EmitsOptions, string, PublicProps, ResolveProps<WaveOverlayProps & WaveOverlayEmits, EmitsOptions>, ExtractDefaultPropTypes<WaveOverlayProps>, WaveOverlaySlots>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,177 @@
1
+ import { ComputedGetter, ComputedOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, SlotsType } from 'vue';
2
+ import { PublicProps, ResolveProps } from '../extra-vue-types';
3
+ export interface WaveProgressProps {
4
+ /**
5
+ * ``value` in Vue 2.`
6
+ * Accepts a percentage value (ranging from 0 to 100) as a number or a string.
7
+ * If the value is `undefined`, `-1` or not provided at all, it will be assumed indeterminate.
8
+ * @property {number|string|boolean} modelValue - Default: -1
9
+ * @see https://antoniandre.github.io/wave-ui/w-progress
10
+ */
11
+ modelValue?: number | string | boolean;
12
+ /**
13
+ * Shows or hides the label of the progress containing the current progress value.
14
+ * @property {boolean} label
15
+ * @see https://antoniandre.github.io/wave-ui/w-progress
16
+ */
17
+ label?: boolean;
18
+ /**
19
+ * Applies a round line-cap to the progress.
20
+ * @property {boolean} roundCap
21
+ * @see https://antoniandre.github.io/wave-ui/w-progress
22
+ */
23
+ roundCap?: boolean;
24
+ /**
25
+ * Applies a foreground color to the progress. 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).
26
+ * Providing a color hex, rgb(a) or hsl(a) will not work.
27
+ * @property {string} color - Default: 'primary'
28
+ * @see https://antoniandre.github.io/wave-ui/w-progress
29
+ * @see https://antoniandre.github.io/wave-ui/colors
30
+ */
31
+ color?: string;
32
+ /**
33
+ * Applies a color to the progress' 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).
34
+ * Providing a color hex, rgb(a) or hsl(a) will not work.
35
+ * @property {string} bgColor
36
+ * @see https://antoniandre.github.io/wave-ui/w-progress
37
+ * @see https://antoniandre.github.io/wave-ui/colors
38
+ */
39
+ bgColor?: string;
40
+ /**
41
+ * Applies a color to the progress label'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).
42
+ * Providing a color hex, rgb(a) or hsl(a) will not work.
43
+ * @property {string} labelColor
44
+ * @see https://antoniandre.github.io/wave-ui/w-progress
45
+ * @see https://antoniandre.github.io/wave-ui/colors
46
+ */
47
+ labelColor?: string;
48
+ /**
49
+ * Sets the size of the progress element: the width if circular, or the height if linear.
50
+ * 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.
51
+ * @property {number|string} size
52
+ * @see https://antoniandre.github.io/wave-ui/w-progress
53
+ */
54
+ size?: number | string;
55
+ /**
56
+ * Sets the progress style to circle.
57
+ * @property {boolean} circle
58
+ * @see https://antoniandre.github.io/wave-ui/w-progress
59
+ */
60
+ circle?: boolean;
61
+ /**
62
+ * Only applies to a circular progress.
63
+ * Sets the thickness of the circular progress.
64
+ * @property {number|string} stroke - Default: 4
65
+ * @see https://antoniandre.github.io/wave-ui/w-progress
66
+ */
67
+ stroke?: number | string;
68
+ /**
69
+ * Only applies to a linear progress.
70
+ * Applies a drop shadow to the progress bar.
71
+ * @property {boolean} shadow
72
+ * @see https://antoniandre.github.io/wave-ui/w-progress
73
+ */
74
+ shadow?: boolean;
75
+ /**
76
+ * Only applies to a linear progress.
77
+ * Removes the default border-radius and sets sharp edges on the progress bar.
78
+ * @property {boolean} tile
79
+ * @see https://antoniandre.github.io/wave-ui/w-progress
80
+ */
81
+ tile?: boolean;
82
+ /**
83
+ * Only applies to a linear progress.
84
+ * Sets a maximum border-radius on the corners of the progress, giving it a round look.
85
+ * @property {boolean} round
86
+ * @see https://antoniandre.github.io/wave-ui/w-progress
87
+ */
88
+ round?: boolean;
89
+ /**
90
+ * Only applies to a linear progress.
91
+ * When using the linear progress, the outline style applies the provided `color` (by default the `primary` color is used) to the progress, border and label and no background color is set.
92
+ * @property {boolean} outline
93
+ * @see https://antoniandre.github.io/wave-ui/w-progress
94
+ */
95
+ outline?: boolean;
96
+ /**
97
+ * Only applies to a linear progress.
98
+ * Applies an animated stripes background on the progress bar.
99
+ * @property {boolean} stripes
100
+ * @see https://antoniandre.github.io/wave-ui/w-progress
101
+ */
102
+ stripes?: boolean;
103
+ /**
104
+ * Sets the CSS position of the progress element to `absolute`.
105
+ * @property {boolean} absolute
106
+ * @see https://antoniandre.github.io/wave-ui/w-progress
107
+ */
108
+ absolute?: boolean;
109
+ /**
110
+ * Sets the CSS position of the progress element to `fixed`.
111
+ * @property {boolean} fixed
112
+ * @see https://antoniandre.github.io/wave-ui/w-progress
113
+ */
114
+ fixed?: boolean;
115
+ /**
116
+ * Places the progress element at the top of the screen when the `fixed` prop is set to true or at the top of its container when the `absolute` prop is set to true.
117
+ * @property {boolean} top
118
+ * @see https://antoniandre.github.io/wave-ui/w-progress
119
+ */
120
+ top?: boolean;
121
+ /**
122
+ * Places the progress element at the bottom of the screen when the `fixed` prop is set to true or at the bottom of its container when the `absolute` prop is set to true.
123
+ * @property {boolean} bottom
124
+ * @see https://antoniandre.github.io/wave-ui/w-progress
125
+ */
126
+ bottom?: boolean;
127
+ /**
128
+ * Applies a z-index (positive or negative integer) to the progress element.
129
+ * @property {number|string|boolean} zIndex
130
+ * @see https://antoniandre.github.io/wave-ui/w-progress
131
+ */
132
+ zIndex?: number | string | boolean;
133
+ }
134
+ export interface WaveProgressEmits {
135
+ }
136
+ export interface WaveProgressComputeds extends ComputedOptions {
137
+ /**
138
+ * TODO: Add Description
139
+ * @see https://antoniandre.github.io/wave-ui/w-progress
140
+ */
141
+ progressValue: ComputedGetter<any>;
142
+ /**
143
+ * TODO: Add Description
144
+ * @see https://antoniandre.github.io/wave-ui/w-progress
145
+ */
146
+ circleCenter: ComputedGetter<any>;
147
+ /**
148
+ * TODO: Add Description
149
+ * @see https://antoniandre.github.io/wave-ui/w-progress
150
+ */
151
+ forcedSize: ComputedGetter<any>;
152
+ /**
153
+ * TODO: Add Description
154
+ * @see https://antoniandre.github.io/wave-ui/w-progress
155
+ */
156
+ position: ComputedGetter<any>;
157
+ /**
158
+ * TODO: Add Description
159
+ * @see https://antoniandre.github.io/wave-ui/w-progress
160
+ */
161
+ classes: ComputedGetter<any>;
162
+ /**
163
+ * TODO: Add Description
164
+ * @see https://antoniandre.github.io/wave-ui/w-progress
165
+ */
166
+ styles: ComputedGetter<any>;
167
+ }
168
+ export interface WaveProgressMethods extends MethodOptions {
169
+ }
170
+ export type WaveProgressSlots = SlotsType<{
171
+ /**
172
+ * Provide a custom progress label.
173
+ * @see https://antoniandre.github.io/wave-ui/w-progress
174
+ */
175
+ 'default': () => any;
176
+ }>;
177
+ export type WProgress = DefineComponent<WaveProgressProps, {}, {}, WaveProgressComputeds, WaveProgressMethods, {}, {}, WaveProgressEmits & EmitsOptions, string, PublicProps, ResolveProps<WaveProgressProps & WaveProgressEmits, EmitsOptions>, ExtractDefaultPropTypes<WaveProgressProps>, WaveProgressSlots>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,121 @@
1
+ import { ComputedGetter, ComputedOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, SlotsType } from 'vue';
2
+ import { PublicProps, ResolveProps } from '../extra-vue-types';
3
+ export interface WaveRadioProps {
4
+ /**
5
+ * TODO: Add Description
6
+ * @property {any} wRadios - Default: null }
7
+ * @see https://antoniandre.github.io/wave-ui/w-radio
8
+ */
9
+ wRadios?: any;
10
+ /**
11
+ * ``value` in Vue 2.`
12
+ * Provide a boolean to dictate the selected state of the radio button.
13
+ * This value gets updated when using a v-model.
14
+ * @property {any} modelValue - Default: false
15
+ * @see https://antoniandre.github.io/wave-ui/w-radio
16
+ */
17
+ modelValue?: any;
18
+ /**
19
+ * Since the native HTML radio uses the `value` attribute to define the selected state, the `return-value` prop let you specify a value to return to the `v-model` when the radio is selected (instead of returning `true`).
20
+ * @property {any} returnValue
21
+ * @see https://antoniandre.github.io/wave-ui/w-radio
22
+ */
23
+ returnValue?: any;
24
+ /**
25
+ * Sets a visible label for the radio button.
26
+ * @property {string} label
27
+ * @see https://antoniandre.github.io/wave-ui/w-radio
28
+ */
29
+ label?: string;
30
+ /**
31
+ * Moves the label to the left of the radio button. By default the label is displayed on the right.
32
+ * @property {boolean} labelOnLeft
33
+ * @see https://antoniandre.github.io/wave-ui/w-radio
34
+ */
35
+ labelOnLeft?: boolean;
36
+ /**
37
+ * Applies a color to the radio button when active. 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).
38
+ * Providing a color hex, rgb(a) or hsl(a) will not work.
39
+ * @property {string} color - Default: 'primary'
40
+ * @see https://antoniandre.github.io/wave-ui/w-radio
41
+ * @see https://antoniandre.github.io/wave-ui/colors
42
+ */
43
+ color?: string;
44
+ /**
45
+ * Applies a specific color to the radio button's label. Note that on validation failure, the validation-color takes precedence.
46
+ * 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).
47
+ * Providing a color hex, rgb(a) or hsl(a) will not work.
48
+ * @property {string} labelColor - Default: 'primary'
49
+ * @see https://antoniandre.github.io/wave-ui/w-radio
50
+ * @see https://antoniandre.github.io/wave-ui/colors
51
+ */
52
+ labelColor?: string;
53
+ /**
54
+ * Removes the ripple animation on select.
55
+ * @property {boolean} noRipple
56
+ * @see https://antoniandre.github.io/wave-ui/w-radio
57
+ */
58
+ noRipple?: boolean;
59
+ /**
60
+ * TODO: Add Description
61
+ * @property {boolean} dark
62
+ * @see https://antoniandre.github.io/wave-ui/w-radio
63
+ */
64
+ dark?: boolean;
65
+ /**
66
+ * TODO: Add Description
67
+ * @property {boolean} light
68
+ * @see https://antoniandre.github.io/wave-ui/w-radio
69
+ */
70
+ light?: boolean;
71
+ }
72
+ export interface WaveRadioEmits {
73
+ /**
74
+ * TODO: Add Description
75
+ * @see https://antoniandre.github.io/wave-ui/w-radio
76
+ */
77
+ 'onInput'?: () => void;
78
+ /**
79
+ * TODO: Add Description
80
+ * @see https://antoniandre.github.io/wave-ui/w-radio
81
+ */
82
+ 'onUpdate:modelValue'?: () => void;
83
+ /**
84
+ * TODO: Add Description
85
+ * @see https://antoniandre.github.io/wave-ui/w-radio
86
+ */
87
+ 'onFocus'?: () => void;
88
+ }
89
+ export interface WaveRadioComputeds extends ComputedOptions {
90
+ /**
91
+ * TODO: Add Description
92
+ * @see https://antoniandre.github.io/wave-ui/w-radio
93
+ */
94
+ hasLabel: ComputedGetter<any>;
95
+ /**
96
+ * TODO: Add Description
97
+ * @see https://antoniandre.github.io/wave-ui/w-radio
98
+ */
99
+ classes: ComputedGetter<any>;
100
+ }
101
+ export interface WaveRadioMethods extends MethodOptions {
102
+ /**
103
+ * TODO: Add Description
104
+ * @see https://antoniandre.github.io/wave-ui/w-radio
105
+ */
106
+ toggleFromOutside(): void;
107
+ /**
108
+ * TODO: Add Description
109
+ * @param {any} e
110
+ * @see https://antoniandre.github.io/wave-ui/w-radio
111
+ */
112
+ onInput(e: any): void;
113
+ }
114
+ export type WaveRadioSlots = SlotsType<{
115
+ /**
116
+ * The radio button label content.
117
+ * @see https://antoniandre.github.io/wave-ui/w-radio
118
+ */
119
+ 'default': () => any;
120
+ }>;
121
+ export type WRadio = DefineComponent<WaveRadioProps, {}, {}, WaveRadioComputeds, WaveRadioMethods, {}, {}, WaveRadioEmits & EmitsOptions, string, PublicProps, ResolveProps<WaveRadioProps & WaveRadioEmits, EmitsOptions>, ExtractDefaultPropTypes<WaveRadioProps>, WaveRadioSlots>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,129 @@
1
+ import { ComputedGetter, ComputedOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, SlotsType } from 'vue';
2
+ import { PublicProps, ResolveProps } from '../extra-vue-types';
3
+ export interface WaveRadiosProps {
4
+ /**
5
+ * An array of radio button items to display. Each item object should contain at least a `label` or a `value` attribute.
6
+ * @property {Array<any>} [items]
7
+ * @see https://antoniandre.github.io/wave-ui/w-radios
8
+ */
9
+ items: Array<any>;
10
+ /**
11
+ * ``value` in Vue 2.`
12
+ * Provide a value (of one of the `items` objects) to dictate the selected choice.
13
+ * This value gets updated when using a v-model.
14
+ * @property {string|number|boolean} modelValue
15
+ * @see https://antoniandre.github.io/wave-ui/w-radios
16
+ */
17
+ modelValue?: string | number | boolean;
18
+ /**
19
+ * Moves the label to the left of each radio button. By default the label is displayed on the right.
20
+ * @property {boolean} labelOnLeft
21
+ * @see https://antoniandre.github.io/wave-ui/w-radios
22
+ */
23
+ labelOnLeft?: boolean;
24
+ /**
25
+ * The property name (aka "key") in each item object where to find the label of the item (if any).
26
+ * @property {string} itemLabelKey - Default: 'label'
27
+ * @see https://antoniandre.github.io/wave-ui/w-radios
28
+ */
29
+ itemLabelKey?: string;
30
+ /**
31
+ * The property name (aka "key") in each item object where to find the value of the item (if any).
32
+ * @property {string} itemValueKey - Default: 'value'
33
+ * @see https://antoniandre.github.io/wave-ui/w-radios
34
+ */
35
+ itemValueKey?: string;
36
+ /**
37
+ * The property name (aka "key") in each item object where to find the color of the item (if any).
38
+ * @property {string} itemColorKey - Default: 'color'
39
+ * @see https://antoniandre.github.io/wave-ui/w-radios
40
+ */
41
+ itemColorKey?: string;
42
+ /**
43
+ * Displays all the radio buttons inline instead of in column.
44
+ * @property {boolean} inline
45
+ * @see https://antoniandre.github.io/wave-ui/w-radios
46
+ */
47
+ inline?: boolean;
48
+ /**
49
+ * Applies a color to the active radio buttons. 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).
50
+ * Providing a color hex, rgb(a) or hsl(a) will not work.
51
+ * @property {string} color - Default: 'primary'
52
+ * @see https://antoniandre.github.io/wave-ui/w-radios
53
+ * @see https://antoniandre.github.io/wave-ui/colors
54
+ */
55
+ color?: string;
56
+ /**
57
+ * Applies a specific color to the radio buttons' labels. Note that on validation failure, the validation-color takes precedence.
58
+ * 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).
59
+ * Providing a color hex, rgb(a) or hsl(a) will not work.
60
+ * @property {string} labelColor - Default: 'primary'
61
+ * @see https://antoniandre.github.io/wave-ui/w-radios
62
+ * @see https://antoniandre.github.io/wave-ui/colors
63
+ */
64
+ labelColor?: string;
65
+ }
66
+ export interface WaveRadiosEmits {
67
+ /**
68
+ * TODO: Add Description
69
+ * @see https://antoniandre.github.io/wave-ui/w-radios
70
+ */
71
+ 'onInput'?: () => void;
72
+ /**
73
+ * TODO: Add Description
74
+ * @see https://antoniandre.github.io/wave-ui/w-radios
75
+ */
76
+ 'onUpdate:modelValue'?: () => void;
77
+ /**
78
+ * TODO: Add Description
79
+ * @see https://antoniandre.github.io/wave-ui/w-radios
80
+ */
81
+ 'onFocus'?: () => void;
82
+ }
83
+ export interface WaveRadiosComputeds extends ComputedOptions {
84
+ /**
85
+ * TODO: Add Description
86
+ * @see https://antoniandre.github.io/wave-ui/w-radios
87
+ */
88
+ radioItems: ComputedGetter<any>;
89
+ /**
90
+ * TODO: Add Description
91
+ * @see https://antoniandre.github.io/wave-ui/w-radios
92
+ */
93
+ classes: ComputedGetter<any>;
94
+ }
95
+ export interface WaveRadiosMethods extends MethodOptions {
96
+ /**
97
+ * TODO: Add Description
98
+ * @param {any} item
99
+ * @see https://antoniandre.github.io/wave-ui/w-radios
100
+ */
101
+ onInput(item: any): void;
102
+ /**
103
+ * TODO: Add Description
104
+ * @param {any} item
105
+ * @see https://antoniandre.github.io/wave-ui/w-radios
106
+ */
107
+ getOriginalItem(item: any): void;
108
+ }
109
+ export type WaveRadiosSlots = SlotsType<{
110
+ /**
111
+ * TODO: Add Description
112
+ * @param {any} item TODO: Describe me!
113
+ * @param {any} index TODO: Describe me!
114
+ * @param {any} checked TODO: Describe me!
115
+ * @see https://antoniandre.github.io/wave-ui/w-radios
116
+ */
117
+ 'item.x': (_: {
118
+ item: any;
119
+ index: any;
120
+ checked: any;
121
+ }) => any;
122
+ } & {
123
+ [k in `item'${number}`]: (_: {
124
+ item: any;
125
+ index: any;
126
+ checked: any;
127
+ }) => any;
128
+ }>;
129
+ export type WRadios = DefineComponent<WaveRadiosProps, {}, {}, WaveRadiosComputeds, WaveRadiosMethods, {}, {}, WaveRadiosEmits & EmitsOptions, string, PublicProps, ResolveProps<WaveRadiosProps & WaveRadiosEmits, EmitsOptions>, ExtractDefaultPropTypes<WaveRadiosProps>, WaveRadiosSlots>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });