@adaptabletools/adaptable 11.0.9 → 11.1.1-canary.1

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 (150) hide show
  1. package/base.css +19 -11
  2. package/bundle.cjs.js +125 -125
  3. package/index.css +23 -11
  4. package/package.json +2 -2
  5. package/publishTimestamp.d.ts +1 -1
  6. package/publishTimestamp.js +1 -1
  7. package/src/AdaptableInterfaces/IAdaptable.d.ts +4 -2
  8. package/src/AdaptableOptions/AlertOptions.d.ts +2 -2
  9. package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +2 -2
  10. package/src/AdaptableOptions/EditOptions.d.ts +2 -2
  11. package/src/AdaptableOptions/LayoutOptions.d.ts +5 -1
  12. package/src/Api/AlertApi.d.ts +5 -6
  13. package/src/Api/BulkUpdateApi.d.ts +5 -0
  14. package/src/Api/ConfigApi.d.ts +1 -1
  15. package/src/Api/DataChangeHistoryApi.d.ts +3 -3
  16. package/src/Api/EventApi.d.ts +1 -1
  17. package/src/Api/Events/CellChanged.d.ts +2 -2
  18. package/src/Api/Events/GridDataChanged.d.ts +5 -1
  19. package/src/Api/ExportApi.d.ts +3 -3
  20. package/src/Api/FreeTextColumnApi.d.ts +3 -3
  21. package/src/Api/GridApi.d.ts +27 -6
  22. package/src/Api/Implementation/AlertApiImpl.d.ts +7 -4
  23. package/src/Api/Implementation/AlertApiImpl.js +86 -59
  24. package/src/Api/Implementation/BulkUpdateApiImpl.d.ts +1 -0
  25. package/src/Api/Implementation/BulkUpdateApiImpl.js +4 -0
  26. package/src/Api/Implementation/ConfigApiImpl.d.ts +1 -1
  27. package/src/Api/Implementation/ConfigApiImpl.js +7 -2
  28. package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +3 -3
  29. package/src/Api/Implementation/EventApiImpl.js +1 -1
  30. package/src/Api/Implementation/ExportApiImpl.d.ts +2 -2
  31. package/src/Api/Implementation/ExportApiImpl.js +7 -8
  32. package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +2 -2
  33. package/src/Api/Implementation/FreeTextColumnApiImpl.js +7 -7
  34. package/src/Api/Implementation/GridApiImpl.d.ts +11 -3
  35. package/src/Api/Implementation/GridApiImpl.js +29 -8
  36. package/src/Api/Implementation/InternalApiImpl.d.ts +11 -4
  37. package/src/Api/Implementation/InternalApiImpl.js +41 -5
  38. package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -1
  39. package/src/Api/Implementation/LayoutApiImpl.js +19 -4
  40. package/src/Api/Implementation/ScheduleApiImpl.js +1 -0
  41. package/src/Api/Implementation/SettingsPanelApiImpl.js +7 -1
  42. package/src/Api/InternalApi.d.ts +10 -3
  43. package/src/Api/LayoutApi.d.ts +14 -3
  44. package/src/PredefinedConfig/AlertState.d.ts +7 -3
  45. package/src/PredefinedConfig/Common/AdaptableAlert.d.ts +35 -6
  46. package/src/PredefinedConfig/Common/AdaptableAlert.js +7 -0
  47. package/src/PredefinedConfig/Common/AdaptableFlashingCell.d.ts +2 -2
  48. package/src/PredefinedConfig/Common/AdaptablePredicate.js +20 -0
  49. package/src/PredefinedConfig/Common/{DataChangedInfo.d.ts → CellDataChangedInfo.d.ts} +2 -6
  50. package/src/PredefinedConfig/Common/{DataChangedInfo.js → CellDataChangedInfo.js} +0 -0
  51. package/src/PredefinedConfig/Common/CellHighlightInfo.d.ts +1 -1
  52. package/src/PredefinedConfig/Common/DataChangedScope.d.ts +4 -0
  53. package/src/PredefinedConfig/Common/DataChangedScope.js +2 -0
  54. package/src/PredefinedConfig/Common/Entitlement.d.ts +2 -2
  55. package/src/PredefinedConfig/Common/Menu.d.ts +3 -0
  56. package/src/PredefinedConfig/Common/RowsHighlightInfo.d.ts +15 -0
  57. package/src/PredefinedConfig/Common/RowsHighlightInfo.js +2 -0
  58. package/src/PredefinedConfig/ConfigState.d.ts +4 -1
  59. package/src/PredefinedConfig/LayoutState.d.ts +1 -1
  60. package/src/PredefinedConfig/PopupState.d.ts +2 -1
  61. package/src/PredefinedConfig/SystemState.d.ts +2 -2
  62. package/src/Redux/ActionsReducers/FlashingCellRedux.js +4 -8
  63. package/src/Redux/ActionsReducers/GridRedux.d.ts +5 -5
  64. package/src/Redux/ActionsReducers/PopupRedux.d.ts +18 -0
  65. package/src/Redux/ActionsReducers/PopupRedux.js +36 -1
  66. package/src/Redux/ActionsReducers/SystemRedux.d.ts +16 -5
  67. package/src/Redux/ActionsReducers/SystemRedux.js +37 -6
  68. package/src/Redux/Store/AdaptableReduxMerger.d.ts +1 -0
  69. package/src/Redux/Store/AdaptableReduxMerger.js +40 -4
  70. package/src/Redux/Store/AdaptableStore.js +76 -34
  71. package/src/Strategy/AlertModule.d.ts +5 -3
  72. package/src/Strategy/AlertModule.js +68 -22
  73. package/src/Strategy/BulkUpdateModule.js +7 -2
  74. package/src/Strategy/DataChangeHistoryModule.js +8 -6
  75. package/src/Strategy/ExportModule.js +1 -0
  76. package/src/Strategy/FlashingCellModule.d.ts +2 -2
  77. package/src/Strategy/FlashingCellModule.js +21 -15
  78. package/src/Strategy/FormatColumnModule.js +4 -2
  79. package/src/Strategy/SmartEditModule.js +6 -0
  80. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +1 -0
  81. package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +1 -1
  82. package/src/Utilities/Defaults/DefaultSettingsPanel.js +6 -2
  83. package/src/Utilities/Emitter.d.ts +1 -1
  84. package/src/Utilities/Emitter.js +6 -3
  85. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.d.ts +2 -2
  86. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +1 -1
  87. package/src/Utilities/Interface/MessagePopups.d.ts +13 -0
  88. package/src/Utilities/ObjectFactory.d.ts +9 -7
  89. package/src/Utilities/ObjectFactory.js +26 -12
  90. package/src/Utilities/Services/CalculatedColumnExpressionService.js +3 -3
  91. package/src/Utilities/Services/DataService.d.ts +5 -5
  92. package/src/Utilities/Services/DataService.js +12 -10
  93. package/src/Utilities/Services/Interface/IAlertService.d.ts +2 -2
  94. package/src/Utilities/Services/Interface/IDataService.d.ts +6 -6
  95. package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +3 -3
  96. package/src/Utilities/Services/Interface/IValidationService.d.ts +4 -4
  97. package/src/Utilities/Services/LicenseService.js +1 -1
  98. package/src/Utilities/Services/ModuleService.js +1 -1
  99. package/src/Utilities/Services/QueryLanguageService.d.ts +3 -3
  100. package/src/Utilities/Services/ValidationService.d.ts +4 -4
  101. package/src/Utilities/Services/ValidationService.js +18 -17
  102. package/src/View/AdaptableView.js +2 -0
  103. package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +16 -9
  104. package/src/View/Alert/Wizard/AlertButtonsEditor.js +13 -3
  105. package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +2 -0
  106. package/src/View/Alert/Wizard/AlertWizard.js +83 -1
  107. package/src/View/CellSummary/CellSummaryViewPanel.js +1 -2
  108. package/src/View/Components/FilterForm/FilterForm.js +2 -2
  109. package/src/View/Components/Panels/PanelFooter.d.ts +10 -0
  110. package/src/View/Components/Panels/PanelFooter.js +14 -0
  111. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +12 -7
  112. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +1 -1
  113. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +3 -1
  114. package/src/View/Components/Popups/{AdaptablePopup/Utilities.d.ts → Utilities.d.ts} +4 -0
  115. package/src/View/Components/Popups/{AdaptablePopup/Utilities.js → Utilities.js} +5 -2
  116. package/src/View/Components/Popups/WindowPopups/WindowPopups.d.ts +6 -0
  117. package/src/View/Components/Popups/WindowPopups/WindowPopups.js +32 -0
  118. package/src/View/Components/Popups/WindowPopups/windowFactory.d.ts +4 -0
  119. package/src/View/Components/Popups/WindowPopups/windowFactory.js +8 -0
  120. package/src/View/DataChangeHistory/DataChangeHistoryGrid.d.ts +2 -2
  121. package/src/View/DataChangeHistory/DataChangeHistoryPopup.d.ts +2 -2
  122. package/src/View/Layout/LayoutEditorStandalonePopup.d.ts +3 -0
  123. package/src/View/Layout/LayoutEditorStandalonePopup.js +76 -0
  124. package/src/View/Layout/LayoutPopup.js +3 -24
  125. package/src/View/Layout/LayoutViewPanel.d.ts +1 -4
  126. package/src/View/Layout/LayoutViewPanel.js +5 -18
  127. package/src/View/Layout/Wizard/LayoutEditor/ColumnLabels.d.ts +9 -0
  128. package/src/View/Layout/Wizard/LayoutEditor/ColumnLabels.js +55 -0
  129. package/src/View/Layout/Wizard/LayoutEditor/index.js +3 -68
  130. package/src/View/Layout/Wizard/LayoutEditorWizard.d.ts +1 -0
  131. package/src/View/Layout/Wizard/LayoutEditorWizard.js +35 -7
  132. package/src/View/SystemStatus/SystemStatusEntityRow.js +1 -2
  133. package/src/agGrid/Adaptable.d.ts +6 -4
  134. package/src/agGrid/Adaptable.js +115 -117
  135. package/src/agGrid/agGridHelper.d.ts +1 -1
  136. package/src/agGrid/agGridHelper.js +23 -8
  137. package/src/agGrid/editors/AdaptableDateEditor/index.js +1 -1
  138. package/src/agGrid/editors/AdaptableNumberEditor/index.js +1 -1
  139. package/src/components/Dialog/index.js +1 -1
  140. package/src/components/Modal/index.js +1 -1
  141. package/src/components/WindowModal/WindowModal.d.ts +10 -8
  142. package/src/components/WindowModal/WindowModal.js +4 -2
  143. package/src/components/WindowModal/useStacking.d.ts +9 -0
  144. package/src/components/WindowModal/useStacking.js +45 -0
  145. package/src/env.js +3 -3
  146. package/src/metamodel/adaptable.metamodel.d.ts +85 -45
  147. package/src/metamodel/adaptable.metamodel.js +185 -84
  148. package/src/types.d.ts +5 -3
  149. package/version.d.ts +1 -1
  150. package/version.js +1 -1
