@hotelinking/ui 10.43.4 → 10.43.5

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/ui.d.ts CHANGED
@@ -2,12 +2,12 @@ import { App } from 'vue';
2
2
  import { ComponentOptionsMixin } from 'vue';
3
3
  import { ComponentProvideOptions } from 'vue';
4
4
  import { DefineComponent } from 'vue';
5
- import { FileInputType } from '../../../types';
5
+ import { FileInputType as FileInputType_2 } from '../../../types';
6
6
  import { FunctionalComponent } from 'vue';
7
- import { InputType } from '../../../types';
7
+ import { InputType as InputType_2 } from '../../../types';
8
8
  import { PublicProps } from 'vue';
9
9
  import { SelectItemType as SelectItemType_2 } from '../../../types';
10
- import { UiCheckboxType } from '../../../types';
10
+ import { UiCheckboxType as UiCheckboxType_2 } from '../../../types';
11
11
  import { UiDropdownItemType as UiDropdownItemType_2 } from '../../../types';
12
12
  import { UiTagInterface as UiTagInterface_2 } from '../../../types';
13
13
 
@@ -59,47 +59,125 @@ declare type __VLS_WithTemplateSlots_8<T, S> = T & {
59
59
  };
60
60
  };
61
61
 
62
- declare const AllColors_2: readonly ["primary", "secondary", "light", "green", "yellow", "red", "black", "gray", "white"];
62
+ export declare const AllColors: readonly ["primary", "secondary", "light", "green", "yellow", "red", "black", "gray", "white"];
63
63
 
64
- declare type AllColors = typeof AllColors_2[number];
64
+ declare const AllColors: readonly ["primary", "secondary", "light", "green", "yellow", "red", "black", "gray", "white"];
65
65
 
66
- declare const AllColors_2: readonly ["primary", "secondary", "light", "green", "yellow", "red", "black", "gray", "white"];
66
+ declare type AllColors_2 = typeof AllColors[number];
67
67
 
68
- declare const AllSizes_2: readonly ["small", "medium", "big", "bigger", "huge", "massive"];
68
+ export declare const AllSizes: readonly ["small", "medium", "big", "bigger", "huge", "massive"];
69
69
 
70
- declare type AllSizes = typeof AllSizes_2[number];
70
+ declare const AllSizes: readonly ["small", "medium", "big", "bigger", "huge", "massive"];
71
71
 
72
- declare const AllSizes_2: readonly ["small", "medium", "big", "bigger", "huge", "massive"];
72
+ declare type AllSizes_2 = typeof AllSizes[number];
73
73
 
74
- declare const Colors_2: readonly ["primary", "secondary", "light", "green", "yellow", "red"];
74
+ export declare const BiggerSizes: readonly ["bigger", "huge", "massive"];
75
75
 
76
- declare type Colors = typeof Colors_2[number];
76
+ export declare type chartOptionsType = {
77
+ chart: {
78
+ toolbar: {
79
+ show: boolean;
80
+ };
81
+ zoom: {
82
+ enabled: boolean;
83
+ };
84
+ stacked?: boolean;
85
+ type?: "area" | "line" | "bar" | "scatter";
86
+ };
87
+ colors: any;
88
+ stroke?: {
89
+ show: boolean;
90
+ curve: string;
91
+ lineCap: string;
92
+ width: number;
93
+ dashArray: number;
94
+ };
95
+ dataLabels: {
96
+ enabled: boolean;
97
+ formatter?: Function;
98
+ };
99
+ markers: {
100
+ strokeWidth: number;
101
+ size: number;
102
+ hover: {
103
+ size: number;
104
+ };
105
+ };
106
+ annotations?: {
107
+ yaxis: [
108
+ {
109
+ y: number;
110
+ borderColor: string;
111
+ label: {
112
+ borderColor: string;
113
+ style: {
114
+ color: string;
115
+ background: string;
116
+ };
117
+ text: string;
118
+ };
119
+ }
120
+ ];
121
+ };
122
+ tooltip?: {
123
+ intersect: boolean;
124
+ shared: boolean;
125
+ };
126
+ plotOptions?: {
127
+ bar: {
128
+ horizontal?: boolean;
129
+ borderRadius?: number;
130
+ barHeight?: string;
131
+ isFunnel?: boolean;
132
+ };
133
+ };
134
+ };
77
135
 
78
- declare const Colors_2: readonly ["primary", "secondary", "light", "green", "yellow", "red"];
136
+ export declare const Colors: readonly ["primary", "secondary", "light", "green", "yellow", "red"];
137
+
138
+ declare const Colors: readonly ["primary", "secondary", "light", "green", "yellow", "red"];
139
+
140
+ declare type Colors_2 = typeof Colors[number];
79
141
 
80
142
  declare const _default: {
81
143
  install: typeof install;
82
144
  };
83
145
  export default _default;
84
146
 
147
+ export declare type FileInputType = {
148
+ /** Id of the input field */
149
+ id: string;
150
+ /** Uploaded files */
151
+ files: any;
152
+ };
153
+
154
+ export declare type InputType = {
155
+ /** Name of the input field */
156
+ name: string;
157
+ /** Internal value of input field */
158
+ value: string;
159
+ };
160
+
85
161
  declare type InputTypes = typeof UiInputTypes[number];
86
162
 
87
163
  declare function install(app: App): void;
88
164
 
