@gooddata/sdk-ui-kit 11.65.0-alpha.1 → 11.65.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/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTable.d.ts.map +1 -1
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTable.js +4 -3
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTableBody.d.ts +7 -1
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTableBody.d.ts.map +1 -1
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTableBody.js +138 -102
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTableCheckbox.d.ts.map +1 -1
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTableCheckbox.js +3 -1
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTableHeader.d.ts.map +1 -1
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTableHeader.js +11 -91
- package/esm/@ui/UiAsyncTable/UiAsyncTable/asyncTableGridContext.d.ts +10 -1
- package/esm/@ui/UiAsyncTable/UiAsyncTable/asyncTableGridContext.d.ts.map +1 -1
- package/esm/@ui/UiAsyncTable/UiAsyncTable/asyncTableGridContext.js +3 -0
- package/esm/@ui/UiButton/UiButton.d.ts +4 -0
- package/esm/@ui/UiButton/UiButton.d.ts.map +1 -1
- package/esm/@ui/UiButton/UiButton.js +14 -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 +34 -10
- package/esm/@ui/UiConfigEditor/configEditorWarnings.d.ts +10 -0
- package/esm/@ui/UiConfigEditor/configEditorWarnings.d.ts.map +1 -0
- package/esm/@ui/UiConfigEditor/configEditorWarnings.js +42 -0
- package/esm/@ui/UiConfigEditor/types.d.ts +24 -0
- package/esm/@ui/UiConfigEditor/types.d.ts.map +1 -1
- package/esm/@ui/UiIcon/icons.js +2 -2
- package/esm/@ui/UiPagedVirtualList/UiPagedVirtualList.d.ts.map +1 -1
- package/esm/@ui/UiPagedVirtualList/UiPagedVirtualList.js +21 -7
- package/esm/@ui/UiSearchableSelect/UiSearchableSelect.d.ts.map +1 -1
- package/esm/@ui/UiSearchableSelect/UiSearchableSelect.js +2 -3
- package/esm/@ui/UiToast/UiToastProvider.d.ts +8 -1
- package/esm/@ui/UiToast/UiToastProvider.d.ts.map +1 -1
- package/esm/@ui/UiToast/UiToastProvider.js +35 -5
- package/esm/@ui/UiToast/UiToastsContainer.d.ts.map +1 -1
- package/esm/@ui/UiToast/UiToastsContainer.js +6 -2
- package/esm/Bubble/Bubble.d.ts +2 -0
- package/esm/Bubble/Bubble.d.ts.map +1 -1
- package/esm/Bubble/Bubble.js +2 -2
- package/esm/Header/HeaderHelp.d.ts +2 -2
- package/esm/Header/HeaderHelp.d.ts.map +1 -1
- package/esm/Header/HeaderHelp.js +4 -4
- package/esm/Icon/icons/ArrowLeft.js +1 -1
- package/esm/Icon/icons/ArrowRight.js +1 -1
- package/esm/Icon/icons/HistoryBack.js +1 -1
- package/esm/Icon/icons/Home.js +1 -1
- package/esm/Icon/icons/LegendMenu.js +1 -1
- package/esm/Icon/icons/Lock.js +1 -1
- package/esm/Icon/icons/Minimize.js +1 -1
- package/esm/Icon/icons/Pdf.js +1 -1
- package/esm/Icon/icons/Trash.js +1 -1
- package/esm/Messages/toasts/ToastsCenter.d.ts.map +1 -1
- package/esm/Messages/toasts/ToastsCenter.js +2 -2
- package/esm/Overlay/Overlay.d.ts +4 -0
- package/esm/Overlay/Overlay.d.ts.map +1 -1
- package/esm/Overlay/Overlay.js +39 -12
- package/esm/Overlay/typings.d.ts +6 -0
- package/esm/Overlay/typings.d.ts.map +1 -1
- package/esm/assets/data_source_normal_state.svg +1 -1
- package/esm/assets/home.svg +1 -1
- package/esm/assets/model-normal-state.svg +1 -1
- package/esm/index.d.ts +1 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/locales.d.ts +10 -0
- package/esm/locales.d.ts.map +1 -1
- package/esm/locales.js +6 -0
- package/esm/sdk-ui-kit.d.ts +46 -3
- package/esm/utils/constants.d.ts +1 -1
- package/esm/utils/constants.js +2 -2
- package/package.json +11 -11
- package/src/@ui/UiAsyncTable/asyncTable.scss +4 -10
- package/src/@ui/UiButton/UiButton.scss +18 -0
- package/src/@ui/UiFloatingPanel/UiFloatingPanel.scss +0 -1
- package/src/@ui/UiResizableSidebar/UiResizableSidebar.scss +1 -1
- package/src/@ui/UiSearchableSelect/UiSearchableSelect.scss +0 -2
- package/src/@ui/UiToast/UiToast.scss +1 -1
- package/src/@ui/defaultTheme.scss +7 -6
- package/src/FilterGroupItem/FilterGroupItem.scss +1 -1
- package/src/WidgetNotice/WidgetNotice.scss +1 -1
- package/styles/css/UiControlButton.css +1 -1
- package/styles/css/button.css +2 -2
- package/styles/css/chartSorting.css +1 -1
- package/styles/css/colorPicker.css +1 -1
- package/styles/css/dialog.css +2 -2
- package/styles/css/form.css +10 -10
- package/styles/css/header.css +9 -9
- package/styles/css/list.css +1 -1
- package/styles/css/main.css +94 -84
- package/styles/css/main.css.map +1 -1
- package/styles/css/measureNumberFormat.css +1 -1
- package/styles/css/menu.css +1 -1
- package/styles/css/recurrenceForm.css +1 -1
- package/styles/css/richText.css +3 -3
- package/styles/css/shareDialogSelectControl.css +1 -1
- package/styles/css/stylingEditorDialog.css +3 -3
- package/styles/css/syntaxHighlightingInput.css +9 -9
- package/styles/css/tabs.css +1 -1
- package/styles/css/typo.css +3 -3
- package/styles/icons/home.svg +1 -1
- package/styles/scss/header.scss +1 -1
- package/styles/scss/richText.scss +3 -3
- package/styles/scss/variables.scss +2 -2
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2024-2026 GoodData Corporation
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
|
+
import { useIntl } from "react-intl";
|
|
4
5
|
import { simplifyText } from "@gooddata/util";
|
|
6
|
+
import { LoadingSpinner } from "../../LoadingSpinner/LoadingSpinner.js";
|
|
7
|
+
import { uiButtonMessages } from "../../locales.js";
|
|
5
8
|
import { accessibilityConfigToAttributes } from "../../typings/utilities.js";
|
|
6
9
|
import { bem } from "../@utils/bem.js";
|
|
7
10
|
import { UiIcon } from "../UiIcon/UiIcon.js";
|
|
@@ -12,7 +15,7 @@ const getGeneratedTestId = (label, ariaLabel) => {
|
|
|
12
15
|
/**
|
|
13
16
|
* @internal
|
|
14
17
|
*/
|
|
15
|
-
export const UiButton = forwardRef(({ id, size = "medium", variant = "secondary", tabIndex = 0, label, type, isDisabled, isSelected, isLoading, disableIconAnimation, iconBefore, iconBeforeSize: iconBeforeSizeProp, iconAfter, iconAfterSize: iconAfterSizeProp, badgeAfter, onClick, onKeyDown, dataId, dataTestId, accessibilityConfig, maxWidth, autoFocus, }, ref) => {
|
|
18
|
+
export const UiButton = forwardRef(({ id, size = "medium", variant = "secondary", tabIndex = 0, label, type, isDisabled, isSelected, isLoading, isPending, disableIconAnimation, iconBefore, iconBeforeSize: iconBeforeSizeProp, iconAfter, iconAfterSize: iconAfterSizeProp, badgeAfter, onClick, onKeyDown, dataId, dataTestId, accessibilityConfig, maxWidth, autoFocus, }, ref) => {
|
|
16
19
|
const iconBeforeSize = iconBeforeSizeProp ?? (size === "small" ? 16 : 18);
|
|
17
20
|
const iconAfterSize = iconAfterSizeProp ?? (size === "small" ? 16 : 18);
|
|
18
21
|
const hasIconBefore = !!iconBefore;
|
|
@@ -22,9 +25,18 @@ export const UiButton = forwardRef(({ id, size = "medium", variant = "secondary"
|
|
|
22
25
|
size,
|
|
23
26
|
variant,
|
|
24
27
|
isLoading: isLoading ?? false,
|
|
28
|
+
isPending: isPending ?? false,
|
|
25
29
|
hasIconBefore,
|
|
26
30
|
hasIconAfter,
|
|
27
31
|
isSelected: isSelected ?? false,
|
|
28
|
-
}), disabled: isDisabled, tabIndex: tabIndex, autoFocus: autoFocus, onClick: onClick, onKeyDown: onKeyDown, "data-id": dataId, "data-testid": testId, ...accessibilityConfigToAttributes(accessibilityConfig), children: [iconBefore ? (_jsx(UiIcon, { type: iconBefore, size: iconBeforeSize, accessibilityConfig: { ariaHidden: accessibilityConfig?.iconAriaHidden }, disableAnimation: disableIconAnimation })) : null, _jsx("span", { className: e("text"), "data-testid": `${testId}-label`, style: { maxWidth }, children: label }), badgeAfter !== undefined && typeof badgeAfter === "number" ? (_jsxs("span", { className: e("badge-number"), "data-testid": `${testId}-badge`, children: ["(", badgeAfter, ")"] })) : null, badgeAfter !== undefined && typeof badgeAfter === "string" ? (_jsx("span", { className: e("badge-text"), "data-testid": `${testId}-badge`, children: badgeAfter })) : null, iconAfter ? (_jsx(UiIcon, { type: iconAfter, size: iconAfterSize, accessibilityConfig: { ariaHidden: accessibilityConfig?.iconAriaHidden }, disableAnimation: disableIconAnimation })) : null] }));
|
|
32
|
+
}), disabled: isPending ? false : isDisabled, "aria-disabled": isPending || undefined, tabIndex: tabIndex, autoFocus: autoFocus, onClick: isPending ? (e) => e.preventDefault() : onClick, onKeyDown: onKeyDown, "data-id": dataId, "data-testid": testId, ...accessibilityConfigToAttributes(accessibilityConfig), children: [iconBefore ? (_jsx(UiIcon, { type: iconBefore, size: iconBeforeSize, accessibilityConfig: { ariaHidden: accessibilityConfig?.iconAriaHidden }, disableAnimation: disableIconAnimation })) : null, _jsx("span", { className: e("text"), "data-testid": `${testId}-label`, style: { maxWidth }, children: label }), badgeAfter !== undefined && typeof badgeAfter === "number" ? (_jsxs("span", { className: e("badge-number"), "data-testid": `${testId}-badge`, children: ["(", badgeAfter, ")"] })) : null, badgeAfter !== undefined && typeof badgeAfter === "string" ? (_jsx("span", { className: e("badge-text"), "data-testid": `${testId}-badge`, children: badgeAfter })) : null, iconAfter ? (_jsx(UiIcon, { type: iconAfter, size: iconAfterSize, accessibilityConfig: { ariaHidden: accessibilityConfig?.iconAriaHidden }, disableAnimation: disableIconAnimation })) : null, isPending ? _jsx(UiButtonPendingIndicator, {}) : null] }));
|
|
29
33
|
});
|
|
30
34
|
UiButton.displayName = "UiButton";
|
|
35
|
+
/**
|
|
36
|
+
* Extracted into a component because many current tests do not hook up `<IntlProvider />` in them
|
|
37
|
+
* (or do not use global `render()` function). `useIntl()` would otherwise throw there.
|
|
38
|
+
*/
|
|
39
|
+
function UiButtonPendingIndicator() {
|
|
40
|
+
const intl = useIntl();
|
|
41
|
+
return (_jsx("span", { className: e("pending-indicator"), role: "progressbar", "aria-label": intl.formatMessage(uiButtonMessages.pending), children: _jsx(LoadingSpinner, { className: "small", color: "currentColor" }) }));
|
|
42
|
+
}
|
|
@@ -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, 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, warnings, 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":"
|
|
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,9 +1,11 @@
|
|
|
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 { forceLinting, lintGutter } from "@codemirror/lint";
|
|
4
|
+
import { forceLinting, lintGutter, linter } from "@codemirror/lint";
|
|
5
5
|
import { Compartment } from "@codemirror/state";
|
|
6
6
|
import { lineNumbers } from "@codemirror/view";
|
|
7
|
+
import { isEqual } from "lodash-es";
|
|
8
|
+
import { useAutoupdateRef } from "@gooddata/sdk-ui";
|
|
7
9
|
import { createSyntaxErrorLinter } from "../../syntaxHighlightingInput/syntaxErrorLinter.js";
|
|
8
10
|
import { SyntaxHighlightingInput } from "../../syntaxHighlightingInput/SyntaxHighlightingInput.js";
|
|
9
11
|
import { yamlPositionAt } from "../../syntaxHighlightingInput/yamlPosition.js";
|
|
@@ -12,6 +14,7 @@ import { useLanguageGrammar } from "./configEditorGrammars.js";
|
|
|
12
14
|
import { themedHighlightStyle } from "./configEditorHighlighting.js";
|
|
13
15
|
import { beautify, convertText, isProjectable } from "./configEditorLanguage.js";
|
|
14
16
|
import { ConfigEditorToolbar } from "./ConfigEditorToolbar.js";
|
|
17
|
+
import { getWarningDiagnostics } from "./configEditorWarnings.js";
|
|
15
18
|
const { b, e } = bem("gd-ui-kit-config-editor");
|
|
16
19
|
/**
|
|
17
20
|
* A config editor: a CodeMirror source editor with syntax highlighting, line numbers and a lint
|
|
@@ -30,7 +33,7 @@ const { b, e } = bem("gd-ui-kit-config-editor");
|
|
|
30
33
|
*
|
|
31
34
|
* @internal
|
|
32
35
|
*/
|
|
33
|
-
export function UiConfigEditor({ value, onChange, primaryLanguage = "json", languages = ["json", "yaml"], language, onLanguageChange, completionSource, labels, renderContextMenu, label, placeholder, readOnly = false, disabled = false, rows = 12, dataTestId, editorRef, }) {
|
|
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, }) {
|
|
34
37
|
// Scoped to this instance: several editors can sit on one page, and a shared radio `name` would
|
|
35
38
|
// make their language switchers fight over the same group.
|
|
36
39
|
const instanceId = useId();
|
|
@@ -177,36 +180,57 @@ export function UiConfigEditor({ value, onChange, primaryLanguage = "json", lang
|
|
|
177
180
|
// view: remounting instead would throw away whatever the user did while the chunk was on the
|
|
178
181
|
// wire — selection, undo history, focus — and their next keystroke would land at offset 0.
|
|
179
182
|
const grammarCompartmentRef = useRef(new Compartment());
|
|
183
|
+
const syntaxErrorMessage = labels?.syntaxError;
|
|
184
|
+
const [syntaxErrorCompartment] = useState(() => new Compartment());
|
|
185
|
+
const syntaxErrorLinter = useCallback(() => (syntaxErrorMessage ? createSyntaxErrorLinter(syntaxErrorMessage) : []), [syntaxErrorMessage]);
|
|
180
186
|
useEffect(() => {
|
|
181
187
|
const view = viewRef.current;
|
|
182
188
|
if (view) {
|
|
183
189
|
// `grammar ?? []` and not a skip: switching to a language whose grammar is still
|
|
184
190
|
// loading must clear the previous one, or the document keeps being parsed, highlighted
|
|
185
191
|
// and linted as the old language until the chunk arrives — indefinitely, if it fails.
|
|
192
|
+
// A lint that already ran saw the previous grammar or none, and a lint runs again only
|
|
193
|
+
// when the document or the lint configuration changes, so a new syntax error linter is
|
|
194
|
+
// swapped in; `forceLinting` then runs it now rather than after the lint delay.
|
|
186
195
|
view.dispatch({
|
|
187
|
-
effects:
|
|
196
|
+
effects: [
|
|
197
|
+
grammarCompartmentRef.current.reconfigure(grammar ?? []),
|
|
198
|
+
syntaxErrorCompartment.reconfigure(syntaxErrorLinter()),
|
|
199
|
+
],
|
|
188
200
|
});
|
|
189
|
-
// The reconfigure changes neither the document nor the lint configuration, so the
|
|
190
|
-
// linter would not run again on its own — stale diagnostics from the previous grammar
|
|
191
|
-
// (or from the grammar-less tree) would stay in the gutter.
|
|
192
201
|
forceLinting(view);
|
|
193
202
|
}
|
|
194
|
-
}, [grammar]);
|
|
203
|
+
}, [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]);
|
|
211
|
+
useEffect(() => {
|
|
212
|
+
const current = warnings ?? [];
|
|
213
|
+
if (isEqual(appliedWarningsRef.current, current)) {
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
appliedWarningsRef.current = current;
|
|
217
|
+
viewRef.current?.dispatch({ effects: warningsCompartment.reconfigure(warningLinter()) });
|
|
218
|
+
}, [warnings, warningsCompartment, warningLinter]);
|
|
195
219
|
// Extensions are read once when CodeMirror initialises, so the editor is remounted (keyed on
|
|
196
220
|
// language) to swap grammars. Losing the undo history is reasonable there: the document was
|
|
197
221
|
// just rewritten in a different language, so there is nothing coherent left to undo into.
|
|
198
|
-
const syntaxErrorMessage = labels?.syntaxError;
|
|
199
222
|
const extensions = useMemo(() => [
|
|
200
223
|
grammarCompartmentRef.current.of(grammar ?? []),
|
|
201
224
|
lineNumbers(),
|
|
202
225
|
lintGutter(),
|
|
203
|
-
|
|
226
|
+
syntaxErrorCompartment.of(syntaxErrorLinter()),
|
|
227
|
+
warningsCompartment.of(warningLinter()),
|
|
204
228
|
],
|
|
205
229
|
// Keyed on `grammar` (which changes with the language) rather than the language itself: a
|
|
206
230
|
// running view gets a late-arriving grammar through the effect above, but any later remount
|
|
207
231
|
// (a completion-source toggle, say) is built from this memo — stale, it would mount an
|
|
208
232
|
// editor with no grammar at all.
|
|
209
|
-
[grammar,
|
|
233
|
+
[grammar, syntaxErrorCompartment, syntaxErrorLinter, warningsCompartment, warningLinter]);
|
|
210
234
|
// The completion source speaks in terms of the document's shape — the mapping keys enclosing the
|
|
211
235
|
// position — so the raw CodeMirror context is resolved into that here. YAML only: the position
|
|
212
236
|
// reader walks a YAML parse tree, and no JSON consumer has a completion schema.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type Diagnostic } from "@codemirror/lint";
|
|
2
|
+
import { type IUiConfigEditorWarning } from "./types.js";
|
|
3
|
+
/**
|
|
4
|
+
* The warnings as diagnostics on the text, each over the value its path names, or over each place the
|
|
5
|
+
* value holds its part. 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 getWarningDiagnostics(text: string, warnings: readonly IUiConfigEditorWarning[]): Diagnostic[];
|
|
10
|
+
//# sourceMappingURL=configEditorWarnings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configEditorWarnings.d.ts","sourceRoot":"","sources":["../../../src/@ui/UiConfigEditor/configEditorWarnings.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGnD,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAgBzD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACjC,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,SAAS,sBAAsB,EAAE,GAC5C,UAAU,EAAE,CAsBd"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// (C) 2026 GoodData Corporation
|
|
2
|
+
import { isNode, 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 warnings as diagnostics on the text, each over the value its path names, or over each place the
|
|
16
|
+
* value holds its part. 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 getWarningDiagnostics(text, warnings) {
|
|
21
|
+
if (warnings.length === 0) {
|
|
22
|
+
return [];
|
|
23
|
+
}
|
|
24
|
+
// A repeated key is valid JSON (JSON.parse keeps the last), so it must not drop every warning.
|
|
25
|
+
const document = parseDocument(text, { uniqueKeys: false });
|
|
26
|
+
if (document.errors.length > 0) {
|
|
27
|
+
return [];
|
|
28
|
+
}
|
|
29
|
+
return warnings.flatMap(({ path, part, message }) => {
|
|
30
|
+
const node = document.getIn(path, true);
|
|
31
|
+
if (!isNode(node) || node.range === undefined || node.range === null) {
|
|
32
|
+
return [];
|
|
33
|
+
}
|
|
34
|
+
const [start, end] = node.range;
|
|
35
|
+
const parts = partRanges(text.slice(start, end), part).map(([from, to]) => [
|
|
36
|
+
start + from,
|
|
37
|
+
start + to,
|
|
38
|
+
]);
|
|
39
|
+
const ranges = parts.length > 0 ? parts : [[start, end]];
|
|
40
|
+
return ranges.map(([from, to]) => ({ from, to, severity: "warning", message }));
|
|
41
|
+
});
|
|
42
|
+
}
|
|
@@ -54,6 +54,25 @@ export interface IUiConfigEditorLabels {
|
|
|
54
54
|
*/
|
|
55
55
|
syntaxError?: string;
|
|
56
56
|
}
|
|
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.
|
|
60
|
+
*
|
|
61
|
+
* @internal
|
|
62
|
+
*/
|
|
63
|
+
export interface IUiConfigEditorWarning {
|
|
64
|
+
/**
|
|
65
|
+
* Where the value sits in the parsed document, as object keys and array indexes. The same path
|
|
66
|
+
* finds it whichever language is displayed.
|
|
67
|
+
*/
|
|
68
|
+
path: ReadonlyArray<string | number>;
|
|
69
|
+
/**
|
|
70
|
+
* A piece of the value's text to mark, such as one marker in a string, at each place the value
|
|
71
|
+
* holds it. The whole value is marked when it is absent or the value does not hold it.
|
|
72
|
+
*/
|
|
73
|
+
part?: string;
|
|
74
|
+
message: string;
|
|
75
|
+
}
|
|
57
76
|
/**
|
|
58
77
|
* @internal
|
|
59
78
|
*/
|
|
@@ -105,6 +124,11 @@ export interface IUiConfigEditorProps {
|
|
|
105
124
|
completionSource?: YamlCompletionSource;
|
|
106
125
|
/** The editor's localized texts. Anything omitted falls back to a neutral default. */
|
|
107
126
|
labels?: IUiConfigEditorLabels;
|
|
127
|
+
/**
|
|
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.
|
|
130
|
+
*/
|
|
131
|
+
warnings?: readonly IUiConfigEditorWarning[];
|
|
108
132
|
/**
|
|
109
133
|
* Renders the contents of the toolbar's context menu, usually a `UiMenu`.
|
|
110
134
|
*
|
|
@@ -1 +1 @@
|
|
|
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ACH,QAAQ,CAAC,EAAE,SAAS,sBAAsB,EAAE,CAAC;IAC7C;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,+BAA+B,KAAK,SAAS,CAAC;IAC1E;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mFAAmF;IACnF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,GAAG,CAAC,kBAAkB,CAAC,CAAC;CACvC"}
|
package/esm/@ui/UiIcon/icons.js
CHANGED
|
@@ -173,8 +173,8 @@ export const iconPaths = {
|
|
|
173
173
|
filePdf: (_jsxs(_Fragment, { children: [_jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.2334 7.22445C10.4113 7.46371 10.5076 7.78541 10.5389 8.15506L10.5433 8.15483C10.6183 9.16897 10.4285 10.0198 10.1463 10.7914C10.2517 10.926 10.3675 11.0657 10.4962 11.2209C10.6303 11.3825 10.7783 11.561 10.9428 11.768L10.9436 11.7689C11.2402 12.1441 11.5159 12.475 11.7728 12.7634C11.857 12.7616 11.9414 12.7606 12.0258 12.7606C12.8087 12.7606 13.653 12.841 14.297 13.1201C14.6339 13.2661 14.9113 13.4788 15.0604 13.7665C15.2192 14.073 15.2025 14.413 15.0317 14.6917C14.7118 15.2141 13.9971 15.3655 13.3206 15.1847L13.3192 15.1843C12.8302 15.0522 12.3408 14.7209 11.841 14.2641C11.6824 14.1191 11.519 13.9579 11.3502 13.7808C10.8528 13.8093 10.3805 13.8645 10.0006 13.9228C9.45329 14.0107 8.96158 14.1182 8.51643 14.2545C8.44122 14.3914 8.36383 14.5292 8.2849 14.6661C7.85218 15.4168 7.34121 16.1994 6.87057 16.641C6.59789 16.9031 6.29695 17.079 5.99084 17.1386C5.68066 17.199 5.34025 17.1389 5.09583 16.8908C4.85222 16.6435 4.79516 16.3021 4.85518 15.9884C4.91469 15.6774 5.08945 15.3642 5.35541 15.0691C6.04866 14.2913 6.86227 13.7808 7.82397 13.4318C8.07861 12.9508 8.29625 12.5027 8.44225 12.1804C8.51617 12.0176 8.58976 11.8594 8.66186 11.7044C8.78581 11.4379 8.90535 11.1808 9.01456 10.9262C8.98639 10.8824 8.95909 10.8384 8.93276 10.794C8.59006 10.217 8.38878 9.57277 8.34932 8.63015L8.34916 8.62599C8.33478 8.19678 8.41103 7.81697 8.56037 7.51544C8.7045 7.22442 8.94536 6.95648 9.28166 6.86657C9.66008 6.76541 10.0126 6.92741 10.2334 7.22445ZM9.54901 8.35069L9.55363 8.35055C9.57485 8.76947 9.54315 9.15192 9.47307 9.51527C9.40707 9.25822 9.36405 8.95836 9.34854 8.59048C9.33892 8.29517 9.39379 8.08585 9.45648 7.95926C9.46423 7.94362 9.47177 7.92978 9.479 7.91753C9.51001 8.0019 9.5418 8.13974 9.54901 8.35069ZM9.56474 12.1366C9.61151 12.0367 9.65855 11.9363 9.70536 11.8351L9.78038 11.9256C9.90516 12.0762 10.0326 12.23 10.1595 12.3895C10.2848 12.5481 10.4075 12.7003 10.5278 12.846C10.2812 12.8726 10.0513 12.9033 9.84716 12.9346L9.84385 12.9352C9.59873 12.9745 9.36099 13.018 9.13037 13.0668C9.21513 12.8921 9.2901 12.7322 9.35296 12.5934C9.42173 12.442 9.49297 12.2899 9.56474 12.1366ZM13.5794 14.2188C13.3831 14.1656 13.1377 14.0358 12.8341 13.7974C13.2517 13.8386 13.6191 13.9162 13.8994 14.0376C14.0439 14.1002 14.1153 14.1593 14.1482 14.1948C14.1279 14.2079 14.0958 14.2238 14.0472 14.237C13.9449 14.2649 13.7864 14.274 13.5794 14.2188ZM6.10102 15.7355C6.34183 15.4652 6.60179 15.2316 6.88663 15.029C6.63407 15.407 6.39231 15.7189 6.18451 15.9134L6.17922 15.9185C6.03591 16.0566 5.91974 16.119 5.84493 16.1447C5.86934 16.0579 5.93701 15.9173 6.09889 15.7379L6.10102 15.7355Z" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M17.957 5.81445C17.931 5.74935 17.8952 5.69401 17.8496 5.64844L13.3477 1.14648C13.3021 1.10091 13.2467 1.0651 13.1816 1.03906C13.123 1.01302 13.0612 1 12.9961 1H3.49414C3.08398 1 2.73242 1.14648 2.43945 1.43945C2.14648 1.73242 2 2.08398 2 2.49414V18.5C2 18.9102 2.14648 19.2617 2.43945 19.5547C2.73242 19.8477 3.08398 19.9941 3.49414 19.9941H16.502C16.9121 19.9941 17.2637 19.8477 17.5566 19.5547C17.8496 19.2617 17.9961 18.9102 17.9961 18.5V6C17.9961 5.9349 17.9831 5.87305 17.957 5.81445ZM12.9961 2.20117L16.7949 6H13.4941C13.3574 6 13.2402 5.95117 13.1426 5.85352C13.0449 5.75586 12.9961 5.63867 12.9961 5.50195V2.20117ZM16.8535 18.8516C16.7559 18.9492 16.6387 18.998 16.502 18.998H3.49414C3.35742 18.998 3.24023 18.9492 3.14258 18.8516C3.04492 18.7539 2.99609 18.6367 2.99609 18.5V2.49414C2.99609 2.35742 3.04492 2.24023 3.14258 2.14258C3.24023 2.04492 3.35742 1.99609 3.49414 1.99609H12V5.50195C12 5.91211 12.1465 6.26367 12.4395 6.55664C12.7324 6.84961 13.084 6.99609 13.4941 6.99609H17V18.5C17 18.6367 16.9512 18.7539 16.8535 18.8516Z" })] })),
|
|
174
174
|
filePptx: (_jsxs(_Fragment, { children: [_jsx("path", { d: "M17.8496 5.64844C17.8952 5.69401 17.931 5.74935 17.957 5.81445C17.9831 5.87305 17.9961 5.9349 17.9961 6V18.5C17.9961 18.9102 17.8496 19.2617 17.5566 19.5547C17.2637 19.8477 16.9121 19.9941 16.502 19.9941H3.49414C3.08398 19.9941 2.73242 19.8477 2.43945 19.5547C2.14648 19.2617 2 18.9102 2 18.5V2.49414C2 2.08398 2.14648 1.73242 2.43945 1.43945C2.73242 1.14648 3.08398 1 3.49414 1H12.9961C13.0612 1 13.123 1.01302 13.1816 1.03906C13.2467 1.0651 13.3021 1.10091 13.3477 1.14648L17.8496 5.64844ZM16.7949 6L12.9961 2.20117V5.50195C12.9961 5.63867 13.0449 5.75586 13.1426 5.85352C13.2402 5.95117 13.3574 6 13.4941 6H16.7949ZM16.502 18.998C16.6387 18.998 16.7559 18.9492 16.8535 18.8516C16.9512 18.7539 17 18.6367 17 18.5V6.99609H13.4941C13.084 6.99609 12.7324 6.84961 12.4395 6.55664C12.1465 6.26367 12 5.91211 12 5.50195V1.99609H3.49414C3.35742 1.99609 3.24023 2.04492 3.14258 2.14258C3.04492 2.24023 2.99609 2.35742 2.99609 2.49414V18.5C2.99609 18.6367 3.04492 18.7539 3.14258 18.8516C3.24023 18.9492 3.35742 18.998 3.49414 18.998H16.502Z" }), _jsx("path", { d: "M9.51953 15.6466C9.29297 15.6466 9.07031 15.6245 8.85156 15.5802C8.63281 15.5385 8.42188 15.4747 8.21875 15.3888C8.01562 15.3055 7.82161 15.2026 7.63672 15.0802C7.45182 14.9552 7.27865 14.812 7.11719 14.6505C6.95573 14.4917 6.8125 14.3198 6.6875 14.1349C6.5651 13.9474 6.46094 13.7521 6.375 13.549C6.29167 13.3458 6.22786 13.1349 6.18359 12.9161C6.14193 12.6974 6.12109 12.4747 6.12109 12.2482C6.12109 12.0216 6.14193 11.799 6.18359 11.5802C6.22786 11.3615 6.29167 11.1505 6.375 10.9474C6.46094 10.7443 6.5651 10.5503 6.6875 10.3654C6.8125 10.1779 6.95573 10.0047 7.11719 9.84583C7.27865 9.68437 7.45182 9.54244 7.63672 9.42004C7.82161 9.29504 8.01562 9.19088 8.21875 9.10754C8.42188 9.02161 8.63281 8.9578 8.85156 8.91614C9.07031 8.87187 9.29297 8.84973 9.51953 8.84973C9.57682 8.84973 9.625 8.86926 9.66406 8.90833C9.70312 8.94739 9.72266 8.99426 9.72266 9.04895C9.72266 9.10364 9.70312 9.15051 9.66406 9.18958C9.625 9.22864 9.57682 9.24817 9.51953 9.24817C9.10807 9.24817 8.72005 9.3276 8.35547 9.48645C7.99089 9.6427 7.67188 9.85624 7.39844 10.1271C7.1276 10.3979 6.91276 10.7156 6.75391 11.0802C6.59766 11.4448 6.51953 11.8341 6.51953 12.2482C6.51953 12.6622 6.59766 13.0516 6.75391 13.4161C6.91276 13.7807 7.1276 14.0984 7.39844 14.3693C7.67188 14.6401 7.99089 14.8549 8.35547 15.0138C8.72005 15.17 9.10807 15.2482 9.51953 15.2482C9.93359 15.2482 10.3229 15.17 10.6875 15.0138C11.0521 14.8549 11.3698 14.6401 11.6406 14.3693C11.9141 14.0984 12.1289 13.7807 12.2852 13.4161C12.4414 13.0516 12.5195 12.6622 12.5195 12.2482C12.5195 12.1935 12.5391 12.1466 12.5781 12.1075C12.6172 12.0685 12.6654 12.049 12.7227 12.049C12.7773 12.049 12.8242 12.0685 12.8633 12.1075C12.9023 12.1466 12.9219 12.1935 12.9219 12.2482C12.9219 12.4747 12.8997 12.6974 12.8555 12.9161C12.8112 13.1349 12.7474 13.3458 12.6641 13.549C12.5807 13.7521 12.4766 13.9474 12.3516 14.1349C12.2292 14.3198 12.0872 14.4917 11.9258 14.6505C11.7643 14.812 11.5911 14.9552 11.4062 15.0802C11.2214 15.2026 11.026 15.3055 10.8203 15.3888C10.6172 15.4747 10.4062 15.5385 10.1875 15.5802C9.97135 15.6245 9.7487 15.6466 9.51953 15.6466ZM13.5195 11.6466H10.3203C10.2656 11.6466 10.2188 11.6271 10.1797 11.588C10.1406 11.549 10.1211 11.5021 10.1211 11.4474V8.24817C10.1211 8.19348 10.1406 8.14661 10.1797 8.10754C10.2188 8.06848 10.2656 8.04895 10.3203 8.04895C10.5469 8.04895 10.7695 8.07109 10.9883 8.11536C11.207 8.15702 11.418 8.22083 11.6211 8.30676C11.8268 8.3901 12.0221 8.49426 12.207 8.61926C12.3919 8.74166 12.5651 8.88359 12.7266 9.04504C12.8854 9.2039 13.026 9.37708 13.1484 9.56458C13.2734 9.74947 13.3776 9.94348 13.4609 10.1466C13.5469 10.3497 13.612 10.5607 13.6562 10.7794C13.7005 10.9982 13.7227 11.2208 13.7227 11.4474C13.7227 11.5021 13.7031 11.549 13.6641 11.588C13.625 11.6271 13.5768 11.6466 13.5195 11.6466ZM10.5195 11.2482H13.3164C13.2904 10.8732 13.2005 10.5216 13.0469 10.1935C12.8932 9.86536 12.6914 9.5776 12.4414 9.3302C12.1914 9.0802 11.9023 8.87838 11.5742 8.72473C11.2461 8.56848 10.8945 8.47864 10.5195 8.4552V11.2482Z" }), _jsx("path", { d: "M12.207 12.2482C12.207 12.1417 12.2393 12.0433 12.2979 11.9591H10.3203C10.1818 11.9591 10.056 11.9057 9.95898 11.8087C9.86199 11.7117 9.80859 11.5859 9.80859 11.4474V9.47278C9.72284 9.53091 9.62375 9.56067 9.51953 9.56067C9.14961 9.56067 8.80422 9.63156 8.48047 9.77258L8.47852 9.77356C8.14892 9.91481 7.86284 10.1064 7.61816 10.3488C7.37704 10.5901 7.18358 10.8735 7.04004 11.2023L7.04102 11.2032C6.90217 11.5272 6.83203 11.8745 6.83203 12.2482C6.83203 12.621 6.90176 12.9677 7.04004 13.2911C7.18368 13.6208 7.37651 13.9057 7.61816 14.1476L7.80957 14.3204C8.00857 14.4836 8.2314 14.6188 8.47852 14.7267L8.72559 14.8175C8.97716 14.8959 9.24134 14.9357 9.51953 14.9357C9.89317 14.9357 10.2405 14.8655 10.5645 14.7267C10.8938 14.5829 11.1782 14.3902 11.4199 14.1486L11.4209 14.1476C11.6649 13.906 11.8572 13.6218 11.998 13.2931C12.1369 12.9691 12.207 12.6218 12.207 12.2482ZM13.2344 12.2482C13.2344 12.4951 13.2105 12.7384 13.1621 12.9777C13.114 13.2153 13.044 13.4455 12.9531 13.6671C12.8619 13.8896 12.7472 14.1028 12.6113 14.3068C12.4771 14.5095 12.3214 14.6969 12.1455 14.8702L12.1465 14.8712C11.9713 15.0464 11.7828 15.2026 11.5811 15.339L11.5791 15.3409C11.378 15.474 11.1649 15.5851 10.9414 15.6759C10.7179 15.7704 10.4862 15.8411 10.2461 15.8868L10.2451 15.8859C10.0091 15.9339 9.76727 15.9591 9.51953 15.9591C9.27264 15.9591 9.02934 15.9352 8.79004 15.8868C8.55092 15.8411 8.31937 15.7711 8.09668 15.6769C7.87585 15.586 7.66447 15.4737 7.46387 15.3409L7.46191 15.339C7.26015 15.2026 7.07169 15.0464 6.89648 14.8712C6.72139 14.6987 6.56491 14.5112 6.42871 14.3097L6.42578 14.3058C6.29343 14.103 6.18018 13.8914 6.08691 13.671L6.08594 13.6671C5.99505 13.4455 5.92505 13.2153 5.87695 12.9777V12.9747C5.83155 12.7364 5.80859 12.494 5.80859 12.2482C5.80859 12.0023 5.83155 11.76 5.87695 11.5216V11.5187C5.92505 11.281 5.99505 11.0508 6.08594 10.8292L6.08691 10.8253C6.18037 10.6044 6.29383 10.3933 6.42676 10.1925L6.42773 10.1915C6.56461 9.98628 6.72191 9.79685 6.89844 9.62317C7.07365 9.44821 7.26183 9.29306 7.46387 9.1593C7.66448 9.0239 7.87551 8.91046 8.09668 8.81946C8.31943 8.72522 8.55085 8.65527 8.79004 8.6095L8.96973 8.57825C9.15086 8.55099 9.33416 8.53723 9.51953 8.53723C9.62356 8.53723 9.72294 8.56622 9.80859 8.62415V8.24817C9.80859 8.10966 9.86199 7.98384 9.95898 7.88684L10.0371 7.82239C10.1199 7.76662 10.2165 7.73645 10.3203 7.73645C10.5672 7.73645 10.8105 7.76032 11.0498 7.80872L11.0488 7.80969C11.2866 7.85514 11.5167 7.92338 11.7383 8.01672L11.9062 8.08997C12.0703 8.16669 12.2277 8.25655 12.3789 8.35852C12.5818 8.4928 12.7715 8.64853 12.9473 8.82434C13.1207 8.99776 13.2743 9.18697 13.4082 9.39172C13.5437 9.59237 13.657 9.80333 13.748 10.0245C13.8422 10.2471 13.9145 10.4789 13.9629 10.7179C14.0113 10.9572 14.0352 11.2005 14.0352 11.4474C14.0352 11.5859 13.9818 11.7117 13.8848 11.8087C13.7847 11.9088 13.6563 11.9591 13.5195 11.9591H13.1436C13.2021 12.0433 13.2344 12.1417 13.2344 12.2482ZM10.832 10.9357H12.959C12.918 10.7226 12.8541 10.5195 12.7637 10.3263C12.6252 10.0305 12.4447 9.77258 12.2217 9.55188L12.2207 9.5509C11.997 9.3272 11.7375 9.14658 11.4414 9.00793L11.4395 9.00696C11.2468 8.91524 11.0444 8.85099 10.832 8.81067V10.9357Z" })] })),
|
|
175
175
|
fileImage: (_jsx(_Fragment, { children: _jsx("path", { d: "M12.9961 10.2539C13.3411 10.2539 13.6667 10.1888 13.9727 10.0586C14.2786 9.92839 14.5423 9.74935 14.7637 9.52148C14.9915 9.29362 15.1706 9.02995 15.3008 8.73047C15.431 8.42448 15.4961 8.09896 15.4961 7.75391C15.4961 7.40885 15.431 7.08659 15.3008 6.78711C15.1706 6.48112 14.9915 6.21419 14.7637 5.98633C14.5423 5.75846 14.2786 5.57943 13.9727 5.44922C13.6667 5.31901 13.3411 5.25391 12.9961 5.25391C12.651 5.25391 12.3255 5.31901 12.0195 5.44922C11.7201 5.57943 11.4564 5.75846 11.2285 5.98633C11.0072 6.21419 10.8281 6.48112 10.6914 6.78711C10.5612 7.08659 10.4961 7.40885 10.4961 7.75391C10.4961 8.09896 10.5612 8.42448 10.6914 8.73047C10.8281 9.02995 11.0072 9.29362 11.2285 9.52148C11.4564 9.74935 11.7201 9.92839 12.0195 10.0586C12.3255 10.1888 12.651 10.2539 12.9961 10.2539ZM12.9961 6.25C13.4128 6.25 13.7676 6.39648 14.0605 6.68945C14.3535 6.98242 14.5 7.33724 14.5 7.75391C14.5 8.17057 14.3535 8.52539 14.0605 8.81836C13.7676 9.11133 13.4128 9.25781 12.9961 9.25781C12.5859 9.25781 12.2344 9.11133 11.9414 8.81836C11.6484 8.52539 11.502 8.17057 11.502 7.75391C11.502 7.33724 11.6484 6.98242 11.9414 6.68945C12.2344 6.39648 12.5859 6.25 12.9961 6.25ZM16.4961 1C16.9128 1 17.2676 1.14648 17.5605 1.43945C17.8535 1.73242 18 2.08724 18 2.50391V18.5059C18 18.916 17.8535 19.2676 17.5605 19.5605C17.2676 19.8535 16.9128 20 16.4961 20H3.50391C3.08724 20 2.73242 19.8535 2.43945 19.5605C2.14648 19.2676 2 18.916 2 18.5059V2.50391C2 2.08724 2.14648 1.73242 2.43945 1.43945C2.73242 1.14648 3.08724 1 3.50391 1H16.4961ZM2.99609 18.5059C2.99609 18.6426 3.04492 18.7598 3.14258 18.8574C3.24023 18.9551 3.36068 19.0039 3.50391 19.0039H14.832L7.83008 11.5723C7.78451 11.5267 7.73242 11.4941 7.67383 11.4746C7.62174 11.4486 7.56641 11.4355 7.50781 11.4355C7.44922 11.4355 7.39388 11.4486 7.3418 11.4746C7.28971 11.5007 7.24089 11.5365 7.19531 11.582L2.99609 16.2012V18.5059ZM17.0039 18.5059V2.50391C17.0039 2.36719 16.9551 2.25 16.8574 2.15234C16.7598 2.05469 16.6393 2.00586 16.4961 2.00586H3.50391C3.36068 2.00586 3.24023 2.05469 3.14258 2.15234C3.04492 2.25 2.99609 2.36719 2.99609 2.50391V14.707L6.45312 10.9082C6.58984 10.7585 6.74609 10.6445 6.92188 10.5664C7.10417 10.4818 7.29622 10.4362 7.49805 10.4297C7.69987 10.4297 7.88867 10.4688 8.06445 10.5469C8.24674 10.625 8.40951 10.7357 8.55273 10.8789L16.209 19.0039H16.4961C16.6393 19.0039 16.7598 18.9551 16.8574 18.8574C16.9551 18.7598 17.0039 18.6426 17.0039 18.5059Z", fill: "#F18600" }) })),
|
|
176
|
-
fileCsvFormatted: (_jsx(_Fragment, { children: _jsx("path", { d: "M17.8496 5.64844C17.8952 5.69401 17.931 5.74935 17.957 5.81445C17.9831 5.87305 17.9961 5.9349 17.9961 6V18.5C17.9961 18.9102 17.8496 19.2617 17.5566 19.5547C17.2637 19.8477 16.9121 19.9941 16.502 19.9941H3.49414C3.08398 19.9941 2.73242 19.8477 2.43945 19.5547C2.14648 19.2617 2 18.9102 2 18.5V2.49414C2 2.08398 2.14648 1.73242 2.43945 1.43945C2.73242 1.14648 3.08398 1 3.49414 1H12.9961C13.0612 1 13.123 1.01302 13.1816 1.03906C13.2467 1.0651 13.3021 1.10091 13.3477 1.14648L17.8496 5.64844ZM16.7949 6L12.9961 2.20117V5.50195C12.9961 5.63867 13.0449 5.75586 13.1426 5.85352C13.2402 5.95117 13.3574 6 13.4941 6H16.7949ZM16.502 18.998C16.6387 18.998 16.7559 18.9492 16.8535 18.8516C16.9512 18.7539 17 18.6367 17 18.5V6.99609H13.4941C13.084 6.99609 12.7324 6.84961 12.4395 6.55664C12.1465 6.26367 12 5.91211 12 5.50195V1.99609H3.49414C3.35742 1.99609 3.24023 2.04492 3.14258 2.14258C3.04492 2.24023 2.99609 2.35742 2.99609 2.49414V18.5C2.99609 18.6367 3.04492 18.7539 3.14258 18.8516C3.24023 18.9492 3.35742 18.998 3.49414 18.998H16.502ZM14.5 9.99414C14.6367 9.99414 14.7539 10.043 14.8516 10.1406C14.9492 10.2383 14.998 10.3587 14.998 10.502V16.498C14.998 16.6348 14.9492 16.752 14.8516 16.8496C14.7539 16.9473 14.6367 16.9961 14.5 16.9961H5.49609C5.35938 16.9961 5.24219 16.9473 5.14453 16.8496C5.04688 16.752 4.99805 16.6348 4.99805 16.498V10.502C4.99805 10.3587 5.04688 10.2383 5.14453 10.1406C5.24219 10.043 5.35938 9.99414 5.49609 9.99414H14.5ZM14.002 13.002V11H12V13.002H14.002ZM9.00195 13.002H10.9941V11H9.00195V13.002ZM10.9941 13.998H9.00195V16H10.9941V13.998ZM7.99609 11H5.99414V13.002H7.99609V11ZM5.99414 13.998V16H7.99609V13.998H5.99414ZM12 16H14.002V13.998H12V16Z", fill: "#
|
|
177
|
-
fileCsvRaw: (_jsxs(_Fragment, { children: [_jsx("path", { d: "M13.998 15.4971C14.2742 15.4971 14.498 15.7209 14.498 15.9971C14.498 16.2732 14.2742 16.4971 13.998 16.4971H5.99805C5.7219 16.4971 5.49805 16.2732 5.49805 15.9971C5.49805 15.7209 5.7219 15.4971 5.99805 15.4971H13.998Z", fill: "#
|
|
176
|
+
fileCsvFormatted: (_jsx(_Fragment, { children: _jsx("path", { d: "M17.8496 5.64844C17.8952 5.69401 17.931 5.74935 17.957 5.81445C17.9831 5.87305 17.9961 5.9349 17.9961 6V18.5C17.9961 18.9102 17.8496 19.2617 17.5566 19.5547C17.2637 19.8477 16.9121 19.9941 16.502 19.9941H3.49414C3.08398 19.9941 2.73242 19.8477 2.43945 19.5547C2.14648 19.2617 2 18.9102 2 18.5V2.49414C2 2.08398 2.14648 1.73242 2.43945 1.43945C2.73242 1.14648 3.08398 1 3.49414 1H12.9961C13.0612 1 13.123 1.01302 13.1816 1.03906C13.2467 1.0651 13.3021 1.10091 13.3477 1.14648L17.8496 5.64844ZM16.7949 6L12.9961 2.20117V5.50195C12.9961 5.63867 13.0449 5.75586 13.1426 5.85352C13.2402 5.95117 13.3574 6 13.4941 6H16.7949ZM16.502 18.998C16.6387 18.998 16.7559 18.9492 16.8535 18.8516C16.9512 18.7539 17 18.6367 17 18.5V6.99609H13.4941C13.084 6.99609 12.7324 6.84961 12.4395 6.55664C12.1465 6.26367 12 5.91211 12 5.50195V1.99609H3.49414C3.35742 1.99609 3.24023 2.04492 3.14258 2.14258C3.04492 2.24023 2.99609 2.35742 2.99609 2.49414V18.5C2.99609 18.6367 3.04492 18.7539 3.14258 18.8516C3.24023 18.9492 3.35742 18.998 3.49414 18.998H16.502ZM14.5 9.99414C14.6367 9.99414 14.7539 10.043 14.8516 10.1406C14.9492 10.2383 14.998 10.3587 14.998 10.502V16.498C14.998 16.6348 14.9492 16.752 14.8516 16.8496C14.7539 16.9473 14.6367 16.9961 14.5 16.9961H5.49609C5.35938 16.9961 5.24219 16.9473 5.14453 16.8496C5.04688 16.752 4.99805 16.6348 4.99805 16.498V10.502C4.99805 10.3587 5.04688 10.2383 5.14453 10.1406C5.24219 10.043 5.35938 9.99414 5.49609 9.99414H14.5ZM14.002 13.002V11H12V13.002H14.002ZM9.00195 13.002H10.9941V11H9.00195V13.002ZM10.9941 13.998H9.00195V16H10.9941V13.998ZM7.99609 11H5.99414V13.002H7.99609V11ZM5.99414 13.998V16H7.99609V13.998H5.99414ZM12 16H14.002V13.998H12V16Z", fill: "#6A737D" }) })),
|
|
177
|
+
fileCsvRaw: (_jsxs(_Fragment, { children: [_jsx("path", { d: "M13.998 15.4971C14.2742 15.4971 14.498 15.7209 14.498 15.9971C14.498 16.2732 14.2742 16.4971 13.998 16.4971H5.99805C5.7219 16.4971 5.49805 16.2732 5.49805 15.9971C5.49805 15.7209 5.7219 15.4971 5.99805 15.4971H13.998Z", fill: "#6A737D" }), _jsx("path", { d: "M13.998 12.9971C14.2742 12.9971 14.498 13.2209 14.498 13.4971C14.498 13.7732 14.2742 13.9971 13.998 13.9971H5.99805C5.7219 13.9971 5.49805 13.7732 5.49805 13.4971C5.49805 13.2209 5.7219 12.9971 5.99805 12.9971H13.998Z", fill: "#6A737D" }), _jsx("path", { d: "M13.998 10.4971C14.2742 10.4971 14.498 10.7209 14.498 10.9971C14.498 11.2732 14.2742 11.4971 13.998 11.4971H5.99805C5.7219 11.4971 5.49805 11.2732 5.49805 10.9971C5.49805 10.7209 5.7219 10.4971 5.99805 10.4971H13.998Z", fill: "#6A737D" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.9961 1C13.0612 1 13.123 1.01302 13.1816 1.03906C13.2467 1.0651 13.3021 1.10091 13.3477 1.14648L17.8496 5.64844C17.8952 5.69401 17.931 5.74935 17.957 5.81445C17.9831 5.87305 17.9961 5.9349 17.9961 6V18.5C17.9961 18.9102 17.8496 19.2617 17.5566 19.5547C17.2637 19.8477 16.9121 19.9941 16.502 19.9941H3.49414C3.08398 19.9941 2.73242 19.8477 2.43945 19.5547C2.14648 19.2617 2 18.9102 2 18.5V2.49414C2 2.08398 2.14648 1.73242 2.43945 1.43945C2.73242 1.14648 3.08398 1 3.49414 1H12.9961ZM3.49414 1.99609C3.35742 1.99609 3.24023 2.04492 3.14258 2.14258C3.04492 2.24023 2.99609 2.35742 2.99609 2.49414V18.5C2.99609 18.6367 3.04492 18.7539 3.14258 18.8516C3.24023 18.9492 3.35742 18.998 3.49414 18.998H16.502C16.6387 18.998 16.7559 18.9492 16.8535 18.8516C16.9512 18.7539 17 18.6367 17 18.5V6.99609H13.4941C13.084 6.99609 12.7324 6.84961 12.4395 6.55664C12.1465 6.26367 12 5.91211 12 5.50195V1.99609H3.49414ZM12.9961 5.50195C12.9961 5.63867 13.0449 5.75586 13.1426 5.85352C13.2402 5.95117 13.3574 6 13.4941 6H16.7949L12.9961 2.20117V5.50195Z", fill: "#6A737D" })] })),
|
|
178
178
|
aiDocument: (_jsxs(_Fragment, { children: [_jsx("path", { d: "M 12.1357 1.002 C 11.7079 1.2385 11.402 1.5921 11.2158 1.998 H 2.4941 C 2.3574 1.998 2.2402 2.0469 2.1426 2.1445 C 2.0449 2.2422 1.9961 2.3594 1.9961 2.4961 V 18.502 C 1.9961 18.6386 2.0449 18.7558 2.1426 18.8535 C 2.2402 18.9511 2.3574 19 2.4941 19 H 15.502 C 15.6387 19 15.7559 18.9511 15.8535 18.8535 C 15.9512 18.7558 16 18.6386 16 18.502 V 8 C 16.3425 7.9999 16.6838 7.9268 16.9961 7.7842 V 18.502 C 16.9961 18.9121 16.8496 19.2636 16.5566 19.5567 C 16.2636 19.8496 15.9121 19.9961 15.502 19.9961 H 2.4941 C 2.084 19.9961 1.7324 19.8496 1.4395 19.5567 C 1.1465 19.2636 1 18.9121 1 18.502 V 2.4961 C 1 2.0859 1.1465 1.7344 1.4395 1.4414 C 1.7324 1.1484 2.084 1.002 2.4941 1.002 H 12.1357 Z" }), _jsx("path", { d: "M 9.498 13 C 9.7742 13 9.998 13.2239 9.998 13.5 C 9.998 13.7761 9.7742 14 9.498 14 H 4.498 C 4.2219 14 3.998 13.7761 3.998 13.5 C 3.998 13.2239 4.2219 13 4.498 13 H 9.498 Z" }), _jsx("path", { d: "M 12.498 10 C 12.7742 10 12.998 10.2239 12.998 10.5 C 12.998 10.7761 12.7742 11 12.498 11 H 4.498 C 4.2219 11 3.998 10.7761 3.998 10.5 C 3.998 10.2239 4.2219 10 4.498 10 H 12.498 Z" }), _jsx("path", { d: "M 12.498 7 C 12.7742 7 12.998 7.2238 12.998 7.5 C 12.998 7.7762 12.7742 8 12.498 8 H 4.498 C 4.2219 8 3.998 7.7762 3.998 7.5 C 3.998 7.2238 4.2219 7 4.498 7 H 12.498 Z" }), _jsx("path", { d: "M 15.7028 0.249 C 15.758 -0.083 16.2374 -0.083 16.2927 0.249 C 16.5003 1.5093 17.4874 2.4978 18.7477 2.706 C 19.0801 2.761 19.0801 3.2388 18.7477 3.2939 C 17.4873 3.5019 16.5003 4.4914 16.2927 5.7519 C 16.2373 6.0838 15.7581 6.0838 15.7028 5.7519 C 15.4951 4.4914 14.5081 3.5019 13.2477 3.2939 C 12.9148 3.239 12.9148 2.7608 13.2477 2.706 C 14.5081 2.4978 15.4952 1.5093 15.7028 0.249 Z" })] })),
|
|
179
179
|
thumbsUp: (_jsx("path", { d: "M17.0244 10.4863C17.0303 10.498 17.0361 10.5098 17.042 10.5215C17.0479 10.5273 17.0537 10.5361 17.0596 10.5479C17.1299 10.6709 17.1826 10.8115 17.2178 10.9697C17.2529 11.1279 17.2705 11.3008 17.2705 11.4883C17.2705 11.7578 17.2354 12.0391 17.165 12.332C17.1006 12.6191 17.0068 12.8857 16.8838 13.1318C16.7959 13.3018 16.7021 13.4512 16.6025 13.5801C16.5029 13.709 16.3945 13.8174 16.2773 13.9053C16.2832 13.9404 16.2861 13.9785 16.2861 14.0195C16.292 14.0605 16.2949 14.1045 16.2949 14.1514C16.2949 14.3857 16.2598 14.6465 16.1895 14.9336C16.1191 15.2207 16.0254 15.4873 15.9082 15.7334C15.7852 15.9854 15.6445 16.1934 15.4863 16.3574C15.3281 16.5215 15.1611 16.6416 14.9854 16.7178C14.9385 16.958 14.8418 17.1836 14.6953 17.3945C14.5547 17.5996 14.373 17.7754 14.1504 17.9219C13.9219 18.0742 13.6582 18.1914 13.3594 18.2734C13.0664 18.3555 12.7559 18.3965 12.4277 18.3965C11.8066 18.3965 11.2822 18.373 10.8545 18.3262C10.4326 18.2793 10.0723 18.2178 9.77344 18.1416C9.47461 18.0654 9.2168 17.9775 9 17.8779C8.78906 17.7783 8.58105 17.6729 8.37598 17.5615C8.05371 17.3916 7.68164 17.2246 7.25977 17.0605C6.83789 16.8906 6.1875 16.7529 5.30859 16.6475C5.20898 16.8936 5.04492 17.0986 4.81641 17.2627C4.58789 17.4209 4.33301 17.5 4.05176 17.5H1.35352C0.978516 17.5 0.65918 17.3682 0.395508 17.1045C0.131836 16.8408 0 16.5215 0 16.1465V8.05176C0 7.67676 0.131836 7.35742 0.395508 7.09375C0.65918 6.83008 0.978516 6.69824 1.35352 6.69824H4.05176C4.32129 6.69824 4.56445 6.77148 4.78125 6.91797C4.99805 7.05859 5.16211 7.24316 5.27344 7.47168C5.70117 7.3252 6.12598 7.15527 6.54785 6.96191C6.96973 6.76855 7.37988 6.55469 7.77832 6.32031C8.18262 6.08008 8.57227 5.82227 8.94727 5.54688C9.32812 5.27148 9.68848 4.98145 10.0283 4.67676C10.3857 4.35449 10.708 4.02637 10.9951 3.69238C11.2822 3.3584 11.5312 3.02734 11.7422 2.69922C11.959 2.36523 12.1318 2.03711 12.2607 1.71484C12.3955 1.39258 12.4805 1.08496 12.5156 0.791992C12.5332 0.680664 12.583 0.586914 12.665 0.510742C12.7529 0.43457 12.8525 0.396484 12.9639 0.396484C13.251 0.396484 13.5732 0.478516 13.9307 0.642578C14.2881 0.800781 14.5811 1.0791 14.8096 1.47754C14.9678 1.75879 15.0674 2.08105 15.1084 2.44434C15.1494 2.80176 15.1289 3.2002 15.0469 3.63965C14.9648 4.07324 14.8242 4.54785 14.625 5.06348C14.4258 5.57324 14.165 6.11816 13.8428 6.69824H16.1982C16.4443 6.69824 16.6641 6.75391 16.8574 6.86523C17.0566 6.9707 17.2207 7.12598 17.3496 7.33105C17.4492 7.48926 17.5225 7.6709 17.5693 7.87598C17.6221 8.08105 17.6484 8.30371 17.6484 8.54395C17.6484 8.90723 17.5928 9.26465 17.4814 9.61621C17.376 9.96777 17.2236 10.2578 17.0244 10.4863ZM4.05176 16.6035C4.1748 16.6035 4.28027 16.5596 4.36816 16.4717C4.45605 16.3838 4.5 16.2754 4.5 16.1465V8.05176C4.5 7.92871 4.45605 7.82324 4.36816 7.73535C4.28027 7.64746 4.1748 7.60352 4.05176 7.60352H1.35352C1.22461 7.60352 1.11621 7.64746 1.02832 7.73535C0.94043 7.82324 0.896484 7.92871 0.896484 8.05176V16.1465C0.896484 16.2754 0.94043 16.3838 1.02832 16.4717C1.11621 16.5596 1.22461 16.6035 1.35352 16.6035H4.05176ZM16.5059 9.64258C16.582 9.49023 16.6406 9.31738 16.6816 9.12402C16.7285 8.93066 16.752 8.7373 16.752 8.54395C16.752 8.3916 16.7373 8.25391 16.708 8.13086C16.6787 8.00195 16.6377 7.89648 16.585 7.81445C16.5381 7.73828 16.4824 7.68555 16.418 7.65625C16.3594 7.62109 16.2861 7.60352 16.1982 7.60352H13.0693C12.9873 7.60352 12.9111 7.58301 12.8408 7.54199C12.7705 7.50098 12.7148 7.44531 12.6738 7.375C12.6328 7.30469 12.6123 7.22852 12.6123 7.14648C12.6182 7.06445 12.6416 6.98828 12.6826 6.91797C13.1455 6.13867 13.4912 5.46484 13.7197 4.89648C13.9482 4.32812 14.0977 3.84473 14.168 3.44629C14.2383 3.04785 14.25 2.72852 14.2031 2.48828C14.1562 2.24219 14.0977 2.05176 14.0273 1.91699C13.9336 1.75879 13.8223 1.63574 13.6934 1.54785C13.5703 1.45996 13.4473 1.39844 13.3242 1.36328C13.2422 1.68555 13.1221 2.01367 12.9639 2.34766C12.8115 2.68164 12.6211 3.01855 12.3926 3.3584C12.1699 3.69238 11.9092 4.02637 11.6104 4.36035C11.3174 4.69434 10.9922 5.02246 10.6348 5.34473C10.2598 5.67871 9.86426 5.99805 9.44824 6.30273C9.03223 6.60156 8.60156 6.87988 8.15625 7.1377C7.7168 7.38965 7.26562 7.62109 6.80273 7.83203C6.33984 8.04297 5.87109 8.22461 5.39648 8.37695V15.751C5.88281 15.8096 6.30176 15.8799 6.65332 15.9619C7.00488 16.0381 7.30957 16.123 7.56738 16.2168C7.83105 16.3047 8.05957 16.3955 8.25293 16.4893C8.44629 16.583 8.63086 16.6768 8.80664 16.7705C8.98828 16.8701 9.17285 16.9639 9.36035 17.0518C9.54785 17.1396 9.77344 17.2188 10.0371 17.2891C10.3066 17.3535 10.6318 17.4062 11.0127 17.4473C11.3936 17.4824 11.8652 17.5 12.4277 17.5C12.8379 17.5 13.2217 17.4062 13.5791 17.2188C13.9365 17.0312 14.1152 16.7412 14.1152 16.3486C14.1152 16.2256 14.1592 16.1201 14.2471 16.0322C14.335 15.9443 14.4434 15.9004 14.5723 15.9004C14.625 15.9004 14.6836 15.874 14.748 15.8213C14.8125 15.7686 14.877 15.6953 14.9414 15.6016C15.1172 15.3496 15.2402 15.0654 15.3105 14.749C15.3809 14.4268 15.4102 14.1953 15.3984 14.0547C15.334 14.0137 15.2812 13.9609 15.2402 13.8965C15.2051 13.8262 15.1875 13.7529 15.1875 13.6768C15.1875 13.5537 15.2314 13.4482 15.3193 13.3604C15.4072 13.2725 15.5127 13.2285 15.6357 13.2285C15.6768 13.2285 15.7383 13.1934 15.8203 13.123C15.9023 13.0469 15.9873 12.918 16.0752 12.7363C16.1689 12.5547 16.2422 12.3525 16.2949 12.1299C16.3477 11.9072 16.374 11.6934 16.374 11.4883C16.374 11.3828 16.3652 11.2861 16.3477 11.1982C16.3301 11.1104 16.3066 11.04 16.2773 10.9873C16.2598 10.9521 16.2422 10.9316 16.2246 10.9258C16.207 10.9199 16.1895 10.917 16.1719 10.917C16.0488 10.917 15.9434 10.873 15.8555 10.7852C15.7676 10.6973 15.7236 10.5918 15.7236 10.4688C15.7236 10.3457 15.7676 10.2402 15.8555 10.1523C15.9434 10.0645 16.0488 10.0205 16.1719 10.0205C16.2012 10.0205 16.2451 9.99414 16.3037 9.94141C16.3682 9.88281 16.4355 9.7832 16.5059 9.64258Z" })),
|
|
180
180
|
thumbsDown: (_jsx("path", { d: "M17.0244 8.31543C17.2236 8.54395 17.376 8.83398 17.4814 9.18555C17.5928 9.53711 17.6484 9.89453 17.6484 10.2578C17.6484 10.498 17.6221 10.7207 17.5693 10.9258C17.5225 11.1309 17.4492 11.3096 17.3496 11.4619C17.2207 11.667 17.0566 11.8252 16.8574 11.9365C16.6641 12.0479 16.4443 12.1035 16.1982 12.1035H13.8428C14.165 12.6836 14.4258 13.2285 14.625 13.7383C14.8242 14.248 14.9648 14.7227 15.0469 15.1621C15.1289 15.5957 15.1494 15.9941 15.1084 16.3574C15.0674 16.7207 14.9678 17.043 14.8096 17.3242C14.5811 17.7227 14.2881 18.001 13.9307 18.1592C13.5732 18.3174 13.251 18.3965 12.9639 18.3965C12.8525 18.3965 12.7529 18.3584 12.665 18.2822C12.583 18.2119 12.5332 18.1211 12.5156 18.0098C12.4805 17.7109 12.3955 17.4033 12.2607 17.0869C12.1318 16.7646 11.959 16.4365 11.7422 16.1025C11.5312 15.7686 11.2822 15.4375 10.9951 15.1094C10.708 14.7754 10.3857 14.4473 10.0283 14.125C9.68848 13.8203 9.32812 13.5303 8.94727 13.2549C8.57227 12.9795 8.18262 12.7246 7.77832 12.4902C7.37988 12.25 6.96973 12.0332 6.54785 11.8398C6.12598 11.6465 5.70117 11.4766 5.27344 11.3301C5.16211 11.5586 4.99805 11.7461 4.78125 11.8926C4.56445 12.0332 4.32129 12.1035 4.05176 12.1035H1.35352C0.978516 12.1035 0.65918 11.9717 0.395508 11.708C0.131836 11.4443 0 11.125 0 10.75V2.64648C0 2.27734 0.131836 1.96094 0.395508 1.69727C0.65918 1.43359 0.978516 1.30176 1.35352 1.30176H4.05176C4.33301 1.30176 4.58789 1.38086 4.81641 1.53906C5.04492 1.69727 5.20898 1.90234 5.30859 2.1543C6.1875 2.04297 6.83789 1.90527 7.25977 1.74121C7.68164 1.57715 8.05371 1.41016 8.37598 1.24023C8.58105 1.12891 8.78906 1.02344 9 0.923828C9.2168 0.824219 9.47461 0.736328 9.77344 0.660156C10.0723 0.578125 10.4326 0.513672 10.8545 0.466797C11.2822 0.419922 11.8066 0.396484 12.4277 0.396484C12.7559 0.396484 13.0664 0.4375 13.3594 0.519531C13.6582 0.601562 13.9219 0.72168 14.1504 0.879883C14.373 1.02637 14.5547 1.20215 14.6953 1.40723C14.8418 1.6123 14.9385 1.83789 14.9854 2.08398C15.1611 2.16016 15.3281 2.28027 15.4863 2.44434C15.6445 2.6084 15.7852 2.81641 15.9082 3.06836C16.0254 3.30859 16.1191 3.5752 16.1895 3.86816C16.2598 4.15527 16.2949 4.41602 16.2949 4.65039C16.2949 4.69727 16.292 4.74121 16.2861 4.78223C16.2861 4.82324 16.2832 4.86133 16.2773 4.89648C16.3945 4.98438 16.5029 5.09277 16.6025 5.22168C16.7021 5.34473 16.7959 5.49121 16.8838 5.66113C17.0068 5.90723 17.1006 6.17676 17.165 6.46973C17.2354 6.75684 17.2705 7.03516 17.2705 7.30469C17.2705 7.49805 17.2529 7.67383 17.2178 7.83203C17.1826 7.99023 17.1299 8.13086 17.0596 8.25391C17.0537 8.26562 17.0479 8.27734 17.042 8.28906C17.0361 8.29492 17.0303 8.30371 17.0244 8.31543ZM4.05176 2.19824H1.35352C1.22461 2.19824 1.11621 2.24219 1.02832 2.33008C0.94043 2.41797 0.896484 2.52344 0.896484 2.64648V10.75C0.896484 10.873 0.94043 10.9785 1.02832 11.0664C1.11621 11.1543 1.22461 11.1982 1.35352 11.1982H4.05176C4.1748 11.1982 4.28027 11.1543 4.36816 11.0664C4.45605 10.9785 4.5 10.873 4.5 10.75V2.65527C4.5 2.64941 4.5 2.64648 4.5 2.64648C4.5 2.52344 4.45605 2.41797 4.36816 2.33008C4.28027 2.24219 4.1748 2.19824 4.05176 2.19824ZM16.5059 9.15039C16.4355 9.01562 16.3682 8.92188 16.3037 8.86914C16.2451 8.81055 16.2012 8.78125 16.1719 8.78125C16.0488 8.78125 15.9434 8.7373 15.8555 8.64941C15.7676 8.56152 15.7236 8.45605 15.7236 8.33301C15.7236 8.20996 15.7676 8.10449 15.8555 8.0166C15.9434 7.92871 16.0488 7.88477 16.1719 7.88477C16.1895 7.88477 16.207 7.88184 16.2246 7.87598C16.2422 7.87012 16.2598 7.84961 16.2773 7.81445C16.3066 7.76172 16.3301 7.69141 16.3477 7.60352C16.3652 7.51562 16.374 7.41602 16.374 7.30469C16.374 7.10547 16.3477 6.89453 16.2949 6.67188C16.2422 6.44922 16.1689 6.24707 16.0752 6.06543C15.9873 5.88379 15.9023 5.75781 15.8203 5.6875C15.7383 5.61133 15.6768 5.57324 15.6357 5.57324C15.5127 5.57324 15.4072 5.5293 15.3193 5.44141C15.2314 5.35352 15.1875 5.24805 15.1875 5.125C15.1875 5.04297 15.2051 4.96973 15.2402 4.90527C15.2812 4.84082 15.334 4.78809 15.3984 4.74707C15.4102 4.60645 15.3809 4.375 15.3105 4.05273C15.2402 3.73047 15.1172 3.44629 14.9414 3.2002C14.877 3.10645 14.8125 3.0332 14.748 2.98047C14.6836 2.92773 14.625 2.90137 14.5723 2.90137C14.4434 2.90137 14.335 2.85742 14.2471 2.76953C14.1592 2.68164 14.1152 2.57617 14.1152 2.45312C14.1152 2.05469 13.9365 1.76465 13.5791 1.58301C13.2217 1.39551 12.8379 1.30176 12.4277 1.30176C11.8652 1.30176 11.3936 1.32227 11.0127 1.36328C10.6318 1.39844 10.3066 1.45117 10.0371 1.52148C9.77344 1.58594 9.54785 1.66211 9.36035 1.75C9.17285 1.83789 8.98828 1.93164 8.80664 2.03125C8.63086 2.125 8.44629 2.21875 8.25293 2.3125C8.05957 2.40625 7.83105 2.5 7.56738 2.59375C7.30957 2.68164 7.00488 2.7666 6.65332 2.84863C6.30176 2.9248 5.88281 2.99219 5.39648 3.05078V10.416C5.87109 10.5742 6.33984 10.7588 6.80273 10.9697C7.26562 11.1748 7.7168 11.4062 8.15625 11.6641C8.60156 11.9219 9.03223 12.2002 9.44824 12.499C9.86426 12.7979 10.2598 13.1172 10.6348 13.457C10.9922 13.7793 11.3174 14.1074 11.6104 14.4414C11.9092 14.7754 12.1699 15.1123 12.3926 15.4521C12.6211 15.7861 12.8115 16.1201 12.9639 16.4541C13.1221 16.7881 13.2422 17.1162 13.3242 17.4385C13.4473 17.3975 13.5703 17.333 13.6934 17.2451C13.8223 17.1572 13.9336 17.0371 14.0273 16.8848C14.0977 16.75 14.1562 16.5596 14.2031 16.3135C14.25 16.0674 14.2383 15.748 14.168 15.3555C14.0977 14.957 13.9482 14.4736 13.7197 13.9053C13.4912 13.3369 13.1455 12.6631 12.6826 11.8838C12.6416 11.8135 12.6182 11.7373 12.6123 11.6553C12.6123 11.5732 12.6328 11.4971 12.6738 11.4268C12.7148 11.3564 12.7705 11.3008 12.8408 11.2598C12.9111 11.2188 12.9873 11.1982 13.0693 11.1982H16.1982C16.2861 11.1982 16.3594 11.1836 16.418 11.1543C16.4824 11.1191 16.5381 11.0635 16.585 10.9873C16.6377 10.9053 16.6787 10.8027 16.708 10.6797C16.7373 10.5508 16.752 10.4102 16.752 10.2578C16.752 10.0645 16.7285 9.87109 16.6816 9.67773C16.6406 9.48438 16.582 9.30859 16.5059 9.15039Z" })),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiPagedVirtualList.d.ts","sourceRoot":"","sources":["../../../src/@ui/UiPagedVirtualList/UiPagedVirtualList.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,SAAS,EAQjB,MAAM,OAAO,CAAC;AAcf;;GAEG;AACH,MAAM,WAAW,oCAAoC;IACjD,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;G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AAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IAClC,sBAAsB,CAAC,EAAE,OAAO,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,mCAAmC,CAAC,CAAC;IAClD,YAAY,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;CACnC;AAmND;;GAEG;AACH,eAAO,MAAM,kBAAkB,GApNO,CAAC,0HAoN+C,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2024-2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState, } from "react";
|
|
4
|
-
import { useVirtualizer } from "@tanstack/react-virtual";
|
|
4
|
+
import { defaultRangeExtractor, useVirtualizer } from "@tanstack/react-virtual";
|
|
5
5
|
import { forwardRefWithGenerics } from "@gooddata/sdk-ui";
|
|
6
6
|
import { bem } from "../@utils/bem.js";
|
|
7
7
|
import { makeLinearKeyboardNavigationWithConfirm } from "../@utils/keyboardNavigation.js";
|
|
@@ -73,7 +73,7 @@ function UiPagedVirtualListNotWrapped(props, ref) {
|
|
|
73
73
|
]);
|
|
74
74
|
return (_jsx("div", { className: b({
|
|
75
75
|
hasScroll,
|
|
76
|
-
}), children: _jsx("div", { ref: scrollContainerRef, className: e("scroll-container", { hover: scrollbarHoverEffect ?? false }), style: { height, paddingTop: itemsGap + containerPadding }, onScroll: onScroll, children: _jsx(ListElement, { className: e("list"), style: {
|
|
76
|
+
}), children: _jsx("div", { ref: scrollContainerRef, className: e("scroll-container", { hover: scrollbarHoverEffect ?? false }), style: { height, paddingTop: itemsGap + containerPadding }, onScroll: onScroll, tabIndex: representAs === "grid" && tabIndex < 0 ? -1 : undefined, children: _jsx(ListElement, { className: e("list"), style: {
|
|
77
77
|
height: `${rowVirtualizer.getTotalSize()}px`,
|
|
78
78
|
width: "100%",
|
|
79
79
|
position: "relative",
|
|
@@ -124,7 +124,7 @@ function UiPagedVirtualListNotWrapped(props, ref) {
|
|
|
124
124
|
* @internal
|
|
125
125
|
*/
|
|
126
126
|
export const UiPagedVirtualList = forwardRefWithGenerics(UiPagedVirtualListNotWrapped);
|
|
127
|
-
function useVirtualList({ items, itemHeight, itemHeightGetter, itemsGap, containerPadding = 0, skeletonItemsCount, hasNextPage, loadNextPage, isLoading, maxHeight, scrollToItem, scrollToItemKeyExtractor, scrollToIndex, shouldLoadNextPage: shouldLoadNextPageProps, }) {
|
|
127
|
+
function useVirtualList({ items, itemHeight, itemHeightGetter, itemsGap, containerPadding = 0, skeletonItemsCount, hasNextPage, loadNextPage, isLoading, maxHeight, focusedItem, scrollToItem, scrollToItemKeyExtractor, scrollToIndex, shouldLoadNextPage: shouldLoadNextPageProps, }) {
|
|
128
128
|
const defaultShouldLoadNextPage = useCallback((lastItemIndex, itemsCount, skeletonItemsCount) => lastItemIndex >= itemsCount - 1 - skeletonItemsCount, []);
|
|
129
129
|
const shouldLoadNextPage = useMemo(() => {
|
|
130
130
|
return shouldLoadNextPageProps ?? defaultShouldLoadNextPage;
|
|
@@ -164,20 +164,34 @@ function useVirtualList({ items, itemHeight, itemHeightGetter, itemsGap, contain
|
|
|
164
164
|
scrollContainerRef.current?.getBoundingClientRect().height
|
|
165
165
|
: false;
|
|
166
166
|
const observeElementRect = useVirtualizerRectObserver(scrollContainerRef, height);
|
|
167
|
+
const pinnedIndex = focusedItem === undefined ? -1 : (items?.indexOf(focusedItem) ?? -1);
|
|
168
|
+
const rangeExtractor = useCallback((range) => {
|
|
169
|
+
const indexes = defaultRangeExtractor(range);
|
|
170
|
+
return pinnedIndex < 0 || indexes.includes(pinnedIndex)
|
|
171
|
+
? indexes
|
|
172
|
+
: [...indexes, pinnedIndex].sort((a, b) => a - b);
|
|
173
|
+
}, [pinnedIndex]);
|
|
167
174
|
const rowVirtualizer = useVirtualizer({
|
|
168
175
|
count: renderItemsCount,
|
|
169
176
|
getScrollElement: () => scrollContainerRef.current,
|
|
170
177
|
estimateSize: (index) => getItemSizeWithGap(index),
|
|
171
178
|
observeElementRect,
|
|
172
179
|
overscan: 5,
|
|
180
|
+
rangeExtractor,
|
|
173
181
|
});
|
|
174
182
|
const virtualItems = rowVirtualizer.getVirtualItems();
|
|
183
|
+
// A pinned active row may be far outside the viewport. Only the visible range and its
|
|
184
|
+
// overscan drive scroll pagination; parent-managed keyboard navigation loads its own pages.
|
|
185
|
+
const lastVisibleIndex = rowVirtualizer.range
|
|
186
|
+
? Math.min(rowVirtualizer.range.endIndex + rowVirtualizer.options.overscan, renderItemsCount - 1)
|
|
187
|
+
: -1;
|
|
175
188
|
useEffect(() => {
|
|
176
|
-
|
|
177
|
-
if (!lastItem) {
|
|
189
|
+
if (lastVisibleIndex < 0) {
|
|
178
190
|
return;
|
|
179
191
|
}
|
|
180
|
-
if (shouldLoadNextPage(
|
|
192
|
+
if (shouldLoadNextPage(lastVisibleIndex, itemsCount, skeletonItemsCount) &&
|
|
193
|
+
hasNextPage &&
|
|
194
|
+
!isLoading) {
|
|
181
195
|
loadNextPage?.();
|
|
182
196
|
}
|
|
183
197
|
}, [
|
|
@@ -185,7 +199,7 @@ function useVirtualList({ items, itemHeight, itemHeightGetter, itemsGap, contain
|
|
|
185
199
|
loadNextPage,
|
|
186
200
|
itemsCount,
|
|
187
201
|
isLoading,
|
|
188
|
-
|
|
202
|
+
lastVisibleIndex,
|
|
189
203
|
skeletonItemsCount,
|
|
190
204
|
shouldLoadNextPage,
|
|
191
205
|
]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiSearchableSelect.d.ts","sourceRoot":"","sources":["../../../src/@ui/UiSearchableSelect/UiSearchableSelect.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAsB,KAAK,SAAS,EAAmC,MAAM,OAAO,CAAC;AAE5F,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"UiSearchableSelect.d.ts","sourceRoot":"","sources":["../../../src/@ui/UiSearchableSelect/UiSearchableSelect.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAsB,KAAK,SAAS,EAAmC,MAAM,OAAO,CAAC;AAE5F,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAc/E;;GAEG;AACH,MAAM,WAAW,wBAAwB,CAAC,CAAC;IACvC,mBAAmB,EAAE,wBAAwB,CAAC;IAC9C,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IAC7C,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,EAClC,mBAAmB,EACnB,QAAQ,EACR,KAAK,EACL,MAAM,EACN,WAAW,EACX,WAAmB,EACnB,KAAK,EACL,QAAQ,GACX,EAAE,wBAAwB,CAAC,CAAC,CAAC,2CA0H7B"}
|
|
@@ -11,7 +11,6 @@ import { UiSearchableSelectContext } from "./UiSearchableSelectContext.js";
|
|
|
11
11
|
import { UiSearchableSelectDivider } from "./UiSearchableSelectDivider.js";
|
|
12
12
|
import { getUiSearchableSelectItemDescriptor } from "./UiSearchableSelectItem.js";
|
|
13
13
|
import { findUiSearchableSelectListRenderItem } from "./UiSearchableSelectList.js";
|
|
14
|
-
const BODY_WIDTH = 300;
|
|
15
14
|
/**
|
|
16
15
|
* @internal
|
|
17
16
|
*/
|
|
@@ -54,10 +53,10 @@ export function UiSearchableSelect({ accessibilityConfig, children, items, filte
|
|
|
54
53
|
})
|
|
55
54
|
: value);
|
|
56
55
|
};
|
|
57
|
-
return (_jsx(UiDropdown, { width:
|
|
56
|
+
return (_jsx(UiDropdown, { width: "same-as-anchor", fullWidthButton: true, autofocusOnOpen: true,
|
|
58
57
|
// like a native <select>, tab closes the popup and moves on from the button: the tab out focuses
|
|
59
58
|
// the button (returnFocusTo) before the browser moves the focus
|
|
60
|
-
enableFocusTrap: false, returnFocusTo: buttonId,
|
|
59
|
+
enableFocusTrap: false, returnFocusTo: buttonId, openOnInit: defaultOpen, accessibilityConfig: { popupRole: "listbox" },
|
|
61
60
|
// a new opening starts with all items, like TimezoneSelect
|
|
62
61
|
onOpen: () => {
|
|
63
62
|
setFocusedItemId(value);
|
|
@@ -9,6 +9,11 @@ interface IUiToastContextValue {
|
|
|
9
9
|
* runs `resolveText` against the consumer's `useIntl()`.
|
|
10
10
|
*/
|
|
11
11
|
push: (kind: UiToastKind, text: string, options?: IUiToastOptions) => string;
|
|
12
|
+
/**
|
|
13
|
+
* Replace the text of a showing toast, keeping its dismiss timer. Returns
|
|
14
|
+
* whether the toast is still showing.
|
|
15
|
+
*/
|
|
16
|
+
update: (id: string, text: string) => boolean;
|
|
12
17
|
/** Dismiss one toast by id. */
|
|
13
18
|
remove: (id: string) => void;
|
|
14
19
|
/** Dismiss all toasts. */
|
|
@@ -39,7 +44,9 @@ export declare function UiToastProvider({ children }: {
|
|
|
39
44
|
* Consumer hook. Resolves the toast message via the **caller's**
|
|
40
45
|
* `useIntl()` so a consumer rendered under a nested `IntlProvider` formats
|
|
41
46
|
* `MessageDescriptor` content with that subtree's locale, not the
|
|
42
|
-
* provider's.
|
|
47
|
+
* provider's. `MessageDescriptor` toasts follow the caller's messages, e.g.
|
|
48
|
+
* once its locale's messages have loaded after the toast was added. Throws
|
|
49
|
+
* when called outside a `UiToastProvider`.
|
|
43
50
|
*
|
|
44
51
|
* @internal
|
|
45
52
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiToastProvider.d.ts","sourceRoot":"","sources":["../../../src/@ui/UiToast/UiToastProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,SAAS,EASjB,MAAM,OAAO,CAAC;AAIf,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAEnB,MAAM,YAAY,CAAC;AAuBpB,UAAU,oBAAoB;IAC1B,4CAA4C;IAC5C,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB;;;;OAIG;IACH,IAAI,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe,KAAK,MAAM,CAAC;IAC7E,+BAA+B;IAC/B,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,0BAA0B;IAC1B,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAC;CACrB;AAID;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"UiToastProvider.d.ts","sourceRoot":"","sources":["../../../src/@ui/UiToast/UiToastProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,SAAS,EASjB,MAAM,OAAO,CAAC;AAIf,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAEnB,MAAM,YAAY,CAAC;AAuBpB,UAAU,oBAAoB;IAC1B,4CAA4C;IAC5C,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB;;;;OAIG;IACH,IAAI,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe,KAAK,MAAM,CAAC;IAC7E;;;OAGG;IACH,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;IAC9C,+BAA+B;IAC/B,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,0BAA0B;IAC1B,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAC;CACrB;AAID;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAsJpE;AAED;;;;;;;;;GASG;AACH,wBAAgB,UAAU,IAAI,iBAAiB,CAsC9C;AAED;;GAEG;AACH,eAAO,MAAM,sBAAsB,sDAAiB,CAAC"}
|
|
@@ -124,6 +124,16 @@ export function UiToastProvider({ children }) {
|
|
|
124
124
|
}
|
|
125
125
|
return id;
|
|
126
126
|
}, [idPrefix, remove, clearTimer, commit]);
|
|
127
|
+
const update = useCallback((id, text) => {
|
|
128
|
+
const current = toastsRef.current;
|
|
129
|
+
const toast = current.find((t) => t.id === id);
|
|
130
|
+
if (!toast)
|
|
131
|
+
return false;
|
|
132
|
+
if (toast.text !== text) {
|
|
133
|
+
commit(current.map((t) => (t === toast ? { ...t, text } : t)));
|
|
134
|
+
}
|
|
135
|
+
return true;
|
|
136
|
+
}, [commit]);
|
|
127
137
|
// Cancel pending dismiss timers on unmount.
|
|
128
138
|
useEffect(() => {
|
|
129
139
|
const timers = timersRef.current;
|
|
@@ -155,15 +165,17 @@ export function UiToastProvider({ children }) {
|
|
|
155
165
|
// `UiToastsContainer` knows to render nothing.
|
|
156
166
|
return { ...parent, isNested: true };
|
|
157
167
|
}
|
|
158
|
-
return { toasts, push, remove, removeAll, isNested: false };
|
|
159
|
-
}, [parent, toasts, push, remove, removeAll]);
|
|
168
|
+
return { toasts, push, update, remove, removeAll, isNested: false };
|
|
169
|
+
}, [parent, toasts, push, update, remove, removeAll]);
|
|
160
170
|
return _jsx(UiToastContext.Provider, { value: value, children: children });
|
|
161
171
|
}
|
|
162
172
|
/**
|
|
163
173
|
* Consumer hook. Resolves the toast message via the **caller's**
|
|
164
174
|
* `useIntl()` so a consumer rendered under a nested `IntlProvider` formats
|
|
165
175
|
* `MessageDescriptor` content with that subtree's locale, not the
|
|
166
|
-
* provider's.
|
|
176
|
+
* provider's. `MessageDescriptor` toasts follow the caller's messages, e.g.
|
|
177
|
+
* once its locale's messages have loaded after the toast was added. Throws
|
|
178
|
+
* when called outside a `UiToastProvider`.
|
|
167
179
|
*
|
|
168
180
|
* @internal
|
|
169
181
|
*/
|
|
@@ -173,9 +185,27 @@ export function useUiToast() {
|
|
|
173
185
|
throw new Error("useUiToast must be used inside <UiToastProvider>");
|
|
174
186
|
}
|
|
175
187
|
const intl = useIntl();
|
|
176
|
-
const { push, remove, removeAll } = ctx;
|
|
188
|
+
const { push, update, remove, removeAll } = ctx;
|
|
189
|
+
const descriptorToastsRef = useRef(new Map());
|
|
190
|
+
useEffect(() => {
|
|
191
|
+
for (const [id, message] of descriptorToastsRef.current) {
|
|
192
|
+
if (!update(id, resolveText(intl, message))) {
|
|
193
|
+
descriptorToastsRef.current.delete(id);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}, [intl, update]);
|
|
177
197
|
return useMemo(() => {
|
|
178
|
-
const add = (kind, message, options) =>
|
|
198
|
+
const add = (kind, message, options) => {
|
|
199
|
+
const id = push(kind, resolveText(intl, message, options), options);
|
|
200
|
+
if (typeof message === "string") {
|
|
201
|
+
// A plain text may replace a descriptor toast with the same id
|
|
202
|
+
descriptorToastsRef.current.delete(id);
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
descriptorToastsRef.current.set(id, message);
|
|
206
|
+
}
|
|
207
|
+
return id;
|
|
208
|
+
};
|
|
179
209
|
return {
|
|
180
210
|
addSuccess: (message, options) => add("success", message, options),
|
|
181
211
|
addInfo: (message, options) => add("info", message, options),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiToastsContainer.d.ts","sourceRoot":"","sources":["../../../src/@ui/UiToast/UiToastsContainer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAC;AAQ5D,OAAO,EAAE,KAAK,QAAQ,EAAoB,MAAM,YAAY,CAAC;AAc7D;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B,KAAK,EAAE,QAAQ,CAAC;IAChB,+DAA+D;IAC/D,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,iBAAiB,GAAG,SAAS,CA0C5E;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,6CAA6C;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,UAAU,EAAE,EAAE,uBAAuB,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"UiToastsContainer.d.ts","sourceRoot":"","sources":["../../../src/@ui/UiToast/UiToastsContainer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAC;AAQ5D,OAAO,EAAE,KAAK,QAAQ,EAAoB,MAAM,YAAY,CAAC;AAc7D;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B,KAAK,EAAE,QAAQ,CAAC;IAChB,+DAA+D;IAC/D,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,iBAAiB,GAAG,SAAS,CA0C5E;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,6CAA6C;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,UAAU,EAAE,EAAE,uBAAuB,GAAG,SAAS,CAsCpF"}
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
// (C) 2026 GoodData Corporation
|
|
3
3
|
import { useContext, useMemo } from "react";
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
|
-
import { commonDialogMessages } from "../../locales.js";
|
|
5
|
+
import { commonDialogMessages, uiToastMessages } from "../../locales.js";
|
|
6
6
|
import { bem } from "../@utils/bem.js";
|
|
7
7
|
import { UiIcon } from "../UiIcon/UiIcon.js";
|
|
8
8
|
import { UiToastContextInternal } from "./UiToastProvider.js";
|
|
@@ -40,6 +40,7 @@ export function UiToastItem({ toast, onClose }) {
|
|
|
40
40
|
* @internal
|
|
41
41
|
*/
|
|
42
42
|
export function UiToastsContainer({ dataTestId }) {
|
|
43
|
+
const intl = useIntl();
|
|
43
44
|
const ctx = useContext(UiToastContextInternal);
|
|
44
45
|
// Render newest-first so the most recent notification sits at the top
|
|
45
46
|
// of the stack — matches the legacy `ToastsCenter` overlay
|
|
@@ -50,5 +51,8 @@ export function UiToastsContainer({ dataTestId }) {
|
|
|
50
51
|
if (!ctx || ctx.isNested) {
|
|
51
52
|
return null;
|
|
52
53
|
}
|
|
53
|
-
|
|
54
|
+
const hasToasts = items.length > 0;
|
|
55
|
+
return (_jsx("div", { className: b(), role: hasToasts ? "region" : undefined, "aria-label": hasToasts
|
|
56
|
+
? intl.formatMessage(uiToastMessages.regionLabel, { count: items.length })
|
|
57
|
+
: undefined, "aria-live": "off", "data-testid": dataTestId, children: items.map((toast) => (_jsx(UiToastItem, { toast: toast, onClose: ctx.remove }, toast.id))) }));
|
|
54
58
|
}
|
package/esm/Bubble/Bubble.d.ts
CHANGED
|
@@ -39,6 +39,8 @@ export interface IBubbleProps {
|
|
|
39
39
|
children?: ReactNode;
|
|
40
40
|
overlayPositionType?: OverlayPositionType;
|
|
41
41
|
ensureVisibility?: boolean;
|
|
42
|
+
resizeObserverThreshold?: number;
|
|
43
|
+
keepBottomOnResize?: boolean;
|
|
42
44
|
accessibilityConfig?: IBubbleAccessibilityConfig;
|
|
43
45
|
}
|
|
44
46
|
/**
|