@steedos-widgets/amis-object 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.
@@ -8562,18 +8562,27 @@ function getObjectHeaderToolbar(mainObject, formFactor, {showDisplayAs = false,
8562
8562
 
8563
8563
  }
8564
8564
 
8565
- function getObjectFooterToolbar(mainObject, formFactor) {
8565
+ function getObjectFooterToolbar(mainObject, formFactor, options) {
8566
8566
  if (formFactor === 'SMALL') {
8567
8567
  return [
8568
8568
  "load-more",
8569
8569
  ]
8570
8570
  }
8571
8571
  else {
8572
- return [
8573
- "switch-per-page",
8574
- "statistics",
8575
- "pagination"
8576
- ]
8572
+ if(options && options.isRelated){
8573
+ return [
8574
+ "statistics",
8575
+ "pagination"
8576
+ ]
8577
+
8578
+ }
8579
+ else {
8580
+ return [
8581
+ "switch-per-page",
8582
+ "statistics",
8583
+ "pagination"
8584
+ ]
8585
+ }
8577
8586
  }
8578
8587
  }
8579
8588
 
@@ -12795,6 +12804,7 @@ async function getObjectCRUD(objectSchema, fields, options){
12795
12804
  // headerToolbar: getObjectHeaderToolbar(objectSchema, options.formFactor, {showDisplayAs}),
12796
12805
  headerToolbarClassName: "px-4 py-2 border-gray-300 bg-gray-100 border-solid border-b",
12797
12806
  footerToolbar: getObjectFooterToolbar(objectSchema, options.formFactor, {
12807
+ ...options,
12798
12808
  disableStatistics: options.queryCount === false
12799
12809
  }),
12800
12810
  filter: options.filterVisible !== false && await getObjectFilter(objectSchema, fields, options),