@steedos-widgets/sortable 3.6.12 → 3.6.14
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 +9 -6
- package/dist/sortable.cjs.js.map +1 -1
- package/dist/sortable.esm.js +9 -6
- package/dist/sortable.esm.js.map +1 -1
- package/dist/sortable.umd.js +9 -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@3.6.
|
|
7
|
-
"https://unpkg.com/@steedos-widgets/sortable@3.6.
|
|
6
|
+
"https://unpkg.com/@steedos-widgets/sortable@3.6.14/dist/sortable.umd.js",
|
|
7
|
+
"https://unpkg.com/@steedos-widgets/sortable@3.6.14/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@3.6.
|
|
18
|
+
"url": "https://unpkg.com/@steedos-widgets/sortable@3.6.14/dist/meta.js",
|
|
19
19
|
"urls": {
|
|
20
|
-
"default": "https://unpkg.com/@steedos-widgets/sortable@3.6.
|
|
21
|
-
"design": "https://unpkg.com/@steedos-widgets/sortable@3.6.
|
|
20
|
+
"default": "https://unpkg.com/@steedos-widgets/sortable@3.6.14/dist/meta.js",
|
|
21
|
+
"design": "https://unpkg.com/@steedos-widgets/sortable@3.6.14/dist/meta.js"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
]
|
package/dist/sortable.cjs.js
CHANGED
|
@@ -54415,7 +54415,7 @@ async function getFindQuery(object, recordId, fields, options){
|
|
|
54415
54415
|
function getApi$2 (isMobile){
|
|
54416
54416
|
if(isMobile);else {
|
|
54417
54417
|
// return __meteor_runtime_config__.ROOT_URL_PATH_PREFIX + "/graphql"
|
|
54418
|
-
return `\${context.rootUrl}/graphql?reload=\${additionalFilters}`
|
|
54418
|
+
return `\${context.rootUrl}/graphql?reload=\${additionalFilters|join}`
|
|
54419
54419
|
}
|
|
54420
54420
|
}
|
|
54421
54421
|
|
|
@@ -55514,7 +55514,7 @@ async function getTableColumns(object, fields, options){
|
|
|
55514
55514
|
var file_id = data.versions && data.versions[0] && data.versions[0]._id;
|
|
55515
55515
|
window.previewFile && window.previewFile({file_name, file_id});
|
|
55516
55516
|
`;
|
|
55517
|
-
columnItem = {
|
|
55517
|
+
columnItem = Object.assign({}, {
|
|
55518
55518
|
"type": "button",
|
|
55519
55519
|
"label": `<%=data.versions ? data.name : "${field.label}"%>`,
|
|
55520
55520
|
className,
|
|
@@ -55546,7 +55546,7 @@ async function getTableColumns(object, fields, options){
|
|
|
55546
55546
|
]
|
|
55547
55547
|
}
|
|
55548
55548
|
}
|
|
55549
|
-
};
|
|
55549
|
+
}, fieldAmis);
|
|
55550
55550
|
}else if(field.type === 'toggle'){
|
|
55551
55551
|
columnItem = Object.assign({}, {
|
|
55552
55552
|
type: "switch",
|
|
@@ -58330,6 +58330,10 @@ function getObjectHeaderQuickSearchBox(mainObject, fields, formFactor, { isLooku
|
|
|
58330
58330
|
// const scope = event.context.scoped;
|
|
58331
58331
|
// 如果点击过顶部搜索栏表单的取消按钮,会把此处event.data.__super.__super.__super中的搜索表单项的所有字段设置为null
|
|
58332
58332
|
// 点击取消按钮后继续在表单项中输入过滤条件且最后没有点击回车按键或点击表单项搜索按钮的话,在快速搜索中点击回车按钮提交搜索会所顶部搜索表单中的字段值清空
|
|
58333
|
+
let filterForm = SteedosUI.getClosestAmisComponentByType(scope, "form");
|
|
58334
|
+
if(!filterForm){
|
|
58335
|
+
return;
|
|
58336
|
+
}
|
|
58333
58337
|
let isLookup = event.data.isLookup;
|
|
58334
58338
|
let __lookupField = event.data.__lookupField;
|
|
58335
58339
|
let __changedFilterFormValuesKey = "__changedFilterFormValues";
|
|
@@ -58340,9 +58344,8 @@ function getObjectHeaderQuickSearchBox(mainObject, fields, formFactor, { isLooku
|
|
|
58340
58344
|
}
|
|
58341
58345
|
__changedFilterFormValuesKey += lookupTag;
|
|
58342
58346
|
}
|
|
58343
|
-
let filterForm = SteedosUI.getClosestAmisComponentByType(scope, "form");
|
|
58344
58347
|
setTimeout(function(){
|
|
58345
|
-
filterForm.setValues(event.data[__changedFilterFormValuesKey]);
|
|
58348
|
+
filterForm && filterForm.setValues(event.data[__changedFilterFormValuesKey]);
|
|
58346
58349
|
}, 500);
|
|
58347
58350
|
`;
|
|
58348
58351
|
|
|
@@ -60175,7 +60178,7 @@ async function lookupToAmisSelect(field, readonly, ctx){
|
|
|
60175
60178
|
var optionsFilters = [["${valueFieldKey}", optionsFiltersOp, []]];
|
|
60176
60179
|
if (defaultValue && !api.data.$term) {
|
|
60177
60180
|
const defaultValueOptionsQueryData = ${JSON.stringify(defaultValueOptionsQueryData)};
|
|
60178
|
-
const defaultValueOptionsQuery = defaultValueOptionsQueryData
|
|
60181
|
+
const defaultValueOptionsQuery = defaultValueOptionsQueryData && defaultValueOptionsQueryData.query && defaultValueOptionsQueryData.query.replace(/^{/,"").replace(/}$/,"");
|
|
60179
60182
|
// 字段值单独请求,没值的时候在请求中返回空
|
|
60180
60183
|
optionsFilters = [["${valueFieldKey}", optionsFiltersOp, defaultValue]];
|
|
60181
60184
|
if(filters.length > 0){
|