@adaptabletools/adaptable 18.0.0-canary.32 → 18.0.0-canary.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/AdaptableOptions/MenuOptions.d.ts +36 -16
- package/src/AdaptableOptions/MenuOptions.js +5 -0
- package/src/AdaptableOptions/QuickSearchOptions.d.ts +1 -1
- package/src/Api/GridApi.d.ts +1 -1
- package/src/Api/Implementation/NoteApiImpl.d.ts +1 -1
- package/src/Api/Implementation/NoteApiImpl.js +2 -2
- package/src/Api/Internal/FormatColumnInternalApi.js +1 -1
- package/src/Api/NoteApi.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
- package/src/PredefinedConfig/Common/Menu.d.ts +14 -6
- package/src/PredefinedConfig/Common/Menu.js +3 -0
- package/src/PredefinedConfig/Common/RowScope.d.ts +2 -2
- package/src/PredefinedConfig/FormatColumnState.d.ts +1 -1
- package/src/PredefinedConfig/LayoutState.d.ts +1 -1
- package/src/Redux/ActionsReducers/NoteRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/NoteRedux.js +3 -3
- package/src/Strategy/AdaptableModuleBase.d.ts +8 -8
- package/src/Strategy/AlertModule.d.ts +3 -2
- package/src/Strategy/BulkUpdateModule.d.ts +3 -2
- package/src/Strategy/CalculatedColumnModule.d.ts +3 -4
- package/src/Strategy/CalculatedColumnModule.js +16 -12
- package/src/Strategy/CellSummaryModule.d.ts +3 -4
- package/src/Strategy/CellSummaryModule.js +17 -14
- package/src/Strategy/ColumnFilterModule.d.ts +3 -3
- package/src/Strategy/ColumnInfoModule.d.ts +3 -3
- package/src/Strategy/CommentModule.d.ts +3 -2
- package/src/Strategy/CustomSortModule.d.ts +1 -2
- package/src/Strategy/DashboardModule.d.ts +3 -3
- package/src/Strategy/DataImportModule.d.ts +2 -2
- package/src/Strategy/ExportModule.d.ts +1 -1
- package/src/Strategy/ExportModule.js +19 -2
- package/src/Strategy/Fdc3Module.d.ts +1 -1
- package/src/Strategy/FlashingCellModule.d.ts +4 -3
- package/src/Strategy/FormatColumnModule.d.ts +1 -1
- package/src/Strategy/FormatColumnModule.js +0 -1
- package/src/Strategy/FreeTextColumnModule.d.ts +1 -2
- package/src/Strategy/GridInfoModule.d.ts +3 -3
- package/src/Strategy/Interface/IModule.d.ts +3 -3
- package/src/Strategy/LayoutModule.d.ts +2 -2
- package/src/Strategy/NoteModule.d.ts +2 -2
- package/src/Strategy/NoteModule.js +3 -3
- package/src/Strategy/PlusMinusModule.d.ts +1 -2
- package/src/Strategy/SettingsPanelModule.d.ts +2 -2
- package/src/Strategy/SmartEditModule.d.ts +3 -2
- package/src/Strategy/StyledColumnModule.d.ts +1 -1
- package/src/Strategy/StyledColumnModule.js +1 -9
- package/src/Strategy/SystemStatusModule.d.ts +3 -3
- package/src/Strategy/SystemStatusModule.js +3 -1
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +1 -1
- package/src/Utilities/MenuItem.d.ts +9 -9
- package/src/Utilities/Services/CellPopupService.js +4 -4
- package/src/Utilities/Services/RowSummaryService.d.ts +7 -3
- package/src/Utilities/Services/RowSummaryService.js +29 -15
- package/src/View/BulkUpdate/BulkUpdatePopup.js +2 -2
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +4 -1
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +1 -0
- package/src/View/Components/Popups/GridCellPopup/GridCellPopup.js +3 -6
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +5 -5
- package/src/View/Layout/Wizard/sections/RowGroupingSection.js +1 -1
- package/src/View/SmartEdit/SmartEditPopup.js +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +5 -7
- package/src/View/StyledColumn/Wizard/StyledColumnWizardSettingsSection.js +5 -5
- package/src/agGrid/ActionColumnRenderer.js +2 -2
- package/src/agGrid/AgGridColumnAdapter.js +2 -2
- package/src/agGrid/AgGridMenuAdapter.d.ts +1 -0
- package/src/agGrid/AgGridMenuAdapter.js +75 -64
- package/src/agGrid/BadgeRenderer.js +1 -1
- package/src/agGrid/PercentBarRenderer.js +1 -1
- package/src/components/Accordion.d.ts +7 -0
- package/src/components/Accordion.js +36 -0
- package/src/components/icons/collapse-all.d.ts +3 -0
- package/src/components/icons/collapse-all.js +4 -0
- package/src/components/icons/csv.d.ts +3 -0
- package/src/components/icons/csv.js +4 -0
- package/src/components/icons/data-object.d.ts +3 -0
- package/src/components/icons/data-object.js +4 -0
- package/src/components/icons/excel.d.ts +3 -0
- package/src/components/icons/excel.js +5 -0
- package/src/components/icons/expand-all.d.ts +3 -0
- package/src/components/icons/expand-all.js +4 -0
- package/src/components/icons/index.js +10 -0
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +10 -0
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +1 -1
- package/tsconfig.esm.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable",
|
|
3
|
-
"version": "18.0.0-canary.
|
|
3
|
+
"version": "18.0.0-canary.34",
|
|
4
4
|
"description": "Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdaptableMenuItem, ColumnMenuContext, ContextMenuContext } from '../PredefinedConfig/Common/Menu';
|
|
1
|
+
import { AdaptableColumnMenuItemName, AdaptableContextMenuItemName, AdaptableMenuItem, ColumnMenuContext, ContextMenuContext } from '../PredefinedConfig/Common/Menu';
|
|
2
2
|
import { AdaptableColumn, AdaptableIcon, BaseContext } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* Options for managing menus in AdapTable – provided using 2 collections
|
|
@@ -18,39 +18,59 @@ export interface MenuOptions<TData = any> {
|
|
|
18
18
|
*/
|
|
19
19
|
export interface CustomContextMenuContext<TData = any> extends ContextMenuContext<TData> {
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Flat list of all available AdapTable Menu Items
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
defaultAdaptableMenuItems: AdaptableSystemMenuItem<AdaptableContextMenuItemName>[];
|
|
24
24
|
/**
|
|
25
|
-
* Flat list of all available
|
|
25
|
+
* Flat list of all available AG Grid Menu Items
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
defaultAgGridMenuItems: AgGridMenuItem<AgGridContextMenuItemType>[];
|
|
28
28
|
/**
|
|
29
29
|
* Default structure of Adaptable Menu Items
|
|
30
30
|
*/
|
|
31
|
-
defaultAdaptableMenuStructure: (AdaptableSystemMenuItem | '-')[];
|
|
31
|
+
defaultAdaptableMenuStructure: (AdaptableSystemMenuItem<AdaptableContextMenuItemName> | '-')[];
|
|
32
|
+
/**
|
|
33
|
+
* Default structure of AG Grid Menu Items
|
|
34
|
+
*/
|
|
35
|
+
defaultAgGridMenuStructure: (AgGridMenuItem<AgGridContextMenuItemType> | {
|
|
36
|
+
menuType: 'Group';
|
|
37
|
+
label: string;
|
|
38
|
+
subMenuItems: AgGridMenuItem<AgGridContextMenuItemType>[];
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
icon?: AdaptableIcon;
|
|
41
|
+
})[];
|
|
32
42
|
}
|
|
33
43
|
/**
|
|
34
44
|
* Context info provided when building Custom Column Menus
|
|
35
45
|
*/
|
|
36
46
|
export interface CustomColumnMenuContext<TData = any> extends ColumnMenuContext<TData> {
|
|
37
47
|
/**
|
|
38
|
-
*
|
|
48
|
+
* Flat list of all available AdapTable Menu Items
|
|
39
49
|
*/
|
|
40
|
-
|
|
50
|
+
defaultAdaptableMenuItems: AdaptableSystemMenuItem<AdaptableColumnMenuItemName>[];
|
|
41
51
|
/**
|
|
42
|
-
* Flat list of all available
|
|
52
|
+
* Flat list of all available AG Grid Menu Items
|
|
43
53
|
*/
|
|
44
|
-
|
|
54
|
+
defaultAgGridMenuItems: AgGridMenuItem<AgGridColumnMenuItemType>[];
|
|
45
55
|
/**
|
|
46
56
|
* Default structure of Adaptable Menu Items
|
|
47
57
|
*/
|
|
48
|
-
defaultAdaptableMenuStructure: (AdaptableSystemMenuItem | '-')[];
|
|
58
|
+
defaultAdaptableMenuStructure: (AdaptableSystemMenuItem<AdaptableColumnMenuItemName> | '-')[];
|
|
59
|
+
/**
|
|
60
|
+
* Default structure of AG Grid Menu Items
|
|
61
|
+
*/
|
|
62
|
+
defaultAgGridMenuStructure: (AgGridMenuItem<AgGridColumnMenuItemType> | {
|
|
63
|
+
menuType: 'Group';
|
|
64
|
+
label: string;
|
|
65
|
+
subMenuItems: AgGridMenuItem<AgGridColumnMenuItemType>[];
|
|
66
|
+
disabled?: boolean;
|
|
67
|
+
icon?: AdaptableIcon;
|
|
68
|
+
})[];
|
|
49
69
|
}
|
|
50
70
|
/**
|
|
51
71
|
* Custom Context Menu Item
|
|
52
72
|
*/
|
|
53
|
-
export type CustomContextMenuItem = AgGridMenuItem<AgGridContextMenuItemType> | AdaptableSystemMenuItem | UserContextMenuItem | '-' | {
|
|
73
|
+
export type CustomContextMenuItem = AgGridMenuItem<AgGridContextMenuItemType> | AdaptableSystemMenuItem<AdaptableContextMenuItemName> | UserContextMenuItem | '-' | {
|
|
54
74
|
menuType: 'Group';
|
|
55
75
|
label: string;
|
|
56
76
|
subMenuItems: CustomContextMenuItem[];
|
|
@@ -60,7 +80,7 @@ export type CustomContextMenuItem = AgGridMenuItem<AgGridContextMenuItemType> |
|
|
|
60
80
|
/**
|
|
61
81
|
* Custom Column Menu Item
|
|
62
82
|
*/
|
|
63
|
-
export type CustomColumnMenuItem = AgGridMenuItem<AgGridColumnMenuItemType> | AdaptableSystemMenuItem | UserColumnMenuItem | '-' | {
|
|
83
|
+
export type CustomColumnMenuItem = AgGridMenuItem<AgGridColumnMenuItemType> | AdaptableSystemMenuItem<AdaptableColumnMenuItemName> | UserColumnMenuItem | '-' | {
|
|
64
84
|
menuType: 'Group';
|
|
65
85
|
label: string;
|
|
66
86
|
subMenuItems: CustomColumnMenuItem[];
|
|
@@ -83,7 +103,7 @@ export interface AgGridMenuItem<MENU_TYPE> {
|
|
|
83
103
|
/**
|
|
84
104
|
* System Menu Item that is provided by AdapTable
|
|
85
105
|
*/
|
|
86
|
-
export interface AdaptableSystemMenuItem extends AdaptableMenuItem {
|
|
106
|
+
export interface AdaptableSystemMenuItem<MENU_TYPE_NAME> extends AdaptableMenuItem<MENU_TYPE_NAME> {
|
|
87
107
|
/**
|
|
88
108
|
* Type of Menu - always 'Adaptable'
|
|
89
109
|
*/
|
|
@@ -167,8 +187,8 @@ export interface MenuOrderContext extends BaseContext {
|
|
|
167
187
|
/**
|
|
168
188
|
* Defines AG Grid Context Menu Items
|
|
169
189
|
*/
|
|
170
|
-
export type AgGridContextMenuItemType = 'autoSizeAll' | 'expandAll' | 'contractAll' | 'copy' | 'copyWithHeaders' | 'copyWithGroupHeaders' | 'cut' | 'paste' | 'resetColumns' | 'export' | 'csvExport' | 'excelExport' | 'chartRange' | 'pivotChart';
|
|
190
|
+
export type AgGridContextMenuItemType = 'autoSizeAll' | 'expandAll' | 'contractAll' | 'copy' | 'copyWithHeaders' | 'copyWithGroupHeaders' | 'cut' | 'paste' | 'resetColumns' | 'export' | 'csvExport' | 'excelExport' | 'chartRange' | 'pivotChart' | 'separator';
|
|
171
191
|
/**
|
|
172
192
|
* Defines AG Grid Column Menu Items
|
|
173
193
|
*/
|
|
174
|
-
export type AgGridColumnMenuItemType = 'pinSubMenu' | 'valueAggSubMenu' | 'autoSizeThis' | 'autoSizeAll' | 'rowGroup' | 'rowUnGroup' | 'resetColumns' | 'expandAll' | 'contractAll';
|
|
194
|
+
export type AgGridColumnMenuItemType = 'pinSubMenu' | 'valueAggSubMenu' | 'autoSizeThis' | 'autoSizeAll' | 'rowGroup' | 'rowUnGroup' | 'resetColumns' | 'expandAll' | 'contractAll' | 'separator';
|
|
@@ -33,7 +33,7 @@ export interface QuickSearchOptions<TData = any> {
|
|
|
33
33
|
*/
|
|
34
34
|
filterResultsAfterQuickSearch?: boolean;
|
|
35
35
|
/**
|
|
36
|
-
* Include Aggregrated Columns in
|
|
36
|
+
* Include Aggregrated Columns in Group Rows when Quick Searching (highlight only)
|
|
37
37
|
*
|
|
38
38
|
* @defaultValue false
|
|
39
39
|
* @gridInfoItem
|
package/src/Api/GridApi.d.ts
CHANGED
|
@@ -485,7 +485,7 @@ export interface GridApi {
|
|
|
485
485
|
*/
|
|
486
486
|
refreshRowNodes(rowNodes: IRowNode[]): void;
|
|
487
487
|
/**
|
|
488
|
-
* Forces a re-render of all
|
|
488
|
+
* Forces a re-render of all Group Rows (including aggregations)
|
|
489
489
|
*/
|
|
490
490
|
refreshGroupRowNodes(): void;
|
|
491
491
|
/**
|
|
@@ -13,6 +13,6 @@ export declare class NoteApiImpl extends ApiBase implements NoteApi {
|
|
|
13
13
|
deleteNote(note: AdaptableNote): void;
|
|
14
14
|
getNoteState(): NoteState;
|
|
15
15
|
getAllNotes(): AdaptableNotes;
|
|
16
|
-
|
|
16
|
+
getNoteForCell(address: CellAddress): AdaptableNote;
|
|
17
17
|
getNoteByUuid(uuid: string): AdaptableNote | undefined;
|
|
18
18
|
}
|
|
@@ -31,8 +31,8 @@ export class NoteApiImpl extends ApiBase {
|
|
|
31
31
|
getAllNotes() {
|
|
32
32
|
return this.getNoteState().Notes;
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
return NoteRedux.
|
|
34
|
+
getNoteForCell(address) {
|
|
35
|
+
return NoteRedux.GetNoteSelector(this.getAdaptableState().Note, address);
|
|
36
36
|
}
|
|
37
37
|
getNoteByUuid(uuid) {
|
|
38
38
|
return this.getAllNotes().find((note) => note.Uuid === uuid);
|
|
@@ -168,7 +168,7 @@ export class FormatColumnInternalApi extends ApiBase {
|
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
else if (isGroupedRowNode) {
|
|
171
|
-
if ((_b = formatColumn.RowScope) === null || _b === void 0 ? void 0 : _b.
|
|
171
|
+
if ((_b = formatColumn.RowScope) === null || _b === void 0 ? void 0 : _b.ExcludeGroupRows) {
|
|
172
172
|
return false;
|
|
173
173
|
}
|
|
174
174
|
}
|
package/src/Api/NoteApi.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ export interface NoteApi {
|
|
|
39
39
|
* Gets all Notes for a cell
|
|
40
40
|
* @param CellAddress note position
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
getNoteForCell(CellAddress: CellAddress): AdaptableNote;
|
|
43
43
|
/**
|
|
44
44
|
* Returns a Note by uuid
|
|
45
45
|
* @param uuid note uuid
|
|
@@ -54,4 +54,4 @@ export interface AdaptableBaseIcon {
|
|
|
54
54
|
/**
|
|
55
55
|
* All AdapTable System Icon names
|
|
56
56
|
*/
|
|
57
|
-
export 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' | 'fdc3' | 'flag' | 'chart' | 'chat' | 'check' | 'check-circle' | 'checked' | 'clone' | 'close' | 'cloud-upload' | 'collapse' | 'column-add' | 'columns' | 'filter-list' | 'copy' | 'comment' | 'comments' | 'contains' | 'dashboard' | 'data-set' | 'date-range' | 'delete' | 'division' | 'dock' | 'dollar' | 'drag' | 'edit' | 'ends-with' | 'equals' | 'equation' | 'error' | 'expand' | 'exponent' | 'export' | 'export-data' | 'fast-backward' | 'fast-forward' | 'filter' | 'filter-off' | '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' | 'interactions' | 'less-than' | 'less-than-or-equal' | 'list' | 'logout' | 'mail' | 'menu' | 'minus' | 'multiplication' | 'money' | 'newpage' | 'news' | 'filled-circle' | 'not-contains' | 'not-equal' | 'open-in-new' | 'order' | 'organisation' | 'pause' | 'percent' | 'percent-tag' | 'person' | 'contact' | 'pie-chart' | 'play' | 'plus' | 'add-circle' | 'search' | 'search-table' | 'select-all' | 'select-off' | 'select-fwd' | 'quote' | 'refresh' | 'regex' | 'reminder' | 'save' | 'schedule' | 'science' | 'settings' | 'link' | 'sort-asc' | 'sort-desc' | 'spark-line' | 'resume' | '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' | 'note' | 'import' | 'grid-filter' | 'grid-info' | 'rows';
|
|
57
|
+
export 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' | 'fdc3' | 'flag' | 'chart' | 'chat' | 'check' | 'check-circle' | 'checked' | 'clone' | 'close' | 'cloud-upload' | 'collapse' | 'column-add' | 'columns' | 'filter-list' | 'copy' | 'comment' | 'comments' | 'contains' | 'dashboard' | 'json' | 'data-set' | 'date-range' | 'delete' | 'division' | 'dock' | 'dollar' | 'drag' | 'edit' | 'ends-with' | 'equals' | 'equation' | 'error' | 'excel' | 'expand' | 'exponent' | 'export' | 'export-data' | 'fast-backward' | 'fast-forward' | 'filter' | 'filter-off' | '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' | 'interactions' | 'less-than' | 'less-than-or-equal' | 'list' | 'logout' | 'mail' | 'menu' | 'minus' | 'multiplication' | 'money' | 'newpage' | 'news' | 'filled-circle' | 'not-contains' | 'not-equal' | 'open-in-new' | 'order' | 'organisation' | 'pause' | 'percent' | 'percent-tag' | 'person' | 'contact' | 'pie-chart' | 'play' | 'plus' | 'add-circle' | 'search' | 'search-table' | 'select-all' | 'select-off' | 'select-fwd' | 'quote' | 'refresh' | 'regex' | 'reminder' | 'save' | 'schedule' | 'science' | 'settings' | 'link' | 'sort-asc' | 'sort-desc' | 'spark-line' | 'resume' | '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' | 'note' | 'import' | 'grid-filter' | 'grid-info' | 'csv' | 'rows' | 'expand-all' | 'collapse-all';
|
|
@@ -10,19 +10,27 @@ export type AdaptableContextMenuItemName = (typeof ADAPTABLE_CONTEXT_MENU_ITEMS)
|
|
|
10
10
|
/**
|
|
11
11
|
* List of Shipped Adaptable Column Menu Items
|
|
12
12
|
*/
|
|
13
|
-
export declare const ADAPTABLE_COLUMN_MENU_ITEMS: readonly ["calculated-column-edit", "cell-summary-show", "column-group", "column-filter-group", "column-filter-bar-hide", "column-filter-bar-show", "column-filter-clear", "column-filter-suspend", "column-filter-unsuspend", "column-info-show", "custom-sort-add", "custom-sort-edit", "dashboard-collapse", "dashboard-configure", "dashboard-dock", "dashboard-expand", "dashboard-float", "dashboard-hide", "dashboard-show", "data-import", "flashing-cell-add", "flashing-cell-delete", "format-column-add", "format-column-edit", "free-text-column-edit", "grid-group", "grid-info-show", "layout-column-caption-change", "layout-column-hide", "layout-edit", "layout-column-select", "layout-column-select-preserve", "layout-column-select-reset", "layout-grid-select", "plus-minus-add", "settings-panel-open", "styling-group", "styled-column-badge-add", "styled-column-badge-edit", "styled-column-gradient-add", "styled-column-gradient-edit", "styled-column-percent-bar-add", "styled-column-percent-bar-edit", "styled-column-sparkline-add", "styled-column-sparkline-edit", "system-status-show", "_navbar"];
|
|
13
|
+
export declare const ADAPTABLE_COLUMN_MENU_ITEMS: readonly ["calculated-column-edit", "cell-summary-show", "column-group", "column-filter-group", "column-filter-bar-hide", "column-filter-bar-show", "column-filter-clear", "column-filter-suspend", "column-filter-unsuspend", "column-info-show", "custom-sort-add", "custom-sort-edit", "dashboard-group", "dashboard-collapse", "dashboard-configure", "dashboard-dock", "dashboard-expand", "dashboard-float", "dashboard-hide", "dashboard-show", "data-import", "flashing-cell-add", "flashing-cell-delete", "format-column-add", "format-column-edit", "free-text-column-edit", "grid-group", "grid-info-show", "layout-column-caption-change", "layout-column-hide", "layout-edit", "layout-column-select", "layout-column-select-preserve", "layout-column-select-reset", "layout-grid-select", "plus-minus-add", "settings-panel-open", "styling-group", "styled-column-badge-add", "styled-column-badge-edit", "styled-column-gradient-add", "styled-column-gradient-edit", "styled-column-percent-bar-add", "styled-column-percent-bar-edit", "styled-column-sparkline-add", "styled-column-sparkline-edit", "system-status-show", "_navbar"];
|
|
14
14
|
/**
|
|
15
15
|
* List of Shipped Adaptable Context Menu Items
|
|
16
16
|
*/
|
|
17
|
-
export declare const ADAPTABLE_CONTEXT_MENU_ITEMS: readonly ["menu-group", "alert-clear", "bulk-update-apply", "calculated-column-edit", "cell-summary-show", "column-group", "column-filter-on-cell-value", "column-filter-clear", "column-filter-suspend", "column-filter-unsuspend", "column-info-show", "comment-add", "comment-remove", "dashboard-collapse", "dashboard-configure", "dashboard-dock", "dashboard-expand", "dashboard-float", "dashboard-hide", "dashboard-show", "data-import", "edit-group", "export-visual-data-excel", "export-all-data-excel", "export-all-data-csv", "export-all-data-clipboard", "export-all-data-json", "export-all-data-table", "export-current-data-excel", "export-current-data-csv", "export-current-data-clipboard", "export-current-data-json", "export-current-data-table", "export-selected-cells-excel", "export-selected-cells-csv", "export-selected-cells-clipboard", "export-selected-cells-json", "export-selected-cells-table", "export-selected-rows-excel", "export-selected-rows-csv", "export-selected-rows-clipboard", "export-selected-rows-json", "export-selected-rows-table", "fdc3-broadcast", "fdc3-raise-intent", "flashing-cell-clear", "flashing-row-clear", "grid-group", "grid-info-show", "layout-aggregated-view", "layout-auto-size", "layout-clear-selection", "layout-edit", "layout-select-all", "note-add", "note-remove", "settings-panel-open", "smart-edit-apply", "system-status-show"];
|
|
17
|
+
export declare const ADAPTABLE_CONTEXT_MENU_ITEMS: readonly ["menu-group", "alert-clear", "bulk-update-apply", "calculated-column-edit", "cell-summary-show", "column-group", "column-filter-on-cell-value", "column-filter-clear", "column-filter-suspend", "column-filter-unsuspend", "column-info-show", "comment-add", "comment-remove", "dashboard-group", "dashboard-collapse", "dashboard-configure", "dashboard-dock", "dashboard-expand", "dashboard-float", "dashboard-hide", "dashboard-show", "data-import", "edit-group", "export-group", "export-visual-data-excel", "export-all-data-excel", "export-all-data-csv", "export-all-data-clipboard", "export-all-data-json", "export-all-data-table", "export-current-data-excel", "export-current-data-csv", "export-current-data-clipboard", "export-current-data-json", "export-current-data-table", "export-selected-cells-excel", "export-selected-cells-csv", "export-selected-cells-clipboard", "export-selected-cells-json", "export-selected-cells-table", "export-selected-rows-excel", "export-selected-rows-csv", "export-selected-rows-clipboard", "export-selected-rows-json", "export-selected-rows-table", "fdc3-broadcast", "fdc3-raise-intent", "flashing-cell-clear", "flashing-row-clear", "grid-group", "grid-info-show", "layout-aggregated-view", "layout-auto-size", "layout-clear-selection", "layout-edit", "layout-select-all", "note-add", "note-remove", "settings-panel-open", "smart-edit-apply", "system-status-show"];
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Menu item used by Adaptable in Context Menus
|
|
20
20
|
*/
|
|
21
|
-
export
|
|
21
|
+
export type AdaptableContextMenuItem = AdaptableMenuItem<AdaptableColumnMenuItemName>;
|
|
22
|
+
/**
|
|
23
|
+
* Menu item used by Adaptable in Column Menus
|
|
24
|
+
*/
|
|
25
|
+
export type AdaptableColumnMenuItem = AdaptableMenuItem<AdaptableContextMenuItemName>;
|
|
26
|
+
/**
|
|
27
|
+
* Generic Menu item used by Adaptable in Column or Context Menus
|
|
28
|
+
*/
|
|
29
|
+
export interface AdaptableMenuItem<MENU_TYPE_NAME = AdaptableColumnMenuItemName | AdaptableContextMenuItemName> {
|
|
22
30
|
/**
|
|
23
31
|
* Unique name for the Menu Item
|
|
24
32
|
*/
|
|
25
|
-
name:
|
|
33
|
+
name: MENU_TYPE_NAME;
|
|
26
34
|
/**
|
|
27
35
|
* Text that appears in the menu
|
|
28
36
|
*/
|
|
@@ -30,7 +38,7 @@ export interface AdaptableMenuItem {
|
|
|
30
38
|
/**
|
|
31
39
|
* Adaptable Module associated with (Adaptable) menu item.
|
|
32
40
|
*/
|
|
33
|
-
module: AdaptableModule | 'General' | 'CustomSettingsPanel';
|
|
41
|
+
module: AdaptableModule | 'General' | 'CustomSettingsPanel' | 'Group';
|
|
34
42
|
/**
|
|
35
43
|
* Function to invoke when (custom) menu item is clicked
|
|
36
44
|
*/
|
|
@@ -14,6 +14,7 @@ export const ADAPTABLE_COLUMN_MENU_ITEMS = [
|
|
|
14
14
|
'column-info-show',
|
|
15
15
|
'custom-sort-add',
|
|
16
16
|
'custom-sort-edit',
|
|
17
|
+
'dashboard-group',
|
|
17
18
|
'dashboard-collapse',
|
|
18
19
|
'dashboard-configure',
|
|
19
20
|
'dashboard-dock',
|
|
@@ -67,6 +68,7 @@ export const ADAPTABLE_CONTEXT_MENU_ITEMS = [
|
|
|
67
68
|
'column-info-show',
|
|
68
69
|
'comment-add',
|
|
69
70
|
'comment-remove',
|
|
71
|
+
'dashboard-group',
|
|
70
72
|
'dashboard-collapse',
|
|
71
73
|
'dashboard-configure',
|
|
72
74
|
'dashboard-dock',
|
|
@@ -76,6 +78,7 @@ export const ADAPTABLE_CONTEXT_MENU_ITEMS = [
|
|
|
76
78
|
'dashboard-show',
|
|
77
79
|
'data-import',
|
|
78
80
|
'edit-group',
|
|
81
|
+
'export-group',
|
|
79
82
|
'export-visual-data-excel',
|
|
80
83
|
'export-all-data-excel',
|
|
81
84
|
'export-all-data-csv',
|
|
@@ -46,7 +46,7 @@ export interface FormatColumn extends SuspendableObject {
|
|
|
46
46
|
*/
|
|
47
47
|
RowScope?: RowScope;
|
|
48
48
|
/**
|
|
49
|
-
* @deprecated FormatColumns now apply to
|
|
49
|
+
* @deprecated FormatColumns now apply to Group Rows by default; use RowScope for more control
|
|
50
50
|
*/
|
|
51
51
|
IncludeGroupedRows?: never;
|
|
52
52
|
}
|
|
@@ -56,7 +56,7 @@ export interface Layout extends AdaptableObject {
|
|
|
56
56
|
*/
|
|
57
57
|
ExpandedRowGroupValues?: any[];
|
|
58
58
|
/**
|
|
59
|
-
* Columns showing aggregated values in
|
|
59
|
+
* Columns showing aggregated values in Group Rows; 1st value in record is Column name, 2nd is either aggfunc (e.g. sum, avg etc.) or 'true' (to use default aggfunc)
|
|
60
60
|
*/
|
|
61
61
|
AggregationColumns?: AggregationColumns;
|
|
62
62
|
/**
|
|
@@ -34,5 +34,5 @@ export declare const NoteEdit: (note: AdaptableNote) => AdaptableNoteEditAction;
|
|
|
34
34
|
export declare const NoteDelete: (note: AdaptableNote) => AdaptableNoteDeleteAction;
|
|
35
35
|
export declare const NoteReady: (note: NoteState) => NoteReadyAction;
|
|
36
36
|
export declare const GetAllNotesSelector: (state: NoteState) => AdaptableNote[];
|
|
37
|
-
export declare const
|
|
37
|
+
export declare const GetNoteSelector: (state: NoteState, address: CellAddress) => AdaptableNote;
|
|
38
38
|
export declare const NoteReducer: Redux.Reducer<NoteState>;
|
|
@@ -33,12 +33,12 @@ export const NoteReady = (note) => ({
|
|
|
33
33
|
noteState: note,
|
|
34
34
|
});
|
|
35
35
|
export const GetAllNotesSelector = (state) => state.Notes;
|
|
36
|
-
export const
|
|
36
|
+
export const GetNoteSelector = (state, address) => {
|
|
37
37
|
var _a;
|
|
38
38
|
if (!address) {
|
|
39
|
-
return
|
|
39
|
+
return null;
|
|
40
40
|
}
|
|
41
|
-
return ((_a = state === null || state === void 0 ? void 0 : state.Notes) !== null && _a !== void 0 ? _a : []).
|
|
41
|
+
return ((_a = state === null || state === void 0 ? void 0 : state.Notes) !== null && _a !== void 0 ? _a : []).find((note) => {
|
|
42
42
|
if (note.PrimaryKeyValue === address.PrimaryKeyValue && note.ColumnId === address.ColumnId) {
|
|
43
43
|
// happy check
|
|
44
44
|
return true;
|
|
@@ -37,18 +37,18 @@ export declare abstract class AdaptableModuleBase implements IModule {
|
|
|
37
37
|
onAdaptableStateReloaded(adaptableStateReloadedInfo: AdaptableStateReloadedInfo): void;
|
|
38
38
|
setModuleEntitlement(): void;
|
|
39
39
|
createModuleMenuItem(source: 'ModuleMenu' | 'ModuleButton'): AdaptableMenuItem | undefined;
|
|
40
|
-
createColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
|
|
41
|
-
createContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
|
|
42
|
-
createMainMenuItemShowPopup({ Name, Label, ComponentName, Icon, PopupParams, }: {
|
|
43
|
-
Name:
|
|
40
|
+
createColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem<AdaptableColumnMenuItemName>[] | undefined;
|
|
41
|
+
createContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem<AdaptableContextMenuItemName>[] | undefined;
|
|
42
|
+
createMainMenuItemShowPopup<MENU_TYPE_NAME = AdaptableColumnMenuItemName | AdaptableContextMenuItemName>({ Name, Label, ComponentName, Icon, PopupParams, }: {
|
|
43
|
+
Name: MENU_TYPE_NAME;
|
|
44
44
|
Label: string;
|
|
45
45
|
ComponentName: string;
|
|
46
46
|
Icon: AdaptableSystemIconName;
|
|
47
47
|
PopupParams?: ModuleParams;
|
|
48
|
-
}): MenuItemShowPopup
|
|
49
|
-
createMenuItemClickFunction
|
|
50
|
-
createMenuItemReduxAction
|
|
51
|
-
createMenuItemShowPopup
|
|
48
|
+
}): MenuItemShowPopup<MENU_TYPE_NAME>;
|
|
49
|
+
createMenuItemClickFunction<MENU_TYPE_NAME = AdaptableColumnMenuItemName | AdaptableContextMenuItemName>(Name: MENU_TYPE_NAME, Label: string, Icon: AdaptableSystemIconName, ClickFunction: () => void): MenuItemDoClickFunction<MENU_TYPE_NAME>;
|
|
50
|
+
createMenuItemReduxAction<MENU_TYPE_NAME = AdaptableColumnMenuItemName | AdaptableContextMenuItemName>(Name: MENU_TYPE_NAME, Label: string, Icon: AdaptableSystemIconName, Action: Action): MenuItemDoReduxAction<MENU_TYPE_NAME>;
|
|
51
|
+
createMenuItemShowPopup<MENU_TYPE_NAME = AdaptableColumnMenuItemName | AdaptableContextMenuItemName>(Name: MENU_TYPE_NAME, Label: string, ComponentName: string, Icon: AdaptableSystemIconName, PopupParams?: ModuleParams): MenuItemShowPopup<MENU_TYPE_NAME>;
|
|
52
52
|
getTeamSharingAction(): TeamSharingImportInfo<AdaptableObject> | undefined;
|
|
53
53
|
getModuleNamedQueryReferences(): string[];
|
|
54
54
|
getModuleCalculatedColumnReferences(): CalculatedColumn[];
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
2
2
|
import { AlertDefinition } from '../PredefinedConfig/AlertState';
|
|
3
3
|
import { AdaptableAlert } from '../PredefinedConfig/Common/AdaptableAlert';
|
|
4
|
-
import {
|
|
4
|
+
import { ContextMenuContext } from '../PredefinedConfig/Common/Menu';
|
|
5
5
|
import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
|
|
6
|
+
import { MenuItemShowPopup } from '../Utilities/MenuItem';
|
|
6
7
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
7
8
|
import { AdaptableModuleView, AdaptableObjectCompactView, AdaptableObjectView, IModule } from './Interface/IModule';
|
|
8
9
|
import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
|
|
@@ -14,7 +15,7 @@ export declare class AlertModule extends AdaptableModuleBase implements IModule
|
|
|
14
15
|
}): AdaptableObject[];
|
|
15
16
|
getExplicitlyReferencedColumnIds(alertDefinition: AlertDefinition): string[];
|
|
16
17
|
getReferencedNamedQueryNames(alertDefinition: AlertDefinition): string[];
|
|
17
|
-
createContextMenuItems(menuContext: ContextMenuContext):
|
|
18
|
+
createContextMenuItems(menuContext: ContextMenuContext): MenuItemShowPopup<"calculated-column-edit" | "cell-summary-show" | "column-group" | "column-filter-clear" | "column-filter-suspend" | "column-filter-unsuspend" | "column-info-show" | "dashboard-group" | "dashboard-collapse" | "dashboard-configure" | "dashboard-dock" | "dashboard-expand" | "dashboard-float" | "dashboard-hide" | "dashboard-show" | "data-import" | "grid-group" | "grid-info-show" | "layout-edit" | "settings-panel-open" | "system-status-show" | "menu-group" | "alert-clear" | "bulk-update-apply" | "column-filter-on-cell-value" | "comment-add" | "comment-remove" | "edit-group" | "export-group" | "export-visual-data-excel" | "export-all-data-excel" | "export-all-data-csv" | "export-all-data-clipboard" | "export-all-data-json" | "export-all-data-table" | "export-current-data-excel" | "export-current-data-csv" | "export-current-data-clipboard" | "export-current-data-json" | "export-current-data-table" | "export-selected-cells-excel" | "export-selected-cells-csv" | "export-selected-cells-clipboard" | "export-selected-cells-json" | "export-selected-cells-table" | "export-selected-rows-excel" | "export-selected-rows-csv" | "export-selected-rows-clipboard" | "export-selected-rows-json" | "export-selected-rows-table" | "fdc3-broadcast" | "fdc3-raise-intent" | "flashing-cell-clear" | "flashing-row-clear" | "layout-aggregated-view" | "layout-auto-size" | "layout-clear-selection" | "layout-select-all" | "note-add" | "note-remove" | "smart-edit-apply">[];
|
|
18
19
|
private handleCellDataChanged;
|
|
19
20
|
private handleGridDataChanged;
|
|
20
21
|
private handleReactiveAlertTriggered;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
2
2
|
import { BulkUpdateValidationResult, IBulkUpdateModule } from './Interface/IBulkUpdateModule';
|
|
3
3
|
import { PreviewInfo } from '../Utilities/Interface/Preview';
|
|
4
|
-
import {
|
|
4
|
+
import { MenuItemShowPopup } from '../Utilities/MenuItem';
|
|
5
|
+
import { ContextMenuContext } from '../PredefinedConfig/Common/Menu';
|
|
5
6
|
import { AccessLevel, AdaptableApi } from '../types';
|
|
6
7
|
export declare class BulkUpdateModule extends AdaptableModuleBase implements IBulkUpdateModule {
|
|
7
8
|
constructor(api: AdaptableApi);
|
|
8
9
|
getViewAccessLevel(): AccessLevel;
|
|
9
|
-
createContextMenuItems(menuContext: ContextMenuContext):
|
|
10
|
+
createContextMenuItems(menuContext: ContextMenuContext): MenuItemShowPopup<"calculated-column-edit" | "cell-summary-show" | "column-group" | "column-filter-clear" | "column-filter-suspend" | "column-filter-unsuspend" | "column-info-show" | "dashboard-group" | "dashboard-collapse" | "dashboard-configure" | "dashboard-dock" | "dashboard-expand" | "dashboard-float" | "dashboard-hide" | "dashboard-show" | "data-import" | "grid-group" | "grid-info-show" | "layout-edit" | "settings-panel-open" | "system-status-show" | "menu-group" | "alert-clear" | "bulk-update-apply" | "column-filter-on-cell-value" | "comment-add" | "comment-remove" | "edit-group" | "export-group" | "export-visual-data-excel" | "export-all-data-excel" | "export-all-data-csv" | "export-all-data-clipboard" | "export-all-data-json" | "export-all-data-table" | "export-current-data-excel" | "export-current-data-csv" | "export-current-data-clipboard" | "export-current-data-json" | "export-current-data-table" | "export-selected-cells-excel" | "export-selected-cells-csv" | "export-selected-cells-clipboard" | "export-selected-cells-json" | "export-selected-cells-table" | "export-selected-rows-excel" | "export-selected-rows-csv" | "export-selected-rows-clipboard" | "export-selected-rows-json" | "export-selected-rows-table" | "fdc3-broadcast" | "fdc3-raise-intent" | "flashing-cell-clear" | "flashing-row-clear" | "layout-aggregated-view" | "layout-auto-size" | "layout-clear-selection" | "layout-select-all" | "note-add" | "note-remove" | "smart-edit-apply">[];
|
|
10
11
|
checkCorrectCellSelection(): BulkUpdateValidationResult;
|
|
11
12
|
buildPreviewValues(bulkUpdateValue: any): PreviewInfo;
|
|
12
13
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
3
3
|
import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
4
|
-
import {
|
|
4
|
+
import { ContextMenuContext } from '../PredefinedConfig/Common/Menu';
|
|
5
5
|
import * as CalculatedColumnRedux from '../Redux/ActionsReducers/CalculatedColumnRedux';
|
|
6
6
|
import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
|
|
7
7
|
import { CalculatedColumn } from '../PredefinedConfig/CalculatedColumnState';
|
|
@@ -16,9 +16,8 @@ export declare class CalculatedColumnModule extends AdaptableModuleBase implemen
|
|
|
16
16
|
getExplicitlyReferencedColumnIds(calculatedColumn: CalculatedColumn): string[];
|
|
17
17
|
getReferencedNamedQueryNames(calculatedColumn: CalculatedColumn): string[];
|
|
18
18
|
private isCalculatedColumn;
|
|
19
|
-
createColumnMenuItems(column: AdaptableColumn):
|
|
20
|
-
createContextMenuItems(menuContext: ContextMenuContext):
|
|
21
|
-
createEditCalculatedColumnMenuItem(column: AdaptableColumn): AdaptableMenuItem[];
|
|
19
|
+
createColumnMenuItems(column: AdaptableColumn): import("../Utilities/MenuItem").MenuItemShowPopup<"calculated-column-edit" | "cell-summary-show" | "column-group" | "column-filter-group" | "column-filter-bar-hide" | "column-filter-bar-show" | "column-filter-clear" | "column-filter-suspend" | "column-filter-unsuspend" | "column-info-show" | "custom-sort-add" | "custom-sort-edit" | "dashboard-group" | "dashboard-collapse" | "dashboard-configure" | "dashboard-dock" | "dashboard-expand" | "dashboard-float" | "dashboard-hide" | "dashboard-show" | "data-import" | "flashing-cell-add" | "flashing-cell-delete" | "format-column-add" | "format-column-edit" | "free-text-column-edit" | "grid-group" | "grid-info-show" | "layout-column-caption-change" | "layout-column-hide" | "layout-edit" | "layout-column-select" | "layout-column-select-preserve" | "layout-column-select-reset" | "layout-grid-select" | "plus-minus-add" | "settings-panel-open" | "styling-group" | "styled-column-badge-add" | "styled-column-badge-edit" | "styled-column-gradient-add" | "styled-column-gradient-edit" | "styled-column-percent-bar-add" | "styled-column-percent-bar-edit" | "styled-column-sparkline-add" | "styled-column-sparkline-edit" | "system-status-show" | "_navbar">[];
|
|
20
|
+
createContextMenuItems(menuContext: ContextMenuContext): import("../Utilities/MenuItem").MenuItemShowPopup<"calculated-column-edit" | "cell-summary-show" | "column-group" | "column-filter-clear" | "column-filter-suspend" | "column-filter-unsuspend" | "column-info-show" | "dashboard-group" | "dashboard-collapse" | "dashboard-configure" | "dashboard-dock" | "dashboard-expand" | "dashboard-float" | "dashboard-hide" | "dashboard-show" | "data-import" | "grid-group" | "grid-info-show" | "layout-edit" | "settings-panel-open" | "system-status-show" | "menu-group" | "alert-clear" | "bulk-update-apply" | "column-filter-on-cell-value" | "comment-add" | "comment-remove" | "edit-group" | "export-group" | "export-visual-data-excel" | "export-all-data-excel" | "export-all-data-csv" | "export-all-data-clipboard" | "export-all-data-json" | "export-all-data-table" | "export-current-data-excel" | "export-current-data-csv" | "export-current-data-clipboard" | "export-current-data-json" | "export-current-data-table" | "export-selected-cells-excel" | "export-selected-cells-csv" | "export-selected-cells-clipboard" | "export-selected-cells-json" | "export-selected-cells-table" | "export-selected-rows-excel" | "export-selected-rows-csv" | "export-selected-rows-clipboard" | "export-selected-rows-json" | "export-selected-rows-table" | "fdc3-broadcast" | "fdc3-raise-intent" | "flashing-cell-clear" | "flashing-row-clear" | "layout-aggregated-view" | "layout-auto-size" | "layout-clear-selection" | "layout-select-all" | "note-add" | "note-remove" | "smart-edit-apply">[];
|
|
22
21
|
getTeamSharingAction(): TeamSharingImportInfo<CalculatedColumn>;
|
|
23
22
|
toView(calculateColumn: CalculatedColumn): {
|
|
24
23
|
items: AdaptableObjectItemView[];
|
|
@@ -36,7 +36,14 @@ export class CalculatedColumnModule extends AdaptableModuleBase {
|
|
|
36
36
|
}
|
|
37
37
|
createColumnMenuItems(column) {
|
|
38
38
|
if (this.isModuleEditable() && this.isCalculatedColumn(column)) {
|
|
39
|
-
|
|
39
|
+
const popupParam = {
|
|
40
|
+
column: column,
|
|
41
|
+
action: 'Edit',
|
|
42
|
+
source: 'ColumnMenu',
|
|
43
|
+
};
|
|
44
|
+
return [
|
|
45
|
+
this.createMenuItemShowPopup('calculated-column-edit', 'Edit Calculated Column', this.moduleInfo.Popup, this.moduleInfo.Glyph, popupParam),
|
|
46
|
+
];
|
|
40
47
|
}
|
|
41
48
|
}
|
|
42
49
|
createContextMenuItems(menuContext) {
|
|
@@ -47,19 +54,16 @@ export class CalculatedColumnModule extends AdaptableModuleBase {
|
|
|
47
54
|
this.isCalculatedColumn(menuContext.adaptableColumn) &&
|
|
48
55
|
!menuContext.isRowGroupColumn &&
|
|
49
56
|
menuContext.isSingleSelectedCell) {
|
|
50
|
-
|
|
57
|
+
const popupParam = {
|
|
58
|
+
column: menuContext.adaptableColumn,
|
|
59
|
+
action: 'Edit',
|
|
60
|
+
source: 'ContextMenu',
|
|
61
|
+
};
|
|
62
|
+
return [
|
|
63
|
+
this.createMenuItemShowPopup('calculated-column-edit', 'Edit Calculated Column', this.moduleInfo.Popup, this.moduleInfo.Glyph, popupParam),
|
|
64
|
+
];
|
|
51
65
|
}
|
|
52
66
|
}
|
|
53
|
-
createEditCalculatedColumnMenuItem(column) {
|
|
54
|
-
let popupParam = {
|
|
55
|
-
column: column,
|
|
56
|
-
action: 'Edit',
|
|
57
|
-
source: 'ColumnMenu',
|
|
58
|
-
};
|
|
59
|
-
return [
|
|
60
|
-
this.createMenuItemShowPopup('calculated-column-edit', 'Edit Calculated Column', this.moduleInfo.Popup, this.moduleInfo.Glyph, popupParam),
|
|
61
|
-
];
|
|
62
|
-
}
|
|
63
67
|
getTeamSharingAction() {
|
|
64
68
|
return {
|
|
65
69
|
ModuleEntities: this.api.calculatedColumnApi.getCalculatedColumns(),
|
|
@@ -3,7 +3,7 @@ import { AdaptableApi } from '../Api/AdaptableApi';
|
|
|
3
3
|
import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
4
4
|
import { CellSummmary } from '../PredefinedConfig/Common/CellSummary';
|
|
5
5
|
import { AccessLevel } from '../PredefinedConfig/Common/Entitlement';
|
|
6
|
-
import {
|
|
6
|
+
import { ContextMenuContext } from '../PredefinedConfig/Common/Menu';
|
|
7
7
|
import { SelectedCellInfo } from '../PredefinedConfig/Selection/SelectedCellInfo';
|
|
8
8
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
9
9
|
import { ICellSummaryModule } from './Interface/ICellSummaryModule';
|
|
@@ -11,9 +11,8 @@ export declare class CellSummaryModule extends AdaptableModuleBase implements IC
|
|
|
11
11
|
cachedCellSummary: WeakMap<SelectedCellInfo<any>, CellSummmary>;
|
|
12
12
|
constructor(api: AdaptableApi);
|
|
13
13
|
getViewAccessLevel(): AccessLevel;
|
|
14
|
-
createColumnMenuItems(column: AdaptableColumn):
|
|
15
|
-
createContextMenuItems(menuContext: ContextMenuContext):
|
|
16
|
-
private createCellSummaryMenuItem;
|
|
14
|
+
createColumnMenuItems(column: AdaptableColumn): import("../Utilities/MenuItem").MenuItemShowPopup<"calculated-column-edit" | "cell-summary-show" | "column-group" | "column-filter-group" | "column-filter-bar-hide" | "column-filter-bar-show" | "column-filter-clear" | "column-filter-suspend" | "column-filter-unsuspend" | "column-info-show" | "custom-sort-add" | "custom-sort-edit" | "dashboard-group" | "dashboard-collapse" | "dashboard-configure" | "dashboard-dock" | "dashboard-expand" | "dashboard-float" | "dashboard-hide" | "dashboard-show" | "data-import" | "flashing-cell-add" | "flashing-cell-delete" | "format-column-add" | "format-column-edit" | "free-text-column-edit" | "grid-group" | "grid-info-show" | "layout-column-caption-change" | "layout-column-hide" | "layout-edit" | "layout-column-select" | "layout-column-select-preserve" | "layout-column-select-reset" | "layout-grid-select" | "plus-minus-add" | "settings-panel-open" | "styling-group" | "styled-column-badge-add" | "styled-column-badge-edit" | "styled-column-gradient-add" | "styled-column-gradient-edit" | "styled-column-percent-bar-add" | "styled-column-percent-bar-edit" | "styled-column-sparkline-add" | "styled-column-sparkline-edit" | "system-status-show" | "_navbar">[];
|
|
15
|
+
createContextMenuItems(menuContext: ContextMenuContext): import("../Utilities/MenuItem").MenuItemShowPopup<"calculated-column-edit" | "cell-summary-show" | "column-group" | "column-filter-clear" | "column-filter-suspend" | "column-filter-unsuspend" | "column-info-show" | "dashboard-group" | "dashboard-collapse" | "dashboard-configure" | "dashboard-dock" | "dashboard-expand" | "dashboard-float" | "dashboard-hide" | "dashboard-show" | "data-import" | "grid-group" | "grid-info-show" | "layout-edit" | "settings-panel-open" | "system-status-show" | "menu-group" | "alert-clear" | "bulk-update-apply" | "column-filter-on-cell-value" | "comment-add" | "comment-remove" | "edit-group" | "export-group" | "export-visual-data-excel" | "export-all-data-excel" | "export-all-data-csv" | "export-all-data-clipboard" | "export-all-data-json" | "export-all-data-table" | "export-current-data-excel" | "export-current-data-csv" | "export-current-data-clipboard" | "export-current-data-json" | "export-current-data-table" | "export-selected-cells-excel" | "export-selected-cells-csv" | "export-selected-cells-clipboard" | "export-selected-cells-json" | "export-selected-cells-table" | "export-selected-rows-excel" | "export-selected-rows-csv" | "export-selected-rows-clipboard" | "export-selected-rows-json" | "export-selected-rows-table" | "fdc3-broadcast" | "fdc3-raise-intent" | "flashing-cell-clear" | "flashing-row-clear" | "layout-aggregated-view" | "layout-auto-size" | "layout-clear-selection" | "layout-select-all" | "note-add" | "note-remove" | "smart-edit-apply">[];
|
|
17
16
|
createCellSummary(selectedCellInfo: SelectedCellInfo): CellSummmary;
|
|
18
17
|
private getWeightedAverageCellSummary;
|
|
19
18
|
getViewProperties(): {
|
|
@@ -18,9 +18,15 @@ export class CellSummaryModule extends AdaptableModuleBase {
|
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
20
|
return [
|
|
21
|
-
this.
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
this.createMainMenuItemShowPopup({
|
|
22
|
+
Name: 'cell-summary-show',
|
|
23
|
+
Label: 'See Cell Summary',
|
|
24
|
+
ComponentName: this.moduleInfo.Popup,
|
|
25
|
+
Icon: this.moduleInfo.Glyph,
|
|
26
|
+
PopupParams: {
|
|
27
|
+
source: 'ColumnMenu',
|
|
28
|
+
column,
|
|
29
|
+
},
|
|
24
30
|
}),
|
|
25
31
|
];
|
|
26
32
|
}
|
|
@@ -30,21 +36,18 @@ export class CellSummaryModule extends AdaptableModuleBase {
|
|
|
30
36
|
}
|
|
31
37
|
if (menuContext.adaptableColumn && menuContext.isSelectedCell) {
|
|
32
38
|
return [
|
|
33
|
-
this.
|
|
34
|
-
|
|
39
|
+
this.createMainMenuItemShowPopup({
|
|
40
|
+
Name: 'cell-summary-show',
|
|
41
|
+
Label: 'See Cell Summary',
|
|
42
|
+
ComponentName: this.moduleInfo.Popup,
|
|
43
|
+
Icon: this.moduleInfo.Glyph,
|
|
44
|
+
PopupParams: {
|
|
45
|
+
source: 'ContextMenu',
|
|
46
|
+
},
|
|
35
47
|
}),
|
|
36
48
|
];
|
|
37
49
|
}
|
|
38
50
|
}
|
|
39
|
-
createCellSummaryMenuItem(popUpParams) {
|
|
40
|
-
return this.createMainMenuItemShowPopup({
|
|
41
|
-
Name: 'cell-summary-show',
|
|
42
|
-
Label: 'See Cell Summary',
|
|
43
|
-
ComponentName: this.moduleInfo.Popup,
|
|
44
|
-
Icon: this.moduleInfo.Glyph,
|
|
45
|
-
PopupParams: popUpParams,
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
51
|
createCellSummary(selectedCellInfo) {
|
|
49
52
|
if (this.cachedCellSummary.has(selectedCellInfo)) {
|
|
50
53
|
return this.cachedCellSummary.get(selectedCellInfo);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
2
2
|
import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
3
|
-
import { AdaptableMenuItem, ContextMenuContext } from '../PredefinedConfig/Common/Menu';
|
|
3
|
+
import { AdaptableContextMenuItemName, AdaptableMenuItem, ContextMenuContext } from '../PredefinedConfig/Common/Menu';
|
|
4
4
|
import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
|
|
5
5
|
import { AdaptableModuleView, AdaptableObjectCompactView, AdaptableObjectView, IModule } from './Interface/IModule';
|
|
6
6
|
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
@@ -13,8 +13,8 @@ export declare class ColumnFilterModule extends AdaptableModuleBase implements I
|
|
|
13
13
|
getExplicitlyReferencedColumnIds(columnFilter: ColumnFilter): string[];
|
|
14
14
|
hasNamedQueryReferences(): boolean;
|
|
15
15
|
onAdaptableReady(): void;
|
|
16
|
-
createColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem
|
|
17
|
-
createContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
|
|
16
|
+
createColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem<"calculated-column-edit" | "cell-summary-show" | "column-group" | "column-filter-group" | "column-filter-bar-hide" | "column-filter-bar-show" | "column-filter-clear" | "column-filter-suspend" | "column-filter-unsuspend" | "column-info-show" | "custom-sort-add" | "custom-sort-edit" | "dashboard-group" | "dashboard-collapse" | "dashboard-configure" | "dashboard-dock" | "dashboard-expand" | "dashboard-float" | "dashboard-hide" | "dashboard-show" | "data-import" | "flashing-cell-add" | "flashing-cell-delete" | "format-column-add" | "format-column-edit" | "free-text-column-edit" | "grid-group" | "grid-info-show" | "layout-column-caption-change" | "layout-column-hide" | "layout-edit" | "layout-column-select" | "layout-column-select-preserve" | "layout-column-select-reset" | "layout-grid-select" | "plus-minus-add" | "settings-panel-open" | "styling-group" | "styled-column-badge-add" | "styled-column-badge-edit" | "styled-column-gradient-add" | "styled-column-gradient-edit" | "styled-column-percent-bar-add" | "styled-column-percent-bar-edit" | "styled-column-sparkline-add" | "styled-column-sparkline-edit" | "system-status-show" | "_navbar">[];
|
|
17
|
+
createContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem<AdaptableContextMenuItemName>[] | undefined;
|
|
18
18
|
private getExistingColumnFilter;
|
|
19
19
|
getTeamSharingAction(): TeamSharingImportInfo<ColumnFilter>;
|
|
20
20
|
toViewCompact(filter: ColumnFilter): AdaptableObjectCompactView;
|
|
@@ -2,10 +2,10 @@ import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
|
2
2
|
import { IModule } from './Interface/IModule';
|
|
3
3
|
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
4
4
|
import { AccessLevel } from '../PredefinedConfig/Common/Entitlement';
|
|
5
|
-
import { AdaptableColumn,
|
|
5
|
+
import { AdaptableColumn, ContextMenuContext } from '../types';
|
|
6
6
|
export declare class ColumnInfoModule extends AdaptableModuleBase implements IModule {
|
|
7
7
|
constructor(api: AdaptableApi);
|
|
8
8
|
getViewAccessLevel(): AccessLevel;
|
|
9
|
-
createColumnMenuItems(column: AdaptableColumn):
|
|
10
|
-
createContextMenuItems(menuContext: ContextMenuContext):
|
|
9
|
+
createColumnMenuItems(column: AdaptableColumn): import("../Utilities/MenuItem").MenuItemShowPopup<"calculated-column-edit" | "cell-summary-show" | "column-group" | "column-filter-group" | "column-filter-bar-hide" | "column-filter-bar-show" | "column-filter-clear" | "column-filter-suspend" | "column-filter-unsuspend" | "column-info-show" | "custom-sort-add" | "custom-sort-edit" | "dashboard-group" | "dashboard-collapse" | "dashboard-configure" | "dashboard-dock" | "dashboard-expand" | "dashboard-float" | "dashboard-hide" | "dashboard-show" | "data-import" | "flashing-cell-add" | "flashing-cell-delete" | "format-column-add" | "format-column-edit" | "free-text-column-edit" | "grid-group" | "grid-info-show" | "layout-column-caption-change" | "layout-column-hide" | "layout-edit" | "layout-column-select" | "layout-column-select-preserve" | "layout-column-select-reset" | "layout-grid-select" | "plus-minus-add" | "settings-panel-open" | "styling-group" | "styled-column-badge-add" | "styled-column-badge-edit" | "styled-column-gradient-add" | "styled-column-gradient-edit" | "styled-column-percent-bar-add" | "styled-column-percent-bar-edit" | "styled-column-sparkline-add" | "styled-column-sparkline-edit" | "system-status-show" | "_navbar">[];
|
|
10
|
+
createContextMenuItems(menuContext: ContextMenuContext): import("../Utilities/MenuItem").MenuItemShowPopup<"calculated-column-edit" | "cell-summary-show" | "column-group" | "column-filter-clear" | "column-filter-suspend" | "column-filter-unsuspend" | "column-info-show" | "dashboard-group" | "dashboard-collapse" | "dashboard-configure" | "dashboard-dock" | "dashboard-expand" | "dashboard-float" | "dashboard-hide" | "dashboard-show" | "data-import" | "grid-group" | "grid-info-show" | "layout-edit" | "settings-panel-open" | "system-status-show" | "menu-group" | "alert-clear" | "bulk-update-apply" | "column-filter-on-cell-value" | "comment-add" | "comment-remove" | "edit-group" | "export-group" | "export-visual-data-excel" | "export-all-data-excel" | "export-all-data-csv" | "export-all-data-clipboard" | "export-all-data-json" | "export-all-data-table" | "export-current-data-excel" | "export-current-data-csv" | "export-current-data-clipboard" | "export-current-data-json" | "export-current-data-table" | "export-selected-cells-excel" | "export-selected-cells-csv" | "export-selected-cells-clipboard" | "export-selected-cells-json" | "export-selected-cells-table" | "export-selected-rows-excel" | "export-selected-rows-csv" | "export-selected-rows-clipboard" | "export-selected-rows-json" | "export-selected-rows-table" | "fdc3-broadcast" | "fdc3-raise-intent" | "flashing-cell-clear" | "flashing-row-clear" | "layout-aggregated-view" | "layout-auto-size" | "layout-clear-selection" | "layout-select-all" | "note-add" | "note-remove" | "smart-edit-apply">[];
|
|
11
11
|
}
|