@colijnit/catalog 12.1.34 → 12.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/colijnit-catalog.umd.js +513 -256
- package/bundles/colijnit-catalog.umd.js.map +1 -1
- package/colijnit-catalog.d.ts +24 -35
- package/colijnit-catalog.metadata.json +1 -1
- package/esm2015/colijnit-catalog.js +25 -36
- package/esm2015/lib/cache/service/business-object-cache-manager.service.js +2 -14
- package/esm2015/lib/cache/service/select-multiple-cache.service.js +2 -7
- package/esm2015/lib/cache/service/select-multiple-parameterized-cache.service.js +2 -7
- package/esm2015/lib/cache/service/select-single-cache.service.js +2 -7
- package/esm2015/lib/cache/service/select-single-parameterized-cache.service.js +2 -7
- package/esm2015/lib/catalog-version.js +3 -3
- package/esm2015/lib/component/catalog-categories/catalog-categories.component.js +17 -5
- package/esm2015/lib/component/catalog-categories/catalog-categories.module.js +5 -4
- package/esm2015/lib/component/catalog-external-source/catalog-external-source.component.js +77 -34
- package/esm2015/lib/component/catalog-external-source/catalog-external-source.module.js +4 -2
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.js +36 -19
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.component.js +29 -11
- package/esm2015/lib/component/catalog-navigation/catalog-navigation.component.js +32 -10
- package/esm2015/lib/component/catalog-search/catalog-search.component.js +117 -15
- package/esm2015/lib/component/catalog-search/catalog-search.module.js +39 -2
- package/esm2015/lib/component/catalog-search-header/catalog-search-header.component.js +15 -4
- package/esm2015/lib/component/catalog-search-header/catalog-search-header.module.js +4 -3
- package/esm2015/lib/enum/external-settings.interface.js +2 -0
- package/esm2015/lib/enum/icon.enum.js +4 -1
- package/esm2015/lib/model/icon.js +5 -2
- package/esm2015/lib/model/settings.js +3 -2
- package/esm2015/lib/service/catalog-connector-adapter.service.js +40 -27
- package/esm2015/lib/service/catalog-connector.service.js +7 -11
- package/esm2015/lib/service/catalog-filter.service.js +14 -15
- package/esm2015/lib/service/catalog-image.service.js +2 -7
- package/esm2015/lib/service/catalog-navigation.service.js +83 -0
- package/esm2015/lib/service/catalog-options.service.js +2 -8
- package/esm2015/lib/service/catalog-search.service.js +2 -10
- package/esm2015/lib/service/catalog-settings.service.js +12 -12
- package/esm2015/lib/service/catalog.service.js +18 -18
- package/esm2015/public_api.js +13 -1
- package/fesm2015/colijnit-catalog.js +483 -180
- package/fesm2015/colijnit-catalog.js.map +1 -1
- package/lib/cache/service/business-object-cache-manager.service.d.ts +1 -4
- package/lib/component/catalog-categories/catalog-categories.component.d.ts +8 -3
- package/lib/component/catalog-external-source/catalog-external-source.component.d.ts +34 -16
- package/lib/component/catalog-external-source/style/_layout.scss +0 -47
- package/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.d.ts +15 -8
- package/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.component.d.ts +12 -5
- package/lib/component/catalog-navigation/catalog-navigation.component.d.ts +6 -1
- package/lib/component/catalog-navigation/style/_layout.scss +2 -0
- package/lib/component/catalog-navigation/style/_material-definition.scss +6 -1
- package/lib/component/catalog-search/catalog-search.component.d.ts +18 -1
- package/lib/component/catalog-search/catalog-search.module.d.ts +2 -0
- package/lib/component/catalog-search/style/_layout.scss +47 -1
- package/lib/component/catalog-search/style/_material-definition.scss +31 -2
- package/lib/component/catalog-search-header/catalog-search-header.component.d.ts +7 -1
- package/lib/component/catalog-search-header/style/_layout.scss +4 -1
- package/lib/component/catalog-search-header/style/_material-definition.scss +2 -1
- package/lib/enum/external-settings.interface.d.ts +4 -0
- package/lib/enum/icon.enum.d.ts +4 -1
- package/lib/model/settings.d.ts +2 -1
- package/lib/service/catalog-connector-adapter.service.d.ts +14 -9
- package/lib/service/catalog-connector.service.d.ts +8 -7
- package/lib/service/catalog-navigation.service.d.ts +27 -0
- package/lib/service/catalog-settings.service.d.ts +1 -1
- package/lib/service/catalog.service.d.ts +5 -2
- package/lib/style/_variables.scss +21 -9
- package/package.json +7 -7
- package/public_api.d.ts +12 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, EventEmitter, Component, ViewEncapsulation, Input, Output, HostBinding, ChangeDetectorRef, ViewChild, ElementRef, Pipe, NgModule, Directive, HostListener
|
|
2
|
+
import { Injectable, EventEmitter, Component, ViewEncapsulation, Input, Output, HostBinding, ChangeDetectorRef, ViewChild, ElementRef, Pipe, NgModule, Host, Directive, HostListener } from '@angular/core';
|
|
3
3
|
import { CommonModule } from '@angular/common';
|
|
4
4
|
import { __awaiter } from 'tslib';
|
|
5
5
|
import { Subject, BehaviorSubject } from 'rxjs';
|
|
@@ -17,14 +17,17 @@ import { RelationApi } from '@colijnit/relationapi';
|
|
|
17
17
|
import { MainApi } from '@colijnit/mainapi';
|
|
18
18
|
import { StoreGroup } from '@colijnit/mainapi/build/model/store-group.bo';
|
|
19
19
|
import { CoDomainValue } from '@colijnit/mainapi/build/model/co-domain-value.bo';
|
|
20
|
+
import { RelationListObject } from '@colijnit/relationapi/build/model/relation-list-object.bo';
|
|
20
21
|
import { RelationRequest } from '@colijnit/relationapi/build/model/relation-request';
|
|
21
22
|
import { RelationKind } from '@colijnit/relationapi/build/enum/relation-kind.enum';
|
|
22
23
|
import { CoRVDomainValue } from '@colijnit/mainapi/build/model/co-rv-domain-value.bo';
|
|
23
24
|
import { Category } from '@colijnit/mainapi/build/model/category.bo';
|
|
24
25
|
import { BusinessObjectFactory } from '@colijnit/ioneconnector/build/service/business-object-factory';
|
|
26
|
+
import { PriceList } from '@colijnit/transactionapi/build/model/price-list';
|
|
27
|
+
import { Transaction } from '@colijnit/transactionapi/build/transaction';
|
|
25
28
|
import { ObjectUtils } from '@colijnit/ioneconnector/build/utils/object-utils';
|
|
26
29
|
import { FileUtils } from '@colijnit/ioneconnector/build/utils/file-utils';
|
|
27
|
-
import { FilterViewmodel, FilterItemViewmodel, FilterItemModule, InputTextModule, ButtonModule, IconModule, InputDatePickerModule, IconCollapseHandleModule, ImageModule, OverlayModule, InputSearchModule, PaginationBarModule } from '@colijnit/corecomponents_v12';
|
|
30
|
+
import { FilterViewmodel, FilterItemViewmodel, FilterItemMode, FilterItemModule, InputTextModule, ButtonModule, IconModule, InputDatePickerModule, IconCollapseHandleModule, ImageModule, OverlayModule, OverlayService, InputSearchModule, PaginationBarModule } from '@colijnit/corecomponents_v12';
|
|
28
31
|
import { ArticleExtendedRequest } from '@colijnit/articleapi/build/model/article-extended-request';
|
|
29
32
|
import { PagingParameters } from '@colijnit/ioneconnector/build/model/paging-parameters';
|
|
30
33
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
@@ -38,8 +41,8 @@ class Version {
|
|
|
38
41
|
constructor() {
|
|
39
42
|
this.name = "@colijnit/catalog";
|
|
40
43
|
this.description = "iOne Catalog module based on Angular 12";
|
|
41
|
-
this.symVer = "12.1.
|
|
42
|
-
this.publishDate = "
|
|
44
|
+
this.symVer = "12.1.36";
|
|
45
|
+
this.publishDate = "28-7-2023 10:59:06";
|
|
43
46
|
}
|
|
44
47
|
}
|
|
45
48
|
|
|
@@ -66,9 +69,10 @@ class SettingsOptions {
|
|
|
66
69
|
class Settings {
|
|
67
70
|
constructor() {
|
|
68
71
|
this.session = undefined;
|
|
69
|
-
this.
|
|
72
|
+
this.useLoginEncryption = true;
|
|
70
73
|
this.type = "V";
|
|
71
74
|
this.options = new SettingsOptions();
|
|
75
|
+
this.jwtEnabled = false;
|
|
72
76
|
}
|
|
73
77
|
}
|
|
74
78
|
|
|
@@ -196,14 +200,16 @@ class CatalogSettingsService {
|
|
|
196
200
|
get settings() {
|
|
197
201
|
return this._settings;
|
|
198
202
|
}
|
|
199
|
-
initializeSettings(
|
|
203
|
+
initializeSettings() {
|
|
200
204
|
return __awaiter(this, void 0, void 0, function* () {
|
|
201
205
|
// see if there's a json file for application settings
|
|
202
206
|
if (typeof settings === 'undefined') {
|
|
203
207
|
const jsonSettings = yield JsonUtils.ReadJsonFile('catalog-settings.json');
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
208
|
+
if (jsonSettings) {
|
|
209
|
+
this.settings = Object.assign(new Settings(), jsonSettings);
|
|
210
|
+
this.settings.options = Object.assign(new SettingsOptions(), this.settings.options);
|
|
211
|
+
this.settingsFinished();
|
|
212
|
+
}
|
|
207
213
|
}
|
|
208
214
|
else {
|
|
209
215
|
this.settings = Object.assign(new Settings(), settings);
|
|
@@ -248,7 +254,10 @@ class CatalogSettingsService {
|
|
|
248
254
|
this.settings.session = obj['session'];
|
|
249
255
|
}
|
|
250
256
|
if (obj.hasOwnProperty('useEncryption')) {
|
|
251
|
-
this.settings.
|
|
257
|
+
this.settings.useLoginEncryption = obj['useEncryption'];
|
|
258
|
+
}
|
|
259
|
+
if (obj.hasOwnProperty('useLoginEncryption')) {
|
|
260
|
+
this.settings.useLoginEncryption = obj['useLoginEncryption'];
|
|
252
261
|
}
|
|
253
262
|
if (obj.hasOwnProperty('additionalTranslationFile')) {
|
|
254
263
|
this.settings.additionalTranslationFile = obj['additionalTranslationFile'];
|
|
@@ -276,11 +285,8 @@ class CatalogSettingsService {
|
|
|
276
285
|
});
|
|
277
286
|
}
|
|
278
287
|
}
|
|
279
|
-
CatalogSettingsService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CatalogSettingsService_Factory() { return new CatalogSettingsService(i0.ɵɵinject(DictionaryService)); }, token: CatalogSettingsService, providedIn: "root" });
|
|
280
288
|
CatalogSettingsService.decorators = [
|
|
281
|
-
{ type: Injectable
|
|
282
|
-
providedIn: 'root'
|
|
283
|
-
},] }
|
|
289
|
+
{ type: Injectable }
|
|
284
290
|
];
|
|
285
291
|
CatalogSettingsService.ctorParameters = () => [
|
|
286
292
|
{ type: DictionaryService }
|
|
@@ -312,23 +318,14 @@ class CatalogConnectorAdapterService {
|
|
|
312
318
|
}
|
|
313
319
|
this._initializing = true;
|
|
314
320
|
try {
|
|
315
|
-
this.connectorOptions
|
|
316
|
-
this.connectorOptions.
|
|
317
|
-
this.connectorOptions.version = settings.version;
|
|
318
|
-
this.connectorOptions.branch = settings.branch;
|
|
319
|
-
this.connectorOptions.username = settings.username;
|
|
320
|
-
this.connectorOptions.password = settings.password;
|
|
321
|
-
this.connectorOptions.session = settings.session;
|
|
322
|
-
this.connectorOptions.currencyId = settings.currency;
|
|
323
|
-
this.connectorOptions.useGroups = settings.useGroups;
|
|
324
|
-
this.connectorOptions.useRenders = settings.useRenders;
|
|
325
|
-
this.connectorOptions.useLoginEncryption = settings.useEncryption;
|
|
326
|
-
this.connectorOptions.languageCode = settings.languageCode;
|
|
321
|
+
this.connectorOptions = Object.assign(new Settings(), settings);
|
|
322
|
+
this.connectorOptions.options = Object.assign(new SettingsOptions(), this.connectorOptions.options);
|
|
327
323
|
this.assetPath = settings.assetPath;
|
|
328
324
|
this.connector = new Articles(this.connectorOptions);
|
|
329
|
-
|
|
325
|
+
yield this.connector.connect();
|
|
330
326
|
this.relationConnector = new RelationApi(this.connectorOptions);
|
|
331
327
|
this.mainConnector = new MainApi(this.connectorOptions);
|
|
328
|
+
this.transactionConnector = new Transaction(this.connectorOptions);
|
|
332
329
|
this.connector.showLoader.subscribe(showLoader => this.onShowLoaderChange(showLoader));
|
|
333
330
|
this.controllerInitialized.next(true);
|
|
334
331
|
this._initialized = true;
|
|
@@ -339,6 +336,19 @@ class CatalogConnectorAdapterService {
|
|
|
339
336
|
}
|
|
340
337
|
});
|
|
341
338
|
}
|
|
339
|
+
getCatalogBundleSettings(url, upId) {
|
|
340
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
341
|
+
const tempSettings = new Settings();
|
|
342
|
+
tempSettings.url = url;
|
|
343
|
+
tempSettings.schema = upId.toString();
|
|
344
|
+
const tempMainConnector = new MainApi(tempSettings);
|
|
345
|
+
const response = yield tempMainConnector.getPublicParams(upId);
|
|
346
|
+
if (response) {
|
|
347
|
+
return response.catalogSettings;
|
|
348
|
+
}
|
|
349
|
+
return "";
|
|
350
|
+
});
|
|
351
|
+
}
|
|
342
352
|
getArticlesForCatalog(params, showLoader = true) {
|
|
343
353
|
return __awaiter(this, void 0, void 0, function* () {
|
|
344
354
|
const response = yield this.connector.searchArticles(params, showLoader);
|
|
@@ -566,7 +576,7 @@ class CatalogConnectorAdapterService {
|
|
|
566
576
|
return __awaiter(this, void 0, void 0, function* () {
|
|
567
577
|
const response = yield this.mainConnector.getPriceLists();
|
|
568
578
|
if (response && response.validationResult && response.validationResult.success) {
|
|
569
|
-
return this._boFactory.makeBOArrayFromRawBackendDataArray(
|
|
579
|
+
return this._boFactory.makeBOArrayFromRawBackendDataArray(PriceList, response.resultObjects);
|
|
570
580
|
}
|
|
571
581
|
else {
|
|
572
582
|
console.error(response.validationMessagesAsString);
|
|
@@ -579,7 +589,7 @@ class CatalogConnectorAdapterService {
|
|
|
579
589
|
request.relationType = RelationKind.Supplier;
|
|
580
590
|
const response = yield this.relationConnector.getRelationListObjects(request);
|
|
581
591
|
if (response && response.validationResult && response.validationResult.success) {
|
|
582
|
-
return this._boFactory.makeBOArrayFromRawBackendDataArray(
|
|
592
|
+
return this._boFactory.makeBOArrayFromRawBackendDataArray(RelationListObject, response.resultObjects);
|
|
583
593
|
}
|
|
584
594
|
else {
|
|
585
595
|
console.error(response.validationMessagesAsString);
|
|
@@ -673,6 +683,14 @@ class CatalogConnectorAdapterService {
|
|
|
673
683
|
}
|
|
674
684
|
});
|
|
675
685
|
}
|
|
686
|
+
addWebSessionTransactionLine(sku, quantity) {
|
|
687
|
+
this.transactionConnector.addWebSessionTransactionLine(sku, quantity);
|
|
688
|
+
}
|
|
689
|
+
getWebTransaction() {
|
|
690
|
+
this.transactionConnector.getWebSessionSalesOrder().then((response) => {
|
|
691
|
+
console.log(response);
|
|
692
|
+
});
|
|
693
|
+
}
|
|
676
694
|
getJsonArticleFlatTree(goodId, goodType, quantity, showLoader = true, instanceId = undefined, configuratorStatistics) {
|
|
677
695
|
return this.connector.getJsonArticleFlatTree(goodId, goodType, quantity, showLoader, undefined, configuratorStatistics);
|
|
678
696
|
}
|
|
@@ -680,11 +698,8 @@ class CatalogConnectorAdapterService {
|
|
|
680
698
|
this._shouldShowLoader = showLoader;
|
|
681
699
|
}
|
|
682
700
|
}
|
|
683
|
-
CatalogConnectorAdapterService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CatalogConnectorAdapterService_Factory() { return new CatalogConnectorAdapterService(); }, token: CatalogConnectorAdapterService, providedIn: "root" });
|
|
684
701
|
CatalogConnectorAdapterService.decorators = [
|
|
685
|
-
{ type: Injectable
|
|
686
|
-
providedIn: "root"
|
|
687
|
-
},] }
|
|
702
|
+
{ type: Injectable }
|
|
688
703
|
];
|
|
689
704
|
|
|
690
705
|
// Class represents a value that is to be loaded only once, lazily, by its .loadFunction, despite how many times or how fast its getValue() is called.
|
|
@@ -834,14 +849,6 @@ class BusinessObjectCacheManagerService {
|
|
|
834
849
|
this._selectSingleCache = new Map();
|
|
835
850
|
this._selectSingleParameterizedCache = new Map();
|
|
836
851
|
}
|
|
837
|
-
// constructor(private _transactionService: TransactionService) {
|
|
838
|
-
// this._logoutSub = this._transactionService.logout.subscribe(() => {
|
|
839
|
-
// this._reset();
|
|
840
|
-
// });
|
|
841
|
-
// }
|
|
842
|
-
ngOnDestroy() {
|
|
843
|
-
this._logoutSub.unsubscribe();
|
|
844
|
-
}
|
|
845
852
|
/**
|
|
846
853
|
* Creates and adds a new simple cache item for the given key with the given load function.
|
|
847
854
|
* @param key
|
|
@@ -950,11 +957,8 @@ class BusinessObjectCacheManagerService {
|
|
|
950
957
|
}
|
|
951
958
|
}
|
|
952
959
|
BusinessObjectCacheManagerService._NullBoId = -1;
|
|
953
|
-
BusinessObjectCacheManagerService.ɵprov = i0.ɵɵdefineInjectable({ factory: function BusinessObjectCacheManagerService_Factory() { return new BusinessObjectCacheManagerService(); }, token: BusinessObjectCacheManagerService, providedIn: "root" });
|
|
954
960
|
BusinessObjectCacheManagerService.decorators = [
|
|
955
|
-
{ type: Injectable
|
|
956
|
-
providedIn: "root"
|
|
957
|
-
},] }
|
|
961
|
+
{ type: Injectable }
|
|
958
962
|
];
|
|
959
963
|
|
|
960
964
|
class SelectSingleCacheService {
|
|
@@ -973,11 +977,8 @@ class SelectSingleCacheService {
|
|
|
973
977
|
return this._boCacheManager.addNewSelectSingleCacheItem(clazz, sourceId, loadFunction);
|
|
974
978
|
}
|
|
975
979
|
}
|
|
976
|
-
SelectSingleCacheService.ɵprov = i0.ɵɵdefineInjectable({ factory: function SelectSingleCacheService_Factory() { return new SelectSingleCacheService(i0.ɵɵinject(BusinessObjectCacheManagerService)); }, token: SelectSingleCacheService, providedIn: "root" });
|
|
977
980
|
SelectSingleCacheService.decorators = [
|
|
978
|
-
{ type: Injectable
|
|
979
|
-
providedIn: "root"
|
|
980
|
-
},] }
|
|
981
|
+
{ type: Injectable }
|
|
981
982
|
];
|
|
982
983
|
SelectSingleCacheService.ctorParameters = () => [
|
|
983
984
|
{ type: BusinessObjectCacheManagerService }
|
|
@@ -1006,11 +1007,8 @@ class SelectMultipleCacheService {
|
|
|
1006
1007
|
}
|
|
1007
1008
|
}
|
|
1008
1009
|
SelectMultipleCacheService._NullCache = new CacheField();
|
|
1009
|
-
SelectMultipleCacheService.ɵprov = i0.ɵɵdefineInjectable({ factory: function SelectMultipleCacheService_Factory() { return new SelectMultipleCacheService(i0.ɵɵinject(BusinessObjectCacheManagerService)); }, token: SelectMultipleCacheService, providedIn: "root" });
|
|
1010
1010
|
SelectMultipleCacheService.decorators = [
|
|
1011
|
-
{ type: Injectable
|
|
1012
|
-
providedIn: "root"
|
|
1013
|
-
},] }
|
|
1011
|
+
{ type: Injectable }
|
|
1014
1012
|
];
|
|
1015
1013
|
SelectMultipleCacheService.ctorParameters = () => [
|
|
1016
1014
|
{ type: BusinessObjectCacheManagerService }
|
|
@@ -1048,11 +1046,8 @@ class SelectMultipleParameterizedCacheService {
|
|
|
1048
1046
|
return this._boCacheManager.addNewSelectMultipleParameterizedCacheItem(clazz, loadFunction);
|
|
1049
1047
|
}
|
|
1050
1048
|
}
|
|
1051
|
-
SelectMultipleParameterizedCacheService.ɵprov = i0.ɵɵdefineInjectable({ factory: function SelectMultipleParameterizedCacheService_Factory() { return new SelectMultipleParameterizedCacheService(i0.ɵɵinject(BusinessObjectCacheManagerService)); }, token: SelectMultipleParameterizedCacheService, providedIn: "root" });
|
|
1052
1049
|
SelectMultipleParameterizedCacheService.decorators = [
|
|
1053
|
-
{ type: Injectable
|
|
1054
|
-
providedIn: "root"
|
|
1055
|
-
},] }
|
|
1050
|
+
{ type: Injectable }
|
|
1056
1051
|
];
|
|
1057
1052
|
SelectMultipleParameterizedCacheService.ctorParameters = () => [
|
|
1058
1053
|
{ type: BusinessObjectCacheManagerService }
|
|
@@ -1090,11 +1085,8 @@ class SelectSingleParameterizedCacheService {
|
|
|
1090
1085
|
return this._boCacheManager.addNewSelectSingleParameterizedCacheItem(clazz, loadFunction);
|
|
1091
1086
|
}
|
|
1092
1087
|
}
|
|
1093
|
-
SelectSingleParameterizedCacheService.ɵprov = i0.ɵɵdefineInjectable({ factory: function SelectSingleParameterizedCacheService_Factory() { return new SelectSingleParameterizedCacheService(i0.ɵɵinject(BusinessObjectCacheManagerService)); }, token: SelectSingleParameterizedCacheService, providedIn: "root" });
|
|
1094
1088
|
SelectSingleParameterizedCacheService.decorators = [
|
|
1095
|
-
{ type: Injectable
|
|
1096
|
-
providedIn: "root"
|
|
1097
|
-
},] }
|
|
1089
|
+
{ type: Injectable }
|
|
1098
1090
|
];
|
|
1099
1091
|
SelectSingleParameterizedCacheService.ctorParameters = () => [
|
|
1100
1092
|
{ type: BusinessObjectCacheManagerService }
|
|
@@ -1114,6 +1106,11 @@ class CatalogConnectorService {
|
|
|
1114
1106
|
yield this._adapterService.initConnector(settings, forceReload);
|
|
1115
1107
|
});
|
|
1116
1108
|
}
|
|
1109
|
+
getCatalogBundleSettings(url, upId) {
|
|
1110
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1111
|
+
return this._adapterService.getCatalogBundleSettings(url, upId);
|
|
1112
|
+
});
|
|
1113
|
+
}
|
|
1117
1114
|
getArticlesForCatalog(params, showLoader = true) {
|
|
1118
1115
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1119
1116
|
return this._adapterService.getArticlesForCatalog(params, showLoader);
|
|
@@ -1246,11 +1243,8 @@ class CatalogConnectorService {
|
|
|
1246
1243
|
return this._adapterService.getJsonArticleFlatTree(goodId, goodType, quantity, showLoader, undefined, configuratorStatistics);
|
|
1247
1244
|
}
|
|
1248
1245
|
}
|
|
1249
|
-
CatalogConnectorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CatalogConnectorService_Factory() { return new CatalogConnectorService(i0.ɵɵinject(CatalogConnectorAdapterService), i0.ɵɵinject(SelectSingleCacheService), i0.ɵɵinject(SelectMultipleCacheService), i0.ɵɵinject(SelectMultipleParameterizedCacheService), i0.ɵɵinject(SelectSingleParameterizedCacheService)); }, token: CatalogConnectorService, providedIn: "root" });
|
|
1250
1246
|
CatalogConnectorService.decorators = [
|
|
1251
|
-
{ type: Injectable
|
|
1252
|
-
providedIn: 'root'
|
|
1253
|
-
},] }
|
|
1247
|
+
{ type: Injectable }
|
|
1254
1248
|
];
|
|
1255
1249
|
CatalogConnectorService.ctorParameters = () => [
|
|
1256
1250
|
{ type: CatalogConnectorAdapterService },
|
|
@@ -1334,11 +1328,8 @@ class CatalogOptionsService {
|
|
|
1334
1328
|
return this._parameters;
|
|
1335
1329
|
}
|
|
1336
1330
|
}
|
|
1337
|
-
CatalogOptionsService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CatalogOptionsService_Factory() { return new CatalogOptionsService(i0.ɵɵinject(DictionaryService), i0.ɵɵinject(CatalogSettingsService)); }, token: CatalogOptionsService, providedIn: "root" });
|
|
1338
1331
|
CatalogOptionsService.decorators = [
|
|
1339
|
-
{ type: Injectable
|
|
1340
|
-
providedIn: 'root'
|
|
1341
|
-
},] }
|
|
1332
|
+
{ type: Injectable }
|
|
1342
1333
|
];
|
|
1343
1334
|
CatalogOptionsService.ctorParameters = () => [
|
|
1344
1335
|
{ type: DictionaryService },
|
|
@@ -1454,11 +1445,8 @@ class CatalogImageService {
|
|
|
1454
1445
|
}
|
|
1455
1446
|
}
|
|
1456
1447
|
}
|
|
1457
|
-
CatalogImageService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CatalogImageService_Factory() { return new CatalogImageService(i0.ɵɵinject(CatalogConnectorService)); }, token: CatalogImageService, providedIn: "root" });
|
|
1458
1448
|
CatalogImageService.decorators = [
|
|
1459
|
-
{ type: Injectable
|
|
1460
|
-
providedIn: 'root'
|
|
1461
|
-
},] }
|
|
1449
|
+
{ type: Injectable }
|
|
1462
1450
|
];
|
|
1463
1451
|
CatalogImageService.ctorParameters = () => [
|
|
1464
1452
|
{ type: CatalogConnectorService }
|
|
@@ -1570,26 +1558,27 @@ class CatalogFilterService {
|
|
|
1570
1558
|
}
|
|
1571
1559
|
createFilterSelectionsCollection(collection, id, description) {
|
|
1572
1560
|
let returnCollection = [];
|
|
1573
|
-
collection.
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1561
|
+
if (collection && Array.isArray(collection)) {
|
|
1562
|
+
collection.forEach((collectionObject) => {
|
|
1563
|
+
let model = new FilterItemViewmodel(collectionObject[id], collectionObject[description], false);
|
|
1564
|
+
returnCollection.push(model);
|
|
1565
|
+
});
|
|
1566
|
+
}
|
|
1577
1567
|
return returnCollection;
|
|
1578
1568
|
}
|
|
1579
1569
|
createFilterSelectionsSupplierCollection(collection) {
|
|
1580
1570
|
let returnCollection = [];
|
|
1581
|
-
collection.
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1571
|
+
if (collection && Array.isArray(collection)) {
|
|
1572
|
+
collection.forEach((collectionObject) => {
|
|
1573
|
+
let model = new FilterItemViewmodel(collectionObject.relationNr, collectionObject.displayName, false);
|
|
1574
|
+
returnCollection.push(model);
|
|
1575
|
+
});
|
|
1576
|
+
}
|
|
1585
1577
|
return returnCollection;
|
|
1586
1578
|
}
|
|
1587
1579
|
}
|
|
1588
|
-
CatalogFilterService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CatalogFilterService_Factory() { return new CatalogFilterService(i0.ɵɵinject(CatalogConnectorService)); }, token: CatalogFilterService, providedIn: "root" });
|
|
1589
1580
|
CatalogFilterService.decorators = [
|
|
1590
|
-
{ type: Injectable
|
|
1591
|
-
providedIn: 'root'
|
|
1592
|
-
},] }
|
|
1581
|
+
{ type: Injectable }
|
|
1593
1582
|
];
|
|
1594
1583
|
CatalogFilterService.ctorParameters = () => [
|
|
1595
1584
|
{ type: CatalogConnectorService }
|
|
@@ -1760,11 +1749,8 @@ class CatalogSearchService {
|
|
|
1760
1749
|
// this._filterText = searchText;
|
|
1761
1750
|
}
|
|
1762
1751
|
}
|
|
1763
|
-
CatalogSearchService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CatalogSearchService_Factory() { return new CatalogSearchService(i0.ɵɵinject(CatalogFilterService), i0.ɵɵinject(CatalogConnectorService), i0.ɵɵinject(CatalogSettingsService), i0.ɵɵinject(CatalogOptionsService)); }, token: CatalogSearchService, providedIn: "root" });
|
|
1764
1752
|
CatalogSearchService.decorators = [
|
|
1765
|
-
{ type: Injectable
|
|
1766
|
-
providedIn: "root"
|
|
1767
|
-
},] }
|
|
1753
|
+
{ type: Injectable }
|
|
1768
1754
|
];
|
|
1769
1755
|
CatalogSearchService.ctorParameters = () => [
|
|
1770
1756
|
{ type: CatalogFilterService },
|
|
@@ -1774,16 +1760,16 @@ CatalogSearchService.ctorParameters = () => [
|
|
|
1774
1760
|
];
|
|
1775
1761
|
|
|
1776
1762
|
class CatalogService {
|
|
1777
|
-
constructor(connector, connectorAdapter, settingsService, optionsService, _imageService,
|
|
1763
|
+
constructor(connector, connectorAdapter, settingsService, optionsService, _imageService, _filterService, _catalogSearchService) {
|
|
1778
1764
|
this.connector = connector;
|
|
1779
1765
|
this.connectorAdapter = connectorAdapter;
|
|
1780
1766
|
this.settingsService = settingsService;
|
|
1781
1767
|
this.optionsService = optionsService;
|
|
1782
1768
|
this._imageService = _imageService;
|
|
1783
|
-
this._settingsService = _settingsService;
|
|
1784
1769
|
this._filterService = _filterService;
|
|
1785
1770
|
this._catalogSearchService = _catalogSearchService;
|
|
1786
1771
|
this.externalSourceChanged = new BehaviorSubject(undefined);
|
|
1772
|
+
this.controllerInitialized = new BehaviorSubject(undefined);
|
|
1787
1773
|
this.articleSearchFilters = {};
|
|
1788
1774
|
this.articlesOnShowcase = [];
|
|
1789
1775
|
this.showcaseTitle = 'CATALOG';
|
|
@@ -1809,8 +1795,9 @@ class CatalogService {
|
|
|
1809
1795
|
this._subs.push(this.connectorAdapter.controllerInitialized.subscribe((initialized) => __awaiter(this, void 0, void 0, function* () {
|
|
1810
1796
|
if (initialized) {
|
|
1811
1797
|
this._controllerInitialized = true;
|
|
1798
|
+
this.controllerInitialized.next(this._controllerInitialized);
|
|
1812
1799
|
// this.ensureDataListsLoaded();
|
|
1813
|
-
this.articlesPerPage = this.
|
|
1800
|
+
this.articlesPerPage = this.settingsService.settings.options.maxItemsPerPage;
|
|
1814
1801
|
// if (this._settingsService.settings.options.searchOnStart) {
|
|
1815
1802
|
// this._catalogSearchService.searchArticles();
|
|
1816
1803
|
// }
|
|
@@ -1883,7 +1870,12 @@ class CatalogService {
|
|
|
1883
1870
|
}
|
|
1884
1871
|
init(settings, forceReload = false) {
|
|
1885
1872
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1886
|
-
yield this.settingsService.
|
|
1873
|
+
yield this.settingsService.createSettingsFromObject(settings);
|
|
1874
|
+
yield this.connector.initConnector(this.settingsService.settings, forceReload);
|
|
1875
|
+
});
|
|
1876
|
+
}
|
|
1877
|
+
initConnector(settings, forceReload = false) {
|
|
1878
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1887
1879
|
yield this.connector.initConnector(this.settingsService.settings, forceReload);
|
|
1888
1880
|
});
|
|
1889
1881
|
}
|
|
@@ -1914,16 +1906,19 @@ class CatalogService {
|
|
|
1914
1906
|
return this._imageService.getTurnoverGroupImage(group);
|
|
1915
1907
|
});
|
|
1916
1908
|
}
|
|
1909
|
+
addWebSessionTransactionLine(sku, quantity) {
|
|
1910
|
+
this.connectorAdapter.addWebSessionTransactionLine(sku, quantity);
|
|
1911
|
+
}
|
|
1912
|
+
getWebTransaction() {
|
|
1913
|
+
this.connectorAdapter.getWebTransaction();
|
|
1914
|
+
}
|
|
1917
1915
|
reset() {
|
|
1918
1916
|
this.showCatOrTurnoverGroupArticles = false;
|
|
1919
1917
|
this.showExternalSource = false;
|
|
1920
1918
|
}
|
|
1921
1919
|
}
|
|
1922
|
-
CatalogService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CatalogService_Factory() { return new CatalogService(i0.ɵɵinject(CatalogConnectorService), i0.ɵɵinject(CatalogConnectorAdapterService), i0.ɵɵinject(CatalogSettingsService), i0.ɵɵinject(CatalogOptionsService), i0.ɵɵinject(CatalogImageService), i0.ɵɵinject(CatalogSettingsService), i0.ɵɵinject(CatalogFilterService), i0.ɵɵinject(CatalogSearchService)); }, token: CatalogService, providedIn: "root" });
|
|
1923
1920
|
CatalogService.decorators = [
|
|
1924
|
-
{ type: Injectable
|
|
1925
|
-
providedIn: 'root'
|
|
1926
|
-
},] }
|
|
1921
|
+
{ type: Injectable }
|
|
1927
1922
|
];
|
|
1928
1923
|
CatalogService.ctorParameters = () => [
|
|
1929
1924
|
{ type: CatalogConnectorService },
|
|
@@ -1931,19 +1926,20 @@ CatalogService.ctorParameters = () => [
|
|
|
1931
1926
|
{ type: CatalogSettingsService },
|
|
1932
1927
|
{ type: CatalogOptionsService },
|
|
1933
1928
|
{ type: CatalogImageService },
|
|
1934
|
-
{ type: CatalogSettingsService },
|
|
1935
1929
|
{ type: CatalogFilterService },
|
|
1936
1930
|
{ type: CatalogSearchService }
|
|
1937
1931
|
];
|
|
1938
1932
|
|
|
1939
1933
|
class CatalogCategoriesComponent {
|
|
1940
|
-
constructor(_catalogService) {
|
|
1934
|
+
constructor(_catalogService, _adapterService) {
|
|
1941
1935
|
this._catalogService = _catalogService;
|
|
1936
|
+
this._adapterService = _adapterService;
|
|
1942
1937
|
this.showTurnoverGroups = true;
|
|
1943
1938
|
this.categoryClick = new EventEmitter();
|
|
1944
1939
|
this.turnoverGroupClick = new EventEmitter();
|
|
1945
1940
|
this.categories = [];
|
|
1946
1941
|
this.turnoverGroups = [];
|
|
1942
|
+
this._subs = [];
|
|
1947
1943
|
}
|
|
1948
1944
|
showClass() {
|
|
1949
1945
|
return true;
|
|
@@ -1951,7 +1947,14 @@ class CatalogCategoriesComponent {
|
|
|
1951
1947
|
ngOnInit() {
|
|
1952
1948
|
this.categories.length = 0;
|
|
1953
1949
|
this.turnoverGroups.length = 0;
|
|
1954
|
-
this.
|
|
1950
|
+
this._subs.push(this._adapterService.controllerInitialized.subscribe((initialized) => {
|
|
1951
|
+
if (initialized) {
|
|
1952
|
+
this.getCategories();
|
|
1953
|
+
}
|
|
1954
|
+
}));
|
|
1955
|
+
}
|
|
1956
|
+
ngOnDestroy() {
|
|
1957
|
+
this._subs.forEach(s => s.unsubscribe());
|
|
1955
1958
|
}
|
|
1956
1959
|
getCategories() {
|
|
1957
1960
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1982,7 +1985,7 @@ CatalogCategoriesComponent.decorators = [
|
|
|
1982
1985
|
{ type: Component, args: [{
|
|
1983
1986
|
selector: 'co-catalog-categories',
|
|
1984
1987
|
template: `
|
|
1985
|
-
<div class="catalog-categories-wrapper">
|
|
1988
|
+
<div class="catalog-categories-wrapper" [overlay]="parentForOverlay">
|
|
1986
1989
|
<ng-container *ngIf="categories && categories.length > 0">
|
|
1987
1990
|
<div class="categories-wrapper">
|
|
1988
1991
|
<div class="category-item" *ngFor="let category of categories" (click)="handleCategoryClick($event, category.category)">
|
|
@@ -2016,12 +2019,14 @@ CatalogCategoriesComponent.decorators = [
|
|
|
2016
2019
|
},] }
|
|
2017
2020
|
];
|
|
2018
2021
|
CatalogCategoriesComponent.ctorParameters = () => [
|
|
2019
|
-
{ type: CatalogService }
|
|
2022
|
+
{ type: CatalogService },
|
|
2023
|
+
{ type: CatalogConnectorAdapterService }
|
|
2020
2024
|
];
|
|
2021
2025
|
CatalogCategoriesComponent.propDecorators = {
|
|
2022
2026
|
showTurnoverGroups: [{ type: Input }],
|
|
2023
2027
|
categoryClick: [{ type: Output }],
|
|
2024
2028
|
turnoverGroupClick: [{ type: Output }],
|
|
2029
|
+
parentForOverlay: [{ type: Input }],
|
|
2025
2030
|
showClass: [{ type: HostBinding, args: ['class.co-catalog-categories',] }]
|
|
2026
2031
|
};
|
|
2027
2032
|
|
|
@@ -2032,7 +2037,9 @@ var IconEnum;
|
|
|
2032
2037
|
IconEnum["Ar"] = "ar";
|
|
2033
2038
|
IconEnum["ArrowScrollDown"] = "arrow_scroll_down";
|
|
2034
2039
|
IconEnum["ArrowScrollLeft"] = "arrow_scroll_left";
|
|
2040
|
+
IconEnum["BarsFilter"] = "bars_filter";
|
|
2035
2041
|
IconEnum["Camera"] = "camera";
|
|
2042
|
+
IconEnum["Cancel"] = "cancel";
|
|
2036
2043
|
IconEnum["Check"] = "check";
|
|
2037
2044
|
IconEnum["Close"] = "close";
|
|
2038
2045
|
IconEnum["Eye"] = "eye";
|
|
@@ -2048,6 +2055,7 @@ var IconEnum;
|
|
|
2048
2055
|
IconEnum["ThreeD"] = "three_d";
|
|
2049
2056
|
IconEnum["TileView"] = "tile_view";
|
|
2050
2057
|
IconEnum["Truck"] = "truck";
|
|
2058
|
+
IconEnum["WebCatalog"] = "web_catalog";
|
|
2051
2059
|
})(IconEnum || (IconEnum = {}));
|
|
2052
2060
|
|
|
2053
2061
|
/** AUTO GENERATED FILE. DO NOT CHANGE.. **/
|
|
@@ -2056,7 +2064,9 @@ const IconSvg = {
|
|
|
2056
2064
|
"ar": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect width=\"50\" height=\"50\" fill=\"none\"/><rect x=\"8\" y=\"20.98\" width=\"4.27\" height=\"11.1\" rx=\"0.5\" ry=\"0.5\" fill=\"#484f60\"/><rect x=\"38.73\" y=\"20.98\" width=\"4.27\" height=\"11.1\" rx=\"0.5\" ry=\"0.5\" fill=\"#484f60\"/><rect x=\"13.12\" y=\"15.86\" width=\"11.95\" height=\"8.54\" rx=\"0.5\" ry=\"0.5\" fill=\"#484f60\"/><rect x=\"13.12\" y=\"25.25\" width=\"11.95\" height=\"3.41\" rx=\"0.5\" ry=\"0.5\" fill=\"#484f60\"/><rect x=\"25.93\" y=\"15.86\" width=\"11.95\" height=\"8.54\" rx=\"0.5\" ry=\"0.5\" fill=\"#484f60\"/><rect x=\"25.93\" y=\"25.25\" width=\"11.95\" height=\"3.41\" rx=\"0.5\" ry=\"0.5\" fill=\"#484f60\"/></svg>",
|
|
2057
2065
|
"arrow_scroll_down": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\" version=\"1.1\" sodipodi:docname=\"arrow_scroll_left.svg\" inkscape:version=\"0.92.4 (5da689c313, 2019-01-14)\"><metadata ><rdf:RDF><cc:Work rdf:about=\"\"><dc:format>image/svg+xml</dc:format><dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\" /></cc:Work></rdf:RDF></metadata><defs /><sodipodi:namedview pagecolor=\"#ffffff\" bordercolor=\"#666666\" borderopacity=\"1\" objecttolerance=\"10\" gridtolerance=\"10\" guidetolerance=\"10\" inkscape:pageopacity=\"0\" inkscape:pageshadow=\"2\" inkscape:window-width=\"1920\" inkscape:window-height=\"1017\" showgr inkscape:zoom=\"4.72\" inkscape:cx=\"25\" inkscape:cy=\"25\" inkscape:window-x=\"-8\" inkscape:window-y=\"-8\" inkscape:window-maximized=\"1\" inkscape:current-layer=\"svg4\" /><path d=\"m 37.771942,16.289849 a 2.37,2.37 0 0 1 1.67,4 l -12.64,12.68 a 2.37,2.37 0 0 1 -3.34,0 l -12.63,-12.64 a 2.36,2.36 0 1 1 3.3,-3.36 l 11,11 11,-11 a 2.36,2.36 0 0 1 1.64,-0.68 z\" inkscape:connector-curvature=\"0\" style=\"fill:#484f60\" /></svg>",
|
|
2058
2066
|
"arrow_scroll_left": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M33.68,37.64a2.37,2.37,0,0,1-4,1.67L17,26.67a2.37,2.37,0,0,1,0-3.34L29.64,10.7A2.36,2.36,0,1,1,33,14L22,25,33,36A2.36,2.36,0,0,1,33.68,37.64Z\" fill=\"#484f60\"/></svg>",
|
|
2067
|
+
"bars_filter": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><path fill=\"#494f61\" d=\"M264 392H183.1C170.8 392 160 402.8 160 415.1C160 429.2 170.8 440 183.1 440h80C277.2 440 288 429.2 288 416C288 402.8 277.2 392 264 392zM424 72H23.1C10.8 72 0 82.8 0 95.1S10.8 120 23.1 120H424c13.2 0 24-10.8 24-23.1S437.2 72 424 72zM360 232H87.1C74.8 232 64 242.8 64 255.1C64 269.2 74.8 280 87.1 280h272C373.2 280 384 269.2 384 256C384 242.8 373.2 232 360 232z\"/></svg>",
|
|
2059
2068
|
"camera": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M35,18l-3-4H22l-3,4H16V36H40V18ZM24,16h6v2H24Zm2.5,18A6.5,6.5,0,1,1,33,27.5,6.51,6.51,0,0,1,26.5,34ZM38,22H36V20h2Z\" fill=\"#484f60\"/><rect x=\"10\" y=\"18\" width=\"5\" height=\"18\" fill=\"#484f60\"/><rect x=\"11\" y=\"15\" width=\"3\" height=\"2\" fill=\"#484f60\"/><path d=\"M26.5,32A4.5,4.5,0,1,1,31,27.5,4.51,4.51,0,0,1,26.5,32Z\" fill=\"#484f60\"/></svg>",
|
|
2069
|
+
"cancel": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><g ><g><polygon points=\"26 25.16 20.45 25.16 4 4.84 9.55 4.84 26 25.16\" fill=\"#484f60\"/><polygon points=\"4 25.16 9.55 25.16 26 4.84 20.45 4.84 4 25.16\" fill=\"#484f60\"/></g></g></svg>",
|
|
2060
2070
|
"check": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\" version=\"1.1\" sodipodi:docname=\"check.svg\" inkscape:version=\"0.92.4 (5da689c313, 2019-01-14)\"><metadata ><rdf:RDF><cc:Work rdf:about=\"\"><dc:format>image/svg+xml</dc:format><dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs /><sodipodi:namedview pagecolor=\"#ffffff\" bordercolor=\"#666666\" borderopacity=\"1\" objecttolerance=\"10\" gridtolerance=\"10\" guidetolerance=\"10\" inkscape:pageopacity=\"0\" inkscape:pageshadow=\"2\" inkscape:window-width=\"1920\" inkscape:window-height=\"1017\" showgr inkscape:zoom=\"9.44\" inkscape:cx=\"48.888969\" inkscape:cy=\"22.682813\" inkscape:window-x=\"-8\" inkscape:window-y=\"-8\" inkscape:window-maximized=\"1\" inkscape:current-layer=\"svg12\" /><path inkscape:connector-curvature=\"0\" d=\"m 11.438914,26.621633 c -0.316818,0.369021 -0.470979,0.838793 -0.433349,1.324347 0.03763,0.485552 0.26098,0.927404 0.631209,1.243014 l 8.986229,7.703294 c 0.333812,0.285263 0.74774,0.438212 1.182303,0.438212 0.05341,0 0.108033,-0.0025 0.162657,-0.0073 0.491616,-0.0437 0.934676,-0.277978 1.247852,-0.657923 L 38.585752,17.958158 c 0.308322,-0.376304 0.452771,-0.849718 0.40543,-1.334057 -0.04856,-0.484338 -0.280402,-0.921336 -0.656701,-1.230877 l -2.813733,-2.311231 c -0.77566,-0.636074 -1.923974,-0.524396 -2.562466,0.251275 L 21.129184,27.731121 16.375695,23.658547 c -0.762306,-0.65064 -1.913049,-0.564455 -2.56732,0.197864 z\" style=\"fill:#3E7EFF;fill-opacity:1;stroke-width:1.21387255\" /></svg>",
|
|
2061
2071
|
"close": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 29.258688 30.000004\" version=\"1.1\" sodipodi:docname=\"close.svg\" inkscape:version=\"0.92.4 (5da689c313, 2019-01-14)\" width=\"29.258688\" height=\"30.000004\"><metadata ><rdf:RDF><cc:Work rdf:about=\"\"><dc:format>image/svg+xml</dc:format><dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs /><sodipodi:namedview pagecolor=\"#ffffff\" bordercolor=\"#666666\" borderopacity=\"1\" objecttolerance=\"10\" gridtolerance=\"10\" guidetolerance=\"10\" inkscape:pageopacity=\"0\" inkscape:pageshadow=\"2\" inkscape:window-width=\"1920\" inkscape:window-height=\"1017\" showgr inkscape:zoom=\"26.700352\" inkscape:cx=\"19.112\" inkscape:cy=\"15.500206\" inkscape:window-x=\"-8\" inkscape:window-y=\"-8\" inkscape:window-maximized=\"1\" inkscape:current-layer=\"svg4\" fit-margin-top=\"0\" fit-margin-left=\"0\" fit-margin-right=\"0\" fit-margin-bottom=\"0\" /><path d=\"M 27.002162,0.10711058 A 2.3051231,2.3051231 0 0 1 28.626448,3.9976138 L 16.332458,16.330509 a 2.3051231,2.3051231 0 0 1 -3.248571,0 L 0.79962417,4.0365189 A 2.2953969,2.2953969 0 1 1 4.0092893,0.76849618 L 14.708173,11.46738 25.407057,0.76849618 a 2.2953969,2.2953969 0 0 1 1.595105,-0.6613856 z\" inkscape:connector-curvature=\"0\" style=\"fill:#484f60;stroke-width:0.97262579\" /><path d=\"m 27.002162,29.892891 a 2.3051231,2.3051231 0 0 0 1.624285,-3.890503 L 16.332458,13.669493 a 2.3051231,2.3051231 0 0 0 -3.248571,0 L 0.79962424,25.963483 A 2.2953968,2.2953968 0 1 0 4.0092893,29.231505 L 14.708173,18.532622 25.407057,29.231505 a 2.2953968,2.2953968 0 0 0 1.595105,0.661386 z\" inkscape:connector-curvature=\"0\" style=\"fill:#484f60;stroke-width:0.97262579\" /></svg>",
|
|
2062
2072
|
"eye": "<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" x=\"0px\" y=\"0px\" viewBox=\"0 0 50.000001 50.000001\" sodipodi:docname=\"eye.svg\" width=\"50\" height=\"50\" inkscape:version=\"0.92.4 (5da689c313, 2019-01-14)\"><metadata ><rdf:RDF><cc:Work rdf:about=\"\"><dc:format>image/svg+xml</dc:format><dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs /><sodipodi:namedview pagecolor=\"#ffffff\" bordercolor=\"#666666\" borderopacity=\"1\" objecttolerance=\"10\" gridtolerance=\"10\" guidetolerance=\"10\" inkscape:pageopacity=\"0\" inkscape:pageshadow=\"2\" inkscape:window-width=\"1920\" inkscape:window-height=\"1017\" showgr inkscape:zoom=\"1.8437536\" inkscape:cx=\"57.260141\" inkscape:cy=\"-26.955722\" inkscape:window-x=\"-8\" inkscape:window-y=\"-8\" inkscape:window-maximized=\"1\" inkscape:current-layer=\"Capa_1\" /><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><path d=\"M 508.745,246.041 C 504.171,239.784 395.188,92.835 255.997,92.835 c -139.191,0 -248.179,146.949 -252.748,153.2 -4.332,5.936 -4.332,13.987 0,19.923 4.569,6.257 113.557,153.206 252.748,153.206 139.191,0 248.174,-146.95 252.748,-153.201 4.338,-5.935 4.338,-13.992 0,-19.922 z M 255.997,385.406 c -102.529,0 -191.33,-97.533 -217.617,-129.418 26.253,-31.913 114.868,-129.395 217.617,-129.395 102.524,0 191.319,97.516 217.617,129.418 -26.253,31.912 -114.868,129.395 -217.617,129.395 z\" inkscape:connector-curvature=\"0\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><path d=\"m 255.997,154.725 c -55.842,0 -101.275,45.433 -101.275,101.275 0,55.842 45.433,101.275 101.275,101.275 55.842,0 101.275,-45.433 101.275,-101.275 0,-55.842 -45.433,-101.275 -101.275,-101.275 z m 0,168.791 c -37.23,0 -67.516,-30.287 -67.516,-67.516 0,-37.229 30.287,-67.516 67.516,-67.516 37.229,0 67.516,30.287 67.516,67.516 0,37.229 -30.286,67.516 -67.516,67.516 z\" inkscape:connector-curvature=\"0\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"></g><g transform=\"matrix(0.06658223,0,0,0.06658311,7.955,7.9547573)\" style=\"fill:#484f60;fill-opacity:1\"></g></svg>",
|
|
@@ -2071,7 +2081,8 @@ const IconSvg = {
|
|
|
2071
2081
|
"sync_alt": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M370.72 133.28C339.458 104.008 298.888 87.962 255.848 88c-77.458.068-144.328 53.178-162.791 126.85-1.344 5.363-6.122 9.15-11.651 9.15H24.103c-7.498 0-13.194-6.807-11.807-14.176C33.933 94.924 134.813 8 256 8c66.448 0 126.791 26.136 171.315 68.685L463.03 40.97C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.749zM32 296h134.059c21.382 0 32.09 25.851 16.971 40.971l-41.75 41.75c31.262 29.273 71.835 45.319 114.876 45.28 77.418-.07 144.315-53.144 162.787-126.849 1.344-5.363 6.122-9.15 11.651-9.15h57.304c7.498 0 13.194 6.807 11.807 14.176C478.067 417.076 377.187 504 256 504c-66.448 0-126.791-26.136-171.315-68.685L48.97 471.03C33.851 486.149 8 475.441 8 454.059V320c0-13.255 10.745-24 24-24z\"/></svg>",
|
|
2072
2082
|
"three_d": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M16.08,30.77a4.85,4.85,0,0,1-3-.8,4,4,0,0,0-2.49-.15,6.21,6.21,0,0,0,2.53,1.09,12.84,12.84,0,0,0,2.93-.14\" fill=\"#484f60\" opacity=\"0.5\"/><path d=\"M14.27,19.68A4.71,4.71,0,0,0,11,20.78l2,.14c.31,0,1.2-.69,1.55-.81a3.88,3.88,0,0,1,1.65-.24l-1.94-.19\" fill=\"#484f60\" opacity=\"0.5\"/><path d=\"M21.64,28.79a4.13,4.13,0,0,0-3.1-4c.89-.7,1.77-1.09,2.26-2.21a5.12,5.12,0,0,0,.35-1.9c-.13-3.24-2.64-3.73-5.29-4.15a4,4,0,0,1,3.44,3.7,4.61,4.61,0,0,1-.83,3.12,9.7,9.7,0,0,1-1.82,1.43,4.3,4.3,0,0,1,3.17,4.34,4.9,4.9,0,0,1-4.21,5c2.09-.34,4.37-.64,5.46-2.69a5,5,0,0,0,.57-2.58\" fill=\"#484f60\" opacity=\"0.5\"/><path d=\"M28.44,18.88l.38-.07.48-.06.57,0h.75l.36,0,.35.05c-.2,0-.42-.08-1.57-.25l-.36-.05-.37,0h-.77l-.59,0-.49.07a3.08,3.08,0,0,0-.39.07l-.3.07V31.38H27l.13,0h1.63l.21,0h.2l.2,0h.05l1.55-.24h0l-.34.05-.33,0H29.12l-.36,0-.33,0a1.15,1.15,0,0,1-.28-.06V19Z\" fill=\"#484f60\" opacity=\"0.5\"/><path d=\"M40,24.34a9,9,0,0,0-3-7.1,11.06,11.06,0,0,0-4.47-1.86c4.38,1.13,6.23,5.31,6.13,9.54-.12,4.5-2.27,8.55-6.86,9.66,2.59-.63,5-1.41,6.52-3.78A12,12,0,0,0,40,24.34\" fill=\"#484f60\" opacity=\"0.5\"/><path d=\"M35.38,16.71A7.32,7.32,0,0,1,36.74,18a7.82,7.82,0,0,1,1,1.73,10.32,10.32,0,0,1,.68,2.16,13.86,13.86,0,0,1,.23,2.59,15,15,0,0,1-.25,2.78,11.39,11.39,0,0,1-.68,2.31,9.34,9.34,0,0,1-1,1.85,8.23,8.23,0,0,1-1.28,1.4,7.76,7.76,0,0,1-1.7,1.07,9.07,9.07,0,0,1-2,.69,13.36,13.36,0,0,1-2.26.33,18.25,18.25,0,0,1-2.45,0c-.5,0-1-.08-1.39-.12l-1.17-.14c-.36,0-.68-.11-1-.16l-.77-.15V15.86c.34-.09.71-.18,1.09-.26s.81-.15,1.24-.21.88-.12,1.34-.17.95-.1,1.44-.13a20.57,20.57,0,0,1,2.33,0,12,12,0,0,1,2,.24,8.24,8.24,0,0,1,1.72.55A7.1,7.1,0,0,1,35.38,16.71ZM27.92,31.53a6.53,6.53,0,0,0,2.46-.32A4.81,4.81,0,0,0,32.32,30a5.82,5.82,0,0,0,1.27-2.18A10.11,10.11,0,0,0,34,24.67a8.65,8.65,0,0,0-.42-2.85,4.94,4.94,0,0,0-1.18-2,4.45,4.45,0,0,0-1.83-1.11,6.55,6.55,0,0,0-2.35-.28l-.59,0-.49.07a3.08,3.08,0,0,0-.39.07l-.3.07V31.38a2.11,2.11,0,0,0,.29.06l.34,0,.37,0,.36,0h.07\" fill=\"#484f60\"/><path d=\"M14.57,16.47a5.49,5.49,0,0,1,2,.22,3.89,3.89,0,0,1,1.49.84A3.66,3.66,0,0,1,19,18.89a4.29,4.29,0,0,1,.33,1.7,5.29,5.29,0,0,1-.17,1.34,4.29,4.29,0,0,1-.5,1.16,4.17,4.17,0,0,1-.84.94,4.88,4.88,0,0,1-1.16.69v.05a3.7,3.7,0,0,1,1.22.5,4,4,0,0,1,1,.92,4.61,4.61,0,0,1,.69,1.3,5.24,5.24,0,0,1,.25,1.62,5.36,5.36,0,0,1-.42,2.15,4.44,4.44,0,0,1-1.2,1.64,4.84,4.84,0,0,1-1.86,1,6.78,6.78,0,0,1-2.39.23,7.69,7.69,0,0,1-2.36-.52,6.89,6.89,0,0,1-.9-.42,4.36,4.36,0,0,1-.69-.47l.62-2.9a4.12,4.12,0,0,0,.53.34,6.21,6.21,0,0,0,.73.36,5.69,5.69,0,0,0,.88.31,5.19,5.19,0,0,0,1,.15,3.11,3.11,0,0,0,1.1-.13,2,2,0,0,0,.8-.45,1.93,1.93,0,0,0,.49-.71,2.35,2.35,0,0,0,.17-.89A2.48,2.48,0,0,0,16,27.67a2.23,2.23,0,0,0-.63-.79,2.9,2.9,0,0,0-.89-.46,3.5,3.5,0,0,0-1-.15H12.2V23.44l1.23,0a3.44,3.44,0,0,0,.83-.11,2.83,2.83,0,0,0,.79-.36,2,2,0,0,0,.6-.62,2,2,0,0,0,.23-.94,1.8,1.8,0,0,0-.13-.71,1.36,1.36,0,0,0-.38-.56,1.58,1.58,0,0,0-.64-.35,2.79,2.79,0,0,0-.9-.1,4.07,4.07,0,0,0-.84.13c-.27.08-.53.18-.78.28a6.56,6.56,0,0,0-1.17.7L10.42,18a5,5,0,0,1,.72-.51,7.82,7.82,0,0,1,2.12-.82A8,8,0,0,1,14.57,16.47Z\" fill=\"#484f60\"/></svg>",
|
|
2073
2083
|
"tile_view": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><g ><g><rect x=\"16\" y=\"2.67\" width=\"14\" height=\"7\" fill=\"#484f60\"/><rect y=\"2.67\" width=\"14\" height=\"7\" fill=\"#484f60\"/><rect y=\"11.67\" width=\"14\" height=\"7\" fill=\"#484f60\"/><rect x=\"16\" y=\"11.67\" width=\"14\" height=\"7\" fill=\"#484f60\"/><rect y=\"20.67\" width=\"14\" height=\"7\" fill=\"#484f60\"/><rect x=\"16\" y=\"20.67\" width=\"14\" height=\"7\" fill=\"#484f60\"/></g></g></svg>",
|
|
2074
|
-
"truck": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\" version=\"1.1\" sodipodi:docname=\"truck.svg\" inkscape:version=\"0.92.4 (5da689c313, 2019-01-14)\"><metadata ><rdf:RDF><cc:Work rdf:about=\"\"><dc:format>image/svg+xml</dc:format><dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs /><sodipodi:namedview pagecolor=\"#ffffff\" bordercolor=\"#666666\" borderopacity=\"1\" objecttolerance=\"10\" gridtolerance=\"10\" guidetolerance=\"10\" inkscape:pageopacity=\"0\" inkscape:pageshadow=\"2\" inkscape:window-width=\"1920\" inkscape:window-height=\"1017\" showgr inkscape:zoom=\"9.44\" inkscape:cx=\"31.555563\" inkscape:cy=\"21.585628\" inkscape:window-x=\"-8\" inkscape:window-y=\"-8\" inkscape:window-maximized=\"1\" inkscape:current-layer=\"svg8\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><path inkscape:connector-curvature=\"0\" d=\"m 119.467,337.067 c -28.237,0 -51.2,22.963 -51.2,51.2 0,28.237 22.963,51.2 51.2,51.2 28.237,0 51.2,-22.963 51.2,-51.2 0,-28.237 -22.964,-51.2 -51.2,-51.2 z m 0,85.333 c -18.825,0 -34.133,-15.309 -34.133,-34.133 0,-18.825 15.309,-34.133 34.133,-34.133 18.824,0 34.133,15.309 34.133,34.133 0,18.824 -15.309,34.133 -34.133,34.133 z\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><path inkscape:connector-curvature=\"0\" d=\"m 409.6,337.067 c -28.237,0 -51.2,22.963 -51.2,51.2 0,28.237 22.963,51.2 51.2,51.2 28.237,0 51.2,-22.963 51.2,-51.2 0,-28.237 -22.963,-51.2 -51.2,-51.2 z m 0,85.333 c -18.825,0 -34.133,-15.309 -34.133,-34.133 0,-18.825 15.309,-34.133 34.133,-34.133 18.825,0 34.133,15.309 34.133,34.133 0,18.824 -15.308,34.133 -34.133,34.133 z\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><path inkscape:connector-curvature=\"0\" d=\"m 510.643,289.784 -76.8,-119.467 c -1.57,-2.441 -4.275,-3.917 -7.177,-3.917 H 332.8 c -4.719,0 -8.533,3.823 -8.533,8.533 v 213.333 c 0,4.719 3.814,8.533 8.533,8.533 h 34.133 v -17.067 h -25.6 V 183.467 h 80.674 l 72.926,113.442 v 82.825 H 452.266 V 396.8 h 51.2 c 4.719,0 8.533,-3.814 8.533,-8.533 V 294.4 c 10e-4,-1.63 -0.468,-3.243 -1.356,-4.616 z\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><path inkscape:connector-curvature=\"0\" d=\"M 375.467,277.333 V 217.6 h 68.267 v -17.067 h -76.8 c -4.719,0 -8.533,3.823 -8.533,8.533 v 76.8 c 0,4.719 3.814,8.533 8.533,8.533 h 128 V 277.332 H 375.467 Z\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><path inkscape:connector-curvature=\"0\" d=\"M 332.8,106.667 H 8.533 C 3.823,106.667 0,110.49 0,115.2 v 273.067 c 0,4.719 3.823,8.533 8.533,8.533 H 76.8 V 379.733 H 17.067 v -256 h 307.2 v 256 H 162.133 V 396.8 H 332.8 c 4.719,0 8.533,-3.814 8.533,-8.533 V 115.2 c 0,-4.71 -3.814,-8.533 -8.533,-8.533 z\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><rect x=\"8.533\" y=\"345.60001\" width=\"51.200001\" height=\"17.066999\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><rect x=\"179.2\" y=\"345.60001\" width=\"145.067\" height=\"17.066999\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><rect x=\"469.33301\" y=\"345.60001\" width=\"34.132999\" height=\"17.066999\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><rect x=\"34.132999\" y=\"140.8\" width=\"298.66699\" height=\"17.066999\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><rect x=\"110.933\" y=\"379.733\" width=\"17.066999\" height=\"17.066999\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><rect x=\"401.06699\" y=\"379.733\" width=\"17.066999\" height=\"17.066999\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /></svg>"
|
|
2084
|
+
"truck": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\" version=\"1.1\" sodipodi:docname=\"truck.svg\" inkscape:version=\"0.92.4 (5da689c313, 2019-01-14)\"><metadata ><rdf:RDF><cc:Work rdf:about=\"\"><dc:format>image/svg+xml</dc:format><dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs /><sodipodi:namedview pagecolor=\"#ffffff\" bordercolor=\"#666666\" borderopacity=\"1\" objecttolerance=\"10\" gridtolerance=\"10\" guidetolerance=\"10\" inkscape:pageopacity=\"0\" inkscape:pageshadow=\"2\" inkscape:window-width=\"1920\" inkscape:window-height=\"1017\" showgr inkscape:zoom=\"9.44\" inkscape:cx=\"31.555563\" inkscape:cy=\"21.585628\" inkscape:window-x=\"-8\" inkscape:window-y=\"-8\" inkscape:window-maximized=\"1\" inkscape:current-layer=\"svg8\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06827145,0,0,0.06827064,7.670918,5.1378096)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><path inkscape:connector-curvature=\"0\" d=\"m 119.467,337.067 c -28.237,0 -51.2,22.963 -51.2,51.2 0,28.237 22.963,51.2 51.2,51.2 28.237,0 51.2,-22.963 51.2,-51.2 0,-28.237 -22.964,-51.2 -51.2,-51.2 z m 0,85.333 c -18.825,0 -34.133,-15.309 -34.133,-34.133 0,-18.825 15.309,-34.133 34.133,-34.133 18.824,0 34.133,15.309 34.133,34.133 0,18.824 -15.309,34.133 -34.133,34.133 z\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><path inkscape:connector-curvature=\"0\" d=\"m 409.6,337.067 c -28.237,0 -51.2,22.963 -51.2,51.2 0,28.237 22.963,51.2 51.2,51.2 28.237,0 51.2,-22.963 51.2,-51.2 0,-28.237 -22.963,-51.2 -51.2,-51.2 z m 0,85.333 c -18.825,0 -34.133,-15.309 -34.133,-34.133 0,-18.825 15.309,-34.133 34.133,-34.133 18.825,0 34.133,15.309 34.133,34.133 0,18.824 -15.308,34.133 -34.133,34.133 z\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><path inkscape:connector-curvature=\"0\" d=\"m 510.643,289.784 -76.8,-119.467 c -1.57,-2.441 -4.275,-3.917 -7.177,-3.917 H 332.8 c -4.719,0 -8.533,3.823 -8.533,8.533 v 213.333 c 0,4.719 3.814,8.533 8.533,8.533 h 34.133 v -17.067 h -25.6 V 183.467 h 80.674 l 72.926,113.442 v 82.825 H 452.266 V 396.8 h 51.2 c 4.719,0 8.533,-3.814 8.533,-8.533 V 294.4 c 10e-4,-1.63 -0.468,-3.243 -1.356,-4.616 z\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><path inkscape:connector-curvature=\"0\" d=\"M 375.467,277.333 V 217.6 h 68.267 v -17.067 h -76.8 c -4.719,0 -8.533,3.823 -8.533,8.533 v 76.8 c 0,4.719 3.814,8.533 8.533,8.533 h 128 V 277.332 H 375.467 Z\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><path inkscape:connector-curvature=\"0\" d=\"M 332.8,106.667 H 8.533 C 3.823,106.667 0,110.49 0,115.2 v 273.067 c 0,4.719 3.823,8.533 8.533,8.533 H 76.8 V 379.733 H 17.067 v -256 h 307.2 v 256 H 162.133 V 396.8 H 332.8 c 4.719,0 8.533,-3.814 8.533,-8.533 V 115.2 c 0,-4.71 -3.814,-8.533 -8.533,-8.533 z\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><rect x=\"8.533\" y=\"345.60001\" width=\"51.200001\" height=\"17.066999\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><rect x=\"179.2\" y=\"345.60001\" width=\"145.067\" height=\"17.066999\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><rect x=\"469.33301\" y=\"345.60001\" width=\"34.132999\" height=\"17.066999\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><rect x=\"34.132999\" y=\"140.8\" width=\"298.66699\" height=\"17.066999\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><rect x=\"110.933\" y=\"379.733\" width=\"17.066999\" height=\"17.066999\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\"><g style=\"fill:#484f60;fill-opacity:1\"><rect x=\"401.06699\" y=\"379.733\" width=\"17.066999\" height=\"17.066999\" style=\"fill:#484f60;fill-opacity:1\" /></g></g><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /><g transform=\"matrix(0.06813214,0,0,0.06813214,7.6,6.2856989)\" style=\"fill:#484f60;fill-opacity:1\" /></svg>",
|
|
2085
|
+
"web_catalog": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><g ><g><path d=\"M30,4.2c0-1.66-1.34-3-3-3H10.35V7.65H30v-3.45Z\" fill=\"#484f60\"/><path d=\"M3,1.2C1.34,1.2,0,2.54,0,4.2v3.45H8.85V1.2H3Z\" fill=\"#484f60\"/><path d=\"M0,9.15V25.8c0,1.66,1.34,3,3,3H27c1.66,0,3-1.34,3-3V9.15H0Zm7.2,10.45H3.6v-1.2h3.6v1.2Zm0-3.2H3.6v-1.2h3.6v1.2Zm0-3.2H3.6v-1.2h3.6v1.2Zm7.37,12.3c0,.28-.22,.5-.5,.5h-3c-.28,0-.5-.22-.5-.5v-5c0-.28,.22-.5,.5-.5h3c.28,0,.5,.22,.5,.5v5Zm0-8c0,.28-.22,.5-.5,.5h-3c-.28,0-.5-.22-.5-.5v-5c0-.28,.22-.5,.5-.5h3c.28,0,.5,.22,.5,.5v5Zm6,8c0,.28-.22,.5-.5,.5h-3c-.28,0-.5-.22-.5-.5v-5c0-.28,.22-.5,.5-.5h3c.28,0,.5,.22,.5,.5v5Zm0-8c0,.28-.22,.5-.5,.5h-3c-.28,0-.5-.22-.5-.5v-5c0-.28,.22-.5,.5-.5h3c.28,0,.5,.22,.5,.5v5Zm6,8c0,.28-.22,.5-.5,.5h-3c-.28,0-.5-.22-.5-.5v-5c0-.28,.22-.5,.5-.5h3c.28,0,.5,.22,.5,.5v5Zm0-8c0,.28-.22,.5-.5,.5h-3c-.28,0-.5-.22-.5-.5v-5c0-.28,.22-.5,.5-.5h3c.28,0,.5,.22,.5,.5v5Z\" fill=\"#484f60\"/></g></g></svg>"
|
|
2075
2086
|
};
|
|
2076
2087
|
|
|
2077
2088
|
class IconCacheService {
|
|
@@ -2326,14 +2337,17 @@ CatalogFilterCategoriesModule.decorators = [
|
|
|
2326
2337
|
];
|
|
2327
2338
|
|
|
2328
2339
|
class CatalogFilterContentGeneralComponent {
|
|
2329
|
-
constructor(catalogSearchService, filterService, iconCache, _catalogConnectorService) {
|
|
2340
|
+
constructor(catalogSearchService, filterService, iconCache, _catalogConnectorService, _adapterService) {
|
|
2330
2341
|
this.catalogSearchService = catalogSearchService;
|
|
2331
2342
|
this.filterService = filterService;
|
|
2332
2343
|
this.iconCache = iconCache;
|
|
2333
2344
|
this._catalogConnectorService = _catalogConnectorService;
|
|
2345
|
+
this._adapterService = _adapterService;
|
|
2346
|
+
this.modes = FilterItemMode;
|
|
2334
2347
|
this.icons = IconEnum;
|
|
2335
2348
|
this._min = 0;
|
|
2336
2349
|
this._max = 100000;
|
|
2350
|
+
this._subs = [];
|
|
2337
2351
|
this.supplierDropdownFields = { text: "description", value: "storeGroupId" };
|
|
2338
2352
|
this.getRetail = (barcodeFilter) => __awaiter(this, void 0, void 0, function* () {
|
|
2339
2353
|
const request = new ArticleExtendedRequest();
|
|
@@ -2347,6 +2361,16 @@ class CatalogFilterContentGeneralComponent {
|
|
|
2347
2361
|
return true;
|
|
2348
2362
|
}
|
|
2349
2363
|
ngOnInit() {
|
|
2364
|
+
this._subs.push(this._adapterService.controllerInitialized.subscribe((initialized) => {
|
|
2365
|
+
if (initialized) {
|
|
2366
|
+
this._setCollections();
|
|
2367
|
+
}
|
|
2368
|
+
}));
|
|
2369
|
+
}
|
|
2370
|
+
ngOnDestroy() {
|
|
2371
|
+
this._subs.forEach(s => s.unsubscribe());
|
|
2372
|
+
}
|
|
2373
|
+
_setCollections() {
|
|
2350
2374
|
this._setStoreGroups();
|
|
2351
2375
|
this._setInOutCollection();
|
|
2352
2376
|
this._setArticleTypes();
|
|
@@ -2389,11 +2413,13 @@ class CatalogFilterContentGeneralComponent {
|
|
|
2389
2413
|
_setPriceList() {
|
|
2390
2414
|
let tempPriceListsSalesCollection = [];
|
|
2391
2415
|
this._catalogConnectorService.getPriceLists().then((priceLists) => {
|
|
2392
|
-
priceLists.
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2416
|
+
if (priceLists && Array.isArray(priceLists)) {
|
|
2417
|
+
priceLists.forEach((list) => {
|
|
2418
|
+
if (list.type.indexOf("I") != -1) {
|
|
2419
|
+
tempPriceListsSalesCollection.push(list);
|
|
2420
|
+
}
|
|
2421
|
+
});
|
|
2422
|
+
}
|
|
2397
2423
|
this.priceListsSalesCollection = this.filterService.createFilterSelectionsCollection(tempPriceListsSalesCollection, "code", "description");
|
|
2398
2424
|
});
|
|
2399
2425
|
}
|
|
@@ -2647,7 +2673,7 @@ CatalogFilterContentGeneralComponent.decorators = [
|
|
|
2647
2673
|
<div class="filter-item-wrapper">
|
|
2648
2674
|
<co-filter-item [placeholder]="'PRICELIST_SALES' | localize"
|
|
2649
2675
|
[expanded]="true"
|
|
2650
|
-
[
|
|
2676
|
+
[mode]="modes.SingleSelectList"
|
|
2651
2677
|
[collection]="priceListsSalesCollection"
|
|
2652
2678
|
(collectionChange)="handleSingleSelectChange('pricelistRetail', $event)"
|
|
2653
2679
|
>
|
|
@@ -2656,7 +2682,7 @@ CatalogFilterContentGeneralComponent.decorators = [
|
|
|
2656
2682
|
<div class="filter-item-wrapper">
|
|
2657
2683
|
<co-filter-item [placeholder]="'CATEGORY' | localize"
|
|
2658
2684
|
[expanded]="true"
|
|
2659
|
-
[
|
|
2685
|
+
[mode]="modes.SingleSelectList"
|
|
2660
2686
|
[collection]="categoryCollection"
|
|
2661
2687
|
(collectionChange)="handleSingleSelectChange('category', $event)"
|
|
2662
2688
|
>
|
|
@@ -2684,7 +2710,8 @@ CatalogFilterContentGeneralComponent.ctorParameters = () => [
|
|
|
2684
2710
|
{ type: CatalogSearchService },
|
|
2685
2711
|
{ type: CatalogFilterService },
|
|
2686
2712
|
{ type: IconCacheService },
|
|
2687
|
-
{ type: CatalogConnectorService }
|
|
2713
|
+
{ type: CatalogConnectorService },
|
|
2714
|
+
{ type: CatalogConnectorAdapterService }
|
|
2688
2715
|
];
|
|
2689
2716
|
CatalogFilterContentGeneralComponent.propDecorators = {
|
|
2690
2717
|
showClass: [{ type: HostBinding, args: ['class.co-catalog-filter',] }]
|
|
@@ -2712,17 +2739,30 @@ CatalogFilterContentGeneralModule.decorators = [
|
|
|
2712
2739
|
];
|
|
2713
2740
|
|
|
2714
2741
|
class CatalogFilterContentPurchaseComponent {
|
|
2715
|
-
constructor(catalogSearchService, iconCache, _catalogConnectorService,
|
|
2742
|
+
constructor(catalogSearchService, iconCache, filterService, _catalogConnectorService, _adapterService) {
|
|
2716
2743
|
this.catalogSearchService = catalogSearchService;
|
|
2717
2744
|
this.iconCache = iconCache;
|
|
2718
|
-
this._catalogConnectorService = _catalogConnectorService;
|
|
2719
2745
|
this.filterService = filterService;
|
|
2746
|
+
this._catalogConnectorService = _catalogConnectorService;
|
|
2747
|
+
this._adapterService = _adapterService;
|
|
2748
|
+
this.modes = FilterItemMode;
|
|
2720
2749
|
this.icons = IconEnum;
|
|
2750
|
+
this._subs = [];
|
|
2721
2751
|
}
|
|
2722
2752
|
showClass() {
|
|
2723
2753
|
return true;
|
|
2724
2754
|
}
|
|
2725
2755
|
ngOnInit() {
|
|
2756
|
+
this._subs.push(this._adapterService.controllerInitialized.subscribe((initialized) => {
|
|
2757
|
+
if (initialized) {
|
|
2758
|
+
this._setCollections();
|
|
2759
|
+
}
|
|
2760
|
+
}));
|
|
2761
|
+
}
|
|
2762
|
+
ngOnDestroy() {
|
|
2763
|
+
this._subs.forEach(s => s.unsubscribe());
|
|
2764
|
+
}
|
|
2765
|
+
_setCollections() {
|
|
2726
2766
|
this._setSuppliers();
|
|
2727
2767
|
this._setPriceList();
|
|
2728
2768
|
}
|
|
@@ -2734,11 +2774,13 @@ class CatalogFilterContentPurchaseComponent {
|
|
|
2734
2774
|
_setPriceList() {
|
|
2735
2775
|
let tempPriceListsPurchCollection = [];
|
|
2736
2776
|
this._catalogConnectorService.getPriceLists().then((priceLists) => {
|
|
2737
|
-
priceLists.
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2777
|
+
if (priceLists && Array.isArray(priceLists)) {
|
|
2778
|
+
priceLists.forEach((list) => {
|
|
2779
|
+
if (list.type.indexOf("I") > -1) {
|
|
2780
|
+
tempPriceListsPurchCollection.push(list);
|
|
2781
|
+
}
|
|
2782
|
+
});
|
|
2783
|
+
}
|
|
2742
2784
|
this.priceListsPurchCollection = this.filterService.createFilterSelectionsCollection(tempPriceListsPurchCollection, "code", "description");
|
|
2743
2785
|
});
|
|
2744
2786
|
}
|
|
@@ -2783,7 +2825,7 @@ CatalogFilterContentPurchaseComponent.decorators = [
|
|
|
2783
2825
|
<co-filter-item [placeholder]="'PRICELIST_PURCHASE' | localize"
|
|
2784
2826
|
[expanded]="true"
|
|
2785
2827
|
[collection]="priceListsPurchCollection"
|
|
2786
|
-
[
|
|
2828
|
+
[mode]="modes.SingleSelectList"
|
|
2787
2829
|
(collectionChange)="handleSingleSelectChange('pricelistPurchase', $event)"
|
|
2788
2830
|
>
|
|
2789
2831
|
</co-filter-item>
|
|
@@ -2798,8 +2840,9 @@ CatalogFilterContentPurchaseComponent.decorators = [
|
|
|
2798
2840
|
CatalogFilterContentPurchaseComponent.ctorParameters = () => [
|
|
2799
2841
|
{ type: CatalogSearchService },
|
|
2800
2842
|
{ type: IconCacheService },
|
|
2843
|
+
{ type: CatalogFilterService },
|
|
2801
2844
|
{ type: CatalogConnectorService },
|
|
2802
|
-
{ type:
|
|
2845
|
+
{ type: CatalogConnectorAdapterService }
|
|
2803
2846
|
];
|
|
2804
2847
|
CatalogFilterContentPurchaseComponent.propDecorators = {
|
|
2805
2848
|
showClass: [{ type: HostBinding, args: ['class.co-catalog-filter',] }],
|
|
@@ -3095,7 +3138,8 @@ CatalogCategoriesModule.decorators = [
|
|
|
3095
3138
|
IconModule,
|
|
3096
3139
|
CatalogFilterModule,
|
|
3097
3140
|
ResponsiveTextModule,
|
|
3098
|
-
PipeModule
|
|
3141
|
+
PipeModule,
|
|
3142
|
+
OverlayModule
|
|
3099
3143
|
],
|
|
3100
3144
|
declarations: [
|
|
3101
3145
|
CatalogCategoriesComponent
|
|
@@ -3123,14 +3167,11 @@ CatalogEventService.decorators = [
|
|
|
3123
3167
|
];
|
|
3124
3168
|
|
|
3125
3169
|
class CatalogNavigationComponent {
|
|
3126
|
-
constructor(iconCache,
|
|
3127
|
-
/*
|
|
3128
|
-
public navigationService: CatalogNavigationService,
|
|
3129
|
-
*/
|
|
3130
|
-
catalogService, _appEventService) {
|
|
3170
|
+
constructor(iconCache, catalogService, _appEventService, _adapterService) {
|
|
3131
3171
|
this.iconCache = iconCache;
|
|
3132
3172
|
this.catalogService = catalogService;
|
|
3133
3173
|
this._appEventService = _appEventService;
|
|
3174
|
+
this._adapterService = _adapterService;
|
|
3134
3175
|
this.icons = IconEnum;
|
|
3135
3176
|
this.homeLabel = 'Home';
|
|
3136
3177
|
this.collectionLabel = 'Collection';
|
|
@@ -3147,6 +3188,7 @@ class CatalogNavigationComponent {
|
|
|
3147
3188
|
this.turnoverGroups = [];
|
|
3148
3189
|
this.showCollectionOverlay = false;
|
|
3149
3190
|
this.showExternalOverlay = false;
|
|
3191
|
+
this._subs = [];
|
|
3150
3192
|
}
|
|
3151
3193
|
get internalList() {
|
|
3152
3194
|
let list = [];
|
|
@@ -3169,7 +3211,14 @@ class CatalogNavigationComponent {
|
|
|
3169
3211
|
ngOnInit() {
|
|
3170
3212
|
this.categories.length = 0;
|
|
3171
3213
|
this.turnoverGroups.length = 0;
|
|
3172
|
-
this.
|
|
3214
|
+
this._subs.push(this._adapterService.controllerInitialized.subscribe((initialized) => {
|
|
3215
|
+
if (initialized) {
|
|
3216
|
+
this.getCategories();
|
|
3217
|
+
}
|
|
3218
|
+
}));
|
|
3219
|
+
}
|
|
3220
|
+
ngOnDestroy() {
|
|
3221
|
+
this._subs.forEach(s => s.unsubscribe());
|
|
3173
3222
|
}
|
|
3174
3223
|
getCategories() {
|
|
3175
3224
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3271,7 +3320,12 @@ CatalogNavigationComponent.decorators = [
|
|
|
3271
3320
|
overlayParent #collectionParentForOverlay="overlayParent">
|
|
3272
3321
|
<co-icon class="hamburger-icon" [iconData]="iconCache.getIcon(icons.Hamburger)"></co-icon>
|
|
3273
3322
|
<span [textContent]="collectionLabel"></span>
|
|
3274
|
-
<div class="navigation-overlay-wrapper"
|
|
3323
|
+
<div class="navigation-overlay-wrapper" *ngIf="showCollectionOverlay" @showHideOverlay
|
|
3324
|
+
[overlay]="collectionParentForOverlay"
|
|
3325
|
+
[inline]="true"
|
|
3326
|
+
[keepInView]="true"
|
|
3327
|
+
[view]="view"
|
|
3328
|
+
[fullSize]="true">
|
|
3275
3329
|
<div class="navigation-category-column-wrapper" *ngFor="let category of categories">
|
|
3276
3330
|
<div class="navigation-category" [textContent]="category.category" (click)="handleCategoryClick($event, category.category)"></div>
|
|
3277
3331
|
<div class="navigation-turnovergroup-wrapper">
|
|
@@ -3286,12 +3340,20 @@ CatalogNavigationComponent.decorators = [
|
|
|
3286
3340
|
overlayParent #externalParentForOverlay="overlayParent">
|
|
3287
3341
|
<co-icon class="hamburger-icon" [iconData]="iconCache.getIcon(icons.Ar)"></co-icon>
|
|
3288
3342
|
<span [textContent]="externalSourcesLabel"></span>
|
|
3289
|
-
<div class="navigation-overlay-wrapper"
|
|
3343
|
+
<div class="navigation-overlay-wrapper" *ngIf="showExternalOverlay" @showHideOverlay
|
|
3344
|
+
[overlay]="externalParentForOverlay"
|
|
3345
|
+
[inline]="true"
|
|
3346
|
+
[keepInView]="true"
|
|
3347
|
+
[view]="view"
|
|
3348
|
+
[fullSize]="true">
|
|
3290
3349
|
<co-catalog-external-sources (externalSourceClick)="handleExternalSourceClick($event)"></co-catalog-external-sources>
|
|
3291
3350
|
</div>
|
|
3292
3351
|
</div>
|
|
3293
3352
|
</div>
|
|
3294
3353
|
`,
|
|
3354
|
+
providers: [
|
|
3355
|
+
OverlayService
|
|
3356
|
+
],
|
|
3295
3357
|
animations: [
|
|
3296
3358
|
trigger('showHideOverlay', [
|
|
3297
3359
|
state('void', style({ height: '0' })),
|
|
@@ -3305,13 +3367,15 @@ CatalogNavigationComponent.decorators = [
|
|
|
3305
3367
|
CatalogNavigationComponent.ctorParameters = () => [
|
|
3306
3368
|
{ type: IconCacheService },
|
|
3307
3369
|
{ type: CatalogService },
|
|
3308
|
-
{ type: CatalogEventService }
|
|
3370
|
+
{ type: CatalogEventService },
|
|
3371
|
+
{ type: CatalogConnectorAdapterService }
|
|
3309
3372
|
];
|
|
3310
3373
|
CatalogNavigationComponent.propDecorators = {
|
|
3311
3374
|
homeLabel: [{ type: Input }],
|
|
3312
3375
|
collectionLabel: [{ type: Input }],
|
|
3313
3376
|
externalSourcesLabel: [{ type: Input }],
|
|
3314
3377
|
showTurnoverGroups: [{ type: Input }],
|
|
3378
|
+
view: [{ type: Input }],
|
|
3315
3379
|
homeClick: [{ type: Output }],
|
|
3316
3380
|
categoryClick: [{ type: Output }],
|
|
3317
3381
|
turnoverGroupClick: [{ type: Output }],
|
|
@@ -3412,23 +3476,119 @@ CatalogNavigationModule.decorators = [
|
|
|
3412
3476
|
},] }
|
|
3413
3477
|
];
|
|
3414
3478
|
|
|
3479
|
+
class CatalogNavigationService {
|
|
3480
|
+
constructor(_catalog, _iOne, _optionsService, _imageService) {
|
|
3481
|
+
this._catalog = _catalog;
|
|
3482
|
+
this._iOne = _iOne;
|
|
3483
|
+
this._optionsService = _optionsService;
|
|
3484
|
+
this._imageService = _imageService;
|
|
3485
|
+
this._subs = [];
|
|
3486
|
+
this._connectionMade = false;
|
|
3487
|
+
this._optionsSet = false;
|
|
3488
|
+
this.navigationCategories = [];
|
|
3489
|
+
this.allTurnoverGroups = [];
|
|
3490
|
+
// this._subs.push(
|
|
3491
|
+
// this._iOne.controllerInitialized.subscribe((initialized: boolean) => {
|
|
3492
|
+
// if (initialized) {
|
|
3493
|
+
// this._connectionMade = true;
|
|
3494
|
+
// this.getCategories();
|
|
3495
|
+
// }
|
|
3496
|
+
// }),
|
|
3497
|
+
// this._optionsService.parametersSet.subscribe((set: boolean) => {
|
|
3498
|
+
// if (set) {
|
|
3499
|
+
// this._optionsSet = true;
|
|
3500
|
+
// this.getCategories();
|
|
3501
|
+
// }
|
|
3502
|
+
// })
|
|
3503
|
+
// );
|
|
3504
|
+
}
|
|
3505
|
+
ngOnDestroy() {
|
|
3506
|
+
this._subs.forEach(s => s.unsubscribe());
|
|
3507
|
+
}
|
|
3508
|
+
setCategory(category) {
|
|
3509
|
+
// this._catalog.category = category;
|
|
3510
|
+
}
|
|
3511
|
+
setTurnoverGroup(turnoverGroup) {
|
|
3512
|
+
// this._catalog.turnoverGroup = turnoverGroup;
|
|
3513
|
+
}
|
|
3514
|
+
setExternalSourceUrl(url) {
|
|
3515
|
+
this._catalog.externalSourceUrl = url;
|
|
3516
|
+
}
|
|
3517
|
+
setIoneSourceUrl(url, ioneUrl, id, username, password) {
|
|
3518
|
+
this._catalog.ioneSourceUrl = url + '?url=' + ioneUrl + '&id=' + id + '&user=' + username + '&pass=' + password;
|
|
3519
|
+
}
|
|
3520
|
+
navigateToHome() {
|
|
3521
|
+
this._catalog.reset();
|
|
3522
|
+
}
|
|
3523
|
+
getCategories() {
|
|
3524
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3525
|
+
// if (this._optionsSet && this._connectionMade) {
|
|
3526
|
+
// try {
|
|
3527
|
+
// this._iOne.getArticleCategories(this._optionsService.parameters.publicationCode).then((cats: ArticleCategory[]) => {
|
|
3528
|
+
// this._catalog.sortTurnoverGroups(cats);
|
|
3529
|
+
// this.navigationCategories = cats;
|
|
3530
|
+
// this.navigationCategories.forEach(cat => this._imageService.getCategoryImage(cat));
|
|
3531
|
+
// this.getTurnoverGroupList();
|
|
3532
|
+
// });
|
|
3533
|
+
// } catch (e) {
|
|
3534
|
+
//
|
|
3535
|
+
// }
|
|
3536
|
+
// }
|
|
3537
|
+
});
|
|
3538
|
+
}
|
|
3539
|
+
getTurnoverGroupList() {
|
|
3540
|
+
this.navigationCategories.forEach((category) => {
|
|
3541
|
+
category.turnoverGroups.forEach(tog => this._imageService.getTurnoverGroupImage(tog));
|
|
3542
|
+
this.allTurnoverGroups.push(...category.turnoverGroups);
|
|
3543
|
+
});
|
|
3544
|
+
}
|
|
3545
|
+
}
|
|
3546
|
+
CatalogNavigationService.decorators = [
|
|
3547
|
+
{ type: Injectable }
|
|
3548
|
+
];
|
|
3549
|
+
CatalogNavigationService.ctorParameters = () => [
|
|
3550
|
+
{ type: CatalogService },
|
|
3551
|
+
{ type: CatalogConnectorService },
|
|
3552
|
+
{ type: CatalogOptionsService },
|
|
3553
|
+
{ type: CatalogImageService }
|
|
3554
|
+
];
|
|
3555
|
+
|
|
3415
3556
|
class CatalogSearchComponent {
|
|
3416
|
-
constructor(_catalogSearchService, _catalogEventService) {
|
|
3557
|
+
constructor(_settingsService, _catalogService, _catalogSearchService, _catalogEventService, iconCacheService) {
|
|
3558
|
+
this._settingsService = _settingsService;
|
|
3559
|
+
this._catalogService = _catalogService;
|
|
3417
3560
|
this._catalogSearchService = _catalogSearchService;
|
|
3418
3561
|
this._catalogEventService = _catalogEventService;
|
|
3562
|
+
this.iconCacheService = iconCacheService;
|
|
3563
|
+
this.icons = IconEnum;
|
|
3419
3564
|
this.showNavigation = false;
|
|
3420
3565
|
this.showLandingPage = false;
|
|
3421
3566
|
this.showFilter = false;
|
|
3422
3567
|
this.showViewModes = false;
|
|
3568
|
+
this.settingsChange = new EventEmitter();
|
|
3423
3569
|
this.onLookAtArticleButtonClick = new EventEmitter();
|
|
3424
3570
|
this.onArButtonClick = new EventEmitter();
|
|
3425
3571
|
this.onAddArticleButtonClick = new EventEmitter();
|
|
3426
3572
|
this.onArticleClick = new EventEmitter();
|
|
3427
3573
|
this.onStockDetailsClick = new EventEmitter();
|
|
3574
|
+
this.onExternalSourceClick = new EventEmitter();
|
|
3428
3575
|
this.mode = 'tile';
|
|
3429
3576
|
this.showCategories = true;
|
|
3430
3577
|
this._subs = [];
|
|
3431
3578
|
}
|
|
3579
|
+
set settings(value) {
|
|
3580
|
+
if (value) {
|
|
3581
|
+
let settings;
|
|
3582
|
+
if (typeof value === 'string') {
|
|
3583
|
+
settings = JSON.parse(value);
|
|
3584
|
+
}
|
|
3585
|
+
else {
|
|
3586
|
+
settings = value;
|
|
3587
|
+
}
|
|
3588
|
+
this._settingsService.createSettingsFromObject(settings);
|
|
3589
|
+
this._catalogService.init(this._settingsService.settings);
|
|
3590
|
+
}
|
|
3591
|
+
}
|
|
3432
3592
|
showClass() {
|
|
3433
3593
|
return true;
|
|
3434
3594
|
}
|
|
@@ -3454,31 +3614,66 @@ class CatalogSearchComponent {
|
|
|
3454
3614
|
handleTurnoverGroupClick(turnoverGroup) {
|
|
3455
3615
|
this._catalogSearchService.turnoverGroup = turnoverGroup;
|
|
3456
3616
|
}
|
|
3617
|
+
handleResetButtonClick(event) {
|
|
3618
|
+
this._catalogSearchService.resetFilters();
|
|
3619
|
+
}
|
|
3620
|
+
handleGetTransactionClick() {
|
|
3621
|
+
this._catalogService.getWebTransaction();
|
|
3622
|
+
}
|
|
3457
3623
|
}
|
|
3458
3624
|
CatalogSearchComponent.decorators = [
|
|
3459
3625
|
{ type: Component, args: [{
|
|
3460
3626
|
selector: 'co-catalog-search',
|
|
3461
3627
|
template: `
|
|
3628
|
+
<button (click)="handleGetTransactionClick()">get transaction</button>
|
|
3462
3629
|
<div class="catalog-search-wrapper">
|
|
3463
3630
|
<ng-container *ngIf="showFilter">
|
|
3464
|
-
<div class="filter-content">
|
|
3465
|
-
<
|
|
3631
|
+
<div class="filter-content" @showHideFilter>
|
|
3632
|
+
<div class="search-filter-panel-header-wrapper">
|
|
3633
|
+
<div class="search-filter-panel-header">
|
|
3634
|
+
<span [textContent]="'Filters'"></span>
|
|
3635
|
+
<co-icon class="filter-reset-icon clickable"
|
|
3636
|
+
[iconData]="iconCacheService.getIcon(icons.SyncAlt)"
|
|
3637
|
+
(click)="handleResetButtonClick($event)">
|
|
3638
|
+
</co-icon>
|
|
3639
|
+
</div>
|
|
3640
|
+
<co-icon class="clickable"
|
|
3641
|
+
[iconData]="iconCacheService.getIcon(icons.Cancel)"
|
|
3642
|
+
(click)="showFilter = false">
|
|
3643
|
+
</co-icon>
|
|
3644
|
+
</div>
|
|
3645
|
+
|
|
3646
|
+
<!--filter-content-->
|
|
3647
|
+
<div class="search-filter-wrapper narrow-scrollbar">
|
|
3648
|
+
<co-catalog-filter [showResetFilter]="true"></co-catalog-filter>
|
|
3649
|
+
</div>
|
|
3466
3650
|
</div>
|
|
3467
3651
|
</ng-container>
|
|
3468
|
-
<div class="search-content-wrapper">
|
|
3652
|
+
<div class="search-content-wrapper" #contentView>
|
|
3469
3653
|
<div class="search-header">
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3654
|
+
<div class="search-catalog-title-wrapper">
|
|
3655
|
+
<div class="catalog-title-wrapper">
|
|
3656
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.WebCatalog)"></co-icon>
|
|
3657
|
+
<div class="catalog-title" [textContent]="title"></div>
|
|
3658
|
+
</div>
|
|
3659
|
+
<div class="catalog-sub-title" [textContent]="subTitle"></div>
|
|
3660
|
+
</div>
|
|
3661
|
+
<co-catalog-search-header [placeholder]="searchPlaceholder"
|
|
3662
|
+
(filterIconClick)="showFilter = !showFilter"></co-catalog-search-header>
|
|
3474
3663
|
</div>
|
|
3475
3664
|
<ng-container *ngIf="showViewModes">
|
|
3476
3665
|
<button (click)="mode = 'tile'">tile</button>
|
|
3477
3666
|
<button (click)="mode = 'list'">list</button>
|
|
3478
3667
|
<button (click)="mode = 'grid'">grid</button>
|
|
3479
3668
|
</ng-container>
|
|
3480
|
-
<co-catalog-navigation *ngIf="showNavigation"
|
|
3481
|
-
|
|
3669
|
+
<co-catalog-navigation *ngIf="showNavigation"
|
|
3670
|
+
[view]="contentView"
|
|
3671
|
+
(categoryClick)="handleCategoryClick($event)"
|
|
3672
|
+
(turnoverGroupClick)="handleTurnoverGroupClick($event)"
|
|
3673
|
+
(externalSourceClick)="onExternalSourceClick.emit($event)"
|
|
3674
|
+
></co-catalog-navigation>
|
|
3675
|
+
<co-catalog-categories *ngIf="showLandingPage" (categoryClick)="handleCategoryClick($event)"
|
|
3676
|
+
(turnoverGroupClick)="handleTurnoverGroupClick($event)"></co-catalog-categories>
|
|
3482
3677
|
<div class="search-content">
|
|
3483
3678
|
<ng-container *ngIf="mode === 'tile'">
|
|
3484
3679
|
<co-catalog-search-result-tile></co-catalog-search-result-tile>
|
|
@@ -3495,29 +3690,64 @@ CatalogSearchComponent.decorators = [
|
|
|
3495
3690
|
</div>
|
|
3496
3691
|
</div>
|
|
3497
3692
|
`,
|
|
3498
|
-
|
|
3693
|
+
providers: [
|
|
3694
|
+
SelectSingleCacheService,
|
|
3695
|
+
SelectMultipleCacheService,
|
|
3696
|
+
SelectMultipleParameterizedCacheService,
|
|
3697
|
+
SelectSingleParameterizedCacheService,
|
|
3698
|
+
BusinessObjectCacheManagerService,
|
|
3699
|
+
CatalogImageService,
|
|
3700
|
+
CatalogFilterService,
|
|
3701
|
+
CatalogOptionsService,
|
|
3702
|
+
CatalogConnectorService,
|
|
3703
|
+
CatalogNavigationService,
|
|
3704
|
+
CatalogConnectorAdapterService,
|
|
3705
|
+
CatalogService,
|
|
3706
|
+
CatalogSettingsService,
|
|
3707
|
+
CatalogSearchService
|
|
3708
|
+
],
|
|
3709
|
+
encapsulation: ViewEncapsulation.None,
|
|
3710
|
+
animations: [
|
|
3711
|
+
trigger('showHideFilter', [
|
|
3712
|
+
state('void', style({ width: '0' })),
|
|
3713
|
+
state('*', style({ width: '*' })),
|
|
3714
|
+
transition('void <=> *', animate(200))
|
|
3715
|
+
])
|
|
3716
|
+
]
|
|
3499
3717
|
},] }
|
|
3500
3718
|
];
|
|
3501
3719
|
CatalogSearchComponent.ctorParameters = () => [
|
|
3502
|
-
{ type:
|
|
3503
|
-
{ type:
|
|
3720
|
+
{ type: CatalogSettingsService, decorators: [{ type: Host }] },
|
|
3721
|
+
{ type: CatalogService, decorators: [{ type: Host }] },
|
|
3722
|
+
{ type: CatalogSearchService, decorators: [{ type: Host }] },
|
|
3723
|
+
{ type: CatalogEventService },
|
|
3724
|
+
{ type: IconCacheService }
|
|
3504
3725
|
];
|
|
3505
3726
|
CatalogSearchComponent.propDecorators = {
|
|
3727
|
+
settings: [{ type: Input }],
|
|
3728
|
+
title: [{ type: Input }],
|
|
3729
|
+
subTitle: [{ type: Input }],
|
|
3730
|
+
searchPlaceholder: [{ type: Input }],
|
|
3506
3731
|
showNavigation: [{ type: Input }],
|
|
3507
3732
|
showLandingPage: [{ type: Input }],
|
|
3508
3733
|
showFilter: [{ type: Input }],
|
|
3509
3734
|
showViewModes: [{ type: Input }],
|
|
3735
|
+
settingsChange: [{ type: Output }],
|
|
3510
3736
|
onLookAtArticleButtonClick: [{ type: Output }],
|
|
3511
3737
|
onArButtonClick: [{ type: Output }],
|
|
3512
3738
|
onAddArticleButtonClick: [{ type: Output }],
|
|
3513
3739
|
onArticleClick: [{ type: Output }],
|
|
3514
3740
|
onStockDetailsClick: [{ type: Output }],
|
|
3741
|
+
onExternalSourceClick: [{ type: Output }],
|
|
3515
3742
|
showClass: [{ type: HostBinding, args: ['class.co-catalog-search',] }]
|
|
3516
3743
|
};
|
|
3517
3744
|
|
|
3518
3745
|
class CatalogSearchHeaderComponent {
|
|
3519
|
-
constructor(catalogSearchService) {
|
|
3746
|
+
constructor(catalogSearchService, iconCacheService) {
|
|
3520
3747
|
this.catalogSearchService = catalogSearchService;
|
|
3748
|
+
this.iconCacheService = iconCacheService;
|
|
3749
|
+
this.icons = IconEnum;
|
|
3750
|
+
this.filterIconClick = new EventEmitter();
|
|
3521
3751
|
}
|
|
3522
3752
|
showClass() {
|
|
3523
3753
|
return true;
|
|
@@ -3536,16 +3766,22 @@ CatalogSearchHeaderComponent.decorators = [
|
|
|
3536
3766
|
[initFocus]="true"
|
|
3537
3767
|
(search)="catalogSearchService.searchArticles()">
|
|
3538
3768
|
</co-input-search>
|
|
3769
|
+
<co-icon class="catalog-search-filter-icon"
|
|
3770
|
+
[iconData]="iconCacheService.getIcon(icons.BarsFilter)"
|
|
3771
|
+
(click)="filterIconClick.emit()">
|
|
3772
|
+
</co-icon>
|
|
3539
3773
|
</div>
|
|
3540
3774
|
`,
|
|
3541
3775
|
encapsulation: ViewEncapsulation.None
|
|
3542
3776
|
},] }
|
|
3543
3777
|
];
|
|
3544
3778
|
CatalogSearchHeaderComponent.ctorParameters = () => [
|
|
3545
|
-
{ type: CatalogSearchService }
|
|
3779
|
+
{ type: CatalogSearchService },
|
|
3780
|
+
{ type: IconCacheService }
|
|
3546
3781
|
];
|
|
3547
3782
|
CatalogSearchHeaderComponent.propDecorators = {
|
|
3548
3783
|
placeholder: [{ type: Input }],
|
|
3784
|
+
filterIconClick: [{ type: Output }],
|
|
3549
3785
|
showClass: [{ type: HostBinding, args: ['class.co-catalog-search-header',] }]
|
|
3550
3786
|
};
|
|
3551
3787
|
|
|
@@ -3555,7 +3791,8 @@ CatalogSearchHeaderModule.decorators = [
|
|
|
3555
3791
|
{ type: NgModule, args: [{
|
|
3556
3792
|
imports: [
|
|
3557
3793
|
CommonModule,
|
|
3558
|
-
InputSearchModule
|
|
3794
|
+
InputSearchModule,
|
|
3795
|
+
IconModule
|
|
3559
3796
|
],
|
|
3560
3797
|
declarations: [
|
|
3561
3798
|
CatalogSearchHeaderComponent
|
|
@@ -4198,6 +4435,27 @@ CatalogSearchResultListModule.decorators = [
|
|
|
4198
4435
|
];
|
|
4199
4436
|
|
|
4200
4437
|
class CatalogSearchModule {
|
|
4438
|
+
static ForRoot() {
|
|
4439
|
+
return {
|
|
4440
|
+
ngModule: CatalogSearchModule,
|
|
4441
|
+
providers: [
|
|
4442
|
+
SelectSingleCacheService,
|
|
4443
|
+
SelectMultipleCacheService,
|
|
4444
|
+
SelectMultipleParameterizedCacheService,
|
|
4445
|
+
SelectSingleParameterizedCacheService,
|
|
4446
|
+
BusinessObjectCacheManagerService,
|
|
4447
|
+
CatalogImageService,
|
|
4448
|
+
CatalogFilterService,
|
|
4449
|
+
CatalogOptionsService,
|
|
4450
|
+
CatalogConnectorService,
|
|
4451
|
+
CatalogNavigationService,
|
|
4452
|
+
CatalogConnectorAdapterService,
|
|
4453
|
+
CatalogService,
|
|
4454
|
+
CatalogSettingsService,
|
|
4455
|
+
CatalogSearchService
|
|
4456
|
+
]
|
|
4457
|
+
};
|
|
4458
|
+
}
|
|
4201
4459
|
}
|
|
4202
4460
|
CatalogSearchModule.decorators = [
|
|
4203
4461
|
{ type: NgModule, args: [{
|
|
@@ -4209,7 +4467,8 @@ CatalogSearchModule.decorators = [
|
|
|
4209
4467
|
CatalogSearchResultListModule,
|
|
4210
4468
|
CatalogCategoriesModule,
|
|
4211
4469
|
CatalogExternalSourcesModule,
|
|
4212
|
-
CatalogNavigationModule
|
|
4470
|
+
CatalogNavigationModule,
|
|
4471
|
+
IconModule
|
|
4213
4472
|
],
|
|
4214
4473
|
declarations: [
|
|
4215
4474
|
CatalogSearchComponent
|
|
@@ -4221,55 +4480,98 @@ CatalogSearchModule.decorators = [
|
|
|
4221
4480
|
];
|
|
4222
4481
|
|
|
4223
4482
|
class CatalogExternalSourceComponent {
|
|
4224
|
-
constructor(
|
|
4225
|
-
this.catalogService = catalogService;
|
|
4226
|
-
this._appEventService = _appEventService;
|
|
4483
|
+
constructor(_sanitizer, _catalogConnectorService) {
|
|
4227
4484
|
this._sanitizer = _sanitizer;
|
|
4228
|
-
this.
|
|
4229
|
-
this.
|
|
4230
|
-
this.
|
|
4231
|
-
this.
|
|
4232
|
-
this.
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
this.externalSourceFrame.nativeElement.src = this.catalogService.externalSourceUrl;
|
|
4237
|
-
}
|
|
4238
|
-
}
|
|
4239
|
-
}));
|
|
4485
|
+
this._catalogConnectorService = _catalogConnectorService;
|
|
4486
|
+
this.showFilter = true;
|
|
4487
|
+
this.showNavigation = true;
|
|
4488
|
+
this.articleClick = new EventEmitter();
|
|
4489
|
+
this.showClass = true;
|
|
4490
|
+
this.showCatalog = false;
|
|
4491
|
+
this.loaded = false;
|
|
4492
|
+
this.externalSettings = {};
|
|
4240
4493
|
}
|
|
4241
|
-
|
|
4242
|
-
|
|
4494
|
+
set externalSource(value) {
|
|
4495
|
+
this._externalSource = value;
|
|
4496
|
+
this.loaded = false;
|
|
4497
|
+
this._prepareExternalSource();
|
|
4243
4498
|
}
|
|
4244
|
-
|
|
4245
|
-
this.
|
|
4499
|
+
get externalSource() {
|
|
4500
|
+
return this._externalSource;
|
|
4246
4501
|
}
|
|
4247
|
-
|
|
4248
|
-
this.
|
|
4249
|
-
|
|
4502
|
+
handleArticleClick(article) {
|
|
4503
|
+
if (article && this.externalSettings) {
|
|
4504
|
+
this.articleClick.emit({ article: article, settings: { name: this.name, settings: this.externalSettings } });
|
|
4505
|
+
}
|
|
4250
4506
|
}
|
|
4251
|
-
|
|
4252
|
-
return this
|
|
4507
|
+
_prepareExternalSource() {
|
|
4508
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4509
|
+
if (!this._externalSource) {
|
|
4510
|
+
return;
|
|
4511
|
+
}
|
|
4512
|
+
this.externalUrl = undefined;
|
|
4513
|
+
this.externalSettings = {};
|
|
4514
|
+
if (this.externalSource.type === 'CATF') {
|
|
4515
|
+
// get bundle settings from external source
|
|
4516
|
+
const bundleSettings = yield this._catalogConnectorService.getCatalogBundleSettings(this.externalSource.url, parseInt(this.externalSource.schema));
|
|
4517
|
+
this.externalSettings = JSON.parse(bundleSettings);
|
|
4518
|
+
if (this.options) {
|
|
4519
|
+
this.externalSettings.options = this.options;
|
|
4520
|
+
}
|
|
4521
|
+
if (this.externalSource.username && this.externalSource.password) {
|
|
4522
|
+
this.externalSettings.username = this.externalSource.username;
|
|
4523
|
+
this.externalSettings.password = this.externalSource.password;
|
|
4524
|
+
}
|
|
4525
|
+
// finally show the catalog
|
|
4526
|
+
this.showCatalog = true;
|
|
4527
|
+
}
|
|
4528
|
+
else {
|
|
4529
|
+
this.externalUrl = this.externalSource.url;
|
|
4530
|
+
this.safeUrl = this._sanitizer.bypassSecurityTrustResourceUrl(this.externalUrl);
|
|
4531
|
+
this.showCatalog = false;
|
|
4532
|
+
}
|
|
4533
|
+
this.loaded = true;
|
|
4534
|
+
});
|
|
4253
4535
|
}
|
|
4254
4536
|
}
|
|
4255
4537
|
CatalogExternalSourceComponent.decorators = [
|
|
4256
4538
|
{ type: Component, args: [{
|
|
4257
4539
|
selector: 'co-catalog-external-source',
|
|
4258
4540
|
template: `
|
|
4259
|
-
<
|
|
4541
|
+
<ng-container *ngIf="loaded">
|
|
4542
|
+
<ng-container *ngIf="showCatalog">
|
|
4543
|
+
<co-catalog-search
|
|
4544
|
+
[(settings)]="externalSettings"
|
|
4545
|
+
[title]="title"
|
|
4546
|
+
[subTitle]="subTitle"
|
|
4547
|
+
[searchPlaceholder]="searchPlaceholder"
|
|
4548
|
+
[showFilter]="showFilter"
|
|
4549
|
+
[showNavigation]="showNavigation"
|
|
4550
|
+
(onArticleClick)="handleArticleClick($event)"
|
|
4551
|
+
></co-catalog-search>
|
|
4552
|
+
</ng-container>
|
|
4553
|
+
<ng-container *ngIf="!showCatalog">
|
|
4554
|
+
<iframe width="100%" height="100%" [src]="safeUrl" frameborder="0" allowfullscreen></iframe>
|
|
4555
|
+
</ng-container>
|
|
4556
|
+
</ng-container>
|
|
4260
4557
|
`,
|
|
4261
4558
|
encapsulation: ViewEncapsulation.None
|
|
4262
4559
|
},] }
|
|
4263
4560
|
];
|
|
4264
4561
|
CatalogExternalSourceComponent.ctorParameters = () => [
|
|
4265
|
-
{ type: CatalogService },
|
|
4266
|
-
{ type: CatalogEventService },
|
|
4267
4562
|
{ type: DomSanitizer },
|
|
4268
|
-
{ type:
|
|
4269
|
-
{ type: Renderer2 }
|
|
4563
|
+
{ type: CatalogConnectorService }
|
|
4270
4564
|
];
|
|
4271
4565
|
CatalogExternalSourceComponent.propDecorators = {
|
|
4272
|
-
|
|
4566
|
+
externalSource: [{ type: Input }],
|
|
4567
|
+
title: [{ type: Input }],
|
|
4568
|
+
subTitle: [{ type: Input }],
|
|
4569
|
+
searchPlaceholder: [{ type: Input }],
|
|
4570
|
+
showFilter: [{ type: Input }],
|
|
4571
|
+
showNavigation: [{ type: Input }],
|
|
4572
|
+
options: [{ type: Input }],
|
|
4573
|
+
name: [{ type: Input }],
|
|
4574
|
+
articleClick: [{ type: Output }],
|
|
4273
4575
|
showClass: [{ type: HostBinding, args: ['class.co-catalog-external-source',] }]
|
|
4274
4576
|
};
|
|
4275
4577
|
|
|
@@ -4278,7 +4580,8 @@ class CatalogExternalSourceModule {
|
|
|
4278
4580
|
CatalogExternalSourceModule.decorators = [
|
|
4279
4581
|
{ type: NgModule, args: [{
|
|
4280
4582
|
imports: [
|
|
4281
|
-
CommonModule
|
|
4583
|
+
CommonModule,
|
|
4584
|
+
CatalogSearchModule.ForRoot()
|
|
4282
4585
|
],
|
|
4283
4586
|
declarations: [
|
|
4284
4587
|
CatalogExternalSourceComponent
|
|
@@ -4293,5 +4596,5 @@ CatalogExternalSourceModule.decorators = [
|
|
|
4293
4596
|
* Generated bundle index. Do not edit.
|
|
4294
4597
|
*/
|
|
4295
4598
|
|
|
4296
|
-
export { CatalogArticleListModule, CatalogArticleTileModule, CatalogCategoriesModule, CatalogEventService, CatalogExternalSourceModule, CatalogExternalSourcesModule, CatalogFilterModule,
|
|
4599
|
+
export { BusinessObjectCacheManagerService, CatalogArticleListModule, CatalogArticleTileModule, CatalogCategoriesModule, CatalogConnectorAdapterService, CatalogConnectorService, CatalogEventService, CatalogExternalSourceModule, CatalogExternalSourcesModule, CatalogFilterModule, CatalogFilterService, CatalogImageService, CatalogNavigationModule, CatalogNavigationService, CatalogOptionsService, CatalogSearchHeaderModule, CatalogSearchModule, CatalogSearchResultListModule, CatalogSearchResultTileModule, CatalogSearchService, CatalogService, CatalogSettingsService, SelectMultipleCacheService, SelectMultipleParameterizedCacheService, SelectSingleCacheService, SelectSingleParameterizedCacheService, Version, CatalogFilterCategoriesModule as ɵa, PipeModule as ɵb, CatalogSearchBaseComponent as ɵba, CatalogArticleListComponent as ɵbb, CatalogSearchResultListComponent as ɵbc, CatalogSearchComponent as ɵbd, CatalogExternalSourceComponent as ɵbe, LocalizePipe as ɵc, DictionaryService as ɵd, CatalogFilterCategoriesComponent as ɵe, CatalogFilterContentGeneralModule as ɵf, CatalogFilterContentGeneralComponent as ɵg, CacheField as ɵh, IconCacheService as ɵi, CatalogFilterContentPurchaseModule as ɵj, CatalogFilterContentPurchaseComponent as ɵk, CatalogFilterContentLogisticsModule as ɵl, CatalogFilterContentLogisticsComponent as ɵm, CatalogFilterComponent as ɵn, ResponsiveTextModule as ɵo, ResponsiveTextComponent as ɵp, CatalogCategoriesComponent as ɵq, CatalogExternalSourcesComponent as ɵr, CatalogNavigationComponent as ɵs, CatalogSearchHeaderComponent as ɵt, CatalogArticleTileComponent as ɵu, ArticleBaseComponent as ɵv, VisibilityObserverModule as ɵw, VisibilityObserverMasterDirective as ɵx, VisibilityObserverDirective as ɵy, CatalogSearchResultTileComponent as ɵz };
|
|
4297
4600
|
//# sourceMappingURL=colijnit-catalog.js.map
|