@adaptabletools/adaptable 14.0.1 → 14.0.3
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/bundle.cjs.js +30 -30
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +1 -1
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +6 -5
- package/src/AdaptableOptions/ChartingOptions.d.ts +4 -5
- package/src/AdaptableOptions/ExpressionOptions.d.ts +18 -18
- package/src/AdaptableOptions/PredicateOptions.d.ts +4 -4
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +5 -3
- package/src/Api/ActionApi.d.ts +2 -2
- package/src/Api/FilterApi.d.ts +10 -8
- package/src/Api/Implementation/ActionApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ActionApiImpl.js +3 -3
- package/src/Api/Implementation/FilterApiImpl.js +0 -2
- package/src/Api/Implementation/StyledColumnApiImpl.d.ts +1 -0
- package/src/Api/Implementation/StyledColumnApiImpl.js +3 -0
- package/src/Api/StyledColumnApi.d.ts +4 -0
- package/src/PredefinedConfig/ExportState.d.ts +2 -2
- package/src/PredefinedConfig/StyledColumnState.d.ts +1 -1
- package/src/Strategy/FormatColumnModule.js +2 -2
- package/src/Strategy/StyledColumnModule.js +3 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +2 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsActionColumnsForm.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.js +6 -5
- package/src/View/Components/Charting/useChartState.js +2 -2
- package/src/View/Components/FilterForm/FilterForm.js +6 -7
- package/src/View/Components/FilterForm/QuickFilterForm.js +13 -9
- package/src/View/GridInfo/GridInfoPopup.js +3 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +4 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +3 -1
- package/src/agGrid/Adaptable.d.ts +1 -1
- package/src/agGrid/Adaptable.js +1 -1
- package/src/metamodel/adaptable.metamodel.d.ts +19 -2
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -39,7 +39,7 @@ const StyledColumnWizard = (props) => {
|
|
|
39
39
|
};
|
|
40
40
|
const checkboxGrandientPercentSteps = [
|
|
41
41
|
{
|
|
42
|
-
details: '
|
|
42
|
+
details: 'Create the Style to apply',
|
|
43
43
|
renderSummary: StyledColumnWizardStyleSection_1.renderStyledColumnStyleSummary,
|
|
44
44
|
render: () => {
|
|
45
45
|
return (React.createElement(rebass_1.Box, { padding: 2 },
|
|
@@ -48,6 +48,7 @@ const StyledColumnWizard = (props) => {
|
|
|
48
48
|
title: 'Style',
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
|
+
details: 'Apply additional Settings',
|
|
51
52
|
renderSummary: StyledColumnWizardSettingsSection_1.renderStyledColumnWizardSettingsSummary,
|
|
52
53
|
render: () => {
|
|
53
54
|
return (React.createElement(rebass_1.Box, { padding: 2 },
|
|
@@ -65,7 +66,7 @@ const StyledColumnWizard = (props) => {
|
|
|
65
66
|
];
|
|
66
67
|
return (React.createElement(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { defaultCurrentSectionName: props.defaultCurrentSectionName, moduleInfo: props.moduleInfo, data: styledColumn, onFinish: handleFinish, onHide: props.onCloseWizard, sections: [
|
|
67
68
|
{
|
|
68
|
-
details: 'Select a Styled Column
|
|
69
|
+
details: 'Select a Styled Column type',
|
|
69
70
|
renderSummary: StyledColumnWizardTypeSection_1.renderStyledColumnTypeSummary,
|
|
70
71
|
render: () => {
|
|
71
72
|
return (React.createElement(rebass_1.Box, { padding: 2 },
|
|
@@ -76,7 +77,7 @@ const StyledColumnWizard = (props) => {
|
|
|
76
77
|
{
|
|
77
78
|
isValid: StyledColumnWizardColumnSection_1.isValidStyledColumnColumn,
|
|
78
79
|
renderSummary: StyledColumnWizardColumnSection_1.renderStyledColumnColumnSummary,
|
|
79
|
-
details: 'Select
|
|
80
|
+
details: 'Select a Column where the Style will be applied',
|
|
80
81
|
render: () => {
|
|
81
82
|
return (React.createElement(rebass_1.Box, { padding: 2, style: { height: '100%' } },
|
|
82
83
|
React.createElement(StyledColumnWizardColumnSection_1.StyledColumnWizardColumnSection, { isNew: props.isNew, onChange: setStyledColumn })));
|
|
@@ -7,6 +7,7 @@ const rebass_1 = require("rebass");
|
|
|
7
7
|
const Radio_1 = tslib_1.__importDefault(require("../../../components/Radio"));
|
|
8
8
|
const Tabs_1 = require("../../../components/Tabs");
|
|
9
9
|
const Tag_1 = require("../../../components/Tag");
|
|
10
|
+
const AdaptableContext_1 = require("../../AdaptableContext");
|
|
10
11
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
11
12
|
const renderStyledColumnTypeSummary = (data) => {
|
|
12
13
|
let type = null;
|
|
@@ -29,6 +30,7 @@ const renderStyledColumnTypeSummary = (data) => {
|
|
|
29
30
|
exports.renderStyledColumnTypeSummary = renderStyledColumnTypeSummary;
|
|
30
31
|
const StyledColumnWizardTypeSection = (props) => {
|
|
31
32
|
const { data } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
33
|
+
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
32
34
|
const handleTypeChange = (type) => {
|
|
33
35
|
const newStyledColumn = Object.assign({}, data);
|
|
34
36
|
delete newStyledColumn.GradientStyle;
|
|
@@ -63,6 +65,6 @@ const StyledColumnWizardTypeSection = (props) => {
|
|
|
63
65
|
React.createElement(Radio_1.default, { checked: Boolean(data.GradientStyle), onChange: () => handleTypeChange('gradient') }, "Gradient Column"),
|
|
64
66
|
React.createElement(Radio_1.default, { onChange: () => handleTypeChange('percent'), checked: Boolean(data.PercentBarStyle) }, "Percent Bar"),
|
|
65
67
|
React.createElement(Radio_1.default, { onChange: () => handleTypeChange('checkbox'), checked: Boolean(data.CheckBoxStyle) }, "Check Box"),
|
|
66
|
-
React.createElement(Radio_1.default, { onChange: () => handleTypeChange('sparkline'), checked: Boolean(data.SparkLineStyle) }, "Sparkline")))));
|
|
68
|
+
adaptable.api.styledColumnApi.canDisplaySparklines() && (React.createElement(Radio_1.default, { onChange: () => handleTypeChange('sparkline'), checked: Boolean(data.SparkLineStyle) }, "Sparkline"))))));
|
|
67
69
|
};
|
|
68
70
|
exports.StyledColumnWizardTypeSection = StyledColumnWizardTypeSection;
|
|
@@ -368,7 +368,7 @@ export declare class Adaptable implements IAdaptable {
|
|
|
368
368
|
private setupColumnHeaderAggregations;
|
|
369
369
|
private getGridOptionsApi;
|
|
370
370
|
canGenerateCharts(): boolean;
|
|
371
|
-
|
|
371
|
+
canDisplaySparklines(): boolean;
|
|
372
372
|
canExportToExcel(): boolean;
|
|
373
373
|
exportToExcel(reportData: ReportData, fileName: string): void;
|
|
374
374
|
private setExcelStylesForExport;
|
package/src/agGrid/Adaptable.js
CHANGED
|
@@ -4432,7 +4432,7 @@ import "@adaptabletools/adaptable/themes/${themeName}.css"`);
|
|
|
4432
4432
|
canGenerateCharts() {
|
|
4433
4433
|
return (this.isAgGridModulePresent(core_1.ModuleNames.GridChartsModule) && this.gridOptions.enableCharts);
|
|
4434
4434
|
}
|
|
4435
|
-
|
|
4435
|
+
canDisplaySparklines() {
|
|
4436
4436
|
return this.isAgGridModulePresent(core_1.ModuleNames.SparklinesModule);
|
|
4437
4437
|
}
|
|
4438
4438
|
canExportToExcel() {
|
|
@@ -777,6 +777,16 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
777
777
|
defaultValue: string;
|
|
778
778
|
gridInfo?: undefined;
|
|
779
779
|
reference?: undefined;
|
|
780
|
+
} | {
|
|
781
|
+
name: string;
|
|
782
|
+
kind: string;
|
|
783
|
+
description: string;
|
|
784
|
+
uiLabel: string;
|
|
785
|
+
isOptional: boolean;
|
|
786
|
+
defaultValue: string;
|
|
787
|
+
gridInfo?: undefined;
|
|
788
|
+
noCode?: undefined;
|
|
789
|
+
reference?: undefined;
|
|
780
790
|
} | {
|
|
781
791
|
name: string;
|
|
782
792
|
kind: string;
|
|
@@ -1540,13 +1550,15 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
1540
1550
|
kind: string;
|
|
1541
1551
|
description: string;
|
|
1542
1552
|
uiLabel: string;
|
|
1543
|
-
isOptional
|
|
1553
|
+
isOptional: boolean;
|
|
1554
|
+
defaultValue: string;
|
|
1544
1555
|
} | {
|
|
1545
1556
|
name: string;
|
|
1546
1557
|
kind: string;
|
|
1547
1558
|
description: string;
|
|
1548
1559
|
uiLabel: string;
|
|
1549
|
-
isOptional
|
|
1560
|
+
isOptional?: undefined;
|
|
1561
|
+
defaultValue?: undefined;
|
|
1550
1562
|
})[];
|
|
1551
1563
|
};
|
|
1552
1564
|
ChartDefinition: {
|
|
@@ -3605,6 +3617,11 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
3605
3617
|
uiLabel: string;
|
|
3606
3618
|
}[];
|
|
3607
3619
|
};
|
|
3620
|
+
GridInfoSection: {
|
|
3621
|
+
name: string;
|
|
3622
|
+
kind: string;
|
|
3623
|
+
description: string;
|
|
3624
|
+
};
|
|
3608
3625
|
GridRow: {
|
|
3609
3626
|
name: string;
|
|
3610
3627
|
kind: string;
|