@gooddata/sdk-ui-metric-component 11.68.0-alpha.1 → 11.68.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +9976 -61883
- package/esm/MetricComponent/Form/Header/MetricIdField.d.ts.map +1 -1
- package/esm/MetricComponent/Form/Header/MetricIdField.js +5 -5
- package/esm/MetricComponent/Form/MaqlEditorField/MaqlEditorEditor.d.ts.map +1 -1
- package/esm/MetricComponent/Form/MaqlEditorField/MaqlEditorEditor.js +2 -2
- package/esm/MetricComponent/Form/MaqlResult/components/AttributesSelect.d.ts.map +1 -1
- package/esm/MetricComponent/Form/MaqlResult/components/AttributesSelect.js +3 -3
- package/esm/MetricComponent/Form/MaqlResult/components/LimitSelect.d.ts.map +1 -1
- package/esm/MetricComponent/Form/MaqlResult/components/LimitSelect.js +2 -2
- package/esm/MetricComponent/Form/hooks/useUniqIdGenerator.js +3 -3
- package/esm/MetricComponent/MetricState/hooks/useOnChangeCallback.d.ts.map +1 -1
- package/esm/MetricComponent/MetricState/hooks/useOnChangeCallback.js +4 -4
- package/esm/MetricComponent/hooks/useInitialValueMetric.js +2 -2
- package/esm/MetricComponent/hooks/useOnCloseOrCancel.d.ts.map +1 -1
- package/esm/MetricComponent/hooks/useOnCloseOrCancel.js +2 -2
- package/esm/shared/Form/Form.js +2 -2
- package/esm/shared/Form/utils.js +2 -2
- package/esm/shared/metrics/useMetricListData.d.ts.map +1 -1
- package/esm/shared/metrics/useMetricListData.events.d.ts.map +1 -1
- package/esm/shared/metrics/useMetricListData.events.js +3 -3
- package/esm/shared/metrics/useMetricListData.js +2 -2
- package/esm/translations/de-DE.json +9 -0
- package/esm/translations/en-AU.json +9 -0
- package/esm/translations/en-GB.json +9 -0
- package/esm/translations/es-419.json +9 -0
- package/esm/translations/es-ES.json +9 -0
- package/esm/translations/fi-FI.json +9 -0
- package/esm/translations/fr-CA.json +9 -0
- package/esm/translations/fr-FR.json +9 -0
- package/esm/translations/id-ID.json +9 -0
- package/esm/translations/it-IT.json +12 -3
- package/esm/translations/ja-JP.json +9 -0
- package/esm/translations/ko-KR.json +9 -0
- package/esm/translations/nl-NL.json +9 -0
- package/esm/translations/pl-PL.json +9 -0
- package/esm/translations/pt-BR.json +9 -0
- package/esm/translations/pt-PT.json +9 -0
- package/esm/translations/ru-RU.json +10 -1
- package/esm/translations/sl-SI.json +9 -0
- package/esm/translations/th-TH.json +9 -0
- package/esm/translations/tr-TR.json +14 -5
- package/esm/translations/translations.d.ts.map +1 -1
- package/esm/translations/translations.js +2 -3
- package/esm/translations/uk-UA.json +9 -0
- package/esm/translations/vi-VN.json +9 -0
- package/esm/translations/zh-HK.json +9 -0
- package/esm/translations/zh-Hans.json +9 -0
- package/esm/translations/zh-Hant.json +10 -1
- package/package.json +17 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MetricIdField.d.ts","sourceRoot":"","sources":["../../../../src/MetricComponent/Form/Header/MetricIdField.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MetricIdField.d.ts","sourceRoot":"","sources":["../../../../src/MetricComponent/Form/Header/MetricIdField.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,OAAO,CAAC;AAmCvD,MAAM,WAAW,mBAAmB;IAChC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE,mBAAmB,GAAG,YAAY,GAAG,IAAI,CA0CnG;AAED,6FAA6F;AAC7F,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAOjE"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2021-2026 GoodData Corporation
|
|
3
3
|
import { useCallback } from "react";
|
|
4
|
-
import { isEmpty } from "lodash-es";
|
|
5
4
|
import { useIntl } from "react-intl";
|
|
5
|
+
import { _isEmpty } from "@gooddata/util";
|
|
6
6
|
import { useEvents } from "../../../shared/eventing/useEvents.js";
|
|
7
7
|
import { makeStyles } from "../../../shared/theme/index.js";
|
|
8
8
|
import { validateIdPattern } from "../../metric/idValidator.js";
|
|
@@ -39,7 +39,7 @@ export function MetricIdField({ className, regenerateId }) {
|
|
|
39
39
|
const { trimOrSetDefaultIfEmpty } = useIdSanitizers(defaultId);
|
|
40
40
|
// The row holds before an id exists, so it fills in as the title is typed. Nothing to
|
|
41
41
|
// show and nothing to type into would render a bare "ID:".
|
|
42
|
-
if (
|
|
42
|
+
if (_isEmpty(value) && _isEmpty(defaultId) && (isLocked || isReadOnly)) {
|
|
43
43
|
return null;
|
|
44
44
|
}
|
|
45
45
|
return (_jsxs("div", { className: cx(classes.root, className, "s-edit_dialog_id"), children: ["ID:", " ", _jsx(InlineEditableValue, { prefix: prefix.value, className: classes.idRow, size: "small", minWidth: ID_MIN_WIDTH, revealOnHover: false, placeholder: defaultId, ariaLabel: intl.formatMessage({ id: "metricComponent.editMetric.id.ariaLabel" }), onChangeValueTransformer: passOnlyValidOrEmpty, onEditEndsValueTransformer: trimOrSetDefaultIfEmpty, readOnly: isLocked || isReadOnly, errorMessage: error?.message, showError: !valid, value: value, onBlur: onBlurHandler, onChange: onChange, ref: element })] }));
|
|
@@ -47,7 +47,7 @@ export function MetricIdField({ className, regenerateId }) {
|
|
|
47
47
|
/** Trimmed value if the id pattern allows it or it is empty, otherwise null to reject it. */
|
|
48
48
|
export function passOnlyValidOrEmpty(value) {
|
|
49
49
|
const idValue = value.trim();
|
|
50
|
-
if (
|
|
50
|
+
if (_isEmpty(idValue) || validateIdPattern(idValue)) {
|
|
51
51
|
return idValue;
|
|
52
52
|
}
|
|
53
53
|
return null;
|
|
@@ -55,7 +55,7 @@ export function passOnlyValidOrEmpty(value) {
|
|
|
55
55
|
function useIdSanitizers(defaultId) {
|
|
56
56
|
const trimOrSetDefaultIfEmpty = useCallback((value) => {
|
|
57
57
|
const idValue = value.trim();
|
|
58
|
-
if (
|
|
58
|
+
if (_isEmpty(idValue)) {
|
|
59
59
|
return defaultId;
|
|
60
60
|
}
|
|
61
61
|
else {
|
|
@@ -67,7 +67,7 @@ function useIdSanitizers(defaultId) {
|
|
|
67
67
|
function useBlurEventsCallback(id, onBlur) {
|
|
68
68
|
const { metricIdCreatedEvent, metricIdEditEvent } = useEvents(events);
|
|
69
69
|
return useCallback((e) => {
|
|
70
|
-
if (
|
|
70
|
+
if (_isEmpty(id)) {
|
|
71
71
|
metricIdCreatedEvent();
|
|
72
72
|
}
|
|
73
73
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MaqlEditorEditor.d.ts","sourceRoot":"","sources":["../../../../src/MetricComponent/Form/MaqlEditorField/MaqlEditorEditor.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGH,KAAK,GAAG,EAQX,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MaqlEditorEditor.d.ts","sourceRoot":"","sources":["../../../../src/MetricComponent/Form/MaqlEditorField/MaqlEditorEditor.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGH,KAAK,GAAG,EAQX,MAAM,OAAO,CAAC;AAOf,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAkB3D,OAAO,EAAE,KAAK,cAAc,EAAc,MAAM,wCAAwC,CAAC;AAuBzF,MAAM,WAAW,sBAAsB;IACnC,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACjC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IACjD,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAyCD,eAAO,MAAM,gBAAgB,gIAsD3B,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2021-2026 GoodData Corporation
|
|
3
3
|
import { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useState, } from "react";
|
|
4
|
-
import { isEmpty } from "lodash-es";
|
|
5
4
|
import { flushSync } from "react-dom";
|
|
6
5
|
import { createRoot } from "react-dom/client";
|
|
7
6
|
import { useIntl } from "react-intl";
|
|
8
7
|
import { IconArrowDown, IconArrowUp, IconAttribute, IconClose, IconDataset, IconFact, IconFunction, IconKeyword, IconLabel, IconMetric, IconQuestionMark, } from "@gooddata/sdk-ui-kit";
|
|
8
|
+
import { _isEmpty } from "@gooddata/util";
|
|
9
9
|
import { MaqlEditor } from "../../../MaqlEditor/maql/MaqlEditor.js";
|
|
10
10
|
import { useEvents } from "../../../shared/eventing/useEvents.js";
|
|
11
11
|
import { makeStyles } from "../../../shared/theme/index.js";
|
|
@@ -63,7 +63,7 @@ export const MaqlEditorEditor = forwardRef(function MaqlEditorEditor({ onMetricO
|
|
|
63
63
|
const { value, valid, element, isReadOnly, onBlur, onChange } = useMetricFormField(FormField.expression);
|
|
64
64
|
const [autofocus, setAutofocus] = useState(false);
|
|
65
65
|
const [autohints, setAutoHints] = useAutohint(!valid);
|
|
66
|
-
const isMaqlEditorEmpty =
|
|
66
|
+
const isMaqlEditorEmpty = _isEmpty(getMaqlValue(value));
|
|
67
67
|
const [onChanged, onValidation] = useMaqlField(value, onChange);
|
|
68
68
|
const onBlurHandler = useBlur(value, onBlur, setAutoHints, setAutofocus);
|
|
69
69
|
const onMetricOpenHandler = useCallback((_editor, object) => onMetricOpen?.(object), [onMetricOpen]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttributesSelect.d.ts","sourceRoot":"","sources":["../../../../../src/MetricComponent/Form/MaqlResult/components/AttributesSelect.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAkC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AttributesSelect.d.ts","sourceRoot":"","sources":["../../../../../src/MetricComponent/Form/MaqlResult/components/AttributesSelect.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAkC,MAAM,OAAO,CAAC;AAK1F,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,OAAO,EAAkC,KAAK,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAqEvG,MAAM,MAAM,sBAAsB,GAAG;IACjC,MAAM,EAAE,CAAC,KAAK,EAAE,0BAA0B,KAAK,SAAS,CAAC;IACzD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,GAAG,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC1B,UAAU,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACjC,WAAW,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAClC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,EAAE,KAAK,IAAI,CAAC;IAC/C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAWF,wBAAgB,gBAAgB,CAAC,EAC7B,GAAQ,EACR,UAAe,EACf,WAAgB,EAChB,OAAO,EACP,MAAM,EACN,OAAO,EACP,QAAQ,EACR,MAAM,GACT,EAAE,sBAAsB,GAAG,YAAY,CAgGvC"}
|
|
@@ -2,10 +2,10 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
// (C) 2022-2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useMemo, useState } from "react";
|
|
4
4
|
import classNames from "classnames";
|
|
5
|
-
import { debounce, isEqual } from "lodash-es";
|
|
6
5
|
import { defineMessages, useIntl } from "react-intl";
|
|
7
6
|
import { LoadingComponent } from "@gooddata/sdk-ui";
|
|
8
7
|
import { Button, Dropdown, DropdownList } from "@gooddata/sdk-ui-kit";
|
|
8
|
+
import { _debounce, _isEqual } from "@gooddata/util";
|
|
9
9
|
import { useProp } from "../../../../shared/hooks/useProp.js";
|
|
10
10
|
import { makeStyles } from "../../../../shared/theme/index.js";
|
|
11
11
|
import { AttributeDropdownListItem } from "./AttributesSelectItem.js";
|
|
@@ -104,7 +104,7 @@ export function AttributesSelect({ all = [], attributes = [], preselected = [],
|
|
|
104
104
|
function useSearch(attributes) {
|
|
105
105
|
const [search, setSearch] = useState("");
|
|
106
106
|
// oxlint-disable-next-line react-hooks/exhaustive-deps
|
|
107
|
-
const onSearch = useCallback(
|
|
107
|
+
const onSearch = useCallback(_debounce((query) => {
|
|
108
108
|
setSearch(query);
|
|
109
109
|
}, 250), []);
|
|
110
110
|
const items = useMemo(() => search
|
|
@@ -118,7 +118,7 @@ function useSearch(attributes) {
|
|
|
118
118
|
}
|
|
119
119
|
function useSelected(preselected) {
|
|
120
120
|
const [selected, setSelected] = useProp(preselected);
|
|
121
|
-
const changed = useMemo(() => !
|
|
121
|
+
const changed = useMemo(() => !_isEqual(selected.slice().sort(), preselected.slice().sort()), [preselected, selected]);
|
|
122
122
|
const toggleSelected = useCallback((attr) => {
|
|
123
123
|
if (selected.includes(attr)) {
|
|
124
124
|
setSelected(selected.filter((attribute) => attr !== attribute));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LimitSelect.d.ts","sourceRoot":"","sources":["../../../../../src/MetricComponent/Form/MaqlResult/components/LimitSelect.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAwB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"LimitSelect.d.ts","sourceRoot":"","sources":["../../../../../src/MetricComponent/Form/MaqlResult/components/LimitSelect.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAwB,MAAM,OAAO,CAAC;AAKhF,OAAO,EAKH,KAAK,0BAA0B,EAElC,MAAM,sBAAsB,CAAC;AAoD9B,MAAM,MAAM,iBAAiB,GAAG;IAC5B,MAAM,EAAE,CAAC,KAAK,EAAE,0BAA0B,KAAK,SAAS,CAAC;IACzD,KAAK,CAAC,EAAE,EAAE,GAAG,GAAG,GAAG,IAAI,GAAG,KAAK,CAAC;IAChC,OAAO,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC3B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,EAAE,GAAG,GAAG,GAAG,IAAI,GAAG,KAAK,EAAE,OAAO,EAAE,KAAK,GAAG,QAAQ,KAAK,IAAI,CAAC;IAC9E,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB,CAAC;AAEF,wBAAgB,WAAW,CAAC,EACxB,OAAe,EACf,KAAU,EACV,MAAM,EACN,OAAO,EACP,QAAQ,GACX,EAAE,iBAAiB,GAAG,YAAY,CAuGlC"}
|
|
@@ -2,9 +2,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
// (C) 2022-2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useMemo } from "react";
|
|
4
4
|
import classNames from "classnames";
|
|
5
|
-
import { isEqual } from "lodash-es";
|
|
6
5
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
7
6
|
import { Button, Dropdown, DropdownButton, DropdownList, SingleSelectListItem, } from "@gooddata/sdk-ui-kit";
|
|
7
|
+
import { _isEqual } from "@gooddata/util";
|
|
8
8
|
import { useProp } from "../../../../shared/hooks/useProp.js";
|
|
9
9
|
import { makeStyles } from "../../../../shared/theme/index.js";
|
|
10
10
|
const useStyles = makeStyles()((theme) => ({
|
|
@@ -99,7 +99,7 @@ function SimpleSelect({ items, selected, onSelect }) {
|
|
|
99
99
|
function useSelected(preselectedLimit, preselectedRanking) {
|
|
100
100
|
const [selectedLimit, setLimit] = useProp(preselectedLimit);
|
|
101
101
|
const [selectedRanking, setRanking] = useProp(preselectedRanking);
|
|
102
|
-
const changed = useMemo(() => !
|
|
102
|
+
const changed = useMemo(() => !_isEqual(selectedLimit, preselectedLimit) || !_isEqual(selectedRanking, preselectedRanking), [preselectedLimit, preselectedRanking, selectedLimit, selectedRanking]);
|
|
103
103
|
const resetSelected = useCallback(() => {
|
|
104
104
|
setLimit(preselectedLimit);
|
|
105
105
|
setRanking(preselectedRanking);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
2
|
import { useEffect, useMemo, useState } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { _isEmpty } from "@gooddata/util";
|
|
4
4
|
import { generateUniqId } from "../../metric/nameGenerators.js";
|
|
5
5
|
import { FormField } from "../data.js";
|
|
6
6
|
import { useOtherMetrics } from "../OtherMetrics/useOtherMetrics.js";
|
|
@@ -29,7 +29,7 @@ function useGenerateId(title, defaultId, regenerateId = false) {
|
|
|
29
29
|
const { otherMetrics } = useOtherMetrics();
|
|
30
30
|
const { parents } = usePrefixes();
|
|
31
31
|
useEffect(() => {
|
|
32
|
-
if (!changed && (
|
|
32
|
+
if (!changed && (_isEmpty(defaultId) || regenerateId)) {
|
|
33
33
|
setValue(generateUniqId(title, prefix.value, otherMetrics, parents));
|
|
34
34
|
}
|
|
35
35
|
}, [defaultId, changed, otherMetrics, title, regenerateId, setValue, prefix.value, parents]);
|
|
@@ -40,7 +40,7 @@ function useDefaultIdByTitle(title, defaultId) {
|
|
|
40
40
|
const { parents } = usePrefixes();
|
|
41
41
|
const [defaultIdByTitle, setId] = useState(generateUniqId(title, prefix.value, otherMetrics, parents));
|
|
42
42
|
useEffect(() => {
|
|
43
|
-
if (
|
|
43
|
+
if (_isEmpty(defaultId)) {
|
|
44
44
|
setId(generateUniqId(title, prefix.value, otherMetrics, parents));
|
|
45
45
|
}
|
|
46
46
|
}, [defaultId, otherMetrics, setId, title, prefix.value, parents]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOnChangeCallback.d.ts","sourceRoot":"","sources":["../../../../src/MetricComponent/MetricState/hooks/useOnChangeCallback.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useOnChangeCallback.d.ts","sourceRoot":"","sources":["../../../../src/MetricComponent/MetricState/hooks/useOnChangeCallback.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAG9D,OAAO,EAAE,KAAK,IAAI,EAAY,MAAM,6BAA6B,CAAC;AAElE,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACvF,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAI1D,UAAU,0BAA0B;IAChC,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IACvB,SAAS,EAAE,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,KAAK,IAAI,CAAC;IAC/E,UAAU,EAAE,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAChE,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACjE;AAED,eAAO,MAAM,mBAAmB,mDAK7B,0BAA0B,KAAG;IAC5B,cAAc,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9D,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,KAAK,IAAI,CAAC;IAC7D,mBAAmB,EAAE,CAAC,WAAW,EAAE,iBAAiB,GAAG,SAAS,KAAK,IAAI,CAAC;CAiD7E,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
2
|
import { useCallback } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { _isEqual } from "@gooddata/util";
|
|
4
4
|
import { TabState } from "../../../shared/Tabs/Tab.js";
|
|
5
5
|
import { emptyMetricWithId } from "../../metric/emptyMetric.js";
|
|
6
6
|
import { updateTabDataFromMetric, updateTabDataFromSetting, updateTabFromMetric } from "./useTabsData.js";
|
|
@@ -8,9 +8,9 @@ export const useOnChangeCallback = ({ tab, updateTab, updateData, onValueChange,
|
|
|
8
8
|
const onChangeMetric = useCallback((metric, valid) => {
|
|
9
9
|
const states = tab.states || {};
|
|
10
10
|
const { initial, current } = tab.data;
|
|
11
|
-
const isChanged = !
|
|
12
|
-
const isUpdate = !
|
|
13
|
-
const isEmpty =
|
|
11
|
+
const isChanged = !_isEqual(metric, initial);
|
|
12
|
+
const isUpdate = !_isEqual(metric, current);
|
|
13
|
+
const isEmpty = _isEqual(metric, emptyMetricWithId);
|
|
14
14
|
const isInvalid = !valid && !isEmpty;
|
|
15
15
|
updateTab(tab, updateTabFromMetric(tab, metric, isChanged, isInvalid));
|
|
16
16
|
if (states[TabState.Dirty] !== isChanged || states[TabState.Invalid] !== isInvalid) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
2
|
import { useEffect, useState } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { _isEqual } from "@gooddata/util";
|
|
4
4
|
export function useInitialValueMetric(metric) {
|
|
5
5
|
const [initialValueMetric, setInitialValueMetric] = useState(metric);
|
|
6
6
|
useEffect(() => {
|
|
7
|
-
if (!
|
|
7
|
+
if (!_isEqual(initialValueMetric, metric)) {
|
|
8
8
|
setInitialValueMetric(metric);
|
|
9
9
|
}
|
|
10
10
|
}, [initialValueMetric, metric]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOnCloseOrCancel.d.ts","sourceRoot":"","sources":["../../../src/MetricComponent/hooks/useOnCloseOrCancel.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useOnCloseOrCancel.d.ts","sourceRoot":"","sources":["../../../src/MetricComponent/hooks/useOnCloseOrCancel.ts"],"names":[],"mappings":"AAOA,OAAO,EAAc,KAAK,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAChG,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE9D,wBAAgB,kBAAkB,CAC9B,KAAK,EAAE,OAAO,EACd,QAAQ,EAAE,uBAAuB,CAAC,UAAU,CAAC,EAC7C,eAAe,EAAE,CAAC,MAAM,EAAE,WAAW,GAAG,SAAS,KAAK,IAAI,EAC1D,kCAAkC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAC7D;IACC,eAAe,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,WAAW,CAAC,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACxE,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAChC,CAuBA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import { isEmpty } from "lodash-es";
|
|
4
3
|
import { isMeasureMetadataObject, isMeasureMetadataObjectDefinition } from "@gooddata/sdk-model";
|
|
4
|
+
import { _isEmpty } from "@gooddata/util";
|
|
5
5
|
import { CancelMode } from "../Content/EditMetricContent.data.js";
|
|
6
6
|
export function useOnCloseOrCancel(dirty, onCancel, setMetricToSave, setShowUnsavedChangesConfirmDialog) {
|
|
7
7
|
return useMemo(() => {
|
|
8
8
|
function onCloseCallback(metric, valid) {
|
|
9
|
-
if (
|
|
9
|
+
if (_isEmpty(metric.expression?.trim()) || !dirty) {
|
|
10
10
|
onCancel({ cancelMode: CancelMode.Cross });
|
|
11
11
|
return;
|
|
12
12
|
}
|
package/esm/shared/Form/Form.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2022-2026 GoodData Corporation
|
|
3
3
|
import { forwardRef, useEffect, useRef, } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { _isEqual } from "@gooddata/util";
|
|
5
5
|
import { FormApi } from "./FormApi.js";
|
|
6
6
|
import { FormContext } from "./FormContext.js";
|
|
7
7
|
import { useChanged } from "./hooks/useChanged.js";
|
|
@@ -32,7 +32,7 @@ export const FormProvider = forwardRef(function FormProvider(props, ref) {
|
|
|
32
32
|
setFocus,
|
|
33
33
|
setBlur,
|
|
34
34
|
setSaving,
|
|
35
|
-
},
|
|
35
|
+
}, _isEqual);
|
|
36
36
|
return (_jsxs(FormContext.Provider, { value: value, children: [_jsx(FormApi, { ref: ref }), children] }));
|
|
37
37
|
});
|
|
38
38
|
function useMemoCompare(next, compare) {
|
package/esm/shared/Form/utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// (C) 2022-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { _isEqual } from "@gooddata/util";
|
|
3
3
|
export function isChanged(defaultValues, currentValues, transformer) {
|
|
4
|
-
return !
|
|
4
|
+
return !_isEqual(transformer(defaultValues), transformer(currentValues));
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMetricListData.d.ts","sourceRoot":"","sources":["../../../src/shared/metrics/useMetricListData.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useMetricListData.d.ts","sourceRoot":"","sources":["../../../src/shared/metrics/useMetricListData.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAWlE,UAAU,aAAa;IACnB,KAAK,EAAE,sBAAsB,EAAE,CAAC;IAChC,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,KAAK,mBAAmB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,KAAK,OAAO,CAAC,aAAa,CAAC,CAAC;AAE7F;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IACrB,SAAS,EAAE,KAAK,GAAG,MAAM,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,sBAAsB,EAAE,CAAC;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,IAAI,EAAE,eAAe,CAAC;IACtB,OAAO,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IACzC,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,iBAAiB,YAEb,kBAAkB,eACd,MAAM,gBACL,CAAC,IAAI,EAAE,sBAAsB,EAAE,KAAK,IAAI,gCAEvD,mBAqBF,CAAC;AAEN;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,0BAE3B,yBAAyB,KAAQ,cAoCnC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMetricListData.events.d.ts","sourceRoot":"","sources":["../../../src/shared/metrics/useMetricListData.events.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useMetricListData.events.d.ts","sourceRoot":"","sources":["../../../src/shared/metrics/useMetricListData.events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAGlE,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAG1D,MAAM,MAAM,oBAAoB,GAAG;IAC/B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,uBAAuB,EAAE,MAAM,CAAC;CACnC,CAAC;AAmBF,iBAAS,wBAAwB,CAAC,IAAI,EAAE,sBAAsB,EAAE,GAAG,MAAM,GAAG,IAAI,CAO/E;AAED,eAAO,MAAM,MAAM;;CAElB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { _groupBy, _isEqual } from "@gooddata/util";
|
|
3
3
|
import { EventCategories, Events } from "../eventing/events.js";
|
|
4
4
|
function getSameItemNumber(collection, iteratee) {
|
|
5
|
-
const groups =
|
|
5
|
+
const groups = _groupBy(collection, iteratee);
|
|
6
6
|
return Object.values(groups).filter((group) => group.length > 1).length;
|
|
7
7
|
}
|
|
8
8
|
function calculateWorkspaceMetricStats(data) {
|
|
@@ -13,7 +13,7 @@ function calculateWorkspaceMetricStats(data) {
|
|
|
13
13
|
let workspaceMetricStats = null;
|
|
14
14
|
function workspaceMetricDataEvent(data) {
|
|
15
15
|
const stats = calculateWorkspaceMetricStats(data);
|
|
16
|
-
if (workspaceMetricStats && !
|
|
16
|
+
if (workspaceMetricStats && !_isEqual(stats, workspaceMetricStats)) {
|
|
17
17
|
return workspaceMetricStatsChangedEvent(stats);
|
|
18
18
|
}
|
|
19
19
|
workspaceMetricStats = stats;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
2
|
import { useEffect, useState } from "react";
|
|
3
|
-
import { debounce } from "lodash-es";
|
|
4
3
|
import { useBackendStrict, useCancelablePromise, useWorkspaceStrict } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _debounce } from "@gooddata/util";
|
|
5
5
|
import { useEvents } from "../eventing/useEvents.js";
|
|
6
6
|
import { getFilteredItems } from "./functions/metricListData.js";
|
|
7
7
|
import { events } from "./useMetricListData.events.js";
|
|
@@ -32,7 +32,7 @@ export const useMetricListData = ({ loadPermissions = false, } = {}) => {
|
|
|
32
32
|
const [sort, setSort] = useState({ type: "title", direction: "asc" });
|
|
33
33
|
const [search, setSearch] = useState("");
|
|
34
34
|
const { workspaceMetricDataEvent } = useEvents(events);
|
|
35
|
-
const debouncedTrackWorkspace =
|
|
35
|
+
const debouncedTrackWorkspace = _debounce(workspaceMetricDataEvent, 500);
|
|
36
36
|
const workspaceId = useWorkspaceStrict();
|
|
37
37
|
const backend = useBackendStrict();
|
|
38
38
|
const { metricReloadRequest } = useReloadMetrics();
|
|
@@ -44,6 +44,15 @@
|
|
|
44
44
|
"metricComponent.editMetric.protectedMetric": "Sie können diese Metrik weder bearbeiten noch löschen, da sie im übergeordneten Workspace erstellt wurde. Um die Metrik zu bearbeiten oder zu löschen, gehen Sie bitte zum übergeordneten Workspace.",
|
|
45
45
|
"metricComponent.editMetric.hover.more": "Mehr",
|
|
46
46
|
"metricComponent.editMetric.hover.less": "Weniger",
|
|
47
|
+
"metricComponent.editMetric.hover.definition": "Definition von {title}",
|
|
48
|
+
"metricComponent.editMetric.suggestion.documentation": "Dokumentation",
|
|
49
|
+
"metricComponent.editMetric.suggestion.closeDocumentation": "Schließen",
|
|
50
|
+
"metricComponent.editMetric.contextMenu.changeAllOccurrences": "Alle Vorkommen ändern",
|
|
51
|
+
"metricComponent.editMetric.contextMenu.formatDocument": "Dokument formatieren",
|
|
52
|
+
"metricComponent.editMetric.contextMenu.formatSelection": "Auswahl formatieren",
|
|
53
|
+
"metricComponent.editMetric.contextMenu.cut": "Ausschneiden",
|
|
54
|
+
"metricComponent.editMetric.contextMenu.copy": "Kopieren",
|
|
55
|
+
"metricComponent.editMetric.contextMenu.paste": "Einfügen",
|
|
47
56
|
"metricComponent.editMetric.metric.definition": "Metrikdefinition",
|
|
48
57
|
"metricComponent.editMetric.metric.definition.tooltip": "Erstellen Sie eine MAQL-Anweisung, um Ihre Daten abzufragen.",
|
|
49
58
|
"metricComponent.editMetric.metric.result.context": "Anzeigen nach",
|
|
@@ -44,6 +44,15 @@
|
|
|
44
44
|
"metricComponent.editMetric.protectedMetric": "You cannot edit or delete this metric because it was created in the parent workspace. To edit or delete the metric, do so from the parent workspace.",
|
|
45
45
|
"metricComponent.editMetric.hover.more": "More",
|
|
46
46
|
"metricComponent.editMetric.hover.less": "Less",
|
|
47
|
+
"metricComponent.editMetric.hover.definition": "Definition of {title}",
|
|
48
|
+
"metricComponent.editMetric.suggestion.documentation": "Documentation",
|
|
49
|
+
"metricComponent.editMetric.suggestion.closeDocumentation": "Close",
|
|
50
|
+
"metricComponent.editMetric.contextMenu.changeAllOccurrences": "Change All Occurrences",
|
|
51
|
+
"metricComponent.editMetric.contextMenu.formatDocument": "Format Document",
|
|
52
|
+
"metricComponent.editMetric.contextMenu.formatSelection": "Format Selection",
|
|
53
|
+
"metricComponent.editMetric.contextMenu.cut": "Cut",
|
|
54
|
+
"metricComponent.editMetric.contextMenu.copy": "Copy",
|
|
55
|
+
"metricComponent.editMetric.contextMenu.paste": "Paste",
|
|
47
56
|
"metricComponent.editMetric.metric.definition": "Metric definition",
|
|
48
57
|
"metricComponent.editMetric.metric.definition.tooltip": "Create a MAQL statement to query your data.",
|
|
49
58
|
"metricComponent.editMetric.metric.result.context": "View by",
|
|
@@ -44,6 +44,15 @@
|
|
|
44
44
|
"metricComponent.editMetric.protectedMetric": "You cannot edit or delete this metric because it was created in the parent workspace. To edit or delete the metric, do so from the parent workspace.",
|
|
45
45
|
"metricComponent.editMetric.hover.more": "More",
|
|
46
46
|
"metricComponent.editMetric.hover.less": "Less",
|
|
47
|
+
"metricComponent.editMetric.hover.definition": "Definition of {title}",
|
|
48
|
+
"metricComponent.editMetric.suggestion.documentation": "Documentation",
|
|
49
|
+
"metricComponent.editMetric.suggestion.closeDocumentation": "Close",
|
|
50
|
+
"metricComponent.editMetric.contextMenu.changeAllOccurrences": "Change All Occurrences",
|
|
51
|
+
"metricComponent.editMetric.contextMenu.formatDocument": "Format Document",
|
|
52
|
+
"metricComponent.editMetric.contextMenu.formatSelection": "Format Selection",
|
|
53
|
+
"metricComponent.editMetric.contextMenu.cut": "Cut",
|
|
54
|
+
"metricComponent.editMetric.contextMenu.copy": "Copy",
|
|
55
|
+
"metricComponent.editMetric.contextMenu.paste": "Paste",
|
|
47
56
|
"metricComponent.editMetric.metric.definition": "Metric definition",
|
|
48
57
|
"metricComponent.editMetric.metric.definition.tooltip": "Create a MAQL statement to query your data.",
|
|
49
58
|
"metricComponent.editMetric.metric.result.context": "View by",
|
|
@@ -44,6 +44,15 @@
|
|
|
44
44
|
"metricComponent.editMetric.protectedMetric": "No puede editar o eliminar esta métrica porque se creó en el espacio de trabajo principal. Si desea editarla o eliminarla, debe hacerlo desde el espacio de trabajo principal.",
|
|
45
45
|
"metricComponent.editMetric.hover.more": "Más",
|
|
46
46
|
"metricComponent.editMetric.hover.less": "Menos",
|
|
47
|
+
"metricComponent.editMetric.hover.definition": "Definición de {title}",
|
|
48
|
+
"metricComponent.editMetric.suggestion.documentation": "Documentación",
|
|
49
|
+
"metricComponent.editMetric.suggestion.closeDocumentation": "Cerrar",
|
|
50
|
+
"metricComponent.editMetric.contextMenu.changeAllOccurrences": "Cambiar todas las apariciones",
|
|
51
|
+
"metricComponent.editMetric.contextMenu.formatDocument": "Dar formato al documento",
|
|
52
|
+
"metricComponent.editMetric.contextMenu.formatSelection": "Dar formato a la selección",
|
|
53
|
+
"metricComponent.editMetric.contextMenu.cut": "Cortar",
|
|
54
|
+
"metricComponent.editMetric.contextMenu.copy": "Copiar",
|
|
55
|
+
"metricComponent.editMetric.contextMenu.paste": "Pegar",
|
|
47
56
|
"metricComponent.editMetric.metric.definition": "Definición de la métrica",
|
|
48
57
|
"metricComponent.editMetric.metric.definition.tooltip": "Cree una instrucción de MAQL para consultar sus datos.",
|
|
49
58
|
"metricComponent.editMetric.metric.result.context": "Ver por",
|
|
@@ -44,6 +44,15 @@
|
|
|
44
44
|
"metricComponent.editMetric.protectedMetric": "No puede editar o eliminar esta métrica porque se creó en el espacio de trabajo principal. Si desea editarla o eliminarla, debe hacerlo desde el espacio de trabajo principal.",
|
|
45
45
|
"metricComponent.editMetric.hover.more": "Más",
|
|
46
46
|
"metricComponent.editMetric.hover.less": "Menos",
|
|
47
|
+
"metricComponent.editMetric.hover.definition": "Definición de {title}",
|
|
48
|
+
"metricComponent.editMetric.suggestion.documentation": "Documentación",
|
|
49
|
+
"metricComponent.editMetric.suggestion.closeDocumentation": "Cerrar",
|
|
50
|
+
"metricComponent.editMetric.contextMenu.changeAllOccurrences": "Cambiar todas las apariciones",
|
|
51
|
+
"metricComponent.editMetric.contextMenu.formatDocument": "Dar formato al documento",
|
|
52
|
+
"metricComponent.editMetric.contextMenu.formatSelection": "Dar formato a la selección",
|
|
53
|
+
"metricComponent.editMetric.contextMenu.cut": "Cortar",
|
|
54
|
+
"metricComponent.editMetric.contextMenu.copy": "Copiar",
|
|
55
|
+
"metricComponent.editMetric.contextMenu.paste": "Pegar",
|
|
47
56
|
"metricComponent.editMetric.metric.definition": "Definición de la métrica",
|
|
48
57
|
"metricComponent.editMetric.metric.definition.tooltip": "Cree una instrucción de MAQL para consultar sus datos.",
|
|
49
58
|
"metricComponent.editMetric.metric.result.context": "Ver por",
|
|
@@ -44,6 +44,15 @@
|
|
|
44
44
|
"metricComponent.editMetric.protectedMetric": "Et voi muokata tai poistaa tätä mittaria, koska se luotiin päätyötilassa. Jos haluat muokata tai poistaa tietoja, tee se ylemmän tason työtilassa.",
|
|
45
45
|
"metricComponent.editMetric.hover.more": "Lisää",
|
|
46
46
|
"metricComponent.editMetric.hover.less": "Vähemmän",
|
|
47
|
+
"metricComponent.editMetric.hover.definition": "Kohteen {title} määritelmä",
|
|
48
|
+
"metricComponent.editMetric.suggestion.documentation": "Dokumentaatio",
|
|
49
|
+
"metricComponent.editMetric.suggestion.closeDocumentation": "Sulje",
|
|
50
|
+
"metricComponent.editMetric.contextMenu.changeAllOccurrences": "Muuta kaikkia esiintymiä",
|
|
51
|
+
"metricComponent.editMetric.contextMenu.formatDocument": "Muotoile asiakirja",
|
|
52
|
+
"metricComponent.editMetric.contextMenu.formatSelection": "Muotoile valinta",
|
|
53
|
+
"metricComponent.editMetric.contextMenu.cut": "Leikkaa",
|
|
54
|
+
"metricComponent.editMetric.contextMenu.copy": "Kopioi",
|
|
55
|
+
"metricComponent.editMetric.contextMenu.paste": "Liitä",
|
|
47
56
|
"metricComponent.editMetric.metric.definition": "Metrinen määritelmä",
|
|
48
57
|
"metricComponent.editMetric.metric.definition.tooltip": "Luo MAQL-lauseke tehdäksesi kyselyn tiedoillesi.",
|
|
49
58
|
"metricComponent.editMetric.metric.result.context": "Näytä",
|
|
@@ -44,6 +44,15 @@
|
|
|
44
44
|
"metricComponent.editMetric.protectedMetric": "Vous ne pouvez pas modifier ou supprimer cette métrique car elle a été créée dans l’espace de travail parent. Pour modifier ou supprimer cette métrique, faites-le dans l’espace de travail parent.",
|
|
45
45
|
"metricComponent.editMetric.hover.more": "Plus",
|
|
46
46
|
"metricComponent.editMetric.hover.less": "Moins",
|
|
47
|
+
"metricComponent.editMetric.hover.definition": "Définition de {title}",
|
|
48
|
+
"metricComponent.editMetric.suggestion.documentation": "Documentation",
|
|
49
|
+
"metricComponent.editMetric.suggestion.closeDocumentation": "Fermer",
|
|
50
|
+
"metricComponent.editMetric.contextMenu.changeAllOccurrences": "Modifier toutes les occurrences",
|
|
51
|
+
"metricComponent.editMetric.contextMenu.formatDocument": "Mettre en forme le document",
|
|
52
|
+
"metricComponent.editMetric.contextMenu.formatSelection": "Mettre en forme la sélection",
|
|
53
|
+
"metricComponent.editMetric.contextMenu.cut": "Couper",
|
|
54
|
+
"metricComponent.editMetric.contextMenu.copy": "Copier",
|
|
55
|
+
"metricComponent.editMetric.contextMenu.paste": "Coller",
|
|
47
56
|
"metricComponent.editMetric.metric.definition": "Définition de métrique",
|
|
48
57
|
"metricComponent.editMetric.metric.definition.tooltip": "Créez une instruction MAQL pour analyser vos données à l’aide d’une requête.",
|
|
49
58
|
"metricComponent.editMetric.metric.result.context": "Afficher par",
|
|
@@ -44,6 +44,15 @@
|
|
|
44
44
|
"metricComponent.editMetric.protectedMetric": "Vous ne pouvez pas modifier ou supprimer cette métrique car elle a été créée dans l’espace de travail parent. Pour modifier ou supprimer cette métrique, faites-le dans l’espace de travail parent.",
|
|
45
45
|
"metricComponent.editMetric.hover.more": "Plus",
|
|
46
46
|
"metricComponent.editMetric.hover.less": "Moins",
|
|
47
|
+
"metricComponent.editMetric.hover.definition": "Définition de {title}",
|
|
48
|
+
"metricComponent.editMetric.suggestion.documentation": "Documentation",
|
|
49
|
+
"metricComponent.editMetric.suggestion.closeDocumentation": "Fermer",
|
|
50
|
+
"metricComponent.editMetric.contextMenu.changeAllOccurrences": "Modifier toutes les occurrences",
|
|
51
|
+
"metricComponent.editMetric.contextMenu.formatDocument": "Mettre en forme le document",
|
|
52
|
+
"metricComponent.editMetric.contextMenu.formatSelection": "Mettre en forme la sélection",
|
|
53
|
+
"metricComponent.editMetric.contextMenu.cut": "Couper",
|
|
54
|
+
"metricComponent.editMetric.contextMenu.copy": "Copier",
|
|
55
|
+
"metricComponent.editMetric.contextMenu.paste": "Coller",
|
|
47
56
|
"metricComponent.editMetric.metric.definition": "Définition de métrique",
|
|
48
57
|
"metricComponent.editMetric.metric.definition.tooltip": "Créez une instruction MAQL pour analyser vos données à l’aide d’une requête.",
|
|
49
58
|
"metricComponent.editMetric.metric.result.context": "Afficher par",
|
|
@@ -44,6 +44,15 @@
|
|
|
44
44
|
"metricComponent.editMetric.protectedMetric": "Anda tidak dapat mengedit atau menghapus metrik ini karena metrik ini dibuat di ruang kerja induk. Untuk mengedit atau menghapus metrik, lakukan dari ruang kerja induk.",
|
|
45
45
|
"metricComponent.editMetric.hover.more": "Selengkapnya",
|
|
46
46
|
"metricComponent.editMetric.hover.less": "Lebih sedikit",
|
|
47
|
+
"metricComponent.editMetric.hover.definition": "Definisi {title}",
|
|
48
|
+
"metricComponent.editMetric.suggestion.documentation": "Dokumentasi",
|
|
49
|
+
"metricComponent.editMetric.suggestion.closeDocumentation": "Tutup",
|
|
50
|
+
"metricComponent.editMetric.contextMenu.changeAllOccurrences": "Ubah semua kemunculan",
|
|
51
|
+
"metricComponent.editMetric.contextMenu.formatDocument": "Format dokumen",
|
|
52
|
+
"metricComponent.editMetric.contextMenu.formatSelection": "Format pilihan",
|
|
53
|
+
"metricComponent.editMetric.contextMenu.cut": "Potong",
|
|
54
|
+
"metricComponent.editMetric.contextMenu.copy": "Salin",
|
|
55
|
+
"metricComponent.editMetric.contextMenu.paste": "Tempel",
|
|
47
56
|
"metricComponent.editMetric.metric.definition": "Definisi metrik",
|
|
48
57
|
"metricComponent.editMetric.metric.definition.tooltip": "Buat pernyataan MAQL untuk mengkueri data Anda.",
|
|
49
58
|
"metricComponent.editMetric.metric.result.context": "Lihat berdasarkan",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"metricComponent.editMetric.placeholder.readOnly": "Questa espressione MAQL è vuota",
|
|
25
25
|
"metricComponent.editMetric.helpText": "Come creare le metriche?",
|
|
26
26
|
"metricComponent.editMetric.cancel": "Annulla",
|
|
27
|
-
"metricComponent.editMetric.close": "
|
|
27
|
+
"metricComponent.editMetric.close": "Chiudi",
|
|
28
28
|
"metricComponent.editMetric.delete": "Elimina",
|
|
29
29
|
"metricComponent.editMetric.save": "Salva",
|
|
30
30
|
"metricComponent.editMetric.share": "Condividi",
|
|
@@ -44,6 +44,15 @@
|
|
|
44
44
|
"metricComponent.editMetric.protectedMetric": "Non è possibile modificare o eliminare questa metrica perché è stata creata nell'area di lavoro padre. Per modificare o eliminare la metrica, occorre farlo dall'area di lavoro padre.",
|
|
45
45
|
"metricComponent.editMetric.hover.more": "Altro",
|
|
46
46
|
"metricComponent.editMetric.hover.less": "Meno",
|
|
47
|
+
"metricComponent.editMetric.hover.definition": "Definizione di {title}",
|
|
48
|
+
"metricComponent.editMetric.suggestion.documentation": "Documentazione",
|
|
49
|
+
"metricComponent.editMetric.suggestion.closeDocumentation": "Chiudi",
|
|
50
|
+
"metricComponent.editMetric.contextMenu.changeAllOccurrences": "Modifica tutte le occorrenze",
|
|
51
|
+
"metricComponent.editMetric.contextMenu.formatDocument": "Formatta documento",
|
|
52
|
+
"metricComponent.editMetric.contextMenu.formatSelection": "Formatta selezione",
|
|
53
|
+
"metricComponent.editMetric.contextMenu.cut": "Taglia",
|
|
54
|
+
"metricComponent.editMetric.contextMenu.copy": "Copia",
|
|
55
|
+
"metricComponent.editMetric.contextMenu.paste": "Incolla",
|
|
47
56
|
"metricComponent.editMetric.metric.definition": "Definizione di metrica",
|
|
48
57
|
"metricComponent.editMetric.metric.definition.tooltip": "Creare un'istruzione MAQL per interrogare i dati.",
|
|
49
58
|
"metricComponent.editMetric.metric.result.context": "Visualizza per",
|
|
@@ -64,7 +73,7 @@
|
|
|
64
73
|
"metricComponent.editMetric.metric.context.apply": "Applica",
|
|
65
74
|
"metricComponent.editMetric.metric.sql": "SQL",
|
|
66
75
|
"metricComponent.editMetric.metric.sql.tooltip": "La definizione della metrica viene trasformata in SQL prima dell'esecuzione.",
|
|
67
|
-
"metricComponent.editMetric.metric.sql.close": "
|
|
76
|
+
"metricComponent.editMetric.metric.sql.close": "Chiudi",
|
|
68
77
|
"metricComponent.editMetric.metric.sql.copy_to_clipboard": "Copia negli appunti",
|
|
69
78
|
"metricComponent.editMetric.metric.sql.copy_to_clipboard.ok": "L'SQL è stato copiato correttamente negli appunti del sistema.",
|
|
70
79
|
"metricComponent.editMetric.metric.sql.copy_to_clipboard.error": "L'SQL non è stato copiato negli appunti di sistema. Copiarlo manualmente.",
|
|
@@ -119,7 +128,7 @@
|
|
|
119
128
|
"metricComponent.minimize.metrics": "{edited, plural, one {# metrica} other {# metriche}}",
|
|
120
129
|
"metricComponent.tags.manager.label.more": "Altri tag",
|
|
121
130
|
"metricComponent.tags.manager.label.noTags": "Nessun tag",
|
|
122
|
-
"metricComponent.tags.manager.label.close": "
|
|
131
|
+
"metricComponent.tags.manager.label.close": "Chiudi",
|
|
123
132
|
"metricComponent.tags.manager.label.addLabel": "Aggiungi",
|
|
124
133
|
"metricComponent.tags.manager.label.nameLabel": "Nome",
|
|
125
134
|
"metricComponent.tags.manager.label.cancelLabel": "Annulla",
|
|
@@ -44,6 +44,15 @@
|
|
|
44
44
|
"metricComponent.editMetric.protectedMetric": "このメトリックは親ワークスペースで作成されているため、編集または削除することはできません。メトリックを編集または削除するには、親ワークスペースから行ってください。",
|
|
45
45
|
"metricComponent.editMetric.hover.more": "さらに表示",
|
|
46
46
|
"metricComponent.editMetric.hover.less": "省略して表示",
|
|
47
|
+
"metricComponent.editMetric.hover.definition": "{title}の定義",
|
|
48
|
+
"metricComponent.editMetric.suggestion.documentation": "ドキュメント",
|
|
49
|
+
"metricComponent.editMetric.suggestion.closeDocumentation": "閉じる",
|
|
50
|
+
"metricComponent.editMetric.contextMenu.changeAllOccurrences": "すべての出現箇所を変更",
|
|
51
|
+
"metricComponent.editMetric.contextMenu.formatDocument": "ドキュメントのフォーマット",
|
|
52
|
+
"metricComponent.editMetric.contextMenu.formatSelection": "選択範囲のフォーマット",
|
|
53
|
+
"metricComponent.editMetric.contextMenu.cut": "切り取り",
|
|
54
|
+
"metricComponent.editMetric.contextMenu.copy": "コピー",
|
|
55
|
+
"metricComponent.editMetric.contextMenu.paste": "ペースト",
|
|
47
56
|
"metricComponent.editMetric.metric.definition": "メトリックの定義",
|
|
48
57
|
"metricComponent.editMetric.metric.definition.tooltip": "データを照会するための MAQL ステートメントを作成します。",
|
|
49
58
|
"metricComponent.editMetric.metric.result.context": "表示",
|
|
@@ -44,6 +44,15 @@
|
|
|
44
44
|
"metricComponent.editMetric.protectedMetric": "이 메트릭은 상위 작업 공간에서 생성되었기 때문에 편집하거나 삭제할 수 없습니다. 메트릭을 편집하거나 삭제하려면 상위 작업 공간에서 수행하세요.",
|
|
45
45
|
"metricComponent.editMetric.hover.more": "더 보기",
|
|
46
46
|
"metricComponent.editMetric.hover.less": "적음",
|
|
47
|
+
"metricComponent.editMetric.hover.definition": "{title}의 정의",
|
|
48
|
+
"metricComponent.editMetric.suggestion.documentation": "문서",
|
|
49
|
+
"metricComponent.editMetric.suggestion.closeDocumentation": "닫기",
|
|
50
|
+
"metricComponent.editMetric.contextMenu.changeAllOccurrences": "모든 일치 항목 변경",
|
|
51
|
+
"metricComponent.editMetric.contextMenu.formatDocument": "문서 서식 지정",
|
|
52
|
+
"metricComponent.editMetric.contextMenu.formatSelection": "선택 영역 서식 지정",
|
|
53
|
+
"metricComponent.editMetric.contextMenu.cut": "잘라내기",
|
|
54
|
+
"metricComponent.editMetric.contextMenu.copy": "복사",
|
|
55
|
+
"metricComponent.editMetric.contextMenu.paste": "붙여넣기",
|
|
47
56
|
"metricComponent.editMetric.metric.definition": "메트릭 정의",
|
|
48
57
|
"metricComponent.editMetric.metric.definition.tooltip": "데이터를 쿼리하기 위한 MAQL 문을 작성하세요.",
|
|
49
58
|
"metricComponent.editMetric.metric.result.context": "보기 기준",
|
|
@@ -44,6 +44,15 @@
|
|
|
44
44
|
"metricComponent.editMetric.protectedMetric": "U kunt dit meetgegevens niet bewerken of verwijderen omdat het is gemaakt in de bovenliggende werkruimte. U kunt het meetgegevens alleen bewerken of verwijderen vanuit de bovenliggende werkruimte.",
|
|
45
45
|
"metricComponent.editMetric.hover.more": "Meer",
|
|
46
46
|
"metricComponent.editMetric.hover.less": "Minder",
|
|
47
|
+
"metricComponent.editMetric.hover.definition": "Definitie van {title}",
|
|
48
|
+
"metricComponent.editMetric.suggestion.documentation": "Documentatie",
|
|
49
|
+
"metricComponent.editMetric.suggestion.closeDocumentation": "Sluiten",
|
|
50
|
+
"metricComponent.editMetric.contextMenu.changeAllOccurrences": "Alle voorkomens wijzigen",
|
|
51
|
+
"metricComponent.editMetric.contextMenu.formatDocument": "Document opmaken",
|
|
52
|
+
"metricComponent.editMetric.contextMenu.formatSelection": "Selectie opmaken",
|
|
53
|
+
"metricComponent.editMetric.contextMenu.cut": "Knippen",
|
|
54
|
+
"metricComponent.editMetric.contextMenu.copy": "Kopiëren",
|
|
55
|
+
"metricComponent.editMetric.contextMenu.paste": "Plakken",
|
|
47
56
|
"metricComponent.editMetric.metric.definition": "Metrische definitie",
|
|
48
57
|
"metricComponent.editMetric.metric.definition.tooltip": "Maak een MAQL-statement om een query voor uw gegevens te maken.",
|
|
49
58
|
"metricComponent.editMetric.metric.result.context": "Bekijken met",
|
|
@@ -44,6 +44,15 @@
|
|
|
44
44
|
"metricComponent.editMetric.protectedMetric": "Nie można edytować ani usunąć tej metryki, ponieważ została utworzona w nadrzędnej przestrzeni roboczej. Aby edytować lub usunąć metrykę, należy to zrobić w nadrzędnej przestrzeni roboczej.",
|
|
45
45
|
"metricComponent.editMetric.hover.more": "Więcej",
|
|
46
46
|
"metricComponent.editMetric.hover.less": "Mniej",
|
|
47
|
+
"metricComponent.editMetric.hover.definition": "Definicja: {title}",
|
|
48
|
+
"metricComponent.editMetric.suggestion.documentation": "Dokumentacja",
|
|
49
|
+
"metricComponent.editMetric.suggestion.closeDocumentation": "Zamknij",
|
|
50
|
+
"metricComponent.editMetric.contextMenu.changeAllOccurrences": "Zmień wszystkie wystąpienia",
|
|
51
|
+
"metricComponent.editMetric.contextMenu.formatDocument": "Sformatuj dokument",
|
|
52
|
+
"metricComponent.editMetric.contextMenu.formatSelection": "Sformatuj zaznaczenie",
|
|
53
|
+
"metricComponent.editMetric.contextMenu.cut": "Wytnij",
|
|
54
|
+
"metricComponent.editMetric.contextMenu.copy": "Kopiuj",
|
|
55
|
+
"metricComponent.editMetric.contextMenu.paste": "Wklej",
|
|
47
56
|
"metricComponent.editMetric.metric.definition": "Definicja metryki",
|
|
48
57
|
"metricComponent.editMetric.metric.definition.tooltip": "Utwórz instrukcję MAQL, aby zapytać swoje dane.",
|
|
49
58
|
"metricComponent.editMetric.metric.result.context": "Widok wg",
|