@pisell/materials 1.0.619 → 1.0.621
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +3 -3
- package/build/lowcode/preview.js +142 -142
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +23 -23
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +25 -25
- package/es/components/dataSourceComponents/fields/index.d.ts +16 -16
- package/es/components/pisellAppCard/PisellAppCard.d.ts +5 -0
- package/es/components/pisellAppCard/PisellAppCard.js +75 -0
- package/es/components/pisellAppCard/PisellAppCard.less +49 -0
- package/es/components/pisellAppCard/index.d.ts +3 -0
- package/es/components/pisellAppCard/index.js +2 -0
- package/es/components/pisellAppCard/types.d.ts +31 -0
- package/es/components/pisellAppCard/types.js +1 -0
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/index.d.ts +2 -0
- package/es/index.js +2 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +16 -16
- package/lib/components/pisellAppCard/PisellAppCard.d.ts +5 -0
- package/lib/components/pisellAppCard/PisellAppCard.js +102 -0
- package/lib/components/pisellAppCard/PisellAppCard.less +49 -0
- package/lib/components/pisellAppCard/index.d.ts +3 -0
- package/lib/components/pisellAppCard/index.js +36 -0
- package/lib/components/pisellAppCard/types.d.ts +31 -0
- package/lib/components/pisellAppCard/types.js +17 -0
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +3 -0
- package/lowcode/pisell-app-card/meta.ts +275 -0
- package/package.json +3 -3
|
@@ -59,22 +59,13 @@ declare const formFieldMap: {
|
|
|
59
59
|
FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
60
60
|
FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
61
61
|
};
|
|
62
|
-
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
62
|
+
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<any> | (import("react").FC<{}> & {
|
|
63
63
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
64
64
|
} & {
|
|
65
65
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
66
|
-
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("
|
|
67
|
-
|
|
68
|
-
} & {
|
|
69
|
-
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
70
|
-
}) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
71
|
-
options?: any;
|
|
72
|
-
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
73
|
-
labelField: string;
|
|
74
|
-
valueField: string;
|
|
75
|
-
} & {
|
|
76
|
-
dataSource?: any;
|
|
77
|
-
}) => import("react").JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
|
|
66
|
+
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
|
|
67
|
+
onChange: (value: string) => void;
|
|
68
|
+
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
|
|
78
69
|
JSON: import("react").FC<any>;
|
|
79
70
|
Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
80
71
|
TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
@@ -94,7 +85,16 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
94
85
|
name?: string | undefined;
|
|
95
86
|
fieldKey?: string | undefined;
|
|
96
87
|
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
97
|
-
}) | import("react").FC<import("./
|
|
98
|
-
|
|
99
|
-
} &
|
|
88
|
+
}) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
|
|
89
|
+
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
90
|
+
} & {
|
|
91
|
+
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
92
|
+
}) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
93
|
+
options?: any;
|
|
94
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
95
|
+
labelField: string;
|
|
96
|
+
valueField: string;
|
|
97
|
+
} & {
|
|
98
|
+
dataSource?: any;
|
|
99
|
+
}) => import("react").JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
100
100
|
export { getFieldComponent, formFieldMap };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Dropdown, Button } from 'antd';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import PisellTags from "../pisellTags";
|
|
5
|
+
import PisellCard from "../pisellCard";
|
|
6
|
+
import PisellAvatar from "../pisellAvatar";
|
|
7
|
+
import "./PisellAppCard.less";
|
|
8
|
+
import Icon from "../icon";
|
|
9
|
+
var PisellAppCard = function PisellAppCard(_ref) {
|
|
10
|
+
var className = _ref.className,
|
|
11
|
+
style = _ref.style,
|
|
12
|
+
avatar = _ref.avatar,
|
|
13
|
+
tags = _ref.tags,
|
|
14
|
+
title = _ref.title,
|
|
15
|
+
description = _ref.description,
|
|
16
|
+
bottomButtons = _ref.bottomButtons,
|
|
17
|
+
moreActions = _ref.moreActions;
|
|
18
|
+
return /*#__PURE__*/React.createElement(PisellCard, {
|
|
19
|
+
className: classNames('pisell-lowcode-app-card', className),
|
|
20
|
+
style: style
|
|
21
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
22
|
+
className: "pisell-lowcode-app-card-header"
|
|
23
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
24
|
+
className: "pisell-lowcode-app-card-header-left"
|
|
25
|
+
}, avatar && /*#__PURE__*/React.createElement(PisellAvatar, {
|
|
26
|
+
src: avatar,
|
|
27
|
+
alt: title,
|
|
28
|
+
size: "xl",
|
|
29
|
+
shape: "square",
|
|
30
|
+
style: {
|
|
31
|
+
border: 'none'
|
|
32
|
+
}
|
|
33
|
+
})), /*#__PURE__*/React.createElement("div", null, moreActions && moreActions.length > 0 && /*#__PURE__*/React.createElement(Dropdown, {
|
|
34
|
+
menu: {
|
|
35
|
+
items: moreActions.map(function (action, index) {
|
|
36
|
+
return {
|
|
37
|
+
key: index,
|
|
38
|
+
label: action.label,
|
|
39
|
+
onClick: action.onClick
|
|
40
|
+
};
|
|
41
|
+
})
|
|
42
|
+
},
|
|
43
|
+
placement: "bottomRight",
|
|
44
|
+
trigger: ['click']
|
|
45
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
46
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
47
|
+
type: "pisell2-dots-vertical"
|
|
48
|
+
}),
|
|
49
|
+
size: "large"
|
|
50
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
51
|
+
className: "pisell-lowcode-app-card-content"
|
|
52
|
+
}, tags && tags.length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
53
|
+
className: "pisell-lowcode-app-card-content-tags"
|
|
54
|
+
}, tags.map(function (tag, index) {
|
|
55
|
+
return /*#__PURE__*/React.createElement(PisellTags, {
|
|
56
|
+
key: index,
|
|
57
|
+
type: tag.type,
|
|
58
|
+
color: tag.color
|
|
59
|
+
}, tag.label);
|
|
60
|
+
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
61
|
+
className: "pisell-lowcode-app-card-content-title"
|
|
62
|
+
}, title), description && /*#__PURE__*/React.createElement("div", {
|
|
63
|
+
className: "pisell-lowcode-app-card-content-description"
|
|
64
|
+
}, description))), bottomButtons && bottomButtons.length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
65
|
+
className: "pisell-lowcode-app-card-footer"
|
|
66
|
+
}, bottomButtons.map(function (button, index) {
|
|
67
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
68
|
+
type: button.type,
|
|
69
|
+
onClick: button.onClick,
|
|
70
|
+
key: index,
|
|
71
|
+
size: "large"
|
|
72
|
+
}, button.label);
|
|
73
|
+
})));
|
|
74
|
+
};
|
|
75
|
+
export default PisellAppCard;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
.pisell-lowcode-app-card {
|
|
2
|
+
background: #fff;
|
|
3
|
+
border: 1px solid #f0f0f0;
|
|
4
|
+
|
|
5
|
+
.pisell-lowcode-card-body {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
gap: 16px;
|
|
9
|
+
&::before {
|
|
10
|
+
display: none;
|
|
11
|
+
}
|
|
12
|
+
&::after {
|
|
13
|
+
display: none;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.pisell-lowcode-app-card-header {
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: space-between;
|
|
20
|
+
align-items: center;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.pisell-lowcode-app-card-content {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
gap: 8px;
|
|
27
|
+
.pisell-lowcode-app-card-content-title {
|
|
28
|
+
color: var(--Gray-900, #101828);
|
|
29
|
+
font-size: 18px;
|
|
30
|
+
font-weight: 600;
|
|
31
|
+
line-height: 28px; /* 155.556% */
|
|
32
|
+
}
|
|
33
|
+
.pisell-lowcode-app-card-content-description {
|
|
34
|
+
color: var(--Gray-600, #475467);
|
|
35
|
+
font-size: 14px;
|
|
36
|
+
font-weight: 400;
|
|
37
|
+
line-height: 20px; /* 142.857% */
|
|
38
|
+
}
|
|
39
|
+
.pisell-lowcode-app-card-content-tags {
|
|
40
|
+
display: flex;
|
|
41
|
+
gap: 8px;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.pisell-lowcode-app-card-footer {
|
|
46
|
+
display: flex;
|
|
47
|
+
gap: 12px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
export interface PisellAppCardProps {
|
|
3
|
+
/** 类名 */
|
|
4
|
+
className?: string;
|
|
5
|
+
/** 样式 */
|
|
6
|
+
style?: CSSProperties;
|
|
7
|
+
/** 头像地址 */
|
|
8
|
+
avatar?: string;
|
|
9
|
+
/** 标签列表 */
|
|
10
|
+
tags?: Array<{
|
|
11
|
+
label: string;
|
|
12
|
+
color?: 'success' | 'warning' | 'error' | 'gray';
|
|
13
|
+
type: 'pill_color' | 'pill_outline';
|
|
14
|
+
}>;
|
|
15
|
+
/** 标题 */
|
|
16
|
+
title: string;
|
|
17
|
+
/** 描述 */
|
|
18
|
+
description?: string;
|
|
19
|
+
/** 底部按钮列表 */
|
|
20
|
+
bottomButtons?: Array<{
|
|
21
|
+
label: string;
|
|
22
|
+
onClick?: () => void;
|
|
23
|
+
type?: 'primary' | 'default' | 'dashed' | 'link' | 'text';
|
|
24
|
+
}>;
|
|
25
|
+
/** 右侧更多操作列表 */
|
|
26
|
+
moreActions?: Array<{
|
|
27
|
+
label: string;
|
|
28
|
+
onClick?: () => void;
|
|
29
|
+
icon?: React.ReactNode;
|
|
30
|
+
}>;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -167,7 +167,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
|
|
|
167
167
|
sort?: SortType | undefined;
|
|
168
168
|
mode: "" | "localStorage" | "remote";
|
|
169
169
|
currentViewMode: ModeType;
|
|
170
|
-
}) => ("
|
|
170
|
+
}) => ("view_mode" | "column_setting" | "order_by" | "group_by" | "gallery_setting" | "filter_setting")[];
|
|
171
171
|
export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
|
|
172
172
|
export declare const stringify: (obj: Record<string, any>) => string;
|
|
173
173
|
export {};
|
package/es/index.d.ts
CHANGED
|
@@ -134,3 +134,5 @@ export { default as VirtualKeyboardTime } from './components/virtual-keyboard/Ti
|
|
|
134
134
|
export { default as WalletCard } from './components/walletCard';
|
|
135
135
|
export { default as PisellDropSort } from './components/pisellDropSort';
|
|
136
136
|
export { default as PisellNavigationMenu } from './components/pisellNavigationMenu';
|
|
137
|
+
export { default as PisellAppCard } from './components/pisellAppCard';
|
|
138
|
+
export type { PisellAppCardProps } from './components/pisellAppCard/types';
|
package/es/index.js
CHANGED
|
@@ -133,4 +133,5 @@ export { default as PisellNumberKeyboard } from "./components/virtual-keyboard/N
|
|
|
133
133
|
export { default as VirtualKeyboardTime } from "./components/virtual-keyboard/Time";
|
|
134
134
|
export { default as WalletCard } from "./components/walletCard";
|
|
135
135
|
export { default as PisellDropSort } from "./components/pisellDropSort";
|
|
136
|
-
export { default as PisellNavigationMenu } from "./components/pisellNavigationMenu";
|
|
136
|
+
export { default as PisellNavigationMenu } from "./components/pisellNavigationMenu";
|
|
137
|
+
export { default as PisellAppCard } from "./components/pisellAppCard";
|
|
@@ -59,22 +59,13 @@ declare const formFieldMap: {
|
|
|
59
59
|
FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
60
60
|
FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
61
61
|
};
|
|
62
|
-
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
62
|
+
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<any> | (import("react").FC<{}> & {
|
|
63
63
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
64
64
|
} & {
|
|
65
65
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
66
|
-
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("
|
|
67
|
-
|
|
68
|
-
} & {
|
|
69
|
-
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
70
|
-
}) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
71
|
-
options?: any;
|
|
72
|
-
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
73
|
-
labelField: string;
|
|
74
|
-
valueField: string;
|
|
75
|
-
} & {
|
|
76
|
-
dataSource?: any;
|
|
77
|
-
}) => import("react").JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
|
|
66
|
+
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
|
|
67
|
+
onChange: (value: string) => void;
|
|
68
|
+
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
|
|
78
69
|
JSON: import("react").FC<any>;
|
|
79
70
|
Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
80
71
|
TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
@@ -94,7 +85,16 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
94
85
|
name?: string | undefined;
|
|
95
86
|
fieldKey?: string | undefined;
|
|
96
87
|
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
97
|
-
}) | import("react").FC<import("./
|
|
98
|
-
|
|
99
|
-
} &
|
|
88
|
+
}) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
|
|
89
|
+
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
90
|
+
} & {
|
|
91
|
+
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
92
|
+
}) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
93
|
+
options?: any;
|
|
94
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
95
|
+
labelField: string;
|
|
96
|
+
valueField: string;
|
|
97
|
+
} & {
|
|
98
|
+
dataSource?: any;
|
|
99
|
+
}) => import("react").JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
100
100
|
export { getFieldComponent, formFieldMap };
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/pisellAppCard/PisellAppCard.tsx
|
|
30
|
+
var PisellAppCard_exports = {};
|
|
31
|
+
__export(PisellAppCard_exports, {
|
|
32
|
+
default: () => PisellAppCard_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(PisellAppCard_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_classnames = __toESM(require("classnames"));
|
|
38
|
+
var import_pisellTags = __toESM(require("../pisellTags"));
|
|
39
|
+
var import_pisellCard = __toESM(require("../pisellCard"));
|
|
40
|
+
var import_pisellAvatar = __toESM(require("../pisellAvatar"));
|
|
41
|
+
var import_PisellAppCard = require("./PisellAppCard.less");
|
|
42
|
+
var import_icon = __toESM(require("../icon"));
|
|
43
|
+
var PisellAppCard = ({
|
|
44
|
+
className,
|
|
45
|
+
style,
|
|
46
|
+
avatar,
|
|
47
|
+
tags,
|
|
48
|
+
title,
|
|
49
|
+
description,
|
|
50
|
+
bottomButtons,
|
|
51
|
+
moreActions
|
|
52
|
+
}) => {
|
|
53
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
54
|
+
import_pisellCard.default,
|
|
55
|
+
{
|
|
56
|
+
className: (0, import_classnames.default)("pisell-lowcode-app-card", className),
|
|
57
|
+
style
|
|
58
|
+
},
|
|
59
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-app-card-header" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-app-card-header-left" }, avatar && /* @__PURE__ */ import_react.default.createElement(
|
|
60
|
+
import_pisellAvatar.default,
|
|
61
|
+
{
|
|
62
|
+
src: avatar,
|
|
63
|
+
alt: title,
|
|
64
|
+
size: "xl",
|
|
65
|
+
shape: "square",
|
|
66
|
+
style: { border: "none" }
|
|
67
|
+
}
|
|
68
|
+
)), /* @__PURE__ */ import_react.default.createElement("div", null, moreActions && moreActions.length > 0 && /* @__PURE__ */ import_react.default.createElement(
|
|
69
|
+
import_antd.Dropdown,
|
|
70
|
+
{
|
|
71
|
+
menu: {
|
|
72
|
+
items: moreActions.map((action, index) => ({
|
|
73
|
+
key: index,
|
|
74
|
+
label: action.label,
|
|
75
|
+
onClick: action.onClick
|
|
76
|
+
}))
|
|
77
|
+
},
|
|
78
|
+
placement: "bottomRight",
|
|
79
|
+
trigger: ["click"]
|
|
80
|
+
},
|
|
81
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
82
|
+
import_antd.Button,
|
|
83
|
+
{
|
|
84
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icon.default, { type: "pisell2-dots-vertical" }),
|
|
85
|
+
size: "large"
|
|
86
|
+
}
|
|
87
|
+
)
|
|
88
|
+
))),
|
|
89
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-app-card-content" }, tags && tags.length > 0 && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-app-card-content-tags" }, tags.map((tag, index) => /* @__PURE__ */ import_react.default.createElement(import_pisellTags.default, { key: index, type: tag.type, color: tag.color }, tag.label))), /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-app-card-content-title" }, title), description && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-app-card-content-description" }, description))),
|
|
90
|
+
bottomButtons && bottomButtons.length > 0 && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-app-card-footer" }, bottomButtons.map((button, index) => /* @__PURE__ */ import_react.default.createElement(
|
|
91
|
+
import_antd.Button,
|
|
92
|
+
{
|
|
93
|
+
type: button.type,
|
|
94
|
+
onClick: button.onClick,
|
|
95
|
+
key: index,
|
|
96
|
+
size: "large"
|
|
97
|
+
},
|
|
98
|
+
button.label
|
|
99
|
+
)))
|
|
100
|
+
);
|
|
101
|
+
};
|
|
102
|
+
var PisellAppCard_default = PisellAppCard;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
.pisell-lowcode-app-card {
|
|
2
|
+
background: #fff;
|
|
3
|
+
border: 1px solid #f0f0f0;
|
|
4
|
+
|
|
5
|
+
.pisell-lowcode-card-body {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
gap: 16px;
|
|
9
|
+
&::before {
|
|
10
|
+
display: none;
|
|
11
|
+
}
|
|
12
|
+
&::after {
|
|
13
|
+
display: none;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.pisell-lowcode-app-card-header {
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: space-between;
|
|
20
|
+
align-items: center;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.pisell-lowcode-app-card-content {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
gap: 8px;
|
|
27
|
+
.pisell-lowcode-app-card-content-title {
|
|
28
|
+
color: var(--Gray-900, #101828);
|
|
29
|
+
font-size: 18px;
|
|
30
|
+
font-weight: 600;
|
|
31
|
+
line-height: 28px; /* 155.556% */
|
|
32
|
+
}
|
|
33
|
+
.pisell-lowcode-app-card-content-description {
|
|
34
|
+
color: var(--Gray-600, #475467);
|
|
35
|
+
font-size: 14px;
|
|
36
|
+
font-weight: 400;
|
|
37
|
+
line-height: 20px; /* 142.857% */
|
|
38
|
+
}
|
|
39
|
+
.pisell-lowcode-app-card-content-tags {
|
|
40
|
+
display: flex;
|
|
41
|
+
gap: 8px;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.pisell-lowcode-app-card-footer {
|
|
46
|
+
display: flex;
|
|
47
|
+
gap: 12px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/pisellAppCard/index.tsx
|
|
30
|
+
var pisellAppCard_exports = {};
|
|
31
|
+
__export(pisellAppCard_exports, {
|
|
32
|
+
default: () => pisellAppCard_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(pisellAppCard_exports);
|
|
35
|
+
var import_PisellAppCard = __toESM(require("./PisellAppCard"));
|
|
36
|
+
var pisellAppCard_default = import_PisellAppCard.default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
export interface PisellAppCardProps {
|
|
3
|
+
/** 类名 */
|
|
4
|
+
className?: string;
|
|
5
|
+
/** 样式 */
|
|
6
|
+
style?: CSSProperties;
|
|
7
|
+
/** 头像地址 */
|
|
8
|
+
avatar?: string;
|
|
9
|
+
/** 标签列表 */
|
|
10
|
+
tags?: Array<{
|
|
11
|
+
label: string;
|
|
12
|
+
color?: 'success' | 'warning' | 'error' | 'gray';
|
|
13
|
+
type: 'pill_color' | 'pill_outline';
|
|
14
|
+
}>;
|
|
15
|
+
/** 标题 */
|
|
16
|
+
title: string;
|
|
17
|
+
/** 描述 */
|
|
18
|
+
description?: string;
|
|
19
|
+
/** 底部按钮列表 */
|
|
20
|
+
bottomButtons?: Array<{
|
|
21
|
+
label: string;
|
|
22
|
+
onClick?: () => void;
|
|
23
|
+
type?: 'primary' | 'default' | 'dashed' | 'link' | 'text';
|
|
24
|
+
}>;
|
|
25
|
+
/** 右侧更多操作列表 */
|
|
26
|
+
moreActions?: Array<{
|
|
27
|
+
label: string;
|
|
28
|
+
onClick?: () => void;
|
|
29
|
+
icon?: React.ReactNode;
|
|
30
|
+
}>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
|
|
15
|
+
// src/components/pisellAppCard/types.ts
|
|
16
|
+
var types_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(types_exports);
|
|
@@ -167,7 +167,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
|
|
|
167
167
|
sort?: SortType | undefined;
|
|
168
168
|
mode: "" | "localStorage" | "remote";
|
|
169
169
|
currentViewMode: ModeType;
|
|
170
|
-
}) => ("
|
|
170
|
+
}) => ("view_mode" | "column_setting" | "order_by" | "group_by" | "gallery_setting" | "filter_setting")[];
|
|
171
171
|
export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
|
|
172
172
|
export declare const stringify: (obj: Record<string, any>) => string;
|
|
173
173
|
export {};
|
package/lib/index.d.ts
CHANGED
|
@@ -134,3 +134,5 @@ export { default as VirtualKeyboardTime } from './components/virtual-keyboard/Ti
|
|
|
134
134
|
export { default as WalletCard } from './components/walletCard';
|
|
135
135
|
export { default as PisellDropSort } from './components/pisellDropSort';
|
|
136
136
|
export { default as PisellNavigationMenu } from './components/pisellNavigationMenu';
|
|
137
|
+
export { default as PisellAppCard } from './components/pisellAppCard';
|
|
138
|
+
export type { PisellAppCardProps } from './components/pisellAppCard/types';
|
package/lib/index.js
CHANGED
|
@@ -109,6 +109,7 @@ __export(src_exports, {
|
|
|
109
109
|
PisellAdjustPriceInputNumber: () => import_PisellAdjustPriceInputNumber.default,
|
|
110
110
|
PisellAlert: () => import_pisellAlert.default,
|
|
111
111
|
PisellAnchor: () => import_pisellAnchor.default,
|
|
112
|
+
PisellAppCard: () => import_pisellAppCard.default,
|
|
112
113
|
PisellAvatar: () => import_pisellAvatar.default,
|
|
113
114
|
PisellCard: () => import_pisellCard.default,
|
|
114
115
|
PisellCardList: () => import_pisellCardList.default,
|
|
@@ -337,6 +338,7 @@ var import_Time = __toESM(require("./components/virtual-keyboard/Time"));
|
|
|
337
338
|
var import_walletCard = __toESM(require("./components/walletCard"));
|
|
338
339
|
var import_pisellDropSort = __toESM(require("./components/pisellDropSort"));
|
|
339
340
|
var import_pisellNavigationMenu = __toESM(require("./components/pisellNavigationMenu"));
|
|
341
|
+
var import_pisellAppCard = __toESM(require("./components/pisellAppCard"));
|
|
340
342
|
// Annotate the CommonJS export names for ESM import in node:
|
|
341
343
|
0 && (module.exports = {
|
|
342
344
|
Affix,
|
|
@@ -419,6 +421,7 @@ var import_pisellNavigationMenu = __toESM(require("./components/pisellNavigation
|
|
|
419
421
|
PisellAdjustPriceInputNumber,
|
|
420
422
|
PisellAlert,
|
|
421
423
|
PisellAnchor,
|
|
424
|
+
PisellAppCard,
|
|
422
425
|
PisellAvatar,
|
|
423
426
|
PisellCard,
|
|
424
427
|
PisellCardList,
|