@o3r/components 10.0.0-prerelease.9 → 10.0.0-prerelease.91
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/builders/component-extractor/index.d.ts.map +1 -1
- package/builders/component-extractor/index.js +4 -4
- package/esm2022/devkit/components-devtools.message.service.mjs +3 -3
- package/esm2022/devkit/components-devtools.module.mjs +4 -4
- package/esm2022/rules-engine/placeholder.action-handler.mjs +3 -3
- package/esm2022/rules-engine/placeholder.rules-engine.effect.mjs +3 -3
- package/esm2022/rules-engine/placeholder.rules-engine.module.mjs +4 -4
- package/esm2022/stores/placeholder-request/placeholder-request.module.mjs +4 -4
- package/esm2022/stores/placeholder-template/placeholder-template.module.mjs +4 -4
- package/esm2022/tools/component-replacement/c11n.directive.mjs +8 -6
- package/esm2022/tools/component-replacement/c11n.helpers.mjs +1 -1
- package/esm2022/tools/component-replacement/c11n.mock.module.mjs +10 -10
- package/esm2022/tools/component-replacement/c11n.module.mjs +4 -4
- package/esm2022/tools/component-replacement/c11n.service.mjs +4 -4
- package/esm2022/tools/pipes/capitalize/capitalize.module.mjs +8 -5
- package/esm2022/tools/pipes/capitalize/capitalize.pipe.mjs +16 -5
- package/esm2022/tools/pipes/duration/duration.module.mjs +8 -5
- package/esm2022/tools/pipes/duration/duration.pipe.mjs +17 -5
- package/esm2022/tools/pipes/keep-white-space/keep-white-space.module.mjs +8 -5
- package/esm2022/tools/pipes/keep-white-space/keep-white-space.pipe.mjs +19 -7
- package/esm2022/tools/pipes/replace-with-bold/replace-with-bold.module.mjs +8 -5
- package/esm2022/tools/pipes/replace-with-bold/replace-with-bold.pipe.mjs +23 -9
- package/esm2022/tools/placeholder/placeholder.component.mjs +3 -3
- package/esm2022/tools/placeholder/placeholder.module.mjs +4 -4
- package/fesm2022/o3r-components-rules-engine.mjs +11 -11
- package/fesm2022/o3r-components.mjs +148 -85
- package/fesm2022/o3r-components.mjs.map +1 -1
- package/migration.json +10 -0
- package/package.json +27 -20
- package/schematics/cms-adapter/index.d.ts +2 -3
- package/schematics/cms-adapter/index.d.ts.map +1 -1
- package/schematics/cms-adapter/index.js +7 -3
- package/schematics/ng-add/index.d.ts +1 -1
- package/schematics/ng-add/index.d.ts.map +1 -1
- package/schematics/ng-add/index.js +7 -2
- package/schematics/ng-update/v10-0/index.d.ts +6 -0
- package/schematics/ng-update/v10-0/index.d.ts.map +1 -0
- package/schematics/ng-update/v10-0/index.js +63 -0
- package/tools/component-replacement/c11n.directive.d.ts +4 -4
- package/tools/component-replacement/c11n.directive.d.ts.map +1 -1
- package/tools/component-replacement/c11n.helpers.d.ts +2 -2
- package/tools/component-replacement/c11n.helpers.d.ts.map +1 -1
- package/tools/component-replacement/c11n.service.d.ts +3 -3
- package/tools/component-replacement/c11n.service.d.ts.map +1 -1
- package/tools/pipes/capitalize/capitalize.module.d.ts +3 -0
- package/tools/pipes/capitalize/capitalize.module.d.ts.map +1 -1
- package/tools/pipes/capitalize/capitalize.pipe.d.ts +8 -1
- package/tools/pipes/capitalize/capitalize.pipe.d.ts.map +1 -1
- package/tools/pipes/duration/duration.module.d.ts +3 -0
- package/tools/pipes/duration/duration.module.d.ts.map +1 -1
- package/tools/pipes/duration/duration.pipe.d.ts +9 -1
- package/tools/pipes/duration/duration.pipe.d.ts.map +1 -1
- package/tools/pipes/keep-white-space/keep-white-space.module.d.ts +3 -0
- package/tools/pipes/keep-white-space/keep-white-space.module.d.ts.map +1 -1
- package/tools/pipes/keep-white-space/keep-white-space.pipe.d.ts +8 -1
- package/tools/pipes/keep-white-space/keep-white-space.pipe.d.ts.map +1 -1
- package/tools/pipes/replace-with-bold/replace-with-bold.module.d.ts +3 -0
- package/tools/pipes/replace-with-bold/replace-with-bold.module.d.ts.map +1 -1
- package/tools/pipes/replace-with-bold/replace-with-bold.pipe.d.ts +8 -1
- package/tools/pipes/replace-with-bold/replace-with-bold.pipe.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/components",
|
|
3
|
-
"version": "10.0.0-prerelease.
|
|
3
|
+
"version": "10.0.0-prerelease.91",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
4
7
|
"description": "This module contains component-related features (Component replacement, CMS compatibility, helpers, pipes, debugging developer tools...)\nIt comes with an integrated ng builder to help you generate components compatible with Otter features (CMS integration, localization, etc.).",
|
|
5
8
|
"keywords": [
|
|
6
9
|
"components",
|
|
@@ -29,30 +32,31 @@
|
|
|
29
32
|
}
|
|
30
33
|
},
|
|
31
34
|
"peerDependencies": {
|
|
32
|
-
"@angular-devkit/architect": "~0.
|
|
33
|
-
"@angular-devkit/schematics": "~17.
|
|
34
|
-
"@angular/cdk": "~17.
|
|
35
|
-
"@angular/common": "~17.
|
|
36
|
-
"@angular/core": "~17.
|
|
37
|
-
"@angular/forms": "~17.
|
|
38
|
-
"@angular/platform-browser": "~17.
|
|
39
|
-
"@angular/platform-browser-dynamic": "~17.
|
|
35
|
+
"@angular-devkit/architect": "~0.1702.0",
|
|
36
|
+
"@angular-devkit/schematics": "~17.2.0",
|
|
37
|
+
"@angular/cdk": "~17.2.0",
|
|
38
|
+
"@angular/common": "~17.2.0",
|
|
39
|
+
"@angular/core": "~17.2.0",
|
|
40
|
+
"@angular/forms": "~17.2.0",
|
|
41
|
+
"@angular/platform-browser": "~17.2.0",
|
|
42
|
+
"@angular/platform-browser-dynamic": "~17.2.0",
|
|
40
43
|
"@ngrx/effects": "~17.1.0",
|
|
41
44
|
"@ngrx/entity": "~17.1.0",
|
|
42
45
|
"@ngrx/store": "~17.1.0",
|
|
43
|
-
"@o3r/
|
|
44
|
-
"@o3r/
|
|
45
|
-
"@o3r/
|
|
46
|
-
"@o3r/
|
|
47
|
-
"@o3r/
|
|
48
|
-
"@o3r/
|
|
49
|
-
"@o3r/
|
|
50
|
-
"@o3r/
|
|
51
|
-
"@o3r/
|
|
52
|
-
"@
|
|
46
|
+
"@o3r/analytics": "^10.0.0-prerelease.91",
|
|
47
|
+
"@o3r/configuration": "^10.0.0-prerelease.91",
|
|
48
|
+
"@o3r/core": "^10.0.0-prerelease.91",
|
|
49
|
+
"@o3r/dynamic-content": "^10.0.0-prerelease.91",
|
|
50
|
+
"@o3r/extractors": "^10.0.0-prerelease.91",
|
|
51
|
+
"@o3r/localization": "^10.0.0-prerelease.91",
|
|
52
|
+
"@o3r/logger": "^10.0.0-prerelease.91",
|
|
53
|
+
"@o3r/rules-engine": "^10.0.0-prerelease.91",
|
|
54
|
+
"@o3r/schematics": "^10.0.0-prerelease.91",
|
|
55
|
+
"@o3r/testing": "^10.0.0-prerelease.91",
|
|
56
|
+
"@schematics/angular": "~17.2.0",
|
|
53
57
|
"chokidar": "^3.5.2",
|
|
54
58
|
"globby": "^11.1.0",
|
|
55
|
-
"jsonpath-plus": "^
|
|
59
|
+
"jsonpath-plus": "^8.0.0",
|
|
56
60
|
"rxjs": "^7.8.1",
|
|
57
61
|
"typescript": "~5.2.2"
|
|
58
62
|
},
|
|
@@ -63,6 +67,9 @@
|
|
|
63
67
|
"@ngx-translate/core": {
|
|
64
68
|
"optional": true
|
|
65
69
|
},
|
|
70
|
+
"@o3r/analytics": {
|
|
71
|
+
"optional": true
|
|
72
|
+
},
|
|
66
73
|
"@o3r/configuration": {
|
|
67
74
|
"optional": true
|
|
68
75
|
},
|
|
@@ -3,9 +3,8 @@ import { Rule } from '@angular-devkit/schematics';
|
|
|
3
3
|
* Update CMS adapter tools
|
|
4
4
|
* @param options @see RuleFactory.options
|
|
5
5
|
* @param options.projectName
|
|
6
|
-
* @param rootPath @see RuleFactory.rootPath
|
|
7
6
|
*/
|
|
8
|
-
export declare
|
|
7
|
+
export declare const updateCmsAdapter: (options: {
|
|
9
8
|
projectName?: string | undefined;
|
|
10
|
-
})
|
|
9
|
+
}) => Rule;
|
|
11
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/cms-adapter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,IAAI,EAA0B,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/cms-adapter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AAgFvF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;kBA5EwB,MAAM,GAAG,SAAS;UA4EkB,CAAC"}
|
|
@@ -9,9 +9,8 @@ const path = tslib_1.__importStar(require("node:path"));
|
|
|
9
9
|
* Update CMS adapter tools
|
|
10
10
|
* @param options @see RuleFactory.options
|
|
11
11
|
* @param options.projectName
|
|
12
|
-
* @param rootPath @see RuleFactory.rootPath
|
|
13
12
|
*/
|
|
14
|
-
function
|
|
13
|
+
function updateCmsAdapterFn(options) {
|
|
15
14
|
if (!options.projectName) {
|
|
16
15
|
return schematics_1.noop;
|
|
17
16
|
}
|
|
@@ -70,5 +69,10 @@ function updateCmsAdapter(options) {
|
|
|
70
69
|
editAngularJson
|
|
71
70
|
]);
|
|
72
71
|
}
|
|
73
|
-
|
|
72
|
+
/**
|
|
73
|
+
* Update CMS adapter tools
|
|
74
|
+
* @param options @see RuleFactory.options
|
|
75
|
+
* @param options.projectName
|
|
76
|
+
*/
|
|
77
|
+
exports.updateCmsAdapter = (0, schematics_2.createSchematicWithMetricsIfInstalled)(updateCmsAdapterFn);
|
|
74
78
|
//# sourceMappingURL=index.js.map
|
|
@@ -4,5 +4,5 @@ import type { NgAddSchematicsSchema } from './schema';
|
|
|
4
4
|
* Add Otter components to an Angular Project
|
|
5
5
|
* @param options
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const ngAdd: (options: NgAddSchematicsSchema) => Rule;
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAA0B,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AAKjF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAgEtD;;;GAGG;AACH,eAAO,MAAM,KAAK,0CAAiD,CAAC"}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ngAdd = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
|
+
const schematics_2 = require("@o3r/schematics");
|
|
6
7
|
const path = tslib_1.__importStar(require("node:path"));
|
|
7
8
|
const fs = tslib_1.__importStar(require("node:fs"));
|
|
8
9
|
const cms_adapter_1 = require("../cms-adapter");
|
|
@@ -11,7 +12,7 @@ const devtools_registration_1 = require("./helpers/devtools-registration");
|
|
|
11
12
|
* Add Otter components to an Angular Project
|
|
12
13
|
* @param options
|
|
13
14
|
*/
|
|
14
|
-
function
|
|
15
|
+
function ngAddFn(options) {
|
|
15
16
|
/* ng add rules */
|
|
16
17
|
return async (tree, context) => {
|
|
17
18
|
try {
|
|
@@ -56,5 +57,9 @@ function ngAdd(options) {
|
|
|
56
57
|
}
|
|
57
58
|
};
|
|
58
59
|
}
|
|
59
|
-
|
|
60
|
+
/**
|
|
61
|
+
* Add Otter components to an Angular Project
|
|
62
|
+
* @param options
|
|
63
|
+
*/
|
|
64
|
+
exports.ngAdd = (0, schematics_2.createSchematicWithMetricsIfInstalled)(ngAddFn);
|
|
60
65
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/ng-update/v10-0/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AAgEvF;;GAEG;AACH,eAAO,MAAM,WAAW,4BAAuD,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateV10_0 = void 0;
|
|
4
|
+
/* eslint-disable camelcase, @typescript-eslint/naming-convention */
|
|
5
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
|
+
const schematics_2 = require("@o3r/schematics");
|
|
7
|
+
const pipeReplacementInfo = {
|
|
8
|
+
capitalize: {
|
|
9
|
+
new: {
|
|
10
|
+
name: 'o3rCapitalize',
|
|
11
|
+
import: 'O3rCapitalizePipe'
|
|
12
|
+
},
|
|
13
|
+
import: 'CapitalizePipeModule'
|
|
14
|
+
},
|
|
15
|
+
duration: {
|
|
16
|
+
new: {
|
|
17
|
+
name: 'o3rDuration',
|
|
18
|
+
import: 'O3rDurationPipe'
|
|
19
|
+
},
|
|
20
|
+
import: 'DurationPipeModule'
|
|
21
|
+
},
|
|
22
|
+
keepWhiteSpace: {
|
|
23
|
+
new: {
|
|
24
|
+
name: 'o3rKeepWhiteSpace',
|
|
25
|
+
import: 'O3rKeepWhiteSpacePipe'
|
|
26
|
+
},
|
|
27
|
+
import: 'KeepWhiteSpacePipeModule'
|
|
28
|
+
},
|
|
29
|
+
replaceWithBold: {
|
|
30
|
+
new: {
|
|
31
|
+
name: 'o3rReplaceWithBold',
|
|
32
|
+
import: 'O3rReplaceWithBoldPipe'
|
|
33
|
+
},
|
|
34
|
+
import: 'ReplaceWithBoldPipeModule'
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
const c11nPresenterDeclarationRegExp = /(presenter\$!?\s*:\s*Observable)<(.*)>/g;
|
|
38
|
+
const updateC11nPresenterDeclaration = (tree) => {
|
|
39
|
+
const files = (0, schematics_2.findFilesInTree)(tree.getDir('/'), (filePath) => /\.component.ts$/.test(filePath));
|
|
40
|
+
return (0, schematics_1.chain)(files.map((file) => c11nPresenterDeclarationRegExp.test(file.content.toString())
|
|
41
|
+
? (0, schematics_1.chain)([
|
|
42
|
+
() => tree.overwrite(file.path, file.content.toString().replace(c11nPresenterDeclarationRegExp, '$1<Type<$2>>')),
|
|
43
|
+
(0, schematics_2.addImportsRule)(file.path, [{ from: '@angular/core', importNames: ['Type'] }])
|
|
44
|
+
])
|
|
45
|
+
: (0, schematics_1.noop)()));
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Update of Otter library V10.0
|
|
49
|
+
*/
|
|
50
|
+
function updateV10_0Fn() {
|
|
51
|
+
return (tree, context) => {
|
|
52
|
+
const updateRules = [
|
|
53
|
+
(0, schematics_2.updatePipes)(pipeReplacementInfo),
|
|
54
|
+
updateC11nPresenterDeclaration
|
|
55
|
+
];
|
|
56
|
+
return (0, schematics_1.chain)(updateRules)(tree, context);
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Update of Otter library V10.0
|
|
61
|
+
*/
|
|
62
|
+
exports.updateV10_0 = (0, schematics_2.createSchematicWithMetricsIfInstalled)(updateV10_0Fn);
|
|
63
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ComponentRef, Injector, KeyValueDiffers, OnChanges, OnDestroy, SimpleChanges, ViewContainerRef } from '@angular/core';
|
|
1
|
+
import { ComponentRef, Injector, KeyValueDiffers, OnChanges, OnDestroy, SimpleChanges, Type, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { AbstractControl, FormControl } from '@angular/forms';
|
|
3
|
-
import type { BaseContextOutput, Configuration, Context, ContextInput,
|
|
3
|
+
import type { BaseContextOutput, Configuration, Context, ContextInput, Functionify } from '@o3r/core';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class C11nDirective<D extends Configuration = Configuration, I extends ContextInput = ContextInput, O extends BaseContextOutput = BaseContextOutput, T extends Context<I, O>
|
|
5
|
+
export declare class C11nDirective<D extends Configuration = Configuration, I extends ContextInput = ContextInput, O extends BaseContextOutput = BaseContextOutput, T extends Context<I, O> = Context<I, O>> implements OnChanges, OnDestroy {
|
|
6
6
|
viewContainerRef: ViewContainerRef;
|
|
7
7
|
private readonly differsService;
|
|
8
8
|
private readonly injector;
|
|
9
9
|
/** The component information passed to the directive */
|
|
10
|
-
component: T
|
|
10
|
+
component: Type<T>;
|
|
11
11
|
/** The information related to configuration */
|
|
12
12
|
config?: D;
|
|
13
13
|
/** Formcontrol */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"c11n.directive.d.ts","sourceRoot":"","sources":["../../../src/tools/component-replacement/c11n.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAAyB,QAAQ,EAC7C,eAAe,EAAE,SAAS,EAAE,SAAS,EAAgB,aAAa,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"c11n.directive.d.ts","sourceRoot":"","sources":["../../../src/tools/component-replacement/c11n.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAAyB,QAAQ,EAC7C,eAAe,EAAE,SAAS,EAAE,SAAS,EAAgB,aAAa,EAAE,IAAI,EAAE,gBAAgB,EAC3F,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,eAAe,EAAwB,WAAW,EAA+C,MAAM,gBAAgB,CAAC;AACjI,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;;AAGtG,qBAea,aAAa,CACxB,CAAC,SAAS,aAAa,GAAG,aAAa,EACvC,CAAC,SAAS,YAAY,GAAG,YAAY,EACrC,CAAC,SAAS,iBAAiB,GAAG,iBAAiB,EAC/C,CAAC,SAAS,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAE,YAAW,SAAS,EAAE,SAAS;IAuCrD,gBAAgB,EAAE,gBAAgB;IACnD,OAAO,CAAC,QAAQ,CAAC,cAAc;IAC/B,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAvC3B,wDAAwD;IACxC,SAAS,EAAG,IAAI,CAAC,CAAC,CAAC,CAAC;IAEpC,+CAA+C;IAC/B,MAAM,CAAC,EAAE,CAAC,CAAC;IAE3B,kBAAkB;IACF,WAAW,CAAC,EAAE,WAAW,CAAC;IAE1C,uBAAuB;IACvB,IAAoB,MAAM,CAAC,KAAK,EAAE;SAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KAAE,EAKzD;IAED,uBAAuB;IACvB,IAAW,MAAM,IAAI;SAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KAAE,CAE5C;IAED,wCAAwC;IACxB,OAAO,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IAEzC,8BAA8B;IACvB,YAAY,EAAG,YAAY,CAAC,CAAC,CAAC,CAAC;IAEtC,OAAO,CAAC,sBAAsB,CAAsB;IAEpD,OAAO,CAAC,OAAO,CAA4B;IAE3C,OAAO,CAAC,YAAY,CAA+B;IAEnD,oDAAoD;IACpD,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAqB;gBAEtC,gBAAgB,EAAE,gBAAgB,EAClC,cAAc,EAAE,eAAe,EAC/B,QAAQ,EAAE,QAAQ;IAGrC;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IAI9B,OAAO,CAAC,YAAY;IAOpB;;;OAGG;IACI,WAAW,CAAC,OAAO,EAAE,aAAa;IAoEzC;;;OAGG;IACI,QAAQ,CAAC,OAAO,EAAE,eAAe;IAOxC;;OAEG;IACI,WAAW;yCArJP,aAAa;2CAAb,aAAa;CA4JzB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Type } from '@angular/core';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Context } from '@o3r/core';
|
|
3
3
|
/** Interface for grouping the arrays needed for custom component registration */
|
|
4
4
|
export interface EntryCustomComponents {
|
|
5
5
|
/** Array of custom presenters */
|
|
@@ -13,5 +13,5 @@ export interface EntryCustomComponents {
|
|
|
13
13
|
* @param customComponentKey
|
|
14
14
|
* @param customComponent
|
|
15
15
|
*/
|
|
16
|
-
export declare function registerCustomComponent<T extends Context
|
|
16
|
+
export declare function registerCustomComponent<T extends Context>(customComponentsMap: Map<string, Type<T>>, customComponentKey: string, customComponent: Type<T>): Map<string, Type<T>>;
|
|
17
17
|
//# sourceMappingURL=c11n.helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"c11n.helpers.d.ts","sourceRoot":"","sources":["../../../src/tools/component-replacement/c11n.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"c11n.helpers.d.ts","sourceRoot":"","sources":["../../../src/tools/component-replacement/c11n.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,iFAAiF;AACjF,MAAM,WAAW,qBAAqB;IAEpC,iCAAiC;IACjC,gBAAgB,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;IAE9B,wCAAwC;IACxC,uBAAuB,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;CACtC;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,OAAO,EACrD,mBAAmB,EAAE,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,MAAM,EAAE,eAAe,EAAE,IAAI,CAAC,CAAC,CAAC,wBAGlG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Type } from '@angular/core';
|
|
2
|
-
import type { Configuration, Context
|
|
2
|
+
import type { Configuration, Context } from '@o3r/core';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class C11nService {
|
|
@@ -10,13 +10,13 @@ export declare class C11nService {
|
|
|
10
10
|
* @param presKey The presenter key to set
|
|
11
11
|
* @param presenter The new presenter
|
|
12
12
|
*/
|
|
13
|
-
addPresenter<T extends Context
|
|
13
|
+
addPresenter<T extends Context>(presKey: string, presenter: Type<T>): void;
|
|
14
14
|
/**
|
|
15
15
|
* Operator to retrieve the presenter based on a given presKey
|
|
16
16
|
* @param defaultPres The default presenter
|
|
17
17
|
* @param presKey The presenter key to retrieve
|
|
18
18
|
*/
|
|
19
|
-
getPresenter<T extends Context
|
|
19
|
+
getPresenter<T extends Context>(defaultPres: Type<T>, presKey?: string): (source: Observable<Configuration>) => Observable<Type<T>>;
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<C11nService, never>;
|
|
21
21
|
static ɵprov: i0.ɵɵInjectableDeclaration<C11nService>;
|
|
22
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"c11n.service.d.ts","sourceRoot":"","sources":["../../../src/tools/component-replacement/c11n.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,IAAI,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"c11n.service.d.ts","sourceRoot":"","sources":["../../../src/tools/component-replacement/c11n.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,IAAI,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;;AAIlC,qBACa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAmB;gBAEF,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC;IAI9E;;;;OAIG;IACI,YAAY,CAAC,CAAC,SAAS,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC;IAI1E;;;;OAIG;IACI,YAAY,CAAC,CAAC,SAAS,OAAO,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,SAAkB,YACpE,WAAW,aAAa,CAAC,KAAG,WAAW,KAAK,CAAC,CAAC,CAAC;yCAtBtD,WAAW;6CAAX,WAAW;CA+BvB"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./capitalize.pipe";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated please use O3rCapitalizePipe, will be removed in v12.
|
|
5
|
+
*/
|
|
3
6
|
export declare class CapitalizePipeModule {
|
|
4
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<CapitalizePipeModule, never>;
|
|
5
8
|
static ɵmod: i0.ɵɵNgModuleDeclaration<CapitalizePipeModule, [typeof i1.CapitalizePipe], never, [typeof i1.CapitalizePipe]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capitalize.module.d.ts","sourceRoot":"","sources":["../../../../src/tools/pipes/capitalize/capitalize.module.ts"],"names":[],"mappings":";;AAGA,qBAIa,oBAAoB;yCAApB,oBAAoB;0CAApB,oBAAoB;0CAApB,oBAAoB;CAAG"}
|
|
1
|
+
{"version":3,"file":"capitalize.module.d.ts","sourceRoot":"","sources":["../../../../src/tools/pipes/capitalize/capitalize.module.ts"],"names":[],"mappings":";;AAGA;;GAEG;AACH,qBAIa,oBAAoB;yCAApB,oBAAoB;0CAApB,oBAAoB;0CAApB,oBAAoB;CAAG"}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class O3rCapitalizePipe implements PipeTransform {
|
|
4
4
|
transform(value?: any): any;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<O3rCapitalizePipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<O3rCapitalizePipe, "o3rCapitalize", true>;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated please use O3rCapitalizePipe, will be removed in v12.
|
|
10
|
+
*/
|
|
11
|
+
export declare class CapitalizePipe extends O3rCapitalizePipe implements PipeTransform {
|
|
5
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<CapitalizePipe, never>;
|
|
6
13
|
static ɵpipe: i0.ɵɵPipeDeclaration<CapitalizePipe, "capitalize", false>;
|
|
7
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capitalize.pipe.d.ts","sourceRoot":"","sources":["../../../../src/tools/pipes/capitalize/capitalize.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,aAAa,EAAC,MAAM,eAAe,CAAC;;AAElD,qBACa,
|
|
1
|
+
{"version":3,"file":"capitalize.pipe.d.ts","sourceRoot":"","sources":["../../../../src/tools/pipes/capitalize/capitalize.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,aAAa,EAAC,MAAM,eAAe,CAAC;;AAElD,qBACa,iBAAkB,YAAW,aAAa;IAC9C,SAAS,CAAC,KAAK,CAAC,EAAE,GAAG;yCADjB,iBAAiB;uCAAjB,iBAAiB;CAM7B;AAED;;GAEG;AACH,qBACa,cAAe,SAAQ,iBAAkB,YAAW,aAAa;yCAAjE,cAAc;uCAAd,cAAc;CAAsD"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./duration.pipe";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated please use O3rDurationPipe, will be removed in v12.
|
|
5
|
+
*/
|
|
3
6
|
export declare class DurationPipeModule {
|
|
4
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<DurationPipeModule, never>;
|
|
5
8
|
static ɵmod: i0.ɵɵNgModuleDeclaration<DurationPipeModule, [typeof i1.DurationPipe], never, [typeof i1.DurationPipe]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"duration.module.d.ts","sourceRoot":"","sources":["../../../../src/tools/pipes/duration/duration.module.ts"],"names":[],"mappings":";;AAGA,qBAIa,kBAAkB;yCAAlB,kBAAkB;0CAAlB,kBAAkB;0CAAlB,kBAAkB;CAAG"}
|
|
1
|
+
{"version":3,"file":"duration.module.d.ts","sourceRoot":"","sources":["../../../../src/tools/pipes/duration/duration.module.ts"],"names":[],"mappings":";;AAGA;;GAEG;AACH,qBAIa,kBAAkB;yCAAlB,kBAAkB;0CAAlB,kBAAkB;0CAAlB,kBAAkB;CAAG"}
|
|
@@ -4,7 +4,7 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
/**
|
|
5
5
|
* Converts a duration in seconds into the HH:mm format
|
|
6
6
|
*/
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class O3rDurationPipe implements PipeTransform {
|
|
8
8
|
/**
|
|
9
9
|
* @param value the value in seconds
|
|
10
10
|
* @param pattern the desired output format.
|
|
@@ -20,6 +20,14 @@ export declare class DurationPipe implements PipeTransform {
|
|
|
20
20
|
* The above defines a week for {w}
|
|
21
21
|
*/
|
|
22
22
|
transform(value?: number, pattern?: string, timeUnits?: TimeUnit[]): string;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<O3rDurationPipe, never>;
|
|
24
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<O3rDurationPipe, "o3rDuration", true>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Converts a duration in seconds into the HH:mm format
|
|
28
|
+
* @deprecated please use O3rDurationPipe, will be removed in v12.
|
|
29
|
+
*/
|
|
30
|
+
export declare class DurationPipe extends O3rDurationPipe implements PipeTransform {
|
|
23
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<DurationPipe, never>;
|
|
24
32
|
static ɵpipe: i0.ɵɵPipeDeclaration<DurationPipe, "duration", false>;
|
|
25
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"duration.pipe.d.ts","sourceRoot":"","sources":["../../../../src/tools/pipes/duration/duration.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,aAAa,EAAC,MAAM,eAAe,CAAC;AAClD,OAAO,EAAmB,QAAQ,EAAC,MAAM,kBAAkB,CAAC;;AAe5D;;GAEG;AACH,qBACa,
|
|
1
|
+
{"version":3,"file":"duration.pipe.d.ts","sourceRoot":"","sources":["../../../../src/tools/pipes/duration/duration.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,aAAa,EAAC,MAAM,eAAe,CAAC;AAClD,OAAO,EAAmB,QAAQ,EAAC,MAAM,kBAAkB,CAAC;;AAe5D;;GAEG;AACH,qBACa,eAAgB,YAAW,aAAa;IACnD;;;;;;;;;;;;;OAaG;IACI,SAAS,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,SAAa,EAAE,SAAS,GAAE,QAAQ,EAAqB;yCAfpF,eAAe;uCAAf,eAAe;CA6C3B;AAED;;;GAGG;AACH,qBACa,YAAa,SAAQ,eAAgB,YAAW,aAAa;yCAA7D,YAAY;uCAAZ,YAAY;CAAoD"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./keep-white-space.pipe";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated please use O3rKeepWhiteSpacePipe, will be removed in v12.
|
|
5
|
+
*/
|
|
3
6
|
export declare class KeepWhiteSpacePipeModule {
|
|
4
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<KeepWhiteSpacePipeModule, never>;
|
|
5
8
|
static ɵmod: i0.ɵɵNgModuleDeclaration<KeepWhiteSpacePipeModule, [typeof i1.KeepWhiteSpacePipe], never, [typeof i1.KeepWhiteSpacePipe]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keep-white-space.module.d.ts","sourceRoot":"","sources":["../../../../src/tools/pipes/keep-white-space/keep-white-space.module.ts"],"names":[],"mappings":";;AAGA,qBAIa,wBAAwB;yCAAxB,wBAAwB;0CAAxB,wBAAwB;0CAAxB,wBAAwB;CAAG"}
|
|
1
|
+
{"version":3,"file":"keep-white-space.module.d.ts","sourceRoot":"","sources":["../../../../src/tools/pipes/keep-white-space/keep-white-space.module.ts"],"names":[],"mappings":";;AAGA;;GAEG;AACH,qBAIa,wBAAwB;yCAAxB,wBAAwB;0CAAxB,wBAAwB;0CAAxB,wBAAwB;CAAG"}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class O3rKeepWhiteSpacePipe implements PipeTransform {
|
|
4
4
|
transform(value: string): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<O3rKeepWhiteSpacePipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<O3rKeepWhiteSpacePipe, "o3rKeepWhiteSpace", false>;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated please use O3rKeepWhiteSpacePipe, will be removed in v12.
|
|
10
|
+
*/
|
|
11
|
+
export declare class KeepWhiteSpacePipe extends O3rKeepWhiteSpacePipe implements PipeTransform {
|
|
5
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<KeepWhiteSpacePipe, never>;
|
|
6
13
|
static ɵpipe: i0.ɵɵPipeDeclaration<KeepWhiteSpacePipe, "keepWhiteSpace", false>;
|
|
7
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keep-white-space.pipe.d.ts","sourceRoot":"","sources":["../../../../src/tools/pipes/keep-white-space/keep-white-space.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,aAAa,EAAC,MAAM,eAAe,CAAC;;AAElD,
|
|
1
|
+
{"version":3,"file":"keep-white-space.pipe.d.ts","sourceRoot":"","sources":["../../../../src/tools/pipes/keep-white-space/keep-white-space.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,aAAa,EAAC,MAAM,eAAe,CAAC;;AAElD,qBAGa,qBAAsB,YAAW,aAAa;IAClD,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;yCAD5B,qBAAqB;uCAArB,qBAAqB;CAIjC;AAED;;GAEG;AACH,qBAGa,kBAAmB,SAAQ,qBAAsB,YAAW,aAAa;yCAAzE,kBAAkB;uCAAlB,kBAAkB;CAA0D"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./replace-with-bold.pipe";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated please use O3rReplaceWithBoldPipe, will be removed in v12.
|
|
5
|
+
*/
|
|
3
6
|
export declare class ReplaceWithBoldPipeModule {
|
|
4
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReplaceWithBoldPipeModule, never>;
|
|
5
8
|
static ɵmod: i0.ɵɵNgModuleDeclaration<ReplaceWithBoldPipeModule, [typeof i1.ReplaceWithBoldPipe], never, [typeof i1.ReplaceWithBoldPipe]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replace-with-bold.module.d.ts","sourceRoot":"","sources":["../../../../src/tools/pipes/replace-with-bold/replace-with-bold.module.ts"],"names":[],"mappings":";;AAGA,qBAIa,yBAAyB;yCAAzB,yBAAyB;0CAAzB,yBAAyB;0CAAzB,yBAAyB;CAAG"}
|
|
1
|
+
{"version":3,"file":"replace-with-bold.module.d.ts","sourceRoot":"","sources":["../../../../src/tools/pipes/replace-with-bold/replace-with-bold.module.ts"],"names":[],"mappings":";;AAGA;;GAEG;AACH,qBAIa,yBAAyB;yCAAzB,yBAAyB;0CAAzB,yBAAyB;0CAAzB,yBAAyB;CAAG"}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class O3rReplaceWithBoldPipe implements PipeTransform {
|
|
4
4
|
transform(value: string, inputText: string): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<O3rReplaceWithBoldPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<O3rReplaceWithBoldPipe, "o3rReplaceWithBold", true>;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated please use O3rReplaceWithBoldPipe, will be removed in v12.
|
|
10
|
+
*/
|
|
11
|
+
export declare class ReplaceWithBoldPipe extends O3rReplaceWithBoldPipe implements PipeTransform {
|
|
5
12
|
escapeRegExp(str: string): string;
|
|
6
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReplaceWithBoldPipe, never>;
|
|
7
14
|
static ɵpipe: i0.ɵɵPipeDeclaration<ReplaceWithBoldPipe, "replaceWithBold", false>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replace-with-bold.pipe.d.ts","sourceRoot":"","sources":["../../../../src/tools/pipes/replace-with-bold/replace-with-bold.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,aAAa,EAAC,MAAM,eAAe,CAAC;;
|
|
1
|
+
{"version":3,"file":"replace-with-bold.pipe.d.ts","sourceRoot":"","sources":["../../../../src/tools/pipes/replace-with-bold/replace-with-bold.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,aAAa,EAAC,MAAM,eAAe,CAAC;;AAIlD,qBAIa,sBAAuB,YAAW,aAAa;IACnD,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM;yCAD/C,sBAAsB;uCAAtB,sBAAsB;CASlC;AAED;;GAEG;AACH,qBAGa,mBAAoB,SAAQ,sBAAuB,YAAW,aAAa;IAC/E,YAAY,CAAC,GAAG,EAAE,MAAM;yCADpB,mBAAmB;uCAAnB,mBAAmB;CAI/B"}
|