@colijnit/product 262.1.0 → 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/colijnit-product-262.1.0.tgz +0 -0
- package/fesm2022/colijnit-product.mjs +155 -26
- package/fesm2022/colijnit-product.mjs.map +1 -1
- package/index.d.ts +34 -3
- package/package.json +1 -1
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
|
|