comand-component-library 3.3.87 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. package/dist/comand-component-library.js +473 -467
  2. package/dist/comand-component-library.umd.cjs +4 -4
  3. package/dist/media/images/slideshow-images/large/slide1.jpg +0 -0
  4. package/dist/media/images/slideshow-images/large/slide2.jpg +0 -0
  5. package/dist/media/images/slideshow-images/large/slide3.jpg +0 -0
  6. package/dist/media/images/slideshow-images/large/slide4.jpg +0 -0
  7. package/dist/media/images/slideshow-images/medium/slide1.jpg +0 -0
  8. package/dist/media/images/slideshow-images/medium/slide2.jpg +0 -0
  9. package/dist/media/images/slideshow-images/medium/slide3.jpg +0 -0
  10. package/dist/media/images/slideshow-images/medium/slide4.jpg +0 -0
  11. package/dist/media/images/slideshow-images/small/slide1.jpg +0 -0
  12. package/dist/media/images/slideshow-images/small/slide2.jpg +0 -0
  13. package/dist/media/images/slideshow-images/small/slide3.jpg +0 -0
  14. package/dist/media/images/slideshow-images/small/slide4.jpg +0 -0
  15. package/dist/style.css +1 -1
  16. package/package.json +2 -2
  17. package/src/App.vue +680 -632
  18. package/src/assets/data/address-data.json +3 -3
  19. package/src/components/CmdAddressData.vue +90 -96
  20. package/src/components/CmdAddressDataItem.vue +60 -52
  21. package/src/components/CmdBankAccountData.vue +1 -1
  22. package/src/components/CmdBox.vue +10 -10
  23. package/src/components/CmdBoxWrapper.vue +8 -4
  24. package/src/components/CmdBreadcrumbs.vue +1 -1
  25. package/src/components/CmdCompanyLogo.vue +14 -11
  26. package/src/components/CmdContainer.vue +1 -1
  27. package/src/components/CmdCookieDisclaimer.vue +1 -1
  28. package/src/components/CmdCopyrightInformation.vue +1 -1
  29. package/src/components/CmdFancyBox.vue +8 -5
  30. package/src/components/CmdForm.vue +7 -1
  31. package/src/components/CmdFormElement.vue +21 -75
  32. package/src/components/CmdFormFilters.vue +2 -1
  33. package/src/components/CmdGoogleMaps.vue +1 -1
  34. package/src/components/CmdHeadline.vue +20 -20
  35. package/src/components/CmdIcon.vue +1 -1
  36. package/src/components/CmdImage.vue +1 -1
  37. package/src/components/CmdImageGallery.vue +1 -1
  38. package/src/components/CmdImageZoom.vue +1 -1
  39. package/src/components/CmdInputGroup.vue +2 -2
  40. package/src/components/CmdListOfLinks.vue +1 -1
  41. package/src/components/CmdListOfLinksItem.vue +0 -4
  42. package/src/components/CmdListOfRequirements.vue +10 -2
  43. package/src/components/CmdLoginForm.vue +1 -1
  44. package/src/components/CmdMainNavigation.vue +18 -17
  45. package/src/components/CmdMultistepFormProgressBar.vue +7 -3
  46. package/src/components/CmdNewsletterSubscription.vue +1 -8
  47. package/src/components/CmdOpeningHours.vue +1 -1
  48. package/src/components/CmdOpeningHoursItem.vue +1 -1
  49. package/src/components/CmdPagination.vue +21 -15
  50. package/src/components/CmdProgressBar.vue +1 -1
  51. package/src/components/CmdSidebar.vue +7 -1
  52. package/src/components/CmdSiteFooter.vue +14 -14
  53. package/src/components/CmdSiteHeader.vue +12 -29
  54. package/src/components/CmdSlideButton.vue +9 -7
  55. package/src/components/CmdSlideshow.vue +14 -12
  56. package/src/components/CmdSocialNetworks.vue +11 -4
  57. package/src/components/CmdSocialNetworksItem.vue +2 -7
  58. package/src/components/CmdSwitchLanguage.vue +1 -1
  59. package/src/components/CmdSystemMessage.vue +10 -6
  60. package/src/components/CmdTable.vue +55 -15
  61. package/src/components/CmdTabs.vue +2 -2
  62. package/src/components/CmdTextImageBlock.vue +1 -1
  63. package/src/components/CmdThumbnailScroller.vue +157 -152
  64. package/src/components/CmdToggleDarkMode.vue +1 -1
  65. package/src/components/CmdTooltip.vue +1 -1
  66. package/src/components/CmdUploadForm.vue +2 -2
  67. package/src/components/CmdWidthLimitationWrapper.vue +7 -3
  68. package/src/mixins/FieldValidation.js +0 -17
