@adaptabletools/adaptable 15.3.1 → 15.3.3-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 (156) hide show
  1. package/base.css +57 -2
  2. package/base.css.map +1 -1
  3. package/bundle.cjs.js +157 -157
  4. package/index.css +83 -2
  5. package/index.css.map +1 -1
  6. package/package.json +1 -1
  7. package/publishTimestamp.d.ts +1 -1
  8. package/publishTimestamp.js +1 -1
  9. package/src/AdaptableInterfaces/IAdaptable.d.ts +4 -0
  10. package/src/AdaptableOptions/ActionOptions.d.ts +6 -1
  11. package/src/AdaptableOptions/EditOptions.d.ts +35 -6
  12. package/src/AdaptableOptions/EntitlementOptions.d.ts +3 -2
  13. package/src/AdaptableOptions/ExportOptions.d.ts +1 -1
  14. package/src/AdaptableOptions/FilterOptions.d.ts +9 -3
  15. package/src/AdaptableOptions/LayoutOptions.d.ts +1 -1
  16. package/src/Api/GridApi.d.ts +11 -0
  17. package/src/Api/Implementation/CalculatedColumnApiImpl.js +12 -1
  18. package/src/Api/Implementation/GridApiImpl.d.ts +4 -0
  19. package/src/Api/Implementation/GridApiImpl.js +8 -0
  20. package/src/Api/Implementation/StyledColumnApiImpl.d.ts +1 -0
  21. package/src/Api/Implementation/StyledColumnApiImpl.js +12 -0
  22. package/src/Api/Internal/StyledColumnInternalApi.d.ts +3 -1
  23. package/src/Api/Internal/StyledColumnInternalApi.js +24 -0
  24. package/src/Api/StyledColumnApi.d.ts +5 -0
  25. package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +1 -2
  26. package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
  27. package/src/PredefinedConfig/Common/AdaptablePredicate.js +5 -5
  28. package/src/PredefinedConfig/Common/AdaptableStyle.d.ts +8 -0
  29. package/src/PredefinedConfig/Common/Enums.js +1 -0
  30. package/src/PredefinedConfig/StyledColumnState.d.ts +37 -5
  31. package/src/Redux/Store/AdaptableReduxMerger.js +1 -1
  32. package/src/Strategy/BulkUpdateModule.js +1 -1
  33. package/src/Strategy/CalculatedColumnModule.js +1 -1
  34. package/src/Strategy/CellSummaryModule.js +1 -1
  35. package/src/Strategy/CustomSortModule.js +1 -1
  36. package/src/Strategy/DashboardModule.js +2 -2
  37. package/src/Strategy/DataChangeHistoryModule.js +1 -1
  38. package/src/Strategy/FilterModule.js +1 -1
  39. package/src/Strategy/FlashingCellModule.js +1 -1
  40. package/src/Strategy/FormatColumnModule.js +42 -3
  41. package/src/Strategy/FreeTextColumnModule.js +1 -1
  42. package/src/Strategy/GridInfoModule.js +2 -2
  43. package/src/Strategy/LayoutModule.js +7 -6
  44. package/src/Strategy/PlusMinusModule.js +1 -1
  45. package/src/Strategy/QueryModule.js +1 -1
  46. package/src/Strategy/QuickSearchModule.js +1 -1
  47. package/src/Strategy/ShortcutModule.js +1 -1
  48. package/src/Strategy/SmartEditModule.js +1 -1
  49. package/src/Strategy/StateManagementModule.js +1 -1
  50. package/src/Strategy/StyledColumnModule.d.ts +2 -0
  51. package/src/Strategy/StyledColumnModule.js +132 -59
  52. package/src/Strategy/SystemStatusModule.js +1 -1
  53. package/src/Strategy/TeamSharingModule.js +1 -1
  54. package/src/Strategy/ToolPanelModule.js +1 -1
  55. package/src/Utilities/Constants/GeneralConstants.d.ts +2 -0
  56. package/src/Utilities/Constants/GeneralConstants.js +4 -2
  57. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +1 -0
  58. package/src/Utilities/Helpers/StyleHelper.js +19 -0
  59. package/src/Utilities/ObjectFactory.d.ts +3 -1
  60. package/src/Utilities/ObjectFactory.js +14 -1
  61. package/src/Utilities/Services/EntitlementService.js +7 -4
  62. package/src/Utilities/Services/ValidationService.js +13 -2
  63. package/src/View/Alert/Wizard/AlertButtonsEditor.js +1 -1
  64. package/src/View/Charting/ShowChartButton.js +1 -1
  65. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +1 -1
  66. package/src/View/Components/Buttons/ButtonClear.js +1 -1
  67. package/src/View/Components/Buttons/ButtonClose.js +1 -1
  68. package/src/View/Components/Buttons/ButtonConfigure.js +1 -1
  69. package/src/View/Components/Buttons/ButtonDelete.js +1 -1
  70. package/src/View/Components/Buttons/ButtonExpand.js +1 -1
  71. package/src/View/Components/Buttons/ButtonLogin.js +1 -1
  72. package/src/View/Components/Buttons/ButtonPreviewDelete.js +1 -1
  73. package/src/View/Components/FilterForm/QuickFilterForm.js +10 -2
  74. package/src/View/Components/Forms/AdaptableFormControlTextClear.js +1 -1
  75. package/src/View/Components/ListBox/ListBoxFilterSortComponent.js +1 -1
  76. package/src/View/Components/Panels/ToolPanelSettingsPanel.js +1 -1
  77. package/src/View/Components/PredicateEditor/PredicateEditor.d.ts +1 -0
  78. package/src/View/Components/PredicateEditor/PredicateEditor.js +24 -16
  79. package/src/View/Components/StyleComponent.d.ts +7 -0
  80. package/src/View/Components/StyleComponent.js +68 -16
  81. package/src/View/Components/ValueSelector/index.js +1 -1
  82. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +8 -6
  83. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +18 -10
  84. package/src/View/Layout/Wizard/sections/ColumnsSection.js +3 -3
  85. package/src/View/StateManagement/StateManagementViewPanel.js +1 -1
  86. package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.d.ts +7 -0
  87. package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +108 -0
  88. package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +15 -14
  89. package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +44 -21
  90. package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +17 -9
  91. package/src/View/StyledColumn/Wizard/StyledColumnWizardSettingsSection.js +1 -1
  92. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.d.ts +5 -0
  93. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +29 -0
  94. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +25 -5
  95. package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +15 -4
  96. package/src/View/Theme/ThemeEditor.js +1 -1
  97. package/src/agGrid/Adaptable.d.ts +10 -1
  98. package/src/agGrid/Adaptable.js +69 -26
  99. package/src/agGrid/BadgeRenderer.d.ts +4 -0
  100. package/src/agGrid/BadgeRenderer.js +59 -0
  101. package/src/agGrid/PercentBarRenderer.js +37 -17
  102. package/src/agGrid/agGridHelper.d.ts +1 -0
  103. package/src/agGrid/agGridHelper.js +4 -0
  104. package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.js +1 -1
  105. package/src/components/Badge/index.d.ts +8 -0
  106. package/src/components/Badge/index.js +18 -0
  107. package/src/components/Dashboard/DashboardToolbar.js +2 -2
  108. package/src/components/Datepicker/index.js +1 -1
  109. package/src/components/DragAndDropContext/TabList.js +1 -1
  110. package/src/components/Dropdown/index.js +1 -1
  111. package/src/components/DropdownButton/index.js +1 -1
  112. package/src/components/FileDroppable/index.js +1 -1
  113. package/src/components/IconSelector/IconSelector.d.ts +7 -0
  114. package/src/components/IconSelector/IconSelector.js +42 -0
  115. package/src/components/IconSelector/index.d.ts +1 -0
  116. package/src/components/IconSelector/index.js +4 -0
  117. package/src/components/OverlayTrigger/index.js +1 -0
  118. package/src/components/Toggle/Toggle.d.ts +8 -0
  119. package/src/components/Toggle/Toggle.js +15 -0
  120. package/src/components/Toggle/ToggleGroup.d.ts +2 -0
  121. package/src/components/Toggle/ToggleGroup.js +10 -0
  122. package/src/components/Toggle/index.d.ts +2 -0
  123. package/src/components/Toggle/index.js +5 -0
  124. package/src/components/icons/DefaultIcon.js +1 -1
  125. package/src/components/icons/align-center.js +7 -0
  126. package/src/components/icons/align-left.d.ts +3 -0
  127. package/src/components/icons/align-left.js +7 -0
  128. package/src/components/icons/align-right.d.ts +3 -0
  129. package/src/components/icons/align-right.js +7 -0
  130. package/src/components/icons/badge.d.ts +3 -0
  131. package/src/components/icons/badge.js +7 -0
  132. package/src/components/icons/bold.d.ts +3 -0
  133. package/src/components/icons/bold.js +7 -0
  134. package/src/components/icons/case-lower.d.ts +3 -0
  135. package/src/components/icons/case-lower.js +7 -0
  136. package/src/components/icons/case-sentence.d.ts +3 -0
  137. package/src/components/icons/case-sentence.js +8 -0
  138. package/src/components/icons/case-upper.d.ts +3 -0
  139. package/src/components/icons/case-upper.js +7 -0
  140. package/src/components/icons/gradient.d.ts +3 -0
  141. package/src/components/icons/gradient.js +7 -0
  142. package/src/components/icons/index.js +76 -70
  143. package/src/components/icons/italic.d.ts +3 -0
  144. package/src/components/icons/{clear.js → italic.js} +2 -2
  145. package/src/components/icons/overline.d.ts +3 -0
  146. package/src/components/icons/overline.js +7 -0
  147. package/src/components/icons/strikethrough.d.ts +3 -0
  148. package/src/components/icons/strikethrough.js +7 -0
  149. package/src/components/icons/underline.d.ts +3 -0
  150. package/src/components/icons/underline.js +7 -0
  151. package/src/metamodel/adaptable.metamodel.d.ts +47 -6
  152. package/src/metamodel/adaptable.metamodel.js +1 -1
  153. package/src/types.d.ts +4 -3
  154. package/version.d.ts +1 -1
  155. package/version.js +1 -1
  156. /package/src/components/icons/{clear.d.ts → align-center.d.ts} +0 -0
