@finos/legend-application 15.0.7 → 15.0.9
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__/{LegendApplicationTheme.d.ts → LegendApplicationColorTheme.d.ts} +1 -1
- package/lib/__lib__/LegendApplicationColorTheme.d.ts.map +1 -0
- package/lib/__lib__/{LegendApplicationTheme.js → LegendApplicationColorTheme.js} +15 -1
- package/lib/__lib__/LegendApplicationColorTheme.js.map +1 -0
- package/lib/__lib__/LegendApplicationSetting.d.ts +1 -1
- package/lib/__lib__/LegendApplicationSetting.d.ts.map +1 -1
- package/lib/__lib__/LegendApplicationSetting.js +1 -1
- package/lib/__lib__/LegendApplicationSetting.js.map +1 -1
- package/lib/index.css +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/package.json +3 -3
- package/lib/stores/Core_LegendApplicationPlugin.js +1 -1
- package/lib/stores/Core_LegendApplicationPlugin.js.map +1 -1
- package/lib/stores/LayoutService.d.ts +2 -0
- package/lib/stores/LayoutService.d.ts.map +1 -1
- package/lib/stores/LayoutService.js +6 -1
- package/lib/stores/LayoutService.js.map +1 -1
- package/package.json +6 -6
- package/src/__lib__/{LegendApplicationTheme.ts → LegendApplicationColorTheme.ts} +14 -0
- package/src/__lib__/LegendApplicationSetting.ts +1 -1
- package/src/index.ts +1 -1
- package/src/stores/Core_LegendApplicationPlugin.ts +1 -1
- package/src/stores/LayoutService.ts +14 -1
- package/tsconfig.json +1 -1
- package/lib/__lib__/LegendApplicationTheme.d.ts.map +0 -1
- package/lib/__lib__/LegendApplicationTheme.js.map +0 -1
|
@@ -22,4 +22,4 @@ export declare enum LEGEND_APPLICATION_COLOR_THEME {
|
|
|
22
22
|
export declare const DEFAULT_DARK_COLOR_THEME: ColorTheme;
|
|
23
23
|
export declare const LEGACY_LIGHT_COLOR_THEME: ColorTheme;
|
|
24
24
|
export declare const HIGH_CONTRAST_LIGHT_COLOR_THEME: ColorTheme;
|
|
25
|
-
//# sourceMappingURL=
|
|
25
|
+
//# sourceMappingURL=LegendApplicationColorTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendApplicationColorTheme.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendApplicationColorTheme.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,UAWtC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,UAItC,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,UAW7C,CAAC"}
|
|
@@ -23,6 +23,13 @@ export const DEFAULT_DARK_COLOR_THEME = {
|
|
|
23
23
|
name: 'Default Dark (default)',
|
|
24
24
|
key: LEGEND_APPLICATION_COLOR_THEME.DEFAULT_DARK,
|
|
25
25
|
TEMPORARY__globalCSSClassName: 'theme__default-dark',
|
|
26
|
+
colors: {
|
|
27
|
+
'data-access-overview.chart.access-granted': '#6a9955',
|
|
28
|
+
'data-access-overview.chart.access-approved': '#007acc',
|
|
29
|
+
'data-access-overview.chart.access-requested': '#fbbc05',
|
|
30
|
+
'data-access-overview.chart.access-not-granted': '#ea4646',
|
|
31
|
+
'data-access-overview.chart.unsupported-access': '#2d2d2d',
|
|
32
|
+
},
|
|
26
33
|
};
|
|
27
34
|
export const LEGACY_LIGHT_COLOR_THEME = {
|
|
28
35
|
name: 'Legacy Light',
|
|
@@ -33,5 +40,12 @@ export const HIGH_CONTRAST_LIGHT_COLOR_THEME = {
|
|
|
33
40
|
name: 'High-Contrast Light',
|
|
34
41
|
key: LEGEND_APPLICATION_COLOR_THEME.HIGH_CONTRAST_LIGHT,
|
|
35
42
|
TEMPORARY__globalCSSClassName: 'theme__hc-light',
|
|
43
|
+
colors: {
|
|
44
|
+
'data-access-overview.chart.access-granted': '#52a31d',
|
|
45
|
+
'data-access-overview.chart.access-approved': '#3d8df5',
|
|
46
|
+
'data-access-overview.chart.access-requested': '#f5c518',
|
|
47
|
+
'data-access-overview.chart.access-not-granted': '#fa5343',
|
|
48
|
+
'data-access-overview.chart.unsupported-access': '#e1e7ea',
|
|
49
|
+
},
|
|
36
50
|
};
|
|
37
|
-
//# sourceMappingURL=
|
|
51
|
+
//# sourceMappingURL=LegendApplicationColorTheme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendApplicationColorTheme.js","sourceRoot":"","sources":["../../src/__lib__/LegendApplicationColorTheme.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;IACpD,MAAM,EAAE;QACN,2CAA2C,EAAE,SAAS;QACtD,4CAA4C,EAAE,SAAS;QACvD,6CAA6C,EAAE,SAAS;QACxD,+CAA+C,EAAE,SAAS;QAC1D,+CAA+C,EAAE,SAAS;KAC3D;CACF,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;IAChD,MAAM,EAAE;QACN,2CAA2C,EAAE,SAAS;QACtD,4CAA4C,EAAE,SAAS;QACvD,6CAA6C,EAAE,SAAS;QACxD,+CAA+C,EAAE,SAAS;QAC1D,+CAA+C,EAAE,SAAS;KAC3D;CACF,CAAC"}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { LEGEND_APPLICATION_COLOR_THEME } from './
|
|
16
|
+
import { LEGEND_APPLICATION_COLOR_THEME } from './LegendApplicationColorTheme.js';
|
|
17
17
|
export declare enum LEGEND_APPLICATION_SETTING_KEY {
|
|
18
18
|
COLOR_THEME = "application.layout.colorTheme"
|
|
19
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendApplicationSetting.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendApplicationSetting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,8BAA8B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"LegendApplicationSetting.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendApplicationSetting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAElF,oBAAY,8BAA8B;IACxC,WAAW,kCAAkC;CAC9C;AAED,eAAO,MAAM,iCAAiC;;;;CAI7C,CAAC"}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { LEGEND_APPLICATION_COLOR_THEME } from './
|
|
16
|
+
import { LEGEND_APPLICATION_COLOR_THEME } from './LegendApplicationColorTheme.js';
|
|
17
17
|
export var LEGEND_APPLICATION_SETTING_KEY;
|
|
18
18
|
(function (LEGEND_APPLICATION_SETTING_KEY) {
|
|
19
19
|
LEGEND_APPLICATION_SETTING_KEY["COLOR_THEME"] = "application.layout.colorTheme";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendApplicationSetting.js","sourceRoot":"","sources":["../../src/__lib__/LegendApplicationSetting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,8BAA8B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"LegendApplicationSetting.js","sourceRoot":"","sources":["../../src/__lib__/LegendApplicationSetting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAElF,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"}
|
package/lib/index.css
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export * from './__lib__/LegendApplicationEvent.js';
|
|
|
21
21
|
export * from './__lib__/LegendApplicationTelemetry.js';
|
|
22
22
|
export * from './__lib__/LegendApplicationSetting.js';
|
|
23
23
|
export * from './__lib__/LegendApplicationDocumentation.js';
|
|
24
|
-
export { LEGEND_APPLICATION_COLOR_THEME } from './__lib__/
|
|
24
|
+
export { LEGEND_APPLICATION_COLOR_THEME } from './__lib__/LegendApplicationColorTheme.js';
|
|
25
25
|
export * from './components/ApplicationStoreProvider.js';
|
|
26
26
|
export * from './components/ApplicationFrameworkProvider.js';
|
|
27
27
|
export * from './components/useApplicationNavigationContext.js';
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,+BAA+B,CAAC;AAE9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,0CAA0C,CAAC;AACzD,cAAc,iDAAiD,CAAC;AAEhE,cAAc,qCAAqC,CAAC;AACpD,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,OAAO,EAAE,8BAA8B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,+BAA+B,CAAC;AAE9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,0CAA0C,CAAC;AACzD,cAAc,iDAAiD,CAAC;AAEhE,cAAc,qCAAqC,CAAC;AACpD,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,OAAO,EAAE,8BAA8B,EAAE,MAAM,0CAA0C,CAAC;AAE1F,cAAc,0CAA0C,CAAC;AACzD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,iDAAiD,CAAC;AAChE,cAAc,6BAA6B,CAAC;AAC5C,OAAO,EACL,0BAA0B,EAC1B,iBAAiB,GAClB,MAAM,uDAAuD,CAAC;AAE/D,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,cAAc,GACpB,MAAM,0CAA0C,CAAC;AAClD,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iDAAiD,CAAC;AAChE,cAAc,qCAAqC,CAAC;AACpD,cAAc,0CAA0C,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -21,7 +21,7 @@ export * from './__lib__/LegendApplicationEvent.js';
|
|
|
21
21
|
export * from './__lib__/LegendApplicationTelemetry.js';
|
|
22
22
|
export * from './__lib__/LegendApplicationSetting.js';
|
|
23
23
|
export * from './__lib__/LegendApplicationDocumentation.js';
|
|
24
|
-
export { LEGEND_APPLICATION_COLOR_THEME } from './__lib__/
|
|
24
|
+
export { LEGEND_APPLICATION_COLOR_THEME } from './__lib__/LegendApplicationColorTheme.js';
|
|
25
25
|
export * from './components/ApplicationStoreProvider.js';
|
|
26
26
|
export * from './components/ApplicationFrameworkProvider.js';
|
|
27
27
|
export * from './components/useApplicationNavigationContext.js';
|
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,+BAA+B,CAAC;AAE9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,0CAA0C,CAAC;AACzD,cAAc,iDAAiD,CAAC;AAEhE,cAAc,qCAAqC,CAAC;AACpD,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,OAAO,EAAE,8BAA8B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,+BAA+B,CAAC;AAE9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,0CAA0C,CAAC;AACzD,cAAc,iDAAiD,CAAC;AAEhE,cAAc,qCAAqC,CAAC;AACpD,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,OAAO,EAAE,8BAA8B,EAAE,MAAM,0CAA0C,CAAC;AAE1F,cAAc,0CAA0C,CAAC;AACzD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,iDAAiD,CAAC;AAChE,cAAc,6BAA6B,CAAC;AAC5C,OAAO,EACL,0BAA0B,EAC1B,iBAAiB,GAClB,MAAM,uDAAuD,CAAC;AAE/D,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EACL,yBAAyB,EACzB,iBAAiB,GAIlB,MAAM,0CAA0C,CAAC;AAClD,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iDAAiD,CAAC;AAChE,cAAc,qCAAqC,CAAC;AACpD,cAAc,0CAA0C,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC"}
|
package/lib/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos/legend-application",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.9",
|
|
4
4
|
"description": "Legend application core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@finos/legend-art": "workspace:*",
|
|
49
49
|
"@finos/legend-shared": "workspace:*",
|
|
50
|
-
"@types/react": "18.2.
|
|
51
|
-
"@types/react-dom": "18.2.
|
|
50
|
+
"@types/react": "18.2.1",
|
|
51
|
+
"@types/react-dom": "18.2.2",
|
|
52
52
|
"@types/react-router-dom": "5.3.3",
|
|
53
53
|
"history": "5.3.0",
|
|
54
54
|
"mobx": "6.9.0",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import packageJson from '../../package.json';
|
|
17
17
|
import { LEGEND_APPLICATION_SETTING_CONFIG } from '../__lib__/LegendApplicationSetting.js';
|
|
18
|
-
import { HIGH_CONTRAST_LIGHT_COLOR_THEME, LEGACY_LIGHT_COLOR_THEME, } from '../__lib__/
|
|
18
|
+
import { HIGH_CONTRAST_LIGHT_COLOR_THEME, LEGACY_LIGHT_COLOR_THEME, } from '../__lib__/LegendApplicationColorTheme.js';
|
|
19
19
|
import { LegendApplicationPlugin, } from './LegendApplicationPlugin.js';
|
|
20
20
|
import { collectSettingConfigurationEntriesFromConfig, } from './SettingService.js';
|
|
21
21
|
import { configure as configureMobx } from 'mobx';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Core_LegendApplicationPlugin.js","sourceRoot":"","sources":["../../src/stores/Core_LegendApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAE7C,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EACL,+BAA+B,EAC/B,wBAAwB,GACzB,MAAM,
|
|
1
|
+
{"version":3,"file":"Core_LegendApplicationPlugin.js","sourceRoot":"","sources":["../../src/stores/Core_LegendApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,oBAAo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
|
25
|
+
colors?: Record<string, string | undefined>;
|
|
25
26
|
};
|
|
26
27
|
export declare class LayoutService {
|
|
27
28
|
readonly applicationStore: GenericLegendApplicationStore;
|
|
@@ -52,5 +53,6 @@ export declare class LayoutService {
|
|
|
52
53
|
setColorTheme(key: string, options?: {
|
|
53
54
|
persist?: boolean | undefined;
|
|
54
55
|
}): void;
|
|
56
|
+
getColor(key: string): string;
|
|
55
57
|
}
|
|
56
58
|
//# sourceMappingURL=LayoutService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutService.d.ts","sourceRoot":"","sources":["../../src/stores/LayoutService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAS3E,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,6BAA6B,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"LayoutService.d.ts","sourceRoot":"","sources":["../../src/stores/LayoutService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAS3E,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,6BAA6B,EAAE,MAAM,CAAC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;CAC7C,CAAC;AAEF,qBAAa,aAAa;IACxB,QAAQ,CAAC,gBAAgB,EAAE,6BAA6B,CAAC;IAGzD,0BAA0B,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChD,YAAY,UAAS;IAGrB,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAiC;IACpE,iBAAiB,EAAG,UAAU,CAAC;gBAEnB,gBAAgB,EAAE,6BAA6B;IAkD3D,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS;IAIhD;;;;;;;OAOG;IACH,6BAA6B,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAI5D,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAInC;;;;;OAKG;IACH,IAAI,mCAAmC,IAAI,OAAO,CAIjD;IAED,OAAO,CAAC,iCAAiC;IAYzC,aAAa,CACX,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;KAAE,GAC1C,IAAI;IAkBP,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;CAW9B"}
|
|
@@ -17,7 +17,7 @@ import { action, computed, makeObservable, observable } from 'mobx';
|
|
|
17
17
|
import { LEGEND_APPLICATION_SETTING_KEY } from '../__lib__/LegendApplicationSetting.js';
|
|
18
18
|
import { LogEvent, guaranteeNonNullable } from '@finos/legend-shared';
|
|
19
19
|
import { APPLICATION_EVENT } from '../__lib__/LegendApplicationEvent.js';
|
|
20
|
-
import { DEFAULT_DARK_COLOR_THEME, LEGEND_APPLICATION_COLOR_THEME, } from '../__lib__/
|
|
20
|
+
import { DEFAULT_DARK_COLOR_THEME, LEGEND_APPLICATION_COLOR_THEME, } from '../__lib__/LegendApplicationColorTheme.js';
|
|
21
21
|
export class LayoutService {
|
|
22
22
|
applicationStore;
|
|
23
23
|
// backdrop
|
|
@@ -103,5 +103,10 @@ export class LayoutService {
|
|
|
103
103
|
this.applicationStore.settingService.persistValue(LEGEND_APPLICATION_SETTING_KEY.COLOR_THEME, key);
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
+
getColor(key) {
|
|
107
|
+
return (this.currentColorTheme.colors?.[key] ??
|
|
108
|
+
guaranteeNonNullable(this.colorThemeRegistry.get(LEGEND_APPLICATION_COLOR_THEME.DEFAULT_DARK)).colors?.[key] ??
|
|
109
|
+
'transparent');
|
|
110
|
+
}
|
|
106
111
|
}
|
|
107
112
|
//# sourceMappingURL=LayoutService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutService.js","sourceRoot":"","sources":["../../src/stores/LayoutService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEpE,OAAO,EAAE,8BAA8B,EAAE,MAAM,wCAAwC,CAAC;AACxF,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EACL,wBAAwB,EACxB,8BAA8B,GAC/B,MAAM,
|
|
1
|
+
{"version":3,"file":"LayoutService.js","sourceRoot":"","sources":["../../src/stores/LayoutService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEpE,OAAO,EAAE,8BAA8B,EAAE,MAAM,wCAAwC,CAAC;AACxF,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EACL,wBAAwB,EACxB,8BAA8B,GAC/B,MAAM,2CAA2C,CAAC;AAanD,MAAM,OAAO,aAAa;IACf,gBAAgB,CAAgC;IAEzD,WAAW;IACX,0BAA0B,CAAsB;IAChD,YAAY,GAAG,KAAK,CAAC;IAErB,cAAc;IACG,kBAAkB,GAAG,IAAI,GAAG,EAAsB,CAAC;IACpE,iBAAiB,CAAc;IAE/B,YAAY,gBAA+C;QACzD,cAAc,C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,EAAE,OAAO,EAAE;YACpB,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,YAAY,CAC/C,8BAA8B,CAAC,WAAW,EAC1C,GAAG,CACJ,CAAC;SACH;IACH,CAAC;IAED,QAAQ,CAAC,GAAW;QAClB,OAAO,CACL,IAAI,CAAC,iBAAiB,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC;YACpC,oBAAoB,CAClB,IAAI,CAAC,kBAAkB,CAAC,GAAG,CACzB,8BAA8B,CAAC,YAAY,CAC5C,CACF,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC;YACf,aAAa,CACd,CAAC;IACJ,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos/legend-application",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.9",
|
|
4
4
|
"description": "Legend application core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"test:watch": "jest --watch"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@finos/legend-art": "7.0.
|
|
49
|
-
"@finos/legend-shared": "10.0.
|
|
50
|
-
"@types/react": "18.2.
|
|
51
|
-
"@types/react-dom": "18.2.
|
|
48
|
+
"@finos/legend-art": "7.0.10",
|
|
49
|
+
"@finos/legend-shared": "10.0.4",
|
|
50
|
+
"@types/react": "18.2.1",
|
|
51
|
+
"@types/react-dom": "18.2.2",
|
|
52
52
|
"@types/react-router-dom": "5.3.3",
|
|
53
53
|
"history": "5.3.0",
|
|
54
54
|
"mobx": "6.9.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"xterm-addon-webgl": "0.14.0"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@finos/legend-dev-utils": "2.0.
|
|
71
|
+
"@finos/legend-dev-utils": "2.0.59",
|
|
72
72
|
"@jest/globals": "29.5.0",
|
|
73
73
|
"cross-env": "7.0.3",
|
|
74
74
|
"eslint": "8.39.0",
|
|
@@ -26,6 +26,13 @@ export const DEFAULT_DARK_COLOR_THEME: ColorTheme = {
|
|
|
26
26
|
name: 'Default Dark (default)',
|
|
27
27
|
key: LEGEND_APPLICATION_COLOR_THEME.DEFAULT_DARK,
|
|
28
28
|
TEMPORARY__globalCSSClassName: 'theme__default-dark',
|
|
29
|
+
colors: {
|
|
30
|
+
'data-access-overview.chart.access-granted': '#6a9955',
|
|
31
|
+
'data-access-overview.chart.access-approved': '#007acc',
|
|
32
|
+
'data-access-overview.chart.access-requested': '#fbbc05',
|
|
33
|
+
'data-access-overview.chart.access-not-granted': '#ea4646',
|
|
34
|
+
'data-access-overview.chart.unsupported-access': '#2d2d2d',
|
|
35
|
+
},
|
|
29
36
|
};
|
|
30
37
|
|
|
31
38
|
export const LEGACY_LIGHT_COLOR_THEME: ColorTheme = {
|
|
@@ -38,4 +45,11 @@ export const HIGH_CONTRAST_LIGHT_COLOR_THEME: ColorTheme = {
|
|
|
38
45
|
name: 'High-Contrast Light',
|
|
39
46
|
key: LEGEND_APPLICATION_COLOR_THEME.HIGH_CONTRAST_LIGHT,
|
|
40
47
|
TEMPORARY__globalCSSClassName: 'theme__hc-light',
|
|
48
|
+
colors: {
|
|
49
|
+
'data-access-overview.chart.access-granted': '#52a31d',
|
|
50
|
+
'data-access-overview.chart.access-approved': '#3d8df5',
|
|
51
|
+
'data-access-overview.chart.access-requested': '#f5c518',
|
|
52
|
+
'data-access-overview.chart.access-not-granted': '#fa5343',
|
|
53
|
+
'data-access-overview.chart.unsupported-access': '#e1e7ea',
|
|
54
|
+
},
|
|
41
55
|
};
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { LEGEND_APPLICATION_COLOR_THEME } from './
|
|
17
|
+
import { LEGEND_APPLICATION_COLOR_THEME } from './LegendApplicationColorTheme.js';
|
|
18
18
|
|
|
19
19
|
export enum LEGEND_APPLICATION_SETTING_KEY {
|
|
20
20
|
COLOR_THEME = 'application.layout.colorTheme',
|
package/src/index.ts
CHANGED
|
@@ -24,7 +24,7 @@ export * from './__lib__/LegendApplicationEvent.js';
|
|
|
24
24
|
export * from './__lib__/LegendApplicationTelemetry.js';
|
|
25
25
|
export * from './__lib__/LegendApplicationSetting.js';
|
|
26
26
|
export * from './__lib__/LegendApplicationDocumentation.js';
|
|
27
|
-
export { LEGEND_APPLICATION_COLOR_THEME } from './__lib__/
|
|
27
|
+
export { LEGEND_APPLICATION_COLOR_THEME } from './__lib__/LegendApplicationColorTheme.js';
|
|
28
28
|
|
|
29
29
|
export * from './components/ApplicationStoreProvider.js';
|
|
30
30
|
export * from './components/ApplicationFrameworkProvider.js';
|
|
@@ -20,7 +20,7 @@ import { LEGEND_APPLICATION_SETTING_CONFIG } from '../__lib__/LegendApplicationS
|
|
|
20
20
|
import {
|
|
21
21
|
HIGH_CONTRAST_LIGHT_COLOR_THEME,
|
|
22
22
|
LEGACY_LIGHT_COLOR_THEME,
|
|
23
|
-
} from '../__lib__/
|
|
23
|
+
} from '../__lib__/LegendApplicationColorTheme.js';
|
|
24
24
|
import type { ColorTheme } from './LayoutService.js';
|
|
25
25
|
import {
|
|
26
26
|
LegendApplicationPlugin,
|
|
@@ -22,7 +22,7 @@ import { APPLICATION_EVENT } from '../__lib__/LegendApplicationEvent.js';
|
|
|
22
22
|
import {
|
|
23
23
|
DEFAULT_DARK_COLOR_THEME,
|
|
24
24
|
LEGEND_APPLICATION_COLOR_THEME,
|
|
25
|
-
} from '../__lib__/
|
|
25
|
+
} from '../__lib__/LegendApplicationColorTheme.js';
|
|
26
26
|
|
|
27
27
|
export type ColorTheme = {
|
|
28
28
|
name: string;
|
|
@@ -32,6 +32,7 @@ export type ColorTheme = {
|
|
|
32
32
|
* See https://github.com/finos/legend-studio/issues/264
|
|
33
33
|
*/
|
|
34
34
|
TEMPORARY__globalCSSClassName: string;
|
|
35
|
+
colors?: Record<string, string | undefined>;
|
|
35
36
|
};
|
|
36
37
|
|
|
37
38
|
export class LayoutService {
|
|
@@ -159,4 +160,16 @@ export class LayoutService {
|
|
|
159
160
|
);
|
|
160
161
|
}
|
|
161
162
|
}
|
|
163
|
+
|
|
164
|
+
getColor(key: string): string {
|
|
165
|
+
return (
|
|
166
|
+
this.currentColorTheme.colors?.[key] ??
|
|
167
|
+
guaranteeNonNullable(
|
|
168
|
+
this.colorThemeRegistry.get(
|
|
169
|
+
LEGEND_APPLICATION_COLOR_THEME.DEFAULT_DARK,
|
|
170
|
+
),
|
|
171
|
+
).colors?.[key] ??
|
|
172
|
+
'transparent'
|
|
173
|
+
);
|
|
174
|
+
}
|
|
162
175
|
}
|
package/tsconfig.json
CHANGED
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"./src/__test__.ts",
|
|
36
36
|
"./src/browser.ts",
|
|
37
37
|
"./src/index.ts",
|
|
38
|
+
"./src/__lib__/LegendApplicationColorTheme.ts",
|
|
38
39
|
"./src/__lib__/LegendApplicationDocumentation.ts",
|
|
39
40
|
"./src/__lib__/LegendApplicationEvent.ts",
|
|
40
41
|
"./src/__lib__/LegendApplicationNavigation.ts",
|
|
41
42
|
"./src/__lib__/LegendApplicationSetting.ts",
|
|
42
43
|
"./src/__lib__/LegendApplicationTelemetry.ts",
|
|
43
|
-
"./src/__lib__/LegendApplicationTheme.ts",
|
|
44
44
|
"./src/application/LegendApplication.ts",
|
|
45
45
|
"./src/application/LegendApplicationConfig.ts",
|
|
46
46
|
"./src/application/LegendApplicationPluginManager.ts",
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|