@adaptabletools/adaptable 18.0.0-canary.1 → 18.0.0-canary.10
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/agGrid.d.ts +4 -21
- package/agGrid.js +9 -26
- package/base.css +11 -3
- package/base.css.map +1 -1
- package/index.css +88 -70
- package/index.css.map +1 -1
- package/package.json +4 -5
- package/src/AdaptableInterfaces/IAdaptable.d.ts +61 -108
- package/src/AdaptableOptions/AdaptableOptions.d.ts +12 -6
- package/src/AdaptableOptions/ColumnFilterOptions.d.ts +4 -4
- package/src/AdaptableOptions/ColumnOptions.d.ts +4 -2
- package/src/AdaptableOptions/{CommentsOptions.d.ts → CommentOptions.d.ts} +5 -5
- package/src/AdaptableOptions/MenuOptions.d.ts +1 -1
- package/src/AdaptableOptions/MenuOptions.js +1 -5
- package/src/AdaptableOptions/{NotesOptions.d.ts → NoteOptions.d.ts} +1 -1
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +17 -0
- package/src/Api/AdaptableApi.d.ts +5 -0
- package/src/Api/BulkUpdateApi.d.ts +0 -5
- package/src/Api/ConfigApi.d.ts +1 -1
- package/src/Api/Events/AdaptableReady.d.ts +3 -3
- package/src/Api/Events/GridDataChanged.d.ts +4 -4
- package/src/Api/GridApi.d.ts +18 -13
- package/src/Api/Implementation/ActionColumnApiImpl.d.ts +2 -0
- package/src/Api/Implementation/ActionColumnApiImpl.js +33 -0
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +1 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +3 -0
- package/src/Api/Implementation/ApiBase.d.ts +2 -1
- package/src/Api/Implementation/ApiBase.js +4 -1
- package/src/Api/Implementation/BulkUpdateApiImpl.d.ts +0 -1
- package/src/Api/Implementation/BulkUpdateApiImpl.js +0 -4
- package/src/Api/Implementation/CommentsApiImpl.d.ts +4 -0
- package/src/Api/Implementation/CommentsApiImpl.js +7 -1
- package/src/Api/Implementation/ConfigApiImpl.js +13 -5
- package/src/Api/Implementation/GridApiImpl.d.ts +4 -3
- package/src/Api/Implementation/GridApiImpl.js +33 -14
- package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
- package/src/Api/Implementation/LayoutApiImpl.js +15 -0
- package/src/Api/Implementation/NotesApiImpl.d.ts +6 -4
- package/src/Api/Implementation/NotesApiImpl.js +9 -8
- package/src/Api/Implementation/OptionsApiImpl.d.ts +2 -1
- package/src/Api/Implementation/OptionsApiImpl.js +12 -2
- package/src/Api/Implementation/ScopeApiImpl.d.ts +2 -0
- package/src/Api/Implementation/ScopeApiImpl.js +20 -7
- package/src/Api/Implementation/StatusBarApiImpl.d.ts +0 -1
- package/src/Api/Implementation/StatusBarApiImpl.js +0 -3
- package/src/Api/Implementation/ToolPanelApiImpl.js +6 -6
- package/src/Api/Internal/ActionRowInternalApi.d.ts +5 -1
- package/src/Api/Internal/ActionRowInternalApi.js +106 -0
- package/src/Api/Internal/AdaptableInternalApi.d.ts +3 -4
- package/src/Api/Internal/AdaptableInternalApi.js +10 -8
- package/src/Api/Internal/CalculatedColumnInternalApi.d.ts +2 -0
- package/src/Api/Internal/CalculatedColumnInternalApi.js +70 -0
- package/src/Api/Internal/ColumnFilterInternalApi.d.ts +1 -0
- package/src/Api/Internal/ColumnFilterInternalApi.js +11 -1
- package/src/Api/Internal/ColumnInternalApi.d.ts +4 -1
- package/src/Api/Internal/ColumnInternalApi.js +12 -0
- package/src/Api/Internal/CommentsInternalApi.d.ts +4 -0
- package/src/Api/Internal/CommentsInternalApi.js +14 -0
- package/src/Api/Internal/CustomSortInternalApi.d.ts +3 -2
- package/src/Api/Internal/CustomSortInternalApi.js +32 -1
- package/src/Api/Internal/DataSetInternalApi.js +1 -1
- package/src/Api/Internal/FormatColumnInternalApi.js +3 -2
- package/src/Api/Internal/FreeTextColumnInternalApi.d.ts +2 -0
- package/src/Api/Internal/FreeTextColumnInternalApi.js +59 -0
- package/src/Api/Internal/GridFilterInternalApi.js +1 -1
- package/src/Api/Internal/GridInternalApi.d.ts +21 -3
- package/src/Api/Internal/GridInternalApi.js +126 -7
- package/src/Api/Internal/NotesInternalApi.d.ts +4 -0
- package/src/Api/Internal/NotesInternalApi.js +14 -0
- package/src/Api/Internal/TeamSharingInternalApi.js +1 -1
- package/src/Api/InteropioPluginApi.d.ts +2 -2
- package/src/Api/LayoutApi.d.ts +11 -0
- package/src/Api/OptionsApi.d.ts +5 -1
- package/src/Api/ScopeApi.d.ts +10 -0
- package/src/EnvVars.d.ts +3 -0
- package/src/EnvVars.js +4 -0
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +4 -0
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableScope.d.ts +4 -1
- package/src/PredefinedConfig/Common/AggregationColumns.d.ts +1 -0
- package/src/PredefinedConfig/Common/AggregationColumns.js +3 -0
- package/src/PredefinedConfig/Common/DataUpdateConfig.d.ts +8 -0
- package/src/PredefinedConfig/Common/RowSummary.d.ts +7 -0
- package/src/PredefinedConfig/Common/RowSummary.js +1 -0
- package/src/PredefinedConfig/LayoutState.d.ts +5 -0
- package/src/PredefinedConfig/NotesState.d.ts +10 -20
- package/src/PredefinedConfig/PredefinedConfig.d.ts +1 -1
- package/src/PredefinedConfig/SystemState.d.ts +7 -0
- package/src/Redux/ActionsReducers/LayoutRedux.d.ts +9 -0
- package/src/Redux/ActionsReducers/LayoutRedux.js +20 -0
- package/src/Redux/ActionsReducers/NotesRedux.d.ts +3 -4
- package/src/Redux/ActionsReducers/NotesRedux.js +8 -7
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +5 -0
- package/src/Redux/ActionsReducers/SystemRedux.js +13 -1
- package/src/Redux/Store/AdaptableStore.d.ts +4 -6
- package/src/Redux/Store/AdaptableStore.js +33 -50
- package/src/Redux/Store/Interface/IAdaptableStore.d.ts +8 -2
- package/src/Strategy/AdaptableModuleBase.d.ts +2 -3
- package/src/Strategy/AdaptableModuleBase.js +4 -7
- package/src/Strategy/AlertModule.d.ts +1 -2
- package/src/Strategy/AlertModule.js +2 -55
- package/src/Strategy/CalculatedColumnModule.d.ts +2 -3
- package/src/Strategy/CalculatedColumnModule.js +5 -25
- package/src/Strategy/CellSummaryModule.d.ts +1 -0
- package/src/Strategy/CellSummaryModule.js +50 -21
- package/src/Strategy/ChartingModule.d.ts +0 -1
- package/src/Strategy/ChartingModule.js +2 -22
- package/src/Strategy/ColumnFilterModule.d.ts +1 -2
- package/src/Strategy/ColumnFilterModule.js +1 -64
- package/src/Strategy/CommentsModule.d.ts +1 -0
- package/src/Strategy/CommentsModule.js +5 -1
- package/src/Strategy/CustomSortModule.js +1 -1
- package/src/Strategy/DashboardModule.d.ts +1 -2
- package/src/Strategy/DashboardModule.js +1 -8
- package/src/Strategy/DataChangeHistoryModule.d.ts +1 -0
- package/src/Strategy/DataChangeHistoryModule.js +3 -1
- package/src/Strategy/DataSetModule.d.ts +1 -1
- package/src/Strategy/DataSetModule.js +1 -1
- package/src/Strategy/FlashingCellModule.d.ts +1 -2
- package/src/Strategy/FlashingCellModule.js +2 -15
- package/src/Strategy/FormatColumnModule.d.ts +0 -2
- package/src/Strategy/FormatColumnModule.js +0 -47
- package/src/Strategy/FreeTextColumnModule.d.ts +0 -1
- package/src/Strategy/FreeTextColumnModule.js +0 -30
- package/src/Strategy/GridFilterModule.d.ts +0 -1
- package/src/Strategy/GridFilterModule.js +0 -37
- package/src/Strategy/Interface/IModule.d.ts +0 -1
- package/src/Strategy/LayoutModule.d.ts +8 -3
- package/src/Strategy/LayoutModule.js +108 -53
- package/src/Strategy/NamedQueryModule.d.ts +0 -1
- package/src/Strategy/NamedQueryModule.js +0 -19
- package/src/Strategy/NotesModule.js +3 -4
- package/src/Strategy/PlusMinusModule.d.ts +1 -1
- package/src/Strategy/PlusMinusModule.js +1 -1
- package/src/Strategy/ScheduleModule.d.ts +1 -1
- package/src/Strategy/ScheduleModule.js +1 -1
- package/src/Strategy/ShortcutModule.d.ts +1 -1
- package/src/Strategy/ShortcutModule.js +1 -1
- package/src/Strategy/StyledColumnModule.d.ts +0 -1
- package/src/Strategy/StyledColumnModule.js +0 -21
- package/src/Strategy/TeamSharingModule.d.ts +1 -0
- package/src/Strategy/TeamSharingModule.js +5 -5
- package/src/Strategy/ToolPanelModule.d.ts +0 -1
- package/src/Strategy/ToolPanelModule.js +0 -23
- package/src/Utilities/Constants/DocumentationLinkConstants.js +1 -1
- package/src/Utilities/Constants/GeneralConstants.d.ts +1 -0
- package/src/Utilities/Constants/GeneralConstants.js +1 -0
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +5 -4
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +2 -1
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +294 -0
- package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.js +1 -1
- package/src/Utilities/Extensions/ArrayExtensions.d.ts +2 -0
- package/src/Utilities/Extensions/ArrayExtensions.js +4 -0
- package/src/Utilities/Helpers/AdaptableHelper.d.ts +3 -4
- package/src/Utilities/Helpers/AdaptableHelper.js +18 -58
- package/src/Utilities/Helpers/Helper.d.ts +2 -0
- package/src/Utilities/Helpers/Helper.js +4 -0
- package/src/Utilities/ObjectFactory.js +6 -6
- package/src/Utilities/Services/AggregatedScalarLiveValue.d.ts +3 -2
- package/src/Utilities/Services/AggregatedScalarLiveValue.js +14 -9
- package/src/Utilities/Services/CellPopupService.js +0 -1
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +1 -1
- package/src/Utilities/Services/LicenseService/index.d.ts +3 -0
- package/src/Utilities/Services/LicenseService/index.js +19 -7
- package/src/Utilities/Services/MetamodelService.d.ts +1 -1
- package/src/Utilities/Services/MetamodelService.js +6 -3
- package/src/Utilities/Services/QueryLanguageService.d.ts +1 -1
- package/src/Utilities/Services/QueryLanguageService.js +2 -1
- package/src/Utilities/Services/RowEditService.d.ts +3 -2
- package/src/Utilities/Services/RowEditService.js +3 -1
- package/src/Utilities/Services/SummaryService.d.ts +19 -0
- package/src/Utilities/Services/SummaryService.js +29 -0
- package/src/View/AdaptableView.js +1 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +2 -2
- package/src/View/BulkUpdate/BulkUpdatePopup.js +1 -1
- package/src/View/CalculatedColumn/utils.d.ts +1 -1
- package/src/View/CellSummary/CellSummaryPopup.js +1 -1
- package/src/View/Comments/CommentsPopup.js +12 -8
- package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/NewScopeComponent.js +34 -1
- package/src/View/Components/Popups/AdaptableLoadingScreen.d.ts +6 -5
- package/src/View/Components/Popups/AdaptableLoadingScreen.js +19 -9
- package/src/View/Components/Popups/AdaptableToaster.js +1 -1
- package/src/View/Components/Popups/GridCellPopup/GridCellPopup.js +1 -1
- package/src/View/Components/Popups/WindowPopups/windowFactory.d.ts +1 -0
- package/src/View/Components/Popups/WindowPopups/windowFactory.js +3 -0
- package/src/View/Components/Selectors/PermittedValuesSelector.js +1 -1
- package/src/View/CustomSort/CustomSortSummary.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +8 -8
- package/src/View/GridFilter/GridFilterViewPanel.js +6 -2
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +2 -3
- package/src/View/Layout/TransposedPopup.d.ts +3 -0
- package/src/View/Layout/TransposedPopup.js +194 -0
- package/src/View/Layout/Wizard/LayoutWizard.js +1 -1
- package/src/View/Notes/NotesPopup.js +9 -11
- package/src/View/SpecialColumnSettingsWizardStep.js +4 -4
- package/src/View/Theme/ThemeSelector.js +3 -3
- package/src/agGrid/ActionColumnRenderer.js +7 -6
- package/src/agGrid/Adaptable.d.ts +3 -455
- package/src/agGrid/Adaptable.js +8 -5292
- package/src/agGrid/AdaptableAgGrid.d.ts +351 -0
- package/src/agGrid/AdaptableAgGrid.js +3936 -0
- package/src/agGrid/AdaptableLogger.js +77 -11
- package/src/agGrid/AgGridAdapter.d.ts +62 -0
- package/src/agGrid/AgGridAdapter.js +577 -0
- package/src/agGrid/AgGridColumnAdapter.d.ts +56 -0
- package/src/agGrid/AgGridColumnAdapter.js +824 -0
- package/src/agGrid/AgGridMenuAdapter.d.ts +28 -0
- package/src/agGrid/AgGridMenuAdapter.js +271 -0
- package/src/agGrid/AgGridOptionsService.d.ts +12 -0
- package/src/agGrid/AgGridOptionsService.js +54 -0
- package/src/agGrid/BadgeRenderer.js +1 -1
- package/src/agGrid/CheckboxRenderer.js +1 -1
- package/src/agGrid/FilterWrapper.d.ts +2 -2
- package/src/agGrid/FilterWrapper.js +1 -1
- package/src/agGrid/attachAddaptableColumnTypes.d.ts +12 -12
- package/src/agGrid/defaultAdaptableOptions.d.ts +3 -0
- package/src/{Utilities/Defaults/DefaultAdaptableOptions.js → agGrid/defaultAdaptableOptions.js} +70 -9
- package/src/agGrid/editors/AdaptableDateEditor/index.js +2 -2
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +2 -2
- package/src/components/ColorPicker/ColorPicker.d.ts +1 -1
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/InfiniteTable/index.js +2 -2
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +1 -1
- package/src/components/Modal/index.d.ts +1 -0
- package/src/components/Modal/index.js +4 -3
- package/src/components/Select/Select.d.ts +2 -0
- package/src/components/Select/Select.js +2 -2
- package/src/components/icons/index.js +2 -0
- package/src/components/icons/rows.d.ts +3 -0
- package/src/components/icons/rows.js +4 -0
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +74 -11
- package/src/metamodel/adaptable.metamodel.js +147 -34
- package/src/migration/AdaptableUpgradeHelper.d.ts +38 -0
- package/src/migration/AdaptableUpgradeHelper.js +48 -0
- package/src/migration/VersionUpgrade.d.ts +8 -0
- package/src/migration/VersionUpgrade.js +11 -0
- package/src/migration/VersionUpgrade17.d.ts +18 -0
- package/src/migration/VersionUpgrade17.js +342 -0
- package/src/migration/VersionUpgrade18.d.ts +5 -0
- package/src/migration/VersionUpgrade18.js +6 -0
- package/src/parser/src/types.d.ts +5 -0
- package/src/types.d.ts +7 -3
- package/tsconfig.esm.tsbuildinfo +1 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.d.ts +0 -2
- package/src/Utilities/Services/Interface/IRowEditService.d.ts +0 -3
- package/src/Utilities/Services/Interface/IRowEditService.js +0 -1
- package/src/View/Components/ScopeComponent.d.ts +0 -24
- package/src/View/Components/ScopeComponent.js +0 -133
- package/src/View/Export/Wizard/ReportScopeWizard.d.ts +0 -17
- package/src/View/Export/Wizard/ReportScopeWizard.js +0 -47
- package/src/agGrid/agGridHelper.d.ts +0 -57
- package/src/agGrid/agGridHelper.js +0 -686
- package/src/agGrid/agGridMenuHelper.d.ts +0 -46
- package/src/agGrid/agGridMenuHelper.js +0 -668
- /package/src/AdaptableOptions/{CommentsOptions.js → CommentOptions.js} +0 -0
- /package/src/AdaptableOptions/{NotesOptions.js → NoteOptions.js} +0 -0
|
@@ -661,6 +661,12 @@ export const ADAPTABLE_METAMODEL = {
|
|
|
661
661
|
"kind": "s",
|
|
662
662
|
"desc": "Name of Column in AG Grid (e.g. field or colId)"
|
|
663
663
|
},
|
|
664
|
+
{
|
|
665
|
+
"name": "columnTypes",
|
|
666
|
+
"kind": "a",
|
|
667
|
+
"desc": "Column Types of the Column",
|
|
668
|
+
"isOpt": true
|
|
669
|
+
},
|
|
664
670
|
{
|
|
665
671
|
"name": "dataType",
|
|
666
672
|
"kind": "R",
|
|
@@ -1035,16 +1041,6 @@ export const ADAPTABLE_METAMODEL = {
|
|
|
1035
1041
|
"kind": "I",
|
|
1036
1042
|
"desc": "Note that can be applied to a Cell in AdapTable",
|
|
1037
1043
|
"props": [
|
|
1038
|
-
{
|
|
1039
|
-
"name": "AdaptableId",
|
|
1040
|
-
"kind": "s",
|
|
1041
|
-
"desc": "Id of this AdapTable instance"
|
|
1042
|
-
},
|
|
1043
|
-
{
|
|
1044
|
-
"name": "Author",
|
|
1045
|
-
"kind": "u",
|
|
1046
|
-
"desc": "Author of the Note"
|
|
1047
|
-
},
|
|
1048
1044
|
{
|
|
1049
1045
|
"name": "ColumnId",
|
|
1050
1046
|
"kind": "s",
|
|
@@ -1055,15 +1051,15 @@ export const ADAPTABLE_METAMODEL = {
|
|
|
1055
1051
|
"kind": "u",
|
|
1056
1052
|
"desc": "Value in Grid's Primary Key Column"
|
|
1057
1053
|
},
|
|
1054
|
+
{
|
|
1055
|
+
"name": "Text",
|
|
1056
|
+
"kind": "s",
|
|
1057
|
+
"desc": "Value of the Note"
|
|
1058
|
+
},
|
|
1058
1059
|
{
|
|
1059
1060
|
"name": "Timestamp",
|
|
1060
1061
|
"kind": "n",
|
|
1061
1062
|
"desc": "When Note was made"
|
|
1062
|
-
},
|
|
1063
|
-
{
|
|
1064
|
-
"name": "Value",
|
|
1065
|
-
"kind": "s",
|
|
1066
|
-
"desc": "Value of the Note"
|
|
1067
1063
|
}
|
|
1068
1064
|
]
|
|
1069
1065
|
},
|
|
@@ -1172,7 +1168,7 @@ export const ADAPTABLE_METAMODEL = {
|
|
|
1172
1168
|
"isOpt": true,
|
|
1173
1169
|
"gridInfo": "item",
|
|
1174
1170
|
"noCode": "item",
|
|
1175
|
-
"defVal": "'
|
|
1171
|
+
"defVal": "'adaptable_id_$random_number'"
|
|
1176
1172
|
},
|
|
1177
1173
|
{
|
|
1178
1174
|
"name": "adaptableStateKey",
|
|
@@ -1198,6 +1194,13 @@ export const ADAPTABLE_METAMODEL = {
|
|
|
1198
1194
|
"gridInfo": "item",
|
|
1199
1195
|
"defVal": "false"
|
|
1200
1196
|
},
|
|
1197
|
+
{
|
|
1198
|
+
"name": "autoMigrateState",
|
|
1199
|
+
"kind": "b",
|
|
1200
|
+
"desc": "Automatically migrate the state from the previous version of Adaptable to the current version.",
|
|
1201
|
+
"isOpt": true,
|
|
1202
|
+
"defVal": "true"
|
|
1203
|
+
},
|
|
1201
1204
|
{
|
|
1202
1205
|
"name": "calendarOptions",
|
|
1203
1206
|
"kind": "R",
|
|
@@ -1236,7 +1239,7 @@ export const ADAPTABLE_METAMODEL = {
|
|
|
1236
1239
|
"ref": "ColumnOptions"
|
|
1237
1240
|
},
|
|
1238
1241
|
{
|
|
1239
|
-
"name": "
|
|
1242
|
+
"name": "commentOptions",
|
|
1240
1243
|
"kind": "u",
|
|
1241
1244
|
"desc": "Options for managing AdapTable Comments",
|
|
1242
1245
|
"isOpt": true
|
|
@@ -1376,11 +1379,11 @@ export const ADAPTABLE_METAMODEL = {
|
|
|
1376
1379
|
"gridInfo": "container"
|
|
1377
1380
|
},
|
|
1378
1381
|
{
|
|
1379
|
-
"name": "
|
|
1382
|
+
"name": "noteOptions",
|
|
1380
1383
|
"kind": "R",
|
|
1381
|
-
"desc": "Options for managing
|
|
1384
|
+
"desc": "Options for managing Notes",
|
|
1382
1385
|
"isOpt": true,
|
|
1383
|
-
"ref": "
|
|
1386
|
+
"ref": "unknown"
|
|
1384
1387
|
},
|
|
1385
1388
|
{
|
|
1386
1389
|
"name": "notificationsOptions",
|
|
@@ -3244,7 +3247,7 @@ export const ADAPTABLE_METAMODEL = {
|
|
|
3244
3247
|
},
|
|
3245
3248
|
{
|
|
3246
3249
|
"name": "columnTypes",
|
|
3247
|
-
"kind": "
|
|
3250
|
+
"kind": "u",
|
|
3248
3251
|
"desc": "Optional list of Column Types - used primarily for Calculated and FreeText Columns",
|
|
3249
3252
|
"isOpt": true,
|
|
3250
3253
|
"defVal": "undefined"
|
|
@@ -3295,6 +3298,36 @@ export const ADAPTABLE_METAMODEL = {
|
|
|
3295
3298
|
}
|
|
3296
3299
|
]
|
|
3297
3300
|
},
|
|
3301
|
+
"CommentableCellContext": {
|
|
3302
|
+
"name": "CommentableCellContext",
|
|
3303
|
+
"kind": "I",
|
|
3304
|
+
"desc": "Context used when determining if a Comment can be added to a Cell"
|
|
3305
|
+
},
|
|
3306
|
+
"CommentsOptions": {
|
|
3307
|
+
"name": "CommentsOptions",
|
|
3308
|
+
"kind": "I",
|
|
3309
|
+
"desc": "Options for managing Comments and Comment Threads in AdapTable",
|
|
3310
|
+
"props": [
|
|
3311
|
+
{
|
|
3312
|
+
"name": "isCellCommentable",
|
|
3313
|
+
"kind": "f",
|
|
3314
|
+
"desc": "Whether a cell can be noted on TODO: check if it works",
|
|
3315
|
+
"isOpt": true
|
|
3316
|
+
},
|
|
3317
|
+
{
|
|
3318
|
+
"name": "loadCommentThreads",
|
|
3319
|
+
"kind": "f",
|
|
3320
|
+
"desc": "Called to load initial comments",
|
|
3321
|
+
"isOpt": true
|
|
3322
|
+
},
|
|
3323
|
+
{
|
|
3324
|
+
"name": "persistCommentThreads",
|
|
3325
|
+
"kind": "f",
|
|
3326
|
+
"desc": "Called when comments change",
|
|
3327
|
+
"isOpt": true
|
|
3328
|
+
}
|
|
3329
|
+
]
|
|
3330
|
+
},
|
|
3298
3331
|
"CompatibleContext": {
|
|
3299
3332
|
"name": "CompatibleContext",
|
|
3300
3333
|
"kind": "A",
|
|
@@ -4382,6 +4415,12 @@ export const ADAPTABLE_METAMODEL = {
|
|
|
4382
4415
|
"desc": "Callback function invoked when a batch successfully updates",
|
|
4383
4416
|
"isOpt": true
|
|
4384
4417
|
},
|
|
4418
|
+
{
|
|
4419
|
+
"name": "flushAsync",
|
|
4420
|
+
"kind": "b",
|
|
4421
|
+
"desc": "Whether to flush async updates.",
|
|
4422
|
+
"isOpt": true
|
|
4423
|
+
},
|
|
4385
4424
|
{
|
|
4386
4425
|
"name": "runAsync",
|
|
4387
4426
|
"kind": "b",
|
|
@@ -4692,7 +4731,7 @@ export const ADAPTABLE_METAMODEL = {
|
|
|
4692
4731
|
"name": "report",
|
|
4693
4732
|
"kind": "R",
|
|
4694
4733
|
"desc": "The exported report",
|
|
4695
|
-
"ref": "
|
|
4734
|
+
"ref": "Report"
|
|
4696
4735
|
},
|
|
4697
4736
|
{
|
|
4698
4737
|
"name": "reportData",
|
|
@@ -4833,6 +4872,12 @@ export const ADAPTABLE_METAMODEL = {
|
|
|
4833
4872
|
"kind": "u",
|
|
4834
4873
|
"desc": "All Expression Functions available to AdaptableQL"
|
|
4835
4874
|
},
|
|
4875
|
+
{
|
|
4876
|
+
"name": "getRowNodes",
|
|
4877
|
+
"kind": "u",
|
|
4878
|
+
"desc": "Get custom list rows",
|
|
4879
|
+
"isOpt": true
|
|
4880
|
+
},
|
|
4836
4881
|
{
|
|
4837
4882
|
"name": "namedQueryCallStack",
|
|
4838
4883
|
"kind": "a",
|
|
@@ -6091,6 +6136,20 @@ export const ADAPTABLE_METAMODEL = {
|
|
|
6091
6136
|
"kind": "A",
|
|
6092
6137
|
"desc": "Type for FDC3 Instrument List Context"
|
|
6093
6138
|
},
|
|
6139
|
+
"InteropioPluginOptions": {
|
|
6140
|
+
"name": "InteropioPluginOptions",
|
|
6141
|
+
"kind": "I",
|
|
6142
|
+
"desc": "Options for using the Interop plugin",
|
|
6143
|
+
"props": [
|
|
6144
|
+
{
|
|
6145
|
+
"name": "showAdaptableAlertsAsNotifications",
|
|
6146
|
+
"kind": "b",
|
|
6147
|
+
"desc": "Converts AdapTable Alerts configured to display in popup as Interop Notifications",
|
|
6148
|
+
"isOpt": true,
|
|
6149
|
+
"defVal": "true"
|
|
6150
|
+
}
|
|
6151
|
+
]
|
|
6152
|
+
},
|
|
6094
6153
|
"IPushPullDomain": {
|
|
6095
6154
|
"name": "IPushPullDomain",
|
|
6096
6155
|
"kind": "I",
|
|
@@ -6287,6 +6346,12 @@ export const ADAPTABLE_METAMODEL = {
|
|
|
6287
6346
|
"desc": "Columns which are row-grouped when the Layout is applied",
|
|
6288
6347
|
"isOpt": true
|
|
6289
6348
|
},
|
|
6349
|
+
{
|
|
6350
|
+
"name": "RowSummaries",
|
|
6351
|
+
"kind": "a",
|
|
6352
|
+
"desc": "Row summaries",
|
|
6353
|
+
"isOpt": true
|
|
6354
|
+
},
|
|
6290
6355
|
{
|
|
6291
6356
|
"name": "SuppressAggFuncInHeader",
|
|
6292
6357
|
"kind": "b",
|
|
@@ -6708,8 +6773,8 @@ export const ADAPTABLE_METAMODEL = {
|
|
|
6708
6773
|
}
|
|
6709
6774
|
]
|
|
6710
6775
|
},
|
|
6711
|
-
"
|
|
6712
|
-
"name": "
|
|
6776
|
+
"NotesState": {
|
|
6777
|
+
"name": "NotesState",
|
|
6713
6778
|
"kind": "I",
|
|
6714
6779
|
"desc": "Predefined Configuration for Notes Module",
|
|
6715
6780
|
"props": [
|
|
@@ -7277,9 +7342,9 @@ export const ADAPTABLE_METAMODEL = {
|
|
|
7277
7342
|
{
|
|
7278
7343
|
"name": "Notes",
|
|
7279
7344
|
"kind": "R",
|
|
7280
|
-
"desc": "Collection of
|
|
7345
|
+
"desc": "Collection of personal Notes that are edited at Cell level",
|
|
7281
7346
|
"isOpt": true,
|
|
7282
|
-
"ref": "
|
|
7347
|
+
"ref": "NotesState"
|
|
7283
7348
|
},
|
|
7284
7349
|
{
|
|
7285
7350
|
"name": "PlusMinus",
|
|
@@ -7465,7 +7530,7 @@ export const ADAPTABLE_METAMODEL = {
|
|
|
7465
7530
|
"name": "report",
|
|
7466
7531
|
"kind": "R",
|
|
7467
7532
|
"desc": "Report being exported",
|
|
7468
|
-
"ref": "
|
|
7533
|
+
"ref": "Report"
|
|
7469
7534
|
}
|
|
7470
7535
|
]
|
|
7471
7536
|
},
|
|
@@ -7757,8 +7822,8 @@ export const ADAPTABLE_METAMODEL = {
|
|
|
7757
7822
|
}
|
|
7758
7823
|
]
|
|
7759
7824
|
},
|
|
7760
|
-
"
|
|
7761
|
-
"name": "
|
|
7825
|
+
"Report": {
|
|
7826
|
+
"name": "Report",
|
|
7762
7827
|
"kind": "I",
|
|
7763
7828
|
"desc": "A Report which can export data from AdapTable",
|
|
7764
7829
|
"props": [
|
|
@@ -7809,7 +7874,7 @@ export const ADAPTABLE_METAMODEL = {
|
|
|
7809
7874
|
"name": "report",
|
|
7810
7875
|
"kind": "R",
|
|
7811
7876
|
"desc": "Definition of Report being Run",
|
|
7812
|
-
"ref": "
|
|
7877
|
+
"ref": "Report"
|
|
7813
7878
|
},
|
|
7814
7879
|
{
|
|
7815
7880
|
"name": "reportData",
|
|
@@ -8931,6 +8996,33 @@ export const ADAPTABLE_METAMODEL = {
|
|
|
8931
8996
|
}
|
|
8932
8997
|
]
|
|
8933
8998
|
},
|
|
8999
|
+
"UpgradeConfig": {
|
|
9000
|
+
"name": "UpgradeConfig",
|
|
9001
|
+
"kind": "I",
|
|
9002
|
+
"desc": "The upgrade config object",
|
|
9003
|
+
"props": [
|
|
9004
|
+
{
|
|
9005
|
+
"name": "fromVersion",
|
|
9006
|
+
"kind": "n",
|
|
9007
|
+
"desc": "The version to upgrade from"
|
|
9008
|
+
},
|
|
9009
|
+
{
|
|
9010
|
+
"name": "logger",
|
|
9011
|
+
"kind": "R",
|
|
9012
|
+
"desc": "The logger object",
|
|
9013
|
+
"isOpt": true,
|
|
9014
|
+
"defVal": "The console object",
|
|
9015
|
+
"ref": "unknown"
|
|
9016
|
+
},
|
|
9017
|
+
{
|
|
9018
|
+
"name": "toVersion",
|
|
9019
|
+
"kind": "n",
|
|
9020
|
+
"desc": "The version to upgrade to",
|
|
9021
|
+
"isOpt": true,
|
|
9022
|
+
"defVal": "The current version"
|
|
9023
|
+
}
|
|
9024
|
+
]
|
|
9025
|
+
},
|
|
8934
9026
|
"UserColumnMenuItem": {
|
|
8935
9027
|
"name": "UserColumnMenuItem",
|
|
8936
9028
|
"kind": "I",
|
|
@@ -9113,6 +9205,27 @@ export const ADAPTABLE_METAMODEL = {
|
|
|
9113
9205
|
"desc": "Custom column values for Values Column Filter and Grid Filter Builder",
|
|
9114
9206
|
"isOpt": true
|
|
9115
9207
|
},
|
|
9208
|
+
{
|
|
9209
|
+
"name": "loadingScreenDelay",
|
|
9210
|
+
"kind": "n",
|
|
9211
|
+
"desc": "Delay in milliseconds before Loading Screen appears. `showLoadingScreen` must be true for this to take effect",
|
|
9212
|
+
"isOpt": true,
|
|
9213
|
+
"defVal": "200"
|
|
9214
|
+
},
|
|
9215
|
+
{
|
|
9216
|
+
"name": "loadingScreenText",
|
|
9217
|
+
"kind": "s",
|
|
9218
|
+
"desc": "Text to display in Loading Screen.",
|
|
9219
|
+
"isOpt": true,
|
|
9220
|
+
"defVal": "'Retrieving your settings and setting up the grid...'"
|
|
9221
|
+
},
|
|
9222
|
+
{
|
|
9223
|
+
"name": "loadingScreenTitle",
|
|
9224
|
+
"kind": "s",
|
|
9225
|
+
"desc": "Title to display in Loading Screen.",
|
|
9226
|
+
"isOpt": true,
|
|
9227
|
+
"defVal": "'Initialising Grid'"
|
|
9228
|
+
},
|
|
9116
9229
|
{
|
|
9117
9230
|
"name": "objectTags",
|
|
9118
9231
|
"kind": "u",
|
|
@@ -9228,7 +9341,7 @@ export const ADAPTABLE_METAMODEL = {
|
|
|
9228
9341
|
"ValuesFilterOptions": {
|
|
9229
9342
|
"name": "ValuesFilterOptions",
|
|
9230
9343
|
"kind": "I",
|
|
9231
|
-
"desc": "Options for managing the Values (IN)
|
|
9344
|
+
"desc": "Options for managing the Values (IN) Filter in Filter Bar and Filter Form",
|
|
9232
9345
|
"props": [
|
|
9233
9346
|
{
|
|
9234
9347
|
"name": "filterValuesUsingTime",
|
|
@@ -9249,12 +9362,12 @@ export const ADAPTABLE_METAMODEL = {
|
|
|
9249
9362
|
},
|
|
9250
9363
|
{
|
|
9251
9364
|
"name": "maxFilterValuesToDisplay",
|
|
9252
|
-
"kind": "
|
|
9253
|
-
"desc": "Distinct column items to display in Filter
|
|
9365
|
+
"kind": "u",
|
|
9366
|
+
"desc": "Distinct column items to display in Values Filter; useful with large datasource (though AdapTable offers virtualisation)",
|
|
9254
9367
|
"isOpt": true,
|
|
9255
9368
|
"gridInfo": "item",
|
|
9256
9369
|
"noCode": "item",
|
|
9257
|
-
"defVal": "
|
|
9370
|
+
"defVal": "undefined"
|
|
9258
9371
|
},
|
|
9259
9372
|
{
|
|
9260
9373
|
"name": "showDistinctFilteredValuesOnly",
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { VersionUpgrade } from './VersionUpgrade';
|
|
2
|
+
import { AdaptableState } from '../PredefinedConfig/AdaptableState';
|
|
3
|
+
/**
|
|
4
|
+
* The upgrade config object
|
|
5
|
+
*/
|
|
6
|
+
export interface UpgradeConfig {
|
|
7
|
+
/**
|
|
8
|
+
* The version to upgrade from
|
|
9
|
+
*/
|
|
10
|
+
fromVersion: number;
|
|
11
|
+
/**
|
|
12
|
+
* The version to upgrade to
|
|
13
|
+
*
|
|
14
|
+
* @defaultValue The current version
|
|
15
|
+
*/
|
|
16
|
+
toVersion?: number;
|
|
17
|
+
/**
|
|
18
|
+
* The logger object
|
|
19
|
+
*
|
|
20
|
+
* @defaultValue The console object
|
|
21
|
+
*/
|
|
22
|
+
logger?: MigrationLogger;
|
|
23
|
+
}
|
|
24
|
+
export interface MigrationLogger {
|
|
25
|
+
success: (message: string, ...optionalParams: any[]) => void;
|
|
26
|
+
info: (message: string, ...optionalParams: any[]) => void;
|
|
27
|
+
warn: (message: string, ...optionalParams: any[]) => void;
|
|
28
|
+
error: (message: string, ...optionalParams: any[]) => void;
|
|
29
|
+
}
|
|
30
|
+
export declare class AdaptableUpgradeHelper {
|
|
31
|
+
protected currentMajorVersion: number;
|
|
32
|
+
protected versionUpgrades: Map<number, VersionUpgrade>;
|
|
33
|
+
protected logger: MigrationLogger;
|
|
34
|
+
private constructor();
|
|
35
|
+
static migrateAdaptableState(state: AdaptableState, config: UpgradeConfig): AdaptableState;
|
|
36
|
+
private getCurrentMajorVersion;
|
|
37
|
+
private getConsoleLogger;
|
|
38
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { VersionUpgrade17 } from './VersionUpgrade17';
|
|
2
|
+
import { VersionUpgrade18 } from './VersionUpgrade18';
|
|
3
|
+
import { ADAPTABLE_VERSION } from '../EnvVars';
|
|
4
|
+
export class AdaptableUpgradeHelper {
|
|
5
|
+
constructor(logger) {
|
|
6
|
+
this.currentMajorVersion = this.getCurrentMajorVersion(ADAPTABLE_VERSION);
|
|
7
|
+
this.logger = logger || this.getConsoleLogger();
|
|
8
|
+
this.versionUpgrades = new Map();
|
|
9
|
+
this.versionUpgrades.set(17, new VersionUpgrade17(this.logger));
|
|
10
|
+
this.versionUpgrades.set(18, new VersionUpgrade18(this.logger));
|
|
11
|
+
}
|
|
12
|
+
static migrateAdaptableState(state, config) {
|
|
13
|
+
const upgradeHelper = new AdaptableUpgradeHelper(config.logger);
|
|
14
|
+
let fromVersion = (config === null || config === void 0 ? void 0 : config.fromVersion) || 16;
|
|
15
|
+
const toVersion = (config === null || config === void 0 ? void 0 : config.toVersion) || upgradeHelper.currentMajorVersion;
|
|
16
|
+
if (fromVersion >= toVersion) {
|
|
17
|
+
console.warn(`The fromVersion (${fromVersion}) should be less than toVersion (${toVersion})!`);
|
|
18
|
+
return state;
|
|
19
|
+
}
|
|
20
|
+
if (fromVersion < 16) {
|
|
21
|
+
// until version 16 we didn't have versioning
|
|
22
|
+
fromVersion = 16;
|
|
23
|
+
}
|
|
24
|
+
const versionUpgrades = Array.from(upgradeHelper.versionUpgrades.keys());
|
|
25
|
+
let updatedState = structuredClone(state);
|
|
26
|
+
for (const version of versionUpgrades) {
|
|
27
|
+
if (version > fromVersion && version <= toVersion) {
|
|
28
|
+
upgradeHelper.logger.info(`Migration to ${version} started...`);
|
|
29
|
+
updatedState = upgradeHelper.versionUpgrades.get(version).migrateState(updatedState);
|
|
30
|
+
upgradeHelper.logger.info(`Migration to ${version} finished!`);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return updatedState;
|
|
34
|
+
}
|
|
35
|
+
getCurrentMajorVersion(version) {
|
|
36
|
+
// is good enough for now, we just need to make sure we don't forget to update it
|
|
37
|
+
// TODO AFL is there a better way to do this for local development?
|
|
38
|
+
return parseInt(version.split('.')[0]) || 18;
|
|
39
|
+
}
|
|
40
|
+
getConsoleLogger() {
|
|
41
|
+
return {
|
|
42
|
+
success: console.log,
|
|
43
|
+
info: console.info,
|
|
44
|
+
warn: console.warn,
|
|
45
|
+
error: console.error,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AdaptableState } from '../PredefinedConfig/AdaptableState';
|
|
2
|
+
import { MigrationLogger } from './AdaptableUpgradeHelper';
|
|
3
|
+
export declare abstract class VersionUpgrade {
|
|
4
|
+
protected logger: MigrationLogger;
|
|
5
|
+
constructor(logger: MigrationLogger);
|
|
6
|
+
abstract migrateState(state: AdaptableState): AdaptableState;
|
|
7
|
+
protected migrateStateWithMethods(state: AdaptableState, methods: ((state: AdaptableState) => AdaptableState)[]): AdaptableState;
|
|
8
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { VersionUpgrade } from './VersionUpgrade';
|
|
2
|
+
import { AdaptableState } from '../PredefinedConfig/AdaptableState';
|
|
3
|
+
export declare class VersionUpgrade17 extends VersionUpgrade {
|
|
4
|
+
migrateState(state: AdaptableState): AdaptableState;
|
|
5
|
+
private migrateChartingState;
|
|
6
|
+
private migrateColumnFilterState;
|
|
7
|
+
private migrateDashboardState;
|
|
8
|
+
private migrateFlashinCellState;
|
|
9
|
+
private migrateFormatColumnState;
|
|
10
|
+
private migrateFreeTextColumnState;
|
|
11
|
+
private migrateGridFilterState;
|
|
12
|
+
private migrateNamedQueryState;
|
|
13
|
+
private migrateStyledColumnState;
|
|
14
|
+
private migrateToolPanelState;
|
|
15
|
+
private migrateAlertState;
|
|
16
|
+
private migrateCalculatedColumnState;
|
|
17
|
+
private migrateUserState;
|
|
18
|
+
}
|