@adaptabletools/adaptable 11.0.0-canary.0 → 11.0.0-canary.4

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 (118) hide show
  1. package/base.css +21 -10
  2. package/bundle.cjs.js +98 -94
  3. package/index.css +23 -10
  4. package/package.json +32 -32
  5. package/publishTimestamp.d.ts +1 -1
  6. package/publishTimestamp.js +1 -1
  7. package/src/AdaptableInterfaces/IAdaptable.d.ts +0 -1
  8. package/src/AdaptableOptions/DashboardOptions.d.ts +3 -2
  9. package/src/AdaptableOptions/EntitlementOptions.d.ts +1 -1
  10. package/src/AdaptableOptions/GeneralOptions.d.ts +1 -1
  11. package/src/AdaptableOptions/TeamSharingOptions.d.ts +1 -1
  12. package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -1
  13. package/src/Api/Events/SearchChanged.d.ts +1 -1
  14. package/src/Api/GridApi.d.ts +5 -4
  15. package/src/Api/Implementation/DashboardApiImpl.js +1 -1
  16. package/src/Api/Implementation/FlashingCellApiImpl.js +2 -4
  17. package/src/Api/Implementation/GridApiImpl.d.ts +5 -4
  18. package/src/Api/Implementation/GridApiImpl.js +4 -0
  19. package/src/Api/Implementation/InternalApiImpl.d.ts +0 -1
  20. package/src/Api/Implementation/InternalApiImpl.js +1 -9
  21. package/src/Api/Implementation/LayoutApiImpl.js +1 -1
  22. package/src/Api/InternalApi.d.ts +0 -1
  23. package/src/PredefinedConfig/Common/CellHighlightInfo.d.ts +1 -12
  24. package/src/PredefinedConfig/Common/DataChangedInfo.d.ts +1 -1
  25. package/src/PredefinedConfig/Common/RowHighlightInfo.d.ts +15 -0
  26. package/src/PredefinedConfig/Common/RowHighlightInfo.js +2 -0
  27. package/src/PredefinedConfig/Common/Types.d.ts +1 -1
  28. package/src/PredefinedConfig/DashboardState.d.ts +4 -4
  29. package/src/PredefinedConfig/FlashingCellState.d.ts +2 -1
  30. package/src/PredefinedConfig/SystemState.d.ts +2 -1
  31. package/src/Redux/ActionsReducers/DashboardRedux.d.ts +0 -7
  32. package/src/Redux/ActionsReducers/DashboardRedux.js +1 -11
  33. package/src/Redux/ActionsReducers/SystemRedux.d.ts +6 -5
  34. package/src/Redux/ActionsReducers/SystemRedux.js +13 -13
  35. package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +1 -1
  36. package/src/Redux/Store/AdaptableReduxMerger.js +5 -5
  37. package/src/Redux/Store/AdaptableStore.js +13 -3
  38. package/src/Strategy/AlertModule.js +1 -1
  39. package/src/Strategy/DataChangeHistoryModule.js +1 -1
  40. package/src/Strategy/FlashingCellModule.d.ts +1 -1
  41. package/src/Strategy/FlashingCellModule.js +32 -16
  42. package/src/Strategy/TeamSharingModule.js +1 -1
  43. package/src/Strategy/Utilities/getFlashingTargetViewItems.d.ts +1 -1
  44. package/src/Strategy/Utilities/getFlashingTargetViewItems.js +3 -1
  45. package/src/Utilities/ExpressionFunctions/aggregationExpressionFunctions.js +1 -1
  46. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +1 -1
  47. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +2 -3
  48. package/src/Utilities/Extensions/StringExtensions.js +1 -1
  49. package/src/Utilities/Helpers/AdaptableHelper.js +2 -2
  50. package/src/Utilities/ObjectFactory.js +4 -2
  51. package/src/Utilities/Services/LicenseService.js +1 -1
  52. package/src/Utilities/Services/ReportService.js +1 -1
  53. package/src/View/AdaptableView.js +1 -1
  54. package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +1 -1
  55. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.d.ts +2 -3
  56. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +1 -3
  57. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +10 -23
  58. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +15 -4
  59. package/src/View/Components/FilterForm/QuickFilterForm.js +4 -6
  60. package/src/View/Components/ModuleValueSelector/index.js +1 -1
  61. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.d.ts +0 -3
  62. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +43 -87
  63. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +10 -0
  64. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +54 -0
  65. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.d.ts +3 -1
  66. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +19 -6
  67. package/src/View/Components/Popups/AdaptablePopup/Navigation.d.ts +1 -3
  68. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +6 -14
  69. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.d.ts +2 -0
  70. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +44 -0
  71. package/src/View/Components/SharedProps/ModuleViewPopupProps.d.ts +1 -1
  72. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -1
  73. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +1 -1
  74. package/src/View/Components/ToolPanel/ToolPanelPopup.js +4 -4
  75. package/src/View/Components/ValueSelector/index.d.ts +2 -1
  76. package/src/View/Components/ValueSelector/index.js +5 -5
  77. package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +10 -5
  78. package/src/View/CustomSort/Wizard/CustomSortWizard.js +16 -4
  79. package/src/View/Dashboard/Dashboard.js +4 -4
  80. package/src/View/Dashboard/DashboardPopup.js +5 -5
  81. package/src/View/Export/Wizard/NewReportWizard.js +13 -3
  82. package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +17 -26
  83. package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +19 -2
  84. package/src/View/FlashingCell/Wizard/{FlashingCellDurationWizardSection.d.ts → FlashingCellSettingsWizardSection.d.ts} +3 -3
  85. package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +81 -0
  86. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +5 -5
  87. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +2 -2
  88. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +10 -5
  89. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +8 -3
  90. package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +13 -5
  91. package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +8 -2
  92. package/src/View/Query/QueryViewPanel.js +12 -9
  93. package/src/View/Query/Wizard/NamedQueryWizard.js +3 -1
  94. package/src/View/QuickSearch/useQuickSearchDebounced.js +1 -1
  95. package/src/View/Schedule/Wizard/ScheduleWizard.js +14 -14
  96. package/src/View/SpecialColumnSettingsWizardStep.d.ts +9 -0
  97. package/src/View/SpecialColumnSettingsWizardStep.js +62 -0
  98. package/src/View/Wizard/AdaptableWizard.js +1 -1
  99. package/src/View/Wizard/Interface/IAdaptableWizard.d.ts +2 -0
  100. package/src/View/Wizard/OnePageAdaptableWizard.js +1 -1
  101. package/src/agGrid/Adaptable.d.ts +0 -2
  102. package/src/agGrid/Adaptable.js +32 -22
  103. package/src/agGrid/agGridHelper.js +2 -3
  104. package/src/agGrid/agGridMenuHelper.js +5 -9
  105. package/src/components/Dashboard/Dashboard.js +1 -1
  106. package/src/components/Dashboard/DashboardManager.d.ts +5 -3
  107. package/src/components/Dashboard/DashboardManager.js +33 -27
  108. package/src/components/DropdownButton/renderItem.js +1 -1
  109. package/src/components/FormLayout/index.js +1 -1
  110. package/src/components/OverlayTrigger/Overlay.js +1 -1
  111. package/src/components/WindowModal/WindowModal.js +17 -2
  112. package/src/components/utils/useDraggable.js +2 -1
  113. package/src/metamodel/adaptable.metamodel.d.ts +9 -0
  114. package/src/metamodel/adaptable.metamodel.js +18 -11
  115. package/src/types.d.ts +2 -1
  116. package/version.d.ts +1 -1
  117. package/version.js +1 -1
  118. package/src/View/FlashingCell/Wizard/FlashingCellDurationWizardSection.js +0 -60
