@o3r/localization 10.0.0-next.29 → 10.0.0-next.46
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/helpers/localization.generator.d.ts +4 -2
- package/builders/helpers/localization.generator.d.ts.map +1 -1
- package/builders/helpers/localization.generator.js +42 -14
- package/builders/helpers/localization.generator.js.map +1 -1
- package/builders/i18n/schema.json +1 -1
- package/builders/localization/schema.json +1 -1
- package/builders/localization-extractor/index.js +1 -1
- package/builders/localization-extractor/index.js.map +1 -1
- package/builders/localization-extractor/schema.json +1 -1
- package/esm2022/core/translate-messageformat-lazy.compiler.mjs +5 -5
- package/esm2022/devkit/localization-devtools.console.service.mjs +5 -5
- package/esm2022/devkit/localization-devtools.message.service.mjs +5 -5
- package/esm2022/devkit/localization-devtools.module.mjs +4 -4
- package/esm2022/devkit/localization-devtools.service.mjs +4 -4
- 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 -6
- package/esm2022/tools/localization-translate.pipe.mjs +5 -5
- package/esm2022/tools/localization.module.mjs +4 -4
- package/esm2022/tools/localization.service.mjs +6 -6
- package/esm2022/tools/localized-currency.pipe.mjs +5 -5
- package/esm2022/tools/localized-date.pipe.mjs +4 -4
- package/esm2022/tools/localized-decimal.pipe.mjs +4 -4
- package/esm2022/tools/text-direction.service.mjs +5 -5
- package/esm2022/tools/text-directionality.service.mjs +5 -5
- package/esm2022/tools/translations-loader.mjs +5 -5
- package/fesm2022/o3r-localization-rules-engine.mjs +57 -0
- package/fesm2022/o3r-localization-rules-engine.mjs.map +1 -0
- package/fesm2022/o3r-localization.mjs +74 -74
- package/fesm2022/o3r-localization.mjs.map +1 -1
- package/package.json +25 -18
- 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 +1 -1
- package/schemas/rules-engine.localisation-action.schema.json +26 -0
- package/schematics/add-localization-key/schema.json +1 -1
- package/schematics/localization-to-component/schema.json +1 -1
- package/schematics/ng-add/schema.json +1 -1
- package/tools/localization.service.d.ts.map +1 -1
- package/tools/localized-currency.pipe.d.ts +3 -3
- package/tools/localized-currency.pipe.d.ts.map +1 -1
- package/builders/package.json +0 -3
- package/schematics/package.json +0 -3
|
@@ -5,7 +5,7 @@ import * as i2 from '@ngx-translate/core';
|
|
|
5
5
|
import { TranslateCompiler, TranslateDirective, TranslatePipe, TranslateModule, TranslateLoader } from '@ngx-translate/core';
|
|
6
6
|
import { IntlMessageFormat } from 'intl-messageformat';
|
|
7
7
|
import * as i3 from '@ngrx/store';
|
|
8
|
-
import {
|
|
8
|
+
import { props, createAction, on, createReducer, StoreModule, createFeatureSelector, createSelector, select } from '@ngrx/store';
|
|
9
9
|
import * as i1 from '@o3r/logger';
|
|
10
10
|
import { LoggerService } from '@o3r/logger';
|
|
11
11
|
import { BehaviorSubject, combineLatest, of, from, Subscription, fromEvent } from 'rxjs';
|
|
@@ -112,17 +112,17 @@ class TranslateMessageFormatLazyCompiler extends TranslateCompiler {
|
|
|
112
112
|
return Object.keys(translations)
|
|
113
113
|
.reduce(compilingStrategy, {});
|
|
114
114
|
}
|
|
115
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
116
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
115
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: TranslateMessageFormatLazyCompiler, deps: [{ token: MESSAGE_FORMAT_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
116
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: TranslateMessageFormatLazyCompiler }); }
|
|
117
117
|
}
|
|
118
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
118
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: TranslateMessageFormatLazyCompiler, decorators: [{
|
|
119
119
|
type: Injectable
|
|
120
|
-
}], ctorParameters:
|
|
120
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
121
121
|
type: Optional
|
|
122
122
|
}, {
|
|
123
123
|
type: Inject,
|
|
124
124
|
args: [MESSAGE_FORMAT_CONFIG]
|
|
125
|
-
}] }]
|
|
125
|
+
}] }] });
|
|
126
126
|
|
|
127
127
|
/** Actions */
|
|
128
128
|
const ACTION_SET = '[LocalizationOverride] set';
|
|
@@ -166,13 +166,13 @@ class LocalizationOverrideStoreModule {
|
|
|
166
166
|
]
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
170
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
171
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
169
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationOverrideStoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
170
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.4", ngImport: i0, type: LocalizationOverrideStoreModule, imports: [i3.StoreFeatureModule] }); }
|
|
171
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationOverrideStoreModule, providers: [
|
|
172
172
|
{ provide: LOCALIZATION_OVERRIDE_REDUCER_TOKEN, useFactory: getDefaultLocalizationOverrideReducer }
|
|
173
173
|
], imports: [StoreModule.forFeature(LOCALIZATION_OVERRIDE_STORE_NAME, LOCALIZATION_OVERRIDE_REDUCER_TOKEN)] }); }
|
|
174
174
|
}
|
|
175
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
175
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationOverrideStoreModule, decorators: [{
|
|
176
176
|
type: NgModule,
|
|
177
177
|
args: [{
|
|
178
178
|
imports: [
|
|
@@ -376,17 +376,17 @@ class LocalizationService {
|
|
|
376
376
|
translate(key, interpolateParams) {
|
|
377
377
|
return this.getKey(key).pipe(switchMap((translationKey) => this.getTranslationStream(translationKey, interpolateParams)), shareReplay(1));
|
|
378
378
|
}
|
|
379
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
380
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
379
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationService, deps: [{ token: i2.TranslateService }, { token: i1.LoggerService }, { token: LOCALIZATION_CONFIGURATION_TOKEN }, { token: i3.Store, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
380
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationService }); }
|
|
381
381
|
}
|
|
382
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
382
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationService, decorators: [{
|
|
383
383
|
type: Injectable
|
|
384
|
-
}], ctorParameters:
|
|
384
|
+
}], ctorParameters: () => [{ type: i2.TranslateService }, { type: i1.LoggerService }, { type: undefined, decorators: [{
|
|
385
385
|
type: Inject,
|
|
386
386
|
args: [LOCALIZATION_CONFIGURATION_TOKEN]
|
|
387
387
|
}] }, { type: i3.Store, decorators: [{
|
|
388
388
|
type: Optional
|
|
389
|
-
}] }]
|
|
389
|
+
}] }] });
|
|
390
390
|
|
|
391
391
|
/**
|
|
392
392
|
* TranslateDirective class adding debug functionality
|
|
@@ -444,18 +444,18 @@ class LocalizationTranslateDirective extends TranslateDirective {
|
|
|
444
444
|
this.onKeyChange?.unsubscribe();
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
448
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
447
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationTranslateDirective, deps: [{ token: LocalizationService }, { token: i2.TranslateService }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: LOCALIZATION_CONFIGURATION_TOKEN }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
448
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.4", type: LocalizationTranslateDirective, selector: "[translate],[ngx-translate]", inputs: { translate: "translate" }, usesInheritance: true, ngImport: i0 }); }
|
|
449
449
|
}
|
|
450
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
450
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationTranslateDirective, decorators: [{
|
|
451
451
|
type: Directive,
|
|
452
452
|
args: [{
|
|
453
453
|
selector: '[translate],[ngx-translate]'
|
|
454
454
|
}]
|
|
455
|
-
}], ctorParameters:
|
|
455
|
+
}], ctorParameters: () => [{ type: LocalizationService }, { type: i2.TranslateService }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
456
456
|
type: Inject,
|
|
457
457
|
args: [LOCALIZATION_CONFIGURATION_TOKEN]
|
|
458
|
-
}] }]
|
|
458
|
+
}] }], propDecorators: { translate: [{
|
|
459
459
|
type: Input
|
|
460
460
|
}] } });
|
|
461
461
|
|
|
@@ -513,16 +513,16 @@ class LocalizationTranslatePipe extends TranslatePipe {
|
|
|
513
513
|
this.onShowKeysChange.unsubscribe();
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
517
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
516
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationTranslatePipe, deps: [{ token: LocalizationService }, { token: i2.TranslateService }, { token: i0.ChangeDetectorRef }, { token: LOCALIZATION_CONFIGURATION_TOKEN }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
517
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.4", ngImport: i0, type: LocalizationTranslatePipe, name: "translate", pure: false }); }
|
|
518
518
|
}
|
|
519
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
519
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationTranslatePipe, decorators: [{
|
|
520
520
|
type: Pipe,
|
|
521
521
|
args: [{ name: 'translate', pure: false }]
|
|
522
|
-
}], ctorParameters:
|
|
522
|
+
}], ctorParameters: () => [{ type: LocalizationService }, { type: i2.TranslateService }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
523
523
|
type: Inject,
|
|
524
524
|
args: [LOCALIZATION_CONFIGURATION_TOKEN]
|
|
525
|
-
}] }]
|
|
525
|
+
}] }] });
|
|
526
526
|
|
|
527
527
|
/**
|
|
528
528
|
* Native angular CurrencyPipe taking the current lang into consideration
|
|
@@ -540,16 +540,16 @@ class LocalizedCurrencyPipe extends CurrencyPipe {
|
|
|
540
540
|
ngOnDestroy() {
|
|
541
541
|
this.onLangChange.unsubscribe();
|
|
542
542
|
}
|
|
543
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
544
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
543
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizedCurrencyPipe, deps: [{ token: LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
544
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.4", ngImport: i0, type: LocalizedCurrencyPipe, name: "currency", pure: false }); }
|
|
545
545
|
}
|
|
546
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
546
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizedCurrencyPipe, decorators: [{
|
|
547
547
|
type: Pipe,
|
|
548
548
|
args: [{
|
|
549
549
|
name: 'currency',
|
|
550
550
|
pure: false
|
|
551
551
|
}]
|
|
552
|
-
}], ctorParameters:
|
|
552
|
+
}], ctorParameters: () => [{ type: LocalizationService }, { type: i0.ChangeDetectorRef }] });
|
|
553
553
|
|
|
554
554
|
/**
|
|
555
555
|
* Native angular DatePipe taking the current lang into consideration
|
|
@@ -572,16 +572,16 @@ class LocalizedDatePipe extends DatePipe {
|
|
|
572
572
|
ngOnDestroy() {
|
|
573
573
|
this.onLangChange.unsubscribe();
|
|
574
574
|
}
|
|
575
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
576
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
575
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizedDatePipe, deps: [{ token: LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
576
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.4", ngImport: i0, type: LocalizedDatePipe, name: "date", pure: false }); }
|
|
577
577
|
}
|
|
578
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
578
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizedDatePipe, decorators: [{
|
|
579
579
|
type: Pipe,
|
|
580
580
|
args: [{
|
|
581
581
|
name: 'date',
|
|
582
582
|
pure: false
|
|
583
583
|
}]
|
|
584
|
-
}], ctorParameters:
|
|
584
|
+
}], ctorParameters: () => [{ type: LocalizationService }, { type: i0.ChangeDetectorRef }] });
|
|
585
585
|
|
|
586
586
|
/**
|
|
587
587
|
* Native angular DecimalPipe taking the current lang into consideration
|
|
@@ -599,16 +599,16 @@ class LocalizedDecimalPipe extends DecimalPipe {
|
|
|
599
599
|
ngOnDestroy() {
|
|
600
600
|
this.onLangChange.unsubscribe();
|
|
601
601
|
}
|
|
602
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
603
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
602
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizedDecimalPipe, deps: [{ token: LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
603
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.4", ngImport: i0, type: LocalizedDecimalPipe, name: "decimal", pure: false }); }
|
|
604
604
|
}
|
|
605
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
605
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizedDecimalPipe, decorators: [{
|
|
606
606
|
type: Pipe,
|
|
607
607
|
args: [{
|
|
608
608
|
name: 'decimal',
|
|
609
609
|
pure: false
|
|
610
610
|
}]
|
|
611
|
-
}], ctorParameters:
|
|
611
|
+
}], ctorParameters: () => [{ type: LocalizationService }, { type: i0.ChangeDetectorRef }] });
|
|
612
612
|
|
|
613
613
|
/**
|
|
614
614
|
* Service for handling the text direction based on the LocalizationConfiguration
|
|
@@ -637,15 +637,15 @@ class TextDirectionService {
|
|
|
637
637
|
});
|
|
638
638
|
return this.subscription;
|
|
639
639
|
}
|
|
640
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
641
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
640
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: TextDirectionService, deps: [{ token: i2.TranslateService }, { token: LOCALIZATION_CONFIGURATION_TOKEN }, { token: i0.RendererFactory2 }, { token: i2$1.Directionality }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
641
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: TextDirectionService }); }
|
|
642
642
|
}
|
|
643
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
643
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: TextDirectionService, decorators: [{
|
|
644
644
|
type: Injectable
|
|
645
|
-
}], ctorParameters:
|
|
645
|
+
}], ctorParameters: () => [{ type: i2.TranslateService }, { type: undefined, decorators: [{
|
|
646
646
|
type: Inject,
|
|
647
647
|
args: [LOCALIZATION_CONFIGURATION_TOKEN]
|
|
648
|
-
}] }, { type: i0.RendererFactory2 }, { type: i2$1.Directionality }]
|
|
648
|
+
}] }, { type: i0.RendererFactory2 }, { type: i2$1.Directionality }] });
|
|
649
649
|
|
|
650
650
|
class TextDirectionality extends Directionality {
|
|
651
651
|
constructor(_document) {
|
|
@@ -657,17 +657,17 @@ class TextDirectionality extends Directionality {
|
|
|
657
657
|
ngOnDestroy() {
|
|
658
658
|
this.change.complete();
|
|
659
659
|
}
|
|
660
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
661
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
660
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: TextDirectionality, deps: [{ token: DIR_DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
661
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: TextDirectionality }); }
|
|
662
662
|
}
|
|
663
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
663
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: TextDirectionality, decorators: [{
|
|
664
664
|
type: Injectable
|
|
665
|
-
}], ctorParameters:
|
|
665
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
666
666
|
type: Optional
|
|
667
667
|
}, {
|
|
668
668
|
type: Inject,
|
|
669
669
|
args: [DIR_DOCUMENT]
|
|
670
|
-
}] }]
|
|
670
|
+
}] }] });
|
|
671
671
|
|
|
672
672
|
/**
|
|
673
673
|
* creates LocalizationConfiguration, which is used if the application
|
|
@@ -713,9 +713,9 @@ class LocalizationModule {
|
|
|
713
713
|
]
|
|
714
714
|
};
|
|
715
715
|
}
|
|
716
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
717
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
718
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
716
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
717
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.4", ngImport: i0, type: LocalizationModule, declarations: [LocalizationTranslatePipe, LocalizationTranslateDirective, LocalizedDatePipe, LocalizedDecimalPipe, LocalizedCurrencyPipe], imports: [TranslateModule, BidiModule, DynamicContentModule, CommonModule], exports: [TranslateModule, LocalizationTranslatePipe, LocalizationTranslateDirective, LocalizedDatePipe, LocalizedDecimalPipe, LocalizedCurrencyPipe] }); }
|
|
718
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationModule, providers: [
|
|
719
719
|
{ provide: LOCALIZATION_CONFIGURATION_TOKEN, useFactory: createLocalizationConfiguration, deps: [[new Optional(), CUSTOM_LOCALIZATION_CONFIGURATION_TOKEN]] },
|
|
720
720
|
{ provide: LOCALE_ID, useFactory: localeIdNgBridge, deps: [LocalizationService] },
|
|
721
721
|
{ provide: Directionality, useClass: TextDirectionality },
|
|
@@ -725,7 +725,7 @@ class LocalizationModule {
|
|
|
725
725
|
TextDirectionService
|
|
726
726
|
], imports: [TranslateModule, BidiModule, DynamicContentModule, CommonModule, TranslateModule] }); }
|
|
727
727
|
}
|
|
728
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
728
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationModule, decorators: [{
|
|
729
729
|
type: NgModule,
|
|
730
730
|
args: [{
|
|
731
731
|
declarations: [LocalizationTranslatePipe, LocalizationTranslateDirective, LocalizedDatePipe, LocalizedDecimalPipe, LocalizedCurrencyPipe],
|
|
@@ -834,19 +834,19 @@ class TranslationsLoader {
|
|
|
834
834
|
}
|
|
835
835
|
}));
|
|
836
836
|
}
|
|
837
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
838
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
837
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: TranslationsLoader, deps: [{ token: LOCALIZATION_CONFIGURATION_TOKEN }, { token: i1.LoggerService, optional: true }, { token: i2$2.DynamicContentService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
838
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: TranslationsLoader }); }
|
|
839
839
|
}
|
|
840
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
840
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: TranslationsLoader, decorators: [{
|
|
841
841
|
type: Injectable
|
|
842
|
-
}], ctorParameters:
|
|
842
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
843
843
|
type: Inject,
|
|
844
844
|
args: [LOCALIZATION_CONFIGURATION_TOKEN]
|
|
845
845
|
}] }, { type: i1.LoggerService, decorators: [{
|
|
846
846
|
type: Optional
|
|
847
847
|
}] }, { type: i2$2.DynamicContentService, decorators: [{
|
|
848
848
|
type: Optional
|
|
849
|
-
}] }]
|
|
849
|
+
}] }] });
|
|
850
850
|
|
|
851
851
|
/**
|
|
852
852
|
* Creates a loader of translations bundles based on the configuration
|
|
@@ -880,12 +880,12 @@ class OtterLocalizationDevtools {
|
|
|
880
880
|
showLocalizationKeys(value) {
|
|
881
881
|
this.localizationService.toggleShowKeys(value);
|
|
882
882
|
}
|
|
883
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
884
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
883
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: OtterLocalizationDevtools, deps: [{ token: LocalizationService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
884
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: OtterLocalizationDevtools }); }
|
|
885
885
|
}
|
|
886
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
886
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: OtterLocalizationDevtools, decorators: [{
|
|
887
887
|
type: Injectable
|
|
888
|
-
}], ctorParameters:
|
|
888
|
+
}], ctorParameters: () => [{ type: LocalizationService }] });
|
|
889
889
|
|
|
890
890
|
const OTTER_LOCALIZATION_DEVTOOLS_DEFAULT_OPTIONS = {
|
|
891
891
|
isActivatedOnBootstrap: false
|
|
@@ -920,17 +920,17 @@ class LocalizationDevtoolsConsoleService {
|
|
|
920
920
|
showLocalizationKeys(value) {
|
|
921
921
|
this.localizationDevtools.showLocalizationKeys(value);
|
|
922
922
|
}
|
|
923
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
924
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
923
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationDevtoolsConsoleService, deps: [{ token: OtterLocalizationDevtools }, { token: OTTER_LOCALIZATION_DEVTOOLS_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
924
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationDevtoolsConsoleService }); }
|
|
925
925
|
}
|
|
926
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
926
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationDevtoolsConsoleService, decorators: [{
|
|
927
927
|
type: Injectable
|
|
928
|
-
}], ctorParameters:
|
|
928
|
+
}], ctorParameters: () => [{ type: OtterLocalizationDevtools }, { type: undefined, decorators: [{
|
|
929
929
|
type: Optional
|
|
930
930
|
}, {
|
|
931
931
|
type: Inject,
|
|
932
932
|
args: [OTTER_LOCALIZATION_DEVTOOLS_OPTIONS]
|
|
933
|
-
}] }]
|
|
933
|
+
}] }] });
|
|
934
934
|
|
|
935
935
|
const isLocalizationMessage = (message) => {
|
|
936
936
|
return message && message.dataType === 'displayLocalizationKeys';
|
|
@@ -981,17 +981,17 @@ class LocalizationDevtoolsMessageService {
|
|
|
981
981
|
ngOnDestroy() {
|
|
982
982
|
this.subscriptions.unsubscribe();
|
|
983
983
|
}
|
|
984
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
985
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
984
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationDevtoolsMessageService, deps: [{ token: i1.LoggerService }, { token: OtterLocalizationDevtools }, { token: OTTER_LOCALIZATION_DEVTOOLS_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
985
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationDevtoolsMessageService }); }
|
|
986
986
|
}
|
|
987
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
987
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationDevtoolsMessageService, decorators: [{
|
|
988
988
|
type: Injectable
|
|
989
|
-
}], ctorParameters:
|
|
989
|
+
}], ctorParameters: () => [{ type: i1.LoggerService }, { type: OtterLocalizationDevtools }, { type: undefined, decorators: [{
|
|
990
990
|
type: Optional
|
|
991
991
|
}, {
|
|
992
992
|
type: Inject,
|
|
993
993
|
args: [OTTER_LOCALIZATION_DEVTOOLS_OPTIONS]
|
|
994
|
-
}] }]
|
|
994
|
+
}] }] });
|
|
995
995
|
|
|
996
996
|
class LocalizationDevtoolsModule {
|
|
997
997
|
/**
|
|
@@ -1010,16 +1010,16 @@ class LocalizationDevtoolsModule {
|
|
|
1010
1010
|
]
|
|
1011
1011
|
};
|
|
1012
1012
|
}
|
|
1013
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1014
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1015
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1013
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationDevtoolsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1014
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.4", ngImport: i0, type: LocalizationDevtoolsModule, imports: [LocalizationModule] }); }
|
|
1015
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationDevtoolsModule, providers: [
|
|
1016
1016
|
{ provide: OTTER_LOCALIZATION_DEVTOOLS_OPTIONS, useValue: OTTER_LOCALIZATION_DEVTOOLS_DEFAULT_OPTIONS },
|
|
1017
1017
|
LocalizationDevtoolsMessageService,
|
|
1018
1018
|
LocalizationDevtoolsConsoleService,
|
|
1019
1019
|
OtterLocalizationDevtools
|
|
1020
1020
|
], imports: [LocalizationModule] }); }
|
|
1021
1021
|
}
|
|
1022
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1022
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationDevtoolsModule, decorators: [{
|
|
1023
1023
|
type: NgModule,
|
|
1024
1024
|
args: [{
|
|
1025
1025
|
imports: [
|