@adaptabletools/adaptable 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 +35 -3
  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 +181 -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 +4 -0
  73. package/src/Utilities/Extensions/NumberExtensions.d.ts +2 -0
  74. package/src/Utilities/Extensions/NumberExtensions.js +8 -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 +2 -2
  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 +1 -0
  140. package/themes/dark.css +3 -1
  141. package/tsconfig.esm.tsbuildinfo +1 -1
  142. package/index.css.map +0 -1
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! tailwindcss v4.2.3 | MIT License | https://tailwindcss.com */
1
+ /*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
2
2
  @layer properties;
3
3
  @layer adaptable.reset, adaptable.theming, adaptable.components, adaptable.utilities, adaptable.theme;
4
4
  @layer adaptable.reset {
@@ -316,6 +316,9 @@
316
316
  .twa\:mr-4 {
317
317
  margin-right: calc(var(--ab-base-space) * 4);
318
318
  }
319
+ .twa\:mr-6 {
320
+ margin-right: calc(var(--ab-base-space) * 6);
321
+ }
319
322
  .twa\:mr-\[2px\] {
320
323
  margin-right: 2px;
321
324
  }
@@ -3675,7 +3678,6 @@
3675
3678
  --ab-color-inputborder: var(--ab-color-primarydark);
3676
3679
  --ab-color-inputcolor: var(--ab-color-text-on-primary);
3677
3680
  --ab-color-error: #dc3545;
3678
- --ab-color-errorlight: #ffd3d2;
3679
3681
  --ab-color-warn: #eb9316;
3680
3682
  --ab-color-info: #17a2b8;
3681
3683
  --ab-color-success: #419641;
@@ -3686,12 +3688,10 @@
3686
3688
  --ab-color-text-on-error: white;
3687
3689
  --ab-color-text-on-info: white;
3688
3690
  --ab-color-text-on-warn: white;
3689
- --ab-color-action-add: #2966a8;
3690
3691
  --ab-color-action-edit: #17a2b8;
3691
3692
  --ab-color-action-share: #eb9316;
3692
3693
  --ab-color-action-delete: #dc3545;
3693
3694
  --ab-color-action-clone: #419641;
3694
- --ab-color-text-on-add: white;
3695
3695
  --ab-color-text-on-edit: white;
3696
3696
  --ab-color-text-on-share: white;
3697
3697
  --ab-color-text-on-delete: white;
@@ -3704,9 +3704,9 @@
3704
3704
  --ab-color-text-on-primary: #656565;
3705
3705
  --ab-color-primary-foreground: var(--ab-color-text-on-primary);
3706
3706
  --ab-color-text-on-primarydark: var(--ab-color-text-on-primary);
3707
- --ab-color-blue: blue;
3708
3707
  --ab-color-focus: var(--ab-color-accent);
3709
- --ab-gridheader--filtered__background: var(--ab-color-primary);
3708
+ --ab-color-filtered-columns: var(--ab-color-text-on-primary);
3709
+ --ab-color-filtered-columns-background: var(--ab-color-primary);
3710
3710
  --ab-color-shadow: rgb(0 0 0 / 0.2);
3711
3711
  --ab-shadow-sm: 0 0px 3px 0 var(--ab-color-shadow), 0 1px 2px -1px var(--ab-color-shadow);
3712
3712
  --ab-shadow-md: 0 -2px 6px -1px var(--ab-color-shadow), 0 2px 4px -2px var(--ab-color-shadow);
@@ -3746,7 +3746,8 @@
3746
3746
  }
3747
3747
  .ab-Grid.ab-Grid--indicate-filtered-columns .ag-header-cell-filtered {
3748
3748
  font-weight: bolder !important;
3749
- background: var(--ab-gridheader--filtered__background) !important;
3749
+ color: var(--ab-color-filtered-columns) !important;
3750
+ background: var(--ab-color-filtered-columns-background) !important;
3750
3751
  }
3751
3752
  .ab-Grid .ag-pivot-mode-panel {
3752
3753
  display: none !important;
@@ -6766,5 +6767,3 @@
6766
6767
  }
6767
6768
  }
6768
6769
  }
6769
-
6770
- /*# sourceMappingURL=index.css.map */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable",
3
- "version": "22.1.0",
3
+ "version": "22.1.1-canary.0",
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",
@@ -4,7 +4,7 @@ import { AdaptableColumn } from '../AdaptableState/Common/AdaptableColumn';
4
4
  import { ColumnSort } from '../AdaptableState/Common/ColumnSort';
