@adaptabletools/adaptable 20.2.5 → 20.2.7

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.
Files changed (38) hide show
  1. package/package.json +1 -1
  2. package/src/AdaptableOptions/AdaptableOptions.d.ts +4 -4
  3. package/src/AdaptableOptions/DataSetOptions.d.ts +1 -1
  4. package/src/AdaptableState/Common/AdaptableColumn.d.ts +4 -0
  5. package/src/AdaptableState/ExportState.d.ts +2 -2
  6. package/src/AdaptableState/FormatColumnState.d.ts +3 -3
  7. package/src/Api/AdaptableApi.d.ts +42 -42
  8. package/src/Api/EventApi.d.ts +1 -1
  9. package/src/Api/GridApi.d.ts +2 -2
  10. package/src/Api/GridFilterApi.d.ts +10 -1
  11. package/src/Api/Implementation/ColumnApiImpl.js +1 -0
  12. package/src/Api/Implementation/GridApiImpl.d.ts +1 -1
  13. package/src/Api/Implementation/GridFilterApiImpl.d.ts +3 -1
  14. package/src/Api/Implementation/GridFilterApiImpl.js +10 -0
  15. package/src/Api/Implementation/LayoutHelpers.js +4 -4
  16. package/src/Api/Implementation/StateApiImpl.d.ts +1 -0
  17. package/src/Api/Implementation/StateApiImpl.js +7 -4
  18. package/src/Api/OptionsApi.d.ts +1 -7
  19. package/src/Api/StateApi.d.ts +7 -0
  20. package/src/Strategy/TeamSharingModule.js +2 -2
  21. package/src/View/Components/ReorderDraggable/index.js +2 -1
  22. package/src/View/Dashboard/Dashboard.js +1 -1
  23. package/src/View/Layout/Wizard/sections/ColumnsSection.js +4 -2
  24. package/src/View/Layout/Wizard/sections/PivotRowGroupingSection.js +1 -1
  25. package/src/View/QuickSearch/QuickSearchInput.d.ts +1 -0
  26. package/src/View/QuickSearch/QuickSearchInput.js +1 -1
  27. package/src/View/QuickSearch/QuickSearchStatusBarContent.js +2 -9
  28. package/src/View/StateManagement/components/ExportDropdown.js +1 -1
  29. package/src/agGrid/AdaptableAgGrid.js +1 -0
  30. package/src/agGrid/AgGridAdapter.js +3 -2
  31. package/src/agGrid/AgGridColumnAdapter.js +4 -3
  32. package/src/agGrid/AgGridExportAdapter.js +1 -1
  33. package/src/env.js +2 -2
  34. package/src/layout-manager/src/LayoutManagerModel.d.ts +4 -4
  35. package/src/layout-manager/src/index.js +5 -3
  36. package/src/layout-manager/src/isLayoutEqual.js +0 -1
  37. package/src/metamodel/adaptable.metamodel.js +1 -1
  38. package/tsconfig.esm.tsbuildinfo +1 -1
@@ -40,10 +40,6 @@ export interface BaseLayoutModel {
40
40
  * Same as RowSummaries, but for Pivot Layout
41
41
  */
42
42
  Ignore_RowSummaries?: any;
43
- /**
44
- * Same as above, but
45
- */
46
- Ignore_Name?: string;
47
43
  /**
48
44
  * Same as above, but for Column Headers
49
45
  */
@@ -51,6 +47,10 @@ export interface BaseLayoutModel {
51
47
  Ignore_Source?: string;
52
48
  Ignore_AdaptableVersion?: string;
53
49
  Ignore_Uuid?: string;
50
+ /**
51
+ * The Layout Name
52
+ */
53
+ Name?: string;
54
54
  ColumnVisibility?: {
55
55
  [columnId: string]: false;
56
56
  };
@@ -276,7 +276,7 @@ export class LayoutManager extends LMEmitter {
276
276
  }
277
277
  delete layout.TableColumns;
278
278
  const pivotLayout = {
279
- Ignore_Name: layout.Ignore_Name,
279
+ Name: layout.Name,
280
280
  Ignore_GridFilter: layout.Ignore_GridFilter,
281
281
  Ignore_ColumnFilters: layout.Ignore_ColumnFilters,
282
282
  Ignore_ColumnHeaders: layout.Ignore_ColumnHeaders,
@@ -595,7 +595,7 @@ export class LayoutManager extends LMEmitter {
595
595
  }
596
596
  }
597
597
  const layout = simplifyTableLayoutModel({
598
- Ignore_Name: this.currentLayout?.Ignore_Name || 'Default',
598
+ Name: this.currentLayout?.Name || 'Default',
599
599
  Ignore_GridFilter: this.currentLayout?.Ignore_GridFilter,
600
600
  Ignore_ColumnFilters: this.currentLayout?.Ignore_ColumnFilters,
601
601
  Ignore_ColumnHeaders: this.currentLayout?.Ignore_ColumnHeaders,
@@ -1016,7 +1016,9 @@ export class LayoutManager extends LMEmitter {
1016
1016
  acc[colId] = index;
1017
1017
  return acc;
1018
1018
  }, {});
1019
- columnState.applyOrder = true;
1019
+ // having this set to true will change pivot column order when there is sorting
1020
+ // and we don't want that to happen #keep-sorted-columns-in-same-order-as-unsorted
1021
+ // columnState.applyOrder = true;
1020
1022
  const columnIds = getColumnOrderIdsForAllColDefs([
1021
1023
  ...layout.PivotColumns,
1022
1024
  ...(layout.PivotAggregationColumns || []).map((col) => col.ColumnId),
@@ -49,7 +49,6 @@ export function isTableLayoutEqual(l1, l2) {
49
49
  function clearIgnoredProperties(layout) {
50
50
  delete layout.Ignore_GridFilter;
51
51
  delete layout.Ignore_ColumnFilters;
52
- delete layout.Ignore_Name;
53
52
  delete layout.Ignore_ColumnHeaders;
54
53
  delete layout.Ignore_AutoSizeColumns;
55
54
  delete layout.Ignore_RowSummaries;