@colijnit/catalog 261.20.5 → 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
@@ -297,6 +297,9 @@ declare class CatalogConnectorAdapterService implements OnDestroy {
297
297
  getArticleStockInformation(goodId: number): Promise<number>;
298
298
  getArticlePrice(goodId: number, type: string): Promise<ArticlePrice>;
299
299
  getDocumentContent(docId: number, thumbnail?: boolean): Promise<string>;
300
+ getGoogleTranslation(sourceLang: string, targetLang: string, list: string[]): Promise<string>;
301
+ googleTranslateEnabled(): Promise<boolean>;
302
+ getDefaultLanguage(upId: number): Promise<string>;
300
303
  addWebSessionTransactionLine(transactionUuid: string, sku: string, quantity: number): Promise<string>;
301
304
  getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, externalSource?: boolean, showLoader?: boolean, instanceId?: string, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
302
305
  getObjectConfiguration(screenCfgModule: string, params?: string | string[], insertMode?: boolean): Promise<ObjectConfiguration[]>;
@@ -513,6 +516,9 @@ declare class CatalogConnectorService {
513
516
  updatePreset(presetName: string): Promise<boolean>;
514
517
  getWebViewStartupInfo(request: ExternalCatalogStartupInfoRequest): Promise<ExternalCatalogStartupInfo>;
515
518
  getDocumentContent(docId: number, thumbnail?: boolean): Promise<string>;
519
+ getGoogleTranslation(sourceLang: string, targetLang: string, list: string[]): Promise<string>;
520
+ googleTranslateEnabled(): Promise<boolean>;
521
+ getDefaultLanguage(upId: number): Promise<string>;
516
522
  getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, externalSource?: boolean, showLoader?: boolean, instanceId?: string, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
517
523
  addWebSessionTransactionLine(transactionUuid: string, sku: string, quantity: number): Promise<string>;
518
524
  getGeneratedArtDirectly(goodId: number, showLoader?: boolean): Promise<number>;
@@ -928,9 +934,35 @@ declare class GreaterThanZeroPipe implements PipeTransform {
928
934
  static ɵpipe: i0.ɵɵPipeDeclaration<GreaterThanZeroPipe, "greaterThanZero", false>;
929
935
  }
930
936
 
937
+ declare class GoogleTranslateService implements OnDestroy {
938
+ private _settingsService;
939
+ private _connectorService;
940
+ private _connectorAdapterService;
941
+ private _clientLanguage;
942
+ private _defaultLanguage;
943
+ private _translations;
944
+ private _initialized;
945
+ private _initializedSubject;
946
+ private _connectionSubject;
947
+ protected googleApiEnabled: boolean;
948
+ constructor(_settingsService: CatalogSettingsService, _connectorService: CatalogConnectorService, _connectorAdapterService: CatalogConnectorAdapterService);
949
+ ngOnDestroy(): void;
950
+ getTranslation(input: string): Promise<string>;
951
+ static ɵfac: i0.ɵɵFactoryDeclaration<GoogleTranslateService, never>;
952
+ static ɵprov: i0.ɵɵInjectableDeclaration<GoogleTranslateService>;
953
+ }
954
+
955
+ declare class GoogleTranslatePipe implements PipeTransform {
956
+ private _googleTranslateService;
957
+ constructor(_googleTranslateService: GoogleTranslateService);
958
+ transform(value: string): Observable<string>;
959
+ static ɵfac: i0.ɵɵFactoryDeclaration<GoogleTranslatePipe, never>;
960
+ static ɵpipe: i0.ɵɵPipeDeclaration<GoogleTranslatePipe, "googleTranslate", false>;
961
+ }
962
+
931
963
  declare class CatalogPipeModule {
932
964
  static ɵfac: i0.ɵɵFactoryDeclaration<CatalogPipeModule, never>;
933
- static ɵmod: i0.ɵɵNgModuleDeclaration<CatalogPipeModule, [typeof CatalogLocalizePipe, typeof PriceDisplayPipe, typeof GreaterThanZeroPipe], [typeof i2.CommonModule], [typeof CatalogLocalizePipe, typeof PriceDisplayPipe, typeof GreaterThanZeroPipe]>;
965
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CatalogPipeModule, [typeof CatalogLocalizePipe, typeof PriceDisplayPipe, typeof GreaterThanZeroPipe, typeof GoogleTranslatePipe], [typeof i2.CommonModule], [typeof CatalogLocalizePipe, typeof PriceDisplayPipe, typeof GreaterThanZeroPipe, typeof GoogleTranslatePipe]>;
934
966
  static ɵinj: i0.ɵɵInjectorDeclaration<CatalogPipeModule>;
935
967
  }
936
968
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/catalog",
3
- "version": "261.20.5",
3
+ "version": "262.1.1",
4
4
  "license": "MIT",
5
5
  "description": "iOne Catalog module based on Angular 12",
6
6
  "repository": "npm/npm",
@@ -15,12 +15,12 @@
15
15
  "@angular/platform-browser": ">=20.3.16",
16
16
  "@angular/platform-browser-dynamic": ">=20.3.16",
17
17
  "@angular/router": ">=20.3.16",
18
- "@colijnit/articleapi": ">=261.1.1",
19
- "@colijnit/transactionapi": ">=261.1.0",
20
- "@colijnit/corecomponents_v12": ">=261.20.0",
21
- "@colijnit/ioneconnector": ">=261.1.2",
22
- "@colijnit/relationapi": ">=261.1.1",
23
- "@colijnit/mainapi": ">=261.1.0",
18
+ "@colijnit/articleapi": ">=262.1.0",
19
+ "@colijnit/transactionapi": ">=262.1.0",
20
+ "@colijnit/corecomponents_v12": ">=262.1.0",
21
+ "@colijnit/ioneconnector": ">=262.1.0",
22
+ "@colijnit/relationapi": ">=262.1.0",
23
+ "@colijnit/mainapi": ">=262.1.1",
24
24
  "core-js": ">=2.5.4",
25
25
  "rxjs": ">=7.4.0",
26
26
  "xlsx": ">=0.18.5",