@genesislcap/g2plot-chart 14.478.1-alpha-abf67b6.0 → 14.478.1-alpha-14e77dd.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.
@@ -1966,27 +1966,6 @@
1966
1966
  }
1967
1967
  ]
1968
1968
  },
1969
- {
1970
- "kind": "function",
1971
- "name": "getNormalizedFieldValue",
1972
- "parameters": [
1973
- {
1974
- "name": "fieldValue",
1975
- "type": {
1976
- "text": "any"
1977
- }
1978
- },
1979
- {
1980
- "name": "fieldType",
1981
- "optional": true,
1982
- "type": {
1983
- "text": "FieldTypeEnum"
1984
- }
1985
- }
1986
- ],
1987
- "description": "Normalizes a server field value before it's handed to the chart.\n\nBIGDECIMAL fields are serialized by the server as strings to preserve\nprecision, while INT/LONG/DOUBLE arrive as JSON numbers. G2Plot needs real\nnumbers for its scales, and getReduced sums values with `+=`, which\nwould concatenate strings. Any NUMBER-typed field whose value arrives as a\nnumeric string is therefore converted with `Number()`.\n\nValues that don't parse to a finite number (and fields of any other type)\nare returned untouched.",
1988
- "privacy": "public"
1989
- },
1990
1969
  {
1991
1970
  "kind": "function",
1992
1971
  "name": "getFormattedDateGroupBy",
@@ -2058,14 +2037,6 @@
2058
2037
  "module": "src/chart-datasource/chart-datasource.utils.ts"
2059
2038
  }
2060
2039
  },
