@colijnit/catalog 255.1.18 → 255.1.19

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.
Files changed (83) hide show
  1. package/bundles/colijnit-catalog.umd.js +241 -178
  2. package/bundles/colijnit-catalog.umd.js.map +1 -1
  3. package/colijnit-catalog.d.ts +37 -39
  4. package/colijnit-catalog.metadata.json +1 -1
  5. package/esm2015/colijnit-catalog.js +38 -40
  6. package/esm2015/lib/catalog-version.js +3 -3
  7. package/esm2015/lib/component/base/article-base.component.js +3 -3
  8. package/esm2015/lib/component/catalog-article-list/catalog-article-list.component.js +4 -4
  9. package/esm2015/lib/component/catalog-article-list/catalog-article-list.module.js +3 -3
  10. package/esm2015/lib/component/catalog-article-tile/catalog-article-tile.component.js +5 -5
  11. package/esm2015/lib/component/catalog-article-tile/catalog-article-tile.module.js +3 -3
  12. package/esm2015/lib/component/catalog-categories/catalog-categories.component.js +7 -7
  13. package/esm2015/lib/component/catalog-categories/catalog-categories.module.js +3 -3
  14. package/esm2015/lib/component/catalog-filter/catalog-filter.component.js +16 -11
  15. package/esm2015/lib/component/catalog-filter/catalog-filter.module.js +3 -3
  16. package/esm2015/lib/component/catalog-filter-categories/catalog-filter-categories.component.js +17 -9
  17. package/esm2015/lib/component/catalog-filter-categories/catalog-filter-categories.module.js +5 -3
  18. package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.js +202 -205
  19. package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.module.js +3 -3
  20. package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.component.js +148 -171
  21. package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.module.js +3 -3
  22. package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.component.js +37 -36
  23. package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.module.js +3 -3
  24. package/esm2015/lib/component/catalog-filter-item/catalog-filter-item.component.js +38 -28
  25. package/esm2015/lib/component/catalog-filter-item/catalog-filter-item.module.js +3 -3
  26. package/esm2015/lib/component/catalog-search/catalog-search.component.js +35 -2
  27. package/esm2015/lib/component/catalog-search-result-list/catalog-search-result-list.component.js +3 -3
  28. package/esm2015/lib/component/catalog-search-result-list/catalog-search-result-list.module.js +3 -3
  29. package/esm2015/lib/component/catalog-search-result-tile/catalog-search-result-tile.component.js +3 -3
  30. package/esm2015/lib/component/catalog-search-result-tile/catalog-search-result-tile.module.js +3 -3
  31. package/esm2015/lib/component/catalog-stock-comparison-list/catalog-stock-comparison-list.component.js +11 -11
  32. package/esm2015/lib/component/catalog-stock-comparison-list/catalog-stock-comparison-list.module.js +3 -3
  33. package/esm2015/lib/component/catalog-stock-comparison-tile/catalog-stock-comparison-tile.component.js +7 -7
  34. package/esm2015/lib/component/catalog-stock-comparison-tile/catalog-stock-comparison-tile.module.js +3 -3
  35. package/esm2015/lib/component/catalog-stock-overview-list/catalog-stock-overview-list.component.js +16 -16
  36. package/esm2015/lib/component/catalog-stock-overview-list/catalog-stock-overview-list.module.js +3 -3
  37. package/esm2015/lib/component/catalog-stock-overview-tile/catalog-stock-overview-tile.component.js +6 -6
  38. package/esm2015/lib/component/catalog-stock-overview-tile/catalog-stock-overview-tile.module.js +3 -3
  39. package/esm2015/lib/component/catalog-warehouse-transfers-list/catalog-warehouse-transfers-list.component.js +17 -17
  40. package/esm2015/lib/component/catalog-warehouse-transfers-list/catalog-warehouse-transfers-list.module.js +3 -3
  41. package/esm2015/lib/component/catalog-warehouse-transfers-tile/catalog-warehouse-transfers-tile.component.js +7 -7
  42. package/esm2015/lib/component/catalog-warehouse-transfers-tile/catalog-warehouse-transfers-tile.module.js +3 -3
  43. package/esm2015/lib/enum/config-name.enum.js +2 -1
  44. package/esm2015/lib/interface/category.interface.js +2 -0
  45. package/esm2015/lib/interface/filter-order.interface.js +2 -0
  46. package/esm2015/lib/model/catalog-filter-viewmodel.js +1 -1
  47. package/esm2015/lib/pipe/catalog-localize.pipe.js +27 -0
  48. package/esm2015/lib/pipe/catalog-pipe.module.js +19 -0
  49. package/esm2015/lib/res/dictionary/dictionaries.js +9 -0
  50. package/esm2015/lib/service/catalog-dictionary.service.js +97 -0
  51. package/esm2015/lib/service/catalog-filter.service.js +2 -1
  52. package/esm2015/lib/service/catalog-options.service.js +5 -5
  53. package/esm2015/lib/service/catalog-settings.service.js +7 -7
  54. package/esm2015/public_api.js +3 -1
  55. package/fesm2015/colijnit-catalog.js +658 -618
  56. package/fesm2015/colijnit-catalog.js.map +1 -1
  57. package/lib/component/base/article-base.component.d.ts +2 -2
  58. package/lib/component/catalog-filter/catalog-filter.component.d.ts +7 -4
  59. package/lib/component/catalog-filter-categories/catalog-filter-categories.component.d.ts +7 -6
  60. package/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.d.ts +3 -1
  61. package/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.component.d.ts +2 -0
  62. package/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.component.d.ts +2 -0
  63. package/lib/component/catalog-filter-item/catalog-filter-item.component.d.ts +3 -0
  64. package/lib/component/catalog-search/catalog-search.component.d.ts +16 -0
  65. package/lib/enum/config-name.enum.d.ts +1 -0
  66. package/lib/interface/category.interface.d.ts +5 -0
  67. package/lib/interface/filter-order.interface.d.ts +4 -0
  68. package/lib/model/catalog-filter-viewmodel.d.ts +1 -0
  69. package/lib/pipe/catalog-localize.pipe.d.ts +7 -0
  70. package/lib/pipe/catalog-pipe.module.d.ts +2 -0
  71. package/lib/res/dictionary/dictionaries.d.ts +18829 -0
  72. package/lib/service/{dictionary.service.d.ts → catalog-dictionary.service.d.ts} +3 -2
  73. package/lib/service/catalog-options.service.d.ts +2 -2
  74. package/lib/service/catalog-settings.service.d.ts +2 -2
  75. package/package.json +1 -1
  76. package/public_api.d.ts +2 -0
  77. package/esm2015/lib/enum/language-code.enum.js +0 -8
  78. package/esm2015/lib/pipe/localize.pipe.js +0 -27
  79. package/esm2015/lib/pipe/pipe.module.js +0 -19
  80. package/esm2015/lib/service/dictionary.service.js +0 -90
  81. package/lib/enum/language-code.enum.d.ts +0 -6
  82. package/lib/pipe/localize.pipe.d.ts +0 -7
  83. 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 { DictionaryService } from "../../service/dictionary.service";
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: 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: string[];
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: string): void;
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 "@angular/core";
1
+ import { EventEmitter } from '@angular/core';
2
+ import { Category } from '../../interface/category.interface';
2
3
  export declare class CatalogFilterCategoriesComponent {
3
- set categories(value: string[]);
4
- get categories(): string[];
5
- categoryClick: EventEmitter<string>;
4
+ set categories(value: Category[]);
5
+ get categories(): Category[];
6
+ categoryClick: EventEmitter<Category>;
6
7
  showClass(): boolean;
7
- activeCategory: string;
8
+ activeCategory: Category;
8
9
  private _categories;
9
- handleCategoryClick(category: string): void;
10
+ handleCategoryClick(category: Category): void;
10
11
  }
@@ -1,4 +1,4 @@
1
- import { OnDestroy, OnInit } from "@angular/core";
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>;
@@ -1,4 +1,5 @@
1
1
  export declare enum ConfigNameEnum {
2
+ GeneralHeader = "generalHeader",
2
3
  PurchaseHeader = "purchaseHeader",
3
4
  LogisticsHeader = "logisticsHeader",
4
5
  ArticleNumberFilter = "articleNumberFilter",
@@ -0,0 +1,5 @@
1
+ import { ConfigNameEnum } from '../enum/config-name.enum';
2
+ export interface Category {
3
+ name: string;
4
+ cfgName: ConfigNameEnum;
5
+ }
@@ -0,0 +1,4 @@
1
+ export interface FilterOrder {
2
+ name: string;
3
+ order: number;
4
+ }
@@ -1,4 +1,5 @@
1
1
  import { FilterViewmodel } from '@colijnit/corecomponents_v12';
2
2
  export declare class CatalogFilterViewmodel extends FilterViewmodel {
3
3
  filterName: string;
4
+ templateFilterName: string;
4
5
  }
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ export declare class CatalogPipeModule {
2
+ }