@gooddata/sdk-ui-kit 11.68.0-alpha.1 → 11.68.0-alpha.10

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.
Files changed (137) hide show
  1. package/LICENSE +1 -1
  2. package/NOTICE +9899 -0
  3. package/esm/@ui/@types/icon.d.ts +1 -1
  4. package/esm/@ui/@types/icon.d.ts.map +1 -1
  5. package/esm/@ui/UiAsyncTable/UiAsyncTable/SkeletonItemFactory.d.ts.map +1 -1
  6. package/esm/@ui/UiAsyncTable/UiAsyncTable/SkeletonItemFactory.js +2 -2
  7. package/esm/@ui/UiConfigEditor/UiConfigEditor.d.ts +1 -1
  8. package/esm/@ui/UiConfigEditor/UiConfigEditor.d.ts.map +1 -1
  9. package/esm/@ui/UiConfigEditor/UiConfigEditor.js +62 -25
  10. package/esm/@ui/UiConfigEditor/configEditorDiagnostics.d.ts +10 -0
  11. package/esm/@ui/UiConfigEditor/configEditorDiagnostics.d.ts.map +1 -0
  12. package/esm/@ui/UiConfigEditor/configEditorDiagnostics.js +65 -0
  13. package/esm/@ui/UiConfigEditor/configEditorYamlIndent.d.ts +8 -0
  14. package/esm/@ui/UiConfigEditor/configEditorYamlIndent.d.ts.map +1 -0
  15. package/esm/@ui/UiConfigEditor/configEditorYamlIndent.js +33 -0
  16. package/esm/@ui/UiConfigEditor/types.d.ts +9 -6
  17. package/esm/@ui/UiConfigEditor/types.d.ts.map +1 -1
  18. package/esm/@ui/UiDrawer/UiDrawer.d.ts.map +1 -1
  19. package/esm/@ui/UiDrawer/UiDrawer.js +14 -4
  20. package/esm/@ui/UiFocusManager/UiAutofocus.d.ts.map +1 -1
  21. package/esm/@ui/UiFocusManager/UiAutofocus.js +22 -2
  22. package/esm/@ui/UiFocusManager/UiModalOwner.d.ts +11 -0
  23. package/esm/@ui/UiFocusManager/UiModalOwner.d.ts.map +1 -0
  24. package/esm/@ui/UiFocusManager/UiModalOwner.js +18 -0
  25. package/esm/@ui/UiIcon/icons.d.ts.map +1 -1
  26. package/esm/@ui/UiIcon/icons.js +2 -0
  27. package/esm/@ui/UiListbox/defaults/DefaultUiListboxInteractiveItemComponent.d.ts.map +1 -1
  28. package/esm/@ui/UiListbox/defaults/DefaultUiListboxInteractiveItemComponent.js +5 -3
  29. package/esm/@ui/UiListbox/itemTitle.d.ts +5 -0
  30. package/esm/@ui/UiListbox/itemTitle.d.ts.map +1 -0
  31. package/esm/@ui/UiListbox/itemTitle.js +4 -0
  32. package/esm/@ui/UiListbox/types.d.ts +4 -0
  33. package/esm/@ui/UiListbox/types.d.ts.map +1 -1
  34. package/esm/@ui/UiModalDialog/UiDialogHeader.d.ts +1 -9
  35. package/esm/@ui/UiModalDialog/UiDialogHeader.d.ts.map +1 -1
  36. package/esm/@ui/UiModalDialog/UiDialogHeader.js +5 -4
  37. package/esm/@ui/UiModalDialog/UiModalDialog.d.ts +16 -2
  38. package/esm/@ui/UiModalDialog/UiModalDialog.d.ts.map +1 -1
  39. package/esm/@ui/UiModalDialog/UiModalDialog.js +13 -5
  40. package/esm/@ui/UiPagedVirtualList/UiPagedVirtualList.d.ts +1 -0
  41. package/esm/@ui/UiPagedVirtualList/UiPagedVirtualList.d.ts.map +1 -1
  42. package/esm/@ui/UiPagedVirtualList/UiPagedVirtualList.js +7 -3
  43. package/esm/@ui/UiSearchableSelect/UiSearchableSelect.d.ts +14 -1
  44. package/esm/@ui/UiSearchableSelect/UiSearchableSelect.d.ts.map +1 -1
  45. package/esm/@ui/UiSearchableSelect/UiSearchableSelect.js +80 -38
  46. package/esm/@ui/UiSearchableSelect/UiSearchableSelectContext.d.ts +14 -2
  47. package/esm/@ui/UiSearchableSelect/UiSearchableSelectContext.d.ts.map +1 -1
  48. package/esm/@ui/UiSearchableSelect/UiSearchableSelectFooter.d.ts +13 -0
  49. package/esm/@ui/UiSearchableSelect/UiSearchableSelectFooter.d.ts.map +1 -0
  50. package/esm/@ui/UiSearchableSelect/UiSearchableSelectFooter.js +17 -0
  51. package/esm/@ui/UiSearchableSelect/UiSearchableSelectItem.d.ts +6 -0
  52. package/esm/@ui/UiSearchableSelect/UiSearchableSelectItem.d.ts.map +1 -1
  53. package/esm/@ui/UiSearchableSelect/UiSearchableSelectItem.js +2 -2
  54. package/esm/@ui/UiSearchableSelect/UiSearchableSelectList.d.ts.map +1 -1
  55. package/esm/@ui/UiSearchableSelect/UiSearchableSelectList.js +9 -14
  56. package/esm/@ui/UiSearchableSelect/UiSearchableSelectSearch.d.ts.map +1 -1
  57. package/esm/@ui/UiSearchableSelect/UiSearchableSelectSearch.js +8 -12
  58. package/esm/Bubble/Bubble.d.ts.map +1 -1
  59. package/esm/Bubble/Bubble.js +3 -2
  60. package/esm/ChartSorting/ChartSorting.d.ts.map +1 -1
  61. package/esm/ChartSorting/ChartSorting.js +2 -2
  62. package/esm/ColorPicker/ColorPicker.d.ts.map +1 -1
  63. package/esm/ColorPicker/ColorPicker.js +2 -2
  64. package/esm/DateDatasets/dateDatasets.d.ts.map +1 -1
  65. package/esm/DateDatasets/dateDatasets.js +3 -2
  66. package/esm/Datepicker/Datepicker.d.ts.map +1 -1
  67. package/esm/Datepicker/Datepicker.js +2 -2
  68. package/esm/DescriptionPanel/DescriptionPanel.d.ts.map +1 -1
  69. package/esm/DescriptionPanel/DescriptionPanel.js +2 -2
  70. package/esm/DescriptionPanel/MetadataList.d.ts.map +1 -1
  71. package/esm/DescriptionPanel/MetadataList.js +2 -3
  72. package/esm/Dialog/DialogBase.d.ts.map +1 -1
  73. package/esm/Dialog/DialogBase.js +6 -2
  74. package/esm/Dialog/EmbedInsightDialog/EmbedInsightDialogBase/components/NumericInput.d.ts.map +1 -1
  75. package/esm/Dialog/EmbedInsightDialog/EmbedInsightDialogBase/components/NumericInput.js +4 -4
  76. package/esm/Dialog/ShareDialog/ShareDialogBase/ShareGranteeBase.d.ts.map +1 -1
  77. package/esm/Dialog/ShareDialog/ShareDialogBase/ShareGranteeBase.js +2 -2
  78. package/esm/Dialog/ShareDialog/ShareDialogBase/types.d.ts.map +1 -1
  79. package/esm/Dialog/ShareDialog/ShareDialogBase/types.js +10 -10
  80. package/esm/Dialog/ShareDialog/ShareDialogBase/useShareDialogBase.d.ts.map +1 -1
  81. package/esm/Dialog/ShareDialog/ShareDialogBase/useShareDialogBase.js +3 -3
  82. package/esm/Dialog/ShareDialog/ShareDialogBase/utils.js +3 -3
  83. package/esm/DocumentHeader/DocumentHeader.js +3 -3
  84. package/esm/Dropdown/DropdownInvertableSelect.d.ts.map +1 -1
  85. package/esm/Dropdown/DropdownInvertableSelect.js +2 -2
  86. package/esm/Dropdown/DropdownList.d.ts +2 -1
  87. package/esm/Dropdown/DropdownList.d.ts.map +1 -1
  88. package/esm/Dropdown/DropdownList.js +2 -2
  89. package/esm/Form/InputWithNumberFormat.js +2 -2
  90. package/esm/Header/Header.d.ts.map +1 -1
  91. package/esm/Header/Header.js +5 -3
  92. package/esm/Header/HeaderHelp.d.ts.map +1 -1
  93. package/esm/Header/HeaderHelp.js +2 -2
  94. package/esm/Hyperlink/Hyperlink.d.ts.map +1 -1
  95. package/esm/Hyperlink/Hyperlink.js +3 -3
  96. package/esm/LoadingDots/LoadingDots.d.ts.map +1 -1
  97. package/esm/LoadingDots/LoadingDots.js +3 -3
  98. package/esm/Overlay/Overlay.d.ts.map +1 -1
  99. package/esm/Overlay/Overlay.js +19 -12
  100. package/esm/RecurrenceForm/utils/utils.d.ts.map +1 -1
  101. package/esm/RecurrenceForm/utils/utils.js +4 -3
  102. package/esm/ResponsiveText/ResponsiveText.js +2 -2
  103. package/esm/RichText/plugins/rehype-references.js +1 -1
  104. package/esm/Timezone/TimezoneSelect.d.ts +7 -0
  105. package/esm/Timezone/TimezoneSelect.d.ts.map +1 -1
  106. package/esm/Timezone/TimezoneSelect.js +9 -3
  107. package/esm/Timezone/timezones.d.ts +4 -0
  108. package/esm/Timezone/timezones.d.ts.map +1 -1
  109. package/esm/Timezone/timezones.js +11 -5
  110. package/esm/index.d.ts +5 -3
  111. package/esm/index.d.ts.map +1 -1
  112. package/esm/index.js +4 -2
  113. package/esm/sdk-ui-kit.d.ts +89 -39
  114. package/esm/syntaxHighlightingInput/hooks/useCodemirrorKeymap.d.ts +2 -0
  115. package/esm/syntaxHighlightingInput/hooks/useCodemirrorKeymap.d.ts.map +1 -1
  116. package/esm/syntaxHighlightingInput/hooks/useCodemirrorKeymap.js +6 -3
  117. package/esm/syntaxHighlightingInput/syntaxErrorLinter.d.ts +2 -2
  118. package/esm/syntaxHighlightingInput/syntaxErrorLinter.d.ts.map +1 -1
  119. package/esm/syntaxHighlightingInput/syntaxErrorLinter.js +10 -5
  120. package/package.json +13 -12
  121. package/src/@ui/UiListbox/UiListbox.scss +15 -2
  122. package/src/@ui/UiModalDialog/UiModalDialog.scss +49 -7
  123. package/src/@ui/UiResizableSidebar/UiResizableSidebarNavigation.scss +10 -0
  124. package/src/@ui/UiSearchableSelect/UiSearchableSelect.scss +44 -0
  125. package/src/@ui/UiToast/UiToast.scss +7 -0
  126. package/styles/css/avenirFontPatch.css +111 -0
  127. package/styles/css/avenirFontPatch.css.map +1 -0
  128. package/styles/css/main.css +211 -6
  129. package/styles/css/main.css.map +1 -1
  130. package/styles/css/richText.css +2 -1
  131. package/styles/css/richText.css.map +1 -1
  132. package/styles/scss/avenirFontPatch.scss +63 -0
  133. package/styles/scss/main.scss +2 -1
  134. package/styles/scss/richText.scss +2 -1
  135. package/esm/@ui/UiConfigEditor/configEditorWarnings.d.ts +0 -10
  136. package/esm/@ui/UiConfigEditor/configEditorWarnings.d.ts.map +0 -1
  137. package/esm/@ui/UiConfigEditor/configEditorWarnings.js +0 -42
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * @internal
3
3
  */
