@adaptabletools/adaptable-cjs 22.1.0 → 22.1.1-canary.0

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 (142) hide show
  1. package/index.css +8 -9
  2. package/package.json +1 -1
  3. package/src/AdaptableInterfaces/IAdaptable.d.ts +2 -2
  4. package/src/AdaptableOptions/AdaptableOptions.d.ts +2 -21
  5. package/src/AdaptableOptions/AlertOptions.d.ts +0 -5
  6. package/src/AdaptableOptions/CellSummaryOptions.d.ts +2 -0
  7. package/src/AdaptableOptions/ChartingOptions.d.ts +2 -0
  8. package/src/AdaptableOptions/ColumnOptions.d.ts +0 -2
  9. package/src/AdaptableOptions/CommentOptions.d.ts +6 -0
  10. package/src/AdaptableOptions/ContainerOptions.d.ts +0 -6
  11. package/src/AdaptableOptions/DashboardOptions.d.ts +0 -2
  12. package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +0 -2
  13. package/src/AdaptableOptions/DataSetOptions.d.ts +2 -0
  14. package/src/AdaptableOptions/DefaultAdaptableOptions.js +34 -2
  15. package/src/AdaptableOptions/EditOptions.d.ts +0 -1
  16. package/src/AdaptableOptions/EntitlementOptions.d.ts +0 -2
  17. package/src/AdaptableOptions/ExportOptions.d.ts +1 -7
  18. package/src/AdaptableOptions/ExpressionOptions.d.ts +0 -18
  19. package/src/AdaptableOptions/Fdc3Options.d.ts +5 -1
  20. package/src/AdaptableOptions/FilterOptions.d.ts +3 -18
  21. package/src/AdaptableOptions/NoteOptions.d.ts +6 -0
  22. package/src/AdaptableOptions/NotificationsOptions.d.ts +0 -10
  23. package/src/AdaptableOptions/PredicateOptions.d.ts +12 -1
  24. package/src/AdaptableOptions/QuickSearchOptions.d.ts +0 -4
  25. package/src/AdaptableOptions/SettingsPanelOptions.d.ts +15 -5
  26. package/src/AdaptableOptions/TeamSharingOptions.d.ts +0 -4
  27. package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -1
  28. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +6 -7
  29. package/src/AdaptableState/Common/AdaptableFormat.d.ts +9 -0
  30. package/src/AdaptableState/Common/AdaptableFormatPresets.d.ts +31 -0
  31. package/src/AdaptableState/Common/AdaptableFormatPresets.js +186 -0
  32. package/src/AdaptableState/Common/Menu.d.ts +1 -1
  33. package/src/AdaptableState/Common/Menu.js +2 -0
  34. package/src/AdaptableState/FormatColumnState.d.ts +6 -3
  35. package/src/Api/EventApi.d.ts +6 -6
  36. package/src/Api/Implementation/EntitlementApiImpl.js +5 -4
  37. package/src/Api/Implementation/FormatColumnApiImpl.js +8 -3
  38. package/src/Api/Implementation/GridApiImpl.js +1 -12
  39. package/src/Api/Internal/FormatColumnInternalApi.js +4 -2
  40. package/src/Api/Internal/LayoutInternalApi.js +5 -2
  41. package/src/Redux/Store/AdaptableStore.js +4 -4
  42. package/src/Strategy/AdaptableModuleBase.js +8 -7
  43. package/src/Strategy/AlertModule.d.ts +1 -1
  44. package/src/Strategy/BulkUpdateModule.d.ts +1 -1
  45. package/src/Strategy/BulkUpdateModule.js +2 -1
  46. package/src/Strategy/CalculatedColumnModule.d.ts +1 -1
  47. package/src/Strategy/CellSummaryModule.d.ts +1 -1
  48. package/src/Strategy/CellSummaryModule.js +2 -1
  49. package/src/Strategy/ColumnFilterModule.js +2 -1
  50. package/src/Strategy/ColumnInfoModule.d.ts +1 -1
  51. package/src/Strategy/ColumnInfoModule.js +2 -1
  52. package/src/Strategy/CommentModule.d.ts +1 -1
  53. package/src/Strategy/CommentModule.js +12 -2
  54. package/src/Strategy/ExportModule.d.ts +1 -1
  55. package/src/Strategy/Fdc3Module.d.ts +1 -1
  56. package/src/Strategy/FlashingCellModule.d.ts +1 -1
  57. package/src/Strategy/GridFilterModule.js +2 -1
  58. package/src/Strategy/GridInfoModule.d.ts +1 -1
  59. package/src/Strategy/GridInfoModule.js +2 -1
  60. package/src/Strategy/LayoutModule.d.ts +1 -1
  61. package/src/Strategy/NamedQueryModule.js +0 -16
  62. package/src/Strategy/NoteModule.d.ts +1 -1
  63. package/src/Strategy/NoteModule.js +16 -3
  64. package/src/Strategy/PlusMinusModule.js +8 -2
  65. package/src/Strategy/ScheduleModule.js +5 -4
  66. package/src/Strategy/SettingsPanelModule.d.ts +1 -1
  67. package/src/Strategy/ShortcutModule.js +5 -4
  68. package/src/Strategy/SmartEditModule.d.ts +1 -1
  69. package/src/Strategy/SmartEditModule.js +4 -4
  70. package/src/Strategy/SystemStatusModule.d.ts +1 -1
  71. package/src/Utilities/Constants/GeneralConstants.d.ts +4 -0
  72. package/src/Utilities/Constants/GeneralConstants.js +5 -1
  73. package/src/Utilities/Extensions/NumberExtensions.d.ts +2 -0
  74. package/src/Utilities/Extensions/NumberExtensions.js +9 -0
  75. package/src/Utilities/Helpers/AdaptableHelper.js +3 -2
  76. package/src/Utilities/Helpers/FormatHelper.js +26 -15
  77. package/src/Utilities/Services/AnnotationsService.js +10 -1
  78. package/src/Utilities/Services/Interface/IMetamodelService.d.ts +0 -1
  79. package/src/Utilities/Services/MetamodelService.d.ts +0 -2
  80. package/src/Utilities/Services/MetamodelService.js +6 -12
  81. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +7 -6
  82. package/src/View/Alert/AlertEmptyView.js +2 -1
  83. package/src/View/BulkUpdate/BulkUpdateViewPanel.js +1 -1
  84. package/src/View/CellSummary/CellSummaryViewPanel.js +2 -1
  85. package/src/View/Comments/CommentsEditor.js +2 -1
  86. package/src/View/Comments/CommentsPopup.js +3 -1
  87. package/src/View/Components/Buttons/ButtonBase/index.js +3 -2
  88. package/src/View/Components/Buttons/EntityListActionButtons.js +7 -6
  89. package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.js +2 -1
  90. package/src/View/Components/ColumnFilter/components/ColumnFilterInput.js +3 -2
  91. package/src/View/Components/ColumnFilter/components/ColumnFilterInputList.js +4 -1
  92. package/src/View/Components/Panels/PanelDashboard/index.js +2 -1
  93. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +4 -2
  94. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +2 -1
  95. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +3 -2
  96. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +2 -1
  97. package/src/View/Dashboard/CustomDashboardButton.js +3 -2
  98. package/src/View/Dashboard/Dashboard.js +3 -2
  99. package/src/View/Dashboard/DashboardPopup.js +3 -2
  100. package/src/View/Dashboard/PinnedToolbarsSelector.js +2 -1
  101. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +2 -1
  102. package/src/View/Export/ExportViewPanel.js +3 -1
  103. package/src/View/Filter/FilterViewPanel.js +2 -1
  104. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +137 -181
  105. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +20 -8
  106. package/src/View/GridFilter/GridFilterPopupUI/index.d.ts +3 -2
  107. package/src/View/GridFilter/GridFilterPopupUI/index.js +2 -1
  108. package/src/View/GridFilter/GridFilterViewPanel.js +3 -2
  109. package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +179 -6
  110. package/src/View/Layout/LayoutCloneButton.js +2 -1
  111. package/src/View/Layout/LayoutViewPanel.js +3 -1
  112. package/src/View/Layout/TransposedPopup.js +2 -1
  113. package/src/View/Note/NotePopup.js +3 -1
  114. package/src/View/SmartEdit/SmartEditViewPanel.js +2 -1
  115. package/src/View/StateManagement/StateManagementViewPanel.js +3 -1
  116. package/src/View/StatusBar/StatusBarPopup.js +2 -1
  117. package/src/View/Theme/ThemeEditor.js +2 -1
  118. package/src/View/Theme/ThemePopup.js +2 -1
  119. package/src/View/Theme/ThemeSelector.js +3 -1
  120. package/src/View/Theme/ThemeViewPanel.js +3 -1
  121. package/src/View/Wizard/OnePageWizards.js +3 -2
  122. package/src/agGrid/AdaptableAgGrid.d.ts +2 -2
  123. package/src/agGrid/AdaptableAgGrid.js +7 -29
  124. package/src/agGrid/AgGridAdapter.js +1 -1
  125. package/src/agGrid/AgGridColumnAdapter.js +11 -4
  126. package/src/agGrid/AgGridExportAdapter.js +4 -2
  127. package/src/agGrid/cellRenderers/ActionColumnRenderer.js +2 -1
  128. package/src/components/Dashboard/Dashboard.js +2 -1
  129. package/src/components/Dashboard/DashboardToolbar.js +2 -1
  130. package/src/components/Datepicker/index.js +2 -1
  131. package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +1 -1
  132. package/src/components/Select/Select.js +4 -3
  133. package/src/components/SimpleButton/index.js +3 -2
  134. package/src/env.js +2 -2
  135. package/src/metamodel/adaptable-metamodel-model.d.ts +0 -2
  136. package/src/metamodel/adaptable.metamodel.d.ts +10 -197
  137. package/src/metamodel/adaptable.metamodel.js +1 -1
  138. package/src/types.d.ts +2 -0
  139. package/src/types.js +5 -1
  140. package/themes/dark.css +3 -1
  141. package/tsconfig.cjs.tsbuildinfo +1 -1
  142. package/index.css.map +0 -1
