@apia/components 4.0.37 → 4.0.41
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 +33 -5
- package/dist/index.js +7960 -7929
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
|
@@ -237,6 +237,7 @@ declare class ApiaUtilModalHandler {
|
|
|
237
237
|
declare class ApiaUtilModals {
|
|
238
238
|
#private;
|
|
239
239
|
private overlays;
|
|
240
|
+
private modals;
|
|
240
241
|
constructor();
|
|
241
242
|
close(id: string): void;
|
|
242
243
|
open(props: TOpenModal): ApiaUtilModalHandler;
|
|
@@ -284,9 +285,10 @@ declare class ApiaUtilNotifications {
|
|
|
284
285
|
Component: () => React$1.JSX.Element;
|
|
285
286
|
}
|
|
286
287
|
|
|
287
|
-
declare const TabsList: (({ arrowsBehavior, children, }: {
|
|
288
|
+
declare const TabsList: (({ arrowsBehavior, children, showContextMenu, }: {
|
|
288
289
|
arrowsBehavior?: "open" | "focus";
|
|
289
290
|
children?: Record<"beforeFixedTabs", ReactNode>;
|
|
291
|
+
showContextMenu?: boolean;
|
|
290
292
|
}) => React__default.JSX.Element | null) & {
|
|
291
293
|
displayName: string;
|
|
292
294
|
};
|
|
@@ -422,6 +424,10 @@ type TTabLabelRenderer = (props: {
|
|
|
422
424
|
tab: Tab<TTab>;
|
|
423
425
|
}) => React__default.ReactElement;
|
|
424
426
|
type TTabsListState<TabType extends TTab> = {
|
|
427
|
+
/**
|
|
428
|
+
* If enabled, the context menu will show a "Detach" options that opens the tab in a new window.
|
|
429
|
+
*/
|
|
430
|
+
allowDetach: boolean;
|
|
425
431
|
isMultiple: boolean;
|
|
426
432
|
/**
|
|
427
433
|
* By default, any customEvents.focus occurred inside the tab render will cause the tab to be opened.
|
|
@@ -477,20 +483,33 @@ interface IConfirm {
|
|
|
477
483
|
onConfirm?: () => unknown;
|
|
478
484
|
onCancel?: () => unknown;
|
|
479
485
|
title?: string;
|
|
486
|
+
size?: TModalSize;
|
|
480
487
|
variant?: string;
|
|
481
488
|
}
|
|
482
|
-
declare const ConfirmModal: ({ onConfirm, onCancel, title, ...props }: IConfirm) => JSX.Element;
|
|
489
|
+
declare const ConfirmModal: ({ onConfirm, onCancel, title, size, ...props }: IConfirm) => JSX.Element;
|
|
483
490
|
|
|
484
|
-
type TApiaUtilConfirm = Pick<IConfirm, 'additionalButtons' | 'additionalButtonsOnRight' | 'cancelButtonText' | 'children' | 'className' | 'confirmButtonText' | 'confirmButtonVariant' | 'contentRef' | 'hideCancelButton' | 'hideConfirmButton' | 'title' | 'variant'>;
|
|
491
|
+
type TApiaUtilConfirm = Pick<IConfirm, 'additionalButtons' | 'additionalButtonsOnRight' | 'cancelButtonText' | 'children' | 'className' | 'confirmButtonText' | 'confirmButtonVariant' | 'contentRef' | 'hideCancelButton' | 'hideConfirmButton' | 'title' | 'size' | 'variant'>;
|
|
492
|
+
type TApiaUtilInnerConfirm = TApiaUtilConfirm & {
|
|
493
|
+
id: string;
|
|
494
|
+
} & Pick<IConfirm, 'onCancel' | 'onConfirm'>;
|
|
485
495
|
type TAlert = {
|
|
486
496
|
children: ReactNode;
|
|
487
497
|
title: string;
|
|
488
498
|
};
|
|
499
|
+
type TApiaUtilInnerAlert = TAlert & {
|
|
500
|
+
onClose: () => unknown;
|
|
501
|
+
id: string;
|
|
502
|
+
};
|
|
489
503
|
declare class ApiaUtilDialogs {
|
|
490
504
|
#private;
|
|
505
|
+
alerts: TApiaUtilInnerAlert[];
|
|
506
|
+
dialogs: TApiaUtilInnerConfirm[];
|
|
507
|
+
constructor();
|
|
491
508
|
alert(props: TAlert): Promise<void>;
|
|
492
509
|
confirm(props: TApiaUtilConfirm): Promise<boolean>;
|
|
493
|
-
Component: () => React$1.JSX.Element
|
|
510
|
+
Component: (() => React$1.JSX.Element) & {
|
|
511
|
+
displayName: string;
|
|
512
|
+
};
|
|
494
513
|
}
|
|
495
514
|
|
|
496
515
|
declare class ApiaUtilParsers {
|
|
@@ -1322,6 +1341,10 @@ interface MessageCallbackProps {
|
|
|
1322
1341
|
message: ChatMessage;
|
|
1323
1342
|
}
|
|
1324
1343
|
type MessageSubmitCallback = (props: MessageCallbackProps) => unknown;
|
|
1344
|
+
type TComponentRender = {
|
|
1345
|
+
path: string;
|
|
1346
|
+
args: Record<any, any>;
|
|
1347
|
+
};
|
|
1325
1348
|
|
|
1326
1349
|
declare class ChatMessage {
|
|
1327
1350
|
message: ReactNode;
|
|
@@ -2009,6 +2032,7 @@ declare const FileCard: React$1.ForwardRefExoticComponent<{
|
|
|
2009
2032
|
handleClose?: (f: string) => void;
|
|
2010
2033
|
onDoubleClick?: () => void;
|
|
2011
2034
|
onClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
2035
|
+
onDropFiles?: (files: File[]) => void;
|
|
2012
2036
|
} & React$1.RefAttributes<unknown>>;
|
|
2013
2037
|
|
|
2014
2038
|
declare const Dropzone: ({ sx, className, messageError, progress, defaultLabel, draggingLabel, onClick, onChange, handleInfoButton, }: {
|
|
@@ -2130,6 +2154,10 @@ interface IPagination {
|
|
|
2130
2154
|
}
|
|
2131
2155
|
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>;
|
|
2132
2156
|
|
|
2157
|
+
declare const _default: React$1.MemoExoticComponent<({ str }: {
|
|
2158
|
+
str: string;
|
|
2159
|
+
}) => React$1.JSX.Element>;
|
|
2160
|
+
|
|
2133
2161
|
interface IAsidePanel {
|
|
2134
2162
|
title?: string;
|
|
2135
2163
|
toolTip?: string;
|
|
@@ -2648,5 +2676,5 @@ declare class Templater {
|
|
|
2648
2676
|
parseString(content: string, options?: IAlterDefaultOptions): string | JSX.Element | JSX.Element[];
|
|
2649
2677
|
}
|
|
2650
2678
|
|
|
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 };
|
|
2679
|
+
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, _default as MDRenderer, 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 TComponentRender, 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 };
|
|
2652
2680
|
//# sourceMappingURL=index.d.ts.map
|