@finos/legend-application 16.0.70 → 16.0.72
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/application/LegendApplicationConfig.d.ts +0 -28
- package/lib/application/LegendApplicationConfig.d.ts.map +1 -1
- package/lib/application/LegendApplicationConfig.js +2 -40
- package/lib/application/LegendApplicationConfig.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +1 -1
- package/package.json +2 -2
- package/src/application/LegendApplicationConfig.ts +1 -50
|
@@ -31,34 +31,6 @@ export declare class StereotypeConfig {
|
|
|
31
31
|
stereotype: string;
|
|
32
32
|
static readonly serialization: SerializationFactory<StereotypeConfig>;
|
|
33
33
|
}
|
|
34
|
-
export declare class DataProductImageConfig {
|
|
35
|
-
/**
|
|
36
|
-
* Indicates the maximum dimension (width or height) of the image in pixels.
|
|
37
|
-
* Images larger than this will be resized (maintaining aspect ratio)
|
|
38
|
-
* to fit within this dimension.
|
|
39
|
-
*/
|
|
40
|
-
maxDimension: number;
|
|
41
|
-
/**
|
|
42
|
-
* Indicates the maximum size of the image in KB that a user can upload.
|
|
43
|
-
* Images larger than this will not be accepted and the user must upload
|
|
44
|
-
* a smaller image.
|
|
45
|
-
*/
|
|
46
|
-
maxUploadSizeKB: number;
|
|
47
|
-
/**
|
|
48
|
-
* Indicates the maximum size of the image in KB.
|
|
49
|
-
* Images larger than this will be compressed.
|
|
50
|
-
*/
|
|
51
|
-
maxSizeKB: number;
|
|
52
|
-
static readonly serialization: SerializationFactory<DataProductImageConfig>;
|
|
53
|
-
}
|
|
54
|
-
export declare class DataProductConfig {
|
|
55
|
-
classifications: string[];
|
|
56
|
-
publicClassifications: string[];
|
|
57
|
-
classificationDoc: string;
|
|
58
|
-
publicStereotype: StereotypeConfig;
|
|
59
|
-
imageConfig: DataProductImageConfig;
|
|
60
|
-
static readonly serialization: SerializationFactory<DataProductConfig>;
|
|
61
|
-
}
|
|
62
34
|
export interface LegendApplicationConfigurationData {
|
|
63
35
|
appName: string;
|
|
64
36
|
env: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendApplicationConfig.d.ts","sourceRoot":"","sources":["../../src/application/LegendApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,KAAK,2BAA2B,EAEhC,oBAAoB,
|
|
1
|
+
{"version":3,"file":"LegendApplicationConfig.d.ts","sourceRoot":"","sources":["../../src/application/LegendApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,KAAK,2BAA2B,EAEhC,oBAAoB,EACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,wBAAwB,CAAC;AAClF,OAAO,EAGL,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAE5B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAG7E,MAAM,WAAW,4BAA4B;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,qBAAqB;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,gBAAgB;IAC3B,OAAO,EAAG,MAAM,CAAC;IACjB,UAAU,EAAG,MAAM,CAAC;IAEpB,MAAM,CAAC,QAAQ,CAAC,aAAa,yCAK3B;CACH;AAED,MAAM,WAAW,kCAAkC;IACjD,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,CAAC,EAAE;QACd,GAAG,EAAE,MAAM,CAAC;QACZ,K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-13,9 +13,9 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { guaranteeNonEmptyString, guaranteeNonNullable, URL_SEPARATOR, SerializationFactory,
|
|
16
|
+
import { guaranteeNonEmptyString, guaranteeNonNullable, URL_SEPARATOR, SerializationFactory, } from '@finos/legend-shared';
|
|
17
17
|
import { collectKeyedDocumentationEntriesFromConfig, collectContextualDocumentationEntries, collectDocumentationLinkEntryFromConfig, } from '../stores/DocumentationService.js';
|
|
18
|
-
import { createModelSchema,
|
|
18
|
+
import { createModelSchema, primitive } from 'serializr';
|
|
19
19
|
export class StereotypeConfig {
|
|
20
20
|
profile;
|
|
21
21
|
stereotype;
|
|
@@ -24,44 +24,6 @@ export class StereotypeConfig {
|
|
|
24
24
|
stereotype: primitive(),
|
|
25
25
|
}));
|
|
26
26
|
}
|
|
27
|
-
export class DataProductImageConfig {
|
|
28
|
-
/**
|
|
29
|
-
* Indicates the maximum dimension (width or height) of the image in pixels.
|
|
30
|
-
* Images larger than this will be resized (maintaining aspect ratio)
|
|
31
|
-
* to fit within this dimension.
|
|
32
|
-
*/
|
|
33
|
-
maxDimension;
|
|
34
|
-
/**
|
|
35
|
-
* Indicates the maximum size of the image in KB that a user can upload.
|
|
36
|
-
* Images larger than this will not be accepted and the user must upload
|
|
37
|
-
* a smaller image.
|
|
38
|
-
*/
|
|
39
|
-
maxUploadSizeKB;
|
|
40
|
-
/**
|
|
41
|
-
* Indicates the maximum size of the image in KB.
|
|
42
|
-
* Images larger than this will be compressed.
|
|
43
|
-
*/
|
|
44
|
-
maxSizeKB;
|
|
45
|
-
static serialization = new SerializationFactory(createModelSchema(DataProductImageConfig, {
|
|
46
|
-
maxDimension: primitive(),
|
|
47
|
-
maxUploadSizeKB: primitive(),
|
|
48
|
-
maxSizeKB: primitive(),
|
|
49
|
-
}));
|
|
50
|
-
}
|
|
51
|
-
export class DataProductConfig {
|
|
52
|
-
classifications = [];
|
|
53
|
-
publicClassifications = [];
|
|
54
|
-
classificationDoc;
|
|
55
|
-
publicStereotype;
|
|
56
|
-
imageConfig;
|
|
57
|
-
static serialization = new SerializationFactory(createModelSchema(DataProductConfig, {
|
|
58
|
-
classifications: list(primitive()),
|
|
59
|
-
publicClassifications: list(primitive()),
|
|
60
|
-
classificationDoc: primitive(),
|
|
61
|
-
publicStereotype: usingModelSchema(StereotypeConfig.serialization.schema),
|
|
62
|
-
imageConfig: usingModelSchema(DataProductImageConfig.serialization.schema),
|
|
63
|
-
}));
|
|
64
|
-
}
|
|
65
27
|
export class LegendApplicationConfig {
|
|
66
28
|
appName;
|
|
67
29
|
baseAddress;
|
|
@@ -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,EACb,oBAAoB,
|
|
1
|
+
{"version":3,"file":"LegendApplicationConfig.js","sourceRoot":"","sources":["../../src/application/LegendApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EAEpB,aAAa,EACb,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,0CAA0C,EAC1C,qCAAqC,EAOrC,uCAAuC,GACxC,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAazD,MAAM,OAAO,gBAAgB;IAC3B,OAAO,CAAU;IACjB,UAAU,CAAU;IAEpB,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,gBAAgB,EAAE;QAClC,OAAO,EAAE,SAAS,EAAE;QACpB,UAAU,EAAE,SAAS,EAAE;KACxB,CAAC,CACH,CAAC;;AAuBJ,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AE,iBAAiB,IAAI,EAAE,CACxD,CAAC;QAEF,UAAU;QACV,IAAI,CAAC,UAAU,GAAG,oBAAoB,CACpC,KAAK,CAAC,WAAW,CAAC,OAAO,EACzB,+DAA+D,CAChE,CAAC;QACF,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC,WAAW,CAAC,SAAS,CAAC;QACvD,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC,WAAW,CAAC,SAAS,CAAC;IACxD,CAAC;IAES,MAAM,CAAC,kBAAkB,CAAC,GAAW;QAC7C,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC;YACzC,OAAO,MAAM,CAAC,QAAQ,CAAC,MAAM,GAAG,GAAG,CAAC;QACtC,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;CAGF"}
|
package/lib/index.css
CHANGED
package/lib/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos/legend-application",
|
|
3
|
-
"version": "16.0.
|
|
3
|
+
"version": "16.0.72",
|
|
4
4
|
"description": "Legend application core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"test:watch": "jest --watch"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@finos/legend-art": "7.1.
|
|
48
|
+
"@finos/legend-art": "7.1.124",
|
|
49
49
|
"@finos/legend-shared": "11.0.20",
|
|
50
50
|
"@finos/legend-storage": "3.0.139",
|
|
51
51
|
"@types/react": "19.0.10",
|
|
@@ -20,7 +20,6 @@ import {
|
|
|
20
20
|
type ExtensionsConfigurationData,
|
|
21
21
|
URL_SEPARATOR,
|
|
22
22
|
SerializationFactory,
|
|
23
|
-
usingModelSchema,
|
|
24
23
|
} from '@finos/legend-shared';
|
|
25
24
|
import type { LegendApplicationConfigurationInput } from './LegendApplication.js';
|
|
26
25
|
import {
|
|
@@ -35,7 +34,7 @@ import {
|
|
|
35
34
|
collectDocumentationLinkEntryFromConfig,
|
|
36
35
|
} from '../stores/DocumentationService.js';
|
|
37
36
|
import type { SettingOverrideConfigData } from '../stores/SettingService.js';
|
|
38
|
-
import { createModelSchema,
|
|
37
|
+
import { createModelSchema, primitive } from 'serializr';
|
|
39
38
|
|
|
40
39
|
export interface LegendApplicationVersionData {
|
|
41
40
|
buildTime?: string;
|
|
@@ -60,54 +59,6 @@ export class StereotypeConfig {
|
|
|
60
59
|
);
|
|
61
60
|
}
|
|
62
61
|
|
|
63
|
-
export class DataProductImageConfig {
|
|
64
|
-
/**
|
|
65
|
-
* Indicates the maximum dimension (width or height) of the image in pixels.
|
|
66
|
-
* Images larger than this will be resized (maintaining aspect ratio)
|
|
67
|
-
* to fit within this dimension.
|
|
68
|
-
*/
|
|
69
|
-
maxDimension!: number;
|
|
70
|
-
/**
|
|
71
|
-
* Indicates the maximum size of the image in KB that a user can upload.
|
|
72
|
-
* Images larger than this will not be accepted and the user must upload
|
|
73
|
-
* a smaller image.
|
|
74
|
-
*/
|
|
75
|
-
maxUploadSizeKB!: number;
|
|
76
|
-
/**
|
|
77
|
-
* Indicates the maximum size of the image in KB.
|
|
78
|
-
* Images larger than this will be compressed.
|
|
79
|
-
*/
|
|
80
|
-
maxSizeKB!: number;
|
|
81
|
-
|
|
82
|
-
static readonly serialization = new SerializationFactory(
|
|
83
|
-
createModelSchema(DataProductImageConfig, {
|
|
84
|
-
maxDimension: primitive(),
|
|
85
|
-
maxUploadSizeKB: primitive(),
|
|
86
|
-
maxSizeKB: primitive(),
|
|
87
|
-
}),
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export class DataProductConfig {
|
|
92
|
-
classifications: string[] = [];
|
|
93
|
-
publicClassifications: string[] = [];
|
|
94
|
-
classificationDoc!: string;
|
|
95
|
-
publicStereotype!: StereotypeConfig;
|
|
96
|
-
imageConfig!: DataProductImageConfig;
|
|
97
|
-
|
|
98
|
-
static readonly serialization = new SerializationFactory(
|
|
99
|
-
createModelSchema(DataProductConfig, {
|
|
100
|
-
classifications: list(primitive()),
|
|
101
|
-
publicClassifications: list(primitive()),
|
|
102
|
-
classificationDoc: primitive(),
|
|
103
|
-
publicStereotype: usingModelSchema(StereotypeConfig.serialization.schema),
|
|
104
|
-
imageConfig: usingModelSchema(
|
|
105
|
-
DataProductImageConfig.serialization.schema,
|
|
106
|
-
),
|
|
107
|
-
}),
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
62
|
export interface LegendApplicationConfigurationData {
|
|
112
63
|
appName: string;
|
|
113
64
|
env: string;
|