@@ -19,9 +19,9 @@
19
19
  <div class="inner-thumbnail-wrapper">
20
20
  <!-- begin CmdSlideButton -->
21
21
  <CmdSlideButton
22
- v-if="showSlidebuttons"
23
- @click.prevent="showPrevItem"
24
- slideButtonType="prev"
22
+ v-if="showSlidebuttons"
23
+ @click.prevent="showPrevItem"
24
+ slideButtonType="prev"
25
25
  />
26
26
  <!-- end CmdSlideButton -->
27
27
 
@@ -357,199 +357,204 @@ export default {
357
357
  }
358
358
  </script>
359
359
 
360
- <style lang="scss">
360
+ <style>
361
361
  /* begin cmd-thumbnail-scroller ------------------------------------------------------------------------------------------ */
362
- @import '../assets/styles/variables';
363
-
364
362
  .cmd-thumbnail-scroller {
365
- display: inline-flex; /* do not set to table to avoid overflow is not hidden on small devices */
363
+ display: inline-flex; /* do not set to table to avoid overflow is not hidden on small devices */
366
364
  flex-direction: column;
367
365
  gap: var(--default-gap);
368
- width: 100%;
366
+ width: 100%;
369
367
 
370
368
  &.full-width:not(.vertical) {
371
- display: flex; /* allows flex-items to stretch equally over full space */
369
+ display: flex; /* allows flex-items to stretch equally over full space */
372
370
 
373
- > div {
374
- width: 100%;
375
- }
376
- }
371
+ > div {
372
+ width: 100%;
373
+ }
374
+ }
377
375
 
378
- > .inner-thumbnail-wrapper {
379
- border-radius: var(--border-radius);
376
+ > .inner-thumbnail-wrapper {
377
+ border-radius: var(--border-radius);
380
378
  padding: calc(var(--default-padding) * 2);
381
379
  padding-top: 0;
382
- margin: 0 auto;
383
- border: var(--default-border);
384
- background: var(--color-scheme-background-color);
385
- overflow: hidden;
386
-
387
- > ul {
388
- overflow: hidden;
389
- margin: 0;
390
- display: flex;
391
- gap: var(--grid-gap);
392
- justify-content: space-between;
393
- width: 100%; /* stretch flex-container */
394
-
395
- > li {
396
- align-self: center;
397
- list-style-type: none;
398
- margin: 0;
380
+ margin: 0 auto;
381
+ border: var(--default-border);
382
+ background: var(--color-scheme-background-color);
383
+ overflow: hidden;
384
+
385
+ > ul {
386
+ overflow: hidden;
387
+ margin: 0;
388
+ display: flex;
389
+ gap: var(--grid-gap);
390
+ justify-content: space-between;
391
+ width: 100%; /* stretch flex-container */
392
+
393
+ > li {
394
+ align-self: center;
395
+ list-style-type: none;
396
+ margin: 0;
399
397
  margin-top: 2rem;
398
+ flex: none; /* avoids items to shrink to small on small screens */
400
399
 
401
- a {
402
- text-align: center;
403
- }
400
+ a {
401
+ text-align: center;
402
+ }
404
403
 
405
- img {
406
- border-radius: var(--border-radius);
404
+ img {
405
+ border-radius: var(--border-radius);
407
406
  min-width: 15rem;
408
- max-height: 10rem;
409
- }
407
+ max-height: 10rem;
408
+ }
410
409
 
411
- &.active {
412
- a {
413
- figcaption {
414
- opacity: 1;
415
- }
416
- }
417
- }
410
+ &.active {
411
+ a {
412
+ figcaption {
413
+ opacity: 1;
414
+ }
415
+ }
416
+ }
418
417
 
419
418
  .image-wrapper {
420
- min-width: 11.1rem; // assure to be as wide as action-buttons in edit-mode
419
+ min-width: 11.1rem; /* assure to be as wide as action-buttons in edit-mode */
421
420
  }
422
- }
423
- }
424
- }
421
+ }
422
+ }
423
+ }
425
424
 
