@next-bricks/data-view 1.5.0 → 1.6.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.
Files changed (37) hide show
  1. package/dist/bricks.json +11 -7
  2. package/dist/chunks/1143.2494e37f.js +2 -0
  3. package/dist/chunks/1143.2494e37f.js.map +1 -0
  4. package/dist/chunks/3910.f416e4d3.js +2 -0
  5. package/dist/chunks/3910.f416e4d3.js.map +1 -0
  6. package/dist/chunks/bubbles-indicator.0568641b.js +2 -0
  7. package/dist/chunks/bubbles-indicator.0568641b.js.map +1 -0
  8. package/dist/chunks/globe-with-gear-indicator.25c9901b.js +2 -0
  9. package/dist/chunks/globe-with-gear-indicator.25c9901b.js.map +1 -0
  10. package/dist/chunks/{globe-with-halo-indicator.23e27349.js → globe-with-halo-indicator.5491f30c.js} +2 -2
  11. package/dist/chunks/{globe-with-halo-indicator.23e27349.js.map → globe-with-halo-indicator.5491f30c.js.map} +1 -1
  12. package/dist/chunks/main.363aec6f.js +2 -0
  13. package/dist/chunks/main.363aec6f.js.map +1 -0
  14. package/dist/examples.json +18 -15
  15. package/dist/images/0fec7781.png +0 -0
  16. package/dist/images/2235938c.png +0 -0
  17. package/dist/images/45a4740b.png +0 -0
  18. package/dist/images/81f40f95.png +0 -0
  19. package/dist/images/86a2105c.png +0 -0
  20. package/dist/images/a457f803.png +0 -0
  21. package/dist/images/b91eed9d.png +0 -0
  22. package/dist/{index.c11ec70a.js → index.699724db.js} +2 -2
  23. package/dist/index.699724db.js.map +1 -0
  24. package/dist/manifest.json +198 -164
  25. package/dist/types.json +308 -190
  26. package/dist-types/bootstrap.d.ts +1 -0
  27. package/dist-types/bubbles-indicator/index.d.ts +45 -0
  28. package/dist-types/bubbles-indicator/index.spec.d.ts +1 -0
  29. package/docs/bubbles-indicator.md +42 -0
  30. package/package.json +2 -2
  31. package/dist/chunks/8374.9cc215b5.js +0 -2
  32. package/dist/chunks/8374.9cc215b5.js.map +0 -1
  33. package/dist/chunks/globe-with-gear-indicator.38da7193.js +0 -2
  34. package/dist/chunks/globe-with-gear-indicator.38da7193.js.map +0 -1
  35. package/dist/chunks/main.d5b7fc71.js +0 -2
  36. package/dist/chunks/main.d5b7fc71.js.map +0 -1
  37. package/dist/index.c11ec70a.js.map +0 -1
package/dist/types.json CHANGED
@@ -40,56 +40,6 @@
40
40
  "events": [],
41
41
  "methods": []
42
42
  },
43
- "data-view.modern-style-page-title": {
44
- "properties": [
45
- {
46
- "name": "pageTitle",
47
- "annotation": {
48
- "type": "keyword",
49
- "value": "string"
50
- }
51
- },
52
- {
53
- "name": "description",
54
- "annotation": {
55
- "type": "keyword",
56
- "value": "string"
57
- }
58
- },
59
- {
60
- "name": "backgroundStyle",
61
- "annotation": {
62
- "type": "reference",
63
- "typeName": {
64
- "type": "identifier",
65
- "name": "CSSProperties"
66
- }
67
- }
68
- },
69
- {
70
- "name": "leftRoundStyle",
71
- "annotation": {
72
- "type": "reference",
73
- "typeName": {
74
- "type": "identifier",
75
- "name": "CSSProperties"
76
- }
77
- }
78
- },
79
- {
80
- "name": "rightRoundStyle",
81
- "annotation": {
82
- "type": "reference",
83
- "typeName": {
84
- "type": "identifier",
85
- "name": "CSSProperties"
86
- }
87
- }
88
- }
89
- ],
90
- "events": [],
91
- "methods": []
92
- },
93
43
  "data-view.tabs-drawer": {
94
44
  "properties": [
95
45
  {
@@ -283,6 +233,78 @@
283
233
  }
284
234
  ]
285
235
  },
