@steedos-widgets/sortable 3.6.2-beta.11 → 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 +18 -19
- package/dist/sortable.cjs.js.map +1 -1
- package/dist/sortable.esm.js +18 -19
- package/dist/sortable.esm.js.map +1 -1
- package/dist/sortable.umd.js +18 -19
- package/package.json +3 -3
package/dist/assets.json
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
{
|
|
4
4
|
"package": "@steedos-widgets/sortable",
|
|
5
5
|
"urls": [
|
|
6
|
-
"https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.
|
|
7
|
-
"https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.
|
|
6
|
+
"https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.12/dist/sortable.umd.js",
|
|
7
|
+
"https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.12/dist/sortable.umd.css"
|
|
8
8
|
],
|
|
9
9
|
"library": "BuilderSortable"
|
|
10
10
|
}
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"npm": {
|
|
16
16
|
"package": "@steedos-widgets/sortable"
|
|
17
17
|
},
|
|
18
|
-
"url": "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.
|
|
18
|
+
"url": "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.12/dist/meta.js",
|
|
19
19
|
"urls": {
|
|
20
|
-
"default": "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.
|
|
21
|
-
"design": "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.
|
|
20
|
+
"default": "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.12/dist/meta.js",
|
|
21
|
+
"design": "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.12/dist/meta.js"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
]
|
package/dist/sortable.cjs.js
CHANGED
|
@@ -53951,6 +53951,9 @@ const Router = {
|
|
|
53951
53951
|
if(uiSchema.enable_split){
|
|
53952
53952
|
defaultDisplay = "split";
|
|
53953
53953
|
}
|
|
53954
|
+
if(window.innerWidth <= 768){
|
|
53955
|
+
return "grid";
|
|
53956
|
+
}
|
|
53954
53957
|
return value ? value : defaultDisplay;
|
|
53955
53958
|
},
|
|
53956
53959
|
|
|
@@ -55380,7 +55383,7 @@ async function getQuickEditSchema(field, options){
|
|
|
55380
55383
|
}
|
|
55381
55384
|
|
|
55382
55385
|
function getFieldWidth(width){
|
|
55383
|
-
const defaultWidth =
|
|
55386
|
+
const defaultWidth = null;
|
|
55384
55387
|
if(typeof width == 'string'){
|
|
55385
55388
|
if(isNaN(width)){
|
|
55386
55389
|
return width || defaultWidth;
|
|
@@ -55410,14 +55413,14 @@ async function getTableColumns(fields, options){
|
|
|
55410
55413
|
//增加quickEdit属性,实现快速编辑
|
|
55411
55414
|
const quickEditSchema = allowEdit ? await getQuickEditSchema(field, options) : allowEdit;
|
|
55412
55415
|
let className = "";
|
|
55413
|
-
if(
|
|
55414
|
-
|
|
55415
|
-
|
|
55416
|
-
|
|
55416
|
+
if(/Safari/.test(navigator.userAgent)){
|
|
55417
|
+
className += " whitespace-nowrap ";
|
|
55418
|
+
}else {
|
|
55419
|
+
if(field.wrap != true){
|
|
55417
55420
|
className += " whitespace-nowrap ";
|
|
55421
|
+
}else {
|
|
55422
|
+
className += " break-words ";
|
|
55418
55423
|
}
|
|
55419
|
-
}else {
|
|
55420
|
-
className += " break-words ";
|
|
55421
55424
|
}
|
|
55422
55425
|
let columnItem;
|
|
55423
55426
|
if((field.is_name || field.name === options.labelFieldName) && options.objectName === 'cms_files'){
|
|
@@ -59026,17 +59029,13 @@ function getReferenceToSync(field) {
|
|
|
59026
59029
|
|
|
59027
59030
|
function getLookupSapceUserTreeSchema(isMobile){
|
|
59028
59031
|
let apiAdaptor = `
|
|
59029
|
-
// console.log("===getLookupSapceUserTreeSchema===", JSON.stringify(payload));
|
|
59030
59032
|
const records = payload.data.options;
|
|
59031
|
-
let isTreeOptionsComputed = false;
|
|
59032
|
-
if(records.length === 1 && records[0].children){
|
|
59033
|
-
isTreeOptionsComputed = true;
|
|
59034
|
-
}
|
|
59035
|
-
if(isTreeOptionsComputed){
|
|
59036
|
-
return payload;
|
|
59037
|
-
}
|
|
59038
59033
|
const treeRecords = [];
|
|
59039
|
-
const getChildren = (records, childrenIds) => {
|
|
59034
|
+
const getChildren = (currentRecord, records, childrenIds) => {
|
|
59035
|
+
if (currentRecord.children && typeof currentRecord.children[0] === "object") {
|
|
59036
|
+
// 考虑api配置了cache缓存的话,不会请求接口但是会重新进这个接收适配器脚本且payload.data.options返回的会是上一次计算结果,这里直接返回计算过的children
|
|
59037
|
+
return currentRecord.children;
|
|
59038
|
+
}
|
|
59040
59039
|
if (!childrenIds) {
|
|
59041
59040
|
return;
|
|
59042
59041
|
}
|
|
@@ -59045,7 +59044,7 @@ function getLookupSapceUserTreeSchema(isMobile){
|
|
|
59045
59044
|
});
|
|
59046
59045
|
_.each(children, (item) => {
|
|
59047
59046
|
if (item.children) {
|
|
59048
|
-
item.children = getChildren(records, item.children)
|
|
59047
|
+
item.children = getChildren(item, records, item.children)
|
|
59049
59048
|
}else{
|
|
59050
59049
|
item.children = [];
|
|
59051
59050
|
}
|
|
@@ -59071,7 +59070,7 @@ function getLookupSapceUserTreeSchema(isMobile){
|
|
|
59071
59070
|
|
|
59072
59071
|
_.each(records, (record) => {
|
|
59073
59072
|
if (record.noParent == 1) {
|
|
59074
|
-
treeRecords.push(Object.assign({}, record, { children: getChildren(records, record.children) }));
|
|
59073
|
+
treeRecords.push(Object.assign({}, record, { children: getChildren(record, records, record.children) }));
|
|
59075
59074
|
}
|
|
59076
59075
|
});
|
|
59077
59076
|
console.log(treeRecords)
|
|
@@ -60806,7 +60805,7 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
|
|
|
60806
60805
|
}else {
|
|
60807
60806
|
convertData.className = 'm-0';
|
|
60808
60807
|
}
|
|
60809
|
-
if(readonly){
|
|
60808
|
+
if(readonly && ctx.mode !== 'edit'){
|
|
60810
60809
|
convertData.className = `${convertData.className} border-b`;
|
|
60811
60810
|
}
|
|
60812
60811
|
if(readonly){
|