@@ -78,6 +78,9 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
78
78
  includeGroupRows?: boolean;
79
79
  filterFn?: (rowNode: IRowNode) => boolean;
80
80
  }): IRowNode[];
81
+ getGroupRowNodes(config?: {
82
+ filterFn?: (rowNode: IRowNode) => boolean;
83
+ }): IRowNode[];
81
84
  getGridCellFromRowNode(rowNode: IRowNode, columnId: string): GridCell | undefined;
82
85
  getRawValueFromRowNode(rowNode: IRowNode, columnId: string): any | undefined;
83
86
  getDisplayValueFromRowNode(rowNode: IRowNode, columnId: string): any | undefined;
@@ -124,6 +127,7 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
124
127
  refreshRowByPrimaryKey(primaryKey: any): void;
125
128
  refreshRowNode(rowNode: IRowNode): void;
126
129
  refreshRowNodes(rowNodes: IRowNode[]): void;
130
+ refreshGroupRowNodes(): void;
127
131
  isCellEditable(gridCell: GridCell): boolean;
128
132
  areCellsEditable(gridCells: GridCell[]): boolean;
129
133
  isEveryCellEditable(gridCells: GridCell[]): boolean;
@@ -268,6 +268,9 @@ class GridApiImpl extends ApiBase_1.ApiBase {
268
268
  getAllRowNodes(config) {
269
269
  return this.adaptable.getAllRowNodes(config);
270
270
  }
271
+ getGroupRowNodes(config) {
272
+ return this.adaptable.getGroupRowNodes(config);
273
+ }
271
274
  getGridCellFromRowNode(rowNode, columnId) {
272
275
  return this.adaptable.getGridCellFromRowNode(rowNode, columnId);
273
276
  }
@@ -453,6 +456,11 @@ class GridApiImpl extends ApiBase_1.ApiBase {
453
456
  refreshRowNodes(rowNodes) {
454
457
  this.adaptable.redrawRows(rowNodes);
455
458
  }
459
+ refreshGroupRowNodes() {
460
+ // see https://www.ag-grid.com/javascript-data-grid/client-side-row-stages/#refreshing-the-client-side-model
461
+ this.adaptable.api.internalApi.getAgGridInstance().api.refreshClientSideRowModel('group');
462
+ this.adaptable.updateRowGroupsExpandedState();
463
+ }
456
464
  isCellEditable(gridCell) {
457
465
  if (!gridCell) {
458
466
  return false;
@@ -32,4 +32,5 @@ export declare class StyledColumnApiImpl extends ApiBase implements StyledColumn
32
32
  suspendStyledColumn(styledColumn: StyledColumn): void;
33
33
  unSuspendStyledColumn(styledColumn: StyledColumn): void;
34
34
  openStyledColumnSettingsPanel(): void;
35
+ getBadgePredicateDefsForColumn(columnId: string): import("../../types").AdaptablePredicateDef[];
35
36
  }
@@ -111,5 +111,17 @@ class StyledColumnApiImpl extends ApiBase_1.ApiBase {
111
111
  openStyledColumnSettingsPanel() {
112
112
  this.showModulePopup(ModuleConstants.StyledColumnModuleId);
113
113
  }
114
+ getBadgePredicateDefsForColumn(columnId) {
115
+ const column = this.getAdaptableApi().columnApi.getColumnWithColumnId(columnId);
116
+ if (!column) {
117
+ return undefined;
118
+ }
119
+ const scope = {
120
+ ColumnIds: [column.columnId],
121
+ };
122
+ return this.getAdaptableApi()
123
+ .predicateApi.internalApi.getFilterPredicateDefs(scope)
124
+ .filter((predicate) => this.adaptable.api.scopeApi.isColumnInScope(column, predicate.columnScope));
125
+ }
114
126
  }
115
127
  exports.StyledColumnApiImpl = StyledColumnApiImpl;
@@ -1,7 +1,8 @@
1
1
  import { ApiBase } from '../Implementation/ApiBase';
2
2
  import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
3
- import { CellColorRange, ColumnComparison, NumericStyledColumn, StyledColumn } from '../../PredefinedConfig/StyledColumnState';
3
+ import { BadgeStyleDefinition, CellColorRange, ColumnComparison, NumericStyledColumn, StyledColumn } from '../../PredefinedConfig/StyledColumnState';
4
4
  import { IRowNode } from '@ag-grid-community/core';
5
+ import { PredicateDefHandlerParams } from '../../types';
5
6
  export declare class StyledColumnInternalApi extends ApiBase {
6
7
  getMinValueForNumericColumn(column: AdaptableColumn): number | undefined;
7
8
  getMaxValueForNumericColumn(column: AdaptableColumn): number | undefined;
@@ -56,4 +57,5 @@ export declare class StyledColumnInternalApi extends ApiBase {
56
57
  * @param styledColumn Styled Column to Add
57
58
  */
58
59
  hasStyledColumnRelativeCellRange(styledColumn: StyledColumn): boolean;
60
+ getApplicableBadge(styledColumn: StyledColumn, params: Omit<PredicateDefHandlerParams, 'api' | 'inputs'>): BadgeStyleDefinition | null;
59
61
  }
@@ -245,5 +245,29 @@ class StyledColumnInternalApi extends ApiBase_1.ApiBase {
245
245
  return cellColorRange.Min == 'Col-Min' || cellColorRange.Max == 'Col-Max';
246
246
  })))) !== null && _e !== void 0 ? _e : false);
