@adaptabletools/adaptable-cjs 22.0.0-canary.4 → 22.0.0-canary.6
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/index.css +46 -26
- package/index.css.map +1 -1
- package/package.json +1 -1
- package/src/AdaptableOptions/CustomSortOptions.d.ts +1 -2
- package/src/AdaptableState/AlertState.d.ts +6 -2
- package/src/AdaptableState/ChartingState.d.ts +5 -5
- package/src/AdaptableState/Common/AdaptableObject.d.ts +0 -9
- package/src/AdaptableState/Common/AdaptableStyle.d.ts +1 -1
- package/src/AdaptableState/Common/ColumnHighlightInfo.d.ts +18 -0
- package/src/AdaptableState/Common/Schedule.d.ts +6 -2
- package/src/AdaptableState/CustomSortState.d.ts +6 -2
- package/src/AdaptableState/DashboardState.d.ts +3 -3
- package/src/AdaptableState/ExportState.d.ts +3 -3
- package/src/AdaptableState/FlashingCellState.d.ts +6 -2
- package/src/AdaptableState/FormatColumnState.d.ts +6 -2
- package/src/AdaptableState/InternalState.d.ts +2 -0
- package/src/AdaptableState/LayoutState.d.ts +4 -4
- package/src/AdaptableState/NamedQueryState.d.ts +3 -3
- package/src/AdaptableState/PlusMinusState.d.ts +6 -2
- package/src/AdaptableState/ShortcutState.d.ts +6 -2
- package/src/AdaptableState/ThemeState.d.ts +3 -3
- package/src/Api/GridApi.d.ts +18 -3
- package/src/Api/Implementation/GridApiImpl.d.ts +4 -0
- package/src/Api/Implementation/GridApiImpl.js +14 -0
- package/src/Api/Implementation/LayoutHelpers.js +4 -4
- package/src/Redux/ActionsReducers/InternalRedux.d.ts +15 -0
- package/src/Redux/ActionsReducers/InternalRedux.js +42 -3
- package/src/Redux/Store/AdaptableStore.js +21 -0
- package/src/View/Alert/Utilities/getDefaultAlertDefinition.d.ts +2 -2
- package/src/View/Components/ColumnFilter/FloatingFilter.js +41 -3
- package/src/View/Components/ColumnFilter/components/ColumnFilterMenu.js +54 -2
- package/src/View/Components/StyleComponent.d.ts +1 -0
- package/src/View/Components/StyleComponent.js +84 -33
- package/src/View/GridFilter/GridFilterExpressionEditor.js +6 -1
- package/src/View/GridFilter/GridFilterViewPanel.js +33 -70
- package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +2 -2
- package/src/agGrid/AdaptableAgGrid.js +9 -0
- package/src/agGrid/AgGridColumnAdapter.d.ts +1 -0
- package/src/agGrid/AgGridColumnAdapter.js +14 -3
- package/src/components/ColorPicker/ColorPicker.js +5 -4
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +1 -1
- package/src/components/Select/Select.js +77 -14
- package/src/env.js +2 -2
- package/src/layout-manager/src/LayoutManagerModel.d.ts +1 -1
- package/src/layout-manager/src/index.js +5 -5
- package/src/layout-manager/src/normalizeLayoutModel.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +25 -18
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +2 -2
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.d.ts +0 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +0 -633
- package/src/View/Alert/AlertEntityRow.d.ts +0 -11
- package/src/View/Alert/AlertEntityRow.js +0 -33
- package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +0 -21
- package/src/View/CalculatedColumn/CalculatedColumnSummary.js +0 -63
- package/src/View/Components/Buttons/ButtonFunction.d.ts +0 -7
- package/src/View/Components/Buttons/ButtonFunction.js +0 -13
- package/src/View/Components/Buttons/ButtonGeneral.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonGeneral.js +0 -12
- package/src/View/Components/Buttons/ButtonPreviewDelete.d.ts +0 -4
- package/src/View/Components/Buttons/ButtonPreviewDelete.js +0 -8
- package/src/View/Components/Buttons/ButtonShow.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonShow.js +0 -12
- package/src/View/Components/Buttons/ButtonShowChart.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonShowChart.js +0 -12
- package/src/View/Components/Buttons/ButtonUndo.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonUndo.js +0 -12
- package/src/View/Components/ExpressionWizard.d.ts +0 -24
- package/src/View/Components/ExpressionWizard.js +0 -82
- package/src/View/Components/FilterForm/Waiting.d.ts +0 -10
- package/src/View/Components/FilterForm/Waiting.js +0 -19
- package/src/View/Components/Panels/PanelFooter.d.ts +0 -10
- package/src/View/Components/Panels/PanelFooter.js +0 -14
- package/src/View/Components/Panels/PanelWithTwoButtons.d.ts +0 -12
- package/src/View/Components/Panels/PanelWithTwoButtons.js +0 -20
- package/src/View/Components/Panels/ToolPanelSettingsPanel.d.ts +0 -8
- package/src/View/Components/Panels/ToolPanelSettingsPanel.js +0 -31
- package/src/View/Components/Selectors/ColumnSelectorOld.d.ts +0 -18
- package/src/View/Components/Selectors/ColumnSelectorOld.js +0 -50
- package/src/View/Components/SharedProps/WizardScopeState.d.ts +0 -4
- package/src/View/Components/WizardSummaryRow.d.ts +0 -9
- package/src/View/Components/WizardSummaryRow.js +0 -16
- package/src/View/CustomSort/CustomSortSummary.d.ts +0 -23
- package/src/View/CustomSort/CustomSortSummary.js +0 -110
- package/src/View/DataImport/DataImportWizard/sections/ImportSection.d.ts +0 -9
- package/src/View/DataImport/DataImportWizard/sections/ImportSection.js +0 -24
- package/src/View/Export/Wizard/ReportColumnTypeWizard.d.ts +0 -19
- package/src/View/Export/Wizard/ReportColumnTypeWizard.js +0 -73
- package/src/View/Export/Wizard/ReportRowTypeWizard.d.ts +0 -19
- package/src/View/Export/Wizard/ReportRowTypeWizard.js +0 -73
- package/src/View/Export/Wizard/ReportSettingsWizard.d.ts +0 -21
- package/src/View/Export/Wizard/ReportSettingsWizard.js +0 -61
- package/src/View/Export/Wizard/ReportSummaryWizard.d.ts +0 -15
- package/src/View/Export/Wizard/ReportSummaryWizard.js +0 -40
- package/src/View/Filter/FilterSummary.d.ts +0 -18
- package/src/View/Filter/FilterSummary.js +0 -53
- package/src/View/FormatColumn/FormatColumnSummary.d.ts +0 -22
- package/src/View/FormatColumn/FormatColumnSummary.js +0 -95
- package/src/View/FreeTextColumn/FreeTextColumnSummary.d.ts +0 -22
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +0 -93
- package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.d.ts +0 -7
- package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.js +0 -99
- package/src/View/PlusMinus/PlusMinusSummary.d.ts +0 -22
- package/src/View/PlusMinus/PlusMinusSummary.js +0 -100
- package/src/View/Wizard/WizardLegend.d.ts +0 -12
- package/src/View/Wizard/WizardLegend.js +0 -28
- /package/src/{View/Components/SharedProps/WizardScopeState.js → AdaptableState/Common/ColumnHighlightInfo.js} +0 -0
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ModuleSummaryProps } from '../Components/SharedProps/ModuleSummaryProps';
|
|
3
|
-
import { EditableConfigEntityState } from '../Components/SharedProps/EditableConfigEntityState';
|
|
4
|
-
import { CalculatedColumn } from '../../AdaptableState/CalculatedColumnState';
|
|
5
|
-
import type { Action } from 'redux';
|
|
6
|
-
export interface CalculatedColumnSummaryProps extends ModuleSummaryProps<CalculatedColumnSummaryComponent> {
|
|
7
|
-
CalculatedColumns: CalculatedColumn[];
|
|
8
|
-
onEdit: (calculatedColumn: CalculatedColumn) => void;
|
|
9
|
-
onDeleteConfirm: Action;
|
|
10
|
-
}
|
|
11
|
-
export declare class CalculatedColumnSummaryComponent extends React.Component<CalculatedColumnSummaryProps, EditableConfigEntityState> {
|
|
12
|
-
constructor(props: CalculatedColumnSummaryProps);
|
|
13
|
-
render(): any;
|
|
14
|
-
onEdit(calculatedColumn: CalculatedColumn): void;
|
|
15
|
-
onCloseWizard(): void;
|
|
16
|
-
onFinishWizard: (calculatedColumn: CalculatedColumn) => void;
|
|
17
|
-
}
|
|
18
|
-
export declare let CalculatedColumnSummary: import("react-redux").ConnectedComponent<typeof CalculatedColumnSummaryComponent, {
|
|
19
|
-
context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").UnknownAction>>;
|
|
20
|
-
store?: import("redux").Store;
|
|
21
|
-
}>;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CalculatedColumnSummary = exports.CalculatedColumnSummaryComponent = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const react_redux_1 = require("react-redux");
|
|
7
|
-
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
8
|
-
const CalculatedColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/CalculatedColumnRedux"));
|
|
9
|
-
const EditableConfigEntityState_1 = require("../Components/SharedProps/EditableConfigEntityState");
|
|
10
|
-
const UIHelper_1 = require("../UIHelper");
|
|
11
|
-
const ModuleDetail_1 = require("../Components/ModuleSummary/ModuleDetail");
|
|
12
|
-
const CalculatedColumnWizard_1 = require("./Wizard/CalculatedColumnWizard");
|
|
13
|
-
class CalculatedColumnSummaryComponent extends React.Component {
|
|
14
|
-
constructor(props) {
|
|
15
|
-
super(props);
|
|
16
|
-
this.state = UIHelper_1.UIHelper.getEmptyConfigState();
|
|
17
|
-
}
|
|
18
|
-
render() {
|
|
19
|
-
let detailRow;
|
|
20
|
-
this.props.CalculatedColumns.map((item, index) => {
|
|
21
|
-
if (item.ColumnId == this.props.summarisedColumn.columnId) {
|
|
22
|
-
detailRow = (React.createElement(ModuleDetail_1.ModuleDetail, { key: 'UF' + index, item1: this.props.moduleInfo.FriendlyName, item2: this.props.api.internalApi.getAdaptableQueryExpressionText(item.Query), configEnity: item, showShare: this.props.teamSharingActivated, moduleInfo: this.props.moduleInfo, onEdit: () => this.onEdit(item), onShare: (config) => this.props.onShare(item, config), onDelete: CalculatedColumnRedux.CalculatedColumnDelete(item), showBold: true, accessLevel: this.props.accessLevel }));
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
return (React.createElement("div", null,
|
|
26
|
-
detailRow,
|
|
27
|
-
this.state.editedAdaptableObject && (React.createElement(CalculatedColumnWizard_1.CalculatedColumnWizard, { moduleInfo: this.props.moduleInfo, data: this.state.editedAdaptableObject, configEntities: this.props.CalculatedColumns, onCloseWizard: () => this.onCloseWizard(), onFinishWizard: this.onFinishWizard }))));
|
|
28
|
-
}
|
|
29
|
-
onEdit(calculatedColumn) {
|
|
30
|
-
this.setState({
|
|
31
|
-
editedAdaptableObject: Helper_1.Helper.cloneObject(calculatedColumn),
|
|
32
|
-
wizardStartIndex: 0,
|
|
33
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.Edit,
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
onCloseWizard() {
|
|
37
|
-
this.setState({
|
|
38
|
-
editedAdaptableObject: null,
|
|
39
|
-
wizardStartIndex: 0,
|
|
40
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
onFinishWizard = (calculatedColumn) => {
|
|
44
|
-
this.props.onEdit(calculatedColumn);
|
|
45
|
-
this.setState({
|
|
46
|
-
editedAdaptableObject: null,
|
|
47
|
-
wizardStartIndex: 0,
|
|
48
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
49
|
-
});
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
exports.CalculatedColumnSummaryComponent = CalculatedColumnSummaryComponent;
|
|
53
|
-
function mapStateToProps(state) {
|
|
54
|
-
return {
|
|
55
|
-
CalculatedColumns: state.CalculatedColumn.CalculatedColumns,
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
function mapDispatchToProps(dispatch) {
|
|
59
|
-
return {
|
|
60
|
-
onEdit: (calculatedColumn) => dispatch(CalculatedColumnRedux.CalculatedColumnEdit(calculatedColumn)),
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
exports.CalculatedColumnSummary = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps)(CalculatedColumnSummaryComponent);
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { SimpleButtonProps } from '../../../components/SimpleButton';
|
|
3
|
-
export interface ModuleButtonProps extends SimpleButtonProps {
|
|
4
|
-
}
|
|
5
|
-
export declare class ButtonFunction extends React.Component<ModuleButtonProps, {}> {
|
|
6
|
-
render(): React.JSX.Element;
|
|
7
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ButtonFunction = 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 twMerge_1 = require("../../../twMerge");
|
|
8
|
-
class ButtonFunction extends React.Component {
|
|
9
|
-
render() {
|
|
10
|
-
return (React.createElement(SimpleButton_1.default, { "data-name": "function", tooltip: "Module", iconSize: 20, icon: "function", ...this.props, className: (0, twMerge_1.twMerge)('twa:mr-1', this.props.className) }));
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.ButtonFunction = ButtonFunction;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ButtonGeneral = 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
|
-
class ButtonGeneral extends React.Component {
|
|
8
|
-
render() {
|
|
9
|
-
return React.createElement(SimpleButton_1.default, { tooltip: "", variant: "text", ...this.props });
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.ButtonGeneral = ButtonGeneral;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const React = tslib_1.__importStar(require("react"));
|
|
5
|
-
const SimpleButton_1 = tslib_1.__importDefault(require("../../../components/SimpleButton"));
|
|
6
|
-
exports.default = (props) => {
|
|
7
|
-
return React.createElement(SimpleButton_1.default, { ...props, icon: 'delete', variant: "text", "data-name": "preview-delete" });
|
|
8
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ButtonShow = 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
|
-
class ButtonShow extends React.Component {
|
|
8
|
-
render() {
|
|
9
|
-
return (React.createElement(SimpleButton_1.default, { "data-name": "show", tooltip: "Show", iconSize: 18, icon: "check", variant: "text", ...this.props }));
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.ButtonShow = ButtonShow;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ButtonShowChart = 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
|
-
class ButtonShowChart extends React.Component {
|
|
8
|
-
render() {
|
|
9
|
-
return (React.createElement(SimpleButton_1.default, { "data-name": "show-chart", tooltip: "Show Chart", iconSize: 20, icon: "chart", variant: "text", ...this.props }));
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.ButtonShowChart = ButtonShowChart;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ButtonUndo = 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
|
-
class ButtonUndo extends React.Component {
|
|
8
|
-
render() {
|
|
9
|
-
return (React.createElement(SimpleButton_1.default, { "data-name": "undo", iconSize: 20, tooltip: "Undo", icon: 'undo', variant: "text", ...this.props }));
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.ButtonUndo = ButtonUndo;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { AdaptableModule } from '../../AdaptableState/Common/Types';
|
|
3
|
-
import { AdaptableWizardStep, AdaptableWizardStepProps } from '../Wizard/Interface/IAdaptableWizard';
|
|
4
|
-
export interface ExpressionWizardProps extends AdaptableWizardStepProps<any> {
|
|
5
|
-
onSetNewNamedQuery: (newNamedQuery: string) => void;
|
|
6
|
-
callingModule?: AdaptableModule;
|
|
7
|
-
}
|
|
8
|
-
export interface ExpressionWizardState {
|
|
9
|
-
expression?: string;
|
|
10
|
-
saveToNamedQueries: boolean;
|
|
11
|
-
newNamedQuery: string;
|
|
12
|
-
}
|
|
13
|
-
export declare class ExpressionWizard extends React.Component<ExpressionWizardProps, ExpressionWizardState> implements AdaptableWizardStep {
|
|
14
|
-
constructor(props: ExpressionWizardProps);
|
|
15
|
-
render(): React.JSX.Element;
|
|
16
|
-
isValidExpression(): boolean;
|
|
17
|
-
handleCustomExpressionChange: (expression: string) => void;
|
|
18
|
-
canNext(): boolean;
|
|
19
|
-
canBack(): boolean;
|
|
20
|
-
next(): void;
|
|
21
|
-
back(): void;
|
|
22
|
-
getIndexStepIncrement(): number;
|
|
23
|
-
getIndexStepDecrement(): number;
|
|
24
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ExpressionWizard = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const CheckBox_1 = require("../../components/CheckBox");
|
|
7
|
-
const ExpressionEditor_1 = require("../../components/ExpressionEditor");
|
|
8
|
-
const Input_1 = tslib_1.__importDefault(require("../../components/Input"));
|
|
9
|
-
const StringExtensions_1 = require("../../Utilities/Extensions/StringExtensions");
|
|
10
|
-
const ModuleConstants_1 = require("../../Utilities/Constants/ModuleConstants");
|
|
11
|
-
const react_1 = require("react");
|
|
12
|
-
const Flex_1 = require("../../components/Flex");
|
|
13
|
-
class ExpressionWizard extends React.Component {
|
|
14
|
-
constructor(props) {
|
|
15
|
-
super(props);
|
|
16
|
-
this.state = {
|
|
17
|
-
// this is realy horrible but its only way to use the Expression Wizard for both Report (that has Query) and Format Column (that has Rule)
|
|
18
|
-
// once we move to the new Wizard we can remove this monstrosity
|
|
19
|
-
expression: this.props.callingModule && this.props.callingModule == 'Export'
|
|
20
|
-
? this.props.data.Query?.BooleanExpression
|
|
21
|
-
: this.props.data.Rule?.BooleanExpression,
|
|
22
|
-
saveToNamedQueries: false,
|
|
23
|
-
newNamedQuery: '',
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
render() {
|
|
27
|
-
const initialData = (0, react_1.useMemo)(() => this.props.api.internalApi.getQueryPreviewData(), []);
|
|
28
|
-
return (React.createElement(React.Fragment, null,
|
|
29
|
-
React.createElement(ExpressionEditor_1.ExpressionEditor, { type: 'boolean', module: ModuleConstants_1.NamedQueryModuleId, value: this.state.expression, onChange: this.handleCustomExpressionChange, initialData: initialData, columns: this.props.api.columnApi.internalApi.getQueryableColumnsForUIEditor(), fields: this.props.api.expressionApi.internalApi.getAvailableFields(), namedQueries: this.props.api.namedQueryApi.getNamedQueries(), api: this.props.api }),
|
|
30
|
-
' ',
|
|
31
|
-
React.createElement(Flex_1.Flex, { flexDirection: "row", className: "twa:p-1 twa:mb-2 twa:ml-1", alignItems: "center", "data-name": "expression-wizard-save-option" },
|
|
32
|
-
React.createElement(CheckBox_1.CheckBox, { className: "twa:ml-2 twa:mb-2", disabled: !this.isValidExpression(), checked: this.state.saveToNamedQueries, onChange: (checked) => this.setState({
|
|
33
|
-
saveToNamedQueries: checked,
|
|
34
|
-
}, () => this.props.updateGoBackState()) }, "Save as new Named Query"),
|
|
35
|
-
this.state.saveToNamedQueries && (React.createElement(Input_1.default, { className: "twa:ml-2 twa:min-w-[20rem]", value: this.state.newNamedQuery, onChange: (e) => this.setState({
|
|
36
|
-
newNamedQuery: e.target.value,
|
|
37
|
-
}, () => this.props.updateGoBackState()) })))));
|
|
38
|
-
}
|
|
39
|
-
isValidExpression() {
|
|
40
|
-
return (StringExtensions_1.StringExtensions.IsNotNullOrEmpty(this.state.expression) &&
|
|
41
|
-
this.props.api.internalApi
|
|
42
|
-
.getQueryLanguageService()
|
|
43
|
-
.validateBoolean(this.state.expression, ModuleConstants_1.NamedQueryModuleId).isValid);
|
|
44
|
-
}
|
|
45
|
-
handleCustomExpressionChange = (expression) => {
|
|
46
|
-
this.setState({
|
|
47
|
-
expression,
|
|
48
|
-
}, () => this.props.updateGoBackState());
|
|
49
|
-
};
|
|
50
|
-
canNext() {
|
|
51
|
-
if (this.isValidExpression() == false) {
|
|
52
|
-
return false;
|
|
53
|
-
}
|
|
54
|
-
if (this.state.saveToNamedQueries && StringExtensions_1.StringExtensions.IsNullOrEmpty(this.state.newNamedQuery)) {
|
|
55
|
-
return false;
|
|
56
|
-
}
|
|
57
|
-
return true;
|
|
58
|
-
}
|
|
59
|
-
canBack() {
|
|
60
|
-
return true;
|
|
61
|
-
}
|
|
62
|
-
next() {
|
|
63
|
-
this.props.callingModule == 'Export'
|
|
64
|
-
? (this.props.data.Query = {
|
|
65
|
-
BooleanExpression: this.state.expression,
|
|
66
|
-
})
|
|
67
|
-
: (this.props.data.Rule = {
|
|
68
|
-
BooleanExpression: this.state.expression,
|
|
69
|
-
});
|
|
70
|
-
if (this.state.saveToNamedQueries) {
|
|
71
|
-
this.props.onSetNewNamedQuery(this.state.newNamedQuery);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
back() { }
|
|
75
|
-
getIndexStepIncrement() {
|
|
76
|
-
return 1;
|
|
77
|
-
}
|
|
78
|
-
getIndexStepDecrement() {
|
|
79
|
-
return 1;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
exports.ExpressionWizard = ExpressionWizard;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export type WaitingProps = React.ClassAttributes<Waiting> & {
|
|
3
|
-
WaitingMessage: string;
|
|
4
|
-
} & FlexProps & {
|
|
5
|
-
className?: string;
|
|
6
|
-
};
|
|
7
|
-
import { FlexProps } from '../../../components/Flex';
|
|
8
|
-
export declare class Waiting extends React.Component<WaitingProps, {}> {
|
|
9
|
-
render(): any;
|
|
10
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Waiting = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const refresh_1 = tslib_1.__importDefault(require("../../../components/icons/refresh"));
|
|
7
|
-
const Flex_1 = require("../../../components/Flex");
|
|
8
|
-
const twMerge_1 = require("../../../twMerge");
|
|
9
|
-
class Waiting extends React.Component {
|
|
10
|
-
render() {
|
|
11
|
-
const { WaitingMessage, ...props } = this.props;
|
|
12
|
-
return (React.createElement(Flex_1.Flex, { flexDirection: "column", ...props, className: (0, twMerge_1.twMerge)(`twa:my-2`, props.className) },
|
|
13
|
-
React.createElement(Flex_1.Flex, { flexDirection: "row", justifyContent: "center" },
|
|
14
|
-
React.createElement(refresh_1.default, null)),
|
|
15
|
-
React.createElement(Flex_1.Flex, { flexDirection: "row", justifyContent: "center" },
|
|
16
|
-
React.createElement("h5", null, WaitingMessage))));
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.Waiting = Waiting;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface PanelFooterProps {
|
|
3
|
-
onCancel: () => void;
|
|
4
|
-
onAccept: () => void;
|
|
5
|
-
cancelDisabled?: boolean;
|
|
6
|
-
acceptDisabled?: boolean;
|
|
7
|
-
acceptText?: React.ReactElement;
|
|
8
|
-
cancelText?: React.ReactElement;
|
|
9
|
-
}
|
|
10
|
-
export declare const PanelFooter: React.FunctionComponent<PanelFooterProps>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PanelFooter = 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 Flex_1 = require("../../../components/Flex");
|
|
8
|
-
const PanelFooter = (props) => {
|
|
9
|
-
return (React.createElement(Flex_1.Flex, { className: "ab-Panel__Footer twa:p-1 twa:bg-primary", flexDirection: "row", alignItems: "center" },
|
|
10
|
-
React.createElement(SimpleButton_1.default, { className: "twa:m-1", variant: "text", "data-name": "action-cancel", onClick: props.onCancel, disabled: props.cancelDisabled }, props.cancelText ?? 'CANCEL'),
|
|
11
|
-
React.createElement(Flex_1.Box, { className: "twa:flex-1" }),
|
|
12
|
-
React.createElement(SimpleButton_1.default, { variant: "raised", tone: "accent", "data-name": "action-finish", className: "twa:m-1", onClick: props.onAccept, disabled: props.acceptDisabled }, props.cancelText ?? 'Finish')));
|
|
13
|
-
};
|
|
14
|
-
exports.PanelFooter = PanelFooter;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { PanelProps } from '../../../components/Panel';
|
|
3
|
-
export interface PanelWithTwoButtonsProps extends Omit<PanelProps, 'flex'> {
|
|
4
|
-
firstButtonContent?: React.ReactNode;
|
|
5
|
-
firstButton?: React.ReactElement<any>;
|
|
6
|
-
secondButtonContent?: React.ReactNode;
|
|
7
|
-
secondButton?: React.ReactElement<any>;
|
|
8
|
-
headerText: string;
|
|
9
|
-
}
|
|
10
|
-
export declare class PanelWithTwoButtons extends React.Component<PanelWithTwoButtonsProps, {}> {
|
|
11
|
-
render(): React.JSX.Element;
|
|
12
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PanelWithTwoButtons = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const Panel_1 = tslib_1.__importDefault(require("../../../components/Panel"));
|
|
7
|
-
const Flex_1 = require("../../../components/Flex");
|
|
8
|
-
//We cannot destructure this.props using the react way in typescript which is a real pain as you
|
|
9
|
-
//need to transfer props individually as a consequence
|
|
10
|
-
//let { buttonContent, ...other } = this.props
|
|
11
|
-
class PanelWithTwoButtons extends React.Component {
|
|
12
|
-
render() {
|
|
13
|
-
let header = (React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:w-full" },
|
|
14
|
-
React.createElement(Flex_1.Flex, { className: "twa:flex-1" }, this.props.headerText),
|
|
15
|
-
this.props.secondButton,
|
|
16
|
-
this.props.firstButton));
|
|
17
|
-
return (React.createElement(Panel_1.default, { ...this.props, header: header }, this.props.children));
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.PanelWithTwoButtons = PanelWithTwoButtons;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { PanelProps } from '../../../components/Panel';
|
|
3
|
-
export interface ToolPanelSettingsPanelProps extends PanelProps {
|
|
4
|
-
button: React.ReactElement<any>;
|
|
5
|
-
}
|
|
6
|
-
export declare class ToolPanelSettingsPanel extends React.Component<ToolPanelSettingsPanelProps, {}> {
|
|
7
|
-
render(): React.JSX.Element;
|
|
8
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ToolPanelSettingsPanel = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const icons_1 = require("../../../components/icons");
|
|
7
|
-
const Panel_1 = tslib_1.__importDefault(require("../../../components/Panel"));
|
|
8
|
-
//We cannot destructure this.props using the react way in typescript which is a real pain as you
|
|
9
|
-
//need to transfer props individually as a consequence
|
|
10
|
-
//let { buttonContent, ...other } = this.props
|
|
11
|
-
class ToolPanelSettingsPanel extends React.Component {
|
|
12
|
-
render() {
|
|
13
|
-
let header = (React.createElement("span", { style: { verticalAlign: 'middle' } },
|
|
14
|
-
' ',
|
|
15
|
-
React.createElement(icons_1.Icon, { name: 'spanner' }),
|
|
16
|
-
" ",
|
|
17
|
-
React.createElement("span", null, "Settings"),
|
|
18
|
-
this.props.button &&
|
|
19
|
-
React.cloneElement(this.props.button, {
|
|
20
|
-
style: {
|
|
21
|
-
float: 'right',
|
|
22
|
-
border: '0px',
|
|
23
|
-
background: 'none',
|
|
24
|
-
borderRadius: '0px',
|
|
25
|
-
boxShadow: 'none',
|
|
26
|
-
},
|
|
27
|
-
})));
|
|
28
|
-
return (React.createElement(Panel_1.default, { header: header, style: { margin: '0px', padding: '0px' } }, this.props.children));
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
exports.ToolPanelSettingsPanel = ToolPanelSettingsPanel;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { SelectionMode } from '../../../AdaptableState/Common/Enums';
|
|
3
|
-
import { AdaptableColumn } from '../../../AdaptableState/Common/AdaptableColumn';
|
|
4
|
-
export interface ColumnSelectorProps extends React.HTMLProps<ColumnSelector> {
|
|
5
|
-
ColumnList: AdaptableColumn[];
|
|
6
|
-
SelectedColumnIds: string[];
|
|
7
|
-
onColumnChange: (SelectedColumns: AdaptableColumn[]) => void;
|
|
8
|
-
SelectionMode: SelectionMode;
|
|
9
|
-
className?: string;
|
|
10
|
-
placeHolder?: string;
|
|
11
|
-
showClearButton?: boolean;
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare class ColumnSelector extends React.Component<ColumnSelectorProps, {}> {
|
|
15
|
-
render(): React.JSX.Element;
|
|
16
|
-
onClearButton(): void;
|
|
17
|
-
onColumnChange(selected: AdaptableColumn[], isEmptySelection: boolean): void;
|
|
18
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ColumnSelector = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const StringExtensions_1 = require("../../../Utilities/Extensions/StringExtensions");
|
|
7
|
-
const Enums_1 = require("../../../AdaptableState/Common/Enums");
|
|
8
|
-
const ArrayExtensions_1 = require("../../../Utilities/Extensions/ArrayExtensions");
|
|
9
|
-
const FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayout"));
|
|
10
|
-
const DropdownButton_1 = tslib_1.__importDefault(require("../../../components/DropdownButton"));
|
|
11
|
-
class ColumnSelector extends React.Component {
|
|
12
|
-
render() {
|
|
13
|
-
const sortedColumns = ArrayExtensions_1.ArrayExtensions.sortArrayWithProperty(Enums_1.SortOrder.Asc, this.props.ColumnList, 'friendlyName');
|
|
14
|
-
const selectedColumnIds = this.props.SelectedColumnIds.filter((x) => StringExtensions_1.StringExtensions.IsNotNullOrEmpty(x));
|
|
15
|
-
const isEmptySelectedColumnIds = this.props.SelectedColumnIds.filter((x) => StringExtensions_1.StringExtensions.IsNotNullOrEmpty(x)).length == 0;
|
|
16
|
-
let sortedColumnOptions = sortedColumns.map((column) => {
|
|
17
|
-
return {
|
|
18
|
-
label: column.friendlyName,
|
|
19
|
-
value: column.columnId,
|
|
20
|
-
disabled: this.props.disabled,
|
|
21
|
-
onClick: () => {
|
|
22
|
-
const selected = sortedColumns.filter((c) => c.columnId === column.columnId);
|
|
23
|
-
if (!selected.length) {
|
|
24
|
-
this.onClearButton();
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
this.onColumnChange(selected, isEmptySelectedColumnIds);
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
});
|
|
32
|
-
let currentColumnName = selectedColumnIds.length > 0
|
|
33
|
-
? this.props.ColumnList.find((c) => c.columnId == selectedColumnIds[0])?.friendlyName
|
|
34
|
-
: 'Select a column';
|
|
35
|
-
return (React.createElement("div", { "data-name": 'column-selector' },
|
|
36
|
-
React.createElement(FormLayout_1.default, { columns: [{ name: 'columnSelector', style: { display: 'flex' } }], style: this.props.style },
|
|
37
|
-
React.createElement(FormLayout_1.FormRow, null,
|
|
38
|
-
React.createElement(DropdownButton_1.default, { className: "twa:w-full twa:text-0 twa:mr-2", columns: ['label'], showClearButton: currentColumnName != 'Select a column', onClear: () => this.onClearButton(), items: sortedColumnOptions, disabled: this.props.disabled || sortedColumnOptions.length == 0 }, currentColumnName)))));
|
|
39
|
-
}
|
|
40
|
-
onClearButton() {
|
|
41
|
-
this.props.onColumnChange([]);
|
|
42
|
-
}
|
|
43
|
-
onColumnChange(selected, isEmptySelection) {
|
|
44
|
-
if (selected.length == 0 && isEmptySelection) {
|
|
45
|
-
return; // must be a nicer way but we want to avoid ridiculous amounts of prop calls
|
|
46
|
-
}
|
|
47
|
-
this.props.onColumnChange(selected);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
exports.ColumnSelector = ColumnSelector;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BaseRowProps } from './SharedProps/ConfigEntityRowProps';
|
|
3
|
-
export interface WizardSummaryRowProps<WizardSummaryRow> extends BaseRowProps<WizardSummaryRow> {
|
|
4
|
-
propertyName: string;
|
|
5
|
-
propertyValue: any;
|
|
6
|
-
}
|
|
7
|
-
export declare class WizardSummaryRow extends React.Component<WizardSummaryRowProps<WizardSummaryRow>, {}> {
|
|
8
|
-
render(): any;
|
|
9
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WizardSummaryRow = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const AdaptableObjectRow_1 = require("./AdaptableObjectRow");
|
|
7
|
-
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
8
|
-
class WizardSummaryRow extends React.Component {
|
|
9
|
-
render() {
|
|
10
|
-
let colItems = (0, Helper_1.cloneObject)(this.props.colItems);
|
|
11
|
-
colItems[0].Content = this.props.propertyName;
|
|
12
|
-
colItems[1].Content = this.props.propertyValue;
|
|
13
|
-
return React.createElement(AdaptableObjectRow_1.AdaptableObjectRow, { colItems: colItems, fontSize: 'medium' });
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
exports.WizardSummaryRow = WizardSummaryRow;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ModuleSummaryProps } from '../Components/SharedProps/ModuleSummaryProps';
|
|
3
|
-
import { EditableConfigEntityState } from '../Components/SharedProps/EditableConfigEntityState';
|
|
4
|
-
import * as CustomSortRedux from '../../Redux/ActionsReducers/CustomSortRedux';
|
|
5
|
-
import { CustomSort } from '../../AdaptableState/CustomSortState';
|
|
6
|
-
export interface CustomSortSummaryProps extends ModuleSummaryProps<CustomSortSummaryComponent> {
|
|
7
|
-
CustomSorts: CustomSort[];
|
|
8
|
-
onAddCustomSort: (customSort: CustomSort) => CustomSortRedux.CustomSortAddAction;
|
|
9
|
-
onEditCustomSort: (customSort: CustomSort) => CustomSortRedux.CustomSortEditAction;
|
|
10
|
-
}
|
|
11
|
-
export declare class CustomSortSummaryComponent extends React.Component<CustomSortSummaryProps, EditableConfigEntityState> {
|
|
12
|
-
constructor(props: CustomSortSummaryProps);
|
|
13
|
-
render(): any;
|
|
14
|
-
onNew(): void;
|
|
15
|
-
onEdit(customSort: CustomSort): void;
|
|
16
|
-
onCloseWizard(): void;
|
|
17
|
-
onFinishWizard: (customSort: CustomSort) => void;
|
|
18
|
-
canFinishWizard(): boolean;
|
|
19
|
-
private getCustomSortedValues;
|
|
20
|
-
}
|
|
21
|
-
export declare let CustomSortSummary: import("react-redux").ConnectedComponent<typeof CustomSortSummaryComponent, {
|
|
22
|
-
[x: string]: any;
|
|
23
|
-
}>;
|