@pisell/materials 1.0.892 → 1.0.893
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 +1 -1
- package/build/lowcode/preview.js +164 -148
- package/build/lowcode/render/default/view.js +38 -24
- package/build/lowcode/view.js +38 -24
- package/es/components/batch-editor/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +17 -17
- package/es/components/date-picker/index.d.ts +0 -1
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
- package/es/components/iconfont/index.d.ts +8 -0
- package/es/components/page/index.d.ts +0 -1
- package/es/components/pisellAdjustPrice/index.d.ts +4 -0
- package/es/components/pisellAdjustPrice/status.d.ts +32 -0
- package/es/components/pisellAdjustPrice/type.d.ts +20 -0
- package/es/components/pisellInput/index.d.ts +0 -1
- package/es/components/pisellModal/components/IpadModal/index.d.ts +0 -1
- package/es/components/pisellModal/components/MobileModal/index.d.ts +0 -1
- package/es/components/pisellModal/components/index.d.ts +0 -1
- package/es/components/pisellToast/index.d.ts +16 -0
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
- package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +27 -0
- package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +12 -0
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +45 -0
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
- package/es/components/productCard/cartSkuCard/index.d.ts +10 -0
- package/es/components/productCard/cartSkuCard/locales.d.ts +96 -0
- package/es/components/productCard/components/Action/index.d.ts +3 -0
- package/es/components/productCard/components/Header/index.d.ts +3 -0
- package/es/components/productCard/components/Sales/index.d.ts +3 -0
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
- package/es/components/productCard/components/Warning/index.d.ts +7 -0
- package/es/components/productCard/locales.d.ts +84 -0
- package/es/components/productCard/status.d.ts +32 -0
- package/es/components/productCard/types.d.ts +84 -0
- package/es/components/productCard/utils.d.ts +31 -0
- package/es/components/select-time/index.d.ts +0 -1
- package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
- package/es/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
- package/es/components/table/Actions/component/Group/index.d.ts +0 -1
- package/es/components/table/Actions/index.d.ts +0 -1
- package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
- package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
- package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/es/components/table/Table/SelectField/index.d.ts +0 -1
- package/es/components/table/Table/fields/date/index.d.ts +0 -1
- package/es/components/table/Table/fields/image/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/image/index.d.ts +0 -1
- package/es/components/table/Table/fields/index.d.ts +2 -3
- package/es/components/table/Table/fields/link/index.d.ts +0 -1
- package/es/components/table/Table/fields/number/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/number/index.d.ts +0 -1
- package/es/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/numberRange/index.d.ts +0 -1
- package/es/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
- package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/pSwitch/index.d.ts +0 -1
- package/es/components/table/Table/fields/rangePicker/index.d.ts +0 -1
- package/es/components/table/Table/fields/search/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/search/index.d.ts +0 -1
- package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/text/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/text/index.d.ts +0 -1
- package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/es/components/table/View/index.d.ts +0 -1
- package/es/components/versionSelect/index.d.ts +0 -1
- package/es/components/virtual-keyboard/Amount/index.d.ts +5 -0
- package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
- package/es/components/virtual-keyboard/Amount/types.d.ts +44 -0
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +21 -0
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
- package/es/components/virtual-keyboard/Number/index.d.ts +5 -0
- package/es/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
- package/es/components/virtual-keyboard/Number/types.d.ts +25 -0
- package/es/components/virtual-keyboard/index.d.ts +25 -0
- package/es/components/walletCard/Guide/index.js +12 -1
- package/es/utils/index.d.ts +1 -1
- package/lib/components/batch-editor/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +17 -17
- package/lib/components/date-picker/index.d.ts +0 -1
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
- package/lib/components/iconfont/index.d.ts +8 -0
- package/lib/components/page/index.d.ts +0 -1
- package/lib/components/pisellAdjustPrice/index.d.ts +4 -0
- package/lib/components/pisellAdjustPrice/status.d.ts +32 -0
- package/lib/components/pisellAdjustPrice/type.d.ts +20 -0
- package/lib/components/pisellInput/index.d.ts +0 -1
- package/lib/components/pisellModal/components/IpadModal/index.d.ts +0 -1
- package/lib/components/pisellModal/components/MobileModal/index.d.ts +0 -1
- package/lib/components/pisellModal/components/index.d.ts +0 -1
- package/lib/components/pisellToast/index.d.ts +16 -0
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
- package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +27 -0
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +12 -0
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +45 -0
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
- package/lib/components/productCard/cartSkuCard/index.d.ts +10 -0
- package/lib/components/productCard/cartSkuCard/locales.d.ts +96 -0
- package/lib/components/productCard/components/Action/index.d.ts +3 -0
- package/lib/components/productCard/components/Header/index.d.ts +3 -0
- package/lib/components/productCard/components/Sales/index.d.ts +3 -0
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
- package/lib/components/productCard/components/Warning/index.d.ts +7 -0
- package/lib/components/productCard/locales.d.ts +84 -0
- package/lib/components/productCard/status.d.ts +32 -0
- package/lib/components/productCard/types.d.ts +84 -0
- package/lib/components/productCard/utils.d.ts +31 -0
- package/lib/components/select-time/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
- package/lib/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
- package/lib/components/table/Actions/component/Group/index.d.ts +0 -1
- package/lib/components/table/Actions/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
- package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/lib/components/table/Table/SelectField/index.d.ts +0 -1
- package/lib/components/table/Table/fields/date/index.d.ts +0 -1
- package/lib/components/table/Table/fields/image/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/image/index.d.ts +0 -1
- package/lib/components/table/Table/fields/index.d.ts +2 -3
- package/lib/components/table/Table/fields/link/index.d.ts +0 -1
- package/lib/components/table/Table/fields/number/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/number/index.d.ts +0 -1
- package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/numberRange/index.d.ts +0 -1
- package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
- package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +0 -1
- package/lib/components/table/Table/fields/rangePicker/index.d.ts +0 -1
- package/lib/components/table/Table/fields/search/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/search/index.d.ts +0 -1
- package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/text/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/text/index.d.ts +0 -1
- package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/lib/components/table/View/index.d.ts +0 -1
- package/lib/components/versionSelect/index.d.ts +0 -1
- package/lib/components/virtual-keyboard/Amount/index.d.ts +5 -0
- package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
- package/lib/components/virtual-keyboard/Amount/types.d.ts +44 -0
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +21 -0
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
- package/lib/components/virtual-keyboard/Number/index.d.ts +5 -0
- package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
- package/lib/components/virtual-keyboard/Number/types.d.ts +25 -0
- package/lib/components/virtual-keyboard/index.d.ts +25 -0
- package/lib/components/walletCard/Guide/index.js +11 -1
- package/lib/utils/index.d.ts +1 -1
- package/package.json +1 -1
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -39
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -99
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -80
- package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -16
- package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -16
- package/es/components/pisellCardList/index.d.ts +0 -73
- package/es/components/pisellCheckboxGroup/index.d.ts +0 -37
- package/es/components/walletCard/Guide/index.d.ts +0 -3
- package/es/index.d.ts +0 -142
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -39
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -99
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -80
- package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -16
- package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -16
- package/lib/components/pisellCardList/index.d.ts +0 -73
- package/lib/components/pisellCheckboxGroup/index.d.ts +0 -37
- package/lib/components/walletCard/Guide/index.d.ts +0 -3
- package/lib/index.d.ts +0 -142
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface NumberProps {
|
|
2
|
+
max?: number;
|
|
3
|
+
min?: number;
|
|
4
|
+
doneText?: string;
|
|
5
|
+
resetText: string;
|
|
6
|
+
defaultValue?: string | number;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
value?: string | number;
|
|
9
|
+
onChange?: (val: string | number) => void;
|
|
10
|
+
onEnter?: (val: string | number) => void;
|
|
11
|
+
selectType?: 'light' | 'dark';
|
|
12
|
+
backgroundColor?: string;
|
|
13
|
+
containerBackgroundColor?: string;
|
|
14
|
+
buttonBackgroundColor?: string;
|
|
15
|
+
textColor?: string;
|
|
16
|
+
resetButtonBackgroundColor?: string;
|
|
17
|
+
resetButtonTextColor?: string;
|
|
18
|
+
isDoneButtonFollowTheme?: boolean;
|
|
19
|
+
doneButtonBackgroundColor?: string;
|
|
20
|
+
doneButtonTextColor?: string;
|
|
21
|
+
keyboardBackgroundColor?: string;
|
|
22
|
+
keyboardButtonBackgroundColor?: string;
|
|
23
|
+
keyboardButtonTextColor?: string;
|
|
24
|
+
keyboardButtonHoverColor?: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { KeyboardProps } from "./Keyboard";
|
|
3
|
+
import { VirtualKeyInputProps } from "./VirtualKeyInput";
|
|
4
|
+
import "./index.less";
|
|
5
|
+
interface VirtualKeyboardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
keyboardProps?: KeyboardProps;
|
|
7
|
+
virtualKeyInputProps?: VirtualKeyInputProps;
|
|
8
|
+
rightPanel?: React.ReactNode;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
onChange?: (value?: any) => void;
|
|
11
|
+
value?: string;
|
|
12
|
+
selectType?: 'light' | 'dark';
|
|
13
|
+
backgroundColor?: string;
|
|
14
|
+
containerBackgroundColor?: string;
|
|
15
|
+
buttonBackgroundColor?: string;
|
|
16
|
+
textColor?: string;
|
|
17
|
+
keyboardBackgroundColor?: string;
|
|
18
|
+
keyboardButtonBackgroundColor?: string;
|
|
19
|
+
keyboardButtonTextColor?: string;
|
|
20
|
+
keyboardButtonHoverColor?: string;
|
|
21
|
+
primaryButtonBackgroundColor?: string;
|
|
22
|
+
primaryButtonTextColor?: string;
|
|
23
|
+
}
|
|
24
|
+
declare const VirtualKeyboard: (props: VirtualKeyboardProps) => JSX.Element;
|
|
25
|
+
export default VirtualKeyboard;
|
|
@@ -51,9 +51,19 @@ var Guide = (props) => {
|
|
|
51
51
|
return (setting == null ? void 0 : setting.walletGuideConfig) || {};
|
|
52
52
|
}, [setting == null ? void 0 : setting.walletGuideConfig]);
|
|
53
53
|
const handleClick = (e) => {
|
|
54
|
-
var _a2;
|
|
54
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2;
|
|
55
55
|
e.stopPropagation();
|
|
56
56
|
if (!((_a2 = _setting == null ? void 0 : _setting.skipLink) == null ? void 0 : _a2.page)) return;
|
|
57
|
+
if ((_d2 = (_c2 = (_b2 = utils == null ? void 0 : utils.interaction) == null ? void 0 : _b2.utils) == null ? void 0 : _c2.isAppEnv) == null ? void 0 : _d2.call(_c2)) {
|
|
58
|
+
(_g2 = (_e2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _e2.postMessageToApp) == null ? void 0 : _g2.call(_e2, {
|
|
59
|
+
module: "global",
|
|
60
|
+
key: "openNative",
|
|
61
|
+
data: {
|
|
62
|
+
link: (_f2 = _setting == null ? void 0 : _setting.skipLink) == null ? void 0 : _f2.page
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
57
67
|
utils == null ? void 0 : utils.jumpPageByLink(_setting == null ? void 0 : _setting.skipLink);
|
|
58
68
|
};
|
|
59
69
|
return /* @__PURE__ */ import_react.default.createElement(
|
package/lib/utils/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FormInstance } from 'antd';
|
|
3
|
-
import { ModeType } from './type';
|
|
4
|
-
import './style.less';
|
|
5
|
-
export interface WithModeProps {
|
|
6
|
-
renderMode?: ModeType;
|
|
7
|
-
value?: any;
|
|
8
|
-
onChange?: (value: any) => void;
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* @title: 增加renderMode属性
|
|
13
|
-
* @description: 基于renderMode属性控制渲染模式
|
|
14
|
-
* @return: *
|
|
15
|
-
* @Author: shengjie.zuo
|
|
16
|
-
* @Date: 2024-11-23 17:13:18
|
|
17
|
-
*/
|
|
18
|
-
export declare const withMode: <P extends object>(FieldComponent: React.ComponentType<P>, ReadPrettyComponent?: React.ComponentType<P & {
|
|
19
|
-
renderMode: ModeType;
|
|
20
|
-
}> | undefined, transformProps?: ((props: P, renderMode: ModeType) => P) | undefined) => React.FC<P & WithModeProps>;
|
|
21
|
-
export interface WithFormItemProps {
|
|
22
|
-
name: string;
|
|
23
|
-
label?: string;
|
|
24
|
-
mode?: ModeType;
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
}
|
|
27
|
-
export declare const formItemNameReplace: (name: string) => string;
|
|
28
|
-
export declare const formItemNameReverse: (name: string) => string;
|
|
29
|
-
export declare const isValidDomain: (value: string) => boolean;
|
|
30
|
-
/**
|
|
31
|
-
* @title: 追加formItem层
|
|
32
|
-
* @description:
|
|
33
|
-
* @return: *
|
|
34
|
-
* @Author: shengjie.zuo
|
|
35
|
-
* @Date: 2024-11-23 17:14:25
|
|
36
|
-
*/
|
|
37
|
-
export declare const withFormItem: <P extends object>(WrappedComponent: React.ComponentType<P>, overlayProps?: {
|
|
38
|
-
otherFormItemProps?: Record<string, any> | ((props: Record<string, any>, others?: Record<string, any>) => Record<string, any>) | undefined;
|
|
39
|
-
innerProps?: Record<string, any> | undefined;
|
|
40
|
-
} | undefined) => React.FC<P & WithFormItemProps>;
|
|
41
|
-
export declare const withDataSource: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
|
|
42
|
-
dataSource?: any;
|
|
43
|
-
}) => JSX.Element;
|
|
44
|
-
export declare const withOptions: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
|
|
45
|
-
options?: any;
|
|
46
|
-
optionSourceType?: "custom" | "api" | "default" | undefined;
|
|
47
|
-
labelField: string;
|
|
48
|
-
valueField: string;
|
|
49
|
-
extraParams?: Record<string, any> | undefined;
|
|
50
|
-
}) => JSX.Element;
|
|
51
|
-
export declare const getNestedValue: (obj: Record<string, any>, path: string) => Record<string, any>;
|
|
52
|
-
export declare const renderValueWithMap: (value: any, valueMap?: Record<string, string>, renderMode?: ModeType) => JSX.Element | null;
|
|
53
|
-
export declare function toArr(str: string | number | (string | number)[]): (string | number)[];
|
|
54
|
-
export declare const filterSystemFields: (params: Record<string, any>) => Record<string, any>;
|
|
55
|
-
export declare const transformFormObjToArrayWithUntouched: (obj: Record<string, any>) => any[];
|
|
56
|
-
export declare const setFormFieldsUntouched: (form: FormInstance) => void;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Drawer } from 'antd';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { OperationItem } from '../type';
|
|
4
|
-
declare const useDrawerState: (operationContent?: {
|
|
5
|
-
[key: string]: React.ReactNode;
|
|
6
|
-
} | undefined) => {
|
|
7
|
-
drawerVisible: boolean;
|
|
8
|
-
setDrawerVisible: React.Dispatch<React.SetStateAction<boolean>>;
|
|
9
|
-
openDrawer: (item: OperationItem) => void;
|
|
10
|
-
closeDrawer: () => void;
|
|
11
|
-
drawerContent: 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,99 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DataSourceTableProps } from '../type';
|
|
3
|
-
import { OperationItem } from '../type';
|
|
4
|
-
interface UseTablePropsProps {
|
|
5
|
-
data: any;
|
|
6
|
-
originProps: DataSourceTableProps;
|
|
7
|
-
openDrawer: (type: OperationItem) => void;
|
|
8
|
-
closeDrawer: () => void;
|
|
9
|
-
refreshData: () => void;
|
|
10
|
-
handleFilterChange: (changedFields: any, allFields: any) => void;
|
|
11
|
-
tableRef: any;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* 处理table的props
|
|
15
|
-
* 转换title
|
|
16
|
-
* @param props
|
|
17
|
-
* @returns
|
|
18
|
-
*/
|
|
19
|
-
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
20
|
-
title: string | number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
|
|
21
|
-
pagination: {
|
|
22
|
-
total: number;
|
|
23
|
-
current: number;
|
|
24
|
-
pageSize: number;
|
|
25
|
-
size: string;
|
|
26
|
-
showSizeChanger: boolean;
|
|
27
|
-
};
|
|
28
|
-
columns: import("./useColumns").Column[];
|
|
29
|
-
subTitle: string | number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
|
|
30
|
-
buttons: any[] | null;
|
|
31
|
-
filter: JSX.Element | null;
|
|
32
|
-
onRow: (record: any) => any;
|
|
33
|
-
actionButtons: any[] | null;
|
|
34
|
-
titleButtons?: {
|
|
35
|
-
show: boolean;
|
|
36
|
-
maxCount: number;
|
|
37
|
-
items: OperationItem[];
|
|
38
|
-
} | undefined;
|
|
39
|
-
tableButtons?: {
|
|
40
|
-
show: boolean;
|
|
41
|
-
maxCount: number;
|
|
42
|
-
items: OperationItem[];
|
|
43
|
-
} | undefined;
|
|
44
|
-
operation?: {
|
|
45
|
-
/**
|
|
46
|
-
* 处理table的props
|
|
47
|
-
* 转换title
|
|
48
|
-
* @param props
|
|
49
|
-
* @returns
|
|
50
|
-
*/
|
|
51
|
-
show: boolean;
|
|
52
|
-
title: string;
|
|
53
|
-
width: number;
|
|
54
|
-
align: "center" | "left" | "right";
|
|
55
|
-
fixed: false | "left" | "right";
|
|
56
|
-
type: "link" | "button";
|
|
57
|
-
items: OperationItem[];
|
|
58
|
-
} | undefined;
|
|
59
|
-
operationContent?: {
|
|
60
|
-
[key: string]: React.ReactNode;
|
|
61
|
-
} | undefined;
|
|
62
|
-
dataSource: import("../../provider/dataSource/DataSourceContext").DataSourceType;
|
|
63
|
-
search?: {
|
|
64
|
-
show: boolean;
|
|
65
|
-
placeholder: string;
|
|
66
|
-
} | undefined;
|
|
67
|
-
__designMode: string;
|
|
68
|
-
componentId: string;
|
|
69
|
-
clickToDetail?: {
|
|
70
|
-
show: boolean;
|
|
71
|
-
useCustomAction: boolean;
|
|
72
|
-
actionType: string;
|
|
73
|
-
openMode: "modal" | "drawer";
|
|
74
|
-
openContentSize: "small" | "middle" | "large";
|
|
75
|
-
openTitle: string;
|
|
76
|
-
key: string;
|
|
77
|
-
} | undefined;
|
|
78
|
-
filterBy?: Record<string, any> | undefined;
|
|
79
|
-
sortBy: string;
|
|
80
|
-
tabs?: {
|
|
81
|
-
show: boolean;
|
|
82
|
-
type: string;
|
|
83
|
-
items: {
|
|
84
|
-
name: string;
|
|
85
|
-
filterBy: Record<string, any>;
|
|
86
|
-
sortBy: string;
|
|
87
|
-
}[];
|
|
88
|
-
} | undefined;
|
|
89
|
-
onValuesChange?: ((changedValues: any, values: any) => void) | undefined;
|
|
90
|
-
onDeleteFinish?: ((record: Record<string, any>) => void) | undefined;
|
|
91
|
-
extraParams?: {
|
|
92
|
-
list?: Record<string, any> | undefined;
|
|
93
|
-
get?: Record<string, any> | undefined;
|
|
94
|
-
update?: Record<string, any> | undefined;
|
|
95
|
-
create?: Record<string, any> | undefined;
|
|
96
|
-
destroy?: Record<string, any> | undefined;
|
|
97
|
-
} | undefined;
|
|
98
|
-
};
|
|
99
|
-
export default useTableProps;
|
|
@@ -1,80 +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
|
-
afterClose?: () => void;
|
|
14
|
-
};
|
|
15
|
-
export interface DataSourceTableProps {
|
|
16
|
-
title?: string | React.ReactNode | (() => React.ReactNode);
|
|
17
|
-
subTitle?: string | React.ReactNode | (() => React.ReactNode);
|
|
18
|
-
titleButtons?: {
|
|
19
|
-
show: boolean;
|
|
20
|
-
maxCount: number;
|
|
21
|
-
items: OperationItem[];
|
|
22
|
-
};
|
|
23
|
-
tableButtons?: {
|
|
24
|
-
show: boolean;
|
|
25
|
-
maxCount: number;
|
|
26
|
-
items: OperationItem[];
|
|
27
|
-
};
|
|
28
|
-
buttons?: any[];
|
|
29
|
-
operation?: {
|
|
30
|
-
show: boolean;
|
|
31
|
-
title: string;
|
|
32
|
-
width: number;
|
|
33
|
-
align: 'left' | 'center' | 'right';
|
|
34
|
-
fixed: 'left' | 'right' | false;
|
|
35
|
-
type: 'link' | 'button';
|
|
36
|
-
items: OperationItem[];
|
|
37
|
-
};
|
|
38
|
-
operationContent?: {
|
|
39
|
-
[key: string]: React.ReactNode;
|
|
40
|
-
};
|
|
41
|
-
dataSource: DataSourceType;
|
|
42
|
-
columns: ColumnType<any>[];
|
|
43
|
-
filter: any;
|
|
44
|
-
search?: {
|
|
45
|
-
show: boolean;
|
|
46
|
-
placeholder: string;
|
|
47
|
-
};
|
|
48
|
-
__designMode: string;
|
|
49
|
-
componentId: string;
|
|
50
|
-
clickToDetail?: {
|
|
51
|
-
show: boolean;
|
|
52
|
-
useCustomAction: boolean;
|
|
53
|
-
actionType: string;
|
|
54
|
-
openMode: 'modal' | 'drawer';
|
|
55
|
-
openContentSize: 'small' | 'middle' | 'large';
|
|
56
|
-
openTitle: string;
|
|
57
|
-
key: string;
|
|
58
|
-
};
|
|
59
|
-
onRow?: any;
|
|
60
|
-
filterBy?: Record<string, any>;
|
|
61
|
-
sortBy: string;
|
|
62
|
-
tabs?: {
|
|
63
|
-
show: boolean;
|
|
64
|
-
type: string;
|
|
65
|
-
items: {
|
|
66
|
-
name: string;
|
|
67
|
-
filterBy: Record<string, any>;
|
|
68
|
-
sortBy: string;
|
|
69
|
-
}[];
|
|
70
|
-
};
|
|
71
|
-
onValuesChange?: (changedValues: any, values: any) => void;
|
|
72
|
-
onDeleteFinish?: (record: Record<string, any>) => void;
|
|
73
|
-
extraParams?: {
|
|
74
|
-
list?: Record<string, any>;
|
|
75
|
-
get?: Record<string, any>;
|
|
76
|
-
update?: Record<string, any>;
|
|
77
|
-
create?: Record<string, any>;
|
|
78
|
-
destroy?: Record<string, any>;
|
|
79
|
-
};
|
|
80
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { InputProps } from 'antd';
|
|
3
|
-
import { ModeType } from "../../dataSourceForm/type";
|
|
4
|
-
declare type PhoneValue = string | {
|
|
5
|
-
phone: string;
|
|
6
|
-
countryCallingCode: string;
|
|
7
|
-
};
|
|
8
|
-
export interface PhoneInputProps extends Omit<InputProps, 'value' | 'onChange'> {
|
|
9
|
-
renderMode: ModeType;
|
|
10
|
-
value?: PhoneValue;
|
|
11
|
-
onChange?: (value: PhoneValue) => void;
|
|
12
|
-
returnFormat?: 'string' | 'object';
|
|
13
|
-
inputRef?: any;
|
|
14
|
-
}
|
|
15
|
-
declare const MobileNumberInputWithMode: React.FC<PhoneInputProps & import("../../dataSourceForm/utils").WithModeProps>;
|
|
16
|
-
export default MobileNumberInputWithMode;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { InputProps } from 'antd';
|
|
3
|
-
import { ModeType } from "../../dataSourceForm/type";
|
|
4
|
-
declare type PhoneValue = string | {
|
|
5
|
-
phone: string;
|
|
6
|
-
countryCallingCode: string;
|
|
7
|
-
};
|
|
8
|
-
export interface PhoneInputProps extends Omit<InputProps, 'value' | 'onChange'> {
|
|
9
|
-
renderMode: ModeType;
|
|
10
|
-
value?: PhoneValue;
|
|
11
|
-
onChange?: (value: PhoneValue) => void;
|
|
12
|
-
returnFormat?: 'string' | 'object';
|
|
13
|
-
inputRef?: any;
|
|
14
|
-
}
|
|
15
|
-
declare const PhoneNumberInputWithMode: React.FC<PhoneInputProps & import("../../dataSourceForm/utils").WithModeProps>;
|
|
16
|
-
export default PhoneNumberInputWithMode;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PisellCheckboxGroupProps } from '../pisellCheckboxGroup';
|
|
3
|
-
import { PisellContextType } from '../pisell-config-provider/context';
|
|
4
|
-
import { PisellWalletPassCardProps } from '../pisellWalletPassCard';
|
|
5
|
-
import './index.less';
|
|
6
|
-
export interface PisellCardListProps extends Omit<PisellCheckboxGroupProps, 'options'> {
|
|
7
|
-
platform?: PisellContextType['platform'];
|
|
8
|
-
/** 当用户查看完所有记录时,底部会显示此消息 */
|
|
9
|
-
endMessage?: React.ReactNode;
|
|
10
|
-
/** 加载下次数据时的加载站位 */
|
|
11
|
-
loader?: React.ReactNode;
|
|
12
|
-
/** 是否有更多数据 */
|
|
13
|
-
hasMore: boolean;
|
|
14
|
-
/** 加载更多数据回调 */
|
|
15
|
-
loadMoreData?: () => Promise<void>;
|
|
16
|
-
/** 当前list数据 */
|
|
17
|
-
data: PisellWalletPassCardProps[];
|
|
18
|
-
/** list空数据时展示内容 */
|
|
19
|
-
empty?: React.ReactNode;
|
|
20
|
-
/** 是否展示空状态 */
|
|
21
|
-
showEmpty?: boolean;
|
|
22
|
-
/** 是否展示卡片名称 */
|
|
23
|
-
showName?: boolean;
|
|
24
|
-
/** 是否展示店铺名称 */
|
|
25
|
-
showStoreName?: boolean;
|
|
26
|
-
/** 是否展示核销金额 */
|
|
27
|
-
showRedeem?: boolean;
|
|
28
|
-
/** 是否展示余额 */
|
|
29
|
-
showBalance?: boolean;
|
|
30
|
-
/** 是否展示编码 */
|
|
31
|
-
showCode?: boolean;
|
|
32
|
-
/** 是否展示到期时间 */
|
|
33
|
-
showValidDate?: boolean;
|
|
34
|
-
/** 是否展示详情按钮 */
|
|
35
|
-
showDetail?: boolean;
|
|
36
|
-
/** 是否展示二维码 */
|
|
37
|
-
showQrCode?: boolean;
|
|
38
|
-
/** 是否展示封面图 */
|
|
39
|
-
showCover?: boolean;
|
|
40
|
-
/** 是否余额货币单位 */
|
|
41
|
-
showBalanceSymbol?: boolean;
|
|
42
|
-
/** 卡片大小 */
|
|
43
|
-
type?: 'default' | 'mini';
|
|
44
|
-
/** 展示操作按钮 */
|
|
45
|
-
showActions?: boolean;
|
|
46
|
-
/** 操作按钮配置 */
|
|
47
|
-
actions?: {
|
|
48
|
-
/** 按钮展示方式 */
|
|
49
|
-
layout: 'expanded' | 'collapsed';
|
|
50
|
-
/** detail 按钮配置 */
|
|
51
|
-
detail?: {
|
|
52
|
-
visible: boolean;
|
|
53
|
-
iconColor: string;
|
|
54
|
-
};
|
|
55
|
-
/** edit按钮配置 */
|
|
56
|
-
edit?: {
|
|
57
|
-
visible: boolean;
|
|
58
|
-
iconColor: string;
|
|
59
|
-
dialogTitle: string;
|
|
60
|
-
enableDialog: boolean;
|
|
61
|
-
fields: {
|
|
62
|
-
name: string;
|
|
63
|
-
label: string;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
/** 编辑编辑按钮后,弹窗展示之前 */
|
|
68
|
-
beforeEdit?: (value: any, index: number) => Promise<any> | boolean | void;
|
|
69
|
-
/** 编辑弹窗点击提交 */
|
|
70
|
-
onConfirmEdit?: (value: any, index: number) => void;
|
|
71
|
-
}
|
|
72
|
-
declare const _default: React.NamedExoticComponent<PisellCardListProps>;
|
|
73
|
-
export default _default;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PisellContextType } from '../pisell-config-provider/context';
|
|
3
|
-
import './index.less';
|
|
4
|
-
export interface PisellCheckboxGroupOption {
|
|
5
|
-
label: string;
|
|
6
|
-
value: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
}
|
|
10
|
-
declare type PisellCheckboxGroupValue = string | string[] | any;
|
|
11
|
-
export interface PisellCheckboxGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
12
|
-
platform?: PisellContextType['platform'];
|
|
13
|
-
direction?: 'horizontal' | 'vertical';
|
|
14
|
-
fullWidth?: boolean;
|
|
15
|
-
gap?: number;
|
|
16
|
-
padding?: number;
|
|
17
|
-
options: PisellCheckboxGroupOption[];
|
|
18
|
-
onChange?: (value: PisellCheckboxGroupValue, item: PisellCheckboxGroupOption) => void;
|
|
19
|
-
value?: PisellCheckboxGroupValue;
|
|
20
|
-
renderOption?: (option: PisellCheckboxGroupOption, active: boolean, index: number) => React.ReactNode;
|
|
21
|
-
rowKey?: string;
|
|
22
|
-
mode?: 'multiple' | 'single';
|
|
23
|
-
iconPosition?: 'left' | 'right' | 'hide';
|
|
24
|
-
optionClassName?: string;
|
|
25
|
-
optionActiveClassName?: string;
|
|
26
|
-
onChangeDebounce?: boolean;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* @title: PisellCheckboxGroup
|
|
30
|
-
* @description: 选中组件
|
|
31
|
-
* @param {PisellCheckboxGroupProps} props
|
|
32
|
-
* @return {*}
|
|
33
|
-
* @Author: zhiwei.Wang
|
|
34
|
-
* @Date: 2024-08-16 10:34
|
|
35
|
-
*/
|
|
36
|
-
declare const PisellCheckboxGroup: (props: PisellCheckboxGroupProps) => JSX.Element;
|
|
37
|
-
export default PisellCheckboxGroup;
|