@steedos-widgets/amis-lib 1.3.4-beta.7 → 1.3.4-beta.8

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/index.umd.js CHANGED
@@ -294,7 +294,7 @@ toolbarReloadButton={"type":"reload","align":"right",//TODO: dropdown-button只
294
294
  // "tooltipPlacement": "top",
295
295
  "type":"button","badge":{"offset":[-5,1],"size":8,"animation":true,"visibleOn":"${isFieldsFilterEmpty == false && isLookup != true}"},"align":"right","className":"bg-white p-2 rounded border-gray-300 text-gray-500","onEvent":{"click":{"actions":[{"actionType":"custom","script":onFieldsFilterToggleScript}]}},"id":"steedos_crud_toolbar_filter"};}var toolbarDisplayAsButton=getDisplayAsButton(mainObject===null||mainObject===void 0?void 0:mainObject.name);var toolbarDQuickSearchBox=getObjectHeaderQuickSearchBox(mainObject,fields,formFactor,{isLookup:isLookup,keywordsSearchBoxName:keywordsSearchBoxName});// toolbars返回的数组元素不可以是空对象{},比如hiddenCount ? {} : {"type": "tpl",...},因为空对象最终还是会生成一个空的.antd-Crud-toolbar-item dom
296
296
  // 当出现空的.antd-Crud-toolbar-item dom时会影响toolbar元素的maring-right css样式计算,如果有动态需要应该加到动态数组变量toolbars中
297
- var toolbars=[];if(formFactor==='SMALL'){if(toolbarCount){toolbars.push(toolbarCount);}if(toolbarFilter){toolbars.push(toolbarFilter);}toolbars.push(toolbarReloadButton);toolbars.push(toolbarDisplayAsButton);toolbars.push(toolbarDQuickSearchBox);return[].concat(_toConsumableArray(headerToolbarItems||[]),toolbars);}else{var _mainObject$permissio;if(toolbarCount){toolbars.push(toolbarCount);}if(toolbarFilter){toolbars.push(toolbarFilter);}toolbars.push(toolbarReloadButton);toolbars.push(toolbarDisplayAsButton);if(mainObject!==null&&mainObject!==void 0&&(_mainObject$permissio=mainObject.permissions)!==null&&_mainObject$permissio!==void 0&&_mainObject$permissio.allowCreateListViews){toolbars.push(getSettingListviewToolbarButtonSchema());}toolbars.push(toolbarDQuickSearchBox);return[].concat(_toConsumableArray(headerToolbarItems||[]),["bulkActions",{"type":"columns-toggler","className":"hidden"}],toolbars);}}function getObjectFooterToolbar(mainObject,formFactor,options){if(formFactor==='SMALL'){// return [
297
+ var toolbars=[];if(formFactor==='SMALL'){if(toolbarCount){toolbars.push(toolbarCount);}if(toolbarFilter){toolbars.push(toolbarFilter);}toolbars.push(toolbarReloadButton);toolbars.push(toolbarDisplayAsButton);toolbars.push(toolbarDQuickSearchBox);return[].concat(_toConsumableArray(headerToolbarItems||[]),toolbars);}else{var _mainObject$permissio;if(toolbarCount){toolbars.push(toolbarCount);}if(toolbarFilter){toolbars.push(toolbarFilter);}toolbars.push(toolbarReloadButton);toolbars.push(toolbarDisplayAsButton);if(mainObject!==null&&mainObject!==void 0&&(_mainObject$permissio=mainObject.permissions)!==null&&_mainObject$permissio!==void 0&&_mainObject$permissio.allowCreateListViews){toolbars.push(getSettingListviewToolbarButtonSchema());}toolbars.push(toolbarDQuickSearchBox);return[].concat(_toConsumableArray(headerToolbarItems||[]),["bulkActions"],toolbars);}}function getObjectFooterToolbar(mainObject,formFactor,options){if(formFactor==='SMALL'){// return [
298
298
  // "load-more",
299
299
  // ]
300
300
  if(options.displayAs==='split'){return["switch-per-page",{"type":"pagination","maxButtons":5}];}else{return[{"type":"pagination","maxButtons":5}];}}else{if(options&&options.isRelated){return["statistics","pagination"];}else{return["switch-per-page","statistics","pagination"];}}}function getObjectFilter(_x77,_x78,_x79){return _getObjectFilter.apply(this,arguments);}function _getObjectFilter(){_getObjectFilter=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee70(objectSchema,fields,options){var fieldsFilterBarSchema;return _regeneratorRuntime().wrap(function _callee70$(_context70){while(1){switch(_context70.prev=_context70.next){case 0:_context70.next=2;return getObjectListHeaderFieldsFilterBar(objectSchema,null,options);case 2:fieldsFilterBarSchema=_context70.sent;return _context70.abrupt("return",{"title":"","submitText":"","className":"",// "debug": true,