@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.
Files changed (55) hide show
  1. package/builders/helpers/localization.generator.d.ts +4 -2
  2. package/builders/helpers/localization.generator.d.ts.map +1 -1
  3. package/builders/helpers/localization.generator.js +42 -14
  4. package/builders/helpers/localization.generator.js.map +1 -1
  5. package/builders/i18n/schema.json +1 -1
  6. package/builders/localization/schema.json +1 -1
  7. package/builders/localization-extractor/index.js +1 -1
  8. package/builders/localization-extractor/index.js.map +1 -1
  9. package/builders/localization-extractor/schema.json +1 -1
  10. package/esm2022/core/translate-messageformat-lazy.compiler.mjs +5 -5
  11. package/esm2022/devkit/localization-devtools.console.service.mjs +5 -5
  12. package/esm2022/devkit/localization-devtools.message.service.mjs +5 -5
  13. package/esm2022/devkit/localization-devtools.module.mjs +4 -4
  14. package/esm2022/devkit/localization-devtools.service.mjs +4 -4
  15. package/esm2022/rules-engine/localization.handler-action.mjs +30 -0
  16. package/esm2022/rules-engine/localization.interfaces.mjs +3 -0
  17. package/esm2022/rules-engine/localization.rules-engine.module.mjs +23 -0
  18. package/esm2022/rules-engine/o3r-localization-rules-engine.mjs +5 -0
  19. package/esm2022/rules-engine/public_api.mjs +4 -0
  20. package/esm2022/stores/localization-override/localization-override.module.mjs +4 -4
  21. package/esm2022/tools/localization-translate.directive.mjs +6 -6
  22. package/esm2022/tools/localization-translate.pipe.mjs +5 -5
  23. package/esm2022/tools/localization.module.mjs +4 -4
  24. package/esm2022/tools/localization.service.mjs +6 -6
  25. package/esm2022/tools/localized-currency.pipe.mjs +5 -5
  26. package/esm2022/tools/localized-date.pipe.mjs +4 -4
  27. package/esm2022/tools/localized-decimal.pipe.mjs +4 -4
  28. package/esm2022/tools/text-direction.service.mjs +5 -5
  29. package/esm2022/tools/text-directionality.service.mjs +5 -5
  30. package/esm2022/tools/translations-loader.mjs +5 -5
  31. package/fesm2022/o3r-localization-rules-engine.mjs +57 -0
  32. package/fesm2022/o3r-localization-rules-engine.mjs.map +1 -0
  33. package/fesm2022/o3r-localization.mjs +74 -74
  34. package/fesm2022/o3r-localization.mjs.map +1 -1
  35. package/package.json +25 -18
  36. package/rules-engine/index.d.ts +6 -0
  37. package/rules-engine/localization.handler-action.d.ts +19 -0
  38. package/rules-engine/localization.handler-action.d.ts.map +1 -0
  39. package/rules-engine/localization.interfaces.d.ts +12 -0
  40. package/rules-engine/localization.interfaces.d.ts.map +1 -0
  41. package/rules-engine/localization.rules-engine.module.d.ts +8 -0
  42. package/rules-engine/localization.rules-engine.module.d.ts.map +1 -0
  43. package/rules-engine/o3r-localization-rules-engine.d.ts.map +1 -0
  44. package/rules-engine/public_api.d.ts +4 -0
  45. package/rules-engine/public_api.d.ts.map +1 -0
  46. package/schemas/localization.metadata.schema.json +1 -1
  47. package/schemas/rules-engine.localisation-action.schema.json +26 -0
  48. package/schematics/add-localization-key/schema.json +1 -1
  49. package/schematics/localization-to-component/schema.json +1 -1
  50. package/schematics/ng-add/schema.json +1 -1
  51. package/tools/localization.service.d.ts.map +1 -1
  52. package/tools/localized-currency.pipe.d.ts +3 -3
  53. package/tools/localized-currency.pipe.d.ts.map +1 -1
  54. package/builders/package.json +0 -3
  55. 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 { createAction, props, on, createReducer, StoreModule, createFeatureSelector, createSelector, select } from '@ngrx/store';
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: "16.2.0", 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: "16.2.0", ngImport: i0, type: TranslateMessageFormatLazyCompiler }); }
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: "16.2.0", ngImport: i0, type: TranslateMessageFormatLazyCompiler, decorators: [{
118
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: TranslateMessageFormatLazyCompiler, decorators: [{
119
119
  type: Injectable
120
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
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: "16.2.0", ngImport: i0, type: LocalizationOverrideStoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
170
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.0", ngImport: i0, type: LocalizationOverrideStoreModule, imports: [i3.StoreFeatureModule] }); }
171
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: LocalizationOverrideStoreModule, providers: [
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: "16.2.0", ngImport: i0, type: LocalizationOverrideStoreModule, decorators: [{
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: "16.2.0", 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: "16.2.0", ngImport: i0, type: LocalizationService }); }
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: "16.2.0", ngImport: i0, type: LocalizationService, decorators: [{
382
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationService, decorators: [{
383
383
  type: Injectable
384
- }], ctorParameters: function () { return [{ type: i2.TranslateService }, { type: i1.LoggerService }, { type: undefined, decorators: [{
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: "16.2.0", 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: "16.2.0", type: LocalizationTranslateDirective, selector: "[translate],[ngx-translate]", inputs: { translate: "translate" }, usesInheritance: true, ngImport: i0 }); }
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: "16.2.0", ngImport: i0, type: LocalizationTranslateDirective, decorators: [{
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: function () { return [{ type: LocalizationService }, { type: i2.TranslateService }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
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
- }] }]; }, propDecorators: { translate: [{
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: "16.2.0", 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: "16.2.0", ngImport: i0, type: LocalizationTranslatePipe, name: "translate", pure: false }); }
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: "16.2.0", ngImport: i0, type: LocalizationTranslatePipe, decorators: [{
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: function () { return [{ type: LocalizationService }, { type: i2.TranslateService }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
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: "16.2.0", 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: "16.2.0", ngImport: i0, type: LocalizedCurrencyPipe, name: "currency", pure: false }); }
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: "16.2.0", ngImport: i0, type: LocalizedCurrencyPipe, decorators: [{
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: function () { return [{ type: LocalizationService }, { type: i0.ChangeDetectorRef }]; } });
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: "16.2.0", 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: "16.2.0", ngImport: i0, type: LocalizedDatePipe, name: "date", pure: false }); }
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: "16.2.0", ngImport: i0, type: LocalizedDatePipe, decorators: [{
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: function () { return [{ type: LocalizationService }, { type: i0.ChangeDetectorRef }]; } });
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: "16.2.0", 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: "16.2.0", ngImport: i0, type: LocalizedDecimalPipe, name: "decimal", pure: false }); }
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: "16.2.0", ngImport: i0, type: LocalizedDecimalPipe, decorators: [{
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: function () { return [{ type: LocalizationService }, { type: i0.ChangeDetectorRef }]; } });
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: "16.2.0", 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: "16.2.0", ngImport: i0, type: TextDirectionService }); }
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: "16.2.0", ngImport: i0, type: TextDirectionService, decorators: [{
643
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: TextDirectionService, decorators: [{
644
644
  type: Injectable
645
- }], ctorParameters: function () { return [{ type: i2.TranslateService }, { type: undefined, decorators: [{
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: "16.2.0", 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: "16.2.0", ngImport: i0, type: TextDirectionality }); }
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: "16.2.0", ngImport: i0, type: TextDirectionality, decorators: [{
663
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: TextDirectionality, decorators: [{
664
664
  type: Injectable
665
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
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: "16.2.0", ngImport: i0, type: LocalizationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
717
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.0", 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: "16.2.0", ngImport: i0, type: LocalizationModule, providers: [
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: "16.2.0", ngImport: i0, type: LocalizationModule, decorators: [{
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: "16.2.0", 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: "16.2.0", ngImport: i0, type: TranslationsLoader }); }
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: "16.2.0", ngImport: i0, type: TranslationsLoader, decorators: [{
840
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: TranslationsLoader, decorators: [{
841
841
  type: Injectable
842
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
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: "16.2.0", ngImport: i0, type: OtterLocalizationDevtools, deps: [{ token: LocalizationService }], target: i0.ɵɵFactoryTarget.Injectable }); }
884
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: OtterLocalizationDevtools }); }
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: "16.2.0", ngImport: i0, type: OtterLocalizationDevtools, decorators: [{
886
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: OtterLocalizationDevtools, decorators: [{
887
887
  type: Injectable
888
- }], ctorParameters: function () { return [{ type: LocalizationService }]; } });
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: "16.2.0", 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: "16.2.0", ngImport: i0, type: LocalizationDevtoolsConsoleService }); }
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: "16.2.0", ngImport: i0, type: LocalizationDevtoolsConsoleService, decorators: [{
926
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationDevtoolsConsoleService, decorators: [{
927
927
  type: Injectable
928
- }], ctorParameters: function () { return [{ type: OtterLocalizationDevtools }, { type: undefined, decorators: [{
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: "16.2.0", 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: "16.2.0", ngImport: i0, type: LocalizationDevtoolsMessageService }); }
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: "16.2.0", ngImport: i0, type: LocalizationDevtoolsMessageService, decorators: [{
987
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationDevtoolsMessageService, decorators: [{
988
988
  type: Injectable
989
- }], ctorParameters: function () { return [{ type: i1.LoggerService }, { type: OtterLocalizationDevtools }, { type: undefined, decorators: [{
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: "16.2.0", ngImport: i0, type: LocalizationDevtoolsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1014
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.0", ngImport: i0, type: LocalizationDevtoolsModule, imports: [LocalizationModule] }); }
1015
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: LocalizationDevtoolsModule, providers: [
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: "16.2.0", ngImport: i0, type: LocalizationDevtoolsModule, decorators: [{
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: [