@o3r/core 14.1.0-rc.1 → 14.2.0-prerelease.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/package.json +4 -4
- package/core/application/build-properties.d.ts +0 -50
- package/core/application/build-properties.d.ts.map +0 -1
- package/core/application/build-properties.js +0 -17
- package/core/application/build-properties.js.map +0 -1
- package/core/application/dgp-interfaces.d.ts +0 -35
- package/core/application/dgp-interfaces.d.ts.map +0 -1
- package/core/application/dgp-interfaces.js +0 -2
- package/core/application/dgp-interfaces.js.map +0 -1
- package/core/application/index.d.ts +0 -4
- package/core/application/index.d.ts.map +0 -1
- package/core/application/index.js +0 -4
- package/core/application/index.js.map +0 -1
- package/core/application/runtime.d.ts +0 -14
- package/core/application/runtime.d.ts.map +0 -1
- package/core/application/runtime.js +0 -2
- package/core/application/runtime.js.map +0 -1
- package/core/common/index.d.ts +0 -3
- package/core/common/index.d.ts.map +0 -1
- package/core/common/index.js +0 -3
- package/core/common/index.js.map +0 -1
- package/core/common/interface-utils.d.ts +0 -7
- package/core/common/interface-utils.d.ts.map +0 -1
- package/core/common/interface-utils.js +0 -2
- package/core/common/interface-utils.js.map +0 -1
- package/core/common/label-value.d.ts +0 -8
- package/core/common/label-value.d.ts.map +0 -1
- package/core/common/label-value.js +0 -2
- package/core/common/label-value.js.map +0 -1
- package/core/devkit/devtools-interface.d.ts +0 -34
- package/core/devkit/devtools-interface.d.ts.map +0 -1
- package/core/devkit/devtools-interface.js +0 -2
- package/core/devkit/devtools-interface.js.map +0 -1
- package/core/devkit/index.d.ts +0 -2
- package/core/devkit/index.d.ts.map +0 -1
- package/core/devkit/index.js +0 -2
- package/core/devkit/index.js.map +0 -1
- package/core/index.d.ts +0 -7
- package/core/index.d.ts.map +0 -1
- package/core/index.js +0 -7
- package/core/index.js.map +0 -1
- package/core/interfaces/configuration.d.ts +0 -90
- package/core/interfaces/configuration.d.ts.map +0 -1
- package/core/interfaces/configuration.js +0 -2
- package/core/interfaces/configuration.js.map +0 -1
- package/core/interfaces/context.d.ts +0 -57
- package/core/interfaces/context.d.ts.map +0 -1
- package/core/interfaces/context.js +0 -2
- package/core/interfaces/context.js.map +0 -1
- package/core/interfaces/index.d.ts +0 -5
- package/core/interfaces/index.d.ts.map +0 -1
- package/core/interfaces/index.js +0 -5
- package/core/interfaces/index.js.map +0 -1
- package/core/interfaces/item-identifier.d.ts +0 -14
- package/core/interfaces/item-identifier.d.ts.map +0 -1
- package/core/interfaces/item-identifier.js +0 -2
- package/core/interfaces/item-identifier.js.map +0 -1
- package/core/interfaces/translation.d.ts +0 -7
- package/core/interfaces/translation.d.ts.map +0 -1
- package/core/interfaces/translation.js +0 -2
- package/core/interfaces/translation.js.map +0 -1
- package/core/metadata/component-decorator.d.ts +0 -32
- package/core/metadata/component-decorator.d.ts.map +0 -1
- package/core/metadata/component-decorator.js +0 -18
- package/core/metadata/component-decorator.js.map +0 -1
- package/core/metadata/component-identifier.d.ts +0 -7
- package/core/metadata/component-identifier.d.ts.map +0 -1
- package/core/metadata/component-identifier.js +0 -9
- package/core/metadata/component-identifier.js.map +0 -1
- package/core/metadata/index.d.ts +0 -4
- package/core/metadata/index.d.ts.map +0 -1
- package/core/metadata/index.js +0 -4
- package/core/metadata/index.js.map +0 -1
- package/core/metadata/metadata-interface.d.ts +0 -10
- package/core/metadata/metadata-interface.d.ts.map +0 -1
- package/core/metadata/metadata-interface.js +0 -2
- package/core/metadata/metadata-interface.js.map +0 -1
- package/core/rules-engine/index.d.ts +0 -2
- package/core/rules-engine/index.d.ts.map +0 -1
- package/core/rules-engine/index.js +0 -2
- package/core/rules-engine/index.js.map +0 -1
- package/core/rules-engine/rules-engine-interfaces.d.ts +0 -24
- package/core/rules-engine/rules-engine-interfaces.d.ts.map +0 -1
- package/core/rules-engine/rules-engine-interfaces.js +0 -2
- package/core/rules-engine/rules-engine-interfaces.js.map +0 -1
- package/log/index.d.ts +0 -2
- package/log/index.d.ts.map +0 -1
- package/log/index.js +0 -2
- package/log/index.js.map +0 -1
- package/log/logger.d.ts +0 -36
- package/log/logger.d.ts.map +0 -1
- package/log/logger.js +0 -2
- package/log/logger.js.map +0 -1
- package/messages/common-message-interface.d.ts +0 -17
- package/messages/common-message-interface.d.ts.map +0 -1
- package/messages/common-message-interface.js +0 -2
- package/messages/common-message-interface.js.map +0 -1
- package/messages/index.d.ts +0 -4
- package/messages/index.d.ts.map +0 -1
- package/messages/index.js +0 -4
- package/messages/index.js.map +0 -1
- package/messages/message-helpers.d.ts +0 -24
- package/messages/message-helpers.d.ts.map +0 -1
- package/messages/message-helpers.js +0 -54
- package/messages/message-helpers.js.map +0 -1
- package/messages/message-interfaces.d.ts +0 -26
- package/messages/message-interfaces.d.ts.map +0 -1
- package/messages/message-interfaces.js +0 -5
- package/messages/message-interfaces.js.map +0 -1
- package/public_api.d.ts +0 -6
- package/public_api.d.ts.map +0 -1
- package/public_api.js +0 -6
- package/public_api.js.map +0 -1
- package/store/async/async-entity.adapter.d.ts +0 -62
- package/store/async/async-entity.adapter.d.ts.map +0 -1
- package/store/async/async-entity.adapter.js +0 -49
- package/store/async/async-entity.adapter.js.map +0 -1
- package/store/async/async.adapter.d.ts +0 -91
- package/store/async/async.adapter.d.ts.map +0 -1
- package/store/async/async.adapter.js +0 -94
- package/store/async/async.adapter.js.map +0 -1
- package/store/async/async.helpers.d.ts +0 -17
- package/store/async/async.helpers.d.ts.map +0 -1
- package/store/async/async.helpers.js +0 -25
- package/store/async/async.helpers.js.map +0 -1
- package/store/async/async.interfaces.d.ts +0 -91
- package/store/async/async.interfaces.d.ts.map +0 -1
- package/store/async/async.interfaces.js +0 -2
- package/store/async/async.interfaces.js.map +0 -1
- package/store/async/async.operators.d.ts +0 -22
- package/store/async/async.operators.d.ts.map +0 -1
- package/store/async/async.operators.js +0 -75
- package/store/async/async.operators.js.map +0 -1
- package/store/async/async.props.d.ts +0 -7
- package/store/async/async.props.d.ts.map +0 -1
- package/store/async/async.props.js +0 -10
- package/store/async/async.props.js.map +0 -1
- package/store/async/async.serializer.d.ts +0 -29
- package/store/async/async.serializer.d.ts.map +0 -1
- package/store/async/async.serializer.js +0 -34
- package/store/async/async.serializer.js.map +0 -1
- package/store/async/index.d.ts +0 -8
- package/store/async/index.d.ts.map +0 -1
- package/store/async/index.js +0 -8
- package/store/async/index.js.map +0 -1
- package/store/index.d.ts +0 -3
- package/store/index.d.ts.map +0 -1
- package/store/index.js +0 -3
- package/store/index.js.map +0 -1
- package/store/types.d.ts +0 -95
- package/store/types.d.ts.map +0 -1
- package/store/types.js +0 -11
- package/store/types.js.map +0 -1
- package/utils/debug/debug-helper.d.ts +0 -14
- package/utils/debug/debug-helper.d.ts.map +0 -1
- package/utils/debug/debug-helper.js +0 -19
- package/utils/debug/debug-helper.js.map +0 -1
- package/utils/deep-fill/deep-fill.d.ts +0 -37
- package/utils/deep-fill/deep-fill.d.ts.map +0 -1
- package/utils/deep-fill/deep-fill.js +0 -71
- package/utils/deep-fill/deep-fill.js.map +0 -1
- package/utils/index.d.ts +0 -4
- package/utils/index.d.ts.map +0 -1
- package/utils/index.js +0 -4
- package/utils/index.js.map +0 -1
- package/utils/rendering/rendering-helpers.d.ts +0 -10
- package/utils/rendering/rendering-helpers.d.ts.map +0 -1
- package/utils/rendering/rendering-helpers.js +0 -31
- package/utils/rendering/rendering-helpers.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/core",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.2.0-prerelease.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@ngrx/entity": "^21.0.0",
|
|
39
39
|
"@ngrx/store": "^21.0.0",
|
|
40
40
|
"@nx/angular": "^22.0.0",
|
|
41
|
-
"@o3r/telemetry": "~14.
|
|
41
|
+
"@o3r/telemetry": "~14.2.0-prerelease.0",
|
|
42
42
|
"@schematics/angular": "^21.0.0",
|
|
43
43
|
"chokidar": "^4.0.0 || ^5.0.0",
|
|
44
44
|
"globby": "^11.1.0",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@o3r/schematics": "~14.
|
|
79
|
+
"@o3r/schematics": "~14.2.0-prerelease.0",
|
|
80
80
|
"tslib": "^2.6.2",
|
|
81
81
|
"uuid": "~13.0.0"
|
|
82
82
|
},
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"@ngrx/store": "~21.0.0",
|
|
89
89
|
"@ngrx/store-devtools": "~21.0.0",
|
|
90
90
|
"@nx/eslint-plugin": "~22.5.3",
|
|
91
|
-
"@o3r/store-sync": "~14.
|
|
91
|
+
"@o3r/store-sync": "~14.2.0-prerelease.0",
|
|
92
92
|
"@stylistic/eslint-plugin": "~5.10.0",
|
|
93
93
|
"@types/jest": "~30.0.0",
|
|
94
94
|
"@typescript-eslint/eslint-plugin": "~8.57.0",
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Library build time properties
|
|
3
|
-
*/
|
|
4
|
-
export interface BuildTimeProperties {
|
|
5
|
-
/**
|
|
6
|
-
* True if the application in launch in debug mode
|
|
7
|
-
*/
|
|
8
|
-
DEBUG_MODE: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* True if the webStorage option is enabled
|
|
11
|
-
*/
|
|
12
|
-
ENABLE_WEBSTORAGE: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Name of the current environment
|
|
15
|
-
*/
|
|
16
|
-
ENVIRONMENT: string;
|
|
17
|
-
/**
|
|
18
|
-
* Boolean that can be used to activate API calls mocks for development or mock-up purpose.
|
|
19
|
-
*/
|
|
20
|
-
USE_MOCKS: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Maximum size of the dev tool history
|
|
23
|
-
*/
|
|
24
|
-
DEVTOOL_HISTORY_SIZE: number | undefined;
|
|
25
|
-
/**
|
|
26
|
-
* path to bundles in published folder
|
|
27
|
-
*/
|
|
28
|
-
LOCALIZATION_BUNDLES_OUTPUT: string;
|
|
29
|
-
/**
|
|
30
|
-
* The name of the bundle generated with the default localization components keys
|
|
31
|
-
*/
|
|
32
|
-
DEFAULT_LOC_BUNDLE_NAME: string;
|
|
33
|
-
/**
|
|
34
|
-
* Indicates the default server prefix to be used in case no dynamic is found
|
|
35
|
-
*/
|
|
36
|
-
APP_BASE_HREF: string | undefined;
|
|
37
|
-
/**
|
|
38
|
-
* Version of the App based on the package.json
|
|
39
|
-
*/
|
|
40
|
-
APP_VERSION: string;
|
|
41
|
-
/**
|
|
42
|
-
* Determine if the ghosting is activated on the app
|
|
43
|
-
*/
|
|
44
|
-
ENABLE_GHOSTING: boolean;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Library build time default properties
|
|
48
|
-
*/
|
|
49
|
-
export declare const DEFAULT_BUILD_PROPERTIES: Readonly<BuildTimeProperties>;
|
|
50
|
-
//# sourceMappingURL=build-properties.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build-properties.d.ts","sourceRoot":"","sources":["../../../src/core/application/build-properties.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,iBAAiB,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,oBAAoB,EAAE,MAAM,GAAG,SAAS,CAAC;IAEzC;;OAEG;IACH,2BAA2B,EAAE,MAAM,CAAC;IAEpC;;OAEG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAEhC;;OAEG;IACH,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAElC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,mBAAmB,CAWzD,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/naming-convention -- exception for `BuildTimeProperties` */
|
|
2
|
-
/**
|
|
3
|
-
* Library build time default properties
|
|
4
|
-
*/
|
|
5
|
-
export const DEFAULT_BUILD_PROPERTIES = {
|
|
6
|
-
DEBUG_MODE: true,
|
|
7
|
-
APP_BASE_HREF: '.',
|
|
8
|
-
APP_VERSION: '0.0.0',
|
|
9
|
-
DEFAULT_LOC_BUNDLE_NAME: '',
|
|
10
|
-
DEVTOOL_HISTORY_SIZE: 20,
|
|
11
|
-
ENABLE_GHOSTING: false,
|
|
12
|
-
ENABLE_WEBSTORAGE: true,
|
|
13
|
-
ENVIRONMENT: 'dev',
|
|
14
|
-
LOCALIZATION_BUNDLES_OUTPUT: 'localizations/',
|
|
15
|
-
USE_MOCKS: false
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=build-properties.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build-properties.js","sourceRoot":"","sources":["../../../src/core/application/build-properties.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAyDhG;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAkC;IACrE,UAAU,EAAE,IAAI;IAChB,aAAa,EAAE,GAAG;IAClB,WAAW,EAAE,OAAO;IACpB,uBAAuB,EAAE,EAAE;IAC3B,oBAAoB,EAAE,EAAE;IACxB,eAAe,EAAE,KAAK;IACtB,iBAAiB,EAAE,IAAI;IACvB,WAAW,EAAE,KAAK;IAClB,2BAA2B,EAAE,gBAAgB;IAC7C,SAAS,EAAE,KAAK;CACR,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export interface BootstrapConfig {
|
|
2
|
-
/**
|
|
3
|
-
* App environment
|
|
4
|
-
*
|
|
5
|
-
*/
|
|
6
|
-
environment: 'prod' | 'dev';
|
|
7
|
-
}
|
|
8
|
-
/** Data set injected to the page from the DGP web-server */
|
|
9
|
-
export interface Dataset {
|
|
10
|
-
/**
|
|
11
|
-
* Bootstrap configuration
|
|
12
|
-
* @example
|
|
13
|
-
* ```typescript
|
|
14
|
-
* '{ environment: 'prod' }'
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
bootstrapconfig?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Dynamic content path
|
|
20
|
-
* @example
|
|
21
|
-
* ```typescript
|
|
22
|
-
* 'my/dynamic/path'
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
dynamiccontentpath?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Application basehref url
|
|
28
|
-
* @example
|
|
29
|
-
* ```typescript
|
|
30
|
-
* '/my/base/href'
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
appbasehref?: string;
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=dgp-interfaces.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dgp-interfaces.d.ts","sourceRoot":"","sources":["../../../src/core/application/dgp-interfaces.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAE9B;;;OAGG;IACH,WAAW,EAAE,MAAM,GAAG,KAAK,CAAC;CAE7B;AAED,4DAA4D;AAC5D,MAAM,WAAW,OAAO;IACtB;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CAEtB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dgp-interfaces.js","sourceRoot":"","sources":["../../../src/core/application/dgp-interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/application/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/application/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Configuration } from '../interfaces/configuration';
|
|
2
|
-
/**
|
|
3
|
-
* Application config
|
|
4
|
-
* Application config should implement this to be identified by CMS extractor as a 'runtime' config
|
|
5
|
-
*/
|
|
6
|
-
export interface AppRuntimeConfiguration extends Configuration {
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Application config
|
|
10
|
-
* Application config should implement this to be identified by CMS extractor as a 'build time' config
|
|
11
|
-
*/
|
|
12
|
-
export interface AppBuildConfiguration extends Configuration {
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=runtime.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../src/core/application/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACd,MAAM,6BAA6B,CAAC;AACrC;;;GAGG;AACH,MAAM,WAAW,uBAAwB,SAAQ,aAAa;CAAG;AAEjE;;;GAGG;AACH,MAAM,WAAW,qBAAsB,SAAQ,aAAa;CAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../../src/core/application/runtime.ts"],"names":[],"mappings":""}
|
package/core/common/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC"}
|
package/core/common/index.js
DELETED
package/core/common/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interface-utils.d.ts","sourceRoot":"","sources":["../../../src/core/common/interface-utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interface-utils.js","sourceRoot":"","sources":["../../../src/core/common/interface-utils.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"label-value.d.ts","sourceRoot":"","sources":["../../../src/core/common/label-value.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,CAAC,CAAC;CACV"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"label-value.js","sourceRoot":"","sources":["../../../src/core/common/label-value.ts"],"names":[],"mappings":""}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/** Interface extending Window with Otter Devtools accessor */
|
|
2
|
-
export interface WindowWithDevtools extends Window {
|
|
3
|
-
/** Otter Devtools accessor */
|
|
4
|
-
_OTTER_DEVTOOLS_?: Record<string, any>;
|
|
5
|
-
}
|
|
6
|
-
/** Common option used by the different DevKit services */
|
|
7
|
-
export interface DevtoolsCommonOptions {
|
|
8
|
-
/**
|
|
9
|
-
* Activated on the application bootstrap
|
|
10
|
-
* @default false
|
|
11
|
-
*/
|
|
12
|
-
isActivatedOnBootstrap: boolean;
|
|
13
|
-
}
|
|
14
|
-
/** Common option used by the different Contextualization DevKit services */
|
|
15
|
-
export interface ContextualizationDevtoolsCommonOptions {
|
|
16
|
-
/**
|
|
17
|
-
* Activated on the application bootstrap when integrated in CMS context
|
|
18
|
-
* @default true
|
|
19
|
-
*/
|
|
20
|
-
isActivatedOnBootstrapWhenCMSContext: boolean;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Dataset injected on the page when in CMS context
|
|
24
|
-
*/
|
|
25
|
-
export interface ContextualizationDataset {
|
|
26
|
-
/** `"true"` when in CMS context */
|
|
27
|
-
cmscontext?: string;
|
|
28
|
-
}
|
|
29
|
-
/** Interface describing an Otter Devtools service */
|
|
30
|
-
export interface DevtoolsServiceInterface {
|
|
31
|
-
/** Activate the devtools service */
|
|
32
|
-
activate(): void;
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=devtools-interface.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"devtools-interface.d.ts","sourceRoot":"","sources":["../../../src/core/devkit/devtools-interface.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,MAAM,WAAW,kBAAmB,SAAQ,MAAM;IAChD,8BAA8B;IAE9B,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACxC;AAED,0DAA0D;AAC1D,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,sBAAsB,EAAE,OAAO,CAAC;CACjC;AAED,4EAA4E;AAC5E,MAAM,WAAW,sCAAsC;IACrD;;;OAGG;IACH,oCAAoC,EAAE,OAAO,CAAC;CAC/C;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,mCAAmC;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,qDAAqD;AACrD,MAAM,WAAW,wBAAwB;IACvC,oCAAoC;IACpC,QAAQ,IAAI,IAAI,CAAC;CAClB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"devtools-interface.js","sourceRoot":"","sources":["../../../src/core/devkit/devtools-interface.ts"],"names":[],"mappings":""}
|
package/core/devkit/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/devkit/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
package/core/devkit/index.js
DELETED
package/core/devkit/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/devkit/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
package/core/index.d.ts
DELETED
package/core/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC"}
|
package/core/index.js
DELETED
package/core/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC"}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import type { InputSignal, Signal } from '@angular/core';
|
|
2
|
-
import type { Observable } from 'rxjs';
|
|
3
|
-
/**
|
|
4
|
-
* Types available for configuration
|
|
5
|
-
*/
|
|
6
|
-
export type ConfigurationValueType = string | number | boolean;
|
|
7
|
-
/**
|
|
8
|
-
* Nested configuration allowing one level only
|
|
9
|
-
* Object should only contain primitive types
|
|
10
|
-
*/
|
|
11
|
-
export interface NestedConfiguration {
|
|
12
|
-
[key: string]: ConfigurationValueType;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Interface of configuration that is supported by the cms
|
|
16
|
-
*/
|
|
17
|
-
export interface Configuration {
|
|
18
|
-
[key: string]: ConfigurationValueType | (string | NestedConfiguration)[];
|
|
19
|
-
}
|
|
20
|
-
/** Configuration model exported by the CMS */
|
|
21
|
-
export interface CustomConfig<T extends Partial<Configuration> = Partial<Configuration>> {
|
|
22
|
-
/** Component name */
|
|
23
|
-
name: string;
|
|
24
|
-
/** Component's library name; No library name for global config */
|
|
25
|
-
library?: string;
|
|
26
|
-
/** Component configuration as key value pairs */
|
|
27
|
-
config: T;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Dynamically Configurable item
|
|
31
|
-
*/
|
|
32
|
-
export interface DynamicConfigurable<T extends Configuration> {
|
|
33
|
-
/**
|
|
34
|
-
* Configuration override by Angular input mechanism
|
|
35
|
-
*/
|
|
36
|
-
config: Partial<T> | undefined;
|
|
37
|
-
/**
|
|
38
|
-
* Configuration stream based on the input and the stored configuration
|
|
39
|
-
*/
|
|
40
|
-
config$: Observable<T>;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Dynamically Configurable item working with signal
|
|
44
|
-
*/
|
|
45
|
-
export interface DynamicConfigurableWithSignal<T extends Configuration> {
|
|
46
|
-
/**
|
|
47
|
-
* Configuration override by Angular input mechanism
|
|
48
|
-
*/
|
|
49
|
-
config: InputSignal<Partial<T> | undefined>;
|
|
50
|
-
/**
|
|
51
|
-
* Configuration signal based on the input and the stored configuration
|
|
52
|
-
*/
|
|
53
|
-
configSignal: Signal<T>;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Configurable item
|
|
57
|
-
*/
|
|
58
|
-
export interface Configurable<T extends {}> {
|
|
59
|
-
/**
|
|
60
|
-
* Configuration
|
|
61
|
-
*/
|
|
62
|
-
config: T;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Description of a configuration property extracted to the CMS
|
|
66
|
-
*/
|
|
67
|
-
export interface CategoryDescription {
|
|
68
|
-
/** Category name */
|
|
69
|
-
name: string;
|
|
70
|
-
/** Category description */
|
|
71
|
-
label: string;
|
|
72
|
-
}
|
|
73
|
-
/** Types of components config */
|
|
74
|
-
export type ConfigType = 'Block' | 'Page' | 'AppRuntimeConfiguration' | 'AppBuildConfiguration' | 'ExposedComponent';
|
|
75
|
-
/**
|
|
76
|
-
* Interface to define widget parameter to be used on CMS side
|
|
77
|
-
*/
|
|
78
|
-
export interface ConfigPropertyWidgetParameters {
|
|
79
|
-
[parameterName: string]: string | boolean | number | string[] | boolean[] | number[];
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Interface to define the widget to be used on CMS side
|
|
83
|
-
*/
|
|
84
|
-
export interface ConfigPropertyWidget {
|
|
85
|
-
/** Type of the CMS widget */
|
|
86
|
-
type: string;
|
|
87
|
-
/** Parameters provided to the CMS widget */
|
|
88
|
-
parameters?: ConfigPropertyWidgetParameters;
|
|
89
|
-
}
|
|
90
|
-
//# sourceMappingURL=configuration.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../src/core/interfaces/configuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,MAAM,EACP,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EACV,UAAU,EACX,MAAM,MAAM,CAAC;AAEd;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAE/D;;;GAGG;AAC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AAkB,CAAC;AAErH;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,OAAO,EAAE,GAAG,MAAM,EAAE,CAAC;CACtF;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,6BAA6B;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,4CAA4C;IAC5C,UAAU,CAAC,EAAE,8BAA8B,CAAC;CAC7C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../src/core/interfaces/configuration.ts"],"names":[],"mappings":""}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import type { EventEmitter } from '@angular/core';
|
|
2
|
-
import type { FormControl } from '@angular/forms';
|
|
3
|
-
import type { Translation } from './translation';
|
|
4
|
-
/**
|
|
5
|
-
* Inputs of the component
|
|
6
|
-
*/
|
|
7
|
-
export interface ContextInput {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Base outputs of the components
|
|
12
|
-
*/
|
|
13
|
-
export interface BaseContextOutput {
|
|
14
|
-
[key: string]: any;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Type helper to generate the interface of component outputs
|
|
18
|
-
*/
|
|
19
|
-
export type EventEmitterify<T extends BaseContextOutput> = {
|
|
20
|
-
[P in keyof T]: EventEmitter<T[P]>;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Context of the component
|
|
24
|
-
*/
|
|
25
|
-
export type Context<T extends ContextInput = {}, U extends BaseContextOutput = {}> = {
|
|
26
|
-
[P in keyof T]: T[P];
|
|
27
|
-
} & {
|
|
28
|
-
[P in keyof U]: EventEmitterify<U>[P];
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Type helper to generate the template context outputs
|
|
32
|
-
*/
|
|
33
|
-
export type Functionify<T extends BaseContextOutput> = {
|
|
34
|
-
[P in keyof T]: (value: T[P]) => void;
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* Interface for a context of a child component
|
|
38
|
-
*/
|
|
39
|
-
export interface TemplateContext<N extends {}, S extends ContextInput = Record<string, unknown>, F extends BaseContextOutput = Record<string, unknown>, W extends Translation = Translation> {
|
|
40
|
-
/** Component configuration */
|
|
41
|
-
config?: Partial<N>;
|
|
42
|
-
/** Component inputs context */
|
|
43
|
-
inputs: S & {
|
|
44
|
-
[key: string]: any;
|
|
45
|
-
};
|
|
46
|
-
/** Component outputs context */
|
|
47
|
-
outputs: Functionify<F & {
|
|
48
|
-
[key: string]: any;
|
|
49
|
-
}>;
|
|
50
|
-
/** Component translation */
|
|
51
|
-
translations?: Partial<W>;
|
|
52
|
-
/** Parent Component Id */
|
|
53
|
-
parentId?: string;
|
|
54
|
-
/** Form control object to be applied to the form */
|
|
55
|
-
formControl?: FormControl;
|
|
56
|
-
}
|
|
57
|
-
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/core/interfaces/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EACV,WAAW,EACZ,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EACV,WAAW,EACZ,MAAM,eAAe,CAAC;AAEvB;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,iBAAiB,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,YAAY,CAAC,CAA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|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../src/core/interfaces/context.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC"}
|
package/core/interfaces/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Unique identifier of an item in the extracted metadata
|
|
3
|
-
*/
|
|
4
|
-
export interface ItemIdentifier {
|
|
5
|
-
/**
|
|
6
|
-
* Name of the library where the item is originally from
|
|
7
|
-
*/
|
|
8
|
-
library: string;
|
|
9
|
-
/**
|
|
10
|
-
* Name of the item
|
|
11
|
-
*/
|
|
12
|
-
name: string;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=item-identifier.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"item-identifier.d.ts","sourceRoot":"","sources":["../../../src/core/interfaces/item-identifier.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"item-identifier.js","sourceRoot":"","sources":["../../../src/core/interfaces/item-identifier.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../src/core/interfaces/translation.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACrB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"translation.js","sourceRoot":"","sources":["../../../src/core/interfaces/translation.ts"],"names":[],"mappings":""}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { Translation } from '../interfaces';
|
|
2
|
-
/** Type of component */
|
|
3
|
-
export type ComponentType = 'Block' | 'Page' | 'ExposedComponent' | 'Component';
|
|
4
|
-
/**
|
|
5
|
-
* Information about an Otter component to provide
|
|
6
|
-
*/
|
|
7
|
-
export interface OtterComponentInfoToProvide {
|
|
8
|
-
/** Type of component */
|
|
9
|
-
componentType: ComponentType;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Information about an Otter component
|
|
13
|
-
*/
|
|
14
|
-
export interface OtterComponentInfo extends OtterComponentInfoToProvide {
|
|
15
|
-
/** Configuration ID */
|
|
16
|
-
configId?: string;
|
|
17
|
-
/** Translation keys */
|
|
18
|
-
translations?: Translation;
|
|
19
|
-
/** Component Name */
|
|
20
|
-
componentName: string;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Private field where Otter component information are stored
|
|
24
|
-
*/
|
|
25
|
-
export declare const otterComponentInfoPropertyName = "__otter-info__";
|
|
26
|
-
/**
|
|
27
|
-
* Decorates an Angular component to provide Otter information
|
|
28
|
-
* @param info Information to define the Otter component
|
|
29
|
-
* @returns the component with the information
|
|
30
|
-
*/
|
|
31
|
-
export declare function O3rComponent(info: OtterComponentInfoToProvide): <T extends new (...args: any[]) => object>(constructor: T) => T;
|
|
32
|
-
//# sourceMappingURL=component-decorator.d.ts.map
|