89
- declare type SelectItemType = {
165
+ export declare const MonoColors: readonly ["black", "gray", "white"];
166
+
167
+ export declare type SelectItemType = {
90
168
  /** Unique value inside the select */
91
169
  id: string;
92
170
  /** Name of the item */
93
171
  name: string;
94
172
  };
95
173
 
96
- declare const Sizes_2: readonly ["small", "medium", "big"];
174
+ export declare const Sizes: readonly ["small", "medium", "big"];
97
175
 
98
- declare type Sizes = typeof Sizes_2[number];
176
+ declare const Sizes: readonly ["small", "medium", "big"];
99
177
 
100
- declare const Sizes_2: readonly ["small", "medium", "big"];
178
+ declare type Sizes_2 = typeof Sizes[number];
101
179
 
102
- declare type TableItemType = {
180
+ export declare type TableItemType = {
103
181
  /** co unique id */
104
182
  id: string | number;
105
183
  /** when a row is emitted, if additional info is needed, can be put here */
@@ -109,7 +187,7 @@ declare type TableItemType = {
109
187
  /** string literal */
110
188
  content: string;
111
189
  /** if tag, backgroun color of tag */
112
- color: AllColors;
190
+ color: AllColors_2;
113
191
  /** tag, link that emits, or href link */
114
192
  type?: 'tag' | 'link' | 'href';
115
193
  /** content emitted if clicked on link type */
@@ -119,7 +197,7 @@ declare type TableItemType = {
119
197
  }>;
120
198
  };
121
199
 
122
- declare type TaskType = {
200
+ export declare type TaskType = {
123
201
  /** internal id of task*/
124
202
  id: number;
125
203
  /** name of task */
@@ -136,11 +214,11 @@ declare type TaskType = {
136
214
  description: string;
137
215
  };
138
216
 
139
- declare const Types_2: string[];
217
+ export declare const Types: string[];
140
218
 
141
- declare type Types = typeof Types_2[number];
219
+ declare const Types: string[];
142
220
 
143
- declare const Types_2: string[];
221
+ declare type Types_2 = typeof Types[number];
144
222
 
145
223
  export declare const uiAlert: __VLS_WithTemplateSlots_4<DefineComponent<UiAlertInterface, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
146
224
  alertEvent: (T: string) => any;
@@ -153,7 +231,12 @@ type: string;
153
231
  default?(_: {}): any;
154
232
  }>;
155
233
 
156
- declare interface UiAlertInterface {
234
+ export declare interface UiAlertEventsInterface {
235
+ /** When an alert action is clicked emits UiAlertInterface["actions"]["event"] */
236
+ (e: 'alertEvent', T: string): void;
237
+ }
238
+
239
+ export declare interface UiAlertInterface {
157
240
  /** List of possible actions that are at the bottom of the notification */
158
241
  actions?: {
159
242
  name: string;
@@ -175,7 +258,12 @@ onBreadCrumbClicked?: ((T: string) => any) | undefined;
175
258
  loading: boolean;
176
259
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
177
260
 
178
- declare interface UiBreadcrumbsInterface {
261
+ export declare interface UiBreadcrumbsEventInterface {
262
+ /** emits UiBreadcrumbsInterface["pages"]["routeName"] when a breadcrumb is clicked */
263
+ (e: 'breadCrumbClicked', T: string): void;
264
+ }
265
+
266
+ export declare interface UiBreadcrumbsInterface {
179
267
  /** pages array */
180
268
  pages: {
181
269
  /** string literal */
@@ -197,11 +285,11 @@ color: "primary" | "secondary" | "light" | "green" | "yellow" | "red";
197
285
  default?(_: {}): any;
198
286
  }>;
199
287
 
200
- declare interface UiButtonInterface {
288
+ export declare interface UiButtonInterface {
201
289
  /** Defines if button as block class applied or not */
202
290
  block?: boolean;
203
291
  /** Color options (see type Colors) */
204
- color?: Colors;
292
+ color?: Colors_2;
205
293
  /** Button is enabled or disabled */
206
294
  disabled?: boolean;
207
295
  /** 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 */
@@ -209,7 +297,7 @@ declare interface UiButtonInterface {
209
297
  /** Is in skeleton mode or not */
210
298
  loading: boolean;
211
299
  /** Size options (see type Sizes) */
212
- size?: Sizes;
300
+ size?: Sizes_2;
213
301
  }
214
302
 
215
303
  export declare const uiCard: DefineComponent<UiCardInterface, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
@@ -230,7 +318,17 @@ tags: UiTagInterface_2[] | undefined;
230
318
  loading: boolean;
231
319
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
232
320
 
233
- declare interface UiCardInterface {
321
+ export declare interface UiCardEventsInterface {
322
+ /** Emits when card is clicked */
323
+ (e: 'cardSelected', T: {
324
+ id: UiCardInterface["id"];
325
+ name: UiCardInterface["name"];
326
+ type: UiCardInterface["type"];
327
+ tags: UiCardInterface["tags"];
328
+ }): void;
329
+ }
330
+
331
+ export declare interface UiCardInterface {
234
332
  /** card id */
235
333
  id: string;
236
334
  /** card title */
@@ -277,7 +375,24 @@ stacked: boolean;
277
375
  height: number;
278
376
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
279
377
 
280
- declare interface UiChartInterface {
378
+ export declare interface UiChartEventsInterface {
379
+ /** emitted when user clicks on range inputs */
380
+ (e: "selectedRange", T: {
381
+ range: {
382
+ from: Date | string;
383
+ to: Date | string;
384
+ };
385
+ chartId: UiChartInterface["id"];
386
+ }): void;
387
+ /** emitted when chart updated */
388
+ (e: "chartUpdated"): void;
389
+ /** emitted when a point inside chart is clicked */
390
+ (e: "dataPointSelection", T: any): void;
391
+ /** emitted when user clicks on enlarge icon */
392
+ (e: "maximizeChart", T: UiChartInterface["id"]): void;
393
+ }
394
+
395
+ export declare interface UiChartInterface {
281
396
  /** uiCircleChart sections labels */
282
397
  labels?: string[];
283
398
  /** default date ranges */
@@ -333,9 +448,9 @@ declare interface UiChartInterface {
333
448
  }
334
449
 
335
450
  export declare const uiCheckbox: __VLS_WithTemplateSlots_2<DefineComponent<UiCheckboxInterface, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
336
- checkboxChanged: (checkbox: UiCheckboxType) => any;
451
+ checkboxChanged: (checkbox: UiCheckboxType_2) => any;
337
452
  }, string, PublicProps, Readonly<UiCheckboxInterface> & Readonly<{
338
- onCheckboxChanged?: ((checkbox: UiCheckboxType) => any) | undefined;
453
+ onCheckboxChanged?: ((checkbox: UiCheckboxType_2) => any) | undefined;
339
454
  }>, {
340
455
  disabled: boolean;
341
456
  loading: boolean;
@@ -344,7 +459,12 @@ check: boolean;
344
459
  default?(_: {}): any;
345
460
  }>;
346
461
 
347
- declare interface UiCheckboxInterface {
462
+ export declare interface UiCheckboxEventsInterface {
463
+ /** Emitted when click over checkbox */
464
+ (e: 'checkboxChanged', checkbox: UiCheckboxType): void;
465
+ }
466
+
467
+ export declare interface UiCheckboxInterface {
348
468
  /** Is checked or not */
349
469
  check?: boolean;
350
470
  /** Is disabled or not */
@@ -357,6 +477,13 @@ declare interface UiCheckboxInterface {
357
477
  text?: string;
358
478
  }
359
479
 
480
+ export declare type UiCheckboxType = {
481
+ /** Is checked or not */
482
+ checked: boolean;
483
+ /** Internal value of checkbox */
484
+ value: string;
485
+ };
486
+
360
487
  export declare const uiCircleChart: DefineComponent<UiChartInterface, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
361
488
  selectedRange: (T: {
362
489
  range: {
@@ -400,7 +527,12 @@ to: string | Date;
400
527
  } | undefined) => any) | undefined;
401
528
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
402
529
 
403
- declare interface UiDateRangeInterface {
530
+ export declare interface UiDateRangeEventsInterface {
531
+ /** emitted when date range button is clicked */
532
+ (e: 'uiDateRangeButtonClicked', t: UiDateRangeInterface["values"] | undefined): void;
533
+ }
534
+
535
+ export declare interface UiDateRangeInterface {
404
536
  /** unique identifier */
405
537
  id: string;
406
538
  /** show skeleton */
@@ -417,7 +549,7 @@ declare interface UiDateRangeInterface {
417
549
  to: Date | string;
418
550
  };
419
551
  /** date range field colors */
420
- color?: AllColors;
552
+ color?: AllColors_2;
421
553
  /** show error message below field */
422
554
  error?: string;
423
555
  /** is date range disabled */
@@ -439,7 +571,14 @@ loading: boolean;
439
571
  qty: number;
440
572
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
441
573
 
442
- declare interface UiDeviceStatusInterface {
574
+ export declare interface UiDeviceStatusEventsInterface {
575
+ /** emitted when a tag is clicked*/
576
+ (e: 'deviceStatusTagClicked', T: UiTagInterface["event"]): void;
577
+ /** emitted when the link in the device status is clicked */
578
+ (e: 'deviceStatusQtyClicked', T: UiDeviceStatusInterface["id"]): void;
579
+ }
580
+
581
+ export declare interface UiDeviceStatusInterface {
443
582
  /** device id */
444
583
  id: string;
445
584
  /** device name */
@@ -447,7 +586,7 @@ declare interface UiDeviceStatusInterface {
447
586
  /** icon component from Heroicons */
448
587
  icon: any;
449
588
  /** icon background color */
450
- color: AllColors;
589
+ color: AllColors_2;
451
590
  /** device quantity */
452
591
  qty: number;
453
592
  /** tags array */
@@ -464,7 +603,12 @@ onDragAndDropUpdated?: ((T: any) => any) | undefined;
464
603
  loading: boolean;
465
604
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
466
605
 
467
- declare interface UiDragAndDropInterface {
606
+ export declare interface UiDragAndDropEventsInterface {
607
+ /** emitted when drag and drop elements are updated (dragged)*/
608
+ (e: "dragAndDropUpdated", T: any): void;
609
+ }
610
+
611
+ export declare interface UiDragAndDropInterface {
468
612
  /** drag and drop array of elements */
469
613
  elements: {
470
614
  id: number;
@@ -484,7 +628,12 @@ position: "left" | "right";
484
628
  loading: boolean;
485
629
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
486
630
 
487
- declare interface UiDropdownInterface {
631
+ export declare interface UiDropdownEventsInterface {
632
+ /** On option selected */
633
+ (e: 'optionSelected', v: UiDropdownItemType): void;
634
+ }
635
+
636
+ export declare interface UiDropdownInterface {
488
637
  /** Dropdown items */
489
638
  items: UiDropdownItemType[];
490
639
  /** Set dropdown to left or right */
@@ -499,7 +648,7 @@ declare interface UiDropdownInterface {
499
648
  requiredText?: string;
500
649
  }
501
650
 
502
- declare type UiDropdownItemType = {
651
+ export declare type UiDropdownItemType = {
503
652
  /** Name of item */
504
653
  name: string;
505
654
  /** Value of item */
@@ -512,7 +661,7 @@ export declare const uiDynamicStats: DefineComponent<UiDynamicStatsInterface, {}
512
661
  loading: boolean;
513
662
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
514
663
 
515
- declare interface UiDynamicStatsInterface {
664
+ export declare interface UiDynamicStatsInterface {
516
665
  /** uiStat Array */
517
666
  dynamicStats: UiStatsInterface["item"][];
518
667
  /** show skeleton */
@@ -528,7 +677,12 @@ position: "left" | "right";
528
677
  loading: boolean;
529
678
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
530
679
 
531
- declare interface UiFilterInterface {
680
+ export declare interface UiFilterEventsInterface {
681
+ /** emits UiFilterInterface["items"]["value"] when filter is selected */
682
+ (e: 'filterSelected', T: string): void;
683
+ }
684
+
685
+ export declare interface UiFilterInterface {
532
686
  /** items array */
533
687
  items: {
534
688
  /** item name */
@@ -591,7 +745,16 @@ onDeleteImage?: ((T: any) => any) | undefined;
591
745
  onImgClicked?: ((T: any) => any) | undefined;
592
746
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
593
747
 
594
- declare interface UiGalleryInterface {
748
+ export declare interface UiGalleryEventsInterface {
749
+ /** emitted when a modal action is clicked, emits modal action */
750
+ (e: "modalAction", T: any): void;
751
+ /** emitted when delete image bin icon is clicked, emits image */
752
+ (e: "deleteImage", T: any): void;
753
+ /** emitted when an image is clicked, emits image */
754
+ (e: "imgClicked", T: any): void;
755
+ }
756
+
757
+ export declare interface UiGalleryInterface {
595
758
  /** unique id gallery */
596
759
  galleryId: string;
597
760
  /** images gallery array */
@@ -626,23 +789,23 @@ size: "big" | "small" | "medium" | "bigger" | "huge" | "massive";
626
789
  color: "primary" | "secondary" | "light" | "green" | "yellow" | "red" | "black" | "gray" | "white";
627
790
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
628
791
 
629
- declare interface UiIconInterface {
792
+ export declare interface UiIconInterface {
630
793
  /** Imported icon from '@heroicons/vue/24/outline' */
631
794
  icon: FunctionalComponent;
632
795
  /** Size options (see type AllSizes) */
633
- size?: AllSizes;
796
+ size?: AllSizes_2;
634
797
  /** Color options (see type AllColors) */
635
- color?: AllColors;
798
+ color?: AllColors_2;
636
799
  /** Is loading or not */
637
800
  loading: boolean;
638
801
  }
639
802
 
640
803
  export declare const uiInput: DefineComponent<UiInputInterface, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
641
- inputChanged: (T: InputType) => any;
804
+ inputChanged: (T: InputType_2) => any;
642
805
  rightAddOnClicked: () => any;
643
806
  addOnClicked: () => any;
644
807
  }, string, PublicProps, Readonly<UiInputInterface> & Readonly<{
645
- onInputChanged?: ((T: InputType) => any) | undefined;
808
+ onInputChanged?: ((T: InputType_2) => any) | undefined;
646
809
  onRightAddOnClicked?: (() => any) | undefined;
647
810
  onAddOnClicked?: (() => any) | undefined;
648
811
  }>, {
@@ -652,16 +815,30 @@ color: "primary" | "secondary" | "light" | "green" | "yellow" | "red" | "black"
652
815
  placeholder: string;
653
816
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
654
817
 
818
+ export declare interface UiInputEventsInterface {
819
+ /** Whenever the input changes */
820
+ (e: "inputChanged", T: InputType): void;
821
+ /** Right addon is clicked */
822
+ (e: "rightAddOnClicked"): void;
823
+ /** Addon clicked */
824
+ (e: "addOnClicked"): void;
825
+ }
826
+
655
827
  export declare const uiInputFile: DefineComponent<UiInputFileInterface, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
656
- filesUploaded: (T: FileInputType) => any;
828
+ filesUploaded: (T: FileInputType_2) => any;
657
829
  }, string, PublicProps, Readonly<UiInputFileInterface> & Readonly<{
658
- onFilesUploaded?: ((T: FileInputType) => any) | undefined;
830
+ onFilesUploaded?: ((T: FileInputType_2) => any) | undefined;
659
831
  }>, {
660
832
  loading: boolean;
661
833
  icon: any;
662
834
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
663
835
 
664
- declare interface UiInputFileInterface {
836
+ export declare interface UiInputFileEventsInterface {
837
+ /** Whenever files are dragged inside input field, or send the default way */
838
+ (e: "filesUploaded", T: FileInputType): void;
839
+ }
840
+
841
+ export declare interface UiInputFileInterface {
665
842
  /** Name of the input field */
666
843
  name: string;
667
844
  /** Id of the input field */
@@ -686,7 +863,7 @@ declare interface UiInputFileInterface {
686
863
  label?: string;
687
864
  }
688
865
 
689
- declare interface UiInputInterface {
866
+ export declare interface UiInputInterface {
690
867
  /** Label in top of the input field */
691
868
  label?: string;
692
869
  /** Input field type */
@@ -700,7 +877,7 @@ declare interface UiInputInterface {
700
877
  /** Is disabled or not */
701
878
  disabled?: boolean;
702
879
  /** Color options (see type Colors) */
703
- color?: AllColors;
880
+ color?: AllColors_2;
704
881
  /** Internal value of input field */
705
882
  value?: string;
706
883
  /** Text below the input field that shows the error */
@@ -719,13 +896,13 @@ declare interface UiInputInterface {
719
896
  loading: boolean;
720
897
  }
721
898
 
722
- declare const UiInputTypes: readonly ["text", "email", "password", "number", "date", "datetime-local"];
899
+ export declare const UiInputTypes: readonly ["text", "email", "password", "number", "date", "datetime-local"];
723
900
 
724
901
  export declare const uiLoadingScreen: DefineComponent<UiLoadScreenInterface, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<UiLoadScreenInterface> & Readonly<{}>, {
725
902
  fixed: boolean;
726
903
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
727
904
 
728
- declare interface UiLoadScreenInterface {
905
+ export declare interface UiLoadScreenInterface {
729
906
  /** title string */
730
907
  title?: string;
731
908
  /** message string */
@@ -752,7 +929,15 @@ open: boolean;
752
929
  default?(_: {}): any;
753
930
  }>;
754
931
 
755
- declare interface UiModalInterface {
932
+ export declare interface UiModalEventsInterface {
933
+ /** emitted when a modal action is clicked, action emits: UiModalInterface["actions"]["value"] */
934
+ (e: 'modalAction', T: {
935
+ modal: UiModalInterface["modalName"];
936
+ action: string;
937
+ }): void;
938
+ }
939
+
940
+ export declare interface UiModalInterface {
756
941
  /** modal title */
757
942
  title: string;
758
943
  /** actions array */
@@ -767,7 +952,7 @@ declare interface UiModalInterface {
767
952
  /** show modal or not */
768
953
  open: boolean;
769
954
  /** modal type */
770
- type?: Types;
955
+ type?: Types_2;
771
956
  /** show skeleton */
772
957
  loading?: boolean;
773
958
  }
@@ -780,7 +965,14 @@ onAction?: ((T: string) => any) | undefined;
780
965
  onNoResultsOptionSelected?: ((T: UiDropdownItemType_2) => any) | undefined;
781
966
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
782
967
 
783
- declare interface UiNoResultsInterface {
968
+ export declare interface UiNoResultsEventsInterface {
969
+ /** action button clicked */
970
+ (e: "action", T: string): void;
971
+ /** dropdown option selected */
972
+ (e: "noResultsOptionSelected", T: UiDropdownItemType): void;
973
+ }
974
+
975
+ export declare interface UiNoResultsInterface {
784
976
  /** title string literal */
785
977
  title: string;
786
978
  /** message string literal */
@@ -808,9 +1000,14 @@ type: string;
808
1000
  show: boolean;
809
1001
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
810
1002
 
811
- declare interface UiNotificationInterface {
1003
+ export declare interface UiNotificationEventsInterface {
1004
+ /** emitted when X icon is clicked */
1005
+ (e: 'closeNotification'): void;
1006
+ }
1007
+
1008
+ export declare interface UiNotificationInterface {
812
1009
  /** notification type */
813
- type?: Types;
1010
+ type?: Types_2;
814
1011
  /** notification title */
815
1012
  title: string;
816
1013
  /** notification message */
@@ -839,7 +1036,12 @@ loading: boolean;
839
1036
  of?(_: {}): any;
840
1037
  }>;
841
1038
 
842
- declare interface UiPaginationInterface {
1039
+ export declare interface UiPaginationEventsInterface {
1040
+ /** emits when a button is clicked, emits a page number */
1041
+ (e: "changePage", T: number): void;
1042
+ }
1043
+
1044
+ export declare interface UiPaginationInterface {
843
1045
  /** current page number */
844
1046
  current: number;
845
1047
  /** total number of pages */
@@ -872,7 +1074,7 @@ roomName: string;
872
1074
  }) => any) | undefined;
873
1075
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
874
1076
 
875
- declare interface UiPriceCalendarInterface {
1077
+ export declare interface UiPriceCalendarInterface {
876
1078
  /** show skeleton */
877
1079
  loading: boolean;
878
1080
  /** default starting date */
@@ -923,7 +1125,7 @@ declare interface UiPriceCalendarInterface {
923
1125
  };
924
1126
  }
925
1127
 
926
- declare type UiPriceCalendarRoomType = {
1128
+ export declare type UiPriceCalendarRoomType = {
927
1129
  /** room id */
928
1130
  id: string;
929
1131
  /** room name */
@@ -936,6 +1138,25 @@ declare type UiPriceCalendarRoomType = {
936
1138
  selectionPrices: UiRoomTypeSelectionPriceType[];
937
1139
  };
938
1140
 
1141
+ export declare interface UiPricesCalendarEventsInterface {
1142
+ /** when a date button is clicked */
1143
+ (e: 'dateChanged', t: Date): void;
1144
+ /** click change category prices in bulk button */
1145
+ (e: 'changeCategoryBulkPrices'): void;
1146
+ /** click on category price */
1147
+ (e: 'changeCategorySelectionPrice', t: UiRoomTypeSelectionPriceType): void;
1148
+ /** click on category upgrade price */
1149
+ (e: 'changeCategoryUpgradePrice', t: UiRoomTypeSelectionPriceType): void;
1150
+ /** click on room price */
1151
+ (e: 'changeRoomPrice', t: {
1152
+ price: UiRoomTypeSelectionPriceType;
1153
+ roomId: string;
1154
+ roomName: string;
1155
+ }): void;
1156
+ /** click on table action */
1157
+ (e: 'tableAction', t: any): void;
1158
+ }
1159
+
939
1160
  export declare const uiRangeSlider: DefineComponent<UiRangeSliderInterface, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
940
1161
  sliderUpdated: (T: any) => any;
941
1162
  }, string, PublicProps, Readonly<UiRangeSliderInterface> & Readonly<{
@@ -945,7 +1166,12 @@ disabled: boolean;
945
1166
  loading: boolean;
946
1167
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
947
1168
 
948
- declare interface UiRangeSliderInterface {
1169
+ export declare interface UiRangeSliderEventsInterface {
1170
+ /** Whenever the slider is changed */
1171
+ (e: "sliderUpdated", T: any): void;
1172
+ }
1173
+
1174
+ export declare interface UiRangeSliderInterface {
949
1175
  /** Is loading or not */
950
1176
  loading: boolean;
951
1177
  /** Is disabled or not */
@@ -972,7 +1198,12 @@ open: boolean;
972
1198
  default?(_: {}): any;
973
1199
  }>;
974
1200
 
975
- declare interface UiRightSidebarInterface {
1201
+ export declare interface UiRightSidebarEventsInterface {
1202
+ /** emits when click outside bar or X icon */
1203
+ (e: "closeRightBar"): void;
1204
+ }
1205
+
1206
+ export declare interface UiRightSidebarInterface {
976
1207
  /** Sidebar title */
977
1208
  title?: string;
978
1209
  /** sidebar description or secondary text */
@@ -982,14 +1213,14 @@ declare interface UiRightSidebarInterface {
982
1213
  }
983
1214
 
984
1215
  /** selection prices for this room based on dates */
985
- declare type UiRoomTypeSelectionPriceType = {
1216
+ export declare type UiRoomTypeSelectionPriceType = {
986
1217
  date: Date;
987
1218
  price: number;
988
1219
  };
989
1220
 
990
1221
  export declare const uiSectionTitle: DefineComponent<UiSectionTitleInterface, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<UiSectionTitleInterface> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
991
1222
 
992
- declare interface UiSectionTitleInterface {
1223
+ export declare interface UiSectionTitleInterface {
993
1224
  /** section title */
994
1225
  title: string;
995
1226
  /** section description */
@@ -1007,7 +1238,12 @@ loading: boolean;
1007
1238
  color: "primary" | "secondary" | "light" | "green" | "yellow" | "red" | "black" | "gray" | "white";
1008
1239
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1009
1240
 
1010
- declare interface UiSelectInterface {
1241
+ export declare interface UiSelectEventsInterface {
1242
+ /** When a item is selected */
1243
+ (e: "selectChanged", T: SelectItemType): void;
1244
+ }
1245
+
1246
+ export declare interface UiSelectInterface {
1011
1247
  /** Array of items */
1012
1248
  items: SelectItemType[];
1013
1249
  /** Label in top of the Select */
@@ -1015,7 +1251,7 @@ declare interface UiSelectInterface {
1015
1251
  /** Text below the input field that shows the error */
1016
1252
  error?: string;
1017
1253
  /** Color options (see type AllColors) */
1018
- color?: AllColors;
1254
+ color?: AllColors_2;
1019
1255
  /** Selected item */
1020
1256
  select: SelectItemType;
1021
1257
  /** Is loading or not */
@@ -1034,7 +1270,12 @@ onSideBarClick?: ((t: string) => any) | undefined;
1034
1270
  loading: boolean;
1035
1271
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1036
1272
 
1037
- declare interface UiSidebarInterface {
1273
+ export declare interface UiSidebarEventsInterface {
1274
+ /** emitted when a link is clicked, emits item id */
1275
+ (e: 'sideBarClick', t: string): any;
1276
+ }
1277
+
1278
+ export declare interface UiSidebarInterface {
1038
1279
  /** navigation array */
1039
1280
  navigation?: {
1040
1281
  /** name string literal */
@@ -1088,7 +1329,14 @@ loading: boolean;
1088
1329
  isFilterNavigation: boolean;
1089
1330
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1090
1331
 
1091
- declare interface UiSidebarV2Interface {
1332
+ export declare interface uiSidebarV2EventsInterface {
1333
+ /** emits product name when clicked */
1334
+ (e: 'productBarClick', t: string): void;
1335
+ /** emitted when a link is clicked, emits item id */
1336
+ (e: 'sideBarClick', t: string): void;
1337
+ }
1338
+
1339
+ export declare interface UiSidebarV2Interface {
1092
1340
  /** navigation array */
1093
1341
  navigation?: {
1094
1342
  /** name string literal */
@@ -1144,7 +1392,7 @@ name: string;
1144
1392
  value: string;
1145
1393
  active?: boolean | undefined;
1146
1394
  }[]) => any;
1147
- smartInputChanged: (T: InputType) => any;
1395
+ smartInputChanged: (T: InputType_2) => any;
1148
1396
  smartSelectChanged: (T: SelectItemType_2[]) => any;
1149
1397
  smartOptionSelected: (T: UiDropdownItemType_2) => any;
1150
1398
  }, string, PublicProps, Readonly<UiSmartFilterInterface> & Readonly<{
@@ -1154,15 +1402,28 @@ name: string;
1154
1402
  value: string;
1155
1403
  active?: boolean | undefined;
1156
1404
  }[]) => any) | undefined;
1157
- onSmartInputChanged?: ((T: InputType) => any) | undefined;
1405
+ onSmartInputChanged?: ((T: InputType_2) => any) | undefined;
1158
1406
  onSmartSelectChanged?: ((T: SelectItemType_2[]) => any) | undefined;
1159
1407
  onSmartOptionSelected?: ((T: UiDropdownItemType_2) => any) | undefined;
1160
1408
  }>, {
1161
1409
  loading: boolean;
1162
1410
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1163
1411
 
1412
+ export declare interface UiSmartFilterEventInterface {
1413
+ /** when a filter is selected */
1414
+ (e: 'smartFilterSelected', T: UiFilterInterface["items"]): void;
1415
+ /** when an input is changed */
1416
+ (e: 'smartInputChanged', T: InputType): void;
1417
+ /** when a select is changed*/
1418
+ (e: 'smartSelectChanged', T: UiSelectInterface["items"]): void;
1419
+ /** when a dropdown option is selected */
1420
+ (e: 'smartOptionSelected', T: UiDropdownItemType): void;
1421
+ /** Right addon is clicked */
1422
+ (e: "rightAddOnClicked"): void;
1423
+ }
1424
+
1164
1425
  /** uiSmartFilter */
1165
- declare interface UiSmartFilterInterface {
1426
+ export declare interface UiSmartFilterInterface {
1166
1427
  /** Filter items */
1167
1428
  items: {
1168
1429
  /** item name */
@@ -1190,7 +1451,12 @@ onStatClick?: ((T: string) => any) | undefined;
1190
1451
  loading: boolean;
1191
1452
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1192
1453
 
1193
- declare interface UiStatsInterface {
1454
+ export declare interface UiStatsEventsInterface {
1455
+ /** emits when actionText is clicked, emits item.id */
1456
+ (e: "statClick", T: string): void;
1457
+ }
1458
+
1459
+ export declare interface UiStatsInterface {
1194
1460
  item: {
1195
1461
  /** stat icon */
1196
1462
  icon: any;
@@ -1209,7 +1475,7 @@ declare interface UiStatsInterface {
1209
1475
  /** helper text */
1210
1476
  explanation?: string;
1211
1477
  /** icon background color */
1212
- color?: AllColors;
1478
+ color?: AllColors_2;
1213
1479
  /** show footer with action */
1214
1480
  showFooter?: boolean;
1215
1481
  };
@@ -1225,7 +1491,12 @@ onItemClicked?: ((T: string) => any) | undefined;
1225
1491
  loading: boolean;
1226
1492
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1227
1493
 
1228
- declare interface UiStripedCardInterface {
1494
+ export declare interface UiStripedCardEventsInterface {
1495
+ /** emits when link is clicked, emits item emits */
1496
+ (e: "itemClicked", T: string): void;
1497
+ }
1498
+
1499
+ export declare interface UiStripedCardInterface {
1229
1500
  /** card title */
1230
1501
  title: string;
1231
1502
  /** card subtitle */
@@ -1247,7 +1518,12 @@ declare interface UiStripedCardInterface {
1247
1518
  loading?: boolean;
1248
1519
  }
1249
1520
 
1250
- declare interface UiTabInterface {
1521
+ export declare interface UiTabEventsInterface {
1522
+ /** emits when a tab is clicked, emits tab id */
1523
+ (e: "tabClicked", T: string): void;
1524
+ }
1525
+
1526
+ export declare interface UiTabInterface {
1251
1527
  /** tabs array */
1252
1528
  tabs: {
1253
1529
  /** tab string literal */
@@ -1301,7 +1577,30 @@ resetSelected: boolean;
1301
1577
  orderDirection: "desc" | "asc";
1302
1578
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1303
1579
 
1304
- declare interface UiTableInterface {
1580
+ export declare interface UiTableEventsInterface {
1581
+ /** if table action is clicked, emits selected rows ids */
1582
+ (e: "tableAction", T: {
1583
+ action: string;
1584
+ items: Array<string | number>;
1585
+ }): void;
1586
+ /** emits header value and asc desc */
1587
+ (e: "orderBy", T: {
1588
+ value: string;
1589
+ orderDirection: "desc" | "asc";
1590
+ }): void;
1591
+ /** if colum is link and has custom info */
1592
+ (e: "customEmit", T: {
1593
+ data: {
1594
+ content: string;
1595
+ type: string;
1596
+ emits: any;
1597
+ };
1598
+ }): void;
1599
+ /** emitted when resetSelected prop is sent with true, use it to rollback resetSelected to false */
1600
+ (e: "selectedItemsDeleted"): void;
1601
+ }
1602
+
1603
+ export declare interface UiTableInterface {
1305
1604
  /** if you send this prop to the table with true it will reset all checked rows */
1306
1605
  resetSelected: boolean;
1307
1606
  /** header value the table is ordered */
@@ -1348,13 +1647,18 @@ color: "primary" | "secondary" | "light" | "green" | "yellow" | "red" | "black"
1348
1647
  default?(_: {}): any;
1349
1648
  }>;
1350
1649
 
1351
- declare interface UiTagInterface {
1650
+ export declare interface UiTagEventsInterface {
1651
+ /** When clicked, if props.event is defined. It emits the value of props.event */
1652
+ (e: "tagEvent", T: UiTagInterface["event"]): void;
1653
+ }
1654
+
1655
+ export declare interface UiTagInterface {
1352
1656
  /** Color options (see type AllColors) */
1353
- color?: AllColors;
1657
+ color?: AllColors_2;
1354
1658
  /** Is loading or not */
1355
1659
  loading?: boolean;
1356
1660
  /** Size options (see type Sizes) */
1357
- size?: Sizes;
1661
+ size?: Sizes_2;
1358
1662
  /** If tag is clickable, this is the name of the event will be fired */
1359
1663
  event?: string;
1360
1664
  /** In uiCard, uiDeviceStatus, tag instead of slot uses name */
@@ -1363,7 +1667,7 @@ declare interface UiTagInterface {
1363
1667
  text?: string;
1364
1668
  }
1365
1669
 
1366
- declare interface UiTaskList {
1670
+ export declare interface UiTaskList {
1367
1671
  /** list of tasks */
1368
1672
  tasks: TaskType[];
1369
1673
  /** show skeleton */
@@ -1391,7 +1695,15 @@ color: "primary" | "secondary" | "light" | "green" | "yellow" | "red" | "black"
1391
1695
  placeholder: string;
1392
1696
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1393
1697
 
1394
- declare interface UiTextAreaInterface {
1698
+ export declare interface UiTextAreaEventsInterface {
1699
+ /** Whenever text area value changes is emitted */
1700
+ (e: "inputChanged", T: {
1701
+ name: string;
1702
+ value?: string;
1703
+ }): void;
1704
+ }
1705
+
1706
+ export declare interface UiTextAreaInterface {
1395
1707
  /** Name of the text area */
1396
1708
  name: string;
1397
1709
  /** Label in top of the text area */
@@ -1401,7 +1713,7 @@ declare interface UiTextAreaInterface {
1401
1713
  /** Value (text) of the text area */
1402
1714
  value?: string;
1403
1715
  /** Color options (see type Colors) */
1404
- color?: AllColors;
1716
+ color?: AllColors_2;
1405
1717
  /** Is disabled or not */
1406
1718
  disabled?: boolean;
1407
1719
  /** Text below the text area that shows the error */
@@ -1423,7 +1735,14 @@ loading: boolean;
1423
1735
  empty: boolean;
1424
1736
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1425
1737
 
1426
- declare interface UiTimelineInterface {
1738
+ export declare interface UiTimelineEventsInterface {
1739
+ /** when a timeline event is clicked, emits item id */
1740
+ (e: 'timelineEventClicked', t: string | number): void;
1741
+ /** emits when footer link is clicked */
1742
+ (e: 'timelineFooterClicked', t: string): void;
1743
+ }
1744
+
1745
+ export declare interface UiTimelineInterface {
1427
1746
  /** timeline title */
1428
1747
  name: string;
1429
1748
  /** items */
@@ -1500,7 +1819,17 @@ loading: boolean;
1500
1819
  checked: boolean;
1501
1820
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1502
1821
 
1503
- declare interface UiToggleInterface {
1822
+ export declare interface UiToggleEventsInterface {
1823
+ /** emitted when toggle is changed */
1824
+ (e: 'toggleChanged', T: {
1825
+ item: UiToggleInterface["item"];
1826
+ active: boolean;
1827
+ }): void;
1828
+ /** emitted when right action is clicked */
1829
+ (e: 'actionClicked', item: UiToggleInterface["item"]): void;
1830
+ }
1831
+
1832
+ export declare interface UiToggleInterface {
1504
1833
  /** Toggle item that contains title, subtitle, if it´s active or not, and the action */
1505
1834
  item: {
1506
1835
  title: string;
@@ -1522,7 +1851,12 @@ topBarClick: (T: string) => any;
1522
1851
  onTopBarClick?: ((T: string) => any) | undefined;
1523
1852
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1524
1853
 
1525
- declare interface UiTopbarInterface {
1854
+ export declare interface UiTopbarEventsInterface {
1855
+ /** when clicked in any menu item */
1856
+ (e: "topBarClick", T: string): void;
1857
+ }
1858
+
1859
+ export declare interface UiTopbarInterface {
1526
1860
  /** brand logo */
1527
1861
  logo: string;
1528
1862
  /** show alert icon */
@@ -1557,7 +1891,18 @@ onTopBarClick?: ((T: string) => any) | undefined;
1557
1891
  default?(_: {}): any;
1558
1892
  }>;
1559
1893
 
1560
- declare interface UiWrapperInterface {
1894
+ export declare interface UiWrapperEventsInterface {
1895
+ /** emits product name when clicked */
1896
+ (e: 'productBarClick', t: string): void;
1897
+ /** emitted when a link is clicked, emits item id */
1898
+ (e: 'sideBarClick', t: string): void;
1899
+ /** When an item is selected */
1900
+ (e: "selectChanged", T: SelectItemType): void;
1901
+ /** when clicked in any menu item */
1902
+ (e: "topBarClick", T: string): void;
1903
+ }
1904
+
1905
+ export declare interface UiWrapperInterface {
1561
1906
  topbar: {
1562
1907
  /** product logo */
1563
1908
  logo: string;