@colijnit/catalog 301.1.6 → 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/colijnit-catalog-301.1.7.tgz +0 -0
- package/fesm2022/colijnit-catalog.mjs +2913 -2166
- package/fesm2022/colijnit-catalog.mjs.map +1 -1
- package/index.d.ts +405 -187
- package/lib/component/catalog-categories/style/_layout.scss +88 -0
- package/lib/component/catalog-categories/style/_material-definition.scss +23 -0
- package/lib/component/catalog-categories/style/_theme.scss +8 -0
- package/lib/component/catalog-external-sources/style/_layout.scss +43 -8
- package/lib/component/catalog-external-sources/style/_material-definition.scss +11 -10
- package/lib/component/catalog-navigation/style/_layout.scss +101 -10
- package/lib/component/catalog-navigation/style/_material-definition.scss +23 -0
- package/lib/component/catalog-navigation/style/_theme.scss +8 -0
- package/lib/component/catalog-search/style/_layout.scss +13 -1
- package/lib/component/catalog-search/style/_material-definition.scss +5 -0
- package/lib/component/catalog-sort/style/_layout.scss +36 -0
- package/lib/component/catalog-sort/style/_material-definition.scss +19 -0
- package/lib/component/catalog-sort/style/_theme.scss +10 -0
- package/lib/component/catalog-sort/style/material.scss +4 -0
- package/package.json +1 -1
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 {
|
|
4
|
-
import {
|
|
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 {
|
|
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,16 +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,
|
|
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
|
-
import
|
|
46
|
+
import { ArticleSortField } from '@colijnit/articleapi/build/enum/article-sort-field.enum';
|
|
47
|
+
import { ArticleSortDirection } from '@colijnit/articleapi/build/enum/article-sort-direction.enum';
|
|
47
48
|
import { SafeHtml, DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
|
|
49
|
+
import * as i2 from '@angular/common';
|
|
48
50
|
import * as i9 from '@colijnit/sharedcomponents';
|
|
49
51
|
import { ArticleListObjectExtended } from '@colijnit/articleapi/build/model/article-list-object-extended.bo';
|
|
50
52
|
import { ExternalSourceArticleClickInterface } from '@colijnit/articleapi/build/interface/external-source-article-click.interface';
|
|
@@ -57,72 +59,10 @@ declare class Version {
|
|
|
57
59
|
publishDate: string;
|
|
58
60
|
}
|
|
59
61
|
|
|
60
|
-
declare class
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
showLookAtArticleButton: boolean;
|
|
65
|
-
showStockIndication: boolean;
|
|
66
|
-
lookAtArticleButtonText: string;
|
|
67
|
-
stockButtonText: string;
|
|
68
|
-
showAddArticleButton: boolean;
|
|
69
|
-
showARButton: boolean;
|
|
70
|
-
maxItemsPerPage: number;
|
|
71
|
-
addArticleButtonText: string;
|
|
72
|
-
sortTurnoverGroupsByAlphabet: boolean;
|
|
73
|
-
searchOnStart: boolean;
|
|
74
|
-
showFilter: boolean;
|
|
75
|
-
showNavigation: boolean;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
declare class CatalogSettings extends Options {
|
|
79
|
-
currencySymbol: string;
|
|
80
|
-
additionalTranslationFile: string;
|
|
81
|
-
type: string;
|
|
82
|
-
createWebOrder: boolean;
|
|
83
|
-
catalogParameters: ArticleExtendedRequest;
|
|
84
|
-
options: SettingsOptions;
|
|
85
|
-
useLoginEncryption: boolean;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
declare class CatalogDictionaryService {
|
|
89
|
-
private readonly dictionaryUrl;
|
|
90
|
-
get language(): string;
|
|
91
|
-
set rootUrl(value: string);
|
|
92
|
-
dictionaryLoaded: Subject<void>;
|
|
93
|
-
private _dictBasePath;
|
|
94
|
-
private _rootUrl;
|
|
95
|
-
private _dictionaryPromise;
|
|
96
|
-
private _dictionaries;
|
|
97
|
-
private _language;
|
|
98
|
-
private readonly _placeholder;
|
|
99
|
-
getLanguageCode(lc: string): string;
|
|
100
|
-
setDictionary(language: LanguageCode, additionalTranslationFile?: string): Promise<void>;
|
|
101
|
-
/**
|
|
102
|
-
* Returns the localized text for the given dictionary key.
|
|
103
|
-
* @param {string} key
|
|
104
|
-
* @param {boolean} [upperCaseFirst = true] False for first letter lowercase, true for first letter uppercase for returned dict val
|
|
105
|
-
* @param {string[]} replacementTexts Rest params for replacement of '|~' in returned dict value
|
|
106
|
-
* @returns {string} The translated text for given dictionary key
|
|
107
|
-
*/
|
|
108
|
-
get(key: string, upperCaseFirst?: boolean, ...replacementTexts: string[]): string;
|
|
109
|
-
private _dictionaryLoaded;
|
|
110
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogDictionaryService, never>;
|
|
111
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CatalogDictionaryService>;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
declare class CatalogSettingsService {
|
|
115
|
-
private _dictionaryService;
|
|
116
|
-
set settings(value: CatalogSettings);
|
|
117
|
-
get settings(): CatalogSettings;
|
|
118
|
-
settingsLoaded: BehaviorSubject<boolean>;
|
|
119
|
-
private _settings;
|
|
120
|
-
constructor(_dictionaryService: CatalogDictionaryService);
|
|
121
|
-
initializeSettings(): Promise<void>;
|
|
122
|
-
createSettingsFromObject(obj: any): Promise<void>;
|
|
123
|
-
settingsFinished(): Promise<void>;
|
|
124
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogSettingsService, never>;
|
|
125
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CatalogSettingsService>;
|
|
62
|
+
declare class ExternalSourceViewmodel {
|
|
63
|
+
catalogDefinition: CatalogDefinition;
|
|
64
|
+
externalSource: ExternalSourceInfo;
|
|
65
|
+
constructor(catalog: CatalogDefinition, source: ExternalSourceInfo);
|
|
126
66
|
}
|
|
127
67
|
|
|
128
68
|
declare class ArticleStockSearchTileSelection extends ArticleExtended {
|
|
@@ -311,6 +251,140 @@ declare class CatalogConnectorAdapterService implements OnDestroy {
|
|
|
311
251
|
static ɵprov: i0.ɵɵInjectableDeclaration<CatalogConnectorAdapterService>;
|
|
312
252
|
}
|
|
313
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
|
+
|
|
314
388
|
declare class CacheField<T> {
|
|
315
389
|
readonly onLoad: EventEmitter<any>;
|
|
316
390
|
get value(): T;
|
|
@@ -526,38 +600,6 @@ declare class CatalogConnectorService {
|
|
|
526
600
|
static ɵprov: i0.ɵɵInjectableDeclaration<CatalogConnectorService>;
|
|
527
601
|
}
|
|
528
602
|
|
|
529
|
-
declare class ExternalSourceViewmodel {
|
|
530
|
-
catalogDefinition: CatalogDefinition;
|
|
531
|
-
externalSource: ExternalSourceInfo;
|
|
532
|
-
constructor(catalog: CatalogDefinition, source: ExternalSourceInfo);
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
declare class CatalogOptionsService implements OnDestroy {
|
|
536
|
-
private _dictionary;
|
|
537
|
-
private _settingsService;
|
|
538
|
-
parametersSet: BehaviorSubject<boolean>;
|
|
539
|
-
brandFilter: number[];
|
|
540
|
-
private _parameters;
|
|
541
|
-
private _subs;
|
|
542
|
-
constructor(_dictionary: CatalogDictionaryService, _settingsService: CatalogSettingsService);
|
|
543
|
-
ngOnDestroy(): void;
|
|
544
|
-
get showBrandFilter(): boolean;
|
|
545
|
-
get showPriceFilter(): boolean;
|
|
546
|
-
get showAddArticleButton(): boolean;
|
|
547
|
-
get showStockIndication(): boolean;
|
|
548
|
-
get showLookAtArticleButton(): boolean;
|
|
549
|
-
get showARButton(): boolean;
|
|
550
|
-
get addArticleButtonText(): string;
|
|
551
|
-
get lookAtArticleButtonText(): string;
|
|
552
|
-
get stockButtonText(): string;
|
|
553
|
-
get sortTurnoverGroupsByAlphabet(): boolean;
|
|
554
|
-
get showFilter(): boolean;
|
|
555
|
-
set parameters(value: ArticleExtendedRequest);
|
|
556
|
-
get parameters(): ArticleExtendedRequest;
|
|
557
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogOptionsService, never>;
|
|
558
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CatalogOptionsService>;
|
|
559
|
-
}
|
|
560
|
-
|
|
561
603
|
declare class CatalogImageService {
|
|
562
604
|
private _iOneController;
|
|
563
605
|
private _articleImages;
|
|
@@ -604,19 +646,6 @@ declare class CatalogFilterService {
|
|
|
604
646
|
static ɵprov: i0.ɵɵInjectableDeclaration<CatalogFilterService>;
|
|
605
647
|
}
|
|
606
648
|
|
|
607
|
-
declare class CatalogScreenConfigurationService extends BaseModuleScreenConfigService {
|
|
608
|
-
private _catalogAdapterService;
|
|
609
|
-
readonly screenModuleName: string;
|
|
610
|
-
private _screenConfigurationObjectCache;
|
|
611
|
-
constructor(_catalogAdapterService: CatalogConnectorAdapterService);
|
|
612
|
-
clear(): void;
|
|
613
|
-
protected loadConfigForModule(params: string[], insertRights?: boolean): Promise<ObjectConfiguration[]>;
|
|
614
|
-
private _setScreenConfigurationObjectCache;
|
|
615
|
-
private _screenConfigurationLoaded;
|
|
616
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogScreenConfigurationService, never>;
|
|
617
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CatalogScreenConfigurationService>;
|
|
618
|
-
}
|
|
619
|
-
|
|
620
649
|
declare class CatalogSearchService implements OnDestroy {
|
|
621
650
|
private _filterService;
|
|
622
651
|
private _catalogConnectorService;
|
|
@@ -636,6 +665,17 @@ declare class CatalogSearchService implements OnDestroy {
|
|
|
636
665
|
get turnoverGroup(): string;
|
|
637
666
|
set category(value: string);
|
|
638
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);
|
|
675
|
+
get sortField(): ArticleSortField;
|
|
676
|
+
set sortField(value: ArticleSortField);
|
|
677
|
+
get sortDirection(): ArticleSortDirection;
|
|
678
|
+
set sortDirection(value: ArticleSortDirection);
|
|
639
679
|
articlesPerPage: number;
|
|
640
680
|
resultCount: number;
|
|
641
681
|
get currentPage(): number;
|
|
@@ -647,6 +687,8 @@ declare class CatalogSearchService implements OnDestroy {
|
|
|
647
687
|
private _turnoverGroup;
|
|
648
688
|
private _subs;
|
|
649
689
|
private _presetApplied;
|
|
690
|
+
private _sortField;
|
|
691
|
+
private _sortDirection;
|
|
650
692
|
constructor(_filterService: CatalogFilterService, _catalogConnectorService: CatalogConnectorService, _catalogConnectorAdapterService: CatalogConnectorAdapterService, _settingsService: CatalogSettingsService, _optionService: CatalogOptionsService, _promptService: PromptService, _screenConfigService: CatalogScreenConfigurationService);
|
|
651
693
|
ngOnDestroy(): void;
|
|
652
694
|
searchArticles(resetPaging?: boolean): void;
|
|
@@ -670,9 +712,21 @@ declare class CatalogSearchService implements OnDestroy {
|
|
|
670
712
|
* The in stock filter only counts the stock in the warehouses of the user's branch.
|
|
671
713
|
* With warehouses chosen for it, only the stock in those warehouses counts, which the backend
|
|
672
714
|
* checks through searchAvailableStock and rangeAvailableInWarehouses (as the AS app does).
|
|
715
|
+
* The warehouses only belong to the in stock filter, so they're cleared once that filter is off.
|
|
673
716
|
*/
|
|
674
717
|
private _requestForSearch;
|
|
675
|
-
|
|
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;
|
|
729
|
+
private _readSortingFromRequest;
|
|
676
730
|
private _resetRequestParametersAndProps;
|
|
677
731
|
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogSearchService, never>;
|
|
678
732
|
static ɵprov: i0.ɵɵInjectableDeclaration<CatalogSearchService>;
|
|
@@ -748,35 +802,100 @@ declare enum StockView {
|
|
|
748
802
|
StockComparison = "StockComparison"
|
|
749
803
|
}
|
|
750
804
|
|
|
751
|
-
|
|
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 {
|
|
752
839
|
private _catalogService;
|
|
753
840
|
private _adapterService;
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
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>;
|
|
771
888
|
}
|
|
772
889
|
|
|
773
890
|
/** AUTO GENERATED FILE. DO NOT CHANGE.. **/
|
|
774
891
|
declare enum IconEnum {
|
|
775
892
|
AddToCartDrop = "add_to_cart_drop",
|
|
776
893
|
Ar = "ar",
|
|
894
|
+
ArrowDownSolid = "arrow_down_solid",
|
|
777
895
|
ArrowScrollDown = "arrow_scroll_down",
|
|
778
896
|
ArrowScrollLeft = "arrow_scroll_left",
|
|
779
897
|
ArrowUpRightFromSquare = "arrow_up_right_from_square",
|
|
898
|
+
ArrowUpSolid = "arrow_up_solid",
|
|
780
899
|
BarsFilter = "bars_filter",
|
|
781
900
|
BarsRegularFull = "bars_regular_full",
|
|
782
901
|
BarsSolidFull = "bars_solid_full",
|
|
@@ -825,6 +944,77 @@ declare class IconCacheService {
|
|
|
825
944
|
static ɵprov: i0.ɵɵInjectableDeclaration<IconCacheService>;
|
|
826
945
|
}
|
|
827
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
|
+
|
|
828
1018
|
declare enum ConfigNameEnum {
|
|
829
1019
|
GeneralHeader = "generalHeader",
|
|
830
1020
|
PurchaseHeader = "purchaseHeader",
|
|
@@ -873,6 +1063,10 @@ declare enum ConfigNameEnum {
|
|
|
873
1063
|
BrandFilter = "brandFilter",
|
|
874
1064
|
GoodKindFilter = "goodKindFilter",
|
|
875
1065
|
ResultTiles = "resultSetting",
|
|
1066
|
+
CategorySelection = "categorieSelection",
|
|
1067
|
+
TurnoverGroupSelection = "turnoverSelection",
|
|
1068
|
+
ArticleGroupSelection = "articlegroupSelection",
|
|
1069
|
+
MainArticleSelection = "superarticleSelection",
|
|
876
1070
|
PurchaseDescriptionFilter = "purchaseDescriptionFilter",
|
|
877
1071
|
PurchaseDescriptionResult = "purchaseDescriptionResult"
|
|
878
1072
|
}
|
|
@@ -1293,9 +1487,15 @@ declare class ResponsiveTextModule {
|
|
|
1293
1487
|
static ɵinj: i0.ɵɵInjectorDeclaration<ResponsiveTextModule>;
|
|
1294
1488
|
}
|
|
1295
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
|
+
|
|
1296
1496
|
declare class CatalogCategoriesModule {
|
|
1297
1497
|
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogCategoriesModule, never>;
|
|
1298
|
-
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]>;
|
|
1299
1499
|
static ɵinj: i0.ɵɵInjectorDeclaration<CatalogCategoriesModule>;
|
|
1300
1500
|
}
|
|
1301
1501
|
|
|
@@ -1304,38 +1504,44 @@ declare class CatalogNavigationComponent {
|
|
|
1304
1504
|
catalogService: CatalogService;
|
|
1305
1505
|
private _appEventService;
|
|
1306
1506
|
private _adapterService;
|
|
1507
|
+
private _groupService;
|
|
1508
|
+
private _elementRef;
|
|
1307
1509
|
readonly icons: typeof IconEnum;
|
|
1308
1510
|
homeLabel: string;
|
|
1309
1511
|
collectionLabel: string;
|
|
1310
1512
|
externalSourcesLabel: string;
|
|
1513
|
+
groupSearchLabel: string;
|
|
1311
1514
|
showTurnoverGroups: boolean;
|
|
1312
1515
|
currentTransactionBranchId: number;
|
|
1313
1516
|
view: HTMLElement;
|
|
1314
1517
|
homeClick: EventEmitter<void>;
|
|
1315
1518
|
categoryClick: EventEmitter<string>;
|
|
1316
1519
|
turnoverGroupClick: EventEmitter<string>;
|
|
1520
|
+
articleGroupClick: EventEmitter<string>;
|
|
1521
|
+
mainArticleClick: EventEmitter<string>;
|
|
1317
1522
|
externalSourceClick: EventEmitter<ExternalSourceViewmodel>;
|
|
1318
1523
|
minified: boolean;
|
|
1319
1524
|
showClass: boolean;
|
|
1525
|
+
handleDocumentClick(event: MouseEvent): void;
|
|
1320
1526
|
mobileMenuToggle: boolean;
|
|
1321
1527
|
popupTop: number;
|
|
1322
1528
|
popupHeight: number;
|
|
1323
1529
|
popupWidth: number;
|
|
1324
1530
|
popupLeft: number;
|
|
1325
|
-
|
|
1531
|
+
navigationGroups: CatalogNavigationGroup[];
|
|
1326
1532
|
externalSources: CatalogDefinition[];
|
|
1327
|
-
turnoverGroups: TurnoverGroupImage[];
|
|
1328
1533
|
showCollectionOverlay: boolean;
|
|
1329
1534
|
showExternalOverlay: boolean;
|
|
1330
1535
|
get internalList(): any[];
|
|
1331
1536
|
get externalList(): any[];
|
|
1332
1537
|
private _subs;
|
|
1333
|
-
constructor(iconCache: IconCacheService, catalogService: CatalogService, _appEventService: CatalogEventService, _adapterService: CatalogConnectorAdapterService);
|
|
1538
|
+
constructor(iconCache: IconCacheService, catalogService: CatalogService, _appEventService: CatalogEventService, _adapterService: CatalogConnectorAdapterService, _groupService: CatalogNavigationGroupService, _elementRef: ElementRef);
|
|
1334
1539
|
ngOnInit(): void;
|
|
1335
1540
|
ngOnDestroy(): void;
|
|
1336
|
-
|
|
1541
|
+
getNavigationItems(): Promise<void>;
|
|
1337
1542
|
getExternalSources(): Promise<void>;
|
|
1338
|
-
|
|
1543
|
+
handleNavigationItemClick(event: MouseEvent, item: CatalogNavigationItem): void;
|
|
1544
|
+
handleGroupFilterChange(group: CatalogNavigationGroup, filter: string): void;
|
|
1339
1545
|
handleCategoryClick(event: MouseEvent, category: string): void;
|
|
1340
1546
|
handleTurnoverGroupClick(event: MouseEvent, turnovergroupNr: string): void;
|
|
1341
1547
|
handleExternalSourceClick(externalSource: ExternalSourceViewmodel): void;
|
|
@@ -1347,48 +1553,16 @@ declare class CatalogNavigationComponent {
|
|
|
1347
1553
|
onOpenExternalCatalog(event: any, webviewUrl: string): void;
|
|
1348
1554
|
onOpenIoneCatalog(event: any, webviewUrl: string, ioneUrl: string, upId: string, userName: string, passWord: string): void;
|
|
1349
1555
|
handleHomeClick(event: MouseEvent): void;
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
handleHideExternalOverlay(): void;
|
|
1556
|
+
handleToggleCollectionOverlay(): void;
|
|
1557
|
+
handleToggleExternalOverlay(): void;
|
|
1558
|
+
handleHideOverlays(): void;
|
|
1354
1559
|
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogNavigationComponent, never>;
|
|
1355
|
-
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>;
|
|
1356
|
-
}
|
|
1357
|
-
|
|
1358
|
-
declare class CatalogExternalSourcesComponent implements OnInit, OnDestroy {
|
|
1359
|
-
private _catalogConnectorService;
|
|
1360
|
-
private _imageService;
|
|
1361
|
-
private _adapterService;
|
|
1362
|
-
isStandalone: boolean;
|
|
1363
|
-
embedded: boolean;
|
|
1364
|
-
currentTransactionBranchId: number;
|
|
1365
|
-
externalSourceClick: EventEmitter<ExternalSourceViewmodel>;
|
|
1366
|
-
catalogsLoaded: EventEmitter<boolean>;
|
|
1367
|
-
showClass(): boolean;
|
|
1368
|
-
pinnedExternalSourceViewModels: ExternalSourceViewmodel[];
|
|
1369
|
-
externalSourceViewModels: ExternalSourceViewmodel[];
|
|
1370
|
-
unavailableCatalogs: CatalogDefinition[];
|
|
1371
|
-
private _subs;
|
|
1372
|
-
constructor(_catalogConnectorService: CatalogConnectorService, _imageService: CatalogImageService, _adapterService: CatalogConnectorAdapterService);
|
|
1373
|
-
ngOnInit(): Promise<void>;
|
|
1374
|
-
ngOnDestroy(): void;
|
|
1375
|
-
private _getCatalogs;
|
|
1376
|
-
private _sortAndLoadAvailableCatalogs;
|
|
1377
|
-
private _loadCatalogs;
|
|
1378
|
-
private _loadUnavailableCatalogs;
|
|
1379
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogExternalSourcesComponent, never>;
|
|
1380
|
-
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>;
|
|
1381
|
-
}
|
|
1382
|
-
|
|
1383
|
-
declare class CatalogExternalSourcesModule {
|
|
1384
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogExternalSourcesModule, never>;
|
|
1385
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CatalogExternalSourcesModule, [typeof CatalogExternalSourcesComponent], [typeof i2.CommonModule, typeof CatalogFilterModule, typeof i3.ImageModule, typeof ResponsiveTextModule, typeof CatalogPipeModule], [typeof CatalogExternalSourcesComponent]>;
|
|
1386
|
-
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>;
|
|
1387
1561
|
}
|
|
1388
1562
|
|
|
1389
1563
|
declare class CatalogNavigationModule {
|
|
1390
1564
|
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogNavigationModule, never>;
|
|
1391
|
-
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]>;
|
|
1392
1566
|
static ɵinj: i0.ɵɵInjectorDeclaration<CatalogNavigationModule>;
|
|
1393
1567
|
}
|
|
1394
1568
|
|
|
@@ -1413,6 +1587,7 @@ declare class CatalogSearchComponent implements OnInit, OnDestroy {
|
|
|
1413
1587
|
tempFilter: boolean;
|
|
1414
1588
|
popupFilter: boolean;
|
|
1415
1589
|
showViewModes: boolean;
|
|
1590
|
+
showSorting: boolean;
|
|
1416
1591
|
embedded: boolean;
|
|
1417
1592
|
externalSource: ExternalSourceInfo;
|
|
1418
1593
|
isReturn: boolean;
|
|
@@ -1454,6 +1629,8 @@ declare class CatalogSearchComponent implements OnInit, OnDestroy {
|
|
|
1454
1629
|
handleHomeClick($event: any): void;
|
|
1455
1630
|
handleCategoryClick(category: string): void;
|
|
1456
1631
|
handleTurnoverGroupClick(turnoverGroup: string): void;
|
|
1632
|
+
handleArticleGroupClick(articleGroup: string): void;
|
|
1633
|
+
handleMainArticleClick(mainArticle: string): void;
|
|
1457
1634
|
handleResetButtonClick(event: MouseEvent): void;
|
|
1458
1635
|
/**
|
|
1459
1636
|
* Applies the given searchRequest and searches for articles based on that request
|
|
@@ -1461,7 +1638,7 @@ declare class CatalogSearchComponent implements OnInit, OnDestroy {
|
|
|
1461
1638
|
applySearchRequest(searchRequest: ArticleExtendedRequest): void;
|
|
1462
1639
|
search(): void;
|
|
1463
1640
|
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogSearchComponent, [{ host: true; }, { host: true; }, { host: true; }, null, null, null, null, null]>;
|
|
1464
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CatalogSearchComponent, "co-catalog-search", never, { "settings": { "alias": "settings"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subTitle": { "alias": "subTitle"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "createFrozenArticle": { "alias": "createFrozenArticle"; "required": false; }; "showNavigation": { "alias": "showNavigation"; "required": false; }; "showLandingPage": { "alias": "showLandingPage"; "required": false; }; "useQuickSelProperties": { "alias": "useQuickSelProperties"; "required": false; }; "tempFilter": { "alias": "tempFilter"; "required": false; }; "popupFilter": { "alias": "popupFilter"; "required": false; }; "showViewModes": { "alias": "showViewModes"; "required": false; }; "embedded": { "alias": "embedded"; "required": false; }; "externalSource": { "alias": "externalSource"; "required": false; }; "isReturn": { "alias": "isReturn"; "required": false; }; "currentTransactionBranchId": { "alias": "currentTransactionBranchId"; "required": false; }; "searchPresetTemplate": { "alias": "searchPresetTemplate"; "required": false; }; "generalFilterOrders": { "alias": "generalFilterOrders"; "required": false; }; "purchaseFilterOrders": { "alias": "purchaseFilterOrders"; "required": false; }; "logisticsFilterOrders": { "alias": "logisticsFilterOrders"; "required": false; }; }, { "settingsChange": "settingsChange"; "onLookAtArticleButtonClick": "onLookAtArticleButtonClick"; "onArButtonClick": "onArButtonClick"; "onAddArticleButtonClick": "onAddArticleButtonClick"; "onArticleClick": "onArticleClick"; "onArticleClickJSON": "onArticleClickJSON"; "onStockDetailsClick": "onStockDetailsClick"; "onExternalSourceClick": "onExternalSourceClick"; }, never, never, false, never>;
|
|
1641
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CatalogSearchComponent, "co-catalog-search", never, { "settings": { "alias": "settings"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subTitle": { "alias": "subTitle"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "createFrozenArticle": { "alias": "createFrozenArticle"; "required": false; }; "showNavigation": { "alias": "showNavigation"; "required": false; }; "showLandingPage": { "alias": "showLandingPage"; "required": false; }; "useQuickSelProperties": { "alias": "useQuickSelProperties"; "required": false; }; "tempFilter": { "alias": "tempFilter"; "required": false; }; "popupFilter": { "alias": "popupFilter"; "required": false; }; "showViewModes": { "alias": "showViewModes"; "required": false; }; "showSorting": { "alias": "showSorting"; "required": false; }; "embedded": { "alias": "embedded"; "required": false; }; "externalSource": { "alias": "externalSource"; "required": false; }; "isReturn": { "alias": "isReturn"; "required": false; }; "currentTransactionBranchId": { "alias": "currentTransactionBranchId"; "required": false; }; "searchPresetTemplate": { "alias": "searchPresetTemplate"; "required": false; }; "generalFilterOrders": { "alias": "generalFilterOrders"; "required": false; }; "purchaseFilterOrders": { "alias": "purchaseFilterOrders"; "required": false; }; "logisticsFilterOrders": { "alias": "logisticsFilterOrders"; "required": false; }; }, { "settingsChange": "settingsChange"; "onLookAtArticleButtonClick": "onLookAtArticleButtonClick"; "onArButtonClick": "onArButtonClick"; "onAddArticleButtonClick": "onAddArticleButtonClick"; "onArticleClick": "onArticleClick"; "onArticleClickJSON": "onArticleClickJSON"; "onStockDetailsClick": "onStockDetailsClick"; "onExternalSourceClick": "onExternalSourceClick"; }, never, never, false, never>;
|
|
1465
1642
|
}
|
|
1466
1643
|
|
|
1467
1644
|
declare class CatalogSearchHeaderComponent {
|
|
@@ -1496,7 +1673,9 @@ declare abstract class CatalogSearchBaseComponent {
|
|
|
1496
1673
|
selected: boolean;
|
|
1497
1674
|
}>;
|
|
1498
1675
|
elements: ElementRef[];
|
|
1676
|
+
private _observerEnabled;
|
|
1499
1677
|
constructor(catalogSearchService: CatalogSearchService);
|
|
1678
|
+
observerEnabled(article: ArticleExtended): boolean;
|
|
1500
1679
|
onPreviousClick(): void;
|
|
1501
1680
|
onNextClick(): void;
|
|
1502
1681
|
onPageClick(pageNr: number): void;
|
|
@@ -1691,9 +1870,48 @@ declare class CatalogSearchResultGridModule {
|
|
|
1691
1870
|
static ɵinj: i0.ɵɵInjectorDeclaration<CatalogSearchResultGridModule>;
|
|
1692
1871
|
}
|
|
1693
1872
|
|
|
1873
|
+
/**
|
|
1874
|
+
* One entry of the sort dropdown. 'description' is the field co-list-of-values
|
|
1875
|
+
* displays by default, so it holds the already localized label. The direction is
|
|
1876
|
+
* not part of it, it is toggled with the arrow next to the dropdown.
|
|
1877
|
+
*/
|
|
1878
|
+
interface CatalogSortOption {
|
|
1879
|
+
field: ArticleSortField;
|
|
1880
|
+
description: string;
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1883
|
+
declare class CatalogSortComponent {
|
|
1884
|
+
iconCacheService: IconCacheService;
|
|
1885
|
+
private _catalogSearchService;
|
|
1886
|
+
private _dictionary;
|
|
1887
|
+
readonly icons: typeof IconEnum;
|
|
1888
|
+
showClass: boolean;
|
|
1889
|
+
sortOptions: CatalogSortOption[];
|
|
1890
|
+
sortModel: CatalogSortOption;
|
|
1891
|
+
get sortField(): ArticleSortField;
|
|
1892
|
+
get sortDirection(): ArticleSortDirection;
|
|
1893
|
+
get sortDirectionIcon(): IconEnum;
|
|
1894
|
+
private _subs;
|
|
1895
|
+
constructor(iconCacheService: IconCacheService, _catalogSearchService: CatalogSearchService, _dictionary: CatalogDictionaryService);
|
|
1896
|
+
ngOnInit(): void;
|
|
1897
|
+
ngOnDestroy(): void;
|
|
1898
|
+
handleSortFieldChange(option: CatalogSortOption): void;
|
|
1899
|
+
handleSortDirectionClick(): void;
|
|
1900
|
+
private _buildSortOptions;
|
|
1901
|
+
private _selectSortOption;
|
|
1902
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogSortComponent, never>;
|
|
1903
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CatalogSortComponent, "co-catalog-sort", never, {}, {}, never, never, false, never>;
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
declare class CatalogSortModule {
|
|
1907
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogSortModule, never>;
|
|
1908
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CatalogSortModule, [typeof CatalogSortComponent], [typeof i2.CommonModule, typeof i3.ButtonModule, typeof i3.ListOfValuesModule, typeof CatalogPipeModule], [typeof CatalogSortComponent]>;
|
|
1909
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CatalogSortModule>;
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1694
1912
|
declare class CatalogSearchModule {
|
|
1695
1913
|
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogSearchModule, never>;
|
|
1696
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CatalogSearchModule, [typeof CatalogSearchComponent], [typeof i2.CommonModule, typeof CatalogFilterModule, typeof CatalogSearchHeaderModule, typeof CatalogSearchResultTileModule, typeof CatalogSearchResultListModule, typeof CatalogSearchResultGridModule, typeof CatalogCategoriesModule, typeof CatalogExternalSourcesModule, typeof CatalogNavigationModule, typeof i3.IconModule, typeof i3.ButtonModule, typeof CatalogPipeModule, typeof i9.SearchPresetOverviewModule], [typeof CatalogSearchComponent]>;
|
|
1914
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CatalogSearchModule, [typeof CatalogSearchComponent], [typeof i2.CommonModule, typeof CatalogFilterModule, typeof CatalogSearchHeaderModule, typeof CatalogSearchResultTileModule, typeof CatalogSearchResultListModule, typeof CatalogSearchResultGridModule, typeof CatalogCategoriesModule, typeof CatalogExternalSourcesModule, typeof CatalogNavigationModule, typeof CatalogSortModule, typeof i3.IconModule, typeof i3.ButtonModule, typeof CatalogPipeModule, typeof i9.SearchPresetOverviewModule], [typeof CatalogSearchComponent]>;
|
|
1697
1915
|
static ɵinj: i0.ɵɵInjectorDeclaration<CatalogSearchModule>;
|
|
1698
1916
|
}
|
|
1699
1917
|
|
|
@@ -1928,5 +2146,5 @@ declare class CatalogNavigationService implements OnDestroy {
|
|
|
1928
2146
|
static ɵprov: i0.ɵɵInjectableDeclaration<CatalogNavigationService>;
|
|
1929
2147
|
}
|
|
1930
2148
|
|
|
1931
|
-
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, CatalogStockComparisonListComponent, CatalogStockComparisonListModule, CatalogStockComparisonService, CatalogStockComparisonTileComponent, CatalogStockComparisonTileModule, CatalogStockOverviewListComponent, CatalogStockOverviewListModule, CatalogStockOverviewTileComponent, CatalogStockOverviewTileModule, CatalogStockService, CatalogStockTransferService, CatalogWarehouseTransfersListComponent, CatalogWarehouseTransfersListModule, CatalogWarehouseTransfersTileComponent, CatalogWarehouseTransfersTileModule, ConfigNameEnum, ExternalSourceViewmodel, GoogleTranslateService, GoogleTranslation, IconSvg, SettingsOptions, StockView, Version };
|
|
1932
|
-
export type { 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 };
|