2061
- {
2062
- "kind": "js",
2063
- "name": "getNormalizedFieldValue",
2064
- "declaration": {
2065
- "name": "getNormalizedFieldValue",
2066
- "module": "src/chart-datasource/chart-datasource.utils.ts"
2067
- }
2068
- },
2069
2040
  {
2070
2041
  "kind": "js",
2071
2042
  "name": "getFormattedDateGroupBy",
@@ -1 +1 @@
1
- {"version":3,"file":"chart-datasource.d.ts","sourceRoot":"","sources":["../../../src/chart-datasource/chart-datasource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAElF,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,4BA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I,OAAO,CAEjC;IAED,OAAO,CAAC,uBAAuB;CAOhC"}
@@ -1,19 +1,5 @@
1
1
  import { FieldTypeEnum } from '@genesislcap/foundation-comms';
2
2
  export declare const extractFields: (fields: any) => string[];
3
- /**
4
- * Normalizes a server field value before it's handed to the chart.
5
- *
6
- * BIGDECIMAL fields are serialized by the server as strings to preserve
7
- * precision, while INT/LONG/DOUBLE arrive as JSON numbers. G2Plot needs real
8
- * numbers for its scales, and {@link getReduced} sums values with `+=`, which
9
- * would concatenate strings. Any NUMBER-typed field whose value arrives as a
10
- * numeric string is therefore converted with `Number()`.
11
- *
12
- * Values that don't parse to a finite number (and fields of any other type)
13
- * are returned untouched.
14
- * @public
15
- */
16
- export declare const getNormalizedFieldValue: (fieldValue: any, fieldType?: FieldTypeEnum) => any;
17
3
  export declare const getFormattedDateGroupBy: (groupByFieldValue: any, fieldType: FieldTypeEnum, showTime?: boolean) => any;
18
4
  export declare const getReduced: (allRows: any[], groupByField: string, valueField: string, seriesField?: string) => any[];
19
5
  //# sourceMappingURL=chart-datasource.utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"chart-datasource.utils.d.ts","sourceRoot":"","sources":["../../../src/chart-datasource/chart-datasource.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAG9D,eAAO,MAAM,aAAa,GAAI,WAAM,KAA4C,MAAM,EAAE,CAAC;AAEzF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB,GAAI,YAAY,GAAG,EAAE,YAAY,aAAa,QAOjF,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAClC,mBAAmB,GAAG,EACtB,WAAW,aAAa,EACxB,WAAW,OAAO,QAOnB,CAAC;AAEF,eAAO,MAAM,UAAU,GACrB,SAAS,GAAG,EAAE,EACd,cAAc,MAAM,EACpB,YAAY,MAAM,EAClB,cAAc,MAAM,KACnB,GAAG,EAaL,CAAC"}
1
+ {"version":3,"file":"chart-datasource.utils.d.ts","sourceRoot":"","sources":["../../../src/chart-datasource/chart-datasource.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAG9D,eAAO,MAAM,aAAa,GAAI,WAAM,KAA4C,MAAM,EAAE,CAAC;AAEzF,eAAO,MAAM,uBAAuB,GAClC,mBAAmB,GAAG,EACtB,WAAW,aAAa,EACxB,WAAW,OAAO,QAOnB,CAAC;AAEF,eAAO,MAAM,UAAU,GACrB,SAAS,GAAG,EAAE,EACd,cAAc,MAAM,EACpB,YAAY,MAAM,EAClB,cAAc,MAAM,KACnB,GAAG,EAaL,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"column-chart.d.ts","sourceRoot":"","sources":["../../../src/models/column-chart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAGrD,eAAO,MAAM,WAAW,GAAI,WAAW,WAAW,EAAE,QAAQ,aAAa,WAWxE,CAAC"}
1
+ {"version":3,"file":"column-chart.d.ts","sourceRoot":"","sources":["../../../src/models/column-chart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAGrD,eAAO,MAAM,WAAW,GAAI,WAAW,WAAW,EAAE,QAAQ,aAAa,WAMxE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"line-chart.d.ts","sourceRoot":"","sources":["../../../src/models/line-chart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGjD,eAAO,MAAM,SAAS,GAAI,WAAW,WAAW,EAAE,QAAQ,WAAW,SA2BpE,CAAC"}
1
+ {"version":3,"file":"line-chart.d.ts","sourceRoot":"","sources":["../../../src/models/line-chart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGjD,eAAO,MAAM,SAAS,GAAI,WAAW,WAAW,EAAE,QAAQ,WAAW,SAuBpE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"mix-chart.d.ts","sourceRoot":"","sources":["../../../src/models/mix-chart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI/C,eAAO,MAAM,QAAQ,GAAI,WAAW,WAAW,EAAE,QAAQ,UAAU,QA4BlE,CAAC"}
1
+ {"version":3,"file":"mix-chart.d.ts","sourceRoot":"","sources":["../../../src/models/mix-chart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI/C,eAAO,MAAM,QAAQ,GAAI,WAAW,WAAW,EAAE,QAAQ,UAAU,QA0BlE,CAAC"}
@@ -5,7 +5,7 @@ import { BaseDatasource } from '@genesislcap/foundation-ui';
5
5
  import { LifecycleMixin } from '@genesislcap/foundation-utils';
6
6
  import { attr, customElement, observable } from '@microsoft/fast-element';
7
7
  import { chartDatasourceEventNames } from './chart-datasource.config';
8
- import { extractFields, getFormattedDateGroupBy, getNormalizedFieldValue, getReduced, } from './chart-datasource.utils';
8
+ import { extractFields, getFormattedDateGroupBy, getReduced } from './chart-datasource.utils';
9
9
  const logger = createLogger('chart-datasource');
10
10
  /**
11
11
  * The first and second default chart fields when it's a dual axes chart.
@@ -46,11 +46,10 @@ class ConcreteDatasource extends BaseDatasource {
46
46
  rowData.forEach((row) => {
47
47
  const chartRow = {};
48
48
  this.extractedServerFields.forEach((fieldName, index) => {
49
- var _a, _b;
50
49
  if (this.withTimestampFormatting && fieldName === this.groupByServerFieldName) {
51
50
  row[fieldName] = getFormattedDateGroupBy(row[fieldName], this.validServerFieldsMetadata.get(fieldName).type, this.showFormattedTime);
52
51
  }
53
- chartRow[this.extractedChartsFields[index]] = getNormalizedFieldValue(row[fieldName], (_b = (_a = this.validServerFieldsMetadata) === null || _a === void 0 ? void 0 : _a.get(fieldName)) === null || _b === void 0 ? void 0 : _b.type);
52
+ chartRow[this.extractedChartsFields[index]] = row[fieldName];
54
53
  });
55
54
  chartData.push(chartRow);
56
55
  });
@@ -1,26 +1,6 @@
1
1
  import { FieldTypeEnum } from '@genesislcap/foundation-comms';
2
2
  import { formatTimestamp } from '@genesislcap/foundation-utils';
3
3
  export const extractFields = (fields) => fields === null || fields === void 0 ? void 0 : fields.split(' ').filter((n) => n);
4
- /**
5
- * Normalizes a server field value before it's handed to the chart.
6
- *
7
- * BIGDECIMAL fields are serialized by the server as strings to preserve
8
- * precision, while INT/LONG/DOUBLE arrive as JSON numbers. G2Plot needs real
9
- * numbers for its scales, and {@link getReduced} sums values with `+=`, which
10
- * would concatenate strings. Any NUMBER-typed field whose value arrives as a
11
- * numeric string is therefore converted with `Number()`.
12
- *
13
- * Values that don't parse to a finite number (and fields of any other type)
14
- * are returned untouched.
15
- * @public
16
- */
17
- export const getNormalizedFieldValue = (fieldValue, fieldType) => {
18
- if (fieldType !== FieldTypeEnum.NUMBER || typeof fieldValue !== 'string') {
19
- return fieldValue;
20
- }
21
- const parsed = Number(fieldValue);
22
- return fieldValue.trim() !== '' && Number.isFinite(parsed) ? parsed : fieldValue;
23
- };
24
4
  export const getFormattedDateGroupBy = (groupByFieldValue, fieldType, showTime) => {
25
5
  if (typeof groupByFieldValue !== 'number') {
26
6
  return groupByFieldValue;
@@ -2,12 +2,7 @@ import { Column } from '@antv/g2plot';
2
2
  import { chartsGradients } from '../settings';
3
3
  export const ColumnChart = (container, config) => {
4
4
  const configuration = config;
5
- // With a seriesField, G2 maps the color option across series categories and
6
- // can't interpolate a single `l(...)` gradient string (string palettes are
7
- // parsed as '-'-separated stops, yielding black) — series need the array.
8
- configuration.color || (configuration.color = configuration.seriesField
9
- ? Object.values(chartsGradients)
10
- : chartsGradients.rapidBlue);
5
+ configuration.color || (configuration.color = chartsGradients.rapidBlue);
11
6
  configuration.shape = 'rapid-shape';
12
7
  return new Column(container, configuration);
13
8
  };
@@ -3,11 +3,7 @@ import { chartsGradients } from '../settings';
3
3
  export const LineChart = (container, config) => {
4
4
  const configuration = config;
5
5
  configuration.smooth || (configuration.smooth = true);
6
- // Same constraint as ColumnChart: a single gradient string can't be mapped
7
- // across series categories, so multi-line charts need the palette array.
8
- configuration.color || (configuration.color = configuration.seriesField
9
- ? Object.values(chartsGradients)
10
- : chartsGradients.rapidBlue);
6
+ configuration.color || (configuration.color = chartsGradients.rapidBlue);
11
7
  configuration.area || (configuration.area = {
12
8
  style: {
13
9
  fillOpacity: 0.15,
@@ -13,9 +13,7 @@ export const MixChart = (container, config) => {
13
13
  });
14
14
  }
15
15
  if (plot.type == 'column') {
16
- (_b = plot.options).color || (_b.color = plot.options.seriesField
17
- ? Object.values(chartsGradients)
18
- : chartsGradients.rapidBlue);
16
+ (_b = plot.options).color || (_b.color = chartsGradients.rapidBlue);
19
17
  plot.options.shape = 'rapid-shape';
20
18
  }
21
19
  if (plot.type == 'bar') {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/g2plot-chart",
3
3
  "description": "Genesis G2plot Chart",
4
- "version": "14.478.1-alpha-abf67b6.0",
4
+ "version": "14.478.1-alpha-14e77dd.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -53,21 +53,21 @@
53
53
  }
54
54
  },
55
55
  "devDependencies": {
56
- "@genesislcap/foundation-testing": "14.478.1-alpha-abf67b6.0",
57
- "@genesislcap/genx": "14.478.1-alpha-abf67b6.0",
58
- "@genesislcap/rollup-builder": "14.478.1-alpha-abf67b6.0",
59
- "@genesislcap/ts-builder": "14.478.1-alpha-abf67b6.0",
60
- "@genesislcap/uvu-playwright-builder": "14.478.1-alpha-abf67b6.0",
61
- "@genesislcap/vite-builder": "14.478.1-alpha-abf67b6.0",
62
- "@genesislcap/webpack-builder": "14.478.1-alpha-abf67b6.0"
56
+ "@genesislcap/foundation-testing": "14.478.1-alpha-14e77dd.0",
57
+ "@genesislcap/genx": "14.478.1-alpha-14e77dd.0",
58
+ "@genesislcap/rollup-builder": "14.478.1-alpha-14e77dd.0",
59
+ "@genesislcap/ts-builder": "14.478.1-alpha-14e77dd.0",
60
+ "@genesislcap/uvu-playwright-builder": "14.478.1-alpha-14e77dd.0",
61
+ "@genesislcap/vite-builder": "14.478.1-alpha-14e77dd.0",
62
+ "@genesislcap/webpack-builder": "14.478.1-alpha-14e77dd.0"
63
63
  },
64
64
  "dependencies": {
65
65
  "@antv/g2plot": "^2.4.32",
66
- "@genesislcap/foundation-comms": "14.478.1-alpha-abf67b6.0",
67
- "@genesislcap/foundation-logger": "14.478.1-alpha-abf67b6.0",
68
- "@genesislcap/foundation-ui": "14.478.1-alpha-abf67b6.0",
69
- "@genesislcap/foundation-utils": "14.478.1-alpha-abf67b6.0",
70
- "@genesislcap/foundation-zero": "14.478.1-alpha-abf67b6.0",
66
+ "@genesislcap/foundation-comms": "14.478.1-alpha-14e77dd.0",
67
+ "@genesislcap/foundation-logger": "14.478.1-alpha-14e77dd.0",
68
+ "@genesislcap/foundation-ui": "14.478.1-alpha-14e77dd.0",
69
+ "@genesislcap/foundation-utils": "14.478.1-alpha-14e77dd.0",
70
+ "@genesislcap/foundation-zero": "14.478.1-alpha-14e77dd.0",
71
71
  "@microsoft/fast-element": "1.14.0",
72
72
  "@microsoft/fast-foundation": "2.50.0"
73
73
  },
@@ -91,5 +91,5 @@
91
91
  "require": "./dist/react.cjs"
92
92
  }
93
93
  },
94
- "gitHead": "f9b18c192af4160f36f0e97d7b2001cdd9e78baf"
94
+ "gitHead": "4c3b433335a924ed1329dfffb638f1feb27e9f98"
95
95
  }