@adaptabletools/adaptable 11.0.0-canary.4 → 11.0.0-canary.5
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 +130 -67
- package/bundle.cjs.js +86 -86
- package/index.css +130 -67
- package/package.json +2 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +7 -5
- package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +1 -3
- package/src/AdaptableOptions/AdaptableOptions.d.ts +10 -1
- package/src/AdaptableOptions/AlertOptions.d.ts +82 -0
- package/src/AdaptableOptions/AlertOptions.js +2 -0
- package/src/AdaptableOptions/ContainerOptions.d.ts +1 -1
- package/src/AdaptableOptions/FilterOptions.d.ts +1 -1
- package/src/AdaptableOptions/NotificationsOptions.d.ts +1 -78
- package/src/AdaptableOptions/QueryLanguageOptions.d.ts +0 -4
- package/src/AdaptableOptions/StateOptions.d.ts +2 -1
- package/src/AdaptableOptions/TeamSharingOptions.d.ts +2 -2
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -2
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +2 -2
- package/src/Api/AdaptableApi.d.ts +1 -0
- package/src/Api/AlertApi.d.ts +2 -3
- package/src/Api/EventApi.d.ts +8 -3
- package/src/Api/Events/GridDataChanged.d.ts +4 -2
- package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +1 -1
- package/src/Api/FreeTextColumnApi.d.ts +0 -12
- package/src/Api/IPushPullApi.d.ts +1 -1
- package/src/Api/Implementation/AlertApiImpl.d.ts +1 -2
- package/src/Api/Implementation/AlertApiImpl.js +15 -9
- package/src/Api/Implementation/ApiBase.d.ts +2 -0
- package/src/Api/Implementation/ApiBase.js +3 -0
- package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +0 -5
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +0 -9
- package/src/Api/Implementation/InternalApiImpl.js +1 -1
- package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
- package/src/Api/Implementation/LayoutApiImpl.js +11 -0
- package/src/Api/Implementation/QueryApiImpl.js +4 -1
- package/src/Api/Implementation/QueryLanguageApiImpl.js +4 -5
- package/src/Api/LayoutApi.d.ts +7 -0
- package/src/Api/OpenFinApi.d.ts +5 -0
- package/src/Api/PluginsApi.d.ts +29 -0
- package/src/Api/UserInterfaceApi.d.ts +5 -2
- package/src/PredefinedConfig/AlertState.d.ts +2 -4
- package/src/PredefinedConfig/CalculatedColumnState.d.ts +0 -1
- package/src/PredefinedConfig/Common/FDC3Context.d.ts +4 -12
- package/src/PredefinedConfig/CustomSortState.d.ts +0 -1
- package/src/PredefinedConfig/FlashingCellState.d.ts +3 -1
- package/src/PredefinedConfig/FreeTextColumnState.d.ts +1 -1
- package/src/PredefinedConfig/LayoutState.d.ts +0 -2
- package/src/PredefinedConfig/PredefinedConfig.d.ts +5 -2
- package/src/Redux/ActionsReducers/ApplicationRedux.js +9 -3
- package/src/Redux/ActionsReducers/FlashingCellRedux.js +4 -8
- package/src/Redux/ActionsReducers/GridRedux.js +3 -1
- package/src/Redux/ActionsReducers/PopupRedux.js +13 -3
- package/src/Redux/ActionsReducers/QuickSearchRedux.js +3 -1
- package/src/Redux/ActionsReducers/SystemRedux.js +3 -1
- package/src/Redux/ActionsReducers/ThemeRedux.js +3 -1
- package/src/Redux/Store/AdaptableStore.js +5 -4
- package/src/Strategy/AlertModule.js +4 -3
- package/src/Strategy/ConditionalStyleModule.js +4 -0
- package/src/Strategy/FlashingCellModule.js +2 -2
- package/src/Strategy/FreeTextColumnModule.d.ts +2 -2
- package/src/Strategy/FreeTextColumnModule.js +10 -0
- package/src/Strategy/LayoutModule.js +1 -6
- package/src/Strategy/ToolPanelModule.js +5 -3
- package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.js +1 -1
- package/src/Strategy/Utilities/getRuleViewItems.d.ts +0 -1
- package/src/Strategy/Utilities/getRuleViewItems.js +0 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +6 -4
- package/src/Utilities/ExpressionFunctions/dateUtils.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/dateUtils.js +13 -0
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +13 -4
- package/src/Utilities/Helpers/AdaptableHelper.js +1 -0
- package/src/Utilities/Helpers/CalendarHelper.js +220 -55
- package/src/Utilities/Interface/MessagePopups.d.ts +6 -2
- package/src/Utilities/ObjectFactory.js +1 -0
- package/src/Utilities/Services/DataService.js +6 -1
- package/src/Utilities/Services/QueryLanguageService.js +16 -11
- package/src/Utilities/Services/ReportService.js +6 -2
- package/src/Utilities/Services/TeamSharingService.js +5 -3
- package/src/View/AdaptablePopover/index.js +6 -1
- package/src/View/AdaptableView.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +5 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +5 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +4 -1
- package/src/View/AdaptableWizardView/helper.js +3 -1
- package/src/View/Alert/Wizard/AlertButtonsEditor.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +5 -1
- package/src/View/CellSummary/CellSummaryViewPanel.js +1 -2
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +5 -2
- package/src/View/Components/FilterForm/FilterForm.js +0 -2
- package/src/View/Components/FilterForm/QuickFilterForm.js +4 -1
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
- package/src/View/Components/Panels/PanelWithImage.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +3 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +1 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +25 -1
- package/src/View/Components/Popups/AdaptablePopup/TopBar.js +5 -4
- package/src/View/Components/Popups/AdaptablePopupConfirmation.js +3 -1
- package/src/View/Components/Popups/AdaptablePopupPrompt.d.ts +5 -12
- package/src/View/Components/Popups/AdaptablePopupPrompt.js +38 -37
- package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +4 -1
- package/src/View/Components/ScopeComponent.js +4 -1
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +5 -1
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +3 -1
- package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.d.ts +8 -0
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +27 -0
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +7 -0
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +3 -1
- package/src/View/Dashboard/CustomToolbarWrapper.js +5 -1
- package/src/View/Dashboard/Dashboard.js +1 -1
- package/src/View/Dashboard/DashboardPopup.js +3 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +2 -1
- package/src/View/Export/Wizard/ReportColumnTypeWizard.js +3 -1
- package/src/View/Export/Wizard/ReportRowTypeWizard.js +3 -1
- package/src/View/Filter/FilterViewPanel.d.ts +1 -4
- package/src/View/Filter/FilterViewPanel.js +1 -3
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -2
- package/src/View/GridInfo/AdaptableOptionsComponent.js +4 -1
- package/src/View/Layout/Wizard/LayoutEditor/index.js +5 -1
- package/src/View/Layout/Wizard/LayoutEditorWizard.js +7 -1
- package/src/View/Query/ExpandedQueryPopup.js +9 -2
- package/src/View/Query/QueryViewPanel.js +3 -1
- package/src/View/QuickSearch/QuickSearchPopup.js +3 -3
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +12 -2
- package/src/View/UIHelper.js +4 -1
- package/src/View/Wizard/AdaptableWizard.js +12 -3
- package/src/View/Wizard/OnePageAdaptableWizard.js +5 -1
- package/src/agGrid/Adaptable.d.ts +2 -3
- package/src/agGrid/Adaptable.js +96 -54
- package/src/agGrid/editors/AdaptableDateEditor/index.js +1 -1
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +1 -1
- package/src/components/ApplicationIcon.d.ts +1 -0
- package/src/components/ApplicationIcon.js +2 -2
- package/src/components/Dashboard/Dashboard.js +4 -1
- package/src/components/Dropdown/index.js +8 -1
- package/src/components/ExpressionEditor/EditorInputReactive.js +3 -1
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +4 -1
- package/src/components/ExpressionEditor/index.js +9 -2
- package/src/components/SizedContainer/index.js +7 -1
- package/src/components/WindowModal/WindowModal.js +4 -1
- package/src/metamodel/adaptable.metamodel.d.ts +55 -24
- package/src/metamodel/adaptable.metamodel.js +179 -98
- package/src/types.d.ts +2 -1
- package/themes/dark.css +4 -4
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -94,7 +94,11 @@ exports.AlertButtonsEditor = (props) => {
|
|
|
94
94
|
' ',
|
|
95
95
|
StringExtensions_1.default.CapitaliseFirstLetter((_a = buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.variant) !== null && _a !== void 0 ? _a : 'raised'))),
|
|
96
96
|
React.createElement(DropdownButton_1.default, { columns: ['label'], marginLeft: 2, style: { minWidth: 120 }, items: [
|
|
97
|
-
{
|
|
97
|
+
{
|
|
98
|
+
label: 'Use Alert Tone',
|
|
99
|
+
value: 'text',
|
|
100
|
+
onClick: () => setTone(null),
|
|
101
|
+
},
|
|
98
102
|
...['success', 'info', 'error', 'warning', 'accent', 'neutral'].map((tone) => {
|
|
99
103
|
return {
|
|
100
104
|
label: StringExtensions_1.default.CapitaliseFirstLetter(tone),
|
|
@@ -38,8 +38,7 @@ class CellSummaryViewPanelComponent extends React.Component {
|
|
|
38
38
|
onClick: () => this.props.onCellSummaryOperationChange(summaryOperation),
|
|
39
39
|
};
|
|
40
40
|
});
|
|
41
|
-
const cellSummaryOperationDefinitions = this.props.api.internalApi.getAdaptableOptions()
|
|
42
|
-
.generalOptions.cellSummaryOperations;
|
|
41
|
+
const cellSummaryOperationDefinitions = this.props.api.internalApi.getAdaptableOptions().generalOptions.cellSummaryOperations;
|
|
43
42
|
const operationDefinitions = ArrayExtensions_1.default.IsNullOrEmpty(cellSummaryOperationDefinitions)
|
|
44
43
|
? []
|
|
45
44
|
: cellSummaryOperationDefinitions.map((operationDefinition) => {
|
|
@@ -45,13 +45,16 @@ exports.AdaptableObjectListItem = (props) => {
|
|
|
45
45
|
};
|
|
46
46
|
const hasSuspend = Boolean(viewOptions.getSuspendAction);
|
|
47
47
|
const actions = (_e = (_d = viewOptions === null || viewOptions === void 0 ? void 0 : viewOptions.actions) === null || _d === void 0 ? void 0 : _d.map) === null || _e === void 0 ? void 0 : _e.call(_d, (component, index) => {
|
|
48
|
-
return React.createElement(component, {
|
|
48
|
+
return React.createElement(component, {
|
|
49
|
+
data: props.data.abObject,
|
|
50
|
+
key: index,
|
|
51
|
+
});
|
|
49
52
|
});
|
|
50
53
|
const iconSize = 26;
|
|
51
54
|
return (React.createElement(rebass_1.Flex, { as: "li", mb: 3, className: itemClassName },
|
|
52
55
|
React.createElement(rebass_1.Box, { flex: 1, className: `${baseClassName}__rows` }, (_f = props.data.items) === null || _f === void 0 ? void 0 : _f.map((tag, index) => {
|
|
53
56
|
var _a;
|
|
54
|
-
return (React.createElement(rebass_1.Flex, { key: index, mb: 2, className: `${baseClassName}__row` },
|
|
57
|
+
return (React.createElement(rebass_1.Flex, { "data-name": tag.name, key: index, mb: 2, className: `${baseClassName}__row` },
|
|
55
58
|
React.createElement(rebass_1.Box, { className: `${baseClassName}__label`, mr: 3 },
|
|
56
59
|
tag.label || tag.name,
|
|
57
60
|
EditWizard && (React.createElement(SimpleButton_1.default, { accessLevel: accessLevel, className: `${baseClassName}__edit-property`, ml: 1, icon: "edit", tooltip: "edit", iconSize: 18, variant: "text", onClick: () => {
|
|
@@ -5,7 +5,6 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const react_redux_1 = require("react-redux");
|
|
7
7
|
const FilterRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/FilterRedux"));
|
|
8
|
-
const PopupRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/PopupRedux"));
|
|
9
8
|
const Enums_1 = require("../../../PredefinedConfig/Common/Enums");
|
|
10
9
|
const ListBoxFilterForm_1 = require("./ListBoxFilterForm");
|
|
11
10
|
const ButtonClose_1 = require("../Buttons/ButtonClose");
|
|
@@ -276,7 +275,6 @@ function mapDispatchToProps(dispatch) {
|
|
|
276
275
|
onAddColumnFilter: (columnFilter) => dispatch(FilterRedux.ColumnFilterAdd(columnFilter)),
|
|
277
276
|
onEditColumnFilter: (columnFilter) => dispatch(FilterRedux.ColumnFilterEdit(columnFilter)),
|
|
278
277
|
onSetColumnFilter: (columnFilter) => dispatch(FilterRedux.ColumnFilterSet(columnFilter)),
|
|
279
|
-
onShowPrompt: (prompt) => dispatch(PopupRedux.PopupShowPrompt(prompt)),
|
|
280
278
|
onHideFilterForm: () => dispatch(FilterRedux.FilterFormHide()),
|
|
281
279
|
};
|
|
282
280
|
}
|
|
@@ -130,7 +130,10 @@ class QuickFilterFormComponent extends React.Component {
|
|
|
130
130
|
predicateDefs.map((p) => (React.createElement(SimpleButton_1.default, { key: p.id, p: 2, variant: "text", tone: (filter === null || filter === void 0 ? void 0 : filter.Predicate.PredicateId) === p.id ? 'info' : 'none', onClick: () => this.selectColumnPredicate(p.id) },
|
|
131
131
|
React.createElement("span", { style: { width: 20, marginRight: 10 } }, this.renderPredicateIcon(p)),
|
|
132
132
|
p.label))))) },
|
|
133
|
-
React.createElement(SimpleButton_1.default, { style: {
|
|
133
|
+
React.createElement(SimpleButton_1.default, { style: {
|
|
134
|
+
borderRadius: 0,
|
|
135
|
+
borderColor: 'var(--ab-color-primarydark)',
|
|
136
|
+
} }, this.renderPredicateIcon(activePredicateDef)))),
|
|
134
137
|
showQuickFilterInput && this.renderLabel(filter, activePredicateDef),
|
|
135
138
|
showQuickFilterInput && this.renderPredicateInput(activePredicateDef, filter)));
|
|
136
139
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { AdaptableColumn } from '../../../PredefinedConfig/Common/AdaptableColumn';
|
|
2
2
|
import { SystemFilterPredicateId } from '../../../PredefinedConfig/FilterState';
|
|
3
|
-
export declare const getDefaultColumnFilterPredicate: (column: AdaptableColumn, defaultColumnFilter: "
|
|
3
|
+
export declare const getDefaultColumnFilterPredicate: (column: AdaptableColumn, defaultColumnFilter: "Before" | "After" | "Today" | "Yesterday" | "Tomorrow" | "Values" | "Blanks" | "NonBlanks" | "GreaterThan" | "LessThan" | "Positive" | "Negative" | "Zero" | "Equals" | "NotEquals" | "Between" | "NotBetween" | "Is" | "IsNot" | "Contains" | "NotContains" | "StartsWith" | "EndsWith" | "Regex" | "ThisWeek" | "ThisMonth" | "ThisQuarter" | "ThisYear" | "InPast" | "InFuture" | "On" | "NotOn" | "NextWorkDay" | "LastWorkDay" | "InRange" | "True" | "False" | "BooleanToggle" | ((column: AdaptableColumn) => SystemFilterPredicateId)) => SystemFilterPredicateId;
|
|
@@ -148,7 +148,7 @@ export declare const PanelWithImage: React.ForwardRefExoticComponent<{
|
|
|
148
148
|
'aria-rowspan'?: number;
|
|
149
149
|
'aria-selected'?: boolean | "false" | "true";
|
|
150
150
|
'aria-setsize'?: number;
|
|
151
|
-
'aria-sort'?: "none" | "
|
|
151
|
+
'aria-sort'?: "none" | "other" | "ascending" | "descending";
|
|
152
152
|
'aria-valuemax'?: number;
|
|
153
153
|
'aria-valuemin'?: number;
|
|
154
154
|
'aria-valuenow'?: number;
|
|
@@ -16,11 +16,13 @@ const CustomSettingsPanelView_1 = require("./CustomSettingsPanelView");
|
|
|
16
16
|
const useMenuItems_1 = require("./useMenuItems");
|
|
17
17
|
const AdaptablePopupDialog_1 = require("./AdaptablePopupDialog");
|
|
18
18
|
exports.AdaptablePopup = (props) => {
|
|
19
|
+
var _a, _b;
|
|
19
20
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
20
21
|
const settingsPanelOptions = adaptable.adaptableOptions.settingsPanelOptions;
|
|
21
22
|
const settingsPanelTitle = adaptable.api.internalApi.getModuleFriendlyName('SettingsPanel');
|
|
22
23
|
const menuItems = useMenuItems_1.useMenuItems();
|
|
23
24
|
const isWindowModal = settingsPanelOptions.popupType === 'window';
|
|
25
|
+
const modalContainer = (_b = (_a = adaptable.adaptableOptions) === null || _a === void 0 ? void 0 : _a.containerOptions) === null || _b === void 0 ? void 0 : _b.modalContainer;
|
|
24
26
|
let friendlyName = null;
|
|
25
27
|
let isActionModule = false;
|
|
26
28
|
let moduleViewContent = null;
|
|
@@ -68,7 +70,7 @@ exports.AdaptablePopup = (props) => {
|
|
|
68
70
|
}
|
|
69
71
|
},
|
|
70
72
|
} },
|
|
71
|
-
React.createElement(AdaptablePopupDialog_1.AdaptablePopupDialog, { baseClassName: baseClassName, className: className, friendlyName: friendlyName, isActionModule: isActionModule, isWindowModal: isWindowModal, onHide: props.onHide },
|
|
73
|
+
React.createElement(AdaptablePopupDialog_1.AdaptablePopupDialog, { baseClassName: baseClassName, className: className, friendlyName: friendlyName, isActionModule: isActionModule, isWindowModal: isWindowModal, onHide: props.onHide, modalContainer: modalContainer },
|
|
72
74
|
!isActionModule && React.createElement(TopBar_1.default, { icon: settingsPanelOptions.icon }, settingsPanelTitle),
|
|
73
75
|
React.createElement(rebass_1.Flex, { "data-name": props.componentName, flexDirection: "row", flex: "1 1 0", style: { minHeight: 0 }, className: accessLevel == 'ReadOnly' ? GeneralConstants.READ_ONLY_STYLE : '' },
|
|
74
76
|
!isActionModule && (React.createElement(Navigation_1.Navigation, { menuItems: menuItems, api: props.api, activeItem: activeItem, customSettingsPanels: settingsPanelOptions.customSettingsPanels })),
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AdaptablePopupDialog = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
const react_dom_1 = require("react-dom");
|
|
6
7
|
const react_redux_1 = require("react-redux");
|
|
7
8
|
const Dialog_1 = tslib_1.__importDefault(require("../../../../components/Dialog"));
|
|
8
9
|
const SystemRedux_1 = require("../../../../Redux/ActionsReducers/SystemRedux");
|
|
@@ -42,7 +43,30 @@ const PopupDialog = (props) => {
|
|
|
42
43
|
return (React.createElement(Dialog_1.default, Object.assign({ fixed: false, style: props.style, padding: 0, height: '90vh', width: '90vw', className: className, onDismiss: onHide, isOpen: true, showCloseButton: true }, dialogProps), children));
|
|
43
44
|
};
|
|
44
45
|
exports.AdaptablePopupDialog = (props) => {
|
|
45
|
-
const { isActionModule, style, friendlyName, baseClassName, className, children, onHide, isWindowModal, } = props;
|
|
46
|
+
const { isActionModule, style, friendlyName, baseClassName, className, children, onHide, isWindowModal, modalContainer, } = props;
|
|
47
|
+
const elementRef = React.useMemo(() => {
|
|
48
|
+
if (!modalContainer) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
let ref = null;
|
|
52
|
+
if (typeof modalContainer === 'string') {
|
|
53
|
+
ref = globalThis.document.querySelector(modalContainer);
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
ref = modalContainer;
|
|
57
|
+
}
|
|
58
|
+
return ref;
|
|
59
|
+
}, [modalContainer]);
|
|
60
|
+
if (modalContainer) {
|
|
61
|
+
let ref = null;
|
|
62
|
+
if (typeof modalContainer === 'string') {
|
|
63
|
+
ref = globalThis.document.querySelector(modalContainer);
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
ref = modalContainer;
|
|
67
|
+
}
|
|
68
|
+
return react_dom_1.createPortal(React.createElement(Dialog_1.default, { modal: false, fixed: false, onDismiss: onHide, className: className }, children), ref);
|
|
69
|
+
}
|
|
46
70
|
if (isWindowModal) {
|
|
47
71
|
const settingsPanelOptionsKey = isActionModule ? `action-${friendlyName}` : 'settings';
|
|
48
72
|
return (React.createElement(WindowDialog, { settingsPanelOptionsKey: settingsPanelOptionsKey, isActionModule: isActionModule, onHide: onHide, style: style, baseClassName: baseClassName, className: className }, children));
|
|
@@ -13,17 +13,18 @@ exports.TopBar = (props) => {
|
|
|
13
13
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
14
14
|
const applicationIcon = (_a = adaptable.api.internalApi.getAdaptableOptions().userInterfaceOptions) === null || _a === void 0 ? void 0 : _a.applicationIcon;
|
|
15
15
|
let icon = React.createElement(React.Fragment, null);
|
|
16
|
+
const iconClassName = `${baseClassName}__Icon`;
|
|
16
17
|
if (props.icon === 'ConfigurationIcon') {
|
|
17
|
-
icon = React.createElement(icons_1.Icon, { className:
|
|
18
|
+
icon = React.createElement(icons_1.Icon, { className: iconClassName, name: "settings" });
|
|
18
19
|
}
|
|
19
20
|
else if (props.icon === 'ApplicationIcon' && applicationIcon) {
|
|
20
|
-
icon = React.createElement(ApplicationIcon_1.ApplicationIcon, { icon: applicationIcon });
|
|
21
|
+
icon = React.createElement(ApplicationIcon_1.ApplicationIcon, { className: iconClassName, icon: applicationIcon });
|
|
21
22
|
}
|
|
22
23
|
else if (typeof props.icon === 'object' && props.icon.src) {
|
|
23
|
-
icon = React.createElement(ApplicationIcon_1.ApplicationIcon, { icon: props.icon });
|
|
24
|
+
icon = React.createElement(ApplicationIcon_1.ApplicationIcon, { className: iconClassName, icon: props.icon });
|
|
24
25
|
}
|
|
25
26
|
return (React.createElement(rebass_1.Flex, { flex: 0, className: baseClassName },
|
|
26
27
|
icon,
|
|
27
|
-
React.createElement(rebass_1.Text,
|
|
28
|
+
React.createElement(rebass_1.Text, { className: `${baseClassName}__Title` }, props.children)));
|
|
28
29
|
};
|
|
29
30
|
exports.default = exports.TopBar;
|
|
@@ -14,7 +14,9 @@ class AdaptablePopupConfirmation extends React.Component {
|
|
|
14
14
|
constructor(props) {
|
|
15
15
|
super(props);
|
|
16
16
|
this.changeContent = (e) => {
|
|
17
|
-
this.setState({
|
|
17
|
+
this.setState({
|
|
18
|
+
PromptText: e.target.value,
|
|
19
|
+
});
|
|
18
20
|
};
|
|
19
21
|
this.state = { PromptText: '' };
|
|
20
22
|
}
|
|
@@ -1,18 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { Action } from 'redux';
|
|
3
|
+
export interface AdaptablePopupPromptProps {
|
|
4
4
|
header: string;
|
|
5
5
|
message: string;
|
|
6
6
|
onClose: () => void;
|
|
7
7
|
onConfirm: Function;
|
|
8
|
+
onConfirmActionCreator?: (inputText: string) => Action;
|
|
9
|
+
defaultValue?: string;
|
|
8
10
|
}
|
|
9
|
-
export
|
|
10
|
-
promptText: string;
|
|
11
|
-
}
|
|
12
|
-
export declare class AdaptablePopupPrompt extends React.Component<AdaptablePopupPromptProps, AdaptablePopupPromptState> {
|
|
13
|
-
constructor(props: AdaptablePopupPromptProps);
|
|
14
|
-
render(): JSX.Element;
|
|
15
|
-
onCloseForm(): void;
|
|
16
|
-
onConfirmmForm(): void;
|
|
17
|
-
changeContent: (e: any) => void;
|
|
18
|
-
}
|
|
11
|
+
export declare const AdaptablePopupPrompt: React.FunctionComponent<AdaptablePopupPromptProps>;
|
|
@@ -8,40 +8,41 @@ const Dialog_1 = tslib_1.__importDefault(require("../../../components/Dialog"));
|
|
|
8
8
|
const rebass_1 = require("rebass");
|
|
9
9
|
const SimpleButton_1 = tslib_1.__importDefault(require("../../../components/SimpleButton"));
|
|
10
10
|
const Input_1 = tslib_1.__importDefault(require("../../../components/Input"));
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
|
|
11
|
+
const react_redux_1 = require("react-redux");
|
|
12
|
+
exports.AdaptablePopupPrompt = (props) => {
|
|
13
|
+
var _a;
|
|
14
|
+
const dispatch = react_redux_1.useDispatch();
|
|
15
|
+
const [promptText, setPromptText] = React.useState((_a = props.defaultValue) !== null && _a !== void 0 ? _a : '');
|
|
16
|
+
const onCloseForm = () => {
|
|
17
|
+
setPromptText('');
|
|
18
|
+
props.onClose();
|
|
19
|
+
};
|
|
20
|
+
const onConfirmForm = () => {
|
|
21
|
+
props.onConfirm(promptText);
|
|
22
|
+
const confirmationAction = typeof props.onConfirmActionCreator === 'function' &&
|
|
23
|
+
props.onConfirmActionCreator(promptText);
|
|
24
|
+
if (confirmationAction) {
|
|
25
|
+
dispatch(confirmationAction);
|
|
26
|
+
}
|
|
27
|
+
setPromptText('');
|
|
28
|
+
};
|
|
29
|
+
const changeContent = (e) => {
|
|
30
|
+
setPromptText(e.target.value);
|
|
31
|
+
};
|
|
32
|
+
return (React.createElement(Dialog_1.default, { modal: true, "data-name": `prompt-popup`, isOpen: true, onDismiss: props.onClose, showCloseButton: false, style: { minHeight: 'auto', maxWidth: '50%' } },
|
|
33
|
+
React.createElement(rebass_1.Flex, { flexDirection: "column" },
|
|
34
|
+
React.createElement(rebass_1.Box, { marginTop: 3, mx: 2 }, props.header),
|
|
35
|
+
StringExtensions_1.StringExtensions.IsNotNullOrEmpty(props.message) && (React.createElement(rebass_1.Box, { marginTop: 3, mx: 2 },
|
|
36
|
+
' ',
|
|
37
|
+
React.createElement("div", { style: { display: 'flex', alignItems: 'center' } }, props.message.split('\n').map(function (item, index) {
|
|
38
|
+
return (React.createElement("span", { key: index },
|
|
39
|
+
item,
|
|
40
|
+
React.createElement("br", null)));
|
|
41
|
+
})))),
|
|
42
|
+
React.createElement(Input_1.default, { autoFocus: true, marginTop: 3, mx: 3, value: promptText, type: "string", placeholder: "Enter text", onChange: (e) => changeContent(e) }),
|
|
43
|
+
React.createElement(rebass_1.Box, { marginTop: 3 },
|
|
44
|
+
React.createElement(rebass_1.Flex, { padding: 2 },
|
|
45
|
+
React.createElement(SimpleButton_1.default, { tone: "accent", "data-name": "ok", variant: "raised", disabled: StringExtensions_1.StringExtensions.IsNullOrEmpty(promptText), onClick: () => onConfirmForm() }, "OK"),
|
|
46
|
+
React.createElement("div", { style: { flex: 1 } }),
|
|
47
|
+
React.createElement(SimpleButton_1.default, { tone: "neutral", variant: "raised", onClick: () => onCloseForm(), "data-name": "cancel" }, "Cancel"))))));
|
|
48
|
+
};
|
|
@@ -14,7 +14,10 @@ const HelpBlock_1 = tslib_1.__importDefault(require("../../../components/HelpBlo
|
|
|
14
14
|
const Radio_1 = tslib_1.__importDefault(require("../../../components/Radio"));
|
|
15
15
|
exports.AdaptablePopupTeamSharing = (props) => {
|
|
16
16
|
const { showPopup, onClose, onConfirm, header } = props;
|
|
17
|
-
const [config, setConfig] = react_1.useState({
|
|
17
|
+
const [config, setConfig] = react_1.useState({
|
|
18
|
+
description: '',
|
|
19
|
+
type: 'Snapshot',
|
|
20
|
+
});
|
|
18
21
|
return (React.createElement(React.Fragment, null,
|
|
19
22
|
React.createElement(Dialog_1.default, { modal: true, "data-name": "teamsharing-popup", isOpen: showPopup, onDismiss: onClose, autoFocus: false, showCloseButton: false, style: { minHeight: 'auto', maxWidth: '50%' } },
|
|
20
23
|
React.createElement(rebass_1.Flex, { flexDirection: "column" },
|
|
@@ -99,7 +99,10 @@ class ScopeComponent extends React.Component {
|
|
|
99
99
|
};
|
|
100
100
|
newScopeChoice = 'All';
|
|
101
101
|
}
|
|
102
|
-
this.setState({
|
|
102
|
+
this.setState({
|
|
103
|
+
ScopeChoice: newScopeChoice,
|
|
104
|
+
componentScope: newScope,
|
|
105
|
+
}, () => this.forceUpdate());
|
|
103
106
|
this.props.updateScope(newScope);
|
|
104
107
|
}
|
|
105
108
|
onColumnsSelectedChanged(columnFriendlyNames) {
|
|
@@ -19,7 +19,11 @@ exports.CustomToolPanelContent = (props) => {
|
|
|
19
19
|
react_1.useLayoutEffect(() => {
|
|
20
20
|
const node = contentsDivDomRef.current;
|
|
21
21
|
if (hasCustomRenderFn(customToolPanel)) {
|
|
22
|
-
const html = customToolPanel.render({
|
|
22
|
+
const html = customToolPanel.render({
|
|
23
|
+
visible: true,
|
|
24
|
+
node,
|
|
25
|
+
adaptableApi: api,
|
|
26
|
+
});
|
|
23
27
|
setContentsHTML(html);
|
|
24
28
|
}
|
|
25
29
|
else if (hasCustomFrameworkComponent(customToolPanel)) {
|
|
@@ -86,7 +86,9 @@ class ToolPanelPopupComponent extends React.Component {
|
|
|
86
86
|
onShowGridPropertiesChanged(event) {
|
|
87
87
|
let e = event.target;
|
|
88
88
|
let ToolPanelConfigView = e.value;
|
|
89
|
-
this.setState({
|
|
89
|
+
this.setState({
|
|
90
|
+
ToolPanelConfigView: ToolPanelConfigView,
|
|
91
|
+
});
|
|
90
92
|
}
|
|
91
93
|
onToolPanelToolPanelsChanged(selectedValues) {
|
|
92
94
|
const currentSelectedToolPanelDefinitions = this.props.ToolPanelState.ToolPanels;
|
|
@@ -40,7 +40,7 @@ exports.ToolPanelWrapper = (props) => {
|
|
|
40
40
|
];
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
-
const [toolPanelName, toolPanelHeader, toolPanelContent, moduleInfo
|
|
43
|
+
const [toolPanelName, toolPanelHeader, toolPanelContent, moduleInfo] = getToolPanelConfiguration();
|
|
44
44
|
const isMinimised = visibilityMode === 'collapsed';
|
|
45
45
|
const isConfigurable =
|
|
46
46
|
// only module toolPanels are configurable
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ConditionalStyle } from '../../../../types';
|
|
3
|
+
export declare const renderConditionalStyleSettingsSummary: (data: ConditionalStyle) => JSX.Element;
|
|
4
|
+
interface ConditionalStyleSettingsWizardSettingsProps {
|
|
5
|
+
onChange: (data: ConditionalStyle) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const ConditionalStyleSettingsWizardSettings: React.FunctionComponent<ConditionalStyleSettingsWizardSettingsProps>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConditionalStyleSettingsWizardSettings = exports.renderConditionalStyleSettingsSummary = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
const rebass_1 = require("rebass");
|
|
7
|
+
const CheckBox_1 = require("../../../components/CheckBox");
|
|
8
|
+
const FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayout"));
|
|
9
|
+
const Tabs_1 = require("../../../components/Tabs");
|
|
10
|
+
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
11
|
+
exports.renderConditionalStyleSettingsSummary = (data) => (React.createElement(rebass_1.Box, { padding: 2 },
|
|
12
|
+
React.createElement(rebass_1.Text, null, "Include grouped rows"),
|
|
13
|
+
React.createElement(rebass_1.Text, { mt: 3 }, data.IncludeGroupedRows ? 'Yes' : 'No')));
|
|
14
|
+
exports.ConditionalStyleSettingsWizardSettings = (props) => {
|
|
15
|
+
const { data } = OnePageAdaptableWizard_1.useOnePageWizardContext();
|
|
16
|
+
const onIncludeGroupedRowsChanged = (checked) => {
|
|
17
|
+
props.onChange(Object.assign(Object.assign({}, data), { IncludeGroupedRows: checked }));
|
|
18
|
+
};
|
|
19
|
+
return (React.createElement(Tabs_1.Tabs, null,
|
|
20
|
+
React.createElement(Tabs_1.Tabs.Tab, null, "Settings"),
|
|
21
|
+
React.createElement(Tabs_1.Tabs.Content, null,
|
|
22
|
+
React.createElement(rebass_1.Flex, { flexDirection: "row" },
|
|
23
|
+
React.createElement(FormLayout_1.default, null,
|
|
24
|
+
React.createElement(FormLayout_1.FormRow, { label: "Include Grouped Rows:" },
|
|
25
|
+
React.createElement(rebass_1.Flex, { alignItems: "center", marginLeft: 2 },
|
|
26
|
+
React.createElement(CheckBox_1.CheckBox, { checked: data.IncludeGroupedRows, onChange: onIncludeGroupedRowsChanged, mr: 2 }))))))));
|
|
27
|
+
};
|
|
@@ -17,6 +17,7 @@ const EntityRulesEditor_1 = require("../../Components/EntityRulesEditor");
|
|
|
17
17
|
const ObjectFactory_1 = tslib_1.__importDefault(require("../../../Utilities/ObjectFactory"));
|
|
18
18
|
const react_redux_1 = require("react-redux");
|
|
19
19
|
const ConditionalStyleRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/ConditionalStyleRedux"));
|
|
20
|
+
const ConditionalStyleSettingsWizardSettings_1 = require("./ConditionalStyleSettingsWizardSettings");
|
|
20
21
|
exports.ConditionalStyleWizard = (props) => {
|
|
21
22
|
var _a;
|
|
22
23
|
const data = (_a = props.data) !== null && _a !== void 0 ? _a : props.popupParams.value;
|
|
@@ -84,6 +85,12 @@ exports.ConditionalStyleWizard = (props) => {
|
|
|
84
85
|
},
|
|
85
86
|
renderSummary: ConditionalStyleRuleWizardSection_1.renderConditionalStyleRuleSummary,
|
|
86
87
|
},
|
|
88
|
+
{
|
|
89
|
+
title: 'Settings',
|
|
90
|
+
renderSummary: ConditionalStyleSettingsWizardSettings_1.renderConditionalStyleSettingsSummary,
|
|
91
|
+
render: () => (React.createElement(rebass_1.Box, { padding: 2 },
|
|
92
|
+
React.createElement(ConditionalStyleSettingsWizardSettings_1.ConditionalStyleSettingsWizardSettings, { onChange: setConditionalStyle }))),
|
|
93
|
+
},
|
|
87
94
|
'-',
|
|
88
95
|
{
|
|
89
96
|
details: 'Review the Conditional Style',
|
|
@@ -55,7 +55,9 @@ exports.CustomSortValuesWizardSection = (props) => {
|
|
|
55
55
|
return sortedValuesMap.has(option);
|
|
56
56
|
}, [sortedValuesMap]);
|
|
57
57
|
const options = react_1.useMemo(() => {
|
|
58
|
-
return sortWithOrder_1.sortWithOrderArray(distinctValues, data.SortedValues, {
|
|
58
|
+
return sortWithOrder_1.sortWithOrderArray(distinctValues, data.SortedValues, {
|
|
59
|
+
sortUnorderedItems: false,
|
|
60
|
+
});
|
|
59
61
|
}, [allowReorder, distinctValues, data.SortedValues]);
|
|
60
62
|
const baseClassName = 'ab-CustomSortWizard__SortOrder';
|
|
61
63
|
const className = join_1.default(baseClassName, isDistinctValuesLoading && `${baseClassName}--loading`);
|
|
@@ -17,7 +17,11 @@ exports.CustomToolbarWrapper = (props) => {
|
|
|
17
17
|
const node = contentsDivRef.current;
|
|
18
18
|
const adaptableApi = api;
|
|
19
19
|
if (props.customToolbar.render) {
|
|
20
|
-
const html = props.customToolbar.render({
|
|
20
|
+
const html = props.customToolbar.render({
|
|
21
|
+
visible: true,
|
|
22
|
+
node,
|
|
23
|
+
adaptableApi,
|
|
24
|
+
});
|
|
21
25
|
setContentsHTML(html);
|
|
22
26
|
}
|
|
23
27
|
else if (props.customToolbar.frameworkComponent) {
|
|
@@ -150,7 +150,7 @@ const DashboardComponent = (props) => {
|
|
|
150
150
|
props.onSetFloatingPosition(FloatingPositionCallback);
|
|
151
151
|
}
|
|
152
152
|
}, left: React.createElement(React.Fragment, null,
|
|
153
|
-
React.createElement(ApplicationIcon_1.ApplicationIcon, { icon: props.api.internalApi.getAdaptableOptions().userInterfaceOptions.applicationIcon }),
|
|
153
|
+
React.createElement(ApplicationIcon_1.ApplicationIcon, { className: "ab-Dashboard__application-icon", icon: props.api.internalApi.getAdaptableOptions().userInterfaceOptions.applicationIcon }),
|
|
154
154
|
dashboardOptions.buttonsLocation === 'left' && renderModuleButtons()), right: React.createElement(React.Fragment, null,
|
|
155
155
|
renderDashboardButtons(),
|
|
156
156
|
dashboardOptions.buttonsLocation === 'right' && renderModuleButtons(),
|
|
@@ -90,7 +90,9 @@ class DashboardPopupComponent extends React.Component {
|
|
|
90
90
|
onDashboardConfigViewChanged(event) {
|
|
91
91
|
let e = event.target;
|
|
92
92
|
let dashboardConfigView = e.value;
|
|
93
|
-
this.setState({
|
|
93
|
+
this.setState({
|
|
94
|
+
DashboardConfigView: dashboardConfigView,
|
|
95
|
+
});
|
|
94
96
|
}
|
|
95
97
|
}
|
|
96
98
|
function mapStateToProps(state, ownProps) {
|
|
@@ -189,7 +189,8 @@ const buildAdaptableOptions = (mainAdaptableInstance, gridOptions, adaptableCont
|
|
|
189
189
|
const layoutColumns = options.predefinedConfig.Layout.Layouts[0].Columns;
|
|
190
190
|
if (layoutColumns.includes('undoActionColumn')) {
|
|
191
191
|
// remove action column from layout
|
|
192
|
-
options.predefinedConfig.Layout.Layouts[0].Columns =
|
|
192
|
+
options.predefinedConfig.Layout.Layouts[0].Columns =
|
|
193
|
+
layoutColumns.filter((columnId) => columnId !== 'undoActionColumn');
|
|
193
194
|
}
|
|
194
195
|
}
|
|
195
196
|
return options;
|
|
@@ -44,7 +44,9 @@ class ReportColumnTypeWizard extends React.Component {
|
|
|
44
44
|
}, () => this.props.updateGoBackState());
|
|
45
45
|
}
|
|
46
46
|
else {
|
|
47
|
-
this.setState({
|
|
47
|
+
this.setState({
|
|
48
|
+
ReportColumnScope: Enums_1.ReportColumnScope.ScopeColumns,
|
|
49
|
+
}, () => this.props.updateGoBackState());
|
|
48
50
|
}
|
|
49
51
|
}
|
|
50
52
|
canNext() {
|
|
@@ -44,7 +44,9 @@ class ReportRowTypeWizard extends React.Component {
|
|
|
44
44
|
}, () => this.props.updateGoBackState());
|
|
45
45
|
}
|
|
46
46
|
else {
|
|
47
|
-
this.setState({
|
|
47
|
+
this.setState({
|
|
48
|
+
ReportRowScope: Enums_1.ReportRowScope.ExpressionRows,
|
|
49
|
+
}, () => this.props.updateGoBackState());
|
|
48
50
|
}
|
|
49
51
|
}
|
|
50
52
|
canNext() {
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { ViewPanelProps } from '../Components/SharedProps/ViewPanelProps';
|
|
2
|
-
import { UIPrompt } from '../../Utilities/Interface/MessagePopups';
|
|
3
|
-
import * as PopupRedux from '../../Redux/ActionsReducers/PopupRedux';
|
|
4
2
|
import * as FilterRedux from '../../Redux/ActionsReducers/FilterRedux';
|
|
5
3
|
import { ColumnFilter } from '../../PredefinedConfig/FilterState';
|
|
6
4
|
import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
7
5
|
import { Entitlement } from '../../PredefinedConfig/Common/Entitlement';
|
|
8
6
|
import * as React from 'react';
|
|
9
7
|
export interface FilterViewPanelComponentProps extends ViewPanelProps {
|
|
10
|
-
onShowPrompt: (prompt: UIPrompt) => PopupRedux.PopupShowPromptAction;
|
|
11
8
|
onHideQuickFilterBar: () => FilterRedux.QuickFilterBarHideAction;
|
|
12
9
|
onShowQuickFilterBar: () => FilterRedux.QuickFilterBarShowAction;
|
|
13
10
|
ColumnFilters: ColumnFilter[];
|
|
@@ -21,5 +18,5 @@ declare class FilterViewPanelComponent extends React.Component<FilterViewPanelCo
|
|
|
21
18
|
private onClearFilters;
|
|
22
19
|
private onClearColumnFilter;
|
|
23
20
|
}
|
|
24
|
-
export declare const FilterViewPanelControl: import("react-redux").ConnectedComponent<typeof FilterViewPanelComponent,
|
|
21
|
+
export declare const FilterViewPanelControl: import("react-redux").ConnectedComponent<typeof FilterViewPanelComponent, Pick<React.ClassAttributes<FilterViewPanelComponent> & FilterViewPanelComponentProps, "ref" | "key">>;
|
|
25
22
|
export {};
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FilterViewPanelControl = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const PopupRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/PopupRedux"));
|
|
6
5
|
const FilterRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/FilterRedux"));
|
|
7
6
|
const React = tslib_1.__importStar(require("react"));
|
|
8
7
|
const ActiveFiltersPanel_1 = require("./ActiveFiltersPanel");
|
|
@@ -37,7 +36,7 @@ class FilterViewPanelComponent extends React.Component {
|
|
|
37
36
|
this.props.api.filterApi.clearColumnFilterByColumn(columnFilter.ColumnId);
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
|
-
function mapStateToProps(state
|
|
39
|
+
function mapStateToProps(state) {
|
|
41
40
|
return {
|
|
42
41
|
ColumnFilters: state.Filter.ColumnFilters,
|
|
43
42
|
IsQuickFilterVisible: state.Filter.IsQuickFilterVisible,
|
|
@@ -45,7 +44,6 @@ function mapStateToProps(state, ownProps) {
|
|
|
45
44
|
}
|
|
46
45
|
function mapDispatchToProps(dispatch) {
|
|
47
46
|
return {
|
|
48
|
-
onShowPrompt: (prompt) => dispatch(PopupRedux.PopupShowPrompt(prompt)),
|
|
49
47
|
onHideQuickFilterBar: () => dispatch(FilterRedux.QuickFilterBarHide()),
|
|
50
48
|
onShowQuickFilterBar: () => dispatch(FilterRedux.QuickFilterBarShow()),
|
|
51
49
|
};
|
|
@@ -49,8 +49,7 @@ class FreeTextColumnSummaryComponent extends React.Component {
|
|
|
49
49
|
this.state.editedAdaptableObject && (React.createElement(FreeTextColumnWizard_1.FreeTextColumnWizard, { moduleInfo: this.props.moduleInfo, data: this.state.editedAdaptableObject, configEntities: this.props.FreeTextColumns, onCloseWizard: () => this.onCloseWizard(), onFinishWizard: this.onFinishWizard }))));
|
|
50
50
|
}
|
|
51
51
|
onNew() {
|
|
52
|
-
const specialColumnsAreFilterable = this.props.api.internalApi.getAdaptableOptions()
|
|
53
|
-
.filterOptions.enableFilterOnSpecialColumns;
|
|
52
|
+
const specialColumnsAreFilterable = this.props.api.internalApi.getAdaptableOptions().filterOptions.enableFilterOnSpecialColumns;
|
|
54
53
|
let configEntity = ObjectFactory_1.ObjectFactory.CreateEmptyFreeTextColumn(specialColumnsAreFilterable);
|
|
55
54
|
configEntity.ColumnId = this.props.summarisedColumn.columnId;
|
|
56
55
|
this.setState({
|
|
@@ -92,7 +92,10 @@ const OptionContainerComponent = (props) => {
|
|
|
92
92
|
const panelButton = viewMode === 'expanded' ? (React.createElement(ButtonMinimise_1.ButtonMinimise, { onClick: () => requestViewModeChange(), tooltip: `Hide ${label}` })) : (React.createElement(ButtonMaximise_1.ButtonMaximise, { onClick: () => requestViewModeChange(), tooltip: `Show ${label}` }));
|
|
93
93
|
return (React.createElement(PanelWithButton_1.PanelWithButton, { className: `options-container-${name}`, variant: "default", headerText: label, headerProps: {
|
|
94
94
|
fontSize: 3,
|
|
95
|
-
style: {
|
|
95
|
+
style: {
|
|
96
|
+
fontWeight: viewMode === 'expanded' ? 800 : 400,
|
|
97
|
+
cursor: 'pointer',
|
|
98
|
+
},
|
|
96
99
|
'data-name': `options-container-header-${name}`,
|
|
97
100
|
onClick: () => requestViewModeChange(),
|
|
98
101
|
}, button: panelButton, style: { marginBottom: 3 } }, viewMode === 'expanded' && children));
|
|
@@ -21,7 +21,11 @@ const PivotList_1 = require("./PivotList");
|
|
|
21
21
|
const ButtonInfo_1 = require("../../../Components/Buttons/ButtonInfo");
|
|
22
22
|
const Input_1 = tslib_1.__importDefault(require("../../../../components/Input"));
|
|
23
23
|
const StringExtensions_1 = tslib_1.__importDefault(require("../../../../Utilities/Extensions/StringExtensions"));
|
|
24
|
-
const verticalPanelStyle = {
|
|
24
|
+
const verticalPanelStyle = {
|
|
25
|
+
minHeight: 150,
|
|
26
|
+
flex: '1 0 auto',
|
|
27
|
+
overflow: 'auto',
|
|
28
|
+
};
|
|
25
29
|
const ListPanel = (props) => (React.createElement(Panel_1.default, Object.assign({ variant: "modern", bodyProps: { padding: 0 }, style: Object.assign(Object.assign({}, verticalPanelStyle), props.style) }, props)));
|
|
26
30
|
const ColumnLabels = (props) => {
|
|
27
31
|
const { children, showBoth, showTitle, flexDirection = 'row', labels: labelsProp } = props, columnProperties = tslib_1.__rest(props, ["children", "showBoth", "showTitle", "flexDirection", "labels"]);
|