@genesislcap/g2plot-chart 14.420.0 → 14.421.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.
@@ -5,7 +5,16 @@ import { chartErrorNames } from './chart.definitions';
5
5
  * G2Plot Chart Config
6
6
  * @public
7
7
  */
8
- export type ChartConfig = LineOptions | AreaOptions | BarOptions | ColumnOptions | PieOptions | DualAxesOptions | RoseOptions | ScatterOptions | StockOptions | MixOptions;
8
+ export type ChartConfig = OptionalData<LineOptions> | OptionalData<AreaOptions> | OptionalData<BarOptions> | OptionalData<ColumnOptions> | OptionalData<PieOptions> | OptionalData<DualAxesOptions> | OptionalData<RoseOptions> | OptionalData<ScatterOptions> | OptionalData<StockOptions> | OptionalData<MixOptions>;
9
+ type OptionalData<T extends {
10
+ data?: unknown;
11
+ }> = Omit<T, 'data'> & {
12
+ /**
13
+ * `data` can be omitted when using `<chart-datasource>`.
14
+ * If provided directly on config, the original option type is preserved.
15
+ */
16
+ data?: T['data'];
17
+ };
9
18
  /**
10
19
  * G2Plot Chart Models
11
20
  * @public
@@ -42,4 +51,5 @@ export interface ChartErrorItem<ChartErrorItemDetailType> {
42
51
  * @public
43
52
  */
44
53
  export type ChartErrorEvent = ChartDatasourceErrorEvent | CustomEvent<ChartErrorItem<any>>;
54
+ export {};
45
55
  //# sourceMappingURL=chart.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"chart.types.d.ts","sourceRoot":"","sources":["../../src/chart.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,IAAI,EACJ,GAAG,EACH,MAAM,EACN,GAAG,EACH,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,KAAK,EACL,GAAG,EACH,WAAW,EACX,WAAW,EACX,UAAU,EACV,aAAa,EACb,UAAU,EACV,eAAe,EACf,WAAW,EACX,cAAc,EACd,YAAY,EACZ,UAAU,EACX,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AACtF,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD;;;GAGG;AACH,MAAM,MAAM,WAAW,GACnB,WAAW,GACX,WAAW,GACX,UAAU,GACV,aAAa,GACb,UAAU,GACV,eAAe,GACf,WAAW,GACX,cAAc,GACd,YAAY,GACZ,UAAU,CAAC;AAEf;;;GAGG;AACH,MAAM,MAAM,WAAW,GACnB,IAAI,GACJ,IAAI,GACJ,GAAG,GACH,MAAM,GACN,GAAG,GACH,QAAQ,GACR,IAAI,GACJ,OAAO,GACP,KAAK,GACL,GAAG,CAAC;AAER;;;GAGG;AACH,MAAM,MAAM,UAAU,GAClB,MAAM,GACN,MAAM,GACN,QAAQ,GACR,KAAK,GACL,KAAK,GACL,OAAO,GACP,UAAU,GACV,MAAM,GACN,SAAS,GACT,OAAO,GACP,KAAK,CAAC;AAEV;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;CAAE,EAAE,CAAC;AAErF;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,eAAe,CAAC;AAE3D;;;GAGG;AACH,MAAM,WAAW,cAAc,CAAC,wBAAwB;IACtD,MAAM,EAAE,wBAAwB,CAAC;IACjC,IAAI,EAAE,eAAe,CAAC;CACvB;AAED;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,yBAAyB,GAAG,WAAW,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"chart.types.d.ts","sourceRoot":"","sources":["../../src/chart.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,IAAI,EACJ,GAAG,EACH,MAAM,EACN,GAAG,EACH,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,KAAK,EACL,GAAG,EACH,WAAW,EACX,WAAW,EACX,UAAU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AAC;AAErF;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,eAAe,CAAC;AAE3D;;;GAGG;AACH,MAAM,WAAW,cAAc,CAAC,wBAAwB;IACtD,MAAM,EAAE,wBAAwB,CAAC;IACjC,IAAI,EAAE,eAAe,CAAC;CACvB;AAED;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,yBAAyB,GAAG,WAAW,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC"}
@@ -193,6 +193,15 @@
193
193
  "kind": "Content",
194
194
  "text": "export type ChartConfig = "
195
195
  },
