@adaptabletools/adaptable 13.0.0-canary.2 → 13.0.0-canary.20
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/agGrid.d.ts +23 -1
- package/agGrid.js +23 -1
- package/base.css +1232 -733
- package/base.css.map +1 -0
- package/bundle.cjs.js +191 -174
- package/index.css +1250 -734
- package/index.css.map +1 -0
- package/package.json +5 -5
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +7 -3
- package/src/AdaptableOptions/AdaptableOptions.d.ts +0 -2
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +136 -27
- package/src/AdaptableOptions/ExportOptions.d.ts +2 -2
- package/src/AdaptableOptions/FinsemblePluginOptions.d.ts +32 -0
- package/src/AdaptableOptions/FinsemblePluginOptions.js +2 -0
- package/src/AdaptableOptions/LayoutOptions.d.ts +2 -1
- package/src/Api/AdaptableApi.d.ts +2 -0
- package/src/Api/ColumnApi.d.ts +8 -2
- package/src/Api/ConditionalStyleApi.d.ts +20 -42
- package/src/Api/ConfigApi.d.ts +1 -2
- package/src/Api/ExportApi.d.ts +6 -6
- package/src/Api/FinsembleApi.d.ts +10 -0
- package/src/Api/FinsembleApi.js +2 -0
- package/src/Api/FormatColumnApi.d.ts +76 -59
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +2 -1
- package/src/Api/Implementation/ColumnApiImpl.js +18 -14
- package/src/Api/Implementation/ExportApiImpl.d.ts +4 -4
- package/src/Api/Implementation/ExportApiImpl.js +14 -14
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +36 -17
- package/src/Api/Implementation/FormatColumnApiImpl.js +101 -185
- package/src/Api/Implementation/PluginsApiImpl.d.ts +2 -0
- package/src/Api/Implementation/PluginsApiImpl.js +6 -0
- package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +2 -3
- package/src/Api/Implementation/QueryLanguageApiImpl.js +9 -18
- package/src/Api/Implementation/ScopeApiImpl.d.ts +1 -1
- package/src/Api/Implementation/StyledColumnApiImpl.d.ts +25 -0
- package/src/Api/Implementation/StyledColumnApiImpl.js +193 -0
- package/src/Api/Implementation/SystemStatusApiImpl.js +1 -2
- package/src/Api/Implementation/ToolPanelApiImpl.d.ts +3 -1
- package/src/Api/Implementation/ToolPanelApiImpl.js +8 -0
- package/src/Api/PluginsApi.d.ts +5 -0
- package/src/Api/QueryLanguageApi.d.ts +3 -7
- package/src/Api/ScopeApi.d.ts +1 -1
- package/src/Api/StyledColumnApi.d.ts +106 -0
- package/src/Api/StyledColumnApi.js +2 -0
- package/src/Api/ToolPanelApi.d.ts +10 -1
- package/src/PredefinedConfig/AdaptableState.d.ts +2 -0
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +37 -37
- package/src/PredefinedConfig/Common/Types.d.ts +3 -3
- package/src/PredefinedConfig/Common/Types.js +1 -0
- package/src/PredefinedConfig/ConditionalStyleState.d.ts +10 -19
- package/src/PredefinedConfig/FormatColumnState.d.ts +21 -92
- package/src/PredefinedConfig/PredefinedConfig.d.ts +6 -0
- package/src/PredefinedConfig/StyledColumnState.d.ts +119 -0
- package/src/PredefinedConfig/StyledColumnState.js +2 -0
- package/src/Redux/ActionsReducers/ConditionalStyleRedux.d.ts +0 -18
- package/src/Redux/ActionsReducers/ConditionalStyleRedux.js +0 -18
- package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +14 -0
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +43 -1
- package/src/Redux/ActionsReducers/PluginsRedux.d.ts +4 -4
- package/src/Redux/ActionsReducers/PluginsRedux.js +5 -5
- package/src/Redux/ActionsReducers/StyledColumnRedux.d.ts +49 -0
- package/src/Redux/ActionsReducers/StyledColumnRedux.js +92 -0
- package/src/Redux/Store/AdaptableStore.js +9 -0
- package/src/Strategy/ConditionalStyleModule.d.ts +0 -2
- package/src/Strategy/ConditionalStyleModule.js +3 -27
- package/src/Strategy/DataChangeHistoryModule.d.ts +1 -0
- package/src/Strategy/DataChangeHistoryModule.js +12 -0
- package/src/Strategy/FormatColumnModule.d.ts +3 -10
- package/src/Strategy/FormatColumnModule.js +42 -183
- package/src/Strategy/Interface/IModule.d.ts +1 -0
- package/src/Strategy/StyledColumnModule.d.ts +24 -0
- package/src/Strategy/StyledColumnModule.js +165 -0
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.d.ts +1 -1
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +3 -4
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnStyleViewItems.js +1 -16
- package/src/Strategy/Utilities/getScopeViewItems.js +1 -1
- package/src/Utilities/Constants/ModuleConstants.d.ts +3 -0
- package/src/Utilities/Constants/ModuleConstants.js +4 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +6 -12
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -0
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.d.ts +3 -2
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +3 -1
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +3 -1
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +3 -1
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.d.ts +2 -4
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +3 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +3 -1
- package/src/Utilities/Extensions/TypeExtensions.d.ts +1 -0
- package/src/Utilities/Extensions/TypeExtensions.js +5 -0
- package/src/Utilities/ObjectFactory.d.ts +5 -2
- package/src/Utilities/ObjectFactory.js +14 -7
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +14 -4
- package/src/Utilities/Services/{LicenseService.d.ts → LicenseService/index.d.ts} +3 -3
- package/src/Utilities/Services/LicenseService/index.js +1 -0
- package/src/Utilities/Services/LicenseService/shouldLogThankYouMessage.d.ts +1 -0
- package/src/Utilities/Services/LicenseService/shouldLogThankYouMessage.js +15 -0
- package/src/Utilities/Services/ModuleService.js +2 -0
- package/src/Utilities/Services/QueryLanguageService.d.ts +3 -3
- package/src/Utilities/Services/QueryLanguageService.js +88 -39
- package/src/Utilities/Services/ReportService.js +6 -6
- package/src/Utilities/license/LicenseDetails.d.ts +1 -1
- package/src/Utilities/license/decode.d.ts +1 -0
- package/src/Utilities/license/decode.js +1 -1
- package/src/View/AdaptablePopover/index.js +1 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +9 -9
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +6 -5
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +3 -3
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +3 -3
- package/src/View/BulkUpdate/BulkUpdatePopup.js +1 -1
- package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +1 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +1 -1
- package/src/View/Components/AdaptableObjectRow/index.js +1 -6
- package/src/View/Components/Buttons/ButtonInfo.d.ts +1 -3
- package/src/View/Components/Buttons/ButtonInfo.js +3 -5
- package/src/View/Components/EntityRulesEditor/index.d.ts +2 -1
- package/src/View/Components/EntityRulesEditor/index.js +36 -35
- package/src/View/Components/FilterForm/FilterForm.js +11 -16
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +2 -1
- package/src/View/Components/FilterForm/QuickFilterForm.js +7 -13
- package/src/View/Components/NewScopeComponent.js +3 -3
- package/src/View/Components/Panels/PanelWithButton.js +1 -5
- package/src/View/Components/Panels/PanelWithImage.js +1 -5
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +2 -2
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +1 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +3 -16
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +1 -0
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +1 -1
- package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +5 -5
- package/src/View/Components/RangesComponent.d.ts +8 -1
- package/src/View/Components/RangesComponent.js +60 -24
- package/src/View/Components/ScopeComponent.js +6 -6
- package/src/View/Components/Selectors/ColumnSelector.d.ts +1 -0
- package/src/View/Components/Selectors/ColumnSelector.js +2 -1
- package/src/View/Components/Selectors/ColumnValueSelector.js +2 -2
- package/src/View/Components/StyleComponent.js +14 -19
- package/src/View/Components/ToolPanel/AdaptableToolPanel.d.ts +3 -9
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +25 -10
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +1 -1
- package/src/View/Components/ToolPanel/ToolPanelPopup.d.ts +1 -1
- package/src/View/ConditionalStyle/ConditionalStylePopupHeader.d.ts +2 -0
- package/src/View/ConditionalStyle/ConditionalStylePopupHeader.js +18 -0
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +3 -3
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +1 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +1 -11
- package/src/View/DataSet/DataSetSelector.js +1 -1
- package/src/View/DataSet/DataSetViewPanel.d.ts +1 -1
- package/src/View/Export/ExportViewPanel.d.ts +1 -1
- package/src/View/Export/ExportViewPanel.js +4 -4
- package/src/View/Export/ReportExportDropdown.js +1 -1
- package/src/View/Export/Wizard/ReportNameWizardSection.js +10 -11
- package/src/View/Filter/FilterSummary.d.ts +1 -1
- package/src/View/Filter/FilterViewPanel.d.ts +1 -1
- package/src/View/FlashingCell/FlashingCellStyle.js +3 -3
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +3 -3
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +6 -6
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +4 -4
- package/src/View/FormatColumn/FormatColumnSummary.js +1 -1
- package/src/View/FormatColumn/MoveFormatColumn.d.ts +7 -0
- package/src/View/FormatColumn/MoveFormatColumn.js +27 -0
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +28 -28
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.d.ts +8 -0
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +28 -0
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +21 -3
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +2 -28
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.d.ts +3 -3
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +6 -300
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +15 -9
- package/src/View/FormatColumn/Wizard/constants.d.ts +1 -0
- package/src/View/FormatColumn/Wizard/constants.js +4 -0
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +7 -7
- package/src/View/Layout/LayoutRadioSelector.js +1 -1
- package/src/View/Layout/LayoutViewPanel.d.ts +1 -1
- package/src/View/Layout/Wizard/Components/ColumnLabels.js +1 -1
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +1 -1
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +7 -6
- package/src/View/Layout/Wizard/sections/SettingsSection.js +2 -2
- package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.js +1 -1
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +3 -3
- package/src/View/Query/QueryViewPanel.d.ts +1 -1
- package/src/View/Query/Wizard/NamedQuerySettingsWizardSection.js +1 -1
- package/src/View/QuickSearch/QuickSearchPopup.js +2 -2
- package/src/View/QuickSearch/QuickSearchViewPanel.d.ts +1 -1
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +5 -5
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsGlue42.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsIPushPull.js +5 -5
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +5 -5
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +2 -2
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +3 -3
- package/src/View/SmartEdit/SmartEditPopup.js +3 -3
- package/src/View/SpecialColumnSettingsWizardStep.js +10 -10
- package/src/View/StateManagement/StateManagementPopup.js +4 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.d.ts +7 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +77 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.d.ts +9 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +65 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection.d.ts +9 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection.js +234 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.d.ts +7 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +59 -0
- package/src/View/SystemStatus/SystemStatusEntityRow.js +4 -6
- package/src/View/SystemStatus/SystemStatusViewPanel.d.ts +1 -1
- package/src/View/TeamSharing/SharedEntityObjectView.js +1 -1
- package/src/View/TeamSharing/TeamSharingApplyButton.js +1 -1
- package/src/View/Theme/ThemePopup.js +1 -1
- package/src/View/Wizard/OnePageAdaptableWizard.d.ts +1 -1
- package/src/View/Wizard/OnePageAdaptableWizard.js +1 -2
- package/src/agGrid/ActionColumnRenderer.d.ts +3 -0
- package/src/agGrid/ActionColumnRenderer.js +96 -64
- package/src/agGrid/Adaptable.d.ts +13 -9
- package/src/agGrid/Adaptable.js +207 -221
- package/src/agGrid/CheckboxRenderer.js +1 -1
- package/src/agGrid/FilterWrapper.js +60 -16
- package/src/agGrid/FloatingFilterWrapper.d.ts +2 -2
- package/src/agGrid/FloatingFilterWrapper.js +71 -32
- package/src/agGrid/PercentBarRenderer.d.ts +6 -2
- package/src/agGrid/PercentBarRenderer.js +19 -17
- package/src/agGrid/agGridHelper.d.ts +6 -2
- package/src/agGrid/agGridHelper.js +16 -15
- package/src/agGrid/createAgStatusPanelComponent.d.ts +1 -1
- package/src/agGrid/createAgStatusPanelComponent.js +17 -0
- package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +5 -1
- package/src/agGrid/editors/AdaptableDateEditor/index.js +87 -20
- package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.js +1 -1
- package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +3 -3
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +81 -30
- package/src/agGrid/weightedAverage.js +19 -11
- package/src/components/CheckBox/index.js +7 -2
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/ExpressionEditor/BaseEditorInput.d.ts +1 -1
- package/src/components/ExpressionEditor/BaseEditorInput.js +13 -32
- package/src/components/ExpressionEditor/EditorInput.js +1 -1
- package/src/components/ExpressionEditor/EditorInputWithWhereClause.js +1 -1
- package/src/components/ExpressionEditor/index.js +9 -17
- package/src/components/FormLayout/index.js +1 -1
- package/src/components/StylePreview.js +2 -1
- package/src/components/icons/brush.d.ts +3 -0
- package/src/components/icons/brush.js +7 -0
- package/src/components/icons/index.js +2 -0
- package/src/metamodel/adaptable.metamodel.d.ts +191 -95
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/parser/src/types.d.ts +6 -3
- package/src/renderReactRoot.d.ts +2 -0
- package/src/renderReactRoot.js +11 -9
- package/src/types.d.ts +8 -4
- package/themes/dark.css +8 -4
- package/themes/dark.css.map +1 -0
- package/themes/light.css +4 -1
- package/themes/light.css.map +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/AdaptableComponents.d.ts +0 -1
- package/src/AdaptableComponents.js +0 -5
- package/src/Utilities/Services/LicenseService.js +0 -1
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StyledColumnApiImpl = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const ApiBase_1 = require("./ApiBase");
|
|
6
|
+
const StyledColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/StyledColumnRedux"));
|
|
7
|
+
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
8
|
+
const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
|
|
9
|
+
class StyledColumnApiImpl extends ApiBase_1.ApiBase {
|
|
10
|
+
getStyledColumnState() {
|
|
11
|
+
return this.getAdaptableState().StyledColumn;
|
|
12
|
+
}
|
|
13
|
+
getAllStyledColumn(config) {
|
|
14
|
+
var _a;
|
|
15
|
+
return ((_a = this.handleLayoutAssociatedObjects(this.getStyledColumnState().StyledColumns, 'StyledColumn', config)) !== null && _a !== void 0 ? _a : []);
|
|
16
|
+
}
|
|
17
|
+
getStyledColumnById(id) {
|
|
18
|
+
return this.getAllStyledColumn().find((styledcolumn) => styledcolumn.Uuid === id);
|
|
19
|
+
}
|
|
20
|
+
getStyledColumnByColumnId(id) {
|
|
21
|
+
return this.getAllStyledColumn().find((styledcolumn) => styledcolumn.ColumnId === id);
|
|
22
|
+
}
|
|
23
|
+
getAllActiveStyledColumn() {
|
|
24
|
+
return this.getAllStyledColumn().filter((styledcolumn) => !styledcolumn.IsSuspended);
|
|
25
|
+
}
|
|
26
|
+
getAllSuspendedStyledColumn() {
|
|
27
|
+
return this.getAllStyledColumn().filter((styledcolumn) => styledcolumn.IsSuspended);
|
|
28
|
+
}
|
|
29
|
+
deleteStyledColumn(styledColumn) {
|
|
30
|
+
this.dispatchAction(StyledColumnRedux.StyledColumnDelete(styledColumn));
|
|
31
|
+
}
|
|
32
|
+
addStyledColumn(styledColumn) {
|
|
33
|
+
this.dispatchAction(StyledColumnRedux.StyledColumnAdd(styledColumn));
|
|
34
|
+
}
|
|
35
|
+
getNumericStyleMinValue(styledColumn, column, rowNode, cellValue) {
|
|
36
|
+
var _a, _b;
|
|
37
|
+
const columnComparison = styledColumn.GradientStyle
|
|
38
|
+
? styledColumn.GradientStyle.ColumnComparison
|
|
39
|
+
: (_a = styledColumn.PercentBarStyle) === null || _a === void 0 ? void 0 : _a.ColumnComparison;
|
|
40
|
+
if (columnComparison) {
|
|
41
|
+
if (!isNaN(Number(columnComparison.MinValue))) {
|
|
42
|
+
return Number(columnComparison.MinValue);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
let columnId = columnComparison.MinValue;
|
|
46
|
+
if (!this.adaptable.api.columnApi.doesColumnExist(columnId)) {
|
|
47
|
+
return 0;
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
return this.adaptable.api.gridApi.getRawValueFromRowNode(rowNode, columnId);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
// for Gradient Column we want just the range that contains cell value
|
|
55
|
+
if (styledColumn.GradientStyle) {
|
|
56
|
+
let range;
|
|
57
|
+
styledColumn.GradientStyle.CellRanges.forEach((cellRange) => {
|
|
58
|
+
if (!range) {
|
|
59
|
+
if ((cellRange.Min == 'Col-Min' || cellValue >= cellRange.Min) &&
|
|
60
|
+
(cellRange.Max == 'Col-Max' || cellValue <= cellRange.Max)) {
|
|
61
|
+
range = cellRange;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
return this.getCellColorRangeMinValue(range, column);
|
|
66
|
+
}
|
|
67
|
+
// for percentbar we want to get the whole Ranges
|
|
68
|
+
if (styledColumn.PercentBarStyle) {
|
|
69
|
+
const ranges = (_b = styledColumn.PercentBarStyle) === null || _b === void 0 ? void 0 : _b.CellRanges;
|
|
70
|
+
if (ranges) {
|
|
71
|
+
return this.getCellColorRangeMinValue(ranges[0], column);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
getNumericStyleMaxValue(styledColumn, column, rowNode, cellValue) {
|
|
76
|
+
var _a, _b;
|
|
77
|
+
const columnComparison = styledColumn.GradientStyle
|
|
78
|
+
? styledColumn.GradientStyle.ColumnComparison
|
|
79
|
+
: (_a = styledColumn.PercentBarStyle) === null || _a === void 0 ? void 0 : _a.ColumnComparison;
|
|
80
|
+
if (columnComparison) {
|
|
81
|
+
if (!isNaN(Number(columnComparison.MaxValue))) {
|
|
82
|
+
return Number(columnComparison.MaxValue);
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
let columnId = columnComparison.MaxValue;
|
|
86
|
+
if (!this.adaptable.api.columnApi.doesColumnExist(columnId)) {
|
|
87
|
+
return 0;
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
return this.adaptable.api.gridApi.getRawValueFromRowNode(rowNode, columnId);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
if (styledColumn.GradientStyle) {
|
|
95
|
+
let range;
|
|
96
|
+
styledColumn.GradientStyle.CellRanges.forEach((cellRange) => {
|
|
97
|
+
if (!range) {
|
|
98
|
+
if ((cellRange.Min == 'Col-Min' || cellValue >= cellRange.Min) &&
|
|
99
|
+
(cellRange.Max == 'Col-Max' || cellValue <= cellRange.Max)) {
|
|
100
|
+
range = cellRange;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
return this.getCellColorRangeMaxValue(range, column);
|
|
105
|
+
}
|
|
106
|
+
if (styledColumn.PercentBarStyle) {
|
|
107
|
+
const ranges = (_b = styledColumn.PercentBarStyle) === null || _b === void 0 ? void 0 : _b.CellRanges;
|
|
108
|
+
if (ranges) {
|
|
109
|
+
return this.getCellColorRangeMaxValue(ranges[ranges.length - 1], column);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
getCellColorRangeMinValue(range, column) {
|
|
114
|
+
if (!range) {
|
|
115
|
+
return undefined;
|
|
116
|
+
}
|
|
117
|
+
if (range.Min == undefined) {
|
|
118
|
+
return undefined;
|
|
119
|
+
}
|
|
120
|
+
return range.Min == 'Col-Min'
|
|
121
|
+
? this.getAdaptableApi().columnApi.getMinValueForNumericColumn(column)
|
|
122
|
+
: range.Min;
|
|
123
|
+
}
|
|
124
|
+
getCellColorRangeMaxValue(range, column) {
|
|
125
|
+
if (!range) {
|
|
126
|
+
return undefined;
|
|
127
|
+
}
|
|
128
|
+
if (range.Max == undefined) {
|
|
129
|
+
return undefined;
|
|
130
|
+
}
|
|
131
|
+
return range.Max == 'Col-Max'
|
|
132
|
+
? this.getAdaptableApi().columnApi.getMaxValueForNumericColumn(column)
|
|
133
|
+
: range.Max;
|
|
134
|
+
}
|
|
135
|
+
getColumnComparisonForStyledColumn(styledColumn) {
|
|
136
|
+
var _a, _b;
|
|
137
|
+
if (styledColumn.GradientStyle) {
|
|
138
|
+
if ((_a = styledColumn.GradientStyle) === null || _a === void 0 ? void 0 : _a.ColumnComparison) {
|
|
139
|
+
return styledColumn.GradientStyle.ColumnComparison;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
if (styledColumn.PercentBarStyle) {
|
|
143
|
+
if ((_b = styledColumn.PercentBarStyle) === null || _b === void 0 ? void 0 : _b.ColumnComparison) {
|
|
144
|
+
return styledColumn.PercentBarStyle.ColumnComparison;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
return undefined;
|
|
148
|
+
}
|
|
149
|
+
getColumnIdsFromColumnComparison(columnComparison) {
|
|
150
|
+
let returnValues = [];
|
|
151
|
+
if (typeof columnComparison.MinValue === 'string') {
|
|
152
|
+
let minIds = this.adaptable.api.columnApi.getColumnIdsFromId(columnComparison.MinValue, false);
|
|
153
|
+
if (ArrayExtensions_1.default.IsNotNullOrEmpty(minIds)) {
|
|
154
|
+
returnValues.push(...minIds);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
if (typeof columnComparison.MaxValue === 'string') {
|
|
158
|
+
let maxIds = this.adaptable.api.columnApi.getColumnIdsFromId(columnComparison.MaxValue, false);
|
|
159
|
+
if (ArrayExtensions_1.default.IsNotNullOrEmpty(maxIds)) {
|
|
160
|
+
returnValues.push(...maxIds);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
return returnValues;
|
|
164
|
+
}
|
|
165
|
+
getCheckBoxStyleStyledColumn(column) {
|
|
166
|
+
var _a;
|
|
167
|
+
if (column.dataType != 'Boolean') {
|
|
168
|
+
return undefined;
|
|
169
|
+
}
|
|
170
|
+
const checkBoxFormatColumns = (_a = this.getStyledColumnState().StyledColumns) === null || _a === void 0 ? void 0 : _a.filter((sc) => sc === null || sc === void 0 ? void 0 : sc.CheckBoxStyle);
|
|
171
|
+
const styledColumn = checkBoxFormatColumns.find((sc) => sc.ColumnId == column.columnId);
|
|
172
|
+
return styledColumn;
|
|
173
|
+
}
|
|
174
|
+
isCheckBoxStyleStyledColumn(column) {
|
|
175
|
+
const styledColumn = this.getCheckBoxStyleStyledColumn(column);
|
|
176
|
+
return Helper_1.default.objectExists(styledColumn);
|
|
177
|
+
}
|
|
178
|
+
fireCheckboxColumnClickedEvent(columnId, rowData, primaryKeyValue, isChecked) {
|
|
179
|
+
let checkboxColumnClickedInfo = {
|
|
180
|
+
adaptableApi: this.adaptable.api,
|
|
181
|
+
column: this.adaptable.api.columnApi.getColumnFromId(columnId),
|
|
182
|
+
rowData: rowData,
|
|
183
|
+
primaryKeyValue: primaryKeyValue,
|
|
184
|
+
isChecked: isChecked,
|
|
185
|
+
};
|
|
186
|
+
this.adaptable.api.eventApi.emit('CheckboxColumnClicked', checkboxColumnClickedInfo);
|
|
187
|
+
}
|
|
188
|
+
getActiveStyledColumnForColumn(column) {
|
|
189
|
+
const styledColumns = this.getAllActiveStyledColumn();
|
|
190
|
+
return styledColumns.find((sc) => sc.ColumnId == column.columnId);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
exports.StyledColumnApiImpl = StyledColumnApiImpl;
|
|
@@ -7,7 +7,6 @@ const SystemRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/Sy
|
|
|
7
7
|
const ApiBase_1 = require("./ApiBase");
|
|
8
8
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
9
9
|
const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectFactory"));
|
|
10
|
-
const react_dom_1 = require("react-dom");
|
|
11
10
|
const react_1 = require("react");
|
|
12
11
|
const UIHelper_1 = tslib_1.__importDefault(require("../../View/UIHelper"));
|
|
13
12
|
const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
|
|
@@ -57,7 +56,7 @@ class SystemStatusApiImpl extends ApiBase_1.ApiBase {
|
|
|
57
56
|
statusMessage += statusFurtherInformation;
|
|
58
57
|
}
|
|
59
58
|
const foreColor = messageType ? UIHelper_1.default.getColorByMessageType(messageType) : 'black';
|
|
60
|
-
|
|
59
|
+
this.adaptable.renderReactRoot((0, react_1.createElement)('span', { style: { color: foreColor } }, statusMessage), this.systemStatusDiv);
|
|
61
60
|
}
|
|
62
61
|
}
|
|
63
62
|
setErrorSystemStatus(statusMessage, statusFurtherInformation) {
|
|
@@ -3,7 +3,7 @@ import { ToolPanelApi } from '../ToolPanelApi';
|
|
|
3
3
|
import { ToolPanelState, ToolPanelVisibilityMode } from '../../PredefinedConfig/ToolPanelState';
|
|
4
4
|
import { CustomToolPanel, ToolPanelButtonContext } from '../../AdaptableOptions/ToolPanelOptions';
|
|
5
5
|
import { AdaptableButton } from '../../PredefinedConfig/Common/AdaptableButton';
|
|
6
|
-
import { AdaptableToolPanel } from '../../PredefinedConfig/Common/Types';
|
|
6
|
+
import { AdaptableModuleButtons, AdaptableToolPanel } from '../../PredefinedConfig/Common/Types';
|
|
7
7
|
export declare class ToolPanelApiImpl extends ApiBase implements ToolPanelApi {
|
|
8
8
|
getToolPanelState(): ToolPanelState;
|
|
9
9
|
showToolPanelPopup(): void;
|
|
@@ -14,6 +14,8 @@ export declare class ToolPanelApiImpl extends ApiBase implements ToolPanelApi {
|
|
|
14
14
|
getCustomToolPanelByName(name: string): CustomToolPanel | undefined;
|
|
15
15
|
setAdaptableToolPanelVisibilityMode(adaptableToolPanel: AdaptableToolPanel, visibilityMode: ToolPanelVisibilityMode): void;
|
|
16
16
|
setCustomToolPanelVisibilityMode(customToolPanelName: string, visibilityMode: ToolPanelVisibilityMode): void;
|
|
17
|
+
setModuleButtons(moduleButtons: AdaptableModuleButtons): void;
|
|
18
|
+
getModuleButtons(): AdaptableModuleButtons;
|
|
17
19
|
private setExpandedToolPanelVisibility;
|
|
18
20
|
private setCollapsedToolPanelVisibility;
|
|
19
21
|
}
|
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const ApiBase_1 = require("./ApiBase");
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
7
7
|
const ToolPanelRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/ToolPanelRedux"));
|
|
8
|
+
const ToolPanelRedux_1 = require("../../Redux/ActionsReducers/ToolPanelRedux");
|
|
8
9
|
class ToolPanelApiImpl extends ApiBase_1.ApiBase {
|
|
9
10
|
getToolPanelState() {
|
|
10
11
|
return this.getAdaptableState().ToolPanel;
|
|
@@ -51,6 +52,13 @@ class ToolPanelApiImpl extends ApiBase_1.ApiBase {
|
|
|
51
52
|
this.setCollapsedToolPanelVisibility(customToolPanelName);
|
|
52
53
|
}
|
|
53
54
|
}
|
|
55
|
+
setModuleButtons(moduleButtons) {
|
|
56
|
+
this.dispatchAction((0, ToolPanelRedux_1.ToolPanelSetModuleButtons)(moduleButtons));
|
|
57
|
+
}
|
|
58
|
+
getModuleButtons() {
|
|
59
|
+
var _a, _b;
|
|
60
|
+
return (_b = (_a = this.getToolPanelState()) === null || _a === void 0 ? void 0 : _a.ModuleButtons) !== null && _b !== void 0 ? _b : [];
|
|
61
|
+
}
|
|
54
62
|
setExpandedToolPanelVisibility(toolPanelName) {
|
|
55
63
|
this.dispatchAction(ToolPanelRedux.ToolPanelExpandToolPanel(toolPanelName));
|
|
56
64
|
}
|
package/src/Api/PluginsApi.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { IPushPullApi } from './IPushPullApi';
|
|
|
3
3
|
import { Glue42Api } from './Glue42Api';
|
|
4
4
|
import { OpenFinApi } from './OpenFinApi';
|
|
5
5
|
import { FinanceApi } from './FinanceApi';
|
|
6
|
+
import { FinsembleApi } from './FinsembleApi';
|
|
6
7
|
/**
|
|
7
8
|
* API methods dealing with AdapTable plugins
|
|
8
9
|
*/
|
|
@@ -44,4 +45,8 @@ export interface PluginsApi {
|
|
|
44
45
|
* Returns Finance API class in Adaptable API
|
|
45
46
|
*/
|
|
46
47
|
getFinancePluginApi(): FinanceApi;
|
|
48
|
+
/**
|
|
49
|
+
* Returns Finsemble API class in Adaptable API
|
|
50
|
+
*/
|
|
51
|
+
getFinsemblePluginApi(): FinsembleApi;
|
|
47
52
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AdaptableModule } from '../PredefinedConfig/Common/Types';
|
|
2
|
-
import { ExpressionFunctionMap } from '../types';
|
|
3
2
|
import { AdaptableQuery } from '../PredefinedConfig/Common/AdaptableQuery';
|
|
3
|
+
import { AdaptableColumnBase } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
4
4
|
/**
|
|
5
5
|
* Functions related to AdapTableQL (the Adaptable Query Language)
|
|
6
6
|
*/
|
|
@@ -39,13 +39,9 @@ export interface QueryLanguageApi {
|
|
|
39
39
|
*/
|
|
40
40
|
getColumnsFromExpression(expression: string): string[];
|
|
41
41
|
/**
|
|
42
|
-
* Returns
|
|
42
|
+
* Returns whether a Column is Queryable
|
|
43
43
|
*/
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Returns the current Module Expression Map
|
|
47
|
-
*/
|
|
48
|
-
getModuleExpressionFunctionMap(): ExpressionFunctionMap;
|
|
44
|
+
isColumnQueryable(adaptableColumnBase: AdaptableColumnBase): boolean;
|
|
49
45
|
/**
|
|
50
46
|
* Runs the AST that AdapTableQL creates for an Expression - useful when evaluating remotely
|
|
51
47
|
* @param expression expression to be run
|
package/src/Api/ScopeApi.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
2
2
|
import { AdaptableScope, ScopeDataType } from '../PredefinedConfig/Common/AdaptableScope';
|
|
3
|
-
import { CellColorRange } from '../PredefinedConfig/
|
|
3
|
+
import { CellColorRange } from '../PredefinedConfig/StyledColumnState';
|
|
4
4
|
/**
|
|
5
5
|
* Provides access to a suite of functions related to the `Scope` object
|
|
6
6
|
*/
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { RowNode } from '@ag-grid-community/core/dist/cjs/es5/entities/rowNode';
|
|
2
|
+
import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
3
|
+
import { StyledColumnState, StyledColumn, CellColorRange, ColumnComparison } from '../PredefinedConfig/StyledColumnState';
|
|
4
|
+
/**
|
|
5
|
+
* Provides run-time access to Styled Column Module and associated state
|
|
6
|
+
*/
|
|
7
|
+
export interface StyledColumnApi {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves Styled Column section from Adaptable State
|
|
10
|
+
*/
|
|
11
|
+
getStyledColumnState(): StyledColumnState;
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves all Styled Columns in Adaptable State
|
|
14
|
+
* @returns Styled Columns
|
|
15
|
+
*/
|
|
16
|
+
getAllStyledColumn(config?: {
|
|
17
|
+
includeLayoutNotAssociatedObjects?: boolean;
|
|
18
|
+
}): StyledColumn[];
|
|
19
|
+
/**
|
|
20
|
+
* Retrieves Styled Column by Id
|
|
21
|
+
* @param id Styled Column id
|
|
22
|
+
* @returns Styled Column
|
|
23
|
+
*/
|
|
24
|
+
getStyledColumnById(id: StyledColumn['Uuid']): StyledColumn;
|
|
25
|
+
/**
|
|
26
|
+
* Retrieves Styled Column by Column Id
|
|
27
|
+
* @param columnId Styled Column id
|
|
28
|
+
* @returns Styled Column
|
|
29
|
+
*/
|
|
30
|
+
getStyledColumnByColumnId(columnId: StyledColumn['ColumnId']): StyledColumn;
|
|
31
|
+
/**
|
|
32
|
+
* Retrieves all active (not-suspended) Styled Columns in Adaptable State
|
|
33
|
+
* @returns Styled Columns
|
|
34
|
+
*/
|
|
35
|
+
getAllActiveStyledColumn(): StyledColumn[];
|
|
36
|
+
/**
|
|
37
|
+
* Retrieves all suspended Styled Columns in Adaptable State
|
|
38
|
+
* @returns Styled Columns
|
|
39
|
+
*/
|
|
40
|
+
getAllSuspendedStyledColumn(): StyledColumn[];
|
|
41
|
+
/**
|
|
42
|
+
* Delete a Styled column
|
|
43
|
+
* @param styledColumn
|
|
44
|
+
*/
|
|
45
|
+
deleteStyledColumn(styledColumn: StyledColumn): void;
|
|
46
|
+
/**
|
|
47
|
+
* Create a Styled column
|
|
48
|
+
* @param styledColumn
|
|
49
|
+
*/
|
|
50
|
+
addStyledColumn(styledColumn: StyledColumn): void;
|
|
51
|
+
/**
|
|
52
|
+
* Gets the Minimum Value to display for a Styled Column
|
|
53
|
+
* @param styledColumn Styled Column to check
|
|
54
|
+
* @param rowNode current Row Node
|
|
55
|
+
* @param cellValue current Cell Value
|
|
56
|
+
*/
|
|
57
|
+
getNumericStyleMinValue(styledColumn: Omit<StyledColumn, 'ColumnId'>, column: AdaptableColumn, rowNode: RowNode, cellValue: any): number;
|
|
58
|
+
/**
|
|
59
|
+
* Gets the Maximum Value to display for a Styled Column
|
|
60
|
+
* @param styledColumn Styled Column to check
|
|
61
|
+
* @param rowNode current Row Node
|
|
62
|
+
* @param cellValue current Cell Value
|
|
63
|
+
*/
|
|
64
|
+
getNumericStyleMaxValue(styledColumn: Omit<StyledColumn, 'ColumnId'>, column: AdaptableColumn, rowNode: RowNode, cellValue: any): number;
|
|
65
|
+
/**
|
|
66
|
+
* Returns the smallest number in a Range
|
|
67
|
+
* @param range Range to check
|
|
68
|
+
* @param column current Column
|
|
69
|
+
*/
|
|
70
|
+
getCellColorRangeMinValue(range: CellColorRange, column: AdaptableColumn): number | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* Returns the largest number in a Range
|
|
73
|
+
* @param range Range to check
|
|
74
|
+
* @param column current Column
|
|
75
|
+
*/
|
|
76
|
+
getCellColorRangeMaxValue(range: CellColorRange, column: AdaptableColumn): number | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* Retrieves the ColumnComparison property, if there, from a Styled Column
|
|
79
|
+
* @param styledColumn Styled Column to Add
|
|
80
|
+
*/
|
|
81
|
+
getColumnComparisonForStyledColumn(styledColumn: StyledColumn): ColumnComparison | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Returns any ColumnIds referenced in a Column Comparison
|
|
84
|
+
* @param columnComparision Column Comparison to check
|
|
85
|
+
*/
|
|
86
|
+
getColumnIdsFromColumnComparison(columnComparision: ColumnComparison): string[];
|
|
87
|
+
/**
|
|
88
|
+
* Returns first Styled Column that contains checkbox style
|
|
89
|
+
* @param columnId column to check
|
|
90
|
+
*/
|
|
91
|
+
getCheckBoxStyleStyledColumn(column: AdaptableColumn): StyledColumn | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* Whether given column is a (boolean) checkbox column
|
|
94
|
+
* @param columnId column to check
|
|
95
|
+
*/
|
|
96
|
+
isCheckBoxStyleStyledColumn(column: AdaptableColumn): boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Publishes the CheckboxColumnClickedEvent - when the checkbox in an Checkbox Column is clicked
|
|
99
|
+
*/
|
|
100
|
+
fireCheckboxColumnClickedEvent(columnId: string, rowData: any, primaryKeyValue: any, isChecked: boolean): void;
|
|
101
|
+
/**
|
|
102
|
+
* Returns a Styled Column for a given column
|
|
103
|
+
* @param column Column to check
|
|
104
|
+
*/
|
|
105
|
+
getActiveStyledColumnForColumn(column: AdaptableColumn): StyledColumn | undefined;
|
|
106
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ToolPanelState, ToolPanelVisibilityMode } from '../PredefinedConfig/ToolPanelState';
|
|
2
2
|
import { CustomToolPanel, ToolPanelButtonContext } from '../AdaptableOptions/ToolPanelOptions';
|
|
3
3
|
import { AdaptableButton } from '../PredefinedConfig/Common/AdaptableButton';
|
|
4
|
-
import { AdaptableToolPanel } from '../PredefinedConfig/Common/Types';
|
|
4
|
+
import { AdaptableModuleButtons, AdaptableToolPanel } from '../PredefinedConfig/Common/Types';
|
|
5
5
|
/**
|
|
6
6
|
* Functions for managing the AdapTable ToolPanel Component (at side of grid)
|
|
7
7
|
*/
|
|
@@ -47,4 +47,13 @@ export interface ToolPanelApi {
|
|
|
47
47
|
* @param visibilityMode
|
|
48
48
|
*/
|
|
49
49
|
setCustomToolPanelVisibilityMode(customToolPanelName: string, visibilityMode: ToolPanelVisibilityMode): void;
|
|
50
|
+
/**
|
|
51
|
+
* Sets the Module buttons in the Adaptable ToolPanel
|
|
52
|
+
* @param moduleButtons the module buttons
|
|
53
|
+
*/
|
|
54
|
+
setModuleButtons(moduleButtons: AdaptableModuleButtons): void;
|
|
55
|
+
/**
|
|
56
|
+
* Sets the Module buttons from the Adaptable ToolPanel
|
|
57
|
+
*/
|
|
58
|
+
getModuleButtons(): AdaptableModuleButtons;
|
|
50
59
|
}
|
|
@@ -23,6 +23,7 @@ import { QueryState } from './QueryState';
|
|
|
23
23
|
import { FlashingCellState } from './FlashingCellState';
|
|
24
24
|
import { StatusBarState } from './StatusBarState';
|
|
25
25
|
import { ChartingState } from './ChartingState';
|
|
26
|
+
import { StyledColumnState } from './StyledColumnState';
|
|
26
27
|
/**
|
|
27
28
|
* The main state object of Adaptable
|
|
28
29
|
*/
|
|
@@ -48,6 +49,7 @@ export interface AdaptablePersistentState {
|
|
|
48
49
|
Query: QueryState;
|
|
49
50
|
QuickSearch: QuickSearchState;
|
|
50
51
|
Schedule: ScheduleState;
|
|
52
|
+
StyledColumn: StyledColumnState;
|
|
51
53
|
Shortcut: ShortcutState;
|
|
52
54
|
StatusBar: StatusBarState;
|
|
53
55
|
TeamSharing: TeamSharingState;
|
|
@@ -51,4 +51,4 @@ export interface AdaptableBaseIcon {
|
|
|
51
51
|
/**
|
|
52
52
|
* All AdapTable internal icon names
|
|
53
53
|
*/
|
|
54
|
-
export declare type AdaptableInternalIconName = 'add' | 'add-row' | 'alert' | 'align-justify' | 'analysis' | 'application' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'arrow-up-long' | 'arrow-down-long' | 'arrowexpand' | 'attach-file' | 'blanks' | 'boolean-list' | 'broadcast' | 'build' | 'bulk-update' | 'calculated-column' | 'calendar' | 'call' | 'campaign' | 'cell-summary' | 'cell-validation' | 'chart' | 'chat' | 'check' | 'check-circle' | 'checked' | 'clear' | 'clone' | 'close' | 'cloud-upload' | 'collapse' | 'column-add' | 'column-chooser' | 'column-filter' | 'comment' | 'conditional-style' | 'contains' | 'custom-sort' | 'dashboard' | 'data-set' | 'date-range' | 'delete' | 'division' | 'dock' | 'drag' | 'edit' | 'ends-with' | 'equal' | 'equation' | 'error' | 'expand' | 'exponent' | 'export' | 'export-data' | 'fast-backward' | 'fast-forward' | 'filter' | 'flashing-cell' | 'folder' | 'folder-open' | 'folder-shared' | 'format-column' | 'freetext-column' | 'function' | 'gradient-column' | 'greater-than' | 'greater-than-or-equal' | 'hide-column' | 'history' | 'home' | 'import-export' | 'info' | 'instrument' | 'invalid' | 'ipushpull' | 'justify' | 'layout' | 'less-than' | 'less-than-or-equal' | 'list' | 'login' | 'logout' | 'menu' | 'minus' | 'multiplication' | 'newpage' | 'news' | 'non-blanks' | 'not-contains' | 'not-equal' | 'ok' | 'pause' | 'percent' | 'percent-bar' | 'person' | 'pie-chart' | 'play' | 'plus' | 'plus-minus' | 'query' | 'quick-search' | 'quote' | 'refresh' | 'regex' | 'reminder' | 'save' | 'schedule' | 'settings' | 'shortcut' | 'show-column' | 'smart-edit' | 'sort-asc' | 'sort-desc' | 'spark-line' | 'starts-with' | 'state-management' | 'statusbar' | 'stop' | 'system-status' | 'tab-unselected' | 'team-share' | 'theme' | 'tool-panel' | 'track-changes' | 'trash' | 'triangle-down' | 'triangle-up' | 'unchecked' | 'undo' | 'updated-row' | 'upload' | 'warning';
|
|
54
|
+
export declare type AdaptableInternalIconName = 'add' | 'add-row' | 'alert' | 'align-justify' | 'analysis' | 'application' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'arrow-up-long' | 'arrow-down-long' | 'arrowexpand' | 'attach-file' | 'blanks' | 'boolean-list' | 'broadcast' | 'brush' | 'build' | 'bulk-update' | 'calculated-column' | 'calendar' | 'call' | 'campaign' | 'cell-summary' | 'cell-validation' | 'chart' | 'chat' | 'check' | 'check-circle' | 'checked' | 'clear' | 'clone' | 'close' | 'cloud-upload' | 'collapse' | 'column-add' | 'column-chooser' | 'column-filter' | 'comment' | 'conditional-style' | 'contains' | 'custom-sort' | 'dashboard' | 'data-set' | 'date-range' | 'delete' | 'division' | 'dock' | 'drag' | 'edit' | 'ends-with' | 'equal' | 'equation' | 'error' | 'expand' | 'exponent' | 'export' | 'export-data' | 'fast-backward' | 'fast-forward' | 'filter' | 'flashing-cell' | 'folder' | 'folder-open' | 'folder-shared' | 'format-column' | 'freetext-column' | 'function' | 'gradient-column' | 'greater-than' | 'greater-than-or-equal' | 'hide-column' | 'history' | 'home' | 'import-export' | 'info' | 'instrument' | 'invalid' | 'ipushpull' | 'justify' | 'layout' | 'less-than' | 'less-than-or-equal' | 'list' | 'login' | 'logout' | 'menu' | 'minus' | 'multiplication' | 'newpage' | 'news' | 'non-blanks' | 'not-contains' | 'not-equal' | 'ok' | 'pause' | 'percent' | 'percent-bar' | 'person' | 'pie-chart' | 'play' | 'plus' | 'plus-minus' | 'query' | 'quick-search' | 'quote' | 'refresh' | 'regex' | 'reminder' | 'save' | 'schedule' | 'settings' | 'shortcut' | 'show-column' | 'smart-edit' | 'sort-asc' | 'sort-desc' | 'spark-line' | 'starts-with' | 'state-management' | 'statusbar' | 'stop' | 'system-status' | 'tab-unselected' | 'team-share' | 'theme' | 'tool-panel' | 'track-changes' | 'trash' | 'triangle-down' | 'triangle-up' | 'unchecked' | 'undo' | 'updated-row' | 'upload' | 'warning';
|
|
@@ -103,7 +103,7 @@ export interface PredicateDefHandlerParams {
|
|
|
103
103
|
export interface PredicateDefToStringParams {
|
|
104
104
|
inputs: any[];
|
|
105
105
|
}
|
|
106
|
-
export declare type ModuleScope = 'filter' | 'alert' | 'conditionalstyle' | 'flashingcell';
|
|
106
|
+
export declare type ModuleScope = 'filter' | 'alert' | 'conditionalstyle' | 'flashingcell' | 'formatColumn';
|
|
107
107
|
/**
|
|
108
108
|
* Array of Predicate Defs which are shipped by AdapTable
|
|
109
109
|
*/
|