@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.
@@ -20716,7 +20716,7 @@
20716
20716
  function getApi$2 (isMobile){
20717
20717
  if(isMobile);else {
20718
20718
  // return __meteor_runtime_config__.ROOT_URL_PATH_PREFIX + "/graphql"
20719
- return `\${context.rootUrl}/graphql?reload=\${additionalFilters}`
20719
+ return `\${context.rootUrl}/graphql?reload=\${additionalFilters|join}`
20720
20720
  }
20721
20721
  }
20722
20722
 
@@ -21815,7 +21815,7 @@
21815
21815
  var file_id = data.versions && data.versions[0] && data.versions[0]._id;
21816
21816
  window.previewFile && window.previewFile({file_name, file_id});
21817
21817
  `;
21818
- columnItem = {
21818
+ columnItem = Object.assign({}, {
21819
21819
  "type": "button",
21820
21820
  "label": `<%=data.versions ? data.name : "${field.label}"%>`,
21821
21821
  className,
@@ -21847,7 +21847,7 @@
21847
21847
  ]
21848
21848
  }
21849
21849
  }
21850
- };
21850
+ }, fieldAmis);
21851
21851
  }else if(field.type === 'toggle'){
21852
21852
  columnItem = Object.assign({}, {
21853
21853
  type: "switch",
@@ -24631,6 +24631,10 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
24631
24631
  // const scope = event.context.scoped;
24632
24632
  // 如果点击过顶部搜索栏表单的取消按钮,会把此处event.data.__super.__super.__super中的搜索表单项的所有字段设置为null
24633
24633
  // 点击取消按钮后继续在表单项中输入过滤条件且最后没有点击回车按键或点击表单项搜索按钮的话,在快速搜索中点击回车按钮提交搜索会所顶部搜索表单中的字段值清空
24634
+ let filterForm = SteedosUI.getClosestAmisComponentByType(scope, "form");
24635
+ if(!filterForm){
24636
+ return;
24637
+ }
24634
24638
  let isLookup = event.data.isLookup;
24635
24639
  let __lookupField = event.data.__lookupField;
24636
24640
  let __changedFilterFormValuesKey = "__changedFilterFormValues";
@@ -24641,9 +24645,8 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
24641
24645
  }
24642
24646
  __changedFilterFormValuesKey += lookupTag;
24643
24647
  }
24644
- let filterForm = SteedosUI.getClosestAmisComponentByType(scope, "form");
24645
24648
  setTimeout(function(){
24646
- filterForm.setValues(event.data[__changedFilterFormValuesKey]);
24649
+ filterForm && filterForm.setValues(event.data[__changedFilterFormValuesKey]);
24647
24650
  }, 500);
24648
24651
  `;
24649
24652
 
@@ -26476,7 +26479,7 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
26476
26479
  var optionsFilters = [["${valueFieldKey}", optionsFiltersOp, []]];
26477
26480
  if (defaultValue && !api.data.$term) {
26478
26481
  const defaultValueOptionsQueryData = ${JSON.stringify(defaultValueOptionsQueryData)};
26479
- const defaultValueOptionsQuery = defaultValueOptionsQueryData?.query?.replace(/^{/,"").replace(/}$/,"");
26482
+ const defaultValueOptionsQuery = defaultValueOptionsQueryData && defaultValueOptionsQueryData.query && defaultValueOptionsQueryData.query.replace(/^{/,"").replace(/}$/,"");
26480
26483
  // 字段值单独请求,没值的时候在请求中返回空
26481
26484
  optionsFilters = [["${valueFieldKey}", optionsFiltersOp, defaultValue]];
26482
26485
  if(filters.length > 0){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos-widgets/sortable",
3
- "version": "3.6.12",
3
+ "version": "3.6.14",
4
4
  "main": "dist/sortable.cjs.js",
5
5
  "module": "dist/sortable.esm.js",
6
6
  "unpkg": "dist/sortable.umd.js",
@@ -45,7 +45,7 @@
45
45
  "dependencies": {
46
46
  "@dnd-kit/core": "^6.0.5",
47
47
  "@dnd-kit/sortable": "^7.0.1",
48
- "@steedos-widgets/amis-lib": "3.6.12"
48
+ "@steedos-widgets/amis-lib": "3.6.14"
49
49
  },
50
- "gitHead": "e71fedfe247929278dab0a0ecc9679246d4ad7f7"
50
+ "gitHead": "6c56be34a05cc4aa9b420c2e72f4559ec4b70f24"
51
51
  }