@next-bricks/data-view 1.3.16 → 1.5.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 (80) hide show
  1. package/dist/bricks.json +17 -4
  2. package/dist/chunks/2938.1d24bf3a.js +2 -0
  3. package/dist/chunks/2938.1d24bf3a.js.map +1 -0
  4. package/dist/chunks/{5155.52b564af.js → 5902.15d216ce.js} +3 -3
  5. package/dist/chunks/5902.15d216ce.js.map +1 -0
  6. package/dist/chunks/8374.9cc215b5.js +2 -0
  7. package/dist/chunks/8374.9cc215b5.js.map +1 -0
  8. package/dist/chunks/859.472360b6.js +2 -0
  9. package/dist/chunks/859.472360b6.js.map +1 -0
  10. package/dist/chunks/china-map-chart.eb43bf10.js +2 -0
  11. package/dist/chunks/china-map-chart.eb43bf10.js.map +1 -0
  12. package/dist/chunks/crystal-ball-indicator.d8cd86a8.js +2 -0
  13. package/dist/chunks/crystal-ball-indicator.d8cd86a8.js.map +1 -0
  14. package/dist/chunks/gear-background.7707f3b1.js.map +1 -1
  15. package/dist/chunks/globe-with-gear-indicator.38da7193.js +2 -0
  16. package/dist/chunks/globe-with-gear-indicator.38da7193.js.map +1 -0
  17. package/dist/chunks/globe-with-halo-indicator.23e27349.js +2 -0
  18. package/dist/chunks/globe-with-halo-indicator.23e27349.js.map +1 -0
  19. package/dist/chunks/main.d5b7fc71.js +2 -0
  20. package/dist/chunks/{main.ea6494ac.js.map → main.d5b7fc71.js.map} +1 -1
  21. package/dist/chunks/{modern-style-treemap.1dcda45a.js → modern-style-treemap.d59d18bc.js} +3 -3
  22. package/dist/chunks/modern-style-treemap.d59d18bc.js.map +1 -0
  23. package/dist/examples.json +16 -7
  24. package/dist/images/1056eac3.png +0 -0
  25. package/dist/images/12997c2b.png +0 -0
  26. package/dist/images/4f7762f3.svg +21 -0
  27. package/dist/images/698229b4.png +0 -0
  28. package/dist/images/73baf989.png +0 -0
  29. package/dist/images/9111af40.png +0 -0
  30. package/dist/images/9514fc4d.png +0 -0
  31. package/dist/images/b2fdf90d.svg +74 -0
  32. package/dist/images/c5f34792.png +0 -0
  33. package/dist/images/d20b2c27.svg +46 -0
  34. package/dist/images/e4eec39c.png +0 -0
  35. package/dist/images/f1a78578.png +0 -0
  36. package/dist/index.c11ec70a.js +2 -0
  37. package/dist/index.c11ec70a.js.map +1 -0
  38. package/dist/manifest.json +173 -71
  39. package/dist/media/0c649f21.webm +0 -0
  40. package/dist/media/2978c0ae.ttf +0 -0
  41. package/dist/media/78c4b1bd.ttf +0 -0
  42. package/dist/media/792b07b2.ttf +0 -0
  43. package/dist/media/b43f5418.mp4 +0 -0
  44. package/dist/media/cc0a5a55.ttf +0 -0
  45. package/dist/types.json +569 -214
  46. package/dist-types/bootstrap.d.ts +3 -0
  47. package/dist-types/china-map-chart/index.d.ts +2 -1
  48. package/dist-types/crystal-ball-indicator/index.d.ts +45 -0
  49. package/dist-types/crystal-ball-indicator/index.spec.d.ts +1 -0
  50. package/dist-types/gear-background/index.d.ts +1 -1
  51. package/dist-types/globe-with-gear-indicator/index.d.ts +45 -0
  52. package/dist-types/globe-with-gear-indicator/index.spec.d.ts +1 -0
  53. package/dist-types/globe-with-halo-indicator/RotatingArc.d.ts +2 -0
  54. package/dist-types/globe-with-halo-indicator/RotatingArc.spec.d.ts +1 -0
  55. package/dist-types/globe-with-halo-indicator/SatelliteRing.d.ts +2 -0
  56. package/dist-types/globe-with-halo-indicator/index.d.ts +45 -0
  57. package/dist-types/globe-with-halo-indicator/index.spec.d.ts +1 -0
  58. package/docs/china-map-chart.md +55 -27
  59. package/docs/crystal-ball-indicator.md +42 -0
  60. package/docs/globe-with-gear-indicator.md +42 -0
  61. package/docs/globe-with-halo-indicator.md +42 -0
  62. package/package.json +2 -2
  63. package/dist/chunks/4263.abcf0070.js +0 -2
  64. package/dist/chunks/4263.abcf0070.js.map +0 -1
  65. package/dist/chunks/5155.52b564af.js.map +0 -1
  66. package/dist/chunks/5371.15b68669.js +0 -2
  67. package/dist/chunks/5371.15b68669.js.map +0 -1
  68. package/dist/chunks/859.3b3455b0.js +0 -2
  69. package/dist/chunks/859.3b3455b0.js.map +0 -1
  70. package/dist/chunks/china-map-chart.375f876a.js +0 -2
  71. package/dist/chunks/china-map-chart.375f876a.js.map +0 -1
  72. package/dist/chunks/main.ea6494ac.js +0 -2
  73. package/dist/chunks/modern-style-treemap.1dcda45a.js.map +0 -1
  74. package/dist/images/66ee9c70.png +0 -0
  75. package/dist/images/cc662090.png +0 -0
  76. package/dist/index.e3b2ea1a.js +0 -2
  77. package/dist/index.e3b2ea1a.js.map +0 -1
  78. package/dist-types/china-map-chart/map.d.ts +0 -144
  79. /package/dist/chunks/{5155.52b564af.js.LICENSE.txt → 5902.15d216ce.js.LICENSE.txt} +0 -0
  80. /package/dist/chunks/{modern-style-treemap.1dcda45a.js.LICENSE.txt → modern-style-treemap.d59d18bc.js.LICENSE.txt} +0 -0
