@colijnit/catalog 12.1.33 → 12.1.35
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 +417 -226
- 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 +3 -2
- package/esm2015/lib/component/catalog-categories/catalog-categories.module.js +4 -3
- 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 +33 -17
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.component.js +26 -10
- package/esm2015/lib/component/catalog-navigation/catalog-navigation.component.js +17 -8
- package/esm2015/lib/component/catalog-search/catalog-search.component.js +113 -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 +25 -24
- 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 +5 -18
- package/esm2015/public_api.js +13 -1
- package/fesm2015/colijnit-catalog.js +419 -169
- 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 +2 -1
- 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 +14 -8
- package/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.component.d.ts +10 -4
- package/lib/component/catalog-navigation/catalog-navigation.component.d.ts +1 -0
- 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 +17 -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 +10 -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 +1 -2
- package/lib/style/_variables.scss +21 -9
- package/package.json +3 -3
- package/public_api.d.ts +12 -0
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
function Version() {
|
|
31
31
|
this.name = "@colijnit/catalog";
|
|
32
32
|
this.description = "iOne Catalog module based on Angular 12";
|
|
33
|
-
this.symVer = "12.1.
|
|
34
|
-
this.publishDate = "
|
|
33
|
+
this.symVer = "12.1.35";
|
|
34
|
+
this.publishDate = "20-7-2023 17:36:18";
|
|
35
35
|
}
|
|
36
36
|
return Version;
|
|
37
37
|
}());
|
|
@@ -129,11 +129,11 @@
|
|
|
129
129
|
if (_ = accept(result.set))
|
|
130
130
|
descriptor.set = _;
|
|
131
131
|
if (_ = accept(result.init))
|
|
132
|
-
initializers.
|
|
132
|
+
initializers.push(_);
|
|
133
133
|
}
|
|
134
134
|
else if (_ = accept(result)) {
|
|
135
135
|
if (kind === "field")
|
|
136
|
-
initializers.
|
|
136
|
+
initializers.push(_);
|
|
137
137
|
else
|
|
138
138
|
descriptor[key] = _;
|
|
139
139
|
}
|
|
@@ -419,34 +419,7 @@
|
|
|
419
419
|
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
|
420
420
|
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
421
421
|
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
422
|
-
}
|
|
423
|
-
var tslib_es6 = {
|
|
424
|
-
__extends: __extends,
|
|
425
|
-
__assign: __assign,
|
|
426
|
-
__rest: __rest,
|
|
427
|
-
__decorate: __decorate,
|
|
428
|
-
__param: __param,
|
|
429
|
-
__metadata: __metadata,
|
|
430
|
-
__awaiter: __awaiter,
|
|
431
|
-
__generator: __generator,
|
|
432
|
-
__createBinding: __createBinding,
|
|
433
|
-
__exportStar: __exportStar,
|
|
434
|
-
__values: __values,
|
|
435
|
-
__read: __read,
|
|
436
|
-
__spread: __spread,
|
|
437
|
-
__spreadArrays: __spreadArrays,
|
|
438
|
-
__spreadArray: __spreadArray,
|
|
439
|
-
__await: __await,
|
|
440
|
-
__asyncGenerator: __asyncGenerator,
|
|
441
|
-
__asyncDelegator: __asyncDelegator,
|
|
442
|
-
__asyncValues: __asyncValues,
|
|
443
|
-
__makeTemplateObject: __makeTemplateObject,
|
|
444
|
-
__importStar: __importStar,
|
|
445
|
-
__importDefault: __importDefault,
|
|
446
|
-
__classPrivateFieldGet: __classPrivateFieldGet,
|
|
447
|
-
__classPrivateFieldSet: __classPrivateFieldSet,
|
|
448
|
-
__classPrivateFieldIn: __classPrivateFieldIn,
|
|
449
|
-
};
|
|
422
|
+
}
|
|
450
423
|
|
|
451
424
|
var SettingsOptions = /** @class */ (function () {
|
|
452
425
|
function SettingsOptions() {
|
|
@@ -472,9 +445,10 @@
|
|
|
472
445
|
var Settings = /** @class */ (function () {
|
|
473
446
|
function Settings() {
|
|
474
447
|
this.session = undefined;
|
|
475
|
-
this.
|
|
448
|
+
this.useLoginEncryption = true;
|
|
476
449
|
this.type = "V";
|
|
477
450
|
this.options = new SettingsOptions();
|
|
451
|
+
this.withCredentials = true;
|
|
478
452
|
}
|
|
479
453
|
return Settings;
|
|
480
454
|
}());
|
|
@@ -642,7 +616,7 @@
|
|
|
642
616
|
enumerable: false,
|
|
643
617
|
configurable: true
|
|
644
618
|
});
|
|
645
|
-
CatalogSettingsService.prototype.initializeSettings = function (
|
|
619
|
+
CatalogSettingsService.prototype.initializeSettings = function () {
|
|
646
620
|
return __awaiter(this, void 0, void 0, function () {
|
|
647
621
|
var jsonSettings;
|
|
648
622
|
return __generator(this, function (_a) {
|
|
@@ -652,9 +626,11 @@
|
|
|
652
626
|
return [4 /*yield*/, JsonUtils.ReadJsonFile('catalog-settings.json')];
|
|
653
627
|
case 1:
|
|
654
628
|
jsonSettings = _a.sent();
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
629
|
+
if (jsonSettings) {
|
|
630
|
+
this.settings = Object.assign(new Settings(), jsonSettings);
|
|
631
|
+
this.settings.options = Object.assign(new SettingsOptions(), this.settings.options);
|
|
632
|
+
this.settingsFinished();
|
|
633
|
+
}
|
|
658
634
|
return [3 /*break*/, 3];
|
|
659
635
|
case 2:
|
|
660
636
|
this.settings = Object.assign(new Settings(), settings);
|
|
@@ -703,7 +679,10 @@
|
|
|
703
679
|
this.settings.session = obj['session'];
|
|
704
680
|
}
|
|
705
681
|
if (obj.hasOwnProperty('useEncryption')) {
|
|
706
|
-
this.settings.
|
|
682
|
+
this.settings.useLoginEncryption = obj['useEncryption'];
|
|
683
|
+
}
|
|
684
|
+
if (obj.hasOwnProperty('useLoginEncryption')) {
|
|
685
|
+
this.settings.useLoginEncryption = obj['useLoginEncryption'];
|
|
707
686
|
}
|
|
708
687
|
if (obj.hasOwnProperty('additionalTranslationFile')) {
|
|
709
688
|
this.settings.additionalTranslationFile = obj['additionalTranslationFile'];
|
|
@@ -744,11 +723,8 @@
|
|
|
744
723
|
};
|
|
745
724
|
return CatalogSettingsService;
|
|
746
725
|
}());
|
|
747
|
-
CatalogSettingsService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CatalogSettingsService_Factory() { return new CatalogSettingsService(i0__namespace.ɵɵinject(DictionaryService)); }, token: CatalogSettingsService, providedIn: "root" });
|
|
748
726
|
CatalogSettingsService.decorators = [
|
|
749
|
-
{ type: i0.Injectable
|
|
750
|
-
providedIn: 'root'
|
|
751
|
-
},] }
|
|
727
|
+
{ type: i0.Injectable }
|
|
752
728
|
];
|
|
753
729
|
CatalogSettingsService.ctorParameters = function () { return [
|
|
754
730
|
{ type: DictionaryService }
|
|
@@ -789,18 +765,8 @@
|
|
|
789
765
|
}
|
|
790
766
|
this._initializing = true;
|
|
791
767
|
try {
|
|
792
|
-
this.connectorOptions
|
|
793
|
-
this.connectorOptions.
|
|
794
|
-
this.connectorOptions.version = settings.version;
|
|
795
|
-
this.connectorOptions.branch = settings.branch;
|
|
796
|
-
this.connectorOptions.username = settings.username;
|
|
797
|
-
this.connectorOptions.password = settings.password;
|
|
798
|
-
this.connectorOptions.session = settings.session;
|
|
799
|
-
this.connectorOptions.currencyId = settings.currency;
|
|
800
|
-
this.connectorOptions.useGroups = settings.useGroups;
|
|
801
|
-
this.connectorOptions.useRenders = settings.useRenders;
|
|
802
|
-
this.connectorOptions.useLoginEncryption = settings.useEncryption;
|
|
803
|
-
this.connectorOptions.languageCode = settings.languageCode;
|
|
768
|
+
this.connectorOptions = Object.assign(new Settings(), settings);
|
|
769
|
+
this.connectorOptions.options = Object.assign(new SettingsOptions(), this.connectorOptions.options);
|
|
804
770
|
this.assetPath = settings.assetPath;
|
|
805
771
|
this.connector = new articles.Articles(this.connectorOptions);
|
|
806
772
|
this.connectorOptions.session = this.connector.session;
|
|
@@ -818,6 +784,27 @@
|
|
|
818
784
|
});
|
|
819
785
|
});
|
|
820
786
|
};
|
|
787
|
+
CatalogConnectorAdapterService.prototype.getCatalogBundleSettings = function (url, upId) {
|
|
788
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
789
|
+
var tempSettings, tempMainConnector, response;
|
|
790
|
+
return __generator(this, function (_a) {
|
|
791
|
+
switch (_a.label) {
|
|
792
|
+
case 0:
|
|
793
|
+
tempSettings = new Settings();
|
|
794
|
+
tempSettings.url = url;
|
|
795
|
+
tempSettings.schema = upId.toString();
|
|
796
|
+
tempMainConnector = new mainapi.MainApi(tempSettings);
|
|
797
|
+
return [4 /*yield*/, tempMainConnector.getPublicParams(upId)];
|
|
798
|
+
case 1:
|
|
799
|
+
response = _a.sent();
|
|
800
|
+
if (response) {
|
|
801
|
+
return [2 /*return*/, response.catalogSettings];
|
|
802
|
+
}
|
|
803
|
+
return [2 /*return*/, ""];
|
|
804
|
+
}
|
|
805
|
+
});
|
|
806
|
+
});
|
|
807
|
+
};
|
|
821
808
|
CatalogConnectorAdapterService.prototype.getArticlesForCatalog = function (params, showLoader) {
|
|
822
809
|
if (showLoader === void 0) { showLoader = true; }
|
|
823
810
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -1368,11 +1355,8 @@
|
|
|
1368
1355
|
};
|
|
1369
1356
|
return CatalogConnectorAdapterService;
|
|
1370
1357
|
}());
|
|
1371
|
-
CatalogConnectorAdapterService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CatalogConnectorAdapterService_Factory() { return new CatalogConnectorAdapterService(); }, token: CatalogConnectorAdapterService, providedIn: "root" });
|
|
1372
1358
|
CatalogConnectorAdapterService.decorators = [
|
|
1373
|
-
{ type: i0.Injectable
|
|
1374
|
-
providedIn: "root"
|
|
1375
|
-
},] }
|
|
1359
|
+
{ type: i0.Injectable }
|
|
1376
1360
|
];
|
|
1377
1361
|
|
|
1378
1362
|
// 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.
|
|
@@ -1558,14 +1542,6 @@
|
|
|
1558
1542
|
this._selectSingleCache = new Map();
|
|
1559
1543
|
this._selectSingleParameterizedCache = new Map();
|
|
1560
1544
|
}
|
|
1561
|
-
// constructor(private _transactionService: TransactionService) {
|
|
1562
|
-
// this._logoutSub = this._transactionService.logout.subscribe(() => {
|
|
1563
|
-
// this._reset();
|
|
1564
|
-
// });
|
|
1565
|
-
// }
|
|
1566
|
-
BusinessObjectCacheManagerService.prototype.ngOnDestroy = function () {
|
|
1567
|
-
this._logoutSub.unsubscribe();
|
|
1568
|
-
};
|
|
1569
1545
|
/**
|
|
1570
1546
|
* Creates and adds a new simple cache item for the given key with the given load function.
|
|
1571
1547
|
* @param key
|
|
@@ -1682,11 +1658,8 @@
|
|
|
1682
1658
|
return BusinessObjectCacheManagerService;
|
|
1683
1659
|
}());
|
|
1684
1660
|
BusinessObjectCacheManagerService._NullBoId = -1;
|
|
1685
|
-
BusinessObjectCacheManagerService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function BusinessObjectCacheManagerService_Factory() { return new BusinessObjectCacheManagerService(); }, token: BusinessObjectCacheManagerService, providedIn: "root" });
|
|
1686
1661
|
BusinessObjectCacheManagerService.decorators = [
|
|
1687
|
-
{ type: i0.Injectable
|
|
1688
|
-
providedIn: "root"
|
|
1689
|
-
},] }
|
|
1662
|
+
{ type: i0.Injectable }
|
|
1690
1663
|
];
|
|
1691
1664
|
|
|
1692
1665
|
var SelectSingleCacheService = /** @class */ (function () {
|
|
@@ -1706,11 +1679,8 @@
|
|
|
1706
1679
|
};
|
|
1707
1680
|
return SelectSingleCacheService;
|
|
1708
1681
|
}());
|
|
1709
|
-
SelectSingleCacheService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function SelectSingleCacheService_Factory() { return new SelectSingleCacheService(i0__namespace.ɵɵinject(BusinessObjectCacheManagerService)); }, token: SelectSingleCacheService, providedIn: "root" });
|
|
1710
1682
|
SelectSingleCacheService.decorators = [
|
|
1711
|
-
{ type: i0.Injectable
|
|
1712
|
-
providedIn: "root"
|
|
1713
|
-
},] }
|
|
1683
|
+
{ type: i0.Injectable }
|
|
1714
1684
|
];
|
|
1715
1685
|
SelectSingleCacheService.ctorParameters = function () { return [
|
|
1716
1686
|
{ type: BusinessObjectCacheManagerService }
|
|
@@ -1740,11 +1710,8 @@
|
|
|
1740
1710
|
return SelectMultipleCacheService;
|
|
1741
1711
|
}());
|
|
1742
1712
|
SelectMultipleCacheService._NullCache = new CacheField();
|
|
1743
|
-
SelectMultipleCacheService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function SelectMultipleCacheService_Factory() { return new SelectMultipleCacheService(i0__namespace.ɵɵinject(BusinessObjectCacheManagerService)); }, token: SelectMultipleCacheService, providedIn: "root" });
|
|
1744
1713
|
SelectMultipleCacheService.decorators = [
|
|
1745
|
-
{ type: i0.Injectable
|
|
1746
|
-
providedIn: "root"
|
|
1747
|
-
},] }
|
|
1714
|
+
{ type: i0.Injectable }
|
|
1748
1715
|
];
|
|
1749
1716
|
SelectMultipleCacheService.ctorParameters = function () { return [
|
|
1750
1717
|
{ type: BusinessObjectCacheManagerService }
|
|
@@ -1784,11 +1751,8 @@
|
|
|
1784
1751
|
};
|
|
1785
1752
|
return SelectMultipleParameterizedCacheService;
|
|
1786
1753
|
}());
|
|
1787
|
-
SelectMultipleParameterizedCacheService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function SelectMultipleParameterizedCacheService_Factory() { return new SelectMultipleParameterizedCacheService(i0__namespace.ɵɵinject(BusinessObjectCacheManagerService)); }, token: SelectMultipleParameterizedCacheService, providedIn: "root" });
|
|
1788
1754
|
SelectMultipleParameterizedCacheService.decorators = [
|
|
1789
|
-
{ type: i0.Injectable
|
|
1790
|
-
providedIn: "root"
|
|
1791
|
-
},] }
|
|
1755
|
+
{ type: i0.Injectable }
|
|
1792
1756
|
];
|
|
1793
1757
|
SelectMultipleParameterizedCacheService.ctorParameters = function () { return [
|
|
1794
1758
|
{ type: BusinessObjectCacheManagerService }
|
|
@@ -1828,11 +1792,8 @@
|
|
|
1828
1792
|
};
|
|
1829
1793
|
return SelectSingleParameterizedCacheService;
|
|
1830
1794
|
}());
|
|
1831
|
-
SelectSingleParameterizedCacheService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function SelectSingleParameterizedCacheService_Factory() { return new SelectSingleParameterizedCacheService(i0__namespace.ɵɵinject(BusinessObjectCacheManagerService)); }, token: SelectSingleParameterizedCacheService, providedIn: "root" });
|
|
1832
1795
|
SelectSingleParameterizedCacheService.decorators = [
|
|
1833
|
-
{ type: i0.Injectable
|
|
1834
|
-
providedIn: "root"
|
|
1835
|
-
},] }
|
|
1796
|
+
{ type: i0.Injectable }
|
|
1836
1797
|
];
|
|
1837
1798
|
SelectSingleParameterizedCacheService.ctorParameters = function () { return [
|
|
1838
1799
|
{ type: BusinessObjectCacheManagerService }
|
|
@@ -1859,6 +1820,13 @@
|
|
|
1859
1820
|
});
|
|
1860
1821
|
});
|
|
1861
1822
|
};
|
|
1823
|
+
CatalogConnectorService.prototype.getCatalogBundleSettings = function (url, upId) {
|
|
1824
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1825
|
+
return __generator(this, function (_a) {
|
|
1826
|
+
return [2 /*return*/, this._adapterService.getCatalogBundleSettings(url, upId)];
|
|
1827
|
+
});
|
|
1828
|
+
});
|
|
1829
|
+
};
|
|
1862
1830
|
CatalogConnectorService.prototype.getArticlesForCatalog = function (params, showLoader) {
|
|
1863
1831
|
if (showLoader === void 0) { showLoader = true; }
|
|
1864
1832
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -2050,11 +2018,8 @@
|
|
|
2050
2018
|
};
|
|
2051
2019
|
return CatalogConnectorService;
|
|
2052
2020
|
}());
|
|
2053
|
-
CatalogConnectorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CatalogConnectorService_Factory() { return new CatalogConnectorService(i0__namespace.ɵɵinject(CatalogConnectorAdapterService), i0__namespace.ɵɵinject(SelectSingleCacheService), i0__namespace.ɵɵinject(SelectMultipleCacheService), i0__namespace.ɵɵinject(SelectMultipleParameterizedCacheService), i0__namespace.ɵɵinject(SelectSingleParameterizedCacheService)); }, token: CatalogConnectorService, providedIn: "root" });
|
|
2054
2021
|
CatalogConnectorService.decorators = [
|
|
2055
|
-
{ type: i0.Injectable
|
|
2056
|
-
providedIn: 'root'
|
|
2057
|
-
},] }
|
|
2022
|
+
{ type: i0.Injectable }
|
|
2058
2023
|
];
|
|
2059
2024
|
CatalogConnectorService.ctorParameters = function () { return [
|
|
2060
2025
|
{ type: CatalogConnectorAdapterService },
|
|
@@ -2189,11 +2154,8 @@
|
|
|
2189
2154
|
});
|
|
2190
2155
|
return CatalogOptionsService;
|
|
2191
2156
|
}());
|
|
2192
|
-
CatalogOptionsService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CatalogOptionsService_Factory() { return new CatalogOptionsService(i0__namespace.ɵɵinject(DictionaryService), i0__namespace.ɵɵinject(CatalogSettingsService)); }, token: CatalogOptionsService, providedIn: "root" });
|
|
2193
2157
|
CatalogOptionsService.decorators = [
|
|
2194
|
-
{ type: i0.Injectable
|
|
2195
|
-
providedIn: 'root'
|
|
2196
|
-
},] }
|
|
2158
|
+
{ type: i0.Injectable }
|
|
2197
2159
|
];
|
|
2198
2160
|
CatalogOptionsService.ctorParameters = function () { return [
|
|
2199
2161
|
{ type: DictionaryService },
|
|
@@ -2314,11 +2276,8 @@
|
|
|
2314
2276
|
};
|
|
2315
2277
|
return CatalogImageService;
|
|
2316
2278
|
}());
|
|
2317
|
-
CatalogImageService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CatalogImageService_Factory() { return new CatalogImageService(i0__namespace.ɵɵinject(CatalogConnectorService)); }, token: CatalogImageService, providedIn: "root" });
|
|
2318
2279
|
CatalogImageService.decorators = [
|
|
2319
|
-
{ type: i0.Injectable
|
|
2320
|
-
providedIn: 'root'
|
|
2321
|
-
},] }
|
|
2280
|
+
{ type: i0.Injectable }
|
|
2322
2281
|
];
|
|
2323
2282
|
CatalogImageService.ctorParameters = function () { return [
|
|
2324
2283
|
{ type: CatalogConnectorService }
|
|
@@ -2450,27 +2409,28 @@
|
|
|
2450
2409
|
};
|
|
2451
2410
|
CatalogFilterService.prototype.createFilterSelectionsCollection = function (collection, id, description) {
|
|
2452
2411
|
var returnCollection = [];
|
|
2453
|
-
collection.
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2412
|
+
if (collection && Array.isArray(collection)) {
|
|
2413
|
+
collection.forEach(function (collectionObject) {
|
|
2414
|
+
var model = new corecomponents_v12.FilterItemViewmodel(collectionObject[id], collectionObject[description], false);
|
|
2415
|
+
returnCollection.push(model);
|
|
2416
|
+
});
|
|
2417
|
+
}
|
|
2457
2418
|
return returnCollection;
|
|
2458
2419
|
};
|
|
2459
2420
|
CatalogFilterService.prototype.createFilterSelectionsSupplierCollection = function (collection) {
|
|
2460
2421
|
var returnCollection = [];
|
|
2461
|
-
collection.
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2422
|
+
if (collection && Array.isArray(collection)) {
|
|
2423
|
+
collection.forEach(function (collectionObject) {
|
|
2424
|
+
var model = new corecomponents_v12.FilterItemViewmodel(collectionObject.relationNr, collectionObject.displayName, false);
|
|
2425
|
+
returnCollection.push(model);
|
|
2426
|
+
});
|
|
2427
|
+
}
|
|
2465
2428
|
return returnCollection;
|
|
2466
2429
|
};
|
|
2467
2430
|
return CatalogFilterService;
|
|
2468
2431
|
}());
|
|
2469
|
-
CatalogFilterService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CatalogFilterService_Factory() { return new CatalogFilterService(i0__namespace.ɵɵinject(CatalogConnectorService)); }, token: CatalogFilterService, providedIn: "root" });
|
|
2470
2432
|
CatalogFilterService.decorators = [
|
|
2471
|
-
{ type: i0.Injectable
|
|
2472
|
-
providedIn: 'root'
|
|
2473
|
-
},] }
|
|
2433
|
+
{ type: i0.Injectable }
|
|
2474
2434
|
];
|
|
2475
2435
|
CatalogFilterService.ctorParameters = function () { return [
|
|
2476
2436
|
{ type: CatalogConnectorService }
|
|
@@ -2664,11 +2624,8 @@
|
|
|
2664
2624
|
};
|
|
2665
2625
|
return CatalogSearchService;
|
|
2666
2626
|
}());
|
|
2667
|
-
CatalogSearchService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CatalogSearchService_Factory() { return new CatalogSearchService(i0__namespace.ɵɵinject(CatalogFilterService), i0__namespace.ɵɵinject(CatalogConnectorService), i0__namespace.ɵɵinject(CatalogSettingsService), i0__namespace.ɵɵinject(CatalogOptionsService)); }, token: CatalogSearchService, providedIn: "root" });
|
|
2668
2627
|
CatalogSearchService.decorators = [
|
|
2669
|
-
{ type: i0.Injectable
|
|
2670
|
-
providedIn: "root"
|
|
2671
|
-
},] }
|
|
2628
|
+
{ type: i0.Injectable }
|
|
2672
2629
|
];
|
|
2673
2630
|
CatalogSearchService.ctorParameters = function () { return [
|
|
2674
2631
|
{ type: CatalogFilterService },
|
|
@@ -2678,14 +2635,13 @@
|
|
|
2678
2635
|
]; };
|
|
2679
2636
|
|
|
2680
2637
|
var CatalogService = /** @class */ (function () {
|
|
2681
|
-
function CatalogService(connector, connectorAdapter, settingsService, optionsService, _imageService,
|
|
2638
|
+
function CatalogService(connector, connectorAdapter, settingsService, optionsService, _imageService, _filterService, _catalogSearchService) {
|
|
2682
2639
|
var _this = this;
|
|
2683
2640
|
this.connector = connector;
|
|
2684
2641
|
this.connectorAdapter = connectorAdapter;
|
|
2685
2642
|
this.settingsService = settingsService;
|
|
2686
2643
|
this.optionsService = optionsService;
|
|
2687
2644
|
this._imageService = _imageService;
|
|
2688
|
-
this._settingsService = _settingsService;
|
|
2689
2645
|
this._filterService = _filterService;
|
|
2690
2646
|
this._catalogSearchService = _catalogSearchService;
|
|
2691
2647
|
this.externalSourceChanged = new rxjs.BehaviorSubject(undefined);
|
|
@@ -2716,7 +2672,7 @@
|
|
|
2716
2672
|
if (initialized) {
|
|
2717
2673
|
this._controllerInitialized = true;
|
|
2718
2674
|
// this.ensureDataListsLoaded();
|
|
2719
|
-
this.articlesPerPage = this.
|
|
2675
|
+
this.articlesPerPage = this.settingsService.settings.options.maxItemsPerPage;
|
|
2720
2676
|
// if (this._settingsService.settings.options.searchOnStart) {
|
|
2721
2677
|
// this._catalogSearchService.searchArticles();
|
|
2722
2678
|
// }
|
|
@@ -2814,7 +2770,7 @@
|
|
|
2814
2770
|
return __awaiter(this, void 0, void 0, function () {
|
|
2815
2771
|
return __generator(this, function (_a) {
|
|
2816
2772
|
switch (_a.label) {
|
|
2817
|
-
case 0: return [4 /*yield*/, this.settingsService.
|
|
2773
|
+
case 0: return [4 /*yield*/, this.settingsService.createSettingsFromObject(settings)];
|
|
2818
2774
|
case 1:
|
|
2819
2775
|
_a.sent();
|
|
2820
2776
|
return [4 /*yield*/, this.connector.initConnector(this.settingsService.settings, forceReload)];
|
|
@@ -2868,11 +2824,8 @@
|
|
|
2868
2824
|
};
|
|
2869
2825
|
return CatalogService;
|
|
2870
2826
|
}());
|
|
2871
|
-
CatalogService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CatalogService_Factory() { return new CatalogService(i0__namespace.ɵɵinject(CatalogConnectorService), i0__namespace.ɵɵinject(CatalogConnectorAdapterService), i0__namespace.ɵɵinject(CatalogSettingsService), i0__namespace.ɵɵinject(CatalogOptionsService), i0__namespace.ɵɵinject(CatalogImageService), i0__namespace.ɵɵinject(CatalogSettingsService), i0__namespace.ɵɵinject(CatalogFilterService), i0__namespace.ɵɵinject(CatalogSearchService)); }, token: CatalogService, providedIn: "root" });
|
|
2872
2827
|
CatalogService.decorators = [
|
|
2873
|
-
{ type: i0.Injectable
|
|
2874
|
-
providedIn: 'root'
|
|
2875
|
-
},] }
|
|
2828
|
+
{ type: i0.Injectable }
|
|
2876
2829
|
];
|
|
2877
2830
|
CatalogService.ctorParameters = function () { return [
|
|
2878
2831
|
{ type: CatalogConnectorService },
|
|
@@ -2880,7 +2833,6 @@
|
|
|
2880
2833
|
{ type: CatalogSettingsService },
|
|
2881
2834
|
{ type: CatalogOptionsService },
|
|
2882
2835
|
{ type: CatalogImageService },
|
|
2883
|
-
{ type: CatalogSettingsService },
|
|
2884
2836
|
{ type: CatalogFilterService },
|
|
2885
2837
|
{ type: CatalogSearchService }
|
|
2886
2838
|
]; };
|
|
@@ -2937,7 +2889,7 @@
|
|
|
2937
2889
|
CatalogCategoriesComponent.decorators = [
|
|
2938
2890
|
{ type: i0.Component, args: [{
|
|
2939
2891
|
selector: 'co-catalog-categories',
|
|
2940
|
-
template: "\n <div class=\"catalog-categories-wrapper\">\n <ng-container *ngIf=\"categories && categories.length > 0\">\n <div class=\"categories-wrapper\">\n <div class=\"category-item\" *ngFor=\"let category of categories\" (click)=\"handleCategoryClick($event, category.category)\">\n <co-image [source]=\"category.imageData\"></co-image>\n <div class=\"category-description\">\n <co-responsive-text [text]=\"category.category | localize\"></co-responsive-text>\n </div>\n<!--\n <span [textContent]=\"category.category | localize\"></span>\n-->\n </div>\n </div>\n <ng-container *ngIf=\"showTurnoverGroups\">\n <div class=\"turnovergroup-wrapper\" *ngFor=\"let category of categories\">\n <div class=\"turnovergroup-items-wrapper\" *ngIf=\"category.turnoverGroups && category.turnoverGroups.length > 0\">\n <div class=\"category-title\" [textContent]=\"category.category | localize\"></div>\n <div class=\"turnovergroup-item-wrapper\">\n <div class=\"turnovergroup-item\" *ngFor=\"let turnoverGroup of category.turnoverGroups\"\n (click)=\"handleTurnoverGroupClick($event, turnoverGroup.turnovergroupNr)\">\n <co-image [source]=\"turnoverGroup.imageData\"></co-image>\n <div class=\"turnovergroup-description\" [textContent]=\"turnoverGroup.description | localize\"></div>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n ",
|
|
2892
|
+
template: "\n <div class=\"catalog-categories-wrapper\" [overlay]=\"parentForOverlay\">\n <ng-container *ngIf=\"categories && categories.length > 0\">\n <div class=\"categories-wrapper\">\n <div class=\"category-item\" *ngFor=\"let category of categories\" (click)=\"handleCategoryClick($event, category.category)\">\n <co-image [source]=\"category.imageData\"></co-image>\n <div class=\"category-description\">\n <co-responsive-text [text]=\"category.category | localize\"></co-responsive-text>\n </div>\n<!--\n <span [textContent]=\"category.category | localize\"></span>\n-->\n </div>\n </div>\n <ng-container *ngIf=\"showTurnoverGroups\">\n <div class=\"turnovergroup-wrapper\" *ngFor=\"let category of categories\">\n <div class=\"turnovergroup-items-wrapper\" *ngIf=\"category.turnoverGroups && category.turnoverGroups.length > 0\">\n <div class=\"category-title\" [textContent]=\"category.category | localize\"></div>\n <div class=\"turnovergroup-item-wrapper\">\n <div class=\"turnovergroup-item\" *ngFor=\"let turnoverGroup of category.turnoverGroups\"\n (click)=\"handleTurnoverGroupClick($event, turnoverGroup.turnovergroupNr)\">\n <co-image [source]=\"turnoverGroup.imageData\"></co-image>\n <div class=\"turnovergroup-description\" [textContent]=\"turnoverGroup.description | localize\"></div>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n ",
|
|
2941
2893
|
encapsulation: i0.ViewEncapsulation.None
|
|
2942
2894
|
},] }
|
|
2943
2895
|
];
|
|
@@ -2948,6 +2900,7 @@
|
|
|
2948
2900
|
showTurnoverGroups: [{ type: i0.Input }],
|
|
2949
2901
|
categoryClick: [{ type: i0.Output }],
|
|
2950
2902
|
turnoverGroupClick: [{ type: i0.Output }],
|
|
2903
|
+
parentForOverlay: [{ type: i0.Input }],
|
|
2951
2904
|
showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-categories',] }]
|
|
2952
2905
|
};
|
|
2953
2906
|
|
|
@@ -2958,7 +2911,9 @@
|
|
|
2958
2911
|
IconEnum["Ar"] = "ar";
|
|
2959
2912
|
IconEnum["ArrowScrollDown"] = "arrow_scroll_down";
|
|
2960
2913
|
IconEnum["ArrowScrollLeft"] = "arrow_scroll_left";
|
|
2914
|
+
IconEnum["BarsFilter"] = "bars_filter";
|
|
2961
2915
|
IconEnum["Camera"] = "camera";
|
|
2916
|
+
IconEnum["Cancel"] = "cancel";
|
|
2962
2917
|
IconEnum["Check"] = "check";
|
|
2963
2918
|
IconEnum["Close"] = "close";
|
|
2964
2919
|
IconEnum["Eye"] = "eye";
|
|
@@ -2974,6 +2929,7 @@
|
|
|
2974
2929
|
IconEnum["ThreeD"] = "three_d";
|
|
2975
2930
|
IconEnum["TileView"] = "tile_view";
|
|
2976
2931
|
IconEnum["Truck"] = "truck";
|
|
2932
|
+
IconEnum["WebCatalog"] = "web_catalog";
|
|
2977
2933
|
})(IconEnum || (IconEnum = {}));
|
|
2978
2934
|
|
|
2979
2935
|
/** AUTO GENERATED FILE. DO NOT CHANGE.. **/
|
|
@@ -2982,7 +2938,9 @@
|
|
|
2982
2938
|
"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>",
|
|
2983
2939
|
"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>",
|
|
2984
2940
|
"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>",
|
|
2941
|
+
"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>",
|
|
2985
2942
|
"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>",
|
|
2943
|
+
"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>",
|
|
2986
2944
|
"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>",
|
|
2987
2945
|
"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>",
|
|
2988
2946
|
"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>",
|
|
@@ -2997,7 +2955,8 @@
|
|
|
2997
2955
|
"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>",
|
|
2998
2956
|
"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>",
|
|
2999
2957
|
"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>",
|
|
3000
|
-
"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>"
|
|
2958
|
+
"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>",
|
|
2959
|
+
"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>"
|
|
3001
2960
|
};
|
|
3002
2961
|
|
|
3003
2962
|
var IconCacheService = /** @class */ (function () {
|
|
@@ -3234,15 +3193,17 @@
|
|
|
3234
3193
|
];
|
|
3235
3194
|
|
|
3236
3195
|
var CatalogFilterContentGeneralComponent = /** @class */ (function () {
|
|
3237
|
-
function CatalogFilterContentGeneralComponent(catalogSearchService, filterService, iconCache, _catalogConnectorService) {
|
|
3196
|
+
function CatalogFilterContentGeneralComponent(catalogSearchService, filterService, iconCache, _catalogConnectorService, _adapterService) {
|
|
3238
3197
|
var _this = this;
|
|
3239
3198
|
this.catalogSearchService = catalogSearchService;
|
|
3240
3199
|
this.filterService = filterService;
|
|
3241
3200
|
this.iconCache = iconCache;
|
|
3242
3201
|
this._catalogConnectorService = _catalogConnectorService;
|
|
3202
|
+
this._adapterService = _adapterService;
|
|
3243
3203
|
this.icons = IconEnum;
|
|
3244
3204
|
this._min = 0;
|
|
3245
3205
|
this._max = 100000;
|
|
3206
|
+
this._subs = [];
|
|
3246
3207
|
this.supplierDropdownFields = { text: "description", value: "storeGroupId" };
|
|
3247
3208
|
this.getRetail = function (barcodeFilter) { return __awaiter(_this, void 0, void 0, function () {
|
|
3248
3209
|
var request;
|
|
@@ -3259,6 +3220,17 @@
|
|
|
3259
3220
|
return true;
|
|
3260
3221
|
};
|
|
3261
3222
|
CatalogFilterContentGeneralComponent.prototype.ngOnInit = function () {
|
|
3223
|
+
var _this = this;
|
|
3224
|
+
this._subs.push(this._adapterService.controllerInitialized.subscribe(function (initialized) {
|
|
3225
|
+
if (initialized) {
|
|
3226
|
+
_this._setCollections();
|
|
3227
|
+
}
|
|
3228
|
+
}));
|
|
3229
|
+
};
|
|
3230
|
+
CatalogFilterContentGeneralComponent.prototype.ngOnDestroy = function () {
|
|
3231
|
+
this._subs.forEach(function (s) { return s.unsubscribe(); });
|
|
3232
|
+
};
|
|
3233
|
+
CatalogFilterContentGeneralComponent.prototype._setCollections = function () {
|
|
3262
3234
|
this._setStoreGroups();
|
|
3263
3235
|
this._setInOutCollection();
|
|
3264
3236
|
this._setArticleTypes();
|
|
@@ -3308,11 +3280,13 @@
|
|
|
3308
3280
|
var _this = this;
|
|
3309
3281
|
var tempPriceListsSalesCollection = [];
|
|
3310
3282
|
this._catalogConnectorService.getPriceLists().then(function (priceLists) {
|
|
3311
|
-
priceLists.
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3283
|
+
if (priceLists && Array.isArray(priceLists)) {
|
|
3284
|
+
priceLists.forEach(function (list) {
|
|
3285
|
+
if (list.type.indexOf("I") != -1) {
|
|
3286
|
+
tempPriceListsSalesCollection.push(list);
|
|
3287
|
+
}
|
|
3288
|
+
});
|
|
3289
|
+
}
|
|
3316
3290
|
_this.priceListsSalesCollection = _this.filterService.createFilterSelectionsCollection(tempPriceListsSalesCollection, "code", "description");
|
|
3317
3291
|
});
|
|
3318
3292
|
};
|
|
@@ -3388,7 +3362,8 @@
|
|
|
3388
3362
|
{ type: CatalogSearchService },
|
|
3389
3363
|
{ type: CatalogFilterService },
|
|
3390
3364
|
{ type: IconCacheService },
|
|
3391
|
-
{ type: CatalogConnectorService }
|
|
3365
|
+
{ type: CatalogConnectorService },
|
|
3366
|
+
{ type: CatalogConnectorAdapterService }
|
|
3392
3367
|
]; };
|
|
3393
3368
|
CatalogFilterContentGeneralComponent.propDecorators = {
|
|
3394
3369
|
showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-filter',] }]
|
|
@@ -3419,17 +3394,30 @@
|
|
|
3419
3394
|
];
|
|
3420
3395
|
|
|
3421
3396
|
var CatalogFilterContentPurchaseComponent = /** @class */ (function () {
|
|
3422
|
-
function CatalogFilterContentPurchaseComponent(catalogSearchService, iconCache, _catalogConnectorService,
|
|
3397
|
+
function CatalogFilterContentPurchaseComponent(catalogSearchService, iconCache, filterService, _catalogConnectorService, _adapterService) {
|
|
3423
3398
|
this.catalogSearchService = catalogSearchService;
|
|
3424
3399
|
this.iconCache = iconCache;
|
|
3425
|
-
this._catalogConnectorService = _catalogConnectorService;
|
|
3426
3400
|
this.filterService = filterService;
|
|
3401
|
+
this._catalogConnectorService = _catalogConnectorService;
|
|
3402
|
+
this._adapterService = _adapterService;
|
|
3427
3403
|
this.icons = IconEnum;
|
|
3404
|
+
this._subs = [];
|
|
3428
3405
|
}
|
|
3429
3406
|
CatalogFilterContentPurchaseComponent.prototype.showClass = function () {
|
|
3430
3407
|
return true;
|
|
3431
3408
|
};
|
|
3432
3409
|
CatalogFilterContentPurchaseComponent.prototype.ngOnInit = function () {
|
|
3410
|
+
var _this = this;
|
|
3411
|
+
this._subs.push(this._adapterService.controllerInitialized.subscribe(function (initialized) {
|
|
3412
|
+
if (initialized) {
|
|
3413
|
+
_this._setCollections();
|
|
3414
|
+
}
|
|
3415
|
+
}));
|
|
3416
|
+
};
|
|
3417
|
+
CatalogFilterContentPurchaseComponent.prototype.ngOnDestroy = function () {
|
|
3418
|
+
this._subs.forEach(function (s) { return s.unsubscribe(); });
|
|
3419
|
+
};
|
|
3420
|
+
CatalogFilterContentPurchaseComponent.prototype._setCollections = function () {
|
|
3433
3421
|
this._setSuppliers();
|
|
3434
3422
|
this._setPriceList();
|
|
3435
3423
|
};
|
|
@@ -3443,11 +3431,13 @@
|
|
|
3443
3431
|
var _this = this;
|
|
3444
3432
|
var tempPriceListsPurchCollection = [];
|
|
3445
3433
|
this._catalogConnectorService.getPriceLists().then(function (priceLists) {
|
|
3446
|
-
priceLists.
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3434
|
+
if (priceLists && Array.isArray(priceLists)) {
|
|
3435
|
+
priceLists.forEach(function (list) {
|
|
3436
|
+
if (list.type.indexOf("I") > -1) {
|
|
3437
|
+
tempPriceListsPurchCollection.push(list);
|
|
3438
|
+
}
|
|
3439
|
+
});
|
|
3440
|
+
}
|
|
3451
3441
|
_this.priceListsPurchCollection = _this.filterService.createFilterSelectionsCollection(tempPriceListsPurchCollection, "code", "description");
|
|
3452
3442
|
});
|
|
3453
3443
|
};
|
|
@@ -3468,8 +3458,9 @@
|
|
|
3468
3458
|
CatalogFilterContentPurchaseComponent.ctorParameters = function () { return [
|
|
3469
3459
|
{ type: CatalogSearchService },
|
|
3470
3460
|
{ type: IconCacheService },
|
|
3461
|
+
{ type: CatalogFilterService },
|
|
3471
3462
|
{ type: CatalogConnectorService },
|
|
3472
|
-
{ type:
|
|
3463
|
+
{ type: CatalogConnectorAdapterService }
|
|
3473
3464
|
]; };
|
|
3474
3465
|
CatalogFilterContentPurchaseComponent.propDecorators = {
|
|
3475
3466
|
showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-filter',] }],
|
|
@@ -3657,7 +3648,8 @@
|
|
|
3657
3648
|
corecomponents_v12.IconModule,
|
|
3658
3649
|
CatalogFilterModule,
|
|
3659
3650
|
ResponsiveTextModule,
|
|
3660
|
-
PipeModule
|
|
3651
|
+
PipeModule,
|
|
3652
|
+
corecomponents_v12.OverlayModule
|
|
3661
3653
|
],
|
|
3662
3654
|
declarations: [
|
|
3663
3655
|
CatalogCategoriesComponent
|
|
@@ -3686,11 +3678,7 @@
|
|
|
3686
3678
|
];
|
|
3687
3679
|
|
|
3688
3680
|
var CatalogNavigationComponent = /** @class */ (function () {
|
|
3689
|
-
function CatalogNavigationComponent(iconCache,
|
|
3690
|
-
/*
|
|
3691
|
-
public navigationService: CatalogNavigationService,
|
|
3692
|
-
*/
|
|
3693
|
-
catalogService, _appEventService) {
|
|
3681
|
+
function CatalogNavigationComponent(iconCache, catalogService, _appEventService) {
|
|
3694
3682
|
this.iconCache = iconCache;
|
|
3695
3683
|
this.catalogService = catalogService;
|
|
3696
3684
|
this._appEventService = _appEventService;
|
|
@@ -3838,7 +3826,10 @@
|
|
|
3838
3826
|
CatalogNavigationComponent.decorators = [
|
|
3839
3827
|
{ type: i0.Component, args: [{
|
|
3840
3828
|
selector: 'co-catalog-navigation',
|
|
3841
|
-
template: "\n <div class=\"navigation-wrapper\" [class.minified]=\"minified\">\n <div class=\"navigation-item-wrapper\">\n <a class=\"home-link\" (click)=\"handleHomeClick($event)\" [textContent]=\"homeLabel\"></a>\n </div>\n <div class=\"navigation-item-wrapper\" [class.active]=\"mobileMenuToggle\" (click)=\"onToggleMobileMenu()\" \n (mouseover)=\"handleShowCollectionOverlay()\" \n (mouseleave)=\"handleHideCollectionOverlay()\" \n overlayParent #collectionParentForOverlay=\"overlayParent\">\n <co-icon class=\"hamburger-icon\" [iconData]=\"iconCache.getIcon(icons.Hamburger)\"></co-icon>\n <span [textContent]=\"collectionLabel\"></span>\n <div class=\"navigation-overlay-wrapper\" [overlay]=\"collectionParentForOverlay\" [keepInView]=\"true\"
|
|
3829
|
+
template: "\n <div class=\"navigation-wrapper\" [class.minified]=\"minified\">\n <div class=\"navigation-item-wrapper\">\n <a class=\"home-link\" (click)=\"handleHomeClick($event)\" [textContent]=\"homeLabel\"></a>\n </div>\n <div class=\"navigation-item-wrapper\" [class.active]=\"mobileMenuToggle\" (click)=\"onToggleMobileMenu()\" \n (mouseover)=\"handleShowCollectionOverlay()\" \n (mouseleave)=\"handleHideCollectionOverlay()\" \n overlayParent #collectionParentForOverlay=\"overlayParent\">\n <co-icon class=\"hamburger-icon\" [iconData]=\"iconCache.getIcon(icons.Hamburger)\"></co-icon>\n <span [textContent]=\"collectionLabel\"></span>\n <div class=\"navigation-overlay-wrapper\" *ngIf=\"showCollectionOverlay\" @showHideOverlay \n [overlay]=\"collectionParentForOverlay\" \n [keepInView]=\"true\" \n [view]=\"view\" \n [fullSize]=\"true\">\n <div class=\"navigation-category-column-wrapper\" *ngFor=\"let category of categories\">\n <div class=\"navigation-category\" [textContent]=\"category.category\" (click)=\"handleCategoryClick($event, category.category)\"></div>\n <div class=\"navigation-turnovergroup-wrapper\">\n <div class=\"navigation-turnovergroup\" *ngFor=\"let turnoverGroup of category.turnoverGroups\" [textContent]=\"turnoverGroup.description\" (click)=\"handleTurnoverGroupClick($event, turnoverGroup.turnovergroupNr)\"></div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"navigation-item-wrapper\" [class.active]=\"mobileMenuToggle\" (click)=\"onToggleMobileMenu()\" \n (mouseover)=\"handleShowExternalOverlay()\"\n (mouseleave)=\"handleHideExternalOverlay()\"\n overlayParent #externalParentForOverlay=\"overlayParent\">\n <co-icon class=\"hamburger-icon\" [iconData]=\"iconCache.getIcon(icons.Ar)\"></co-icon>\n <span [textContent]=\"externalSourcesLabel\"></span>\n <div class=\"navigation-overlay-wrapper\" *ngIf=\"showExternalOverlay\" @showHideOverlay \n [overlay]=\"externalParentForOverlay\" \n [keepInView]=\"true\" \n [view]=\"view\" \n [fullSize]=\"true\">\n <co-catalog-external-sources (externalSourceClick)=\"handleExternalSourceClick($event)\"></co-catalog-external-sources>\n </div>\n </div>\n </div>\n ",
|
|
3830
|
+
providers: [
|
|
3831
|
+
corecomponents_v12.OverlayService
|
|
3832
|
+
],
|
|
3842
3833
|
animations: [
|
|
3843
3834
|
animations.trigger('showHideOverlay', [
|
|
3844
3835
|
animations.state('void', animations.style({ height: '0' })),
|
|
@@ -3859,6 +3850,7 @@
|
|
|
3859
3850
|
collectionLabel: [{ type: i0.Input }],
|
|
3860
3851
|
externalSourcesLabel: [{ type: i0.Input }],
|
|
3861
3852
|
showTurnoverGroups: [{ type: i0.Input }],
|
|
3853
|
+
view: [{ type: i0.Input }],
|
|
3862
3854
|
homeClick: [{ type: i0.Output }],
|
|
3863
3855
|
categoryClick: [{ type: i0.Output }],
|
|
3864
3856
|
turnoverGroupClick: [{ type: i0.Output }],
|
|
@@ -3983,23 +3975,117 @@
|
|
|
3983
3975
|
},] }
|
|
3984
3976
|
];
|
|
3985
3977
|
|
|
3978
|
+
var CatalogNavigationService = /** @class */ (function () {
|
|
3979
|
+
function CatalogNavigationService(_catalog, _iOne, _optionsService, _imageService) {
|
|
3980
|
+
this._catalog = _catalog;
|
|
3981
|
+
this._iOne = _iOne;
|
|
3982
|
+
this._optionsService = _optionsService;
|
|
3983
|
+
this._imageService = _imageService;
|
|
3984
|
+
this._subs = [];
|
|
3985
|
+
this._connectionMade = false;
|
|
3986
|
+
this._optionsSet = false;
|
|
3987
|
+
this.navigationCategories = [];
|
|
3988
|
+
this.allTurnoverGroups = [];
|
|
3989
|
+
// this._subs.push(
|
|
3990
|
+
// this._iOne.controllerInitialized.subscribe((initialized: boolean) => {
|
|
3991
|
+
// if (initialized) {
|
|
3992
|
+
// this._connectionMade = true;
|
|
3993
|
+
// this.getCategories();
|
|
3994
|
+
// }
|
|
3995
|
+
// }),
|
|
3996
|
+
// this._optionsService.parametersSet.subscribe((set: boolean) => {
|
|
3997
|
+
// if (set) {
|
|
3998
|
+
// this._optionsSet = true;
|
|
3999
|
+
// this.getCategories();
|
|
4000
|
+
// }
|
|
4001
|
+
// })
|
|
4002
|
+
// );
|
|
4003
|
+
}
|
|
4004
|
+
CatalogNavigationService.prototype.ngOnDestroy = function () {
|
|
4005
|
+
this._subs.forEach(function (s) { return s.unsubscribe(); });
|
|
4006
|
+
};
|
|
4007
|
+
CatalogNavigationService.prototype.setCategory = function (category) {
|
|
4008
|
+
// this._catalog.category = category;
|
|
4009
|
+
};
|
|
4010
|
+
CatalogNavigationService.prototype.setTurnoverGroup = function (turnoverGroup) {
|
|
4011
|
+
// this._catalog.turnoverGroup = turnoverGroup;
|
|
4012
|
+
};
|
|
4013
|
+
CatalogNavigationService.prototype.setExternalSourceUrl = function (url) {
|
|
4014
|
+
this._catalog.externalSourceUrl = url;
|
|
4015
|
+
};
|
|
4016
|
+
CatalogNavigationService.prototype.setIoneSourceUrl = function (url, ioneUrl, id, username, password) {
|
|
4017
|
+
this._catalog.ioneSourceUrl = url + '?url=' + ioneUrl + '&id=' + id + '&user=' + username + '&pass=' + password;
|
|
4018
|
+
};
|
|
4019
|
+
CatalogNavigationService.prototype.navigateToHome = function () {
|
|
4020
|
+
this._catalog.reset();
|
|
4021
|
+
};
|
|
4022
|
+
CatalogNavigationService.prototype.getCategories = function () {
|
|
4023
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4024
|
+
return __generator(this, function (_a) {
|
|
4025
|
+
return [2 /*return*/];
|
|
4026
|
+
});
|
|
4027
|
+
});
|
|
4028
|
+
};
|
|
4029
|
+
CatalogNavigationService.prototype.getTurnoverGroupList = function () {
|
|
4030
|
+
var _this = this;
|
|
4031
|
+
this.navigationCategories.forEach(function (category) {
|
|
4032
|
+
var _a;
|
|
4033
|
+
category.turnoverGroups.forEach(function (tog) { return _this._imageService.getTurnoverGroupImage(tog); });
|
|
4034
|
+
(_a = _this.allTurnoverGroups).push.apply(_a, __spreadArray([], __read(category.turnoverGroups)));
|
|
4035
|
+
});
|
|
4036
|
+
};
|
|
4037
|
+
return CatalogNavigationService;
|
|
4038
|
+
}());
|
|
4039
|
+
CatalogNavigationService.decorators = [
|
|
4040
|
+
{ type: i0.Injectable }
|
|
4041
|
+
];
|
|
4042
|
+
CatalogNavigationService.ctorParameters = function () { return [
|
|
4043
|
+
{ type: CatalogService },
|
|
4044
|
+
{ type: CatalogConnectorService },
|
|
4045
|
+
{ type: CatalogOptionsService },
|
|
4046
|
+
{ type: CatalogImageService }
|
|
4047
|
+
]; };
|
|
4048
|
+
|
|
3986
4049
|
var CatalogSearchComponent = /** @class */ (function () {
|
|
3987
|
-
function CatalogSearchComponent(_catalogSearchService, _catalogEventService) {
|
|
4050
|
+
function CatalogSearchComponent(_settingsService, _catalogService, _catalogSearchService, _catalogEventService, iconCacheService) {
|
|
4051
|
+
this._settingsService = _settingsService;
|
|
4052
|
+
this._catalogService = _catalogService;
|
|
3988
4053
|
this._catalogSearchService = _catalogSearchService;
|
|
3989
4054
|
this._catalogEventService = _catalogEventService;
|
|
4055
|
+
this.iconCacheService = iconCacheService;
|
|
4056
|
+
this.icons = IconEnum;
|
|
3990
4057
|
this.showNavigation = false;
|
|
3991
4058
|
this.showLandingPage = false;
|
|
3992
4059
|
this.showFilter = false;
|
|
3993
4060
|
this.showViewModes = false;
|
|
4061
|
+
this.settingsChange = new i0.EventEmitter();
|
|
3994
4062
|
this.onLookAtArticleButtonClick = new i0.EventEmitter();
|
|
3995
4063
|
this.onArButtonClick = new i0.EventEmitter();
|
|
3996
4064
|
this.onAddArticleButtonClick = new i0.EventEmitter();
|
|
3997
4065
|
this.onArticleClick = new i0.EventEmitter();
|
|
3998
4066
|
this.onStockDetailsClick = new i0.EventEmitter();
|
|
4067
|
+
this.onExternalSourceClick = new i0.EventEmitter();
|
|
3999
4068
|
this.mode = 'tile';
|
|
4000
4069
|
this.showCategories = true;
|
|
4001
4070
|
this._subs = [];
|
|
4002
4071
|
}
|
|
4072
|
+
Object.defineProperty(CatalogSearchComponent.prototype, "settings", {
|
|
4073
|
+
set: function (value) {
|
|
4074
|
+
if (value) {
|
|
4075
|
+
var settings = void 0;
|
|
4076
|
+
if (typeof value === 'string') {
|
|
4077
|
+
settings = JSON.parse(value);
|
|
4078
|
+
}
|
|
4079
|
+
else {
|
|
4080
|
+
settings = value;
|
|
4081
|
+
}
|
|
4082
|
+
this._settingsService.createSettingsFromObject(settings);
|
|
4083
|
+
this._catalogService.init(this._settingsService.settings);
|
|
4084
|
+
}
|
|
4085
|
+
},
|
|
4086
|
+
enumerable: false,
|
|
4087
|
+
configurable: true
|
|
4088
|
+
});
|
|
4003
4089
|
CatalogSearchComponent.prototype.showClass = function () {
|
|
4004
4090
|
return true;
|
|
4005
4091
|
};
|
|
@@ -4026,35 +4112,73 @@
|
|
|
4026
4112
|
CatalogSearchComponent.prototype.handleTurnoverGroupClick = function (turnoverGroup) {
|
|
4027
4113
|
this._catalogSearchService.turnoverGroup = turnoverGroup;
|
|
4028
4114
|
};
|
|
4115
|
+
CatalogSearchComponent.prototype.handleResetButtonClick = function (event) {
|
|
4116
|
+
this._catalogSearchService.resetFilters();
|
|
4117
|
+
};
|
|
4029
4118
|
return CatalogSearchComponent;
|
|
4030
4119
|
}());
|
|
4031
4120
|
CatalogSearchComponent.decorators = [
|
|
4032
4121
|
{ type: i0.Component, args: [{
|
|
4033
4122
|
selector: 'co-catalog-search',
|
|
4034
|
-
template: "\n <div class=\"catalog-search-wrapper\">\n <ng-container *ngIf=\"showFilter\">\n <div class=\"filter-content\">\n <co-catalog-filter [showResetFilter]=\"true\"></co-catalog-filter>\n </div>\n </ng-container>\n <div class=\"search-content-wrapper\">\n <div class=\"search-header\">\n
|
|
4035
|
-
|
|
4123
|
+
template: "\n <div class=\"catalog-search-wrapper\">\n <ng-container *ngIf=\"showFilter\">\n <div class=\"filter-content\" @showHideFilter>\n <div class=\"search-filter-panel-header-wrapper\">\n <div class=\"search-filter-panel-header\">\n <span [textContent]=\"'Filters'\"></span>\n <co-icon class=\"filter-reset-icon clickable\"\n [iconData]=\"iconCacheService.getIcon(icons.SyncAlt)\"\n (click)=\"handleResetButtonClick($event)\">\n </co-icon>\n </div>\n <co-icon class=\"clickable\"\n [iconData]=\"iconCacheService.getIcon(icons.Cancel)\"\n (click)=\"showFilter = false\">\n </co-icon>\n </div>\n\n <!--filter-content-->\n <div class=\"search-filter-wrapper narrow-scrollbar\">\n <co-catalog-filter [showResetFilter]=\"true\"></co-catalog-filter>\n </div>\n </div>\n </ng-container>\n <div class=\"search-content-wrapper\" #contentView>\n <div class=\"search-header\">\n <div class=\"search-catalog-title-wrapper\">\n <div class=\"catalog-title-wrapper\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.WebCatalog)\"></co-icon>\n <div class=\"catalog-title\" [textContent]=\"title\"></div>\n </div>\n <div class=\"catalog-sub-title\" [textContent]=\"subTitle\"></div>\n </div>\n <co-catalog-search-header [placeholder]=\"searchPlaceholder\"\n (filterIconClick)=\"showFilter = !showFilter\"></co-catalog-search-header>\n </div>\n <ng-container *ngIf=\"showViewModes\">\n <button (click)=\"mode = 'tile'\">tile</button>\n <button (click)=\"mode = 'list'\">list</button>\n <button (click)=\"mode = 'grid'\">grid</button>\n </ng-container>\n <co-catalog-navigation *ngIf=\"showNavigation\"\n [view]=\"contentView\"\n (categoryClick)=\"handleCategoryClick($event)\"\n (turnoverGroupClick)=\"handleTurnoverGroupClick($event)\"\n (externalSourceClick)=\"onExternalSourceClick.emit($event)\"\n ></co-catalog-navigation>\n <co-catalog-categories *ngIf=\"showLandingPage\" (categoryClick)=\"handleCategoryClick($event)\"\n (turnoverGroupClick)=\"handleTurnoverGroupClick($event)\"></co-catalog-categories>\n <div class=\"search-content\">\n <ng-container *ngIf=\"mode === 'tile'\">\n <co-catalog-search-result-tile></co-catalog-search-result-tile>\n </ng-container>\n <ng-container *ngIf=\"mode === 'list'\">\n <co-catalog-search-result-list></co-catalog-search-result-list>\n </ng-container>\n <ng-container *ngIf=\"mode === 'grid'\">\n <!--\n <co-catalog-search-result></co-catalog-search-result>\n -->\n </ng-container>\n </div>\n </div>\n </div>\n ",
|
|
4124
|
+
providers: [
|
|
4125
|
+
SelectSingleCacheService,
|
|
4126
|
+
SelectMultipleCacheService,
|
|
4127
|
+
SelectMultipleParameterizedCacheService,
|
|
4128
|
+
SelectSingleParameterizedCacheService,
|
|
4129
|
+
BusinessObjectCacheManagerService,
|
|
4130
|
+
CatalogImageService,
|
|
4131
|
+
CatalogFilterService,
|
|
4132
|
+
CatalogOptionsService,
|
|
4133
|
+
CatalogConnectorService,
|
|
4134
|
+
CatalogNavigationService,
|
|
4135
|
+
CatalogConnectorAdapterService,
|
|
4136
|
+
CatalogService,
|
|
4137
|
+
CatalogSettingsService,
|
|
4138
|
+
CatalogSearchService
|
|
4139
|
+
],
|
|
4140
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
4141
|
+
animations: [
|
|
4142
|
+
animations.trigger('showHideFilter', [
|
|
4143
|
+
animations.state('void', animations.style({ width: '0' })),
|
|
4144
|
+
animations.state('*', animations.style({ width: '*' })),
|
|
4145
|
+
animations.transition('void <=> *', animations.animate(200))
|
|
4146
|
+
])
|
|
4147
|
+
]
|
|
4036
4148
|
},] }
|
|
4037
4149
|
];
|
|
4038
4150
|
CatalogSearchComponent.ctorParameters = function () { return [
|
|
4039
|
-
{ type:
|
|
4040
|
-
{ type:
|
|
4151
|
+
{ type: CatalogSettingsService, decorators: [{ type: i0.Host }] },
|
|
4152
|
+
{ type: CatalogService, decorators: [{ type: i0.Host }] },
|
|
4153
|
+
{ type: CatalogSearchService, decorators: [{ type: i0.Host }] },
|
|
4154
|
+
{ type: CatalogEventService },
|
|
4155
|
+
{ type: IconCacheService }
|
|
4041
4156
|
]; };
|
|
4042
4157
|
CatalogSearchComponent.propDecorators = {
|
|
4158
|
+
settings: [{ type: i0.Input }],
|
|
4159
|
+
title: [{ type: i0.Input }],
|
|
4160
|
+
subTitle: [{ type: i0.Input }],
|
|
4161
|
+
searchPlaceholder: [{ type: i0.Input }],
|
|
4043
4162
|
showNavigation: [{ type: i0.Input }],
|
|
4044
4163
|
showLandingPage: [{ type: i0.Input }],
|
|
4045
4164
|
showFilter: [{ type: i0.Input }],
|
|
4046
4165
|
showViewModes: [{ type: i0.Input }],
|
|
4166
|
+
settingsChange: [{ type: i0.Output }],
|
|
4047
4167
|
onLookAtArticleButtonClick: [{ type: i0.Output }],
|
|
4048
4168
|
onArButtonClick: [{ type: i0.Output }],
|
|
4049
4169
|
onAddArticleButtonClick: [{ type: i0.Output }],
|
|
4050
4170
|
onArticleClick: [{ type: i0.Output }],
|
|
4051
4171
|
onStockDetailsClick: [{ type: i0.Output }],
|
|
4172
|
+
onExternalSourceClick: [{ type: i0.Output }],
|
|
4052
4173
|
showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-search',] }]
|
|
4053
4174
|
};
|
|
4054
4175
|
|
|
4055
4176
|
var CatalogSearchHeaderComponent = /** @class */ (function () {
|
|
4056
|
-
function CatalogSearchHeaderComponent(catalogSearchService) {
|
|
4177
|
+
function CatalogSearchHeaderComponent(catalogSearchService, iconCacheService) {
|
|
4057
4178
|
this.catalogSearchService = catalogSearchService;
|
|
4179
|
+
this.iconCacheService = iconCacheService;
|
|
4180
|
+
this.icons = IconEnum;
|
|
4181
|
+
this.filterIconClick = new i0.EventEmitter();
|
|
4058
4182
|
}
|
|
4059
4183
|
CatalogSearchHeaderComponent.prototype.showClass = function () {
|
|
4060
4184
|
return true;
|
|
@@ -4064,15 +4188,17 @@
|
|
|
4064
4188
|
CatalogSearchHeaderComponent.decorators = [
|
|
4065
4189
|
{ type: i0.Component, args: [{
|
|
4066
4190
|
selector: 'co-catalog-search-header',
|
|
4067
|
-
template: "\n <div class=\"catalog-search-header-wrapper\">\n <co-input-search class=\"catalog-search-general\"\n [useRightIcon]=\"true\"\n [centerLabel]=\"true\"\n [(model)]=\"catalogSearchService.searchRequest.general\"\n [placeholder]=\"placeholder\"\n [initFocus]=\"true\"\n (search)=\"catalogSearchService.searchArticles()\">\n </co-input-search>\n </div>\n ",
|
|
4191
|
+
template: "\n <div class=\"catalog-search-header-wrapper\">\n <co-input-search class=\"catalog-search-general\"\n [useRightIcon]=\"true\"\n [centerLabel]=\"true\"\n [(model)]=\"catalogSearchService.searchRequest.general\"\n [placeholder]=\"placeholder\"\n [initFocus]=\"true\"\n (search)=\"catalogSearchService.searchArticles()\">\n </co-input-search>\n <co-icon class=\"catalog-search-filter-icon\"\n [iconData]=\"iconCacheService.getIcon(icons.BarsFilter)\"\n (click)=\"filterIconClick.emit()\">\n </co-icon>\n </div>\n ",
|
|
4068
4192
|
encapsulation: i0.ViewEncapsulation.None
|
|
4069
4193
|
},] }
|
|
4070
4194
|
];
|
|
4071
4195
|
CatalogSearchHeaderComponent.ctorParameters = function () { return [
|
|
4072
|
-
{ type: CatalogSearchService }
|
|
4196
|
+
{ type: CatalogSearchService },
|
|
4197
|
+
{ type: IconCacheService }
|
|
4073
4198
|
]; };
|
|
4074
4199
|
CatalogSearchHeaderComponent.propDecorators = {
|
|
4075
4200
|
placeholder: [{ type: i0.Input }],
|
|
4201
|
+
filterIconClick: [{ type: i0.Output }],
|
|
4076
4202
|
showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-search-header',] }]
|
|
4077
4203
|
};
|
|
4078
4204
|
|
|
@@ -4085,7 +4211,8 @@
|
|
|
4085
4211
|
{ type: i0.NgModule, args: [{
|
|
4086
4212
|
imports: [
|
|
4087
4213
|
common.CommonModule,
|
|
4088
|
-
corecomponents_v12.InputSearchModule
|
|
4214
|
+
corecomponents_v12.InputSearchModule,
|
|
4215
|
+
corecomponents_v12.IconModule
|
|
4089
4216
|
],
|
|
4090
4217
|
declarations: [
|
|
4091
4218
|
CatalogSearchHeaderComponent
|
|
@@ -4621,6 +4748,27 @@
|
|
|
4621
4748
|
var CatalogSearchModule = /** @class */ (function () {
|
|
4622
4749
|
function CatalogSearchModule() {
|
|
4623
4750
|
}
|
|
4751
|
+
CatalogSearchModule.ForRoot = function () {
|
|
4752
|
+
return {
|
|
4753
|
+
ngModule: CatalogSearchModule,
|
|
4754
|
+
providers: [
|
|
4755
|
+
SelectSingleCacheService,
|
|
4756
|
+
SelectMultipleCacheService,
|
|
4757
|
+
SelectMultipleParameterizedCacheService,
|
|
4758
|
+
SelectSingleParameterizedCacheService,
|
|
4759
|
+
BusinessObjectCacheManagerService,
|
|
4760
|
+
CatalogImageService,
|
|
4761
|
+
CatalogFilterService,
|
|
4762
|
+
CatalogOptionsService,
|
|
4763
|
+
CatalogConnectorService,
|
|
4764
|
+
CatalogNavigationService,
|
|
4765
|
+
CatalogConnectorAdapterService,
|
|
4766
|
+
CatalogService,
|
|
4767
|
+
CatalogSettingsService,
|
|
4768
|
+
CatalogSearchService
|
|
4769
|
+
]
|
|
4770
|
+
};
|
|
4771
|
+
};
|
|
4624
4772
|
return CatalogSearchModule;
|
|
4625
4773
|
}());
|
|
4626
4774
|
CatalogSearchModule.decorators = [
|
|
@@ -4633,7 +4781,8 @@
|
|
|
4633
4781
|
CatalogSearchResultListModule,
|
|
4634
4782
|
CatalogCategoriesModule,
|
|
4635
4783
|
CatalogExternalSourcesModule,
|
|
4636
|
-
CatalogNavigationModule
|
|
4784
|
+
CatalogNavigationModule,
|
|
4785
|
+
corecomponents_v12.IconModule
|
|
4637
4786
|
],
|
|
4638
4787
|
declarations: [
|
|
4639
4788
|
CatalogSearchComponent
|
|
@@ -4645,55 +4794,95 @@
|
|
|
4645
4794
|
];
|
|
4646
4795
|
|
|
4647
4796
|
var CatalogExternalSourceComponent = /** @class */ (function () {
|
|
4648
|
-
function CatalogExternalSourceComponent(
|
|
4649
|
-
var _this = this;
|
|
4650
|
-
this.catalogService = catalogService;
|
|
4651
|
-
this._appEventService = _appEventService;
|
|
4797
|
+
function CatalogExternalSourceComponent(_sanitizer, _catalogConnectorService) {
|
|
4652
4798
|
this._sanitizer = _sanitizer;
|
|
4653
|
-
this.
|
|
4654
|
-
this.
|
|
4655
|
-
this.
|
|
4656
|
-
this.
|
|
4657
|
-
this.
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
_this.externalSourceFrame.nativeElement.src = _this.catalogService.externalSourceUrl;
|
|
4662
|
-
}
|
|
4663
|
-
}
|
|
4664
|
-
}));
|
|
4799
|
+
this._catalogConnectorService = _catalogConnectorService;
|
|
4800
|
+
this.showFilter = true;
|
|
4801
|
+
this.showNavigation = true;
|
|
4802
|
+
this.articleClick = new i0.EventEmitter();
|
|
4803
|
+
this.showClass = true;
|
|
4804
|
+
this.showCatalog = false;
|
|
4805
|
+
this.loaded = false;
|
|
4806
|
+
this.externalSettings = {};
|
|
4665
4807
|
}
|
|
4666
|
-
CatalogExternalSourceComponent.prototype
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4808
|
+
Object.defineProperty(CatalogExternalSourceComponent.prototype, "externalSource", {
|
|
4809
|
+
get: function () {
|
|
4810
|
+
return this._externalSource;
|
|
4811
|
+
},
|
|
4812
|
+
set: function (value) {
|
|
4813
|
+
this._externalSource = value;
|
|
4814
|
+
this.loaded = false;
|
|
4815
|
+
this._prepareExternalSource();
|
|
4816
|
+
},
|
|
4817
|
+
enumerable: false,
|
|
4818
|
+
configurable: true
|
|
4819
|
+
});
|
|
4820
|
+
CatalogExternalSourceComponent.prototype.handleArticleClick = function (article) {
|
|
4821
|
+
if (article && this.externalSettings) {
|
|
4822
|
+
this.articleClick.emit({ article: article, settings: { name: this.name, settings: this.externalSettings } });
|
|
4823
|
+
}
|
|
4675
4824
|
};
|
|
4676
|
-
CatalogExternalSourceComponent.prototype.
|
|
4677
|
-
return this
|
|
4825
|
+
CatalogExternalSourceComponent.prototype._prepareExternalSource = function () {
|
|
4826
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4827
|
+
var bundleSettings;
|
|
4828
|
+
return __generator(this, function (_a) {
|
|
4829
|
+
switch (_a.label) {
|
|
4830
|
+
case 0:
|
|
4831
|
+
if (!this._externalSource) {
|
|
4832
|
+
return [2 /*return*/];
|
|
4833
|
+
}
|
|
4834
|
+
this.externalUrl = undefined;
|
|
4835
|
+
this.externalSettings = {};
|
|
4836
|
+
if (!(this.externalSource.type === 'CATF')) return [3 /*break*/, 2];
|
|
4837
|
+
return [4 /*yield*/, this._catalogConnectorService.getCatalogBundleSettings(this.externalSource.url, parseInt(this.externalSource.schema))];
|
|
4838
|
+
case 1:
|
|
4839
|
+
bundleSettings = _a.sent();
|
|
4840
|
+
this.externalSettings = JSON.parse(bundleSettings);
|
|
4841
|
+
if (this.options) {
|
|
4842
|
+
this.externalSettings.options = this.options;
|
|
4843
|
+
}
|
|
4844
|
+
if (this.externalSource.username && this.externalSource.password) {
|
|
4845
|
+
this.externalSettings.username = this.externalSource.username;
|
|
4846
|
+
this.externalSettings.password = this.externalSource.password;
|
|
4847
|
+
}
|
|
4848
|
+
// finally show the catalog
|
|
4849
|
+
this.showCatalog = true;
|
|
4850
|
+
return [3 /*break*/, 3];
|
|
4851
|
+
case 2:
|
|
4852
|
+
this.externalUrl = this.externalSource.url;
|
|
4853
|
+
this.safeUrl = this._sanitizer.bypassSecurityTrustResourceUrl(this.externalUrl);
|
|
4854
|
+
this.showCatalog = false;
|
|
4855
|
+
_a.label = 3;
|
|
4856
|
+
case 3:
|
|
4857
|
+
this.loaded = true;
|
|
4858
|
+
return [2 /*return*/];
|
|
4859
|
+
}
|
|
4860
|
+
});
|
|
4861
|
+
});
|
|
4678
4862
|
};
|
|
4679
4863
|
return CatalogExternalSourceComponent;
|
|
4680
4864
|
}());
|
|
4681
4865
|
CatalogExternalSourceComponent.decorators = [
|
|
4682
4866
|
{ type: i0.Component, args: [{
|
|
4683
4867
|
selector: 'co-catalog-external-source',
|
|
4684
|
-
template: "\n <
|
|
4868
|
+
template: "\n <ng-container *ngIf=\"loaded\">\n <ng-container *ngIf=\"showCatalog\">\n <co-catalog-search\n [(settings)]=\"externalSettings\"\n [title]=\"title\"\n [subTitle]=\"subTitle\"\n [searchPlaceholder]=\"searchPlaceholder\"\n [showFilter]=\"showFilter\"\n [showNavigation]=\"showNavigation\"\n (onArticleClick)=\"handleArticleClick($event)\"\n ></co-catalog-search>\n </ng-container>\n <ng-container *ngIf=\"!showCatalog\">\n <iframe width=\"100%\" height=\"100%\" [src]=\"safeUrl\" frameborder=\"0\" allowfullscreen></iframe>\n </ng-container>\n </ng-container>\n ",
|
|
4685
4869
|
encapsulation: i0.ViewEncapsulation.None
|
|
4686
4870
|
},] }
|
|
4687
4871
|
];
|
|
4688
4872
|
CatalogExternalSourceComponent.ctorParameters = function () { return [
|
|
4689
|
-
{ type: CatalogService },
|
|
4690
|
-
{ type: CatalogEventService },
|
|
4691
4873
|
{ type: i1.DomSanitizer },
|
|
4692
|
-
{ type:
|
|
4693
|
-
{ type: i0.Renderer2 }
|
|
4874
|
+
{ type: CatalogConnectorService }
|
|
4694
4875
|
]; };
|
|
4695
4876
|
CatalogExternalSourceComponent.propDecorators = {
|
|
4696
|
-
|
|
4877
|
+
externalSource: [{ type: i0.Input }],
|
|
4878
|
+
title: [{ type: i0.Input }],
|
|
4879
|
+
subTitle: [{ type: i0.Input }],
|
|
4880
|
+
searchPlaceholder: [{ type: i0.Input }],
|
|
4881
|
+
showFilter: [{ type: i0.Input }],
|
|
4882
|
+
showNavigation: [{ type: i0.Input }],
|
|
4883
|
+
options: [{ type: i0.Input }],
|
|
4884
|
+
name: [{ type: i0.Input }],
|
|
4885
|
+
articleClick: [{ type: i0.Output }],
|
|
4697
4886
|
showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-external-source',] }]
|
|
4698
4887
|
};
|
|
4699
4888
|
|
|
@@ -4705,7 +4894,8 @@
|
|
|
4705
4894
|
CatalogExternalSourceModule.decorators = [
|
|
4706
4895
|
{ type: i0.NgModule, args: [{
|
|
4707
4896
|
imports: [
|
|
4708
|
-
common.CommonModule
|
|
4897
|
+
common.CommonModule,
|
|
4898
|
+
CatalogSearchModule.ForRoot()
|
|
4709
4899
|
],
|
|
4710
4900
|
declarations: [
|
|
4711
4901
|
CatalogExternalSourceComponent
|
|
@@ -4720,63 +4910,64 @@
|
|
|
4720
4910
|
* Generated bundle index. Do not edit.
|
|
4721
4911
|
*/
|
|
4722
4912
|
|
|
4913
|
+
exports.BusinessObjectCacheManagerService = BusinessObjectCacheManagerService;
|
|
4723
4914
|
exports.CatalogArticleListModule = CatalogArticleListModule;
|
|
4724
4915
|
exports.CatalogArticleTileModule = CatalogArticleTileModule;
|
|
4725
4916
|
exports.CatalogCategoriesModule = CatalogCategoriesModule;
|
|
4917
|
+
exports.CatalogConnectorAdapterService = CatalogConnectorAdapterService;
|
|
4918
|
+
exports.CatalogConnectorService = CatalogConnectorService;
|
|
4726
4919
|
exports.CatalogEventService = CatalogEventService;
|
|
4727
4920
|
exports.CatalogExternalSourceModule = CatalogExternalSourceModule;
|
|
4728
4921
|
exports.CatalogExternalSourcesModule = CatalogExternalSourcesModule;
|
|
4729
4922
|
exports.CatalogFilterModule = CatalogFilterModule;
|
|
4923
|
+
exports.CatalogFilterService = CatalogFilterService;
|
|
4924
|
+
exports.CatalogImageService = CatalogImageService;
|
|
4730
4925
|
exports.CatalogNavigationModule = CatalogNavigationModule;
|
|
4926
|
+
exports.CatalogNavigationService = CatalogNavigationService;
|
|
4927
|
+
exports.CatalogOptionsService = CatalogOptionsService;
|
|
4731
4928
|
exports.CatalogSearchHeaderModule = CatalogSearchHeaderModule;
|
|
4732
4929
|
exports.CatalogSearchModule = CatalogSearchModule;
|
|
4733
4930
|
exports.CatalogSearchResultListModule = CatalogSearchResultListModule;
|
|
4734
4931
|
exports.CatalogSearchResultTileModule = CatalogSearchResultTileModule;
|
|
4735
4932
|
exports.CatalogSearchService = CatalogSearchService;
|
|
4736
4933
|
exports.CatalogService = CatalogService;
|
|
4934
|
+
exports.CatalogSettingsService = CatalogSettingsService;
|
|
4935
|
+
exports.SelectMultipleCacheService = SelectMultipleCacheService;
|
|
4936
|
+
exports.SelectMultipleParameterizedCacheService = SelectMultipleParameterizedCacheService;
|
|
4937
|
+
exports.SelectSingleCacheService = SelectSingleCacheService;
|
|
4938
|
+
exports.SelectSingleParameterizedCacheService = SelectSingleParameterizedCacheService;
|
|
4737
4939
|
exports.Version = Version;
|
|
4738
4940
|
exports["ɵa"] = CatalogFilterCategoriesModule;
|
|
4739
4941
|
exports["ɵb"] = PipeModule;
|
|
4740
|
-
exports["ɵba"] =
|
|
4741
|
-
exports["ɵbb"] =
|
|
4742
|
-
exports["ɵbc"] =
|
|
4743
|
-
exports["ɵbd"] =
|
|
4744
|
-
exports["ɵbe"] =
|
|
4745
|
-
exports["ɵbf"] = CatalogArticleTileComponent;
|
|
4746
|
-
exports["ɵbg"] = ArticleBaseComponent;
|
|
4747
|
-
exports["ɵbh"] = VisibilityObserverModule;
|
|
4748
|
-
exports["ɵbi"] = VisibilityObserverMasterDirective;
|
|
4749
|
-
exports["ɵbj"] = VisibilityObserverDirective;
|
|
4750
|
-
exports["ɵbk"] = CatalogSearchResultTileComponent;
|
|
4751
|
-
exports["ɵbl"] = CatalogSearchBaseComponent;
|
|
4752
|
-
exports["ɵbm"] = CatalogArticleListComponent;
|
|
4753
|
-
exports["ɵbn"] = CatalogSearchResultListComponent;
|
|
4754
|
-
exports["ɵbo"] = CatalogSearchComponent;
|
|
4755
|
-
exports["ɵbp"] = CatalogExternalSourceComponent;
|
|
4942
|
+
exports["ɵba"] = CatalogSearchBaseComponent;
|
|
4943
|
+
exports["ɵbb"] = CatalogArticleListComponent;
|
|
4944
|
+
exports["ɵbc"] = CatalogSearchResultListComponent;
|
|
4945
|
+
exports["ɵbd"] = CatalogSearchComponent;
|
|
4946
|
+
exports["ɵbe"] = CatalogExternalSourceComponent;
|
|
4756
4947
|
exports["ɵc"] = LocalizePipe;
|
|
4757
4948
|
exports["ɵd"] = DictionaryService;
|
|
4758
4949
|
exports["ɵe"] = CatalogFilterCategoriesComponent;
|
|
4759
4950
|
exports["ɵf"] = CatalogFilterContentGeneralModule;
|
|
4760
4951
|
exports["ɵg"] = CatalogFilterContentGeneralComponent;
|
|
4761
|
-
exports["ɵh"] =
|
|
4762
|
-
exports["ɵi"] =
|
|
4763
|
-
exports["ɵj"] =
|
|
4764
|
-
exports["ɵk"] =
|
|
4765
|
-
exports["ɵl"] =
|
|
4766
|
-
exports["ɵm"] =
|
|
4767
|
-
exports["ɵn"] =
|
|
4768
|
-
exports["ɵo"] =
|
|
4769
|
-
exports["ɵp"] =
|
|
4770
|
-
exports["ɵq"] =
|
|
4771
|
-
exports["ɵr"] =
|
|
4772
|
-
exports["ɵs"] =
|
|
4773
|
-
exports["ɵt"] =
|
|
4774
|
-
exports["ɵu"] =
|
|
4775
|
-
exports["ɵv"] =
|
|
4776
|
-
exports["ɵw"] =
|
|
4777
|
-
exports["ɵx"] =
|
|
4778
|
-
exports["ɵy"] =
|
|
4779
|
-
exports["ɵz"] =
|
|
4952
|
+
exports["ɵh"] = CacheField;
|
|
4953
|
+
exports["ɵi"] = IconCacheService;
|
|
4954
|
+
exports["ɵj"] = CatalogFilterContentPurchaseModule;
|
|
4955
|
+
exports["ɵk"] = CatalogFilterContentPurchaseComponent;
|
|
4956
|
+
exports["ɵl"] = CatalogFilterContentLogisticsModule;
|
|
4957
|
+
exports["ɵm"] = CatalogFilterContentLogisticsComponent;
|
|
4958
|
+
exports["ɵn"] = CatalogFilterComponent;
|
|
4959
|
+
exports["ɵo"] = ResponsiveTextModule;
|
|
4960
|
+
exports["ɵp"] = ResponsiveTextComponent;
|
|
4961
|
+
exports["ɵq"] = CatalogCategoriesComponent;
|
|
4962
|
+
exports["ɵr"] = CatalogExternalSourcesComponent;
|
|
4963
|
+
exports["ɵs"] = CatalogNavigationComponent;
|
|
4964
|
+
exports["ɵt"] = CatalogSearchHeaderComponent;
|
|
4965
|
+
exports["ɵu"] = CatalogArticleTileComponent;
|
|
4966
|
+
exports["ɵv"] = ArticleBaseComponent;
|
|
4967
|
+
exports["ɵw"] = VisibilityObserverModule;
|
|
4968
|
+
exports["ɵx"] = VisibilityObserverMasterDirective;
|
|
4969
|
+
exports["ɵy"] = VisibilityObserverDirective;
|
|
4970
|
+
exports["ɵz"] = CatalogSearchResultTileComponent;
|
|
4780
4971
|
|
|
4781
4972
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4782
4973
|
|