@pisell/materials 6.0.11 → 6.0.13
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 -15
- package/build/lowcode/assets-dev.json +2 -6
- package/build/lowcode/assets-prod.json +11 -15
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +7 -7
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +18 -18
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +18 -18
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.js +94 -3
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.js +7 -6
- package/es/components/dataSourceComponents/dataSourceForm/type.d.ts +8 -0
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceForm/utils.js +117 -38
- package/es/components/dataSourceComponents/dataSourceMenu/index.d.ts +2 -0
- package/es/components/dataSourceComponents/dataSourceMenu/index.js +19 -0
- package/es/components/dataSourceComponents/dataSourceTable/BaseTable.js +46 -8
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +2 -2
- package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.js +90 -35
- package/es/components/dataSourceComponents/fields/Input.Mobile/index.js +11 -1
- package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.js +73 -19
- package/es/components/dataSourceComponents/fields/Input.Subdomain/WithMode.d.ts +4 -2
- package/es/components/dataSourceComponents/fields/Input.Subdomain/WithMode.js +163 -52
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +4 -2
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.js +2 -2
- package/es/components/dataSourceComponents/fields/Input.Subdomain/serve.d.ts +3 -13
- package/es/components/dataSourceComponents/fields/Input.Subdomain/serve.js +15 -13
- package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.js +15 -4
- package/es/components/dataSourceComponents/fields/Translation/type.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Upload/BaseUpload.js +17 -13
- package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Upload/ReadPretty.js +4 -2
- package/es/components/dataSourceComponents/fields/Upload/WithMode.js +5 -4
- package/es/components/dataSourceComponents/fields/Upload/index.less +1 -1
- package/es/components/dataSourceComponents/fields/Upload/serve.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Upload/serve.js +5 -5
- package/es/components/dataSourceComponents/fields/Upload/type.d.ts +8 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +8 -4
- package/es/components/dataSourceComponents/fields/type.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/utils.js +1 -0
- package/es/components/dataSourceComponents/provider/actions/ActionsContext.d.ts +6 -1
- package/es/components/dataSourceComponents/provider/actions/ActionsProvider.d.ts +4 -1
- package/es/components/dataSourceComponents/provider/actions/ActionsProvider.js +0 -1
- package/es/components/form/index.js +12 -0
- package/es/components/iconfont/index.js +1 -1
- package/es/components/pisellDraggable/components/Action/Action.d.ts +10 -0
- package/es/components/pisellDraggable/components/Action/Action.js +31 -0
- package/es/components/pisellDraggable/components/Action/Action.less +50 -0
- package/es/components/pisellDraggable/components/Action/index.d.ts +2 -0
- package/es/components/pisellDraggable/components/Action/index.js +1 -0
- package/es/components/pisellDraggable/components/Handle/Handle.d.ts +3 -0
- package/es/components/pisellDraggable/components/Handle/Handle.js +15 -0
- package/es/components/pisellDraggable/components/Handle/index.d.ts +1 -0
- package/es/components/pisellDraggable/components/Handle/index.js +1 -0
- package/es/components/pisellDraggable/components/Remove/Remove.d.ts +3 -0
- package/es/components/pisellDraggable/components/Remove/Remove.js +17 -0
- package/es/components/pisellDraggable/components/Remove/index.d.ts +1 -0
- package/es/components/pisellDraggable/components/Remove/index.js +1 -0
- package/es/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +8 -0
- package/es/components/pisellDraggable/components/TreeItem/SortableTreeItem.js +51 -0
- package/es/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +21 -0
- package/es/components/pisellDraggable/components/TreeItem/TreeItem.js +57 -0
- package/es/components/pisellDraggable/components/TreeItem/TreeItem.less +128 -0
- package/es/components/pisellDraggable/components/TreeItem/index.d.ts +2 -0
- package/es/components/pisellDraggable/components/TreeItem/index.js +2 -0
- package/es/components/pisellDraggable/components/index.d.ts +4 -0
- package/es/components/pisellDraggable/components/index.js +4 -0
- package/es/components/pisellDraggable/index.d.ts +27 -0
- package/es/components/pisellDraggable/index.js +380 -0
- package/es/components/pisellDraggable/types.d.ts +17 -0
- package/es/components/pisellDraggable/types.js +1 -0
- package/es/components/pisellDraggable/utilities.d.ts +17 -0
- package/es/components/pisellDraggable/utilities.js +230 -0
- package/es/components/pisellLayout/content.d.ts +1 -0
- package/es/components/pisellLayout/content.js +19 -2
- package/es/components/pisellMenu/PisellMenu.d.ts +5 -0
- package/es/components/pisellMenu/PisellMenu.js +55 -0
- package/es/components/pisellMenu/PisellMenu.less +53 -0
- package/es/components/pisellMenu/index.d.ts +3 -0
- package/es/components/pisellMenu/index.js +2 -0
- package/es/components/pisellMenu/types.d.ts +30 -0
- package/es/components/pisellMenu/types.js +1 -0
- package/es/components/pisellModal/components/functions/index.less +3 -0
- package/es/components/versionModal/index.d.ts +15 -0
- package/es/components/versionModal/index.js +192 -0
- package/es/components/versionModal/index.less +3 -0
- package/es/index.d.ts +5 -0
- package/es/index.js +5 -1
- package/es/locales/en-US.d.ts +22 -0
- package/es/locales/en-US.js +24 -1
- package/es/locales/zh-CN.d.ts +21 -0
- package/es/locales/zh-CN.js +24 -2
- package/es/locales/zh-TW.d.ts +20 -0
- package/es/locales/zh-TW.js +23 -2
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.js +77 -4
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.js +1 -0
- package/lib/components/dataSourceComponents/dataSourceForm/type.d.ts +8 -0
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceForm/utils.js +132 -41
- package/lib/components/dataSourceComponents/dataSourceMenu/index.d.ts +2 -0
- package/lib/components/dataSourceComponents/dataSourceMenu/index.js +45 -0
- package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.js +14 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +2 -2
- package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.js +44 -29
- package/lib/components/dataSourceComponents/fields/Input.Mobile/index.js +11 -1
- package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.js +34 -17
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/WithMode.d.ts +4 -2
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/WithMode.js +96 -36
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +4 -2
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/serve.d.ts +3 -13
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/serve.js +19 -14
- package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.js +15 -4
- package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Upload/BaseUpload.js +5 -3
- package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.js +2 -2
- package/lib/components/dataSourceComponents/fields/Upload/WithMode.js +4 -4
- package/lib/components/dataSourceComponents/fields/Upload/index.less +1 -1
- package/lib/components/dataSourceComponents/fields/Upload/serve.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Upload/serve.js +5 -5
- package/lib/components/dataSourceComponents/fields/Upload/type.d.ts +8 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +8 -4
- package/lib/components/dataSourceComponents/fields/type.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/utils.js +1 -0
- package/lib/components/dataSourceComponents/provider/actions/ActionsContext.d.ts +6 -1
- package/lib/components/dataSourceComponents/provider/actions/ActionsProvider.d.ts +4 -1
- package/lib/components/form/index.js +10 -1
- package/lib/components/iconfont/index.js +1 -1
- package/lib/components/pisellDraggable/components/Action/Action.d.ts +10 -0
- package/lib/components/pisellDraggable/components/Action/Action.js +60 -0
- package/lib/components/pisellDraggable/components/Action/Action.less +50 -0
- package/lib/components/pisellDraggable/components/Action/index.d.ts +2 -0
- package/lib/components/pisellDraggable/components/Action/index.js +29 -0
- package/lib/components/pisellDraggable/components/Handle/Handle.d.ts +3 -0
- package/lib/components/pisellDraggable/components/Handle/Handle.js +54 -0
- package/lib/components/pisellDraggable/components/Handle/index.d.ts +1 -0
- package/lib/components/pisellDraggable/components/Handle/index.js +29 -0
- package/lib/components/pisellDraggable/components/Remove/Remove.d.ts +3 -0
- package/lib/components/pisellDraggable/components/Remove/Remove.js +53 -0
- package/lib/components/pisellDraggable/components/Remove/index.d.ts +1 -0
- package/lib/components/pisellDraggable/components/Remove/index.js +29 -0
- package/lib/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +8 -0
- package/lib/components/pisellDraggable/components/TreeItem/SortableTreeItem.js +83 -0
- package/lib/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +21 -0
- package/lib/components/pisellDraggable/components/TreeItem/TreeItem.js +93 -0
- package/lib/components/pisellDraggable/components/TreeItem/TreeItem.less +128 -0
- package/lib/components/pisellDraggable/components/TreeItem/index.d.ts +2 -0
- package/lib/components/pisellDraggable/components/TreeItem/index.js +32 -0
- package/lib/components/pisellDraggable/components/index.d.ts +4 -0
- package/lib/components/pisellDraggable/components/index.js +40 -0
- package/lib/components/pisellDraggable/index.d.ts +27 -0
- package/lib/components/pisellDraggable/index.js +271 -0
- package/lib/components/pisellDraggable/types.d.ts +17 -0
- package/lib/components/pisellDraggable/types.js +17 -0
- package/lib/components/pisellDraggable/utilities.d.ts +17 -0
- package/lib/components/pisellDraggable/utilities.js +190 -0
- package/lib/components/pisellLayout/content.d.ts +1 -0
- package/lib/components/pisellLayout/content.js +9 -1
- package/lib/components/pisellMenu/PisellMenu.d.ts +5 -0
- package/lib/components/pisellMenu/PisellMenu.js +91 -0
- package/lib/components/pisellMenu/PisellMenu.less +53 -0
- package/lib/components/pisellMenu/index.d.ts +3 -0
- package/lib/components/pisellMenu/index.js +36 -0
- package/lib/components/pisellMenu/types.d.ts +30 -0
- package/lib/components/pisellMenu/types.js +17 -0
- package/lib/components/pisellModal/components/functions/index.less +3 -0
- package/lib/components/versionModal/index.d.ts +15 -0
- package/lib/components/versionModal/index.js +219 -0
- package/lib/components/versionModal/index.less +3 -0
- package/lib/index.d.ts +5 -0
- package/lib/index.js +12 -0
- package/lib/locales/en-US.d.ts +22 -0
- package/lib/locales/en-US.js +24 -1
- package/lib/locales/zh-CN.d.ts +21 -0
- package/lib/locales/zh-CN.js +24 -2
- package/lib/locales/zh-TW.d.ts +20 -0
- package/lib/locales/zh-TW.js +23 -2
- package/lowcode/_utils/defaultSchema.ts +23 -2
- package/lowcode/button/meta.ts +4 -20
- package/lowcode/data-source-form/meta.ts +138 -1
- package/lowcode/data-source-form/snippets.ts +54 -0
- package/lowcode/data-source-menu/meta.ts +122 -0
- package/lowcode/data-source-table/meta.ts +32 -27
- package/lowcode/data-source-table/utils.tsx +33 -1
- package/lowcode/data-source-wrapper/meta.ts +6 -2
- package/lowcode/form-group/meta.ts +5 -1
- package/lowcode/form-item-input.mobile/__screenshots__/mobile.png +0 -0
- package/lowcode/form-item-input.mobile/meta.ts +36 -46
- package/lowcode/form-item-input.mobile/snippets.ts +8 -2
- package/lowcode/form-item-input.phone/meta.ts +8 -42
- package/lowcode/form-item-input.phone/snippets.ts +6 -0
- package/lowcode/form-item-input.subdomain/__screenshots__/subdomain.png +0 -0
- package/lowcode/form-item-input.subdomain/meta.ts +20 -6
- package/lowcode/form-item-input.subdomain/snippets.ts +10 -11
- package/lowcode/form-item-translation/meta.ts +59 -1
- package/lowcode/form.item/meta.ts +48 -0
- package/lowcode/pisell-content/meta.ts +12 -9
- package/lowcode/pisell-draggable/meta.ts +190 -0
- package/lowcode/pisell-layout/meta.ts +9 -9
- package/lowcode/pisell-menu/meta.ts +112 -0
- package/package.json +2 -2
- package/lowcode/form-item-input.mobile/__screenshots__/phone.png +0 -0
|
@@ -2,6 +2,7 @@ import type { LayoutProps } from 'antd';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
export interface PisellContentProps extends Omit<LayoutProps, 'prefixCls'> {
|
|
4
4
|
children?: React.ReactNode;
|
|
5
|
+
__designMode?: string;
|
|
5
6
|
}
|
|
6
7
|
declare const PisellContent: React.FC<PisellContentProps>;
|
|
7
8
|
export default PisellContent;
|
|
@@ -2,11 +2,28 @@ var _excluded = ["children"];
|
|
|
2
2
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
3
3
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
4
4
|
import { Layout } from 'antd';
|
|
5
|
-
import React from 'react';
|
|
5
|
+
import React, { useMemo } from 'react';
|
|
6
|
+
import useEngineContext from "../../hooks/useEngineContext";
|
|
6
7
|
var Content = Layout.Content;
|
|
7
8
|
var PisellContent = function PisellContent(props) {
|
|
8
9
|
var children = props.children,
|
|
9
10
|
rest = _objectWithoutProperties(props, _excluded);
|
|
10
|
-
|
|
11
|
+
var lowCodeProps = useEngineContext();
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @title: 内容
|
|
15
|
+
* @description: 该组件的children默认注入页面内容
|
|
16
|
+
* @param {*} useMemo
|
|
17
|
+
* @return {*}
|
|
18
|
+
* @Author: zhiwei.Wang
|
|
19
|
+
*/
|
|
20
|
+
var pageContent = useMemo(function () {
|
|
21
|
+
// 引擎模式下没有页面内容, 只展示提示
|
|
22
|
+
if (props.__designMode === 'design') {
|
|
23
|
+
return 'Page content';
|
|
24
|
+
}
|
|
25
|
+
return lowCodeProps.children;
|
|
26
|
+
}, [props.__designMode]);
|
|
27
|
+
return /*#__PURE__*/React.createElement(Content, rest, children, pageContent);
|
|
11
28
|
};
|
|
12
29
|
export default PisellContent;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
var _excluded = ["className", "style", "mode", "theme", "defaultOpenKeys", "defaultSelectedKeys", "inlineCollapsed", "openKeys", "selectedKeys", "onOpenChange", "onSelect", "dataSource", "__designMode"];
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
|
+
import { Menu as AntdMenu } from 'antd';
|
|
6
|
+
import React, { useMemo } from 'react';
|
|
7
|
+
import "./PisellMenu.less";
|
|
8
|
+
var PisellMenu = function PisellMenu(_ref) {
|
|
9
|
+
var className = _ref.className,
|
|
10
|
+
style = _ref.style,
|
|
11
|
+
_ref$mode = _ref.mode,
|
|
12
|
+
mode = _ref$mode === void 0 ? 'vertical' : _ref$mode,
|
|
13
|
+
_ref$theme = _ref.theme,
|
|
14
|
+
theme = _ref$theme === void 0 ? 'light' : _ref$theme,
|
|
15
|
+
defaultOpenKeys = _ref.defaultOpenKeys,
|
|
16
|
+
defaultSelectedKeys = _ref.defaultSelectedKeys,
|
|
17
|
+
inlineCollapsed = _ref.inlineCollapsed,
|
|
18
|
+
openKeys = _ref.openKeys,
|
|
19
|
+
selectedKeys = _ref.selectedKeys,
|
|
20
|
+
onOpenChange = _ref.onOpenChange,
|
|
21
|
+
onSelect = _ref.onSelect,
|
|
22
|
+
dataSource = _ref.dataSource,
|
|
23
|
+
__designMode = _ref.__designMode,
|
|
24
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
25
|
+
var _dataSource = useMemo(function () {
|
|
26
|
+
if (Array.isArray(dataSource)) {
|
|
27
|
+
return dataSource;
|
|
28
|
+
}
|
|
29
|
+
if (__designMode === 'design') {
|
|
30
|
+
return [{
|
|
31
|
+
label: '菜单项1',
|
|
32
|
+
key: 'item-1'
|
|
33
|
+
}, {
|
|
34
|
+
label: '菜单项2',
|
|
35
|
+
key: 'item-2'
|
|
36
|
+
}];
|
|
37
|
+
}
|
|
38
|
+
return [];
|
|
39
|
+
}, [dataSource]);
|
|
40
|
+
return /*#__PURE__*/React.createElement(AntdMenu, _extends({
|
|
41
|
+
className: "pisell-menu ".concat(className || ''),
|
|
42
|
+
style: style,
|
|
43
|
+
items: _dataSource,
|
|
44
|
+
mode: mode,
|
|
45
|
+
theme: theme,
|
|
46
|
+
defaultOpenKeys: defaultOpenKeys,
|
|
47
|
+
defaultSelectedKeys: defaultSelectedKeys,
|
|
48
|
+
inlineCollapsed: inlineCollapsed,
|
|
49
|
+
openKeys: openKeys,
|
|
50
|
+
selectedKeys: selectedKeys,
|
|
51
|
+
onOpenChange: onOpenChange,
|
|
52
|
+
onSelect: onSelect
|
|
53
|
+
}, restProps));
|
|
54
|
+
};
|
|
55
|
+
export default PisellMenu;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
.pisell-menu {
|
|
2
|
+
&.ant-menu {
|
|
3
|
+
border-right: none;
|
|
4
|
+
|
|
5
|
+
&.ant-menu-dark {
|
|
6
|
+
background: #001529;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.ant-menu-item {
|
|
11
|
+
&:hover {
|
|
12
|
+
color: #1890ff;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&.ant-menu-item-selected {
|
|
16
|
+
background-color: #e6f7ff;
|
|
17
|
+
color: #1890ff;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.ant-menu-submenu {
|
|
22
|
+
&-title:hover {
|
|
23
|
+
color: #1890ff;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&-selected>.ant-menu-submenu-title {
|
|
27
|
+
color: #1890ff;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&.ant-menu-dark {
|
|
32
|
+
.ant-menu-item {
|
|
33
|
+
&:hover {
|
|
34
|
+
color: #fff;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&.ant-menu-item-selected {
|
|
38
|
+
background-color: #1890ff;
|
|
39
|
+
color: #fff;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.ant-menu-submenu {
|
|
44
|
+
&-title:hover {
|
|
45
|
+
color: #fff;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&-selected>.ant-menu-submenu-title {
|
|
49
|
+
color: #fff;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { MenuProps } from 'antd';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
export interface PisellMenuProps extends Omit<MenuProps, 'items'> {
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
mode?: 'vertical' | 'horizontal' | 'inline';
|
|
7
|
+
theme?: 'light' | 'dark';
|
|
8
|
+
defaultOpenKeys?: string[];
|
|
9
|
+
defaultSelectedKeys?: string[];
|
|
10
|
+
inlineCollapsed?: boolean;
|
|
11
|
+
openKeys?: string[];
|
|
12
|
+
selectedKeys?: string[];
|
|
13
|
+
onOpenChange?: (openKeys: string[]) => void;
|
|
14
|
+
onSelect?: (info: {
|
|
15
|
+
key: string;
|
|
16
|
+
keyPath: string[];
|
|
17
|
+
item: ReactNode;
|
|
18
|
+
domEvent: Event;
|
|
19
|
+
selectedKeys: string[];
|
|
20
|
+
}) => void;
|
|
21
|
+
dataSource?: any;
|
|
22
|
+
__designMode?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface MenuItemType {
|
|
25
|
+
label: ReactNode;
|
|
26
|
+
key: string;
|
|
27
|
+
icon?: ReactNode;
|
|
28
|
+
children?: MenuItemType[];
|
|
29
|
+
type?: 'group' | 'divider';
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface PublishVersionModalProps {
|
|
4
|
+
visible: boolean;
|
|
5
|
+
currentVersion: string;
|
|
6
|
+
onCancel: () => void;
|
|
7
|
+
onConfirm: (data: VersionData) => void;
|
|
8
|
+
isShowNote?: boolean;
|
|
9
|
+
}
|
|
10
|
+
interface VersionData {
|
|
11
|
+
version: string;
|
|
12
|
+
note: string;
|
|
13
|
+
}
|
|
14
|
+
declare const PublishVersionModal: React.FC<PublishVersionModalProps>;
|
|
15
|
+
export default PublishVersionModal;
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import React, { useEffect, useState } from 'react';
|
|
8
|
+
import { Radio, Input, Form, Row, Col, message, InputNumber } from 'antd';
|
|
9
|
+
import PisellModal from "../pisellModal";
|
|
10
|
+
import { getText } from "../../locales";
|
|
11
|
+
import "./index.less";
|
|
12
|
+
var style = {
|
|
13
|
+
display: 'flex',
|
|
14
|
+
flexDirection: 'column',
|
|
15
|
+
gap: 8
|
|
16
|
+
};
|
|
17
|
+
var parseVersion = function parseVersion(version) {
|
|
18
|
+
var _version$split$map = version.split('.').map(Number),
|
|
19
|
+
_version$split$map2 = _slicedToArray(_version$split$map, 3),
|
|
20
|
+
major = _version$split$map2[0],
|
|
21
|
+
minor = _version$split$map2[1],
|
|
22
|
+
patch = _version$split$map2[2];
|
|
23
|
+
return [major || 0, minor || 0, patch || 0];
|
|
24
|
+
};
|
|
25
|
+
var isVersionValid = function isVersionValid(customVersion, currentVersion) {
|
|
26
|
+
var _parseVersion = parseVersion(customVersion),
|
|
27
|
+
_parseVersion2 = _slicedToArray(_parseVersion, 3),
|
|
28
|
+
cMajor = _parseVersion2[0],
|
|
29
|
+
cMinor = _parseVersion2[1],
|
|
30
|
+
cPatch = _parseVersion2[2];
|
|
31
|
+
var _parseVersion3 = parseVersion(currentVersion),
|
|
32
|
+
_parseVersion4 = _slicedToArray(_parseVersion3, 3),
|
|
33
|
+
liveMajor = _parseVersion4[0],
|
|
34
|
+
liveMinor = _parseVersion4[1],
|
|
35
|
+
livePatch = _parseVersion4[2];
|
|
36
|
+
|
|
37
|
+
// 版本号必须大于当前版本
|
|
38
|
+
if (cMajor > liveMajor) return true;
|
|
39
|
+
if (cMajor === liveMajor && cMinor > liveMinor) return true;
|
|
40
|
+
if (cMajor === liveMajor && cMinor === liveMinor && cPatch > livePatch) return true;
|
|
41
|
+
return false;
|
|
42
|
+
};
|
|
43
|
+
var getNextVersions = function getNextVersions(version) {
|
|
44
|
+
var _parseVersion5 = parseVersion(version),
|
|
45
|
+
_parseVersion6 = _slicedToArray(_parseVersion5, 3),
|
|
46
|
+
major = _parseVersion6[0],
|
|
47
|
+
minor = _parseVersion6[1],
|
|
48
|
+
patch = _parseVersion6[2];
|
|
49
|
+
return {
|
|
50
|
+
patch: "".concat(major, ".").concat(minor, ".").concat(patch + 1),
|
|
51
|
+
minor: "".concat(major, ".").concat(minor + 1, ".0"),
|
|
52
|
+
major: "".concat(major + 1, ".0.0")
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
var PublishVersionModal = function PublishVersionModal(_ref) {
|
|
56
|
+
var visible = _ref.visible,
|
|
57
|
+
_ref$currentVersion = _ref.currentVersion,
|
|
58
|
+
currentVersion = _ref$currentVersion === void 0 ? '1.0.0' : _ref$currentVersion,
|
|
59
|
+
onCancel = _ref.onCancel,
|
|
60
|
+
onConfirm = _ref.onConfirm,
|
|
61
|
+
_ref$isShowNote = _ref.isShowNote,
|
|
62
|
+
isShowNote = _ref$isShowNote === void 0 ? true : _ref$isShowNote;
|
|
63
|
+
var _Form$useForm = Form.useForm(),
|
|
64
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
65
|
+
form = _Form$useForm2[0];
|
|
66
|
+
var _useState = useState('patch'),
|
|
67
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
68
|
+
versionType = _useState2[0],
|
|
69
|
+
setVersionType = _useState2[1];
|
|
70
|
+
var _getNextVersions = getNextVersions(currentVersion),
|
|
71
|
+
patch = _getNextVersions.patch,
|
|
72
|
+
minor = _getNextVersions.minor,
|
|
73
|
+
major = _getNextVersions.major;
|
|
74
|
+
var handleVersionChange = function handleVersionChange(e) {
|
|
75
|
+
setVersionType(e.target.value);
|
|
76
|
+
};
|
|
77
|
+
var handleSubmit = function handleSubmit() {
|
|
78
|
+
form.validateFields().then(function (values) {
|
|
79
|
+
var version = values.version,
|
|
80
|
+
note = values.note;
|
|
81
|
+
if (version === 'custom') {
|
|
82
|
+
if (!isVersionValid("".concat(values.major, ".").concat(values.minor, ".").concat(values.patch), currentVersion)) {
|
|
83
|
+
message.error(getText('pisell-version-modal-version-error'));
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
version = "".concat(values.major, ".").concat(values.minor, ".").concat(values.patch);
|
|
87
|
+
}
|
|
88
|
+
onConfirm({
|
|
89
|
+
version: version,
|
|
90
|
+
note: note
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
useEffect(function () {
|
|
95
|
+
if (visible) {
|
|
96
|
+
form.setFieldsValue({
|
|
97
|
+
version: patch,
|
|
98
|
+
major: parseVersion(patch)[0] || 0,
|
|
99
|
+
minor: parseVersion(patch)[1] || 0,
|
|
100
|
+
patch: parseVersion(patch)[2] || 0
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}, [visible]);
|
|
104
|
+
return /*#__PURE__*/React.createElement(PisellModal, {
|
|
105
|
+
title: getText('pisell-version-modal-title'),
|
|
106
|
+
open: visible,
|
|
107
|
+
onCancel: onCancel,
|
|
108
|
+
destroyOnClose: true,
|
|
109
|
+
onOk: handleSubmit,
|
|
110
|
+
okText: getText('pisell-version-modal-confirm'),
|
|
111
|
+
cancelText: getText('pisell-version-modal-cancel')
|
|
112
|
+
}, /*#__PURE__*/React.createElement(Form, {
|
|
113
|
+
form: form,
|
|
114
|
+
layout: "vertical",
|
|
115
|
+
preserve: false,
|
|
116
|
+
className: "pisell-lowcode-version-modal-form"
|
|
117
|
+
}, /*#__PURE__*/React.createElement("p", null, getText('pisell-version-modal-current-version'), ": ", currentVersion), /*#__PURE__*/React.createElement(Form.Item, {
|
|
118
|
+
label: getText('pisell-version-modal-version'),
|
|
119
|
+
name: "version",
|
|
120
|
+
initialValue: "patch",
|
|
121
|
+
rules: [{
|
|
122
|
+
required: true
|
|
123
|
+
}]
|
|
124
|
+
}, /*#__PURE__*/React.createElement(Radio.Group, {
|
|
125
|
+
onChange: handleVersionChange,
|
|
126
|
+
style: style
|
|
127
|
+
}, /*#__PURE__*/React.createElement(Radio, {
|
|
128
|
+
value: patch
|
|
129
|
+
}, getText('pisell-version-modal-patch'), " (", patch, ")"), /*#__PURE__*/React.createElement(Radio, {
|
|
130
|
+
value: minor
|
|
131
|
+
}, getText('pisell-version-modal-minor'), " (", minor, ")"), /*#__PURE__*/React.createElement(Radio, {
|
|
132
|
+
value: major
|
|
133
|
+
}, getText('pisell-version-modal-major'), " (", major, ")"), /*#__PURE__*/React.createElement(Radio, {
|
|
134
|
+
value: "custom"
|
|
135
|
+
}, getText('pisell-version-modal-custom')))), versionType === 'custom' && /*#__PURE__*/React.createElement(Row, {
|
|
136
|
+
gutter: 8
|
|
137
|
+
}, /*#__PURE__*/React.createElement(Col, {
|
|
138
|
+
span: 8
|
|
139
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
140
|
+
name: "major",
|
|
141
|
+
label: getText('pisell-version-modal-major'),
|
|
142
|
+
rules: [{
|
|
143
|
+
required: true,
|
|
144
|
+
message: getText('pisell-version-modal-version-required')
|
|
145
|
+
}]
|
|
146
|
+
}, /*#__PURE__*/React.createElement(InputNumber, {
|
|
147
|
+
min: 0,
|
|
148
|
+
precision: 0,
|
|
149
|
+
style: {
|
|
150
|
+
width: '100%'
|
|
151
|
+
},
|
|
152
|
+
placeholder: getText('pisell-version-modal-major')
|
|
153
|
+
}))), /*#__PURE__*/React.createElement(Col, {
|
|
154
|
+
span: 8
|
|
155
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
156
|
+
name: "minor",
|
|
157
|
+
label: getText('pisell-version-modal-minor'),
|
|
158
|
+
rules: [{
|
|
159
|
+
required: true,
|
|
160
|
+
message: getText('pisell-version-modal-version-required')
|
|
161
|
+
}]
|
|
162
|
+
}, /*#__PURE__*/React.createElement(InputNumber, {
|
|
163
|
+
precision: 0,
|
|
164
|
+
min: 0,
|
|
165
|
+
style: {
|
|
166
|
+
width: '100%'
|
|
167
|
+
},
|
|
168
|
+
placeholder: getText('pisell-version-modal-minor')
|
|
169
|
+
}))), /*#__PURE__*/React.createElement(Col, {
|
|
170
|
+
span: 8
|
|
171
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
172
|
+
name: "patch",
|
|
173
|
+
label: getText('pisell-version-modal-patch'),
|
|
174
|
+
rules: [{
|
|
175
|
+
required: true,
|
|
176
|
+
message: getText('pisell-version-modal-version-required')
|
|
177
|
+
}]
|
|
178
|
+
}, /*#__PURE__*/React.createElement(InputNumber, {
|
|
179
|
+
min: 0,
|
|
180
|
+
precision: 0,
|
|
181
|
+
style: {
|
|
182
|
+
width: '100%'
|
|
183
|
+
},
|
|
184
|
+
placeholder: getText('pisell-version-modal-patch')
|
|
185
|
+
})))), isShowNote && /*#__PURE__*/React.createElement(Form.Item, {
|
|
186
|
+
label: getText('pisell-version-modal-update-notes'),
|
|
187
|
+
name: "note"
|
|
188
|
+
}, /*#__PURE__*/React.createElement(Input.TextArea, {
|
|
189
|
+
placeholder: getText('pisell-version-modal-describe-update-notes')
|
|
190
|
+
}))));
|
|
191
|
+
};
|
|
192
|
+
export default PublishVersionModal;
|
package/es/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export { default as DataSourceForm } from './components/dataSourceComponents/dat
|
|
|
13
13
|
export { default as FormGroup } from './components/dataSourceComponents/dataSourceForm/group';
|
|
14
14
|
export { default as JsonWrapper } from './components/dataSourceComponents/dataSourceForm/provider/jsonWrapper/JsonWrapperProvider';
|
|
15
15
|
export { default as SubmitButton } from './components/dataSourceComponents/dataSourceForm/submitButton';
|
|
16
|
+
export { default as DataSourceMenu } from './components/dataSourceComponents/dataSourceMenu';
|
|
16
17
|
export { default as DataSourceImage } from './components/dataSourceComponents/dataSourceShow/dataSourceImage';
|
|
17
18
|
export { default as DataSourceQRCode } from './components/dataSourceComponents/dataSourceShow/dataSourceQRCode';
|
|
18
19
|
export { default as DataSourceTypography } from './components/dataSourceComponents/dataSourceShow/dataSourceTypography';
|
|
@@ -59,6 +60,7 @@ export { default as PisellCheckboxGroup } from './components/pisellCheckboxGroup
|
|
|
59
60
|
export { default as PisellContainer } from './components/pisellContainer';
|
|
60
61
|
export { default as PisellCountdown } from './components/pisellCountdown';
|
|
61
62
|
export { default as PisellDatePicker } from './components/pisellDatePicker';
|
|
63
|
+
export { default as PisellDraggable } from './components/pisellDraggable';
|
|
62
64
|
export { default as PisellEmpty } from './components/pisellEmpty';
|
|
63
65
|
export { default as PisellFloatingPanel } from './components/pisellFloatingPanel';
|
|
64
66
|
export { default as PisellInformationEntry } from './components/pisellInformationEntry';
|
|
@@ -70,6 +72,8 @@ export { default as PisellFooter } from './components/pisellLayout/footer';
|
|
|
70
72
|
export { default as PisellHeader } from './components/pisellLayout/header';
|
|
71
73
|
export { default as PisellSider } from './components/pisellLayout/sider';
|
|
72
74
|
export { default as PisellLoading } from './components/pisellLoading';
|
|
75
|
+
export { default as PisellMenu } from './components/pisellMenu';
|
|
76
|
+
export type { PisellMenuProps } from './components/pisellMenu/types';
|
|
73
77
|
export { default as PisellModal } from './components/pisellModal';
|
|
74
78
|
export { default as PisellRow } from './components/pisellRow';
|
|
75
79
|
export { default as PisellScan } from './components/pisellScan';
|
|
@@ -103,3 +107,4 @@ export { default as VirtualKeyboard } from './components/virtual-keyboard';
|
|
|
103
107
|
export { default as PisellPriceKeyboard } from './components/virtual-keyboard/Amount';
|
|
104
108
|
export { default as PisellNumberKeyboard } from './components/virtual-keyboard/Number';
|
|
105
109
|
export { default as VirtualKeyboardTime } from './components/virtual-keyboard/Time';
|
|
110
|
+
export { default as PublishVersionModal } from './components/versionModal';
|
package/es/index.js
CHANGED
|
@@ -13,6 +13,7 @@ export { default as DataSourceForm } from "./components/dataSourceComponents/dat
|
|
|
13
13
|
export { default as FormGroup } from "./components/dataSourceComponents/dataSourceForm/group";
|
|
14
14
|
export { default as JsonWrapper } from "./components/dataSourceComponents/dataSourceForm/provider/jsonWrapper/JsonWrapperProvider";
|
|
15
15
|
export { default as SubmitButton } from "./components/dataSourceComponents/dataSourceForm/submitButton";
|
|
16
|
+
export { default as DataSourceMenu } from "./components/dataSourceComponents/dataSourceMenu";
|
|
16
17
|
export { default as DataSourceImage } from "./components/dataSourceComponents/dataSourceShow/dataSourceImage";
|
|
17
18
|
export { default as DataSourceQRCode } from "./components/dataSourceComponents/dataSourceShow/dataSourceQRCode";
|
|
18
19
|
export { default as DataSourceTypography } from "./components/dataSourceComponents/dataSourceShow/dataSourceTypography";
|
|
@@ -59,6 +60,7 @@ export { default as PisellCheckboxGroup } from "./components/pisellCheckboxGroup
|
|
|
59
60
|
export { default as PisellContainer } from "./components/pisellContainer";
|
|
60
61
|
export { default as PisellCountdown } from "./components/pisellCountdown";
|
|
61
62
|
export { default as PisellDatePicker } from "./components/pisellDatePicker";
|
|
63
|
+
export { default as PisellDraggable } from "./components/pisellDraggable";
|
|
62
64
|
export { default as PisellEmpty } from "./components/pisellEmpty";
|
|
63
65
|
export { default as PisellFloatingPanel } from "./components/pisellFloatingPanel";
|
|
64
66
|
export { default as PisellInformationEntry } from "./components/pisellInformationEntry";
|
|
@@ -70,6 +72,7 @@ export { default as PisellFooter } from "./components/pisellLayout/footer";
|
|
|
70
72
|
export { default as PisellHeader } from "./components/pisellLayout/header";
|
|
71
73
|
export { default as PisellSider } from "./components/pisellLayout/sider";
|
|
72
74
|
export { default as PisellLoading } from "./components/pisellLoading";
|
|
75
|
+
export { default as PisellMenu } from "./components/pisellMenu";
|
|
73
76
|
export { default as PisellModal } from "./components/pisellModal";
|
|
74
77
|
export { default as PisellRow } from "./components/pisellRow";
|
|
75
78
|
export { default as PisellScan } from "./components/pisellScan";
|
|
@@ -103,4 +106,5 @@ export { default as Upload } from "./components/upload";
|
|
|
103
106
|
export { default as VirtualKeyboard } from "./components/virtual-keyboard";
|
|
104
107
|
export { default as PisellPriceKeyboard } from "./components/virtual-keyboard/Amount";
|
|
105
108
|
export { default as PisellNumberKeyboard } from "./components/virtual-keyboard/Number";
|
|
106
|
-
export { default as VirtualKeyboardTime } from "./components/virtual-keyboard/Time";
|
|
109
|
+
export { default as VirtualKeyboardTime } from "./components/virtual-keyboard/Time";
|
|
110
|
+
export { default as PublishVersionModal } from "./components/versionModal";
|
package/es/locales/en-US.d.ts
CHANGED
|
@@ -140,6 +140,8 @@ declare const _default: {
|
|
|
140
140
|
'pisell-data-source-form-max-length-message': (maxLength: number) => string;
|
|
141
141
|
'pisell-data-source-form-min-value-message': (minValue: number) => string;
|
|
142
142
|
'pisell-data-source-form-max-value-message': (maxValue: number) => string;
|
|
143
|
+
'pisell-data-source-form-mobile-message': string;
|
|
144
|
+
'pisell-data-source-form-pattern-message': string;
|
|
143
145
|
'pisell-number-format-thousand': string;
|
|
144
146
|
'pisell-number-format-million': string;
|
|
145
147
|
'pisell-number-format-billion': string;
|
|
@@ -163,5 +165,25 @@ declare const _default: {
|
|
|
163
165
|
'pisell-delete-confirm-cancel': string;
|
|
164
166
|
'pisell-design-mode-action-disabled': string;
|
|
165
167
|
'pisell-translation-original': string;
|
|
168
|
+
'pisell-version-modal-title': string;
|
|
169
|
+
'pisell-version-modal-current-version': string;
|
|
170
|
+
'pisell-version-modal-version': string;
|
|
171
|
+
'pisell-version-modal-update-notes': string;
|
|
172
|
+
'pisell-version-modal-patch': string;
|
|
173
|
+
'pisell-version-modal-minor': string;
|
|
174
|
+
'pisell-version-modal-major': string;
|
|
175
|
+
'pisell-version-modal-custom': string;
|
|
176
|
+
'pisell-version-modal-cancel': string;
|
|
177
|
+
'pisell-version-modal-confirm': string;
|
|
178
|
+
'pisell-version-modal-describe-update-notes': string;
|
|
179
|
+
'pisell-version-modal-version-error': string;
|
|
180
|
+
'pisell-version-modal-version-required': string;
|
|
181
|
+
'subdomain-error-too-short': string;
|
|
182
|
+
'subdomain-error-too-long': string;
|
|
183
|
+
'subdomain-error-pattern': string;
|
|
184
|
+
'subdomain-error-numbers-only': string;
|
|
185
|
+
'subdomain-error-hyphen-ends': string;
|
|
186
|
+
'subdomain-error-consecutive-hyphens': string;
|
|
187
|
+
'subdomain-error-required': string;
|
|
166
188
|
};
|
|
167
189
|
export default _default;
|
package/es/locales/en-US.js
CHANGED
|
@@ -176,6 +176,8 @@ export default {
|
|
|
176
176
|
'pisell-data-source-form-max-value-message': function pisellDataSourceFormMaxValueMessage(maxValue) {
|
|
177
177
|
return "Value must be less than or equal to ".concat(maxValue);
|
|
178
178
|
},
|
|
179
|
+
'pisell-data-source-form-mobile-message': 'Please enter a valid mobile number',
|
|
180
|
+
'pisell-data-source-form-pattern-message': 'Please enter the correct format',
|
|
179
181
|
// Number formatting
|
|
180
182
|
'pisell-number-format-thousand': 'K',
|
|
181
183
|
'pisell-number-format-million': 'M',
|
|
@@ -210,5 +212,26 @@ export default {
|
|
|
210
212
|
'pisell-delete-confirm-ok': 'Delete',
|
|
211
213
|
'pisell-delete-confirm-cancel': 'Cancel',
|
|
212
214
|
'pisell-design-mode-action-disabled': 'This operation is not allowed in edit mode',
|
|
213
|
-
'pisell-translation-original': 'Original'
|
|
215
|
+
'pisell-translation-original': 'Original',
|
|
216
|
+
'pisell-version-modal-title': 'Publish new version',
|
|
217
|
+
'pisell-version-modal-current-version': 'Current version',
|
|
218
|
+
'pisell-version-modal-version': 'Version',
|
|
219
|
+
'pisell-version-modal-update-notes': 'Update notes',
|
|
220
|
+
'pisell-version-modal-patch': 'Patch',
|
|
221
|
+
'pisell-version-modal-minor': 'Minor',
|
|
222
|
+
'pisell-version-modal-major': 'Major',
|
|
223
|
+
'pisell-version-modal-custom': 'Custom version',
|
|
224
|
+
'pisell-version-modal-cancel': 'Cancel',
|
|
225
|
+
'pisell-version-modal-confirm': 'Confirm',
|
|
226
|
+
'pisell-version-modal-describe-update-notes': 'Describe the main changes in this version...',
|
|
227
|
+
'pisell-version-modal-version-error': 'Version number must be greater than the current version',
|
|
228
|
+
'pisell-version-modal-version-required': 'Version number is required',
|
|
229
|
+
// 子域名校验错误
|
|
230
|
+
'subdomain-error-too-short': 'Subdomain must be at least 2 characters long',
|
|
231
|
+
'subdomain-error-too-long': 'Subdomain cannot exceed 60 characters',
|
|
232
|
+
'subdomain-error-pattern': 'Subdomain can only contain lowercase letters, numbers and hyphens',
|
|
233
|
+
'subdomain-error-numbers-only': 'Subdomain cannot contain only numbers',
|
|
234
|
+
'subdomain-error-hyphen-ends': 'Subdomain cannot start or end with a hyphen',
|
|
235
|
+
'subdomain-error-consecutive-hyphens': 'Subdomain cannot contain consecutive hyphens',
|
|
236
|
+
'subdomain-error-required': 'Please enter subdomain'
|
|
214
237
|
};
|
package/es/locales/zh-CN.d.ts
CHANGED
|
@@ -140,6 +140,8 @@ declare const _default: {
|
|
|
140
140
|
'pisell-data-source-form-max-length-message': (maxLength: number) => string;
|
|
141
141
|
'pisell-data-source-form-min-value-message': (minValue: number) => string;
|
|
142
142
|
'pisell-data-source-form-max-value-message': (maxValue: number) => string;
|
|
143
|
+
'pisell-data-source-form-mobile-message': string;
|
|
144
|
+
'pisell-data-source-form-pattern-message': string;
|
|
143
145
|
'pisell-number-format-thousand': string;
|
|
144
146
|
'pisell-number-format-million': string;
|
|
145
147
|
'pisell-number-format-billion': string;
|
|
@@ -163,5 +165,24 @@ declare const _default: {
|
|
|
163
165
|
'pisell-delete-confirm-cancel': string;
|
|
164
166
|
'pisell-design-mode-action-disabled': string;
|
|
165
167
|
'pisell-translation-original': string;
|
|
168
|
+
'pisell-version-modal-title': string;
|
|
169
|
+
'pisell-version-modal-current-version': string;
|
|
170
|
+
'pisell-version-modal-version': string;
|
|
171
|
+
'pisell-version-modal-update-notes': string;
|
|
172
|
+
'pisell-version-modal-patch': string;
|
|
173
|
+
'pisell-version-modal-minor': string;
|
|
174
|
+
'pisell-version-modal-major': string;
|
|
175
|
+
'pisell-version-modal-custom': string;
|
|
176
|
+
'pisell-version-modal-cancel': string;
|
|
177
|
+
'pisell-version-modal-confirm': string;
|
|
178
|
+
'pisell-version-modal-describe-update-notes': string;
|
|
179
|
+
'pisell-version-modal-version-error': string;
|
|
180
|
+
'pisell-version-modal-version-required': string;
|
|
181
|
+
'subdomain-error-too-short': string;
|
|
182
|
+
'subdomain-error-too-long': string;
|
|
183
|
+
'subdomain-error-pattern': string;
|
|
184
|
+
'subdomain-error-numbers-only': string;
|
|
185
|
+
'subdomain-error-hyphen-ends': string;
|
|
186
|
+
'subdomain-error-consecutive-hyphens': string;
|
|
166
187
|
};
|
|
167
188
|
export default _default;
|
package/es/locales/zh-CN.js
CHANGED
|
@@ -162,7 +162,7 @@ export default {
|
|
|
162
162
|
'pisell-data-source-form-email-message': '请输入有效的电子邮件地址',
|
|
163
163
|
'pisell-data-source-form-domain-message': '请输入有效的域名',
|
|
164
164
|
'pisell-data-source-form-url-message': '请输入正确的网址',
|
|
165
|
-
'pisell-data-source-form-phone-message': '
|
|
165
|
+
'pisell-data-source-form-phone-message': '请输入正确的电话号码',
|
|
166
166
|
'pisell-data-source-form-min-length-message': function pisellDataSourceFormMinLengthMessage(minLength) {
|
|
167
167
|
return "\u957F\u5EA6\u5FC5\u987B\u81F3\u5C11\u4E3A".concat(minLength, "\u4E2A\u5B57\u7B26");
|
|
168
168
|
},
|
|
@@ -175,6 +175,8 @@ export default {
|
|
|
175
175
|
'pisell-data-source-form-max-value-message': function pisellDataSourceFormMaxValueMessage(maxValue) {
|
|
176
176
|
return "\u503C\u5FC5\u987B\u5C0F\u4E8E\u6216\u7B49\u4E8E".concat(maxValue);
|
|
177
177
|
},
|
|
178
|
+
'pisell-data-source-form-mobile-message': '请输入正确的手机号码',
|
|
179
|
+
'pisell-data-source-form-pattern-message': '请输入正确的格式',
|
|
178
180
|
// 数字格式化
|
|
179
181
|
'pisell-number-format-thousand': '千',
|
|
180
182
|
'pisell-number-format-million': '百万',
|
|
@@ -209,5 +211,25 @@ export default {
|
|
|
209
211
|
'pisell-delete-confirm-ok': '删除',
|
|
210
212
|
'pisell-delete-confirm-cancel': '取消',
|
|
211
213
|
'pisell-design-mode-action-disabled': '编辑模式下不可执行此操作',
|
|
212
|
-
'pisell-translation-original': '原始语言'
|
|
214
|
+
'pisell-translation-original': '原始语言',
|
|
215
|
+
'pisell-version-modal-title': '创建新版本',
|
|
216
|
+
'pisell-version-modal-current-version': '当前版本',
|
|
217
|
+
'pisell-version-modal-version': '版本号',
|
|
218
|
+
'pisell-version-modal-update-notes': '更新说明',
|
|
219
|
+
'pisell-version-modal-patch': '补丁版本',
|
|
220
|
+
'pisell-version-modal-minor': '次版本',
|
|
221
|
+
'pisell-version-modal-major': '主版本',
|
|
222
|
+
'pisell-version-modal-custom': '自定义版本',
|
|
223
|
+
'pisell-version-modal-cancel': '取消',
|
|
224
|
+
'pisell-version-modal-confirm': '确定',
|
|
225
|
+
'pisell-version-modal-describe-update-notes': '描述此版本的主要更改...',
|
|
226
|
+
'pisell-version-modal-version-error': '版本号必须大于当前版本',
|
|
227
|
+
'pisell-version-modal-version-required': '版本号为必填项',
|
|
228
|
+
// 子域名校验错误
|
|
229
|
+
'subdomain-error-too-short': '子域名长度不能小于2个字符',
|
|
230
|
+
'subdomain-error-too-long': '子域名长度不能超过60个字符',
|
|
231
|
+
'subdomain-error-pattern': '子域名只能包含小写字母、数字和连字符',
|
|
232
|
+
'subdomain-error-numbers-only': '子域名不能全为数字',
|
|
233
|
+
'subdomain-error-hyphen-ends': '子域名不能以连字符开头或结尾',
|
|
234
|
+
'subdomain-error-consecutive-hyphens': '子域名不能包含连续的连字符'
|
|
213
235
|
};
|