@colijnit/catalog 262.1.0 → 262.1.2
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>;
|
|
@@ -846,7 +852,8 @@ declare enum ConfigNameEnum {
|
|
|
846
852
|
TagFilter = "tagFilter",
|
|
847
853
|
TurnoverGroupFilter = "turnoverGroupFilter",
|
|
848
854
|
BrandFilter = "brandFilter",
|
|
849
|
-
ResultTiles = "resultSetting"
|
|
855
|
+
ResultTiles = "resultSetting",
|
|
856
|
+
PurchaseDescriptionFilter = "purchaseDescriptionFilter"
|
|
850
857
|
}
|
|
851
858
|
|
|
852
859
|
interface Category {
|
|
@@ -928,9 +935,35 @@ declare class GreaterThanZeroPipe implements PipeTransform {
|
|
|
928
935
|
static ɵpipe: i0.ɵɵPipeDeclaration<GreaterThanZeroPipe, "greaterThanZero", false>;
|
|
929
936
|
}
|
|
930
937
|
|
|
938
|
+
declare class GoogleTranslateService implements OnDestroy {
|
|
939
|
+
private _settingsService;
|
|
940
|
+
private _connectorService;
|
|
941
|
+
private _connectorAdapterService;
|
|
942
|
+
private _clientLanguage;
|
|
943
|
+
private _defaultLanguage;
|
|
944
|
+
private _translations;
|
|
945
|
+
private _initialized;
|
|
946
|
+
private _initializedSubject;
|
|
947
|
+
private _connectionSubject;
|
|
948
|
+
protected googleApiEnabled: boolean;
|
|
949
|
+
constructor(_settingsService: CatalogSettingsService, _connectorService: CatalogConnectorService, _connectorAdapterService: CatalogConnectorAdapterService);
|
|
950
|
+
ngOnDestroy(): void;
|
|
951
|
+
getTranslation(input: string): Promise<string>;
|
|
952
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GoogleTranslateService, never>;
|
|
953
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GoogleTranslateService>;
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
declare class GoogleTranslatePipe implements PipeTransform {
|
|
957
|
+
private _googleTranslateService;
|
|
958
|
+
constructor(_googleTranslateService: GoogleTranslateService);
|
|
959
|
+
transform(value: string): Observable<string>;
|
|
960
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GoogleTranslatePipe, never>;
|
|
961
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<GoogleTranslatePipe, "googleTranslate", false>;
|
|
962
|
+
}
|
|
963
|
+
|
|
931
964
|
declare class CatalogPipeModule {
|
|
932
965
|
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]>;
|
|
966
|
+
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
967
|
static ɵinj: i0.ɵɵInjectorDeclaration<CatalogPipeModule>;
|
|
935
968
|
}
|
|
936
969
|
|
|
@@ -185,6 +185,11 @@
|
|
|
185
185
|
font-weight: $co-catalog-article-list-article-desc-font-weight;
|
|
186
186
|
margin-top: 10px;
|
|
187
187
|
}
|
|
188
|
+
&.buyer {
|
|
189
|
+
font-size: $co-catalog-article-list-article-added-desc-font-size;
|
|
190
|
+
font-weight: $co-catalog-article-list-article-desc-font-weight;
|
|
191
|
+
margin-top: 10px;
|
|
192
|
+
}
|
|
188
193
|
}
|
|
189
194
|
display: flex;
|
|
190
195
|
flex-direction: column;
|