@steedos-widgets/sortable 3.6.2-beta.10 → 3.6.2-beta.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/dist/assets.json +5 -5
- package/dist/sortable.cjs.js +22 -19
- package/dist/sortable.cjs.js.map +1 -1
- package/dist/sortable.esm.js +22 -19
- package/dist/sortable.esm.js.map +1 -1
- package/dist/sortable.umd.js +22 -19
- package/package.json +3 -3
package/dist/sortable.umd.js
CHANGED
|
@@ -20252,6 +20252,9 @@
|
|
|
20252
20252
|
if(uiSchema.enable_split){
|
|
20253
20253
|
defaultDisplay = "split";
|
|
20254
20254
|
}
|
|
20255
|
+
if(window.innerWidth <= 768){
|
|
20256
|
+
return "grid";
|
|
20257
|
+
}
|
|
20255
20258
|
return value ? value : defaultDisplay;
|
|
20256
20259
|
},
|
|
20257
20260
|
|
|
@@ -20925,6 +20928,7 @@
|
|
|
20925
20928
|
var frontend_notifications_allread$1 = "Mark all as read";
|
|
20926
20929
|
var frontend_notifications_allread_message$1 = "All marked as read";
|
|
20927
20930
|
var frontend_profile$1 = "Profile";
|
|
20931
|
+
var switch_space$1 = "Switch Space";
|
|
20928
20932
|
var frontend_about$1 = "About";
|
|
20929
20933
|
var frontend_log_out$1 = "Log out";
|
|
20930
20934
|
var frontend_listview_warning_start$1 = "The current ";
|
|
@@ -21012,6 +21016,7 @@
|
|
|
21012
21016
|
frontend_notifications_allread: frontend_notifications_allread$1,
|
|
21013
21017
|
frontend_notifications_allread_message: frontend_notifications_allread_message$1,
|
|
21014
21018
|
frontend_profile: frontend_profile$1,
|
|
21019
|
+
switch_space: switch_space$1,
|
|
21015
21020
|
frontend_about: frontend_about$1,
|
|
21016
21021
|
frontend_log_out: frontend_log_out$1,
|
|
21017
21022
|
frontend_listview_warning_start: frontend_listview_warning_start$1,
|
|
@@ -21101,6 +21106,7 @@
|
|
|
21101
21106
|
var frontend_notifications_allread = "全部标记为已读";
|
|
21102
21107
|
var frontend_notifications_allread_message = "已全部标记为已读";
|
|
21103
21108
|
var frontend_profile = "个人资料";
|
|
21109
|
+
var switch_space = "切换工作区";
|
|
21104
21110
|
var frontend_about = "关于";
|
|
21105
21111
|
var frontend_log_out = "注销";
|
|
21106
21112
|
var frontend_listview_warning_start = "当前";
|
|
@@ -21189,6 +21195,7 @@
|
|
|
21189
21195
|
frontend_notifications_allread: frontend_notifications_allread,
|
|
21190
21196
|
frontend_notifications_allread_message: frontend_notifications_allread_message,
|
|
21191
21197
|
frontend_profile: frontend_profile,
|
|
21198
|
+
switch_space: switch_space,
|
|
21192
21199
|
frontend_about: frontend_about,
|
|
21193
21200
|
frontend_log_out: frontend_log_out,
|
|
21194
21201
|
frontend_listview_warning_start: frontend_listview_warning_start,
|
|
@@ -21677,7 +21684,7 @@
|
|
|
21677
21684
|
}
|
|
21678
21685
|
|
|
21679
21686
|
function getFieldWidth(width){
|
|
21680
|
-
const defaultWidth =
|
|
21687
|
+
const defaultWidth = null;
|
|
21681
21688
|
if(typeof width == 'string'){
|
|
21682
21689
|
if(isNaN(width)){
|
|
21683
21690
|
return width || defaultWidth;
|
|
@@ -21707,14 +21714,14 @@
|
|
|
21707
21714
|
//增加quickEdit属性,实现快速编辑
|
|
21708
21715
|
const quickEditSchema = allowEdit ? await getQuickEditSchema(field, options) : allowEdit;
|
|
21709
21716
|
let className = "";
|
|
21710
|
-
if(
|
|
21711
|
-
|
|
21712
|
-
|
|
21713
|
-
|
|
21717
|
+
if(/Safari/.test(navigator.userAgent)){
|
|
21718
|
+
className += " whitespace-nowrap ";
|
|
21719
|
+
}else {
|
|
21720
|
+
if(field.wrap != true){
|
|
21714
21721
|
className += " whitespace-nowrap ";
|
|
21722
|
+
}else {
|
|
21723
|
+
className += " break-words ";
|
|
21715
21724
|
}
|
|
21716
|
-
}else {
|
|
21717
|
-
className += " break-words ";
|
|
21718
21725
|
}
|
|
21719
21726
|
let columnItem;
|
|
21720
21727
|
if((field.is_name || field.name === options.labelFieldName) && options.objectName === 'cms_files'){
|
|
@@ -25323,17 +25330,13 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
|
|
|
25323
25330
|
|
|
25324
25331
|
function getLookupSapceUserTreeSchema(isMobile){
|
|
25325
25332
|
let apiAdaptor = `
|
|
25326
|
-
// console.log("===getLookupSapceUserTreeSchema===", JSON.stringify(payload));
|
|
25327
25333
|
const records = payload.data.options;
|
|
25328
|
-
let isTreeOptionsComputed = false;
|
|
25329
|
-
if(records.length === 1 && records[0].children){
|
|
25330
|
-
isTreeOptionsComputed = true;
|
|
25331
|
-
}
|
|
25332
|
-
if(isTreeOptionsComputed){
|
|
25333
|
-
return payload;
|
|
25334
|
-
}
|
|
25335
25334
|
const treeRecords = [];
|
|
25336
|
-
const getChildren = (records, childrenIds) => {
|
|
25335
|
+
const getChildren = (currentRecord, records, childrenIds) => {
|
|
25336
|
+
if (currentRecord.children && typeof currentRecord.children[0] === "object") {
|
|
25337
|
+
// 考虑api配置了cache缓存的话,不会请求接口但是会重新进这个接收适配器脚本且payload.data.options返回的会是上一次计算结果,这里直接返回计算过的children
|
|
25338
|
+
return currentRecord.children;
|
|
25339
|
+
}
|
|
25337
25340
|
if (!childrenIds) {
|
|
25338
25341
|
return;
|
|
25339
25342
|
}
|
|
@@ -25342,7 +25345,7 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
|
|
|
25342
25345
|
});
|
|
25343
25346
|
_.each(children, (item) => {
|
|
25344
25347
|
if (item.children) {
|
|
25345
|
-
item.children = getChildren(records, item.children)
|
|
25348
|
+
item.children = getChildren(item, records, item.children)
|
|
25346
25349
|
}else{
|
|
25347
25350
|
item.children = [];
|
|
25348
25351
|
}
|
|
@@ -25368,7 +25371,7 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
|
|
|
25368
25371
|
|
|
25369
25372
|
_.each(records, (record) => {
|
|
25370
25373
|
if (record.noParent == 1) {
|
|
25371
|
-
treeRecords.push(Object.assign({}, record, { children: getChildren(records, record.children) }));
|
|
25374
|
+
treeRecords.push(Object.assign({}, record, { children: getChildren(record, records, record.children) }));
|
|
25372
25375
|
}
|
|
25373
25376
|
});
|
|
25374
25377
|
console.log(treeRecords)
|
|
@@ -27103,7 +27106,7 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
|
|
|
27103
27106
|
}else {
|
|
27104
27107
|
convertData.className = 'm-0';
|
|
27105
27108
|
}
|
|
27106
|
-
if(readonly){
|
|
27109
|
+
if(readonly && ctx.mode !== 'edit'){
|
|
27107
27110
|
convertData.className = `${convertData.className} border-b`;
|
|
27108
27111
|
}
|
|
27109
27112
|
if(readonly){
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos-widgets/sortable",
|
|
3
|
-
"version": "3.6.2-beta.
|
|
3
|
+
"version": "3.6.2-beta.12",
|
|
4
4
|
"main": "dist/sortable.cjs.js",
|
|
5
5
|
"module": "dist/sortable.esm.js",
|
|
6
6
|
"unpkg": "dist/sortable.umd.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@dnd-kit/core": "^6.0.5",
|
|
47
47
|
"@dnd-kit/sortable": "^7.0.1",
|
|
48
|
-
"@steedos-widgets/amis-lib": "3.6.2-beta.
|
|
48
|
+
"@steedos-widgets/amis-lib": "3.6.2-beta.12"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "b33f87b4a0a125c4662bd07bb7dd553208ee90c4"
|
|
51
51
|
}
|