@next-bricks/presentational-bricks 1.338.0 → 1.339.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/deploy/contract.yaml +123 -123
- package/dist/bricks.json +29 -29
- package/dist/index.e0f6d174.js +2 -0
- package/dist/index.e0f6d174.js.map +1 -0
- package/dist-types/agent-status/index.d.ts +24 -0
- package/dist-types/avatar-upload/index.d.ts +21 -0
- package/dist-types/banner-display-card-list/index.d.ts +16 -0
- package/dist-types/basic-icon/index.d.ts +37 -0
- package/dist-types/basic-progress/index.d.ts +55 -0
- package/dist-types/bootstrap.d.ts +78 -0
- package/dist-types/brick-alert/index.d.ts +38 -0
- package/dist-types/brick-alert-level/index.d.ts +13 -0
- package/dist-types/brick-alert-number/index.d.ts +7 -0
- package/dist-types/brick-alert-status/index.d.ts +17 -0
- package/dist-types/brick-alert-value/index.d.ts +9 -0
- package/dist-types/brick-button/index.d.ts +11 -0
- package/dist-types/brick-calendar/index.d.ts +49 -0
- package/dist-types/brick-cluster-type/index.d.ts +17 -0
- package/dist-types/brick-code-display/index.d.ts +15 -0
- package/dist-types/brick-collapse-card/index.d.ts +46 -0
- package/dist-types/brick-conditional-display/index.d.ts +51 -0
- package/dist-types/brick-delete-confirm/index.d.ts +15 -0
- package/dist-types/brick-descriptions/index.d.ts +83 -0
- package/dist-types/brick-display-structs/index.d.ts +20 -0
- package/dist-types/brick-divider/index.d.ts +22 -0
- package/dist-types/brick-form/index.d.ts +95 -0
- package/dist-types/brick-general-search/index.d.ts +73 -0
- package/dist-types/brick-humanize-time/index.d.ts +32 -0
- package/dist-types/brick-illustration/index.d.ts +45 -0
- package/dist-types/brick-input/index.d.ts +25 -0
- package/dist-types/brick-link/index.d.ts +53 -0
- package/dist-types/brick-list/index.d.ts +40 -0
- package/dist-types/brick-placeholder/index.d.ts +15 -0
- package/dist-types/brick-quick-entries/index.d.ts +53 -0
- package/dist-types/brick-rate/index.d.ts +33 -0
- package/dist-types/brick-result/index.d.ts +62 -0
- package/dist-types/brick-table/index.d.ts +313 -0
- package/dist-types/brick-tag/index.d.ts +125 -0
- package/dist-types/brick-timeline/index.d.ts +54 -0
- package/dist-types/brick-tree/index.d.ts +175 -0
- package/dist-types/brick-user/index.d.ts +29 -0
- package/dist-types/brick-user-group/index.d.ts +19 -0
- package/dist-types/brick-utils/index.d.ts +9 -0
- package/dist-types/brick-value-mapping/index.d.ts +71 -0
- package/dist-types/button-wrapper/index.d.ts +11 -0
- package/dist-types/card-item/index.d.ts +169 -0
- package/dist-types/code-editor/index.d.ts +45 -0
- package/dist-types/collapse-info-list/index.d.ts +27 -0
- package/dist-types/collapsible-card-item/index.d.ts +60 -0
- package/dist-types/copyable-text/index.d.ts +25 -0
- package/dist-types/cost-time/index.d.ts +30 -0
- package/dist-types/crontab-display/index.d.ts +11 -0
- package/dist-types/datetime-selector/index.d.ts +63 -0
- package/dist-types/digital-number/index.d.ts +33 -0
- package/dist-types/dropdown-button/index.d.ts +33 -0
- package/dist-types/dropdown-select/index.d.ts +80 -0
- package/dist-types/dynamic-content/index.d.ts +9 -0
- package/dist-types/dynamic-grid-container/index.d.ts +23 -0
- package/dist-types/entry-card-item/index.d.ts +62 -0
- package/dist-types/general-badge/index.d.ts +29 -0
- package/dist-types/general-carousel/index.d.ts +84 -0
- package/dist-types/general-image/index.d.ts +55 -0
- package/dist-types/general-label/index.d.ts +29 -0
- package/dist-types/general-list/index.d.ts +13 -0
- package/dist-types/general-pagination/index.d.ts +35 -0
- package/dist-types/general-preview-image/index.d.ts +23 -0
- package/dist-types/general-slider/index.d.ts +53 -0
- package/dist-types/general-tooltip/index.d.ts +80 -0
- package/dist-types/general-transfer/index.d.ts +44 -0
- package/dist-types/general-video/index.d.ts +13 -0
- package/dist-types/index.d.ts +78 -0
- package/dist-types/info-display-card-list/index.d.ts +50 -0
- package/dist-types/interfaces/common.d.ts +18 -0
- package/dist-types/jsx.d.ts +949 -0
- package/dist-types/log-display/index.d.ts +16 -0
- package/dist-types/markdown-display/index.d.ts +40 -0
- package/dist-types/markdown-editor/index.d.ts +53 -0
- package/dist-types/modal-confirm/index.d.ts +82 -0
- package/dist-types/qrcode-download/index.d.ts +25 -0
- package/dist-types/rank-table/index.d.ts +99 -0
- package/dist-types/single-field-edit/index.d.ts +53 -0
- package/dist-types/statistic-card/index.d.ts +45 -0
- package/dist-types/table-transfer/index.d.ts +46 -0
- package/dist-types/template-breadcrumb/index.d.ts +7 -0
- package/dist-types/text-collapse/index.d.ts +9 -0
- package/dist-types/tree-transfer/index.d.ts +33 -0
- package/package.json +11 -3
- package/dist/index.09485ac8.js +0 -2
- package/dist/index.09485ac8.js.map +0 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export enum AgentStatusType {
|
|
2
|
+
NORMAL = "正常",
|
|
3
|
+
ABNORMAL = "异常",
|
|
4
|
+
NOT_INSTALLED = "未安装",
|
|
5
|
+
UNINSTALLED = "已卸载",
|
|
6
|
+
UNDER_MAINTENANCE = "维护中",
|
|
7
|
+
NORMAL_EN = "Normal",
|
|
8
|
+
ABNORMAL_EN = "Abnormal",
|
|
9
|
+
NOT_INSTALLED_EN = "Not Installed",
|
|
10
|
+
UNINSTALLED_EN = "Uninstalled",
|
|
11
|
+
UNDER_MAINTENANCE_EN = "Under Maintenance",
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface AgentStatusProps {
|
|
15
|
+
dataSource?: any;
|
|
16
|
+
fields?: { value: string };
|
|
17
|
+
value?: AgentStatusType;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export declare class AgentStatusElement extends HTMLElement {
|
|
21
|
+
dataSource: any | undefined;
|
|
22
|
+
fields: { value: string } | undefined;
|
|
23
|
+
value: AgentStatusType | undefined;
|
|
24
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface AvatarUploadProps {
|
|
2
|
+
imgSrc?: string;
|
|
3
|
+
size?: number;
|
|
4
|
+
modalOkText?: string;
|
|
5
|
+
textStyle?: Record<string, any>;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface AvatarUploadEvents {
|
|
9
|
+
"avatar.upload.success": CustomEvent<any>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface AvatarUploadEventsMap {
|
|
13
|
+
onAvatarUploadSuccess: "avatar.upload.success";
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export declare class AvatarUploadElement extends HTMLElement {
|
|
17
|
+
imgSrc: string | undefined;
|
|
18
|
+
size: number | undefined;
|
|
19
|
+
modalOkText: string | undefined;
|
|
20
|
+
textStyle: Record<string, any> | undefined;
|
|
21
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { UseBrickConf } from "@next-core/brick-types";
|
|
2
|
+
|
|
3
|
+
export interface CardItem {
|
|
4
|
+
title?: string;
|
|
5
|
+
content?: string;
|
|
6
|
+
optionConf?: { useBrick: UseBrickConf };
|
|
7
|
+
green?: boolean;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface BannerDisplayCardListProps {
|
|
11
|
+
cardList?: CardItem[];
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export declare class BannerDisplayCardListElement extends HTMLElement {
|
|
15
|
+
cardList: CardItem[] | undefined;
|
|
16
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { MenuIcon } from "@next-core/brick-types";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
|
|
4
|
+
export type ImgIcon = {
|
|
5
|
+
imgSrc?: string;
|
|
6
|
+
imgStyle?: React.CSSProperties;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export interface BasicIconProps {
|
|
10
|
+
icon?: MenuIcon | ImgIcon;
|
|
11
|
+
size?: string;
|
|
12
|
+
renderBg?: boolean;
|
|
13
|
+
showWhenHover?: boolean;
|
|
14
|
+
bg?: string;
|
|
15
|
+
bgSize?: string;
|
|
16
|
+
bgBorderRadius?: string;
|
|
17
|
+
dataSource?: unknown;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface BasicIconEvents {
|
|
21
|
+
"icon.click": CustomEvent<any>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface BasicIconEventsMap {
|
|
25
|
+
onIconClick: "icon.click";
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export declare class BasicIconElement extends HTMLElement {
|
|
29
|
+
icon: MenuIcon | ImgIcon | undefined;
|
|
30
|
+
size: string | undefined;
|
|
31
|
+
renderBg: boolean | undefined;
|
|
32
|
+
showWhenHover: boolean | undefined;
|
|
33
|
+
bg: string | undefined;
|
|
34
|
+
bgSize: string | undefined;
|
|
35
|
+
bgBorderRadius: string | undefined;
|
|
36
|
+
dataSource: unknown | undefined;
|
|
37
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export interface ColorObj {
|
|
2
|
+
/**
|
|
3
|
+
* 进度范围最大值,值(value)小于等于最大值则为该颜色
|
|
4
|
+
*/
|
|
5
|
+
progress: string | number;
|
|
6
|
+
/**
|
|
7
|
+
* 颜色
|
|
8
|
+
*/
|
|
9
|
+
color: Color;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export enum Color {
|
|
13
|
+
green = "green",
|
|
14
|
+
red = "red",
|
|
15
|
+
blue = "blue",
|
|
16
|
+
orange = "orange",
|
|
17
|
+
cyan = "cyan",
|
|
18
|
+
purple = "purple",
|
|
19
|
+
geekblue = "geekblue",
|
|
20
|
+
gray = "gray",
|
|
21
|
+
slategray = "slategray",
|
|
22
|
+
doderblue = "doderblue",
|
|
23
|
+
royalblue = "royalblue",
|
|
24
|
+
lightorange = "lightorange",
|
|
25
|
+
goldenrod = "goldenrod",
|
|
26
|
+
jewelryblue = "jewelryblue",
|
|
27
|
+
orangered = "orangered",
|
|
28
|
+
springgreen = "springgreen",
|
|
29
|
+
mediumpurple = "mediumpurple",
|
|
30
|
+
skyblue = "skyblue",
|
|
31
|
+
yellowgreen = "yellowgreen",
|
|
32
|
+
lightpurple = "lightpurple",
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface BasicProgressProps {
|
|
36
|
+
value?: number;
|
|
37
|
+
type?: "line" | "circle" | "dashboard";
|
|
38
|
+
text?: string;
|
|
39
|
+
description?: string;
|
|
40
|
+
textColor?: string;
|
|
41
|
+
colorMap?: ColorObj[];
|
|
42
|
+
fontSize?: string;
|
|
43
|
+
configProps?: Record<string, any>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export declare class BasicProgressElement extends HTMLElement {
|
|
47
|
+
value: number | undefined;
|
|
48
|
+
type: "line" | "circle" | "dashboard" | undefined;
|
|
49
|
+
text: string | undefined;
|
|
50
|
+
description: string | undefined;
|
|
51
|
+
textColor: string | undefined;
|
|
52
|
+
colorMap: ColorObj[] | undefined;
|
|
53
|
+
fontSize: string | undefined;
|
|
54
|
+
configProps: Record<string, any> | undefined;
|
|
55
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import "./agent-status/index.js";
|
|
2
|
+
import "./avatar-upload/index.js";
|
|
3
|
+
import "./banner-display-card-list/index.js";
|
|
4
|
+
import "./basic-icon/index.js";
|
|
5
|
+
import "./basic-progress/index.js";
|
|
6
|
+
import "./brick-alert/index.js";
|
|
7
|
+
import "./brick-alert-level/index.js";
|
|
8
|
+
import "./brick-alert-number/index.js";
|
|
9
|
+
import "./brick-alert-status/index.js";
|
|
10
|
+
import "./brick-alert-value/index.js";
|
|
11
|
+
import "./brick-button/index.js";
|
|
12
|
+
import "./brick-calendar/index.js";
|
|
13
|
+
import "./brick-cluster-type/index.js";
|
|
14
|
+
import "./brick-code-display/index.js";
|
|
15
|
+
import "./brick-collapse-card/index.js";
|
|
16
|
+
import "./brick-conditional-display/index.js";
|
|
17
|
+
import "./brick-delete-confirm/index.js";
|
|
18
|
+
import "./brick-descriptions/index.js";
|
|
19
|
+
import "./brick-display-structs/index.js";
|
|
20
|
+
import "./brick-divider/index.js";
|
|
21
|
+
import "./brick-form/index.js";
|
|
22
|
+
import "./brick-general-search/index.js";
|
|
23
|
+
import "./brick-humanize-time/index.js";
|
|
24
|
+
import "./brick-illustration/index.js";
|
|
25
|
+
import "./brick-input/index.js";
|
|
26
|
+
import "./brick-link/index.js";
|
|
27
|
+
import "./brick-list/index.js";
|
|
28
|
+
import "./brick-placeholder/index.js";
|
|
29
|
+
import "./brick-quick-entries/index.js";
|
|
30
|
+
import "./brick-rate/index.js";
|
|
31
|
+
import "./brick-result/index.js";
|
|
32
|
+
import "./brick-table/index.js";
|
|
33
|
+
import "./brick-tag/index.js";
|
|
34
|
+
import "./brick-timeline/index.js";
|
|
35
|
+
import "./brick-tree/index.js";
|
|
36
|
+
import "./brick-user/index.js";
|
|
37
|
+
import "./brick-user-group/index.js";
|
|
38
|
+
import "./brick-utils/index.js";
|
|
39
|
+
import "./brick-value-mapping/index.js";
|
|
40
|
+
import "./button-wrapper/index.js";
|
|
41
|
+
import "./card-item/index.js";
|
|
42
|
+
import "./code-editor/index.js";
|
|
43
|
+
import "./collapse-info-list/index.js";
|
|
44
|
+
import "./collapsible-card-item/index.js";
|
|
45
|
+
import "./copyable-text/index.js";
|
|
46
|
+
import "./cost-time/index.js";
|
|
47
|
+
import "./crontab-display/index.js";
|
|
48
|
+
import "./datetime-selector/index.js";
|
|
49
|
+
import "./digital-number/index.js";
|
|
50
|
+
import "./dropdown-button/index.js";
|
|
51
|
+
import "./dropdown-select/index.js";
|
|
52
|
+
import "./dynamic-content/index.js";
|
|
53
|
+
import "./dynamic-grid-container/index.js";
|
|
54
|
+
import "./entry-card-item/index.js";
|
|
55
|
+
import "./general-badge/index.js";
|
|
56
|
+
import "./general-carousel/index.js";
|
|
57
|
+
import "./general-image/index.js";
|
|
58
|
+
import "./general-label/index.js";
|
|
59
|
+
import "./general-list/index.js";
|
|
60
|
+
import "./general-pagination/index.js";
|
|
61
|
+
import "./general-preview-image/index.js";
|
|
62
|
+
import "./general-slider/index.js";
|
|
63
|
+
import "./general-tooltip/index.js";
|
|
64
|
+
import "./general-transfer/index.js";
|
|
65
|
+
import "./general-video/index.js";
|
|
66
|
+
import "./info-display-card-list/index.js";
|
|
67
|
+
import "./log-display/index.js";
|
|
68
|
+
import "./markdown-display/index.js";
|
|
69
|
+
import "./markdown-editor/index.js";
|
|
70
|
+
import "./modal-confirm/index.js";
|
|
71
|
+
import "./qrcode-download/index.js";
|
|
72
|
+
import "./rank-table/index.js";
|
|
73
|
+
import "./single-field-edit/index.js";
|
|
74
|
+
import "./statistic-card/index.js";
|
|
75
|
+
import "./table-transfer/index.js";
|
|
76
|
+
import "./template-breadcrumb/index.js";
|
|
77
|
+
import "./text-collapse/index.js";
|
|
78
|
+
import "./tree-transfer/index.js";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
|
+
export type AlertType = "success" | "error" | "info" | "warning";
|
|
3
|
+
|
|
4
|
+
export interface BrickAlertProps {
|
|
5
|
+
message?: string;
|
|
6
|
+
messageStyle?: CSSProperties;
|
|
7
|
+
description?: string;
|
|
8
|
+
type?: AlertType;
|
|
9
|
+
showIcon?: boolean;
|
|
10
|
+
closable?: boolean;
|
|
11
|
+
enableDescSlot?: boolean;
|
|
12
|
+
enableMessageSlot?: boolean;
|
|
13
|
+
enableActionSlot?: boolean;
|
|
14
|
+
localStorageKey?: string;
|
|
15
|
+
stripLocalStorageUrlSuffix?: boolean;
|
|
16
|
+
foldDesc?: boolean;
|
|
17
|
+
foldDescLabel?: string;
|
|
18
|
+
noBorderRadio?: boolean;
|
|
19
|
+
iconSize?: "big" | "small" | "default";
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export declare class BrickAlertElement extends HTMLElement {
|
|
23
|
+
message: string | undefined;
|
|
24
|
+
messageStyle: CSSProperties | undefined;
|
|
25
|
+
description: string | undefined;
|
|
26
|
+
type: AlertType | undefined;
|
|
27
|
+
showIcon: boolean | undefined;
|
|
28
|
+
closable: boolean | undefined;
|
|
29
|
+
enableDescSlot: boolean | undefined;
|
|
30
|
+
enableMessageSlot: boolean | undefined;
|
|
31
|
+
enableActionSlot: boolean | undefined;
|
|
32
|
+
localStorageKey: string | undefined;
|
|
33
|
+
stripLocalStorageUrlSuffix: boolean | undefined;
|
|
34
|
+
foldDesc: boolean | undefined;
|
|
35
|
+
foldDescLabel: string | undefined;
|
|
36
|
+
noBorderRadio: boolean | undefined;
|
|
37
|
+
iconSize: "big" | "small" | "default" | undefined;
|
|
38
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type AlertLevel = 0 | 1 | 2 | "info" | "warning" | "critical";
|
|
2
|
+
|
|
3
|
+
export interface BrickAlertLevelProps {
|
|
4
|
+
value?: AlertLevel;
|
|
5
|
+
dataSource?: Record<string, any>;
|
|
6
|
+
fields?: { value: string };
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export declare class BrickAlertLevelElement extends HTMLElement {
|
|
10
|
+
value: AlertLevel | undefined;
|
|
11
|
+
dataSource: Record<string, any> | undefined;
|
|
12
|
+
fields: { value: string } | undefined;
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface BrickAlertStatusProps {
|
|
2
|
+
status?: number;
|
|
3
|
+
recoverType?: string;
|
|
4
|
+
isRecover?: boolean;
|
|
5
|
+
dataSource?: any;
|
|
6
|
+
fields?: { status: string; recoverType: string; isRecover: string };
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export declare class BrickAlertStatusElement extends HTMLElement {
|
|
10
|
+
status: number | undefined;
|
|
11
|
+
recoverType: string | undefined;
|
|
12
|
+
isRecover: boolean | undefined;
|
|
13
|
+
dataSource: any | undefined;
|
|
14
|
+
fields:
|
|
15
|
+
| { status: string; recoverType: string; isRecover: string }
|
|
16
|
+
| undefined;
|
|
17
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { MonitorModels } from "@next-sdk/monitor-sdk";
|
|
2
|
+
|
|
3
|
+
export interface BrickAlertValueProps {
|
|
4
|
+
dataSource?: MonitorModels.ModelAlertEvent;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export declare class BrickAlertValueElement extends HTMLElement {
|
|
8
|
+
dataSource: MonitorModels.ModelAlertEvent | undefined;
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ButtonProps } from "antd/lib/button";
|
|
2
|
+
|
|
3
|
+
export interface BrickButtonProps {
|
|
4
|
+
text?: string;
|
|
5
|
+
configProps?: ButtonProps & { icon?: string };
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export declare class BrickButtonElement extends HTMLElement {
|
|
9
|
+
text: string | undefined;
|
|
10
|
+
configProps: (ButtonProps & { icon?: string }) | undefined;
|
|
11
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { CalendarMode } from "antd/lib/calendar/generateCalendar";
|
|
2
|
+
import type { UseBrickConf } from "@next-core/brick-types";
|
|
3
|
+
|
|
4
|
+
export interface PanelEvent {
|
|
5
|
+
/** 日期 */
|
|
6
|
+
date: moment.Moment;
|
|
7
|
+
/** 显示模式 month/year */
|
|
8
|
+
mode: CalendarMode;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface BrickCalendarProps {
|
|
12
|
+
value?: moment.Moment;
|
|
13
|
+
mode?: CalendarMode;
|
|
14
|
+
fullscreen?: boolean;
|
|
15
|
+
dateCell?: { useBrick: UseBrickConf };
|
|
16
|
+
monthCell?: { useBrick: UseBrickConf };
|
|
17
|
+
data?: any[];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface BrickCalendarEvents {
|
|
21
|
+
"presentational.calendar.onSelect": CustomEvent<moment.Moment>;
|
|
22
|
+
"presentational.calendar.onSelect-v2": CustomEvent<{
|
|
23
|
+
date: moment.Moment;
|
|
24
|
+
data: any;
|
|
25
|
+
}>;
|
|
26
|
+
"presentational.calendar.onChange": CustomEvent<moment.Moment>;
|
|
27
|
+
"presentational.calendar.onChange-v2": CustomEvent<{
|
|
28
|
+
date: moment.Moment;
|
|
29
|
+
data: any;
|
|
30
|
+
}>;
|
|
31
|
+
"presentational.calendar.onPanelChange": CustomEvent<PanelEvent>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface BrickCalendarEventsMap {
|
|
35
|
+
onPresentationalCalendarOnSelect: "presentational.calendar.onSelect";
|
|
36
|
+
onPresentationalCalendarOnSelectV2: "presentational.calendar.onSelect-v2";
|
|
37
|
+
onPresentationalCalendarOnChange: "presentational.calendar.onChange";
|
|
38
|
+
onPresentationalCalendarOnChangeV2: "presentational.calendar.onChange-v2";
|
|
39
|
+
onPresentationalCalendarOnPanelChange: "presentational.calendar.onPanelChange";
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export declare class BrickCalendarElement extends HTMLElement {
|
|
43
|
+
value: moment.Moment | undefined;
|
|
44
|
+
mode: CalendarMode | undefined;
|
|
45
|
+
fullscreen: boolean | undefined;
|
|
46
|
+
dateCell: { useBrick: UseBrickConf } | undefined;
|
|
47
|
+
monthCell: { useBrick: UseBrickConf } | undefined;
|
|
48
|
+
data: any[] | undefined;
|
|
49
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type ClusterType = "-1" | "0" | "1" | "2" | "3";
|
|
2
|
+
|
|
3
|
+
export interface BrickClusterTypeProps {
|
|
4
|
+
objectId?: string;
|
|
5
|
+
value?: ClusterType;
|
|
6
|
+
dataSource?: Record<string, any>;
|
|
7
|
+
fields?: { value: string };
|
|
8
|
+
showBg?: boolean;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export declare class BrickClusterTypeElement extends HTMLElement {
|
|
12
|
+
objectId: string | undefined;
|
|
13
|
+
value: ClusterType | undefined;
|
|
14
|
+
dataSource: Record<string, any> | undefined;
|
|
15
|
+
fields: { value: string } | undefined;
|
|
16
|
+
showBg: boolean | undefined;
|
|
17
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface BrickCodeDisplayProps {
|
|
2
|
+
language?: string;
|
|
3
|
+
showLineNumber?: boolean;
|
|
4
|
+
value?: string;
|
|
5
|
+
field?: string;
|
|
6
|
+
dataSource?: any;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export declare class BrickCodeDisplayElement extends HTMLElement {
|
|
10
|
+
language: string | undefined;
|
|
11
|
+
showLineNumber: boolean | undefined;
|
|
12
|
+
value: string | undefined;
|
|
13
|
+
field: string | undefined;
|
|
14
|
+
dataSource: any | undefined;
|
|
15
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { MenuIcon } from "@next-core/brick-types";
|
|
2
|
+
|
|
3
|
+
export interface descriptionsItemProps {
|
|
4
|
+
label: string;
|
|
5
|
+
text: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface BrickCollapseCardProps {
|
|
9
|
+
cardTitle?: string;
|
|
10
|
+
descriptionList?: descriptionsItemProps[];
|
|
11
|
+
expandInactiveText?: any;
|
|
12
|
+
expandActiveText?: any;
|
|
13
|
+
expandActiveIcon?: string;
|
|
14
|
+
expandInactiveIcon?: string;
|
|
15
|
+
titleIcon?: MenuIcon | string;
|
|
16
|
+
titleWithIconAndDesc?: boolean | "compact";
|
|
17
|
+
isActive?: boolean;
|
|
18
|
+
hasHeaderSlot?: boolean;
|
|
19
|
+
containerStyle?: any;
|
|
20
|
+
headerStyle?: any;
|
|
21
|
+
contentStyle?: any;
|
|
22
|
+
verticalCenter?: boolean;
|
|
23
|
+
title?: string;
|
|
24
|
+
fields?: { dataSource?: string; title: string };
|
|
25
|
+
dataSource?: Record<string, any>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export declare class BrickCollapseCardElement extends HTMLElement {
|
|
29
|
+
cardTitle: string | undefined;
|
|
30
|
+
descriptionList: descriptionsItemProps[] | undefined;
|
|
31
|
+
expandInactiveText: any | undefined;
|
|
32
|
+
expandActiveText: any | undefined;
|
|
33
|
+
expandActiveIcon: string | undefined;
|
|
34
|
+
expandInactiveIcon: string | undefined;
|
|
35
|
+
titleIcon: MenuIcon | string | undefined;
|
|
36
|
+
titleWithIconAndDesc: boolean | "compact" | undefined;
|
|
37
|
+
isActive: boolean | undefined;
|
|
38
|
+
hasHeaderSlot: boolean | undefined;
|
|
39
|
+
containerStyle: any | undefined;
|
|
40
|
+
headerStyle: any | undefined;
|
|
41
|
+
contentStyle: any | undefined;
|
|
42
|
+
verticalCenter: boolean | undefined;
|
|
43
|
+
title: string;
|
|
44
|
+
fields: { dataSource?: string; title: string } | undefined;
|
|
45
|
+
dataSource: Record<string, any> | undefined;
|
|
46
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export enum ConditionOperator {
|
|
2
|
+
eq = "$eq",
|
|
3
|
+
ne = "$ne",
|
|
4
|
+
gt = "$gt",
|
|
5
|
+
gte = "$gte",
|
|
6
|
+
lt = "$lt",
|
|
7
|
+
lte = "$lte",
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export enum LogicalOperator {
|
|
11
|
+
and = "$and",
|
|
12
|
+
or = "$or",
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface RuleProps {
|
|
16
|
+
condition: ConditionType;
|
|
17
|
+
style?: {
|
|
18
|
+
color?: string;
|
|
19
|
+
backgroundColor?: string;
|
|
20
|
+
borderColor?: string;
|
|
21
|
+
};
|
|
22
|
+
label?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type ConditionType =
|
|
26
|
+
| boolean
|
|
27
|
+
| number
|
|
28
|
+
| string
|
|
29
|
+
| Record<string | ConditionOperator, any>
|
|
30
|
+
| LogicalCondition;
|
|
31
|
+
|
|
32
|
+
export interface LogicalCondition
|
|
33
|
+
extends Record<string | LogicalOperator, ConditionType[]> {}
|
|
34
|
+
|
|
35
|
+
export type DataType = string | number | Record<string, any>;
|
|
36
|
+
|
|
37
|
+
export type DisplayType = "label" | "default";
|
|
38
|
+
|
|
39
|
+
export interface BrickConditionalDisplayProps {
|
|
40
|
+
rules?: RuleProps[];
|
|
41
|
+
fields?: { value: string };
|
|
42
|
+
dataSource?: DataType;
|
|
43
|
+
type?: DisplayType;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export declare class BrickConditionalDisplayElement extends HTMLElement {
|
|
47
|
+
rules: RuleProps[] | undefined;
|
|
48
|
+
fields: { value: string } | undefined;
|
|
49
|
+
dataSource: DataType | undefined;
|
|
50
|
+
type: DisplayType | undefined;
|
|
51
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface BrickDeleteConfirmProps {
|
|
2
|
+
dataSource?: any;
|
|
3
|
+
deleteName?: string;
|
|
4
|
+
fields?: any;
|
|
5
|
+
keySeparator?: string;
|
|
6
|
+
type?: "array" | "object" | "string";
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export declare class BrickDeleteConfirmElement extends HTMLElement {
|
|
10
|
+
dataSource: any | undefined;
|
|
11
|
+
deleteName: string | undefined;
|
|
12
|
+
fields: any | undefined;
|
|
13
|
+
keySeparator: string | undefined;
|
|
14
|
+
type: "array" | "object" | "string" | undefined;
|
|
15
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { UseBrickConf } from "@next-core/brick-types";
|
|
2
|
+
import type { DescriptionsProps } from "antd/lib/descriptions";
|
|
3
|
+
|
|
4
|
+
export interface DescriptionsItemProps {
|
|
5
|
+
label: string;
|
|
6
|
+
text: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface DescriptionListProps {
|
|
10
|
+
itemList: BrickDescriptionsItemProps[];
|
|
11
|
+
descriptionTitle: string;
|
|
12
|
+
configProps?: DescriptionsProps;
|
|
13
|
+
column?: number;
|
|
14
|
+
size?: SizeType;
|
|
15
|
+
bordered?: boolean;
|
|
16
|
+
layout?: LayoutType;
|
|
17
|
+
hideGroups?: string[] | string;
|
|
18
|
+
extraBrick?: {
|
|
19
|
+
useBrick: UseBrickConf;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface BrickDescriptionsItemProps
|
|
24
|
+
extends Partial<DescriptionsItemProps> {
|
|
25
|
+
/**
|
|
26
|
+
* 内容
|
|
27
|
+
*/
|
|
28
|
+
text: string;
|
|
29
|
+
id?: string;
|
|
30
|
+
/**
|
|
31
|
+
* 所属分组
|
|
32
|
+
*/
|
|
33
|
+
group?: string;
|
|
34
|
+
/**
|
|
35
|
+
* 该 item 的 text 取自 dataSource 的哪个字段
|
|
36
|
+
*/
|
|
37
|
+
field?: string;
|
|
38
|
+
/**
|
|
39
|
+
* 支持为某项自定义展示构件 [#UseBrickConf](#usebrickconf)
|
|
40
|
+
*/
|
|
41
|
+
useBrick?: UseBrickConf;
|
|
42
|
+
/**
|
|
43
|
+
* [已废弃]自定义该 item 的展示构件
|
|
44
|
+
*/
|
|
45
|
+
component?: {
|
|
46
|
+
brick?: string;
|
|
47
|
+
properties?: any;
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export type SizeType = "default" | "middle" | "small";
|
|
52
|
+
|
|
53
|
+
export type LayoutType = "horizontal" | "vertical";
|
|
54
|
+
|
|
55
|
+
export interface BrickDescriptionsProps {
|
|
56
|
+
descriptionTitle?: string;
|
|
57
|
+
descriptionList?: DescriptionListProps[];
|
|
58
|
+
itemList?: BrickDescriptionsItemProps[];
|
|
59
|
+
itemIdBrickMap?: Record<string, { useBrick: UseBrickConf }>;
|
|
60
|
+
showCard?: boolean;
|
|
61
|
+
column?: number;
|
|
62
|
+
layout?: LayoutType;
|
|
63
|
+
bordered?: boolean;
|
|
64
|
+
size?: SizeType;
|
|
65
|
+
configProps?: DescriptionsProps;
|
|
66
|
+
hideGroups?: string[] | string;
|
|
67
|
+
dataSource?: Record<string, any>;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export declare class BrickDescriptionsElement extends HTMLElement {
|
|
71
|
+
descriptionTitle: string | undefined;
|
|
72
|
+
descriptionList: DescriptionListProps[] | undefined;
|
|
73
|
+
itemList: BrickDescriptionsItemProps[] | undefined;
|
|
74
|
+
itemIdBrickMap: Record<string, { useBrick: UseBrickConf }> | undefined;
|
|
75
|
+
showCard: boolean | undefined;
|
|
76
|
+
column: number | undefined;
|
|
77
|
+
layout: LayoutType | undefined;
|
|
78
|
+
bordered: boolean | undefined;
|
|
79
|
+
size: SizeType | undefined;
|
|
80
|
+
configProps: DescriptionsProps | undefined;
|
|
81
|
+
hideGroups: string[] | string | undefined;
|
|
82
|
+
dataSource: Record<string, any> | undefined;
|
|
83
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface FieldToDisplay {
|
|
2
|
+
field?: string;
|
|
3
|
+
separator: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export interface BrickDisplayStructsProps {
|
|
7
|
+
dataSource?: Record<string, any>;
|
|
8
|
+
fields?: { value: string };
|
|
9
|
+
value?: any;
|
|
10
|
+
displayType?: "stringify" | FieldToDisplay;
|
|
11
|
+
emptyText?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export declare class BrickDisplayStructsElement extends HTMLElement {
|
|
15
|
+
dataSource: Record<string, any> | undefined;
|
|
16
|
+
fields: { value: string } | undefined;
|
|
17
|
+
value: any | undefined;
|
|
18
|
+
displayType: "stringify" | FieldToDisplay | undefined;
|
|
19
|
+
emptyText: string | undefined;
|
|
20
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
|
|
4
|
+
export interface BrickDividerProps {
|
|
5
|
+
dividerTitle?: string;
|
|
6
|
+
type?: "horizontal" | "vertical" | "radiation";
|
|
7
|
+
dashed?: boolean;
|
|
8
|
+
dividerStyle?: React.CSSProperties;
|
|
9
|
+
orientation?: "center" | "left" | "right";
|
|
10
|
+
plain?: boolean;
|
|
11
|
+
proportion?: number[];
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export declare class BrickDividerElement extends HTMLElement {
|
|
15
|
+
dividerTitle: string | undefined;
|
|
16
|
+
type: "horizontal" | "vertical" | "radiation" | undefined;
|
|
17
|
+
dashed: boolean | undefined;
|
|
18
|
+
dividerStyle: React.CSSProperties | undefined;
|
|
19
|
+
orientation: "center" | "left" | "right" | undefined;
|
|
20
|
+
plain: boolean | undefined;
|
|
21
|
+
proportion: number[] | undefined;
|
|
22
|
+
}
|