@apia/components 4.0.16 → 4.0.18

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/index.d.ts CHANGED
@@ -1,15 +1,15 @@
1
1
  import * as React$1 from 'react';
2
- import React__default, { ReactNode, Ref, RefObject, ChangeEventHandler, MouseEvent as MouseEvent$1, KeyboardEvent, FC, FunctionComponent, ForwardedRef, ComponentType, ReactElement } from 'react';
2
+ import React__default, { ReactNode, Ref, RefObject, DetailedHTMLProps, TextareaHTMLAttributes, ChangeEventHandler, MouseEvent as MouseEvent$1, KeyboardEvent, FC, PropsWithChildren, FunctionComponent, ForwardedRef, ComponentType, ReactElement } from 'react';
3
3
  import * as _apia_util from '@apia/util';
4
4
  import { IOnFocusConfiguration, TFocusRetriever, TId as TId$1, EventEmitter, StatefulEmitter, TModify, TApiaFilter, TApiaFilterValue } from '@apia/util';
5
5
  import { BoxProps, TPalette, ThemeUIStyleObject, IconButtonProps, ButtonProps, ThemeUICSSObject, InputProps, SelectProps } from '@apia/theme';
6
6
  import { TIconName, TIconType } from '@apia/icons';
7
+ import { MenuItemProps, ControlledMenuProps } from '@szhsin/react-menu';
8
+ export { ControlledMenuProps, MenuItemProps } from '@szhsin/react-menu';
7
9
  import { Args } from 'react-cool-portal';
8
10
  import * as _apia_notifications from '@apia/notifications';
9
11
  import { TNotificationId, INotification, TDispatchedNotification, TNotificationSelector } from '@apia/notifications';
10
12
  export { INotification, TDispatchedNotification } from '@apia/notifications';
11
- import { MenuItemProps, ControlledMenuProps } from '@szhsin/react-menu';
12
- export { ControlledMenuProps, MenuItemProps } from '@szhsin/react-menu';
13
13
 
14
14
  type TModalSize = 'editGrid' | 'sm' | 'md' | 'md-fixed' | 'lg' | 'lg-fixed' | 'xl' | 'xl-fixed' | 'xxl' | 'xxxl' | 'xxxl-fixed' | 'flex' | 'cal' | 'finder' | 'fileModal';
15
15
  type TApiaButtonType = 'primary' | 'primary-sm' | 'secondary' | 'light-secondary' | 'secondary-sm' | 'danger' | 'danger-sm' | 'outline' | 'outline-sm' | 'warning' | 'warning-sm' | 'link';
@@ -44,6 +44,7 @@ type TModal = {
44
44
  * que como un modal
45
45
  */
46
46
  draggable?: boolean;
47
+ dragBounded?: boolean;
47
48
  children?: React__default.ReactNode;
48
49
  className?: string;
49
50
  id?: string;
@@ -114,66 +115,67 @@ type TModal = {
114
115
  variant?: string;
115
116
  } & Pick<IDialogHeader, 'hideCloseButton'>;
116
117
  declare const Modal: React__default.ForwardRefExoticComponent<{
117
- animationDuration?: number | undefined;
118
+ animationDuration?: number;
118
119
  /**
119
120
  * Aplica solamente para modales que tengan draggable=true.
120
121
  */
121
122
  defaultPosition?: {
122
- left?: string | undefined;
123
- right?: string | undefined;
124
- top?: string | undefined;
125
- bottom?: string | undefined;
126
- } | undefined;
123
+ left?: string;
124
+ right?: string;
125
+ top?: string;
126
+ bottom?: string;
127
+ };
127
128
  /**
128
129
  * Si esta variable está en true, el modal se comportará más como una ventana
129
130
  * que como un modal
130
131
  */
131
- draggable?: boolean | undefined;
132
+ draggable?: boolean;
133
+ dragBounded?: boolean;
132
134
  children?: React__default.ReactNode;
133
- className?: string | undefined;
134
- id?: string | undefined;
135
- initialFocusConfiguration?: IOnFocusConfiguration | undefined;
135
+ className?: string;
136
+ id?: string;
137
+ initialFocusConfiguration?: IOnFocusConfiguration;
136
138
  /**
137
139
  * Este retriever será pasado al método focus.on para realizar el foco en el
138
140
  * elemento inicial del modal.
139
141
  *
140
142
  * @see focus
141
143
  */
142
- initialFocusGetter?: ((modalInnerRef: HTMLElement) => ReturnType<TFocusRetriever>) | undefined;
144
+ initialFocusGetter?: (modalInnerRef: HTMLElement) => ReturnType<TFocusRetriever>;
143
145
  /**
144
146
  * Si se pasa un ref, el modal hará foco sobre el elemento una vez que haya
145
147
  * abierto.
146
148
  */
147
- initialFocusRef?: React__default.RefObject<unknown> | undefined;
149
+ initialFocusRef?: React__default.RefObject<unknown>;
148
150
  /**
149
151
  * Controla el estado del modal, indicando a la transición de apertura o
150
152
  * cierre que debe comenzar, dependiendo de si cambia a true o false
151
153
  * respectivamente.
152
154
  */
153
- isOpen?: boolean | undefined;
154
- maxWidth?: string | number | undefined;
155
+ isOpen?: boolean;
156
+ maxWidth?: number | string;
155
157
  /**
156
158
  * Permite pasar un componente React que se mostrará a la derecha del título,
157
159
  * con el fin de incorporar botones en el header del modal.
158
160
  */
159
161
  NavBar?: React__default.ReactNode;
160
- noFocus?: boolean | undefined;
161
- noHeader?: boolean | undefined;
162
+ noFocus?: boolean;
163
+ noHeader?: boolean;
162
164
  /**
163
165
  * Permite definir un callback que será llamado solamente cuando el modal se
164
166
  * cierre por medio del click en el overlay, al presionar escape o mediante
165
167
  * el botón cerrar del header (La X).
166
168
  */
167
- onClose?: (() => void) | undefined;
169
+ onClose?: () => void;
168
170
  /**
169
171
  * Este método recibe el evento del mousedown utilizado para controllar el dragstart. Si el usuario devuelve false, el drag no será realizado.
170
172
  */
171
- onDragStart?: ((ev: MouseEvent) => boolean) | undefined;
173
+ onDragStart?: (ev: MouseEvent) => boolean;
172
174
  /**
173
175
  * Permite definir un callback que será llamado siempre que el modal se
174
176
  * cierre, una vez que la animación haya terminado.
175
177
  */
176
- onExited?: (() => unknown) | undefined;
178
+ onExited?: () => unknown;
177
179
  /**
178
180
  * Al pasar un Portal, el modal se abrirá dentro de éste y no directamente en
179
181
  * la posición actual dentro del árbol de componentes. Normalmente, este
@@ -184,22 +186,22 @@ declare const Modal: React__default.ForwardRefExoticComponent<{
184
186
  */
185
187
  Portal?: React__default.FC<{
186
188
  children: React__default.ReactNode;
187
- }> | undefined;
189
+ }>;
188
190
  /**
189
191
  * Si es true, el modal será cerrado al presionar escape.
190
192
  */
