@next-bricks/data-view 0.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 (109) hide show
  1. package/dist/bricks.json +18 -0
  2. package/dist/chunks/1646.c6fb10b9.js +2 -0
  3. package/dist/chunks/1646.c6fb10b9.js.map +1 -0
  4. package/dist/chunks/2024.9df06f14.js +2 -0
  5. package/dist/chunks/2024.9df06f14.js.map +1 -0
  6. package/dist/chunks/2241.9f705baa.js +3 -0
  7. package/dist/chunks/2241.9f705baa.js.LICENSE.txt +19 -0
  8. package/dist/chunks/2241.9f705baa.js.map +1 -0
  9. package/dist/chunks/2323.5185fa60.js +2 -0
  10. package/dist/chunks/2323.5185fa60.js.map +1 -0
  11. package/dist/chunks/2754.c7ac7717.js +2 -0
  12. package/dist/chunks/2754.c7ac7717.js.map +1 -0
  13. package/dist/chunks/2993.e6502630.js +2 -0
  14. package/dist/chunks/2993.e6502630.js.map +1 -0
  15. package/dist/chunks/3494.49ab0ed3.js +2 -0
  16. package/dist/chunks/3494.49ab0ed3.js.map +1 -0
  17. package/dist/chunks/3914.738b0862.js +2 -0
  18. package/dist/chunks/3914.738b0862.js.map +1 -0
  19. package/dist/chunks/4049.c503232d.js +2 -0
  20. package/dist/chunks/4049.c503232d.js.map +1 -0
  21. package/dist/chunks/4454.22c6779c.js +2 -0
  22. package/dist/chunks/4454.22c6779c.js.map +1 -0
  23. package/dist/chunks/4717.ace78c3e.js +2 -0
  24. package/dist/chunks/4717.ace78c3e.js.map +1 -0
  25. package/dist/chunks/4728.b40327c9.js +2 -0
  26. package/dist/chunks/4728.b40327c9.js.map +1 -0
  27. package/dist/chunks/4795.20afb9f3.js +2 -0
  28. package/dist/chunks/4795.20afb9f3.js.map +1 -0
  29. package/dist/chunks/5151.f19f99d2.js +2 -0
  30. package/dist/chunks/5151.f19f99d2.js.map +1 -0
  31. package/dist/chunks/5202.3225e09f.js +2 -0
  32. package/dist/chunks/5202.3225e09f.js.map +1 -0
  33. package/dist/chunks/5603.39981534.js +2 -0
  34. package/dist/chunks/5603.39981534.js.map +1 -0
  35. package/dist/chunks/5637.452e222a.js +2 -0
  36. package/dist/chunks/5637.452e222a.js.map +1 -0
  37. package/dist/chunks/6173.73523a3f.js +3 -0
  38. package/dist/chunks/6173.73523a3f.js.LICENSE.txt +5 -0
  39. package/dist/chunks/6173.73523a3f.js.map +1 -0
  40. package/dist/chunks/6205.ac5f4fb2.js +2 -0
  41. package/dist/chunks/6205.ac5f4fb2.js.map +1 -0
  42. package/dist/chunks/6473.6c0bd059.js +2 -0
  43. package/dist/chunks/6473.6c0bd059.js.map +1 -0
  44. package/dist/chunks/6635.f9c26f87.js +3 -0
  45. package/dist/chunks/6635.f9c26f87.js.LICENSE.txt +8 -0
  46. package/dist/chunks/6635.f9c26f87.js.map +1 -0
  47. package/dist/chunks/7164.b1dddefc.js +2 -0
  48. package/dist/chunks/7164.b1dddefc.js.map +1 -0
  49. package/dist/chunks/7179.6e1ec8ff.js +2 -0
  50. package/dist/chunks/7179.6e1ec8ff.js.map +1 -0
  51. package/dist/chunks/7244.7271f90a.js +2 -0
  52. package/dist/chunks/7244.7271f90a.js.map +1 -0
  53. package/dist/chunks/7746.2d8b6f17.js +2 -0
  54. package/dist/chunks/7746.2d8b6f17.js.map +1 -0
  55. package/dist/chunks/7822.a67018b0.js +2 -0
  56. package/dist/chunks/7822.a67018b0.js.map +1 -0
  57. package/dist/chunks/7915.0bf6d068.js +2 -0
  58. package/dist/chunks/7915.0bf6d068.js.map +1 -0
  59. package/dist/chunks/8008.00ab7560.js +3 -0
  60. package/dist/chunks/8008.00ab7560.js.LICENSE.txt +3 -0
  61. package/dist/chunks/8008.00ab7560.js.map +1 -0
  62. package/dist/chunks/8207.d017a10a.js +2 -0
  63. package/dist/chunks/8207.d017a10a.js.map +1 -0
  64. package/dist/chunks/873.4a237712.js +2 -0
  65. package/dist/chunks/873.4a237712.js.map +1 -0
  66. package/dist/chunks/9431.f9b8667c.js +2 -0
  67. package/dist/chunks/9431.f9b8667c.js.map +1 -0
  68. package/dist/chunks/9549.78bc7312.js +2 -0
  69. package/dist/chunks/9549.78bc7312.js.map +1 -0
  70. package/dist/chunks/battery-chart.02988af9.js +2 -0
  71. package/dist/chunks/battery-chart.02988af9.js.map +1 -0
  72. package/dist/chunks/gauge-chart.1f452553.js +2 -0
  73. package/dist/chunks/gauge-chart.1f452553.js.map +1 -0
  74. package/dist/chunks/main.25a99d0e.js +2 -0
  75. package/dist/chunks/main.25a99d0e.js.map +1 -0
  76. package/dist/chunks/modern-style-component-title.17b744e0.js +2 -0
  77. package/dist/chunks/modern-style-component-title.17b744e0.js.map +1 -0
  78. package/dist/chunks/modern-style-page-title.ae7b75cb.js +2 -0
  79. package/dist/chunks/modern-style-page-title.ae7b75cb.js.map +1 -0
  80. package/dist/chunks/modern-style-treemap.0fd4d0cd.js +2 -0
  81. package/dist/chunks/modern-style-treemap.0fd4d0cd.js.map +1 -0
  82. package/dist/chunks/react.48b8771a.js +2 -0
  83. package/dist/chunks/react.48b8771a.js.LICENSE.txt +29 -0
  84. package/dist/chunks/tabs-drawer.8f87a1b2.js +3 -0
  85. package/dist/chunks/tabs-drawer.8f87a1b2.js.LICENSE.txt +5 -0
  86. package/dist/chunks/tabs-drawer.8f87a1b2.js.map +1 -0
  87. package/dist/images/f3856ac6.svg +22 -0
  88. package/dist/index.30ce150c.js +2 -0
  89. package/dist/index.30ce150c.js.map +1 -0
  90. package/dist-types/battery-chart/index.d.ts +64 -0
  91. package/dist-types/battery-chart/index.spec.d.ts +1 -0
  92. package/dist-types/bootstrap.d.ts +6 -0
  93. package/dist-types/gauge-chart/index.d.ts +52 -0
  94. package/dist-types/gauge-chart/index.spec.d.ts +1 -0
  95. package/dist-types/hooks/index.d.ts +1 -0
  96. package/dist-types/hooks/useResizeObserver/index.d.ts +11 -0
  97. package/dist-types/hooks/useResizeObserver/index.spec.d.ts +1 -0
  98. package/dist-types/hooks/useResizeObserver/resizeObserverUtil.d.ts +4 -0
  99. package/dist-types/hooks/useResizeObserver/resizeObserverUtil.spec.d.ts +1 -0
  100. package/dist-types/index.d.ts +1 -0
  101. package/dist-types/modern-style-component-title/index.d.ts +56 -0
  102. package/dist-types/modern-style-component-title/index.spec.d.ts +1 -0
  103. package/dist-types/modern-style-page-title/index.d.ts +56 -0
  104. package/dist-types/modern-style-page-title/index.spec.d.ts +1 -0
  105. package/dist-types/modern-style-treemap/index.d.ts +78 -0
  106. package/dist-types/modern-style-treemap/index.spec.d.ts +1 -0
  107. package/dist-types/tabs-drawer/index.d.ts +98 -0
  108. package/dist-types/tabs-drawer/index.spec.d.ts +1 -0
  109. package/package.json +58 -0
