@adaptabletools/adaptable 14.0.1-canary.0 → 14.0.1-canary.2
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 +177 -177
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +14 -7
- package/src/AdaptableOptions/ChartingOptions.d.ts +6 -0
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +1 -1
- package/src/Api/Implementation/AlertApiImpl.js +1 -1
- package/src/PredefinedConfig/Common/Enums.d.ts +0 -9
- package/src/PredefinedConfig/Common/Enums.js +1 -11
- package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +2 -2
- package/src/Strategy/CalculatedColumnModule.js +7 -0
- package/src/Strategy/ChartingModule.js +2 -4
- package/src/Strategy/FormatColumnModule.d.ts +1 -1
- package/src/Strategy/FormatColumnModule.js +11 -3
- package/src/Strategy/StyledColumnModule.js +6 -1
- package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +2 -2
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +3 -0
- package/src/Utilities/Services/Interface/ICalculatedColumnExpressionService.d.ts +2 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.js +11 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +3 -1
- package/src/View/Components/Charting/ChartingStatusBarPopover.js +19 -14
- package/src/View/Components/Charting/ChartingViewPanel.js +2 -67
- package/src/View/Components/Charting/DeleteChartButton.d.ts +1 -0
- package/src/View/Components/Charting/DeleteChartButton.js +1 -1
- package/src/View/Components/Charting/EditChartButton.d.ts +1 -0
- package/src/View/Components/Charting/EditChartButton.js +1 -1
- package/src/View/Components/Charting/useChartState.js +14 -9
- package/src/View/Components/Charting/useChartingElements.d.ts +14 -0
- package/src/View/Components/Charting/useChartingElements.js +90 -0
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +4 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +3 -3
- package/src/View/TeamSharing/SharedEntityObjectView.js +5 -4
- package/src/agGrid/Adaptable.js +9 -4
- package/src/metamodel/adaptable.metamodel.d.ts +27 -2
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.FreeTextColumnSettingsWizardSection = exports.isValidFreeTextColumn = exports.renderFreeTextColumnSummary = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
const react_1 = require("react");
|
|
6
7
|
const rebass_1 = require("rebass");
|
|
7
8
|
const Input_1 = tslib_1.__importDefault(require("../../../components/Input"));
|
|
8
9
|
const ErrorBox_1 = tslib_1.__importDefault(require("../../../components/ErrorBox"));
|
|
9
10
|
const Radio_1 = tslib_1.__importDefault(require("../../../components/Radio"));
|
|
10
11
|
const FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayout"));
|
|
11
12
|
const DropdownButton_1 = tslib_1.__importDefault(require("../../../components/DropdownButton"));
|
|
12
|
-
const react_1 = require("react");
|
|
13
13
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
14
14
|
const AdaptableInput_1 = tslib_1.__importDefault(require("../../Components/AdaptableInput"));
|
|
15
15
|
const CheckBox_1 = require("../../../components/CheckBox");
|
|
@@ -78,10 +78,11 @@ const FreeTextColumnSettingsWizardSection = (props) => {
|
|
|
78
78
|
props.onChange(Object.assign(Object.assign({}, data), { FriendlyName: ColumnName }));
|
|
79
79
|
};
|
|
80
80
|
const handleDataTypeChange = (DataType) => {
|
|
81
|
-
|
|
81
|
+
var _a;
|
|
82
|
+
const newData = Object.assign(Object.assign({}, data), { FreeTextColumnSettings: Object.assign(Object.assign({}, data.FreeTextColumnSettings), { DataType }) });
|
|
82
83
|
delete newData.DefaultValue;
|
|
83
84
|
if (!DataType) {
|
|
84
|
-
|
|
85
|
+
(_a = newData.FreeTextColumnSettings) === null || _a === void 0 ? true : delete _a.DataType;
|
|
85
86
|
}
|
|
86
87
|
props.onChange(newData);
|
|
87
88
|
};
|
|
@@ -29,11 +29,11 @@ const StyledColumnWizard = (props) => {
|
|
|
29
29
|
});
|
|
30
30
|
const dispatch = (0, react_redux_1.useDispatch)();
|
|
31
31
|
const handleFinish = () => {
|
|
32
|
-
if (data) {
|
|
33
|
-
dispatch(StyledColumnRedux.
|
|
32
|
+
if (props.popupParams.action === 'New' || !data) {
|
|
33
|
+
dispatch(StyledColumnRedux.StyledColumnAdd(styledColumn));
|
|
34
34
|
}
|
|
35
35
|
else {
|
|
36
|
-
dispatch(StyledColumnRedux.
|
|
36
|
+
dispatch(StyledColumnRedux.StyledColumnEdit(styledColumn));
|
|
37
37
|
}
|
|
38
38
|
props.onFinishWizard(styledColumn);
|
|
39
39
|
};
|
|
@@ -54,14 +54,15 @@ const getSharedEntityActiveStatusObjectView = (isDependency) => (props) => {
|
|
|
54
54
|
if (isStaleAndActive) {
|
|
55
55
|
statusInfo = (React.createElement(rebass_1.Box, { ml: 1, style: { color: 'var(--ab-color-warn)' } }, ` (Rev. ${newRevision} available)`));
|
|
56
56
|
}
|
|
57
|
-
activeInfo = (React.createElement(React.Fragment, null,
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
activeInfo = activeRevision && (React.createElement(React.Fragment, null,
|
|
58
|
+
activeRevision &&
|
|
59
|
+
`Imported Rev. ${activeRevision} ${isStaleAndActive ? 'is stale' : ''} `,
|
|
60
|
+
' ',
|
|
60
61
|
statusInfo));
|
|
61
62
|
}
|
|
62
63
|
else {
|
|
63
64
|
// snapshot
|
|
64
|
-
activeInfo = React.createElement(React.Fragment, null, `Imported Rev. ${activeRevision}`);
|
|
65
|
+
activeInfo = activeRevision && React.createElement(React.Fragment, null, `Imported Rev. ${activeRevision}`);
|
|
65
66
|
}
|
|
66
67
|
}
|
|
67
68
|
const sharedValue = `by ${sharedEntity.UserName} at ${new Date(sharedEntity.Timestamp).toLocaleString()}`;
|
package/src/agGrid/Adaptable.js
CHANGED
|
@@ -351,7 +351,7 @@ class Adaptable {
|
|
|
351
351
|
// the 'old' constructor which takes an Adaptable adaptable object
|
|
352
352
|
// this is still used internally but should not be used externally as a preference
|
|
353
353
|
async init(adaptableOptions, runtimeConfig, _staticInit) {
|
|
354
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
354
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
355
355
|
if (runtimeConfig) {
|
|
356
356
|
this.supressReact18RenderWarning = !!runtimeConfig.supressReact18RenderWarning;
|
|
357
357
|
if (runtimeConfig.renderReactRoot) {
|
|
@@ -459,6 +459,8 @@ class Adaptable {
|
|
|
459
459
|
abColDefObject: (_e = this.gridOptions.columnTypes.abColDefObject) !== null && _e !== void 0 ? _e : {},
|
|
460
460
|
abColDefCustom: (_f = this.gridOptions.columnTypes.abColDefCustom) !== null && _f !== void 0 ? _f : {},
|
|
461
461
|
abColDefNumberArray: (_g = this.gridOptions.columnTypes.abColDefNumberArray) !== null && _g !== void 0 ? _g : {},
|
|
462
|
+
abColDefTupleNumberArray: (_h = this.gridOptions.columnTypes.abColDefTupleNumberArray) !== null && _h !== void 0 ? _h : {},
|
|
463
|
+
abColDefObjectNumberArray: (_j = this.gridOptions.columnTypes.abColDefObjectNumberArray) !== null && _j !== void 0 ? _j : {},
|
|
462
464
|
});
|
|
463
465
|
if (this.gridOptions.columnTypes.abColDefNumber.cellEditor === undefined) {
|
|
464
466
|
this.gridOptions.columnTypes.abColDefNumber.cellEditor =
|
|
@@ -1442,9 +1444,12 @@ class Adaptable {
|
|
|
1442
1444
|
shouldUpdateHeaders = this.setupColumnHeader(colSetupInfo) || shouldUpdateHeaders;
|
|
1443
1445
|
});
|
|
1444
1446
|
isChanged = isChanged || shouldUpdateHeaders;
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1447
|
+
// this is NOT really needed?!
|
|
1448
|
+
// without it everything seem to still work as expected
|
|
1449
|
+
// and the setLayout() execution time is shorter, so a double win
|
|
1450
|
+
// if (ArrayExtensions.IsNotNullOrEmpty(layout.ColumnFilters)) {
|
|
1451
|
+
// this.gridOptions.api!.onFilterChanged();
|
|
1452
|
+
// }
|
|
1448
1453
|
if (isChanged) {
|
|
1449
1454
|
// it's important we set pivot mode
|
|
1450
1455
|
// before we set column state
|
|
@@ -470,6 +470,11 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
470
470
|
reference?: undefined;
|
|
471
471
|
})[];
|
|
472
472
|
};
|
|
473
|
+
AdaptableFrameworkComponent: {
|
|
474
|
+
name: string;
|
|
475
|
+
kind: string;
|
|
476
|
+
description: string;
|
|
477
|
+
};
|
|
473
478
|
AdaptableIcon: {
|
|
474
479
|
name: string;
|
|
475
480
|
kind: string;
|
|
@@ -1530,12 +1535,19 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
1530
1535
|
name: string;
|
|
1531
1536
|
kind: string;
|
|
1532
1537
|
description: string;
|
|
1533
|
-
properties: {
|
|
1538
|
+
properties: ({
|
|
1534
1539
|
name: string;
|
|
1535
1540
|
kind: string;
|
|
1536
1541
|
description: string;
|
|
1537
1542
|
uiLabel: string;
|
|
1538
|
-
|
|
1543
|
+
isOptional?: undefined;
|
|
1544
|
+
} | {
|
|
1545
|
+
name: string;
|
|
1546
|
+
kind: string;
|
|
1547
|
+
description: string;
|
|
1548
|
+
uiLabel: string;
|
|
1549
|
+
isOptional: boolean;
|
|
1550
|
+
})[];
|
|
1539
1551
|
};
|
|
1540
1552
|
ChartDefinition: {
|
|
1541
1553
|
name: string;
|
|
@@ -2072,6 +2084,19 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
2072
2084
|
name: string;
|
|
2073
2085
|
kind: string;
|
|
2074
2086
|
description: string;
|
|
2087
|
+
properties: ({
|
|
2088
|
+
name: string;
|
|
2089
|
+
kind: string;
|
|
2090
|
+
description: string;
|
|
2091
|
+
uiLabel: string;
|
|
2092
|
+
reference: string;
|
|
2093
|
+
} | {
|
|
2094
|
+
name: string;
|
|
2095
|
+
kind: string;
|
|
2096
|
+
description: string;
|
|
2097
|
+
uiLabel: string;
|
|
2098
|
+
reference?: undefined;
|
|
2099
|
+
})[];
|
|
2075
2100
|
};
|
|
2076
2101
|
CustomSettingsPanel: {
|
|
2077
2102
|
name: string;
|