@steedos-widgets/sortable 3.6.2-beta.15 → 3.6.2-beta.16
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 +36 -10
- package/dist/sortable.cjs.js.map +1 -1
- package/dist/sortable.esm.js +36 -10
- package/dist/sortable.esm.js.map +1 -1
- package/dist/sortable.umd.js +36 -10
- package/package.json +3 -3
package/dist/sortable.esm.js
CHANGED
|
@@ -56412,7 +56412,7 @@ async function getObjectFieldsFilterFormSchema(ctx) {
|
|
|
56412
56412
|
const formSchema = {
|
|
56413
56413
|
"type": "service",
|
|
56414
56414
|
"visibleOn": "this.filterFormSearchableFields && this.filterFormSearchableFields.length",
|
|
56415
|
-
"className": ctx.formFactor === 'SMALL' ? "slds-filters__body p-0 mb-2 overflow-y-auto overflow-x-hidden" : "slds-filters__body p-0 sm:grid sm:gap-
|
|
56415
|
+
"className": ctx.formFactor === 'SMALL' ? "slds-filters__body p-0 mb-2 overflow-y-auto overflow-x-hidden" : "slds-filters__body p-0 sm:grid sm:gap-4 sm:grid-cols-4 p-2",
|
|
56416
56416
|
"style":{
|
|
56417
56417
|
"max-height":ctx.formFactor === 'SMALL'?"30vh":"unset"
|
|
56418
56418
|
},
|
|
@@ -56999,7 +56999,7 @@ async function getObjectFieldsFilterBarSchema(objectSchema, ctx) {
|
|
|
56999
56999
|
"className": "slds-filters"
|
|
57000
57000
|
},
|
|
57001
57001
|
"size": "xs",
|
|
57002
|
-
"className": `border-
|
|
57002
|
+
"className": `border-y slds-grid slds-grid_vertical slds-nowrap ${!ctx.isLookup && "mt-2"}`,
|
|
57003
57003
|
"visibleOn": "this.showFieldsFilter",
|
|
57004
57004
|
},
|
|
57005
57005
|
"className": "bg-white"
|
|
@@ -57960,7 +57960,7 @@ const getSettingListviewToolbarButtonSchema = ()=>{
|
|
|
57960
57960
|
"icon": "fa fa-cog",
|
|
57961
57961
|
//TODO: dropdown-button只支持在按钮上方配置提示,对于上方按钮的点击会有影响,为保持统一,暂时去除,等待amis优化,https://github.com/baidu/amis/issues/7330
|
|
57962
57962
|
// "tooltip": i18next.t('frontend_button_listview_control_tooltip'),
|
|
57963
|
-
"btnClassName": "antd-Button--iconOnly bg-white !p-2 rounded
|
|
57963
|
+
"btnClassName": "antd-Button--iconOnly bg-white !p-2 rounded text-gray-500",
|
|
57964
57964
|
"align": "right",
|
|
57965
57965
|
"visibleOn": "${!isLookup}",
|
|
57966
57966
|
"buttons": [
|
|
@@ -58005,7 +58005,7 @@ const getDisplayAsButton = function(objectName, showDisplayAs){
|
|
|
58005
58005
|
"icon": "fa fa-table-columns",
|
|
58006
58006
|
//TODO: dropdown-button只支持在按钮上方配置提示,对于上方按钮的点击会有影响,暂时去除,等待amis优化,https://github.com/baidu/amis/issues/7330
|
|
58007
58007
|
// "tooltip": `${i18next.t('frontend_display_as')} ${displayAsLabel}`,
|
|
58008
|
-
"btnClassName": "antd-Button--iconOnly bg-white !p-2 rounded
|
|
58008
|
+
"btnClassName": "antd-Button--iconOnly bg-white !p-2 rounded text-gray-500",
|
|
58009
58009
|
"align": "right",
|
|
58010
58010
|
"visibleOn": "${window:innerWidth > 768 && !!!isLookup}",
|
|
58011
58011
|
"buttons": [
|
|
@@ -58198,7 +58198,7 @@ function getObjectHeaderToolbar(mainObject, fields, formFactor, {
|
|
|
58198
58198
|
// //TODO: dropdown-button只支持在按钮上方配置提示,对于上方按钮的点击会有影响,为保持统一,暂时去除,等待amis优化,https://github.com/baidu/amis/issues/7330
|
|
58199
58199
|
// // "tooltip": i18next.t('frontend_button_reload_tooltip'),
|
|
58200
58200
|
// "tooltipPlacement": "top",
|
|
58201
|
-
// "className": "bg-white p-2 rounded
|
|
58201
|
+
// "className": "bg-white p-2 rounded text-gray-500",
|
|
58202
58202
|
// "label": "",
|
|
58203
58203
|
// "icon": "fa fa-sync",
|
|
58204
58204
|
// "visibleOn": "${!showFieldsFilter}",
|
|
@@ -58222,7 +58222,7 @@ function getObjectHeaderToolbar(mainObject, fields, formFactor, {
|
|
|
58222
58222
|
// "tooltip": i18next.t('frontend_button_reload_tooltip'),
|
|
58223
58223
|
"tooltip":"",
|
|
58224
58224
|
"tooltipPlacement": "top",
|
|
58225
|
-
"className": "bg-white p-2 rounded
|
|
58225
|
+
"className": "bg-white p-2 rounded text-gray-500"
|
|
58226
58226
|
};
|
|
58227
58227
|
}
|
|
58228
58228
|
else {
|
|
@@ -58233,7 +58233,7 @@ function getObjectHeaderToolbar(mainObject, fields, formFactor, {
|
|
|
58233
58233
|
// "tooltip": i18next.t('frontend_button_reload_tooltip'),
|
|
58234
58234
|
"tooltip":"",
|
|
58235
58235
|
"tooltipPlacement": "top",
|
|
58236
|
-
"className": "bg-white p-2 rounded
|
|
58236
|
+
"className": "bg-white p-2 rounded text-gray-500"
|
|
58237
58237
|
};
|
|
58238
58238
|
}
|
|
58239
58239
|
let toolbarFilter;
|
|
@@ -58255,7 +58255,7 @@ function getObjectHeaderToolbar(mainObject, fields, formFactor, {
|
|
|
58255
58255
|
"visibleOn": "${isFieldsFilterEmpty == false && isLookup != true}"
|
|
58256
58256
|
},
|
|
58257
58257
|
"align": "right",
|
|
58258
|
-
"className": "bg-white p-2 rounded
|
|
58258
|
+
"className": "bg-white p-2 rounded text-gray-500",
|
|
58259
58259
|
"onEvent": {
|
|
58260
58260
|
"click": {
|
|
58261
58261
|
"actions": [
|
|
@@ -59293,6 +59293,9 @@ async function lookupToAmisPicker(field, readonly, ctx){
|
|
|
59293
59293
|
}
|
|
59294
59294
|
});
|
|
59295
59295
|
|
|
59296
|
+
let listviewFilter = getListViewFilter(listView);
|
|
59297
|
+
let listviewFiltersFunction = listView && listView._filters;
|
|
59298
|
+
|
|
59296
59299
|
let sort = "";
|
|
59297
59300
|
if(listView){
|
|
59298
59301
|
sort = getListViewSort(listView);
|
|
@@ -59339,7 +59342,7 @@ async function lookupToAmisPicker(field, readonly, ctx){
|
|
|
59339
59342
|
Object.assign(api.data.$self, __changedSearchBoxValues, __changedFilterFormValues);
|
|
59340
59343
|
}
|
|
59341
59344
|
const selfData = JSON.parse(JSON.stringify(api.data.$self));
|
|
59342
|
-
var filters = [];
|
|
59345
|
+
${listviewFilter && !ctx.inFilterForm ? `var filters = ${JSON.stringify(listviewFilter)};` : 'var filters = [];'}
|
|
59343
59346
|
var pageSize = api.data.pageSize || 10;
|
|
59344
59347
|
var pageNo = api.data.pageNo || 1;
|
|
59345
59348
|
var skip = (pageNo - 1) * pageSize;
|
|
@@ -59401,6 +59404,16 @@ async function lookupToAmisPicker(field, readonly, ctx){
|
|
|
59401
59404
|
}
|
|
59402
59405
|
|
|
59403
59406
|
const inFilterForm = ${ctx.inFilterForm};
|
|
59407
|
+
|
|
59408
|
+
const listviewFiltersFunction = ${listviewFiltersFunction};
|
|
59409
|
+
|
|
59410
|
+
if(listviewFiltersFunction && !inFilterForm){
|
|
59411
|
+
const _filters0 = listviewFiltersFunction(filters, api.data.$self.__super);
|
|
59412
|
+
if(_filters0 && _filters0.length){
|
|
59413
|
+
filters.push(_filters0);
|
|
59414
|
+
}
|
|
59415
|
+
}
|
|
59416
|
+
|
|
59404
59417
|
const filtersFunction = ${field.filtersFunction || field._filtersFunction};
|
|
59405
59418
|
|
|
59406
59419
|
if(filtersFunction && !inFilterForm){
|
|
@@ -59713,6 +59726,9 @@ async function lookupToAmisSelect(field, readonly, ctx){
|
|
|
59713
59726
|
const refObjectConfig = referenceTo && await getUISchema(referenceTo.objectName);
|
|
59714
59727
|
let listView = getLookupListView(refObjectConfig);
|
|
59715
59728
|
|
|
59729
|
+
let listviewFilter = getListViewFilter(listView);
|
|
59730
|
+
let listviewFiltersFunction = listView && listView._filters;
|
|
59731
|
+
|
|
59716
59732
|
let sort = "";
|
|
59717
59733
|
if(listView){
|
|
59718
59734
|
sort = getListViewSort(listView);
|
|
@@ -59742,7 +59758,7 @@ async function lookupToAmisSelect(field, readonly, ctx){
|
|
|
59742
59758
|
apiInfo.data['rfield'] = `\${object_name}`;
|
|
59743
59759
|
// [["_id", "=", "$${field.name}._id"],"or",["name", "contains", "$term"]]
|
|
59744
59760
|
apiInfo.requestAdaptor = `
|
|
59745
|
-
var filters = [];
|
|
59761
|
+
${listviewFilter && !ctx.inFilterForm ? `var filters = ${JSON.stringify(listviewFilter)};` : 'var filters = [];'}
|
|
59746
59762
|
var top = 200;
|
|
59747
59763
|
if(api.data.$term){
|
|
59748
59764
|
filters = [["${referenceTo?.NAME_FIELD_KEY || 'name'}", "contains", api.data.$term]];
|
|
@@ -59765,6 +59781,16 @@ async function lookupToAmisSelect(field, readonly, ctx){
|
|
|
59765
59781
|
}
|
|
59766
59782
|
|
|
59767
59783
|
const inFilterForm = ${ctx.inFilterForm};
|
|
59784
|
+
|
|
59785
|
+
const listviewFiltersFunction = ${listviewFiltersFunction};
|
|
59786
|
+
|
|
59787
|
+
if(listviewFiltersFunction && !inFilterForm){
|
|
59788
|
+
const _filters0 = listviewFiltersFunction(filters, api.data.$);
|
|
59789
|
+
if(_filters0 && _filters0.length){
|
|
59790
|
+
filters.push(_filters0);
|
|
59791
|
+
}
|
|
59792
|
+
}
|
|
59793
|
+
|
|
59768
59794
|
const filtersFunction = ${field.filtersFunction || field._filtersFunction};
|
|
59769
59795
|
|
|
59770
59796
|
if(filtersFunction && !inFilterForm){
|