426
- &.vertical {
425
+ &.vertical {
427
426
  width: auto;
428
427
 
429
428
  .inner-thumbnail-wrapper {
430
- display: inline-flex;
431
- left: 50%;
432
- height: 75rem; /* remove later !!! */
433
- transform: translateX(-50%);
434
-
435
- > ul {
436
- width: auto;
437
- display: flex;
438
- flex-direction: column;
439
-
440
- [class*="switch-button-"] {
441
- width: 100%;
442
- height: auto;
443
-
444
- &::before {
445
- transform: rotate(90deg);
446
- display: inline-block;
447
- margin: 0 auto;
429
+ display: inline-flex;
430
+ left: 50%;
431
+ height: 75rem; /* remove later !!! */
432
+ transform: translateX(-50%);
433
+
434
+ > ul {
435
+ width: auto;
436
+ display: flex;
437
+ flex-direction: column;
438
+
439
+ [class*="switch-button-"] {
440
+ width: 100%;
441
+ height: auto;
442
+
443
+ &::before {
444
+ transform: rotate(90deg);
445
+ display: inline-block;
446
+ margin: 0 auto;
447
+ }
448
+ }
449
+ }
450
+
451
+ .slide-button-next {
452
+ top: auto;
453
+ bottom: 0;
454
+ }
448
455
  }
449
- }
450
456
  }
451
457
 
452
- .slide-button-next {
453
- top: auto;
454
- bottom: 0;
455
- }
456
- }
457
- }
458
+ &.gallery-scroller {
459
+ max-width: var(--max-width);
460
+ left: 0;
461
+ right: 0;
462
+ position: fixed;
463
+ bottom: var(--default-margin);
464
+ margin: auto;
465
+ display: table;
466
+
467
+ li {
468
+ a {
469
+ color: var(--color-scheme-text-color);
470
+ text-decoration: none;
471
+ }
458
472
 
459
- &.gallery-scroller {
460
- max-width: var(--max-width);
461
- left: 0;
462
- right: 0;
463
- position: fixed;
464
- bottom: var(--default-margin);
465
- margin: auto;
466
- display: table;
467
-
468
- li {
469
- a {
470
- color: var(--color-scheme-text-color);
471
- text-decoration: none;
472
- }
473
-
474
- &.active {
475
- img {
476
- border-color: var(--primary-color);
477
- }
473
+ &.active {
474
+ img {
475
+ border-color: var(--primary-color);
476
+ }
478
477
 
479
- figcaption {
480
- color: var(--primary-color);
481
- }
482
- }
478
+ figcaption {
479
+ color: var(--primary-color);
480
+ }
481
+ }
483
482
 
484
- &:not(.active) {
485
- img {
486
- border: var(--default-border);
487
- opacity: var(--reduced-opacity);
488
- }
483
+ &:not(.active) {
484
+ img {
485
+ border: var(--default-border);
486
+ opacity: var(--reduced-opacity);
487
+ }
488
+
489
+ figcaption {
490
+ text-decoration: none;
491
+ }
489
492
 
490
- figcaption {
491
- text-decoration: none;
493
+ a {
494
+ &:hover, &:active, &:focus {
495
+ figcaption {
496
+ color: var(--primary-color);
497
+ }
498
+
499
+ img {
500
+ border-color: var(--primary-color);
501
+ opacity: 1;
502
+ }
503
+ }
504
+ }
505
+ }
492
506
  }
507
+ }
493
508
 
494
- a {
495
- &:hover, &:active, &:focus {
496
- figcaption {
497
- color: var(--primary-color);
509
+ &.large-icons {
510
+ li a {
511
+ display: flex;
512
+ flex-direction: column;
513
+ gap: calc(var(--default-gap) / 4);
514
+ text-decoration: none;
515
+ align-items: center;
516
+ justify-content: center;
517
+
518
+ span {
519
+ margin: 0;
498
520
  }
499
521
 
500
- img {
501
- border-color: var(--primary-color);
502
- opacity: 1;
522
+ [class*="icon-"] {
523
+ font-size: 5rem;
503
524
  }
504
- }
505
525
  }
506
- }
507
- }
508
- }
509
-
510
- &.large-icons {
511
- li a {
512
- display: flex;
513
- flex-direction: column;
514
- gap: calc(var(--default-gap) / 4);
515
- text-decoration: none;
516
- align-items: center;
517
- justify-content: center;
518
-
519
- span {
520
- margin: 0;
521
- }
522
-
523
- [class*="icon-"] {
524
- font-size: 5rem;
525
- }
526
526
  }
527
- }
527
+ }
528
+ </style>
528
529
 
529
- @media only screen and (max-width: $medium-max-width) {
530
- & > ul > li {
531
- flex: none;
532
- }
530
+ <style lang="scss">
531
+ @import '../assets/styles/variables';
533
532
 
534
- & img {
535
- width: auto;
536
- }
533
+ @media only screen and (max-width: $medium-max-width) {
534
+ .cmd-thumbnail-scroller {
535
+ & > ul > li {
536
+ flex: none;
537
537
 
538
- & > ul > li img {
539
- max-height: 7rem;
540
- }
538
+ img {
539
+ max-height: 7rem;
540
+ }
541
+ }
541
542
 
542
- &.gallery-scroller {
543
- max-width: calc(100% - calc(var(--default-margin) * 3));
544
- display: flex;
543
+ & img {
544
+ width: auto;
545
+ }
546
+
547
+ &.gallery-scroller {
548
+ max-width: calc(100% - calc(var(--default-margin) * 3));
549
+ display: flex;
550
+ }
545
551
  }
546
- }
547
552
  }
548
553
 
549
554
  @container (width <= #{$small-max-width}) {
550
- .cmd-thumbnail-scroller {
551
- display: block;
552
- }
555
+ .cmd-thumbnail-scroller {
556
+ display: block;
557
+ }
553
558
  }
554
559
 
555
560
  /* end cmd-thumbnail-scroller ------------------------------------------------------------------------------------------ */
@@ -242,7 +242,7 @@ export default {
242
242
  }
243
243
  </script>
244
244
 
245
- <style lang="scss">
245
+ <style>
246
246
  /* begin cmd-toggle-dark-mode ---------------------------------------------------------------------------------------- */
247
247
  .cmd-toggle-dark-mode {
248
248
  &.styled-layout {
@@ -185,7 +185,7 @@ export default {
185
185
  }
186
186
  </script>
187
187
 
188
- <style lang="scss">
188
+ <style>
189
189
  /* begin cmd-tooltip ------------------------------------------------------------------------------------------ */
190
190
  .cmd-tooltip {
191
191
  padding: .6rem .7rem .4rem .7rem;
@@ -1035,7 +1035,7 @@ export default {
1035
1035
  }
1036
1036
  </script>
1037
1037
 
1038
- <style lang="scss">
1038
+ <style>
1039
1039
  /* begin cmd-upload-form -------------------------------------------------------------------------------------------- */
1040
1040
  .cmd-upload-form {
1041
1041
  .cmd-custom-headline {
@@ -1175,7 +1175,7 @@ export default {
1175
1175
  border: var(--default-border);
1176
1176
  border-style: dashed;
1177
1177
  background: var(--color-scheme-background-color);
1178
- padding: (var(--default-padding));
1178
+ padding: var(--default-padding);
1179
1179
  text-align: center;
1180
1180
 
1181
1181
  &.allow-drop {
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="cmd-width-limitation-wrapper" :class="{'sticky': sticky}">
3
- <section v-if="innerWrapper" :class="setInnerClass">
4
- <a v-if="anchorId" :id="anchorId"></a>
3
+ <!-- begin slot-content in section -->
4
+ <section v-if="innerWrapper" :class="setInnerClass" :id="{anchorId: anchorId}">
5
5
  <!-- begin cmd-headline -->
6
6
  <CmdHeadline
7
7
  v-if="cmdHeadline"
@@ -15,12 +15,16 @@
15
15
  <slot></slot>
16
16
  <!-- end slot-content -->
17
17
  </section>
18
+ <!-- end slot-content in section -->
19
+
20
+ <!-- begin slot-content without section -->
18
21
  <template v-else>
19
22
  <!-- begin slot-content -->
20
23
  <a v-if="anchorId" :id="anchorId"></a>
21
24
  <slot></slot>
22
25
  <!-- end slot-content -->
23
26
  </template>
27
+ <!-- end slot-content without section -->
24
28
  </div>
25
29
  </template>
26
30
 
@@ -113,7 +117,7 @@ export default {
113
117
  }
114
118
  </script>
115
119
 
116
- <style lang="scss">
120
+ <style>
117
121
  /* begin cmd-width-limitation-wrapper ---------------------------------------------------------------------------------------- */
118
122
  .cmd-width-limitation-wrapper {
119
123
  > * {
@@ -215,23 +215,6 @@ export default {
215
215
  }
216
216
  return this.helplink.icon.iconClass
217
217
  },
218
- getStatusIconType() {
219
- if (this.validationStatus !== "") {
220
- if (!this.capsLockActivated) {
221
- if (this.validationStatus === "error") {
222
- return this.iconHasStateError.iconType
223
- } else if (this.validationStatus === "warning") {
224
- return this.iconHasStateWarning.iconType
225
- } else if (this.validationStatus === "success") {
226
- return this.iconHasStateSuccess.iconType
227
- }
228
- return this.iconHasStateInfo.iconType
229
- } else {
230
- return this.iconCapsLock.iconType
231
- }
232
- }
233
- return this.helplink.icon.iconType
234
- },
235
218
  inputRequirements() {
236
219
  const standardRequirements = []
237
220
  // check if field is required