@hotelinking/ui 9.41.15 → 9.41.18
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/components/Atoms/uiButton/uiButton.vue.d.ts +10 -31
- package/dist/types/components/Atoms/uiCheckbox/uiCheckbox.vue.d.ts +14 -34
- package/dist/types/components/Atoms/uiDropdown/uiDropdown.vue.d.ts +6 -29
- package/dist/types/components/Atoms/uiIcon/uiIcon.vue.d.ts +3 -28
- package/dist/types/components/Atoms/uiInput/uiInput.vue.d.ts +9 -40
- package/dist/types/components/Atoms/uiInputFile/uiInputFile.vue.d.ts +7 -34
- package/dist/types/components/Atoms/uiRangeSlider/uiRangeSlider.vue.d.ts +7 -31
- package/dist/types/components/Atoms/uiSelect/uiSelect.vue.d.ts +6 -29
- package/dist/types/components/Atoms/uiTag/uiTag.vue.d.ts +14 -34
- package/dist/types/components/Atoms/uiTextArea/uiTextArea.vue.d.ts +14 -36
- package/dist/types/components/Atoms/uiToggle/uiToggle.vue.d.ts +3 -28
- package/dist/types/components/Common/SkeletonTable/SkeletonTable.vue.d.ts +1 -1
- package/dist/types/components/Molecules/uiAlert/uiAlert.vue.d.ts +9 -27
- package/dist/types/components/Molecules/uiBreadcrumbs/uiBreadcrumbs.vue.d.ts +2 -23
- package/dist/types/components/Molecules/uiCard/uiCard.vue.d.ts +2 -23
- package/dist/types/components/Molecules/uiDeviceStatus/uiDeviceStatus.vue.d.ts +2 -25
- package/dist/types/components/Molecules/uiFilter/uiFilter.vue.d.ts +5 -28
- package/dist/types/components/Molecules/uiModal/uiModal.vue.d.ts +12 -32
- package/dist/types/components/Molecules/uiNotification/uiNotification.vue.d.ts +2 -27
- package/dist/types/components/Molecules/uiSectionTitle/uiSectionTitle.vue.d.ts +1 -10
- package/dist/types/components/Molecules/uiTaskList/uiTaskList.vue.d.ts +2 -23
- package/dist/types/components/Organisms/uiCharts/RangeSelector.vue.d.ts +4 -4
- package/dist/types/components/Organisms/uiCharts/uiChart.vue.d.ts +7 -42
- package/dist/types/components/Organisms/uiCircleCharts/uiCircleChart.vue.d.ts +4 -37
- package/dist/types/components/Organisms/uiDateRange/uiDateRange.vue.d.ts +1 -10
- package/dist/types/components/Organisms/uiDragAndDrop/uiDragAndDrop.vue.d.ts +5 -26
- package/dist/types/components/Organisms/uiDynamicStats/uiDynamicStats.vue.d.ts +2 -23
- package/dist/types/components/Organisms/uiFooter/uiFooter.vue.d.ts +1 -1
- package/dist/types/components/Organisms/uiFunnelChartV2/uiFunnelChartV2.vue.d.ts +7 -42
- package/dist/types/components/Organisms/uiGallery/uiGallery.vue.d.ts +6 -15
- package/dist/types/components/Organisms/uiLoadingScreen/uiLoadingScreen.vue.d.ts +2 -23
- package/dist/types/components/Organisms/uiNoResults/uiNoResults.vue.d.ts +5 -14
- package/dist/types/components/Organisms/uiPagination/uiPagination.vue.d.ts +17 -33
- package/dist/types/components/Organisms/uiPriceCalendar/DateSelector.vue.d.ts +6 -3
- package/dist/types/components/Organisms/uiPriceCalendar/Day.vue.d.ts +3 -3
- package/dist/types/components/Organisms/uiPriceCalendar/Price.vue.d.ts +4 -4
- package/dist/types/components/Organisms/uiPriceCalendar/uiPriceCalendar.vue.d.ts +90 -4
- package/dist/types/components/Organisms/uiRightSidebar/uiRightSidebar.vue.d.ts +12 -28
- package/dist/types/components/Organisms/uiSidebar/uiSidebar.vue.d.ts +4 -25
- package/dist/types/components/Organisms/uiSidebar/uiSidebarV2.vue.d.ts +4 -27
- package/dist/types/components/Organisms/uiStats/uiStats.vue.d.ts +5 -26
- package/dist/types/components/Organisms/uiStripedCard/uiStripedCard.vue.d.ts +5 -26
- package/dist/types/components/Organisms/uiTable/tooltip.vue.d.ts +1 -1
- package/dist/types/components/Organisms/uiTable/uiTable.vue.d.ts +7 -30
- package/dist/types/components/Organisms/uiTabs/uiTabs.vue.d.ts +4 -13
- package/dist/types/components/Organisms/uiTimeline/uiTimeline.vue.d.ts +2 -25
- package/dist/types/components/Organisms/uiTopbar/uiTopbar.vue.d.ts +4 -13
- package/dist/types/components/Organisms/uiWrapper/uiWrapper.vue.d.ts +8 -12
- package/dist/types/types/index.d.ts +146 -9
- package/dist/ui.cjs +184 -92
- package/dist/ui.es.js +9188 -9090
- package/package.json +1 -1
|
@@ -1,131 +1,268 @@
|
|
|
1
|
+
import { FunctionalComponent } from "vue";
|
|
1
2
|
export declare const Colors: readonly ["primary", "secondary", "light", "green", "yellow", "red"];
|
|
2
3
|
export declare const UiInputTypes: readonly ["text", "email", "password", "number", "date"];
|
|
3
4
|
export declare const MonoColors: readonly ["black", "gray", "white"];
|
|
4
5
|
export declare const AllColors: readonly ["primary", "secondary", "light", "green", "yellow", "red", "black", "gray", "white"];
|
|
5
|
-
type Colors = typeof Colors[number];
|
|
6
|
-
type AllColors = typeof AllColors[number];
|
|
7
|
-
type InputTypes = typeof UiInputTypes[number];
|
|
8
6
|
export declare const Sizes: readonly ["small", "medium", "big"];
|
|
9
7
|
export declare const BiggerSizes: readonly ["bigger", "huge", "massive"];
|
|
10
8
|
export declare const AllSizes: readonly ["small", "medium", "big", "bigger", "huge", "massive"];
|
|
9
|
+
type Colors = typeof Colors[number];
|
|
10
|
+
type AllColors = typeof AllColors[number];
|
|
11
|
+
type InputTypes = typeof UiInputTypes[number];
|
|
11
12
|
type Sizes = typeof Sizes[number];
|
|
12
13
|
type AllSizes = typeof AllSizes[number];
|
|
13
14
|
export interface UiButtonInterface {
|
|
15
|
+
/** Defines if button as block class applied or not */
|
|
14
16
|
block?: boolean;
|
|
17
|
+
/** Color options (see type Colors) */
|
|
15
18
|
color?: Colors;
|
|
19
|
+
/** Button is enabled or disabled */
|
|
16
20
|
disabled?: boolean;
|
|
21
|
+
/** Defines an icon in button´s left side. As you need to import the icon directly from icons library, you must use '@heroicons/vue/24/outline' icon type */
|
|
17
22
|
icon?: any;
|
|
23
|
+
/** Is in skeleton mode or not */
|
|
18
24
|
loading: boolean;
|
|
25
|
+
/** Size options (see type Sizes) */
|
|
19
26
|
size?: Sizes;
|
|
20
27
|
}
|
|
21
28
|
export interface UiCheckboxInterface {
|
|
29
|
+
/** Is checked or not */
|
|
22
30
|
check?: boolean;
|
|
31
|
+
/** Is disabled or not */
|
|
23
32
|
disabled?: boolean;
|
|
33
|
+
/** Is loading or not */
|
|
24
34
|
loading: boolean;
|
|
35
|
+
/** Internal value of checkbox */
|
|
25
36
|
value: string;
|
|
37
|
+
/** To be used in UiSidebarV2 */
|
|
26
38
|
text?: string;
|
|
27
39
|
}
|
|
40
|
+
export interface UiCheckboxEventsInterface {
|
|
41
|
+
/** On checkbox changed state */
|
|
42
|
+
(e: 'checkboxChanged', checkbox: UiCheckboxType): void;
|
|
43
|
+
}
|
|
28
44
|
export type UiCheckboxType = {
|
|
45
|
+
/** Is checked or not */
|
|
29
46
|
checked: boolean;
|
|
47
|
+
/** Internal value of checkbox */
|
|
30
48
|
value: string;
|
|
31
49
|
};
|
|
32
50
|
export interface UiDropdownInterface {
|
|
51
|
+
/** Dropdown items */
|
|
33
52
|
items: UiDropdownItemType[];
|
|
53
|
+
/** Set dropdown to left or right */
|
|
34
54
|
position?: "left" | "right";
|
|
55
|
+
/** Is disabled or not */
|
|
35
56
|
disabled?: boolean;
|
|
57
|
+
/** Top label of Dropdown */
|
|
36
58
|
label?: string;
|
|
59
|
+
/** Is loading or not */
|
|
37
60
|
loading: boolean;
|
|
38
61
|
}
|
|
62
|
+
export interface UiDropdownEventsInterface {
|
|
63
|
+
/** On option selected */
|
|
64
|
+
(e: 'optionSelected', v: UiDropdownItemType): void;
|
|
65
|
+
}
|
|
39
66
|
export type UiDropdownItemType = {
|
|
67
|
+
/** Name of item */
|
|
40
68
|
name: string;
|
|
69
|
+
/** Value of item */
|
|
41
70
|
value: string;
|
|
71
|
+
/** Is it active or not */
|
|
42
72
|
active?: boolean;
|
|
43
73
|
};
|
|
44
74
|
export interface UiIconInterface {
|
|
45
|
-
icon
|
|
75
|
+
/** Imported icon from '@heroicons/vue/24/outline' */
|
|
76
|
+
icon: FunctionalComponent;
|
|
77
|
+
/** Size options (see type AllSizes) */
|
|
46
78
|
size?: AllSizes;
|
|
79
|
+
/** Color options (see type AllColors) */
|
|
47
80
|
color?: AllColors;
|
|
81
|
+
/** Is loading or not */
|
|
48
82
|
loading: boolean;
|
|
49
83
|
}
|
|
50
84
|
export interface UiInputInterface {
|
|
85
|
+
/** Label in top of the input field */
|
|
51
86
|
label?: string;
|
|
87
|
+
/** Input field type */
|
|
52
88
|
type?: InputTypes;
|
|
89
|
+
/** Name of the input field */
|
|
53
90
|
name: string;
|
|
91
|
+
/** Placeholder of the input field */
|
|
54
92
|
placeholder?: string;
|
|
93
|
+
/** Imported icon from '@heroicons/vue/24/outline' */
|
|
55
94
|
icon?: any;
|
|
95
|
+
/** Is disabled or not */
|
|
56
96
|
disabled?: boolean;
|
|
97
|
+
/** Color options (see type Colors) */
|
|
57
98
|
color?: AllColors;
|
|
99
|
+
/** Internal value of input field */
|
|
58
100
|
value?: string;
|
|
101
|
+
/** Text below the input field that shows the error */
|
|
59
102
|
error?: string;
|
|
103
|
+
/** Text that appears top right side of the input field, that informs to user is a required field */
|
|
60
104
|
requiredText?: string;
|
|
105
|
+
/** Addon text in the input field */
|
|
61
106
|
addOn?: string;
|
|
107
|
+
/** Addon text but at right side of input field */
|
|
62
108
|
rightAddOn?: string;
|
|
109
|
+
/** Is loading or not */
|
|
63
110
|
loading: boolean;
|
|
64
111
|
}
|
|
112
|
+
export interface UiInputEventsInterface {
|
|
113
|
+
/** Whenever the input changes */
|
|
114
|
+
(e: "inputChanged", T: InputType): void;
|
|
115
|
+
/** Right addon is clicked */
|
|
116
|
+
(e: "rightAddOnClicked"): void;
|
|
117
|
+
/** Addon clicked */
|
|
118
|
+
(e: "addOnClicked"): void;
|
|
119
|
+
}
|
|
120
|
+
export type InputType = {
|
|
121
|
+
/** Name of the input field */
|
|
122
|
+
name: string;
|
|
123
|
+
/** Internal value of input field */
|
|
124
|
+
value: string;
|
|
125
|
+
};
|
|
65
126
|
export interface UiInputFileInterface {
|
|
127
|
+
/** Name of the input field */
|
|
66
128
|
name: string;
|
|
129
|
+
/** Id of the input field */
|
|
67
130
|
id: string;
|
|
131
|
+
/** Text that appears top right side of the input field, that informs to user is a required field */
|
|
68
132
|
requiredText?: string;
|
|
133
|
+
/** Placeholder of the input field */
|
|
69
134
|
placeholder: string;
|
|
135
|
+
/** Part of text literal that makes reference to drag and drop a file inside the input field */
|
|
70
136
|
dragAndDrop: string;
|
|
137
|
+
/** Part of text literal that makes reference to file types inside the input field */
|
|
71
138
|
fileTypesAndSizes: string;
|
|
139
|
+
/** Text below the input field that shows the error */
|
|
72
140
|
error?: string;
|
|
141
|
+
/** MIME types of files that input field must accept */
|
|
73
142
|
accept: string;
|
|
143
|
+
/** Imported icon from '@heroicons/vue/24/outline' */
|
|
74
144
|
icon?: any;
|
|
145
|
+
/** Is loading or not */
|
|
75
146
|
loading: boolean;
|
|
147
|
+
/** Label in top of the input field */
|
|
76
148
|
label?: string;
|
|
77
149
|
}
|
|
150
|
+
export type FileInputType = {
|
|
151
|
+
/** Id of the input field */
|
|
152
|
+
id: string;
|
|
153
|
+
/** Uploaded files */
|
|
154
|
+
files: any;
|
|
155
|
+
};
|
|
156
|
+
export interface UiInputFileEventsInterface {
|
|
157
|
+
/** Whenever files are dragged inside input field, or send the default way */
|
|
158
|
+
(e: "filesUploaded", T: FileInputType): void;
|
|
159
|
+
}
|
|
78
160
|
export interface UiRangeSliderInterface {
|
|
161
|
+
/** Is loading or not */
|
|
79
162
|
loading: boolean;
|
|
163
|
+
/** Is disabled or not */
|
|
80
164
|
disabled?: boolean;
|
|
165
|
+
/** Min number of the range slider */
|
|
81
166
|
min?: number;
|
|
167
|
+
/** Max number of the range slider */
|
|
82
168
|
max?: number;
|
|
169
|
+
/** Actual value or range of values of the slider */
|
|
83
170
|
sliderValue?: number | number[];
|
|
171
|
+
/** Label in top of the slider */
|
|
84
172
|
label: string;
|
|
173
|
+
/** Text that appears top right side of the input field, that informs to user is a required field */
|
|
85
174
|
requiredText?: string;
|
|
86
175
|
}
|
|
87
|
-
export
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
176
|
+
export interface UiRangeSliderEventsInterface {
|
|
177
|
+
/** Whenever the slider is changed */
|
|
178
|
+
(e: "sliderUpdated", T: any): void;
|
|
179
|
+
}
|
|
91
180
|
export interface UiSelectInterface {
|
|
181
|
+
/** Array of items */
|
|
92
182
|
items: SelectItemType[];
|
|
183
|
+
/** Label in top of the Select */
|
|
93
184
|
label?: string;
|
|
185
|
+
/** Text below the input field that shows the error */
|
|
94
186
|
error?: string;
|
|
187
|
+
/** Color options (see type AllColors) */
|
|
95
188
|
color?: AllColors;
|
|
189
|
+
/** Selected item */
|
|
96
190
|
select: SelectItemType;
|
|
191
|
+
/** Is loading or not */
|
|
97
192
|
loading?: boolean;
|
|
193
|
+
/** Is disabled or not */
|
|
98
194
|
disabled?: boolean;
|
|
195
|
+
/** Text that appears top right side of the input field, that informs to user is a required field */
|
|
99
196
|
requiredText?: string;
|
|
100
197
|
}
|
|
198
|
+
export interface UiSelectEventsInterface {
|
|
199
|
+
/** When a item is selected */
|
|
200
|
+
(e: "selectChanged", T: SelectItemType): void;
|
|
201
|
+
}
|
|
202
|
+
export type SelectItemType = {
|
|
203
|
+
/** Unique value inside the select */
|
|
204
|
+
id: string;
|
|
205
|
+
/** Name of the item */
|
|
206
|
+
name: string;
|
|
207
|
+
};
|
|
101
208
|
export interface UiTagInterface {
|
|
209
|
+
/** Color options (see type AllColors) */
|
|
102
210
|
color?: AllColors;
|
|
211
|
+
/** Is loading or not */
|
|
103
212
|
loading?: boolean;
|
|
213
|
+
/** Size options (see type Sizes) */
|
|
104
214
|
size?: Sizes;
|
|
215
|
+
/** If tag is clickable, this is the name of the event will be fired */
|
|
105
216
|
event?: string;
|
|
217
|
+
/** In uiCard, uiDeviceStatus, tag instead of slot uses name */
|
|
106
218
|
name?: string;
|
|
219
|
+
/** Tag text usually uses the slot, but there is some other components that needs the taxt text as a prop. You can use text instead of prop if needed */
|
|
107
220
|
text?: string;
|
|
108
221
|
}
|
|
222
|
+
export interface UiTagEventsInterface {
|
|
223
|
+
/** When clicked, if props.event is defined. It emits the value of props.event */
|
|
224
|
+
(e: "tagEvent", T: UiTagInterface["event"]): void;
|
|
225
|
+
}
|
|
109
226
|
export interface UiTextAreaInterface {
|
|
227
|
+
/** Name of the text area */
|
|
110
228
|
name: string;
|
|
229
|
+
/** Label in top of the text area */
|
|
111
230
|
label: string;
|
|
231
|
+
/** Placeholder of the text area */
|
|
112
232
|
placeholder?: string;
|
|
233
|
+
/** Value (text) of the text area */
|
|
113
234
|
value?: string;
|
|
114
|
-
|
|
235
|
+
/** Color options (see type Colors) */
|
|
236
|
+
color?: AllColors;
|
|
237
|
+
/** Is disabled or not */
|
|
115
238
|
disabled?: boolean;
|
|
239
|
+
/** Text below the text area that shows the error */
|
|
116
240
|
error?: string;
|
|
241
|
+
/** Is loading or not */
|
|
117
242
|
loading?: boolean;
|
|
243
|
+
/** Text that appears top right side of the text area, that informs to user is a required field */
|
|
118
244
|
requiredText?: string;
|
|
119
245
|
}
|
|
246
|
+
export interface UiTextAreaEventsInterface {
|
|
247
|
+
/** Whenever text area value changes is emitted */
|
|
248
|
+
(e: "inputChanged", T: {
|
|
249
|
+
name: string;
|
|
250
|
+
value?: string;
|
|
251
|
+
}): void;
|
|
252
|
+
}
|
|
120
253
|
export interface UiToggleInterface {
|
|
254
|
+
/** Toggle item that contains title, subtitle, if it´s active or not, and the action */
|
|
121
255
|
item: {
|
|
122
256
|
title: string;
|
|
123
257
|
subtitle?: string;
|
|
124
258
|
active?: boolean;
|
|
125
259
|
action: string;
|
|
126
260
|
};
|
|
261
|
+
/** Is checked or not */
|
|
127
262
|
checked?: boolean;
|
|
263
|
+
/** Is disabled or not */
|
|
128
264
|
disabled?: boolean;
|
|
265
|
+
/** Is loading or not */
|
|
129
266
|
loading: boolean;
|
|
130
267
|
}
|
|
131
268
|
export interface UiAlertInterface {
|