@hotelinking/ui 9.41.23 → 9.41.26
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 +2 -1
- package/dist/types/components/Atoms/uiCheckbox/uiCheckbox.vue.d.ts +2 -1
- package/dist/types/components/Atoms/uiInput/uiInput.vue.d.ts +1 -1
- package/dist/types/components/Atoms/uiRangeSlider/uiRangeSlider.vue.d.ts +1 -1
- package/dist/types/components/Atoms/uiTag/uiTag.vue.d.ts +2 -1
- package/dist/types/components/Atoms/uiToggle/uiToggle.vue.d.ts +23 -1
- package/dist/types/components/Molecules/uiAlert/uiAlert.vue.d.ts +3 -2
- package/dist/types/components/Molecules/uiBreadcrumbs/uiBreadcrumbs.vue.d.ts +6 -2
- package/dist/types/components/Molecules/uiCard/uiCard.vue.d.ts +16 -2
- package/dist/types/components/Molecules/uiDeviceStatus/uiDeviceStatus.vue.d.ts +8 -2
- package/dist/types/components/Molecules/uiFilter/uiFilter.vue.d.ts +1 -1
- package/dist/types/components/Molecules/uiModal/uiModal.vue.d.ts +12 -9
- package/dist/types/components/Molecules/uiNotification/uiNotification.vue.d.ts +6 -2
- package/dist/types/components/Molecules/uiSectionTitle/uiSectionTitle.vue.d.ts +1 -1
- package/dist/types/components/Molecules/uiTaskList/uiTaskList.vue.d.ts +1 -1
- package/dist/types/components/Organisms/uiCharts/RangeSelector.vue.d.ts +1 -1
- package/dist/types/components/Organisms/uiCharts/uiChart.vue.d.ts +4 -4
- package/dist/types/components/Organisms/uiCircleCharts/uiCircleChart.vue.d.ts +15 -9
- package/dist/types/components/Organisms/uiDateRange/uiDateRange.vue.d.ts +12 -2
- package/dist/types/components/Organisms/uiDragAndDrop/uiDragAndDrop.vue.d.ts +1 -1
- package/dist/types/components/Organisms/uiDynamicStats/uiDynamicStats.vue.d.ts +1 -1
- package/dist/types/components/Organisms/uiFunnelChartV2/uiFunnelChartV2.vue.d.ts +5 -5
- package/dist/types/components/Organisms/uiGallery/uiGallery.vue.d.ts +2 -2
- package/dist/types/components/Organisms/uiLoadingScreen/uiLoadingScreen.vue.d.ts +2 -2
- package/dist/types/components/Organisms/uiNoResults/uiNoResults.vue.d.ts +4 -4
- package/dist/types/components/Organisms/uiPagination/uiPagination.vue.d.ts +3 -2
- package/dist/types/components/Organisms/uiPriceCalendar/uiPriceCalendar.vue.d.ts +16 -147
- package/dist/types/components/Organisms/uiRightSidebar/uiRightSidebar.vue.d.ts +2 -1
- package/dist/types/components/Organisms/uiSidebar/uiSidebar.vue.d.ts +1 -1
- package/dist/types/components/Organisms/uiSidebar/uiSidebarV2.vue.d.ts +1 -1
- package/dist/types/components/Organisms/uiTable/tooltip.vue.d.ts +1 -1
- package/dist/types/components/Organisms/uiTable/uiTable.vue.d.ts +4 -1
- package/dist/types/components/Organisms/uiTabs/uiTabs.vue.d.ts +1 -1
- package/dist/types/components/Organisms/uiWrapper/uiWrapper.vue.d.ts +3 -2
- package/dist/types/types/index.d.ts +273 -20
- package/dist/ui.cjs +71 -45
- package/dist/ui.es.js +12749 -11139
- package/package.json +21 -16
|
@@ -3,5 +3,5 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
3
3
|
$props: {
|
|
4
4
|
readonly tip?: string | undefined;
|
|
5
5
|
};
|
|
6
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
7
7
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UiTableInterface } from "
|
|
1
|
+
import { UiTableInterface } from "@/types";
|
|
2
2
|
declare const _default: import("vue").DefineComponent<UiTableInterface, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
3
3
|
tableAction: (T: {
|
|
4
4
|
action: string;
|
|
@@ -15,6 +15,7 @@ declare const _default: import("vue").DefineComponent<UiTableInterface, {}, {},
|
|
|
15
15
|
emits: any;
|
|
16
16
|
};
|
|
17
17
|
}) => any;
|
|
18
|
+
selectedItemsDeleted: () => any;
|
|
18
19
|
}, string, import("vue").PublicProps, Readonly<UiTableInterface> & Readonly<{
|
|
19
20
|
onTableAction?: ((T: {
|
|
20
21
|
action: string;
|
|
@@ -31,8 +32,10 @@ declare const _default: import("vue").DefineComponent<UiTableInterface, {}, {},
|
|
|
31
32
|
emits: any;
|
|
32
33
|
};
|
|
33
34
|
}) => any) | undefined;
|
|
35
|
+
onSelectedItemsDeleted?: (() => any) | undefined;
|
|
34
36
|
}>, {
|
|
35
37
|
loading: boolean;
|
|
38
|
+
resetSelected: boolean;
|
|
36
39
|
orderDirection: "asc" | "desc";
|
|
37
40
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
41
|
export default _default;
|
|
@@ -3,5 +3,5 @@ declare const _default: import("vue").DefineComponent<UiTabInterface, {}, {}, {}
|
|
|
3
3
|
tabClicked: (T: string) => any;
|
|
4
4
|
}, string, import("vue").PublicProps, Readonly<UiTabInterface> & Readonly<{
|
|
5
5
|
onTabClicked?: ((T: string) => any) | undefined;
|
|
6
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
6
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
7
7
|
export default _default;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { UiWrapperInterface } from '@/types';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
3
4
|
slots: {
|
|
4
5
|
default?(_: {}): any;
|
|
5
6
|
};
|
|
6
7
|
refs: {};
|
|
7
|
-
|
|
8
|
+
rootEl: HTMLDivElement;
|
|
8
9
|
};
|
|
9
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
-
declare const __VLS_component: import("vue").DefineComponent<UiWrapperInterface, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<UiWrapperInterface> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<UiWrapperInterface, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<UiWrapperInterface> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
11
12
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
13
|
export default _default;
|
|
13
14
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -6,11 +6,13 @@ export declare const AllColors: readonly ["primary", "secondary", "light", "gree
|
|
|
6
6
|
export declare const Sizes: readonly ["small", "medium", "big"];
|
|
7
7
|
export declare const BiggerSizes: readonly ["bigger", "huge", "massive"];
|
|
8
8
|
export declare const AllSizes: readonly ["small", "medium", "big", "bigger", "huge", "massive"];
|
|
9
|
+
export declare const Types: string[];
|
|
9
10
|
type Colors = typeof Colors[number];
|
|
10
11
|
type AllColors = typeof AllColors[number];
|
|
11
12
|
type InputTypes = typeof UiInputTypes[number];
|
|
12
13
|
type Sizes = typeof Sizes[number];
|
|
13
14
|
type AllSizes = typeof AllSizes[number];
|
|
15
|
+
type Types = typeof Types[number];
|
|
14
16
|
export interface UiButtonInterface {
|
|
15
17
|
/** Defines if button as block class applied or not */
|
|
16
18
|
block?: boolean;
|
|
@@ -19,7 +21,7 @@ export interface UiButtonInterface {
|
|
|
19
21
|
/** Button is enabled or disabled */
|
|
20
22
|
disabled?: boolean;
|
|
21
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 */
|
|
22
|
-
icon?:
|
|
24
|
+
icon?: FunctionalComponent;
|
|
23
25
|
/** Is in skeleton mode or not */
|
|
24
26
|
loading: boolean;
|
|
25
27
|
/** Size options (see type Sizes) */
|
|
@@ -38,7 +40,7 @@ export interface UiCheckboxInterface {
|
|
|
38
40
|
text?: string;
|
|
39
41
|
}
|
|
40
42
|
export interface UiCheckboxEventsInterface {
|
|
41
|
-
/**
|
|
43
|
+
/** Emitted when click over checkbox */
|
|
42
44
|
(e: 'checkboxChanged', checkbox: UiCheckboxType): void;
|
|
43
45
|
}
|
|
44
46
|
export type UiCheckboxType = {
|
|
@@ -267,6 +269,15 @@ export interface UiToggleInterface {
|
|
|
267
269
|
/** Is loading or not */
|
|
268
270
|
loading: boolean;
|
|
269
271
|
}
|
|
272
|
+
export interface UiToggleEventsInterface {
|
|
273
|
+
/** emitted when toggle is changed */
|
|
274
|
+
(e: 'toggleChanged', T: {
|
|
275
|
+
item: UiToggleInterface["item"];
|
|
276
|
+
active: boolean;
|
|
277
|
+
}): void;
|
|
278
|
+
/** emitted when right action is clicked */
|
|
279
|
+
(e: 'actionClicked', item: UiToggleInterface["item"]): void;
|
|
280
|
+
}
|
|
270
281
|
export interface UiAlertInterface {
|
|
271
282
|
/** List of possible actions that are at the bottom of the notification */
|
|
272
283
|
actions?: {
|
|
@@ -281,78 +292,160 @@ export interface UiAlertInterface {
|
|
|
281
292
|
loading?: boolean;
|
|
282
293
|
}
|
|
283
294
|
export interface UiAlertEventsInterface {
|
|
284
|
-
/** When an alert action is clicked */
|
|
295
|
+
/** When an alert action is clicked emits UiAlertInterface["actions"]["event"] */
|
|
285
296
|
(e: 'alertEvent', T: string): void;
|
|
286
297
|
}
|
|
287
298
|
export interface UiBreadcrumbsInterface {
|
|
299
|
+
/** pages array */
|
|
288
300
|
pages: {
|
|
301
|
+
/** string literal */
|
|
289
302
|
name: string;
|
|
303
|
+
/** route link */
|
|
290
304
|
routeName: string;
|
|
305
|
+
/** it´s current route or not */
|
|
291
306
|
current?: boolean;
|
|
292
307
|
}[];
|
|
308
|
+
/** shows skeletons */
|
|
293
309
|
loading?: boolean;
|
|
294
310
|
}
|
|
311
|
+
export interface UiBreadcrumbsEventInterface {
|
|
312
|
+
/** emits UiBreadcrumbsInterface["pages"]["routeName"] when a breadcrumb is clicked */
|
|
313
|
+
(e: 'breadCrumbClicked', T: string): void;
|
|
314
|
+
}
|
|
295
315
|
export interface UiCardInterface {
|
|
316
|
+
/** card id */
|
|
296
317
|
id: string;
|
|
318
|
+
/** card title */
|
|
297
319
|
name: string;
|
|
320
|
+
/** card subtitle */
|
|
298
321
|
type: string;
|
|
322
|
+
/** array of tags */
|
|
299
323
|
tags?: UiTagInterface[];
|
|
324
|
+
/** logo url string */
|
|
300
325
|
logo: string;
|
|
326
|
+
/** show skeleton */
|
|
301
327
|
loading: boolean;
|
|
302
328
|
}
|
|
329
|
+
export interface UiCardEventsInterface {
|
|
330
|
+
/** Emits when card is clicked */
|
|
331
|
+
(e: 'cardSelected', T: {
|
|
332
|
+
id: UiCardInterface["id"];
|
|
333
|
+
name: UiCardInterface["name"];
|
|
334
|
+
type: UiCardInterface["type"];
|
|
335
|
+
tags: UiCardInterface["tags"];
|
|
336
|
+
}): void;
|
|
337
|
+
}
|
|
303
338
|
export interface UiDeviceStatusInterface {
|
|
339
|
+
/** device id */
|
|
304
340
|
id: string;
|
|
341
|
+
/** device name */
|
|
305
342
|
name: string;
|
|
343
|
+
/** icon component from Heroicons */
|
|
306
344
|
icon: any;
|
|
345
|
+
/** icon background color */
|
|
307
346
|
color: AllColors;
|
|
347
|
+
/** device quantity */
|
|
308
348
|
qty: number;
|
|
349
|
+
/** tags array */
|
|
309
350
|
tags?: UiTagInterface[];
|
|
351
|
+
/** show skeleton */
|
|
310
352
|
loading: boolean;
|
|
311
353
|
}
|
|
354
|
+
export interface UiDeviceStatusEventsInterface {
|
|
355
|
+
/** emitted when a tag is clicked*/
|
|
356
|
+
(e: 'deviceStatusTagClicked', T: UiTagInterface["event"]): void;
|
|
357
|
+
/** emitted when the link in the device status is clicked */
|
|
358
|
+
(e: 'deviceStatusQtyClicked', T: UiDeviceStatusInterface["id"]): void;
|
|
359
|
+
}
|
|
312
360
|
export interface UiFilterInterface {
|
|
313
|
-
|
|
361
|
+
/** items array */
|
|
314
362
|
items: {
|
|
363
|
+
/** literal string */
|
|
315
364
|
name: string;
|
|
365
|
+
/** internal value */
|
|
316
366
|
value: string;
|
|
367
|
+
/** is active or not */
|
|
317
368
|
active?: boolean;
|
|
318
369
|
}[];
|
|
370
|
+
/** float position of dropdown */
|
|
319
371
|
position?: "left" | "right";
|
|
372
|
+
/** label literal above filter */
|
|
320
373
|
label?: string;
|
|
374
|
+
/** show skeleton */
|
|
321
375
|
loading?: boolean;
|
|
322
376
|
}
|
|
377
|
+
export interface UiFilterEventsInterface {
|
|
378
|
+
/** emits UiFilterInterface["items"]["value"] when filter is selected */
|
|
379
|
+
(e: 'filterSelected', T: string): void;
|
|
380
|
+
}
|
|
323
381
|
export interface UiModalInterface {
|
|
382
|
+
/** modal title */
|
|
324
383
|
title: string;
|
|
384
|
+
/** actions array */
|
|
325
385
|
actions: {
|
|
386
|
+
/** value of the action */
|
|
326
387
|
value: string;
|
|
388
|
+
/** action literal */
|
|
327
389
|
name: string;
|
|
328
390
|
}[];
|
|
391
|
+
/** modal name */
|
|
329
392
|
modalName: string;
|
|
393
|
+
/** show modal or not */
|
|
330
394
|
open: boolean;
|
|
331
|
-
type
|
|
395
|
+
/** modal type */
|
|
396
|
+
type?: Types;
|
|
397
|
+
/** show skeleton */
|
|
332
398
|
loading?: boolean;
|
|
333
399
|
}
|
|
400
|
+
export interface UiModalEventsInterface {
|
|
401
|
+
/** emitted when a modal action is clicked, action emits: UiModalInterface["actions"]["value"] */
|
|
402
|
+
(e: 'modalAction', T: {
|
|
403
|
+
modal: UiModalInterface["modalName"];
|
|
404
|
+
action: string;
|
|
405
|
+
}): void;
|
|
406
|
+
}
|
|
334
407
|
export interface UiNotificationInterface {
|
|
335
|
-
type
|
|
408
|
+
/** notification type */
|
|
409
|
+
type?: Types;
|
|
410
|
+
/** notification title */
|
|
336
411
|
title: string;
|
|
412
|
+
/** notification message */
|
|
337
413
|
message?: string;
|
|
414
|
+
/** not in use, only for DS purposes */
|
|
338
415
|
fixed: boolean;
|
|
416
|
+
/** show or not */
|
|
339
417
|
show: boolean;
|
|
340
418
|
}
|
|
419
|
+
export interface UiNotificationEventsInterface {
|
|
420
|
+
/** emitted when X icon is clicked */
|
|
421
|
+
(e: 'closeNotification'): void;
|
|
422
|
+
}
|
|
341
423
|
export interface UiSectionTitleInterface {
|
|
424
|
+
/** section title */
|
|
342
425
|
title: string;
|
|
426
|
+
/** section description */
|
|
343
427
|
description?: string;
|
|
344
428
|
}
|
|
345
429
|
export type TaskType = {
|
|
430
|
+
/** internal id of task*/
|
|
346
431
|
id: number;
|
|
432
|
+
/** name of task */
|
|
347
433
|
name: string;
|
|
434
|
+
/** task action string */
|
|
348
435
|
action: string;
|
|
436
|
+
/** task action href */
|
|
349
437
|
href: string;
|
|
350
|
-
status
|
|
438
|
+
/** task action status */
|
|
439
|
+
status: "Complete" | "In progress" | "Incomplete";
|
|
440
|
+
/** task status literal string */
|
|
351
441
|
statusLiteral: string;
|
|
442
|
+
/** task description */
|
|
352
443
|
description: string;
|
|
353
444
|
};
|
|
354
445
|
export interface UiTaskList {
|
|
446
|
+
/** list of tasks */
|
|
355
447
|
tasks: TaskType[];
|
|
448
|
+
/** show skeleton */
|
|
356
449
|
loading?: boolean;
|
|
357
450
|
}
|
|
358
451
|
export type chartOptionsType = {
|
|
@@ -415,20 +508,29 @@ export type chartOptionsType = {
|
|
|
415
508
|
};
|
|
416
509
|
};
|
|
417
510
|
export interface UiChartInterface {
|
|
511
|
+
/** uiCircleChart sections labels */
|
|
512
|
+
labels?: string[];
|
|
513
|
+
/** chart title */
|
|
418
514
|
title: string;
|
|
515
|
+
/** chart is Net promoter score */
|
|
419
516
|
isNps?: boolean;
|
|
517
|
+
/** nps string literals */
|
|
420
518
|
npsLiterals?: {
|
|
421
519
|
unhappy: string;
|
|
422
520
|
neutral: string;
|
|
423
521
|
happy: string;
|
|
424
522
|
};
|
|
523
|
+
/** chart id */
|
|
425
524
|
id: string;
|
|
525
|
+
/** chart type (NOT USED in uiCircleChart && uiFunnelChartV2) */
|
|
426
526
|
type?: "area" | "line" | "bar" | "scatter";
|
|
527
|
+
/** chart series and if different type, type */
|
|
427
528
|
series: {
|
|
428
529
|
name: string;
|
|
429
530
|
type?: "area" | "line" | "bar" | "scatter";
|
|
430
531
|
data: number[];
|
|
431
532
|
}[];
|
|
533
|
+
/** chart options (NOT USED in uiCircleChart) */
|
|
432
534
|
options?: {
|
|
433
535
|
xaxis: {
|
|
434
536
|
type: string;
|
|
@@ -436,79 +538,159 @@ export interface UiChartInterface {
|
|
|
436
538
|
categories: string[];
|
|
437
539
|
};
|
|
438
540
|
};
|
|
541
|
+
/** show skeleton */
|
|
439
542
|
loading?: boolean;
|
|
543
|
+
/** if chart has no data */
|
|
440
544
|
empty?: boolean;
|
|
545
|
+
/** show data in this range */
|
|
441
546
|
range?: "24h" | "7d" | "1m" | "3m" | "all";
|
|
547
|
+
/** horizontal or vertical (for columns) (NOT USED in uiCircleChart && uiFunnelChartV2) */
|
|
442
548
|
horizontal?: boolean;
|
|
549
|
+
/** columns are stacked (NOT USED in uiCircleChart && uiFunnelChartV2) */
|
|
443
550
|
stacked?: boolean;
|
|
551
|
+
/** if charts needs a custom height */
|
|
444
552
|
height?: number;
|
|
553
|
+
/** draw a line (check score objetive) (NOT USED in uiCircleChart && uiFunnelChartV2) */
|
|
445
554
|
annotations?: {
|
|
446
555
|
text: string;
|
|
447
556
|
high: number;
|
|
448
557
|
};
|
|
449
558
|
}
|
|
559
|
+
export interface UiChartEventsInterface {
|
|
560
|
+
/** emitted when user clicks on range buttons */
|
|
561
|
+
(e: "selectedRange", T: {
|
|
562
|
+
range?: "24h" | "7d" | "1m" | "3m" | "all";
|
|
563
|
+
chartId: UiChartInterface["id"];
|
|
564
|
+
}): void;
|
|
565
|
+
/** emitted when chart updated */
|
|
566
|
+
(e: "chartUpdated"): void;
|
|
567
|
+
/** emitted when a point inside chart is clicked */
|
|
568
|
+
(e: "dataPointSelection", T: any): void;
|
|
569
|
+
}
|
|
450
570
|
export interface UiDateRangeInterface {
|
|
571
|
+
/** unique identifier */
|
|
451
572
|
id: string;
|
|
573
|
+
/** show skeleton */
|
|
452
574
|
loading?: boolean;
|
|
575
|
+
/** date range literal strings */
|
|
453
576
|
literals: {
|
|
454
577
|
from: string;
|
|
455
578
|
to: string;
|
|
456
579
|
search: string;
|
|
457
580
|
};
|
|
581
|
+
/** date range dates */
|
|
458
582
|
values?: {
|
|
459
|
-
from?:
|
|
460
|
-
to?:
|
|
583
|
+
from?: string;
|
|
584
|
+
to?: string;
|
|
461
585
|
};
|
|
586
|
+
/** date range field colors */
|
|
462
587
|
color?: AllColors;
|
|
588
|
+
/** show error message below field */
|
|
463
589
|
error?: string;
|
|
590
|
+
/** is date range disabled */
|
|
464
591
|
disabled?: boolean;
|
|
592
|
+
/** show label above date range */
|
|
465
593
|
label?: string;
|
|
594
|
+
/** fields placeholder */
|
|
466
595
|
placeholder?: string;
|
|
467
596
|
}
|
|
597
|
+
export interface UiDateRangeEventsInterface {
|
|
598
|
+
/** emitted when date range button is clicked */
|
|
599
|
+
(e: 'uiDateRangeButtonClicked', t: UiDateRangeInterface["values"]): void;
|
|
600
|
+
}
|
|
468
601
|
export interface UiDragAndDropInterface {
|
|
602
|
+
/** drag and drop array of elements */
|
|
469
603
|
elements: {
|
|
470
604
|
id: number;
|
|
471
605
|
name: string;
|
|
472
606
|
description: string;
|
|
473
607
|
}[];
|
|
608
|
+
/** show skeleton */
|
|
474
609
|
loading?: boolean;
|
|
475
610
|
}
|
|
611
|
+
export interface UiDragAndDropEventsInterface {
|
|
612
|
+
/** emitted when drag and drop elements are updated (dragged)*/
|
|
613
|
+
(e: "dragAndDropUpdated", T: any): void;
|
|
614
|
+
}
|
|
476
615
|
export interface UiGalleryInterface {
|
|
616
|
+
/** unique id gallery */
|
|
477
617
|
galleryId: string;
|
|
618
|
+
/** images gallery array */
|
|
478
619
|
gallery: {
|
|
620
|
+
/** image title or file name */
|
|
479
621
|
title: string;
|
|
622
|
+
/** image size reference */
|
|
480
623
|
size: string;
|
|
624
|
+
/** image url */
|
|
481
625
|
source: string;
|
|
482
626
|
}[];
|
|
627
|
+
/** show skeleton */
|
|
483
628
|
loading?: boolean;
|
|
629
|
+
/** image gallery string literals */
|
|
484
630
|
literals: {
|
|
631
|
+
/** delete button string literal */
|
|
485
632
|
deleteAllImages: string;
|
|
633
|
+
/** doble opt in modal title */
|
|
486
634
|
modalTitle: string;
|
|
635
|
+
/** doble opt in modal text */
|
|
487
636
|
modalText: string;
|
|
637
|
+
/** close action string literal */
|
|
488
638
|
closeAction: string;
|
|
639
|
+
/** delete action string literal */
|
|
489
640
|
deleteAction: string;
|
|
490
641
|
};
|
|
491
642
|
}
|
|
643
|
+
export interface UiGalleryEventsInterface {
|
|
644
|
+
/** emitted when a modal action is clicked, emits modal action */
|
|
645
|
+
(e: "modalAction", T: any): void;
|
|
646
|
+
/** emitted when delete image bin icon is clicked, emits image */
|
|
647
|
+
(e: "deleteImage", T: any): void;
|
|
648
|
+
/** emitted when an image is clicked, emits image */
|
|
649
|
+
(e: "imgClicked", T: any): void;
|
|
650
|
+
}
|
|
492
651
|
export interface UiLoadScreenInterface {
|
|
652
|
+
/** title string */
|
|
493
653
|
title?: string;
|
|
654
|
+
/** message string */
|
|
494
655
|
message?: string;
|
|
656
|
+
/** not in use, only for DS purposes */
|
|
495
657
|
fixed?: boolean;
|
|
496
658
|
}
|
|
497
659
|
export interface UiNoResultsInterface {
|
|
660
|
+
/** title string literal */
|
|
498
661
|
title: string;
|
|
662
|
+
/** message string literal */
|
|
499
663
|
message: string;
|
|
664
|
+
/** uiButtons array */
|
|
500
665
|
actions: {
|
|
666
|
+
/** action to emit when clicked */
|
|
501
667
|
action: string;
|
|
668
|
+
/** string literal */
|
|
502
669
|
text: string;
|
|
503
670
|
}[];
|
|
671
|
+
/** want to add more options, add items */
|
|
504
672
|
items: UiDropdownItemType[];
|
|
673
|
+
/** default selected item */
|
|
505
674
|
select: UiDropdownItemType;
|
|
506
675
|
}
|
|
676
|
+
export interface UiNoResultsEventsInterface {
|
|
677
|
+
/** action button clicked */
|
|
678
|
+
(e: "action", T: string): void;
|
|
679
|
+
/** dropdown option selected */
|
|
680
|
+
(e: "noResultsOptionSelected", T: UiDropdownItemType): void;
|
|
681
|
+
}
|
|
507
682
|
export interface UiPaginationInterface {
|
|
683
|
+
/** current page number */
|
|
508
684
|
current: number;
|
|
685
|
+
/** total number of pages */
|
|
509
686
|
total: number;
|
|
687
|
+
/** show skeleton */
|
|
510
688
|
loading?: boolean;
|
|
511
689
|
}
|
|
690
|
+
export interface UiPaginationEventsInterface {
|
|
691
|
+
/** emits when a button is clicked, emits a page number */
|
|
692
|
+
(e: "changePage", T: number): void;
|
|
693
|
+
}
|
|
512
694
|
export interface UiRightSidebarInterface {
|
|
513
695
|
title?: string;
|
|
514
696
|
description?: string;
|
|
@@ -607,6 +789,7 @@ export type TableItemType = {
|
|
|
607
789
|
}>;
|
|
608
790
|
};
|
|
609
791
|
export interface UiTableInterface {
|
|
792
|
+
resetSelected: boolean;
|
|
610
793
|
orderedBy: string;
|
|
611
794
|
orderDirection?: "asc" | "desc";
|
|
612
795
|
loading?: boolean;
|
|
@@ -689,18 +872,88 @@ export interface UiWrapperInterface {
|
|
|
689
872
|
sidebar: UiSidebarV2Interface;
|
|
690
873
|
}
|
|
691
874
|
export interface UiDynamicStatsInterface {
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
875
|
+
/** uiStat Array */
|
|
876
|
+
dynamicStats: UiStatsInterface["item"][];
|
|
877
|
+
/** show skeleton */
|
|
878
|
+
loading: boolean;
|
|
879
|
+
}
|
|
880
|
+
export interface UiPriceCalendarInterface {
|
|
881
|
+
/** show skeleton */
|
|
882
|
+
loading: boolean;
|
|
883
|
+
/** Is a prices table or a discounts table */
|
|
884
|
+
type: "prices" | "discounts";
|
|
885
|
+
/** currency information */
|
|
886
|
+
currency: {
|
|
887
|
+
/** currency name: ej "EUR" */
|
|
698
888
|
name: string;
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
889
|
+
/** currency symbol: ej "€" */
|
|
890
|
+
symbol: string;
|
|
891
|
+
};
|
|
892
|
+
/** listed default selection prices and upgrade prices for this category */
|
|
893
|
+
category: {
|
|
894
|
+
/** category name */
|
|
895
|
+
name: string;
|
|
896
|
+
/** array of selection prices based on date */
|
|
897
|
+
selectionPrices: {
|
|
898
|
+
date: Date;
|
|
899
|
+
price: number;
|
|
900
|
+
}[];
|
|
901
|
+
/** array of upgrade prices based on date */
|
|
902
|
+
upgradePrices: {
|
|
903
|
+
date: Date;
|
|
904
|
+
price: number;
|
|
905
|
+
}[];
|
|
906
|
+
};
|
|
907
|
+
/** listed rooms for this category with selection prices by date */
|
|
908
|
+
rooms: UiPriceCalendarRoomType[];
|
|
909
|
+
/** table actions based on row selections */
|
|
910
|
+
actions: {
|
|
911
|
+
/** action string literal */
|
|
912
|
+
name: string;
|
|
913
|
+
/** actino id */
|
|
914
|
+
id: string;
|
|
703
915
|
}[];
|
|
704
|
-
|
|
916
|
+
/** table literals */
|
|
917
|
+
literals: {
|
|
918
|
+
category: string;
|
|
919
|
+
changeInBulk: string;
|
|
920
|
+
pricesSelection: string;
|
|
921
|
+
pricesUpgrade: string;
|
|
922
|
+
room: string;
|
|
923
|
+
building: string;
|
|
924
|
+
floor: string;
|
|
925
|
+
pricesDiscount: string;
|
|
926
|
+
};
|
|
927
|
+
}
|
|
928
|
+
export type UiPriceCalendarRoomType = {
|
|
929
|
+
/** room id */
|
|
930
|
+
id: string;
|
|
931
|
+
/** room name */
|
|
932
|
+
name: string;
|
|
933
|
+
/** building the room is in */
|
|
934
|
+
building: string;
|
|
935
|
+
/** the floor the room is in */
|
|
936
|
+
floor: string;
|
|
937
|
+
/** selection prices for this room based on dates */
|
|
938
|
+
selectionPrices: UiRoomTypeSelectionPriceType[];
|
|
939
|
+
};
|
|
940
|
+
/** selection prices for this room based on dates */
|
|
941
|
+
export type UiRoomTypeSelectionPriceType = {
|
|
942
|
+
date: Date;
|
|
943
|
+
price: number;
|
|
944
|
+
};
|
|
945
|
+
export interface UiPricesCalendarEventsInterface {
|
|
946
|
+
/** when a date button is clicked */
|
|
947
|
+
(e: 'dateChanged', t: Date): void;
|
|
948
|
+
/** click change category prices in bulk button */
|
|
949
|
+
(e: 'changeCategoryBulkPrices'): void;
|
|
950
|
+
/** click on category price */
|
|
951
|
+
(e: 'changeCategorySelectionPrice', t: UiRoomTypeSelectionPriceType): void;
|
|
952
|
+
/** click on category upgrade price */
|
|
953
|
+
(e: 'changeCategoryUpgradePrice', t: UiRoomTypeSelectionPriceType): void;
|
|
954
|
+
/** click on room price */
|
|
955
|
+
(e: 'changeRoomPrice', t: UiRoomTypeSelectionPriceType): void;
|
|
956
|
+
/** click on table action */
|
|
957
|
+
(e: 'tableAction', t: any): void;
|
|
705
958
|
}
|
|
706
959
|
export {};
|