@adaptabletools/adaptable 18.1.8 → 18.1.9

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 (27) hide show
  1. package/package.json +1 -1
  2. package/src/AdaptableInterfaces/IAdaptable.d.ts +1 -0
  3. package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +4 -0
  4. package/src/Api/DataChangeHistoryApi.d.ts +6 -0
  5. package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +2 -0
  6. package/src/Api/Implementation/DataChangeHistoryApiImpl.js +24 -3
  7. package/src/Api/Internal/GridInternalApi.js +12 -6
  8. package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +9 -9
  9. package/src/Redux/ActionsReducers/SystemRedux.d.ts +9 -8
  10. package/src/Redux/ActionsReducers/SystemRedux.js +11 -11
  11. package/src/Strategy/DataChangeHistoryModule.js +1 -2
  12. package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +1 -0
  13. package/src/Utilities/Constants/DocumentationLinkConstants.js +1 -0
  14. package/src/Utilities/Helpers/FormatContentHelper.d.ts +22 -0
  15. package/src/Utilities/Helpers/FormatContentHelper.js +34 -0
  16. package/src/Utilities/Helpers/FormatHelper.d.ts +0 -18
  17. package/src/Utilities/Helpers/FormatHelper.js +2 -34
  18. package/src/View/Alert/Wizard/AlertMessageWizardSection.js +4 -3
  19. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +32 -13
  20. package/src/agGrid/AdaptableAgGrid.d.ts +1 -0
  21. package/src/agGrid/AdaptableAgGrid.js +21 -0
  22. package/src/agGrid/AgGridMenuAdapter.js +15 -1
  23. package/src/agGrid/defaultAdaptableOptions.js +1 -0
  24. package/src/env.js +2 -2
  25. package/src/metamodel/adaptable.metamodel.d.ts +8 -0
  26. package/src/metamodel/adaptable.metamodel.js +1 -1
  27. package/tsconfig.esm.tsbuildinfo +1 -1
@@ -2379,6 +2379,27 @@ export class AdaptableAgGrid {
2379
2379
  }
2380
2380
  return returnValues;
2381
2381
  }
2382
+ // This horrible method is temporary until we can get rid of having predicates inside values which is coming soon
2383
+ // We need it in case Blanks is requested
2384
+ // once we go to the new multi predicate screen then we wont show blanks any more - which we should never have done
2385
+ getGridCellsForColumnTemp(columnId, onlyVisibleRows) {
2386
+ let returnValues = [];
2387
+ const handler = (rowNode) => {
2388
+ if (!this.isGroupRowNode(rowNode)) {
2389
+ const gridCell = this.getGridCellFromRowNode(rowNode, columnId);
2390
+ if (gridCell) {
2391
+ returnValues.push(gridCell);
2392
+ }
2393
+ }
2394
+ };
2395
+ if (onlyVisibleRows) {
2396
+ this.agGridAdapter.getAgGridApi().forEachNodeAfterFilter(handler);
2397
+ }
2398
+ else {
2399
+ this.agGridAdapter.getAgGridApi().forEachNode(handler);
2400
+ }
2401
+ return returnValues;
2402
+ }
2382
2403
  getRowNodesForPrimaryKeys(primaryKeyValues) {
2383
2404
  let rowNodes = [];
2384
2405
  if (this.useRowNodeLookUp) {
@@ -470,6 +470,20 @@ export class AgGridMenuAdapter {
470
470
  ...gridInfoMenuItems,
471
471
  ],
472
472
  };
473
+ /*
474
+ const calculatedColumnMenuItem: AdaptableMenuItem = {
475
+ name: 'calculated-column-group',
476
+ label: 'Calculated Column',
477
+ module: 'CalculatedColumn',
478
+ isVisible: true,
479
+ icon: {
480
+ name: 'columns',
481
+ },
482
+ subItems: [
483
+ ...calculatedColumnMenuItems,
484
+ ],
485
+ };
486
+ */
473
487
  const columnMenuItem = {
474
488
  name: 'column-group',
475
489
  label: 'Column',
@@ -480,7 +494,6 @@ export class AgGridMenuAdapter {
480
494
  },
481
495
  subItems: [
482
496
  ...columnActionGroup,
483
- ...calculatedColumnMenuItems,
484
497
  ...freeTextColumnMenuItems,
485
498
  ...customSortMenuItems,
486
499
  ...plusMinusMenuItems,
@@ -499,6 +512,7 @@ export class AgGridMenuAdapter {
499
512
  subItems: [...formatColumnMenuItems, ...styledColumnMenuItems, ...flashingCellMenuItems],
500
513
  };
501
514
  return this.removeConsecutiveSeparators([
515
+ ...calculatedColumnMenuItems,
502
516
  ...settingsPanelMenuItems,
503
517
  ...dashboardMenuItems,
504
518
  ...columnFilterGroup,
@@ -294,6 +294,7 @@ const DefaultAdaptableOptions = {
294
294
  activeByDefault: false,
295
295
  showDataChange: undefined,
296
296
  changeHistoryButton: undefined,
297
+ showLastDataChangeOnly: true
297
298
  },
298
299
  settingsPanelOptions: {
299
300
  popupType: 'window',
package/src/env.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export default {
2
2
  INFINITE_TABLE_LICENSE_KEY: "StartDate=2021-06-29|EndDate=2030-01-01|Owner=Adaptable|Type=distribution|TS=1624971462479|C=137829811,1004007071,2756196225,1839832928,3994409405,636616862" || '',
3
- PUBLISH_TIMESTAMP: 1720529546809 || Date.now(),
4
- VERSION: "18.1.8" || '--current-version--',
3
+ PUBLISH_TIMESTAMP: 1721129456634 || Date.now(),
4
+ VERSION: "18.1.9" || '--current-version--',
5
5
  };
@@ -2751,6 +2751,14 @@ export declare const ADAPTABLE_METAMODEL: {
2751
2751
  gridInfo: string;
2752
2752
  defVal: string;
2753
2753
  noCode?: undefined;
2754
+ } | {
2755
+ name: string;
2756
+ kind: string;
2757
+ desc: string;
2758
+ isOpt: boolean;
2759
+ gridInfo?: undefined;
2760
+ noCode?: undefined;
2761
+ defVal?: undefined;
2754
2762
  })[];
2755
2763
  };
2756
2764
  DataFormatDataType: {