4
- export 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";
4
+ export 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";
5
5
  //# sourceMappingURL=icon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/@ui/@types/icon.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,QAAQ,GACd,SAAS,GACT,iBAAiB,GACjB,OAAO,GACP,eAAe,GACf,OAAO,GACP,aAAa,GACb,eAAe,GACf,MAAM,GACN,YAAY,GACZ,MAAM,GACN,OAAO,GACP,aAAa,GACb,OAAO,GACP,OAAO,GACP,MAAM,GACN,aAAa,GACb,UAAU,GACV,WAAW,GACX,cAAc,GACd,aAAa,GACb,aAAa,GACb,MAAM,GACN,YAAY,GACZ,cAA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GACR,WAAW,GACX,aAAa,GACb,KAAK,GACL,kBAAkB,GAClB,MAAM,GACN,SAAS,GACT,WAAW,GACX,SAAS,GACT,UAAU,GACV,UAAU,GACV,YAAY,GACZ,MAAM,GACN,mBAAmB,GACnB,oBAAoB,GACpB,sBAAsB,GACtB,sBAAsB,GACtB,oBAAoB,GACpB,uBAAuB,GACvB,qBAAqB,GACrB,mBAAmB,GACnB,sBAAsB,GACtB,qBAAqB,GACrB,sBAAsB,GACtB,qBAAqB,GACrB,kBAAkB,GAClB,kBAAkB,GAClB,oBAAoB,GACpB,qBAAqB,GACrB,wBAAwB,GACxB,8BAA8B,GAC9B,qBAAqB,GACrB,sBAAsB,GACtB,uBAAuB,GACvB,mBAAmB,GACnB,MAAM,GACN,cAAc,GACd,OAAO,GACP,UAAU,GACV,UAAU,GACV,SAAS,GACT,WAAW,GACX,kBAAkB,GAClB,YAAY,GACZ,YAAY,GACZ,gBAAgB,GAChB,UAAU,GACV,YAAY,GACZ,QAAQ,GACR,SAAS,GACT,WAAW,GACX,KAAK,GACL,OAAO,GACP,cAAc,GACd,UAAU,GACV,UAAU,GACV,mBAAmB,GACnB,WAAW,GACX,iBAAiB,GACjB,WAAW,GACX,gBAAgB,GAChB,iBAAiB,GACjB,iBAAiB,GACjB,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,QAAQ,GACR,QAAQ,GACR,SAAS,CAAC"}
