@cardenelabs/dragon 0.12.0 → 0.13.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.
- package/README.md +74 -58
- package/dist/index.cjs +2863 -119
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +544 -2
- package/dist/index.d.ts +544 -2
- package/dist/index.js +2863 -119
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/compile.ts +457 -188
- package/src/input-size.ts +9 -1
- package/src/json-parser.ts +259 -1
- package/src/schemas/diagram.json +985 -3
- package/src/types.ts +39 -1
- package/src/v05/parser-types.ts +17 -0
- package/src/v05/parser.ts +544 -20
- package/src/v05/readout-table.generated.ts +1088 -0
package/src/schemas/diagram.json
CHANGED
|
@@ -141,14 +141,40 @@
|
|
|
141
141
|
"tone": {
|
|
142
142
|
"type": "string",
|
|
143
143
|
"description": "箱の色調。 success / warning 等の別名も使える。",
|
|
144
|
-
"enum": [
|
|
144
|
+
"enum": [
|
|
145
|
+
"accent",
|
|
146
|
+
"teal",
|
|
147
|
+
"success",
|
|
148
|
+
"error",
|
|
149
|
+
"warning",
|
|
150
|
+
"info",
|
|
151
|
+
"成功",
|
|
152
|
+
"失敗",
|
|
153
|
+
"警告",
|
|
154
|
+
"情報",
|
|
155
|
+
"中立",
|
|
156
|
+
"neutral"
|
|
157
|
+
]
|
|
145
158
|
},
|
|
146
159
|
"color": {
|
|
147
160
|
"type": "string",
|
|
148
161
|
"description": "箱の色名、または # で始まる parts の色番号。",
|
|
149
162
|
"anyOf": [
|
|
150
163
|
{
|
|
151
|
-
"enum": [
|
|
164
|
+
"enum": [
|
|
165
|
+
"accent",
|
|
166
|
+
"teal",
|
|
167
|
+
"success",
|
|
168
|
+
"error",
|
|
169
|
+
"warning",
|
|
170
|
+
"info",
|
|
171
|
+
"成功",
|
|
172
|
+
"失敗",
|
|
173
|
+
"警告",
|
|
174
|
+
"情報",
|
|
175
|
+
"中立",
|
|
176
|
+
"neutral"
|
|
177
|
+
]
|
|
152
178
|
},
|
|
153
179
|
{
|
|
154
180
|
"pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
|
|
@@ -226,6 +252,122 @@
|
|
|
226
252
|
"type": "number"
|
|
227
253
|
}
|
|
228
254
|
}
|
|
255
|
+
},
|
|
256
|
+
"visibleIf": {
|
|
257
|
+
"type": "string",
|
|
258
|
+
"description": "その箱を出すかどうかの条件。 状態を差し込める文字列で、\"0\" / \"false\" / 空文字が偽、それ以外は真。"
|
|
259
|
+
},
|
|
260
|
+
"title": {
|
|
261
|
+
"type": "string",
|
|
262
|
+
"description": "箱に出す題。 書かなければ name がそのまま題になる。 name は図の中で 1 つに決まる必要があるが、題は重なってよい。"
|
|
263
|
+
},
|
|
264
|
+
"shape": {
|
|
265
|
+
"type": "object",
|
|
266
|
+
"description": "箱の中に描く図形。 水位 / 角度 / 半径を状態で動かせる。 kind ごとに書ける欄が違う (rect / circle / arc / wave / polygon)。",
|
|
267
|
+
"required": ["kind"],
|
|
268
|
+
"properties": {
|
|
269
|
+
"kind": {
|
|
270
|
+
"type": "string",
|
|
271
|
+
"enum": ["rect", "circle", "arc", "wave", "polygon"]
|
|
272
|
+
},
|
|
273
|
+
"source": {
|
|
274
|
+
"type": ["number", "string"]
|
|
275
|
+
},
|
|
276
|
+
"fillMax": {
|
|
277
|
+
"type": "number"
|
|
278
|
+
},
|
|
279
|
+
"orient": {
|
|
280
|
+
"type": "string",
|
|
281
|
+
"enum": ["up", "down", "left", "right"]
|
|
282
|
+
},
|
|
283
|
+
"radius": {
|
|
284
|
+
"type": ["number", "string"]
|
|
285
|
+
},
|
|
286
|
+
"fillProgress": {
|
|
287
|
+
"type": ["number", "string"]
|
|
288
|
+
},
|
|
289
|
+
"innerRadius": {
|
|
290
|
+
"type": "number"
|
|
291
|
+
},
|
|
292
|
+
"outerRadius": {
|
|
293
|
+
"type": "number"
|
|
294
|
+
},
|
|
295
|
+
"startAngle": {
|
|
296
|
+
"type": "number"
|
|
297
|
+
},
|
|
298
|
+
"angle": {
|
|
299
|
+
"type": ["number", "string"]
|
|
300
|
+
},
|
|
301
|
+
"sweepMax": {
|
|
302
|
+
"type": "number"
|
|
303
|
+
},
|
|
304
|
+
"level": {
|
|
305
|
+
"type": ["number", "string"]
|
|
306
|
+
},
|
|
307
|
+
"amplitude": {
|
|
308
|
+
"type": "number"
|
|
309
|
+
},
|
|
310
|
+
"frequency": {
|
|
311
|
+
"type": "number"
|
|
312
|
+
},
|
|
313
|
+
"waveHeight": {
|
|
314
|
+
"type": "number"
|
|
315
|
+
},
|
|
316
|
+
"sides": {
|
|
317
|
+
"type": "number"
|
|
318
|
+
},
|
|
319
|
+
"rotation": {
|
|
320
|
+
"type": ["number", "string"]
|
|
321
|
+
},
|
|
322
|
+
"fill": {
|
|
323
|
+
"type": "string"
|
|
324
|
+
},
|
|
325
|
+
"stroke": {
|
|
326
|
+
"type": "string"
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
"additionalProperties": false,
|
|
330
|
+
"oneOf": [
|
|
331
|
+
{
|
|
332
|
+
"properties": {
|
|
333
|
+
"kind": {
|
|
334
|
+
"enum": ["rect"]
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"required": ["source", "fillMax"]
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"properties": {
|
|
341
|
+
"kind": {
|
|
342
|
+
"enum": ["circle"]
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"properties": {
|
|
348
|
+
"kind": {
|
|
349
|
+
"enum": ["arc"]
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
"required": ["angle"]
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"properties": {
|
|
356
|
+
"kind": {
|
|
357
|
+
"enum": ["wave"]
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
"required": ["level", "amplitude"]
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"properties": {
|
|
364
|
+
"kind": {
|
|
365
|
+
"enum": ["polygon"]
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
"required": ["sides"]
|
|
369
|
+
}
|
|
370
|
+
]
|
|
229
371
|
}
|
|
230
372
|
}
|
|
231
373
|
}
|
|
@@ -258,7 +400,20 @@
|
|
|
258
400
|
},
|
|
259
401
|
"tone": {
|
|
260
402
|
"type": "string",
|
|
261
|
-
"enum": [
|
|
403
|
+
"enum": [
|
|
404
|
+
"accent",
|
|
405
|
+
"teal",
|
|
406
|
+
"success",
|
|
407
|
+
"error",
|
|
408
|
+
"warning",
|
|
409
|
+
"info",
|
|
410
|
+
"成功",
|
|
411
|
+
"失敗",
|
|
412
|
+
"警告",
|
|
413
|
+
"情報",
|
|
414
|
+
"中立",
|
|
415
|
+
"neutral"
|
|
416
|
+
],
|
|
262
417
|
"description": "矢印の色調。 success / 成功 等の別名も使える。"
|
|
263
418
|
},
|
|
264
419
|
"style": {
|
|
@@ -274,6 +429,11 @@
|
|
|
274
429
|
"type": "string",
|
|
275
430
|
"description": "ER の多重度 (1..N 等、 kind: er 用)"
|
|
276
431
|
},
|
|
432
|
+
"side": {
|
|
433
|
+
"type": "string",
|
|
434
|
+
"enum": ["top", "right", "bottom", "left"],
|
|
435
|
+
"description": "矢印がどの辺から出るか。 書かなければ描画側が自動で選ぶ。"
|
|
436
|
+
},
|
|
277
437
|
"labelOffsetX": {
|
|
278
438
|
"type": "number",
|
|
279
439
|
"description": "ラベル位置 x 調整"
|
|
@@ -503,6 +663,828 @@
|
|
|
503
663
|
}
|
|
504
664
|
}
|
|
505
665
|
}
|
|
666
|
+
},
|
|
667
|
+
"readouts": {
|
|
668
|
+
"type": "array",
|
|
669
|
+
"description": "値を見せる部品。 状態の値を割合の輪 / 数え上げ / 目盛りで出す。 箱ではないので縦列に載らず、図全体に 1 つの並びとして持つ。",
|
|
670
|
+
"items": {
|
|
671
|
+
"type": "object",
|
|
672
|
+
"required": ["id", "kind"],
|
|
673
|
+
"additionalProperties": false,
|
|
674
|
+
"properties": {
|
|
675
|
+
"id": {
|
|
676
|
+
"type": "string",
|
|
677
|
+
"minLength": 1
|
|
678
|
+
},
|
|
679
|
+
"kind": {
|
|
680
|
+
"type": "string",
|
|
681
|
+
"enum": [
|
|
682
|
+
"activity-feed",
|
|
683
|
+
"alert-banner",
|
|
684
|
+
"array-bar",
|
|
685
|
+
"array-list",
|
|
686
|
+
"article-preview",
|
|
687
|
+
"attendance-grid",
|
|
688
|
+
"avatar",
|
|
689
|
+
"badge",
|
|
690
|
+
"bar",
|
|
691
|
+
"breadcrumb",
|
|
692
|
+
"bubble-chart",
|
|
693
|
+
"bullet-chart",
|
|
694
|
+
"calendar-heatmap",
|
|
695
|
+
"calendar-month",
|
|
696
|
+
"calendar-week",
|
|
697
|
+
"candlestick",
|
|
698
|
+
"cart-summary",
|
|
699
|
+
"chat-bubble",
|
|
700
|
+
"checklist",
|
|
701
|
+
"chess-board",
|
|
702
|
+
"circular-gauge",
|
|
703
|
+
"commit-list",
|
|
704
|
+
"confidence-meter",
|
|
705
|
+
"countup",
|
|
706
|
+
"coupon-code",
|
|
707
|
+
"delta",
|
|
708
|
+
"diff-counter",
|
|
709
|
+
"donut",
|
|
710
|
+
"event-log",
|
|
711
|
+
"file-dropzone",
|
|
712
|
+
"form-summary",
|
|
713
|
+
"fuel-bar",
|
|
714
|
+
"funnel",
|
|
715
|
+
"gantt",
|
|
716
|
+
"gauge",
|
|
717
|
+
"grade",
|
|
718
|
+
"heat-cell",
|
|
719
|
+
"icon-tile",
|
|
720
|
+
"kanban-board",
|
|
721
|
+
"kpi-card",
|
|
722
|
+
"kpi-comparison",
|
|
723
|
+
"kpi-trend-tile",
|
|
724
|
+
"leaderboard",
|
|
725
|
+
"line-chart",
|
|
726
|
+
"log-stream",
|
|
727
|
+
"map-pin",
|
|
728
|
+
"matrix",
|
|
729
|
+
"media-player",
|
|
730
|
+
"metrics-grid",
|
|
731
|
+
"mini-map",
|
|
732
|
+
"notification",
|
|
733
|
+
"number-board",
|
|
734
|
+
"order-status",
|
|
735
|
+
"org-chart-mini",
|
|
736
|
+
"otp-input",
|
|
737
|
+
"password-strength",
|
|
738
|
+
"path-progress",
|
|
739
|
+
"percent-ring",
|
|
740
|
+
"pill-group",
|
|
741
|
+
"podium",
|
|
742
|
+
"polar-area",
|
|
743
|
+
"poll-bar",
|
|
744
|
+
"price-tag",
|
|
745
|
+
"pricing-tier",
|
|
746
|
+
"priority-badge",
|
|
747
|
+
"progress-group",
|
|
748
|
+
"quick-poll-emoji",
|
|
749
|
+
"radar",
|
|
750
|
+
"rating",
|
|
751
|
+
"rating-thumb",
|
|
752
|
+
"reaction-bar",
|
|
753
|
+
"read-receipt",
|
|
754
|
+
"roadmap",
|
|
755
|
+
"sankey",
|
|
756
|
+
"search-result",
|
|
757
|
+
"sequence-timeline",
|
|
758
|
+
"service-health",
|
|
759
|
+
"share-buttons",
|
|
760
|
+
"slope",
|
|
761
|
+
"song-queue",
|
|
762
|
+
"sparkline",
|
|
763
|
+
"spinner",
|
|
764
|
+
"stacked-bar",
|
|
765
|
+
"stat",
|
|
766
|
+
"status-dot",
|
|
767
|
+
"status-timeline",
|
|
768
|
+
"step-indicator",
|
|
769
|
+
"step-progress",
|
|
770
|
+
"stopwatch",
|
|
771
|
+
"tag-cloud",
|
|
772
|
+
"terminal",
|
|
773
|
+
"thermometer",
|
|
774
|
+
"thread-summary",
|
|
775
|
+
"timeline-vertical",
|
|
776
|
+
"timezone-clock",
|
|
777
|
+
"toc-nav",
|
|
778
|
+
"token-list",
|
|
779
|
+
"traffic-light",
|
|
780
|
+
"treemap",
|
|
781
|
+
"typewriter",
|
|
782
|
+
"user-presence",
|
|
783
|
+
"user-stack",
|
|
784
|
+
"venn",
|
|
785
|
+
"video-card",
|
|
786
|
+
"voice-message",
|
|
787
|
+
"waterfall",
|
|
788
|
+
"weather-forecast"
|
|
789
|
+
]
|
|
790
|
+
},
|
|
791
|
+
"additionsSource": {
|
|
792
|
+
"type": "string"
|
|
793
|
+
},
|
|
794
|
+
"bodySource": {
|
|
795
|
+
"type": "string"
|
|
796
|
+
},
|
|
797
|
+
"canvasH": {
|
|
798
|
+
"type": "number"
|
|
799
|
+
},
|
|
800
|
+
"canvasW": {
|
|
801
|
+
"type": "number"
|
|
802
|
+
},
|
|
803
|
+
"caption": {
|
|
804
|
+
"type": "string"
|
|
805
|
+
},
|
|
806
|
+
"cellGap": {
|
|
807
|
+
"type": "number"
|
|
808
|
+
},
|
|
809
|
+
"cellSize": {
|
|
810
|
+
"type": "number"
|
|
811
|
+
},
|
|
812
|
+
"charMs": {
|
|
813
|
+
"type": "number"
|
|
814
|
+
},
|
|
815
|
+
"color": {
|
|
816
|
+
"type": "string"
|
|
817
|
+
},
|
|
818
|
+
"colorA": {
|
|
819
|
+
"type": "string"
|
|
820
|
+
},
|
|
821
|
+
"colorAccent": {
|
|
822
|
+
"type": "string"
|
|
823
|
+
},
|
|
824
|
+
"colorActive": {
|
|
825
|
+
"type": "string"
|
|
826
|
+
},
|
|
827
|
+
"colorActual": {
|
|
828
|
+
"type": "string"
|
|
829
|
+
},
|
|
830
|
+
"colorAdd": {
|
|
831
|
+
"type": "string"
|
|
832
|
+
},
|
|
833
|
+
"colorApplied": {
|
|
834
|
+
"type": "string"
|
|
835
|
+
},
|
|
836
|
+
"colorB": {
|
|
837
|
+
"type": "string"
|
|
838
|
+
},
|
|
839
|
+
"colorBar": {
|
|
840
|
+
"type": "string"
|
|
841
|
+
},
|
|
842
|
+
"colorBottom": {
|
|
843
|
+
"type": "string"
|
|
844
|
+
},
|
|
845
|
+
"colorDel": {
|
|
846
|
+
"type": "string"
|
|
847
|
+
},
|
|
848
|
+
"colorDiscount": {
|
|
849
|
+
"type": "string"
|
|
850
|
+
},
|
|
851
|
+
"colorDown": {
|
|
852
|
+
"type": "string"
|
|
853
|
+
},
|
|
854
|
+
"colorFocus": {
|
|
855
|
+
"type": "string"
|
|
856
|
+
},
|
|
857
|
+
"colorMap": {
|
|
858
|
+
"type": "array",
|
|
859
|
+
"minItems": 1,
|
|
860
|
+
"items": {
|
|
861
|
+
"type": "object",
|
|
862
|
+
"required": ["status", "color"],
|
|
863
|
+
"additionalProperties": false,
|
|
864
|
+
"properties": {
|
|
865
|
+
"status": {
|
|
866
|
+
"type": "string"
|
|
867
|
+
},
|
|
868
|
+
"color": {
|
|
869
|
+
"type": "string"
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
},
|
|
874
|
+
"colorNeg": {
|
|
875
|
+
"type": "string"
|
|
876
|
+
},
|
|
877
|
+
"colorNew": {
|
|
878
|
+
"type": "string"
|
|
879
|
+
},
|
|
880
|
+
"colorOld": {
|
|
881
|
+
"type": "string"
|
|
882
|
+
},
|
|
883
|
+
"colorOther": {
|
|
884
|
+
"type": "string"
|
|
885
|
+
},
|
|
886
|
+
"colorPending": {
|
|
887
|
+
"type": "string"
|
|
888
|
+
},
|
|
889
|
+
"colorPlay": {
|
|
890
|
+
"type": "string"
|
|
891
|
+
},
|
|
892
|
+
"colorPos": {
|
|
893
|
+
"type": "string"
|
|
894
|
+
},
|
|
895
|
+
"colorRead": {
|
|
896
|
+
"type": "string"
|
|
897
|
+
},
|
|
898
|
+
"colorSelf": {
|
|
899
|
+
"type": "string"
|
|
900
|
+
},
|
|
901
|
+
"colorSource": {
|
|
902
|
+
"type": "string"
|
|
903
|
+
},
|
|
904
|
+
"colorStrong": {
|
|
905
|
+
"type": "string"
|
|
906
|
+
},
|
|
907
|
+
"colorTop": {
|
|
908
|
+
"type": "string"
|
|
909
|
+
},
|
|
910
|
+
"colorTotal": {
|
|
911
|
+
"type": "string"
|
|
912
|
+
},
|
|
913
|
+
"colorUnread": {
|
|
914
|
+
"type": "string"
|
|
915
|
+
},
|
|
916
|
+
"colorUp": {
|
|
917
|
+
"type": "string"
|
|
918
|
+
},
|
|
919
|
+
"colorWeak": {
|
|
920
|
+
"type": "string"
|
|
921
|
+
},
|
|
922
|
+
"colorWinner": {
|
|
923
|
+
"type": "string"
|
|
924
|
+
},
|
|
925
|
+
"colors": {
|
|
926
|
+
"type": "array",
|
|
927
|
+
"items": {
|
|
928
|
+
"type": "string"
|
|
929
|
+
}
|
|
930
|
+
},
|
|
931
|
+
"columnWidth": {
|
|
932
|
+
"type": "number"
|
|
933
|
+
},
|
|
934
|
+
"comparisonSource": {
|
|
935
|
+
"type": "string"
|
|
936
|
+
},
|
|
937
|
+
"count": {
|
|
938
|
+
"type": "number"
|
|
939
|
+
},
|
|
940
|
+
"currency": {
|
|
941
|
+
"type": "string"
|
|
942
|
+
},
|
|
943
|
+
"currentSource": {
|
|
944
|
+
"type": "string"
|
|
945
|
+
},
|
|
946
|
+
"decimals": {
|
|
947
|
+
"type": "number"
|
|
948
|
+
},
|
|
949
|
+
"deletionsSource": {
|
|
950
|
+
"type": "string"
|
|
951
|
+
},
|
|
952
|
+
"duration": {
|
|
953
|
+
"type": "number"
|
|
954
|
+
},
|
|
955
|
+
"durationMs": {
|
|
956
|
+
"type": "number"
|
|
957
|
+
},
|
|
958
|
+
"durationSource": {
|
|
959
|
+
"type": "string"
|
|
960
|
+
},
|
|
961
|
+
"fill": {
|
|
962
|
+
"type": "boolean"
|
|
963
|
+
},
|
|
964
|
+
"highThreshold": {
|
|
965
|
+
"type": "number"
|
|
966
|
+
},
|
|
967
|
+
"history": {
|
|
968
|
+
"type": "number"
|
|
969
|
+
},
|
|
970
|
+
"historySource": {
|
|
971
|
+
"type": "string"
|
|
972
|
+
},
|
|
973
|
+
"innerRatio": {
|
|
974
|
+
"type": "number"
|
|
975
|
+
},
|
|
976
|
+
"itemTemplate": {
|
|
977
|
+
"type": "string"
|
|
978
|
+
},
|
|
979
|
+
"kindSource": {
|
|
980
|
+
"type": "string"
|
|
981
|
+
},
|
|
982
|
+
"label": {
|
|
983
|
+
"type": "string"
|
|
984
|
+
},
|
|
985
|
+
"labelA": {
|
|
986
|
+
"type": "string"
|
|
987
|
+
},
|
|
988
|
+
"labelB": {
|
|
989
|
+
"type": "string"
|
|
990
|
+
},
|
|
991
|
+
"labelSource": {
|
|
992
|
+
"type": "string"
|
|
993
|
+
},
|
|
994
|
+
"lowThreshold": {
|
|
995
|
+
"type": "number"
|
|
996
|
+
},
|
|
997
|
+
"map": {
|
|
998
|
+
"type": "array",
|
|
999
|
+
"minItems": 1,
|
|
1000
|
+
"items": {
|
|
1001
|
+
"type": "object",
|
|
1002
|
+
"required": ["value", "color"],
|
|
1003
|
+
"additionalProperties": false,
|
|
1004
|
+
"properties": {
|
|
1005
|
+
"value": {
|
|
1006
|
+
"type": "string"
|
|
1007
|
+
},
|
|
1008
|
+
"color": {
|
|
1009
|
+
"type": "string"
|
|
1010
|
+
},
|
|
1011
|
+
"label": {
|
|
1012
|
+
"type": "string"
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
},
|
|
1017
|
+
"max": {
|
|
1018
|
+
"type": "number"
|
|
1019
|
+
},
|
|
1020
|
+
"maxSize": {
|
|
1021
|
+
"type": "number"
|
|
1022
|
+
},
|
|
1023
|
+
"membersSource": {
|
|
1024
|
+
"type": "string"
|
|
1025
|
+
},
|
|
1026
|
+
"min": {
|
|
1027
|
+
"type": "number"
|
|
1028
|
+
},
|
|
1029
|
+
"minSize": {
|
|
1030
|
+
"type": "number"
|
|
1031
|
+
},
|
|
1032
|
+
"monthName": {
|
|
1033
|
+
"type": "string"
|
|
1034
|
+
},
|
|
1035
|
+
"newSource": {
|
|
1036
|
+
"type": "string"
|
|
1037
|
+
},
|
|
1038
|
+
"oldSource": {
|
|
1039
|
+
"type": "string"
|
|
1040
|
+
},
|
|
1041
|
+
"pathD": {
|
|
1042
|
+
"type": "string"
|
|
1043
|
+
},
|
|
1044
|
+
"playingSource": {
|
|
1045
|
+
"type": "string"
|
|
1046
|
+
},
|
|
1047
|
+
"prefix": {
|
|
1048
|
+
"type": "string"
|
|
1049
|
+
},
|
|
1050
|
+
"prevSource": {
|
|
1051
|
+
"type": "string"
|
|
1052
|
+
},
|
|
1053
|
+
"progressSource": {
|
|
1054
|
+
"type": "string"
|
|
1055
|
+
},
|
|
1056
|
+
"rMax": {
|
|
1057
|
+
"type": "number"
|
|
1058
|
+
},
|
|
1059
|
+
"rMin": {
|
|
1060
|
+
"type": "number"
|
|
1061
|
+
},
|
|
1062
|
+
"rangeAvg": {
|
|
1063
|
+
"type": "number"
|
|
1064
|
+
},
|
|
1065
|
+
"rangeBad": {
|
|
1066
|
+
"type": "number"
|
|
1067
|
+
},
|
|
1068
|
+
"runningSource": {
|
|
1069
|
+
"type": "string"
|
|
1070
|
+
},
|
|
1071
|
+
"segments": {
|
|
1072
|
+
"type": "number"
|
|
1073
|
+
},
|
|
1074
|
+
"showValue": {
|
|
1075
|
+
"type": "boolean"
|
|
1076
|
+
},
|
|
1077
|
+
"size": {
|
|
1078
|
+
"type": "number"
|
|
1079
|
+
},
|
|
1080
|
+
"source": {
|
|
1081
|
+
"type": "string"
|
|
1082
|
+
},
|
|
1083
|
+
"sourceA": {
|
|
1084
|
+
"type": "string"
|
|
1085
|
+
},
|
|
1086
|
+
"sourceB": {
|
|
1087
|
+
"type": "string"
|
|
1088
|
+
},
|
|
1089
|
+
"stepsSource": {
|
|
1090
|
+
"type": "string"
|
|
1091
|
+
},
|
|
1092
|
+
"strokeWidth": {
|
|
1093
|
+
"type": "number"
|
|
1094
|
+
},
|
|
1095
|
+
"suffix": {
|
|
1096
|
+
"type": "string"
|
|
1097
|
+
},
|
|
1098
|
+
"targetSource": {
|
|
1099
|
+
"type": "string"
|
|
1100
|
+
},
|
|
1101
|
+
"textSource": {
|
|
1102
|
+
"type": "string"
|
|
1103
|
+
},
|
|
1104
|
+
"titleSource": {
|
|
1105
|
+
"type": "string"
|
|
1106
|
+
},
|
|
1107
|
+
"unit": {
|
|
1108
|
+
"type": "string"
|
|
1109
|
+
},
|
|
1110
|
+
"viewH": {
|
|
1111
|
+
"type": "number"
|
|
1112
|
+
},
|
|
1113
|
+
"viewW": {
|
|
1114
|
+
"type": "number"
|
|
1115
|
+
},
|
|
1116
|
+
"xMax": {
|
|
1117
|
+
"type": "number"
|
|
1118
|
+
},
|
|
1119
|
+
"xMin": {
|
|
1120
|
+
"type": "number"
|
|
1121
|
+
},
|
|
1122
|
+
"yMax": {
|
|
1123
|
+
"type": "number"
|
|
1124
|
+
},
|
|
1125
|
+
"yMin": {
|
|
1126
|
+
"type": "number"
|
|
1127
|
+
}
|
|
1128
|
+
},
|
|
1129
|
+
"oneOf": [
|
|
1130
|
+
{
|
|
1131
|
+
"properties": {
|
|
1132
|
+
"kind": {
|
|
1133
|
+
"enum": ["bar"]
|
|
1134
|
+
}
|
|
1135
|
+
},
|
|
1136
|
+
"required": ["source", "min", "max"]
|
|
1137
|
+
},
|
|
1138
|
+
{
|
|
1139
|
+
"properties": {
|
|
1140
|
+
"kind": {
|
|
1141
|
+
"enum": ["gauge"]
|
|
1142
|
+
}
|
|
1143
|
+
},
|
|
1144
|
+
"required": ["source", "min", "max"]
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
"properties": {
|
|
1148
|
+
"kind": {
|
|
1149
|
+
"enum": ["stat"]
|
|
1150
|
+
}
|
|
1151
|
+
},
|
|
1152
|
+
"required": ["source"]
|
|
1153
|
+
},
|
|
1154
|
+
{
|
|
1155
|
+
"properties": {
|
|
1156
|
+
"kind": {
|
|
1157
|
+
"enum": ["sparkline"]
|
|
1158
|
+
}
|
|
1159
|
+
},
|
|
1160
|
+
"required": ["source"]
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
"properties": {
|
|
1164
|
+
"kind": {
|
|
1165
|
+
"enum": ["countup"]
|
|
1166
|
+
}
|
|
1167
|
+
},
|
|
1168
|
+
"required": ["source"]
|
|
1169
|
+
},
|
|
1170
|
+
{
|
|
1171
|
+
"properties": {
|
|
1172
|
+
"kind": {
|
|
1173
|
+
"enum": ["typewriter"]
|
|
1174
|
+
}
|
|
1175
|
+
},
|
|
1176
|
+
"required": ["source"]
|
|
1177
|
+
},
|
|
1178
|
+
{
|
|
1179
|
+
"properties": {
|
|
1180
|
+
"kind": {
|
|
1181
|
+
"enum": ["delta"]
|
|
1182
|
+
}
|
|
1183
|
+
},
|
|
1184
|
+
"required": ["source"]
|
|
1185
|
+
},
|
|
1186
|
+
{
|
|
1187
|
+
"properties": {
|
|
1188
|
+
"kind": {
|
|
1189
|
+
"enum": ["percent-ring"]
|
|
1190
|
+
}
|
|
1191
|
+
},
|
|
1192
|
+
"required": ["source", "max"]
|
|
1193
|
+
},
|
|
1194
|
+
{
|
|
1195
|
+
"properties": {
|
|
1196
|
+
"kind": {
|
|
1197
|
+
"enum": ["heat-cell"]
|
|
1198
|
+
}
|
|
1199
|
+
},
|
|
1200
|
+
"required": ["source", "min", "max"]
|
|
1201
|
+
},
|
|
1202
|
+
{
|
|
1203
|
+
"properties": {
|
|
1204
|
+
"kind": {
|
|
1205
|
+
"enum": ["donut"]
|
|
1206
|
+
}
|
|
1207
|
+
},
|
|
1208
|
+
"required": ["source"]
|
|
1209
|
+
},
|
|
1210
|
+
{
|
|
1211
|
+
"properties": {
|
|
1212
|
+
"kind": {
|
|
1213
|
+
"enum": ["radar"]
|
|
1214
|
+
}
|
|
1215
|
+
},
|
|
1216
|
+
"required": ["source", "max"]
|
|
1217
|
+
},
|
|
1218
|
+
{
|
|
1219
|
+
"properties": {
|
|
1220
|
+
"kind": {
|
|
1221
|
+
"enum": ["step-progress"]
|
|
1222
|
+
}
|
|
1223
|
+
},
|
|
1224
|
+
"required": ["source", "stepsSource"]
|
|
1225
|
+
},
|
|
1226
|
+
{
|
|
1227
|
+
"properties": {
|
|
1228
|
+
"kind": {
|
|
1229
|
+
"enum": ["status-dot"]
|
|
1230
|
+
}
|
|
1231
|
+
},
|
|
1232
|
+
"required": ["source", "map"]
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
"properties": {
|
|
1236
|
+
"kind": {
|
|
1237
|
+
"enum": ["notification"]
|
|
1238
|
+
}
|
|
1239
|
+
},
|
|
1240
|
+
"required": ["kindSource", "titleSource"]
|
|
1241
|
+
},
|
|
1242
|
+
{
|
|
1243
|
+
"properties": {
|
|
1244
|
+
"kind": {
|
|
1245
|
+
"enum": ["kpi-card"]
|
|
1246
|
+
}
|
|
1247
|
+
},
|
|
1248
|
+
"required": ["source", "historySource", "comparisonSource"]
|
|
1249
|
+
},
|
|
1250
|
+
{
|
|
1251
|
+
"properties": {
|
|
1252
|
+
"kind": {
|
|
1253
|
+
"enum": ["status-timeline"]
|
|
1254
|
+
}
|
|
1255
|
+
},
|
|
1256
|
+
"required": ["source"]
|
|
1257
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
"properties": {
|
|
1260
|
+
"kind": {
|
|
1261
|
+
"enum": [
|
|
1262
|
+
"activity-feed",
|
|
1263
|
+
"alert-banner",
|
|
1264
|
+
"array-list",
|
|
1265
|
+
"article-preview",
|
|
1266
|
+
"avatar",
|
|
1267
|
+
"breadcrumb",
|
|
1268
|
+
"calendar-month",
|
|
1269
|
+
"calendar-week",
|
|
1270
|
+
"cart-summary",
|
|
1271
|
+
"chat-bubble",
|
|
1272
|
+
"checklist",
|
|
1273
|
+
"chess-board",
|
|
1274
|
+
"commit-list",
|
|
1275
|
+
"confidence-meter",
|
|
1276
|
+
"coupon-code",
|
|
1277
|
+
"event-log",
|
|
1278
|
+
"file-dropzone",
|
|
1279
|
+
"form-summary",
|
|
1280
|
+
"fuel-bar",
|
|
1281
|
+
"funnel",
|
|
1282
|
+
"grade",
|
|
1283
|
+
"icon-tile",
|
|
1284
|
+
"kanban-board",
|
|
1285
|
+
"kpi-comparison",
|
|
1286
|
+
"leaderboard",
|
|
1287
|
+
"log-stream",
|
|
1288
|
+
"metrics-grid",
|
|
1289
|
+
"number-board",
|
|
1290
|
+
"org-chart-mini",
|
|
1291
|
+
"otp-input",
|
|
1292
|
+
"password-strength",
|
|
1293
|
+
"pill-group",
|
|
1294
|
+
"podium",
|
|
1295
|
+
"poll-bar",
|
|
1296
|
+
"pricing-tier",
|
|
1297
|
+
"priority-badge",
|
|
1298
|
+
"quick-poll-emoji",
|
|
1299
|
+
"rating",
|
|
1300
|
+
"rating-thumb",
|
|
1301
|
+
"reaction-bar",
|
|
1302
|
+
"read-receipt",
|
|
1303
|
+
"roadmap",
|
|
1304
|
+
"sankey",
|
|
1305
|
+
"search-result",
|
|
1306
|
+
"service-health",
|
|
1307
|
+
"share-buttons",
|
|
1308
|
+
"song-queue",
|
|
1309
|
+
"stopwatch",
|
|
1310
|
+
"tag-cloud",
|
|
1311
|
+
"terminal",
|
|
1312
|
+
"thread-summary",
|
|
1313
|
+
"timeline-vertical",
|
|
1314
|
+
"timezone-clock",
|
|
1315
|
+
"toc-nav",
|
|
1316
|
+
"token-list",
|
|
1317
|
+
"traffic-light",
|
|
1318
|
+
"treemap",
|
|
1319
|
+
"user-presence",
|
|
1320
|
+
"user-stack",
|
|
1321
|
+
"venn",
|
|
1322
|
+
"video-card",
|
|
1323
|
+
"voice-message",
|
|
1324
|
+
"weather-forecast"
|
|
1325
|
+
]
|
|
1326
|
+
}
|
|
1327
|
+
},
|
|
1328
|
+
"required": ["source"]
|
|
1329
|
+
},
|
|
1330
|
+
{
|
|
1331
|
+
"properties": {
|
|
1332
|
+
"kind": {
|
|
1333
|
+
"enum": ["badge"]
|
|
1334
|
+
},
|
|
1335
|
+
"map": {
|
|
1336
|
+
"type": "array",
|
|
1337
|
+
"minItems": 1,
|
|
1338
|
+
"items": {
|
|
1339
|
+
"type": "object",
|
|
1340
|
+
"required": ["value", "color"],
|
|
1341
|
+
"additionalProperties": false,
|
|
1342
|
+
"properties": {
|
|
1343
|
+
"value": {
|
|
1344
|
+
"type": "string"
|
|
1345
|
+
},
|
|
1346
|
+
"color": {
|
|
1347
|
+
"type": "string"
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
},
|
|
1353
|
+
"required": ["source"]
|
|
1354
|
+
},
|
|
1355
|
+
{
|
|
1356
|
+
"properties": {
|
|
1357
|
+
"kind": {
|
|
1358
|
+
"enum": [
|
|
1359
|
+
"array-bar",
|
|
1360
|
+
"candlestick",
|
|
1361
|
+
"circular-gauge",
|
|
1362
|
+
"gantt",
|
|
1363
|
+
"line-chart",
|
|
1364
|
+
"matrix",
|
|
1365
|
+
"sequence-timeline",
|
|
1366
|
+
"slope",
|
|
1367
|
+
"thermometer",
|
|
1368
|
+
"waterfall"
|
|
1369
|
+
]
|
|
1370
|
+
}
|
|
1371
|
+
},
|
|
1372
|
+
"required": ["source", "min", "max"]
|
|
1373
|
+
},
|
|
1374
|
+
{
|
|
1375
|
+
"properties": {
|
|
1376
|
+
"kind": {
|
|
1377
|
+
"enum": ["attendance-grid"]
|
|
1378
|
+
}
|
|
1379
|
+
},
|
|
1380
|
+
"required": ["source", "membersSource"]
|
|
1381
|
+
},
|
|
1382
|
+
{
|
|
1383
|
+
"properties": {
|
|
1384
|
+
"kind": {
|
|
1385
|
+
"enum": ["bubble-chart"]
|
|
1386
|
+
}
|
|
1387
|
+
},
|
|
1388
|
+
"required": ["source", "xMin", "xMax", "yMin", "yMax", "rMin", "rMax"]
|
|
1389
|
+
},
|
|
1390
|
+
{
|
|
1391
|
+
"properties": {
|
|
1392
|
+
"kind": {
|
|
1393
|
+
"enum": ["bullet-chart"]
|
|
1394
|
+
}
|
|
1395
|
+
},
|
|
1396
|
+
"required": ["source", "targetSource", "max"]
|
|
1397
|
+
},
|
|
1398
|
+
{
|
|
1399
|
+
"properties": {
|
|
1400
|
+
"kind": {
|
|
1401
|
+
"enum": ["calendar-heatmap", "polar-area", "progress-group"]
|
|
1402
|
+
}
|
|
1403
|
+
},
|
|
1404
|
+
"required": ["source", "max"]
|
|
1405
|
+
},
|
|
1406
|
+
{
|
|
1407
|
+
"properties": {
|
|
1408
|
+
"kind": {
|
|
1409
|
+
"enum": ["diff-counter"]
|
|
1410
|
+
}
|
|
1411
|
+
},
|
|
1412
|
+
"required": ["additionsSource", "deletionsSource"]
|
|
1413
|
+
},
|
|
1414
|
+
{
|
|
1415
|
+
"properties": {
|
|
1416
|
+
"kind": {
|
|
1417
|
+
"enum": ["kpi-trend-tile"]
|
|
1418
|
+
}
|
|
1419
|
+
},
|
|
1420
|
+
"required": ["source", "prevSource", "historySource"]
|
|
1421
|
+
},
|
|
1422
|
+
{
|
|
1423
|
+
"properties": {
|
|
1424
|
+
"kind": {
|
|
1425
|
+
"enum": ["map-pin"]
|
|
1426
|
+
}
|
|
1427
|
+
},
|
|
1428
|
+
"required": ["source", "xMin", "xMax", "yMin", "yMax"]
|
|
1429
|
+
},
|
|
1430
|
+
{
|
|
1431
|
+
"properties": {
|
|
1432
|
+
"kind": {
|
|
1433
|
+
"enum": ["media-player"]
|
|
1434
|
+
}
|
|
1435
|
+
},
|
|
1436
|
+
"required": ["source", "durationSource", "playingSource"]
|
|
1437
|
+
},
|
|
1438
|
+
{
|
|
1439
|
+
"properties": {
|
|
1440
|
+
"kind": {
|
|
1441
|
+
"enum": ["mini-map"]
|
|
1442
|
+
}
|
|
1443
|
+
},
|
|
1444
|
+
"required": ["source", "canvasW", "canvasH"]
|
|
1445
|
+
},
|
|
1446
|
+
{
|
|
1447
|
+
"properties": {
|
|
1448
|
+
"kind": {
|
|
1449
|
+
"enum": ["order-status", "step-indicator"]
|
|
1450
|
+
}
|
|
1451
|
+
},
|
|
1452
|
+
"required": ["source", "stepsSource"]
|
|
1453
|
+
},
|
|
1454
|
+
{
|
|
1455
|
+
"properties": {
|
|
1456
|
+
"kind": {
|
|
1457
|
+
"enum": ["path-progress"]
|
|
1458
|
+
}
|
|
1459
|
+
},
|
|
1460
|
+
"required": ["source", "pathD"]
|
|
1461
|
+
},
|
|
1462
|
+
{
|
|
1463
|
+
"properties": {
|
|
1464
|
+
"kind": {
|
|
1465
|
+
"enum": ["price-tag"]
|
|
1466
|
+
}
|
|
1467
|
+
},
|
|
1468
|
+
"required": ["oldSource", "newSource"]
|
|
1469
|
+
},
|
|
1470
|
+
{
|
|
1471
|
+
"properties": {
|
|
1472
|
+
"kind": {
|
|
1473
|
+
"enum": ["spinner"]
|
|
1474
|
+
}
|
|
1475
|
+
},
|
|
1476
|
+
"required": ["source", "textSource"]
|
|
1477
|
+
},
|
|
1478
|
+
{
|
|
1479
|
+
"properties": {
|
|
1480
|
+
"kind": {
|
|
1481
|
+
"enum": ["stacked-bar"]
|
|
1482
|
+
}
|
|
1483
|
+
},
|
|
1484
|
+
"required": ["sourceA", "sourceB", "min", "max"]
|
|
1485
|
+
}
|
|
1486
|
+
]
|
|
1487
|
+
}
|
|
506
1488
|
}
|
|
507
1489
|
}
|
|
508
1490
|
}
|