@adaptabletools/adaptable 18.0.0-canary.17 → 18.0.0-canary.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/Api/Internal/GridFilterInternalApi.d.ts +5 -0
- package/src/Api/Internal/GridFilterInternalApi.js +6 -0
- package/src/PredefinedConfig/Common/Menu.d.ts +9 -4
- package/src/PredefinedConfig/Common/Menu.js +61 -35
- package/src/Redux/Store/AdaptableStore.js +11 -6
- package/src/Strategy/AdaptableModuleBase.d.ts +5 -5
- package/src/Strategy/AdaptableModuleBase.js +3 -3
- package/src/Strategy/AlertModule.js +1 -1
- package/src/Strategy/CalculatedColumnModule.js +1 -1
- package/src/Strategy/ColumnFilterModule.d.ts +1 -1
- package/src/Strategy/ColumnFilterModule.js +44 -41
- package/src/Strategy/ColumnInfoModule.js +2 -2
- package/src/Strategy/CommentModule.js +2 -2
- package/src/Strategy/CustomSortModule.js +1 -1
- package/src/Strategy/DashboardModule.js +8 -8
- package/src/Strategy/DataImportModule.js +1 -1
- package/src/Strategy/ExportModule.js +3 -3
- package/src/Strategy/Fdc3Module.js +1 -1
- package/src/Strategy/FlashingCellModule.js +4 -4
- package/src/Strategy/FormatColumnModule.js +6 -6
- package/src/Strategy/FreeTextColumnModule.js +1 -1
- package/src/Strategy/GridInfoModule.js +2 -2
- package/src/Strategy/LayoutModule.js +13 -13
- package/src/Strategy/NoteModule.js +2 -2
- package/src/Strategy/PlusMinusModule.js +1 -1
- package/src/Strategy/SettingsPanelModule.js +3 -3
- package/src/Strategy/StyledColumnModule.js +13 -10
- package/src/Strategy/SystemStatusModule.js +1 -1
- package/src/Utilities/MenuItem.d.ts +7 -7
- package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +1 -1
- package/src/agGrid/editors/AdaptableDateEditor/index.js +1 -1
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +0 -6
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/tsconfig.esm.tsbuildinfo +1 -1
|
@@ -45,12 +45,12 @@ export class FormatColumnModule extends AdaptableModuleBase {
|
|
|
45
45
|
action: 'New',
|
|
46
46
|
source: 'ColumnMenu',
|
|
47
47
|
};
|
|
48
|
-
const createFormatColumnMenuItem = this.
|
|
48
|
+
const createFormatColumnMenuItem = this.createMenuItemShowPopup('format-column-add', 'Create', this.moduleInfo.Popup, 'plus', createPopupParam);
|
|
49
49
|
const formatColumnsForColumn = this.api.formatColumnApi.getFormatColumnsForColumnId(column.columnId);
|
|
50
50
|
// .filter((fc) => this.api.scopeApi.isSingleColumnScope(fc.Scope));
|
|
51
51
|
// if no formats then just show Create
|
|
52
52
|
if (ArrayExtensions.IsNullOrEmpty(formatColumnsForColumn)) {
|
|
53
|
-
returnColumnMenuItems.push(this.
|
|
53
|
+
returnColumnMenuItems.push(this.createMenuItemShowPopup('format-column-add', 'Create Format Column', this.moduleInfo.Popup, this.moduleInfo.Glyph, createPopupParam));
|
|
54
54
|
// if 1 format then show a Create and an Edit
|
|
55
55
|
}
|
|
56
56
|
else if (formatColumnsForColumn.length == 1) {
|
|
@@ -60,9 +60,9 @@ export class FormatColumnModule extends AdaptableModuleBase {
|
|
|
60
60
|
value: formatColumnsForColumn[0],
|
|
61
61
|
source: 'ColumnMenu',
|
|
62
62
|
};
|
|
63
|
-
const editFormatColumnMenuItem = this.
|
|
63
|
+
const editFormatColumnMenuItem = this.createMenuItemShowPopup('format-column-edit', 'Edit', this.moduleInfo.Popup, 'edit', editPopupParam);
|
|
64
64
|
returnColumnMenuItems.push({
|
|
65
|
-
name: '
|
|
65
|
+
name: 'parent',
|
|
66
66
|
label: 'Format Column',
|
|
67
67
|
module: this.moduleInfo.ModuleName,
|
|
68
68
|
isVisible: true,
|
|
@@ -77,9 +77,9 @@ export class FormatColumnModule extends AdaptableModuleBase {
|
|
|
77
77
|
const moduleInfo = this.api.internalApi
|
|
78
78
|
.getModuleService()
|
|
79
79
|
.getModuleInfoByModule('FormatColumn');
|
|
80
|
-
const editFormatColumnMenuItem = this.
|
|
80
|
+
const editFormatColumnMenuItem = this.createMenuItemReduxAction('format-column-edit', 'Show Current', this.moduleInfo.Glyph, PopupRedux.PopupShowScreen('FormatColumn', moduleInfo.Popup));
|
|
81
81
|
returnColumnMenuItems.push({
|
|
82
|
-
name: '
|
|
82
|
+
name: 'parent',
|
|
83
83
|
label: 'Format Column',
|
|
84
84
|
module: this.moduleInfo.ModuleName,
|
|
85
85
|
isVisible: true,
|
|
@@ -28,7 +28,7 @@ export class FreeTextColumnModule extends AdaptableModuleBase {
|
|
|
28
28
|
source: 'ColumnMenu',
|
|
29
29
|
};
|
|
30
30
|
return [
|
|
31
|
-
this.
|
|
31
|
+
this.createMenuItemShowPopup('free-text-column-edit', 'Edit Free Text Column', this.moduleInfo.Popup, this.moduleInfo.Glyph, popupParam),
|
|
32
32
|
];
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -11,7 +11,7 @@ export class GridInfoModule extends AdaptableModuleBase {
|
|
|
11
11
|
if (this.isModuleAvailable()) {
|
|
12
12
|
return [
|
|
13
13
|
this.createMainMenuItemShowPopup({
|
|
14
|
-
Name: 'grid-info',
|
|
14
|
+
Name: 'grid-info-show',
|
|
15
15
|
Label: 'Grid Info',
|
|
16
16
|
ComponentName: this.moduleInfo.Popup,
|
|
17
17
|
Icon: this.moduleInfo.Glyph,
|
|
@@ -23,7 +23,7 @@ export class GridInfoModule extends AdaptableModuleBase {
|
|
|
23
23
|
if (this.isModuleAvailable()) {
|
|
24
24
|
return [
|
|
25
25
|
this.createMainMenuItemShowPopup({
|
|
26
|
-
Name: 'grid-info',
|
|
26
|
+
Name: 'grid-info-show',
|
|
27
27
|
Label: 'Grid Info',
|
|
28
28
|
ComponentName: this.moduleInfo.Popup,
|
|
29
29
|
Icon: this.moduleInfo.Glyph,
|
|
@@ -145,7 +145,7 @@ export class LayoutModule extends AdaptableModuleBase {
|
|
|
145
145
|
if (this.isModuleEditable()) {
|
|
146
146
|
const isReadOnlyLayout = this.api.layoutApi.isCurrentLayoutReadOnly();
|
|
147
147
|
if (!isReadOnlyLayout) {
|
|
148
|
-
returnColumnMenuItems.push(this.
|
|
148
|
+
returnColumnMenuItems.push(this.createMenuItemShowPopup('layout-edit', 'Edit Layout', this.moduleInfo.Popup, this.moduleInfo.Glyph, {
|
|
149
149
|
action: 'Edit',
|
|
150
150
|
source: 'ColumnMenu',
|
|
151
151
|
value: this.api.layoutApi.getCurrentLayout(),
|
|
@@ -153,10 +153,10 @@ export class LayoutModule extends AdaptableModuleBase {
|
|
|
153
153
|
}
|
|
154
154
|
if (column) {
|
|
155
155
|
if (!isReadOnlyLayout) {
|
|
156
|
-
returnColumnMenuItems.push(this.
|
|
156
|
+
returnColumnMenuItems.push(this.createMenuItemClickFunction('layout-column-caption-change', 'Change Caption', 'edit', () => this.api.layoutApi.showChangeColumnCaption(column)));
|
|
157
157
|
}
|
|
158
158
|
if (column.hideable) {
|
|
159
|
-
returnColumnMenuItems.push(this.
|
|
159
|
+
returnColumnMenuItems.push(this.createMenuItemClickFunction('layout-column-hide', 'Hide Column', 'visibility-off-bold', () => {
|
|
160
160
|
this.api.columnApi.hideColumn(column.columnId);
|
|
161
161
|
}));
|
|
162
162
|
}
|
|
@@ -165,24 +165,24 @@ export class LayoutModule extends AdaptableModuleBase {
|
|
|
165
165
|
if (column) {
|
|
166
166
|
const hasExistingSelection = (_b = (_a = this.api.gridApi.getSelectedCellInfo()) === null || _a === void 0 ? void 0 : _a.gridCells) === null || _b === void 0 ? void 0 : _b.length;
|
|
167
167
|
if (hasExistingSelection) {
|
|
168
|
-
selectMenuItems.push(this.
|
|
168
|
+
selectMenuItems.push(this.createMenuItemClickFunction('layout-column-select-preserve', 'Column (Preserve Selection)', 'column-add', () => {
|
|
169
169
|
this.api.columnApi.addColumnToSelection(column.columnId);
|
|
170
170
|
}));
|
|
171
|
-
selectMenuItems.push(this.
|
|
171
|
+
selectMenuItems.push(this.createMenuItemClickFunction('layout-column-select-reset', 'Column (Reset Selection)', 'columns', () => {
|
|
172
172
|
this.api.columnApi.selectColumn(column.columnId);
|
|
173
173
|
}));
|
|
174
174
|
}
|
|
175
175
|
else {
|
|
176
|
-
selectMenuItems.push(this.
|
|
176
|
+
selectMenuItems.push(this.createMenuItemClickFunction('layout-column-select', 'Column', 'columns', () => {
|
|
177
177
|
this.api.columnApi.selectColumn(column.columnId);
|
|
178
178
|
}));
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
selectMenuItems.push(this.
|
|
181
|
+
selectMenuItems.push(this.createMenuItemClickFunction('layout-select-all', 'Whole Grid', this.moduleInfo.Glyph, () => {
|
|
182
182
|
this.api.gridApi.selectAll();
|
|
183
183
|
}));
|
|
184
184
|
returnColumnMenuItems.push({
|
|
185
|
-
name: 'layout-select',
|
|
185
|
+
name: 'layout-select-parent',
|
|
186
186
|
label: 'Select',
|
|
187
187
|
isVisible: true,
|
|
188
188
|
module: this.moduleInfo.ModuleName,
|
|
@@ -197,7 +197,7 @@ export class LayoutModule extends AdaptableModuleBase {
|
|
|
197
197
|
addContextMenuItems(menuContext) {
|
|
198
198
|
let returnColumnMenuItems = [];
|
|
199
199
|
if (this.isModuleEditable() && !this.api.layoutApi.isCurrentLayoutReadOnly()) {
|
|
200
|
-
returnColumnMenuItems.push(this.
|
|
200
|
+
returnColumnMenuItems.push(this.createMenuItemShowPopup('layout-edit', 'Edit Layout', this.moduleInfo.Popup, this.moduleInfo.Glyph, {
|
|
201
201
|
action: 'Edit',
|
|
202
202
|
source: 'ColumnMenu',
|
|
203
203
|
}));
|
|
@@ -209,19 +209,19 @@ export class LayoutModule extends AdaptableModuleBase {
|
|
|
209
209
|
let clickFunction = () => {
|
|
210
210
|
this.api.gridApi.deselectAll();
|
|
211
211
|
};
|
|
212
|
-
returnColumnMenuItems.push(this.
|
|
212
|
+
returnColumnMenuItems.push(this.createMenuItemClickFunction('layout-clear-selection', 'Clear Selected Cells', 'undo', clickFunction));
|
|
213
213
|
if (this.isModuleAvailable()) {
|
|
214
214
|
let gridMenuItems = [];
|
|
215
215
|
let autoSizeFunction = () => {
|
|
216
216
|
this.api.columnApi.autosizeAllColumns();
|
|
217
217
|
};
|
|
218
|
-
gridMenuItems.push(this.
|
|
218
|
+
gridMenuItems.push(this.createMenuItemClickFunction('layout-auto-size', 'Auto Size', 'arrow-expand', autoSizeFunction));
|
|
219
219
|
let clickFunction = () => {
|
|
220
220
|
this.api.gridApi.selectAll();
|
|
221
221
|
};
|
|
222
|
-
gridMenuItems.push(this.
|
|
222
|
+
gridMenuItems.push(this.createMenuItemClickFunction('layout-select-all', 'Select', 'tab-unselected', clickFunction));
|
|
223
223
|
returnColumnMenuItems.push({
|
|
224
|
-
name: 'layout-grid',
|
|
224
|
+
name: 'layout-grid-parent',
|
|
225
225
|
label: 'Grid',
|
|
226
226
|
module: this.moduleInfo.ModuleName,
|
|
227
227
|
isVisible: true,
|
|
@@ -41,12 +41,12 @@ export class NoteModule extends AdaptableModuleBase {
|
|
|
41
41
|
ColumnId: menuContext.adaptableColumn.columnId,
|
|
42
42
|
})) !== null && _a !== void 0 ? _a : [];
|
|
43
43
|
if (note) {
|
|
44
|
-
items.push(this.
|
|
44
|
+
items.push(this.createMenuItemClickFunction('note-remove', 'Remove Note', this.moduleInfo.Glyph, () => {
|
|
45
45
|
this.api.noteApi.deleteNote(note);
|
|
46
46
|
}));
|
|
47
47
|
}
|
|
48
48
|
else {
|
|
49
|
-
items.push(this.
|
|
49
|
+
items.push(this.createMenuItemClickFunction('note-add', 'Add Note', this.moduleInfo.Glyph, () => {
|
|
50
50
|
// add an empty one
|
|
51
51
|
this.api.noteApi.addNote('', menuContext.primaryKeyValue, menuContext.adaptableColumn.columnId);
|
|
52
52
|
this.api.internalApi.getCellPopupService().showPopup({
|
|
@@ -60,7 +60,7 @@ export class PlusMinusModule extends AdaptableModuleBase {
|
|
|
60
60
|
source: 'ColumnMenu',
|
|
61
61
|
};
|
|
62
62
|
return [
|
|
63
|
-
this.
|
|
63
|
+
this.createMenuItemShowPopup('plus-minus-add', 'Create Plus/Minus Rule', this.moduleInfo.Popup, this.moduleInfo.Glyph, popupParam),
|
|
64
64
|
];
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -9,17 +9,17 @@ export class SettingsPanelModule extends AdaptableModuleBase {
|
|
|
9
9
|
addColumnMenuItems(column) {
|
|
10
10
|
return [
|
|
11
11
|
// To do : get the icon and name from settings in case they have changed?
|
|
12
|
-
this.
|
|
12
|
+
this.createMenuItemReduxAction('settings-panel-open', 'Open ' + this.moduleInfo.FriendlyName, this.moduleInfo.Glyph, PopupRedux.PopupShowScreen()),
|
|
13
13
|
];
|
|
14
14
|
}
|
|
15
15
|
addContextMenuItems(menuContext) {
|
|
16
16
|
return [
|
|
17
|
-
this.
|
|
17
|
+
this.createMenuItemReduxAction('settings-panel-open', 'Open ' + this.moduleInfo.FriendlyName, this.moduleInfo.Glyph, PopupRedux.PopupShowScreen()),
|
|
18
18
|
];
|
|
19
19
|
}
|
|
20
20
|
addModuleMenuItem(source) {
|
|
21
21
|
if (this.isModuleAvailable()) {
|
|
22
|
-
return this.
|
|
22
|
+
return this.createMenuItemReduxAction('settings-panel-open', 'Open ' + this.moduleInfo.FriendlyName, this.moduleInfo.Glyph, PopupRedux.PopupShowScreen());
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -45,6 +45,9 @@ export class StyledColumnModule extends AdaptableModuleBase {
|
|
|
45
45
|
styledColumn = Object.assign(Object.assign({}, ObjectFactory.CreateEmptyStyledColumn()), { ColumnId: column.columnId, SparkLineStyle: {} });
|
|
46
46
|
}
|
|
47
47
|
let label = hasSparklineStyle ? 'Edit ' : 'Create ';
|
|
48
|
+
let name = hasSparklineStyle
|
|
49
|
+
? 'styled-column-sparkline-edit'
|
|
50
|
+
: 'styled-column-sparkline-add';
|
|
48
51
|
let popupParam = {
|
|
49
52
|
action: sparklineColumnExists ? 'Edit' : 'New',
|
|
50
53
|
source: 'ColumnMenu',
|
|
@@ -53,7 +56,7 @@ export class StyledColumnModule extends AdaptableModuleBase {
|
|
|
53
56
|
defaultCurrentSectionName: 'Settings',
|
|
54
57
|
},
|
|
55
58
|
};
|
|
56
|
-
returnColumnMenuItems.push(this.
|
|
59
|
+
returnColumnMenuItems.push(this.createMenuItemShowPopup(name, label + 'Sparkline Column', this.moduleInfo.Popup, this.getGlyphForStyledColumn(styledColumn), popupParam));
|
|
57
60
|
}
|
|
58
61
|
}
|
|
59
62
|
// Next do non sparkline
|
|
@@ -79,7 +82,7 @@ export class StyledColumnModule extends AdaptableModuleBase {
|
|
|
79
82
|
const icon = this.getGlyphForStyledColumn(styledColumn);
|
|
80
83
|
const label = `Edit ${this.getTypeLabel(styledColumn)} Style`;
|
|
81
84
|
const name = this.getTypeName(styledColumn);
|
|
82
|
-
returnColumnMenuItems.push(this.
|
|
85
|
+
returnColumnMenuItems.push(this.createMenuItemShowPopup(name, label, this.moduleInfo.Popup, icon, popupParam));
|
|
83
86
|
}
|
|
84
87
|
}
|
|
85
88
|
else {
|
|
@@ -91,7 +94,7 @@ export class StyledColumnModule extends AdaptableModuleBase {
|
|
|
91
94
|
config: {},
|
|
92
95
|
};
|
|
93
96
|
const badgeLabel = column.dataType === 'Number' ? 'Badge' : 'Create Badge Style';
|
|
94
|
-
const newBadgeButton = this.
|
|
97
|
+
const newBadgeButton = this.createMenuItemShowPopup('styled-column-badge-add', badgeLabel, this.moduleInfo.Popup, 'badge', Object.assign(Object.assign({}, popupParam), { value: Object.assign(Object.assign({}, newStyledColumn), { BadgeStyle: {
|
|
95
98
|
Badges: [ObjectFactory.CreateDefaultStyledColumnBadge()],
|
|
96
99
|
} }), config: {
|
|
97
100
|
defaultCurrentSectionName: 'Badges',
|
|
@@ -103,18 +106,18 @@ export class StyledColumnModule extends AdaptableModuleBase {
|
|
|
103
106
|
const emptyRanges = this.api.scopeApi.createCellColorRangesForScope({
|
|
104
107
|
ColumnIds: [column.columnId],
|
|
105
108
|
});
|
|
106
|
-
const newGrandientButton = this.
|
|
109
|
+
const newGrandientButton = this.createMenuItemShowPopup('styled-column-gradient-add', 'Gradient', this.moduleInfo.Popup, 'gradient', Object.assign(Object.assign({}, popupParam), { value: Object.assign(Object.assign({}, newStyledColumn), { GradientStyle: {
|
|
107
110
|
CellRanges: emptyRanges,
|
|
108
111
|
} }), config: {
|
|
109
112
|
defaultCurrentSectionName: 'Style',
|
|
110
113
|
} }));
|
|
111
|
-
const newPrecentBarButton = this.
|
|
114
|
+
const newPrecentBarButton = this.createMenuItemShowPopup('styled-column-percent-bar-add', 'Percent Bar', this.moduleInfo.Popup, 'percent', Object.assign(Object.assign({}, popupParam), { value: Object.assign(Object.assign({}, newStyledColumn), { PercentBarStyle: {
|
|
112
115
|
CellRanges: emptyRanges,
|
|
113
116
|
} }), config: {
|
|
114
117
|
defaultCurrentSectionName: 'Style',
|
|
115
118
|
} }));
|
|
116
119
|
returnColumnMenuItems.push({
|
|
117
|
-
name: '
|
|
120
|
+
name: 'parent',
|
|
118
121
|
label: 'Create Styled Column',
|
|
119
122
|
module: this.moduleInfo.ModuleName,
|
|
120
123
|
isVisible: true,
|
|
@@ -235,16 +238,16 @@ export class StyledColumnModule extends AdaptableModuleBase {
|
|
|
235
238
|
getTypeName(styledColumn) {
|
|
236
239
|
let type = null;
|
|
237
240
|
if (styledColumn.GradientStyle) {
|
|
238
|
-
type = 'styled-column-gradient';
|
|
241
|
+
type = 'styled-column-gradient-edit';
|
|
239
242
|
}
|
|
240
243
|
else if (styledColumn.PercentBarStyle) {
|
|
241
|
-
type = 'styled-column-percent-bar';
|
|
244
|
+
type = 'styled-column-percent-bar-edit';
|
|
242
245
|
}
|
|
243
246
|
else if (styledColumn.SparkLineStyle) {
|
|
244
|
-
type = 'styled-column-sparkline';
|
|
247
|
+
type = 'styled-column-sparkline-edit';
|
|
245
248
|
}
|
|
246
249
|
else if (styledColumn.BadgeStyle) {
|
|
247
|
-
type = 'styled-column-badge';
|
|
250
|
+
type = 'styled-column-badge-edit';
|
|
248
251
|
}
|
|
249
252
|
return type;
|
|
250
253
|
}
|
|
@@ -8,7 +8,7 @@ export class SystemStatusModule extends AdaptableModuleBase {
|
|
|
8
8
|
addColumnMenuItems(column) {
|
|
9
9
|
if (this.isModuleAvailable()) {
|
|
10
10
|
return [
|
|
11
|
-
this.
|
|
11
|
+
this.createMenuItemShowPopup('system-status-show', 'Show System Status', this.moduleInfo.Popup, this.moduleInfo.Glyph),
|
|
12
12
|
];
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as Redux from 'redux';
|
|
2
2
|
import { ModuleParams } from '../View/Components/SharedProps/ModuleViewPopupProps';
|
|
3
|
-
import { AdaptableMenuItem,
|
|
3
|
+
import { AdaptableMenuItem, AdaptableContextMenuItemName, AdaptableColumnMenuItemName } from '../PredefinedConfig/Common/Menu';
|
|
4
4
|
import { AdaptableModule } from '../PredefinedConfig/Common/Types';
|
|
5
5
|
import { AdaptableIcon, AdaptableSystemIconName } from '../PredefinedConfig/Common/AdaptableIcon';
|
|
6
6
|
export declare class MenuItemDoReduxAction implements AdaptableMenuItem {
|
|
7
|
-
constructor(name:
|
|
8
|
-
name:
|
|
7
|
+
constructor(name: AdaptableColumnMenuItemName | AdaptableContextMenuItemName, label: string, module: AdaptableModule, reduxAction: Redux.Action, icon: AdaptableSystemIconName, isVisible: boolean);
|
|
8
|
+
name: AdaptableColumnMenuItemName | AdaptableContextMenuItemName;
|
|
9
9
|
reduxAction: Redux.Action;
|
|
10
10
|
label: string;
|
|
11
11
|
module: AdaptableModule;
|
|
@@ -13,8 +13,8 @@ export declare class MenuItemDoReduxAction implements AdaptableMenuItem {
|
|
|
13
13
|
icon: AdaptableIcon;
|
|
14
14
|
}
|
|
15
15
|
export declare class MenuItemDoClickFunction implements AdaptableMenuItem {
|
|
16
|
-
constructor(name:
|
|
17
|
-
name:
|
|
16
|
+
constructor(name: AdaptableColumnMenuItemName | AdaptableContextMenuItemName, label: string, module: AdaptableModule, clickFunction: () => void, icon: AdaptableSystemIconName, isVisible: boolean);
|
|
17
|
+
name: AdaptableColumnMenuItemName | AdaptableContextMenuItemName;
|
|
18
18
|
onClick: () => void;
|
|
19
19
|
label: string;
|
|
20
20
|
module: AdaptableModule;
|
|
@@ -22,8 +22,8 @@ export declare class MenuItemDoClickFunction implements AdaptableMenuItem {
|
|
|
22
22
|
icon: AdaptableIcon;
|
|
23
23
|
}
|
|
24
24
|
export declare class MenuItemShowPopup implements AdaptableMenuItem {
|
|
25
|
-
constructor(name:
|
|
26
|
-
name:
|
|
25
|
+
constructor(name: AdaptableColumnMenuItemName | AdaptableContextMenuItemName, label: string, module: AdaptableModule, componentName: string, icon: AdaptableSystemIconName, isVisible: boolean, popupParams?: ModuleParams);
|
|
26
|
+
name: AdaptableColumnMenuItemName | AdaptableContextMenuItemName;
|
|
27
27
|
reduxAction: Redux.Action;
|
|
28
28
|
label: string;
|
|
29
29
|
module: AdaptableModule;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ICellEditorComp, ICellEditorParams } from '@ag-grid-community/core';
|
|
3
3
|
import { IAdaptable } from '../../../AdaptableInterfaces/IAdaptable';
|
|
4
4
|
export declare const ReactAdaptableDateEditor: React.ForwardRefExoticComponent<ICellEditorParams<any, any, any> & {
|
|
5
5
|
showClearButton?: boolean;
|
|
@@ -2,8 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
import { renderWithAdaptableContext } from '../../../View/renderWithAdaptableContext';
|
|
3
3
|
import { InternalAdaptableDateEditor, } from './InternalAdaptableDateEditor';
|
|
4
4
|
import { KeyCode, } from '@ag-grid-community/core';
|
|
5
|
-
import { DateFormatter } from '../../../Utilities/Helpers/FormatHelper';
|
|
6
5
|
import { forwardRef, useImperativeHandle, useRef, useState } from 'react';
|
|
6
|
+
import { DateFormatter } from '../../../Utilities/Helpers/FormatHelper';
|
|
7
7
|
function shouldClearExistingValue(params) {
|
|
8
8
|
return params.eventKey === KeyCode.BACKSPACE || params.eventKey === KeyCode.DELETE;
|
|
9
9
|
}
|
package/src/env.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
INFINITE_TABLE_LICENSE_KEY: "StartDate=2021-06-29|EndDate=2030-01-01|Owner=Adaptable|Type=distribution|TS=1624971462479|C=137829811,1004007071,2756196225,1839832928,3994409405,636616862" || '',
|
|
3
|
-
PUBLISH_TIMESTAMP:
|
|
4
|
-
VERSION: "18.0.0-canary.
|
|
3
|
+
PUBLISH_TIMESTAMP: 1711631045792 || Date.now(),
|
|
4
|
+
VERSION: "18.0.0-canary.18" || '--current-version--',
|
|
5
5
|
};
|
|
@@ -563,12 +563,6 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
563
563
|
desc: string;
|
|
564
564
|
isOpt?: undefined;
|
|
565
565
|
ref?: undefined;
|
|
566
|
-
} | {
|
|
567
|
-
name: string;
|
|
568
|
-
kind: string;
|
|
569
|
-
desc: string;
|
|
570
|
-
ref: string;
|
|
571
|
-
isOpt?: undefined;
|
|
572
566
|
} | {
|
|
573
567
|
name: string;
|
|
574
568
|
kind: string;
|