@colijnit/catalog 12.1.65 → 12.1.66

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.
@@ -52,6 +52,7 @@ export declare abstract class ArticleBaseComponent {
52
52
  stockLabel: string;
53
53
  deliveryTimeLabel: string;
54
54
  inStock: boolean;
55
+ stockAmount: string;
55
56
  private _article;
56
57
  constructor(iconCache: IconCacheService, catalogService: CatalogService, options: CatalogOptionsService, _iOne: CatalogConnectorService, _changeDetector: ChangeDetectorRef, _appEventService: CatalogEventService, _imageService: CatalogImageService, _settingsService: CatalogSettingsService, _dictionaryService: DictionaryService);
57
58
  handleLookAtArticleButtonClick(event: MouseEvent): void;
@@ -9,7 +9,6 @@
9
9
  padding: $co-catalog-article-tile-padding;
10
10
  display: flex;
11
11
  flex-direction: column;
12
- //justify-content: space-between;
13
12
  &:hover {
14
13
  cursor: pointer;
15
14
  border-style: $co-catalog-article-tile-hover-border-style;
@@ -20,14 +19,8 @@
20
19
  transition: all .2s ease;
21
20
  }
22
21
  .extended-shadow-wrapper {
23
- /*display: flex;*/
24
22
  z-index: 1;
25
23
  }
26
- //.card-wrapper {
27
- // overflow: hidden;
28
- // flex-shrink: 0;
29
- //
30
- //}
31
24
  .description-wrapper {
32
25
  .main {
33
26
  .main-bottom {
@@ -100,7 +93,6 @@
100
93
  align-items: flex-end;
101
94
  width: 100%;
102
95
  }
103
-
104
96
  .on-article-buttons {
105
97
  pointer-events: none;
106
98
  display: flex;
@@ -132,569 +124,100 @@
132
124
  }
133
125
  }
134
126
  }
135
-
136
- //.main {
137
- // padding: 0;
138
- // width: 100%;
139
-
140
- .turnover {
141
- font-size: 12px;
142
- margin: 0;
143
- }
144
-
145
- .added-description {
146
- font-size: 11px;
147
- height: 20px;
148
- text-overflow: ellipsis;
149
- white-space: nowrap;
150
- overflow: hidden;
151
- -moz-hyphens: auto;
152
- -ms-hyphens: auto;
153
- -webkit-hyphens: auto;
154
- display: block;
155
- hyphens: auto;
156
- width: 100%;
157
- margin: 5px 0;
158
- word-wrap: break-word;
159
- }
160
-
161
- .description {
162
- font-size: 14px;
163
- font-weight: bold;
164
- margin: 10px 0 5px;
165
- text-overflow: ellipsis;
166
- white-space: nowrap;
167
- overflow: hidden;
168
- -moz-hyphens: auto;
169
- -ms-hyphens: auto;
170
- -webkit-hyphens: auto;
171
- hyphens: auto;
172
- }
173
-
174
- .name {
175
- font-size: 14px;
176
- font-weight: normal;
177
- margin: 10px 0 5px;
178
- text-overflow: ellipsis;
179
- white-space: nowrap;
180
- overflow: hidden;
181
- -moz-hyphens: auto;
182
- -ms-hyphens: auto;
183
- -webkit-hyphens: auto;
184
- hyphens: auto;
185
- }
186
-
187
- .delivery {
188
- font-size: 12px;
189
- font-weight: bold;
190
- margin: 20px 0 0;
191
- display: flex;
192
- align-items: flex-start;
193
- justify-content: center;
194
- flex-direction: column;
195
-
196
- ::ng-deep co-level-indicator {
197
- height: 30px;
198
-
199
- > div {
200
- justify-content: start;
201
-
202
- div[class*="square-"] {
203
- background: $co-catalog-article-tile-border-color;
204
- width: 14px;
205
- height: 14px;
206
- margin: 0 3px 0 0;
207
- }
208
- }
209
- }
210
-
211
- }
212
-
213
- .price {
214
- font-size: 16px;
215
- margin: 10px 0 10px 0;
216
- font-weight: 500;
217
- letter-spacing: -0.5px;
218
- }
219
-
220
- .stock {
221
- font-size: 11px;
222
- font-weight: 500;
223
- text-decoration: underline;
224
- padding: 5px 0;
225
- }
226
-
227
- .stock.not-in-stock {
228
- }
229
-
230
- .sku {
231
- font-size: 11px;
232
- margin: 5px 0 5px;
233
- text-transform: lowercase;
234
- }
235
- //}
236
- }
237
-
238
- //div.image {
239
- // position: relative;
240
- // padding: 1px;
241
- // display: flex;
242
- // align-items: center;
243
- // justify-content: center;
244
- // overflow: hidden;
245
- // max-width: 190px;
246
- // margin: 0 auto;
247
- //
248
- // &:after {
249
- // content: '';
250
- // padding: 100% 0 0;
251
- // float: left;
252
- // width: 100%;
253
- // }
254
- //
255
- // ::ng-deep co-image {
256
- // position: absolute;
257
- // left: 0;
258
- // top: 0;
259
- // overflow: hidden;
260
- // width: 100%;
261
- // height: 100%;
262
- // object-fit: contain;
263
- // z-index: -1;
264
- // transition: all .2s ease;
265
- //
266
- // img {
267
- // position: absolute;
268
- // width: auto;
269
- // height: auto;
270
- // top: 50%;
271
- // left: 50%;
272
- // transform: translate(-50%, -50%);
273
- // }
274
- // }
275
- //}
276
-
277
- /*
278
- &.list-card {
279
- .list-wrapper {
280
- .card-wrapper {
281
- display: flex;
282
- flex-direction: row;
283
- align-items: center;
284
-
285
- .left {
286
- min-width: 200px;
287
- }
288
-
289
- .right {
290
- display: flex;
291
- flex-direction: column;
292
- justify-content: center;
293
-
294
- .on-article-buttons {
295
- pointer-events: none;
296
- display: flex;
297
- flex-direction: column;
298
- justify-content: flex-end;
299
- margin: 15px 0;
300
- transition: all .2s ease-in-out;
301
-
302
- > co-button {
303
- pointer-events: all;
304
- padding: 0 15px !important;
305
- width: 150px;
306
- height: 42px;
307
- text-align: center;
308
- margin: 0;
309
- gap: 10px;
310
- border-radius: 5px;
311
- background: #3E7EFF;
312
- cursor: pointer;
313
- justify-content: flex-start;
314
-
315
- &:hover {
316
- opacity: 0.8;
317
- }
318
-
319
- ::ng-deep co-icon {
320
- width: 34px;
321
- height: 34px;
322
- }
323
- }
324
- }
325
-
326
- .price {
327
- font-size: 18px;
328
- color: #404040;
329
- font-weight: 500;
330
- letter-spacing: -0.5px;
331
- }
332
-
333
- .stock {
334
- color: #32a545;
335
- font-size: 12px;
336
- font-weight: 500;
337
- text-decoration: underline;
338
- margin-top: 5px;
339
- }
340
-
341
- .stock.not-in-stock {
342
- color: #5b6875;
343
- }
344
- }
345
-
346
- .description-wrapper {
347
- .main-bottom {
348
- .description {
349
- span {
350
- display: block;
351
-
352
- &.label {
353
- font-size: 11px;
354
- color: #5b6875;
355
- margin: 5px 0;
356
- font-weight: normal;
357
- }
358
-
359
- &.text {
360
- font-weight: normal;
361
- font-size: 12px;
362
- }
363
- }
364
- }
365
- }
366
- }
367
- }
368
- }
127
+ .turnover {
128
+ font-size: 12px;
129
+ margin: 0;
369
130
  }
370
- }
371
-
372
- .extended-shadow-wrapper {
373
- display: none;
374
- position: absolute;
375
- padding: 20px 20px 40px 20px;
376
- top: calc(100% - 2px);
377
- width: calc(100% - 40px);
378
- background-color: #fafafa;
379
- box-shadow: 0px 0px 13px -2px rgba(0, 0, 0, 0.2);
380
131
 
381
- .extended {
382
- display: grid;
383
- grid-template-columns: 50% 50%;
384
- grid-row-gap: 10px;
385
- grid-column-gap: 15px;
386
-
387
- app-label-field:nth-child(odd):not(:last-child) {
388
- border-right: 1px solid $co-catalog-article-tile-border-color;
389
- }
132
+ .added-description {
133
+ font-size: 11px;
134
+ height: 20px;
135
+ text-overflow: ellipsis;
136
+ white-space: nowrap;
137
+ overflow: hidden;
138
+ -moz-hyphens: auto;
139
+ -ms-hyphens: auto;
140
+ -webkit-hyphens: auto;
141
+ display: block;
142
+ hyphens: auto;
143
+ width: 100%;
144
+ margin: 5px 0;
145
+ word-wrap: break-word;
390
146
  }
391
- }
392
147
 
393
- .no-image-wrapper {
394
- //position: absolute;
395
- //display: flex;
396
- //left: 50%;
397
- //top: 50%;
398
- //margin: -48px 0 0 -40px;
399
- //flex-direction: column;
400
- //align-items: center;
401
- //opacity: 0.25;
402
- //
403
- //.no-image {
404
- // height: 80px;
405
- // width: 80px;
406
- //}
407
- //
408
- //span {
409
- // font-size: 13px;
410
- //}
411
- }
412
-
413
- .right-aligned {
414
- //margin-left: auto;
415
- //display: flex;
416
- //align-items: center;
417
- }
418
-
419
- .card-wrapper {
420
- //overflow: hidden;
421
- //flex-shrink: 0;
422
- //
423
- //.top {
424
- // height: 50px;
425
- // position: absolute;
426
- // left: 0;
427
- // top: 0;
428
- //}
429
- //
430
- //.button-wrapper {
431
- // height: 30px;
432
- // position: absolute;
433
- // left: 0;
434
- // top: 0;
435
- //
436
- // ::ng-deep co-icon {
437
- // display: inline-block;
438
- // width: 30px;
439
- // height: 30px;
440
- // }
441
- //}
442
- //
443
- }
444
-
445
- .description-wrapper {
446
- display: flex;
447
- flex-shrink: 1;
448
- flex-grow: 1;
449
- justify-content: space-between;
450
- min-height: 40px;
451
- padding: 15px 0 15px;
452
- z-index: 9;
453
- align-items: flex-start;
148
+ .description {
149
+ font-size: 14px;
150
+ font-weight: bold;
151
+ margin: 10px 0 5px;
152
+ text-overflow: ellipsis;
153
+ white-space: nowrap;
154
+ overflow: hidden;
155
+ -moz-hyphens: auto;
156
+ -ms-hyphens: auto;
157
+ -webkit-hyphens: auto;
158
+ hyphens: auto;
159
+ }
454
160
 
455
- .main-bottom {
456
- display: flex;
457
- justify-content: space-between;
161
+ .name {
162
+ font-size: 14px;
163
+ font-weight: normal;
164
+ margin: 10px 0 5px;
165
+ text-overflow: ellipsis;
166
+ white-space: nowrap;
167
+ overflow: hidden;
168
+ -moz-hyphens: auto;
169
+ -ms-hyphens: auto;
170
+ -webkit-hyphens: auto;
171
+ hyphens: auto;
458
172
  }
459
173
 
460
- .on-article-buttons {
461
- pointer-events: none;
174
+ .delivery {
175
+ font-size: 12px;
176
+ font-weight: bold;
177
+ margin: 20px 0 0;
462
178
  display: flex;
179
+ align-items: flex-start;
180
+ justify-content: center;
463
181
  flex-direction: column;
464
- justify-content: flex-end;
465
- margin: 0 5px 0 0;
466
- transition: all .2s ease-in-out;
467
182
 
468
- > co-button {
469
- pointer-events: all;
470
- padding: 0 !important;
471
- font-size: 0;
472
- width: 42px;
473
- height: 42px;
474
- text-align: center;
475
- margin: 0;
476
- border-radius: 100%;
477
- background: #3E7EFF;
478
- cursor: pointer;
479
- place-content: center;
183
+ ::ng-deep co-level-indicator {
184
+ height: 30px;
480
185
 
481
- &:hover {
482
- opacity: 0.8;
483
- }
186
+ > div {
187
+ justify-content: start;
484
188
 
485
- ::ng-deep co-icon {
486
- width: 34px;
487
- height: 34px;
488
- }
489
- }
490
- }
491
-
492
- .main {
493
- padding: 0;
494
- width: 100%;
495
-
496
- .turnover {
497
- font-size: 12px;
498
- color: $ca-primary-color-light;
499
- margin: 0;
500
- }
501
-
502
- .added-description {
503
- font-size: 11px;
504
- height: 20px;
505
- text-overflow: ellipsis;
506
- white-space: nowrap;
507
- overflow: hidden;
508
- -moz-hyphens: auto;
509
- -ms-hyphens: auto;
510
- -webkit-hyphens: auto;
511
- display: block;
512
- hyphens: auto;
513
- width: 100%;
514
- margin: 5px 0;
515
- word-wrap: break-word;
516
- }
517
-
518
- .description {
519
- font-size: 14px;
520
- font-weight: bold;
521
- color: #000;
522
- margin: 10px 0 5px;
523
- text-overflow: ellipsis;
524
- white-space: nowrap;
525
- overflow: hidden;
526
- -moz-hyphens: auto;
527
- -ms-hyphens: auto;
528
- -webkit-hyphens: auto;
529
- hyphens: auto;
530
- }
531
-
532
- .delivery {
533
- font-size: 12px;
534
- font-weight: bold;
535
- margin: 20px 0 0;
536
- display: flex;
537
- align-items: flex-start;
538
- justify-content: center;
539
- flex-direction: column;
540
- color: $ca-primary-color-light;
541
-
542
- ::ng-deep co-level-indicator {
543
- height: 30px;
544
-
545
- > div {
546
- justify-content: start;
547
-
548
- div[class*="square-"] {
549
- background: $co-catalog-article-tile-border-color;
550
- width: 14px;
551
- height: 14px;
552
- margin: 0 3px 0 0;
553
- }
189
+ div[class*="square-"] {
190
+ background: $co-catalog-article-tile-border-color;
191
+ width: 14px;
192
+ height: 14px;
193
+ margin: 0 3px 0 0;
554
194
  }
555
195
  }
556
-
557
- }
558
-
559
- .price {
560
- font-size: 16px;
561
- margin: 10px 0 10px 0;
562
- color: #404040;
563
- font-weight: 500;
564
- letter-spacing: -0.5px;
565
- }
566
-
567
- .stock {
568
- color: #32a545;
569
- font-size: 11px;
570
- font-weight: 500;
571
- }
572
-
573
- .stock.not-in-stock {
574
- color: #5b6875;
575
- }
576
-
577
- .sku {
578
- font-size: 11px;
579
- color: #5b6875;
580
- margin: 5px 0 5px;
581
- text-transform: lowercase;
582
196
  }
583
197
  }
584
- }
585
-
586
- :host:hover co-button.magnify {
587
- visibility: visible;
588
- }
589
-
590
- div.image {
591
- position: relative;
592
- padding: 1px;
593
- display: flex;
594
- align-items: center;
595
- justify-content: center;
596
- overflow: hidden;
597
- max-width: 190px;
598
- margin: 0 auto;
599
-
600
- &:after {
601
- content: '';
602
- padding: 100% 0 0;
603
- float: left;
604
- width: 100%;
198
+ .price {
199
+ font-size: 16px;
200
+ margin: 10px 0 10px 0;
201
+ font-weight: 500;
202
+ letter-spacing: -0.5px;
605
203
  }
606
-
607
- co-image ::ng-deep {
608
- position: absolute;
609
- left: 0;
610
- top: 0;
611
- overflow: hidden;
612
- width: 100%;
613
- height: 100%;
614
- object-fit: contain;
615
- z-index: -1;
616
- transition: all .2s ease;
617
-
618
- img {
619
- position: absolute;
620
- width: auto;
621
- height: auto;
622
- top: 50%;
623
- left: 50%;
624
- transform: translate(-50%, -50%);
625
- }
204
+ .instock-wrapper, .outstock-wrapper, .delivery-wrapper {
205
+ font-size: 12px;
206
+ font-weight: 500;
207
+ display: flex;
208
+ text-transform: lowercase;
209
+ align-items: center;
210
+ gap: 3px;
211
+ }
212
+ .sku {
213
+ font-size: 11px;
214
+ margin: 5px 0 5px;
215
+ text-transform: lowercase;
626
216
  }
627
217
  }
628
218
 
629
- co-button.magnify {
630
- position: absolute;
631
- visibility: hidden;
632
- top: 1px;
633
- left: 1px;
634
- z-index: 2; !* above co-icon.check *!
635
- }
636
-
637
- co-button.magnify ::ng-deep svg {
638
- transform: scale(1.5);
639
- }
640
-
641
- co-button.info {
642
- position: absolute;
643
- bottom: 71px;
644
- right: 1px;
645
- }
646
-
647
- co-level-indicator {
648
- margin-right: 5px;
649
- }
650
-
651
- .stock-row {
652
- display: inline;
653
- }
654
-
655
- .stock-details {
656
- margin-left: 30px;
657
- color: $ca-color-action;
658
- }
659
- */
660
-
661
219
  @media screen and (max-width: 860px) {
662
- //.description-wrapper {
663
- // display: flex;
664
- // flex-shrink: 1;
665
- // flex-grow: 1;
666
- // flex-direction: column;
667
- // min-height: 40px;
668
- // padding: 15px 0 15px;
669
- // z-index: -1;
670
- //
671
- // .main {
672
- // padding: 0 10px;
673
- //
674
- // .brand {
675
- // font-size: 11px;
676
- // }
677
- //
678
- // .description {
679
- // font-size: 13px;
680
- // }
681
- //
682
- // .delivery {
683
- // font-size: 12px;
684
- //
685
- // co-icon {
686
- // width: 24px;
687
- // height: 24px;
688
- // margin: 0 10px 0 0;
689
- // }
690
- // }
691
- //
692
- // .price {
693
- // font-size: 14px;
694
- // margin: 10px 0 0;
695
- // }
696
- //
697
- // }
220
+
698
221
  }
