@pisell/materials 2.2.53 → 2.2.55
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 +5 -5
- package/build/lowcode/preview.js +164 -148
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +39 -25
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +39 -25
- package/es/components/Pagination/index.d.ts +1 -1
- package/es/components/appVersionControl/index.d.ts +0 -1
- package/es/components/colorPicker/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -2
- package/es/components/dataSourceComponents/dataSourceMenu/Basic.js +13 -3
- package/es/components/dataSourceComponents/dataSourceMenu/index.d.ts +8 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.less +2 -0
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +10 -10
- package/es/components/drag-sort-tree/index.d.ts +0 -1
- package/es/components/filter/components/items/index.d.ts +1 -0
- package/es/components/filter/components/items/text/Editor/index.d.ts +1 -0
- package/es/components/filter/components/items/text/Preview/index.d.ts +1 -0
- package/es/components/filter/components/items/text/index.d.ts +1 -0
- package/es/components/iconfont/index.js +1 -1
- package/es/components/login-and-register/index.js +23 -21
- package/es/components/login-and-register/index.less +7 -7
- package/es/components/page/index.js +23 -57
- package/es/components/pisellAnchor/index.d.ts +1 -1
- package/es/components/pisellAnchor/index.js +109 -199
- package/es/components/pisellAnchor/index.less +3 -5
- package/es/components/pisellAvatar/index.js +2 -1
- package/es/components/pisellAvatar/index.less +2 -1
- package/es/components/pisellCustomCheckboxGroup/index.js +3 -0
- package/es/components/pisellGoodPassCard/index.d.ts +47 -0
- package/es/components/pisellGoodPassCard/index.js +115 -0
- package/es/components/pisellGoodPassCard/index.less +52 -0
- package/es/components/pisellModal/components/MobileModal/index.less +4 -0
- package/es/components/pisellNavigationMenu/PisellNavigationMenu.js +18 -2
- package/es/components/pisellWalletPassCard/index.d.ts +0 -1
- package/es/components/productCard/components/MultiDay/index.js +2 -1
- package/es/components/productCard/components/Packages/components/collapsibleList/utils.js +4 -3
- package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +3 -0
- package/es/components/productCard/components/Time/components/SelectResource/index.js +53 -0
- package/es/components/productCard/components/Time/index.d.ts +1 -1
- package/es/components/productCard/components/Time/index.js +21 -7
- package/es/components/productCard/components/Time/index.less +29 -0
- package/es/components/productCard/index.js +5 -2
- package/es/components/productCard/locales.d.ts +6 -0
- package/es/components/productCard/locales.js +19 -1
- package/es/components/productCard/types.d.ts +4 -0
- package/es/components/productCard/utils.js +18 -2
- package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -1
- package/es/components/table/Table/SelectField/index.d.ts +1 -0
- package/es/components/table/Table/tableConfig/summary/index.d.ts +1 -0
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/tabs/index.js +6 -1
- package/es/index.d.ts +10 -11
- package/es/index.js +11 -12
- package/es/locales/en-US.d.ts +28 -2
- package/es/locales/en-US.js +43 -10
- package/es/locales/zh-CN.d.ts +26 -0
- package/es/locales/zh-CN.js +29 -1
- package/es/locales/zh-TW.d.ts +26 -0
- package/es/locales/zh-TW.js +28 -1
- package/lib/components/Pagination/index.d.ts +1 -1
- package/lib/components/appVersionControl/index.d.ts +0 -1
- package/lib/components/colorPicker/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -2
- package/lib/components/dataSourceComponents/dataSourceMenu/Basic.js +12 -3
- package/lib/components/dataSourceComponents/dataSourceMenu/index.d.ts +8 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.less +2 -0
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +10 -10
- package/lib/components/drag-sort-tree/index.d.ts +0 -1
- package/lib/components/filter/components/items/index.d.ts +1 -0
- package/lib/components/filter/components/items/text/Editor/index.d.ts +1 -0
- package/lib/components/filter/components/items/text/Preview/index.d.ts +1 -0
- package/lib/components/filter/components/items/text/index.d.ts +1 -0
- package/lib/components/iconfont/index.js +1 -1
- package/lib/components/login-and-register/index.js +23 -21
- package/lib/components/login-and-register/index.less +7 -7
- package/lib/components/page/index.js +37 -65
- package/lib/components/pisellAnchor/index.d.ts +1 -1
- package/lib/components/pisellAnchor/index.js +64 -131
- package/lib/components/pisellAnchor/index.less +3 -5
- package/lib/components/pisellAvatar/index.js +1 -1
- package/lib/components/pisellAvatar/index.less +2 -1
- package/lib/components/pisellCustomCheckboxGroup/index.js +1 -1
- package/lib/components/pisellEmpty/index.js +9 -1
- package/lib/components/pisellGoodPassCard/index.d.ts +47 -0
- package/lib/components/pisellGoodPassCard/index.js +109 -0
- package/lib/components/pisellGoodPassCard/index.less +52 -0
- package/lib/components/pisellModal/components/MobileModal/index.less +4 -0
- package/lib/components/pisellNavigationMenu/PisellNavigationMenu.js +24 -3
- package/lib/components/pisellWalletPassCard/index.d.ts +0 -1
- package/lib/components/productCard/components/MultiDay/index.js +3 -2
- package/lib/components/productCard/components/Packages/components/collapsibleList/utils.js +5 -4
- package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +3 -0
- package/lib/components/productCard/components/Time/components/SelectResource/index.js +63 -0
- package/lib/components/productCard/components/Time/index.d.ts +1 -1
- package/lib/components/productCard/components/Time/index.js +38 -14
- package/lib/components/productCard/components/Time/index.less +29 -0
- package/lib/components/productCard/index.js +4 -1
- package/lib/components/productCard/locales.d.ts +6 -0
- package/lib/components/productCard/locales.js +7 -1
- package/lib/components/productCard/types.d.ts +4 -0
- package/lib/components/productCard/utils.js +14 -2
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -1
- package/lib/components/table/Table/SelectField/index.d.ts +1 -0
- package/lib/components/table/Table/tableConfig/summary/index.d.ts +1 -0
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/tabs/index.js +1 -0
- package/lib/index.d.ts +10 -11
- package/lib/index.js +12 -15
- package/lib/locales/en-US.d.ts +28 -2
- package/lib/locales/en-US.js +29 -3
- package/lib/locales/zh-CN.d.ts +26 -0
- package/lib/locales/zh-CN.js +29 -1
- package/lib/locales/zh-TW.d.ts +26 -0
- package/lib/locales/zh-TW.js +28 -1
- package/lowcode/pisell-good-pass-card/meta.ts +38 -0
- package/lowcode/pisell-good-pass-card/snippets.ts +9 -0
- package/lowcode/product-card/meta.ts +28 -0
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ export declare const paginationConfig: {
|
|
|
5
5
|
className: string;
|
|
6
6
|
defaultCurrent: number;
|
|
7
7
|
showTotal: (total: number, range: [number, number]) => string;
|
|
8
|
-
itemRender: (page: number, type: "
|
|
8
|
+
itemRender: (page: number, type: "page" | "next" | "prev" | "jump-prev" | "jump-next", element: React.ReactNode) => React.ReactNode;
|
|
9
9
|
responsive: boolean;
|
|
10
10
|
size: string;
|
|
11
11
|
};
|
|
@@ -43,7 +43,7 @@ export declare const withDataSource: <P extends unknown>(WrappedComponent: React
|
|
|
43
43
|
}) => JSX.Element;
|
|
44
44
|
export declare const withOptions: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
|
|
45
45
|
options?: any;
|
|
46
|
-
optionSourceType?: "
|
|
46
|
+
optionSourceType?: "custom" | "default" | "api" | undefined;
|
|
47
47
|
labelField: string;
|
|
48
48
|
valueField: string;
|
|
49
49
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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;
|
|
@@ -7,7 +7,7 @@ import BaseMenu from "../../pisellMenu";
|
|
|
7
7
|
* @description: 基于数据源动态生成表单,支持编辑、查看、禁用三种模式
|
|
8
8
|
*/
|
|
9
9
|
var DataSourceMenu = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
10
|
-
var _appHelper$utils, _appHelper$utils$getA2;
|
|
10
|
+
var _appHelper$utils, _appHelper$utils$getA2, _appHelper$utils2, _appHelper$utils2$get;
|
|
11
11
|
var _useEngineContext = useEngineContext(),
|
|
12
12
|
appHelper = _useEngineContext.appHelper;
|
|
13
13
|
var _appHelper$utils$getA = appHelper === null || appHelper === void 0 || (_appHelper$utils = appHelper.utils) === null || _appHelper$utils === void 0 || (_appHelper$utils$getA2 = _appHelper$utils.getApp) === null || _appHelper$utils$getA2 === void 0 || (_appHelper$utils$getA2 = _appHelper$utils$getA2.call(_appHelper$utils)) === null || _appHelper$utils$getA2 === void 0 || (_appHelper$utils$getA2 = _appHelper$utils$getA2.menuManager) === null || _appHelper$utils$getA2 === void 0 ? void 0 : _appHelper$utils$getA2.useMenu(),
|
|
@@ -17,6 +17,16 @@ var DataSourceMenu = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
17
17
|
setOpenKeys = _appHelper$utils$getA.setOpenKeys,
|
|
18
18
|
getShowChildren = _appHelper$utils$getA.getShowChildren,
|
|
19
19
|
handleClick = _appHelper$utils$getA.handleClick;
|
|
20
|
+
var translation = (appHelper === null || appHelper === void 0 || (_appHelper$utils2 = appHelper.utils) === null || _appHelper$utils2 === void 0 || (_appHelper$utils2$get = _appHelper$utils2.getApp) === null || _appHelper$utils2$get === void 0 || (_appHelper$utils2$get = _appHelper$utils2$get.call(_appHelper$utils2)) === null || _appHelper$utils2$get === void 0 || (_appHelper$utils2$get = _appHelper$utils2$get.locales) === null || _appHelper$utils2$get === void 0 ? void 0 : _appHelper$utils2$get.translation) || function (str) {
|
|
21
|
+
if (!str) {
|
|
22
|
+
return '';
|
|
23
|
+
}
|
|
24
|
+
if (typeof str === 'string') {
|
|
25
|
+
return str;
|
|
26
|
+
}
|
|
27
|
+
return JSON.stringify(str);
|
|
28
|
+
};
|
|
29
|
+
|
|
20
30
|
// 递归渲染菜单项
|
|
21
31
|
var renderMenuItems = function renderMenuItems(items) {
|
|
22
32
|
return items.map(function (item) {
|
|
@@ -27,7 +37,7 @@ var DataSourceMenu = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
27
37
|
if (_children !== null && _children !== void 0 && _children.length) {
|
|
28
38
|
return /*#__PURE__*/React.createElement(BaseMenu.SubMenu, {
|
|
29
39
|
key: item.key,
|
|
30
|
-
title: item.label,
|
|
40
|
+
title: translation(item.label),
|
|
31
41
|
icon: item.icon,
|
|
32
42
|
router: item.path
|
|
33
43
|
}, renderMenuItems(_children));
|
|
@@ -36,7 +46,7 @@ var DataSourceMenu = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
36
46
|
key: item.key,
|
|
37
47
|
icon: item.icon,
|
|
38
48
|
router: item.path
|
|
39
|
-
}, item.label);
|
|
49
|
+
}, translation(item.label));
|
|
40
50
|
});
|
|
41
51
|
};
|
|
42
52
|
return /*#__PURE__*/React.createElement(BaseMenu, _extends({
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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;
|
|
@@ -70,7 +70,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
70
70
|
useCustomAction: boolean;
|
|
71
71
|
actionType: string;
|
|
72
72
|
openMode: "modal" | "drawer";
|
|
73
|
-
openContentSize: "small" | "
|
|
73
|
+
openContentSize: "small" | "large" | "middle";
|
|
74
74
|
openTitle: string;
|
|
75
75
|
key: string;
|
|
76
76
|
} | undefined;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
declare const Subdomain: React.FC<import("antd").InputProps & {
|
|
3
3
|
onChange: (value: string) => void;
|
|
4
4
|
onBlur?: ((e: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
5
|
-
rootDomain: "custom" | "
|
|
5
|
+
rootDomain: "custom" | "xzero" | "saas";
|
|
6
6
|
customDomain?: string | undefined;
|
|
7
7
|
value?: string | undefined;
|
|
8
8
|
tenantId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
|
|
3
3
|
options?: any;
|
|
4
|
-
optionSourceType?: "
|
|
4
|
+
optionSourceType?: "custom" | "default" | "api" | undefined;
|
|
5
5
|
labelField: string;
|
|
6
6
|
valueField: string;
|
|
7
7
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -20,7 +20,7 @@ declare const formFieldMap: {
|
|
|
20
20
|
Subdomain: import("react").FC<import("antd").InputProps & {
|
|
21
21
|
onChange: (value: string) => void;
|
|
22
22
|
onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
23
|
-
rootDomain: "custom" | "
|
|
23
|
+
rootDomain: "custom" | "xzero" | "saas";
|
|
24
24
|
customDomain?: string | undefined;
|
|
25
25
|
value?: string | undefined;
|
|
26
26
|
tenantId: string;
|
|
@@ -35,7 +35,7 @@ declare const formFieldMap: {
|
|
|
35
35
|
};
|
|
36
36
|
FormItemSelect: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
37
37
|
options?: any;
|
|
38
|
-
optionSourceType?: "
|
|
38
|
+
optionSourceType?: "custom" | "default" | "api" | undefined;
|
|
39
39
|
labelField: string;
|
|
40
40
|
valueField: string;
|
|
41
41
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -60,13 +60,11 @@ declare const formFieldMap: {
|
|
|
60
60
|
FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
61
61
|
FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
62
62
|
};
|
|
63
|
-
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./
|
|
63
|
+
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
|
|
64
64
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
65
65
|
} & {
|
|
66
66
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
67
|
-
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("
|
|
68
|
-
onChange: (value: string) => void;
|
|
69
|
-
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
|
|
67
|
+
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
|
|
70
68
|
JSON: import("react").FC<any>;
|
|
71
69
|
Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
72
70
|
TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
@@ -79,24 +77,26 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
79
77
|
Subdomain: import("react").FC<import("antd").InputProps & {
|
|
80
78
|
onChange: (value: string) => void;
|
|
81
79
|
onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
82
|
-
rootDomain: "custom" | "
|
|
80
|
+
rootDomain: "custom" | "xzero" | "saas";
|
|
83
81
|
customDomain?: string | undefined;
|
|
84
82
|
value?: string | undefined;
|
|
85
83
|
tenantId: string;
|
|
86
84
|
name?: string | undefined;
|
|
87
85
|
fieldKey?: string | undefined;
|
|
88
86
|
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
89
|
-
}) |
|
|
87
|
+
}) | (import("react").FC<{}> & {
|
|
90
88
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
91
89
|
} & {
|
|
92
90
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
93
91
|
}) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
94
92
|
options?: any;
|
|
95
|
-
optionSourceType?: "
|
|
93
|
+
optionSourceType?: "custom" | "default" | "api" | undefined;
|
|
96
94
|
labelField: string;
|
|
97
95
|
valueField: string;
|
|
98
96
|
extraParams?: Record<string, any> | undefined;
|
|
99
97
|
} & {
|
|
100
98
|
dataSource?: any;
|
|
101
|
-
}) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./
|
|
99
|
+
}) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
|
|
100
|
+
onChange: (value: string) => void;
|
|
101
|
+
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
102
102
|
export { getFieldComponent, formFieldMap };
|
|
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
2
2
|
import { createFromIconfontCN } from '@ant-design/icons';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
var MyIcon = createFromIconfontCN({
|
|
5
|
-
scriptUrl: 'https://static.pisellcdn.com/pisell2iconfont1.
|
|
5
|
+
scriptUrl: 'https://static.pisellcdn.com/pisell2iconfont1.4.js' // 在 iconfont.cn 上生成
|
|
6
6
|
});
|
|
7
7
|
var IconFont = function IconFont(props) {
|
|
8
8
|
return /*#__PURE__*/React.createElement(MyIcon, _extends({}, props, {
|
|
@@ -16,6 +16,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
16
16
|
import React, { useState, useEffect } from 'react';
|
|
17
17
|
import { Input, Button, Space, Form, Checkbox } from 'antd';
|
|
18
18
|
import { GoogleOutlined, AppleOutlined, FacebookOutlined } from '@ant-design/icons';
|
|
19
|
+
import { getText } from "../../locales/index";
|
|
19
20
|
import "./index.less";
|
|
20
21
|
/**
|
|
21
22
|
* loginAndRegister组件的属性接口
|
|
@@ -38,13 +39,13 @@ var loginAndRegister = function loginAndRegister(_ref) {
|
|
|
38
39
|
height: 48
|
|
39
40
|
} : _ref$logoSize,
|
|
40
41
|
_ref$title = _ref.title,
|
|
41
|
-
title = _ref$title === void 0 ? 'Log in to your account' : _ref$title,
|
|
42
|
+
title = _ref$title === void 0 ? getText('Log in to your account') : _ref$title,
|
|
42
43
|
_ref$showTitle = _ref.showTitle,
|
|
43
44
|
showTitle = _ref$showTitle === void 0 ? false : _ref$showTitle,
|
|
44
45
|
_ref$titleAlign = _ref.titleAlign,
|
|
45
46
|
titleAlign = _ref$titleAlign === void 0 ? 'center' : _ref$titleAlign,
|
|
46
47
|
_ref$subtitle = _ref.subtitle,
|
|
47
|
-
subtitle = _ref$subtitle === void 0 ? '
|
|
48
|
+
subtitle = _ref$subtitle === void 0 ? getText('pisell-login-and-register-subtit') : _ref$subtitle,
|
|
48
49
|
_ref$showSubtitle = _ref.showSubtitle,
|
|
49
50
|
showSubtitle = _ref$showSubtitle === void 0 ? false : _ref$showSubtitle,
|
|
50
51
|
_ref$subtitleAlign = _ref.subtitleAlign,
|
|
@@ -54,35 +55,35 @@ var loginAndRegister = function loginAndRegister(_ref) {
|
|
|
54
55
|
_ref$defaultLoginMeth = _ref.defaultLoginMethod,
|
|
55
56
|
defaultLoginMethod = _ref$defaultLoginMeth === void 0 ? 'email' : _ref$defaultLoginMeth,
|
|
56
57
|
_ref$emailLabel = _ref.emailLabel,
|
|
57
|
-
emailLabel = _ref$emailLabel === void 0 ? '
|
|
58
|
+
emailLabel = _ref$emailLabel === void 0 ? getText('pisell-login-and-register-email-label') : _ref$emailLabel,
|
|
58
59
|
_ref$passwordLabel = _ref.passwordLabel,
|
|
59
|
-
passwordLabel = _ref$passwordLabel === void 0 ? '
|
|
60
|
+
passwordLabel = _ref$passwordLabel === void 0 ? getText('pisell-login-and-register-password-label') : _ref$passwordLabel,
|
|
60
61
|
_ref$emailPlaceholder = _ref.emailPlaceholder,
|
|
61
|
-
emailPlaceholder = _ref$emailPlaceholder === void 0 ? '
|
|
62
|
+
emailPlaceholder = _ref$emailPlaceholder === void 0 ? getText('pisell-login-and-register-email-placeholder') : _ref$emailPlaceholder,
|
|
62
63
|
_ref$passwordPlacehol = _ref.passwordPlaceholder,
|
|
63
|
-
passwordPlaceholder = _ref$passwordPlacehol === void 0 ? '
|
|
64
|
+
passwordPlaceholder = _ref$passwordPlacehol === void 0 ? getText('pisell-login-and-register-password-placeholder') : _ref$passwordPlacehol,
|
|
64
65
|
_ref$emailRules = _ref.emailRules,
|
|
65
66
|
emailRules = _ref$emailRules === void 0 ? [{
|
|
66
67
|
required: true,
|
|
67
|
-
message: '
|
|
68
|
+
message: getText('pisell-login-and-register-email-error')
|
|
68
69
|
}, {
|
|
69
70
|
type: 'email',
|
|
70
|
-
message: '
|
|
71
|
+
message: getText('pisell-login-and-register-email-error-valid')
|
|
71
72
|
}] : _ref$emailRules,
|
|
72
73
|
_ref$buttonText = _ref.buttonText,
|
|
73
|
-
buttonText = _ref$buttonText === void 0 ? 'Log in' : _ref$buttonText,
|
|
74
|
+
buttonText = _ref$buttonText === void 0 ? getText('Log in') : _ref$buttonText,
|
|
74
75
|
_ref$socialLoginTexts = _ref.socialLoginTexts,
|
|
75
76
|
socialLoginTexts = _ref$socialLoginTexts === void 0 ? {
|
|
76
|
-
google: '
|
|
77
|
-
facebook: '
|
|
78
|
-
apple: '
|
|
77
|
+
google: getText('pisell-login-and-register-google'),
|
|
78
|
+
facebook: getText('pisell-login-and-register-facebook'),
|
|
79
|
+
apple: getText('pisell-login-and-register-apple')
|
|
79
80
|
} : _ref$socialLoginTexts,
|
|
80
81
|
_ref$showFooter = _ref.showFooter,
|
|
81
82
|
showFooter = _ref$showFooter === void 0 ? true : _ref$showFooter,
|
|
82
83
|
_ref$showSignUp = _ref.showSignUp,
|
|
83
84
|
showSignUp = _ref$showSignUp === void 0 ? true : _ref$showSignUp,
|
|
84
85
|
_ref$signUpText = _ref.signUpText,
|
|
85
|
-
signUpText = _ref$signUpText === void 0 ?
|
|
86
|
+
signUpText = _ref$signUpText === void 0 ? getText('pisell-login-and-register-sign-up') : _ref$signUpText,
|
|
86
87
|
_ref$signUpLink = _ref.signUpLink,
|
|
87
88
|
signUpLink = _ref$signUpLink === void 0 ? '' : _ref$signUpLink,
|
|
88
89
|
_ref$signUpPosition = _ref.signUpPosition,
|
|
@@ -94,19 +95,19 @@ var loginAndRegister = function loginAndRegister(_ref) {
|
|
|
94
95
|
_ref$showTabs = _ref.showTabs,
|
|
95
96
|
showTabs = _ref$showTabs === void 0 ? true : _ref$showTabs,
|
|
96
97
|
_ref$loginTabText = _ref.loginTabText,
|
|
97
|
-
loginTabText = _ref$loginTabText === void 0 ? '
|
|
98
|
+
loginTabText = _ref$loginTabText === void 0 ? getText('pisell-login-and-register-login-tab') : _ref$loginTabText,
|
|
98
99
|
_ref$registerTabText = _ref.registerTabText,
|
|
99
|
-
registerTabText = _ref$registerTabText === void 0 ? '
|
|
100
|
+
registerTabText = _ref$registerTabText === void 0 ? getText('pisell-login-and-register-register-tab') : _ref$registerTabText,
|
|
100
101
|
_ref$registerEmailPla = _ref.registerEmailPlaceholder,
|
|
101
|
-
registerEmailPlaceholder = _ref$registerEmailPla === void 0 ? '
|
|
102
|
+
registerEmailPlaceholder = _ref$registerEmailPla === void 0 ? getText('pisell-login-and-register-register-email-placeholder') : _ref$registerEmailPla,
|
|
102
103
|
_ref$registerPassword = _ref.registerPasswordPlaceholder,
|
|
103
|
-
registerPasswordPlaceholder = _ref$registerPassword === void 0 ? '
|
|
104
|
+
registerPasswordPlaceholder = _ref$registerPassword === void 0 ? getText('pisell-login-and-register-register-password-placeholder') : _ref$registerPassword,
|
|
104
105
|
_ref$registerButtonTe = _ref.registerButtonText,
|
|
105
|
-
registerButtonText = _ref$registerButtonTe === void 0 ? '
|
|
106
|
+
registerButtonText = _ref$registerButtonTe === void 0 ? getText('pisell-login-and-register-register-button-text') : _ref$registerButtonTe,
|
|
106
107
|
_ref$rememberMeText = _ref.rememberMeText,
|
|
107
|
-
rememberMeText = _ref$rememberMeText === void 0 ? '
|
|
108
|
+
rememberMeText = _ref$rememberMeText === void 0 ? getText('pisell-login-and-register-remember-me') : _ref$rememberMeText,
|
|
108
109
|
_ref$forgotPasswordTe = _ref.forgotPasswordText,
|
|
109
|
-
forgotPasswordText = _ref$forgotPasswordTe === void 0 ? '
|
|
110
|
+
forgotPasswordText = _ref$forgotPasswordTe === void 0 ? getText('pisell-login-and-register-forgot-password') : _ref$forgotPasswordTe,
|
|
110
111
|
_ref$showRememberMe = _ref.showRememberMe,
|
|
111
112
|
showRememberMe = _ref$showRememberMe === void 0 ? false : _ref$showRememberMe,
|
|
112
113
|
_ref$showForgotPasswo = _ref.showForgotPassword,
|
|
@@ -218,6 +219,7 @@ var loginAndRegister = function loginAndRegister(_ref) {
|
|
|
218
219
|
return _ref3.apply(this, arguments);
|
|
219
220
|
};
|
|
220
221
|
}();
|
|
222
|
+
console.log(registerButtonText, 'registerButtonText');
|
|
221
223
|
return /*#__PURE__*/React.createElement("div", {
|
|
222
224
|
className: "saas-login-main"
|
|
223
225
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -285,7 +287,7 @@ var loginAndRegister = function loginAndRegister(_ref) {
|
|
|
285
287
|
loading: loading,
|
|
286
288
|
onClick: handleEmailLogin,
|
|
287
289
|
className: "saas-login-button"
|
|
288
|
-
},
|
|
290
|
+
}, getText('pisell-login-and-register-login'))) : /*#__PURE__*/React.createElement(Form, {
|
|
289
291
|
form: form
|
|
290
292
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
291
293
|
name: "email",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
position: relative;
|
|
68
68
|
|
|
69
69
|
&.active {
|
|
70
|
-
color:
|
|
70
|
+
color: var(--theme-color);
|
|
71
71
|
|
|
72
72
|
&:after {
|
|
73
73
|
content: '';
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
left: 0;
|
|
77
77
|
right: 0;
|
|
78
78
|
height: 2px;
|
|
79
|
-
background:
|
|
79
|
+
background: var(--theme-color);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
|
|
@@ -105,11 +105,11 @@
|
|
|
105
105
|
background: #FFF;
|
|
106
106
|
|
|
107
107
|
&:hover {
|
|
108
|
-
border-color:
|
|
108
|
+
border-color: var(--theme-color);
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
&:focus {
|
|
112
|
-
border-color:
|
|
112
|
+
border-color: var(--theme-color);
|
|
113
113
|
box-shadow: 0 0 0 4px rgba(127, 86, 217, 0.1);
|
|
114
114
|
}
|
|
115
115
|
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
.saas-login-button {
|
|
127
127
|
height: 44px;
|
|
128
128
|
border-radius: 8px;
|
|
129
|
-
background:
|
|
129
|
+
background: var(--theme-color);
|
|
130
130
|
border: none;
|
|
131
131
|
font-weight: 500;
|
|
132
132
|
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
&:focus {
|
|
138
|
-
background:
|
|
138
|
+
background: var(--theme-color);
|
|
139
139
|
box-shadow: 0 0 0 4px rgba(127, 86, 217, 0.1);
|
|
140
140
|
}
|
|
141
141
|
}
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
margin-bottom: 16px;
|
|
186
186
|
|
|
187
187
|
a {
|
|
188
|
-
color: #7F56D9;
|
|
188
|
+
//color: #7F56D9;
|
|
189
189
|
margin-left: 4px;
|
|
190
190
|
cursor: pointer;
|
|
191
191
|
|
|
@@ -63,7 +63,7 @@ var Page = function Page(props) {
|
|
|
63
63
|
// cssVar: { key: 'app' },
|
|
64
64
|
token: _objectSpread(_objectSpread({}, props.theme.token), {}, {
|
|
65
65
|
// 外部透传主题时,如果没有传入colorPrimary 默认使用主项目内主题色
|
|
66
|
-
colorPrimary: (props === null || props === void 0 || (_props$theme = props.theme) === null || _props$theme === void 0 || (_props$theme = _props$theme.token) === null || _props$theme === void 0 ? void 0 : _props$theme.colorPrimary) || themeColor || '#
|
|
66
|
+
colorPrimary: (props === null || props === void 0 || (_props$theme = props.theme) === null || _props$theme === void 0 || (_props$theme = _props$theme.token) === null || _props$theme === void 0 ? void 0 : _props$theme.colorPrimary) || themeColor || '#5D3F9F'
|
|
67
67
|
})
|
|
68
68
|
});
|
|
69
69
|
}
|
|
@@ -100,10 +100,10 @@ var Page = function Page(props) {
|
|
|
100
100
|
colorErrorBg: '#FEF3F2',
|
|
101
101
|
colorErrorBorderHover: '#FDA29B',
|
|
102
102
|
colorErrorOutline: 'rgba(217, 45, 32, 0.06)',
|
|
103
|
-
colorLink: '#
|
|
104
|
-
colorLinkActive: '#
|
|
105
|
-
colorLinkHover: '#
|
|
106
|
-
// colorPrimaryActive: '#
|
|
103
|
+
colorLink: '#7F56DA',
|
|
104
|
+
colorLinkActive: '#5F3DA8',
|
|
105
|
+
colorLinkHover: '#6D48C4',
|
|
106
|
+
// colorPrimaryActive: '#5D3F9F',
|
|
107
107
|
// colorPrimaryBorder: '#E9D7FE',
|
|
108
108
|
colorText: '#344054',
|
|
109
109
|
colorTextDisabled: '#D0D5DD',
|
|
@@ -150,59 +150,25 @@ var Page = function Page(props) {
|
|
|
150
150
|
Select: {
|
|
151
151
|
fontSizeIcon: 16
|
|
152
152
|
// "lineHeight": 1
|
|
153
|
+
},
|
|
154
|
+
Menu: {
|
|
155
|
+
subMenuItemSelectedColor: "#9976e3"
|
|
153
156
|
}
|
|
154
157
|
},
|
|
155
158
|
token: {
|
|
156
|
-
colorPrimary: themeColor || '#
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
//
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
colorSuccessBorder: '#ABEFC6',
|
|
170
|
-
colorSuccessBorderHover: '#75E0A7',
|
|
171
|
-
colorSuccessHover: '#067647',
|
|
172
|
-
colorSuccessText: '#067647',
|
|
173
|
-
colorSuccessActive: '#085D3A',
|
|
174
|
-
colorSuccessTextHover: '#085D3A',
|
|
175
|
-
colorSuccessTextActive: '#074D31',
|
|
176
|
-
colorWarning: '#dc6803',
|
|
177
|
-
colorWarningBg: '#FFFAEB',
|
|
178
|
-
colorWarningBgHover: '#FEF0C7',
|
|
179
|
-
colorWarningBorder: '#FEDF89',
|
|
180
|
-
colorWarningBorderHover: '#FEC84B',
|
|
181
|
-
colorWarningHover: '#B54708',
|
|
182
|
-
colorWarningText: '#B54708',
|
|
183
|
-
colorWarningActive: '#93370D',
|
|
184
|
-
colorWarningTextHover: '#93370D',
|
|
185
|
-
colorWarningTextActive: '#7A2E0E',
|
|
186
|
-
colorError: '#d92d20',
|
|
187
|
-
colorErrorBg: '#FEF3F2',
|
|
188
|
-
colorErrorBgHover: '#FEE4E2',
|
|
189
|
-
colorErrorBorder: '#FECDCA',
|
|
190
|
-
colorErrorBorderHover: '#FDA29B',
|
|
191
|
-
colorErrorHover: '#B42318',
|
|
192
|
-
colorErrorText: '#B42318',
|
|
193
|
-
colorErrorActive: '#912018',
|
|
194
|
-
colorErrorTextHover: '#912018',
|
|
195
|
-
colorErrorTextActive: '#7A271A',
|
|
196
|
-
colorInfo: '#1570ef',
|
|
197
|
-
colorInfoBg: '#EFF8FF',
|
|
198
|
-
colorInfoBgHover: '#D1E9FF',
|
|
199
|
-
colorInfoBorder: '#B2DDFF',
|
|
200
|
-
colorInfoBorderHover: '#84CAFF',
|
|
201
|
-
colorInfoHover: '#175CD3',
|
|
202
|
-
colorInfoText: '#175CD3',
|
|
203
|
-
colorInfoActive: '#1849A9',
|
|
204
|
-
colorInfoTextHover: '#1849A9',
|
|
205
|
-
colorInfoTextActive: '#194185',
|
|
159
|
+
colorPrimary: themeColor || '#5D3F9F',
|
|
160
|
+
colorPrimaryBg: '#eee5ff',
|
|
161
|
+
colorPrimaryBgHover: '#e4d9fc',
|
|
162
|
+
colorPrimaryBorder: '#d4c3f7',
|
|
163
|
+
colorSuccess: '#5f9e3f',
|
|
164
|
+
colorInfo: '#5d3f9f',
|
|
165
|
+
colorError: '#f5222d',
|
|
166
|
+
colorSuccessBg: '#e5fcd9',
|
|
167
|
+
colorSuccessBgHover: '#d5f7c3',
|
|
168
|
+
// 链接色
|
|
169
|
+
colorLink: '#7F56DA',
|
|
170
|
+
colorLinkActive: '#5F3DA8',
|
|
171
|
+
colorLinkHover: '#6D48C4',
|
|
206
172
|
colorText: '#101828',
|
|
207
173
|
colorTextSecondary: '#475467',
|
|
208
174
|
colorTextTertiary: '#667085',
|
|
@@ -226,7 +192,7 @@ var Page = function Page(props) {
|
|
|
226
192
|
return createTheme({
|
|
227
193
|
palette: {
|
|
228
194
|
primary: {
|
|
229
|
-
main: ((_theme$token = theme.token) === null || _theme$token === void 0 ? void 0 : _theme$token.colorPrimary) || '#
|
|
195
|
+
main: ((_theme$token = theme.token) === null || _theme$token === void 0 ? void 0 : _theme$token.colorPrimary) || '#5D3F9F'
|
|
230
196
|
}
|
|
231
197
|
}
|
|
232
198
|
});
|
|
@@ -255,7 +221,7 @@ var Page = function Page(props) {
|
|
|
255
221
|
variables: ((_context$engine2 = context.engine) === null || _context$engine2 === void 0 || (_context$engine2 = _context$engine2.props) === null || _context$engine2 === void 0 ? void 0 : _context$engine2.variables) || {}
|
|
256
222
|
}, /*#__PURE__*/React.createElement("div", {
|
|
257
223
|
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
258
|
-
'--theme-color': themeColor || '#
|
|
224
|
+
'--theme-color': themeColor || '#5D3F9F'
|
|
259
225
|
}),
|
|
260
226
|
className: className
|
|
261
227
|
}, children))))))));
|
|
@@ -19,5 +19,5 @@ export interface PisellAnchorProps {
|
|
|
19
19
|
*/
|
|
20
20
|
platform?: 'pc' | 'h5';
|
|
21
21
|
}
|
|
22
|
-
declare const PisellAnchor: React.
|
|
22
|
+
declare const PisellAnchor: React.FC<PisellAnchorProps>;
|
|
23
23
|
export default PisellAnchor;
|