@hotelinking/ui 6.39.3 → 6.39.10

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.
@@ -1,4 +1,3 @@
1
- import type { FunctionalComponent } from "vue";
2
1
  export declare const Colors: readonly ["primary", "secondary", "light", "green", "yellow", "red"];
3
2
  export declare const UiInputTypes: readonly ["text", "email", "password", "number", "date"];
4
3
  export declare const MonoColors: readonly ["black", "gray", "white"];
@@ -15,7 +14,7 @@ export interface UiButtonInterface {
15
14
  block?: boolean;
16
15
  color?: Colors;
17
16
  disabled?: boolean;
18
- icon?: FunctionalComponent;
17
+ icon?: any;
19
18
  loading: boolean;
20
19
  size?: Sizes;
21
20
  }
@@ -33,7 +32,7 @@ export interface UiDropdownInterface {
33
32
  items: UiDropdownItemType[];
34
33
  position?: "left" | "right";
35
34
  disabled?: boolean;
36
- label: string;
35
+ label?: string;
37
36
  loading: boolean;
38
37
  }
39
38
  export type UiDropdownItemType = {
@@ -42,7 +41,7 @@ export type UiDropdownItemType = {
42
41
  active?: boolean;
43
42
  };
44
43
  export interface UiIconInterface {
45
- icon: FunctionalComponent;
44
+ icon: any;
46
45
  size?: AllSizes;
47
46
  color?: AllColors;
48
47
  loading: boolean;
@@ -52,7 +51,7 @@ export interface UiInputInterface {
52
51
  type?: InputTypes;
53
52
  name: string;
54
53
  placeholder?: string;
55
- icon?: FunctionalComponent;
54
+ icon?: any;
56
55
  disabled?: boolean;
57
56
  color?: AllColors;
58
57
  value?: string;
@@ -71,7 +70,7 @@ export interface UiInputFileInterface {
71
70
  fileTypesAndSizes: string;
72
71
  error?: string;
73
72
  accept: string;
74
- icon?: FunctionalComponent;
73
+ icon?: any;
75
74
  loading: boolean;
76
75
  label?: string;
77
76
  }
@@ -117,8 +116,8 @@ export interface UiTextAreaInterface {
117
116
  export interface UiToggleInterface {
118
117
  item: {
119
118
  title: string;
120
- subtitle: string;
121
- active: boolean;
119
+ subtitle?: string;
120
+ active?: boolean;
122
121
  action: string;
123
122
  };
124
123
  checked?: boolean;
@@ -126,7 +125,7 @@ export interface UiToggleInterface {
126
125
  loading: boolean;
127
126
  }
128
127
  export interface UiAlertInterface {
129
- actions: {
128
+ actions?: {
130
129
  name: string;
131
130
  event: string;
132
131
  }[];
@@ -138,7 +137,7 @@ export interface UiBreadcrumbsInterface {
138
137
  pages: {
139
138
  name: string;
140
139
  routeName: string;
141
- current: boolean;
140
+ current?: boolean;
142
141
  }[];
143
142
  loading?: boolean;
144
143
  }
@@ -153,7 +152,7 @@ export interface UiCardInterface {
153
152
  export interface UiDeviceStatusInterface {
154
153
  id: string;
155
154
  name: string;
156
- icon: FunctionalComponent;
155
+ icon: any;
157
156
  color: AllColors;
158
157
  qty: number;
159
158
  tags: UiTagInterface[];
@@ -164,7 +163,7 @@ export interface UiFilterInterface {
164
163
  items: {
165
164
  name: string;
166
165
  value: string;
167
- active: boolean;
166
+ active?: boolean;
168
167
  }[];
169
168
  position?: "left" | "right";
170
169
  label: string;
@@ -270,7 +269,7 @@ export interface UiChartInterface {
270
269
  type?: "area" | "line" | "bar" | "scatter";
271
270
  series: {
272
271
  name: string;
273
- type: "area" | "line" | "bar" | "scatter";
272
+ type?: "area" | "line" | "bar" | "scatter";
274
273
  data: number[];
275
274
  }[];
276
275
  options?: {
@@ -298,7 +297,7 @@ export interface UiDateRangeInterface {
298
297
  to: string;
299
298
  search: string;
300
299
  };
301
- values: {
300
+ values?: {
302
301
  from?: Date;
303
302
  to?: Date;
304
303
  };
@@ -358,9 +357,9 @@ export interface UiRightSidebarInterface {
358
357
  export interface UiSidebarInterface {
359
358
  navigation: {
360
359
  name: string;
361
- icon: FunctionalComponent;
360
+ icon?: any;
362
361
  current?: boolean;
363
- id: string;
362
+ id?: string;
364
363
  children?: {
365
364
  name: string;
366
365
  id: string;
@@ -368,19 +367,20 @@ export interface UiSidebarInterface {
368
367
  }[];
369
368
  }[];
370
369
  loading?: boolean;
370
+ defaultOpen?: boolean;
371
371
  }
372
372
  export interface UiStatsInterface {
373
373
  item: {
374
- icon: FunctionalComponent;
375
- change: string;
376
- changeType: string;
377
- actionText: string;
374
+ icon: any;
375
+ change?: string;
376
+ changeType?: string;
377
+ actionText?: string;
378
378
  id: string;
379
379
  name: string;
380
- stat: string;
381
- explanation: string;
382
- color: AllColors;
383
- showFooter: boolean;
380
+ stat: string | number;
381
+ explanation?: string;
382
+ color?: AllColors;
383
+ showFooter?: boolean;
384
384
  };
385
385
  loading?: boolean;
386
386
  }
@@ -399,13 +399,13 @@ export interface UiStripedCardInterface {
399
399
  }
400
400
  export type TableItemType = {
401
401
  id: string | number;
402
- emitWith: any;
402
+ emitWith?: any;
403
403
  row: Array<string | {
404
404
  content: string;
405
405
  color: AllColors;
406
406
  type: string;
407
407
  emits?: string;
408
- href: string;
408
+ href?: string;
409
409
  }>;
410
410
  };
411
411
  export interface UiTableInterface {
@@ -417,7 +417,7 @@ export interface UiTableInterface {
417
417
  value: string;
418
418
  tooltip?: string;
419
419
  }[];
420
- items: TableItemType[];
420
+ items: TableItemType[] | [];
421
421
  actions: {
422
422
  name: string;
423
423
  id: string;
@@ -427,8 +427,8 @@ export interface UiTabInterface {
427
427
  tabs: {
428
428
  name: string;
429
429
  id: string;
430
- count: number;
431
- current: boolean;
430
+ count?: number;
431
+ current?: boolean;
432
432
  }[];
433
433
  }
434
434
  export interface UiTimelineInterface {
@@ -444,7 +444,7 @@ export interface UiTimelineInterface {
444
444
  href: string;
445
445
  date: string;
446
446
  datetime: string;
447
- icon: FunctionalComponent;
447
+ icon: any;
448
448
  iconBackground: string;
449
449
  }[];
450
450
  };
@@ -456,20 +456,20 @@ export interface UiTopbarInterface {
456
456
  logo: string;
457
457
  alerted: boolean;
458
458
  accountLogo: string;
459
- profileMenu: {
459
+ profileMenu?: {
460
460
  name: string;
461
461
  id: string;
462
462
  }[];
463
- brand: {
463
+ brand?: {
464
464
  title: string;
465
465
  subtitle: string;
466
466
  };
467
- navigation: {
467
+ navigation?: {
468
468
  id: string;
469
469
  name: string;
470
470
  icon: string;
471
471
  current: boolean;
472
- children: {
472
+ children?: {
473
473
  name: string;
474
474
  id: string;
475
475
  }[];