@@ -0,0 +1,78 @@
1
+ import { CSSProperties } from "react";
2
+ import { ReactNextElement } from "@next-core/react-element";
3
+ import type { UseBrickConf } from "@next-core/types";
4
+ declare enum TailTypes {
5
+ treemapBinary = "treemapBinary",
6
+ treemapDice = "treemapDice",
7
+ treemapResquarify = "treemapResquarify",
8
+ treemapSlice = "treemapSlice",
9
+ treemapSliceDice = "treemapSliceDice",
10
+ treemapSquarify = "treemapSquarify"
11
+ }
12
+ type TreemapData = {
13
+ name: string;
14
+ value?: number;
15
+ children?: TreemapData[];
16
+ };
17
+ interface ModernStyleTreemapProps {
18
+ data: TreemapData;
19
+ tail?: TailTypes;
20
+ leafUseBrick?: UseBrickConf;
21
+ leafContainerStyle?: CSSProperties;
22
+ tooltipUseBrick?: UseBrickConf;
23
+ tooltipStyle?: CSSProperties;
24
+ }
25
+ /**
26
+ * @id data-view.modern-style-treemap
27
+ * @name data-view.modern-style-treemap
28
+ * @docKind brick
29
+ * @description 现代风树图
30
+ * @author nlicroshan
31
+ * @noInheritDoc
32
+ */
33
+ declare class ModernStyleTreemap extends ReactNextElement implements ModernStyleTreemapProps {
34
+ /**
35
+ * @kind TreemapData
36
+ * @required true
37
+ * @default -
38
+ * @description 数据
39
+ */
40
+ accessor data: TreemapData;
41
+ /**
42
+ * @kind TailTypes
43
+ * @required false
44
+ * @default treemapSquarify
45
+ * @description 平铺方法
46
+ */
47
+ accessor tail: TailTypes;
48
+ /**
49
+ * @kind UseBrickConf
50
+ * @required false
51
+ * @default -
52
+ * @description 叶子节点useBrick
53
+ */
54
+ accessor leafUseBrick: UseBrickConf;
55
+ /**
56
+ * @kind CSSProperties
57
+ * @required false
58
+ * @default -
59
+ * @description 叶子节点容器样式
60
+ */
61
+ accessor leafContainerStyle: CSSProperties;
62
+ /**
63
+ * @kind UseBrickConf
64
+ * @required false
65
+ * @default -
66
+ * @description tooltip useBrick
67
+ */
68
+ accessor tooltipUseBrick: UseBrickConf;
69
+ /**
70
+ * @kind CSSProperties
71
+ * @required false
72
+ * @default -
73
+ * @description tooltip容器样式
74
+ */
75
+ accessor tooltipStyle: CSSProperties;
76
+ render(): JSX.Element;
77
+ }
78
+ export { ModernStyleTreemap };
@@ -0,0 +1 @@
1
+ import "./index.jsx";
@@ -0,0 +1,98 @@
1
+ import React from "react";
2
+ import { ReactNextElement } from "@next-core/react-element";
3
+ import type { GeneralIconProps } from "@next-bricks/icons/general-icon";
4
+ export interface TabItem {
5
+ /** 菜单标题对应的图标。 */
6
+ icon: GeneralIconProps;
7
+ /** 唯一标识 */
8
+ key: string;
9
+ /** 菜单标题。 */
10
+ title?: string;
11
+ tooltip?: string;
12
+ }
13
+ interface TabsDrawerProps {
14
+ tabList: TabItem[];
15
+ activeKey?: string;
16
+ width?: number | string;
17
+ drawerStyle?: React.CSSProperties;
18
+ bodyStyle?: React.CSSProperties;
19
+ zIndex?: number;
20
+ visible?: boolean;
21
+ onClose?: () => void;
22
+ onOpen?: () => void;
23
+ onTabChange?: (key: string) => void;
24
+ }
25
+ /**
26
+ * @id data-view.tabs-drawer
27
+ * @name data-view.tabs-drawer
28
+ * @docKind brick
29
+ * @description 大屏仪标签页抽屉
30
+ * @author astrid
31
+ * @noInheritDoc
32
+ */
33
+ declare class TabsDrawer extends ReactNextElement implements TabsDrawerProps {
34
+ #private;
35
+ /**
36
+ * @default -
37
+ * @required false
38
+ * @description 抽屉左侧菜单列表
39
+ */
40
+ accessor tabList: TabItem[];
41
+ /**
42
+ * @default -
43
+ * @required false
44
+ * @description 抽屉左侧菜单高亮显示
45
+ */
46
+ accessor activeKey: string;
47
+ /**
48
+ * @kind number|string
49
+ * @required false
50
+ * @default default
51
+ * @description 抽屉宽度内容区的宽度,优先级高于bodyStyle内的width
52
+ * @group basic
53
+ */
54
+ accessor width: number | string;
55
+ /**
56
+ * @kind React.CSSProperties
57
+ * @required false
58
+ * @default default
59
+ * @description 设计 Drawer 容器样式
60
+ * @group basic
61
+ */
62
+ accessor drawerStyle: React.CSSProperties;
63
+ /**
64
+ * @kind React.CSSProperties
65
+ * @required false
66
+ * @default default
67
+ * @description 可用于设置 Drawer 内容部分的样式
68
+ * @group basic
69
+ */
70
+ accessor bodyStyle: React.CSSProperties;
71
+ /**
72
+ * @kind number
73
+ * @required false
74
+ * @default 1000
75
+ * @description 抽屉层级
76
+ * @group basic
77
+ */
78
+ accessor zIndex: number | undefined;
79
+ /**
80
+ * @kind boolean
81
+ * @required false
82
+ * @default default
83
+ * @description 遮罩层是否显示
84
+ * @group basic
85
+ */
86
+ accessor visible: boolean | undefined;
87
+ /**
88
+ * @description 打开抽屉
89
+ */
90
+ open(): void;
91
+ /**
92
+ * @description 关闭抽屉
93
+ */
94
+ close(): void;
95
+ render(): React.ReactNode;
96
+ }
97
+ export declare function TabsDrawerComponent(props: TabsDrawerProps): React.ReactElement;
98
+ export { TabsDrawer };
@@ -0,0 +1 @@
1
+ import "./index.jsx";
package/package.json ADDED
@@ -0,0 +1,58 @@
1
+ {
2
+ "name": "@next-bricks/data-view",
3
+ "version": "0.1.0",
4
+ "homepage": "https://github.com/easyops-cn/next-core/tree/master/bricks/data-view",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git@github.com:easyops-cn/next-core.git"
8
+ },
9
+ "license": "GPL-3.0",
10
+ "type": "module",
11
+ "sideEffects": true,
12
+ "files": [
13
+ "dist",
14
+ "dist-types"
15
+ ],
16
+ "nx": {
17
+ "targets": {
18
+ "build": {
19
+ "outputs": [
20
+ "{projectRoot}/dist",
21
+ "{projectRoot}/dist-types"
22
+ ]
23
+ }
24
+ }
25
+ },
26
+ "exports": {
27
+ "./package.json": "./package.json",
28
+ "./*": {
29
+ "types": "./dist-types/*/index.d.ts"
30
+ }
31
+ },
32
+ "scripts": {
33
+ "start": "cross-env NODE_ENV=development build-next-bricks --watch",
34
+ "build": "npm run build:main && npm run build:types",
35
+ "build:main": "cross-env NODE_ENV=production build-next-bricks",
36
+ "build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist-types --project tsconfig.json",
37
+ "test": "cross-env NODE_ENV='test' test-next",
38
+ "test:ci": "cross-env NODE_ENV='test' CI=true test-next"
39
+ },
40
+ "dependencies": {
41
+ "@next-bricks/icons": "^0.0.3",
42
+ "@next-core/element": "^1.0.2",
43
+ "@next-core/i18n": "^1.0.3",
44
+ "@next-core/react-element": "^1.0.2",
45
+ "@next-core/types": "^1.0.3",
46
+ "@next-core/utils": "^1.0.3",
47
+ "classnames": "^2.3.2",
48
+ "d3-hierarchy": "^3.1.2",
49
+ "react": "0.0.0-experimental-ee8509801-20230117",
50
+ "resize-observer-polyfill": "^1.5.1"
51
+ },
52
+ "devDependencies": {
53
+ "@next-core/build-next-bricks": "^1.1.0",
54
+ "@next-core/test-next": "^1.0.2",
55
+ "@types/d3-hierarchy": "^3.1.2"
56
+ },
57
+ "gitHead": "2234d08a3409a41b7cacea7b4dedbee308c26997"
58
+ }