@pisell/materials 3.3.51 → 3.3.52
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/es/components/dataSourceComponents/dataSourceForm/BaseForm.js +6 -3
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.js +2 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +7 -6
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
- package/es/components/pisellWalletPassCard/index.d.ts +0 -1
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/es/components/table/Table/fields/index.d.ts +2 -2
- package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/table/View/index.d.ts +1 -0
- package/es/utils/index.d.ts +1 -1
- package/es/utils/platform.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.js +5 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.js +2 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +7 -6
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
- package/lib/components/pisellWalletPassCard/index.d.ts +0 -1
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/lib/components/table/Table/fields/index.d.ts +2 -2
- package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/table/View/index.d.ts +1 -0
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/platform.d.ts +1 -1
- package/lowcode/data-source-table/meta.ts +14 -0
- package/lowcode/form-item-input.password/meta.ts +5 -0
- package/package.json +3 -3
- package/es/components/TimeResourceSelector/index.d.ts +0 -21
- package/es/components/appVersionControl/index.d.ts +0 -5
- package/es/components/badge/index.d.ts +0 -8
- package/es/components/buttonGroupPreview/index.d.ts +0 -19
- package/es/components/cardPro/index.d.ts +0 -4
- package/es/components/collapse/index.d.ts +0 -15
- package/es/components/cropPhoto/index.d.ts +0 -3
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
- package/es/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +0 -8
- package/es/components/dataSourceComponents/dataSourceMenu/index.d.ts +0 -8
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -39
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
- package/es/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +0 -5
- package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
- package/es/components/dataSourceComponents/fields/Upload/serve.d.ts +0 -20
- package/es/components/dataSourceComponents/fields/Upload/type.d.ts +0 -37
- package/es/components/dataSourceComponents/hooks/usePlatform.d.ts +0 -3
- package/es/components/div/index.d.ts +0 -19
- package/es/components/drag-sort-tree/index.d.ts +0 -5
- package/es/components/iconfont/index.d.ts +0 -8
- package/es/components/login-and-register/index.d.ts +0 -82
- package/es/components/page/index.d.ts +0 -6
- package/es/components/pisell-config-provider/index.d.ts +0 -12
- package/es/components/pisellAnchor/index.d.ts +0 -23
- package/es/components/pisellAvatar/index.d.ts +0 -19
- package/es/components/pisellCard/index.d.ts +0 -20
- package/es/components/pisellCustomCheckboxGroup/index.d.ts +0 -16
- package/es/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +0 -9
- package/es/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +0 -24
- package/es/components/pisellDraggable/components/TreeItem/index.d.ts +0 -2
- package/es/components/pisellDraggable/index.d.ts +0 -35
- package/es/components/pisellDropSort/PisellDropSort.d.ts +0 -5
- package/es/components/pisellDropSort/components/SortableItem/index.d.ts +0 -26
- package/es/components/pisellDropSort/types.d.ts +0 -58
- package/es/components/pisellDropdown/index.d.ts +0 -20
- package/es/components/pisellEmpty/index.d.ts +0 -19
- package/es/components/pisellHeaderProgressBar/index.d.ts +0 -29
- package/es/components/pisellImageCarousels/index.d.ts +0 -18
- package/es/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +0 -4
- package/es/components/pisellInformationEntry/index.d.ts +0 -33
- package/es/components/pisellList01/index.d.ts +0 -17
- package/es/components/pisellMenu/PisellMenu.d.ts +0 -11
- package/es/components/pisellMenu/types.d.ts +0 -27
- package/es/components/pisellNavigationMenu/types.d.ts +0 -85
- package/es/components/pisellQrcode/index.d.ts +0 -10
- package/es/components/pisellSectionHeaders/index.d.ts +0 -21
- package/es/components/pisellStatisticList/index.d.ts +0 -21
- package/es/components/productCard/components/Action/index.d.ts +0 -3
- package/es/components/productCard/components/Divider/index.d.ts +0 -4
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -4
- package/es/components/productCard/components/MultiDay/utils.d.ts +0 -14
- package/es/components/productCard/components/Time/components/Like/index.d.ts +0 -10
- package/es/components/productCard/components/Time/index.d.ts +0 -4
- package/es/components/productCard/locales.d.ts +0 -84
- package/es/components/productCard/status.d.ts +0 -32
- package/es/components/productCard/types.d.ts +0 -84
- package/es/components/section-footers/index.d.ts +0 -9
- package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -8
- package/es/components/table/Actions/component/ExportImport/utils/index.d.ts +0 -9
- package/es/components/table/types.d.ts +0 -251
- package/es/components/tabs/index.d.ts +0 -16
- package/es/components/versionModal/index.d.ts +0 -23
- package/es/components/walletCard/Guest/index.d.ts +0 -4
- package/es/components/walletCard/Guide/index.d.ts +0 -4
- package/es/components/walletCard/index.d.ts +0 -67
- package/es/locales/en-US.d.ts +0 -278
- package/es/locales/index.d.ts +0 -1
- package/es/locales/zh-CN.d.ts +0 -273
- package/es/locales/zh-TW.d.ts +0 -273
- package/lib/components/TimeResourceSelector/index.d.ts +0 -21
- package/lib/components/appVersionControl/index.d.ts +0 -5
- package/lib/components/badge/index.d.ts +0 -8
- package/lib/components/buttonGroupPreview/index.d.ts +0 -19
- package/lib/components/cardPro/index.d.ts +0 -4
- package/lib/components/collapse/index.d.ts +0 -15
- package/lib/components/cropPhoto/index.d.ts +0 -3
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
- package/lib/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +0 -8
- package/lib/components/dataSourceComponents/dataSourceMenu/index.d.ts +0 -8
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -39
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
- package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +0 -5
- package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
- package/lib/components/dataSourceComponents/fields/Upload/serve.d.ts +0 -20
- package/lib/components/dataSourceComponents/fields/Upload/type.d.ts +0 -37
- package/lib/components/dataSourceComponents/hooks/usePlatform.d.ts +0 -3
- package/lib/components/div/index.d.ts +0 -19
- package/lib/components/drag-sort-tree/index.d.ts +0 -5
- package/lib/components/iconfont/index.d.ts +0 -8
- package/lib/components/login-and-register/index.d.ts +0 -82
- package/lib/components/page/index.d.ts +0 -6
- package/lib/components/pisell-config-provider/index.d.ts +0 -12
- package/lib/components/pisellAnchor/index.d.ts +0 -23
- package/lib/components/pisellAvatar/index.d.ts +0 -19
- package/lib/components/pisellCard/index.d.ts +0 -20
- package/lib/components/pisellCustomCheckboxGroup/index.d.ts +0 -16
- package/lib/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +0 -9
- package/lib/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +0 -24
- package/lib/components/pisellDraggable/components/TreeItem/index.d.ts +0 -2
- package/lib/components/pisellDraggable/index.d.ts +0 -35
- package/lib/components/pisellDropSort/PisellDropSort.d.ts +0 -5
- package/lib/components/pisellDropSort/components/SortableItem/index.d.ts +0 -26
- package/lib/components/pisellDropSort/types.d.ts +0 -58
- package/lib/components/pisellDropdown/index.d.ts +0 -20
- package/lib/components/pisellEmpty/index.d.ts +0 -19
- package/lib/components/pisellHeaderProgressBar/index.d.ts +0 -29
- package/lib/components/pisellImageCarousels/index.d.ts +0 -18
- package/lib/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +0 -4
- package/lib/components/pisellInformationEntry/index.d.ts +0 -33
- package/lib/components/pisellList01/index.d.ts +0 -17
- package/lib/components/pisellMenu/PisellMenu.d.ts +0 -11
- package/lib/components/pisellMenu/types.d.ts +0 -27
- package/lib/components/pisellNavigationMenu/types.d.ts +0 -85
- package/lib/components/pisellQrcode/index.d.ts +0 -10
- package/lib/components/pisellSectionHeaders/index.d.ts +0 -21
- package/lib/components/pisellStatisticList/index.d.ts +0 -21
- package/lib/components/productCard/components/Action/index.d.ts +0 -3
- package/lib/components/productCard/components/Divider/index.d.ts +0 -4
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -4
- package/lib/components/productCard/components/MultiDay/utils.d.ts +0 -14
- package/lib/components/productCard/components/Time/components/Like/index.d.ts +0 -10
- package/lib/components/productCard/components/Time/index.d.ts +0 -4
- package/lib/components/productCard/locales.d.ts +0 -84
- package/lib/components/productCard/status.d.ts +0 -32
- package/lib/components/productCard/types.d.ts +0 -84
- package/lib/components/section-footers/index.d.ts +0 -9
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -8
- package/lib/components/table/Actions/component/ExportImport/utils/index.d.ts +0 -9
- package/lib/components/table/types.d.ts +0 -251
- package/lib/components/tabs/index.d.ts +0 -16
- package/lib/components/versionModal/index.d.ts +0 -23
- package/lib/components/walletCard/Guest/index.d.ts +0 -4
- package/lib/components/walletCard/Guide/index.d.ts +0 -4
- package/lib/components/walletCard/index.d.ts +0 -67
- package/lib/locales/en-US.d.ts +0 -278
- package/lib/locales/index.d.ts +0 -1
- package/lib/locales/zh-CN.d.ts +0 -273
- package/lib/locales/zh-TW.d.ts +0 -273
|
@@ -50,9 +50,12 @@ var BaseForm = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
50
50
|
var _useDataSource = useDataSource(),
|
|
51
51
|
get = _useDataSource.get;
|
|
52
52
|
useEffect(function () {
|
|
53
|
-
var
|
|
54
|
-
(
|
|
55
|
-
|
|
53
|
+
var isDesignMode = props.__designMode === 'design';
|
|
54
|
+
if (isDesignMode) {
|
|
55
|
+
var _formRef$current;
|
|
56
|
+
(_formRef$current = formRef.current) === null || _formRef$current === void 0 || _formRef$current.resetFields();
|
|
57
|
+
}
|
|
58
|
+
}, [dataSource, props.__designMode]);
|
|
56
59
|
useEffect(function () {
|
|
57
60
|
document.body.id = 'body';
|
|
58
61
|
}, []);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const useDataSourceKey: () => {
|
|
2
|
-
dataSourceKey: string | undefined;
|
|
3
|
-
dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
|
|
2
|
+
dataSourceKey: string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined;
|
|
3
|
+
dataSourceKeyRef: import("react").MutableRefObject<string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined>;
|
|
4
4
|
};
|
|
5
5
|
export default useDataSourceKey;
|
|
@@ -54,6 +54,8 @@ var useDrawerState = function useDrawerState(operationContent) {
|
|
|
54
54
|
setDrawerVisible(false);
|
|
55
55
|
// 等待动画完成后再清除item
|
|
56
56
|
timerRef.current = setTimeout(function () {
|
|
57
|
+
var _item$afterClose;
|
|
58
|
+
item === null || item === void 0 || (_item$afterClose = item.afterClose) === null || _item$afterClose === void 0 || _item$afterClose.call(item);
|
|
57
59
|
setItem(null);
|
|
58
60
|
timerRef.current = undefined;
|
|
59
61
|
}, 300);
|
|
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
|
|
|
17
17
|
* @returns
|
|
18
18
|
*/
|
|
19
19
|
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
20
|
-
title: number | boolean |
|
|
20
|
+
title: string | number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
|
|
21
21
|
pagination: {
|
|
22
22
|
total: number;
|
|
23
23
|
current: number;
|
|
@@ -26,7 +26,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
26
26
|
showSizeChanger: boolean;
|
|
27
27
|
};
|
|
28
28
|
columns: import("./useColumns").Column[];
|
|
29
|
-
subTitle: number | boolean |
|
|
29
|
+
subTitle: string | number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
|
|
30
30
|
buttons: any[] | null;
|
|
31
31
|
filter: JSX.Element | null;
|
|
32
32
|
onRow: (record: any) => any;
|
|
@@ -42,17 +42,18 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
42
42
|
items: OperationItem[];
|
|
43
43
|
} | undefined;
|
|
44
44
|
operation?: {
|
|
45
|
-
|
|
46
|
-
title: string; /**
|
|
45
|
+
/**
|
|
47
46
|
* 处理table的props
|
|
48
47
|
* 转换title
|
|
49
48
|
* @param props
|
|
50
49
|
* @returns
|
|
51
50
|
*/
|
|
51
|
+
show: boolean;
|
|
52
|
+
title: string;
|
|
52
53
|
width: number;
|
|
53
54
|
align: "center" | "left" | "right";
|
|
54
55
|
fixed: false | "left" | "right";
|
|
55
|
-
type: "
|
|
56
|
+
type: "button" | "link";
|
|
56
57
|
items: OperationItem[];
|
|
57
58
|
} | undefined;
|
|
58
59
|
operationContent?: {
|
|
@@ -70,7 +71,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
70
71
|
useCustomAction: boolean;
|
|
71
72
|
actionType: string;
|
|
72
73
|
openMode: "modal" | "drawer";
|
|
73
|
-
openContentSize: "
|
|
74
|
+
openContentSize: "large" | "middle" | "small";
|
|
74
75
|
openTitle: string;
|
|
75
76
|
key: string;
|
|
76
77
|
} | undefined;
|
|
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
|
17
17
|
* @Author: WangHan
|
|
18
18
|
* @Date: 2024-11-22 10:58
|
|
19
19
|
*/
|
|
20
|
-
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) =>
|
|
20
|
+
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
|
|
@@ -198,12 +198,12 @@ export declare const fieldList: ({
|
|
|
198
198
|
field_icon: string;
|
|
199
199
|
field_name: string;
|
|
200
200
|
field_type: string;
|
|
201
|
-
default_value:
|
|
201
|
+
default_value: string;
|
|
202
202
|
} | {
|
|
203
203
|
field_icon: string;
|
|
204
204
|
field_name: string;
|
|
205
205
|
field_type: string;
|
|
206
|
-
default_value:
|
|
206
|
+
default_value: boolean;
|
|
207
207
|
} | {
|
|
208
208
|
field_icon: string;
|
|
209
209
|
field_name: string;
|
|
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
|
|
|
155
155
|
sort?: SortType | undefined;
|
|
156
156
|
mode: "" | "localStorage" | "remote";
|
|
157
157
|
currentViewMode: ModeType;
|
|
158
|
-
}) => ("
|
|
158
|
+
}) => ("filter_setting" | "view_mode" | "column_setting" | "order_by" | "group_by" | "gallery_setting")[];
|
|
159
159
|
export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
|
|
160
160
|
export declare const stringify: (obj: Record<string, any>) => string;
|
|
161
161
|
export {};
|
package/es/utils/index.d.ts
CHANGED
package/es/utils/platform.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const isMobile: () =>
|
|
1
|
+
export declare const isMobile: () => any;
|
|
@@ -73,8 +73,11 @@ var BaseForm = (0, import_react.forwardRef)(
|
|
|
73
73
|
const { get } = (0, import_useDataSource.default)();
|
|
74
74
|
(0, import_react.useEffect)(() => {
|
|
75
75
|
var _a2;
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
const isDesignMode = props.__designMode === "design";
|
|
77
|
+
if (isDesignMode) {
|
|
78
|
+
(_a2 = formRef.current) == null ? void 0 : _a2.resetFields();
|
|
79
|
+
}
|
|
80
|
+
}, [dataSource, props.__designMode]);
|
|
78
81
|
(0, import_react.useEffect)(() => {
|
|
79
82
|
document.body.id = "body";
|
|
80
83
|
}, []);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const useDataSourceKey: () => {
|
|
2
|
-
dataSourceKey: string | undefined;
|
|
3
|
-
dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
|
|
2
|
+
dataSourceKey: string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined;
|
|
3
|
+
dataSourceKeyRef: import("react").MutableRefObject<string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined>;
|
|
4
4
|
};
|
|
5
5
|
export default useDataSourceKey;
|
|
@@ -64,6 +64,8 @@ var useDrawerState = (operationContent) => {
|
|
|
64
64
|
}
|
|
65
65
|
setDrawerVisible(false);
|
|
66
66
|
timerRef.current = setTimeout(() => {
|
|
67
|
+
var _a;
|
|
68
|
+
(_a = item == null ? void 0 : item.afterClose) == null ? void 0 : _a.call(item);
|
|
67
69
|
setItem(null);
|
|
68
70
|
timerRef.current = void 0;
|
|
69
71
|
}, 300);
|
|
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
|
|
|
17
17
|
* @returns
|
|
18
18
|
*/
|
|
19
19
|
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
20
|
-
title: number | boolean |
|
|
20
|
+
title: string | number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
|
|
21
21
|
pagination: {
|
|
22
22
|
total: number;
|
|
23
23
|
current: number;
|
|
@@ -26,7 +26,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
26
26
|
showSizeChanger: boolean;
|
|
27
27
|
};
|
|
28
28
|
columns: import("./useColumns").Column[];
|
|
29
|
-
subTitle: number | boolean |
|
|
29
|
+
subTitle: string | number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
|
|
30
30
|
buttons: any[] | null;
|
|
31
31
|
filter: JSX.Element | null;
|
|
32
32
|
onRow: (record: any) => any;
|
|
@@ -42,17 +42,18 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
42
42
|
items: OperationItem[];
|
|
43
43
|
} | undefined;
|
|
44
44
|
operation?: {
|
|
45
|
-
|
|
46
|
-
title: string; /**
|
|
45
|
+
/**
|
|
47
46
|
* 处理table的props
|
|
48
47
|
* 转换title
|
|
49
48
|
* @param props
|
|
50
49
|
* @returns
|
|
51
50
|
*/
|
|
51
|
+
show: boolean;
|
|
52
|
+
title: string;
|
|
52
53
|
width: number;
|
|
53
54
|
align: "center" | "left" | "right";
|
|
54
55
|
fixed: false | "left" | "right";
|
|
55
|
-
type: "
|
|
56
|
+
type: "button" | "link";
|
|
56
57
|
items: OperationItem[];
|
|
57
58
|
} | undefined;
|
|
58
59
|
operationContent?: {
|
|
@@ -70,7 +71,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
70
71
|
useCustomAction: boolean;
|
|
71
72
|
actionType: string;
|
|
72
73
|
openMode: "modal" | "drawer";
|
|
73
|
-
openContentSize: "
|
|
74
|
+
openContentSize: "large" | "middle" | "small";
|
|
74
75
|
openTitle: string;
|
|
75
76
|
key: string;
|
|
76
77
|
} | undefined;
|
|
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
|
17
17
|
* @Author: WangHan
|
|
18
18
|
* @Date: 2024-11-22 10:58
|
|
19
19
|
*/
|
|
20
|
-
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) =>
|
|
20
|
+
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
|
|
@@ -198,12 +198,12 @@ export declare const fieldList: ({
|
|
|
198
198
|
field_icon: string;
|
|
199
199
|
field_name: string;
|
|
200
200
|
field_type: string;
|
|
201
|
-
default_value:
|
|
201
|
+
default_value: string;
|
|
202
202
|
} | {
|
|
203
203
|
field_icon: string;
|
|
204
204
|
field_name: string;
|
|
205
205
|
field_type: string;
|
|
206
|
-
default_value:
|
|
206
|
+
default_value: boolean;
|
|
207
207
|
} | {
|
|
208
208
|
field_icon: string;
|
|
209
209
|
field_name: string;
|
|
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
|
|
|
155
155
|
sort?: SortType | undefined;
|
|
156
156
|
mode: "" | "localStorage" | "remote";
|
|
157
157
|
currentViewMode: ModeType;
|
|
158
|
-
}) => ("
|
|
158
|
+
}) => ("filter_setting" | "view_mode" | "column_setting" | "order_by" | "group_by" | "gallery_setting")[];
|
|
159
159
|
export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
|
|
160
160
|
export declare const stringify: (obj: Record<string, any>) => string;
|
|
161
161
|
export {};
|
package/lib/utils/index.d.ts
CHANGED
package/lib/utils/platform.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const isMobile: () =>
|
|
1
|
+
export declare const isMobile: () => any;
|
|
@@ -897,6 +897,13 @@ const dataSourceTable = {
|
|
|
897
897
|
},
|
|
898
898
|
},
|
|
899
899
|
},
|
|
900
|
+
{
|
|
901
|
+
name: 'afterClose',
|
|
902
|
+
title: { label: '关闭后' },
|
|
903
|
+
setter: {
|
|
904
|
+
componentName: 'FunctionSetter'
|
|
905
|
+
}
|
|
906
|
+
}
|
|
900
907
|
],
|
|
901
908
|
},
|
|
902
909
|
},
|
|
@@ -2689,6 +2696,13 @@ const dataSourceTable = {
|
|
|
2689
2696
|
componentName: 'BoolSetter'
|
|
2690
2697
|
},
|
|
2691
2698
|
],
|
|
2699
|
+
},
|
|
2700
|
+
{
|
|
2701
|
+
name: 'afterClose',
|
|
2702
|
+
title: { label: '关闭后' },
|
|
2703
|
+
setter: {
|
|
2704
|
+
componentName: 'FunctionSetter'
|
|
2705
|
+
}
|
|
2692
2706
|
}
|
|
2693
2707
|
],
|
|
2694
2708
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.52",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -71,9 +71,9 @@
|
|
|
71
71
|
"swiper": "^8.4.7",
|
|
72
72
|
"react-barcode": "^1.5.3",
|
|
73
73
|
"vod-js-sdk-v6": "^1.4.11",
|
|
74
|
+
"@pisell/date-picker": "3.0.3",
|
|
74
75
|
"@pisell/icon": "0.0.11",
|
|
75
|
-
"@pisell/
|
|
76
|
-
"@pisell/utils": "3.0.0"
|
|
76
|
+
"@pisell/utils": "3.0.1"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
79
|
"react": "^18.0.0",
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface TimeSlot {
|
|
4
|
-
value: string;
|
|
5
|
-
label: string;
|
|
6
|
-
time: string;
|
|
7
|
-
remainingCount: number;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface TimeResourceSelectorProps {
|
|
11
|
-
timeSlots?: TimeSlot[];
|
|
12
|
-
multiple?: boolean;
|
|
13
|
-
showUnavailable?: boolean;
|
|
14
|
-
defaultExpanded?: boolean;
|
|
15
|
-
defaultSelectFirst?: boolean;
|
|
16
|
-
onChange?: (values: string | string[]) => void;
|
|
17
|
-
className?: string;
|
|
18
|
-
style?: React.CSSProperties;
|
|
19
|
-
}
|
|
20
|
-
declare const TimeResourceSelector: React.FC<TimeResourceSelectorProps>;
|
|
21
|
-
export default TimeResourceSelector;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BadgeProps as OriginalBadgeprops } from 'antd';
|
|
3
|
-
import './index.less';
|
|
4
|
-
export interface Badgeprops extends OriginalBadgeprops {
|
|
5
|
-
styleType: 'default' | 'warning';
|
|
6
|
-
}
|
|
7
|
-
declare const Badge: (props: any) => JSX.Element;
|
|
8
|
-
export default Badge;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { MenuProps, ButtonProps } from 'antd';
|
|
3
|
-
export interface ButtonGroupListItemProps {
|
|
4
|
-
id?: string;
|
|
5
|
-
isMore?: boolean;
|
|
6
|
-
menuData?: MenuProps['items'];
|
|
7
|
-
buttonProps?: ButtonProps;
|
|
8
|
-
}
|
|
9
|
-
interface ButtonConfigProps {
|
|
10
|
-
[id: string]: ButtonGroupListItemProps;
|
|
11
|
-
}
|
|
12
|
-
export declare type ButtonGroupListProps = ButtonGroupListItemProps[][];
|
|
13
|
-
interface ButtonGroupPreviewProps {
|
|
14
|
-
buttonConfig?: ButtonConfigProps;
|
|
15
|
-
buttonGroupList?: ButtonGroupListProps;
|
|
16
|
-
updateButtonProps?: ButtonGroupListItemProps;
|
|
17
|
-
}
|
|
18
|
-
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<ButtonGroupPreviewProps & React.RefAttributes<any>>>;
|
|
19
|
-
export default _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface CollapseProps {
|
|
4
|
-
panelBackground?: string;
|
|
5
|
-
panelMarginBottom?: string | 0;
|
|
6
|
-
panelBorderRadius?: string | 0;
|
|
7
|
-
items: any[];
|
|
8
|
-
showHeader?: boolean;
|
|
9
|
-
headerColor?: string | '#101828';
|
|
10
|
-
headerFontSize?: string | 14;
|
|
11
|
-
expandIcon?: any;
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
}
|
|
14
|
-
declare const Collapse: React.FC<CollapseProps>;
|
|
15
|
-
export default Collapse;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PisellMenuProps } from '../../pisellMenu/types';
|
|
3
|
-
/**
|
|
4
|
-
* @title: 数据源表单组件
|
|
5
|
-
* @description: 基于数据源动态生成表单,支持编辑、查看、禁用三种模式
|
|
6
|
-
*/
|
|
7
|
-
declare const DataSourceMenu: React.ForwardRefExoticComponent<PisellMenuProps & React.RefAttributes<any>>;
|
|
8
|
-
export default DataSourceMenu;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PisellMenuProps } from '../../pisellMenu/types';
|
|
3
|
-
/**
|
|
4
|
-
* @title: 数据源表单组件
|
|
5
|
-
* @description: 基于数据源动态生成表单,支持编辑、查看、禁用三种模式
|
|
6
|
-
*/
|
|
7
|
-
declare const DataSourceMenu: (props: PisellMenuProps, ref: React.Ref<any>) => JSX.Element;
|
|
8
|
-
export default DataSourceMenu;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Drawer } from 'antd';
|
|
3
|
-
import { OperationItem } from '../type';
|
|
4
|
-
declare const useDrawerState: (operationContent?: {
|
|
5
|
-
[key: string]: import("react").ReactNode;
|
|
6
|
-
} | undefined) => {
|
|
7
|
-
drawerVisible: boolean;
|
|
8
|
-
setDrawerVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
9
|
-
openDrawer: (item: OperationItem) => void;
|
|
10
|
-
closeDrawer: () => void;
|
|
11
|
-
drawerContent: import("react").ReactNode;
|
|
12
|
-
Container: {
|
|
13
|
-
(props: import("../../../pisellModal").PisellModalProps): JSX.Element;
|
|
14
|
-
confirm: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
15
|
-
destroy: () => void;
|
|
16
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
17
|
-
};
|
|
18
|
-
info: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
19
|
-
destroy: () => void;
|
|
20
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
21
|
-
};
|
|
22
|
-
error: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
23
|
-
destroy: () => void;
|
|
24
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
25
|
-
};
|
|
26
|
-
warn: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => any;
|
|
27
|
-
warning: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
28
|
-
destroy: () => void;
|
|
29
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
30
|
-
};
|
|
31
|
-
success: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
32
|
-
destroy: () => void;
|
|
33
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
34
|
-
};
|
|
35
|
-
Information: (props: import("../../../pisellModal/components/Information").InformationProps) => JSX.Element;
|
|
36
|
-
} | typeof Drawer;
|
|
37
|
-
containerProps: {};
|
|
38
|
-
};
|
|
39
|
-
export default useDrawerState;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ColumnType } from 'antd/es/table';
|
|
3
|
-
import { DataSourceType } from '../provider/dataSource/DataSourceContext';
|
|
4
|
-
export declare type OperationItem = {
|
|
5
|
-
label?: string;
|
|
6
|
-
openMode: 'modal' | 'drawer' | 'custom';
|
|
7
|
-
openContentSize: 'small' | 'middle' | 'large';
|
|
8
|
-
openTitle: string;
|
|
9
|
-
actionType: 'detail' | 'edit' | 'delete' | 'custom';
|
|
10
|
-
key: string;
|
|
11
|
-
buttonProps?: any;
|
|
12
|
-
onClick?: (record: any) => void;
|
|
13
|
-
};
|
|
14
|
-
export interface DataSourceTableProps {
|
|
15
|
-
title?: string | React.ReactNode | (() => React.ReactNode);
|
|
16
|
-
subTitle?: string | React.ReactNode | (() => React.ReactNode);
|
|
17
|
-
titleButtons?: {
|
|
18
|
-
show: boolean;
|
|
19
|
-
maxCount: number;
|
|
20
|
-
items: OperationItem[];
|
|
21
|
-
};
|
|
22
|
-
tableButtons?: {
|
|
23
|
-
show: boolean;
|
|
24
|
-
maxCount: number;
|
|
25
|
-
items: OperationItem[];
|
|
26
|
-
};
|
|
27
|
-
buttons?: any[];
|
|
28
|
-
operation?: {
|
|
29
|
-
show: boolean;
|
|
30
|
-
title: string;
|
|
31
|
-
width: number;
|
|
32
|
-
align: 'left' | 'center' | 'right';
|
|
33
|
-
fixed: 'left' | 'right' | false;
|
|
34
|
-
type: 'link' | 'button';
|
|
35
|
-
items: OperationItem[];
|
|
36
|
-
};
|
|
37
|
-
operationContent?: {
|
|
38
|
-
[key: string]: React.ReactNode;
|
|
39
|
-
};
|
|
40
|
-
dataSource: DataSourceType;
|
|
41
|
-
columns: ColumnType<any>[];
|
|
42
|
-
filter: any;
|
|
43
|
-
search?: {
|
|
44
|
-
show: boolean;
|
|
45
|
-
placeholder: string;
|
|
46
|
-
};
|
|
47
|
-
__designMode: string;
|
|
48
|
-
componentId: string;
|
|
49
|
-
clickToDetail?: {
|
|
50
|
-
show: boolean;
|
|
51
|
-
useCustomAction: boolean;
|
|
52
|
-
actionType: string;
|
|
53
|
-
openMode: 'modal' | 'drawer';
|
|
54
|
-
openContentSize: 'small' | 'middle' | 'large';
|
|
55
|
-
openTitle: string;
|
|
56
|
-
key: string;
|
|
57
|
-
};
|
|
58
|
-
onRow?: any;
|
|
59
|
-
filterBy?: Record<string, any>;
|
|
60
|
-
sortBy: string;
|
|
61
|
-
tabs?: {
|
|
62
|
-
show: boolean;
|
|
63
|
-
type: string;
|
|
64
|
-
items: {
|
|
65
|
-
name: string;
|
|
66
|
-
filterBy: Record<string, any>;
|
|
67
|
-
sortBy: string;
|
|
68
|
-
}[];
|
|
69
|
-
};
|
|
70
|
-
onValuesChange?: (changedValues: any, values: any) => void;
|
|
71
|
-
extraParams?: {
|
|
72
|
-
list?: Record<string, any>;
|
|
73
|
-
get?: Record<string, any>;
|
|
74
|
-
update?: Record<string, any>;
|
|
75
|
-
create?: Record<string, any>;
|
|
76
|
-
destroy?: Record<string, any>;
|
|
77
|
-
};
|
|
78
|
-
}
|