package/index.css CHANGED
@@ -2233,6 +2233,7 @@ template {
2233
2233
  --ab-cmp-adaptable-popup--settings__height: 90vh;
2234
2234
  --ab-cmp-adaptable-popup__height: 90vh;
2235
2235
  --ab-cmp-adaptable-popup__max-height: 1200px;
2236
+ --ab-cmp-adaptable-popup__box-shadow: 2px 2px 14px 0px rgb(0 0 0 / 26%);
2236
2237
  --ab-cmp-adaptable-popup-navigation-list__padding: var(--ab-space-1) var(--ab-space-2);
2237
2238
  --ab-cmp-adaptable-popup-navigation-list__border-right: 2px solid var(--ab-color-defaultbackground);
2238
2239
  --ab-cmp-adaptable-popup-navigation-list__font-size: var(--ab-font-size-3);
@@ -3339,7 +3340,8 @@ input[type="number"].ab-Input:hover::-webkit-inner-spin-button:active {
3339
3340
 
3340
3341
  .ab-Tag {
3341
3342
  display: inline-flex;
3342
- font-size: var(--ab-cmp-Tag__font-size); }
3343
+ font-size: var(--ab-cmp-Tag__font-size);
3344
+ max-width: 100%; }
3343
3345
 
3344
3346
  .ab-AdaptableOptions {
3345
3347
  background: var(--ab-cmp-adaptable-options__background-color); }
@@ -3509,6 +3511,9 @@ html.ab--theme-dark .ab-ListBoxFilterForm--aggrid-style {
3509
3511
  background: var(--ab-cmp-adaptable-popup__background);
3510
3512
  max-height: var(--ab-cmp-adaptable-popup__max-height); }
3511
3513
 
3514
+ .ab-Adaptable-Popup--window {
3515
+ box-shadow: var(--ab-cmp-adaptable-popup__box-shadow); }
3516
+
3512
3517
  .ab-Adaptable-Popup__Navigation {
3513
3518
  padding-top: 10px;
3514
3519
  overflow: auto;
@@ -3610,6 +3615,10 @@ html.ab--theme-dark .ab-ListBoxFilterForm--aggrid-style {
3610
3615
  .ab-Adaptable-Object-List__Item__edit-property {
3611
3616
  visibility: hidden; }
3612
3617
 
3618
+ .ab-Adaptable-Object-List__Item__values {
3619
+ min-width: 0;
3620
+ word-break: break-all; }
3621
+
3613
3622
  .ab-Adaptable-Object-List__Item__buttons {
3614
3623
  padding-left: var(--ab-space-2);
3615
3624
  min-width: 80px;
@@ -3689,26 +3698,30 @@ html.ab--theme-dark .ab-ListBoxFilterForm--aggrid-style {
3689
3698
  border-style: none;
3690
3699
  --ab-toast-cmp__shadow-color: var(--ab-color-accent);
3691
3700
  box-shadow: 0 0 7px 2px var(--ab-toast-cmp__shadow-color);
3692
- background: var(--ab-toast-cmp__shadow-color); }
3701
+ background: var(--ab-toast-cmp__shadow-color);
3702
+ --toastify-text-color-info: var(--ab-color-text-on-primary);
3703
+ --toastify-text-color-success: var(--ab-color-text-on-primary);
3704
+ --toastify-text-color-warning: var(--ab-color-text-on-primary);
3705
+ --toastify-text-color-error: var(--ab-color-text-on-primary);
3706
+ --toastify-color-info: var(--ab-color-info);
3707
+ --toastify-color-success: var(--ab-color-success);
3708
+ --toastify-color-warning: var(--ab-color-warn);
3709
+ --toastify-color-error: var(--ab-color-error); }
3693
3710
 
3694
3711
  .Toastify__toast-body {
3695
3712
  padding: 0; }
3696
3713
 
3697
3714
  .Toastify__toast--info {
3698
- --ab-toast-cmp__shadow-color: var(--ab-color-info);
3699
- color: var(--ab-color-text-on-primary); }
3715
+ --ab-toast-cmp__shadow-color: var(--ab-color-info); }
3700
3716
 
3701
3717
  .Toastify__toast--success {
3702
- --ab-toast-cmp__shadow-color: var(--ab-color-success);
3703
- color: var(--ab-color-text-on-primary); }
3718
+ --ab-toast-cmp__shadow-color: var(--ab-color-success); }
3704
3719
 
3705
3720
  .Toastify__toast--warning {
3706
- --ab-toast-cmp__shadow-color: var(--ab-color-warn);
3707
- color: var(--ab-color-text-on-primary); }
3721
+ --ab-toast-cmp__shadow-color: var(--ab-color-warn); }
3708
3722
 
