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,165 @@
1
+ import { ComputedGetter, ComputedOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, SlotsType } from 'vue';
2
+ import { PublicProps, ResolveProps } from '../extra-vue-types';
3
+ export interface WaveFormProps {
4
+ /**
5
+ * ``value` in Vue 2.`
6
+ * Contains the status of the form validity at all times. Three values are possible: `null` when pristine (untouched), `false` when invalid, `true` when valid.
7
+ * This value gets updated every time a validation is triggered on a single field or on all the fields at once on form submit.
8
+ * Setting this value to `null` will reset the form.
9
+ * @property {any} modelValue
10
+ * @see https://antoniandre.github.io/wave-ui/w-form
11
+ */
12
+ modelValue?: any;
13
+ /**
14
+ * Native HTML submits the form to the server when all the form elements are valid.
15
+ * Usually and by default, the form submission is prevented and an AJAX call is made from the front end. This is completely up to the developer.
16
+ * @property {boolean} allowSubmit
17
+ * @see https://antoniandre.github.io/wave-ui/w-form
18
+ */
19
+ allowSubmit?: boolean;
20
+ /**
21
+ * Prevents the form element validation on keyup (happening by default).
22
+ * @property {boolean} noKeyupValidation
23
+ * @see https://antoniandre.github.io/wave-ui/w-form
24
+ */
25
+ noKeyupValidation?: boolean;
26
+ /**
27
+ * Prevents the form element validation on blur (happening by default).
28
+ * @property {boolean} noBlurValidation
29
+ * @see https://antoniandre.github.io/wave-ui/w-form
30
+ */
31
+ noBlurValidation?: boolean;
32
+ /**
33
+ * Reserves a space under all the form elements so that triggering an error and showing the error message will not change the height of the form.
34
+ * @property {boolean} errorPlaceholders
35
+ * @see https://antoniandre.github.io/wave-ui/w-form
36
+ */
37
+ errorPlaceholders?: boolean;
38
+ /**
39
+ * Applies a specific color to any input field failing the validation.
40
+ * 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).
41
+ * Providing a color hex, rgb(a) or hsl(a) will not work.
42
+ * @property {string} validationColor - Default: 'error'
43
+ * @see https://antoniandre.github.io/wave-ui/w-form
44
+ * @see https://antoniandre.github.io/wave-ui/colors
45
+ */
46
+ validationColor?: string;
47
+ /**
48
+ * Disables all the form fields all at once, making them unreactive to user interactions.
49
+ * @property {boolean} disabled
50
+ * @see https://antoniandre.github.io/wave-ui/w-form
51
+ */
52
+ disabled?: boolean;
53
+ /**
54
+ * Set all the form fields to readonly all at once. The fields will still look interactive but their value will not be editable by user interaction.
55
+ * @property {boolean} readonly
56
+ * @see https://antoniandre.github.io/wave-ui/w-form
57
+ */
58
+ readonly?: boolean;
59
+ }
60
+ export interface WaveFormEmits {
61
+ /**
62
+ * Emitted on form submit.
63
+ * @param {any} renameMe1 - The associated reset DOM event.
64
+ * @see https://antoniandre.github.io/wave-ui/w-form
65
+ */
66
+ 'onSubmit'?: (renameMe1: any) => void;
67
+ /**
68
+ * Emitted before validation, every time a validation is triggered.
69
+ * @see https://antoniandre.github.io/wave-ui/w-form
70
+ */
71
+ 'onBeforeValidate'?: () => void;
72
+ /**
73
+ * Emitted on form validate, every time a validation is triggered.<br>Returns a single object containing:
74
+ * @param {any} renameMe1 - The associated DOM event.
75
+ * @param {any} renameMe2 - An integer representing the number of errors in the form.
76
+ * @see https://antoniandre.github.io/wave-ui/w-form
77
+ */
78
+ 'onValidate'?: (renameMe1: any, renameMe2: any) => void;
79
+ /**
80
+ * Emitted on form success, when there is no error in the form and the validation is successful.<br>Returns a single object containing:
81
+ * @param {any} renameMe1 - The associated DOM event.
82
+ * @param {any} renameMe2 - An integer representing the number of errors in the form.
83
+ * @see https://antoniandre.github.io/wave-ui/w-form
84
+ */
85
+ 'onSuccess'?: (renameMe1: any, renameMe2: any) => void;
86
+ /**
87
+ * Emitted on form error, when there is at least one error in the form and the validation fails.<br>Returns a single object containing:
88
+ * @param {any} renameMe1 - The associated DOM event.
89
+ * @param {any} renameMe2 - An integer representing the number of errors in the form.
90
+ * @see https://antoniandre.github.io/wave-ui/w-form
91
+ */
92
+ 'onError'?: (renameMe1: any, renameMe2: any) => void;
93
+ /**
94
+ * Emitted on form reset. A reset can be triggered by setting the v-model value to null or by clicking on a reset button.
95
+ * @param {any} renameMe1 - The associated reset DOM event.
96
+ * @see https://antoniandre.github.io/wave-ui/w-form
97
+ */
98
+ 'onReset'?: (renameMe1: any) => void;
99
+ /**
100
+ * Emitted every time the form status changes.<br>Updates the v-model value in Vue 2.x only.
101
+ * @param {any} renameMe1 - The new status of the form: one of <code>null</code> when pristine, <code>false</code> when invalid, <code>true</code> when valid.
102
+ * @see https://antoniandre.github.io/wave-ui/w-form
103
+ */
104
+ 'onInput'?: (renameMe1: any) => void;
105
+ /**
106
+ * Emitted every time the form status changes.<br>Updates the v-model value in Vue 3 only.
107
+ * @param {any} renameMe1 - The new status of the form: one of <code>null</code> when pristine, <code>false</code> when invalid, <code>true</code> when valid.
108
+ * @see https://antoniandre.github.io/wave-ui/w-form
109
+ */
110
+ 'onUpdate:modelValue'?: (renameMe1: any) => void;
111
+ /**
112
+ * Emitted every time the errorsCount changes. To be used with <code>:errors-count.sync</code> in Vue 2 or <code>v-model:errors-count</code> in Vue 3.
113
+ * @param {any} renameMe1 - The number of errors in the form.
114
+ * @see https://antoniandre.github.io/wave-ui/w-form
115
+ */
116
+ 'onUpdate:errorsCount'?: (renameMe1: any) => void;
117
+ }
118
+ export interface WaveFormComputeds extends ComputedOptions {
119
+ /**
120
+ * TODO: Add Description
121
+ * @see https://antoniandre.github.io/wave-ui/w-form
122
+ */
123
+ classes: ComputedGetter<any>;
124
+ }
125
+ export interface WaveFormMethods extends MethodOptions {
126
+ /**
127
+ * TODO: Add Description
128
+ * @param {any} formElement
129
+ * @see https://antoniandre.github.io/wave-ui/w-form
130
+ */
131
+ register(formElement: any): void;
132
+ /**
133
+ * TODO: Add Description
134
+ * @param {any} formElement
135
+ * @see https://antoniandre.github.io/wave-ui/w-form
136
+ */
137
+ unregister(formElement: any): void;
138
+ /**
139
+ * TODO: Add Description
140
+ * @param {any} e
141
+ * @see https://antoniandre.github.io/wave-ui/w-form
142
+ */
143
+ reset(e: any): void;
144
+ /**
145
+ * TODO: Add Description
146
+ * @param {any} [count] - null
147
+ * @param {any} [reset] - false
148
+ * @see https://antoniandre.github.io/wave-ui/w-form
149
+ */
150
+ updateErrorsCount(count?: any, reset?: any): void;
151
+ /**
152
+ * TODO: Add Description
153
+ * @param {any} e
154
+ * @see https://antoniandre.github.io/wave-ui/w-form
155
+ */
156
+ onSubmit(e: any): void;
157
+ }
158
+ export type WaveFormSlots = SlotsType<{
159
+ /**
160
+ * The form content.
161
+ * @see https://antoniandre.github.io/wave-ui/w-form
162
+ */
163
+ 'default': () => any;
164
+ }>;
165
+ export type WForm = DefineComponent<WaveFormProps, {}, {}, WaveFormComputeds, WaveFormMethods, {}, {}, WaveFormEmits & EmitsOptions, string, PublicProps, ResolveProps<WaveFormProps & WaveFormEmits, EmitsOptions>, ExtractDefaultPropTypes<WaveFormProps>, WaveFormSlots>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,112 @@
1
+ import { ComputedGetter, ComputedOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, SlotsType } from 'vue';
2
+ import { PublicProps, ResolveProps } from '../extra-vue-types';
3
+ export interface WaveFormElementProps {
4
+ /**
5
+ * TODO: Add Description
6
+ * @property {any} [valid]
7
+ * @see https://antoniandre.github.io/wave-ui/w-form-element
8
+ */
9
+ valid: any;
10
+ /**
11
+ * TODO: Add Description
12
+ * @property {boolean} disabled
13
+ * @see https://antoniandre.github.io/wave-ui/w-form-element
14
+ */
15
+ disabled?: boolean;
16
+ /**
17
+ * TODO: Add Description
18
+ * @property {boolean} readonly
19
+ * @see https://antoniandre.github.io/wave-ui/w-form-element
20
+ */
21
+ readonly?: boolean;
22
+ /**
23
+ * TODO: Add Description
24
+ * @property {any} [inputValue]
25
+ * @see https://antoniandre.github.io/wave-ui/w-form-element
26
+ */
27
+ inputValue: any;
28
+ /**
29
+ * TODO: Add Description
30
+ * @property {Array<any>} validators
31
+ * @see https://antoniandre.github.io/wave-ui/w-form-element
32
+ */
33
+ validators?: Array<any>;
34
+ /**
35
+ * TODO: Add Description
36
+ * @property {any} isFocused - Default: false
37
+ * @see https://antoniandre.github.io/wave-ui/w-form-element
38
+ */
39
+ isFocused?: any;
40
+ /**
41
+ * TODO: Add Description
42
+ * @property {any} column - Default: false
43
+ * @see https://antoniandre.github.io/wave-ui/w-form-element
44
+ */
45
+ column?: any;
46
+ /**
47
+ * TODO: Add Description
48
+ * @property {any} wrap - Default: false
49
+ * @see https://antoniandre.github.io/wave-ui/w-form-element
50
+ */
51
+ wrap?: any;
52
+ /**
53
+ * TODO: Add Description
54
+ * @property {any} formRegister - Default: null
55
+ * @see https://antoniandre.github.io/wave-ui/w-form-element
56
+ */
57
+ formRegister?: any;
58
+ /**
59
+ * TODO: Add Description
60
+ * @property {any} formUnregister - Default: null
61
+ * @see https://antoniandre.github.io/wave-ui/w-form-element
62
+ */
63
+ formUnregister?: any;
64
+ /**
65
+ * TODO: Add Description
66
+ * @property {any} validateElement - Default: null
67
+ * @see https://antoniandre.github.io/wave-ui/w-form-element
68
+ */
69
+ validateElement?: any;
70
+ }
71
+ export interface WaveFormElementEmits {
72
+ /**
73
+ * TODO: Add Description
74
+ * @see https://antoniandre.github.io/wave-ui/w-form-element
75
+ */
76
+ 'onReset'?: () => void;
77
+ /**
78
+ * TODO: Add Description
79
+ * @see https://antoniandre.github.io/wave-ui/w-form-element
80
+ */
81
+ 'onUpdate:valid'?: () => void;
82
+ }
83
+ export interface WaveFormElementComputeds extends ComputedOptions {
84
+ /**
85
+ * TODO: Add Description
86
+ * @see https://antoniandre.github.io/wave-ui/w-form-element
87
+ */
88
+ classes: ComputedGetter<any>;
89
+ }
90
+ export interface WaveFormElementMethods extends MethodOptions {
91
+ /**
92
+ * TODO: Add Description
93
+ * @see https://antoniandre.github.io/wave-ui/w-form-element
94
+ */
95
+ reset(): void;
96
+ }
97
+ export type WaveFormElementSlots = SlotsType<{
98
+ /**
99
+ * TODO: Add Description
100
+ * @see https://antoniandre.github.io/wave-ui/w-form-element
101
+ */
102
+ 'default': () => any;
103
+ /**
104
+ * TODO: Add Description
105
+ * @param {any} message TODO: Describe me!
106
+ * @see https://antoniandre.github.io/wave-ui/w-form-element
107
+ */
108
+ 'error-message': (_: {
109
+ message: any;
110
+ }) => any;
111
+ }>;
112
+ export type WFormElement = DefineComponent<WaveFormElementProps, {}, {}, WaveFormElementComputeds, WaveFormElementMethods, {}, {}, WaveFormElementEmits & EmitsOptions, string, PublicProps, ResolveProps<WaveFormElementProps & WaveFormElementEmits, EmitsOptions>, ExtractDefaultPropTypes<WaveFormElementProps>, WaveFormElementSlots>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,51 @@
1
+ import { ComputedGetter, ComputedOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, SlotsType } from 'vue';
2
+ import { PublicProps, ResolveProps } from '../extra-vue-types';
3
+ export interface WaveGridProps {
4
+ /**
5
+ * TODO: Add Description
6
+ * @property {string} tag - Default: 'div'
7
+ * @see https://antoniandre.github.io/wave-ui/w-grid
8
+ */
9
+ tag?: string;
10
+ /**
11
+ * TODO: Add Description
12
+ * @property {number|{}|string} columns
13
+ * @see https://antoniandre.github.io/wave-ui/w-grid
14
+ */
15
+ columns?: number | {} | string;
16
+ /**
17
+ * TODO: Add Description
18
+ * @property {number|{}|string} gap - Default: 0
19
+ * @see https://antoniandre.github.io/wave-ui/w-grid
20
+ */
21
+ gap?: number | {} | string;
22
+ }
23
+ export interface WaveGridEmits {
24
+ }
25
+ export interface WaveGridComputeds extends ComputedOptions {
26
+ /**
27
+ * TODO: Add Description
28
+ * @see https://antoniandre.github.io/wave-ui/w-grid
29
+ */
30
+ breakpointsColumns: ComputedGetter<any>;
31
+ /**
32
+ * TODO: Add Description
33
+ * @see https://antoniandre.github.io/wave-ui/w-grid
34
+ */
35
+ breakpointsGap: ComputedGetter<any>;
36
+ /**
37
+ * TODO: Add Description
38
+ * @see https://antoniandre.github.io/wave-ui/w-grid
39
+ */
40
+ classes: ComputedGetter<any>;
41
+ }
42
+ export interface WaveGridMethods extends MethodOptions {
43
+ }
44
+ export type WaveGridSlots = SlotsType<{
45
+ /**
46
+ * TODO: Add Description
47
+ * @see https://antoniandre.github.io/wave-ui/w-grid
48
+ */
49
+ 'default': () => any;
50
+ }>;
51
+ export type WGrid = DefineComponent<WaveGridProps, {}, {}, WaveGridComputeds, WaveGridMethods, {}, {}, WaveGridEmits & EmitsOptions, string, PublicProps, ResolveProps<WaveGridProps & WaveGridEmits, EmitsOptions>, ExtractDefaultPropTypes<WaveGridProps>, WaveGridSlots>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,167 @@
1
+ import { ComputedGetter, ComputedOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, SlotsType } from 'vue';
2
+ import { PublicProps, ResolveProps } from '../extra-vue-types';
3
+ export interface WaveIconProps {
4
+ /**
5
+ * The HTML tag to render the icon into. `<i>` by default.
6
+ * @property {string} tag - Default: 'i'
7
+ * @see https://antoniandre.github.io/wave-ui/w-icon
8
+ */
9
+ tag?: string;
10
+ /**
11
+ * Applies a color to the icon'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).
12
+ * Providing a color hex, rgb(a) or hsl(a) will not work.
13
+ * @property {string} color
14
+ * @see https://antoniandre.github.io/wave-ui/w-icon
15
+ * @see https://antoniandre.github.io/wave-ui/colors
16
+ */
17
+ color?: string;
18
+ /**
19
+ * Applies a color to the icon'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).
20
+ * Providing a color hex, rgb(a) or hsl(a) will not work.
21
+ * @property {string} bgColor
22
+ * @see https://antoniandre.github.io/wave-ui/w-icon
23
+ * @see https://antoniandre.github.io/wave-ui/colors
24
+ */
25
+ bgColor?: string;
26
+ /**
27
+ * Sets the size of the icon (font-size).
28
+ * @property {boolean} xs
29
+ * @see https://antoniandre.github.io/wave-ui/w-icon
30
+ */
31
+ xs?: boolean;
32
+ /**
33
+ * Sets the size of the icon (font-size).
34
+ * @property {boolean} sm
35
+ * @see https://antoniandre.github.io/wave-ui/w-icon
36
+ */
37
+ sm?: boolean;
38
+ /**
39
+ * Sets the size of the icon (font-size).
40
+ * @property {boolean} md
41
+ * @see https://antoniandre.github.io/wave-ui/w-icon
42
+ */
43
+ md?: boolean;
44
+ /**
45
+ * Sets the size of the icon (font-size).
46
+ * @property {boolean} lg
47
+ * @see https://antoniandre.github.io/wave-ui/w-icon
48
+ */
49
+ lg?: boolean;
50
+ /**
51
+ * Sets the size of the icon (font-size).
52
+ * @property {boolean} xl
53
+ * @see https://antoniandre.github.io/wave-ui/w-icon
54
+ */
55
+ xl?: boolean;
56
+ /**
57
+ * Applies a continuous centered spin movement on the icon.
58
+ * @property {boolean} spin
59
+ * @see https://antoniandre.github.io/wave-ui/w-icon
60
+ */
61
+ spin?: boolean;
62
+ /**
63
+ * Applies a continuous centered anticlockwise spin movement on the icon.
64
+ * @property {boolean} spinA
65
+ * @see https://antoniandre.github.io/wave-ui/w-icon
66
+ */
67
+ spinA?: boolean;
68
+ /**
69
+ * Rotates the icon of 135 degrees anticlockwise.
70
+ * @property {boolean} rotate135a
71
+ * @see https://antoniandre.github.io/wave-ui/w-icon
72
+ */
73
+ rotate135a?: boolean;
74
+ /**
75
+ * Rotates the icon of 90 degrees anticlockwise.
76
+ * @property {boolean} rotate90a
77
+ * @see https://antoniandre.github.io/wave-ui/w-icon
78
+ */
79
+ rotate90a?: boolean;
80
+ /**
81
+ * Rotates the icon of 45 degrees anticlockwise.
82
+ * @property {boolean} rotate45a
83
+ * @see https://antoniandre.github.io/wave-ui/w-icon
84
+ */
85
+ rotate45a?: boolean;
86
+ /**
87
+ * Rotates the icon of 45 degrees clockwise.
88
+ * @property {boolean} rotate45
89
+ * @see https://antoniandre.github.io/wave-ui/w-icon
90
+ */
91
+ rotate45?: boolean;
92
+ /**
93
+ * Rotates the icon of 90 degrees clockwise.
94
+ * @property {boolean} rotate90
95
+ * @see https://antoniandre.github.io/wave-ui/w-icon
96
+ */
97
+ rotate90?: boolean;
98
+ /**
99
+ * Rotates the icon of 135 degrees clockwise.
100
+ * @property {boolean} rotate135
101
+ * @see https://antoniandre.github.io/wave-ui/w-icon
102
+ */
103
+ rotate135?: boolean;
104
+ /**
105
+ * Rotates the icon of 180 degrees clockwise.
106
+ * @property {boolean} rotate180
107
+ * @see https://antoniandre.github.io/wave-ui/w-icon
108
+ */
109
+ rotate180?: boolean;
110
+ /**
111
+ * Flips the icon horizontally.
112
+ * @property {boolean} flipX
113
+ * @see https://antoniandre.github.io/wave-ui/w-icon
114
+ */
115
+ flipX?: boolean;
116
+ /**
117
+ * Flips the icon vertically.
118
+ * @property {boolean} flipY
119
+ * @see https://antoniandre.github.io/wave-ui/w-icon
120
+ */
121
+ flipY?: boolean;
122
+ /**
123
+ * Sets the font-size of the icon.
124
+ * 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.
125
+ * @property {number|string} size
126
+ * @see https://antoniandre.github.io/wave-ui/w-icon
127
+ */
128
+ size?: number | string;
129
+ }
130
+ export interface WaveIconEmits {
131
+ }
132
+ export interface WaveIconComputeds extends ComputedOptions {
133
+ /**
134
+ * TODO: Add Description
135
+ * @see https://antoniandre.github.io/wave-ui/w-icon
136
+ */
137
+ hasLigature: ComputedGetter<any>;
138
+ /**
139
+ * TODO: Add Description
140
+ * @see https://antoniandre.github.io/wave-ui/w-icon
141
+ */
142
+ forcedSize: ComputedGetter<any>;
143
+ /**
144
+ * TODO: Add Description
145
+ * @see https://antoniandre.github.io/wave-ui/w-icon
146
+ */
147
+ presetSize: ComputedGetter<any>;
148
+ /**
149
+ * TODO: Add Description
150
+ * @see https://antoniandre.github.io/wave-ui/w-icon
151
+ */
152
+ classes: ComputedGetter<any>;
153
+ /**
154
+ * TODO: Add Description
155
+ * @see https://antoniandre.github.io/wave-ui/w-icon
156
+ */
157
+ styles: ComputedGetter<any>;
158
+ }
159
+ export interface WaveIconMethods extends MethodOptions {
160
+ /**
161
+ * TODO: Add Description
162
+ * @see https://antoniandre.github.io/wave-ui/w-icon
163
+ */
164
+ readIcon(): void;
165
+ }
166
+ export type WaveIconSlots = SlotsType<{}>;
167
+ export type WIcon = DefineComponent<WaveIconProps, {}, {}, WaveIconComputeds, WaveIconMethods, {}, {}, WaveIconEmits & EmitsOptions, string, PublicProps, ResolveProps<WaveIconProps & WaveIconEmits, EmitsOptions>, ExtractDefaultPropTypes<WaveIconProps>, WaveIconSlots>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,172 @@
1
+ import { ComputedGetter, ComputedOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, SlotsType } from 'vue';
2
+ import { PublicProps, ResolveProps } from '../extra-vue-types';
3
+ export interface WaveImageProps {
4
+ /**
5
+ * Tells which tag to use for the `w-image`'s image. It can be any valid HTML tag, like <span> or &lt;div&gt;. The wrapper of the image will use a &lt;span&gt; tag unless you use set the `tag` to div.
6
+ * If you use the `img` tag, the image itself will use the &lt;img&gt; tag and the wrapper will use a &lt;span&gt; tag. The image will have a particular behavior as explained in the `Using the &lt;img&gt; tag` example.
7
+ * @property {string} tag - Default: 'span'
8
+ * @see https://antoniandre.github.io/wave-ui/w-image
9
+ * @see https://antoniandre.github.io/wave-ui/#using-the-img-tag
10
+ */
11
+ tag?: string;
12
+ /**
13
+ * The source of the image to display.
14
+ * @property {string} src
15
+ * @see https://antoniandre.github.io/wave-ui/w-image
16
+ */
17
+ src?: string;
18
+ /**
19
+ * Sets the width of the image.
20
+ * Accepts a string made of a value and a unit (e.g. `10em`) or a number (e.g. `450`) that will be a pixel value.
21
+ * @property {number|string} width
22
+ * @see https://antoniandre.github.io/wave-ui/w-image
23
+ */
24
+ width?: number | string;
25
+ /**
26
+ * Sets the height of the image.
27
+ * Accepts a string made of a value and a unit (e.g. `10em`) or a number (e.g. `450`) that will be a pixel value.
28
+ * @property {number|string} height
29
+ * @see https://antoniandre.github.io/wave-ui/w-image
30
+ */
31
+ height?: number | string;
32
+ /**
33
+ * Sets the ratio of the image, allowing to only define a width or a height and preserve the image aspect ratio while resizing. Refer to the `Ratio` example.
34
+ * @property {number|string} ratio
35
+ * @see https://antoniandre.github.io/wave-ui/w-image
36
+ * @see https://antoniandre.github.io/wave-ui/#ratio
37
+ */
38
+ ratio?: number | string;
39
+ /**
40
+ * When set to true, the image will only load when it starts being visible in the viewport.
41
+ * Refer to the `Lazy` example.
42
+ * @property {boolean} lazy
43
+ * @see https://antoniandre.github.io/wave-ui/w-image
44
+ * @see https://antoniandre.github.io/wave-ui/#lazy
45
+ */
46
+ lazy?: boolean;
47
+ /**
48
+ * Sets the CSS position of the image to `absolute`.
49
+ * @property {boolean} absolute
50
+ * @see https://antoniandre.github.io/wave-ui/w-image
51
+ */
52
+ absolute?: boolean;
53
+ /**
54
+ * Sets the CSS position of the image to `fixed`.
55
+ * @property {boolean} fixed
56
+ * @see https://antoniandre.github.io/wave-ui/w-image
57
+ */
58
+ fixed?: boolean;
59
+ /**
60
+ * By default the `w-image` component uses a background to display the image, and it sets the `background-size` to "`cover`". This option will set the `background-size` to "`contain`".
61
+ * @property {boolean} contain
62
+ * @see https://antoniandre.github.io/wave-ui/w-image
63
+ */
64
+ contain?: boolean;
65
+ /**
66
+ * Removes the default spinner while the image is loading.
67
+ * @property {boolean} noSpinner
68
+ * @see https://antoniandre.github.io/wave-ui/w-image
69
+ */
70
+ noSpinner?: boolean;
71
+ /**
72
+ * Define a specific color for the spinner while the image is loading. By default the spinner color is the primary color.
73
+ * @property {string} spinnerColor
74
+ * @see https://antoniandre.github.io/wave-ui/w-image
75
+ */
76
+ spinnerColor?: string;
77
+ /**
78
+ * Provides a fallback image, to display when the given image source is not found. Refer to the `Fallback` example.
79
+ * @property {string} fallback
80
+ * @see https://antoniandre.github.io/wave-ui/w-image
81
+ * @see https://antoniandre.github.io/wave-ui/#fallback
82
+ */
83
+ fallback?: string;
84
+ /**
85
+ * Applies a particular transition to display the image when it is fully loaded.
86
+ * Check all the transitions that apply to the notification in the `Transitions` example. Refer to the `transitions` example.
87
+ * @property {string} transition - Default: 'fade'
88
+ * @see https://antoniandre.github.io/wave-ui/w-image
89
+ * @see https://antoniandre.github.io/wave-ui/#transitions
90
+ * @see https://antoniandre.github.io/wave-ui/#transitions
91
+ */
92
+ transition?: string;
93
+ /**
94
+ * Applies the given classes to the content wrapper when using the `default` slot.
95
+ * @property {string|Array<any>|{}} contentClass
96
+ * @see https://antoniandre.github.io/wave-ui/w-image
97
+ */
98
+ contentClass?: string | Array<any> | {};
99
+ }
100
+ export interface WaveImageEmits {
101
+ /**
102
+ * Emitted when the image starts loading.
103
+ * @param {any} renameMe1 - The image source that is being loaded (can be the provided <code>src</code> or <code>fallback</code> if the <code>src</code> already failed).
104
+ * @see https://antoniandre.github.io/wave-ui/w-image
105
+ */
106
+ 'onLoading'?: (renameMe1: any) => void;
107
+ /**
108
+ * Emitted on image successful load.
109
+ * @param {any} renameMe1 - The image source that was successfully loaded (can be the provided <code>src</code> or <code>fallback</code> if the <code>src</code> failed).
110
+ * @see https://antoniandre.github.io/wave-ui/w-image
111
+ */
112
+ 'onLoaded'?: (renameMe1: any) => void;
113
+ /**
114
+ * Emitted on image load error.
115
+ * @param {any} renameMe1 - The associated DOM event.
116
+ * @see https://antoniandre.github.io/wave-ui/w-image
117
+ */
118
+ 'onError'?: (renameMe1: any) => void;
119
+ }
120
+ export interface WaveImageComputeds extends ComputedOptions {
121
+ /**
122
+ * TODO: Add Description
123
+ * @see https://antoniandre.github.io/wave-ui/w-image
124
+ */
125
+ imgGivenRatio: ComputedGetter<any>;
126
+ /**
127
+ * TODO: Add Description
128
+ * @see https://antoniandre.github.io/wave-ui/w-image
129
+ */
130
+ wrapperTag: ComputedGetter<any>;
131
+ /**
132
+ * TODO: Add Description
133
+ * @see https://antoniandre.github.io/wave-ui/w-image
134
+ */
135
+ wrapperClasses: ComputedGetter<any>;
136
+ /**
137
+ * TODO: Add Description
138
+ * @see https://antoniandre.github.io/wave-ui/w-image
139
+ */
140
+ wrapperStyles: ComputedGetter<any>;
141
+ /**
142
+ * TODO: Add Description
143
+ * @see https://antoniandre.github.io/wave-ui/w-image
144
+ */
145
+ imageClasses: ComputedGetter<any>;
146
+ /**
147
+ * TODO: Add Description
148
+ * @see https://antoniandre.github.io/wave-ui/w-image
149
+ */
150
+ imageStyles: ComputedGetter<any>;
151
+ }
152
+ export interface WaveImageMethods extends MethodOptions {
153
+ /**
154
+ * TODO: Add Description
155
+ * @param {any} [loadFallback] - false
156
+ * @see https://antoniandre.github.io/wave-ui/w-image
157
+ */
158
+ loadImage(loadFallback?: any): void;
159
+ }
160
+ export type WaveImageSlots = SlotsType<{
161
+ /**
162
+ * Provide a custom loading content, if the default spinner doesn't suit in your app.
163
+ * @see https://antoniandre.github.io/wave-ui/w-image
164
+ */
165
+ 'loading': () => any;
166
+ /**
167
+ * Provide a custom content, to display on top of the image.
168
+ * @see https://antoniandre.github.io/wave-ui/w-image
169
+ */
170
+ 'default': () => any;
171
+ }>;
172
+ export type WImage = DefineComponent<WaveImageProps, {}, {}, WaveImageComputeds, WaveImageMethods, {}, {}, WaveImageEmits & EmitsOptions, string, PublicProps, ResolveProps<WaveImageProps & WaveImageEmits, EmitsOptions>, ExtractDefaultPropTypes<WaveImageProps>, WaveImageSlots>;