@colijnit/catalog 12.1.56 → 12.1.58

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.
Files changed (20) hide show
  1. package/bundles/colijnit-catalog.umd.js +24 -19
  2. package/bundles/colijnit-catalog.umd.js.map +1 -1
  3. package/colijnit-catalog.metadata.json +1 -1
  4. package/esm2015/lib/catalog-version.js +3 -3
  5. package/esm2015/lib/component/base/catalog-search-base.component.js +13 -3
  6. package/esm2015/lib/component/catalog-article-list/catalog-article-list.component.js +57 -59
  7. package/esm2015/lib/component/catalog-article-list/catalog-article-list.module.js +3 -2
  8. package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.js +10 -3
  9. package/esm2015/lib/component/catalog-search-result-list/catalog-search-result-list.component.js +6 -1
  10. package/esm2015/lib/component/catalog-search-result-tile/catalog-search-result-tile.component.js +2 -14
  11. package/fesm2015/colijnit-catalog.js +85 -77
  12. package/fesm2015/colijnit-catalog.js.map +1 -1
  13. package/lib/component/base/catalog-search-base.component.d.ts +7 -1
  14. package/lib/component/catalog-article-list/style/_layout.scss +169 -427
  15. package/lib/component/catalog-article-list/style/_material-definition.scss +35 -2
  16. package/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.d.ts +2 -0
  17. package/lib/component/catalog-search-result-list/style/_layout.scss +10 -0
  18. package/lib/component/catalog-search-result-list/style/_material-definition.scss +2 -0
  19. package/lib/component/catalog-search-result-tile/catalog-search-result-tile.component.d.ts +0 -8
  20. package/package.json +1 -1
@@ -1,8 +1,14 @@
1
- import { ElementRef } from '@angular/core';
1
+ import { ElementRef, EventEmitter } from '@angular/core';
2
2
  import { CatalogSearchService } from '../../service/catalog-search.service';
3
+ import { ArticleExtended } from "@colijnit/articleapi/build/model/article-extended.bo";
3
4
  export declare abstract class CatalogSearchBaseComponent {
4
5
  catalogSearchService: CatalogSearchService;
5
6
  createFrozenArticle: boolean;
7
+ onLookAtArticleButtonClick: EventEmitter<ArticleExtended>;
8
+ onArButtonClick: EventEmitter<ArticleExtended>;
9
+ onAddArticleButtonClick: EventEmitter<string | ArticleExtended>;
10
+ onArticleClick: EventEmitter<ArticleExtended>;
11
+ onStockDetailsClick: EventEmitter<ArticleExtended>;
6
12
  elements: ElementRef[];
7
13
  constructor(catalogSearchService: CatalogSearchService);
8
14
  onPreviousClick(): void;
@@ -7,7 +7,8 @@
7
7
  border-width: $co-catalog-article-list-border-width;
8
8
  border-color: $co-catalog-article-list-border-color;
9
9
  padding: $co-catalog-article-list-padding;
10
-
10
+ display: flex;
11
+ flex-direction: column;
11
12
  &:hover {
12
13
  cursor: pointer;
13
14
  border-style: $co-catalog-article-list-hover-border-style;
@@ -18,446 +19,187 @@
18
19
  transition: all .2s ease;
19
20
  }
20
21
  .extended-shadow-wrapper {
21
- /*display: flex;*/
22
22
  z-index: 1;
23
23
  }
24
- .card-wrapper {
25
- overflow: hidden;
26
- flex-shrink: 0;
27
24
 
28
- }
29
25
  .description-wrapper {
30
26
  .main {
31
27
  .main-bottom {
32
28
  .main-bottom-left {
33
29
  .stock {
34
30
  text-decoration: underline;
35
- color: #3E7EFF;
36
31
  }
37
32
  }
38
33
  }
39
34
  }
40
35
  }
41
36
  }
