@next-bricks/presentational-bricks 1.338.1 → 1.339.1
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 +30 -30
- package/dist/index.8e5be25b.js +2 -0
- package/dist/index.8e5be25b.js.map +1 -0
- package/dist/stories.json +27 -27
- 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 +3 -4
- package/dist/index.200a8d2c.js +0 -2
- package/dist/index.200a8d2c.js.map +0 -1
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
import type { MenuIcon } from "@next-core/brick-types";
|
|
4
|
+
import type { UseBrickConf } from "@next-core/brick-types";
|
|
5
|
+
|
|
6
|
+
export interface GeneralTooltipProps {
|
|
7
|
+
icon?: MenuIcon;
|
|
8
|
+
iconContainerStyle?: React.CSSProperties;
|
|
9
|
+
content: string | string[];
|
|
10
|
+
title?: string;
|
|
11
|
+
type: "tooltip" | "popover";
|
|
12
|
+
text?: string;
|
|
13
|
+
tooltipConfig?: TooltipConfig;
|
|
14
|
+
triggerByIcon?: boolean;
|
|
15
|
+
displayBrick?: {
|
|
16
|
+
useBrick: UseBrickConf;
|
|
17
|
+
data?: any;
|
|
18
|
+
};
|
|
19
|
+
textEllipsis?: boolean;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface TooltipConfig {
|
|
23
|
+
/**
|
|
24
|
+
* 气泡框位置,可选 `top` `left` `right` `bottom` `topLeft` `topRight` `bottomLeft` `bottomRight` `leftTop` `leftBottom` `rightTop` `rightBottom`
|
|
25
|
+
*/
|
|
26
|
+
placement?: TooltipPlacement;
|
|
27
|
+
/**
|
|
28
|
+
* 箭头是否指向目标元素中心
|
|
29
|
+
*/
|
|
30
|
+
arrowPointAtCenter?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* 卡片样式
|
|
33
|
+
*/
|
|
34
|
+
overlayStyle?: React.CSSProperties;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type TooltipPlacement =
|
|
38
|
+
| "top"
|
|
39
|
+
| "left"
|
|
40
|
+
| "right"
|
|
41
|
+
| "bottom"
|
|
42
|
+
| "topLeft"
|
|
43
|
+
| "topRight"
|
|
44
|
+
| "bottomLeft"
|
|
45
|
+
| "bottomRight"
|
|
46
|
+
| "leftTop"
|
|
47
|
+
| "leftBottom"
|
|
48
|
+
| "rightTop"
|
|
49
|
+
| "rightBottom";
|
|
50
|
+
|
|
51
|
+
export interface DisplayBrick {
|
|
52
|
+
useBrick: UseBrickConf;
|
|
53
|
+
data?: any;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface GeneralTooltipElementProps {
|
|
57
|
+
content?: GeneralTooltipProps["content"];
|
|
58
|
+
icon?: GeneralTooltipProps["icon"];
|
|
59
|
+
text?: string;
|
|
60
|
+
iconContainerStyle?: React.CSSProperties;
|
|
61
|
+
type?: GeneralTooltipProps["type"];
|
|
62
|
+
header?: string;
|
|
63
|
+
tooltipConfig?: TooltipConfig;
|
|
64
|
+
triggerByIcon?: boolean;
|
|
65
|
+
displayBrick?: DisplayBrick;
|
|
66
|
+
textEllipsis?: boolean;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export declare class GeneralTooltipElement extends HTMLElement {
|
|
70
|
+
content: GeneralTooltipElementProps["content"] | undefined;
|
|
71
|
+
icon: GeneralTooltipElementProps["icon"] | undefined;
|
|
72
|
+
text: string | undefined;
|
|
73
|
+
iconContainerStyle: React.CSSProperties | undefined;
|
|
74
|
+
type: GeneralTooltipElementProps["type"] | undefined;
|
|
75
|
+
header: string | undefined;
|
|
76
|
+
tooltipConfig: TooltipConfig | undefined;
|
|
77
|
+
triggerByIcon: boolean | undefined;
|
|
78
|
+
displayBrick: DisplayBrick | undefined;
|
|
79
|
+
textEllipsis: boolean | undefined;
|
|
80
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { TransferItem, TransferLocale } from "antd/lib/transfer";
|
|
3
|
+
import type { BrickWrapperConfig } from "../interfaces/common.js";
|
|
4
|
+
|
|
5
|
+
export interface GeneralTransferProps {
|
|
6
|
+
dataSource?: any[];
|
|
7
|
+
listStyle?: React.CSSProperties;
|
|
8
|
+
selectedKeys?: string[];
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
maxSelected?: number;
|
|
11
|
+
showSearch?: boolean;
|
|
12
|
+
wrapperConfig?: BrickWrapperConfig;
|
|
13
|
+
dataDescriptor?: { [k in keyof TransferItem]: string };
|
|
14
|
+
targetKeys?: string[];
|
|
15
|
+
titles?: string[];
|
|
16
|
+
operations?: string[];
|
|
17
|
+
locale?: Partial<TransferLocale>;
|
|
18
|
+
realTimeNotification?: boolean;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface GeneralTransferEvents {
|
|
22
|
+
"general.transfer.change": CustomEvent<string[]>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface GeneralTransferEventsMap {
|
|
26
|
+
onGeneralTransferChange: "general.transfer.change";
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export declare class GeneralTransferElement extends HTMLElement {
|
|
30
|
+
dataSource: any[] | undefined;
|
|
31
|
+
listStyle: React.CSSProperties | undefined;
|
|
32
|
+
selectedKeys: string[] | undefined;
|
|
33
|
+
disabled: boolean | undefined;
|
|
34
|
+
maxSelected: number | undefined;
|
|
35
|
+
showSearch: boolean | undefined;
|
|
36
|
+
wrapperConfig: BrickWrapperConfig | undefined;
|
|
37
|
+
dataDescriptor: { [k in keyof TransferItem]: string } | undefined;
|
|
38
|
+
targetKeys: string[] | undefined;
|
|
39
|
+
titles: string[] | undefined;
|
|
40
|
+
operations: string[] | undefined;
|
|
41
|
+
locale: Partial<TransferLocale> | undefined;
|
|
42
|
+
realTimeNotification: boolean | undefined;
|
|
43
|
+
notifyChange(): void;
|
|
44
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface GeneralVideoProps {
|
|
2
|
+
source?: string;
|
|
3
|
+
preview?: boolean;
|
|
4
|
+
videoTitle?: string;
|
|
5
|
+
height?: number;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export declare class GeneralVideoElement extends HTMLElement {
|
|
9
|
+
source: string | undefined;
|
|
10
|
+
preview: boolean | undefined;
|
|
11
|
+
videoTitle: string | undefined;
|
|
12
|
+
height: number | undefined;
|
|
13
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export * from "./agent-status/index.js";
|
|
2
|
+
export * from "./avatar-upload/index.js";
|
|
3
|
+
export * from "./banner-display-card-list/index.js";
|
|
4
|
+
export * from "./basic-icon/index.js";
|
|
5
|
+
export * from "./basic-progress/index.js";
|
|
6
|
+
export * from "./brick-alert/index.js";
|
|
7
|
+
export * from "./brick-alert-level/index.js";
|
|
8
|
+
export * from "./brick-alert-number/index.js";
|
|
9
|
+
export * from "./brick-alert-status/index.js";
|
|
10
|
+
export * from "./brick-alert-value/index.js";
|
|
11
|
+
export * from "./brick-button/index.js";
|
|
12
|
+
export * from "./brick-calendar/index.js";
|
|
13
|
+
export * from "./brick-cluster-type/index.js";
|
|
14
|
+
export * from "./brick-code-display/index.js";
|
|
15
|
+
export * from "./brick-collapse-card/index.js";
|
|
16
|
+
export * from "./brick-conditional-display/index.js";
|
|
17
|
+
export * from "./brick-delete-confirm/index.js";
|
|
18
|
+
export * from "./brick-descriptions/index.js";
|
|
19
|
+
export * from "./brick-display-structs/index.js";
|
|
20
|
+
export * from "./brick-divider/index.js";
|
|
21
|
+
export * from "./brick-form/index.js";
|
|
22
|
+
export * from "./brick-general-search/index.js";
|
|
23
|
+
export * from "./brick-humanize-time/index.js";
|
|
24
|
+
export * from "./brick-illustration/index.js";
|
|
25
|
+
export * from "./brick-input/index.js";
|
|
26
|
+
export * from "./brick-link/index.js";
|
|
27
|
+
export * from "./brick-list/index.js";
|
|
28
|
+
export * from "./brick-placeholder/index.js";
|
|
29
|
+
export * from "./brick-quick-entries/index.js";
|
|
30
|
+
export * from "./brick-rate/index.js";
|
|
31
|
+
export * from "./brick-result/index.js";
|
|
32
|
+
export * from "./brick-table/index.js";
|
|
33
|
+
export * from "./brick-tag/index.js";
|
|
34
|
+
export * from "./brick-timeline/index.js";
|
|
35
|
+
export * from "./brick-tree/index.js";
|
|
36
|
+
export * from "./brick-user/index.js";
|
|
37
|
+
export * from "./brick-user-group/index.js";
|
|
38
|
+
export * from "./brick-utils/index.js";
|
|
39
|
+
export * from "./brick-value-mapping/index.js";
|
|
40
|
+
export * from "./button-wrapper/index.js";
|
|
41
|
+
export * from "./card-item/index.js";
|
|
42
|
+
export * from "./code-editor/index.js";
|
|
43
|
+
export * from "./collapse-info-list/index.js";
|
|
44
|
+
export * from "./collapsible-card-item/index.js";
|
|
45
|
+
export * from "./copyable-text/index.js";
|
|
46
|
+
export * from "./cost-time/index.js";
|
|
47
|
+
export * from "./crontab-display/index.js";
|
|
48
|
+
export * from "./datetime-selector/index.js";
|
|
49
|
+
export * from "./digital-number/index.js";
|
|
50
|
+
export * from "./dropdown-button/index.js";
|
|
51
|
+
export * from "./dropdown-select/index.js";
|
|
52
|
+
export * from "./dynamic-content/index.js";
|
|
53
|
+
export * from "./dynamic-grid-container/index.js";
|
|
54
|
+
export * from "./entry-card-item/index.js";
|
|
55
|
+
export * from "./general-badge/index.js";
|
|
56
|
+
export * from "./general-carousel/index.js";
|
|
57
|
+
export * from "./general-image/index.js";
|
|
58
|
+
export * from "./general-label/index.js";
|
|
59
|
+
export * from "./general-list/index.js";
|
|
60
|
+
export * from "./general-pagination/index.js";
|
|
61
|
+
export * from "./general-preview-image/index.js";
|
|
62
|
+
export * from "./general-slider/index.js";
|
|
63
|
+
export * from "./general-tooltip/index.js";
|
|
64
|
+
export * from "./general-transfer/index.js";
|
|
65
|
+
export * from "./general-video/index.js";
|
|
66
|
+
export * from "./info-display-card-list/index.js";
|
|
67
|
+
export * from "./log-display/index.js";
|
|
68
|
+
export * from "./markdown-display/index.js";
|
|
69
|
+
export * from "./markdown-editor/index.js";
|
|
70
|
+
export * from "./modal-confirm/index.js";
|
|
71
|
+
export * from "./qrcode-download/index.js";
|
|
72
|
+
export * from "./rank-table/index.js";
|
|
73
|
+
export * from "./single-field-edit/index.js";
|
|
74
|
+
export * from "./statistic-card/index.js";
|
|
75
|
+
export * from "./table-transfer/index.js";
|
|
76
|
+
export * from "./template-breadcrumb/index.js";
|
|
77
|
+
export * from "./text-collapse/index.js";
|
|
78
|
+
export * from "./tree-transfer/index.js";
|
|
@@ -0,0 +1,50 @@
|
|
|
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 CardItem {
|
|
7
|
+
title: string;
|
|
8
|
+
desc: string;
|
|
9
|
+
icon?: MenuIcon;
|
|
10
|
+
detail?: CardDetail[];
|
|
11
|
+
operateItemBrick?: { useBrick: UseBrickConf };
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface CardDetail {
|
|
15
|
+
title: string;
|
|
16
|
+
desc: string;
|
|
17
|
+
width?: string | number;
|
|
18
|
+
useBrick?: boolean;
|
|
19
|
+
detailBrickConf?: { useBrick: UseBrickConf };
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface InfoDisplayCardListProps {
|
|
23
|
+
dataSource?: CardItem[];
|
|
24
|
+
urlTemplate?: string;
|
|
25
|
+
url?: string;
|
|
26
|
+
target?: string;
|
|
27
|
+
showIcon?: boolean;
|
|
28
|
+
optionConf?: { useBrick: UseBrickConf };
|
|
29
|
+
titleBrickConf?: { useBrick: UseBrickConf };
|
|
30
|
+
iconBrickConf?: { useBrick: UseBrickConf };
|
|
31
|
+
detailOfDescBrickConf?: { useBrick: UseBrickConf };
|
|
32
|
+
titleFontSize?: number | string;
|
|
33
|
+
detailDescFontSize?: number | string;
|
|
34
|
+
listStyle?: React.CSSProperties;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export declare class InfoDisplayCardListElement extends HTMLElement {
|
|
38
|
+
dataSource: CardItem[] | undefined;
|
|
39
|
+
urlTemplate: string | undefined;
|
|
40
|
+
url: string | undefined;
|
|
41
|
+
target: string | undefined;
|
|
42
|
+
showIcon: boolean | undefined;
|
|
43
|
+
optionConf: { useBrick: UseBrickConf } | undefined;
|
|
44
|
+
titleBrickConf: { useBrick: UseBrickConf } | undefined;
|
|
45
|
+
iconBrickConf: { useBrick: UseBrickConf } | undefined;
|
|
46
|
+
detailOfDescBrickConf: { useBrick: UseBrickConf } | undefined;
|
|
47
|
+
titleFontSize: number | string | undefined;
|
|
48
|
+
detailDescFontSize: number | string | undefined;
|
|
49
|
+
listStyle: React.CSSProperties | undefined;
|
|
50
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
|
|
3
|
+
export interface EasyopsEmptyProps {
|
|
4
|
+
background?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
imageStyle?: React.CSSProperties;
|
|
7
|
+
illustration?: IllustrationProps;
|
|
8
|
+
noImage?: boolean;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface IllustrationProps {
|
|
12
|
+
name: string;
|
|
13
|
+
category?: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface BrickWrapperConfig {
|
|
17
|
+
empty?: EasyopsEmptyProps;
|
|
18
|
+
}
|