@colijnit/catalog 255.1.18 → 255.1.20
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 +250 -181
- package/bundles/colijnit-catalog.umd.js.map +1 -1
- package/colijnit-catalog-255.1.19.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 +3 -3
- package/esm2015/lib/component/catalog-article-list/catalog-article-list.component.js +4 -4
- 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 +5 -5
- package/esm2015/lib/component/catalog-article-tile/catalog-article-tile.module.js +3 -3
- package/esm2015/lib/component/catalog-categories/catalog-categories.component.js +7 -7
- package/esm2015/lib/component/catalog-categories/catalog-categories.module.js +3 -3
- package/esm2015/lib/component/catalog-filter/catalog-filter.component.js +16 -11
- package/esm2015/lib/component/catalog-filter/catalog-filter.module.js +3 -3
- package/esm2015/lib/component/catalog-filter-categories/catalog-filter-categories.component.js +17 -9
- package/esm2015/lib/component/catalog-filter-categories/catalog-filter-categories.module.js +5 -3
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.js +202 -205
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.module.js +3 -3
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.component.js +148 -171
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.module.js +3 -3
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.component.js +37 -36
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.module.js +3 -3
- 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 +3 -3
- package/esm2015/lib/component/catalog-search/catalog-search.component.js +35 -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 +11 -11
- package/esm2015/lib/component/catalog-stock-comparison-list/catalog-stock-comparison-list.module.js +3 -3
- package/esm2015/lib/component/catalog-stock-comparison-tile/catalog-stock-comparison-tile.component.js +7 -7
- package/esm2015/lib/component/catalog-stock-comparison-tile/catalog-stock-comparison-tile.module.js +3 -3
- package/esm2015/lib/component/catalog-stock-overview-list/catalog-stock-overview-list.component.js +16 -16
- package/esm2015/lib/component/catalog-stock-overview-list/catalog-stock-overview-list.module.js +3 -3
- package/esm2015/lib/component/catalog-stock-overview-tile/catalog-stock-overview-tile.component.js +6 -6
- package/esm2015/lib/component/catalog-stock-overview-tile/catalog-stock-overview-tile.module.js +3 -3
- package/esm2015/lib/component/catalog-warehouse-transfers-list/catalog-warehouse-transfers-list.component.js +17 -17
- package/esm2015/lib/component/catalog-warehouse-transfers-list/catalog-warehouse-transfers-list.module.js +3 -3
- package/esm2015/lib/component/catalog-warehouse-transfers-tile/catalog-warehouse-transfers-tile.component.js +7 -7
- package/esm2015/lib/component/catalog-warehouse-transfers-tile/catalog-warehouse-transfers-tile.module.js +3 -3
- 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-settings.service.js +14 -7
- package/esm2015/public_api.js +3 -1
- package/fesm2015/colijnit-catalog.js +664 -618
- package/fesm2015/colijnit-catalog.js.map +1 -1
- package/lib/component/base/article-base.component.d.ts +2 -2
- package/lib/component/catalog-filter/catalog-filter.component.d.ts +7 -4
- 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 +3 -1
- package/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.component.d.ts +2 -0
- package/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.component.d.ts +2 -0
- package/lib/component/catalog-filter-item/catalog-filter-item.component.d.ts +3 -0
- package/lib/component/catalog-search/catalog-search.component.d.ts +16 -0
- 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 +18829 -0
- package/lib/service/{dictionary.service.d.ts → catalog-dictionary.service.d.ts} +3 -2
- package/lib/service/catalog-options.service.d.ts +2 -2
- package/lib/service/catalog-settings.service.d.ts +2 -2
- package/package.json +1 -1
- package/public_api.d.ts +2 -0
- package/esm2015/lib/enum/language-code.enum.js +0 -8
- package/esm2015/lib/pipe/localize.pipe.js +0 -27
- package/esm2015/lib/pipe/pipe.module.js +0 -19
- package/esm2015/lib/service/dictionary.service.js +0 -90
- package/lib/enum/language-code.enum.d.ts +0 -6
- package/lib/pipe/localize.pipe.d.ts +0 -7
- package/lib/pipe/pipe.module.d.ts +0 -2
|
@@ -8,7 +8,7 @@ import { CatalogConnectorService } from '../../service/catalog-connector.service
|
|
|
8
8
|
import { CatalogEventService } from '../../service/catalog-event.service';
|
|
9
9
|
import { CatalogImageService } from '../../service/catalog-image.service';
|
|
10
10
|
import { CatalogSettingsService } from '../../service/catalog-settings.service';
|
|
11
|
-
import {
|
|
11
|
+
import { CatalogDictionaryService } from "../../service/catalog-dictionary.service";
|
|
12
12
|
export declare abstract class ArticleBaseComponent {
|
|
13
13
|
iconCache: IconCacheService;
|
|
14
14
|
catalogService: CatalogService;
|
|
@@ -54,7 +54,7 @@ export declare abstract class ArticleBaseComponent {
|
|
|
54
54
|
inStock: boolean;
|
|
55
55
|
stockAmount: string;
|
|
56
56
|
private _article;
|
|
57
|
-
constructor(iconCache: IconCacheService, catalogService: CatalogService, options: CatalogOptionsService, _iOne: CatalogConnectorService, _changeDetector: ChangeDetectorRef, _appEventService: CatalogEventService, _imageService: CatalogImageService, _settingsService: CatalogSettingsService, _dictionaryService:
|
|
57
|
+
constructor(iconCache: IconCacheService, catalogService: CatalogService, options: CatalogOptionsService, _iOne: CatalogConnectorService, _changeDetector: ChangeDetectorRef, _appEventService: CatalogEventService, _imageService: CatalogImageService, _settingsService: CatalogSettingsService, _dictionaryService: CatalogDictionaryService);
|
|
58
58
|
handleLookAtArticleButtonClick(event: MouseEvent): void;
|
|
59
59
|
handleAddArticleButtonClick(event: MouseEvent): Promise<void>;
|
|
60
60
|
handleStockDetailsButtonClick(event: MouseEvent): void;
|
|
@@ -7,6 +7,8 @@ import { CatalogSearchService } from '../../service/catalog-search.service';
|
|
|
7
7
|
import { CatalogConnectorAdapterService } from '../../service/catalog-connector-adapter.service';
|
|
8
8
|
import { CatalogSettingsService } from '../../service/catalog-settings.service';
|
|
9
9
|
import { CatalogService, StockView } from "../../service/catalog.service";
|
|
10
|
+
import { Category } from '../../interface/category.interface';
|
|
11
|
+
import { FilterOrder } from '../../interface/filter-order.interface';
|
|
10
12
|
export declare class CatalogFilterComponent implements OnInit, OnDestroy {
|
|
11
13
|
iconCache: IconCacheService;
|
|
12
14
|
catalogService: CatalogService;
|
|
@@ -17,15 +19,16 @@ export declare class CatalogFilterComponent implements OnInit, OnDestroy {
|
|
|
17
19
|
private _adapterService;
|
|
18
20
|
readonly icons: typeof IconEnum;
|
|
19
21
|
userGroupCollection: UserGroup[];
|
|
20
|
-
updatePreset: boolean;
|
|
21
22
|
filterItems: ElementRef;
|
|
22
23
|
generalFilter: ElementRef;
|
|
23
24
|
purchaseFilter: ElementRef;
|
|
24
25
|
logisticsFilter: ElementRef;
|
|
26
|
+
generalFilterOrders: FilterOrder[];
|
|
27
|
+
purchaseFilterOrders: FilterOrder[];
|
|
28
|
+
logisticsFilterOrders: FilterOrder[];
|
|
25
29
|
showResetFilter: boolean;
|
|
26
|
-
showSavePopup: boolean;
|
|
27
30
|
showClass(): boolean;
|
|
28
|
-
filterCategories:
|
|
31
|
+
filterCategories: Category[];
|
|
29
32
|
userGroupsChosen: UserGroup[];
|
|
30
33
|
activeStockView: StockView;
|
|
31
34
|
private _subs;
|
|
@@ -33,7 +36,7 @@ export declare class CatalogFilterComponent implements OnInit, OnDestroy {
|
|
|
33
36
|
constructor(iconCache: IconCacheService, catalogService: CatalogService, searchService: CatalogSearchService, _settingsService: CatalogSettingsService, changeDetector: ChangeDetectorRef, _catalogConnectorService: CatalogConnectorService, _adapterService: CatalogConnectorAdapterService);
|
|
34
37
|
ngOnInit(): void;
|
|
35
38
|
ngOnDestroy(): void;
|
|
36
|
-
handleCategoryClick(cat:
|
|
39
|
+
handleCategoryClick(cat: Category): void;
|
|
37
40
|
private getUserGroups;
|
|
38
41
|
private _showActiveCategory;
|
|
39
42
|
private detectChanges;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { EventEmitter } from
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { Category } from '../../interface/category.interface';
|
|
2
3
|
export declare class CatalogFilterCategoriesComponent {
|
|
3
|
-
set categories(value:
|
|
4
|
-
get categories():
|
|
5
|
-
categoryClick: EventEmitter<
|
|
4
|
+
set categories(value: Category[]);
|
|
5
|
+
get categories(): Category[];
|
|
6
|
+
categoryClick: EventEmitter<Category>;
|
|
6
7
|
showClass(): boolean;
|
|
7
|
-
activeCategory:
|
|
8
|
+
activeCategory: Category;
|
|
8
9
|
private _categories;
|
|
9
|
-
handleCategoryClick(category:
|
|
10
|
+
handleCategoryClick(category: Category): void;
|
|
10
11
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FilterItemViewmodel } from "@colijnit/corecomponents_v12";
|
|
3
3
|
import { CatalogFilterService } from "../../../service/catalog-filter.service";
|
|
4
4
|
import { IconCacheService } from "../../../service/icon-cache.service";
|
|
@@ -8,12 +8,14 @@ import { CatalogConnectorService } from "../../../service/catalog-connector.serv
|
|
|
8
8
|
import { FilterItemMode } from "@colijnit/corecomponents_v12/";
|
|
9
9
|
import { CatalogConnectorAdapterService } from '../../../service/catalog-connector-adapter.service';
|
|
10
10
|
import { ConfigNameEnum } from "../../../enum/config-name.enum";
|
|
11
|
+
import { FilterOrder } from '../../../interface/filter-order.interface';
|
|
11
12
|
export declare class CatalogFilterContentGeneralComponent implements OnInit, OnDestroy {
|
|
12
13
|
catalogSearchService: CatalogSearchService;
|
|
13
14
|
filterService: CatalogFilterService;
|
|
14
15
|
iconCache: IconCacheService;
|
|
15
16
|
private _catalogConnectorService;
|
|
16
17
|
private _adapterService;
|
|
18
|
+
filterOrders: FilterOrder[];
|
|
17
19
|
showClass(): boolean;
|
|
18
20
|
readonly icons: typeof IconEnum;
|
|
19
21
|
readonly cfgName: typeof ConfigNameEnum;
|
|
@@ -6,11 +6,13 @@ import { CatalogSearchService } from "../../../service/catalog-search.service";
|
|
|
6
6
|
import { FilterItemMode } from "@colijnit/corecomponents_v12";
|
|
7
7
|
import { CatalogService, StockView } from "../../../service/catalog.service";
|
|
8
8
|
import { ConfigNameEnum } from "../../../enum/config-name.enum";
|
|
9
|
+
import { FilterOrder } from '../../../interface/filter-order.interface';
|
|
9
10
|
export declare class CatalogFilterContentLogisticsComponent implements OnInit, OnDestroy {
|
|
10
11
|
catalogSearchService: CatalogSearchService;
|
|
11
12
|
iconCache: IconCacheService;
|
|
12
13
|
catalogService: CatalogService;
|
|
13
14
|
readonly cfgName: typeof ConfigNameEnum;
|
|
15
|
+
filterOrders: FilterOrder[];
|
|
14
16
|
showClass(): boolean;
|
|
15
17
|
priceSlider: SliderComponent;
|
|
16
18
|
readonly modes: typeof FilterItemMode;
|
|
@@ -7,6 +7,7 @@ import { CatalogConnectorService } from "../../../service/catalog-connector.serv
|
|
|
7
7
|
import { CatalogFilterService } from "../../../service/catalog-filter.service";
|
|
8
8
|
import { CatalogConnectorAdapterService } from '../../../service/catalog-connector-adapter.service';
|
|
9
9
|
import { ConfigNameEnum } from "../../../enum/config-name.enum";
|
|
10
|
+
import { FilterOrder } from '../../../interface/filter-order.interface';
|
|
10
11
|
export declare class CatalogFilterContentPurchaseComponent implements OnInit, OnDestroy {
|
|
11
12
|
catalogSearchService: CatalogSearchService;
|
|
12
13
|
iconCache: IconCacheService;
|
|
@@ -15,6 +16,7 @@ export declare class CatalogFilterContentPurchaseComponent implements OnInit, On
|
|
|
15
16
|
private _adapterService;
|
|
16
17
|
readonly icons: typeof IconEnum;
|
|
17
18
|
readonly cfgName: typeof ConfigNameEnum;
|
|
19
|
+
filterOrders: FilterOrder[];
|
|
18
20
|
showClass(): boolean;
|
|
19
21
|
readonly modes: typeof FilterItemMode;
|
|
20
22
|
suppliers: FilterItemViewmodel[];
|
|
@@ -2,9 +2,11 @@ import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
|
2
2
|
import { FilterItemMode } from '@colijnit/corecomponents_v12';
|
|
3
3
|
import { CatalogSearchService } from '../../service/catalog-search.service';
|
|
4
4
|
import { CatalogScreenConfigurationService } from '../../service/catalog-screen-configuration.service';
|
|
5
|
+
import { FilterOrder } from '../../interface/filter-order.interface';
|
|
5
6
|
export declare class CatalogFilterItemComponent implements OnInit, OnDestroy {
|
|
6
7
|
searchService: CatalogSearchService;
|
|
7
8
|
private _screenConfigService;
|
|
9
|
+
filterOrders: FilterOrder[];
|
|
8
10
|
model: any;
|
|
9
11
|
mode: FilterItemMode;
|
|
10
12
|
collection: any[];
|
|
@@ -21,6 +23,7 @@ export declare class CatalogFilterItemComponent implements OnInit, OnDestroy {
|
|
|
21
23
|
modelChange: EventEmitter<any>;
|
|
22
24
|
collectionChange: EventEmitter<any>;
|
|
23
25
|
screenConfigurationObjectName: string;
|
|
26
|
+
order: number;
|
|
24
27
|
searchPlaceholder: string;
|
|
25
28
|
noResultsLabel: string;
|
|
26
29
|
showMoreLabel: string;
|
|
@@ -9,6 +9,7 @@ import { CatalogService } from '../../service/catalog.service';
|
|
|
9
9
|
import { CatalogSettingsService } from '../../service/catalog-settings.service';
|
|
10
10
|
import { ExternalSourceViewmodel } from '../../model/external-source-viewmodel';
|
|
11
11
|
import { CatalogScreenConfigurationService } from "../../service/catalog-screen-configuration.service";
|
|
12
|
+
import { FilterOrder } from '../../interface/filter-order.interface';
|
|
12
13
|
export declare class CatalogSearchComponent implements OnInit, OnDestroy {
|
|
13
14
|
private _settingsService;
|
|
14
15
|
private _catalogService;
|
|
@@ -28,6 +29,21 @@ export declare class CatalogSearchComponent implements OnInit, OnDestroy {
|
|
|
28
29
|
showFilter: boolean;
|
|
29
30
|
tempFilter: boolean;
|
|
30
31
|
showViewModes: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Defaults
|
|
34
|
+
* {name: 'CATEGORY', order: 1},
|
|
35
|
+
* {name: 'TURNOVER_GROUP', order: 2},
|
|
36
|
+
* {name: 'PRODUCT_GROUP', order: 3},
|
|
37
|
+
* {name: 'BRANDS', order: 4},
|
|
38
|
+
* {name: 'COLOR', order: 5},
|
|
39
|
+
* {name: 'COLOUR', order: 5},
|
|
40
|
+
* {name: 'CONCEPT', order: 6},
|
|
41
|
+
* {name: 'TAG', order: 7},
|
|
42
|
+
* {name: 'ATMOSPHERE', order: 8}
|
|
43
|
+
*/
|
|
44
|
+
generalFilterOrders: FilterOrder[];
|
|
45
|
+
purchaseFilterOrders: FilterOrder[];
|
|
46
|
+
logisticsFilterOrders: FilterOrder[];
|
|
31
47
|
settingsChange: EventEmitter<any>;
|
|
32
48
|
onLookAtArticleButtonClick: EventEmitter<ArticleExtended>;
|
|
33
49
|
onArButtonClick: EventEmitter<ArticleExtended>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { CatalogDictionaryService } from '../service/catalog-dictionary.service';
|
|
3
|
+
export declare class CaLocalizePipe implements PipeTransform {
|
|
4
|
+
private _dictionaryService;
|
|
5
|
+
constructor(_dictionaryService: CatalogDictionaryService);
|
|
6
|
+
transform(value: string, upperCaseFirst?: boolean, replace?: string | string[]): string;
|
|
7
|
+
}
|