@adaptabletools/adaptable-cjs 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 +5 -21
- 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 +2 -6
- 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 +107 -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 +71 -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 +18 -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 +60 -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 +18 -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 +8 -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 +5 -1
- package/src/PredefinedConfig/Common/DataUpdateConfig.d.ts +8 -0
- package/src/PredefinedConfig/Common/RowSummary.d.ts +7 -0
- package/src/PredefinedConfig/Common/RowSummary.js +4 -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 +22 -1
- package/src/Redux/ActionsReducers/NotesRedux.d.ts +3 -4
- package/src/Redux/ActionsReducers/NotesRedux.js +10 -8
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +5 -0
- package/src/Redux/ActionsReducers/SystemRedux.js +16 -3
- 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 +3 -2
- 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 +6 -1
- package/src/Utilities/Helpers/AdaptableHelper.d.ts +3 -4
- package/src/Utilities/Helpers/AdaptableHelper.js +20 -60
- package/src/Utilities/Helpers/Helper.d.ts +2 -0
- package/src/Utilities/Helpers/Helper.js +6 -1
- 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 +33 -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 +4 -1
- 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 +199 -0
- package/src/View/Layout/Wizard/LayoutWizard.js +1 -1
- package/src/View/Notes/NotesPopup.js +8 -10
- package/src/View/SpecialColumnSettingsWizardStep.js +4 -4
- package/src/View/Theme/ThemeSelector.js +2 -2
- package/src/agGrid/ActionColumnRenderer.js +7 -6
- package/src/agGrid/Adaptable.d.ts +3 -455
- package/src/agGrid/Adaptable.js +7 -5291
- package/src/agGrid/AdaptableAgGrid.d.ts +351 -0
- package/src/agGrid/AdaptableAgGrid.js +3941 -0
- package/src/agGrid/AdaptableLogger.js +78 -13
- package/src/agGrid/AgGridAdapter.d.ts +62 -0
- package/src/agGrid/AgGridAdapter.js +582 -0
- package/src/agGrid/AgGridColumnAdapter.d.ts +56 -0
- package/src/agGrid/AgGridColumnAdapter.js +829 -0
- package/src/agGrid/AgGridMenuAdapter.d.ts +28 -0
- package/src/agGrid/AgGridMenuAdapter.js +276 -0
- package/src/agGrid/AgGridOptionsService.d.ts +12 -0
- package/src/agGrid/AgGridOptionsService.js +58 -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} +73 -10
- 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 +6 -4
- 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 +7 -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 +52 -0
- package/src/migration/VersionUpgrade.d.ts +8 -0
- package/src/migration/VersionUpgrade.js +15 -0
- package/src/migration/VersionUpgrade17.d.ts +18 -0
- package/src/migration/VersionUpgrade17.js +347 -0
- package/src/migration/VersionUpgrade18.d.ts +5 -0
- package/src/migration/VersionUpgrade18.js +10 -0
- package/src/parser/src/types.d.ts +5 -0
- package/src/types.d.ts +7 -3
- package/tsconfig.cjs.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 -2
- package/src/View/Components/ScopeComponent.d.ts +0 -24
- package/src/View/Components/ScopeComponent.js +0 -138
- package/src/View/Export/Wizard/ReportScopeWizard.d.ts +0 -17
- package/src/View/Export/Wizard/ReportScopeWizard.js +0 -52
- package/src/agGrid/agGridHelper.d.ts +0 -57
- package/src/agGrid/agGridHelper.js +0 -691
- package/src/agGrid/agGridMenuHelper.d.ts +0 -46
- package/src/agGrid/agGridMenuHelper.js +0 -673
- /package/src/AdaptableOptions/{CommentsOptions.js → CommentOptions.js} +0 -0
- /package/src/AdaptableOptions/{NotesOptions.js → NoteOptions.js} +0 -0
|
@@ -664,6 +664,12 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
664
664
|
"kind": "s",
|
|
665
665
|
"desc": "Name of Column in AG Grid (e.g. field or colId)"
|
|
666
666
|
},
|
|
667
|
+
{
|
|
668
|
+
"name": "columnTypes",
|
|
669
|
+
"kind": "a",
|
|
670
|
+
"desc": "Column Types of the Column",
|
|
671
|
+
"isOpt": true
|
|
672
|
+
},
|
|
667
673
|
{
|
|
668
674
|
"name": "dataType",
|
|
669
675
|
"kind": "R",
|
|
@@ -1038,16 +1044,6 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
1038
1044
|
"kind": "I",
|
|
1039
1045
|
"desc": "Note that can be applied to a Cell in AdapTable",
|
|
1040
1046
|
"props": [
|
|
1041
|
-
{
|
|
1042
|
-
"name": "AdaptableId",
|
|
1043
|
-
"kind": "s",
|
|
1044
|
-
"desc": "Id of this AdapTable instance"
|
|
1045
|
-
},
|
|
1046
|
-
{
|
|
1047
|
-
"name": "Author",
|
|
1048
|
-
"kind": "u",
|
|
1049
|
-
"desc": "Author of the Note"
|
|
1050
|
-
},
|
|
1051
1047
|
{
|
|
1052
1048
|
"name": "ColumnId",
|
|
1053
1049
|
"kind": "s",
|
|
@@ -1058,15 +1054,15 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
1058
1054
|
"kind": "u",
|
|
1059
1055
|
"desc": "Value in Grid's Primary Key Column"
|
|
1060
1056
|
},
|
|
1057
|
+
{
|
|
1058
|
+
"name": "Text",
|
|
1059
|
+
"kind": "s",
|
|
1060
|
+
"desc": "Value of the Note"
|
|
1061
|
+
},
|
|
1061
1062
|
{
|
|
1062
1063
|
"name": "Timestamp",
|
|
1063
1064
|
"kind": "n",
|
|
1064
1065
|
"desc": "When Note was made"
|
|
1065
|
-
},
|
|
1066
|
-
{
|
|
1067
|
-
"name": "Value",
|
|
1068
|
-
"kind": "s",
|
|
1069
|
-
"desc": "Value of the Note"
|
|
1070
1066
|
}
|
|
1071
1067
|
]
|
|
1072
1068
|
},
|
|
@@ -1175,7 +1171,7 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
1175
1171
|
"isOpt": true,
|
|
1176
1172
|
"gridInfo": "item",
|
|
1177
1173
|
"noCode": "item",
|
|
1178
|
-
"defVal": "'
|
|
1174
|
+
"defVal": "'adaptable_id_$random_number'"
|
|
1179
1175
|
},
|
|
1180
1176
|
{
|
|
1181
1177
|
"name": "adaptableStateKey",
|
|
@@ -1201,6 +1197,13 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
1201
1197
|
"gridInfo": "item",
|
|
1202
1198
|
"defVal": "false"
|
|
1203
1199
|
},
|
|
1200
|
+
{
|
|
1201
|
+
"name": "autoMigrateState",
|
|
1202
|
+
"kind": "b",
|
|
1203
|
+
"desc": "Automatically migrate the state from the previous version of Adaptable to the current version.",
|
|
1204
|
+
"isOpt": true,
|
|
1205
|
+
"defVal": "true"
|
|
1206
|
+
},
|
|
1204
1207
|
{
|
|
1205
1208
|
"name": "calendarOptions",
|
|
1206
1209
|
"kind": "R",
|
|
@@ -1239,7 +1242,7 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
1239
1242
|
"ref": "ColumnOptions"
|
|
1240
1243
|
},
|
|
1241
1244
|
{
|
|
1242
|
-
"name": "
|
|
1245
|
+
"name": "commentOptions",
|
|
1243
1246
|
"kind": "u",
|
|
1244
1247
|
"desc": "Options for managing AdapTable Comments",
|
|
1245
1248
|
"isOpt": true
|
|
@@ -1379,11 +1382,11 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
1379
1382
|
"gridInfo": "container"
|
|
1380
1383
|
},
|
|
1381
1384
|
{
|
|
1382
|
-
"name": "
|
|
1385
|
+
"name": "noteOptions",
|
|
1383
1386
|
"kind": "R",
|
|
1384
|
-
"desc": "Options for managing
|
|
1387
|
+
"desc": "Options for managing Notes",
|
|
1385
1388
|
"isOpt": true,
|
|
1386
|
-
"ref": "
|
|
1389
|
+
"ref": "unknown"
|
|
1387
1390
|
},
|
|
1388
1391
|
{
|
|
1389
1392
|
"name": "notificationsOptions",
|
|
@@ -3247,7 +3250,7 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
3247
3250
|
},
|
|
3248
3251
|
{
|
|
3249
3252
|
"name": "columnTypes",
|
|
3250
|
-
"kind": "
|
|
3253
|
+
"kind": "u",
|
|
3251
3254
|
"desc": "Optional list of Column Types - used primarily for Calculated and FreeText Columns",
|
|
3252
3255
|
"isOpt": true,
|
|
3253
3256
|
"defVal": "undefined"
|
|
@@ -3298,6 +3301,36 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
3298
3301
|
}
|
|
3299
3302
|
]
|
|
3300
3303
|
},
|
|
3304
|
+
"CommentableCellContext": {
|
|
3305
|
+
"name": "CommentableCellContext",
|
|
3306
|
+
"kind": "I",
|
|
3307
|
+
"desc": "Context used when determining if a Comment can be added to a Cell"
|
|
3308
|
+
},
|
|
3309
|
+
"CommentsOptions": {
|
|
3310
|
+
"name": "CommentsOptions",
|
|
3311
|
+
"kind": "I",
|
|
3312
|
+
"desc": "Options for managing Comments and Comment Threads in AdapTable",
|
|
3313
|
+
"props": [
|
|
3314
|
+
{
|
|
3315
|
+
"name": "isCellCommentable",
|
|
3316
|
+
"kind": "f",
|
|
3317
|
+
"desc": "Whether a cell can be noted on TODO: check if it works",
|
|
3318
|
+
"isOpt": true
|
|
3319
|
+
},
|
|
3320
|
+
{
|
|
3321
|
+
"name": "loadCommentThreads",
|
|
3322
|
+
"kind": "f",
|
|
3323
|
+
"desc": "Called to load initial comments",
|
|
3324
|
+
"isOpt": true
|
|
3325
|
+
},
|
|
3326
|
+
{
|
|
3327
|
+
"name": "persistCommentThreads",
|
|
3328
|
+
"kind": "f",
|
|
3329
|
+
"desc": "Called when comments change",
|
|
3330
|
+
"isOpt": true
|
|
3331
|
+
}
|
|
3332
|
+
]
|
|
3333
|
+
},
|
|
3301
3334
|
"CompatibleContext": {
|
|
3302
3335
|
"name": "CompatibleContext",
|
|
3303
3336
|
"kind": "A",
|
|
@@ -4385,6 +4418,12 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
4385
4418
|
"desc": "Callback function invoked when a batch successfully updates",
|
|
4386
4419
|
"isOpt": true
|
|
4387
4420
|
},
|
|
4421
|
+
{
|
|
4422
|
+
"name": "flushAsync",
|
|
4423
|
+
"kind": "b",
|
|
4424
|
+
"desc": "Whether to flush async updates.",
|
|
4425
|
+
"isOpt": true
|
|
4426
|
+
},
|
|
4388
4427
|
{
|
|
4389
4428
|
"name": "runAsync",
|
|
4390
4429
|
"kind": "b",
|
|
@@ -4695,7 +4734,7 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
4695
4734
|
"name": "report",
|
|
4696
4735
|
"kind": "R",
|
|
4697
4736
|
"desc": "The exported report",
|
|
4698
|
-
"ref": "
|
|
4737
|
+
"ref": "Report"
|
|
4699
4738
|
},
|
|
4700
4739
|
{
|
|
4701
4740
|
"name": "reportData",
|
|
@@ -4836,6 +4875,12 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
4836
4875
|
"kind": "u",
|
|
4837
4876
|
"desc": "All Expression Functions available to AdaptableQL"
|
|
4838
4877
|
},
|
|
4878
|
+
{
|
|
4879
|
+
"name": "getRowNodes",
|
|
4880
|
+
"kind": "u",
|
|
4881
|
+
"desc": "Get custom list rows",
|
|
4882
|
+
"isOpt": true
|
|
4883
|
+
},
|
|
4839
4884
|
{
|
|
4840
4885
|
"name": "namedQueryCallStack",
|
|
4841
4886
|
"kind": "a",
|
|
@@ -6094,6 +6139,20 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
6094
6139
|
"kind": "A",
|
|
6095
6140
|
"desc": "Type for FDC3 Instrument List Context"
|
|
6096
6141
|
},
|
|
6142
|
+
"InteropioPluginOptions": {
|
|
6143
|
+
"name": "InteropioPluginOptions",
|
|
6144
|
+
"kind": "I",
|
|
6145
|
+
"desc": "Options for using the Interop plugin",
|
|
6146
|
+
"props": [
|
|
6147
|
+
{
|
|
6148
|
+
"name": "showAdaptableAlertsAsNotifications",
|
|
6149
|
+
"kind": "b",
|
|
6150
|
+
"desc": "Converts AdapTable Alerts configured to display in popup as Interop Notifications",
|
|
6151
|
+
"isOpt": true,
|
|
6152
|
+
"defVal": "true"
|
|
6153
|
+
}
|
|
6154
|
+
]
|
|
6155
|
+
},
|
|
6097
6156
|
"IPushPullDomain": {
|
|
6098
6157
|
"name": "IPushPullDomain",
|
|
6099
6158
|
"kind": "I",
|
|
@@ -6290,6 +6349,12 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
6290
6349
|
"desc": "Columns which are row-grouped when the Layout is applied",
|
|
6291
6350
|
"isOpt": true
|
|
6292
6351
|
},
|
|
6352
|
+
{
|
|
6353
|
+
"name": "RowSummaries",
|
|
6354
|
+
"kind": "a",
|
|
6355
|
+
"desc": "Row summaries",
|
|
6356
|
+
"isOpt": true
|
|
6357
|
+
},
|
|
6293
6358
|
{
|
|
6294
6359
|
"name": "SuppressAggFuncInHeader",
|
|
6295
6360
|
"kind": "b",
|
|
@@ -6711,8 +6776,8 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
6711
6776
|
}
|
|
6712
6777
|
]
|
|
6713
6778
|
},
|
|
6714
|
-
"
|
|
6715
|
-
"name": "
|
|
6779
|
+
"NotesState": {
|
|
6780
|
+
"name": "NotesState",
|
|
6716
6781
|
"kind": "I",
|
|
6717
6782
|
"desc": "Predefined Configuration for Notes Module",
|
|
6718
6783
|
"props": [
|
|
@@ -7280,9 +7345,9 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
7280
7345
|
{
|
|
7281
7346
|
"name": "Notes",
|
|
7282
7347
|
"kind": "R",
|
|
7283
|
-
"desc": "Collection of
|
|
7348
|
+
"desc": "Collection of personal Notes that are edited at Cell level",
|
|
7284
7349
|
"isOpt": true,
|
|
7285
|
-
"ref": "
|
|
7350
|
+
"ref": "NotesState"
|
|
7286
7351
|
},
|
|
7287
7352
|
{
|
|
7288
7353
|
"name": "PlusMinus",
|
|
@@ -7468,7 +7533,7 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
7468
7533
|
"name": "report",
|
|
7469
7534
|
"kind": "R",
|
|
7470
7535
|
"desc": "Report being exported",
|
|
7471
|
-
"ref": "
|
|
7536
|
+
"ref": "Report"
|
|
7472
7537
|
}
|
|
7473
7538
|
]
|
|
7474
7539
|
},
|
|
@@ -7760,8 +7825,8 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
7760
7825
|
}
|
|
7761
7826
|
]
|
|
7762
7827
|
},
|
|
7763
|
-
"
|
|
7764
|
-
"name": "
|
|
7828
|
+
"Report": {
|
|
7829
|
+
"name": "Report",
|
|
7765
7830
|
"kind": "I",
|
|
7766
7831
|
"desc": "A Report which can export data from AdapTable",
|
|
7767
7832
|
"props": [
|
|
@@ -7812,7 +7877,7 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
7812
7877
|
"name": "report",
|
|
7813
7878
|
"kind": "R",
|
|
7814
7879
|
"desc": "Definition of Report being Run",
|
|
7815
|
-
"ref": "
|
|
7880
|
+
"ref": "Report"
|
|
7816
7881
|
},
|
|
7817
7882
|
{
|
|
7818
7883
|
"name": "reportData",
|
|
@@ -8934,6 +8999,33 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
8934
8999
|
}
|
|
8935
9000
|
]
|
|
8936
9001
|
},
|
|
9002
|
+
"UpgradeConfig": {
|
|
9003
|
+
"name": "UpgradeConfig",
|
|
9004
|
+
"kind": "I",
|
|
9005
|
+
"desc": "The upgrade config object",
|
|
9006
|
+
"props": [
|
|
9007
|
+
{
|
|
9008
|
+
"name": "fromVersion",
|
|
9009
|
+
"kind": "n",
|
|
9010
|
+
"desc": "The version to upgrade from"
|
|
9011
|
+
},
|
|
9012
|
+
{
|
|
9013
|
+
"name": "logger",
|
|
9014
|
+
"kind": "R",
|
|
9015
|
+
"desc": "The logger object",
|
|
9016
|
+
"isOpt": true,
|
|
9017
|
+
"defVal": "The console object",
|
|
9018
|
+
"ref": "unknown"
|
|
9019
|
+
},
|
|
9020
|
+
{
|
|
9021
|
+
"name": "toVersion",
|
|
9022
|
+
"kind": "n",
|
|
9023
|
+
"desc": "The version to upgrade to",
|
|
9024
|
+
"isOpt": true,
|
|
9025
|
+
"defVal": "The current version"
|
|
9026
|
+
}
|
|
9027
|
+
]
|
|
9028
|
+
},
|
|
8937
9029
|
"UserColumnMenuItem": {
|
|
8938
9030
|
"name": "UserColumnMenuItem",
|
|
8939
9031
|
"kind": "I",
|
|
@@ -9116,6 +9208,27 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
9116
9208
|
"desc": "Custom column values for Values Column Filter and Grid Filter Builder",
|
|
9117
9209
|
"isOpt": true
|
|
9118
9210
|
},
|
|
9211
|
+
{
|
|
9212
|
+
"name": "loadingScreenDelay",
|
|
9213
|
+
"kind": "n",
|
|
9214
|
+
"desc": "Delay in milliseconds before Loading Screen appears. `showLoadingScreen` must be true for this to take effect",
|
|
9215
|
+
"isOpt": true,
|
|
9216
|
+
"defVal": "200"
|
|
9217
|
+
},
|
|
9218
|
+
{
|
|
9219
|
+
"name": "loadingScreenText",
|
|
9220
|
+
"kind": "s",
|
|
9221
|
+
"desc": "Text to display in Loading Screen.",
|
|
9222
|
+
"isOpt": true,
|
|
9223
|
+
"defVal": "'Retrieving your settings and setting up the grid...'"
|
|
9224
|
+
},
|
|
9225
|
+
{
|
|
9226
|
+
"name": "loadingScreenTitle",
|
|
9227
|
+
"kind": "s",
|
|
9228
|
+
"desc": "Title to display in Loading Screen.",
|
|
9229
|
+
"isOpt": true,
|
|
9230
|
+
"defVal": "'Initialising Grid'"
|
|
9231
|
+
},
|
|
9119
9232
|
{
|
|
9120
9233
|
"name": "objectTags",
|
|
9121
9234
|
"kind": "u",
|
|
@@ -9231,7 +9344,7 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
9231
9344
|
"ValuesFilterOptions": {
|
|
9232
9345
|
"name": "ValuesFilterOptions",
|
|
9233
9346
|
"kind": "I",
|
|
9234
|
-
"desc": "Options for managing the Values (IN)
|
|
9347
|
+
"desc": "Options for managing the Values (IN) Filter in Filter Bar and Filter Form",
|
|
9235
9348
|
"props": [
|
|
9236
9349
|
{
|
|
9237
9350
|
"name": "filterValuesUsingTime",
|
|
@@ -9252,12 +9365,12 @@ exports.ADAPTABLE_METAMODEL = {
|
|
|
9252
9365
|
},
|
|
9253
9366
|
{
|
|
9254
9367
|
"name": "maxFilterValuesToDisplay",
|
|
9255
|
-
"kind": "
|
|
9256
|
-
"desc": "Distinct column items to display in Filter
|
|
9368
|
+
"kind": "u",
|
|
9369
|
+
"desc": "Distinct column items to display in Values Filter; useful with large datasource (though AdapTable offers virtualisation)",
|
|
9257
9370
|
"isOpt": true,
|
|
9258
9371
|
"gridInfo": "item",
|
|
9259
9372
|
"noCode": "item",
|
|
9260
|
-
"defVal": "
|
|
9373
|
+
"defVal": "undefined"
|
|
9261
9374
|
},
|
|
9262
9375
|
{
|
|
9263
9376
|
"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,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdaptableUpgradeHelper = void 0;
|
|
4
|
+
const VersionUpgrade17_1 = require("./VersionUpgrade17");
|
|
5
|
+
const VersionUpgrade18_1 = require("./VersionUpgrade18");
|
|
6
|
+
const EnvVars_1 = require("../EnvVars");
|
|
7
|
+
class AdaptableUpgradeHelper {
|
|
8
|
+
constructor(logger) {
|
|
9
|
+
this.currentMajorVersion = this.getCurrentMajorVersion(EnvVars_1.ADAPTABLE_VERSION);
|
|
10
|
+
this.logger = logger || this.getConsoleLogger();
|
|
11
|
+
this.versionUpgrades = new Map();
|
|
12
|
+
this.versionUpgrades.set(17, new VersionUpgrade17_1.VersionUpgrade17(this.logger));
|
|
13
|
+
this.versionUpgrades.set(18, new VersionUpgrade18_1.VersionUpgrade18(this.logger));
|
|
14
|
+
}
|
|
15
|
+
static migrateAdaptableState(state, config) {
|
|
16
|
+
const upgradeHelper = new AdaptableUpgradeHelper(config.logger);
|
|
17
|
+
let fromVersion = (config === null || config === void 0 ? void 0 : config.fromVersion) || 16;
|
|
18
|
+
const toVersion = (config === null || config === void 0 ? void 0 : config.toVersion) || upgradeHelper.currentMajorVersion;
|
|
19
|
+
if (fromVersion >= toVersion) {
|
|
20
|
+
console.warn(`The fromVersion (${fromVersion}) should be less than toVersion (${toVersion})!`);
|
|
21
|
+
return state;
|
|
22
|
+
}
|
|
23
|
+
if (fromVersion < 16) {
|
|
24
|
+
// until version 16 we didn't have versioning
|
|
25
|
+
fromVersion = 16;
|
|
26
|
+
}
|
|
27
|
+
const versionUpgrades = Array.from(upgradeHelper.versionUpgrades.keys());
|
|
28
|
+
let updatedState = structuredClone(state);
|
|
29
|
+
for (const version of versionUpgrades) {
|
|
30
|
+
if (version > fromVersion && version <= toVersion) {
|
|
31
|
+
upgradeHelper.logger.info(`Migration to ${version} started...`);
|
|
32
|
+
updatedState = upgradeHelper.versionUpgrades.get(version).migrateState(updatedState);
|
|
33
|
+
upgradeHelper.logger.info(`Migration to ${version} finished!`);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return updatedState;
|
|
37
|
+
}
|
|
38
|
+
getCurrentMajorVersion(version) {
|
|
39
|
+
// is good enough for now, we just need to make sure we don't forget to update it
|
|
40
|
+
// TODO AFL is there a better way to do this for local development?
|
|
41
|
+
return parseInt(version.split('.')[0]) || 18;
|
|
42
|
+
}
|
|
43
|
+
getConsoleLogger() {
|
|
44
|
+
return {
|
|
45
|
+
success: console.log,
|
|
46
|
+
info: console.info,
|
|
47
|
+
warn: console.warn,
|
|
48
|
+
error: console.error,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.AdaptableUpgradeHelper = AdaptableUpgradeHelper;
|
|
@@ -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,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VersionUpgrade = void 0;
|
|
4
|
+
class VersionUpgrade {
|
|
5
|
+
constructor(logger) {
|
|
6
|
+
this.logger = logger;
|
|
7
|
+
}
|
|
8
|
+
migrateStateWithMethods(state, methods) {
|
|
9
|
+
for (let method of methods) {
|
|
10
|
+
state = method.call(this, state);
|
|
11
|
+
}
|
|
12
|
+
return state;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.VersionUpgrade = VersionUpgrade;
|
|
@@ -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
|
+
}
|