@colijnit/catalog 255.1.6 → 255.1.7
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 +19 -17
- package/bundles/colijnit-catalog.umd.js.map +1 -1
- package/colijnit-catalog.metadata.json +1 -1
- package/esm2015/lib/catalog-version.js +3 -3
- package/esm2015/lib/component/catalog-external-source/catalog-external-source.component.js +35 -28
- package/esm2015/lib/component/catalog-search/catalog-search.component.js +2 -2
- package/esm2015/lib/service/catalog-connector-adapter.service.js +14 -14
- package/esm2015/lib/service/catalog-connector.service.js +1 -1
- package/esm2015/lib/service/catalog.service.js +1 -1
- package/fesm2015/colijnit-catalog.js +36 -29
- package/fesm2015/colijnit-catalog.js.map +1 -1
- package/lib/component/catalog-external-source/catalog-external-source.component.d.ts +6 -12
- package/lib/service/catalog-connector-adapter.service.d.ts +10 -10
- package/lib/service/catalog-connector.service.d.ts +10 -10
- package/lib/service/catalog.service.d.ts +2 -2
- package/package.json +2 -2
- package/esm2015/lib/enum/external-settings.interface.js +0 -2
- package/lib/enum/external-settings.interface.d.ts +0 -4
|
@@ -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 = "255.1.
|
|
34
|
-
this.publishDate = "
|
|
33
|
+
this.symVer = "255.1.7";
|
|
34
|
+
this.publishDate = "4-9-2024 12:05:35";
|
|
35
35
|
}
|
|
36
36
|
return Version;
|
|
37
37
|
}());
|
|
@@ -5815,16 +5815,6 @@
|
|
|
5815
5815
|
enumerable: false,
|
|
5816
5816
|
configurable: true
|
|
5817
5817
|
});
|
|
5818
|
-
Object.defineProperty(CatalogExternalSourceComponent.prototype, "catalogDefinitionId", {
|
|
5819
|
-
get: function () {
|
|
5820
|
-
return this._catalogDefinitionId;
|
|
5821
|
-
},
|
|
5822
|
-
set: function (value) {
|
|
5823
|
-
this._catalogDefinitionId = value;
|
|
5824
|
-
},
|
|
5825
|
-
enumerable: false,
|
|
5826
|
-
configurable: true
|
|
5827
|
-
});
|
|
5828
5818
|
Object.defineProperty(CatalogExternalSourceComponent.prototype, "externalCatalogStartupInfo", {
|
|
5829
5819
|
get: function () {
|
|
5830
5820
|
return this._externalCatalogStartupInfo;
|
|
@@ -5842,13 +5832,23 @@
|
|
|
5842
5832
|
var _this = this;
|
|
5843
5833
|
this._subs.push(this._appEventService.addArticleButtonClick.subscribe(function (article) {
|
|
5844
5834
|
if (!(article instanceof articleExtended_bo.ArticleExtended)) {
|
|
5845
|
-
_this.addArticleClick.next({
|
|
5835
|
+
_this.addArticleClick.next({
|
|
5836
|
+
quantity: 1,
|
|
5837
|
+
article: article,
|
|
5838
|
+
catalogDefinition: _this.catalogDefinition,
|
|
5839
|
+
externalSource: _this._externalSource
|
|
5840
|
+
});
|
|
5846
5841
|
}
|
|
5847
5842
|
}));
|
|
5848
5843
|
};
|
|
5849
5844
|
CatalogExternalSourceComponent.prototype.handleArticleClick = function (article) {
|
|
5850
5845
|
if (article && this.externalSettings) {
|
|
5851
|
-
this.articleClick.emit({
|
|
5846
|
+
this.articleClick.emit({
|
|
5847
|
+
article: article,
|
|
5848
|
+
settings: { name: this.name, settings: this.externalSettings },
|
|
5849
|
+
catalogDefinition: this.catalogDefinition,
|
|
5850
|
+
externalSource: this._externalSource
|
|
5851
|
+
});
|
|
5852
5852
|
}
|
|
5853
5853
|
};
|
|
5854
5854
|
CatalogExternalSourceComponent.prototype.receiveMessage = function (event) {
|
|
@@ -5918,7 +5918,9 @@
|
|
|
5918
5918
|
}
|
|
5919
5919
|
this.safeUrl = this._sanitizer.bypassSecurityTrustResourceUrl(this.externalUrl);
|
|
5920
5920
|
this.showCatalog = false;
|
|
5921
|
-
window.addEventListener(
|
|
5921
|
+
window.addEventListener('message', function (event) {
|
|
5922
|
+
_this.receiveMessage(event);
|
|
5923
|
+
});
|
|
5922
5924
|
_a.label = 3;
|
|
5923
5925
|
case 3:
|
|
5924
5926
|
this.loaded = true;
|
|
@@ -5932,7 +5934,7 @@
|
|
|
5932
5934
|
CatalogExternalSourceComponent.decorators = [
|
|
5933
5935
|
{ type: i0.Component, args: [{
|
|
5934
5936
|
selector: 'co-catalog-external-source',
|
|
5935
|
-
template: "\n
|
|
5937
|
+
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 #catalogFrame width=\"100%\" height=\"100%\" [src]=\"safeUrl\" frameborder=\"0\" allowfullscreen\n (load)=\"iframeLoaded($event)\"></iframe>\n </ng-container>\n </ng-container>\n ",
|
|
5936
5938
|
encapsulation: i0.ViewEncapsulation.None
|
|
5937
5939
|
},] }
|
|
5938
5940
|
];
|
|
@@ -5943,7 +5945,7 @@
|
|
|
5943
5945
|
]; };
|
|
5944
5946
|
CatalogExternalSourceComponent.propDecorators = {
|
|
5945
5947
|
container: [{ type: i0.ViewChild, args: ['catalogFrame', { read: i0.ElementRef },] }],
|
|
5946
|
-
|
|
5948
|
+
catalogDefinition: [{ type: i0.Input }],
|
|
5947
5949
|
user: [{ type: i0.Input }],
|
|
5948
5950
|
externalCatalogStartupInfo: [{ type: i0.Input }],
|
|
5949
5951
|
title: [{ type: i0.Input }],
|