comand-component-library 4.3.27 → 5.0.0
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/dist/comand-component-library.css +1 -1
- package/dist/comand-component-library.js +7568 -7448
- package/dist/styles/demopage-only.css +35 -1
- package/package.json +47 -46
- package/src/ComponentLibrary.vue +2697 -2688
- package/src/assets/data/component-structure.json +1 -1
- package/src/assets/data/form-elements.json +224 -224
- package/src/assets/data/social-networks-page-by-json.json +43 -43
- package/src/assets/styles/component-library-global-styles.scss +296 -295
- package/src/componentSettingsDataAndControls.vue +1 -18
- package/src/components/CmdAccordion.vue +1 -1
- package/src/components/CmdAddressData.vue +6 -1
- package/src/components/CmdAddressDataItem.vue +6 -1
- package/src/components/CmdBasicForm.vue +2 -2
- package/src/components/CmdBox.vue +1103 -1086
- package/src/components/CmdBoxWrapper.vue +11 -1
- package/src/components/CmdBreadcrumbs.vue +2 -2
- package/src/components/CmdCodeOutput.vue +1 -1
- package/src/components/CmdContainer.vue +13 -1
- package/src/components/CmdCookieDisclaimer.vue +480 -480
- package/src/components/CmdFakeSelect.vue +930 -917
- package/src/components/CmdFlexibleScrollContainer.vue +42 -42
- package/src/components/CmdForm.vue +481 -481
- package/src/components/CmdFormElement.vue +1110 -1091
- package/src/components/CmdFormFilters.vue +146 -146
- package/src/components/CmdGoogleMaps.vue +1 -1
- package/src/components/CmdHeadline.vue +21 -4
- package/src/components/CmdIcon.vue +8 -2
- package/src/components/CmdImage.vue +27 -21
- package/src/components/CmdImageZoom.vue +9 -8
- package/src/components/CmdInputGroup.vue +436 -435
- package/src/components/CmdLink.vue +1 -1
- package/src/components/CmdList.vue +3 -3
- package/src/components/CmdListOfRequirements.vue +192 -192
- package/src/components/CmdLoginForm.vue +618 -618
- package/src/components/CmdMailToolFilter.vue +217 -217
- package/src/components/CmdMainNavigation.vue +581 -572
- package/src/components/CmdMultistepFormProgressBar.vue +9 -9
- package/src/components/CmdNewsletterSubscription.vue +199 -199
- package/src/components/CmdPagination.vue +4 -2
- package/src/components/CmdParagraph.vue +10 -4
- package/src/components/CmdProgressBar.vue +72 -72
- package/src/components/CmdSiteHeader.vue +382 -389
- package/src/components/CmdSiteSearch.vue +420 -420
- package/src/components/CmdSiteWrapper.vue +12 -5
- package/src/components/CmdSlideshow.vue +519 -519
- package/src/components/CmdSmartSearch.vue +291 -291
- package/src/components/CmdSystemMessage.vue +3 -2
- package/src/components/CmdTable.vue +401 -401
- package/src/components/CmdTabs.vue +262 -262
- package/src/components/CmdTag.vue +2 -2
- package/src/components/CmdTextImageBlock.vue +8 -2
- package/src/components/CmdThumbnailScroller.vue +0 -7
- package/src/components/CmdToast.vue +1 -1
- package/src/components/CmdToggleDarkMode.vue +13 -11
- package/src/components/CmdTooltip.vue +305 -301
- package/src/components/CmdUploadForm.vue +1299 -1305
- package/src/components/CmdWidthLimitationWrapper.vue +1 -1
- package/src/components/EditComponentWrapper.vue +5 -5
- package/src/index.js +5 -0
- package/src/main.js +4 -3
- package/src/utils/template.js +57 -0
- package/dist/styles/templates/casual.css +0 -3
- package/src/assets/styles/template.css +0 -1
|
@@ -1,1087 +1,1104 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<!-- begin CmdBox ---------------------------------------------------------------------------------------- -->
|
|
3
|
-
<!-- begin boxType 'content' -->
|
|
4
|
-
<div v-if="boxType === 'content'"
|
|
5
|
-
ref="cmdBox"
|
|
6
|
-
:class="[
|
|
7
|
-
'cmd-box box content',
|
|
8
|
-
{
|
|
9
|
-
open : open, collapsible: collapsible,
|
|
10
|
-
'stretch-vertically': stretchVertically && !collapsible,
|
|
11
|
-
'stretch-horizontally': stretchHorizontally,
|
|
12
|
-
'row-view': rowView
|
|
13
|
-
},
|
|
14
|
-
]"
|
|
15
|
-
>
|
|
16
|
-
<!-- begin collapsible header with slot -->
|
|
17
|
-
<a v-if="collapsible"
|
|
18
|
-
href="#"
|
|
19
|
-
class="box-header"
|
|
20
|
-
:title="open ? iconOpen.tooltip : iconClosed.tooltip"
|
|
21
|
-
@click.prevent="toggleContentVisibility"
|
|
22
|
-
>
|
|
23
|
-
<!-- begin slot 'header' -->
|
|
24
|
-
<slot v-if="useSlots?.includes('header')" name="header"></slot>
|
|
25
|
-
<!-- end slot 'header' -->
|
|
26
|
-
|
|
27
|
-
<!-- begin CmdHeadline -->
|
|
28
|
-
<CmdHeadline
|
|
29
|
-
v-else-if="cmdHeadline?.headlineText && headlinePosition === 'header'"
|
|
30
|
-
v-bind="cmdHeadline"
|
|
31
|
-
/>
|
|
32
|
-
<!-- end CmdHeadline -->
|
|
33
|
-
|
|
34
|
-
<!-- begin CmdIcon -->
|
|
35
|
-
<CmdIcon
|
|
36
|
-
:iconClass="open ? iconOpen.iconClass : iconClosed.iconClass"
|
|
37
|
-
:type="open ? iconOpen.iconType : iconClosed.iconType"
|
|
38
|
-
/>
|
|
39
|
-
<!-- end CmdIcon -->
|
|
40
|
-
</a>
|
|
41
|
-
<!-- end collapsible header with slot -->
|
|
42
|
-
|
|
43
|
-
<!-- begin default header with slot -->
|
|
44
|
-
<template v-else>
|
|
45
|
-
<div v-if="useSlots?.includes('header') || (cmdHeadline?.headlineText && headlinePosition === 'header')" class="box-header">
|
|
46
|
-
<!-- begin slot 'header' -->
|
|
47
|
-
<slot v-if="useSlots?.includes('header')" name="header"></slot>
|
|
48
|
-
<!-- end slot 'header' -->
|
|
49
|
-
|
|
50
|
-
<!-- begin CmdHeadline -->
|
|
51
|
-
<CmdHeadline
|
|
52
|
-
v-if="cmdHeadline?.headlineText && headlinePosition === 'header'"
|
|
53
|
-
v-bind="cmdHeadline"
|
|
54
|
-
/>
|
|
55
|
-
<!-- end CmdHeadline -->
|
|
56
|
-
</div>
|
|
57
|
-
</template>
|
|
58
|
-
<!-- end default header with slot -->
|
|
59
|
-
|
|
60
|
-
<!-- begin box-body -->
|
|
61
|
-
<div
|
|
62
|
-
<!-- begin content given slot -->
|
|
63
|
-
<div v-if="useSlots?.includes('body')"
|
|
64
|
-
class="inner-box-body-wrapper"
|
|
65
|
-
:class="{'box-body-padding': useBoxBodyPadding, 'allow-scroll': allowContentToScroll}"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
v-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
'
|
|
91
|
-
'
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
<!--
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
<
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
<div v-if="product.
|
|
169
|
-
<span>{{
|
|
170
|
-
</div>
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
<p v-if="product.
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
<p v-if="product.
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
<p v-if="
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
</
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
import
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
*
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
*
|
|
400
|
-
*
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
*
|
|
434
|
-
*
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
*
|
|
445
|
-
*
|
|
446
|
-
*
|
|
447
|
-
*
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
this
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
}
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
}
|
|
945
|
-
|
|
946
|
-
img
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
border: var(--
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
}
|
|
1040
|
-
|
|
1041
|
-
&:
|
|
1042
|
-
a {
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<!-- begin CmdBox ---------------------------------------------------------------------------------------- -->
|
|
3
|
+
<!-- begin boxType 'content' -->
|
|
4
|
+
<div v-if="boxType === 'content'"
|
|
5
|
+
ref="cmdBox"
|
|
6
|
+
:class="[
|
|
7
|
+
'cmd-box box content',
|
|
8
|
+
{
|
|
9
|
+
open : open, collapsible: collapsible,
|
|
10
|
+
'stretch-vertically': stretchVertically && !collapsible,
|
|
11
|
+
'stretch-horizontally': stretchHorizontally,
|
|
12
|
+
'row-view': rowView
|
|
13
|
+
},
|
|
14
|
+
]"
|
|
15
|
+
>
|
|
16
|
+
<!-- begin collapsible header with slot -->
|
|
17
|
+
<a v-if="collapsible"
|
|
18
|
+
href="#"
|
|
19
|
+
class="box-header"
|
|
20
|
+
:title="open ? iconOpen.tooltip : iconClosed.tooltip"
|
|
21
|
+
@click.prevent="toggleContentVisibility"
|
|
22
|
+
>
|
|
23
|
+
<!-- begin slot 'header' -->
|
|
24
|
+
<slot v-if="useSlots?.includes('header')" name="header"></slot>
|
|
25
|
+
<!-- end slot 'header' -->
|
|
26
|
+
|
|
27
|
+
<!-- begin CmdHeadline -->
|
|
28
|
+
<CmdHeadline
|
|
29
|
+
v-else-if="cmdHeadline?.headlineText && headlinePosition === 'header'"
|
|
30
|
+
v-bind="cmdHeadline"
|
|
31
|
+
/>
|
|
32
|
+
<!-- end CmdHeadline -->
|
|
33
|
+
|
|
34
|
+
<!-- begin CmdIcon -->
|
|
35
|
+
<CmdIcon
|
|
36
|
+
:iconClass="open ? iconOpen.iconClass : iconClosed.iconClass"
|
|
37
|
+
:type="open ? iconOpen.iconType : iconClosed.iconType"
|
|
38
|
+
/>
|
|
39
|
+
<!-- end CmdIcon -->
|
|
40
|
+
</a>
|
|
41
|
+
<!-- end collapsible header with slot -->
|
|
42
|
+
|
|
43
|
+
<!-- begin default header with slot -->
|
|
44
|
+
<template v-else>
|
|
45
|
+
<div v-if="useSlots?.includes('header') || (cmdHeadline?.headlineText && headlinePosition === 'header')" class="box-header">
|
|
46
|
+
<!-- begin slot 'header' -->
|
|
47
|
+
<slot v-if="useSlots?.includes('header')" name="header"></slot>
|
|
48
|
+
<!-- end slot 'header' -->
|
|
49
|
+
|
|
50
|
+
<!-- begin CmdHeadline -->
|
|
51
|
+
<CmdHeadline
|
|
52
|
+
v-if="cmdHeadline?.headlineText && headlinePosition === 'header'"
|
|
53
|
+
v-bind="cmdHeadline"
|
|
54
|
+
/>
|
|
55
|
+
<!-- end CmdHeadline -->
|
|
56
|
+
</div>
|
|
57
|
+
</template>
|
|
58
|
+
<!-- end default header with slot -->
|
|
59
|
+
|
|
60
|
+
<!-- begin box-body -->
|
|
61
|
+
<div :class="['box-body', boxBodyClass]" aria-expanded="true" role="article">
|
|
62
|
+
<!-- begin content given slot -->
|
|
63
|
+
<div v-if="useSlots?.includes('body')"
|
|
64
|
+
class="inner-box-body-wrapper"
|
|
65
|
+
:class="{'box-body-padding': useBoxBodyPadding, 'allow-scroll': allowContentToScroll}"
|
|
66
|
+
:tabindex="allowContentToScroll ? 0 : null"
|
|
67
|
+
ref="boxBody"
|
|
68
|
+
:style="allowContentToScroll ? 'max-height: ' + calculatedBodyHeight : null"
|
|
69
|
+
>
|
|
70
|
+
<!-- begin slot 'body' -->
|
|
71
|
+
<slot name="body">
|
|
72
|
+
<!-- begin CmdHeadline -->
|
|
73
|
+
<CmdHeadline
|
|
74
|
+
v-if="cmdHeadline?.headlineText && headlinePosition === 'body'"
|
|
75
|
+
v-bind="cmdHeadline"
|
|
76
|
+
/>
|
|
77
|
+
<!-- end CmdHeadline -->
|
|
78
|
+
|
|
79
|
+
<div v-if="cmdIcon !== undefined" class="body-icon-wrapper">
|
|
80
|
+
<!-- begin CmdIcon -->
|
|
81
|
+
<CmdIcon :iconClass="cmdIcon.iconClass" :type="cmdIcon.type" />
|
|
82
|
+
<!-- end CmdIcon -->
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
<transition-group :name="toggleTransition">
|
|
86
|
+
<!-- begin textBody -->
|
|
87
|
+
<div
|
|
88
|
+
v-if="textBody"
|
|
89
|
+
:class="{
|
|
90
|
+
'cutoff-text': cutoffTextLines > 0,
|
|
91
|
+
'fade-last-line': fadeLastLine && !showCutOffText,
|
|
92
|
+
'show-text' : showCutOffText
|
|
93
|
+
}"
|
|
94
|
+
v-html='textBody'
|
|
95
|
+
>
|
|
96
|
+
</div>
|
|
97
|
+
<!-- end textBody -->
|
|
98
|
+
|
|
99
|
+
<a v-if="cutoffTextLines > 0" href="#" @click.prevent="toggleCutOffText">
|
|
100
|
+
{{
|
|
101
|
+
showCutOffText ? getMessage("box.contentbox.collapse_text") : getMessage("box.contentbox.expand_text")
|
|
102
|
+
}}
|
|
103
|
+
</a>
|
|
104
|
+
</transition-group>
|
|
105
|
+
</slot>
|
|
106
|
+
<!-- end slot 'body' -->
|
|
107
|
+
</div>
|
|
108
|
+
<!-- end content given slot -->
|
|
109
|
+
|
|
110
|
+
<!-- begin content given by properties -->
|
|
111
|
+
<div v-else
|
|
112
|
+
class="inner-box-body-wrapper"
|
|
113
|
+
:class="{'allow-scroll': allowContentToScroll}"
|
|
114
|
+
:tabindex="allowContentToScroll ? 0 : null"
|
|
115
|
+
>
|
|
116
|
+
<!-- begin CmdImage -->
|
|
117
|
+
<CmdImage v-if="cmdImage" v-bind="cmdImage" />
|
|
118
|
+
<!-- end CmdImage -->
|
|
119
|
+
|
|
120
|
+
<div v-if="cmdHeadline?.headlineText && headlinePosition === 'body' || textBody"
|
|
121
|
+
:class="{'box-body-padding': useBoxBodyPadding, 'allow-scroll': allowContentToScroll}"
|
|
122
|
+
:tabindex="allowContentToScroll ? 0 : null">
|
|
123
|
+
<div v-if="cmdIcon !== undefined" class="body-icon-wrapper">
|
|
124
|
+
<!-- begin CmdIcon -->
|
|
125
|
+
<CmdIcon v-bind="cmdIcon" />
|
|
126
|
+
<!-- end CmdIcon -->
|
|
127
|
+
</div>
|
|
128
|
+
|
|
129
|
+
<!-- begin CmdHeadline -->
|
|
130
|
+
<CmdHeadline
|
|
131
|
+
v-if="cmdHeadline?.headlineText && headlinePosition === 'body'"
|
|
132
|
+
v-bind="cmdHeadline"
|
|
133
|
+
/>
|
|
134
|
+
<!-- end CmdHeadline -->
|
|
135
|
+
|
|
136
|
+
<!-- begin textBody -->
|
|
137
|
+
<p v-if="textBody" v-html="textBody"></p>
|
|
138
|
+
<!-- end textBody -->
|
|
139
|
+
</div>
|
|
140
|
+
</div>
|
|
141
|
+
<!-- end content given by properties -->
|
|
142
|
+
</div>
|
|
143
|
+
<!-- end box-body -->
|
|
144
|
+
|
|
145
|
+
<!-- begin additionalLink in box-footer -->
|
|
146
|
+
<div v-if="cmdLink?.linkType" class="box-footer">
|
|
147
|
+
<CmdLink v-bind="cmdLink" />
|
|
148
|
+
</div>
|
|
149
|
+
<!-- end additionalLink in box-footer -->
|
|
150
|
+
|
|
151
|
+
<div v-if="useSlots?.includes('footer')" class="box-footer">
|
|
152
|
+
<!-- begin slot 'footer' -->
|
|
153
|
+
<slot name="footer"></slot>
|
|
154
|
+
<!-- end slot 'footer' -->
|
|
155
|
+
</div>
|
|
156
|
+
</div>
|
|
157
|
+
<!-- end boxType 'content' -->
|
|
158
|
+
|
|
159
|
+
<!-- begin boxType 'product' -->
|
|
160
|
+
<a v-else-if="boxType === 'product' && product"
|
|
161
|
+
:class="['cmd-box box product', {'stretch-vertically': stretchVertically, 'stretch-horizontally': stretchHorizontally, 'row-view': rowView}]"
|
|
162
|
+
href="#"
|
|
163
|
+
@click.prevent="clickOnProduct(product)">
|
|
164
|
+
<div class="box-header flex-container vertical">
|
|
165
|
+
<CmdImage v-if="product.image?.src" v-bind="{image:{...product.image}}" />
|
|
166
|
+
|
|
167
|
+
<!-- begin ribbons -->
|
|
168
|
+
<div v-if="product.new" class="ribbon-new">
|
|
169
|
+
<span>{{ getMessage("box.productbox.new") }}</span>
|
|
170
|
+
</div>
|
|
171
|
+
<div v-if="product.discount" class="ribbon-discount">
|
|
172
|
+
<span>{{ product.discount }}</span>
|
|
173
|
+
</div>
|
|
174
|
+
<!-- end ribbons -->
|
|
175
|
+
</div>
|
|
176
|
+
<!-- begin box-body -->
|
|
177
|
+
<div class="box-body">
|
|
178
|
+
<p v-if="product.articleNumber">{{ getMessage("box.productbox.article_no") }} {{
|
|
179
|
+
product.articleNumber
|
|
180
|
+
}}</p>
|
|
181
|
+
<p v-if="product.price" class="price">
|
|
182
|
+
<span>{{ product.price }}</span><span :title="globalCurrency.name">{{ globalCurrency.symbol }}</span>
|
|
183
|
+
</p>
|
|
184
|
+
<p v-if="product.description">{{ product.description }}</p>
|
|
185
|
+
</div>
|
|
186
|
+
<!-- end box-body -->
|
|
187
|
+
</a>
|
|
188
|
+
<!-- end boxType 'product' -->
|
|
189
|
+
|
|
190
|
+
<!-- begin boxType 'user' -->
|
|
191
|
+
<div v-else-if="boxType === 'user' && user"
|
|
192
|
+
:class="[
|
|
193
|
+
'cmd-box box user',
|
|
194
|
+
profileType,
|
|
195
|
+
{
|
|
196
|
+
'stretch-vertically': stretchVertically,
|
|
197
|
+
'stretch-horizontally': stretchHorizontally,
|
|
198
|
+
'row-view': rowView
|
|
199
|
+
}
|
|
200
|
+
]">
|
|
201
|
+
<!-- begin box-header -->
|
|
202
|
+
<div class="box-header flex-container vertical">
|
|
203
|
+
<!-- begin user-image -->
|
|
204
|
+
<figure v-if="user.image?.src">
|
|
205
|
+
<img :src="user.image.src" :alt="user.image.alt"/>
|
|
206
|
+
<figcaption v-if="!rowView" class="user-name">
|
|
207
|
+
{{ user.name }}
|
|
208
|
+
<span v-if="user.age" class="user-age">
|
|
209
|
+
({{ user.age }})
|
|
210
|
+
</span>
|
|
211
|
+
</figcaption>
|
|
212
|
+
</figure>
|
|
213
|
+
<!-- end no user-image -->
|
|
214
|
+
|
|
215
|
+
<!-- begin no user-image -->
|
|
216
|
+
<template v-else>
|
|
217
|
+
<div class="no-user-image">
|
|
218
|
+
<CmdIcon
|
|
219
|
+
:iconClass="iconUserProfile.iconClass"
|
|
220
|
+
:type="iconUserProfile.iconType"
|
|
221
|
+
:title="user.name"
|
|
222
|
+
/>
|
|
223
|
+
</div>
|
|
224
|
+
<p v-if="!rowView" class="user-name">
|
|
225
|
+
{{ user.name }}
|
|
226
|
+
<span v-if="user.age" class="user-age">
|
|
227
|
+
({{ user.age }})
|
|
228
|
+
</span>
|
|
229
|
+
</p>
|
|
230
|
+
</template>
|
|
231
|
+
<!-- end no user-image -->
|
|
232
|
+
</div>
|
|
233
|
+
<!-- end box-header -->
|
|
234
|
+
|
|
235
|
+
<!-- begin box-body -->
|
|
236
|
+
<div class="box-body">
|
|
237
|
+
<p v-if="rowView" class="user-name">{{ user.name }}</p>
|
|
238
|
+
<p v-if="user.profession">{{ user.profession }}</p>
|
|
239
|
+
<p v-if="user.position">{{ user.position }}</p>
|
|
240
|
+
<p v-if="user.description" class="description">{{ user.description }}</p>
|
|
241
|
+
</div>
|
|
242
|
+
<!-- end box-body -->
|
|
243
|
+
|
|
244
|
+
<!-- begin user-tags -->
|
|
245
|
+
<ul v-if="user.tags && user.tags.length" class="tags">
|
|
246
|
+
<li v-for="(tag, index) in user.tags" :key="index">
|
|
247
|
+
{{ tag }}
|
|
248
|
+
</li>
|
|
249
|
+
</ul>
|
|
250
|
+
<!-- end user-tags -->
|
|
251
|
+
|
|
252
|
+
<!-- begin box-footer -->
|
|
253
|
+
<div v-if="user.links && user.links.length" class="box-footer">
|
|
254
|
+
<CmdList :items="user.links" orientation="horizontal" :useGap="false"/>
|
|
255
|
+
</div>
|
|
256
|
+
<!-- end box-footer -->
|
|
257
|
+
</div>
|
|
258
|
+
<!-- end boxType 'user' -->
|
|
259
|
+
<!-- end CmdBox ---------------------------------------------------------------------------------------- -->
|
|
260
|
+
</template>
|
|
261
|
+
|
|
262
|
+
<script>
|
|
263
|
+
// import mixins
|
|
264
|
+
import I18n from "../mixins/I18n"
|
|
265
|
+
import DefaultMessageProperties from "../mixins/CmdBox/DefaultMessageProperties"
|
|
266
|
+
import GlobalCurrency from "../mixins/GlobalCurrency"
|
|
267
|
+
|
|
268
|
+
export default {
|
|
269
|
+
name: "CmdBox",
|
|
270
|
+
mixins: [
|
|
271
|
+
I18n,
|
|
272
|
+
DefaultMessageProperties,
|
|
273
|
+
GlobalCurrency
|
|
274
|
+
],
|
|
275
|
+
emits: ["click", "toggle-collapse", "toggle-cutofftext"],
|
|
276
|
+
data() {
|
|
277
|
+
return {
|
|
278
|
+
open: this.collapsible ? this.openCollapsedBox : true,
|
|
279
|
+
active: true,
|
|
280
|
+
showCutOffText: false,
|
|
281
|
+
calculatedBodyHeight: this.maxBoxBodyHeight
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
props: {
|
|
285
|
+
/**
|
|
286
|
+
* activate to set a collapsible box to open
|
|
287
|
+
*/
|
|
288
|
+
openCollapsedBox: {
|
|
289
|
+
type: Boolean,
|
|
290
|
+
required: false
|
|
291
|
+
},
|
|
292
|
+
/**
|
|
293
|
+
* arranges box-content in a row
|
|
294
|
+
*
|
|
295
|
+
* @affectsStyling: true
|
|
296
|
+
*/
|
|
297
|
+
rowView: {
|
|
298
|
+
type: Boolean,
|
|
299
|
+
default: false
|
|
300
|
+
},
|
|
301
|
+
/**
|
|
302
|
+
* set type to show different types of boxes/contents
|
|
303
|
+
*
|
|
304
|
+
* @allowedValues: content, product, user
|
|
305
|
+
* @affectsStyling: true
|
|
306
|
+
*/
|
|
307
|
+
boxType: {
|
|
308
|
+
type: String,
|
|
309
|
+
default: "content",
|
|
310
|
+
validator(value) {
|
|
311
|
+
return value === "content" ||
|
|
312
|
+
value === "product" ||
|
|
313
|
+
value === "user"
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
/**
|
|
317
|
+
* set if content (in box-body) should scroll
|
|
318
|
+
*
|
|
319
|
+
* (maxBoxBodyHeight must be set)
|
|
320
|
+
*/
|
|
321
|
+
allowContentToScroll: {
|
|
322
|
+
type: Boolean,
|
|
323
|
+
default: false
|
|
324
|
+
},
|
|
325
|
+
/**
|
|
326
|
+
* set max-height for body (should only be used if allowContentToScroll-property is active)
|
|
327
|
+
*/
|
|
328
|
+
maxBoxBodyHeight: {
|
|
329
|
+
type: String,
|
|
330
|
+
default: "20rem"
|
|
331
|
+
},
|
|
332
|
+
/**
|
|
333
|
+
* activate if box should be collapsible
|
|
334
|
+
*/
|
|
335
|
+
collapsible: {
|
|
336
|
+
type: Boolean,
|
|
337
|
+
default: false
|
|
338
|
+
},
|
|
339
|
+
/**
|
|
340
|
+
* number of lines to show if text should be cutoff
|
|
341
|
+
*/
|
|
342
|
+
cutoffTextLines: {
|
|
343
|
+
type: Number,
|
|
344
|
+
default: 0
|
|
345
|
+
},
|
|
346
|
+
/**
|
|
347
|
+
* deactivate if no default-padding should be used (has no effect on content given by textBody-property)
|
|
348
|
+
*
|
|
349
|
+
* @affectsStyling: true
|
|
350
|
+
*/
|
|
351
|
+
useBoxBodyPadding: {
|
|
352
|
+
type: Boolean,
|
|
353
|
+
default: true
|
|
354
|
+
},
|
|
355
|
+
/**
|
|
356
|
+
* show fade-effect on last line
|
|
357
|
+
*
|
|
358
|
+
* cutoffTextLines-property must be large 0
|
|
359
|
+
*/
|
|
360
|
+
fadeLastLine: {
|
|
361
|
+
type: Boolean,
|
|
362
|
+
default: false
|
|
363
|
+
},
|
|
364
|
+
/**
|
|
365
|
+
* use transition to expand and collapse box-body
|
|
366
|
+
*
|
|
367
|
+
* 'boyType-property' must be set to 'content' and 'collapsible-property' must be activated
|
|
368
|
+
*/
|
|
369
|
+
useTransition: {
|
|
370
|
+
type: Boolean,
|
|
371
|
+
default: true
|
|
372
|
+
},
|
|
373
|
+
/**
|
|
374
|
+
* custom class placed on box-body-container
|
|
375
|
+
*/
|
|
376
|
+
boxBodyClass: {
|
|
377
|
+
type: String,
|
|
378
|
+
required: false
|
|
379
|
+
},
|
|
380
|
+
/**
|
|
381
|
+
* the shown product (incl. name, price, image, description)
|
|
382
|
+
*
|
|
383
|
+
* @required: only available for boxtype===product
|
|
384
|
+
*/
|
|
385
|
+
product: {
|
|
386
|
+
type: Object,
|
|
387
|
+
required: false
|
|
388
|
+
},
|
|
389
|
+
/**
|
|
390
|
+
* the shown user-profile (incl. name, image, contact-data)
|
|
391
|
+
*
|
|
392
|
+
* @required: only available for boxtype===user
|
|
393
|
+
*/
|
|
394
|
+
user: {
|
|
395
|
+
type: Object,
|
|
396
|
+
required: false
|
|
397
|
+
},
|
|
398
|
+
/**
|
|
399
|
+
* profile types for user-boxes
|
|
400
|
+
*
|
|
401
|
+
* @required: only available for boxtype===user
|
|
402
|
+
*
|
|
403
|
+
* @allowedValues: 'business', 'influencer', 'material-web'
|
|
404
|
+
*/
|
|
405
|
+
profileType: {
|
|
406
|
+
type: String,
|
|
407
|
+
default: "business",
|
|
408
|
+
validator(value) {
|
|
409
|
+
return value === "business" ||
|
|
410
|
+
value === "influencer" ||
|
|
411
|
+
value === "material-web"
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
/**
|
|
415
|
+
* activated if all content (incl. headline) is given by slot
|
|
416
|
+
*
|
|
417
|
+
* if false textBody-property must be set
|
|
418
|
+
*/
|
|
419
|
+
useSlots: {
|
|
420
|
+
type: Array,
|
|
421
|
+
required: false
|
|
422
|
+
},
|
|
423
|
+
/**
|
|
424
|
+
* image-object for box-body of content-box
|
|
425
|
+
*
|
|
426
|
+
* properties for CmdImage-component
|
|
427
|
+
*/
|
|
428
|
+
cmdImage: {
|
|
429
|
+
type: Object,
|
|
430
|
+
required: false
|
|
431
|
+
},
|
|
432
|
+
/**
|
|
433
|
+
* String used as content (placed in a paragraph-tag) for box-body
|
|
434
|
+
*
|
|
435
|
+
* should only be used, if no further html-structure is required for box-body
|
|
436
|
+
*
|
|
437
|
+
* @canContainHtml: true
|
|
438
|
+
*/
|
|
439
|
+
textBody: {
|
|
440
|
+
type: String,
|
|
441
|
+
default: ""
|
|
442
|
+
},
|
|
443
|
+
/**
|
|
444
|
+
* icon for user-profile if no user-image exists
|
|
445
|
+
*
|
|
446
|
+
* {
|
|
447
|
+
* iconClass: string,
|
|
448
|
+
* iconType: string
|
|
449
|
+
* }
|
|
450
|
+
* @requiredForAccessibility: partial
|
|
451
|
+
*/
|
|
452
|
+
iconUserProfile: {
|
|
453
|
+
type: Object,
|
|
454
|
+
default: function () {
|
|
455
|
+
return {
|
|
456
|
+
iconClass: "icon-user-profile",
|
|
457
|
+
iconType: "auto"
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
/**
|
|
462
|
+
* icon to expand an accordion
|
|
463
|
+
*
|
|
464
|
+
* @requiredForAccessibility: partial
|
|
465
|
+
*/
|
|
466
|
+
iconOpen: {
|
|
467
|
+
type: Object,
|
|
468
|
+
default: function () {
|
|
469
|
+
return {
|
|
470
|
+
iconClass: "icon-chevron-one-stripe-up",
|
|
471
|
+
tooltip: "Close content",
|
|
472
|
+
iconType: "auto"
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
/**
|
|
477
|
+
* icon to collapse an accordion
|
|
478
|
+
*
|
|
479
|
+
* @requiredForAccessibility: partial
|
|
480
|
+
*/
|
|
481
|
+
iconClosed: {
|
|
482
|
+
type: Object,
|
|
483
|
+
default: function () {
|
|
484
|
+
return {
|
|
485
|
+
iconClass: "icon-chevron-one-stripe-down",
|
|
486
|
+
tooltip: "Show content",
|
|
487
|
+
iconType: "auto"
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
/**
|
|
492
|
+
* allow box to be stretched as wide as parent-element
|
|
493
|
+
*/
|
|
494
|
+
stretchHorizontally: {
|
|
495
|
+
type: Boolean,
|
|
496
|
+
default: true
|
|
497
|
+
},
|
|
498
|
+
/**
|
|
499
|
+
* allow box to be stretched as high as parent-element
|
|
500
|
+
*/
|
|
501
|
+
stretchVertically: {
|
|
502
|
+
type: Boolean,
|
|
503
|
+
default: true
|
|
504
|
+
},
|
|
505
|
+
/**
|
|
506
|
+
* position of headline
|
|
507
|
+
*
|
|
508
|
+
* cmdHeadline-property must be set
|
|
509
|
+
*/
|
|
510
|
+
headlinePosition: {
|
|
511
|
+
type: String,
|
|
512
|
+
default: "header",
|
|
513
|
+
validator(value) {
|
|
514
|
+
return value === "header" || value === "body"
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
/**
|
|
518
|
+
* properties for CmdHeadline-component
|
|
519
|
+
*/
|
|
520
|
+
cmdHeadline: {
|
|
521
|
+
type: Object,
|
|
522
|
+
required: false
|
|
523
|
+
},
|
|
524
|
+
/**
|
|
525
|
+
* properties for CmdLink-component to set additional link at bottom of box
|
|
526
|
+
*/
|
|
527
|
+
cmdLink: {
|
|
528
|
+
type: Object,
|
|
529
|
+
default: {}
|
|
530
|
+
},
|
|
531
|
+
/**
|
|
532
|
+
* properties for CmdIcon-component to set large icon in box-body
|
|
533
|
+
*/
|
|
534
|
+
cmdIcon: {
|
|
535
|
+
type: Object,
|
|
536
|
+
required: false
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
/*
|
|
540
|
+
mounted() {
|
|
541
|
+
if (this.allowContentToScroll && this.$refs.boxBody) {
|
|
542
|
+
const topPosition = this.$refs.boxBody.getBoundingClientRect().top
|
|
543
|
+
this.calculatedBodyHeight = (document.documentElement.clientHeight - topPosition) + "px"
|
|
544
|
+
}
|
|
545
|
+
},*/
|
|
546
|
+
computed: {
|
|
547
|
+
toggleTransition() {
|
|
548
|
+
if (this.useTransition) {
|
|
549
|
+
return "fade"
|
|
550
|
+
}
|
|
551
|
+
return ""
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
methods: {
|
|
555
|
+
// for collapsible boxes of boxType === content
|
|
556
|
+
toggleContentVisibility() {
|
|
557
|
+
this.open = !this.open
|
|
558
|
+
this.active = !this.active
|
|
559
|
+
|
|
560
|
+
this.$emit("toggle-collapse", this.open)
|
|
561
|
+
},
|
|
562
|
+
// toggle cutofftext (between full and faded text)
|
|
563
|
+
toggleCutOffText() {
|
|
564
|
+
this.showCutOffText = !this.showCutOffText
|
|
565
|
+
this.$emit("toggle-cutofftext", this.showCutOffText)
|
|
566
|
+
},
|
|
567
|
+
// for boxType === product
|
|
568
|
+
clickOnProduct(product) {
|
|
569
|
+
this.$emit("click", product)
|
|
570
|
+
},
|
|
571
|
+
// set focus on first input if box contains form-elements
|
|
572
|
+
setFocus() {
|
|
573
|
+
this.$nextTick(() => {
|
|
574
|
+
if (this.open) {
|
|
575
|
+
const firstFormElement = this.$refs.cmdBox.querySelector(":is(input, select, textarea):first-of-type")
|
|
576
|
+
|
|
577
|
+
if (firstFormElement) {
|
|
578
|
+
firstFormElement.focus()
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
})
|
|
582
|
+
}
|
|
583
|
+
},
|
|
584
|
+
watch: {
|
|
585
|
+
openCollapsedBox() {
|
|
586
|
+
// toggle collapse-status of all boxes if changed in outer component
|
|
587
|
+
if (this.collapsible) {
|
|
588
|
+
this.open = this.openCollapsedBox
|
|
589
|
+
this.setFocus()
|
|
590
|
+
}
|
|
591
|
+
},
|
|
592
|
+
open() {
|
|
593
|
+
this.setFocus()
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
</script>
|
|
598
|
+
|
|
599
|
+
<style>
|
|
600
|
+
/* begin cmd-box ---------------------------------------------------------------------------------------- */
|
|
601
|
+
.cmd-box {
|
|
602
|
+
display: inline-flex;
|
|
603
|
+
flex-direction: column;
|
|
604
|
+
padding: 0;
|
|
605
|
+
align-self: start;
|
|
606
|
+
|
|
607
|
+
&.stretch-horizontally {
|
|
608
|
+
display: flex;
|
|
609
|
+
width: 100%;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
&.stretch-vertically {
|
|
613
|
+
align-self: auto;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
.box-header {
|
|
617
|
+
overflow: hidden; /* hide edges of optional badges */
|
|
618
|
+
|
|
619
|
+
.cmd-headline {
|
|
620
|
+
margin-bottom: 0;
|
|
621
|
+
text-decoration: none;
|
|
622
|
+
|
|
623
|
+
&:only-child {
|
|
624
|
+
width: 100% /* stretch in flex-container */
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
&:has(.cmd-image) {
|
|
630
|
+
align-self: auto !important; /* overwrite settings form frontend-framework */
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
&:has(> .cmd-image:only-child) {
|
|
634
|
+
align-self: start !important;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
/* collapsible box only */
|
|
638
|
+
&.collapsible {
|
|
639
|
+
a.box-header {
|
|
640
|
+
justify-content: space-between;
|
|
641
|
+
background: var(--box-header-background);
|
|
642
|
+
border-radius: var(--box-border-radius);
|
|
643
|
+
border-bottom: 0;
|
|
644
|
+
|
|
645
|
+
&:hover, &:active, &:focus {
|
|
646
|
+
background: var(--color-scheme-background);
|
|
647
|
+
|
|
648
|
+
* {
|
|
649
|
+
color: var(--hyperlink-color);
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
&.stretch-vertically {
|
|
655
|
+
align-self: flex-start;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
.box-body {
|
|
659
|
+
display: none;
|
|
660
|
+
border-top: var(--box-border);
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
> .box-body:first-child {
|
|
665
|
+
border-top: 0 !important;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
.box-body {
|
|
669
|
+
.allow-scroll {
|
|
670
|
+
overflow-y: auto;
|
|
671
|
+
|
|
672
|
+
& * {
|
|
673
|
+
flex-shrink: 0;
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
/* boyType === 'content' */
|
|
679
|
+
&.content {
|
|
680
|
+
> * {
|
|
681
|
+
*:last-child {
|
|
682
|
+
margin-bottom: 0;
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
&.open {
|
|
687
|
+
> .box-header {
|
|
688
|
+
border-bottom-left-radius: 0;
|
|
689
|
+
border-bottom-right-radius: 0;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
fieldset {
|
|
693
|
+
border: 0;
|
|
694
|
+
padding: var(--default-padding);
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
.box-body {
|
|
698
|
+
display: flex;
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
> .box-header {
|
|
703
|
+
text-decoration: none;
|
|
704
|
+
|
|
705
|
+
> .cmd-custom-headline {
|
|
706
|
+
margin-bottom: 0;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
* {
|
|
710
|
+
color: var(--box-header-text-color);
|
|
711
|
+
margin-bottom: 0;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
> .toggle-icon {
|
|
715
|
+
margin-left: auto;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
> .toggle-icon, .toggle-icon > [class*="icon-"] {
|
|
719
|
+
font-size: var(--font-size-small);
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
.box-body {
|
|
724
|
+
flex-grow: 1;
|
|
725
|
+
|
|
726
|
+
.box-body-padding {
|
|
727
|
+
padding: var(--box-body-padding);
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
& > div:only-child {
|
|
731
|
+
flex-grow: 1;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
.body-icon-wrapper {
|
|
735
|
+
display: flex;
|
|
736
|
+
justify-content: center;
|
|
737
|
+
margin-bottom: var(--default-margin);
|
|
738
|
+
|
|
739
|
+
span[class*="icon"] {
|
|
740
|
+
font-size: 8rem;
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
p.cutoff-text {
|
|
745
|
+
padding: var(--default-padding);
|
|
746
|
+
margin: 0;
|
|
747
|
+
overflow: hidden;
|
|
748
|
+
height: calc(var(--line-of-text-height) * v-bind(cutoffTextLines));
|
|
749
|
+
|
|
750
|
+
&.fade-last-line::after {
|
|
751
|
+
content: "";
|
|
752
|
+
width: 100%;
|
|
753
|
+
position: absolute;
|
|
754
|
+
left: 0;
|
|
755
|
+
bottom: 0;
|
|
756
|
+
height: calc(var(--line-of-text-height) * 3);
|
|
757
|
+
background: linear-gradient(to bottom, transparent 0%, var(--color-scheme-background-subtle) 100%);
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
&.show-text {
|
|
761
|
+
height: auto;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
& + a {
|
|
765
|
+
border-top: var(--box-border);
|
|
766
|
+
display: block;
|
|
767
|
+
padding: var(--default-padding);
|
|
768
|
+
margin: 0;
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
img {
|
|
773
|
+
display: block;
|
|
774
|
+
border-radius: 0;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
.inner-box-body-wrapper {
|
|
778
|
+
& > * {
|
|
779
|
+
border-radius: 0;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
&:has(figure:only-child) {
|
|
783
|
+
border-bottom-left-radius: var(--box-border-radius);
|
|
784
|
+
border-bottom-right-radius: var(--box-border-radius);
|
|
785
|
+
|
|
786
|
+
img {
|
|
787
|
+
border-radius: inherit;
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
.navigation {
|
|
793
|
+
margin: 0;
|
|
794
|
+
height: 100%;
|
|
795
|
+
|
|
796
|
+
li {
|
|
797
|
+
list-style-type: none;
|
|
798
|
+
margin: 0;
|
|
799
|
+
|
|
800
|
+
a {
|
|
801
|
+
display: block;
|
|
802
|
+
padding: var(--default-padding);
|
|
803
|
+
text-decoration: none;
|
|
804
|
+
border-bottom: var(--box-border);
|
|
805
|
+
|
|
806
|
+
&:hover, &:active, &:focus {
|
|
807
|
+
background: var(--primary-color);
|
|
808
|
+
color: var(--primary-color-contrast-text);
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
&:last-child {
|
|
813
|
+
a {
|
|
814
|
+
border: 0;
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
/* boyType === 'product' and boxType === 'user' */
|
|
823
|
+
&.product, &.user {
|
|
824
|
+
> div {
|
|
825
|
+
> .cmd-custom-headline {
|
|
826
|
+
margin-top: var(--default-margin);
|
|
827
|
+
justify-content: center;
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
/* boyType === 'product' */
|
|
833
|
+
&.product {
|
|
834
|
+
text-decoration: none;
|
|
835
|
+
overflow: hidden;
|
|
836
|
+
|
|
837
|
+
[class*="ribbon"] {
|
|
838
|
+
position: absolute;
|
|
839
|
+
z-index: 10;
|
|
840
|
+
overflow: hidden;
|
|
841
|
+
width: 10rem;
|
|
842
|
+
height: 10rem;
|
|
843
|
+
top: 0;
|
|
844
|
+
left: 0;
|
|
845
|
+
|
|
846
|
+
span {
|
|
847
|
+
position: absolute;
|
|
848
|
+
display: block;
|
|
849
|
+
transform: rotate(-45deg);
|
|
850
|
+
width: 100%;
|
|
851
|
+
top: 15%;
|
|
852
|
+
left: -25%;
|
|
853
|
+
background: var(--error-color);
|
|
854
|
+
font-weight: bold;
|
|
855
|
+
color: var(--color-white);
|
|
856
|
+
text-transform: uppercase;
|
|
857
|
+
text-align: center;
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
.ribbon-discount {
|
|
862
|
+
left: auto;
|
|
863
|
+
right: 0;
|
|
864
|
+
|
|
865
|
+
span {
|
|
866
|
+
transform: rotate(45deg);
|
|
867
|
+
right: -20%;
|
|
868
|
+
left: auto;
|
|
869
|
+
background: green;
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
> .box-header {
|
|
874
|
+
padding: 0;
|
|
875
|
+
|
|
876
|
+
> img, > div {
|
|
877
|
+
display: table;
|
|
878
|
+
margin: 0 auto;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
img {
|
|
882
|
+
border: 0;
|
|
883
|
+
border-bottom-left-radius: 0;
|
|
884
|
+
border-bottom-right-radius: 0;
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
.box-body {
|
|
889
|
+
flex-grow: 1;
|
|
890
|
+
padding: var(--default-padding);
|
|
891
|
+
|
|
892
|
+
> * {
|
|
893
|
+
text-align: center;
|
|
894
|
+
|
|
895
|
+
&:last-child {
|
|
896
|
+
margin-bottom: 0;
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
.price {
|
|
901
|
+
font-size: 1.8rem;
|
|
902
|
+
font-weight: bold;
|
|
903
|
+
|
|
904
|
+
span:last-child {
|
|
905
|
+
margin-left: calc(var(--default-margin) / 2);
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
&:hover, &:active, &:focus {
|
|
911
|
+
border-color: var(--hyperlink-color-highlighted);
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
|
|
915
|
+
&.row-view {
|
|
916
|
+
flex-direction: row;
|
|
917
|
+
align-items: center;
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
/* boxType === 'user' */
|
|
922
|
+
&.user {
|
|
923
|
+
--box-header-padding: var(--default-padding);
|
|
924
|
+
|
|
925
|
+
.user-name {
|
|
926
|
+
color: var(--color-scheme-text-color);
|
|
927
|
+
font-size: 2rem;
|
|
928
|
+
font-weight: bold;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
.user-age {
|
|
932
|
+
font-size: var(--default-font-size);
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
> .box-header {
|
|
936
|
+
--default-icon-size: 6rem;
|
|
937
|
+
--box-header-text-color: var(--primary-color);
|
|
938
|
+
|
|
939
|
+
background: none;
|
|
940
|
+
gap: calc(var(--default-gap) / 2);
|
|
941
|
+
|
|
942
|
+
> div:first-child > [class*="icon-"] {
|
|
943
|
+
aspect-ratio: 1/1;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
img {
|
|
947
|
+
margin: 0 auto var(--default-margin) auto;
|
|
948
|
+
|
|
949
|
+
& + p, & + figcaption {
|
|
950
|
+
margin: 0 auto;
|
|
951
|
+
text-align: center;
|
|
952
|
+
font-weight: bold;
|
|
953
|
+
font-size: 2rem;
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
img, .no-user-image {
|
|
958
|
+
padding: 0;
|
|
959
|
+
width: calc(var(--default-icon-size) * 2);
|
|
960
|
+
aspect-ratio: 1/1;
|
|
961
|
+
max-width: 12rem;
|
|
962
|
+
border-radius: var(--full-circle);
|
|
963
|
+
background: var(--box-header-background);
|
|
964
|
+
display: flex;
|
|
965
|
+
color: var(--box-header-text-color);
|
|
966
|
+
justify-content: center;
|
|
967
|
+
align-items: center;
|
|
968
|
+
font-size: var(--default-icon-size);
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
.no-user-image {
|
|
972
|
+
background: var(--color-scheme-background-subtle);
|
|
973
|
+
border: var(--image-border);
|
|
974
|
+
box-shadow: var(--image-box-shadow);
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
.box-body {
|
|
979
|
+
flex-grow: 1;
|
|
980
|
+
padding: var(--default-padding);
|
|
981
|
+
|
|
982
|
+
border-bottom: 0;
|
|
983
|
+
|
|
984
|
+
p {
|
|
985
|
+
text-align: center;
|
|
986
|
+
font-weight: bold;
|
|
987
|
+
|
|
988
|
+
&:last-child {
|
|
989
|
+
margin-bottom: 0;
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
&.description {
|
|
993
|
+
font-weight: normal;
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
.box-footer {
|
|
999
|
+
margin-top: auto;
|
|
1000
|
+
padding: 0;
|
|
1001
|
+
border-top: var(--box-border);
|
|
1002
|
+
|
|
1003
|
+
.cmd-list {
|
|
1004
|
+
ul {
|
|
1005
|
+
width: 100%;
|
|
1006
|
+
margin-bottom: 0;
|
|
1007
|
+
|
|
1008
|
+
li {
|
|
1009
|
+
flex: 1;
|
|
1010
|
+
border-radius: var(--box-border-radius);
|
|
1011
|
+
border-top-left-radius: 0;
|
|
1012
|
+
border-top-right-radius: 0;
|
|
1013
|
+
|
|
1014
|
+
&:not(:only-child) {
|
|
1015
|
+
border-bottom-left-radius: 0;
|
|
1016
|
+
border-bottom-right-radius: 0;
|
|
1017
|
+
|
|
1018
|
+
&:first-child {
|
|
1019
|
+
border-bottom-left-radius: var(--box-border-radius);
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
&:last-child {
|
|
1023
|
+
border-bottom-right-radius: var(--box-border-radius);
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
a {
|
|
1028
|
+
flex: 1;
|
|
1029
|
+
padding: var(--default-padding);
|
|
1030
|
+
text-align: center;
|
|
1031
|
+
background: var(--color-scheme-background);
|
|
1032
|
+
border-left: var(--box-border);
|
|
1033
|
+
border-radius: inherit;
|
|
1034
|
+
line-height: 100%;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
.cmd-link:has(span[class*="icon-"]) {
|
|
1038
|
+
justify-content: center;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
&:hover, &:active, &:focus {
|
|
1042
|
+
a {
|
|
1043
|
+
background: var(--primary-color);
|
|
1044
|
+
color: var(--primary-color-contrast-text);
|
|
1045
|
+
|
|
1046
|
+
span, [class*="icon-"] {
|
|
1047
|
+
color: var(--primary-color-contrast-text);
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
&:first-child {
|
|
1053
|
+
a {
|
|
1054
|
+
border: 0;
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
ul.horizontal {
|
|
1061
|
+
li {
|
|
1062
|
+
border-radius: 0 !important;
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
&.row-view {
|
|
1069
|
+
.box-header {
|
|
1070
|
+
border: 0;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
.box-body {
|
|
1074
|
+
padding: 0;
|
|
1075
|
+
|
|
1076
|
+
p {
|
|
1077
|
+
text-align: left;
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
.box-footer {
|
|
1082
|
+
border: 0;
|
|
1083
|
+
background: none;
|
|
1084
|
+
|
|
1085
|
+
.cmd-list-of-links {
|
|
1086
|
+
background: none;
|
|
1087
|
+
|
|
1088
|
+
ul li {
|
|
1089
|
+
aspect-ratio: 1/1;
|
|
1090
|
+
border-radius: var(--box-border-radius) !important; /* overwrite settings from default-/column-view */
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
ul, ul * {
|
|
1094
|
+
border: 0;
|
|
1095
|
+
background: inherit;
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
/* end cmd-box ------------------------------------------------------------------------------------------ */
|
|
1087
1104
|
</style>
|