@apia/components 4.0.30 → 4.0.32
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 +29 -6
- package/dist/index.js +214 -146
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -816,14 +816,14 @@ type AutocompleteProps = {
|
|
|
816
816
|
* Si este flag es true, la búsqueda se realiza con .toLowerCase() en el valor y en la cadena de búsqueda.
|
|
817
817
|
*/
|
|
818
818
|
caseInsensitive?: boolean;
|
|
819
|
+
icon?: TIconName;
|
|
819
820
|
onChange?: (value: string, controller: AutocompleteController) => void | Promise<boolean>;
|
|
820
821
|
/**
|
|
821
|
-
* Si se pasa una función de búsqueda, cuando el usuario busque se llamará a esta función para determinar qué opciones deberán mostrarse.
|
|
822
|
+
* Si se pasa una función de búsqueda, cuando el usuario busque se llamará a esta función para determinar qué opciones deberán mostrarse.
|
|
822
823
|
*
|
|
823
824
|
* La función de búsqueda será llamada mediante un debounce con tiempo = state.searchDebounce (ms).
|
|
824
825
|
*
|
|
825
826
|
* Si no se pasa función de búsqueda, la comparación se realizará contra this.state.options, siguiendo el algoritmo descrito en AutocompleteOption.
|
|
826
|
-
*
|
|
827
827
|
*/
|
|
828
828
|
onSearch?: (str: string, controller: AutocompleteController) => Promise<AutocompleteOption[]>;
|
|
829
829
|
options: AutocompleteOption[];
|
|
@@ -1056,6 +1056,7 @@ declare const IconInput: ({ additionalButtons, additionalButtonsPosition, button
|
|
|
1056
1056
|
|
|
1057
1057
|
type TDateProps = TModify<InputProps, {
|
|
1058
1058
|
allowPickBeforeToday?: boolean;
|
|
1059
|
+
avoidErrorMessage?: boolean;
|
|
1059
1060
|
CalModalRenderer?: (props: ICalModal & React__default.RefAttributes<HTMLDivElement>) => React__default.ReactElement | null;
|
|
1060
1061
|
deleteFiltersTimestamp?: number;
|
|
1061
1062
|
error?: string | null;
|
|
@@ -1572,6 +1573,10 @@ declare const ListSkeletonLoader: ({ items }: {
|
|
|
1572
1573
|
items?: number | undefined;
|
|
1573
1574
|
}) => React$1.JSX.Element;
|
|
1574
1575
|
|
|
1576
|
+
declare const LinearSpinnerLock: ({ isLocked }: {
|
|
1577
|
+
isLocked: boolean;
|
|
1578
|
+
}) => React$1.JSX.Element | null;
|
|
1579
|
+
|
|
1575
1580
|
declare const DeadSessionModal: ({ onClick }: {
|
|
1576
1581
|
onClick: () => unknown;
|
|
1577
1582
|
}) => React__default.JSX.Element;
|
|
@@ -1822,6 +1827,7 @@ type TIcon<P = Record<string, unknown>> = {
|
|
|
1822
1827
|
* Permite modificar el color individual de un ícono.
|
|
1823
1828
|
*/
|
|
1824
1829
|
textColor?: string;
|
|
1830
|
+
title?: string;
|
|
1825
1831
|
};
|
|
1826
1832
|
type TIconsList<P = Record<string, unknown>> = {
|
|
1827
1833
|
/**
|
|
@@ -2067,6 +2073,22 @@ declare const Uploader: (({ handler }: {
|
|
|
2067
2073
|
displayName: string;
|
|
2068
2074
|
};
|
|
2069
2075
|
|
|
2076
|
+
declare const defaultLabels: Readonly<{
|
|
2077
|
+
totalRecords: string;
|
|
2078
|
+
totalRecordsReached: string;
|
|
2079
|
+
maximize: string;
|
|
2080
|
+
minimize: string;
|
|
2081
|
+
information: string;
|
|
2082
|
+
deleteFilters: string;
|
|
2083
|
+
refresh: string;
|
|
2084
|
+
firstPage: string;
|
|
2085
|
+
previousPage: string;
|
|
2086
|
+
lastPage: string;
|
|
2087
|
+
nextPage: string;
|
|
2088
|
+
pageInputInstructions: string;
|
|
2089
|
+
page: string;
|
|
2090
|
+
moreData: string;
|
|
2091
|
+
}>;
|
|
2070
2092
|
interface IPagination {
|
|
2071
2093
|
appliedFilters?: number;
|
|
2072
2094
|
/**
|
|
@@ -2104,8 +2126,9 @@ interface IPagination {
|
|
|
2104
2126
|
variant?: 'primary' | 'secondary' | 'datagrid';
|
|
2105
2127
|
onMaximize?: () => unknown;
|
|
2106
2128
|
isMaximized?: boolean;
|
|
2129
|
+
labels?: Partial<typeof defaultLabels>;
|
|
2107
2130
|
}
|
|
2108
|
-
declare const Pagination: React__default.MemoExoticComponent<({ appliedFilters, areAllFiltersApplied, className, currentPage, disabled, disableReduced, hasMore, hideInfo, hideMaximizeButton, hideRefreshButton, isLoading, isPerforming, onDeleteFilters, onPageChange, onRefresh, pageCount, recordsCount: outerRecordsCount, reachedMax, showMaximizeOnSmallBreakpoints, variant, isMaximized, onMaximize, }: IPagination) => React__default.JSX.Element>;
|
|
2131
|
+
declare const Pagination: React__default.MemoExoticComponent<({ appliedFilters, areAllFiltersApplied, className, currentPage, disabled, disableReduced, hasMore, hideInfo, hideMaximizeButton, hideRefreshButton, isLoading, isPerforming, onDeleteFilters, onPageChange, onRefresh, pageCount, recordsCount: outerRecordsCount, reachedMax, showMaximizeOnSmallBreakpoints, variant, isMaximized, onMaximize, labels, }: IPagination) => React__default.JSX.Element>;
|
|
2109
2132
|
|
|
2110
2133
|
interface IAsidePanel {
|
|
2111
2134
|
title?: string;
|
|
@@ -2217,9 +2240,9 @@ declare const FooterResponsiveButtons: ({ breakpoint, children, className, }: {
|
|
|
2217
2240
|
* se muestra en el menú de hamburguesa.
|
|
2218
2241
|
*/
|
|
2219
2242
|
declare const HamburguerMenu: ({ container, header, forceVisibility, }: {
|
|
2220
|
-
container
|
|
2243
|
+
container?: string;
|
|
2221
2244
|
forceVisibility?: boolean;
|
|
2222
|
-
header
|
|
2245
|
+
header?: string;
|
|
2223
2246
|
}) => React__default.JSX.Element;
|
|
2224
2247
|
|
|
2225
2248
|
interface IHeader {
|
|
@@ -2625,5 +2648,5 @@ declare class Templater {
|
|
|
2625
2648
|
parseString(content: string, options?: IAlterDefaultOptions): string | JSX.Element | JSX.Element[];
|
|
2626
2649
|
}
|
|
2627
2650
|
|
|
2628
|
-
export { Accordion, AccordionAside, AccordionContext, AccordionItem, AccordionItemButton, AccordionItemContent, AccordionItemContext, AlertModal, ApiaFilter, ApiaUtil, ApiaUtilModalHandler, ApiaUtilTooltip, Aside, AsideLoader, AsidePanel, AutoEllipsis, Autocomplete, type AutocompleteCmpProps, AutocompleteController, type AutocompleteOption, type AutocompleteProps, AutogrowTextarea, AutoscrollContainer, BaseButton, BodyAside, CalendarModal, Captcha, CenteredHeaderButtons, ChatController, ChatMessage, Checkbox, CollapsiblePanel, Confirm, ConfirmModal, ContainerWithHeader, DateInput, DeadSessionModal, DefaultAccordionItemButton, DefaultIconRenderer, DefaultTabsLabelRenderer, DialogButtonBar, Dropzone, FavoriteIcon, FieldErrorMessage, FieldLabel, FileCard, FilterConditionDTO, FilterDTO, FiltersStore, FloatingAside, FloatingChatController, FooterButtons, FooterResponsiveButtons, HamburguerMenu, Header, HeaderButtons, type IAccordionItemButton, type IAccordionItemProps, type IAccordionProps, type IAlert, type IApiaFilter, type IAsidePanel, type IAttachment, type ICalendarModal, type IConfirm, type IDialogButtonBar, type IDialogHeader, type IField, type IFieldErrorMessage, type IFilterCondition, type IFilterDTOState, type IFilterValue, type IIconInput, type IMenuDefinition, type IOverlay, type IPagination, type IParameter, type IParametersGroup, type IRequiredMark, type IResponsiveComponent, type ISimpleButton, type ITableParameterProps, IconButton, IconInput, IconsList, Label, LabelBox, LinearLoader, ListSkeletonLoader, Listbox, ListboxItem, LoaderSpinner, type MessageCallbackProps, type MessageSubmitCallback, Modal, NumberInput, Overlay, Pagination, 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, ShowResponsive, 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 TUploadHandlerProps, type TUploadInProgress, type TUploadedFile, type TUseModalConfiguration, type TVisualizationType, Tab, Tabs, TabsContent, TabsController, TabsList, Templater, Toolbar, ToolbarController, ToolbarIconButton, ToolbarInput, ToolbarSelect, ToolbarSeparator, ToolbarTextButton, UnstyledSortableList, UploadHandler, Uploader, WaiTypeAhead, getBase64FromBlob, getBase64FromFile, getFieldErrorStyles, getFieldTouchedStyles, getFileExtension, importComponent, isFavoriteIcon, isImage, isParametersGroup, makeResponsiveComponent, menuController, parseNumberInputValueToNumber, parseNumberValueToNumberInput, useAccordionContext, useCurrentTab, useMenu, useModal, useModalContext, useOtherTagButton, useTabsContext };
|
|
2651
|
+
export { Accordion, AccordionAside, AccordionContext, AccordionItem, AccordionItemButton, AccordionItemContent, AccordionItemContext, AlertModal, ApiaFilter, ApiaUtil, ApiaUtilModalHandler, ApiaUtilTooltip, Aside, AsideLoader, AsidePanel, AutoEllipsis, Autocomplete, type AutocompleteCmpProps, AutocompleteController, type AutocompleteOption, type AutocompleteProps, AutogrowTextarea, AutoscrollContainer, BaseButton, BodyAside, CalendarModal, Captcha, CenteredHeaderButtons, ChatController, ChatMessage, Checkbox, CollapsiblePanel, Confirm, ConfirmModal, ContainerWithHeader, DateInput, DeadSessionModal, DefaultAccordionItemButton, DefaultIconRenderer, DefaultTabsLabelRenderer, DialogButtonBar, Dropzone, FavoriteIcon, FieldErrorMessage, FieldLabel, FileCard, FilterConditionDTO, FilterDTO, FiltersStore, FloatingAside, FloatingChatController, FooterButtons, FooterResponsiveButtons, HamburguerMenu, Header, HeaderButtons, type IAccordionItemButton, type IAccordionItemProps, type IAccordionProps, type IAlert, type IApiaFilter, type IAsidePanel, type IAttachment, type ICalendarModal, type IConfirm, type IDialogButtonBar, type IDialogHeader, type IField, type IFieldErrorMessage, type IFilterCondition, type IFilterDTOState, type IFilterValue, type IIconInput, type IMenuDefinition, type IOverlay, type IPagination, type IParameter, type IParametersGroup, type IRequiredMark, type IResponsiveComponent, type ISimpleButton, type ITableParameterProps, IconButton, IconInput, IconsList, Label, LabelBox, LinearLoader, LinearSpinnerLock, ListSkeletonLoader, Listbox, ListboxItem, LoaderSpinner, type MessageCallbackProps, type MessageSubmitCallback, Modal, NumberInput, Overlay, Pagination, 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, ShowResponsive, 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 TUploadHandlerProps, type TUploadInProgress, type TUploadedFile, type TUseModalConfiguration, type TVisualizationType, Tab, Tabs, TabsContent, TabsController, TabsList, Templater, Toolbar, ToolbarController, ToolbarIconButton, ToolbarInput, ToolbarSelect, ToolbarSeparator, ToolbarTextButton, UnstyledSortableList, UploadHandler, Uploader, WaiTypeAhead, getBase64FromBlob, getBase64FromFile, getFieldErrorStyles, getFieldTouchedStyles, getFileExtension, importComponent, isFavoriteIcon, isImage, isParametersGroup, makeResponsiveComponent, menuController, parseNumberInputValueToNumber, parseNumberValueToNumberInput, useAccordionContext, useCurrentTab, useMenu, useModal, useModalContext, useOtherTagButton, useTabsContext };
|
|
2629
2652
|
//# sourceMappingURL=index.d.ts.map
|