@next-bricks/data-view 0.18.0 → 0.19.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/dist/bricks.json +5 -2
- package/dist/chunks/{2108.75b79d61.js → 2108.a7b9788f.js} +2 -2
- package/dist/chunks/{2108.75b79d61.js.map → 2108.a7b9788f.js.map} +1 -1
- package/dist/chunks/4635.cf090449.js +2 -0
- package/dist/chunks/4635.cf090449.js.map +1 -0
- package/dist/chunks/4637.672e207a.js +2 -0
- package/dist/chunks/4637.672e207a.js.map +1 -0
- package/dist/chunks/{5381.d524e3cc.js → 5381.c6f848fe.js} +2 -2
- package/dist/chunks/{5381.d524e3cc.js.map → 5381.c6f848fe.js.map} +1 -1
- package/dist/chunks/{6660.3e611bb3.js → 6660.6fa98cb7.js} +2 -2
- package/dist/chunks/{6660.3e611bb3.js.map → 6660.6fa98cb7.js.map} +1 -1
- package/dist/chunks/{complex-search.3c0d20e7.js → complex-search.59965ae1.js} +2 -2
- package/dist/chunks/{complex-search.3c0d20e7.js.map → complex-search.59965ae1.js.map} +1 -1
- package/dist/chunks/data-display-flipper-fifth.6005ab9a.js +2 -0
- package/dist/chunks/data-display-flipper-fifth.6005ab9a.js.map +1 -0
- package/dist/chunks/data-display-flipper-sixth.025897c1.js +2 -0
- package/dist/chunks/data-display-flipper-sixth.025897c1.js.map +1 -0
- package/dist/chunks/data-display-flipper.92cca083.js +2 -0
- package/dist/chunks/data-display-flipper.92cca083.js.map +1 -0
- package/dist/chunks/main.0a30f3e1.js +2 -0
- package/dist/chunks/{main.89a1e38a.js.map → main.0a30f3e1.js.map} +1 -1
- package/dist/chunks/{modern-style-treemap.c56798a6.js → modern-style-treemap.c3bea9ed.js} +3 -3
- package/dist/chunks/{modern-style-treemap.c56798a6.js.map → modern-style-treemap.c3bea9ed.js.map} +1 -1
- package/dist/examples.json +9 -0
- package/dist/images/3f771ccb.png +0 -0
- package/dist/images/55ec58fb.svg +69 -0
- package/dist/images/5ac406d0.png +0 -0
- package/dist/images/cbff6bc1.png +0 -0
- package/dist/images/d464844c.svg +19 -0
- package/dist/index.9474bd66.js +2 -0
- package/dist/index.9474bd66.js.map +1 -0
- package/dist/manifest.json +123 -0
- package/dist/types.json +187 -0
- package/dist-types/bootstrap.d.ts +3 -0
- package/dist-types/data-display-flipper/index.d.ts +49 -0
- package/dist-types/data-display-flipper/index.spec.d.ts +1 -0
- package/dist-types/data-display-flipper-fifth/index.d.ts +44 -0
- package/dist-types/data-display-flipper-fifth/index.spec.d.ts +1 -0
- package/dist-types/data-display-flipper-sixth/index.d.ts +27 -0
- package/dist-types/data-display-flipper-sixth/index.spec.d.ts +1 -0
- package/docs/data-display-flipper-fifth.md +13 -0
- package/docs/data-display-flipper-sixth.md +12 -0
- package/docs/data-display-flipper.md +24 -0
- package/package.json +2 -2
- package/dist/chunks/2465.b571e5f2.js +0 -2
- package/dist/chunks/2465.b571e5f2.js.map +0 -1
- package/dist/chunks/4635.1f848248.js +0 -2
- package/dist/chunks/4635.1f848248.js.map +0 -1
- package/dist/chunks/main.89a1e38a.js +0 -2
- package/dist/index.15968d11.js +0 -2
- package/dist/index.15968d11.js.map +0 -1
- /package/dist/chunks/{modern-style-treemap.c56798a6.js.LICENSE.txt → modern-style-treemap.c3bea9ed.js.LICENSE.txt} +0 -0
package/dist/types.json
CHANGED
|
@@ -2122,6 +2122,193 @@
|
|
|
2122
2122
|
}
|
|
2123
2123
|
]
|
|
2124
2124
|
},
|
|
2125
|
+
"data-view.data-display-flipper": {
|
|
2126
|
+
"properties": [
|
|
2127
|
+
{
|
|
2128
|
+
"name": "flipperTitle",
|
|
2129
|
+
"annotation": {
|
|
2130
|
+
"type": "keyword",
|
|
2131
|
+
"value": "string"
|
|
2132
|
+
}
|
|
2133
|
+
},
|
|
2134
|
+
{
|
|
2135
|
+
"name": "flipperStyle",
|
|
2136
|
+
"annotation": {
|
|
2137
|
+
"type": "reference",
|
|
2138
|
+
"typeName": {
|
|
2139
|
+
"type": "qualifiedName",
|
|
2140
|
+
"left": {
|
|
2141
|
+
"type": "identifier",
|
|
2142
|
+
"name": "React"
|
|
2143
|
+
},
|
|
2144
|
+
"right": {
|
|
2145
|
+
"type": "identifier",
|
|
2146
|
+
"name": "CSSProperties"
|
|
2147
|
+
}
|
|
2148
|
+
}
|
|
2149
|
+
}
|
|
2150
|
+
},
|
|
2151
|
+
{
|
|
2152
|
+
"name": "data",
|
|
2153
|
+
"annotation": {
|
|
2154
|
+
"type": "union",
|
|
2155
|
+
"types": [
|
|
2156
|
+
{
|
|
2157
|
+
"type": "keyword",
|
|
2158
|
+
"value": "number"
|
|
2159
|
+
},
|
|
2160
|
+
{
|
|
2161
|
+
"type": "keyword",
|
|
2162
|
+
"value": "string"
|
|
2163
|
+
}
|
|
2164
|
+
]
|
|
2165
|
+
}
|
|
2166
|
+
},
|
|
2167
|
+
{
|
|
2168
|
+
"name": "unit",
|
|
2169
|
+
"annotation": {
|
|
2170
|
+
"type": "keyword",
|
|
2171
|
+
"value": "string"
|
|
2172
|
+
}
|
|
2173
|
+
},
|
|
2174
|
+
{
|
|
2175
|
+
"name": "enableTitlePrefix",
|
|
2176
|
+
"annotation": {
|
|
2177
|
+
"type": "keyword",
|
|
2178
|
+
"value": "boolean"
|
|
2179
|
+
}
|
|
2180
|
+
},
|
|
2181
|
+
{
|
|
2182
|
+
"name": "showDefaultPrefix",
|
|
2183
|
+
"annotation": {
|
|
2184
|
+
"type": "keyword",
|
|
2185
|
+
"value": "boolean"
|
|
2186
|
+
}
|
|
2187
|
+
},
|
|
2188
|
+
{
|
|
2189
|
+
"name": "separator",
|
|
2190
|
+
"annotation": {
|
|
2191
|
+
"type": "keyword",
|
|
2192
|
+
"value": "string"
|
|
2193
|
+
}
|
|
2194
|
+
}
|
|
2195
|
+
],
|
|
2196
|
+
"events": [],
|
|
2197
|
+
"methods": []
|
|
2198
|
+
},
|
|
2199
|
+
"data-view.data-display-flipper-fifth": {
|
|
2200
|
+
"properties": [
|
|
2201
|
+
{
|
|
2202
|
+
"name": "flipperTitle",
|
|
2203
|
+
"annotation": {
|
|
2204
|
+
"type": "keyword",
|
|
2205
|
+
"value": "string"
|
|
2206
|
+
}
|
|
2207
|
+
},
|
|
2208
|
+
{
|
|
2209
|
+
"name": "flipperStyle",
|
|
2210
|
+
"annotation": {
|
|
2211
|
+
"type": "reference",
|
|
2212
|
+
"typeName": {
|
|
2213
|
+
"type": "qualifiedName",
|
|
2214
|
+
"left": {
|
|
2215
|
+
"type": "identifier",
|
|
2216
|
+
"name": "React"
|
|
2217
|
+
},
|
|
2218
|
+
"right": {
|
|
2219
|
+
"type": "identifier",
|
|
2220
|
+
"name": "CSSProperties"
|
|
2221
|
+
}
|
|
2222
|
+
}
|
|
2223
|
+
}
|
|
2224
|
+
},
|
|
2225
|
+
{
|
|
2226
|
+
"name": "data",
|
|
2227
|
+
"annotation": {
|
|
2228
|
+
"type": "union",
|
|
2229
|
+
"types": [
|
|
2230
|
+
{
|
|
2231
|
+
"type": "keyword",
|
|
2232
|
+
"value": "number"
|
|
2233
|
+
},
|
|
2234
|
+
{
|
|
2235
|
+
"type": "keyword",
|
|
2236
|
+
"value": "string"
|
|
2237
|
+
}
|
|
2238
|
+
]
|
|
2239
|
+
}
|
|
2240
|
+
},
|
|
2241
|
+
{
|
|
2242
|
+
"name": "unit",
|
|
2243
|
+
"annotation": {
|
|
2244
|
+
"type": "keyword",
|
|
2245
|
+
"value": "string"
|
|
2246
|
+
}
|
|
2247
|
+
},
|
|
2248
|
+
{
|
|
2249
|
+
"name": "enableTitlePrefix",
|
|
2250
|
+
"annotation": {
|
|
2251
|
+
"type": "keyword",
|
|
2252
|
+
"value": "boolean"
|
|
2253
|
+
}
|
|
2254
|
+
},
|
|
2255
|
+
{
|
|
2256
|
+
"name": "showDefaultPrefix",
|
|
2257
|
+
"annotation": {
|
|
2258
|
+
"type": "keyword",
|
|
2259
|
+
"value": "boolean"
|
|
2260
|
+
}
|
|
2261
|
+
}
|
|
2262
|
+
],
|
|
2263
|
+
"events": [],
|
|
2264
|
+
"methods": []
|
|
2265
|
+
},
|
|
2266
|
+
"data-view.data-display-flipper-sixth": {
|
|
2267
|
+
"properties": [
|
|
2268
|
+
{
|
|
2269
|
+
"name": "flipperTitle",
|
|
2270
|
+
"annotation": {
|
|
2271
|
+
"type": "keyword",
|
|
2272
|
+
"value": "string"
|
|
2273
|
+
}
|
|
2274
|
+
},
|
|
2275
|
+
{
|
|
2276
|
+
"name": "flipperStyle",
|
|
2277
|
+
"annotation": {
|
|
2278
|
+
"type": "reference",
|
|
2279
|
+
"typeName": {
|
|
2280
|
+
"type": "qualifiedName",
|
|
2281
|
+
"left": {
|
|
2282
|
+
"type": "identifier",
|
|
2283
|
+
"name": "React"
|
|
2284
|
+
},
|
|
2285
|
+
"right": {
|
|
2286
|
+
"type": "identifier",
|
|
2287
|
+
"name": "CSSProperties"
|
|
2288
|
+
}
|
|
2289
|
+
}
|
|
2290
|
+
}
|
|
2291
|
+
},
|
|
2292
|
+
{
|
|
2293
|
+
"name": "data",
|
|
2294
|
+
"annotation": {
|
|
2295
|
+
"type": "union",
|
|
2296
|
+
"types": [
|
|
2297
|
+
{
|
|
2298
|
+
"type": "keyword",
|
|
2299
|
+
"value": "number"
|
|
2300
|
+
},
|
|
2301
|
+
{
|
|
2302
|
+
"type": "keyword",
|
|
2303
|
+
"value": "string"
|
|
2304
|
+
}
|
|
2305
|
+
]
|
|
2306
|
+
}
|
|
2307
|
+
}
|
|
2308
|
+
],
|
|
2309
|
+
"events": [],
|
|
2310
|
+
"methods": []
|
|
2311
|
+
},
|
|
2125
2312
|
"data-view.loading-panel": {
|
|
2126
2313
|
"properties": [
|
|
2127
2314
|
{
|
|
@@ -33,3 +33,6 @@ import "./hi-tech-button/index.js";
|
|
|
33
33
|
import "./tech-mesh-base-view/index.js";
|
|
34
34
|
import "./simple-card-item/index.js";
|
|
35
35
|
import "./basic-index-group/index.js";
|
|
36
|
+
import "./data-display-flipper/index.js";
|
|
37
|
+
import "./data-display-flipper-fifth/index.js";
|
|
38
|
+
import "./data-display-flipper-sixth/index.js";
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ReactNextElement } from "@next-core/react-element";
|
|
3
|
+
import "@next-core/theme";
|
|
4
|
+
export interface DataDisplayFlipperProps {
|
|
5
|
+
flipperTitle?: string;
|
|
6
|
+
data: number | string;
|
|
7
|
+
unit: string;
|
|
8
|
+
flipperStyle?: React.CSSProperties;
|
|
9
|
+
enableTitlePrefix?: boolean;
|
|
10
|
+
showDefaultPrefix?: boolean;
|
|
11
|
+
separator?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* 构件 `data-view.data-display-flipper`
|
|
15
|
+
*/
|
|
16
|
+
declare class DataDisplayFlipper extends ReactNextElement implements DataDisplayFlipperProps {
|
|
17
|
+
/** 翻牌器标题 */
|
|
18
|
+
accessor flipperTitle: string;
|
|
19
|
+
/**
|
|
20
|
+
* 翻牌器样式
|
|
21
|
+
* @group other
|
|
22
|
+
*/
|
|
23
|
+
accessor flipperStyle: React.CSSProperties | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* 翻牌器数值
|
|
26
|
+
*/
|
|
27
|
+
accessor data: number | string;
|
|
28
|
+
/**
|
|
29
|
+
* 翻牌器单位
|
|
30
|
+
*/
|
|
31
|
+
accessor unit: string;
|
|
32
|
+
/**
|
|
33
|
+
* 是否启用标题前缀插槽
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
accessor enableTitlePrefix: boolean | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* 标题是否展示默认前缀图片
|
|
39
|
+
* @default true
|
|
40
|
+
*/
|
|
41
|
+
accessor showDefaultPrefix: boolean | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* 翻牌器数字和单位之间的分隔符
|
|
44
|
+
*/
|
|
45
|
+
accessor separator: string;
|
|
46
|
+
render(): JSX.Element;
|
|
47
|
+
}
|
|
48
|
+
export declare function DataDisplayFlipperComponent(props: DataDisplayFlipperProps): JSX.Element;
|
|
49
|
+
export { DataDisplayFlipper };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./";
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ReactNextElement } from "@next-core/react-element";
|
|
3
|
+
import "@next-core/theme";
|
|
4
|
+
export interface DataDisplayFlipperFifthProps {
|
|
5
|
+
flipperTitle?: string;
|
|
6
|
+
data: number | string;
|
|
7
|
+
unit: string;
|
|
8
|
+
flipperStyle?: React.CSSProperties;
|
|
9
|
+
enableTitlePrefix?: boolean;
|
|
10
|
+
showDefaultPrefix?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 构件 `data-view.data-display-flipper-fifth`
|
|
14
|
+
*/
|
|
15
|
+
declare class DataDisplayFlipperFifth extends ReactNextElement implements DataDisplayFlipperFifthProps {
|
|
16
|
+
/** 翻牌器标题 */
|
|
17
|
+
accessor flipperTitle: string;
|
|
18
|
+
/**
|
|
19
|
+
* 翻牌器样式
|
|
20
|
+
* @group other
|
|
21
|
+
*/
|
|
22
|
+
accessor flipperStyle: React.CSSProperties | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* 翻牌器数值
|
|
25
|
+
*/
|
|
26
|
+
accessor data: number | string;
|
|
27
|
+
/**
|
|
28
|
+
* 翻牌器单位
|
|
29
|
+
*/
|
|
30
|
+
accessor unit: string;
|
|
31
|
+
/**
|
|
32
|
+
* 是否启用标题前缀插槽
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
accessor enableTitlePrefix: boolean | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* 标题是否展示默认前缀图片
|
|
38
|
+
* @default true
|
|
39
|
+
*/
|
|
40
|
+
accessor showDefaultPrefix: boolean | undefined;
|
|
41
|
+
render(): JSX.Element;
|
|
42
|
+
}
|
|
43
|
+
export declare function DataDisplayFlipperFifthFifthComponent(props: DataDisplayFlipperFifthProps): JSX.Element;
|
|
44
|
+
export { DataDisplayFlipperFifth };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ReactNextElement } from "@next-core/react-element";
|
|
3
|
+
import "@next-core/theme";
|
|
4
|
+
export interface DataDisplayFlipperSixthProps {
|
|
5
|
+
flipperTitle?: string;
|
|
6
|
+
data: number | string;
|
|
7
|
+
flipperStyle?: React.CSSProperties;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 构件 `data-view.data-display-flipper-sixth`
|
|
11
|
+
*/
|
|
12
|
+
declare class DataDisplayFlipperSixth extends ReactNextElement implements DataDisplayFlipperSixthProps {
|
|
13
|
+
/** 翻牌器标题 */
|
|
14
|
+
accessor flipperTitle: string;
|
|
15
|
+
/**
|
|
16
|
+
* 翻牌器样式
|
|
17
|
+
* @group other
|
|
18
|
+
*/
|
|
19
|
+
accessor flipperStyle: React.CSSProperties | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* 翻牌器数值
|
|
22
|
+
*/
|
|
23
|
+
accessor data: number | string;
|
|
24
|
+
render(): JSX.Element;
|
|
25
|
+
}
|
|
26
|
+
export declare function DataDisplayFlipperSixthComponent(props: DataDisplayFlipperSixthProps): JSX.Element;
|
|
27
|
+
export { DataDisplayFlipperSixth };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
构件 `data-view.data-display-flipper`
|
|
2
|
+
|
|
3
|
+
## Examples
|
|
4
|
+
|
|
5
|
+
### Basic
|
|
6
|
+
|
|
7
|
+
```yaml preview
|
|
8
|
+
- brick: data-view.data-display-flipper
|
|
9
|
+
properties:
|
|
10
|
+
flipperTitle: 翻牌器标题
|
|
11
|
+
data: 1281925.15
|
|
12
|
+
unit: 万
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### showDefaultPrefix
|
|
16
|
+
|
|
17
|
+
```yaml preview
|
|
18
|
+
- brick: data-view.data-display-flipper
|
|
19
|
+
properties:
|
|
20
|
+
data: 1281925.15
|
|
21
|
+
unit: 万
|
|
22
|
+
separator: " "
|
|
23
|
+
showDefaultPrefix: false
|
|
24
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/data-view",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.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": "
|
|
42
|
+
"gitHead": "9725e282d5675fe25a8c0052055347c7e513534a"
|
|
43
43
|
}
|