@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/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@1.3.22-beta.
|
|
7
|
-
"https://unpkg.com/@steedos-widgets/sortable@1.3.22-beta.
|
|
6
|
+
"https://unpkg.com/@steedos-widgets/sortable@1.3.22-beta.3/dist/sortable.umd.js",
|
|
7
|
+
"https://unpkg.com/@steedos-widgets/sortable@1.3.22-beta.3/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@1.3.22-beta.
|
|
18
|
+
"url": "https://unpkg.com/@steedos-widgets/sortable@1.3.22-beta.3/dist/meta.js",
|
|
19
19
|
"urls": {
|
|
20
|
-
"default": "https://unpkg.com/@steedos-widgets/sortable@1.3.22-beta.
|
|
21
|
-
"design": "https://unpkg.com/@steedos-widgets/sortable@1.3.22-beta.
|
|
20
|
+
"default": "https://unpkg.com/@steedos-widgets/sortable@1.3.22-beta.3/dist/meta.js",
|
|
21
|
+
"design": "https://unpkg.com/@steedos-widgets/sortable@1.3.22-beta.3/dist/meta.js"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
]
|
package/dist/sortable.cjs.js
CHANGED
|
@@ -54969,6 +54969,7 @@ async function getQuickEditSchema(field, options){
|
|
|
54969
54969
|
{
|
|
54970
54970
|
"actionType": "custom",
|
|
54971
54971
|
"script": `
|
|
54972
|
+
|
|
54972
54973
|
var _display = _.cloneDeep(event.data._display);
|
|
54973
54974
|
${displayField}
|
|
54974
54975
|
doAction({actionType: 'setValue', "args": {"value": {_display}},componentId: "${quickEditId}"});
|
|
@@ -55355,7 +55356,9 @@ async function getTableColumns(fields, options){
|
|
|
55355
55356
|
if(!options.isLookup && !options.isInputTable){
|
|
55356
55357
|
//将_display放入crud的columns中,可以通过setvalue修改行内数据域的_display,而不影响上层items的_display,用于批量编辑
|
|
55357
55358
|
columns.push({name: '_display',type: 'static', width: 32, placeholder: "",id: "_display_${_index}", className: "hidden"});
|
|
55358
|
-
|
|
55359
|
+
if(!options.enable_tree){
|
|
55360
|
+
columns.push({name: '_index',type: 'text', width: 32, placeholder: ""});
|
|
55361
|
+
}
|
|
55359
55362
|
}
|
|
55360
55363
|
const allowEdit = options.permissions?.allowEdit && !options.isLookup && options.enable_inline_edit != false;
|
|
55361
55364
|
|
|
@@ -58181,7 +58184,8 @@ function getObjectFooterToolbar(mainObject, formFactor, options) {
|
|
|
58181
58184
|
{
|
|
58182
58185
|
"type": "pagination",
|
|
58183
58186
|
"maxButtons": 5,
|
|
58184
|
-
"showPageInput":
|
|
58187
|
+
"showPageInput": true,
|
|
58188
|
+
"layout": "total,pager,go"
|
|
58185
58189
|
}
|
|
58186
58190
|
]
|
|
58187
58191
|
}
|
|
@@ -59941,6 +59945,19 @@ function getGridFieldSubFields(mainField, fields){
|
|
|
59941
59945
|
return newMainField;
|
|
59942
59946
|
}
|
|
59943
59947
|
|
|
59948
|
+
function getTabledFieldSubFields(mainField, fields){
|
|
59949
|
+
const newMainField = Object.assign({subFields: []}, mainField);
|
|
59950
|
+
const subFields = lodash.exports.filter(fields, function(field){
|
|
59951
|
+
let result = field.name.startsWith(`${mainField.name}.`);
|
|
59952
|
+
if(result){
|
|
59953
|
+
field._prefix = `${mainField.name}.`;
|
|
59954
|
+
}
|
|
59955
|
+
return result;
|
|
59956
|
+
});
|
|
59957
|
+
newMainField.subFields = subFields;
|
|
59958
|
+
return newMainField;
|
|
59959
|
+
}
|
|
59960
|
+
|
|
59944
59961
|
|
|
59945
59962
|
function getSelectFieldOptions(field){
|
|
59946
59963
|
const dataType = field.data_type || 'text';
|
|
@@ -60069,7 +60086,16 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
|
|
|
60069
60086
|
format:'YYYY-MM-DDT00:00:00.000[Z]',
|
|
60070
60087
|
tpl: readonly ? getDateTpl(field) : null,
|
|
60071
60088
|
// utc: true,
|
|
60072
|
-
joinValues: false
|
|
60089
|
+
joinValues: false,
|
|
60090
|
+
"shortcuts": [
|
|
60091
|
+
"thismonth",
|
|
60092
|
+
"2monthsago",
|
|
60093
|
+
"3monthslater",
|
|
60094
|
+
"prevquarter",
|
|
60095
|
+
"thisquarter",
|
|
60096
|
+
"thisyear",
|
|
60097
|
+
"lastYear"
|
|
60098
|
+
]
|
|
60073
60099
|
};
|
|
60074
60100
|
break;
|
|
60075
60101
|
case 'date':
|
|
@@ -60480,6 +60506,8 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
|
|
|
60480
60506
|
let subFieldName = subField.name.replace(`${field.name}.$.`, '').replace(`${field.name}.`, '');
|
|
60481
60507
|
if(subField.type === 'grid'){
|
|
60482
60508
|
subField = await getGridFieldSubFields(subField, ctx.__formFields);
|
|
60509
|
+
}else if(subField.type === 'table'){
|
|
60510
|
+
subField = await getTabledFieldSubFields(subField, ctx.__formFields);
|
|
60483
60511
|
}else {
|
|
60484
60512
|
if(readonly){
|
|
60485
60513
|
subFieldName = `${field.name}.${subFieldName}`;
|
|
@@ -60596,7 +60624,8 @@ async function getFieldSearchable(perField, permissionFields, ctx){
|
|
|
60596
60624
|
fieldNamePrefix = `${fieldNamePrefix}between__`;
|
|
60597
60625
|
}
|
|
60598
60626
|
if(_field.type === 'datetime'){
|
|
60599
|
-
|
|
60627
|
+
// 特意改为日期范围而不是日期时间范围,因为搜索时一般精确到日期就足够了,需要精确到日期时间范围需要在字段上配置amis属性来实现
|
|
60628
|
+
_field.type = 'input-date-range';
|
|
60600
60629
|
_field.is_wide = true;
|
|
60601
60630
|
fieldNamePrefix = `${fieldNamePrefix}between__`;
|
|
60602
60631
|
}
|