@hotelinking/ui 14.48.7 → 15.49.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.cjs +1 -1
- package/dist/ui.d.ts +70 -0
- package/dist/ui.es.js +1978 -1873
- package/package.json +1 -1
package/dist/ui.d.ts
CHANGED
|
@@ -206,6 +206,8 @@ declare interface Props {
|
|
|
206
206
|
value: string | undefined;
|
|
207
207
|
}>;
|
|
208
208
|
};
|
|
209
|
+
/** Estado de carga para mostrar skeleton */
|
|
210
|
+
loading?: boolean;
|
|
209
211
|
}
|
|
210
212
|
|
|
211
213
|
export declare type SelectItemType = {
|
|
@@ -1047,6 +1049,8 @@ export declare interface UiModalEventsInterface {
|
|
|
1047
1049
|
export declare interface UiModalInterface {
|
|
1048
1050
|
/** modal title */
|
|
1049
1051
|
title: string;
|
|
1052
|
+
/** modal content for use in other components (like uiTable) */
|
|
1053
|
+
content?: string;
|
|
1050
1054
|
/** actions array */
|
|
1051
1055
|
actions?: {
|
|
1052
1056
|
/** value of the action */
|
|
@@ -1645,6 +1649,7 @@ value: string | undefined;
|
|
|
1645
1649
|
onSmartFiltersCleared?: (() => any) | undefined;
|
|
1646
1650
|
onSmartFilterDeleted?: ((I: number) => any) | undefined;
|
|
1647
1651
|
}>, {
|
|
1652
|
+
loading: boolean;
|
|
1648
1653
|
filters: {
|
|
1649
1654
|
logicOperator: string;
|
|
1650
1655
|
filters: {
|
|
@@ -1761,6 +1766,10 @@ export declare interface UiTabInterface {
|
|
|
1761
1766
|
}
|
|
1762
1767
|
|
|
1763
1768
|
export declare const uiTable: DefineComponent<UiTableInterface, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1769
|
+
modalAction: (T: {
|
|
1770
|
+
modal: string;
|
|
1771
|
+
action: string;
|
|
1772
|
+
}) => any;
|
|
1764
1773
|
tableAction: (T: {
|
|
1765
1774
|
action: string;
|
|
1766
1775
|
items: (string | number)[];
|
|
@@ -1777,7 +1786,12 @@ emits: any;
|
|
|
1777
1786
|
};
|
|
1778
1787
|
}) => any;
|
|
1779
1788
|
selectedItemsDeleted: () => any;
|
|
1789
|
+
selectAllItems: () => any;
|
|
1780
1790
|
}, string, PublicProps, Readonly<UiTableInterface> & Readonly<{
|
|
1791
|
+
onModalAction?: ((T: {
|
|
1792
|
+
modal: string;
|
|
1793
|
+
action: string;
|
|
1794
|
+
}) => any) | undefined;
|
|
1781
1795
|
onTableAction?: ((T: {
|
|
1782
1796
|
action: string;
|
|
1783
1797
|
items: (string | number)[];
|
|
@@ -1794,6 +1808,7 @@ emits: any;
|
|
|
1794
1808
|
};
|
|
1795
1809
|
}) => any) | undefined;
|
|
1796
1810
|
onSelectedItemsDeleted?: (() => any) | undefined;
|
|
1811
|
+
onSelectAllItems?: (() => any) | undefined;
|
|
1797
1812
|
}>, {
|
|
1798
1813
|
loading: boolean;
|
|
1799
1814
|
resetSelected: boolean;
|
|
@@ -1821,9 +1836,20 @@ export declare interface UiTableEventsInterface {
|
|
|
1821
1836
|
}): void;
|
|
1822
1837
|
/** emitted when resetSelected prop is sent with true, use it to rollback resetSelected to false */
|
|
1823
1838
|
(e: "selectedItemsDeleted"): void;
|
|
1839
|
+
/** emitted when select all items action is chosen from modal */
|
|
1840
|
+
(e: "selectAllItems"): void;
|
|
1841
|
+
/** emitted when modal action is clicked */
|
|
1842
|
+
(e: "modalAction", T: {
|
|
1843
|
+
modal: string;
|
|
1844
|
+
action: string;
|
|
1845
|
+
}): void;
|
|
1824
1846
|
}
|
|
1825
1847
|
|
|
1826
1848
|
export declare interface UiTableInterface {
|
|
1849
|
+
/** select all items Modal */
|
|
1850
|
+
selectAllItemsModal: UiModalInterface;
|
|
1851
|
+
/** select all items Modal literal */
|
|
1852
|
+
selectAllItemsModalContent?: string;
|
|
1827
1853
|
/** if you send this prop to the table with true it will reset all checked rows */
|
|
1828
1854
|
resetSelected: boolean;
|
|
1829
1855
|
/** header value the table is ordered */
|
|
@@ -2102,6 +2128,50 @@ export declare interface UiTopbarInterface {
|
|
|
2102
2128
|
navigation?: UiSidebarV2Interface["navigation"];
|
|
2103
2129
|
}
|
|
2104
2130
|
|
|
2131
|
+
export declare const uiViewHeader: DefineComponent<UiViewHeaderInterface, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2132
|
+
breadCrumbClicked: (routeName: string) => any;
|
|
2133
|
+
buttonClick: () => any;
|
|
2134
|
+
}, string, PublicProps, Readonly<UiViewHeaderInterface> & Readonly<{
|
|
2135
|
+
onBreadCrumbClicked?: ((routeName: string) => any) | undefined;
|
|
2136
|
+
onButtonClick?: (() => any) | undefined;
|
|
2137
|
+
}>, {
|
|
2138
|
+
loading: boolean;
|
|
2139
|
+
buttonLoading: boolean;
|
|
2140
|
+
buttonDisabled: boolean;
|
|
2141
|
+
buttonColor: "primary" | "secondary" | "light" | "green" | "yellow" | "red";
|
|
2142
|
+
buttonSize: "big" | "small" | "medium";
|
|
2143
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2144
|
+
|
|
2145
|
+
export declare interface UiViewHeaderEventInterface {
|
|
2146
|
+
/** Emitted when a breadcrumb is clicked */
|
|
2147
|
+
(e: "breadCrumbClicked", routeName: string): void;
|
|
2148
|
+
/** Emitted when the button is clicked */
|
|
2149
|
+
(e: "buttonClick"): void;
|
|
2150
|
+
}
|
|
2151
|
+
|
|
2152
|
+
export declare interface UiViewHeaderInterface {
|
|
2153
|
+
/** Array of breadcrumb pages */
|
|
2154
|
+
pages: UiBreadcrumbsInterface["pages"];
|
|
2155
|
+
/** Main title of the view */
|
|
2156
|
+
title: string;
|
|
2157
|
+
/** Subtitle/heading below the title */
|
|
2158
|
+
subtitle: string;
|
|
2159
|
+
/** Description text below subtitle */
|
|
2160
|
+
description: string;
|
|
2161
|
+
/** Text for the optional button */
|
|
2162
|
+
buttonText?: string;
|
|
2163
|
+
/** Whether breadcrumbs are loading */
|
|
2164
|
+
loading?: boolean;
|
|
2165
|
+
/** Whether the button is loading */
|
|
2166
|
+
buttonLoading?: boolean;
|
|
2167
|
+
/** Whether the button is disabled */
|
|
2168
|
+
buttonDisabled?: boolean;
|
|
2169
|
+
/** Button color variant */
|
|
2170
|
+
buttonColor?: Colors_2;
|
|
2171
|
+
/** Button size variant */
|
|
2172
|
+
buttonSize?: Sizes_2;
|
|
2173
|
+
}
|
|
2174
|
+
|
|
2105
2175
|
export declare const uiWrapper: __VLS_WithTemplateSlots_8<DefineComponent<UiWrapperInterface, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2106
2176
|
checkboxChanged: (checkbox: UiCheckboxType) => any;
|
|
2107
2177
|
inputChanged: (T: InputType) => any;
|