@adaptabletools/adaptable 16.0.0-canary.2 → 16.0.0-canary.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base.css +31 -31
- package/base.css.map +1 -1
- package/bundle.cjs.js +155 -155
- package/index.css +39 -39
- package/index.css.map +1 -1
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +3 -1
- package/src/AdaptableOptions/ActionRowOptions.d.ts +8 -5
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +6 -2
- package/src/AdaptableOptions/FilterOptions.d.ts +1 -0
- package/src/AdaptableOptions/FormatColumnOptions.d.ts +7 -7
- package/src/AdaptableOptions/GroupingOptions.d.ts +0 -13
- package/src/AdaptableOptions/QuickSearchOptions.d.ts +1 -1
- package/src/AdaptableOptions/TeamSharingOptions.d.ts +5 -0
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +15 -5
- package/src/Api/ColumnApi.d.ts +18 -7
- package/src/Api/DataChangeHistoryApi.d.ts +6 -0
- package/src/Api/EventApi.d.ts +19 -6
- package/src/Api/Events/ChexboxColumnClicked.d.ts +1 -0
- package/src/Api/Events/ScheduleTriggered.d.ts +11 -0
- package/src/Api/Events/ScheduleTriggered.js +2 -0
- package/src/Api/Implementation/ActionRowApiImpl.js +7 -5
- package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ChartingApiImpl.js +4 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +4 -1
- package/src/Api/Implementation/ColumnApiImpl.js +22 -3
- package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +1 -0
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +3 -0
- package/src/Api/Implementation/PredicateApiImpl.d.ts +5 -5
- package/src/Api/Implementation/PredicateApiImpl.js +8 -8
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +4 -0
- package/src/Api/Implementation/ScheduleApiImpl.js +5 -0
- package/src/Api/Implementation/StyledColumnApiImpl.d.ts +0 -3
- package/src/Api/Implementation/StyledColumnApiImpl.js +0 -26
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +5 -4
- package/src/Api/Implementation/UserInterfaceApiImpl.js +5 -0
- package/src/Api/Internal/AdaptableInternalApi.js +2 -2
- package/src/Api/Internal/AlertInternalApi.js +7 -2
- package/src/Api/Internal/FilterInternalApi.js +8 -4
- package/src/Api/Internal/FormatColumnInternalApi.js +11 -13
- package/src/Api/Internal/ScheduleInternalApi.d.ts +8 -0
- package/src/Api/Internal/ScheduleInternalApi.js +20 -0
- package/src/Api/Internal/StyledColumnInternalApi.d.ts +5 -2
- package/src/Api/Internal/StyledColumnInternalApi.js +29 -2
- package/src/Api/Internal/UserInterfaceInternalApi.d.ts +5 -0
- package/src/Api/Internal/UserInterfaceInternalApi.js +18 -0
- package/src/Api/OptionsApi.d.ts +1 -1
- package/src/Api/PredicateApi.d.ts +5 -5
- package/src/Api/StyledColumnApi.d.ts +0 -14
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +7 -7
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +8 -15
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +65 -41
- package/src/PredefinedConfig/Common/Types.d.ts +1 -1
- package/src/PredefinedConfig/StyledColumnState.d.ts +3 -2
- package/src/PredefinedConfig/TeamSharingState.d.ts +1 -1
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +5 -0
- package/src/Redux/ActionsReducers/SystemRedux.js +17 -3
- package/src/Redux/Store/AdaptableStore.js +1 -2
- package/src/Strategy/AdaptableModuleBase.d.ts +6 -6
- package/src/Strategy/FlashingCellModule.js +6 -2
- package/src/Strategy/Interface/IModule.d.ts +2 -2
- package/src/Strategy/ScheduleModule.js +3 -2
- package/src/Strategy/StyledColumnModule.js +24 -15
- package/src/Utilities/Constants/DocumentationLinkConstants.js +1 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +4 -2
- package/src/Utilities/MenuItem.d.ts +4 -4
- package/src/Utilities/Services/MetamodelService.js +5 -1
- package/src/Utilities/Services/ModuleService.js +1 -1
- package/src/Utilities/Services/QueryLanguageService.js +1 -1
- package/src/Utilities/Services/RowEditService.js +1 -1
- package/src/Utilities/Services/TeamSharingService.d.ts +2 -0
- package/src/Utilities/Services/TeamSharingService.js +60 -3
- package/src/Utilities/Services/ValidationService.js +6 -2
- package/src/View/Charting/useChartingElements.js +1 -1
- package/src/View/Components/AdaptableButton/index.d.ts +3 -0
- package/src/View/Components/AdaptableButton/index.js +18 -0
- package/src/View/Components/AdaptableIconComponent/index.d.ts +7 -0
- package/src/View/Components/AdaptableIconComponent/index.js +16 -0
- package/src/View/Components/AdaptableIconComponent/useCustomIcon.d.ts +2 -0
- package/src/View/Components/AdaptableIconComponent/useCustomIcon.js +12 -0
- package/src/{components → View/Components}/Badge/index.d.ts +1 -1
- package/src/{components → View/Components}/Badge/index.js +1 -1
- package/src/View/Components/FilterForm/FilterForm.js +1 -1
- package/src/View/Components/FilterForm/ListBoxMenu.js +2 -2
- package/src/View/Components/FilterForm/QuickFilterForm.js +3 -2
- package/src/View/Components/Panels/PanelWithButton.d.ts +2 -2
- package/src/View/Components/Panels/PanelWithImage.d.ts +3 -3
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/TopBar.js +2 -3
- package/src/View/Components/Popups/AdaptablePopupAlert.js +1 -1
- package/src/View/Components/PredicateEditor/PredicateEditor.js +4 -4
- package/src/View/Dashboard/CustomToolbarWrapper.js +2 -2
- package/src/View/Dashboard/Dashboard.js +3 -3
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.d.ts +1 -0
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +13 -7
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +7 -1
- package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +1 -1
- package/src/View/DataChangeHistory/buildActionColumnButton.js +9 -2
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +1 -5
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +2 -9
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +0 -1
- package/src/View/UIHelper.d.ts +2 -2
- package/src/agGrid/ActionColumnRenderer.d.ts +0 -2
- package/src/agGrid/ActionColumnRenderer.js +20 -5
- package/src/agGrid/Adaptable.d.ts +5 -2
- package/src/agGrid/Adaptable.js +61 -25
- package/src/agGrid/BadgeRenderer.js +19 -20
- package/src/agGrid/CheckboxRenderer.js +1 -1
- package/src/agGrid/agGridHelper.js +2 -0
- package/src/agGrid/agGridMenuHelper.js +11 -4
- package/src/agGrid/attachAddaptableColumnTypes.d.ts +1 -0
- package/src/agGrid/attachAddaptableColumnTypes.js +5 -4
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +1 -1
- package/src/components/Icon/index.d.ts +11 -0
- package/src/components/{AdaptableIconComponent → Icon}/index.js +10 -10
- package/src/components/IconSelector/IconSelector.js +3 -3
- package/src/components/SimpleButton/index.js +10 -10
- package/src/components/Toggle/Toggle.d.ts +2 -2
- package/src/components/Toggle/Toggle.js +2 -2
- package/src/components/icons/index.d.ts +4 -4
- package/src/components/icons/index.js +6 -6
- package/src/metamodel/adaptable.metamodel.d.ts +72 -31
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +6 -5
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/View/Components/AdaptableViewIcon/index.d.ts +0 -10
- package/src/View/Components/AdaptableViewIcon/index.js +0 -18
- package/src/components/AdaptableIconComponent/index.d.ts +0 -11
|
@@ -4,6 +4,7 @@ exports.StyledColumnInternalApi = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const ApiBase_1 = require("../Implementation/ApiBase");
|
|
6
6
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
7
|
+
const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
|
|
7
8
|
class StyledColumnInternalApi extends ApiBase_1.ApiBase {
|
|
8
9
|
getMinValueForNumericColumn(column) {
|
|
9
10
|
if (column.dataType !== 'Number') {
|
|
@@ -245,7 +246,7 @@ class StyledColumnInternalApi extends ApiBase_1.ApiBase {
|
|
|
245
246
|
return cellColorRange.Min == 'Col-Min' || cellColorRange.Max == 'Col-Max';
|
|
246
247
|
})))) !== null && _e !== void 0 ? _e : false);
|
|
247
248
|
}
|
|
248
|
-
getApplicableBadge(styledColumn,
|
|
249
|
+
getApplicableBadge(styledColumn, context) {
|
|
249
250
|
var _a, _b;
|
|
250
251
|
if (!((_a = styledColumn.BadgeStyle) === null || _a === void 0 ? void 0 : _a.Badges.length)) {
|
|
251
252
|
return null;
|
|
@@ -262,7 +263,7 @@ class StyledColumnInternalApi extends ApiBase_1.ApiBase {
|
|
|
262
263
|
}
|
|
263
264
|
}
|
|
264
265
|
for (let badge of badgesWithoutAll) {
|
|
265
|
-
if (this.getPredicateApi().handlePredicate(badge.Predicate,
|
|
266
|
+
if (this.getPredicateApi().handlePredicate(badge.Predicate, context, false)) {
|
|
266
267
|
return badge;
|
|
267
268
|
}
|
|
268
269
|
}
|
|
@@ -281,5 +282,31 @@ class StyledColumnInternalApi extends ApiBase_1.ApiBase {
|
|
|
281
282
|
.predicateApi.internalApi.getBadgeStylePredicateDefs(scope)
|
|
282
283
|
.filter((predicate) => this.adaptable.api.scopeApi.isColumnInScope(column, predicate.columnScope));
|
|
283
284
|
}
|
|
285
|
+
// Deprecated Checkbox Column functions
|
|
286
|
+
getCheckBoxStyleStyledColumn(column) {
|
|
287
|
+
var _a;
|
|
288
|
+
if (column.dataType != 'Boolean') {
|
|
289
|
+
return undefined;
|
|
290
|
+
}
|
|
291
|
+
const checkBoxFormatColumns = (_a = this.getAdaptableApi().styledColumnApi.getStyledColumnState().StyledColumns) === null || _a === void 0 ? void 0 : _a.filter((sc) => sc === null || sc === void 0 ? void 0 : sc.CheckBoxStyle);
|
|
292
|
+
const styledColumn = checkBoxFormatColumns.find((sc) => sc.ColumnId == column.columnId);
|
|
293
|
+
return styledColumn;
|
|
294
|
+
}
|
|
295
|
+
isCheckBoxStyleStyledColumn(column) {
|
|
296
|
+
const styledColumn = this.getCheckBoxStyleStyledColumn(column);
|
|
297
|
+
return Helper_1.default.objectExists(styledColumn);
|
|
298
|
+
}
|
|
299
|
+
fireCheckboxColumnClickedEvent(columnId, rowData, primaryKeyValue, isChecked) {
|
|
300
|
+
let checkboxColumnClickedInfo = {
|
|
301
|
+
adaptableApi: this.adaptable.api,
|
|
302
|
+
column: this.adaptable.api.columnApi.getColumnWithColumnId(columnId),
|
|
303
|
+
rowData: rowData,
|
|
304
|
+
primaryKeyValue: primaryKeyValue,
|
|
305
|
+
isChecked: isChecked,
|
|
306
|
+
userName: this.adaptable.api.optionsApi.getUserName(),
|
|
307
|
+
adaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
|
|
308
|
+
};
|
|
309
|
+
this.adaptable.api.eventApi.emit('CheckboxColumnClicked', checkboxColumnClickedInfo);
|
|
310
|
+
}
|
|
284
311
|
}
|
|
285
312
|
exports.StyledColumnInternalApi = StyledColumnInternalApi;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserInterfaceInternalApi = void 0;
|
|
4
|
+
const ApiBase_1 = require("../Implementation/ApiBase");
|
|
5
|
+
class UserInterfaceInternalApi extends ApiBase_1.ApiBase {
|
|
6
|
+
prepareAdaptableIconDef(icon) {
|
|
7
|
+
if (icon && 'name' in icon) {
|
|
8
|
+
let customIcon = icon && 'name' in icon
|
|
9
|
+
? this.adaptable.api.userInterfaceApi.getCustomIconDefinition(icon.name)
|
|
10
|
+
: null;
|
|
11
|
+
if (customIcon) {
|
|
12
|
+
icon = customIcon;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return icon;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.UserInterfaceInternalApi = UserInterfaceInternalApi;
|
package/src/Api/OptionsApi.d.ts
CHANGED
|
@@ -123,7 +123,7 @@ export interface OptionsApi {
|
|
|
123
123
|
*/
|
|
124
124
|
getNotificationsOptions(): Readonly<NotificationsOptions>;
|
|
125
125
|
/**
|
|
126
|
-
* Returns `AdaptableOptions.
|
|
126
|
+
* Returns `AdaptableOptions.quickSearchOptions`
|
|
127
127
|
*/
|
|
128
128
|
getQuickSearchOptions(): Readonly<QuickSearchOptions>;
|
|
129
129
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AdaptableColumnPredicate } from '../../types';
|
|
2
|
-
import { AdaptablePredicateDef, AdaptablePredicate,
|
|
2
|
+
import { AdaptablePredicateDef, AdaptablePredicate, PredicateDefHandlerContext, PredicateModuleScope } from '../PredefinedConfig/Common/AdaptablePredicate';
|
|
3
3
|
/**
|
|
4
4
|
* Functions which manage the Predicate object in AdapTable
|
|
5
5
|
*/
|
|
@@ -58,7 +58,7 @@ export interface PredicateApi {
|
|
|
58
58
|
* @param params
|
|
59
59
|
* @param defaultReturn
|
|
60
60
|
*/
|
|
61
|
-
handleColumnPredicate(predicate: AdaptableColumnPredicate, params: Omit<
|
|
61
|
+
handleColumnPredicate(predicate: AdaptableColumnPredicate, params: Omit<PredicateDefHandlerContext, 'adaptableApi' | 'inputs'>, defaultReturn: boolean): boolean;
|
|
62
62
|
/**
|
|
63
63
|
* Same has handle predicates but it tales into account predicate column id.
|
|
64
64
|
*
|
|
@@ -66,19 +66,19 @@ export interface PredicateApi {
|
|
|
66
66
|
* @param params
|
|
67
67
|
* @param defaultReturn
|
|
68
68
|
*/
|
|
69
|
-
handleColumnPredicates(predicate: AdaptableColumnPredicate[], params: Omit<
|
|
69
|
+
handleColumnPredicates(predicate: AdaptableColumnPredicate[], params: Omit<PredicateDefHandlerContext, 'adaptableApi' | 'inputs'>, defaultReturn: boolean): boolean;
|
|
70
70
|
/**
|
|
71
71
|
* Main Handler function for a Predicate Definition - used by AdapTableQL
|
|
72
72
|
* @param predicate Predicate to handle
|
|
73
73
|
* @param params Additional inputs as required
|
|
74
74
|
* @param defaultReturn Whether to return the default
|
|
75
75
|
*/
|
|
76
|
-
handlePredicate(predicate: AdaptablePredicate | undefined, params: Omit<
|
|
76
|
+
handlePredicate(predicate: AdaptablePredicate | undefined, params: Omit<PredicateDefHandlerContext, 'adaptableApi' | 'inputs'>, defaultReturn: boolean): boolean;
|
|
77
77
|
/**
|
|
78
78
|
* Handle and compose (with AND) the given Predicate Definitions
|
|
79
79
|
* @param predicate Predicate to handle
|
|
80
80
|
* @param params Additional inputs as required
|
|
81
81
|
* @param defaultReturn Whether to return the default
|
|
82
82
|
*/
|
|
83
|
-
handlePredicates(predicates: AdaptablePredicate[], params: Omit<
|
|
83
|
+
handlePredicates(predicates: AdaptablePredicate[], params: Omit<PredicateDefHandlerContext, 'adaptableApi' | 'inputs'>, defaultReturn: boolean): boolean;
|
|
84
84
|
}
|
|
@@ -57,11 +57,6 @@ export interface StyledColumnApi {
|
|
|
57
57
|
* @param styledColumn
|
|
58
58
|
*/
|
|
59
59
|
unSuspendStyledColumn(styledColumn: StyledColumn): void;
|
|
60
|
-
/**
|
|
61
|
-
* Returns first Styled Column that contains checkbox style
|
|
62
|
-
* @param columnId column to check
|
|
63
|
-
*/
|
|
64
|
-
getCheckBoxStyleStyledColumn(column: AdaptableColumn): StyledColumn | undefined;
|
|
65
60
|
/**
|
|
66
61
|
* Checks whether Column with given `columnId` has a PercentBar Style applied
|
|
67
62
|
* @param columnId column ID
|
|
@@ -77,15 +72,6 @@ export interface StyledColumnApi {
|
|
|
77
72
|
* @param columnId column ID
|
|
78
73
|
*/
|
|
79
74
|
isSparklineStyleStyledColumn(column: AdaptableColumn): boolean;
|
|
80
|
-
/**
|
|
81
|
-
* Whether given column is a (boolean) checkbox column
|
|
82
|
-
* @param columnId column to check
|
|
83
|
-
*/
|
|
84
|
-
isCheckBoxStyleStyledColumn(column: AdaptableColumn): boolean;
|
|
85
|
-
/**
|
|
86
|
-
* Publishes the CheckboxColumnClickedEvent - when the checkbox in an Checkbox Column is clicked
|
|
87
|
-
*/
|
|
88
|
-
fireCheckboxColumnClickedEvent(columnId: string, rowData: any, primaryKeyValue: any, isChecked: boolean): void;
|
|
89
75
|
/**
|
|
90
76
|
* Returns a Styled Column for a given column
|
|
91
77
|
* @param column Column to check
|
|
@@ -2,7 +2,7 @@ import { AdaptableObject } from './AdaptableObject';
|
|
|
2
2
|
/**
|
|
3
3
|
* Type of data stored in an Adaptable Column
|
|
4
4
|
*/
|
|
5
|
-
export declare type AdaptableColumnDataType = 'String' | 'Number' | 'Boolean' | 'Date' | 'Object' | 'NumberArray' | 'TupleNumberArray' | 'ObjectNumberArray' | 'Unknown';
|
|
5
|
+
export declare type AdaptableColumnDataType = 'String' | 'Number' | 'Boolean' | 'Date' | 'Object' | 'StringArray' | 'NumberArray' | 'TupleNumberArray' | 'ObjectNumberArray' | 'Unknown';
|
|
6
6
|
/**
|
|
7
7
|
* Base class for Adaptable Column containing most important properties
|
|
8
8
|
*/
|
|
@@ -3,17 +3,17 @@ import { TypeHint } from './Types';
|
|
|
3
3
|
/**
|
|
4
4
|
* Defines an icon to be used in AdapTable (e.g. in Dashboard Header, Buttons, Menu, etc.)
|
|
5
5
|
*/
|
|
6
|
-
export declare type AdaptableIcon =
|
|
6
|
+
export declare type AdaptableIcon = AdaptableSystemIcon | AdaptableCustomIcon | AdaptableElementIcon;
|
|
7
7
|
/**
|
|
8
|
-
* Defines an icon from the
|
|
8
|
+
* Defines an icon from the System AdapTable icon set
|
|
9
9
|
*/
|
|
10
|
-
export interface
|
|
10
|
+
export interface AdaptableSystemIcon extends AdaptableBaseIcon {
|
|
11
11
|
/**
|
|
12
12
|
* The name of the icon to use (referencing the AdapTable Icon Library)
|
|
13
13
|
*
|
|
14
14
|
* The icon can be a adaptable icon or a custom one defined in `interfaceOptions.customIcons`
|
|
15
15
|
*/
|
|
16
|
-
name: TypeHint<string,
|
|
16
|
+
name: TypeHint<string, AdaptableSystemIconName>;
|
|
17
17
|
/**
|
|
18
18
|
* The size (in pixels) of the SVG icon (defaults to `17px`)
|
|
19
19
|
*
|
|
@@ -23,7 +23,7 @@ export interface AdaptableInternalIcon extends AdaptableBaseIcon {
|
|
|
23
23
|
/**
|
|
24
24
|
* Defines an icon from an external source
|
|
25
25
|
*/
|
|
26
|
-
export interface
|
|
26
|
+
export interface AdaptableCustomIcon extends AdaptableBaseIcon {
|
|
27
27
|
/**
|
|
28
28
|
* The URL of the icon to use
|
|
29
29
|
*/
|
|
@@ -52,6 +52,6 @@ export interface AdaptableBaseIcon {
|
|
|
52
52
|
style?: React.CSSProperties;
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
|
-
* All AdapTable
|
|
55
|
+
* All AdapTable System Icon names
|
|
56
56
|
*/
|
|
57
|
-
export declare type
|
|
57
|
+
export declare type AdaptableSystemIconName = 'add' | 'alert' | 'building' | 'laptop' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'arrow-up-long' | 'arrow-down-long' | 'arrow-expand' | 'paperclip' | 'unfilled-circle' | 'boolean-list' | 'broadcast' | 'brush' | 'spanner' | 'edit-table' | 'chart-and-grid' | 'calendar' | 'call' | 'cells' | 'flag' | 'chart' | 'chat' | 'check' | 'check-circle' | 'checked' | 'clone' | 'close' | 'cloud-upload' | 'collapse' | 'column-add' | 'columns' | 'filter-list' | 'comment' | 'contains' | 'dashboard' | 'data-set' | 'date-range' | 'delete' | 'division' | 'dock' | 'drag' | 'edit' | 'ends-with' | 'equals' | 'equation' | 'error' | 'expand' | 'exponent' | 'export' | 'export-data' | 'fast-backward' | 'fast-forward' | 'filter' | 'lightning' | 'folder' | 'folder-open' | 'folder-shared' | 'color-palette' | 'horizontal-lines' | 'function' | 'greater-than' | 'greater-than-or-equal' | 'history' | 'home' | 'import-export' | 'info' | 'brain' | 'download' | 'grid' | 'less-than' | 'less-than-or-equal' | 'list' | 'logout' | 'menu' | 'minus' | 'multiplication' | 'newpage' | 'news' | 'filled-circle' | 'not-contains' | 'not-equal' | 'open-in-new' | 'pause' | 'percent' | 'percent-tag' | 'person' | 'pie-chart' | 'play' | 'plus' | 'add-circle' | 'search' | 'search-table' | 'quote' | 'refresh' | 'regex' | 'reminder' | 'save' | 'schedule' | 'settings' | 'link' | 'sort-asc' | 'sort-desc' | 'spark-line' | 'starts-with' | 'assignment' | 'statusbar' | 'stop' | 'traffic-lights' | 'tab-unselected' | 'theme' | 'clipboard' | 'target' | 'triangle-down' | 'triangle-up' | 'unchecked' | 'undo' | 'downloaded' | 'upload' | 'warning' | 'gradient' | 'badge' | 'italic' | 'bold' | 'align-left' | 'align-right' | 'align-center' | 'align-justify' | 'underline' | 'strikethrough' | 'overline' | 'case-upper' | 'case-lower' | 'case-sentence' | 'visibility-on' | 'visibility-off' | 'visibility-off-bold' | 'visibility-on-bold';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { AdaptableScope } from './AdaptableScope';
|
|
2
|
-
import { AdaptableColumn, AdaptableColumnDataType } from './AdaptableColumn';
|
|
3
|
-
import { AdaptableApi, AdaptableIcon, ColumnFilter } from '../../types';
|
|
4
1
|
import { IRowNode } from '@ag-grid-community/core';
|
|
2
|
+
import { AdaptableIcon, ColumnFilter } from '../../types';
|
|
3
|
+
import { AdaptableColumn, AdaptableColumnDataType } from './AdaptableColumn';
|
|
4
|
+
import { AdaptableScope } from './AdaptableScope';
|
|
5
|
+
import { BaseContext } from './BaseContext';
|
|
5
6
|
/**
|
|
6
7
|
* Predicate object used by AdapTableQL - essentially a boolean function
|
|
7
8
|
*/
|
|
@@ -51,7 +52,7 @@ export interface AdaptablePredicateDef {
|
|
|
51
52
|
/**
|
|
52
53
|
* Actual boolean function invoked when evaluating the Predicate
|
|
53
54
|
*/
|
|
54
|
-
handler: (params:
|
|
55
|
+
handler: (params: PredicateDefHandlerContext) => boolean;
|
|
55
56
|
/**
|
|
56
57
|
* String representation of the Predicate
|
|
57
58
|
*/
|
|
@@ -66,10 +67,6 @@ export interface AdaptablePredicateDef {
|
|
|
66
67
|
* Keyboard shortcuts to initiate predicate - used in Quick Filter bar
|
|
67
68
|
*/
|
|
68
69
|
shortcuts?: string[];
|
|
69
|
-
/**
|
|
70
|
-
* Display this predicate only in Quick Filter Bar (and NOT in Filter Form)
|
|
71
|
-
*/
|
|
72
|
-
onlyQuickFilter?: boolean;
|
|
73
70
|
}
|
|
74
71
|
/**
|
|
75
72
|
* Defines an Input to a Predicate
|
|
@@ -82,7 +79,7 @@ export interface PredicateDefInput {
|
|
|
82
79
|
/**
|
|
83
80
|
* Object passed into an Adaptable Predicate Definition
|
|
84
81
|
*/
|
|
85
|
-
export interface
|
|
82
|
+
export interface PredicateDefHandlerContext extends BaseContext {
|
|
86
83
|
/**
|
|
87
84
|
* Raw value in cell being evaluated
|
|
88
85
|
*/
|
|
@@ -99,18 +96,14 @@ export interface PredicateDefHandlerParams {
|
|
|
99
96
|
* AG Grid Row node which contains the cell
|
|
100
97
|
*/
|
|
101
98
|
node: IRowNode;
|
|
102
|
-
/**
|
|
103
|
-
* Any inputs required to perform evaluation
|
|
104
|
-
*/
|
|
105
|
-
inputs: any[];
|
|
106
99
|
/**
|
|
107
100
|
* Adaptable Column which contains the cell
|
|
108
101
|
*/
|
|
109
102
|
column: AdaptableColumn;
|
|
110
103
|
/**
|
|
111
|
-
*
|
|
104
|
+
* Any (optional) inputs required to perform evaluation
|
|
112
105
|
*/
|
|
113
|
-
|
|
106
|
+
inputs?: any[];
|
|
114
107
|
}
|
|
115
108
|
/**
|
|
116
109
|
* Inputs required for a Predicate
|
|
@@ -2,21 +2,22 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SystemBadgeStylePredicateIds = exports.SystemFlashingCellPredicateIds = exports.SystemFormatColumnPredicateIds = exports.SystemAlertPredicateIds = exports.SystemFilterPredicateIds = exports.SystemPredicateDefs = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
|
|
6
|
-
const isToday_1 = tslib_1.__importDefault(require("date-fns/isToday"));
|
|
7
|
-
const isYesterday_1 = tslib_1.__importDefault(require("date-fns/isYesterday"));
|
|
8
|
-
const isTomorrow_1 = tslib_1.__importDefault(require("date-fns/isTomorrow"));
|
|
9
|
-
const isThisWeek_1 = tslib_1.__importDefault(require("date-fns/isThisWeek"));
|
|
10
|
-
const isThisMonth_1 = tslib_1.__importDefault(require("date-fns/isThisMonth"));
|
|
11
|
-
const isThisQuarter_1 = tslib_1.__importDefault(require("date-fns/isThisQuarter"));
|
|
12
|
-
const isThisYear_1 = tslib_1.__importDefault(require("date-fns/isThisYear"));
|
|
13
|
-
const isPast_1 = tslib_1.__importDefault(require("date-fns/isPast"));
|
|
14
|
-
const isFuture_1 = tslib_1.__importDefault(require("date-fns/isFuture"));
|
|
15
5
|
const isAfter_1 = tslib_1.__importDefault(require("date-fns/isAfter"));
|
|
16
6
|
const isBefore_1 = tslib_1.__importDefault(require("date-fns/isBefore"));
|
|
7
|
+
const isEqual_1 = tslib_1.__importDefault(require("date-fns/isEqual"));
|
|
8
|
+
const isFuture_1 = tslib_1.__importDefault(require("date-fns/isFuture"));
|
|
9
|
+
const isPast_1 = tslib_1.__importDefault(require("date-fns/isPast"));
|
|
17
10
|
const isSameDay_1 = tslib_1.__importDefault(require("date-fns/isSameDay"));
|
|
11
|
+
const isThisMonth_1 = tslib_1.__importDefault(require("date-fns/isThisMonth"));
|
|
12
|
+
const isThisQuarter_1 = tslib_1.__importDefault(require("date-fns/isThisQuarter"));
|
|
13
|
+
const isThisWeek_1 = tslib_1.__importDefault(require("date-fns/isThisWeek"));
|
|
14
|
+
const isThisYear_1 = tslib_1.__importDefault(require("date-fns/isThisYear"));
|
|
15
|
+
const isToday_1 = tslib_1.__importDefault(require("date-fns/isToday"));
|
|
16
|
+
const isTomorrow_1 = tslib_1.__importDefault(require("date-fns/isTomorrow"));
|
|
17
|
+
const isYesterday_1 = tslib_1.__importDefault(require("date-fns/isYesterday"));
|
|
18
18
|
const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
|
|
19
19
|
const DateHelper_1 = require("../../Utilities/Helpers/DateHelper");
|
|
20
|
+
const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
|
|
20
21
|
/**
|
|
21
22
|
* Array of Predicate Defs which are shipped by AdapTable
|
|
22
23
|
*/
|
|
@@ -27,20 +28,31 @@ exports.SystemPredicateDefs = [
|
|
|
27
28
|
icon: { text: 'IN' },
|
|
28
29
|
columnScope: { DataTypes: ['String', 'Number', 'Date'] },
|
|
29
30
|
moduleScope: ['filter', 'formatColumn', 'alert', 'badgeStyle'],
|
|
30
|
-
handler: ({ inputs, column, value }) => {
|
|
31
|
+
handler: ({ inputs, column, value, adaptableApi }) => {
|
|
31
32
|
if (inputs.length === 0) {
|
|
32
33
|
return true;
|
|
33
34
|
}
|
|
34
35
|
if (column.dataType === 'Date') {
|
|
35
36
|
return inputs.some((input) => {
|
|
36
|
-
|
|
37
|
+
if (adaptableApi.optionsApi.getFilterOptions().filterUsingTime) {
|
|
38
|
+
return (0, isEqual_1.default)(input, value);
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
return (0, isSameDay_1.default)(input, value);
|
|
42
|
+
}
|
|
37
43
|
});
|
|
38
44
|
}
|
|
39
45
|
if (column.dataType === 'Number') {
|
|
40
46
|
return inputs.includes(value);
|
|
41
47
|
}
|
|
42
48
|
if (column.dataType === 'String') {
|
|
43
|
-
return
|
|
49
|
+
return adaptableApi.internalApi.isTextComparisonCaseSensitive()
|
|
50
|
+
? inputs
|
|
51
|
+
.map((i) => {
|
|
52
|
+
return i === null || i === void 0 ? void 0 : i.toLocaleLowerCase();
|
|
53
|
+
})
|
|
54
|
+
.includes(value === null || value === void 0 ? void 0 : value.toLocaleLowerCase())
|
|
55
|
+
: inputs.includes(value);
|
|
44
56
|
}
|
|
45
57
|
return true;
|
|
46
58
|
},
|
|
@@ -53,21 +65,34 @@ exports.SystemPredicateDefs = [
|
|
|
53
65
|
icon: { text: '!IN' },
|
|
54
66
|
columnScope: { DataTypes: ['String', 'Number', 'Date'] },
|
|
55
67
|
moduleScope: ['filter', 'formatColumn', 'alert', 'badgeStyle'],
|
|
56
|
-
handler: ({ inputs, column, value }) => {
|
|
68
|
+
handler: ({ inputs, column, value, adaptableApi }) => {
|
|
57
69
|
// basically negation of IN
|
|
58
70
|
if (inputs.length === 0) {
|
|
59
71
|
return true;
|
|
60
72
|
}
|
|
61
73
|
if (column.dataType === 'Date') {
|
|
62
|
-
|
|
63
|
-
return
|
|
64
|
-
|
|
74
|
+
if (adaptableApi.optionsApi.getFilterOptions().filterUsingTime) {
|
|
75
|
+
return inputs.every((input) => {
|
|
76
|
+
return !(0, isEqual_1.default)(input, value);
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
return inputs.every((input) => {
|
|
81
|
+
return !(0, isSameDay_1.default)(input, value);
|
|
82
|
+
});
|
|
83
|
+
}
|
|
65
84
|
}
|
|
66
85
|
if (column.dataType === 'Number') {
|
|
67
86
|
return !inputs.includes(value);
|
|
68
87
|
}
|
|
69
88
|
if (column.dataType === 'String') {
|
|
70
|
-
return
|
|
89
|
+
return adaptableApi.internalApi.isTextComparisonCaseSensitive()
|
|
90
|
+
? !inputs
|
|
91
|
+
.map((i) => {
|
|
92
|
+
return i === null || i === void 0 ? void 0 : i.toLocaleLowerCase();
|
|
93
|
+
})
|
|
94
|
+
.includes(value === null || value === void 0 ? void 0 : value.toLocaleLowerCase())
|
|
95
|
+
: !inputs.includes(value);
|
|
71
96
|
}
|
|
72
97
|
return true;
|
|
73
98
|
},
|
|
@@ -226,11 +251,11 @@ exports.SystemPredicateDefs = [
|
|
|
226
251
|
columnScope: { DataTypes: ['String'] },
|
|
227
252
|
moduleScope: ['filter', 'alert', 'flashingcell', 'formatColumn', 'badgeStyle'],
|
|
228
253
|
inputs: [{ type: 'text' }],
|
|
229
|
-
handler: ({ value, inputs,
|
|
254
|
+
handler: ({ value, inputs, adaptableApi }) => {
|
|
230
255
|
if (!value) {
|
|
231
256
|
return false;
|
|
232
257
|
}
|
|
233
|
-
const ignoreCase = !
|
|
258
|
+
const ignoreCase = !adaptableApi.internalApi.isTextComparisonCaseSensitive();
|
|
234
259
|
const v = ignoreCase ? String(value).toLocaleLowerCase() : String(value);
|
|
235
260
|
const i = ignoreCase ? String(inputs[0]).toLocaleLowerCase() : String(inputs[0]);
|
|
236
261
|
return v == i;
|
|
@@ -245,11 +270,11 @@ exports.SystemPredicateDefs = [
|
|
|
245
270
|
columnScope: { DataTypes: ['String'] },
|
|
246
271
|
moduleScope: ['filter', 'alert', 'flashingcell', 'formatColumn', 'badgeStyle'],
|
|
247
272
|
inputs: [{ type: 'text' }],
|
|
248
|
-
handler: ({ value, inputs,
|
|
273
|
+
handler: ({ value, inputs, adaptableApi }) => {
|
|
249
274
|
if (!value) {
|
|
250
275
|
return true;
|
|
251
276
|
}
|
|
252
|
-
const ignoreCase = !
|
|
277
|
+
const ignoreCase = !adaptableApi.internalApi.isTextComparisonCaseSensitive();
|
|
253
278
|
const v = ignoreCase ? String(value).toLocaleLowerCase() : String(value);
|
|
254
279
|
const i = ignoreCase ? String(inputs[0]).toLocaleLowerCase() : String(inputs[0]);
|
|
255
280
|
return v != i;
|
|
@@ -264,11 +289,11 @@ exports.SystemPredicateDefs = [
|
|
|
264
289
|
columnScope: { DataTypes: ['String'] },
|
|
265
290
|
moduleScope: ['filter', 'alert', 'flashingcell', 'formatColumn', 'badgeStyle'],
|
|
266
291
|
inputs: [{ type: 'text' }],
|
|
267
|
-
handler: ({ value, inputs,
|
|
292
|
+
handler: ({ value, inputs, adaptableApi }) => {
|
|
268
293
|
if (!value) {
|
|
269
294
|
return false;
|
|
270
295
|
}
|
|
271
|
-
const ignoreCase = !
|
|
296
|
+
const ignoreCase = !adaptableApi.internalApi.isTextComparisonCaseSensitive();
|
|
272
297
|
const v = ignoreCase ? String(value).toLocaleLowerCase() : String(value);
|
|
273
298
|
const i = ignoreCase ? String(inputs[0]).toLocaleLowerCase() : String(inputs[0]);
|
|
274
299
|
return v.indexOf(i) !== -1;
|
|
@@ -282,11 +307,11 @@ exports.SystemPredicateDefs = [
|
|
|
282
307
|
columnScope: { DataTypes: ['String'] },
|
|
283
308
|
moduleScope: ['filter', 'alert', 'flashingcell', 'formatColumn', 'badgeStyle'],
|
|
284
309
|
inputs: [{ type: 'text' }],
|
|
285
|
-
handler: ({ value, inputs,
|
|
310
|
+
handler: ({ value, inputs, adaptableApi }) => {
|
|
286
311
|
if (!value) {
|
|
287
312
|
return true;
|
|
288
313
|
}
|
|
289
|
-
const ignoreCase = !
|
|
314
|
+
const ignoreCase = !adaptableApi.internalApi.isTextComparisonCaseSensitive();
|
|
290
315
|
const v = ignoreCase ? String(value).toLocaleLowerCase() : String(value);
|
|
291
316
|
const i = ignoreCase ? String(inputs[0]).toLocaleLowerCase() : String(inputs[0]);
|
|
292
317
|
return v.indexOf(i) === -1;
|
|
@@ -300,11 +325,11 @@ exports.SystemPredicateDefs = [
|
|
|
300
325
|
columnScope: { DataTypes: ['String'] },
|
|
301
326
|
moduleScope: ['filter', 'alert', 'flashingcell', 'formatColumn', 'badgeStyle'],
|
|
302
327
|
inputs: [{ type: 'text' }],
|
|
303
|
-
handler: ({ value, inputs,
|
|
328
|
+
handler: ({ value, inputs, adaptableApi }) => {
|
|
304
329
|
if (!value) {
|
|
305
330
|
return false;
|
|
306
331
|
}
|
|
307
|
-
const ignoreCase = !
|
|
332
|
+
const ignoreCase = !adaptableApi.internalApi.isTextComparisonCaseSensitive();
|
|
308
333
|
const v = ignoreCase ? String(value).toLocaleLowerCase() : String(value);
|
|
309
334
|
const i = ignoreCase ? String(inputs[0]).toLocaleLowerCase() : String(inputs[0]);
|
|
310
335
|
return v.startsWith(i);
|
|
@@ -318,11 +343,11 @@ exports.SystemPredicateDefs = [
|
|
|
318
343
|
columnScope: { DataTypes: ['String'] },
|
|
319
344
|
moduleScope: ['filter', 'alert', 'flashingcell', 'formatColumn', 'badgeStyle'],
|
|
320
345
|
inputs: [{ type: 'text' }],
|
|
321
|
-
handler: ({ value, inputs,
|
|
346
|
+
handler: ({ value, inputs, adaptableApi }) => {
|
|
322
347
|
if (!value) {
|
|
323
348
|
return false;
|
|
324
349
|
}
|
|
325
|
-
const ignoreCase = !
|
|
350
|
+
const ignoreCase = !adaptableApi.internalApi.isTextComparisonCaseSensitive();
|
|
326
351
|
const v = ignoreCase ? String(value).toLocaleLowerCase() : String(value);
|
|
327
352
|
const i = ignoreCase ? String(inputs[0]).toLocaleLowerCase() : String(inputs[0]);
|
|
328
353
|
return v.endsWith(i);
|
|
@@ -458,7 +483,7 @@ exports.SystemPredicateDefs = [
|
|
|
458
483
|
icon: { name: 'calendar' },
|
|
459
484
|
columnScope: { DataTypes: ['Date'] },
|
|
460
485
|
moduleScope: ['filter', 'alert', 'flashingcell', 'formatColumn'],
|
|
461
|
-
handler: ({ value,
|
|
486
|
+
handler: ({ value, adaptableApi }) => (0, isSameDay_1.default)((0, DateHelper_1.parseDateValue)(value), adaptableApi.calendarApi.getNextWorkingDay()),
|
|
462
487
|
},
|
|
463
488
|
{
|
|
464
489
|
id: 'LastWorkDay',
|
|
@@ -466,7 +491,7 @@ exports.SystemPredicateDefs = [
|
|
|
466
491
|
icon: { name: 'calendar' },
|
|
467
492
|
columnScope: { DataTypes: ['Date'] },
|
|
468
493
|
moduleScope: ['filter', 'alert', 'flashingcell', 'formatColumn'],
|
|
469
|
-
handler: ({ value,
|
|
494
|
+
handler: ({ value, adaptableApi }) => (0, isSameDay_1.default)((0, DateHelper_1.parseDateValue)(value), adaptableApi.calendarApi.getPreviousWorkingDay()),
|
|
470
495
|
},
|
|
471
496
|
{
|
|
472
497
|
id: 'WorkDay',
|
|
@@ -474,7 +499,7 @@ exports.SystemPredicateDefs = [
|
|
|
474
499
|
icon: { name: 'calendar' },
|
|
475
500
|
columnScope: { DataTypes: ['Date'] },
|
|
476
501
|
moduleScope: ['filter', 'alert', 'flashingcell', 'formatColumn'],
|
|
477
|
-
handler: ({ value,
|
|
502
|
+
handler: ({ value, adaptableApi }) => adaptableApi.calendarApi.isWorkingDay(value),
|
|
478
503
|
},
|
|
479
504
|
{
|
|
480
505
|
id: 'Holiday',
|
|
@@ -482,7 +507,7 @@ exports.SystemPredicateDefs = [
|
|
|
482
507
|
icon: { name: 'calendar' },
|
|
483
508
|
columnScope: { DataTypes: ['Date'] },
|
|
484
509
|
moduleScope: ['filter', 'alert', 'flashingcell', 'formatColumn'],
|
|
485
|
-
handler: ({ value,
|
|
510
|
+
handler: ({ value, adaptableApi }) => adaptableApi.calendarApi.isHoliday(value),
|
|
486
511
|
},
|
|
487
512
|
{
|
|
488
513
|
id: 'InRange',
|
|
@@ -517,7 +542,6 @@ exports.SystemPredicateDefs = [
|
|
|
517
542
|
columnScope: { DataTypes: ['Boolean'] },
|
|
518
543
|
moduleScope: ['filter'],
|
|
519
544
|
inputs: [{ type: 'boolean' }],
|
|
520
|
-
onlyQuickFilter: true,
|
|
521
545
|
// working with string aliases instead of booleans because the FilterAPI cannot handle falsy filter values (it ignores them)
|
|
522
546
|
handler: ({ value, inputs }) => {
|
|
523
547
|
if (inputs[0] == 'all') {
|
|
@@ -554,9 +578,9 @@ exports.SystemPredicateDefs = [
|
|
|
554
578
|
label: 'Primary Key Duplicate',
|
|
555
579
|
columnScope: { All: true },
|
|
556
580
|
moduleScope: ['alert'],
|
|
557
|
-
handler: ({ value, column,
|
|
581
|
+
handler: ({ value, column, adaptableApi, node }) => {
|
|
558
582
|
return (column === null || column === void 0 ? void 0 : column.isPrimaryKey)
|
|
559
|
-
?
|
|
583
|
+
? adaptableApi.gridApi.internalApi
|
|
560
584
|
.getDistinctRawValuesForColumn(column.columnId, node)
|
|
561
585
|
.includes(value)
|
|
562
586
|
: false;
|
|
@@ -567,9 +591,9 @@ exports.SystemPredicateDefs = [
|
|
|
567
591
|
label: 'Existing Values Only',
|
|
568
592
|
columnScope: { All: true },
|
|
569
593
|
moduleScope: ['alert'],
|
|
570
|
-
handler: ({ value,
|
|
594
|
+
handler: ({ value, adaptableApi, column, node }) => {
|
|
571
595
|
const distinctValues = column
|
|
572
|
-
?
|
|
596
|
+
? adaptableApi.gridApi.internalApi.getDistinctRawValuesForColumn(column.columnId, node)
|
|
573
597
|
: [];
|
|
574
598
|
return !distinctValues.includes(value);
|
|
575
599
|
},
|
|
@@ -579,9 +603,9 @@ exports.SystemPredicateDefs = [
|
|
|
579
603
|
label: 'No Duplicate Values',
|
|
580
604
|
columnScope: { All: true },
|
|
581
605
|
moduleScope: ['alert'],
|
|
582
|
-
handler: ({ value,
|
|
606
|
+
handler: ({ value, adaptableApi, column, node }) => {
|
|
583
607
|
const distinctValues = column
|
|
584
|
-
?
|
|
608
|
+
? adaptableApi.gridApi.internalApi.getDistinctRawValuesForColumn(column.columnId, node)
|
|
585
609
|
: [];
|
|
586
610
|
return distinctValues.includes(value);
|
|
587
611
|
},
|
|
@@ -51,4 +51,4 @@ export declare type AdaptableQLModule = 'Alert' | 'CalculatedColumn' | 'Filter'
|
|
|
51
51
|
/**
|
|
52
52
|
* Column Types recognised by AdapTable; to be set in GridOptions
|
|
53
53
|
*/
|
|
54
|
-
export declare type AdaptableColumnType = 'abColDefBoolean' | 'abColDefDate' | 'abColDefNumber' | 'abColDefString' | 'abColDefObject' | 'abColDefNumberArray' | 'abColDefTupleNumberArray' | 'abColDefObjectNumberArray' | 'abColDefCustom' | 'abSpecialColumn';
|
|
54
|
+
export declare type AdaptableColumnType = 'abColDefBoolean' | 'abColDefDate' | 'abColDefNumber' | 'abColDefString' | 'abColDefObject' | 'abColDefStringArray' | 'abColDefNumberArray' | 'abColDefTupleNumberArray' | 'abColDefObjectNumberArray' | 'abColDefCustom' | 'abSpecialColumn';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ConfigState } from './ConfigState';
|
|
2
2
|
import { SuspendableObject } from './Common/SuspendableObject';
|
|
3
3
|
import { SparklineOptions } from '@ag-grid-community/core';
|
|
4
|
-
import {
|
|
4
|
+
import { AdaptableCustomIcon, AdaptableSystemIcon, AdaptablePredicate, AdaptableStyle } from '../types';
|
|
5
5
|
import { TypeHint } from './Common/Types';
|
|
6
6
|
/**
|
|
7
7
|
* Predefined Configuration for Styled Column Module
|
|
@@ -30,6 +30,7 @@ export interface StyledColumn extends SuspendableObject {
|
|
|
30
30
|
PercentBarStyle?: PercentBarStyle;
|
|
31
31
|
/**
|
|
32
32
|
* Renders a Checkbox in a boolean column
|
|
33
|
+
* @deprecated - AG Grid 30 now provides identical functionality
|
|
33
34
|
*/
|
|
34
35
|
CheckBoxStyle?: boolean;
|
|
35
36
|
/**
|
|
@@ -180,7 +181,7 @@ export interface BadgeStyleDefinition {
|
|
|
180
181
|
/**
|
|
181
182
|
* Icon to display in Badge
|
|
182
183
|
*/
|
|
183
|
-
Icon?:
|
|
184
|
+
Icon?: AdaptableSystemIcon | AdaptableCustomIcon;
|
|
184
185
|
/**
|
|
185
186
|
* Position of Icon in the Badge - 'Start' or 'End'
|
|
186
187
|
*/
|
|
@@ -73,7 +73,7 @@ export interface AdaptableSharedEntity extends AdaptableObject {
|
|
|
73
73
|
*/
|
|
74
74
|
ChangedAt: number;
|
|
75
75
|
/**
|
|
76
|
-
* 'Snapshot' (for 1-time sharing) or 'Active' (for continuous sharing
|
|
76
|
+
* 'Snapshot' (for 1-time sharing) or 'Active' (for continuous sharing)
|
|
77
77
|
*/
|
|
78
78
|
Type: SharedEntityType;
|
|
79
79
|
}
|
|
@@ -56,6 +56,7 @@ export declare const SYSTEM_LICENSE_SHOW_WATERMARK = "SYSTEM_LICENSE_SHOW_WATERM
|
|
|
56
56
|
export declare const SYSTEM_LICENSE_DISABLE_PERSISTENCE = "SYSTEM_LICENSE_DISABLE_PERSISTENCE";
|
|
57
57
|
export declare const SYSTEM_DATA_CHANGE_HISTORY_ADD = "SYSTEM_DATA_CHANGE_HISTORY_ADD";
|
|
58
58
|
export declare const SYSTEM_DATA_CHANGE_HISTORY_UNDO = "SYSTEM_DATA_CHANGE_HISTORY_UNDO";
|
|
59
|
+
export declare const SYSTEM_DATA_CHANGE_HISTORY_CLEAR_ROW = "SYSTEM_DATA_CHANGE_HISTORY_CLEAR_ROW";
|
|
59
60
|
export declare const SYSTEM_DATA_CHANGE_HISTORY_ENABLE = "SYSTEM_DATA_CHANGE_HISTORY_ENABLE";
|
|
60
61
|
export declare const SYSTEM_DATA_CHANGE_HISTORY_DISABLE = "SYSTEM_DATA_CHANGE_HISTORY_DISABLE";
|
|
61
62
|
export declare const SYSTEM_DATA_CHANGE_HISTORY_SUSPEND = "SYSTEM_DATA_CHANGE_HISTORY_SUSPEND";
|
|
@@ -205,6 +206,9 @@ export interface SystemDataChangeHistoryAddAction extends Redux.Action {
|
|
|
205
206
|
export interface SystemDataChangeHistoryUndoAction extends Redux.Action {
|
|
206
207
|
changeInfo: CellDataChangedInfo;
|
|
207
208
|
}
|
|
209
|
+
export interface SystemDataChangeHistoryClearRowAction extends Redux.Action {
|
|
210
|
+
changeInfo: CellDataChangedInfo;
|
|
211
|
+
}
|
|
208
212
|
export interface SystemDataChangeHistoryEnableAction extends Redux.Action {
|
|
209
213
|
}
|
|
210
214
|
export interface SystemDataChangeHistoryDisableAction extends Redux.Action {
|
|
@@ -283,6 +287,7 @@ export declare const SystemLicenseShowWatermark: (text: string) => SystemLicense
|
|
|
283
287
|
export declare const SystemLicenseDisablePersistence: () => SystemLicenseDisablePersistenceAction;
|
|
284
288
|
export declare const SystemDataChangeHistoryAdd: (changeInfo: CellDataChangedInfo) => SystemDataChangeHistoryAddAction;
|
|
285
289
|
export declare const SystemDataChangeHistoryUndo: (changeInfo: CellDataChangedInfo) => SystemDataChangeHistoryUndoAction;
|
|
290
|
+
export declare const SystemDataChangeHistoryClearRow: (changeInfo: CellDataChangedInfo) => SystemDataChangeHistoryClearRowAction;
|
|
286
291
|
export declare const SystemDataChangeHistoryEnable: () => SystemDataChangeHistoryEnableAction;
|
|
287
292
|
export declare const SystemDataChangeHistoryDisable: () => SystemDataChangeHistoryDisableAction;
|
|
288
293
|
export declare const SystemDataChangeHistorySuspend: () => SystemDataChangeHistorySuspendAction;
|