@hotelinking/ui 10.42.12 → 10.42.13
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/components/Atoms/uiButton/uiButton.vue.d.ts +22 -0
- package/dist/components/Atoms/uiCheckbox/uiCheckbox.vue.d.ts +26 -0
- package/dist/components/Atoms/uiDropdown/uiDropdown.vue.d.ts +10 -0
- package/dist/components/Atoms/uiIcon/uiIcon.vue.d.ts +7 -0
- package/dist/components/Atoms/uiInput/uiInput.vue.d.ts +16 -0
- package/dist/components/Atoms/uiInputFile/uiInputFile.vue.d.ts +10 -0
- package/dist/components/Atoms/uiRangeSlider/uiRangeSlider.vue.d.ts +10 -0
- package/dist/components/Atoms/uiSelect/uiSelect.vue.d.ts +12 -0
- package/dist/components/Atoms/uiTag/uiTag.vue.d.ts +26 -0
- package/dist/components/Atoms/uiTextArea/uiTextArea.vue.d.ts +18 -0
- package/dist/components/Atoms/uiToggle/uiToggle.vue.d.ts +29 -0
- package/dist/components/Common/SkeletonTable/SkeletonTable.vue.d.ts +2 -0
- package/dist/components/Molecules/uiAlert/uiAlert.vue.d.ts +25 -0
- package/dist/components/Molecules/uiBreadcrumbs/uiBreadcrumbs.vue.d.ts +9 -0
- package/dist/components/Molecules/uiCard/uiCard.vue.d.ts +19 -0
- package/dist/components/Molecules/uiDeviceStatus/uiDeviceStatus.vue.d.ts +12 -0
- package/dist/components/Molecules/uiFilter/uiFilter.vue.d.ts +10 -0
- package/dist/components/Molecules/uiModal/uiModal.vue.d.ts +32 -0
- package/dist/components/Molecules/uiNotification/uiNotification.vue.d.ts +11 -0
- package/dist/components/Molecules/uiSectionTitle/uiSectionTitle.vue.d.ts +3 -0
- package/dist/components/Molecules/uiTaskList/uiTaskList.vue.d.ts +5 -0
- package/dist/components/Organisms/uiCharts/RangeSelector.vue.d.ts +14 -0
- package/dist/components/Organisms/uiCharts/uiChart.vue.d.ts +33 -0
- package/dist/components/Organisms/uiCircleCharts/uiCircleChart.vue.d.ts +32 -0
- package/dist/components/Organisms/uiDateRange/uiDateRange.vue.d.ts +13 -0
- package/dist/components/Organisms/uiDragAndDrop/uiDragAndDrop.vue.d.ts +9 -0
- package/dist/components/Organisms/uiDynamicStats/uiDynamicStats.vue.d.ts +5 -0
- package/dist/components/Organisms/uiFooter/uiFooter.vue.d.ts +2 -0
- package/dist/components/Organisms/uiFunnelChartV2/uiFunnelChartV2.vue.d.ts +34 -0
- package/dist/components/Organisms/uiGallery/uiGallery.vue.d.ts +11 -0
- package/dist/components/Organisms/uiLoadingScreen/uiLoadingScreen.vue.d.ts +5 -0
- package/dist/components/Organisms/uiNoResults/uiNoResults.vue.d.ts +9 -0
- package/dist/components/Organisms/uiPagination/uiPagination.vue.d.ts +29 -0
- package/dist/components/Organisms/uiPriceCalendar/DateSelector.vue.d.ts +22 -0
- package/dist/components/Organisms/uiPriceCalendar/Day.vue.d.ts +14 -0
- package/dist/components/Organisms/uiPriceCalendar/Price.vue.d.ts +25 -0
- package/dist/components/Organisms/uiPriceCalendar/uiPriceCalendar.vue.d.ts +25 -0
- package/dist/components/Organisms/uiRightSidebar/uiRightSidebar.vue.d.ts +24 -0
- package/dist/components/Organisms/uiSidebar/uiSidebar.vue.d.ts +9 -0
- package/dist/components/Organisms/uiSidebar/uiSidebarV2.vue.d.ts +12 -0
- package/dist/components/Organisms/uiSmartFilter/uiSmartFilter.vue.d.ts +25 -0
- package/dist/components/Organisms/uiStats/uiStats.vue.d.ts +9 -0
- package/dist/components/Organisms/uiStripedCard/uiStripedCard.vue.d.ts +9 -0
- package/dist/components/Organisms/uiTable/tooltip.vue.d.ts +7 -0
- package/dist/components/Organisms/uiTable/uiTable.vue.d.ts +41 -0
- package/dist/components/Organisms/uiTabs/uiTabs.vue.d.ts +7 -0
- package/dist/components/Organisms/uiTimeline/uiTimeline.vue.d.ts +12 -0
- package/dist/components/Organisms/uiTopbar/uiTopbar.vue.d.ts +7 -0
- package/dist/components/Organisms/uiWrapper/uiWrapper.vue.d.ts +28 -0
- package/dist/components/index.d.ts +43 -0
- package/dist/index.d.ts +7 -0
- package/dist/types/index.d.ts +1183 -0
- package/dist/ui.cjs +1 -1
- package/dist/ui.es.js +55 -58
- package/package.json +8 -6
|
@@ -0,0 +1,1183 @@
|
|
|
1
|
+
import { FunctionalComponent } from 'vue';
|
|
2
|
+
export declare const Colors: readonly ["primary", "secondary", "light", "green", "yellow", "red"];
|
|
3
|
+
export declare const UiInputTypes: readonly ["text", "email", "password", "number", "date", "datetime-local"];
|
|
4
|
+
export declare const MonoColors: readonly ["black", "gray", "white"];
|
|
5
|
+
export declare const AllColors: readonly ["primary", "secondary", "light", "green", "yellow", "red", "black", "gray", "white"];
|
|
6
|
+
export declare const Sizes: readonly ["small", "medium", "big"];
|
|
7
|
+
export declare const BiggerSizes: readonly ["bigger", "huge", "massive"];
|
|
8
|
+
export declare const AllSizes: readonly ["small", "medium", "big", "bigger", "huge", "massive"];
|
|
9
|
+
export declare const Types: string[];
|
|
10
|
+
type Colors = typeof Colors[number];
|
|
11
|
+
type AllColors = typeof AllColors[number];
|
|
12
|
+
type InputTypes = typeof UiInputTypes[number];
|
|
13
|
+
type Sizes = typeof Sizes[number];
|
|
14
|
+
type AllSizes = typeof AllSizes[number];
|
|
15
|
+
type Types = typeof Types[number];
|
|
16
|
+
export interface UiButtonInterface {
|
|
17
|
+
/** Defines if button as block class applied or not */
|
|
18
|
+
block?: boolean;
|
|
19
|
+
/** Color options (see type Colors) */
|
|
20
|
+
color?: Colors;
|
|
21
|
+
/** Button is enabled or disabled */
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
/** 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 */
|
|
24
|
+
icon?: FunctionalComponent;
|
|
25
|
+
/** Is in skeleton mode or not */
|
|
26
|
+
loading: boolean;
|
|
27
|
+
/** Size options (see type Sizes) */
|
|
28
|
+
size?: Sizes;
|
|
29
|
+
}
|
|
30
|
+
export interface UiCheckboxInterface {
|
|
31
|
+
/** Is checked or not */
|
|
32
|
+
check?: boolean;
|
|
33
|
+
/** Is disabled or not */
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
/** Is loading or not */
|
|
36
|
+
loading: boolean;
|
|
37
|
+
/** Internal value of checkbox */
|
|
38
|
+
value: string;
|
|
39
|
+
/** To be used in UiSidebarV2 */
|
|
40
|
+
text?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface UiCheckboxEventsInterface {
|
|
43
|
+
/** Emitted when click over checkbox */
|
|
44
|
+
(e: 'checkboxChanged', checkbox: UiCheckboxType): void;
|
|
45
|
+
}
|
|
46
|
+
export type UiCheckboxType = {
|
|
47
|
+
/** Is checked or not */
|
|
48
|
+
checked: boolean;
|
|
49
|
+
/** Internal value of checkbox */
|
|
50
|
+
value: string;
|
|
51
|
+
};
|
|
52
|
+
export interface UiDropdownInterface {
|
|
53
|
+
/** Dropdown items */
|
|
54
|
+
items: UiDropdownItemType[];
|
|
55
|
+
/** Set dropdown to left or right */
|
|
56
|
+
position?: "left" | "right";
|
|
57
|
+
/** Is disabled or not */
|
|
58
|
+
disabled?: boolean;
|
|
59
|
+
/** Top label of Dropdown */
|
|
60
|
+
label?: string;
|
|
61
|
+
/** Is loading or not */
|
|
62
|
+
loading: boolean;
|
|
63
|
+
/** Text that appears top right side of the dropdown field, that informs to user is a required field */
|
|
64
|
+
requiredText?: string;
|
|
65
|
+
}
|
|
66
|
+
export interface UiDropdownEventsInterface {
|
|
67
|
+
/** On option selected */
|
|
68
|
+
(e: 'optionSelected', v: UiDropdownItemType): void;
|
|
69
|
+
}
|
|
70
|
+
export type UiDropdownItemType = {
|
|
71
|
+
/** Name of item */
|
|
72
|
+
name: string;
|
|
73
|
+
/** Value of item */
|
|
74
|
+
value: string;
|
|
75
|
+
/** Is it active or not */
|
|
76
|
+
active?: boolean;
|
|
77
|
+
};
|
|
78
|
+
export interface UiIconInterface {
|
|
79
|
+
/** Imported icon from '@heroicons/vue/24/outline' */
|
|
80
|
+
icon: FunctionalComponent;
|
|
81
|
+
/** Size options (see type AllSizes) */
|
|
82
|
+
size?: AllSizes;
|
|
83
|
+
/** Color options (see type AllColors) */
|
|
84
|
+
color?: AllColors;
|
|
85
|
+
/** Is loading or not */
|
|
86
|
+
loading: boolean;
|
|
87
|
+
}
|
|
88
|
+
export interface UiInputInterface {
|
|
89
|
+
/** Label in top of the input field */
|
|
90
|
+
label?: string;
|
|
91
|
+
/** Input field type */
|
|
92
|
+
type?: InputTypes;
|
|
93
|
+
/** Name of the input field */
|
|
94
|
+
name: string;
|
|
95
|
+
/** Placeholder of the input field */
|
|
96
|
+
placeholder?: string;
|
|
97
|
+
/** Imported icon from '@heroicons/vue/24/outline' */
|
|
98
|
+
icon?: any;
|
|
99
|
+
/** Is disabled or not */
|
|
100
|
+
disabled?: boolean;
|
|
101
|
+
/** Color options (see type Colors) */
|
|
102
|
+
color?: AllColors;
|
|
103
|
+
/** Internal value of input field */
|
|
104
|
+
value?: string;
|
|
105
|
+
/** Text below the input field that shows the error */
|
|
106
|
+
error?: string;
|
|
107
|
+
/** Text that appears top right side of the input field, that informs to user is a required field */
|
|
108
|
+
requiredText?: string;
|
|
109
|
+
/** Addon text in the input field */
|
|
110
|
+
addOn?: string;
|
|
111
|
+
/** Addon text but at right side of input field */
|
|
112
|
+
rightAddOn?: string;
|
|
113
|
+
/**max value*/
|
|
114
|
+
max?: string | number;
|
|
115
|
+
/**min value*/
|
|
116
|
+
min?: string | number;
|
|
117
|
+
/** Is loading or not */
|
|
118
|
+
loading: boolean;
|
|
119
|
+
}
|
|
120
|
+
export interface UiInputEventsInterface {
|
|
121
|
+
/** Whenever the input changes */
|
|
122
|
+
(e: "inputChanged", T: InputType): void;
|
|
123
|
+
/** Right addon is clicked */
|
|
124
|
+
(e: "rightAddOnClicked"): void;
|
|
125
|
+
/** Addon clicked */
|
|
126
|
+
(e: "addOnClicked"): void;
|
|
127
|
+
}
|
|
128
|
+
export type InputType = {
|
|
129
|
+
/** Name of the input field */
|
|
130
|
+
name: string;
|
|
131
|
+
/** Internal value of input field */
|
|
132
|
+
value: string;
|
|
133
|
+
};
|
|
134
|
+
export interface UiInputFileInterface {
|
|
135
|
+
/** Name of the input field */
|
|
136
|
+
name: string;
|
|
137
|
+
/** Id of the input field */
|
|
138
|
+
id: string;
|
|
139
|
+
/** Text that appears top right side of the input field, that informs to user is a required field */
|
|
140
|
+
requiredText?: string;
|
|
141
|
+
/** Placeholder of the input field */
|
|
142
|
+
placeholder: string;
|
|
143
|
+
/** Part of text literal that makes reference to drag and drop a file inside the input field */
|
|
144
|
+
dragAndDrop: string;
|
|
145
|
+
/** Part of text literal that makes reference to file types inside the input field */
|
|
146
|
+
fileTypesAndSizes: string;
|
|
147
|
+
/** Text below the input field that shows the error */
|
|
148
|
+
error?: string;
|
|
149
|
+
/** MIME types of files that input field must accept */
|
|
150
|
+
accept: string;
|
|
151
|
+
/** Imported icon from '@heroicons/vue/24/outline' */
|
|
152
|
+
icon?: any;
|
|
153
|
+
/** Is loading or not */
|
|
154
|
+
loading: boolean;
|
|
155
|
+
/** Label in top of the input field */
|
|
156
|
+
label?: string;
|
|
157
|
+
}
|
|
158
|
+
export type FileInputType = {
|
|
159
|
+
/** Id of the input field */
|
|
160
|
+
id: string;
|
|
161
|
+
/** Uploaded files */
|
|
162
|
+
files: any;
|
|
163
|
+
};
|
|
164
|
+
export interface UiInputFileEventsInterface {
|
|
165
|
+
/** Whenever files are dragged inside input field, or send the default way */
|
|
166
|
+
(e: "filesUploaded", T: FileInputType): void;
|
|
167
|
+
}
|
|
168
|
+
export interface UiRangeSliderInterface {
|
|
169
|
+
/** Is loading or not */
|
|
170
|
+
loading: boolean;
|
|
171
|
+
/** Is disabled or not */
|
|
172
|
+
disabled?: boolean;
|
|
173
|
+
/** Min number of the range slider */
|
|
174
|
+
min?: number;
|
|
175
|
+
/** Max number of the range slider */
|
|
176
|
+
max?: number;
|
|
177
|
+
/** Actual value or range of values of the slider */
|
|
178
|
+
sliderValue?: number | number[];
|
|
179
|
+
/** Label in top of the slider */
|
|
180
|
+
label: string;
|
|
181
|
+
/** Text that appears top right side of the input field, that informs to user is a required field */
|
|
182
|
+
requiredText?: string;
|
|
183
|
+
}
|
|
184
|
+
export interface UiRangeSliderEventsInterface {
|
|
185
|
+
/** Whenever the slider is changed */
|
|
186
|
+
(e: "sliderUpdated", T: any): void;
|
|
187
|
+
}
|
|
188
|
+
export interface UiSelectInterface {
|
|
189
|
+
/** Array of items */
|
|
190
|
+
items: SelectItemType[];
|
|
191
|
+
/** Label in top of the Select */
|
|
192
|
+
label?: string;
|
|
193
|
+
/** Text below the input field that shows the error */
|
|
194
|
+
error?: string;
|
|
195
|
+
/** Color options (see type AllColors) */
|
|
196
|
+
color?: AllColors;
|
|
197
|
+
/** Selected item */
|
|
198
|
+
select: SelectItemType;
|
|
199
|
+
/** Is loading or not */
|
|
200
|
+
loading?: boolean;
|
|
201
|
+
/** Is disabled or not */
|
|
202
|
+
disabled?: boolean;
|
|
203
|
+
/** Text that appears top right side of the input field, that informs to user is a required field */
|
|
204
|
+
requiredText?: string;
|
|
205
|
+
}
|
|
206
|
+
export interface UiSelectEventsInterface {
|
|
207
|
+
/** When a item is selected */
|
|
208
|
+
(e: "selectChanged", T: SelectItemType): void;
|
|
209
|
+
}
|
|
210
|
+
export type SelectItemType = {
|
|
211
|
+
/** Unique value inside the select */
|
|
212
|
+
id: string;
|
|
213
|
+
/** Name of the item */
|
|
214
|
+
name: string;
|
|
215
|
+
};
|
|
216
|
+
export interface UiTagInterface {
|
|
217
|
+
/** Color options (see type AllColors) */
|
|
218
|
+
color?: AllColors;
|
|
219
|
+
/** Is loading or not */
|
|
220
|
+
loading?: boolean;
|
|
221
|
+
/** Size options (see type Sizes) */
|
|
222
|
+
size?: Sizes;
|
|
223
|
+
/** If tag is clickable, this is the name of the event will be fired */
|
|
224
|
+
event?: string;
|
|
225
|
+
/** In uiCard, uiDeviceStatus, tag instead of slot uses name */
|
|
226
|
+
name?: string;
|
|
227
|
+
/** 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 */
|
|
228
|
+
text?: string;
|
|
229
|
+
}
|
|
230
|
+
export interface UiTagEventsInterface {
|
|
231
|
+
/** When clicked, if props.event is defined. It emits the value of props.event */
|
|
232
|
+
(e: "tagEvent", T: UiTagInterface["event"]): void;
|
|
233
|
+
}
|
|
234
|
+
export interface UiTextAreaInterface {
|
|
235
|
+
/** Name of the text area */
|
|
236
|
+
name: string;
|
|
237
|
+
/** Label in top of the text area */
|
|
238
|
+
label: string;
|
|
239
|
+
/** Placeholder of the text area */
|
|
240
|
+
placeholder?: string;
|
|
241
|
+
/** Value (text) of the text area */
|
|
242
|
+
value?: string;
|
|
243
|
+
/** Color options (see type Colors) */
|
|
244
|
+
color?: AllColors;
|
|
245
|
+
/** Is disabled or not */
|
|
246
|
+
disabled?: boolean;
|
|
247
|
+
/** Text below the text area that shows the error */
|
|
248
|
+
error?: string;
|
|
249
|
+
/** Is loading or not */
|
|
250
|
+
loading?: boolean;
|
|
251
|
+
/** Text that appears top right side of the text area, that informs to user is a required field */
|
|
252
|
+
requiredText?: string;
|
|
253
|
+
}
|
|
254
|
+
export interface UiTextAreaEventsInterface {
|
|
255
|
+
/** Whenever text area value changes is emitted */
|
|
256
|
+
(e: "inputChanged", T: {
|
|
257
|
+
name: string;
|
|
258
|
+
value?: string;
|
|
259
|
+
}): void;
|
|
260
|
+
}
|
|
261
|
+
export interface UiToggleInterface {
|
|
262
|
+
/** Toggle item that contains title, subtitle, if it´s active or not, and the action */
|
|
263
|
+
item: {
|
|
264
|
+
title: string;
|
|
265
|
+
subtitle?: string;
|
|
266
|
+
active?: boolean;
|
|
267
|
+
action: string;
|
|
268
|
+
};
|
|
269
|
+
/** Is checked or not */
|
|
270
|
+
checked?: boolean;
|
|
271
|
+
/** Is disabled or not */
|
|
272
|
+
disabled?: boolean;
|
|
273
|
+
/** Is loading or not */
|
|
274
|
+
loading: boolean;
|
|
275
|
+
}
|
|
276
|
+
export interface UiToggleEventsInterface {
|
|
277
|
+
/** emitted when toggle is changed */
|
|
278
|
+
(e: 'toggleChanged', T: {
|
|
279
|
+
item: UiToggleInterface["item"];
|
|
280
|
+
active: boolean;
|
|
281
|
+
}): void;
|
|
282
|
+
/** emitted when right action is clicked */
|
|
283
|
+
(e: 'actionClicked', item: UiToggleInterface["item"]): void;
|
|
284
|
+
}
|
|
285
|
+
export interface UiAlertInterface {
|
|
286
|
+
/** List of possible actions that are at the bottom of the notification */
|
|
287
|
+
actions?: {
|
|
288
|
+
name: string;
|
|
289
|
+
event: string;
|
|
290
|
+
}[];
|
|
291
|
+
/** Notification title */
|
|
292
|
+
title: string;
|
|
293
|
+
/** Notification type */
|
|
294
|
+
type?: string;
|
|
295
|
+
/** Is loading or not */
|
|
296
|
+
loading?: boolean;
|
|
297
|
+
}
|
|
298
|
+
export interface UiAlertEventsInterface {
|
|
299
|
+
/** When an alert action is clicked emits UiAlertInterface["actions"]["event"] */
|
|
300
|
+
(e: 'alertEvent', T: string): void;
|
|
301
|
+
}
|
|
302
|
+
export interface UiBreadcrumbsInterface {
|
|
303
|
+
/** pages array */
|
|
304
|
+
pages: {
|
|
305
|
+
/** string literal */
|
|
306
|
+
name: string;
|
|
307
|
+
/** route link */
|
|
308
|
+
routeName: string;
|
|
309
|
+
/** it´s current route or not */
|
|
310
|
+
current?: boolean;
|
|
311
|
+
}[];
|
|
312
|
+
/** shows skeletons */
|
|
313
|
+
loading?: boolean;
|
|
314
|
+
}
|
|
315
|
+
export interface UiBreadcrumbsEventInterface {
|
|
316
|
+
/** emits UiBreadcrumbsInterface["pages"]["routeName"] when a breadcrumb is clicked */
|
|
317
|
+
(e: 'breadCrumbClicked', T: string): void;
|
|
318
|
+
}
|
|
319
|
+
export interface UiCardInterface {
|
|
320
|
+
/** card id */
|
|
321
|
+
id: string;
|
|
322
|
+
/** card title */
|
|
323
|
+
name: string;
|
|
324
|
+
/** card subtitle */
|
|
325
|
+
type: string;
|
|
326
|
+
/** array of tags */
|
|
327
|
+
tags?: UiTagInterface[];
|
|
328
|
+
/** logo url string */
|
|
329
|
+
logo: string;
|
|
330
|
+
/** show skeleton */
|
|
331
|
+
loading: boolean;
|
|
332
|
+
}
|
|
333
|
+
export interface UiCardEventsInterface {
|
|
334
|
+
/** Emits when card is clicked */
|
|
335
|
+
(e: 'cardSelected', T: {
|
|
336
|
+
id: UiCardInterface["id"];
|
|
337
|
+
name: UiCardInterface["name"];
|
|
338
|
+
type: UiCardInterface["type"];
|
|
339
|
+
tags: UiCardInterface["tags"];
|
|
340
|
+
}): void;
|
|
341
|
+
}
|
|
342
|
+
export interface UiDeviceStatusInterface {
|
|
343
|
+
/** device id */
|
|
344
|
+
id: string;
|
|
345
|
+
/** device name */
|
|
346
|
+
name: string;
|
|
347
|
+
/** icon component from Heroicons */
|
|
348
|
+
icon: any;
|
|
349
|
+
/** icon background color */
|
|
350
|
+
color: AllColors;
|
|
351
|
+
/** device quantity */
|
|
352
|
+
qty: number;
|
|
353
|
+
/** tags array */
|
|
354
|
+
tags?: UiTagInterface[];
|
|
355
|
+
/** show skeleton */
|
|
356
|
+
loading: boolean;
|
|
357
|
+
}
|
|
358
|
+
export interface UiDeviceStatusEventsInterface {
|
|
359
|
+
/** emitted when a tag is clicked*/
|
|
360
|
+
(e: 'deviceStatusTagClicked', T: UiTagInterface["event"]): void;
|
|
361
|
+
/** emitted when the link in the device status is clicked */
|
|
362
|
+
(e: 'deviceStatusQtyClicked', T: UiDeviceStatusInterface["id"]): void;
|
|
363
|
+
}
|
|
364
|
+
export interface UiFilterInterface {
|
|
365
|
+
/** items array */
|
|
366
|
+
items: {
|
|
367
|
+
/** item name */
|
|
368
|
+
name: string;
|
|
369
|
+
/** item value */
|
|
370
|
+
value: string;
|
|
371
|
+
/** is is selected or not */
|
|
372
|
+
active?: boolean;
|
|
373
|
+
}[];
|
|
374
|
+
/** float position of dropdown */
|
|
375
|
+
position?: "left" | "right";
|
|
376
|
+
/** label literal above filter */
|
|
377
|
+
label?: string;
|
|
378
|
+
/** show skeleton */
|
|
379
|
+
loading?: boolean;
|
|
380
|
+
}
|
|
381
|
+
export interface UiFilterEventsInterface {
|
|
382
|
+
/** emits UiFilterInterface["items"]["value"] when filter is selected */
|
|
383
|
+
(e: 'filterSelected', T: string): void;
|
|
384
|
+
}
|
|
385
|
+
/** uiSmartFilter */
|
|
386
|
+
export interface UiSmartFilterInterface {
|
|
387
|
+
/** Filter items */
|
|
388
|
+
items: {
|
|
389
|
+
/** item name */
|
|
390
|
+
name: string;
|
|
391
|
+
/** item value */
|
|
392
|
+
value: string;
|
|
393
|
+
/** is is selected or not */
|
|
394
|
+
active?: boolean;
|
|
395
|
+
/** for use in UiSmartFilter, it determines if input is a dropdown or input field */
|
|
396
|
+
type: "uiDropdowm" | "uiInput" | "uiSelect";
|
|
397
|
+
/** filter props based on componend being used */
|
|
398
|
+
props: UiInputInterface | UiDropdownInterface;
|
|
399
|
+
}[];
|
|
400
|
+
/** filter action literal */
|
|
401
|
+
buttonLiteral: string;
|
|
402
|
+
/** show skeleton */
|
|
403
|
+
loading?: boolean;
|
|
404
|
+
}
|
|
405
|
+
export interface UiSmartFilterEventInterface {
|
|
406
|
+
/** when a filter is selected */
|
|
407
|
+
(e: 'smartFilterSelected', T: UiFilterInterface["items"]): void;
|
|
408
|
+
/** when an input is changed */
|
|
409
|
+
(e: 'smartInputChanged', T: InputType): void;
|
|
410
|
+
/** when a select is changed*/
|
|
411
|
+
(e: 'smartSelectChanged', T: UiSelectInterface["items"]): void;
|
|
412
|
+
/** when a dropdown option is selected */
|
|
413
|
+
(e: 'smartOptionSelected', T: UiDropdownItemType): void;
|
|
414
|
+
/** Right addon is clicked */
|
|
415
|
+
(e: "rightAddOnClicked"): void;
|
|
416
|
+
}
|
|
417
|
+
export interface UiModalInterface {
|
|
418
|
+
/** modal title */
|
|
419
|
+
title: string;
|
|
420
|
+
/** actions array */
|
|
421
|
+
actions: {
|
|
422
|
+
/** value of the action */
|
|
423
|
+
value: string;
|
|
424
|
+
/** action literal */
|
|
425
|
+
name: string;
|
|
426
|
+
}[];
|
|
427
|
+
/** modal name */
|
|
428
|
+
modalName: string;
|
|
429
|
+
/** show modal or not */
|
|
430
|
+
open: boolean;
|
|
431
|
+
/** modal type */
|
|
432
|
+
type?: Types;
|
|
433
|
+
/** show skeleton */
|
|
434
|
+
loading?: boolean;
|
|
435
|
+
}
|
|
436
|
+
export interface UiModalEventsInterface {
|
|
437
|
+
/** emitted when a modal action is clicked, action emits: UiModalInterface["actions"]["value"] */
|
|
438
|
+
(e: 'modalAction', T: {
|
|
439
|
+
modal: UiModalInterface["modalName"];
|
|
440
|
+
action: string;
|
|
441
|
+
}): void;
|
|
442
|
+
}
|
|
443
|
+
export interface UiNotificationInterface {
|
|
444
|
+
/** notification type */
|
|
445
|
+
type?: Types;
|
|
446
|
+
/** notification title */
|
|
447
|
+
title: string;
|
|
448
|
+
/** notification message */
|
|
449
|
+
message?: string;
|
|
450
|
+
/** not in use, only for DS purposes */
|
|
451
|
+
fixed: boolean;
|
|
452
|
+
/** show or not */
|
|
453
|
+
show: boolean;
|
|
454
|
+
}
|
|
455
|
+
export interface UiNotificationEventsInterface {
|
|
456
|
+
/** emitted when X icon is clicked */
|
|
457
|
+
(e: 'closeNotification'): void;
|
|
458
|
+
}
|
|
459
|
+
export interface UiSectionTitleInterface {
|
|
460
|
+
/** section title */
|
|
461
|
+
title: string;
|
|
462
|
+
/** section description */
|
|
463
|
+
description?: string;
|
|
464
|
+
}
|
|
465
|
+
export type TaskType = {
|
|
466
|
+
/** internal id of task*/
|
|
467
|
+
id: number;
|
|
468
|
+
/** name of task */
|
|
469
|
+
name: string;
|
|
470
|
+
/** task action string */
|
|
471
|
+
action: string;
|
|
472
|
+
/** task action href */
|
|
473
|
+
href: string;
|
|
474
|
+
/** task action status */
|
|
475
|
+
status: "Complete" | "In progress" | "Incomplete";
|
|
476
|
+
/** task status literal string */
|
|
477
|
+
statusLiteral: string;
|
|
478
|
+
/** task description */
|
|
479
|
+
description: string;
|
|
480
|
+
};
|
|
481
|
+
export interface UiTaskList {
|
|
482
|
+
/** list of tasks */
|
|
483
|
+
tasks: TaskType[];
|
|
484
|
+
/** show skeleton */
|
|
485
|
+
loading?: boolean;
|
|
486
|
+
}
|
|
487
|
+
export type chartOptionsType = {
|
|
488
|
+
chart: {
|
|
489
|
+
toolbar: {
|
|
490
|
+
show: boolean;
|
|
491
|
+
};
|
|
492
|
+
zoom: {
|
|
493
|
+
enabled: boolean;
|
|
494
|
+
};
|
|
495
|
+
stacked?: boolean;
|
|
496
|
+
type?: "area" | "line" | "bar" | "scatter";
|
|
497
|
+
};
|
|
498
|
+
colors: any;
|
|
499
|
+
stroke?: {
|
|
500
|
+
show: boolean;
|
|
501
|
+
curve: string;
|
|
502
|
+
lineCap: string;
|
|
503
|
+
width: number;
|
|
504
|
+
dashArray: number;
|
|
505
|
+
};
|
|
506
|
+
dataLabels: {
|
|
507
|
+
enabled: boolean;
|
|
508
|
+
formatter?: Function;
|
|
509
|
+
};
|
|
510
|
+
markers: {
|
|
511
|
+
strokeWidth: number;
|
|
512
|
+
size: number;
|
|
513
|
+
hover: {
|
|
514
|
+
size: number;
|
|
515
|
+
};
|
|
516
|
+
};
|
|
517
|
+
annotations?: {
|
|
518
|
+
yaxis: [
|
|
519
|
+
{
|
|
520
|
+
y: number;
|
|
521
|
+
borderColor: string;
|
|
522
|
+
label: {
|
|
523
|
+
borderColor: string;
|
|
524
|
+
style: {
|
|
525
|
+
color: string;
|
|
526
|
+
background: string;
|
|
527
|
+
};
|
|
528
|
+
text: string;
|
|
529
|
+
};
|
|
530
|
+
}
|
|
531
|
+
];
|
|
532
|
+
};
|
|
533
|
+
tooltip?: {
|
|
534
|
+
intersect: boolean;
|
|
535
|
+
shared: boolean;
|
|
536
|
+
};
|
|
537
|
+
plotOptions?: {
|
|
538
|
+
bar: {
|
|
539
|
+
horizontal?: boolean;
|
|
540
|
+
borderRadius?: number;
|
|
541
|
+
barHeight?: string;
|
|
542
|
+
isFunnel?: boolean;
|
|
543
|
+
};
|
|
544
|
+
};
|
|
545
|
+
};
|
|
546
|
+
export interface UiChartInterface {
|
|
547
|
+
/** uiCircleChart sections labels */
|
|
548
|
+
labels?: string[];
|
|
549
|
+
/** default date ranges */
|
|
550
|
+
dates?: {
|
|
551
|
+
from: Date | string;
|
|
552
|
+
to: Date | string;
|
|
553
|
+
};
|
|
554
|
+
/** chart title */
|
|
555
|
+
title: string;
|
|
556
|
+
/** chart is Net promoter score */
|
|
557
|
+
isNps?: boolean;
|
|
558
|
+
/** nps string literals */
|
|
559
|
+
npsLiterals?: {
|
|
560
|
+
unhappy: string;
|
|
561
|
+
neutral: string;
|
|
562
|
+
happy: string;
|
|
563
|
+
};
|
|
564
|
+
/** chart id */
|
|
565
|
+
id: string;
|
|
566
|
+
/** chart type (NOT USED in uiCircleChart && uiFunnelChartV2) */
|
|
567
|
+
type?: "area" | "line" | "bar" | "scatter";
|
|
568
|
+
/** chart series and if different type, type */
|
|
569
|
+
series: {
|
|
570
|
+
name: string;
|
|
571
|
+
type?: "area" | "line" | "bar" | "scatter";
|
|
572
|
+
data: number[];
|
|
573
|
+
}[];
|
|
574
|
+
/** chart options (NOT USED in uiCircleChart) */
|
|
575
|
+
options?: {
|
|
576
|
+
xaxis: {
|
|
577
|
+
type: string;
|
|
578
|
+
max?: number;
|
|
579
|
+
categories: string[];
|
|
580
|
+
};
|
|
581
|
+
};
|
|
582
|
+
/** show skeleton */
|
|
583
|
+
loading?: boolean;
|
|
584
|
+
/** if chart has no data */
|
|
585
|
+
empty?: boolean;
|
|
586
|
+
/** show data in this range */
|
|
587
|
+
range?: "24h" | "7d" | "1m" | "3m" | "all";
|
|
588
|
+
/** horizontal or vertical (for columns) (NOT USED in uiCircleChart && uiFunnelChartV2) */
|
|
589
|
+
horizontal?: boolean;
|
|
590
|
+
/** columns are stacked (NOT USED in uiCircleChart && uiFunnelChartV2) */
|
|
591
|
+
stacked?: boolean;
|
|
592
|
+
/** if charts needs a custom height */
|
|
593
|
+
height?: number;
|
|
594
|
+
/** draw a line (check score objetive) (NOT USED in uiCircleChart && uiFunnelChartV2) */
|
|
595
|
+
annotations?: {
|
|
596
|
+
text: string;
|
|
597
|
+
high: number;
|
|
598
|
+
};
|
|
599
|
+
}
|
|
600
|
+
export interface UiChartEventsInterface {
|
|
601
|
+
/** emitted when user clicks on range inputs */
|
|
602
|
+
(e: "selectedRange", T: {
|
|
603
|
+
range: {
|
|
604
|
+
from: Date | string;
|
|
605
|
+
to: Date | string;
|
|
606
|
+
};
|
|
607
|
+
chartId: UiChartInterface["id"];
|
|
608
|
+
}): void;
|
|
609
|
+
/** emitted when chart updated */
|
|
610
|
+
(e: "chartUpdated"): void;
|
|
611
|
+
/** emitted when a point inside chart is clicked */
|
|
612
|
+
(e: "dataPointSelection", T: any): void;
|
|
613
|
+
/** emitted when user clicks on enlarge icon */
|
|
614
|
+
(e: "maximizeChart", T: UiChartInterface["id"]): void;
|
|
615
|
+
}
|
|
616
|
+
export interface UiDateRangeInterface {
|
|
617
|
+
/** unique identifier */
|
|
618
|
+
id: string;
|
|
619
|
+
/** show skeleton */
|
|
620
|
+
loading?: boolean;
|
|
621
|
+
/** date range literal strings */
|
|
622
|
+
literals: {
|
|
623
|
+
from: string;
|
|
624
|
+
to: string;
|
|
625
|
+
search: string;
|
|
626
|
+
};
|
|
627
|
+
/** default date ranges */
|
|
628
|
+
values: {
|
|
629
|
+
from: Date | string;
|
|
630
|
+
to: Date | string;
|
|
631
|
+
};
|
|
632
|
+
/** date range field colors */
|
|
633
|
+
color?: AllColors;
|
|
634
|
+
/** show error message below field */
|
|
635
|
+
error?: string;
|
|
636
|
+
/** is date range disabled */
|
|
637
|
+
disabled?: boolean;
|
|
638
|
+
/** show label above date range */
|
|
639
|
+
label?: string;
|
|
640
|
+
/** fields placeholder */
|
|
641
|
+
placeholder?: string;
|
|
642
|
+
}
|
|
643
|
+
export interface UiDateRangeEventsInterface {
|
|
644
|
+
/** emitted when date range button is clicked */
|
|
645
|
+
(e: 'uiDateRangeButtonClicked', t: UiDateRangeInterface["values"] | undefined): void;
|
|
646
|
+
}
|
|
647
|
+
export interface UiDragAndDropInterface {
|
|
648
|
+
/** drag and drop array of elements */
|
|
649
|
+
elements: {
|
|
650
|
+
id: number;
|
|
651
|
+
name: string;
|
|
652
|
+
description: string;
|
|
653
|
+
}[];
|
|
654
|
+
/** show skeleton */
|
|
655
|
+
loading?: boolean;
|
|
656
|
+
}
|
|
657
|
+
export interface UiDragAndDropEventsInterface {
|
|
658
|
+
/** emitted when drag and drop elements are updated (dragged)*/
|
|
659
|
+
(e: "dragAndDropUpdated", T: any): void;
|
|
660
|
+
}
|
|
661
|
+
export interface UiGalleryInterface {
|
|
662
|
+
/** unique id gallery */
|
|
663
|
+
galleryId: string;
|
|
664
|
+
/** images gallery array */
|
|
665
|
+
gallery: {
|
|
666
|
+
/** image title or file name */
|
|
667
|
+
title: string;
|
|
668
|
+
/** image size reference */
|
|
669
|
+
size: string;
|
|
670
|
+
/** image url */
|
|
671
|
+
source: string;
|
|
672
|
+
}[];
|
|
673
|
+
/** show skeleton */
|
|
674
|
+
loading?: boolean;
|
|
675
|
+
/** image gallery string literals */
|
|
676
|
+
literals: {
|
|
677
|
+
/** delete button string literal */
|
|
678
|
+
deleteAllImages: string;
|
|
679
|
+
/** doble opt in modal title */
|
|
680
|
+
modalTitle: string;
|
|
681
|
+
/** doble opt in modal text */
|
|
682
|
+
modalText: string;
|
|
683
|
+
/** close action string literal */
|
|
684
|
+
closeAction: string;
|
|
685
|
+
/** delete action string literal */
|
|
686
|
+
deleteAction: string;
|
|
687
|
+
};
|
|
688
|
+
}
|
|
689
|
+
export interface UiGalleryEventsInterface {
|
|
690
|
+
/** emitted when a modal action is clicked, emits modal action */
|
|
691
|
+
(e: "modalAction", T: any): void;
|
|
692
|
+
/** emitted when delete image bin icon is clicked, emits image */
|
|
693
|
+
(e: "deleteImage", T: any): void;
|
|
694
|
+
/** emitted when an image is clicked, emits image */
|
|
695
|
+
(e: "imgClicked", T: any): void;
|
|
696
|
+
}
|
|
697
|
+
export interface UiLoadScreenInterface {
|
|
698
|
+
/** title string */
|
|
699
|
+
title?: string;
|
|
700
|
+
/** message string */
|
|
701
|
+
message?: string;
|
|
702
|
+
/** not in use, only for DS purposes */
|
|
703
|
+
fixed?: boolean;
|
|
704
|
+
}
|
|
705
|
+
export interface UiNoResultsInterface {
|
|
706
|
+
/** title string literal */
|
|
707
|
+
title: string;
|
|
708
|
+
/** message string literal */
|
|
709
|
+
message: string;
|
|
710
|
+
/** uiButtons array */
|
|
711
|
+
actions: {
|
|
712
|
+
/** action to emit when clicked */
|
|
713
|
+
action: string;
|
|
714
|
+
/** string literal */
|
|
715
|
+
text: string;
|
|
716
|
+
}[];
|
|
717
|
+
/** want to add more options, add items */
|
|
718
|
+
items: UiDropdownItemType[];
|
|
719
|
+
/** default selected item */
|
|
720
|
+
select: UiDropdownItemType;
|
|
721
|
+
}
|
|
722
|
+
export interface UiNoResultsEventsInterface {
|
|
723
|
+
/** action button clicked */
|
|
724
|
+
(e: "action", T: string): void;
|
|
725
|
+
/** dropdown option selected */
|
|
726
|
+
(e: "noResultsOptionSelected", T: UiDropdownItemType): void;
|
|
727
|
+
}
|
|
728
|
+
export interface UiPaginationInterface {
|
|
729
|
+
/** current page number */
|
|
730
|
+
current: number;
|
|
731
|
+
/** total number of pages */
|
|
732
|
+
total: number;
|
|
733
|
+
/** show skeleton */
|
|
734
|
+
loading?: boolean;
|
|
735
|
+
}
|
|
736
|
+
export interface UiPaginationEventsInterface {
|
|
737
|
+
/** emits when a button is clicked, emits a page number */
|
|
738
|
+
(e: "changePage", T: number): void;
|
|
739
|
+
}
|
|
740
|
+
export interface UiRightSidebarInterface {
|
|
741
|
+
/** Sidebar title */
|
|
742
|
+
title?: string;
|
|
743
|
+
/** sidebar description or secondary text */
|
|
744
|
+
description?: string;
|
|
745
|
+
/** is sidebar open? */
|
|
746
|
+
open: boolean;
|
|
747
|
+
}
|
|
748
|
+
export interface UiRightSidebarEventsInterface {
|
|
749
|
+
/** emits when click outside bar or X icon */
|
|
750
|
+
(e: "closeRightBar"): void;
|
|
751
|
+
}
|
|
752
|
+
export interface UiSidebarInterface {
|
|
753
|
+
/** navigation array */
|
|
754
|
+
navigation?: {
|
|
755
|
+
/** name string literal */
|
|
756
|
+
name: string;
|
|
757
|
+
/** icon component from Heroicons */
|
|
758
|
+
icon?: any;
|
|
759
|
+
/** is current sidebar item */
|
|
760
|
+
current?: boolean;
|
|
761
|
+
/** unique id */
|
|
762
|
+
id: string;
|
|
763
|
+
/** If item is parent, has children items */
|
|
764
|
+
children?: {
|
|
765
|
+
/** name string literal */
|
|
766
|
+
name: string;
|
|
767
|
+
/** unique id */
|
|
768
|
+
id: string;
|
|
769
|
+
/** is current sidebar item */
|
|
770
|
+
current?: boolean;
|
|
771
|
+
}[];
|
|
772
|
+
};
|
|
773
|
+
/** instead, can be a filters sidebar */
|
|
774
|
+
filterNavigation?: {
|
|
775
|
+
/** has search input on top */
|
|
776
|
+
hasSearch?: boolean;
|
|
777
|
+
/** search props */
|
|
778
|
+
search?: UiInputInterface;
|
|
779
|
+
/** check groups */
|
|
780
|
+
items?: {
|
|
781
|
+
/** check groups title */
|
|
782
|
+
label: string;
|
|
783
|
+
/** checkbox array */
|
|
784
|
+
filters: UiCheckboxInterface[];
|
|
785
|
+
}[];
|
|
786
|
+
};
|
|
787
|
+
/** is filter sidebar or navigation sidebar */
|
|
788
|
+
isFilterNavigation?: boolean;
|
|
789
|
+
/** show skeleton */
|
|
790
|
+
loading?: boolean;
|
|
791
|
+
/** sidebar brand logo */
|
|
792
|
+
logo?: string;
|
|
793
|
+
}
|
|
794
|
+
export interface UiSidebarEventsInterface {
|
|
795
|
+
/** emitted when a link is clicked, emits item id */
|
|
796
|
+
(e: 'sideBarClick', t: string): any;
|
|
797
|
+
}
|
|
798
|
+
export interface UiSidebarV2Interface {
|
|
799
|
+
/** navigation array */
|
|
800
|
+
navigation?: {
|
|
801
|
+
/** name string literal */
|
|
802
|
+
name: string;
|
|
803
|
+
/** icon component from Heroicons */
|
|
804
|
+
icon?: any;
|
|
805
|
+
/** is current sidebar item */
|
|
806
|
+
current?: boolean;
|
|
807
|
+
/** unique id */
|
|
808
|
+
id: string;
|
|
809
|
+
/** If item is parent, has children items */
|
|
810
|
+
children?: {
|
|
811
|
+
/** name string literal */
|
|
812
|
+
name: string;
|
|
813
|
+
/** unique id */
|
|
814
|
+
id: string;
|
|
815
|
+
/** is current sidebar item */
|
|
816
|
+
current?: boolean;
|
|
817
|
+
}[];
|
|
818
|
+
};
|
|
819
|
+
/** instead, can be a filters sidebar */
|
|
820
|
+
filterNavigation?: {
|
|
821
|
+
/** has search input on top */
|
|
822
|
+
hasSearch?: boolean;
|
|
823
|
+
/** search props */
|
|
824
|
+
search?: UiInputInterface;
|
|
825
|
+
/** check groups */
|
|
826
|
+
items?: {
|
|
827
|
+
/** check groups title */
|
|
828
|
+
label: string;
|
|
829
|
+
/** checkbox array */
|
|
830
|
+
filters: UiCheckboxInterface[];
|
|
831
|
+
}[];
|
|
832
|
+
};
|
|
833
|
+
/** is filter sidebar or navigation sidebar */
|
|
834
|
+
isFilterNavigation?: boolean;
|
|
835
|
+
/** show skeleton */
|
|
836
|
+
loading?: boolean;
|
|
837
|
+
/** sidebar brand logo */
|
|
838
|
+
logo?: string;
|
|
839
|
+
/** left sidebar with product logos */
|
|
840
|
+
productsSidebar: {
|
|
841
|
+
name: string;
|
|
842
|
+
icon: any;
|
|
843
|
+
active?: boolean;
|
|
844
|
+
}[];
|
|
845
|
+
}
|
|
846
|
+
export interface uiSidebarV2EventsInterface {
|
|
847
|
+
/** emits product name when clicked */
|
|
848
|
+
(e: 'productBarClick', t: string): void;
|
|
849
|
+
/** emitted when a link is clicked, emits item id */
|
|
850
|
+
(e: 'sideBarClick', t: string): void;
|
|
851
|
+
}
|
|
852
|
+
export interface UiStatsInterface {
|
|
853
|
+
item: {
|
|
854
|
+
/** stat icon */
|
|
855
|
+
icon: any;
|
|
856
|
+
/** increase o decrease value ej: 122% */
|
|
857
|
+
change?: string;
|
|
858
|
+
/** change direction */
|
|
859
|
+
changeType?: "increase" | "decrease" | "neutral";
|
|
860
|
+
/** footer action link */
|
|
861
|
+
actionText?: string;
|
|
862
|
+
/** unique id */
|
|
863
|
+
id: string;
|
|
864
|
+
/** stats name */
|
|
865
|
+
name: string;
|
|
866
|
+
/** stat value */
|
|
867
|
+
stat: string | number;
|
|
868
|
+
/** helper text */
|
|
869
|
+
explanation?: string;
|
|
870
|
+
/** icon background color */
|
|
871
|
+
color?: AllColors;
|
|
872
|
+
/** show footer with action */
|
|
873
|
+
showFooter?: boolean;
|
|
874
|
+
};
|
|
875
|
+
/** show skeleton */
|
|
876
|
+
loading?: boolean;
|
|
877
|
+
}
|
|
878
|
+
export interface UiStatsEventsInterface {
|
|
879
|
+
/** emits when actionText is clicked, emits item.id */
|
|
880
|
+
(e: "statClick", T: string): void;
|
|
881
|
+
}
|
|
882
|
+
export interface UiStripedCardInterface {
|
|
883
|
+
/** card title */
|
|
884
|
+
title: string;
|
|
885
|
+
/** card subtitle */
|
|
886
|
+
subtitle: string;
|
|
887
|
+
/** array of card rows */
|
|
888
|
+
items: {
|
|
889
|
+
/** row title */
|
|
890
|
+
title: string;
|
|
891
|
+
/** row text */
|
|
892
|
+
text: string;
|
|
893
|
+
/** if link, when click, emits: */
|
|
894
|
+
emits: string;
|
|
895
|
+
/** row content, if undefined, the content is text */
|
|
896
|
+
type?: "link" | "tags";
|
|
897
|
+
/** if type tags, tags array */
|
|
898
|
+
tags?: UiTagInterface[];
|
|
899
|
+
}[];
|
|
900
|
+
/** show skeleton */
|
|
901
|
+
loading?: boolean;
|
|
902
|
+
}
|
|
903
|
+
export interface UiStripedCardEventsInterface {
|
|
904
|
+
/** emits when link is clicked, emits item emits */
|
|
905
|
+
(e: "itemClicked", T: string): void;
|
|
906
|
+
}
|
|
907
|
+
export type TableItemType = {
|
|
908
|
+
/** co unique id */
|
|
909
|
+
id: string | number;
|
|
910
|
+
/** when a row is emitted, if additional info is needed, can be put here */
|
|
911
|
+
emitWith?: any;
|
|
912
|
+
/** content, can be string, link, tag */
|
|
913
|
+
row: Array<string | {
|
|
914
|
+
/** string literal */
|
|
915
|
+
content: string;
|
|
916
|
+
/** if tag, backgroun color of tag */
|
|
917
|
+
color: AllColors;
|
|
918
|
+
/** tag, link that emits, or href link */
|
|
919
|
+
type?: 'tag' | 'link' | 'href';
|
|
920
|
+
/** content emitted if clicked on link type */
|
|
921
|
+
emits?: any;
|
|
922
|
+
/** target url of href type */
|
|
923
|
+
href?: string;
|
|
924
|
+
}>;
|
|
925
|
+
};
|
|
926
|
+
export interface UiTableInterface {
|
|
927
|
+
/** if you send this prop to the table with true it will reset all checked rows */
|
|
928
|
+
resetSelected: boolean;
|
|
929
|
+
/** header value the table is ordered */
|
|
930
|
+
orderedBy: string;
|
|
931
|
+
/** order direction */
|
|
932
|
+
orderDirection?: "asc" | "desc";
|
|
933
|
+
/** show skeleton */
|
|
934
|
+
loading?: boolean;
|
|
935
|
+
/** table header */
|
|
936
|
+
header: {
|
|
937
|
+
/** table column header name */
|
|
938
|
+
name: string;
|
|
939
|
+
/** table column header value, used for orders */
|
|
940
|
+
value: string;
|
|
941
|
+
/** tooltip string literal if needed */
|
|
942
|
+
tooltip?: string;
|
|
943
|
+
}[];
|
|
944
|
+
/** rows */
|
|
945
|
+
items: TableItemType[] | [];
|
|
946
|
+
/** when row is checked, available actions shows */
|
|
947
|
+
actions: {
|
|
948
|
+
/** action string literal */
|
|
949
|
+
name: string;
|
|
950
|
+
/** action id */
|
|
951
|
+
id: string;
|
|
952
|
+
}[];
|
|
953
|
+
}
|
|
954
|
+
export interface UiTableEventsInterface {
|
|
955
|
+
/** if table action is clicked, emits selected rows ids */
|
|
956
|
+
(e: "tableAction", T: {
|
|
957
|
+
action: string;
|
|
958
|
+
items: Array<string | number>;
|
|
959
|
+
}): void;
|
|
960
|
+
/** emits header value and asc desc */
|
|
961
|
+
(e: "orderBy", T: {
|
|
962
|
+
value: string;
|
|
963
|
+
orderDirection: "desc" | "asc";
|
|
964
|
+
}): void;
|
|
965
|
+
/** if colum is link and has custom info */
|
|
966
|
+
(e: "customEmit", T: {
|
|
967
|
+
data: {
|
|
968
|
+
content: string;
|
|
969
|
+
type: string;
|
|
970
|
+
emits: any;
|
|
971
|
+
};
|
|
972
|
+
}): void;
|
|
973
|
+
/** emitted when resetSelected prop is sent with true, use it to rollback resetSelected to false */
|
|
974
|
+
(e: "selectedItemsDeleted"): void;
|
|
975
|
+
}
|
|
976
|
+
export interface UiTabInterface {
|
|
977
|
+
/** tabs array */
|
|
978
|
+
tabs: {
|
|
979
|
+
/** tab string literal */
|
|
980
|
+
name: string;
|
|
981
|
+
/** tab unique id */
|
|
982
|
+
id: string;
|
|
983
|
+
/** tab count tag */
|
|
984
|
+
count?: number;
|
|
985
|
+
/** is current tag */
|
|
986
|
+
current?: boolean;
|
|
987
|
+
}[];
|
|
988
|
+
}
|
|
989
|
+
export interface UiTabEventsInterface {
|
|
990
|
+
/** emits when a tab is clicked, emits tab id */
|
|
991
|
+
(e: "tabClicked", T: string): void;
|
|
992
|
+
}
|
|
993
|
+
export interface UiTimelineInterface {
|
|
994
|
+
/** timeline title */
|
|
995
|
+
name: string;
|
|
996
|
+
/** items */
|
|
997
|
+
timeline: {
|
|
998
|
+
/** timeline unique id */
|
|
999
|
+
id: string;
|
|
1000
|
+
/** timeline footer literal */
|
|
1001
|
+
footerText: string;
|
|
1002
|
+
/** items array */
|
|
1003
|
+
items: {
|
|
1004
|
+
/** row id */
|
|
1005
|
+
id: number | string;
|
|
1006
|
+
/** link id */
|
|
1007
|
+
linkId: number | string;
|
|
1008
|
+
/** row text */
|
|
1009
|
+
content: string;
|
|
1010
|
+
/** item name, reference.. */
|
|
1011
|
+
target: string;
|
|
1012
|
+
/** target link */
|
|
1013
|
+
href: string;
|
|
1014
|
+
/** event date */
|
|
1015
|
+
date: string;
|
|
1016
|
+
/** event formatted date */
|
|
1017
|
+
datetime: string;
|
|
1018
|
+
/** event icon */
|
|
1019
|
+
icon: any;
|
|
1020
|
+
/** event icon background color */
|
|
1021
|
+
iconBackground: string;
|
|
1022
|
+
}[];
|
|
1023
|
+
};
|
|
1024
|
+
/** if custom height in px */
|
|
1025
|
+
height?: number;
|
|
1026
|
+
/** is timeline empty */
|
|
1027
|
+
empty?: boolean;
|
|
1028
|
+
/** show skeleton */
|
|
1029
|
+
loading?: boolean;
|
|
1030
|
+
}
|
|
1031
|
+
export interface UiTimelineEventsInterface {
|
|
1032
|
+
/** when a timeline event is clicked, emits item id */
|
|
1033
|
+
(e: 'timelineEventClicked', t: string | number): void;
|
|
1034
|
+
/** emits when footer link is clicked */
|
|
1035
|
+
(e: 'timelineFooterClicked', t: string): void;
|
|
1036
|
+
}
|
|
1037
|
+
export interface UiTopbarInterface {
|
|
1038
|
+
/** brand logo */
|
|
1039
|
+
logo: string;
|
|
1040
|
+
/** show alert icon */
|
|
1041
|
+
alerted: boolean;
|
|
1042
|
+
/** sub brand logo */
|
|
1043
|
+
accountLogo: string;
|
|
1044
|
+
/** profile menu of sub brand */
|
|
1045
|
+
profileMenu?: {
|
|
1046
|
+
name: string;
|
|
1047
|
+
id: string;
|
|
1048
|
+
}[];
|
|
1049
|
+
/** brand name and description */
|
|
1050
|
+
brand?: {
|
|
1051
|
+
title: string;
|
|
1052
|
+
subtitle: string;
|
|
1053
|
+
};
|
|
1054
|
+
/** when mobile, this is the sidebar navigation menu */
|
|
1055
|
+
navigation?: UiSidebarV2Interface["navigation"];
|
|
1056
|
+
}
|
|
1057
|
+
export interface UiTopbarEventsInterface {
|
|
1058
|
+
/** when clicked in any menu item */
|
|
1059
|
+
(e: "topBarClick", T: string): void;
|
|
1060
|
+
}
|
|
1061
|
+
export interface UiWrapperInterface {
|
|
1062
|
+
topbar: {
|
|
1063
|
+
/** product logo */
|
|
1064
|
+
logo: string;
|
|
1065
|
+
/** is an alert */
|
|
1066
|
+
alerted?: boolean;
|
|
1067
|
+
/** brand logo */
|
|
1068
|
+
accountLogo?: string;
|
|
1069
|
+
/** brand profile menu */
|
|
1070
|
+
profileMenu?: {
|
|
1071
|
+
name: string;
|
|
1072
|
+
id: string;
|
|
1073
|
+
}[];
|
|
1074
|
+
/** top bar search items */
|
|
1075
|
+
selectItems: SelectItemType[];
|
|
1076
|
+
/** top bar search selected item */
|
|
1077
|
+
selectedItem: SelectItemType;
|
|
1078
|
+
};
|
|
1079
|
+
/** wrapper sidebar */
|
|
1080
|
+
sidebar: UiSidebarV2Interface;
|
|
1081
|
+
}
|
|
1082
|
+
export interface UiWrapperEventsInterface {
|
|
1083
|
+
/** emits product name when clicked */
|
|
1084
|
+
(e: 'productBarClick', t: string): void;
|
|
1085
|
+
/** emitted when a link is clicked, emits item id */
|
|
1086
|
+
(e: 'sideBarClick', t: string): void;
|
|
1087
|
+
/** When an item is selected */
|
|
1088
|
+
(e: "selectChanged", T: SelectItemType): void;
|
|
1089
|
+
/** when clicked in any menu item */
|
|
1090
|
+
(e: "topBarClick", T: string): void;
|
|
1091
|
+
}
|
|
1092
|
+
export interface UiDynamicStatsInterface {
|
|
1093
|
+
/** uiStat Array */
|
|
1094
|
+
dynamicStats: UiStatsInterface["item"][];
|
|
1095
|
+
/** show skeleton */
|
|
1096
|
+
loading: boolean;
|
|
1097
|
+
}
|
|
1098
|
+
export interface UiPriceCalendarInterface {
|
|
1099
|
+
/** show skeleton */
|
|
1100
|
+
loading: boolean;
|
|
1101
|
+
/** default starting date */
|
|
1102
|
+
today: Date;
|
|
1103
|
+
/** Is a prices table or a discounts table */
|
|
1104
|
+
type: "prices" | "discounts";
|
|
1105
|
+
/** currency information */
|
|
1106
|
+
currency: {
|
|
1107
|
+
/** currency name: ej "EUR" */
|
|
1108
|
+
name: string;
|
|
1109
|
+
/** currency symbol: ej "€" */
|
|
1110
|
+
symbol: string;
|
|
1111
|
+
};
|
|
1112
|
+
/** listed default selection prices and upgrade prices for this category */
|
|
1113
|
+
category: {
|
|
1114
|
+
/** category name */
|
|
1115
|
+
name: string;
|
|
1116
|
+
/** array of selection prices based on date */
|
|
1117
|
+
selectionPrices: {
|
|
1118
|
+
date: Date;
|
|
1119
|
+
price: number;
|
|
1120
|
+
}[];
|
|
1121
|
+
/** array of upgrade prices based on date */
|
|
1122
|
+
upgradePrices: {
|
|
1123
|
+
date: Date;
|
|
1124
|
+
price: number;
|
|
1125
|
+
}[];
|
|
1126
|
+
};
|
|
1127
|
+
/** listed rooms for this category with selection prices by date */
|
|
1128
|
+
rooms: UiPriceCalendarRoomType[];
|
|
1129
|
+
/** table actions based on row selections */
|
|
1130
|
+
actions: {
|
|
1131
|
+
/** action string literal */
|
|
1132
|
+
name: string;
|
|
1133
|
+
/** actino id */
|
|
1134
|
+
id: string;
|
|
1135
|
+
}[];
|
|
1136
|
+
/** table literals check storybook */
|
|
1137
|
+
literals: {
|
|
1138
|
+
category: string;
|
|
1139
|
+
changeInBulk: string;
|
|
1140
|
+
pricesSelection: string;
|
|
1141
|
+
pricesUpgrade: string;
|
|
1142
|
+
room: string;
|
|
1143
|
+
building: string;
|
|
1144
|
+
floor: string;
|
|
1145
|
+
pricesDiscount: string;
|
|
1146
|
+
};
|
|
1147
|
+
}
|
|
1148
|
+
export type UiPriceCalendarRoomType = {
|
|
1149
|
+
/** room id */
|
|
1150
|
+
id: string;
|
|
1151
|
+
/** room name */
|
|
1152
|
+
name: string;
|
|
1153
|
+
/** building the room is in */
|
|
1154
|
+
building: string;
|
|
1155
|
+
/** the floor the room is in */
|
|
1156
|
+
floor: string;
|
|
1157
|
+
/** selection prices for this room based on dates */
|
|
1158
|
+
selectionPrices: UiRoomTypeSelectionPriceType[];
|
|
1159
|
+
};
|
|
1160
|
+
/** selection prices for this room based on dates */
|
|
1161
|
+
export type UiRoomTypeSelectionPriceType = {
|
|
1162
|
+
date: Date;
|
|
1163
|
+
price: number;
|
|
1164
|
+
};
|
|
1165
|
+
export interface UiPricesCalendarEventsInterface {
|
|
1166
|
+
/** when a date button is clicked */
|
|
1167
|
+
(e: 'dateChanged', t: Date): void;
|
|
1168
|
+
/** click change category prices in bulk button */
|
|
1169
|
+
(e: 'changeCategoryBulkPrices'): void;
|
|
1170
|
+
/** click on category price */
|
|
1171
|
+
(e: 'changeCategorySelectionPrice', t: UiRoomTypeSelectionPriceType): void;
|
|
1172
|
+
/** click on category upgrade price */
|
|
1173
|
+
(e: 'changeCategoryUpgradePrice', t: UiRoomTypeSelectionPriceType): void;
|
|
1174
|
+
/** click on room price */
|
|
1175
|
+
(e: 'changeRoomPrice', t: {
|
|
1176
|
+
price: UiRoomTypeSelectionPriceType;
|
|
1177
|
+
roomId: string;
|
|
1178
|
+
roomName: string;
|
|
1179
|
+
}): void;
|
|
1180
|
+
/** click on table action */
|
|
1181
|
+
(e: 'tableAction', t: any): void;
|
|
1182
|
+
}
|
|
1183
|
+
export {};
|