@genesislcap/g2plot-chart 14.492.0 → 14.492.1
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/dist/custom-elements.json +19 -7
- package/dist/dts/chart-datasource/chart-datasource.d.ts +4 -6
- package/dist/dts/chart-datasource/chart-datasource.d.ts.map +1 -1
- package/dist/esm/chart-datasource/chart-datasource.js +4 -9
- package/dist/g2plot-chart.api.json +1 -1
- package/dist/g2plot-chart.d.ts +4 -6
- package/package.json +14 -14
|
@@ -819,13 +819,12 @@
|
|
|
819
819
|
"type": {
|
|
820
820
|
"text": "string"
|
|
821
821
|
},
|
|
822
|
-
"
|
|
822
|
+
"description": "Explicit override for the field that uniquely identifies a row. Leave unset to derive it\nfrom the resource type (`ROW_REF` for DATASERVER, `RECORD_ID` for request/reply) via the\ninherited `effectiveRowId`.",
|
|
823
|
+
"privacy": "public",
|
|
823
824
|
"inheritedFrom": {
|
|
824
825
|
"name": "BaseDatasource",
|
|
825
826
|
"module": "src/utils/base-datasource.ts"
|
|
826
|
-
}
|
|
827
|
-
"description": "Attribute to set an unique identifier for the row.",
|
|
828
|
-
"privacy": "public"
|
|
827
|
+
}
|
|
829
828
|
},
|
|
830
829
|
{
|
|
831
830
|
"kind": "field",
|
|
@@ -1398,6 +1397,20 @@
|
|
|
1398
1397
|
"module": "src/utils/base-datasource.ts"
|
|
1399
1398
|
}
|
|
1400
1399
|
},
|
|
1400
|
+
{
|
|
1401
|
+
"kind": "field",
|
|
1402
|
+
"name": "effectiveRowId",
|
|
1403
|
+
"type": {
|
|
1404
|
+
"text": "string"
|
|
1405
|
+
},
|
|
1406
|
+
"privacy": "public",
|
|
1407
|
+
"description": "The field used to key rows into BaseDatasource.rowsSyncedWithStream.",
|
|
1408
|
+
"readonly": true,
|
|
1409
|
+
"inheritedFrom": {
|
|
1410
|
+
"name": "BaseDatasource",
|
|
1411
|
+
"module": "src/utils/base-datasource.ts"
|
|
1412
|
+
}
|
|
1413
|
+
},
|
|
1401
1414
|
{
|
|
1402
1415
|
"kind": "method",
|
|
1403
1416
|
"name": "reset",
|
|
@@ -1996,13 +2009,12 @@
|
|
|
1996
2009
|
"type": {
|
|
1997
2010
|
"text": "string"
|
|
1998
2011
|
},
|
|
1999
|
-
"
|
|
2012
|
+
"description": "Explicit override for the field that uniquely identifies a row. Leave unset to derive it\nfrom the resource type (`ROW_REF` for DATASERVER, `RECORD_ID` for request/reply) via the\ninherited `effectiveRowId`.",
|
|
2000
2013
|
"fieldName": "rowId",
|
|
2001
2014
|
"inheritedFrom": {
|
|
2002
2015
|
"name": "BaseDatasource",
|
|
2003
2016
|
"module": "src/utils/base-datasource.ts"
|
|
2004
|
-
}
|
|
2005
|
-
"description": "Attribute to set an unique identifier for the row."
|
|
2017
|
+
}
|
|
2006
2018
|
},
|
|
2007
2019
|
{
|
|
2008
2020
|
"name": "fields",
|
|
@@ -141,11 +141,7 @@ declare const ChartDatasource_base: (new (...args: any[]) => {
|
|
|
141
141
|
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
142
142
|
removeAttributeNode(attr: Attr): Attr;
|
|
143
143
|
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
144
|
-
requestPointerLock(options
|
|
145
|
-
/**
|
|
146
|
-
* @internal
|
|
147
|
-
*/
|
|
148
|
-
?: PointerLockOptions): Promise<void>;
|
|
144
|
+
requestPointerLock(options?: PointerLockOptions): Promise<void>;
|
|
149
145
|
scroll(options?: ScrollToOptions): void;
|
|
150
146
|
scroll(x: number, y: number): void;
|
|
151
147
|
scrollBy(options?: ScrollToOptions): void;
|
|
@@ -506,7 +502,9 @@ export declare class ChartDatasource extends ChartDatasource_base {
|
|
|
506
502
|
*/
|
|
507
503
|
reverse: boolean;
|
|
508
504
|
/**
|
|
509
|
-
*
|
|
505
|
+
* Explicit override for the field that uniquely identifies a row. Leave unset to derive it
|
|
506
|
+
* from the resource type (`ROW_REF` for DATASERVER, `RECORD_ID` for request/reply) via the
|
|
507
|
+
* inherited `effectiveRowId`.
|
|
510
508
|
* @public
|
|
511
509
|
*/
|
|
512
510
|
rowId: string;
|
|
@@ -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,4BAA4B,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAI5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAY5C;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,kBAAkB,CAAC;AAElD;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,WAAW,CAAC;AAQhD,cAAM,kBAAmB,SAAQ,cAAc;IAC7C,SAAS,CAAC,KAAK,EAAE,WAAW,CAAC;IAC7B,SAAS,CAAC,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAC1C,SAAS,CAAC,yBAAyB,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IAChE,SAAS,CAAC,gBAAgB,EAAE,MAAM,CAAC;IACnC,SAAS,CAAC,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAC1C,SAAS,CAAC,iBAAiB,UAAS;IACpC,SAAS,CAAC,OAAO,UAAQ;IAEzB,IAAI,sBAAsB,IAAI,MAAM,CAEnC;IAID,SAAS;IAMT,iBAAiB,CAAC,YAAY,CAAC,EAAE,GAAG,EAAE;IA0CtC,mBAAmB,CAAC,YAAY,EAAE,GAAG,EAAE;IAQvC,mBAAmB,CAAC,WAAW,EAAE,GAAG,EAAE;IAQtC,mBAAmB,CAAC,WAAW,EAAE,GAAG,EAAE;CAUvC;;;;;;;kBAzCkB,CAAC;;;;;;;;
|
|
1
|
+
{"version":3,"file":"chart-datasource.d.ts","sourceRoot":"","sources":["../../../src/chart-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KG;IACG,OAAO,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,OAAO,EAAE,GAAG,CAAC;IAEb;;;;;OAKG;IACwB,OAAO,EAAE,OAAO,CAAS;IAEpD;;;;;OAKG;IACG,KAAK,EAAE,MAAM,CAAC;IAEpB,OAAO,CAAC,aAAa,CAA2B;IAEhD;;OAEG;IACH,iBAAiB;YAQH,YAAY;IAuC1B,OAAO,CAAC,qBAAqB;IAU7B,OAAO,CAAC,yBAAyB;IAKjC;;OAEG;IACH,WAAW,CAAC,MAAM,EAAE,kCAAkC,GAAG,IAAI;IAY7D;;OAEG;IACM,oBAAoB,IAAI,IAAI;IAQrC;;OAEG;IACa,gBAAgB,CAAC,YAAY,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAKvE,OAAO,CAAC,kBAAkB;IAuC1B,OAAO,CAAC,gCAAgC;IAiBxC;;OAEG;IACH,IAAI,oBAAoB,IAAI,OAAO,CAElC;IAED;;OAEG;IACH,IAAI,mBAAmB,IAAI,OAAO,CAEjC;IAED,OAAO,CAAC,uBAAuB;CAOhC"}
|
|
@@ -67,21 +67,21 @@ class ConcreteDatasource extends BaseDatasource {
|
|
|
67
67
|
}
|
|
68
68
|
handleStreamInserts(insertedRows) {
|
|
69
69
|
insertedRows === null || insertedRows === void 0 ? void 0 : insertedRows.forEach((insertData) => {
|
|
70
|
-
this.rowsSyncedWithStream.set(insertData[this.
|
|
70
|
+
this.rowsSyncedWithStream.set(insertData[this.effectiveRowId], insertData);
|
|
71
71
|
});
|
|
72
72
|
this.syncComponentData();
|
|
73
73
|
}
|
|
74
74
|
handleStreamDeletes(deletedRows) {
|
|
75
75
|
deletedRows === null || deletedRows === void 0 ? void 0 : deletedRows.forEach((deleteData) => {
|
|
76
|
-
this.rowsSyncedWithStream.delete(deleteData[this.
|
|
76
|
+
this.rowsSyncedWithStream.delete(deleteData[this.effectiveRowId]);
|
|
77
77
|
});
|
|
78
78
|
this.syncComponentData();
|
|
79
79
|
}
|
|
80
80
|
handleStreamUpdates(updatedRows) {
|
|
81
81
|
updatedRows === null || updatedRows === void 0 ? void 0 : updatedRows.forEach((updateData) => {
|
|
82
|
-
const rowToBeUpdated = this.rowsSyncedWithStream.get(updateData[this.
|
|
82
|
+
const rowToBeUpdated = this.rowsSyncedWithStream.get(updateData[this.effectiveRowId]);
|
|
83
83
|
const updatedRow = Object.assign(Object.assign({}, rowToBeUpdated), updateData);
|
|
84
|
-
this.rowsSyncedWithStream.set(updateData[this.
|
|
84
|
+
this.rowsSyncedWithStream.set(updateData[this.effectiveRowId], updatedRow);
|
|
85
85
|
});
|
|
86
86
|
this.syncComponentData();
|
|
87
87
|
}
|
|
@@ -156,11 +156,6 @@ let ChartDatasource = class ChartDatasource extends LifecycleMixin(ConcreteDatas
|
|
|
156
156
|
* @public
|
|
157
157
|
*/
|
|
158
158
|
this.reverse = false;
|
|
159
|
-
/**
|
|
160
|
-
* Attribute to set an unique identifier for the row.
|
|
161
|
-
* @public
|
|
162
|
-
*/
|
|
163
|
-
this.rowId = 'ROW_REF';
|
|
164
159
|
}
|
|
165
160
|
/**
|
|
166
161
|
* @internal
|
|
@@ -876,7 +876,7 @@
|
|
|
876
876
|
{
|
|
877
877
|
"kind": "Property",
|
|
878
878
|
"canonicalReference": "@genesislcap/g2plot-chart!ChartDatasource#rowId:member",
|
|
879
|
-
"docComment": "/**\n *
|
|
879
|
+
"docComment": "/**\n * Explicit override for the field that uniquely identifies a row. Leave unset to derive it from the resource type (`ROW_REF` for DATASERVER, `RECORD_ID` for request/reply) via the inherited `effectiveRowId`.\n *\n * @public\n */\n",
|
|
880
880
|
"excerptTokens": [
|
|
881
881
|
{
|
|
882
882
|
"kind": "Content",
|
package/dist/g2plot-chart.d.ts
CHANGED
|
@@ -160,7 +160,9 @@ export declare class ChartDatasource extends ChartDatasource_base {
|
|
|
160
160
|
*/
|
|
161
161
|
reverse: boolean;
|
|
162
162
|
/**
|
|
163
|
-
*
|
|
163
|
+
* Explicit override for the field that uniquely identifies a row. Leave unset to derive it
|
|
164
|
+
* from the resource type (`ROW_REF` for DATASERVER, `RECORD_ID` for request/reply) via the
|
|
165
|
+
* inherited `effectiveRowId`.
|
|
164
166
|
* @public
|
|
165
167
|
*/
|
|
166
168
|
rowId: string;
|
|
@@ -309,11 +311,7 @@ declare const ChartDatasource_base: (new (...args: any[]) => {
|
|
|
309
311
|
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
310
312
|
removeAttributeNode(attr: Attr): Attr;
|
|
311
313
|
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
312
|
-
requestPointerLock(options
|
|
313
|
-
/**
|
|
314
|
-
* @internal
|
|
315
|
-
*/
|
|
316
|
-
?: PointerLockOptions): Promise<void>;
|
|
314
|
+
requestPointerLock(options?: PointerLockOptions): Promise<void>;
|
|
317
315
|
scroll(options?: ScrollToOptions): void;
|
|
318
316
|
scroll(x: number, y: number): void;
|
|
319
317
|
scrollBy(options?: ScrollToOptions): void;
|
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.492.
|
|
4
|
+
"version": "14.492.1",
|
|
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.492.
|
|
57
|
-
"@genesislcap/genx": "14.492.
|
|
58
|
-
"@genesislcap/rollup-builder": "14.492.
|
|
59
|
-
"@genesislcap/ts-builder": "14.492.
|
|
60
|
-
"@genesislcap/uvu-playwright-builder": "14.492.
|
|
61
|
-
"@genesislcap/vite-builder": "14.492.
|
|
62
|
-
"@genesislcap/webpack-builder": "14.492.
|
|
56
|
+
"@genesislcap/foundation-testing": "14.492.1",
|
|
57
|
+
"@genesislcap/genx": "14.492.1",
|
|
58
|
+
"@genesislcap/rollup-builder": "14.492.1",
|
|
59
|
+
"@genesislcap/ts-builder": "14.492.1",
|
|
60
|
+
"@genesislcap/uvu-playwright-builder": "14.492.1",
|
|
61
|
+
"@genesislcap/vite-builder": "14.492.1",
|
|
62
|
+
"@genesislcap/webpack-builder": "14.492.1"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@antv/g2plot": "^2.4.32",
|
|
66
|
-
"@genesislcap/foundation-comms": "14.492.
|
|
67
|
-
"@genesislcap/foundation-logger": "14.492.
|
|
68
|
-
"@genesislcap/foundation-ui": "14.492.
|
|
69
|
-
"@genesislcap/foundation-utils": "14.492.
|
|
70
|
-
"@genesislcap/foundation-zero": "14.492.
|
|
66
|
+
"@genesislcap/foundation-comms": "14.492.1",
|
|
67
|
+
"@genesislcap/foundation-logger": "14.492.1",
|
|
68
|
+
"@genesislcap/foundation-ui": "14.492.1",
|
|
69
|
+
"@genesislcap/foundation-utils": "14.492.1",
|
|
70
|
+
"@genesislcap/foundation-zero": "14.492.1",
|
|
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": "
|
|
94
|
+
"gitHead": "f26e1aef5e771f18dc447fa95bb4f1b63915993c"
|
|
95
95
|
}
|