@gooddata/sdk-ui-metric-component 11.68.0-alpha.9 → 11.69.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/NOTICE +55 -386
  2. package/esm/MaqlEditor/codemirror/baseExtensions.d.ts +0 -8
  3. package/esm/MaqlEditor/codemirror/baseExtensions.d.ts.map +1 -1
  4. package/esm/MaqlEditor/codemirror/baseExtensions.js +13 -25
  5. package/esm/MaqlEditor/maql/extensions/completion.d.ts +13 -3
  6. package/esm/MaqlEditor/maql/extensions/completion.d.ts.map +1 -1
  7. package/esm/MaqlEditor/maql/extensions/completion.js +69 -36
  8. package/esm/MetricComponent/Form/MaqlEditorField/MaqlEditorHeader.d.ts.map +1 -1
  9. package/esm/MetricComponent/Form/MaqlEditorField/MaqlEditorHeader.js +8 -6
  10. package/esm/MetricComponent/Form/PartHeader/PartHeader.d.ts +16 -1
  11. package/esm/MetricComponent/Form/PartHeader/PartHeader.d.ts.map +1 -1
  12. package/esm/MetricComponent/Form/PartHeader/PartHeader.js +97 -21
  13. package/esm/MetricComponent/MetricsState.d.ts.map +1 -1
  14. package/esm/MetricComponent/MetricsState.js +1 -0
  15. package/esm/MetricComponent/MinimizedMetricComponent/MinimizedMetricComponent.d.ts.map +1 -1
  16. package/esm/MetricComponent/MinimizedMetricComponent/MinimizedMetricComponent.js +25 -4
  17. package/esm/MetricComponent/MultipleMetricsState.d.ts.map +1 -1
  18. package/esm/MetricComponent/MultipleMetricsState.js +5 -2
  19. package/esm/shared/Tabs/Tab.d.ts +5 -1
  20. package/esm/shared/Tabs/Tab.d.ts.map +1 -1
  21. package/esm/shared/Tabs/Tab.js +3 -3
  22. package/esm/shared/Tabs/Tabs.d.ts.map +1 -1
  23. package/esm/shared/Tabs/Tabs.data.d.ts +8 -0
  24. package/esm/shared/Tabs/Tabs.data.d.ts.map +1 -1
  25. package/esm/shared/Tabs/Tabs.js +88 -9
  26. package/esm/shared/Tabs/hooks/useScrollByButtons.d.ts +2 -0
  27. package/esm/shared/Tabs/hooks/useScrollByButtons.d.ts.map +1 -1
  28. package/esm/shared/Tabs/hooks/useScrollByButtons.js +3 -1
  29. package/esm/shared/Tabs/hooks/useTabsLabels.d.ts +21 -0
  30. package/esm/shared/Tabs/hooks/useTabsLabels.d.ts.map +1 -0
  31. package/esm/shared/Tabs/hooks/useTabsLabels.js +29 -0
  32. package/esm/shared/focusHandoff.d.ts +33 -0
  33. package/esm/shared/focusHandoff.d.ts.map +1 -0
  34. package/esm/shared/focusHandoff.js +44 -0
  35. package/esm/translations/de-DE.json +10 -1
  36. package/esm/translations/en-AU.json +9 -0
  37. package/esm/translations/en-GB.json +9 -0
  38. package/esm/translations/en-US.json +46 -6
  39. package/esm/translations/es-419.json +9 -0
  40. package/esm/translations/es-ES.json +9 -0
  41. package/esm/translations/fi-FI.json +9 -0
  42. package/esm/translations/fr-CA.json +9 -0
  43. package/esm/translations/fr-FR.json +9 -0
  44. package/esm/translations/id-ID.json +9 -0
  45. package/esm/translations/it-IT.json +9 -0
  46. package/esm/translations/ja-JP.json +9 -0
  47. package/esm/translations/ko-KR.json +9 -0
  48. package/esm/translations/nl-NL.json +9 -0
  49. package/esm/translations/pl-PL.json +9 -0
  50. package/esm/translations/pt-BR.json +9 -0
  51. package/esm/translations/pt-PT.json +9 -0
  52. package/esm/translations/ru-RU.json +9 -0
  53. package/esm/translations/sl-SI.json +9 -0
  54. package/esm/translations/th-TH.json +9 -0
  55. package/esm/translations/tr-TR.json +9 -0
  56. package/esm/translations/uk-UA.json +9 -0
  57. package/esm/translations/vi-VN.json +9 -0
  58. package/esm/translations/zh-HK.json +9 -0
  59. package/esm/translations/zh-Hans.json +9 -0
  60. package/esm/translations/zh-Hant.json +9 -0
  61. package/package.json +17 -17
@@ -1 +1 @@
1
- {"version":3,"file":"Tab.d.ts","sourceRoot":"","sources":["../../../src/shared/Tabs/Tab.tsx"],"names":[],"mappings":"AASA,eAAO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@ export var TabState;
151
151
  TabState["Invalid"] = "invalid";
152
152
  TabState["Dirty"] = "dirty";
153
153
  })(TabState || (TabState = {}));