236
+ "data-view.dropdown-menu": {
237
+ "properties": [
238
+ {
239
+ "name": "options",
240
+ "annotation": {
241
+ "type": "array",
242
+ "elementType": {
243
+ "type": "typeLiteral",
244
+ "members": [
245
+ {
246
+ "type": "propertySignature",
247
+ "key": {
248
+ "type": "identifier",
249
+ "name": "label"
250
+ },
251
+ "annotation": {
252
+ "type": "keyword",
253
+ "value": "string"
254
+ },
255
+ "computed": false
256
+ },
257
+ {
258
+ "type": "propertySignature",
259
+ "key": {
260
+ "type": "identifier",
261
+ "name": "value"
262
+ },
263
+ "annotation": {
264
+ "type": "keyword",
265
+ "value": "string"
266
+ },
267
+ "computed": false
268
+ }
269
+ ]
270
+ }
271
+ }
272
+ },
273
+ {
274
+ "name": "value",
275
+ "annotation": {
276
+ "type": "keyword",
277
+ "value": "string"
278
+ }
279
+ },
280
+ {
281
+ "name": "placeholder",
282
+ "annotation": {
283
+ "type": "keyword",
284
+ "value": "string"
285
+ }
286
+ },
287
+ {
288
+ "name": "allowClear",
289
+ "annotation": {
290
+ "type": "keyword",
291
+ "value": "boolean"
292
+ }
293
+ }
294
+ ],
295
+ "events": [
296
+ {
297
+ "name": "value.change",
298
+ "detail": {
299
+ "annotation": {
300
+ "type": "keyword",
301
+ "value": "string"
302
+ }
303
+ }
304
+ }
305
+ ],
306
+ "methods": []
307
+ },
286
308
  "data-view.modern-style-component-title": {
287
309
  "properties": [
288
310
  {
@@ -337,6 +359,56 @@
337
359
  "events": [],
338
360
  "methods": []
339
361
  },
362
+ "data-view.modern-style-page-title": {
363
+ "properties": [
364
+ {
365
+ "name": "pageTitle",
366
+ "annotation": {
367
+ "type": "keyword",
368
+ "value": "string"
369
+ }
370
+ },
371
+ {
372
+ "name": "description",
373
+ "annotation": {
374
+ "type": "keyword",
375
+ "value": "string"
376
+ }
377
+ },
378
+ {
379
+ "name": "backgroundStyle",
380
+ "annotation": {
381
+ "type": "reference",
382
+ "typeName": {
383
+ "type": "identifier",
384
+ "name": "CSSProperties"
385
+ }
386
+ }
387
+ },
388
+ {
389
+ "name": "leftRoundStyle",
390
+ "annotation": {
391
+ "type": "reference",
392
+ "typeName": {
393
+ "type": "identifier",
394
+ "name": "CSSProperties"
395
+ }
396
+ }
397
+ },
398
+ {
399
+ "name": "rightRoundStyle",
400
+ "annotation": {
401
+ "type": "reference",
402
+ "typeName": {
403
+ "type": "identifier",
404
+ "name": "CSSProperties"
405
+ }
406
+ }
407
+ }
408
+ ],
409
+ "events": [],
410
+ "methods": []
411
+ },
340
412
  "data-view.battery-chart": {
341
413
  "properties": [
342
414
  {
@@ -476,78 +548,6 @@
476
548
  }
477
549
  ]
478
550
  },
479
- "data-view.dropdown-menu": {
480
- "properties": [
481
- {
482
- "name": "options",
483
- "annotation": {
484
- "type": "array",
485
- "elementType": {
486
- "type": "typeLiteral",
487
- "members": [
488
- {
489
- "type": "propertySignature",
490
- "key": {
491
- "type": "identifier",
492
- "name": "label"
493
- },
494
- "annotation": {
495
- "type": "keyword",
496
- "value": "string"
497
- },
498
- "computed": false
499
- },
500
- {
501
- "type": "propertySignature",
502
- "key": {
503
- "type": "identifier",
504
- "name": "value"
505
- },
506
- "annotation": {
507
- "type": "keyword",
508
- "value": "string"
509
- },
510
- "computed": false
511
- }
512
- ]
513
- }
514
- }
515
- },
516
- {
517
- "name": "value",
518
- "annotation": {
519
- "type": "keyword",
520
- "value": "string"
521
- }
522
- },
523
- {
524
- "name": "placeholder",
525
- "annotation": {
526
- "type": "keyword",
527
- "value": "string"
528
- }
529
- },
530
- {
531
- "name": "allowClear",
532
- "annotation": {
533
- "type": "keyword",
534
- "value": "boolean"
535
- }
536
- }
537
- ],
538
- "events": [
539
- {
540
- "name": "value.change",
541
- "detail": {
542
- "annotation": {
543
- "type": "keyword",
544
- "value": "string"
545
- }
546
- }
547
- }
548
- ],
549
- "methods": []
550
- },
551
551
  "data-view.particle-animation": {
552
552
  "properties": [
553
553
  {
@@ -712,51 +712,6 @@
712
712
  "events": [],
713
713
  "methods": []
714
714
  },
715
- "data-view.app-wall-relation-line": {
716
- "properties": [
717
- {
718
- "name": "lightColor",
719
- "annotation": {
720
- "type": "union",
721
- "types": [
722
- {
723
- "type": "jsLiteral",
724
- "value": "blue"
725
- },
726
- {
727
- "type": "jsLiteral",
728
- "value": "purple"
729
- }
730
- ]
731
- }
732
- }
733
- ],
734
- "events": [],
735
- "methods": []
736
- },
737
- "data-view.cabinet-button": {
738
- "properties": [
739
- {
740
- "name": "buttonStyle",
741
- "annotation": {
742
- "type": "reference",
743
- "typeName": {
744
- "type": "qualifiedName",
745
- "left": {
746
- "type": "identifier",
747
- "name": "React"
748
- },
749
- "right": {
750
- "type": "identifier",
751
- "name": "CSSProperties"
752
- }
753
- }
754
- }
755
- }
756
- ],
757
- "events": [],
758
- "methods": []
759
- },
760
715
  "data-view.app-wall-system-card": {
761
716
  "properties": [
762
717
  {
@@ -876,6 +831,51 @@
876
831
  }
877
832
  ]
878
833
  },
834
+ "data-view.app-wall-relation-line": {
835
+ "properties": [
836
+ {
837
+ "name": "lightColor",
838
+ "annotation": {
839
+ "type": "union",
840
+ "types": [
841
+ {
842
+ "type": "jsLiteral",
843
+ "value": "blue"
844
+ },
845
+ {
846
+ "type": "jsLiteral",
847
+ "value": "purple"
848
+ }
849
+ ]
850
+ }
851
+ }
852
+ ],
853
+ "events": [],
854
+ "methods": []
855
+ },
856
+ "data-view.cabinet-button": {
857
+ "properties": [
858
+ {
859
+ "name": "buttonStyle",
860
+ "annotation": {
861
+ "type": "reference",
862
+ "typeName": {
863
+ "type": "qualifiedName",
864
+ "left": {
865
+ "type": "identifier",
866
+ "name": "React"
867
+ },
868
+ "right": {
869
+ "type": "identifier",
870
+ "name": "CSSProperties"
871
+ }
872
+ }
873
+ }
874
+ }
875
+ ],
876
+ "events": [],
877
+ "methods": []
878
+ },
879
879
  "data-view.cabinet-node": {
880
880
  "properties": [
881
881
  {
@@ -2208,7 +2208,7 @@
2208
2208
  "events": [],
2209
2209
  "methods": []
2210
2210
  },
2211
- "data-view.data-display-flipper-fifth": {
2211
+ "data-view.data-display-flipper-sixth": {
2212
2212
  "properties": [
2213
2213
  {
2214
2214
  "name": "flipperTitle",
@@ -2249,33 +2249,12 @@
2249
2249
  }
2250
2250
  ]
2251
2251
  }
2252
- },
2253
- {
2254
- "name": "unit",
2255
- "annotation": {
2256
- "type": "keyword",
2257
- "value": "string"
2258
- }
2259
- },
2260
- {
2261
- "name": "enableTitlePrefix",
2262
- "annotation": {
2263
- "type": "keyword",
2264
- "value": "boolean"
2265
- }
2266
- },
2267
- {
2268
- "name": "showDefaultPrefix",
2269
- "annotation": {
2270
- "type": "keyword",
2271
- "value": "boolean"
2272
- }
2273
2252
  }
2274
2253
  ],
2275
2254
  "events": [],
2276
2255
  "methods": []
2277
2256
  },
2278
- "data-view.data-display-flipper-sixth": {
2257
+ "data-view.data-display-flipper-fifth": {
2279
2258
  "properties": [
2280
2259
  {
2281
2260
  "name": "flipperTitle",
@@ -2316,6 +2295,27 @@
2316
2295
  }
2317
2296
  ]
2318
2297
  }
2298
+ },
2299
+ {
2300
+ "name": "unit",
2301
+ "annotation": {
2302
+ "type": "keyword",
2303
+ "value": "string"
2304
+ }
2305
+ },
2306
+ {
2307
+ "name": "enableTitlePrefix",
2308
+ "annotation": {
2309
+ "type": "keyword",
2310
+ "value": "boolean"
2311
+ }
2312
+ },
2313
+ {
2314
+ "name": "showDefaultPrefix",
2315
+ "annotation": {
2316
+ "type": "keyword",
2317
+ "value": "boolean"
2318
+ }
2319
2319
  }
2320
2320
  ],
2321
2321
  "events": [],
@@ -2805,6 +2805,124 @@
2805
2805
  }
2806
2806
  ]
2807
2807
  },
