comand-component-library 4.2.51 → 4.2.52
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.js +2444 -2145
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/ComponentLibrary.vue +131 -37
- package/src/assets/data/box-product.json +15 -10
- package/src/assets/data/box-user.json +8 -8
- package/src/assets/data/listOfComponents.json +1 -1
- package/src/assets/data/pages/boxes-team-overview.json +8 -8
- package/src/componentSettingsDataAndControls.vue +82 -10
- package/src/components/CmdAddressData.vue +2 -0
- package/src/components/CmdAddressDataItem.vue +2 -1
- package/src/components/CmdBackToTopButton.vue +12 -3
- package/src/components/CmdBankAccountData.vue +2 -0
- package/src/components/CmdBasicForm.vue +6 -2
- package/src/components/CmdBox.vue +62 -35
- package/src/components/CmdBoxWrapper.vue +6 -0
- package/src/components/CmdBreadcrumbs.vue +2 -0
- package/src/components/CmdCodeOutput.vue +2 -0
- package/src/components/CmdCompanyLogo.vue +2 -0
- package/src/components/CmdContainer.vue +100 -87
- package/src/components/CmdCookieDisclaimer.vue +12 -1
- package/src/components/CmdCopyrightInformation.vue +2 -0
- package/src/components/CmdFakeSelect.vue +10 -6
- package/src/components/CmdFancyBox.vue +2 -0
- package/src/components/CmdFlexibleScrollContainer.vue +2 -0
- package/src/components/CmdForm.vue +2 -0
- package/src/components/CmdFormElement.vue +11 -1
- package/src/components/CmdFormFilters.vue +2 -0
- package/src/components/CmdGoogleMaps.vue +2 -0
- package/src/components/CmdHeadline.vue +23 -1
- package/src/components/CmdIcon.vue +2 -0
- package/src/components/CmdImage.vue +3 -0
- package/src/components/CmdImageGallery.vue +3 -1
- package/src/components/CmdImageZoom.vue +2 -0
- package/src/components/CmdInnerLink.vue +2 -0
- package/src/components/CmdInputGroup.vue +2 -0
- package/src/components/CmdLink.vue +16 -10
- package/src/components/CmdList.vue +136 -99
- package/src/components/CmdListOfLinksItem.vue +2 -0
- package/src/components/CmdListOfRequirements.vue +2 -0
- package/src/components/CmdLoginForm.vue +2 -2
- package/src/components/CmdMailTool.vue +2 -0
- package/src/components/CmdMailToolEntry.vue +2 -1
- package/src/components/CmdMailToolFilter.vue +2 -0
- package/src/components/CmdMainNavigation.vue +2 -0
- package/src/components/CmdMultistepFormProgressBar.vue +16 -10
- package/src/components/CmdProgressBar.vue +1 -1
- package/src/components/CmdSiteSearch.vue +10 -1
- package/src/components/CmdSlideButton.vue +3 -4
- package/src/components/CmdSlideshow.vue +10 -1
- package/src/components/CmdSmartSearch.vue +42 -11
- package/src/components/CmdSystemMessage.vue +8 -5
- package/src/components/CmdTable.vue +8 -6
- package/src/components/CmdTabs.vue +37 -3
- package/src/components/CmdThumbnailScroller.vue +12 -3
- package/src/components/CmdUploadForm.vue +12 -1
- package/src/components/CmdFlexContainer.vue +0 -109
@@ -1,4 +1,5 @@
|
|
1
1
|
<template>
|
2
|
+
<!-- begin CmdFakeSelect ---------------------------------------------------------------------------------------- -->
|
2
3
|
<div
|
3
4
|
:class="[
|
4
5
|
validationStatus,
|
@@ -174,6 +175,7 @@
|
|
174
175
|
</li>
|
175
176
|
</ul>
|
176
177
|
</div>
|
178
|
+
<!-- end CmdFakeSelect ---------------------------------------------------------------------------------------- -->
|
177
179
|
</template>
|
178
180
|
|
179
181
|
<script>
|
@@ -525,7 +527,7 @@ export default {
|
|
525
527
|
/* begin cmd-fake-select ------------------------------------------------------------------------------------------ */
|
526
528
|
.cmd-fake-select {
|
527
529
|
align-self: flex-end;
|
528
|
-
border-radius: var(--
|
530
|
+
border-radius: var(--form-input-border-radius);
|
529
531
|
|
530
532
|
> span:first-child {
|
531
533
|
a {
|
@@ -551,16 +553,16 @@ export default {
|
|
551
553
|
display: block;
|
552
554
|
min-width: 0;
|
553
555
|
box-shadow: none;
|
554
|
-
border-radius: var(--
|
556
|
+
border-radius: var(--form-input-border-radius);
|
555
557
|
|
556
558
|
> li {
|
557
559
|
height: 100%;
|
558
|
-
border-radius: var(--
|
560
|
+
border-radius: var(--form-input-border-radius);
|
559
561
|
|
560
562
|
&:first-child {
|
561
563
|
> a {
|
562
564
|
height: inherit;
|
563
|
-
border: var(--
|
565
|
+
border: var(--form-input-border);
|
564
566
|
background: var(--color-scheme-background);
|
565
567
|
color: var(--color-scheme-text-color);
|
566
568
|
border-radius: var(--default-border-radius);
|
@@ -631,8 +633,10 @@ export default {
|
|
631
633
|
display: flex;
|
632
634
|
align-items: center;
|
633
635
|
width: 100%;
|
634
|
-
padding:
|
635
|
-
padding-top: .
|
636
|
+
padding: var(--form-input-padding);
|
637
|
+
padding-top: calc(var(--default-padding) - .06rem);
|
638
|
+
padding-right: calc(var(--default-padding) / 2);
|
639
|
+
padding-bottom: calc(var(--default-padding) - .06rem);
|
636
640
|
outline: none;
|
637
641
|
border-bottom: var(--default-border);
|
638
642
|
text-decoration: none;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
<template>
|
2
|
+
<!-- begin CmdFancybox ---------------------------------------------------------------------------------------- -->
|
2
3
|
<dialog
|
3
4
|
ref="dialog"
|
4
5
|
:class="['cmd-fancybox', {'show-overlay': showOverlay, 'image' : fancyBoxImageUrl || fancyBoxGallery, 'image-gallery': fancyBoxGallery}]"
|
@@ -135,6 +136,7 @@
|
|
135
136
|
/>
|
136
137
|
<!-- end CmdThumbnailScroller -->
|
137
138
|
</dialog>
|
139
|
+
<!-- end CmdFancybox ---------------------------------------------------------------------------------------- -->
|
138
140
|
</template>
|
139
141
|
|
140
142
|
<script>
|
@@ -1,4 +1,5 @@
|
|
1
1
|
<template>
|
2
|
+
<!-- begin CmdFlexibleScrollContainer ---------------------------------------------------------------------------------------- -->
|
2
3
|
<div :class="['cmd-flexible-scroll-container flexible-scroll-container', {'reverse-order': fixedContainerAtBottom}]">
|
3
4
|
<div class="fixed-wrapper">
|
4
5
|
<!-- begin slot for fixed-wrapper -->
|
@@ -11,6 +12,7 @@
|
|
11
12
|
<!-- end slot for scroll-wrapper -->
|
12
13
|
</div>
|
13
14
|
</div>
|
15
|
+
<!-- end CmdFlexibleScrollContainer ---------------------------------------------------------------------------------------- -->
|
14
16
|
</template>
|
15
17
|
|
16
18
|
<script>
|
@@ -1,4 +1,5 @@
|
|
1
1
|
<template>
|
2
|
+
<!-- begin CmdForm ---------------------------------------------------------------------------------------- -->
|
2
3
|
<form class="cmd-form" :action="formAction" :data-use-validation="useValidation" @submit="onSubmit"
|
3
4
|
:class="{error: errorOccurred}" :novalidate="novalidate" :method="formMethod">
|
4
5
|
<template v-if="useFieldset">
|
@@ -95,6 +96,7 @@
|
|
95
96
|
<slot v-else></slot>
|
96
97
|
<!-- end default-slot-content -->
|
97
98
|
</form>
|
99
|
+
<!-- end CmdForm ---------------------------------------------------------------------------------------- -->
|
98
100
|
</template>
|
99
101
|
|
100
102
|
<script>
|
@@ -1,4 +1,5 @@
|
|
1
1
|
<template>
|
2
|
+
<!-- begin CmdFormElement ---------------------------------------------------------------------------------------- -->
|
2
3
|
<label
|
3
4
|
v-if="(element === 'input' || element === 'select' || element === 'textarea')"
|
4
5
|
:class="[
|
@@ -283,6 +284,7 @@
|
|
283
284
|
<!-- end CmdIcon -->
|
284
285
|
</button>
|
285
286
|
<!-- end button -->
|
287
|
+
<!-- end CmdFormElement ---------------------------------------------------------------------------------------- -->
|
286
288
|
</template>
|
287
289
|
|
288
290
|
<script>
|
@@ -1033,6 +1035,13 @@ export default {
|
|
1033
1035
|
.inner-input-wrapper {
|
1034
1036
|
margin: 0;
|
1035
1037
|
|
1038
|
+
&:has(.button, button) {
|
1039
|
+
input {
|
1040
|
+
border-top-right-radius: 0;
|
1041
|
+
border-bottom-right-radius: 0;
|
1042
|
+
}
|
1043
|
+
}
|
1044
|
+
|
1036
1045
|
a.deleteicon {
|
1037
1046
|
position: absolute;
|
1038
1047
|
top: 50%;
|
@@ -1057,7 +1066,8 @@ export default {
|
|
1057
1066
|
|
1058
1067
|
a.button {
|
1059
1068
|
right: 0;
|
1060
|
-
|
1069
|
+
align-self: stretch;
|
1070
|
+
aspect-ratio: 1 / 1; /* square */
|
1061
1071
|
& + a {
|
1062
1072
|
right: 5rem;
|
1063
1073
|
}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
<template>
|
2
|
+
<!-- begin CmdFormFilters ---------------------------------------------------------------------------------------- -->
|
2
3
|
<ul v-if="options.length" class="cmd-form-filters">
|
3
4
|
<li v-if="options.length > 1">
|
4
5
|
<a href="#" @click.prevent="deleteAllFilters">
|
@@ -17,6 +18,7 @@
|
|
17
18
|
</a>
|
18
19
|
</li>
|
19
20
|
</ul>
|
21
|
+
<!-- end CmdFormElement ---------------------------------------------------------------------------------------- -->
|
20
22
|
</template>
|
21
23
|
|
22
24
|
<script>
|
@@ -1,4 +1,5 @@
|
|
1
1
|
<template>
|
2
|
+
<!-- begin CmdGoogleMaps ---------------------------------------------------------------------------------------- -->
|
2
3
|
<div class="cmd-google-maps responsive-wrapper">
|
3
4
|
<!-- begin CmdHeadline -->
|
4
5
|
<CmdHeadline v-if="cmdHeadline" v-bind="cmdHeadline" />
|
@@ -22,6 +23,7 @@
|
|
22
23
|
</iframe>
|
23
24
|
<!-- end iframe with google-map -->
|
24
25
|
</div>
|
26
|
+
<!-- end CmdGoogleMaps ---------------------------------------------------------------------------------------- -->
|
25
27
|
</template>
|
26
28
|
|
27
29
|
<script>
|
@@ -1,10 +1,11 @@
|
|
1
1
|
<template>
|
2
|
+
<!-- begin CmdHeadline ---------------------------------------------------------------------------------------- -->
|
2
3
|
<!-- begin default-view -->
|
3
4
|
<div v-if="!editModeContext || settingsContext || mainSidebarContext || headlineText"
|
4
5
|
:class="['cmd-headline', {'has-pre-headline-text': preHeadlineText, 'has-icon': cmdIcon?.iconClass}, headlineTextAlign]">
|
5
6
|
<!-- begin headline with pre-headline-text -->
|
6
7
|
<template v-if="preHeadlineText">
|
7
|
-
<component v-if="headlineText" :is="headlineTag">
|
8
|
+
<component v-if="headlineText" :is="headlineTag" :class="highlightLevel">
|
8
9
|
<!-- begin CmdIcon -->
|
9
10
|
<CmdIcon v-if="cmdIcon" v-bind="cmdIcon"/>
|
10
11
|
<!-- end CmdIcon -->
|
@@ -115,6 +116,7 @@
|
|
115
116
|
</template>
|
116
117
|
</EditComponentWrapper>
|
117
118
|
<!-- end edit-mode -->
|
119
|
+
<!-- end CmdHeadline ---------------------------------------------------------------------------------------- -->
|
118
120
|
</template>
|
119
121
|
|
120
122
|
<script>
|
@@ -145,6 +147,21 @@ export default {
|
|
145
147
|
type: [String, Number],
|
146
148
|
default: "2"
|
147
149
|
},
|
150
|
+
/**
|
151
|
+
* set highlight-level for headline
|
152
|
+
*
|
153
|
+
* @allowedValues: "none", "primary", "secondary", "tertiary"
|
154
|
+
*/
|
155
|
+
highlightLevel: {
|
156
|
+
type: Boolean,
|
157
|
+
default: "none",
|
158
|
+
validator(value) {
|
159
|
+
return value === "none" ||
|
160
|
+
value === "primary" ||
|
161
|
+
value === "secondary" ||
|
162
|
+
value === "tertiary"
|
163
|
+
}
|
164
|
+
},
|
148
165
|
/**
|
149
166
|
* small pre-headline-text above main-headline
|
150
167
|
*
|
@@ -314,6 +331,11 @@ export default {
|
|
314
331
|
}
|
315
332
|
|
316
333
|
&.has-icon {
|
334
|
+
h1, h2, h3, h4, h5, h6 {
|
335
|
+
display: flex;
|
336
|
+
align-items: center;
|
337
|
+
}
|
338
|
+
|
317
339
|
&.text-center {
|
318
340
|
justify-content: center;
|
319
341
|
|
@@ -1,4 +1,5 @@
|
|
1
1
|
<template>
|
2
|
+
<!-- begin CmdIcon ---------------------------------------------------------------------------------------- -->
|
2
3
|
<!-- begin iconify-icon -->
|
3
4
|
<Icon v-if="isIconify" :icon="iconClass" :title="tooltip" :class="$attrs.class"></Icon>
|
4
5
|
<!-- end iconify-icon -->
|
@@ -6,6 +7,7 @@
|
|
6
7
|
<!-- begin icon from local iconfont -->
|
7
8
|
<span v-else :class="[iconClass, $attrs.class]" :title="tooltip"></span>
|
8
9
|
<!-- end icon from local iconfont -->
|
10
|
+
<!-- end CmdIcon ---------------------------------------------------------------------------------------- -->
|
9
11
|
</template>
|
10
12
|
|
11
13
|
<script>
|
@@ -1,4 +1,5 @@
|
|
1
1
|
<template>
|
2
|
+
<!-- begin CmdImage ---------------------------------------------------------------------------------------- -->
|
2
3
|
<!-- begin edit-mode -->
|
3
4
|
<EditComponentWrapper
|
4
5
|
v-if="editModeContext"
|
@@ -108,7 +109,9 @@
|
|
108
109
|
<img v-else class="cmd-image" :src="imageSource" :alt="image?.alt" :title="image?.tooltip" :loading="image?.lazyLoading ? 'lazy' : null" @load="onImageLoaded"/>
|
109
110
|
<!-- end image without figure/figcaption -->
|
110
111
|
<!-- end default-view -->
|
112
|
+
<!-- end CmdImage ---------------------------------------------------------------------------------------- -->
|
111
113
|
</template>
|
114
|
+
|
112
115
|
<script>
|
113
116
|
import {createUuid} from "../utils/common.js"
|
114
117
|
import {checkAndUploadFile} from "../utils/checkAndUploadFile"
|
@@ -1,5 +1,6 @@
|
|
1
1
|
<template>
|
2
|
-
|
2
|
+
<!-- begin CmdImageGallery ---------------------------------------------------------------------------------------- -->
|
3
|
+
<div class="cmd-image-gallery grid-container-create-columns">
|
3
4
|
<!-- begin cmd-headline -->
|
4
5
|
<CmdHeadline
|
5
6
|
v-if="cmdHeadline?.headlineText || editModeContext"
|
@@ -47,6 +48,7 @@
|
|
47
48
|
</button>
|
48
49
|
<!-- end show placeholder if no image exists (and component is not edited) -->
|
49
50
|
</div>
|
51
|
+
<!-- end CmdImageGallery ---------------------------------------------------------------------------------------- -->
|
50
52
|
</template>
|
51
53
|
|
52
54
|
<script>
|
@@ -1,4 +1,5 @@
|
|
1
1
|
<template>
|
2
|
+
<!-- begin CmdImageZoom ---------------------------------------------------------------------------------------- -->
|
2
3
|
<div class="cmd-image-zoom flex-container">
|
3
4
|
<!-- begin small image -->
|
4
5
|
<a href="#" class="flex-none thumbnail-imagezoom" :title="imageSmall.image.tooltip">
|
@@ -22,6 +23,7 @@
|
|
22
23
|
|
23
24
|
<!-- end large image -->
|
24
25
|
</div>
|
26
|
+
<!-- end CmdImageZoom ---------------------------------------------------------------------------------------- -->
|
25
27
|
</template>
|
26
28
|
|
27
29
|
<script>
|
@@ -1,4 +1,5 @@
|
|
1
1
|
<template>
|
2
|
+
<!-- begin CmdInnerLink ---------------------------------------------------------------------------------------- -->
|
2
3
|
<img v-if="image?.src && (image?.position === 'left' || image?.position === 'top' || !image?.position)" :src="image?.src" :alt="image?.alt" />
|
3
4
|
<span v-if="icon?.iconClass && (icon?.position === 'left' || icon?.position === 'top' || !icon?.position)" :class="icon?.iconClass" :title="icon?.tooltip"></span>
|
4
5
|
<span v-if="text">{{ text }}</span>
|
@@ -7,6 +8,7 @@
|
|
7
8
|
<!-- begin default-slot -->
|
8
9
|
<slot></slot>
|
9
10
|
<!-- end default-slot -->
|
11
|
+
<!-- end CmdInnerLink ---------------------------------------------------------------------------------------- -->
|
10
12
|
</template>
|
11
13
|
|
12
14
|
<script>
|
@@ -1,4 +1,5 @@
|
|
1
1
|
<template>
|
2
|
+
<!-- begin CmdInputGroup ---------------------------------------------------------------------------------------- -->
|
2
3
|
<div :class="[
|
3
4
|
'cmd-input-group label',
|
4
5
|
validationStatus,
|
@@ -80,6 +81,7 @@
|
|
80
81
|
</div>
|
81
82
|
<!-- end useSlot -->
|
82
83
|
</div>
|
84
|
+
<!-- end CmdInputGroup ---------------------------------------------------------------------------------------- -->
|
83
85
|
</template>
|
84
86
|
|
85
87
|
<script>
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<template>
|
2
|
-
<!-- begin CmdLink -->
|
2
|
+
<!-- begin CmdLink ---------------------------------------------------------------------------------------- -->
|
3
3
|
<!-- begin href -->
|
4
4
|
<a v-if="linkType === 'href'"
|
5
5
|
:href="!disabled ? path : null"
|
6
6
|
:target="target"
|
7
|
-
:class="['cmd-link', {'button': styleAsButton, '
|
7
|
+
:class="['cmd-link', highlightLevel, {'button': styleAsButton, 'disabled': disabled, 'box': styleAsBox, 'fancybox': fancybox}]"
|
8
8
|
@click.prevent="emitClick($event, 'href')"
|
9
9
|
:title="icon?.tooltip"
|
10
10
|
>
|
@@ -21,7 +21,7 @@
|
|
21
21
|
<!-- begin router-link -->
|
22
22
|
<router-link v-else-if="linkType === 'router'"
|
23
23
|
:to="!disabled ? path : {}"
|
24
|
-
:class="['cmd-link', {'button': styleAsButton, '
|
24
|
+
:class="['cmd-link', highlightLevel, {'button': styleAsButton, 'disabled': disabled, 'box': styleAsBox, 'fancybox': fancybox}]"
|
25
25
|
@click="emitClick($event, 'router')"
|
26
26
|
:title="icon?.tooltip">
|
27
27
|
<!-- begin CmdInnterLink -->
|
@@ -36,7 +36,7 @@
|
|
36
36
|
|
37
37
|
<!-- begin button -->
|
38
38
|
<button v-else-if="linkType === 'button' || linkType === 'submit'"
|
39
|
-
:class="['cmd-link button',
|
39
|
+
:class="['cmd-link button', highlightLevel, {'disabled': disabled, 'box': styleAsBox, 'fancybox': fancybox}]"
|
40
40
|
type="submit"
|
41
41
|
:disabled="disabled"
|
42
42
|
@click="emitClick($event, 'button')"
|
@@ -51,7 +51,7 @@
|
|
51
51
|
<!-- end CmdInnterLink -->
|
52
52
|
</button>
|
53
53
|
<!-- end button -->
|
54
|
-
<!-- end CmdLink -->
|
54
|
+
<!-- end CmdLink ---------------------------------------------------------------------------------------- -->
|
55
55
|
</template>
|
56
56
|
|
57
57
|
<script>
|
@@ -123,13 +123,19 @@ export default {
|
|
123
123
|
default: false
|
124
124
|
},
|
125
125
|
/**
|
126
|
-
*
|
127
|
-
*
|
128
|
-
*
|
126
|
+
* set highlight-level for link/button
|
127
|
+
*
|
128
|
+
* @allowedValues: "none", "primary", "secondary", "tertiary"
|
129
129
|
*/
|
130
|
-
|
130
|
+
highlightLevel: {
|
131
131
|
type: Boolean,
|
132
|
-
default:
|
132
|
+
default: "primary",
|
133
|
+
validator(value) {
|
134
|
+
return value === "none" ||
|
135
|
+
value === "primary" ||
|
136
|
+
value === "secondary" ||
|
137
|
+
value === "tertiary"
|
138
|
+
}
|
133
139
|
},
|
134
140
|
/**
|
135
141
|
* activate if link/button should be disabled
|