@next-bricks/data-view 0.19.1 → 0.21.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 (40) hide show
  1. package/dist/bricks.json +6 -5
  2. package/dist/chunks/2693.a8079f42.js +2 -0
  3. package/dist/chunks/2693.a8079f42.js.map +1 -0
  4. package/dist/chunks/5114.550538e0.js +2 -0
  5. package/dist/chunks/5114.550538e0.js.map +1 -0
  6. package/dist/chunks/app-wall.94fbb95f.js +2 -0
  7. package/dist/chunks/app-wall.94fbb95f.js.map +1 -0
  8. package/dist/chunks/indicator-card.e2accdd2.js +3 -0
  9. package/dist/chunks/indicator-card.e2accdd2.js.map +1 -0
  10. package/dist/chunks/{main.0a30f3e1.js → main.04197c51.js} +2 -2
  11. package/dist/chunks/{main.0a30f3e1.js.map → main.04197c51.js.map} +1 -1
  12. package/dist/chunks/simple-card-item.61b3990d.js +3 -0
  13. package/dist/chunks/simple-card-item.61b3990d.js.LICENSE.txt +5 -0
  14. package/dist/chunks/simple-card-item.61b3990d.js.map +1 -0
  15. package/dist/examples.json +11 -8
  16. package/dist/images/51ee190a.png +0 -0
  17. package/dist/images/7eb52148.png +0 -0
  18. package/dist/images/f09bd924.png +0 -0
  19. package/dist/images/f3d13abf.png +0 -0
  20. package/dist/index.abcfb554.js +2 -0
  21. package/dist/index.abcfb554.js.map +1 -0
  22. package/dist/manifest.json +122 -93
  23. package/dist/types.json +210 -104
  24. package/dist-types/app-wall/index.d.ts +5 -0
  25. package/dist-types/bootstrap.d.ts +1 -0
  26. package/dist-types/indicator-card/index.d.ts +30 -0
  27. package/dist-types/indicator-card/index.spec.d.ts +1 -0
  28. package/docs/indicator-card.md +75 -0
  29. package/package.json +2 -2
  30. package/dist/chunks/4637.672e207a.js +0 -2
  31. package/dist/chunks/4637.672e207a.js.map +0 -1
  32. package/dist/chunks/5114.89597ba9.js +0 -2
  33. package/dist/chunks/5114.89597ba9.js.map +0 -1
  34. package/dist/chunks/app-wall.d99406d6.js +0 -2
  35. package/dist/chunks/app-wall.d99406d6.js.map +0 -1
  36. package/dist/chunks/simple-card-item.227bfcfc.js +0 -3
  37. package/dist/chunks/simple-card-item.227bfcfc.js.map +0 -1
  38. package/dist/index.9474bd66.js +0 -2
  39. package/dist/index.9474bd66.js.map +0 -1
  40. /package/dist/chunks/{simple-card-item.227bfcfc.js.LICENSE.txt → indicator-card.e2accdd2.js.LICENSE.txt} +0 -0
package/dist/types.json CHANGED
@@ -40,110 +40,6 @@
40
40
  "events": [],
41
41
  "methods": []
42
42
  },