247
247
  }
248
+ getApplicableBadge(styledColumn, params) {
249
+ var _a, _b;
250
+ if (!((_a = styledColumn.BadgeStyle) === null || _a === void 0 ? void 0 : _a.Badges.length)) {
251
+ return null;
252
+ }
253
+ // first that matches, sort last ones without predicate
254
+ const badgesWithoutAll = [];
255
+ const badgesWithAll = [];
256
+ for (let badge of (_b = styledColumn.BadgeStyle) === null || _b === void 0 ? void 0 : _b.Badges) {
257
+ if (!badge.Predicate) {
258
+ badgesWithAll.push(badge);
259
+ }
260
+ else {
261
+ badgesWithoutAll.push(badge);
262
+ }
263
+ }
264
+ for (let badge of badgesWithoutAll) {
265
+ if (this.getPredicateApi().handlePredicate(badge.Predicate, params, false)) {
266
+ return badge;
267
+ }
268
+ }
269
+ const [firstBadgeWithAll] = badgesWithAll;
270
+ return firstBadgeWithAll !== null && firstBadgeWithAll !== void 0 ? firstBadgeWithAll : null;
271
+ }
248
272
  }
249
273
  exports.StyledColumnInternalApi = StyledColumnInternalApi;
@@ -1,5 +1,6 @@
1
1
  import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
2
2
  import { StyledColumn, StyledColumnState } from '../PredefinedConfig/StyledColumnState';
3
+ import { AdaptablePredicateDef } from '../types';
3
4
  /**
4
5
  * Provides run-time access to Styled Column Module and associated state
5
6
  */
@@ -120,4 +121,8 @@ export interface StyledColumnApi {
120
121
  * If this AdapTable instance can display Sparklines (e.g. is AG Grid SparklinesModule installed)
121
122
  */
122
123
  canDisplaySparklines(): boolean;
124
+ /**
125
+ * Get all Predicates available for a given column
126
+ */
127
+ getBadgePredicateDefsForColumn(columnId: string): AdaptablePredicateDef[];
123
128
  }
@@ -105,8 +105,7 @@ export interface StringFormatterOptions extends BaseFormatterOptions {
105
105
  */
106
106
  Suffix?: string;
107
107
  /**
108
- * Replaces the value. Usefull when in combination with a Condition
109
- * e.g. replace null/undefiend with 'N/A'
108
+ * Replaces cell value; useful when using Condition (e.g. replace null with 'N/A')
110
109
  */
111
110
  Content?: string;
112
111
  }
