@shwfed/config 2.0.3 → 2.1.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.
Files changed (31) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/config/blocks/2026-05-17/{com.shwfed.block.chart.line → com.shwfed.block.chart.xy}/config.d.vue.ts +16 -6
  3. package/dist/runtime/components/config/blocks/2026-05-17/{com.shwfed.block.chart.line → com.shwfed.block.chart.xy}/config.vue +263 -76
  4. package/dist/runtime/components/config/blocks/2026-05-17/{com.shwfed.block.chart.line → com.shwfed.block.chart.xy}/config.vue.d.ts +16 -6
  5. package/dist/runtime/components/config/blocks/2026-05-17/{com.shwfed.block.chart.line → com.shwfed.block.chart.xy}/runtime.d.vue.ts +16 -6
  6. package/dist/runtime/components/config/blocks/2026-05-17/{com.shwfed.block.chart.line → com.shwfed.block.chart.xy}/runtime.vue +104 -12
  7. package/dist/runtime/components/config/blocks/2026-05-17/{com.shwfed.block.chart.line → com.shwfed.block.chart.xy}/runtime.vue.d.ts +16 -6
  8. package/dist/runtime/components/config/blocks/2026-05-17/{com.shwfed.block.chart.line → com.shwfed.block.chart.xy}/schema.d.ts +51 -15
  9. package/dist/runtime/components/config/blocks/2026-05-17/{com.shwfed.block.chart.line → com.shwfed.block.chart.xy}/schema.js +67 -22
  10. package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/config.d.vue.ts +131 -0
  11. package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/config.vue +170 -0
  12. package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/config.vue.d.ts +131 -0
  13. package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/runtime.d.vue.ts +8 -0
  14. package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/runtime.vue +52 -0
  15. package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/runtime.vue.d.ts +8 -0
  16. package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/schema.d.ts +112 -0
  17. package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/schema.js +44 -0
  18. package/dist/runtime/components/form/schema.d.ts +10 -0
  19. package/dist/runtime/components/form/schema.js +6 -2
  20. package/dist/runtime/components/table/config.d.vue.ts +11 -1
  21. package/dist/runtime/components/table/config.vue +4 -0
  22. package/dist/runtime/components/table/config.vue.d.ts +11 -1
  23. package/dist/runtime/components/table/index.d.vue.ts +4 -0
  24. package/dist/runtime/components/table/index.vue +28 -2
  25. package/dist/runtime/components/table/index.vue.d.ts +4 -0
  26. package/dist/runtime/components/table/schema.d.ts +12 -0
  27. package/dist/runtime/components/table/schema.js +6 -1
  28. package/dist/runtime/vendor/cel-js/PROMPT.md +6 -2
  29. package/dist/runtime/vendor/cel-js/lib/http-builder.d.ts +7 -1
  30. package/dist/runtime/vendor/cel-js/lib/http-builder.js +28 -5
  31. package/package.json +1 -1
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "shwfed",
3
3
  "configKey": "shwfed",
4
- "version": "2.0.3",
4
+ "version": "2.1.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "unknown"
@@ -4,7 +4,7 @@ type __VLS_ModelProps = {
4
4
  };
5
5
  declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
6
  "update:modelValue": (value: {
7
- readonly type: "com.shwfed.block.chart.line";
7
+ readonly type: "com.shwfed.block.chart.xy";
8
8
  readonly id: string;
9
9
  readonly caption?: readonly [{
10
10
  readonly locale: "zh";
@@ -22,9 +22,16 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
22
22
  readonly locale: "en" | "ja" | "ko";
23
23
  readonly message: string;
24
24
  }[]] | undefined;
25
+ readonly size?: string | undefined;
25
26
  readonly id: string;
26
27
  readonly color?: string | undefined;
28
+ readonly width?: string | undefined;
27
29
  readonly value: string;
30
+ readonly chart: "area" | "line" | "groupedBar" | "scatter" | "stackedBar";
31
+ readonly curveType: "linear" | "step" | "monotoneX" | "natural" | "basis" | "cardinal" | "catmullRom" | "stepAfter" | "stepBefore";
32
+ readonly lineWidth: number;
33
+ readonly dash?: string | undefined;
34
+ readonly lineColor?: string | undefined;
28
35
  }[];
29
36
  readonly displayName?: string | undefined;
30
37
  readonly compatibilityDate: "2026-05-17";
@@ -34,12 +41,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
34
41
  readonly id: string;
35
42
  readonly request?: string | undefined;
36
43
  }[];