699
222
  }
700
223
  }
@@ -71,6 +71,7 @@ export declare class CatalogConnectorAdapterService {
71
71
  getWebViewStartupInfo(request: ExternalCatalogStartupInfoRequest): Promise<ExternalCatalogStartupInfo>;
72
72
  getSelectorArticleThumbnail(documentId: number): Promise<string>;
73
73
  getArtStockStatus(goodId: number): Promise<number>;
74
+ getArticleStockInformation(goodId: number): Promise<number>;
74
75
  getArticlePrice(goodId: number, type: string): Promise<ArticlePrice>;
75
76
  getDocumentContent(docId: number, thumbnail?: boolean): Promise<string>;
76
77
  addWebSessionTransactionLine(transactionUuid: string, sku: string, quantity: number): Promise<string>;
@@ -51,6 +51,7 @@ export declare class CatalogConnectorService {
51
51
  getTurnoverGroupFilter(params: ArticleExtendedRequest): Promise<ArticleSearchFilterSelections>;
52
52
  getBrandFilter(params: ArticleExtendedRequest): Promise<ArticleSearchFilterSelections>;
53
53
  getArtStockStatus(goodId: number): Promise<number>;
54
+ getArticleStockInformation(goodId: number): Promise<number>;
54
55
  getArticlePrice(goodId: number, type: string): Promise<ArticlePrice>;
55
56
  getStoreGroups(): Promise<StoreGroup[]>;
56
57
  getCategories(): Promise<Category[]>;