43
- "data-view.modern-style-component-title": {
44
- "properties": [
45
- {
46
- "name": "hideLeftComponent",
47
- "annotation": {
48
- "type": "keyword",
49
- "value": "boolean"
50
- }
51
- },
52
- {
53
- "name": "hideRightComponent",
54
- "annotation": {
55
- "type": "keyword",
56
- "value": "boolean"
57
- }
58
- },
59
- {
60
- "name": "componentTitle",
61
- "annotation": {
62
- "type": "keyword",
63
- "value": "string"
64
- }
65
- },
66
- {
67
- "name": "titleTextStyle",
68
- "annotation": {
69
- "type": "reference",
70
- "typeName": {
71
- "type": "identifier",
72
- "name": "CSSProperties"
73
- }
74
- }
75
- },
76
- {
77
- "name": "squareColor",
78
- "annotation": {
79
- "type": "indexedAccess",
80
- "objectType": {
81
- "type": "reference",
82
- "typeName": {
83
- "type": "identifier",
84
- "name": "CSSProperties"
85
- }
86
- },
87
- "indexType": {
88
- "type": "jsLiteral",
89
- "value": "color"
90
- }
91
- }
92
- }
93
- ],
94
- "events": [],
95
- "methods": []
96
- },
97
- "data-view.modern-style-page-title": {
98
- "properties": [
99
- {
100
- "name": "pageTitle",
101
- "annotation": {
102
- "type": "keyword",
103
- "value": "string"
104
- }
105
- },
106
- {
107
- "name": "description",
108
- "annotation": {
109
- "type": "keyword",
110
- "value": "string"
111
- }
112
- },
113
- {
114
- "name": "backgroundStyle",
115
- "annotation": {
116
- "type": "reference",
117
- "typeName": {
118
- "type": "identifier",
119
- "name": "CSSProperties"
120
- }
121
- }
122
- },
123
- {
124
- "name": "leftRoundStyle",
125
- "annotation": {
126
- "type": "reference",
127
- "typeName": {
128
- "type": "identifier",
129
- "name": "CSSProperties"
130
- }
131
- }
132
- },
133
- {
134
- "name": "rightRoundStyle",
135
- "annotation": {
136
- "type": "reference",
137
- "typeName": {
138
- "type": "identifier",
139
- "name": "CSSProperties"
140
- }
141
- }
142
- }
143
- ],
144
- "events": [],
145
- "methods": []
146
- },
147
43
  "data-view.tabs-drawer": {
148
44
  "properties": [
149
45
  {
@@ -548,6 +444,110 @@
548
444
  ],
549
445
  "methods": []
550
446
  },
447
+ "data-view.modern-style-component-title": {
448
+ "properties": [
449
+ {
450
+ "name": "hideLeftComponent",
451
+ "annotation": {
452
+ "type": "keyword",
453
+ "value": "boolean"
454
+ }
455
+ },
456
+ {
457
+ "name": "hideRightComponent",
458
+ "annotation": {
459
+ "type": "keyword",
460
+ "value": "boolean"
461
+ }
462
+ },
463
+ {
464
+ "name": "componentTitle",
465
+ "annotation": {
466
+ "type": "keyword",
467
+ "value": "string"
468
+ }
469
+ },
470
+ {
471
+ "name": "titleTextStyle",
472
+ "annotation": {
473
+ "type": "reference",
474
+ "typeName": {
475
+ "type": "identifier",
476
+ "name": "CSSProperties"
477
+ }
478
+ }
479
+ },
480
+ {
481
+ "name": "squareColor",
482
+ "annotation": {
483
+ "type": "indexedAccess",
484
+ "objectType": {
485
+ "type": "reference",
486
+ "typeName": {
487
+ "type": "identifier",
488
+ "name": "CSSProperties"
489
+ }
490
+ },
491
+ "indexType": {
492
+ "type": "jsLiteral",
493
+ "value": "color"
494
+ }
495
+ }
496
+ }
497
+ ],
498
+ "events": [],
499
+ "methods": []
500
+ },
501
+ "data-view.modern-style-page-title": {
502
+ "properties": [
503
+ {
504
+ "name": "pageTitle",
505
+ "annotation": {
506
+ "type": "keyword",
507
+ "value": "string"
508
+ }
509
+ },
510
+ {
511
+ "name": "description",
512
+ "annotation": {
513
+ "type": "keyword",
514
+ "value": "string"
515
+ }
516
+ },
517
+ {
518
+ "name": "backgroundStyle",
519
+ "annotation": {
520
+ "type": "reference",
521
+ "typeName": {
522
+ "type": "identifier",
523
+ "name": "CSSProperties"
524
+ }
525
+ }
526
+ },
527
+ {
528
+ "name": "leftRoundStyle",
529
+ "annotation": {
530
+ "type": "reference",
531
+ "typeName": {
532
+ "type": "identifier",
533
+ "name": "CSSProperties"
534
+ }
535
+ }
536
+ },
537
+ {
538
+ "name": "rightRoundStyle",
539
+ "annotation": {
540
+ "type": "reference",
541
+ "typeName": {
542
+ "type": "identifier",
543
+ "name": "CSSProperties"
544
+ }
545
+ }
546
+ }
547
+ ],
548
+ "events": [],
549
+ "methods": []
550
+ },
551
551
  "data-view.particle-animation": {
552
552
  "properties": [
553
553
  {
@@ -2309,6 +2309,105 @@
2309
2309
  "events": [],
2310
2310
  "methods": []
2311
2311
  },
2312
+ "data-view.indicator-card": {
2313
+ "properties": [
2314
+ {
2315
+ "name": "layout",
2316
+ "annotation": {
2317
+ "type": "reference",
2318
+ "typeName": {
2319
+ "type": "identifier",
2320
+ "name": "Layout"
2321
+ }
2322
+ }
2323
+ },
2324
+ {
2325
+ "name": "datasource",
2326
+ "annotation": {
2327
+ "type": "array",
2328
+ "elementType": {
2329
+ "type": "reference",
2330
+ "typeName": {
2331
+ "type": "identifier",
2332
+ "name": "Datasource"
2333
+ }
2334
+ }
2335
+ }
2336
+ }
2337
+ ],
2338
+ "events": [],
2339
+ "methods": [],
2340
+ "types": [
2341
+ {
2342
+ "type": "typeAlias",
2343
+ "name": "Layout",
2344
+ "annotation": {
2345
+ "type": "union",
2346
+ "types": [
2347
+ {
2348
+ "type": "jsLiteral",
2349
+ "value": "column"
2350
+ },
2351
+ {
2352
+ "type": "jsLiteral",
2353
+ "value": "column-townhouse"
2354
+ },
2355
+ {
2356
+ "type": "jsLiteral",
2357
+ "value": "row"
2358
+ },
2359
+ {
2360
+ "type": "jsLiteral",
2361
+ "value": "row-townhouse"
2362
+ }
2363
+ ]
2364
+ }
2365
+ },
2366
+ {
2367
+ "type": "interface",
2368
+ "name": "Datasource",
2369
+ "body": [
2370
+ {
2371
+ "type": "propertySignature",
2372
+ "key": {
2373
+ "type": "identifier",
2374
+ "name": "value"
2375
+ },
2376
+ "annotation": {
2377
+ "type": "keyword",
2378
+ "value": "any"
2379
+ },
2380
+ "computed": false
2381
+ },
2382
+ {
2383
+ "type": "propertySignature",
2384
+ "key": {
2385
+ "type": "identifier",
2386
+ "name": "desc"
2387
+ },
2388
+ "annotation": {
2389
+ "type": "keyword",
2390
+ "value": "string"
2391
+ },
2392
+ "computed": false
2393
+ },
2394
+ {
2395
+ "type": "propertySignature",
2396
+ "key": {
2397
+ "type": "identifier",
2398
+ "name": "unit"
2399
+ },
2400
+ "annotation": {
2401
+ "type": "keyword",
2402
+ "value": "string"
2403
+ },
2404
+ "optional": true,
2405
+ "computed": false
2406
+ }
2407
+ ]
2408
+ }
2409
+ ]
2410
+ },
2312
2411
  "data-view.loading-panel": {
2313
2412
  "properties": [
2314
2413
  {
@@ -3233,6 +3332,13 @@
3233
3332
  "type": "keyword",
3234
3333
  "value": "string"
3235
3334
  }
3335
+ },
3336
+ {
3337
+ "name": "noRotate",
3338
+ "annotation": {
3339
+ "type": "keyword",
3340
+ "value": "boolean"
3341
+ }
3236
3342
  }
3237
3343
  ],
3238
3344
  "events": [
@@ -16,6 +16,7 @@ export interface AppWallProps {
16
16
  handleCardClick?: (data: AppData) => void;
17
17
  cardBrickName: AppWallCardBrickNameType;
18
18
  containerId?: string;
19
+ noRotate?: boolean;
19
20
  }
20
21
  /**
21
22
  * @id data-view.app-wall
@@ -59,6 +60,10 @@ declare class AppWall extends ReactNextElement implements AppWallProps {
59
60
  * 容器id,用于监听容器大小
60
61
  */
61
62
  accessor containerId: string;
63
+ /**
64
+ * 控制是否旋转
65
+ */
66
+ accessor noRotate: boolean;
62
67
  handleLeftClick: (data: AppData) => void;
63
68
  handleRightClick: (data: AppData) => void;
64
69
  handleCardDbClick: (data: AppData) => void;
@@ -36,3 +36,4 @@ import "./basic-index-group/index.js";
36
36
  import "./data-display-flipper/index.js";
37
37
  import "./data-display-flipper-fifth/index.js";
38
38
  import "./data-display-flipper-sixth/index.js";
39
+ import "./indicator-card/index.js";
@@ -0,0 +1,30 @@
1
+ /// <reference types="react" />
2
+ import { ReactNextElement } from "@next-core/react-element";
3
+ import "@next-core/theme";
4
+ /**
5
+ * 构件 `data-view.indicator-card`
6
+ */
7
+ export declare class IndicatorCard extends ReactNextElement {
8
+ /**
9
+ * 展示类型, `column`类型为上下三行、`row`类型为左右两行模式
10
+ * @default `column`
11
+ */
12
+ accessor layout: Layout;
13
+ /**
14
+ * 数据源
15
+ * @default `[]`
16
+ */
17
+ accessor datasource: Datasource[];
18
+ render(): JSX.Element;
19
+ }
20
+ export type Layout = "column" | "column-townhouse" | "row" | "row-townhouse";
21
+ export interface Datasource {
22
+ value: any;
23
+ desc: string;
24
+ unit?: string;
25
+ }
26
+ export interface IndicatorCardComponentProps {
27
+ datasource: Datasource[];
28
+ layout?: Layout;
29
+ }
30
+ export declare function IndicatorCardComponent({ datasource, layout, }: IndicatorCardComponentProps): JSX.Element;
@@ -0,0 +1 @@
1
+ import "./";
@@ -0,0 +1,75 @@
1
+ 构件 `data-view.indicator-card`
2
+
3
+ ## Examples
4
+
5
+ ### Column
6
+
7
+ ```yaml preview
8
+ - brick: data-view.indicator-card
9
+ properties:
10
+ layout: "column"
11
+ datasource:
12
+ - value: 300
13
+ desc: 月碳排放量
14
+ unit: (吨)
15
+ - value: 1000.33
16
+ desc: 季度碳排放总量
17
+ unit: (吨)
18
+ - value: 2507.55
19
+ desc: 年度碳排放总量
20
+ unit: (吨)
21
+ ```
22
+
23
+ ### Column Townhouse
24
+
25
+ ```yaml preview
26
+ - brick: data-view.indicator-card
27
+ properties:
28
+ layout: "column-townhouse"
29
+ datasource:
30
+ - value: 300
31
+ desc: 月碳排放量
32
+ unit: (吨)
33
+ - value: 1000.33
34
+ desc: 季度碳排放总量
35
+ unit: (吨)
36
+ - value: 2507.55
37
+ desc: 年度碳排放总量
38
+ unit: (吨)
39
+ ```
40
+
41
+ ### Row
42
+
43
+ ```yaml preview
44
+ - brick: data-view.indicator-card
45
+ properties:
46
+ layout: "row"
47
+ datasource:
48
+ - value: 300
49
+ desc: 月碳排放量
50
+ unit: (吨)
51
+ - value: 1000.33
52
+ desc: 季度碳排放总量
53
+ unit: (吨)
54
+ - value: 2507.55
55
+ desc: 年度碳排放总量
56
+ unit: (吨)
57
+ ```
58
+
59
+ ### Row Townhouse
60
+
61
+ ```yaml preview
62
+ - brick: data-view.indicator-card
63
+ properties:
64
+ layout: "row-townhouse"
65
+ datasource:
66
+ - value: 300
67
+ desc: 月碳排放量
68
+ unit: (吨)
69
+ - value: 1000.33
70
+ desc: 季度碳排放总量
71
+ unit: (吨)
72
+ - value: 2507.55
73
+ desc: 年度碳排放总量
74
+ unit: (吨)
75
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/data-view",
3
- "version": "0.19.1",
3
+ "version": "0.21.0",
4
4
  "homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/data-view",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,5 +39,5 @@
39
39
  "@types/d3-hierarchy": "^3.1.2",
40
40
  "@types/three": "^0.150.1"
41
41
  },
42
- "gitHead": "315fb9a539c8875658dacfb5d00d371eeebffc20"
42
+ "gitHead": "2ba2b3ef8884c85070ad4b83790b18e4f04aee61"
43
43
  }