@finos/legend-application 0.2.2 → 1.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/CHANGELOG.md +8 -0
- package/lib/application/LegendApplication.d.ts +23 -11
- package/lib/application/LegendApplication.d.ts.map +1 -1
- package/lib/application/LegendApplication.js +28 -14
- package/lib/application/LegendApplication.js.map +1 -1
- package/lib/application/LegendApplicationPluginManager.d.ts +32 -0
- package/lib/application/LegendApplicationPluginManager.d.ts.map +1 -0
- package/lib/application/LegendApplicationPluginManager.js +47 -0
- package/lib/application/LegendApplicationPluginManager.js.map +1 -0
- package/lib/components/ApplicationStoreProvider.d.ts +3 -5
- package/lib/components/ApplicationStoreProvider.d.ts.map +1 -1
- package/lib/components/ApplicationStoreProvider.js +4 -2
- package/lib/components/ApplicationStoreProvider.js.map +1 -1
- package/lib/components/ApplicationStoreProviderTestUtils.d.ts +4 -2
- package/lib/components/ApplicationStoreProviderTestUtils.d.ts.map +1 -1
- package/lib/components/ApplicationStoreProviderTestUtils.js +3 -4
- package/lib/components/ApplicationStoreProviderTestUtils.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/stores/ApplicationStore.d.ts +8 -3
- package/lib/stores/ApplicationStore.d.ts.map +1 -1
- package/lib/stores/ApplicationStore.js +11 -4
- package/lib/stores/ApplicationStore.js.map +1 -1
- package/lib/stores/ApplicationStoreTestUtils.d.ts +2 -1
- package/lib/stores/ApplicationStoreTestUtils.d.ts.map +1 -1
- package/lib/stores/ApplicationStoreTestUtils.js +1 -2
- package/lib/stores/ApplicationStoreTestUtils.js.map +1 -1
- package/lib/stores/WebApplicationNavigator.d.ts +7 -0
- package/lib/stores/WebApplicationNavigator.d.ts.map +1 -1
- package/lib/stores/WebApplicationNavigator.js.map +1 -1
- package/package.json +9 -9
- package/src/application/LegendApplication.tsx +57 -27
- package/src/application/LegendApplicationPluginManager.tsx +73 -0
- package/src/components/ApplicationStoreProvider.tsx +6 -7
- package/src/components/ApplicationStoreProviderTestUtils.tsx +6 -7
- package/src/index.ts +1 -2
- package/src/stores/ApplicationStore.ts +26 -4
- package/src/stores/ApplicationStoreTestUtils.ts +3 -2
- package/src/stores/WebApplicationNavigator.ts +7 -0
- package/tsconfig.json +1 -1
- package/lib/network/TelemetryEvent.d.ts +0 -19
- package/lib/network/TelemetryEvent.d.ts.map +0 -1
- package/lib/network/TelemetryEvent.js +0 -20
- package/lib/network/TelemetryEvent.js.map +0 -1
- package/src/network/TelemetryEvent.ts +0 -19
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @finos/legend-application
|
|
2
2
|
|
|
3
|
+
## 1.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#707](https://github.com/finos/legend-studio/pull/707) [`5d9912d9`](https://github.com/finos/legend-studio/commit/5d9912d9a2c883e23d8852325a25fe59ae7597b1) ([@akphi](https://github.com/akphi)) - **BREAKING CHANGE:** Loggers are now considered as plugins, as such, we nolonger expose `.withLoggers()` when booting the application.
|
|
8
|
+
|
|
9
|
+
* [#707](https://github.com/finos/legend-studio/pull/707) [`5d9912d9`](https://github.com/finos/legend-studio/commit/5d9912d9a2c883e23d8852325a25fe59ae7597b1) ([@akphi](https://github.com/akphi)) - **BREAKING CHANGE:** Create a new abstract class `LegendApplicationPluginManager` that contains plugins that is relevant at application level, such as `telemetry`, `tracer`, `logger`, etc. Now all specific Legend applications plugin manager must extend this class, e.g. `LegendStudioPluginManager extends LegendApplicationPluginManager`.
|
|
10
|
+
|
|
3
11
|
## 0.2.2
|
|
4
12
|
|
|
5
13
|
## 0.2.1
|
|
@@ -14,35 +14,47 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { LegendApplicationConfig, LegendApplicationConfigurationData, LegendApplicationVersionData } from '../stores/ApplicationConfig';
|
|
17
|
-
import type { AbstractPlugin,
|
|
18
|
-
import {
|
|
17
|
+
import type { AbstractPlugin, AbstractPreset } from '@finos/legend-shared';
|
|
18
|
+
import { LogEvent } from '@finos/legend-shared';
|
|
19
19
|
import type { GraphPluginManager } from '@finos/legend-graph';
|
|
20
|
+
import type { LegendApplicationPluginManager } from './LegendApplicationPluginManager';
|
|
21
|
+
export declare abstract class LegendApplicationLogger {
|
|
22
|
+
abstract debug(event: LogEvent, ...data: unknown[]): void;
|
|
23
|
+
abstract info(event: LogEvent, ...data: unknown[]): void;
|
|
24
|
+
abstract warn(event: LogEvent, ...data: unknown[]): void;
|
|
25
|
+
abstract error(event: LogEvent, ...data: unknown[]): void;
|
|
26
|
+
}
|
|
27
|
+
export declare class LegendApplicationWebConsole extends LegendApplicationLogger {
|
|
28
|
+
debug(event: LogEvent, ...data: unknown[]): void;
|
|
29
|
+
info(event: LogEvent, ...data: unknown[]): void;
|
|
30
|
+
warn(event: LogEvent, ...data: unknown[]): void;
|
|
31
|
+
error(event: LogEvent, ...data: unknown[]): void;
|
|
32
|
+
}
|
|
20
33
|
export declare const setupTextEdtiorAPI: (pluginManager: GraphPluginManager) => void;
|
|
21
|
-
export declare const setupLegendApplicationUILibrary: (pluginManager: GraphPluginManager,
|
|
34
|
+
export declare const setupLegendApplicationUILibrary: (pluginManager: GraphPluginManager, logger: LegendApplicationLogger) => Promise<void>;
|
|
22
35
|
export declare abstract class LegendApplication {
|
|
23
36
|
protected config: LegendApplicationConfig;
|
|
24
|
-
protected
|
|
37
|
+
protected logger: LegendApplicationLogger;
|
|
38
|
+
protected pluginManager: LegendApplicationPluginManager;
|
|
25
39
|
protected basePresets: AbstractPreset[];
|
|
26
40
|
protected basePlugins: AbstractPlugin[];
|
|
27
|
-
protected log: Log;
|
|
28
41
|
protected baseUrl: string;
|
|
29
|
-
protected pluginRegister?: ((pluginManager:
|
|
42
|
+
protected pluginRegister?: ((pluginManager: LegendApplicationPluginManager, config: LegendApplicationConfig) => void) | undefined;
|
|
30
43
|
protected _isConfigured: boolean;
|
|
31
|
-
protected constructor(pluginManager:
|
|
44
|
+
protected constructor(pluginManager: LegendApplicationPluginManager);
|
|
32
45
|
setup(options: {
|
|
33
46
|
/** Base URL of the application. e.g. /studio/, /query/ */
|
|
34
47
|
baseUrl: string;
|
|
35
48
|
/**
|
|
36
|
-
* Provide an alternative mechanism to register plugins and presets
|
|
37
|
-
* by allowing configuring specific plugin or preset.
|
|
49
|
+
* Provide an alternative mechanism to register and configure plugins and presets
|
|
50
|
+
* which is more flexible by allowing configuring specific plugin or preset.
|
|
38
51
|
*/
|
|
39
|
-
pluginRegister?: (pluginManager:
|
|
52
|
+
pluginRegister?: (pluginManager: LegendApplicationPluginManager, config: LegendApplicationConfig) => void;
|
|
40
53
|
}): LegendApplication;
|
|
41
54
|
protected withBasePresets(presets: AbstractPreset[]): LegendApplication;
|
|
42
55
|
protected withBasePlugins(plugins: AbstractPlugin[]): LegendApplication;
|
|
43
56
|
withPresets(presets: AbstractPreset[]): LegendApplication;
|
|
44
57
|
withPlugins(plugins: AbstractPlugin[]): LegendApplication;
|
|
45
|
-
withLoggers(loggers: Logger[]): LegendApplication;
|
|
46
58
|
fetchApplicationConfiguration(baseUrl: string): Promise<[LegendApplicationConfig, Record<PropertyKey, object>]>;
|
|
47
59
|
protected abstract configureApplication(configData: LegendApplicationConfigurationData, versionData: LegendApplicationVersionData, baseUrl: string): Promise<LegendApplicationConfig>;
|
|
48
60
|
protected abstract loadApplication(): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendApplication.d.ts","sourceRoot":"","sources":["../../src/application/LegendApplication.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAiBH,OAAO,KAAK,EACV,uBAAuB,EACvB,kCAAkC,EAClC,4BAA4B,EAC7B,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK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AAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC;IAyClE,SAAS,CAAC,QAAQ,CAAC,oBAAoB,CACrC,UAAU,EAAE,kCAAkC,EAC9C,WAAW,EAAE,4BAA4B,EACzC,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,uBAAuB,CAAC;IAEnC,SAAS,CAAC,QAAQ,CAAC,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;IAE7C,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CA+B7B"}
|
|
@@ -17,9 +17,26 @@ import { configure as configureMobx } from 'mobx';
|
|
|
17
17
|
import { editor as monacoEditorAPI, languages as monacoLanguagesAPI, } from 'monaco-editor';
|
|
18
18
|
import { configuration, generateLanguageMonarch, theme, } from '../stores/PureLanguageSupport';
|
|
19
19
|
import { EDITOR_THEME, EDITOR_LANGUAGE, MONOSPACED_FONT_FAMILY, } from '../const';
|
|
20
|
-
import { assertErrorThrown, LogEvent,
|
|
20
|
+
import { assertErrorThrown, LogEvent, guaranteeNonEmptyString, assertNonNullable, NetworkClient, } from '@finos/legend-shared';
|
|
21
21
|
import { APPLICATION_LOG_EVENT } from '../stores/ApplicationLogEvent';
|
|
22
22
|
import { configureComponents } from '@finos/legend-art';
|
|
23
|
+
export class LegendApplicationLogger {
|
|
24
|
+
}
|
|
25
|
+
const { debug, info, warn, error } = console;
|
|
26
|
+
export class LegendApplicationWebConsole extends LegendApplicationLogger {
|
|
27
|
+
debug(event, ...data) {
|
|
28
|
+
debug(`[${event.timestamp}] ${event.name} ${data.length ? ':' : ''}`, ...data);
|
|
29
|
+
}
|
|
30
|
+
info(event, ...data) {
|
|
31
|
+
info(`[${event.timestamp}] ${event.name} ${data.length ? ':' : ''}`, ...data);
|
|
32
|
+
}
|
|
33
|
+
warn(event, ...data) {
|
|
34
|
+
warn(`[${event.timestamp}] ${event.name} ${data.length ? ':' : ''}`, ...data);
|
|
35
|
+
}
|
|
36
|
+
error(event, ...data) {
|
|
37
|
+
error(`[${event.timestamp}] ${event.name} ${data.length ? ':' : ''}`, ...data);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
23
40
|
export const setupTextEdtiorAPI = (pluginManager) => {
|
|
24
41
|
// Register Pure as a language in `monaco-editor`
|
|
25
42
|
monacoEditorAPI.defineTheme(EDITOR_THEME.LEGEND, theme);
|
|
@@ -34,7 +51,7 @@ export const setupTextEdtiorAPI = (pluginManager) => {
|
|
|
34
51
|
// This is not considered side-effect that hinders tree-shaking because the effectful calls
|
|
35
52
|
// are embedded in the function
|
|
36
53
|
// See https://sgom.es/posts/2020-06-15-everything-you-never-wanted-to-know-about-side-effects/
|
|
37
|
-
export const setupLegendApplicationUILibrary = async (pluginManager,
|
|
54
|
+
export const setupLegendApplicationUILibrary = async (pluginManager, logger) => {
|
|
38
55
|
setupTextEdtiorAPI(pluginManager);
|
|
39
56
|
/**
|
|
40
57
|
* Since we use a custom fonts for text-editor, we want to make sure the font is loaded before any text-editor is opened
|
|
@@ -46,13 +63,13 @@ export const setupLegendApplicationUILibrary = async (pluginManager, log) => {
|
|
|
46
63
|
.then(() => {
|
|
47
64
|
if (document.fonts.check(`1em ${MONOSPACED_FONT_FAMILY}`)) {
|
|
48
65
|
monacoEditorAPI.remeasureFonts();
|
|
49
|
-
|
|
66
|
+
logger.info(LogEvent.create(APPLICATION_LOG_EVENT.TEXT_EDITOR_FONT_LOADED), `Monospaced font '${MONOSPACED_FONT_FAMILY}' has been loaded`);
|
|
50
67
|
}
|
|
51
68
|
else {
|
|
52
|
-
|
|
69
|
+
logger.error(LogEvent.create(APPLICATION_LOG_EVENT.APPLICATION_SETUP_FAILURE), fontLoadFailureErrorMessage);
|
|
53
70
|
}
|
|
54
71
|
})
|
|
55
|
-
.catch(() =>
|
|
72
|
+
.catch(() => logger.error(LogEvent.create(APPLICATION_LOG_EVENT.APPLICATION_SETUP_FAILURE), fontLoadFailureErrorMessage));
|
|
56
73
|
configureMobx({
|
|
57
74
|
// Force state modification to be done via actions
|
|
58
75
|
// See https://github.com/mobxjs/mobx/blob/gh-pages/docs/refguide/api.md#enforceactions
|
|
@@ -62,15 +79,16 @@ export const setupLegendApplicationUILibrary = async (pluginManager, log) => {
|
|
|
62
79
|
};
|
|
63
80
|
export class LegendApplication {
|
|
64
81
|
config;
|
|
82
|
+
logger;
|
|
65
83
|
pluginManager;
|
|
66
84
|
basePresets = [];
|
|
67
85
|
basePlugins = [];
|
|
68
|
-
log = new Log();
|
|
69
86
|
baseUrl;
|
|
70
87
|
pluginRegister;
|
|
71
88
|
_isConfigured = false;
|
|
72
89
|
constructor(pluginManager) {
|
|
73
90
|
this.pluginManager = pluginManager;
|
|
91
|
+
this.logger = new LegendApplicationWebConsole();
|
|
74
92
|
}
|
|
75
93
|
setup(options) {
|
|
76
94
|
this.baseUrl = guaranteeNonEmptyString(options.baseUrl, `Can't setup application: 'baseUrl' is missing or empty`);
|
|
@@ -94,10 +112,6 @@ export class LegendApplication {
|
|
|
94
112
|
this.pluginManager.usePlugins([...this.basePlugins, ...plugins]);
|
|
95
113
|
return this;
|
|
96
114
|
}
|
|
97
|
-
withLoggers(loggers) {
|
|
98
|
-
loggers.forEach((logger) => this.log.registerLogger(logger));
|
|
99
|
-
return this;
|
|
100
|
-
}
|
|
101
115
|
async fetchApplicationConfiguration(baseUrl) {
|
|
102
116
|
const client = new NetworkClient();
|
|
103
117
|
let configData;
|
|
@@ -106,7 +120,7 @@ export class LegendApplication {
|
|
|
106
120
|
}
|
|
107
121
|
catch (error) {
|
|
108
122
|
assertErrorThrown(error);
|
|
109
|
-
this.
|
|
123
|
+
this.logger.error(LogEvent.create(APPLICATION_LOG_EVENT.APPLICATION_CONFIGURATION_FAILURE), error);
|
|
110
124
|
}
|
|
111
125
|
assertNonNullable(configData, `Can't fetch Legend application configuration`);
|
|
112
126
|
let versionData;
|
|
@@ -115,7 +129,7 @@ export class LegendApplication {
|
|
|
115
129
|
}
|
|
116
130
|
catch (error) {
|
|
117
131
|
assertErrorThrown(error);
|
|
118
|
-
this.
|
|
132
|
+
this.logger.error(LogEvent.create(APPLICATION_LOG_EVENT.APPLICATION_CONFIGURATION_FAILURE), error);
|
|
119
133
|
}
|
|
120
134
|
assertNonNullable(versionData, `Can't fetch Legend application version`);
|
|
121
135
|
return [
|
|
@@ -134,11 +148,11 @@ export class LegendApplication {
|
|
|
134
148
|
this.pluginManager.configure(extensionConfigData);
|
|
135
149
|
this.pluginManager.install();
|
|
136
150
|
await this.loadApplication();
|
|
137
|
-
this.
|
|
151
|
+
this.logger.info(LogEvent.create(APPLICATION_LOG_EVENT.APPLICATION_LOADED), 'Legend application loaded');
|
|
138
152
|
}
|
|
139
153
|
catch (error) {
|
|
140
154
|
assertErrorThrown(error);
|
|
141
|
-
this.
|
|
155
|
+
this.logger.error(LogEvent.create(APPLICATION_LOG_EVENT.APPLICATION_FAILURE), 'Failed to load Legend application');
|
|
142
156
|
throw error;
|
|
143
157
|
}
|
|
144
158
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendApplication.js","sourceRoot":"","sources":["../../src/application/LegendApplication.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,MAAM,CAAC;AAClD,OAAO,EACL,MAAM,IAAI,eAAe,EACzB,SAAS,IAAI,kBAAkB,GAChC,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,aAAa,EACb,uBAAuB,EACvB,KAAK,GACN,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,YAAY,EACZ,eAAe,EACf,sBAAsB,GACvB,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"LegendApplication.js","sourceRoot":"","sources":["../../src/application/LegendApplication.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,MAAM,CAAC;AAClD,OAAO,EACL,MAAM,IAAI,eAAe,EACzB,SAAS,IAAI,kB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f,QAAQ,CAAC,MAAM,CAAC,qBAAqB,CAAC,mBAAmB,CAAC,EAC1D,mCAAmC,CACpC,CAAC;YACF,MAAM,KAAK,CAAC;SACb;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
import type { EventNotifierPlugin, EventNotifierServicePluginManager, LoggerPlugin, LoggerPluginManager, TelemetryServicePlugin, TelemetryServicePluginManager, TracerServicePlugin, TracerServicePluginManager } from '@finos/legend-shared';
|
|
17
|
+
import { AbstractPluginManager } from '@finos/legend-shared';
|
|
18
|
+
export declare class LegendApplicationPluginManager extends AbstractPluginManager implements LoggerPluginManager, TelemetryServicePluginManager, TracerServicePluginManager, EventNotifierServicePluginManager {
|
|
19
|
+
protected loggerPlugins: LoggerPlugin[];
|
|
20
|
+
protected telemetryServicePlugins: TelemetryServicePlugin[];
|
|
21
|
+
protected tracerServicePlugins: TracerServicePlugin<unknown>[];
|
|
22
|
+
protected eventNotifierPlugins: EventNotifierPlugin[];
|
|
23
|
+
registerLoggerPlugin(plugin: LoggerPlugin): void;
|
|
24
|
+
registerTelemetryServicePlugin(plugin: TelemetryServicePlugin): void;
|
|
25
|
+
registerTracerServicePlugin(plugin: TracerServicePlugin<unknown>): void;
|
|
26
|
+
registerEventNotifierPlugin(plugin: EventNotifierPlugin): void;
|
|
27
|
+
getLoggerPlugins(): LoggerPlugin[];
|
|
28
|
+
getTelemetryServicePlugins(): TelemetryServicePlugin[];
|
|
29
|
+
getTracerServicePlugins(): TracerServicePlugin<unknown>[];
|
|
30
|
+
getEventNotifierPlugins(): EventNotifierPlugin[];
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=LegendApplicationPluginManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendApplicationPluginManager.d.ts","sourceRoot":"","sources":["../../src/application/LegendApplicationPluginManager.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,mBAAmB,EACnB,iCAAiC,EACjC,YAAY,EACZ,mBAAmB,EACnB,sBAAsB,EACtB,6BAA6B,EAC7B,mBAAmB,EACnB,0BAA0B,EAC3B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,qBAAa,8BACX,SAAQ,qBACR,YACE,mBAAmB,EACnB,6BAA6B,EAC7B,0BAA0B,EAC1B,iCAAiC;IAEnC,SAAS,CAAC,aAAa,EAAE,YAAY,EAAE,CAAM;IAC7C,SAAS,CAAC,uBAAuB,EAAE,sBAAsB,EAAE,CAAM;IACjE,SAAS,CAAC,oBAAoB,EAAE,mBAAmB,CAAC,OAAO,CAAC,EAAE,CAAM;IACpE,SAAS,CAAC,oBAAoB,EAAE,mBAAmB,EAAE,CAAM;IAE3D,oBAAoB,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI;IAIhD,8BAA8B,CAAC,MAAM,EAAE,sBAAsB,GAAG,IAAI;IAIpE,2BAA2B,CAAC,MAAM,EAAE,mBAAmB,CAAC,OAAO,CAAC,GAAG,IAAI;IAIvE,2BAA2B,CAAC,MAAM,EAAE,mBAAmB,GAAG,IAAI;IAI9D,gBAAgB,IAAI,YAAY,EAAE;IAIlC,0BAA0B,IAAI,sBAAsB,EAAE;IAItD,uBAAuB,IAAI,mBAAmB,CAAC,OAAO,CAAC,EAAE;IAIzD,uBAAuB,IAAI,mBAAmB,EAAE;CAGjD"}
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
import { AbstractPluginManager } from '@finos/legend-shared';
|
|
17
|
+
export class LegendApplicationPluginManager extends AbstractPluginManager {
|
|
18
|
+
loggerPlugins = [];
|
|
19
|
+
telemetryServicePlugins = [];
|
|
20
|
+
tracerServicePlugins = [];
|
|
21
|
+
eventNotifierPlugins = [];
|
|
22
|
+
registerLoggerPlugin(plugin) {
|
|
23
|
+
this.loggerPlugins.push(plugin);
|
|
24
|
+
}
|
|
25
|
+
registerTelemetryServicePlugin(plugin) {
|
|
26
|
+
this.telemetryServicePlugins.push(plugin);
|
|
27
|
+
}
|
|
28
|
+
registerTracerServicePlugin(plugin) {
|
|
29
|
+
this.tracerServicePlugins.push(plugin);
|
|
30
|
+
}
|
|
31
|
+
registerEventNotifierPlugin(plugin) {
|
|
32
|
+
this.eventNotifierPlugins.push(plugin);
|
|
33
|
+
}
|
|
34
|
+
getLoggerPlugins() {
|
|
35
|
+
return [...this.loggerPlugins];
|
|
36
|
+
}
|
|
37
|
+
getTelemetryServicePlugins() {
|
|
38
|
+
return [...this.telemetryServicePlugins];
|
|
39
|
+
}
|
|
40
|
+
getTracerServicePlugins() {
|
|
41
|
+
return [...this.tracerServicePlugins];
|
|
42
|
+
}
|
|
43
|
+
getEventNotifierPlugins() {
|
|
44
|
+
return [...this.eventNotifierPlugins];
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=LegendApplicationPluginManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendApplicationPluginManager.js","sourceRoot":"","sources":["../../src/application/LegendApplicationPluginManager.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAYH,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,MAAM,OAAO,8BACX,SAAQ,qBAAqB;IAOnB,aAAa,GAAmB,EAAE,CAAC;IACnC,uBAAuB,GAA6B,EAAE,CAAC;IACvD,oBAAoB,GAAmC,EAAE,CAAC;IAC1D,oBAAoB,GAA0B,EAAE,CAAC;IAE3D,oBAAoB,CAAC,MAAoB;QACvC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAClC,CAAC;IAED,8BAA8B,CAAC,MAA8B;QAC3D,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC;IAED,2BAA2B,CAAC,MAAoC;QAC9D,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACzC,CAAC;IAED,2BAA2B,CAAC,MAA2B;QACrD,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACzC,CAAC;IAED,gBAAgB;QACd,OAAO,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC;IACjC,CAAC;IAED,0BAA0B;QACxB,OAAO,CAAC,GAAG,IAAI,CAAC,uBAAuB,CAAC,CAAC;IAC3C,CAAC;IAED,uBAAuB;QACrB,OAAO,CAAC,GAAG,IAAI,CAAC,oBAAoB,CAAC,CAAC;IACxC,CAAC;IAED,uBAAuB;QACrB,OAAO,CAAC,GAAG,IAAI,CAAC,oBAAoB,CAAC,CAAC;IACxC,CAAC;CACF"}
|
|
@@ -15,13 +15,11 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ApplicationStore } from '../stores/ApplicationStore';
|
|
17
17
|
import type { LegendApplicationConfig } from '../stores/ApplicationConfig';
|
|
18
|
-
import type {
|
|
19
|
-
|
|
20
|
-
export declare const ApplicationStoreProvider: <T extends LegendApplicationConfig>({ children, config, navigator, log, }: {
|
|
18
|
+
import type { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager';
|
|
19
|
+
export declare const ApplicationStoreProvider: <T extends LegendApplicationConfig>({ children, config, pluginManager, }: {
|
|
21
20
|
children: React.ReactNode;
|
|
22
21
|
config: T;
|
|
23
|
-
|
|
24
|
-
log: Log;
|
|
22
|
+
pluginManager: LegendApplicationPluginManager;
|
|
25
23
|
}) => React.ReactElement;
|
|
26
24
|
export declare const useApplicationStore: <T extends LegendApplicationConfig>() => ApplicationStore<T>;
|
|
27
25
|
//# sourceMappingURL=ApplicationStoreProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationStoreProvider.d.ts","sourceRoot":"","sources":["../../src/components/ApplicationStoreProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"ApplicationStoreProvider.d.ts","sourceRoot":"","sources":["../../src/components/ApplicationStoreProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAG3E,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,+CAA+C,CAAC;AAMpG,eAAO,MAAM,wBAAwB;cAKzB,MAAM,SAAS;;mBAEV,8BAA8B;MAC3C,MAAM,YAUT,CAAC;AAEF,eAAO,MAAM,mBAAmB,8DAM7B,CAAC"}
|
|
@@ -18,9 +18,11 @@ import { createContext, useContext } from 'react';
|
|
|
18
18
|
import { useLocalObservable } from 'mobx-react-lite';
|
|
19
19
|
import { ApplicationStore } from '../stores/ApplicationStore';
|
|
20
20
|
import { guaranteeNonNullable } from '@finos/legend-shared';
|
|
21
|
+
import { useWebApplicationNavigator } from './WebApplicationNavigatorProvider';
|
|
21
22
|
const ApplicationStoreContext = createContext(undefined);
|
|
22
|
-
export const ApplicationStoreProvider = ({ children, config,
|
|
23
|
-
const
|
|
23
|
+
export const ApplicationStoreProvider = ({ children, config, pluginManager, }) => {
|
|
24
|
+
const navigator = useWebApplicationNavigator();
|
|
25
|
+
const applicationStore = useLocalObservable(() => new ApplicationStore(config, navigator, pluginManager));
|
|
24
26
|
return (_jsx(ApplicationStoreContext.Provider, { value: applicationStore, children: children }, void 0));
|
|
25
27
|
};
|
|
26
28
|
export const useApplicationStore = () => guaranteeNonNullable(useContext(ApplicationStoreContext), `Can't find application store in context`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationStoreProvider.js","sourceRoot":"","sources":["../../src/components/ApplicationStoreProvider.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"ApplicationStoreProvider.js","sourceRoot":"","sources":["../../src/components/ApplicationStoreProvider.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAG/E,MAAM,uBAAuB,GAAG,aAAa,CAE3C,SAAS,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAoC,EAC1E,QAAQ,EACR,MAAM,EACN,aAAa,GAKd,EAAsB,EAAE;IACvB,MAAM,SAAS,GAAG,0BAA0B,EAAE,CAAC;IAC/C,MAAM,gBAAgB,GAAG,kBAAkB,CACzC,GAAG,EAAE,CAAC,IAAI,gBAAgB,CAAC,MAAM,EAAE,SAAS,EAAE,aAAa,CAAC,CAC7D,CAAC;IACF,OAAO,CACL,KAAC,uBAAuB,CAAC,QAAQ,IAAC,KAAK,EAAE,gBAAgB,YACtD,QAAQ,WACwB,CACpC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAEV,EAAE,CACzB,oBAAoB,CAClB,UAAU,CAAC,uBAAuB,CAAoC,EACtE,yCAAyC,CAC1C,CAAC"}
|
|
@@ -16,11 +16,13 @@
|
|
|
16
16
|
import { ApplicationStore } from '../stores/ApplicationStore';
|
|
17
17
|
import { WebApplicationNavigator } from '../stores/WebApplicationNavigator';
|
|
18
18
|
import type { LegendApplicationConfig } from '../stores/ApplicationConfig';
|
|
19
|
-
|
|
19
|
+
import type { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager';
|
|
20
|
+
export declare const TEST__ApplicationStoreProvider: ({ children, config, pluginManager, }: {
|
|
20
21
|
children: React.ReactNode;
|
|
21
22
|
config: LegendApplicationConfig;
|
|
23
|
+
pluginManager: LegendApplicationPluginManager;
|
|
22
24
|
}) => React.ReactElement;
|
|
23
|
-
export declare const TEST__provideMockedApplicationStore: <T extends LegendApplicationConfig>(config: T, customization?: {
|
|
25
|
+
export declare const TEST__provideMockedApplicationStore: <T extends LegendApplicationConfig>(config: T, pluginManager: LegendApplicationPluginManager, customization?: {
|
|
24
26
|
mock?: ApplicationStore<T>;
|
|
25
27
|
navigator?: WebApplicationNavigator;
|
|
26
28
|
} | undefined) => ApplicationStore<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationStoreProviderTestUtils.d.ts","sourceRoot":"","sources":["../../src/components/ApplicationStoreProviderTestUtils.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"ApplicationStoreProviderTestUtils.d.ts","sourceRoot":"","sources":["../../src/components/ApplicationStoreProviderTestUtils.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAE3E,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,+CAA+C,CAAC;AAEpG,eAAO,MAAM,8BAA8B;cAK/B,MAAM,SAAS;YACjB,uBAAuB;mBAChB,8BAA8B;MAC3C,MAAM,YAIT,CAAC;AAEF,eAAO,MAAM,mCAAmC,gEAI/B,8BAA8B;;gBAG/B,uBAAuB;qCAetC,CAAC"}
|
|
@@ -18,12 +18,11 @@ import { createMemoryHistory } from 'history';
|
|
|
18
18
|
import { ApplicationStore } from '../stores/ApplicationStore';
|
|
19
19
|
import { WebApplicationNavigator } from '../stores/WebApplicationNavigator';
|
|
20
20
|
import { ApplicationStoreProvider } from './ApplicationStoreProvider';
|
|
21
|
-
|
|
22
|
-
export const
|
|
23
|
-
export const TEST__provideMockedApplicationStore = (config, customization) => {
|
|
21
|
+
export const TEST__ApplicationStoreProvider = ({ children, config, pluginManager, }) => (_jsx(ApplicationStoreProvider, { config: config, pluginManager: pluginManager, children: children }, void 0));
|
|
22
|
+
export const TEST__provideMockedApplicationStore = (config, pluginManager, customization) => {
|
|
24
23
|
const value = customization?.mock ??
|
|
25
24
|
new ApplicationStore(config, customization?.navigator ??
|
|
26
|
-
new WebApplicationNavigator(createMemoryHistory()),
|
|
25
|
+
new WebApplicationNavigator(createMemoryHistory()), pluginManager);
|
|
27
26
|
const MockedApplicationStoreProvider = require('./ApplicationStoreProvider'); // eslint-disable-line @typescript-eslint/no-unsafe-assignment
|
|
28
27
|
MockedApplicationStoreProvider.useApplicationStore = jest.fn();
|
|
29
28
|
MockedApplicationStoreProvider.useApplicationStore.mockReturnValue(value);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationStoreProviderTestUtils.js","sourceRoot":"","sources":["../../src/components/ApplicationStoreProviderTestUtils.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAE5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"ApplicationStoreProviderTestUtils.js","sourceRoot":"","sources":["../../src/components/ApplicationStoreProviderTestUtils.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAE5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAGtE,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,EAC7C,QAAQ,EACR,MAAM,EACN,aAAa,GAKd,EAAsB,EAAE,CAAC,CACxB,KAAC,wBAAwB,IAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,YACnE,QAAQ,WACgB,CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAGjD,MAAS,EACT,aAA6C,EAC7C,aAGC,EACoB,EAAE;IACvB,MAAM,KAAK,GACT,aAAa,EAAE,IAAI;QACnB,IAAI,gBAAgB,CAClB,MAAM,EACN,aAAa,EAAE,SAAS;YACtB,IAAI,uBAAuB,CAAC,mBAAmB,EAAE,CAAC,EACpD,aAAa,CACd,CAAC;IACJ,MAAM,8BAA8B,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC,CAAC,8DAA8D;IAC5I,8BAA8B,CAAC,mBAAmB,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;IAC/D,8BAA8B,CAAC,mBAAmB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;IAC1E,OAAO,KAAK,CAAC;AACf,CAAC,CAAC"}
|
package/lib/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license @finos/legend-application
|
|
1
|
+
/** @license @finos/legend-application v1.0.0
|
|
2
2
|
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
:root{--color-primitive: var(--color-light-blue-200);--color-enum-value: var(--color-green-100);--color-enumeration: var(--color-medium-green-100);--color-measure: var(--color-medium-green-100);--color-unit: var(--color-medium-green-100);--color-class: var(--color-purple-100);--color-mapping: var(--color-teal-50);--color-function: var(--color-light-blue-20);--color-profile: var(--color-lime-75);--color-generated: var(--color-pink-200);--color-system: var(--color-light-blue-50);--color-dependency: var(--color-lime-50);--color-config: var(--color-orange-100);--color-flat-data: var(--color-orange-100);--color-relational: var(--color-blue-500);--color-file-generation: var(--color-blue-50);--color-database: var(--color-orange-100);--color-schema: var(--color-medium-green-500);--color-table: var(--color-light-blue-200);--color-association: var(--color-light-grey-400);--color-service: var(--color-blue-40);--color-runtime: var(--color-red-180);--color-connection: var(--color-yellow-100)}.color--class{color:var(--color-class)}.color--enumeration{color:var(--color-enumeration)}.color--unit{color:var(--color-unit)}.color--measure{color:var(--color-measure)}.color--association{color:var(--color-association)}.color--primitive{color:var(--color-primitive)}.color--enum-value{color:var(--color-enum-value)}.color--mapping{color:var(--color-mapping)}.color--function{color:var(--color-function)}.color--file-generation{color:var(--color-file-generation)}.color--profile{color:var(--color-profile)}.color--generated{color:var(--color-generated)}.color--system{color:var(--color-system)}.color--dependency{color:var(--color-dependency)}.color--config{color:var(--color-config)}.color--flat-data{color:var(--color-flat-data)}.color--database{color:var(--color-database)}.color--table{color:var(--color-table)}.color--schema{color:var(--color-schema)}.color--service{color:var(--color-service)}.color--connection{color:var(--color-connection)}.color--runtime{color:var(--color-runtime)}.background--pureinstance,.background--class{background:var(--color-class)}.background--enumeration{background:var(--color-enumeration)}.background--unit{background:var(--color-unit)}.background--measure{background:var(--color-measure)}.background--association{background:var(--color-association)}.background--primitive{background:var(--color-primitive)}.background--enum-value{background:var(--color-enum-value)}.background--mapping{background:var(--color-mapping)}.background--profile{background:var(--color-profile)}.background--flat-data{background:var(--color-flat-data)}.background--database{background:var(--color-database)}.background--service{background:var(--color-service)}.background--connection{background:var(--color-connection)}.background--runtime{background:var(--color-runtime)}.background--relational{background:var(--color-relational)}.app{height:100%}.app__page{height:100%}.app__header{display:flex;justify-content:space-between;width:100%;background:var(--color-dark-grey-200);height:4.8rem}.app__header__content{display:flex;justify-content:space-between;width:100%;left:0;right:0;margin:0 auto;height:4.8rem;padding:0}.app__header__title{display:flex;align-items:center;justify-content:left;flex-direction:row;font-weight:300;font-size:1.3rem;padding-right:1rem;white-space:nowrap;overflow:hidden !important;text-overflow:ellipsis}.app__header__logo{display:flex;align-items:center;justify-content:center;fill:var(--color-text-label);width:4.8rem;height:4.8rem;cursor:pointer}.app__header__logo svg{display:none;font-size:2rem;color:var(--color-light-grey-100)}.app__header__tag{display:inline-flex;align-items:center;margin-left:1rem;background:var(--color-dark-grey-300);padding:0 .5rem;border-radius:.3rem;height:2.4rem;font-size:1.8rem;font-family:"Roboto Condensed",sans-serif;font-weight:400;color:var(--color-text-label);cursor:default}.app__header__tag__name{padding:0 .7rem;font-size:1.6rem;background:var(--color-dark-grey-300);color:var(--color-light-grey-200);font-weight:400;border-radius:.3rem 0 0 .3rem}.app__header__tag__value{padding:0 .7rem;font-size:1.6rem;margin-left:0;color:var(--color-light-grey-100);font-weight:400;background:var(--color-blue-200);border-radius:0 .3rem .3rem 0}.app__header__actions{display:flex;align-items:center}.app__header__action{display:flex;align-items:center;justify-content:center;width:4.8rem;height:100%}.app__header__action svg{color:var(--color-light-grey-400);cursor:pointer}.app__header__menu{width:15rem}.app__header__menu__item{display:flex;align-items:center;justify-content:center}.app__header__menu-btn svg{font-size:2rem}.app__content{background:var(--color-dark-grey-50);height:calc(100% - 4.8rem)}.blocking-alert{padding:0}.blocking-alert__root-container{margin-top:0 !important}.blocking-alert__container{align-items:center !important}.blocking-alert .btn{display:flex;align-items:center;justify-content:center;height:2.8rem;border-radius:.1rem;border:none;color:var(--color-light-grey-50)}.blocking-alert .modal__body{line-height:2.2rem;cursor:default;text-align:justify}.blocking-alert__message{text-align:center}.blocking-alert__message__prompt{text-align:center;font-size:1.2rem;color:var(--color-blue-150);font-weight:500}.blocking-alert__summary-text{color:var(--color-light-grey-400);font-weight:500}.blocking-alert__prompt-text{color:var(--color-blue-50);font-size:1.3rem;margin-top:1rem;font-weight:500}.blocking-alert--standard{border:.1rem solid var(--color-blue-200)}.blocking-alert--caution{border:.1rem solid var(--color-pink-400)}.blocking-alert--caution .mode__header{background:var(--color-pink-400)}.blocking-alert--caution .blocking-alert__prompt-text{color:var(--color-pink-300)}.backdrop{background:var(--color-dark-shade-230) !important;z-index:100 !important}.backdrop__element{z-index:100;position:relative;box-shadow:var(--color-dark-shade-280) 0 .1rem .3rem .1rem}.lambda-editor{display:flex;align-items:center;height:2.8rem;flex:1 0 auto;min-width:0;border-radius:.2rem;background:var(--color-dark-grey-300)}.lambda-editor .monaco-editor .margin,.lambda-editor .monaco-editor .monaco-editor-background{background:var(--color-dark-grey-300) !important}.lambda-editor .monaco-editor .decorationsOverviewRuler{display:none}.lambda-editor__editor__input{position:relative;height:100%;width:100%}.lambda-editor__editor__input__compressed .scroll-decoration{box-shadow:none}.lambda-editor__editor__input__compressed .selected-text,.lambda-editor__editor__input__compressed .selectionHighlight{height:2.6rem !important}.lambda-editor__editor__input__compressed .cursors-layer .cursor{top:.3rem !important;height:2rem !important}.lambda-editor__editor__input__compressed .view-line{display:flex;align-items:center;height:2.6rem !important}.lambda-editor__editor__info{display:flex;align-items:center;height:100%;padding:0 .5rem;border:.1rem solid var(--color-dark-grey-300);border-right:none;border-left:none;background:var(--color-dark-grey-300)}.lambda-editor__editor__expected-return-type{display:flex;align-items:center;justify-content:center;height:100%;height:1.8rem;border-radius:.2rem;padding:0 .5rem;color:var(--color-dark-grey-400);background:var(--color-light-grey-0);border:.1rem solid var(--color-light-grey-0);font-size:1.1rem;cursor:default}.lambda-editor__editor__expected-return-type--clickable{cursor:pointer}.lambda-editor__editor__expected-return-type--highlighted{border-color:var(--color-yellow-0);background:var(--color-yellow-0);color:var(--color-dark-grey-0)}.lambda-editor__editor__expand-btn{display:flex;align-items:center;justify-content:center;height:100%;width:1.6rem;background:var(--color-dark-grey-280);border:.1rem solid var(--color-dark-grey-280);color:var(--color-light-grey-100);border-radius:0 .2rem .2rem 0;cursor:pointer}.lambda-editor__editor__expand-btn[disabled]{color:var(--color-dark-grey-400);cursor:not-allowed}.lambda-editor__expanded{height:28rem !important}.lambda-editor__expanded .lambda-editor__editor__info{align-items:flex-start;padding:.4rem .5rem}.lambda-editor__expanded .lambda-editor__editor__expand-btn{background:var(--color-dark-grey-280);border-color:var(--color-dark-grey-280)}.lambda-editor--dnd-match .lambda-editor__editor__expected-return-type{background:var(--color-yellow-0);border-color:var(--color-yellow-0);color:var(--color-dark-grey-0)}.lambda-editor__action{width:2.8rem;min-width:2.8rem;background:var(--color-dark-grey-250);height:2.8rem;border-left:.1rem solid var(--color-dark-shade-300)}.lambda-editor__action svg{color:var(--color-light-grey-200)}.lambda-editor__error-feedback{width:100%;margin-top:.5rem;background:var(--color-red-100);color:var(--color-light-grey-0);border-radius:.2rem;cursor:default}.lambda-editor__error-feedback__error__message{display:inline-flex;line-height:1.6rem;padding:.5rem}.lambda-editor__error-feedback__parsing-error__content{display:flex;justify-content:space-between;border-top:.1rem solid var(--color-dark-shade-230);padding:.5rem}.lambda-editor__error-feedback__parsing-error__discard-changes-btn{cursor:pointer;font-size:1.2rem;height:1.8rem;background:var(--color-dark-shade-230);white-space:nowrap;border-radius:.2rem;padding:0 .5rem;color:var(--color-light-grey-50)}.lambda-editor__popup__modal__content{width:100%;height:100%;background:var(--color-dark-grey-50)}.lambda-editor__popup__modal--has-error{border:.1rem solid var(--color-red-200) !important}.lambda-editor__popup__modal--has-error .modal__header{background:var(--color-red-200)}.lambda-editor__popup__modal--has-error .modal__title__error-badge{display:flex;align-items:center;justify-content:center;margin-right:1rem;background:var(--color-red-400);height:2.2rem;border-radius:.2rem;padding:.5rem;font-size:1.2rem;user-select:none}.lambda-editor__popup__content{height:100% !important;background:var(--color-dark-grey-50);padding-top:1rem}.lambda-editor__popup__content .monaco-editor .margin,.lambda-editor__popup__content .monaco-editor .monaco-editor-background{background:var(--color-dark-grey-50) !important}.notification__position{bottom:3rem !important;right:1rem !important}.notification__content{background-color:var(--color-dark-grey-200) !important;color:var(--color-light-grey-150) !important;border-radius:.3rem !important;align-items:flex-start !important}.notification__message__content{display:flex;align-items:flex-start;cursor:pointer}.notification__message__content:active{background:var(--color-dark-grey-100)}.notification__message__content__icon{padding-top:.2rem;padding-right:1rem}.notification__message__content__icon svg{font-size:1.6rem}.notification__message__content__icon--info{color:var(--color-light-grey-200)}.notification__message__content__icon--error{color:var(--color-red-100)}.notification__message__content__icon--warning{color:var(--color-yellow-200)}.notification__message__content__icon--success{color:var(--color-green-100)}.notification__message__content__text{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-word;text-align:left;max-height:20rem;max-width:60rem}.notification__message__content__text--expanded{overflow:auto;white-space:pre-line;width:60rem}.notification__actions{padding:.8rem 0 .8rem 1rem !important}.notification__action{display:flex;align-items:center;justify-content:center;width:2rem;color:var(--color-dark-grey-400) !important}.notification__action:hover{color:var(--color-light-grey-400) !important}.text-editor__container{height:100%;width:100%;background:var(--color-dark-grey-50)}.text-editor__body{height:100%;width:100%;position:absolute;top:0;left:0}/*# sourceMappingURL=index.css.map */
|
|
17
|
+
:root{--color-primitive: var(--color-light-blue-200);--color-enum-value: var(--color-green-100);--color-enumeration: var(--color-medium-green-100);--color-measure: var(--color-medium-green-100);--color-unit: var(--color-medium-green-100);--color-class: var(--color-purple-100);--color-mapping: var(--color-teal-50);--color-function: var(--color-light-blue-20);--color-profile: var(--color-lime-75);--color-generated: var(--color-pink-200);--color-system: var(--color-light-blue-50);--color-dependency: var(--color-lime-50);--color-config: var(--color-orange-100);--color-flat-data: var(--color-orange-100);--color-relational: var(--color-blue-500);--color-file-generation: var(--color-blue-50);--color-database: var(--color-orange-100);--color-schema: var(--color-medium-green-500);--color-table: var(--color-light-blue-200);--color-association: var(--color-light-grey-400);--color-service: var(--color-blue-40);--color-runtime: var(--color-red-180);--color-connection: var(--color-yellow-100)}.color--class{color:var(--color-class)}.color--enumeration{color:var(--color-enumeration)}.color--unit{color:var(--color-unit)}.color--measure{color:var(--color-measure)}.color--association{color:var(--color-association)}.color--primitive{color:var(--color-primitive)}.color--enum-value{color:var(--color-enum-value)}.color--mapping{color:var(--color-mapping)}.color--function{color:var(--color-function)}.color--file-generation{color:var(--color-file-generation)}.color--profile{color:var(--color-profile)}.color--generated{color:var(--color-generated)}.color--system{color:var(--color-system)}.color--dependency{color:var(--color-dependency)}.color--config{color:var(--color-config)}.color--flat-data{color:var(--color-flat-data)}.color--database{color:var(--color-database)}.color--table{color:var(--color-table)}.color--schema{color:var(--color-schema)}.color--service{color:var(--color-service)}.color--connection{color:var(--color-connection)}.color--runtime{color:var(--color-runtime)}.background--pureinstance,.background--class{background:var(--color-class)}.background--enumeration{background:var(--color-enumeration)}.background--unit{background:var(--color-unit)}.background--measure{background:var(--color-measure)}.background--association{background:var(--color-association)}.background--primitive{background:var(--color-primitive)}.background--enum-value{background:var(--color-enum-value)}.background--mapping{background:var(--color-mapping)}.background--profile{background:var(--color-profile)}.background--flat-data{background:var(--color-flat-data)}.background--database{background:var(--color-database)}.background--service{background:var(--color-service)}.background--connection{background:var(--color-connection)}.background--runtime{background:var(--color-runtime)}.background--relational{background:var(--color-relational)}.app{height:100%}.app__page{height:100%}.app__header{display:flex;justify-content:space-between;width:100%;background:var(--color-dark-grey-200);height:4.8rem}.app__header__content{display:flex;justify-content:space-between;width:100%;left:0;right:0;margin:0 auto;height:4.8rem;padding:0}.app__header__title{display:flex;align-items:center;justify-content:left;flex-direction:row;font-weight:300;font-size:1.3rem;padding-right:1rem;white-space:nowrap;overflow:hidden !important;text-overflow:ellipsis}.app__header__logo{display:flex;align-items:center;justify-content:center;fill:var(--color-text-label);width:4.8rem;height:4.8rem;cursor:pointer}.app__header__logo svg{display:none;font-size:2rem;color:var(--color-light-grey-100)}.app__header__tag{display:inline-flex;align-items:center;margin-left:1rem;background:var(--color-dark-grey-300);padding:0 .5rem;border-radius:.3rem;height:2.4rem;font-size:1.8rem;font-family:"Roboto Condensed",sans-serif;font-weight:400;color:var(--color-text-label);cursor:default}.app__header__tag__name{padding:0 .7rem;font-size:1.6rem;background:var(--color-dark-grey-300);color:var(--color-light-grey-200);font-weight:400;border-radius:.3rem 0 0 .3rem}.app__header__tag__value{padding:0 .7rem;font-size:1.6rem;margin-left:0;color:var(--color-light-grey-100);font-weight:400;background:var(--color-blue-200);border-radius:0 .3rem .3rem 0}.app__header__actions{display:flex;align-items:center}.app__header__action{display:flex;align-items:center;justify-content:center;width:4.8rem;height:100%}.app__header__action svg{color:var(--color-light-grey-400);cursor:pointer}.app__header__menu{width:15rem}.app__header__menu__item{display:flex;align-items:center;justify-content:center}.app__header__menu-btn svg{font-size:2rem}.app__content{background:var(--color-dark-grey-50);height:calc(100% - 4.8rem)}.blocking-alert{padding:0}.blocking-alert__root-container{margin-top:0 !important}.blocking-alert__container{align-items:center !important}.blocking-alert .btn{display:flex;align-items:center;justify-content:center;height:2.8rem;border-radius:.1rem;border:none;color:var(--color-light-grey-50)}.blocking-alert .modal__body{line-height:2.2rem;cursor:default;text-align:justify}.blocking-alert__message{text-align:center}.blocking-alert__message__prompt{text-align:center;font-size:1.2rem;color:var(--color-blue-150);font-weight:500}.blocking-alert__summary-text{color:var(--color-light-grey-400);font-weight:500}.blocking-alert__prompt-text{color:var(--color-blue-50);font-size:1.3rem;margin-top:1rem;font-weight:500}.blocking-alert--standard{border:.1rem solid var(--color-blue-200)}.blocking-alert--caution{border:.1rem solid var(--color-pink-400)}.blocking-alert--caution .mode__header{background:var(--color-pink-400)}.blocking-alert--caution .blocking-alert__prompt-text{color:var(--color-pink-300)}.backdrop{background:var(--color-dark-shade-230) !important;z-index:100 !important}.backdrop__element{z-index:100;position:relative;box-shadow:var(--color-dark-shade-280) 0 .1rem .3rem .1rem}.lambda-editor{display:flex;align-items:center;height:2.8rem;flex:1 0 auto;min-width:0;border-radius:.2rem;background:var(--color-dark-grey-300)}.lambda-editor .monaco-editor .margin,.lambda-editor .monaco-editor .monaco-editor-background{background:var(--color-dark-grey-300) !important}.lambda-editor .monaco-editor .decorationsOverviewRuler{display:none}.lambda-editor__editor__input{position:relative;height:100%;width:100%}.lambda-editor__editor__input__compressed .scroll-decoration{box-shadow:none}.lambda-editor__editor__input__compressed .selected-text,.lambda-editor__editor__input__compressed .selectionHighlight{height:2.6rem !important}.lambda-editor__editor__input__compressed .cursors-layer .cursor{top:.3rem !important;height:2rem !important}.lambda-editor__editor__input__compressed .view-line{display:flex;align-items:center;height:2.6rem !important}.lambda-editor__editor__info{display:flex;align-items:center;height:100%;padding:0 .5rem;border:.1rem solid var(--color-dark-grey-300);border-right:none;border-left:none;background:var(--color-dark-grey-300)}.lambda-editor__editor__expected-return-type{display:flex;align-items:center;justify-content:center;height:100%;height:1.8rem;border-radius:.2rem;padding:0 .5rem;color:var(--color-dark-grey-400);background:var(--color-light-grey-0);border:.1rem solid var(--color-light-grey-0);font-size:1.1rem;cursor:default}.lambda-editor__editor__expected-return-type--clickable{cursor:pointer}.lambda-editor__editor__expected-return-type--highlighted{border-color:var(--color-yellow-0);background:var(--color-yellow-0);color:var(--color-dark-grey-0)}.lambda-editor__editor__expand-btn{display:flex;align-items:center;justify-content:center;height:100%;width:1.6rem;background:var(--color-dark-grey-280);border:.1rem solid var(--color-dark-grey-280);color:var(--color-light-grey-100);border-radius:0 .2rem .2rem 0;cursor:pointer}.lambda-editor__editor__expand-btn[disabled]{color:var(--color-dark-grey-400);cursor:not-allowed}.lambda-editor__expanded{height:28rem !important}.lambda-editor__expanded .lambda-editor__editor__info{align-items:flex-start;padding:.4rem .5rem}.lambda-editor__expanded .lambda-editor__editor__expand-btn{background:var(--color-dark-grey-280);border-color:var(--color-dark-grey-280)}.lambda-editor--dnd-match .lambda-editor__editor__expected-return-type{background:var(--color-yellow-0);border-color:var(--color-yellow-0);color:var(--color-dark-grey-0)}.lambda-editor__action{width:2.8rem;min-width:2.8rem;background:var(--color-dark-grey-250);height:100%;border-left:.1rem solid var(--color-dark-shade-300)}.lambda-editor__action svg{color:var(--color-light-grey-200)}.lambda-editor__error-feedback{width:100%;margin-top:.5rem;background:var(--color-red-100);color:var(--color-light-grey-0);border-radius:.2rem;cursor:default}.lambda-editor__error-feedback__error__message{display:inline-flex;line-height:1.6rem;padding:.5rem}.lambda-editor__error-feedback__parsing-error__content{display:flex;justify-content:space-between;border-top:.1rem solid var(--color-dark-shade-230);padding:.5rem}.lambda-editor__error-feedback__parsing-error__discard-changes-btn{cursor:pointer;font-size:1.2rem;height:1.8rem;background:var(--color-dark-shade-230);white-space:nowrap;border-radius:.2rem;padding:0 .5rem;color:var(--color-light-grey-50)}.lambda-editor__popup__modal__content{width:100%;height:100%;background:var(--color-dark-grey-50)}.lambda-editor__popup__modal--has-error{border:.1rem solid var(--color-red-200) !important}.lambda-editor__popup__modal--has-error .modal__header{background:var(--color-red-200)}.lambda-editor__popup__modal--has-error .modal__title__error-badge{display:flex;align-items:center;justify-content:center;margin-right:1rem;background:var(--color-red-400);height:2.2rem;border-radius:.2rem;padding:.5rem;font-size:1.2rem;user-select:none}.lambda-editor__popup__content{height:100% !important;background:var(--color-dark-grey-50);padding-top:1rem}.lambda-editor__popup__content .monaco-editor .margin,.lambda-editor__popup__content .monaco-editor .monaco-editor-background{background:var(--color-dark-grey-50) !important}.notification__position{bottom:3rem !important;right:1rem !important}.notification__content{background-color:var(--color-dark-grey-200) !important;color:var(--color-light-grey-150) !important;border-radius:.3rem !important;align-items:flex-start !important}.notification__message__content{display:flex;align-items:flex-start;cursor:pointer}.notification__message__content:active{background:var(--color-dark-grey-100)}.notification__message__content__icon{padding-top:.2rem;padding-right:1rem}.notification__message__content__icon svg{font-size:1.6rem}.notification__message__content__icon--info{color:var(--color-light-grey-200)}.notification__message__content__icon--error{color:var(--color-red-100)}.notification__message__content__icon--warning{color:var(--color-yellow-200)}.notification__message__content__icon--success{color:var(--color-green-100)}.notification__message__content__text{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-word;text-align:left;max-height:20rem;max-width:60rem}.notification__message__content__text--expanded{overflow:auto;white-space:pre-line;width:60rem}.notification__actions{padding:.8rem 0 .8rem 1rem !important}.notification__action{display:flex;align-items:center;justify-content:center;width:2rem;color:var(--color-dark-grey-400) !important}.notification__action:hover{color:var(--color-light-grey-400) !important}.text-editor__container{height:100%;width:100%;background:var(--color-dark-grey-50)}.text-editor__body{height:100%;width:100%;position:absolute;top:0;left:0}/*# sourceMappingURL=index.css.map */
|
package/lib/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../style/_extensions.scss","../style/components/_app.scss","../../../node_modules/@finos/legend-art/scss/_mixins.scss","../style/components/_blocking-alert.scss","../style/components/_backdrop.scss","../style/components/_lambda-editor.scss","../style/components/_notification.scss","../style/components/_text-editor.scss"],"names":[],"mappings":"AAgBA,MACE,+CACA,2CAEA,mDACA,+CACA,4CACA,uCACA,sCACA,6CACA,sCACA,yCACA,2CACA,yCACA,wCACA,2CACA,0CACA,8CACA,0CACA,8CACA,2CACA,iDACA,sCACA,sCACA,4CAIA,cACE,yBAGF,oBACE,+BAGF,aACE,wBAGF,gBACE,2BAGF,oBACE,+BAGF,kBACE,6BAGF,mBACE,8BAGF,gBACE,2BAGF,iBACE,4BAGF,wBACE,mCAGF,gBACE,2BAGF,kBACE,6BAGF,eACE,0BAGF,mBACE,8BAGF,eACE,0BAGF,kBACE,6BAGF,iBACE,4BAGF,cACE,yBAGF,eACE,0BAGF,gBACE,2BAGF,mBACE,8BAGF,gBACE,2BAKF,6CAEE,8BAGF,yBACE,oCAGF,kBACE,6BAGF,qBACE,gCAGF,yBACE,oCAGF,uBACE,kCAGF,wBACE,mCAGF,qBACE,gCAGF,qBACE,gCAGF,uBACE,kCAGF,sBACE,iCAGF,qBACE,gCAGF,wBACE,mCAGF,qBACE,gCAGF,wBACE,mCC9KJ,KACE,YAEA,WACE,YAGF,aCuBA,aACA,8BDrBE,WACA,sCACA,cAEA,sBCgBF,aACA,8BDdI,WACA,OACA,QACA,cACA,cACA,UAGF,oBCbF,aACA,mBDeI,qBACA,mBACA,gBACA,iBACA,mBACA,mBACA,2BACA,uBAGF,mBChCF,aACA,mBACA,uBDiCI,6BACA,aACA,cACA,eAEA,uBACE,aACA,eACA,kCAIJ,kBACE,oBACA,mBACA,iBACA,sCACA,gBACA,oBACA,cACA,iBACA,0CACA,gBACA,8BACA,eAGF,wBACE,gBACA,iBACA,sCACA,kCACA,gBACA,8BAGF,yBACE,gBACA,iBACA,cACA,kCACA,gBACA,iCACA,8BAGF,sBC3EF,aACA,mBD8EE,qBCrFF,aACA,mBACA,uBDsFI,aACA,YAEA,yBACE,kCACA,eAIJ,mBACE,YAGF,yBCrGF,aACA,mBACA,uBDuGE,2BACE,eAIJ,cACE,qCACA,2BEtHJ,gBACE,UAEA,gCACE,wBAGF,2BACE,8BAGF,qBDLA,aACA,mBACA,uBCME,cACA,oBACA,YACA,iCAGF,6BACE,mBACA,eACA,mBAGF,yBACE,kBAGF,iCACE,kBACA,iBACA,4BACA,gBAGF,8BACE,kCACA,gBAGF,6BACE,2BACA,iBACA,gBACA,gBAGF,0BACE,yCAGF,yBACE,yCAEA,uCACE,iCAGF,sDACE,4BC/DN,UACE,kDACA,uBAEA,mBACE,YACA,kBACA,2DCLJ,eHYE,aACA,mBGVA,cACA,cACA,YACA,oBACA,sCAKE,8FAEE,iDAGF,wDACE,aAIJ,8BACE,kBACA,YACA,WAIA,6DACE,gBAIF,uHAEE,yBAGF,iEACE,qBACA,uBAGF,qDHhCF,aACA,mBGkCI,yBAIJ,6BHvCA,aACA,mBGyCE,YACA,gBACA,8CACA,kBACA,iBACA,sCAGF,6CHxDA,aACA,mBACA,uBGyDE,YACA,cACA,oBACA,gBACA,iCACA,qCACA,6CACA,iBACA,eAGF,wDACE,eAGF,0DACE,mCACA,iCACA,+BAGF,mCHhFA,aACA,mBACA,uBGiFE,YACA,aACA,sCACA,8CACA,kCACA,8BACA,eAGF,6CACE,iCACA,mBAGF,yBACE,wBAGF,sDACE,uBACA,oBAGF,4DACE,sCACA,wCAGF,uEACE,iCACA,mCACA,+BAGF,uBACE,aACA,iBACA,sCACA,
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../style/_extensions.scss","../style/components/_app.scss","../../../node_modules/@finos/legend-art/scss/_mixins.scss","../style/components/_blocking-alert.scss","../style/components/_backdrop.scss","../style/components/_lambda-editor.scss","../style/components/_notification.scss","../style/components/_text-editor.scss"],"names":[],"mappings":"AAgBA,MACE,+CACA,2CAEA,mDACA,+CACA,4CACA,uCACA,sCACA,6CACA,sCACA,yCACA,2CACA,yCACA,wCACA,2CACA,0CACA,8CACA,0CACA,8CACA,2CACA,iDACA,sCACA,sCACA,4CAIA,cACE,yBAGF,oBACE,+BAGF,aACE,wBAGF,gBACE,2BAGF,oBACE,+BAGF,kBACE,6BAGF,mBACE,8BAGF,gBACE,2BAGF,iBACE,4BAGF,wBACE,mCAGF,gBACE,2BAGF,kBACE,6BAGF,eACE,0BAGF,mBACE,8BAGF,eACE,0BAGF,kBACE,6BAGF,iBACE,4BAGF,cACE,yBAGF,eACE,0BAGF,gBACE,2BAGF,mBACE,8BAGF,gBACE,2BAKF,6CAEE,8BAGF,yBACE,oCAGF,kBACE,6BAGF,qBACE,gCAGF,yBACE,oCAGF,uBACE,kCAGF,wBACE,mCAGF,qBACE,gCAGF,qBACE,gCAGF,uBACE,kCAGF,sBACE,iCAGF,qBACE,gCAGF,wBACE,mCAGF,qBACE,gCAGF,wBACE,mCC9KJ,KACE,YAEA,WACE,YAGF,aCuBA,aACA,8BDrBE,WACA,sCACA,cAEA,sBCgBF,aACA,8BDdI,WACA,OACA,QACA,cACA,cACA,UAGF,oBCbF,aACA,mBDeI,qBACA,mBACA,gBACA,iBACA,mBACA,mBACA,2BACA,uBAGF,mBChCF,aACA,mBACA,uBDiCI,6BACA,aACA,cACA,eAEA,uBACE,aACA,eACA,kCAIJ,kBACE,oBACA,mBACA,iBACA,sCACA,gBACA,oBACA,cACA,iBACA,0CACA,gBACA,8BACA,eAGF,wBACE,gBACA,iBACA,sCACA,kCACA,gBACA,8BAGF,yBACE,gBACA,iBACA,cACA,kCACA,gBACA,iCACA,8BAGF,sBC3EF,aACA,mBD8EE,qBCrFF,aACA,mBACA,uBDsFI,aACA,YAEA,yBACE,kCACA,eAIJ,mBACE,YAGF,yBCrGF,aACA,mBACA,uBDuGE,2BACE,eAIJ,cACE,qCACA,2BEtHJ,gBACE,UAEA,gCACE,wBAGF,2BACE,8BAGF,qBDLA,aACA,mBACA,uBCME,cACA,oBACA,YACA,iCAGF,6BACE,mBACA,eACA,mBAGF,yBACE,kBAGF,iCACE,kBACA,iBACA,4BACA,gBAGF,8BACE,kCACA,gBAGF,6BACE,2BACA,iBACA,gBACA,gBAGF,0BACE,yCAGF,yBACE,yCAEA,uCACE,iCAGF,sDACE,4BC/DN,UACE,kDACA,uBAEA,mBACE,YACA,kBACA,2DCLJ,eHYE,aACA,mBGVA,cACA,cACA,YACA,oBACA,sCAKE,8FAEE,iDAGF,wDACE,aAIJ,8BACE,kBACA,YACA,WAIA,6DACE,gBAIF,uHAEE,yBAGF,iEACE,qBACA,uBAGF,qDHhCF,aACA,mBGkCI,yBAIJ,6BHvCA,aACA,mBGyCE,YACA,gBACA,8CACA,kBACA,iBACA,sCAGF,6CHxDA,aACA,mBACA,uBGyDE,YACA,cACA,oBACA,gBACA,iCACA,qCACA,6CACA,iBACA,eAGF,wDACE,eAGF,0DACE,mCACA,iCACA,+BAGF,mCHhFA,aACA,mBACA,uBGiFE,YACA,aACA,sCACA,8CACA,kCACA,8BACA,eAGF,6CACE,iCACA,mBAGF,yBACE,wBAGF,sDACE,uBACA,oBAGF,4DACE,sCACA,wCAGF,uEACE,iCACA,mCACA,+BAGF,uBACE,aACA,iBACA,sCACA,YACA,oDAEA,2BACE,kCAKN,+BACE,WACA,iBACA,gCACA,gCACA,oBACA,eAEA,+CACE,oBACA,mBACA,cAGF,uDHxHA,aACA,8BG0HE,mDACA,cAGF,mEACE,eACA,iBACA,cACA,uCACA,mBACA,oBACA,gBACA,iCAMA,sCACE,WACA,YACA,qCAIJ,wCACE,mDAEA,uDACE,gCAGF,mEHnLF,aACA,mBACA,uBGoLI,kBACA,gCACA,cACA,oBACA,cACA,iBACA,iBAIJ,+BACE,uBACA,qCACA,iBAGE,8HAEE,gDC7MN,wBACE,uBACA,sBAGF,uBACE,uDACA,6CACA,+BACA,kCAGF,gCACE,aACA,uBACA,eAEA,uCACE,sCAIJ,sCACE,kBACA,mBAGF,0CACE,iBAGF,4CACE,kCAGF,6CACE,2BAGF,+CACE,8BAGF,+CACE,6BAGF,sCJ1BA,mBACA,uBACA,gBACA,sBACA,gBIyBE,iBACA,gBAEA,gDACE,cAIA,qBACA,YAIJ,uBACE,sCAGF,sBJ9DA,aACA,mBACA,uBI+DE,WACA,4CAGF,4BACE,6CC7EF,wBACE,YACA,WACA,qCAGF,mBACE,YACA,WACA,kBACA,MACA","file":"index.css"}
|
package/lib/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
export * from './const';
|
|
17
|
+
export * from './application/LegendApplicationPluginManager';
|
|
17
18
|
export * from './application/LegendApplication';
|
|
18
19
|
export * from './components/ApplicationStoreProvider';
|
|
19
20
|
export * from './components/WebApplicationNavigatorProvider';
|
|
@@ -34,5 +35,4 @@ export { LambdaEditorState } from './stores/LambdaEditorState';
|
|
|
34
35
|
export * from './stores/PackageableElementOption';
|
|
35
36
|
export { GRAMMAR_ELEMENT_TYPE_LABEL } from './stores/PureLanguageSupport';
|
|
36
37
|
export * from './stores/ApplicationStoreTestUtils';
|
|
37
|
-
export * from './network/TelemetryEvent';
|
|
38
38
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.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AAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAE1C,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,cAAc,mCAAmC,CAAC;AAElD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE1E,cAAc,oCAAoC,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
export * from './const';
|
|
17
|
+
export * from './application/LegendApplicationPluginManager';
|
|
17
18
|
export * from './application/LegendApplication';
|
|
18
19
|
export * from './components/ApplicationStoreProvider';
|
|
19
20
|
export * from './components/WebApplicationNavigatorProvider';
|
|
@@ -34,5 +35,4 @@ export { LambdaEditorState } from './stores/LambdaEditorState';
|
|
|
34
35
|
export * from './stores/PackageableElementOption';
|
|
35
36
|
export { GRAMMAR_ELEMENT_TYPE_LABEL } from './stores/PureLanguageSupport';
|
|
36
37
|
export * from './stores/ApplicationStoreTestUtils';
|
|
37
|
-
export * from './network/TelemetryEvent';
|
|
38
38
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,SAAS,CAAC;AAExB,c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AE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAE1C,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,cAAc,mCAAmC,CAAC;AAElD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE1E,cAAc,oCAAoC,CAAC"}
|
|
@@ -14,9 +14,11 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
/// <reference types="react" />
|
|
17
|
-
import type {
|
|
17
|
+
import type { SuperGenericFunction } from '@finos/legend-shared';
|
|
18
|
+
import { EventNotifierService, TracerService, TelemetryService, Log } from '@finos/legend-shared';
|
|
18
19
|
import type { LegendApplicationConfig } from './ApplicationConfig';
|
|
19
20
|
import type { WebApplicationNavigator } from './WebApplicationNavigator';
|
|
21
|
+
import type { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager';
|
|
20
22
|
export declare enum ActionAlertType {
|
|
21
23
|
STANDARD = "STANDARD",
|
|
22
24
|
CAUTION = "CAUTION"
|
|
@@ -68,11 +70,14 @@ export declare class Notification {
|
|
|
68
70
|
export declare class ApplicationStore<T extends LegendApplicationConfig> {
|
|
69
71
|
navigator: WebApplicationNavigator;
|
|
70
72
|
notification?: Notification | undefined;
|
|
71
|
-
log: Log;
|
|
72
73
|
blockingAlertInfo?: BlockingAlertInfo | undefined;
|
|
73
74
|
actionAlertInfo?: ActionAlertInfo | undefined;
|
|
74
75
|
config: T;
|
|
75
|
-
|
|
76
|
+
log: Log;
|
|
77
|
+
telemetryService: TelemetryService;
|
|
78
|
+
tracerService: TracerService;
|
|
79
|
+
eventNotifierService: EventNotifierService;
|
|
80
|
+
constructor(config: T, navigator: WebApplicationNavigator, pluginManager: LegendApplicationPluginManager);
|
|
76
81
|
setBlockingAlert(alertInfo: BlockingAlertInfo | undefined): void;
|
|
77
82
|
setActionAltertInfo(alertInfo: ActionAlertInfo | undefined): void;
|
|
78
83
|
setNotification(notification: Notification | undefined): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationStore.d.ts","sourceRoot":"","sources":["../../src/stores/ApplicationStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAEH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ApplicationStore.d.ts","sourceRoot":"","sources":["../../src/stores/ApplicationStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,gBAAgB,EAEhB,GAAG,EAKJ,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,+CAA+C,CAAC;AAEpG,oBAAY,eAAe;IACzB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAED,oBAAY,qBAAqB;IAC/B,QAAQ,aAAa;IACrB,oBAAoB,yBAAyB;IAC7C,OAAO,YAAY;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAA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