@adaptabletools/adaptable 13.1.1-canary.0 → 13.1.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 (52) hide show
  1. package/base.css +561 -1971
  2. package/base.css.map +1 -1
  3. package/bundle.cjs.js +224 -224
  4. package/index.css +196 -847
  5. package/index.css.map +1 -1
  6. package/package.json +2 -2
  7. package/publishTimestamp.d.ts +1 -1
  8. package/publishTimestamp.js +1 -1
  9. package/src/AdaptableOptions/ActionOptions.d.ts +4 -1
  10. package/src/AdaptableOptions/GeneralOptions.d.ts +6 -0
  11. package/src/Api/IPushPullApi.d.ts +1 -1
  12. package/src/Api/Implementation/FormatColumnApiImpl.js +3 -3
  13. package/src/Api/Implementation/InternalApiImpl.d.ts +4 -0
  14. package/src/Api/Implementation/InternalApiImpl.js +7 -0
  15. package/src/Api/InternalApi.d.ts +4 -0
  16. package/src/PredefinedConfig/SystemState.d.ts +7 -0
  17. package/src/Redux/ActionsReducers/QuickSearchRedux.d.ts +1 -1
  18. package/src/Redux/ActionsReducers/QuickSearchRedux.js +1 -1
  19. package/src/Redux/ActionsReducers/SystemRedux.d.ts +8 -0
  20. package/src/Redux/ActionsReducers/SystemRedux.js +32 -2
  21. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +1 -0
  22. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +0 -4
  23. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +8 -10
  24. package/src/Utilities/Helpers/FormatHelper.d.ts +1 -1
  25. package/src/Utilities/Helpers/FormatHelper.js +7 -1
  26. package/src/Utilities/Services/LicenseService/index.js +1 -1
  27. package/src/View/Components/Charting/ChartingViewPanel.js +9 -7
  28. package/src/View/Components/Charting/ShowChartButton.js +6 -6
  29. package/src/View/Components/FilterForm/QuickFilterForm.js +2 -2
  30. package/src/View/Components/RangesComponent.js +1 -1
  31. package/src/View/Dashboard/Dashboard.js +3 -2
  32. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +2 -2
  33. package/src/agGrid/Adaptable.d.ts +10 -1
  34. package/src/agGrid/Adaptable.js +74 -6
  35. package/src/components/ColorPicker/ColorPicker.js +1 -1
  36. package/src/components/Datepicker/index.d.ts +1 -1
  37. package/src/components/Datepicker/index.js +1 -1
  38. package/src/components/DropdownButton/index.js +2 -2
  39. package/src/components/OverlayTrigger/Overlay.d.ts +1 -4
  40. package/src/components/OverlayTrigger/Overlay.js +3 -40
  41. package/src/components/OverlayTrigger/index.d.ts +4 -4
  42. package/src/components/OverlayTrigger/index.js +71 -50
  43. package/src/components/SimpleButton/index.d.ts +0 -2
  44. package/src/components/SimpleButton/index.js +2 -2
  45. package/src/components/Tooltip/index.d.ts +1 -3
  46. package/src/components/Tooltip/index.js +2 -2
  47. package/src/metamodel/adaptable.metamodel.d.ts +7 -0
  48. package/src/metamodel/adaptable.metamodel.js +1 -1
  49. package/version.d.ts +1 -1
  50. package/version.js +1 -1
  51. package/src/components/OverlayTrigger/getOverlayStyle.d.ts +0 -13
  52. package/src/components/OverlayTrigger/getOverlayStyle.js +0 -56
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "13.1.1-canary.0";
1
+ declare const _default: "13.1.1";
2
2
  export default _default;
package/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = '13.1.1-canary.0'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
3
+ exports.default = '13.1.1'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
@@ -1,13 +0,0 @@
1
- import { CSSProperties } from 'react';
2
- import { BoundingClientRect } from '../utils/getAvailableSizeInfo';
3
- export declare type OverlayHorizontalAlign = 'center' | 'left' | 'right' | 'auto';
4
- interface OverlayStyleParam {
5
- targetRect: BoundingClientRect;
6
- constrainRect: BoundingClientRect;
7
- maxSizeOffset?: number;
8
- anchor: 'vertical' | 'horizontal';
9
- alignHorizontal?: OverlayHorizontalAlign;
10
- targetOffset?: number;
11
- }
12
- declare const getOverlayStyle: ({ targetRect, constrainRect, anchor, targetOffset, alignHorizontal, }: OverlayStyleParam) => CSSProperties;
13
- export default getOverlayStyle;
@@ -1,56 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const getAvailableSizeInfo_1 = tslib_1.__importDefault(require("../utils/getAvailableSizeInfo"));
5
- const globalObject = typeof globalThis !== 'undefined' ? globalThis : window;
6
- const getWindowSize = () => ({
7
- width: globalObject.innerWidth,
8
- height: globalObject.innerHeight,
9
- });
10
- const getOverlayStyle = ({ targetRect, constrainRect, anchor, targetOffset, alignHorizontal, }) => {
11
- alignHorizontal = alignHorizontal || 'center';
12
- const sizeInfo = (0, getAvailableSizeInfo_1.default)({ targetRect, constrainRect });
13
- const overlayStyle = {
14
- maxWidth: sizeInfo.maxWidth,
15
- maxHeight: sizeInfo.maxHeight,
16
- position: 'absolute',
17
- };
18
- const offset = targetOffset || 0;
19
- const windowSize = getWindowSize();
20
- if (anchor === 'horizontal') {
21
- if (sizeInfo.horizontalPosition === 'left') {
22
- overlayStyle.right = windowSize.width - targetRect.left + offset;
23
- overlayStyle.right -= globalObject.scrollX;
24
- }
25
- else {
26
- overlayStyle.left = targetRect.right + offset;
27
- overlayStyle.left += globalObject.scrollX;
28
- }
29
- overlayStyle.top = targetRect.top + targetRect.height / 2 + +globalObject.scrollY;
30
- overlayStyle.transform = 'translate3d(0px, -50%, 0px)';
31
- delete overlayStyle.maxHeight;
32
- }
33
- else {
34
- if (sizeInfo.verticalPosition === 'top') {
35
- overlayStyle.bottom = windowSize.height - targetRect.top + offset;
36
- overlayStyle.bottom -= globalObject.scrollY;
37
- }
38
- else {
39
- overlayStyle.top = targetRect.bottom + offset;
40
- overlayStyle.top += globalObject.scrollY;
41
- }
42
- if (alignHorizontal === 'center') {
43
- overlayStyle.left = targetRect.left + targetRect.width / 2 + globalObject.scrollX;
44
- overlayStyle.transform = 'translate3d(-50%, 0px, 0px)';
45
- }
46
- if (alignHorizontal === 'left') {
47
- overlayStyle.left = targetRect.left + globalObject.scrollX;
48
- }
49
- if (alignHorizontal === 'right') {
50
- overlayStyle.right = windowSize.width - targetRect.right + globalObject.scrollX;
51
- }
52
- delete overlayStyle.maxWidth;
53
- }
54
- return overlayStyle;
55
- };
56
- exports.default = getOverlayStyle;