196
+ {
197
+ "kind": "Reference",
198
+ "text": "OptionalData",
199
+ "canonicalReference": "@genesislcap/g2plot-chart!~OptionalData:type"
200
+ },
201
+ {
202
+ "kind": "Content",
203
+ "text": "<"
204
+ },
196
205
  {
197
206
  "kind": "Reference",
198
207
  "text": "LineOptions",
@@ -200,7 +209,16 @@
200
209
  },
201
210
  {
202
211
  "kind": "Content",
203
- "text": " | "
212
+ "text": "> | "
213
+ },
214
+ {
215
+ "kind": "Reference",
216
+ "text": "OptionalData",
217
+ "canonicalReference": "@genesislcap/g2plot-chart!~OptionalData:type"
218
+ },
219
+ {
220
+ "kind": "Content",
221
+ "text": "<"
204
222
  },
205
223
  {
206
224
  "kind": "Reference",
@@ -209,7 +227,16 @@
209
227
  },
210
228
  {
211
229
  "kind": "Content",
212
- "text": " | "
230
+ "text": "> | "
231
+ },
232
+ {
233
+ "kind": "Reference",
234
+ "text": "OptionalData",
235
+ "canonicalReference": "@genesislcap/g2plot-chart!~OptionalData:type"
236
+ },
237
+ {
238
+ "kind": "Content",
239
+ "text": "<"
213
240
  },
214
241
  {
215
242
  "kind": "Reference",
@@ -218,7 +245,16 @@
218
245
  },
219
246
  {
220
247
  "kind": "Content",
221
- "text": " | "
248
+ "text": "> | "
249
+ },
250
+ {
251
+ "kind": "Reference",
252
+ "text": "OptionalData",
253
+ "canonicalReference": "@genesislcap/g2plot-chart!~OptionalData:type"
254
+ },
255
+ {
256
+ "kind": "Content",
257
+ "text": "<"
222
258
  },
223
259
  {
224
260
  "kind": "Reference",
@@ -227,7 +263,16 @@
227
263
  },
228
264
  {
229
265
  "kind": "Content",
230
- "text": " | "
266
+ "text": "> | "
267
+ },
268
+ {
269
+ "kind": "Reference",
270
+ "text": "OptionalData",
271
+ "canonicalReference": "@genesislcap/g2plot-chart!~OptionalData:type"
272
+ },
273
+ {
274
+ "kind": "Content",
275
+ "text": "<"
231
276
  },
232
277
  {
233
278
  "kind": "Reference",
@@ -236,7 +281,16 @@
236
281
  },
237
282
  {
238
283
  "kind": "Content",
239
- "text": " | "
284
+ "text": "> | "
285
+ },
286
+ {
287
+ "kind": "Reference",
288
+ "text": "OptionalData",
289
+ "canonicalReference": "@genesislcap/g2plot-chart!~OptionalData:type"
290
+ },
291
+ {
292
+ "kind": "Content",
293
+ "text": "<"
240
294
  },
241
295
  {
242
296
  "kind": "Reference",
@@ -245,7 +299,16 @@
245
299
  },
246
300
  {
247
301
  "kind": "Content",
248
- "text": " | "
302
+ "text": "> | "
303
+ },
304
+ {
305
+ "kind": "Reference",
306
+ "text": "OptionalData",
307
+ "canonicalReference": "@genesislcap/g2plot-chart!~OptionalData:type"
308
+ },
309
+ {
310
+ "kind": "Content",
311
+ "text": "<"
249
312
  },
250
313
  {
251
314
  "kind": "Reference",
@@ -254,7 +317,16 @@
254
317
  },
255
318
  {
256
319
  "kind": "Content",
257
- "text": " | "
320
+ "text": "> | "
321
+ },
322
+ {
323
+ "kind": "Reference",
324
+ "text": "OptionalData",
325
+ "canonicalReference": "@genesislcap/g2plot-chart!~OptionalData:type"
326
+ },
327
+ {
328
+ "kind": "Content",
329
+ "text": "<"
258
330
  },
259
331
  {
260
332
  "kind": "Reference",
@@ -263,7 +335,16 @@
263
335
  },
264
336
  {
265
337
  "kind": "Content",
266
- "text": " | "
338
+ "text": "> | "
339
+ },
340
+ {
341
+ "kind": "Reference",
342
+ "text": "OptionalData",
343
+ "canonicalReference": "@genesislcap/g2plot-chart!~OptionalData:type"
344
+ },
345
+ {
346
+ "kind": "Content",
347
+ "text": "<"
267
348
  },
268
349
  {
269
350
  "kind": "Reference",
@@ -272,13 +353,26 @@
272
353
  },
