@steedos-widgets/amis-lib 1.2.37 → 1.2.38

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
@@ -5417,18 +5417,27 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
5417
5417
 
5418
5418
  }
5419
5419
 
5420
- function getObjectFooterToolbar(mainObject, formFactor) {
5420
+ function getObjectFooterToolbar(mainObject, formFactor, options) {
5421
5421
  if (formFactor === 'SMALL') {
5422
5422
  return [
5423
5423
  "load-more",
5424
5424
  ]
5425
5425
  }
5426
5426
  else {
5427
- return [
5428
- "switch-per-page",
5429
- "statistics",
5430
- "pagination"
5431
- ]
5427
+ if(options && options.isRelated){
5428
+ return [
5429
+ "statistics",
5430
+ "pagination"
5431
+ ]
5432
+
5433
+ }
5434
+ else {
5435
+ return [
5436
+ "switch-per-page",
5437
+ "statistics",
5438
+ "pagination"
5439
+ ]
5440
+ }
5432
5441
  }
5433
5442
  }
5434
5443
 
@@ -9650,6 +9659,7 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
9650
9659
  // headerToolbar: getObjectHeaderToolbar(objectSchema, options.formFactor, {showDisplayAs}),
9651
9660
  headerToolbarClassName: "px-4 py-2 border-gray-300 bg-gray-100 border-solid border-b",
9652
9661
  footerToolbar: getObjectFooterToolbar(objectSchema, options.formFactor, {
9662
+ ...options,
9653
9663
  disableStatistics: options.queryCount === false
9654
9664
  }),
9655
9665
  filter: options.filterVisible !== false && await getObjectFilter(objectSchema, fields, options),