@adaptabletools/adaptable-cjs 22.0.0-canary.0 → 22.0.0-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/README.md +4 -6
- package/index.css +3 -14
- package/index.css.map +1 -1
- package/package.json +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +9 -0
- package/src/AdaptableOptions/AdaptablePlugin.js +6 -1
- package/src/AdaptableOptions/ExportOptions.d.ts +1 -2
- package/src/AdaptableOptions/FilterOptions.d.ts +3 -0
- package/src/AdaptableState/Common/AdaptableColumn.d.ts +6 -0
- package/src/AdaptableState/Common/RowDataChangedInfo.d.ts +3 -0
- package/src/AdaptableState/InitialState.d.ts +1 -1
- package/src/AdaptableState/Selection/GridCell.d.ts +9 -0
- package/src/Api/GridApi.d.ts +14 -0
- package/src/Api/Implementation/ActionColumnApiImpl.js +1 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +52 -0
- package/src/Api/Implementation/AlertApiImpl.js +1 -0
- package/src/Api/Implementation/ApiBase.js +1 -0
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +1 -0
- package/src/Api/Implementation/ChartingApiImpl.js +4 -0
- package/src/Api/Implementation/ColumnApiImpl.js +1 -0
- package/src/Api/Implementation/ColumnFilterApiImpl.js +1 -0
- package/src/Api/Implementation/CommentsApiImpl.js +1 -0
- package/src/Api/Implementation/CustomSortApiImpl.js +1 -0
- package/src/Api/Implementation/DashboardApiImpl.js +1 -0
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +12 -15
- package/src/Api/Implementation/DataImportApiImpl.js +1 -0
- package/src/Api/Implementation/DataSetApiImpl.js +1 -0
- package/src/Api/Implementation/EntitlementApiImpl.js +1 -0
- package/src/Api/Implementation/EventApiImpl.js +16 -14
- package/src/Api/Implementation/ExportApiImpl.js +1 -0
- package/src/Api/Implementation/ExpressionApiImpl.js +1 -0
- package/src/Api/Implementation/Fdc3ApiImpl.js +1 -0
- package/src/Api/Implementation/FilterApiImpl.js +3 -0
- package/src/Api/Implementation/FlashingCellApiImpl.js +1 -0
- package/src/Api/Implementation/FormatColumnApiImpl.js +1 -0
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -0
- package/src/Api/Implementation/GridApiImpl.d.ts +9 -0
- package/src/Api/Implementation/GridApiImpl.js +17 -0
- package/src/Api/Implementation/GridFilterApiImpl.js +1 -0
- package/src/Api/Implementation/LayoutApiImpl.js +1 -0
- package/src/Api/Implementation/NamedQueryApiImpl.js +1 -0
- package/src/Api/Implementation/NoteApiImpl.js +1 -0
- package/src/Api/Implementation/PredicateApiImpl.js +1 -0
- package/src/Api/Implementation/RowFormApiImpl.js +1 -0
- package/src/Api/Implementation/StyledColumnApiImpl.js +1 -0
- package/src/Api/Implementation/SystemStatusApiImpl.js +2 -0
- package/src/Api/Implementation/TeamSharingApiImpl.js +1 -0
- package/src/Api/Implementation/ThemeApiImpl.js +1 -0
- package/src/Api/Implementation/UserInterfaceApiImpl.js +2 -1
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +6 -0
- package/src/Redux/Store/AdaptableStore.js +57 -50
- package/src/Strategy/AdaptableModuleBase.js +4 -0
- package/src/Strategy/AlertModule.js +1 -0
- package/src/Strategy/CalculatedColumnModule.js +1 -0
- package/src/Strategy/CellSummaryModule.js +1 -1
- package/src/Strategy/DataChangeHistoryModule.js +1 -0
- package/src/Strategy/FlashingCellModule.js +1 -0
- package/src/Strategy/FreeTextColumnModule.js +1 -0
- package/src/Strategy/LayoutModule.js +2 -1
- package/src/Strategy/PlusMinusModule.js +2 -0
- package/src/Strategy/ScheduleModule.js +1 -0
- package/src/Strategy/ShortcutModule.js +2 -0
- package/src/Strategy/TeamSharingModule.js +10 -10
- package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +18 -17
- package/src/Utilities/Constants/DocumentationLinkConstants.js +19 -18
- package/src/Utilities/ExpressionFunctions/deepMap.js +31 -31
- package/src/Utilities/MenuItem.js +18 -0
- package/src/Utilities/Services/AggregatedScalarLiveValue.js +8 -0
- package/src/Utilities/Services/AlertService.js +6 -4
- package/src/Utilities/Services/AnnotationsService.js +3 -0
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +2 -1
- package/src/Utilities/Services/ChartingService.js +1 -0
- package/src/Utilities/Services/DataService.js +10 -2
- package/src/Utilities/Services/Fdc3Service.js +5 -3
- package/src/Utilities/Services/FlashingCellService.js +5 -0
- package/src/Utilities/Services/LicenseService/index.js +1 -1
- package/src/Utilities/Services/MetamodelService.js +2 -2
- package/src/Utilities/Services/ModuleService.js +38 -38
- package/src/Utilities/Services/QueryLanguageService.js +6 -5
- package/src/Utilities/Services/RowFormService.js +1 -0
- package/src/Utilities/Services/RowSummaryService.js +10 -7
- package/src/Utilities/Services/TeamSharingService.js +3 -1
- package/src/Utilities/Services/ThemeService.js +11 -9
- package/src/Utilities/Services/ValidationService.js +1 -0
- package/src/Utilities/createAgStatusPanelComponent.js +3 -0
- package/src/View/BulkUpdate/BulkUpdateViewPanel.js +1 -0
- package/src/View/CalculatedColumn/CalculatedColumnSummary.js +8 -8
- package/src/View/CellSummary/CellSummaryViewPanel.js +1 -0
- package/src/View/Components/Buttons/ButtonBase/index.js +9 -9
- package/src/View/Components/Buttons/EntityListActionButtons.js +18 -18
- package/src/View/Components/ColumnFilter/components/FloatingFilterValues.js +1 -1
- package/src/View/Components/ExpressionWizard.js +5 -5
- package/src/View/Components/Panels/PanelDashboard/index.js +8 -8
- package/src/View/Components/Panels/PanelToolPanel/index.js +7 -7
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +2 -0
- package/src/View/CustomSort/CustomSortSummary.js +13 -13
- package/src/View/FormatColumn/FormatColumnSummary.js +13 -13
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +13 -13
- package/src/View/SmartEdit/SmartEditViewPanel.js +1 -0
- package/src/View/Theme/ThemePopup.js +13 -16
- package/src/agGrid/Adaptable.js +4 -0
- package/src/agGrid/AdaptableAgGrid.d.ts +9 -0
- package/src/agGrid/AdaptableAgGrid.js +160 -37
- package/src/agGrid/AdaptableFilterHandler.js +4 -0
- package/src/agGrid/AdaptableLogger.d.ts +3 -0
- package/src/agGrid/AdaptableLogger.js +10 -0
- package/src/agGrid/AgGridAdapter.js +11 -1
- package/src/agGrid/AgGridColumnAdapter.js +2 -0
- package/src/agGrid/AgGridExportAdapter.js +10 -9
- package/src/agGrid/AgGridFilterAdapter.js +4 -0
- package/src/agGrid/AgGridFloatingFilterAdapter.js +3 -0
- package/src/agGrid/AgGridMenuAdapter.js +1 -0
- package/src/agGrid/AgGridModulesAdapter.js +2 -1
- package/src/agGrid/AgGridOptionsService.js +3 -0
- package/src/agGrid/AgGridThemeAdapter.js +2 -0
- package/src/agGrid/cellRenderers/ActionColumnRenderer.js +5 -0
- package/src/agGrid/cellRenderers/BadgeRenderer.js +2 -0
- package/src/agGrid/cellRenderers/PercentBarRenderer.js +1 -0
- package/src/agGrid/editors/AdaptableDateEditor/index.js +6 -3
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +16 -12
- package/src/agGrid/editors/AdaptablePercentageEditor/index.js +17 -13
- package/src/agGrid/index.d.ts +6 -0
- package/src/agGrid/index.js +6 -0
- package/src/components/Datepicker/index.js +1 -1
- package/src/components/overlayBaseZIndex.js +1 -1
- package/src/components/utils/useContainerScrollObserver/index.js +17 -14
- package/src/devTools/index.js +54 -53
- package/src/env.js +2 -2
- package/src/layout-manager/src/LMEmitter.js +11 -11
- package/src/layout-manager/src/LMLogger.js +7 -0
- package/src/layout-manager/src/index.js +56 -51
- package/src/metamodel/adaptable.metamodel.d.ts +57 -0
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/migration/AdaptableUpgradeHelper.js +3 -0
- package/src/migration/VersionUpgrade.js +1 -0
- package/src/migration/VersionUpgrade17.js +1 -2
- package/src/parser/src/ExpressionEvaluationError.js +1 -0
- package/tsconfig.cjs.tsbuildinfo +1 -1
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const Helper_1 = tslib_1.__importDefault(require("../Helpers/Helper"));
|
|
6
6
|
const DocumentationLinkConstants_1 = require("../Constants/DocumentationLinkConstants");
|
|
7
7
|
class ModuleService {
|
|
8
|
+
adaptableApi;
|
|
8
9
|
constructor(adaptableApi) {
|
|
9
10
|
this.adaptableApi = adaptableApi;
|
|
10
11
|
this.adaptableApi = adaptableApi;
|
|
@@ -109,84 +110,83 @@ class ModuleService {
|
|
|
109
110
|
}
|
|
110
111
|
getModuleDocumentationPageByModule(adaptableModule) {
|
|
111
112
|
let url = `${DocumentationLinkConstants_1.HOST_URL_DOCS}/`;
|
|
112
|
-
let learnUrl = url + 'guide/';
|
|
113
113
|
switch (adaptableModule) {
|
|
114
114
|
case 'Alert':
|
|
115
|
-
return
|
|
115
|
+
return url + 'handbook-alerting';
|
|
116
116
|
case 'BulkUpdate':
|
|
117
117
|
return url + 'handbook-editing-bulk-update';
|
|
118
118
|
case 'CalculatedColumn':
|
|
119
|
-
return
|
|
119
|
+
return url + 'handbook-calculated-column';
|
|
120
120
|
case 'CellSummary':
|
|
121
|
-
return
|
|
121
|
+
return url + 'handbook-summarising';
|
|
122
122
|
case 'Charting':
|
|
123
|
-
return
|
|
123
|
+
return url + 'handbook-charts';
|
|
124
124
|
case 'ColumnFilter':
|
|
125
|
-
return
|
|
125
|
+
return url + 'handbook-column-filter';
|
|
126
126
|
case 'ColumnInfo':
|
|
127
|
-
return
|
|
127
|
+
return url + 'dev-guide-column-grid-column-info';
|
|
128
128
|
case 'Comment':
|
|
129
|
-
return
|
|
129
|
+
return url + 'handbook-comments';
|
|
130
130
|
case 'CustomSort':
|
|
131
|
-
return
|
|
131
|
+
return url + 'handbook-custom-sorting';
|
|
132
132
|
case 'Dashboard':
|
|
133
|
-
return
|
|
133
|
+
return url + 'ui-dashboard';
|
|
134
134
|
case 'DataChangeHistory':
|
|
135
|
-
return
|
|
135
|
+
return url + 'handbook-monitoring-data-change-history';
|
|
136
136
|
case 'DataImport':
|
|
137
|
-
return
|
|
137
|
+
return url + 'handbook-importing';
|
|
138
138
|
case 'DataSet':
|
|
139
|
-
return
|
|
139
|
+
return url + 'handbook-data-sets';
|
|
140
140
|
case 'Export':
|
|
141
|
-
return
|
|
141
|
+
return url + 'handbook-exporting';
|
|
142
142
|
case 'Fdc3':
|
|
143
|
-
return
|
|
143
|
+
return url + 'handbook-fdc3';
|
|
144
144
|
case 'FlashingCell':
|
|
145
|
-
return
|
|
145
|
+
return url + 'handbook-flashing-cell';
|
|
146
146
|
case 'FormatColumn':
|
|
147
|
-
return
|
|
147
|
+
return url + 'handbook-column-formatting';
|
|
148
148
|
case 'FreeTextColumn':
|
|
149
|
-
return
|
|
149
|
+
return url + 'handbook-freetext-column';
|
|
150
150
|
case 'GridFilter':
|
|
151
|
-
return
|
|
151
|
+
return url + 'handbook-grid-filter';
|
|
152
152
|
case 'GridInfo':
|
|
153
|
-
return
|
|
153
|
+
return url + 'dev-guide-column-grid-column-info';
|
|
154
154
|
case 'Layout':
|
|
155
|
-
return
|
|
155
|
+
return url + 'handbook-layouts';
|
|
156
156
|
case 'NamedQuery':
|
|
157
|
-
return
|
|
157
|
+
return url + 'handbook-named-queries';
|
|
158
158
|
case 'Note':
|
|
159
|
-
return
|
|
159
|
+
return url + 'handbook-notes';
|
|
160
160
|
case 'PlusMinus':
|
|
161
|
-
return
|
|
161
|
+
return url + 'handbook-editing-plus-minus';
|
|
162
162
|
case 'QuickSearch':
|
|
163
|
-
return
|
|
163
|
+
return url + 'handbook-quick-search';
|
|
164
164
|
case 'Schedule':
|
|
165
|
-
return
|
|
165
|
+
return url + 'handbook-scheduling';
|
|
166
166
|
case 'SettingsPanel':
|
|
167
|
-
return
|
|
167
|
+
return url + 'ui-settings-panel';
|
|
168
168
|
case 'Shortcut':
|
|
169
|
-
return
|
|
169
|
+
return url + 'handbook-editing-shortcut';
|
|
170
170
|
case 'SmartEdit':
|
|
171
|
-
return
|
|
171
|
+
return url + 'handbook-editing-smart-edit';
|
|
172
172
|
case 'StateManagement':
|
|
173
|
-
return
|
|
173
|
+
return url + 'dev-guide-adaptable-state-management';
|
|
174
174
|
case 'StatusBar':
|
|
175
|
-
return
|
|
175
|
+
return url + 'ui-status-bar';
|
|
176
176
|
case 'StyledColumn':
|
|
177
|
-
return
|
|
177
|
+
return url + 'handbook-styled-column-overview';
|
|
178
178
|
case 'SystemStatus':
|
|
179
|
-
return
|
|
179
|
+
return url + 'handbook-system-status-message';
|
|
180
180
|
case 'TeamSharing':
|
|
181
|
-
return
|
|
181
|
+
return url + 'handbook-team-sharing';
|
|
182
182
|
case 'Theme':
|
|
183
|
-
return
|
|
183
|
+
return url + 'handbook-theming';
|
|
184
184
|
case 'ToolPanel':
|
|
185
|
-
return
|
|
185
|
+
return url + 'ui-tool-panel';
|
|
186
186
|
case 'IPushPull':
|
|
187
|
-
return
|
|
187
|
+
return url + 'integrations-ipushpull';
|
|
188
188
|
case 'OpenFin':
|
|
189
|
-
return
|
|
189
|
+
return url + 'integrations-openfin';
|
|
190
190
|
default:
|
|
191
191
|
return 'good';
|
|
192
192
|
}
|
|
@@ -13,13 +13,14 @@ const scalarExpressionFunctions_1 = require("../ExpressionFunctions/scalarExpres
|
|
|
13
13
|
const TypeExtensions_1 = require("../Extensions/TypeExtensions");
|
|
14
14
|
const AggregatedScalarLiveValue_1 = require("./AggregatedScalarLiveValue");
|
|
15
15
|
class QueryLanguageService {
|
|
16
|
+
adaptableApi;
|
|
17
|
+
cacheBooleanValidation = new Map();
|
|
18
|
+
cacheObservableValidation = new Map();
|
|
19
|
+
cacheAggregatedBooleanValidation = new Map();
|
|
20
|
+
cacheAggregatedScalarValidation = new Map();
|
|
21
|
+
cacheModuleSpecificExpressionFunctions = new Map();
|
|
16
22
|
constructor(adaptableApi) {
|
|
17
23
|
this.adaptableApi = adaptableApi;
|
|
18
|
-
this.cacheBooleanValidation = new Map();
|
|
19
|
-
this.cacheObservableValidation = new Map();
|
|
20
|
-
this.cacheAggregatedBooleanValidation = new Map();
|
|
21
|
-
this.cacheAggregatedScalarValidation = new Map();
|
|
22
|
-
this.cacheModuleSpecificExpressionFunctions = new Map();
|
|
23
24
|
}
|
|
24
25
|
evaluateBooleanExpression(expression, module, rowNode, evalContext) {
|
|
25
26
|
if (expression == undefined) {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RowFormService = void 0;
|
|
4
4
|
class RowFormService {
|
|
5
|
+
adaptableApi;
|
|
5
6
|
constructor(adaptableApi) {
|
|
6
7
|
this.adaptableApi = adaptableApi;
|
|
7
8
|
if (adaptableApi.optionsApi.getRowFormOptions().autoHandle) {
|
|
@@ -14,15 +14,12 @@ const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual"));
|
|
|
14
14
|
* The logic is extracted here to make it easier to follow
|
|
15
15
|
*/
|
|
16
16
|
class RowSummaryService {
|
|
17
|
+
api;
|
|
18
|
+
cachedCellSummary = new Map();
|
|
19
|
+
previousRowSummaries;
|
|
20
|
+
previousLayout;
|
|
17
21
|
constructor(api) {
|
|
18
22
|
this.api = api;
|
|
19
|
-
this.cachedCellSummary = new Map();
|
|
20
|
-
this._throttleAcumulatedColumnsThatChanged = new Set();
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @param colId optional to evaluate only one column
|
|
24
|
-
*/
|
|
25
|
-
this._throttledEvaluateRowSummary = (0, throttle_1.default)(this.evaluateRowSummary, 300);
|
|
26
23
|
}
|
|
27
24
|
onAdaptableReady() {
|
|
28
25
|
this.rowSummariesSubscriptions();
|
|
@@ -70,12 +67,18 @@ class RowSummaryService {
|
|
|
70
67
|
this.throttledEvaluateRowSummary();
|
|
71
68
|
});
|
|
72
69
|
}
|
|
70
|
+
_throttleAcumulatedColumnsThatChanged = new Set();
|
|
73
71
|
throttledEvaluateRowSummary(reason) {
|
|
74
72
|
if (reason) {
|
|
75
73
|
reason.columnIds.forEach((col) => this._throttleAcumulatedColumnsThatChanged.add(col));
|
|
76
74
|
}
|
|
77
75
|
this._throttledEvaluateRowSummary(reason);
|
|
78
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @param colId optional to evaluate only one column
|
|
80
|
+
*/
|
|
81
|
+
_throttledEvaluateRowSummary = (0, throttle_1.default)(this.evaluateRowSummary, 300);
|
|
79
82
|
evaluateRowSummary(reason) {
|
|
80
83
|
if (this._throttleAcumulatedColumnsThatChanged.size > 0) {
|
|
81
84
|
const columnIds = Array.from(this._throttleAcumulatedColumnsThatChanged.values());
|
|
@@ -5,9 +5,11 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const Uuid_1 = require("../../AdaptableState/Uuid");
|
|
6
6
|
const ObjectFactory_1 = tslib_1.__importDefault(require("../ObjectFactory"));
|
|
7
7
|
class TeamSharingService {
|
|
8
|
+
adaptableApi;
|
|
9
|
+
dismissedNotifications = [];
|
|
10
|
+
updateCheckTimerId;
|
|
8
11
|
constructor(adaptableApi) {
|
|
9
12
|
this.adaptableApi = adaptableApi;
|
|
10
|
-
this.dismissedNotifications = [];
|
|
11
13
|
const teamSharingOptions = adaptableApi.optionsApi.getTeamSharingOptions();
|
|
12
14
|
if (teamSharingOptions.updateInterval > 0) {
|
|
13
15
|
// convert minutes to millis
|
|
@@ -2,16 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ThemeService = void 0;
|
|
4
4
|
class ThemeService {
|
|
5
|
+
api;
|
|
6
|
+
unsubscribe = () => { };
|
|
7
|
+
styleSheetObject;
|
|
5
8
|
constructor(api) {
|
|
6
|
-
this.unsubscribe = () => { };
|
|
7
|
-
this.onThemeChanged = () => {
|
|
8
|
-
let currentTheme = this.api.themeApi.getCurrentThemeObject();
|
|
9
|
-
currentTheme = this.mapOsTheme(currentTheme);
|
|
10
|
-
this.applyNewThemeVariables(currentTheme);
|
|
11
|
-
// this needs to be called after variables are set
|
|
12
|
-
// as it may show the warning for a custom/runtime theme
|
|
13
|
-
this.showMissingThemeFiles(currentTheme);
|
|
14
|
-
};
|
|
15
9
|
this.api = api;
|
|
16
10
|
this.subscribe();
|
|
17
11
|
if (!this.styleSheetObject) {
|
|
@@ -36,6 +30,14 @@ class ThemeService {
|
|
|
36
30
|
prefferedColorSchemeUnsubscribe();
|
|
37
31
|
};
|
|
38
32
|
}
|
|
33
|
+
onThemeChanged = () => {
|
|
34
|
+
let currentTheme = this.api.themeApi.getCurrentThemeObject();
|
|
35
|
+
currentTheme = this.mapOsTheme(currentTheme);
|
|
36
|
+
this.applyNewThemeVariables(currentTheme);
|
|
37
|
+
// this needs to be called after variables are set
|
|
38
|
+
// as it may show the warning for a custom/runtime theme
|
|
39
|
+
this.showMissingThemeFiles(currentTheme);
|
|
40
|
+
};
|
|
39
41
|
applyNewThemeVariables(theme) {
|
|
40
42
|
const variables = theme.CSSVariables;
|
|
41
43
|
if (!variables || Object.keys(variables).length === 0) {
|
|
@@ -8,6 +8,7 @@ const ModuleConstants_1 = require("../Constants/ModuleConstants");
|
|
|
8
8
|
const GeneralConstants_1 = require("../Constants/GeneralConstants");
|
|
9
9
|
const AdaptableLogger_1 = require("../../agGrid/AdaptableLogger");
|
|
10
10
|
class ValidationService {
|
|
11
|
+
adaptableApi;
|
|
11
12
|
constructor(adaptableApi) {
|
|
12
13
|
this.adaptableApi = adaptableApi;
|
|
13
14
|
this.adaptableApi = adaptableApi;
|
|
@@ -17,6 +17,7 @@ const react_redux_1 = require("react-redux");
|
|
|
17
17
|
const Flex_1 = require("../../components/Flex");
|
|
18
18
|
const clsx_1 = tslib_1.__importDefault(require("clsx"));
|
|
19
19
|
class BulkUpdateViewPanelComponent extends React.Component {
|
|
20
|
+
cleanupEvent;
|
|
20
21
|
constructor(props) {
|
|
21
22
|
super(props);
|
|
22
23
|
this.state = {
|
|
@@ -13,14 +13,6 @@ const CalculatedColumnWizard_1 = require("./Wizard/CalculatedColumnWizard");
|
|
|
13
13
|
class CalculatedColumnSummaryComponent extends React.Component {
|
|
14
14
|
constructor(props) {
|
|
15
15
|
super(props);
|
|
16
|
-
this.onFinishWizard = (calculatedColumn) => {
|
|
17
|
-
this.props.onEdit(calculatedColumn);
|
|
18
|
-
this.setState({
|
|
19
|
-
editedAdaptableObject: null,
|
|
20
|
-
wizardStartIndex: 0,
|
|
21
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
16
|
this.state = UIHelper_1.UIHelper.getEmptyConfigState();
|
|
25
17
|
}
|
|
26
18
|
render() {
|
|
@@ -48,6 +40,14 @@ class CalculatedColumnSummaryComponent extends React.Component {
|
|
|
48
40
|
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
49
41
|
});
|
|
50
42
|
}
|
|
43
|
+
onFinishWizard = (calculatedColumn) => {
|
|
44
|
+
this.props.onEdit(calculatedColumn);
|
|
45
|
+
this.setState({
|
|
46
|
+
editedAdaptableObject: null,
|
|
47
|
+
wizardStartIndex: 0,
|
|
48
|
+
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
51
|
}
|
|
52
52
|
exports.CalculatedColumnSummaryComponent = CalculatedColumnSummaryComponent;
|
|
53
53
|
function mapStateToProps(state) {
|
|
@@ -14,6 +14,7 @@ const react_redux_1 = require("react-redux");
|
|
|
14
14
|
const Select_1 = require("../../components/Select");
|
|
15
15
|
const Flex_1 = require("../../components/Flex");
|
|
16
16
|
class CellSummaryViewPanelComponent extends React.Component {
|
|
17
|
+
cleanupEvent;
|
|
17
18
|
constructor(props) {
|
|
18
19
|
super(props);
|
|
19
20
|
}
|
|
@@ -11,6 +11,15 @@ const Glyphicon = ({ glyph, style }) => {
|
|
|
11
11
|
};
|
|
12
12
|
const baseClassName = 'ab-Button twa:text-current';
|
|
13
13
|
class ButtonBase extends React.Component {
|
|
14
|
+
static defaultProps = {
|
|
15
|
+
overrideDisableButton: false,
|
|
16
|
+
toolTipAndText: '',
|
|
17
|
+
glyph: '',
|
|
18
|
+
displayMode: 'Glyph+Text',
|
|
19
|
+
transformGlyph: false,
|
|
20
|
+
accessLevel: 'Full',
|
|
21
|
+
showDefaultStyle: false,
|
|
22
|
+
};
|
|
14
23
|
render() {
|
|
15
24
|
let isDisabled;
|
|
16
25
|
isDisabled = this.props.accessLevel == 'Hidden';
|
|
@@ -64,12 +73,3 @@ class ButtonBase extends React.Component {
|
|
|
64
73
|
}
|
|
65
74
|
}
|
|
66
75
|
exports.ButtonBase = ButtonBase;
|
|
67
|
-
ButtonBase.defaultProps = {
|
|
68
|
-
overrideDisableButton: false,
|
|
69
|
-
toolTipAndText: '',
|
|
70
|
-
glyph: '',
|
|
71
|
-
displayMode: 'Glyph+Text',
|
|
72
|
-
transformGlyph: false,
|
|
73
|
-
accessLevel: 'Full',
|
|
74
|
-
showDefaultStyle: false,
|
|
75
|
-
};
|
|
@@ -14,6 +14,24 @@ const stopPropagation = (e) => {
|
|
|
14
14
|
e.stopPropagation();
|
|
15
15
|
};
|
|
16
16
|
class EntityListActionButtons extends React.Component {
|
|
17
|
+
static defaultProps = {
|
|
18
|
+
// Adaptable: null,
|
|
19
|
+
suspendableObject: null,
|
|
20
|
+
showEdit: true,
|
|
21
|
+
showDelete: true,
|
|
22
|
+
showShare: false,
|
|
23
|
+
showSuspend: false,
|
|
24
|
+
overrideDisableEdit: false,
|
|
25
|
+
overrideDisableDelete: false,
|
|
26
|
+
overrideDisableClone: false,
|
|
27
|
+
overrideDisableShare: false,
|
|
28
|
+
confirmDeleteAction: null,
|
|
29
|
+
entityType: '',
|
|
30
|
+
accessLevel: 'Full',
|
|
31
|
+
editSize: 'xsmall',
|
|
32
|
+
deleteSize: 'xsmall',
|
|
33
|
+
shareSize: 'xsmall',
|
|
34
|
+
};
|
|
17
35
|
render() {
|
|
18
36
|
const { justifyContent } = this.props;
|
|
19
37
|
const justifyContentClassName = (0, clsx_1.default)({
|
|
@@ -30,21 +48,3 @@ class EntityListActionButtons extends React.Component {
|
|
|
30
48
|
}
|
|
31
49
|
}
|
|
32
50
|
exports.EntityListActionButtons = EntityListActionButtons;
|
|
33
|
-
EntityListActionButtons.defaultProps = {
|
|
34
|
-
// Adaptable: null,
|
|
35
|
-
suspendableObject: null,
|
|
36
|
-
showEdit: true,
|
|
37
|
-
showDelete: true,
|
|
38
|
-
showShare: false,
|
|
39
|
-
showSuspend: false,
|
|
40
|
-
overrideDisableEdit: false,
|
|
41
|
-
overrideDisableDelete: false,
|
|
42
|
-
overrideDisableClone: false,
|
|
43
|
-
overrideDisableShare: false,
|
|
44
|
-
confirmDeleteAction: null,
|
|
45
|
-
entityType: '',
|
|
46
|
-
accessLevel: 'Full',
|
|
47
|
-
editSize: 'xsmall',
|
|
48
|
-
deleteSize: 'xsmall',
|
|
49
|
-
shareSize: 'xsmall',
|
|
50
|
-
};
|
|
@@ -209,7 +209,7 @@ const FloatingFilterValues = (props) => {
|
|
|
209
209
|
...(props.value?.length
|
|
210
210
|
? {
|
|
211
211
|
valueContainer: {
|
|
212
|
-
fontWeight: 'var(--ab-cmp-
|
|
212
|
+
fontWeight: 'var(--ab-cmp-floatingfilter-selected-options-text__font-weight)',
|
|
213
213
|
},
|
|
214
214
|
}
|
|
215
215
|
: {}),
|
|
@@ -13,11 +13,6 @@ const Flex_1 = require("../../components/Flex");
|
|
|
13
13
|
class ExpressionWizard extends React.Component {
|
|
14
14
|
constructor(props) {
|
|
15
15
|
super(props);
|
|
16
|
-
this.handleCustomExpressionChange = (expression) => {
|
|
17
|
-
this.setState({
|
|
18
|
-
expression,
|
|
19
|
-
}, () => this.props.updateGoBackState());
|
|
20
|
-
};
|
|
21
16
|
this.state = {
|
|
22
17
|
// this is realy horrible but its only way to use the Expression Wizard for both Report (that has Query) and Format Column (that has Rule)
|
|
23
18
|
// once we move to the new Wizard we can remove this monstrosity
|
|
@@ -47,6 +42,11 @@ class ExpressionWizard extends React.Component {
|
|
|
47
42
|
.getQueryLanguageService()
|
|
48
43
|
.validateBoolean(this.state.expression, ModuleConstants_1.NamedQueryModuleId).isValid);
|
|
49
44
|
}
|
|
45
|
+
handleCustomExpressionChange = (expression) => {
|
|
46
|
+
this.setState({
|
|
47
|
+
expression,
|
|
48
|
+
}, () => this.props.updateGoBackState());
|
|
49
|
+
};
|
|
50
50
|
canNext() {
|
|
51
51
|
if (this.isValidExpression() == false) {
|
|
52
52
|
return false;
|
|
@@ -5,17 +5,17 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const Dashboard_1 = require("../../../../components/Dashboard");
|
|
7
7
|
class PanelDashboard extends React.Component {
|
|
8
|
+
static defaultProps = {
|
|
9
|
+
showConfigureActionButton: true,
|
|
10
|
+
showCloseActionButton: true,
|
|
11
|
+
headerText: 'Module',
|
|
12
|
+
onClose: null,
|
|
13
|
+
onConfigure: null,
|
|
14
|
+
accessLevel: 'Full',
|
|
15
|
+
};
|
|
8
16
|
render() {
|
|
9
17
|
const { headerText, showConfigureActionButton, showCloseActionButton, onConfigure, onClose, accessLevel, children, } = this.props;
|
|
10
18
|
return (React.createElement(Dashboard_1.DashboardToolbar, { title: headerText, onConfigure: onConfigure, showConfigure: showConfigureActionButton, showClose: showCloseActionButton, onClose: onClose, accessLevel: accessLevel }, children));
|
|
11
19
|
}
|
|
12
20
|
}
|
|
13
21
|
exports.PanelDashboard = PanelDashboard;
|
|
14
|
-
PanelDashboard.defaultProps = {
|
|
15
|
-
showConfigureActionButton: true,
|
|
16
|
-
showCloseActionButton: true,
|
|
17
|
-
headerText: 'Module',
|
|
18
|
-
onClose: null,
|
|
19
|
-
onConfigure: null,
|
|
20
|
-
accessLevel: 'Full',
|
|
21
|
-
};
|
|
@@ -11,6 +11,13 @@ const ButtonMaximise_1 = require("../../Buttons/ButtonMaximise");
|
|
|
11
11
|
const twMerge_1 = require("../../../../twMerge");
|
|
12
12
|
const Flex_1 = require("../../../../components/Flex");
|
|
13
13
|
class PanelToolPanel extends React.Component {
|
|
14
|
+
static defaultProps = {
|
|
15
|
+
headerText: '',
|
|
16
|
+
onClose: null,
|
|
17
|
+
onConfigure: null,
|
|
18
|
+
onMinimiseChanged: null,
|
|
19
|
+
isMinimised: true,
|
|
20
|
+
};
|
|
14
21
|
render() {
|
|
15
22
|
const { useDefaultPanelStyle, isMinimised, onMinimiseChanged, headerText, onClose, onConfigure, ...props } = this.props;
|
|
16
23
|
let header = (React.createElement(React.Fragment, null,
|
|
@@ -43,10 +50,3 @@ class PanelToolPanel extends React.Component {
|
|
|
43
50
|
}
|
|
44
51
|
}
|
|
45
52
|
exports.PanelToolPanel = PanelToolPanel;
|
|
46
|
-
PanelToolPanel.defaultProps = {
|
|
47
|
-
headerText: '',
|
|
48
|
-
onClose: null,
|
|
49
|
-
onConfigure: null,
|
|
50
|
-
onMinimiseChanged: null,
|
|
51
|
-
isMinimised: true,
|
|
52
|
-
};
|
|
@@ -226,6 +226,8 @@ const getAdaptableToolPanelAgGridComponent = (adaptable) => {
|
|
|
226
226
|
};
|
|
227
227
|
}
|
|
228
228
|
return class AdaptableToolPanelAgGridComponent {
|
|
229
|
+
gui;
|
|
230
|
+
unmountReactRoot;
|
|
229
231
|
init(params) {
|
|
230
232
|
const api = adaptable.api;
|
|
231
233
|
this.gui = document.createElement('div');
|
|
@@ -20,19 +20,6 @@ const CustomSortWizard_1 = require("./Wizard/CustomSortWizard");
|
|
|
20
20
|
class CustomSortSummaryComponent extends React.Component {
|
|
21
21
|
constructor(props) {
|
|
22
22
|
super(props);
|
|
23
|
-
this.onFinishWizard = (customSort) => {
|
|
24
|
-
if (this.props.CustomSorts.find((x) => x.ColumnId == customSort.ColumnId)) {
|
|
25
|
-
this.props.onEditCustomSort(customSort);
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
this.props.onAddCustomSort(customSort);
|
|
29
|
-
}
|
|
30
|
-
this.setState({
|
|
31
|
-
editedAdaptableObject: null,
|
|
32
|
-
wizardStartIndex: 0,
|
|
33
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
23
|
this.state = UIHelper_1.UIHelper.getEmptyConfigState();
|
|
37
24
|
}
|
|
38
25
|
render() {
|
|
@@ -80,6 +67,19 @@ class CustomSortSummaryComponent extends React.Component {
|
|
|
80
67
|
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
81
68
|
});
|
|
82
69
|
}
|
|
70
|
+
onFinishWizard = (customSort) => {
|
|
71
|
+
if (this.props.CustomSorts.find((x) => x.ColumnId == customSort.ColumnId)) {
|
|
72
|
+
this.props.onEditCustomSort(customSort);
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
this.props.onAddCustomSort(customSort);
|
|
76
|
+
}
|
|
77
|
+
this.setState({
|
|
78
|
+
editedAdaptableObject: null,
|
|
79
|
+
wizardStartIndex: 0,
|
|
80
|
+
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
83
|
canFinishWizard() {
|
|
84
84
|
let customSort = this.state.editedAdaptableObject;
|
|
85
85
|
return (StringExtensions_1.StringExtensions.IsNotNullOrEmpty(customSort.ColumnId) &&
|
|
@@ -19,19 +19,6 @@ const FormatColumnWizard_1 = require("./Wizard/FormatColumnWizard");
|
|
|
19
19
|
class FormatColumnSummaryComponent extends React.Component {
|
|
20
20
|
constructor(props) {
|
|
21
21
|
super(props);
|
|
22
|
-
this.onFinishWizard = (formatColumn) => {
|
|
23
|
-
if (this.props.FormatColumns.find((x) => x.Uuid == formatColumn.Uuid)) {
|
|
24
|
-
this.props.onEditFormatColumn(formatColumn);
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
this.props.onAddFormatColumn(formatColumn);
|
|
28
|
-
}
|
|
29
|
-
this.setState({
|
|
30
|
-
editedAdaptableObject: null,
|
|
31
|
-
wizardStartIndex: 0,
|
|
32
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
22
|
this.state = UIHelper_1.UIHelper.getEmptyConfigState();
|
|
36
23
|
}
|
|
37
24
|
render() {
|
|
@@ -74,6 +61,19 @@ class FormatColumnSummaryComponent extends React.Component {
|
|
|
74
61
|
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
75
62
|
});
|
|
76
63
|
}
|
|
64
|
+
onFinishWizard = (formatColumn) => {
|
|
65
|
+
if (this.props.FormatColumns.find((x) => x.Uuid == formatColumn.Uuid)) {
|
|
66
|
+
this.props.onEditFormatColumn(formatColumn);
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
this.props.onAddFormatColumn(formatColumn);
|
|
70
|
+
}
|
|
71
|
+
this.setState({
|
|
72
|
+
editedAdaptableObject: null,
|
|
73
|
+
wizardStartIndex: 0,
|
|
74
|
+
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
77
|
canFinishWizard() {
|
|
78
78
|
let formatColumn = this.state.editedAdaptableObject;
|
|
79
79
|
return formatColumn.Scope != undefined && UIHelper_1.UIHelper.IsNotEmptyStyle(formatColumn.Style);
|
|
@@ -19,19 +19,6 @@ const FreeTextColumnWizard_1 = require("./Wizard/FreeTextColumnWizard");
|
|
|
19
19
|
class FreeTextColumnSummaryComponent extends React.Component {
|
|
20
20
|
constructor(props) {
|
|
21
21
|
super(props);
|
|
22
|
-
this.onFinishWizard = (FreeTextColumn) => {
|
|
23
|
-
if (this.props.FreeTextColumns.find((x) => x.ColumnId == FreeTextColumn.ColumnId)) {
|
|
24
|
-
this.props.onEditFreeTextColumn(FreeTextColumn);
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
this.props.onAddFreeTextColumn(FreeTextColumn);
|
|
28
|
-
}
|
|
29
|
-
this.setState({
|
|
30
|
-
editedAdaptableObject: null,
|
|
31
|
-
wizardStartIndex: 0,
|
|
32
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
22
|
this.state = UIHelper_1.UIHelper.getEmptyConfigState();
|
|
36
23
|
}
|
|
37
24
|
render() {
|
|
@@ -72,6 +59,19 @@ class FreeTextColumnSummaryComponent extends React.Component {
|
|
|
72
59
|
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
73
60
|
});
|
|
74
61
|
}
|
|
62
|
+
onFinishWizard = (FreeTextColumn) => {
|
|
63
|
+
if (this.props.FreeTextColumns.find((x) => x.ColumnId == FreeTextColumn.ColumnId)) {
|
|
64
|
+
this.props.onEditFreeTextColumn(FreeTextColumn);
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
this.props.onAddFreeTextColumn(FreeTextColumn);
|
|
68
|
+
}
|
|
69
|
+
this.setState({
|
|
70
|
+
editedAdaptableObject: null,
|
|
71
|
+
wizardStartIndex: 0,
|
|
72
|
+
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
75
|
canFinishWizard() {
|
|
76
76
|
let FreeTextColumn = this.state.editedAdaptableObject;
|
|
77
77
|
return StringExtensions_1.StringExtensions.IsNotNullOrEmpty(FreeTextColumn.ColumnId);
|
|
@@ -17,6 +17,7 @@ const react_redux_1 = require("react-redux");
|
|
|
17
17
|
const Select_1 = require("../../components/Select");
|
|
18
18
|
const Flex_1 = require("../../components/Flex");
|
|
19
19
|
class SmartEditViewPanelComponent extends React.Component {
|
|
20
|
+
cleanupEvent;
|
|
20
21
|
constructor(props) {
|
|
21
22
|
super(props);
|
|
22
23
|
this.state = {
|