@colijnit/catalog 301.1.7 → 301.1.8

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/index.d.ts CHANGED
@@ -1,16 +1,15 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnDestroy, EventEmitter, OnInit, ElementRef, ChangeDetectorRef, PipeTransform, TemplateRef } from '@angular/core';
3
- import { Subject, BehaviorSubject, Observable } from 'rxjs';
4
- import { Options } from '@colijnit/ioneconnector/build/model/options';
2
+ import { OnDestroy, EventEmitter, OnInit, ElementRef, OnChanges, ChangeDetectorRef, PipeTransform, TemplateRef } from '@angular/core';
3
+ import { CatalogDefinition } from '@colijnit/articleapi/build/model/catalog-definition.bo';
4
+ import { ExternalSourceInfo } from '@colijnit/articleapi/build/model/external-source-info.bo';
5
+ import { BehaviorSubject, Subject, Observable } from 'rxjs';
6
+ import { Articles } from '@colijnit/articleapi/build/articles';
5
7
  import { ArticleExtendedRequest } from '@colijnit/articleapi/build/model/article-extended-request';
6
- import { LanguageCode } from '@colijnit/ioneconnector/build/enum/language-code.enum';
7
8
  import { ArticleCategory } from '@colijnit/articleapi/build/model/article-category';
8
- import { CatalogDefinition } from '@colijnit/articleapi/build/model/catalog-definition.bo';
9
- import { ConfiguratorStatisticsEnvironment } from '@colijnit/articleapi/build/model/configurator-statistics-environment';
10
9
  import { ArticleSearchFilterSelections } from '@colijnit/articleapi/build/model/article-search-filter-selections';
11
10
  import { ArticleSearchFilterMaxAndMinPrice } from '@colijnit/articleapi/build/model/article-search-filter-max-and-min-price';
12
11
  import { ArticlePrice } from '@colijnit/articleapi/build/model/article-price';
13
- import { Articles } from '@colijnit/articleapi/build/articles';
12
+ import { ConfiguratorStatisticsEnvironment } from '@colijnit/articleapi/build/model/configurator-statistics-environment';
14
13
  import { RelationApi } from '@colijnit/relationapi';
15
14
  import { MainApi } from '@colijnit/mainapi';
16
15
  import { StoreGroup } from '@colijnit/mainapi/build/model/store-group.bo';
@@ -35,18 +34,19 @@ import { CategoryDesign } from '@colijnit/articleapi/build/model/category-design
35
34
  import { CoDocument } from '@colijnit/mainapi/build/model/co-document.bo';
36
35
  import { ImageContent } from '@colijnit/mainapi/build/model/image-content.bo';
37
36
  import * as i3 from '@colijnit/corecomponents_v12';
38
- import { FilterItemViewmodel, FilterViewmodel, BaseModuleScreenConfigService, ContentViewMode, PromptService, BaseModuleService, FilterItemMode } from '@colijnit/corecomponents_v12';
37
+ import { FilterItemViewmodel, BaseModuleScreenConfigService, FilterViewmodel, ContentViewMode, PromptService, BaseModuleService, FilterItemMode } from '@colijnit/corecomponents_v12';
39
38
  import { WarehouseShort } from '@colijnit/mainapi/build/model/warehouse-short.bo';
40
- import { ExternalSourceInfo } from '@colijnit/articleapi/build/model/external-source-info.bo';
41
39
  import { Article } from '@colijnit/configuratorapi/build/model/article';
40
+ import { LanguageCode } from '@colijnit/ioneconnector/build/enum/language-code.enum';
41
+ import { Options } from '@colijnit/ioneconnector/build/model/options';
42
42
  import { BusinessObject } from '@colijnit/ioneconnector/build/model/business-object';
43
43
  import { BusinessObjectIDType } from '@colijnit/ioneconnector/build/type/business-object-id-type';
44
44
  import { AvaliableCatalogs } from '@colijnit/articleapi/build/model/catalogs-available.bo';
45
45
  import { TurnoverGroupImage } from '@colijnit/articleapi/build/model/turnover-group-image.bo';
46
46
  import { ArticleSortField } from '@colijnit/articleapi/build/enum/article-sort-field.enum';
47
47
  import { ArticleSortDirection } from '@colijnit/articleapi/build/enum/article-sort-direction.enum';
