@genesislcap/g2plot-chart 14.424.1-alpha-0195bdc.0 → 14.424.1-alpha-77cf03d.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.
|
@@ -827,29 +827,6 @@
|
|
|
827
827
|
"description": "Attribute to set an unique identifier for the row.",
|
|
828
828
|
"privacy": "public"
|
|
829
829
|
},
|
|
830
|
-
{
|
|
831
|
-
"kind": "field",
|
|
832
|
-
"name": "connectionSub",
|
|
833
|
-
"type": {
|
|
834
|
-
"text": "Subscription | undefined"
|
|
835
|
-
},
|
|
836
|
-
"privacy": "private"
|
|
837
|
-
},
|
|
838
|
-
{
|
|
839
|
-
"kind": "method",
|
|
840
|
-
"name": "initAndFetch",
|
|
841
|
-
"privacy": "private"
|
|
842
|
-
},
|
|
843
|
-
{
|
|
844
|
-
"kind": "method",
|
|
845
|
-
"name": "subscribeToConnection",
|
|
846
|
-
"privacy": "private"
|
|
847
|
-
},
|
|
848
|
-
{
|
|
849
|
-
"kind": "method",
|
|
850
|
-
"name": "unsubscribeFromConnection",
|
|
851
|
-
"privacy": "private"
|
|
852
|
-
},
|
|
853
830
|
{
|
|
854
831
|
"kind": "method",
|
|
855
832
|
"name": "prepareSeriesField",
|
|
@@ -506,14 +506,10 @@ export declare class ChartDatasource extends ChartDatasource_base {
|
|
|
506
506
|
* @public
|
|
507
507
|
*/
|
|
508
508
|
rowId: string;
|
|
509
|
-
private connectionSub;
|
|
510
509
|
/**
|
|
511
510
|
* @internal
|
|
512
511
|
*/
|
|
513
|
-
connectedCallback(): void
|
|
514
|
-
private initAndFetch;
|
|
515
|
-
private subscribeToConnection;
|
|
516
|
-
private unsubscribeFromConnection;
|
|
512
|
+
connectedCallback(): Promise<void>;
|
|
517
513
|
/**
|
|
518
514
|
* @internal
|
|
519
515
|
*/
|
|
@@ -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,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,4BAA4B,CAAC;
|
|
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,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,4BAA4B,CAAC;AAGrF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAO5C;;;;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;IAuCtC,mBAAmB,CAAC,YAAY,EAAE,GAAG,EAAE;IAQvC,mBAAmB,CAAC,WAAW,EAAE,GAAG,EAAE;IAQtC,mBAAmB,CAAC,WAAW,EAAE,GAAG,EAAE;CAUvC;;;;;;;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;IAE3B;;;;OAIG;IACG,QAAQ,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACS,IAAI,EAAE,GAAG,EAAE,CAAC;IAExB;;;OAGG;IACwB,UAAU,EAAE,OAAO,CAAS;IAEvD;;;;;OAKG;IACG,OAAO,EAAE,MAAM,CAAmC;IAExD;;OAEG;IACG,OAAO,EAAE,MAAM,CAAoC;IAEzD;;;;;OAKG;IACG,OAAO,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,OAAO,EAAE,GAAG,CAAC;IAEb;;;;;OAKG;IACwB,OAAO,EAAE,OAAO,CAAS;IAEpD;;;OAGG;IACG,KAAK,EAAE,MAAM,CAAa;IAEhC;;OAEG;IACG,iBAAiB;IAwCvB;;OAEG;IACH,WAAW,CAAC,MAAM,EAAE,kCAAkC,GAAG,IAAI;IAY7D;;OAEG;IACM,oBAAoB,IAAI,IAAI;IAOrC;;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"}
|
|
@@ -3,7 +3,7 @@ import { DatasourceDefaults } from '@genesislcap/foundation-comms';
|
|
|
3
3
|
import { createLogger } from '@genesislcap/foundation-logger';
|
|
4
4
|
import { BaseDatasource } from '@genesislcap/foundation-ui';
|
|
5
5
|
import { LifecycleMixin } from '@genesislcap/foundation-utils';
|
|
6
|
-
import {
|
|
6
|
+
import { attr, customElement, observable } from '@microsoft/fast-element';
|
|
7
7
|
import { chartDatasourceEventNames } from './chart-datasource.config';
|
|
8
8
|
import { extractFields, getFormattedDateGroupBy, getReduced } from './chart-datasource.utils';
|
|
9
9
|
const logger = createLogger('chart-datasource');
|
|
@@ -165,16 +165,11 @@ let ChartDatasource = class ChartDatasource extends LifecycleMixin(ConcreteDatas
|
|
|
165
165
|
* @internal
|
|
166
166
|
*/
|
|
167
167
|
connectedCallback() {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
DOM.queueUpdate(() => {
|
|
171
|
-
if (!shouldRunConnect)
|
|
172
|
-
return;
|
|
173
|
-
void this.initAndFetch();
|
|
168
|
+
const _super = Object.create(null, {
|
|
169
|
+
connectedCallback: { get: () => super.connectedCallback }
|
|
174
170
|
});
|
|
175
|
-
}
|
|
176
|
-
initAndFetch() {
|
|
177
171
|
return __awaiter(this, void 0, void 0, function* () {
|
|
172
|
+
_super.connectedCallback.call(this);
|
|
178
173
|
this.chart = this.parentElement;
|
|
179
174
|
this.extractedServerFields = extractFields(this.serverFields);
|
|
180
175
|
this.extractedChartsFields = extractFields(this.chartFields);
|
|
@@ -199,30 +194,11 @@ let ChartDatasource = class ChartDatasource extends LifecycleMixin(ConcreteDatas
|
|
|
199
194
|
});
|
|
200
195
|
return;
|
|
201
196
|
}
|
|
202
|
-
// Subscribe first so we catch the case where isConnected is still false
|
|
203
|
-
// when this runs (e.g. design-system-provider Connect not yet established).
|
|
204
|
-
this.subscribeToConnection();
|
|
205
197
|
if (this.chart && this.resourceName && this.connect.isConnected) {
|
|
206
198
|
this.fetchGenesisData(false);
|
|
207
199
|
}
|
|
208
200
|
});
|
|
209
201
|
}
|
|
210
|
-
subscribeToConnection() {
|
|
211
|
-
var _a, _b;
|
|
212
|
-
if (!((_a = this.connect) === null || _a === void 0 ? void 0 : _a.isConnected$))
|
|
213
|
-
return;
|
|
214
|
-
(_b = this.connectionSub) === null || _b === void 0 ? void 0 : _b.unsubscribe();
|
|
215
|
-
this.connectionSub = this.connect.isConnected$.subscribe((isConnected) => {
|
|
216
|
-
if (isConnected && this.chart && this.resourceName && !this.dataSub) {
|
|
217
|
-
void this.fetchGenesisData(false);
|
|
218
|
-
}
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
unsubscribeFromConnection() {
|
|
222
|
-
var _a;
|
|
223
|
-
(_a = this.connectionSub) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
224
|
-
this.connectionSub = undefined;
|
|
225
|
-
}
|
|
226
202
|
/**
|
|
227
203
|
* @internal
|
|
228
204
|
*/
|
|
@@ -241,7 +217,6 @@ let ChartDatasource = class ChartDatasource extends LifecycleMixin(ConcreteDatas
|
|
|
241
217
|
disconnectedCallback() {
|
|
242
218
|
if (!this.shouldRunDisconnect)
|
|
243
219
|
return;
|
|
244
|
-
this.unsubscribeFromConnection();
|
|
245
220
|
super.disconnectedCallback();
|
|
246
221
|
}
|
|
247
222
|
// ChartDatasource's specifics
|
package/dist/g2plot-chart.d.ts
CHANGED
|
@@ -149,14 +149,10 @@ export declare class ChartDatasource extends ChartDatasource_base {
|
|
|
149
149
|
* @public
|
|
150
150
|
*/
|
|
151
151
|
rowId: string;
|
|
152
|
-
private connectionSub;
|
|
153
152
|
/**
|
|
154
153
|
* @internal
|
|
155
154
|
*/
|
|
156
|
-
connectedCallback(): void
|
|
157
|
-
private initAndFetch;
|
|
158
|
-
private subscribeToConnection;
|
|
159
|
-
private unsubscribeFromConnection;
|
|
155
|
+
connectedCallback(): Promise<void>;
|
|
160
156
|
/**
|
|
161
157
|
* @internal
|
|
162
158
|
*/
|
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.424.1-alpha-
|
|
4
|
+
"version": "14.424.1-alpha-77cf03d.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.424.1-alpha-
|
|
57
|
-
"@genesislcap/genx": "14.424.1-alpha-
|
|
58
|
-
"@genesislcap/rollup-builder": "14.424.1-alpha-
|
|
59
|
-
"@genesislcap/ts-builder": "14.424.1-alpha-
|
|
60
|
-
"@genesislcap/uvu-playwright-builder": "14.424.1-alpha-
|
|
61
|
-
"@genesislcap/vite-builder": "14.424.1-alpha-
|
|
62
|
-
"@genesislcap/webpack-builder": "14.424.1-alpha-
|
|
56
|
+
"@genesislcap/foundation-testing": "14.424.1-alpha-77cf03d.0",
|
|
57
|
+
"@genesislcap/genx": "14.424.1-alpha-77cf03d.0",
|
|
58
|
+
"@genesislcap/rollup-builder": "14.424.1-alpha-77cf03d.0",
|
|
59
|
+
"@genesislcap/ts-builder": "14.424.1-alpha-77cf03d.0",
|
|
60
|
+
"@genesislcap/uvu-playwright-builder": "14.424.1-alpha-77cf03d.0",
|
|
61
|
+
"@genesislcap/vite-builder": "14.424.1-alpha-77cf03d.0",
|
|
62
|
+
"@genesislcap/webpack-builder": "14.424.1-alpha-77cf03d.0"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@antv/g2plot": "^2.4.32",
|
|
66
|
-
"@genesislcap/foundation-comms": "14.424.1-alpha-
|
|
67
|
-
"@genesislcap/foundation-logger": "14.424.1-alpha-
|
|
68
|
-
"@genesislcap/foundation-ui": "14.424.1-alpha-
|
|
69
|
-
"@genesislcap/foundation-utils": "14.424.1-alpha-
|
|
70
|
-
"@genesislcap/foundation-zero": "14.424.1-alpha-
|
|
66
|
+
"@genesislcap/foundation-comms": "14.424.1-alpha-77cf03d.0",
|
|
67
|
+
"@genesislcap/foundation-logger": "14.424.1-alpha-77cf03d.0",
|
|
68
|
+
"@genesislcap/foundation-ui": "14.424.1-alpha-77cf03d.0",
|
|
69
|
+
"@genesislcap/foundation-utils": "14.424.1-alpha-77cf03d.0",
|
|
70
|
+
"@genesislcap/foundation-zero": "14.424.1-alpha-77cf03d.0",
|
|
71
71
|
"@microsoft/fast-element": "1.14.0",
|
|
72
72
|
"@microsoft/fast-foundation": "2.50.0"
|
|
73
73
|
},
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"peerDependencies": {
|
|
95
95
|
"@microsoft/fast-react-wrapper": ">=0.3.0"
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "15cf6ab67e975f1b9070b0b0c967c0c098661f4e"
|
|
98
98
|
}
|