@hotelinking/ui 14.46.1 → 14.47.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
@@ -73,6 +73,16 @@ declare type AllSizes_2 = (typeof AllSizes)[number];
73
73
 
74
74
  export declare const BiggerSizes: readonly ["bigger", "huge", "massive"];
75
75
 
76
+ /**
77
+ * Configuración completa de una categoría de filtro
78
+ */
79
+ declare interface CategoryConfig {
80
+ id: string;
81
+ name: string;
82
+ componentType: 'uiInput' | 'uiSelect';
83
+ defaultProps: FilterProps;
84
+ }
85
+
76
86
  export declare type chartOptionsType = {
77
87
  chart: {
78
88
  toolbar: {
@@ -151,6 +161,16 @@ export declare type FileInputType = {
151
161
  files: any;
152
162
  };
153
163
 
164
+ /**
165
+ * Propiedades de configuración para campos de entrada individuales
166
+ */
167
+ declare interface FilterProps {
168
+ name?: string;
169
+ value?: string;
170
+ items?: SelectItemType[];
171
+ select?: SelectItemType;
172
+ }
173
+
154
174
  export declare type InputType = {
155
175
  /** Name of the input field */
156
176
  name: string;
@@ -164,11 +184,32 @@ declare function install(app: App): void;
164
184
 
165
185
  export declare const MonoColors: readonly ["black", "gray", "white"];
166
186
 
187
+ /**
188
+ * Props del componente para configuración externa
189
+ * Permite personalizar textos y categorías desde el componente padre
190
+ */
191
+ declare interface Props {
192
+ /** Textos literales para internacionalización */
193
+ literals: {
194
+ filters: string;
195
+ contains: string;
196
+ is: string;
197
+ and: string;
198
+ or: string;
199
+ deleteAll: string;
200
+ filter: string;
201
+ };
202
+ /** Categorías disponibles para crear filtros */
203
+ availableCategories: CategoryConfig[];
204
+ }
205
+
167
206
  export declare type SelectItemType = {
168
207
  /** Unique value inside the select */
169
208
  id: string;
170
209
  /** Name of the item */
171
210
  name: string;
211
+ /** In case of smart filters the type of component should be attached to smart filter */
212
+ type?: 'uiInput' | 'uiSelect';
172
213
  };
173
214
 
174
215
  export declare const Sizes: readonly ["small", "medium", "big"];
@@ -1525,6 +1566,37 @@ export declare interface UiSmartFilterMultipleEventInterface {
1525
1566
  }[]): void;
1526
1567
  }
1527
1568
 
1569
+ export declare const uiSmartFilterMultipleV2: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1570
+ smartFiltersSent: (filters: {
1571
+ logicOperator: string;
1572
+ filters: {
1573
+ category: string;
1574
+ type: "uiInput" | "uiSelect";
1575
+ value: string | undefined;
1576
+ }[];
1577
+ }) => any;
1578
+ }, string, PublicProps, Readonly<Props> & Readonly<{
1579
+ onSmartFiltersSent?: ((filters: {
1580
+ logicOperator: string;
1581
+ filters: {
1582
+ category: string;
1583
+ type: "uiInput" | "uiSelect";
1584
+ value: string | undefined;
1585
+ }[];
1586
+ }) => any) | undefined;
1587
+ }>, {
1588
+ literals: {
1589
+ filters: string;
1590
+ contains: string;
1591
+ is: string;
1592
+ and: string;
1593
+ or: string;
1594
+ deleteAll: string;
1595
+ filter: string;
1596
+ };
1597
+ availableCategories: CategoryConfig[];
1598
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1599
+
1528
1600
  export declare const uiStats: DefineComponent<UiStatsInterface, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1529
1601
  statClick: (T: string) => any;
1530
1602
  }, string, PublicProps, Readonly<UiStatsInterface> & Readonly<{