@steedos-widgets/sortable 1.3.22-beta.1 → 1.3.22-beta.3
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 +33 -4
- package/dist/sortable.cjs.js.map +1 -1
- package/dist/sortable.esm.js +33 -4
- package/dist/sortable.esm.js.map +1 -1
- package/dist/sortable.umd.js +33 -4
- package/package.json +3 -3
package/dist/sortable.umd.js
CHANGED
|
@@ -21270,6 +21270,7 @@
|
|
|
21270
21270
|
{
|
|
21271
21271
|
"actionType": "custom",
|
|
21272
21272
|
"script": `
|
|
21273
|
+
|
|
21273
21274
|
var _display = _.cloneDeep(event.data._display);
|
|
21274
21275
|
${displayField}
|
|
21275
21276
|
doAction({actionType: 'setValue', "args": {"value": {_display}},componentId: "${quickEditId}"});
|
|
@@ -21656,7 +21657,9 @@
|
|
|
21656
21657
|
if(!options.isLookup && !options.isInputTable){
|
|
21657
21658
|
//将_display放入crud的columns中,可以通过setvalue修改行内数据域的_display,而不影响上层items的_display,用于批量编辑
|
|
21658
21659
|
columns.push({name: '_display',type: 'static', width: 32, placeholder: "",id: "_display_${_index}", className: "hidden"});
|
|
21659
|
-
|
|
21660
|
+
if(!options.enable_tree){
|
|
21661
|
+
columns.push({name: '_index',type: 'text', width: 32, placeholder: ""});
|
|
21662
|
+
}
|
|
21660
21663
|
}
|
|
21661
21664
|
const allowEdit = options.permissions?.allowEdit && !options.isLookup && options.enable_inline_edit != false;
|
|
21662
21665
|
|
|
@@ -24482,7 +24485,8 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
|
|
|
24482
24485
|
{
|
|
24483
24486
|
"type": "pagination",
|
|
24484
24487
|
"maxButtons": 5,
|
|
24485
|
-
"showPageInput":
|
|
24488
|
+
"showPageInput": true,
|
|
24489
|
+
"layout": "total,pager,go"
|
|
24486
24490
|
}
|
|
24487
24491
|
]
|
|
24488
24492
|
}
|
|
@@ -26242,6 +26246,19 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
|
|
|
26242
26246
|
return newMainField;
|
|
26243
26247
|
}
|
|
26244
26248
|
|
|
26249
|
+
function getTabledFieldSubFields(mainField, fields){
|
|
26250
|
+
const newMainField = Object.assign({subFields: []}, mainField);
|
|
26251
|
+
const subFields = lodash.exports.filter(fields, function(field){
|
|
26252
|
+
let result = field.name.startsWith(`${mainField.name}.`);
|
|
26253
|
+
if(result){
|
|
26254
|
+
field._prefix = `${mainField.name}.`;
|
|
26255
|
+
}
|
|
26256
|
+
return result;
|
|
26257
|
+
});
|
|
26258
|
+
newMainField.subFields = subFields;
|
|
26259
|
+
return newMainField;
|
|
26260
|
+
}
|
|
26261
|
+
|
|
26245
26262
|
|
|
26246
26263
|
function getSelectFieldOptions(field){
|
|
26247
26264
|
const dataType = field.data_type || 'text';
|
|
@@ -26370,7 +26387,16 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
|
|
|
26370
26387
|
format:'YYYY-MM-DDT00:00:00.000[Z]',
|
|
26371
26388
|
tpl: readonly ? getDateTpl(field) : null,
|
|
26372
26389
|
// utc: true,
|
|
26373
|
-
joinValues: false
|
|
26390
|
+
joinValues: false,
|
|
26391
|
+
"shortcuts": [
|
|
26392
|
+
"thismonth",
|
|
26393
|
+
"2monthsago",
|
|
26394
|
+
"3monthslater",
|
|
26395
|
+
"prevquarter",
|
|
26396
|
+
"thisquarter",
|
|
26397
|
+
"thisyear",
|
|
26398
|
+
"lastYear"
|
|
26399
|
+
]
|
|
26374
26400
|
};
|
|
26375
26401
|
break;
|
|
26376
26402
|
case 'date':
|
|
@@ -26781,6 +26807,8 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
|
|
|
26781
26807
|
let subFieldName = subField.name.replace(`${field.name}.$.`, '').replace(`${field.name}.`, '');
|
|
26782
26808
|
if(subField.type === 'grid'){
|
|
26783
26809
|
subField = await getGridFieldSubFields(subField, ctx.__formFields);
|
|
26810
|
+
}else if(subField.type === 'table'){
|
|
26811
|
+
subField = await getTabledFieldSubFields(subField, ctx.__formFields);
|
|
26784
26812
|
}else {
|
|
26785
26813
|
if(readonly){
|
|
26786
26814
|
subFieldName = `${field.name}.${subFieldName}`;
|
|
@@ -26897,7 +26925,8 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
|
|
|
26897
26925
|
fieldNamePrefix = `${fieldNamePrefix}between__`;
|
|
26898
26926
|
}
|
|
26899
26927
|
if(_field.type === 'datetime'){
|
|
26900
|
-
|
|
26928
|
+
// 特意改为日期范围而不是日期时间范围,因为搜索时一般精确到日期就足够了,需要精确到日期时间范围需要在字段上配置amis属性来实现
|
|
26929
|
+
_field.type = 'input-date-range';
|
|
26901
26930
|
_field.is_wide = true;
|
|
26902
26931
|
fieldNamePrefix = `${fieldNamePrefix}between__`;
|
|
26903
26932
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos-widgets/sortable",
|
|
3
|
-
"version": "1.3.22-beta.
|
|
3
|
+
"version": "1.3.22-beta.3",
|
|
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": "1.3.22-beta.
|
|
48
|
+
"@steedos-widgets/amis-lib": "1.3.22-beta.3"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "41aa5e54325d6fc200fc0828b09777f6cfc5a7fe"
|
|
51
51
|
}
|