@adaptabletools/adaptable 22.1.0 → 22.1.1-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.css +8 -9
- package/package.json +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +2 -2
- package/src/AdaptableOptions/AdaptableOptions.d.ts +2 -21
- package/src/AdaptableOptions/AlertOptions.d.ts +0 -5
- package/src/AdaptableOptions/CellSummaryOptions.d.ts +2 -0
- package/src/AdaptableOptions/ChartingOptions.d.ts +2 -0
- package/src/AdaptableOptions/ColumnOptions.d.ts +0 -2
- package/src/AdaptableOptions/CommentOptions.d.ts +6 -0
- package/src/AdaptableOptions/ContainerOptions.d.ts +0 -6
- package/src/AdaptableOptions/DashboardOptions.d.ts +0 -2
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +0 -2
- package/src/AdaptableOptions/DataSetOptions.d.ts +2 -0
- package/src/AdaptableOptions/DefaultAdaptableOptions.js +35 -3
- package/src/AdaptableOptions/EditOptions.d.ts +0 -1
- package/src/AdaptableOptions/EntitlementOptions.d.ts +0 -2
- package/src/AdaptableOptions/ExportOptions.d.ts +1 -7
- package/src/AdaptableOptions/ExpressionOptions.d.ts +0 -18
- package/src/AdaptableOptions/Fdc3Options.d.ts +5 -1
- package/src/AdaptableOptions/FilterOptions.d.ts +3 -18
- package/src/AdaptableOptions/NoteOptions.d.ts +6 -0
- package/src/AdaptableOptions/NotificationsOptions.d.ts +0 -10
- package/src/AdaptableOptions/PredicateOptions.d.ts +12 -1
- package/src/AdaptableOptions/QuickSearchOptions.d.ts +0 -4
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +15 -5
- package/src/AdaptableOptions/TeamSharingOptions.d.ts +0 -4
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -1
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +6 -7
- package/src/AdaptableState/Common/AdaptableFormat.d.ts +9 -0
- package/src/AdaptableState/Common/AdaptableFormatPresets.d.ts +31 -0
- package/src/AdaptableState/Common/AdaptableFormatPresets.js +181 -0
- package/src/AdaptableState/Common/Menu.d.ts +1 -1
- package/src/AdaptableState/Common/Menu.js +2 -0
- package/src/AdaptableState/FormatColumnState.d.ts +6 -3
- package/src/Api/EventApi.d.ts +6 -6
- package/src/Api/Implementation/EntitlementApiImpl.js +5 -4
- package/src/Api/Implementation/FormatColumnApiImpl.js +8 -3
- package/src/Api/Implementation/GridApiImpl.js +1 -12
- package/src/Api/Internal/FormatColumnInternalApi.js +4 -2
- package/src/Api/Internal/LayoutInternalApi.js +5 -2
- package/src/Redux/Store/AdaptableStore.js +4 -4
- package/src/Strategy/AdaptableModuleBase.js +8 -7
- package/src/Strategy/AlertModule.d.ts +1 -1
- package/src/Strategy/BulkUpdateModule.d.ts +1 -1
- package/src/Strategy/BulkUpdateModule.js +2 -1
- package/src/Strategy/CalculatedColumnModule.d.ts +1 -1
- package/src/Strategy/CellSummaryModule.d.ts +1 -1
- package/src/Strategy/CellSummaryModule.js +2 -1
- package/src/Strategy/ColumnFilterModule.js +2 -1
- package/src/Strategy/ColumnInfoModule.d.ts +1 -1
- package/src/Strategy/ColumnInfoModule.js +2 -1
- package/src/Strategy/CommentModule.d.ts +1 -1
- package/src/Strategy/CommentModule.js +12 -2
- package/src/Strategy/ExportModule.d.ts +1 -1
- package/src/Strategy/Fdc3Module.d.ts +1 -1
- package/src/Strategy/FlashingCellModule.d.ts +1 -1
- package/src/Strategy/GridFilterModule.js +2 -1
- package/src/Strategy/GridInfoModule.d.ts +1 -1
- package/src/Strategy/GridInfoModule.js +2 -1
- package/src/Strategy/LayoutModule.d.ts +1 -1
- package/src/Strategy/NamedQueryModule.js +0 -16
- package/src/Strategy/NoteModule.d.ts +1 -1
- package/src/Strategy/NoteModule.js +16 -3
- package/src/Strategy/PlusMinusModule.js +8 -2
- package/src/Strategy/ScheduleModule.js +5 -4
- package/src/Strategy/SettingsPanelModule.d.ts +1 -1
- package/src/Strategy/ShortcutModule.js +5 -4
- package/src/Strategy/SmartEditModule.d.ts +1 -1
- package/src/Strategy/SmartEditModule.js +4 -4
- package/src/Strategy/SystemStatusModule.d.ts +1 -1
- package/src/Utilities/Constants/GeneralConstants.d.ts +4 -0
- package/src/Utilities/Constants/GeneralConstants.js +4 -0
- package/src/Utilities/Extensions/NumberExtensions.d.ts +2 -0
- package/src/Utilities/Extensions/NumberExtensions.js +8 -0
- package/src/Utilities/Helpers/AdaptableHelper.js +3 -2
- package/src/Utilities/Helpers/FormatHelper.js +26 -15
- package/src/Utilities/Services/AnnotationsService.js +10 -1
- package/src/Utilities/Services/Interface/IMetamodelService.d.ts +0 -1
- package/src/Utilities/Services/MetamodelService.d.ts +0 -2
- package/src/Utilities/Services/MetamodelService.js +6 -12
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +7 -6
- package/src/View/Alert/AlertEmptyView.js +2 -1
- package/src/View/BulkUpdate/BulkUpdateViewPanel.js +1 -1
- package/src/View/CellSummary/CellSummaryViewPanel.js +2 -1
- package/src/View/Comments/CommentsEditor.js +2 -1
- package/src/View/Comments/CommentsPopup.js +3 -1
- package/src/View/Components/Buttons/ButtonBase/index.js +3 -2
- package/src/View/Components/Buttons/EntityListActionButtons.js +7 -6
- package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.js +2 -1
- package/src/View/Components/ColumnFilter/components/ColumnFilterInput.js +3 -2
- package/src/View/Components/ColumnFilter/components/ColumnFilterInputList.js +4 -1
- package/src/View/Components/Panels/PanelDashboard/index.js +2 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +4 -2
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +2 -1
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +3 -2
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +2 -1
- package/src/View/Dashboard/CustomDashboardButton.js +3 -2
- package/src/View/Dashboard/Dashboard.js +3 -2
- package/src/View/Dashboard/DashboardPopup.js +3 -2
- package/src/View/Dashboard/PinnedToolbarsSelector.js +2 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +2 -1
- package/src/View/Export/ExportViewPanel.js +3 -1
- package/src/View/Filter/FilterViewPanel.js +2 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +137 -181
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +20 -8
- package/src/View/GridFilter/GridFilterPopupUI/index.d.ts +3 -2
- package/src/View/GridFilter/GridFilterPopupUI/index.js +2 -1
- package/src/View/GridFilter/GridFilterViewPanel.js +3 -2
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +179 -6
- package/src/View/Layout/LayoutCloneButton.js +2 -1
- package/src/View/Layout/LayoutViewPanel.js +3 -1
- package/src/View/Layout/TransposedPopup.js +2 -1
- package/src/View/Note/NotePopup.js +3 -1
- package/src/View/SmartEdit/SmartEditViewPanel.js +2 -1
- package/src/View/StateManagement/StateManagementViewPanel.js +3 -1
- package/src/View/StatusBar/StatusBarPopup.js +2 -1
- package/src/View/Theme/ThemeEditor.js +2 -1
- package/src/View/Theme/ThemePopup.js +2 -1
- package/src/View/Theme/ThemeSelector.js +3 -1
- package/src/View/Theme/ThemeViewPanel.js +3 -1
- package/src/View/Wizard/OnePageWizards.js +3 -2
- package/src/agGrid/AdaptableAgGrid.d.ts +2 -2
- package/src/agGrid/AdaptableAgGrid.js +7 -29
- package/src/agGrid/AgGridAdapter.js +2 -2
- package/src/agGrid/AgGridColumnAdapter.js +11 -4
- package/src/agGrid/AgGridExportAdapter.js +4 -2
- package/src/agGrid/cellRenderers/ActionColumnRenderer.js +2 -1
- package/src/components/Dashboard/Dashboard.js +2 -1
- package/src/components/Dashboard/DashboardToolbar.js +2 -1
- package/src/components/Datepicker/index.js +2 -1
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +1 -1
- package/src/components/Select/Select.js +4 -3
- package/src/components/SimpleButton/index.js +3 -2
- package/src/env.js +2 -2
- package/src/metamodel/adaptable-metamodel-model.d.ts +0 -2
- package/src/metamodel/adaptable.metamodel.d.ts +10 -197
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +2 -0
- package/src/types.js +1 -0
- package/themes/dark.css +3 -1
- package/tsconfig.esm.tsbuildinfo +1 -1
- package/index.css.map +0 -1
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Concrete options associated with each numeric preset. The wizard and
|
|
3
|
+
* runtime resolver both pull from this single source of truth.
|
|
4
|
+
*/
|
|
5
|
+
export const NUMERIC_FORMAT_PRESETS = {
|
|
6
|
+
Percentage: {
|
|
7
|
+
FractionDigits: 2,
|
|
8
|
+
FractionSeparator: '.',
|
|
9
|
+
IntegerDigits: undefined,
|
|
10
|
+
IntegerSeparator: ',',
|
|
11
|
+
Prefix: '',
|
|
12
|
+
Suffix: '%',
|
|
13
|
+
Multiplier: 100,
|
|
14
|
+
Parentheses: false,
|
|
15
|
+
},
|
|
16
|
+
Thousand: {
|
|
17
|
+
FractionDigits: undefined,
|
|
18
|
+
FractionSeparator: '.',
|
|
19
|
+
IntegerDigits: undefined,
|
|
20
|
+
IntegerSeparator: ',',
|
|
21
|
+
Prefix: '',
|
|
22
|
+
Suffix: 'K',
|
|
23
|
+
Multiplier: 0.001,
|
|
24
|
+
Parentheses: false,
|
|
25
|
+
},
|
|
26
|
+
Million: {
|
|
27
|
+
FractionDigits: undefined,
|
|
28
|
+
FractionSeparator: '.',
|
|
29
|
+
IntegerDigits: undefined,
|
|
30
|
+
IntegerSeparator: ',',
|
|
31
|
+
Prefix: '',
|
|
32
|
+
Suffix: 'M',
|
|
33
|
+
Multiplier: 0.000001,
|
|
34
|
+
Parentheses: false,
|
|
35
|
+
},
|
|
36
|
+
Billion: {
|
|
37
|
+
FractionDigits: undefined,
|
|
38
|
+
FractionSeparator: '.',
|
|
39
|
+
IntegerDigits: undefined,
|
|
40
|
+
IntegerSeparator: ',',
|
|
41
|
+
Prefix: '',
|
|
42
|
+
Suffix: 'B',
|
|
43
|
+
Multiplier: 0.000000001,
|
|
44
|
+
Parentheses: false,
|
|
45
|
+
},
|
|
46
|
+
BasisPoints: {
|
|
47
|
+
FractionDigits: 0,
|
|
48
|
+
FractionSeparator: '.',
|
|
49
|
+
IntegerDigits: undefined,
|
|
50
|
+
IntegerSeparator: ',',
|
|
51
|
+
Prefix: '',
|
|
52
|
+
Suffix: ' bps',
|
|
53
|
+
Multiplier: 10000,
|
|
54
|
+
Parentheses: false,
|
|
55
|
+
},
|
|
56
|
+
Dollar: {
|
|
57
|
+
FractionDigits: 2,
|
|
58
|
+
FractionSeparator: '.',
|
|
59
|
+
IntegerDigits: undefined,
|
|
60
|
+
IntegerSeparator: ',',
|
|
61
|
+
Prefix: '$',
|
|
62
|
+
Suffix: '',
|
|
63
|
+
Multiplier: 1,
|
|
64
|
+
Parentheses: false,
|
|
65
|
+
},
|
|
66
|
+
Sterling: {
|
|
67
|
+
FractionDigits: 2,
|
|
68
|
+
FractionSeparator: '.',
|
|
69
|
+
IntegerDigits: undefined,
|
|
70
|
+
IntegerSeparator: ',',
|
|
71
|
+
Prefix: '£',
|
|
72
|
+
Suffix: '',
|
|
73
|
+
Multiplier: 1,
|
|
74
|
+
Parentheses: false,
|
|
75
|
+
},
|
|
76
|
+
Euro: {
|
|
77
|
+
FractionDigits: 2,
|
|
78
|
+
FractionSeparator: '.',
|
|
79
|
+
IntegerDigits: undefined,
|
|
80
|
+
IntegerSeparator: ',',
|
|
81
|
+
Prefix: '€',
|
|
82
|
+
Suffix: '',
|
|
83
|
+
Multiplier: 1,
|
|
84
|
+
Parentheses: false,
|
|
85
|
+
},
|
|
86
|
+
Yen: {
|
|
87
|
+
FractionDigits: 0,
|
|
88
|
+
FractionSeparator: '.',
|
|
89
|
+
IntegerDigits: undefined,
|
|
90
|
+
IntegerSeparator: ',',
|
|
91
|
+
Prefix: '¥',
|
|
92
|
+
Suffix: '',
|
|
93
|
+
Multiplier: 1,
|
|
94
|
+
Parentheses: false,
|
|
95
|
+
},
|
|
96
|
+
Bitcoin: {
|
|
97
|
+
FractionDigits: 8,
|
|
98
|
+
FractionSeparator: '.',
|
|
99
|
+
IntegerDigits: undefined,
|
|
100
|
+
IntegerSeparator: ',',
|
|
101
|
+
Prefix: '₿',
|
|
102
|
+
Suffix: '',
|
|
103
|
+
Multiplier: 1,
|
|
104
|
+
Parentheses: false,
|
|
105
|
+
},
|
|
106
|
+
Integer: {
|
|
107
|
+
FractionDigits: 0,
|
|
108
|
+
FractionSeparator: '.',
|
|
109
|
+
IntegerDigits: undefined,
|
|
110
|
+
IntegerSeparator: ',',
|
|
111
|
+
Prefix: '',
|
|
112
|
+
Suffix: '',
|
|
113
|
+
Multiplier: 1,
|
|
114
|
+
Parentheses: false,
|
|
115
|
+
},
|
|
116
|
+
Decimal: {
|
|
117
|
+
FractionDigits: 2,
|
|
118
|
+
FractionSeparator: '.',
|
|
119
|
+
IntegerDigits: undefined,
|
|
120
|
+
IntegerSeparator: ',',
|
|
121
|
+
Prefix: '',
|
|
122
|
+
Suffix: '',
|
|
123
|
+
Multiplier: 1,
|
|
124
|
+
Parentheses: false,
|
|
125
|
+
},
|
|
126
|
+
Accounting: {
|
|
127
|
+
FractionDigits: 2,
|
|
128
|
+
FractionSeparator: '.',
|
|
129
|
+
IntegerDigits: undefined,
|
|
130
|
+
IntegerSeparator: ',',
|
|
131
|
+
Prefix: '',
|
|
132
|
+
Suffix: '',
|
|
133
|
+
Multiplier: 1,
|
|
134
|
+
Parentheses: true,
|
|
135
|
+
},
|
|
136
|
+
FXRate: {
|
|
137
|
+
FractionDigits: 4,
|
|
138
|
+
FractionSeparator: '.',
|
|
139
|
+
IntegerDigits: undefined,
|
|
140
|
+
IntegerSeparator: '',
|
|
141
|
+
Prefix: '',
|
|
142
|
+
Suffix: '',
|
|
143
|
+
Multiplier: 1,
|
|
144
|
+
Parentheses: false,
|
|
145
|
+
},
|
|
146
|
+
Scientific: {
|
|
147
|
+
FractionDigits: 2,
|
|
148
|
+
FractionSeparator: '.',
|
|
149
|
+
IntegerDigits: undefined,
|
|
150
|
+
IntegerSeparator: undefined,
|
|
151
|
+
Prefix: '',
|
|
152
|
+
Suffix: '',
|
|
153
|
+
Multiplier: 1,
|
|
154
|
+
Parentheses: false,
|
|
155
|
+
Notation: 'scientific',
|
|
156
|
+
},
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* Type guard: `true` if the value is a known numeric preset name.
|
|
160
|
+
*/
|
|
161
|
+
export const isAdaptableNumericFormatPreset = (value) => {
|
|
162
|
+
return typeof value === 'string' && value in NUMERIC_FORMAT_PRESETS;
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* Resolve a `DisplayFormat` (preset name or concrete object) into a
|
|
166
|
+
* concrete `AdaptableFormat`. Returns `undefined` if the input is
|
|
167
|
+
* `undefined`. A bare preset name is expanded into a `NumberFormatter`
|
|
168
|
+
* with the corresponding options.
|
|
169
|
+
*/
|
|
170
|
+
export const resolveDisplayFormat = (displayFormat) => {
|
|
171
|
+
if (displayFormat == null) {
|
|
172
|
+
return undefined;
|
|
173
|
+
}
|
|
174
|
+
if (isAdaptableNumericFormatPreset(displayFormat)) {
|
|
175
|
+
return {
|
|
176
|
+
Formatter: 'NumberFormatter',
|
|
177
|
+
Options: { ...NUMERIC_FORMAT_PRESETS[displayFormat] },
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
return displayFormat;
|
|
181
|
+
};
|
|
@@ -20,7 +20,7 @@ export declare const ADAPTABLE_COLUMN_MENU_ITEMS: readonly ["calculated-column-e
|
|
|
20
20
|
/**
|
|
21
21
|
* List of Shipped Adaptable Context Menu Items
|
|
22
22
|
*/
|
|
23
|
-
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-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-all-data", "export-all-data-excel-download", "export-all-data-visualexcel-download", "export-all-data-csv", "export-all-data-csv-download", "export-all-data-csv-clipboard", "export-all-data-json", "export-all-data-json-download", "export-all-data-json-clipboard", "export-current-layout", "export-current-layout-excel-download", "export-current-layout-visualexcel-download", "export-current-layout-csv", "export-current-layout-csv-download", "export-current-layout-csv-clipboard", "export-current-layout-json", "export-current-layout-json-download", "export-current-layout-json-clipboard", "export-selected-data", "export-selected-data-excel-download", "export-selected-data-visualexcel-download", "export-selected-data-csv", "export-selected-data-csv-download", "export-selected-data-csv-clipboard", "export-selected-data-json", "export-selected-data-json-download", "export-selected-data-json-clipboard", "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"];
|
|
23
|
+
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-group", "column-filter-on-cell-value", "column-filter-clear", "column-filter-suspend", "column-filter-unsuspend", "column-info-show", "comment-add", "comment-remove", "comment-show", "dashboard-group", "dashboard-collapse", "dashboard-configure", "dashboard-dock", "dashboard-expand", "dashboard-float", "dashboard-hide", "dashboard-show", "data-import", "edit-group", "export-group", "export-all-data", "export-all-data-excel-download", "export-all-data-visualexcel-download", "export-all-data-csv", "export-all-data-csv-download", "export-all-data-csv-clipboard", "export-all-data-json", "export-all-data-json-download", "export-all-data-json-clipboard", "export-current-layout", "export-current-layout-excel-download", "export-current-layout-visualexcel-download", "export-current-layout-csv", "export-current-layout-csv-download", "export-current-layout-csv-clipboard", "export-current-layout-json", "export-current-layout-json-download", "export-current-layout-json-clipboard", "export-selected-data", "export-selected-data-excel-download", "export-selected-data-visualexcel-download", "export-selected-data-csv", "export-selected-data-csv-download", "export-selected-data-csv-clipboard", "export-selected-data-json", "export-selected-data-json-download", "export-selected-data-json-clipboard", "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", "note-show", "settings-panel-open", "smart-edit-apply", "system-status-show"];
|
|
24
24
|
/**
|
|
25
25
|
* Menu item used by Adaptable in Context Menus
|
|
26
26
|
*/
|
|
@@ -71,6 +71,7 @@ export const ADAPTABLE_CONTEXT_MENU_ITEMS = [
|
|
|
71
71
|
'column-info-show',
|
|
72
72
|
'comment-add',
|
|
73
73
|
'comment-remove',
|
|
74
|
+
'comment-show',
|
|
74
75
|
'dashboard-group',
|
|
75
76
|
'dashboard-collapse',
|
|
76
77
|
'dashboard-configure',
|
|
@@ -122,6 +123,7 @@ export const ADAPTABLE_CONTEXT_MENU_ITEMS = [
|
|
|
122
123
|
'layout-select-all',
|
|
123
124
|
'note-add',
|
|
124
125
|
'note-remove',
|
|
126
|
+
'note-show',
|
|
125
127
|
'settings-panel-open',
|
|
126
128
|
'smart-edit-apply',
|
|
127
129
|
'system-status-show',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseState } from './BaseState';
|
|
2
2
|
import { AdaptableStyle } from './Common/AdaptableStyle';
|
|
3
|
-
import {
|
|
3
|
+
import { DisplayFormat } from './Common/AdaptableFormatPresets';
|
|
4
4
|
import { ColumnScope } from './Common/ColumnScope';
|
|
5
5
|
import { RowScope } from './Common/RowScope';
|
|
6
6
|
import { XOR } from '../Utilities/Extensions/TypeExtensions';
|
|
@@ -44,9 +44,12 @@ export interface FormatColumn extends SuspendableObject {
|
|
|
44
44
|
*/
|
|
45
45
|
Style?: AdaptableStyle;
|
|
46
46
|
/**
|
|
47
|
-
* Display Format to apply to Column
|
|
47
|
+
* Display Format to apply to Column. Can be a concrete `AdaptableFormat`
|
|
48
|
+
* (Numeric, String or Date) **or** the name of a numeric preset such as
|
|
49
|
+
* `'Percentage'`, `'Thousand'`, `'Million'`, `'Dollar'`, `'Sterling'`,
|
|
50
|
+
* which is resolved at render time.
|
|
48
51
|
*/
|
|
49
|
-
DisplayFormat?:
|
|
52
|
+
DisplayFormat?: DisplayFormat;
|
|
50
53
|
/**
|
|
51
54
|
* Which types of Rows to apply format (data, grouped, summary, total)
|
|
52
55
|
*/
|
package/src/Api/EventApi.d.ts
CHANGED
|
@@ -16,6 +16,12 @@ export interface EventApi {
|
|
|
16
16
|
* @param callback
|
|
17
17
|
*/
|
|
18
18
|
off(eventName: 'GridSorted', callback: (gridSortedInfo: GridSortedInfo) => void): void;
|
|
19
|
+
/**
|
|
20
|
+
* Event fired whenever a Grid Filter is applied in AdapTable
|
|
21
|
+
* @param eventName GridFilterApplied
|
|
22
|
+
* @param callback GridFilterAppliedInfo which provides details of the Grid Filter that was applied
|
|
23
|
+
* @returns the unsubscribe function
|
|
24
|
+
*/
|
|
19
25
|
on(eventName: 'GridFilterApplied', callback: (gridFilterAppliedInfo: GridFilterAppliedInfo) => void): VoidFunction;
|
|
20
26
|
/**
|
|
21
27
|
* Unsubscribe from GridFilterApplied
|
|
@@ -347,10 +353,4 @@ export interface EventApi {
|
|
|
347
353
|
* @param callbackFdc3MessageInfo
|
|
348
354
|
*/
|
|
349
355
|
off(eventName: 'Fdc3Message', callback: (fdc3MessageInfo: Fdc3MessageInfo) => void): void;
|
|
350
|
-
emitSync(eventName: 'BeforeAdaptableStateChange', data?: any): any[];
|
|
351
|
-
emitSync(eventName: 'DashboardChanged', data?: any): any[];
|
|
352
|
-
emitSync(eventName: 'FlashingCellDisplayed', data?: any): any[];
|
|
353
|
-
emitSync(eventName: 'AdaptableDestroy'): any[];
|
|
354
|
-
emit(eventName: 'RowFormSubmitted' | 'AdaptableReady' | 'AlertFired' | 'BeforeAdaptableStateChange' | 'AdaptableStateChanged' | 'AdaptableStateReloaded' | 'CellChanged' | 'ChartChanged' | 'CheckboxColumnClicked' | 'CustomToolbarConfigured' | 'DashboardChanged' | 'DataImported' | 'DataSetSelected' | 'ColumnFilterApplied' | 'Fdc3Message' | 'RowChanged' | 'GridSorted' | 'LayoutChanged' | 'CalculatedColumnChanged' | 'LiveDataChanged' | 'ScheduleTriggered' | 'SearchChanged' | 'CellSelectionChanged' | 'RowSelectionChanged' | 'SystemStatusMessageDisplayed' | 'TeamSharingEntityChanged' | 'ThemeChanged' | 'GridFilterApplied' | 'CommentChanged', data?: any): Promise<any>;
|
|
355
|
-
destroy(): void;
|
|
356
356
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ApiBase } from './ApiBase';
|
|
2
2
|
import { EntitlementInternalApi } from '../Internal/EntitlementInternalApi';
|
|
3
|
+
import { ACCESS_LEVEL_FULL, ACCESS_LEVEL_HIDDEN, ACCESS_LEVEL_READ_ONLY, } from '../../Utilities/Constants/GeneralConstants';
|
|
3
4
|
export class EntitlementApiImpl extends ApiBase {
|
|
4
5
|
internalApi;
|
|
5
6
|
constructor(_adaptable) {
|
|
@@ -34,18 +35,18 @@ export class EntitlementApiImpl extends ApiBase {
|
|
|
34
35
|
// if still here then return their default Access Level
|
|
35
36
|
return defaultAccessLevel;
|
|
36
37
|
}
|
|
37
|
-
return
|
|
38
|
+
return ACCESS_LEVEL_FULL;
|
|
38
39
|
}
|
|
39
40
|
isObjectReadonly(object) {
|
|
40
41
|
return object.IsReadOnly;
|
|
41
42
|
}
|
|
42
43
|
isModuleHiddenEntitlement(adaptableModule) {
|
|
43
|
-
return this.getEntitlementAccessLevelForModule(adaptableModule) ==
|
|
44
|
+
return this.getEntitlementAccessLevelForModule(adaptableModule) == ACCESS_LEVEL_HIDDEN;
|
|
44
45
|
}
|
|
45
46
|
isModuleFullEntitlement(adaptableModule) {
|
|
46
|
-
return this.getEntitlementAccessLevelForModule(adaptableModule) ==
|
|
47
|
+
return this.getEntitlementAccessLevelForModule(adaptableModule) == ACCESS_LEVEL_FULL;
|
|
47
48
|
}
|
|
48
49
|
isModuleReadOnlyEntitlement(adaptableModule) {
|
|
49
|
-
return this.getEntitlementAccessLevelForModule(adaptableModule) ==
|
|
50
|
+
return this.getEntitlementAccessLevelForModule(adaptableModule) == ACCESS_LEVEL_READ_ONLY;
|
|
50
51
|
}
|
|
51
52
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { resolveDisplayFormat } from '../../AdaptableState/Common/AdaptableFormatPresets';
|
|
1
2
|
import * as FormatColumnRedux from '../../Redux/ActionsReducers/FormatColumnRedux';
|
|
2
3
|
import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants';
|
|
3
4
|
import ArrayExtensions from '../../Utilities/Extensions/ArrayExtensions';
|
|
@@ -30,7 +31,10 @@ export class FormatColumnApiImpl extends ApiBase {
|
|
|
30
31
|
return undefined;
|
|
31
32
|
}
|
|
32
33
|
const formatColumn = formatColumns.find((fc) => fc.DisplayFormat != undefined);
|
|
33
|
-
|
|
34
|
+
// Resolve numeric preset names (e.g. 'Dollar') into the concrete
|
|
35
|
+
// AdaptableFormat object so external callers always receive a fully
|
|
36
|
+
// structured format.
|
|
37
|
+
return formatColumn ? resolveDisplayFormat(formatColumn.DisplayFormat) : undefined;
|
|
34
38
|
}
|
|
35
39
|
getSuspendedFormatColumns(config) {
|
|
36
40
|
return this.getFormatColumns(config).filter((formatColumn) => formatColumn.IsSuspended);
|
|
@@ -100,10 +104,11 @@ export class FormatColumnApiImpl extends ApiBase {
|
|
|
100
104
|
return formatColumns.filter((fc) => this.getColumnScopeApi().scopeHasColumns(fc.Scope));
|
|
101
105
|
}
|
|
102
106
|
hasCustomDisplayFormatter(formatColumn) {
|
|
103
|
-
|
|
107
|
+
const resolved = resolveDisplayFormat(formatColumn?.DisplayFormat);
|
|
108
|
+
if (!resolved || !resolved.Options) {
|
|
104
109
|
return false;
|
|
105
110
|
}
|
|
106
|
-
const options =
|
|
111
|
+
const options = resolved.Options;
|
|
107
112
|
const columnCustomFormatters = options?.CustomDisplayFormats ?? [];
|
|
108
113
|
if (!columnCustomFormatters?.length) {
|
|
109
114
|
return false;
|
|
@@ -112,18 +112,7 @@ export class GridApiImpl extends ApiBase {
|
|
|
112
112
|
return transactionResult;
|
|
113
113
|
}
|
|
114
114
|
setCellValue(cellUpdateRequest) {
|
|
115
|
-
|
|
116
|
-
if (!abColumn) {
|
|
117
|
-
this.logWarn(`setCellValue() - column not found for columnId: ${cellUpdateRequest.columnId}`);
|
|
118
|
-
return;
|
|
119
|
-
}
|
|
120
|
-
const rowNode = cellUpdateRequest.rowNode ?? this.getRowNodeForPrimaryKey(cellUpdateRequest.primaryKeyValue);
|
|
121
|
-
if (!rowNode) {
|
|
122
|
-
this.logWarn(`setCellValue() - rowNode not found for primaryKeyValue: ${cellUpdateRequest.primaryKeyValue}`);
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
125
|
-
this._adaptable.setDataValue(cellUpdateRequest.newValue, abColumn, cellUpdateRequest.primaryKeyValue, rowNode);
|
|
126
|
-
this.refreshCell(rowNode, abColumn.columnId);
|
|
115
|
+
this._adaptable.updateCell(cellUpdateRequest);
|
|
127
116
|
}
|
|
128
117
|
setCellValues(cellUpdateRequests) {
|
|
129
118
|
cellUpdateRequests?.forEach((cellUpdateRequest) => this.setCellValue(cellUpdateRequest));
|
|
@@ -4,6 +4,7 @@ import FormatHelper from '../../Utilities/Helpers/FormatHelper';
|
|
|
4
4
|
import ObjectFactory from '../../Utilities/ObjectFactory';
|
|
5
5
|
import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants';
|
|
6
6
|
import { errorOnce } from '../../agGrid/AdaptableLogger';
|
|
7
|
+
import { resolveDisplayFormat } from '../../AdaptableState/Common/AdaptableFormatPresets';
|
|
7
8
|
function getParentGroup(source) {
|
|
8
9
|
if (!source) {
|
|
9
10
|
return undefined;
|
|
@@ -351,11 +352,12 @@ export class FormatColumnInternalApi extends ApiBase {
|
|
|
351
352
|
if (!mostRelevantFormatColumn) {
|
|
352
353
|
return headerName;
|
|
353
354
|
}
|
|
354
|
-
|
|
355
|
+
const resolvedDisplayFormat = resolveDisplayFormat(mostRelevantFormatColumn.DisplayFormat);
|
|
356
|
+
if (resolvedDisplayFormat?.Formatter !== 'StringFormatter') {
|
|
355
357
|
// headers are always strings, so we can only use StringFormatter
|
|
356
358
|
return headerName;
|
|
357
359
|
}
|
|
358
|
-
const formattedHeaderName = this.getFormatColumnApi().internalApi.getStringFormattedValue(headerName, null, abColumn,
|
|
360
|
+
const formattedHeaderName = this.getFormatColumnApi().internalApi.getStringFormattedValue(headerName, null, abColumn, resolvedDisplayFormat.Options);
|
|
359
361
|
return formattedHeaderName;
|
|
360
362
|
}
|
|
361
363
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ACCESS_LEVEL_HIDDEN } from '../../Utilities/Constants/GeneralConstants';
|
|
1
2
|
import { ColumnFilterModuleId, GridFilterModuleId, } from '../../Utilities/Constants/ModuleConstants';
|
|
2
3
|
import ArrayExtensions from '../../Utilities/Extensions/ArrayExtensions';
|
|
3
4
|
import { ApiBase } from '../Implementation/ApiBase';
|
|
@@ -43,10 +44,12 @@ export class LayoutInternalApi extends ApiBase {
|
|
|
43
44
|
layoutSupportedFeatures.ColumnFilters = false;
|
|
44
45
|
layoutSupportedFeatures.GridFilter = false;
|
|
45
46
|
}
|
|
46
|
-
if (this.getEntitlementApi().getEntitlementAccessLevelForModule(ColumnFilterModuleId) ==
|
|
47
|
+
if (this.getEntitlementApi().getEntitlementAccessLevelForModule(ColumnFilterModuleId) ==
|
|
48
|
+
ACCESS_LEVEL_HIDDEN) {
|
|
47
49
|
layoutSupportedFeatures.GridFilter = false;
|
|
48
50
|
}
|
|
49
|
-
if (this.getEntitlementApi().getEntitlementAccessLevelForModule(GridFilterModuleId) ==
|
|
51
|
+
if (this.getEntitlementApi().getEntitlementAccessLevelForModule(GridFilterModuleId) ==
|
|
52
|
+
ACCESS_LEVEL_HIDDEN) {
|
|
50
53
|
layoutSupportedFeatures.GridFilter = false;
|
|
51
54
|
}
|
|
52
55
|
if (this._adaptable?.getAgGridRowModelType?.() !== 'clientSide') {
|
|
@@ -1238,8 +1238,8 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
1238
1238
|
case SmartEditRedux.SMART_EDIT_APPLY: {
|
|
1239
1239
|
const actionTyped = action;
|
|
1240
1240
|
let thePreview = middlewareAPI.getState().Internal.SmartEdit.SmartEditPreviewInfo;
|
|
1241
|
-
let
|
|
1242
|
-
adaptable.api.gridApi.setCellValues(
|
|
1241
|
+
let cellUpdateRequests = PreviewHelper.GetCellUpdateRequestsFromPreview(thePreview, actionTyped.bypassValidationWarnings);
|
|
1242
|
+
adaptable.api.gridApi.setCellValues(cellUpdateRequests);
|
|
1243
1243
|
adaptable.api.internalApi.hidePopupScreen();
|
|
1244
1244
|
return next(action);
|
|
1245
1245
|
}
|
|
@@ -1283,8 +1283,8 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
1283
1283
|
case BulkUpdateRedux.BULK_UPDATE_APPLY: {
|
|
1284
1284
|
const actionTyped = action;
|
|
1285
1285
|
let thePreview = middlewareAPI.getState().Internal.BulkUpdate.BulkUpdatePreviewInfo;
|
|
1286
|
-
let
|
|
1287
|
-
adaptable.api.gridApi.setCellValues(
|
|
1286
|
+
let cellUpdateRequests = PreviewHelper.GetCellUpdateRequestsFromPreview(thePreview, actionTyped.bypassValidationWarnings);
|
|
1287
|
+
adaptable.api.gridApi.setCellValues(cellUpdateRequests);
|
|
1288
1288
|
adaptable.api.internalApi.hidePopupScreen();
|
|
1289
1289
|
return next(action);
|
|
1290
1290
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MenuItemShowPopup, MenuItemDoReduxAction, MenuItemDoClickFunction, } from '../Utilities/MenuItem';
|
|
2
2
|
import ArrayExtensions from '../Utilities/Extensions/ArrayExtensions';
|
|
3
|
+
import { ACCESS_LEVEL_FULL, ACCESS_LEVEL_HIDDEN, ACCESS_LEVEL_READ_ONLY, } from '../Utilities/Constants/GeneralConstants';
|
|
3
4
|
/**
|
|
4
5
|
* Base class for all strategies and does most of the work of creating menus
|
|
5
6
|
*/
|
|
@@ -31,11 +32,11 @@ export class AdaptableModuleBase {
|
|
|
31
32
|
}
|
|
32
33
|
getViewAccessLevel() {
|
|
33
34
|
// override where necessary (ex. only 'Full' accessLevel should be displayed)
|
|
34
|
-
return
|
|
35
|
+
return ACCESS_LEVEL_READ_ONLY;
|
|
35
36
|
}
|
|
36
37
|
getEditAccessLevel() {
|
|
37
38
|
// override where necessary
|
|
38
|
-
return
|
|
39
|
+
return ACCESS_LEVEL_FULL;
|
|
39
40
|
}
|
|
40
41
|
getAgGridModuleDependencies() {
|
|
41
42
|
// override where necessary
|
|
@@ -257,14 +258,14 @@ export class AdaptableModuleBase {
|
|
|
257
258
|
return returnValue;
|
|
258
259
|
}
|
|
259
260
|
hasRequiredAccessLevel(requiredAccessLevel) {
|
|
260
|
-
if (this.AccessLevel ===
|
|
261
|
+
if (this.AccessLevel === ACCESS_LEVEL_HIDDEN) {
|
|
261
262
|
return false;
|
|
262
263
|
}
|
|
263
|
-
if (requiredAccessLevel ===
|
|
264
|
-
return this.AccessLevel ===
|
|
264
|
+
if (requiredAccessLevel === ACCESS_LEVEL_READ_ONLY) {
|
|
265
|
+
return (this.AccessLevel === ACCESS_LEVEL_READ_ONLY || this.AccessLevel === ACCESS_LEVEL_FULL);
|
|
265
266
|
}
|
|
266
|
-
if (requiredAccessLevel ===
|
|
267
|
-
return this.AccessLevel ===
|
|
267
|
+
if (requiredAccessLevel === ACCESS_LEVEL_FULL) {
|
|
268
|
+
return this.AccessLevel === ACCESS_LEVEL_FULL;
|
|
268
269
|
}
|
|
269
270
|
// else requiredAccessLevel === 'Hidden' -- does NOT make sense unless a Module is programmatically disabled
|
|
270
271
|
return false;
|
|
@@ -19,7 +19,7 @@ export declare class AlertModule extends AdaptableModuleBase implements ICellDat
|
|
|
19
19
|
getModuleAdaptableObjects(config?: LayoutExtendedConfig): AdaptableObject[];
|
|
20
20
|
getExplicitlyReferencedColumnIds(alertDefinition: AlertDefinition): string[];
|
|
21
21
|
getReferencedNamedQueryNames(alertDefinition: AlertDefinition): string[];
|
|
22
|
-
createContextMenuItems(menuContext: ContextMenuContext): MenuItemShowPopup<"calculated-column-edit" | "cell-summary-show" | "column-group" | "column-filter-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-all-data" | "export-all-data-excel-download" | "export-all-data-visualexcel-download" | "export-all-data-csv" | "export-all-data-csv-download" | "export-all-data-csv-clipboard" | "export-all-data-json" | "export-all-data-json-download" | "export-all-data-json-clipboard" | "export-current-layout" | "export-current-layout-excel-download" | "export-current-layout-visualexcel-download" | "export-current-layout-csv" | "export-current-layout-csv-download" | "export-current-layout-csv-clipboard" | "export-current-layout-json" | "export-current-layout-json-download" | "export-current-layout-json-clipboard" | "export-selected-data" | "export-selected-data-excel-download" | "export-selected-data-visualexcel-download" | "export-selected-data-csv" | "export-selected-data-csv-download" | "export-selected-data-csv-clipboard" | "export-selected-data-json" | "export-selected-data-json-download" | "export-selected-data-json-clipboard" | "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
|
+
createContextMenuItems(menuContext: ContextMenuContext): MenuItemShowPopup<"calculated-column-edit" | "cell-summary-show" | "column-group" | "column-filter-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" | "comment-show" | "edit-group" | "export-group" | "export-all-data" | "export-all-data-excel-download" | "export-all-data-visualexcel-download" | "export-all-data-csv" | "export-all-data-csv-download" | "export-all-data-csv-clipboard" | "export-all-data-json" | "export-all-data-json-download" | "export-all-data-json-clipboard" | "export-current-layout" | "export-current-layout-excel-download" | "export-current-layout-visualexcel-download" | "export-current-layout-csv" | "export-current-layout-csv-download" | "export-current-layout-csv-clipboard" | "export-current-layout-json" | "export-current-layout-json-download" | "export-current-layout-json-clipboard" | "export-selected-data" | "export-selected-data-excel-download" | "export-selected-data-visualexcel-download" | "export-selected-data-csv" | "export-selected-data-csv-download" | "export-selected-data-csv-clipboard" | "export-selected-data-json" | "export-selected-data-json-download" | "export-selected-data-json-clipboard" | "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" | "note-show" | "smart-edit-apply">[];
|
|
23
23
|
private handleCellDataChanged;
|
|
24
24
|
private handleRowDataChanged;
|
|
25
25
|
private handleReactiveAlertTriggered;
|
|
@@ -7,7 +7,7 @@ import { AccessLevel, AdaptableApi } from '../types';
|
|
|
7
7
|
export declare class BulkUpdateModule extends AdaptableModuleBase implements IBulkUpdateModule {
|
|
8
8
|
constructor(api: AdaptableApi);
|
|
9
9
|
getViewAccessLevel(): AccessLevel;
|
|
10
|
-
createContextMenuItems(menuContext: ContextMenuContext): MenuItemShowPopup<"calculated-column-edit" | "cell-summary-show" | "column-group" | "column-filter-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-all-data" | "export-all-data-excel-download" | "export-all-data-visualexcel-download" | "export-all-data-csv" | "export-all-data-csv-download" | "export-all-data-csv-clipboard" | "export-all-data-json" | "export-all-data-json-download" | "export-all-data-json-clipboard" | "export-current-layout" | "export-current-layout-excel-download" | "export-current-layout-visualexcel-download" | "export-current-layout-csv" | "export-current-layout-csv-download" | "export-current-layout-csv-clipboard" | "export-current-layout-json" | "export-current-layout-json-download" | "export-current-layout-json-clipboard" | "export-selected-data" | "export-selected-data-excel-download" | "export-selected-data-visualexcel-download" | "export-selected-data-csv" | "export-selected-data-csv-download" | "export-selected-data-csv-clipboard" | "export-selected-data-json" | "export-selected-data-json-download" | "export-selected-data-json-clipboard" | "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
|
+
createContextMenuItems(menuContext: ContextMenuContext): MenuItemShowPopup<"calculated-column-edit" | "cell-summary-show" | "column-group" | "column-filter-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" | "comment-show" | "edit-group" | "export-group" | "export-all-data" | "export-all-data-excel-download" | "export-all-data-visualexcel-download" | "export-all-data-csv" | "export-all-data-csv-download" | "export-all-data-csv-clipboard" | "export-all-data-json" | "export-all-data-json-download" | "export-all-data-json-clipboard" | "export-current-layout" | "export-current-layout-excel-download" | "export-current-layout-visualexcel-download" | "export-current-layout-csv" | "export-current-layout-csv-download" | "export-current-layout-csv-clipboard" | "export-current-layout-json" | "export-current-layout-json-download" | "export-current-layout-json-clipboard" | "export-selected-data" | "export-selected-data-excel-download" | "export-selected-data-visualexcel-download" | "export-selected-data-csv" | "export-selected-data-csv-download" | "export-selected-data-csv-clipboard" | "export-selected-data-json" | "export-selected-data-json-download" | "export-selected-data-json-clipboard" | "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" | "note-show" | "smart-edit-apply">[];
|
|
11
11
|
checkCorrectCellSelection(): BulkUpdateValidationResult;
|
|
12
12
|
buildPreviewValues(bulkUpdateValue: any): PreviewInfo;
|
|
13
13
|
}
|
|
@@ -4,12 +4,13 @@ import { PreviewHelper } from '../Utilities/Helpers/PreviewHelper';
|
|
|
4
4
|
import StringExtensions from '../Utilities/Extensions/StringExtensions';
|
|
5
5
|
import ArrayExtensions from '../Utilities/Extensions/ArrayExtensions';
|
|
6
6
|
import ObjectFactory from '../Utilities/ObjectFactory';
|
|
7
|
+
import { ACCESS_LEVEL_FULL } from '../Utilities/Constants/GeneralConstants';
|
|
7
8
|
export class BulkUpdateModule extends AdaptableModuleBase {
|
|
8
9
|
constructor(api) {
|
|
9
10
|
super(ModuleConstants.BulkUpdateModuleId, ModuleConstants.BulkUpdateFriendlyName, 'edit-table', 'BulkUpdatePopup', 'Update multiple cell simultaneously with a new or existing value', api);
|
|
10
11
|
}
|
|
11
12
|
getViewAccessLevel() {
|
|
12
|
-
return
|
|
13
|
+
return ACCESS_LEVEL_FULL;
|
|
13
14
|
}
|
|
14
15
|
createContextMenuItems(menuContext) {
|
|
15
16
|
let menuItemShowPopup = undefined;
|
|
@@ -21,7 +21,7 @@ export declare class CalculatedColumnModule extends AdaptableModuleBase implemen
|
|
|
21
21
|
getExplicitlyReferencedColumnIds(calculatedColumn: CalculatedColumn): string[];
|
|
22
22
|
getReferencedNamedQueryNames(calculatedColumn: CalculatedColumn): string[];
|
|
23
23
|
createColumnMenuItems(column: AdaptableColumn): import("../Utilities/MenuItem").MenuItemShowPopup<"separator" | "calculated-column-edit" | "cell-summary-show" | "chart-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">[];
|
|
24
|
-
createContextMenuItems(menuContext: ContextMenuContext): import("../Utilities/MenuItem").MenuItemShowPopup<"calculated-column-edit" | "cell-summary-show" | "column-group" | "column-filter-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-all-data" | "export-all-data-excel-download" | "export-all-data-visualexcel-download" | "export-all-data-csv" | "export-all-data-csv-download" | "export-all-data-csv-clipboard" | "export-all-data-json" | "export-all-data-json-download" | "export-all-data-json-clipboard" | "export-current-layout" | "export-current-layout-excel-download" | "export-current-layout-visualexcel-download" | "export-current-layout-csv" | "export-current-layout-csv-download" | "export-current-layout-csv-clipboard" | "export-current-layout-json" | "export-current-layout-json-download" | "export-current-layout-json-clipboard" | "export-selected-data" | "export-selected-data-excel-download" | "export-selected-data-visualexcel-download" | "export-selected-data-csv" | "export-selected-data-csv-download" | "export-selected-data-csv-clipboard" | "export-selected-data-json" | "export-selected-data-json-download" | "export-selected-data-json-clipboard" | "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">[];
|
|
24
|
+
createContextMenuItems(menuContext: ContextMenuContext): import("../Utilities/MenuItem").MenuItemShowPopup<"calculated-column-edit" | "cell-summary-show" | "column-group" | "column-filter-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" | "comment-show" | "edit-group" | "export-group" | "export-all-data" | "export-all-data-excel-download" | "export-all-data-visualexcel-download" | "export-all-data-csv" | "export-all-data-csv-download" | "export-all-data-csv-clipboard" | "export-all-data-json" | "export-all-data-json-download" | "export-all-data-json-clipboard" | "export-current-layout" | "export-current-layout-excel-download" | "export-current-layout-visualexcel-download" | "export-current-layout-csv" | "export-current-layout-csv-download" | "export-current-layout-csv-clipboard" | "export-current-layout-json" | "export-current-layout-json-download" | "export-current-layout-json-clipboard" | "export-selected-data" | "export-selected-data-excel-download" | "export-selected-data-visualexcel-download" | "export-selected-data-csv" | "export-selected-data-csv-download" | "export-selected-data-csv-clipboard" | "export-selected-data-json" | "export-selected-data-json-download" | "export-selected-data-json-clipboard" | "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" | "note-show" | "smart-edit-apply">[];
|
|
25
25
|
getTeamSharingAction(): TeamSharingImportInfo<CalculatedColumn>;
|
|
26
26
|
toView(calculateColumn: CalculatedColumn): {
|
|
27
27
|
items: AdaptableObjectItemView[];
|
|
@@ -22,7 +22,7 @@ export declare class CellSummaryModule extends AdaptableModuleBase implements IC
|
|
|
22
22
|
getModuleUnavailableMessage(): string | undefined;
|
|
23
23
|
getViewAccessLevel(): AccessLevel;
|
|
24
24
|
createColumnMenuItems(column: AdaptableColumn): import("../Utilities/MenuItem").MenuItemShowPopup<"separator" | "calculated-column-edit" | "cell-summary-show" | "chart-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">[];
|
|
25
|
-
createContextMenuItems(menuContext: ContextMenuContext): import("../Utilities/MenuItem").MenuItemShowPopup<"calculated-column-edit" | "cell-summary-show" | "column-group" | "column-filter-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-all-data" | "export-all-data-excel-download" | "export-all-data-visualexcel-download" | "export-all-data-csv" | "export-all-data-csv-download" | "export-all-data-csv-clipboard" | "export-all-data-json" | "export-all-data-json-download" | "export-all-data-json-clipboard" | "export-current-layout" | "export-current-layout-excel-download" | "export-current-layout-visualexcel-download" | "export-current-layout-csv" | "export-current-layout-csv-download" | "export-current-layout-csv-clipboard" | "export-current-layout-json" | "export-current-layout-json-download" | "export-current-layout-json-clipboard" | "export-selected-data" | "export-selected-data-excel-download" | "export-selected-data-visualexcel-download" | "export-selected-data-csv" | "export-selected-data-csv-download" | "export-selected-data-csv-clipboard" | "export-selected-data-json" | "export-selected-data-json-download" | "export-selected-data-json-clipboard" | "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">[];
|
|
25
|
+
createContextMenuItems(menuContext: ContextMenuContext): import("../Utilities/MenuItem").MenuItemShowPopup<"calculated-column-edit" | "cell-summary-show" | "column-group" | "column-filter-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" | "comment-show" | "edit-group" | "export-group" | "export-all-data" | "export-all-data-excel-download" | "export-all-data-visualexcel-download" | "export-all-data-csv" | "export-all-data-csv-download" | "export-all-data-csv-clipboard" | "export-all-data-json" | "export-all-data-json-download" | "export-all-data-json-clipboard" | "export-current-layout" | "export-current-layout-excel-download" | "export-current-layout-visualexcel-download" | "export-current-layout-csv" | "export-current-layout-csv-download" | "export-current-layout-csv-clipboard" | "export-current-layout-json" | "export-current-layout-json-download" | "export-current-layout-json-clipboard" | "export-selected-data" | "export-selected-data-excel-download" | "export-selected-data-visualexcel-download" | "export-selected-data-csv" | "export-selected-data-csv-download" | "export-selected-data-csv-clipboard" | "export-selected-data-json" | "export-selected-data-json-download" | "export-selected-data-json-clipboard" | "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" | "note-show" | "smart-edit-apply">[];
|
|
26
26
|
createCellSummaryInfo(selectedCellInfo: SelectedCellInfo): CellSummmaryInfo;
|
|
27
27
|
private getNumberFormatOptions;
|
|
28
28
|
private formatValue;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ACCESS_LEVEL_FULL } from '../Utilities/Constants/GeneralConstants';
|
|
1
2
|
import * as ModuleConstants from '../Utilities/Constants/ModuleConstants';
|
|
2
3
|
import { ArrayExtensions } from '../Utilities/Extensions/ArrayExtensions';
|
|
3
4
|
import ObjectFactory from '../Utilities/ObjectFactory';
|
|
@@ -26,7 +27,7 @@ export class CellSummaryModule extends AdaptableModuleBase {
|
|
|
26
27
|
return undefined;
|
|
27
28
|
}
|
|
28
29
|
getViewAccessLevel() {
|
|
29
|
-
return
|
|
30
|
+
return ACCESS_LEVEL_FULL;
|
|
30
31
|
}
|
|
31
32
|
createColumnMenuItems(column) {
|
|
32
33
|
if (!this.isModuleVisible()) {
|
|
@@ -3,6 +3,7 @@ import * as ModuleConstants from '../Utilities/Constants/ModuleConstants';
|
|
|
3
3
|
import * as LayoutRedux from '../Redux/ActionsReducers/LayoutRedux';
|
|
4
4
|
import * as InternalRedux from '../Redux/ActionsReducers/InternalRedux';
|
|
5
5
|
import { FilterStatusBarSubPanelPopover } from '../View/Filter/FilterStatusBarSubPanelPopover';
|
|
6
|
+
import { ACCESS_LEVEL_HIDDEN } from '../Utilities/Constants/GeneralConstants';
|
|
6
7
|
import { getFilterPreview } from './Utilities/Layout/getLayoutFilterViewItems';
|
|
7
8
|
export class ColumnFilterModule extends AdaptableModuleBase {
|
|
8
9
|
constructor(api) {
|
|
@@ -52,7 +53,7 @@ export class ColumnFilterModule extends AdaptableModuleBase {
|
|
|
52
53
|
}
|
|
53
54
|
setModuleEntitlement() {
|
|
54
55
|
if (!this.api.optionsApi.getFilterOptions().useAdaptableFiltering) {
|
|
55
|
-
this.AccessLevel =
|
|
56
|
+
this.AccessLevel = ACCESS_LEVEL_HIDDEN;
|
|
56
57
|
}
|
|
57
58
|
else {
|
|
58
59
|
this.AccessLevel = this.api.entitlementApi.getEntitlementAccessLevelForModule(this.moduleInfo.ModuleName);
|
|
@@ -7,5 +7,5 @@ export declare class ColumnInfoModule extends AdaptableModuleBase implements IMo
|
|
|
7
7
|
constructor(api: AdaptableApi);
|
|
8
8
|
getViewAccessLevel(): AccessLevel;
|
|
9
9
|
createColumnMenuItems(column: AdaptableColumn): import("../Utilities/MenuItem").MenuItemShowPopup<"separator" | "calculated-column-edit" | "cell-summary-show" | "chart-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-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-all-data" | "export-all-data-excel-download" | "export-all-data-visualexcel-download" | "export-all-data-csv" | "export-all-data-csv-download" | "export-all-data-csv-clipboard" | "export-all-data-json" | "export-all-data-json-download" | "export-all-data-json-clipboard" | "export-current-layout" | "export-current-layout-excel-download" | "export-current-layout-visualexcel-download" | "export-current-layout-csv" | "export-current-layout-csv-download" | "export-current-layout-csv-clipboard" | "export-current-layout-json" | "export-current-layout-json-download" | "export-current-layout-json-clipboard" | "export-selected-data" | "export-selected-data-excel-download" | "export-selected-data-visualexcel-download" | "export-selected-data-csv" | "export-selected-data-csv-download" | "export-selected-data-csv-clipboard" | "export-selected-data-json" | "export-selected-data-json-download" | "export-selected-data-json-clipboard" | "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
|
+
createContextMenuItems(menuContext: ContextMenuContext): import("../Utilities/MenuItem").MenuItemShowPopup<"calculated-column-edit" | "cell-summary-show" | "column-group" | "column-filter-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" | "comment-show" | "edit-group" | "export-group" | "export-all-data" | "export-all-data-excel-download" | "export-all-data-visualexcel-download" | "export-all-data-csv" | "export-all-data-csv-download" | "export-all-data-csv-clipboard" | "export-all-data-json" | "export-all-data-json-download" | "export-all-data-json-clipboard" | "export-current-layout" | "export-current-layout-excel-download" | "export-current-layout-visualexcel-download" | "export-current-layout-csv" | "export-current-layout-csv-download" | "export-current-layout-csv-clipboard" | "export-current-layout-json" | "export-current-layout-json-download" | "export-current-layout-json-clipboard" | "export-selected-data" | "export-selected-data-excel-download" | "export-selected-data-visualexcel-download" | "export-selected-data-csv" | "export-selected-data-csv-download" | "export-selected-data-csv-clipboard" | "export-selected-data-json" | "export-selected-data-json-download" | "export-selected-data-json-clipboard" | "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" | "note-show" | "smart-edit-apply">[];
|
|
11
11
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
2
2
|
import * as ModuleConstants from '../Utilities/Constants/ModuleConstants';
|
|
3
|
+
import { ACCESS_LEVEL_FULL } from '../Utilities/Constants/GeneralConstants';
|
|
3
4
|
export class ColumnInfoModule extends AdaptableModuleBase {
|
|
4
5
|
constructor(api) {
|
|
5
6
|
super(ModuleConstants.ColumnInfoModuleId, ModuleConstants.ColumnInfoFriendlyName, 'columns', 'ColumnInfoPopup', 'Display information about Columns', api);
|
|
6
7
|
}
|
|
7
8
|
getViewAccessLevel() {
|
|
8
|
-
return
|
|
9
|
+
return ACCESS_LEVEL_FULL;
|
|
9
10
|
}
|
|
10
11
|
createColumnMenuItems(column) {
|
|
11
12
|
if (this.isModuleVisible() && !column.isTreeColumn) {
|