@@ -7,6 +7,7 @@ const re_resizable_1 = require("re-resizable");
7
7
  const useDraggable_1 = tslib_1.__importDefault(require("../utils/useDraggable"));
8
8
  const UIHelper_1 = require("../../View/UIHelper");
9
9
  const react_dom_1 = require("react-dom");
10
+ const useStacking_1 = require("./useStacking");
10
11
  let portalElement;
11
12
  const ensurePortalElement = () => {
12
13
  if (!UIHelper_1.isBrowserDocumentAvailable()) {
@@ -43,6 +44,7 @@ exports.WindowModal = (props) => {
43
44
  ensurePortalElement();
44
45
  const positionDeltaRef = React.useRef(null);
45
46
  const positionRef = React.useRef(props.position);
47
+ const stacking = useStacking_1.useStacking();
46
48
  /**
47
49
  * This is needed because the function called in onDrop is saved when
48
50
  * it gets attached to the DOM element event handler.
@@ -50,7 +52,7 @@ exports.WindowModal = (props) => {
50
52
  */
51
53
  positionRef.current = props.position;
52
54
  const style = {
53
- zIndex: 1000,
55
+ zIndex: stacking.zIndex,
54
56
  position: 'absolute',
55
57
  left: props.position.x,
56
58
  top: props.position.y,
@@ -97,7 +99,7 @@ exports.WindowModal = (props) => {
97
99
  }, []);
98
100
  return react_dom_1.createPortal(React.createElement("div", { style: style,
99
101
  //@ts-ignore
100
- ref: targetRef },
102
+ ref: targetRef, onMouseDown: stacking.bringInFront },
101
103
  React.createElement(re_resizable_1.Resizable, { onResizeStop: handleResizeStop, onResize: handleResize, bounds: "window", defaultSize: {
102
104
  width: props.size.width,
103
105
  height: props.size.height,
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Used to facilitate the stacking between multiple opened windows.
3
+ * When calling 'bringToFront' brings caller to top.
4
+ * This is done by changing the zIndex of all registered window-modals.
5
+ */
6
+ export declare const useStacking: () => {
7
+ zIndex: number;
8
+ bringInFront: () => void;
9
+ };
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useStacking = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const React = tslib_1.__importStar(require("react"));
6
+ const uuid_1 = tslib_1.__importDefault(require("uuid"));
7
+ const setZIndexMap = {};
8
+ const zIndexMap = [];
9
+ const BASE_Z_INDEX = 1000;
10
+ /**
11
+ * Used to facilitate the stacking between multiple opened windows.
12
+ * When calling 'bringToFront' brings caller to top.
13
+ * This is done by changing the zIndex of all registered window-modals.
14
+ */
15
+ exports.useStacking = () => {
16
+ const modalZIndexId = React.useMemo(() => uuid_1.default(), []);
17
+ const [zIndex, setZIndex] = React.useState(BASE_Z_INDEX);
18
+ React.useEffect(() => {
19
+ setZIndexMap[modalZIndexId] = setZIndex;
20
+ return () => {
21
+ // clean-up
22
+ delete setZIndexMap[modalZIndexId];
23
+ const indexInMap = zIndexMap.indexOf(modalZIndexId);
24
+ zIndexMap.splice(indexInMap, 1);
25
+ };
26
+ }, [modalZIndexId]);
27
+ const bringInFront = React.useCallback(() => {
28
+ if (zIndexMap.includes(modalZIndexId)) {
29
+ const indexInMap = zIndexMap.indexOf(modalZIndexId);
30
+ zIndexMap.splice(indexInMap, 1);
31
+ zIndexMap.push(modalZIndexId);
32
+ }
33
+ else {
34
+ zIndexMap.push(modalZIndexId);
35
+ }
36
+ zIndexMap.forEach((id, index) => {
37
+ var _a;
38
+ (_a = setZIndexMap === null || setZIndexMap === void 0 ? void 0 : setZIndexMap[id]) === null || _a === void 0 ? void 0 : _a.call(setZIndexMap, BASE_Z_INDEX + index * 10);
39
+ });
40
+ }, []);
41
+ return {
42
+ zIndex,
43
+ bringInFront,
44
+ };
45
+ };
package/src/env.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = {
4
- IPUSHPULL_API_KEY: "CbBaMaoqHVifScrYwKssGnGyNkv5xHOhQVGm3cYP",
5
- IPUSHPULL_API_SECRET: "xYzE51kuHyyt9kQCvMe0tz0H2sDSjyEQcF5SOBlPQmcL9em0NqcCzyqLYj5fhpuZxQ8BiVcYl6zoOHeI6GYZj1TkUiiLVFoW3HUxiCdEUjlPS8Vl2YHUMEPD5qkLYnGj",
6
- INFINITE_TABLE_LICENSE_KEY: "StartDate=2021-06-29|EndDate=2030-01-01|Owner=Adaptable|Type=distribution|TS=1624971462479|C=137829811,1004007071,2756196225,1839832928,3994409405,636616862",
4
+ IPUSHPULL_API_KEY: 'CbBaMaoqHVifScrYwKssGnGyNkv5xHOhQVGm3cYP',
5
+ IPUSHPULL_API_SECRET: 'xYzE51kuHyyt9kQCvMe0tz0H2sDSjyEQcF5SOBlPQmcL9em0NqcCzyqLYj5fhpuZxQ8BiVcYl6zoOHeI6GYZj1TkUiiLVFoW3HUxiCdEUjlPS8Vl2YHUMEPD5qkLYnGj',
6
+ INFINITE_TABLE_LICENSE_KEY: 'StartDate=2021-06-29|EndDate=2030-01-01|Owner=Adaptable|Type=distribution|TS=1624971462479|C=137829811,1004007071,2756196225,1839832928,3994409405,636616862',
7
7
  };
@@ -78,27 +78,23 @@ export declare const ADAPTABLE_METAMODEL: {
78
78
  name: string;
79
79
  kind: string;
80
80
  description: string;
81
+ };
82
+ AdaptableAlertBase: {
83
+ name: string;
84
+ kind: string;
85
+ description: string;
81
86
  properties: ({
82
87
  name: string;
83
88
  kind: string;
84
89
  description: string;
85
90
  uiLabel: string;
86
91
  reference: string;
87
- isOptional?: undefined;
88
- } | {
89
- name: string;
90
- kind: string;
91
- description: string;
92
- uiLabel: string;
93
- isOptional: boolean;
94
- reference: string;
95
92
  } | {
96
93
  name: string;
97
94
  kind: string;
98
95
  description: string;
99
96
  uiLabel: string;
100
97
  reference?: undefined;
101
- isOptional?: undefined;
102
98
  })[];
103
99
  };
104
100
  AdaptableAlertQuery: {
@@ -149,6 +145,18 @@ export declare const ADAPTABLE_METAMODEL: {
149
145
  kind: string;
150
146
  description: string;
151
147
  };
148
+ AdaptableCellChangedAlert: {
149
+ name: string;
150
+ kind: string;
151
+ description: string;
152
+ properties: {
153
+ name: string;
154
+ kind: string;
155
+ description: string;
156
+ uiLabel: string;
157
+ reference: string;
158
+ }[];
159
+ };
152
160
  AdaptableColumn: {
153
161
  name: string;
154
162
  kind: string;
@@ -514,6 +522,18 @@ export declare const ADAPTABLE_METAMODEL: {
514
522
  reference: string;
515
523
  }[];
516
524
  };
525
+ AdaptableRowChangedAlert: {
526
+ name: string;
527
+ kind: string;
528
+ description: string;
529
+ properties: {
530
+ name: string;
531
+ kind: string;
532
+ description: string;
533
+ uiLabel: string;
534
+ reference: string;
535
+ }[];
536
+ };
517
537
  AdaptableScope: {
518
538
  name: string;
519
539
  kind: string;
@@ -832,6 +852,18 @@ export declare const ADAPTABLE_METAMODEL: {
832
852
  isOptional: boolean;
833
853
  }[];
834
854
  };
855
+ BaseMenuContext: {
856
+ name: string;
857
+ kind: string;
858
+ description: string;
859
+ properties: {
860
+ name: string;
861
+ kind: string;
862
+ description: string;
863
+ uiLabel: string;
864
+ reference: string;
865
+ }[];
866
+ };
835
867
  BulkUpdateApi: {
836
868
  name: string;
837
869
  kind: string;
@@ -968,6 +1000,40 @@ export declare const ADAPTABLE_METAMODEL: {
968
1000
  isOptional: boolean;
969
1001
  })[];
970
1002
  };
1003
+ CellDataChangedInfo: {
1004
+ name: string;
1005
+ kind: string;
1006
+ description: string;
1007
+ properties: ({
1008
+ name: string;
1009
+ kind: string;
1010
+ description: string;
1011
+ uiLabel: string;
1012
+ reference?: undefined;
1013
+ isOptional?: undefined;
1014
+ } | {
1015
+ name: string;
1016
+ kind: string;
1017
+ description: string;
1018
+ uiLabel: string;
1019
+ reference: string;
1020
+ isOptional?: undefined;
1021
+ } | {
1022
+ name: string;
1023
+ kind: string;
1024
+ description: string;
1025
+ uiLabel: string;
1026
+ isOptional: boolean;
1027
+ reference?: undefined;
1028
+ } | {
1029
+ name: string;
1030
+ kind: string;
1031
+ description: string;
1032
+ uiLabel: string;
1033
+ isOptional: boolean;
1034
+ reference: string;
1035
+ })[];
1036
+ };
971
1037
  CellHighlightInfo: {
972
1038
  name: string;
973
1039
  kind: string;
@@ -1563,40 +1629,6 @@ export declare const ADAPTABLE_METAMODEL: {
1563
1629
  uiLabel: string;
1564
1630
  }[];
1565
1631
  };
1566
- DataChangedInfo: {
1567
- name: string;
1568
- kind: string;
1569
- description: string;
1570
- properties: ({
1571
- name: string;
1572
- kind: string;
1573
- description: string;
1574
- uiLabel: string;
1575
- reference?: undefined;
1576
- isOptional?: undefined;
1577
- } | {
1578
- name: string;
1579
- kind: string;
1580
- description: string;
1581
- uiLabel: string;
1582
- reference: string;
1583
- isOptional?: undefined;
1584
- } | {
1585
- name: string;
1586
- kind: string;
1587
- description: string;
1588
- uiLabel: string;
1589
- isOptional: boolean;
1590
- reference?: undefined;
1591
- } | {
1592
- name: string;
1593
- kind: string;
1594
- description: string;
1595
- uiLabel: string;
1596
- isOptional: boolean;
1597
- reference: string;
1598
- })[];
1599
- };
1600
1632
  DataChangeHistoryApi: {
1601
1633
  name: string;
1602
1634
  kind: string;
@@ -2643,7 +2675,7 @@ export declare const ADAPTABLE_METAMODEL: {
2643
2675
  name: string;
2644
2676
  kind: string;
2645
2677
  description: string;
2646
- properties: {
2678
+ properties: ({
2647
2679
  name: string;
2648
2680
  kind: string;
2649
2681
  description: string;
@@ -2651,7 +2683,15 @@ export declare const ADAPTABLE_METAMODEL: {
2651
2683
  isOptional: boolean;
2652
2684
  gridInfo: string;
2653
2685
  defaultValue: string;
2654
- }[];
2686
+ } | {
2687
+ name: string;
2688
+ kind: string;
2689
+ description: string;
2690
+ uiLabel: string;
2691
+ isOptional: boolean;
2692
+ gridInfo?: undefined;
2693
+ defaultValue?: undefined;
2694
+ })[];
2655
2695
  };
2656
2696
  LayoutState: {
2657
2697
  name: string;