42
- //&.list-card {
43
- // .list-wrapper {
44
- // .card-wrapper {
45
- // display: flex;
46
- // flex-direction: row;
47
- // align-items: center;
48
- //
49
- // .left {
50
- // min-width: 200px;
51
- // }
52
- //
53
- // .right {
54
- // display: flex;
55
- // flex-direction: column;
56
- // justify-content: center;
57
- //
58
- // .on-article-buttons {
59
- // pointer-events: none;
60
- // display: flex;
61
- // flex-direction: column;
62
- // justify-content: flex-end;
63
- // margin: 15px 0;
64
- // transition: all .2s ease-in-out;
65
- //
66
- // > co-button {
67
- // pointer-events: all;
68
- // padding: 0 15px !important;
69
- // width: 150px;
70
- // height: 42px;
71
- // text-align: center;
72
- // margin: 0;
73
- // gap: 10px;
74
- // border-radius: 5px;
75
- // background: #3E7EFF;
76
- // cursor: pointer;
77
- // justify-content: flex-start;
78
- //
79
- // &:hover {
80
- // opacity: 0.8;
81
- // }
82
- //
83
- // ::ng-deep co-icon {
84
- // width: 34px;
85
- // height: 34px;
86
- // }
87
- // }
88
- // }
89
- //
90
- // .price {
91
- // font-size: 18px;
92
- // color: #404040;
93
- // font-weight: 500;
94
- // letter-spacing: -0.5px;
95
- // }
96
- //
97
- // .stock {
98
- // color: #32a545;
99
- // font-size: 12px;
100
- // font-weight: 500;
101
- // text-decoration: underline;
102
- // margin-top: 5px;
103
- // }
104
- //
105
- // .stock.not-in-stock {
106
- // color: #5b6875;
107
- // }
108
- // }
109
- //
110
- // .description-wrapper {
111
- // .main-bottom {
112
- // .description {
113
- // span {
114
- // display: block;
115
- //
116
- // &.label {
117
- // font-size: 11px;
118
- // color: #5b6875;
119
- // margin: 5px 0;
120
- // font-weight: normal;
121
- // }
122
- //
123
- // &.text {
124
- // font-weight: normal;
125
- // font-size: 12px;
126
- // }
127
- // }
128
- // }
129
- // }
130
- // }
131
- // }
132
- // }
133
- //}
134
- }
37
+ .card-wrapper {
38
+ position: relative;
39
+ display: flex;
40
+ flex-direction: row;
41
+ gap: $co-catalog-article-list-card-wrapper-gap;
42
+ }
43
+ .article-list-wrapper {
44
+ display: flex;
45
+ flex-direction: column;
46
+ height: 100%;
47
+ }
48
+ .image {
49
+ display: flex;
50
+ align-items: center;
51
+ justify-content: center;
52
+ overflow: hidden;
53
+ width: $co-catalog-article-list-image-width;
54
+ height: $co-catalog-article-list-image-height;
55
+
56
+ .co-image {
57
+ height: 100%;
58
+ width: fit-content;
59
+ }
60
+ .no-image-wrapper {
61
+ display: flex;
62
+ flex-direction: column;
63
+ align-items: center;
64
+ justify-content: center;
65
+ opacity: 0.2;
66
+ width: $co-catalog-article-list-image-width;
67
+ height: $co-catalog-article-list-image-height;
68
+ .no-image {
69
+ height: $co-catalog-article-list-no-image-height;
70
+ width: $co-catalog-article-list-no-image-width;
71
+ span {
72
+ font-size: $co-catalog-article-list-no-image-font-size;
73
+ }
74
+ }
75
+ }
76
+ }
77
+ .button-wrapper {
78
+ height: $co-catalog-article-list-button-3d-height;
79
+ position: absolute;
80
+ left: 0;
81
+ top: 0;
135
82
 
136
- //.extended-shadow-wrapper {
137
- // display: none;
138
- // position: absolute;
139
- // padding: 20px 20px 40px 20px;
140
- // top: calc(100% - 2px);
141
- // width: calc(100% - 40px);
142
- // background-color: #fafafa;
143
- // box-shadow: 0px 0px 13px -2px rgba(0, 0, 0, 0.2);
144
- //
145
- // .extended {
146
- // display: grid;
147
- // grid-template-columns: 50% 50%;
148
- // grid-row-gap: 10px;
149
- // grid-column-gap: 15px;
150
- //
151
- // app-label-field:nth-child(odd):not(:last-child) {
152
- // border-right: 1px solid $co-catalog-article-list-border-color;
153
- // }
154
- // }
155
- //}
156
- //
157
- //.no-image-wrapper {
158
- // position: absolute;
159
- // display: flex;
160
- // left: 50%;
161
- // top: 50%;
162
- // margin: -48px 0 0 -40px;
163
- // flex-direction: column;
164
- // align-items: center;
165
- // opacity: 0.25;
166
- //
167
- // .no-image {
168
- // height: 80px;
169
- // width: 80px;
170
- // }
171
- //
172
- // span {
173
- // font-size: 13px;
174
- // }
175
- //}
176
- //
177
- //.right-aligned {
178
- // margin-left: auto;
179
- // display: flex;
180
- // align-items: center;
181
- //}
182
- //
183
- //.card-wrapper {
184
- // overflow: hidden;
185
- // flex-shrink: 0;
186
- //
187
- // .top {
188
- // height: 50px;
189
- // position: absolute;
190
- // left: 0;
191
- // top: 0;
192
- // }
193
- //
194
- // .button-wrapper {
195
- // height: 30px;
196
- // position: absolute;
197
- // left: 0;
198
- // top: 0;
199
- //
200
- // ::ng-deep co-icon {
201
- // display: inline-block;
202
- // width: 30px;
203
- // height: 30px;
204
- // }
205
- // }
206
- //
207
- //}
208
- //
209
- //.description-wrapper {
210
- // display: flex;
211
- // flex-shrink: 1;
212
- // flex-grow: 1;
213
- // justify-content: space-between;
214
- // min-height: 40px;
215
- // padding: 15px 0 15px;
216
- // z-index: 9;
217
- // align-items: flex-start;
218
- //
219
- // .main-bottom {
220
- // display: flex;
221
- // justify-content: space-between;
222
- // }
223
- //
224
- // .on-article-buttons {
225
- // pointer-events: none;
226
- // display: flex;
227
- // flex-direction: column;
228
- // justify-content: flex-end;
229
- // margin: 0 5px 0 0;
230
- // transition: all .2s ease-in-out;
231
- //
232
- // > co-button {
233
- // pointer-events: all;
234
- // padding: 0 !important;
235
- // font-size: 0;
236
- // width: 42px;
237
- // height: 42px;
238
- // text-align: center;
239
- // margin: 0;
240
- // border-radius: 100%;
241
- // background: #3E7EFF;
242
- // cursor: pointer;
243
- // place-content: center;
244
- //
245
- // &:hover {
246
- // opacity: 0.8;
247
- // }
248
- //
249
- // ::ng-deep co-icon {
250
- // width: 34px;
251
- // height: 34px;
252
- // }
253
- // }
254
- // }
255
- //
256
- // .main {
257
- // padding: 0;
258
- // width: 100%;
259
- //
260
- // .turnover {
261
- // font-size: 12px;
262
- // color: $ca-primary-color-light;
263
- // margin: 0;
264
- // }
265
- //
266
- // .added-description {
267
- // font-size: 11px;
268
- // height: 20px;
269
- // text-overflow: ellipsis;
270
- // white-space: nowrap;
271
- // overflow: hidden;
272
- // -moz-hyphens: auto;
273
- // -ms-hyphens: auto;
274
- // -webkit-hyphens: auto;
275
- // display: block;
276
- // hyphens: auto;
277
- // width: 100%;
278
- // margin: 5px 0;
279
- // word-wrap: break-word;
280
- // }
281
- //
282
- // .description {
283
- // font-size: 14px;
284
- // font-weight: bold;
285
- // color: #000;
286
- // margin: 10px 0 5px;
287
- // text-overflow: ellipsis;
288
- // white-space: nowrap;
289
- // overflow: hidden;
290
- // -moz-hyphens: auto;
291
- // -ms-hyphens: auto;
292
- // -webkit-hyphens: auto;
293
- // hyphens: auto;
294
- // }
295
- //
296
- // .delivery {
297
- // font-size: 12px;
298
- // font-weight: bold;
299
- // margin: 20px 0 0;
300
- // display: flex;
301
- // align-items: flex-start;
302
- // justify-content: center;
303
- // flex-direction: column;
304
- // color: $ca-primary-color-light;
305
- //
306
- // ::ng-deep co-level-indicator {
307
- // height: 30px;
308
- //
309
- // > div {
310
- // justify-content: start;
311
- //
312
- // div[class*="square-"] {
313
- // background: $co-catalog-article-list-border-color;
314
- // width: 14px;
315
- // height: 14px;
316
- // margin: 0 3px 0 0;
317
- // }
318
- // }
319
- // }
320
- //
321
- // }
322
- //
323
- // .price {
324
- // font-size: 16px;
325
- // margin: 10px 0 10px 0;
326
- // color: #404040;
327
- // font-weight: 500;
328
- // letter-spacing: -0.5px;
329
- // }
330
- //
331
- // .stock {
332
- // color: #32a545;
333
- // font-size: 11px;
334
- // font-weight: 500;
335
- // }
336
- //
337
- // .stock.not-in-stock {
338
- // color: #5b6875;
339
- // }
340
- //
341
- // .sku {
342
- // font-size: 11px;
343
- // color: #5b6875;
344
- // margin: 5px 0 5px;
345
- // text-transform: lowercase;
346
- // }
347
- // }
348
- //}
349
- //
350
- //:host:hover co-button.magnify {
351
- // visibility: visible;
352
- //}
353
- //
354
- //div.image {
355
- // position: relative;
356
- // padding: 1px;
357
- // display: flex;
358
- // align-items: center;
359
- // justify-content: center;
360
- // overflow: hidden;
361
- // max-width: 190px;
362
- // margin: 0 auto;
363
- //
364
- // &:after {
365
- // content: '';
366
- // padding: 100% 0 0;
367
- // float: left;
368
- // width: 100%;
369
- // }
370
- //
371
- // co-image ::ng-deep {
372
- // position: absolute;
373
- // left: 0;
374
- // top: 0;
375
- // overflow: hidden;
376
- // width: 100%;
377
- // height: 100%;
378
- // object-fit: contain;
379
- // z-index: -1;
380
- // transition: all .2s ease;
381
- //
382
- // img {
383
- // position: absolute;
384
- // width: auto;
385
- // height: auto;
386
- // top: 50%;
387
- // left: 50%;
388
- // transform: translate(-50%, -50%);
389
- // }
390
- // }
391
- //}
392
- //
393
- //co-button.magnify {
394
- // position: absolute;
395
- // visibility: hidden;
396
- // top: 1px;
397
- // left: 1px;
398
- // z-index: 2; /* above co-icon.check */
399
- //}
400
- //
401
- //co-button.magnify ::ng-deep svg {
402
- // transform: scale(1.5);
403
- //}
404
- //
405
- //co-button.info {
406
- // position: absolute;
407
- // bottom: 71px;
408
- // right: 1px;
409
- //}
410
- //
411
- //co-level-indicator {
412
- // margin-right: 5px;
413
- //}
414
- //
415
- //.stock-row {
416
- // display: inline;
417
- //}
418
- //
419
- //.stock-details {
420
- // margin-left: 30px;
421
- // color: $ca-color-action;
422
- //}
423
- //
424
- //@media screen and (max-width: 860px) {
425
- // .description-wrapper {
426
- // display: flex;
427
- // flex-shrink: 1;
428
- // flex-grow: 1;
429
- // flex-direction: column;
430
- // min-height: 40px;
431
- // padding: 15px 0 15px;
432
- // z-index: -1;
433
- //
434
- // .main {
435
- // padding: 0 10px;
436
- //
437
- // .brand {
438
- // font-size: 11px;
439
- // }
440
- //
441
- // .description {
442
- // font-size: 13px;
443
- // }
444
- //
445
- // .delivery {
446
- // font-size: 12px;
447
- //
448
- // co-icon {
449
- // width: 24px;
450
- // height: 24px;
451
- // margin: 0 10px 0 0;
452
- // }
453
- // }
454
- //
455
- // .price {
456
- // font-size: 14px;
457
- // margin: 10px 0 0;
458
- // }
459
- //
460
- // }
461
- // }
462
- //}
83
+ ::ng-deep co-icon {
84
+ display: inline-block;
85
+ width: $co-catalog-article-list-button-3d-icon-width;
86
+ height: $co-catalog-article-list-button-3d-icon-height;
87
+ }
88
+ }
89
+ .right {
90
+ display: flex;
91
+ flex-direction: column;
92
+ justify-content: space-around;
93
+ width: $co-catalog-article-list-article-buttons-width;
94
+ .stock-wrapper {
95
+ font-size: 11px;
96
+ font-weight: 500;
97
+ padding: 0;
98
+ > div {
99
+ white-space: nowrap;
100
+ padding-bottom: 5px;
101
+ }
102
+ }
103
+ .on-article-buttons {
104
+ pointer-events: none;
105
+ display: flex;
106
+ flex-direction: column;
107
+ justify-content: flex-end;
108
+ margin: $co-catalog-article-list-article-buttons-margin;
109
+ transition: all .2s ease-in-out;
110
+ width: $co-catalog-article-list-article-buttons-width;
111
+ > co-button {
112
+ pointer-events: all;
113
+ padding: 0 !important;
114
+ height: $co-catalog-article-list-article-buttons-button-height;
115
+ text-align: center;
116
+ margin: $co-catalog-article-list-article-buttons-button-margin;
117
+ border-radius: $co-catalog-article-list-article-buttons-button-border-radius;
118
+ background: $co-catalog-article-list-article-buttons-background;
119
+ cursor: pointer;
120
+ place-content: center;
121
+ &:hover {
122
+ opacity: 0.8;
123
+ }
124
+ ::ng-deep co-icon {
125
+ width: $co-catalog-article-list-article-buttons-button-size;
126
+ height: $co-catalog-article-list-article-buttons-button-size;
127
+ }
128
+ }
129
+ }
130
+ .price {
131
+ font-size: $co-catalog-article-list-article-price-font-size;
132
+ font-weight: $co-catalog-article-list-article-price-font-weight;
133
+ letter-spacing: -0.5px;
134
+ }
135
+ }
136
+ .description-wrapper {
137
+ display: flex;
138
+ flex-direction: column;
139
+ flex-basis: 100%;
140
+ justify-content: space-between;
141
+ margin: $co-catalog-article-list-description-margin;
142
+ .main-bottom {
143
+ display: flex;
144
+ justify-content: space-between;
145
+ align-items: flex-end;
146
+ width: 100%;
147
+ }
148
+ .sku {
149
+ font-size: $co-catalog-article-list-article-sku-font-size;
150
+ margin: $co-catalog-article-list-article-sku-margin;
151
+ text-transform: lowercase;
152
+ font-weight: $co-catalog-article-list-article-sku-font-weight;
153
+ }
154
+ .turnover {
155
+ font-size: $co-catalog-article-list-article-turnover-font-size;
156
+ margin: $co-catalog-article-list-article-turnover-margin;
157
+ }
158
+
159
+ .description {
160
+ .label {
161
+ font-size: $co-catalog-article-list-article-label-font-size;
162
+ font-weight: $co-catalog-article-list-article-label-font-weight;
163
+ }
164
+ .text {
165
+ font-weight: $co-catalog-article-list-article-desc-font-weight;
166
+ font-size: $co-catalog-article-list-article-desc-font-size;
167
+ white-space: normal;
168
+ &.added {
169
+ font-size: $co-catalog-article-list-article-added-desc-font-size;
170
+ font-weight: $co-catalog-article-list-article-desc-font-weight;
171
+ margin-top: 10px;
172
+ }
173
+ }
174
+ display: flex;
175
+ flex-direction: column;
176
+ margin: 10px 0 5px;
177
+ text-overflow: ellipsis;
178
+ white-space: nowrap;
179
+ overflow: hidden;
180
+ -moz-hyphens: auto;
181
+ -ms-hyphens: auto;
182
+ -webkit-hyphens: auto;
183
+ hyphens: auto;
184
+ }
185
+
186
+ .name {
187
+ font-size: $co-catalog-article-list-article-name-font-size;
188
+ font-weight: $co-catalog-article-list-article-name-font-weight;
189
+ margin: $co-catalog-article-list-article-name-margin;
190
+ text-overflow: ellipsis;
191
+ white-space: nowrap;
192
+ overflow: hidden;
193
+ -moz-hyphens: auto;
194
+ -ms-hyphens: auto;
195
+ -webkit-hyphens: auto;
196
+ hyphens: auto;
197
+ }
198
+ //}
199
+ }
200
+
201
+ @media screen and (max-width: 860px) {
202
+
203
+ }
204
+ }
463
205
  }