@colijnit/product 261.20.3 → 262.1.1

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/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { OnDestroy, OnInit, EventEmitter, ElementRef, ChangeDetectorRef, PipeTransform, OnChanges, Renderer2 } from '@angular/core';
3
- import { Subject, BehaviorSubject } from 'rxjs';
3
+ import { Subject, BehaviorSubject, Observable } from 'rxjs';
4
4
  import { ArticleFullObject } from '@colijnit/articleapi/build/model/article-full-object';
5
5
  import { SuperArticle } from '@colijnit/articleapi/build/model/super-article';
6
6
  import { ConfiguratorStatisticsEnvironment } from '@colijnit/articleapi/build/model/configurator-statistics-environment';
@@ -89,6 +89,9 @@ declare class ProductConnectorAdapterService implements OnDestroy {
89
89
  addWebSessionTransactionLine(transactionUuid: string, sku: string, quantity: number): Promise<string>;
90
90
  getImageForCoDocument(document: CoDocument, thumb: boolean): Promise<ImageContent>;
91
91
  savePreset(): Promise<boolean>;
92
+ getGoogleTranslation(sourceLang: string, targetLang: string, list: string[]): Promise<string>;
93
+ googleTranslateEnabled(): Promise<boolean>;
94
+ getDefaultLanguage(upId: number): Promise<string>;
92
95
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductConnectorAdapterService, never>;
93
96
  static ɵprov: i0.ɵɵInjectableDeclaration<ProductConnectorAdapterService>;
94
97
  }
@@ -209,6 +212,9 @@ declare class ProductConnectorService implements OnDestroy {
209
212
  addWebSessionTransactionLine(transactionUuid: string, sku: string, quantity: number): Promise<string>;
210
213
  getImageForCoDocument(document: CoDocument, thumb?: boolean): Promise<ImageContent>;
211
214
  savePreset(): Promise<boolean>;
215
+ getGoogleTranslation(sourceLang: string, targetLang: string, list: string[]): Promise<string>;
216
+ googleTranslateEnabled(): Promise<boolean>;
217
+ getDefaultLanguage(upId: number): Promise<string>;
212
218
  onShowLoaderChange(showLoader: boolean): void;
213
219
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductConnectorService, never>;
214
220
  static ɵprov: i0.ɵɵInjectableDeclaration<ProductConnectorService>;
@@ -438,9 +444,34 @@ declare class PriceDisplayPipe implements PipeTransform {
438
444
  static ɵpipe: i0.ɵɵPipeDeclaration<PriceDisplayPipe, "priceDisplay", false>;
439
445
  }
440
446
 
447
+ declare class GoogleTranslateService implements OnDestroy {
448
+ private _settingsService;
449
+ private _connectorService;
450
+ private _clientLanguage;
451
+ private _defaultLanguage;
452
+ private _translations;
453
+ private _initialized;
454
+ private _initializedSubject;
455
+ private _connectionSubject;
456
+ protected googleApiEnabled: boolean;
457
+ constructor(_settingsService: ProductSettingsService, _connectorService: ProductConnectorService);
458
+ ngOnDestroy(): void;
459
+ getTranslation(input: string): Promise<string>;
460
+ static ɵfac: i0.ɵɵFactoryDeclaration<GoogleTranslateService, never>;
461
+ static ɵprov: i0.ɵɵInjectableDeclaration<GoogleTranslateService>;
462
+ }
463
+
464
+ declare class GoogleTranslatePipe implements PipeTransform {
465
+ private _googleTranslateService;
466
+ constructor(_googleTranslateService: GoogleTranslateService);
467
+ transform(value: string): Observable<string>;
468
+ static ɵfac: i0.ɵɵFactoryDeclaration<GoogleTranslatePipe, never>;
469
+ static ɵpipe: i0.ɵɵPipeDeclaration<GoogleTranslatePipe, "googleTranslate", false>;
470
+ }
471
+
441
472
  declare class PipeModule {
442
473
  static ɵfac: i0.ɵɵFactoryDeclaration<PipeModule, never>;
443
- static ɵmod: i0.ɵɵNgModuleDeclaration<PipeModule, [typeof LocalizePipe, typeof PriceDisplayPipe], never, [typeof LocalizePipe, typeof PriceDisplayPipe]>;
474
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PipeModule, [typeof LocalizePipe, typeof PriceDisplayPipe, typeof GoogleTranslatePipe], never, [typeof LocalizePipe, typeof PriceDisplayPipe, typeof GoogleTranslatePipe]>;
444
475
  static ɵinj: i0.ɵɵInjectorDeclaration<PipeModule>;
445
476
  }
446
477
 
@@ -514,7 +545,7 @@ declare class ProductDescriptionComponent implements OnInit {
514
545
 
515
546
  declare class ProductDescriptionModule {
516
547
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductDescriptionModule, never>;
517
- static ɵmod: i0.ɵɵNgModuleDeclaration<ProductDescriptionModule, [typeof ProductDescriptionComponent], [typeof i2.CommonModule], [typeof ProductDescriptionComponent]>;
548
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ProductDescriptionModule, [typeof ProductDescriptionComponent], [typeof i2.CommonModule, typeof PipeModule], [typeof ProductDescriptionComponent]>;
518
549
  static ɵinj: i0.ɵɵInjectorDeclaration<ProductDescriptionModule>;
519
550
  }
520
551
 
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@colijnit/product",
3
- "version": "261.20.3",
3
+ "version": "262.1.1",
4
4
  "description": "Product detail page project for iOne",
5
5
  "private": false,
6
6
  "peerDependencies": {
7
- "@colijnit/articleapi": ">=261.1.0",
8
- "@colijnit/corecomponents_v12": ">=261.20.0",
9
- "@colijnit/configurator": ">=261.20.0",
10
- "@colijnit/sharedcomponents": ">=261.20.0",
11
- "@colijnit/ioneconnector": ">=261.1.0",
12
- "@colijnit/mainapi": ">=261.1.0",
13
- "@colijnit/transactionapi": ">=261.1.0"
7
+ "@colijnit/articleapi": ">=262.1.0",
8
+ "@colijnit/corecomponents_v12": ">=262.1.0",
9
+ "@colijnit/configurator": ">=262.1.0",
10
+ "@colijnit/sharedcomponents": ">=262.1.0",
11
+ "@colijnit/ioneconnector": ">=262.1.0",
12
+ "@colijnit/mainapi": ">=262.1.1",
13
+ "@colijnit/transactionapi": ">=262.1.0"
14
14
  },
15
15
  "dependencies": {
16
16
  "@angular/animations": "20.3.16",