@adaptabletools/adaptable 11.0.0-canary.0 → 11.0.0-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.
- package/base.css +13 -9
- package/bundle.cjs.js +88 -88
- package/index.css +13 -9
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +0 -1
- package/src/AdaptableOptions/DashboardOptions.d.ts +3 -2
- package/src/AdaptableOptions/GeneralOptions.d.ts +1 -1
- package/src/AdaptableOptions/TeamSharingOptions.d.ts +1 -1
- package/src/Api/Events/SearchChanged.d.ts +1 -1
- package/src/Api/Implementation/InternalApiImpl.d.ts +0 -1
- package/src/Api/Implementation/InternalApiImpl.js +0 -8
- package/src/Api/InternalApi.d.ts +0 -1
- package/src/PredefinedConfig/DashboardState.d.ts +4 -4
- package/src/Redux/ActionsReducers/DashboardRedux.d.ts +0 -7
- package/src/Redux/ActionsReducers/DashboardRedux.js +1 -11
- package/src/Redux/Store/AdaptableStore.js +0 -1
- package/src/View/AdaptableView.js +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +10 -23
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +1 -1
- package/src/View/FlashingCell/Wizard/{FlashingCellDurationWizardSection.d.ts → FlashingCellSettingsWizardSection.d.ts} +3 -3
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +66 -0
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +4 -4
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +8 -3
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +1 -0
- package/src/View/SpecialColumnSettingsWizardStep.d.ts +9 -0
- package/src/View/SpecialColumnSettingsWizardStep.js +62 -0
- package/src/agGrid/Adaptable.js +2 -3
- package/src/components/Dashboard/Dashboard.js +1 -1
- package/src/components/WindowModal/WindowModal.js +17 -2
- package/src/components/utils/useDraggable.js +2 -1
- package/src/metamodel/adaptable.metamodel.js +10 -10
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellDurationWizardSection.js +0 -60
|
@@ -5,6 +5,20 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const re_resizable_1 = require("re-resizable");
|
|
7
7
|
const useDraggable_1 = tslib_1.__importDefault(require("../utils/useDraggable"));
|
|
8
|
+
const UIHelper_1 = require("../../View/UIHelper");
|
|
9
|
+
const react_dom_1 = require("react-dom");
|
|
10
|
+
let portalElement;
|
|
11
|
+
const ensurePortalElement = () => {
|
|
12
|
+
if (!UIHelper_1.isBrowserDocumentAvailable()) {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
if (portalElement) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
portalElement = document.createElement('div');
|
|
19
|
+
portalElement.classList.add('ab-cmp-modal-window');
|
|
20
|
+
document.body.appendChild(portalElement);
|
|
21
|
+
};
|
|
8
22
|
const getResizePositionDelta = (direction, delta) => {
|
|
9
23
|
const positionDelta = { x: 0, y: 0 };
|
|
10
24
|
const left = -delta.width;
|
|
@@ -26,6 +40,7 @@ const getResizePositionDelta = (direction, delta) => {
|
|
|
26
40
|
return null;
|
|
27
41
|
};
|
|
28
42
|
exports.WindowModal = (props) => {
|
|
43
|
+
ensurePortalElement();
|
|
29
44
|
const positionDeltaRef = React.useRef(null);
|
|
30
45
|
const positionRef = React.useRef(props.position);
|
|
31
46
|
/**
|
|
@@ -77,11 +92,11 @@ exports.WindowModal = (props) => {
|
|
|
77
92
|
applyTransform(positionDelta.x, positionDelta.y);
|
|
78
93
|
}
|
|
79
94
|
}, []);
|
|
80
|
-
return (React.createElement("div", { style: style,
|
|
95
|
+
return react_dom_1.createPortal(React.createElement("div", { style: style,
|
|
81
96
|
//@ts-ignore
|
|
82
97
|
ref: targetRef },
|
|
83
98
|
React.createElement(re_resizable_1.Resizable, { onResizeStop: handleResizeStop, onResize: handleResize, bounds: "window", defaultSize: {
|
|
84
99
|
width: props.size.width,
|
|
85
100
|
height: props.size.height,
|
|
86
|
-
} }, props.children)));
|
|
101
|
+
} }, props.children)), portalElement);
|
|
87
102
|
};
|
|
@@ -26,7 +26,8 @@ function useDraggable({ onMove, onDrop, getBoundingRect = () => document.body.ge
|
|
|
26
26
|
* This gives time react to render the node handle.
|
|
27
27
|
*/
|
|
28
28
|
setTimeout(() => {
|
|
29
|
-
|
|
29
|
+
var _a;
|
|
30
|
+
const node = (_a = targetRef === null || targetRef === void 0 ? void 0 : targetRef.current) === null || _a === void 0 ? void 0 : _a.querySelector(handleSelector);
|
|
30
31
|
node && handleRefCallback(node);
|
|
31
32
|
}, 16);
|
|
32
33
|
}
|
|
@@ -3918,7 +3918,7 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
3918
3918
|
{
|
|
3919
3919
|
"name": "buttonsLocation",
|
|
3920
3920
|
"kind": "unknown",
|
|
3921
|
-
"description": "",
|
|
3921
|
+
"description": "Position in the Dashboard to show the Module and Custom Buttons",
|
|
3922
3922
|
"uiLabel": "Buttons Location",
|
|
3923
3923
|
"isOptional": true,
|
|
3924
3924
|
"defaultValue": "'right'"
|
|
@@ -3935,7 +3935,7 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
3935
3935
|
{
|
|
3936
3936
|
"name": "customDashboardButtons",
|
|
3937
3937
|
"kind": "unknown",
|
|
3938
|
-
"description": "Custom Adaptable Buttons to appear in
|
|
3938
|
+
"description": "Custom Adaptable Buttons to appear in Dashboard (alongside Module Buttons)",
|
|
3939
3939
|
"uiLabel": "Custom Dashboard Buttons",
|
|
3940
3940
|
"isOptional": true
|
|
3941
3941
|
},
|
|
@@ -3949,7 +3949,7 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
3949
3949
|
{
|
|
3950
3950
|
"name": "showQuickSearchInHeader",
|
|
3951
3951
|
"kind": "boolean",
|
|
3952
|
-
"description": "Shows Quick Search textbox in the Dashboard Header
|
|
3952
|
+
"description": "Shows Quick Search textbox in the Dashboard Header",
|
|
3953
3953
|
"uiLabel": "Show Quick Search In Header",
|
|
3954
3954
|
"isOptional": true,
|
|
3955
3955
|
"gridInfo": "item",
|
|
@@ -3972,7 +3972,7 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
3972
3972
|
{
|
|
3973
3973
|
"name": "DashboardTitle",
|
|
3974
3974
|
"kind": "string",
|
|
3975
|
-
"description": "Title to display in Dashboard Header
|
|
3975
|
+
"description": "Title to display in Dashboard Header",
|
|
3976
3976
|
"uiLabel": "Dashboard Title",
|
|
3977
3977
|
"isOptional": true,
|
|
3978
3978
|
"defaultValue": "`adaptableId` in Adaptable Options"
|
|
@@ -3980,7 +3980,7 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
3980
3980
|
{
|
|
3981
3981
|
"name": "FloatingPosition",
|
|
3982
3982
|
"kind": "REFERENCE",
|
|
3983
|
-
"description": "Position of Dashboard in 'floating mode'
|
|
3983
|
+
"description": "Position of Dashboard when in 'floating mode'",
|
|
3984
3984
|
"uiLabel": "Floating Position",
|
|
3985
3985
|
"isOptional": true,
|
|
3986
3986
|
"reference": "AdaptableCoordinate"
|
|
@@ -4020,10 +4020,10 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
4020
4020
|
{
|
|
4021
4021
|
"name": "ModuleButtons",
|
|
4022
4022
|
"kind": "REFERENCE",
|
|
4023
|
-
"description": "Module Buttons
|
|
4023
|
+
"description": "Module Buttons which open screen in Settings Panel for associated AdapTable Module",
|
|
4024
4024
|
"uiLabel": "Module Buttons",
|
|
4025
4025
|
"isOptional": true,
|
|
4026
|
-
"defaultValue": "
|
|
4026
|
+
"defaultValue": "['SettingsPanel']",
|
|
4027
4027
|
"reference": "unknown"
|
|
4028
4028
|
},
|
|
4029
4029
|
{
|
|
@@ -6201,7 +6201,7 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
6201
6201
|
{
|
|
6202
6202
|
"name": "caseSensitiveTextComparisons",
|
|
6203
6203
|
"kind": "boolean",
|
|
6204
|
-
"description": "
|
|
6204
|
+
"description": "Perform case-sensitive text comparisons in all search and filter operations: QuickSearch, Filters, Query, Predicates",
|
|
6205
6205
|
"uiLabel": "Case Sensitive Text Comparisons",
|
|
6206
6206
|
"isOptional": true,
|
|
6207
6207
|
"gridInfo": "item",
|
|
@@ -9758,7 +9758,7 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
9758
9758
|
{
|
|
9759
9759
|
"name": "searchChangedTrigger",
|
|
9760
9760
|
"kind": "unknown",
|
|
9761
|
-
"description": "What
|
|
9761
|
+
"description": "What search-related change caused the event to fire",
|
|
9762
9762
|
"uiLabel": "Search Changed Trigger"
|
|
9763
9763
|
}
|
|
9764
9764
|
]
|
|
@@ -10468,7 +10468,7 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
10468
10468
|
{
|
|
10469
10469
|
"name": "updateNotification",
|
|
10470
10470
|
"kind": "unknown",
|
|
10471
|
-
"description": "How user is informed when Active Shared Entities have newer revisions
|
|
10471
|
+
"description": "How user is informed when Active Shared Entities have newer revisions",
|
|
10472
10472
|
"uiLabel": "Update Notification",
|
|
10473
10473
|
"isOptional": true,
|
|
10474
10474
|
"gridInfo": "item",
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "11.0.0-canary.
|
|
1
|
+
declare const _default: "11.0.0-canary.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 = '11.0.0-canary.
|
|
3
|
+
exports.default = '11.0.0-canary.1'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FlashingAlertDurationWizardSection = exports.renderFlashingAlertDurationSummary = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const react_1 = require("react");
|
|
7
|
-
const rebass_1 = require("rebass");
|
|
8
|
-
const Input_1 = tslib_1.__importDefault(require("../../../components/Input"));
|
|
9
|
-
const usePrevious_1 = tslib_1.__importDefault(require("../../../components/utils/usePrevious"));
|
|
10
|
-
const Radio_1 = tslib_1.__importDefault(require("../../../components/Radio"));
|
|
11
|
-
const Tabs_1 = require("../../../components/Tabs");
|
|
12
|
-
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
13
|
-
const CodeBlock_1 = require("../../../components/CodeBlock");
|
|
14
|
-
exports.renderFlashingAlertDurationSummary = (flashingAlert) => {
|
|
15
|
-
return (React.createElement(React.Fragment, null,
|
|
16
|
-
React.createElement(rebass_1.Text, { fontSize: 2 }, flashingAlert.FlashDuration === 'always' ? (React.createElement(React.Fragment, null, "Flashing is never removed")) : (React.createElement(React.Fragment, null,
|
|
17
|
-
"Flashing is removed after ",
|
|
18
|
-
React.createElement(CodeBlock_1.CodeBlock, null, flashingAlert.FlashDuration),
|
|
19
|
-
' ',
|
|
20
|
-
"milliseconds")))));
|
|
21
|
-
};
|
|
22
|
-
exports.FlashingAlertDurationWizardSection = (props) => {
|
|
23
|
-
var _a;
|
|
24
|
-
let { data: flashingAlert } = OnePageAdaptableWizard_1.useOnePageWizardContext();
|
|
25
|
-
flashingAlert = flashingAlert !== null && flashingAlert !== void 0 ? flashingAlert : props.flashingAlert;
|
|
26
|
-
const setDuration = (FlashDuration) => {
|
|
27
|
-
props.onChange(Object.assign(Object.assign({}, flashingAlert), { FlashDuration: FlashDuration }));
|
|
28
|
-
};
|
|
29
|
-
const duration = (_a = flashingAlert.FlashDuration) !== null && _a !== void 0 ? _a : 500;
|
|
30
|
-
const numberDuration = React.useRef(typeof duration === 'number' ? duration : 500);
|
|
31
|
-
const inputRef = react_1.useRef(null);
|
|
32
|
-
const oldDuration = usePrevious_1.default(duration, duration);
|
|
33
|
-
React.useEffect(() => {
|
|
34
|
-
var _a;
|
|
35
|
-
if (oldDuration === 'always' && duration != oldDuration) {
|
|
36
|
-
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
37
|
-
}
|
|
38
|
-
if (typeof duration === 'number') {
|
|
39
|
-
numberDuration.current = duration;
|
|
40
|
-
}
|
|
41
|
-
}, [duration, oldDuration]);
|
|
42
|
-
return (React.createElement(React.Fragment, null,
|
|
43
|
-
React.createElement(Tabs_1.Tabs, { value: duration === 'always' ? 'keep' : 'remove', onValueChange: (value) => {
|
|
44
|
-
setDuration(value === 'keep' ? 'always' : numberDuration.current);
|
|
45
|
-
} },
|
|
46
|
-
React.createElement(Tabs_1.Tabs.Tab, { value: "remove" },
|
|
47
|
-
React.createElement(Radio_1.default, { checked: duration !== 'always', margin: 0, tabIndex: -1 }, "Remove style")),
|
|
48
|
-
React.createElement(Tabs_1.Tabs.Tab, { value: "keep" },
|
|
49
|
-
React.createElement(Radio_1.default, { checked: duration == 'always', margin: 0, tabIndex: -1 }, "Keep style")),
|
|
50
|
-
React.createElement(Tabs_1.Tabs.Content, { value: "remove" },
|
|
51
|
-
React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "baseline" },
|
|
52
|
-
React.createElement(rebass_1.Text, { fontSize: 2, mr: 2 }, "After"),
|
|
53
|
-
React.createElement(Input_1.default, { readOnly: props.readOnly, type: "text", name: "value", disabled: duration === 'always' || props.readOnly, ref: inputRef, mt: 2, mr: 1, value: duration !== 'always' ? duration : '', onChange: (event) => {
|
|
54
|
-
const value = event.target.value;
|
|
55
|
-
setDuration(isNaN(Number(value)) ? 500 : Number(value));
|
|
56
|
-
} }),
|
|
57
|
-
React.createElement(rebass_1.Text, { fontSize: 2 }, "milliseconds"))),
|
|
58
|
-
React.createElement(Tabs_1.Tabs.Content, null,
|
|
59
|
-
React.createElement(rebass_1.Text, { fontSize: 2 }, "Persists the flashing style indeterminately - can be removed manually")))));
|
|
60
|
-
};
|