@hotelinking/ui 10.43.9 → 10.44.0

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
@@ -63,13 +63,13 @@ export declare const AllColors: readonly ["primary", "secondary", "light", "gree
63
63
 
64
64
  declare const AllColors: readonly ["primary", "secondary", "light", "green", "yellow", "red", "black", "gray", "white"];
65
65
 
66
- declare type AllColors_2 = typeof AllColors[number];
66
+ declare type AllColors_2 = (typeof AllColors)[number];
67
67
 
68
68
  export declare const AllSizes: readonly ["small", "medium", "big", "bigger", "huge", "massive"];
69
69
 
70
70
  declare const AllSizes: readonly ["small", "medium", "big", "bigger", "huge", "massive"];
71
71
 
72
- declare type AllSizes_2 = typeof AllSizes[number];
72
+ declare type AllSizes_2 = (typeof AllSizes)[number];
73
73
 
74
74
  export declare const BiggerSizes: readonly ["bigger", "huge", "massive"];
75
75
 
@@ -137,7 +137,7 @@ export declare const Colors: readonly ["primary", "secondary", "light", "green",
137
137
 
138
138
  declare const Colors: readonly ["primary", "secondary", "light", "green", "yellow", "red"];
139
139
 
140
- declare type Colors_2 = typeof Colors[number];
140
+ declare type Colors_2 = (typeof Colors)[number];
141
141
 
142
142
  declare const _default: {
143
143
  install: typeof install;
@@ -158,7 +158,7 @@ export declare type InputType = {
158
158
  value: string;
159
159
  };
160
160
 
161
- declare type InputTypes = typeof UiInputTypes[number];
161
+ declare type InputTypes = (typeof UiInputTypes)[number];
162
162
 
163
163
  declare function install(app: App): void;
164
164
 
@@ -175,7 +175,7 @@ export declare const Sizes: readonly ["small", "medium", "big"];
175
175
 
176
176
  declare const Sizes: readonly ["small", "medium", "big"];
177
177
 
178
- declare type Sizes_2 = typeof Sizes[number];
178
+ declare type Sizes_2 = (typeof Sizes)[number];
179
179
 
180
180
  export declare type TableItemType = {
181
181
  /** co unique id */
@@ -189,7 +189,7 @@ export declare type TableItemType = {
189
189
  /** if tag, backgroun color of tag */
190
190
  color: AllColors_2;
191
191
  /** tag, link that emits, or href link */
192
- type?: 'tag' | 'link' | 'href';
192
+ type?: "tag" | "link" | "href";
193
193
  /** content emitted if clicked on link type */
194
194
  emits?: any;
195
195
  /** target url of href type */
@@ -218,7 +218,7 @@ export declare const Types: string[];
218
218
 
219
219
  declare const Types: string[];
220
220
 
221
- declare type Types_2 = typeof Types[number];
221
+ declare type Types_2 = (typeof Types)[number];
222
222
 
223
223
  export declare const uiAlert: __VLS_WithTemplateSlots_4<DefineComponent<UiAlertInterface, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
224
224
  alertEvent: (T: string) => any;
@@ -233,7 +233,7 @@ type: string;
233
233
 
234
234
  export declare interface UiAlertEventsInterface {
235
235
  /** When an alert action is clicked emits UiAlertInterface["actions"]["event"] */
236
- (e: 'alertEvent', T: string): void;
236
+ (e: "alertEvent", T: string): void;
237
237
  }
238
238
 
239
239
  export declare interface UiAlertInterface {
@@ -260,7 +260,7 @@ loading: boolean;
260
260
 
261
261
  export declare interface UiBreadcrumbsEventInterface {
262
262
  /** emits UiBreadcrumbsInterface["pages"]["routeName"] when a breadcrumb is clicked */
263
- (e: 'breadCrumbClicked', T: string): void;
263
+ (e: "breadCrumbClicked", T: string): void;
264
264
  }
265
265
 
266
266
  export declare interface UiBreadcrumbsInterface {
@@ -320,7 +320,7 @@ loading: boolean;
320
320
 
321
321
  export declare interface UiCardEventsInterface {
322
322
  /** Emits when card is clicked */
323
- (e: 'cardSelected', T: {
323
+ (e: "cardSelected", T: {
324
324
  id: UiCardInterface["id"];
325
325
  name: UiCardInterface["name"];
326
326
  type: UiCardInterface["type"];
@@ -461,7 +461,7 @@ check: boolean;
461
461
 
462
462
  export declare interface UiCheckboxEventsInterface {
463
463
  /** Emitted when click over checkbox */
464
- (e: 'checkboxChanged', checkbox: UiCheckboxType): void;
464
+ (e: "checkboxChanged", checkbox: UiCheckboxType): void;
465
465
  }
466
466
 
467
467
  export declare interface UiCheckboxInterface {
@@ -529,7 +529,7 @@ to: string | Date;
529
529
 
530
530
  export declare interface UiDateRangeEventsInterface {
531
531
  /** emitted when date range button is clicked */
532
- (e: 'uiDateRangeButtonClicked', t: UiDateRangeInterface["values"] | undefined): void;
532
+ (e: "uiDateRangeButtonClicked", t: UiDateRangeInterface["values"] | undefined): void;
533
533
  }
534
534
 
535
535
  export declare interface UiDateRangeInterface {
@@ -573,9 +573,9 @@ qty: number;
573
573
 
574
574
  export declare interface UiDeviceStatusEventsInterface {
575
575
  /** emitted when a tag is clicked*/
576
- (e: 'deviceStatusTagClicked', T: UiTagInterface["event"]): void;
576
+ (e: "deviceStatusTagClicked", T: UiTagInterface["event"]): void;
577
577
  /** emitted when the link in the device status is clicked */
578
- (e: 'deviceStatusQtyClicked', T: UiDeviceStatusInterface["id"]): void;
578
+ (e: "deviceStatusQtyClicked", T: UiDeviceStatusInterface["id"]): void;
579
579
  }
580
580
 
581
581
  export declare interface UiDeviceStatusInterface {
@@ -630,7 +630,7 @@ loading: boolean;
630
630
 
631
631
  export declare interface UiDropdownEventsInterface {
632
632
  /** On option selected */
633
- (e: 'optionSelected', v: UiDropdownItemType): void;
633
+ (e: "optionSelected", v: UiDropdownItemType): void;
634
634
  }
635
635
 
636
636
  export declare interface UiDropdownInterface {
@@ -679,7 +679,7 @@ loading: boolean;
679
679
 
680
680
  export declare interface UiFilterEventsInterface {
681
681
  /** emits UiFilterInterface["items"]["value"] when filter is selected */
682
- (e: 'filterSelected', T: string): void;
682
+ (e: "filterSelected", T: string): void;
683
683
  }
684
684
 
685
685
  export declare interface UiFilterInterface {
@@ -931,7 +931,7 @@ open: boolean;
931
931
 
932
932
  export declare interface UiModalEventsInterface {
933
933
  /** emitted when a modal action is clicked, action emits: UiModalInterface["actions"]["value"] */
934
- (e: 'modalAction', T: {
934
+ (e: "modalAction", T: {
935
935
  modal: UiModalInterface["modalName"];
936
936
  action: string;
937
937
  }): void;
@@ -1002,7 +1002,7 @@ show: boolean;
1002
1002
 
1003
1003
  export declare interface UiNotificationEventsInterface {
1004
1004
  /** emitted when X icon is clicked */
1005
- (e: 'closeNotification'): void;
1005
+ (e: "closeNotification"): void;
1006
1006
  }
1007
1007
 
1008
1008
  export declare interface UiNotificationInterface {
@@ -1140,21 +1140,21 @@ export declare type UiPriceCalendarRoomType = {
1140
1140
 
1141
1141
  export declare interface UiPricesCalendarEventsInterface {
1142
1142
  /** when a date button is clicked */
1143
- (e: 'dateChanged', t: Date): void;
1143
+ (e: "dateChanged", t: Date): void;
1144
1144
  /** click change category prices in bulk button */
1145
- (e: 'changeCategoryBulkPrices'): void;
1145
+ (e: "changeCategoryBulkPrices"): void;
1146
1146
  /** click on category price */
1147
- (e: 'changeCategorySelectionPrice', t: UiRoomTypeSelectionPriceType): void;
1147
+ (e: "changeCategorySelectionPrice", t: UiRoomTypeSelectionPriceType): void;
1148
1148
  /** click on category upgrade price */
1149
- (e: 'changeCategoryUpgradePrice', t: UiRoomTypeSelectionPriceType): void;
1149
+ (e: "changeCategoryUpgradePrice", t: UiRoomTypeSelectionPriceType): void;
1150
1150
  /** click on room price */
1151
- (e: 'changeRoomPrice', t: {
1151
+ (e: "changeRoomPrice", t: {
1152
1152
  price: UiRoomTypeSelectionPriceType;
1153
1153
  roomId: string;
1154
1154
  roomName: string;
1155
1155
  }): void;
1156
1156
  /** click on table action */
1157
- (e: 'tableAction', t: any): void;
1157
+ (e: "tableAction", t: any): void;
1158
1158
  }
1159
1159
 
1160
1160
  export declare const uiRangeSlider: DefineComponent<UiRangeSliderInterface, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
@@ -1230,9 +1230,9 @@ export declare interface UiSectionTitleInterface {
1230
1230
  export declare const uiSelect: DefineComponent<UiSelectInterface, {
1231
1231
  handleChange: (value: SelectItemType) => void;
1232
1232
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1233
- selectChanged: (T: SelectItemType) => any;
1233
+ selectChanged: (T: SelectItemType | SelectItemType[]) => any;
1234
1234
  }, string, PublicProps, Readonly<UiSelectInterface> & Readonly<{
1235
- onSelectChanged?: ((T: SelectItemType) => any) | undefined;
1235
+ onSelectChanged?: ((T: SelectItemType | SelectItemType[]) => any) | undefined;
1236
1236
  }>, {
1237
1237
  loading: boolean;
1238
1238
  color: "primary" | "secondary" | "light" | "green" | "yellow" | "red" | "black" | "gray" | "white";
@@ -1240,7 +1240,7 @@ color: "primary" | "secondary" | "light" | "green" | "yellow" | "red" | "black"
1240
1240
 
1241
1241
  export declare interface UiSelectEventsInterface {
1242
1242
  /** When a item is selected */
1243
- (e: "selectChanged", T: SelectItemType): void;
1243
+ (e: "selectChanged", T: SelectItemType | SelectItemType[]): void;
1244
1244
  }
1245
1245
 
1246
1246
  export declare interface UiSelectInterface {
@@ -1248,12 +1248,14 @@ export declare interface UiSelectInterface {
1248
1248
  items: SelectItemType[];
1249
1249
  /** Label in top of the Select */
1250
1250
  label?: string;
1251
+ /** Placeholder when field is empty */
1252
+ placeholder?: string;
1251
1253
  /** Text below the input field that shows the error */
1252
1254
  error?: string;
1253
1255
  /** Color options (see type AllColors) */
1254
1256
  color?: AllColors_2;
1255
1257
  /** Selected item */
1256
- select: SelectItemType;
1258
+ select: SelectItemType | SelectItemType[];
1257
1259
  /** Is loading or not */
1258
1260
  loading?: boolean;
1259
1261
  /** Is disabled or not */
@@ -1262,6 +1264,15 @@ export declare interface UiSelectInterface {
1262
1264
  requiredText?: string;
1263
1265
  }
1264
1266
 
1267
+ export declare const uiSelectMultiple: DefineComponent<UiSelectInterface, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1268
+ selectChanged: (T: SelectItemType | SelectItemType[]) => any;
1269
+ }, string, PublicProps, Readonly<UiSelectInterface> & Readonly<{
1270
+ onSelectChanged?: ((T: SelectItemType | SelectItemType[]) => any) | undefined;
1271
+ }>, {
1272
+ loading: boolean;
1273
+ color: "primary" | "secondary" | "light" | "green" | "yellow" | "red" | "black" | "gray" | "white";
1274
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1275
+
1265
1276
  export declare const uiSidebar: DefineComponent<UiSidebarInterface, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1266
1277
  sideBarClick: (t: string) => any;
1267
1278
  }, string, PublicProps, Readonly<UiSidebarInterface> & Readonly<{
@@ -1272,7 +1283,7 @@ loading: boolean;
1272
1283
 
1273
1284
  export declare interface UiSidebarEventsInterface {
1274
1285
  /** emitted when a link is clicked, emits item id */
1275
- (e: 'sideBarClick', t: string): any;
1286
+ (e: "sideBarClick", t: string): any;
1276
1287
  }
1277
1288
 
1278
1289
  export declare interface UiSidebarInterface {
@@ -1331,9 +1342,9 @@ isFilterNavigation: boolean;
1331
1342
 
1332
1343
  export declare interface uiSidebarV2EventsInterface {
1333
1344
  /** emits product name when clicked */
1334
- (e: 'productBarClick', t: string): void;
1345
+ (e: "productBarClick", t: string): void;
1335
1346
  /** emitted when a link is clicked, emits item id */
1336
- (e: 'sideBarClick', t: string): void;
1347
+ (e: "sideBarClick", t: string): void;
1337
1348
  }
1338
1349
 
1339
1350
  export declare interface UiSidebarV2Interface {
@@ -1411,13 +1422,13 @@ loading: boolean;
1411
1422
 
1412
1423
  export declare interface UiSmartFilterEventInterface {
1413
1424
  /** when a filter is selected */
1414
- (e: 'smartFilterSelected', T: UiFilterInterface["items"]): void;
1425
+ (e: "smartFilterSelected", T: UiFilterInterface["items"]): void;
1415
1426
  /** when an input is changed */
1416
- (e: 'smartInputChanged', T: InputType): void;
1427
+ (e: "smartInputChanged", T: InputType): void;
1417
1428
  /** when a select is changed*/
1418
- (e: 'smartSelectChanged', T: UiSelectInterface["items"]): void;
1429
+ (e: "smartSelectChanged", T: UiSelectInterface["items"]): void;
1419
1430
  /** when a dropdown option is selected */
1420
- (e: 'smartOptionSelected', T: UiDropdownItemType): void;
1431
+ (e: "smartOptionSelected", T: UiDropdownItemType): void;
1421
1432
  /** Right addon is clicked */
1422
1433
  (e: "rightAddOnClicked"): void;
1423
1434
  }
@@ -1737,9 +1748,9 @@ empty: boolean;
1737
1748
 
1738
1749
  export declare interface UiTimelineEventsInterface {
1739
1750
  /** when a timeline event is clicked, emits item id */
1740
- (e: 'timelineEventClicked', t: string | number): void;
1751
+ (e: "timelineEventClicked", t: string | number): void;
1741
1752
  /** emits when footer link is clicked */
1742
- (e: 'timelineFooterClicked', t: string): void;
1753
+ (e: "timelineFooterClicked", t: string): void;
1743
1754
  }
1744
1755
 
1745
1756
  export declare interface UiTimelineInterface {
@@ -1821,12 +1832,12 @@ checked: boolean;
1821
1832
 
1822
1833
  export declare interface UiToggleEventsInterface {
1823
1834
  /** emitted when toggle is changed */
1824
- (e: 'toggleChanged', T: {
1835
+ (e: "toggleChanged", T: {
1825
1836
  item: UiToggleInterface["item"];
1826
1837
  active: boolean;
1827
1838
  }): void;
1828
1839
  /** emitted when right action is clicked */
1829
- (e: 'actionClicked', item: UiToggleInterface["item"]): void;
1840
+ (e: "actionClicked", item: UiToggleInterface["item"]): void;
1830
1841
  }
1831
1842
 
1832
1843
  export declare interface UiToggleInterface {
@@ -1893,9 +1904,9 @@ onTopBarClick?: ((T: string) => any) | undefined;
1893
1904
 
1894
1905
  export declare interface UiWrapperEventsInterface {
1895
1906
  /** emits product name when clicked */
1896
- (e: 'productBarClick', t: string): void;
1907
+ (e: "productBarClick", t: string): void;
1897
1908
  /** emitted when a link is clicked, emits item id */
1898
- (e: 'sideBarClick', t: string): void;
1909
+ (e: "sideBarClick", t: string): void;
1899
1910
  /** When an item is selected */
1900
1911
  (e: "selectChanged", T: SelectItemType): void;
1901
1912
  /** when clicked in any menu item */