5
5
  import { DataRowConfig, DataUpdateConfig } from '../AdaptableState/Common/DataUpdateConfig';
6
6
  import { Layout } from '../AdaptableState/LayoutState';
7
- import { GridCell, GridCellWithChildren } from '../AdaptableState/Selection/GridCell';
7
+ import { GridCell, GridCellWithChildren, CellUpdateRequest } from '../AdaptableState/Selection/GridCell';
8
8
  import { SelectedCellInfo } from '../AdaptableState/Selection/SelectedCellInfo';
9
9
  import { AdaptableTheme } from '../AdaptableState/ThemeState';
10
10
  import { IAdaptableStore } from '../Redux/Store/Interface/IAdaptableStore';
@@ -206,7 +206,7 @@ export interface IAdaptable {
206
206
  forPlugins(callback: (plugin: AdaptablePlugin) => any): void;
207
207
  getPluginProperty(pluginId: string, propertyName: string, ...args: any): any;
208
208
  getPlugin(pluginId: string): AdaptablePlugin;
209
- setDataValue(value: any, column: AdaptableColumn, primaryKeyValue: any, rowNode?: IRowNode): void;
209
+ updateCell(cellUpdateRequest: CellUpdateRequest): void;
210
210
  getFirstRowNode(): IRowNode | undefined;
211
211
  getFirstDisplayedRowNode(): IRowNode | undefined;
212
212
  forAllRowNodesDo(func: (rowNode: IRowNode) => void, config?: {
@@ -42,7 +42,6 @@ export interface AdaptableOptions<TData = any, TContext = Record<string, any>> {
42
42
  * Identifier for this instance of AdapTable
43
43
  *
44
44
  * @defaultValue 'adaptable_id_${random_number}'
45
- * @gridInfoItem
46
45
  * @noCodeItem
47
46
  */
48
47
  adaptableId?: string;
@@ -50,14 +49,12 @@ export interface AdaptableOptions<TData = any, TContext = Record<string, any>> {
50
49
  * Identifier used as localStorage persistence key for AdaptableState
51
50
  *
52
51
  * @defaultValue `adaptableId` value
53
- * @gridInfoItem
54
52
  */
55
53
  adaptableStateKey?: string;
56
54
  /**
57
55
  * Will autogenerate a Primary Key; only use as a last resort if no unique column is available, as limits some Adaptable functionalities
58
56
  *
59
57
  * @defaultValue false
60
- * @gridInfoItem
61
58
  */
62
59
  autogeneratePrimaryKey?: boolean;
63
60
  /**
@@ -66,6 +63,8 @@ export interface AdaptableOptions<TData = any, TContext = Record<string, any>> {
66
63
  licenseKey?: string;
67
64
  /**
68
65
  * Application-specific context object - is included by AdapTable in all callbacks and Events
66
+ *
67
+ * @defaultValue {}
69
68
  */
70
69
  adaptableContext?: TContext;
71
70
  /**
@@ -78,14 +77,12 @@ export interface AdaptableOptions<TData = any, TContext = Record<string, any>> {
78
77
  * Name of Column in AdapTable guaranteed to contain unique values
79
78
  *
80
79
  * @defaultValue n/a (Mandatory)
81
- * @gridInfoItem
82
80
  */
83
81
  primaryKey: string;
84
82
  /**
85
83
  * Name of current AdapTable user
86
84
  *
87
85
  * @defaultValue 'anonymous'
88
- * @gridInfoItem
89
86
  */
90
87
  userName?: string;
91
88
  /**
@@ -95,7 +92,6 @@ export interface AdaptableOptions<TData = any, TContext = Record<string, any>> {
95
92
  /**
96
93
  * Options for managing Alerts in AdapTable
97
94
  *
98
- * @gridInfoContainer
99
95
  * @noCodeContainer
100
96
  */
101
97
  alertOptions?: AlertOptions<TData>;
@@ -120,7 +116,6 @@ export interface AdaptableOptions<TData = any, TContext = Record<string, any>> {
120
116
  /**
121
117
  * Options for managing AdapTable Column Menu
122
118
  *
123
- * @gridInfoContainer
124
119
  */
125
120
  columnMenuOptions?: ColumnMenuOptions<TData>;
126
121
  /**
@@ -134,7 +129,6 @@ export interface AdaptableOptions<TData = any, TContext = Record<string, any>> {
134
129
  /**
135
130
  * Options for managing AdapTable Context Menu
136
131
  *
137
- * @gridInfoContainer
138
132
  */
139
133
  contextMenuOptions?: ContextMenuOptions<TData>;
140
134
  /**
@@ -144,14 +138,12 @@ export interface AdaptableOptions<TData = any, TContext = Record<string, any>> {
144
138
  /**
145
139
  * Options for managing the Dashboard in AdapTable
146
140
  *
147
- * @gridInfoContainer
148
141
  * @noCodeContainer
149
142
  */
150
143
  dashboardOptions?: DashboardOptions;
151
144
  /**
152
145
  * Options to manage Data Change History Module which provides an overview of all data changes
153
146
  *
154
- * @gridInfoContainer
155
147
  * @noCodeContainer
156
148
  */
157
149
  dataChangeHistoryOptions?: DataChangeHistoryOptions<TData>;
@@ -166,19 +158,16 @@ export interface AdaptableOptions<TData = any, TContext = Record<string, any>> {
166
158
  /**
167
159
  * Options related to Editing in AdapTable including Server Validation
168
160
  *
169
- * @gridInfoContainer
170
161
  */
171
162
  editOptions?: EditOptions<TData>;
172
163
  /**
173
164
  * Options for managing Entitlements
174
165
  *
175
- * @gridInfoContainer
176
166
  */
177
167
  entitlementOptions?: EntitlementOptions;
178
168
  /**
179
169
  * Options for managing Exporting and Reports in AdapTable
180
170
  *
181
- * @gridInfoContainer
182
171
  */
183
172
  exportOptions?: ExportOptions<TData>;
184
173
  /**
@@ -193,7 +182,6 @@ export interface AdaptableOptions<TData = any, TContext = Record<string, any>> {
193
182
  /**
194
183
  * Options for managing Flashing Cells - primarily default values
195
184
  *
196
- * @gridInfoContainer
197
185
  */
198
186
  flashingCellOptions?: FlashingCellOptions;
199
187
  /**
@@ -207,7 +195,6 @@ export interface AdaptableOptions<TData = any, TContext = Record<string, any>> {
207
195
  /**
208
196
  * Options related to Layouts
209
197
  *
210
- * @gridInfoContainer
211
198
  * @noCodeContainer
212
199
  */
213
200
  layoutOptions?: LayoutOptions;
@@ -218,7 +205,6 @@ export interface AdaptableOptions<TData = any, TContext = Record<string, any>> {
218
205
  /**
219
206
  * Options for managing Notifications in AdapTable
220
207
  *
221
- * @gridInfoContainer
222
208
  * @noCodeContainer
223
209
  */
224
210
  notificationsOptions?: NotificationsOptions;
@@ -229,7 +215,6 @@ export interface AdaptableOptions<TData = any, TContext = Record<string, any>> {
229
215
  /**
230
216
  * Options for managing Search related functions in AdapTable
231
217
  *
232
- * @gridInfoContainer
233
218
  * @noCodeContainer
234
219
  */
235
220
  quickSearchOptions?: QuickSearchOptions<TData>;
@@ -240,7 +225,6 @@ export interface AdaptableOptions<TData = any, TContext = Record<string, any>> {
240
225
  /**
241
226
  * Setting panel options
242
227
  *
243
- * @gridInfoContainer
244
228
  * @noCodeContainer
245
229
  */
246
230
  settingsPanelOptions?: SettingsPanelOptions;
@@ -251,20 +235,17 @@ export interface AdaptableOptions<TData = any, TContext = Record<string, any>> {
251
235
  /**
252
236
  * Options for managing 'Team Sharing' which allows users to create Adaptable Objects and share with colleagues
253
237
  *
254
- * @gridInfoContainer
255
238
  */
256
239
  teamSharingOptions?: TeamSharingOptions;
257
240
  /**
258
241
  * Options related to managing the Tool Panel elements in AdapTable
259
242
  *
260
- * @gridInfoContainer
261
243
  * @noCodeContainer
262
244
  */
263
245
  toolPanelOptions?: ToolPanelOptions;
264
246
  /**
265
247
  * Options for managing the User Interface elements of AdapTable, i.e. Action Columns, Color Palette etc.
266
248
  *
267
- * @gridInfoContainer
268
249
  */
269
250
  userInterfaceOptions?: UserInterfaceOptions<TData>;
270
251
  /**
@@ -11,7 +11,6 @@ export interface AlertOptions<TData = any> {
11
11
  * How many alerts held in State at any one time; when limit is breached, oldest alert will be removed
12
12
  *
13
13
  * @defaultValue 20
14
- * @gridInfoItem
15
14
  * @noCodeItem
16
15
  */
17
16
  maxAlertsInStore?: number;
@@ -19,14 +18,12 @@ export interface AlertOptions<TData = any> {
19
18
  * How long (in ms) a Cell will be highlighted when an Alert fires
20
19
  *
21
20
  * @defaultValue 2000
22
- * @gridInfoItem
23
21
  */
24
22
  cellHighlightDuration?: number;
25
23
  /**
26
24
  * How long (in ms) a Row will be highlighted when an Alert Fires
27
25
  *
28
26
  * @defaultValue 4000
29
- * @gridInfoItem
30
27
  */
31
28
  rowHighlightDuration?: number;
32
29
  /**
@@ -47,7 +44,6 @@ export interface AlertOptions<TData = any> {
47
44
  * Whether Alert rule is evaluated against the `rawValue` or `formattedValue` of the changed cell data
48
45
  *
49
46
  * @defaultValue 'rawValue'
50
- * @gridInfoItem
51
47
  */
52
48
  dataChangeDetectionPolicy?: DataChangeDetectionPolicy;
53
49
  /**
@@ -62,7 +58,6 @@ export interface AlertOptions<TData = any> {
62
58
  * Shows Alert if Primary Key column in Adaptable Options is not present or incorrect
63
59
  *
64
60
  * @defaultValue false
65
- * @gridInfoItem
66
61
  * @noCodeItem
67
62
  * @uiLabel Show Missing Primary Key Warning
68
63
  */
@@ -10,6 +10,8 @@ export interface CellSummaryOptions<TData = any> {
10
10
  customCellSummaryOperations?: CustomCellSummaryOperation<TData>[];
11
11
  /**
12
12
  * Numeric format to use for summary value; a Format Column DisplayFormat will take precedence
13
+ *
14
+ * @defaultValue { FractionDigits: 2 }
13
15
  */
14
16
  numericDisplayFormat?: NumberFormatterOptions | ((columnContext: AdaptableColumnContext) => NumberFormatterOptions);
15
17
  }
@@ -21,6 +21,8 @@ export interface ChartingOptions {
21
21
  agGridContainerName?: string;
22
22
  /**
23
23
  * Set of properties for managing behaviour of external (i.e non AG Grid) charts
24
+ *
25
+ * @defaultValue {}
24
26
  */
25
27
  externalChartingOptions?: ExternalChartingOptions;
26
28
  }
@@ -23,7 +23,6 @@ export interface ColumnOptions {
23
23
  * Log warning to console if AdapTable cannot find a column
24
24
  *
25
25
  * @defaultValue true
26
- * @gridInfoItem
27
26
  * @noCodeItem
28
27
  */
29
28
  showMissingColumnsWarning?: boolean;
@@ -31,7 +30,6 @@ export interface ColumnOptions {
31
30
  * Appends the name of the Column Group to a Column's Friendly Name
32
31
  *
33
32
  * @defaultValue false
34
- * @gridInfoItem
35
33
  * @noCodeItem
36
34
  */
37
35
  addColumnGroupToColumnFriendlyName?: boolean;
@@ -27,6 +27,12 @@ export interface CommentOptions<TData = any> {
27
27
  * @defaultValue true
28
28
  */
29
29
  showPopupCloseButton?: boolean;
30
+ /**
31
+ * Whether to show Comments by hovering (default) or via context menu
32
+ *
33
+ * @defaultValue 'hover'
34
+ */
35
+ showCommentAction?: 'hover' | 'menu';
30
36
  }
31
37
  /**
32
38
  * Context used when determining if a cell can show Comments
@@ -44,37 +44,31 @@ export interface ContainerOptions {
44
44
  /**
45
45
  * Div containing AdapTable; element Id, CSS Selector, HTMLElement, or function returning one of these
46
46
  * @defaultValue "adaptable"
47
- * @gridInfoItem
48
47
  */
49
48
  adaptableContainer?: AdaptableContainerValue | ((context: InitContainerContext) => AdaptableContainerValue);
50
49
  /**
51
50
  * Div containing AG Grid instance; element Id, CSS Selector, HTMLElement, or function returning one of these.
52
51
  * @defaultValue "grid"
53
- * @gridInfoItem
54
52
  */
55
53
  agGridContainer?: AdaptableContainerValue | ((context: InitContainerContext) => AdaptableContainerValue);
56
54
  /**
57
55
  * Name of div where popups appear;element Id, CSS Selector, HTMLElement, or function returning one of these
58
56
  * @defaultValue undefined (centre of screen)
59
- * @gridInfoItem
60
57
  */
61
58
  modalContainer?: AdaptableContainerValue | ((context: ContainerContext) => AdaptableContainerValue);
62
59
  /**
63
60
  * Div to show System Status Messages; elementId, CSS Selector, HTMLElement, or function returning one of these
64
61
  * @defaultValue undefined
65
- * @gridInfoItem
66
62
  */
67
63
  systemStatusContainer?: AdaptableContainerValue | ((context: ContainerContext) => AdaptableContainerValue);
68
64
  /**
69
65
  * Div to display Alerts; elementId, CSS Selector, HTMLElement, or function returning one of these
70
66
  * @defaultValue undefined
71
- * @gridInfoItem
72
67
  */
73
68
  alertContainer?: AdaptableContainerValue | ((context: ContainerContext) => AdaptableContainerValue);
74
69
  /**
75
70
  * Div to render a Transposed View; elementId, CSS Selector, HTMLElement, or function returning one of these
76
71
  * @defaultValue undefined (rendered in a draggable popup window)
77
- * @gridInfoItem
78
72
  */
79
73
  transposedViewContainer?: AdaptableContainerValue | ((context: ContainerContext) => AdaptableContainerValue);
80
74
  }
@@ -10,7 +10,6 @@ export interface DashboardOptions {
10
10
  * Whether the Dashboard can be floated; if true (the default), double-clicking Dashboard puts it in float mode
11
11
  *
12
12
  * @defaultValue true
13
- * @gridInfoItem
14
13
  * @noCodeItem
15
14
  */
16
15
  canFloat?: boolean;
@@ -18,7 +17,6 @@ export interface DashboardOptions {
18
17
  * Shows Quick Search input in Dashboard Header
19
18
  *
20
19
  * @defaultValue true
21
- * @gridInfoItem
22
20
  * @noCodeItem
23
21
  */
24
22
  showQuickSearchInHeader?: boolean;
@@ -8,7 +8,6 @@ export interface DataChangeHistoryOptions<TData = any> {
8
8
  * Make Data Change History active by default
9
9
  *
10
10
  * @defaultValue false
11
- * @gridInfoItem
12
11
  * @noCodeItem
13
12
  */
14
13
  activeByDefault?: boolean;
@@ -16,7 +15,6 @@ export interface DataChangeHistoryOptions<TData = any> {
16
15
  * Function specifying which data changes to include in Data Change History
17
16
  *
18
17
  * @defaultValue undefined (all data changes are logged)
19
- * @gridInfoItem
20
18
  */
21
19
  showDataChange?: (cellDataChangedInfo: CellDataChangedInfo<TData>) => boolean;
22
20
  /**
@@ -6,6 +6,8 @@ import { FormContext } from '../AdaptableState/Common/FormContext';
6
6
  export interface DataSetOptions<TData = any> {
7
7
  /**
8
8
  * Collection of Data Sets to provide data to AdapTable
9
+ *
10
+ * @defaultValue []
9
11
  */
10
12
  dataSets?: DataSet[];
11
13
  }
@@ -1,6 +1,6 @@
1
1
  import * as GeneralConstants from '../Utilities/Constants/GeneralConstants';
2
2
  import UIHelper, { getHexForName, GRAY, GREEN, RED } from '../View/UIHelper';
3
- import { EMPTY_STRING, EMPTY_ARRAY, DEFAULT_DATE_FORMAT_PATTERN_WITH_TIME, SYSTEM_REPORT_NAMES, SYSTEM_REPORT_FORMATS, SYSTEM_EXPORT_DESTINATIONS, } from '../Utilities/Constants/GeneralConstants';
3
+ import { ACCESS_LEVEL_FULL, EMPTY_STRING, EMPTY_ARRAY, DEFAULT_DATE_FORMAT_PATTERN_WITH_TIME, SYSTEM_REPORT_NAMES, SYSTEM_REPORT_FORMATS, SYSTEM_EXPORT_DESTINATIONS, } from '../Utilities/Constants/GeneralConstants';
4
4
  import { SystemAlertPredicateIds, SystemBadgeStylePredicateIds, SystemFilterPredicateIds, SystemFlashingCellPredicateIds, SystemFormatColumnPredicateIds, } from '../AdaptableState/Common/AdaptablePredicate';
5
5
  import * as ModuleConstants from '../Utilities/Constants/ModuleConstants';
6
6
  import { addUuidsToInitialState } from '../Utilities/Helpers/AdaptableHelper';
@@ -25,6 +25,7 @@ const DefaultAdaptableOptions = {
25
25
  commandHandlers: undefined,
26
26
  alertMessageText: undefined,
27
27
  showMissingPrimaryKeyAlert: false,
28
+ alertMessageHeader: undefined,
28
29
  },
29
30
  calendarOptions: { holidays: undefined },
30
31
  cellSummaryOptions: {
@@ -37,12 +38,14 @@ const DefaultAdaptableOptions = {
37
38
  saveChartBehaviour: 'none',
38
39
  agGridContainerName: GeneralConstants.AG_GRID_CHART_WINDOW,
39
40
  externalChartingOptions: {},
41
+ chartContainers: undefined,
40
42
  },
41
43
  columnOptions: {
42
44
  columnFriendlyName: undefined,
43
45
  columnTypes: EMPTY_ARRAY,
44
46
  showMissingColumnsWarning: true,
45
47
  addColumnGroupToColumnFriendlyName: false,
48
+ columnHeader: undefined,
46
49
  },
47
50
  columnMenuOptions: {
48
51
  customColumnMenu: undefined,
@@ -50,6 +53,10 @@ const DefaultAdaptableOptions = {
50
53
  commentOptions: {
51
54
  showPopupCloseButton: true,
52
55
  dateFormat: DEFAULT_DATE_FORMAT_PATTERN_WITH_TIME,
56
+ isCellCommentable: undefined,
57
+ loadCommentThreads: undefined,
58
+ persistCommentThreads: undefined,
59
+ showCommentAction: 'hover',
53
60
  },
54
61
  containerOptions: {
55
62
  adaptableContainer: 'adaptable',
@@ -57,6 +64,7 @@ const DefaultAdaptableOptions = {
57
64
  modalContainer: undefined,
58
65
  systemStatusContainer: undefined,
59
66
  alertContainer: undefined,
67
+ transposedViewContainer: undefined,
60
68
  },
61
69
  contextMenuOptions: {
62
70
  customContextMenu: undefined,
@@ -77,6 +85,9 @@ const DefaultAdaptableOptions = {
77
85
  },
78
86
  dataImportOptions: {
79
87
  fileHandlers: undefined,
88
+ textHandler: undefined,
89
+ validate: undefined,
90
+ handleImportedData: undefined,
80
91
  },
81
92
  dataSetOptions: { dataSets: EMPTY_ARRAY },
82
93
  editOptions: {
@@ -85,9 +96,10 @@ const DefaultAdaptableOptions = {
85
96
  isCellEditable: undefined,
86
97
  smartEditCustomOperations: undefined,
87
98
  customEditColumnValues: undefined,
99
+ showSelectCellEditor: undefined,
88
100
  },
89
101
  entitlementOptions: {
90
- defaultAccessLevel: 'Full',
102
+ defaultAccessLevel: ACCESS_LEVEL_FULL,
91
103
  moduleEntitlements: undefined,
92
104
  },
93
105
  exportOptions: {
@@ -103,6 +115,8 @@ const DefaultAdaptableOptions = {
103
115
  csvSeparator: ',',
104
116
  skipColumnHeaders: false,
105
117
  excelSheetName: 'Sheet 1',
118
+ isColumnExportable: undefined,
119
+ getDetailRows: undefined,
106
120
  },
107
121
  expressionOptions: {
108
122
  evaluateAdaptableQLExternally: undefined,
@@ -116,6 +130,12 @@ const DefaultAdaptableOptions = {
116
130
  performExpressionValidation: true,
117
131
  maxTimeframeSize: 28800000, // 8 hours
118
132
  caseSensitiveExpressions: false,
133
+ customAggregatedFunctions: undefined,
134
+ customBooleanFunctions: undefined,
135
+ customQueryVariables: undefined,
136
+ customScalarFunctions: undefined,
137
+ fields: undefined,
138
+ isColumnQueryable: undefined,
119
139
  },
120
140
  fdc3Options: {
121
141
  enableLogging: false,
@@ -147,6 +167,8 @@ const DefaultAdaptableOptions = {
147
167
  enableFilterOnSpecialColumns: true,
148
168
  useAdaptableFiltering: true,
149
169
  showDatePicker: true,
170
+ isRowFilterable: undefined,
171
+ customInFilterValues: undefined,
150
172
  columnFilterOptions: {
151
173
  indicateFilteredColumns: true,
152
174
  manuallyApplyColumnFilter: false,
@@ -155,7 +177,6 @@ const DefaultAdaptableOptions = {
155
177
  defaultDateColumnFilter: 'On',
156
178
  defaultArrayColumnFilter: 'In',
157
179
  hideQuickFilterDropdown: undefined,
158
- hideQuickFilterInput: undefined,
159
180
  quickFilterDebounce: 250,
160
181
  quickFilterHeight: null,
161
182
  showQuickFilter: true,
@@ -182,6 +203,8 @@ const DefaultAdaptableOptions = {
182
203
  customDisplayFormatters: undefined,
183
204
  },
184
205
  layoutOptions: {
206
+ layoutCreationDefaultProperties: undefined,
207
+ pivotPreviewColumns: undefined,
185
208
  layoutViewOptions: {
186
209
  maxColumnsToDisplay: 10,
187
210
  },
@@ -194,6 +217,8 @@ const DefaultAdaptableOptions = {
194
217
  noteOptions: {
195
218
  showPopupCloseButton: true,
196
219
  dateFormat: DEFAULT_DATE_FORMAT_PATTERN_WITH_TIME,
220
+ isCellNotable: undefined,
221
+ showNoteAction: 'hover',
197
222
  },
198
223
  notificationsOptions: {
199
224
  maxNotifications: 3,
@@ -224,6 +249,7 @@ const DefaultAdaptableOptions = {
224
249
  filterGridAfterQuickSearch: false,
225
250
  isQuickSearchCaseSensitive: false,
226
251
  getCellSearchText: undefined,
252
+ isCellSearchable: undefined,
227
253
  },
228
254
  rowFormOptions: {
229
255
  autoHandle: true,
@@ -244,6 +270,10 @@ const DefaultAdaptableOptions = {
244
270
  alwaysShowInDashboard: false,
245
271
  alwaysShowInToolPanel: false,
246
272
  showModuleIcons: true,
273
+ position: undefined,
274
+ size: undefined,
275
+ customSettingsPanels: undefined,
276
+ gridInfoTabs: ['Grid Options', 'Grid Summary', 'Grid State'],
247
277
  },
248
278
  stateOptions: {
249
279
  debounceStateDelay: 400,
@@ -274,6 +304,8 @@ const DefaultAdaptableOptions = {
274
304
  alternativeModuleNames: undefined,
275
305
  applicationIcon: undefined,
276
306
  useCustomMacLikeScrollbars: false,
307
+ customIcons: undefined,
308
+ objectTags: undefined,
277
309
  loadingScreenOptions: {
278
310
  showLoadingScreen: true,
279
311
  loadingScreenDelay: 200,
@@ -14,7 +14,6 @@ export interface EditOptions<TData = any> {
14
14
  * Whether to display message after Server Validation runs
15
15
  *
16
16
  * @defaultValue true
17
- * @gridInfoItem
18
17
  */
19
18
  displayServerValidationMessages?: boolean;
20
19
  /**
@@ -8,14 +8,12 @@ export interface EntitlementOptions {
8
8
  /**
9
9
  * Returns either collection of `Entitlements`, or a function to invoke when an Entitlement is required
10
10
  *
11
- * @gridInfoItem
12
11
  */
13
12
  moduleEntitlements?: Entitlement[] | ((entitlementContext: EntitlementContext) => AccessLevel | undefined);
14
13
  /**
15
14
  * AccessLevel to use when an Entitlement is not explicitly set; can be hardcoded value or a function to invoke
16
15
  *
17
16
  * @defaultValue 'Full'
18
- * @gridInfoItem
19
17
  */
20
18
  defaultAccessLevel?: AccessLevel | ((defaultAccessLevelContext: DefaultAccessLevelContext) => AccessLevel);
21
19
  }
@@ -18,7 +18,6 @@ export interface ExportOptions<TData = any> {
18
18
  * Optional custom format for Date columns when exporting
19
19
  *
20
20
  * @defaultValue undefined
21
- * @gridInfoItem
22
21
  */
23
22
  exportDateFormat?: string | ((context: ExportDateFormatContext<TData>) => string);
24
23
  /**
@@ -29,28 +28,24 @@ export interface ExportOptions<TData = any> {
29
28
  * System Reports to use; leave unset for all, empty array for none
30
29
  *
31
30
  * @defaultValue 'All Data', 'Current Layout', 'Selected Data',
32
- * @gridInfoItem
33
31
  */
34
32
  systemReportNames?: SystemReportName[] | ((context: SystemReportNamesContext) => SystemReportName[]);
35
33
  /**
36
34
  * System Report Formats to use; leave unset for all, empty array for none
37
35
  *
38
36
  * @defaultValue 'Excel', 'VisualExcel', 'CSV', 'JSON'
39
- * @gridInfoItem
40
37
  */
41
38
  systemReportFormats?: SystemReportFormat[] | ((context: SystemReportFormatsContext) => SystemReportFormat[]);
42
39
  /**
43
40
  * Export destinations to use; leave unset for all, empty array for none
44
41
  *
45
42
  * @defaultValue 'Download', 'Clipboard'
46
- * @gridInfoItem
47
43
  */
48
44
  systemExportDestinations?: SystemExportDestination[] | ((context: SystemExportDestinationsContext) => SystemExportDestination[]);
49
45
  /**
50
46
  * Whether to add a timestamp as a suffix to exported file name
51
47
  *
52
48
  * @defaultValue false
53
- * @gridInfoItem
54
49
  */
55
50
  appendFileTimestamp?: boolean;
56
51
  /**
@@ -67,7 +62,6 @@ export interface ExportOptions<TData = any> {
67
62
  * Separator for CSV exports
68
63
  *
69
64
  * @defaultValue ','
70
- * @gridInfoItem
71
65
  */
72
66
  csvSeparator?: string | ((csvSeparatorContext: BaseExportContext) => string);
73
67
  /**
@@ -91,7 +85,7 @@ export interface ExportOptions<TData = any> {
91
85
  /**
92
86
  * Provides a custom name for the Excel sheet when exporting to Excel
93
87
  *
94
- * @defaultValue 'Sheet1'
88
+ * @defaultValue 'Sheet 1'
95
89
  */
96
90
  excelSheetName?: string | ((excelSheetNameContext: BaseExportContext) => string);
97
91
  }