@apia/components 4.0.40 → 4.0.42
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 +42 -21
- package/dist/index.js +1125 -1157
- 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;
|
|
@@ -482,20 +483,33 @@ interface IConfirm {
|
|
|
482
483
|
onConfirm?: () => unknown;
|
|
483
484
|
onCancel?: () => unknown;
|
|
484
485
|
title?: string;
|
|
486
|
+
size?: TModalSize;
|
|
485
487
|
variant?: string;
|
|
486
488
|
}
|
|
487
|
-
declare const ConfirmModal: ({ onConfirm, onCancel, title, ...props }: IConfirm) => JSX.Element;
|
|
489
|
+
declare const ConfirmModal: ({ onConfirm, onCancel, title, size, ...props }: IConfirm) => JSX.Element;
|
|
488
490
|
|
|
489
|
-
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'>;
|
|
490
495
|
type TAlert = {
|
|
491
496
|
children: ReactNode;
|
|
492
497
|
title: string;
|
|
493
498
|
};
|
|
499
|
+
type TApiaUtilInnerAlert = TAlert & {
|
|
500
|
+
onClose: () => unknown;
|
|
501
|
+
id: string;
|
|
502
|
+
};
|
|
494
503
|
declare class ApiaUtilDialogs {
|
|
495
504
|
#private;
|
|
505
|
+
alerts: TApiaUtilInnerAlert[];
|
|
506
|
+
dialogs: TApiaUtilInnerConfirm[];
|
|
507
|
+
constructor();
|
|
496
508
|
alert(props: TAlert): Promise<void>;
|
|
497
509
|
confirm(props: TApiaUtilConfirm): Promise<boolean>;
|
|
498
|
-
Component: () => React$1.JSX.Element
|
|
510
|
+
Component: (() => React$1.JSX.Element) & {
|
|
511
|
+
displayName: string;
|
|
512
|
+
};
|
|
499
513
|
}
|
|
500
514
|
|
|
501
515
|
declare class ApiaUtilParsers {
|
|
@@ -1306,6 +1320,18 @@ interface ILabelBox {
|
|
|
1306
1320
|
type TLabelBox = ILabelBox & BoxProps;
|
|
1307
1321
|
declare const LabelBox: ({ className, label, tooltip, closeTooltip, onClose, variant, ...props }: TLabelBox) => React$1.JSX.Element;
|
|
1308
1322
|
|
|
1323
|
+
declare class ChatMessage {
|
|
1324
|
+
message: ReactNode;
|
|
1325
|
+
messageType: TMessageType;
|
|
1326
|
+
attachments: IAttachment[];
|
|
1327
|
+
reference: ReactNode;
|
|
1328
|
+
id: number;
|
|
1329
|
+
constructor(message?: ReactNode, messageType?: TMessageType, attachments?: IAttachment[], reference?: ReactNode);
|
|
1330
|
+
clone: () => ChatMessage;
|
|
1331
|
+
removeAttachment(attachment: IAttachment): void;
|
|
1332
|
+
addAttachmentDescription(attachment: IAttachment, description: string): void;
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1309
1335
|
type TMessageType = 'user' | 'system' | 'warning' | 'error' | 'information' | 'response' | 'multipleChoice' | 'customMessage';
|
|
1310
1336
|
interface IAttachment {
|
|
1311
1337
|
name: string;
|
|
@@ -1327,18 +1353,18 @@ interface MessageCallbackProps {
|
|
|
1327
1353
|
message: ChatMessage;
|
|
1328
1354
|
}
|
|
1329
1355
|
type MessageSubmitCallback = (props: MessageCallbackProps) => unknown;
|
|
1356
|
+
type TComponentRender = {
|
|
1357
|
+
path: string;
|
|
1358
|
+
args: Record<any, any>;
|
|
1359
|
+
};
|
|
1330
1360
|
|
|
1331
|
-
declare
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
clone: () => ChatMessage;
|
|
1339
|
-
removeAttachment(attachment: IAttachment): void;
|
|
1340
|
-
addAttachmentDescription(attachment: IAttachment, description: string): void;
|
|
1341
|
-
}
|
|
1361
|
+
declare const _default$2: React$1.MemoExoticComponent<({ componentData, }: {
|
|
1362
|
+
componentData: TComponentRender;
|
|
1363
|
+
}) => React$1.JSX.Element>;
|
|
1364
|
+
|
|
1365
|
+
declare const _default$1: React$1.MemoExoticComponent<({ str }: {
|
|
1366
|
+
str: string;
|
|
1367
|
+
}) => React$1.JSX.Element[]>;
|
|
1342
1368
|
|
|
1343
1369
|
interface AutoscrollContainerProps {
|
|
1344
1370
|
/** How close (in px) to the bottom you have to be *when scrolling down*
|
|
@@ -2136,14 +2162,9 @@ interface IPagination {
|
|
|
2136
2162
|
}
|
|
2137
2163
|
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>;
|
|
2138
2164
|
|
|
2139
|
-
type TComponentRender = {
|
|
2140
|
-
path: string;
|
|
2141
|
-
args: Record<any, any>;
|
|
2142
|
-
};
|
|
2143
|
-
|
|
2144
2165
|
declare const _default: React$1.MemoExoticComponent<({ str }: {
|
|
2145
2166
|
str: string;
|
|
2146
|
-
}) => React$1.JSX.Element
|
|
2167
|
+
}) => React$1.JSX.Element>;
|
|
2147
2168
|
|
|
2148
2169
|
interface IAsidePanel {
|
|
2149
2170
|
title?: string;
|
|
@@ -2663,5 +2684,5 @@ declare class Templater {
|
|
|
2663
2684
|
parseString(content: string, options?: IAlterDefaultOptions): string | JSX.Element | JSX.Element[];
|
|
2664
2685
|
}
|
|
2665
2686
|
|
|
2666
|
-
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 };
|
|
2687
|
+
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, _default$2 as MessageBlock, _default$1 as MessageBlocks, 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 };
|
|
2667
2688
|
//# sourceMappingURL=index.d.ts.map
|