@finos/legend-application 14.0.3 → 15.0.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/lib/__lib__/LegendApplicationDocumentation.d.ts.map +1 -0
- package/lib/__lib__/LegendApplicationDocumentation.js.map +1 -0
- package/lib/{application → __lib__}/LegendApplicationEvent.d.ts +0 -1
- package/lib/__lib__/LegendApplicationEvent.d.ts.map +1 -0
- package/lib/{application → __lib__}/LegendApplicationEvent.js +0 -1
- package/lib/__lib__/LegendApplicationEvent.js.map +1 -0
- package/lib/__lib__/LegendApplicationNavigation.d.ts +19 -0
- package/lib/__lib__/LegendApplicationNavigation.d.ts.map +1 -0
- package/lib/__lib__/LegendApplicationNavigation.js +20 -0
- package/lib/__lib__/LegendApplicationNavigation.js.map +1 -0
- package/lib/__lib__/LegendApplicationSetting.d.ts.map +1 -0
- package/lib/__lib__/LegendApplicationSetting.js.map +1 -0
- package/lib/{application → __lib__}/LegendApplicationTelemetry.d.ts +0 -11
- package/lib/__lib__/LegendApplicationTelemetry.d.ts.map +1 -0
- package/lib/{application → __lib__}/LegendApplicationTelemetry.js +0 -4
- package/lib/__lib__/LegendApplicationTelemetry.js.map +1 -0
- package/lib/__lib__/LegendApplicationTheme.d.ts.map +1 -0
- package/lib/__lib__/LegendApplicationTheme.js.map +1 -0
- package/lib/__test__.d.ts +18 -0
- package/lib/__test__.d.ts.map +1 -0
- package/lib/__test__.js +18 -0
- package/lib/__test__.js.map +1 -0
- package/lib/application/LegendApplication.d.ts +7 -4
- package/lib/application/LegendApplication.d.ts.map +1 -1
- package/lib/application/LegendApplication.js +28 -11
- package/lib/application/LegendApplication.js.map +1 -1
- package/lib/application/LegendApplicationConfig.d.ts +8 -1
- package/lib/application/LegendApplicationConfig.d.ts.map +1 -1
- package/lib/application/LegendApplicationConfig.js +6 -2
- package/lib/application/LegendApplicationConfig.js.map +1 -1
- package/lib/browser.d.ts +19 -0
- package/lib/browser.d.ts.map +1 -0
- package/lib/browser.js +19 -0
- package/lib/browser.js.map +1 -0
- package/lib/components/{LegendApplicationComponentFrameworkProvider.d.ts → ApplicationComponentFrameworkProvider.d.ts} +2 -2
- package/lib/components/ApplicationComponentFrameworkProvider.d.ts.map +1 -0
- package/lib/components/{LegendApplicationComponentFrameworkProvider.js → ApplicationComponentFrameworkProvider.js} +3 -3
- package/lib/components/ApplicationComponentFrameworkProvider.js.map +1 -0
- package/lib/components/ApplicationFrameworkProvider.d.ts +21 -0
- package/lib/components/ApplicationFrameworkProvider.d.ts.map +1 -0
- package/lib/components/ApplicationFrameworkProvider.js +39 -0
- package/lib/components/ApplicationFrameworkProvider.js.map +1 -0
- package/lib/components/{shared/DocumentationLink.d.ts → ApplicationPlatformProvider.d.ts} +4 -10
- package/lib/components/ApplicationPlatformProvider.d.ts.map +1 -0
- package/lib/components/{WebApplicationNavigatorProviderTestUtils.d.ts → ApplicationPlatformProvider.js} +5 -7
- package/lib/components/ApplicationPlatformProvider.js.map +1 -0
- package/lib/components/ApplicationStoreProvider.d.ts +3 -4
- package/lib/components/ApplicationStoreProvider.d.ts.map +1 -1
- package/lib/components/ApplicationStoreProvider.js +6 -23
- package/lib/components/ApplicationStoreProvider.js.map +1 -1
- package/lib/components/{WebApplicationNavigatorProvider.d.ts → BrowserEnvironmentProvider.d.ts} +3 -4
- package/lib/components/BrowserEnvironmentProvider.d.ts.map +1 -0
- package/lib/components/BrowserEnvironmentProvider.js +31 -0
- package/lib/components/BrowserEnvironmentProvider.js.map +1 -0
- package/lib/components/VirtualAssistant.d.ts.map +1 -1
- package/lib/components/VirtualAssistant.js +17 -9
- package/lib/components/VirtualAssistant.js.map +1 -1
- package/lib/components/{shared/FuzzySearchAdvancedConfigMenu.d.ts → __test-utils__/BrowserEnvironmentTestUtils.d.ts} +13 -7
- package/lib/components/__test-utils__/BrowserEnvironmentTestUtils.d.ts.map +1 -0
- package/lib/components/__test-utils__/BrowserEnvironmentTestUtils.js +42 -0
- package/lib/components/__test-utils__/BrowserEnvironmentTestUtils.js.map +1 -0
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +8 -16
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +8 -18
- package/lib/index.js.map +1 -1
- package/lib/package.json +4 -6
- package/lib/stores/{shared/PackageableElementOption.d.ts → ApplicationConfig.d.ts} +6 -7
- package/lib/stores/ApplicationConfig.d.ts.map +1 -0
- package/lib/stores/ApplicationConfig.js +21 -0
- package/lib/stores/ApplicationConfig.js.map +1 -0
- package/lib/stores/ApplicationNavigationContextService.js +1 -1
- package/lib/stores/ApplicationNavigationContextService.js.map +1 -1
- package/lib/stores/ApplicationStore.d.ts +4 -8
- package/lib/stores/ApplicationStore.d.ts.map +1 -1
- package/lib/stores/ApplicationStore.js +14 -14
- package/lib/stores/ApplicationStore.js.map +1 -1
- package/lib/stores/AssistantService.d.ts +3 -3
- package/lib/stores/AssistantService.d.ts.map +1 -1
- package/lib/stores/AssistantService.js +18 -10
- package/lib/stores/AssistantService.js.map +1 -1
- package/lib/stores/CommandService.js +1 -1
- package/lib/stores/CommandService.js.map +1 -1
- package/lib/stores/Core_LegendApplicationPlugin.d.ts.map +1 -1
- package/lib/stores/Core_LegendApplicationPlugin.js +2 -52
- package/lib/stores/Core_LegendApplicationPlugin.js.map +1 -1
- package/lib/stores/DocumentationService.d.ts +1 -1
- package/lib/stores/DocumentationService.d.ts.map +1 -1
- package/lib/stores/DocumentationService.js +4 -5
- package/lib/stores/DocumentationService.js.map +1 -1
- package/lib/stores/LayoutService.js +3 -3
- package/lib/stores/LayoutService.js.map +1 -1
- package/lib/stores/LegendApplicationPlugin.d.ts +1 -15
- package/lib/stores/LegendApplicationPlugin.d.ts.map +1 -1
- package/lib/stores/LegendApplicationPlugin.js +0 -5
- package/lib/stores/LegendApplicationPlugin.js.map +1 -1
- package/lib/stores/SettingService.d.ts +1 -0
- package/lib/stores/SettingService.d.ts.map +1 -1
- package/lib/stores/SettingService.js +1 -1
- package/lib/stores/SettingService.js.map +1 -1
- package/lib/stores/__test-utils__/ApplicationStoreTestUtils.d.ts +18 -0
- package/lib/stores/__test-utils__/ApplicationStoreTestUtils.d.ts.map +1 -0
- package/lib/stores/__test-utils__/ApplicationStoreTestUtils.js +21 -0
- package/lib/stores/__test-utils__/ApplicationStoreTestUtils.js.map +1 -0
- package/lib/stores/navigation/BrowserNavigator.d.ts +64 -0
- package/lib/stores/navigation/BrowserNavigator.d.ts.map +1 -0
- package/lib/stores/navigation/{WebApplicationNavigator.js → BrowserNavigator.js} +22 -3
- package/lib/stores/navigation/BrowserNavigator.js.map +1 -0
- package/lib/stores/navigation/{WebApplicationNavigator.d.ts → DefaultNavigator.d.ts} +3 -12
- package/lib/stores/navigation/DefaultNavigator.d.ts.map +1 -0
- package/lib/stores/navigation/DefaultNavigator.js +74 -0
- package/lib/stores/navigation/DefaultNavigator.js.map +1 -0
- package/lib/stores/navigation/NavigationService.d.ts +7 -0
- package/lib/stores/navigation/NavigationService.d.ts.map +1 -1
- package/lib/stores/navigation/NavigationService.js.map +1 -1
- package/lib/stores/platform/ApplicationPlatform.d.ts +24 -0
- package/lib/stores/platform/ApplicationPlatform.d.ts.map +1 -0
- package/lib/stores/platform/ApplicationPlatform.js +25 -0
- package/lib/stores/platform/ApplicationPlatform.js.map +1 -0
- package/lib/stores/platform/BrowserPlatform.d.ts +29 -0
- package/lib/stores/platform/BrowserPlatform.d.ts.map +1 -0
- package/lib/stores/platform/BrowserPlatform.js +39 -0
- package/lib/stores/platform/BrowserPlatform.js.map +1 -0
- package/lib/stores/storage/StorageService.d.ts +5 -2
- package/lib/stores/storage/StorageService.d.ts.map +1 -1
- package/lib/stores/storage/StorageService.js +20 -10
- package/lib/stores/storage/StorageService.js.map +1 -1
- package/lib/stores/terminal/XTerm.d.ts.map +1 -1
- package/lib/stores/terminal/XTerm.js +5 -5
- package/lib/stores/terminal/XTerm.js.map +1 -1
- package/package.json +7 -9
- package/src/{application → __lib__}/LegendApplicationEvent.ts +1 -1
- package/{lib/stores/shared/PackageableElementOption.js → src/__lib__/LegendApplicationNavigation.ts} +4 -5
- package/src/{application → __lib__}/LegendApplicationTelemetry.ts +0 -24
- package/src/{components.ts → __test__.ts} +2 -7
- package/src/application/LegendApplication.ts +45 -16
- package/src/application/LegendApplicationConfig.ts +13 -2
- package/src/browser.ts +19 -0
- package/src/components/{LegendApplicationComponentFrameworkProvider.tsx → ApplicationComponentFrameworkProvider.tsx} +2 -2
- package/src/components/ApplicationFrameworkProvider.tsx +47 -0
- package/src/components/ApplicationPlatformProvider.tsx +29 -0
- package/src/components/ApplicationStoreProvider.tsx +8 -33
- package/src/components/BrowserEnvironmentProvider.tsx +48 -0
- package/src/components/VirtualAssistant.tsx +53 -11
- package/src/components/__test-utils__/BrowserEnvironmentTestUtils.tsx +63 -0
- package/src/index.ts +12 -24
- package/src/stores/ApplicationConfig.ts +22 -0
- package/src/stores/ApplicationNavigationContextService.ts +1 -1
- package/src/stores/ApplicationStore.ts +18 -19
- package/src/stores/AssistantService.ts +20 -9
- package/src/stores/CommandService.ts +1 -1
- package/src/stores/Core_LegendApplicationPlugin.ts +2 -78
- package/src/stores/DocumentationService.ts +4 -5
- package/src/stores/LayoutService.ts +3 -3
- package/src/stores/LegendApplicationPlugin.ts +1 -21
- package/src/stores/SettingService.ts +2 -1
- package/src/stores/__test-utils__/ApplicationStoreTestUtils.ts +24 -0
- package/src/stores/navigation/{WebApplicationNavigator.ts → BrowserNavigator.ts} +41 -2
- package/src/stores/navigation/DefaultNavigator.ts +150 -0
- package/src/stores/navigation/NavigationService.ts +8 -0
- package/src/stores/{shared/PackageableElementOption.ts → platform/ApplicationPlatform.ts} +14 -11
- package/src/stores/platform/BrowserPlatform.ts +54 -0
- package/src/stores/storage/StorageService.ts +32 -14
- package/src/stores/terminal/XTerm.ts +8 -5
- package/tsconfig.json +19 -23
- package/lib/application/LegendApplicationDocumentation.d.ts.map +0 -1
- package/lib/application/LegendApplicationDocumentation.js.map +0 -1
- package/lib/application/LegendApplicationEvent.d.ts.map +0 -1
- package/lib/application/LegendApplicationEvent.js.map +0 -1
- package/lib/application/LegendApplicationSetting.d.ts.map +0 -1
- package/lib/application/LegendApplicationSetting.js.map +0 -1
- package/lib/application/LegendApplicationTelemetry.d.ts.map +0 -1
- package/lib/application/LegendApplicationTelemetry.js.map +0 -1
- package/lib/application/LegendApplicationTheme.d.ts.map +0 -1
- package/lib/application/LegendApplicationTheme.js.map +0 -1
- package/lib/components/ApplicationStoreProviderTestUtils.d.ts +0 -31
- package/lib/components/ApplicationStoreProviderTestUtils.d.ts.map +0 -1
- package/lib/components/ApplicationStoreProviderTestUtils.js +0 -32
- package/lib/components/ApplicationStoreProviderTestUtils.js.map +0 -1
- package/lib/components/LegendApplicationComponentFrameworkProvider.d.ts.map +0 -1
- package/lib/components/LegendApplicationComponentFrameworkProvider.js.map +0 -1
- package/lib/components/WebApplicationNavigatorProvider.d.ts.map +0 -1
- package/lib/components/WebApplicationNavigatorProvider.js +0 -29
- package/lib/components/WebApplicationNavigatorProvider.js.map +0 -1
- package/lib/components/WebApplicationNavigatorProviderTestUtils.d.ts.map +0 -1
- package/lib/components/WebApplicationNavigatorProviderTestUtils.js +0 -28
- package/lib/components/WebApplicationNavigatorProviderTestUtils.js.map +0 -1
- package/lib/components/shared/DocumentationLink.d.ts.map +0 -1
- package/lib/components/shared/DocumentationLink.js +0 -53
- package/lib/components/shared/DocumentationLink.js.map +0 -1
- package/lib/components/shared/FuzzySearchAdvancedConfigMenu.d.ts.map +0 -1
- package/lib/components/shared/FuzzySearchAdvancedConfigMenu.js +0 -37
- package/lib/components/shared/FuzzySearchAdvancedConfigMenu.js.map +0 -1
- package/lib/components/shared/PackageableElementOptionLabel.d.ts +0 -22
- package/lib/components/shared/PackageableElementOptionLabel.d.ts.map +0 -1
- package/lib/components/shared/PackageableElementOptionLabel.js +0 -46
- package/lib/components/shared/PackageableElementOptionLabel.js.map +0 -1
- package/lib/components/shared/TabManager.d.ts +0 -24
- package/lib/components/shared/TabManager.d.ts.map +0 -1
- package/lib/components/shared/TabManager.js +0 -117
- package/lib/components/shared/TabManager.js.map +0 -1
- package/lib/components.d.ts +0 -21
- package/lib/components.d.ts.map +0 -1
- package/lib/components.js +0 -21
- package/lib/components.js.map +0 -1
- package/lib/const.d.ts +0 -35
- package/lib/const.d.ts.map +0 -1
- package/lib/const.js +0 -39
- package/lib/const.js.map +0 -1
- package/lib/stores/ApplicationStoreTestUtils.d.ts +0 -41
- package/lib/stores/ApplicationStoreTestUtils.d.ts.map +0 -1
- package/lib/stores/ApplicationStoreTestUtils.js +0 -70
- package/lib/stores/ApplicationStoreTestUtils.js.map +0 -1
- package/lib/stores/navigation/WebApplicationNavigator.d.ts.map +0 -1
- package/lib/stores/navigation/WebApplicationNavigator.js.map +0 -1
- package/lib/stores/navigation/WebApplicationRouter.d.ts +0 -22
- package/lib/stores/navigation/WebApplicationRouter.d.ts.map +0 -1
- package/lib/stores/navigation/WebApplicationRouter.js +0 -25
- package/lib/stores/navigation/WebApplicationRouter.js.map +0 -1
- package/lib/stores/pure-language/PureLanguageCodeEditorSupport.d.ts +0 -70
- package/lib/stores/pure-language/PureLanguageCodeEditorSupport.d.ts.map +0 -1
- package/lib/stores/pure-language/PureLanguageCodeEditorSupport.js +0 -237
- package/lib/stores/pure-language/PureLanguageCodeEditorSupport.js.map +0 -1
- package/lib/stores/pure-language/PureLanguageSupport.d.ts +0 -39
- package/lib/stores/pure-language/PureLanguageSupport.d.ts.map +0 -1
- package/lib/stores/pure-language/PureLanguageSupport.js +0 -437
- package/lib/stores/pure-language/PureLanguageSupport.js.map +0 -1
- package/lib/stores/shared/FuzzySearchAdvancedConfigState.d.ts +0 -30
- package/lib/stores/shared/FuzzySearchAdvancedConfigState.d.ts.map +0 -1
- package/lib/stores/shared/FuzzySearchAdvancedConfigState.js +0 -59
- package/lib/stores/shared/FuzzySearchAdvancedConfigState.js.map +0 -1
- package/lib/stores/shared/PackageableElementOption.d.ts.map +0 -1
- package/lib/stores/shared/PackageableElementOption.js.map +0 -1
- package/lib/stores/shared/TabManagerState.d.ts +0 -40
- package/lib/stores/shared/TabManagerState.d.ts.map +0 -1
- package/lib/stores/shared/TabManagerState.js +0 -93
- package/lib/stores/shared/TabManagerState.js.map +0 -1
- package/src/components/ApplicationStoreProviderTestUtils.tsx +0 -59
- package/src/components/WebApplicationNavigatorProvider.tsx +0 -46
- package/src/components/WebApplicationNavigatorProviderTestUtils.tsx +0 -37
- package/src/components/shared/DocumentationLink.tsx +0 -87
- package/src/components/shared/FuzzySearchAdvancedConfigMenu.tsx +0 -73
- package/src/components/shared/PackageableElementOptionLabel.tsx +0 -85
- package/src/components/shared/TabManager.tsx +0 -288
- package/src/const.ts +0 -40
- package/src/stores/ApplicationStoreTestUtils.ts +0 -107
- package/src/stores/navigation/WebApplicationRouter.ts +0 -49
- package/src/stores/pure-language/PureLanguageCodeEditorSupport.ts +0 -338
- package/src/stores/pure-language/PureLanguageSupport.ts +0 -498
- package/src/stores/shared/FuzzySearchAdvancedConfigState.ts +0 -65
- package/src/stores/shared/TabManagerState.ts +0 -124
- /package/lib/{application → __lib__}/LegendApplicationDocumentation.d.ts +0 -0
- /package/lib/{application → __lib__}/LegendApplicationDocumentation.js +0 -0
- /package/lib/{application → __lib__}/LegendApplicationSetting.d.ts +0 -0
- /package/lib/{application → __lib__}/LegendApplicationSetting.js +0 -0
- /package/lib/{application → __lib__}/LegendApplicationTheme.d.ts +0 -0
- /package/lib/{application → __lib__}/LegendApplicationTheme.js +0 -0
- /package/src/{application → __lib__}/LegendApplicationDocumentation.ts +0 -0
- /package/src/{application → __lib__}/LegendApplicationSetting.ts +0 -0
- /package/src/{application → __lib__}/LegendApplicationTheme.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendApplicationDocumentation.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendApplicationDocumentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,oCAAoC;IAC9C,0CAA0C,+CAA+C;CAC1F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendApplicationDocumentation.js","sourceRoot":"","sources":["../../src/__lib__/LegendApplicationDocumentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,oCAEX;AAFD,WAAY,oCAAoC;IAC9C,iIAAyF,CAAA;AAC3F,CAAC,EAFW,oCAAoC,GAApC,oCAAoC,KAApC,oCAAoC,QAE/C"}
|
|
@@ -27,7 +27,6 @@ export declare enum APPLICATION_EVENT {
|
|
|
27
27
|
VIRTUAL_ASSISTANT_DOCUMENTATION_ENTRY__ACCESS = "application.virtual-assistant.documentation-entry.access",
|
|
28
28
|
TERMINAL_COMMAND_CONFIGURATION_CHECK__FAILURE = "application.load.terminal-command.configuration-check.failure",
|
|
29
29
|
COLOR_THEME_CONFIGURATION_CHECK__FAILURE = "application.layout.color-theme.configuration-check.failure",
|
|
30
|
-
LOAD_TEXT_EDITOR_FONT__SUCCESS = "application.load.font.success",
|
|
31
30
|
SETTING_CONFIGURATION_CHECK__FAILURE = "application.setting.configuration-check.failure",
|
|
32
31
|
SETTING_RETRIVE_FAILURE = "application.setting.retrieve.failure",
|
|
33
32
|
COMMAND_CENTER_REGISTRATION__FAILURE = "application.command.registration.failure",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendApplicationEvent.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendApplicationEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,iBAAiB;IAC3B,0BAA0B,8BAA8B;IAExD,yBAAyB,6BAA6B;IACtD,yBAAyB,6BAA6B;IAEtD,kCAAkC,oCAAoC;IACtE,kCAAkC,sCAAsC;IAExE,4BAA4B,4CAA4C;IAExE,4BAA4B,4CAA4C;IACxE,wBAAwB,wCAAwC;IAChE,wCAAwC,wDAAwD;IAEhG,mCAAmC,qEAAqE;IACxG,6CAA6C,6DAA6D;IAE1G,6CAA6C,kEAAkE;IAE/G,wCAAwC,+DAA+D;IAEvG,oCAAoC,oDAAoD;IACxF,uBAAuB,yCAAyC;IAEhE,oCAAoC,6CAA6C;IAEjF,iBAAiB,sBAAsB;IAEvC,2BAA2B,+BAA+B;IAE1D,4BAA4B,gCAAgC;CAC7D"}
|
|
@@ -28,7 +28,6 @@ export var APPLICATION_EVENT;
|
|
|
28
28
|
APPLICATION_EVENT["VIRTUAL_ASSISTANT_DOCUMENTATION_ENTRY__ACCESS"] = "application.virtual-assistant.documentation-entry.access";
|
|
29
29
|
APPLICATION_EVENT["TERMINAL_COMMAND_CONFIGURATION_CHECK__FAILURE"] = "application.load.terminal-command.configuration-check.failure";
|
|
30
30
|
APPLICATION_EVENT["COLOR_THEME_CONFIGURATION_CHECK__FAILURE"] = "application.layout.color-theme.configuration-check.failure";
|
|
31
|
-
APPLICATION_EVENT["LOAD_TEXT_EDITOR_FONT__SUCCESS"] = "application.load.font.success";
|
|
32
31
|
APPLICATION_EVENT["SETTING_CONFIGURATION_CHECK__FAILURE"] = "application.setting.configuration-check.failure";
|
|
33
32
|
APPLICATION_EVENT["SETTING_RETRIVE_FAILURE"] = "application.setting.retrieve.failure";
|
|
34
33
|
APPLICATION_EVENT["COMMAND_CENTER_REGISTRATION__FAILURE"] = "application.command.registration.failure";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendApplicationEvent.js","sourceRoot":"","sources":["../../src/__lib__/LegendApplicationEvent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,iBAgCX;AAhCD,WAAY,iBAAiB;IAC3B,6EAAwD,CAAA;IAExD,2EAAsD,CAAA;IACtD,2EAAsD,CAAA;IAEtD,2FAAsE,CAAA;IACtE,6FAAwE,CAAA;IAExE,6FAAwE,CAAA;IAExE,6FAAwE,CAAA;IACxE,qFAAgE,CAAA;IAChE,qHAAgG,CAAA;IAEhG,6HAAwG,CAAA;IACxG,+HAA0G,CAAA;IAE1G,oIAA+G,CAAA;IAE/G,4HAAuG,CAAA;IAEvG,6GAAwF,CAAA;IACxF,qFAAgE,CAAA;IAEhE,sGAAiF,CAAA;IAEjF,4DAAuC,CAAA;IAEvC,+EAA0D,CAAA;IAE1D,iFAA4D,CAAA;AAC9D,CAAC,EAhCW,iBAAiB,GAAjB,iBAAiB,KAAjB,iBAAiB,QAgC5B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export declare enum LEGEND_APPLICATION_PARAM_TOKEN {
|
|
17
|
+
INITIAL_COLOR_THEME = "initialColorTheme"
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=LegendApplicationNavigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendApplicationNavigation.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendApplicationNavigation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,8BAA8B;IACxC,mBAAmB,sBAAsB;CAC1C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export var LEGEND_APPLICATION_PARAM_TOKEN;
|
|
17
|
+
(function (LEGEND_APPLICATION_PARAM_TOKEN) {
|
|
18
|
+
LEGEND_APPLICATION_PARAM_TOKEN["INITIAL_COLOR_THEME"] = "initialColorTheme";
|
|
19
|
+
})(LEGEND_APPLICATION_PARAM_TOKEN = LEGEND_APPLICATION_PARAM_TOKEN || (LEGEND_APPLICATION_PARAM_TOKEN = {}));
|
|
20
|
+
//# sourceMappingURL=LegendApplicationNavigation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendApplicationNavigation.js","sourceRoot":"","sources":["../../src/__lib__/LegendApplicationNavigation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,8BAEX;AAFD,WAAY,8BAA8B;IACxC,2EAAyC,CAAA;AAC3C,CAAC,EAFW,8BAA8B,GAA9B,8BAA8B,KAA9B,8BAA8B,QAEzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendApplicationSetting.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendApplicationSetting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,8BAA8B,EAAE,MAAM,6BAA6B,CAAC;AAE7E,oBAAY,8BAA8B;IACxC,WAAW,kCAAkC;CAC9C;AAED,eAAO,MAAM,iCAAiC;;;;CAI7C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendApplicationSetting.js","sourceRoot":"","sources":["../../src/__lib__/LegendApplicationSetting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,8BAA8B,EAAE,MAAM,6BAA6B,CAAC;AAE7E,MAAM,CAAN,IAAY,8BAEX;AAFD,WAAY,8BAA8B;IACxC,+EAA6C,CAAA;AAC/C,CAAC,EAFW,8BAA8B,GAA9B,8BAA8B,KAA9B,8BAA8B,QAEzC;AAED,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAC/C,CAAC,8BAA8B,CAAC,WAAW,CAAC,EAAE;QAC5C,YAAY,EAAE,8BAA8B,CAAC,YAAY;KAC1D;CACF,CAAC"}
|
|
@@ -13,8 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { type GraphManagerOperationReport } from '@finos/legend-graph';
|
|
17
|
-
import type { TimingsRecord } from '@finos/legend-shared';
|
|
18
16
|
import type { GenericLegendApplicationStore } from '../stores/ApplicationStore.js';
|
|
19
17
|
import type { TelemetryService } from '../stores/TelemetryService.js';
|
|
20
18
|
type ApplicationContextAccessed_TelemetryData = {
|
|
@@ -23,19 +21,10 @@ type ApplicationContextAccessed_TelemetryData = {
|
|
|
23
21
|
type VirtualAssistantDocumentationEntryAccessed_TelemetryData = {
|
|
24
22
|
key: string;
|
|
25
23
|
};
|
|
26
|
-
type GraphInitialized_TelemetryData = {
|
|
27
|
-
timings: TimingsRecord;
|
|
28
|
-
dependencies: GraphManagerOperationReport;
|
|
29
|
-
dependenciesCount: number;
|
|
30
|
-
graph: GraphManagerOperationReport;
|
|
31
|
-
generations?: GraphManagerOperationReport;
|
|
32
|
-
generationCount?: number;
|
|
33
|
-
};
|
|
34
24
|
export declare class LegendApplicationTelemetryHelper {
|
|
35
25
|
static logEvent_ApplicationInitializationSucceeded(telemetryService: TelemetryService, applicationStore: GenericLegendApplicationStore): void;
|
|
36
26
|
static logEvent_ApplicationContextAccessed(telemetryService: TelemetryService, data: ApplicationContextAccessed_TelemetryData): void;
|
|
37
27
|
static logEvent_VirtualAssistantDocumentationEntryAccessed(telemetryService: TelemetryService, data: VirtualAssistantDocumentationEntryAccessed_TelemetryData): void;
|
|
38
|
-
static logEvent_GraphInitializationSucceeded(telemetryService: TelemetryService, data: GraphInitialized_TelemetryData): void;
|
|
39
28
|
static logEvent_ApplicationUsageInterrupted(telemetryService: TelemetryService): void;
|
|
40
29
|
}
|
|
41
30
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendApplicationTelemetry.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendApplicationTelemetry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AACnF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,KAAK,wCAAwC,GAAG;IAC9C,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,KAAK,wDAAwD,GAAG;IAC9D,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,qBAAa,gCAAgC;IAC3C,MAAM,CAAC,2CAA2C,CAChD,gBAAgB,EAAE,gBAAgB,EAClC,gBAAgB,EAAE,6BAA6B,GAC9C,IAAI;IAiBP,MAAM,CAAC,mCAAmC,CACxC,gBAAgB,EAAE,gBAAgB,EAClC,IAAI,EAAE,wCAAwC,GAC7C,IAAI;IAOP,MAAM,CAAC,mDAAmD,CACxD,gBAAgB,EAAE,gBAAgB,EAClC,IAAI,EAAE,wDAAwD,GAC7D,IAAI;IAOP,MAAM,CAAC,oCAAoC,CACzC,gBAAgB,EAAE,gBAAgB,GACjC,IAAI;CAMR"}
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { GRAPH_MANAGER_EVENT, } from '@finos/legend-graph';
|
|
17
16
|
import { APPLICATION_EVENT } from './LegendApplicationEvent.js';
|
|
18
17
|
export class LegendApplicationTelemetryHelper {
|
|
19
18
|
static logEvent_ApplicationInitializationSucceeded(telemetryService, applicationStore) {
|
|
@@ -38,9 +37,6 @@ export class LegendApplicationTelemetryHelper {
|
|
|
38
37
|
static logEvent_VirtualAssistantDocumentationEntryAccessed(telemetryService, data) {
|
|
39
38
|
telemetryService.logEvent(APPLICATION_EVENT.VIRTUAL_ASSISTANT_DOCUMENTATION_ENTRY__ACCESS, data);
|
|
40
39
|
}
|
|
41
|
-
static logEvent_GraphInitializationSucceeded(telemetryService, data) {
|
|
42
|
-
telemetryService.logEvent(GRAPH_MANAGER_EVENT.INITIALIZE_GRAPH__SUCCESS, data);
|
|
43
|
-
}
|
|
44
40
|
static logEvent_ApplicationUsageInterrupted(telemetryService) {
|
|
45
41
|
telemetryService.logEvent(APPLICATION_EVENT.APPLICATION_USAGE__INTERRUPT, {});
|
|
46
42
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendApplicationTelemetry.js","sourceRoot":"","sources":["../../src/__lib__/LegendApplicationTelemetry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAYhE,MAAM,OAAO,gCAAgC;IAC3C,MAAM,CAAC,2CAA2C,CAChD,gBAAkC,EAClC,gBAA+C;QAE/C,gBAAgB,CAAC,QAAQ,CAAC,iBAAiB,CAAC,yBAAyB,EAAE;YACrE,WAAW,EAAE;gBACX,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,OAAO;gBACrC,OAAO,EAAE,gBAAgB,CAAC,MAAM,CAAC,UAAU;gBAC3C,GAAG,EAAE,gBAAgB,CAAC,MAAM,CAAC,GAAG;aACjC;YACD,OAAO,EAAE;gBACP,SAAS,EAAE,SAAS,CAAC,SAAS;aAC/B;YACD,MAAM,EAAE;gBACN,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM;gBAC5B,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK;aAC3B;SACF,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,mCAAmC,CACxC,gBAAkC,EAClC,IAA8C;QAE9C,gBAAgB,CAAC,QAAQ,CACvB,iBAAiB,CAAC,2BAA2B,EAC7C,IAAI,CACL,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,mDAAmD,CACxD,gBAAkC,EAClC,IAA8D;QAE9D,gBAAgB,CAAC,QAAQ,CACvB,iBAAiB,CAAC,6CAA6C,EAC/D,IAAI,CACL,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,oCAAoC,CACzC,gBAAkC;QAElC,gBAAgB,CAAC,QAAQ,CACvB,iBAAiB,CAAC,4BAA4B,EAC9C,EAAE,CACH,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendApplicationTheme.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendApplicationTheme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAE7D,oBAAY,8BAA8B;IACxC,YAAY,iBAAiB;IAC7B,YAAY,iBAAiB;IAC7B,mBAAmB,aAAa;CACjC;AAED,eAAO,MAAM,wBAAwB,EAAE,UAItC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,UAItC,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,UAI7C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendApplicationTheme.js","sourceRoot":"","sources":["../../src/__lib__/LegendApplicationTheme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,MAAM,CAAN,IAAY,8BAIX;AAJD,WAAY,8BAA8B;IACxC,+DAA6B,CAAA;IAC7B,+DAA6B,CAAA;IAC7B,kEAAgC,CAAA;AAClC,CAAC,EAJW,8BAA8B,GAA9B,8BAA8B,KAA9B,8BAA8B,QAIzC;AAED,MAAM,CAAC,MAAM,wBAAwB,GAAe;IAClD,IAAI,EAAE,wBAAwB;IAC9B,GAAG,EAAE,8BAA8B,CAAC,YAAY;IAChD,6BAA6B,EAAE,qBAAqB;CACrD,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAe;IAClD,IAAI,EAAE,cAAc;IACpB,GAAG,EAAE,8BAA8B,CAAC,YAAY;IAChD,6BAA6B,EAAE,qBAAqB;CACrD,CAAC;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAAe;IACzD,IAAI,EAAE,qBAAqB;IAC3B,GAAG,EAAE,8BAA8B,CAAC,mBAAmB;IACvD,6BAA6B,EAAE,iBAAiB;CACjD,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export * from './components/__test-utils__/BrowserEnvironmentTestUtils.js';
|
|
17
|
+
export * from './stores/__test-utils__/ApplicationStoreTestUtils.js';
|
|
18
|
+
//# sourceMappingURL=__test__.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"__test__.d.ts","sourceRoot":"","sources":["../src/__test__.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,4DAA4D,CAAC;AAC3E,cAAc,sDAAsD,CAAC"}
|
package/lib/__test__.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export * from './components/__test-utils__/BrowserEnvironmentTestUtils.js';
|
|
17
|
+
export * from './stores/__test-utils__/ApplicationStoreTestUtils.js';
|
|
18
|
+
//# sourceMappingURL=__test__.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"__test__.js","sourceRoot":"","sources":["../src/__test__.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,4DAA4D,CAAC;AAC3E,cAAc,sDAAsD,CAAC"}
|
|
@@ -18,6 +18,7 @@ import { type AbstractPlugin, type AbstractPreset, LogEvent, type ExtensionsConf
|
|
|
18
18
|
import type { LegendApplicationPluginManager } from './LegendApplicationPluginManager.js';
|
|
19
19
|
import { type DocumentationEntryData } from '../stores/DocumentationService.js';
|
|
20
20
|
import type { LegendApplicationPlugin } from '../stores/LegendApplicationPlugin.js';
|
|
21
|
+
import { ApplicationStore } from '../stores/ApplicationStore.js';
|
|
21
22
|
export declare abstract class LegendApplicationLogger {
|
|
22
23
|
abstract debug(event: LogEvent, ...data: unknown[]): void;
|
|
23
24
|
abstract info(event: LogEvent, ...data: unknown[]): void;
|
|
@@ -31,7 +32,7 @@ export declare class LegendApplicationWebConsole extends LegendApplicationLogger
|
|
|
31
32
|
error(event: LogEvent, ...data: unknown[]): void;
|
|
32
33
|
}
|
|
33
34
|
export interface LegendApplicationConfigurationInput<T extends LegendApplicationConfigurationData> {
|
|
34
|
-
|
|
35
|
+
baseAddress: string;
|
|
35
36
|
configData: T;
|
|
36
37
|
versionData: LegendApplicationVersionData;
|
|
37
38
|
docEntries?: Record<string, DocumentationEntryData>;
|
|
@@ -42,13 +43,13 @@ export declare abstract class LegendApplication {
|
|
|
42
43
|
protected pluginManager: LegendApplicationPluginManager<LegendApplicationPlugin>;
|
|
43
44
|
protected basePresets: AbstractPreset[];
|
|
44
45
|
protected basePlugins: AbstractPlugin[];
|
|
45
|
-
protected
|
|
46
|
+
protected baseAddress: string;
|
|
46
47
|
protected pluginRegister?: ((pluginManager: LegendApplicationPluginManager<LegendApplicationPlugin>, config: LegendApplicationConfig) => void) | undefined;
|
|
47
48
|
protected _isConfigured: boolean;
|
|
48
49
|
protected constructor(pluginManager: LegendApplicationPluginManager<LegendApplicationPlugin>);
|
|
49
50
|
setup(options: {
|
|
50
51
|
/** Base URL of the application. e.g. /studio/, /query/ */
|
|
51
|
-
|
|
52
|
+
baseAddress: string;
|
|
52
53
|
/**
|
|
53
54
|
* Provide an alternative mechanism to register and configure plugins and presets
|
|
54
55
|
* which is more flexible by allowing configuring specific plugin or preset.
|
|
@@ -62,7 +63,9 @@ export declare abstract class LegendApplication {
|
|
|
62
63
|
fetchApplicationConfiguration(baseUrl: string): Promise<[LegendApplicationConfig, ExtensionsConfigurationData]>;
|
|
63
64
|
loadDocumentationRegistryData(config: LegendApplicationConfig): Promise<void>;
|
|
64
65
|
protected abstract configureApplication(input: LegendApplicationConfigurationInput<LegendApplicationConfigurationData>): Promise<LegendApplicationConfig>;
|
|
65
|
-
protected abstract loadApplication(): Promise<void>;
|
|
66
|
+
protected abstract loadApplication(applicationStore: ApplicationStore<LegendApplicationConfig, LegendApplicationPluginManager<LegendApplicationPlugin>>): Promise<void>;
|
|
66
67
|
start(): Promise<void>;
|
|
67
68
|
}
|
|
69
|
+
export declare const LEGEND_APPLICATION_ROOT_ELEMENT_TAG = "legend-application-root";
|
|
70
|
+
export declare const getApplicationRootElement: () => Element;
|
|
68
71
|
//# sourceMappingURL=LegendApplication.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendApplication.d.ts","sourceRoot":"","sources":["../../src/application/LegendApplication.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,uBAAuB,EACvB,kCAAkC,EAClC,4BAA4B,EAC7B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,cAAc,EAEnB,QAAQ,EAKR,KAAK,2BAA2B,EAEjC,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAC1F,OAAO,EAEL,KAAK,sBAAsB,EAG5B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"LegendApplication.d.ts","sourceRoot":"","sources":["../../src/application/LegendApplication.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,uBAAuB,EACvB,kCAAkC,EAClC,4BAA4B,EAC7B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,cAA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C,CAAC;IA8C5D,6BAA6B,CACjC,MAAM,EAAE,uBAAuB,GAC9B,OAAO,CAAC,IAAI,CAAC;IAmEhB,SAAS,CAAC,QAAQ,CAAC,oBAAoB,CACrC,KAAK,EAAE,mCAAmC,CAAC,kCAAkC,CAAC,GAC7E,OAAO,CAAC,uBAAuB,CAAC;IAEnC,SAAS,CAAC,QAAQ,CAAC,eAAe,CAChC,gBAAgB,EAAE,gBAAgB,CAChC,uBAAuB,EACvB,8BAA8B,CAAC,uBAAuB,CAAC,CACxD,GACA,OAAO,CAAC,IAAI,CAAC;IAEV,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAkD7B;AAED,eAAO,MAAM,mCAAmC,4BAA4B,CAAC;AAG7E,eAAO,MAAM,yBAAyB,QAAO,OAY5C,CAAC"}
|
|
@@ -14,8 +14,9 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { assertErrorThrown, LogEvent, guaranteeNonEmptyString, assertNonNullable, NetworkClient, createRegExpPatternFromWildcardPattern, } from '@finos/legend-shared';
|
|
17
|
-
import { APPLICATION_EVENT } from '
|
|
17
|
+
import { APPLICATION_EVENT } from '../__lib__/LegendApplicationEvent.js';
|
|
18
18
|
import { collectKeyedDocumentationEntriesFromConfig, } from '../stores/DocumentationService.js';
|
|
19
|
+
import { ApplicationStore } from '../stores/ApplicationStore.js';
|
|
19
20
|
export class LegendApplicationLogger {
|
|
20
21
|
}
|
|
21
22
|
export class LegendApplicationWebConsole extends LegendApplicationLogger {
|
|
@@ -42,7 +43,7 @@ export class LegendApplication {
|
|
|
42
43
|
pluginManager;
|
|
43
44
|
basePresets = [];
|
|
44
45
|
basePlugins = [];
|
|
45
|
-
|
|
46
|
+
baseAddress;
|
|
46
47
|
pluginRegister;
|
|
47
48
|
_isConfigured = false;
|
|
48
49
|
constructor(pluginManager) {
|
|
@@ -50,7 +51,7 @@ export class LegendApplication {
|
|
|
50
51
|
this.logger = new LegendApplicationWebConsole();
|
|
51
52
|
}
|
|
52
53
|
setup(options) {
|
|
53
|
-
this.
|
|
54
|
+
this.baseAddress = guaranteeNonEmptyString(options.baseAddress, `Can't setup application: 'baseAddress' is missing or empty`);
|
|
54
55
|
this.pluginRegister = options.pluginRegister;
|
|
55
56
|
this._isConfigured = true;
|
|
56
57
|
return this;
|
|
@@ -97,7 +98,7 @@ export class LegendApplication {
|
|
|
97
98
|
await this.configureApplication({
|
|
98
99
|
configData,
|
|
99
100
|
versionData,
|
|
100
|
-
baseUrl,
|
|
101
|
+
baseAddress: baseUrl,
|
|
101
102
|
}),
|
|
102
103
|
configData.extensions ?? {},
|
|
103
104
|
];
|
|
@@ -150,22 +151,25 @@ export class LegendApplication {
|
|
|
150
151
|
async start() {
|
|
151
152
|
assertNonNullable(this._isConfigured, 'Legend application has not been configured properly. Make sure to run setup() before start()');
|
|
152
153
|
try {
|
|
153
|
-
//
|
|
154
|
-
const [config, extensionConfigData] = await this.fetchApplicationConfiguration(this.
|
|
154
|
+
// fetch application config
|
|
155
|
+
const [config, extensionConfigData] = await this.fetchApplicationConfiguration(this.baseAddress);
|
|
155
156
|
this.config = config;
|
|
156
|
-
//
|
|
157
|
+
// setup plugins
|
|
157
158
|
this.pluginRegister?.(this.pluginManager, this.config);
|
|
158
159
|
this.pluginManager.configure(extensionConfigData);
|
|
159
160
|
this.pluginManager.install();
|
|
160
|
-
//
|
|
161
|
+
// other setups
|
|
161
162
|
await Promise.all(
|
|
162
163
|
// NOTE: to be done in parallel to save time
|
|
163
164
|
[this.loadDocumentationRegistryData(config)]);
|
|
165
|
+
// setup application store
|
|
166
|
+
const applicationStore = new ApplicationStore(this.config, this.pluginManager);
|
|
164
167
|
await Promise.all(this.pluginManager
|
|
165
168
|
.getApplicationPlugins()
|
|
166
|
-
.flatMap((plugin) => plugin.
|
|
167
|
-
.map((
|
|
168
|
-
|
|
169
|
+
.flatMap((plugin) => plugin.getExtraApplicationSetups?.() ?? [])
|
|
170
|
+
.map((setup) => setup(applicationStore)));
|
|
171
|
+
// load application
|
|
172
|
+
await this.loadApplication(applicationStore);
|
|
169
173
|
this.logger.info(LogEvent.create(APPLICATION_EVENT.APPLICATION_LOAD__SUCCESS), 'Legend application loaded');
|
|
170
174
|
}
|
|
171
175
|
catch (error) {
|
|
@@ -175,4 +179,17 @@ export class LegendApplication {
|
|
|
175
179
|
}
|
|
176
180
|
}
|
|
177
181
|
}
|
|
182
|
+
export const LEGEND_APPLICATION_ROOT_ELEMENT_TAG = 'legend-application-root';
|
|
183
|
+
// NOTE: we use a special tag to mount the application to avoid styling conflicts
|
|
184
|
+
export const getApplicationRootElement = () => {
|
|
185
|
+
let rootEl = document.getElementsByTagName(LEGEND_APPLICATION_ROOT_ELEMENT_TAG).length
|
|
186
|
+
? document.getElementsByTagName(LEGEND_APPLICATION_ROOT_ELEMENT_TAG)[0]
|
|
187
|
+
: undefined;
|
|
188
|
+
if (!rootEl) {
|
|
189
|
+
rootEl = document.createElement(LEGEND_APPLICATION_ROOT_ELEMENT_TAG);
|
|
190
|
+
document.body.appendChild(rootEl);
|
|
191
|
+
}
|
|
192
|
+
rootEl.setAttribute('style', 'height: 100%; width: 100%; display: block');
|
|
193
|
+
return rootEl;
|
|
194
|
+
};
|
|
178
195
|
//# sourceMappingURL=LegendApplication.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendApplication.js","sourceRoot":"","sources":["../../src/application/LegendApplication.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,OAAO,EAGL,iBAAiB,EACjB,QAAQ,EACR,uBAAuB,EACvB,iBAAiB,EACjB,aAAa,EAGb,sCAAsC,GACvC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"LegendApplication.js","sourceRoot":"","sources":["../../src/application/LegendApplication.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,OAAO,EAGL,iBAAiB,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,EAAE,IAAI,EAAE,CAAC;iBAC/D,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAC3C,CAAC;YAEF,mBAAmB;YACnB,MAAM,IAAI,CAAC,eAAe,CAAC,gBAAgB,CAAC,CAAC;YAE7C,IAAI,CAAC,MAAM,CAAC,IAAI,CACd,QAAQ,CAAC,MAAM,CAAC,iBAAiB,CAAC,yBAAyB,CAAC,EAC5D,2BAA2B,CAC5B,CAAC;SACH;QAAC,OAAO,KAAK,EAAE;YACd,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,MAAM,CAAC,KAAK,CACf,QAAQ,CAAC,MAAM,CAAC,iBAAiB,CAAC,yBAAyB,CAAC,EAC5D,mCAAmC,CACpC,CAAC;YACF,MAAM,KAAK,CAAC;SACb;IACH,CAAC;CACF;AAED,MAAM,CAAC,MAAM,mCAAmC,GAAG,yBAAyB,CAAC;AAE7E,iFAAiF;AACjF,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAY,EAAE;IACrD,IAAI,MAAM,GAAG,QAAQ,CAAC,oBAAoB,CACxC,mCAAmC,CACpC,CAAC,MAAM;QACN,CAAC,CAAC,QAAQ,CAAC,oBAAoB,CAAC,mCAAmC,CAAC,CAAC,CAAC,CAAC;QACvE,CAAC,CAAC,SAAS,CAAC;IACd,IAAI,CAAC,MAAM,EAAE;QACX,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,mCAAmC,CAAC,CAAC;QACrE,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;KACnC;IACD,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,2CAA2C,CAAC,CAAC;IAC1E,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import { type ExtensionsConfigurationData } from '@finos/legend-shared';
|
|
17
17
|
import type { LegendApplicationConfigurationInput } from './LegendApplication.js';
|
|
18
18
|
import { type KeyedDocumentationEntry, type DocumentationEntryData, type ContextualDocumentationConfig, type ContextualDocumentationEntry, type DocumentationRegistryEntry } from '../stores/DocumentationService.js';
|
|
19
|
+
import type { SettingOverrideConfigData } from '../stores/SettingService.js';
|
|
19
20
|
export interface LegendApplicationVersionData {
|
|
20
21
|
buildTime: string;
|
|
21
22
|
version: string;
|
|
@@ -30,12 +31,17 @@ export interface LegendApplicationConfigurationData {
|
|
|
30
31
|
entries?: Record<string, DocumentationEntryData>;
|
|
31
32
|
contextualEntries?: ContextualDocumentationConfig;
|
|
32
33
|
};
|
|
34
|
+
application?: {
|
|
35
|
+
storageKey?: string;
|
|
36
|
+
settingsOverrides?: SettingOverrideConfigData;
|
|
37
|
+
};
|
|
33
38
|
extensions?: ExtensionsConfigurationData;
|
|
34
39
|
}
|
|
35
40
|
export declare abstract class LegendApplicationConfig {
|
|
36
41
|
readonly appName: string;
|
|
37
|
-
readonly
|
|
42
|
+
readonly baseAddress: string;
|
|
38
43
|
readonly env: string;
|
|
44
|
+
readonly applicationStorageKey: string;
|
|
39
45
|
readonly documentationUrl?: string | undefined;
|
|
40
46
|
readonly documentationRegistryEntries: DocumentationRegistryEntry[];
|
|
41
47
|
readonly keyedDocumentationEntries: KeyedDocumentationEntry[];
|
|
@@ -45,5 +51,6 @@ export declare abstract class LegendApplicationConfig {
|
|
|
45
51
|
readonly appVersionCommitId: string;
|
|
46
52
|
constructor(input: LegendApplicationConfigurationInput<LegendApplicationConfigurationData>);
|
|
47
53
|
protected static resolveAbsoluteUrl(url: string): string;
|
|
54
|
+
abstract getDefaultApplicationStorageKey(): string;
|
|
48
55
|
}
|
|
49
56
|
//# sourceMappingURL=LegendApplicationConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendApplicationConfig.d.ts","sourceRoot":"","sources":["../../src/application/LegendApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,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CAAC;KAC/C,CAAC;IAIF,UAAU,CAAC,EAAE,2BAA2B,CAAC;CAC1C;AAED,8BAAsB,uBAAuB;IAC3C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;IAGvC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/C,QAAQ,CAAC,4BAA4B,EAAE,0BAA0B,EAAE,CAAM;IACzE,QAAQ,CAAC,yBAAyB,EAAE,uBAAuB,EAAE,CAAM;IACnE,QAAQ,CAAC,oBAAoB,EAAE,4BAA4B,EAAE,CAAM;IAGnE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;gBAGlC,KAAK,EAAE,mCAAmC,CAAC,kCAAkC,CAAC;IAyChF,SAAS,CAAC,MAAM,CAAC,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAOxD,QAAQ,CAAC,+BAA+B,IAAI,MAAM;CACnD"}
|
|
@@ -17,8 +17,9 @@ import { guaranteeNonEmptyString, guaranteeNonNullable, URL_SEPARATOR, } from '@
|
|
|
17
17
|
import { collectKeyedDocumentationEntriesFromConfig, collectContextualDocumentationEntries, } from '../stores/DocumentationService.js';
|
|
18
18
|
export class LegendApplicationConfig {
|
|
19
19
|
appName;
|
|
20
|
-
|
|
20
|
+
baseAddress;
|
|
21
21
|
env;
|
|
22
|
+
applicationStorageKey;
|
|
22
23
|
// documentation
|
|
23
24
|
documentationUrl;
|
|
24
25
|
documentationRegistryEntries = [];
|
|
@@ -29,9 +30,12 @@ export class LegendApplicationConfig {
|
|
|
29
30
|
appVersionBuildTime;
|
|
30
31
|
appVersionCommitId;
|
|
31
32
|
constructor(input) {
|
|
32
|
-
this.
|
|
33
|
+
this.baseAddress = input.baseAddress;
|
|
33
34
|
this.appName = guaranteeNonEmptyString(input.configData.appName, `Can't configure application: 'appName' field is missing or empty`);
|
|
34
35
|
this.env = guaranteeNonEmptyString(input.configData.env, `Can't configure application: 'env' field is missing or empty`);
|
|
36
|
+
this.applicationStorageKey =
|
|
37
|
+
input.configData.application?.storageKey ??
|
|
38
|
+
this.getDefaultApplicationStorageKey();
|
|
35
39
|
// Documentation
|
|
36
40
|
this.documentationUrl = input.configData.documentation?.url;
|
|
37
41
|
this.documentationRegistryEntries =
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendApplicationConfig.js","sourceRoot":"","sources":["../../src/application/LegendApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EAEpB,aAAa,GACd,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,0CAA0C,EAC1C,qCAAqC,GAMtC,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"LegendApplicationConfig.js","sourceRoot":"","sources":["../../src/application/LegendApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EAEpB,aAAa,GACd,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,0CAA0C,EAC1C,qCAAqC,GAMtC,MAAM,mCAAmC,CAAC;AA4B3C,MAAM,OAAgB,uBAAuB;IAClC,OAAO,CAAS;IAChB,WAAW,CAAS;IACpB,GAAG,CAAS;IACZ,qBAAqB,CAAS;IAEvC,gBAAgB;IACP,gBAAgB,CAAsB;IACtC,4BAA4B,GAAiC,EAAE,CAAC;IAChE,yBAAyB,GAA8B,EAAE,CAAC;IAC1D,oBAAoB,GAAmC,EAAE,CAAC;IAEnE,UAAU;IACD,UAAU,CAAS;IACnB,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GAAG,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE;YACxC,OAAO,MAAM,CAAC,QAAQ,CAAC,MAAM,GAAG,GAAG,CAAC;SACrC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;CAGF"}
|
package/lib/browser.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export * from './components/BrowserEnvironmentProvider.js';
|
|
17
|
+
export * from './stores/platform/BrowserPlatform.js';
|
|
18
|
+
export * from './stores/navigation/BrowserNavigator.js';
|
|
19
|
+
//# sourceMappingURL=browser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,yCAAyC,CAAC"}
|
package/lib/browser.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export * from './components/BrowserEnvironmentProvider.js';
|
|
17
|
+
export * from './stores/platform/BrowserPlatform.js';
|
|
18
|
+
export * from './stores/navigation/BrowserNavigator.js';
|
|
19
|
+
//# sourceMappingURL=browser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,yCAAyC,CAAC"}
|
|
@@ -31,9 +31,9 @@ export declare const forceDispatchKeyboardEvent: (event: KeyboardEvent, applicat
|
|
|
31
31
|
export declare const BackdropContainer: React.FC<{
|
|
32
32
|
elementId: string;
|
|
33
33
|
}>;
|
|
34
|
-
export declare const
|
|
34
|
+
export declare const ApplicationComponentFrameworkProvider: ((props: {
|
|
35
35
|
children: React.ReactNode;
|
|
36
36
|
}) => JSX.Element) & {
|
|
37
37
|
displayName: string;
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=
|
|
39
|
+
//# sourceMappingURL=ApplicationComponentFrameworkProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplicationComponentFrameworkProvider.d.ts","sourceRoot":"","sources":["../../src/components/ApplicationComponentFrameworkProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAiBH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AA4DnF;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,UAC9B,aAAa,sDAEnB,IAIF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAE7D,CAAC;AAEF,eAAO,MAAM,qCAAqC,WACxC;IAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;CAAE;;CAqGtC,CAAC"}
|
|
@@ -25,7 +25,7 @@ import { NotificationManager } from './NotificationManager.js';
|
|
|
25
25
|
import { useEffect } from 'react';
|
|
26
26
|
import { createKeybindingsHandler, } from '@finos/legend-shared';
|
|
27
27
|
import { VirtualAssistant } from './VirtualAssistant.js';
|
|
28
|
-
import { LegendApplicationTelemetryHelper } from '../
|
|
28
|
+
import { LegendApplicationTelemetryHelper } from '../__lib__/LegendApplicationTelemetry.js';
|
|
29
29
|
var APPLICATION_COMPONENT_ELEMENT_ID;
|
|
30
30
|
(function (APPLICATION_COMPONENT_ELEMENT_ID) {
|
|
31
31
|
APPLICATION_COMPONENT_ELEMENT_ID["TOP_LEVEL_CONTAINER"] = "application.top-level-container";
|
|
@@ -91,7 +91,7 @@ export const forceDispatchKeyboardEvent = (event, applicationStore) => {
|
|
|
91
91
|
* so that it properly lies under the content that we pick to show on top of the backdrop
|
|
92
92
|
*/
|
|
93
93
|
export const BackdropContainer = (props) => (_jsx("div", { className: "backdrop__container", "data-elementid": props.elementId }));
|
|
94
|
-
export const
|
|
94
|
+
export const ApplicationComponentFrameworkProvider = observer((props) => {
|
|
95
95
|
const { children } = props;
|
|
96
96
|
const applicationStore = useApplicationStore();
|
|
97
97
|
const disableContextMenu = (event) => {
|
|
@@ -148,4 +148,4 @@ export const LegendApplicationComponentFrameworkProvider = observer((props) => {
|
|
|
148
148
|
// Disable global context menu so that only places in the app that supports context-menu will be effective
|
|
149
149
|
onContextMenu: disableContextMenu, children: [_jsx(BackdropContainer, { elementId: APPLICATION_COMPONENT_ELEMENT_ID.BACKDROP_CONTAINER }), children] }) })] }));
|
|
150
150
|
});
|
|
151
|
-
//# sourceMappingURL=
|
|
151
|
+
//# sourceMappingURL=ApplicationComponentFrameworkProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplicationComponentFrameworkProvider.js","sourceRoot":"","sources":["../../src/components/ApplicationComponentFrameworkProvider.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EACL,wBAAwB,GAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AAG5F,IAAK,gCAGJ;AAHD,WAAK,gCAAgC;IACnC,2FAAuD,CAAA;IACvD,yFAAqD,CAAA;AACvD,CAAC,EAHI,gCAAgC,KAAhC,gCAAgC,QAGpC;AAED,MAAM,kCAAkC,GAAG;IACzC,WAAW;IACX,cAAc;IACd,WAAW;IACX,cAAc;IAEd,IAAI;IACJ,KAAK;IACL,KAAK;IACL,iBAAiB;IACjB,mBAAmB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AE,CAAC;aACxD;QACH,CAAC,CAAC;QACF,QAAQ,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;QAClE,OAAO,GAAG,EAAE;YACV,QAAQ,CAAC,mBAAmB,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;QACvE,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAEvB,OAAO,CACL,MAAC,mBAAmB,eAClB,KAAC,aAAa,KAAG,EACjB,KAAC,WAAW,KAAG,EACf,KAAC,mBAAmB,KAAG,EACvB,KAAC,gBAAgB,KAAG,EACnB,gBAAgB,CAAC,aAAa,CAAC,YAAY,IAAI;YAC9C,0EAA0E;YAC1E,6EAA6E;YAC7E,kBAAkB;YAClB,8EAA8E;YAC9E,iFAAiF;YACjF,qDAAqD;YACrD,KAAC,MAAM,IACL,SAAS,EACP,gBAAgB,CAAC,aAAa,CAAC,cAAc,CAC3C,gBAAgB,CAAC,aAAa,CAAC,0BAA0B;oBACvD,gCAAgC,CAAC,kBAAkB,CACtD,IAAI,IAAI,YAGX,KAAC,QAAQ,IACP,SAAS,EAAC,UAAU,EACpB,IAAI,EAAE,gBAAgB,CAAC,aAAa,CAAC,YAAY,GACjD,GACK,CACV,EACD,KAAC,WAAW,IAAC,OAAO,EAAE,YAAY,YAChC,eACE,SAAS,EAAC,gBAAgB,oBAIxB,gCAAgC,CAAC,mBAAmB;oBAEtD,0GAA0G;oBAC1G,aAAa,EAAE,kBAAkB,aAEjC,KAAC,iBAAiB,IAChB,SAAS,EAAE,gCAAgC,CAAC,kBAAkB,GAC9D,EACD,QAAQ,IACL,GACM,IACM,CACvB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export declare const ApplicationFrameworkProvider: ((props: {
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
}) => React.ReactElement) & {
|
|
19
|
+
displayName: string;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=ApplicationFrameworkProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplicationFrameworkProvider.d.ts","sourceRoot":"","sources":["../../src/components/ApplicationFrameworkProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAQH,eAAO,MAAM,4BAA4B,WAC/B;IAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;CAAE,KAAG,MAAM,YAAY;;CAuB3D,CAAC"}
|