comand-component-library 4.2.53 → 4.2.55

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.
@@ -159,7 +159,7 @@
159
159
  href="#"
160
160
  @click.prevent="clickOnProduct(product)">
161
161
  <div class="box-header flex-container vertical">
162
- <CmdImage v-if="product.image?.src" v-bind="product.image" />
162
+ <CmdImage v-if="product.image?.src" v-bind="{image:{...product.image}}" />
163
163
 
164
164
  <!-- begin ribbons -->
165
165
  <div v-if="product.new" class="ribbon-new">
@@ -208,16 +208,23 @@
208
208
  </figcaption>
209
209
  </figure>
210
210
  <!-- end no user-image -->
211
-
211
+
212
212
  <!-- begin no user-image -->
213
- <div v-else class="no-user-image">
214
- <CmdIcon
215
- :iconClass="iconUserProfile.iconClass"
216
- :type="iconUserProfile.iconType"
217
- :title="user.name"
218
- />
219
- <p v-if="!rowView" class="user-name">{{ user.name }}</p>
220
- </div>
213
+ <template v-else>
214
+ <div class="no-user-image">
215
+ <CmdIcon
216
+ :iconClass="iconUserProfile.iconClass"
217
+ :type="iconUserProfile.iconType"
218
+ :title="user.name"
219
+ />
220
+ </div>
221
+ <p v-if="!rowView" class="user-name">
222
+ {{ user.name }}
223
+ <span v-if="user.age" class="user-age">
224
+ ({{ user.age }})
225
+ </span>
226
+ </p>
227
+ </template>
221
228
  <!-- end no user-image -->
222
229
  </div>
223
230
  <!-- end box-header -->
@@ -241,7 +248,7 @@
241
248
 
242
249
  <!-- begin box-footer -->
243
250
  <div v-if="user.links && user.links.length" class="box-footer">
244
- <CmdList :links="user.links" orientation="horizontal" :useGap="false"/>
251
+ <CmdList :items="user.links" orientation="horizontal" :useGap="false"/>
245
252
  </div>
246
253
  <!-- end box-footer -->
247
254
  </div>
