@adaptabletools/adaptable 11.1.15 → 11.2.0
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 +2 -0
- package/bundle.cjs.js +98 -98
- package/index.css +3 -0
- package/package.json +2 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/AlertOptions.d.ts +8 -2
- package/src/AdaptableOptions/DashboardOptions.d.ts +4 -3
- package/src/AdaptableOptions/ExportOptions.d.ts +2 -2
- package/src/AdaptableOptions/FilterOptions.d.ts +5 -4
- package/src/AdaptableOptions/LayoutOptions.d.ts +56 -10
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +4 -3
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +18 -16
- package/src/Api/AdaptableApi.d.ts +10 -0
- package/src/Api/AlertApi.d.ts +3 -1
- package/src/Api/ConditionalStyleApi.d.ts +3 -1
- package/src/Api/ConfigApi.d.ts +3 -3
- package/src/Api/CustomSortApi.d.ts +3 -1
- package/src/Api/EventApi.d.ts +14 -0
- package/src/Api/Events/LayoutChanged.d.ts +1 -1
- package/src/Api/ExportApi.d.ts +16 -0
- package/src/Api/FinanceApi.d.ts +104 -3
- package/src/Api/FlashingCellApi.d.ts +3 -1
- package/src/Api/FormatColumnApi.d.ts +3 -1
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +6 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +53 -0
- package/src/Api/Implementation/AlertApiImpl.d.ts +3 -1
- package/src/Api/Implementation/AlertApiImpl.js +7 -6
- package/src/Api/Implementation/ApiBase.d.ts +1 -1
- package/src/Api/Implementation/ApiBase.js +5 -2
- package/src/Api/Implementation/ConditionalStyleApiImpl.d.ts +3 -1
- package/src/Api/Implementation/ConditionalStyleApiImpl.js +5 -4
- package/src/Api/Implementation/ConfigApiImpl.js +5 -1
- package/src/Api/Implementation/CustomSortApiImpl.d.ts +3 -1
- package/src/Api/Implementation/CustomSortApiImpl.js +6 -5
- package/src/Api/Implementation/EventApiImpl.d.ts +1 -0
- package/src/Api/Implementation/EventApiImpl.js +4 -0
- package/src/Api/Implementation/ExportApiImpl.d.ts +3 -0
- package/src/Api/Implementation/ExportApiImpl.js +10 -0
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +3 -1
- package/src/Api/Implementation/FlashingCellApiImpl.js +8 -6
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +3 -1
- package/src/Api/Implementation/FormatColumnApiImpl.js +7 -6
- package/src/Api/Implementation/InternalApiImpl.d.ts +14 -5
- package/src/Api/Implementation/InternalApiImpl.js +75 -3
- package/src/Api/Implementation/PlusMinusApiImpl.d.ts +3 -1
- package/src/Api/Implementation/PlusMinusApiImpl.js +6 -8
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +17 -6
- package/src/Api/Implementation/ScheduleApiImpl.js +25 -12
- package/src/Api/Implementation/ShortcutApiImpl.d.ts +3 -1
- package/src/Api/Implementation/ShortcutApiImpl.js +5 -4
- package/src/Api/Implementation/ToolPanelApiImpl.d.ts +1 -2
- package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
- package/src/Api/Implementation/UserInterfaceApiImpl.js +2 -2
- package/src/Api/InternalApi.d.ts +14 -7
- package/src/Api/LayoutApi.d.ts +4 -6
- package/src/Api/PlusMinusApi.d.ts +3 -1
- package/src/Api/ScheduleApi.d.ts +20 -6
- package/src/Api/ShortcutApi.d.ts +3 -1
- package/src/Api/ToolPanelApi.d.ts +1 -2
- package/src/PredefinedConfig/AlertState.d.ts +3 -3
- package/src/PredefinedConfig/Common/AdaptableButton.d.ts +2 -5
- package/src/PredefinedConfig/Common/AdaptableComparerFunction.d.ts +2 -1
- package/src/PredefinedConfig/Common/AdaptableForm.d.ts +4 -3
- package/src/PredefinedConfig/Common/AdaptableObject.d.ts +18 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +9 -0
- package/src/PredefinedConfig/Common/BaseContext.d.ts +10 -0
- package/src/PredefinedConfig/Common/BaseContext.js +2 -0
- package/src/PredefinedConfig/Common/CellSummary.d.ts +3 -3
- package/src/PredefinedConfig/Common/FDC3Context.d.ts +9 -9
- package/src/PredefinedConfig/Common/Menu.d.ts +4 -13
- package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +4 -0
- package/src/PredefinedConfig/DataSourceState.d.ts +2 -2
- package/src/PredefinedConfig/FilterState.d.ts +1 -1
- package/src/PredefinedConfig/SystemState.d.ts +1 -0
- package/src/Redux/ActionsReducers/PopupRedux.d.ts +5 -5
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +5 -0
- package/src/Redux/ActionsReducers/SystemRedux.js +11 -1
- package/src/Redux/Store/AdaptableStore.d.ts +1 -0
- package/src/Redux/Store/AdaptableStore.js +6 -1
- package/src/Redux/Store/Interface/IAdaptableStore.d.ts +1 -0
- package/src/Strategy/AdaptableModuleBase.d.ts +5 -0
- package/src/Strategy/AdaptableModuleBase.js +9 -0
- package/src/Strategy/AlertModule.d.ts +4 -1
- package/src/Strategy/AlertModule.js +12 -4
- package/src/Strategy/CalculatedColumnModule.d.ts +3 -17
- package/src/Strategy/CalculatedColumnModule.js +2 -0
- package/src/Strategy/ConditionalStyleModule.d.ts +4 -1
- package/src/Strategy/ConditionalStyleModule.js +12 -4
- package/src/Strategy/CustomSortModule.d.ts +4 -1
- package/src/Strategy/CustomSortModule.js +10 -3
- package/src/Strategy/DataSourceModule.js +2 -0
- package/src/Strategy/ExportModule.d.ts +5 -3
- package/src/Strategy/ExportModule.js +10 -0
- package/src/Strategy/FlashingCellModule.d.ts +4 -1
- package/src/Strategy/FlashingCellModule.js +10 -5
- package/src/Strategy/FormatColumnModule.d.ts +4 -1
- package/src/Strategy/FormatColumnModule.js +10 -3
- package/src/Strategy/FreeTextColumnModule.js +2 -0
- package/src/Strategy/Interface/IModule.d.ts +6 -3
- package/src/Strategy/Interface/IScheduleModule.d.ts +1 -1
- package/src/Strategy/LayoutModule.d.ts +2 -1
- package/src/Strategy/LayoutModule.js +35 -2
- package/src/Strategy/PlusMinusModule.d.ts +4 -1
- package/src/Strategy/PlusMinusModule.js +15 -7
- package/src/Strategy/QueryModule.d.ts +2 -8
- package/src/Strategy/QueryModule.js +2 -0
- package/src/Strategy/ScheduleModule.d.ts +8 -4
- package/src/Strategy/ScheduleModule.js +16 -9
- package/src/Strategy/ShortcutModule.d.ts +4 -1
- package/src/Strategy/ShortcutModule.js +14 -4
- package/src/Strategy/StatusBarModule.d.ts +2 -1
- package/src/Strategy/StatusBarModule.js +2 -3
- package/src/Strategy/Utilities/getAlertBehaviourViewItems.d.ts +2 -2
- package/src/Strategy/Utilities/getAlertBehaviourViewItems.js +2 -2
- package/src/Strategy/Utilities/getObjectTagsViewItems.d.ts +4 -0
- package/src/Strategy/Utilities/getObjectTagsViewItems.js +13 -0
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +2 -1
- package/src/Utilities/Emitter.d.ts +1 -0
- package/src/Utilities/Emitter.js +14 -0
- package/src/Utilities/Extensions/TypeExtensions.d.ts +2 -0
- package/src/Utilities/Interface/MessagePopups.d.ts +3 -3
- package/src/Utilities/ObjectFactory.d.ts +2 -2
- package/src/Utilities/Services/AlertService.js +1 -1
- package/src/Utilities/Services/DataService.js +1 -1
- package/src/Utilities/Services/Interface/IModuleService.d.ts +1 -1
- package/src/Utilities/Services/ModuleService.d.ts +1 -1
- package/src/Utilities/Services/ModuleService.js +1 -0
- package/src/View/Alert/AlertStatusSubPanel.js +2 -1
- package/src/View/Alert/Wizard/AlertWizard.js +9 -0
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +9 -4
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +9 -0
- package/src/View/ColorPicker.d.ts +1 -1
- package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +1 -0
- package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
- package/src/View/Components/FilterForm/FilterForm.js +1 -1
- package/src/View/Components/FilterForm/QuickFilterForm.js +11 -7
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
- package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -1
- package/src/View/Components/Panels/PanelWithImage.d.ts +3 -3
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +22 -0
- package/src/View/Components/Popups/AdaptableToaster.js +12 -1
- package/src/View/Components/Popups/FormPopups/FormPopups.d.ts +3 -3
- package/src/View/Components/TagValueSelector/index.d.ts +13 -0
- package/src/View/Components/TagValueSelector/index.js +22 -0
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +2 -2
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +9 -0
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +9 -0
- package/src/View/DataSource/Wizard/DataSourceSettingsWizard.js +1 -1
- package/src/View/DataSource/Wizard/DataSourceWizard.js +10 -0
- package/src/View/Export/ExportSelector.d.ts +4 -0
- package/src/View/Export/ExportSelector.js +75 -0
- package/src/View/Export/ExportViewPanel.js +6 -7
- package/src/View/Export/ReportExportDropdown.d.ts +2 -5
- package/src/View/Export/Wizard/NewReportWizard.js +9 -0
- package/src/View/Export/constants.d.ts +2 -0
- package/src/View/Export/constants.js +5 -0
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +9 -0
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +9 -0
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +9 -0
- package/src/View/GridInfo/GridOptionsComponent.d.ts +0 -1
- package/src/View/GridInfo/GridOptionsComponent.js +0 -1
- package/src/View/Layout/LayoutCloneButton.d.ts +6 -0
- package/src/View/Layout/LayoutCloneButton.js +15 -0
- package/src/View/Layout/LayoutRadioSelector.d.ts +2 -1
- package/src/View/Layout/LayoutRadioSelector.js +1 -1
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +6 -1
- package/src/View/Layout/Wizard/LayoutEditorWizard.d.ts +1 -0
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +9 -0
- package/src/View/Query/Wizard/NamedQueryWizard.js +9 -0
- package/src/View/Schedule/Wizard/ScheduleWizard.js +10 -0
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +10 -0
- package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
- package/src/View/StatusBar/StatusBarPopup.js +1 -1
- package/src/View/Wizard/ObjectTagsWizardSection.d.ts +8 -0
- package/src/View/Wizard/ObjectTagsWizardSection.js +22 -0
- package/src/View/Wizard/OnePageAdaptableWizard.d.ts +1 -0
- package/src/View/Wizard/OnePageAdaptableWizard.js +12 -5
- package/src/agGrid/Adaptable.d.ts +14 -1
- package/src/agGrid/Adaptable.js +103 -68
- package/src/agGrid/agGridHelper.js +2 -1
- package/src/agGrid/createAgStatusPanelComponent.js +1 -0
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.d.ts +8 -7
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/ExpressionEditor/index.js +5 -2
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +1 -1
- package/src/components/PopupWithFooter.d.ts +1 -1
- package/src/components/Textarea/index.d.ts +1 -1
- package/src/metamodel/adaptable.metamodel.d.ts +44 -2
- package/src/metamodel/adaptable.metamodel.js +235 -21
- package/src/types.d.ts +6 -5
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -11,7 +11,6 @@ class GridOptionsComponent extends React.Component {
|
|
|
11
11
|
super(props);
|
|
12
12
|
const gridOptions = props.api.internalApi.getAgGridInstance();
|
|
13
13
|
this.state = {
|
|
14
|
-
testString: 'Hello world',
|
|
15
14
|
showTotalFooter: gridOptions.groupIncludeTotalFooter,
|
|
16
15
|
showGroupFooter: gridOptions.groupIncludeFooter,
|
|
17
16
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LayoutCloneButton = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
const SimpleButton_1 = tslib_1.__importDefault(require("../../components/SimpleButton"));
|
|
7
|
+
const AdaptableContext_1 = require("../AdaptableContext");
|
|
8
|
+
exports.LayoutCloneButton = ({ data, accessLevel }) => {
|
|
9
|
+
const adaptable = AdaptableContext_1.useAdaptable();
|
|
10
|
+
const isDisabled = accessLevel === 'ReadOnly';
|
|
11
|
+
const handleClick = React.useCallback(() => {
|
|
12
|
+
adaptable.api.layoutApi.showLayoutEditor(data.Name, 'Clone');
|
|
13
|
+
}, []);
|
|
14
|
+
return React.createElement(SimpleButton_1.default, { onClick: handleClick, disabled: isDisabled, variant: "text", icon: "clone" });
|
|
15
|
+
};
|
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const Radio_1 = tslib_1.__importDefault(require("../../components/Radio"));
|
|
7
7
|
const AdaptableContext_1 = require("../AdaptableContext");
|
|
8
|
-
exports.LayoutRadioSelector = ({ data
|
|
8
|
+
exports.LayoutRadioSelector = ({ data }) => {
|
|
9
9
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
10
10
|
const currentLayout = adaptable.api.layoutApi.getCurrentLayout();
|
|
11
11
|
const layouts = adaptable.api.layoutApi.getAllLayout();
|
|
@@ -4,6 +4,7 @@ exports.LayoutStatusBarSubPanelPopover = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const rebass_1 = require("rebass");
|
|
7
|
+
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
7
8
|
const AdaptableContext_1 = require("../AdaptableContext");
|
|
8
9
|
const AdaptableObjectRow_1 = require("../Components/AdaptableObjectRow");
|
|
9
10
|
const PanelWithRow_1 = require("../Components/Panels/PanelWithRow");
|
|
@@ -14,12 +15,16 @@ const colItems = [
|
|
|
14
15
|
];
|
|
15
16
|
exports.LayoutStatusBarSubPanelPopover = () => {
|
|
16
17
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
18
|
+
const accessLevel = adaptable.EntitlementService.getEntitlementAccessLevelForModule(ModuleConstants.LayoutModuleId);
|
|
17
19
|
const layouts = adaptable.api.layoutApi.getAllLayout();
|
|
18
20
|
return (React.createElement(rebass_1.Flex, { flexDirection: "column" },
|
|
19
21
|
React.createElement(PanelWithRow_1.PanelWithRow, { colItems: colItems }),
|
|
20
22
|
layouts.map((layout) => {
|
|
21
23
|
return (React.createElement(AdaptableObjectRow_1.AdaptableObjectRow, { key: layout.Name, colItems: [
|
|
22
|
-
{
|
|
24
|
+
{
|
|
25
|
+
Content: (React.createElement(LayoutRadioSelector_1.LayoutRadioSelector, { accessLevel: accessLevel, id: layout.Name, data: layout })),
|
|
26
|
+
Size: 1,
|
|
27
|
+
},
|
|
23
28
|
{
|
|
24
29
|
Content: (React.createElement("label", { style: { cursor: 'pointer' }, htmlFor: layout.Name }, layout.Name)),
|
|
25
30
|
Size: 4,
|
|
@@ -43,6 +43,7 @@ export declare class LayoutEditorWizard extends React.Component<LayoutEditorWiza
|
|
|
43
43
|
Uuid?: string;
|
|
44
44
|
Source?: "Config" | "User";
|
|
45
45
|
IsReadOnly?: boolean;
|
|
46
|
+
Tags?: import("../../../PredefinedConfig/Common/AdaptableObject").AdaptableObjectTag[];
|
|
46
47
|
};
|
|
47
48
|
canNext(): boolean;
|
|
48
49
|
canBack(): boolean;
|
|
@@ -11,6 +11,7 @@ const PlusMinusSettingsWizardSection_1 = require("./PlusMinusSettingsWizardSecti
|
|
|
11
11
|
const ObjectFactory_1 = tslib_1.__importDefault(require("../../../Utilities/ObjectFactory"));
|
|
12
12
|
const react_redux_1 = require("react-redux");
|
|
13
13
|
const PlusMinusRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/PlusMinusRedux"));
|
|
14
|
+
const ObjectTagsWizardSection_1 = require("../../Wizard/ObjectTagsWizardSection");
|
|
14
15
|
exports.PlusMinusWizard = (props) => {
|
|
15
16
|
const [plusMinus, setPlusMinus] = React.useState(() => {
|
|
16
17
|
var _a, _b, _c, _d, _e;
|
|
@@ -67,6 +68,14 @@ exports.PlusMinusWizard = (props) => {
|
|
|
67
68
|
renderSummary: () => React.createElement(PlusMinusSettingsWizardSection_1.PlusMinusSettingsSummary, { hasCondition: hasCondition }),
|
|
68
69
|
render: () => (React.createElement(PlusMinusSettingsWizardSection_1.PlusMinusSettingsWizardSection, { hasCondition: hasCondition, onConditionChange: setHasCondition, onChange: setPlusMinus })),
|
|
69
70
|
},
|
|
71
|
+
{
|
|
72
|
+
details: 'Select Plus/Minus tags',
|
|
73
|
+
title: 'Tags',
|
|
74
|
+
isVisible: (_, api) => api.internalApi.shouldDisplayTagSections(),
|
|
75
|
+
render: () => (React.createElement(rebass_1.Box, { padding: 2 },
|
|
76
|
+
React.createElement(ObjectTagsWizardSection_1.ObjectTagsWizardSection, { onChange: setPlusMinus }))),
|
|
77
|
+
renderSummary: ObjectTagsWizardSection_1.renderObjectTagsSummary,
|
|
78
|
+
},
|
|
70
79
|
'-',
|
|
71
80
|
{
|
|
72
81
|
render: () => {
|
|
@@ -12,6 +12,7 @@ const NamedQueryExpressionWizardSection_1 = require("./NamedQueryExpressionWizar
|
|
|
12
12
|
const ObjectFactory_1 = tslib_1.__importDefault(require("../../../Utilities/ObjectFactory"));
|
|
13
13
|
const react_redux_1 = require("react-redux");
|
|
14
14
|
const QueryRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/QueryRedux"));
|
|
15
|
+
const ObjectTagsWizardSection_1 = require("../../Wizard/ObjectTagsWizardSection");
|
|
15
16
|
function NamedQueryWizard(props) {
|
|
16
17
|
const [namedQuery, setNamedQuery] = react_1.useState(() => {
|
|
17
18
|
var _a, _b;
|
|
@@ -47,6 +48,14 @@ function NamedQueryWizard(props) {
|
|
|
47
48
|
return React.createElement(NamedQuerySettingsWizardSection_1.NamedQuerySettingsWizardSection, { onChange: setNamedQuery });
|
|
48
49
|
},
|
|
49
50
|
},
|
|
51
|
+
{
|
|
52
|
+
details: 'Select Query tags',
|
|
53
|
+
title: 'Tags',
|
|
54
|
+
isVisible: (_, api) => api.internalApi.shouldDisplayTagSections(),
|
|
55
|
+
render: () => (React.createElement(rebass_1.Box, { padding: 2 },
|
|
56
|
+
React.createElement(ObjectTagsWizardSection_1.ObjectTagsWizardSection, { onChange: setNamedQuery }))),
|
|
57
|
+
renderSummary: ObjectTagsWizardSection_1.renderObjectTagsSummary,
|
|
58
|
+
},
|
|
50
59
|
'-',
|
|
51
60
|
{
|
|
52
61
|
title: 'Summary',
|
|
@@ -12,6 +12,7 @@ const Enums_1 = require("../../../PredefinedConfig/Common/Enums");
|
|
|
12
12
|
const ObjectFactory_1 = tslib_1.__importDefault(require("../../../Utilities/ObjectFactory"));
|
|
13
13
|
const react_redux_1 = require("react-redux");
|
|
14
14
|
const ScheduleRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/ScheduleRedux"));
|
|
15
|
+
const ObjectTagsWizardSection_1 = require("../../Wizard/ObjectTagsWizardSection");
|
|
15
16
|
exports.ScheduleWizard = (props) => {
|
|
16
17
|
var _a, _b, _c;
|
|
17
18
|
const data = (_a = props.data) !== null && _a !== void 0 ? _a : props.popupParams.value;
|
|
@@ -101,6 +102,15 @@ exports.ScheduleWizard = (props) => {
|
|
|
101
102
|
render: () => (React.createElement(rebass_1.Box, { p: 3 },
|
|
102
103
|
React.createElement(ScheduleScheduleWizard_1.ScheduleScheduleWizard, { isOneOff: isOneOff, onSetIsOneOff: setIsOneOff, onChange: setSchedule }))),
|
|
103
104
|
},
|
|
105
|
+
{
|
|
106
|
+
details: 'Select Schedule tags',
|
|
107
|
+
title: 'Tags',
|
|
108
|
+
isVisible: (_, api) => api.internalApi.shouldDisplayTagSections(),
|
|
109
|
+
render: () => (React.createElement(rebass_1.Box, { padding: 2 },
|
|
110
|
+
React.createElement(ObjectTagsWizardSection_1.ObjectTagsWizardSection, { onChange: setSchedule }))),
|
|
111
|
+
renderSummary: ObjectTagsWizardSection_1.renderObjectTagsSummary,
|
|
112
|
+
},
|
|
113
|
+
'-',
|
|
104
114
|
{
|
|
105
115
|
render: () => {
|
|
106
116
|
return (React.createElement(rebass_1.Box, { padding: 2 },
|
|
@@ -14,6 +14,7 @@ const react_redux_1 = require("react-redux");
|
|
|
14
14
|
const ShortcutRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/ShortcutRedux"));
|
|
15
15
|
const shortcutKeys_1 = require("../shortcutKeys");
|
|
16
16
|
const AdaptableContext_1 = require("../../AdaptableContext");
|
|
17
|
+
const ObjectTagsWizardSection_1 = require("../../Wizard/ObjectTagsWizardSection");
|
|
17
18
|
exports.ShortcutWizard = (props) => {
|
|
18
19
|
const [shortcut, setShortcut] = React.useState(() => {
|
|
19
20
|
var _a;
|
|
@@ -71,6 +72,15 @@ exports.ShortcutWizard = (props) => {
|
|
|
71
72
|
React.createElement(ShortcutSettingsWizard_1.ShortcutSettingsWizard, { availableKeys: (_a = props.availableKeys) !== null && _a !== void 0 ? _a : availableKeys, onChange: setShortcut })));
|
|
72
73
|
},
|
|
73
74
|
},
|
|
75
|
+
{
|
|
76
|
+
details: 'Select Shortcut tags',
|
|
77
|
+
title: 'Tags',
|
|
78
|
+
isVisible: (_, api) => api.internalApi.shouldDisplayTagSections(),
|
|
79
|
+
render: () => (React.createElement(rebass_1.Box, { padding: 2 },
|
|
80
|
+
React.createElement(ObjectTagsWizardSection_1.ObjectTagsWizardSection, { onChange: setShortcut }))),
|
|
81
|
+
renderSummary: ObjectTagsWizardSection_1.renderObjectTagsSummary,
|
|
82
|
+
},
|
|
83
|
+
'-',
|
|
74
84
|
{
|
|
75
85
|
render: () => {
|
|
76
86
|
return (React.createElement(rebass_1.Box, { padding: 2 },
|
|
@@ -31,7 +31,7 @@ exports.SpecialColumnSettingsWizardStep = (props) => {
|
|
|
31
31
|
React.createElement(Tabs_1.Tabs, { marginTop: 2, autoFocus: false },
|
|
32
32
|
React.createElement(Tabs_1.Tabs.Tab, null, "Column Properties"),
|
|
33
33
|
React.createElement(Tabs_1.Tabs.Content, null,
|
|
34
|
-
React.createElement(rebass_1.Flex, { flexDirection: "
|
|
34
|
+
React.createElement(rebass_1.Flex, { flexDirection: "column" },
|
|
35
35
|
React.createElement(FormLayout_1.default, { style: { width: '100%' }, columns: [
|
|
36
36
|
{ name: 'first', size: '30%' },
|
|
37
37
|
{ size: '30%', name: 'second' },
|
|
@@ -22,7 +22,7 @@ exports.StatusBarPopup = (props) => {
|
|
|
22
22
|
const handleTabChange = React.useCallback((tabs) => {
|
|
23
23
|
const newStatusPanels = tabs.map((tab) => {
|
|
24
24
|
const statusPanel = statusPanels.find((sp) => sp.Key === tab.Name);
|
|
25
|
-
return Object.assign(Object.assign({}, statusPanel), {
|
|
25
|
+
return Object.assign(Object.assign({}, statusPanel), { StatusBarPanels: tab.Items });
|
|
26
26
|
});
|
|
27
27
|
adaptable.api.statusBarApi.setStatusPanels(newStatusPanels);
|
|
28
28
|
}, [statusPanels]);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AdaptableObject } from '../../PredefinedConfig/Common/AdaptableObject';
|
|
3
|
+
declare type ObjectTagsWizardSectionProps<T extends AdaptableObject> = {
|
|
4
|
+
onChange: (data: T) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const ObjectTagsWizardSection: <T extends AdaptableObject>(props: ObjectTagsWizardSectionProps<T>) => JSX.Element;
|
|
7
|
+
export declare const renderObjectTagsSummary: <T extends AdaptableObject>(data: T) => JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.renderObjectTagsSummary = exports.ObjectTagsWizardSection = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
const Tabs_1 = require("../../components/Tabs");
|
|
7
|
+
const TagValueSelector_1 = require("../Components/TagValueSelector");
|
|
8
|
+
const OnePageAdaptableWizard_1 = require("./OnePageAdaptableWizard");
|
|
9
|
+
const rebass_1 = require("rebass");
|
|
10
|
+
exports.ObjectTagsWizardSection = (props) => {
|
|
11
|
+
const { onChange } = props;
|
|
12
|
+
const { data } = OnePageAdaptableWizard_1.useOnePageWizardContext();
|
|
13
|
+
return (React.createElement(Tabs_1.Tabs, { style: { height: '100%' } },
|
|
14
|
+
React.createElement(Tabs_1.Tabs.Tab, null, "Tags"),
|
|
15
|
+
React.createElement(Tabs_1.Tabs.Content, null,
|
|
16
|
+
React.createElement(TagValueSelector_1.TagValueSelector, { selectedTags: data.Tags, onChange: (selectedTags) => onChange(Object.assign(Object.assign({}, data), { Tags: selectedTags })) }))));
|
|
17
|
+
};
|
|
18
|
+
exports.renderObjectTagsSummary = (data) => {
|
|
19
|
+
var _a;
|
|
20
|
+
return ((_a = data.Tags) === null || _a === void 0 ? void 0 : _a.length) ? (React.createElement(rebass_1.Text, { fontSize: 2 },
|
|
21
|
+
React.createElement(TagValueSelector_1.TagValueOptionsTags, { tags: data.Tags }))) : null;
|
|
22
|
+
};
|
|
@@ -21,6 +21,7 @@ export declare type OnePageWizardSection<ENTITY> = {
|
|
|
21
21
|
title: string;
|
|
22
22
|
details?: React.ReactNode;
|
|
23
23
|
isValid?: (data: ENTITY, api: AdaptableApi, context: OnePageAdaptableWizardContextType<ENTITY>) => true | string;
|
|
24
|
+
isVisible?: (data: ENTITY, api: AdaptableApi, context: OnePageAdaptableWizardContextType<ENTITY>) => boolean;
|
|
24
25
|
render: (data: ENTITY, index: number) => React.ReactNode;
|
|
25
26
|
renderSummary?: (data: ENTITY, api: AdaptableApi) => React.ReactNode;
|
|
26
27
|
};
|
|
@@ -36,9 +36,9 @@ function useOnePageWizardContext() {
|
|
|
36
36
|
exports.useOnePageWizardContext = useOnePageWizardContext;
|
|
37
37
|
exports.OnePageAdaptableWizard = (props) => {
|
|
38
38
|
var _a, _b;
|
|
39
|
+
const { api } = AdaptableContext_1.useAdaptable();
|
|
39
40
|
const dispatch = react_redux_1.useDispatch();
|
|
40
41
|
const saveNamedQuery = React.useCallback((namedQuery) => dispatch(QueryRedux.NamedQueryAdd(namedQuery)), []);
|
|
41
|
-
const { api } = AdaptableContext_1.useAdaptable();
|
|
42
42
|
let defaultCurrentIndex = 0;
|
|
43
43
|
if (props.defaultCurrentSectionName) {
|
|
44
44
|
const candidate = props.sections.findIndex((section) => section !== '-' && section.title === props.defaultCurrentSectionName);
|
|
@@ -62,7 +62,7 @@ exports.OnePageAdaptableWizard = (props) => {
|
|
|
62
62
|
(_a = props.onFinish) === null || _a === void 0 ? void 0 : _a.call(props, props.data);
|
|
63
63
|
};
|
|
64
64
|
const renderSection = (index) => {
|
|
65
|
-
const section =
|
|
65
|
+
const section = visibleSections[index];
|
|
66
66
|
if (section === '-') {
|
|
67
67
|
return React.createElement(React.Fragment, { key: index });
|
|
68
68
|
}
|
|
@@ -92,7 +92,6 @@ exports.OnePageAdaptableWizard = (props) => {
|
|
|
92
92
|
node.style.height = `${activeElement.offsetHeight}px`;
|
|
93
93
|
node.style.width = `${activeElement.offsetWidth}px`;
|
|
94
94
|
}, [currentSection, width]);
|
|
95
|
-
useKeyboardNavigation_1.useKeyboardNavigation(setCurrentSection, props.sections);
|
|
96
95
|
let navIndex = 0;
|
|
97
96
|
const dialogRef = react_1.useRef(null);
|
|
98
97
|
let invalidCount = 0;
|
|
@@ -100,12 +99,19 @@ exports.OnePageAdaptableWizard = (props) => {
|
|
|
100
99
|
const contextValue = {
|
|
101
100
|
data: props.data,
|
|
102
101
|
api,
|
|
102
|
+
//visible sections is updated below, as this is a chicken-egg problem
|
|
103
103
|
sections: props.sections,
|
|
104
104
|
setCurrentSection,
|
|
105
105
|
namedQuery,
|
|
106
106
|
moduleInfo: props.moduleInfo,
|
|
107
107
|
};
|
|
108
|
-
const
|
|
108
|
+
const visibleSections = React.useMemo(() => {
|
|
109
|
+
return props.sections.filter((section) => section === '-' ||
|
|
110
|
+
section.isVisible == undefined ||
|
|
111
|
+
section.isVisible(props.data, api, contextValue));
|
|
112
|
+
}, [props.sections]);
|
|
113
|
+
contextValue.sections = visibleSections;
|
|
114
|
+
const validSectionsMap = visibleSections.reduce((acc, section, index) => {
|
|
109
115
|
if (section === '-') {
|
|
110
116
|
acc.set(index, true);
|
|
111
117
|
return acc;
|
|
@@ -120,6 +126,7 @@ exports.OnePageAdaptableWizard = (props) => {
|
|
|
120
126
|
acc.set(index, valid);
|
|
121
127
|
return acc;
|
|
122
128
|
}, new Map());
|
|
129
|
+
useKeyboardNavigation_1.useKeyboardNavigation(setCurrentSection, visibleSections);
|
|
123
130
|
const canFinish = !invalidCount;
|
|
124
131
|
return (React.createElement(NamedQueryContext_1.NamedQueryContext.Provider, { value: { namedQuery, setNamedQuery } },
|
|
125
132
|
React.createElement(exports.OnePageAdaptableWizardContext.Provider, { value: contextValue },
|
|
@@ -150,7 +157,7 @@ exports.OnePageAdaptableWizard = (props) => {
|
|
|
150
157
|
: '', style: Object.assign({ height: '100%', width: '90vw', maxWidth: 1000 }, props.style) },
|
|
151
158
|
React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "stretch", flex: 1, style: { overflow: 'auto' } },
|
|
152
159
|
React.createElement(rebass_1.Flex, { flexDirection: "column", padding: 3, className: "ab-OnePageWizard__section-title-container", ref: sizeOwnerRef, style: { overflow: 'auto', position: 'relative', flex: 'none' } },
|
|
153
|
-
|
|
160
|
+
visibleSections.map((section, index) => {
|
|
154
161
|
if (section === '-') {
|
|
155
162
|
return (React.createElement(rebass_1.Box, { as: "hr", mt: 2, className: "ab-OnePageWizard__section-separator", key: `${index}-`, style: {
|
|
156
163
|
width: '100%',
|
|
@@ -82,6 +82,18 @@ export declare class Adaptable implements IAdaptable {
|
|
|
82
82
|
private _adaptableReady;
|
|
83
83
|
isDestroyed: boolean;
|
|
84
84
|
private agGridModules;
|
|
85
|
+
private listenerKeydown;
|
|
86
|
+
private listenerFirstDataRendered;
|
|
87
|
+
private listenerPivotModeChanged;
|
|
88
|
+
private listenerPivotChanged;
|
|
89
|
+
private listenerColumnRowGroupChanged;
|
|
90
|
+
private listenerColumnResized;
|
|
91
|
+
private listenerRangeSelectionChanged;
|
|
92
|
+
private listenerSortChanged;
|
|
93
|
+
private listenerModelUpdated;
|
|
94
|
+
private listenerGlobalSetRowSelection;
|
|
95
|
+
private listenerGlobalColumnEventsThatTriggerStateChange;
|
|
96
|
+
private listenerGlobalColumnEventsThatTriggerAutoLayoutSave;
|
|
85
97
|
static init(adaptableOptions: AdaptableOptions): Promise<AdaptableApi>;
|
|
86
98
|
/**
|
|
87
99
|
* Lazy static constructor for Adaptable
|
|
@@ -219,6 +231,7 @@ export declare class Adaptable implements IAdaptable {
|
|
|
219
231
|
enablePivot: boolean;
|
|
220
232
|
suppressMenu: boolean;
|
|
221
233
|
suppressMovable: boolean;
|
|
234
|
+
headerTooltip: string;
|
|
222
235
|
cellEditor: string | typeof AdaptableNumberEditor | typeof AdaptableDateEditor;
|
|
223
236
|
type: string[];
|
|
224
237
|
valueSetter: (params: ValueSetterParams) => any;
|
|
@@ -270,7 +283,7 @@ export declare class Adaptable implements IAdaptable {
|
|
|
270
283
|
setupColumnValueSetter({ col, colId, abColumn }: ColumnSetupInfo): void;
|
|
271
284
|
setupColumnComparator({ col, colId, abColumn }: ColumnSetupInfo): void;
|
|
272
285
|
private applyCurrentTheme;
|
|
273
|
-
private
|
|
286
|
+
private getInitialGroupOrderComparator;
|
|
274
287
|
private applyFinalRendering;
|
|
275
288
|
private isModulePresent;
|
|
276
289
|
private getPreviousColDefInfo;
|