@steedos-widgets/sortable 1.3.12 → 1.3.13
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 +56 -4
- package/dist/sortable.cjs.js.map +1 -1
- package/dist/sortable.esm.js +56 -4
- package/dist/sortable.esm.js.map +1 -1
- package/dist/sortable.umd.js +56 -4
- package/package.json +3 -3
package/dist/sortable.esm.js
CHANGED
|
@@ -56423,7 +56423,30 @@ function getObjectHeaderQuickSearchBox(mainObject, fields, formFactor, { isLooku
|
|
|
56423
56423
|
"value": crudKeywords,
|
|
56424
56424
|
"clearable": true,
|
|
56425
56425
|
"clearAndSubmit": true,
|
|
56426
|
-
"searchImediately": false
|
|
56426
|
+
"searchImediately": false,
|
|
56427
|
+
"onEvent": {
|
|
56428
|
+
"blur": {
|
|
56429
|
+
"actions": [
|
|
56430
|
+
{
|
|
56431
|
+
"actionType": "custom",
|
|
56432
|
+
"script": `
|
|
56433
|
+
try {
|
|
56434
|
+
const scope = event.context.scoped;
|
|
56435
|
+
const filterCrud = scope.parent.getComponents().find(function(n) {
|
|
56436
|
+
return n.props.type === "crud";
|
|
56437
|
+
});
|
|
56438
|
+
if (filterCrud && typeof filterCrud.reload === 'function') {
|
|
56439
|
+
const keyWords = { '${keywordsSearchBoxName}': event.data.value };
|
|
56440
|
+
filterCrud.reload(null, keyWords);
|
|
56441
|
+
}
|
|
56442
|
+
} catch (error) {
|
|
56443
|
+
console.error('An error occurred:', error);
|
|
56444
|
+
}
|
|
56445
|
+
`
|
|
56446
|
+
}
|
|
56447
|
+
]
|
|
56448
|
+
}
|
|
56449
|
+
}
|
|
56427
56450
|
}
|
|
56428
56451
|
]
|
|
56429
56452
|
}
|
|
@@ -58789,9 +58812,38 @@ async function getFieldSearchable(perField, permissionFields, ctx){
|
|
|
58789
58812
|
|
|
58790
58813
|
const amisField = await convertSFieldToAmisField(_field, false, Object.assign({}, ctx, {fieldNamePrefix: fieldNamePrefix, required: false, showSystemFields: true, inFilterForm: true}));
|
|
58791
58814
|
if(amisField){
|
|
58792
|
-
|
|
58793
|
-
|
|
58794
|
-
|
|
58815
|
+
const changeActionsFields = ['select', 'boolean', 'toggle', 'date', 'datetime', 'time', 'number', 'currency', 'lookup', 'master_detail'];
|
|
58816
|
+
const isChangeActions = changeActionsFields.indexOf(field.type) > -1;
|
|
58817
|
+
let additionalProps = {
|
|
58818
|
+
submitOnChange: false
|
|
58819
|
+
};
|
|
58820
|
+
if (isChangeActions) {
|
|
58821
|
+
additionalProps.submitOnChange = true;
|
|
58822
|
+
} else {
|
|
58823
|
+
additionalProps.onEvent = {
|
|
58824
|
+
blur: {
|
|
58825
|
+
actions: [
|
|
58826
|
+
{
|
|
58827
|
+
actionType: "custom",
|
|
58828
|
+
script: `
|
|
58829
|
+
try {
|
|
58830
|
+
const scope = event.context.scoped;
|
|
58831
|
+
const filterForm = scope.parent.parent.parent.getComponents().find(function(n) {
|
|
58832
|
+
return n.props.type === "form";
|
|
58833
|
+
});
|
|
58834
|
+
if (filterForm && typeof filterForm.handleFormSubmit === 'function') {
|
|
58835
|
+
filterForm.handleFormSubmit(event);
|
|
58836
|
+
}
|
|
58837
|
+
} catch (error) {
|
|
58838
|
+
console.error('An error occurred:', error);
|
|
58839
|
+
}
|
|
58840
|
+
`
|
|
58841
|
+
}
|
|
58842
|
+
]
|
|
58843
|
+
}
|
|
58844
|
+
};
|
|
58845
|
+
}
|
|
58846
|
+
return Object.assign({}, amisField, additionalProps);
|
|
58795
58847
|
}
|
|
58796
58848
|
}
|
|
58797
58849
|
}
|