@gooddata/sdk-ui-kit 11.68.0-alpha.1 → 11.68.0-alpha.11
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/LICENSE +1 -1
- package/NOTICE +9899 -0
- package/esm/@ui/@types/icon.d.ts +1 -1
- package/esm/@ui/@types/icon.d.ts.map +1 -1
- package/esm/@ui/UiAsyncTable/UiAsyncTable/SkeletonItemFactory.d.ts.map +1 -1
- package/esm/@ui/UiAsyncTable/UiAsyncTable/SkeletonItemFactory.js +2 -2
- package/esm/@ui/UiConfigEditor/UiConfigEditor.d.ts +1 -1
- package/esm/@ui/UiConfigEditor/UiConfigEditor.d.ts.map +1 -1
- package/esm/@ui/UiConfigEditor/UiConfigEditor.js +62 -25
- package/esm/@ui/UiConfigEditor/configEditorDiagnostics.d.ts +10 -0
- package/esm/@ui/UiConfigEditor/configEditorDiagnostics.d.ts.map +1 -0
- package/esm/@ui/UiConfigEditor/configEditorDiagnostics.js +65 -0
- package/esm/@ui/UiConfigEditor/configEditorYamlIndent.d.ts +8 -0
- package/esm/@ui/UiConfigEditor/configEditorYamlIndent.d.ts.map +1 -0
- package/esm/@ui/UiConfigEditor/configEditorYamlIndent.js +33 -0
- package/esm/@ui/UiConfigEditor/types.d.ts +9 -6
- package/esm/@ui/UiConfigEditor/types.d.ts.map +1 -1
- package/esm/@ui/UiDrawer/UiDrawer.d.ts.map +1 -1
- package/esm/@ui/UiDrawer/UiDrawer.js +14 -4
- package/esm/@ui/UiFloatingElement/UiFloatingElement.d.ts.map +1 -1
- package/esm/@ui/UiFloatingElement/UiFloatingElement.js +1 -1
- package/esm/@ui/UiFocusManager/UiAutofocus.d.ts.map +1 -1
- package/esm/@ui/UiFocusManager/UiAutofocus.js +22 -2
- package/esm/@ui/UiFocusManager/UiModalOwner.d.ts +11 -0
- package/esm/@ui/UiFocusManager/UiModalOwner.d.ts.map +1 -0
- package/esm/@ui/UiFocusManager/UiModalOwner.js +18 -0
- package/esm/@ui/UiIcon/icons.d.ts.map +1 -1
- package/esm/@ui/UiIcon/icons.js +15 -0
- package/esm/@ui/UiListbox/defaults/DefaultUiListboxInteractiveItemComponent.d.ts.map +1 -1
- package/esm/@ui/UiListbox/defaults/DefaultUiListboxInteractiveItemComponent.js +5 -3
- package/esm/@ui/UiListbox/itemTitle.d.ts +5 -0
- package/esm/@ui/UiListbox/itemTitle.d.ts.map +1 -0
- package/esm/@ui/UiListbox/itemTitle.js +4 -0
- package/esm/@ui/UiListbox/types.d.ts +4 -0
- package/esm/@ui/UiListbox/types.d.ts.map +1 -1
- package/esm/@ui/UiModalDialog/UiDialogHeader.d.ts +1 -9
- package/esm/@ui/UiModalDialog/UiDialogHeader.d.ts.map +1 -1
- package/esm/@ui/UiModalDialog/UiDialogHeader.js +5 -4
- package/esm/@ui/UiModalDialog/UiModalDialog.d.ts +16 -2
- package/esm/@ui/UiModalDialog/UiModalDialog.d.ts.map +1 -1
- package/esm/@ui/UiModalDialog/UiModalDialog.js +13 -5
- package/esm/@ui/UiPagedVirtualList/UiPagedVirtualList.d.ts +1 -0
- package/esm/@ui/UiPagedVirtualList/UiPagedVirtualList.d.ts.map +1 -1
- package/esm/@ui/UiPagedVirtualList/UiPagedVirtualList.js +7 -3
- package/esm/@ui/UiSearchableSelect/UiSearchableSelect.d.ts +14 -1
- package/esm/@ui/UiSearchableSelect/UiSearchableSelect.d.ts.map +1 -1
- package/esm/@ui/UiSearchableSelect/UiSearchableSelect.js +80 -38
- package/esm/@ui/UiSearchableSelect/UiSearchableSelectContext.d.ts +14 -2
- package/esm/@ui/UiSearchableSelect/UiSearchableSelectContext.d.ts.map +1 -1
- package/esm/@ui/UiSearchableSelect/UiSearchableSelectFooter.d.ts +13 -0
- package/esm/@ui/UiSearchableSelect/UiSearchableSelectFooter.d.ts.map +1 -0
- package/esm/@ui/UiSearchableSelect/UiSearchableSelectFooter.js +17 -0
- package/esm/@ui/UiSearchableSelect/UiSearchableSelectItem.d.ts +6 -0
- package/esm/@ui/UiSearchableSelect/UiSearchableSelectItem.d.ts.map +1 -1
- package/esm/@ui/UiSearchableSelect/UiSearchableSelectItem.js +2 -2
- package/esm/@ui/UiSearchableSelect/UiSearchableSelectList.d.ts.map +1 -1
- package/esm/@ui/UiSearchableSelect/UiSearchableSelectList.js +9 -14
- package/esm/@ui/UiSearchableSelect/UiSearchableSelectSearch.d.ts.map +1 -1
- package/esm/@ui/UiSearchableSelect/UiSearchableSelectSearch.js +8 -12
- package/esm/@ui/UiToolbarIconButton/UiToolbarIconButton.d.ts +5 -1
- package/esm/@ui/UiToolbarIconButton/UiToolbarIconButton.d.ts.map +1 -1
- package/esm/@ui/UiToolbarIconButton/UiToolbarIconButton.js +2 -2
- package/esm/@ui/UiToolbarSelect/UiToolbarSelect.d.ts +9 -0
- package/esm/@ui/UiToolbarSelect/UiToolbarSelect.d.ts.map +1 -1
- package/esm/@ui/UiToolbarSelect/UiToolbarSelect.js +4 -2
- package/esm/Bubble/Bubble.d.ts.map +1 -1
- package/esm/Bubble/Bubble.js +3 -2
- package/esm/ChartSorting/ChartSorting.d.ts.map +1 -1
- package/esm/ChartSorting/ChartSorting.js +2 -2
- package/esm/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/esm/ColorPicker/ColorPicker.js +2 -2
- package/esm/DateDatasets/dateDatasets.d.ts.map +1 -1
- package/esm/DateDatasets/dateDatasets.js +3 -2
- package/esm/Datepicker/Datepicker.d.ts.map +1 -1
- package/esm/Datepicker/Datepicker.js +2 -2
- package/esm/DescriptionPanel/DescriptionPanel.d.ts.map +1 -1
- package/esm/DescriptionPanel/DescriptionPanel.js +2 -2
- package/esm/DescriptionPanel/MetadataList.d.ts.map +1 -1
- package/esm/DescriptionPanel/MetadataList.js +2 -3
- package/esm/Dialog/DialogBase.d.ts.map +1 -1
- package/esm/Dialog/DialogBase.js +6 -2
- package/esm/Dialog/EmbedInsightDialog/EmbedInsightDialogBase/components/NumericInput.d.ts.map +1 -1
- package/esm/Dialog/EmbedInsightDialog/EmbedInsightDialogBase/components/NumericInput.js +4 -4
- package/esm/Dialog/ShareDialog/ShareDialogBase/ShareGranteeBase.d.ts.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/ShareGranteeBase.js +2 -2
- package/esm/Dialog/ShareDialog/ShareDialogBase/types.d.ts.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/types.js +10 -10
- package/esm/Dialog/ShareDialog/ShareDialogBase/useShareDialogBase.d.ts.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/useShareDialogBase.js +3 -3
- package/esm/Dialog/ShareDialog/ShareDialogBase/utils.js +3 -3
- package/esm/DocumentHeader/DocumentHeader.js +3 -3
- package/esm/Dropdown/DropdownInvertableSelect.d.ts.map +1 -1
- package/esm/Dropdown/DropdownInvertableSelect.js +2 -2
- package/esm/Dropdown/DropdownList.d.ts +2 -1
- package/esm/Dropdown/DropdownList.d.ts.map +1 -1
- package/esm/Dropdown/DropdownList.js +2 -2
- package/esm/Form/InputWithNumberFormat.js +2 -2
- package/esm/Header/Header.d.ts.map +1 -1
- package/esm/Header/Header.js +5 -3
- package/esm/Header/HeaderHelp.d.ts.map +1 -1
- package/esm/Header/HeaderHelp.js +2 -2
- package/esm/Hyperlink/Hyperlink.d.ts.map +1 -1
- package/esm/Hyperlink/Hyperlink.js +3 -3
- package/esm/LoadingDots/LoadingDots.d.ts.map +1 -1
- package/esm/LoadingDots/LoadingDots.js +3 -3
- package/esm/Overlay/FullScreenOverlay.js +3 -3
- package/esm/Overlay/Overlay.d.ts.map +1 -1
- package/esm/Overlay/Overlay.js +19 -12
- package/esm/RecurrenceForm/utils/utils.d.ts.map +1 -1
- package/esm/RecurrenceForm/utils/utils.js +4 -3
- package/esm/ResponsiveText/ResponsiveText.js +2 -2
- package/esm/RichText/plugins/rehype-references.js +1 -1
- package/esm/Timezone/TimezoneSelect.d.ts +7 -0
- package/esm/Timezone/TimezoneSelect.d.ts.map +1 -1
- package/esm/Timezone/TimezoneSelect.js +9 -3
- package/esm/Timezone/timezones.d.ts +4 -0
- package/esm/Timezone/timezones.d.ts.map +1 -1
- package/esm/Timezone/timezones.js +11 -5
- package/esm/index.d.ts +5 -3
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +4 -2
- package/esm/sdk-ui-kit.d.ts +102 -40
- package/esm/syntaxHighlightingInput/hooks/useCodemirrorKeymap.d.ts +2 -0
- package/esm/syntaxHighlightingInput/hooks/useCodemirrorKeymap.d.ts.map +1 -1
- package/esm/syntaxHighlightingInput/hooks/useCodemirrorKeymap.js +6 -3
- package/esm/syntaxHighlightingInput/syntaxErrorLinter.d.ts +2 -2
- package/esm/syntaxHighlightingInput/syntaxErrorLinter.d.ts.map +1 -1
- package/esm/syntaxHighlightingInput/syntaxErrorLinter.js +10 -5
- package/esm/utils/overlay.d.ts.map +1 -1
- package/esm/utils/overlay.js +5 -4
- package/package.json +13 -12
- package/src/@ui/UiListbox/UiListbox.scss +15 -2
- package/src/@ui/UiModalDialog/UiModalDialog.scss +49 -7
- package/src/@ui/UiResizableSidebar/UiResizableSidebarNavigation.scss +10 -0
- package/src/@ui/UiSearchableSelect/UiSearchableSelect.scss +44 -0
- package/src/@ui/UiToast/UiToast.scss +7 -0
- package/src/@ui/UiToolbarSelect/UiToolbarSelect.scss +5 -0
- package/styles/css/avenirFontPatch.css +111 -0
- package/styles/css/avenirFontPatch.css.map +1 -0
- package/styles/css/main.css +215 -6
- package/styles/css/main.css.map +1 -1
- package/styles/css/richText.css +2 -1
- package/styles/css/richText.css.map +1 -1
- package/styles/scss/avenirFontPatch.scss +63 -0
- package/styles/scss/main.scss +2 -1
- package/styles/scss/richText.scss +2 -1
- package/esm/@ui/UiConfigEditor/configEditorWarnings.d.ts +0 -10
- package/esm/@ui/UiConfigEditor/configEditorWarnings.d.ts.map +0 -1
- package/esm/@ui/UiConfigEditor/configEditorWarnings.js +0 -42
package/esm/sdk-ui-kit.d.ts
CHANGED
|
@@ -905,13 +905,6 @@ export declare const DialogBase: NamedExoticComponent<IDialogBaseProps>;
|
|
|
905
905
|
*/
|
|
906
906
|
export declare function DialogCloseButton(props: IDialogCloseButtonProps): JSX.Element;
|
|
907
907
|
|
|
908
|
-
/**
|
|
909
|
-
* Title sizing variant.
|
|
910
|
-
*
|
|
911
|
-
* @internal
|
|
912
|
-
*/
|
|
913
|
-
export declare type DialogHeaderTitleSize = "default" | "large";
|
|
914
|
-
|
|
915
908
|
/**
|
|
916
909
|
* @internal
|
|
917
910
|
*/
|
|
@@ -967,7 +960,7 @@ export declare function DropdownInvertableSelect<T>(props: IDropdownInvertableSe
|
|
|
967
960
|
* @internal
|
|
968
961
|
*
|
|
969
962
|
*/
|
|
970
|
-
export declare function DropdownList<T>({ id, title, className, tabsClassName, width, height, maxHeight, onKeyDownSelect, onKeyDownConfirm, isMobile, isLoading, items, itemsCount, itemHeight, containerPadding, mobileItemHeight, showSearch, disableAutofocus, searchString, searchLabel, searchPlaceholder, searchFieldSize, onSearch, showTabs, tabs, selectedTabId, onTabSelect, renderNoData, footer, closeDropdown, accessibilityConfig, renderItem, body, itemHeightGetter, itemTitleGetter, getIsItemSelected, loadNextPage, hasNextPage, skeletonItemsCount, shouldLoadNextPage, isNextPageLoading, SkeletonItem, onScroll, scrollToItem, scrollToItemKeyExtractor, }: IDropdownListProps<T>): ReactElement;
|
|
963
|
+
export declare function DropdownList<T>({ id, title, className, tabsClassName, width, height, maxHeight, onKeyDownSelect, onKeyDownConfirm, isMobile, isLoading, items, itemsCount, itemHeight, containerPadding, listPadding, mobileItemHeight, showSearch, disableAutofocus, searchString, searchLabel, searchPlaceholder, searchFieldSize, onSearch, showTabs, tabs, selectedTabId, onTabSelect, renderNoData, footer, closeDropdown, accessibilityConfig, renderItem, body, itemHeightGetter, itemTitleGetter, getIsItemSelected, loadNextPage, hasNextPage, skeletonItemsCount, shouldLoadNextPage, isNextPageLoading, SkeletonItem, onScroll, scrollToItem, scrollToItemKeyExtractor, }: IDropdownListProps<T>): ReactElement;
|
|
971
964
|
|
|
972
965
|
/**
|
|
973
966
|
* @internal
|
|
@@ -1405,6 +1398,10 @@ export declare const getSiblingItems: <T extends IUiMenuItemData = object>(items
|
|
|
1405
1398
|
* Returns the timezone from the curated list matching the provided IANA timezone ID,
|
|
1406
1399
|
* or undefined when the ID is not in the curated list.
|
|
1407
1400
|
*
|
|
1401
|
+
* @remarks
|
|
1402
|
+
* Legacy aliases of curated timezones (e.g. "Europe/Kiev" stored before the rename) resolve
|
|
1403
|
+
* to the canonical item, so the returned `id` may differ from the provided one.
|
|
1404
|
+
*
|
|
1408
1405
|
* @internal
|
|
1409
1406
|
*/
|
|
1410
1407
|
export declare function getTimezoneById(id: string | undefined): ITimezoneItem | undefined;
|
|
@@ -2783,7 +2780,7 @@ export declare function IconTreeMap({ className, width, height, color, ariaHidde
|
|
|
2783
2780
|
/**
|
|
2784
2781
|
* @internal
|
|
2785
2782
|
*/
|
|
2786
|
-
export declare type IconType = "aiAgent" | "aiAgentDisabled" | "brain" | "brainDisabled" | "check" | "checkCircle" | "certification" | "plus" | "plusCircle" | "sync" | "alert" | "alertPaused" | "close" | "cross" | "edit" | "crossCircle" | "question" | "chevronUp" | "chevronRight" | "chevronDown" | "chevronLeft" | "date" | "navigateUp" | "navigateDown" | "navigateRight" | "navigateLeft" | "download" | "slack" | "expand" | "exclamationCircle" | "infoCircle" | "book" | "visible" | "invisible" | "lock" | "unlock" | "ai" | "aiFill" | "drawer" | "drawerEmpty" | "prohibited" | "dropDown" | "dropRight" | "clock" | "clockPaused" | "questionMark" | "upload" | "expandRectangle" | "file" | "number" | "code" | "user" | "userPlus" | "users" | "magic" | "tab" | "pauseCircle" | "filter" | "timer" | "mail" | "envelope" | "copy" | "rain" | "earth" | "globe" | "geoCollection" | "geoCollectionUpload" | "minimize" | "shrink" | "copyright" | "ellipsis" | "pencil" | "folder" | "folderSmall" | "folderPlus" | "trash" | "arrowUp" | "arrowRight" | "arrowDown" | "arrowLeft" | "levelUp" | "undo" | "redo" | "trendDown" | "trendUp" | "save" | "minus" | "minusCircle" | "percent" | "enter" | "enterRight" | "money" | "ghost" | "warning" | "home" | "settings" | "search" | "university" | "building" | "printer" | "picture" | "visualization" | "columnGroup" | "visualizationStack" | "richText" | "dashboard" | "metric" | "fact" | "ldmAttribute" | "ldmKey" | "ldmLabel" | "sharp" | "attribute" | "horn" | "cw" | "ccw" | "table" | "directionColumn" | "directionRow" | "alignLeft" | "alignCenter" | "alignRight" | "alignTop" | "alignMiddle" | "alignBottom" | "bold" | "italic" | "imageContain" | "imageCover" | "imageFill" | "header" | "genai" | "genai2" | "explainai" | "hiddenForAi" | "box" | "ellipsisVertical" | "list" | "drillTo" | "hierarchy" | "history" | "history2" | "thumbsUp" | "thumbsDown" | "send" | "visualizationArea" | "visualizationTable" | "visualizationTreemap" | "visualizationScatter" | "visualizationDonut" | "visualizationHeadline" | "visualizationColumn" | "visualizationLine" | "visualizationPyramid" | "visualizationFunnel" | "visualizationHeatmap" | "visualizationBubble" | "visualizationPie" | "visualizationBar" | "visualizationCombo" | "visualizationBullet" | "visualizationWaterfall" | "visualizationDependencywheel" | "visualizationSankey" | "visualizationPushpin" | "visualizationRepeater" | "visualizationXirr" | "link" | "externalLink" | "click" | "fileXlsx" | "filePptx" | "filePdf" | "fileImage" | "fileCsvFormatted" | "fileCsvRaw" | "aiDocument" | "recommendation" | "streamUp" | "streamDown" | "stream" | "density" | "parameter" | "pin" | "unpin" | "speechBubble" | "pieChart" | "timezone" | "sidePanelCollapse" | "sidePanel" | "sidePanelExpand" | "lineStyle" | "lineStyleSolid" | "lineStyleDashed" | "lineStyleDotted" | "lineWidth1" | "lineWidth2" | "lineWidth3" | "lineWidth4" | "linear" | "spline" | "stepped";
|
|
2783
|
+
export declare type IconType = "aiAgent" | "aiAgentDisabled" | "brain" | "brainDisabled" | "check" | "checkCircle" | "certification" | "plus" | "plusCircle" | "sync" | "alert" | "alertPaused" | "close" | "cross" | "edit" | "crossCircle" | "question" | "chevronUp" | "chevronRight" | "chevronDown" | "chevronLeft" | "date" | "navigateUp" | "navigateDown" | "navigateRight" | "navigateLeft" | "download" | "slack" | "expand" | "exclamationCircle" | "infoCircle" | "book" | "visible" | "invisible" | "lock" | "unlock" | "ai" | "aiFill" | "drawer" | "drawerEmpty" | "prohibited" | "dropDown" | "dropRight" | "clock" | "clockPaused" | "questionMark" | "upload" | "expandRectangle" | "file" | "number" | "code" | "user" | "userPlus" | "users" | "magic" | "tab" | "pauseCircle" | "filter" | "timer" | "mail" | "envelope" | "copy" | "rain" | "earth" | "globe" | "geoCollection" | "geoCollectionUpload" | "minimize" | "shrink" | "copyright" | "ellipsis" | "pencil" | "folder" | "folderSmall" | "folderPlus" | "trash" | "arrowUp" | "arrowRight" | "arrowDown" | "arrowLeft" | "levelUp" | "undo" | "redo" | "trendDown" | "trendUp" | "save" | "minus" | "minusCircle" | "percent" | "enter" | "enterRight" | "money" | "ghost" | "warning" | "home" | "settings" | "search" | "university" | "building" | "printer" | "picture" | "visualization" | "columnGroup" | "visualizationStack" | "richText" | "dashboard" | "metric" | "fact" | "ldmAttribute" | "ldmKey" | "ldmLabel" | "sharp" | "attribute" | "horn" | "cw" | "ccw" | "table" | "directionColumn" | "directionRow" | "alignLeft" | "alignCenter" | "alignRight" | "alignTop" | "alignMiddle" | "alignBottom" | "bold" | "italic" | "imageContain" | "imageCover" | "imageFill" | "header" | "genai" | "genai2" | "explainai" | "hiddenForAi" | "box" | "ellipsisVertical" | "list" | "drillTo" | "hierarchy" | "lineage" | "report" | "history" | "history2" | "thumbsUp" | "thumbsDown" | "send" | "visualizationArea" | "visualizationTable" | "visualizationTreemap" | "visualizationScatter" | "visualizationDonut" | "visualizationHeadline" | "visualizationColumn" | "visualizationLine" | "visualizationPyramid" | "visualizationFunnel" | "visualizationHeatmap" | "visualizationBubble" | "visualizationPie" | "visualizationBar" | "visualizationCombo" | "visualizationBullet" | "visualizationWaterfall" | "visualizationDependencywheel" | "visualizationSankey" | "visualizationPushpin" | "visualizationRepeater" | "visualizationXirr" | "link" | "externalLink" | "click" | "fileXlsx" | "filePptx" | "filePdf" | "fileImage" | "fileCsvFormatted" | "fileCsvRaw" | "aiDocument" | "recommendation" | "streamUp" | "streamDown" | "stream" | "density" | "parameter" | "pin" | "unpin" | "speechBubble" | "pieChart" | "timezone" | "sidePanelCollapse" | "sidePanel" | "sidePanelExpand" | "lineStyle" | "lineStyleSolid" | "lineStyleDashed" | "lineStyleDotted" | "lineWidth1" | "lineWidth2" | "lineWidth3" | "lineWidth4" | "linear" | "spline" | "stepped" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "paragraphLarge" | "paragraphMedium" | "paragraphSmall" | "regenerateWithAi" | "directionHorizontal" | "directionVertical" | "levelUpArrow";
|
|
2787
2784
|
|
|
2788
2785
|
/**
|
|
2789
2786
|
* @internal
|
|
@@ -3396,6 +3393,7 @@ export declare interface IDropdownListProps<T> {
|
|
|
3396
3393
|
width?: number;
|
|
3397
3394
|
maxHeight?: number;
|
|
3398
3395
|
containerPadding?: number;
|
|
3396
|
+
listPadding?: number;
|
|
3399
3397
|
onKeyDownSelect?: (item: T) => void;
|
|
3400
3398
|
onKeyDownConfirm?: (item: T) => void;
|
|
3401
3399
|
isLoading?: boolean;
|
|
@@ -5782,6 +5780,9 @@ export declare interface IRowsIconProps extends IIconProps {
|
|
|
5782
5780
|
*/
|
|
5783
5781
|
export declare const isActionKey: (event: KeyboardEvent_2) => boolean;
|
|
5784
5782
|
|
|
5783
|
+
/** @internal */
|
|
5784
|
+
export declare function isApplePlatform(): boolean;
|
|
5785
|
+
|
|
5785
5786
|
/**
|
|
5786
5787
|
* Checks if the given keyboard event is triggered by an ArrowDown key.
|
|
5787
5788
|
*
|
|
@@ -7561,6 +7562,29 @@ export declare interface IUiConfigEditorContextMenuProps {
|
|
|
7561
7562
|
};
|
|
7562
7563
|
}
|
|
7563
7564
|
|
|
7565
|
+
/**
|
|
7566
|
+
* An error or warning about a value in the editor's text, shown in the lint gutter. It does not stop
|
|
7567
|
+
* the value being edited or emitted.
|
|
7568
|
+
*
|
|
7569
|
+
* @internal
|
|
7570
|
+
*/
|
|
7571
|
+
export declare interface IUiConfigEditorDiagnostic {
|
|
7572
|
+
/**
|
|
7573
|
+
* Where the value sits in the parsed document, as object keys and array indexes. The same path
|
|
7574
|
+
* finds it whichever language is displayed.
|
|
7575
|
+
*/
|
|
7576
|
+
path: ReadonlyArray<string | number>;
|
|
7577
|
+
/**
|
|
7578
|
+
* A piece of the value's text to mark, such as one marker in a string, at each place the value
|
|
7579
|
+
* holds it. The whole value is marked when it is absent or the value does not hold it.
|
|
7580
|
+
*/
|
|
7581
|
+
part?: string;
|
|
7582
|
+
/** `"key"` marks the key that names the value instead of the value, such as an unknown key. */
|
|
7583
|
+
target?: "key";
|
|
7584
|
+
severity: "error" | "warning";
|
|
7585
|
+
message: string;
|
|
7586
|
+
}
|
|
7587
|
+
|
|
7564
7588
|
/**
|
|
7565
7589
|
* The editor's localized texts, gathered in one object so adding a text does not grow the prop
|
|
7566
7590
|
* list. The caller localizes them, as with the other kit primitives; every key is optional.
|
|
@@ -7640,10 +7664,10 @@ export declare interface IUiConfigEditorProps {
|
|
|
7640
7664
|
/** The editor's localized texts. Anything omitted falls back to a neutral default. */
|
|
7641
7665
|
labels?: IUiConfigEditorLabels;
|
|
7642
7666
|
/**
|
|
7643
|
-
*
|
|
7644
|
-
* the displayed text does not hold is not shown.
|
|
7667
|
+
* Errors and warnings about values, shown in the lint gutter next to any syntax error. A
|
|
7668
|
+
* diagnostic whose path the displayed text does not hold is not shown.
|
|
7645
7669
|
*/
|
|
7646
|
-
|
|
7670
|
+
diagnostics?: readonly IUiConfigEditorDiagnostic[];
|
|
7647
7671
|
/**
|
|
7648
7672
|
* Renders the contents of the toolbar's context menu, usually a `UiMenu`.
|
|
7649
7673
|
*
|
|
@@ -7672,26 +7696,6 @@ export declare interface IUiConfigEditorProps {
|
|
|
7672
7696
|
editorRef?: Ref<IUiConfigEditorApi>;
|
|
7673
7697
|
}
|
|
7674
7698
|
|
|
7675
|
-
/**
|
|
7676
|
-
* A warning about a value in the editor's text, shown in the lint gutter. It does not stop the value
|
|
7677
|
-
* being edited or emitted.
|
|
7678
|
-
*
|
|
7679
|
-
* @internal
|
|
7680
|
-
*/
|
|
7681
|
-
export declare interface IUiConfigEditorWarning {
|
|
7682
|
-
/**
|
|
7683
|
-
* Where the value sits in the parsed document, as object keys and array indexes. The same path
|
|
7684
|
-
* finds it whichever language is displayed.
|
|
7685
|
-
*/
|
|
7686
|
-
path: ReadonlyArray<string | number>;
|
|
7687
|
-
/**
|
|
7688
|
-
* A piece of the value's text to mark, such as one marker in a string, at each place the value
|
|
7689
|
-
* holds it. The whole value is marked when it is absent or the value does not hold it.
|
|
7690
|
-
*/
|
|
7691
|
-
part?: string;
|
|
7692
|
-
message: string;
|
|
7693
|
-
}
|
|
7694
|
-
|
|
7695
7699
|
/**
|
|
7696
7700
|
* @internal
|
|
7697
7701
|
*/
|
|
@@ -7816,8 +7820,6 @@ export declare interface IUiDialogFooterProps {
|
|
|
7816
7820
|
export declare interface IUiDialogHeaderProps {
|
|
7817
7821
|
/** Title shown in the header. */
|
|
7818
7822
|
title: string;
|
|
7819
|
-
/** Title size — `"default"` = 18/26, `"large"` = 20/26. */
|
|
7820
|
-
titleSize?: DialogHeaderTitleSize;
|
|
7821
7823
|
/** Fires when the user clicks the X close button. Omit to hide the X. */
|
|
7822
7824
|
onClose?: () => void;
|
|
7823
7825
|
/** Optional leading slot rendered before the title (e.g. a back button). */
|
|
@@ -8650,6 +8652,10 @@ export declare interface IUiListboxInteractiveItem<T> {
|
|
|
8650
8652
|
icon?: IconType;
|
|
8651
8653
|
isDisabled?: boolean;
|
|
8652
8654
|
data: T;
|
|
8655
|
+
/**
|
|
8656
|
+
* Text shown muted after the title, e.g. the code of a language.
|
|
8657
|
+
*/
|
|
8658
|
+
secondaryTitle?: string;
|
|
8653
8659
|
/**
|
|
8654
8660
|
* Explanation shown in a tooltip next to the title. Also read by screen readers.
|
|
8655
8661
|
*/
|
|
@@ -9016,8 +9022,10 @@ export declare interface IUiModalDialogProps {
|
|
|
9016
9022
|
closeOnOutsideClick?: boolean;
|
|
9017
9023
|
/** Fires when the user dismisses via Esc, backdrop press, or `onClose` from inside. */
|
|
9018
9024
|
onClose: () => void;
|
|
9019
|
-
/** Card width in px. Defaults to 540. */
|
|
9025
|
+
/** Card width in px. Defaults to 540. Ignored when `isFullscreen` is set. */
|
|
9020
9026
|
width?: number;
|
|
9027
|
+
/** The size of the header: its title and close button. Ignored when `isFullscreen` is set. */
|
|
9028
|
+
size?: UiModalDialogSize;
|
|
9021
9029
|
/** Initial keyboard focus target. Defaults to the first tabbable element. */
|
|
9022
9030
|
initialFocus?: RefObject<HTMLElement | null>;
|
|
9023
9031
|
/**
|
|
@@ -9032,6 +9040,10 @@ export declare interface IUiModalDialogProps {
|
|
|
9032
9040
|
};
|
|
9033
9041
|
/** Test id forwarded to the overlay element. */
|
|
9034
9042
|
dataTestId?: string;
|
|
9043
|
+
/** Id of the dialog element, e.g. for the `aria-controls` of the button that opens it. */
|
|
9044
|
+
id?: string;
|
|
9045
|
+
/** Whether the dialog fills the viewport instead of showing as a card, e.g. on mobile. */
|
|
9046
|
+
isFullscreen?: boolean;
|
|
9035
9047
|
}
|
|
9036
9048
|
|
|
9037
9049
|
/**
|
|
@@ -9170,6 +9182,7 @@ export declare interface IUiPagedVirtualListProps<T> {
|
|
|
9170
9182
|
itemHeight: number;
|
|
9171
9183
|
itemsGap: number;
|
|
9172
9184
|
containerPadding?: number;
|
|
9185
|
+
listPadding?: number;
|
|
9173
9186
|
itemPadding: number;
|
|
9174
9187
|
skeletonItemsCount: number;
|
|
9175
9188
|
hasNextPage?: boolean;
|
|
@@ -9744,6 +9757,13 @@ export declare interface IUiReturnFocusOnUnmountOptions {
|
|
|
9744
9757
|
focusVisible?: boolean;
|
|
9745
9758
|
}
|
|
9746
9759
|
|
|
9760
|
+
/**
|
|
9761
|
+
* @internal
|
|
9762
|
+
*/
|
|
9763
|
+
export declare interface IUiSearchableSelectFooterProps {
|
|
9764
|
+
children: ReactNode;
|
|
9765
|
+
}
|
|
9766
|
+
|
|
9747
9767
|
/**
|
|
9748
9768
|
* @internal
|
|
9749
9769
|
*/
|
|
@@ -9754,6 +9774,11 @@ export declare interface IUiSearchableSelectItemProps {
|
|
|
9754
9774
|
* option's `lang` attribute, like on a native `<option>`.
|
|
9755
9775
|
*/
|
|
9756
9776
|
lang?: string;
|
|
9777
|
+
/**
|
|
9778
|
+
* Text shown muted after the title in the list, and after it on the button, e.g. the code of a language.
|
|
9779
|
+
* It is not matched by the default search, so use the select's `filter` to match it.
|
|
9780
|
+
*/
|
|
9781
|
+
secondaryTitle?: string;
|
|
9757
9782
|
/**
|
|
9758
9783
|
* The option's title, shown in the list and the button and matched by the search.
|
|
9759
9784
|
*/
|
|
@@ -9784,9 +9809,22 @@ export declare interface IUiSearchableSelectProps<T> {
|
|
|
9784
9809
|
* while searching: without a query, all items show.
|
|
9785
9810
|
*/
|
|
9786
9811
|
filter?: (item: T, query: string) => boolean;
|
|
9812
|
+
isOpen?: boolean;
|
|
9787
9813
|
items: T[];
|
|
9788
9814
|
onChange: (value: string) => void;
|
|
9815
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
9789
9816
|
placeholder: string;
|
|
9817
|
+
/**
|
|
9818
|
+
* Only null for now as proper custom anchor is not needed. Null is supported only in fullscreen mode as
|
|
9819
|
+
* desktop mode would for that need `anchorRef` prop or something similar which is not needed.
|
|
9820
|
+
* You can extend this if you find the need for any of those in the future.
|
|
9821
|
+
*/
|
|
9822
|
+
renderButton?: null;
|
|
9823
|
+
shouldCloseOnSelect?: boolean;
|
|
9824
|
+
/**
|
|
9825
|
+
* The heading of the full-screen view on mobile, which also names its dialog.
|
|
9826
|
+
*/
|
|
9827
|
+
title: string;
|
|
9790
9828
|
value: string | null;
|
|
9791
9829
|
}
|
|
9792
9830
|
|
|
@@ -10309,9 +10347,13 @@ export declare interface IUiToolbarIconButtonProps extends IUiToolbarItemBasePro
|
|
|
10309
10347
|
*/
|
|
10310
10348
|
icon: IconType | ReactNode;
|
|
10311
10349
|
/**
|
|
10312
|
-
* Accessible name. It is also the tooltip text.
|
|
10350
|
+
* Accessible name. It is also the tooltip text, unless `tooltip` says otherwise.
|
|
10313
10351
|
*/
|
|
10314
10352
|
label: string;
|
|
10353
|
+
/**
|
|
10354
|
+
* Shown on hover and focus in place of the label, for example why the button is disabled.
|
|
10355
|
+
*/
|
|
10356
|
+
tooltip?: ReactNode;
|
|
10315
10357
|
/**
|
|
10316
10358
|
* "medium" is 28x28 with a 20px icon. "small" is 14x14 with a 14px icon and is meant for the
|
|
10317
10359
|
* side controls of {@link UiToolbarStepper}.
|
|
@@ -10599,12 +10641,20 @@ export declare interface IUiToolbarSelectProps {
|
|
|
10599
10641
|
* The current selection, or the prompt when `isPlaceholder` is set.
|
|
10600
10642
|
*/
|
|
10601
10643
|
label: string;
|
|
10644
|
+
/**
|
|
10645
|
+
* Drawn before the label, for example what kind of thing the selection is.
|
|
10646
|
+
*/
|
|
10647
|
+
icon?: IconType;
|
|
10602
10648
|
/**
|
|
10603
10649
|
* "fixed" is 240px wide and truncates the label so the toolbar does not move as the selection
|
|
10604
10650
|
* changes.
|
|
10605
10651
|
* @defaultValue "hug"
|
|
10606
10652
|
*/
|
|
10607
10653
|
width?: "hug" | "fixed";
|
|
10654
|
+
/**
|
|
10655
|
+
* Caps the width in pixels; a longer label is truncated and its full text is the title.
|
|
10656
|
+
*/
|
|
10657
|
+
maxWidth?: number;
|
|
10608
10658
|
/**
|
|
10609
10659
|
* Nothing is chosen yet; the label reads as prompt text.
|
|
10610
10660
|
* @defaultValue false
|
|
@@ -12583,7 +12633,7 @@ export declare function UiComboboxPopup({ children, style }: IUiComboboxPopupPro
|
|
|
12583
12633
|
*
|
|
12584
12634
|
* @internal
|
|
12585
12635
|
*/
|
|
12586
|
-
export declare function UiConfigEditor({ value, onChange, primaryLanguage, languages, language, onLanguageChange, completionSource, labels,
|
|
12636
|
+
export declare function UiConfigEditor({ value, onChange, primaryLanguage, languages, language, onLanguageChange, completionSource, labels, diagnostics, renderContextMenu, label, placeholder, readOnly, disabled, rows, dataTestId, editorRef, }: IUiConfigEditorProps): JSX.Element;
|
|
12587
12637
|
|
|
12588
12638
|
/**
|
|
12589
12639
|
* Modal confirm dialog used for actions that need explicit user confirmation
|
|
@@ -12651,7 +12701,7 @@ export declare function UiDialogFooter({ children, divider }: IUiDialogFooterPro
|
|
|
12651
12701
|
*
|
|
12652
12702
|
* @internal
|
|
12653
12703
|
*/
|
|
12654
|
-
export declare function UiDialogHeader({ title,
|
|
12704
|
+
export declare function UiDialogHeader({ title, onClose, leading }: IUiDialogHeaderProps): JSX.Element;
|
|
12655
12705
|
|
|
12656
12706
|
/**
|
|
12657
12707
|
* @internal
|
|
@@ -12918,7 +12968,14 @@ export declare function UiMenu<T extends IUiMenuItemData = object, M extends obj
|
|
|
12918
12968
|
*
|
|
12919
12969
|
* @internal
|
|
12920
12970
|
*/
|
|
12921
|
-
export declare function UiModalDialog({ children, variant, isOpen, onClose, width, initialFocus, closeOnOutsideClick, accessibilityConfig, dataTestId, }: IUiModalDialogProps): JSX.Element | null;
|
|
12971
|
+
export declare function UiModalDialog({ children, variant, isOpen, onClose, width, size, initialFocus, closeOnOutsideClick, accessibilityConfig, dataTestId, id, isFullscreen, }: IUiModalDialogProps): JSX.Element | null;
|
|
12972
|
+
|
|
12973
|
+
/**
|
|
12974
|
+
* The size of the dialog's header: its title and close button.
|
|
12975
|
+
*
|
|
12976
|
+
* @internal
|
|
12977
|
+
*/
|
|
12978
|
+
export declare type UiModalDialogSize = "default" | "large";
|
|
12922
12979
|
|
|
12923
12980
|
/**
|
|
12924
12981
|
* @internal
|
|
@@ -13126,7 +13183,7 @@ export declare function UiReturnFocusOnUnmount({ children, ...options }: IUiRetu
|
|
|
13126
13183
|
/**
|
|
13127
13184
|
* @internal
|
|
13128
13185
|
*/
|
|
13129
|
-
export declare function UiSearchableSelect<T>({ accessibilityConfig, children, items, filter, placeholder, defaultOpen, value, onChange, }: IUiSearchableSelectProps<T>): JSX.Element;
|
|
13186
|
+
export declare function UiSearchableSelect<T>({ accessibilityConfig, children, items, filter, placeholder, title, defaultOpen, isOpen, onOpenChange, renderButton: renderButtonProp, shouldCloseOnSelect, value, onChange, }: IUiSearchableSelectProps<T>): JSX.Element;
|
|
13130
13187
|
|
|
13131
13188
|
/**
|
|
13132
13189
|
* Only here for the markup. This component is searched from the parent.
|
|
@@ -13135,6 +13192,11 @@ export declare function UiSearchableSelect<T>({ accessibilityConfig, children, i
|
|
|
13135
13192
|
*/
|
|
13136
13193
|
export declare function UiSearchableSelectDivider(): null;
|
|
13137
13194
|
|
|
13195
|
+
/**
|
|
13196
|
+
* @internal
|
|
13197
|
+
*/
|
|
13198
|
+
export declare function UiSearchableSelectFooter({ children }: IUiSearchableSelectFooterProps): JSX.Element;
|
|
13199
|
+
|
|
13138
13200
|
/**
|
|
13139
13201
|
* Describes an option and renders nothing: UiSearchableSelectList reads its props and UiListbox renders
|
|
13140
13202
|
* the option, like the `Item` of React Stately collections.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { type RefObject } from "react";
|
|
2
2
|
import { type EditorView } from "@codemirror/view";
|
|
3
|
+
/** @internal */
|
|
4
|
+
export declare function isApplePlatform(): boolean;
|
|
3
5
|
export declare function useCodemirrorKeymap({ handleKeyDown, }: {
|
|
4
6
|
handleKeyDown: RefObject<((event: KeyboardEvent, view: EditorView) => boolean) | undefined>;
|
|
5
7
|
}): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCodemirrorKeymap.d.ts","sourceRoot":"","sources":["../../../src/syntaxHighlightingInput/hooks/useCodemirrorKeymap.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAIhD,OAAO,EAAE,KAAK,UAAU,EAAU,MAAM,kBAAkB,CAAC;AAE3D,wBAAgB,mBAAmB,CAAC,EAChC,aAAa,GAChB,EAAE;IACC,aAAa,EAAE,SAAS,CAAC,CAAC,CAAC,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,UAAU,KAAK,OAAO,CAAC,GAAG,SAAS,CAAC,CAAC;CAC/F;;
|
|
1
|
+
{"version":3,"file":"useCodemirrorKeymap.d.ts","sourceRoot":"","sources":["../../../src/syntaxHighlightingInput/hooks/useCodemirrorKeymap.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAIhD,OAAO,EAAE,KAAK,UAAU,EAAU,MAAM,kBAAkB,CAAC;AAE3D,gBAAgB;AAChB,wBAAgB,eAAe,IAAI,OAAO,CAEzC;AAED,wBAAgB,mBAAmB,CAAC,EAChC,aAAa,GAChB,EAAE;IACC,aAAa,EAAE,SAAS,CAAC,CAAC,CAAC,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,UAAU,KAAK,OAAO,CAAC,GAAG,SAAS,CAAC,CAAC;CAC/F;;EA6BA"}
|
|
@@ -3,6 +3,10 @@ import { useMemo } from "react";
|
|
|
3
3
|
import { startCompletion } from "@codemirror/autocomplete";
|
|
4
4
|
import { defaultKeymap, history, historyKeymap } from "@codemirror/commands";
|
|
5
5
|
import { keymap } from "@codemirror/view";
|
|
6
|
+
/** @internal */
|
|
7
|
+
export function isApplePlatform() {
|
|
8
|
+
return /Mac|iPhone|iPad|iPod/.test(globalThis.navigator?.platform ?? "");
|
|
9
|
+
}
|
|
6
10
|
export function useCodemirrorKeymap({ handleKeyDown, }) {
|
|
7
11
|
// Keymap extension. The history state extension comes with it: `historyKeymap` binds the
|
|
8
12
|
// undo/redo commands, but without `history()` installed they have nothing to operate on.
|
|
@@ -16,12 +20,11 @@ export function useCodemirrorKeymap({ handleKeyDown, }) {
|
|
|
16
20
|
return handleKeyDown.current?.(event, view) ?? false;
|
|
17
21
|
},
|
|
18
22
|
},
|
|
19
|
-
//
|
|
23
|
+
// Both Meta-i and Ctrl-i are bound so the named shortcut works even when the platform check is wrong.
|
|
20
24
|
{
|
|
21
|
-
key: "
|
|
25
|
+
key: "Meta-i",
|
|
22
26
|
run: startCompletion,
|
|
23
27
|
},
|
|
24
|
-
// Ctrl on Windows
|
|
25
28
|
{
|
|
26
29
|
key: "Ctrl-i",
|
|
27
30
|
run: startCompletion,
|
|
@@ -14,8 +14,8 @@ export declare function getSyntaxErrorDiagnostics(state: EditorState, message: s
|
|
|
14
14
|
* Creates a CodeMirror linter extension that reports syntax errors by walking the parse tree for
|
|
15
15
|
* error nodes.
|
|
16
16
|
*
|
|
17
|
-
* Language-agnostic: it reads the tree the language extension
|
|
18
|
-
*
|
|
17
|
+
* Language-agnostic: it reads the tree the language extension builds, so it works for any grammar.
|
|
18
|
+
* Each lint finishes an unfinished parse on the main thread, within a bounded time budget.
|
|
19
19
|
*
|
|
20
20
|
* @param message - localized message shown on each syntax-error diagnostic
|
|
21
21
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"syntaxErrorLinter.d.ts","sourceRoot":"","sources":["../../src/syntaxHighlightingInput/syntaxErrorLinter.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,UAAU,EAAU,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"syntaxErrorLinter.d.ts","sourceRoot":"","sources":["../../src/syntaxHighlightingInput/syntaxErrorLinter.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,UAAU,EAAU,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIrD;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,GAAG,UAAU,EAAE,CA8B3F;AAED;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,yCAEtD"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
|
-
import { syntaxTree } from "@codemirror/language";
|
|
2
|
+
import { ensureSyntaxTree, syntaxTree } from "@codemirror/language";
|
|
3
3
|
import { linter } from "@codemirror/lint";
|
|
4
|
+
const PARSE_BUDGET_MS = 200;
|
|
4
5
|
/**
|
|
5
6
|
* Collects syntax-error diagnostics by walking the parse tree for error nodes.
|
|
6
7
|
*
|
|
@@ -15,10 +16,14 @@ export function getSyntaxErrorDiagnostics(state, message) {
|
|
|
15
16
|
return [];
|
|
16
17
|
}
|
|
17
18
|
const diagnostics = [];
|
|
18
|
-
const
|
|
19
|
+
const completeTree = ensureSyntaxTree(state, state.doc.length, PARSE_BUDGET_MS);
|
|
20
|
+
const tree = completeTree ?? syntaxTree(state);
|
|
21
|
+
// A parse stopped before the end of the document ends with error nodes at the stop position,
|
|
22
|
+
// where the text itself has no error.
|
|
23
|
+
const isBeforeParseCut = (to) => completeTree !== null || to < tree.length;
|
|
19
24
|
tree.iterate({
|
|
20
25
|
enter(node) {
|
|
21
|
-
if (node.type.isError) {
|
|
26
|
+
if (node.type.isError && isBeforeParseCut(node.to)) {
|
|
22
27
|
diagnostics.push({
|
|
23
28
|
from: node.from,
|
|
24
29
|
// Zero-width error nodes are widened so the marker has something to underline —
|
|
@@ -38,8 +43,8 @@ export function getSyntaxErrorDiagnostics(state, message) {
|
|
|
38
43
|
* Creates a CodeMirror linter extension that reports syntax errors by walking the parse tree for
|
|
39
44
|
* error nodes.
|
|
40
45
|
*
|
|
41
|
-
* Language-agnostic: it reads the tree the language extension
|
|
42
|
-
*
|
|
46
|
+
* Language-agnostic: it reads the tree the language extension builds, so it works for any grammar.
|
|
47
|
+
* Each lint finishes an unfinished parse on the main thread, within a bounded time budget.
|
|
43
48
|
*
|
|
44
49
|
* @param message - localized message shown on each syntax-error diagnostic
|
|
45
50
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../src/utils/overlay.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../src/utils/overlay.ts"],"names":[],"mappings":"AAOA,OAAO,EACH,KAAK,mBAAmB,EACxB,KAAK,4BAA4B,EAEjC,KAAK,iBAAiB,EACzB,MAAM,uBAAuB,CAAC;AAsB/B,eAAO,MAAM,oBAAoB;;;QAIrB,CAAC;QACD,CAAC;;GAGZ,CAAC;AAsKF;;;;GAIG;AACH,wBAAgB,4BAA4B,CAAC,EACzC,cAAc,EACd,YAAY,EACZ,UAAU,EACV,WAAW,GACd,EAAE,4BAA4B,GAAG,iBAAiB,CAoClD;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,EAChC,YAAY,EACZ,UAAU,EACV,mBAAmB,EACnB,WAAW,EACX,iBAA4C,EAC5C,iBAA4C,GAC/C,EAAE,mBAAmB,GAAG,iBAAiB,CAkBzC;AAED,wBAAgB,gBAAgB;;;;;;;;;EAsB/B"}
|
package/esm/utils/overlay.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
|
-
import { mapValues
|
|
2
|
+
import { mapValues } from "lodash-es";
|
|
3
|
+
import { _merge } from "@gooddata/util";
|
|
3
4
|
import { elementRegion } from "./domUtilities.js";
|
|
4
5
|
const ALIGN_RATIOS_X = {
|
|
5
6
|
l: 0,
|
|
@@ -73,7 +74,7 @@ function getRegionOffset(region, ratio, direction = 1) {
|
|
|
73
74
|
};
|
|
74
75
|
}
|
|
75
76
|
function getAlignPointOffset(alignPointOffset) {
|
|
76
|
-
return
|
|
77
|
+
return _merge({}, DEFAULT_OFFSET_VALUES, alignPointOffset);
|
|
77
78
|
}
|
|
78
79
|
function addOffset(position, offset) {
|
|
79
80
|
return {
|
|
@@ -112,7 +113,7 @@ function getGlobalPosition(bodyRegion, targetRegion, selfRegion, alignPoint) {
|
|
|
112
113
|
* using its left-top coordinates
|
|
113
114
|
*/
|
|
114
115
|
function moveRegionToPosition(region, anchorPoint) {
|
|
115
|
-
return
|
|
116
|
+
return _merge({}, region, {
|
|
116
117
|
left: anchorPoint.x,
|
|
117
118
|
top: anchorPoint.y,
|
|
118
119
|
width: region.width,
|
|
@@ -173,7 +174,7 @@ export function getOptimalAlignmentForRegion({ boundaryRegion, targetRegion, sel
|
|
|
173
174
|
right: boundaryRegion.left + boundaryRegion.width - positionedSelfRegion.left - selfRegion.width,
|
|
174
175
|
};
|
|
175
176
|
mostVisibleAlignment = {
|
|
176
|
-
alignment:
|
|
177
|
+
alignment: _merge(mapValues(coordinates, Math.floor), {
|
|
177
178
|
align: alignPoints[i].align,
|
|
178
179
|
}),
|
|
179
180
|
visiblePart,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-kit",
|
|
3
|
-
"version": "11.68.0-alpha.
|
|
3
|
+
"version": "11.68.0-alpha.11",
|
|
4
4
|
"description": "GoodData SDK - UI Building Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
"esm/**/*.map",
|
|
17
17
|
"esm/**/*.svg",
|
|
18
18
|
"src/**/*.scss",
|
|
19
|
-
"styles"
|
|
19
|
+
"styles",
|
|
20
|
+
"NOTICE"
|
|
20
21
|
],
|
|
21
22
|
"type": "module",
|
|
22
23
|
"sideEffects": [
|
|
@@ -79,11 +80,11 @@
|
|
|
79
80
|
"unified": "^11.0.5",
|
|
80
81
|
"uuid": "11.1.1",
|
|
81
82
|
"yaml": "2.9.1",
|
|
82
|
-
"@gooddata/sdk-backend-spi": "11.68.0-alpha.
|
|
83
|
-
"@gooddata/sdk-model": "11.68.0-alpha.
|
|
84
|
-
"@gooddata/sdk-ui": "11.68.0-alpha.
|
|
85
|
-
"@gooddata/
|
|
86
|
-
"@gooddata/
|
|
83
|
+
"@gooddata/sdk-backend-spi": "11.68.0-alpha.11",
|
|
84
|
+
"@gooddata/sdk-model": "11.68.0-alpha.11",
|
|
85
|
+
"@gooddata/sdk-ui-theme-provider": "11.68.0-alpha.11",
|
|
86
|
+
"@gooddata/sdk-ui": "11.68.0-alpha.11",
|
|
87
|
+
"@gooddata/util": "11.68.0-alpha.11"
|
|
87
88
|
},
|
|
88
89
|
"devDependencies": {
|
|
89
90
|
"@microsoft/api-documenter": "7.30.20",
|
|
@@ -128,11 +129,11 @@
|
|
|
128
129
|
"svgo": "2.8.4",
|
|
129
130
|
"typescript": "7.0.2",
|
|
130
131
|
"vitest": "5.0.4",
|
|
131
|
-
"@gooddata/eslint-config": "11.68.0-alpha.
|
|
132
|
-
"@gooddata/
|
|
133
|
-
"@gooddata/
|
|
134
|
-
"@gooddata/
|
|
135
|
-
"@gooddata/
|
|
132
|
+
"@gooddata/eslint-config": "11.68.0-alpha.11",
|
|
133
|
+
"@gooddata/oxlint-config": "11.68.0-alpha.11",
|
|
134
|
+
"@gooddata/reference-workspace": "11.68.0-alpha.11",
|
|
135
|
+
"@gooddata/sdk-backend-mockingbird": "11.68.0-alpha.11",
|
|
136
|
+
"@gooddata/stylelint-config": "11.68.0-alpha.11"
|
|
136
137
|
},
|
|
137
138
|
"peerDependencies": {
|
|
138
139
|
"react": "^18.0.0 || ^19.0.0",
|
|
@@ -44,7 +44,9 @@
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
&__item {
|
|
47
|
-
|
|
47
|
+
box-sizing: border-box;
|
|
48
|
+
min-height: 32px;
|
|
49
|
+
padding: var(--gd-spacing-5px) var(--gd-spacing-10px);
|
|
48
50
|
cursor: pointer;
|
|
49
51
|
display: flex;
|
|
50
52
|
align-items: center;
|
|
@@ -85,9 +87,9 @@
|
|
|
85
87
|
}
|
|
86
88
|
|
|
87
89
|
&--isCompact {
|
|
90
|
+
min-height: 28px;
|
|
88
91
|
font-size: 12px;
|
|
89
92
|
line-height: 18px;
|
|
90
|
-
padding: 5px 10px;
|
|
91
93
|
}
|
|
92
94
|
}
|
|
93
95
|
|
|
@@ -100,6 +102,17 @@
|
|
|
100
102
|
white-space: nowrap;
|
|
101
103
|
}
|
|
102
104
|
|
|
105
|
+
&__item-secondary {
|
|
106
|
+
font-weight: normal;
|
|
107
|
+
color: var(--gd-palette-complementary-6);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&__item--isSelected &__item-secondary,
|
|
111
|
+
&__item--isFocused &__item-secondary {
|
|
112
|
+
color: inherit;
|
|
113
|
+
opacity: 0.7;
|
|
114
|
+
}
|
|
115
|
+
|
|
103
116
|
// wrapper around the question mark icon to center it vertically
|
|
104
117
|
&__item-explanation {
|
|
105
118
|
display: flex;
|
|
@@ -29,6 +29,37 @@
|
|
|
29
29
|
box-shadow: 0 2px 8px var(--gd-shadow-color);
|
|
30
30
|
overflow-wrap: break-word;
|
|
31
31
|
|
|
32
|
+
&--isFullscreen {
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
width: 100vw; // Fallback
|
|
35
|
+
height: 100vh; // Fallback
|
|
36
|
+
width: 100dvw;
|
|
37
|
+
height: 100dvh;
|
|
38
|
+
max-width: none;
|
|
39
|
+
max-height: none;
|
|
40
|
+
padding: 0;
|
|
41
|
+
border-radius: 0;
|
|
42
|
+
box-shadow: none;
|
|
43
|
+
|
|
44
|
+
.gd-ui-kit-dialog-header {
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
flex-shrink: 0;
|
|
47
|
+
height: 56px;
|
|
48
|
+
margin-bottom: 0;
|
|
49
|
+
padding: 0 var(--gd-spacing-15px);
|
|
50
|
+
border-bottom: 1px solid var(--gd-palette-complementary-3);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.gd-ui-kit-dialog-body {
|
|
54
|
+
padding: var(--gd-spacing-15px) var(--gd-spacing-15px) 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.gd-ui-kit-dialog-footer {
|
|
58
|
+
padding-right: var(--gd-spacing-15px);
|
|
59
|
+
padding-left: var(--gd-spacing-15px);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
32
63
|
&--variant-confirmation {
|
|
33
64
|
box-sizing: border-box;
|
|
34
65
|
border: 1px solid var(--gd-modal-borderColor);
|
|
@@ -58,15 +89,25 @@
|
|
|
58
89
|
flex-shrink: 0;
|
|
59
90
|
}
|
|
60
91
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
92
|
+
&--size-default {
|
|
93
|
+
--dialog-header-line-height: 23px;
|
|
94
|
+
--dialog-header-close-icon-size: 18px;
|
|
95
|
+
--dialog-header-close-button-size: var(--gd-button-M);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&--size-large {
|
|
99
|
+
--dialog-header-line-height: 26px;
|
|
100
|
+
--dialog-header-close-icon-size: 20px;
|
|
101
|
+
--dialog-header-close-button-size: var(--gd-button-L);
|
|
102
|
+
}
|
|
103
|
+
|
|
65
104
|
&__close {
|
|
66
105
|
display: inline-flex;
|
|
67
106
|
align-items: center;
|
|
68
107
|
flex-shrink: 0;
|
|
69
|
-
margin
|
|
108
|
+
margin: calc((var(--dialog-header-line-height) - var(--dialog-header-close-button-size)) / 2)
|
|
109
|
+
calc((var(--dialog-header-close-icon-size) - var(--dialog-header-close-button-size)) / 2)
|
|
110
|
+
calc((var(--dialog-header-line-height) - var(--dialog-header-close-button-size)) / 2) 0;
|
|
70
111
|
}
|
|
71
112
|
|
|
72
113
|
&__title {
|
|
@@ -74,6 +115,7 @@
|
|
|
74
115
|
min-width: 0;
|
|
75
116
|
margin: 0;
|
|
76
117
|
font-weight: 700;
|
|
118
|
+
line-height: var(--dialog-header-line-height);
|
|
77
119
|
color: var(--gd-palette-complementary-8);
|
|
78
120
|
overflow: hidden;
|
|
79
121
|
text-overflow: ellipsis;
|
|
@@ -81,12 +123,12 @@
|
|
|
81
123
|
|
|
82
124
|
&--size-default {
|
|
83
125
|
font-size: 17px;
|
|
84
|
-
line-height: 23px;
|
|
85
126
|
}
|
|
86
127
|
|
|
87
128
|
&--size-large {
|
|
88
129
|
font-size: 20px;
|
|
89
|
-
|
|
130
|
+
// Optical nudge
|
|
131
|
+
transform: translateY(1px);
|
|
90
132
|
}
|
|
91
133
|
}
|
|
92
134
|
}
|