1
+ {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/@ui/@types/icon.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,QAAQ,GACd,SAAS,GACT,iBAAiB,GACjB,OAAO,GACP,eAAe,GACf,OAAO,GACP,aAAa,GACb,eAAe,GACf,MAAM,GACN,YAAY,GACZ,MAAM,GACN,OAAO,GACP,aAAa,GACb,OAAO,GACP,OAAO,GACP,MAAM,GACN,aAAa,GACb,UAAU,GACV,WAAW,GACX,cAAc,GACd,aAAa,GACb,aAAa,GACb,M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,GACR,OAAO,GACP,QAAQ,GACR,WAAW,GACX,aAAa,GACb,KAAK,GACL,kBAAkB,GAClB,MAAM,GACN,SAAS,GACT,WAAW,GACX,SAAS,GACT,QAAQ,GACR,SAAS,GACT,UAAU,GACV,UAAU,GACV,YAAY,GACZ,MAAM,GACN,mBAAmB,GACnB,oBAAoB,GACpB,sBAAsB,GACtB,sBAAsB,GACtB,oBAAoB,GACpB,uBAAuB,GACvB,qBAAqB,GACrB,mBAAmB,GACnB,sBAAsB,GACtB,qBAAqB,GACrB,sBAAsB,GACtB,qBAAqB,GACrB,kBAAkB,GAClB,kBAAkB,GAClB,oBAAoB,GACpB,qBAAqB,GACrB,wBAAwB,GACxB,8BAA8B,GAC9B,qBAAqB,GACrB,sBAAsB,GACtB,uBAAuB,GACvB,mBAAmB,GACnB,MAAM,GACN,cAAc,GACd,OAAO,GACP,UAAU,GACV,UAAU,GACV,SAAS,GACT,WAAW,GACX,kBAAkB,GAClB,YAAY,GACZ,YAAY,GACZ,gBAAgB,GAChB,UAAU,GACV,YAAY,GACZ,QAAQ,GACR,SAAS,GACT,WAAW,GACX,KAAK,GACL,OAAO,GACP,cAAc,GACd,UAAU,GACV,UAAU,GACV,mBAAmB,GACnB,WAAW,GACX,iBAAiB,GACjB,WAAW,GACX,gBAAgB,GAChB,iBAAiB,GACjB,iBAAiB,GACjB,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,QAAQ,GACR,QAAQ,GACR,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SkeletonItemFactory.d.ts","sourceRoot":"","sources":["../../../../src/@ui/UiAsyncTable/UiAsyncTable/SkeletonItemFactory.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAgC,MAAM,OAAO,CAAC;AAIzE,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,KAAK,oCAAoC,EAAE,MAAM,gDAAgD,CAAC;AAE3G,OAAO,EAAE,KAAK,uBAAuB,EAAE,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAKrF,wBAAgB,mBAAmB,CAC/B,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,GAC5B,aAAa,CAAC,oCAAoC,CAAC,CAerD;AAED,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,WAC7D,mBAAmB,CAAC,CAAC,CAAC,EAAE,eACpB,uBAAuB,EAAE,GAAG,SAAS,cACtC,OAAO,wDAmBtB,CAAC"}
1
+ {"version":3,"file":"SkeletonItemFactory.d.ts","sourceRoot":"","sources":["../../../../src/@ui/UiAsyncTable/UiAsyncTable/SkeletonItemFactory.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAgC,MAAM,OAAO,CAAC;AAEzE,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,OAAO,EAAE,KAAK,oCAAoC,EAAE,MAAM,gDAAgD,CAAC;AAE3G,OAAO,EAAE,KAAK,uBAAuB,EAAE,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAKrF,wBAAgB,mBAAmB,CAC/B,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,GAC5B,aAAa,CAAC,oCAAoC,CAAC,CAerD;AAED,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,WAC7D,mBAAmB,CAAC,CAAC,CAAC,EAAE,eACpB,uBAAuB,EAAE,GAAG,SAAS,cACtC,OAAO,wDAmBtB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  // (C) 2025-2026 GoodData Corporation
3
3
  import { useEffect, useMemo, useState } from "react";
4
- import { isEqual } from "lodash-es";
4
+ import { _isEqual } from "@gooddata/util";
5
5
  import { UiSkeleton } from "../../UiSkeleton/UiSkeleton.js";
6
6
  import { COLUMN_PADDING, SKELETON_ITEM_HEIGHT } from "./constants.js";
7
7
  import { getColumnWidths } from "./utils.js";
@@ -19,7 +19,7 @@ export const useSkeletonItem = (columns, bulkActions, isLargeRow) => {
19
19
  // this prevents the skeleton item from re-rendering when
20
20
  // irrelevant columns properties change(e.g. permissions)
21
21
  useEffect(() => {
22
- if (!isEqual(columnWidths, computedColumnWidths)) {
22
+ if (!_isEqual(columnWidths, computedColumnWidths)) {
23
23
  setColumnWidths(computedColumnWidths);
24
24
  }
25
25
  }, [computedColumnWidths, columnWidths]);
@@ -16,5 +16,5 @@ import { type IUiConfigEditorProps } from "./types.js";
16
16
  *
17
17
  * @internal
18
18
  */
19
- export declare function UiConfigEditor({ value, onChange, primaryLanguage, languages, language, onLanguageChange, completionSource, labels, warnings, renderContextMenu, label, placeholder, readOnly, disabled, rows, dataTestId, editorRef, }: IUiConfigEditorProps): import("react/jsx-runtime").JSX.Element;
19
+ export declare function UiConfigEditor({ value, onChange, primaryLanguage, languages, language, onLanguageChange, completionSource, labels, diagnostics, renderContextMenu, label, placeholder, readOnly, disabled, rows, dataTestId, editorRef, }: IUiConfigEditorProps): import("react/jsx-runtime").JSX.Element;
20
20
  //# sourceMappingURL=UiConfigEditor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UiConfigEditor.d.ts","sourceRoot":"","sources":["../../../src/@ui/UiConfigEditor/UiConfigEditor.tsx"],"names":[],"mappings":"AAgCA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAIvD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,cAAc,CAAC,EAC3B,KAAK,EACL,QAAQ,EACR,eAAwB,EACxB,SAA4B,EAC5B,QAAQ,EACR,gBAAgB,EAChB,gBAAgB,EAChB,MAAM,EACN,QAAQ,EACR,iBAAiB,EACjB,KAAK,EACL,WAAW,EACX,QAAgB,EAChB,QAAgB,EAChB,IAAS,EACT,UAAU,EACV,SAAS,GACZ,EAAE,oBAAoB,2CAuStB"}
1
+ {"version":3,"file":"UiConfigEditor.d.ts","sourceRoot":"","sources":["../../../src/@ui/UiConfigEditor/UiConfigEditor.tsx"],"names":[],"mappings":"AAkCA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAIvD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,cAAc,CAAC,EAC3B,KAAK,EACL,QAAQ,EACR,eAAwB,EACxB,SAA4B,EAC5B,QAAQ,EACR,gBAAgB,EAChB,gBAAgB,EAChB,MAAM,EACN,WAAW,EACX,iBAAiB,EACjB,KAAK,EACL,WAAW,EACX,QAAgB,EAChB,QAAgB,EAChB,IAAS,EACT,UAAU,EACV,SAAS,GACZ,EAAE,oBAAoB,2CAsTtB"}
@@ -1,20 +1,23 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  // (C) 2026 GoodData Corporation
3
3
  import { useCallback, useEffect, useId, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState, } from "react";
4
+ import { startCompletion } from "@codemirror/autocomplete";
5
+ import { insertNewlineAndIndent } from "@codemirror/commands";
4
6
  import { forceLinting, lintGutter, linter } from "@codemirror/lint";
5
- import { Compartment } from "@codemirror/state";
6
- import { lineNumbers } from "@codemirror/view";
7
- import { isEqual } from "lodash-es";
7
+ import { Compartment, Prec } from "@codemirror/state";
8
+ import { keymap, lineNumbers } from "@codemirror/view";
8
9
  import { useAutoupdateRef } from "@gooddata/sdk-ui";
10
+ import { _isEqual } from "@gooddata/util";
9
11
  import { createSyntaxErrorLinter } from "../../syntaxHighlightingInput/syntaxErrorLinter.js";
10
12
  import { SyntaxHighlightingInput } from "../../syntaxHighlightingInput/SyntaxHighlightingInput.js";
11
13
  import { yamlPositionAt } from "../../syntaxHighlightingInput/yamlPosition.js";
12
14
  import { bem } from "../@utils/bem.js";
15
+ import { getPathDiagnostics } from "./configEditorDiagnostics.js";
13
16
  import { useLanguageGrammar } from "./configEditorGrammars.js";
14
17
  import { themedHighlightStyle } from "./configEditorHighlighting.js";
15
18
  import { beautify, convertText, isProjectable } from "./configEditorLanguage.js";
16
19
  import { ConfigEditorToolbar } from "./ConfigEditorToolbar.js";
17
- import { getWarningDiagnostics } from "./configEditorWarnings.js";
20
+ import { yamlBlockIndent } from "./configEditorYamlIndent.js";
18
21
  const { b, e } = bem("gd-ui-kit-config-editor");
19
22
  /**
20
23
  * A config editor: a CodeMirror source editor with syntax highlighting, line numbers and a lint
@@ -33,7 +36,7 @@ const { b, e } = bem("gd-ui-kit-config-editor");
33
36
  *
34
37
  * @internal
35
38
  */
36
- export function UiConfigEditor({ value, onChange, primaryLanguage = "json", languages = ["json", "yaml"], language, onLanguageChange, completionSource, labels, warnings, renderContextMenu, label, placeholder, readOnly = false, disabled = false, rows = 12, dataTestId, editorRef, }) {
39
+ export function UiConfigEditor({ value, onChange, primaryLanguage = "json", languages = ["json", "yaml"], language, onLanguageChange, completionSource, labels, diagnostics, renderContextMenu, label, placeholder, readOnly = false, disabled = false, rows = 12, dataTestId, editorRef, }) {
37
40
  // Scoped to this instance: several editors can sit on one page, and a shared radio `name` would
38
41
  // make their language switchers fight over the same group.
39
42
  const instanceId = useId();
@@ -176,6 +179,7 @@ export function UiConfigEditor({ value, onChange, primaryLanguage = "json", lang
176
179
  }
177
180
  }, [completionSource]);
178
181
  const grammar = useLanguageGrammar(displayLanguage);
182
+ const yamlIndent = useMemo(() => (displayLanguage === "yaml" ? yamlBlockIndent() : []), [displayLanguage]);
179
183
  // The grammar lives in a compartment so a first-time load can be injected into the running
180
184
  // view: remounting instead would throw away whatever the user did while the chunk was on the
181
185
  // wire — selection, undo history, focus — and their next keystroke would land at offset 0.
@@ -201,21 +205,27 @@ export function UiConfigEditor({ value, onChange, primaryLanguage = "json", lang
201
205
  forceLinting(view);
202
206
  }
203
207
  }, [grammar, syntaxErrorCompartment, syntaxErrorLinter]);
204
- // The linter reads the warnings when it runs, so a remounted editor shows the current ones; a
205
- // running view gets new warnings by swapping in a new linter. Each swap delays every linter's
206
- // next run, the syntax error one included, so it happens only when the warnings' content changes.
207
- const warningsRef = useAutoupdateRef(warnings);
208
- const appliedWarningsRef = useRef(warnings ?? []);
209
- const [warningsCompartment] = useState(() => new Compartment());
210
- const warningLinter = useCallback(() => linter((view) => getWarningDiagnostics(view.state.doc.toString(), warningsRef.current ?? [])), [warningsRef]);
208
+ // The linter reads the diagnostics when it runs, so a remounted editor shows the current ones; a
209
+ // running view gets new diagnostics by swapping in a new linter. Each swap delays every linter's
210
+ // next run, the syntax error one included, so it happens only when the diagnostics' content changes.
211
+ const diagnosticsRef = useAutoupdateRef(diagnostics);
212
+ const appliedDiagnosticsRef = useRef(diagnostics ?? []);
213
+ const [diagnosticsCompartment] = useState(() => new Compartment());
214
+ const diagnosticLinter = useCallback(() => linter((view) => getPathDiagnostics(view.state.doc.toString(), diagnosticsRef.current ?? [])), [diagnosticsRef]);
211
215
  useEffect(() => {
212
- const current = warnings ?? [];
213
- if (isEqual(appliedWarningsRef.current, current)) {
216
+ const current = diagnostics ?? [];
217
+ if (_isEqual(appliedDiagnosticsRef.current, current)) {
214
218
  return;
215
219
  }
216
- appliedWarningsRef.current = current;
217
- viewRef.current?.dispatch({ effects: warningsCompartment.reconfigure(warningLinter()) });
218
- }, [warnings, warningsCompartment, warningLinter]);
220
+ appliedDiagnosticsRef.current = current;
221
+ viewRef.current?.dispatch({ effects: diagnosticsCompartment.reconfigure(diagnosticLinter()) });
222
+ }, [diagnostics, diagnosticsCompartment, diagnosticLinter]);
223
+ // The completion source speaks in terms of the document's shape — the mapping keys enclosing the
224
+ // position — so the raw CodeMirror context is resolved into that here. YAML only: the position
225
+ // reader walks a YAML parse tree, and no JSON consumer has a completion schema.
226
+ const onCompletion = useMemo(() => completionSource && displayLanguage === "yaml"
227
+ ? (context) => completionSource(context, yamlPositionAt(context.state, context.pos))
228
+ : undefined, [completionSource, displayLanguage]);
219
229
  // Extensions are read once when CodeMirror initialises, so the editor is remounted (keyed on
220
230
  // language) to swap grammars. Losing the undo history is reasonable there: the document was
221
231
  // just rewritten in a different language, so there is nothing coherent left to undo into.
@@ -224,19 +234,23 @@ export function UiConfigEditor({ value, onChange, primaryLanguage = "json", lang
224
234
  lineNumbers(),
225
235
  lintGutter(),
226
236
  syntaxErrorCompartment.of(syntaxErrorLinter()),
227
- warningsCompartment.of(warningLinter()),
237
+ diagnosticsCompartment.of(diagnosticLinter()),
238
+ yamlIndent,
239
+ onCompletion ? enterOpensCompletions : [],
228
240
  ],
229
241
  // Keyed on `grammar` (which changes with the language) rather than the language itself: a
230
242
  // running view gets a late-arriving grammar through the effect above, but any later remount
231
243
  // (a completion-source toggle, say) is built from this memo — stale, it would mount an
232
244
  // editor with no grammar at all.
233
- [grammar, syntaxErrorCompartment, syntaxErrorLinter, warningsCompartment, warningLinter]);
234
- // The completion source speaks in terms of the document's shape — the mapping keys enclosing the
235
- // position — so the raw CodeMirror context is resolved into that here. YAML only: the position
236
- // reader walks a YAML parse tree, and no JSON consumer has a completion schema.
237
- const onCompletion = useMemo(() => completionSource && displayLanguage === "yaml"
238
- ? (context) => completionSource(context, yamlPositionAt(context.state, context.pos))
239
- : undefined, [completionSource, displayLanguage]);
245
+ [
246
+ grammar,
247
+ syntaxErrorCompartment,
248
+ syntaxErrorLinter,
249
+ diagnosticsCompartment,
250
+ diagnosticLinter,
251
+ yamlIndent,
252
+ onCompletion,
253
+ ]);
240
254
  return (_jsxs("div", { className: b({ disabled, readOnly }), style: { "--config-editor-rows": rows }, "data-testid": dataTestId, children: [_jsx(ConfigEditorToolbar, { languages: isSwitchable ? languages : [], displayLanguage: displayLanguage, onSelectLanguage: handleSelectLanguage, labels: labels, canAutoFormat: canAutoFormat, onAutoFormat: handleBeautify, renderContextMenu: renderContextMenu, readOnly: readOnly, disabled: disabled, languageGroupName: languageGroupName, contextMenuButtonId: contextMenuButtonId }), _jsx("div", { className: e("editor"), children: _jsx(SyntaxHighlightingInput, { className: e("input"), highlightStyle: themedHighlightStyle, value: draft, onChange: handleDraftChange,
241
255
  // An external replace means a new document here (an applied example, a dialog
242
256
  // reset), so the cursor goes to its end — a stale clamped offset would drop the
@@ -248,3 +262,26 @@ export function UiConfigEditor({ value, onChange, primaryLanguage = "json", lang
248
262
  viewRef.current = view;
249
263
  } }, editorEpoch) })] }));
250
264
  }
265
+ // Completions activate only on typed input, and a newline is not one, so the key opens them itself.
266
+ // `Prec.high` stays below the popup's own `Prec.highest` Enter, which keeps accepting the selection.
267
+ const enterOpensCompletions = Prec.high(keymap.of([
268
+ {
269
+ key: "Enter",
270
+ run: openCompletionsOnNewLine,
271
+ },
272
+ ]));
273
+ // Enter at the end of a line with content starts a line the user will fill. A blank line being
274
+ // broken again is the user making space (or an Escape just dismissed the list), and a split inside
275
+ // the text carries that text over, so neither opens the suggestions.
276
+ function openCompletionsOnNewLine(view) {
277
+ const { to } = view.state.selection.main;
278
+ const line = view.state.doc.lineAt(to);
279
+ const atEndOfContent = line.text.trim() !== "" && line.text.slice(to - line.from).trim() === "";
280
+ if (!insertNewlineAndIndent(view)) {
281
+ return false;
282
+ }
283
+ if (atEndOfContent) {
284
+ startCompletion(view);
285
+ }
286
+ return true;
287
+ }
@@ -0,0 +1,10 @@
1
+ import { type Diagnostic } from "@codemirror/lint";
2
+ import { type IUiConfigEditorDiagnostic } from "./types.js";
3
+ /**
4
+ * The diagnostics on the text, each over the value its path names, over each place the value holds
5
+ * its part, or over the key of the path for a key target. YAML reads JSON as well, so one parse serves either displayed language. Text
6
+ * that does not parse, and a path it does not hold, give nothing: the syntax error is reported on its
7
+ * own.
8
+ */
9
+ export declare function getPathDiagnostics(text: string, diagnostics: readonly IUiConfigEditorDiagnostic[]): Diagnostic[];
10
+ //# sourceMappingURL=configEditorDiagnostics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configEditorDiagnostics.d.ts","sourceRoot":"","sources":["../../../src/@ui/UiConfigEditor/configEditorDiagnostics.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGnD,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAgB5D;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAC9B,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,SAAS,yBAAyB,EAAE,GAClD,UAAU,EAAE,CAqBd"}
@@ -0,0 +1,65 @@
1
+ // (C) 2026 GoodData Corporation
2
+ import { isMap, isNode, isScalar, isSeq, parseDocument } from "yaml";
3
+ function partRanges(value, part) {
4
+ // "" matches at every offset, so the loop below would never advance.
5
+ if (!part) {
6
+ return [];
7
+ }
8
+ const ranges = [];
9
+ for (let at = value.indexOf(part); at !== -1; at = value.indexOf(part, at + part.length)) {
10
+ ranges.push([at, at + part.length]);
11
+ }
12
+ return ranges;
13
+ }
14
+ /**
15
+ * The diagnostics on the text, each over the value its path names, over each place the value holds
16
+ * its part, or over the key of the path for a key target. YAML reads JSON as well, so one parse serves either displayed language. Text
17
+ * that does not parse, and a path it does not hold, give nothing: the syntax error is reported on its
18
+ * own.
19
+ */
20
+ export function getPathDiagnostics(text, diagnostics) {
21
+ if (diagnostics.length === 0) {
22
+ return [];
23
+ }
24
+ // A repeated key is valid JSON (JSON.parse keeps the last), so it must not drop every diagnostic.
25
+ const document = parseDocument(text, { uniqueKeys: false });
26
+ if (document.errors.length > 0) {
27
+ return [];
28
+ }
29
+ return diagnostics.flatMap(({ path, part, target, severity, message }) => {
30
+ const range = target === "key" ? keyRange(document, path) : valueRange(document, path);
31
+ if (!range) {
32
+ return [];
33
+ }
34
+ const [start, end] = range;
35
+ const parts = partRanges(text.slice(start, end), target === "key" ? undefined : part).map(([from, to]) => [start + from, start + to]);
36
+ const ranges = parts.length > 0 ? parts : [range];
37
+ return ranges.map(([from, to]) => ({ from, to, severity, message }));
38
+ });
39
+ }
40
+ function valueRange(document, path) {
41
+ const node = document.getIn(path, true);
42
+ if (!isNode(node) || !node.range) {
43
+ return undefined;
44
+ }
45
+ if (node.range[0] !== node.range[1]) {
46
+ return [node.range[0], node.range[1]];
47
+ }
48
+ // A blank value has no character to underline, so its key carries the mark. A blank sequence
49
+ // item has no key of its own, so the key of the sequence stands in.
50
+ const keyPath = isSeq(document.getIn(path.slice(0, -1), true)) ? path.slice(0, -1) : path;
51
+ return keyRange(document, keyPath);
52
+ }
53
+ function keyRange(document, path) {
54
+ const parent = document.getIn(path.slice(0, -1), true);
55
+ if (!isMap(parent)) {
56
+ return undefined;
57
+ }
58
+ const key = String(path.at(-1));
59
+ for (const pair of parent.items) {
60
+ if (isScalar(pair.key) && String(pair.key.value) === key && pair.key.range) {
61
+ return [pair.key.range[0], pair.key.range[1]];
62
+ }
63
+ }
64
+ return undefined;
65
+ }
@@ -0,0 +1,8 @@
1
+ import { type Extension } from "@codemirror/state";
2
+ /**
3
+ * lang-yaml keeps the column after an empty `key:` or a bare `-`. Both start a nested value one
4
+ * level deeper, so the new line is indented. An empty key that takes a scalar gets the same indent,
5
+ * which one Backspace undoes; a schema-driven list of block keys would be harder to predict.
6
+ */
7
+ export declare function yamlBlockIndent(): Extension;
8
+ //# sourceMappingURL=configEditorYamlIndent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configEditorYamlIndent.d.ts","sourceRoot":"","sources":["../../../src/@ui/UiConfigEditor/configEditorYamlIndent.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD;;;;GAIG;AACH,wBAAgB,eAAe,IAAI,SAAS,CAE3C"}
@@ -0,0 +1,33 @@
1
+ // (C) 2026 GoodData Corporation
2
+ import { getIndentUnit, indentService, syntaxTree } from "@codemirror/language";
3
+ /**
4
+ * lang-yaml keeps the column after an empty `key:` or a bare `-`. Both start a nested value one
5
+ * level deeper, so the new line is indented. An empty key that takes a scalar gets the same indent,
6
+ * which one Backspace undoes; a schema-driven list of block keys would be harder to predict.
7
+ */
8
+ export function yamlBlockIndent() {
9
+ return indentService.of(indentAfterOpenBlock);
10
+ }
11
+ const TEXT_NODES = new Set(["Comment", "BlockLiteralContent", "QuotedLiteral"]);
12
+ function indentAfterOpenBlock(context, pos) {
13
+ let at = pos - 1;
14
+ while (at >= 0) {
15
+ const line = context.lineAt(at, -1);
16
+ const text = line.text.trimEnd();
17
+ if (text !== "") {
18
+ const node = syntaxTree(context.state).resolveInner(line.from + text.length, -1);
19
+ if (TEXT_NODES.has(node.name) || !opensBlock(text)) {
20
+ return undefined;
21
+ }
22
+ return blockColumn(text) + getIndentUnit(context.state);
23
+ }
24
+ at = line.from - 1;
25
+ }
26
+ return undefined;
27
+ }
28
+ function opensBlock(text) {
29
+ return /^\s*-$/.test(text) || /^\s*(?:-\s+)*("[^"]*"|'[^']*'|[^\s:]+):$/.test(text);
30
+ }
31
+ function blockColumn(text) {
32
+ return /^\s*(?:-\s+)*/.exec(text)?.[0].length ?? 0;
33
+ }
@@ -55,12 +55,12 @@ export interface IUiConfigEditorLabels {
55
55
  syntaxError?: string;
56
56
  }
57
57
  /**
58
- * A warning about a value in the editor's text, shown in the lint gutter. It does not stop the value
59
- * being edited or emitted.
58
+ * An error or warning about a value in the editor's text, shown in the lint gutter. It does not stop
59
+ * the value being edited or emitted.
60
60
  *
61
61
  * @internal
62
62
  */
63
- export interface IUiConfigEditorWarning {
63
+ export interface IUiConfigEditorDiagnostic {
64
64
  /**
65
65
  * Where the value sits in the parsed document, as object keys and array indexes. The same path
66
66
  * finds it whichever language is displayed.
@@ -71,6 +71,9 @@ export interface IUiConfigEditorWarning {
71
71
  * holds it. The whole value is marked when it is absent or the value does not hold it.
72
72
  */
73
73
  part?: string;
74
+ /** `"key"` marks the key that names the value instead of the value, such as an unknown key. */
75
+ target?: "key";
76
+ severity: "error" | "warning";
74
77
  message: string;
75
78
  }
76
79
  /**
@@ -125,10 +128,10 @@ export interface IUiConfigEditorProps {
125
128
  /** The editor's localized texts. Anything omitted falls back to a neutral default. */
126
129
  labels?: IUiConfigEditorLabels;
127
130
  /**
128
- * Warnings about values, shown in the lint gutter next to any syntax error. A warning whose path
129
- * the displayed text does not hold is not shown.
131
+ * Errors and warnings about values, shown in the lint gutter next to any syntax error. A
132
+ * diagnostic whose path the displayed text does not hold is not shown.
130
133
  */
131
- warnings?: readonly IUiConfigEditorWarning[];
134
+ diagnostics?: readonly IUiConfigEditorDiagnostic[];
132
135
  /**
133
136
  * Renders the contents of the toolbar's context menu, usually a `UiMenu`.
134
137
  *
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/@ui/UiConfigEditor/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AAE1F,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEtE;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B,yFAAyF;IACzF,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,KAAK,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,WAAW,+BAA+B;IAC5C,+DAA+D;IAC/D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;;OAGG;IACH,cAAc,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,iBAAiB,EAAE,MAAM,CAAA;KAAE,CAAC;CAC7D;AAED;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC,CAAC;IAC1D,uFAAuF;IACvF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,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1
- {"version":3,"file":"UiDrawer.d.ts","sourceRoot":"","sources":["../../../src/@ui/UiDrawer/UiDrawer.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAIjD;;GAEG;AACH,wBAAgB,QAAQ,CAAC,EACrB,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,IAAiB,EACjB,UAAU,EACV,QAAQ,EACR,MAAgB,EAChB,UAAU,EACV,WAAW,EACX,cAAc,EACd,UAAoB,EACpB,eAAsB,EACtB,eAAe,EACf,YAAmB,EACnB,MAAM,EACN,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,aAAa,EACb,mBAAmB,GACtB,EAAE,cAAc,kDA+FhB"}
1
+ {"version":3,"file":"UiDrawer.d.ts","sourceRoot":"","sources":["../../../src/@ui/UiDrawer/UiDrawer.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAIjD;;GAEG;AACH,wBAAgB,QAAQ,CAAC,EACrB,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,IAAiB,EACjB,UAAU,EACV,QAAQ,EACR,MAAgB,EAChB,UAAU,EACV,WAAW,EACX,cAAc,EACd,UAAoB,EACpB,eAAsB,EACtB,eAAe,EACf,YAAmB,EACnB,MAAM,EACN,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,aAAa,EACb,mBAAmB,GACtB,EAAE,cAAc,kDA+GhB"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  // (C) 2025-2026 GoodData Corporation
3
- import { useMemo, useRef } from "react";
3
+ import { useCallback, useMemo, useRef, useState } from "react";
4
4
  import { Portal } from "react-portal";
5
5
  import { bem } from "../@utils/bem.js";
6
6
  import { makeDialogKeyboardNavigation } from "../@utils/keyboardNavigation.js";
@@ -8,6 +8,7 @@ import { OverlayContent, OverlayProvider } from "../@utils/OverlayStack.js";
8
8
  import { useElementSize } from "../hooks/useElementSize.js";
9
9
  import { UiAutofocus } from "../UiFocusManager/UiAutofocus.js";
10
10
  import { UiFocusTrap } from "../UiFocusManager/UiFocusTrap.js";
11
+ import { UiModalOwnerProvider, modalOwnerAttributes } from "../UiFocusManager/UiModalOwner.js";
11
12
  import { UiReturnFocusOnUnmount } from "../UiFocusManager/UiReturnFocusOnUnmount.js";
12
13
  import { UiIconButton } from "../UiIconButton/UiIconButton.js";
13
14
  import { useToggleDrawer } from "./hooks/useToggleDrawer.js";
@@ -17,6 +18,12 @@ const { b, e } = bem("gd-ui-kit-drawer");
17
18
  */
18
19
  export function UiDrawer({ open, zIndex, node, mode = "absolute", dataTestId, children, anchor = "right", transition, onEscapeKey, onClickOutside, closeLabel = "Close", showCloseButton = true, closeButtonSize, showBackdrop = true, header, onClickClose, refocusKey, initialFocus, returnFocusTo, accessibilityConfig, }) {
19
20
  const ref = useRef(null);
21
+ const contentRef = useRef(null);
22
+ const [content, setContent] = useState(null);
23
+ const setContentElement = useCallback((element) => {
24
+ contentRef.current = element;
25
+ setContent(element);
26
+ }, []);
20
27
  const { isOpen, isFullyOpen, view, backdropStyle, contentStyle } = useToggleDrawer(open ?? false, transition ?? {}, showBackdrop);
21
28
  const handleKeyDown = useMemo(() => makeDialogKeyboardNavigation({
22
29
  onClose: onEscapeKey,
@@ -24,7 +31,10 @@ export function UiDrawer({ open, zIndex, node, mode = "absolute", dataTestId, ch
24
31
  shouldPreventDefault: true,
25
32
  shouldStopPropagation: true,
26
33
  }), [onEscapeKey]);
27
- const { ref: headerRef, height } = useElementSize([isOpen, ref.current]);
34
+ const { ref: headerRef, height } = useElementSize([
35
+ isOpen,
36
+ showCloseButton ? ref.current : content,
37
+ ]);
28
38
  if (!isOpen) {
29
39
  return null;
30
40
  }
@@ -35,7 +45,7 @@ export function UiDrawer({ open, zIndex, node, mode = "absolute", dataTestId, ch
35
45
  position: mode,
36
46
  ...contentStyle,
37
47
  ...(height ? { paddingTop: height } : {}),
38
- }, onKeyDown: handleKeyDown, role: accessibilityConfig?.role ?? "dialog", "aria-label": accessibilityConfig?.ariaLabel, "aria-labelledby": accessibilityConfig?.ariaLabelledBy, "aria-describedby": accessibilityConfig?.ariaDescribedBy, "aria-modal": "true", className: e("content", {
48
+ }, onKeyDown: handleKeyDown, role: accessibilityConfig?.role ?? "dialog", "aria-label": accessibilityConfig?.ariaLabel, "aria-labelledby": accessibilityConfig?.ariaLabelledBy, "aria-describedby": accessibilityConfig?.ariaDescribedBy, "aria-modal": "true", ...modalOwnerAttributes, className: e("content", {
39
49
  showCloseButton: showCloseButton || Boolean(header),
40
- }), ref: showCloseButton ? undefined : ref, children: [_jsxs("div", { className: e("header"), ref: headerRef, children: [header, showCloseButton ? (_jsx("div", { className: e("close-button"), children: _jsx(UiIconButton, { label: closeLabel, icon: "close", variant: "tertiary", size: closeButtonSize, onClick: onClickClose, ref: ref }) })) : null] }), _jsx(UiAutofocus, { root: _jsx("div", { className: e("scrollable") }), active: isFullyOpen, refocusKey: refocusKey, initialFocus: initialFocus || ref, children: children })] }) })] }) }) })) }) }));
50
+ }), ref: setContentElement, children: [_jsxs("div", { className: e("header"), ref: headerRef, children: [_jsx(UiModalOwnerProvider, { modal: content, children: header }), showCloseButton ? (_jsx("div", { className: e("close-button"), children: _jsx(UiIconButton, { label: closeLabel, icon: "close", variant: "tertiary", size: closeButtonSize, onClick: onClickClose, ref: ref }) })) : null] }), _jsx(UiAutofocus, { root: _jsx("div", { className: e("scrollable") }), active: isFullyOpen, refocusKey: refocusKey, initialFocus: initialFocus || (showCloseButton ? ref : contentRef), children: _jsx(UiModalOwnerProvider, { modal: content, children: children }) })] }) })] }) }) })) }) }));
41
51
  }
