@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.esm.js
CHANGED
|
@@ -53947,6 +53947,9 @@ const Router = {
|
|
|
53947
53947
|
if(uiSchema.enable_split){
|
|
53948
53948
|
defaultDisplay = "split";
|
|
53949
53949
|
}
|
|
53950
|
+
if(window.innerWidth <= 768){
|
|
53951
|
+
return "grid";
|
|
53952
|
+
}
|
|
53950
53953
|
return value ? value : defaultDisplay;
|
|
53951
53954
|
},
|
|
53952
53955
|
|
|
@@ -54620,6 +54623,7 @@ var frontend_notifications$1 = "Notifications";
|
|
|
54620
54623
|
var frontend_notifications_allread$1 = "Mark all as read";
|
|
54621
54624
|
var frontend_notifications_allread_message$1 = "All marked as read";
|
|
54622
54625
|
var frontend_profile$1 = "Profile";
|
|
54626
|
+
var switch_space$1 = "Switch Space";
|
|
54623
54627
|
var frontend_about$1 = "About";
|
|
54624
54628
|
var frontend_log_out$1 = "Log out";
|
|
54625
54629
|
var frontend_listview_warning_start$1 = "The current ";
|
|
@@ -54707,6 +54711,7 @@ var en_us = {
|
|
|
54707
54711
|
frontend_notifications_allread: frontend_notifications_allread$1,
|
|
54708
54712
|
frontend_notifications_allread_message: frontend_notifications_allread_message$1,
|
|
54709
54713
|
frontend_profile: frontend_profile$1,
|
|
54714
|
+
switch_space: switch_space$1,
|
|
54710
54715
|
frontend_about: frontend_about$1,
|
|
54711
54716
|
frontend_log_out: frontend_log_out$1,
|
|
54712
54717
|
frontend_listview_warning_start: frontend_listview_warning_start$1,
|
|
@@ -54796,6 +54801,7 @@ var frontend_notifications = "通知";
|
|
|
54796
54801
|
var frontend_notifications_allread = "全部标记为已读";
|
|
54797
54802
|
var frontend_notifications_allread_message = "已全部标记为已读";
|
|
54798
54803
|
var frontend_profile = "个人资料";
|
|
54804
|
+
var switch_space = "切换工作区";
|
|
54799
54805
|
var frontend_about = "关于";
|
|
54800
54806
|
var frontend_log_out = "注销";
|
|
54801
54807
|
var frontend_listview_warning_start = "当前";
|
|
@@ -54884,6 +54890,7 @@ var zh_cn = {
|
|
|
54884
54890
|
frontend_notifications_allread: frontend_notifications_allread,
|
|
54885
54891
|
frontend_notifications_allread_message: frontend_notifications_allread_message,
|
|
54886
54892
|
frontend_profile: frontend_profile,
|
|
54893
|
+
switch_space: switch_space,
|
|
54887
54894
|
frontend_about: frontend_about,
|
|
54888
54895
|
frontend_log_out: frontend_log_out,
|
|
54889
54896
|
frontend_listview_warning_start: frontend_listview_warning_start,
|
|
@@ -55372,7 +55379,7 @@ async function getQuickEditSchema(field, options){
|
|
|
55372
55379
|
}
|
|
55373
55380
|
|
|
55374
55381
|
function getFieldWidth(width){
|
|
55375
|
-
const defaultWidth =
|
|
55382
|
+
const defaultWidth = null;
|
|
55376
55383
|
if(typeof width == 'string'){
|
|
55377
55384
|
if(isNaN(width)){
|
|
55378
55385
|
return width || defaultWidth;
|
|
@@ -55402,14 +55409,14 @@ async function getTableColumns(fields, options){
|
|
|
55402
55409
|
//增加quickEdit属性,实现快速编辑
|
|
55403
55410
|
const quickEditSchema = allowEdit ? await getQuickEditSchema(field, options) : allowEdit;
|
|
55404
55411
|
let className = "";
|
|
55405
|
-
if(
|
|
55406
|
-
|
|
55407
|
-
|
|
55408
|
-
|
|
55412
|
+
if(/Safari/.test(navigator.userAgent)){
|
|
55413
|
+
className += " whitespace-nowrap ";
|
|
55414
|
+
}else {
|
|
55415
|
+
if(field.wrap != true){
|
|
55409
55416
|
className += " whitespace-nowrap ";
|
|
55417
|
+
}else {
|
|
55418
|
+
className += " break-words ";
|
|
55410
55419
|
}
|
|
55411
|
-
}else {
|
|
55412
|
-
className += " break-words ";
|
|
55413
55420
|
}
|
|
55414
55421
|
let columnItem;
|
|
55415
55422
|
if((field.is_name || field.name === options.labelFieldName) && options.objectName === 'cms_files'){
|
|
@@ -59018,17 +59025,13 @@ function getReferenceToSync(field) {
|
|
|
59018
59025
|
|
|
59019
59026
|
function getLookupSapceUserTreeSchema(isMobile){
|
|
59020
59027
|
let apiAdaptor = `
|
|
59021
|
-
// console.log("===getLookupSapceUserTreeSchema===", JSON.stringify(payload));
|
|
59022
59028
|
const records = payload.data.options;
|
|
59023
|
-
let isTreeOptionsComputed = false;
|
|
59024
|
-
if(records.length === 1 && records[0].children){
|
|
59025
|
-
isTreeOptionsComputed = true;
|
|
59026
|
-
}
|
|
59027
|
-
if(isTreeOptionsComputed){
|
|
59028
|
-
return payload;
|
|
59029
|
-
}
|
|
59030
59029
|
const treeRecords = [];
|
|
59031
|
-
const getChildren = (records, childrenIds) => {
|
|
59030
|
+
const getChildren = (currentRecord, records, childrenIds) => {
|
|
59031
|
+
if (currentRecord.children && typeof currentRecord.children[0] === "object") {
|
|
59032
|
+
// 考虑api配置了cache缓存的话,不会请求接口但是会重新进这个接收适配器脚本且payload.data.options返回的会是上一次计算结果,这里直接返回计算过的children
|
|
59033
|
+
return currentRecord.children;
|
|
59034
|
+
}
|
|
59032
59035
|
if (!childrenIds) {
|
|
59033
59036
|
return;
|
|
59034
59037
|
}
|
|
@@ -59037,7 +59040,7 @@ function getLookupSapceUserTreeSchema(isMobile){
|
|
|
59037
59040
|
});
|
|
59038
59041
|
_.each(children, (item) => {
|
|
59039
59042
|
if (item.children) {
|
|
59040
|
-
item.children = getChildren(records, item.children)
|
|
59043
|
+
item.children = getChildren(item, records, item.children)
|
|
59041
59044
|
}else{
|
|
59042
59045
|
item.children = [];
|
|
59043
59046
|
}
|
|
@@ -59063,7 +59066,7 @@ function getLookupSapceUserTreeSchema(isMobile){
|
|
|
59063
59066
|
|
|
59064
59067
|
_.each(records, (record) => {
|
|
59065
59068
|
if (record.noParent == 1) {
|
|
59066
|
-
treeRecords.push(Object.assign({}, record, { children: getChildren(records, record.children) }));
|
|
59069
|
+
treeRecords.push(Object.assign({}, record, { children: getChildren(record, records, record.children) }));
|
|
59067
59070
|
}
|
|
59068
59071
|
});
|
|
59069
59072
|
console.log(treeRecords)
|
|
@@ -60798,7 +60801,7 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
|
|
|
60798
60801
|
}else {
|
|
60799
60802
|
convertData.className = 'm-0';
|
|
60800
60803
|
}
|
|
60801
|
-
if(readonly){
|
|
60804
|
+
if(readonly && ctx.mode !== 'edit'){
|
|
60802
60805
|
convertData.className = `${convertData.className} border-b`;
|
|
60803
60806
|
}
|
|
60804
60807
|
if(readonly){
|