@adaptabletools/adaptable 10.0.4-canary.5 → 11.0.0-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base.css +1 -5
- package/bundle.cjs.js +115 -113
- package/index.css +1 -7
- package/package.json +2 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +9 -3
- package/src/AdaptableOptions/AdaptableOptions.d.ts +13 -2
- package/src/AdaptableOptions/ContainerOptions.d.ts +0 -7
- package/src/AdaptableOptions/DashboardOptions.d.ts +4 -7
- package/src/AdaptableOptions/FlashingCellOptions.d.ts +31 -0
- package/src/AdaptableOptions/{ChartPluginOptions.js → FlashingCellOptions.js} +0 -0
- package/src/AdaptableOptions/GeneralOptions.d.ts +1 -1
- package/src/AdaptableOptions/MenuOptions.d.ts +2 -2
- package/src/AdaptableOptions/NotificationsOptions.d.ts +0 -7
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +14 -2
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -14
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +5 -0
- package/src/Api/AdaptableApi.d.ts +6 -6
- package/src/Api/ChartingApi.d.ts +9 -0
- package/src/Api/{ChartApi.js → ChartingApi.js} +0 -0
- package/src/Api/ColumnApi.d.ts +11 -1
- package/src/Api/ConfigApi.d.ts +0 -12
- package/src/Api/EventApi.d.ts +3 -3
- package/src/Api/Events/AdaptableReady.d.ts +1 -1
- package/src/Api/Events/FlashingCellDisplayed.d.ts +2 -2
- package/src/Api/FlashingCellApi.d.ts +35 -24
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -2
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +1 -1
- package/src/Api/Implementation/ChartingApiImpl.d.ts +5 -0
- package/src/Api/Implementation/ChartingApiImpl.js +10 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +3 -1
- package/src/Api/Implementation/ColumnApiImpl.js +9 -3
- package/src/Api/Implementation/ConfigApiImpl.d.ts +0 -4
- package/src/Api/Implementation/ConfigApiImpl.js +0 -16
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +8 -4
- package/src/Api/Implementation/FlashingCellApiImpl.js +39 -24
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -1
- package/src/Api/Implementation/GridApiImpl.js +1 -1
- package/src/Api/Implementation/InternalApiImpl.d.ts +0 -4
- package/src/Api/Implementation/InternalApiImpl.js +1 -7
- package/src/Api/Implementation/PluginsApiImpl.d.ts +0 -2
- package/src/Api/Implementation/PluginsApiImpl.js +0 -6
- package/src/Api/Implementation/PlusMinusApiImpl.js +1 -1
- package/src/Api/Implementation/QueryApiImpl.js +1 -1
- package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
- package/src/Api/InternalApi.d.ts +0 -4
- package/src/Api/PluginsApi.d.ts +0 -2
- package/src/PredefinedConfig/AdaptableState.d.ts +0 -4
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +4 -4
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +38 -38
- package/src/PredefinedConfig/Common/Enums.js +1 -0
- package/src/PredefinedConfig/Common/Menu.d.ts +15 -19
- package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +4 -0
- package/src/PredefinedConfig/Common/Types.d.ts +5 -5
- package/src/PredefinedConfig/Common/Types.js +0 -2
- package/src/PredefinedConfig/FlashingCellState.d.ts +14 -19
- package/src/PredefinedConfig/PredefinedConfig.d.ts +0 -10
- package/src/PredefinedConfig/SystemState.d.ts +0 -4
- package/src/PredefinedConfig/ThemeState.d.ts +2 -1
- package/src/Redux/ActionsReducers/DashboardRedux.js +1 -1
- package/src/Redux/ActionsReducers/PopupRedux.d.ts +0 -2
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +0 -12
- package/src/Redux/ActionsReducers/SystemRedux.js +1 -21
- package/src/Redux/ActionsReducers/ToolPanelRedux.js +1 -2
- package/src/Redux/Store/AdaptableStore.js +10 -20
- package/src/Strategy/AdaptableModuleBase.d.ts +1 -1
- package/src/Strategy/AdaptableModuleBase.js +0 -3
- package/src/Strategy/AlertModule.js +1 -1
- package/src/Strategy/CalculatedColumnModule.js +17 -12
- package/src/Strategy/ChartingModule.d.ts +7 -0
- package/src/Strategy/ChartingModule.js +15 -0
- package/src/Strategy/ConditionalStyleModule.js +1 -1
- package/src/Strategy/FilterModule.js +3 -2
- package/src/Strategy/FlashingCellModule.js +4 -4
- package/src/Strategy/FormatColumnModule.js +2 -2
- package/src/Strategy/Interface/IModule.d.ts +0 -1
- package/src/Strategy/LayoutModule.js +15 -3
- package/src/Strategy/QueryModule.d.ts +1 -1
- package/src/Strategy/QueryModule.js +1 -3
- package/src/Strategy/SetingsPanelModule.d.ts +1 -0
- package/src/Strategy/SetingsPanelModule.js +7 -1
- package/src/Strategy/Utilities/getFlashingTargetViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getFlashingTargetViewItems.js +9 -0
- package/src/Strategy/Utilities/getFormatColumnStyleViewItems.d.ts +3 -0
- package/src/Strategy/Utilities/getFormatColumnStyleViewItems.js +10 -0
- package/src/Utilities/Constants/ConfigConstants.d.ts +0 -1
- package/src/Utilities/Constants/ConfigConstants.js +1 -2
- package/src/Utilities/Constants/GeneralConstants.d.ts +0 -9
- package/src/Utilities/Constants/GeneralConstants.js +1 -12
- package/src/Utilities/Constants/ModuleConstants.d.ts +1 -2
- package/src/Utilities/Constants/ModuleConstants.js +2 -3
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +19 -18
- package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +2 -1
- package/src/Utilities/Helpers/AdaptableHelper.js +2 -2
- package/src/Utilities/Interface/MessagePopups.d.ts +0 -3
- package/src/Utilities/ObjectFactory.d.ts +0 -10
- package/src/Utilities/ObjectFactory.js +2 -65
- package/src/Utilities/Services/EntitlementService.js +1 -1
- package/src/Utilities/Services/ModuleService.js +7 -11
- package/src/View/AdaptableView.js +1 -7
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.d.ts +4 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +2 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +9 -9
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +3 -3
- package/src/View/AdaptableWizardView/index.js +1 -1
- package/src/View/Alert/AlertEmptyView.js +1 -1
- package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +1 -0
- package/src/View/Alert/Wizard/AlertWizard.js +3 -3
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.d.ts +1 -0
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +4 -1
- package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags.js +0 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.d.ts +1 -0
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +2 -1
- package/src/View/Components/ModuleValueSelector/index.d.ts +3 -1
- package/src/View/Components/ModuleValueSelector/index.js +1 -1
- package/src/View/Components/NewScopeComponent.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +5 -4
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +45 -80
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +8 -1
- package/src/View/Components/ValueSelector/index.d.ts +1 -0
- package/src/View/Components/ValueSelector/index.js +2 -2
- package/src/View/Dashboard/Dashboard.js +11 -34
- package/src/View/Dashboard/DashboardPopup.js +22 -14
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +3 -2
- package/src/View/FlashingCell/Wizard/FlashingCellDurationWizardSection.js +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +6 -6
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +1 -3
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +1 -1
- package/src/View/GridInfo/GridInfoPopup.js +3 -2
- package/src/View/Query/Wizard/NamedQueryWizard.js +10 -7
- package/src/View/QuickSearch/QuickSearchPopup.js +1 -1
- package/src/View/Shortcut/shortcutKeys.js +0 -1
- package/src/View/UIHelper.d.ts +0 -4
- package/src/View/UIHelper.js +1 -34
- package/src/agGrid/Adaptable.d.ts +10 -5
- package/src/agGrid/Adaptable.js +59 -49
- package/src/agGrid/agGridHelper.d.ts +1 -2
- package/src/agGrid/agGridHelper.js +7 -4
- package/src/agGrid/agGridMenuHelper.js +11 -7
- package/src/components/ApplicationIcon.d.ts +1 -1
- package/src/components/icons/column-add.d.ts +3 -0
- package/src/components/icons/column-add.js +10 -0
- package/src/components/icons/index.js +2 -0
- package/src/metamodel/adaptable.metamodel.d.ts +58 -91
- package/src/metamodel/adaptable.metamodel.js +239 -288
- package/src/types.d.ts +4 -7
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/AdaptableOptions/ChartPluginOptions.d.ts +0 -20
- package/src/Api/ChartApi.d.ts +0 -20
- package/src/Api/Implementation/SparklineColumnApiImpl.d.ts +0 -9
- package/src/Api/Implementation/SparklineColumnApiImpl.js +0 -24
- package/src/Api/SparklineColumnApi.d.ts +0 -23
- package/src/Api/SparklineColumnApi.js +0 -2
- package/src/PredefinedConfig/ChartState.d.ts +0 -144
- package/src/PredefinedConfig/ChartState.js +0 -2
- package/src/PredefinedConfig/Common/ChartEnums.d.ts +0 -123
- package/src/PredefinedConfig/Common/ChartEnums.js +0 -152
- package/src/PredefinedConfig/SparklineColumnState.d.ts +0 -40
- package/src/PredefinedConfig/SparklineColumnState.js +0 -2
- package/src/Redux/ActionsReducers/SparklineColumnRedux.d.ts +0 -35
- package/src/Redux/ActionsReducers/SparklineColumnRedux.js +0 -70
- package/src/Utilities/Defaults/DefaultCategoryChartProperties.d.ts +0 -2
- package/src/Utilities/Defaults/DefaultCategoryChartProperties.js +0 -56
- package/src/Utilities/Defaults/DefaultPieChartProperties.d.ts +0 -2
- package/src/Utilities/Defaults/DefaultPieChartProperties.js +0 -13
- package/src/Utilities/Defaults/DefaultSparklinesChartProperties.d.ts +0 -2
- package/src/Utilities/Defaults/DefaultSparklinesChartProperties.js +0 -25
- package/src/View/Components/Panels/PanelWithIImageThreeButtons.d.ts +0 -11
- package/src/View/Components/Panels/PanelWithIImageThreeButtons.js +0 -28
- package/src/View/Components/Popups/AdaptableChart.d.ts +0 -18
- package/src/View/Components/Popups/AdaptableChart.js +0 -40
- package/src/View/Components/SharedProps/ChartDisplayPopupPropsBase.d.ts +0 -7
- package/src/View/Components/SharedProps/ChartDisplayPopupPropsBase.js +0 -2
- package/src/components/ChartContainer/index.d.ts +0 -15
- package/src/components/ChartContainer/index.js +0 -22
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import * as Redux from 'redux';
|
|
2
|
-
import { SparklineColumnState, SparklineColumn } from '../../PredefinedConfig/SparklineColumnState';
|
|
3
|
-
/**
|
|
4
|
-
* @ReduxAction Sparkline Columns have been set
|
|
5
|
-
*/
|
|
6
|
-
export declare const SPARKLINE_COLUMNS_SET = "SPARKLINE_COLUMNS_SET";
|
|
7
|
-
/**
|
|
8
|
-
* @ReduxAction A Sparkline Column has been added
|
|
9
|
-
*/
|
|
10
|
-
export declare const SPARKLINE_COLUMNS_ADD = "SPARKLINE_COLUMNS_ADD";
|
|
11
|
-
/**
|
|
12
|
-
* @ReduxAction A Sparkline Column has been edited
|
|
13
|
-
*/
|
|
14
|
-
export declare const SPARKLINE_COLUMNS_EDIT = "SPARKLINE_COLUMNS_EDIT";
|
|
15
|
-
/**
|
|
16
|
-
* @ReduxAction A Sparkline Column has been deleted
|
|
17
|
-
*/
|
|
18
|
-
export declare const SPARKLINE_COLUMNS_DELETE = "SPARKLINE_COLUMNS_DELETE";
|
|
19
|
-
export interface SparklineColumnAction extends Redux.Action {
|
|
20
|
-
sparklineColumn: SparklineColumn;
|
|
21
|
-
}
|
|
22
|
-
export interface SparklineColumnAddAction extends SparklineColumnAction {
|
|
23
|
-
}
|
|
24
|
-
export interface SparklineColumnEditAction extends SparklineColumnAction {
|
|
25
|
-
}
|
|
26
|
-
export interface SparklineColumnDeleteAction extends SparklineColumnAction {
|
|
27
|
-
}
|
|
28
|
-
export interface SparklineColumnsSetAction extends Redux.Action {
|
|
29
|
-
Columns: SparklineColumn[];
|
|
30
|
-
}
|
|
31
|
-
export declare const SparklineColumnsSet: (Columns: SparklineColumn[]) => SparklineColumnsSetAction;
|
|
32
|
-
export declare const SparklineColumnsAdd: (sparklineColumn: SparklineColumn) => SparklineColumnAddAction;
|
|
33
|
-
export declare const SparklineColumnsEdit: (sparklineColumn: SparklineColumn) => SparklineColumnAddAction;
|
|
34
|
-
export declare const SparklineColumnsDelete: (sparklineColumn: SparklineColumn) => SparklineColumnAddAction;
|
|
35
|
-
export declare const SparklineColumnReducer: Redux.Reducer<SparklineColumnState>;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SparklineColumnReducer = exports.SparklineColumnsDelete = exports.SparklineColumnsEdit = exports.SparklineColumnsAdd = exports.SparklineColumnsSet = exports.SPARKLINE_COLUMNS_DELETE = exports.SPARKLINE_COLUMNS_EDIT = exports.SPARKLINE_COLUMNS_ADD = exports.SPARKLINE_COLUMNS_SET = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
6
|
-
const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
|
|
7
|
-
/**
|
|
8
|
-
* @ReduxAction Sparkline Columns have been set
|
|
9
|
-
*/
|
|
10
|
-
exports.SPARKLINE_COLUMNS_SET = 'SPARKLINE_COLUMNS_SET';
|
|
11
|
-
/**
|
|
12
|
-
* @ReduxAction A Sparkline Column has been added
|
|
13
|
-
*/
|
|
14
|
-
exports.SPARKLINE_COLUMNS_ADD = 'SPARKLINE_COLUMNS_ADD';
|
|
15
|
-
/**
|
|
16
|
-
* @ReduxAction A Sparkline Column has been edited
|
|
17
|
-
*/
|
|
18
|
-
exports.SPARKLINE_COLUMNS_EDIT = 'SPARKLINE_COLUMNS_EDIT';
|
|
19
|
-
/**
|
|
20
|
-
* @ReduxAction A Sparkline Column has been deleted
|
|
21
|
-
*/
|
|
22
|
-
exports.SPARKLINE_COLUMNS_DELETE = 'SPARKLINE_COLUMNS_DELETE';
|
|
23
|
-
exports.SparklineColumnsSet = (Columns) => ({
|
|
24
|
-
type: exports.SPARKLINE_COLUMNS_SET,
|
|
25
|
-
Columns,
|
|
26
|
-
});
|
|
27
|
-
exports.SparklineColumnsAdd = (sparklineColumn) => ({
|
|
28
|
-
type: exports.SPARKLINE_COLUMNS_ADD,
|
|
29
|
-
sparklineColumn,
|
|
30
|
-
});
|
|
31
|
-
exports.SparklineColumnsEdit = (sparklineColumn) => ({
|
|
32
|
-
type: exports.SPARKLINE_COLUMNS_EDIT,
|
|
33
|
-
sparklineColumn,
|
|
34
|
-
});
|
|
35
|
-
exports.SparklineColumnsDelete = (sparklineColumn) => ({
|
|
36
|
-
type: exports.SPARKLINE_COLUMNS_DELETE,
|
|
37
|
-
sparklineColumn,
|
|
38
|
-
});
|
|
39
|
-
const initialState = {
|
|
40
|
-
SparklineColumns: GeneralConstants_1.EMPTY_ARRAY,
|
|
41
|
-
};
|
|
42
|
-
exports.SparklineColumnReducer = (state = initialState, action) => {
|
|
43
|
-
let sparklineColumns;
|
|
44
|
-
switch (action.type) {
|
|
45
|
-
case exports.SPARKLINE_COLUMNS_SET:
|
|
46
|
-
return Object.assign({}, state, {
|
|
47
|
-
Columns: action.Columns,
|
|
48
|
-
});
|
|
49
|
-
case exports.SPARKLINE_COLUMNS_ADD: {
|
|
50
|
-
const actionSparklineColumn = action
|
|
51
|
-
.sparklineColumn;
|
|
52
|
-
AdaptableHelper_1.default.addUuidAndSource(actionSparklineColumn);
|
|
53
|
-
sparklineColumns = [].concat(state.SparklineColumns);
|
|
54
|
-
sparklineColumns.push(actionSparklineColumn);
|
|
55
|
-
return Object.assign(Object.assign({}, state), { SparklineColumns: sparklineColumns });
|
|
56
|
-
}
|
|
57
|
-
case exports.SPARKLINE_COLUMNS_EDIT: {
|
|
58
|
-
const actionSparklineColumn = action
|
|
59
|
-
.sparklineColumn;
|
|
60
|
-
return Object.assign(Object.assign({}, state), { SparklineColumns: state.SparklineColumns.map((abObject) => abObject.Uuid === actionSparklineColumn.Uuid ? actionSparklineColumn : abObject) });
|
|
61
|
-
}
|
|
62
|
-
case exports.SPARKLINE_COLUMNS_DELETE: {
|
|
63
|
-
const actionSparklineColumn = action
|
|
64
|
-
.sparklineColumn;
|
|
65
|
-
return Object.assign(Object.assign({}, state), { SparklineColumns: state.SparklineColumns.filter((abObject) => abObject.Uuid !== actionSparklineColumn.Uuid) });
|
|
66
|
-
}
|
|
67
|
-
default:
|
|
68
|
-
return state;
|
|
69
|
-
}
|
|
70
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DefaultCategoryChartProperties = void 0;
|
|
4
|
-
const ChartEnums_1 = require("../../PredefinedConfig/Common/ChartEnums");
|
|
5
|
-
exports.DefaultCategoryChartProperties = {
|
|
6
|
-
// General
|
|
7
|
-
CategoryChartType: ChartEnums_1.CategoryChartType.Line,
|
|
8
|
-
SeriesThickness: 1,
|
|
9
|
-
// added special Default enum to resolve marker type based on chart type. Do not use enums for this property
|
|
10
|
-
MarkerType: 'Default',
|
|
11
|
-
// Callouts:
|
|
12
|
-
CalloutsType: 'None',
|
|
13
|
-
CalloutsInterval: 1,
|
|
14
|
-
// Annotations:
|
|
15
|
-
EnableFinalValueAnnotations: false,
|
|
16
|
-
CrosshairDisplayMode: ChartEnums_1.CrosshairDisplayMode.None,
|
|
17
|
-
CrosshairSnapToData: false,
|
|
18
|
-
CrosshairAnnotationEnabled: false,
|
|
19
|
-
ToolTipType: ChartEnums_1.ToolTipType.Item,
|
|
20
|
-
EnableSeriesHighlighting: false,
|
|
21
|
-
EnableCategoryHighlighting: false,
|
|
22
|
-
EnableItemHighlighting: false,
|
|
23
|
-
// Y Axis props:
|
|
24
|
-
// changed YAxisLabelLocation to right because it works better with final values annotation
|
|
25
|
-
YAxisLabelLocation: ChartEnums_1.AxisLabelsLocation.OutsideRight,
|
|
26
|
-
YAxisLabelVisibility: ChartEnums_1.LabelVisibility.Visible,
|
|
27
|
-
YAxisLabelColor: '',
|
|
28
|
-
YAxisIntervalCustom: false,
|
|
29
|
-
YAxisIntervalValue: undefined,
|
|
30
|
-
YAxisTitle: '',
|
|
31
|
-
YAxisTitleColor: '',
|
|
32
|
-
YAxisMinimumValue: undefined,
|
|
33
|
-
YAxisMaximumValue: undefined,
|
|
34
|
-
// TODO we should implement "Auto" scale that changes between
|
|
35
|
-
// Log and Linear depending on range of data values on y-Axis
|
|
36
|
-
YAxisLabelScale: ChartEnums_1.AxisScale.Linear,
|
|
37
|
-
YAxisIsLogarithmic: false,
|
|
38
|
-
YAxisInverted: false,
|
|
39
|
-
// X Axis props:
|
|
40
|
-
XAxisLabelLocation: ChartEnums_1.AxisLabelsLocation.OutsideBottom,
|
|
41
|
-
XAxisLabelVisibility: ChartEnums_1.LabelVisibility.Visible,
|
|
42
|
-
XAxisLabelColor: '',
|
|
43
|
-
XAxisIntervalCustom: false,
|
|
44
|
-
XAxisIntervalValue: undefined,
|
|
45
|
-
XAxisTitle: '',
|
|
46
|
-
XAxisTitleColor: '',
|
|
47
|
-
XAxisGap: 0.5,
|
|
48
|
-
XAxisOverlap: 1.0,
|
|
49
|
-
XAxisAngle: ChartEnums_1.AxisAngle.Horizontal,
|
|
50
|
-
XAxisInverted: false,
|
|
51
|
-
// Misc
|
|
52
|
-
EnableTransitions: false,
|
|
53
|
-
TransitionInDuration: undefined,
|
|
54
|
-
TitleAlignment: ChartEnums_1.HorizontalAlignment.Center,
|
|
55
|
-
SubTitleAlignment: ChartEnums_1.HorizontalAlignment.Center,
|
|
56
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DefaultPieChartProperties = void 0;
|
|
4
|
-
const ChartEnums_1 = require("../../PredefinedConfig/Common/ChartEnums");
|
|
5
|
-
exports.DefaultPieChartProperties = {
|
|
6
|
-
OthersCategoryThreshold: 2,
|
|
7
|
-
OthersCategoryType: ChartEnums_1.OthersCategoryType.Percent,
|
|
8
|
-
PieChartLabelPosition: ChartEnums_1.PieChartLabelPosition.BestFit,
|
|
9
|
-
SliceValuesMapping: ChartEnums_1.SliceLabelOption.Value,
|
|
10
|
-
SliceLabelsMapping: ChartEnums_1.SliceLabelOption.Name,
|
|
11
|
-
SliceLegendMapping: ChartEnums_1.SliceLabelOption.ValueAndName,
|
|
12
|
-
ShowAsDoughnut: true,
|
|
13
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DefaultSparklinesChartProperties = void 0;
|
|
4
|
-
const ChartEnums_1 = require("../../PredefinedConfig/Common/ChartEnums");
|
|
5
|
-
exports.DefaultSparklinesChartProperties = {
|
|
6
|
-
DisplayType: ChartEnums_1.SparklineTypeEnum.Line,
|
|
7
|
-
UseMaxStaticValue: false,
|
|
8
|
-
UseMinStaticValue: false,
|
|
9
|
-
// Brush -- want to use same colour as UI but cannot re-use the constants
|
|
10
|
-
Brush: '#006400',
|
|
11
|
-
NegativeBrush: '#8B0000',
|
|
12
|
-
// Marker Visibility
|
|
13
|
-
HighMarkerVisibility: 'Visible',
|
|
14
|
-
LowMarkerVisibility: 'Visible',
|
|
15
|
-
FirstMarkerVisibility: 'Visible',
|
|
16
|
-
LastMarkerVisibility: 'Visible',
|
|
17
|
-
NegativeMarkerVisibility: 'Visible',
|
|
18
|
-
MarkerVisibility: 'Collapsed',
|
|
19
|
-
// Marker Brush
|
|
20
|
-
FirstMarkerBrush: 'Gray',
|
|
21
|
-
LastMarkerBrush: 'Gray',
|
|
22
|
-
HighMarkerBrush: 'DarkBlue',
|
|
23
|
-
LowMarkerBrush: 'Purple',
|
|
24
|
-
NegativeMarkerBrush: 'Red',
|
|
25
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { PanelProps } from '../../../components/Panel';
|
|
3
|
-
export interface PanelWithImageThreeButtonsProps extends PanelProps {
|
|
4
|
-
firstButton?: React.ReactElement<any>;
|
|
5
|
-
secondButton?: React.ReactElement<any>;
|
|
6
|
-
thirdButton?: React.ReactElement<any>;
|
|
7
|
-
infoBody?: any[];
|
|
8
|
-
}
|
|
9
|
-
export declare class PanelWithImageThreeButtons extends React.Component<PanelWithImageThreeButtonsProps, {}> {
|
|
10
|
-
render(): JSX.Element;
|
|
11
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PanelWithImageThreeButtons = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const AdaptablePopover_1 = require("../../AdaptablePopover");
|
|
7
|
-
const WizardPanel_1 = tslib_1.__importDefault(require("../../../components/WizardPanel"));
|
|
8
|
-
const icons_1 = tslib_1.__importDefault(require("../../../components/icons"));
|
|
9
|
-
const rebass_1 = require("rebass");
|
|
10
|
-
const ChartIcon = icons_1.default['chart'];
|
|
11
|
-
//We cannot destructure this.props using the react way in typescript which is a real pain as you
|
|
12
|
-
//need to transfer props individually as a consequence
|
|
13
|
-
//let { buttonContent, ...other } = this.props
|
|
14
|
-
class PanelWithImageThreeButtons extends React.Component {
|
|
15
|
-
render() {
|
|
16
|
-
let _a = this.props, { firstButton, secondButton, thirdButton, infoBody, header } = _a, panelProps = tslib_1.__rest(_a, ["firstButton", "secondButton", "thirdButton", "infoBody", "header"]);
|
|
17
|
-
header = (React.createElement(rebass_1.Flex, { alignItems: "center", width: "100%" },
|
|
18
|
-
React.createElement(ChartIcon, null),
|
|
19
|
-
React.createElement(rebass_1.Text, { mx: 2 }, header),
|
|
20
|
-
infoBody != null && React.createElement(AdaptablePopover_1.AdaptablePopover, { headerText: "", bodyText: infoBody }),
|
|
21
|
-
React.createElement("div", { style: { flex: 1 } }),
|
|
22
|
-
firstButton,
|
|
23
|
-
secondButton,
|
|
24
|
-
thirdButton));
|
|
25
|
-
return React.createElement(WizardPanel_1.default, Object.assign({}, panelProps, { header: header }));
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.PanelWithImageThreeButtons = PanelWithImageThreeButtons;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { AccessLevel } from '../../../PredefinedConfig/Common/Entitlement';
|
|
3
|
-
import { AdaptableApi } from '../../../types';
|
|
4
|
-
export interface IAdaptableChartProps extends React.ClassAttributes<AdaptableChart> {
|
|
5
|
-
showChart: boolean;
|
|
6
|
-
onClose?: () => void;
|
|
7
|
-
api: AdaptableApi;
|
|
8
|
-
showModal: boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface AdaptableChartState {
|
|
11
|
-
chartContainer: HTMLElement;
|
|
12
|
-
accessLevel: AccessLevel;
|
|
13
|
-
isValidUserChartContainer: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare class AdaptableChart extends React.Component<IAdaptableChartProps, AdaptableChartState> {
|
|
16
|
-
constructor(props: IAdaptableChartProps);
|
|
17
|
-
render(): JSX.Element;
|
|
18
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AdaptableChart = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const ReactDOM = tslib_1.__importStar(require("react-dom"));
|
|
7
|
-
const AdaptableViewFactory_1 = require("../../AdaptableViewFactory");
|
|
8
|
-
const UIHelper_1 = require("../../UIHelper");
|
|
9
|
-
const ModuleConstants = tslib_1.__importStar(require("../../../Utilities/Constants/ModuleConstants"));
|
|
10
|
-
const AdaptablePopup_1 = require("./AdaptablePopup");
|
|
11
|
-
class AdaptableChart extends React.Component {
|
|
12
|
-
constructor(props) {
|
|
13
|
-
super(props);
|
|
14
|
-
let options = this.props.api.internalApi.getAdaptableOptions();
|
|
15
|
-
this.state = {
|
|
16
|
-
chartContainer: UIHelper_1.UIHelper.getChartContainer(options, document, this.props.showModal),
|
|
17
|
-
accessLevel: this.props.api.internalApi
|
|
18
|
-
.getEntitlementService()
|
|
19
|
-
.getEntitlementAccessLevelForModule(ModuleConstants.ChartModuleId),
|
|
20
|
-
isValidUserChartContainer: UIHelper_1.UIHelper.isValidUserChartContainer(options, document),
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
render() {
|
|
24
|
-
let moduleInfo = this.props.api.internalApi
|
|
25
|
-
.getModuleService()
|
|
26
|
-
.getModuleInfoByModule(ModuleConstants.ChartModuleId);
|
|
27
|
-
let commonProps = {
|
|
28
|
-
modalContainer: this.state.chartContainer,
|
|
29
|
-
onClose: this.props.onClose,
|
|
30
|
-
ShowModal: this.props.showModal,
|
|
31
|
-
accessLevel: this.state.accessLevel,
|
|
32
|
-
api: this.props.api,
|
|
33
|
-
moduleInfo: moduleInfo,
|
|
34
|
-
};
|
|
35
|
-
let ChartCmp = AdaptableViewFactory_1.AdaptableViewFactory['ChartDisplayPopup'];
|
|
36
|
-
const body = React.createElement(ChartCmp, Object.assign({}, commonProps));
|
|
37
|
-
return this.props.showModal ? (React.createElement(AdaptablePopup_1.AdaptablePopup, { api: this.props.api, onHide: this.props.onClose, moduleParams: null, componentName: 'ChartDisplayPopup', componentModule: ModuleConstants.ChartModuleId }, body)) : this.state.isValidUserChartContainer ? (ReactDOM.createPortal(body, this.state.chartContainer)) : (body);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.AdaptableChart = AdaptableChart;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
export interface ChartContainerProps {
|
|
4
|
-
chart: React.ReactElement;
|
|
5
|
-
style?: React.CSSProperties;
|
|
6
|
-
title?: ReactNode;
|
|
7
|
-
button?: ReactNode;
|
|
8
|
-
flexDirection?: 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
9
|
-
sizeAsString?: boolean;
|
|
10
|
-
settingsPanel?: ReactNode;
|
|
11
|
-
minHeight?: string | number;
|
|
12
|
-
}
|
|
13
|
-
declare const ChartContainer: (props: ChartContainerProps) => JSX.Element;
|
|
14
|
-
export default ChartContainer;
|
|
15
|
-
export { ChartContainer };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChartContainer = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const rebass_1 = require("rebass");
|
|
7
|
-
const SizedContainer_1 = tslib_1.__importDefault(require("../SizedContainer"));
|
|
8
|
-
const ChartContainer = (props) => (React.createElement(rebass_1.Flex, { flexDirection: props.flexDirection || 'row', className: "ab-ChartContainer", style: props.style },
|
|
9
|
-
React.createElement(rebass_1.Flex, { flexDirection: "column", flex: 1, style: { textAlign: 'center' } },
|
|
10
|
-
props.button,
|
|
11
|
-
props.title,
|
|
12
|
-
React.createElement(SizedContainer_1.default, { style: { minHeight: props.minHeight || '60vh' } }, ({ width, height }) => {
|
|
13
|
-
height = Math.round(height);
|
|
14
|
-
width = Math.round(width);
|
|
15
|
-
return React.cloneElement(props.chart, {
|
|
16
|
-
height: props.sizeAsString !== false ? `${height}px` : height,
|
|
17
|
-
width: props.sizeAsString !== false ? `${width}px` : width,
|
|
18
|
-
});
|
|
19
|
-
})),
|
|
20
|
-
props.settingsPanel));
|
|
21
|
-
exports.ChartContainer = ChartContainer;
|
|
22
|
-
exports.default = ChartContainer;
|