@gooddata/sdk-ui 9.1.0-alpha.40 → 9.1.0-alpha.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/base/results/dataAccessConfig.d.ts +4 -5
- package/esm/base/results/dataAccessConfig.d.ts.map +1 -1
- package/esm/base/results/dataAccessConfig.js +6 -8
- package/esm/base/results/dataAccessConfig.js.map +1 -1
- package/esm/kpi/FormattedNumber.d.ts +2 -2
- package/esm/kpi/FormattedNumber.d.ts.map +1 -1
- package/esm/kpi/FormattedNumber.js +5 -5
- package/esm/kpi/FormattedNumber.js.map +1 -1
- package/esm/kpi/Kpi.d.ts +2 -3
- package/esm/kpi/Kpi.d.ts.map +1 -1
- package/esm/kpi/Kpi.js.map +1 -1
- package/esm/sdk-ui.d.ts +4 -5
- package/package.json +10 -10
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DataValue } from "@gooddata/sdk-model";
|
|
2
|
-
import NumberJs from "@gooddata/numberjs";
|
|
1
|
+
import { DataValue, ISeparators } from "@gooddata/sdk-model";
|
|
3
2
|
/**
|
|
4
3
|
* @public
|
|
5
4
|
*/
|
|
@@ -9,7 +8,7 @@ export type ValueFormatter = (value: DataValue, format: string) => string;
|
|
|
9
8
|
*/
|
|
10
9
|
export type HeaderTranslator = (value: string | null) => string;
|
|
11
10
|
/**
|
|
12
|
-
* Creates value formatter that uses `@gooddata/
|
|
11
|
+
* Creates value formatter that uses `@gooddata/number-formatter` to format raw measure values according
|
|
13
12
|
* to the format string.
|
|
14
13
|
*
|
|
15
14
|
* @remarks
|
|
@@ -19,9 +18,9 @@ export type HeaderTranslator = (value: string | null) => string;
|
|
|
19
18
|
* @param separators - number separators to use. if not specified then `numberjs` defaults will be used
|
|
20
19
|
* @public
|
|
21
20
|
*/
|
|
22
|
-
export declare function createNumberJsFormatter(separators?:
|
|
21
|
+
export declare function createNumberJsFormatter(separators?: ISeparators): ValueFormatter;
|
|
23
22
|
/**
|
|
24
|
-
* Default configuration for the data access methods. Uses default `@gooddata/
|
|
23
|
+
* Default configuration for the data access methods. Uses default `@gooddata/number-formatter` formatter and no result formatting.
|
|
25
24
|
*
|
|
26
25
|
* @public
|
|
27
26
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataAccessConfig.d.ts","sourceRoot":"","sources":["../../../src/base/results/dataAccessConfig.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"dataAccessConfig.d.ts","sourceRoot":"","sources":["../../../src/base/results/dataAccessConfig.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAO7D;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;AAE1E;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,MAAM,CAAC;AAEhE;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,UAAU,CAAC,EAAE,WAAW,GAAG,cAAc,CAMhF;AAED;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,gBAErC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC3B;;OAEG;IACH,cAAc,EAAE,cAAc,CAAC;IAE/B;;OAEG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACvC,CAAC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import isEmpty from "lodash/isEmpty.js";
|
|
1
|
+
import { ClientFormatterFacade } from "@gooddata/number-formatter";
|
|
3
2
|
import escape from "lodash/escape.js";
|
|
4
3
|
import unescape from "lodash/unescape.js";
|
|
5
4
|
const customEscape = (str) => str && escape(unescape(str));
|
|
6
5
|
/**
|
|
7
|
-
* Creates value formatter that uses `@gooddata/
|
|
6
|
+
* Creates value formatter that uses `@gooddata/number-formatter` to format raw measure values according
|
|
8
7
|
* to the format string.
|
|
9
8
|
*
|
|
10
9
|
* @remarks
|
|
@@ -16,14 +15,13 @@ const customEscape = (str) => str && escape(unescape(str));
|
|
|
16
15
|
*/
|
|
17
16
|
export function createNumberJsFormatter(separators) {
|
|
18
17
|
return (value, format) => {
|
|
19
|
-
const valueToFormat =
|
|
20
|
-
const formattedValue =
|
|
21
|
-
|
|
22
|
-
return customEscape(formattedObject.label);
|
|
18
|
+
const valueToFormat = ClientFormatterFacade.convertValue(value);
|
|
19
|
+
const { formattedValue } = ClientFormatterFacade.formatValue(valueToFormat, format, separators);
|
|
20
|
+
return customEscape(formattedValue);
|
|
23
21
|
};
|
|
24
22
|
}
|
|
25
23
|
/**
|
|
26
|
-
* Default configuration for the data access methods. Uses default `@gooddata/
|
|
24
|
+
* Default configuration for the data access methods. Uses default `@gooddata/number-formatter` formatter and no result formatting.
|
|
27
25
|
*
|
|
28
26
|
* @public
|
|
29
27
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataAccessConfig.js","sourceRoot":"","sources":["../../../src/base/results/dataAccessConfig.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"dataAccessConfig.js","sourceRoot":"","sources":["../../../src/base/results/dataAccessConfig.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,MAAM,MAAM,kBAAkB,CAAC;AACtC,OAAO,QAAQ,MAAM,oBAAoB,CAAC;AAE1C,MAAM,YAAY,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,IAAI,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;AAYnE;;;;;;;;;;GAUG;AACH,MAAM,UAAU,uBAAuB,CAAC,UAAwB;IAC5D,OAAO,CAAC,KAAgB,EAAE,MAAc,EAAE,EAAE;QACxC,MAAM,aAAa,GAAG,qBAAqB,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;QAChE,MAAM,EAAE,cAAc,EAAE,GAAG,qBAAqB,CAAC,WAAW,CAAC,aAAa,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;QAChG,OAAO,YAAY,CAAC,cAAc,CAAC,CAAC;IACxC,CAAC,CAAC;AACN,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAqB;IACrD,cAAc,EAAE,uBAAuB,EAAE;CAC5C,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { ISeparators } from "@gooddata/sdk-model";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
@@ -7,7 +7,7 @@ export interface IFormattedNumberProps {
|
|
|
7
7
|
className?: string;
|
|
8
8
|
value: number | string;
|
|
9
9
|
format?: string;
|
|
10
|
-
separators?:
|
|
10
|
+
separators?: ISeparators;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormattedNumber.d.ts","sourceRoot":"","sources":["../../src/kpi/FormattedNumber.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"FormattedNumber.d.ts","sourceRoot":"","sources":["../../src/kpi/FormattedNumber.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGlD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,WAAW,CAAC;CAC5B;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAqB3D,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// (C) 2019 GoodData Corporation
|
|
2
2
|
import React from "react";
|
|
3
|
-
import
|
|
4
|
-
const DEFAULT_FORMAT = "#,#.##";
|
|
3
|
+
import { ClientFormatterFacade } from "@gooddata/number-formatter";
|
|
5
4
|
/**
|
|
6
5
|
* @internal
|
|
7
6
|
*/
|
|
8
|
-
export const FormattedNumber = ({ className, value, format
|
|
9
|
-
const
|
|
10
|
-
const { label,
|
|
7
|
+
export const FormattedNumber = ({ className, value, format, separators, }) => {
|
|
8
|
+
const valueToFormat = ClientFormatterFacade.convertValue(value);
|
|
9
|
+
const { formattedValue: label, colors } = ClientFormatterFacade.formatValue(valueToFormat, format, separators);
|
|
10
|
+
const { color, backgroundColor } = colors;
|
|
11
11
|
return (React.createElement("span", { className: className, style: { color, backgroundColor } }, label));
|
|
12
12
|
};
|
|
13
13
|
//# sourceMappingURL=FormattedNumber.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormattedNumber.js","sourceRoot":"","sources":["../../src/kpi/FormattedNumber.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FormattedNumber.js","sourceRoot":"","sources":["../../src/kpi/FormattedNumber.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAYnE;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAoC,CAAC,EAC7D,SAAS,EACT,KAAK,EACL,MAAM,EACN,UAAU,GACb,EAAE,EAAE;IACD,MAAM,aAAa,GAAG,qBAAqB,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAEhE,MAAM,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,qBAAqB,CAAC,WAAW,CACvE,aAAa,EACb,MAAM,EACN,UAAU,CACb,CAAC;IAEF,MAAM,EAAE,KAAK,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAE1C,OAAO,CACH,8BAAM,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE,IACxD,KAAK,CACH,CACV,CAAC;AACN,CAAC,CAAC"}
|
package/esm/kpi/Kpi.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { IAnalyticalBackend } from "@gooddata/sdk-backend-spi";
|
|
3
|
-
import { IMeasure, INullableFilter } from "@gooddata/sdk-model";
|
|
4
|
-
import NumberJs from "@gooddata/numberjs";
|
|
3
|
+
import { IMeasure, INullableFilter, ISeparators } from "@gooddata/sdk-model";
|
|
5
4
|
import { IRawExecuteProps, IWithLoadingEvents } from "../execution/index.js";
|
|
6
5
|
import { IErrorProps, ILoadingProps } from "../base/index.js";
|
|
7
6
|
/**
|
|
@@ -34,7 +33,7 @@ export interface IKpiProps extends IWithLoadingEvents<IRawExecuteProps> {
|
|
|
34
33
|
/**
|
|
35
34
|
* Specify number separators to use when rendering (segment delimiters, decimal point character)
|
|
36
35
|
*/
|
|
37
|
-
separators?:
|
|
36
|
+
separators?: ISeparators;
|
|
38
37
|
/**
|
|
39
38
|
* Specify locale to use for strings that the Kpi component may render (for instance when encountering
|
|
40
39
|
* errors).
|
package/esm/kpi/Kpi.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Kpi.d.ts","sourceRoot":"","sources":["../../src/kpi/Kpi.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"Kpi.d.ts","sourceRoot":"","sources":["../../src/kpi/Kpi.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAc,MAAM,uBAAuB,CAAC;AAMzF,OAAO,EAEH,WAAW,EACX,aAAa,EAIhB,MAAM,kBAAkB,CAAC;AAyG1B;;;GAGG;AACH,MAAM,WAAW,SAAU,SAAQ,kBAAkB,CAAC,gBAAgB,CAAC;IACnE;;;;;OAKG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,EAAE,QAAQ,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;IAE5B;;OAEG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC;IAEzB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;IAEtD;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;CACrD;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,GAAG,gCAA0B,CAAC"}
|
package/esm/kpi/Kpi.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Kpi.js","sourceRoot":"","sources":["../../src/kpi/Kpi.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Kpi.js","sour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gB,GAAG,CAAC,MAAsB,EAAE,EAAE;;IAChD,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC,kBAAkB,EAAE,CAAC;IACvD,OAAO,MAAA,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAG,CAAC,CAAC,0CAAE,iBAAiB,0CAAE,MAAM,CAAC;AACvD,CAAC,CAAC;AAEF,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;AAEpC,MAAM,SAAS,GAAwB,CAAC,KAAK,EAAE,EAAE;IAC7C,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACzB,OAAO,CACH,oBAAC,WAAW,IAAC,MAAM,EAAE,MAAM;QACvB,oBAAC,OAAO,oBAAK,KAAK,EAAI,CACZ,CACjB,CAAC;AACN,CAAC,CAAC;AA2DF;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,YAAY,CAAC,SAAS,CAAC,CAAC"}
|
package/esm/sdk-ui.d.ts
CHANGED
|
@@ -65,7 +65,6 @@ import { ITotal } from '@gooddata/sdk-model';
|
|
|
65
65
|
import { ITotalDescriptor } from '@gooddata/sdk-model';
|
|
66
66
|
import { IWorkspaceSettings } from '@gooddata/sdk-backend-spi';
|
|
67
67
|
import { MessageDescriptor } from 'react-intl';
|
|
68
|
-
import NumberJs from '@gooddata/numberjs';
|
|
69
68
|
import { ObjRef } from '@gooddata/sdk-model';
|
|
70
69
|
import { default as React_2 } from 'react';
|
|
71
70
|
import { ValueOrUpdateCallback } from '@gooddata/sdk-backend-base';
|
|
@@ -374,7 +373,7 @@ export declare function createExportFunction(result: IExecutionResult, exportTit
|
|
|
374
373
|
export declare function createIntlMock(customMessages?: {}, locale?: string): IntlShape;
|
|
375
374
|
|
|
376
375
|
/**
|
|
377
|
-
* Creates value formatter that uses `@gooddata/
|
|
376
|
+
* Creates value formatter that uses `@gooddata/number-formatter` to format raw measure values according
|
|
378
377
|
* to the format string.
|
|
379
378
|
*
|
|
380
379
|
* @remarks
|
|
@@ -384,7 +383,7 @@ export declare function createIntlMock(customMessages?: {}, locale?: string): In
|
|
|
384
383
|
* @param separators - number separators to use. if not specified then `numberjs` defaults will be used
|
|
385
384
|
* @public
|
|
386
385
|
*/
|
|
387
|
-
export declare function createNumberJsFormatter(separators?:
|
|
386
|
+
export declare function createNumberJsFormatter(separators?: ISeparators): ValueFormatter;
|
|
388
387
|
|
|
389
388
|
/**
|
|
390
389
|
* @public
|
|
@@ -779,7 +778,7 @@ export declare type DataViewWindow = {
|
|
|
779
778
|
export declare const DefaultColorPalette: IColorPalette;
|
|
780
779
|
|
|
781
780
|
/**
|
|
782
|
-
* Default configuration for the data access methods. Uses default `@gooddata/
|
|
781
|
+
* Default configuration for the data access methods. Uses default `@gooddata/number-formatter` formatter and no result formatting.
|
|
783
782
|
*
|
|
784
783
|
* @public
|
|
785
784
|
*/
|
|
@@ -2264,7 +2263,7 @@ export declare interface IKpiProps extends IWithLoadingEvents<IRawExecuteProps>
|
|
|
2264
2263
|
/**
|
|
2265
2264
|
* Specify number separators to use when rendering (segment delimiters, decimal point character)
|
|
2266
2265
|
*/
|
|
2267
|
-
separators?:
|
|
2266
|
+
separators?: ISeparators;
|
|
2268
2267
|
/**
|
|
2269
2268
|
* Specify locale to use for strings that the Kpi component may render (for instance when encountering
|
|
2270
2269
|
* errors).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui",
|
|
3
|
-
"version": "9.1.0-alpha.
|
|
3
|
+
"version": "9.1.0-alpha.41",
|
|
4
4
|
"description": "GoodData.UI SDK - Core",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
"styles"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@gooddata/
|
|
29
|
+
"@gooddata/number-formatter": "^1.0.0",
|
|
30
|
+
"default-import": "^1.1.5",
|
|
30
31
|
"hoist-non-react-statics": "^3.3.0",
|
|
31
32
|
"http-status-codes": "^2.1.4",
|
|
32
33
|
"json-stable-stringify": "^1.0.1",
|
|
@@ -36,10 +37,9 @@
|
|
|
36
37
|
"ts-invariant": "^0.7.3",
|
|
37
38
|
"tslib": "^2.5.0",
|
|
38
39
|
"uuid": "^8.3.2",
|
|
39
|
-
"
|
|
40
|
-
"@gooddata/
|
|
41
|
-
"@gooddata/
|
|
42
|
-
"@gooddata/sdk-model": "9.1.0-alpha.40"
|
|
40
|
+
"@gooddata/sdk-model": "9.1.0-alpha.41",
|
|
41
|
+
"@gooddata/util": "9.1.0-alpha.41",
|
|
42
|
+
"@gooddata/sdk-backend-spi": "9.1.0-alpha.41"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": "^16.10.0 || ^17.0.0 || ^18.0.0",
|
|
@@ -90,10 +90,10 @@
|
|
|
90
90
|
"typescript": "5.0.2",
|
|
91
91
|
"vitest": "0.31.4",
|
|
92
92
|
"vitest-dom": "0.1.0",
|
|
93
|
-
"@gooddata/i18n-toolkit": "9.1.0-alpha.
|
|
94
|
-
"@gooddata/reference-workspace": "9.1.0-alpha.
|
|
95
|
-
"@gooddata/sdk-backend-base": "9.1.0-alpha.
|
|
96
|
-
"@gooddata/sdk-backend-mockingbird": "9.1.0-alpha.
|
|
93
|
+
"@gooddata/i18n-toolkit": "9.1.0-alpha.41",
|
|
94
|
+
"@gooddata/reference-workspace": "9.1.0-alpha.41",
|
|
95
|
+
"@gooddata/sdk-backend-base": "9.1.0-alpha.41",
|
|
96
|
+
"@gooddata/sdk-backend-mockingbird": "9.1.0-alpha.41"
|
|
97
97
|
},
|
|
98
98
|
"scripts": {
|
|
99
99
|
"clean": "rm -rf ci dist esm coverage *.log",
|