@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,95 @@
|
|
|
1
|
+
import type { FormLayout } from "@ant-design/compatible/lib/form/Form";
|
|
2
|
+
import type { ValidationRule } from "@ant-design/compatible/lib/form";
|
|
3
|
+
import type { ColProps } from "antd/lib/col";
|
|
4
|
+
|
|
5
|
+
export interface LegacyBrickFormProps
|
|
6
|
+
extends WithTranslation,
|
|
7
|
+
FormComponentProps {
|
|
8
|
+
contractName?: string;
|
|
9
|
+
fields: FieldDefinition[];
|
|
10
|
+
showCancel?: boolean;
|
|
11
|
+
cancelText?: string;
|
|
12
|
+
showConfirm?: boolean;
|
|
13
|
+
confirmText?: string;
|
|
14
|
+
layout?: FormLayout;
|
|
15
|
+
labelCol?: ColProps;
|
|
16
|
+
wrapperCol?: ColProps;
|
|
17
|
+
tailFormBtnLayout?: Record<"wrapperCol", ColProps>;
|
|
18
|
+
onSubmit?(data: Record<string, any>): void;
|
|
19
|
+
onCancel?(): void;
|
|
20
|
+
onBrickFormRef: any;
|
|
21
|
+
showCard: boolean;
|
|
22
|
+
onFieldChange: (value: any, field: string) => void;
|
|
23
|
+
dispatchCustomEvent: (field: FieldDefinition, detail: any) => void;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface FieldDefinition {
|
|
27
|
+
field: string;
|
|
28
|
+
label: string;
|
|
29
|
+
fieldPath: string;
|
|
30
|
+
component: string;
|
|
31
|
+
isRequire?: boolean;
|
|
32
|
+
valuePropName?: string;
|
|
33
|
+
properties?: any;
|
|
34
|
+
defaultValue?: boolean | string | number;
|
|
35
|
+
hideFromField?: string;
|
|
36
|
+
optionList?: string[] | BrickOptionProps[];
|
|
37
|
+
emitChangeEvent?: string;
|
|
38
|
+
emitCustomEvent?: string;
|
|
39
|
+
dataSource?: {
|
|
40
|
+
resolveName: string;
|
|
41
|
+
path?: string;
|
|
42
|
+
useIdField?: string;
|
|
43
|
+
useTextField?: string;
|
|
44
|
+
};
|
|
45
|
+
// for brick-select control
|
|
46
|
+
searchInCmdb?: SearchInCmdb;
|
|
47
|
+
// for brick-switch control
|
|
48
|
+
switchMap?: SwitchMap;
|
|
49
|
+
// for brick-instance-selector control
|
|
50
|
+
instanceList?: {
|
|
51
|
+
query?: Record<string, any>;
|
|
52
|
+
columns: CustomColumn[];
|
|
53
|
+
};
|
|
54
|
+
computeDefaultValue?: {
|
|
55
|
+
target: string;
|
|
56
|
+
method: string;
|
|
57
|
+
args: any;
|
|
58
|
+
};
|
|
59
|
+
rules: ValidationRule & flags[];
|
|
60
|
+
configProps: Record<string, any>;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface BrickFormProps {
|
|
64
|
+
contractName?: string;
|
|
65
|
+
fields?: LegacyBrickFormProps["fields"];
|
|
66
|
+
showCancel?: boolean;
|
|
67
|
+
cancelText?: string;
|
|
68
|
+
showConfirm?: boolean;
|
|
69
|
+
confirmText?: string;
|
|
70
|
+
tailFormBtnLayout?: LegacyBrickFormProps["tailFormBtnLayout"];
|
|
71
|
+
layout?: FormLayout;
|
|
72
|
+
labelCol?: LegacyBrickFormProps["labelCol"];
|
|
73
|
+
wrapperCol?: LegacyBrickFormProps["wrapperCol"];
|
|
74
|
+
showCard?: boolean;
|
|
75
|
+
resetDataAfterCancel?: boolean;
|
|
76
|
+
submitFormDataKey?: string | number;
|
|
77
|
+
fieldData?: any;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export declare class BrickFormElement extends HTMLElement {
|
|
81
|
+
contractName: string | undefined;
|
|
82
|
+
fields: LegacyBrickFormProps["fields"] | undefined;
|
|
83
|
+
showCancel: boolean | undefined;
|
|
84
|
+
cancelText: string | undefined;
|
|
85
|
+
showConfirm: boolean | undefined;
|
|
86
|
+
confirmText: string | undefined;
|
|
87
|
+
tailFormBtnLayout: LegacyBrickFormProps["tailFormBtnLayout"] | undefined;
|
|
88
|
+
layout: FormLayout | undefined;
|
|
89
|
+
labelCol: LegacyBrickFormProps["labelCol"] | undefined;
|
|
90
|
+
wrapperCol: LegacyBrickFormProps["wrapperCol"] | undefined;
|
|
91
|
+
showCard: boolean | undefined;
|
|
92
|
+
resetDataAfterCancel: boolean | undefined;
|
|
93
|
+
submitFormDataKey: string | number | undefined;
|
|
94
|
+
fieldData: any | undefined;
|
|
95
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export type Size = "small" | "default" | "large" | "extraLarge";
|
|
2
|
+
|
|
3
|
+
export type Shape = "round" | "default";
|
|
4
|
+
|
|
5
|
+
export interface BrickGeneralSearchProps {
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
q?: string;
|
|
8
|
+
defaultArgs?: { field: string; value: any }[];
|
|
9
|
+
shouldUpdateUrlParams?: boolean;
|
|
10
|
+
shouldTrimQuery?: boolean;
|
|
11
|
+
qField?: string;
|
|
12
|
+
disableAutofocus?: boolean;
|
|
13
|
+
searchType?: "all" | "ip";
|
|
14
|
+
searchTypeEnabled?: boolean;
|
|
15
|
+
debounceTime?: number;
|
|
16
|
+
size?: Size;
|
|
17
|
+
shape?: Shape;
|
|
18
|
+
inputStyle?: Record<string, any>;
|
|
19
|
+
buttonStyle?: Record<string, any>;
|
|
20
|
+
searchBoxStyleType?: "defalut" | "round";
|
|
21
|
+
allowClear?: boolean;
|
|
22
|
+
bordered?: boolean;
|
|
23
|
+
alwaysFoucus?: boolean;
|
|
24
|
+
field?: string;
|
|
25
|
+
customSearchTypeOptions?: {
|
|
26
|
+
label: string;
|
|
27
|
+
value: string;
|
|
28
|
+
}[];
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface BrickGeneralSearchEvents {
|
|
32
|
+
"filter.update": CustomEvent<Record<string, any>>;
|
|
33
|
+
"query.change": CustomEvent<string>;
|
|
34
|
+
"query.change.v2": CustomEvent<{ q: string }>;
|
|
35
|
+
"search.type.change": CustomEvent<string>;
|
|
36
|
+
"input.blur": CustomEvent<string>;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface BrickGeneralSearchEventsMap {
|
|
40
|
+
onFilterUpdate: "filter.update";
|
|
41
|
+
onQueryChange: "query.change";
|
|
42
|
+
onQueryChangeV2: "query.change.v2";
|
|
43
|
+
onSearchTypeChange: "search.type.change";
|
|
44
|
+
onInputBlur: "input.blur";
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export declare class BrickGeneralSearchElement extends HTMLElement {
|
|
48
|
+
placeholder: string | undefined;
|
|
49
|
+
q: string | undefined;
|
|
50
|
+
defaultArgs: { field: string; value: any }[] | undefined;
|
|
51
|
+
shouldUpdateUrlParams: boolean | undefined;
|
|
52
|
+
shouldTrimQuery: boolean | undefined;
|
|
53
|
+
qField: string | undefined;
|
|
54
|
+
disableAutofocus: boolean | undefined;
|
|
55
|
+
searchType: "all" | "ip" | undefined;
|
|
56
|
+
searchTypeEnabled: boolean | undefined;
|
|
57
|
+
debounceTime: number | undefined;
|
|
58
|
+
size: Size | undefined;
|
|
59
|
+
shape: Shape | undefined;
|
|
60
|
+
inputStyle: Record<string, any> | undefined;
|
|
61
|
+
buttonStyle: Record<string, any> | undefined;
|
|
62
|
+
searchBoxStyleType: "defalut" | "round" | undefined;
|
|
63
|
+
allowClear: boolean | undefined;
|
|
64
|
+
bordered: boolean | undefined;
|
|
65
|
+
alwaysFoucus: boolean | undefined;
|
|
66
|
+
field: string | undefined;
|
|
67
|
+
customSearchTypeOptions:
|
|
68
|
+
| {
|
|
69
|
+
label: string;
|
|
70
|
+
value: string;
|
|
71
|
+
}[]
|
|
72
|
+
| undefined;
|
|
73
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { HumanizeTimeFormat } from "@next-libs/datetime";
|
|
2
|
+
|
|
3
|
+
export interface LinkInfo {
|
|
4
|
+
detailUrlTemplate: string;
|
|
5
|
+
target?: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface BrickHumanizeTimeProps {
|
|
9
|
+
value?: number | string;
|
|
10
|
+
inputFormat?: string;
|
|
11
|
+
outputFormat?: string;
|
|
12
|
+
isCostTime?: boolean;
|
|
13
|
+
dataSource?: Record<string, any>;
|
|
14
|
+
fields?: { value: string };
|
|
15
|
+
formatter?: HumanizeTimeFormat;
|
|
16
|
+
isMillisecond?: boolean;
|
|
17
|
+
isMicrosecond?: boolean;
|
|
18
|
+
link?: LinkInfo;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export declare class BrickHumanizeTimeElement extends HTMLElement {
|
|
22
|
+
value: number | string | undefined;
|
|
23
|
+
inputFormat: string | undefined;
|
|
24
|
+
outputFormat: string | undefined;
|
|
25
|
+
isCostTime: boolean | undefined;
|
|
26
|
+
dataSource: Record<string, any> | undefined;
|
|
27
|
+
fields: { value: string } | undefined;
|
|
28
|
+
formatter: HumanizeTimeFormat | undefined;
|
|
29
|
+
isMillisecond: boolean | undefined;
|
|
30
|
+
isMicrosecond: boolean | undefined;
|
|
31
|
+
link: LinkInfo | undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
|
+
|
|
3
|
+
export enum IconSize {
|
|
4
|
+
Small = "small",
|
|
5
|
+
Middle = "middle",
|
|
6
|
+
Large = "large",
|
|
7
|
+
XLarge = "xlarge",
|
|
8
|
+
Unset = "unset",
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface IllustrationHeader {
|
|
12
|
+
title?: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface IllustrationFooter {
|
|
17
|
+
text?: string;
|
|
18
|
+
label?: string;
|
|
19
|
+
target?: string;
|
|
20
|
+
url?: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type IllustrationMode = "feedback" | "guide";
|
|
24
|
+
|
|
25
|
+
export interface BrickIllustrationProps {
|
|
26
|
+
name?: string;
|
|
27
|
+
size?: IconSize;
|
|
28
|
+
category?: string;
|
|
29
|
+
header?: IllustrationHeader;
|
|
30
|
+
footer?: IllustrationFooter;
|
|
31
|
+
mode?: IllustrationMode;
|
|
32
|
+
imageStyle?: CSSProperties;
|
|
33
|
+
useNewIllustration?: boolean;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export declare class BrickIllustrationElement extends HTMLElement {
|
|
37
|
+
name: string | undefined;
|
|
38
|
+
size: IconSize | undefined;
|
|
39
|
+
category: string | undefined;
|
|
40
|
+
header: IllustrationHeader | undefined;
|
|
41
|
+
footer: IllustrationFooter | undefined;
|
|
42
|
+
mode: IllustrationMode | undefined;
|
|
43
|
+
imageStyle: CSSProperties | undefined;
|
|
44
|
+
useNewIllustration: boolean | undefined;
|
|
45
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface BrickInputProps {
|
|
2
|
+
placeholder?: string;
|
|
3
|
+
trigger?: "change" | "enter";
|
|
4
|
+
value?: string;
|
|
5
|
+
debounceTime?: number;
|
|
6
|
+
defaultValKey?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface BrickInputEvents {
|
|
10
|
+
"input.emit": CustomEvent<Record<string, any>>;
|
|
11
|
+
"input.change": CustomEvent<Record<string, any>>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface BrickInputEventsMap {
|
|
15
|
+
onInputEmit: "input.emit";
|
|
16
|
+
onInputChange: "input.change";
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export declare class BrickInputElement extends HTMLElement {
|
|
20
|
+
placeholder: string | undefined;
|
|
21
|
+
trigger: "change" | "enter" | undefined;
|
|
22
|
+
value: string | undefined;
|
|
23
|
+
debounceTime: number | undefined;
|
|
24
|
+
defaultValKey: string | undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { MenuIcon } from "@next-core/brick-types";
|
|
2
|
+
|
|
3
|
+
export interface BrickLinkProps {
|
|
4
|
+
label?: string;
|
|
5
|
+
url?: string;
|
|
6
|
+
href?: string;
|
|
7
|
+
target?: string;
|
|
8
|
+
tooltip?: string;
|
|
9
|
+
tooltipProps?: Record<string, any>;
|
|
10
|
+
dataSource?: Record<string, any>;
|
|
11
|
+
labelColor?: string;
|
|
12
|
+
underLine?: boolean;
|
|
13
|
+
icon?: MenuIcon;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
hideExternalIcon?: boolean;
|
|
16
|
+
notToJumpWhenEmpty?: boolean;
|
|
17
|
+
type?: "link" | "text";
|
|
18
|
+
iconAlign?: "left" | "right";
|
|
19
|
+
native?: boolean;
|
|
20
|
+
labelField?: string;
|
|
21
|
+
detail?: any;
|
|
22
|
+
urlTemplate?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface BrickLinkEvents {
|
|
26
|
+
"link.click": CustomEvent<any>;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface BrickLinkEventsMap {
|
|
30
|
+
onLinkClick: "link.click";
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export declare class BrickLinkElement extends HTMLElement {
|
|
34
|
+
label: string | undefined;
|
|
35
|
+
url: string | undefined;
|
|
36
|
+
href: string | undefined;
|
|
37
|
+
target: string | undefined;
|
|
38
|
+
tooltip: string | undefined;
|
|
39
|
+
tooltipProps: Record<string, any> | undefined;
|
|
40
|
+
dataSource: Record<string, any> | undefined;
|
|
41
|
+
labelColor: string | undefined;
|
|
42
|
+
underLine: boolean | undefined;
|
|
43
|
+
icon: MenuIcon | undefined;
|
|
44
|
+
disabled: boolean | undefined;
|
|
45
|
+
hideExternalIcon: boolean | undefined;
|
|
46
|
+
notToJumpWhenEmpty: boolean | undefined;
|
|
47
|
+
type: "link" | "text" | undefined;
|
|
48
|
+
iconAlign: "left" | "right" | undefined;
|
|
49
|
+
native: boolean | undefined;
|
|
50
|
+
labelField: string | undefined;
|
|
51
|
+
detail: any | undefined;
|
|
52
|
+
urlTemplate: string | undefined;
|
|
53
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { ListProps } from "antd/lib/list";
|
|
2
|
+
import type { ListItemMetaProps } from "antd/lib/list/Item";
|
|
3
|
+
|
|
4
|
+
export interface ItemProps extends ListItemProps {
|
|
5
|
+
meta: MetaProps;
|
|
6
|
+
content: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface MetaProps extends ListItemMetaProps {
|
|
10
|
+
src: string;
|
|
11
|
+
title: string;
|
|
12
|
+
description: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface ItemBrick {
|
|
16
|
+
brick: string | any;
|
|
17
|
+
properties?: Record<string, any>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface BrickListProps {
|
|
21
|
+
showCard?: boolean;
|
|
22
|
+
itemList?: ItemProps[];
|
|
23
|
+
configProps?: ListProps<any>;
|
|
24
|
+
fields?: any;
|
|
25
|
+
dataSource?: any;
|
|
26
|
+
itemBrick?: ItemBrick;
|
|
27
|
+
itemStyle?: any;
|
|
28
|
+
isCardList?: boolean;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export declare class BrickListElement extends HTMLElement {
|
|
32
|
+
showCard: boolean | undefined;
|
|
33
|
+
itemList: ItemProps[] | undefined;
|
|
34
|
+
configProps: ListProps<any> | undefined;
|
|
35
|
+
fields: any | undefined;
|
|
36
|
+
dataSource: any | undefined;
|
|
37
|
+
itemBrick: ItemBrick | undefined;
|
|
38
|
+
itemStyle: any | undefined;
|
|
39
|
+
isCardList: boolean | undefined;
|
|
40
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface BrickPlaceholderProps {
|
|
2
|
+
showCard?: boolean;
|
|
3
|
+
bordered?: boolean;
|
|
4
|
+
gridRow?: string;
|
|
5
|
+
gridColumn?: string;
|
|
6
|
+
text?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export declare class BrickPlaceholderElement extends HTMLElement {
|
|
10
|
+
showCard: boolean | undefined;
|
|
11
|
+
bordered: boolean | undefined;
|
|
12
|
+
gridRow: string | undefined;
|
|
13
|
+
gridColumn: string | undefined;
|
|
14
|
+
text: string | undefined;
|
|
15
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { UseBrickConf } from "@next-core/brick-types";
|
|
3
|
+
import type React from "react";
|
|
4
|
+
import type { MenuIcon } from "@next-core/brick-types";
|
|
5
|
+
|
|
6
|
+
export interface LinkProps {
|
|
7
|
+
icon: MenuIcon;
|
|
8
|
+
target: string;
|
|
9
|
+
text: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface TitleConfig {
|
|
13
|
+
icon?: MenuIcon;
|
|
14
|
+
title?: string;
|
|
15
|
+
value?: string;
|
|
16
|
+
tooltip?: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface BrickQuickEntriesProps {
|
|
20
|
+
column?: number;
|
|
21
|
+
row?: number;
|
|
22
|
+
links?: LinkProps[];
|
|
23
|
+
useBrick?: UseBrickConf;
|
|
24
|
+
data?: any[];
|
|
25
|
+
titleList?: TitleConfig[];
|
|
26
|
+
showCard?: boolean;
|
|
27
|
+
divider?: boolean;
|
|
28
|
+
containerStyle?: React.CSSProperties;
|
|
29
|
+
mode?: "multiCardGeneral" | "multiCardNoLine" | "default";
|
|
30
|
+
useBricks?: UseBrickConf;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface BrickQuickEntriesEvents {
|
|
34
|
+
"title.icon.click": CustomEvent<any>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface BrickQuickEntriesEventsMap {
|
|
38
|
+
onTitleIconClick: "title.icon.click";
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export declare class BrickQuickEntriesElement extends HTMLElement {
|
|
42
|
+
column: number | undefined;
|
|
43
|
+
row: number | undefined;
|
|
44
|
+
links: LinkProps[] | undefined;
|
|
45
|
+
useBrick: UseBrickConf | undefined;
|
|
46
|
+
data: any[] | undefined;
|
|
47
|
+
titleList: TitleConfig[] | undefined;
|
|
48
|
+
showCard: boolean | undefined;
|
|
49
|
+
divider: boolean | undefined;
|
|
50
|
+
containerStyle: React.CSSProperties | undefined;
|
|
51
|
+
mode: "multiCardGeneral" | "multiCardNoLine" | "default" | undefined;
|
|
52
|
+
useBricks: UseBrickConf | undefined;
|
|
53
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface BrickRateProps {
|
|
2
|
+
count?: number;
|
|
3
|
+
defaultValue?: number;
|
|
4
|
+
value?: number;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
allowHalf?: boolean;
|
|
7
|
+
colors?: any[];
|
|
8
|
+
type?: string;
|
|
9
|
+
rateStyle?: Record<string, any>;
|
|
10
|
+
rateIcon?: any;
|
|
11
|
+
tooltips?: string[];
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface BrickRateEvents {
|
|
15
|
+
"rate.change": CustomEvent<Record<number, any>>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface BrickRateEventsMap {
|
|
19
|
+
onRateChange: "rate.change";
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export declare class BrickRateElement extends HTMLElement {
|
|
23
|
+
count: number | undefined;
|
|
24
|
+
defaultValue: number | undefined;
|
|
25
|
+
value: number | undefined;
|
|
26
|
+
disabled: boolean | undefined;
|
|
27
|
+
allowHalf: boolean | undefined;
|
|
28
|
+
colors: any[] | undefined;
|
|
29
|
+
type: string | undefined;
|
|
30
|
+
rateStyle: Record<string, any> | undefined;
|
|
31
|
+
rateIcon: any | undefined;
|
|
32
|
+
tooltips: string[] | undefined;
|
|
33
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
|
|
3
|
+
export enum BrickResultStatus {
|
|
4
|
+
Success = "success",
|
|
5
|
+
Error = "error",
|
|
6
|
+
Info = "info",
|
|
7
|
+
Warning = "warning",
|
|
8
|
+
E404 = "404",
|
|
9
|
+
E403 = "403",
|
|
10
|
+
E500 = "500",
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export enum EmptyResultStatus {
|
|
14
|
+
BrowserTooOld = "browser-too-old",
|
|
15
|
+
Empty = "empty",
|
|
16
|
+
NoData = "no-data",
|
|
17
|
+
NoHistoryVersion = "no-history-version",
|
|
18
|
+
NoVisitRecord = "no-visit-record",
|
|
19
|
+
SearchEmpty = "search-empty",
|
|
20
|
+
WelcomeToCreate = "welcome-to-create",
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type IllustrationsStatus = "illustrations";
|
|
24
|
+
|
|
25
|
+
export interface IllustrationsConfig {
|
|
26
|
+
imageStyle?: CSSProperties;
|
|
27
|
+
name?: string;
|
|
28
|
+
category?: string;
|
|
29
|
+
size?: IconSize;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export enum IconSize {
|
|
33
|
+
Small = "small",
|
|
34
|
+
Middle = "middle",
|
|
35
|
+
Large = "large",
|
|
36
|
+
XLarge = "xlarge",
|
|
37
|
+
Unset = "unset",
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface BrickResultProps {
|
|
41
|
+
status?: BrickResultStatus | EmptyResultStatus | IllustrationsStatus;
|
|
42
|
+
customTitle?: string;
|
|
43
|
+
subTitle?: string;
|
|
44
|
+
icon?: string;
|
|
45
|
+
illustrationsConfig?: IllustrationsConfig;
|
|
46
|
+
useNewIllustration?: boolean;
|
|
47
|
+
emptyResultSize?: IconSize;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export declare class BrickResultElement extends HTMLElement {
|
|
51
|
+
status:
|
|
52
|
+
| BrickResultStatus
|
|
53
|
+
| EmptyResultStatus
|
|
54
|
+
| IllustrationsStatus
|
|
55
|
+
| undefined;
|
|
56
|
+
customTitle: string | undefined;
|
|
57
|
+
subTitle: string | undefined;
|
|
58
|
+
icon: string | undefined;
|
|
59
|
+
illustrationsConfig: IllustrationsConfig | undefined;
|
|
60
|
+
useNewIllustration: boolean | undefined;
|
|
61
|
+
emptyResultSize: IconSize | undefined;
|
|
62
|
+
}
|