@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/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.
|
|
7
|
-
"https://unpkg.com/@steedos-widgets/sortable@1.3.
|
|
6
|
+
"https://unpkg.com/@steedos-widgets/sortable@1.3.13/dist/sortable.umd.js",
|
|
7
|
+
"https://unpkg.com/@steedos-widgets/sortable@1.3.13/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.
|
|
18
|
+
"url": "https://unpkg.com/@steedos-widgets/sortable@1.3.13/dist/meta.js",
|
|
19
19
|
"urls": {
|
|
20
|
-
"default": "https://unpkg.com/@steedos-widgets/sortable@1.3.
|
|
21
|
-
"design": "https://unpkg.com/@steedos-widgets/sortable@1.3.
|
|
20
|
+
"default": "https://unpkg.com/@steedos-widgets/sortable@1.3.13/dist/meta.js",
|
|
21
|
+
"design": "https://unpkg.com/@steedos-widgets/sortable@1.3.13/dist/meta.js"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
]
|
package/dist/sortable.cjs.js
CHANGED
|
@@ -56427,7 +56427,30 @@ function getObjectHeaderQuickSearchBox(mainObject, fields, formFactor, { isLooku
|
|
|
56427
56427
|
"value": crudKeywords,
|
|
56428
56428
|
"clearable": true,
|
|
56429
56429
|
"clearAndSubmit": true,
|
|
56430
|
-
"searchImediately": false
|
|
56430
|
+
"searchImediately": false,
|
|
56431
|
+
"onEvent": {
|
|
56432
|
+
"blur": {
|
|
56433
|
+
"actions": [
|
|
56434
|
+
{
|
|
56435
|
+
"actionType": "custom",
|
|
56436
|
+
"script": `
|
|
56437
|
+
try {
|
|
56438
|
+
const scope = event.context.scoped;
|
|
56439
|
+
const filterCrud = scope.parent.getComponents().find(function(n) {
|
|
56440
|
+
return n.props.type === "crud";
|
|
56441
|
+
});
|
|
56442
|
+
if (filterCrud && typeof filterCrud.reload === 'function') {
|
|
56443
|
+
const keyWords = { '${keywordsSearchBoxName}': event.data.value };
|
|
56444
|
+
filterCrud.reload(null, keyWords);
|
|
56445
|
+
}
|
|
56446
|
+
} catch (error) {
|
|
56447
|
+
console.error('An error occurred:', error);
|
|
56448
|
+
}
|
|
56449
|
+
`
|
|
56450
|
+
}
|
|
56451
|
+
]
|
|
56452
|
+
}
|
|
56453
|
+
}
|
|
56431
56454
|
}
|
|
56432
56455
|
]
|
|
56433
56456
|
}
|
|
@@ -56905,6 +56928,8 @@ async function lookupToAmisTreeSelect(field, readonly, ctx) {
|
|
|
56905
56928
|
return amisSchema;
|
|
56906
56929
|
}
|
|
56907
56930
|
|
|
56931
|
+
const keywordsSearchBoxName = `__keywords_lookup`;
|
|
56932
|
+
|
|
56908
56933
|
const getReferenceTo = async (field)=>{
|
|
56909
56934
|
let referenceTo = field.reference_to;
|
|
56910
56935
|
if(!referenceTo){
|
|
@@ -57148,8 +57173,6 @@ async function lookupToAmisPicker(field, readonly, ctx){
|
|
|
57148
57173
|
|
|
57149
57174
|
source.data.$term = "$term";
|
|
57150
57175
|
source.data.$self = "$$";
|
|
57151
|
-
|
|
57152
|
-
let keywordsSearchBoxName = `__keywords_lookup__${field.name}__to__${refObjectConfig.name}`;
|
|
57153
57176
|
|
|
57154
57177
|
source.requestAdaptor = `
|
|
57155
57178
|
const selfData = JSON.parse(JSON.stringify(api.data.$self));
|
|
@@ -58793,9 +58816,38 @@ async function getFieldSearchable(perField, permissionFields, ctx){
|
|
|
58793
58816
|
|
|
58794
58817
|
const amisField = await convertSFieldToAmisField(_field, false, Object.assign({}, ctx, {fieldNamePrefix: fieldNamePrefix, required: false, showSystemFields: true, inFilterForm: true}));
|
|
58795
58818
|
if(amisField){
|
|
58796
|
-
|
|
58797
|
-
|
|
58798
|
-
|
|
58819
|
+
const changeActionsFields = ['select', 'boolean', 'toggle', 'date', 'datetime', 'time', 'number', 'currency', 'lookup', 'master_detail'];
|
|
58820
|
+
const isChangeActions = changeActionsFields.indexOf(field.type) > -1;
|
|
58821
|
+
let additionalProps = {
|
|
58822
|
+
submitOnChange: false
|
|
58823
|
+
};
|
|
58824
|
+
if (isChangeActions) {
|
|
58825
|
+
additionalProps.submitOnChange = true;
|
|
58826
|
+
} else {
|
|
58827
|
+
additionalProps.onEvent = {
|
|
58828
|
+
blur: {
|
|
58829
|
+
actions: [
|
|
58830
|
+
{
|
|
58831
|
+
actionType: "custom",
|
|
58832
|
+
script: `
|
|
58833
|
+
try {
|
|
58834
|
+
const scope = event.context.scoped;
|
|
58835
|
+
const filterForm = scope.parent.parent.parent.getComponents().find(function(n) {
|
|
58836
|
+
return n.props.type === "form";
|
|
58837
|
+
});
|
|
58838
|
+
if (filterForm && typeof filterForm.handleFormSubmit === 'function') {
|
|
58839
|
+
filterForm.handleFormSubmit(event);
|
|
58840
|
+
}
|
|
58841
|
+
} catch (error) {
|
|
58842
|
+
console.error('An error occurred:', error);
|
|
58843
|
+
}
|
|
58844
|
+
`
|
|
58845
|
+
}
|
|
58846
|
+
]
|
|
58847
|
+
}
|
|
58848
|
+
};
|
|
58849
|
+
}
|
|
58850
|
+
return Object.assign({}, amisField, additionalProps);
|
|
58799
58851
|
}
|
|
58800
58852
|
}
|
|
58801
58853
|
}
|