@adaptabletools/adaptable 12.1.5 → 12.1.8-canary.0
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/base.css +11 -49
- package/bundle.cjs.js +106 -106
- package/index.css +13 -60
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +12 -4
- package/src/AdaptableOptions/ColumnOptions.d.ts +2 -4
- package/src/AdaptableOptions/FilterOptions.d.ts +19 -0
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +22 -1
- package/src/AdaptableOptions/StateOptions.d.ts +25 -12
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +31 -24
- package/src/Api/ColumnApi.d.ts +6 -1
- package/src/Api/ExportApi.d.ts +5 -0
- package/src/Api/FilterApi.d.ts +29 -0
- package/src/Api/FlashingCellApi.d.ts +8 -0
- package/src/Api/GridApi.d.ts +1 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +2 -1
- package/src/Api/Implementation/ColumnApiImpl.js +7 -2
- package/src/Api/Implementation/DataSetApiImpl.js +1 -1
- package/src/Api/Implementation/ExportApiImpl.d.ts +3 -1
- package/src/Api/Implementation/ExportApiImpl.js +19 -3
- package/src/Api/Implementation/FilterApiImpl.d.ts +6 -0
- package/src/Api/Implementation/FilterApiImpl.js +42 -4
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +1 -0
- package/src/Api/Implementation/FlashingCellApiImpl.js +4 -0
- package/src/Api/Implementation/GridApiImpl.d.ts +1 -0
- package/src/Api/Implementation/GridApiImpl.js +4 -4
- package/src/Api/Implementation/InternalApiImpl.d.ts +0 -1
- package/src/Api/Implementation/InternalApiImpl.js +0 -3
- package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -1
- package/src/Api/Implementation/LayoutApiImpl.js +4 -3
- package/src/Api/Implementation/PredicateApiImpl.js +4 -0
- package/src/Api/Implementation/QueryApiImpl.js +1 -1
- package/src/Api/Implementation/QueryLanguageApiImpl.js +9 -1
- package/src/Api/Implementation/TeamSharingApiImpl.js +1 -1
- package/src/Api/InternalApi.d.ts +0 -1
- package/src/Api/LayoutApi.d.ts +1 -1
- package/src/Api/SystemStatusApi.d.ts +1 -1
- package/src/Api/ToolPanelApi.d.ts +1 -1
- package/src/PredefinedConfig/CalculatedColumnState.d.ts +2 -2
- package/src/PredefinedConfig/Common/AdaptableColumn.js +3 -2
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +30 -10
- package/src/PredefinedConfig/Common/AdaptableQuery.js +1 -1
- package/src/PredefinedConfig/Common/AggregationColumns.d.ts +6 -0
- package/src/PredefinedConfig/Common/AggregationColumns.js +4 -0
- package/src/PredefinedConfig/Common/ColumnFilter.d.ts +2 -2
- package/src/PredefinedConfig/Common/Enums.d.ts +0 -15
- package/src/PredefinedConfig/Common/Enums.js +1 -18
- package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +6 -6
- package/src/PredefinedConfig/ExportState.d.ts +12 -4
- package/src/PredefinedConfig/LayoutState.d.ts +2 -1
- package/src/PredefinedConfig/PopupState.d.ts +1 -2
- package/src/Redux/ActionsReducers/AlertRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/AlertRedux.js +1 -1
- package/src/Redux/ActionsReducers/ConditionalStyleRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/ConditionalStyleRedux.js +1 -1
- package/src/Redux/ActionsReducers/CustomSortRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/CustomSortRedux.js +1 -1
- package/src/Redux/ActionsReducers/FlashingCellRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/FlashingCellRedux.js +1 -1
- package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +1 -1
- package/src/Redux/ActionsReducers/LayoutRedux.d.ts +28 -0
- package/src/Redux/ActionsReducers/LayoutRedux.js +80 -2
- package/src/Redux/ActionsReducers/PlusMinusRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/PlusMinusRedux.js +1 -1
- package/src/Redux/ActionsReducers/PopupRedux.d.ts +0 -2
- package/src/Redux/ActionsReducers/PopupRedux.js +1 -28
- package/src/Redux/ActionsReducers/ScheduleRedux.d.ts +5 -5
- package/src/Redux/ActionsReducers/ScheduleRedux.js +5 -5
- package/src/Redux/ActionsReducers/ShortcutRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/ShortcutRedux.js +1 -1
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +1 -2
- package/src/Redux/ActionsReducers/SystemRedux.js +1 -2
- package/src/Redux/Store/AdaptableStore.js +30 -16
- package/src/Strategy/AlertModule.d.ts +1 -0
- package/src/Strategy/AlertModule.js +20 -0
- package/src/Strategy/CalculatedColumnModule.js +2 -2
- package/src/Strategy/ExportModule.d.ts +0 -1
- package/src/Strategy/ExportModule.js +0 -16
- package/src/Strategy/FilterModule.js +6 -0
- package/src/Strategy/FlashingCellModule.js +2 -2
- package/src/Strategy/Interface/IModule.d.ts +4 -0
- package/src/Strategy/LayoutModule.js +20 -20
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnStyleViewItems.js +16 -1
- package/src/Strategy/Utilities/Layout/getLayoutFilterViewItems.js +15 -11
- package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +1 -0
- package/src/Utilities/Constants/DocumentationLinkConstants.js +2 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +3 -0
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.d.ts +12 -2
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +30 -66
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +22 -6
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +423 -220
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.d.ts +7 -1
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +23 -7
- package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.d.ts +0 -1
- package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.js +6 -54
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +17 -5
- package/src/Utilities/Extensions/ArrayExtensions.js +6 -0
- package/src/Utilities/Helpers/CalendarHelper.js +10 -7
- package/src/Utilities/Helpers/DateHelper.d.ts +0 -26
- package/src/Utilities/Helpers/DateHelper.js +2 -32
- package/src/Utilities/Interface/MessagePopups.d.ts +0 -4
- package/src/Utilities/ObjectFactory.d.ts +6 -4
- package/src/Utilities/ObjectFactory.js +30 -17
- package/src/Utilities/Services/AggregatedScalarLiveValue.d.ts +25 -0
- package/src/Utilities/Services/AggregatedScalarLiveValue.js +103 -0
- package/src/Utilities/Services/AlertService.d.ts +0 -1
- package/src/Utilities/Services/AlertService.js +5 -17
- package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +4 -4
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +29 -154
- package/src/Utilities/Services/Interface/ICalculatedColumnExpressionService.d.ts +2 -2
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +6 -3
- package/src/Utilities/Services/QueryLanguageService.d.ts +6 -3
- package/src/Utilities/Services/QueryLanguageService.js +23 -6
- package/src/Utilities/Services/ReportService.js +47 -46
- package/src/View/AdaptableView.js +1 -2
- package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingsTags.d.ts +2 -0
- package/src/View/CalculatedColumn/Utilities/{getCalculatedColumnSettingTags.js → getCalculatedColumnSettingsTags.js} +5 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.d.ts +10 -0
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.js +80 -0
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +21 -15
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.d.ts +1 -2
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +10 -53
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +14 -3
- package/src/View/Components/AdaptableDateInput/index.js +1 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +42 -6
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +1 -1
- package/src/View/Components/EntityRulesEditor/index.js +26 -5
- package/src/View/Components/FilterForm/FilterForm.js +10 -5
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +1 -0
- package/src/View/Components/FilterForm/QuickFilterForm.js +12 -7
- package/src/View/Components/PermittedValuesSelector/PermitedValuesSelector.d.ts +9 -0
- package/src/View/Components/PermittedValuesSelector/PermitedValuesSelector.js +28 -0
- package/src/View/Components/PermittedValuesSelector/index.d.ts +1 -0
- package/src/View/Components/PermittedValuesSelector/index.js +5 -0
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +2 -2
- package/src/View/Components/Popups/AdaptableToaster.js +2 -7
- package/src/View/Components/Popups/WindowPopups/windowFactory.d.ts +0 -1
- package/src/View/Components/Popups/WindowPopups/windowFactory.js +1 -4
- package/src/View/Export/ExportViewPanel.d.ts +1 -2
- package/src/View/Export/ExportViewPanel.js +2 -6
- package/src/View/Export/Wizard/ReportColumnTypeWizard.d.ts +1 -2
- package/src/View/Export/Wizard/ReportColumnTypeWizard.js +11 -12
- package/src/View/Export/Wizard/ReportRowTypeWizard.d.ts +1 -2
- package/src/View/Export/Wizard/ReportRowTypeWizard.js +12 -13
- package/src/View/Export/Wizard/ReportSettingsWizard.js +1 -2
- package/src/View/Filter/FilterViewPanel.js +20 -4
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +1 -1
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -2
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.d.ts +1 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +1 -1
- package/src/View/Layout/Wizard/{LayoutEditor → Components}/ColumnLabels.d.ts +0 -0
- package/src/View/Layout/Wizard/{LayoutEditor → Components}/ColumnLabels.js +0 -0
- package/src/View/Layout/Wizard/LayoutWizard.js +1 -0
- package/src/View/Layout/Wizard/sections/AggregationsSection.d.ts +1 -0
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +69 -8
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +1 -1
- package/src/View/Query/QueryViewPanel.js +1 -1
- package/src/agGrid/Adaptable.d.ts +12 -3
- package/src/agGrid/Adaptable.js +225 -152
- package/src/agGrid/agGridHelper.d.ts +1 -0
- package/src/agGrid/agGridHelper.js +5 -3
- package/src/agGrid/agGridMenuHelper.d.ts +1 -0
- package/src/agGrid/agGridMenuHelper.js +4 -2
- package/src/agGrid/weightedAverage.d.ts +6 -0
- package/src/agGrid/weightedAverage.js +66 -0
- package/src/components/ExpressionEditor/BaseEditorInput.d.ts +1 -0
- package/src/components/ExpressionEditor/BaseEditorInput.js +2 -3
- package/src/components/ExpressionEditor/EditorInput.d.ts +1 -1
- package/src/components/ExpressionEditor/EditorInput.js +24 -4
- package/src/components/ExpressionEditor/{EditorInputReactive.d.ts → EditorInputWithWhereClause.d.ts} +3 -3
- package/src/components/ExpressionEditor/{EditorInputReactive.js → EditorInputWithWhereClause.js} +6 -5
- package/src/components/ExpressionEditor/editorButtonsAggregatedBoolean.d.ts +2 -0
- package/src/components/ExpressionEditor/{editorButtonsReactive.js → editorButtonsAggregatedBoolean.js} +22 -37
- package/src/components/ExpressionEditor/editorButtonsAggregatedScalar.js +5 -10
- package/src/components/ExpressionEditor/editorButtonsCumulativeAggregatedScalar.d.ts +2 -0
- package/src/components/ExpressionEditor/editorButtonsCumulativeAggregatedScalar.js +50 -0
- package/src/components/ExpressionEditor/editorButtonsObservable.d.ts +2 -0
- package/src/components/ExpressionEditor/editorButtonsObservable.js +40 -0
- package/src/components/ExpressionEditor/index.d.ts +1 -1
- package/src/components/ExpressionEditor/index.js +26 -5
- package/src/components/ProgressIndicator/ProgressIndicator.js +10 -12
- package/src/metamodel/adaptable.metamodel.d.ts +129 -7
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/parser/src/types.d.ts +1 -1
- package/src/types.d.ts +4 -4
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags.d.ts +0 -2
- package/src/View/Layout/LayoutEditorStandalonePopup.d.ts +0 -3
- package/src/View/Layout/LayoutEditorStandalonePopup.js +0 -78
- package/src/View/Layout/Wizard/LayoutEditor/ColumnList.d.ts +0 -27
- package/src/View/Layout/Wizard/LayoutEditor/ColumnList.js +0 -86
- package/src/View/Layout/Wizard/LayoutEditor/ColumnSortList.d.ts +0 -16
- package/src/View/Layout/Wizard/LayoutEditor/ColumnSortList.js +0 -89
- package/src/View/Layout/Wizard/LayoutEditor/PivotList.d.ts +0 -15
- package/src/View/Layout/Wizard/LayoutEditor/PivotList.js +0 -70
- package/src/View/Layout/Wizard/LayoutEditor/RowGroupsList.d.ts +0 -15
- package/src/View/Layout/Wizard/LayoutEditor/RowGroupsList.js +0 -70
- package/src/View/Layout/Wizard/LayoutEditor/droppableIds.d.ts +0 -7
- package/src/View/Layout/Wizard/LayoutEditor/droppableIds.js +0 -11
- package/src/View/Layout/Wizard/LayoutEditor/getItemStyle.d.ts +0 -6
- package/src/View/Layout/Wizard/LayoutEditor/getItemStyle.js +0 -26
- package/src/View/Layout/Wizard/LayoutEditor/index.d.ts +0 -9
- package/src/View/Layout/Wizard/LayoutEditor/index.js +0 -367
- package/src/View/Layout/Wizard/LayoutEditor/reducer.d.ts +0 -28
- package/src/View/Layout/Wizard/LayoutEditor/reducer.js +0 -46
- package/src/View/Layout/Wizard/LayoutEditor/utils.d.ts +0 -10
- package/src/View/Layout/Wizard/LayoutEditor/utils.js +0 -14
- package/src/View/Layout/Wizard/LayoutEditorWizard.d.ts +0 -30
- package/src/View/Layout/Wizard/LayoutEditorWizard.js +0 -132
- package/src/components/ExpressionEditor/editorButtonsReactive.d.ts +0 -2
|
@@ -17,6 +17,7 @@ export declare class FilterApiImpl extends ApiBase implements FilterApi {
|
|
|
17
17
|
isQuickFilterAvailable(): boolean;
|
|
18
18
|
isQuickFilterVisible(): boolean;
|
|
19
19
|
getColumnFilters(): ColumnFilter[];
|
|
20
|
+
getActiveColumnFilters(): ColumnFilter[];
|
|
20
21
|
getColumnFilter(columnId: string): ColumnFilter | undefined;
|
|
21
22
|
getColumnFilterDefs(): ColumnFilterDef[];
|
|
22
23
|
getColumnFiltersForLayout(layoutName: string): ColumnFilter[];
|
|
@@ -42,5 +43,10 @@ export declare class FilterApiImpl extends ApiBase implements FilterApi {
|
|
|
42
43
|
*/
|
|
43
44
|
isFilterActive(filter: ColumnFilter): boolean;
|
|
44
45
|
shouldNewColumnFilterTriggerGridFiltering(action: LayoutRedux.LayoutColumnFilterAction | Redux.Action): boolean;
|
|
46
|
+
areColumnFiltersDifferent(oldFilters: ColumnFilter[], newFilters: ColumnFilter[]): boolean;
|
|
45
47
|
fireFilterAppliedEvent(): void;
|
|
48
|
+
suspendColumnFilter(columnFilter: ColumnFilter): void;
|
|
49
|
+
unSuspendColumnFilter(columnFilter: ColumnFilter): void;
|
|
50
|
+
suspendAllColumnFilters(): void;
|
|
51
|
+
unSuspendAllColumnFilters(): void;
|
|
46
52
|
}
|
|
@@ -47,6 +47,9 @@ class FilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
47
47
|
const currentLayout = this.adaptable.api.layoutApi.getCurrentLayout();
|
|
48
48
|
return (_a = currentLayout.ColumnFilters) !== null && _a !== void 0 ? _a : [];
|
|
49
49
|
}
|
|
50
|
+
getActiveColumnFilters() {
|
|
51
|
+
return this.getColumnFilters().filter((columnFilter) => !columnFilter.IsSuspended);
|
|
52
|
+
}
|
|
50
53
|
getColumnFilter(columnId) {
|
|
51
54
|
return this.getColumnFilters().find((columnFilter) => columnFilter.ColumnId == columnId);
|
|
52
55
|
}
|
|
@@ -176,7 +179,16 @@ class FilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
176
179
|
if (!columnFilter.Predicate) {
|
|
177
180
|
return true;
|
|
178
181
|
}
|
|
179
|
-
|
|
182
|
+
const someInputsAreEmpty = (_a = columnFilter.Predicate.Inputs) === null || _a === void 0 ? void 0 : _a.some((input) => {
|
|
183
|
+
if (typeof input === 'string') {
|
|
184
|
+
return StringExtensions_1.default.IsNullOrEmpty(input);
|
|
185
|
+
}
|
|
186
|
+
if (typeof input === 'number') {
|
|
187
|
+
return isNaN(input);
|
|
188
|
+
}
|
|
189
|
+
return !input;
|
|
190
|
+
});
|
|
191
|
+
if (someInputsAreEmpty) {
|
|
180
192
|
return true;
|
|
181
193
|
}
|
|
182
194
|
const column = this.adaptable.api.columnApi.getColumnFromId(columnFilter.ColumnId);
|
|
@@ -228,7 +240,6 @@ class FilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
228
240
|
return allInputsHaveValues;
|
|
229
241
|
}
|
|
230
242
|
shouldNewColumnFilterTriggerGridFiltering(action) {
|
|
231
|
-
var _a, _b;
|
|
232
243
|
// trigger filter change only:
|
|
233
244
|
// - new -> new filter is active
|
|
234
245
|
// - clear -> previous filters was active
|
|
@@ -237,6 +248,8 @@ class FilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
237
248
|
// - edit -> different & new is active
|
|
238
249
|
// - edit -> different & old was active
|
|
239
250
|
// - set -> new filter is active
|
|
251
|
+
// filter -> suspend changes
|
|
252
|
+
var _a, _b;
|
|
240
253
|
const isNewAndActive = action.type === LayoutRedux.LAYOUT_COLUMN_FILTER_ADD &&
|
|
241
254
|
this.adaptable.api.filterApi.isFilterActive(action.columnFilter);
|
|
242
255
|
const isClearAndPreviousWasActive = action.type === LayoutRedux.LAYOUT_COLUMN_FILTER_CLEAR &&
|
|
@@ -264,14 +277,27 @@ class FilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
264
277
|
}
|
|
265
278
|
const isSetAndActive = action.type === LayoutRedux.LAYOUT_COLUMN_FILTER_SET &&
|
|
266
279
|
this.adaptable.api.filterApi.isFilterActive(action.columnFilter);
|
|
280
|
+
const isSuspendChanged = [
|
|
281
|
+
LayoutRedux.LAYOUT_COLUMN_FILTER_SUSPEND,
|
|
282
|
+
LayoutRedux.LAYOUT_COLUMN_FILTER_SUSPEND_ALL,
|
|
283
|
+
LayoutRedux.LAYOUT_COLUMN_FILTER_UNSUSPEND,
|
|
284
|
+
LayoutRedux.LAYOUT_COLUMN_FILTER_UNSUSPEND_ALL,
|
|
285
|
+
].includes(action.type);
|
|
267
286
|
return (isNewAndActive ||
|
|
268
287
|
isClearAndPreviousWasActive ||
|
|
269
288
|
isClearAllAtLeastOneActiveFilter ||
|
|
270
289
|
isEditTrigger ||
|
|
271
|
-
isSetAndActive
|
|
290
|
+
isSetAndActive ||
|
|
291
|
+
isSuspendChanged);
|
|
292
|
+
}
|
|
293
|
+
areColumnFiltersDifferent(oldFilters, newFilters) {
|
|
294
|
+
if (ArrayExtensions_1.default.IsNullOrEmpty(oldFilters) && ArrayExtensions_1.default.IsNullOrEmpty(newFilters)) {
|
|
295
|
+
return false;
|
|
296
|
+
}
|
|
297
|
+
return ArrayExtensions_1.default.areArraysNotEqual(oldFilters, newFilters);
|
|
272
298
|
}
|
|
273
299
|
fireFilterAppliedEvent() {
|
|
274
|
-
if (this.adaptable.
|
|
300
|
+
if (this.adaptable.isLive) {
|
|
275
301
|
const filterAppliedInfo = {
|
|
276
302
|
columnFilters: this.getColumnFilters(),
|
|
277
303
|
adaptableApi: this.getAdaptableApi(),
|
|
@@ -279,5 +305,17 @@ class FilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
279
305
|
this.adaptable.api.eventApi.emit('FilterApplied', filterAppliedInfo);
|
|
280
306
|
}
|
|
281
307
|
}
|
|
308
|
+
suspendColumnFilter(columnFilter) {
|
|
309
|
+
this.adaptable.api.internalApi.dispatchReduxAction(LayoutRedux.LayoutColumnFilterSuspend(columnFilter));
|
|
310
|
+
}
|
|
311
|
+
unSuspendColumnFilter(columnFilter) {
|
|
312
|
+
this.adaptable.api.internalApi.dispatchReduxAction(LayoutRedux.LayoutColumnFilterUnSuspend(columnFilter));
|
|
313
|
+
}
|
|
314
|
+
suspendAllColumnFilters() {
|
|
315
|
+
this.adaptable.api.internalApi.dispatchReduxAction(LayoutRedux.LayoutColumnFilterSuspendAll());
|
|
316
|
+
}
|
|
317
|
+
unSuspendAllColumnFilters() {
|
|
318
|
+
this.adaptable.api.internalApi.dispatchReduxAction(LayoutRedux.LayoutColumnFilterUnSuspendAll());
|
|
319
|
+
}
|
|
282
320
|
}
|
|
283
321
|
exports.FilterApiImpl = FilterApiImpl;
|
|
@@ -21,4 +21,5 @@ export declare class FlashingCellApiImpl extends ApiBase implements FlashingCell
|
|
|
21
21
|
editFlashingCellDefinitions(flashingCellDefinitions: FlashingCellDefinition[]): FlashingCellDefinition[];
|
|
22
22
|
getFlashingCellPredicateDefs(): AdaptablePredicateDef[];
|
|
23
23
|
getFlashingCellPredicateDefsForScope(scope: AdaptableScope): AdaptablePredicateDef[];
|
|
24
|
+
clearGridFlashing(): void;
|
|
24
25
|
}
|
|
@@ -106,5 +106,9 @@ class FlashingCellApiImpl extends ApiBase_1.ApiBase {
|
|
|
106
106
|
getFlashingCellPredicateDefsForScope(scope) {
|
|
107
107
|
return this.getFlashingCellPredicateDefs().filter((predicateDef) => this.adaptable.api.scopeApi.isScopeInScope(scope, predicateDef.columnScope));
|
|
108
108
|
}
|
|
109
|
+
clearGridFlashing() {
|
|
110
|
+
const currentFlashingCells = this.getAdaptableState().System.AdaptableFlashingCells;
|
|
111
|
+
this.dispatchAction(SystemRedux.SystemFlashingCellDeleteAll());
|
|
112
|
+
}
|
|
109
113
|
}
|
|
110
114
|
exports.FlashingCellApiImpl = FlashingCellApiImpl;
|
|
@@ -61,6 +61,7 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
|
61
61
|
getVisibleRowNodes(): RowNode[];
|
|
62
62
|
getAllRowNodes(config: {
|
|
63
63
|
includeGroupRows?: boolean;
|
|
64
|
+
filterFn?: (rowNode: RowNode) => boolean;
|
|
64
65
|
}): RowNode[];
|
|
65
66
|
getGridCellFromRowNode(rowNode: RowNode, columnId: string): GridCell | undefined;
|
|
66
67
|
getRawValueFromRowNode(rowNode: RowNode, columnId: string): any | undefined;
|
|
@@ -260,7 +260,7 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
260
260
|
this.adaptable.redrawHeader();
|
|
261
261
|
}
|
|
262
262
|
fireSearchChangedEvent(searchChangedTrigger) {
|
|
263
|
-
if (this.adaptable.
|
|
263
|
+
if (this.adaptable.isLive) {
|
|
264
264
|
const adaptableSearchState = this.adaptable.api.configApi.getAdaptableSearchState();
|
|
265
265
|
const adaptableSortState = this.adaptable.api.configApi.getAdaptableSortState();
|
|
266
266
|
const searchChangedInfo = {
|
|
@@ -273,7 +273,7 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
fireGridSortedEvent() {
|
|
276
|
-
if (this.adaptable.
|
|
276
|
+
if (this.adaptable.isLive) {
|
|
277
277
|
const adaptableSortState = this.adaptable.api.configApi.getAdaptableSortState();
|
|
278
278
|
const adaptableApi = this.getAdaptableApi();
|
|
279
279
|
const gridSortedInfo = {
|
|
@@ -284,7 +284,7 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
fireCellChangedEvent(cellDataChangedInfo) {
|
|
287
|
-
if (this.adaptable.
|
|
287
|
+
if (this.adaptable.isLive) {
|
|
288
288
|
const cellChangedInfo = {
|
|
289
289
|
adaptableApi: this.adaptable.api,
|
|
290
290
|
cellChange: cellDataChangedInfo,
|
|
@@ -293,7 +293,7 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
295
|
fireGridDataChangedEvent(dataRows, rowNodes = [], rowTrigger) {
|
|
296
|
-
if (this.adaptable.
|
|
296
|
+
if (this.adaptable.isLive) {
|
|
297
297
|
const gridDataChangedInfo = {
|
|
298
298
|
changedAt: Date.now(),
|
|
299
299
|
adaptableApi: this.adaptable.api,
|
|
@@ -61,7 +61,6 @@ export declare class InternalApiImpl extends ApiBase implements InternalApi {
|
|
|
61
61
|
[key: string]: any;
|
|
62
62
|
}): void;
|
|
63
63
|
hidePopupScreen(): void;
|
|
64
|
-
hidePopupAlert(): void;
|
|
65
64
|
setColumns(columns: AdaptableColumn[]): void;
|
|
66
65
|
setSettingPanelModuleMenuItems(menuItems: AdaptableMenuItem[]): void;
|
|
67
66
|
setModuleButtonMenuItems(menuItems: AdaptableMenuItem[]): void;
|
|
@@ -149,9 +149,6 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
|
|
|
149
149
|
hidePopupScreen() {
|
|
150
150
|
this.dispatchAction(PopupRedux.PopupHideScreen());
|
|
151
151
|
}
|
|
152
|
-
hidePopupAlert() {
|
|
153
|
-
this.dispatchAction(PopupRedux.PopupHideAlert());
|
|
154
|
-
}
|
|
155
152
|
setColumns(columns) {
|
|
156
153
|
this.dispatchAction(GridRedux.GridSetColumns(columns));
|
|
157
154
|
}
|
|
@@ -12,7 +12,7 @@ export declare class LayoutApiImpl extends ApiBase implements LayoutApi {
|
|
|
12
12
|
};
|
|
13
13
|
getCurrentVisibleColumnIds(): string[];
|
|
14
14
|
setLayout(layoutName: string): void;
|
|
15
|
-
fireLayoutChangedEvent(trigger: string, oldSate: LayoutState, newState: LayoutState): void;
|
|
15
|
+
fireLayoutChangedEvent(trigger: string, oldSate: LayoutState, newState: LayoutState, skipEqualityCheck?: boolean): void;
|
|
16
16
|
getCurrentLayout(): Layout;
|
|
17
17
|
getCurrentLayoutColumnSort(columnId: string): ColumnSort['SortOrder'] | null;
|
|
18
18
|
areDraftAndCurrentLayoutEqual(): boolean;
|
|
@@ -50,16 +50,17 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
fireLayoutChangedEvent(trigger, oldSate, newState) {
|
|
53
|
+
fireLayoutChangedEvent(trigger, oldSate, newState, skipEqualityCheck) {
|
|
54
54
|
const layoutChangedInfo = {
|
|
55
55
|
adaptableApi: this.adaptable.api,
|
|
56
56
|
actionName: trigger,
|
|
57
57
|
oldLayoutState: oldSate,
|
|
58
58
|
newLayoutState: newState,
|
|
59
59
|
};
|
|
60
|
-
if (!isEqual_1.default(oldSate, newState)) {
|
|
61
|
-
|
|
60
|
+
if (!skipEqualityCheck && isEqual_1.default(oldSate, newState)) {
|
|
61
|
+
return;
|
|
62
62
|
}
|
|
63
|
+
this.adaptable.api.eventApi.emit('LayoutChanged', layoutChangedInfo);
|
|
63
64
|
}
|
|
64
65
|
getCurrentLayout() {
|
|
65
66
|
const state = this.getAdaptableState();
|
|
@@ -56,6 +56,10 @@ class PredicateApiImpl extends ApiBase_1.ApiBase {
|
|
|
56
56
|
return false;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
+
if (['Values', 'ExcludeValues'].includes(predicate.PredicateId) &&
|
|
60
|
+
ArrayExtensions_1.default.IsNullOrEmpty(predicate.Inputs)) {
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
59
63
|
return true;
|
|
60
64
|
}
|
|
61
65
|
handlePredicate(predicate, params, defaultReturn) {
|
|
@@ -89,7 +89,7 @@ class QueryApiImpl extends ApiBase_1.ApiBase {
|
|
|
89
89
|
}));
|
|
90
90
|
}
|
|
91
91
|
fireQueryRunEvent() {
|
|
92
|
-
if (this.adaptable.
|
|
92
|
+
if (this.adaptable.isLive) {
|
|
93
93
|
const currentQuery = this.adaptable.api.queryApi.getCurrentQuery();
|
|
94
94
|
const adaptableApi = this.getAdaptableApi();
|
|
95
95
|
const queryRunInfo = {
|
|
@@ -48,9 +48,17 @@ class QueryLanguageApiImpl extends ApiBase_1.ApiBase {
|
|
|
48
48
|
}
|
|
49
49
|
getColumnsFromExpression(expression) {
|
|
50
50
|
try {
|
|
51
|
-
|
|
51
|
+
const columnIds = this.adaptable.api.internalApi
|
|
52
52
|
.getQueryLanguageService()
|
|
53
53
|
.getColumnsFromExpression(expression);
|
|
54
|
+
columnIds.forEach((columnId) => {
|
|
55
|
+
const calculatedColumn = this.adaptable.api.calculatedColumnApi.getCalculatedColumnForColumnId(columnId);
|
|
56
|
+
if (calculatedColumn) {
|
|
57
|
+
const transitiveColumnIds = this.getColumnsFromExpression(this.getAdaptableQueryExpression(calculatedColumn.Query));
|
|
58
|
+
columnIds.push(...transitiveColumnIds);
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
return Array.from(new Set(columnIds));
|
|
54
62
|
}
|
|
55
63
|
catch (error) {
|
|
56
64
|
// defensive programing, this should happen only if someone botched the predefined configs
|
|
@@ -47,7 +47,7 @@ class TeamSharingApiImpl extends ApiBase_1.ApiBase {
|
|
|
47
47
|
this.showModulePopup(ModuleConstants.TeamSharingModuleId);
|
|
48
48
|
}
|
|
49
49
|
fireTeamSharingEntityChangedEvent(sharedEntity) {
|
|
50
|
-
if (this.adaptable.
|
|
50
|
+
if (this.adaptable.isLive) {
|
|
51
51
|
const teamSharingEntityChangedInfo = {
|
|
52
52
|
adaptableApi: this.adaptable.api,
|
|
53
53
|
sharedEntity: sharedEntity,
|
package/src/Api/InternalApi.d.ts
CHANGED
|
@@ -65,7 +65,6 @@ export interface InternalApi {
|
|
|
65
65
|
}): void;
|
|
66
66
|
isDocumentationLinksDisplayed(): boolean;
|
|
67
67
|
hidePopupScreen(): void;
|
|
68
|
-
hidePopupAlert(): void;
|
|
69
68
|
setColumns(columns: AdaptableColumn[]): void;
|
|
70
69
|
setSettingPanelModuleMenuItems(menuItems: AdaptableMenuItem[]): void;
|
|
71
70
|
setModuleButtonMenuItems(menuItems: AdaptableMenuItem[]): void;
|
package/src/Api/LayoutApi.d.ts
CHANGED
|
@@ -113,7 +113,7 @@ export interface LayoutApi {
|
|
|
113
113
|
* @param oldSate Layout State before change
|
|
114
114
|
* @param newState Layout State after change
|
|
115
115
|
*/
|
|
116
|
-
fireLayoutChangedEvent(trigger: string, oldSate: LayoutState, newState: LayoutState): void;
|
|
116
|
+
fireLayoutChangedEvent(trigger: string, oldSate: LayoutState, newState: LayoutState, skipEqualityCheck?: boolean): void;
|
|
117
117
|
/**
|
|
118
118
|
* Compares 2 Layouts for equality
|
|
119
119
|
* @param layout1 First Layout
|
|
@@ -24,7 +24,7 @@ export interface SystemStatusApi {
|
|
|
24
24
|
*/
|
|
25
25
|
setInfoSystemStatus(statusMessage: string, furtherInformation?: string): void;
|
|
26
26
|
/**
|
|
27
|
-
* Opens System Status
|
|
27
|
+
* Opens Settings Panel with System Status section selected and visible
|
|
28
28
|
*/
|
|
29
29
|
showSystemStatusPopup(): void;
|
|
30
30
|
/**
|
|
@@ -31,7 +31,7 @@ export interface CalculatedColumn extends AdaptableObject {
|
|
|
31
31
|
/**
|
|
32
32
|
* Scalar/AggregatedScalar Query used by AdapTableQL to evaluate Column's value
|
|
33
33
|
*/
|
|
34
|
-
Query
|
|
34
|
+
Query: AdaptableCalculatedColumnQuery;
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* Set of optional properties that define a Calculated Column's behaviour
|
|
@@ -40,7 +40,7 @@ export interface CalculatedColumnSettings extends SpecialColumnSettings {
|
|
|
40
40
|
/**
|
|
41
41
|
* Expression's return value DataType; inferred by AdapTable but settable by User
|
|
42
42
|
*/
|
|
43
|
-
DataType
|
|
43
|
+
DataType: 'String' | 'Number' | 'Boolean' | 'Date';
|
|
44
44
|
/**
|
|
45
45
|
* Show underlying Expression as ToolTip when hovering over a cell
|
|
46
46
|
* @defaultValue false
|
|
@@ -8,14 +8,15 @@ const isValidOrderForColumnGroups = ({ oldColumns, newColumns, }) => {
|
|
|
8
8
|
let count = 0;
|
|
9
9
|
columns.forEach((column) => {
|
|
10
10
|
var _a, _b;
|
|
11
|
-
if (column
|
|
11
|
+
if (column &&
|
|
12
|
+
column.columnGroup &&
|
|
12
13
|
column.columnGroup.groupCount > 1 &&
|
|
13
14
|
!column.columnGroup.allowGroupSplit) {
|
|
14
15
|
if (prevGroup !== column.columnGroup.columnGroupId) {
|
|
15
16
|
count++;
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
|
-
prevGroup = (_b = (_a = column.columnGroup) === null || _a === void 0 ? void 0 : _a.columnGroupId) !== null && _b !== void 0 ? _b : '';
|
|
19
|
+
prevGroup = (_b = (_a = column === null || column === void 0 ? void 0 : column.columnGroup) === null || _a === void 0 ? void 0 : _a.columnGroupId) !== null && _b !== void 0 ? _b : '';
|
|
19
20
|
});
|
|
20
21
|
return count;
|
|
21
22
|
};
|
|
@@ -16,6 +16,7 @@ const isAfter_1 = tslib_1.__importDefault(require("date-fns/isAfter"));
|
|
|
16
16
|
const isBefore_1 = tslib_1.__importDefault(require("date-fns/isBefore"));
|
|
17
17
|
const isSameDay_1 = tslib_1.__importDefault(require("date-fns/isSameDay"));
|
|
18
18
|
const CalendarHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/CalendarHelper"));
|
|
19
|
+
const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
|
|
19
20
|
const DateHelper_1 = require("../../Utilities/Helpers/DateHelper");
|
|
20
21
|
/**
|
|
21
22
|
* Array of Predicate Defs which are shipped by AdapTable
|
|
@@ -26,7 +27,7 @@ exports.SystemPredicateDefs = [
|
|
|
26
27
|
label: 'Values',
|
|
27
28
|
icon: { text: 'IN' },
|
|
28
29
|
columnScope: { DataTypes: ['String', 'Number', 'Date'] },
|
|
29
|
-
moduleScope: ['filter'],
|
|
30
|
+
moduleScope: ['filter', 'conditionalstyle', 'alert'],
|
|
30
31
|
handler: ({ inputs, column, value }) => {
|
|
31
32
|
if (inputs.length === 0) {
|
|
32
33
|
return true;
|
|
@@ -52,7 +53,7 @@ exports.SystemPredicateDefs = [
|
|
|
52
53
|
label: 'Exclude Values',
|
|
53
54
|
icon: { text: '!IN' },
|
|
54
55
|
columnScope: { DataTypes: ['String', 'Number', 'Date'] },
|
|
55
|
-
moduleScope: ['filter'],
|
|
56
|
+
moduleScope: ['filter', 'conditionalstyle', 'alert'],
|
|
56
57
|
handler: ({ inputs, column, value }) => {
|
|
57
58
|
// basically negation of IN
|
|
58
59
|
if (inputs.length === 0) {
|
|
@@ -134,7 +135,12 @@ exports.SystemPredicateDefs = [
|
|
|
134
135
|
icon: { text: '=0' },
|
|
135
136
|
columnScope: { DataTypes: ['Number'] },
|
|
136
137
|
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
137
|
-
handler: ({ value }) =>
|
|
138
|
+
handler: ({ value }) => {
|
|
139
|
+
if (typeof value === 'string' && !StringExtensions_1.default.IsNumeric(value)) {
|
|
140
|
+
return false;
|
|
141
|
+
}
|
|
142
|
+
return Number(value) === 0;
|
|
143
|
+
},
|
|
138
144
|
},
|
|
139
145
|
{
|
|
140
146
|
id: 'Equals',
|
|
@@ -143,7 +149,14 @@ exports.SystemPredicateDefs = [
|
|
|
143
149
|
columnScope: { DataTypes: ['Number'] },
|
|
144
150
|
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
145
151
|
inputs: [{ type: 'number' }],
|
|
146
|
-
handler: ({ value, inputs }) =>
|
|
152
|
+
handler: ({ value, inputs }) => {
|
|
153
|
+
const input = inputs[0];
|
|
154
|
+
if ((typeof value === 'string' && !StringExtensions_1.default.IsNumeric(value)) ||
|
|
155
|
+
(typeof input === 'string' && !StringExtensions_1.default.IsNumeric(input))) {
|
|
156
|
+
return false;
|
|
157
|
+
}
|
|
158
|
+
return Number(value) === Number(inputs[0]);
|
|
159
|
+
},
|
|
147
160
|
toString: ({ inputs }) => `= ${inputs[0]}`,
|
|
148
161
|
shortcuts: ['='],
|
|
149
162
|
},
|
|
@@ -154,7 +167,14 @@ exports.SystemPredicateDefs = [
|
|
|
154
167
|
columnScope: { DataTypes: ['Number'] },
|
|
155
168
|
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
156
169
|
inputs: [{ type: 'number' }],
|
|
157
|
-
handler: ({ value, inputs }) =>
|
|
170
|
+
handler: ({ value, inputs }) => {
|
|
171
|
+
const input = inputs[0];
|
|
172
|
+
if ((typeof value === 'string' && !StringExtensions_1.default.IsNumeric(value)) ||
|
|
173
|
+
(typeof input === 'string' && !StringExtensions_1.default.IsNumeric(input))) {
|
|
174
|
+
return false;
|
|
175
|
+
}
|
|
176
|
+
return Number(value) !== Number(inputs[0]);
|
|
177
|
+
},
|
|
158
178
|
toString: ({ inputs }) => `!= ${inputs[0]}`,
|
|
159
179
|
shortcuts: ['!='],
|
|
160
180
|
},
|
|
@@ -397,7 +417,7 @@ exports.SystemPredicateDefs = [
|
|
|
397
417
|
columnScope: { DataTypes: ['Date'] },
|
|
398
418
|
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
399
419
|
inputs: [{ type: 'date' }],
|
|
400
|
-
handler: ({ value, inputs }) => isAfter_1.default(DateHelper_1.
|
|
420
|
+
handler: ({ value, inputs }) => isAfter_1.default(DateHelper_1.parseDateValue(value), DateHelper_1.parseDateValue(inputs[0])),
|
|
401
421
|
toString: ({ inputs }) => `> ${inputs[0]}`,
|
|
402
422
|
},
|
|
403
423
|
{
|
|
@@ -407,7 +427,7 @@ exports.SystemPredicateDefs = [
|
|
|
407
427
|
columnScope: { DataTypes: ['Date'] },
|
|
408
428
|
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
409
429
|
inputs: [{ type: 'date' }],
|
|
410
|
-
handler: ({ value, inputs }) => isBefore_1.default(DateHelper_1.
|
|
430
|
+
handler: ({ value, inputs }) => isBefore_1.default(DateHelper_1.parseDateValue(value), DateHelper_1.parseDateValue(inputs[0])),
|
|
411
431
|
toString: ({ inputs }) => `< ${inputs[0]}`,
|
|
412
432
|
},
|
|
413
433
|
{
|
|
@@ -417,7 +437,7 @@ exports.SystemPredicateDefs = [
|
|
|
417
437
|
columnScope: { DataTypes: ['Date'] },
|
|
418
438
|
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
419
439
|
inputs: [{ type: 'date' }],
|
|
420
|
-
handler: ({ value, inputs }) => isSameDay_1.default(DateHelper_1.
|
|
440
|
+
handler: ({ value, inputs }) => isSameDay_1.default(DateHelper_1.parseDateValue(value), DateHelper_1.parseDateValue(inputs[0])),
|
|
421
441
|
toString: ({ inputs }) => `= ${inputs[0]}`,
|
|
422
442
|
},
|
|
423
443
|
{
|
|
@@ -427,7 +447,7 @@ exports.SystemPredicateDefs = [
|
|
|
427
447
|
columnScope: { DataTypes: ['Date'] },
|
|
428
448
|
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
429
449
|
inputs: [{ type: 'date' }],
|
|
430
|
-
handler: ({ value, inputs }) => !isSameDay_1.default(DateHelper_1.
|
|
450
|
+
handler: ({ value, inputs }) => !isSameDay_1.default(DateHelper_1.parseDateValue(value), DateHelper_1.parseDateValue(inputs[0])),
|
|
431
451
|
toString: ({ inputs }) => `!= ${inputs[0]}`,
|
|
432
452
|
},
|
|
433
453
|
{
|
|
@@ -436,7 +456,7 @@ exports.SystemPredicateDefs = [
|
|
|
436
456
|
icon: { name: 'calendar' },
|
|
437
457
|
columnScope: { DataTypes: ['Date'] },
|
|
438
458
|
moduleScope: ['filter', 'alert', 'flashingcell', 'conditionalstyle'],
|
|
439
|
-
handler: ({ value, api }) => isSameDay_1.default(DateHelper_1.
|
|
459
|
+
handler: ({ value, api }) => isSameDay_1.default(DateHelper_1.parseDateValue(value), CalendarHelper_1.default.getNextWorkingDay()),
|
|
440
460
|
},
|
|
441
461
|
{
|
|
442
462
|
id: 'LastWorkDay',
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isReactiveQuery = void 0;
|
|
4
4
|
const isReactiveQuery = (query) => {
|
|
5
|
-
return !!query.ObservableExpression
|
|
5
|
+
return !!query.ObservableExpression;
|
|
6
6
|
};
|
|
7
7
|
exports.isReactiveQuery = isReactiveQuery;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const WEIGHTED_AVERAGE_AGG_FN_NAME = "weightedAvg";
|
|
2
|
+
export interface WeightedAverageAggregation {
|
|
3
|
+
type: 'weightedAverage';
|
|
4
|
+
weightedColumnId: string;
|
|
5
|
+
}
|
|
6
|
+
export declare type AggregationColumns = Record<string, string | true | WeightedAverageAggregation>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SuspendableObject, AdaptablePredicate } from '../../types';
|
|
2
2
|
import { TypeHint } from './Types';
|
|
3
3
|
/**
|
|
4
4
|
* Defines a Filter applied on a Column using a Predicate
|
|
5
5
|
*/
|
|
6
|
-
export interface ColumnFilter extends
|
|
6
|
+
export interface ColumnFilter extends SuspendableObject {
|
|
7
7
|
/**
|
|
8
8
|
* Column where Filter should be applied
|
|
9
9
|
*/
|
|
@@ -13,21 +13,6 @@ export declare enum MathOperation {
|
|
|
13
13
|
Multiply = "Multiply",
|
|
14
14
|
Divide = "Divide"
|
|
15
15
|
}
|
|
16
|
-
export declare enum ReportColumnScope {
|
|
17
|
-
AllColumns = "AllColumns",
|
|
18
|
-
VisibleColumns = "VisibleColumns",
|
|
19
|
-
SelectedColumns = "SelectedColumns",
|
|
20
|
-
ScopeColumns = "ScopeColumns",
|
|
21
|
-
CustomColumns = "CustomColumns"
|
|
22
|
-
}
|
|
23
|
-
export declare enum ReportRowScope {
|
|
24
|
-
AllRows = "AllRows",
|
|
25
|
-
VisibleRows = "VisibleRows",
|
|
26
|
-
SelectedCellRows = "SelectedCellRows",
|
|
27
|
-
SelectedRows = "SelectedRows",
|
|
28
|
-
ExpressionRows = "ExpressionRows",
|
|
29
|
-
CustomRows = "CustomRows"
|
|
30
|
-
}
|
|
31
16
|
export declare enum ExportDestination {
|
|
32
17
|
Excel = "Excel",
|
|
33
18
|
CSV = "CSV",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// General Enums
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.ChangeDirection = exports.FilterOnDataChangeOptions = exports.SummaryOperation = exports.StatusColour = exports.ColumnMenuTab = exports.FontSize = exports.FontStyle = exports.FontWeight = exports.SelectionMode = exports.SortOrder = exports.ScheduleType = exports.ExportDestination = exports.
|
|
4
|
+
exports.ChangeDirection = exports.FilterOnDataChangeOptions = exports.SummaryOperation = exports.StatusColour = exports.ColumnMenuTab = exports.FontSize = exports.FontStyle = exports.FontWeight = exports.SelectionMode = exports.SortOrder = exports.ScheduleType = exports.ExportDestination = exports.MathOperation = exports.DataType = void 0;
|
|
5
5
|
var DataType;
|
|
6
6
|
(function (DataType) {
|
|
7
7
|
DataType["String"] = "String";
|
|
@@ -20,23 +20,6 @@ var MathOperation;
|
|
|
20
20
|
MathOperation["Divide"] = "Divide";
|
|
21
21
|
})(MathOperation = exports.MathOperation || (exports.MathOperation = {}));
|
|
22
22
|
// Enums used in Strategies
|
|
23
|
-
var ReportColumnScope;
|
|
24
|
-
(function (ReportColumnScope) {
|
|
25
|
-
ReportColumnScope["AllColumns"] = "AllColumns";
|
|
26
|
-
ReportColumnScope["VisibleColumns"] = "VisibleColumns";
|
|
27
|
-
ReportColumnScope["SelectedColumns"] = "SelectedColumns";
|
|
28
|
-
ReportColumnScope["ScopeColumns"] = "ScopeColumns";
|
|
29
|
-
ReportColumnScope["CustomColumns"] = "CustomColumns";
|
|
30
|
-
})(ReportColumnScope = exports.ReportColumnScope || (exports.ReportColumnScope = {}));
|
|
31
|
-
var ReportRowScope;
|
|
32
|
-
(function (ReportRowScope) {
|
|
33
|
-
ReportRowScope["AllRows"] = "AllRows";
|
|
34
|
-
ReportRowScope["VisibleRows"] = "VisibleRows";
|
|
35
|
-
ReportRowScope["SelectedCellRows"] = "SelectedCellRows";
|
|
36
|
-
ReportRowScope["SelectedRows"] = "SelectedRows";
|
|
37
|
-
ReportRowScope["ExpressionRows"] = "ExpressionRows";
|
|
38
|
-
ReportRowScope["CustomRows"] = "CustomRows";
|
|
39
|
-
})(ReportRowScope = exports.ReportRowScope || (exports.ReportRowScope = {}));
|
|
40
23
|
var ExportDestination;
|
|
41
24
|
(function (ExportDestination) {
|
|
42
25
|
ExportDestination["Excel"] = "Excel";
|
|
@@ -8,32 +8,32 @@ export interface SpecialColumnSettings {
|
|
|
8
8
|
Width?: number;
|
|
9
9
|
/**
|
|
10
10
|
* Whether Column is filterable
|
|
11
|
-
* @defaultValue
|
|
11
|
+
* @defaultValue false
|
|
12
12
|
*/
|
|
13
13
|
Filterable?: boolean;
|
|
14
14
|
/**
|
|
15
15
|
* Whether Column can be resized (by dragging column header edges)
|
|
16
|
-
* @defaultValue
|
|
16
|
+
* @defaultValue false
|
|
17
17
|
*/
|
|
18
18
|
Resizable?: boolean;
|
|
19
19
|
/**
|
|
20
20
|
* Whether Column can be grouped
|
|
21
|
-
* @defaultValue
|
|
21
|
+
* @defaultValue false
|
|
22
22
|
*/
|
|
23
23
|
Groupable?: boolean;
|
|
24
24
|
/**
|
|
25
25
|
* Whether Column is sortable
|
|
26
|
-
* @defaultValue
|
|
26
|
+
* @defaultValue false
|
|
27
27
|
*/
|
|
28
28
|
Sortable?: boolean;
|
|
29
29
|
/**
|
|
30
30
|
* Whether Column can be used when grid is in pivot mode
|
|
31
|
-
* @defaultValue
|
|
31
|
+
* @defaultValue false
|
|
32
32
|
*/
|
|
33
33
|
Pivotable?: boolean;
|
|
34
34
|
/**
|
|
35
35
|
* Whether Column can be used in an aggregation when grouping
|
|
36
|
-
* @defaultValue
|
|
36
|
+
* @defaultValue false
|
|
37
37
|
*/
|
|
38
38
|
Aggregatable?: boolean;
|
|
39
39
|
/**
|
|
@@ -29,13 +29,13 @@ export interface Report extends AdaptableObject {
|
|
|
29
29
|
*/
|
|
30
30
|
Name: SystemReportName | string;
|
|
31
31
|
/**
|
|
32
|
-
* Columns to display: options are 'AllColumns', 'VisibleColumns', 'SelectedColumns', 'ScopeColumns'
|
|
32
|
+
* Columns to display: options are 'AllColumns', 'VisibleColumns', 'SelectedColumns', 'ScopeColumns'
|
|
33
33
|
*/
|
|
34
|
-
ReportColumnScope:
|
|
34
|
+
ReportColumnScope: ReportColumnScope;
|
|
35
35
|
/**
|
|
36
|
-
* Rows to export: options are 'AllRows', 'VisibleRows', 'SelectedCellRows', 'SelectedRows', 'ExpressionRows'
|
|
36
|
+
* Rows to export: options are 'AllRows', 'VisibleRows', 'SelectedCellRows', 'SelectedRows', 'ExpressionRows'
|
|
37
37
|
*/
|
|
38
|
-
ReportRowScope:
|
|
38
|
+
ReportRowScope: ReportRowScope;
|
|
39
39
|
/**
|
|
40
40
|
* Columns Scope; only required if `ReportColumnScope` is 'ScopeColumns'
|
|
41
41
|
*/
|
|
@@ -79,6 +79,14 @@ export interface ReportData {
|
|
|
79
79
|
* Names of Reports provided by AdapTable
|
|
80
80
|
*/
|
|
81
81
|
export declare type SystemReportName = 'Visual Data' | 'All Data' | 'Current Data' | 'Selected Cells' | 'Selected Rows';
|
|
82
|
+
/**
|
|
83
|
+
* Columns to be included in a Report
|
|
84
|
+
*/
|
|
85
|
+
export declare type ReportColumnScope = 'AllColumns' | 'VisibleColumns' | 'SelectedColumns' | 'ScopeColumns';
|
|
86
|
+
/**
|
|
87
|
+
* AG Grid Row Data to be included in a Report
|
|
88
|
+
*/
|
|
89
|
+
export declare type ReportRowScope = 'AllRows' | 'VisibleRows' | 'SelectedCellRows' | 'SelectedRows' | 'ExpressionRows';
|
|
82
90
|
/**
|
|
83
91
|
* Array containing all System Report names
|
|
84
92
|
*/
|