@adaptabletools/adaptable 18.0.0-canary.30 → 18.0.0-canary.31
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/package.json +1 -1
- package/src/AdaptableOptions/ActionColumnOptions.d.ts +3 -2
- package/src/AdaptableOptions/CustomSortOptions.d.ts +2 -2
- package/src/AdaptableOptions/FormatColumnOptions.d.ts +2 -2
- package/src/AdaptableOptions/PredicateOptions.d.ts +2 -2
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +2 -2
- package/src/Api/FlashingCellApi.d.ts +2 -2
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +2 -2
- package/src/Api/Implementation/ScopeApiImpl.d.ts +26 -26
- package/src/Api/Internal/AlertInternalApi.d.ts +2 -2
- package/src/Api/Internal/FormatColumnInternalApi.d.ts +2 -2
- package/src/Api/Internal/FormatColumnInternalApi.js +18 -7
- package/src/Api/Internal/PredicateInternalApi.d.ts +6 -6
- package/src/Api/Internal/StyledColumnInternalApi.d.ts +2 -2
- package/src/Api/Internal/StyledColumnInternalApi.js +3 -4
- package/src/Api/ScopeApi.d.ts +26 -26
- package/src/PredefinedConfig/AlertState.d.ts +2 -2
- package/src/PredefinedConfig/Common/AdaptableObject.d.ts +4 -4
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +2 -2
- package/src/PredefinedConfig/Common/{AdaptableScope.d.ts → ColumnScope.d.ts} +1 -1
- package/src/PredefinedConfig/Common/RowScope.d.ts +17 -0
- package/src/PredefinedConfig/Common/RowScope.js +1 -0
- package/src/PredefinedConfig/ExportState.d.ts +2 -2
- package/src/PredefinedConfig/FlashingCellState.d.ts +2 -2
- package/src/PredefinedConfig/FormatColumnState.d.ts +7 -8
- package/src/PredefinedConfig/PlusMinusState.d.ts +2 -2
- package/src/PredefinedConfig/ShortcutState.d.ts +2 -2
- package/src/PredefinedConfig/StyledColumnState.d.ts +5 -10
- package/src/Strategy/StyledColumnModule.js +4 -2
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +4 -3
- package/src/Strategy/Utilities/getScopeViewItems.d.ts +2 -2
- package/src/Utilities/ObjectFactory.js +1 -1
- package/src/View/Alert/Utilities/getAvailablePredicates.d.ts +2 -2
- package/src/View/Alert/Utilities/getDefaultAlertDefinition.d.ts +1 -1
- package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicatesEditor.d.ts +3 -3
- package/src/View/Components/EntityRulesEditor/index.d.ts +3 -3
- package/src/View/Components/NewScopeComponent.d.ts +5 -5
- package/src/View/Components/RangesComponent.d.ts +2 -2
- package/src/View/Components/SharedProps/WizardScopeState.d.ts +2 -2
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +4 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.d.ts +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +24 -13
- package/src/View/StyledColumn/Wizard/StyledColumnWizardSettingsSection.js +32 -12
- package/src/agGrid/ActionColumnRenderer.js +41 -4
- package/src/agGrid/AgGridColumnAdapter.js +5 -4
- package/src/agGrid/BadgeRenderer.d.ts +2 -2
- package/src/agGrid/BadgeRenderer.js +21 -13
- package/src/agGrid/PercentBarRenderer.js +0 -1
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +19 -26
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +2 -1
- package/tsconfig.esm.tsbuildinfo +1 -1
- /package/src/PredefinedConfig/Common/{AdaptableScope.js → ColumnScope.js} +0 -0
|
@@ -2,10 +2,7 @@ import { Badge } from '../View/Components/Badge';
|
|
|
2
2
|
import { renderWithAdaptableContext } from '../View/renderWithAdaptableContext';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ROW_SUMMARY_ROW_ID } from '../PredefinedConfig/Common/RowSummary';
|
|
5
|
-
export const getBadgeRendererForColumn = (
|
|
6
|
-
if (!styledColumn.BadgeStyle) {
|
|
7
|
-
return;
|
|
8
|
-
}
|
|
5
|
+
export const getBadgeRendererForColumn = (badgeStyle, abColumn, api) => {
|
|
9
6
|
return class BadgetRenderer {
|
|
10
7
|
getAdaptableInstance(params) {
|
|
11
8
|
const adaptable = params.context.__adaptable;
|
|
@@ -17,14 +14,25 @@ export const getBadgeRendererForColumn = (styledColumn, abColumn, api) => {
|
|
|
17
14
|
const adapatableApi = adaptable.api;
|
|
18
15
|
this.eGui = document.createElement('div');
|
|
19
16
|
this.eGui.className = 'ab-Badge__wrapper';
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
const isGroupedRow = params.node.group;
|
|
18
|
+
const isSummaryRow = (_a = params === null || params === void 0 ? void 0 : params.data) === null || _a === void 0 ? void 0 : _a[ROW_SUMMARY_ROW_ID];
|
|
19
|
+
let shouldRender = true;
|
|
20
|
+
if (isGroupedRow) {
|
|
21
|
+
if ((_b = badgeStyle.RowScope) === null || _b === void 0 ? void 0 : _b.ExcludeGroupedRows) {
|
|
22
|
+
shouldRender = false;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
else if (isSummaryRow) {
|
|
26
|
+
if ((_c = badgeStyle.RowScope) === null || _c === void 0 ? void 0 : _c.ExcludeSummaryRows) {
|
|
27
|
+
shouldRender = false;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
if ((_d = badgeStyle.RowScope) === null || _d === void 0 ? void 0 : _d.ExcludeDataRows) {
|
|
32
|
+
shouldRender = false;
|
|
33
|
+
}
|
|
26
34
|
}
|
|
27
|
-
if (
|
|
35
|
+
if (!shouldRender) {
|
|
28
36
|
const formattedValue = (_g = (_f = (_e = params.formatValue) === null || _e === void 0 ? void 0 : _e.call(params, params.value)) !== null && _f !== void 0 ? _f : params.value) !== null && _g !== void 0 ? _g : '';
|
|
29
37
|
this.eGui.innerHTML = formattedValue;
|
|
30
38
|
return;
|
|
@@ -56,7 +64,7 @@ export const getBadgeRendererForColumn = (styledColumn, abColumn, api) => {
|
|
|
56
64
|
userName: adapatableApi.optionsApi.getUserName(),
|
|
57
65
|
adaptableId: adapatableApi.optionsApi.getAdaptableId(),
|
|
58
66
|
};
|
|
59
|
-
const badge = api.styledColumnApi.internalApi.getApplicableBadge(
|
|
67
|
+
const badge = api.styledColumnApi.internalApi.getApplicableBadge(badgeStyle, predicateDefHandlerContext);
|
|
60
68
|
const isNullValue = formattedValue === '' || formattedValue === null || formattedValue === undefined;
|
|
61
69
|
if (!isNullValue && badge) {
|
|
62
70
|
badgesConfig.push({
|
|
@@ -80,7 +88,7 @@ export const getBadgeRendererForColumn = (styledColumn, abColumn, api) => {
|
|
|
80
88
|
userName: adapatableApi.optionsApi.getUserName(),
|
|
81
89
|
adaptableId: adapatableApi.optionsApi.getAdaptableId(),
|
|
82
90
|
};
|
|
83
|
-
const badge = api.styledColumnApi.internalApi.getApplicableBadge(
|
|
91
|
+
const badge = api.styledColumnApi.internalApi.getApplicableBadge(badgeStyle, predicateDefHandlerContext);
|
|
84
92
|
const isNullValue = formattedValue === '' || formattedValue === null || formattedValue === undefined;
|
|
85
93
|
if (
|
|
86
94
|
// empty values
|
|
@@ -15,7 +15,6 @@ export const getPercentBarRendererForColumn = (styledColumn, abColumn, api) => {
|
|
|
15
15
|
}
|
|
16
16
|
// No longer support showing Percent Bar in Grouped Rows
|
|
17
17
|
if (api.gridApi.isGroupRowNode(params.node)) {
|
|
18
|
-
// if (!styledColumn.IncludeGroupedRows && api.gridApi.isGroupRowNode(params.node)) {
|
|
19
18
|
if (params.value) {
|
|
20
19
|
this.eGui = document.createElement('div');
|
|
21
20
|
this.eGui.append(params.value);
|
package/src/env.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
INFINITE_TABLE_LICENSE_KEY: "StartDate=2021-06-29|EndDate=2030-01-01|Owner=Adaptable|Type=distribution|TS=1624971462479|C=137829811,1004007071,2756196225,1839832928,3994409405,636616862" || '',
|
|
3
|
-
PUBLISH_TIMESTAMP:
|
|
4
|
-
VERSION: "18.0.0-canary.
|
|
3
|
+
PUBLISH_TIMESTAMP: 1712779308766 || Date.now(),
|
|
4
|
+
VERSION: "18.0.0-canary.31" || '--current-version--',
|
|
5
5
|
};
|
|
@@ -897,11 +897,6 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
897
897
|
desc: string;
|
|
898
898
|
}[];
|
|
899
899
|
};
|
|
900
|
-
AdaptableScope: {
|
|
901
|
-
name: string;
|
|
902
|
-
kind: string;
|
|
903
|
-
desc: string;
|
|
904
|
-
};
|
|
905
900
|
AdaptableSettingsPanel: {
|
|
906
901
|
name: string;
|
|
907
902
|
kind: string;
|
|
@@ -1328,12 +1323,19 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
1328
1323
|
name: string;
|
|
1329
1324
|
kind: string;
|
|
1330
1325
|
desc: string;
|
|
1331
|
-
props: {
|
|
1326
|
+
props: ({
|
|
1332
1327
|
name: string;
|
|
1333
1328
|
kind: string;
|
|
1334
1329
|
desc: string;
|
|
1335
1330
|
isOpt: boolean;
|
|
1336
|
-
|
|
1331
|
+
ref?: undefined;
|
|
1332
|
+
} | {
|
|
1333
|
+
name: string;
|
|
1334
|
+
kind: string;
|
|
1335
|
+
desc: string;
|
|
1336
|
+
isOpt: boolean;
|
|
1337
|
+
ref: string;
|
|
1338
|
+
})[];
|
|
1337
1339
|
};
|
|
1338
1340
|
BadgeStyleDefinition: {
|
|
1339
1341
|
name: string;
|
|
@@ -1919,6 +1921,11 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
1919
1921
|
noCode?: undefined;
|
|
1920
1922
|
})[];
|
|
1921
1923
|
};
|
|
1924
|
+
ColumnScope: {
|
|
1925
|
+
name: string;
|
|
1926
|
+
kind: string;
|
|
1927
|
+
desc: string;
|
|
1928
|
+
};
|
|
1922
1929
|
ColumnSort: {
|
|
1923
1930
|
name: string;
|
|
1924
1931
|
kind: string;
|
|
@@ -3379,28 +3386,18 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
3379
3386
|
desc: string;
|
|
3380
3387
|
isOpt: boolean;
|
|
3381
3388
|
ref?: undefined;
|
|
3382
|
-
defVal?: undefined;
|
|
3383
3389
|
} | {
|
|
3384
3390
|
name: string;
|
|
3385
3391
|
kind: string;
|
|
3386
3392
|
desc: string;
|
|
3387
3393
|
isOpt: boolean;
|
|
3388
3394
|
ref: string;
|
|
3389
|
-
defVal?: undefined;
|
|
3390
|
-
} | {
|
|
3391
|
-
name: string;
|
|
3392
|
-
kind: string;
|
|
3393
|
-
desc: string;
|
|
3394
|
-
isOpt: boolean;
|
|
3395
|
-
defVal: string;
|
|
3396
|
-
ref?: undefined;
|
|
3397
3395
|
} | {
|
|
3398
3396
|
name: string;
|
|
3399
3397
|
kind: string;
|
|
3400
3398
|
desc: string;
|
|
3401
3399
|
ref: string;
|
|
3402
3400
|
isOpt?: undefined;
|
|
3403
|
-
defVal?: undefined;
|
|
3404
3401
|
})[];
|
|
3405
3402
|
};
|
|
3406
3403
|
FormatColumnOptions: {
|
|
@@ -4748,6 +4745,11 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
4748
4745
|
isOpt: boolean;
|
|
4749
4746
|
}[];
|
|
4750
4747
|
};
|
|
4748
|
+
RowScope: {
|
|
4749
|
+
name: string;
|
|
4750
|
+
kind: string;
|
|
4751
|
+
desc: string;
|
|
4752
|
+
};
|
|
4751
4753
|
RowsHighlightInfo: {
|
|
4752
4754
|
name: string;
|
|
4753
4755
|
kind: string;
|
|
@@ -5092,21 +5094,12 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
5092
5094
|
desc: string;
|
|
5093
5095
|
isOpt: boolean;
|
|
5094
5096
|
ref: string;
|
|
5095
|
-
defVal?: undefined;
|
|
5096
5097
|
} | {
|
|
5097
5098
|
name: string;
|
|
5098
5099
|
kind: string;
|
|
5099
5100
|
desc: string;
|
|
5100
5101
|
isOpt?: undefined;
|
|
5101
5102
|
ref?: undefined;
|
|
5102
|
-
defVal?: undefined;
|
|
5103
|
-
} | {
|
|
5104
|
-
name: string;
|
|
5105
|
-
kind: string;
|
|
5106
|
-
desc: string;
|
|
5107
|
-
isOpt: boolean;
|
|
5108
|
-
defVal: string;
|
|
5109
|
-
ref?: undefined;
|
|
5110
5103
|
})[];
|
|
5111
5104
|
};
|
|
5112
5105
|
StyledColumnState: {
|