@@ -390,7 +397,7 @@ export default {
390
397
  *
391
398
  * @required: only available for boxtype===user
392
399
  *
393
- * @allowedValues: 'business', 'influencer', 'dating'
400
+ * @allowedValues: 'business', 'influencer', 'material-web'
394
401
  */
395
402
  profileType: {
396
403
  type: String,
@@ -398,7 +405,7 @@ export default {
398
405
  validator(value) {
399
406
  return value === "business" ||
400
407
  value === "influencer" ||
401
- value === "dating"
408
+ value === "material-web"
402
409
  }
403
410
  },
404
411
  /**
@@ -433,6 +440,10 @@ export default {
433
440
  /**
434
441
  * icon for user-profile if no user-image exists
435
442
  *
443
+ * {
444
+ * iconClass: string,
445
+ * iconType: string
446
+ * }
436
447
  * @requiredForAccessibility: partial
437
448
  */
438
449
  iconUserProfile: {
@@ -600,6 +611,8 @@ export default {
600
611
  }
601
612
 
602
613
  .box-header {
614
+ overflow: hidden; /* hide edges of optional badges */
615
+
603
616
  .cmd-headline {
604
617
  margin-bottom: 0;
605
618
  text-decoration: none;
@@ -624,6 +637,7 @@ export default {
624
637
  justify-content: space-between;
625
638
  background: var(--box-header-background);
626
639
  border-radius: var(--box-border-radius);
640
+ border-bottom: 0;
627
641
 
628
642
  &:hover, &:active, &:focus {
629
643
  background: var(--color-white);
@@ -633,6 +647,10 @@ export default {
633
647
  }
634
648
  }
635
649
  }
650
+
651
+ .box-body {
652
+ border-top: var(--box-border);
653
+ }
636
654
  }
637
655
 
638
656
  > .box-body:first-child {
@@ -693,7 +711,6 @@ export default {
693
711
  .box-body {
694
712
  display: flex;
695
713
  flex-grow: 1;
696
- border-top: var(--box-border);
697
714
 
698
715
  .box-body-padding {
699
716
  padding: var(--box-body-padding);
@@ -855,12 +872,6 @@ export default {
855
872
  border-bottom-left-radius: 0;
856
873
  border-bottom-right-radius: 0;
857
874
  }
858
-
859
- figcaption {
860
- font-size: 2rem;
861
- font-weight: bold;
862
- padding: var(--default-padding);
863
- }
864
875
  }
865
876
 
866
877
  .box-body {
@@ -888,13 +899,22 @@ export default {
888
899
  &:hover, &:active, &:focus {
889
900
  border-color: var(--hyperlink-color-highlighted);
890
901
  }
902
+
903
+
904
+ &.row-view {
905
+ flex-direction: row;
906
+ align-items: center;
907
+ }
891
908
  }
892
909
 
893
910
  /* boxType === 'user' */
894
911
  &.user {
912
+ --box-header-padding: var(--default-padding);
913
+
895
914
  .user-name {
896
915
  color: var(--color-scheme-text-color);
897
916
  font-size: 2rem;
917
+ font-weight: bold;
898
918
  }
899
919
 
900
920
  .user-age {
@@ -906,15 +926,12 @@ export default {
906
926
  --box-header-text-color: var(--primary-color);
907
927
 
908
928
  background: none;
929
+ gap: calc(var(--default-gap) / 2);
909
930
 
910
931
  > div:first-child > [class*="icon-"] {
911
932
  aspect-ratio: 1/1;
912
933
  }
913
934
 
914
- &:has(img) {
915
- --box-header-padding: var(--default-padding);
916
- }
917
-
918
935
  img {
919
936
  margin: 0 auto var(--default-margin) auto;
920
937
 
@@ -937,15 +954,19 @@ export default {
937
954
  color: var(--color-white);
938
955
  justify-content: center;
939
956
  align-items: center;
940
- margin: 0;
941
957
  font-size: var(--default-icon-size);
942
958
  }
959
+
960
+ .no-user-image {
961
+ background: var(--default-background);
962
+ }
943
963
  }
944
964
 
945
965
  .box-body {
946
966
  flex-grow: 1;
947
967
  padding: var(--default-padding);
948
- padding-top: 0;
968
+
969
+ border-bottom: 0;
949
970
 
950
971
  p {
951
972
  text-align: center;
@@ -966,7 +987,7 @@ export default {
966
987
  padding: 0;
967
988
  border-top: var(--box-border);
968
989
 
969
- .cmd-list-of-links {
990
+ .cmd-list {
970
991
  ul {
971
992
  width: 100%;
972
993
  margin-bottom: 0;
@@ -1026,6 +1047,10 @@ export default {
1026
1047
  }
1027
1048
 
1028
1049
  &.row-view {
1050
+ .box-header {
1051
+ border: 0;
1052
+ }
1053
+
1029
1054
  .box-body {
1030
1055
  padding: 0;
1031
1056
 
@@ -300,8 +300,6 @@ export default {
300
300
  }
301
301
 
302
302
  .row-view {
303
- flex-direction: column;
304
-
305
303
  p.cutoff-text {
306
304
  height: auto;
307
305
 
@@ -332,8 +330,6 @@ export default {
332
330
  grid-template-columns: repeat(1, minmax(0, 1fr));
333
331
  }
334
332
  }
335
-
336
-
337
333
  }
338
334
  </style>
339
335
 
@@ -93,7 +93,6 @@
93
93
  <!-- end slot-content -->
94
94
  </div>
95
95
  </div>
96
-
97
96
  <footer v-if="showSubmitButtons && fancyBoxOptionsProperties.submitButtons" class="flex-container flex-none">
98
97
  <!-- begin cancel-button -->
99
98
  <button
@@ -545,9 +544,10 @@ export default FancyBox
545
544
 
546
545
  > header {
547
546
  display: flex;
547
+ height: auto; /* overwrite possible overwrites by global header */
548
+ max-height: none; /* overwrite possible overwrites by global header */
548
549
  }
549
550
 
550
-
551
551
  > .grayscale {
552
552
  filter: grayscale(1);
553
553
  }
@@ -68,7 +68,7 @@
68
68
  <small v-if="mandatoryText" class="mandatory-text"><sup>*</sup>{{ mandatoryText }}</small>
69
69
  <!-- begin cancel-button (below fieldset) -->
70
70
  <button
71
- v-if="cancelButtonOptions !== undefined"
71
+ v-if="cancelButtonOptions.show"
72
72
  :class="['button', {'stretch-on-small-devices': cancelButtonOptions.stretchOnSmallDevices, disabled: cancelButtonOptions.disabled, cancel: cancelButtonOptions.useDefaultStyling}]"
73
73
  type="button"
74
74
  @click="cancelFormSubmit"
@@ -79,7 +79,8 @@
79
79
  <!-- end cancel-button (below fieldset) -->
80
80
 
81
81
  <!-- begin submit-button (below fieldset) -->
82
- <button :class="['button', {'stretch-on-small-devices': submitButtonOptions.stretchOnSmallDevices, primary: submitButtonOptions.primary, disabled: submitButtonOptions.disabled}]"
82
+ <button v-if="submitButtonOptions.show"
83
+ :class="['button', {'stretch-on-small-devices': submitButtonOptions.stretchOnSmallDevices, primary: submitButtonOptions.primary, disabled: submitButtonOptions.disabled}]"
83
84
  :type="submitButtonOptions.type || 'submit'">
84
85
  <span v-if="submitButtonOptions.iconClass" :class="submitButtonOptions.iconClass"></span>
85
86
  <span v-if="submitButtonOptions.text">{{ submitButtonOptions.text }}</span>
@@ -220,6 +221,7 @@ export default {
220
221
  },
221
222
  cancelButtonOptions() {
222
223
  return {
224
+ show: true,
223
225
  iconClass: "icon-cancel-circle",
224
226
  text: "Cancel",
225
227
  useDefaultStyling: false,
@@ -230,6 +232,7 @@ export default {
230
232
  },
231
233
  submitButtonOptions() {
232
234
  return {
235
+ show: true,
233
236
  iconClass: "icon-check-circle",
234
237
  text: "Submit",
235
238
  type: "submit",
@@ -98,7 +98,7 @@ export default {
98
98
  */
99
99
  icon: {
100
100
  type: Object,
101
- default: {}
101
+ default: null
102
102
  },
103
103
  /**
104
104
  * displayed text
@@ -73,7 +73,7 @@
73
73
  <CmdTag
74
74
  :tagText="tag"
75
75
  :highlightLevel="highlightLevel"
76
- :removeTagByClick="true"
76
+ :removeTagByClick="removeTagByClick"
77
77
  @click.prevent="removeTag(event, index)"
78
78
  />
79
79
  <!-- end CmdTag -->
@@ -283,8 +283,19 @@ export default {
283
283
  value === "vertical"
284
284
  }
285
285
  },
286
+ /**
287
+ * allow tags to be remove by click
288
+ *
289
+ * (listContentType-property must be set to "tags")
290
+ */
291
+ removeTagByClick: {
292
+ type: Boolean,
293
+ default: false
294
+ },
286
295
  /**
287
296
  * define remove-icon/link for tags
297
+ *
298
+ * (listContentType-property must be set to "tags" and removeTabByClick-property must be set to true)
288
299
  */
289
300
  iconRemoveTag: {
290
301
  type: Object,
@@ -7,20 +7,6 @@
7
7
  :role="validationStatus === 'error' ? 'alert' : 'dialog'"
8
8
  :aria-labelledby="htmlId"
9
9
  >
10
- <!-- begin close-icon -->
11
- <a
12
- v-if="iconClose.show && iconClose.iconClass"
13
- href="#"
14
- class="close-button"
15
- @click.prevent="hideSystemMessage"
16
- :title="iconClose.tooltip"
17
- >
18
- <!-- begin CmdIcon -->
19
- <CmdIcon :iconClass="iconClose.iconClass" :type="iconClose.iconType" />
20
- <!-- end CmdIcon -->
21
- </a>
22
- <!-- end close-icon -->
23
-
24
10
  <!-- begin slot-content -->
25
11
  <slot>
26
12
  <!-- begin CmdHeadline -->
@@ -34,6 +20,20 @@
34
20
  <!-- end CmdHeadline -->
35
21
  </slot>
36
22
  <!-- end slot-content -->
23
+
24
+ <!-- begin close-icon -->
25
+ <a
26
+ v-if="iconClose.show && iconClose.iconClass"
27
+ href="#"
28
+ class="close-button"
29
+ @click.prevent="hideSystemMessage"
30
+ :title="iconClose.tooltip"
31
+ >
32
+ <!-- begin CmdIcon -->
33
+ <CmdIcon :iconClass="iconClose.iconClass" :type="iconClose.iconType" />
34
+ <!-- end CmdIcon -->
35
+ </a>
36
+ <!-- end close-icon -->
37
37
  </div>
38
38
  </transition>
39
39
  <!-- end CmdSystemMessage ---------------------------------------------------------------------------------------- -->