@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.
- package/bundles/colijnit-catalog.umd.js +14 -8
- package/bundles/colijnit-catalog.umd.js.map +1 -1
- package/colijnit-catalog-256.1.12.tgz +0 -0
- package/colijnit-catalog-256.1.13.tgz +0 -0
- package/colijnit-catalog.metadata.json +1 -1
- package/esm2015/lib/catalog-version.js +3 -3
- package/esm2015/lib/enum/language-code.enum.js +8 -0
- package/esm2015/lib/pipe/localize.pipe.js +27 -0
- package/esm2015/lib/pipe/pipe.module.js +19 -0
- package/esm2015/lib/res/dictionary/dictionaries.js +2 -2
- package/esm2015/lib/service/catalog-settings.service.js +9 -2
- package/esm2015/lib/service/dictionary.service.js +90 -0
- package/fesm2015/colijnit-catalog.js +10 -4
- package/fesm2015/colijnit-catalog.js.map +1 -1
- package/lib/enum/language-code.enum.d.ts +6 -0
- package/lib/pipe/localize.pipe.d.ts +7 -0
- package/lib/pipe/pipe.module.d.ts +2 -0
- package/lib/res/dictionary/dictionaries.d.ts +1 -0
- package/lib/service/dictionary.service.d.ts +24 -0
- package/package.json +2 -2
|
@@ -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
|
+
}
|
|
@@ -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.
|
|
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.
|
|
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",
|