273
354
  {
274
355
  "kind": "Content",
275
- "text": " | "
356
+ "text": "> | "
357
+ },
358
+ {
359
+ "kind": "Reference",
360
+ "text": "OptionalData",
361
+ "canonicalReference": "@genesislcap/g2plot-chart!~OptionalData:type"
362
+ },
363
+ {
364
+ "kind": "Content",
365
+ "text": "<"
276
366
  },
277
367
  {
278
368
  "kind": "Reference",
279
369
  "text": "MixOptions",
280
370
  "canonicalReference": "@antv/g2plot!MixOptions:interface"
281
371
  },
372
+ {
373
+ "kind": "Content",
374
+ "text": ">"
375
+ },
282
376
  {
283
377
  "kind": "Content",
284
378
  "text": ";"
@@ -289,7 +383,7 @@
289
383
  "name": "ChartConfig",
290
384
  "typeTokenRange": {
291
385
  "startIndex": 1,
292
- "endIndex": 20
386
+ "endIndex": 41
293
387
  }
294
388
  },
295
389
  {
@@ -36,7 +36,7 @@ import { ViewTemplate } from '@microsoft/fast-element';
36
36
  * G2Plot Chart Config
37
37
  * @public
38
38
  */
39
- export declare type ChartConfig = LineOptions | AreaOptions | BarOptions | ColumnOptions | PieOptions | DualAxesOptions | RoseOptions | ScatterOptions | StockOptions | MixOptions;
39
+ export declare type ChartConfig = OptionalData<LineOptions> | OptionalData<AreaOptions> | OptionalData<BarOptions> | OptionalData<ColumnOptions> | OptionalData<PieOptions> | OptionalData<DualAxesOptions> | OptionalData<RoseOptions> | OptionalData<ScatterOptions> | OptionalData<StockOptions> | OptionalData<MixOptions>;
40
40
 
41
41
  /**
42
42
  * The Genesis Datasource for the `g2plot-chart` component.
@@ -1214,6 +1214,16 @@ export declare const g2plotChartsComponents: {
1214
1214
  */
1215
1215
  export declare const g2plotChartTemplate: ViewTemplate;
1216
1216
 
1217
+ declare type OptionalData<T extends {
1218
+ data?: unknown;
1219
+ }> = Omit<T, 'data'> & {
1220
+ /**
1221
+ * `data` can be omitted when using `<chart-datasource>`.
1222
+ * If provided directly on config, the original option type is preserved.
1223
+ */
1224
+ data?: T['data'];
1225
+ };
1226
+
1217
1227
  /**
1218
1228
  * Register the Rapid Design System G2Plot shape
1219
1229
  * @internal
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.420.0",
4
+ "version": "14.421.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.420.0",
57
- "@genesislcap/genx": "14.420.0",
58
- "@genesislcap/rollup-builder": "14.420.0",
59
- "@genesislcap/ts-builder": "14.420.0",
60
- "@genesislcap/uvu-playwright-builder": "14.420.0",
61
- "@genesislcap/vite-builder": "14.420.0",
62
- "@genesislcap/webpack-builder": "14.420.0"
56
+ "@genesislcap/foundation-testing": "14.421.1",
57
+ "@genesislcap/genx": "14.421.1",
58
+ "@genesislcap/rollup-builder": "14.421.1",
59
+ "@genesislcap/ts-builder": "14.421.1",
60
+ "@genesislcap/uvu-playwright-builder": "14.421.1",
61
+ "@genesislcap/vite-builder": "14.421.1",
62
+ "@genesislcap/webpack-builder": "14.421.1"
63
63
  },
64
64
  "dependencies": {
65
65
  "@antv/g2plot": "^2.4.32",
66
- "@genesislcap/foundation-comms": "14.420.0",
67
- "@genesislcap/foundation-logger": "14.420.0",
68
- "@genesislcap/foundation-ui": "14.420.0",
69
- "@genesislcap/foundation-utils": "14.420.0",
70
- "@genesislcap/foundation-zero": "14.420.0",
66
+ "@genesislcap/foundation-comms": "14.421.1",
67
+ "@genesislcap/foundation-logger": "14.421.1",
68
+ "@genesislcap/foundation-ui": "14.421.1",
69
+ "@genesislcap/foundation-utils": "14.421.1",
70
+ "@genesislcap/foundation-zero": "14.421.1",
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": "52c9259f8fb7a203979c832b08388579ae728a38"
97
+ "gitHead": "ef3efc54221d1c0af5c842f0b98225ca813b4042"
98
98
  }