@adaptabletools/adaptable 22.0.5-canary.0 → 22.0.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable",
3
- "version": "22.0.5-canary.0",
3
+ "version": "22.0.6",
4
4
  "description": "Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements",
5
5
  "keywords": [
6
6
  "web-components",
@@ -34,6 +34,7 @@ export declare abstract class AdaptableModuleBase implements IModule {
34
34
  isModuleVisible(): boolean;
35
35
  isModuleEditable(): boolean;
36
36
  setAgGridDepsInfo(): void;
37
+ getModuleUnavailableMessage(): string | undefined;
37
38
  logMissingAgGridDepsInfos(): void;
38
39
  /**
39
40
  * Used inside the unified UI to show the share button
@@ -66,11 +66,18 @@ export class AdaptableModuleBase {
66
66
  missingAgGridModuleDependencies,
67
67
  };
68
68
  }
69
+ getModuleUnavailableMessage() {
70
+ if (!this.agGridModuleDepsInfo.hasRequiredAgGridModuleDependencies) {
71
+ return `missing required AG Grid modules: ${this.agGridModuleDepsInfo.missingAgGridModuleDependencies.join(', ')}`;
72
+ }
73
+ return undefined;
74
+ }
69
75
  logMissingAgGridDepsInfos() {
70
76
  if (this.isModuleEnabled() &&
71
77
  this.hasRequiredAccessLevel(this.getViewAccessLevel()) &&
72
78
  !this.isModuleAvailable()) {
73
- this.api.logWarn(`Module '${this.moduleInfo.ModuleName}' is not available - missing required AG Grid modules: ${this.agGridModuleDepsInfo.missingAgGridModuleDependencies.join(', ')}`);
79
+ const reason = this.getModuleUnavailableMessage() ?? 'unknown reason';
80
+ this.api.logWarn(`Module '${this.moduleInfo.ModuleName}' is not available - ${reason}`);
74
81
  }
75
82
  }
76
83
  /**
@@ -19,6 +19,7 @@ export declare class CellSummaryModule extends AdaptableModuleBase implements IC
19
19
  cachedCellSummary: WeakMap<SelectedCellInfo<any>, CellSummmaryInfo>;
20
20
  constructor(api: AdaptableApi);
21
21
  isModuleAvailable(): boolean;
22
+ getModuleUnavailableMessage(): string | undefined;
22
23
  getViewAccessLevel(): AccessLevel;
23
24
  createColumnMenuItems(column: AdaptableColumn): import("../Utilities/MenuItem").MenuItemShowPopup<"separator" | "calculated-column-edit" | "cell-summary-show" | "chart-show" | "column-group" | "column-filter-group" | "column-filter-bar-hide" | "column-filter-bar-show" | "column-filter-clear" | "column-filter-suspend" | "column-filter-unsuspend" | "column-info-show" | "custom-sort-add" | "custom-sort-edit" | "dashboard-group" | "dashboard-collapse" | "dashboard-configure" | "dashboard-dock" | "dashboard-expand" | "dashboard-float" | "dashboard-hide" | "dashboard-show" | "data-import" | "flashing-cell-add" | "flashing-cell-delete" | "format-column-add" | "format-column-edit" | "free-text-column-edit" | "grid-group" | "grid-info-show" | "layout-column-caption-change" | "layout-column-hide" | "layout-edit" | "layout-column-select" | "layout-column-select-preserve" | "layout-column-select-reset" | "layout-grid-select" | "plus-minus-add" | "settings-panel-open" | "styling-group" | "styled-column-badge-add" | "styled-column-badge-edit" | "styled-column-gradient-add" | "styled-column-gradient-edit" | "styled-column-percent-bar-add" | "styled-column-percent-bar-edit" | "styled-column-sparkline-add" | "styled-column-sparkline-edit" | "system-status-show" | "_navbar">[];
24
25
  createContextMenuItems(menuContext: ContextMenuContext): import("../Utilities/MenuItem").MenuItemShowPopup<"calculated-column-edit" | "cell-summary-show" | "column-group" | "column-filter-group" | "column-filter-clear" | "column-filter-suspend" | "column-filter-unsuspend" | "column-info-show" | "dashboard-group" | "dashboard-collapse" | "dashboard-configure" | "dashboard-dock" | "dashboard-expand" | "dashboard-float" | "dashboard-hide" | "dashboard-show" | "data-import" | "grid-group" | "grid-info-show" | "layout-edit" | "settings-panel-open" | "system-status-show" | "menu-group" | "alert-clear" | "bulk-update-apply" | "column-filter-on-cell-value" | "comment-add" | "comment-remove" | "edit-group" | "export-group" | "export-all-data" | "export-all-data-excel-download" | "export-all-data-visualexcel-download" | "export-all-data-csv" | "export-all-data-csv-download" | "export-all-data-csv-clipboard" | "export-all-data-json" | "export-all-data-json-download" | "export-all-data-json-clipboard" | "export-current-layout" | "export-current-layout-excel-download" | "export-current-layout-visualexcel-download" | "export-current-layout-csv" | "export-current-layout-csv-download" | "export-current-layout-csv-clipboard" | "export-current-layout-json" | "export-current-layout-json-download" | "export-current-layout-json-clipboard" | "export-selected-data" | "export-selected-data-excel-download" | "export-selected-data-visualexcel-download" | "export-selected-data-csv" | "export-selected-data-csv-download" | "export-selected-data-csv-clipboard" | "export-selected-data-json" | "export-selected-data-json-download" | "export-selected-data-json-clipboard" | "fdc3-broadcast" | "fdc3-raise-intent" | "flashing-cell-clear" | "flashing-row-clear" | "layout-aggregated-view" | "layout-auto-size" | "layout-clear-selection" | "layout-select-all" | "note-add" | "note-remove" | "smart-edit-apply">[];
@@ -15,6 +15,16 @@ export class CellSummaryModule extends AdaptableModuleBase {
15
15
  isModuleAvailable() {
16
16
  return super.isModuleAvailable() && this.api.gridApi.isGridRangeSelectable();
17
17
  }
18
+ getModuleUnavailableMessage() {
19
+ const baseMessage = super.getModuleUnavailableMessage();
20
+ if (baseMessage) {
21
+ return baseMessage;
22
+ }
23
+ if (!this.api.gridApi.isGridRangeSelectable()) {
24
+ return 'grid range selection is not enabled - set the "cellSelection" gridOption to enable it';
25
+ }
26
+ return undefined;
27
+ }
18
28
  getViewAccessLevel() {
19
29
  return 'Full';
20
30
  }
@@ -13,6 +13,7 @@ export declare class PlusMinusModule extends AdaptableModuleBase implements IPlu
13
13
  private adaptable;
14
14
  constructor(api: AdaptableApi);
15
15
  isModuleAvailable(): boolean;
16
+ getModuleUnavailableMessage(): string | undefined;
16
17
  getModuleAdaptableObjects(config?: LayoutExtendedConfig): AdaptableObject[];
17
18
  getExplicitlyReferencedColumnIds(plusMinusNudge: PlusMinusNudge): string[];
18
19
  getReferencedNamedQueryNames(plusMinusNudge: PlusMinusNudge): string[];
@@ -21,6 +21,16 @@ export class PlusMinusModule extends AdaptableModuleBase {
21
21
  isModuleAvailable() {
22
22
  return super.isModuleAvailable() && this.api.gridApi.isGridRangeSelectable();
23
23
  }
24
+ getModuleUnavailableMessage() {
25
+ const baseMessage = super.getModuleUnavailableMessage();
26
+ if (baseMessage) {
27
+ return baseMessage;
28
+ }
29
+ if (!this.api.gridApi.isGridRangeSelectable()) {
30
+ return 'grid range selection is not enabled - set the "cellSelection" gridOption to enable it';
31
+ }
32
+ return undefined;
33
+ }
24
34
  getModuleAdaptableObjects(config) {
25
35
  return this.api.plusMinusApi.getAllPlusMinus(config);
26
36
  }
@@ -2059,6 +2059,10 @@ export class AdaptableAgGrid {
2059
2059
  // we want to return the value property as the raw value
2060
2060
  _rawValue = _rawValue.value;
2061
2061
  }
2062
+ if (_rawValue?.value != undefined && typeof _rawValue.toString === 'function') {
2063
+ // handle columns with custom valueGetters
2064
+ _rawValue = _rawValue.value;
2065
+ }
2062
2066
  }
2063
2067
  return _rawValue;
2064
2068
  };
package/src/env.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export default {
2
2
  NEXT_PUBLIC_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: 1773920918326 || Date.now(),
4
- VERSION: "22.0.5-canary.0" || '--current-version--',
3
+ PUBLISH_TIMESTAMP: 1774360435118 || Date.now(),
4
+ VERSION: "22.0.6" || '--current-version--',
5
5
  };