@colijnit/catalog 256.1.12 → 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 +345 -224
- 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.d.ts +37 -39
- package/colijnit-catalog.metadata.json +1 -1
- package/esm2015/colijnit-catalog.js +38 -40
- package/esm2015/lib/catalog-version.js +3 -3
- package/esm2015/lib/component/base/article-base.component.js +11 -5
- package/esm2015/lib/component/catalog-article-list/catalog-article-list.component.js +7 -5
- package/esm2015/lib/component/catalog-article-list/catalog-article-list.module.js +3 -3
- package/esm2015/lib/component/catalog-article-tile/catalog-article-tile.component.js +6 -6
- package/esm2015/lib/component/catalog-article-tile/catalog-article-tile.module.js +3 -3
- package/esm2015/lib/component/catalog-categories/catalog-categories.component.js +8 -7
- package/esm2015/lib/component/catalog-categories/catalog-categories.module.js +3 -3
- package/esm2015/lib/component/catalog-filter/catalog-filter.component.js +18 -11
- package/esm2015/lib/component/catalog-filter/catalog-filter.module.js +7 -7
- package/esm2015/lib/component/catalog-filter-categories/catalog-filter-categories.component.js +18 -10
- package/esm2015/lib/component/catalog-filter-categories/catalog-filter-categories.module.js +8 -6
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.js +230 -243
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.module.js +9 -9
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.component.js +155 -180
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.module.js +9 -9
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.component.js +46 -43
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.module.js +9 -9
- package/esm2015/lib/component/catalog-filter-item/catalog-filter-item.component.js +38 -28
- package/esm2015/lib/component/catalog-filter-item/catalog-filter-item.module.js +7 -7
- package/esm2015/lib/component/catalog-navigation/catalog-navigation.component.js +7 -7
- package/esm2015/lib/component/catalog-navigation/catalog-navigation.module.js +4 -2
- package/esm2015/lib/component/catalog-search/catalog-search.component.js +38 -5
- package/esm2015/lib/component/catalog-search/catalog-search.module.js +4 -2
- package/esm2015/lib/component/catalog-search-result-list/catalog-search-result-list.component.js +3 -3
- package/esm2015/lib/component/catalog-search-result-list/catalog-search-result-list.module.js +3 -3
- package/esm2015/lib/component/catalog-search-result-tile/catalog-search-result-tile.component.js +3 -3
- package/esm2015/lib/component/catalog-search-result-tile/catalog-search-result-tile.module.js +3 -3
- package/esm2015/lib/component/catalog-stock-comparison-list/catalog-stock-comparison-list.component.js +13 -13
- package/esm2015/lib/component/catalog-stock-comparison-list/catalog-stock-comparison-list.module.js +7 -7
- package/esm2015/lib/component/catalog-stock-comparison-tile/catalog-stock-comparison-tile.component.js +30 -16
- package/esm2015/lib/component/catalog-stock-comparison-tile/catalog-stock-comparison-tile.module.js +6 -6
- package/esm2015/lib/component/catalog-stock-overview-list/catalog-stock-overview-list.component.js +18 -18
- package/esm2015/lib/component/catalog-stock-overview-list/catalog-stock-overview-list.module.js +7 -7
- package/esm2015/lib/component/catalog-stock-overview-tile/catalog-stock-overview-tile.component.js +31 -15
- package/esm2015/lib/component/catalog-stock-overview-tile/catalog-stock-overview-tile.module.js +6 -6
- package/esm2015/lib/component/catalog-warehouse-transfers-list/catalog-warehouse-transfers-list.component.js +19 -19
- package/esm2015/lib/component/catalog-warehouse-transfers-list/catalog-warehouse-transfers-list.module.js +7 -7
- package/esm2015/lib/component/catalog-warehouse-transfers-tile/catalog-warehouse-transfers-tile.component.js +30 -16
- package/esm2015/lib/component/catalog-warehouse-transfers-tile/catalog-warehouse-transfers-tile.module.js +7 -7
- package/esm2015/lib/enum/config-name.enum.js +2 -1
- package/esm2015/lib/interface/category.interface.js +2 -0
- package/esm2015/lib/interface/filter-order.interface.js +2 -0
- package/esm2015/lib/model/catalog-filter-viewmodel.js +1 -1
- package/esm2015/lib/pipe/catalog-localize.pipe.js +27 -0
- package/esm2015/lib/pipe/catalog-pipe.module.js +19 -0
- package/esm2015/lib/res/dictionary/dictionaries.js +9 -0
- package/esm2015/lib/service/catalog-dictionary.service.js +97 -0
- package/esm2015/lib/service/catalog-filter.service.js +2 -1
- package/esm2015/lib/service/catalog-options.service.js +5 -5
- package/esm2015/lib/service/catalog-screen-configuration.service.js +3 -2
- package/esm2015/lib/service/catalog-settings.service.js +14 -7
- package/esm2015/public_api.js +3 -1
- package/fesm2015/colijnit-catalog.js +765 -684
- package/fesm2015/colijnit-catalog.js.map +1 -1
- package/lib/component/base/article-base.component.d.ts +6 -2
- package/lib/component/catalog-filter/catalog-filter.component.d.ts +10 -5
- package/lib/component/catalog-filter-categories/catalog-filter-categories.component.d.ts +7 -6
- package/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.d.ts +10 -8
- package/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.component.d.ts +10 -8
- package/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.component.d.ts +9 -7
- package/lib/component/catalog-filter-item/catalog-filter-item.component.d.ts +3 -0
- package/lib/component/catalog-search/catalog-search.component.d.ts +17 -1
- package/lib/component/catalog-stock-comparison-list/catalog-stock-comparison-list.component.d.ts +2 -2
- package/lib/component/catalog-stock-comparison-tile/catalog-stock-comparison-tile.component.d.ts +14 -7
- package/lib/component/catalog-stock-overview-list/catalog-stock-overview-list.component.d.ts +2 -2
- package/lib/component/catalog-stock-overview-tile/catalog-stock-overview-tile.component.d.ts +16 -7
- package/lib/component/catalog-warehouse-transfers-list/catalog-warehouse-transfers-list.component.d.ts +2 -2
- package/lib/component/catalog-warehouse-transfers-tile/catalog-warehouse-transfers-tile.component.d.ts +14 -7
- package/lib/enum/config-name.enum.d.ts +1 -0
- package/lib/interface/category.interface.d.ts +5 -0
- package/lib/interface/filter-order.interface.d.ts +4 -0
- package/lib/model/catalog-filter-viewmodel.d.ts +1 -0
- package/lib/pipe/catalog-localize.pipe.d.ts +7 -0
- package/lib/pipe/catalog-pipe.module.d.ts +2 -0
- package/lib/res/dictionary/dictionaries.d.ts +18857 -0
- package/lib/service/catalog-dictionary.service.d.ts +25 -0
- package/lib/service/catalog-options.service.d.ts +2 -2
- package/lib/service/catalog-screen-configuration.service.d.ts +1 -1
- package/lib/service/catalog-settings.service.d.ts +2 -2
- package/package.json +2 -2
- package/public_api.d.ts +2 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
2
|
+
import { LanguageCode } from '@colijnit/ioneconnector/build/enum/language-code.enum';
|
|
3
|
+
export declare class CatalogDictionaryService {
|
|
4
|
+
private readonly dictionaryUrl;
|
|
5
|
+
get language(): string;
|
|
6
|
+
set rootUrl(value: string);
|
|
7
|
+
dictionaryLoaded: Subject<void>;
|
|
8
|
+
private _dictBasePath;
|
|
9
|
+
private _rootUrl;
|
|
10
|
+
private _dictionaryPromise;
|
|
11
|
+
private _dictionaries;
|
|
12
|
+
private _language;
|
|
13
|
+
private readonly _placeholder;
|
|
14
|
+
getLanguageCode(lc: string): string;
|
|
15
|
+
setDictionary(language: LanguageCode, additionalTranslationFile?: string): Promise<void>;
|
|
16
|
+
/**
|
|
17
|
+
* Returns the localized text for the given dictionary key.
|
|
18
|
+
* @param {string} key
|
|
19
|
+
* @param {boolean} [upperCaseFirst = true] False for first letter lowercase, true for first letter uppercase for returned dict val
|
|
20
|
+
* @param {string[]} replacementTexts Rest params for replacement of '|~' in returned dict value
|
|
21
|
+
* @returns {string} The translated text for given dictionary key
|
|
22
|
+
*/
|
|
23
|
+
get(key: string, upperCaseFirst?: boolean, ...replacementTexts: string[]): string;
|
|
24
|
+
private _dictionaryLoaded;
|
|
25
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
2
|
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
import {
|
|
3
|
+
import { CatalogDictionaryService } from './catalog-dictionary.service';
|
|
4
4
|
import { CatalogSettingsService } from './catalog-settings.service';
|
|
5
5
|
import { ArticleExtendedRequest } from '@colijnit/articleapi/build/model/article-extended-request';
|
|
6
6
|
export declare class CatalogOptionsService implements OnDestroy {
|
|
@@ -10,7 +10,7 @@ export declare class CatalogOptionsService implements OnDestroy {
|
|
|
10
10
|
brandFilter: number[];
|
|
11
11
|
private _parameters;
|
|
12
12
|
private _subs;
|
|
13
|
-
constructor(_dictionary:
|
|
13
|
+
constructor(_dictionary: CatalogDictionaryService, _settingsService: CatalogSettingsService);
|
|
14
14
|
ngOnDestroy(): void;
|
|
15
15
|
get showBrandFilter(): boolean;
|
|
16
16
|
get showPriceFilter(): boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ObjectConfiguration } from '@colijnit/ioneconnector/build/model/object-configuration';
|
|
2
2
|
import { BaseModuleScreenConfigService } from '@colijnit/corecomponents_v12';
|
|
3
|
-
import { CatalogConnectorAdapterService } from
|
|
3
|
+
import { CatalogConnectorAdapterService } from './catalog-connector-adapter.service';
|
|
4
4
|
export declare class CatalogScreenConfigurationService extends BaseModuleScreenConfigService {
|
|
5
5
|
private _catalogAdapterService;
|
|
6
6
|
readonly screenModuleName: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { BehaviorSubject } from 'rxjs';
|
|
2
2
|
import { CatalogSettings } from '../model/settings';
|
|
3
|
-
import {
|
|
3
|
+
import { CatalogDictionaryService } from './catalog-dictionary.service';
|
|
4
4
|
export declare class CatalogSettingsService {
|
|
5
5
|
private _dictionaryService;
|
|
6
6
|
set settings(value: CatalogSettings);
|
|
7
7
|
get settings(): CatalogSettings;
|
|
8
8
|
settingsLoaded: BehaviorSubject<boolean>;
|
|
9
9
|
private _settings;
|
|
10
|
-
constructor(_dictionaryService:
|
|
10
|
+
constructor(_dictionaryService: CatalogDictionaryService);
|
|
11
11
|
initializeSettings(): Promise<void>;
|
|
12
12
|
createSettingsFromObject(obj: any): Promise<void>;
|
|
13
13
|
settingsFinished(): Promise<void>;
|
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",
|
package/public_api.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * from "./lib/component/catalog-stock-comparison-tile/catalog-stock-compa
|
|
|
16
16
|
export * from "./lib/component/catalog-stock-comparison-list/catalog-stock-comparison-list.module";
|
|
17
17
|
export * from "./lib/component/catalog-warehouse-transfers-tile/catalog-warehouse-transfers-tile.module";
|
|
18
18
|
export * from "./lib/component/catalog-warehouse-transfers-list/catalog-warehouse-transfers-list.module";
|
|
19
|
+
export * from "./lib/service/catalog-dictionary.service";
|
|
19
20
|
export * from "./lib/service/catalog-connector.service";
|
|
20
21
|
export * from "./lib/service/catalog-connector-adapter.service";
|
|
21
22
|
export * from "./lib/service/catalog-settings.service";
|
|
@@ -29,6 +30,7 @@ export * from "./lib/service/catalog-filter.service";
|
|
|
29
30
|
export * from "./lib/service/catalog-image.service";
|
|
30
31
|
export * from "./lib/service/catalog-navigation.service";
|
|
31
32
|
export * from "./lib/service/catalog-options.service";
|
|
33
|
+
export * from "./lib/service/catalog-screen-configuration.service";
|
|
32
34
|
export * from "./lib/cache/service/catalog-business-object-cache-manager.service";
|
|
33
35
|
export * from "./lib/cache/service/catalog-select-multiple-cache.service";
|
|
34
36
|
export * from "./lib/cache/service/catalog-select-multiple-parameterized-cache.service";
|