@gooddata/sdk-ui-kit 10.32.0-alpha.9 → 10.32.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/esm/@ui/@dev/ComponentTable.d.ts +12 -9
- package/esm/@ui/@dev/ComponentTable.d.ts.map +1 -1
- package/esm/@ui/@dev/ComponentTable.js +6 -6
- package/esm/@ui/@dev/ComponentTable.js.map +1 -1
- package/esm/@ui/@types/variant.d.ts +4 -0
- package/esm/@ui/@types/variant.d.ts.map +1 -1
- package/esm/@ui/@utils/useKeyboardNavigationTarget.d.ts +16 -0
- package/esm/@ui/@utils/useKeyboardNavigationTarget.d.ts.map +1 -0
- package/esm/@ui/@utils/useKeyboardNavigationTarget.js +34 -0
- package/esm/@ui/@utils/useKeyboardNavigationTarget.js.map +1 -0
- package/esm/@ui/UiButton/UiButton.d.ts +2 -2
- package/esm/@ui/UiButton/UiButton.d.ts.map +1 -1
- package/esm/@ui/UiButton/UiButton.js.map +1 -1
- package/esm/@ui/UiFocusManager/UiAutofocus.d.ts +24 -0
- package/esm/@ui/UiFocusManager/UiAutofocus.d.ts.map +1 -0
- package/esm/{utils/useAutofocusOnMount.js → @ui/UiFocusManager/UiAutofocus.js} +18 -23
- package/esm/@ui/UiFocusManager/UiAutofocus.js.map +1 -0
- package/esm/@ui/UiFocusManager/UiFocusManager.d.ts +23 -0
- package/esm/@ui/UiFocusManager/UiFocusManager.d.ts.map +1 -0
- package/esm/@ui/UiFocusManager/UiFocusManager.js +49 -0
- package/esm/@ui/UiFocusManager/UiFocusManager.js.map +1 -0
- package/esm/@ui/UiFocusManager/UiFocusTrap.d.ts +13 -0
- package/esm/@ui/UiFocusManager/UiFocusTrap.d.ts.map +1 -0
- package/esm/@ui/UiFocusManager/UiFocusTrap.js +31 -0
- package/esm/@ui/UiFocusManager/UiFocusTrap.js.map +1 -0
- package/esm/@ui/UiFocusManager/UiReturnFocusOnUnmount.d.ts +19 -0
- package/esm/@ui/UiFocusManager/UiReturnFocusOnUnmount.d.ts.map +1 -0
- package/esm/@ui/UiFocusManager/UiReturnFocusOnUnmount.js +34 -0
- package/esm/@ui/UiFocusManager/UiReturnFocusOnUnmount.js.map +1 -0
- package/esm/@ui/UiFocusManager/UiTabOutHandler.d.ts +14 -0
- package/esm/@ui/UiFocusManager/UiTabOutHandler.d.ts.map +1 -0
- package/esm/@ui/UiFocusManager/UiTabOutHandler.js +35 -0
- package/esm/@ui/UiFocusManager/UiTabOutHandler.js.map +1 -0
- package/esm/@ui/UiFocusManager/types.d.ts +13 -0
- package/esm/@ui/UiFocusManager/types.d.ts.map +1 -0
- package/esm/@ui/UiFocusManager/types.js +3 -0
- package/esm/@ui/UiFocusManager/types.js.map +1 -0
- package/esm/@ui/UiFocusManager/utils.d.ts +18 -0
- package/esm/@ui/UiFocusManager/utils.d.ts.map +1 -0
- package/esm/@ui/UiFocusManager/utils.js +40 -0
- package/esm/@ui/UiFocusManager/utils.js.map +1 -0
- package/esm/@ui/UiLink/UiLink.d.ts +13 -0
- package/esm/@ui/UiLink/UiLink.d.ts.map +1 -0
- package/esm/@ui/UiLink/UiLink.js +11 -0
- package/esm/@ui/UiLink/UiLink.js.map +1 -0
- package/esm/@ui/UiMenu/UiMenu.js +2 -2
- package/esm/@ui/UiMenu/UiMenu.js.map +1 -1
- package/esm/@ui/UiNavigationBypass/UiNavigationBypass.d.ts +23 -0
- package/esm/@ui/UiNavigationBypass/UiNavigationBypass.d.ts.map +1 -0
- package/esm/@ui/UiNavigationBypass/UiNavigationBypass.js +86 -0
- package/esm/@ui/UiNavigationBypass/UiNavigationBypass.js.map +1 -0
- package/esm/@ui/UiTooltip/UiTooltip.d.ts +7 -0
- package/esm/@ui/UiTooltip/UiTooltip.d.ts.map +1 -0
- package/esm/@ui/UiTooltip/UiTooltip.js +92 -0
- package/esm/@ui/UiTooltip/UiTooltip.js.map +1 -0
- package/esm/@ui/UiTooltip/constants.d.ts +9 -0
- package/esm/@ui/UiTooltip/constants.d.ts.map +1 -0
- package/esm/@ui/UiTooltip/constants.js +14 -0
- package/esm/@ui/UiTooltip/constants.js.map +1 -0
- package/esm/@ui/UiTooltip/types.d.ts +44 -0
- package/esm/@ui/UiTooltip/types.d.ts.map +1 -0
- package/esm/@ui/UiTooltip/types.js +3 -0
- package/esm/@ui/UiTooltip/types.js.map +1 -0
- package/esm/@ui/UiTooltip/utils.d.ts +19 -0
- package/esm/@ui/UiTooltip/utils.d.ts.map +1 -0
- package/esm/@ui/UiTooltip/utils.js +74 -0
- package/esm/@ui/UiTooltip/utils.js.map +1 -0
- package/esm/Bubble/Bubble.d.ts +2 -0
- package/esm/Bubble/Bubble.d.ts.map +1 -1
- package/esm/Bubble/Bubble.js +2 -1
- package/esm/Bubble/Bubble.js.map +1 -1
- package/esm/Bubble/withBubble.js.map +1 -1
- package/esm/Dialog/ConfirmDialogBase.d.ts.map +1 -1
- package/esm/Dialog/ConfirmDialogBase.js +2 -2
- package/esm/Dialog/ConfirmDialogBase.js.map +1 -1
- package/esm/Dialog/DialogBase.d.ts.map +1 -1
- package/esm/Dialog/DialogBase.js +2 -8
- package/esm/Dialog/DialogBase.js.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialog.d.ts.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialog.js +5 -5
- package/esm/Dialog/ShareDialog/ShareDialog.js.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/AddGranteeBase.d.ts.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/AddGranteeBase.js +2 -2
- package/esm/Dialog/ShareDialog/ShareDialogBase/AddGranteeBase.js.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/AddGranteeContent.d.ts.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/AddGranteeContent.js +3 -3
- package/esm/Dialog/ShareDialog/ShareDialogBase/AddGranteeContent.js.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/GranteeItem.d.ts.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/GranteeItem.js +3 -3
- package/esm/Dialog/ShareDialog/ShareDialogBase/GranteeItem.js.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/GranteeList.d.ts.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/GranteeList.js +3 -3
- package/esm/Dialog/ShareDialog/ShareDialogBase/GranteeList.js.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/GranularPermissions/GranularGranteeGroupItem.d.ts +1 -0
- package/esm/Dialog/ShareDialog/ShareDialogBase/GranularPermissions/GranularGranteeGroupItem.d.ts.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/GranularPermissions/GranularGranteeGroupItem.js +2 -2
- package/esm/Dialog/ShareDialog/ShareDialogBase/GranularPermissions/GranularGranteeGroupItem.js.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/GranularPermissions/GranularGranteeUserItem.d.ts +1 -0
- package/esm/Dialog/ShareDialog/ShareDialogBase/GranularPermissions/GranularGranteeUserItem.d.ts.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/GranularPermissions/GranularGranteeUserItem.js +2 -2
- package/esm/Dialog/ShareDialog/ShareDialogBase/GranularPermissions/GranularGranteeUserItem.js.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/ShareDialogBase.d.ts.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/ShareDialogBase.js +2 -2
- package/esm/Dialog/ShareDialog/ShareDialogBase/ShareDialogBase.js.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/ShareGranteeBase.d.ts.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/ShareGranteeBase.js +16 -6
- package/esm/Dialog/ShareDialog/ShareDialogBase/ShareGranteeBase.js.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/ShareGranteeContent.d.ts.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/ShareGranteeContent.js +5 -7
- package/esm/Dialog/ShareDialog/ShareDialogBase/ShareGranteeContent.js.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/ShareLink.d.ts +7 -0
- package/esm/Dialog/ShareDialog/ShareDialogBase/ShareLink.d.ts.map +1 -0
- package/esm/Dialog/ShareDialog/ShareDialogBase/ShareLink.js +28 -0
- package/esm/Dialog/ShareDialog/ShareDialogBase/ShareLink.js.map +1 -0
- package/esm/Dialog/ShareDialog/ShareDialogBase/backend/useGetAccessList.d.ts +1 -0
- package/esm/Dialog/ShareDialog/ShareDialogBase/backend/useGetAccessList.d.ts.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/backend/useGetAccessList.js +3 -8
- package/esm/Dialog/ShareDialog/ShareDialogBase/backend/useGetAccessList.js.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/types.d.ts +31 -2
- package/esm/Dialog/ShareDialog/ShareDialogBase/types.d.ts.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/types.js.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/useShareDialogBase.d.ts.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/useShareDialogBase.js +35 -9
- package/esm/Dialog/ShareDialog/ShareDialogBase/useShareDialogBase.js.map +1 -1
- package/esm/Dialog/ShareDialog/types.d.ts +8 -2
- package/esm/Dialog/ShareDialog/types.d.ts.map +1 -1
- package/esm/Dialog/typings.d.ts +1 -0
- package/esm/Dialog/typings.d.ts.map +1 -1
- package/esm/Dropdown/Dropdown.d.ts +1 -1
- package/esm/Dropdown/Dropdown.d.ts.map +1 -1
- package/esm/Dropdown/Dropdown.js +10 -7
- package/esm/Dropdown/Dropdown.js.map +1 -1
- package/esm/Dropdown/DropdownButtonKeyboardWrapper.d.ts +1 -0
- package/esm/Dropdown/DropdownButtonKeyboardWrapper.d.ts.map +1 -1
- package/esm/Dropdown/DropdownButtonKeyboardWrapper.js +7 -3
- package/esm/Dropdown/DropdownButtonKeyboardWrapper.js.map +1 -1
- package/esm/Form/InputPure.d.ts +5 -0
- package/esm/Form/InputPure.d.ts.map +1 -1
- package/esm/Form/InputPure.js +9 -2
- package/esm/Form/InputPure.js.map +1 -1
- package/esm/Header/HeaderAccount.d.ts.map +1 -1
- package/esm/Header/HeaderAccount.js +2 -2
- package/esm/Header/HeaderAccount.js.map +1 -1
- package/esm/Header/HeaderHelp.d.ts.map +1 -1
- package/esm/Header/HeaderHelp.js +2 -2
- package/esm/Header/HeaderHelp.js.map +1 -1
- package/esm/Header/HeaderSearchButton.d.ts.map +1 -1
- package/esm/Header/HeaderSearchButton.js +2 -2
- package/esm/Header/HeaderSearchButton.js.map +1 -1
- package/esm/Icon/Icon.js +2 -2
- package/esm/Icon/Icon.js.map +1 -1
- package/esm/Icon/icons/ColumnContainer.d.ts +7 -0
- package/esm/Icon/icons/ColumnContainer.d.ts.map +1 -0
- package/esm/Icon/icons/ColumnContainer.js +19 -0
- package/esm/Icon/icons/ColumnContainer.js.map +1 -0
- package/esm/Overlay/OverlayContext.d.ts +10 -2
- package/esm/Overlay/OverlayContext.d.ts.map +1 -1
- package/esm/Overlay/OverlayContext.js +24 -3
- package/esm/Overlay/OverlayContext.js.map +1 -1
- package/esm/Overlay/index.d.ts +1 -1
- package/esm/Overlay/index.d.ts.map +1 -1
- package/esm/Overlay/index.js +1 -1
- package/esm/Overlay/index.js.map +1 -1
- package/esm/RecurrenceForm/RecurrenceForm.d.ts +2 -0
- package/esm/RecurrenceForm/RecurrenceForm.d.ts.map +1 -1
- package/esm/RecurrenceForm/RecurrenceForm.js +5 -4
- package/esm/RecurrenceForm/RecurrenceForm.js.map +1 -1
- package/esm/RecurrenceForm/RepeatTypeDescription.js +1 -1
- package/esm/RecurrenceForm/RepeatTypeDescription.js.map +1 -1
- package/esm/RecurrenceForm/RepeatTypeSelect.js +1 -1
- package/esm/RecurrenceForm/RepeatTypeSelect.js.map +1 -1
- package/esm/RecurrenceForm/index.d.ts +2 -1
- package/esm/RecurrenceForm/index.d.ts.map +1 -1
- package/esm/RecurrenceForm/index.js +3 -2
- package/esm/RecurrenceForm/index.js.map +1 -1
- package/esm/RecurrenceForm/useCronValidation.js +1 -1
- package/esm/RecurrenceForm/useCronValidation.js.map +1 -1
- package/esm/RecurrenceForm/utils/simpleRecurrenceTypeMappingFn.d.ts +14 -0
- package/esm/RecurrenceForm/utils/simpleRecurrenceTypeMappingFn.d.ts.map +1 -0
- package/esm/RecurrenceForm/utils/simpleRecurrenceTypeMappingFn.js +65 -0
- package/esm/RecurrenceForm/utils/simpleRecurrenceTypeMappingFn.js.map +1 -0
- package/esm/RecurrenceForm/utils/simpleRecurrenceTypeMappingFn.test.d.ts +2 -0
- package/esm/RecurrenceForm/utils/simpleRecurrenceTypeMappingFn.test.d.ts.map +1 -0
- package/esm/RecurrenceForm/utils/simpleRecurrenceTypeMappingFn.test.js +80 -0
- package/esm/RecurrenceForm/utils/simpleRecurrenceTypeMappingFn.test.js.map +1 -0
- package/esm/RecurrenceForm/{utils.d.ts → utils/utils.d.ts} +1 -1
- package/esm/RecurrenceForm/utils/utils.d.ts.map +1 -0
- package/esm/RecurrenceForm/{utils.js → utils/utils.js} +2 -2
- package/esm/RecurrenceForm/utils/utils.js.map +1 -0
- package/esm/RecurrenceForm/utils/utils.test.d.ts.map +1 -0
- package/esm/RecurrenceForm/{utils.test.js → utils/utils.test.js} +1 -1
- package/esm/RecurrenceForm/utils/utils.test.js.map +1 -0
- package/esm/index.d.ts +19 -4
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +10 -2
- package/esm/index.js.map +1 -1
- package/esm/sdk-ui-kit.d.ts +271 -68
- package/esm/syntaxHighlightingInput/hooks/useCodemirrorOptions.d.ts.map +1 -1
- package/esm/syntaxHighlightingInput/hooks/useCodemirrorOptions.js +11 -1
- package/esm/syntaxHighlightingInput/hooks/useCodemirrorOptions.js.map +1 -1
- package/package.json +19 -16
- package/src/@ui/UiButton/UiButton.scss +28 -0
- package/src/@ui/UiLink/UiLink.scss +44 -0
- package/src/@ui/UiNavigationBypass/UiNavigationBypass.scss +52 -0
- package/src/@ui/UiTooltip/UiTooltip.scss +23 -0
- package/src/@ui/index.scss +3 -0
- package/styles/css/form.css +13 -0
- package/styles/css/form.css.map +1 -1
- package/styles/css/main.css +155 -20
- package/styles/css/main.css.map +1 -1
- package/styles/css/overlay.css +0 -4
- package/styles/css/overlay.css.map +1 -1
- package/styles/css/shareDialog.css +22 -11
- package/styles/css/shareDialog.css.map +1 -1
- package/styles/css/syntaxHighlightingInput.css +16 -5
- package/styles/css/syntaxHighlightingInput.css.map +1 -1
- package/styles/scss/form.scss +15 -0
- package/styles/scss/overlay.scss +0 -6
- package/styles/scss/shareDialog.scss +23 -11
- package/styles/scss/syntaxHighlightingInput.scss +12 -2
- package/esm/@ui/UiFocusTrap/UiFocusTrap.d.ts +0 -39
- package/esm/@ui/UiFocusTrap/UiFocusTrap.d.ts.map +0 -1
- package/esm/@ui/UiFocusTrap/UiFocusTrap.js +0 -134
- package/esm/@ui/UiFocusTrap/UiFocusTrap.js.map +0 -1
- package/esm/Icon/icons/Container.d.ts +0 -7
- package/esm/Icon/icons/Container.d.ts.map +0 -1
- package/esm/Icon/icons/Container.js +0 -37
- package/esm/Icon/icons/Container.js.map +0 -1
- package/esm/RecurrenceForm/utils.d.ts.map +0 -1
- package/esm/RecurrenceForm/utils.js.map +0 -1
- package/esm/RecurrenceForm/utils.test.d.ts.map +0 -1
- package/esm/RecurrenceForm/utils.test.js.map +0 -1
- package/esm/utils/useAutofocusOnMount.d.ts +0 -29
- package/esm/utils/useAutofocusOnMount.d.ts.map +0 -1
- package/esm/utils/useAutofocusOnMount.js.map +0 -1
- /package/esm/RecurrenceForm/{utils.test.d.ts → utils/utils.test.d.ts} +0 -0
package/esm/sdk-ui-kit.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ import { CSSProperties } from 'react';
|
|
|
19
19
|
import { DebouncedFunc } from 'lodash';
|
|
20
20
|
import { EditorView } from '@codemirror/view';
|
|
21
21
|
import { Extension } from '@codemirror/state';
|
|
22
|
+
import { FilterContextItem } from '@gooddata/sdk-model';
|
|
22
23
|
import { GoodDataSdkError } from '@gooddata/sdk-ui';
|
|
23
24
|
import { IAccessControlAware } from '@gooddata/sdk-model';
|
|
24
25
|
import { IAccessGrantee } from '@gooddata/sdk-model';
|
|
@@ -135,15 +136,6 @@ export declare type ArrowOffsets = Record<string, ArrowOffset>;
|
|
|
135
136
|
*/
|
|
136
137
|
export declare function AsyncList<T>(props: IAsyncListProps<T>): React_2.JSX.Element;
|
|
137
138
|
|
|
138
|
-
/**
|
|
139
|
-
* Wrapper that focuses the first focusable child when it mounts, or when `refocusKey` changes.
|
|
140
|
-
*
|
|
141
|
-
* @internal
|
|
142
|
-
*/
|
|
143
|
-
export declare const AutofocusOnMount: React_2.FC<{
|
|
144
|
-
children: React_2.ReactNode;
|
|
145
|
-
} & IAutofocusOptions>;
|
|
146
|
-
|
|
147
139
|
/**
|
|
148
140
|
* @internal
|
|
149
141
|
*/
|
|
@@ -275,6 +267,7 @@ export declare class Bubble extends React_2.Component<IBubbleProps, IBubbleState
|
|
|
275
267
|
className: string;
|
|
276
268
|
closeOnOutsideClick: boolean;
|
|
277
269
|
closeOnParentScroll: boolean;
|
|
270
|
+
closeOnEscape: boolean;
|
|
278
271
|
onClose: (...args: any[]) => void;
|
|
279
272
|
onMouseEnter: (...args: any[]) => void;
|
|
280
273
|
onMouseLeave: (...args: any[]) => void;
|
|
@@ -460,7 +453,7 @@ export declare const ComponentLabelsProvider: React_2.FC<IComponentLabelsProvide
|
|
|
460
453
|
/**
|
|
461
454
|
* @internal
|
|
462
455
|
*/
|
|
463
|
-
export declare function ComponentTable<TProps extends object
|
|
456
|
+
export declare function ComponentTable<TProps extends object>({ Component, columnsBy, rowsBy, baseProps, debug, codeSnippet, cellWidth, cellHeight, align, cellStyle, }: IComponentTableProps<TProps>): React_2.JSX.Element;
|
|
464
457
|
|
|
465
458
|
/**
|
|
466
459
|
* @internal
|
|
@@ -824,6 +817,14 @@ export declare class FlexDimensions extends Component<IFlexDimensionsProps, IFle
|
|
|
824
817
|
render(): ReactNode;
|
|
825
818
|
}
|
|
826
819
|
|
|
820
|
+
/**
|
|
821
|
+
* Attempts to find a truly focusable element by trying subsequent elements in the focusable elements collection
|
|
822
|
+
* This is useful when some elements are focusable but not reachable (e.g., out of viewport or disabled)
|
|
823
|
+
*
|
|
824
|
+
* @internal
|
|
825
|
+
*/
|
|
826
|
+
export declare const focusAndEnsureReachableElement: (initialElement: HTMLElement | undefined, focusableElements: HTMLElement[], direction: NavigationDirection) => void;
|
|
827
|
+
|
|
827
828
|
/**
|
|
828
829
|
* @internal
|
|
829
830
|
*/
|
|
@@ -984,6 +985,11 @@ export declare const getItemInteractiveParent: <T extends IUiMenuItemData = obje
|
|
|
984
985
|
*/
|
|
985
986
|
export declare const getItemsByInteractiveParent: <T extends IUiMenuItemData = object>(items: IUiMenuItem<T>[], parentId?: string) => IUiMenuItem<T>[];
|
|
986
987
|
|
|
988
|
+
/**
|
|
989
|
+
* @internal
|
|
990
|
+
*/
|
|
991
|
+
export declare const getNextFocusableElement: (initialElement: HTMLElement | undefined, focusableElements: HTMLElement[], direction: NavigationDirection) => HTMLElement;
|
|
992
|
+
|
|
987
993
|
/**
|
|
988
994
|
* Gets all next sibling items of a menu item with wraparound.
|
|
989
995
|
* @internal
|
|
@@ -1233,6 +1239,7 @@ export declare interface IAddGranteeBaseProps {
|
|
|
1233
1239
|
currentUserPermissions: CurrentUserPermissions;
|
|
1234
1240
|
sharedObject: IAffectedSharedObject;
|
|
1235
1241
|
previouslyFocusedRef?: React.MutableRefObject<HTMLElement>;
|
|
1242
|
+
isGranteeShareLoading?: boolean;
|
|
1236
1243
|
onBackClick?: () => void;
|
|
1237
1244
|
onDelete: (grantee: GranteeItem) => void;
|
|
1238
1245
|
onAddUserOrGroups?: (grantee: GranteeItem) => void;
|
|
@@ -1352,14 +1359,6 @@ export declare interface IAsyncListProps<T> {
|
|
|
1352
1359
|
onLoadNextPage?: () => void;
|
|
1353
1360
|
}
|
|
1354
1361
|
|
|
1355
|
-
/**
|
|
1356
|
-
* @internal
|
|
1357
|
-
*/
|
|
1358
|
-
export declare interface IAutofocusOptions {
|
|
1359
|
-
isDisabled?: boolean;
|
|
1360
|
-
refocusKey?: unknown;
|
|
1361
|
-
}
|
|
1362
|
-
|
|
1363
1362
|
/**
|
|
1364
1363
|
* @internal
|
|
1365
1364
|
*/
|
|
@@ -1447,6 +1446,7 @@ export declare interface IBubbleProps {
|
|
|
1447
1446
|
className?: string;
|
|
1448
1447
|
closeOnOutsideClick?: boolean;
|
|
1449
1448
|
closeOnParentScroll?: boolean;
|
|
1449
|
+
closeOnEscape?: boolean;
|
|
1450
1450
|
/**
|
|
1451
1451
|
* Array of refs where user clicks should be ignored
|
|
1452
1452
|
* and bubble should not be closed by clicking on them
|
|
@@ -1622,9 +1622,9 @@ export declare type IComponentLabelsProviderProps = {
|
|
|
1622
1622
|
/**
|
|
1623
1623
|
* @internal
|
|
1624
1624
|
*/
|
|
1625
|
-
export declare interface IComponentTableProps<TProps extends object
|
|
1626
|
-
columnsBy?: IPropCombination<TProps,
|
|
1627
|
-
rowsBy: IPropCombination<TProps,
|
|
1625
|
+
export declare interface IComponentTableProps<TProps extends object> {
|
|
1626
|
+
columnsBy?: IPropCombination<TProps, keyof TProps> | undefined;
|
|
1627
|
+
rowsBy: IPropCombination<TProps, keyof TProps>[];
|
|
1628
1628
|
baseProps?: Partial<TProps>;
|
|
1629
1629
|
Component: React_2.ComponentType<TProps>;
|
|
1630
1630
|
codeSnippet?: string;
|
|
@@ -1632,6 +1632,7 @@ export declare interface IComponentTableProps<TProps extends object, TProp exten
|
|
|
1632
1632
|
cellWidth?: number;
|
|
1633
1633
|
cellHeight?: number;
|
|
1634
1634
|
align?: "center" | "flex-start";
|
|
1635
|
+
cellStyle?: (props: TProps) => React_2.CSSProperties | undefined;
|
|
1635
1636
|
}
|
|
1636
1637
|
|
|
1637
1638
|
/**
|
|
@@ -1651,6 +1652,7 @@ export declare interface IConfirmDialogBaseProps extends Omit<IDialogBaseProps,
|
|
|
1651
1652
|
submitButtonTooltipText?: string;
|
|
1652
1653
|
submitButtonTooltipAlignPoints?: IAlignPoint[];
|
|
1653
1654
|
submitButtonTooltipArrowOffsets?: ArrowOffsets;
|
|
1655
|
+
hideSubmitButton?: boolean;
|
|
1654
1656
|
warning?: string | React_2.ReactElement;
|
|
1655
1657
|
showProgressIndicator?: boolean;
|
|
1656
1658
|
headerLeftButtonRenderer?: () => JSX.Element;
|
|
@@ -2210,7 +2212,7 @@ export declare interface IDropdownProps {
|
|
|
2210
2212
|
triggerRole?: "button" | "combobox";
|
|
2211
2213
|
popupRole?: "listbox" | "tree" | "grid" | "dialog";
|
|
2212
2214
|
};
|
|
2213
|
-
|
|
2215
|
+
shouldTrapFocus?: boolean;
|
|
2214
2216
|
}
|
|
2215
2217
|
|
|
2216
2218
|
/**
|
|
@@ -2422,6 +2424,7 @@ export declare interface IGranteeItemProps {
|
|
|
2422
2424
|
currentUserPermissions: CurrentUserPermissions;
|
|
2423
2425
|
isSharedObjectLocked: boolean;
|
|
2424
2426
|
areGranularPermissionsSupported?: boolean;
|
|
2427
|
+
isGranteeShareLoading?: boolean;
|
|
2425
2428
|
onDelete: (grantee: GranteeItem) => void;
|
|
2426
2429
|
onChange?: (grantee: GranteeItem) => void;
|
|
2427
2430
|
}
|
|
@@ -3626,6 +3629,7 @@ export declare class InputPure extends React_2.PureComponent<InputPureProps> imp
|
|
|
3626
3629
|
renderLabel(label: React_2.ReactNode): React_2.ReactNode;
|
|
3627
3630
|
renderSearch(isSearch: boolean): React_2.ReactNode;
|
|
3628
3631
|
renderClearIcon(clearOnEsc: boolean): React_2.ReactNode;
|
|
3632
|
+
renderIconButton(iconButton: IconType, iconButtonLabel: string, onIconButtonClick: (e: React_2.MouseEvent<HTMLButtonElement>) => void): React_2.ReactNode;
|
|
3629
3633
|
renderInput(): React_2.JSX.Element;
|
|
3630
3634
|
render(): React_2.JSX.Element;
|
|
3631
3635
|
focus(options?: {
|
|
@@ -3664,6 +3668,9 @@ export declare interface InputPureProps extends IDomNativeProps {
|
|
|
3664
3668
|
accessibilityType?: string;
|
|
3665
3669
|
accessibilityConfig?: IAccessibilityConfigBase;
|
|
3666
3670
|
autocomplete?: string;
|
|
3671
|
+
iconButton?: IconType;
|
|
3672
|
+
onIconButtonClick?: (e: React_2.MouseEvent<HTMLButtonElement>) => void;
|
|
3673
|
+
iconButtonLabel?: string;
|
|
3667
3674
|
}
|
|
3668
3675
|
|
|
3669
3676
|
/**
|
|
@@ -3972,6 +3979,7 @@ export declare interface IRecurrenceFormProps {
|
|
|
3972
3979
|
onRecurrenceDropdownOpen?: () => void;
|
|
3973
3980
|
closeDropdownsOnParentScroll?: boolean;
|
|
3974
3981
|
onKeyDownSubmit?: (e: React_2.KeyboardEvent) => void;
|
|
3982
|
+
customRecurrenceTypeMappingFn?: (date?: Date | null, cronExpression?: string, allowHourlyRecurrence?: boolean, showInheritValue?: boolean, weekStart?: WeekStart) => RecurrenceType;
|
|
3975
3983
|
}
|
|
3976
3984
|
|
|
3977
3985
|
/**
|
|
@@ -4320,10 +4328,16 @@ export declare interface IShareDialogBaseProps {
|
|
|
4320
4328
|
sharedObject: IAffectedSharedObject;
|
|
4321
4329
|
currentUser: IUser;
|
|
4322
4330
|
currentUserPermissions: CurrentUserPermissions;
|
|
4331
|
+
dashboardFilters?: FilterContextItem[];
|
|
4332
|
+
isShareGrantHidden?: boolean;
|
|
4333
|
+
applyShareGrantOnSelect?: boolean;
|
|
4334
|
+
showDashboardShareLink?: boolean;
|
|
4323
4335
|
isCurrentUserWorkspaceManager: boolean;
|
|
4336
|
+
isGranteeShareLoading?: boolean;
|
|
4324
4337
|
onCancel: () => void;
|
|
4325
|
-
onSubmit: (grantees: GranteeItem[], granteesToAdd: GranteeItem[], granteesToDelete: GranteeItem[], isUnderLenientControl: boolean, isLocked: boolean) => void;
|
|
4338
|
+
onSubmit: (grantees: GranteeItem[], granteesToAdd: GranteeItem[], granteesToDelete: GranteeItem[], isUnderLenientControl: boolean, isLocked: boolean, closeOnApply?: boolean) => void;
|
|
4326
4339
|
onError: (err: Error) => void;
|
|
4340
|
+
onShareLinkCopy?: (shareLink: string) => void;
|
|
4327
4341
|
}
|
|
4328
4342
|
|
|
4329
4343
|
/**
|
|
@@ -4357,7 +4371,7 @@ export declare interface IShareDialogProps {
|
|
|
4357
4371
|
sharedObject: ISharedObject;
|
|
4358
4372
|
currentUser: IUser;
|
|
4359
4373
|
locale?: string;
|
|
4360
|
-
onApply: (payload: ISharingApplyPayload) => void;
|
|
4374
|
+
onApply: (payload: ISharingApplyPayload, closeOnApply?: boolean) => void;
|
|
4361
4375
|
onCancel: () => void;
|
|
4362
4376
|
onError?: (error: GoodDataSdkError) => void;
|
|
4363
4377
|
onInteraction?: (data: IShareDialogInteractionData) => void;
|
|
@@ -4365,6 +4379,12 @@ export declare interface IShareDialogProps {
|
|
|
4365
4379
|
isCurrentUserWorkspaceManager: boolean;
|
|
4366
4380
|
labels: IShareDialogLabels;
|
|
4367
4381
|
currentUserPermissions: CurrentUserPermissions;
|
|
4382
|
+
dashboardFilters?: FilterContextItem[];
|
|
4383
|
+
isGranteeShareLoading?: boolean;
|
|
4384
|
+
isShareGrantHidden?: boolean;
|
|
4385
|
+
applyShareGrantOnSelect?: boolean;
|
|
4386
|
+
showDashboardShareLink?: boolean;
|
|
4387
|
+
onShareLinkCopy?: (shareLink: string) => void;
|
|
4368
4388
|
}
|
|
4369
4389
|
|
|
4370
4390
|
/**
|
|
@@ -4387,6 +4407,11 @@ export declare interface IShareGranteeBaseProps {
|
|
|
4387
4407
|
grantees: GranteeItem[];
|
|
4388
4408
|
isCurrentUserWorkspaceManager: boolean;
|
|
4389
4409
|
currentUserPermissions: CurrentUserPermissions;
|
|
4410
|
+
dashboardFilters?: FilterContextItem[];
|
|
4411
|
+
isShareGrantHidden?: boolean;
|
|
4412
|
+
applyShareGrantOnSelect?: boolean;
|
|
4413
|
+
showDashboardShareLink?: boolean;
|
|
4414
|
+
isGranteeShareLoading?: boolean;
|
|
4390
4415
|
onAddGranteeButtonClick: () => void;
|
|
4391
4416
|
onGranteeDelete: (grantee: GranteeItem) => void;
|
|
4392
4417
|
onCancel: () => void;
|
|
@@ -4394,6 +4419,7 @@ export declare interface IShareGranteeBaseProps {
|
|
|
4394
4419
|
onLockChange: (locked: boolean) => void;
|
|
4395
4420
|
onUnderLenientControlChange: (isUnderLenientControl: boolean) => void;
|
|
4396
4421
|
onGranularGranteeChange?: (grantee: GranteeItem) => void;
|
|
4422
|
+
onShareLinkCopy?: (shareLink: string) => void;
|
|
4397
4423
|
}
|
|
4398
4424
|
|
|
4399
4425
|
/**
|
|
@@ -4405,6 +4431,9 @@ export declare interface IShareGranteeContentProps {
|
|
|
4405
4431
|
currentUserPermissions: CurrentUserPermissions;
|
|
4406
4432
|
isSharedObjectLocked: boolean;
|
|
4407
4433
|
areGranularPermissionsSupported?: boolean;
|
|
4434
|
+
isGranteeShareLoading?: boolean;
|
|
4435
|
+
applyShareGrantOnSelect?: boolean;
|
|
4436
|
+
headline: string;
|
|
4408
4437
|
onAddGrantee: () => void;
|
|
4409
4438
|
onDelete: (grantee: GranteeItem) => void;
|
|
4410
4439
|
onChange?: (grantee: GranteeItem) => void;
|
|
@@ -4719,6 +4748,14 @@ export declare interface ITypographyProps {
|
|
|
4719
4748
|
id?: string;
|
|
4720
4749
|
}
|
|
4721
4750
|
|
|
4751
|
+
/**
|
|
4752
|
+
* @internal
|
|
4753
|
+
*/
|
|
4754
|
+
export declare interface IUiAutofocusOptions {
|
|
4755
|
+
refocusKey?: unknown;
|
|
4756
|
+
initialFocus?: string | React_2.RefObject<HTMLElement>;
|
|
4757
|
+
}
|
|
4758
|
+
|
|
4722
4759
|
/**
|
|
4723
4760
|
* @internal
|
|
4724
4761
|
*/
|
|
@@ -4733,6 +4770,33 @@ export declare interface IUiChipAccessibilityConfig extends IAccessibilityConfig
|
|
|
4733
4770
|
deleteAriaLabel?: string;
|
|
4734
4771
|
}
|
|
4735
4772
|
|
|
4773
|
+
/**
|
|
4774
|
+
* @internal
|
|
4775
|
+
*/
|
|
4776
|
+
export declare interface IUiFocusHelperConnectors<T extends HTMLElement = HTMLElement> {
|
|
4777
|
+
ref?: React_2.Ref<T>;
|
|
4778
|
+
onKeyDown?: (e: React_2.KeyboardEvent) => void;
|
|
4779
|
+
}
|
|
4780
|
+
|
|
4781
|
+
/**
|
|
4782
|
+
* @internal
|
|
4783
|
+
*/
|
|
4784
|
+
export declare type IUiFocusManagerProps = {
|
|
4785
|
+
enableAutofocus?: boolean | IUiAutofocusOptions;
|
|
4786
|
+
enableFocusTrap?: boolean;
|
|
4787
|
+
enableReturnFocusOnUnmount?: boolean | IUiReturnFocusOnUnmountOptions;
|
|
4788
|
+
tabOutHandler?: (event: React_2.KeyboardEvent) => void;
|
|
4789
|
+
children: React_2.ReactNode;
|
|
4790
|
+
};
|
|
4791
|
+
|
|
4792
|
+
/**
|
|
4793
|
+
* @internal
|
|
4794
|
+
*/
|
|
4795
|
+
export declare interface IUiLinkProps extends Omit<React_2.HTMLProps<HTMLAnchorElement>, "className"> {
|
|
4796
|
+
variant: "primary" | "secondary" | "inverse";
|
|
4797
|
+
flipUnderline?: boolean;
|
|
4798
|
+
}
|
|
4799
|
+
|
|
4736
4800
|
/**
|
|
4737
4801
|
* @internal
|
|
4738
4802
|
*/
|
|
@@ -4945,6 +5009,32 @@ export declare interface IUiMenuStaticItemProps<T extends IUiMenuItemData = obje
|
|
|
4945
5009
|
item: IUiMenuStaticItem<T>;
|
|
4946
5010
|
}
|
|
4947
5011
|
|
|
5012
|
+
/**
|
|
5013
|
+
* @internal
|
|
5014
|
+
*/
|
|
5015
|
+
export declare interface IUiNavigationBypassProps {
|
|
5016
|
+
items: IUiNavigationItem[];
|
|
5017
|
+
label: string;
|
|
5018
|
+
onItemClick?: (item: IUiNavigationItem) => void;
|
|
5019
|
+
}
|
|
5020
|
+
|
|
5021
|
+
/**
|
|
5022
|
+
* @internal
|
|
5023
|
+
*/
|
|
5024
|
+
export declare interface IUiNavigationItem {
|
|
5025
|
+
id: string;
|
|
5026
|
+
name: string;
|
|
5027
|
+
targetId: string;
|
|
5028
|
+
tabIndex?: number;
|
|
5029
|
+
}
|
|
5030
|
+
|
|
5031
|
+
/**
|
|
5032
|
+
* @internal
|
|
5033
|
+
*/
|
|
5034
|
+
export declare interface IUiReturnFocusOnUnmountOptions {
|
|
5035
|
+
returnFocusTo?: string | React_2.RefObject<HTMLElement>;
|
|
5036
|
+
}
|
|
5037
|
+
|
|
4948
5038
|
/**
|
|
4949
5039
|
* @internal
|
|
4950
5040
|
*/
|
|
@@ -4952,6 +5042,16 @@ export declare interface IUiSettings {
|
|
|
4952
5042
|
displayAccountPage: boolean;
|
|
4953
5043
|
}
|
|
4954
5044
|
|
|
5045
|
+
/**
|
|
5046
|
+
* @internal
|
|
5047
|
+
*/
|
|
5048
|
+
export declare interface IUseKeyboardNavigationTargetProps {
|
|
5049
|
+
navigationId: string;
|
|
5050
|
+
label?: string;
|
|
5051
|
+
tabIndex?: number;
|
|
5052
|
+
onFocus?: () => void;
|
|
5053
|
+
}
|
|
5054
|
+
|
|
4955
5055
|
/**
|
|
4956
5056
|
* @internal
|
|
4957
5057
|
*/
|
|
@@ -5302,6 +5402,11 @@ export declare class MultiSelectListItem extends PureComponent<IMultiSelectListI
|
|
|
5302
5402
|
private renderOnly;
|
|
5303
5403
|
}
|
|
5304
5404
|
|
|
5405
|
+
/**
|
|
5406
|
+
* @internal
|
|
5407
|
+
*/
|
|
5408
|
+
export declare type NavigationDirection = "forward" | "backward";
|
|
5409
|
+
|
|
5305
5410
|
/**
|
|
5306
5411
|
* @internal
|
|
5307
5412
|
*/
|
|
@@ -5524,6 +5629,11 @@ export declare type RecurrenceTypeKey = keyof typeof RECURRENCE_TYPES;
|
|
|
5524
5629
|
*/
|
|
5525
5630
|
export declare const relatedHeader: IDateDatasetHeader;
|
|
5526
5631
|
|
|
5632
|
+
/**
|
|
5633
|
+
* @internal
|
|
5634
|
+
*/
|
|
5635
|
+
export declare const resolveRef: (ref: string | React_2.RefObject<HTMLElement> | undefined | null) => HTMLElement;
|
|
5636
|
+
|
|
5527
5637
|
/**
|
|
5528
5638
|
* @internal
|
|
5529
5639
|
*/
|
|
@@ -5696,6 +5806,18 @@ export declare function shouldEnableNewNavigation(featureFlags: ISettings): bool
|
|
|
5696
5806
|
*/
|
|
5697
5807
|
export declare function shouldHidePPExperience(featureFlags: ISettings): boolean;
|
|
5698
5808
|
|
|
5809
|
+
/**
|
|
5810
|
+
* Simple recurrence type mapping function.
|
|
5811
|
+
*
|
|
5812
|
+
* Maps cron expressions to recurrence types based on simple fixed patterns.
|
|
5813
|
+
* Any cron expression that doesn't match the standard patterns will be classified as CRON (custom).
|
|
5814
|
+
* We are deliberately using just a few simple patterns to avoid complexity.
|
|
5815
|
+
* Users can still use CRON for any customization.
|
|
5816
|
+
*
|
|
5817
|
+
* @internal
|
|
5818
|
+
*/
|
|
5819
|
+
export declare const simpleRecurrenceTypeMappingFn: (_date?: Date | null, cronExpression?: string, allowHourlyRecurrence?: boolean, _showInheritValue?: boolean, weekStart?: WeekStart) => RecurrenceType;
|
|
5820
|
+
|
|
5699
5821
|
/**
|
|
5700
5822
|
* This widget toggles one setting on/off.
|
|
5701
5823
|
*
|
|
@@ -5928,6 +6050,11 @@ export declare interface ToastMessageContextType {
|
|
|
5928
6050
|
*/
|
|
5929
6051
|
export declare const ToastMessages: React_2.FC;
|
|
5930
6052
|
|
|
6053
|
+
/**
|
|
6054
|
+
* @internal
|
|
6055
|
+
*/
|
|
6056
|
+
export declare type TooltipArrowPlacement = "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
|
|
6057
|
+
|
|
5931
6058
|
/**
|
|
5932
6059
|
* @internal
|
|
5933
6060
|
*/
|
|
@@ -5979,6 +6106,15 @@ export declare const Typography: React_2.FC<ITypographyProps>;
|
|
|
5979
6106
|
*/
|
|
5980
6107
|
export declare type TypographyTagName = "h1" | "h2" | "h3" | "p";
|
|
5981
6108
|
|
|
6109
|
+
/**
|
|
6110
|
+
* Wrapper that focuses the first focusable child when it mounts, or when `refocusKey` changes.
|
|
6111
|
+
*
|
|
6112
|
+
* @internal
|
|
6113
|
+
*/
|
|
6114
|
+
export declare const UiAutofocus: React_2.FC<{
|
|
6115
|
+
children: React_2.ReactNode;
|
|
6116
|
+
} & IUiAutofocusOptions>;
|
|
6117
|
+
|
|
5982
6118
|
/**
|
|
5983
6119
|
* @internal
|
|
5984
6120
|
*/
|
|
@@ -5990,7 +6126,7 @@ export declare const UiButton: React_2.ForwardRefExoticComponent<UiButtonProps &
|
|
|
5990
6126
|
export declare interface UiButtonProps {
|
|
5991
6127
|
id?: string;
|
|
5992
6128
|
size?: SizeSmall | SizeMedium | SizeLarge;
|
|
5993
|
-
variant?: VariantPrimary | VariantSecondary | VariantTertiary | VariantPopOut | VariantDanger;
|
|
6129
|
+
variant?: VariantPrimary | VariantSecondary | VariantTertiary | VariantPopOut | VariantDanger | VariantTooltip;
|
|
5994
6130
|
iconBefore?: IconType;
|
|
5995
6131
|
iconAfter?: IconType;
|
|
5996
6132
|
label: string;
|
|
@@ -6030,41 +6166,14 @@ export declare interface UiChipProps {
|
|
|
6030
6166
|
/**
|
|
6031
6167
|
* @internal
|
|
6032
6168
|
*/
|
|
6033
|
-
export declare const
|
|
6169
|
+
export declare const UiFocusManager: React_2.FC<IUiFocusManagerProps>;
|
|
6034
6170
|
|
|
6035
6171
|
/**
|
|
6036
6172
|
* @internal
|
|
6037
6173
|
*/
|
|
6038
|
-
export declare
|
|
6039
|
-
children:
|
|
6040
|
-
|
|
6041
|
-
onDeactivate?: () => void;
|
|
6042
|
-
/**
|
|
6043
|
-
* Specify the element to return focus to when the trap is deactivated/closed.
|
|
6044
|
-
* If a string is provided, the focus will be returned to the element with the given id.
|
|
6045
|
-
* If a ref is provided, the focus will be returned to the element referenced by the ref.
|
|
6046
|
-
*/
|
|
6047
|
-
returnFocusTo?: React_2.RefObject<HTMLElement> | string;
|
|
6048
|
-
/**
|
|
6049
|
-
* If true, the focus will be returned to the element referenced by the returnFocusTo prop when the trap is unmounted.
|
|
6050
|
-
*/
|
|
6051
|
-
returnFocusOnUnmount?: boolean;
|
|
6052
|
-
/**
|
|
6053
|
-
* Specify the element that should receive focus when the trap is activated.
|
|
6054
|
-
* If not provided, the first focusable element will be focused.
|
|
6055
|
-
*/
|
|
6056
|
-
initialFocus?: React_2.RefObject<HTMLElement> | string;
|
|
6057
|
-
/**
|
|
6058
|
-
* You can retrigger focusing on `initialFocus` by changing the value of this key.
|
|
6059
|
-
*/
|
|
6060
|
-
refocusKey?: unknown;
|
|
6061
|
-
/**
|
|
6062
|
-
* Specify a custom keyboard navigation handler.
|
|
6063
|
-
* If not provided, the default keyboard navigation handler will be used.
|
|
6064
|
-
*/
|
|
6065
|
-
customKeyboardNavigationHandler?: (event: React_2.KeyboardEvent) => void;
|
|
6066
|
-
isTabCaught?: boolean;
|
|
6067
|
-
}
|
|
6174
|
+
export declare const UiFocusTrap: React_3.FC<{
|
|
6175
|
+
children: React_3.ReactNode;
|
|
6176
|
+
}>;
|
|
6068
6177
|
|
|
6069
6178
|
/**
|
|
6070
6179
|
* @internal
|
|
@@ -6102,6 +6211,11 @@ export declare interface UiIconProps {
|
|
|
6102
6211
|
ariaHidden?: boolean;
|
|
6103
6212
|
}
|
|
6104
6213
|
|
|
6214
|
+
/**
|
|
6215
|
+
* @internal
|
|
6216
|
+
*/
|
|
6217
|
+
export declare const UiLink: React_2.FC<IUiLinkProps>;
|
|
6218
|
+
|
|
6105
6219
|
/**
|
|
6106
6220
|
* An accessible listbox component that can be navigated by keyboard.
|
|
6107
6221
|
* Usable in a <Dropdown /> component.
|
|
@@ -6187,6 +6301,11 @@ export declare interface UiMenuProps<T extends IUiMenuItemData = object, M = obj
|
|
|
6187
6301
|
menuCtxData?: M;
|
|
6188
6302
|
}
|
|
6189
6303
|
|
|
6304
|
+
/**
|
|
6305
|
+
* @internal
|
|
6306
|
+
*/
|
|
6307
|
+
export declare const UiNavigationBypass: React_2.FC<IUiNavigationBypassProps>;
|
|
6308
|
+
|
|
6190
6309
|
/**
|
|
6191
6310
|
* @internal
|
|
6192
6311
|
*/
|
|
@@ -6232,6 +6351,13 @@ export declare interface UiPagedVirtualListSkeletonItemProps {
|
|
|
6232
6351
|
itemHeight: number;
|
|
6233
6352
|
}
|
|
6234
6353
|
|
|
6354
|
+
/**
|
|
6355
|
+
* @internal
|
|
6356
|
+
*/
|
|
6357
|
+
export declare const UiReturnFocusOnUnmount: React_2.FC<IUiReturnFocusOnUnmountOptions & {
|
|
6358
|
+
children: React_2.ReactNode;
|
|
6359
|
+
}>;
|
|
6360
|
+
|
|
6235
6361
|
/**
|
|
6236
6362
|
* @internal
|
|
6237
6363
|
*/
|
|
@@ -6275,6 +6401,14 @@ export declare interface UiTab {
|
|
|
6275
6401
|
label: string;
|
|
6276
6402
|
}
|
|
6277
6403
|
|
|
6404
|
+
/**
|
|
6405
|
+
* @internal
|
|
6406
|
+
*/
|
|
6407
|
+
export declare const UiTabOutHandler: React_3.FC<{
|
|
6408
|
+
onTabOut: () => void;
|
|
6409
|
+
children: React_3.ReactNode;
|
|
6410
|
+
}>;
|
|
6411
|
+
|
|
6278
6412
|
/**
|
|
6279
6413
|
* @internal
|
|
6280
6414
|
*/
|
|
@@ -6301,32 +6435,53 @@ export declare interface UiTabsProps {
|
|
|
6301
6435
|
/**
|
|
6302
6436
|
* @internal
|
|
6303
6437
|
*/
|
|
6304
|
-
export declare
|
|
6438
|
+
export declare const UiTooltip: React_2.FC<UiTooltipProps>;
|
|
6305
6439
|
|
|
6306
6440
|
/**
|
|
6307
6441
|
* @internal
|
|
6308
6442
|
*/
|
|
6309
|
-
export declare
|
|
6443
|
+
export declare interface UiTooltipProps {
|
|
6444
|
+
/** Position of the tooltip arrow relative to the tooltip, controls also the position of the tooltip */
|
|
6445
|
+
arrowPlacement?: TooltipArrowPlacement;
|
|
6446
|
+
/** Anchor element to be used as reference for the tooltip */
|
|
6447
|
+
anchor: React_2.ReactNode;
|
|
6448
|
+
/** Content to be rendered inside the tooltip */
|
|
6449
|
+
content: React_2.ReactNode | ((args: {
|
|
6450
|
+
onClose: () => void;
|
|
6451
|
+
}) => React_2.ReactNode);
|
|
6452
|
+
/** Whether tooltip should show on hover, focus or click */
|
|
6453
|
+
triggerBy?: Array<"hover" | "focus" | "click">;
|
|
6454
|
+
/** Delay in milliseconds before showing tooltip on hover */
|
|
6455
|
+
hoverOpenDelay?: number;
|
|
6456
|
+
/** Delay in milliseconds before hiding tooltip after hover out */
|
|
6457
|
+
hoverCloseDelay?: number;
|
|
6458
|
+
/** Whether to show the arrow pointer */
|
|
6459
|
+
showArrow?: boolean;
|
|
6460
|
+
/** Width of the tooltip in pixels, or 'auto' to match anchor width */
|
|
6461
|
+
width?: number | "auto";
|
|
6462
|
+
/** Distance in pixels between tooltip and anchor element, default is arrow height */
|
|
6463
|
+
offset?: number;
|
|
6464
|
+
/** Whether tooltip should automatically adjust position if it would render outside viewport */
|
|
6465
|
+
optimalPlacement?: boolean;
|
|
6466
|
+
/** ARIA attributes configuration for accessibility */
|
|
6467
|
+
accessibilityConfig?: IAccessibilityConfigBase;
|
|
6468
|
+
}
|
|
6310
6469
|
|
|
6311
6470
|
/**
|
|
6312
|
-
* Unwraps items from group containers into a flat array.
|
|
6313
6471
|
* @internal
|
|
6314
6472
|
*/
|
|
6315
|
-
export declare
|
|
6473
|
+
export declare type UnitsType = "px" | "%" | "rem" | "em";
|
|
6316
6474
|
|
|
6317
6475
|
/**
|
|
6318
|
-
* Focuses the element on mount or when `refocusKey` changes.
|
|
6319
|
-
*
|
|
6320
6476
|
* @internal
|
|
6321
6477
|
*/
|
|
6322
|
-
export declare const
|
|
6478
|
+
export declare const unrelatedHeader: IDateDatasetHeader;
|
|
6323
6479
|
|
|
6324
6480
|
/**
|
|
6325
|
-
*
|
|
6326
|
-
*
|
|
6481
|
+
* Unwraps items from group containers into a flat array.
|
|
6327
6482
|
* @internal
|
|
6328
6483
|
*/
|
|
6329
|
-
export declare
|
|
6484
|
+
export declare function unwrapGroupItems<T extends IUiMenuItemData = object>(items: IUiMenuItem<T>[]): IUiMenuItem<T>[];
|
|
6330
6485
|
|
|
6331
6486
|
/**
|
|
6332
6487
|
* A helper hook to provide not just state/setState pair but also a debounced version of the state.
|
|
@@ -6409,6 +6564,13 @@ export declare function useInvertableSelectionStatusText<T>(selectedItems: T[],
|
|
|
6409
6564
|
*/
|
|
6410
6565
|
export declare const useIsZoomed: (baseZoomLevel?: number) => boolean;
|
|
6411
6566
|
|
|
6567
|
+
/**
|
|
6568
|
+
* @internal
|
|
6569
|
+
*/
|
|
6570
|
+
export declare const useKeyboardNavigationTarget: ({ navigationId, label, tabIndex, onFocus, }: IUseKeyboardNavigationTargetProps) => {
|
|
6571
|
+
targetRef: (node: HTMLElement | null) => void;
|
|
6572
|
+
};
|
|
6573
|
+
|
|
6412
6574
|
/**
|
|
6413
6575
|
* @internal
|
|
6414
6576
|
*/
|
|
@@ -6444,7 +6606,7 @@ export declare const useMediaQuery: (mediaQueryName: keyof IMediaQueries) => boo
|
|
|
6444
6606
|
*
|
|
6445
6607
|
* @internal
|
|
6446
6608
|
*/
|
|
6447
|
-
export declare const useOverlayController: () => OverlayController;
|
|
6609
|
+
export declare const useOverlayController: () => OverlayController | undefined;
|
|
6448
6610
|
|
|
6449
6611
|
/**
|
|
6450
6612
|
* Hook to get the css `z-index` property for given overlay.
|
|
@@ -6455,7 +6617,16 @@ export declare const useOverlayController: () => OverlayController;
|
|
|
6455
6617
|
*
|
|
6456
6618
|
* @internal
|
|
6457
6619
|
*/
|
|
6458
|
-
export declare const useOverlayZIndex: (uuid: string) => number;
|
|
6620
|
+
export declare const useOverlayZIndex: (uuid: string) => number | undefined;
|
|
6621
|
+
|
|
6622
|
+
/**
|
|
6623
|
+
* Registers a new overlay and returns its z-index
|
|
6624
|
+
*
|
|
6625
|
+
* @returns the overlay's z-index
|
|
6626
|
+
*
|
|
6627
|
+
* @internal
|
|
6628
|
+
*/
|
|
6629
|
+
export declare function useOverlayZIndexWithRegister(): number;
|
|
6459
6630
|
|
|
6460
6631
|
/**
|
|
6461
6632
|
* Hook to consume responsive context.
|
|
@@ -6488,6 +6659,33 @@ export declare interface UseToastMessageType {
|
|
|
6488
6659
|
removeAllMessages: () => void;
|
|
6489
6660
|
}
|
|
6490
6661
|
|
|
6662
|
+
/**
|
|
6663
|
+
* Provides a ref that will autofocus the element when it is mounted, or when `refocusKey` changes.
|
|
6664
|
+
*
|
|
6665
|
+
* @internal
|
|
6666
|
+
*/
|
|
6667
|
+
export declare const useUiAutofocusConnectors: <T extends HTMLElement = HTMLElement>({ refocusKey, initialFocus, }?: IUiAutofocusOptions) => IUiFocusHelperConnectors<T>;
|
|
6668
|
+
|
|
6669
|
+
/**
|
|
6670
|
+
* @internal
|
|
6671
|
+
*/
|
|
6672
|
+
export declare const useUiFocusManagerConnectors: <T extends HTMLElement = HTMLElement>({ enableFocusTrap, enableAutofocus, enableReturnFocusOnUnmount, tabOutHandler, }: Omit<IUiFocusManagerProps, "children">) => IUiFocusHelperConnectors<T>;
|
|
6673
|
+
|
|
6674
|
+
/**
|
|
6675
|
+
* @internal
|
|
6676
|
+
*/
|
|
6677
|
+
export declare const useUiFocusTrapConnectors: <T extends HTMLElement = HTMLElement>() => IUiFocusHelperConnectors<T>;
|
|
6678
|
+
|
|
6679
|
+
/**
|
|
6680
|
+
* @internal
|
|
6681
|
+
*/
|
|
6682
|
+
export declare const useUiReturnFocusOnUnmountConnectors: <T extends HTMLElement = HTMLElement>({ returnFocusTo, }?: IUiReturnFocusOnUnmountOptions) => IUiFocusHelperConnectors<T>;
|
|
6683
|
+
|
|
6684
|
+
/**
|
|
6685
|
+
* @internal
|
|
6686
|
+
*/
|
|
6687
|
+
export declare const useUiTabOutHandlerConnectors: <T extends HTMLElement = HTMLElement>(handler?: (event: React_3.KeyboardEvent) => void) => IUiFocusHelperConnectors<T>;
|
|
6688
|
+
|
|
6491
6689
|
/**
|
|
6492
6690
|
* @internal
|
|
6493
6691
|
* Hook to access zoom level and viewport info
|
|
@@ -6519,6 +6717,11 @@ export declare type VariantSecondary = "secondary";
|
|
|
6519
6717
|
*/
|
|
6520
6718
|
export declare type VariantTertiary = "tertiary";
|
|
6521
6719
|
|
|
6720
|
+
/**
|
|
6721
|
+
* @internal
|
|
6722
|
+
*/
|
|
6723
|
+
export declare type VariantTooltip = "tooltip";
|
|
6724
|
+
|
|
6522
6725
|
/**
|
|
6523
6726
|
* @internal
|
|
6524
6727
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCodemirrorOptions.d.ts","sourceRoot":"","sources":["../../../src/syntaxHighlightingInput/hooks/useCodemirrorOptions.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,qBAAqB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,wBAAgB,oBAAoB,CAAC,EAAE,eAAe,EAAE,SAAS,EAAE,EAAE,qBAAqB;;;;
|
|
1
|
+
{"version":3,"file":"useCodemirrorOptions.d.ts","sourceRoot":"","sources":["../../../src/syntaxHighlightingInput/hooks/useCodemirrorOptions.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,qBAAqB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,wBAAgB,oBAAoB,CAAC,EAAE,eAAe,EAAE,SAAS,EAAE,EAAE,qBAAqB;;;;EAiCzF"}
|
|
@@ -6,7 +6,17 @@ export function useCodemirrorOptions({ placeholderText, labelText }) {
|
|
|
6
6
|
const disableAutofocusExtension = useMemo(() => EditorView.contentAttributes.of({ autofocus: "false" }), []);
|
|
7
7
|
// Placeholder
|
|
8
8
|
const placeholderExtension = useMemo(() => {
|
|
9
|
-
return placeholderText
|
|
9
|
+
return placeholderText
|
|
10
|
+
? placeholder(() => {
|
|
11
|
+
const dom = document.createElement("span");
|
|
12
|
+
dom.textContent = placeholderText;
|
|
13
|
+
// Hide from screen readers
|
|
14
|
+
dom.setAttribute("aria-hidden", "true");
|
|
15
|
+
// Prevent default aria-label
|
|
16
|
+
dom.removeAttribute("aria-label");
|
|
17
|
+
return dom;
|
|
18
|
+
})
|
|
19
|
+
: [];
|
|
10
20
|
}, [placeholderText]);
|
|
11
21
|
// ARIA
|
|
12
22
|
const ariaExtension = EditorView.contentAttributes.of({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCodemirrorOptions.js","sourceRoot":"","sources":["../../../src/syntaxHighlightingInput/hooks/useCodemirrorOptions.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAO3D,MAAM,UAAU,oBAAoB,CAAC,EAAE,eAAe,EAAE,SAAS,EAAyB;IACtF,oBAAoB;IACpB,MAAM,yBAAyB,GAAG,OAAO,CACrC,GAAG,EAAE,CAAC,UAAU,CAAC,iBAAiB,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAC7D,EAAE,CACL,CAAC;IAEF,cAAc;IACd,MAAM,oBAAoB,GAAG,OAAO,CAAC,GAAG,EAAE;QACtC,OAAO,eAAe,CAAC,CAAC,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"useCodemirrorOptions.js","sourceRoot":"","sources":["../../../src/syntaxHighlightingInput/hooks/useCodemirrorOptions.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAO3D,MAAM,UAAU,oBAAoB,CAAC,EAAE,eAAe,EAAE,SAAS,EAAyB;IACtF,oBAAoB;IACpB,MAAM,yBAAyB,GAAG,OAAO,CACrC,GAAG,EAAE,CAAC,UAAU,CAAC,iBAAiB,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAC7D,EAAE,CACL,CAAC;IAEF,cAAc;IACd,MAAM,oBAAoB,GAAG,OAAO,CAAC,GAAG,EAAE;QACtC,OAAO,eAAe;YAClB,CAAC,CAAC,WAAW,CAAC,GAAG,EAAE;gBACb,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;gBAC3C,GAAG,CAAC,WAAW,GAAG,eAAe,CAAC;gBAClC,2BAA2B;gBAC3B,GAAG,CAAC,YAAY,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;gBACxC,6BAA6B;gBAC7B,GAAG,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC;gBAClC,OAAO,GAAG,CAAC;YACf,CAAC,CAAC;YACJ,CAAC,CAAC,EAAE,CAAC;IACb,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;IAEtB,OAAO;IACP,MAAM,aAAa,GAAG,UAAU,CAAC,iBAAiB,CAAC,EAAE,CAAC;QAClD,YAAY,EAAE,SAAS,IAAI,eAAe;QAC1C,QAAQ,EAAE,GAAG,EAAE,gCAAgC;KAClD,CAAC,CAAC;IAEH,OAAO;QACH,yBAAyB;QACzB,oBAAoB;QACpB,aAAa;KAChB,CAAC;AACN,CAAC"}
|