@colijnit/catalog 257.1.0 → 257.1.1
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 +41 -9
- 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/base/article-base.component.js +7 -1
- package/esm2015/lib/component/base/catalog-search-base.component.js +4 -2
- package/esm2015/lib/component/catalog-article-tile/catalog-article-tile.component.js +17 -2
- package/esm2015/lib/component/catalog-article-tile/catalog-article-tile.module.js +4 -3
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.component.js +43 -1
- package/esm2015/lib/component/catalog-search-result-tile/catalog-search-result-tile.component.js +9 -3
- package/esm2015/lib/service/catalog-event.service.js +2 -1
- package/fesm2015/colijnit-catalog.js +81 -8
- package/fesm2015/colijnit-catalog.js.map +1 -1
- package/lib/component/base/article-base.component.d.ts +5 -0
- package/lib/component/base/catalog-search-base.component.d.ts +4 -0
- package/lib/component/catalog-article-tile/catalog-article-tile.component.d.ts +6 -0
- package/lib/component/catalog-article-tile/style/_layout.scss +4 -0
- package/lib/component/catalog-search-result-tile/catalog-search-result-tile.component.d.ts +2 -0
- package/lib/service/catalog-event.service.d.ts +4 -0
- package/package.json +1 -1
|
@@ -40,7 +40,7 @@ import { CategoryDesign } from '@colijnit/articleapi/build/model/category-design
|
|
|
40
40
|
import { ObjectUtils } from '@colijnit/ioneconnector/build/utils/object-utils';
|
|
41
41
|
import { AvaliableCatalogs } from '@colijnit/articleapi/build/model/catalogs-available.bo';
|
|
42
42
|
import { FileUtils } from '@colijnit/ioneconnector/build/utils/file-utils';
|
|
43
|
-
import { FilterViewmodel, FilterItemViewmodel, BaseModuleScreenConfigService, BaseModuleService, SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, ScreenConfigurationModule, FilterItemMode, FilterItemModule, InputTextModule, ButtonModule, IconModule, InputDatePickerModule, IconCollapseHandleModule, CoDialogModule, ListOfValuesModule, CheckmarkOverlayModule, ImageModule, OverlayModule, OverlayService, InputSearchModule, PaginationBarModule, SimpleGridModule } from '@colijnit/corecomponents_v12';
|
|
43
|
+
import { FilterViewmodel, FilterItemViewmodel, BaseModuleScreenConfigService, BaseModuleService, SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, ScreenConfigurationModule, FilterItemMode, FilterItemModule, InputTextModule, ButtonModule, IconModule, InputDatePickerModule, IconCollapseHandleModule, CoDialogModule, ListOfValuesModule, CheckmarkOverlayModule, ImageModule, OverlayModule, OverlayService, InputSearchModule, InputCheckboxModule as InputCheckboxModule$1, PaginationBarModule, SimpleGridModule } from '@colijnit/corecomponents_v12';
|
|
44
44
|
import { PagingParameters } from '@colijnit/ioneconnector/build/model/paging-parameters';
|
|
45
45
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
46
46
|
import * as i1 from '@angular/platform-browser';
|
|
@@ -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 = "257.1.
|
|
61
|
-
this.publishDate = "1
|
|
60
|
+
this.symVer = "257.1.1";
|
|
61
|
+
this.publishDate = "16-1-2025 17:53:40";
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -3654,6 +3654,48 @@ CatalogFilterContentLogisticsComponent.decorators = [
|
|
|
3654
3654
|
[screenConfigurationObjectName]="cfgName.StockMutationFilter"
|
|
3655
3655
|
[mode]="modes.DateRangeField">
|
|
3656
3656
|
</co-catalog-filter-item>
|
|
3657
|
+
<co-catalog-filter-item
|
|
3658
|
+
[placeholder]="'UPDATE_DATE'"
|
|
3659
|
+
[filterOrders]="filterOrders"
|
|
3660
|
+
[screenConfigurationObjectName]="cfgName.WarehouseFilter"
|
|
3661
|
+
[mode]="modes.DateRangeField">
|
|
3662
|
+
</co-catalog-filter-item>
|
|
3663
|
+
<co-catalog-filter-item
|
|
3664
|
+
[placeholder]="'STOCK_MUTATION_DATE'"
|
|
3665
|
+
[filterOrders]="filterOrders"
|
|
3666
|
+
[screenConfigurationObjectName]="cfgName.StockMutationFilter"
|
|
3667
|
+
[mode]="modes.DateRangeField">
|
|
3668
|
+
</co-catalog-filter-item>
|
|
3669
|
+
<co-catalog-filter-item
|
|
3670
|
+
[placeholder]="'STOCK_STATUS'"
|
|
3671
|
+
[filterOrders]="filterOrders"
|
|
3672
|
+
[screenConfigurationObjectName]="cfgName.StockStateFilter"
|
|
3673
|
+
[mode]="modes.Filterlist">
|
|
3674
|
+
</co-catalog-filter-item>
|
|
3675
|
+
<co-catalog-filter-item
|
|
3676
|
+
[placeholder]="'SERIAL_NUMBER'"
|
|
3677
|
+
[filterOrders]="filterOrders"
|
|
3678
|
+
[screenConfigurationObjectName]="cfgName.SerialNumberFilter"
|
|
3679
|
+
[mode]="modes.TextField">
|
|
3680
|
+
</co-catalog-filter-item>
|
|
3681
|
+
<co-catalog-filter-item
|
|
3682
|
+
[placeholder]="'BATCH_NO'"
|
|
3683
|
+
[filterOrders]="filterOrders"
|
|
3684
|
+
[screenConfigurationObjectName]="cfgName.BatchNumberFilter"
|
|
3685
|
+
[mode]="modes.TextField">
|
|
3686
|
+
</co-catalog-filter-item>
|
|
3687
|
+
<co-catalog-filter-item
|
|
3688
|
+
[placeholder]="'SOURCE_WAREHOUSE'"
|
|
3689
|
+
[filterOrders]="filterOrders"
|
|
3690
|
+
[screenConfigurationObjectName]="cfgName.SourceWarehouseFilter"
|
|
3691
|
+
[mode]="modes.Filterlist">
|
|
3692
|
+
</co-catalog-filter-item>
|
|
3693
|
+
<co-catalog-filter-item
|
|
3694
|
+
[placeholder]="'TARGET_WAREHOUSE'"
|
|
3695
|
+
[filterOrders]="filterOrders"
|
|
3696
|
+
[screenConfigurationObjectName]="cfgName.TargetWarehouseFilter"
|
|
3697
|
+
[mode]="modes.Filterlist">
|
|
3698
|
+
</co-catalog-filter-item>
|
|
3657
3699
|
</ng-container>
|
|
3658
3700
|
<ng-container *ngIf="activeStockView === StockView.StockOverview">
|
|
3659
3701
|
<co-catalog-filter-item
|
|
@@ -3915,6 +3957,7 @@ class CatalogEventService {
|
|
|
3915
3957
|
this.arButtonClick = new Subject();
|
|
3916
3958
|
this.articleClick = new Subject();
|
|
3917
3959
|
this.stockDetailsClick = new Subject();
|
|
3960
|
+
this.onArticleCheckboxClicked = new Subject();
|
|
3918
3961
|
}
|
|
3919
3962
|
}
|
|
3920
3963
|
CatalogEventService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CatalogEventService_Factory() { return new CatalogEventService(); }, token: CatalogEventService, providedIn: "root" });
|
|
@@ -4910,6 +4953,7 @@ class CatalogSearchBaseComponent {
|
|
|
4910
4953
|
this.onAddArticleButtonClick = new EventEmitter();
|
|
4911
4954
|
this.onArticleClick = new EventEmitter();
|
|
4912
4955
|
this.onStockDetailsClick = new EventEmitter();
|
|
4956
|
+
this.onArticleCheckboxClicked = new EventEmitter();
|
|
4913
4957
|
this.elements = [];
|
|
4914
4958
|
}
|
|
4915
4959
|
onPreviousClick() {
|
|
@@ -4943,7 +4987,8 @@ CatalogSearchBaseComponent.propDecorators = {
|
|
|
4943
4987
|
onArButtonClick: [{ type: Output }],
|
|
4944
4988
|
onAddArticleButtonClick: [{ type: Output }],
|
|
4945
4989
|
onArticleClick: [{ type: Output }],
|
|
4946
|
-
onStockDetailsClick: [{ type: Output }]
|
|
4990
|
+
onStockDetailsClick: [{ type: Output }],
|
|
4991
|
+
onArticleCheckboxClicked: [{ type: Output }]
|
|
4947
4992
|
};
|
|
4948
4993
|
|
|
4949
4994
|
class ArticleBaseComponent {
|
|
@@ -4965,6 +5010,7 @@ class ArticleBaseComponent {
|
|
|
4965
5010
|
this.hasInfoButton = false;
|
|
4966
5011
|
this.onLookAtArticleButtonClick = new EventEmitter();
|
|
4967
5012
|
this.onArButtonClick = new EventEmitter();
|
|
5013
|
+
this.onArticleCheckboxClicked = new EventEmitter();
|
|
4968
5014
|
this.onAddArticleButtonClick = new EventEmitter();
|
|
4969
5015
|
this.onArticleClick = new EventEmitter();
|
|
4970
5016
|
this.onStockDetailsClick = new EventEmitter();
|
|
@@ -5041,6 +5087,10 @@ class ArticleBaseComponent {
|
|
|
5041
5087
|
this._appEventService.arButtonClick.next(this.article);
|
|
5042
5088
|
this.onArButtonClick.emit(this.article);
|
|
5043
5089
|
}
|
|
5090
|
+
handleCheckboxClicked(checked) {
|
|
5091
|
+
this._appEventService.onArticleCheckboxClicked.next({ article: this.article, selected: checked });
|
|
5092
|
+
this.onArticleCheckboxClicked.emit({ article: this.article, selected: checked });
|
|
5093
|
+
}
|
|
5044
5094
|
removeHtmlTags(desc) {
|
|
5045
5095
|
if (!desc) {
|
|
5046
5096
|
return '';
|
|
@@ -5136,6 +5186,7 @@ ArticleBaseComponent.propDecorators = {
|
|
|
5136
5186
|
externalSource: [{ type: Input }],
|
|
5137
5187
|
onLookAtArticleButtonClick: [{ type: Output }],
|
|
5138
5188
|
onArButtonClick: [{ type: Output }],
|
|
5189
|
+
onArticleCheckboxClicked: [{ type: Output }],
|
|
5139
5190
|
onAddArticleButtonClick: [{ type: Output }],
|
|
5140
5191
|
onArticleClick: [{ type: Output }],
|
|
5141
5192
|
onStockDetailsClick: [{ type: Output }],
|
|
@@ -5150,11 +5201,22 @@ ArticleBaseComponent.propDecorators = {
|
|
|
5150
5201
|
class CatalogArticleTileComponent extends ArticleBaseComponent {
|
|
5151
5202
|
constructor() {
|
|
5152
5203
|
super(...arguments);
|
|
5204
|
+
this.showSelectionCheckbox = false;
|
|
5153
5205
|
this.isReturn = false;
|
|
5206
|
+
this.selectedArticles = [];
|
|
5154
5207
|
}
|
|
5155
5208
|
showClass() {
|
|
5156
5209
|
return true;
|
|
5157
5210
|
}
|
|
5211
|
+
set article(value) {
|
|
5212
|
+
super.article = value;
|
|
5213
|
+
if (this.selectedArticles.length > 0) {
|
|
5214
|
+
this.selected = this.selectedArticles.indexOf(this.article.goodId) > -1;
|
|
5215
|
+
}
|
|
5216
|
+
}
|
|
5217
|
+
get article() {
|
|
5218
|
+
return super.article;
|
|
5219
|
+
}
|
|
5158
5220
|
}
|
|
5159
5221
|
CatalogArticleTileComponent.decorators = [
|
|
5160
5222
|
{ type: Component, args: [{
|
|
@@ -5162,6 +5224,7 @@ CatalogArticleTileComponent.decorators = [
|
|
|
5162
5224
|
template: `
|
|
5163
5225
|
<div class="article-tile-wrapper">
|
|
5164
5226
|
<div class="card-wrapper">
|
|
5227
|
+
<co-input-checkbox class="selection-checkbox" [(model)]="selected" (modelChange)="handleCheckboxClicked($event)" *ngIf="showSelectionCheckbox"></co-input-checkbox>
|
|
5165
5228
|
<div class="image">
|
|
5166
5229
|
<co-image class="co-image" [source]="article.imageData"></co-image>
|
|
5167
5230
|
</div>
|
|
@@ -5240,7 +5303,10 @@ CatalogArticleTileComponent.decorators = [
|
|
|
5240
5303
|
CatalogArticleTileComponent.propDecorators = {
|
|
5241
5304
|
showClass: [{ type: HostBinding, args: ['class.co-catalog-article-tile',] }],
|
|
5242
5305
|
isHomeDecoHub: [{ type: Input }],
|
|
5243
|
-
|
|
5306
|
+
showSelectionCheckbox: [{ type: Input }],
|
|
5307
|
+
isReturn: [{ type: Input }],
|
|
5308
|
+
selectedArticles: [{ type: Input }],
|
|
5309
|
+
article: [{ type: Input }]
|
|
5244
5310
|
};
|
|
5245
5311
|
|
|
5246
5312
|
class CatalogSearchResultTileComponent extends CatalogSearchBaseComponent {
|
|
@@ -5249,6 +5315,8 @@ class CatalogSearchResultTileComponent extends CatalogSearchBaseComponent {
|
|
|
5249
5315
|
this.showClass = true;
|
|
5250
5316
|
this.smallScrollbar = true;
|
|
5251
5317
|
this.isReturn = false;
|
|
5318
|
+
this.showSelectionCheckbox = false;
|
|
5319
|
+
this.selectedArticles = [];
|
|
5252
5320
|
}
|
|
5253
5321
|
set viewChildren(children) {
|
|
5254
5322
|
if (children) {
|
|
@@ -5265,6 +5333,7 @@ CatalogSearchResultTileComponent.decorators = [
|
|
|
5265
5333
|
<co-catalog-article-tile
|
|
5266
5334
|
visibilityObserver
|
|
5267
5335
|
#intersection="intersection"
|
|
5336
|
+
[selectedArticles]="selectedArticles"
|
|
5268
5337
|
[observerEnabled]="!article.imageData"
|
|
5269
5338
|
[createFrozenArticle]="createFrozenArticle"
|
|
5270
5339
|
[showing]="intersection.isIntersecting"
|
|
@@ -5272,12 +5341,13 @@ CatalogSearchResultTileComponent.decorators = [
|
|
|
5272
5341
|
[isHomeDecoHub]="isHomeDecoHub"
|
|
5273
5342
|
[externalSource]="externalSource"
|
|
5274
5343
|
[isReturn]="isReturn"
|
|
5344
|
+
[showSelectionCheckbox]="showSelectionCheckbox"
|
|
5275
5345
|
(onArticleClick)="onArticleClick.emit($event)"
|
|
5276
5346
|
(onAddArticleButtonClick)="onAddArticleButtonClick.emit($event)"
|
|
5277
5347
|
(onArButtonClick)="onArButtonClick.emit($event)"
|
|
5278
5348
|
(onLookAtArticleButtonClick)="onLookAtArticleButtonClick.emit($event)"
|
|
5279
5349
|
(onStockDetailsClick)="onStockDetailsClick.emit($event)"
|
|
5280
|
-
|
|
5350
|
+
(onArticleCheckboxClicked)="onArticleCheckboxClicked.emit($event)">
|
|
5281
5351
|
</co-catalog-article-tile>
|
|
5282
5352
|
</ng-container>
|
|
5283
5353
|
</div>
|
|
@@ -5303,7 +5373,9 @@ CatalogSearchResultTileComponent.propDecorators = {
|
|
|
5303
5373
|
showClass: [{ type: HostBinding, args: ['class.co-catalog-search-result-tile',] }],
|
|
5304
5374
|
smallScrollbar: [{ type: HostBinding, args: ['class.co-small-scrollbar',] }],
|
|
5305
5375
|
isHomeDecoHub: [{ type: Input }],
|
|
5306
|
-
isReturn: [{ type: Input }]
|
|
5376
|
+
isReturn: [{ type: Input }],
|
|
5377
|
+
showSelectionCheckbox: [{ type: Input }],
|
|
5378
|
+
selectedArticles: [{ type: Input }]
|
|
5307
5379
|
};
|
|
5308
5380
|
|
|
5309
5381
|
class CatalogArticleTileModule {
|
|
@@ -5317,7 +5389,8 @@ CatalogArticleTileModule.decorators = [
|
|
|
5317
5389
|
PriceDisplayPipeModule,
|
|
5318
5390
|
ButtonModule$1,
|
|
5319
5391
|
ImageModule,
|
|
5320
|
-
CatalogPipeModule
|
|
5392
|
+
CatalogPipeModule,
|
|
5393
|
+
InputCheckboxModule$1
|
|
5321
5394
|
],
|
|
5322
5395
|
declarations: [
|
|
5323
5396
|
CatalogArticleTileComponent
|