191
- shouldCloseOnEsc?: boolean | undefined;
193
+ shouldCloseOnEsc?: boolean;
192
194
  /**
193
195
  * Si es true, el modal será cerrado al hacer clic en el overlay.
194
196
  */
195
- shouldCloseOnOverlayClick?: boolean | undefined;
196
- size?: TModalSize | undefined;
197
- stretch?: boolean | undefined;
198
- title?: string | undefined;
199
- variant?: string | undefined;
197
+ shouldCloseOnOverlayClick?: boolean;
198
+ size?: TModalSize;
199
+ stretch?: boolean;
200
+ title?: string;
201
+ variant?: string;
200
202
  } & Pick<IDialogHeader, "hideCloseButton"> & React__default.RefAttributes<HTMLDivElement>>;
201
203
 
202
- type TOpenModal = Pick<TModal, 'NavBar' | 'Portal' | 'children' | 'className' | 'hideCloseButton' | 'initialFocusGetter' | 'initialFocusConfiguration' | 'maxWidth' | 'noHeader' | 'onExited' | 'shouldCloseOnEsc' | 'shouldCloseOnOverlayClick' | 'size' | 'stretch' | 'title' | 'variant' | 'draggable' | 'onClose' | 'onDragStart' | 'defaultPosition'> & {
204
+ type TOpenModal = Pick<TModal, 'NavBar' | 'Portal' | 'children' | 'className' | 'hideCloseButton' | 'initialFocusGetter' | 'initialFocusConfiguration' | 'maxWidth' | 'noHeader' | 'onExited' | 'shouldCloseOnEsc' | 'shouldCloseOnOverlayClick' | 'size' | 'stretch' | 'title' | 'variant' | 'draggable' | 'onClose' | 'onDragStart' | 'defaultPosition' | 'dragBounded'> & {
203
205
  id?: string;
204
206
  children?: React__default.ReactNode;
205
207
  confirmProps?: Omit<IConfirm, 'onConfirmOk' | 'onConfirmCancel' | 'children'>;
@@ -229,16 +231,49 @@ type TOpenModal = Pick<TModal, 'NavBar' | 'Portal' | 'children' | 'className' |
229
231
  };
230
232
 
231
233
  declare class ApiaUtilModalHandler {
232
- private id;
233
234
  close: () => void;
234
- constructor(id: string, close: () => void);
235
+ constructor(close: () => void);
235
236
  }
236
237
  declare class ApiaUtilModals {
237
238
  #private;
239
+ private overlays;
238
240
  constructor();
239
241
  close(id: string): void;
240
242
  open(props: TOpenModal): ApiaUtilModalHandler;
241
- Component: () => React$1.JSX.Element;
243
+ /**
244
+ * The overlay method allows to append an element to the array of overlays, which will be rendered after any existent modal.
245
+ *
246
+ * This way, it's possible to add a completelly custom modal with no style, nor any custom behavior added by this controller.
247
+ *
248
+ * @example
249
+ *
250
+ * const portal = createPortal(
251
+ <iframe
252
+ style={{
253
+ position: 'fixed',
254
+ inset: 0,
255
+ }}
256
+ src={makeApiaUrl({
257
+ action: 'editGrid',
258
+ frmName: grid.getProperty('gridForm'),
259
+ frmParent: grid.getForm().definition.frmParent,
260
+ portalFormMode: false,
261
+ editionMode: true,
262
+ react: true,
263
+ index,
264
+ preventAsXmlParameter: true,
265
+ ajaxUrl: 'apia.execution.FormAction.run',
266
+ })}
267
+ />,
268
+ document.getElementById('AppModals') as HTMLElement,
269
+ );
270
+
271
+ ApiaUtil.instance.modals.overlay(portal);
272
+ */
273
+ overlay(o: ReactNode): () => void;
274
+ Component: (() => React$1.JSX.Element) & {
275
+ displayName: string;
276
+ };
242
277
  }
243
278
 
244
279
  declare class ApiaUtilNotifications {
@@ -250,7 +285,7 @@ declare class ApiaUtilNotifications {
250
285
  }
251
286
 
252
287
  declare const TabsList: (({ arrowsBehavior }: {
253
- arrowsBehavior?: "open" | "focus" | undefined;
288
+ arrowsBehavior?: "open" | "focus";
254
289
  }) => React__default.JSX.Element | null) & {
255
290
  displayName: string;
256
291
  };
@@ -264,7 +299,7 @@ declare class Tab<TabType extends TTab = TTab> {
264
299
  * El parámetro force evita que se muestre cartel de confirmación al usuario cuando puede haber pérdida de datos.
265
300
  */
266
301
  close(force?: boolean): Promise<boolean>;
267
- open(): void;
302
+ open(closeOthers?: boolean): void;
268
303
  toggle(isShown?: boolean): void;
269
304
  }
270
305
  declare class TabsController<TabType extends TTab = TTab> {
@@ -393,13 +428,14 @@ type TTabsListState<TabType extends TTab> = {
393
428
 
394
429
  declare const DefaultTabsLabelRenderer: TTabLabelRenderer;
395
430
 
396
- declare const TabsContent: ((props: Omit<BoxProps, 'children'>) => React$1.JSX.Element | null) & {
431
+ declare const TabsContent: ((props: Omit<BoxProps, "children">) => React$1.JSX.Element | null) & {
397
432
  displayName: string;
398
433
  };
399
434
 
400
435
  declare function useTabsContext(): TabsController<TTab> | null;
401
436
 
402
- declare const Tabs: ({ id, getController, initialTabs, orientation, initialState, ...props }: TabsControllerProps<TTab> & Omit<BoxProps, 'id' | 'as' | 'role'>, ref: React__default.ForwardedRef<HTMLDivElement>) => React__default.JSX.Element | null;
437
+ declare const NonForwardedTabs: ({ id, getController, initialTabs, orientation, initialState, ...props }: TabsControllerProps<TTab> & Omit<BoxProps, "id" | "as" | "role">, ref: React__default.ForwardedRef<HTMLDivElement>) => React__default.JSX.Element | null;
438
+ declare const Tabs: typeof NonForwardedTabs;
403
439
 
404
440
  declare class ApiaUtilTabsController {
405
441
  get currentTab(): Tab<TTab>;
@@ -612,9 +648,9 @@ declare class AutomaticTooltip {
612
648
  #private;
613
649
  private handler;
614
650
  ref: (el: HTMLElement | null) => void;
615
- constructor(tooltip: (Partial<TTooltip> & {
616
- timeout?: number | undefined;
617
- }) | null | undefined, handler: ApiaUtilTooltips);
651
+ constructor(tooltip: ((Partial<TTooltip> & {
652
+ timeout?: number;
653
+ }) | null) | undefined, handler: ApiaUtilTooltips);
618
654
  update: (tooltip: Partial<TTooltip>) => void;
619
655
  }
620
656
 
@@ -781,6 +817,7 @@ type AutocompleteProps = {
781
817
  * Por defecto es 100ms.
782
818
  */
783
819
  searchDebounce?: number;
820
+ readOnly?: boolean;
784
821
  } & AutocompleteBoxProps & Partial<Pick<AutocompleteState, 'disabled' | 'value'>>;
785
822
  type AutocompleteBoxProps = Partial<{
786
823
  className: string;
@@ -789,6 +826,7 @@ type AutocompleteBoxProps = Partial<{
789
826
  }>;
790
827
  type AutocompleteState = {
791
828
  disabled: boolean;
829
+ readOnly: boolean;
792
830
  focusedValue?: null | string;
793
831
  loading: boolean;
794
832
  showValue: string;
@@ -853,6 +891,12 @@ type AutocompleteCmpProps = {
853
891
  };
854
892
  declare const Autocomplete: (props: AutocompleteCmpProps) => React$1.JSX.Element | null;
855
893
 
894
+ declare const AutogrowTextarea: ((props: DetailedHTMLProps<TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement> & {
895
+ error?: boolean;
896
+ }) => React$1.JSX.Element) & {
897
+ displayName: string;
898
+ };
899
+
856
900
  interface IBaseButton {
857
901
  text?: string;
858
902
  children?: string;
@@ -943,7 +987,7 @@ declare function useOtherTagButton(props?: Partial<{
943
987
 
944
988
  declare const Captcha: ({ name, imageUrl, onChange, value, className, }: {
945
989
  name: string;
946
- className?: string | undefined;
990
+ className?: string;
947
991
  imageUrl: string;
948
992
  onChange: React.ChangeEventHandler<HTMLInputElement>;
949
993
  value: string;
@@ -1084,12 +1128,12 @@ type TFieldLabel = {
1084
1128
  requiredMarkPosition?: 'before' | 'after';
1085
1129
  } & BoxProps;
1086
1130
  declare const FieldLabel: React$1.ForwardRefExoticComponent<{
1087
- avoidSemicolon?: boolean | undefined;
1131
+ avoidSemicolon?: boolean;
1088
1132
  /**
1089
1133
  * Permite mostrar un mensaje de error debajo del campo
1090
1134
  */
1091
- error?: string | undefined;
1092
- hideRequiredMark?: boolean | undefined;
1135
+ error?: string;
1136
+ hideRequiredMark?: boolean;
1093
1137
  label: string;
1094
1138
  /**
1095
1139
  * La propiedad required se utiliza para mostrar el * de requerido.
@@ -1097,8 +1141,8 @@ declare const FieldLabel: React$1.ForwardRefExoticComponent<{
1097
1141
  * @see requiredMarkPosition
1098
1142
  * @see hideRequiredMark
1099
1143
  */
1100
- required?: boolean | undefined;
1101
- requiredMarkPosition?: "after" | "before" | undefined;
1144
+ required?: boolean;
1145
+ requiredMarkPosition?: "before" | "after";
1102
1146
  } & BoxProps & React$1.RefAttributes<HTMLDivElement>>;
1103
1147
 
1104
1148
  interface IAccordionItemButton {
@@ -1182,7 +1226,7 @@ declare class AccordionHandler {
1182
1226
  useItemId: () => TId$1;
1183
1227
  useItemStateSelector: <T>(selector: (props: TItemState$1) => T, comparator?: TSelectionComparator<T>) => T;
1184
1228
  useItemStateUpdate: (cb: TItemStateListener) => void;
1185
- usePropsSelector: <T_1>(selector: (props: IAccordionProps) => T_1, comparator?: TSelectionComparator<T_1>) => T_1;
1229
+ usePropsSelector: <T>(selector: (props: IAccordionProps) => T, comparator?: TSelectionComparator<T>) => T;
1186
1230
  usePropsUpdate: (cb: TPropsListener) => void;
1187
1231
  };
1188
1232
  }
@@ -1231,12 +1275,119 @@ interface ILabelBox {
1231
1275
  type TLabelBox = ILabelBox & BoxProps;
1232
1276
  declare const LabelBox: ({ className, label, tooltip, closeTooltip, onClose, ...props }: TLabelBox) => React__default.JSX.Element;
1233
1277
 
1278
+ type TMessageType = 'user' | 'system' | 'warning' | 'error' | 'information' | 'response' | 'multipleChoice' | 'customMessage';
1279
+ interface IAttachment {
1280
+ name: string;
1281
+ id: string;
1282
+ base64: string;
1283
+ description?: string;
1284
+ }
1285
+ type TChatControllerState = {
1286
+ isLoading: boolean;
1287
+ canRecord: boolean;
1288
+ canAttach: boolean;
1289
+ canAddUserMessage: boolean;
1290
+ canAddSystemMessage: boolean;
1291
+ maxAttachmentsSize: number;
1292
+ messages: ChatMessage[];
1293
+ currentMessage: ChatMessage;
1294
+ };
1295
+ interface MessageCallbackProps {
1296
+ message: ChatMessage;
1297
+ }
1298
+ type MessageSubmitCallback = (props: MessageCallbackProps) => unknown;
1299
+
1300
+ declare class ChatMessage {
1301
+ message: ReactNode;
1302
+ messageType: TMessageType;
1303
+ attachments: IAttachment[];
1304
+ reference: ReactNode;
1305
+ id: number;
1306
+ constructor(message?: ReactNode, messageType?: TMessageType, attachments?: IAttachment[], reference?: ReactNode);
1307
+ clone: () => ChatMessage;
1308
+ removeAttachment(attachment: IAttachment): void;
1309
+ addAttachmentDescription(attachment: IAttachment, description: string): void;
1310
+ }
1311
+
1312
+ interface AutoscrollContainerProps {
1313
+ /** How close (in px) to the bottom you have to be *when scrolling down*
1314
+ * for auto-scroll to kick back in. */
1315
+ threshold?: number;
1316
+ className?: string;
1317
+ }
1318
+ declare const AutoscrollContainer: React__default.FC<PropsWithChildren<AutoscrollContainerProps>>;
1319
+
1320
+ declare class ChatController<T extends Record<string, unknown> = Record<string, unknown>> {
1321
+ private onMessageSubmit;
1322
+ private additionalOptions?;
1323
+ currentIndex: number;
1324
+ state: TChatControllerState & T;
1325
+ private internalAudioRecorder;
1326
+ private internalCameraRecorder;
1327
+ private maxId;
1328
+ audioRecorder: {
1329
+ cancelOnStop: boolean;
1330
+ start: () => void;
1331
+ stop: () => Promise<void>;
1332
+ record: number;
1333
+ state: _apia_util.AudioRecorderState;
1334
+ };
1335
+ constructor(props: Partial<TChatControllerState & T>, onMessageSubmit: MessageSubmitCallback, additionalOptions?: TMenuItem[] | undefined);
1336
+ removeMessage(idx: number): void;
1337
+ addMessage(message: ChatMessage): void;
1338
+ clearHistory(): void;
1339
+ clearMessage(): void;
1340
+ removeAttachment(attachment: IAttachment): void;
1341
+ private handleSubmit;
1342
+ private isForHistory;
1343
+ private canGoNext;
1344
+ private canGoPrev;
1345
+ nextMessage(): void;
1346
+ prevMessage(): void;
1347
+ protected getAdditionalProps(): Partial<MessageCallbackProps>;
1348
+ History: (() => React$1.JSX.Element) & {
1349
+ displayName: string;
1350
+ };
1351
+ Attachments: (() => React$1.JSX.Element) & {
1352
+ displayName: string;
1353
+ };
1354
+ TextArea: (() => React$1.JSX.Element) & {
1355
+ displayName: string;
1356
+ };
1357
+ Renderer: () => React$1.JSX.Element;
1358
+ }
1359
+
1360
+ declare class FloatingChatController extends ChatController<{
1361
+ isWindowOpen: boolean;
1362
+ }> {
1363
+ private modalTitle;
1364
+ constructor(props: {
1365
+ props: Partial<TChatControllerState & {
1366
+ isWindowOpen: boolean;
1367
+ }>;
1368
+ onMessageSubmit: MessageSubmitCallback;
1369
+ modalTitle?: string;
1370
+ additionalOptions?: TMenuItem[];
1371
+ });
1372
+ getModalTitle(): string | undefined;
1373
+ setModalTitle(title: string): void;
1374
+ open(): void;
1375
+ Window: (() => React$1.JSX.Element | null) & {
1376
+ displayName: string;
1377
+ };
1378
+ }
1379
+
1380
+ declare function getBase64FromFile(f: File): Promise<string>;
1381
+ declare function getBase64FromBlob(b: Blob): Promise<string>;
1382
+ declare function getFileExtension(name: string): string | undefined;
1383
+ declare function isImage(base64: string): boolean;
1384
+
1234
1385
  declare const ContainerWithHeader: ({ title, children, footerChildren, onClose, additionalButtons, }: {
1235
1386
  title: string;
1236
1387
  children: ReactNode;
1237
1388
  footerChildren?: ReactNode;
1238
1389
  additionalButtons?: ReactNode;
1239
- onClose?: (() => void) | undefined;
1390
+ onClose?: () => void;
1240
1391
  }) => React$1.JSX.Element;
1241
1392
 
1242
1393
  interface ICollapsiblePanel {
@@ -1377,8 +1528,8 @@ interface IProgressBar {
1377
1528
  declare const ProgressBar: FC<IProgressBar>;
1378
1529
 
1379
1530
  declare const LoaderSpinner: ((props: {
1380
- className?: string | undefined;
1381
- }) => React__default.JSX.Element) & {
1531
+ className?: string;
1532
+ }) => React$1.JSX.Element) & {
1382
1533
  displayName: string;
1383
1534
  };
1384
1535
 
@@ -1492,7 +1643,7 @@ declare function useModal(configuration?: TUseModalConfiguration): {
1492
1643
  show: () => void;
1493
1644
  };
1494
1645
 
1495
- declare const Confirm: ({ children, additionalButtons, additionalButtonsOnRight, cancelButtonText: cancelText, className, confirmButtonText: confirmText, confirmButtonVariant, contentRef, disabled, hideCancelButton, hideConfirmButton, isLoading, onCancel, onConfirm, variant, }: Omit<IConfirm, 'title'>) => React$1.JSX.Element;
1646
+ declare const Confirm: ({ children, additionalButtons, additionalButtonsOnRight, cancelButtonText: cancelText, className, confirmButtonText: confirmText, confirmButtonVariant, contentRef, disabled, hideCancelButton, hideConfirmButton, isLoading, onCancel, onConfirm, variant, }: Omit<IConfirm, "title">) => React$1.JSX.Element;
1496
1647
 
1497
1648
  interface IDialogButtonBar {
1498
1649
  children: React$1.ReactNode;
@@ -1523,13 +1674,13 @@ declare const AutoEllipsis: ({ children, findParent, overrideStyles, }: {
1523
1674
  * para dar control sobre cuál es el elemento al que se le clonarán los
1524
1675
  * estilos.
1525
1676
  */
1526
- findParent?: ((currentElement: HTMLElement) => HTMLElement) | undefined;
1677
+ findParent?: (currentElement: HTMLElement) => HTMLElement;
1527
1678
  /**
1528
1679
  * Si se pasa overrideStyles, será invocado con el nodo actual de
1529
1680
  * AutoEllipsis para tomar decisiones acerca de cuáles estilos serán
1530
1681
  * aplicados.
1531
1682
  */
1532
- overrideStyles?: ((currentElement: HTMLElement) => Partial<CSSStyleDeclaration>) | undefined;
1683
+ overrideStyles?: (currentElement: HTMLElement) => Partial<CSSStyleDeclaration>;
1533
1684
  }) => React$1.JSX.Element;
1534
1685
 
1535
1686
  interface IMakeResponsiveComponent<P extends Record<string, unknown>> {
@@ -1563,7 +1714,7 @@ interface IResponsiveComponent<P> extends FC<P> {
1563
1714
  * pantalla sino del espacio donde se encuentra.
1564
1715
  */
1565
1716
  declare const makeResponsiveComponent: <P extends Record<string, unknown>>({ breakPoints, Component, defaultBreakpoint, }: IMakeResponsiveComponent<P>) => IResponsiveComponent<P & {
1566
- breakPoints?: number[] | undefined;
1717
+ breakPoints?: number[];
1567
1718
  }>;
1568
1719
 
1569
1720
  /**
@@ -1700,10 +1851,11 @@ type TIconRenderer<P = Record<string, unknown>> = FunctionComponent<TIcon<P>>;
1700
1851
 
1701
1852
  declare const DefaultIconRenderer: React$1.NamedExoticComponent<TIcon<Record<string, unknown>>>;
1702
1853
 
1703
- declare const IconsList: {
1854
+ declare const IconsListNonForwarded: {
1704
1855
  <P extends Record<string, unknown>>(props: TIconsList<P>, ref: ForwardedRef<HTMLDivElement>): React$1.JSX.Element;
1705
1856
  displayName: string;
1706
1857
  };
1858
+ declare const IconsList: typeof IconsListNonForwarded;
1707
1859
 
1708
1860
  /**
1709
1861
  * Permite importar un componente en forma dinámica con ruta relativa a
@@ -1779,7 +1931,7 @@ declare const Toolbar: ({ children, getController, }: {
1779
1931
  * El controlador permite gestionar el estado de los distintos elementos de
1780
1932
  * la toolbar
1781
1933
  */
1782
- getController?: ((newController: ToolbarController) => unknown) | undefined;
1934
+ getController?: (newController: ToolbarController) => unknown;
1783
1935
  }) => React$1.JSX.Element;
1784
1936
 
1785
1937
  type TSortableListItem = {
@@ -1791,18 +1943,41 @@ type TSortableListItem = {
1791
1943
  declare const SortableListItem: React$1.MemoExoticComponent<({ boxProps, id, children }: TSortableListItem) => React$1.JSX.Element>;
1792
1944
 
1793
1945
  declare const UnstyledSortableList: ({ boxProps, children, onSortChange, }: {
1794
- boxProps?: BoxProps | undefined;
1946
+ boxProps?: BoxProps;
1795
1947
  children: ReactNode;
1796
- onSortChange?: ((items: ReactElement<TSortableListItem>[]) => unknown) | undefined;
1948
+ onSortChange?: (items: ReactElement<TSortableListItem>[]) => unknown;
1797
1949
  }) => React$1.JSX.Element;
1798
1950
  declare const SortableList: ((props: {
1799
- boxProps?: BoxProps | undefined;
1951
+ boxProps?: BoxProps;
1800
1952
  children: ReactNode;
1801
- onSortChange?: ((items: ReactElement<TSortableListItem>[]) => unknown) | undefined;
1953
+ onSortChange?: (items: ReactElement<TSortableListItem>[]) => unknown;
1802
1954
  }) => React$1.JSX.Element) & {
1803
1955
  displayName: string;
1804
1956
  };
1805
1957
 
1958
+ declare const FileCard: React$1.ForwardRefExoticComponent<{
1959
+ name: string;
1960
+ iconsSize?: "sm" | "md" | "lg" | "xl";
1961
+ additionalButtons?: TIconButton[];
1962
+ className?: string;
1963
+ sx?: ThemeUIStyleObject;
1964
+ width?: string;
1965
+ handleClose?: (f: string) => void;
1966
+ onDoubleClick?: () => void;
1967
+ onClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
1968
+ } & React$1.RefAttributes<unknown>>;
1969
+
1970
+ declare const Dropzone: ({ sx, className, messageError, progress, defaultLabel, draggingLabel, onClick, onChange, }: {
1971
+ sx?: ThemeUIStyleObject;
1972
+ className?: string;
1973
+ messageError?: string;
1974
+ progress?: number;
1975
+ defaultLabel?: string;
1976
+ draggingLabel?: string;
1977
+ onClick?: (e: MouseEvent$1) => void;
1978
+ onChange?: (e: File[]) => any;
1979
+ }) => React__default.JSX.Element;
1980
+
1806
1981
  declare class TableParameter extends Parameter<ITableParameterProps> {
1807
1982
  constructor(params: ITableParameterProps);
1808
1983
  }
@@ -1842,10 +2017,10 @@ declare class FilterDTO<T extends IFilterDTOState = IFilterDTOState> {
1842
2017
  Component: (({ renderers, multipleInputBoxProps, }: {
1843
2018
  renderers?: {
1844
2019
  input?: FC<InputProps & {
1845
- label?: string | undefined;
1846
- }> | undefined;
1847
- } | undefined;
1848
- multipleInputBoxProps?: BoxProps | undefined;
2020
+ label?: string;
2021
+ }>;
2022
+ };
2023
+ multipleInputBoxProps?: BoxProps;
1849
2024
  }) => React$1.JSX.Element) & {
1850
2025
  displayName: string;
1851
2026
  };
@@ -1918,7 +2093,6 @@ interface IFilterCondition {
1918
2093
  op: TFilterOp;
1919
2094
  }
1920
2095
  interface IParameter {
1921
- component?: string;
1922
2096
  description: string;
1923
2097
  name: string;
1924
2098
  possibleValues?: ParameterPossibleValue | ParameterPossibleValue[];
@@ -1954,7 +2128,10 @@ declare class Parameter<T extends IParameter = IParameter> implements ParameterO
1954
2128
  state: T & {
1955
2129
  validationError?: string;
1956
2130
  };
1957
- constructor(params: T);
2131
+ component?: string;
2132
+ constructor(params: T & {
2133
+ component?: string;
2134
+ });
1958
2135
  clear(): void;
1959
2136
  getValues(): string[];
1960
2137
  private removeEmptyValues;
@@ -1965,21 +2142,22 @@ declare class Parameter<T extends IParameter = IParameter> implements ParameterO
1965
2142
  asPayloadElement(): string[] | null;
1966
2143
  includes(value: string): boolean;
1967
2144
  validate(): boolean;
2145
+ setComponent(component?: string): void;
1968
2146
  }
1969
2147
 
1970
2148
  declare const ParameterRender: (({ index, omitLabel, parameter, }: {
1971
2149
  index: number;
1972
- omitLabel?: boolean | undefined;
2150
+ omitLabel?: boolean;
1973
2151
  parameter: Parameter;
1974
- }) => string | React$1.JSX.Element | null) & {
2152
+ }) => React$1.JSX.Element | null) & {
1975
2153
  displayName: string;
1976
2154
  };
1977
2155
 
1978
2156
  type ParametersMap = Record<string, ParameterObject>;
1979
2157
  declare const Parameters: (({ label, ownerName, parameters, }: {
1980
2158
  label?: ReactNode;
1981
- ownerName?: string | undefined;
1982
- parameters?: ParametersMap | undefined;
2159
+ ownerName?: string;
2160
+ parameters?: ParametersMap;
1983
2161
  }) => React$1.JSX.Element | undefined) & {
1984
2162
  displayName: string;
1985
2163
  };
@@ -2186,5 +2364,5 @@ declare class Templater {
2186
2364
  parseString(content: string, options?: IAlterDefaultOptions): string | JSX.Element | JSX.Element[];
2187
2365
  }
2188
2366
 
2189
- export { Accordion, AccordionContext, AccordionItem, AccordionItemButton, AccordionItemContent, AccordionItemContext, AlertModal, ApiaFilter, ApiaUtil, ApiaUtilModalHandler, ApiaUtilTooltip, AutoEllipsis, Autocomplete, type AutocompleteCmpProps, AutocompleteController, type AutocompleteOption, type AutocompleteProps, BaseButton, CalendarModal, Captcha, Checkbox, CollapsiblePanel, Confirm, ConfirmModal, ContainerWithHeader, DateInput, DefaultAccordionItemButton, DefaultIconRenderer, DefaultTabsLabelRenderer, DialogButtonBar, FieldErrorMessage, FieldLabel, FilterConditionDTO, FilterDTO, FiltersStore, type IAccordionItemButton, type IAccordionItemProps, type IAccordionProps, type IAlert, type IApiaFilter, type ICalendarModal, type IConfirm, type IDialogButtonBar, type IDialogHeader, type IField, type IFieldErrorMessage, type IFilterCondition, type IFilterDTOState, type IFilterValue, type IIconInput, type IOverlay, type IParameter, type IParametersGroup, type IRequiredMark, type IResponsiveComponent, type ISimpleButton, type ITableParameterProps, IconButton, IconInput, IconsList, LabelBox, LinearLoader, ListSkeletonLoader, Listbox, ListboxItem, LoaderSpinner, Modal, NumberInput, Overlay, Parameter, type ParameterObject, type ParameterPossibleValue, ParameterRender, type ParameterRenderer, type ParameterRendererProps, type ParameterType, Parameters, type ParametersDefinition, ParametersGroup, type ParametersGroupRenderer, ParametersStore, ParametersTable, type Payload, ProgressBar, RequiredMark, ScreenLocker, SimpleButton, SortableList, SortableListItem, type TAccordionHandler, type TAccordionItemButton, type TApiaButtonType, type TApiaIconButton, type TCheckbox, type TCssProps, type TDateProps, type TFieldLabel, type TFilterOp, type TFilterPayload, type TFilterType, type TFilterValue, type TFilterValueType, type TGetTabsController, type TIcon, type TIconButton, type TIconRenderer, type TIconSize, type TIconsList, type TListbox, type TMenuItem, type TModal, type TModalSize, type TNumberInput, type TNumberInputChangeEvent, type TOnClickNode, type TOnConfirmSelection, type TOnSelectionChange, type TOpenModal, type TParameterType, type TSubmenu, type TTab, type TTabLabelRenderer as TTabRenderer, type TToolbarIconButton as TToolDefinition, type TTooltip, type TUseModalConfiguration, type TVisualizationType, Tab, Tabs, TabsContent, TabsController, TabsList, Templater, Toolbar, ToolbarController, ToolbarIconButton, ToolbarInput, ToolbarSelect, ToolbarSeparator, ToolbarTextButton, UnstyledSortableList, WaiTypeAhead, getFieldErrorStyles, getFieldTouchedStyles, importComponent, isParametersGroup, makeResponsiveComponent, parseNumberInputValueToNumber, parseNumberValueToNumberInput, useAccordionContext, useModal, useModalContext, useOtherTagButton, useTabsContext };
2367
+ export { Accordion, AccordionContext, AccordionItem, AccordionItemButton, AccordionItemContent, AccordionItemContext, AlertModal, ApiaFilter, ApiaUtil, ApiaUtilModalHandler, ApiaUtilTooltip, AutoEllipsis, Autocomplete, type AutocompleteCmpProps, AutocompleteController, type AutocompleteOption, type AutocompleteProps, AutogrowTextarea, AutoscrollContainer, BaseButton, CalendarModal, Captcha, ChatController, ChatMessage, Checkbox, CollapsiblePanel, Confirm, ConfirmModal, ContainerWithHeader, DateInput, DefaultAccordionItemButton, DefaultIconRenderer, DefaultTabsLabelRenderer, DialogButtonBar, Dropzone, FieldErrorMessage, FieldLabel, FileCard, FilterConditionDTO, FilterDTO, FiltersStore, FloatingChatController, type IAccordionItemButton, type IAccordionItemProps, type IAccordionProps, type IAlert, type IApiaFilter, type IAttachment, type ICalendarModal, type IConfirm, type IDialogButtonBar, type IDialogHeader, type IField, type IFieldErrorMessage, type IFilterCondition, type IFilterDTOState, type IFilterValue, type IIconInput, type IOverlay, type IParameter, type IParametersGroup, type IRequiredMark, type IResponsiveComponent, type ISimpleButton, type ITableParameterProps, IconButton, IconInput, IconsList, LabelBox, LinearLoader, ListSkeletonLoader, Listbox, ListboxItem, LoaderSpinner, type MessageCallbackProps, type MessageSubmitCallback, Modal, NumberInput, Overlay, Parameter, type ParameterObject, type ParameterPossibleValue, ParameterRender, type ParameterRenderer, type ParameterRendererProps, type ParameterType, Parameters, type ParametersDefinition, ParametersGroup, type ParametersGroupRenderer, ParametersStore, ParametersTable, type Payload, ProgressBar, RequiredMark, ScreenLocker, SimpleButton, SortableList, SortableListItem, type TAccordionHandler, type TAccordionItemButton, type TApiaButtonType, type TApiaIconButton, type TChatControllerState, type TCheckbox, type TCssProps, type TDateProps, type TFieldLabel, type TFilterOp, type TFilterPayload, type TFilterType, type TFilterValue, type TFilterValueType, type TGetTabsController, type TIcon, type TIconButton, type TIconRenderer, type TIconSize, type TIconsList, type TListbox, type TMenuItem, type TMessageType, type TModal, type TModalSize, type TNumberInput, type TNumberInputChangeEvent, type TOnClickNode, type TOnConfirmSelection, type TOnSelectionChange, type TOpenModal, type TParameterType, type TSubmenu, type TTab, type TTabLabelRenderer as TTabRenderer, type TToolbarIconButton as TToolDefinition, type TTooltip, type TUseModalConfiguration, type TVisualizationType, Tab, Tabs, TabsContent, TabsController, TabsList, Templater, Toolbar, ToolbarController, ToolbarIconButton, ToolbarInput, ToolbarSelect, ToolbarSeparator, ToolbarTextButton, UnstyledSortableList, WaiTypeAhead, getBase64FromBlob, getBase64FromFile, getFieldErrorStyles, getFieldTouchedStyles, getFileExtension, importComponent, isImage, isParametersGroup, makeResponsiveComponent, parseNumberInputValueToNumber, parseNumberValueToNumberInput, useAccordionContext, useModal, useModalContext, useOtherTagButton, useTabsContext };
2190
2368
  //# sourceMappingURL=index.d.ts.map