@adaptabletools/adaptable 13.1.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.
- package/base.css +561 -1971
- package/base.css.map +1 -1
- package/bundle.cjs.js +222 -222
- package/index.css +196 -847
- package/index.css.map +1 -1
- package/package.json +2 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/ActionOptions.d.ts +4 -1
- package/src/AdaptableOptions/AlertOptions.d.ts +4 -0
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +9 -0
- package/src/AdaptableOptions/GeneralOptions.d.ts +6 -0
- package/src/Api/AlertApi.d.ts +5 -0
- package/src/Api/ColumnApi.d.ts +14 -0
- package/src/Api/FinanceApi.d.ts +5 -0
- package/src/Api/GridApi.d.ts +1 -0
- package/src/Api/IPushPullApi.d.ts +1 -1
- package/src/Api/Implementation/AlertApiImpl.d.ts +1 -0
- package/src/Api/Implementation/AlertApiImpl.js +14 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +3 -0
- package/src/Api/Implementation/ColumnApiImpl.js +11 -0
- package/src/Api/Implementation/FormatColumnApiImpl.js +3 -3
- package/src/Api/Implementation/GridApiImpl.d.ts +1 -0
- package/src/Api/Implementation/GridApiImpl.js +3 -0
- package/src/Api/Implementation/InternalApiImpl.d.ts +6 -0
- package/src/Api/Implementation/InternalApiImpl.js +66 -0
- package/src/Api/InternalApi.d.ts +6 -0
- package/src/PredefinedConfig/AlertState.d.ts +4 -0
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +1 -1
- package/src/PredefinedConfig/Common/FDC3Context.d.ts +2 -2
- package/src/PredefinedConfig/Common/Types.d.ts +1 -1
- package/src/PredefinedConfig/StyledColumnState.d.ts +5 -0
- package/src/PredefinedConfig/SystemState.d.ts +7 -0
- package/src/Redux/ActionsReducers/QuickSearchRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/QuickSearchRedux.js +1 -1
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +8 -0
- package/src/Redux/ActionsReducers/SystemRedux.js +32 -2
- package/src/Strategy/AlertModule.js +1 -1
- package/src/Strategy/FlashingCellModule.js +1 -1
- package/src/Strategy/StyledColumnModule.js +5 -2
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +1 -0
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +0 -4
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +8 -10
- package/src/Utilities/Extensions/ObjectExtensions.d.ts +10 -0
- package/src/Utilities/Extensions/ObjectExtensions.js +20 -0
- package/src/Utilities/Helpers/FormatHelper.d.ts +1 -1
- package/src/Utilities/Helpers/FormatHelper.js +7 -1
- package/src/Utilities/Services/LicenseService/index.js +1 -1
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +16 -8
- package/src/View/Components/Charting/ChartingViewPanel.js +9 -7
- package/src/View/Components/Charting/ShowChartButton.js +6 -6
- package/src/View/Components/FilterForm/ListBoxFilterForm.d.ts +2 -2
- package/src/View/Components/FilterForm/QuickFilterForm.js +2 -2
- package/src/View/Components/RangesComponent.js +1 -1
- package/src/View/Dashboard/Dashboard.js +3 -2
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.d.ts +6 -0
- package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +285 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +28 -17
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +7 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +16 -7
- package/src/agGrid/Adaptable.d.ts +10 -1
- package/src/agGrid/Adaptable.js +89 -7
- package/src/agGrid/agGridHelper.js +12 -0
- package/src/components/ColorPicker/ColorPicker.js +1 -1
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/Datepicker/index.js +1 -1
- package/src/components/DropdownButton/index.js +2 -2
- package/src/components/ExpressionEditor/index.js +3 -41
- package/src/components/OverlayTrigger/Overlay.d.ts +1 -4
- package/src/components/OverlayTrigger/Overlay.js +3 -40
- package/src/components/OverlayTrigger/index.d.ts +4 -4
- package/src/components/OverlayTrigger/index.js +71 -50
- package/src/components/SimpleButton/index.d.ts +0 -2
- package/src/components/SimpleButton/index.js +2 -2
- package/src/components/Tooltip/index.d.ts +1 -3
- package/src/components/Tooltip/index.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +7 -0
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/components/OverlayTrigger/getOverlayStyle.d.ts +0 -13
- package/src/components/OverlayTrigger/getOverlayStyle.js +0 -56
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "13.1.
|
|
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.
|
|
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;
|