@lionad/cx-comps-tanstack-charts 0.1.0-alpha.26 → 0.1.0-alpha.27

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.
Files changed (2) hide show
  1. package/dist/index.mjs +22 -13
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -2313,28 +2313,37 @@ function keyOf(key) {
2313
2313
  if (!comp) throw new Error(`tanstack-charts 物料定义缺失: ${key}`);
2314
2314
  return comp._cx_meta.key;
2315
2315
  }
2316
- const TANSTACK_CHARTS_STREAM_TRIGGERS = [{
2317
- key: keyOf("cx-data-chart"),
2318
- sections: [{
2319
- kind: "array",
2320
- arrayKey: "*"
2321
- }],
2322
- stateBranch: { emptyPassthrough: true },
2323
- frameStride: 10
2324
- }, ...[
2316
+ const ARRAY_PRESET_KEYS = [
2325
2317
  "cx-tanstack-charts-line",
2326
2318
  "cx-tanstack-charts-bar",
2327
2319
  "cx-tanstack-charts-area",
2328
2320
  "cx-tanstack-charts-dot",
2329
2321
  "cx-tanstack-charts-pie"
2330
- ].map((key) => ({
2331
- key: keyOf(key),
2322
+ ];
2323
+ const CHART_STREAM_TRIGGER = {
2324
+ key: keyOf("cx-data-chart"),
2332
2325
  sections: [{
2333
2326
  kind: "array",
2334
- arrayKey: "data"
2327
+ arrayKey: "*"
2335
2328
  }],
2329
+ stateBranch: { emptyPassthrough: true },
2336
2330
  frameStride: 10
2337
- }))];
2331
+ };
2332
+ const TANSTACK_CHARTS_STREAM_TRIGGERS = [
2333
+ CHART_STREAM_TRIGGER,
2334
+ {
2335
+ ...CHART_STREAM_TRIGGER,
2336
+ key: "cx-chart"
2337
+ },
2338
+ ...ARRAY_PRESET_KEYS.map((key) => ({
2339
+ key: keyOf(key),
2340
+ sections: [{
2341
+ kind: "array",
2342
+ arrayKey: "data"
2343
+ }],
2344
+ frameStride: 10
2345
+ }))
2346
+ ];
2338
2347
  /** 装配 TanStack Charts 物料的 trigger 注册表(size 恒 6) */
2339
2348
  function createTanstackChartsTriggerRegistry() {
2340
2349
  const registry = createTriggerRegistry();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lionad/cx-comps-tanstack-charts",
3
- "version": "0.1.0-alpha.26",
3
+ "version": "0.1.0-alpha.27",
4
4
  "description": "cx material components wrapping TanStack Charts (@tanstack/charts/vue)",
5
5
  "keywords": [
6
6
  "charts",