2808
+ "data-view.bubbles-indicator": {
2809
+ "properties": [
2810
+ {
2811
+ "name": "dataSource",
2812
+ "annotation": {
2813
+ "type": "array",
2814
+ "elementType": {
2815
+ "type": "reference",
2816
+ "typeName": {
2817
+ "type": "identifier",
2818
+ "name": "DataItem"
2819
+ }
2820
+ }
2821
+ }
2822
+ },
2823
+ {
2824
+ "name": "centerDataSource",
2825
+ "annotation": {
2826
+ "type": "reference",
2827
+ "typeName": {
2828
+ "type": "identifier",
2829
+ "name": "DataItem"
2830
+ }
2831
+ }
2832
+ },
2833
+ {
2834
+ "name": "cornerDataSource",
2835
+ "annotation": {
2836
+ "type": "array",
2837
+ "elementType": {
2838
+ "type": "reference",
2839
+ "typeName": {
2840
+ "type": "identifier",
2841
+ "name": "CornerDataItem"
2842
+ }
2843
+ }
2844
+ }
2845
+ },
2846
+ {
2847
+ "name": "maxScale",
2848
+ "annotation": {
2849
+ "type": "keyword",
2850
+ "value": "number"
2851
+ }
2852
+ }
2853
+ ],
2854
+ "events": [],
2855
+ "methods": [],
2856
+ "types": [
2857
+ {
2858
+ "type": "interface",
2859
+ "name": "DataItem",
2860
+ "body": [
2861
+ {
2862
+ "type": "propertySignature",
2863
+ "key": {
2864
+ "type": "identifier",
2865
+ "name": "label"
2866
+ },
2867
+ "annotation": {
2868
+ "type": "keyword",
2869
+ "value": "string"
2870
+ },
2871
+ "computed": false
2872
+ },
2873
+ {
2874
+ "type": "propertySignature",
2875
+ "key": {
2876
+ "type": "identifier",
2877
+ "name": "value"
2878
+ },
2879
+ "annotation": {
2880
+ "type": "union",
2881
+ "types": [
2882
+ {
2883
+ "type": "keyword",
2884
+ "value": "string"
2885
+ },
2886
+ {
2887
+ "type": "keyword",
2888
+ "value": "number"
2889
+ }
2890
+ ]
2891
+ },
2892
+ "computed": false
2893
+ }
2894
+ ]
2895
+ },
2896
+ {
2897
+ "type": "interface",
2898
+ "name": "CornerDataItem",
2899
+ "body": [
2900
+ {
2901
+ "type": "propertySignature",
2902
+ "key": {
2903
+ "type": "identifier",
2904
+ "name": "color"
2905
+ },
2906
+ "annotation": {
2907
+ "type": "keyword",
2908
+ "value": "string"
2909
+ },
2910
+ "optional": true,
2911
+ "computed": false
2912
+ }
2913
+ ],
2914
+ "extends": [
2915
+ {
2916
+ "type": "expressionWithTypeArguments",
2917
+ "expression": {
2918
+ "type": "identifier",
2919
+ "name": "DataItem"
2920
+ }
2921
+ }
2922
+ ]
2923
+ }
2924
+ ]
2925
+ },
2808
2926
  "data-view.loading-panel": {
2809
2927
  "properties": [
2810
2928
  {
@@ -42,3 +42,4 @@ import "./china-map-chart/index.js";
42
42
  import "./crystal-ball-indicator/index.js";
43
43
  import "./globe-with-halo-indicator/index.js";
44
44
  import "./globe-with-gear-indicator/index.js";
45
+ import "./bubbles-indicator/index.js";
@@ -0,0 +1,45 @@
1
+ import React from "react";
2
+ import { ReactNextElement } from "@next-core/react-element";
3
+ import "@next-core/theme";
4
+ import "../fonts/ALiBaBaPuHuiTi.css";
5
+ import "../fonts/PangMenZhengDaoBiaoTiTi.css";
6
+ export interface BubblesIndicatorProps {
7
+ dataSource?: DataItem[];
8
+ centerDataSource?: DataItem;
9
+ cornerDataSource?: CornerDataItem[];
10
+ maxScale?: number;
11
+ }
12
+ export interface DataItem {
13
+ label: string;
14
+ value: string | number;
15
+ }
16
+ export interface CornerDataItem extends DataItem {
17
+ color?: string;
18
+ }
19
+ /**
20
+ * 气泡样式的数据展示构件。
21
+ */
22
+ export declare class BubblesIndicator extends ReactNextElement implements BubblesIndicatorProps {
23
+ /** 指标数据列表(显示在环上)
24
+ *
25
+ * 注意:最多显示12项数据
26
+ */
27
+ accessor dataSource: DataItem[] | undefined;
28
+ /** 中心数据(显示在中心水晶球内) */
29
+ accessor centerDataSource: DataItem | undefined;
30
+ /**
31
+ * 左上角指标数据列表
32
+ */
33
+ accessor cornerDataSource: CornerDataItem[] | undefined;
34
+ /**
35
+ * 最大缩放比例
36
+ *
37
+ * @default 1
38
+ */
39
+ accessor maxScale: number | undefined;
40
+ render(): React.JSX.Element;
41
+ }
42
+ export interface BubblesIndicatorComponentProps extends BubblesIndicatorProps {
43
+ root: BubblesIndicator;
44
+ }
45
+ export declare function BubblesIndicatorComponent({ root, dataSource, centerDataSource, cornerDataSource, maxScale, }: BubblesIndicatorComponentProps): React.JSX.Element;
@@ -0,0 +1 @@
1
+ import "./";
@@ -0,0 +1,42 @@
1
+ 构件 `data-view.bubbles-indicator`
2
+
3
+ ## Examples
4
+
5
+ ### Basic
6
+
7
+ ```yaml preview height="660px"
8
+ brick: div
9
+ properties:
10
+ style:
11
+ height: calc(100vh - 2em)
12
+ children:
13
+ - brick: data-view.bubbles-indicator
14
+ properties:
15
+ centerDataSource:
16
+ label: 资产总数
17
+ value: 30123
18
+ dataSource:
19
+ - label: 低值易耗品
20
+ value: 3889
21
+ - label: 摊销资产
22
+ value: 2087
23
+ - label: 固定资产
24
+ value: 12088
25
+ - label: 无形资产
26
+ value: 1082
27
+ - label: 在建工程
28
+ value: 10997
29
+ cornerDataSource:
30
+ - label: 资产增长
31
+ value: 43
32
+ color: red
33
+ - label: 资产减少
34
+ value: 21
35
+ color: green
36
+ # Currently this brick only works within dark theme
37
+ lifeCycle:
38
+ onPageLoad:
39
+ action: theme.setTheme
40
+ args:
41
+ - dark-v2
42
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/data-view",
3
- "version": "1.5.0",
3
+ "version": "1.6.1",
4
4
  "homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/data-view",
5
5
  "repository": {
6
6
  "type": "git",
@@ -41,5 +41,5 @@
41
41
  "peerDependencies": {
42
42
  "@next-bricks/icons": "*"
43
43
  },
44
- "gitHead": "d30addc1bbe24b3af6d151056e06142281ee3efa"
44
+ "gitHead": "8f4b48c02e3798f98425db625ab5b2241f5a7fb3"
45
45
  }