48
- import * as i2 from '@angular/common';
49
48
  import { SafeHtml, DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
49
+ import * as i2 from '@angular/common';
50
50
  import * as i9 from '@colijnit/sharedcomponents';
51
51
  import { ArticleListObjectExtended } from '@colijnit/articleapi/build/model/article-list-object-extended.bo';
52
52
  import { ExternalSourceArticleClickInterface } from '@colijnit/articleapi/build/interface/external-source-article-click.interface';
@@ -59,73 +59,10 @@ declare class Version {
59
59
  publishDate: string;
60
60
  }
61
61
 
62
- declare class SettingsOptions {
63
- showAddToCart: boolean;
64
- initialCategory: string;
65
- showPriceFilter: boolean;
66
- showLookAtArticleButton: boolean;
67
- showStockIndication: boolean;
68
- lookAtArticleButtonText: string;
69
- stockButtonText: string;
70
- showAddArticleButton: boolean;
71
- showARButton: boolean;
72
- maxItemsPerPage: number;
73
- addArticleButtonText: string;
74
- sortTurnoverGroupsByAlphabet: boolean;
75
- searchOnStart: boolean;
76
- showFilter: boolean;
77
- showSorting: boolean;
78
- showNavigation: boolean;
79
- }
80
-
81
- declare class CatalogSettings extends Options {
82
- currencySymbol: string;
83
- additionalTranslationFile: string;
84
- type: string;
85
- createWebOrder: boolean;
86
- catalogParameters: ArticleExtendedRequest;
87
- options: SettingsOptions;
88
- useLoginEncryption: boolean;
89
- }
90
-
91
- declare class CatalogDictionaryService {
92
- private readonly dictionaryUrl;
93
- get language(): string;
94
- set rootUrl(value: string);
95
- dictionaryLoaded: Subject<void>;
96
- private _dictBasePath;
97
- private _rootUrl;
98
- private _dictionaryPromise;
99
- private _dictionaries;
100
- private _language;
101
- private readonly _placeholder;
102
- getLanguageCode(lc: string): string;
103
- setDictionary(language: LanguageCode, additionalTranslationFile?: string): Promise<void>;
104
- /**
105
- * Returns the localized text for the given dictionary key.
106
- * @param {string} key
107
- * @param {boolean} [upperCaseFirst = true] False for first letter lowercase, true for first letter uppercase for returned dict val
108
- * @param {string[]} replacementTexts Rest params for replacement of '|~' in returned dict value
109
- * @returns {string} The translated text for given dictionary key
110
- */
111
- get(key: string, upperCaseFirst?: boolean, ...replacementTexts: string[]): string;
112
- private _dictionaryLoaded;
113
- static ɵfac: i0.ɵɵFactoryDeclaration<CatalogDictionaryService, never>;
114
- static ɵprov: i0.ɵɵInjectableDeclaration<CatalogDictionaryService>;
115
- }
116
-
117
- declare class CatalogSettingsService {
118
- private _dictionaryService;
119
- set settings(value: CatalogSettings);
120
- get settings(): CatalogSettings;
121
- settingsLoaded: BehaviorSubject<boolean>;
122
- private _settings;
123
- constructor(_dictionaryService: CatalogDictionaryService);
124
- initializeSettings(): Promise<void>;
125
- createSettingsFromObject(obj: any): Promise<void>;
126
- settingsFinished(): Promise<void>;
127
- static ɵfac: i0.ɵɵFactoryDeclaration<CatalogSettingsService, never>;
128
- static ɵprov: i0.ɵɵInjectableDeclaration<CatalogSettingsService>;
62
+ declare class ExternalSourceViewmodel {
63
+ catalogDefinition: CatalogDefinition;
64
+ externalSource: ExternalSourceInfo;
65
+ constructor(catalog: CatalogDefinition, source: ExternalSourceInfo);
129
66
  }
130
67
 
131
68
  declare class ArticleStockSearchTileSelection extends ArticleExtended {
@@ -314,6 +251,140 @@ declare class CatalogConnectorAdapterService implements OnDestroy {
314
251
  static ɵprov: i0.ɵɵInjectableDeclaration<CatalogConnectorAdapterService>;
315
252
  }
316
253
 
254
+ declare class CatalogDictionaryService {
255
+ private readonly dictionaryUrl;
256
+ get language(): string;
257
+ set rootUrl(value: string);
258
+ dictionaryLoaded: Subject<void>;
259
+ private _dictBasePath;
260
+ private _rootUrl;
261
+ private _dictionaryPromise;
262
+ private _dictionaries;
263
+ private _language;
264
+ private readonly _placeholder;
265
+ getLanguageCode(lc: string): string;
266
+ setDictionary(language: LanguageCode, additionalTranslationFile?: string): Promise<void>;
267
+ /**
268
+ * Returns the localized text for the given dictionary key.
269
+ * @param {string} key
270
+ * @param {boolean} [upperCaseFirst = true] False for first letter lowercase, true for first letter uppercase for returned dict val
271
+ * @param {string[]} replacementTexts Rest params for replacement of '|~' in returned dict value
272
+ * @returns {string} The translated text for given dictionary key
273
+ */
274
+ get(key: string, upperCaseFirst?: boolean, ...replacementTexts: string[]): string;
275
+ private _dictionaryLoaded;
276
+ static ɵfac: i0.ɵɵFactoryDeclaration<CatalogDictionaryService, never>;
277
+ static ɵprov: i0.ɵɵInjectableDeclaration<CatalogDictionaryService>;
278
+ }
279
+
280
+ declare class SettingsOptions {
281
+ showAddToCart: boolean;
282
+ initialCategory: string;
283
+ showPriceFilter: boolean;
284
+ showLookAtArticleButton: boolean;
285
+ showStockIndication: boolean;
286
+ lookAtArticleButtonText: string;
287
+ stockButtonText: string;
288
+ showAddArticleButton: boolean;
289
+ showARButton: boolean;
290
+ maxItemsPerPage: number;
291
+ addArticleButtonText: string;
292
+ sortTurnoverGroupsByAlphabet: boolean;
293
+ searchOnStart: boolean;
294
+ showFilter: boolean;
295
+ showSorting: boolean;
296
+ showNavigation: boolean;
297
+ }
298
+
299
+ declare class CatalogSettings extends Options {
300
+ currencySymbol: string;
301
+ additionalTranslationFile: string;
302
+ type: string;
303
+ createWebOrder: boolean;
304
+ catalogParameters: ArticleExtendedRequest;
305
+ options: SettingsOptions;
306
+ useLoginEncryption: boolean;
307
+ }
308
+
309
+ declare class CatalogSettingsService {
310
+ private _dictionaryService;
311
+ set settings(value: CatalogSettings);
312
+ get settings(): CatalogSettings;
313
+ settingsLoaded: BehaviorSubject<boolean>;
314
+ private _settings;
315
+ constructor(_dictionaryService: CatalogDictionaryService);
316
+ initializeSettings(): Promise<void>;
317
+ createSettingsFromObject(obj: any): Promise<void>;
318
+ settingsFinished(): Promise<void>;
319
+ static ɵfac: i0.ɵɵFactoryDeclaration<CatalogSettingsService, never>;
320
+ static ɵprov: i0.ɵɵInjectableDeclaration<CatalogSettingsService>;
321
+ }
322
+
323
+ declare class CatalogOptionsService implements OnDestroy {
324
+ private _dictionary;
325
+ private _settingsService;
326
+ parametersSet: BehaviorSubject<boolean>;
327
+ brandFilter: number[];
328
+ private _parameters;
329
+ private _subs;
330
+ constructor(_dictionary: CatalogDictionaryService, _settingsService: CatalogSettingsService);
331
+ ngOnDestroy(): void;
332
+ get showBrandFilter(): boolean;
333
+ get showPriceFilter(): boolean;
334
+ get showAddArticleButton(): boolean;
335
+ get showStockIndication(): boolean;
336
+ get showLookAtArticleButton(): boolean;
337
+ get showARButton(): boolean;
338
+ get addArticleButtonText(): string;
339
+ get lookAtArticleButtonText(): string;
340
+ get stockButtonText(): string;
341
+ get sortTurnoverGroupsByAlphabet(): boolean;
342
+ get showFilter(): boolean;
343
+ get showSorting(): boolean;
344
+ set parameters(value: ArticleExtendedRequest);
345
+ get parameters(): ArticleExtendedRequest;
346
+ static ɵfac: i0.ɵɵFactoryDeclaration<CatalogOptionsService, never>;
347
+ static ɵprov: i0.ɵɵInjectableDeclaration<CatalogOptionsService>;
348
+ }
349
+
350
+ /**
351
+ * The steps of the preselection, in the order iOne walks through them. Which of them are in use is
352
+ * screen configuration: article selection > preselection has an object per step, and a step without
353
+ * rights is simply not there. See CatalogScreenConfigurationService.getPreselectionLevels.
354
+ */
355
+ declare enum CatalogPreselectionLevel {
356
+ Category = "category",
357
+ TurnoverGroup = "turnoverGroup",
358
+ ArticleGroup = "articleGroup",
359
+ MainArticle = "mainArticle"
360
+ }
361
+
362
+ declare class CatalogScreenConfigurationService extends BaseModuleScreenConfigService {
363
+ private _catalogAdapterService;
364
+ readonly screenModuleName: string;
365
+ private _screenConfigurationObjectCache;
366
+ private readonly _levelConfigNames;
367
+ constructor(_catalogAdapterService: CatalogConnectorAdapterService);
368
+ clear(): void;
369
+ /**
370
+ * The preselection steps that are in use, in the order iOne walks through them. A step is in use
371
+ * when its object in article selection > preselection has rights, which is what the iOne client
372
+ * looks at as well. A configuration that does not know these objects at all is from before they
373
+ * existed: the catalog then keeps the categories with their turnover groups it always showed.
374
+ */
375
+ getPreselectionLevels(): CatalogPreselectionLevel[];
376
+ /**
377
+ * The publication the catalog is limited to, the default value of the publish filter. Not a
378
+ * number when there is no default: the catalog then shows every publication.
379
+ */
380
+ getDefaultPublicationCode(): number;
381
+ protected loadConfigForModule(params: string[], insertRights?: boolean): Promise<ObjectConfiguration[]>;
382
+ private _setScreenConfigurationObjectCache;
383
+ private _screenConfigurationLoaded;
384
+ static ɵfac: i0.ɵɵFactoryDeclaration<CatalogScreenConfigurationService, never>;
385
+ static ɵprov: i0.ɵɵInjectableDeclaration<CatalogScreenConfigurationService>;
386
+ }
387
+
317
388
  declare class CacheField<T> {
318
389
  readonly onLoad: EventEmitter<any>;
319
390
  get value(): T;
@@ -529,39 +600,6 @@ declare class CatalogConnectorService {
529
600
  static ɵprov: i0.ɵɵInjectableDeclaration<CatalogConnectorService>;
530
601
  }
531
602
 
532
- declare class ExternalSourceViewmodel {
533
- catalogDefinition: CatalogDefinition;
534
- externalSource: ExternalSourceInfo;
535
- constructor(catalog: CatalogDefinition, source: ExternalSourceInfo);
536
- }
537
-
538
- declare class CatalogOptionsService implements OnDestroy {
539
- private _dictionary;
540
- private _settingsService;
541
- parametersSet: BehaviorSubject<boolean>;
542
- brandFilter: number[];
543
- private _parameters;
544
- private _subs;
545
- constructor(_dictionary: CatalogDictionaryService, _settingsService: CatalogSettingsService);
546
- ngOnDestroy(): void;
547
- get showBrandFilter(): boolean;
548
- get showPriceFilter(): boolean;
549
- get showAddArticleButton(): boolean;
550
- get showStockIndication(): boolean;
551
- get showLookAtArticleButton(): boolean;
552
- get showARButton(): boolean;
553
- get addArticleButtonText(): string;
554
- get lookAtArticleButtonText(): string;
555
- get stockButtonText(): string;
556
- get sortTurnoverGroupsByAlphabet(): boolean;
557
- get showFilter(): boolean;
558
- get showSorting(): boolean;
559
- set parameters(value: ArticleExtendedRequest);
560
- get parameters(): ArticleExtendedRequest;
561
- static ɵfac: i0.ɵɵFactoryDeclaration<CatalogOptionsService, never>;
562
- static ɵprov: i0.ɵɵInjectableDeclaration<CatalogOptionsService>;
563
- }
564
-
565
603
  declare class CatalogImageService {
566
604
  private _iOneController;
567
605
  private _articleImages;
@@ -608,19 +646,6 @@ declare class CatalogFilterService {
608
646
  static ɵprov: i0.ɵɵInjectableDeclaration<CatalogFilterService>;
609
647
  }
610
648
 
611
- declare class CatalogScreenConfigurationService extends BaseModuleScreenConfigService {
612
- private _catalogAdapterService;
613
- readonly screenModuleName: string;
614
- private _screenConfigurationObjectCache;
615
- constructor(_catalogAdapterService: CatalogConnectorAdapterService);
616
- clear(): void;
617
- protected loadConfigForModule(params: string[], insertRights?: boolean): Promise<ObjectConfiguration[]>;
618
- private _setScreenConfigurationObjectCache;
619
- private _screenConfigurationLoaded;
620
- static ɵfac: i0.ɵɵFactoryDeclaration<CatalogScreenConfigurationService, never>;
621
- static ɵprov: i0.ɵɵInjectableDeclaration<CatalogScreenConfigurationService>;
622
- }
623
-
624
649
  declare class CatalogSearchService implements OnDestroy {
625
650
  private _filterService;
626
651
  private _catalogConnectorService;
@@ -640,6 +665,13 @@ declare class CatalogSearchService implements OnDestroy {
640
665
  get turnoverGroup(): string;
641
666
  set category(value: string);
642
667
  get category(): string;
668
+ /**
669
+ * The article group of the preselection, the third step of article selection > preselection.
670
+ * Takes the code of one group and writes the field the filter panel writes as well.
671
+ */
672
+ set articleGroup(value: string);
673
+ /** The main article of the preselection, the last step of article selection > preselection. */
674
+ set mainArticle(value: string);
643
675
  get sortField(): ArticleSortField;
644
676
  set sortField(value: ArticleSortField);
645
677
  get sortDirection(): ArticleSortDirection;
@@ -683,7 +715,17 @@ declare class CatalogSearchService implements OnDestroy {
683
715
  * The warehouses only belong to the in stock filter, so they're cleared once that filter is off.
684
716
  */
685
717
  private _requestForSearch;
686
- private _setRequestParametersAndProps;
718
+ /**
719
+ * A single code as the range the backend reads these fields as. Without this notation the search
720
+ * is refused, so it is the same thing the filter panel writes when one entry is ticked.
721
+ */
722
+ private _asRange;
723
+ /**
724
+ * The preselection steps are a choice, not a combination: picking one drops what was picked
725
+ * before. Kept together they would ask for the articles that are in all of them at once, which
726
+ * is nearly always nothing.
727
+ */
728
+ private _setPreselection;
687
729
  private _readSortingFromRequest;
688
730
  private _resetRequestParametersAndProps;
689
731
  static ɵfac: i0.ɵɵFactoryDeclaration<CatalogSearchService, never>;
@@ -760,26 +802,89 @@ declare enum StockView {
760
802
  StockComparison = "StockComparison"
761
803
  }
762
804
 
763
- declare class CatalogCategoriesComponent implements OnInit, OnDestroy {
805
+ /**
806
+ * One entry of the catalog navigation. The level says what the code means, and so what has to
807
+ * happen when it is clicked: a category name, a turnover group number, an article group code or a
808
+ * main article number.
809
+ */
810
+ interface CatalogNavigationItem {
811
+ level: CatalogPreselectionLevel;
812
+ code: string;
813
+ description: string;
814
+ children: CatalogNavigationItem[];
815
+ count?: number;
816
+ category?: ArticleCategory;
817
+ }
818
+
819
+ /**
820
+ * One step of the preselection as the navigation shows it. Nested is the categories with their
821
+ * turnover groups underneath, which is only possible when both are configured; every other group
822
+ * is a plain row of items.
823
+ */
824
+ interface CatalogNavigationGroup {
825
+ level: CatalogPreselectionLevel;
826
+ nested: boolean;
827
+ items: CatalogNavigationItem[];
828
+ visibleItems: CatalogNavigationItem[];
829
+ headerLabel: string;
830
+ filter: string;
831
+ }
832
+
833
+ /**
834
+ * Builds the preselection of the screen configuration into the steps that are shown of it. The
835
+ * collection menu and the landing page show the same steps, so they are read here and not in the
836
+ * one or the other.
837
+ */
838
+ declare class CatalogNavigationGroupService {
764
839
  private _catalogService;
765
840
  private _adapterService;
766
- showTurnoverGroups: boolean;
767
- categoryClick: EventEmitter<string>;
768
- turnoverGroupClick: EventEmitter<string>;
769
- parentForOverlay: ElementRef;
770
- showClass(): boolean;
771
- categories: ArticleCategory[];
772
- turnoverGroups: TurnoverGroupImage[];
773
- private _subs;
774
- constructor(_catalogService: CatalogService, _adapterService: CatalogConnectorAdapterService);
775
- ngOnInit(): void;
776
- ngOnDestroy(): void;
777
- getCategories(): Promise<void>;
778
- prepareTurnoverGroups(): void;
779
- handleCategoryClick(event: MouseEvent, category: string): void;
780
- handleTurnoverGroupClick(event: MouseEvent, turnovergroupNr: string): void;
781
- static ɵfac: i0.ɵɵFactoryDeclaration<CatalogCategoriesComponent, never>;
782
- static ɵcmp: i0.ɵɵComponentDeclaration<CatalogCategoriesComponent, "co-catalog-categories", never, { "showTurnoverGroups": { "alias": "showTurnoverGroups"; "required": false; }; "parentForOverlay": { "alias": "parentForOverlay"; "required": false; }; }, { "categoryClick": "categoryClick"; "turnoverGroupClick": "turnoverGroupClick"; }, never, never, false, never>;
841
+ private _screenConfigService;
842
+ private _optionsService;
843
+ private readonly _headerLabels;
844
+ private readonly _minimumFilterLength;
845
+ constructor(_catalogService: CatalogService, _adapterService: CatalogConnectorAdapterService, _screenConfigService: CatalogScreenConfigurationService, _optionsService: CatalogOptionsService);
846
+ /**
847
+ * Categories and turnover groups are the one pair that belongs together: iOne hangs the turnover
848
+ * groups under their category, so with both configured they are shown as one, the categories on
849
+ * top and their turnover groups underneath. Every other configured step is a group of its own,
850
+ * a row of items with its name and a search field above it.
851
+ */
852
+ getGroups(): Promise<CatalogNavigationGroup[]>;
853
+ /**
854
+ * Narrows a step down to the items whose description holds the term. Below the minimum length
855
+ * the whole step is shown again, so clearing the field brings everything back.
856
+ */
857
+ filterGroup(group: CatalogNavigationGroup, filter: string): void;
858
+ private _getItemsForLevel;
859
+ /**
860
+ * A category is nothing of its own in the search: it is the turnover groups underneath it. So
861
+ * the ones that hold nothing are left out, and the count is what its turnover groups add up to.
862
+ * The category itself is kept with the item, for the image the landing page shows of it.
863
+ */
864
+ private _getCategoryItems;
865
+ /**
866
+ * Read as a filter, as the article groups and the main articles are: the categories of iOne
867
+ * know every turnover group there is, which leaves steps in the menu the search finds nothing
868
+ * for. What comes back are the ones that hold articles, with how many.
869
+ */
870
+ private _getTurnoverGroupItems;
871
+ private _getTurnoverGroupItemsOf;
872
+ private _getCategories;
873
+ /**
874
+ * A step that is shown on its own is shown with a header and a search field above it. Only the
875
+ * categories with their turnover groups underneath keep the menu they always had, without one.
876
+ */
877
+ private _headerLabelFor;
878
+ private _getFilterItems;
879
+ /**
880
+ * The steps are read with the startup parameters of the catalog, not with what the user
881
+ * filtered on: they show the whole collection. The publication of the screen configuration is
882
+ * applied, as the search applies it as well. Without it steps are offered that the search
883
+ * afterwards finds nothing for.
884
+ */
885
+ private _requestForNavigation;
886
+ static ɵfac: i0.ɵɵFactoryDeclaration<CatalogNavigationGroupService, never>;
887
+ static ɵprov: i0.ɵɵInjectableDeclaration<CatalogNavigationGroupService>;
783
888
  }
784
889
 
785
890
  /** AUTO GENERATED FILE. DO NOT CHANGE.. **/
@@ -839,6 +944,77 @@ declare class IconCacheService {
839
944
  static ɵprov: i0.ɵɵInjectableDeclaration<IconCacheService>;
840
945
  }
841
946
 
947
+ declare class CatalogCategoriesComponent implements OnInit, OnDestroy {
948
+ iconCacheService: IconCacheService;
949
+ private _adapterService;
950
+ private _groupService;
951
+ showTurnoverGroups: boolean;
952
+ groupSearchLabel: string;
953
+ externalSourcesLabel: string;
954
+ currentTransactionBranchId: number;
955
+ categoryClick: EventEmitter<string>;
956
+ turnoverGroupClick: EventEmitter<string>;
957
+ articleGroupClick: EventEmitter<string>;
958
+ mainArticleClick: EventEmitter<string>;
959
+ externalSourceClick: EventEmitter<ExternalSourceViewmodel>;
960
+ parentForOverlay: ElementRef;
961
+ showClass(): boolean;
962
+ navigationGroups: CatalogNavigationGroup[];
963
+ showExternalSources: boolean;
964
+ externalSourcesFilter: string;
965
+ protected readonly icons: typeof IconEnum;
966
+ private _subs;
967
+ constructor(iconCacheService: IconCacheService, _adapterService: CatalogConnectorAdapterService, _groupService: CatalogNavigationGroupService);
968
+ ngOnInit(): void;
969
+ ngOnDestroy(): void;
970
+ getNavigationItems(): Promise<void>;
971
+ handleNavigationItemClick(event: MouseEvent, item: CatalogNavigationItem): void;
972
+ handleGroupFilterChange(group: CatalogNavigationGroup, filter: string): void;
973
+ handleExternalSourcesFilterChange(filter: string): void;
974
+ getExternalSources(): Promise<void>;
975
+ static ɵfac: i0.ɵɵFactoryDeclaration<CatalogCategoriesComponent, never>;
976
+ static ɵcmp: i0.ɵɵComponentDeclaration<CatalogCategoriesComponent, "co-catalog-categories", never, { "showTurnoverGroups": { "alias": "showTurnoverGroups"; "required": false; }; "groupSearchLabel": { "alias": "groupSearchLabel"; "required": false; }; "externalSourcesLabel": { "alias": "externalSourcesLabel"; "required": false; }; "currentTransactionBranchId": { "alias": "currentTransactionBranchId"; "required": false; }; "parentForOverlay": { "alias": "parentForOverlay"; "required": false; }; }, { "categoryClick": "categoryClick"; "turnoverGroupClick": "turnoverGroupClick"; "articleGroupClick": "articleGroupClick"; "mainArticleClick": "mainArticleClick"; "externalSourceClick": "externalSourceClick"; }, never, never, false, never>;
977
+ }
978
+
979
+ declare class CatalogExternalSourcesComponent implements OnInit, OnChanges, OnDestroy {
980
+ private _catalogConnectorService;
981
+ private _imageService;
982
+ private _adapterService;
983
+ isStandalone: boolean;
984
+ inRow: boolean;
985
+ filter: string;
986
+ embedded: boolean;
987
+ currentTransactionBranchId: number;
988
+ externalSourceClick: EventEmitter<ExternalSourceViewmodel>;
989
+ catalogsLoaded: EventEmitter<boolean>;
990
+ showClass(): boolean;
991
+ loading: boolean;
992
+ pinnedExternalSourceViewModels: ExternalSourceViewmodel[];
993
+ externalSourceViewModels: ExternalSourceViewmodel[];
994
+ unavailableCatalogs: CatalogDefinition[];
995
+ visiblePinnedExternalSourceViewModels: ExternalSourceViewmodel[];
996
+ visibleExternalSourceViewModels: ExternalSourceViewmodel[];
997
+ visibleUnavailableCatalogs: CatalogDefinition[];
998
+ private _subs;
999
+ private readonly _minimumFilterLength;
1000
+ constructor(_catalogConnectorService: CatalogConnectorService, _imageService: CatalogImageService, _adapterService: CatalogConnectorAdapterService);
1001
+ ngOnInit(): Promise<void>;
1002
+ ngOnChanges(): void;
1003
+ ngOnDestroy(): void;
1004
+ /**
1005
+ * Leaves of every list what is searched for. The lists themselves are kept as they came in, so
1006
+ * clearing the field brings everything back without reading the catalogs again.
1007
+ */
1008
+ private _applyFilter;
1009
+ private _getCatalogs;
1010
+ private _finishLoading;
1011
+ private _sortAndLoadAvailableCatalogs;
1012
+ private _loadCatalogs;
1013
+ private _loadUnavailableCatalogs;
1014
+ static ɵfac: i0.ɵɵFactoryDeclaration<CatalogExternalSourcesComponent, never>;
1015
+ static ɵcmp: i0.ɵɵComponentDeclaration<CatalogExternalSourcesComponent, "co-catalog-external-sources", never, { "isStandalone": { "alias": "isStandalone"; "required": false; }; "inRow": { "alias": "inRow"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "embedded": { "alias": "embedded"; "required": false; }; "currentTransactionBranchId": { "alias": "currentTransactionBranchId"; "required": false; }; }, { "externalSourceClick": "externalSourceClick"; "catalogsLoaded": "catalogsLoaded"; }, never, never, false, never>;
1016
+ }
1017
+
842
1018
  declare enum ConfigNameEnum {
843
1019
  GeneralHeader = "generalHeader",
844
1020
  PurchaseHeader = "purchaseHeader",
@@ -887,6 +1063,10 @@ declare enum ConfigNameEnum {
887
1063
  BrandFilter = "brandFilter",
888
1064
  GoodKindFilter = "goodKindFilter",
889
1065
  ResultTiles = "resultSetting",
1066
+ CategorySelection = "categorieSelection",
1067
+ TurnoverGroupSelection = "turnoverSelection",
1068
+ ArticleGroupSelection = "articlegroupSelection",
1069
+ MainArticleSelection = "superarticleSelection",
890
1070
  PurchaseDescriptionFilter = "purchaseDescriptionFilter",
891
1071
  PurchaseDescriptionResult = "purchaseDescriptionResult"
892
1072
  }
@@ -1307,9 +1487,15 @@ declare class ResponsiveTextModule {
1307
1487
  static ɵinj: i0.ɵɵInjectorDeclaration<ResponsiveTextModule>;
1308
1488
  }
1309
1489
 
1490
+ declare class CatalogExternalSourcesModule {
1491
+ static ɵfac: i0.ɵɵFactoryDeclaration<CatalogExternalSourcesModule, never>;
1492
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CatalogExternalSourcesModule, [typeof CatalogExternalSourcesComponent], [typeof i2.CommonModule, typeof CatalogFilterModule, typeof i3.ImageModule, typeof i3.LoaderModule, typeof ResponsiveTextModule, typeof CatalogPipeModule], [typeof CatalogExternalSourcesComponent]>;
1493
+ static ɵinj: i0.ɵɵInjectorDeclaration<CatalogExternalSourcesModule>;
1494
+ }
1495
+
1310
1496
  declare class CatalogCategoriesModule {
1311
1497
  static ɵfac: i0.ɵɵFactoryDeclaration<CatalogCategoriesModule, never>;
1312
- static ɵmod: i0.ɵɵNgModuleDeclaration<CatalogCategoriesModule, [typeof CatalogCategoriesComponent], [typeof i2.CommonModule, typeof i3.ImageModule, typeof i3.IconModule, typeof CatalogFilterModule, typeof ResponsiveTextModule, typeof CatalogPipeModule, typeof i3.OverlayModule], [typeof CatalogCategoriesComponent]>;
1498
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CatalogCategoriesModule, [typeof CatalogCategoriesComponent], [typeof i2.CommonModule, typeof i3.ImageModule, typeof i3.IconModule, typeof i3.InputSearchModule, typeof CatalogExternalSourcesModule, typeof CatalogFilterModule, typeof ResponsiveTextModule, typeof CatalogPipeModule, typeof i3.OverlayModule], [typeof CatalogCategoriesComponent]>;
1313
1499
  static ɵinj: i0.ɵɵInjectorDeclaration<CatalogCategoriesModule>;
1314
1500
  }
1315
1501
 
@@ -1318,38 +1504,44 @@ declare class CatalogNavigationComponent {
1318
1504
  catalogService: CatalogService;
1319
1505
  private _appEventService;
1320
1506
  private _adapterService;
1507
+ private _groupService;
1508
+ private _elementRef;
1321
1509
  readonly icons: typeof IconEnum;
1322
1510
  homeLabel: string;
1323
1511
  collectionLabel: string;
1324
1512
  externalSourcesLabel: string;
1513
+ groupSearchLabel: string;
1325
1514
  showTurnoverGroups: boolean;
1326
1515
  currentTransactionBranchId: number;
1327
1516
  view: HTMLElement;
1328
1517
  homeClick: EventEmitter<void>;
1329
1518
  categoryClick: EventEmitter<string>;
1330
1519
  turnoverGroupClick: EventEmitter<string>;
1520
+ articleGroupClick: EventEmitter<string>;
1521
+ mainArticleClick: EventEmitter<string>;
1331
1522
  externalSourceClick: EventEmitter<ExternalSourceViewmodel>;
1332
1523
  minified: boolean;
1333
1524
  showClass: boolean;
1525
+ handleDocumentClick(event: MouseEvent): void;
1334
1526
  mobileMenuToggle: boolean;
1335
1527
  popupTop: number;
1336
1528
  popupHeight: number;
1337
1529
  popupWidth: number;
1338
1530
  popupLeft: number;
1339
- categories: ArticleCategory[];
1531
+ navigationGroups: CatalogNavigationGroup[];
1340
1532
  externalSources: CatalogDefinition[];
1341
- turnoverGroups: TurnoverGroupImage[];
1342
1533
  showCollectionOverlay: boolean;
1343
1534
  showExternalOverlay: boolean;
1344
1535
  get internalList(): any[];
1345
1536
  get externalList(): any[];
1346
1537
  private _subs;
1347
- constructor(iconCache: IconCacheService, catalogService: CatalogService, _appEventService: CatalogEventService, _adapterService: CatalogConnectorAdapterService);
1538
+ constructor(iconCache: IconCacheService, catalogService: CatalogService, _appEventService: CatalogEventService, _adapterService: CatalogConnectorAdapterService, _groupService: CatalogNavigationGroupService, _elementRef: ElementRef);
1348
1539
  ngOnInit(): void;
1349
1540
  ngOnDestroy(): void;
1350
- getCategories(): Promise<void>;
1541
+ getNavigationItems(): Promise<void>;
1351
1542
  getExternalSources(): Promise<void>;
1352
- prepareTurnoverGroups(): void;
1543
+ handleNavigationItemClick(event: MouseEvent, item: CatalogNavigationItem): void;
1544
+ handleGroupFilterChange(group: CatalogNavigationGroup, filter: string): void;
1353
1545
  handleCategoryClick(event: MouseEvent, category: string): void;
1354
1546
  handleTurnoverGroupClick(event: MouseEvent, turnovergroupNr: string): void;
1355
1547
  handleExternalSourceClick(externalSource: ExternalSourceViewmodel): void;
@@ -1361,48 +1553,16 @@ declare class CatalogNavigationComponent {
1361
1553
  onOpenExternalCatalog(event: any, webviewUrl: string): void;
1362
1554
  onOpenIoneCatalog(event: any, webviewUrl: string, ioneUrl: string, upId: string, userName: string, passWord: string): void;
1363
1555
  handleHomeClick(event: MouseEvent): void;
1364
- handleShowCollectionOverlay(): void;
1365
- handleShowExternalOverlay(): void;
1366
- handleHideCollectionOverlay(): void;
1367
- handleHideExternalOverlay(): void;
1556
+ handleToggleCollectionOverlay(): void;
1557
+ handleToggleExternalOverlay(): void;
1558
+ handleHideOverlays(): void;
1368
1559
  static ɵfac: i0.ɵɵFactoryDeclaration<CatalogNavigationComponent, never>;
1369
- static ɵcmp: i0.ɵɵComponentDeclaration<CatalogNavigationComponent, "co-catalog-navigation", never, { "homeLabel": { "alias": "homeLabel"; "required": false; }; "collectionLabel": { "alias": "collectionLabel"; "required": false; }; "externalSourcesLabel": { "alias": "externalSourcesLabel"; "required": false; }; "showTurnoverGroups": { "alias": "showTurnoverGroups"; "required": false; }; "currentTransactionBranchId": { "alias": "currentTransactionBranchId"; "required": false; }; "view": { "alias": "view"; "required": false; }; "minified": { "alias": "minified"; "required": false; }; }, { "homeClick": "homeClick"; "categoryClick": "categoryClick"; "turnoverGroupClick": "turnoverGroupClick"; "externalSourceClick": "externalSourceClick"; }, never, never, false, never>;
1370
- }
1371
-
1372
- declare class CatalogExternalSourcesComponent implements OnInit, OnDestroy {
1373
- private _catalogConnectorService;
1374
- private _imageService;
1375
- private _adapterService;
1376
- isStandalone: boolean;
1377
- embedded: boolean;
1378
- currentTransactionBranchId: number;
1379
- externalSourceClick: EventEmitter<ExternalSourceViewmodel>;
1380
- catalogsLoaded: EventEmitter<boolean>;
1381
- showClass(): boolean;
1382
- pinnedExternalSourceViewModels: ExternalSourceViewmodel[];
1383
- externalSourceViewModels: ExternalSourceViewmodel[];
1384
- unavailableCatalogs: CatalogDefinition[];
1385
- private _subs;
1386
- constructor(_catalogConnectorService: CatalogConnectorService, _imageService: CatalogImageService, _adapterService: CatalogConnectorAdapterService);
1387
- ngOnInit(): Promise<void>;
1388
- ngOnDestroy(): void;
1389
- private _getCatalogs;
1390
- private _sortAndLoadAvailableCatalogs;
1391
- private _loadCatalogs;
1392
- private _loadUnavailableCatalogs;
1393
- static ɵfac: i0.ɵɵFactoryDeclaration<CatalogExternalSourcesComponent, never>;
1394
- static ɵcmp: i0.ɵɵComponentDeclaration<CatalogExternalSourcesComponent, "co-catalog-external-sources", never, { "isStandalone": { "alias": "isStandalone"; "required": false; }; "embedded": { "alias": "embedded"; "required": false; }; "currentTransactionBranchId": { "alias": "currentTransactionBranchId"; "required": false; }; }, { "externalSourceClick": "externalSourceClick"; "catalogsLoaded": "catalogsLoaded"; }, never, never, false, never>;
1395
- }
1396
-
1397
- declare class CatalogExternalSourcesModule {
1398
- static ɵfac: i0.ɵɵFactoryDeclaration<CatalogExternalSourcesModule, never>;
1399
- static ɵmod: i0.ɵɵNgModuleDeclaration<CatalogExternalSourcesModule, [typeof CatalogExternalSourcesComponent], [typeof i2.CommonModule, typeof CatalogFilterModule, typeof i3.ImageModule, typeof ResponsiveTextModule, typeof CatalogPipeModule], [typeof CatalogExternalSourcesComponent]>;
1400
- static ɵinj: i0.ɵɵInjectorDeclaration<CatalogExternalSourcesModule>;
1560
+ static ɵcmp: i0.ɵɵComponentDeclaration<CatalogNavigationComponent, "co-catalog-navigation", never, { "homeLabel": { "alias": "homeLabel"; "required": false; }; "collectionLabel": { "alias": "collectionLabel"; "required": false; }; "externalSourcesLabel": { "alias": "externalSourcesLabel"; "required": false; }; "groupSearchLabel": { "alias": "groupSearchLabel"; "required": false; }; "showTurnoverGroups": { "alias": "showTurnoverGroups"; "required": false; }; "currentTransactionBranchId": { "alias": "currentTransactionBranchId"; "required": false; }; "view": { "alias": "view"; "required": false; }; "minified": { "alias": "minified"; "required": false; }; }, { "homeClick": "homeClick"; "categoryClick": "categoryClick"; "turnoverGroupClick": "turnoverGroupClick"; "articleGroupClick": "articleGroupClick"; "mainArticleClick": "mainArticleClick"; "externalSourceClick": "externalSourceClick"; }, never, never, false, never>;
1401
1561
  }
1402
1562
 
1403
1563
  declare class CatalogNavigationModule {
1404
1564
  static ɵfac: i0.ɵɵFactoryDeclaration<CatalogNavigationModule, never>;
1405
- static ɵmod: i0.ɵɵNgModuleDeclaration<CatalogNavigationModule, [typeof CatalogNavigationComponent], [typeof i2.CommonModule, typeof CatalogFilterModule, typeof CatalogExternalSourcesModule, typeof i3.OverlayModule, typeof i3.IconModule, typeof CatalogPipeModule], [typeof CatalogNavigationComponent]>;
1565
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CatalogNavigationModule, [typeof CatalogNavigationComponent], [typeof i2.CommonModule, typeof CatalogFilterModule, typeof CatalogExternalSourcesModule, typeof i3.OverlayModule, typeof i3.IconModule, typeof i3.InputSearchModule, typeof CatalogPipeModule], [typeof CatalogNavigationComponent]>;
1406
1566
  static ɵinj: i0.ɵɵInjectorDeclaration<CatalogNavigationModule>;
1407
1567
  }
1408
1568
 
@@ -1469,6 +1629,8 @@ declare class CatalogSearchComponent implements OnInit, OnDestroy {
1469
1629
  handleHomeClick($event: any): void;
1470
1630
  handleCategoryClick(category: string): void;
1471
1631
  handleTurnoverGroupClick(turnoverGroup: string): void;
1632
+ handleArticleGroupClick(articleGroup: string): void;
1633
+ handleMainArticleClick(mainArticle: string): void;
1472
1634
  handleResetButtonClick(event: MouseEvent): void;
1473
1635
  /**
1474
1636
  * Applies the given searchRequest and searches for articles based on that request
@@ -1984,5 +2146,5 @@ declare class CatalogNavigationService implements OnDestroy {
1984
2146
  static ɵprov: i0.ɵɵInjectableDeclaration<CatalogNavigationService>;
1985
2147
  }
1986
2148
 
1987
- export { ArticleStockComparisonSearchGridResult, ArticleStockComparisonSearchGridSelection, ArticleStockComparisonSearchTileResult, ArticleStockComparisonSearchTileSelection, ArticleStockSearchGridSelection, ArticleStockSearchTileSelection, ArticleStockTransferSearchGridResult, ArticleStockTransferSearchGridSelection, ArticleStockTransferSearchTileResult, ArticleStockTransferSearchTileSelection, ArticlesSearchResult, ArticlesStockSearchGridResult, ArticlesStockSearchTileResult, CatalogArticleListComponent, CatalogArticleListModule, CatalogArticleTileComponent, CatalogArticleTileModule, CatalogBusinessObjectCacheManagerService, CatalogCategoriesComponent, CatalogCategoriesModule, CatalogConnectorAdapterService, CatalogConnectorService, CatalogDictionaryService, CatalogEventService, CatalogExternalSourceComponent, CatalogExternalSourceModule, CatalogExternalSourcesComponent, CatalogExternalSourcesModule, CatalogExternalSourcesService, CatalogFilterComponent, CatalogFilterModule, CatalogFilterService, CatalogFilterViewmodel, CatalogImageService, CatalogNavigationComponent, CatalogNavigationModule, CatalogNavigationService, CatalogOptionsService, CatalogScreenConfigurationService, CatalogSearchComponent, CatalogSearchHeaderComponent, CatalogSearchHeaderModule, CatalogSearchModule, CatalogSearchResultListComponent, CatalogSearchResultListModule, CatalogSearchResultTileComponent, CatalogSearchResultTileModule, CatalogSearchService, CatalogSelectMultipleCacheService, CatalogSelectMultipleParameterizedCacheService, CatalogSelectSingleCacheService, CatalogSelectSingleParameterizedCacheService, CatalogService, CatalogSettings, CatalogSettingsService, CatalogSortComponent, CatalogSortModule, CatalogStockComparisonListComponent, CatalogStockComparisonListModule, CatalogStockComparisonService, CatalogStockComparisonTileComponent, CatalogStockComparisonTileModule, CatalogStockOverviewListComponent, CatalogStockOverviewListModule, CatalogStockOverviewTileComponent, CatalogStockOverviewTileModule, CatalogStockService, CatalogStockTransferService, CatalogWarehouseTransfersListComponent, CatalogWarehouseTransfersListModule, CatalogWarehouseTransfersTileComponent, CatalogWarehouseTransfersTileModule, ConfigNameEnum, ExternalSourceViewmodel, GoogleTranslateService, GoogleTranslation, IconSvg, SettingsOptions, StockView, Version };
1988
- export type { CatalogSortOption, Category, FilterItem, FilterOrder, OrderByInterface };
2149
+ export { ArticleStockComparisonSearchGridResult, ArticleStockComparisonSearchGridSelection, ArticleStockComparisonSearchTileResult, ArticleStockComparisonSearchTileSelection, ArticleStockSearchGridSelection, ArticleStockSearchTileSelection, ArticleStockTransferSearchGridResult, ArticleStockTransferSearchGridSelection, ArticleStockTransferSearchTileResult, ArticleStockTransferSearchTileSelection, ArticlesSearchResult, ArticlesStockSearchGridResult, ArticlesStockSearchTileResult, CatalogArticleListComponent, CatalogArticleListModule, CatalogArticleTileComponent, CatalogArticleTileModule, CatalogBusinessObjectCacheManagerService, CatalogCategoriesComponent, CatalogCategoriesModule, CatalogConnectorAdapterService, CatalogConnectorService, CatalogDictionaryService, CatalogEventService, CatalogExternalSourceComponent, CatalogExternalSourceModule, CatalogExternalSourcesComponent, CatalogExternalSourcesModule, CatalogExternalSourcesService, CatalogFilterComponent, CatalogFilterModule, CatalogFilterService, CatalogFilterViewmodel, CatalogImageService, CatalogNavigationComponent, CatalogNavigationGroupService, CatalogNavigationModule, CatalogNavigationService, CatalogOptionsService, CatalogPreselectionLevel, CatalogScreenConfigurationService, CatalogSearchComponent, CatalogSearchHeaderComponent, CatalogSearchHeaderModule, CatalogSearchModule, CatalogSearchResultListComponent, CatalogSearchResultListModule, CatalogSearchResultTileComponent, CatalogSearchResultTileModule, CatalogSearchService, CatalogSelectMultipleCacheService, CatalogSelectMultipleParameterizedCacheService, CatalogSelectSingleCacheService, CatalogSelectSingleParameterizedCacheService, CatalogService, CatalogSettings, CatalogSettingsService, CatalogSortComponent, CatalogSortModule, CatalogStockComparisonListComponent, CatalogStockComparisonListModule, CatalogStockComparisonService, CatalogStockComparisonTileComponent, CatalogStockComparisonTileModule, CatalogStockOverviewListComponent, CatalogStockOverviewListModule, CatalogStockOverviewTileComponent, CatalogStockOverviewTileModule, CatalogStockService, CatalogStockTransferService, CatalogWarehouseTransfersListComponent, CatalogWarehouseTransfersListModule, CatalogWarehouseTransfersTileComponent, CatalogWarehouseTransfersTileModule, ConfigNameEnum, ExternalSourceViewmodel, GoogleTranslateService, GoogleTranslation, IconSvg, SettingsOptions, StockView, Version };
2150
+ export type { CatalogNavigationGroup, CatalogNavigationItem, CatalogSortOption, Category, FilterItem, FilterOrder, OrderByInterface };