@next-bricks/basic-bricks 1.259.3 → 1.260.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 +88 -88
- package/dist/bricks.json +26 -26
- package/dist/{index.347ec3f4.js → index.de9dd936.js} +2 -2
- package/dist/{index.347ec3f4.js.map → index.de9dd936.js.map} +1 -1
- package/dist-types/advance-list-container/index.d.ts +51 -0
- package/dist-types/app-bar/index.d.ts +15 -0
- package/dist-types/app-bar-breadcrumb/index.d.ts +13 -0
- package/dist-types/app-bar-setting/index.d.ts +12 -0
- package/dist-types/app-bar-wrapper/index.d.ts +14 -0
- package/dist-types/app-document-link/index.d.ts +14 -0
- package/dist-types/bootstrap.d.ts +44 -0
- package/dist-types/brick-error/index.d.ts +13 -0
- package/dist-types/delete-confirm-modal/index.d.ts +13 -0
- package/dist-types/easy-view/index.d.ts +20 -0
- package/dist-types/export-json-file/index.d.ts +20 -0
- package/dist-types/flex-layout/index.d.ts +17 -0
- package/dist-types/fold-brick/index.d.ts +15 -0
- package/dist-types/fold-brick-v2/index.d.ts +39 -0
- package/dist-types/general-anchor/index.d.ts +38 -0
- package/dist-types/general-button/index.d.ts +92 -0
- package/dist-types/general-card/index.d.ts +29 -0
- package/dist-types/general-custom-buttons/index.d.ts +147 -0
- package/dist-types/general-drawer/index.d.ts +60 -0
- package/dist-types/general-heading/index.d.ts +14 -0
- package/dist-types/general-hotkeys/index.d.ts +14 -0
- package/dist-types/general-modal/index.d.ts +95 -0
- package/dist-types/general-notification/index.d.ts +51 -0
- package/dist-types/general-popup/index.d.ts +36 -0
- package/dist-types/general-text/index.d.ts +23 -0
- package/dist-types/general-timer/index.d.ts +23 -0
- package/dist-types/general-title/index.d.ts +37 -0
- package/dist-types/header-bar/index.d.ts +17 -0
- package/dist-types/index-card/index.d.ts +9 -0
- package/dist-types/index.d.ts +44 -0
- package/dist-types/interfaces/general-card.d.ts +11 -0
- package/dist-types/interfaces/index.d.ts +1 -0
- package/dist-types/jsx.d.ts +469 -0
- package/dist-types/list-container/index.d.ts +21 -0
- package/dist-types/magic-brick/index.d.ts +9 -0
- package/dist-types/menu-bar/index.d.ts +15 -0
- package/dist-types/micro-app/index.d.ts +48 -0
- package/dist-types/multiple-columns-card/index.d.ts +9 -0
- package/dist-types/page-error/index.d.ts +9 -0
- package/dist-types/page-not-found/index.d.ts +7 -0
- package/dist-types/page-title/index.d.ts +9 -0
- package/dist-types/popover-container/index.d.ts +87 -0
- package/dist-types/print-button/index.d.ts +17 -0
- package/dist-types/quick-visit-menu/index.d.ts +41 -0
- package/dist-types/resizable-box/index.d.ts +28 -0
- package/dist-types/script-brick/index.d.ts +29 -0
- package/dist-types/sub-menu/index.d.ts +14 -0
- package/dist-types/sub-menu-filter/index.d.ts +63 -0
- package/dist-types/virtual-list-container/index.d.ts +40 -0
- package/package.json +3 -4
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type headType = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
3
|
+
|
|
4
|
+
export interface GeneralHeadingProps {
|
|
5
|
+
text?: string;
|
|
6
|
+
type?: headType;
|
|
7
|
+
customStyle?: React.CSSProperties;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class GeneralHeadingElement extends HTMLElement {
|
|
11
|
+
text: string | undefined;
|
|
12
|
+
type: headType | undefined;
|
|
13
|
+
customStyle: React.CSSProperties | undefined;
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface HotkeysConfig {
|
|
2
|
+
key: string;
|
|
3
|
+
eventName: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export interface GeneralHotkeysProps {
|
|
7
|
+
hotkeysConfig?: HotkeysConfig[];
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export declare class GeneralHotkeysElement extends HTMLElement {
|
|
12
|
+
hotkeysConfig: HotkeysConfig[] | undefined;
|
|
13
|
+
disabled: boolean | undefined;
|
|
14
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import type { ModalProps } from "antd/lib/modal";
|
|
2
|
+
import type { MenuIcon } from "@next-core/brick-types";
|
|
3
|
+
import type { ButtonType } from "antd/lib/button";
|
|
4
|
+
|
|
5
|
+
export type positionType = "left" | "center" | "right";
|
|
6
|
+
|
|
7
|
+
export interface OpenCloseOption {
|
|
8
|
+
noEvent?: boolean;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface GeneralModalProps {
|
|
12
|
+
modalTitle?: string;
|
|
13
|
+
titleIcon?: MenuIcon;
|
|
14
|
+
titleAlign?: string;
|
|
15
|
+
dataSource?: Record<string, any>;
|
|
16
|
+
width?: string | number;
|
|
17
|
+
enableFooterSlot?: boolean;
|
|
18
|
+
footerPosition?: positionType;
|
|
19
|
+
isHiddenBodyPadding?: boolean;
|
|
20
|
+
isHiddenHeaderBorder?: boolean;
|
|
21
|
+
isHiddenModalTitle?: boolean;
|
|
22
|
+
isHiddenModalFooter?: boolean;
|
|
23
|
+
isShowCustomHeader?: boolean;
|
|
24
|
+
isHiddenFooterColor?: boolean;
|
|
25
|
+
fullscreen?: boolean;
|
|
26
|
+
okText?: string;
|
|
27
|
+
okType?: ButtonType;
|
|
28
|
+
okDisabled?: boolean;
|
|
29
|
+
closeWhenOk?: boolean;
|
|
30
|
+
confirmLoading?: boolean;
|
|
31
|
+
cancelText?: string;
|
|
32
|
+
hideCancelButton?: boolean;
|
|
33
|
+
closeWhenCancel?: boolean;
|
|
34
|
+
maskClosable?: boolean;
|
|
35
|
+
configProps?: ModalProps;
|
|
36
|
+
fields?: {
|
|
37
|
+
modalTitle: string;
|
|
38
|
+
};
|
|
39
|
+
stackable?: boolean;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface GeneralModalEvents {
|
|
43
|
+
"modal.open": CustomEvent<Record<string, any>>;
|
|
44
|
+
"modal.close": CustomEvent<Record<string, any>>;
|
|
45
|
+
"model.after.close": CustomEvent<void>;
|
|
46
|
+
"basic-bricks.general-modal.cancel": CustomEvent<Record<string, any>>;
|
|
47
|
+
"modal.cancel": CustomEvent<void>;
|
|
48
|
+
"basic-bricks.general-modal.confirm": CustomEvent<void>;
|
|
49
|
+
"modal.confirm": CustomEvent<void>;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface GeneralModalEventsMap {
|
|
53
|
+
onModalOpen: "modal.open";
|
|
54
|
+
onModalClose: "modal.close";
|
|
55
|
+
onModelAfterClose: "model.after.close";
|
|
56
|
+
onBasicBricksGeneralModalCancel: "basic-bricks.general-modal.cancel";
|
|
57
|
+
onModalCancel: "modal.cancel";
|
|
58
|
+
onBasicBricksGeneralModalConfirm: "basic-bricks.general-modal.confirm";
|
|
59
|
+
onModalConfirm: "modal.confirm";
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export declare class GeneralModalElement extends HTMLElement {
|
|
63
|
+
modalTitle: string | undefined;
|
|
64
|
+
titleIcon: MenuIcon | undefined;
|
|
65
|
+
titleAlign: string | undefined;
|
|
66
|
+
dataSource: Record<string, any> | undefined;
|
|
67
|
+
width: string | number | undefined;
|
|
68
|
+
enableFooterSlot: boolean | undefined;
|
|
69
|
+
footerPosition: positionType | undefined;
|
|
70
|
+
isHiddenBodyPadding: boolean | undefined;
|
|
71
|
+
isHiddenHeaderBorder: boolean | undefined;
|
|
72
|
+
isHiddenModalTitle: boolean | undefined;
|
|
73
|
+
isHiddenModalFooter: boolean | undefined;
|
|
74
|
+
isShowCustomHeader: boolean | undefined;
|
|
75
|
+
isHiddenFooterColor: boolean | undefined;
|
|
76
|
+
fullscreen: boolean | undefined;
|
|
77
|
+
okText: string | undefined;
|
|
78
|
+
okType: ButtonType | undefined;
|
|
79
|
+
okDisabled: boolean | undefined;
|
|
80
|
+
closeWhenOk: boolean | undefined;
|
|
81
|
+
confirmLoading: boolean | undefined;
|
|
82
|
+
cancelText: string | undefined;
|
|
83
|
+
hideCancelButton: boolean | undefined;
|
|
84
|
+
closeWhenCancel: boolean | undefined;
|
|
85
|
+
maskClosable: boolean | undefined;
|
|
86
|
+
configProps: ModalProps | undefined;
|
|
87
|
+
fields:
|
|
88
|
+
| {
|
|
89
|
+
modalTitle: string;
|
|
90
|
+
}
|
|
91
|
+
| undefined;
|
|
92
|
+
stackable: boolean | undefined;
|
|
93
|
+
open(option?: OpenCloseOption): void;
|
|
94
|
+
close(option?: OpenCloseOption): void;
|
|
95
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { NotificationPlacement } from "antd/lib/notification";
|
|
2
|
+
import type { NotificationApi } from "antd/es/notification";
|
|
3
|
+
import type { MenuIcon } from "@next-core/brick-types";
|
|
4
|
+
import type React from "react";
|
|
5
|
+
import type { UseBrickConf } from "@next-core/brick-types";
|
|
6
|
+
|
|
7
|
+
export interface DescriptionBrickprops {
|
|
8
|
+
useBrick: UseBrickConf;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface BtnBrickprops {
|
|
12
|
+
useBrick: UseBrickConf;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface GeneralNotificationProps {
|
|
16
|
+
message?: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
descriptionBrick?: DescriptionBrickprops;
|
|
19
|
+
btnBrick?: BtnBrickprops;
|
|
20
|
+
key?: string;
|
|
21
|
+
icon?: MenuIcon | string;
|
|
22
|
+
placement?: NotificationPlacement;
|
|
23
|
+
duration?: number;
|
|
24
|
+
iconStyle?: CSSProperties;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface GeneralNotificationEvents {
|
|
28
|
+
"general.notification.click": CustomEvent<Record<string, any>>;
|
|
29
|
+
"general.notification.close": CustomEvent<Record<string, any>>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface GeneralNotificationEventsMap {
|
|
33
|
+
onGeneralNotificationClick: "general.notification.click";
|
|
34
|
+
onGeneralNotificationClose: "general.notification.close";
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export declare class GeneralNotificationElement extends HTMLElement {
|
|
38
|
+
message: string | undefined;
|
|
39
|
+
description: string | undefined;
|
|
40
|
+
descriptionBrick: DescriptionBrickprops | undefined;
|
|
41
|
+
btnBrick: BtnBrickprops | undefined;
|
|
42
|
+
key: string | undefined;
|
|
43
|
+
icon: MenuIcon | string | undefined;
|
|
44
|
+
placement: NotificationPlacement | undefined;
|
|
45
|
+
duration: number | undefined;
|
|
46
|
+
iconStyle: CSSProperties | undefined;
|
|
47
|
+
open(
|
|
48
|
+
mtd: keyof Omit<NotificationApi, "config" | "close" | "destroy">,
|
|
49
|
+
key?: string
|
|
50
|
+
): void;
|
|
51
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
|
|
4
|
+
export enum OpenDirection {
|
|
5
|
+
LeftTop = "leftTop",
|
|
6
|
+
LeftBottom = "leftBottom",
|
|
7
|
+
RightTop = "rightTop",
|
|
8
|
+
RightBottom = "rightBottom",
|
|
9
|
+
Center = "center",
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface GeneralPopupProps {
|
|
13
|
+
popupId?: string;
|
|
14
|
+
popupWidth?: React.CSSProperties["width"];
|
|
15
|
+
popupHeight?: React.CSSProperties["height"];
|
|
16
|
+
popupTitle?: string;
|
|
17
|
+
openDirection?: OpenDirection;
|
|
18
|
+
isVisible?: boolean;
|
|
19
|
+
dragHeaderStyle?: Record<string, any>;
|
|
20
|
+
dragWrapperStyle?: Record<string, any>;
|
|
21
|
+
resize?: boolean;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export declare class GeneralPopupElement extends HTMLElement {
|
|
25
|
+
popupId: string | undefined;
|
|
26
|
+
popupWidth: React.CSSProperties["width"] | undefined;
|
|
27
|
+
popupHeight: React.CSSProperties["height"] | undefined;
|
|
28
|
+
popupTitle: string | undefined;
|
|
29
|
+
openDirection: OpenDirection | undefined;
|
|
30
|
+
isVisible: boolean | undefined;
|
|
31
|
+
dragHeaderStyle: Record<string, any> | undefined;
|
|
32
|
+
dragWrapperStyle: Record<string, any> | undefined;
|
|
33
|
+
resize: boolean | undefined;
|
|
34
|
+
open(): void;
|
|
35
|
+
close(): void;
|
|
36
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
|
+
|
|
3
|
+
export interface GeneralTextProps {
|
|
4
|
+
text?: string;
|
|
5
|
+
fontSize?: CSSProperties["fontSize"];
|
|
6
|
+
fontWeight?: CSSProperties["fontWeight"];
|
|
7
|
+
color?: CSSProperties["color"];
|
|
8
|
+
lineHeight?: CSSProperties["lineHeight"];
|
|
9
|
+
textAlign?: CSSProperties["textAlign"];
|
|
10
|
+
display?: CSSProperties["display"];
|
|
11
|
+
customStyle?: CSSProperties;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export declare class GeneralTextElement extends HTMLElement {
|
|
15
|
+
text: string | undefined;
|
|
16
|
+
fontSize: CSSProperties["fontSize"] | undefined;
|
|
17
|
+
fontWeight: CSSProperties["fontWeight"] | undefined;
|
|
18
|
+
color: CSSProperties["color"] | undefined;
|
|
19
|
+
lineHeight: CSSProperties["lineHeight"] | undefined;
|
|
20
|
+
textAlign: CSSProperties["textAlign"] | undefined;
|
|
21
|
+
display: CSSProperties["display"] | undefined;
|
|
22
|
+
customStyle: CSSProperties | undefined;
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface GeneralTimerProps {
|
|
2
|
+
eventName?: string;
|
|
3
|
+
interval?: number;
|
|
4
|
+
isInterval?: boolean;
|
|
5
|
+
dataSource?: any;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface GeneralTimerEvents {
|
|
9
|
+
"time.change": CustomEvent<void>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface GeneralTimerEventsMap {
|
|
13
|
+
onTimeChange: "time.change";
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export declare class GeneralTimerElement extends HTMLElement {
|
|
17
|
+
eventName: string | undefined;
|
|
18
|
+
interval: number | undefined;
|
|
19
|
+
isInterval: boolean | undefined;
|
|
20
|
+
dataSource: any | undefined;
|
|
21
|
+
stopTimer(): void;
|
|
22
|
+
reStartTimer(): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { UseBrickConf } from "@next-core/brick-types";
|
|
2
|
+
|
|
3
|
+
export interface GeneralTitleProps {
|
|
4
|
+
mainTitle?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
subTitle?: string;
|
|
7
|
+
url?: string;
|
|
8
|
+
target?: string;
|
|
9
|
+
descPrefixBrick?: { useBrick: UseBrickConf };
|
|
10
|
+
titleSuffixBrick?: { useBrick: UseBrickConf };
|
|
11
|
+
descSuffixBrick?: { useBrick: UseBrickConf };
|
|
12
|
+
dataSource?: Record<string, any>;
|
|
13
|
+
fields?: {
|
|
14
|
+
mainTitle?: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
subTitle?: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export declare class GeneralTitleElement extends HTMLElement {
|
|
21
|
+
mainTitle: string | undefined;
|
|
22
|
+
description: string | undefined;
|
|
23
|
+
subTitle: string | undefined;
|
|
24
|
+
url: string | undefined;
|
|
25
|
+
target: string | undefined;
|
|
26
|
+
descPrefixBrick: { useBrick: UseBrickConf } | undefined;
|
|
27
|
+
titleSuffixBrick: { useBrick: UseBrickConf } | undefined;
|
|
28
|
+
descSuffixBrick: { useBrick: UseBrickConf } | undefined;
|
|
29
|
+
dataSource: Record<string, any> | undefined;
|
|
30
|
+
fields:
|
|
31
|
+
| {
|
|
32
|
+
mainTitle?: string;
|
|
33
|
+
description?: string;
|
|
34
|
+
subTitle?: string;
|
|
35
|
+
}
|
|
36
|
+
| undefined;
|
|
37
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface HeaderBarProps {
|
|
2
|
+
logoUrl?: string;
|
|
3
|
+
headerBackgroundColor?: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export interface HeaderBarEvents {
|
|
7
|
+
"logo.click": CustomEvent<any>;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface HeaderBarEventsMap {
|
|
11
|
+
onLogoClick: "logo.click";
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export declare class HeaderBarElement extends HTMLElement {
|
|
15
|
+
logoUrl: string | undefined;
|
|
16
|
+
headerBackgroundColor: string | undefined;
|
|
17
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export * from "./advance-list-container/index.js";
|
|
2
|
+
export * from "./app-bar/index.js";
|
|
3
|
+
export * from "./app-bar-breadcrumb/index.js";
|
|
4
|
+
export * from "./app-bar-setting/index.js";
|
|
5
|
+
export * from "./app-bar-wrapper/index.js";
|
|
6
|
+
export * from "./app-document-link/index.js";
|
|
7
|
+
export * from "./brick-error/index.js";
|
|
8
|
+
export * from "./delete-confirm-modal/index.js";
|
|
9
|
+
export * from "./easy-view/index.js";
|
|
10
|
+
export * from "./export-json-file/index.js";
|
|
11
|
+
export * from "./flex-layout/index.js";
|
|
12
|
+
export * from "./fold-brick/index.js";
|
|
13
|
+
export * from "./fold-brick-v2/index.js";
|
|
14
|
+
export * from "./general-anchor/index.js";
|
|
15
|
+
export * from "./general-button/index.js";
|
|
16
|
+
export * from "./general-card/index.js";
|
|
17
|
+
export * from "./general-custom-buttons/index.js";
|
|
18
|
+
export * from "./general-drawer/index.js";
|
|
19
|
+
export * from "./general-heading/index.js";
|
|
20
|
+
export * from "./general-hotkeys/index.js";
|
|
21
|
+
export * from "./general-modal/index.js";
|
|
22
|
+
export * from "./general-notification/index.js";
|
|
23
|
+
export * from "./general-popup/index.js";
|
|
24
|
+
export * from "./general-text/index.js";
|
|
25
|
+
export * from "./general-timer/index.js";
|
|
26
|
+
export * from "./general-title/index.js";
|
|
27
|
+
export * from "./header-bar/index.js";
|
|
28
|
+
export * from "./index-card/index.js";
|
|
29
|
+
export * from "./list-container/index.js";
|
|
30
|
+
export * from "./magic-brick/index.js";
|
|
31
|
+
export * from "./menu-bar/index.js";
|
|
32
|
+
export * from "./micro-app/index.js";
|
|
33
|
+
export * from "./multiple-columns-card/index.js";
|
|
34
|
+
export * from "./page-error/index.js";
|
|
35
|
+
export * from "./page-not-found/index.js";
|
|
36
|
+
export * from "./page-title/index.js";
|
|
37
|
+
export * from "./popover-container/index.js";
|
|
38
|
+
export * from "./print-button/index.js";
|
|
39
|
+
export * from "./quick-visit-menu/index.js";
|
|
40
|
+
export * from "./resizable-box/index.js";
|
|
41
|
+
export * from "./script-brick/index.js";
|
|
42
|
+
export * from "./sub-menu/index.js";
|
|
43
|
+
export * from "./sub-menu-filter/index.js";
|
|
44
|
+
export * from "./virtual-list-container/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./general-card.js";
|