@colijnit/catalog 256.1.13 → 256.1.14

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.
@@ -0,0 +1,6 @@
1
+ export declare enum LanguageCode {
2
+ Dutch = "nl-NL",
3
+ English = "en-GB",
4
+ German = "de-DE",
5
+ French = "fr-FR"
6
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { DictionaryService } from '../service/dictionary.service';
3
+ export declare class LocalizePipe implements PipeTransform {
4
+ private _dictionaryService;
5
+ constructor(_dictionaryService: DictionaryService);
6
+ transform(value: string, upperCaseFirst?: boolean, replace?: string | string[]): string;
7
+ }
@@ -0,0 +1,2 @@
1
+ export declare class PipeModule {
2
+ }
@@ -16318,6 +16318,7 @@ export declare class Dictionaries {
16318
16318
  PLAN_RESTRICTED: string;
16319
16319
  PLAN_RESTRICT_USERS: string;
16320
16320
  PLAN_YOUR_DELIVERY: string;
16321
+ PLEASE_ADD_AT_LEAST_ONE_ADDRESS: string;
16321
16322
  PLEASE_ADJUST_SUPPLIER_ON_ARTICLE_LEVEL: string;
16322
16323
  PLEASE_CLOSE_HTML_EDITOR: string;
16323
16324
  PLEASE_CLOSE_MODULE_AND_TRY_AGAIN: string;
@@ -0,0 +1,24 @@
1
+ import { Subject } from 'rxjs';
2
+ export declare class DictionaryService {
3
+ private readonly dictionaryUrl;
4
+ get language(): string;
5
+ set rootUrl(value: string);
6
+ dictionaryLoaded: Subject<void>;
7
+ private _dictBasePath;
8
+ private _rootUrl;
9
+ private _dictionaryPromise;
10
+ private _dictionaries;
11
+ private _language;
12
+ private readonly _placeholder;
13
+ getLanguageCode(lc: string): string;
14
+ setDictionary(language: string, additionalTranslationFile?: string): Promise<void>;
15
+ /**
16
+ * Returns the localized text for the given dictionary key.
17
+ * @param {string} key
18
+ * @param {boolean} [upperCaseFirst = true] False for first letter lowercase, true for first letter uppercase for returned dict val
19
+ * @param {string[]} replacementTexts Rest params for replacement of '|~' in returned dict value
20
+ * @returns {string} The translated text for given dictionary key
21
+ */
22
+ get(key: string, upperCaseFirst?: boolean, ...replacementTexts: string[]): string;
23
+ private _dictionaryLoaded;
24
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/catalog",
3
- "version": "256.1.13",
3
+ "version": "256.1.14",
4
4
  "license": "MIT",
5
5
  "description": "iOne Catalog module based on Angular 12",
6
6
  "repository": "npm/npm",
@@ -20,7 +20,7 @@
20
20
  "@colijnit/articleapi": ">=256.1.4",
21
21
  "@colijnit/transactionapi": ">=256.1.0",
22
22
  "@colijnit/corecomponents": ">=1.12.0",
23
- "@colijnit/corecomponents_v12": ">=256.1.9",
23
+ "@colijnit/corecomponents_v12": ">=256.1.10",
24
24
  "@colijnit/ioneconnector": ">=256.1.0",
25
25
  "@colijnit/relationapi": ">=256.1.0",
26
26
  "@colijnit/mainapi": ">=256.1.0",