@@ -51,4 +51,4 @@ export interface AdaptableBaseIcon {
51
51
  /**
52
52
  * All AdapTable internal icon names
53
53
  */
54
- export declare type AdaptableInternalIconName = 'add' | 'add-row' | 'alert' | 'align-justify' | 'analysis' | 'application' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'arrow-up-long' | 'arrow-down-long' | 'arrowexpand' | 'attach-file' | 'blanks' | 'boolean-list' | 'broadcast' | 'brush' | 'build' | 'bulk-update' | 'calculated-column' | 'calendar' | 'call' | 'campaign' | 'cell-summary' | 'cell-validation' | 'chart' | 'chat' | 'check' | 'check-circle' | 'checked' | 'clear' | 'clone' | 'close' | 'cloud-upload' | 'collapse' | 'column-add' | 'column-chooser' | 'column-filter' | 'comment' | 'contains' | 'custom-sort' | 'dashboard' | 'data-set' | 'date-range' | 'delete' | 'division' | 'dock' | 'drag' | 'edit' | 'ends-with' | 'equal' | 'equation' | 'error' | 'expand' | 'exponent' | 'export' | 'export-data' | 'fast-backward' | 'fast-forward' | 'filter' | 'flashing-cell' | 'folder' | 'folder-open' | 'folder-shared' | 'format-column' | 'freetext-column' | 'function' | 'gradient-column' | 'greater-than' | 'greater-than-or-equal' | 'hide-column' | 'history' | 'home' | 'import-export' | 'info' | 'instrument' | 'invalid' | 'ipushpull' | 'justify' | 'layout' | 'less-than' | 'less-than-or-equal' | 'list' | 'login' | 'logout' | 'menu' | 'minus' | 'multiplication' | 'newpage' | 'news' | 'non-blanks' | 'not-contains' | 'not-equal' | 'ok' | 'open-in-new' | 'pause' | 'percent' | 'percent-bar' | 'person' | 'pie-chart' | 'play' | 'plus' | 'plus-minus' | 'query' | 'quick-search' | 'quote' | 'refresh' | 'regex' | 'reminder' | 'save' | 'schedule' | 'settings' | 'shortcut' | 'show-column' | 'smart-edit' | 'sort-asc' | 'sort-desc' | 'spark-line' | 'starts-with' | 'state-management' | 'statusbar' | 'stop' | 'system-status' | 'tab-unselected' | 'team-share' | 'theme' | 'tool-panel' | 'track-changes' | 'trash' | 'triangle-down' | 'triangle-up' | 'unchecked' | 'undo' | 'updated-row' | 'upload' | 'warning' | 'visibility' | 'visibility-off';
54
+ export declare type AdaptableInternalIconName = 'add' | 'alert' | 'analysis' | 'laptop' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'arrow-up-long' | 'arrow-down-long' | 'arrow-expand' | 'paperclip' | 'unfilled-circle' | 'boolean-list' | 'broadcast' | 'brush' | 'spanner' | 'edit-table' | 'chart-and-grid' | 'calendar' | 'call' | 'cells' | 'flag' | 'chart' | 'chat' | 'check' | 'check-circle' | 'checked' | 'clone' | 'close' | 'cloud-upload' | 'collapse' | 'column-add' | 'columns' | 'filter-list' | 'comment' | 'contains' | 'dashboard' | 'data-set' | 'date-range' | 'delete' | 'division' | 'dock' | 'drag' | 'edit' | 'ends-with' | 'equals' | 'equation' | 'error' | 'expand' | 'exponent' | 'export' | 'export-data' | 'fast-backward' | 'fast-forward' | 'filter' | 'lightning' | 'folder' | 'folder-open' | 'folder-shared' | 'color-palette' | 'horizontal-lines' | 'function' | 'greater-than' | 'greater-than-or-equal' | 'history' | 'home' | 'import-export' | 'info' | 'brain' | 'invalid' | 'download' | 'grid' | 'less-than' | 'less-than-or-equal' | 'list' | 'logout' | 'menu' | 'minus' | 'multiplication' | 'newpage' | 'news' | 'filled-circle' | 'not-contains' | 'not-equal' | 'open-in-new' | 'pause' | 'percent' | 'percent-tag' | 'person' | 'pie-chart' | 'play' | 'plus' | 'add-circle' | 'search' | 'search-table' | 'quote' | 'refresh' | 'regex' | 'reminder' | 'save' | 'schedule' | 'settings' | 'link' | 'sort-asc' | 'sort-desc' | 'spark-line' | 'starts-with' | 'assignment' | 'statusbar' | 'stop' | 'traffic-lights' | 'tab-unselected' | 'theme' | 'clipboard' | 'target' | 'triangle-down' | 'triangle-up' | 'unchecked' | 'undo' | 'downloaded' | 'upload' | 'warning' | 'gradient' | 'badge' | 'italic' | 'bold' | 'align-left' | 'align-right' | 'align-center' | 'align-justify' | 'underline' | 'strikethrough' | 'overline' | 'case-upper' | 'case-lower' | 'case-sentence' | 'visibility-on' | 'visibility-off' | 'visibility-off-bold' | 'visibility-on-bold';
@@ -76,7 +76,7 @@ exports.SystemPredicateDefs = [
76
76
  {
77
77
  id: 'Blanks',
78
78
  label: 'Blanks',
79
- icon: { name: 'blanks' },
79
+ icon: { name: 'unfilled-circle' },
80
80
  columnScope: { All: true },
81
81
  moduleScope: ['filter', 'alert', 'flashingcell', 'formatColumn'],
82
82
  handler: ({ value }) => Helper_1.default.IsInputNullOrEmpty(value),
@@ -84,7 +84,7 @@ exports.SystemPredicateDefs = [
84
84
  {
85
85
  id: 'NonBlanks',
86
86
  label: 'Non Blanks',
87
- icon: { name: 'non-blanks' },
87
+ icon: { name: 'filled-circle' },
88
88
  columnScope: { All: true },
89
89
  moduleScope: ['filter', 'alert', 'flashingcell', 'formatColumn'],
90
90
  handler: ({ value }) => Helper_1.default.IsInputNotNullOrEmpty(value),
@@ -147,7 +147,7 @@ exports.SystemPredicateDefs = [
147
147
  {
148
148
  id: 'Equals',
149
149
  label: 'Equals',
150
- icon: { name: 'equal' },
150
+ icon: { name: 'equals' },
151
151
  columnScope: { DataTypes: ['Number'] },
152
152
  moduleScope: ['filter', 'alert', 'flashingcell', 'formatColumn'],
153
153
  inputs: [{ type: 'number' }],
@@ -222,7 +222,7 @@ exports.SystemPredicateDefs = [
222
222
  {
223
223
  id: 'Is',
224
224
  label: 'Equals',
225
- icon: { name: 'equal' },
225
+ icon: { name: 'equals' },
226
226
  columnScope: { DataTypes: ['String'] },
227
227
  moduleScope: ['filter', 'alert', 'flashingcell', 'formatColumn'],
228
228
  inputs: [{ type: 'text' }],
@@ -435,7 +435,7 @@ exports.SystemPredicateDefs = [
435
435
  {
436
436
  id: 'On',
437
437
  label: 'Equals',
438
- icon: { name: 'equal' },
438
+ icon: { name: 'equals' },
439
439
  columnScope: { DataTypes: ['Date'] },
440
440
  moduleScope: ['filter', 'alert', 'flashingcell', 'formatColumn'],
441
441
  inputs: [{ type: 'date' }],
@@ -22,10 +22,18 @@ export interface AdaptableStyle {
22
22
  * Style of font: `Normal` or `Italic`
23
23
  */
24
24
  FontStyle?: 'Normal' | 'Italic';
25
+ /**
26
+ * Decoration of font: `None`, `Underline`, `Overline` or `LineThrough`
27
+ */
28
+ TextDecoration?: 'None' | 'Underline' | 'Overline' | 'LineThrough';
25
29
  /**
26
30
  * Size of font: `XSmall`, `Small`, `Medium`, `Large` or `XLarge`
27
31
  */
28
32
  FontSize?: 'XSmall' | 'Small' | 'Medium' | 'Large' | 'XLarge';
33
+ /**
34
+ * Rounds the corners of an element's outer border edge; equivalent of CSS border-radius
35
+ */
36
+ BorderRadius?: number;
29
37
  /**
30
38
  * Existing CSS Class; use instead of setting other object properties
31
39
  */
@@ -48,6 +48,7 @@ var FontStyle;
48
48
  })(FontStyle = exports.FontStyle || (exports.FontStyle = {}));
49
49
  var FontSize;
50
50
  (function (FontSize) {
51
+ // Default = 'Default',
51
52
  FontSize["XSmall"] = "XSmall";
52
53
  FontSize["Small"] = "Small";
53
54
  FontSize["Medium"] = "Medium";
@@ -1,6 +1,8 @@
1
1
  import { ConfigState } from './ConfigState';
2
2
  import { SuspendableObject } from './Common/SuspendableObject';
3
3
  import { SparklineOptions } from '@ag-grid-community/core';
4
+ import { AdaptableExternalIcon, AdaptableInternalIcon, AdaptablePredicate, AdaptableStyle } from '../types';
5
+ import { TypeHint } from './Common/Types';
4
6
  /**
5
7
  * Predefined Configuration for Styled Column Module
6
8
  */
@@ -23,7 +25,7 @@ export interface StyledColumn extends SuspendableObject {
23
25
  */
24
26
  GradientStyle?: GradientStyle;
25
27
  /**
26
- * Styles a numeric column so each cell displays a 'bar'
28
+ * Styles a numeric column so each cell displays a 'Bar'
27
29
  */
28
30
  PercentBarStyle?: PercentBarStyle;
29
31
  /**
@@ -31,11 +33,15 @@ export interface StyledColumn extends SuspendableObject {
31
33
  */
32
34
  CheckBoxStyle?: boolean;
33
35
  /**
34
- * Displays a Sparkline Chart in the column
36
+ * Displays a Sparkline Chart in an array column
35
37
  */
36
38
  SparkLineStyle?: SparkLineStyle;
37
39
  /**
38
- * Includes the Styled Column in Grouped Rows
40
+ * Displays cell values in Column as a Badge
41
+ */
42
+ BadgeStyle?: BadgeStyle;
43
+ /**
44
+ * Includes Styled Column in Grouped Rows
39
45
  * @defaultValue false
40
46
  */
41
47
  IncludeGroupedRows?: boolean;
@@ -48,19 +54,24 @@ export interface PercentBarStyle extends NumericStyledColumn {
48
54
  * Whether Cell shows Cell Value, Percent Value, both or none
49
55
  */
50
56
  CellText?: CellTextOptions;
57
+ /**
58
+ * Position of text in cell relative to Percent Bar
59
+ * @defaultValue Below
60
+ */
61
+ CellTextPosition?: 'Above' | 'Below' | 'Merged';
51
62
  /**
52
63
  * Whether Tooltip shows Cell Value, Percent Value, both or none
53
64
  */
54
65
  ToolTipText?: CellTextOptions;
55
66
  /**
56
67
  * Background colour for 'Percent Bar'; leave unset if none required
57
- * @defaultValue Gray
68
+ * @defaultValue undefined
58
69
  */
59
70
  BackColor?: string;
60
71
  }
61
72
  export interface NumericStyledColumn {
62
73
  /**
63
- * Ranges (e.g. to allow a traffic light effect)
74
+ * Ranges (e.g. to create traffic light effect)
64
75
  */
65
76
  CellRanges?: CellColorRange[];
66
77
  /**
@@ -137,3 +148,24 @@ export declare type SparkLineStyle = {
137
148
  */
138
149
  options?: SparklineOptions;
139
150
  };
151
+ export declare type SystemBadgeStylePredicateId = 'Values' | 'ExcludeValues' | 'Blanks' | 'NonBlanks' | 'Equals' | 'NotEquals' | 'GreaterThan' | 'LessThan' | 'Positive' | 'Negative' | 'Zero' | 'Between' | 'NotBetween' | 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex' | 'Today' | 'Yesterday' | 'Tomorrow' | 'ThisWeek' | 'ThisMonth' | 'ThisQuarter' | 'ThisYear' | 'InPast' | 'InFuture' | 'Before' | 'After' | 'InRange' | 'On' | 'NotOn' | 'NextWorkDay' | 'LastWorkDay' | 'WorkDay' | 'Holiday' | 'True' | 'False' | 'BooleanToggle';
152
+ /**
153
+ * The System Predicate Ids available for Badge Style
154
+ */
155
+ export declare type SystemBadgeStylePredicateIds = SystemBadgeStylePredicateId[];
156
+ /**
157
+ * The System Predicate definition for Badge Style
158
+ */
159
+ export interface BadgeStylePredicate extends AdaptablePredicate {
160
+ PredicateId: TypeHint<string, SystemBadgeStylePredicateId>;
161
+ }
162
+ export interface BadgeStyleDefinition {
163
+ Predicate?: BadgeStylePredicate;
164
+ Style: AdaptableStyle;
165
+ Icon?: AdaptableInternalIcon | AdaptableExternalIcon;
166
+ HideText?: boolean;
167
+ IconPosition?: 'Start' | 'End';
168
+ }
169
+ export interface BadgeStyle {
170
+ Badges?: BadgeStyleDefinition[];
171
+ }
@@ -87,7 +87,7 @@ function MergeStateFunction(oldState, newState) {
87
87
  let state = newState;
88
88
  if (!state || typeof state !== 'object') {
89
89
  // in case loadState returns something different than an empty object
90
- AdaptableLogger_1.AdaptableLogger.consoleWarnBase('State is something different that expected, expected object, received: ', state);
90
+ AdaptableLogger_1.AdaptableLogger.consoleWarnBase('State is something different than expected; expected an object, but received: ', state);
91
91
  state = {};
92
92
  }
93
93
  // any Module in config that doesn't exist in state will be added
@@ -10,7 +10,7 @@ const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensio
10
10
  const ObjectFactory_1 = tslib_1.__importDefault(require("../Utilities/ObjectFactory"));
11
11
  class BulkUpdateModule extends AdaptableModuleBase_1.AdaptableModuleBase {
12
12
  constructor(api) {
13
- super(ModuleConstants.BulkUpdateModuleId, ModuleConstants.BulkUpdateFriendlyName, 'bulk-update', 'BulkUpdatePopup', 'Update multiple cell simultaneously with a new or existing value', api);
13
+ super(ModuleConstants.BulkUpdateModuleId, ModuleConstants.BulkUpdateFriendlyName, 'edit-table', 'BulkUpdatePopup', 'Update multiple cell simultaneously with a new or existing value', api);
14
14
  }
15
15
  getViewAccessLevel() {
16
16
  return 'Full';
@@ -12,7 +12,7 @@ const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
12
12
  const getCalculatedColumnSettingsTags_1 = require("../View/CalculatedColumn/Utilities/getCalculatedColumnSettingsTags");
13
13
  class CalculatedColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
14
14
  constructor(api) {
15
- super(ModuleConstants.CalculatedColumnModuleId, ModuleConstants.CalculatedColumnFriendlyName, 'calculated-column', 'CalculatedColumnPopup', 'Create bespoke columns whose cell value is derived dynamically from an Expression', api);
15
+ super(ModuleConstants.CalculatedColumnModuleId, ModuleConstants.CalculatedColumnFriendlyName, 'chart-and-grid', 'CalculatedColumnPopup', 'Create bespoke columns whose cell value is derived dynamically from an Expression', api);
16
16
  }
17
17
  handleConfigReloaded(adaptableStateReloadedInfo) {
18
18
  // re-dispatch the CalculatedColumnReady action to recreate all the aggregated scalar columns
@@ -9,7 +9,7 @@ const Helper_1 = require("../Utilities/Helpers/Helper");
9
9
  const CellSummaryStatusPanel_1 = require("../View/CellSummary/CellSummaryStatusPanel");
10
10
  class CellSummaryModule extends AdaptableModuleBase_1.AdaptableModuleBase {
11
11
  constructor(api) {
12
- super(ModuleConstants.CellSummaryModuleId, ModuleConstants.CellSummaryFriendlyName, 'cell-summary', 'CellSummaryPopup', 'See summary information on a group of cells using multiple summary operations', api);
12
+ super(ModuleConstants.CellSummaryModuleId, ModuleConstants.CellSummaryFriendlyName, 'cells', 'CellSummaryPopup', 'See summary information on a group of cells using multiple summary operations', api);
13
13
  }
14
14
  getViewAccessLevel() {
15
15
  return 'Full';
@@ -11,7 +11,7 @@ const getCustomSortSortOrderViewItems_1 = require("./Utilities/CustomSort/getCus
11
11
  const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
12
12
  class CustomSortModule extends AdaptableModuleBase_1.AdaptableModuleBase {
13
13
  constructor(api) {
14
- super(ModuleConstants.CustomSortModuleId, ModuleConstants.CustomSortFriendlyName, 'custom-sort', 'CustomSortPopup', 'Provide bespoke sorting information for Columns (in place of alphabetical sorting)', api);
14
+ super(ModuleConstants.CustomSortModuleId, ModuleConstants.CustomSortFriendlyName, 'import-export', 'CustomSortPopup', 'Provide bespoke sorting information for Columns (in place of alphabetical sorting)', api);
15
15
  }
16
16
  getModuleAdaptableObjects(config) {
17
17
  return this.api.customSortApi.getCustomSorts(config);
@@ -53,10 +53,10 @@ class DashboardModule extends AdaptableModuleBase_1.AdaptableModuleBase {
53
53
  menuItems.push(this.createColumnMenuItemReduxAction('Float', 'dock', DashboardRedux.DashboardSetIsFloating(true)));
54
54
  }
55
55
  if (this.api.dashboardApi.getDashboardState().IsHidden) {
56
- menuItems.push(this.createColumnMenuItemReduxAction('Show', 'show-column', DashboardRedux.DashboardSetIsHidden(false)));
56
+ menuItems.push(this.createColumnMenuItemReduxAction('Show', 'visibility-on-bold', DashboardRedux.DashboardSetIsHidden(false)));
57
57
  }
58
58
  else {
59
- menuItems.push(this.createColumnMenuItemReduxAction('Hide', 'hide-column', DashboardRedux.DashboardSetIsHidden(true)));
59
+ menuItems.push(this.createColumnMenuItemReduxAction('Hide', 'visibility-off-bold', DashboardRedux.DashboardSetIsHidden(true)));
60
60
  }
61
61
  return [
62
62
  {
@@ -9,7 +9,7 @@ const DataChangeHistoryStatusBarContent_1 = require("../View/DataChangeHistory/D
9
9
  const core_1 = require("@ag-grid-community/core");
10
10
  class DataChangeHistoryModule extends AdaptableModuleBase_1.AdaptableModuleBase {
11
11
  constructor(api) {
12
- super(ModuleConstants.DataChangeHistoryModuleId, ModuleConstants.DataChangeHistoryFriendlyName, 'track-changes', 'DataChangeHistoryPopup', 'Provides an overview of all previous changes, giving the possibility to undo specific changes', api);
12
+ super(ModuleConstants.DataChangeHistoryModuleId, ModuleConstants.DataChangeHistoryFriendlyName, 'target', 'DataChangeHistoryPopup', 'Provides an overview of all previous changes, giving the possibility to undo specific changes', api);
13
13
  this.api.internalApi
14
14
  .getDataService()
15
15
  .on('CellDataChanged', (cellDataChangedInfo) => {
@@ -10,7 +10,7 @@ const SystemRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/Syste
10
10
  const FilterStatusBarSubPanelPopover_1 = require("../View/Filter/FilterStatusBarSubPanelPopover");
11
11
  class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
12
12
  constructor(api) {
13
- super(ModuleConstants.FilterModuleId, ModuleConstants.FilterFriendlyName, 'column-filter', 'FilterPopup', 'Advanced filtering capability allows users to see precisely the data they want', api);
13
+ super(ModuleConstants.FilterModuleId, ModuleConstants.FilterFriendlyName, 'filter-list', 'FilterPopup', 'Advanced filtering capability allows users to see precisely the data they want', api);
14
14
  }
15
15
  getModuleAdaptableObjects() {
16
16
  return this.api.filterApi.getColumnFilters();
@@ -19,7 +19,7 @@ const Helper_1 = require("../Utilities/Helpers/Helper");
19
19
  const updateSingleToMultiplePredicates_1 = require("./Utilities/updateSingleToMultiplePredicates");
20
20
  class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
21
21
  constructor(api) {
22
- super(ModuleConstants.FlashingCellModuleId, ModuleConstants.FlashingCellFriendlyName, 'flashing-cell', 'FlashingAlert', 'Flash cells when they change', api);
22
+ super(ModuleConstants.FlashingCellModuleId, ModuleConstants.FlashingCellFriendlyName, 'lightning', 'FlashingAlert', 'Flash cells when they change', api);
23
23
  this.api.internalApi
24
24
  .getDataService()
25
25
  .on('CellDataChanged', (cellDataChangedInfo) => {
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
6
6
  const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
7
7
  const FormatColumnRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/FormatColumnRedux"));
8
+ const PopupRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/PopupRedux"));
8
9
  const FormatColumnWizard_1 = require("../View/FormatColumn/Wizard/FormatColumnWizard");
9
10
  const getScopeViewItems_1 = require("./Utilities/getScopeViewItems");
10
11
  const FormatColumnFormatWizardSection_1 = require("../View/FormatColumn/Wizard/FormatColumnFormatWizardSection");
@@ -15,9 +16,10 @@ const getRuleViewItems_1 = require("./Utilities/getRuleViewItems");
15
16
  const MoveFormatColumn_1 = require("../View/FormatColumn/MoveFormatColumn");
16
17
  const Helper_1 = require("../Utilities/Helpers/Helper");
17
18
  const updateSingleToMultiplePredicates_1 = require("./Utilities/updateSingleToMultiplePredicates");
19
+ const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/ArrayExtensions"));
18
20
  class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
19
21
  constructor(api) {
20
- super(ModuleConstants.FormatColumnModuleId, ModuleConstants.FormatColumnFriendlyName, 'format-column', 'FormatColumnPopup', 'Create a column style, display format or cell alignment', api);
22
+ super(ModuleConstants.FormatColumnModuleId, ModuleConstants.FormatColumnFriendlyName, 'color-palette', 'FormatColumnPopup', 'Create a column style, display format or cell alignment', api);
21
23
  }
22
24
  getModuleAdaptableObjects(config) {
23
25
  return this.api.formatColumnApi.getFormatColumns(config);
@@ -115,12 +117,49 @@ class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
115
117
  addColumnMenuItems(column) {
116
118
  let returnColumnMenuItems = [];
117
119
  if (column && this.isModuleEditable() && !column.isSparkline) {
118
- let popupParam = {
120
+ let createPopupParam = {
119
121
  column: column,
120
122
  action: 'New',
121
123
  source: 'ColumnMenu',
122
124
  };
123
- returnColumnMenuItems.push(this.createColumnMenuItemShowPopup('Create Format Column', this.moduleInfo.Popup, this.moduleInfo.Glyph, popupParam));
125
+ const createFormatColumnMenuItem = this.createColumnMenuItemShowPopup('Create', this.moduleInfo.Popup, 'plus', createPopupParam);
126
+ const formatColumnsForColumn = this.api.formatColumnApi.getFormatColumnsForColumnId(column.columnId);
127
+ // .filter((fc) => this.api.scopeApi.isSingleColumnScope(fc.Scope));
128
+ // if no formats then just show Create
129
+ if (ArrayExtensions_1.default.IsNullOrEmpty(formatColumnsForColumn)) {
130
+ returnColumnMenuItems.push(this.createColumnMenuItemShowPopup('Create Format Column', this.moduleInfo.Popup, this.moduleInfo.Glyph, createPopupParam));
131
+ // if 1 format then show a Create and an Edit
132
+ }
133
+ else if (formatColumnsForColumn.length == 1) {
134
+ let editPopupParam = {
135
+ column: column,
136
+ action: 'Edit',
137
+ value: formatColumnsForColumn[0],
138
+ source: 'ColumnMenu',
139
+ };
140
+ const editFormatColumnMenuItem = this.createColumnMenuItemShowPopup('Edit', this.moduleInfo.Popup, 'edit', editPopupParam);
141
+ returnColumnMenuItems.push({
142
+ label: 'Format Column',
143
+ module: this.moduleInfo.ModuleName,
144
+ isVisible: true,
145
+ icon: { name: this.moduleInfo.Glyph },
146
+ subItems: [createFormatColumnMenuItem, editFormatColumnMenuItem],
147
+ });
148
+ // if more than one then display a Create and a Show
149
+ // we should probably do the Show better - perhaps use Column Info in some way?
150
+ // or to filter the format columns ?
151
+ }
152
+ else {
153
+ const moduleInfo = this.api.internalApi.getModuleService().getModuleInfoByModule('FormatColumn');
154
+ const editFormatColumnMenuItem = this.createColumnMenuItemReduxAction('Show Current', this.moduleInfo.Glyph, PopupRedux.PopupShowScreen('FormatColumn', moduleInfo.Popup));
155
+ returnColumnMenuItems.push({
156
+ label: 'Format Column',
157
+ module: this.moduleInfo.ModuleName,
158
+ isVisible: true,
159
+ icon: { name: this.moduleInfo.Glyph },
160
+ subItems: [createFormatColumnMenuItem, editFormatColumnMenuItem],
161
+ });
162
+ }
124
163
  }
125
164
  return returnColumnMenuItems;
126
165
  }
@@ -9,7 +9,7 @@ const FreeTextColumnWizard_1 = require("../View/FreeTextColumn/Wizard/FreeTextCo
9
9
  const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
10
10
  class FreeTextColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
11
11
  constructor(api) {
12
- super(ModuleConstants.FreeTextColumnModuleId, ModuleConstants.FreeTextColumnFriendlyName, 'freetext-column', 'FreeTextColumnPopup', 'Dynamic column showing custom content (stored in state and not with grid data)', api);
12
+ super(ModuleConstants.FreeTextColumnModuleId, ModuleConstants.FreeTextColumnFriendlyName, 'horizontal-lines', 'FreeTextColumnPopup', 'Dynamic column showing custom content (stored in state and not with grid data)', api);
13
13
  }
14
14
  isModuleAvailable() {
15
15
  // FreeTextColumn module doesn't support autogenerated primary keys
@@ -31,7 +31,7 @@ class GridInfoModule extends AdaptableModuleBase_1.AdaptableModuleBase {
31
31
  selectMenuItems.push(this.createMainMenuItemShowPopup({
32
32
  Label: 'Column',
33
33
  ComponentName: this.moduleInfo.Popup,
34
- Icon: 'column-chooser',
34
+ Icon: 'columns',
35
35
  PopupParams: {
36
36
  column: column,
37
37
  source: 'ColumnMenu',
@@ -82,7 +82,7 @@ class GridInfoModule extends AdaptableModuleBase_1.AdaptableModuleBase {
82
82
  selectMenuItems.push(this.createMainMenuItemShowPopup({
83
83
  Label: 'Column',
84
84
  ComponentName: this.moduleInfo.Popup,
85
- Icon: 'column-chooser',
85
+ Icon: 'columns',
86
86
  PopupParams: columnPopUpParams,
87
87
  }));
88
88
  }
@@ -19,7 +19,7 @@ const windowFactory_1 = require("../View/Components/Popups/WindowPopups/windowFa
19
19
  const flattenDeep_1 = tslib_1.__importDefault(require("lodash/flattenDeep"));
20
20
  class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
21
21
  constructor(api) {
22
- super(ModuleConstants.LayoutModuleId, ModuleConstants.LayoutFriendlyName, 'layout', 'LayoutPopup', 'Named sets of column visibility, order, groupings, aggregation, pivots etc.', api);
22
+ super(ModuleConstants.LayoutModuleId, ModuleConstants.LayoutFriendlyName, 'grid', 'LayoutPopup', 'Named sets of column visibility, order, groupings, aggregation, pivots etc.', api);
23
23
  this.clearUnsuportedFeaturesFromLayout = (layout) => {
24
24
  const layoutSupportedFeatures = this.api.layoutApi.internalApi.getLayoutSupportedFeatures();
25
25
  let needsUpdate = false;
@@ -150,6 +150,7 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
150
150
  returnColumnMenuItems.push(this.createColumnMenuItemShowPopup('Edit Layout', this.moduleInfo.Popup, this.moduleInfo.Glyph, {
151
151
  action: 'Edit',
152
152
  source: 'ColumnMenu',
153
+ value: this.api.layoutApi.getCurrentLayout(),
153
154
  }));
154
155
  }
155
156
  if (column) {
@@ -157,7 +158,7 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
157
158
  returnColumnMenuItems.push(this.createColumnMenuItemClickFunction('Change Caption', 'edit', () => this.api.layoutApi.showChangeColumnCaption(column)));
158
159
  }
159
160
  if (column.hideable) {
160
- returnColumnMenuItems.push(this.createColumnMenuItemClickFunction('Hide Column', 'hide-column', () => {
161
+ returnColumnMenuItems.push(this.createColumnMenuItemClickFunction('Hide Column', 'visibility-off-bold', () => {
161
162
  this.api.columnApi.hideColumn(column.columnId);
162
163
  }));
163
164
  }
@@ -169,12 +170,12 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
169
170
  selectMenuItems.push(this.createColumnMenuItemClickFunction('Column (Preserve Selection)', 'column-add', () => {
170
171
  this.api.columnApi.addColumnToSelection(column.columnId);
171
172
  }));
172
- selectMenuItems.push(this.createColumnMenuItemClickFunction('Column (Reset Selection)', 'column-chooser', () => {
173
+ selectMenuItems.push(this.createColumnMenuItemClickFunction('Column (Reset Selection)', 'columns', () => {
173
174
  this.api.columnApi.selectColumn(column.columnId);
174
175
  }));
175
176
  }
176
177
  else {
177
- selectMenuItems.push(this.createColumnMenuItemClickFunction('Column', 'column-chooser', () => {
178
+ selectMenuItems.push(this.createColumnMenuItemClickFunction('Column', 'columns', () => {
178
179
  this.api.columnApi.selectColumn(column.columnId);
179
180
  }));
180
181
  }
@@ -215,7 +216,7 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
215
216
  let autoSizeFunction = () => {
216
217
  this.api.columnApi.autosizeAllColumns();
217
218
  };
218
- gridMenuItems.push(this.createColumnMenuItemClickFunction('Auto Size', 'arrowexpand', autoSizeFunction));
219
+ gridMenuItems.push(this.createColumnMenuItemClickFunction('Auto Size', 'arrow-expand', autoSizeFunction));
219
220
  let clickFunction = () => {
220
221
  this.api.gridApi.selectAll();
221
222
  };
@@ -303,7 +304,7 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
303
304
  });
304
305
  },
305
306
  icon: {
306
- name: 'arrowexpand',
307
+ name: 'arrow-expand',
307
308
  },
308
309
  };
309
310
  }
@@ -14,7 +14,7 @@ const getRuleViewItems_1 = require("./Utilities/getRuleViewItems");
14
14
  const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
15
15
  class PlusMinusModule extends AdaptableModuleBase_1.AdaptableModuleBase {
16
16
  constructor(api) {
17
- super(ModuleConstants.PlusMinusModuleId, ModuleConstants.PlusMinusFriendlyName, 'plus-minus', 'PlusMinusPopup', 'Configure how a cell value will edit when the + or - keys are pressed', api);
17
+ super(ModuleConstants.PlusMinusModuleId, ModuleConstants.PlusMinusFriendlyName, 'add-circle', 'PlusMinusPopup', 'Configure how a cell value will edit when the + or - keys are pressed', api);
18
18
  this.shouldHandleKeyDown = false;
19
19
  this.adaptable = api.internalApi.getAdaptableInstance();
20
20
  }
@@ -10,7 +10,7 @@ const EditCurrentQueryButton_1 = require("../View/Query/EditCurrentQueryButton")
10
10
  const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
11
11
  class QueryModule extends AdaptableModuleBase_1.AdaptableModuleBase {
12
12
  constructor(api) {
13
- super(ModuleConstants.QueryModuleId, ModuleConstants.QueryFriendlyName, 'query', 'QueryPopup', 'Run real-time text-based queries using a wealth of powerful functions and operators', api);
13
+ super(ModuleConstants.QueryModuleId, ModuleConstants.QueryFriendlyName, 'search', 'QueryPopup', 'Run real-time text-based queries using a wealth of powerful functions and operators', api);
14
14
  }
15
15
  getModuleAdaptableObjects() {
16
16
  return this.api.queryApi.getNamedQueries();
@@ -7,7 +7,7 @@ const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/Mod
7
7
  const QuickSearchStatusBarContent_1 = require("../View/QuickSearch/QuickSearchStatusBarContent");
8
8
  class QuickSearchModule extends AdaptableModuleBase_1.AdaptableModuleBase {
9
9
  constructor(api) {
10
- super(ModuleConstants.QuickSearchModuleId, ModuleConstants.QuickSearchFriendlyName, 'quick-search', 'QuickSearchPopup', 'Quickly highlight all cells in the grid that contain matching query text', api);
10
+ super(ModuleConstants.QuickSearchModuleId, ModuleConstants.QuickSearchFriendlyName, 'search-table', 'QuickSearchPopup', 'Quickly highlight all cells in the grid that contain matching query text', api);
11
11
  }
12
12
  getViewProperties() {
13
13
  return {