@steedos-widgets/sortable 3.6.0-beta.9 → 3.6.1
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 +24 -9
- package/dist/sortable.cjs.js.map +1 -1
- package/dist/sortable.esm.js +24 -9
- package/dist/sortable.esm.js.map +1 -1
- package/dist/sortable.umd.js +24 -9
- 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.
|
|
7
|
-
"https://unpkg.com/@steedos-widgets/sortable@3.6.
|
|
6
|
+
"https://unpkg.com/@steedos-widgets/sortable@3.6.1/dist/sortable.umd.js",
|
|
7
|
+
"https://unpkg.com/@steedos-widgets/sortable@3.6.1/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.
|
|
18
|
+
"url": "https://unpkg.com/@steedos-widgets/sortable@3.6.1/dist/meta.js",
|
|
19
19
|
"urls": {
|
|
20
|
-
"default": "https://unpkg.com/@steedos-widgets/sortable@3.6.
|
|
21
|
-
"design": "https://unpkg.com/@steedos-widgets/sortable@3.6.
|
|
20
|
+
"default": "https://unpkg.com/@steedos-widgets/sortable@3.6.1/dist/meta.js",
|
|
21
|
+
"design": "https://unpkg.com/@steedos-widgets/sortable@3.6.1/dist/meta.js"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
]
|
package/dist/sortable.cjs.js
CHANGED
|
@@ -54952,11 +54952,11 @@ async function getQuickEditSchema(field, options){
|
|
|
54952
54952
|
if(event.data.isBatchEdit){
|
|
54953
54953
|
selectedItems.forEach(function(selectedItem){
|
|
54954
54954
|
selectedItem._display.${field.name} = event.data._display.${field.name};
|
|
54955
|
-
doAction({actionType: 'setValue', "args": {"value": selectedItem._display},componentId: "_display_" + selectedItem._index});
|
|
54955
|
+
doAction({actionType: 'setValue', "args": {"value": selectedItem._display},componentId: ${options.objectName} + "_display_" + selectedItem._index});
|
|
54956
54956
|
doAction({actionType: 'setValue', "args": {"value": event.data.${field.name}},componentId: "${options.objectName + "_" + field.name + "_"}" + selectedItem._index});
|
|
54957
54957
|
})
|
|
54958
54958
|
}else{
|
|
54959
|
-
doAction({actionType: 'setValue', "args": {"value": event.data._display},componentId: "_display_" + event.data._index});
|
|
54959
|
+
doAction({actionType: 'setValue', "args": {"value": event.data._display},componentId: ${options.objectName} + "_display_" + event.data._index});
|
|
54960
54960
|
doAction({actionType: 'setValue', "args": {"value": event.data.${field.name}},componentId: "${options.objectName + "_" + field.name + "_"}" + event.data._index});
|
|
54961
54961
|
}
|
|
54962
54962
|
`
|
|
@@ -58998,6 +58998,8 @@ function getLookupSapceUserTreeSchema(isMobile){
|
|
|
58998
58998
|
_.each(children, (item) => {
|
|
58999
58999
|
if (item.children) {
|
|
59000
59000
|
item.children = getChildren(records, item.children)
|
|
59001
|
+
}else{
|
|
59002
|
+
item.children = [];
|
|
59001
59003
|
}
|
|
59002
59004
|
})
|
|
59003
59005
|
return children;
|
|
@@ -59352,6 +59354,14 @@ async function lookupToAmisPicker(field, readonly, ctx){
|
|
|
59352
59354
|
})
|
|
59353
59355
|
payload.data.rows = rows;
|
|
59354
59356
|
*/
|
|
59357
|
+
if(enable_tree){
|
|
59358
|
+
const rows = _.map(payload.data.rows, (item)=>{
|
|
59359
|
+
delete item.children;
|
|
59360
|
+
delete item.parent;
|
|
59361
|
+
return item;
|
|
59362
|
+
})
|
|
59363
|
+
payload.data.rows = rows;
|
|
59364
|
+
}
|
|
59355
59365
|
return payload;
|
|
59356
59366
|
}
|
|
59357
59367
|
if(!payload.data.rows){
|
|
@@ -59383,6 +59393,8 @@ async function lookupToAmisPicker(field, readonly, ctx){
|
|
|
59383
59393
|
_.each(children, (item)=>{
|
|
59384
59394
|
if(item.children){
|
|
59385
59395
|
item.children = getChildren(records, item.children)
|
|
59396
|
+
}else{
|
|
59397
|
+
item.children = [];
|
|
59386
59398
|
}
|
|
59387
59399
|
})
|
|
59388
59400
|
return children;
|
|
@@ -59437,7 +59449,7 @@ async function lookupToAmisPicker(field, readonly, ctx){
|
|
|
59437
59449
|
const isAllowCreate = refObjectConfig.permissions.allowCreate;
|
|
59438
59450
|
const isCreate = lodash.exports.isBoolean(field.create) ? field.create : true;
|
|
59439
59451
|
// lookup字段配置过滤条件就强制不显示新建按钮
|
|
59440
|
-
let isHasFilters = (field.filters || field._filtersFunction) ? true : false;
|
|
59452
|
+
let isHasFilters = (field.filters || field.filtersFunction || field._filtersFunction) ? true : false;
|
|
59441
59453
|
if (isAllowCreate && isCreate && !isHasFilters) {
|
|
59442
59454
|
const new_button = await getSchema$5(refObjectConfig, { appId: ctx.appId, objectName: refObjectConfig.name, formFactor: ctx.formFactor });
|
|
59443
59455
|
new_button.align = "right";
|
|
@@ -59855,11 +59867,13 @@ async function lookupToAmis(field, readonly, ctx){
|
|
|
59855
59867
|
}
|
|
59856
59868
|
let refLookupPage = refObject.pages && refObject.pages.lookup;
|
|
59857
59869
|
if(refLookupPage){
|
|
59858
|
-
if(
|
|
59859
|
-
|
|
59870
|
+
if(refLookupPage.is_enable){
|
|
59871
|
+
let pageAmisSchema = refLookupPage.amis_schema;
|
|
59872
|
+
if(typeof pageAmisSchema == 'string'){
|
|
59873
|
+
pageAmisSchema = JSON.parse(pageAmisSchema);
|
|
59874
|
+
}
|
|
59875
|
+
amisSchema = lodash.exports.defaultsDeep({}, pageAmisSchema, amisSchema);
|
|
59860
59876
|
}
|
|
59861
|
-
// Object.assign(amisSchema, refLookupPage);
|
|
59862
|
-
// amisSchema = _.defaultsDeep({}, refLookupPage, amisSchema);
|
|
59863
59877
|
}
|
|
59864
59878
|
return amisSchema;
|
|
59865
59879
|
}
|
|
@@ -60499,7 +60513,8 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
|
|
|
60499
60513
|
},
|
|
60500
60514
|
pipeOut: (value, oldValue, data) => {
|
|
60501
60515
|
if(value){
|
|
60502
|
-
|
|
60516
|
+
const result = value/100;
|
|
60517
|
+
return Number(result.toFixed(field.scale+2));
|
|
60503
60518
|
}
|
|
60504
60519
|
return value;
|
|
60505
60520
|
},
|
|
@@ -60733,7 +60748,7 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
|
|
|
60733
60748
|
if(field.is_wide || convertData.type === 'group'){
|
|
60734
60749
|
convertData.className = 'col-span-2 m-0';
|
|
60735
60750
|
}else {
|
|
60736
|
-
convertData.className = 'm-
|
|
60751
|
+
convertData.className = 'm-1';
|
|
60737
60752
|
}
|
|
60738
60753
|
if(readonly){
|
|
60739
60754
|
convertData.className = `${convertData.className} border-b`;
|