@hotelinking/ui 9.41.26 → 9.41.27

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,17 +1,17 @@
1
1
  import { UiPriceCalendarInterface, UiRoomTypeSelectionPriceType } from "@/types";
2
2
  declare const _default: import("vue").DefineComponent<UiPriceCalendarInterface, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
+ tableAction: (t: any) => any;
3
4
  dateChanged: (t: Date) => any;
4
5
  changeCategoryBulkPrices: () => any;
5
6
  changeCategorySelectionPrice: (t: UiRoomTypeSelectionPriceType) => any;
6
7
  changeCategoryUpgradePrice: (t: UiRoomTypeSelectionPriceType) => any;
7
8
  changeRoomPrice: (t: UiRoomTypeSelectionPriceType) => any;
8
- tableAction: (t: any) => any;
9
9
  }, string, import("vue").PublicProps, Readonly<UiPriceCalendarInterface> & Readonly<{
10
+ onTableAction?: ((t: any) => any) | undefined;
10
11
  onDateChanged?: ((t: Date) => any) | undefined;
11
12
  onChangeCategoryBulkPrices?: (() => any) | undefined;
12
13
  onChangeCategorySelectionPrice?: ((t: UiRoomTypeSelectionPriceType) => any) | undefined;
13
14
  onChangeCategoryUpgradePrice?: ((t: UiRoomTypeSelectionPriceType) => any) | undefined;
14
15
  onChangeRoomPrice?: ((t: UiRoomTypeSelectionPriceType) => any) | undefined;
15
- onTableAction?: ((t: any) => any) | undefined;
16
16
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
17
  export default _default;
@@ -1,4 +1,4 @@
1
- import { UiRightSidebarInterface } from '../../../types';
1
+ import { UiRightSidebarInterface } from '@/types';
2
2
  declare function __VLS_template(): {
3
3
  attrs: Partial<{}>;
4
4
  slots: {
@@ -1,8 +1,8 @@
1
- import { UiSidebarInterface } from "../../../types";
2
- declare const _default: import("vue").DefineComponent<UiSidebarInterface, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
- sideBarClick: (...args: any[]) => void;
1
+ import { UiSidebarInterface } from "@/types";
2
+ declare const _default: import("vue").DefineComponent<UiSidebarInterface, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
+ sideBarClick: (t: string) => any;
4
4
  }, string, import("vue").PublicProps, Readonly<UiSidebarInterface> & Readonly<{
5
- onSideBarClick?: ((...args: any[]) => any) | undefined;
5
+ onSideBarClick?: ((t: string) => any) | undefined;
6
6
  }>, {
7
7
  loading: boolean;
8
8
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
@@ -1,10 +1,10 @@
1
1
  import { UiSidebarV2Interface } from "@/types";
2
- declare const _default: import("vue").DefineComponent<UiSidebarV2Interface, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
- sideBarClick: (...args: any[]) => void;
4
- productBarClick: (...args: any[]) => void;
2
+ declare const _default: import("vue").DefineComponent<UiSidebarV2Interface, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
+ sideBarClick: (t: string) => any;
4
+ productBarClick: (t: string) => any;
5
5
  }, string, import("vue").PublicProps, Readonly<UiSidebarV2Interface> & Readonly<{
6
- onSideBarClick?: ((...args: any[]) => any) | undefined;
7
- onProductBarClick?: ((...args: any[]) => any) | undefined;
6
+ onSideBarClick?: ((t: string) => any) | undefined;
7
+ onProductBarClick?: ((t: string) => any) | undefined;
8
8
  }>, {
9
9
  loading: boolean;
10
10
  isFilterNavigation: boolean;
@@ -1,4 +1,4 @@
1
- import { UiStatsInterface } from "../../../types";
1
+ import { UiStatsInterface } from "@/types";
2
2
  declare const _default: import("vue").DefineComponent<UiStatsInterface, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
3
  statClick: (T: string) => any;
4
4
  }, string, import("vue").PublicProps, Readonly<UiStatsInterface> & Readonly<{
@@ -1,4 +1,4 @@
1
- import { UiStripedCardInterface } from "../../../types";
1
+ import { UiStripedCardInterface } from "@/types";
2
2
  declare const _default: import("vue").DefineComponent<UiStripedCardInterface, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
3
  itemClicked: (T: string) => any;
4
4
  }, string, import("vue").PublicProps, Readonly<UiStripedCardInterface> & Readonly<{
@@ -1,4 +1,4 @@
1
- import { UiTabInterface } from '../../../types';
1
+ import { UiTabInterface } from '@/types';
2
2
  declare const _default: import("vue").DefineComponent<UiTabInterface, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
3
  tabClicked: (T: string) => any;
4
4
  }, string, import("vue").PublicProps, Readonly<UiTabInterface> & Readonly<{
@@ -1,5 +1,11 @@
1
- import { UiTimelineInterface } from "../../../types";
2
- declare const _default: import("vue").DefineComponent<UiTimelineInterface, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<UiTimelineInterface> & Readonly<{}>, {
1
+ import { UiTimelineInterface } from "@/types";
2
+ declare const _default: import("vue").DefineComponent<UiTimelineInterface, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
+ timelineEventClicked: (t: string | number) => any;
4
+ timelineFooterClicked: (t: string) => any;
5
+ }, string, import("vue").PublicProps, Readonly<UiTimelineInterface> & Readonly<{
6
+ onTimelineEventClicked?: ((t: string | number) => any) | undefined;
7
+ onTimelineFooterClicked?: ((t: string) => any) | undefined;
8
+ }>, {
3
9
  loading: boolean;
4
10
  empty: boolean;
5
11
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,4 +1,4 @@
1
- import { UiTopbarInterface } from "../../../types";
1
+ import { UiTopbarInterface } from "@/types";
2
2
  declare const _default: import("vue").DefineComponent<UiTopbarInterface, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
3
  topBarClick: (T: string) => any;
4
4
  }, string, import("vue").PublicProps, Readonly<UiTopbarInterface> & Readonly<{
@@ -692,169 +692,325 @@ export interface UiPaginationEventsInterface {
692
692
  (e: "changePage", T: number): void;
693
693
  }
694
694
  export interface UiRightSidebarInterface {
695
+ /** Sidebar title */
695
696
  title?: string;
697
+ /** sidebar description or secondary text */
696
698
  description?: string;
699
+ /** is sidebar open? */
697
700
  open: boolean;
698
701
  }
702
+ export interface UiRightSidebarEventsInterface {
703
+ /** emits when click outside bar or X icon */
704
+ (e: "closeRightBar"): void;
705
+ }
699
706
  export interface UiSidebarInterface {
707
+ /** navigation array */
700
708
  navigation?: {
709
+ /** name string literal */
701
710
  name: string;
711
+ /** icon component from Heroicons */
702
712
  icon?: any;
713
+ /** is current sidebar item */
703
714
  current?: boolean;
704
- id?: string;
715
+ /** unique id */
716
+ id: string;
717
+ /** If item is parent, has children items */
705
718
  children?: {
719
+ /** name string literal */
706
720
  name: string;
721
+ /** unique id */
707
722
  id: string;
723
+ /** is current sidebar item */
708
724
  current?: boolean;
709
725
  }[];
710
- }[];
726
+ };
727
+ /** instead, can be a filters sidebar */
711
728
  filterNavigation?: {
729
+ /** has search input on top */
712
730
  hasSearch?: boolean;
731
+ /** search props */
713
732
  search?: UiInputInterface;
733
+ /** check groups */
714
734
  items?: {
735
+ /** check groups title */
715
736
  label: string;
737
+ /** checkbox array */
716
738
  filters: UiCheckboxInterface[];
717
739
  }[];
718
740
  };
741
+ /** is filter sidebar or navigation sidebar */
719
742
  isFilterNavigation?: boolean;
743
+ /** show skeleton */
720
744
  loading?: boolean;
745
+ /** sidebar brand logo */
721
746
  logo?: string;
722
747
  }
748
+ export interface UiSidebarEventsInterface {
749
+ /** emitted when a link is clicked, emits item id */
750
+ (e: 'sideBarClick', t: string): any;
751
+ }
723
752
  export interface UiSidebarV2Interface {
753
+ /** navigation array */
724
754
  navigation?: {
755
+ /** name string literal */
725
756
  name: string;
757
+ /** icon component from Heroicons */
726
758
  icon?: any;
759
+ /** is current sidebar item */
727
760
  current?: boolean;
728
- id?: string;
761
+ /** unique id */
762
+ id: string;
763
+ /** If item is parent, has children items */
729
764
  children?: {
765
+ /** name string literal */
730
766
  name: string;
767
+ /** unique id */
731
768
  id: string;
769
+ /** is current sidebar item */
732
770
  current?: boolean;
733
771
  }[];
734
- }[];
772
+ };
773
+ /** instead, can be a filters sidebar */
735
774
  filterNavigation?: {
775
+ /** has search input on top */
736
776
  hasSearch?: boolean;
777
+ /** search props */
737
778
  search?: UiInputInterface;
779
+ /** check groups */
738
780
  items?: {
781
+ /** check groups title */
739
782
  label: string;
783
+ /** checkbox array */
740
784
  filters: UiCheckboxInterface[];
741
785
  }[];
742
786
  };
787
+ /** is filter sidebar or navigation sidebar */
743
788
  isFilterNavigation?: boolean;
789
+ /** show skeleton */
744
790
  loading?: boolean;
791
+ /** sidebar brand logo */
745
792
  logo?: string;
793
+ /** left sidebar with product logos */
746
794
  productsSidebar: {
747
795
  name: string;
748
796
  icon: any;
749
797
  active?: boolean;
750
798
  }[];
751
799
  }
800
+ export interface uiSidebarV2EventsInterface {
801
+ /** emits product name when clicked */
802
+ (e: 'productBarClick', t: string): void;
803
+ /** emitted when a link is clicked, emits item id */
804
+ (e: 'sideBarClick', t: string): any;
805
+ }
752
806
  export interface UiStatsInterface {
753
807
  item: {
808
+ /** stat icon */
754
809
  icon: any;
810
+ /** increase o decrease value ej: 122% */
755
811
  change?: string;
756
- changeType?: string;
812
+ /** change direction */
813
+ changeType?: "increase" | "decrease" | "neutral";
814
+ /** footer action link */
757
815
  actionText?: string;
816
+ /** unique id */
758
817
  id: string;
818
+ /** stats name */
759
819
  name: string;
820
+ /** stat value */
760
821
  stat: string | number;
822
+ /** helper text */
761
823
  explanation?: string;
824
+ /** icon background color */
762
825
  color?: AllColors;
826
+ /** show footer with action */
763
827
  showFooter?: boolean;
764
828
  };
829
+ /** show skeleton */
765
830
  loading?: boolean;
766
831
  }
832
+ export interface UiStatsEventsInterface {
833
+ /** emits when actionText is clicked, emits item.id */
834
+ (e: "statClick", T: string): void;
835
+ }
767
836
  export interface UiStripedCardInterface {
837
+ /** card title */
768
838
  title: string;
839
+ /** card subtitle */
769
840
  subtitle: string;
841
+ /** array of card rows */
770
842
  items: {
771
- color: AllColors;
843
+ /** row title */
772
844
  title: string;
845
+ /** row text */
773
846
  text: string;
847
+ /** if link, when click, emits: */
774
848
  emits: string;
775
- type?: "link" | "tags" | "tag";
849
+ /** row content, if undefined, the content is text */
850
+ type?: "link" | "tags";
851
+ /** if type tags, tags array */
776
852
  tags?: UiTagInterface[];
777
853
  }[];
854
+ /** show skeleton */
778
855
  loading?: boolean;
779
856
  }
857
+ export interface UiStripedCardEventsInterface {
858
+ /** emits when link is clicked, emits item emits */
859
+ (e: "itemClicked", T: string): void;
860
+ }
780
861
  export type TableItemType = {
862
+ /** co unique id */
781
863
  id: string | number;
864
+ /** when a row is emitted, if additional info is needed, can be put here */
782
865
  emitWith?: any;
866
+ /** content, can be string, link, tag */
783
867
  row: Array<string | {
868
+ /** string literal */
784
869
  content: string;
870
+ /** if tag, backgroun color of tag */
785
871
  color: AllColors;
786
- type: string;
872
+ /** tag, link that emits, or href link */
873
+ type?: 'tag' | 'link' | 'href';
874
+ /** content emitted if clicked on link type */
787
875
  emits?: any;
876
+ /** target url of href type */
788
877
  href?: string;
789
878
  }>;
790
879
  };
791
880
  export interface UiTableInterface {
881
+ /** if you send this prop to the table with true it will reset all checked rows */
792
882
  resetSelected: boolean;
883
+ /** header value the table is ordered */
793
884
  orderedBy: string;
885
+ /** order direction */
794
886
  orderDirection?: "asc" | "desc";
887
+ /** show skeleton */
795
888
  loading?: boolean;
889
+ /** table header */
796
890
  header: {
891
+ /** table column header name */
797
892
  name: string;
893
+ /** table column header value, used for orders */
798
894
  value: string;
895
+ /** tooltip string literal if needed */
799
896
  tooltip?: string;
800
897
  }[];
898
+ /** rows */
801
899
  items: TableItemType[] | [];
900
+ /** when row is checked, available actions shows */
802
901
  actions: {
902
+ /** action string literal */
803
903
  name: string;
904
+ /** action id */
804
905
  id: string;
805
906
  }[];
806
907
  }
908
+ export interface UiTableEventsInterface {
909
+ /** if table action is clicked, emits selected rows ids */
910
+ (e: "tableAction", T: {
911
+ action: string;
912
+ items: Array<string | number>;
913
+ }): void;
914
+ /** emits header value and asc desc */
915
+ (e: "orderBy", T: {
916
+ value: string;
917
+ orderDirection: "desc" | "asc";
918
+ }): void;
919
+ /** if colum is link and has custom info */
920
+ (e: "customEmit", T: {
921
+ data: {
922
+ content: string;
923
+ type: string;
924
+ emits: any;
925
+ };
926
+ }): void;
927
+ /** emitted when resetSelected prop is sent with true, use it to rollback resetSelected to false */
928
+ (e: "selectedItemsDeleted"): void;
929
+ }
807
930
  export interface UiTabInterface {
931
+ /** tabs array */
808
932
  tabs: {
933
+ /** tab string literal */
809
934
  name: string;
935
+ /** tab unique id */
810
936
  id: string;
937
+ /** tab count tag */
811
938
  count?: number;
939
+ /** is current tag */
812
940
  current?: boolean;
813
941
  }[];
814
942
  }
943
+ export interface UiTabEventsInterface {
944
+ /** emits when a tab is clicked, emits tab id */
945
+ (e: "tabClicked", T: string): void;
946
+ }
815
947
  export interface UiTimelineInterface {
948
+ /** timeline title */
816
949
  name: string;
950
+ /** items */
817
951
  timeline: {
952
+ /** timeline unique id */
818
953
  id: string;
954
+ /** timeline footer literal */
819
955
  footerText: string;
956
+ /** items array */
820
957
  items: {
958
+ /** row id */
821
959
  id: number | string;
960
+ /** link id */
822
961
  linkId: number | string;
962
+ /** row text */
823
963
  content: string;
964
+ /** item name, reference.. */
824
965
  target: string;
966
+ /** target link */
825
967
  href: string;
968
+ /** event date */
826
969
  date: string;
970
+ /** event formatted date */
827
971
  datetime: string;
972
+ /** event icon */
828
973
  icon: any;
974
+ /** event icon background color */
829
975
  iconBackground: string;
830
976
  }[];
831
977
  };
978
+ /** if custom height in px */
832
979
  height?: number;
980
+ /** is timeline empty */
833
981
  empty?: boolean;
982
+ /** show skeleton */
834
983
  loading?: boolean;
835
984
  }
985
+ export interface UiTimelineEventsInterface {
986
+ /** when a timeline event is clicked, emits item id */
987
+ (e: 'timelineEventClicked', t: string | number): void;
988
+ /** emits when footer link is clicked */
989
+ (e: 'timelineFooterClicked', t: string): void;
990
+ }
836
991
  export interface UiTopbarInterface {
992
+ /** brand logo */
837
993
  logo: string;
994
+ /** show alert icon */
838
995
  alerted: boolean;
996
+ /** sub brand logo */
839
997
  accountLogo: string;
998
+ /** profile menu of sub brand */
840
999
  profileMenu?: {
841
1000
  name: string;
842
1001
  id: string;
843
1002
  }[];
1003
+ /** brand name and description */
844
1004
  brand?: {
845
1005
  title: string;
846
1006
  subtitle: string;
847
1007
  };
848
- navigation?: {
849
- id: string;
850
- name: string;
851
- icon: string;
852
- current: boolean;
853
- children?: {
854
- name: string;
855
- id: string;
856
- }[];
857
- }[];
1008
+ /** when mobile, this is the sidebar navigation menu */
1009
+ navigation?: UiSidebarV2Interface["navigation"];
1010
+ }
1011
+ export interface UiTopbarEventsInterface {
1012
+ /** when clicked in any menu item */
1013
+ (e: "topBarClick", T: string): void;
858
1014
  }
859
1015
  export interface UiWrapperInterface {
860
1016
  topbar: {
@@ -913,7 +1069,7 @@ export interface UiPriceCalendarInterface {
913
1069
  /** actino id */
914
1070
  id: string;
915
1071
  }[];
916
- /** table literals */
1072
+ /** table literals check storybook */
917
1073
  literals: {
918
1074
  category: string;
919
1075
  changeInBulk: string;