3709
3723
  .Toastify__toast--error {
3710
- --ab-toast-cmp__shadow-color: var(--ab-color-error);
3711
- color: var(--ab-color-text-on-primary); }
3724
+ --ab-toast-cmp__shadow-color: var(--ab-color-error); }
3712
3725
 
3713
3726
  .ab--custom-mac-like-scrollbars .ab-Grid * ::-webkit-scrollbar,
3714
3727
  .ab--custom-mac-like-scrollbars .ag-root * ::-webkit-scrollbar,
package/package.json CHANGED
@@ -1,21 +1,47 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable",
3
- "version": "11.0.0-canary.0",
3
+ "version": "11.0.0-canary.4",
4
4
  "description": "Powerful data-agnostic HTML5 datagrid add-on that sits on top of an underlying grid component and provides all the rich functionality that advanced users expect from their DataGrids and Data Tables",
5
- "main": "index.js",
6
- "typings": "index.d.ts",
5
+ "keywords": [
6
+ "web-components",
7
+ "datagrid",
8
+ "fintech",
9
+ "grid",
10
+ "data",
11
+ "table",
12
+ "data-table",
13
+ "openfin",
14
+ "ag-grid",
15
+ "infinite-table",
16
+ "adaptable",
17
+ "blotter"
18
+ ],
19
+ "homepage": "http://www.adaptabletools.com/",
20
+ "license": "SEE LICENSE IN LICENSE.md",
21
+ "author": {
22
+ "name": "Jonny Wolfson",
23
+ "email": "jonny.wolfson@adaptabletools.com"
24
+ },
25
+ "maintainers": [
26
+ {
27
+ "name": "JonnyAdaptableTools",
28
+ "email": "jonny.wolfson@adaptabletools.com"
29
+ }
30
+ ],
31
+ "main": "agGrid.js",
32
+ "typings": "types.d.ts",
7
33
  "dependencies": {
8
34
  "@infinite-table/infinite-react": "0.0.1-canary.11",
9
35
  "date-fns": "2.22.1",
10
36
  "debug": "^4.3.1",
11
37
  "isomorphic-fetch": "^2.2.1",
12
- "lodash-es": "^4.17.15",
38
+ "lodash": "^4.17.15",
13
39
  "normalize.css": "^8.0.1",
14
40
  "prop-types": "^15.6.2",
15
41
  "re-resizable": "^6.9.1",
16
42
  "react": ">=16.8.0",
17
43
  "react-beautiful-dnd": "13.1.0",
18
- "react-day-picker": "8.0.0-beta.37",
44
+ "react-day-picker": "8.0.0-beta.38",
19
45
  "react-dom": ">=16.8.0",
20
46
  "react-redux": "7.2.4",
21
47
  "react-remove-scroll": "2.4.2",
@@ -31,31 +57,5 @@
31
57
  },
32
58
  "peerDependencies": {
33
59
  "@ag-grid-community/all-modules": ">=26.2.0"
34
- },
35
- "keywords": [
36
- "web-components",
37
- "datagrid",
38
- "fintech",
39
- "grid",
40
- "data",
41
- "table",
42
- "data-table",
43
- "openfin",
44
- "ag-grid",
45
- "infinite-table",
46
- "adaptable",
47
- "blotter"
48
- ],
49
- "maintainers": [
50
- {
51
- "name": "JonnyAdaptableTools",
52
- "email": "jonny.wolfson@adaptabletools.com"
53
- }
54
- ],
55
- "author": {
56
- "name": "Jonny Wolfson",
57
- "email": "jonny.wolfson@adaptabletools.com"
58
- },
59
- "homepage": "http://www.adaptabletools.com/",
60
- "license": "SEE LICENSE IN LICENSE.md"
60
+ }
61
61
  }
