@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.umd.js
CHANGED
|
@@ -22728,7 +22728,30 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
|
|
|
22728
22728
|
"value": crudKeywords,
|
|
22729
22729
|
"clearable": true,
|
|
22730
22730
|
"clearAndSubmit": true,
|
|
22731
|
-
"searchImediately": false
|
|
22731
|
+
"searchImediately": false,
|
|
22732
|
+
"onEvent": {
|
|
22733
|
+
"blur": {
|
|
22734
|
+
"actions": [
|
|
22735
|
+
{
|
|
22736
|
+
"actionType": "custom",
|
|
22737
|
+
"script": `
|
|
22738
|
+
try {
|
|
22739
|
+
const scope = event.context.scoped;
|
|
22740
|
+
const filterCrud = scope.parent.getComponents().find(function(n) {
|
|
22741
|
+
return n.props.type === "crud";
|
|
22742
|
+
});
|
|
22743
|
+
if (filterCrud && typeof filterCrud.reload === 'function') {
|
|
22744
|
+
const keyWords = { '${keywordsSearchBoxName}': event.data.value };
|
|
22745
|
+
filterCrud.reload(null, keyWords);
|
|
22746
|
+
}
|
|
22747
|
+
} catch (error) {
|
|
22748
|
+
console.error('An error occurred:', error);
|
|
22749
|
+
}
|
|
22750
|
+
`
|
|
22751
|
+
}
|
|
22752
|
+
]
|
|
22753
|
+
}
|
|
22754
|
+
}
|
|
22732
22755
|
}
|
|
22733
22756
|
]
|
|
22734
22757
|
}
|
|
@@ -25094,9 +25117,38 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
|
|
|
25094
25117
|
|
|
25095
25118
|
const amisField = await convertSFieldToAmisField(_field, false, Object.assign({}, ctx, {fieldNamePrefix: fieldNamePrefix, required: false, showSystemFields: true, inFilterForm: true}));
|
|
25096
25119
|
if(amisField){
|
|
25097
|
-
|
|
25098
|
-
|
|
25099
|
-
|
|
25120
|
+
const changeActionsFields = ['select', 'boolean', 'toggle', 'date', 'datetime', 'time', 'number', 'currency', 'lookup', 'master_detail'];
|
|
25121
|
+
const isChangeActions = changeActionsFields.indexOf(field.type) > -1;
|
|
25122
|
+
let additionalProps = {
|
|
25123
|
+
submitOnChange: false
|
|
25124
|
+
};
|
|
25125
|
+
if (isChangeActions) {
|
|
25126
|
+
additionalProps.submitOnChange = true;
|
|
25127
|
+
} else {
|
|
25128
|
+
additionalProps.onEvent = {
|
|
25129
|
+
blur: {
|
|
25130
|
+
actions: [
|
|
25131
|
+
{
|
|
25132
|
+
actionType: "custom",
|
|
25133
|
+
script: `
|
|
25134
|
+
try {
|
|
25135
|
+
const scope = event.context.scoped;
|
|
25136
|
+
const filterForm = scope.parent.parent.parent.getComponents().find(function(n) {
|
|
25137
|
+
return n.props.type === "form";
|
|
25138
|
+
});
|
|
25139
|
+
if (filterForm && typeof filterForm.handleFormSubmit === 'function') {
|
|
25140
|
+
filterForm.handleFormSubmit(event);
|
|
25141
|
+
}
|
|
25142
|
+
} catch (error) {
|
|
25143
|
+
console.error('An error occurred:', error);
|
|
25144
|
+
}
|
|
25145
|
+
`
|
|
25146
|
+
}
|
|
25147
|
+
]
|
|
25148
|
+
}
|
|
25149
|
+
};
|
|
25150
|
+
}
|
|
25151
|
+
return Object.assign({}, amisField, additionalProps);
|
|
25100
25152
|
}
|
|
25101
25153
|
}
|
|
25102
25154
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos-widgets/sortable",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.13",
|
|
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.
|
|
48
|
+
"@steedos-widgets/amis-lib": "1.3.13"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "11697007cd418c8ce791321a167e9e709825680d"
|
|
51
51
|
}
|