37
- readonly curveType: "linear" | "step" | "monotoneX" | "natural" | "basis" | "cardinal" | "catmullRom" | "stepAfter" | "stepBefore";
38
- readonly lineWidth: number;
39
44
  }) => any;
40
45
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
41
46
  "onUpdate:modelValue"?: ((value: {
42
- readonly type: "com.shwfed.block.chart.line";
47
+ readonly type: "com.shwfed.block.chart.xy";
43
48
  readonly id: string;
44
49
  readonly caption?: readonly [{
45
50
  readonly locale: "zh";
@@ -57,9 +62,16 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
57
62
  readonly locale: "en" | "ja" | "ko";
58
63
  readonly message: string;
59
64
  }[]] | undefined;
65
+ readonly size?: string | undefined;
60
66
  readonly id: string;
61
67
  readonly color?: string | undefined;
68
+ readonly width?: string | undefined;
62
69
  readonly value: string;
70
+ readonly chart: "area" | "line" | "groupedBar" | "scatter" | "stackedBar";
71
+ readonly curveType: "linear" | "step" | "monotoneX" | "natural" | "basis" | "cardinal" | "catmullRom" | "stepAfter" | "stepBefore";
72
+ readonly lineWidth: number;
73
+ readonly dash?: string | undefined;
74
+ readonly lineColor?: string | undefined;
63
75
  }[];
64
76
  readonly displayName?: string | undefined;
65
77
  readonly compatibilityDate: "2026-05-17";
@@ -69,8 +81,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
69
81
  readonly id: string;
70
82
  readonly request?: string | undefined;
71
83
  }[];
72
- readonly curveType: "linear" | "step" | "monotoneX" | "natural" | "basis" | "cardinal" | "catmullRom" | "stepAfter" | "stepBefore";
73
- readonly lineWidth: number;
74
84
  }) => any) | undefined;
75
85
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
76
86
  declare const _default: typeof __VLS_export;
@@ -29,7 +29,7 @@ import {
29
29
  schema,
30
30
  ySeriesSchema
31
31
  } from "./schema";
32
- defineOptions({ name: "ShwfedBlockChartLineConfig" });
32
+ defineOptions({ name: "ShwfedBlockChartXyConfig" });
33
33
  const block = defineModel({ type: null, ...{ required: true } });
34
34
  const blockSchema = schema(() => {
35
35
  });
@@ -43,6 +43,13 @@ const dsTitle = (f) => getStructFieldTitle(dsSchema, f) ?? f;
43
43
  const dsDescription = (f) => getStructFieldDescription(dsSchema, f);
44
44
  const yTitle = (f) => getStructFieldTitle(ySchema, f) ?? f;
45
45
  const yDescription = (f) => getStructFieldDescription(ySchema, f);
