@hotelinking/ui 15.49.4 → 16.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.cjs +1 -1
- package/dist/ui.d.ts +65 -218
- package/dist/ui.es.js +2267 -2310
- package/package.json +1 -1
package/dist/ui.d.ts
CHANGED
|
@@ -47,12 +47,6 @@ declare type __VLS_WithTemplateSlots_7<T, S> = T & {
|
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
49
|
|
|
50
|
-
declare type __VLS_WithTemplateSlots_8<T, S> = T & {
|
|
51
|
-
new (): {
|
|
52
|
-
$slots: S;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
|
|
56
50
|
export declare const AllColors: readonly ["primary", "secondary", "light", "green", "yellow", "red", "black", "gray", "white"];
|
|
57
51
|
|
|
58
52
|
declare const AllColors: readonly ["primary", "secondary", "light", "green", "yellow", "red", "black", "gray", "white"];
|
|
@@ -67,16 +61,6 @@ declare type AllSizes_2 = (typeof AllSizes)[number];
|
|
|
67
61
|
|
|
68
62
|
export declare const BiggerSizes: readonly ["bigger", "huge", "massive"];
|
|
69
63
|
|
|
70
|
-
/**
|
|
71
|
-
* Configuración completa de una categoría de filtro
|
|
72
|
-
*/
|
|
73
|
-
declare interface CategoryConfig {
|
|
74
|
-
label: string;
|
|
75
|
-
name: string;
|
|
76
|
-
componentType: 'uiInput' | 'uiSelect';
|
|
77
|
-
defaultProps: FilterProps;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
64
|
export declare type chartOptionsType = {
|
|
81
65
|
chart: {
|
|
82
66
|
toolbar: {
|
|
@@ -155,17 +139,6 @@ export declare type FileInputType = {
|
|
|
155
139
|
files: any;
|
|
156
140
|
};
|
|
157
141
|
|
|
158
|
-
/**
|
|
159
|
-
* Propiedades de configuración para campos de entrada individuales
|
|
160
|
-
*/
|
|
161
|
-
declare interface FilterProps {
|
|
162
|
-
name?: string;
|
|
163
|
-
label?: string;
|
|
164
|
-
value?: string;
|
|
165
|
-
items?: SelectItemType[];
|
|
166
|
-
select?: SelectItemType;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
142
|
export declare type InputType = {
|
|
170
143
|
/** Name of the input field */
|
|
171
144
|
name: string;
|
|
@@ -179,37 +152,6 @@ declare function install(app: App): void;
|
|
|
179
152
|
|
|
180
153
|
export declare const MonoColors: readonly ["black", "gray", "white"];
|
|
181
154
|
|
|
182
|
-
/**
|
|
183
|
-
* Props del componente para configuración externa
|
|
184
|
-
* Permite personalizar textos y categorías desde el componente padre
|
|
185
|
-
*/
|
|
186
|
-
declare interface Props {
|
|
187
|
-
/** Textos literales para internacionalización */
|
|
188
|
-
literals: {
|
|
189
|
-
filters: string;
|
|
190
|
-
contains: string;
|
|
191
|
-
is: string;
|
|
192
|
-
and: string;
|
|
193
|
-
or: string;
|
|
194
|
-
deleteAll: string;
|
|
195
|
-
filter: string;
|
|
196
|
-
};
|
|
197
|
-
/** Categorías disponibles para crear filtros */
|
|
198
|
-
availableCategories: CategoryConfig[];
|
|
199
|
-
/** Filtros pre-aplicados para regenerar el componente */
|
|
200
|
-
filters?: {
|
|
201
|
-
logicOperator: string;
|
|
202
|
-
filters: Array<{
|
|
203
|
-
name: string;
|
|
204
|
-
label: string;
|
|
205
|
-
type: 'uiInput' | 'uiSelect';
|
|
206
|
-
value: string | undefined;
|
|
207
|
-
}>;
|
|
208
|
-
};
|
|
209
|
-
/** Estado de carga para mostrar skeleton */
|
|
210
|
-
loading?: boolean;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
155
|
export declare type SelectItemType = {
|
|
214
156
|
/** Unique value inside the select */
|
|
215
157
|
id?: string;
|
|
@@ -1131,26 +1073,6 @@ export declare interface UiNotificationInterface {
|
|
|
1131
1073
|
show: boolean;
|
|
1132
1074
|
}
|
|
1133
1075
|
|
|
1134
|
-
export declare const uiPagination: __VLS_WithTemplateSlots_6<DefineComponent<UiPaginationInterface, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1135
|
-
changePage: (T: number) => any;
|
|
1136
|
-
}, string, PublicProps, Readonly<UiPaginationInterface> & Readonly<{
|
|
1137
|
-
onChangePage?: ((T: number) => any) | undefined;
|
|
1138
|
-
}>, {
|
|
1139
|
-
loading: boolean;
|
|
1140
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1141
|
-
'test-first-button': HTMLButtonElement;
|
|
1142
|
-
'test-last-button': HTMLButtonElement;
|
|
1143
|
-
}, any>, {
|
|
1144
|
-
previous?(_: {}): any;
|
|
1145
|
-
previous?(_: {}): any;
|
|
1146
|
-
next?(_: {}): any;
|
|
1147
|
-
next?(_: {}): any;
|
|
1148
|
-
showing?(_: {}): any;
|
|
1149
|
-
of?(_: {}): any;
|
|
1150
|
-
pages?(_: {}): any;
|
|
1151
|
-
fromTotal?(_: {}): any;
|
|
1152
|
-
}>;
|
|
1153
|
-
|
|
1154
1076
|
export declare interface UiPaginationEventsInterface {
|
|
1155
1077
|
/** emits when a button is clicked, emits a page number */
|
|
1156
1078
|
(e: "changePage", T: number): void;
|
|
@@ -1305,7 +1227,7 @@ export declare interface UiRangeSliderInterface {
|
|
|
1305
1227
|
requiredText?: string;
|
|
1306
1228
|
}
|
|
1307
1229
|
|
|
1308
|
-
export declare const uiRightSidebar:
|
|
1230
|
+
export declare const uiRightSidebar: __VLS_WithTemplateSlots_6<DefineComponent<UiRightSidebarInterface, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1309
1231
|
closeRightBar: () => any;
|
|
1310
1232
|
}, string, PublicProps, Readonly<UiRightSidebarInterface> & Readonly<{
|
|
1311
1233
|
onCloseRightBar?: (() => any) | undefined;
|
|
@@ -1528,23 +1450,6 @@ export declare interface UiSidebarV2Interface {
|
|
|
1528
1450
|
}[];
|
|
1529
1451
|
}
|
|
1530
1452
|
|
|
1531
|
-
export declare const uiSmartFilter: DefineComponent<UiSmartFilterInterface, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1532
|
-
rightAddOnClicked: () => any;
|
|
1533
|
-
smartFilterSelected: (T: string) => any;
|
|
1534
|
-
smartInputChanged: (T: InputType) => any;
|
|
1535
|
-
smartSelectChanged: (T: SelectItemType[]) => any;
|
|
1536
|
-
smartOptionSelected: (T: UiDropdownItemType) => any;
|
|
1537
|
-
}, string, PublicProps, Readonly<UiSmartFilterInterface> & Readonly<{
|
|
1538
|
-
onRightAddOnClicked?: (() => any) | undefined;
|
|
1539
|
-
onSmartFilterSelected?: ((T: string) => any) | undefined;
|
|
1540
|
-
onSmartInputChanged?: ((T: InputType) => any) | undefined;
|
|
1541
|
-
onSmartSelectChanged?: ((T: SelectItemType[]) => any) | undefined;
|
|
1542
|
-
onSmartOptionSelected?: ((T: UiDropdownItemType) => any) | undefined;
|
|
1543
|
-
}>, {
|
|
1544
|
-
loading: boolean;
|
|
1545
|
-
showFilterButton: boolean;
|
|
1546
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1547
|
-
|
|
1548
1453
|
export declare interface UiSmartFilterEventInterface {
|
|
1549
1454
|
/** when a filter is selected */
|
|
1550
1455
|
(e: "smartFilterSelected", T: string): void;
|
|
@@ -1585,31 +1490,6 @@ export declare interface UiSmartFilterInterface {
|
|
|
1585
1490
|
loading?: boolean;
|
|
1586
1491
|
}
|
|
1587
1492
|
|
|
1588
|
-
export declare const uiSmartFilterMultiple: DefineComponent<UiSmartFilterInterface, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1589
|
-
rightAddOnClicked: () => any;
|
|
1590
|
-
smartFilterSelected: (value: string) => any;
|
|
1591
|
-
smartInputChanged: (value: InputType) => any;
|
|
1592
|
-
smartSelectChanged: (value: SelectItemType[]) => any;
|
|
1593
|
-
smartOptionSelected: (value: UiDropdownItemType) => any;
|
|
1594
|
-
smartFilterMultipleSent: (filters: {
|
|
1595
|
-
name: string;
|
|
1596
|
-
value: any;
|
|
1597
|
-
}[]) => any;
|
|
1598
|
-
}, string, PublicProps, Readonly<UiSmartFilterInterface> & Readonly<{
|
|
1599
|
-
onRightAddOnClicked?: (() => any) | undefined;
|
|
1600
|
-
onSmartFilterSelected?: ((value: string) => any) | undefined;
|
|
1601
|
-
onSmartInputChanged?: ((value: InputType) => any) | undefined;
|
|
1602
|
-
onSmartSelectChanged?: ((value: SelectItemType[]) => any) | undefined;
|
|
1603
|
-
onSmartOptionSelected?: ((value: UiDropdownItemType) => any) | undefined;
|
|
1604
|
-
onSmartFilterMultipleSent?: ((filters: {
|
|
1605
|
-
name: string;
|
|
1606
|
-
value: any;
|
|
1607
|
-
}[]) => any) | undefined;
|
|
1608
|
-
}>, {
|
|
1609
|
-
loading: boolean;
|
|
1610
|
-
showFilterButton: boolean;
|
|
1611
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1612
|
-
|
|
1613
1493
|
export declare interface UiSmartFilterMultipleEventInterface {
|
|
1614
1494
|
/** send filters on click */
|
|
1615
1495
|
(e: "smartFilterMultipleSent", T: {
|
|
@@ -1624,53 +1504,6 @@ export declare interface UiSmartFilterMultipleEventInterface {
|
|
|
1624
1504
|
}[]): void;
|
|
1625
1505
|
}
|
|
1626
1506
|
|
|
1627
|
-
export declare const uiSmartFilterMultipleV2: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1628
|
-
smartFiltersSent: (filters: {
|
|
1629
|
-
logicOperator: string;
|
|
1630
|
-
filters: {
|
|
1631
|
-
name: string;
|
|
1632
|
-
label: string;
|
|
1633
|
-
type: "uiInput" | "uiSelect";
|
|
1634
|
-
value: string | undefined;
|
|
1635
|
-
}[];
|
|
1636
|
-
} | undefined) => any;
|
|
1637
|
-
smartFiltersCleared: () => any;
|
|
1638
|
-
smartFilterDeleted: (I: number) => any;
|
|
1639
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
1640
|
-
onSmartFiltersSent?: ((filters: {
|
|
1641
|
-
logicOperator: string;
|
|
1642
|
-
filters: {
|
|
1643
|
-
name: string;
|
|
1644
|
-
label: string;
|
|
1645
|
-
type: "uiInput" | "uiSelect";
|
|
1646
|
-
value: string | undefined;
|
|
1647
|
-
}[];
|
|
1648
|
-
} | undefined) => any) | undefined;
|
|
1649
|
-
onSmartFiltersCleared?: (() => any) | undefined;
|
|
1650
|
-
onSmartFilterDeleted?: ((I: number) => any) | undefined;
|
|
1651
|
-
}>, {
|
|
1652
|
-
loading: boolean;
|
|
1653
|
-
filters: {
|
|
1654
|
-
logicOperator: string;
|
|
1655
|
-
filters: {
|
|
1656
|
-
name: string;
|
|
1657
|
-
label: string;
|
|
1658
|
-
type: "uiInput" | "uiSelect";
|
|
1659
|
-
value: string | undefined;
|
|
1660
|
-
}[];
|
|
1661
|
-
};
|
|
1662
|
-
literals: {
|
|
1663
|
-
filters: string;
|
|
1664
|
-
contains: string;
|
|
1665
|
-
is: string;
|
|
1666
|
-
and: string;
|
|
1667
|
-
or: string;
|
|
1668
|
-
deleteAll: string;
|
|
1669
|
-
filter: string;
|
|
1670
|
-
};
|
|
1671
|
-
availableCategories: CategoryConfig[];
|
|
1672
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1673
|
-
|
|
1674
1507
|
export declare const uiStats: DefineComponent<UiStatsInterface, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1675
1508
|
statClick: (T: string) => any;
|
|
1676
1509
|
}, string, PublicProps, Readonly<UiStatsInterface> & Readonly<{
|
|
@@ -1765,50 +1598,12 @@ export declare interface UiTabInterface {
|
|
|
1765
1598
|
}[];
|
|
1766
1599
|
}
|
|
1767
1600
|
|
|
1768
|
-
export declare const uiTable: DefineComponent<UiTableInterface, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
}) => any;
|
|
1773
|
-
tableAction: (T: {
|
|
1774
|
-
action: string;
|
|
1775
|
-
items: (string | number)[];
|
|
1776
|
-
}) => any;
|
|
1777
|
-
orderBy: (T: {
|
|
1778
|
-
value: string;
|
|
1779
|
-
orderDirection: "desc" | "asc";
|
|
1780
|
-
}) => any;
|
|
1781
|
-
customEmit: (T: {
|
|
1782
|
-
data: {
|
|
1783
|
-
content: string;
|
|
1784
|
-
type: string;
|
|
1785
|
-
emits: any;
|
|
1786
|
-
};
|
|
1787
|
-
}) => any;
|
|
1788
|
-
selectedItemsDeleted: () => any;
|
|
1789
|
-
selectAllItems: () => any;
|
|
1601
|
+
export declare const uiTable: DefineComponent<UiTableInterface, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1602
|
+
[x: string]: any;
|
|
1603
|
+
} & {
|
|
1604
|
+
[x: string]: any;
|
|
1790
1605
|
}, string, PublicProps, Readonly<UiTableInterface> & Readonly<{
|
|
1791
|
-
|
|
1792
|
-
modal: string;
|
|
1793
|
-
action: string;
|
|
1794
|
-
}) => any) | undefined;
|
|
1795
|
-
onTableAction?: ((T: {
|
|
1796
|
-
action: string;
|
|
1797
|
-
items: (string | number)[];
|
|
1798
|
-
}) => any) | undefined;
|
|
1799
|
-
onOrderBy?: ((T: {
|
|
1800
|
-
value: string;
|
|
1801
|
-
orderDirection: "desc" | "asc";
|
|
1802
|
-
}) => any) | undefined;
|
|
1803
|
-
onCustomEmit?: ((T: {
|
|
1804
|
-
data: {
|
|
1805
|
-
content: string;
|
|
1806
|
-
type: string;
|
|
1807
|
-
emits: any;
|
|
1808
|
-
};
|
|
1809
|
-
}) => any) | undefined;
|
|
1810
|
-
onSelectedItemsDeleted?: (() => any) | undefined;
|
|
1811
|
-
onSelectAllItems?: (() => any) | undefined;
|
|
1606
|
+
[x: `on${Capitalize<any>}`]: ((...args: any[] | unknown[]) => any) | undefined;
|
|
1812
1607
|
}>, {
|
|
1813
1608
|
loading: boolean;
|
|
1814
1609
|
resetSelected: boolean;
|
|
@@ -1843,15 +1638,31 @@ export declare interface UiTableEventsInterface {
|
|
|
1843
1638
|
modal: string;
|
|
1844
1639
|
action: string;
|
|
1845
1640
|
}): void;
|
|
1641
|
+
/** emitted when smart filters are sent */
|
|
1642
|
+
(e: "smartFiltersSent", T: {
|
|
1643
|
+
logicOperator: string;
|
|
1644
|
+
filters: any[];
|
|
1645
|
+
}): void;
|
|
1646
|
+
/** emitted when table action dropdown option is selected */
|
|
1647
|
+
(e: "tableActionSelected", T: UiDropdownItemType): void;
|
|
1648
|
+
/** emitted when page is changed */
|
|
1649
|
+
(e: "changePage", T: number): void;
|
|
1650
|
+
/** emitted when page size is changed */
|
|
1651
|
+
(e: "changePageSize", T: number | string): void;
|
|
1652
|
+
/** emitted when column visibility is changed */
|
|
1653
|
+
(e: "columnsVisibilityChanged", T: {
|
|
1654
|
+
index: number;
|
|
1655
|
+
hidden: boolean;
|
|
1656
|
+
}): void;
|
|
1846
1657
|
}
|
|
1847
1658
|
|
|
1848
1659
|
export declare interface UiTableInterface {
|
|
1849
|
-
/** select all items Modal */
|
|
1850
|
-
selectAllItemsModal
|
|
1660
|
+
/** select all items Modal - required only if actions are provided */
|
|
1661
|
+
selectAllItemsModal?: UiModalInterface;
|
|
1851
1662
|
/** select all items Modal literal */
|
|
1852
1663
|
selectAllItemsModalContent?: string;
|
|
1853
1664
|
/** if you send this prop to the table with true it will reset all checked rows */
|
|
1854
|
-
resetSelected
|
|
1665
|
+
resetSelected?: boolean;
|
|
1855
1666
|
/** header value the table is ordered */
|
|
1856
1667
|
orderedBy: string;
|
|
1857
1668
|
/** order direction */
|
|
@@ -1870,14 +1681,50 @@ export declare interface UiTableInterface {
|
|
|
1870
1681
|
/** rows */
|
|
1871
1682
|
items: TableItemType[] | [];
|
|
1872
1683
|
/** control column visibility by array index */
|
|
1873
|
-
hiddenColumns
|
|
1874
|
-
/** when row is checked, available actions shows */
|
|
1875
|
-
actions
|
|
1684
|
+
hiddenColumns?: number[];
|
|
1685
|
+
/** when row is checked, available actions shows - if provided, selectAllItemsModal should also be provided */
|
|
1686
|
+
actions?: {
|
|
1876
1687
|
/** action string literal */
|
|
1877
1688
|
name: string;
|
|
1878
1689
|
/** action id */
|
|
1879
1690
|
id: string;
|
|
1880
1691
|
}[];
|
|
1692
|
+
/** Smart filter categories for uiSmartFilterMultipleV2 */
|
|
1693
|
+
smartFilterCategories?: Array<{
|
|
1694
|
+
id: string;
|
|
1695
|
+
name: string;
|
|
1696
|
+
componentType: 'uiInput' | 'uiSelect';
|
|
1697
|
+
defaultProps: any;
|
|
1698
|
+
}>;
|
|
1699
|
+
/** Smart filter literals for uiSmartFilterMultipleV2 */
|
|
1700
|
+
filterLiterals?: {
|
|
1701
|
+
filters: string;
|
|
1702
|
+
contains: string;
|
|
1703
|
+
is: string;
|
|
1704
|
+
and: string;
|
|
1705
|
+
or: string;
|
|
1706
|
+
deleteAll: string;
|
|
1707
|
+
filter: string;
|
|
1708
|
+
};
|
|
1709
|
+
/** Dropdown items for table actions */
|
|
1710
|
+
tableActionsDropdown?: {
|
|
1711
|
+
items: UiDropdownItemType[];
|
|
1712
|
+
loading?: boolean;
|
|
1713
|
+
};
|
|
1714
|
+
/** Pagination current page */
|
|
1715
|
+
paginationCurrent?: number;
|
|
1716
|
+
/** Pagination total pages */
|
|
1717
|
+
paginationTotal?: number;
|
|
1718
|
+
/** Pagination total items */
|
|
1719
|
+
paginationTotalItems?: number;
|
|
1720
|
+
/** Page size options for dropdown */
|
|
1721
|
+
pageSizeOptions?: Array<{
|
|
1722
|
+
name: string;
|
|
1723
|
+
value: string | number;
|
|
1724
|
+
active?: boolean;
|
|
1725
|
+
}>;
|
|
1726
|
+
/** Current page size */
|
|
1727
|
+
currentPageSize?: number | string;
|
|
1881
1728
|
}
|
|
1882
1729
|
|
|
1883
1730
|
export declare const uiTabs: DefineComponent<UiTabInterface, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
@@ -2172,7 +2019,7 @@ export declare interface UiViewHeaderInterface {
|
|
|
2172
2019
|
buttonSize?: Sizes_2;
|
|
2173
2020
|
}
|
|
2174
2021
|
|
|
2175
|
-
export declare const uiWrapper:
|
|
2022
|
+
export declare const uiWrapper: __VLS_WithTemplateSlots_7<DefineComponent<UiWrapperInterface, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2176
2023
|
checkboxChanged: (checkbox: UiCheckboxType) => any;
|
|
2177
2024
|
inputChanged: (T: InputType) => any;
|
|
2178
2025
|
selectChanged: (T: SelectItemType | SelectItemType[]) => any;
|