@hotelinking/ui 10.44.2 → 11.45.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
@@ -833,7 +833,7 @@ filesUploaded: (T: FileInputType_2) => any;
833
833
  onFilesUploaded?: ((T: FileInputType_2) => any) | undefined;
834
834
  }>, {
835
835
  loading: boolean;
836
- icon: any;
836
+ icon: FunctionalComponent< {}, {}, any, {}>;
837
837
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
838
838
 
839
839
  export declare interface UiInputFileEventsInterface {
@@ -859,7 +859,7 @@ export declare interface UiInputFileInterface {
859
859
  /** MIME types of files that input field must accept */
860
860
  accept: string;
861
861
  /** Imported icon from '@heroicons/vue/24/outline' */
862
- icon?: any;
862
+ icon?: FunctionalComponent;
863
863
  /** Is loading or not */
864
864
  loading: boolean;
865
865
  /** Label in top of the input field */
@@ -876,7 +876,7 @@ export declare interface UiInputInterface {
876
876
  /** Placeholder of the input field */
877
877
  placeholder?: string;
878
878
  /** Imported icon from '@heroicons/vue/24/outline' */
879
- icon?: any;
879
+ icon?: FunctionalComponent;
880
880
  /** Is disabled or not */
881
881
  disabled?: boolean;
882
882
  /** Color options (see type Colors) */
@@ -927,9 +927,12 @@ action: string;
927
927
  }>, {
928
928
  loading: boolean;
929
929
  type: string;
930
+ size: "big" | "small" | "medium";
930
931
  open: boolean;
931
932
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
932
- default?(_: {}): any;
933
+ default?(_: {
934
+ class: string;
935
+ }): any;
933
936
  }>;
934
937
 
935
938
  export declare interface UiModalEventsInterface {
@@ -950,6 +953,8 @@ export declare interface UiModalInterface {
950
953
  /** action literal */
951
954
  name: string;
952
955
  }[];
956
+ /** Size, only internal USE DO NOT USE!!!!*/
957
+ size?: Sizes_2;
953
958
  /** modal name */
954
959
  modalName: string;
955
960
  /** show modal or not */
@@ -1241,6 +1246,15 @@ loading: boolean;
1241
1246
  color: "primary" | "secondary" | "light" | "green" | "yellow" | "red" | "black" | "gray" | "white";
1242
1247
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1243
1248
 
1249
+ export declare const uiSelect_v2: DefineComponent<UiSelectInterface, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1250
+ selectChanged: (T: SelectItemType | SelectItemType[]) => any;
1251
+ }, string, PublicProps, Readonly<UiSelectInterface> & Readonly<{
1252
+ onSelectChanged?: ((T: SelectItemType | SelectItemType[]) => any) | undefined;
1253
+ }>, {
1254
+ loading: boolean;
1255
+ color: "primary" | "secondary" | "light" | "green" | "yellow" | "red" | "black" | "gray" | "white";
1256
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1257
+
1244
1258
  export declare interface UiSelectEventsInterface {
1245
1259
  /** When a item is selected */
1246
1260
  (e: "selectChanged", T: SelectItemType | SelectItemType[]): void;
@@ -1295,7 +1309,7 @@ export declare interface UiSidebarInterface {
1295
1309
  /** name string literal */
1296
1310
  name: string;
1297
1311
  /** icon component from Heroicons */
1298
- icon?: any;
1312
+ icon?: FunctionalComponent;
1299
1313
  /** is current sidebar item */
1300
1314
  current?: boolean;
1301
1315
  /** unique id */
@@ -1356,7 +1370,7 @@ export declare interface UiSidebarV2Interface {
1356
1370
  /** name string literal */
1357
1371
  name: string;
1358
1372
  /** icon component from Heroicons */
1359
- icon?: any;
1373
+ icon?: FunctionalComponent | string;
1360
1374
  /** is current sidebar item */
1361
1375
  current?: boolean;
1362
1376
  /** unique id */
@@ -1401,31 +1415,24 @@ export declare interface UiSidebarV2Interface {
1401
1415
 
1402
1416
  export declare const uiSmartFilter: DefineComponent<UiSmartFilterInterface, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1403
1417
  rightAddOnClicked: () => any;
1404
- smartFilterSelected: (T: {
1405
- name: string;
1406
- value: string;
1407
- active?: boolean | undefined;
1408
- }[]) => any;
1418
+ smartFilterSelected: (T: string) => any;
1409
1419
  smartInputChanged: (T: InputType_2) => any;
1410
1420
  smartSelectChanged: (T: SelectItemType_2[]) => any;
1411
1421
  smartOptionSelected: (T: UiDropdownItemType_2) => any;
1412
1422
  }, string, PublicProps, Readonly<UiSmartFilterInterface> & Readonly<{
1413
1423
  onRightAddOnClicked?: (() => any) | undefined;
1414
- onSmartFilterSelected?: ((T: {
1415
- name: string;
1416
- value: string;
1417
- active?: boolean | undefined;
1418
- }[]) => any) | undefined;
1424
+ onSmartFilterSelected?: ((T: string) => any) | undefined;
1419
1425
  onSmartInputChanged?: ((T: InputType_2) => any) | undefined;
1420
1426
  onSmartSelectChanged?: ((T: SelectItemType_2[]) => any) | undefined;
1421
1427
  onSmartOptionSelected?: ((T: UiDropdownItemType_2) => any) | undefined;
1422
1428
  }>, {
1423
1429
  loading: boolean;
1430
+ showFilterButton: boolean;
1424
1431
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1425
1432
 
1426
1433
  export declare interface UiSmartFilterEventInterface {
1427
1434
  /** when a filter is selected */
1428
- (e: "smartFilterSelected", T: UiFilterInterface["items"]): void;
1435
+ (e: "smartFilterSelected", T: string): void;
1429
1436
  /** when an input is changed */
1430
1437
  (e: "smartInputChanged", T: InputType): void;
1431
1438
  /** when a select is changed*/
@@ -1453,10 +1460,30 @@ export declare interface UiSmartFilterInterface {
1453
1460
  }[];
1454
1461
  /** filter action literal */
1455
1462
  buttonLiteral: string;
1463
+ /** add literal for multiple filters */
1464
+ addLiteral?: string;
1465
+ /** remove literal for multiple filters */
1466
+ removeLiteral?: string;
1467
+ /** show filter button, to be used internally by uiSmartFilterMultiple */
1468
+ showFilterButton?: boolean;
1456
1469
  /** show skeleton */
1457
1470
  loading?: boolean;
1458
1471
  }
1459
1472
 
1473
+ export declare interface UiSmartFilterMultipleEventInterface {
1474
+ /** send filters on click */
1475
+ (e: "smartFilterMultipleSent", T: {
1476
+ name: string;
1477
+ value: {
1478
+ name: string;
1479
+ value: string | {
1480
+ id: string;
1481
+ value: string;
1482
+ }[];
1483
+ };
1484
+ }[]): void;
1485
+ }
1486
+
1460
1487
  export declare const uiStats: DefineComponent<UiStatsInterface, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1461
1488
  statClick: (T: string) => any;
1462
1489
  }, string, PublicProps, Readonly<UiStatsInterface> & Readonly<{