@pisell/materials 1.0.883 → 1.0.885
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/appVersionControl/index.d.ts +5 -0
- package/es/components/appVersionControl/index.d.ts.map +1 -0
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts.map +1 -0
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.js +6 -3
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +57 -0
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts.map +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +39 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts.map +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +98 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts.map +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +79 -0
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts.map +1 -0
- package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +11 -0
- package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts.map +1 -0
- package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +11 -0
- package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts.map +1 -0
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +25 -0
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts.map +1 -0
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +19 -0
- package/es/components/drag-sort-tree/TreeItem/index.d.ts.map +1 -0
- package/es/components/drag-sort-tree/index.d.ts +5 -0
- package/es/components/drag-sort-tree/index.d.ts.map +1 -0
- package/es/components/iconfont/index.d.ts +9 -0
- package/es/components/iconfont/index.d.ts.map +1 -0
- package/es/components/login-and-register/index.d.ts +83 -0
- package/es/components/login-and-register/index.d.ts.map +1 -0
- package/es/components/pisell-config-provider/index.d.ts +13 -0
- package/es/components/pisell-config-provider/index.d.ts.map +1 -0
- package/es/components/pisellAdjustPrice/index.d.ts +10 -0
- package/es/components/pisellAdjustPrice/index.d.ts.map +1 -0
- package/es/components/pisellEmpty/index.d.ts +20 -0
- package/es/components/pisellEmpty/index.d.ts.map +1 -0
- package/es/components/pisellGoodPassCard/index.d.ts +50 -0
- package/es/components/pisellGoodPassCard/index.d.ts.map +1 -0
- package/es/components/pisellToast/index.d.ts +17 -0
- package/es/components/pisellToast/index.d.ts.map +1 -0
- package/es/components/productCard/components/Action/index.d.ts +4 -0
- package/es/components/productCard/components/Action/index.d.ts.map +1 -0
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts.map +1 -0
- package/es/components/productCard/components/Header/index.d.ts +4 -0
- package/es/components/productCard/components/Header/index.d.ts.map +1 -0
- package/es/components/productCard/components/Sales/index.d.ts +4 -0
- package/es/components/productCard/components/Sales/index.d.ts.map +1 -0
- package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +4 -0
- package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts.map +1 -0
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +14 -0
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts.map +1 -0
- package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +19 -0
- package/es/components/productCard/components/Time/components/SelectResource/index.d.ts.map +1 -0
- package/es/components/productCard/components/Time/index.d.ts +4 -0
- package/es/components/productCard/components/Time/index.d.ts.map +1 -0
- package/es/components/productCard/index.d.ts +6 -0
- package/es/components/productCard/index.d.ts.map +1 -0
- package/es/components/productCard/locales.d.ts +85 -0
- package/es/components/productCard/locales.d.ts.map +1 -0
- package/es/components/table/Actions/component/ExportImport/index.d.ts +8 -0
- package/es/components/table/Actions/component/ExportImport/index.d.ts.map +1 -0
- package/es/components/table/Gallery/components/GalleryItem/index.d.ts +15 -0
- package/es/components/table/Gallery/components/GalleryItem/index.d.ts.map +1 -0
- package/es/components/table/Gallery/index.d.ts +6 -0
- package/es/components/table/Gallery/index.d.ts.map +1 -0
- package/es/components/table/Table/index.d.ts +5 -0
- package/es/components/table/Table/index.d.ts.map +1 -0
- package/es/components/table/Table/utils.d.ts +162 -0
- package/es/components/table/Table/utils.d.ts.map +1 -0
- package/es/components/table/hooks/useTableSetting.d.ts +23 -0
- package/es/components/table/hooks/useTableSetting.d.ts.map +1 -0
- package/es/components/table/hooks/useTransDataSource.d.ts +12 -0
- package/es/components/table/hooks/useTransDataSource.d.ts.map +1 -0
- package/es/components/table/types.d.ts +252 -0
- package/es/components/table/types.d.ts.map +1 -0
- package/es/components/translation/index.d.ts +15 -0
- package/es/components/translation/index.d.ts.map +1 -0
- package/es/components/versionModal/index.d.ts +24 -0
- package/es/components/versionModal/index.d.ts.map +1 -0
- package/es/components/virtual-keyboard/Amount/index.d.ts +23 -0
- package/es/components/virtual-keyboard/Amount/index.d.ts.map +1 -0
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +20 -0
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts.map +1 -0
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +22 -0
- package/es/components/virtual-keyboard/Keyboard/index.d.ts.map +1 -0
- package/es/components/virtual-keyboard/Number/index.d.ts +14 -0
- package/es/components/virtual-keyboard/Number/index.d.ts.map +1 -0
- package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +12 -0
- package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts.map +1 -0
- package/es/components/virtual-keyboard/index.d.ts +15 -0
- package/es/components/virtual-keyboard/index.d.ts.map +1 -0
- package/es/components/walletCard/index.d.ts +68 -0
- package/es/components/walletCard/index.d.ts.map +1 -0
- package/es/index.d.ts +142 -0
- package/es/index.d.ts.map +1 -0
- package/es/locales/en-US.d.ts +279 -0
- package/es/locales/en-US.d.ts.map +1 -0
- package/es/locales/zh-CN.d.ts +274 -0
- package/es/locales/zh-CN.d.ts.map +1 -0
- package/es/locales/zh-TW.d.ts +274 -0
- package/es/locales/zh-TW.d.ts.map +1 -0
- package/lib/components/appVersionControl/index.d.ts +5 -0
- package/lib/components/appVersionControl/index.d.ts.map +1 -0
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts.map +1 -0
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.js +5 -2
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +57 -0
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts.map +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +39 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts.map +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +98 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts.map +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +79 -0
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts.map +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +11 -0
- package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts.map +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +11 -0
- package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts.map +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +25 -0
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts.map +1 -0
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +19 -0
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts.map +1 -0
- package/lib/components/drag-sort-tree/index.d.ts +5 -0
- package/lib/components/drag-sort-tree/index.d.ts.map +1 -0
- package/lib/components/iconfont/index.d.ts +9 -0
- package/lib/components/iconfont/index.d.ts.map +1 -0
- package/lib/components/login-and-register/index.d.ts +83 -0
- package/lib/components/login-and-register/index.d.ts.map +1 -0
- package/lib/components/pisell-config-provider/index.d.ts +13 -0
- package/lib/components/pisell-config-provider/index.d.ts.map +1 -0
- package/lib/components/pisellAdjustPrice/index.d.ts +10 -0
- package/lib/components/pisellAdjustPrice/index.d.ts.map +1 -0
- package/lib/components/pisellEmpty/index.d.ts +20 -0
- package/lib/components/pisellEmpty/index.d.ts.map +1 -0
- package/lib/components/pisellGoodPassCard/index.d.ts +50 -0
- package/lib/components/pisellGoodPassCard/index.d.ts.map +1 -0
- package/lib/components/pisellToast/index.d.ts +17 -0
- package/lib/components/pisellToast/index.d.ts.map +1 -0
- package/lib/components/productCard/components/Action/index.d.ts +4 -0
- package/lib/components/productCard/components/Action/index.d.ts.map +1 -0
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts.map +1 -0
- package/lib/components/productCard/components/Header/index.d.ts +4 -0
- package/lib/components/productCard/components/Header/index.d.ts.map +1 -0
- package/lib/components/productCard/components/Sales/index.d.ts +4 -0
- package/lib/components/productCard/components/Sales/index.d.ts.map +1 -0
- package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +4 -0
- package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts.map +1 -0
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +14 -0
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts.map +1 -0
- package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +19 -0
- package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts.map +1 -0
- package/lib/components/productCard/components/Time/index.d.ts +4 -0
- package/lib/components/productCard/components/Time/index.d.ts.map +1 -0
- package/lib/components/productCard/index.d.ts +6 -0
- package/lib/components/productCard/index.d.ts.map +1 -0
- package/lib/components/productCard/locales.d.ts +85 -0
- package/lib/components/productCard/locales.d.ts.map +1 -0
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +8 -0
- package/lib/components/table/Actions/component/ExportImport/index.d.ts.map +1 -0
- package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +15 -0
- package/lib/components/table/Gallery/components/GalleryItem/index.d.ts.map +1 -0
- package/lib/components/table/Gallery/index.d.ts +6 -0
- package/lib/components/table/Gallery/index.d.ts.map +1 -0
- package/lib/components/table/Table/index.d.ts +5 -0
- package/lib/components/table/Table/index.d.ts.map +1 -0
- package/lib/components/table/Table/utils.d.ts +162 -0
- package/lib/components/table/Table/utils.d.ts.map +1 -0
- package/lib/components/table/hooks/useTableSetting.d.ts +23 -0
- package/lib/components/table/hooks/useTableSetting.d.ts.map +1 -0
- package/lib/components/table/hooks/useTransDataSource.d.ts +12 -0
- package/lib/components/table/hooks/useTransDataSource.d.ts.map +1 -0
- package/lib/components/table/types.d.ts +252 -0
- package/lib/components/table/types.d.ts.map +1 -0
- package/lib/components/translation/index.d.ts +15 -0
- package/lib/components/translation/index.d.ts.map +1 -0
- package/lib/components/versionModal/index.d.ts +24 -0
- package/lib/components/versionModal/index.d.ts.map +1 -0
- package/lib/components/virtual-keyboard/Amount/index.d.ts +23 -0
- package/lib/components/virtual-keyboard/Amount/index.d.ts.map +1 -0
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +20 -0
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts.map +1 -0
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +22 -0
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts.map +1 -0
- package/lib/components/virtual-keyboard/Number/index.d.ts +14 -0
- package/lib/components/virtual-keyboard/Number/index.d.ts.map +1 -0
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +12 -0
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts.map +1 -0
- package/lib/components/virtual-keyboard/index.d.ts +15 -0
- package/lib/components/virtual-keyboard/index.d.ts.map +1 -0
- package/lib/components/walletCard/index.d.ts +68 -0
- package/lib/components/walletCard/index.d.ts.map +1 -0
- package/lib/index.d.ts +142 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/locales/en-US.d.ts +279 -0
- package/lib/locales/en-US.d.ts.map +1 -0
- package/lib/locales/zh-CN.d.ts +274 -0
- package/lib/locales/zh-CN.d.ts.map +1 -0
- package/lib/locales/zh-TW.d.ts +274 -0
- package/lib/locales/zh-TW.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEjD,OAAO,cAAc,CAAC;AAEtB,QAAA,MAAM,iBAAiB,UAAW,sBAAsB,gBA+IvD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseForm.d.ts","sourceRoot":"","sources":["BaseForm.tsx"],"names":[],"mappings":"AAqBA,OAAO,cAAc,CAAC;;AAyJtB,wBAA+B"}
|
|
@@ -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
|
}, []);
|
|
@@ -0,0 +1,57 @@
|
|
|
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" | "default" | "api" | 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;
|
|
57
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAOlD,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAIpC,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAQlC,OAAO,cAAc,CAAC;AAEtB,MAAM,WAAW,aAAa;IAC5B,UAAU,CAAC,EAAE,QAAQ,CAAC;IACtB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAChC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,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AAU,YAAY,SAUxD,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Drawer } from 'antd';
|
|
2
|
+
import { OperationItem } from '../type';
|
|
3
|
+
declare const useDrawerState: (operationContent?: {
|
|
4
|
+
[key: string]: import("react").ReactNode;
|
|
5
|
+
} | undefined) => {
|
|
6
|
+
drawerVisible: boolean;
|
|
7
|
+
setDrawerVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
8
|
+
openDrawer: (item: OperationItem) => void;
|
|
9
|
+
closeDrawer: () => void;
|
|
10
|
+
drawerContent: import("react").ReactNode;
|
|
11
|
+
Container: {
|
|
12
|
+
(props: import("../../../pisellModal").PisellModalProps): JSX.Element;
|
|
13
|
+
confirm: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
14
|
+
destroy: () => void;
|
|
15
|
+
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
16
|
+
};
|
|
17
|
+
info: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
18
|
+
destroy: () => void;
|
|
19
|
+
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
20
|
+
};
|
|
21
|
+
error: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
22
|
+
destroy: () => void;
|
|
23
|
+
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
24
|
+
};
|
|
25
|
+
warn: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => any;
|
|
26
|
+
warning: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
27
|
+
destroy: () => void;
|
|
28
|
+
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
29
|
+
};
|
|
30
|
+
success: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
31
|
+
destroy: () => void;
|
|
32
|
+
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
33
|
+
};
|
|
34
|
+
Information: (props: import("../../../pisellModal/components/Information").InformationProps) => JSX.Element;
|
|
35
|
+
} | typeof Drawer;
|
|
36
|
+
containerProps: {};
|
|
37
|
+
};
|
|
38
|
+
export default useDrawerState;
|
|
39
|
+
//# sourceMappingURL=useDrawerState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDrawerState.d.ts","sourceRoot":"","sources":["useDrawerState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAG9B,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AASxC,QAAA,MAAM,cAAc;;;;;uBAkBQ,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+DxC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
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
|
+
show: boolean;
|
|
46
|
+
title: string; /**
|
|
47
|
+
* 处理table的props
|
|
48
|
+
* 转换title
|
|
49
|
+
* @param props
|
|
50
|
+
* @returns
|
|
51
|
+
*/
|
|
52
|
+
width: number;
|
|
53
|
+
align: "center" | "left" | "right";
|
|
54
|
+
fixed: false | "left" | "right";
|
|
55
|
+
type: "link" | "button";
|
|
56
|
+
items: OperationItem[];
|
|
57
|
+
} | undefined;
|
|
58
|
+
operationContent?: {
|
|
59
|
+
[key: string]: React.ReactNode;
|
|
60
|
+
} | undefined;
|
|
61
|
+
dataSource: import("../../provider/dataSource/DataSourceContext").DataSourceType;
|
|
62
|
+
search?: {
|
|
63
|
+
show: boolean;
|
|
64
|
+
placeholder: string;
|
|
65
|
+
} | undefined;
|
|
66
|
+
__designMode: string;
|
|
67
|
+
componentId: string;
|
|
68
|
+
clickToDetail?: {
|
|
69
|
+
show: boolean;
|
|
70
|
+
useCustomAction: boolean;
|
|
71
|
+
actionType: string;
|
|
72
|
+
openMode: "modal" | "drawer";
|
|
73
|
+
openContentSize: "small" | "large" | "middle";
|
|
74
|
+
openTitle: string;
|
|
75
|
+
key: string;
|
|
76
|
+
} | undefined;
|
|
77
|
+
filterBy?: Record<string, any> | undefined;
|
|
78
|
+
sortBy: string;
|
|
79
|
+
tabs?: {
|
|
80
|
+
show: boolean;
|
|
81
|
+
type: string;
|
|
82
|
+
items: {
|
|
83
|
+
name: string;
|
|
84
|
+
filterBy: Record<string, any>;
|
|
85
|
+
sortBy: string;
|
|
86
|
+
}[];
|
|
87
|
+
} | undefined;
|
|
88
|
+
onValuesChange?: ((changedValues: any, values: any) => void) | undefined;
|
|
89
|
+
extraParams?: {
|
|
90
|
+
list?: Record<string, any> | undefined;
|
|
91
|
+
get?: Record<string, any> | undefined;
|
|
92
|
+
update?: Record<string, any> | undefined;
|
|
93
|
+
create?: Record<string, any> | undefined;
|
|
94
|
+
destroy?: Record<string, any> | undefined;
|
|
95
|
+
} | undefined;
|
|
96
|
+
};
|
|
97
|
+
export default useTableProps;
|
|
98
|
+
//# sourceMappingURL=useTableProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTableProps.d.ts","sourceRoot":"","sources":["useTableProps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAMlD,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAM/C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAMxC,UAAU,kBAAkB;IAC1B,IAAI,EAAE,GAAG,CAAC;IACV,WAAW,EAAE,oBAAoB,CAAC;IAClC,UAAU,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,IAAI,CAAC;IAC1C,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,kBAAkB,EAAE,CAAC,aAAa,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,KAAK,IAAI,CAAC;IACjE,QAAQ,EAAE,GAAG,CAAC;CACf;AAED;;;;;GAKG;AACH,QAAA,MAAM,aAAa,UAAW,kBAAkB;;;;;;;;;;;;;oBA8PT,GAAG;;;;;;;;;;;;;;uBApQ1C;;;;;WAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsSF,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
}
|
|
79
|
+
//# sourceMappingURL=type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["type.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE1E,oBAAY,aAAa,GAAG;IAE1B,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,QAAQ,EAA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E,GAAG,CAAC,CAAC;QAC1B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC7B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC7B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAC/B,CAAC;CACH"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InputProps } from 'antd';
|
|
3
|
+
import { ModeType } from "../../dataSourceForm/type";
|
|
4
|
+
export interface PhoneInputProps extends Omit<InputProps, 'value' | 'onChange'> {
|
|
5
|
+
renderMode: ModeType;
|
|
6
|
+
value?: string;
|
|
7
|
+
onChange?: (value: string) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const MobileNumberInputWithMode: React.FC<PhoneInputProps & import("../../dataSourceForm/utils").WithModeProps>;
|
|
10
|
+
export default MobileNumberInputWithMode;
|
|
11
|
+
//# sourceMappingURL=WithMode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WithMode.d.ts","sourceRoot":"","sources":["WithMode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAS,UAAU,EAAS,MAAM,MAAM,CAAC;AAWhD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAKrD,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,UAAU,CAAC;IAC9C,UAAU,EAAE,QAAQ,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAyLD,QAAA,MAAM,yBAAyB,gFAA2D,CAAC;AAE3F,eAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InputProps } from 'antd';
|
|
3
|
+
import { ModeType } from "../../dataSourceForm/type";
|
|
4
|
+
export interface PhoneInputProps extends Omit<InputProps, 'value' | 'onChange'> {
|
|
5
|
+
renderMode: ModeType;
|
|
6
|
+
value?: string;
|
|
7
|
+
onChange?: (value: string) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const PhoneNumberInputWithMode: React.FC<PhoneInputProps & import("../../dataSourceForm/utils").WithModeProps>;
|
|
10
|
+
export default PhoneNumberInputWithMode;
|
|
11
|
+
//# sourceMappingURL=WithMode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WithMode.d.ts","sourceRoot":"","sources":["WithMode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAS,UAAU,EAAS,MAAM,MAAM,CAAC;AAWhD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAKrD,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,UAAU,CAAC;IAC9C,UAAU,EAAE,QAAQ,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAyKD,QAAA,MAAM,wBAAwB,gFAA0D,CAAC;AAEzF,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 获取nocobase数据列表
|
|
3
|
+
*/
|
|
4
|
+
export declare const getCountryDataList: () => Promise<any>;
|
|
5
|
+
export interface Country {
|
|
6
|
+
id: number;
|
|
7
|
+
name: {
|
|
8
|
+
en: string;
|
|
9
|
+
"zh-CN": string;
|
|
10
|
+
"zh-HK": string;
|
|
11
|
+
original: string;
|
|
12
|
+
};
|
|
13
|
+
code: string;
|
|
14
|
+
calling_code: string;
|
|
15
|
+
currency_code: string;
|
|
16
|
+
sort: number;
|
|
17
|
+
status: string;
|
|
18
|
+
created_at: string;
|
|
19
|
+
updated_at: string;
|
|
20
|
+
prefix: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const useCountries: () => {
|
|
23
|
+
data: Country[];
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=serve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["serve.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,eAAO,MAAM,kBAAkB,oBAa9B,CAAC;AAEF,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE;QACF,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,YAAY;UAAe,OAAO,EAAE;CA8BhD,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import './index.less';
|
|
2
|
+
import { ValueProps, SortType } from '../types';
|
|
3
|
+
declare type IdType = string | number;
|
|
4
|
+
declare type TreeItemProps = {
|
|
5
|
+
id: string | number;
|
|
6
|
+
key: string | number;
|
|
7
|
+
item: ValueProps | any;
|
|
8
|
+
depth: number;
|
|
9
|
+
lists: any[];
|
|
10
|
+
childrenProps?: SortType;
|
|
11
|
+
sensors?: any;
|
|
12
|
+
expandedKeys?: IdType[];
|
|
13
|
+
setExpandedKeys?: any;
|
|
14
|
+
onSelectKeys?: (ids: IdType) => void;
|
|
15
|
+
onChange?: (value: any[]) => void;
|
|
16
|
+
};
|
|
17
|
+
declare const TreeItem: (props: TreeItemProps) => JSX.Element;
|
|
18
|
+
export default TreeItem;
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAsBA,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGhD,aAAK,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAE9B,aAAK,aAAa,GAAG;IACnB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,IAAI,EAAE,UAAU,GAAG,GAAG,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF,QAAA,MAAM,QAAQ,UAAW,aAAa,gBAmOrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAiBA,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAInC,QAAA,MAAM,YAAY,UAAW,QAAQ,gBAiGpC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IconComponentProps } from '@ant-design/icons/es/components/Icon';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface IconFontProps extends IconComponentProps {
|
|
4
|
+
type: string;
|
|
5
|
+
onClick?: React.MouseEventHandler<HTMLSpanElement>;
|
|
6
|
+
}
|
|
7
|
+
declare const IconFont: React.FC<IconFontProps>;
|
|
8
|
+
export default IconFont;
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,aAAc,SAAQ,kBAAkB;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC;CACpD;AAKD,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAErC,CAAC;AACF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
/**
|
|
4
|
+
* loginAndRegister组件的属性接口
|
|
5
|
+
*/
|
|
6
|
+
export interface loginAndRegisterProps {
|
|
7
|
+
/** Logo相关配置 */
|
|
8
|
+
showLogo?: boolean;
|
|
9
|
+
logo?: string;
|
|
10
|
+
logoPosition?: 'left' | 'center' | 'right';
|
|
11
|
+
logoSize?: {
|
|
12
|
+
width?: number;
|
|
13
|
+
height?: number;
|
|
14
|
+
};
|
|
15
|
+
/** 标题相关配置 */
|
|
16
|
+
title?: string;
|
|
17
|
+
showTitle?: boolean;
|
|
18
|
+
titleAlign?: 'left' | 'center' | 'right';
|
|
19
|
+
/** 副标题相关配置 */
|
|
20
|
+
subtitle?: string;
|
|
21
|
+
showSubtitle?: boolean;
|
|
22
|
+
subtitleAlign?: 'left' | 'center' | 'right';
|
|
23
|
+
/** 登录方式配置 */
|
|
24
|
+
loginMethods?: ('email' | 'google' | 'facebook' | 'apple')[];
|
|
25
|
+
defaultLoginMethod?: 'email' | 'google' | 'facebook' | 'apple';
|
|
26
|
+
/** 表单配置 */
|
|
27
|
+
emailLabel?: string;
|
|
28
|
+
passwordLabel?: string;
|
|
29
|
+
emailPlaceholder?: string;
|
|
30
|
+
passwordPlaceholder?: string;
|
|
31
|
+
emailRules?: any[];
|
|
32
|
+
buttonText?: string;
|
|
33
|
+
rememberMeText?: string;
|
|
34
|
+
forgotPasswordText?: string;
|
|
35
|
+
showRememberMe?: boolean;
|
|
36
|
+
showForgotPassword?: boolean;
|
|
37
|
+
/** 社交登录配置 */
|
|
38
|
+
socialLoginTexts?: {
|
|
39
|
+
google?: string;
|
|
40
|
+
facebook?: string;
|
|
41
|
+
apple?: string;
|
|
42
|
+
};
|
|
43
|
+
/** 底部配置 */
|
|
44
|
+
showFooter?: boolean;
|
|
45
|
+
showSignUp?: boolean;
|
|
46
|
+
signUpText?: string;
|
|
47
|
+
signUpLink?: string;
|
|
48
|
+
signUpPosition?: 'left' | 'center' | 'right';
|
|
49
|
+
otherLinks?: Array<{
|
|
50
|
+
text: string;
|
|
51
|
+
url: string;
|
|
52
|
+
}>;
|
|
53
|
+
otherLinksPosition?: 'left' | 'center' | 'right';
|
|
54
|
+
/** 登录/注册切换配置 */
|
|
55
|
+
showTabs?: boolean;
|
|
56
|
+
loginTabText?: string;
|
|
57
|
+
registerTabText?: string;
|
|
58
|
+
/** 注册表单配置 */
|
|
59
|
+
registerEmailPlaceholder?: string;
|
|
60
|
+
registerPasswordPlaceholder?: string;
|
|
61
|
+
registerButtonText?: string;
|
|
62
|
+
/** 事件回调 */
|
|
63
|
+
onLogin?: (values: {
|
|
64
|
+
email: string;
|
|
65
|
+
loginMethod: string;
|
|
66
|
+
}) => void;
|
|
67
|
+
onSocialLogin?: (type: 'google' | 'facebook' | 'apple') => void;
|
|
68
|
+
onSignUp?: () => void;
|
|
69
|
+
onRegister?: (values: {
|
|
70
|
+
email: string;
|
|
71
|
+
password: string;
|
|
72
|
+
}) => void;
|
|
73
|
+
/** 新增背景图片属性 */
|
|
74
|
+
backgroundImage?: string;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Saas登录组件
|
|
78
|
+
* @param props - 组件属性
|
|
79
|
+
* @returns React组件
|
|
80
|
+
*/
|
|
81
|
+
declare const loginAndRegister: React.FC<loginAndRegisterProps>;
|
|
82
|
+
export default loginAndRegister;
|
|
83
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,OAAO,cAAc,CAAC;AACtB;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC,eAAe;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC3C,QAAQ,CAAC,EAAE;QACP,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;IAEF,aAAa;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IAEzC,cAAc;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IAE5C,aAAa;IACb,YAAY,CAAC,EAAE,CAAC,OAAO,GAAG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,MAAM,CAAC;IAClC,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,WAAW;IACX,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACnE,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,GAAG,UAAU,GAAG,OAAO,KAAK,IAAI,CAAC;IAChE,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAEnE,eAAe;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;;;GAIG;AACH,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA0SrD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PisellContextType } from './context';
|
|
3
|
+
interface PisellConfigProviderType {
|
|
4
|
+
platform?: PisellContextType['platform'];
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
/** 货币符号 */
|
|
7
|
+
symbol?: string;
|
|
8
|
+
/** 当前语言环境 */
|
|
9
|
+
locale?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const PisellConfigProvider: React.FC<PisellConfigProviderType>;
|
|
12
|
+
export default PisellConfigProvider;
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAsB,EAAgB,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAM3E,UAAU,wBAAwB;IAChC,QAAQ,CAAC,EAAE,iBAAiB,CAAC,UAAU,CAAC,CAAC;IACzC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,WAAW;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAQD,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAoC5D,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import './index.less';
|
|
2
|
+
export interface PisellAdjustPriceProps {
|
|
3
|
+
value?: number;
|
|
4
|
+
originValue: number;
|
|
5
|
+
defaultValue?: number;
|
|
6
|
+
onChange?: (val: number) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const PisellAdjustPrice: (props: PisellAdjustPriceProps) => JSX.Element;
|
|
9
|
+
export default PisellAdjustPrice;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAQA,OAAO,cAAc,CAAC;AAGtB,MAAM,WAAW,sBAAsB;IAErC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC;AAED,QAAA,MAAM,iBAAiB,UAAW,sBAAsB,gBA0JvD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { EmptyProps } from 'antd';
|
|
3
|
+
import { PisellContextType } from '../pisell-config-provider/context';
|
|
4
|
+
import './index.less';
|
|
5
|
+
export interface PisellEmptyProps extends EmptyProps {
|
|
6
|
+
/** 平台 */
|
|
7
|
+
platform?: PisellContextType['platform'];
|
|
8
|
+
/** 额外内容描述 */
|
|
9
|
+
extraDescription?: React.ReactNode;
|
|
10
|
+
/** 额外内容描述 */
|
|
11
|
+
icon?: React.ReactNode;
|
|
12
|
+
/** 自定义底部额外操作区域 */
|
|
13
|
+
footer?: React.ReactNode;
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
/** 最大宽度 */
|
|
16
|
+
maxWidth?: number;
|
|
17
|
+
}
|
|
18
|
+
declare const PisellEmpty: (props: PisellEmptyProps) => JSX.Element;
|
|
19
|
+
export default PisellEmpty;
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAS,UAAU,EAAE,MAAM,MAAM,CAAC;AAIzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAEtE,OAAO,cAAc,CAAC;AAEtB,MAAM,WAAW,gBAAiB,SAAQ,UAAU;IAClD,SAAS;IACT,QAAQ,CAAC,EAAE,iBAAiB,CAAC,UAAU,CAAC,CAAC;IACzC,aAAa;IACb,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACnC,aAAa;IACb,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,kBAAkB;IAClB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IACnB,WAAW;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAGD,QAAA,MAAM,WAAW,UAAW,gBAAgB,gBAmC3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface ApplicableProductDetails {
|
|
4
|
+
amount: string;
|
|
5
|
+
type: string;
|
|
6
|
+
resource_id: number;
|
|
7
|
+
title: string;
|
|
8
|
+
original_amount: string;
|
|
9
|
+
}
|
|
10
|
+
interface Discount {
|
|
11
|
+
id: number;
|
|
12
|
+
product_name: string;
|
|
13
|
+
encoded: string;
|
|
14
|
+
code: string;
|
|
15
|
+
tag: string;
|
|
16
|
+
expire_time?: string;
|
|
17
|
+
product_id: number;
|
|
18
|
+
relation_type: string;
|
|
19
|
+
par_value: string;
|
|
20
|
+
used_par_value: string;
|
|
21
|
+
limit_status: string;
|
|
22
|
+
limited_relation_product_data: any;
|
|
23
|
+
balance: string;
|
|
24
|
+
format_title: any;
|
|
25
|
+
product: any;
|
|
26
|
+
savedAmount: number;
|
|
27
|
+
isDisabled: boolean;
|
|
28
|
+
isSelected?: boolean;
|
|
29
|
+
isAvailable?: boolean;
|
|
30
|
+
isUsed?: boolean;
|
|
31
|
+
applicableProductIds?: number[];
|
|
32
|
+
applicableProductDetails: ApplicableProductDetails[];
|
|
33
|
+
appliedProductDetails: any[];
|
|
34
|
+
}
|
|
35
|
+
export interface PisellGoodPassCardProps {
|
|
36
|
+
/**数据源 */
|
|
37
|
+
dataSource: Array<Discount>;
|
|
38
|
+
/**事件 */
|
|
39
|
+
onChange?: (current: {
|
|
40
|
+
id: string | number;
|
|
41
|
+
isSelected: boolean;
|
|
42
|
+
}) => void;
|
|
43
|
+
/**样式 */
|
|
44
|
+
style: React.CSSProperties;
|
|
45
|
+
/**快捷展示排序 */
|
|
46
|
+
mixedSort?: (val: Discount[]) => Discount[];
|
|
47
|
+
}
|
|
48
|
+
declare const index: (props: PisellGoodPassCardProps) => JSX.Element;
|
|
49
|
+
export default index;
|
|
50
|
+
//# sourceMappingURL=index.d.ts.map
|