@adaptabletools/adaptable 21.2.2-canary.0 → 21.2.2

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 (37) hide show
  1. package/README.md +4 -6
  2. package/package.json +1 -1
  3. package/src/AdaptableOptions/ExportOptions.d.ts +1 -2
  4. package/src/AdaptableOptions/FilterOptions.d.ts +3 -0
  5. package/src/AdaptableState/Common/AdaptableColumn.d.ts +6 -0
  6. package/src/AdaptableState/Common/DataUpdateConfig.d.ts +4 -4
  7. package/src/AdaptableState/Common/RowDataChangedInfo.d.ts +3 -0
  8. package/src/AdaptableState/InitialState.d.ts +1 -1
  9. package/src/AdaptableState/Selection/GridCell.d.ts +9 -0
  10. package/src/Api/CustomSortApi.d.ts +6 -1
  11. package/src/Api/Implementation/CustomSortApiImpl.d.ts +2 -1
  12. package/src/Api/Implementation/CustomSortApiImpl.js +5 -1
  13. package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -0
  14. package/src/Api/Implementation/LayoutApiImpl.js +82 -1
  15. package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -0
  16. package/src/Api/Implementation/ScheduleApiImpl.js +12 -0
  17. package/src/Api/Implementation/ShortcutApiImpl.d.ts +1 -0
  18. package/src/Api/Implementation/ShortcutApiImpl.js +4 -0
  19. package/src/Api/Implementation/StyledColumnApiImpl.d.ts +1 -0
  20. package/src/Api/Implementation/StyledColumnApiImpl.js +4 -0
  21. package/src/Api/LayoutApi.d.ts +7 -1
  22. package/src/Api/ScheduleApi.d.ts +5 -0
  23. package/src/Api/ShortcutApi.d.ts +5 -0
  24. package/src/Api/StyledColumnApi.d.ts +5 -0
  25. package/src/Redux/ActionsReducers/StyledColumnRedux.d.ts +6 -6
  26. package/src/Redux/ActionsReducers/StyledColumnRedux.js +16 -16
  27. package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +18 -17
  28. package/src/Utilities/Constants/DocumentationLinkConstants.js +18 -17
  29. package/src/Utilities/Services/ModuleService.js +37 -38
  30. package/src/agGrid/AdaptableLogger.d.ts +3 -0
  31. package/src/agGrid/AdaptableLogger.js +3 -0
  32. package/src/agGrid/index.d.ts +6 -0
  33. package/src/agGrid/index.js +6 -0
  34. package/src/env.js +2 -2
  35. package/src/metamodel/adaptable.metamodel.d.ts +57 -0
  36. package/src/metamodel/adaptable.metamodel.js +1 -1
  37. package/tsconfig.esm.tsbuildinfo +1 -1
package/README.md CHANGED
@@ -4,11 +4,11 @@ Repository for the vanilla version of AdapTable - the AG Grid extension develope
4
4
 
5
5
  AdapTable provides a huge range of Data Grid (and FDC3) features, which extend AG Grid, and allow advanced users to manage, edit and visualise their data in ways not previously possible.
6
6
 