@@ -39,3 +39,6 @@ import "./data-display-flipper-sixth/index.js";
39
39
  import "./indicator-card/index.js";
40
40
  import "./progress-bar-list/index.js";
41
41
  import "./china-map-chart/index.js";
42
+ import "./crystal-ball-indicator/index.js";
43
+ import "./globe-with-halo-indicator/index.js";
44
+ import "./globe-with-gear-indicator/index.js";
@@ -2,7 +2,7 @@ import React, { CSSProperties } from "react";
2
2
  import { ReactNextElement } from "@next-core/react-element";
3
3
  import "@next-core/theme";
4
4
  /**
5
- * 构件 `data-view.china-map-chart`
5
+ * 中国地图图表构件,可以显示省级指标数据
6
6
  */
7
7
  export declare class ChinaMapChart extends ReactNextElement {
8
8
  #private;
@@ -17,6 +17,7 @@ export declare class ChinaMapChart extends ReactNextElement {
17
17
  render(): React.JSX.Element;
18
18
  }
19
19
  interface DataSource {
20
+ /** 省级行政区域名,例如:四川、北京 */
20
21
  city: string;
21
22
  detailDisplayLocation: "pageCenter" | "textBottom";
22
23
  text: string;
@@ -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 CrystalBallIndicatorProps {
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 CrystalBallIndicator extends ReactNextElement implements CrystalBallIndicatorProps {
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 CrystalBallIndicatorComponentProps extends CrystalBallIndicatorProps {
43
+ root: CrystalBallIndicator;
44
+ }
45
+ export declare function CrystalBallIndicatorComponent({ root, dataSource, centerDataSource, cornerDataSource, maxScale, }: CrystalBallIndicatorComponentProps): React.JSX.Element;
@@ -0,0 +1 @@
1
+ import "./";
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { ReactNextElement } from "@next-core/react-element";
3
- interface GearBackgroundProps {
3
+ export interface GearBackgroundProps {
4
4
  color?: React.CSSProperties["color"];
5
5
  }
6
6
  /**
@@ -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/HarmonyOSSans.css";
6
+ export interface GlobeWithGearIndicatorProps {
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 GlobeWithGearIndicator extends ReactNextElement implements GlobeWithGearIndicatorProps {
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 GlobeWithGearIndicatorComponentProps extends GlobeWithGearIndicatorProps {
43
+ root: GlobeWithGearIndicator;
44
+ }
45
+ export declare function GlobeWithGearIndicatorComponent({ root, dataSource, centerDataSource, cornerDataSource, maxScale, }: GlobeWithGearIndicatorComponentProps): React.JSX.Element;
@@ -0,0 +1 @@
1
+ import "./";
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare function RotatingArc(): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare function SatelliteRing(): React.JSX.Element;
@@ -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
+ export interface GlobeWithHaloIndicatorProps {
6
+ dataSource?: DataItem[];
7
+ centerDataSource?: DataItem;
8
+ cornerDataSource?: CornerDataItem[];
9
+ maxScale?: number;
10
+ }
11
+ export interface DataItem {
12
+ label: string;
13
+ value: string | number;
14
+ }
15
+ export interface CornerDataItem extends DataItem {
16
+ color?: string;
17
+ }
18
+ /**
19
+ * 地球加光环的数据展示构件。
20
+ */
21
+ export declare class GlobeWithHaloIndicator extends ReactNextElement implements GlobeWithHaloIndicatorProps {
22
+ /**
23
+ * 指标数据列表(显示在环上)
24
+ *
25
+ * 注意:最多显示8项数据
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 GlobeWithHaloIndicatorComponentProps extends GlobeWithHaloIndicatorProps {
43
+ root: GlobeWithHaloIndicator;
44
+ }
45
+ export declare function GlobeWithHaloIndicatorComponent({ root, dataSource, centerDataSource, cornerDataSource, maxScale, }: GlobeWithHaloIndicatorComponentProps): React.JSX.Element;
@@ -0,0 +1 @@
1
+ import "./";
@@ -1,34 +1,62 @@
1
- 构件 `data-view.china-map-chart`
1
+ 中国地图图表构件,可以显示省级指标数据
2
2
 
3
3
  ## Examples
4
4
 
5
5
  ### Basic
6
6
 
7
7
  ```yaml preview
8
- - brick: data-view.china-map-chart
9
- slots:
10
- detail:
11
- bricks:
12
- - brick: div
13
- properties:
14
- textContent: 内容区
15
- events:
16
- detail.open.change:
17
- - action: console.log
18
- properties:
19
- detailContentStyle:
20
- background: "yellow"
21
- dataSource:
22
- - text: "西藏 12311"
23
- detailDisplayLocation: "textBottom"
24
- city: 西藏
25
- - text: "四川 89781169"
26
- detailDisplayLocation: "textBottom"
27
- city: 四川
28
- - text: "台湾 234181"
29
- detailDisplayLocation: "pageCenter"
30
- city: 台湾
31
- - text: "江西 21348"
32
- detailDisplayLocation: "pageCenter"
33
- city: 江西
8
+ brick: data-view.china-map-chart
9
+ properties:
10
+ dataSource:
11
+ - text: "西藏 12311"
12
+ city: 西藏
13
+ - text: "四川 89781169"
14
+ city: 四川
15
+ - text: "台湾 234181"
16
+ city: 台湾
17
+ - text: "江西 21348"
18
+ city: 江西
19
+ # Currently this brick only looks well within dark theme
20
+ lifeCycle:
21
+ onPageLoad:
22
+ action: theme.setTheme
23
+ args:
24
+ - dark-v2
25
+ ```
26
+
27
+ ### With detail
28
+
29
+ ```yaml preview
30
+ brick: data-view.china-map-chart
31
+ properties:
32
+ detailContentStyle:
33
+ background: "yellow"
34
+ dataSource:
35
+ - text: "西藏 12311"
36
+ detailDisplayLocation: "textBottom"
37
+ city: 西藏
38
+ - text: "四川 89781169"
39
+ detailDisplayLocation: "textBottom"
40
+ city: 四川
41
+ - text: "台湾 234181"
42
+ detailDisplayLocation: "pageCenter"
43
+ city: 台湾
44
+ - text: "江西 21348"
45
+ detailDisplayLocation: "pageCenter"
46
+ city: 江西
47
+ events:
48
+ detail.open.change:
49
+ - action: console.log
50
+ slots:
51
+ detail:
52
+ bricks:
53
+ - brick: div
54
+ properties:
55
+ textContent: 内容区
56
+ # Currently this brick only looks well within dark theme
57
+ lifeCycle:
58
+ onPageLoad:
59
+ action: theme.setTheme
60
+ args:
61
+ - dark-v2
34
62
  ```
@@ -0,0 +1,42 @@
1
+ 中间是水晶球动画的数据展示构件。
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.crystal-ball-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
+ ```
@@ -0,0 +1,42 @@
1
+ 地球加轮盘的数据展示构件。
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.globe-with-gear-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
+ ```
@@ -0,0 +1,42 @@
1
+ 地球加光环的数据展示构件。
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.globe-with-halo-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.3.16",
3
+ "version": "1.5.0",
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": "a1396cc0fca87bdba4b72a7e9fa8884700f0c9ac"
44
+ "gitHead": "d30addc1bbe24b3af6d151056e06142281ee3efa"
45
45
  }