comand-component-library 3.1.63 → 3.1.66

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comand-component-library",
3
- "version": "3.1.63",
3
+ "version": "3.1.66",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -18,7 +18,7 @@
18
18
  ],
19
19
  "dependencies": {
20
20
  "clickout-event": "^1.1.2",
21
- "comand-frontend-framework": "^3.2.46",
21
+ "comand-frontend-framework": "^3.2.48",
22
22
  "core-js": "^3.20.1",
23
23
  "prismjs": "^1.27.0",
24
24
  "vue": "^3.2.31",
package/src/App.vue CHANGED
@@ -1,13 +1,13 @@
1
1
  <!--suppress HtmlUnknownTarget, NpmUsedModulesInstalled, JSUnresolvedVariable -->
2
2
  <template>
3
3
  <a id="anchor-back-to-top"></a>
4
- <CmdSiteHeader :mainNavigationEntries="navigationData" :sticky="true">
5
- <template v-slot:top-header>
6
- <CmdTopHeaderNavigation :topHeaderNavigationData="topHeaderNavigationData" v-if="topHeaderNavigationData"/>
7
- </template>
4
+ <CmdSiteHeader :cmdMainNavigation="navigationData" :sticky="true">
8
5
  <template v-slot:logo>
9
- <CmdCompanyLogo :link="companyLogoData.link" altText="CoManD Logo" :pathDefaultLogo="require('@/assets/images/logo.svg')"
10
- :pathDarkmodeLogo="require('@/assets/images/logo-darkmode.svg')"/>
6
+ <CmdCompanyLogo :link="companyLogoData.link"
7
+ altText="CoManD Logo"
8
+ :pathDefaultLogo="require('@/assets/images/logo.svg')"
9
+ :pathDarkmodeLogo="require('@/assets/images/logo-darkmode.svg')"
10
+ />
11
11
  </template>
12
12
  </CmdSiteHeader>
13
13
  <main>
@@ -594,7 +594,7 @@
594
594
  <a id="section-bank-account-data"></a>
595
595
  <CmdWidthLimitationWrapper>
596
596
  <h2 class="headline-demopage">Bank Account Data</h2>
597
- <CmdBankAccountData :account-data="bankAccountData" :cmd-custom-headline="{ text: 'Bank Account', level: 3}" :allow-copy-by-click="true" />
597
+ <CmdBankAccountData :account-data="bankAccountData" :cmd-custom-headline="{ headlineText: 'Bank Account', headlineLevel: 3}" :allow-copy-by-click="true" />
598
598
  </CmdWidthLimitationWrapper>
599
599
  <!-- end bank account data ------------------------------------------------------------------------------------------------------------------------------------------------------->
600
600
 
@@ -723,12 +723,12 @@
723
723
  <a id="section-custom-headline"></a>
724
724
  <CmdWidthLimitationWrapper>
725
725
  <h2 class="headline-demopage">Custom Headline</h2>
726
- <CmdCustomHeadline icon-class="icon-home" pre-headline="Pre-headline" :headline="{ text: 'Headline level 1', level: '1'}"/>
727
- <CmdCustomHeadline :headline="{ text: 'Headline level 2', level: '2'}"/>
728
- <CmdCustomHeadline :headline="{ text: 'Headline level 3', level: '3'}"/>
729
- <CmdCustomHeadline :headline="{ text: 'Headline level 4', level: '4'}"/>
730
- <CmdCustomHeadline :headline="{ text: 'Headline level 5', level: '5'}"/>
731
- <CmdCustomHeadline :headline="{ text: 'Headline level 6', level: '6'}"/>
726
+ <CmdCustomHeadline icon-class="icon-home" pre-headline-text="Pre-headline" headlineText="Headline level 1" :headlineLevel="1"/>
727
+ <CmdCustomHeadline headlineText="Headline level 2" :headlineLevel="2"/>
728
+ <CmdCustomHeadline headlineText="Headline level 3" :headlineLevel="3"/>
729
+ <CmdCustomHeadline headlineText="Headline level 4" :headlineLevel="4"/>
730
+ <CmdCustomHeadline headlineText="Headline level 5" :headlineLevel="5"/>
731
+ <CmdCustomHeadline headlineText="Headline level 6" :headlineLevel="6"/>
732
732
  </CmdWidthLimitationWrapper>
733
733
  <!-- end custom-headline ------------------------------------------------------------------------------------------------------------------------------------------------------->
734
734
 
@@ -748,7 +748,7 @@
748
748
  <a id="section-google-maps-integration"></a>
749
749
  <CmdWidthLimitationWrapper>
750
750
  <h2 class="headline-demopage">Google Maps&trade;-Integration</h2>
751
- <CmdGoogleMaps :addressData="addressData"/>
751
+ <CmdGoogleMaps :address="addressData"/>
752
752
  </CmdWidthLimitationWrapper>
753
753
 
754
754
  <a id="section-image-gallery"></a>
@@ -818,9 +818,9 @@
818
818
  <a id="section-system-message"></a>
819
819
  <CmdWidthLimitationWrapper>
820
820
  <h2 class="headline-demopage">System Message</h2>
821
- <CmdSystemMessage status="error"
821
+ <CmdSystemMessage validationStatus="error"
822
822
  :fullWidth="true"
823
- message="This is an error message!"
823
+ systemMessage="This is an error message!"
824
824
  :iconMessage="{iconClass: 'icon-error-circle'}">
825
825
  <ul>
826
826
  <li>Error #1</li>
@@ -828,14 +828,20 @@
828
828
  <li>Error #3</li>
829
829
  </ul>
830
830
  </CmdSystemMessage>
831
- <CmdSystemMessage status="warning" :fullWidth="true" message="This is a warning message!">
831
+ <CmdSystemMessage validationStatus="warning"
832
+ :fullWidth="true"
833
+ systemMessage="This is a warning message!">
832
834
  <p>This is additional text!</p>
833
835
  </CmdSystemMessage>
834
- <CmdSystemMessage status="success" :fullWidth="true" message="This is a success message!"
836
+ <CmdSystemMessage validationStatus="success"
837
+ :fullWidth="true"
838
+ systemMessage="This is a success message!"
835
839
  :iconMessage="{iconClass: 'icon-check-circle'}">
836
840
  <p>This is additional text!</p>
837
841
  </CmdSystemMessage>
838
- <CmdSystemMessage status="info" :fullWidth="true" message="This is an info message!"
842
+ <CmdSystemMessage validationStatus="info"
843
+ :fullWidth="true"
844
+ systemMessage="This is an info message!"
839
845
  :iconMessage="{iconClass: 'icon-info-circle'}">
840
846
  <p>This is additional text!</p>
841
847
  </CmdSystemMessage>
@@ -902,19 +908,21 @@
902
908
  <CmdWidthLimitationWrapper>
903
909
  <h2 class="headline-demopage">Upload-Form</h2>
904
910
  <h3>Simple mode</h3>
905
- <CmdUploadForm headline="Select files to upload"
911
+ <CmdUploadForm :cmdCustomHeadlineFieldset="{headlineText: 'Select files to upload', headlineLevel: 3}"
906
912
  :enableDragAndDrop="true"
907
- :allowedFileExtensions="['jpg']"
913
+ :allowedFileExtensions="['jpg', 'png']"
908
914
  :allowMultipleFileUploads="true"
909
915
  :advancedMode="false"
916
+ textLegend="Simple upload form"
910
917
  @error="showError"
911
918
  :uploadOptions="{url: 'http://localhost:8888'}"
912
919
  />
913
920
  <h3>Advanced mode</h3>
914
921
  <CmdUploadForm headline="Select files to upload"
915
922
  :enableDragAndDrop="true"
916
- :allowedFileExtensions="['jpg']"
923
+ :allowedFileExtensions="['jpg', 'png']"
917
924
  :allowMultipleFileUploads="true"
925
+ textLegend="Advanced upload form"
918
926
  :uploadOptions="{url: 'http://localhost:8888'}"
919
927
  />
920
928
  </CmdWidthLimitationWrapper>
@@ -922,18 +930,26 @@
922
930
 
923
931
  <CmdWidthLimitationWrapper id="site-footer" inner-component="footer">
924
932
  <CmdSwitchLanguage :languages="languagesData" @click="doSomething"/>
925
- <CmdFooterNavigation :footerNavigation="footerNavigationData" headline="Links"/>
926
- <CmdOpeningHours :openingHours="openingHoursData" :closed="true" headline="Opening hours"
927
- textOpenClosed="Closed right now!" textHolidaysClosed="Closed on holidays"
928
- textMiscInfo="Miscellaneous information"/>
929
- <CmdAddressData :addressData="addressData" :linkGoogleMaps="true" headline="Contact"/>
933
+ <CmdListOfLinks :links="footerNavigationData"
934
+ :cmdCustomHeadline="{headlineText: 'List of links', headlineLevel: 6}"
935
+ />
936
+ <CmdOpeningHours :openingHours="openingHoursData"
937
+ :closed="true"
938
+ :cmdCustomHeadline="{headlineText: 'Opening hours', headlineLevel: 6}"
939
+ textOpenClosed="Closed right now!"
940
+ textHolidaysClosed="Closed on holidays"
941
+ textMiscInfo="Miscellaneous information"
942
+ />
943
+ <CmdAddressData :addressData="addressData"
944
+ :linkGoogleMaps="true"
945
+ :cmdCustomHeadline="{headlineText: 'Address data', headlineLevel: 6}"
946
+ />
930
947
  </CmdWidthLimitationWrapper>
931
948
 
932
949
  <CmdCopyrightInformation/>
933
950
 
934
951
  <CmdFancyBox :show="fancyBoxCookieDisclaimer" :fancyboxOptions="{}" :allowEscapeKey="false">
935
- <CmdCookieDisclaimer headline="Usage of cookies on this web site"
936
- :cookieOptions="cookieDisclaimerData"
952
+ <CmdCookieDisclaimer :cookieOptions="cookieDisclaimerData"
937
953
  buttonLabelAcceptAllCookies="Accept all cookies"
938
954
  buttonLabelAcceptCurrentSettings="Accept current settings"
939
955
  @closeCookieDisclaimer="fancyBoxCookieDisclaimer = false"
@@ -979,7 +995,6 @@ import tabsData from '@/assets/data/tabs.json'
979
995
  import tableDataSmall from '@/assets/data/table-small.json'
980
996
  import tableDataLarge from '@/assets/data/table-large.json'
981
997
  import thumbnailScrollerData from '@/assets/data/thumbnail-scroller.json'
982
- import topHeaderNavigationData from '@/assets/data/list-of-links-top-header-navigation.json'
983
998
 
984
999
  // import used components
985
1000
  import CmdAddressData from "@/components/CmdAddressData"
@@ -1023,10 +1038,12 @@ import {openFancyBox} from "@/components/CmdFancyBox"
1023
1038
 
1024
1039
  // import external functions
1025
1040
  import * as functions from "@/mixins/FieldValidation.js"
1041
+ import CmdListOfLinks from "./components/CmdListOfLinks";
1026
1042
 
1027
1043
  export default {
1028
1044
  name: "App",
1029
1045
  components: {
1046
+ CmdListOfLinks,
1030
1047
  CmdAddressData,
1031
1048
  CmdBackToTopButton,
1032
1049
  CmdBankAccountData,
@@ -1148,8 +1165,7 @@ export default {
1148
1165
  tableDataSmall,
1149
1166
  tableDataLarge,
1150
1167
  tabsData,
1151
- thumbnailScrollerData,
1152
- topHeaderNavigationData
1168
+ thumbnailScrollerData
1153
1169
  }
1154
1170
  },
1155
1171
  methods: {
@@ -4,7 +4,7 @@
4
4
  "cookies": [
5
5
  {
6
6
  "id": "cookie-sessionid",
7
- "description": "These cookies are required for functionality",
7
+ "description": "This cookie is required for functionality",
8
8
  "labelText": "SessionID",
9
9
  "checked": true,
10
10
  "status": "disabled",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  {
18
18
  "id": "cookie-google-recaptcha",
19
- "description": "This cookies prevents bots from sending forms",
19
+ "description": "This cookie prevents bots from sending forms",
20
20
  "labelText": "Google reCaptcha™",
21
21
  "checked": true,
22
22
  "status": "disabled",
@@ -34,7 +34,7 @@
34
34
  "cookies": [
35
35
  {
36
36
  "id": "cookie-google-maps",
37
- "description": "These cookies enables the Google Map",
37
+ "description": "This cookie enables the Google Map",
38
38
  "labelText": "Google Maps™",
39
39
  "checked": false,
40
40
  "linkDataPrivacy": {
@@ -21,22 +21,5 @@
21
21
  "path": "http://www.comand-cms.com",
22
22
  "target": "_blank",
23
23
  "tooltip": "Open CoManD-Website in new tab"
24
- },
25
- {
26
- "type":"router",
27
- "text": "Router-link with path",
28
- "path": "/"
29
- },
30
- {
31
- "type":"router",
32
- "text": "Router-link with name",
33
- "tooltip": "Go to homepage",
34
- "route": {
35
- "name": "home",
36
- "params": {
37
- "param1": "value",
38
- "param2": "value"
39
- }
40
- }
41
24
  }
42
25
  ]
@@ -1,11 +1,24 @@
1
1
  <template>
2
2
  <!-- begin boxType 'content' -->
3
3
  <div v-if="boxType === 'content'" :class="['cmd-box box content', {open : open, collapsible: collapsible}]">
4
- <header v-if="useSlots?.includes('header')">
5
- <!-- begin slot 'header' -->
6
- <slot name="header"></slot>
7
- <!-- end slot 'header' -->
8
- </header>
4
+ <template v-if="useSlots?.includes('header')">
5
+ <!-- begin collapsible header with slot -->
6
+ <a v-if="collapsible" href="#" :title="open ? iconOpen.tooltip : iconClosed.tooltip" @click.prevent="toggleContentVisibility">
7
+ <!-- begin slot 'header' -->
8
+ <slot name="header"></slot>
9
+ <!-- end slot 'header' -->
10
+ <span class="toggle-icon" :class="[open ? iconOpen.iconClass : iconClosed.iconClass]"></span>
11
+ </a>
12
+ <!-- end collapsible header with slot -->
13
+
14
+ <!-- begin default header with slot -->
15
+ <header v-else>
16
+ <!-- begin slot 'header' -->
17
+ <slot name="header"></slot>
18
+ <!-- end slot 'header' -->
19
+ </header>
20
+ <!-- end default header with slot -->
21
+ </template>
9
22
  <template v-else>
10
23
  <!-- begin header for collapsible -->
11
24
  <a v-if="collapsible" href="#" :title="open ? iconOpen.tooltip : iconClosed.tooltip" @click.prevent="toggleContentVisibility">
@@ -126,7 +126,7 @@ export default {
126
126
  */
127
127
  textLegend: {
128
128
  type: String,
129
- required: true
129
+ required: false
130
130
  },
131
131
  /**
132
132
  * toggle legend visibility
@@ -3,80 +3,84 @@
3
3
  <div class="cmd-cookie-disclaimer flex-container vertical">
4
4
  <!-- begin CmdCustomHeadline -->
5
5
  <CmdCustomHeadline
6
- v-if="cmdCustomHeadline"
7
- v-bind="cmdCustomHeadline"
6
+ v-if="cmdCustomHeadlineCookieDisclaimer?.show && cmdCustomHeadlineCookieDisclaimer?.headlineText && cmdCustomHeadlineCookieDisclaimer?.headlineLevel"
7
+ v-bind="cmdCustomHeadlineCookieDisclaimer"
8
+ :headlineText="cmdCustomHeadlineCookieDisclaimer.headlineText"
9
+ :headlineLevel="cmdCustomHeadlineCookieDisclaimer.headlineLevel"
8
10
  />
9
11
  <!-- end CmdCustomHeadline -->
10
12
 
11
13
  <!-- begin slot for cookie-options -->
12
14
  <slot name="cookie-options">
13
- <div v-if="cookieOptions.required">
14
- <h3>{{ cookieOptions.required.headline }}</h3>
15
-
16
- <!-- &lt;!&ndash; begin CmdAccordion &ndash;&gt;-->
17
- <!-- <CmdAccordion :accordion-data="cookieOptions.required.cookies.length" :accordionData="2">-->
18
- <!-- <template v-for="(cookie, index) in cookieOptions.required.cookies"-->
19
- <!-- v-slot:[`accordionHeadline${index}`]-->
20
- <!-- :key="index">-->
21
- <!-- &lt;!&ndash; begin CmdSwitchButton &ndash;&gt;-->
22
- <!-- <CmdSwitchButton-->
23
- <!-- type="checkbox"-->
24
- <!-- :id="cookie.id"-->
25
- <!-- :labelText="cookie.labelText"-->
26
- <!-- v-model="cookie.checked"-->
27
- <!-- :status="cookie.status"-->
28
- <!-- disabled="disabled"-->
29
- <!-- />-->
30
- <!-- &lt;!&ndash; end CmdSwitchButton &ndash;&gt;-->
31
- <!-- </template>-->
32
- <!-- <template v-for="(cookie, index) in cookieOptions.required.cookies"-->
33
- <!-- v-slot:[`accordionContent${index}`]-->
34
- <!-- :key="index">-->
35
- <!-- <p v-if="cookie.description">{{ cookie.description }}</p>-->
36
- <!-- <p v-if="cookie.linkDataPrivacy">-->
37
- <!-- {{ cookie.linkDataPrivacy.label }}-->
38
- <!-- <a @click="openDataPrivacy"-->
39
- <!-- :href="cookie.linkDataPrivacy.link"-->
40
- <!-- :target="cookie.linkDataPrivacy.target">-->
41
- <!-- {{ cookie.linkDataPrivacy.linkText }}-->
42
- <!-- </a>-->
43
- <!-- </p>-->
44
- <!-- <div v-if="dataPrivacyContent" v-html="dataPrivacyContent"></div>-->
45
- <!-- </template>-->
46
- <!-- </CmdAccordion>-->
47
- <!-- &lt;!&ndash; end CmdAccordion &ndash;&gt;-->
15
+ <div v-if="cookieOptions.required" class="flex-container vertical">
16
+ <CmdCustomHeadline v-if="cmdBoxRequiredCookies?.showHeadline" :headline-text="cmdBoxRequiredCookies?.headlineText" :headline-level="cmdBoxRequiredCookies?.headlineLevel "/>
17
+ <!-- begin CmdBox -->
18
+ <CmdBox v-for="(cookie, index) in cookieOptions.required.cookies"
19
+ :useSlots="['header', 'body']"
20
+ v-bind="cmdBoxRequiredCookies"
21
+ :key="index"
22
+ >
23
+ <template v-slot:header>
24
+ <!-- begin CmdSwitchButton -->
25
+ <CmdSwitchButton
26
+ type="checkbox"
27
+ :id="cookie.id"
28
+ :labelText="cookie.labelText"
29
+ v-model="cookie.checked"
30
+ :status="cookie.status"
31
+ disabled="disabled"
32
+ />
33
+ <!-- end CmdSwitchButton -->
34
+ </template>
35
+ <template v-slot:body>
36
+ <p v-if="cookie.description">{{ cookie.description }}</p>
37
+ <p v-if="cookie.linkDataPrivacy">
38
+ {{ cookie.linkDataPrivacy.label }}
39
+ <a @click="openDataPrivacy"
40
+ :href="cookie.linkDataPrivacy.link"
41
+ :target="cookie.linkDataPrivacy.target">
42
+ {{ cookie.linkDataPrivacy.linkText }}
43
+ </a>
44
+ </p>
45
+ <div v-if="dataPrivacyContent" v-html="dataPrivacyContent"></div>
46
+ </template>
47
+ </CmdBox>
48
+ <!-- end CmdBox -->
48
49
  </div>
49
- <hr />
50
- <div v-if="cookieOptions.optional">
51
- <h3>{{ cookieOptions.optional.headline }}</h3>
52
- <!-- &lt;!&ndash; begin CmdAccordion &ndash;&gt;-->
53
- <!-- <CmdAccordion :accordion-data="cookieOptions.optional.cookies.length" :accordionData="2">-->
54
- <!-- <template v-for="(cookie, index) in cookieOptions.optional.cookies"-->
55
- <!-- v-slot:[`accordionHeadline${index}`]-->
56
- <!-- :key="index">-->
57
- <!-- &lt;!&ndash; begin CmdSwitchButton &ndash;&gt;-->
58
- <!-- <CmdSwitchButton-->
59
- <!-- type="checkbox"-->
60
- <!-- :id="cookie.id"-->
61
- <!-- :labelText="cookie.labelText"-->
62
- <!-- v-model="cookie.checked"-->
63
- <!-- :status="cookie.status"-->
64
- <!-- />-->
65
- <!-- &lt;!&ndash; end CmdSwitchButton &ndash;&gt;-->
66
- <!-- </template>-->
67
- <!-- <template v-for="(cookie, index) in cookieOptions.optional.cookies"-->
68
- <!-- v-slot:[`accordionContent${index}`]-->
69
- <!-- :key="index">-->
70
- <!-- <p>{{ cookie.description }}</p>-->
71
- <!-- <p v-if="cookie.linkDataPrivacy">-->
72
- <!-- {{ cookie.linkDataPrivacy.label }}-->
73
- <!-- <a @click="openDataPrivacy" :href="cookie.linkDataPrivacy.link"-->
74
- <!-- :target="cookie.linkDataPrivacy.target">{{ cookie.linkDataPrivacy.linkText }}</a>-->
75
- <!-- </p>-->
76
- <!-- <div v-if="dataPrivacyContent" v-html="dataPrivacyContent"></div>-->
77
- <!-- </template>-->
78
- <!-- </CmdAccordion>-->
79
- <!-- &lt;!&ndash; end CmdAccordion &ndash;&gt;-->
50
+ <hr/>
51
+ <div v-if="cookieOptions.optional" class="flex-container vertical">
52
+ <CmdCustomHeadline v-if="cmdBoxOptionalCookies?.showHeadline" :headline-text="cmdBoxOptionalCookies?.headlineText" :headline-level="cmdBoxOptionalCookies?.headlineLevel "/>
53
+ <!-- begin CmdBox -->
54
+ <CmdBox v-for="(cookie, index) in cookieOptions.optional.cookies"
55
+ :useSlots="['header', 'body']"
56
+ v-bind="cmdBoxOptionalCookies"
57
+ :key="index"
58
+ >
59
+ <template v-slot:header>
60
+ <!-- begin CmdSwitchButton -->
61
+ <CmdSwitchButton
62
+ type="checkbox"
63
+ :id="cookie.id"
64
+ :labelText="cookie.labelText"
65
+ v-model="cookie.checked"
66
+ :status="cookie.status"
67
+ />
68
+ <!-- end CmdSwitchButton -->
69
+ </template>
70
+ <template v-slot:body>
71
+ <p v-if="cookie.description">{{ cookie.description }}</p>
72
+ <p v-if="cookie.linkDataPrivacy">
73
+ {{ cookie.linkDataPrivacy.label }}
74
+ <a @click="openDataPrivacy"
75
+ :href="cookie.linkDataPrivacy.link"
76
+ :target="cookie.linkDataPrivacy.target">
77
+ {{ cookie.linkDataPrivacy.linkText }}
78
+ </a>
79
+ </p>
80
+ <div v-if="dataPrivacyContent" v-html="dataPrivacyContent"></div>
81
+ </template>
82
+ </CmdBox>
83
+ <!-- end CmdBox -->
80
84
  </div>
81
85
  </slot>
82
86
  <!-- end slot for cookie-options -->
@@ -87,7 +91,7 @@
87
91
 
88
92
  <!-- begin button-wrapper for 'accept'-buttons -->
89
93
  <div class="button-wrapper align-center">
90
- <button v-if="buttonLabelAcceptCurrentSettings" type="button" @click="acceptCookies('currentSettings')">
94
+ <button v-if="buttonLabelAcceptCurrentSettings" type="button" @click="acceptCookies('currentSettings')">
91
95
  <span>{{ buttonLabelAcceptCurrentSettings }}</span>
92
96
  </button>
93
97
  <button v-if="buttonLabelAcceptAllCookies" type="button" class="primary" @click="acceptCookies('allCookies')">
@@ -101,14 +105,16 @@
101
105
 
102
106
  <script>
103
107
  // import components
108
+ import CmdBox from "./CmdBox"
104
109
  import CmdCustomHeadline from "./CmdCustomHeadline"
105
- // import CmdSwitchButton from "./CmdSwitchButton"
110
+ import CmdSwitchButton from "./CmdSwitchButton"
106
111
 
107
112
  export default {
108
113
  name: "CmdCookieDisclaimer",
109
114
  components: {
110
- CmdCustomHeadline
111
- // CmdSwitchButton
115
+ CmdBox,
116
+ CmdCustomHeadline,
117
+ CmdSwitchButton
112
118
  },
113
119
  data() {
114
120
  return {
@@ -118,11 +124,45 @@ export default {
118
124
  },
119
125
  props: {
120
126
  /**
121
- * properties for CmdCustomHeadline-component
127
+ * properties for CmdCustomHeadline-component at top of cookie disclaimer
122
128
  */
123
- cmdCustomHeadline: {
129
+ cmdCustomHeadlineCookieDisclaimer: {
124
130
  type: Object,
125
- required: false
131
+ default() {
132
+ return {
133
+ show: true,
134
+ headlineText: "Cookie disclaimer",
135
+ headlineLevel: 2
136
+ }
137
+ }
138
+ },
139
+ /**
140
+ * property for CmdBox-component surrounding the required cookies
141
+ */
142
+ cmdBoxRequiredCookies: {
143
+ type: Object,
144
+ default() {
145
+ return {
146
+ collapsible: true,
147
+ showHeadline: true,
148
+ headlineText: "Required cookies",
149
+ headlineLevel: 3
150
+ }
151
+ }
152
+ },
153
+ /**
154
+ * property for CmdBox-component surrounding the optional cookies
155
+ */
156
+ cmdBoxOptionalCookies: {
157
+ type: Object,
158
+ default() {
159
+ return {
160
+ collapsible: true,
161
+ showHeadline: true,
162
+ headlineText: "Optional cookies",
163
+ headlineLevel: 3
164
+ }
165
+ }
126
166
  },
127
167
  /**
128
168
  * list of cookie-options
@@ -175,6 +215,12 @@ export default {
175
215
  bottom: 0;
176
216
  top: auto;
177
217
 
218
+ .cmd-box {
219
+ .box-body {
220
+ padding: var(--default-padding);
221
+ }
222
+ }
223
+
178
224
  h1 {
179
225
  text-align: center;
180
226
  }
@@ -191,22 +237,6 @@ export default {
191
237
  margin-bottom: var(--default-margin);
192
238
  }
193
239
 
194
- .cmd-accordion {
195
- .accordion-headline {
196
- &:hover, &:active, &:focus {
197
- label, .label {
198
- span {
199
- color: var(--pure-white) !important;
200
- }
201
- }
202
- }
203
- }
204
-
205
- .toggle-switch {
206
- display: flex;
207
- }
208
- }
209
-
210
240
  p {
211
241
  a {
212
242
  text-decoration: underline;
@@ -546,7 +546,40 @@ export default {
546
546
  tooltip: "Info"
547
547
  }
548
548
  }
549
- }
549
+ },
550
+ /**
551
+ * icon to toggle password-visibility
552
+ *
553
+ * element-property must me set to 'input'
554
+ * type-property must be set to 'password'
555
+ *
556
+ */
557
+ iconPasswordVisible: {
558
+ type: Object,
559
+ default() {
560
+ return {
561
+ show: true,
562
+ iconClass: "icon-visible",
563
+ tooltip: "Show password"
564
+ }
565
+ }
566
+ },
567
+ /**
568
+ * icon to toggle password-visibility
569
+ *
570
+ * element-property must me set to 'input'
571
+ * type-property must be set to 'password'
572
+ *
573
+ */
574
+ iconPasswordInvisible: {
575
+ type: Object,
576
+ default() {
577
+ return {
578
+ show: true,
579
+ iconClass: "icon-not-visible",
580
+ }
581
+ }
582
+ },
550
583
  },
551
584
  computed: {
552
585
  buttonAttrs() {
@@ -34,13 +34,6 @@ export default {
34
34
  /* begin cmd-google-maps ---------------------------------------------------------------------------------------- */
35
35
  .cmd-google-maps {
36
36
  border: var(--default-border);
37
-
38
- iframe {
39
- display: block;
40
- width: 100%;
41
- height: 100%;
42
- }
43
37
  }
44
-
45
38
  /* end cmd-google-maps ------------------------------------------------------------------------------------------ */
46
39
  </style>
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div :class="['label', 'multiple-switch', {disabled: status === 'disabled', error: status === 'error'}]">
3
- <span :class="{hidden: !showLegend}">{{ labelText }}</span>
3
+ <span :class="{hidden: !showLabel}">{{ labelText }}</span>
4
4
  <span class="flex-container no-gap no-flex">
5
5
  <label :class="{disabled: status === 'disabled'}" :for="multipleswitch.id"
6
6
  v-for="(multipleswitch, index) in multipleSwitches" :key="index">