46
+ const CHART_TYPE_OPTIONS = [
47
+ { value: "line", label: "\u6298\u7EBF" },
48
+ { value: "area", label: "\u9762\u79EF" },
49
+ { value: "groupedBar", label: "\u5206\u7EC4\u67F1" },
50
+ { value: "scatter", label: "\u6563\u70B9" },
51
+ { value: "stackedBar", label: "\u5806\u53E0\u67F1" }
52
+ ];
46
53
  const CURVE_OPTIONS = [
47
54
  { value: "linear", label: "\u76F4\u7EBF (linear)" },
48
55
  { value: "monotoneX", label: "\u5355\u8C03\u5E73\u6ED1 (monotoneX)" },
@@ -112,12 +119,6 @@ function setCaption(v) {
112
119
  function setX(v) {
113
120
  block.value = { ...block.value, x: v };
114
121
  }
115
- function setCurveType(v) {
116
- block.value = { ...block.value, curveType: v };
117
- }
118
- function setLineWidth(v) {
119
- block.value = { ...block.value, lineWidth: typeof v === "number" && v > 0 ? v : 2 };
120
- }
121
122
  function writeY(next) {
122
123
  block.value = { ...block.value, y: next };
123
124
  }
@@ -130,11 +131,38 @@ function setYValue(i, v) {
130
131
  function setYLabel(i, v) {
131
132
  patchYItem(i, { label: v });
132
133
  }
134
+ function setYChart(i, v) {
135
+ patchYItem(i, { chart: v });
136
+ }
133
137
  function setYColor(i, v) {
134
138
  patchYItem(i, { color: v.length > 0 ? v : void 0 });
135
139
  }
140
+ function setYCurveType(i, v) {
141
+ patchYItem(i, { curveType: v });
142
+ }
143
+ function setYLineWidth(i, v) {
144
+ patchYItem(i, { lineWidth: typeof v === "number" && v > 0 ? v : 2 });
145
+ }
146
+ function setYDash(i, v) {
147
+ patchYItem(i, { dash: v.length > 0 ? v : void 0 });
148
+ }
149
+ function setYLineColor(i, v) {
150
+ patchYItem(i, { lineColor: v.length > 0 ? v : void 0 });
151
+ }
152
+ function setYWidth(i, v) {
153
+ patchYItem(i, { width: v.length > 0 ? v : void 0 });
154
+ }
155
+ function setYSize(i, v) {
156
+ patchYItem(i, { size: v.length > 0 ? v : void 0 });
157
+ }
136
158
  function addY() {
137
- writeY([...block.value.y, { id: crypto.randomUUID(), value: "[]" }]);
159
+ writeY([...block.value.y, {
160
+ id: crypto.randomUUID(),
161
+ value: "[]",
162
+ chart: "line",
163
+ curveType: "monotoneX",
164
+ lineWidth: 2
165
+ }]);
138
166
  }
139
167
  function removeY(i) {
140
168
  if (block.value.y.length <= 1) return;
@@ -412,7 +440,7 @@ function removeY(i) {
412
440
  :model-value="s.value"
413
441
  result-type="list"
414
442
  :extra-vars="dataSourceVars"
415
- :placeholder="`\u7B2C ${i + 1} \u6761\u7EBF\uFF0C\u5982 source1.map(r, r.value)`"
443
+ :placeholder="`\u7B2C ${i + 1} \u4E2A\u7CFB\u5217\uFF0C\u5982 source1.map(r, r.value)`"
416
444
  @update:model-value="(v) => setYValue(i, v)"
417
445
  />
418
446
  </Field>
@@ -421,22 +449,34 @@ function removeY(i) {
421
449
  <Field orientation="vertical">
422
450
  <FieldLabel class="text-xs text-zinc-500">
423
451
  <template
424
- v-if="yDescription('label')"
452
+ v-if="yDescription('chart')"
425
453
  #tooltip
426
454
  >
427
455
  <Markdown
428
- :source="yDescription('label')"
456
+ :source="yDescription('chart')"
429
457
  block
430
458
  class="prose prose-sm prose-zinc"
431
459
  />
432
460
  </template>
433
- {{ yTitle("label") }}
461
+ {{ yTitle("chart") }}
434
462
  </FieldLabel>
435
- <LocaleField
436
- translate-hint="chart series label"
437
- :model-value="s.label"
438
- @update:model-value="(v) => setYLabel(i, v)"
439
- />
463
+ <Select
464
+ :model-value="s.chart"
465
+ @update:model-value="(v) => setYChart(i, v)"
466
+ >
467
+ <SelectTrigger class="w-full">
468
+ <SelectValue />
469
+ </SelectTrigger>
470
+ <SelectContent>
471
+ <SelectItem
472
+ v-for="opt in CHART_TYPE_OPTIONS"
473
+ :key="opt.value"
474
+ :value="opt.value"
475
+ >
476
+ {{ opt.label }}
477
+ </SelectItem>
478
+ </SelectContent>
479
+ </Select>
440
480
  </Field>
441
481
  <Field orientation="vertical">
442
482
  <FieldLabel class="text-xs text-zinc-500">
@@ -459,6 +499,212 @@ function removeY(i) {
459
499
  />
460
500
  </Field>
461
501
  </div>
502
+
503
+ <!-- line -->
504
+ <template v-if="s.chart === 'line'">
505
+ <div class="grid grid-cols-2 gap-3">
506
+ <Field orientation="vertical">
507
+ <FieldLabel class="text-xs text-zinc-500">
508
+ <template
509
+ v-if="yDescription('curveType')"
510
+ #tooltip
511
+ >
512
+ <Markdown
513
+ :source="yDescription('curveType')"
514
+ block
515
+ class="prose prose-sm prose-zinc"
516
+ />
517
+ </template>
518
+ {{ yTitle("curveType") }}
519
+ </FieldLabel>
520
+ <Select
521
+ :model-value="s.curveType"
522
+ @update:model-value="(v) => setYCurveType(i, v)"
523
+ >
524
+ <SelectTrigger class="w-full">
525
+ <SelectValue />
526
+ </SelectTrigger>
527
+ <SelectContent>
528
+ <SelectItem
529
+ v-for="opt in CURVE_OPTIONS"
530
+ :key="opt.value"
531
+ :value="opt.value"
532
+ >
533
+ {{ opt.label }}
534
+ </SelectItem>
535
+ </SelectContent>
536
+ </Select>
537
+ </Field>
538
+ <Field orientation="vertical">
539
+ <FieldLabel class="text-xs text-zinc-500">
540
+ <template
541
+ v-if="yDescription('lineWidth')"
542
+ #tooltip
543
+ >
544
+ <Markdown
545
+ :source="yDescription('lineWidth')"
546
+ block
547
+ class="prose prose-sm prose-zinc"
548
+ />
549
+ </template>
550
+ {{ yTitle("lineWidth") }}
551
+ </FieldLabel>
552
+ <InputGroup>
553
+ <InputGroupNumberField
554
+ :model-value="s.lineWidth"
555
+ :min="1"
556
+ @update:model-value="(v) => setYLineWidth(i, v)"
557
+ />
558
+ </InputGroup>
559
+ </Field>
560
+ </div>
561
+ <Field orientation="vertical">
562
+ <FieldLabel class="text-xs text-zinc-500">
563
+ <template
564
+ v-if="yDescription('dash')"
565
+ #tooltip
566
+ >
567
+ <Markdown
568
+ :source="yDescription('dash')"
569
+ block
570
+ class="prose prose-sm prose-zinc"
571
+ />
572
+ </template>
573
+ {{ yTitle("dash") }}
574
+ </FieldLabel>
575
+ <ExpressionEditor
576
+ :model-value="s.dash ?? ''"
577
+ result-type="list"
578
+ :extra-vars="dataSourceVars"
579
+ placeholder="留空为实线,如 [4, 4]"
580
+ @update:model-value="(v) => setYDash(i, v)"
581
+ />
582
+ </Field>
583
+ </template>
584
+
585
+ <!-- area -->
586
+ <div
587
+ v-else-if="s.chart === 'area'"
588
+ class="grid grid-cols-2 gap-3"
589
+ >
590
+ <Field orientation="vertical">
591
+ <FieldLabel class="text-xs text-zinc-500">
592
+ <template
593
+ v-if="yDescription('lineColor')"
594
+ #tooltip
595
+ >
596
+ <Markdown
597
+ :source="yDescription('lineColor')"
598
+ block
599
+ class="prose prose-sm prose-zinc"
600
+ />
601
+ </template>
602
+ {{ yTitle("lineColor") }}
603
+ </FieldLabel>
604
+ <ColorPicker
605
+ :model-value="s.lineColor ?? ''"
606
+ placeholder="同填充色"
607
+ @update:model-value="(v) => setYLineColor(i, v)"
608
+ />
609
+ </Field>
610
+ <Field orientation="vertical">
611
+ <FieldLabel class="text-xs text-zinc-500">
612
+ <template
613
+ v-if="yDescription('lineWidth')"
614
+ #tooltip
615
+ >
616
+ <Markdown
617
+ :source="yDescription('lineWidth')"
618
+ block
619
+ class="prose prose-sm prose-zinc"
620
+ />
621
+ </template>
622
+ {{ yTitle("lineWidth") }}
623
+ </FieldLabel>
624
+ <InputGroup>
625
+ <InputGroupNumberField
626
+ :model-value="s.lineWidth"
627
+ :min="1"
628
+ @update:model-value="(v) => setYLineWidth(i, v)"
629
+ />
630
+ </InputGroup>
631
+ </Field>
632
+ </div>
633
+
634
+ <!-- grouped / stacked bar -->
635
+ <Field
636
+ v-else-if="s.chart === 'groupedBar' || s.chart === 'stackedBar'"
637
+ orientation="vertical"
638
+ >
639
+ <FieldLabel class="text-xs text-zinc-500">
640
+ <template
641
+ v-if="yDescription('width')"
642
+ #tooltip
643
+ >
644
+ <Markdown
645
+ :source="yDescription('width')"
646
+ block
647
+ class="prose prose-sm prose-zinc"
648
+ />
649
+ </template>
650
+ {{ yTitle("width") }}
651
+ </FieldLabel>
652
+ <ExpressionEditor
653
+ :model-value="s.width ?? ''"
654
+ result-type="number"
655
+ :extra-vars="dataSourceVars"
656
+ placeholder="留空自动,如 24"
657
+ @update:model-value="(v) => setYWidth(i, v)"
658
+ />
659
+ </Field>
660
+
661
+ <!-- scatter -->
662
+ <Field
663
+ v-else-if="s.chart === 'scatter'"
664
+ orientation="vertical"
665
+ >
666
+ <FieldLabel class="text-xs text-zinc-500">
667
+ <template
668
+ v-if="yDescription('size')"
669
+ #tooltip
670
+ >
671
+ <Markdown
672
+ :source="yDescription('size')"
673
+ block
674
+ class="prose prose-sm prose-zinc"
675
+ />
676
+ </template>
677
+ {{ yTitle("size") }}
678
+ </FieldLabel>
679
+ <ExpressionEditor
680
+ :model-value="s.size ?? ''"
681
+ result-type="list"
682
+ :extra-vars="dataSourceVars"
683
+ placeholder="留空用默认大小,如 source1.map(r, r.weight)"
684
+ @update:model-value="(v) => setYSize(i, v)"
685
+ />
686
+ </Field>
687
+
688
+ <Field orientation="vertical">
689
+ <FieldLabel class="text-xs text-zinc-500">
690
+ <template
691
+ v-if="yDescription('label')"
692
+ #tooltip
693
+ >
694
+ <Markdown
695
+ :source="yDescription('label')"
696
+ block
697
+ class="prose prose-sm prose-zinc"
698
+ />
699
+ </template>
700
+ {{ yTitle("label") }}
701
+ </FieldLabel>
702
+ <LocaleField
703
+ translate-hint="chart series label"
704
+ :model-value="s.label"
705
+ @update:model-value="(v) => setYLabel(i, v)"
706
+ />
707
+ </Field>
462
708
  </div>
463
709
  <Button
464
710
  type="button"
@@ -470,65 +716,6 @@ function removeY(i) {
470
716
  </Button>
471
717
  </div>
472
718
  </Field>
473
-
474
- <Separator />
475
-
476
- <div class="grid grid-cols-2 gap-x-6 gap-y-3">
477
- <Field orientation="vertical">
478
- <FieldLabel class="text-xs text-zinc-500">
479
- <template
480
- v-if="fieldDescription('curveType')"
481
- #tooltip
482
- >
483
- <Markdown
484
- :source="fieldDescription('curveType')"
485
- block
486
- class="prose prose-sm prose-zinc"
487
- />
488
- </template>
489
- {{ fieldTitle("curveType") }}
490
- </FieldLabel>
491
- <Select
492
- :model-value="block.curveType"
493
- @update:model-value="setCurveType"
494
- >
495
- <SelectTrigger class="w-full">
496
- <SelectValue />
497
- </SelectTrigger>
498
- <SelectContent>
499
- <SelectItem
500
- v-for="opt in CURVE_OPTIONS"
501
- :key="opt.value"
502
- :value="opt.value"
503
- >
504
- {{ opt.label }}
505
- </SelectItem>
506
- </SelectContent>
507
- </Select>
508
- </Field>
509
- <Field orientation="vertical">
510
- <FieldLabel class="text-xs text-zinc-500">
511
- <template
512
- v-if="fieldDescription('lineWidth')"
513
- #tooltip
514
- >
515
- <Markdown
516
- :source="fieldDescription('lineWidth')"
517
- block
518
- class="prose prose-sm prose-zinc"
519
- />
520
- </template>
521
- {{ fieldTitle("lineWidth") }}
522
- </FieldLabel>
523
- <InputGroup>
524
- <InputGroupNumberField
525
- :model-value="block.lineWidth"
526
- :min="1"
527
- @update:model-value="setLineWidth"
528
- />
529
- </InputGroup>
530
- </Field>
531
- </div>
532
719
  </div>
533
720
  </div>
534
721
  </div>
@@ -4,7 +4,7 @@ type __VLS_ModelProps = {
4
4
  };
5
5
  declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
6
  "update:modelValue": (value: {
7
- readonly type: "com.shwfed.block.chart.line";
7
+ readonly type: "com.shwfed.block.chart.xy";
8
8
  readonly id: string;
9
9
  readonly caption?: readonly [{
10
10
  readonly locale: "zh";
@@ -22,9 +22,16 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
22
22
  readonly locale: "en" | "ja" | "ko";
23
23
  readonly message: string;
24
24
  }[]] | undefined;
25
+ readonly size?: string | undefined;
25
26
  readonly id: string;
26
27
  readonly color?: string | undefined;
28
+ readonly width?: string | undefined;
27
29
  readonly value: string;
30
+ readonly chart: "area" | "line" | "groupedBar" | "scatter" | "stackedBar";
31
+ readonly curveType: "linear" | "step" | "monotoneX" | "natural" | "basis" | "cardinal" | "catmullRom" | "stepAfter" | "stepBefore";
32
+ readonly lineWidth: number;
33
+ readonly dash?: string | undefined;
34
+ readonly lineColor?: string | undefined;
28
35
  }[];
29
36
  readonly displayName?: string | undefined;
30
37
  readonly compatibilityDate: "2026-05-17";
@@ -34,12 +41,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
34
41
  readonly id: string;
35
42
  readonly request?: string | undefined;
36
43
  }[];
37
- readonly curveType: "linear" | "step" | "monotoneX" | "natural" | "basis" | "cardinal" | "catmullRom" | "stepAfter" | "stepBefore";
38
- readonly lineWidth: number;
39
44
  }) => any;
40
45
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
41
46
  "onUpdate:modelValue"?: ((value: {
42
- readonly type: "com.shwfed.block.chart.line";
47
+ readonly type: "com.shwfed.block.chart.xy";
43
48
  readonly id: string;
44
49
  readonly caption?: readonly [{
45
50
  readonly locale: "zh";
@@ -57,9 +62,16 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
57
62
  readonly locale: "en" | "ja" | "ko";
58
63
  readonly message: string;
59
64
  }[]] | undefined;
65
+ readonly size?: string | undefined;
60
66
  readonly id: string;
61
67
  readonly color?: string | undefined;
68
+ readonly width?: string | undefined;
62
69
  readonly value: string;
70
+ readonly chart: "area" | "line" | "groupedBar" | "scatter" | "stackedBar";
71
+ readonly curveType: "linear" | "step" | "monotoneX" | "natural" | "basis" | "cardinal" | "catmullRom" | "stepAfter" | "stepBefore";
72
+ readonly lineWidth: number;
73
+ readonly dash?: string | undefined;
74
+ readonly lineColor?: string | undefined;
63
75
  }[];
64
76
  readonly displayName?: string | undefined;
65
77
  readonly compatibilityDate: "2026-05-17";
@@ -69,8 +81,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
69
81
  readonly id: string;
70
82
  readonly request?: string | undefined;
71
83
  }[];
72
- readonly curveType: "linear" | "step" | "monotoneX" | "natural" | "basis" | "cardinal" | "catmullRom" | "stepAfter" | "stepBefore";
73
- readonly lineWidth: number;
74
84
  }) => any) | undefined;
75
85
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
76
86
  declare const _default: typeof __VLS_export;
@@ -4,7 +4,7 @@ type __VLS_ModelProps = {
4
4
  };
5
5
  declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
6
  "update:block": (value: {
7
- readonly type: "com.shwfed.block.chart.line";
7
+ readonly type: "com.shwfed.block.chart.xy";
8
8
  readonly id: string;
9
9
  readonly caption?: readonly [{
10
10
  readonly locale: "zh";
@@ -22,9 +22,16 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
22
22
  readonly locale: "en" | "ja" | "ko";
23
23
  readonly message: string;
24
24
  }[]] | undefined;
25
+ readonly size?: string | undefined;
25
26
  readonly id: string;
26
27
  readonly color?: string | undefined;
28
+ readonly width?: string | undefined;
27
29
  readonly value: string;
30
+ readonly chart: "area" | "line" | "groupedBar" | "scatter" | "stackedBar";
31
+ readonly curveType: "linear" | "step" | "monotoneX" | "natural" | "basis" | "cardinal" | "catmullRom" | "stepAfter" | "stepBefore";
32
+ readonly lineWidth: number;
33
+ readonly dash?: string | undefined;
34
+ readonly lineColor?: string | undefined;
28
35
  }[];
29
36
  readonly displayName?: string | undefined;
30
37
  readonly compatibilityDate: "2026-05-17";
@@ -34,12 +41,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
34
41
  readonly id: string;
35
42
  readonly request?: string | undefined;
36
43
  }[];
37
- readonly curveType: "linear" | "step" | "monotoneX" | "natural" | "basis" | "cardinal" | "catmullRom" | "stepAfter" | "stepBefore";
38
- readonly lineWidth: number;
39
44
  }) => any;
40
45
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
41
46
  "onUpdate:block"?: ((value: {
42
- readonly type: "com.shwfed.block.chart.line";
47
+ readonly type: "com.shwfed.block.chart.xy";
43
48
  readonly id: string;
44
49
  readonly caption?: readonly [{
45
50
  readonly locale: "zh";
@@ -57,9 +62,16 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
57
62
  readonly locale: "en" | "ja" | "ko";
58
63
  readonly message: string;
59
64
  }[]] | undefined;
65
+ readonly size?: string | undefined;
60
66
  readonly id: string;
61
67
  readonly color?: string | undefined;
68
+ readonly width?: string | undefined;
62
69
  readonly value: string;
70
+ readonly chart: "area" | "line" | "groupedBar" | "scatter" | "stackedBar";
71
+ readonly curveType: "linear" | "step" | "monotoneX" | "natural" | "basis" | "cardinal" | "catmullRom" | "stepAfter" | "stepBefore";
72
+ readonly lineWidth: number;
73
+ readonly dash?: string | undefined;
74
+ readonly lineColor?: string | undefined;
63
75
  }[];
64
76
  readonly displayName?: string | undefined;
65
77
  readonly compatibilityDate: "2026-05-17";
@@ -69,8 +81,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
69
81
  readonly id: string;
70
82
  readonly request?: string | undefined;
71
83
  }[];
72
- readonly curveType: "linear" | "step" | "monotoneX" | "natural" | "basis" | "cardinal" | "catmullRom" | "stepAfter" | "stepBefore";
73
- readonly lineWidth: number;
74
84
  }) => any) | undefined;
75
85
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
76
86
  declare const _default: typeof __VLS_export;