@@ -0,0 +1,186 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveDisplayFormat = exports.isAdaptableNumericFormatPreset = exports.NUMERIC_FORMAT_PRESETS = void 0;
4
+ /**
5
+ * Concrete options associated with each numeric preset. The wizard and
6
+ * runtime resolver both pull from this single source of truth.
7
+ */
8
+ exports.NUMERIC_FORMAT_PRESETS = {
9
+ Percentage: {
10
+ FractionDigits: 2,
11
+ FractionSeparator: '.',
12
+ IntegerDigits: undefined,
13
+ IntegerSeparator: ',',
14
+ Prefix: '',
15
+ Suffix: '%',
16
+ Multiplier: 100,
17
+ Parentheses: false,
18
+ },
19
+ Thousand: {
20
+ FractionDigits: undefined,
21
+ FractionSeparator: '.',
22
+ IntegerDigits: undefined,
23
+ IntegerSeparator: ',',
24
+ Prefix: '',
25
+ Suffix: 'K',
26
+ Multiplier: 0.001,
27
+ Parentheses: false,
28
+ },
29
+ Million: {
30
+ FractionDigits: undefined,
31
+ FractionSeparator: '.',
32
+ IntegerDigits: undefined,
33
+ IntegerSeparator: ',',
34
+ Prefix: '',
35
+ Suffix: 'M',
36
+ Multiplier: 0.000001,
37
+ Parentheses: false,
38
+ },
39
+ Billion: {
40
+ FractionDigits: undefined,
41
+ FractionSeparator: '.',
42
+ IntegerDigits: undefined,
43
+ IntegerSeparator: ',',
44
+ Prefix: '',
45
+ Suffix: 'B',
46
+ Multiplier: 0.000000001,
47
+ Parentheses: false,
48
+ },
49
+ BasisPoints: {
50
+ FractionDigits: 0,
51
+ FractionSeparator: '.',
52
+ IntegerDigits: undefined,
53
+ IntegerSeparator: ',',
54
+ Prefix: '',
55
+ Suffix: ' bps',
56
+ Multiplier: 10000,
57
+ Parentheses: false,
58
+ },
59
+ Dollar: {
60
+ FractionDigits: 2,
61
+ FractionSeparator: '.',
62
+ IntegerDigits: undefined,
63
+ IntegerSeparator: ',',
64
+ Prefix: '$',
65
+ Suffix: '',
66
+ Multiplier: 1,
67
+ Parentheses: false,
68
+ },
69
+ Sterling: {
70
+ FractionDigits: 2,
71
+ FractionSeparator: '.',
72
+ IntegerDigits: undefined,
73
+ IntegerSeparator: ',',
74
+ Prefix: '£',
75
+ Suffix: '',
76
+ Multiplier: 1,
77
+ Parentheses: false,
78
+ },
79
+ Euro: {
80
+ FractionDigits: 2,
81
+ FractionSeparator: '.',
82
+ IntegerDigits: undefined,
83
+ IntegerSeparator: ',',
84
+ Prefix: '€',
85
+ Suffix: '',
86
+ Multiplier: 1,
87
+ Parentheses: false,
88
+ },
89
+ Yen: {
90
+ FractionDigits: 0,
91
+ FractionSeparator: '.',
92
+ IntegerDigits: undefined,
93
+ IntegerSeparator: ',',
94
+ Prefix: '¥',
95
+ Suffix: '',
96
+ Multiplier: 1,
97
+ Parentheses: false,
98
+ },
99
+ Bitcoin: {
100
+ FractionDigits: 8,
101
+ FractionSeparator: '.',
102
+ IntegerDigits: undefined,
103
+ IntegerSeparator: ',',
104
+ Prefix: '₿',
105
+ Suffix: '',
106
+ Multiplier: 1,
107
+ Parentheses: false,
108
+ },
109
+ Integer: {
110
+ FractionDigits: 0,
111
+ FractionSeparator: '.',
112
+ IntegerDigits: undefined,
113
+ IntegerSeparator: ',',
114
+ Prefix: '',
115
+ Suffix: '',
116
+ Multiplier: 1,
117
+ Parentheses: false,
118
+ },
119
+ Decimal: {
120
+ FractionDigits: 2,
121
+ FractionSeparator: '.',
122
+ IntegerDigits: undefined,
123
+ IntegerSeparator: ',',
124
+ Prefix: '',
125
+ Suffix: '',
126
+ Multiplier: 1,
127
+ Parentheses: false,
128
+ },
129
+ Accounting: {
130
+ FractionDigits: 2,
131
+ FractionSeparator: '.',
132
+ IntegerDigits: undefined,
133
+ IntegerSeparator: ',',
134
+ Prefix: '',
135
+ Suffix: '',
136
+ Multiplier: 1,
137
+ Parentheses: true,
138
+ },
139
+ FXRate: {
140
+ FractionDigits: 4,
141
+ FractionSeparator: '.',
142
+ IntegerDigits: undefined,
143
+ IntegerSeparator: '',
144
+ Prefix: '',
145
+ Suffix: '',
146
+ Multiplier: 1,
147
+ Parentheses: false,
148
+ },
149
+ Scientific: {
150
+ FractionDigits: 2,
151
+ FractionSeparator: '.',
152
+ IntegerDigits: undefined,
153
+ IntegerSeparator: undefined,
154
+ Prefix: '',
155
+ Suffix: '',
156
+ Multiplier: 1,
157
+ Parentheses: false,
158
+ Notation: 'scientific',
159
+ },
160
+ };
161
+ /**
162
+ * Type guard: `true` if the value is a known numeric preset name.
163
+ */
164
+ const isAdaptableNumericFormatPreset = (value) => {
165
+ return typeof value === 'string' && value in exports.NUMERIC_FORMAT_PRESETS;
166
+ };
167
+ exports.isAdaptableNumericFormatPreset = isAdaptableNumericFormatPreset;
168
+ /**
169
+ * Resolve a `DisplayFormat` (preset name or concrete object) into a
170
+ * concrete `AdaptableFormat`. Returns `undefined` if the input is
171
+ * `undefined`. A bare preset name is expanded into a `NumberFormatter`
172
+ * with the corresponding options.
173
+ */
174
+ const resolveDisplayFormat = (displayFormat) => {
175
+ if (displayFormat == null) {
176
+ return undefined;
177
+ }
178
+ if ((0, exports.isAdaptableNumericFormatPreset)(displayFormat)) {
179
+ return {
180
+ Formatter: 'NumberFormatter',
181
+ Options: { ...exports.NUMERIC_FORMAT_PRESETS[displayFormat] },
182
+ };
183
+ }
184
+ return displayFormat;
185
+ };
186
+ exports.resolveDisplayFormat = resolveDisplayFormat;
@@ -20,7 +20,7 @@ export declare const ADAPTABLE_COLUMN_MENU_ITEMS: readonly ["calculated-column-e
20
20
  /**
21
21
  * List of Shipped Adaptable Context Menu Items
22
22
  */
23
- export declare const ADAPTABLE_CONTEXT_MENU_ITEMS: readonly ["menu-group", "alert-clear", "bulk-update-apply", "calculated-column-edit", "cell-summary-show", "column-group", "column-filter-group", "column-filter-on-cell-value", "column-filter-clear", "column-filter-suspend", "column-filter-unsuspend", "column-info-show", "comment-add", "comment-remove", "dashboard-group", "dashboard-collapse", "dashboard-configure", "dashboard-dock", "dashboard-expand", "dashboard-float", "dashboard-hide", "dashboard-show", "data-import", "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", "grid-group", "grid-info-show", "layout-aggregated-view", "layout-auto-size", "layout-clear-selection", "layout-edit", "layout-select-all", "note-add", "note-remove", "settings-panel-open", "smart-edit-apply", "system-status-show"];
23
+ export declare const ADAPTABLE_CONTEXT_MENU_ITEMS: readonly ["menu-group", "alert-clear", "bulk-update-apply", "calculated-column-edit", "cell-summary-show", "column-group", "column-filter-group", "column-filter-on-cell-value", "column-filter-clear", "column-filter-suspend", "column-filter-unsuspend", "column-info-show", "comment-add", "comment-remove", "comment-show", "dashboard-group", "dashboard-collapse", "dashboard-configure", "dashboard-dock", "dashboard-expand", "dashboard-float", "dashboard-hide", "dashboard-show", "data-import", "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", "grid-group", "grid-info-show", "layout-aggregated-view", "layout-auto-size", "layout-clear-selection", "layout-edit", "layout-select-all", "note-add", "note-remove", "note-show", "settings-panel-open", "smart-edit-apply", "system-status-show"];
24
24
  /**
25
25
  * Menu item used by Adaptable in Context Menus
26
26
  */
@@ -74,6 +74,7 @@ exports.ADAPTABLE_CONTEXT_MENU_ITEMS = [
74
74
  'column-info-show',
75
75
  'comment-add',
76
76
  'comment-remove',
77
+ 'comment-show',
77
78
  'dashboard-group',
78
79
  'dashboard-collapse',
79
80
  'dashboard-configure',
@@ -125,6 +126,7 @@ exports.ADAPTABLE_CONTEXT_MENU_ITEMS = [
125
126
  'layout-select-all',
126
127
  'note-add',
127
128
  'note-remove',
129
+ 'note-show',
128
130
  'settings-panel-open',
129
131
  'smart-edit-apply',
130
132
  'system-status-show',
@@ -1,6 +1,6 @@
1
1
  import { BaseState } from './BaseState';
2
2
  import { AdaptableStyle } from './Common/AdaptableStyle';
3
- import { AdaptableFormat } from './Common/AdaptableFormat';
3
+ import { DisplayFormat } from './Common/AdaptableFormatPresets';
4
4
  import { ColumnScope } from './Common/ColumnScope';
5
5
  import { RowScope } from './Common/RowScope';
6
6
  import { XOR } from '../Utilities/Extensions/TypeExtensions';
@@ -44,9 +44,12 @@ export interface FormatColumn extends SuspendableObject {
44
44
  */
45
45
  Style?: AdaptableStyle;
46
46
  /**
47
- * Display Format to apply to Column can be Numeric, String or Date
47
+ * Display Format to apply to Column. Can be a concrete `AdaptableFormat`
48
+ * (Numeric, String or Date) **or** the name of a numeric preset such as
49
+ * `'Percentage'`, `'Thousand'`, `'Million'`, `'Dollar'`, `'Sterling'`,
50
+ * which is resolved at render time.
48
51
  */
49
- DisplayFormat?: AdaptableFormat;
52
+ DisplayFormat?: DisplayFormat;
50
53
  /**
51
54
  * Which types of Rows to apply format (data, grouped, summary, total)
52
55
  */
@@ -16,6 +16,12 @@ export interface EventApi {
16
16
  * @param callback
17
17
  */
18
18
  off(eventName: 'GridSorted', callback: (gridSortedInfo: GridSortedInfo) => void): void;
19
+ /**
20
+ * Event fired whenever a Grid Filter is applied in AdapTable
21
+ * @param eventName GridFilterApplied
22
+ * @param callback GridFilterAppliedInfo which provides details of the Grid Filter that was applied
23
+ * @returns the unsubscribe function
24
+ */
19
25
  on(eventName: 'GridFilterApplied', callback: (gridFilterAppliedInfo: GridFilterAppliedInfo) => void): VoidFunction;
20
26
  /**
21
27
  * Unsubscribe from GridFilterApplied
@@ -347,10 +353,4 @@ export interface EventApi {
347
353
  * @param callbackFdc3MessageInfo
348
354
  */
349
355
  off(eventName: 'Fdc3Message', callback: (fdc3MessageInfo: Fdc3MessageInfo) => void): void;
350
- emitSync(eventName: 'BeforeAdaptableStateChange', data?: any): any[];
351
- emitSync(eventName: 'DashboardChanged', data?: any): any[];
352
- emitSync(eventName: 'FlashingCellDisplayed', data?: any): any[];
353
- emitSync(eventName: 'AdaptableDestroy'): any[];
354
- emit(eventName: 'RowFormSubmitted' | 'AdaptableReady' | 'AlertFired' | 'BeforeAdaptableStateChange' | 'AdaptableStateChanged' | 'AdaptableStateReloaded' | 'CellChanged' | 'ChartChanged' | 'CheckboxColumnClicked' | 'CustomToolbarConfigured' | 'DashboardChanged' | 'DataImported' | 'DataSetSelected' | 'ColumnFilterApplied' | 'Fdc3Message' | 'RowChanged' | 'GridSorted' | 'LayoutChanged' | 'CalculatedColumnChanged' | 'LiveDataChanged' | 'ScheduleTriggered' | 'SearchChanged' | 'CellSelectionChanged' | 'RowSelectionChanged' | 'SystemStatusMessageDisplayed' | 'TeamSharingEntityChanged' | 'ThemeChanged' | 'GridFilterApplied' | 'CommentChanged', data?: any): Promise<any>;
355
- destroy(): void;
356
356
  }
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EntitlementApiImpl = void 0;
4
4
  const ApiBase_1 = require("./ApiBase");
5
5
  const EntitlementInternalApi_1 = require("../Internal/EntitlementInternalApi");
6
+ const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
6
7
  class EntitlementApiImpl extends ApiBase_1.ApiBase {
7
8
  internalApi;
8
9
  constructor(_adaptable) {
@@ -37,19 +38,19 @@ class EntitlementApiImpl extends ApiBase_1.ApiBase {
37
38
  // if still here then return their default Access Level
38
39
  return defaultAccessLevel;
39
40
  }
40
- return 'Full';
41
+ return GeneralConstants_1.ACCESS_LEVEL_FULL;
41
42
  }
42
43
  isObjectReadonly(object) {
43
44
  return object.IsReadOnly;
44
45
  }
45
46
  isModuleHiddenEntitlement(adaptableModule) {
46
- return this.getEntitlementAccessLevelForModule(adaptableModule) == 'Hidden';
47
+ return this.getEntitlementAccessLevelForModule(adaptableModule) == GeneralConstants_1.ACCESS_LEVEL_HIDDEN;
47
48
  }
48
49
  isModuleFullEntitlement(adaptableModule) {
49
- return this.getEntitlementAccessLevelForModule(adaptableModule) == 'Full';
50
+ return this.getEntitlementAccessLevelForModule(adaptableModule) == GeneralConstants_1.ACCESS_LEVEL_FULL;
50
51
  }
51
52
  isModuleReadOnlyEntitlement(adaptableModule) {
52
- return this.getEntitlementAccessLevelForModule(adaptableModule) == 'ReadOnly';
53
+ return this.getEntitlementAccessLevelForModule(adaptableModule) == GeneralConstants_1.ACCESS_LEVEL_READ_ONLY;
53
54
  }
54
55
  }
55
56
  exports.EntitlementApiImpl = EntitlementApiImpl;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FormatColumnApiImpl = void 0;
4
4
  const tslib_1 = require("tslib");
5
+ const AdaptableFormatPresets_1 = require("../../AdaptableState/Common/AdaptableFormatPresets");
5
6
  const FormatColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/FormatColumnRedux"));
6
7
  const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
7
8
  const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
@@ -34,7 +35,10 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
34
35
  return undefined;
35
36
  }
36
37
  const formatColumn = formatColumns.find((fc) => fc.DisplayFormat != undefined);
37
- return formatColumn ? formatColumn.DisplayFormat : undefined;
38
+ // Resolve numeric preset names (e.g. 'Dollar') into the concrete
39
+ // AdaptableFormat object so external callers always receive a fully
40
+ // structured format.
41
+ return formatColumn ? (0, AdaptableFormatPresets_1.resolveDisplayFormat)(formatColumn.DisplayFormat) : undefined;
38
42
  }
39
43
  getSuspendedFormatColumns(config) {
40
44
  return this.getFormatColumns(config).filter((formatColumn) => formatColumn.IsSuspended);
@@ -104,10 +108,11 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
104
108
  return formatColumns.filter((fc) => this.getColumnScopeApi().scopeHasColumns(fc.Scope));
105
109
  }
106
110
  hasCustomDisplayFormatter(formatColumn) {
107
- if (!formatColumn || !formatColumn.DisplayFormat || !formatColumn.DisplayFormat.Options) {
111
+ const resolved = (0, AdaptableFormatPresets_1.resolveDisplayFormat)(formatColumn?.DisplayFormat);
112
+ if (!resolved || !resolved.Options) {
108
113
  return false;
109
114
  }
110
- const options = formatColumn.DisplayFormat.Options;
115
+ const options = resolved.Options;
111
116
  const columnCustomFormatters = options?.CustomDisplayFormats ?? [];
112
117
  if (!columnCustomFormatters?.length) {
113
118
  return false;
@@ -116,18 +116,7 @@ class GridApiImpl extends ApiBase_1.ApiBase {
116
116
  return transactionResult;
117
117
  }
118
118
  setCellValue(cellUpdateRequest) {
119
- const abColumn = this.getColumnApi().getColumnWithColumnId(cellUpdateRequest.columnId);
120
- if (!abColumn) {
121
- this.logWarn(`setCellValue() - column not found for columnId: ${cellUpdateRequest.columnId}`);
122
- return;
123
- }
124
- const rowNode = cellUpdateRequest.rowNode ?? this.getRowNodeForPrimaryKey(cellUpdateRequest.primaryKeyValue);
125
- if (!rowNode) {
126
- this.logWarn(`setCellValue() - rowNode not found for primaryKeyValue: ${cellUpdateRequest.primaryKeyValue}`);
127
- return;
128
- }
129
- this._adaptable.setDataValue(cellUpdateRequest.newValue, abColumn, cellUpdateRequest.primaryKeyValue, rowNode);
130
- this.refreshCell(rowNode, abColumn.columnId);
119
+ this._adaptable.updateCell(cellUpdateRequest);
131
120
  }
132
121
  setCellValues(cellUpdateRequests) {
133
122
  cellUpdateRequests?.forEach((cellUpdateRequest) => this.setCellValue(cellUpdateRequest));
@@ -8,6 +8,7 @@ const FormatHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/
8
8
  const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectFactory"));
9
9
  const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
10
10
  const AdaptableLogger_1 = require("../../agGrid/AdaptableLogger");
11
+ const AdaptableFormatPresets_1 = require("../../AdaptableState/Common/AdaptableFormatPresets");
11
12
  function getParentGroup(source) {
12
13
  if (!source) {
13
14
  return undefined;
@@ -355,11 +356,12 @@ class FormatColumnInternalApi extends ApiBase_1.ApiBase {
355
356
  if (!mostRelevantFormatColumn) {
356
357
  return headerName;
357
358
  }
358
- if (mostRelevantFormatColumn.DisplayFormat?.Formatter !== 'StringFormatter') {
359
+ const resolvedDisplayFormat = (0, AdaptableFormatPresets_1.resolveDisplayFormat)(mostRelevantFormatColumn.DisplayFormat);
360
+ if (resolvedDisplayFormat?.Formatter !== 'StringFormatter') {
359
361
  // headers are always strings, so we can only use StringFormatter
360
362
  return headerName;
361
363
  }
362
- const formattedHeaderName = this.getFormatColumnApi().internalApi.getStringFormattedValue(headerName, null, abColumn, mostRelevantFormatColumn.DisplayFormat.Options);
364
+ const formattedHeaderName = this.getFormatColumnApi().internalApi.getStringFormattedValue(headerName, null, abColumn, resolvedDisplayFormat.Options);
363
365
  return formattedHeaderName;
364
366
  }
365
367
  }
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.LayoutInternalApi = void 0;
4
4
  const tslib_1 = require("tslib");
5
+ const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
5
6
  const ModuleConstants_1 = require("../../Utilities/Constants/ModuleConstants");
6
7
  const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
7
8
  const ApiBase_1 = require("../Implementation/ApiBase");
@@ -47,10 +48,12 @@ class LayoutInternalApi extends ApiBase_1.ApiBase {
47
48
  layoutSupportedFeatures.ColumnFilters = false;
48
49
  layoutSupportedFeatures.GridFilter = false;
49
50
  }
50
- if (this.getEntitlementApi().getEntitlementAccessLevelForModule(ModuleConstants_1.ColumnFilterModuleId) == 'Hidden') {
51
+ if (this.getEntitlementApi().getEntitlementAccessLevelForModule(ModuleConstants_1.ColumnFilterModuleId) ==
52
+ GeneralConstants_1.ACCESS_LEVEL_HIDDEN) {
51
53
  layoutSupportedFeatures.GridFilter = false;
52
54
  }
53
- if (this.getEntitlementApi().getEntitlementAccessLevelForModule(ModuleConstants_1.GridFilterModuleId) == 'Hidden') {
55
+ if (this.getEntitlementApi().getEntitlementAccessLevelForModule(ModuleConstants_1.GridFilterModuleId) ==
56
+ GeneralConstants_1.ACCESS_LEVEL_HIDDEN) {
54
57
  layoutSupportedFeatures.GridFilter = false;
55
58
  }
56
59
  if (this._adaptable?.getAgGridRowModelType?.() !== 'clientSide') {
@@ -1246,8 +1246,8 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
1246
1246
  case SmartEditRedux.SMART_EDIT_APPLY: {
1247
1247
  const actionTyped = action;
1248
1248
  let thePreview = middlewareAPI.getState().Internal.SmartEdit.SmartEditPreviewInfo;
1249
- let newValues = PreviewHelper_1.PreviewHelper.GetCellUpdateRequestsFromPreview(thePreview, actionTyped.bypassValidationWarnings);
1250
- adaptable.api.gridApi.setCellValues(newValues);
1249
+ let cellUpdateRequests = PreviewHelper_1.PreviewHelper.GetCellUpdateRequestsFromPreview(thePreview, actionTyped.bypassValidationWarnings);
1250
+ adaptable.api.gridApi.setCellValues(cellUpdateRequests);
1251
1251
  adaptable.api.internalApi.hidePopupScreen();
1252
1252
  return next(action);
1253
1253
  }
@@ -1291,8 +1291,8 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
1291
1291
  case BulkUpdateRedux.BULK_UPDATE_APPLY: {
1292
1292
  const actionTyped = action;
1293
1293
  let thePreview = middlewareAPI.getState().Internal.BulkUpdate.BulkUpdatePreviewInfo;
1294
- let newValues = PreviewHelper_1.PreviewHelper.GetCellUpdateRequestsFromPreview(thePreview, actionTyped.bypassValidationWarnings);
1295
- adaptable.api.gridApi.setCellValues(newValues);
1294
+ let cellUpdateRequests = PreviewHelper_1.PreviewHelper.GetCellUpdateRequestsFromPreview(thePreview, actionTyped.bypassValidationWarnings);
1295
+ adaptable.api.gridApi.setCellValues(cellUpdateRequests);
1296
1296
  adaptable.api.internalApi.hidePopupScreen();
1297
1297
  return next(action);
1298
1298
  }
@@ -4,6 +4,7 @@ exports.AdaptableModuleBase = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const MenuItem_1 = require("../Utilities/MenuItem");
6
6
  const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/ArrayExtensions"));
7
+ const GeneralConstants_1 = require("../Utilities/Constants/GeneralConstants");
7
8
  /**
8
9
  * Base class for all strategies and does most of the work of creating menus
9
10
  */
@@ -35,11 +36,11 @@ class AdaptableModuleBase {
35
36
  }
36
37
  getViewAccessLevel() {
37
38
  // override where necessary (ex. only 'Full' accessLevel should be displayed)
38
- return 'ReadOnly';
39
+ return GeneralConstants_1.ACCESS_LEVEL_READ_ONLY;
39
40
  }
40
41
  getEditAccessLevel() {
41
42
  // override where necessary
42
- return 'Full';
43
+ return GeneralConstants_1.ACCESS_LEVEL_FULL;
43
44
  }
44
45
  getAgGridModuleDependencies() {
45
46
  // override where necessary
@@ -261,14 +262,14 @@ class AdaptableModuleBase {
261
262
  return returnValue;
262
263
  }
263
264
  hasRequiredAccessLevel(requiredAccessLevel) {
264
- if (this.AccessLevel === 'Hidden') {
265
+ if (this.AccessLevel === GeneralConstants_1.ACCESS_LEVEL_HIDDEN) {
265
266
  return false;
266
267
  }
267
- if (requiredAccessLevel === 'ReadOnly') {
268
- return this.AccessLevel === 'ReadOnly' || this.AccessLevel === 'Full';
268
+ if (requiredAccessLevel === GeneralConstants_1.ACCESS_LEVEL_READ_ONLY) {
269
+ return (this.AccessLevel === GeneralConstants_1.ACCESS_LEVEL_READ_ONLY || this.AccessLevel === GeneralConstants_1.ACCESS_LEVEL_FULL);
269
270
  }
270
- if (requiredAccessLevel === 'Full') {
271
- return this.AccessLevel === 'Full';
271
+ if (requiredAccessLevel === GeneralConstants_1.ACCESS_LEVEL_FULL) {
272
+ return this.AccessLevel === GeneralConstants_1.ACCESS_LEVEL_FULL;
272
273
  }
273
274
  // else requiredAccessLevel === 'Hidden' -- does NOT make sense unless a Module is programmatically disabled
274
275
  return false;
@@ -19,7 +19,7 @@ export declare class AlertModule extends AdaptableModuleBase implements ICellDat
19
19
  getModuleAdaptableObjects(config?: LayoutExtendedConfig): AdaptableObject[];
20
20
  getExplicitlyReferencedColumnIds(alertDefinition: AlertDefinition): string[];
21
21
  getReferencedNamedQueryNames(alertDefinition: AlertDefinition): string[];
22
- createContextMenuItems(menuContext: ContextMenuContext): 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">[];
22
+ createContextMenuItems(menuContext: ContextMenuContext): 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" | "comment-show" | "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" | "note-show" | "smart-edit-apply">[];
23
23
  private handleCellDataChanged;
24
24
  private handleRowDataChanged;
25
25
  private handleReactiveAlertTriggered;
@@ -7,7 +7,7 @@ import { AccessLevel, AdaptableApi } from '../types';
7
7
  export declare class BulkUpdateModule extends AdaptableModuleBase implements IBulkUpdateModule {
8
8
  constructor(api: AdaptableApi);
9
9
  getViewAccessLevel(): AccessLevel;
10
- createContextMenuItems(menuContext: ContextMenuContext): 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">[];
10
+ createContextMenuItems(menuContext: ContextMenuContext): 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" | "comment-show" | "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" | "note-show" | "smart-edit-apply">[];
11
11
  checkCorrectCellSelection(): BulkUpdateValidationResult;
12
12
  buildPreviewValues(bulkUpdateValue: any): PreviewInfo;
13
13
  }
@@ -8,12 +8,13 @@ const PreviewHelper_1 = require("../Utilities/Helpers/PreviewHelper");
8
8
  const StringExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/StringExtensions"));
9
9
  const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/ArrayExtensions"));
10
10
  const ObjectFactory_1 = tslib_1.__importDefault(require("../Utilities/ObjectFactory"));
11
+ const GeneralConstants_1 = require("../Utilities/Constants/GeneralConstants");
11
12
  class BulkUpdateModule extends AdaptableModuleBase_1.AdaptableModuleBase {
12
13
  constructor(api) {
13
14
  super(ModuleConstants.BulkUpdateModuleId, ModuleConstants.BulkUpdateFriendlyName, 'edit-table', 'BulkUpdatePopup', 'Update multiple cell simultaneously with a new or existing value', api);
14
15
  }
15
16
  getViewAccessLevel() {
16
- return 'Full';
17
+ return GeneralConstants_1.ACCESS_LEVEL_FULL;
17
18
  }
18
19
  createContextMenuItems(menuContext) {
19
20
  let menuItemShowPopup = undefined;
@@ -21,7 +21,7 @@ export declare class CalculatedColumnModule extends AdaptableModuleBase implemen
21
21
  getExplicitlyReferencedColumnIds(calculatedColumn: CalculatedColumn): string[];
22
22
  getReferencedNamedQueryNames(calculatedColumn: CalculatedColumn): string[];
23
23
  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
- 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">[];
24
+ 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" | "comment-show" | "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" | "note-show" | "smart-edit-apply">[];
25
25
  getTeamSharingAction(): TeamSharingImportInfo<CalculatedColumn>;
26
26
  toView(calculateColumn: CalculatedColumn): {
27
27
  items: AdaptableObjectItemView[];
@@ -22,7 +22,7 @@ export declare class CellSummaryModule extends AdaptableModuleBase implements IC
22
22
  getModuleUnavailableMessage(): string | undefined;
23
23
  getViewAccessLevel(): AccessLevel;
24
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">[];
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">[];
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" | "comment-show" | "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" | "note-show" | "smart-edit-apply">[];
26
26
  createCellSummaryInfo(selectedCellInfo: SelectedCellInfo): CellSummmaryInfo;
27
27
  private getNumberFormatOptions;
28
28
  private formatValue;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CellSummaryModule = void 0;
4
4
  const tslib_1 = require("tslib");
5
+ const GeneralConstants_1 = require("../Utilities/Constants/GeneralConstants");
5
6
  const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
6
7
  const ArrayExtensions_1 = require("../Utilities/Extensions/ArrayExtensions");
7
8
  const ObjectFactory_1 = tslib_1.__importDefault(require("../Utilities/ObjectFactory"));
@@ -30,7 +31,7 @@ class CellSummaryModule extends AdaptableModuleBase_1.AdaptableModuleBase {
30
31
  return undefined;
31
32
  }
32
33
  getViewAccessLevel() {
33
- return 'Full';
34
+ return GeneralConstants_1.ACCESS_LEVEL_FULL;
34
35
  }
35
36
  createColumnMenuItems(column) {
36
37
  if (!this.isModuleVisible()) {
@@ -7,6 +7,7 @@ const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/Mod
7
7
  const LayoutRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/LayoutRedux"));
8
8
  const InternalRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/InternalRedux"));
9
9
  const FilterStatusBarSubPanelPopover_1 = require("../View/Filter/FilterStatusBarSubPanelPopover");
10
+ const GeneralConstants_1 = require("../Utilities/Constants/GeneralConstants");
10
11
  const getLayoutFilterViewItems_1 = require("./Utilities/Layout/getLayoutFilterViewItems");
11
12
  class ColumnFilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
12
13
  constructor(api) {
@@ -56,7 +57,7 @@ class ColumnFilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
56
57
  }
57
58
  setModuleEntitlement() {
58
59
  if (!this.api.optionsApi.getFilterOptions().useAdaptableFiltering) {
59
- this.AccessLevel = 'Hidden';
60
+ this.AccessLevel = GeneralConstants_1.ACCESS_LEVEL_HIDDEN;
60
61
  }
61
62
  else {
62
63
  this.AccessLevel = this.api.entitlementApi.getEntitlementAccessLevelForModule(this.moduleInfo.ModuleName);
@@ -7,5 +7,5 @@ export declare class ColumnInfoModule extends AdaptableModuleBase implements IMo
7
7
  constructor(api: AdaptableApi);
8
8
  getViewAccessLevel(): AccessLevel;
9
9
  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">[];
10
- 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">[];
10
+ 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" | "comment-show" | "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" | "note-show" | "smart-edit-apply">[];
11
11
  }