comand-component-library 4.2.52 → 4.2.54
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 +3384 -3006
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/ComponentLibrary.vue +55 -12
- package/src/assets/data/box-user.json +3 -0
- package/src/assets/data/list-description-list.json +74 -0
- package/src/assets/data/listOfComponents.json +2 -0
- package/src/assets/styles/component-library-global-styles.scss +0 -14
- package/src/componentSettingsDataAndControls.vue +49 -0
- package/src/components/CmdBox.vue +52 -27
- package/src/components/CmdBoxWrapper.vue +0 -4
- package/src/components/CmdCodeOutput.vue +0 -2
- package/src/components/CmdFancyBox.vue +2 -2
- package/src/components/CmdForm.vue +5 -2
- package/src/components/CmdLink.vue +2 -1
- package/src/components/CmdList.vue +93 -27
- package/src/components/CmdMultistepFormProgressBar.vue +19 -4
- package/src/components/CmdNewsletterSubscription.vue +2 -0
- package/src/components/CmdOpeningHours.vue +2 -0
- package/src/components/CmdOpeningHoursItem.vue +2 -0
- package/src/components/CmdPageFooter.vue +2 -0
- package/src/components/CmdPageHeader.vue +2 -0
- package/src/components/CmdPagination.vue +2 -0
- package/src/components/CmdParagraph.vue +50 -0
- package/src/components/CmdSection.vue +2 -0
- package/src/components/CmdSidebar.vue +2 -0
- package/src/components/CmdSiteFooter.vue +2 -0
- package/src/components/CmdSiteHeader.vue +2 -0
- package/src/components/CmdSiteSearch.vue +2 -0
- package/src/components/CmdSlideButton.vue +2 -0
- package/src/components/CmdSocialNetworks.vue +2 -0
- package/src/components/CmdSocialNetworksItem.vue +2 -0
- package/src/components/CmdSwitchLanguage.vue +2 -0
- package/src/components/CmdSystemMessage.vue +16 -14
- package/src/components/CmdTable.vue +2 -0
- package/src/components/CmdTabs.vue +2 -0
- package/src/components/CmdTag.vue +101 -0
- package/src/components/CmdTextImageBlock.vue +2 -0
- package/src/components/CmdThumbnailScroller.vue +2 -0
- package/src/components/CmdToggleDarkMode.vue +2 -0
- package/src/components/CmdTooltip.vue +2 -0
- package/src/components/CmdTooltipForFormElements.vue +2 -0
- package/src/components/CmdUploadForm.vue +2 -0
- package/src/components/CmdWidthLimitationWrapper.vue +2 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<!-- begin CmdTag ---------------------------------------------------------------------------------------- -->
|
|
3
|
+
<small v-if="showTag" :class="['cmd-tag tag', highlightLevel]" ref="tag">
|
|
4
|
+
<slot>
|
|
5
|
+
<span>{{ tagText }}</span>
|
|
6
|
+
<a v-if="removeTagByClick" href="#" @click.prevent="removeTag">
|
|
7
|
+
<!-- begin CmdIcon -->
|
|
8
|
+
<CmdIcon v-bind="cmdIcon" />
|
|
9
|
+
<!-- end CmdIcon -->
|
|
10
|
+
</a>
|
|
11
|
+
</slot>
|
|
12
|
+
</small>
|
|
13
|
+
<!-- end CmdTag ---------------------------------------------------------------------------------------- -->
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<script>
|
|
17
|
+
export default {
|
|
18
|
+
name: "CmdTag",
|
|
19
|
+
emits: ["click"],
|
|
20
|
+
data() {
|
|
21
|
+
return {
|
|
22
|
+
showTag: true
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
props: {
|
|
26
|
+
/**
|
|
27
|
+
* the displayed text of the tag
|
|
28
|
+
*/
|
|
29
|
+
tagText: {
|
|
30
|
+
type: String,
|
|
31
|
+
required: true
|
|
32
|
+
},
|
|
33
|
+
/**
|
|
34
|
+
* enable removing the tag by click
|
|
35
|
+
*/
|
|
36
|
+
removeTagByClick: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: false
|
|
39
|
+
},
|
|
40
|
+
/**
|
|
41
|
+
* set highlight-level for tag
|
|
42
|
+
*
|
|
43
|
+
* @allowedValues: "none", "primary", "secondary", "tertiary"
|
|
44
|
+
*/
|
|
45
|
+
highlightLevel: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: "none",
|
|
48
|
+
validator(value) {
|
|
49
|
+
return value === "none" ||
|
|
50
|
+
value === "primary" ||
|
|
51
|
+
value === "secondary" ||
|
|
52
|
+
value === "tertiary"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
/**
|
|
56
|
+
* properties for CmdIcon-component
|
|
57
|
+
*/
|
|
58
|
+
cmdIcon: {
|
|
59
|
+
type: Object,
|
|
60
|
+
default: function () {
|
|
61
|
+
return {
|
|
62
|
+
iconClass: "icon-cancel-circle",
|
|
63
|
+
tooltip: "Back to top",
|
|
64
|
+
iconType: "auto"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
methods: {
|
|
70
|
+
removeTag() {
|
|
71
|
+
const event = {
|
|
72
|
+
prevented: false,
|
|
73
|
+
preventDefault() {
|
|
74
|
+
this.prevented = true
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
this.$emit("click", event)
|
|
79
|
+
|
|
80
|
+
if (!event.prevented) {
|
|
81
|
+
this.showTag = false
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
</script>
|
|
87
|
+
|
|
88
|
+
<style>
|
|
89
|
+
/* begin cmd-tag ------------------------------------------------------------------------------------------ */
|
|
90
|
+
.cmd-tag {
|
|
91
|
+
align-self: start; /* if used in vertical flex-container */
|
|
92
|
+
gap: var(--default-gap-half);
|
|
93
|
+
|
|
94
|
+
.primary, .secondary, .tertiary {
|
|
95
|
+
span[class*="icon-"] {
|
|
96
|
+
color: var(--color-white);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
/* end cmd-tag ------------------------------------------------------------------------------------------ */
|
|
101
|
+
</style>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
+
<!-- begin CmdTextImageBlock ---------------------------------------------------------------------------------------- -->
|
|
2
3
|
<div :class="['cmd-text-image-block flex-container', orientation]">
|
|
3
4
|
<!-- begin cmdHeadline -->
|
|
4
5
|
<CmdHeadline
|
|
@@ -57,6 +58,7 @@
|
|
|
57
58
|
</EditComponentWrapper>
|
|
58
59
|
<!-- end edit-mode -->
|
|
59
60
|
</div>
|
|
61
|
+
<!-- end CmdTextImageBlock ---------------------------------------------------------------------------------------- -->
|
|
60
62
|
</template>
|
|
61
63
|
|
|
62
64
|
<script>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
+
<!-- begin CmdThumbnailScroller ---------------------------------------------------------------------------------------- -->
|
|
2
3
|
<div :class="[
|
|
3
4
|
'cmd-thumbnail-scroller',
|
|
4
5
|
{
|
|
@@ -89,6 +90,7 @@
|
|
|
89
90
|
<!-- end CmdSlideButton -->
|
|
90
91
|
</div>
|
|
91
92
|
</div>
|
|
93
|
+
<!-- end CmdThumbnailScroller ---------------------------------------------------------------------------------------- -->
|
|
92
94
|
</template>
|
|
93
95
|
|
|
94
96
|
<script>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
+
<!-- begin CmdToggleDarkMode ---------------------------------------------------------------------------------------- -->
|
|
2
3
|
<div :class="['cmd-toggle-dark-mode', {'styled-layout': useStyledLayout, 'dark-mode': darkMode}]">
|
|
3
4
|
<template v-if="!editing">
|
|
4
5
|
<!-- begin button-style -->
|
|
@@ -53,6 +54,7 @@
|
|
|
53
54
|
<!-- end edit-mode -->
|
|
54
55
|
</template>
|
|
55
56
|
</div>
|
|
57
|
+
<!-- end CmdToggleDarkMode ---------------------------------------------------------------------------------------- -->
|
|
56
58
|
</template>
|
|
57
59
|
|
|
58
60
|
<script>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
+
<!-- begin CmdTooltip ---------------------------------------------------------------------------------------- -->
|
|
2
3
|
<div v-if="tooltipVisibility" :class="['cmd-tooltip', validationStatus]" ref="tooltip">
|
|
3
4
|
<div v-if="cmdHeadline || iconClose.show" class="headline-wrapper">
|
|
4
5
|
<!-- begin CmdHeadline -->
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
{{ tooltipText }}
|
|
24
25
|
</slot>
|
|
25
26
|
<!-- end slot-content -->
|
|
27
|
+
<!-- end CmdTooltip ---------------------------------------------------------------------------------------- -->
|
|
26
28
|
</div>
|
|
27
29
|
</template>
|
|
28
30
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
+
<!-- begin CmdTooltipForFormElements ---------------------------------------------------------------------------------------- -->
|
|
2
3
|
<!-- begin CmdTooltip -->
|
|
3
4
|
<CmdTooltip
|
|
4
5
|
ref="tooltip"
|
|
@@ -16,6 +17,7 @@
|
|
|
16
17
|
<!-- end CmdListOfRequirements -->
|
|
17
18
|
</CmdTooltip>
|
|
18
19
|
<!-- end CmdTooltip -->
|
|
20
|
+
<!-- end CmdTooltipForFormElements ---------------------------------------------------------------------------------------- -->
|
|
19
21
|
</template>
|
|
20
22
|
|
|
21
23
|
<script>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
+
<!-- begin CmdUploadForm ---------------------------------------------------------------------------------------- -->
|
|
2
3
|
<!-- begin advanced mode -->
|
|
3
4
|
<fieldset v-if="advancedMode" :class="['cmd-upload-form flex-container vertical', { 'upload-initiated': uploadInitiated }]">
|
|
4
5
|
<legend :class="{hidden : !legend.show, 'align-left': legend.align === 'left'}">{{ legend.text }}</legend>
|
|
@@ -347,6 +348,7 @@
|
|
|
347
348
|
ref="formElement"
|
|
348
349
|
/>
|
|
349
350
|
<!-- end CmdFormElement -->
|
|
351
|
+
<!-- end CmdUploadForm ---------------------------------------------------------------------------------------- -->
|
|
350
352
|
</template>
|
|
351
353
|
|
|
352
354
|
<script>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
+
<!-- begin CmdWidthLimitationWrapper ---------------------------------------------------------------------------------------- -->
|
|
2
3
|
<div class="cmd-width-limitation-wrapper" :class="{'sticky': sticky}" ref="width-limitation-wrapper">
|
|
3
4
|
<!-- begin slot-content in section -->
|
|
4
5
|
<section v-if="useInnerSection" :class="setInnerClass" :id="anchorId">
|
|
@@ -32,6 +33,7 @@
|
|
|
32
33
|
</template>
|
|
33
34
|
<!-- end slot-content without section -->
|
|
34
35
|
</div>
|
|
36
|
+
<!-- end CmdWidthLimitationWrapper ---------------------------------------------------------------------------------------- -->
|
|
35
37
|
</template>
|
|
36
38
|
|
|
37
39
|
<script>
|