@@ -1 +1 @@
1
- {"version":3,"file":"UiAutofocus.d.ts","sourceRoot":"","sources":["../../../src/@ui/UiFocusManager/UiAutofocus.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,SAAS,E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ACJ,QAAQ,EACR,GAAG,OAAO,EACb,EAAE;IACC,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;CACvB,GAAG,mBAAmB,iDAKtB"}
@@ -2,6 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  // (C) 2025-2026 GoodData Corporation
3
3
  import { cloneElement, useCallback, useEffect, useMemo, useState, } from "react";
4
4
  import { getFocusableElements, isElementFocusable, isElementTextInput } from "../../utils/domUtilities.js";
5
+ import { isOwnershipAwareModal, useUiModalOwners } from "./UiModalOwner.js";
5
6
  import { resolveRef } from "./utils.js";
6
7
  /**
7
8
  * Provides a ref that will autofocus the element when it is mounted, or when `refocusKey` changes.
@@ -10,6 +11,8 @@ import { resolveRef } from "./utils.js";
10
11
  */
11
12
  export const useUiAutofocusConnectors = ({ active = true, refocusKey, initialFocus, } = {}) => {
12
13
  const [element, setElement] = useState(null);
14
+ const [modalsBeforeMount] = useState(getOpenModals);
15
+ const owners = useUiModalOwners();
13
16
  // Skip setState(null) on unmount — the effect cleanup handles observer teardown, and
14
17
  // calling setElement(null) during commit would trigger a state update outside act() in tests.
15
18
  // On re-mount, the ref callback fires with the new element, setting fresh state.
@@ -56,7 +59,9 @@ export const useUiAutofocusConnectors = ({ active = true, refocusKey, initialFoc
56
59
  intersectionObserver.observe(observedTarget);
57
60
  }
58
61
  };
59
- const isFocusSettled = () => element.contains(document.activeElement) || isElementTextInput(document.activeElement);
62
+ const isFocusSettled = () => element.contains(document.activeElement) ||
63
+ isElementTextInput(document.activeElement) ||
64
+ isFocusInModalItDoesNotBelongTo(element, owners, modalsBeforeMount);
60
65
  const attemptFocus = () => {
61
66
  if (isFocusSettled()) {
62
67
  return true;
@@ -98,9 +103,24 @@ export const useUiAutofocusConnectors = ({ active = true, refocusKey, initialFoc
98
103
  // Initial attempt — fast path when the first focusable is already present and visible.
99
104
  scheduleAttempt();
100
105
  return stop;
101
- }, [refocusKey, element, initialFocus, active]);
106
+ }, [refocusKey, element, initialFocus, active, owners, modalsBeforeMount]);
102
107
  return useMemo(() => ({ ref, element: element }), [ref, element]);
103
108
  };
109
+ const MODAL_SELECTOR = '[aria-modal="true"]';
110
+ function getOpenModals() {
111
+ return typeof document === "undefined" ? new Set() : new Set(document.querySelectorAll(MODAL_SELECTOR));
112
+ }
113
+ function isFocusInModalItDoesNotBelongTo(element, owners, modalsBeforeMount) {
114
+ const modal = document.activeElement?.closest(MODAL_SELECTOR);
115
+ if (!modal || modal.contains(element)) {
116
+ return false;
117
+ }
118
+ if (isOwnershipAwareModal(modal)) {
119
+ return !owners.includes(modal);
120
+ }
121
+ return (!modalsBeforeMount.has(modal) ||
122
+ !!(element.compareDocumentPosition(modal) & Node.DOCUMENT_POSITION_FOLLOWING));
123
+ }
104
124
  function getElementToFocus(element, initialFocus, includeHidden) {
105
125
  const initialFocusElement = resolveRef(initialFocus);
106
126
  const elementToCheck = initialFocusElement ?? element;
@@ -0,0 +1,11 @@
1
+ import { type ReactNode } from "react";
2
+ export declare const modalOwnerAttributes: {
3
+ readonly "data-gd-modal-owner": "";
4
+ };
5
+ export declare function UiModalOwnerProvider({ modal, children }: {
6
+ modal: Element | null;
7
+ children: ReactNode;
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ export declare function useUiModalOwners(): readonly Element[];
10
+ export declare function isOwnershipAwareModal(modal: Element): boolean;
11
+ //# sourceMappingURL=UiModalOwner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UiModalOwner.d.ts","sourceRoot":"","sources":["../../../src/@ui/UiFocusManager/UiModalOwner.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAsC,MAAM,OAAO,CAAC;AAI3E,eAAO,MAAM,oBAAoB;oCAA8B,EAAE;CAAW,CAAC;AAM7E,wBAAgB,oBAAoB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE;IAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAIvG;AAED,wBAAgB,gBAAgB,IAAI,SAAS,OAAO,EAAE,CAErD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAE7D"}
@@ -0,0 +1,18 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ // (C) 2026 GoodData Corporation
3
+ import { createContext, useContext, useMemo } from "react";
4
+ const MODAL_OWNER_ATTRIBUTE = "data-gd-modal-owner";
5
+ export const modalOwnerAttributes = { [MODAL_OWNER_ATTRIBUTE]: "" };
6
+ const NO_OWNERS = [];
7
+ const UiModalOwnerContext = createContext(NO_OWNERS);
8
+ export function UiModalOwnerProvider({ modal, children }) {
9
+ const parentOwners = useContext(UiModalOwnerContext);
10
+ const owners = useMemo(() => (modal ? [modal, ...parentOwners] : parentOwners), [modal, parentOwners]);
11
+ return _jsx(UiModalOwnerContext.Provider, { value: owners, children: children });
12
+ }
13
+ export function useUiModalOwners() {
14
+ return useContext(UiModalOwnerContext);
15
+ }
16
+ export function isOwnershipAwareModal(modal) {
17
+ return modal.hasAttribute(MODAL_OWNER_ATTRIBUTE);
18
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/@ui/UiIcon/icons.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE,SAAS,CAusCjD,CAAC"}
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/@ui/UiIcon/icons.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE,SAAS,CAwtCjD,CAAC"}
@@ -145,6 +145,8 @@ export const iconPaths = {
145
145
  list: (_jsxs(_Fragment, { children: [_jsx("path", { d: "M1 14C1.55228 14 2 14.4477 2 15C2 15.5523 1.55228 16 1 16C0.447715 16 0 15.5523 0 15C0 14.4477 0.447715 14 1 14Z" }), _jsx("path", { d: "M19.5 14.5C19.7761 14.5 20 14.7239 20 15C20 15.2761 19.7761 15.5 19.5 15.5H4.5C4.22386 15.5 4 15.2761 4 15C4 14.7239 4.22386 14.5 4.5 14.5H19.5Z" }), _jsx("path", { d: "M1 9.00488C1.55228 9.00488 2 9.4526 2 10.0049C2 10.5572 1.55228 11.0049 1 11.0049C0.447715 11.0049 0 10.5572 0 10.0049C0 9.4526 0.447715 9.00488 1 9.00488Z" }), _jsx("path", { d: "M19.5 9.5C19.7761 9.5 20 9.72386 20 10C20 10.2761 19.7761 10.5 19.5 10.5H4.5C4.22386 10.5 4 10.2761 4 10C4 9.72386 4.22386 9.5 4.5 9.5H19.5Z" }), _jsx("path", { d: "M1 4C1.55228 4 2 4.44772 2 5C2 5.55228 1.55228 6 1 6C0.447715 6 0 5.55228 0 5C0 4.44772 0.447715 4 1 4Z" }), _jsx("path", { d: "M19.5 4.5C19.7761 4.5 20 4.72386 20 5C20 5.27614 19.7761 5.5 19.5 5.5H4.5C4.22386 5.5 4 5.27614 4 5C4 4.72386 4.22386 4.5 4.5 4.5H19.5Z" })] })),
146
146
  drillTo: (_jsx(_Fragment, { children: _jsx("path", { d: "M0.985916 0C1.53042 0 1.97183 0.44141 1.97183 0.985916V9.01408H16.1972L11.3615 4.1784C10.9726 3.78947 10.9726 3.15889 11.3615 2.76995C11.7504 2.38102 12.381 2.38102 12.77 2.76995L19.2929 9.29289C19.6834 9.68342 19.6834 10.3166 19.2929 10.7071L12.77 17.23C12.381 17.619 11.7504 17.619 11.3615 17.23C10.9726 16.8411 10.9726 16.2105 11.3615 15.8216L16.1972 10.9859H1.97183V19.0141C1.97183 19.5586 1.53042 20 0.985916 20C0.441409 20 0 19.5586 0 19.0141V0.985916C0 0.441409 0.441409 0 0.985916 0Z" }) })),
147
147
  hierarchy: (_jsxs(_Fragment, { children: [_jsx("path", { d: "M0.5 1C0.223858 1 0 1.22386 0 1.5V2.5C0 2.77614 0.223858 3 0.5 3H7.5C7.77614 3 8 2.77614 8 2.5V1.5C8 1.22386 7.77614 1 7.5 1H0.5Z" }), _jsx("path", { d: "M6.5 6C6.22386 6 6 6.22386 6 6.5V7.5C6 7.77614 6.22386 8 6.5 8H12.5C12.7761 8 13 7.77614 13 7.5V6.5C13 6.22386 12.7761 6 12.5 6H6.5Z" }), _jsx("path", { d: "M6 10.5C6 10.2239 6.22386 10 6.5 10H12.5C12.7761 10 13 10.2239 13 10.5V11.5C13 11.7761 12.7761 12 12.5 12H6.5C6.22386 12 6 11.7761 6 11.5V10.5Z" }), _jsx("path", { d: "M2 4H1V10C1 10.5523 1.44772 11 2 11H5V10H2V7H5V6H2V4Z" })] })),
148
+ lineage: (_jsxs(_Fragment, { children: [_jsx("path", { fillRule: "evenodd", d: "M3.611 3.056a2.5 2.5 0 1 0 5 0a2.5 2.5 0 1 0 -5 0ZM4.722 3.056a1.389 1.389 0 1 1 2.778 0a1.389 1.389 0 1 1 -2.778 0ZM3.611 16.944a2.5 2.5 0 1 0 5 0a2.5 2.5 0 1 0 -5 0ZM4.722 16.944a1.389 1.389 0 1 1 2.778 0a1.389 1.389 0 1 1 -2.778 0ZM11.389 16.944a2.5 2.5 0 1 0 5 0a2.5 2.5 0 1 0 -5 0ZM12.5 16.944a1.389 1.389 0 1 1 2.778 0a1.389 1.389 0 1 1 -2.778 0Z" }), _jsx("path", { d: "M5.556 5H6.667V15H5.556Z" }), _jsx("path", { d: "M5.556 7.778A4.444 4.444 0 0 0 10 12.222H11.111A2.222 2.222 0 0 1 13.333 14.444V15H14.444V14.444A3.333 3.333 0 0 0 11.111 11.111H10A3.333 3.333 0 0 1 6.667 7.778Z" })] })),
149
+ report: (_jsxs(_Fragment, { children: [_jsx("path", { d: "M17.85 5.648C17.895 5.694 17.931 5.749 17.957 5.814C17.983 5.873 17.996 5.935 17.996 6V18.5C17.996 18.91 17.85 19.262 17.557 19.555C17.264 19.848 16.912 19.994 16.502 19.994H3.494C3.084 19.994 2.732 19.848 2.439 19.555C2.146 19.262 2 18.91 2 18.5V2.494C2 2.084 2.146 1.732 2.439 1.439C2.732 1.146 3.084 1 3.494 1H12.996C13.061 1 13.123 1.013 13.182 1.039C13.247 1.065 13.302 1.101 13.348 1.146L17.85 5.648ZM16.795 6L12.996 2.201V5.502C12.996 5.639 13.045 5.756 13.143 5.854C13.24 5.951 13.357 6 13.494 6H16.795ZM16.502 18.998C16.639 18.998 16.756 18.949 16.853 18.852C16.951 18.754 17 18.637 17 18.5V6.996H13.494C13.084 6.996 12.732 6.85 12.439 6.557C12.146 6.264 12 5.912 12 5.502V1.996H3.494C3.357 1.996 3.24 2.045 3.143 2.143C3.045 2.24 2.996 2.357 2.996 2.494V18.5C2.996 18.637 3.045 18.754 3.143 18.852C3.24 18.949 3.357 18.998 3.494 18.998H16.502Z" }), _jsx("path", { d: "M9.52 15.647C9.293 15.647 9.07 15.625 8.852 15.58C8.633 15.539 8.422 15.475 8.219 15.389C8.016 15.305 7.822 15.203 7.637 15.08C7.452 14.955 7.279 14.812 7.117 14.65C6.956 14.492 6.812 14.32 6.688 14.135C6.565 13.947 6.461 13.752 6.375 13.549C6.292 13.346 6.228 13.135 6.184 12.916C6.142 12.697 6.121 12.475 6.121 12.248C6.121 12.022 6.142 11.799 6.184 11.58C6.228 11.361 6.292 11.15 6.375 10.947C6.461 10.744 6.565 10.55 6.688 10.365C6.812 10.178 6.956 10.005 7.117 9.846C7.279 9.684 7.452 9.542 7.637 9.42C7.822 9.295 8.016 9.191 8.219 9.108C8.422 9.022 8.633 8.958 8.852 8.916C9.07 8.872 9.293 8.85 9.52 8.85C9.577 8.85 9.625 8.869 9.664 8.908C9.703 8.947 9.723 8.994 9.723 9.049C9.723 9.104 9.703 9.151 9.664 9.19C9.625 9.229 9.577 9.248 9.52 9.248C9.108 9.248 8.72 9.328 8.355 9.486C7.991 9.643 7.672 9.856 7.398 10.127C7.128 10.398 6.913 10.716 6.754 11.08C6.598 11.445 6.52 11.834 6.52 12.248C6.52 12.662 6.598 13.052 6.754 13.416C6.913 13.781 7.128 14.098 7.398 14.369C7.672 14.64 7.991 14.855 8.355 15.014C8.72 15.17 9.108 15.248 9.52 15.248C9.934 15.248 10.323 15.17 10.688 15.014C11.052 14.855 11.37 14.64 11.641 14.369C11.914 14.098 12.129 13.781 12.285 13.416C12.441 13.052 12.519 12.662 12.519 12.248C12.519 12.194 12.539 12.147 12.578 12.107C12.617 12.068 12.665 12.049 12.723 12.049C12.777 12.049 12.824 12.068 12.863 12.107C12.902 12.147 12.922 12.194 12.922 12.248C12.922 12.475 12.9 12.697 12.855 12.916C12.811 13.135 12.747 13.346 12.664 13.549C12.581 13.752 12.477 13.947 12.352 14.135C12.229 14.32 12.087 14.492 11.926 14.65C11.764 14.812 11.591 14.955 11.406 15.08C11.221 15.203 11.026 15.305 10.82 15.389C10.617 15.475 10.406 15.539 10.188 15.58C9.971 15.625 9.749 15.647 9.52 15.647ZM13.519 11.647H10.32C10.266 11.647 10.219 11.627 10.18 11.588C10.141 11.549 10.121 11.502 10.121 11.447V8.248C10.121 8.193 10.141 8.147 10.18 8.108C10.219 8.068 10.266 8.049 10.32 8.049C10.547 8.049 10.77 8.071 10.988 8.115C11.207 8.157 11.418 8.221 11.621 8.307C11.827 8.39 12.022 8.494 12.207 8.619C12.392 8.742 12.565 8.884 12.727 9.045C12.885 9.204 13.026 9.377 13.148 9.565C13.273 9.749 13.378 9.943 13.461 10.147C13.547 10.35 13.612 10.561 13.656 10.779C13.7 10.998 13.723 11.221 13.723 11.447C13.723 11.502 13.703 11.549 13.664 11.588C13.625 11.627 13.577 11.647 13.519 11.647ZM10.52 11.248H13.316C13.29 10.873 13.2 10.522 13.047 10.193C12.893 9.865 12.691 9.578 12.441 9.33C12.191 9.08 11.902 8.878 11.574 8.725C11.246 8.568 10.895 8.479 10.52 8.455V11.248Z" }), _jsx("path", { d: "M12.207 12.248C12.207 12.142 12.239 12.043 12.298 11.959H10.32C10.182 11.959 10.056 11.906 9.959 11.809C9.862 11.712 9.809 11.586 9.809 11.447V9.473C9.723 9.531 9.624 9.561 9.52 9.561C9.15 9.561 8.804 9.632 8.48 9.773L8.479 9.774C8.149 9.915 7.863 10.106 7.618 10.349C7.377 10.59 7.184 10.873 7.04 11.202L7.041 11.203C6.902 11.527 6.832 11.875 6.832 12.248C6.832 12.621 6.902 12.968 7.04 13.291C7.184 13.621 7.377 13.906 7.618 14.148L7.81 14.32C8.009 14.484 8.231 14.619 8.479 14.727L8.726 14.817C8.977 14.896 9.241 14.936 9.52 14.936C9.893 14.936 10.241 14.865 10.565 14.727C10.894 14.583 11.178 14.39 11.42 14.149L11.421 14.148C11.665 13.906 11.857 13.622 11.998 13.293C12.137 12.969 12.207 12.622 12.207 12.248ZM13.234 12.248C13.234 12.495 13.21 12.738 13.162 12.978C13.114 13.215 13.044 13.445 12.953 13.667C12.862 13.89 12.747 14.103 12.611 14.307C12.477 14.509 12.321 14.697 12.145 14.87L12.146 14.871C11.971 15.046 11.783 15.203 11.581 15.339L11.579 15.341C11.378 15.474 11.165 15.585 10.941 15.676C10.718 15.77 10.486 15.841 10.246 15.887L10.245 15.886C10.009 15.934 9.767 15.959 9.52 15.959C9.273 15.959 9.029 15.935 8.79 15.887C8.551 15.841 8.319 15.771 8.097 15.677C7.876 15.586 7.664 15.474 7.464 15.341L7.462 15.339C7.26 15.203 7.072 15.046 6.896 14.871C6.721 14.699 6.565 14.511 6.429 14.31L6.426 14.306C6.293 14.103 6.18 13.891 6.087 13.671L6.086 13.667C5.995 13.445 5.925 13.215 5.877 12.978V12.975C5.832 12.736 5.809 12.494 5.809 12.248C5.809 12.002 5.832 11.76 5.877 11.522V11.519C5.925 11.281 5.995 11.051 6.086 10.829L6.087 10.825C6.18 10.604 6.294 10.393 6.427 10.192L6.428 10.191C6.565 9.986 6.722 9.797 6.898 9.623C7.074 9.448 7.262 9.293 7.464 9.159C7.664 9.024 7.876 8.91 8.097 8.819C8.319 8.725 8.551 8.655 8.79 8.61L8.97 8.578C9.151 8.551 9.334 8.537 9.52 8.537C9.624 8.537 9.723 8.566 9.809 8.624V8.248C9.809 8.11 9.862 7.984 9.959 7.887L10.037 7.822C10.12 7.767 10.217 7.736 10.32 7.736C10.567 7.736 10.81 7.76 11.05 7.809L11.049 7.81C11.287 7.855 11.517 7.923 11.738 8.017L11.906 8.09C12.07 8.167 12.228 8.257 12.379 8.359C12.582 8.493 12.771 8.649 12.947 8.824C13.121 8.998 13.274 9.187 13.408 9.392C13.544 9.592 13.657 9.803 13.748 10.024C13.842 10.247 13.915 10.479 13.963 10.718C14.011 10.957 14.035 11.2 14.035 11.447C14.035 11.586 13.982 11.712 13.885 11.809C13.785 11.909 13.656 11.959 13.519 11.959H13.144C13.202 12.043 13.234 12.142 13.234 12.248ZM10.832 10.936H12.959C12.918 10.723 12.854 10.52 12.764 10.326C12.625 10.03 12.445 9.773 12.222 9.552L12.221 9.551C11.997 9.327 11.737 9.147 11.441 9.008L11.439 9.007C11.247 8.915 11.044 8.851 10.832 8.811V10.936Z" })] })),
148
150
  history: (_jsx("path", { d: "M17.0703 2.92969C17.5456 3.40495 17.9622 3.91602 18.3203 4.46289C18.6849 5.00326 18.9909 5.57292 19.2383 6.17188C19.4922 6.77083 19.681 7.39258 19.8047 8.03711C19.9349 8.68164 20 9.33594 20 10C20 10.6706 19.9349 11.3281 19.8047 11.9727C19.681 12.6107 19.4922 13.2292 19.2383 13.8281C18.9909 14.4271 18.6849 15 18.3203 15.5469C17.9622 16.0938 17.5456 16.6016 17.0703 17.0703C16.6016 17.5456 16.0938 17.9655 15.5469 18.3301C15 18.6947 14.4271 19.0007 13.8281 19.248C13.2292 19.4954 12.6074 19.681 11.9629 19.8047C11.3249 19.9349 10.6706 20 10 20C9.08203 20 8.18685 19.8763 7.31445 19.6289C6.44857 19.388 5.63477 19.043 4.87305 18.5938C4.11133 18.138 3.41471 17.5846 2.7832 16.9336C2.1582 16.2826 1.6276 15.5501 1.19141 14.7363C1.1263 14.6191 1.11328 14.4954 1.15234 14.3652C1.19141 14.2285 1.27279 14.1276 1.39648 14.0625C1.51367 13.9974 1.63737 13.9844 1.76758 14.0234C1.9043 14.0625 2.00521 14.1439 2.07031 14.2676C2.46745 14.9967 2.94596 15.6543 3.50586 16.2402C4.07227 16.8262 4.69727 17.3242 5.38086 17.7344C6.06445 18.1445 6.79688 18.4603 7.57812 18.6816C8.36589 18.8965 9.17318 19.0039 10 19.0039C11.2435 19.0039 12.4089 18.7695 13.4961 18.3008C14.5898 17.8255 15.5436 17.181 16.3574 16.3672C17.1777 15.5534 17.8223 14.5996 18.291 13.5059C18.7663 12.4121 19.0039 11.2435 19.0039 10C19.0039 8.76302 18.7663 7.59766 18.291 6.50391C17.8223 5.41016 17.1777 4.45638 16.3574 3.64258C15.5436 2.82878 14.5898 2.1875 13.4961 1.71875C12.4089 1.24349 11.2435 1.00586 10 1.00586C9.29036 1.00586 8.59701 1.08724 7.91992 1.25C7.24935 1.40625 6.60807 1.63737 5.99609 1.94336C5.38411 2.24935 4.8112 2.62044 4.27734 3.05664C3.75 3.49284 3.27474 3.98763 2.85156 4.54102L4.33594 4.0332C4.46615 3.98763 4.5931 3.9974 4.7168 4.0625C4.84049 4.12109 4.92513 4.21549 4.9707 4.3457C5.01628 4.47591 5.00651 4.60286 4.94141 4.72656C4.88281 4.85026 4.78841 4.9349 4.6582 4.98047L3.16406 5.48828L1.80664 5.94727C1.76107 5.9668 1.71224 5.97656 1.66016 5.97656C1.61458 5.97656 1.56901 5.97005 1.52344 5.95703C1.41276 5.93099 1.32161 5.8724 1.25 5.78125C1.17839 5.6901 1.14258 5.58919 1.14258 5.47852V2.5C1.14258 2.36328 1.19141 2.24609 1.28906 2.14844C1.38672 2.05078 1.50716 2.00195 1.65039 2.00195C1.78711 2.00195 1.9043 2.05078 2.00195 2.14844C2.09961 2.24609 2.14844 2.36328 2.14844 2.5V3.80859C2.61719 3.21615 3.14453 2.68555 3.73047 2.2168C4.31641 1.74154 4.94466 1.34115 5.61523 1.01562C6.28581 0.690104 6.98893 0.439453 7.72461 0.263672C8.4668 0.0878906 9.22526 0 10 0C10.6706 0 11.3249 0.0651042 11.9629 0.195312C12.6074 0.325521 13.2292 0.514323 13.8281 0.761719C14.4271 1.00911 15 1.3151 15.5469 1.67969C16.0938 2.04427 16.6016 2.46094 17.0703 2.92969Z" })),
149
151
  link: (_jsx("path", { d: "M11.1777 12.4961C10.7025 12.4961 10.237 12.4082 9.78125 12.2324C9.33203 12.0501 8.92839 11.7799 8.57031 11.4219C8.47266 11.3242 8.42383 11.207 8.42383 11.0703C8.42383 10.9336 8.47266 10.8164 8.57031 10.7188C8.66797 10.6211 8.78516 10.5723 8.92188 10.5723C9.0651 10.5723 9.18555 10.6211 9.2832 10.7188C9.54362 10.9792 9.83659 11.1745 10.1621 11.3047C10.4941 11.4349 10.8327 11.5 11.1777 11.5C11.5228 11.5 11.8581 11.4349 12.1836 11.3047C12.5156 11.1745 12.8118 10.9792 13.0723 10.7188L16.7051 7.07617C16.972 6.81576 17.1706 6.52279 17.3008 6.19727C17.431 5.86523 17.4961 5.52669 17.4961 5.18164C17.4961 4.83659 17.431 4.5013 17.3008 4.17578C17.1706 3.84375 16.972 3.54753 16.7051 3.28711C16.4447 3.02669 16.1484 2.83138 15.8164 2.70117C15.4909 2.57096 15.1556 2.50586 14.8105 2.50586C14.4655 2.50586 14.127 2.57096 13.7949 2.70117C13.4694 2.83138 13.1764 3.02669 12.916 3.28711L9.84961 6.35352C9.75195 6.45117 9.63151 6.5 9.48828 6.5C9.35156 6.5 9.23438 6.45117 9.13672 6.35352C9.03906 6.25586 8.99023 6.13867 8.99023 6.00195C8.99023 5.86523 9.03906 5.74805 9.13672 5.65039L12.2129 2.58398C12.571 2.22591 12.9746 1.95573 13.4238 1.77344C13.8796 1.59115 14.3418 1.5 14.8105 1.5C15.2858 1.5 15.748 1.59115 16.1973 1.77344C16.653 1.95573 17.0599 2.22591 17.418 2.58398C17.776 2.94206 18.043 3.34896 18.2188 3.80469C18.401 4.25391 18.4922 4.71615 18.4922 5.19141C18.4922 5.66016 18.401 6.1224 18.2188 6.57812C18.043 7.02734 17.776 7.43099 17.418 7.78906L13.7754 11.4219C13.4173 11.7799 13.0104 12.0501 12.5547 12.2324C12.1055 12.4082 11.6465 12.4961 11.1777 12.4961ZM5.17188 18.502C4.70312 18.502 4.24089 18.4141 3.78516 18.2383C3.33594 18.056 2.93229 17.7858 2.57422 17.4277C2.21615 17.0632 1.94596 16.6562 1.76367 16.207C1.58789 15.7513 1.5 15.2891 1.5 14.8203C1.5 14.3516 1.58789 13.8893 1.76367 13.4336C1.94596 12.9779 2.21615 12.571 2.57422 12.2129L6.20703 8.58008C6.5651 8.22201 6.96875 7.95508 7.41797 7.7793C7.8737 7.59701 8.33594 7.50586 8.80469 7.50586C9.27995 7.50586 9.74219 7.59701 10.1914 7.7793C10.6471 7.95508 11.054 8.22201 11.4121 8.58008C11.5098 8.67773 11.5586 8.79492 11.5586 8.93164C11.5586 9.06836 11.5098 9.18555 11.4121 9.2832C11.3145 9.38086 11.1973 9.42969 11.0605 9.42969C10.9238 9.42969 10.8066 9.38086 10.709 9.2832C10.4486 9.02279 10.1523 8.82747 9.82031 8.69727C9.49479 8.56706 9.15951 8.50195 8.81445 8.50195C8.4694 8.50195 8.13086 8.56706 7.79883 8.69727C7.47331 8.82747 7.18034 9.02279 6.91992 9.2832L3.27734 12.9258C3.01693 13.1862 2.82161 13.4824 2.69141 13.8145C2.5612 14.14 2.49609 14.4753 2.49609 14.8203C2.49609 15.1654 2.5612 15.5039 2.69141 15.8359C2.82161 16.1615 3.01693 16.4544 3.27734 16.7148C3.53776 16.9753 3.83398 17.1706 4.16602 17.3008C4.49805 17.431 4.83333 17.4961 5.17188 17.4961C5.51693 17.4961 5.85221 17.431 6.17773 17.3008C6.50977 17.1706 6.80924 16.9753 7.07617 16.7148L10.1426 13.6484C10.2402 13.5508 10.3574 13.502 10.4941 13.502C10.6309 13.502 10.748 13.5508 10.8457 13.6484C10.9434 13.7461 10.9922 13.8633 10.9922 14C10.9922 14.1367 10.9434 14.2539 10.8457 14.3516L7.7793 17.4277C7.42122 17.7858 7.01432 18.056 6.55859 18.2383C6.10938 18.4141 5.64714 18.502 5.17188 18.502Z" })),
150
152
  visualizationTable: (_jsxs(_Fragment, { children: [_jsx("path", { fillRule: "evenodd", clipRule: "evenodd", fillOpacity: "0.3", d: "M5 6.53857H11.9231V9.6155H5V6.53857ZM12.6923 6.53857H19.6154V9.6155H12.6923V6.53857ZM5 10.3847H11.9231V13.4617H5V10.3847ZM12.6923 10.3847H19.6154V13.4617H12.6923V10.3847ZM5 14.2309H11.9231V17.3078H5V14.2309ZM12.6923 14.2309H19.6154V17.3078H12.6923V14.2309Z" }), _jsx("path", { d: "M4.23092 17.3078H0.384766V14.2308H4.23092V17.3078Z" }), _jsx("path", { d: "M4.23092 13.4616H0.384766V10.3847H4.23092V13.4616Z" }), _jsx("path", { d: "M4.23092 9.61546H0.384766V6.53854H4.23092V9.61546Z" }), _jsx("path", { d: "M4.23092 5.76931H0.384766V2.69238H4.23092V5.76931Z" }), _jsx("path", { d: "M11.9232 5.76931H5.00015V2.69238H11.9232V5.76931Z" }), _jsx("path", { d: "M19.6155 5.76931H12.6925V2.69238H19.6155V5.76931Z" })] })),