154
- export function Tab({ tab, placeholder, last, active, afterActive, onActive, onClose }) {
154
+ export function Tab({ tab, placeholder, last, active, afterActive, closeLabel, onActive, onClose, }) {
155
155
  const { states, options, title } = tab;
156
156
  const { classes, cx } = useStyles();
157
- return (_jsxs(_Fragment, { children: [_jsx("div", { className: cx(classes.space, active && classes.spaceActive, afterActive && classes.spaceAfterActive, TabSpace) }), _jsxs("div", { role: "tab", className: cx(classes.root, TabRoot, active && classes.active, active && TabActive, TabsClasses.Tab), onClick: () => onActive(tab), children: [_jsx("div", { className: cx(classes.dirty, states?.dirty && classes.dirtyActive, states?.dirty && TabsClasses.TabDirty, states?.invalid && classes.dirtyInvalid, states?.invalid && TabsClasses.TabInvalid) }), _jsx("div", { className: cx(classes.title), children: _jsx("div", { className: cx(classes.inner, TitleText), children: _jsx(Title, { title: title, placeholder: placeholder }) }) }), options && options.closeable && (_jsx("button", { className: cx(classes.close, NameButton, TabsClasses.ButtonCloseTab), onClick: (e) => {
157
+ return (_jsxs(_Fragment, { children: [_jsx("div", { className: cx(classes.space, active && classes.spaceActive, afterActive && classes.spaceAfterActive, TabSpace) }), _jsxs("div", { role: "tab", tabIndex: active ? 0 : -1, "aria-selected": active, className: cx(classes.root, TabRoot, active && classes.active, active && TabActive, TabsClasses.Tab), onClick: () => onActive(tab), children: [_jsx("div", { className: cx(classes.dirty, states?.dirty && classes.dirtyActive, states?.dirty && TabsClasses.TabDirty, states?.invalid && classes.dirtyInvalid, states?.invalid && TabsClasses.TabInvalid) }), _jsx("div", { className: cx(classes.title), children: _jsx("div", { className: cx(classes.inner, TitleText), children: _jsx(Title, { title: title, placeholder: placeholder }) }) }), options && options.closeable && (_jsx("button", { type: "button", className: cx(classes.close, NameButton, TabsClasses.ButtonCloseTab), "aria-label": closeLabel?.(title || placeholder || ""), onClick: (e) => {
158
158
  e.stopPropagation();
159
159
  onClose(tab);
160
- }, children: _jsx(IconClose, { width: 9, height: 9 }) }))] }), last && _jsx("div", { className: cx(classes.space, active && classes.spaceActive, TabSpace) })] }));
160
+ }, children: _jsx(IconClose, { width: 9, height: 9, ariaHidden: true }) }))] }), last && _jsx("div", { className: cx(classes.space, active && classes.spaceActive, TabSpace) })] }));
161
161
  }
162
162
  function Title({ title, placeholder }) {
163
163
  const { classes, cx } = useStyles();
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/shared/Tabs/Tabs.tsx"],"names":[],"mappings":"AAuBA,OAAO,EAAyB,KAAK,UAAU,EAA6B,MAAM,gBAAgB,CAAC;AAEnG,eAAO,MAAM,aAAa,YAAY,CAAC;AAuKvC,wBAAgB,IAAI,CAAC,EACjB,IAAI,EACJ,MAAM,EACN,MAAM,EACN,OAAO,EACP,SAAS,EACT,SAAiB,EACjB,WAAmB,EACnB,WAAmB,EACnB,SAAiB,EACjB,SAAiB,EACjB,WAAsB,EACtB,aAAwB,EACxB,UAAqB,EACrB,cAAyB,EACzB,iBAA4B,EAC5B,WAAsB,EACtB,OAAY,EACZ,OAAY,GACf,EAAE,UAAU,2CAwHZ"}
1
+ {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/shared/Tabs/Tabs.tsx"],"names":[],"mappings":"AAmCA,OAAO,EAAyB,KAAK,UAAU,EAA6B,MAAM,gBAAgB,CAAC;AAEnG,eAAO,MAAM,aAAa,YAAY,CAAC;AAuKvC,wBAAgB,IAAI,CAAC,EACjB,IAAI,EACJ,MAAM,EACN,MAAM,EACN,OAAO,EACP,SAAS,EACT,SAAiB,EACjB,WAAmB,EACnB,WAAmB,EACnB,SAAiB,EACjB,SAAiB,EACjB,WAAsB,EACtB,aAAwB,EACxB,UAAqB,EACrB,cAAyB,EACzB,iBAA4B,EAC5B,WAAsB,EACtB,OAAY,EACZ,OAAY,GACf,EAAE,UAAU,2CA+IZ"}
@@ -32,6 +32,14 @@ export interface ITabsProps<T = undefined> {
32
32
  locales?: {
33
33
  createTooltip?: string;
34
34
  titlePlaceholder?: string;
35
+ minimize?: string;
36
+ maximize?: string;
37
+ exitMaximize?: string;
38
+ close?: string;
39
+ closeTab?: (title: string) => string;
40
+ tabList?: string;
41
+ scrollLeft?: string;
42
+ scrollRight?: string;
35
43
  };
36
44
  }
37
45
  //# sourceMappingURL=Tabs.data.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.data.d.ts","sourceRoot":"","sources":["../../../src/shared/Tabs/Tabs.data.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,UAAU,CAAC;AAErC,eAAO,MAAM,YAAY,KAAK,CAAC;AAC/B,eAAO,MAAM,WAAW,KAAK,CAAC;AAC9B,eAAO,MAAM,WAAW,MAAM,CAAC;AAE/B,MAAM,WAAW,gBAAgB,CAAC,CAAC,GAAG,SAAS;IAC3C,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;CAChB;AAED,MAAM,WAAW,WAAW;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,WAAW,UAAU,CAAC,CAAC,GAAG,SAAS;IACrC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7C,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC;IACnD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS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,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,WAAW,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;CACL"}
@@ -1,14 +1,16 @@
1
1
  import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  // (C) 2022-2026 GoodData Corporation
3
- import { useState } from "react";
3
+ import { useEffect, useRef, useState, } from "react";
4
4
  import { Bubble, BubbleHoverTrigger, Button, IconClose, IconContract, IconExpand, IconMinimize, } from "@gooddata/sdk-ui-kit";
5
+ import { handOffFocusDuring, useFocusHandoff } from "../focusHandoff.js";
5
6
  import { makeStyles } from "../theme/index.js";
6
7
  import { useChangeScroll } from "./hooks/useChangeScroll.js";
7
8
  import { useScrollByButtons } from "./hooks/useScrollByButtons.js";
8
9
  import { useScrollToActive } from "./hooks/useScrollToActive.js";
9
10
  import { useTabCallbacks } from "./hooks/useTabCallbacks.js";
10
11
  import { useTabsCallbacks } from "./hooks/useTabsCallbacks.js";
11
- import { NameButton, Tab, TabActive, TitleText } from "./Tab.js";
12
+ import { useTabsLabels } from "./hooks/useTabsLabels.js";
13
+ import { NameButton, Tab, TabActive, TabRoot, TitleText } from "./Tab.js";
12
14
  import { TabsClasses } from "./Tabs.classes.js";
13
15
  import { TabMaxWidth, TabsIconSize } from "./Tabs.data.js";
14
16
  export const ButtonDivider = "divider";
@@ -166,25 +168,102 @@ export function Tabs({ tabs, active, render, content, className, closeable = fal
166
168
  }
167
169
  const { classes, cx } = useStyles();
168
170
  const { scrollToTabSpace = 3, scrollByArrowsRepeat = 150, scrollByArrowsStep = 100 } = options;
171
+ const labels = useTabsLabels(locales);
169
172
  const [tabsElement, setTabsElement] = useState(null);
170
- const { enabled, canLeft, canRight, onLeft, onRight } = useScrollByButtons(tabsElement, scrollByArrowsRepeat, scrollByArrowsStep);
173
+ const editorRoot = useRef(null);
174
+ const { enabled, canLeft, canRight, onLeft, onRight, stepLeft, stepRight } = useScrollByButtons(tabsElement, scrollByArrowsRepeat, scrollByArrowsStep);
171
175
  useChangeScroll(tabsElement);
172
176
  useScrollToActive(tabsElement, active, enabled, scrollToTabSpace);
173
177
  const { onTabsMinimizeHandler, onTabsCloseHandler, onTabCreateHandler, onTabsMaximizeHandler } = useTabsCallbacks(onTabCreate, onTabsMinimize, onTabsMaximizable, onTabsClose);
174
178
  const { onTabActiveHandler, onTabCloseHandler } = useTabCallbacks(tabs, onTabActivate, onTabClose, onTabsClose);
179
+ const onTabListKeyDown = useTabListKeyboard(tabsElement, tabs, active, onTabActiveHandler);
175
180
  const Content = content;
176
- return (_jsxs("div", { className: cx(classes.root, className), children: [_jsxs("div", { className: cx(classes.tabs), children: [enabled && (_jsx("button", { className: cx(classes.leftButton, !canLeft && classes.disabled, TabsClasses.ButtonLeft), onMouseDown: onLeft, children: _jsx("span", { className: "gd-icon-navigateleft" }) })), _jsx("div", { className: cx(classes.tabsList, {
181
+ return (_jsxs("div", { ref: editorRoot, className: cx(classes.root, className), children: [_jsxs("div", { className: cx(classes.tabs), children: [enabled && (_jsx("button", { type: "button", "aria-label": labels.scrollLeft, "aria-disabled": !canLeft, className: cx(classes.leftButton, !canLeft && classes.disabled, TabsClasses.ButtonLeft), onMouseDown: onLeft, onClick: (event) => onScrollButtonClick(event, stepLeft), children: _jsx("span", { className: "gd-icon-navigateleft", "aria-hidden": "true" }) })), _jsx("div", { role: "tablist", "aria-label": labels.tabList, onKeyDown: onTabListKeyDown, className: cx(classes.tabsList, {
177
182
  minimizable: minimizable,
178
183
  closeable: closeable,
179
184
  scrollable: enabled,
180
- }), style: { width: TabMaxWidth * tabs.length }, ref: setTabsElement, children: tabs.map((tab, i) => (_jsx(Tab, { tab: tab, placeholder: locales.titlePlaceholder, active: active === i, last: i === tabs.length - 1, beforeActive: active - 1 === i, afterActive: active + 1 === i, onActive: onTabActiveHandler, onClose: onTabCloseHandler }, tab.id))) }), enabled && (_jsx("button", { className: cx(classes.rightButton, !canRight && classes.disabled, TabsClasses.ButtonRight), onMouseDown: onRight, children: _jsx("span", { className: "gd-icon-navigateright" }) })), creatable && (_jsxs(BubbleHoverTrigger, { showDelay: 0, hideDelay: 100, eventsOnBubble: true, className: classes.trigger, children: [_jsx("div", { className: cx(classes.controls), children: _jsx(Button, { iconLeft: "gd-icon-add", onClick: onTabCreateHandler, className: cx(classes.create, "gd-button-action", TabsClasses.ButtonNewTab) }) }), locales.createTooltip && (_jsx(Bubble, { className: cx("bubble-dark", "s-tabs-create-tooltip"), alignPoints: [{ align: "bc tr", offset: { x: 0, y: -5 } }], children: locales.createTooltip }))] })), _jsx("div", { className: cx(classes.filler) }), _jsx("div", { className: cx(classes.controls), children: _jsx(TabsControls, { maximized: maximized, minimizable: minimizable, maximizable: maximizable, closeable: closeable, onTabsClose: onTabsCloseHandler, onTabsMinimize: onTabsMinimizeHandler, onTabsMaximize: onTabsMaximizeHandler }) })] }), Content && tabs[active] && _jsx(Content, { tab: tabs[active] }), render && tabs[active] && render({ tab: tabs[active] })] }));
185
+ }), style: { width: TabMaxWidth * tabs.length }, ref: setTabsElement, children: tabs.map((tab, i) => (_jsx(Tab, { tab: tab, placeholder: locales.titlePlaceholder, active: active === i, last: i === tabs.length - 1, beforeActive: active - 1 === i, afterActive: active + 1 === i, closeLabel: labels.closeTab, onActive: onTabActiveHandler, onClose: onTabCloseHandler }, tab.id))) }), enabled && (_jsx("button", { type: "button", "aria-label": labels.scrollRight, "aria-disabled": !canRight, className: cx(classes.rightButton, !canRight && classes.disabled, TabsClasses.ButtonRight), onMouseDown: onRight, onClick: (event) => onScrollButtonClick(event, stepRight), children: _jsx("span", { className: "gd-icon-navigateright", "aria-hidden": "true" }) })), creatable && (_jsxs(BubbleHoverTrigger, { showDelay: 0, hideDelay: 100, eventsOnBubble: true, className: classes.trigger, children: [_jsx("div", { className: cx(classes.controls), children: _jsx(Button, { iconLeft: "gd-icon-add", onClick: onTabCreateHandler, className: cx(classes.create, "gd-button-action", TabsClasses.ButtonNewTab),
186
+ // the same text as the hover tooltip, so the name matches what is seen
187
+ accessibilityConfig: { ariaLabel: labels.create } }) }), locales.createTooltip && (_jsx(Bubble, { className: cx("bubble-dark", "s-tabs-create-tooltip"), alignPoints: [{ align: "bc tr", offset: { x: 0, y: -5 } }], children: locales.createTooltip }))] })), _jsx("div", { className: cx(classes.filler) }), _jsx("div", { className: cx(classes.controls), children: _jsx(TabsControls, { maximized: maximized, minimizable: minimizable, maximizable: maximizable, closeable: closeable,
188
+ // closing asks first only when a metric has unsaved changes
189
+ closeOpensDialog: tabs.some((tab) => tab.states?.dirty), labels: labels, onTabsClose: onTabsCloseHandler, onTabsMinimize: onTabsMinimizeHandler, editorRoot: editorRoot, onTabsMaximize: onTabsMaximizeHandler }) })] }), Content && tabs[active] && _jsx(Content, { tab: tabs[active] }), render && tabs[active] && render({ tab: tabs[active] })] }));
181
190
  }
182
- function TabsControls({ minimizable, maximizable, maximized, closeable, onTabsMinimize, onTabsMaximize, onTabsClose, }) {
191
+ /**
192
+ * A click with no pointer behind it (`detail` 0) comes from Enter, Space or assistive technology, and
193
+ * scrolls one step. A mouse click (`detail` 1 and up) was already handled by its mousedown, which
194
+ * keeps scrolling while the button is held, so it does not scroll a second time.
195
+ */
196
+ function onScrollButtonClick(event, step) {
197
+ if (event.detail === 0) {
198
+ step();
199
+ }
200
+ }
201
+ /**
202
+ * The arrow keys, Home and End of the tab list, the way the ARIA tabs pattern has them: they select
203
+ * the tab (selection follows the focus) and move the focus to it once it is active, and the active
204
+ * tab scrolls into view as it does for a mouse selection.
205
+ */
206
+ function useTabListKeyboard(tabsElement, tabs, active, onActivate) {
207
+ const isFocusPending = useRef(false);
208
+ useEffect(() => {
209
+ if (!isFocusPending.current) {
210
+ return;
211
+ }
212
+ isFocusPending.current = false;
213
+ // The key's activation may never have completed (a caller can hold it back), and the change
214
+ // of the active tab then comes from elsewhere; follow it only while the keyboard is still in
215
+ // the tab list, never pull the focus back from a field the user went to in the meantime.
216
+ if (!tabsElement?.contains(document.activeElement)) {
217
+ return;
218
+ }
219
+ // the scroll to the active tab is smooth, a focus scroll would jump ahead of it
220
+ tabsElement.querySelector(`.${TabRoot}.${TabActive}`)?.focus({ preventScroll: true });
221
+ }, [active, tabsElement]);
222
+ return (event) => {
223
+ // the keys of the close button inside a tab are its own
224
+ if (!(event.target instanceof HTMLElement) || event.target.getAttribute("role") !== "tab") {
225
+ return;
226
+ }
227
+ const last = tabs.length - 1;
228
+ const targets = {
229
+ ArrowLeft: active > 0 ? active - 1 : last,
230
+ ArrowRight: active < last ? active + 1 : 0,
231
+ Home: 0,
232
+ End: last,
233
+ };
234
+ const target = targets[event.key];
235
+ if (target === undefined) {
236
+ return;
237
+ }
238
+ event.preventDefault();
239
+ if (target !== active && tabs[target]) {
240
+ isFocusPending.current = true;
241
+ onActivate(tabs[target]);
242
+ }
243
+ };
244
+ }
245
+ function TabsControls({ minimizable, maximizable, maximized, closeable, closeOpensDialog, labels, onTabsMinimize, onTabsMaximize, onTabsClose, editorRoot, }) {
183
246
  const { classes, cx } = useStyles();
247
+ const minimizeButton = useRef(null);
248
+ const focusHandoff = useFocusHandoff();
249
+ // Restoring from the chip drops the focus to the page (see focusHandoff). Put it back on the
250
+ // minimize button, where it was before minimizing, only when this editor's chip handed it off,
251
+ // and only if nothing inside the editor has taken it in the meantime.
252
+ useEffect(() => {
253
+ const isHandedOff = focusHandoff?.take("editor") ?? false;
254
+ const isFocusDropped = !document.activeElement || document.activeElement === document.body;
255
+ if (isHandedOff && isFocusDropped) {
256
+ minimizeButton.current?.focus();
257
+ }
258
+ // only on mount, which is when the chip has just handed off
259
+ // oxlint-disable-next-line react-hooks/exhaustive-deps
260
+ }, []);
261
+ // minimizing unmounts the editor, so the chip catches the focus if the editor held it
262
+ const minimizeHandler = () => handOffFocusDuring(focusHandoff, "chip", !!editorRoot.current?.contains(document.activeElement), onTabsMinimize, () => editorRoot.current !== null);
184
263
  const controls = [
185
- minimizable && (_jsx("button", { className: cx(classes.button, TabsClasses.ButtonMinimize), onClick: onTabsMinimize, children: _jsx(IconMinimize, { width: TabsIconSize, height: TabsIconSize }) }, "minimize")),
186
- maximizable && (_jsx("button", { className: cx(classes.button, TabsClasses.ButtonMaximize), onClick: () => onTabsMaximize?.(!maximized), children: maximized ? (_jsx(IconContract, { width: TabsIconSize, height: TabsIconSize })) : (_jsx(IconExpand, { width: TabsIconSize, height: TabsIconSize })) }, "maximize")),
187
- closeable && (_jsx("button", { className: cx(classes.button, TabsClasses.ButtonCloseTabs), onClick: onTabsClose, children: _jsx(IconClose, { width: TabsIconSize, height: TabsIconSize }) }, "close")),
264
+ minimizable && (_jsx("button", { ref: minimizeButton, type: "button", className: cx(classes.button, TabsClasses.ButtonMinimize), "aria-label": labels.minimize, onClick: minimizeHandler, children: _jsx(IconMinimize, { width: TabsIconSize, height: TabsIconSize, ariaHidden: true }) }, "minimize")),
265
+ maximizable && (_jsx("button", { type: "button", className: cx(classes.button, TabsClasses.ButtonMaximize), "aria-label": maximized ? labels.exitMaximize : labels.maximize, onClick: () => onTabsMaximize?.(!maximized), children: maximized ? (_jsx(IconContract, { width: TabsIconSize, height: TabsIconSize, ariaHidden: true })) : (_jsx(IconExpand, { width: TabsIconSize, height: TabsIconSize, ariaHidden: true })) }, "maximize")),
266
+ closeable && (_jsx("button", { type: "button", className: cx(classes.button, TabsClasses.ButtonCloseTabs), "aria-label": labels.close, "aria-haspopup": closeOpensDialog ? "dialog" : undefined, onClick: onTabsClose, children: _jsx(IconClose, { width: TabsIconSize, height: TabsIconSize, ariaHidden: true }) }, "close")),
188
267
  ];
189
268
  return (_jsx(_Fragment, { children: controls.filter(Boolean).reduce((prev, current, i) => {
190
269
  if (i !== 0) {
@@ -5,5 +5,7 @@ export declare function useScrollByButtons(element: HTMLElement | null, timeout?
5
5
  canRight: boolean;
6
6
  onLeft: (e: MouseEvent) => void;
7
7
  onRight: (e: MouseEvent) => void;
8
+ stepLeft: () => void;
9
+ stepRight: () => void;
8
10
  };
9
11
  //# sourceMappingURL=useScrollByButtons.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useScrollByButtons.d.ts","sourceRoot":"","sources":["../../../../src/shared/Tabs/hooks/useScrollByButtons.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,UAAU,EAA6C,MAAM,OAAO,CAAC;AAInF,wBAAgB,kBAAkB,CAC9B,OAAO,EAAE,WAAW,GAAG,IAAI,EAC3B,OAAO,SAAM,EACb,IAAI,SAAM,GACX;IACC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IAChC,OAAO,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;CACpC,CAqBA"}
1
+ {"version":3,"file":"useScrollByButtons.d.ts","sourceRoot":"","sources":["../../../../src/shared/Tabs/hooks/useScrollByButtons.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,UAAU,EAA6C,MAAM,OAAO,CAAC;AAInF,wBAAgB,kBAAkB,CAC9B,OAAO,EAAE,WAAW,GAAG,IAAI,EAC3B,OAAO,SAAM,EACb,IAAI,SAAM,GACX;IACC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IAChC,OAAO,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IAEjC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;CACzB,CAuBA"}
@@ -14,9 +14,11 @@ export function useScrollByButtons(element, timeout = 150, step = 100) {
14
14
  canRight,
15
15
  onLeft,
16
16
  onRight,
17
+ stepLeft: onLeftHandler,
18
+ stepRight: onRightHandler,
17
19
  }),
18
20
  // oxlint-disable-next-line react-hooks/exhaustive-deps
19
- [enabled, canLeft, canRight, onLeft, onRight, changed]);
21
+ [enabled, canLeft, canRight, onLeft, onRight, onLeftHandler, onRightHandler, changed]);
20
22
  }
21
23
  function useScroll(element) {
22
24
  const [changed, setChanged] = useState("");
@@ -0,0 +1,21 @@
1
+ import { type ITabsProps } from "../Tabs.data.js";
2
+ /**
3
+ * The accessible names of the tab strip's controls.
4
+ */
5
+ export interface ITabsLabels {
6
+ tabList: string;
7
+ create: string;
8
+ minimize: string;
9
+ maximize: string;
10
+ exitMaximize: string;
11
+ close: string;
12
+ closeTab: (title: string) => string;
13
+ scrollLeft: string;
14
+ scrollRight: string;
15
+ }
16
+ /**
17
+ * Every icon-only control needs an accessible name, so each one has a localized default; a label in
18
+ * `locales` overrides it.
19
+ */
20
+ export declare function useTabsLabels(locales: NonNullable<ITabsProps["locales"]>): ITabsLabels;
21
+ //# sourceMappingURL=useTabsLabels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTabsLabels.d.ts","sourceRoot":"","sources":["../../../../src/shared/Tabs/hooks/useTabsLabels.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,WAAW;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACvB;AAUD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,WAAW,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,GAAG,WAAW,CAgBtF"}
@@ -0,0 +1,29 @@
1
+ // (C) 2026 GoodData Corporation
2
+ import { useContext } from "react";
3
+ import { IntlContext, createIntl } from "react-intl";
4
+ import { DEFAULT_LANGUAGE, DEFAULT_MESSAGES } from "../../../translations/translations.js";
5
+ let fallbackIntl;
6
+ // Outside an IntlProvider (a bare render) the names still come from the default messages.
7
+ function getFallbackIntl() {
8
+ fallbackIntl ??= createIntl({ locale: DEFAULT_LANGUAGE, messages: DEFAULT_MESSAGES[DEFAULT_LANGUAGE] });
9
+ return fallbackIntl;
10
+ }
11
+ /**
12
+ * Every icon-only control needs an accessible name, so each one has a localized default; a label in
13
+ * `locales` overrides it.
14
+ */
15
+ export function useTabsLabels(locales) {
16
+ const intl = useContext(IntlContext) ?? getFallbackIntl();
17
+ return {
18
+ tabList: locales.tabList ?? intl.formatMessage({ id: "metricComponent.tabs.tabList" }),
19
+ create: locales.createTooltip ?? intl.formatMessage({ id: "metricComponent.createMetric.title" }),
20
+ minimize: locales.minimize ?? intl.formatMessage({ id: "metricComponent.tabs.minimize" }),
21
+ maximize: locales.maximize ?? intl.formatMessage({ id: "metricComponent.tabs.maximize" }),
22
+ exitMaximize: locales.exitMaximize ?? intl.formatMessage({ id: "metricComponent.tabs.exitMaximize" }),
23
+ close: locales.close ?? intl.formatMessage({ id: "metricComponent.tabs.close" }),
24
+ closeTab: locales.closeTab ??
25
+ ((title) => intl.formatMessage({ id: "metricComponent.tabs.closeTab" }, { title })),
26
+ scrollLeft: locales.scrollLeft ?? intl.formatMessage({ id: "metricComponent.tabs.scrollLeft" }),
27
+ scrollRight: locales.scrollRight ?? intl.formatMessage({ id: "metricComponent.tabs.scrollRight" }),
28
+ };
29
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Where the focus goes when the metric editor is minimized into the chip, or restored from it.
3
+ *
4
+ * @remarks
5
+ * Minimizing unmounts the editor and mounts the chip, restoring the other way round; the focus is
6
+ * dropped to the page either way. The side that unmounts records that it held the focus, and the
7
+ * side that mounts takes the record and catches the focus. Without a record the mounting side leaves
8
+ * the focus alone, so a chip or an editor that appears for any other reason never takes it.
9
+ *
10
+ * The record belongs to one editor instance (one `MultipleMetricsState`), so the chip of another
11
+ * editor never takes it, and the side that made it cancels it when the transition did not happen.
12
+ */
13
+ export type FocusHandoffTarget = "chip" | "editor";
14
+ export interface IFocusHandoff {
15
+ handOff(target: FocusHandoffTarget): void;
16
+ /**
17
+ * True once after `handOff(target)`, false otherwise; the record is gone after it.
18
+ */
19
+ take(target: FocusHandoffTarget): boolean;
20
+ cancel(target: FocusHandoffTarget): void;
21
+ }
22
+ export declare function createFocusHandoff(): IFocusHandoff;
23
+ /**
24
+ * The handoff of the editor instance around; null outside one, where the focus is never moved.
25
+ */
26
+ export declare const FocusHandoffContext: import("react").Context<IFocusHandoff | null>;
27
+ export declare function useFocusHandoff(): IFocusHandoff | null;
28
+ /**
29
+ * Runs the transition and cancels the record if, a task later, the side that made it is still
30
+ * mounted: the transition did not happen, and nothing is coming to take the record.
31
+ */
32
+ export declare function handOffFocusDuring(handoff: IFocusHandoff | null, target: FocusHandoffTarget, isFocusHeld: boolean, transition: (() => void) | undefined, isStillMounted: () => boolean): void;
33
+ //# sourceMappingURL=focusHandoff.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focusHandoff.d.ts","sourceRoot":"","sources":["../../src/shared/focusHandoff.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEnD,MAAM,WAAW,aAAa;IAC1B,OAAO,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC1C;;OAEG;IACH,IAAI,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC;IAC1C,MAAM,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI,CAAC;CAC5C;AAED,wBAAgB,kBAAkB,IAAI,aAAa,CAoBlD;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,+CAA4C,CAAC;AAE7E,wBAAgB,eAAe,IAAI,aAAa,GAAG,IAAI,CAEtD;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAC9B,OAAO,EAAE,aAAa,GAAG,IAAI,EAC7B,MAAM,EAAE,kBAAkB,EAC1B,WAAW,EAAE,OAAO,EACpB,UAAU,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,EACpC,cAAc,EAAE,MAAM,OAAO,GAC9B,IAAI,CAUN"}
@@ -0,0 +1,44 @@
1
+ // (C) 2026 GoodData Corporation
2
+ import { createContext, useContext } from "react";
3
+ export function createFocusHandoff() {
4
+ let pending = null;
5
+ return {
6
+ handOff: (target) => {
7
+ pending = target;
8
+ },
9
+ take: (target) => {
10
+ if (pending !== target) {
11
+ return false;
12
+ }
13
+ pending = null;
14
+ return true;
15
+ },
16
+ cancel: (target) => {
17
+ if (pending === target) {
18
+ pending = null;
19
+ }
20
+ },
21
+ };
22
+ }
23
+ /**
24
+ * The handoff of the editor instance around; null outside one, where the focus is never moved.
25
+ */
26
+ export const FocusHandoffContext = createContext(null);
27
+ export function useFocusHandoff() {
28
+ return useContext(FocusHandoffContext);
29
+ }
30
+ /**
31
+ * Runs the transition and cancels the record if, a task later, the side that made it is still
32
+ * mounted: the transition did not happen, and nothing is coming to take the record.
33
+ */
34
+ export function handOffFocusDuring(handoff, target, isFocusHeld, transition, isStillMounted) {
35
+ if (handoff && isFocusHeld) {
36
+ handoff.handOff(target);
37
+ window.setTimeout(() => {
38
+ if (isStillMounted()) {
39
+ handoff.cancel(target);
40
+ }
41
+ }, 0);
42
+ }
43
+ transition?.();
44
+ }
@@ -64,7 +64,7 @@
64
64
  "metricComponent.editMetric.metric.result.context.displayTop": "Oben",
65
65
  "metricComponent.editMetric.metric.result.context.displayBottom": "Unten",
66
66
  "metricComponent.editMetric.metric.result": "Ergebnis",
67
- "metricComponent.editMetric.metric.result.tooltip": "Die Metrik gibt eine Zahl zurück und kann wiederverwendet werden, wenn sie mit Attributen und Filtern kombiniert wird, um einen Report zu erstellen. Fügen Sie „Anzeigen nach“ hinzu, um einen VorschauReport zu erstellen.",
67
+ "metricComponent.editMetric.metric.result.tooltip": "Die Metrik gibt eine Zahl zurück und kann wiederverwendet werden, wenn sie mit Attributen und Filtern kombiniert wird, um einen Report zu erstellen. Fügen Sie „Anzeigen nach“ hinzu, um einen Vorschaureport zu erstellen.",
68
68
  "metricComponent.editMetric.metric.result.computing": "Wird berechnet...",
69
69
  "metricComponent.editMetric.metric.result.error.title": "Fehler beim Berechnen des Ergebnisses",
70
70
  "metricComponent.editMetric.metric.result.error": "Das Ergebnis kann nicht berechnet werden, da die Metrikdefinition unvollständig oder ungültig ist.",
@@ -123,6 +123,15 @@
123
123
  "metricComponent.unsavedChangesConfirmDialog.submit": "Speichern",
124
124
  "metricComponent.unsavedChangesConfirmDialog.submitAsNew": "Als neu speichern",
125
125
  "metricComponent.unsavedChangesConfirmDialog.submitAll": "Alle speichern",
126
+ "metricComponent.minimize.restore": "Editor wiederherstellen",
127
+ "metricComponent.tabs.minimize": "Editor minimieren",
128
+ "metricComponent.tabs.maximize": "Vollbild",
129
+ "metricComponent.tabs.exitMaximize": "Vollbildmodus beenden",
130
+ "metricComponent.tabs.close": "Editor schließen",
131
+ "metricComponent.tabs.tabList": "Metriken öffnen",
132
+ "metricComponent.tabs.scrollLeft": "Registerkarten nach links scrollen",
133
+ "metricComponent.tabs.scrollRight": "Registerkarten nach rechts scrollen",
134
+ "metricComponent.tabs.closeTab": "{title} schließen",
126
135
  "metricComponent.minimize.editing": "Bearbeitung:",
127
136
  "metricComponent.minimize.viewing": "In Betrachtung",
128
137
  "metricComponent.minimize.metrics": "{edited, plural, one {# Metrik} other {# Metriken}}",
@@ -123,6 +123,15 @@
123
123
  "metricComponent.unsavedChangesConfirmDialog.submit": "Save",
124
124
  "metricComponent.unsavedChangesConfirmDialog.submitAsNew": "Save as new",
125
125
  "metricComponent.unsavedChangesConfirmDialog.submitAll": "Save all",
126
+ "metricComponent.minimize.restore": "Restore editor",
127
+ "metricComponent.tabs.minimize": "Minimise editor",
128
+ "metricComponent.tabs.maximize": "Full screen",
129
+ "metricComponent.tabs.exitMaximize": "Exit full screen",
130
+ "metricComponent.tabs.close": "Close editor",
131
+ "metricComponent.tabs.tabList": "Open metrics",
132
+ "metricComponent.tabs.scrollLeft": "Scroll tabs left",
133
+ "metricComponent.tabs.scrollRight": "Scroll tabs right",
134
+ "metricComponent.tabs.closeTab": "Close {title}",
126
135
  "metricComponent.minimize.editing": "Editing:",
127
136
  "metricComponent.minimize.viewing": "Viewing",
128
137
  "metricComponent.minimize.metrics": "{edited, plural, one {# metric} other {# metrics}}",
@@ -123,6 +123,15 @@
123
123
  "metricComponent.unsavedChangesConfirmDialog.submit": "Save",
124
124
  "metricComponent.unsavedChangesConfirmDialog.submitAsNew": "Save as new",
125
125
  "metricComponent.unsavedChangesConfirmDialog.submitAll": "Save all",
126
+ "metricComponent.minimize.restore": "Restore editor",
127
+ "metricComponent.tabs.minimize": "Minimise editor",
128
+ "metricComponent.tabs.maximize": "Full screen",
129
+ "metricComponent.tabs.exitMaximize": "Exit full screen",
130
+ "metricComponent.tabs.close": "Close editor",
131
+ "metricComponent.tabs.tabList": "Open metrics",
132
+ "metricComponent.tabs.scrollLeft": "Scroll tabs left",
133
+ "metricComponent.tabs.scrollRight": "Scroll tabs right",
134
+ "metricComponent.tabs.closeTab": "Close {title}",
126
135
  "metricComponent.minimize.editing": "Editing:",
127
136
  "metricComponent.minimize.viewing": "Viewing",
128
137
  "metricComponent.minimize.metrics": "{edited, plural, one {# metric} other {# metrics}}",
@@ -32,7 +32,7 @@
32
32
  "crowdinContext": "Text on a button to automatically apply formatting rules on a MAQL metric"
33
33
  },
34
34
  "metricComponent.editMetric.autoFormatBubble": {
35
- "text": "Format metric expression (Shift+CTRL+I)",
35
+ "text": "Format metric expression (Shift+Alt+F)",
36
36
  "crowdinContext": "Tooltip for auto-format button with keyboard shortcut"
37
37
  },
38
38
  "metricComponent.editMetric.autoFormatBubbleMac": {
@@ -69,11 +69,7 @@
69
69
  },
70
70
  "metricComponent.editMetric.decoratorsShow": {
71
71
  "text": "Show names",
72
- "crowdinContext": "Button to show element names in metric editor"
73
- },
74
- "metricComponent.editMetric.decoratorsHide": {
75
- "text": "Hide names",
76
- "crowdinContext": "Button to hide element names in metric editor"
72
+ "crowdinContext": "Menu item with a check mark that turns the display of element names in the metric editor on and off"
77
73
  },
78
74
  "metricComponent.editMetric.descriptionPlaceholder": {
79
75
  "text": "Add description here...",
@@ -223,6 +219,14 @@
223
219
  "text": "Create a MAQL statement to query your data.",
224
220
  "crowdinContext": "Tooltip explaining metric definition functionality"
225
221
  },
222
+ "metricComponent.editMetric.metric.definition.moreActions": {
223
+ "text": "More actions for the metric definition",
224
+ "crowdinContext": "Accessible name of the '...' button that opens the menu of the metric definition section (auto format, show or hide titles)"
225
+ },
226
+ "metricComponent.partHeader.moreActions": {
227
+ "text": "More actions",
228
+ "crowdinContext": "Accessible name of a '...' button that opens a menu of more actions for a section of the metric editor"
229
+ },
226
230
  "metricComponent.editMetric.metric.result.context": {
227
231
  "text": "View by",
228
232
  "crowdinContext": "Label for result context section"
@@ -495,6 +499,42 @@
495
499
  "text": "Save all",
496
500
  "crowdinContext": "Button to save all unsaved changes"
497
501
  },
502
+ "metricComponent.minimize.restore": {
503
+ "text": "Restore editor",
504
+ "crowdinContext": "Accessible name of the icon button that reopens the minimized metric editor"
505
+ },
506
+ "metricComponent.tabs.minimize": {
507
+ "text": "Minimize editor",
508
+ "crowdinContext": "Accessible name of the icon button that minimizes the metric editor into a small bar"
509
+ },
510
+ "metricComponent.tabs.maximize": {
511
+ "text": "Full screen",
512
+ "crowdinContext": "Accessible name of the icon button that expands the metric editor to full screen"
513
+ },
514
+ "metricComponent.tabs.exitMaximize": {
515
+ "text": "Exit full screen",
516
+ "crowdinContext": "Accessible name of the icon button that returns the full-screen metric editor to its normal size"
517
+ },
518
+ "metricComponent.tabs.close": {
519
+ "text": "Close editor",
520
+ "crowdinContext": "Accessible name of the icon button that closes the metric editor with all its open metrics"
521
+ },
522
+ "metricComponent.tabs.tabList": {
523
+ "text": "Open metrics",
524
+ "crowdinContext": "Accessible name of the row of tabs in the metric editor, one tab per metric being edited"
525
+ },
526
+ "metricComponent.tabs.scrollLeft": {
527
+ "text": "Scroll tabs left",
528
+ "crowdinContext": "Accessible name of the arrow button that scrolls the metric editor tabs to the left"
529
+ },
530
+ "metricComponent.tabs.scrollRight": {
531
+ "text": "Scroll tabs right",
532
+ "crowdinContext": "Accessible name of the arrow button that scrolls the metric editor tabs to the right"
533
+ },
534
+ "metricComponent.tabs.closeTab": {
535
+ "text": "Close {title}",
536
+ "crowdinContext": "Accessible name of the icon button that closes one metric tab in the metric editor. {title} is the metric name"
537
+ },
498
538
  "metricComponent.minimize.editing": {
499
539
  "text": "Editing:",
500
540
  "crowdinContext": "Status label when metric is in editing mode"
@@ -123,6 +123,15 @@
123
123
  "metricComponent.unsavedChangesConfirmDialog.submit": "Guardar",
124
124
  "metricComponent.unsavedChangesConfirmDialog.submitAsNew": "Guardar como nuevo",
125
125
  "metricComponent.unsavedChangesConfirmDialog.submitAll": "Guardar todo",
126
+ "metricComponent.minimize.restore": "Restaurar editor",
127
+ "metricComponent.tabs.minimize": "Minimizar editor",
128
+ "metricComponent.tabs.maximize": "Pantalla completa",
129
+ "metricComponent.tabs.exitMaximize": "Salir de pantalla completa",
130
+ "metricComponent.tabs.close": "Cerrar editor",
131
+ "metricComponent.tabs.tabList": "Abrir métricas",
132
+ "metricComponent.tabs.scrollLeft": "Desplazar pestañas a la izquierda",
133
+ "metricComponent.tabs.scrollRight": "Desplazar pestañas a la derecha",
134
+ "metricComponent.tabs.closeTab": "Cerrar {title}",
126
135
  "metricComponent.minimize.editing": "Editando:",
127
136
  "metricComponent.minimize.viewing": "Visualizando",
128
137
  "metricComponent.minimize.metrics": "{edited, plural, one {# métrica} other {# métricas}}",
@@ -123,6 +123,15 @@
123
123
  "metricComponent.unsavedChangesConfirmDialog.submit": "Guardar",
124
124
  "metricComponent.unsavedChangesConfirmDialog.submitAsNew": "Guardar como nuevo",
125
125
  "metricComponent.unsavedChangesConfirmDialog.submitAll": "Guardar todo",
126
+ "metricComponent.minimize.restore": "Restaurar editor",
127
+ "metricComponent.tabs.minimize": "Minimizar editor",
128
+ "metricComponent.tabs.maximize": "Pantalla completa",
129
+ "metricComponent.tabs.exitMaximize": "Salir de pantalla completa",
130
+ "metricComponent.tabs.close": "Cerrar editor",
131
+ "metricComponent.tabs.tabList": "Abrir métricas",
132
+ "metricComponent.tabs.scrollLeft": "Desplazar pestañas a la izquierda",
133
+ "metricComponent.tabs.scrollRight": "Desplazar pestañas a la derecha",
134
+ "metricComponent.tabs.closeTab": "Cerrar {title}",
126
135
  "metricComponent.minimize.editing": "Edición:",
127
136
  "metricComponent.minimize.viewing": "Visualizando",
128
137
  "metricComponent.minimize.metrics": "{edited, plural, one {# métrica} other {# métricas}}",
@@ -123,6 +123,15 @@
123
123
  "metricComponent.unsavedChangesConfirmDialog.submit": "Tallenna",
124
124
  "metricComponent.unsavedChangesConfirmDialog.submitAsNew": "Tallenna uutena",
125
125
  "metricComponent.unsavedChangesConfirmDialog.submitAll": "Tallenna kaikki",
126
+ "metricComponent.minimize.restore": "Palauta editori",
127
+ "metricComponent.tabs.minimize": "Pienennä editori",
128
+ "metricComponent.tabs.maximize": "Koko näyttö",
129
+ "metricComponent.tabs.exitMaximize": "Poistu koko näytön tilasta",
130
+ "metricComponent.tabs.close": "Sulje editori",
131
+ "metricComponent.tabs.tabList": "Avaa metrikat",
132
+ "metricComponent.tabs.scrollLeft": "Vieritä välilehtiä vasemmalle",
133
+ "metricComponent.tabs.scrollRight": "Vieritä välilehtiä oikealle",
134
+ "metricComponent.tabs.closeTab": "Sulje {title}",
126
135
  "metricComponent.minimize.editing": "Muokkaus:",
127
136
  "metricComponent.minimize.viewing": "Katselu",
128
137
  "metricComponent.minimize.metrics": "{edited, plural, one {# metric} other {# metrics}}",
@@ -123,6 +123,15 @@
123
123
  "metricComponent.unsavedChangesConfirmDialog.submit": "Enregistrer",
124
124
  "metricComponent.unsavedChangesConfirmDialog.submitAsNew": "Enregistrer sous un nouveau nom",
125
125
  "metricComponent.unsavedChangesConfirmDialog.submitAll": "Tout enregistrer",
126
+ "metricComponent.minimize.restore": "Restaurer l’éditeur",
127
+ "metricComponent.tabs.minimize": "Réduire l’éditeur",
128
+ "metricComponent.tabs.maximize": "Afficher en plein écran",
129
+ "metricComponent.tabs.exitMaximize": "Quitter le mode plein écran",
130
+ "metricComponent.tabs.close": "Fermer l’éditeur",
131
+ "metricComponent.tabs.tabList": "Ouvrir les métriques",
132
+ "metricComponent.tabs.scrollLeft": "Faire défiler les onglets vers la gauche",
133
+ "metricComponent.tabs.scrollRight": "Faire défiler les onglets vers la droite",
134
+ "metricComponent.tabs.closeTab": "Fermer {title}",
126
135
  "metricComponent.minimize.editing": "Modification :",
127
136
  "metricComponent.minimize.viewing": "Visualisation",
128
137
  "metricComponent.minimize.metrics": "{edited, plural, one {# métrique} other {# métriques}}",
@@ -123,6 +123,15 @@
123
123
  "metricComponent.unsavedChangesConfirmDialog.submit": "Enregistrer",
124
124
  "metricComponent.unsavedChangesConfirmDialog.submitAsNew": "Enregistrer sous un nouveau nom",
125
125
  "metricComponent.unsavedChangesConfirmDialog.submitAll": "Tout enregistrer",
126
+ "metricComponent.minimize.restore": "Restaurer l’éditeur",
127
+ "metricComponent.tabs.minimize": "Réduire l’éditeur",
128
+ "metricComponent.tabs.maximize": "Passer en plein écran",
129
+ "metricComponent.tabs.exitMaximize": "Quitter le mode plein écran",
130
+ "metricComponent.tabs.close": "Fermer l’éditeur",
131
+ "metricComponent.tabs.tabList": "Ouvrir les métriques",
132
+ "metricComponent.tabs.scrollLeft": "Faire défiler les onglets vers la gauche",
133
+ "metricComponent.tabs.scrollRight": "Faire défiler les onglets vers la droite",
134
+ "metricComponent.tabs.closeTab": "Fermer {title}",
126
135
  "metricComponent.minimize.editing": "Modification :",
127
136
  "metricComponent.minimize.viewing": "Visualisation",
128
137
  "metricComponent.minimize.metrics": "{edited, plural, one {# métrique} other {# métriques}}",
@@ -123,6 +123,15 @@
123
123
  "metricComponent.unsavedChangesConfirmDialog.submit": "Simpan",
124
124
  "metricComponent.unsavedChangesConfirmDialog.submitAsNew": "Simpan sebagai baru",
125
125
  "metricComponent.unsavedChangesConfirmDialog.submitAll": "Simpan semua",
126
+ "metricComponent.minimize.restore": "Pulihkan editor",
127
+ "metricComponent.tabs.minimize": "Minimalkan editor",
128
+ "metricComponent.tabs.maximize": "Layar penuh",
129
+ "metricComponent.tabs.exitMaximize": "Keluar dari layar penuh",
130
+ "metricComponent.tabs.close": "Tutup editor",
131
+ "metricComponent.tabs.tabList": "Buka metrik",
132
+ "metricComponent.tabs.scrollLeft": "Gulir tab ke kiri",
133
+ "metricComponent.tabs.scrollRight": "Gulir tab ke kanan",
134
+ "metricComponent.tabs.closeTab": "Tutup {title}",
126
135
  "metricComponent.minimize.editing": "Mengedit:",
127
136
  "metricComponent.minimize.viewing": "Melihat",
128
137
  "metricComponent.minimize.metrics": "{edited, plural, other {# metrik}}",