@steedos-widgets/sortable 3.6.6 → 3.6.7-beta.2
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 +18 -10
- package/dist/sortable.cjs.js.map +1 -1
- package/dist/sortable.esm.js +18 -10
- package/dist/sortable.esm.js.map +1 -1
- package/dist/sortable.umd.js +18 -10
- package/package.json +3 -3
package/dist/sortable.esm.js
CHANGED
|
@@ -54260,7 +54260,7 @@ function getSwitchTpl(field){
|
|
|
54260
54260
|
|
|
54261
54261
|
function getPasswordTpl(field){
|
|
54262
54262
|
return `<% if (data.${field.name}) { %>
|
|
54263
|
-
<span
|
|
54263
|
+
<span>******</span>
|
|
54264
54264
|
<% } %>`
|
|
54265
54265
|
}
|
|
54266
54266
|
|
|
@@ -56083,14 +56083,14 @@ async function getTableSchema$1(object, fields, options){
|
|
|
56083
56083
|
headerToolbarClassName: "py-2 px-2 border-gray-300 border-solid border-b",
|
|
56084
56084
|
className: "",
|
|
56085
56085
|
draggable: false,
|
|
56086
|
-
defaultParams: getDefaultParams$1(options),
|
|
56087
56086
|
card: card,
|
|
56088
56087
|
syncLocation: false,
|
|
56089
56088
|
keepItemSelectionOnPageChange: true,
|
|
56090
56089
|
checkOnItemClick: isLookup ? true : false,
|
|
56091
56090
|
labelTpl: `\${${options.labelFieldName}}`,
|
|
56092
56091
|
autoFillHeight: false, // 自动高度效果不理想,先关闭
|
|
56093
|
-
columnsTogglable: false
|
|
56092
|
+
columnsTogglable: false,
|
|
56093
|
+
...getDefaultParams$1(options) //不可以使用crud的defaultParams属性,会造成翻页bug,https://github.com/steedos/steedos-platform/issues/6576
|
|
56094
56094
|
}
|
|
56095
56095
|
}
|
|
56096
56096
|
|
|
@@ -56116,7 +56116,6 @@ async function getTableSchema$1(object, fields, options){
|
|
|
56116
56116
|
headerToolbarClassName: "py-2 px-2 border-gray-300 border-solid border-b",
|
|
56117
56117
|
className: "",
|
|
56118
56118
|
draggable: false,
|
|
56119
|
-
defaultParams: getDefaultParams$1(options),
|
|
56120
56119
|
columns: columns,
|
|
56121
56120
|
syncLocation: false,
|
|
56122
56121
|
keepItemSelectionOnPageChange: true,
|
|
@@ -56124,7 +56123,8 @@ async function getTableSchema$1(object, fields, options){
|
|
|
56124
56123
|
labelTpl: `\${${options.labelFieldName}}`,
|
|
56125
56124
|
autoFillHeight: false, // 自动高度效果不理想,先关闭
|
|
56126
56125
|
columnsTogglable: false,
|
|
56127
|
-
...treeConfig
|
|
56126
|
+
...treeConfig,
|
|
56127
|
+
...getDefaultParams$1(options) //不可以使用crud的defaultParams属性,会造成翻页bug,https://github.com/steedos/steedos-platform/issues/6576
|
|
56128
56128
|
}
|
|
56129
56129
|
}
|
|
56130
56130
|
|
|
@@ -56293,7 +56293,6 @@ async function getListSchema$1(fields, options){
|
|
|
56293
56293
|
name: "thelist",
|
|
56294
56294
|
draggable: false,
|
|
56295
56295
|
headerToolbar: ['reload'],
|
|
56296
|
-
defaultParams: getDefaultParams(options),
|
|
56297
56296
|
syncLocation: false,
|
|
56298
56297
|
keepItemSelectionOnPageChange: true,
|
|
56299
56298
|
checkOnItemClick: false,
|
|
@@ -56315,7 +56314,8 @@ async function getListSchema$1(fields, options){
|
|
|
56315
56314
|
})
|
|
56316
56315
|
}
|
|
56317
56316
|
]
|
|
56318
|
-
}
|
|
56317
|
+
},
|
|
56318
|
+
...getDefaultParams(options) //不可以使用crud的defaultParams属性,会造成翻页bug,https://github.com/steedos/steedos-platform/issues/6576
|
|
56319
56319
|
}
|
|
56320
56320
|
}
|
|
56321
56321
|
|
|
@@ -58962,9 +58962,7 @@ async function getListSchema(
|
|
|
58962
58962
|
}
|
|
58963
58963
|
|
|
58964
58964
|
if(localListViewProps.perPage){
|
|
58965
|
-
listSchema.
|
|
58966
|
-
perPage: localListViewProps.perPage
|
|
58967
|
-
};
|
|
58965
|
+
listSchema.perPage = localListViewProps.perPage;
|
|
58968
58966
|
}
|
|
58969
58967
|
defaults.listSchema = lodash.exports.defaultsDeep({}, listSchema, defaults.listSchema || {});
|
|
58970
58968
|
}
|
|
@@ -59651,6 +59649,11 @@ async function lookupToAmisPicker(field, readonly, ctx){
|
|
|
59651
59649
|
|
|
59652
59650
|
var fieldFilters = ${JSON.stringify(field.filters)};
|
|
59653
59651
|
if(fieldFilters && fieldFilters.length){
|
|
59652
|
+
var filtersForString = JSON.stringify(fieldFilters);
|
|
59653
|
+
if(filtersForString.indexOf('$') > -1) {
|
|
59654
|
+
var currentAmis = amisRequire('amis');
|
|
59655
|
+
fieldFilters = JSON.parse(currentAmis.evaluate(filtersForString, api.data.$self.__super))
|
|
59656
|
+
}
|
|
59654
59657
|
filters.push(fieldFilters);
|
|
59655
59658
|
}
|
|
59656
59659
|
|
|
@@ -60051,6 +60054,11 @@ async function lookupToAmisSelect(field, readonly, ctx){
|
|
|
60051
60054
|
|
|
60052
60055
|
var fieldFilters = ${JSON.stringify(field.filters)};
|
|
60053
60056
|
if(fieldFilters && fieldFilters.length){
|
|
60057
|
+
var filtersForString = JSON.stringify(fieldFilters);
|
|
60058
|
+
if(filtersForString.indexOf('$') > -1) {
|
|
60059
|
+
var currentAmis = amisRequire('amis');
|
|
60060
|
+
fieldFilters = JSON.parse(currentAmis.evaluate(filtersForString, api.data.$))
|
|
60061
|
+
}
|
|
60054
60062
|
filters.push(fieldFilters);
|
|
60055
60063
|
}
|
|
60056
60064
|
|