@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.
@@ -54411,7 +54411,7 @@ async function getFindQuery(object, recordId, fields, options){
54411
54411
  function getApi$2 (isMobile){
54412
54412
  if(isMobile);else {
54413
54413
  // return __meteor_runtime_config__.ROOT_URL_PATH_PREFIX + "/graphql"
54414
- return `\${context.rootUrl}/graphql?reload=\${additionalFilters}`
54414
+ return `\${context.rootUrl}/graphql?reload=\${additionalFilters|join}`
54415
54415
  }
54416
54416
  }
54417
54417
 
@@ -55510,7 +55510,7 @@ async function getTableColumns(object, fields, options){
55510
55510
  var file_id = data.versions && data.versions[0] && data.versions[0]._id;
55511
55511
  window.previewFile && window.previewFile({file_name, file_id});
55512
55512
  `;
55513
- columnItem = {
55513
+ columnItem = Object.assign({}, {
55514
55514
  "type": "button",
55515
55515
  "label": `<%=data.versions ? data.name : "${field.label}"%>`,
55516
55516
  className,
@@ -55542,7 +55542,7 @@ async function getTableColumns(object, fields, options){
55542
55542
  ]
55543
55543
  }
55544
55544
  }
55545
- };
55545
+ }, fieldAmis);
55546
55546
  }else if(field.type === 'toggle'){
55547
55547
  columnItem = Object.assign({}, {
55548
55548
  type: "switch",
@@ -58326,6 +58326,10 @@ function getObjectHeaderQuickSearchBox(mainObject, fields, formFactor, { isLooku
58326
58326
  // const scope = event.context.scoped;
58327
58327
  // 如果点击过顶部搜索栏表单的取消按钮,会把此处event.data.__super.__super.__super中的搜索表单项的所有字段设置为null
58328
58328
  // 点击取消按钮后继续在表单项中输入过滤条件且最后没有点击回车按键或点击表单项搜索按钮的话,在快速搜索中点击回车按钮提交搜索会所顶部搜索表单中的字段值清空
58329
+ let filterForm = SteedosUI.getClosestAmisComponentByType(scope, "form");
58330
+ if(!filterForm){
58331
+ return;
58332
+ }
58329
58333
  let isLookup = event.data.isLookup;
58330
58334
  let __lookupField = event.data.__lookupField;
58331
58335
  let __changedFilterFormValuesKey = "__changedFilterFormValues";
@@ -58336,9 +58340,8 @@ function getObjectHeaderQuickSearchBox(mainObject, fields, formFactor, { isLooku
58336
58340
  }
58337
58341
  __changedFilterFormValuesKey += lookupTag;
58338
58342
  }
58339
- let filterForm = SteedosUI.getClosestAmisComponentByType(scope, "form");
58340
58343
  setTimeout(function(){
58341
- filterForm.setValues(event.data[__changedFilterFormValuesKey]);
58344
+ filterForm && filterForm.setValues(event.data[__changedFilterFormValuesKey]);
58342
58345
  }, 500);
58343
58346
  `;
58344
58347
 
@@ -60171,7 +60174,7 @@ async function lookupToAmisSelect(field, readonly, ctx){
60171
60174
  var optionsFilters = [["${valueFieldKey}", optionsFiltersOp, []]];
60172
60175
  if (defaultValue && !api.data.$term) {
60173
60176
  const defaultValueOptionsQueryData = ${JSON.stringify(defaultValueOptionsQueryData)};
60174
- const defaultValueOptionsQuery = defaultValueOptionsQueryData?.query?.replace(/^{/,"").replace(/}$/,"");
60177
+ const defaultValueOptionsQuery = defaultValueOptionsQueryData && defaultValueOptionsQueryData.query && defaultValueOptionsQueryData.query.replace(/^{/,"").replace(/}$/,"");
60175
60178
  // 字段值单独请求,没值的时候在请求中返回空
60176
60179
  optionsFilters = [["${valueFieldKey}", optionsFiltersOp, defaultValue]];
60177
60180
  if(filters.length > 0){