@pisell/materials 1.0.606 → 1.0.608
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +3 -3
- package/build/lowcode/preview.js +154 -146
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +37 -23
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +38 -24
- package/es/components/Pagination/index.d.ts +1 -1
- package/es/components/appVersionControl/index.less +3 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +6 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useFormat.js +15 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/es/components/dataSourceComponents/fields/Select/index.js +2 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +1 -1
- package/es/components/dataSourceComponents/provider/variables/VariablesProvider.js +3 -0
- 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 +28 -3
- package/es/components/pisellDraggable/index.js +380 -2
- package/es/components/pisellDraggable/types.d.ts +15 -99
- package/es/components/pisellDraggable/utilities.d.ts +17 -0
- package/es/components/pisellDraggable/utilities.js +230 -0
- package/es/components/pisellDropSort/PisellDropSort.d.ts +5 -0
- package/es/components/pisellDropSort/PisellDropSort.js +102 -0
- package/es/components/pisellDropSort/PisellDropSort.less +92 -0
- package/es/components/pisellDropSort/components/SortableItem/index.d.ts +19 -0
- package/es/components/pisellDropSort/components/SortableItem/index.js +93 -0
- package/es/components/pisellDropSort/components/SortableItem/index.less +155 -0
- package/es/components/pisellDropSort/index.d.ts +3 -0
- package/es/components/pisellDropSort/index.js +2 -0
- package/es/components/pisellDropSort/types.d.ts +42 -0
- package/es/components/pisellDropSort/types.js +1 -0
- package/es/components/pisellModal/components/Information/index.js +0 -1
- package/es/components/versionModal/index.js +3 -1
- package/es/components/versionModal/index.less +9 -2
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/es/locales/en-US.d.ts +7 -6
- package/es/locales/en-US.js +16 -22
- package/es/locales/zh-CN.d.ts +7 -6
- package/es/locales/zh-CN.js +15 -21
- package/es/locales/zh-TW.d.ts +7 -6
- package/es/locales/zh-TW.js +17 -23
- package/lib/components/Pagination/index.d.ts +1 -1
- package/lib/components/appVersionControl/index.less +3 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +6 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useFormat.js +16 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/lib/components/dataSourceComponents/fields/Select/index.js +2 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.js +3 -0
- 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 +28 -3
- package/lib/components/pisellDraggable/index.js +237 -2
- package/lib/components/pisellDraggable/types.d.ts +15 -99
- package/lib/components/pisellDraggable/utilities.d.ts +17 -0
- package/lib/components/pisellDraggable/utilities.js +190 -0
- package/lib/components/pisellDropSort/PisellDropSort.d.ts +5 -0
- package/lib/components/pisellDropSort/PisellDropSort.js +147 -0
- package/lib/components/pisellDropSort/PisellDropSort.less +92 -0
- package/lib/components/pisellDropSort/components/SortableItem/index.d.ts +19 -0
- package/lib/components/pisellDropSort/components/SortableItem/index.js +164 -0
- package/lib/components/pisellDropSort/components/SortableItem/index.less +155 -0
- package/lib/components/pisellDropSort/index.d.ts +3 -0
- package/lib/components/pisellDropSort/index.js +36 -0
- package/lib/components/pisellDropSort/types.d.ts +42 -0
- package/lib/components/pisellDropSort/types.js +17 -0
- package/lib/components/pisellModal/components/Information/index.js +0 -1
- package/lib/components/versionModal/index.js +1 -1
- package/lib/components/versionModal/index.less +9 -2
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/lib/locales/en-US.d.ts +7 -6
- package/lib/locales/en-US.js +11 -1
- package/lib/locales/zh-CN.d.ts +7 -6
- package/lib/locales/zh-CN.js +10 -1
- package/lib/locales/zh-TW.d.ts +7 -6
- package/lib/locales/zh-TW.js +10 -1
- package/lowcode/custom-select/meta.ts +11 -15
- package/lowcode/form-item-translation/meta.ts +59 -1
- package/lowcode/pisell-drop-sort/meta.ts +343 -0
- package/package.json +2 -2
- package/es/components/pisellDraggable/PisellDraggable.d.ts +0 -18
- package/es/components/pisellDraggable/PisellDraggable.js +0 -190
- package/es/components/pisellDraggable/PisellDraggable.less +0 -154
- package/es/components/pisellDraggable/SortableItem.d.ts +0 -41
- package/es/components/pisellDraggable/SortableItem.js +0 -115
- package/lib/components/pisellDraggable/PisellDraggable.d.ts +0 -18
- package/lib/components/pisellDraggable/PisellDraggable.js +0 -175
- package/lib/components/pisellDraggable/PisellDraggable.less +0 -154
- package/lib/components/pisellDraggable/SortableItem.d.ts +0 -41
- package/lib/components/pisellDraggable/SortableItem.js +0 -127
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
.pisell-lowcode-version-modal-form {
|
|
2
|
-
|
|
3
|
-
}
|
|
2
|
+
padding: 16px 0 0 !important;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.pisell-lowcode-version-modal-current-version {
|
|
6
|
+
color: var(--Gray-500, #667085);
|
|
7
|
+
font-size: 16px;
|
|
8
|
+
font-weight: 400;
|
|
9
|
+
line-height: 24px; /* 150% */
|
|
10
|
+
}
|
package/lib/index.d.ts
CHANGED
|
@@ -132,3 +132,4 @@ export { default as PisellPriceKeyboard } from './components/virtual-keyboard/Am
|
|
|
132
132
|
export { default as PisellNumberKeyboard } from './components/virtual-keyboard/Number';
|
|
133
133
|
export { default as VirtualKeyboardTime } from './components/virtual-keyboard/Time';
|
|
134
134
|
export { default as WalletCard } from './components/walletCard';
|
|
135
|
+
export { default as PisellDropSort } from './components/pisellDropSort';
|
package/lib/index.js
CHANGED
|
@@ -121,6 +121,7 @@ __export(src_exports, {
|
|
|
121
121
|
PisellCustomCheckboxGroup: () => import_pisellCustomCheckboxGroup.default,
|
|
122
122
|
PisellDatePicker: () => import_pisellDatePicker.default,
|
|
123
123
|
PisellDraggable: () => import_pisellDraggable.default,
|
|
124
|
+
PisellDropSort: () => import_pisellDropSort.default,
|
|
124
125
|
PisellDropdown: () => import_pisellDropdown.default,
|
|
125
126
|
PisellEmpty: () => import_pisellEmpty.default,
|
|
126
127
|
PisellFloatingPanel: () => import_pisellFloatingPanel.default,
|
|
@@ -333,6 +334,7 @@ var import_Amount = __toESM(require("./components/virtual-keyboard/Amount"));
|
|
|
333
334
|
var import_Number = __toESM(require("./components/virtual-keyboard/Number"));
|
|
334
335
|
var import_Time = __toESM(require("./components/virtual-keyboard/Time"));
|
|
335
336
|
var import_walletCard = __toESM(require("./components/walletCard"));
|
|
337
|
+
var import_pisellDropSort = __toESM(require("./components/pisellDropSort"));
|
|
336
338
|
// Annotate the CommonJS export names for ESM import in node:
|
|
337
339
|
0 && (module.exports = {
|
|
338
340
|
Affix,
|
|
@@ -427,6 +429,7 @@ var import_walletCard = __toESM(require("./components/walletCard"));
|
|
|
427
429
|
PisellCustomCheckboxGroup,
|
|
428
430
|
PisellDatePicker,
|
|
429
431
|
PisellDraggable,
|
|
432
|
+
PisellDropSort,
|
|
430
433
|
PisellDropdown,
|
|
431
434
|
PisellEmpty,
|
|
432
435
|
PisellFloatingPanel,
|
package/lib/locales/en-US.d.ts
CHANGED
|
@@ -190,12 +190,6 @@ declare const _default: {
|
|
|
190
190
|
'pisell-version-modal-version-error': string;
|
|
191
191
|
'pisell-version-modal-version-required': string;
|
|
192
192
|
'pisell-version-modal-based-on-version': string;
|
|
193
|
-
'pisell-icon-select-outlined': string;
|
|
194
|
-
'pisell-icon-select-filled': string;
|
|
195
|
-
'pisell-icon-select-two-tone': string;
|
|
196
|
-
'pisell-icon-select-iconfont': string;
|
|
197
|
-
'pisell-icon-select-search': string;
|
|
198
|
-
'pisell-icon-select-select': string;
|
|
199
193
|
'subdomain-error-too-short': string;
|
|
200
194
|
'subdomain-error-too-long': string;
|
|
201
195
|
'subdomain-error-pattern': string;
|
|
@@ -203,6 +197,12 @@ declare const _default: {
|
|
|
203
197
|
'subdomain-error-hyphen-ends': string;
|
|
204
198
|
'subdomain-error-consecutive-hyphens': string;
|
|
205
199
|
'subdomain-error-required': string;
|
|
200
|
+
'pisell-icon-select-outlined': string;
|
|
201
|
+
'pisell-icon-select-filled': string;
|
|
202
|
+
'pisell-icon-select-two-tone': string;
|
|
203
|
+
'pisell-icon-select-iconfont': string;
|
|
204
|
+
'pisell-icon-select-search': string;
|
|
205
|
+
'pisell-icon-select-select': string;
|
|
206
206
|
'pisell-lowcode-app-version-control-live': string;
|
|
207
207
|
'pisell-lowcode-app-version-control-draft': string;
|
|
208
208
|
'pisell-lowcode-app-version-control-deprecated': string;
|
|
@@ -213,5 +213,6 @@ declare const _default: {
|
|
|
213
213
|
'pisell-lowcode-app-version-control-promote-version-ok': string;
|
|
214
214
|
'pisell-lowcode-app-version-control-promote-version-cancel': string;
|
|
215
215
|
'pisell-lowcode-app-version-control-version-exists': string;
|
|
216
|
+
'pisell-lowcode-drop-sort-add': string;
|
|
216
217
|
};
|
|
217
218
|
export default _default;
|
package/lib/locales/en-US.js
CHANGED
|
@@ -232,6 +232,14 @@ var en_US_default = {
|
|
|
232
232
|
"pisell-version-modal-version-error": "Version number must be greater than the current version",
|
|
233
233
|
"pisell-version-modal-version-required": "Version number is required",
|
|
234
234
|
"pisell-version-modal-based-on-version": "Based on version",
|
|
235
|
+
// 子域名校验错误
|
|
236
|
+
"subdomain-error-too-short": "Subdomain must be at least 2 characters long",
|
|
237
|
+
"subdomain-error-too-long": "Subdomain cannot exceed 60 characters",
|
|
238
|
+
"subdomain-error-pattern": "Subdomain can only contain lowercase letters, numbers and hyphens",
|
|
239
|
+
"subdomain-error-numbers-only": "Subdomain cannot contain only numbers",
|
|
240
|
+
"subdomain-error-hyphen-ends": "Subdomain cannot start or end with a hyphen",
|
|
241
|
+
"subdomain-error-consecutive-hyphens": "Subdomain cannot contain consecutive hyphens",
|
|
242
|
+
"subdomain-error-required": "Please enter subdomain",
|
|
235
243
|
// 图标选择组件
|
|
236
244
|
"pisell-icon-select-outlined": "Outlined",
|
|
237
245
|
"pisell-icon-select-filled": "Filled",
|
|
@@ -257,5 +265,7 @@ var en_US_default = {
|
|
|
257
265
|
"pisell-lowcode-app-version-control-promote-version-describe": "Promoting this version will lock it further changes",
|
|
258
266
|
"pisell-lowcode-app-version-control-promote-version-ok": "Promote",
|
|
259
267
|
"pisell-lowcode-app-version-control-promote-version-cancel": "Cancel",
|
|
260
|
-
"pisell-lowcode-app-version-control-version-exists": "Version already exists"
|
|
268
|
+
"pisell-lowcode-app-version-control-version-exists": "Version already exists",
|
|
269
|
+
// 拖拽排序组件
|
|
270
|
+
"pisell-lowcode-drop-sort-add": "Add"
|
|
261
271
|
};
|
package/lib/locales/zh-CN.d.ts
CHANGED
|
@@ -190,18 +190,18 @@ declare const _default: {
|
|
|
190
190
|
'pisell-version-modal-version-error': string;
|
|
191
191
|
'pisell-version-modal-version-required': string;
|
|
192
192
|
'pisell-version-modal-based-on-version': string;
|
|
193
|
-
'pisell-icon-select-outlined': string;
|
|
194
|
-
'pisell-icon-select-filled': string;
|
|
195
|
-
'pisell-icon-select-two-tone': string;
|
|
196
|
-
'pisell-icon-select-iconfont': string;
|
|
197
|
-
'pisell-icon-select-search': string;
|
|
198
|
-
'pisell-icon-select-select': string;
|
|
199
193
|
'subdomain-error-too-short': string;
|
|
200
194
|
'subdomain-error-too-long': string;
|
|
201
195
|
'subdomain-error-pattern': string;
|
|
202
196
|
'subdomain-error-numbers-only': string;
|
|
203
197
|
'subdomain-error-hyphen-ends': string;
|
|
204
198
|
'subdomain-error-consecutive-hyphens': string;
|
|
199
|
+
'pisell-icon-select-outlined': string;
|
|
200
|
+
'pisell-icon-select-filled': string;
|
|
201
|
+
'pisell-icon-select-two-tone': string;
|
|
202
|
+
'pisell-icon-select-iconfont': string;
|
|
203
|
+
'pisell-icon-select-search': string;
|
|
204
|
+
'pisell-icon-select-select': string;
|
|
205
205
|
'pisell-lowcode-app-version-control-live': string;
|
|
206
206
|
'pisell-lowcode-app-version-control-draft': string;
|
|
207
207
|
'pisell-lowcode-app-version-control-deprecated': string;
|
|
@@ -212,5 +212,6 @@ declare const _default: {
|
|
|
212
212
|
'pisell-lowcode-app-version-control-promote-version-ok': string;
|
|
213
213
|
'pisell-lowcode-app-version-control-promote-version-cancel': string;
|
|
214
214
|
'pisell-lowcode-app-version-control-version-exists': string;
|
|
215
|
+
'pisell-lowcode-drop-sort-add': string;
|
|
215
216
|
};
|
|
216
217
|
export default _default;
|
package/lib/locales/zh-CN.js
CHANGED
|
@@ -231,6 +231,13 @@ var zh_CN_default = {
|
|
|
231
231
|
"pisell-version-modal-version-error": "版本号必须大于当前版本",
|
|
232
232
|
"pisell-version-modal-version-required": "版本号为必填项",
|
|
233
233
|
"pisell-version-modal-based-on-version": "基于版本",
|
|
234
|
+
// 子域名校验错误
|
|
235
|
+
"subdomain-error-too-short": "子域名长度不能小于2个字符",
|
|
236
|
+
"subdomain-error-too-long": "子域名长度不能超过60个字符",
|
|
237
|
+
"subdomain-error-pattern": "子域名只能包含小写字母、数字和连字符",
|
|
238
|
+
"subdomain-error-numbers-only": "子域名不能全为数字",
|
|
239
|
+
"subdomain-error-hyphen-ends": "子域名不能以连字符开头或结尾",
|
|
240
|
+
"subdomain-error-consecutive-hyphens": "子域名不能包含连续的连字符",
|
|
234
241
|
"pisell-icon-select-outlined": "线框风格",
|
|
235
242
|
"pisell-icon-select-filled": "实底风格",
|
|
236
243
|
"pisell-icon-select-two-tone": "双色风格",
|
|
@@ -254,5 +261,7 @@ var zh_CN_default = {
|
|
|
254
261
|
"pisell-lowcode-app-version-control-promote-version-describe": "发布版本后,该版本将无法再进行修改",
|
|
255
262
|
"pisell-lowcode-app-version-control-promote-version-ok": "发布",
|
|
256
263
|
"pisell-lowcode-app-version-control-promote-version-cancel": "取消",
|
|
257
|
-
"pisell-lowcode-app-version-control-version-exists": "版本已存在"
|
|
264
|
+
"pisell-lowcode-app-version-control-version-exists": "版本已存在",
|
|
265
|
+
// 拖拽排序组件
|
|
266
|
+
"pisell-lowcode-drop-sort-add": "添加"
|
|
258
267
|
};
|
package/lib/locales/zh-TW.d.ts
CHANGED
|
@@ -189,6 +189,12 @@ declare const _default: {
|
|
|
189
189
|
'pisell-version-modal-version-error': string;
|
|
190
190
|
'pisell-version-modal-version-required': string;
|
|
191
191
|
'pisell-version-modal-based-on-version': string;
|
|
192
|
+
'subdomain-error-too-short': string;
|
|
193
|
+
'subdomain-error-too-long': string;
|
|
194
|
+
'subdomain-error-pattern': string;
|
|
195
|
+
'subdomain-error-numbers-only': string;
|
|
196
|
+
'subdomain-error-hyphen-ends': string;
|
|
197
|
+
'subdomain-error-consecutive-hyphens': string;
|
|
192
198
|
'pisell-icon-select-placeholder': string;
|
|
193
199
|
'pisell-icon-select-outlined': string;
|
|
194
200
|
'pisell-icon-select-filled': string;
|
|
@@ -196,12 +202,6 @@ declare const _default: {
|
|
|
196
202
|
'pisell-icon-select-iconfont': string;
|
|
197
203
|
'pisell-icon-select-search': string;
|
|
198
204
|
'pisell-icon-select-select': string;
|
|
199
|
-
'subdomain-error-too-short': string;
|
|
200
|
-
'subdomain-error-too-long': string;
|
|
201
|
-
'subdomain-error-pattern': string;
|
|
202
|
-
'subdomain-error-numbers-only': string;
|
|
203
|
-
'subdomain-error-hyphen-ends': string;
|
|
204
|
-
'subdomain-error-consecutive-hyphens': string;
|
|
205
205
|
'pisell-lowcode-app-version-control-live': string;
|
|
206
206
|
'pisell-lowcode-app-version-control-draft': string;
|
|
207
207
|
'pisell-lowcode-app-version-control-deprecated': string;
|
|
@@ -212,5 +212,6 @@ declare const _default: {
|
|
|
212
212
|
'pisell-lowcode-app-version-control-promote-version-ok': string;
|
|
213
213
|
'pisell-lowcode-app-version-control-promote-version-cancel': string;
|
|
214
214
|
'pisell-lowcode-app-version-control-version-exists': string;
|
|
215
|
+
'pisell-lowcode-drop-sort-add': string;
|
|
215
216
|
};
|
|
216
217
|
export default _default;
|
package/lib/locales/zh-TW.js
CHANGED
|
@@ -231,6 +231,13 @@ var zh_TW_default = {
|
|
|
231
231
|
"pisell-version-modal-version-error": "版本號必須大於當前版本",
|
|
232
232
|
"pisell-version-modal-version-required": "版本號為必填項",
|
|
233
233
|
"pisell-version-modal-based-on-version": "基於版本",
|
|
234
|
+
// 子域名校验错误
|
|
235
|
+
"subdomain-error-too-short": "子域名長度不能小於2個字符",
|
|
236
|
+
"subdomain-error-too-long": "子域名長度不能超過60個字符",
|
|
237
|
+
"subdomain-error-pattern": "子域名只能包含小寫字母、數字和連字符",
|
|
238
|
+
"subdomain-error-numbers-only": "子域名不能全為數字",
|
|
239
|
+
"subdomain-error-hyphen-ends": "子域名不能以連字符開頭或結尾",
|
|
240
|
+
"subdomain-error-consecutive-hyphens": "子域名不能包含連續的連字符",
|
|
234
241
|
// 图标选择组件
|
|
235
242
|
"pisell-icon-select-placeholder": "選擇圖標",
|
|
236
243
|
"pisell-icon-select-outlined": "線框風格",
|
|
@@ -256,5 +263,7 @@ var zh_TW_default = {
|
|
|
256
263
|
"pisell-lowcode-app-version-control-promote-version-describe": "發布版本後,該版本將無法再進行修改",
|
|
257
264
|
"pisell-lowcode-app-version-control-promote-version-ok": "發布",
|
|
258
265
|
"pisell-lowcode-app-version-control-promote-version-cancel": "取消",
|
|
259
|
-
"pisell-lowcode-app-version-control-version-exists": "版本已存在"
|
|
266
|
+
"pisell-lowcode-app-version-control-version-exists": "版本已存在",
|
|
267
|
+
// 拖拽排序组件
|
|
268
|
+
"pisell-lowcode-drop-sort-add": "添加"
|
|
260
269
|
};
|
|
@@ -26,9 +26,18 @@ export default {
|
|
|
26
26
|
type: 'oneOfType',
|
|
27
27
|
value: [
|
|
28
28
|
'string',
|
|
29
|
-
{ type: 'arrayOf', value: 'string' },
|
|
30
29
|
'number',
|
|
31
|
-
|
|
30
|
+
],
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'value',
|
|
35
|
+
title: { label: '当前值', tip: '当前值' },
|
|
36
|
+
propType: {
|
|
37
|
+
type: 'oneOfType',
|
|
38
|
+
value: [
|
|
39
|
+
'string',
|
|
40
|
+
'number',
|
|
32
41
|
],
|
|
33
42
|
},
|
|
34
43
|
},
|
|
@@ -56,19 +65,6 @@ export default {
|
|
|
56
65
|
'VariableSetter',
|
|
57
66
|
],
|
|
58
67
|
},
|
|
59
|
-
{
|
|
60
|
-
name: 'value',
|
|
61
|
-
title: { label: '当前值', tip: '当前值' },
|
|
62
|
-
propType: {
|
|
63
|
-
type: 'oneOfType',
|
|
64
|
-
value: [
|
|
65
|
-
'string',
|
|
66
|
-
{ type: 'arrayOf', value: 'string' },
|
|
67
|
-
'number',
|
|
68
|
-
{ type: 'arrayOf', value: 'number' },
|
|
69
|
-
],
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
68
|
{
|
|
73
69
|
name: 'options',
|
|
74
70
|
title: { label: '可选项', tip: '可选项' },
|
|
@@ -35,7 +35,65 @@ export default {
|
|
|
35
35
|
// generalItemMap['defaultValue'],
|
|
36
36
|
]),
|
|
37
37
|
getFormItemValidateGroup([
|
|
38
|
-
|
|
38
|
+
{
|
|
39
|
+
name: 'requiredobj',
|
|
40
|
+
title: {
|
|
41
|
+
label: {
|
|
42
|
+
type: 'i18n',
|
|
43
|
+
'en-US': 'Required',
|
|
44
|
+
'zh-CN': '必填',
|
|
45
|
+
},
|
|
46
|
+
tip: {
|
|
47
|
+
type: 'i18n',
|
|
48
|
+
'en-US': 'Required',
|
|
49
|
+
'zh-CN': '必填',
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
setter: {
|
|
53
|
+
componentName: 'ObjectSetter',
|
|
54
|
+
props: {
|
|
55
|
+
config: {
|
|
56
|
+
items: [
|
|
57
|
+
{
|
|
58
|
+
name: 'required',
|
|
59
|
+
title: {
|
|
60
|
+
type: 'i18n',
|
|
61
|
+
'en-US': 'Required',
|
|
62
|
+
'zh-CN': '是否必填',
|
|
63
|
+
},
|
|
64
|
+
propType: 'bool',
|
|
65
|
+
setter: 'BoolSetter',
|
|
66
|
+
isRequired: true,
|
|
67
|
+
extraProps: {
|
|
68
|
+
setValue(target: any, value: boolean) {
|
|
69
|
+
target.parent.setPropValue('transform', {
|
|
70
|
+
type: 'JSExpression',
|
|
71
|
+
value:
|
|
72
|
+
'(value) => Object.values(value || {}).join("")',
|
|
73
|
+
});
|
|
74
|
+
target.node.getProps().setPropValue('required', value);
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: 'message',
|
|
80
|
+
title: {
|
|
81
|
+
type: 'i18n',
|
|
82
|
+
'en-US': 'Error message',
|
|
83
|
+
'zh-CN': '错误信息提示',
|
|
84
|
+
},
|
|
85
|
+
propType: 'string',
|
|
86
|
+
setter: 'PisellI18nSetter',
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
},
|
|
90
|
+
columns: 1,
|
|
91
|
+
forceInline: 1,
|
|
92
|
+
mode: 'popup',
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
// generalItemMap['requiredobj'],
|
|
39
97
|
generalItemMap['minLengthobj'],
|
|
40
98
|
generalItemMap['maxLengthobj'],
|
|
41
99
|
generalItemMap['typeobj'],
|
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IPublicTypeComponentMetadata,
|
|
3
|
+
IPublicTypeSnippet,
|
|
4
|
+
} from '@alilc/lowcode-types';
|
|
5
|
+
|
|
6
|
+
const PisellDropSortMeta: IPublicTypeComponentMetadata = {
|
|
7
|
+
componentName: 'PisellDropSort',
|
|
8
|
+
title: 'PisellDropSort',
|
|
9
|
+
docUrl: '',
|
|
10
|
+
screenshot: '',
|
|
11
|
+
devMode: 'proCode',
|
|
12
|
+
npm: {
|
|
13
|
+
package: '@pisell/materials',
|
|
14
|
+
version: '1.0.3',
|
|
15
|
+
exportName: 'PisellDropSort',
|
|
16
|
+
main: 'src/index.tsx',
|
|
17
|
+
destructuring: true,
|
|
18
|
+
subName: '',
|
|
19
|
+
},
|
|
20
|
+
props: [
|
|
21
|
+
{
|
|
22
|
+
name: 'value',
|
|
23
|
+
propType: 'object',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'allowDrag',
|
|
27
|
+
propType: 'bool',
|
|
28
|
+
description: '允许拖拽',
|
|
29
|
+
defaultValue: true,
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'allowDelete',
|
|
33
|
+
propType: 'bool',
|
|
34
|
+
description: '允许删除',
|
|
35
|
+
defaultValue: true,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'allowAddChild',
|
|
39
|
+
propType: 'bool',
|
|
40
|
+
description: '允许添加子节点',
|
|
41
|
+
defaultValue: true,
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: 'allowAddRoot',
|
|
45
|
+
propType: 'bool',
|
|
46
|
+
description: '允许添加根节点',
|
|
47
|
+
defaultValue: true,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: 'disabled',
|
|
51
|
+
propType: 'bool',
|
|
52
|
+
description: '是否禁用',
|
|
53
|
+
defaultValue: false,
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: 'spacing',
|
|
57
|
+
propType: 'number',
|
|
58
|
+
description: '间距',
|
|
59
|
+
defaultValue: 8,
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: 'maxLevel',
|
|
63
|
+
propType: 'number',
|
|
64
|
+
description: '最大层级数',
|
|
65
|
+
defaultValue: 3,
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: 'showBorder',
|
|
69
|
+
propType: 'bool',
|
|
70
|
+
description: '显示边框',
|
|
71
|
+
defaultValue: true,
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: 'className',
|
|
75
|
+
propType: 'string',
|
|
76
|
+
description: '类名',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: 'style',
|
|
80
|
+
propType: 'object',
|
|
81
|
+
description: '样式',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'onDragEnd',
|
|
85
|
+
propType: 'func',
|
|
86
|
+
description: '拖拽完成回调',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: 'onDelete',
|
|
90
|
+
propType: 'func',
|
|
91
|
+
description: '删除节点回调',
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: 'onAdd',
|
|
95
|
+
propType: 'func',
|
|
96
|
+
description: '添加节点回调',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: 'renderItem',
|
|
100
|
+
propType: {
|
|
101
|
+
type: 'func',
|
|
102
|
+
},
|
|
103
|
+
setter: [
|
|
104
|
+
{
|
|
105
|
+
componentName: 'SlotSetter',
|
|
106
|
+
title: '渲染函数插槽',
|
|
107
|
+
initialValue: {
|
|
108
|
+
type: 'JSSlot',
|
|
109
|
+
params: ['option'],
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
componentName: 'FunctionSetter',
|
|
114
|
+
props: {
|
|
115
|
+
template:
|
|
116
|
+
'renderItem(item,${extParams}){\n// 自定义渲染\nreturn `item`;\n}',
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
'VariableSetter',
|
|
120
|
+
],
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: 'leftContent',
|
|
124
|
+
propType: {
|
|
125
|
+
type: 'func',
|
|
126
|
+
},
|
|
127
|
+
description: '左侧自定义内容',
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
configure: {
|
|
131
|
+
props: [
|
|
132
|
+
{
|
|
133
|
+
name: 'value',
|
|
134
|
+
setter: 'JsonSetter',
|
|
135
|
+
title: {
|
|
136
|
+
label: {
|
|
137
|
+
type: 'i18n',
|
|
138
|
+
'en-US': 'Data source',
|
|
139
|
+
'zh-CN': '数据源',
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: 'allowDrag',
|
|
145
|
+
setter: 'BoolSetter',
|
|
146
|
+
defaultValue: true,
|
|
147
|
+
title: {
|
|
148
|
+
label: {
|
|
149
|
+
type: 'i18n',
|
|
150
|
+
'en-US': 'Allow drag',
|
|
151
|
+
'zh-CN': '允许拖拽',
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: 'allowDelete',
|
|
157
|
+
setter: 'BoolSetter',
|
|
158
|
+
defaultValue: true,
|
|
159
|
+
title: {
|
|
160
|
+
label: {
|
|
161
|
+
type: 'i18n',
|
|
162
|
+
'en-US': 'Allow delete',
|
|
163
|
+
'zh-CN': '允许删除',
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
name: 'allowAddChild',
|
|
169
|
+
setter: 'BoolSetter',
|
|
170
|
+
defaultValue: true,
|
|
171
|
+
title: {
|
|
172
|
+
label: {
|
|
173
|
+
type: 'i18n',
|
|
174
|
+
'en-US': 'Allow add child',
|
|
175
|
+
'zh-CN': '允许添加子节点',
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
name: 'allowAddRoot',
|
|
181
|
+
setter: 'BoolSetter',
|
|
182
|
+
defaultValue: true,
|
|
183
|
+
title: {
|
|
184
|
+
label: {
|
|
185
|
+
type: 'i18n',
|
|
186
|
+
'en-US': 'Allow add root',
|
|
187
|
+
'zh-CN': '允许添加根节点',
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
name: 'disabled',
|
|
193
|
+
setter: 'BoolSetter',
|
|
194
|
+
defaultValue: false,
|
|
195
|
+
title: {
|
|
196
|
+
label: {
|
|
197
|
+
type: 'i18n',
|
|
198
|
+
'en-US': 'Disabled',
|
|
199
|
+
'zh-CN': '是否禁用',
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
name: 'spacing',
|
|
205
|
+
setter: 'NumberSetter',
|
|
206
|
+
defaultValue: 8,
|
|
207
|
+
title: {
|
|
208
|
+
label: {
|
|
209
|
+
type: 'i18n',
|
|
210
|
+
'en-US': 'Spacing',
|
|
211
|
+
'zh-CN': '间距',
|
|
212
|
+
},
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
name: 'maxLevel',
|
|
217
|
+
setter: 'NumberSetter',
|
|
218
|
+
defaultValue: 3,
|
|
219
|
+
title: {
|
|
220
|
+
label: {
|
|
221
|
+
type: 'i18n',
|
|
222
|
+
'en-US': 'Max level',
|
|
223
|
+
'zh-CN': '最大层级数',
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
name: 'showBorder',
|
|
229
|
+
setter: 'BoolSetter',
|
|
230
|
+
defaultValue: true,
|
|
231
|
+
title: {
|
|
232
|
+
label: {
|
|
233
|
+
type: 'i18n',
|
|
234
|
+
'en-US': 'Show border',
|
|
235
|
+
'zh-CN': '显示边框',
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
name: 'renderItem',
|
|
241
|
+
title: { label: '自定义渲染', tip: '自定义渲染选项内容' },
|
|
242
|
+
setter: [
|
|
243
|
+
{
|
|
244
|
+
componentName: 'SlotSetter',
|
|
245
|
+
title: '渲染函数插槽',
|
|
246
|
+
initialValue: {
|
|
247
|
+
type: 'JSSlot',
|
|
248
|
+
params: ['item'],
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
componentName: 'FunctionSetter',
|
|
253
|
+
props: {
|
|
254
|
+
template:
|
|
255
|
+
'renderItem(item,${extParams}){\n// 自定义渲染\nreturn `item`;\n}',
|
|
256
|
+
},
|
|
257
|
+
},
|
|
258
|
+
'VariableSetter',
|
|
259
|
+
],
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
name: 'leftContent',
|
|
263
|
+
title: { label: '左侧自定义内容', tip: '左侧自定义内容' },
|
|
264
|
+
setter: {
|
|
265
|
+
componentName: 'SlotSetter',
|
|
266
|
+
title: '左侧自定义内容',
|
|
267
|
+
initialValue: {
|
|
268
|
+
type: 'JSSlot',
|
|
269
|
+
},
|
|
270
|
+
},
|
|
271
|
+
},
|
|
272
|
+
],
|
|
273
|
+
component: {
|
|
274
|
+
isContainer: true,
|
|
275
|
+
},
|
|
276
|
+
supports: {
|
|
277
|
+
style: true,
|
|
278
|
+
className: true,
|
|
279
|
+
events: [
|
|
280
|
+
{
|
|
281
|
+
name: 'onChange',
|
|
282
|
+
template: "onChange(item,${extParams}){\n// 节点变化回调\nconsole.log('onChange',item);}",
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
name: 'onDelete',
|
|
286
|
+
template: "onDelete(item,${extParams}){\n// 删除节点回调\nconsole.log('onDelete',item);}",
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
name: 'onAdd',
|
|
290
|
+
template: "onAdd(item,${extParams}){\n// 添加节点回调\nconsole.log('onAdd',item);}",
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
name: 'onDragEnd',
|
|
294
|
+
template: "onDragEnd(item,${extParams}){\n// 拖拽完成回调\nconsole.log('onDragEnd',item);}",
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
name: 'onAddRoot',
|
|
298
|
+
template: "onAddRoot(item,${extParams}){\n// 添加根节点回调\nconsole.log('onAddRoot',item);}",
|
|
299
|
+
}
|
|
300
|
+
],
|
|
301
|
+
},
|
|
302
|
+
},
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
const snippets: IPublicTypeSnippet[] = [
|
|
306
|
+
{
|
|
307
|
+
title: 'PisellDropSort',
|
|
308
|
+
screenshot: '',
|
|
309
|
+
schema: {
|
|
310
|
+
componentName: 'PisellDropSort',
|
|
311
|
+
props: {
|
|
312
|
+
renderItem: {
|
|
313
|
+
type: 'JSSlot',
|
|
314
|
+
params: ['item'],
|
|
315
|
+
},
|
|
316
|
+
leftContent: {
|
|
317
|
+
type: 'JSSlot',
|
|
318
|
+
},
|
|
319
|
+
value: [
|
|
320
|
+
{
|
|
321
|
+
id: '1',
|
|
322
|
+
title: '节点1',
|
|
323
|
+
children: [
|
|
324
|
+
{
|
|
325
|
+
id: '1-1',
|
|
326
|
+
title: '节点1-1',
|
|
327
|
+
},
|
|
328
|
+
],
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
id: '2',
|
|
332
|
+
title: '节点2',
|
|
333
|
+
},
|
|
334
|
+
],
|
|
335
|
+
},
|
|
336
|
+
},
|
|
337
|
+
},
|
|
338
|
+
];
|
|
339
|
+
|
|
340
|
+
export default {
|
|
341
|
+
...PisellDropSortMeta,
|
|
342
|
+
snippets,
|
|
343
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.608",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"libphonenumber-js": "^1.11.17",
|
|
70
70
|
"swiper": "^8.4.7",
|
|
71
71
|
"react-barcode": "^1.5.3",
|
|
72
|
-
"@pisell/icon": "0.0.10",
|
|
73
72
|
"@pisell/date-picker": "1.0.115",
|
|
73
|
+
"@pisell/icon": "0.0.10",
|
|
74
74
|
"@pisell/utils": "1.0.43"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|