@@ -1,2 +1,2 @@
1
- declare const _default: 1643291530490;
1
+ declare const _default: 1644245839064;
2
2
  export default _default;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = 1643291530490;
3
+ exports.default = 1644245839064;
@@ -75,7 +75,6 @@ export interface IAdaptable {
75
75
  _on(eventName: 'GridRefreshed', callback: () => void): () => void;
76
76
  _on(eventName: 'GridFiltered', callback: () => void): () => void;
77
77
  _on(eventName: 'SortChanged', callback: (columnSorts: ColumnSort[]) => void): () => void;
78
- _on(eventName: 'ColumnResized', callback: (colId: string) => void): () => void;
79
78
  _on(eventName: 'KeyDown', callback: (keyDownEvent: any) => void): () => void;
80
79
  _on(eventName: 'CellEditorKeyDown', callback: (param: {
81
80
  keyDownEvent: KeyboardEvent;
@@ -15,14 +15,14 @@ export interface DashboardOptions {
15
15
  */
16
16
  canFloat?: boolean;
17
17
  /**
18
- * Shows Quick Search textbox in the Dashboard Header; the UI component is still subject to the QuickSearch Entitlements
18
+ * Shows Quick Search textbox in the Dashboard Header
19
19
  *
20
20
  * @defaultValue true
21
21
  * @gridInfoItem
22
22
  */
23
23
  showQuickSearchInHeader?: boolean;
24
24
  /**
25
- * Custom Adaptable Buttons to appear in top corner of Dashboard - next to Module Buttons
25
+ * Custom Adaptable Buttons to appear in Dashboard (alongside Module Buttons)
26
26
  */
27
27
  customDashboardButtons?: AdaptableButton<DashboardButtonContext>[];
28
28
  /**
@@ -30,6 +30,7 @@ export interface DashboardOptions {
30
30
  */
31
31
  customToolbars?: CustomToolbar[];
32
32
  /**
33
+ * Position in the Dashboard to show the Module and Custom Buttons
33
34
  * @defaultValue 'right'
34
35
  */
35
36
  buttonsLocation?: 'left' | 'right';
@@ -11,7 +11,7 @@ export interface EntitlementOptions {
11
11
  */
12
12
  moduleEntitlements?: Entitlement[] | ((adaptableModule: AdaptableModule, userName: string, adaptableId: string, defaultAccessLevel: AccessLevel) => AccessLevel | undefined);
13
13
  /**
14
- * AccessLevel to use when an Entitlement is not explicitly set; may be provided as a hardcoded value or as a function to invoke
14
+ * AccessLevel to use when an Entitlement is not explicitly set; can be hardcoded value or a function to invoke
15
15
  *
16
16
  * @defaultValue 'Full'
17
17
  * @gridInfoItem
@@ -71,7 +71,7 @@ export interface GeneralOptions {
71
71
  */
72
72
  customSortComparers?: ColumnValuesComparer[];
73
73
  /**
74
- * Keep case sensitivity when AdapTableQL evaluates string-based Expressions and Predicates
74
+ * Perform case-sensitive text comparisons in all search and filter operations: QuickSearch, Filters, Query, Predicates
75
75
  *
76
76
  * @defaultValue false
77
77
  * @gridInfoItem
@@ -30,7 +30,7 @@ export interface TeamSharingOptions {
30
30
  */
31
31
  updateInterval?: number;
32
32
  /**
33
- * How user is informed when Active Shared Entities have newer revisions: can be 'Alert', 'AlertWithNotification' or 'SystemStatus'
33
+ * How user is informed when Active Shared Entities have newer revisions
34
34
  *
35
35
  * @defaultValue null (none)
36
36
  * @gridInfoItem
@@ -25,7 +25,6 @@ export interface ToolPanelOptions {
25
25
  * Key of icon to be used (beside the label) for Adaptable ToolPanel Component
26
26
  *
27
27
  * @defaultValue 'menu'
28
- * @see https://www.ag-grid.com/javascript-grid/side-bar/#sidebardef-configuration
29
28
  * @gridInfoItem
30
29
  */
31
30
  iconKey?: string;
@@ -8,7 +8,7 @@ import { BaseEventInfo } from './BaseEventInfo';
8
8
  */
9
9
  export interface SearchChangedInfo extends BaseEventInfo {
10
10
  /**
11
- * What action caused event to fire: DataSource, CurrentQuery, Filter, DataChange or Sort
11
+ * What search-related change caused the event to fire
12
12
  */
13
13
  searchChangedTrigger: 'DataSource' | 'CurrentQuery' | 'Filter' | 'DataChange' | 'Sort';
14
14
  /**
@@ -5,7 +5,8 @@ import { ColumnSort } from '../PredefinedConfig/Common/ColumnSort';
5
5
  import { GridCell } from '../PredefinedConfig/Selection/GridCell';
6
6
  import { DataUpdateConfig } from '../PredefinedConfig/Common/DataUpdateConfig';
7
7
  import { DataChangedInfo } from '../PredefinedConfig/Common/DataChangedInfo';
8
- import { CellHighlightInfo, RowHighlightInfo } from '../PredefinedConfig/Common/CellHighlightInfo';
8
+ import { CellHighlightInfo } from '../PredefinedConfig/Common/CellHighlightInfo';
9
+ import { RowHighlightInfo } from '../PredefinedConfig/Common/RowHighlightInfo';
9
10
  import { AdaptableModule } from '../PredefinedConfig/Common/Types';
10
11
  import { AccessLevel } from '../PredefinedConfig/Common/Entitlement';
11
12
  import { GridOptions, RowNode } from '@ag-grid-community/all-modules';
@@ -41,19 +42,19 @@ export interface GridApi {
41
42
  * @param dataRows rows which have been updated - send whole row and Adaptable will take care of the rest
42
43
  * @param config batch option and callback function to run post update
43
44
  */
44
- updateGridData(dataRows: any[], config?: DataUpdateConfig): void;
45
+ updateGridData(dataRows: any[], config?: DataUpdateConfig): Promise<RowNode[]>;
45
46
  /**
46
47
  * Adds rows to Adaptable (and AG Grid)
47
48
  * @param dataRows rows to add; ensure all 'mandatory' fields are included and Primary Key is unique
48
49
  * @param config batch option and callback function to run post addition
49
50
  */
50
- addGridData(dataRows: any[], config?: DataUpdateConfig): void;
51
+ addGridData(dataRows: any[], config?: DataUpdateConfig): Promise<RowNode[]>;
51
52
  /**
52
53
  * Deletes rows from Adaptable (and AG Grid)
53
54
  * @param dataRows rows which should be deleted
54
55
  * @param config batch option and callback function to run post deletion
55
56
  */
56
- deleteGridData(dataRows: any[], config?: DataUpdateConfig): void;
57
+ deleteGridData(dataRows: any[], config?: DataUpdateConfig): Promise<RowNode[]>;
57
58
  /**
58
59
  * Updates cell in Adaptable (first performs Cell & Server Validation)
59
60
  * @param columnId column to update
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const DashboardRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/DashboardRedux"));
6
6
  const ApiBase_1 = require("./ApiBase");
7
7
  const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
8
- const isEqual_1 = tslib_1.__importDefault(require("lodash-es/isEqual"));
8
+ const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual"));
9
9
  const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
10
10
  const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
11
11
  const react_dom_1 = tslib_1.__importDefault(require("react-dom"));
@@ -45,10 +45,8 @@ class FlashingCellApiImpl extends ApiBase_1.ApiBase {
45
45
  return this.getFlashingCellDefinitions().filter((fc) => !fc.IsSuspended);
46
46
  }
47
47
  getFlashingCellFlashTarget(flashingCellDefinition) {
48
- const flashTarget = flashingCellDefinition.FlashTarget === 'cell' || !flashingCellDefinition.FlashTarget
49
- ? 'cell'
50
- : 'row';
51
- return flashTarget;
48
+ var _a;
49
+ return (_a = flashingCellDefinition.FlashTarget) !== null && _a !== void 0 ? _a : 'cell';
52
50
  }
53
51
  showFlashingCell(flashingCellToShow) {
54
52
  this.addUidToAdaptableObject(flashingCellToShow);
@@ -7,7 +7,8 @@ import { GridCell } from '../../PredefinedConfig/Selection/GridCell';
7
7
  import { ColumnSort } from '../../PredefinedConfig/Common/ColumnSort';
8
8
  import { DataUpdateConfig } from '../../PredefinedConfig/Common/DataUpdateConfig';
9
9
  import { DataChangedInfo, AccessLevel, AdaptableModule } from '../../types';
10
- import { CellHighlightInfo, RowHighlightInfo } from '../../PredefinedConfig/Common/CellHighlightInfo';
10
+ import { CellHighlightInfo } from '../../PredefinedConfig/Common/CellHighlightInfo';
11
+ import { RowHighlightInfo } from '../../PredefinedConfig/Common/RowHighlightInfo';
11
12
  import { GridOptions, RowNode } from '@ag-grid-community/all-modules';
12
13
  import { GridCellRange } from '../../PredefinedConfig/Selection/GridCellRange';
13
14
  export declare class GridApiImpl extends ApiBase implements GridApi {
@@ -16,10 +17,10 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
16
17
  getGridData(): any[];
17
18
  getFilteredData(): any[];
18
19
  loadGridData(dataSource: any): void;
19
- updateGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<void>;
20
- addGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<void>;
20
+ updateGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<RowNode[]>;
21
+ addGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<RowNode[]>;
21
22
  undoCellEdit(dataChangedInfo: DataChangedInfo): boolean;
22
- deleteGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<void>;
23
+ deleteGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<RowNode[]>;
23
24
  setCellValue(columnId: string, newValue: any, primaryKeyValue: any): void;
24
25
  setCellsValue(gridCells: {
25
26
  columnId: any;
@@ -25,10 +25,12 @@ class GridApiImpl extends ApiBase_1.ApiBase {
25
25
  async updateGridData(dataRows, dataUpdateConfig) {
26
26
  const rowNodes = await this.adaptable.updateRows(dataRows, dataUpdateConfig);
27
27
  this.fireGridDataChangedEvent(dataRows, rowNodes, 'Edit');
28
+ return rowNodes;
28
29
  }
29
30
  async addGridData(dataRows, dataUpdateConfig) {
30
31
  const rowNodes = await this.adaptable.addRows(dataRows, dataUpdateConfig);
31
32
  this.fireGridDataChangedEvent(dataRows, rowNodes, 'Add');
33
+ return rowNodes;
32
34
  }
33
35
  undoCellEdit(dataChangedInfo) {
34
36
  // for the reason of this hacky solution see the comments in DataService
@@ -40,7 +42,9 @@ class GridApiImpl extends ApiBase_1.ApiBase {
40
42
  if (this.checkArrayExists(dataRows)) {
41
43
  const rowNodes = await this.adaptable.deleteRows(dataRows, dataUpdateConfig);
42
44
  this.fireGridDataChangedEvent(dataRows, rowNodes, 'Delete');
45
+ return rowNodes;
43
46
  }
47
+ return [];
44
48
  }
45
49
  setCellValue(columnId, newValue, primaryKeyValue) {
46
50
  const abColumn = this.adaptable.api.columnApi.getColumnFromId(columnId);
@@ -73,7 +73,6 @@ export declare class InternalApiImpl extends ApiBase implements InternalApi {
73
73
  private createDataChangedInfoFromGridCell;
74
74
  setLastAppliedShortCut(gridCell: GridCell | undefined): void;
75
75
  updateCurrentDraftLayout(layout: Layout): void;
76
- setDefaultDashboardTab(): void;
77
76
  getPrimaryKey(): any;
78
77
  getAdaptableInstance(): IAdaptable;
79
78
  getAgGridInstance(): any;
@@ -7,7 +7,6 @@ const SystemRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/Sy
7
7
  const SystemRedux_1 = require("../../Redux/ActionsReducers/SystemRedux");
8
8
  const GridRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/GridRedux"));
9
9
  const LayoutRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/LayoutRedux"));
10
- const DashboardRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/DashboardRedux"));
11
10
  const AlertRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/AlertRedux"));
12
11
  const DeadRedux = tslib_1.__importStar(require("../../Redux/DeadRedux"));
13
12
  const ApiBase_1 = require("./ApiBase");
@@ -69,7 +68,7 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
69
68
  const forPrimaryKey = (_a = AdaptableFlashingAlerts[primaryKey]) !== null && _a !== void 0 ? _a : {};
70
69
  const toFlashingAlert = (uuid) => { var _a; return uuid ? (_a = AdaptableFlashingAlertsMap[uuid]) !== null && _a !== void 0 ? _a : null : null; };
71
70
  if (!columnId) {
72
- return toFlashingAlert(forPrimaryKey[SystemRedux_1.FLASHING_ALERT_ROW_KEY]);
71
+ return toFlashingAlert(forPrimaryKey[SystemRedux_1.FLASHING_CELL_ROW_KEY]);
73
72
  }
74
73
  return toFlashingAlert(forPrimaryKey[columnId]);
75
74
  }
@@ -187,13 +186,6 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
187
186
  updateCurrentDraftLayout(layout) {
188
187
  this.dispatchAction(LayoutRedux.LayoutUpdateCurrentDraft(layout));
189
188
  }
190
- setDefaultDashboardTab() {
191
- const dashboardTabs = this.adaptable.api.dashboardApi.getDashboardState().Tabs;
192
- if (ArrayExtensions_1.default.IsNull(dashboardTabs)) {
193
- LoggingHelper_1.LogAdaptableInfo('Creating a default Dashboard tab');
194
- this.dispatchAction(DashboardRedux.DashboardCreateDefaultTab());
195
- }
196
- }
197
189
  getPrimaryKey() {
198
190
  return this.adaptable.adaptableOptions.primaryKey;
199
191
  }
@@ -10,7 +10,7 @@ const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectF
10
10
  const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
11
11
  const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
12
12
  const Uuid_1 = require("../../PredefinedConfig/Uuid");
13
- const isEqual_1 = tslib_1.__importDefault(require("lodash-es/isEqual"));
13
+ const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual"));
14
14
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
15
15
  const Enums_1 = require("../../PredefinedConfig/Common/Enums");
16
16
  const ArrayExtensions_1 = require("../../Utilities/Extensions/ArrayExtensions");
@@ -76,7 +76,6 @@ export interface InternalApi {
76
76
  getQueryPreviewData(): any;
77
77
  buildDataChangedInfo(config: Pick<DataChangedInfo, 'newValue' | 'oldValue' | 'column' | 'primaryKeyValue' | 'rowNode' | 'trigger'>): DataChangedInfo;
78
78
  setLastAppliedShortCut(gridCell: GridCell | undefined): void;
79
- setDefaultDashboardTab(): void;
80
79
  updateCurrentDraftLayout(layout: Layout): void;
81
80
  getPrimaryKey(): any;
82
81
  getAdaptableInstance(): IAdaptable;
@@ -15,19 +15,8 @@ export interface CellHighlightInfo {
15
15
  * Time after which Cell should be unhilighted
16
16
  */
17
17
  timeout?: number;
18
- highlightStyle: AdaptableStyle;
19
- }
20
- export interface RowHighlightInfo {
21
- /**
22
- * Primary key value for the row to be highlighted
23
- */
24
- primaryKeyValue: any;
25
- /**
26
- * Timeout after which the highlight is removed
27
- */
28
- timeout?: number;
29
18
  /**
30
- * Highlight style
19
+ * Adaptable Style to use in the Cell Highlight
31
20
  */
32
21
  highlightStyle: AdaptableStyle;
33
22
  }
@@ -35,7 +35,7 @@ export interface DataChangedInfo {
35
35
  /**
36
36
  * What triggered the change - user, background change or a reverted change?
37
37
  */
38
- trigger?: 'edit' | 'tick' | 'undo';
38
+ trigger?: 'edit' | 'tick' | 'undo' | 'aggChange';
39
39
  }
40
40
  export interface DataChangedScope {
41
41
  wholeRow: boolean;
@@ -0,0 +1,15 @@
1
+ import { AdaptableStyle } from '../../../types';
2
+ export interface RowHighlightInfo {
3
+ /**
4
+ * Primary key value for the row to be highlighted
5
+ */
6
+ primaryKeyValue: any;
7
+ /**
8
+ * Timeout after which the highlight is removed
9
+ */
10
+ timeout?: number;
11
+ /**
12
+ * Highlight style
13
+ */
14
+ highlightStyle: AdaptableStyle;
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -22,7 +22,7 @@ export declare type AdaptableModuleButtons = AdaptableModuleButton[];
22
22
  export declare type AdaptableModuleButton = 'Alert' | 'FlashingCell' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSource' | 'Export' | 'Filter' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StateManagement' | 'SystemStatus' | 'TeamSharing' | 'Theme';
23
23
  export declare type AdaptableStateKeys = AdaptableStateKey[];
24
24
  export declare type AdaptableStateKey = 'Alert' | 'FlashingCell' | 'Application' | 'CalculatedColumn' | 'Charting' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataSource' | 'Export' | 'Filter' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'Theme' | 'ToolPanel';
25
- export declare type AdaptableModule = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'Charting' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSource' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StateManagement' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
25
+ export declare type AdaptableModule = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'Charting' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSource' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StateManagement' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel' | 'CustomSettingsPanelModule';
26
26
  export declare type AdaptableSettingsPanel = 'Alert' | 'CalculatedColumn' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSource' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'Layout' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'StateManagement' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
27
27
  export declare type TypeHint<Base, Literals> = (Base & {
28
28
  __subType?: true;
@@ -35,16 +35,16 @@ export interface DashboardState extends ConfigState {
35
35
  */
36
36
  IsHidden?: boolean;
37
37
  /**
38
- * Position of Dashboard in 'floating mode' - set and stored by AdapTable
38
+ * Position of Dashboard when in 'floating mode'
39
39
  */
40
40
  FloatingPosition?: AdaptableCoordinate;
41
41
  /**
42
- * Module Buttons visible in Dasbhoard Header when application loads - open popup screen for associated AdapTable Module
43
- * @defaultValue Empty Array
42
+ * Module Buttons which open screen in Settings Panel for associated AdapTable Module
43
+ * @defaultValue ['SettingsPanel']
44
44
  */
45
45
  ModuleButtons?: AdaptableModuleButtons;
46
46
  /**
47
- * Title to display in Dashboard Header; if missing, 'adaptableId' property in Adaptable Options is used
47
+ * Title to display in Dashboard Header
48
48
  * @defaultValue `adaptableId` in Adaptable Options
49
49
  */
50
50
  DashboardTitle?: string;
@@ -24,6 +24,7 @@ export interface FlashingCellState extends ConfigState {
24
24
  */
25
25
  FlashingCellDefinitions?: FlashingCellDefinition[];
26
26
  }
27
+ export declare type FlashTargetTypes = 'row' | 'cell' | 'aggFuncCell';
27
28
  /**
28
29
  * The Flashing Cell Definition
29
30
  */
@@ -40,7 +41,7 @@ export interface FlashingCellDefinition extends SuspendableObject {
40
41
  * Should a cell or whole row flash
41
42
  * @defaultValue 'cell'
42
43
  */
43
- FlashTarget?: 'row' | 'cell';
44
+ FlashTarget?: FlashTargetTypes | FlashTargetTypes[];
44
45
  /**
45
46
  * Style for 'Down' value changes
46
47
  * @defaultValue Red BackColour
@@ -6,7 +6,8 @@ import type { IPushPullState, IPushPullReport, IPushPullDomain } from './IPushPu
6
6
  import { Glue42State, Glue42Report } from './Glue42State';
7
7
  import { OpenFinState, OpenFinReport } from './OpenFinState';
8
8
  import { AdaptableAlert } from './Common/AdaptableAlert';
9
- import { CellHighlightInfo, RowHighlightInfo } from './Common/CellHighlightInfo';
9
+ import { CellHighlightInfo } from './Common/CellHighlightInfo';
10
+ import { RowHighlightInfo } from './Common/RowHighlightInfo';
10
11
  import { SystemStatusMessageInfo } from './Common/SystemStatusMessageInfo';
11
12
  import { CachedQuery } from './QueryState';
12
13
  import { AdaptableFlashingCell } from './Common/AdaptableFlashingCell';
@@ -35,10 +35,6 @@ export declare const DASHBOARD_SET_FLOATING_POSITION = "DASHBOARD_SET_FLOATING_P
35
35
  * @ReduxAction New Dashboard Tabs have been set
36
36
  */
37
37
  export declare const DASHBOARD_SET_TABS = "DASHBOARD_SET_TABS";
38
- /**
39
- * @ReduxAction A default Tab has been created
40
- */
41
- export declare const DASHBOARD_CREATE_DEFAULT_TAB = "DASHBOARD_CREATE_DEFAULT_TAB";
42
38
  /**
43
39
  * @ReduxAction A Toolbar has been closed
44
40
  */
@@ -85,8 +81,6 @@ export interface DashboardSetFloatingPositionAction extends Redux.Action {
85
81
  export interface DashboardCloseToolbarAction extends Redux.Action {
86
82
  toolbar: AdaptableDashboardToolbar;
87
83
  }
88
- export interface DashboardCreateDefaultTabAction extends Redux.Action {
89
- }
90
84
  export interface DashboardSetTabsAction extends Redux.Action {
91
85
  Tabs: DashboardTab[];
92
86
  }
@@ -109,7 +103,6 @@ export declare const DashboardSetIsHidden: (IsHidden: boolean) => DashboardSetIs
109
103
  export declare const DashboardSetIsInline: (IsInline: boolean) => DashboardSetIsInlineAction;
110
104
  export declare const DashboardSetFloatingPosition: (FloatingPosition: AdaptableCoordinate) => DashboardSetFloatingPositionAction;
111
105
  export declare const DashboardSetTabs: (Tabs: DashboardTab[]) => DashboardSetTabsAction;
112
- export declare const DashboardCreateDefaultTab: () => DashboardCreateDefaultTabAction;
113
106
  export declare const DashboardCloseToolbar: (toolbar: AdaptableDashboardToolbar) => DashboardCloseToolbarAction;
114
107
  export declare const DashboardSetTitle: (title: string) => DashboardSetTitleAction;
115
108
  export declare const DashboardReady: (dashboardState: DashboardState) => DashboardReadyAction;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DashboardReducer = exports.DashboardReady = exports.DashboardSetTitle = exports.DashboardCloseToolbar = exports.DashboardCreateDefaultTab = exports.DashboardSetTabs = exports.DashboardSetFloatingPosition = exports.DashboardSetIsInline = exports.DashboardSetIsHidden = exports.DashboardSetIsFloating = exports.DashboardSetIsCollapsed = exports.DashboardSetActiveTabIndex = exports.DashboardSetModuleButtons = exports.DASHBOARD_READY = exports.DASHBOARD_SET_TITLE = exports.DASHBOARD_CLOSE_TOOLBAR = exports.DASHBOARD_CREATE_DEFAULT_TAB = exports.DASHBOARD_SET_TABS = exports.DASHBOARD_SET_FLOATING_POSITION = exports.DASHBOARD_SET_IS_HIDDEN = exports.DASHBOARD_SET_IS_INLINE = exports.DASHBOARD_SET_IS_FLOATING = exports.DASHBOARD_SET_IS_COLLAPSED = exports.DASHBOARD_ACTIVE_TAB_INDEX_CHANGE = exports.DASHBOARD_SET_MODULE_BUTTONS = void 0;
3
+ exports.DashboardReducer = exports.DashboardReady = exports.DashboardSetTitle = exports.DashboardCloseToolbar = exports.DashboardSetTabs = exports.DashboardSetFloatingPosition = exports.DashboardSetIsInline = exports.DashboardSetIsHidden = exports.DashboardSetIsFloating = exports.DashboardSetIsCollapsed = exports.DashboardSetActiveTabIndex = exports.DashboardSetModuleButtons = exports.DASHBOARD_READY = exports.DASHBOARD_SET_TITLE = exports.DASHBOARD_CLOSE_TOOLBAR = exports.DASHBOARD_SET_TABS = exports.DASHBOARD_SET_FLOATING_POSITION = exports.DASHBOARD_SET_IS_HIDDEN = exports.DASHBOARD_SET_IS_INLINE = exports.DASHBOARD_SET_IS_FLOATING = exports.DASHBOARD_SET_IS_COLLAPSED = exports.DASHBOARD_ACTIVE_TAB_INDEX_CHANGE = exports.DASHBOARD_SET_MODULE_BUTTONS = void 0;
4
4
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
5
5
  /**
6
6
  * @ReduxAction The Module Buttons have been set in the Dashboard
@@ -34,10 +34,6 @@ exports.DASHBOARD_SET_FLOATING_POSITION = 'DASHBOARD_SET_FLOATING_POSITION';
34
34
  * @ReduxAction New Dashboard Tabs have been set
35
35
  */
36
36
  exports.DASHBOARD_SET_TABS = 'DASHBOARD_SET_TABS';
37
- /**
38
- * @ReduxAction A default Tab has been created
39
- */
40
- exports.DASHBOARD_CREATE_DEFAULT_TAB = 'DASHBOARD_CREATE_DEFAULT_TAB';
41
37
  /**
42
38
  * @ReduxAction A Toolbar has been closed
43
39
  */
@@ -82,9 +78,6 @@ exports.DashboardSetTabs = (Tabs) => ({
82
78
  type: exports.DASHBOARD_SET_TABS,
83
79
  Tabs,
84
80
  });
85
- exports.DashboardCreateDefaultTab = () => ({
86
- type: exports.DASHBOARD_CREATE_DEFAULT_TAB,
87
- });
88
81
  exports.DashboardCloseToolbar = (toolbar) => ({
89
82
  toolbar,
90
83
  type: exports.DASHBOARD_CLOSE_TOOLBAR,
@@ -146,9 +139,6 @@ exports.DashboardReducer = (state = initialState, action) => {
146
139
  const { Tabs } = action;
147
140
  return Object.assign(Object.assign({}, state), { Tabs });
148
141
  }
149
- case exports.DASHBOARD_CREATE_DEFAULT_TAB: {
150
- return Object.assign(Object.assign({}, state), { Tabs: [{ Name: 'Toolbars', Toolbars: ['Query', 'Layout', 'Export', 'Filter'] }] });
151
- }
152
142
  case exports.DASHBOARD_CLOSE_TOOLBAR: {
153
143
  const actionTyped = action;
154
144
  const tabs = [].concat(state.Tabs);