@colijnit/catalog 256.1.17 → 256.1.19
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 +22 -12
- package/bundles/colijnit-catalog.umd.js.map +1 -1
- package/colijnit-catalog-256.1.18.tgz +0 -0
- package/colijnit-catalog.metadata.json +1 -1
- package/esm2015/lib/catalog-version.js +3 -3
- package/esm2015/lib/component/catalog-external-sources/catalog-external-sources.component.js +4 -2
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.js +23 -8
- package/esm2015/lib/enum/config-name.enum.js +3 -2
- package/esm2015/lib/service/catalog-connector-adapter.service.js +3 -3
- package/esm2015/lib/service/catalog-connector.service.js +3 -3
- package/fesm2015/colijnit-catalog.js +31 -14
- package/fesm2015/colijnit-catalog.js.map +1 -1
- package/lib/component/catalog-external-sources/catalog-external-sources.component.d.ts +1 -0
- package/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.d.ts +5 -1
- package/lib/enum/config-name.enum.d.ts +2 -1
- package/lib/service/catalog-connector-adapter.service.d.ts +1 -1
- package/lib/service/catalog-connector.service.d.ts +1 -1
- package/package.json +2 -2
- package/colijnit-catalog-256.1.16.tgz +0 -0
|
@@ -57,8 +57,8 @@ class Version {
|
|
|
57
57
|
constructor() {
|
|
58
58
|
this.name = "@colijnit/catalog";
|
|
59
59
|
this.description = "iOne Catalog module based on Angular 12";
|
|
60
|
-
this.symVer = "256.1.
|
|
61
|
-
this.publishDate = "
|
|
60
|
+
this.symVer = "256.1.19";
|
|
61
|
+
this.publishDate = "9-1-2025 13:13:48";
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -800,9 +800,9 @@ class CatalogConnectorAdapterService {
|
|
|
800
800
|
}
|
|
801
801
|
});
|
|
802
802
|
}
|
|
803
|
-
getAvailabeCatalogsForLoggedInUser() {
|
|
803
|
+
getAvailabeCatalogsForLoggedInUser(forRoomplanner) {
|
|
804
804
|
return __awaiter(this, void 0, void 0, function* () {
|
|
805
|
-
const response = yield this.relationConnector.getAvailabeCatalogsForLoggedInUser(true);
|
|
805
|
+
const response = yield this.relationConnector.getAvailabeCatalogsForLoggedInUser(forRoomplanner, true);
|
|
806
806
|
if (response && response.validationResult && response.validationResult.success) {
|
|
807
807
|
return response;
|
|
808
808
|
}
|
|
@@ -1631,10 +1631,10 @@ class CatalogConnectorService {
|
|
|
1631
1631
|
return this._adapterService.getCategoryDesigns();
|
|
1632
1632
|
});
|
|
1633
1633
|
}
|
|
1634
|
-
getAvailabeCatalogsForLoggedInUser() {
|
|
1634
|
+
getAvailabeCatalogsForLoggedInUser(forRoomplanner) {
|
|
1635
1635
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1636
1636
|
return this._selectMultipleCacheService.requestCache(AvaliableCatalogs, () => {
|
|
1637
|
-
return this._adapterService.getAvailabeCatalogsForLoggedInUser();
|
|
1637
|
+
return this._adapterService.getAvailabeCatalogsForLoggedInUser(forRoomplanner);
|
|
1638
1638
|
}).getValue();
|
|
1639
1639
|
});
|
|
1640
1640
|
}
|
|
@@ -2656,7 +2656,8 @@ var ConfigNameEnum;
|
|
|
2656
2656
|
ConfigNameEnum["SourceWarehouseFilter"] = "sourceWarehouseFilter";
|
|
2657
2657
|
ConfigNameEnum["TargetWarehouseFilter"] = "targetWarehouseFilter";
|
|
2658
2658
|
ConfigNameEnum["PricelistSalesFilter"] = "pricelistSalesFilter";
|
|
2659
|
-
ConfigNameEnum["ArticleKindFilter"] = "
|
|
2659
|
+
ConfigNameEnum["ArticleKindFilter"] = "articleKindFilter";
|
|
2660
|
+
ConfigNameEnum["ActiveFilter"] = "activeFilter";
|
|
2660
2661
|
})(ConfigNameEnum || (ConfigNameEnum = {}));
|
|
2661
2662
|
|
|
2662
2663
|
class CatalogFilterComponent {
|
|
@@ -2937,12 +2938,13 @@ CatalogFilterCategoriesModule.decorators = [
|
|
|
2937
2938
|
];
|
|
2938
2939
|
|
|
2939
2940
|
class CatalogFilterContentGeneralComponent {
|
|
2940
|
-
constructor(catalogSearchService, filterService, iconCache, _catalogConnectorService, _adapterService) {
|
|
2941
|
+
constructor(catalogSearchService, filterService, iconCache, _catalogConnectorService, _adapterService, _dictionaryService) {
|
|
2941
2942
|
this.catalogSearchService = catalogSearchService;
|
|
2942
2943
|
this.filterService = filterService;
|
|
2943
2944
|
this.iconCache = iconCache;
|
|
2944
2945
|
this._catalogConnectorService = _catalogConnectorService;
|
|
2945
2946
|
this._adapterService = _adapterService;
|
|
2947
|
+
this._dictionaryService = _dictionaryService;
|
|
2946
2948
|
this.filterOrders = [];
|
|
2947
2949
|
this.icons = IconEnum;
|
|
2948
2950
|
this.cfgName = ConfigNameEnum;
|
|
@@ -2969,7 +2971,6 @@ class CatalogFilterContentGeneralComponent {
|
|
|
2969
2971
|
this.catalogSearchService.searchRequest["showConfigurableArticles"] = value;
|
|
2970
2972
|
this.catalogSearchService.searchRequest["showCompositionArticles"] = value;
|
|
2971
2973
|
this.catalogSearchService.searchRequest["showCustomizedArticles"] = value;
|
|
2972
|
-
this.catalogSearchService.searchRequest["showInactiveArticles"] = value;
|
|
2973
2974
|
}
|
|
2974
2975
|
_setCollections() {
|
|
2975
2976
|
this._setStoreGroups();
|
|
@@ -2983,6 +2984,7 @@ class CatalogFilterContentGeneralComponent {
|
|
|
2983
2984
|
this._setDoSyncValues();
|
|
2984
2985
|
this._setCategoryTypes();
|
|
2985
2986
|
this._setCategoryDesigns();
|
|
2987
|
+
this._setActiveOptions();
|
|
2986
2988
|
}
|
|
2987
2989
|
_setStoreGroups() {
|
|
2988
2990
|
this._catalogConnectorService.getStoreGroups().then((storeGroups) => {
|
|
@@ -3034,6 +3036,11 @@ class CatalogFilterContentGeneralComponent {
|
|
|
3034
3036
|
this.categoryDesigns = this.filterService.createFilterSelectionsCollection(categoryDesignsCollection, "catDesignCode", "description");
|
|
3035
3037
|
});
|
|
3036
3038
|
}
|
|
3039
|
+
_setActiveOptions() {
|
|
3040
|
+
this.activeOptions = [];
|
|
3041
|
+
this.activeOptions.push(new FilterItemViewmodel('Y', this._dictionaryService.get('YES'), false));
|
|
3042
|
+
this.activeOptions.push(new FilterItemViewmodel('N', this._dictionaryService.get('NO'), false));
|
|
3043
|
+
}
|
|
3037
3044
|
_setPriceList() {
|
|
3038
3045
|
let tempPriceListsSalesCollection = [];
|
|
3039
3046
|
this._catalogConnectorService.getPriceLists().then((priceLists) => {
|
|
@@ -3129,6 +3136,16 @@ CatalogFilterContentGeneralComponent.decorators = [
|
|
|
3129
3136
|
[screenConfigurationObjectName]="cfgName.DepthFilter"
|
|
3130
3137
|
>
|
|
3131
3138
|
</co-catalog-filter-item>
|
|
3139
|
+
<co-catalog-filter-item class="filter-item-wrapper"
|
|
3140
|
+
[placeholder]="'ACTIVE'"
|
|
3141
|
+
[filterOrders]="filterOrders"
|
|
3142
|
+
[mode]="modes.Filterlist"
|
|
3143
|
+
[(model)]="catalogSearchService.searchRequest.active"
|
|
3144
|
+
[collection]="activeOptions"
|
|
3145
|
+
[expanded]="false"
|
|
3146
|
+
[screenConfigurationObjectName]="cfgName.ActiveFilter"
|
|
3147
|
+
>
|
|
3148
|
+
</co-catalog-filter-item>
|
|
3132
3149
|
<co-catalog-filter-item class="filter-item-wrapper"
|
|
3133
3150
|
[placeholder]="'ARTICLE_TYPE'"
|
|
3134
3151
|
[filterOrders]="filterOrders"
|
|
@@ -3152,9 +3169,6 @@ CatalogFilterContentGeneralComponent.decorators = [
|
|
|
3152
3169
|
<co-input-checkbox
|
|
3153
3170
|
[label]="'SHOW_CUSTOMIZED_ARTICLES' | caLocalize"
|
|
3154
3171
|
[(model)]="catalogSearchService.searchRequest.showCustomizedArticles"></co-input-checkbox>
|
|
3155
|
-
<co-input-checkbox
|
|
3156
|
-
[label]="'SHOW_INACTIVE_ARTICLES' | caLocalize"
|
|
3157
|
-
[(model)]="catalogSearchService.searchRequest.showInactiveArticles"></co-input-checkbox>
|
|
3158
3172
|
</co-catalog-filter-item>
|
|
3159
3173
|
<co-catalog-filter-item class="filter-item-wrapper"
|
|
3160
3174
|
[placeholder]="'COLOR'"
|
|
@@ -3284,7 +3298,8 @@ CatalogFilterContentGeneralComponent.ctorParameters = () => [
|
|
|
3284
3298
|
{ type: CatalogFilterService },
|
|
3285
3299
|
{ type: IconCacheService },
|
|
3286
3300
|
{ type: CatalogConnectorService },
|
|
3287
|
-
{ type: CatalogConnectorAdapterService }
|
|
3301
|
+
{ type: CatalogConnectorAdapterService },
|
|
3302
|
+
{ type: CatalogDictionaryService }
|
|
3288
3303
|
];
|
|
3289
3304
|
CatalogFilterContentGeneralComponent.propDecorators = {
|
|
3290
3305
|
filterOrders: [{ type: Input }],
|
|
@@ -4155,6 +4170,7 @@ class CatalogExternalSourcesComponent {
|
|
|
4155
4170
|
this._settingsService = _settingsService;
|
|
4156
4171
|
this._catalogService = _catalogService;
|
|
4157
4172
|
this.isStandalone = false;
|
|
4173
|
+
this.roomplanner = false;
|
|
4158
4174
|
this.externalSourceClick = new EventEmitter();
|
|
4159
4175
|
this.externalSourceViewModels = [];
|
|
4160
4176
|
this.unavailableCatalogs = [];
|
|
@@ -4169,7 +4185,7 @@ class CatalogExternalSourcesComponent {
|
|
|
4169
4185
|
yield this._catalogService.init(this._settings, true);
|
|
4170
4186
|
this.externalSourceViewModels.length = 0;
|
|
4171
4187
|
if (!this.isStandalone) {
|
|
4172
|
-
this._catalogConnectorService.getAvailabeCatalogsForLoggedInUser().then(result => {
|
|
4188
|
+
this._catalogConnectorService.getAvailabeCatalogsForLoggedInUser(this.roomplanner).then(result => {
|
|
4173
4189
|
if (result['validationResult']['success'] === true) {
|
|
4174
4190
|
if (result['resultObject']['availableCatalogs']) {
|
|
4175
4191
|
let availableCatalogs = [];
|
|
@@ -4254,6 +4270,7 @@ CatalogExternalSourcesComponent.ctorParameters = () => [
|
|
|
4254
4270
|
];
|
|
4255
4271
|
CatalogExternalSourcesComponent.propDecorators = {
|
|
4256
4272
|
isStandalone: [{ type: Input }],
|
|
4273
|
+
roomplanner: [{ type: Input }],
|
|
4257
4274
|
externalSourceClick: [{ type: Output }],
|
|
4258
4275
|
showClass: [{ type: HostBinding, args: ['class.co-catalog-external-sources',] }]
|
|
4259
4276
|
};
|