7
- There are also [AdapTable React](https://docs.adaptabletools.com/guide/react-overview), [AdapTable Angular](https://docs.adaptabletools.com/guide/angular-overview) and [AdapTable Vue](https://docs.adaptabletools.com/guide/vue-overview) versions available for those who wish to access AdapTable using their preferred Framework.
7
+ There are also [AdapTable React](https://www.adaptabletools.com/docs/react-overview), [AdapTable Angular](https://www.adaptabletools.com/docs/angular-overview) and [AdapTable Vue](https://www.adaptabletools.com/docs/vue-overview) versions available for those who wish to access AdapTable using their preferred Framework.
8
8
 
9
9
  ## Documentation
10
10
 
11
- For full details on how to install, instantiate and reference AdapTable programmatically at run-time please read the [AdapTable Developer Documentation](https://docs.adaptabletools.com).
11
+ For full details on how to install, instantiate and reference AdapTable programmatically at run-time please read the [AdapTable Developer Documentation](https://www.adaptabletools.com/docs).
12
12
 
13
13
  ## Licenses
14
14
 
@@ -20,14 +20,12 @@ We can also make a trial license available for a short period of time to allow y
20
20
 
21
21
  **Note: The AdapTable license does not include an AG Grid license which must be bought separately**.
22
22
 
23
- Please contact [`sales@adaptabletools.com`](mailto:sales@adaptabletools.com) or see our [License Help Page](https://docs.adaptabletools.com/guide/buying-adaptable-licensing) for more information.
23
+ Please contact [`sales@adaptabletools.com`](mailto:sales@adaptabletools.com) or see our [License Help Page](https://www.adaptabletools.com/buy/buying-adaptable-licensing) for more information.
24
24
 
25
25
 
26
26
  ## Demos
27
27
 
28
- The [AdapTable Documentation](https://docs.adaptabletools.com) contains numerous demos that show the many different functionalities available in AdapTable.
29
-
30
- Additionally you can see a number of large demos at the [Adaptable Tools website](https://www.adaptabletools.com/demos).
28
+ The [AdapTable Documentation](https://www.adaptabletools.com/docs) contains numerous demos that show the many different functionalities available in AdapTable.
31
29
 
32
30
  ## Other AdapTable Resources
33
31
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable",
3
- "version": "21.2.2-canary.0",
3
+ "version": "21.2.2",
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",
@@ -363,8 +363,7 @@ export interface DataFormatDataType {
363
363
  date?: DataFormatType;
364
364
  }
365
365
  /**
366
- * Custom Export Parameters which extend AG Grid's base export parameters, allowing overriding of AdapTable's default export behaviour.
367
- * Use `ExcelExportParams` for Excel format exports and `CsvExportParams` for CSV, JSON and any custom format exports
366
+ * Custom Export Params extending AG Grid's base export params; allows overriding AdapTable default export
368
367
  */
369
368
  export type CustomExportParams = ExcelExportParams | CsvExportParams;
370
369
  /**
@@ -174,6 +174,9 @@ export interface IsRowFilterableContext<TData = any> extends BaseContext {
174
174
  */
175
175
  data: TData;
176
176
  }
177
+ /**
178
+ * AdapTable's Filter components: FilterBar or FilterForm
179
+ */
177
180
  export type AdaptableFilterComponentLocation = 'FilterBar' | 'FilterForm';
178
181
  /**
179
182
  * Context used for setting default Predicates for Column Filters
@@ -204,6 +204,9 @@ export interface AdaptableColumn<TData = any> extends AdaptableColumnBase {
204
204
  */
205
205
  isPivotTotalColumn: boolean;
206
206
  }
207
+ /**
208
+ * Key properties of a Column (used in Layout Editor)
209
+ */
207
210
  export interface AdaptableColumnProperties {
208
211
  sortable: boolean;
209
212
  filterable: boolean;
@@ -212,6 +215,9 @@ export interface AdaptableColumnProperties {
212
215
  pivotable: boolean;
213
216
  aggregatable: boolean;
214
217
  }
218
+ /**
219
+ * Summary of a Column including filters and all unique values
220
+ */
215
221
  export interface AdaptableColumnSummary {
216
222
  column: AdaptableColumn;
217
223
  columnFilter: ColumnFilter;
@@ -1,17 +1,17 @@
1
1
  /**
2
- * Object passed into Adaptable Grid Api data management methods
2
+ * Object used to configure GridApi row management methods
3
3
  */
4
4
  export interface DataUpdateConfig {
5
5
  /**
6
- * Whether data should be updated asynchronously
6
+ * Whether row operation should happen asynchronously
7
7
  */
8
8
  runAsync?: boolean;
9
9
  /**
10
- * Whether to flush async updates
10
+ * Whether to flush async operations
11
11
  */
12
12
  flushAsync?: boolean;
13
13
  /**
14
- * Callback function invoked when a batch successfully updates
14
+ * Callback function invoked when a batch successfully concludes
15
15
  */
16
16
  callback?: (res: any) => void;
17
17
  /**
@@ -3,6 +3,9 @@ import { IRowNode } from 'ag-grid-enterprise';
3
3
  * What row action triggered the Row Change: 'Add', 'Update', 'Delete' or 'Load'
4
4
  */
5
5
  export type RowDataChangeTrigger = 'Add' | 'Update' | 'Delete' | 'Load';
6
+ /**
7
+ * Info for RowDataChangedEvent, which rows changed and why
8
+ */
6
9
  export interface RowDataChangedInfo<TData = any> {
7
10
  /**
8
11
  * Timestamp of change occurrence (in milliseconds)
@@ -134,7 +134,7 @@ export interface PredefinedConfig {
134
134
  */
135
135
  CustomSort?: CustomSortState;
136
136
  /**
137
- * Large series of properties to give users full control over the look and feel of the *Dashboard* - the section above the grid with toolbars and buttons
137
+ * Large series of properties to give users full control over the look and feel of the *Dashboard* - the section (typically above the grid) with toolbars and buttons
138
138
  */
139
139
  Dashboard?: DashboardState;
140
140
  /**
@@ -54,6 +54,9 @@ export interface GridCell<TData = any> {
54
54
  */
55
55
  isRowGroupCell: boolean;
56
56
  }
57
+ /**
58
+ * Extended GridCell, props to show how often appears in data source and how often visible
59
+ */
57
60
  export interface GridCellWithCount extends GridCell {
58
61
  /**
59
62
  * How many times Cell appears in Data Source
@@ -64,6 +67,9 @@ export interface GridCellWithCount extends GridCell {
64
67
  */
65
68
  visibleCount?: number;
66
69
  }
70
+ /**
71
+ * Grid Cell used in Grouped Rows
72
+ */
67
73
  export interface GridCellWithChildren extends GridCell {
68
74
  /**
69
75
  * Children of Cell
@@ -74,6 +80,9 @@ export interface GridCellWithChildren extends GridCell {
74
80
  */
75
81
  leafChildrenCount?: number;
76
82
  }
83
+ /**
84
+ * Defines a Unique Cell Value (incl. how many times it appears in Grid)
85
+ */
77
86
  export interface UniqueGridCell<TData = any> {
78
87
  /**
79
88
  * Raw value of Cell
@@ -63,7 +63,12 @@ export interface CustomSortApi {
63
63
  * @param values Custom Sort values to use (replaces what was previously used)
64
64
  * @returns Custom Sort
65
65
  */
66
- editCustomSort(columnId: string, values: string[]): CustomSort;
66
+ editCustomSortValues(columnId: string, values: string[]): CustomSort;
67
+ /**
68
+ * Edits a Custom Sort
69
+ * @param customSort Custom Sort to Edit
70
+ */
71
+ editCustomSort(customSort: CustomSort): CustomSort;
67
72
  /**
68
73
  * Removes Custom Sort for a given ColumnId
69
74
  * @param column columnId on which to delete the Custom Sort
@@ -19,7 +19,8 @@ export declare class CustomSortApiImpl extends ApiBase implements CustomSortApi
19
19
  getCustomSortForColumn(columnId: string): CustomSort | undefined;
20
20
  addCustomSort(customSort: CustomSort): CustomSort;
21
21
  createCustomSort(columnId: string, values: string[]): CustomSort;
22
- editCustomSort(columnId: string, values: string[]): CustomSort;
22
+ editCustomSortValues(columnId: string, values: string[]): CustomSort;
23
+ editCustomSort(customSort: CustomSort): CustomSort;
23
24
  deleteCustomSort(column: string): void;
24
25
  suspendCustomSort(customSort: CustomSort): CustomSort;
25
26
  unSuspendCustomSort(customSort: CustomSort): CustomSort;
@@ -73,7 +73,7 @@ export class CustomSortApiImpl extends ApiBase {
73
73
  let customSort = { ColumnId: columnId, SortedValues: values };
74
74
  return this.addCustomSort(customSort);
75
75
  }
76
- editCustomSort(columnId, values) {
76
+ editCustomSortValues(columnId, values) {
77
77
  const previousCustomSort = this.getCustomSortForColumn(columnId);
78
78
  if (!previousCustomSort) {
79
79
  this.logWarn(`No custom sort defined for ${columnId}`);
@@ -86,6 +86,10 @@ export class CustomSortApiImpl extends ApiBase {
86
86
  this.dispatchAction(CustomSortRedux.CustomSortEdit(newCustomSort));
87
87
  return this.getCustomSortByColumn(columnId);
88
88
  }
89
+ editCustomSort(customSort) {
90
+ this.dispatchAction(CustomSortRedux.CustomSortEdit(customSort));
91
+ return this.getCustomSortByColumn(customSort.Uuid);
92
+ }
89
93
  deleteCustomSort(column) {
90
94
  let customSort = this.getCustomSortForColumn(column);
91
95
  if (customSort) {
@@ -26,6 +26,7 @@ export declare class LayoutApiImpl extends ApiBase implements LayoutApi {
26
26
  getLayoutByName(layoutName: string): Layout | null;
27
27
  createOrUpdateExtendedLayout(extendedLayoutInfo: ExtendedLayout): void;
28
28
  getExtendedLayoutByName(layoutName: string): ExtendedLayout | undefined;
29
+ cloneExtendedLayout(extendedLayoutToClone: ExtendedLayout, layoutName: string): ExtendedLayout | false;
29
30
  getLayouts(): Layout[];
30
31
  getLayoutById(id: Layout['Uuid']): Layout;
31
32
  saveCurrentLayout(): void;
@@ -242,6 +242,87 @@ export class LayoutApiImpl extends ApiBase {
242
242
  Extensions: extensions,
243
243
  };
244
244
  }
245
+ cloneExtendedLayout(extendedLayoutToClone, layoutName) {
246
+ // first clone the underlying Layout
247
+ const clonedLayout = this.cloneLayout(extendedLayoutToClone.Layout, layoutName);
248
+ if (clonedLayout == false) {
249
+ return false;
250
+ }
251
+ // Alerts
252
+ const alertExtensions = extendedLayoutToClone.Extensions.filter((e) => e.Module == 'Alert');
253
+ alertExtensions.forEach((le) => {
254
+ const alertDef = le.Object;
255
+ alertDef.Tags?.push(layoutName);
256
+ this.getAlertApi().editAlertDefinition(alertDef);
257
+ });
258
+ // Custom Sorts
259
+ const customSortExtensions = extendedLayoutToClone.Extensions.filter((e) => {
260
+ return e.Module == 'CustomSort';
261
+ });
262
+ customSortExtensions.forEach((le) => {
263
+ const customSort = le.Object;
264
+ customSort.Tags?.push(layoutName);
265
+ this.getCustomSortApi().editCustomSort(customSort);
266
+ });
267
+ // Flashing Cells
268
+ const flashingCellExtensions = extendedLayoutToClone.Extensions.filter((e) => {
269
+ return e.Module == 'FlashingCell';
270
+ });
271
+ flashingCellExtensions.forEach((le) => {
272
+ const flashingCellDef = le.Object;
273
+ flashingCellDef.Tags?.push(layoutName);
274
+ this.getFlashingCellApi().editFlashingCellDefinition(flashingCellDef);
275
+ });
276
+ // FormatColumns
277
+ const formatColumnExtensions = extendedLayoutToClone.Extensions.filter((e) => e.Module == 'FormatColumn');
278
+ formatColumnExtensions.forEach((le) => {
279
+ const formatCol = le.Object;
280
+ formatCol.Tags?.push(layoutName);
281
+ this.getFormatColumnApi().editFormatColumn(formatCol);
282
+ });
283
+ // Plus Minus
284
+ const plusMinusExtensions = extendedLayoutToClone.Extensions.filter((e) => {
285
+ return e.Module == 'PlusMinus';
286
+ });
287
+ plusMinusExtensions.forEach((le) => {
288
+ const plusMinusNudge = le.Object;
289
+ plusMinusNudge.Tags?.push(layoutName);
290
+ this.getPlusMinusApi().editPlusMinusNudge(plusMinusNudge);
291
+ });
292
+ // Schedule
293
+ const scheduleExtensions = extendedLayoutToClone.Extensions.filter((e) => {
294
+ return e.Module == 'Schedule';
295
+ });
296
+ scheduleExtensions.forEach((le) => {
297
+ const schedule = le.Object;
298
+ schedule.Tags?.push(layoutName);
299
+ this.getScheduleApi().editSchedule(schedule);
300
+ });
301
+ // Shortcut
302
+ const shortCutExtensions = extendedLayoutToClone.Extensions.filter((e) => {
303
+ return e.Module == 'Shortcut';
304
+ });
305
+ shortCutExtensions.forEach((le) => {
306
+ const shortcut = le.Object;
307
+ shortcut.Tags?.push(layoutName);
308
+ this.getShortcutApi().editShortcut(shortcut);
309
+ });
310
+ // StyledColumn
311
+ const styledColumnExtensions = extendedLayoutToClone.Extensions.filter((e) => {
312
+ return e.Module == 'StyledColumn';
313
+ });
314
+ styledColumnExtensions.forEach((le) => {
315
+ const styledColumn = le.Object;
316
+ styledColumn.Tags?.push(layoutName);
317
+ this.getStyledColumnApi().editStyledColumn(styledColumn);
318
+ });
319
+ // now create the new Extended Layout with the same extensions
320
+ const extendedLayout = {
321
+ Layout: clonedLayout,
322
+ Extensions: extendedLayoutToClone.Extensions,
323
+ };
324
+ return extendedLayout;
325
+ }
245
326
  getLayouts() {
246
327
  return this.getAdaptableState().Layout.Layouts ?? [];
247
328
  }
@@ -287,7 +368,7 @@ export class LayoutApiImpl extends ApiBase {
287
368
  }
288
369
  cloneLayout(layoutToClone, layoutName) {
289
370
  if (!this.doesLayoutExist(layoutToClone)) {
290
- this.logError("Cannot clone layout with Name: '" + layoutName + "' as other Layout does not exist");
371
+ this.logError("Cannot clone Layout with Name: '" + layoutName + "' as other Layout does not exist");
291
372
  return false;
292
373
  }
293
374
  const newLayout = {
@@ -23,6 +23,7 @@ export declare class ScheduleApiImpl extends ApiBase implements ScheduleApi {
23
23
  getReportSchedules(config?: LayoutExtendedConfig): ReportSchedule[];
24
24
  getActiveReportSchedules(): ReportSchedule[];
25
25
  getSuspendedReportSchedules(): ReportSchedule[];
26
+ editSchedule(schedule: BaseSchedule): BaseSchedule;
26
27
  addReportSchedule(schedule: ReportSchedule): ReportSchedule;
27
28
  editReportSchedule(schedule: ReportSchedule): ReportSchedule;
28
29
  deleteReportSchedule(schedule: ReportSchedule): void;
@@ -56,6 +56,18 @@ export class ScheduleApiImpl extends ApiBase {
56
56
  getSuspendedReportSchedules() {
57
57
  return this.getReportSchedules().filter((schedule) => schedule.IsSuspended);
58
58
  }
59
+ editSchedule(schedule) {
60
+ switch (schedule.ScheduleType) {
61
+ case 'ipushpull':
62
+ return this.editIPushPullSchedule(schedule);
63
+ case 'Reminder':
64
+ return this.editReminderSchedule(schedule);
65
+ case 'OpenFin':
66
+ return this.editOpenFinSchedule(schedule);
67
+ case 'Report':
68
+ return this.editReportSchedule(schedule);
69
+ }
70
+ }
59
71
  addReportSchedule(schedule) {
60
72
  this.dispatchAction(ScheduleRedux.ReportScheduleAdd(schedule));
61
73
  return this.getScheduleById(schedule.Uuid);
@@ -9,6 +9,7 @@ export declare class ShortcutApiImpl extends ApiBase implements ShortcutApi {
9
9
  getActiveShortcuts(config?: LayoutExtendedConfig): Shortcut[];
10
10
  getSuspendedShortcuts(config?: LayoutExtendedConfig): Shortcut[];
11
11
  addShortcut(shortcut: Shortcut): Shortcut;
12
+ editShortcut(shortcut: Shortcut): Shortcut;
12
13
  deleteShortcut(shortcut: Shortcut): void;
13
14
  deleteAllShortcuts(): void;
14
15
  suspendShortcut(shortcut: Shortcut): Shortcut;
@@ -22,6 +22,10 @@ export class ShortcutApiImpl extends ApiBase {
22
22
  this.dispatchAction(ShortcutRedux.ShortcutAdd(shortcut));
23
23
  return this.getShortcutById(shortcut.Uuid);
24
24
  }
25
+ editShortcut(shortcut) {
26
+ this.dispatchAction(ShortcutRedux.ShortcutEdit(shortcut));
27
+ return this.getShortcutById(shortcut.Uuid);
28
+ }
25
29
  deleteShortcut(shortcut) {
26
30
  this.dispatchAction(ShortcutRedux.ShortcutDelete(shortcut));
27
31
  }
@@ -16,6 +16,7 @@ export declare class StyledColumnApiImpl extends ApiBase implements StyledColumn
16
16
  deleteStyledColumn(styledColumn: StyledColumn): void;
17
17
  deleteAllStyledColumns(): void;
18
18
  addStyledColumn(styledColumn: StyledColumn): void;
19
+ editStyledColumn(styledColumn: StyledColumn): StyledColumn;
19
20
  isSparklineStyleStyledColumn(column: AdaptableColumn): boolean;
20
21
  getActiveStyledColumnForColumn(column: AdaptableColumn): StyledColumn | undefined;
21
22
  hasPercentBarStyle(columnId: string): boolean;
@@ -34,6 +34,10 @@ export class StyledColumnApiImpl extends ApiBase {
34
34
  addStyledColumn(styledColumn) {
35
35
  this.dispatchAction(StyledColumnRedux.StyledColumnAdd(styledColumn));
36
36
  }
37
+ editStyledColumn(styledColumn) {
38
+ this.dispatchAction(StyledColumnRedux.StyledColumnEdit(styledColumn));
39
+ return this.getStyledColumnById(styledColumn.Uuid);
40
+ }
37
41
  isSparklineStyleStyledColumn(column) {
38
42
  if (!column) {
39
43
  return false;
@@ -64,9 +64,15 @@ export interface LayoutApi {
64
64
  getExtendedLayoutByName(layoutName: string): ExtendedLayout | undefined;
65
65
  /**
66
66
  * Creates (or Updates) an Extended Layout
67
- * @param extendedLayout extendedLayout to Create
67
+ * @param extendedLayout ExtendedLayout to Create
68
68
  */
69
69
  createOrUpdateExtendedLayout(extendedLayout: ExtendedLayout): void;
70
+ /**
71
+ * Clones an Extended Layout
72
+ * @param extendedLayoutToClone ExtendedLayout to Clone
73
+ * @param layoutName New name for Layout being cloned
74
+ */
75
+ cloneExtendedLayout(extendedLayoutToClone: ExtendedLayout, layoutName: string): ExtendedLayout | false;
70
76
  /**
71
77
  * Retrieves all Layouts in Adaptable State
72
78
  * @returns layouts
@@ -94,6 +94,11 @@ export interface ScheduleApi {
94
94
  * @returns report schedule
95
95
  */
96
96
  editReportSchedule(reportSchedule: ReportSchedule): ReportSchedule;
97
+ /**
98
+ * Edits a Schedule
99
+ * @param schedule Schedule to Edit
100
+ */
101
+ editSchedule(schedule: BaseSchedule): BaseSchedule;
97
102
  /**
98
103
  * Deletes Report / Export Schedule
99
104
  * @param ReportSchedule Report / export Schedule to delete
@@ -40,6 +40,11 @@ export interface ShortcutApi {
40
40
  * @param shortcut Shortcut to delete
41
41
  */
42
42
  deleteShortcut(shortcut: Shortcut): void;
43
+ /**
44
+ * Edits Shortcut in state
45
+ * @param shortcut Shortcut to edit
46
+ */
47
+ editShortcut(shortcut: Shortcut): Shortcut;
43
48
  /**
44
49
  * Suspends Shortcut definition
45
50
  * @param shortcut Shortcut to suspend
@@ -41,6 +41,11 @@ export interface StyledColumnApi {
41
41
  * @param styledColumn
42
42
  */
43
43
  deleteStyledColumn(styledColumn: StyledColumn): void;
44
+ /**
45
+ * Edits a Styled Column
46
+ * @param styledColumn Styled Column to edit
47
+ */
48
+ editStyledColumn(styledColumn: StyledColumn): StyledColumn;
44
49
  /**
45
50
  * Delete all Styled Columns in State
46
51
  */
@@ -58,13 +58,13 @@ export interface StyledColumnUnSuspendAllAction extends Redux.Action {
58
58
  export interface StyledColumnReadyAction extends Redux.Action {
59
59
  StyledColumnState: StyledColumnState;
60
60
  }
61
- export declare const StyledColumnAdd: (formatColumn: StyledColumn) => StyledColumnAddAction;
62
- export declare const StyledColumnEdit: (formatColumn: StyledColumn) => StyledColumnEditAction;
63
- export declare const StyledColumnDelete: (formatColumn: StyledColumn) => StyledColumnDeleteAction;
61
+ export declare const StyledColumnAdd: (styledColumn: StyledColumn) => StyledColumnAddAction;
62
+ export declare const StyledColumnEdit: (styledColumn: StyledColumn) => StyledColumnEditAction;
63
+ export declare const StyledColumnDelete: (styledColumn: StyledColumn) => StyledColumnDeleteAction;
64
64
  export declare const StyledColumnDeleteAll: () => StyledColumnDeleteAllAction;
65
- export declare const StyledColumnSuspend: (formatColumn: StyledColumn) => StyledColumnSuspendAction;
66
- export declare const StyledColumnUnSuspend: (formatColumn: StyledColumn) => StyledColumnSuspendAction;
65
+ export declare const StyledColumnSuspend: (styledColumn: StyledColumn) => StyledColumnSuspendAction;
66
+ export declare const StyledColumnUnSuspend: (styledColumn: StyledColumn) => StyledColumnSuspendAction;
67
67
  export declare const StyledColumnSuspendAll: () => StyledColumnSuspendAllAction;
68
68
  export declare const StyledColumnUnSuspendAll: () => StyledColumnUnSuspendAllAction;
69
- export declare const StyledColumnReady: (formatColumnState: StyledColumnState) => StyledColumnReadyAction;
69
+ export declare const StyledColumnReady: (styledColumnState: StyledColumnState) => StyledColumnReadyAction;
70
70
  export declare const StyledColumnReducer: Redux.Reducer<StyledColumnState>;
@@ -37,28 +37,28 @@ export const STYLED_COLUMN_SUSPEND_ALL = 'STYLED_COLUMN_SUSPEND_ALL';
37
37
  * @ReduxAction All StyledColumn Modules are unsuspended, or activated
38
38
  */
39
39
  export const STYLED_COLUMN_UNSUSPEND_ALL = 'STYLED_COLUMN_UNSUSPEND_ALL';
40
- export const StyledColumnAdd = (formatColumn) => ({
40
+ export const StyledColumnAdd = (styledColumn) => ({
41
41
  type: STYLED_COLUMN_ADD,
42
- StyledColumn: formatColumn,
42
+ StyledColumn: styledColumn,
43
43
  });
44
- export const StyledColumnEdit = (formatColumn) => ({
44
+ export const StyledColumnEdit = (styledColumn) => ({
45
45
  type: STYLED_COLUMN_EDIT,
46
- StyledColumn: formatColumn,
46
+ StyledColumn: styledColumn,
47
47
  });
48
- export const StyledColumnDelete = (formatColumn) => ({
48
+ export const StyledColumnDelete = (styledColumn) => ({
49
49
  type: STYLED_COLUMN_DELETE,
50
- StyledColumn: formatColumn,
50
+ StyledColumn: styledColumn,
51
51
  });
52
52
  export const StyledColumnDeleteAll = () => ({
53
53
  type: STYLED_COLUMN_DELETE_ALL,
54
54
  });
55
- export const StyledColumnSuspend = (formatColumn) => ({
55
+ export const StyledColumnSuspend = (styledColumn) => ({
56
56
  type: STYLED_COLUMN_SUSPEND,
57
- StyledColumn: formatColumn,
57
+ StyledColumn: styledColumn,
58
58
  });
59
- export const StyledColumnUnSuspend = (formatColumn) => ({
59
+ export const StyledColumnUnSuspend = (styledColumn) => ({
60
60
  type: STYLED_COLUMN_UNSUSPEND,
61
- StyledColumn: formatColumn,
61
+ StyledColumn: styledColumn,
62
62
  });
63
63
  export const StyledColumnSuspendAll = () => ({
64
64
  type: STYLED_COLUMN_SUSPEND_ALL,
@@ -66,22 +66,22 @@ export const StyledColumnSuspendAll = () => ({
66
66
  export const StyledColumnUnSuspendAll = () => ({
67
67
  type: STYLED_COLUMN_UNSUSPEND_ALL,
68
68
  });
69
- export const StyledColumnReady = (formatColumnState) => ({
69
+ export const StyledColumnReady = (styledColumnState) => ({
70
70
  type: STYLED_COLUMN_READY,
71
- StyledColumnState: formatColumnState,
71
+ StyledColumnState: styledColumnState,
72
72
  });
73
73
  const initialState = {
74
74
  StyledColumns: EMPTY_ARRAY,
75
75
  };
76
76
  export const StyledColumnReducer = (state = initialState, action) => {
77
- let formatColumns;
77
+ let styledColumns;
78
78
  switch (action.type) {
79
79
  case STYLED_COLUMN_ADD: {
80
80
  const actionStyledColumn = action.StyledColumn;
81
81
  AdaptableHelper.addAdaptableObjectPrimitives(actionStyledColumn);
82
- formatColumns = [].concat(state.StyledColumns);
83
- formatColumns.push(actionStyledColumn);
84
- return { ...state, StyledColumns: formatColumns };
82
+ styledColumns = [].concat(state.StyledColumns);
83
+ styledColumns.push(actionStyledColumn);
84
+ return { ...state, StyledColumns: styledColumns };
85
85
  }
86
86
  case STYLED_COLUMN_EDIT:
87
87
  const actionStyledColumn = action.StyledColumn;
@@ -1,17 +1,18 @@
1
- export declare const HOST_URL_DOCS = "https://docs.adaptabletools.com";
2
- export declare const ExpressionEditorDocsLink = "https://docs.adaptabletools.com/guide/ui-expression-editor";
3
- export declare const BooleanQueryDocsLink = "https://docs.adaptabletools.com/guide/adaptable-ql-expression-standard";
4
- export declare const ScalarQueryDocsLink = "https://docs.adaptabletools.com/guide/adaptable-ql-expression-standard";
5
- export declare const ObservableQueryDocsLink = "https://docs.adaptabletools.com/guide/adaptable-ql-expression-observable";
6
- export declare const AggregatedBooleanQueryDocsLink = "https://docs.adaptabletools.com/guide/adaptable-ql-expression-aggregation";
7
- export declare const AggregatedScalarQueryDocsLink = "https://docs.adaptabletools.com/guide/adaptable-ql-expression-aggregation";
8
- export declare const CumulativeAggregatedScalarQueryDocsLink = "https://docs.adaptabletools.com/guide/adaptable-ql-expression-cumulative";
9
- export declare const QuantileAggregatedScalarQueryDocsLink = "https://docs.adaptabletools.com/guide/adaptable-ql-expression-quantile";
10
- export declare const PredicateDocsLink = "https://docs.adaptabletools.com/guide/adaptable-predicate";
11
- export declare const PrimaryKeyDocsLink = "https://docs.adaptabletools.com/guide/getting-started-primary-key";
12
- export declare const LicenseDocsLink = "https://docs.adaptabletools.com/guide/licensing";
13
- export declare const AdaptableOptionsDocsLink = "https://docs.adaptabletools.com/guide/reference-options-overview";
14
- export declare const AgGridModulesDocsLink = "https://docs.adaptabletools.com/guide/dev-guide-aggrid-modules-overview";
15
- export declare const AlertMessageDocsLink = "https://docs.adaptabletools.com/guide/handbook-alerting-message";
16
- export declare const FormatColumnPlaceholderDocsLink = "https://docs.adaptabletools.com/guide/handbook-column-formatting-display-format-placeholder";
17
- export declare const AgGridRequiredModulesDocsLink = "https://docs.adaptabletools.com/guide/dev-guide-aggrid-modules-overview#mandatory-modules";
1
+ export declare const HOST_URL_ROOT = "https://www.adaptabletools.com";
2
+ export declare const HOST_URL_DOCS = "https://www.adaptabletools.com/docs";
3
+ export declare const ExpressionEditorDocsLink = "https://www.adaptabletools.com/docs/ui-expression-editor";
4
+ export declare const BooleanQueryDocsLink = "https://www.adaptabletools.com/docs/adaptable-ql-expression-standard";
5
+ export declare const ScalarQueryDocsLink = "https://www.adaptabletools.com/docs/adaptable-ql-expression-standard";
6
+ export declare const ObservableQueryDocsLink = "https://www.adaptabletools.com/docs/adaptable-ql-expression-observable";
7
+ export declare const AggregatedBooleanQueryDocsLink = "https://www.adaptabletools.com/docs/adaptable-ql-expression-aggregation";
8
+ export declare const AggregatedScalarQueryDocsLink = "https://www.adaptabletools.com/docs/adaptable-ql-expression-aggregation";
9
+ export declare const CumulativeAggregatedScalarQueryDocsLink = "https://www.adaptabletools.com/docs/adaptable-ql-expression-cumulative";
10
+ export declare const QuantileAggregatedScalarQueryDocsLink = "https://www.adaptabletools.com/docs/adaptable-ql-expression-quantile";
11
+ export declare const PredicateDocsLink = "https://www.adaptabletools.com/docs/adaptable-predicate";
12
+ export declare const PrimaryKeyDocsLink = "https://www.adaptabletools.com/docs/getting-started-primary-key";
13
+ export declare const LicenseDocsLink = "https://www.adaptabletools.com/buy/buying-adaptable-licensing";
14
+ export declare const AdaptableOptionsDocsLink = "https://www.adaptabletools.com/docs/technical-reference-adaptable-options";
15
+ export declare const AgGridModulesDocsLink = "https://www.adaptabletools.com/docs/dev-guide-aggrid-modules-overview";
16
+ export declare const AlertMessageDocsLink = "https://www.adaptabletools.com/docs/handbook-alerting-message";
17
+ export declare const FormatColumnPlaceholderDocsLink = "https://www.adaptabletools.com/docs/handbook-column-formatting-display-format-placeholder";
18
+ export declare const AgGridRequiredModulesDocsLink = "https://www.adaptabletools.com/docs/dev-guide-aggrid-modules-overview#mandatory-modules";
@@ -1,18 +1,19 @@
1
- export const HOST_URL_DOCS = 'https://docs.adaptabletools.com';
1
+ export const HOST_URL_ROOT = 'https://www.adaptabletools.com';
2
+ export const HOST_URL_DOCS = `${HOST_URL_ROOT}/docs`;
2
3
  //export const HOST_URL_DOCS = 'http://localhost:3000';
3
- export const ExpressionEditorDocsLink = `${HOST_URL_DOCS}/guide/ui-expression-editor`;
4
- export const BooleanQueryDocsLink = `${HOST_URL_DOCS}/guide/adaptable-ql-expression-standard`;
5
- export const ScalarQueryDocsLink = `${HOST_URL_DOCS}/guide/adaptable-ql-expression-standard`;
6
- export const ObservableQueryDocsLink = `${HOST_URL_DOCS}/guide/adaptable-ql-expression-observable`;
7
- export const AggregatedBooleanQueryDocsLink = `${HOST_URL_DOCS}/guide/adaptable-ql-expression-aggregation`;
8
- export const AggregatedScalarQueryDocsLink = `${HOST_URL_DOCS}/guide/adaptable-ql-expression-aggregation`;
9
- export const CumulativeAggregatedScalarQueryDocsLink = `${HOST_URL_DOCS}/guide/adaptable-ql-expression-cumulative`;
10
- export const QuantileAggregatedScalarQueryDocsLink = `${HOST_URL_DOCS}/guide/adaptable-ql-expression-quantile`;
11
- export const PredicateDocsLink = `${HOST_URL_DOCS}/guide/adaptable-predicate`;
12
- export const PrimaryKeyDocsLink = `${HOST_URL_DOCS}/guide/getting-started-primary-key`;
13
- export const LicenseDocsLink = `${HOST_URL_DOCS}/guide/licensing`;
14
- export const AdaptableOptionsDocsLink = `${HOST_URL_DOCS}/guide/reference-options-overview`;
15
- export const AgGridModulesDocsLink = `${HOST_URL_DOCS}/guide/dev-guide-aggrid-modules-overview`;
16
- export const AlertMessageDocsLink = `${HOST_URL_DOCS}/guide/handbook-alerting-message`;
17
- export const FormatColumnPlaceholderDocsLink = `${HOST_URL_DOCS}/guide/handbook-column-formatting-display-format-placeholder`;
18
- export const AgGridRequiredModulesDocsLink = `${HOST_URL_DOCS}/guide/dev-guide-aggrid-modules-overview#mandatory-modules`;
4
+ export const ExpressionEditorDocsLink = `${HOST_URL_DOCS}/ui-expression-editor`;
5
+ export const BooleanQueryDocsLink = `${HOST_URL_DOCS}/adaptable-ql-expression-standard`;
6
+ export const ScalarQueryDocsLink = `${HOST_URL_DOCS}/adaptable-ql-expression-standard`;
7
+ export const ObservableQueryDocsLink = `${HOST_URL_DOCS}/adaptable-ql-expression-observable`;
8
+ export const AggregatedBooleanQueryDocsLink = `${HOST_URL_DOCS}/adaptable-ql-expression-aggregation`;
9
+ export const AggregatedScalarQueryDocsLink = `${HOST_URL_DOCS}/adaptable-ql-expression-aggregation`;
10
+ export const CumulativeAggregatedScalarQueryDocsLink = `${HOST_URL_DOCS}/adaptable-ql-expression-cumulative`;
11
+ export const QuantileAggregatedScalarQueryDocsLink = `${HOST_URL_DOCS}/adaptable-ql-expression-quantile`;
12
+ export const PredicateDocsLink = `${HOST_URL_DOCS}/adaptable-predicate`;
13
+ export const PrimaryKeyDocsLink = `${HOST_URL_DOCS}/getting-started-primary-key`;
14
+ export const LicenseDocsLink = `${HOST_URL_ROOT}/buy/buying-adaptable-licensing`;
15
+ export const AdaptableOptionsDocsLink = `${HOST_URL_DOCS}/technical-reference-adaptable-options`;
16
+ export const AgGridModulesDocsLink = `${HOST_URL_DOCS}/dev-guide-aggrid-modules-overview`;
17
+ export const AlertMessageDocsLink = `${HOST_URL_DOCS}/handbook-alerting-message`;
18
+ export const FormatColumnPlaceholderDocsLink = `${HOST_URL_DOCS}/handbook-column-formatting-display-format-placeholder`;
19
+ export const AgGridRequiredModulesDocsLink = `${HOST_URL_DOCS}/dev-guide-aggrid-modules-overview#mandatory-modules`;