@o3r/localization 10.0.0-next.9 → 11.0.0-next.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/README.md +12 -14
- package/annotations/index.d.ts +0 -1
- package/annotations/index.d.ts.map +1 -1
- package/annotations/localization.d.ts +0 -1
- package/annotations/localization.d.ts.map +1 -1
- package/builders/helpers/localization.generator.d.ts +6 -22
- package/builders/helpers/localization.generator.d.ts.map +1 -1
- package/builders/helpers/localization.generator.js +56 -57
- package/builders/helpers/localization.generator.js.map +1 -1
- package/builders/i18n/schema.json +1 -1
- package/builders/localization/index.d.ts.map +1 -1
- package/builders/localization/index.js +5 -4
- package/builders/localization/index.js.map +1 -1
- package/builders/localization/schema.json +1 -1
- package/builders/localization-extractor/index.d.ts.map +1 -1
- package/builders/localization-extractor/index.js +5 -3
- package/builders/localization-extractor/index.js.map +1 -1
- package/builders/localization-extractor/schema.d.ts +2 -0
- package/builders/localization-extractor/schema.d.ts.map +1 -1
- package/builders/localization-extractor/schema.json +6 -1
- package/core/localization.configuration.d.ts +8 -5
- package/core/localization.configuration.d.ts.map +1 -1
- package/core/translate-messageformat-lazy.compiler.d.ts +1 -3
- package/core/translate-messageformat-lazy.compiler.d.ts.map +1 -1
- package/devkit/localization-devkit.interface.d.ts +45 -2
- package/devkit/localization-devkit.interface.d.ts.map +1 -1
- package/devkit/localization-devtools.console.service.d.ts +38 -9
- package/devkit/localization-devtools.console.service.d.ts.map +1 -1
- package/devkit/localization-devtools.message.service.d.ts +4 -5
- package/devkit/localization-devtools.message.service.d.ts.map +1 -1
- package/devkit/localization-devtools.module.d.ts +0 -1
- package/devkit/localization-devtools.module.d.ts.map +1 -1
- package/devkit/localization-devtools.service.d.ts +11 -2
- package/devkit/localization-devtools.service.d.ts.map +1 -1
- package/devkit/localization-devtools.token.d.ts.map +1 -1
- package/esm2022/annotations/index.mjs +1 -2
- package/esm2022/annotations/localization.mjs +1 -2
- package/esm2022/core/localization.configuration.mjs +1 -1
- package/esm2022/core/translate-messageformat-lazy.compiler.mjs +6 -6
- package/esm2022/devkit/localization-devkit.interface.mjs +1 -1
- package/esm2022/devkit/localization-devtools.console.service.mjs +66 -12
- package/esm2022/devkit/localization-devtools.message.service.mjs +6 -7
- package/esm2022/devkit/localization-devtools.module.mjs +5 -6
- package/esm2022/devkit/localization-devtools.service.mjs +23 -6
- package/esm2022/devkit/localization-devtools.token.mjs +3 -2
- package/esm2022/rules-engine/localization.handler-action.mjs +30 -0
- package/esm2022/rules-engine/localization.interfaces.mjs +3 -0
- package/esm2022/rules-engine/localization.rules-engine.module.mjs +23 -0
- package/esm2022/rules-engine/o3r-localization-rules-engine.mjs +5 -0
- package/esm2022/rules-engine/public_api.mjs +4 -0
- package/esm2022/stores/localization-override/localization-override.module.mjs +4 -4
- package/esm2022/tools/localization-translate.directive.mjs +6 -7
- package/esm2022/tools/localization-translate.pipe.mjs +6 -7
- package/esm2022/tools/localization.module.mjs +9 -12
- package/esm2022/tools/localization.provider.mjs +1 -2
- package/esm2022/tools/localization.service.mjs +7 -14
- package/esm2022/tools/localized-currency.pipe.mjs +5 -5
- package/esm2022/tools/localized-date.pipe.mjs +5 -5
- package/esm2022/tools/localized-decimal.pipe.mjs +5 -5
- package/esm2022/tools/text-direction.service.mjs +6 -7
- package/esm2022/tools/text-directionality.service.mjs +6 -6
- package/esm2022/tools/translations-loader.mjs +9 -11
- package/fesm2022/o3r-localization-rules-engine.mjs +57 -0
- package/fesm2022/o3r-localization-rules-engine.mjs.map +1 -0
- package/fesm2022/o3r-localization.mjs +160 -139
- package/fesm2022/o3r-localization.mjs.map +1 -1
- package/package.json +40 -30
- package/rules-engine/index.d.ts +6 -0
- package/rules-engine/localization.handler-action.d.ts +19 -0
- package/rules-engine/localization.handler-action.d.ts.map +1 -0
- package/rules-engine/localization.interfaces.d.ts +12 -0
- package/rules-engine/localization.interfaces.d.ts.map +1 -0
- package/rules-engine/localization.rules-engine.module.d.ts +8 -0
- package/rules-engine/localization.rules-engine.module.d.ts.map +1 -0
- package/rules-engine/o3r-localization-rules-engine.d.ts.map +1 -0
- package/rules-engine/public_api.d.ts +4 -0
- package/rules-engine/public_api.d.ts.map +1 -0
- package/schemas/localization.metadata.schema.json +18 -3
- package/schemas/rules-engine.localisation-action.schema.json +26 -0
- package/schematics/add-localization-key/index.d.ts.map +1 -1
- package/schematics/add-localization-key/index.js +2 -2
- package/schematics/add-localization-key/index.js.map +1 -1
- package/schematics/add-localization-key/schema.json +1 -1
- package/schematics/cms-adapter/index.d.ts +0 -1
- package/schematics/cms-adapter/index.d.ts.map +1 -1
- package/schematics/cms-adapter/index.js +5 -9
- package/schematics/cms-adapter/index.js.map +1 -1
- package/schematics/localization-base/index.d.ts +2 -1
- package/schematics/localization-base/index.d.ts.map +1 -1
- package/schematics/localization-base/index.js +28 -34
- package/schematics/localization-base/index.js.map +1 -1
- package/schematics/localization-to-component/index.d.ts.map +1 -1
- package/schematics/localization-to-component/index.js +2 -2
- package/schematics/localization-to-component/index.js.map +1 -1
- package/schematics/localization-to-component/schema.json +1 -1
- package/schematics/ng-add/helpers/devtools-registration.d.ts +11 -0
- package/schematics/ng-add/helpers/devtools-registration.d.ts.map +1 -0
- package/schematics/ng-add/helpers/devtools-registration.js +35 -0
- package/schematics/ng-add/helpers/devtools-registration.js.map +1 -0
- package/schematics/ng-add/index.d.ts +0 -1
- package/schematics/ng-add/index.d.ts.map +1 -1
- package/schematics/ng-add/index.js +9 -5
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/ng-add/schema.json +1 -1
- package/tools/localization-translate.directive.d.ts +3 -4
- package/tools/localization-translate.directive.d.ts.map +1 -1
- package/tools/localization-translate.pipe.d.ts +4 -5
- package/tools/localization-translate.pipe.d.ts.map +1 -1
- package/tools/localization.module.d.ts +4 -7
- package/tools/localization.module.d.ts.map +1 -1
- package/tools/localization.provider.d.ts +0 -1
- package/tools/localization.provider.d.ts.map +1 -1
- package/tools/localization.service.d.ts +6 -14
- package/tools/localization.service.d.ts.map +1 -1
- package/tools/localized-currency.pipe.d.ts +6 -5
- package/tools/localized-currency.pipe.d.ts.map +1 -1
- package/tools/localized-date.pipe.d.ts +3 -3
- package/tools/localized-date.pipe.d.ts.map +1 -1
- package/tools/localized-decimal.pipe.d.ts +3 -3
- package/tools/localized-decimal.pipe.d.ts.map +1 -1
- package/tools/text-direction.service.d.ts +5 -6
- package/tools/text-direction.service.d.ts.map +1 -1
- package/tools/text-directionality.service.d.ts +0 -1
- package/tools/text-directionality.service.d.ts.map +1 -1
- package/tools/translations-loader.d.ts +5 -7
- package/tools/translations-loader.d.ts.map +1 -1
- package/annotations/input-merge.d.ts +0 -9
- package/annotations/input-merge.d.ts.map +0 -1
- package/builders/package.json +0 -3
- package/esm2022/annotations/input-merge.mjs +0 -29
- package/schematics/package.json +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"devtools-registration.d.ts","sourceRoot":"","sources":["../../../../schematics/ng-add/helpers/devtools-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAEzD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAOvD;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,YAAmB,qBAAqB,KAAG,QAAQ,IAAI,CAgBnF,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.registerDevtools = void 0;
|
|
4
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
+
const path = require("node:path");
|
|
6
|
+
const DEVTOOL_MODULE_NAME = 'LocalizationDevtoolsModule';
|
|
7
|
+
const MESSAGE_DEVTOOL_SERVICE_NAME = 'LocalizationDevtoolsMessageService';
|
|
8
|
+
const CONSOLE_DEVTOOL_SERVICE_NAME = 'LocalizationDevtoolsConsoleService';
|
|
9
|
+
const PACKAGE_NAME = require(path.resolve(__dirname, '..', '..', '..', 'package.json')).name;
|
|
10
|
+
/**
|
|
11
|
+
* Register Devtools to the application
|
|
12
|
+
* @param tree
|
|
13
|
+
* @param context
|
|
14
|
+
* @param options
|
|
15
|
+
* @param options.projectName
|
|
16
|
+
*/
|
|
17
|
+
const registerDevtools = async (options) => {
|
|
18
|
+
const { registerDevtoolsToApplication } = await Promise.resolve().then(() => require('@o3r/schematics'));
|
|
19
|
+
return (0, schematics_1.chain)([
|
|
20
|
+
registerDevtoolsToApplication({
|
|
21
|
+
moduleName: DEVTOOL_MODULE_NAME,
|
|
22
|
+
packageName: PACKAGE_NAME,
|
|
23
|
+
serviceName: MESSAGE_DEVTOOL_SERVICE_NAME,
|
|
24
|
+
projectName: options.projectName
|
|
25
|
+
}),
|
|
26
|
+
registerDevtoolsToApplication({
|
|
27
|
+
moduleName: DEVTOOL_MODULE_NAME,
|
|
28
|
+
packageName: PACKAGE_NAME,
|
|
29
|
+
serviceName: CONSOLE_DEVTOOL_SERVICE_NAME,
|
|
30
|
+
projectName: options.projectName
|
|
31
|
+
})
|
|
32
|
+
]);
|
|
33
|
+
};
|
|
34
|
+
exports.registerDevtools = registerDevtools;
|
|
35
|
+
//# sourceMappingURL=devtools-registration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"devtools-registration.js","sourceRoot":"","sources":["../../../../schematics/ng-add/helpers/devtools-registration.ts"],"names":[],"mappings":";;;AAAA,2DAAyD;AACzD,kCAAkC;AAGlC,MAAM,mBAAmB,GAAG,4BAA4B,CAAC;AACzD,MAAM,4BAA4B,GAAG,oCAAoC,CAAC;AAC1E,MAAM,4BAA4B,GAAG,oCAAoC,CAAC;AAC1E,MAAM,YAAY,GAAW,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC;AAErG;;;;;;GAMG;AACI,MAAM,gBAAgB,GAAG,KAAK,EAAE,OAA8B,EAAiB,EAAE;IACtF,MAAM,EAAE,6BAA6B,EAAE,GAAG,2CAAa,iBAAiB,EAAC,CAAC;IAC1E,OAAO,IAAA,kBAAK,EAAC;QACX,6BAA6B,CAAC;YAC5B,UAAU,EAAE,mBAAmB;YAC/B,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,4BAA4B;YACzC,WAAW,EAAE,OAAO,CAAC,WAAW;SACjC,CAAC;QACF,6BAA6B,CAAC;YAC5B,UAAU,EAAE,mBAAmB;YAC/B,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,4BAA4B;YACzC,WAAW,EAAE,OAAO,CAAC,WAAW;SACjC,CAAC;KACH,CAAC,CAAC;AACL,CAAC,CAAC;AAhBW,QAAA,gBAAgB,oBAgB3B"}
|
|
@@ -2,7 +2,6 @@ import { Rule } from '@angular-devkit/schematics';
|
|
|
2
2
|
import type { NgAddSchematicsSchema } from './schema';
|
|
3
3
|
/**
|
|
4
4
|
* Add Otter localization to an Angular Project
|
|
5
|
-
*
|
|
6
5
|
* @param options for the dependencies installations
|
|
7
6
|
*/
|
|
8
7
|
export declare function ngAdd(options: NgAddSchematicsSchema): Rule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AAKvF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AAKvF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAGtD;;;GAGG;AACH,wBAAgB,KAAK,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI,CAsD1D"}
|
|
@@ -6,15 +6,15 @@ const fs = require("node:fs");
|
|
|
6
6
|
const path = require("node:path");
|
|
7
7
|
const schematics_2 = require("@o3r/schematics");
|
|
8
8
|
const cms_adapter_1 = require("../cms-adapter");
|
|
9
|
+
const devtools_registration_1 = require("./helpers/devtools-registration");
|
|
9
10
|
/**
|
|
10
11
|
* Add Otter localization to an Angular Project
|
|
11
|
-
*
|
|
12
12
|
* @param options for the dependencies installations
|
|
13
13
|
*/
|
|
14
14
|
function ngAdd(options) {
|
|
15
15
|
return async (tree, context) => {
|
|
16
16
|
try {
|
|
17
|
-
const { applyEsLintFix, install,
|
|
17
|
+
const { applyEsLintFix, install, getProjectNewDependenciesType, getWorkspaceConfig, ngAddPackages, ngAddPeerDependencyPackages, getO3rPeerDeps } = await Promise.resolve().then(() => require('@o3r/schematics'));
|
|
18
18
|
const { updateI18n, updateLocalization } = await Promise.resolve().then(() => require('../localization-base'));
|
|
19
19
|
const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
|
|
20
20
|
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, { encoding: 'utf-8' }));
|
|
@@ -23,7 +23,10 @@ function ngAdd(options) {
|
|
|
23
23
|
context.logger.info('Get information on https://github.com/AmadeusITGroup/otter/tree/main/docs/localization/LOCALIZATION.md#Debugging');
|
|
24
24
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
25
25
|
const { NodeDependencyType } = await Promise.resolve().then(() => require('@schematics/angular/utility/dependencies'));
|
|
26
|
-
const
|
|
26
|
+
const workspaceProject = options.projectName ? getWorkspaceConfig(tree)?.projects[options.projectName] : undefined;
|
|
27
|
+
const workingDirectory = workspaceProject?.root || '.';
|
|
28
|
+
const dependencyType = getProjectNewDependenciesType(workspaceProject);
|
|
29
|
+
const registerDevtoolRule = await (0, devtools_registration_1.registerDevtools)(options);
|
|
27
30
|
return () => (0, schematics_1.chain)([
|
|
28
31
|
updateLocalization(options, __dirname),
|
|
29
32
|
updateI18n(options),
|
|
@@ -35,7 +38,7 @@ function ngAdd(options) {
|
|
|
35
38
|
version: depsInfo.packageVersion,
|
|
36
39
|
parentPackageInfo: `${depsInfo.packageName} - setup`,
|
|
37
40
|
projectName: options.projectName,
|
|
38
|
-
dependencyType
|
|
41
|
+
dependencyType,
|
|
39
42
|
workingDirectory
|
|
40
43
|
})(t, c),
|
|
41
44
|
ngAddPeerDependencyPackages(['chokidar'], packageJsonPath, NodeDependencyType.Dev, { ...options, workingDirectory, skipNgAddSchematicRun: true }, '@o3r/localization - install builder dependency'),
|
|
@@ -50,7 +53,8 @@ function ngAdd(options) {
|
|
|
50
53
|
'@o3r/core:component-presenter': {
|
|
51
54
|
useLocalization: undefined
|
|
52
55
|
}
|
|
53
|
-
})
|
|
56
|
+
}),
|
|
57
|
+
registerDevtoolRule
|
|
54
58
|
])(tree, context);
|
|
55
59
|
}
|
|
56
60
|
catch (e) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":";;;AAAA,2DAAuF;AACvF,8BAA8B;AAC9B,kCAAkC;AAClC,gDAAoG;AACpG,gDAAkD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":";;;AAAA,2DAAuF;AACvF,8BAA8B;AAC9B,kCAAkC;AAClC,gDAAoG;AACpG,gDAAkD;AAElD,2EAAmE;AAEnE;;;GAGG;AACH,SAAgB,KAAK,CAAC,OAA8B;IAClD,OAAO,KAAK,EAAE,IAAU,EAAE,OAAyB,EAAE,EAAE;QACrD,IAAI;YACF,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,6BAA6B,EAAE,kBAAkB,EAAE,aAAa,EAAE,2BAA2B,EAAE,cAAc,EAAC,GAAG,2CAAa,iBAAiB,EAAC,CAAC;YAClL,MAAM,EAAC,UAAU,EAAE,kBAAkB,EAAC,GAAG,2CAAa,sBAA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AE,CAAC,EAAE,EAAE,CAAC,aAAa,CAAC,QAAQ,CAAC,WAAW,EAAE;oBAC5C,gBAAgB,EAAE,IAAI;oBACtB,OAAO,EAAE,QAAQ,CAAC,cAAc;oBAChC,iBAAiB,EAAE,GAAG,QAAQ,CAAC,WAAY,UAAU;oBACrD,WAAW,EAAE,OAAO,CAAC,WAAW;oBAChC,cAAc;oBACd,gBAAgB;iBACjB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;gBACR,2BAA2B,CACzB,CAAC,UAAU,CAAC,EAAE,eAAe,EAAE,kBAAkB,CAAC,GAAG,EAAE,EAAC,GAAG,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,IAAI,EAAC,EAAE,gDAAgD,CAAC;gBACvK,IAAA,8BAAgB,EAAC,OAAO,CAAC;gBACzB,IAAA,gDAAmC,EAAC,WAAW,CAAC;gBAChD,IAAA,yCAA4B,EAAC;oBAC3B,gEAAgE;oBAChE,qBAAqB,EAAE;wBACrB,eAAe,EAAE,SAAS;qBAC3B;oBACD,gEAAgE;oBAChE,+BAA+B,EAAE;wBAC/B,eAAe,EAAE,SAAS;qBAC3B;iBACF,CAAC;gBACF,mBAAmB;aACpB,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;SACnB;QAAC,OAAO,CAAC,EAAE;YACV,oFAAoF;YACpF,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC;;oDAEyB,CAAC,CAAC;YAChD,MAAM,CAAC,CAAC,CAAC,CAAC;SACX;IACH,CAAC,CAAC;AACJ,CAAC;AAtDD,sBAsDC"}
|
|
@@ -7,12 +7,12 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
* TranslateDirective class adding debug functionality
|
|
8
8
|
*/
|
|
9
9
|
export declare class LocalizationTranslateDirective extends TranslateDirective {
|
|
10
|
-
private localizationService;
|
|
11
|
-
private localizationConfig;
|
|
10
|
+
private readonly localizationService;
|
|
11
|
+
private readonly localizationConfig;
|
|
12
12
|
/**
|
|
13
13
|
* Internal subscription to the LocalizationService showKeys mode changes
|
|
14
14
|
*/
|
|
15
|
-
private onShowKeysChange?;
|
|
15
|
+
private readonly onShowKeysChange?;
|
|
16
16
|
/**
|
|
17
17
|
* Should we display keys instead of translations
|
|
18
18
|
*/
|
|
@@ -26,7 +26,6 @@ export declare class LocalizationTranslateDirective extends TranslateDirective {
|
|
|
26
26
|
constructor(localizationService: LocalizationService, translateService: TranslateService, element: ElementRef, _ref: ChangeDetectorRef, localizationConfig: LocalizationConfiguration);
|
|
27
27
|
/**
|
|
28
28
|
* Overriding parent's setContent to plug debugging feature
|
|
29
|
-
*
|
|
30
29
|
* @param node
|
|
31
30
|
* @param content
|
|
32
31
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localization-translate.directive.d.ts","sourceRoot":"","sources":["../../src/tools/localization-translate.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAa,UAAU,EAAiB,MAAM,eAAe,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE3E,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;;AAE7D;;GAEG;AACH,qBAGa,8BAA+B,SAAQ,kBAAkB;IA8BxD,OAAO,CAAC,mBAAmB;
|
|
1
|
+
{"version":3,"file":"localization-translate.directive.d.ts","sourceRoot":"","sources":["../../src/tools/localization-translate.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAa,UAAU,EAAiB,MAAM,eAAe,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE3E,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;;AAE7D;;GAEG;AACH,qBAGa,8BAA+B,SAAQ,kBAAkB;IA8BxD,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACM,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IA9BzF;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAe;IAEjD;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAS;IAEzB;;OAEG;IACH,OAAO,CAAC,WAAW,CAAC,CAAe;IAEnC,kBAAkB;IAClB,IACW,SAAS,CAAC,GAAG,EAAE,MAAM,EAU/B;gBAE4B,mBAAmB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,iBAAiB,EAChF,kBAAkB,EAAE,yBAAyB;IAWpH;;;;OAIG;IACI,UAAU,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI;IAU5C,WAAW;yCAzDP,8BAA8B;2CAA9B,8BAA8B;CAkE1C"}
|
|
@@ -7,13 +7,13 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
* TranslatePipe class adding debug functionality
|
|
8
8
|
*/
|
|
9
9
|
export declare class LocalizationTranslatePipe extends TranslatePipe implements PipeTransform {
|
|
10
|
-
private localizationService;
|
|
11
|
-
private changeDetector;
|
|
12
|
-
private localizationConfig;
|
|
10
|
+
private readonly localizationService;
|
|
11
|
+
private readonly changeDetector;
|
|
12
|
+
private readonly localizationConfig;
|
|
13
13
|
/**
|
|
14
14
|
* Internal subscription to the LocalizationService showKeys mode changes
|
|
15
15
|
*/
|
|
16
|
-
private onShowKeysChange?;
|
|
16
|
+
private readonly onShowKeysChange?;
|
|
17
17
|
/**
|
|
18
18
|
* Internal subscription to the LocalizationService key mapping
|
|
19
19
|
*/
|
|
@@ -29,7 +29,6 @@ export declare class LocalizationTranslatePipe extends TranslatePipe implements
|
|
|
29
29
|
constructor(localizationService: LocalizationService, translateService: TranslateService, changeDetector: ChangeDetectorRef, localizationConfig: LocalizationConfiguration);
|
|
30
30
|
/**
|
|
31
31
|
* Calls original transform method and eventually outputs the key if debugMode (in LocalizationConfiguration) is enabled
|
|
32
|
-
*
|
|
33
32
|
* @inheritdoc
|
|
34
33
|
*/
|
|
35
34
|
transform(query: string, ...args: any[]): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localization-translate.pipe.d.ts","sourceRoot":"","sources":["../../src/tools/localization-translate.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAgB,aAAa,EAAE,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEtE,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;;AAE7D;;GAEG;AACH,qBACa,yBAA0B,SAAQ,aAAc,YAAW,aAAa;IAsBvE,OAAO,CAAC,mBAAmB;IAA2D,OAAO,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"localization-translate.pipe.d.ts","sourceRoot":"","sources":["../../src/tools/localization-translate.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAgB,aAAa,EAAE,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEtE,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;;AAE7D;;GAEG;AACH,qBACa,yBAA0B,SAAQ,aAAc,YAAW,aAAa;IAsBvE,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IAA2D,OAAO,CAAC,QAAQ,CAAC,cAAc;IACpF,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IAtBzF;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAe;IAEjD;;OAEG;IACH,OAAO,CAAC,WAAW,CAAC,CAAe;IAEnC;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAS;IAEzB,uBAAuB;IACvB,OAAO,CAAC,YAAY,CAAC,CAAS;IAE9B,wBAAwB;IACxB,OAAO,CAAC,eAAe,CAAC,CAAS;gBAEJ,mBAAmB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,gBAAgB,EAAmB,cAAc,EAAE,iBAAiB,EACtF,kBAAkB,EAAE,yBAAyB;IAWpH;;;OAGG;IACI,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG;IA8B7C,WAAW;yCApEP,yBAAyB;uCAAzB,yBAAyB;CA0ErC"}
|
|
@@ -13,13 +13,11 @@ import * as i8 from "@o3r/dynamic-content";
|
|
|
13
13
|
import * as i9 from "@angular/common";
|
|
14
14
|
/**
|
|
15
15
|
* creates LocalizationConfiguration, which is used if the application
|
|
16
|
-
*
|
|
17
16
|
* @param configuration Localization configuration
|
|
18
17
|
*/
|
|
19
18
|
export declare function createLocalizationConfiguration(configuration?: Partial<LocalizationConfiguration>): LocalizationConfiguration;
|
|
20
19
|
/**
|
|
21
20
|
* Factory to inject the LOCALE_ID token with the current language into Angular context
|
|
22
|
-
*
|
|
23
21
|
* @param localizationService Localization service
|
|
24
22
|
*/
|
|
25
23
|
export declare function localeIdNgBridge(localizationService: LocalizationService): string;
|
|
@@ -29,11 +27,10 @@ export declare class LocalizationModule {
|
|
|
29
27
|
/**
|
|
30
28
|
* forRoot method should be called only once from the application index.ts
|
|
31
29
|
* It will do several things:
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
30
|
+
* - provide the configuration for the whole application
|
|
31
|
+
* - register all locales specified in the LocalizationConfiguration
|
|
32
|
+
* - configure TranslateService
|
|
33
|
+
* - inject LOCALE_ID token
|
|
37
34
|
* @param configuration LocalizationConfiguration
|
|
38
35
|
*/
|
|
39
36
|
static forRoot(configuration?: () => Partial<LocalizationConfiguration>): ModuleWithProviders<LocalizationModule>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localization.module.d.ts","sourceRoot":"","sources":["../../src/tools/localization.module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAa,mBAAmB,EAAsB,MAAM,eAAe,CAAC;AAGnG,OAAO,EAAsC,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAGxF,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;;;;;;;;;;;AAQ7D
|
|
1
|
+
{"version":3,"file":"localization.module.d.ts","sourceRoot":"","sources":["../../src/tools/localization.module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAa,mBAAmB,EAAsB,MAAM,eAAe,CAAC;AAGnG,OAAO,EAAsC,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAGxF,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;;;;;;;;;;;AAQ7D;;;GAGG;AACH,wBAAgB,+BAA+B,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,GAAG,yBAAyB,CAK7H;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,mBAAmB,EAAE,mBAAmB,UAExE;AAED,6FAA6F;AAC7F,eAAO,MAAM,uCAAuC,oDAA+F,CAAC;AAEpJ,qBAca,kBAAkB;IAC7B;;;;;;;;OAQG;WACW,OAAO,CACnB,aAAa,CAAC,EAAE,MAAM,OAAO,CAAC,yBAAyB,CAAC,GACvD,mBAAmB,CAAC,kBAAkB,CAAC;yCAZ/B,kBAAkB;0CAAlB,kBAAkB;0CAAlB,kBAAkB;CAwB9B"}
|
|
@@ -6,7 +6,6 @@ import { TranslationsLoader } from './translations-loader';
|
|
|
6
6
|
/**
|
|
7
7
|
* Creates a loader of translations bundles based on the configuration
|
|
8
8
|
* (endPointUrl and language determine which bundle we load and where do we fetch it from)
|
|
9
|
-
*
|
|
10
9
|
* @param localizationConfiguration
|
|
11
10
|
* @param logger service to handle the log of warning and errors
|
|
12
11
|
* @param dynamicContentService (optional)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localization.provider.d.ts","sourceRoot":"","sources":["../../src/tools/localization.provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAY,MAAM,eAAe,CAAC;AAE1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D
|
|
1
|
+
{"version":3,"file":"localization.provider.d.ts","sourceRoot":"","sources":["../../src/tools/localization.provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAY,MAAM,eAAe,CAAC;AAE1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,CAAC,EAAE,aAAa,EAAE,qBAAqB,CAAC,EAAE,qBAAqB,sBAEhK;AAED;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,eAIrC,CAAC"}
|
|
@@ -11,19 +11,19 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
* in the root component and call its configure() method.
|
|
12
12
|
*/
|
|
13
13
|
export declare class LocalizationService {
|
|
14
|
-
private translateService;
|
|
15
|
-
private logger;
|
|
16
|
-
private configuration;
|
|
17
|
-
private store?;
|
|
14
|
+
private readonly translateService;
|
|
15
|
+
private readonly logger;
|
|
16
|
+
private readonly configuration;
|
|
17
|
+
private readonly store?;
|
|
18
18
|
private readonly localeSplitIdentifier;
|
|
19
19
|
/**
|
|
20
20
|
* Internal subject that we use to track changes between keys only and translation mode
|
|
21
21
|
*/
|
|
22
|
-
private _showKeys$;
|
|
22
|
+
private readonly _showKeys$;
|
|
23
23
|
/**
|
|
24
24
|
* Map of localization keys to replace a key to another
|
|
25
25
|
*/
|
|
26
|
-
private keyMapping$?;
|
|
26
|
+
private readonly keyMapping$?;
|
|
27
27
|
/**
|
|
28
28
|
* _showKeys$ exposed as an Observable
|
|
29
29
|
*/
|
|
@@ -33,7 +33,6 @@ export declare class LocalizationService {
|
|
|
33
33
|
* This will handle the fallback language hierarchy to find out fallback language.
|
|
34
34
|
* supportedLocales language has highest priority, next priority goes to fallbackLocalesMap and default would be
|
|
35
35
|
* fallbackLanguage.
|
|
36
|
-
*
|
|
37
36
|
* @param language Selected language.
|
|
38
37
|
* @returns selected language if supported, fallback language otherwise.
|
|
39
38
|
*/
|
|
@@ -43,7 +42,6 @@ export declare class LocalizationService {
|
|
|
43
42
|
* supportedLocales: ['en-GB', 'en-US', 'fr-FR'], fallbackLocalesMap: {'en-CA': 'en-US', 'de': 'fr-FR'}
|
|
44
43
|
* translate to en-CA -> fallback to en-US, translate to de-DE -> fallback to fr-FR
|
|
45
44
|
* translate to en-NZ -> fallback to en-GB
|
|
46
|
-
*
|
|
47
45
|
* @param language Selected language.
|
|
48
46
|
* @returns Fallback language if available, undefined otherwise.
|
|
49
47
|
*/
|
|
@@ -53,14 +51,12 @@ export declare class LocalizationService {
|
|
|
53
51
|
* supported language.
|
|
54
52
|
* supportedLocales: ['en-GB', 'en-US', 'fr-FR']
|
|
55
53
|
* translate to en-CA -> fallback to en-GB
|
|
56
|
-
*
|
|
57
54
|
* @param language Selected language.
|
|
58
55
|
* @returns Closest supported language if available, undefined otherwise.
|
|
59
56
|
*/
|
|
60
57
|
private getFirstClosestSupportedLanguageCode;
|
|
61
58
|
/**
|
|
62
59
|
* Returns a stream of translated values of a key which updates whenever the language changes.
|
|
63
|
-
*
|
|
64
60
|
* @param translationKey Key to translate
|
|
65
61
|
* @param interpolateParams Object to use in translation binding
|
|
66
62
|
* @returns A stream of the translated key
|
|
@@ -76,7 +72,6 @@ export declare class LocalizationService {
|
|
|
76
72
|
getLanguages(): string[];
|
|
77
73
|
/**
|
|
78
74
|
* Wrapper to call the ngx-translate service TranslateService method use(language).
|
|
79
|
-
*
|
|
80
75
|
* @param language
|
|
81
76
|
*/
|
|
82
77
|
useLanguage(language: string): Observable<any>;
|
|
@@ -90,7 +85,6 @@ export declare class LocalizationService {
|
|
|
90
85
|
getTranslateService(): TranslateService;
|
|
91
86
|
/**
|
|
92
87
|
* Toggle the ShowKeys mode between active and inactive.
|
|
93
|
-
*
|
|
94
88
|
* @param value if specified, set the ShowKeys mode to value. If not specified, toggle the ShowKeys mode.
|
|
95
89
|
*/
|
|
96
90
|
toggleShowKeys(value?: boolean): void;
|
|
@@ -100,13 +94,11 @@ export declare class LocalizationService {
|
|
|
100
94
|
get showKeys(): boolean;
|
|
101
95
|
/**
|
|
102
96
|
* Get an observable of translation key after global mapping
|
|
103
|
-
*
|
|
104
97
|
* @param requestedKey Original translation key
|
|
105
98
|
*/
|
|
106
99
|
getKey(requestedKey: string): Observable<any>;
|
|
107
100
|
/**
|
|
108
101
|
* Returns a stream of translated values of a key which updates whenever the language changes.
|
|
109
|
-
*
|
|
110
102
|
* @param key Key to translate
|
|
111
103
|
* @param interpolateParams Object to use in translation binding
|
|
112
104
|
* @returns A stream of the translated key
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localization.service.d.ts","sourceRoot":"","sources":["../../src/tools/localization.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAU,KAAK,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,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;;;;;;OAOG;IACH,OAAO,CAAC,oCAAoC;IAQ5C;;;;;OAKG;IACH,OAAO,CAAC,oBAAoB;IAiB5B;;OAEG;IACI,SAAS;IAOhB;;OAEG;IACI,YAAY;IAInB;;;OAGG;IACI,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAAC,GAAG,CAAC;IAMrD;;OAEG;IACI,kBAAkB;IAIzB;;OAEG;IACI,mBAAmB;IAI1B;;;OAGG;IACI,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO;IAQrC;;OAEG;IACH,IAAW,QAAQ,YAElB;IAED;;;OAGG;IACI,MAAM,CAAC,YAAY,EAAE,MAAM;IAWlC;;;;;OAKG;IACI,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,MAAM;yCAlM7C,mBAAmB;6CAAnB,mBAAmB;CAwM/B"}
|
|
@@ -6,15 +6,16 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
* Native angular CurrencyPipe taking the current lang into consideration
|
|
7
7
|
*/
|
|
8
8
|
export declare class LocalizedCurrencyPipe extends CurrencyPipe implements OnDestroy, PipeTransform {
|
|
9
|
-
private localizationService;
|
|
10
|
-
private changeDetectorRef;
|
|
11
|
-
private onLangChange;
|
|
9
|
+
private readonly localizationService;
|
|
10
|
+
private readonly changeDetectorRef;
|
|
11
|
+
private readonly onLangChange;
|
|
12
12
|
constructor(localizationService: LocalizationService, changeDetectorRef: ChangeDetectorRef);
|
|
13
13
|
/**
|
|
14
14
|
* @inheritdoc
|
|
15
15
|
*/
|
|
16
|
-
transform(value: number | string, currencyCode?: string, display?:
|
|
17
|
-
transform(value: null | undefined, currencyCode?: string, display?:
|
|
16
|
+
transform(value: number | string, currencyCode?: string, display?: string | boolean, digitsInfo?: string, locale?: string): string | null;
|
|
17
|
+
transform(value: null | undefined, currencyCode?: string, display?: string | boolean, digitsInfo?: string, locale?: string): null;
|
|
18
|
+
transform(value: number | string | null | undefined, currencyCode?: string, display?: string | boolean, digitsInfo?: string, locale?: string): string | null;
|
|
18
19
|
ngOnDestroy(): void;
|
|
19
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizedCurrencyPipe, never>;
|
|
20
21
|
static ɵpipe: i0.ɵɵPipeDeclaration<LocalizedCurrencyPipe, "currency", false>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localized-currency.pipe.d.ts","sourceRoot":"","sources":["../../src/tools/localized-currency.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAC,iBAAiB,EAAE,SAAS,EAAQ,aAAa,EAAC,MAAM,eAAe,CAAC;AAEhF,OAAO,EAAC,mBAAmB,EAAC,MAAM,wBAAwB,CAAC;;AAE3D;;GAEG;AACH,qBAIa,qBAAsB,SAAQ,YAAa,YAAW,SAAS,EAAE,aAAa;IAG7E,OAAO,CAAC,mBAAmB;IAAuB,OAAO,CAAC,iBAAiB;
|
|
1
|
+
{"version":3,"file":"localized-currency.pipe.d.ts","sourceRoot":"","sources":["../../src/tools/localized-currency.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAC,iBAAiB,EAAE,SAAS,EAAQ,aAAa,EAAC,MAAM,eAAe,CAAC;AAEhF,OAAO,EAAC,mBAAmB,EAAC,MAAM,wBAAwB,CAAC;;AAE3D;;GAEG;AACH,qBAIa,qBAAsB,SAAQ,YAAa,YAAW,SAAS,EAAE,aAAa;IAG7E,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IAAuB,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAFzG,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;gBAEf,mBAAmB,EAAE,mBAAmB,EAAmB,iBAAiB,EAAE,iBAAiB;IAO5H;;OAEG;IACI,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IACzI,SAAS,CAAC,KAAK,EAAE,IAAI,GAAG,SAAS,EAAE,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;IACjI,SAAS,CAGd,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAM7I,WAAW,IAAI,IAAI;yCAxBf,qBAAqB;uCAArB,qBAAqB;CA2BjC"}
|
|
@@ -6,9 +6,9 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
* Native angular DatePipe taking the current lang into consideration
|
|
7
7
|
*/
|
|
8
8
|
export declare class LocalizedDatePipe extends DatePipe implements OnDestroy, PipeTransform {
|
|
9
|
-
private localizationService;
|
|
10
|
-
private changeDetectorRef;
|
|
11
|
-
private onLangChange;
|
|
9
|
+
private readonly localizationService;
|
|
10
|
+
private readonly changeDetectorRef;
|
|
11
|
+
private readonly onLangChange;
|
|
12
12
|
constructor(localizationService: LocalizationService, changeDetectorRef: ChangeDetectorRef);
|
|
13
13
|
/**
|
|
14
14
|
* @inheritdoc
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localized-date.pipe.d.ts","sourceRoot":"","sources":["../../src/tools/localized-date.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAC,iBAAiB,EAAE,SA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,EAAE,MAAM,EACpF,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAW1B,WAAW,IAAI,IAAI;yCA7Bf,iBAAiB;uCAAjB,iBAAiB;CAgC7B"}
|
|
@@ -6,9 +6,9 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
* Native angular DecimalPipe taking the current lang into consideration
|
|
7
7
|
*/
|
|
8
8
|
export declare class LocalizedDecimalPipe extends DecimalPipe implements OnDestroy, PipeTransform {
|
|
9
|
-
private localizationService;
|
|
10
|
-
private changeDetectorRef;
|
|
11
|
-
private onLangChange;
|
|
9
|
+
private readonly localizationService;
|
|
10
|
+
private readonly changeDetectorRef;
|
|
11
|
+
private readonly onLangChange;
|
|
12
12
|
constructor(localizationService: LocalizationService, changeDetectorRef: ChangeDetectorRef);
|
|
13
13
|
/**
|
|
14
14
|
* @inheritdoc
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localized-decimal.pipe.d.ts","sourceRoot":"","sources":["../../src/tools/localized-decimal.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,iBAAiB,EAAE,SAAS,EAAQ,aAAa,EAAC,MAAM,eAAe,CAAC;AAEhF,OAAO,EAAC,mBAAmB,EAAC,MAAM,wBAAwB,CAAC;;AAE3D;;GAEG;AACH,qBAIa,oBAAqB,SAAQ,WAAY,YAAW,SAAS,EAAE,aAAa;IAG3E,OAAO,CAAC,mBAAmB;IAAuB,OAAO,CAAC,iBAAiB;
|
|
1
|
+
{"version":3,"file":"localized-decimal.pipe.d.ts","sourceRoot":"","sources":["../../src/tools/localized-decimal.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,iBAAiB,EAAE,SAAS,EAAQ,aAAa,EAAC,MAAM,eAAe,CAAC;AAEhF,OAAO,EAAC,mBAAmB,EAAC,MAAM,wBAAwB,CAAC;;AAE3D;;GAEG;AACH,qBAIa,oBAAqB,SAAQ,WAAY,YAAW,SAAS,EAAE,aAAa;IAG3E,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IAAuB,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAFzG,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;gBAEf,mBAAmB,EAAE,mBAAmB,EAAmB,iBAAiB,EAAE,iBAAiB;IAO5H;;OAEG;IACI,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IACtF,SAAS,CAAC,KAAK,EAAE,IAAI,GAAG,SAAS,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;IAK9E,WAAW,IAAI,IAAI;yCAnBf,oBAAoB;uCAApB,oBAAoB;CAsBhC"}
|
|
@@ -8,16 +8,15 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
* Service for handling the text direction based on the LocalizationConfiguration
|
|
9
9
|
*/
|
|
10
10
|
export declare class TextDirectionService {
|
|
11
|
-
private translateService;
|
|
12
|
-
private configuration;
|
|
13
|
-
private rendererFactory;
|
|
14
|
-
private directionality;
|
|
11
|
+
private readonly translateService;
|
|
12
|
+
private readonly configuration;
|
|
13
|
+
private readonly rendererFactory;
|
|
14
|
+
private readonly directionality;
|
|
15
15
|
private subscription?;
|
|
16
|
-
private renderer;
|
|
16
|
+
private readonly renderer;
|
|
17
17
|
constructor(translateService: TranslateService, configuration: LocalizationConfiguration, rendererFactory: RendererFactory2, directionality: Directionality);
|
|
18
18
|
/**
|
|
19
19
|
* Updates the dir attribute on body HTML tag.
|
|
20
|
-
*
|
|
21
20
|
* @returns a subscription that updates the dir attribute
|
|
22
21
|
*/
|
|
23
22
|
onLangChangeSubscription(): Subscription;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-direction.service.d.ts","sourceRoot":"","sources":["../../src/tools/text-direction.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAiC,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,EAAmB,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;;AAGpD;;GAEG;AACH,qBACa,oBAAoB;IAK7B,OAAO,CAAC,gBAAgB;
|
|
1
|
+
{"version":3,"file":"text-direction.service.d.ts","sourceRoot":"","sources":["../../src/tools/text-direction.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAiC,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,EAAmB,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;;AAGpD;;GAEG;AACH,qBACa,oBAAoB;IAK7B,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACS,OAAO,CAAC,QAAQ,CAAC,aAAa;IACxE,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,cAAc;IAPjC,OAAO,CAAC,YAAY,CAAC,CAAe;IACpC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAY;gBAGlB,gBAAgB,EAAE,gBAAgB,EACQ,aAAa,EAAE,yBAAyB,EAClF,eAAe,EAAE,gBAAgB,EACjC,cAAc,EAAE,cAAc;IAIjD;;;OAGG;IACI,wBAAwB;yCAhBpB,oBAAoB;6CAApB,oBAAoB;CA2BhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-directionality.service.d.ts","sourceRoot":"","sources":["../../src/tools/text-directionality.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;;AAK5E,qBACa,kBAAmB,SAAQ,cAAc;IACpD
|
|
1
|
+
{"version":3,"file":"text-directionality.service.d.ts","sourceRoot":"","sources":["../../src/tools/text-directionality.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;;AAK5E,qBACa,kBAAmB,SAAQ,cAAc;IACpD;;;OAGG;IACI,KAAK,EAAG,SAAS,CAAC;gBAEqB,SAAS,CAAC,EAAE,GAAG;IAOtD,WAAW;yCAdP,kBAAkB;6CAAlB,kBAAkB;CAiB9B"}
|
|
@@ -11,13 +11,12 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
* and finally load the fallback language bundle (if all previous fetches failed)
|
|
12
12
|
*/
|
|
13
13
|
export declare class TranslationsLoader implements TranslateLoader {
|
|
14
|
-
private localizationConfiguration;
|
|
14
|
+
private readonly localizationConfiguration;
|
|
15
15
|
private readonly logger?;
|
|
16
|
-
private dynamicContentService?;
|
|
16
|
+
private readonly dynamicContentService?;
|
|
17
17
|
constructor(localizationConfiguration: LocalizationConfiguration, logger?: LoggerService | undefined, dynamicContentService?: DynamicContentService | undefined);
|
|
18
18
|
/**
|
|
19
19
|
* Download a language bundle file
|
|
20
|
-
*
|
|
21
20
|
* @param url Url to the bundle file
|
|
22
21
|
*/
|
|
23
22
|
private downloadLanguageBundle$;
|
|
@@ -27,11 +26,10 @@ export declare class TranslationsLoader implements TranslateLoader {
|
|
|
27
26
|
getTranslation(lang: string): Observable<any>;
|
|
28
27
|
/**
|
|
29
28
|
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* 1. try to load lang from local
|
|
33
|
-
* 2. if 1 fails try to load fallback lang but only if it's different from lang in 1
|
|
29
|
+
*Fetches localization bundles from published folder (internal to application)
|
|
34
30
|
*
|
|
31
|
+
*1. try to load lang from local
|
|
32
|
+
*2. if 1 fails try to load fallback lang but only if it's different from lang in 1
|
|
35
33
|
* @param lang - language of the bundle
|
|
36
34
|
* @param fallbackLanguage - fallback language in case bundle in language not found
|
|
37
35
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations-loader.d.ts","sourceRoot":"","sources":["../../src/tools/translations-loader.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAEpD,OAAO,EAAuB,UAAU,EAAM,MAAM,MAAM,CAAC;AAK3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;;AAI5C;;;;;GAKG;AACH,qBACa,kBAAmB,YAAW,eAAe;IACF,OAAO,CAAC,yBAAyB;
|
|
1
|
+
{"version":3,"file":"translations-loader.d.ts","sourceRoot":"","sources":["../../src/tools/translations-loader.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAEpD,OAAO,EAAuB,UAAU,EAAM,MAAM,MAAM,CAAC;AAK3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;;AAI5C;;;;;GAKG;AACH,qBACa,kBAAmB,YAAW,eAAe;IACF,OAAO,CAAC,QAAQ,CAAC,yBAAyB;IACxE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC;IACxB,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC;gBAFQ,yBAAyB,EAAE,yBAAyB,EAClF,MAAM,CAAC,2BAAe,EACtB,qBAAqB,CAAC,mCAAuB;IAEtF;;;OAGG;IACH,OAAO,CAAC,uBAAuB;IAY/B;;OAEG;IACI,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC,GAAG,CAAC;IAmDpD;;;;;;;;OAQG;IACI,uBAAuB,CAAC,IAAI,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,UAAU,CAAC,GAAG,CAAC;yCApF5E,kBAAkB;6CAAlB,kBAAkB;CAoG9B"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Decorator for @Input property
|
|
3
|
-
* It merges user input with default property value
|
|
4
|
-
*
|
|
5
|
-
* @param privateFieldName
|
|
6
|
-
* @deprecated will be removed in v10
|
|
7
|
-
*/
|
|
8
|
-
export declare function InputMerge(privateFieldName?: string): (target: any, key: string) => void;
|
|
9
|
-
//# sourceMappingURL=input-merge.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-merge.d.ts","sourceRoot":"","sources":["../../src/annotations/input-merge.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AAEH,wBAAgB,UAAU,CAAC,gBAAgB,CAAC,EAAE,MAAM,YAClC,GAAG,OAAO,MAAM,UAkBjC"}
|
package/builders/package.json
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { deepFill, immutablePrimitive } from '@o3r/core';
|
|
2
|
-
/**
|
|
3
|
-
* Decorator for @Input property
|
|
4
|
-
* It merges user input with default property value
|
|
5
|
-
*
|
|
6
|
-
* @param privateFieldName
|
|
7
|
-
* @deprecated will be removed in v10
|
|
8
|
-
*/
|
|
9
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
10
|
-
export function InputMerge(privateFieldName) {
|
|
11
|
-
return (target, key) => {
|
|
12
|
-
const privateField = privateFieldName || `_${key}`;
|
|
13
|
-
const privateValue = target[key];
|
|
14
|
-
if (delete target[key]) {
|
|
15
|
-
Object.defineProperty(target, key, {
|
|
16
|
-
get: function () {
|
|
17
|
-
return this[privateField];
|
|
18
|
-
},
|
|
19
|
-
set: function (value) {
|
|
20
|
-
const currentField = this[privateField] || privateValue;
|
|
21
|
-
this[privateField] = typeof currentField === 'undefined' ? immutablePrimitive(value) : deepFill(currentField, value);
|
|
22
|
-
},
|
|
23
|
-
enumerable: true,
|
|
24
|
-
configurable: true
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtbWVyZ2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYW5ub3RhdGlvbnMvaW5wdXQtbWVyZ2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxrQkFBa0IsRUFBRSxNQUFNLFdBQVcsQ0FBQztBQUV6RDs7Ozs7O0dBTUc7QUFDSCxnRUFBZ0U7QUFDaEUsTUFBTSxVQUFVLFVBQVUsQ0FBQyxnQkFBeUI7SUFDbEQsT0FBTyxDQUFDLE1BQVcsRUFBRSxHQUFXLEVBQUUsRUFBRTtRQUNsQyxNQUFNLFlBQVksR0FBRyxnQkFBZ0IsSUFBSSxJQUFJLEdBQUcsRUFBRSxDQUFDO1FBQ25ELE1BQU0sWUFBWSxHQUFHLE1BQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQztRQUVqQyxJQUFJLE9BQU8sTUFBTSxDQUFDLEdBQUcsQ0FBQyxFQUFFO1lBQ3RCLE1BQU0sQ0FBQyxjQUFjLENBQUMsTUFBTSxFQUFFLEdBQUcsRUFBRTtnQkFDakMsR0FBRyxFQUFFO29CQUNILE9BQU8sSUFBSSxDQUFDLFlBQVksQ0FBQyxDQUFDO2dCQUM1QixDQUFDO2dCQUNELEdBQUcsRUFBRSxVQUFxQixLQUE4QjtvQkFDdEQsTUFB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