@pisell/materials 6.0.11 → 6.0.12
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 +22 -22
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +22 -22
- package/dist/umd/materials.min.css +1 -0
- package/dist/umd/materials.min.js +1 -0
- package/dist/umd/static/DotsSix.57d66266.svg +1 -0
- package/dist/umd/static/arrow-left.e542294f.svg +1 -0
- package/dist/umd/static/arrow-right.763f03e0.svg +1 -0
- package/dist/umd/static/filter-lines.04a54ae9.svg +1 -0
- package/dist/umd/static/help-circle.31c9be40.svg +1 -0
- package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +1 -0
- 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 +120 -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/useTableProps.d.ts +3 -3
- 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 +161 -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 +9 -5
- 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/table/Table/utils.d.ts +1 -1
- 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 +138 -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/useTableProps.d.ts +3 -3
- 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 +9 -5
- 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/table/Table/utils.d.ts +1 -1
- 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/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 +1 -1
- package/lowcode/form-item-input.mobile/__screenshots__/phone.png +0 -0
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/versionModal/index.tsx
|
|
30
|
+
var versionModal_exports = {};
|
|
31
|
+
__export(versionModal_exports, {
|
|
32
|
+
default: () => versionModal_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(versionModal_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_pisellModal = __toESM(require("../pisellModal"));
|
|
38
|
+
var import_locales = require("../../locales");
|
|
39
|
+
var import_index = require("./index.less");
|
|
40
|
+
var style = {
|
|
41
|
+
display: "flex",
|
|
42
|
+
flexDirection: "column",
|
|
43
|
+
gap: 8
|
|
44
|
+
};
|
|
45
|
+
var parseVersion = (version) => {
|
|
46
|
+
const [major, minor, patch] = version.split(".").map(Number);
|
|
47
|
+
return [major || 0, minor || 0, patch || 0];
|
|
48
|
+
};
|
|
49
|
+
var isVersionValid = (customVersion, currentVersion) => {
|
|
50
|
+
const [cMajor, cMinor, cPatch] = parseVersion(customVersion);
|
|
51
|
+
const [liveMajor, liveMinor, livePatch] = parseVersion(currentVersion);
|
|
52
|
+
if (cMajor > liveMajor)
|
|
53
|
+
return true;
|
|
54
|
+
if (cMajor === liveMajor && cMinor > liveMinor)
|
|
55
|
+
return true;
|
|
56
|
+
if (cMajor === liveMajor && cMinor === liveMinor && cPatch > livePatch)
|
|
57
|
+
return true;
|
|
58
|
+
return false;
|
|
59
|
+
};
|
|
60
|
+
var getNextVersions = (version) => {
|
|
61
|
+
const [major, minor, patch] = parseVersion(version);
|
|
62
|
+
return {
|
|
63
|
+
patch: `${major}.${minor}.${patch + 1}`,
|
|
64
|
+
minor: `${major}.${minor + 1}.0`,
|
|
65
|
+
major: `${major + 1}.0.0`
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
var PublishVersionModal = ({
|
|
69
|
+
visible,
|
|
70
|
+
currentVersion = "1.0.0",
|
|
71
|
+
onCancel,
|
|
72
|
+
onConfirm,
|
|
73
|
+
isShowNote = true
|
|
74
|
+
}) => {
|
|
75
|
+
const [form] = import_antd.Form.useForm();
|
|
76
|
+
const [versionType, setVersionType] = (0, import_react.useState)("patch");
|
|
77
|
+
const { patch, minor, major } = getNextVersions(currentVersion);
|
|
78
|
+
const handleVersionChange = (e) => {
|
|
79
|
+
setVersionType(e.target.value);
|
|
80
|
+
};
|
|
81
|
+
const handleSubmit = () => {
|
|
82
|
+
form.validateFields().then((values) => {
|
|
83
|
+
let { version, note } = values;
|
|
84
|
+
if (version === "custom") {
|
|
85
|
+
if (!isVersionValid(
|
|
86
|
+
`${values.major}.${values.minor}.${values.patch}`,
|
|
87
|
+
currentVersion
|
|
88
|
+
)) {
|
|
89
|
+
import_antd.message.error((0, import_locales.getText)("pisell-version-modal-version-error"));
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
version = `${values.major}.${values.minor}.${values.patch}`;
|
|
93
|
+
}
|
|
94
|
+
onConfirm({ version, note });
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
(0, import_react.useEffect)(() => {
|
|
98
|
+
if (visible) {
|
|
99
|
+
form.setFieldsValue({
|
|
100
|
+
version: patch,
|
|
101
|
+
major: parseVersion(patch)[0] || 0,
|
|
102
|
+
minor: parseVersion(patch)[1] || 0,
|
|
103
|
+
patch: parseVersion(patch)[2] || 0
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}, [visible]);
|
|
107
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
108
|
+
import_pisellModal.default,
|
|
109
|
+
{
|
|
110
|
+
title: (0, import_locales.getText)("pisell-version-modal-title"),
|
|
111
|
+
open: visible,
|
|
112
|
+
onCancel,
|
|
113
|
+
destroyOnClose: true,
|
|
114
|
+
onOk: handleSubmit,
|
|
115
|
+
okText: (0, import_locales.getText)("pisell-version-modal-confirm"),
|
|
116
|
+
cancelText: (0, import_locales.getText)("pisell-version-modal-cancel")
|
|
117
|
+
},
|
|
118
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
119
|
+
import_antd.Form,
|
|
120
|
+
{
|
|
121
|
+
form,
|
|
122
|
+
layout: "vertical",
|
|
123
|
+
preserve: false,
|
|
124
|
+
className: "pisell-lowcode-version-modal-form"
|
|
125
|
+
},
|
|
126
|
+
/* @__PURE__ */ import_react.default.createElement("p", null, (0, import_locales.getText)("pisell-version-modal-current-version"), ": ", currentVersion),
|
|
127
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
128
|
+
import_antd.Form.Item,
|
|
129
|
+
{
|
|
130
|
+
label: (0, import_locales.getText)("pisell-version-modal-version"),
|
|
131
|
+
name: "version",
|
|
132
|
+
initialValue: "patch",
|
|
133
|
+
rules: [{ required: true }]
|
|
134
|
+
},
|
|
135
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd.Radio.Group, { onChange: handleVersionChange, style }, /* @__PURE__ */ import_react.default.createElement(import_antd.Radio, { value: patch }, (0, import_locales.getText)("pisell-version-modal-patch"), " (", patch, ")"), /* @__PURE__ */ import_react.default.createElement(import_antd.Radio, { value: minor }, (0, import_locales.getText)("pisell-version-modal-minor"), " (", minor, ")"), /* @__PURE__ */ import_react.default.createElement(import_antd.Radio, { value: major }, (0, import_locales.getText)("pisell-version-modal-major"), " (", major, ")"), /* @__PURE__ */ import_react.default.createElement(import_antd.Radio, { value: "custom" }, (0, import_locales.getText)("pisell-version-modal-custom")))
|
|
136
|
+
),
|
|
137
|
+
versionType === "custom" && /* @__PURE__ */ import_react.default.createElement(import_antd.Row, { gutter: 8 }, /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 8 }, /* @__PURE__ */ import_react.default.createElement(
|
|
138
|
+
import_antd.Form.Item,
|
|
139
|
+
{
|
|
140
|
+
name: "major",
|
|
141
|
+
label: (0, import_locales.getText)("pisell-version-modal-major"),
|
|
142
|
+
rules: [
|
|
143
|
+
{
|
|
144
|
+
required: true,
|
|
145
|
+
message: (0, import_locales.getText)("pisell-version-modal-version-required")
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
},
|
|
149
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
150
|
+
import_antd.InputNumber,
|
|
151
|
+
{
|
|
152
|
+
min: 0,
|
|
153
|
+
precision: 0,
|
|
154
|
+
style: { width: "100%" },
|
|
155
|
+
placeholder: (0, import_locales.getText)("pisell-version-modal-major")
|
|
156
|
+
}
|
|
157
|
+
)
|
|
158
|
+
)), /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 8 }, /* @__PURE__ */ import_react.default.createElement(
|
|
159
|
+
import_antd.Form.Item,
|
|
160
|
+
{
|
|
161
|
+
name: "minor",
|
|
162
|
+
label: (0, import_locales.getText)("pisell-version-modal-minor"),
|
|
163
|
+
rules: [
|
|
164
|
+
{
|
|
165
|
+
required: true,
|
|
166
|
+
message: (0, import_locales.getText)("pisell-version-modal-version-required")
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
171
|
+
import_antd.InputNumber,
|
|
172
|
+
{
|
|
173
|
+
precision: 0,
|
|
174
|
+
min: 0,
|
|
175
|
+
style: { width: "100%" },
|
|
176
|
+
placeholder: (0, import_locales.getText)("pisell-version-modal-minor")
|
|
177
|
+
}
|
|
178
|
+
)
|
|
179
|
+
)), /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 8 }, /* @__PURE__ */ import_react.default.createElement(
|
|
180
|
+
import_antd.Form.Item,
|
|
181
|
+
{
|
|
182
|
+
name: "patch",
|
|
183
|
+
label: (0, import_locales.getText)("pisell-version-modal-patch"),
|
|
184
|
+
rules: [
|
|
185
|
+
{
|
|
186
|
+
required: true,
|
|
187
|
+
message: (0, import_locales.getText)("pisell-version-modal-version-required")
|
|
188
|
+
}
|
|
189
|
+
]
|
|
190
|
+
},
|
|
191
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
192
|
+
import_antd.InputNumber,
|
|
193
|
+
{
|
|
194
|
+
min: 0,
|
|
195
|
+
precision: 0,
|
|
196
|
+
style: { width: "100%" },
|
|
197
|
+
placeholder: (0, import_locales.getText)("pisell-version-modal-patch")
|
|
198
|
+
}
|
|
199
|
+
)
|
|
200
|
+
))),
|
|
201
|
+
isShowNote && /* @__PURE__ */ import_react.default.createElement(
|
|
202
|
+
import_antd.Form.Item,
|
|
203
|
+
{
|
|
204
|
+
label: (0, import_locales.getText)("pisell-version-modal-update-notes"),
|
|
205
|
+
name: "note"
|
|
206
|
+
},
|
|
207
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
208
|
+
import_antd.Input.TextArea,
|
|
209
|
+
{
|
|
210
|
+
placeholder: (0, import_locales.getText)(
|
|
211
|
+
"pisell-version-modal-describe-update-notes"
|
|
212
|
+
)
|
|
213
|
+
}
|
|
214
|
+
)
|
|
215
|
+
)
|
|
216
|
+
)
|
|
217
|
+
);
|
|
218
|
+
};
|
|
219
|
+
var versionModal_default = PublishVersionModal;
|
package/lib/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/lib/index.js
CHANGED
|
@@ -52,6 +52,7 @@ __export(src_exports, {
|
|
|
52
52
|
ConfigProvider: () => import_config_provider.default,
|
|
53
53
|
DataSourceForm: () => import_dataSourceForm.default,
|
|
54
54
|
DataSourceImage: () => import_dataSourceImage.default,
|
|
55
|
+
DataSourceMenu: () => import_dataSourceMenu.default,
|
|
55
56
|
DataSourceQRCode: () => import_dataSourceQRCode.default,
|
|
56
57
|
DataSourceTable: () => import_dataSourceTable.default,
|
|
57
58
|
DataSourceTypography: () => import_dataSourceTypography.default,
|
|
@@ -107,6 +108,7 @@ __export(src_exports, {
|
|
|
107
108
|
PisellContext: () => import_context.default,
|
|
108
109
|
PisellCountdown: () => import_pisellCountdown.default,
|
|
109
110
|
PisellDatePicker: () => import_pisellDatePicker.default,
|
|
111
|
+
PisellDraggable: () => import_pisellDraggable.default,
|
|
110
112
|
PisellEmpty: () => import_pisellEmpty.default,
|
|
111
113
|
PisellFloatingPanel: () => import_pisellFloatingPanel.default,
|
|
112
114
|
PisellFooter: () => import_footer.default,
|
|
@@ -115,6 +117,7 @@ __export(src_exports, {
|
|
|
115
117
|
PisellInput: () => import_pisellInput.default,
|
|
116
118
|
PisellLayout: () => import_pisellLayout.default,
|
|
117
119
|
PisellLoading: () => import_pisellLoading.default,
|
|
120
|
+
PisellMenu: () => import_pisellMenu.default,
|
|
118
121
|
PisellModal: () => import_pisellModal.default,
|
|
119
122
|
PisellNumberKeyboard: () => import_Number.default,
|
|
120
123
|
PisellPriceKeyboard: () => import_Amount.default,
|
|
@@ -133,6 +136,7 @@ __export(src_exports, {
|
|
|
133
136
|
Popover: () => import_antd.Popover,
|
|
134
137
|
ProfileMenu: () => import_profileMenu.default,
|
|
135
138
|
Progress: () => import_antd.Progress,
|
|
139
|
+
PublishVersionModal: () => import_versionModal.default,
|
|
136
140
|
QRCode: () => import_qrcode.default,
|
|
137
141
|
Radio: () => import_radio.default,
|
|
138
142
|
Rate: () => import_antd.Rate,
|
|
@@ -190,6 +194,7 @@ var import_dataSourceForm = __toESM(require("./components/dataSourceComponents/d
|
|
|
190
194
|
var import_group = __toESM(require("./components/dataSourceComponents/dataSourceForm/group"));
|
|
191
195
|
var import_JsonWrapperProvider = __toESM(require("./components/dataSourceComponents/dataSourceForm/provider/jsonWrapper/JsonWrapperProvider"));
|
|
192
196
|
var import_submitButton = __toESM(require("./components/dataSourceComponents/dataSourceForm/submitButton"));
|
|
197
|
+
var import_dataSourceMenu = __toESM(require("./components/dataSourceComponents/dataSourceMenu"));
|
|
193
198
|
var import_dataSourceImage = __toESM(require("./components/dataSourceComponents/dataSourceShow/dataSourceImage"));
|
|
194
199
|
var import_dataSourceQRCode = __toESM(require("./components/dataSourceComponents/dataSourceShow/dataSourceQRCode"));
|
|
195
200
|
var import_dataSourceTypography = __toESM(require("./components/dataSourceComponents/dataSourceShow/dataSourceTypography"));
|
|
@@ -236,6 +241,7 @@ var import_pisellCheckboxGroup = __toESM(require("./components/pisellCheckboxGro
|
|
|
236
241
|
var import_pisellContainer = __toESM(require("./components/pisellContainer"));
|
|
237
242
|
var import_pisellCountdown = __toESM(require("./components/pisellCountdown"));
|
|
238
243
|
var import_pisellDatePicker = __toESM(require("./components/pisellDatePicker"));
|
|
244
|
+
var import_pisellDraggable = __toESM(require("./components/pisellDraggable"));
|
|
239
245
|
var import_pisellEmpty = __toESM(require("./components/pisellEmpty"));
|
|
240
246
|
var import_pisellFloatingPanel = __toESM(require("./components/pisellFloatingPanel"));
|
|
241
247
|
var import_pisellInformationEntry = __toESM(require("./components/pisellInformationEntry"));
|
|
@@ -247,6 +253,7 @@ var import_footer = __toESM(require("./components/pisellLayout/footer"));
|
|
|
247
253
|
var import_header = __toESM(require("./components/pisellLayout/header"));
|
|
248
254
|
var import_sider = __toESM(require("./components/pisellLayout/sider"));
|
|
249
255
|
var import_pisellLoading = __toESM(require("./components/pisellLoading"));
|
|
256
|
+
var import_pisellMenu = __toESM(require("./components/pisellMenu"));
|
|
250
257
|
var import_pisellModal = __toESM(require("./components/pisellModal"));
|
|
251
258
|
var import_pisellRow = __toESM(require("./components/pisellRow"));
|
|
252
259
|
var import_pisellScan = __toESM(require("./components/pisellScan"));
|
|
@@ -280,6 +287,7 @@ var import_virtual_keyboard = __toESM(require("./components/virtual-keyboard"));
|
|
|
280
287
|
var import_Amount = __toESM(require("./components/virtual-keyboard/Amount"));
|
|
281
288
|
var import_Number = __toESM(require("./components/virtual-keyboard/Number"));
|
|
282
289
|
var import_Time = __toESM(require("./components/virtual-keyboard/Time"));
|
|
290
|
+
var import_versionModal = __toESM(require("./components/versionModal"));
|
|
283
291
|
// Annotate the CommonJS export names for ESM import in node:
|
|
284
292
|
0 && (module.exports = {
|
|
285
293
|
Affix,
|
|
@@ -305,6 +313,7 @@ var import_Time = __toESM(require("./components/virtual-keyboard/Time"));
|
|
|
305
313
|
ConfigProvider,
|
|
306
314
|
DataSourceForm,
|
|
307
315
|
DataSourceImage,
|
|
316
|
+
DataSourceMenu,
|
|
308
317
|
DataSourceQRCode,
|
|
309
318
|
DataSourceTable,
|
|
310
319
|
DataSourceTypography,
|
|
@@ -360,6 +369,7 @@ var import_Time = __toESM(require("./components/virtual-keyboard/Time"));
|
|
|
360
369
|
PisellContext,
|
|
361
370
|
PisellCountdown,
|
|
362
371
|
PisellDatePicker,
|
|
372
|
+
PisellDraggable,
|
|
363
373
|
PisellEmpty,
|
|
364
374
|
PisellFloatingPanel,
|
|
365
375
|
PisellFooter,
|
|
@@ -368,6 +378,7 @@ var import_Time = __toESM(require("./components/virtual-keyboard/Time"));
|
|
|
368
378
|
PisellInput,
|
|
369
379
|
PisellLayout,
|
|
370
380
|
PisellLoading,
|
|
381
|
+
PisellMenu,
|
|
371
382
|
PisellModal,
|
|
372
383
|
PisellNumberKeyboard,
|
|
373
384
|
PisellPriceKeyboard,
|
|
@@ -386,6 +397,7 @@ var import_Time = __toESM(require("./components/virtual-keyboard/Time"));
|
|
|
386
397
|
Popover,
|
|
387
398
|
ProfileMenu,
|
|
388
399
|
Progress,
|
|
400
|
+
PublishVersionModal,
|
|
389
401
|
QRCode,
|
|
390
402
|
Radio,
|
|
391
403
|
Rate,
|
package/lib/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/lib/locales/en-US.js
CHANGED
|
@@ -174,6 +174,8 @@ var en_US_default = {
|
|
|
174
174
|
"pisell-data-source-form-max-length-message": (maxLength) => `Length must be at most ${maxLength} character`,
|
|
175
175
|
"pisell-data-source-form-min-value-message": (minValue) => `Value must be greater than or equal to ${minValue}`,
|
|
176
176
|
"pisell-data-source-form-max-value-message": (maxValue) => `Value must be less than or equal to ${maxValue}`,
|
|
177
|
+
"pisell-data-source-form-mobile-message": "Please enter a valid mobile number",
|
|
178
|
+
"pisell-data-source-form-pattern-message": "Please enter the correct format",
|
|
177
179
|
// Number formatting
|
|
178
180
|
"pisell-number-format-thousand": "K",
|
|
179
181
|
"pisell-number-format-million": "M",
|
|
@@ -200,5 +202,26 @@ var en_US_default = {
|
|
|
200
202
|
"pisell-delete-confirm-ok": "Delete",
|
|
201
203
|
"pisell-delete-confirm-cancel": "Cancel",
|
|
202
204
|
"pisell-design-mode-action-disabled": "This operation is not allowed in edit mode",
|
|
203
|
-
"pisell-translation-original": "Original"
|
|
205
|
+
"pisell-translation-original": "Original",
|
|
206
|
+
"pisell-version-modal-title": "Publish new version",
|
|
207
|
+
"pisell-version-modal-current-version": "Current version",
|
|
208
|
+
"pisell-version-modal-version": "Version",
|
|
209
|
+
"pisell-version-modal-update-notes": "Update notes",
|
|
210
|
+
"pisell-version-modal-patch": "Patch",
|
|
211
|
+
"pisell-version-modal-minor": "Minor",
|
|
212
|
+
"pisell-version-modal-major": "Major",
|
|
213
|
+
"pisell-version-modal-custom": "Custom version",
|
|
214
|
+
"pisell-version-modal-cancel": "Cancel",
|
|
215
|
+
"pisell-version-modal-confirm": "Confirm",
|
|
216
|
+
"pisell-version-modal-describe-update-notes": "Describe the main changes in this version...",
|
|
217
|
+
"pisell-version-modal-version-error": "Version number must be greater than the current version",
|
|
218
|
+
"pisell-version-modal-version-required": "Version number is required",
|
|
219
|
+
// 子域名校验错误
|
|
220
|
+
"subdomain-error-too-short": "Subdomain must be at least 2 characters long",
|
|
221
|
+
"subdomain-error-too-long": "Subdomain cannot exceed 60 characters",
|
|
222
|
+
"subdomain-error-pattern": "Subdomain can only contain lowercase letters, numbers and hyphens",
|
|
223
|
+
"subdomain-error-numbers-only": "Subdomain cannot contain only numbers",
|
|
224
|
+
"subdomain-error-hyphen-ends": "Subdomain cannot start or end with a hyphen",
|
|
225
|
+
"subdomain-error-consecutive-hyphens": "Subdomain cannot contain consecutive hyphens",
|
|
226
|
+
"subdomain-error-required": "Please enter subdomain"
|
|
204
227
|
};
|
package/lib/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/lib/locales/zh-CN.js
CHANGED
|
@@ -168,11 +168,13 @@ var zh_CN_default = {
|
|
|
168
168
|
"pisell-data-source-form-email-message": "请输入有效的电子邮件地址",
|
|
169
169
|
"pisell-data-source-form-domain-message": "请输入有效的域名",
|
|
170
170
|
"pisell-data-source-form-url-message": "请输入正确的网址",
|
|
171
|
-
"pisell-data-source-form-phone-message": "
|
|
171
|
+
"pisell-data-source-form-phone-message": "请输入正确的电话号码",
|
|
172
172
|
"pisell-data-source-form-min-length-message": (minLength) => `长度必须至少为${minLength}个字符`,
|
|
173
173
|
"pisell-data-source-form-max-length-message": (maxLength) => `长度必须最多为${maxLength}个字符`,
|
|
174
174
|
"pisell-data-source-form-min-value-message": (minValue) => `值必须大于或等于${minValue}`,
|
|
175
175
|
"pisell-data-source-form-max-value-message": (maxValue) => `值必须小于或等于${maxValue}`,
|
|
176
|
+
"pisell-data-source-form-mobile-message": "请输入正确的手机号码",
|
|
177
|
+
"pisell-data-source-form-pattern-message": "请输入正确的格式",
|
|
176
178
|
// 数字格式化
|
|
177
179
|
"pisell-number-format-thousand": "千",
|
|
178
180
|
"pisell-number-format-million": "百万",
|
|
@@ -199,5 +201,25 @@ var zh_CN_default = {
|
|
|
199
201
|
"pisell-delete-confirm-ok": "删除",
|
|
200
202
|
"pisell-delete-confirm-cancel": "取消",
|
|
201
203
|
"pisell-design-mode-action-disabled": "编辑模式下不可执行此操作",
|
|
202
|
-
"pisell-translation-original": "原始语言"
|
|
204
|
+
"pisell-translation-original": "原始语言",
|
|
205
|
+
"pisell-version-modal-title": "创建新版本",
|
|
206
|
+
"pisell-version-modal-current-version": "当前版本",
|
|
207
|
+
"pisell-version-modal-version": "版本号",
|
|
208
|
+
"pisell-version-modal-update-notes": "更新说明",
|
|
209
|
+
"pisell-version-modal-patch": "补丁版本",
|
|
210
|
+
"pisell-version-modal-minor": "次版本",
|
|
211
|
+
"pisell-version-modal-major": "主版本",
|
|
212
|
+
"pisell-version-modal-custom": "自定义版本",
|
|
213
|
+
"pisell-version-modal-cancel": "取消",
|
|
214
|
+
"pisell-version-modal-confirm": "确定",
|
|
215
|
+
"pisell-version-modal-describe-update-notes": "描述此版本的主要更改...",
|
|
216
|
+
"pisell-version-modal-version-error": "版本号必须大于当前版本",
|
|
217
|
+
"pisell-version-modal-version-required": "版本号为必填项",
|
|
218
|
+
// 子域名校验错误
|
|
219
|
+
"subdomain-error-too-short": "子域名长度不能小于2个字符",
|
|
220
|
+
"subdomain-error-too-long": "子域名长度不能超过60个字符",
|
|
221
|
+
"subdomain-error-pattern": "子域名只能包含小写字母、数字和连字符",
|
|
222
|
+
"subdomain-error-numbers-only": "子域名不能全为数字",
|
|
223
|
+
"subdomain-error-hyphen-ends": "子域名不能以连字符开头或结尾",
|
|
224
|
+
"subdomain-error-consecutive-hyphens": "子域名不能包含连续的连字符"
|
|
203
225
|
};
|
package/lib/locales/zh-TW.d.ts
CHANGED
|
@@ -140,6 +140,7 @@ 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;
|
|
143
144
|
'pisell-number-format-thousand': string;
|
|
144
145
|
'pisell-number-format-million': string;
|
|
145
146
|
'pisell-number-format-billion': string;
|
|
@@ -163,5 +164,24 @@ declare const _default: {
|
|
|
163
164
|
'pisell-delete-confirm-cancel': string;
|
|
164
165
|
'pisell-design-mode-action-disabled': string;
|
|
165
166
|
'pisell-translation-original': string;
|
|
167
|
+
'pisell-version-modal-title': string;
|
|
168
|
+
'pisell-version-modal-current-version': string;
|
|
169
|
+
'pisell-version-modal-version': string;
|
|
170
|
+
'pisell-version-modal-update-notes': string;
|
|
171
|
+
'pisell-version-modal-patch': string;
|
|
172
|
+
'pisell-version-modal-minor': string;
|
|
173
|
+
'pisell-version-modal-major': string;
|
|
174
|
+
'pisell-version-modal-custom': string;
|
|
175
|
+
'pisell-version-modal-cancel': string;
|
|
176
|
+
'pisell-version-modal-confirm': string;
|
|
177
|
+
'pisell-version-modal-describe-update-notes': string;
|
|
178
|
+
'pisell-version-modal-version-error': string;
|
|
179
|
+
'pisell-version-modal-version-required': string;
|
|
180
|
+
'subdomain-error-too-short': string;
|
|
181
|
+
'subdomain-error-too-long': string;
|
|
182
|
+
'subdomain-error-pattern': string;
|
|
183
|
+
'subdomain-error-numbers-only': string;
|
|
184
|
+
'subdomain-error-hyphen-ends': string;
|
|
185
|
+
'subdomain-error-consecutive-hyphens': string;
|
|
166
186
|
};
|
|
167
187
|
export default _default;
|
package/lib/locales/zh-TW.js
CHANGED
|
@@ -169,11 +169,12 @@ var zh_TW_default = {
|
|
|
169
169
|
"pisell-data-source-form-email-message": "請輸入有效的電子郵件地址",
|
|
170
170
|
"pisell-data-source-form-domain-message": "請輸入有效的域名",
|
|
171
171
|
"pisell-data-source-form-url-message": "請輸入正確的網址",
|
|
172
|
-
"pisell-data-source-form-phone-message": "
|
|
172
|
+
"pisell-data-source-form-phone-message": "請輸入正確的電話號碼",
|
|
173
173
|
"pisell-data-source-form-min-length-message": (minLength) => `長度必須至少為${minLength}个字符`,
|
|
174
174
|
"pisell-data-source-form-max-length-message": (maxLength) => `長度必須最多為${maxLength}个字符`,
|
|
175
175
|
"pisell-data-source-form-min-value-message": (minValue) => `值必須大於或等於${minValue}`,
|
|
176
176
|
"pisell-data-source-form-max-value-message": (maxValue) => `值必須小於或等於${maxValue}`,
|
|
177
|
+
"pisell-data-source-form-mobile-message": "請輸入正確的手機號碼",
|
|
177
178
|
// 數字格式化
|
|
178
179
|
"pisell-number-format-thousand": "千",
|
|
179
180
|
"pisell-number-format-million": "百萬",
|
|
@@ -200,5 +201,25 @@ var zh_TW_default = {
|
|
|
200
201
|
"pisell-delete-confirm-ok": "刪除",
|
|
201
202
|
"pisell-delete-confirm-cancel": "取消",
|
|
202
203
|
"pisell-design-mode-action-disabled": "編輯模式下不可執行此操作",
|
|
203
|
-
"pisell-translation-original": "原始語言"
|
|
204
|
+
"pisell-translation-original": "原始語言",
|
|
205
|
+
"pisell-version-modal-title": "創建新版本",
|
|
206
|
+
"pisell-version-modal-current-version": "當前版本",
|
|
207
|
+
"pisell-version-modal-version": "版本號",
|
|
208
|
+
"pisell-version-modal-update-notes": "更新說明",
|
|
209
|
+
"pisell-version-modal-patch": "補丁版本",
|
|
210
|
+
"pisell-version-modal-minor": "次版本",
|
|
211
|
+
"pisell-version-modal-major": "主版本",
|
|
212
|
+
"pisell-version-modal-custom": "自定義版本",
|
|
213
|
+
"pisell-version-modal-cancel": "取消",
|
|
214
|
+
"pisell-version-modal-confirm": "确定",
|
|
215
|
+
"pisell-version-modal-describe-update-notes": "描述此版本的主要更改...",
|
|
216
|
+
"pisell-version-modal-version-error": "版本號必須大於當前版本",
|
|
217
|
+
"pisell-version-modal-version-required": "版本號為必填項",
|
|
218
|
+
// 子域名校验错误
|
|
219
|
+
"subdomain-error-too-short": "子域名長度不能小於2個字符",
|
|
220
|
+
"subdomain-error-too-long": "子域名長度不能超過60個字符",
|
|
221
|
+
"subdomain-error-pattern": "子域名只能包含小寫字母、數字和連字符",
|
|
222
|
+
"subdomain-error-numbers-only": "子域名不能全為數字",
|
|
223
|
+
"subdomain-error-hyphen-ends": "子域名不能以連字符開頭或結尾",
|
|
224
|
+
"subdomain-error-consecutive-hyphens": "子域名不能包含連續的連字符"
|
|
204
225
|
};
|
|
@@ -363,7 +363,7 @@ export const generalItemMap = {
|
|
|
363
363
|
},
|
|
364
364
|
maxLengthobj: {
|
|
365
365
|
name: 'maxLengthobj',
|
|
366
|
-
|
|
366
|
+
title: {
|
|
367
367
|
label: {
|
|
368
368
|
type: 'i18n',
|
|
369
369
|
'en-US': 'Maximum length',
|
|
@@ -462,6 +462,9 @@ export const generalItemMap = {
|
|
|
462
462
|
{ title: '网址', value: 'url' },
|
|
463
463
|
{ title: '域名', value: 'domain' },
|
|
464
464
|
{ title: '正则', value: 'pattern' },
|
|
465
|
+
{ title: '手机号', value: 'mobile' },
|
|
466
|
+
{ title: '电话号码', value: 'phone' },
|
|
467
|
+
{ title: '子域名', value: 'subdomain' },
|
|
465
468
|
],
|
|
466
469
|
},
|
|
467
470
|
},
|
|
@@ -477,6 +480,7 @@ export const generalItemMap = {
|
|
|
477
480
|
condition: (target: any) => {
|
|
478
481
|
return target.parent.getPropValue('type') === 'pattern';
|
|
479
482
|
},
|
|
483
|
+
isRequired: true,
|
|
480
484
|
},
|
|
481
485
|
{
|
|
482
486
|
name: 'message',
|
|
@@ -487,6 +491,9 @@ export const generalItemMap = {
|
|
|
487
491
|
},
|
|
488
492
|
propType: 'string',
|
|
489
493
|
setter: 'PisellI18nSetter',
|
|
494
|
+
condition: (target: any) => {
|
|
495
|
+
return !(['subdomain'].includes(target.parent.getPropValue('type')));
|
|
496
|
+
},
|
|
490
497
|
},
|
|
491
498
|
],
|
|
492
499
|
},
|
|
@@ -648,6 +655,10 @@ export const formItemGeneralDataGroup = {
|
|
|
648
655
|
componentName: 'PisellDataSourceSetter',
|
|
649
656
|
props: {
|
|
650
657
|
disabled: true,
|
|
658
|
+
filters: {
|
|
659
|
+
tables: 'all',
|
|
660
|
+
variables: {}
|
|
661
|
+
},
|
|
651
662
|
},
|
|
652
663
|
},
|
|
653
664
|
},
|
|
@@ -715,6 +726,10 @@ export const formItemGeneralOptionTypeGroup = {
|
|
|
715
726
|
componentName: 'PisellDataSourceSetter',
|
|
716
727
|
props: {
|
|
717
728
|
mode: 'list',
|
|
729
|
+
filters: {
|
|
730
|
+
tables: 'all',
|
|
731
|
+
variables: {}
|
|
732
|
+
},
|
|
718
733
|
},
|
|
719
734
|
},
|
|
720
735
|
},
|
|
@@ -1319,6 +1334,9 @@ export const formItemGeneralProps = [
|
|
|
1319
1334
|
{ title: '网址', value: 'url' },
|
|
1320
1335
|
{ title: '域名', value: 'domain' },
|
|
1321
1336
|
{ title: '正则', value: 'pattern' },
|
|
1337
|
+
{ title: '手机号', value: 'mobile' },
|
|
1338
|
+
{ title: '电话号码', value: 'phone' },
|
|
1339
|
+
{ title: '子域名', value: 'subdomain' },
|
|
1322
1340
|
],
|
|
1323
1341
|
},
|
|
1324
1342
|
},
|
|
@@ -1334,6 +1352,7 @@ export const formItemGeneralProps = [
|
|
|
1334
1352
|
condition: (target: any) => {
|
|
1335
1353
|
return target.parent.getPropValue('type') === 'pattern';
|
|
1336
1354
|
},
|
|
1355
|
+
isRequired: true,
|
|
1337
1356
|
},
|
|
1338
1357
|
{
|
|
1339
1358
|
name: 'message',
|
|
@@ -1499,7 +1518,9 @@ export const genGeneralVariablesSetting = ({
|
|
|
1499
1518
|
componentName: 'PisellDataSourceSetter',
|
|
1500
1519
|
props: (target: any) => {
|
|
1501
1520
|
return {
|
|
1502
|
-
|
|
1521
|
+
filters: {
|
|
1522
|
+
variables: {}
|
|
1523
|
+
},
|
|
1503
1524
|
variables: getCptValuesVariables(target),
|
|
1504
1525
|
};
|
|
1505
1526
|
},
|