@steedos-widgets/sortable 1.3.11 → 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 +58 -6
- package/dist/sortable.cjs.js.map +1 -1
- package/dist/sortable.esm.js +58 -6
- package/dist/sortable.esm.js.map +1 -1
- package/dist/sortable.umd.js +58 -6
- 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
|
}
|
|
@@ -56901,6 +56924,8 @@ async function lookupToAmisTreeSelect(field, readonly, ctx) {
|
|
|
56901
56924
|
return amisSchema;
|
|
56902
56925
|
}
|
|
56903
56926
|
|
|
56927
|
+
const keywordsSearchBoxName = `__keywords_lookup`;
|
|
56928
|
+
|
|
56904
56929
|
const getReferenceTo = async (field)=>{
|
|
56905
56930
|
let referenceTo = field.reference_to;
|
|
56906
56931
|
if(!referenceTo){
|
|
@@ -57144,8 +57169,6 @@ async function lookupToAmisPicker(field, readonly, ctx){
|
|
|
57144
57169
|
|
|
57145
57170
|
source.data.$term = "$term";
|
|
57146
57171
|
source.data.$self = "$$";
|
|
57147
|
-
|
|
57148
|
-
let keywordsSearchBoxName = `__keywords_lookup__${field.name}__to__${refObjectConfig.name}`;
|
|
57149
57172
|
|
|
57150
57173
|
source.requestAdaptor = `
|
|
57151
57174
|
const selfData = JSON.parse(JSON.stringify(api.data.$self));
|
|
@@ -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
|
}
|