@adaptabletools/adaptable 12.1.2 → 12.1.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 +74 -74
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/Strategy/FormatColumnModule.js +1 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.d.ts +1 -0
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +6 -2
- package/src/View/Alert/Wizard/AlertWizard.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.d.ts +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +3 -3
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.d.ts +1 -0
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +6 -1
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +2 -2
- package/src/View/Layout/Wizard/LayoutWizard.js +11 -4
- package/src/View/Wizard/OnePageAdaptableWizard.d.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.3",
|
|
4
4
|
"description": "Powerful data-agnostic HTML5 datagrid add-on that sits on top of an underlying grid component and provides all the rich functionality that advanced users expect from their DataGrids and Data Tables",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
package/publishTimestamp.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: 1658938470568;
|
|
2
2
|
export default _default;
|
package/publishTimestamp.js
CHANGED
|
@@ -247,7 +247,7 @@ class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
247
247
|
},
|
|
248
248
|
{
|
|
249
249
|
name: 'Display Format',
|
|
250
|
-
values: [FormatColumnFormatWizardSection_1.getFormatColumnFormatSummaryValue(formatColumn
|
|
250
|
+
values: [FormatColumnFormatWizardSection_1.getFormatColumnFormatSummaryValue(formatColumn)],
|
|
251
251
|
},
|
|
252
252
|
getFormatColumnSettingsViewItems_1.getFormatColumnSettingsViewItems(formatColumn),
|
|
253
253
|
getObjectTagsViewItems_1.getObjectTagsViewItems(formatColumn, this.api),
|
|
@@ -4,6 +4,7 @@ import { AdaptableApi } from '../../../types';
|
|
|
4
4
|
declare type AlertBehaviourWizardSectionProps = {
|
|
5
5
|
onChange: (data: AlertDefinition) => void;
|
|
6
6
|
};
|
|
7
|
+
export declare const renderAlertBehaviourWizardSummary: (alertDefinition: AlertDefinition) => JSX.Element;
|
|
7
8
|
export declare const renderAlertBehaviourSummary: (alert: AlertDefinition, api: AdaptableApi, allowWrap?: boolean) => JSX.Element;
|
|
8
9
|
export declare const AlertBehaviourWizardSection: (props: AlertBehaviourWizardSectionProps) => JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AlertBehaviourWizardSection = exports.renderAlertBehaviourSummary = void 0;
|
|
3
|
+
exports.AlertBehaviourWizardSection = exports.renderAlertBehaviourSummary = exports.renderAlertBehaviourWizardSummary = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const Tabs_1 = require("../../../components/Tabs");
|
|
@@ -47,7 +47,11 @@ const HighlightStyle = (props) => {
|
|
|
47
47
|
props.onChange(style);
|
|
48
48
|
} }))))));
|
|
49
49
|
};
|
|
50
|
-
|
|
50
|
+
const renderAlertBehaviourWizardSummary = (alertDefinition) => {
|
|
51
|
+
const { api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
52
|
+
return exports.renderAlertBehaviourSummary(alertDefinition, api);
|
|
53
|
+
};
|
|
54
|
+
exports.renderAlertBehaviourWizardSummary = renderAlertBehaviourWizardSummary;
|
|
51
55
|
const renderAlertBehaviourSummary = (alert, api, allowWrap = false) => {
|
|
52
56
|
const { AlertProperties = {} } = alert;
|
|
53
57
|
const values = [
|
|
@@ -158,7 +158,7 @@ const AlertWizard = (props) => {
|
|
|
158
158
|
title: behaviourSpelling,
|
|
159
159
|
render: () => (React.createElement(rebass_1.Box, { padding: 2 },
|
|
160
160
|
React.createElement(AlertBehaviourWizardSection_1.AlertBehaviourWizardSection, { onChange: setAlertDefinition }))),
|
|
161
|
-
renderSummary: AlertBehaviourWizardSection_1.
|
|
161
|
+
renderSummary: AlertBehaviourWizardSection_1.renderAlertBehaviourWizardSummary,
|
|
162
162
|
},
|
|
163
163
|
{
|
|
164
164
|
details: 'Select Alert tags',
|
|
@@ -10,7 +10,7 @@ export interface FormatColumnFormatWizardState {
|
|
|
10
10
|
DisplayFormat: AdaptableFormat;
|
|
11
11
|
NumericFormat?: 'Percent' | 'Thousand' | 'Million' | 'Dollar' | 'Sterling' | undefined;
|
|
12
12
|
}
|
|
13
|
-
export declare const getFormatColumnFormatSummaryValue: (data: FormatColumn
|
|
14
|
-
export declare const renderFormatColumnFormatSummary: (data: FormatColumn
|
|
13
|
+
export declare const getFormatColumnFormatSummaryValue: (data: FormatColumn) => string;
|
|
14
|
+
export declare const renderFormatColumnFormatSummary: (data: FormatColumn) => JSX.Element;
|
|
15
15
|
export declare const getFormatDisplayTypeForScope: (scope: AdaptableScope, api: AdaptableApi) => 'Number' | 'Date' | 'String' | undefined;
|
|
16
16
|
export declare const FormatColumnFormatWizardSection: (props: FormatColumnFormatWizardSectionProps) => JSX.Element;
|
|
@@ -78,7 +78,7 @@ const DateFormatPresets = [
|
|
|
78
78
|
'yyyyMMdd',
|
|
79
79
|
'HH:mm:ss',
|
|
80
80
|
];
|
|
81
|
-
const getFormatColumnFormatSummaryValue = (data
|
|
81
|
+
const getFormatColumnFormatSummaryValue = (data) => {
|
|
82
82
|
let content = 'N/A';
|
|
83
83
|
if (!data.DisplayFormat) {
|
|
84
84
|
content = 'N/A';
|
|
@@ -112,8 +112,8 @@ const renderCustomFormatter = (data, customFormatter, setFormatOption) => {
|
|
|
112
112
|
setFormatOption('CustomDisplayFormats', newCustomFormats);
|
|
113
113
|
} })));
|
|
114
114
|
};
|
|
115
|
-
const renderFormatColumnFormatSummary = (data
|
|
116
|
-
return React.createElement(Tag_1.Tag, null, exports.getFormatColumnFormatSummaryValue(data
|
|
115
|
+
const renderFormatColumnFormatSummary = (data) => {
|
|
116
|
+
return React.createElement(Tag_1.Tag, null, exports.getFormatColumnFormatSummaryValue(data));
|
|
117
117
|
};
|
|
118
118
|
exports.renderFormatColumnFormatSummary = renderFormatColumnFormatSummary;
|
|
119
119
|
const getFormatDisplayTypeForScope = (scope, api) => {
|
|
@@ -5,6 +5,7 @@ export declare const isFormatColumnStyleValid: (data: FormatColumn, api: Adaptab
|
|
|
5
5
|
declare type FormatColumnStyleWizardSectionProps = {
|
|
6
6
|
onChange: (data: FormatColumn) => void;
|
|
7
7
|
};
|
|
8
|
+
export declare const renderFormatColumnStyleWizardSummary: (data: FormatColumn) => any;
|
|
8
9
|
export declare const renderFormatColumnStyleSummary: (data: FormatColumn, api: AdaptableApi) => any;
|
|
9
10
|
export declare function FormatColumnStyleWizardSection(props: FormatColumnStyleWizardSectionProps): JSX.Element;
|
|
10
11
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FormatColumnStyleWizardSection = exports.renderFormatColumnStyleSummary = exports.isFormatColumnStyleValid = void 0;
|
|
3
|
+
exports.FormatColumnStyleWizardSection = exports.renderFormatColumnStyleSummary = exports.renderFormatColumnStyleWizardSummary = exports.isFormatColumnStyleValid = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const rebass_1 = require("rebass");
|
|
@@ -76,6 +76,11 @@ const getColumnComparison = (columnComparison, api) => {
|
|
|
76
76
|
ForeColor: columnComparison.Color,
|
|
77
77
|
} })));
|
|
78
78
|
};
|
|
79
|
+
const renderFormatColumnStyleWizardSummary = (data) => {
|
|
80
|
+
const { api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
81
|
+
return exports.renderFormatColumnStyleSummary(data, api);
|
|
82
|
+
};
|
|
83
|
+
exports.renderFormatColumnStyleWizardSummary = renderFormatColumnStyleWizardSummary;
|
|
79
84
|
const renderFormatColumnStyleSummary = (data, api) => {
|
|
80
85
|
if (data.ColumnStyle) {
|
|
81
86
|
if (data.ColumnStyle.CheckBoxStyle) {
|
|
@@ -117,7 +117,7 @@ function FormatColumnWizard(props) {
|
|
|
117
117
|
title: 'Style',
|
|
118
118
|
details: 'Format Column Style',
|
|
119
119
|
isValid: FormatColumnStyleWizardSection_1.isFormatColumnStyleValid,
|
|
120
|
-
renderSummary: FormatColumnStyleWizardSection_1.
|
|
120
|
+
renderSummary: FormatColumnStyleWizardSection_1.renderFormatColumnStyleWizardSummary,
|
|
121
121
|
render: () => {
|
|
122
122
|
return (React.createElement(rebass_1.Box, { padding: 2 },
|
|
123
123
|
React.createElement(FormatColumnStyleWizardSection_1.FormatColumnStyleWizardSection, { onChange: setFormatColumn })));
|
|
@@ -125,7 +125,7 @@ function FormatColumnWizard(props) {
|
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
127
|
title: 'Display Format',
|
|
128
|
-
renderSummary: (data) => FormatColumnFormatWizardSection_1.renderFormatColumnFormatSummary(data
|
|
128
|
+
renderSummary: (data) => FormatColumnFormatWizardSection_1.renderFormatColumnFormatSummary(data),
|
|
129
129
|
render: () => {
|
|
130
130
|
return React.createElement(FormatColumnFormatWizardSection_1.FormatColumnFormatWizardSection, { onChange: setFormatColumn });
|
|
131
131
|
},
|
|
@@ -26,14 +26,21 @@ const LayoutWizard = (props) => {
|
|
|
26
26
|
const initialLayout = (_a = props.data) !== null && _a !== void 0 ? _a : (_b = props.popupParams) === null || _b === void 0 ? void 0 : _b.value;
|
|
27
27
|
const [layout, setLayout] = react_1.useState(() => {
|
|
28
28
|
var _a;
|
|
29
|
+
let preparedLayout = null;
|
|
29
30
|
if (initialLayout) {
|
|
30
|
-
|
|
31
|
+
preparedLayout = Helper_1.cloneObject(initialLayout);
|
|
31
32
|
if (((_a = props === null || props === void 0 ? void 0 : props.popupParams) === null || _a === void 0 ? void 0 : _a.action) === 'Clone') {
|
|
32
33
|
preparedLayout.Name = '';
|
|
33
34
|
}
|
|
34
|
-
return preparedLayout;
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
else {
|
|
37
|
+
preparedLayout = ObjectFactory_1.default.CreateEmptyLayout({ Name: '' });
|
|
38
|
+
}
|
|
39
|
+
if (preparedLayout.SuppressAggFuncInHeader === undefined) {
|
|
40
|
+
preparedLayout.SuppressAggFuncInHeader =
|
|
41
|
+
!!adaptable.api.internalApi.getAgGridInstance().suppressAggFuncInHeader;
|
|
42
|
+
}
|
|
43
|
+
return preparedLayout;
|
|
37
44
|
});
|
|
38
45
|
const handleFinish = () => {
|
|
39
46
|
var _a;
|
|
@@ -117,7 +124,7 @@ const LayoutWizard = (props) => {
|
|
|
117
124
|
},
|
|
118
125
|
{
|
|
119
126
|
title: 'Filters',
|
|
120
|
-
details: 'Column Filters',
|
|
127
|
+
details: 'View Column Filters',
|
|
121
128
|
renderSummary: () => React.createElement(FilterSection_1.FilterSectionSummary, null),
|
|
122
129
|
render: () => (React.createElement(rebass_1.Box, { p: 2, style: { height: '100%' } },
|
|
123
130
|
React.createElement(FilterSection_1.FilterSection, { onChange: (newLayout) => setLayout(newLayout) }))),
|
|
@@ -22,7 +22,7 @@ export interface OnePageAdaptableWizardSection<ENTITY> {
|
|
|
22
22
|
isValid?: (data: ENTITY, api: AdaptableApi, context: OnePageAdaptableWizardContextType<ENTITY>) => true | string;
|
|
23
23
|
isVisible?: (data: ENTITY, api: AdaptableApi, context: OnePageAdaptableWizardContextType<ENTITY>) => boolean;
|
|
24
24
|
render: (data: ENTITY, index: number) => React.ReactNode;
|
|
25
|
-
renderSummary?: (data: ENTITY
|
|
25
|
+
renderSummary?: (data: ENTITY) => React.ReactNode;
|
|
26
26
|
}
|
|
27
27
|
export interface OnePageAdaptableWizardProps<ENTITY> {
|
|
28
28
|
moduleInfo: ModuleInfo;
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "12.1.
|
|
1
|
+
declare const _default: "12.1.3";
|
|
2
2
|
export default _default;
|
package/version.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = '12.1.
|
|
3
|
+
exports.default = '12.1.3'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
|