comand-component-library 3.3.74 → 3.3.76
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/comand-component-library.js +4297 -3879
- package/dist/comand-component-library.umd.cjs +4 -4
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/App.vue +269 -211
- package/src/assets/data/image.json +1 -5
- package/src/assets/styles/global-styles.scss +198 -187
- package/src/components/CmdBackToTopButton.vue +1 -29
- package/src/components/CmdBox.vue +11 -4
- package/src/components/CmdFakeSelect.vue +4 -4
- package/src/components/CmdFormElement.vue +5 -6
- package/src/components/CmdHeadline.vue +68 -35
- package/src/components/CmdImage.vue +355 -21
- package/src/components/CmdImageGallery.vue +132 -32
- package/src/components/CmdMainNavigation.vue +1 -2
- package/src/components/CmdNewsletterSubscription.vue +2 -18
- package/src/components/CmdPager.vue +8 -1
- package/src/components/CmdSlideButton.vue +1 -7
- package/src/components/CmdSocialNetworks.vue +40 -17
- package/src/components/CmdSystemMessage.vue +1 -10
- package/src/components/CmdTable.vue +3 -3
- package/src/components/CmdTextBlock.vue +36 -24
- package/src/editmode/editModeContext.js +50 -0
- package/src/main.js +8 -18
package/src/App.vue
CHANGED
@@ -1,31 +1,42 @@
|
|
1
1
|
<!--suppress HtmlUnknownTarget, NpmUsedModulesInstalled, JSUnresolvedVariable -->
|
2
2
|
<template>
|
3
|
-
<div id="
|
3
|
+
<div :id="templateId">
|
4
|
+
<div id="page-wrapper"><!-- begin #page-wrapper -->
|
4
5
|
<a id="anchor-back-to-top"></a>
|
5
6
|
<!-- begin site-header --------------------------------------------------------------------------------------------------------------------------------------------------->
|
6
7
|
<CmdSiteHeader :sticky="true">
|
7
8
|
<template v-slot:top-header>
|
8
9
|
<!-- begin list-of-links --------------------------------------------------------------------------------------------------------------------------------------------------->
|
9
10
|
<CmdListOfLinks
|
10
|
-
|
11
|
-
|
12
|
-
|
11
|
+
:links="listOfLinksData"
|
12
|
+
orientation="horizontal"
|
13
|
+
align="right"
|
13
14
|
/>
|
14
15
|
<!-- end list-of-links --------------------------------------------------------------------------------------------------------------------------------------------------->
|
15
16
|
</template>
|
16
17
|
<template v-slot:logo>
|
17
18
|
<!-- begin company-logo --------------------------------------------------------------------------------------------------------------------------------------------------->
|
18
19
|
<CmdCompanyLogo
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
20
|
+
:link="companyLogoData.link"
|
21
|
+
altText="CoManD Logo"
|
22
|
+
:pathDefaultLogo="companyLogoData.pathDefaultLogo"
|
23
|
+
:pathDarkmodeLogo="companyLogoData.pathDarkmodeLogo"
|
23
24
|
/>
|
24
25
|
<!-- end company-logo --------------------------------------------------------------------------------------------------------------------------------------------------->
|
25
26
|
</template>
|
26
27
|
</CmdSiteHeader>
|
27
28
|
<!-- end site-header --------------------------------------------------------------------------------------------------------------------------------------------------->
|
28
29
|
<main>
|
30
|
+
<label for="select-template">
|
31
|
+
<span class="hidden">Select template</span>
|
32
|
+
<select id="select-template" v-model="selectedTemplate">
|
33
|
+
<option value="blank">Blank</option>
|
34
|
+
<option value="business">Business</option>
|
35
|
+
<option value="casual">Casual</option>
|
36
|
+
<option value="dating">Dating</option>
|
37
|
+
<option value="influencer">Influencer</option>
|
38
|
+
</select>
|
39
|
+
</label>
|
29
40
|
<!-- begin width-limitation-wrapper (with table of contents) --------------------------------------------------------------------------------------------------------------------------------------------------->
|
30
41
|
<CmdWidthLimitationWrapper :cmdHeadline="{headlineText: 'Table of contents', headlineLevel: 2}">
|
31
42
|
<div class="flex-container">
|
@@ -75,33 +86,33 @@
|
|
75
86
|
<h2 class="headline-demopage">Address Data</h2>
|
76
87
|
<div class="flex-container">
|
77
88
|
<CmdAddressData
|
78
|
-
|
79
|
-
|
80
|
-
|
89
|
+
:addressData="addressData"
|
90
|
+
:linkGoogleMaps="false"
|
91
|
+
:cmdHeadline="{headlineText: 'With label texts and icons', headlineLevel: 3}"
|
81
92
|
/>
|
82
93
|
<CmdAddressData
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
94
|
+
:addressData="addressData"
|
95
|
+
:linkGoogleMaps="false"
|
96
|
+
:show-label-texts="false"
|
97
|
+
:cmdHeadline="{headlineText: 'With label icons only', headlineLevel: 3}"
|
87
98
|
/>
|
88
99
|
<CmdAddressData
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
100
|
+
:addressData="addressData"
|
101
|
+
:linkGoogleMaps="false"
|
102
|
+
:show-label-icons="false"
|
103
|
+
:cmdHeadline="{headlineText: 'With label texts', headlineLevel: 3}"
|
93
104
|
/>
|
94
105
|
<CmdAddressData
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
106
|
+
:addressData="addressData"
|
107
|
+
:linkGoogleMaps="false"
|
108
|
+
:showLabels="false"
|
109
|
+
:cmdHeadline="{headlineText: 'Without labels', headlineLevel: 3}"
|
99
110
|
/>
|
100
111
|
<CmdAddressData
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
112
|
+
:addressData="addressData"
|
113
|
+
:linkGoogleMaps="true"
|
114
|
+
:showIconsOnly="true"
|
115
|
+
:cmdHeadline="{headlineText: 'Linked icons only', headlineLevel: 3}"
|
105
116
|
/>
|
106
117
|
</div>
|
107
118
|
</CmdWidthLimitationWrapper>
|
@@ -115,7 +126,8 @@
|
|
115
126
|
<h3>Form elements status:</h3>
|
116
127
|
<div class="flex-container">
|
117
128
|
<ul class="list-status">
|
118
|
-
<li><a href="#" @click.prevent="setStatus('', false)"
|
129
|
+
<li><a href="#" @click.prevent="setStatus('', false)"
|
130
|
+
:class="{'active' : validationStatus === '' && disabledStatus === false}"
|
119
131
|
id="status-default">Default</a></li>
|
120
132
|
<li class="error">
|
121
133
|
<a href="#" @click.prevent="setStatus('error', false)"
|
@@ -362,7 +374,8 @@
|
|
362
374
|
<h3>Headline</h3>
|
363
375
|
<p>Some content inside a paragraph</p>
|
364
376
|
</div>
|
365
|
-
<img src="media/images/thumbnail-scroller/thumbnail/logo-cmd-blue-landscape.jpg"
|
377
|
+
<img src="media/images/thumbnail-scroller/thumbnail/logo-cmd-blue-landscape.jpg"
|
378
|
+
alt="image"/>
|
366
379
|
</li>
|
367
380
|
</ul>
|
368
381
|
</CmdFakeSelect>
|
@@ -401,13 +414,13 @@
|
|
401
414
|
<span>Range Value</span>
|
402
415
|
</span>
|
403
416
|
<input
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
417
|
+
type="number"
|
418
|
+
:class="validationStatus"
|
419
|
+
v-model="rangeValue"
|
420
|
+
:disabled="disabledStatus"
|
421
|
+
min="0"
|
422
|
+
max="100"
|
423
|
+
id="range-value"
|
411
424
|
/>
|
412
425
|
</label>
|
413
426
|
<label for="range-slider">
|
@@ -415,13 +428,13 @@
|
|
415
428
|
<span>Range Value</span>
|
416
429
|
</span>
|
417
430
|
<input
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
431
|
+
type="range"
|
432
|
+
class="range-slider"
|
433
|
+
id="range-slider"
|
434
|
+
v-model="rangeValue"
|
435
|
+
:disabled="disabledStatus"
|
436
|
+
min="0"
|
437
|
+
max="100"
|
425
438
|
/>
|
426
439
|
</label>
|
427
440
|
</span>
|
@@ -654,10 +667,10 @@
|
|
654
667
|
<h2>Input-Groups</h2>
|
655
668
|
<h3>Input Group with Radiobuttons [native]</h3>
|
656
669
|
<CmdInputGroup
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
670
|
+
labelText="Group label for radio-group given by slot:"
|
671
|
+
:useSlot="true"
|
672
|
+
:status="validationStatus"
|
673
|
+
:disabled="disabledStatus"
|
661
674
|
>
|
662
675
|
<CmdFormElement element="input"
|
663
676
|
labelText="Label for radiobutton"
|
@@ -687,13 +700,13 @@
|
|
687
700
|
</dd>
|
688
701
|
</dl>
|
689
702
|
<CmdInputGroup
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
703
|
+
labelText="Grouplabel for radio-group given by property:"
|
704
|
+
:required="true"
|
705
|
+
:inputElements="idForReplacedInputsInInputGroup('radio-group')"
|
706
|
+
inputTypes="radio"
|
707
|
+
v-model="inputGroupCheckbox"
|
708
|
+
:status="validationStatus"
|
709
|
+
:disabled="disabledStatus"
|
697
710
|
/>
|
698
711
|
<dl>
|
699
712
|
<dt>Selected value:</dt>
|
@@ -703,13 +716,13 @@
|
|
703
716
|
</dl>
|
704
717
|
<h3>Input Group with Checkboxes/Radiobuttons (replaced)</h3>
|
705
718
|
<CmdInputGroup
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
719
|
+
labelText="Grouplabel for radio-group styled as replaced-input-type:"
|
720
|
+
:inputElements="idForReplacedInputsInInputGroup('replaced-radio-group')"
|
721
|
+
inputTypes="radio"
|
722
|
+
v-model="inputGroupValueReplaceInputTypeRadio"
|
723
|
+
:replaceInputType="true"
|
724
|
+
:status="validationStatus"
|
725
|
+
:disabled="disabledStatus"
|
713
726
|
/>
|
714
727
|
<dl>
|
715
728
|
<dt>Selected value:</dt>
|
@@ -718,14 +731,14 @@
|
|
718
731
|
</dd>
|
719
732
|
</dl>
|
720
733
|
<CmdInputGroup
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
734
|
+
labelText="Grouplabel for checkbox-group styled as replaced-input-type:"
|
735
|
+
:inputElements="idForReplacedInputsInInputGroup('checkbox-group')"
|
736
|
+
inputTypes="checkbox"
|
737
|
+
v-model="inputGroupValueReplaceInputTypeCheckbox"
|
738
|
+
:replaceInputType="true"
|
739
|
+
:required="true"
|
740
|
+
:status="validationStatus"
|
741
|
+
:disabled="disabledStatus"
|
729
742
|
/>
|
730
743
|
<dl>
|
731
744
|
<dt>Selected value(s):</dt>
|
@@ -736,14 +749,14 @@
|
|
736
749
|
<h3>Input Groups with Checkboxes/
|
737
750
|
Radiobuttons (toggle-switches)</h3>
|
738
751
|
<CmdInputGroup
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
752
|
+
labelText="Grouplabel for checkbox-group styled as toggle-switches:"
|
753
|
+
:inputElements="idForReplacedInputsInInputGroup('checkbox-group-toggle-switch')"
|
754
|
+
inputTypes="checkbox"
|
755
|
+
v-model="inputGroupValueToggleSwitchCheckbox"
|
756
|
+
:toggleSwitch="true"
|
757
|
+
required="required"
|
758
|
+
:status="validationStatus"
|
759
|
+
:disabled="disabledStatus"
|
747
760
|
/>
|
748
761
|
<dl>
|
749
762
|
<dt>Selected value(s):</dt>
|
@@ -752,14 +765,14 @@
|
|
752
765
|
</dd>
|
753
766
|
</dl>
|
754
767
|
<CmdInputGroup
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
768
|
+
labelText="Grouplabel for radio-group styled as toggle-switches:"
|
769
|
+
:inputElements="idForReplacedInputsInInputGroup('radio-group-toggle-switch')"
|
770
|
+
inputTypes="radio"
|
771
|
+
v-model="inputGroupValueToggleSwitchRadio"
|
772
|
+
:toggleSwitch="true"
|
773
|
+
required="required"
|
774
|
+
:status="validationStatus"
|
775
|
+
:disabled="disabledStatus"
|
763
776
|
/>
|
764
777
|
<dl>
|
765
778
|
<dt>Selected value(s):</dt>
|
@@ -768,13 +781,13 @@
|
|
768
781
|
</dd>
|
769
782
|
</dl>
|
770
783
|
<CmdInputGroup
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
784
|
+
labelText="Grouplabel for radio-group given by property styled as multiple-switch:"
|
785
|
+
:inputElements="idForReplacedInputsInInputGroup('radio-group-multiple-switch')"
|
786
|
+
inputTypes="radio"
|
787
|
+
:multipleSwitch="true"
|
788
|
+
v-model="inputGroupValue3"
|
789
|
+
:status="validationStatus"
|
790
|
+
:disabled="disabledStatus"
|
778
791
|
/>
|
779
792
|
<dl>
|
780
793
|
<dt>Selected value(s):</dt>
|
@@ -783,15 +796,15 @@
|
|
783
796
|
</dd>
|
784
797
|
</dl>
|
785
798
|
<CmdInputGroup
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
799
|
+
labelText="Grouplabel for checkbox-group styled as multiple-switch (stretched horizontally):"
|
800
|
+
:inputElements="inputGroupCheckboxes"
|
801
|
+
inputTypes="checkbox"
|
802
|
+
:multipleSwitch="true"
|
803
|
+
:required="true"
|
804
|
+
v-model="inputGroupValue4"
|
805
|
+
:stretchHorizontally="true"
|
806
|
+
:status="validationStatus"
|
807
|
+
:disabled="disabledStatus"
|
795
808
|
/>
|
796
809
|
<dl>
|
797
810
|
<dt>Selected value(s):</dt>
|
@@ -826,7 +839,9 @@
|
|
826
839
|
<a id="section-bank-account-data"></a>
|
827
840
|
<CmdWidthLimitationWrapper>
|
828
841
|
<h2 class="headline-demopage">Bank Account Data</h2>
|
829
|
-
<CmdBankAccountData :account-data="bankAccountData"
|
842
|
+
<CmdBankAccountData :account-data="bankAccountData"
|
843
|
+
:cmd-headline="{ headlineText: 'Bank Account', headlineLevel: 3}"
|
844
|
+
:allow-copy-by-click="true"/>
|
830
845
|
</CmdWidthLimitationWrapper>
|
831
846
|
<!-- end bank account data ------------------------------------------------------------------------------------------------------------------------------------------------------->
|
832
847
|
|
@@ -834,18 +849,22 @@
|
|
834
849
|
<a id="section-boxes"></a>
|
835
850
|
<CmdWidthLimitationWrapper>
|
836
851
|
<h2 class="headline-demopage">Boxes</h2>
|
837
|
-
<CmdBoxWrapper :useFlexbox="true"
|
838
|
-
|
852
|
+
<CmdBoxWrapper :useFlexbox="true"
|
853
|
+
:cmdHeadline="{headlineText: 'Boxes in BoxWrapper with flexbox', headlineLevel: 3}">
|
854
|
+
<CmdBox v-for="index in 14" :key="index" textBody="Content"
|
855
|
+
:cmd-headline="{headlineText: 'Headline ' + index, headlineLevel: 4}"/>
|
839
856
|
</CmdBoxWrapper>
|
840
|
-
<CmdBoxWrapper :useFlexbox="true"
|
857
|
+
<CmdBoxWrapper :useFlexbox="true"
|
858
|
+
:cmdHeadline="{headlineText: 'Different examples of content-boxes (in BoxWrapper)', headlineLevel: 3}">
|
841
859
|
<CmdBox
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
860
|
+
:stretch-vertically="false"
|
861
|
+
:cmdHeadline="{headlineText: 'Box with cutoff text', headlineLevel: 4}"
|
862
|
+
:useSlots="['body']"
|
863
|
+
:cutoff-text-lines="4"
|
846
864
|
>
|
847
865
|
<template v-slot:body>
|
848
|
-
This is a long text that is cutoff after a specific number of lines that can be defined by
|
866
|
+
This is a long text that is cutoff after a specific number of lines that can be defined by
|
867
|
+
the property 'cutoffTextLines' and be toggled by a link below.
|
849
868
|
</template>
|
850
869
|
</CmdBox>
|
851
870
|
<CmdBox :useSlots="['header', 'body', 'footer']">
|
@@ -892,12 +911,13 @@
|
|
892
911
|
</template>
|
893
912
|
</CmdBox>
|
894
913
|
<CmdBox
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
914
|
+
:cmdHeadline="{headlineText: 'Collapsible box', headlineLevel: 4}"
|
915
|
+
:image="{src: 'media/images/content-images/landscape-medium.jpg', altText: 'ALternative text'}"
|
916
|
+
textBody="This is some text given by property."
|
917
|
+
:collapsible="true"
|
899
918
|
/>
|
900
|
-
<CmdBox :useSlots="['header', 'body']"
|
919
|
+
<CmdBox :useSlots="['header', 'body']"
|
920
|
+
:cmdHeadline="{headlineText: 'Collapsible box', headlineLevel: 4}" :collapsible="true">
|
901
921
|
<template v-slot:header>
|
902
922
|
<h4>
|
903
923
|
Collapsible box with image
|
@@ -941,7 +961,9 @@
|
|
941
961
|
</div>
|
942
962
|
<CmdBoxWrapper :boxesPerRow="[5, 2, 1]" :useRowViewAsDefault="true">
|
943
963
|
<template v-slot="slotProps">
|
944
|
-
<CmdBox v-for="index in boxUserData.length" :key="index" boxType="user"
|
964
|
+
<CmdBox v-for="index in boxUserData.length" :key="index" boxType="user"
|
965
|
+
:user="boxUserData[index - 1]" :cmdHeadline="{headlineLevel: 5}"
|
966
|
+
:rowView="slotProps.rowView"/>
|
945
967
|
</template>
|
946
968
|
</CmdBoxWrapper>
|
947
969
|
</CmdWidthLimitationWrapper>
|
@@ -969,14 +991,17 @@
|
|
969
991
|
<a id="section-headlines"></a>
|
970
992
|
<CmdWidthLimitationWrapper>
|
971
993
|
<h2 class="headline-demopage">Headlines</h2>
|
972
|
-
<CmdHeadline :headlineIcon="{iconClass: 'icon-home'}" pre-headline-text="Pre-headline"
|
994
|
+
<CmdHeadline :headlineIcon="{iconClass: 'icon-home'}" pre-headline-text="Pre-headline"
|
995
|
+
headlineText="Headline level 1" :headlineLevel="1"/>
|
973
996
|
<CmdHeadline headlineText="Headline level 2" :headlineLevel="2"/>
|
974
997
|
<CmdHeadline headlineText="Headline level 3" :headlineLevel="3"/>
|
975
998
|
<CmdHeadline headlineText="Headline level 4" :headlineLevel="4"/>
|
976
999
|
<CmdHeadline headlineText="Headline level 5" :headlineLevel="5"/>
|
977
1000
|
<CmdHeadline headlineText="Headline level 6" :headlineLevel="6"/>
|
978
|
-
<CmdHeadline pre-headline-text="Pre-headline" headlineText="Headline level 1 (center)"
|
979
|
-
|
1001
|
+
<CmdHeadline pre-headline-text="Pre-headline" headlineText="Headline level 1 (center)"
|
1002
|
+
text-align="center" :headlineLevel="1"/>
|
1003
|
+
<CmdHeadline pre-headline-text="Pre-headline" headlineText="Headline level 1 (right)" text-align="right"
|
1004
|
+
:headlineLevel="1"/>
|
980
1005
|
</CmdWidthLimitationWrapper>
|
981
1006
|
<!-- end headline ------------------------------------------------------------------------------------------------------------------------------------------------------->
|
982
1007
|
|
@@ -985,7 +1010,8 @@
|
|
985
1010
|
<CmdWidthLimitationWrapper>
|
986
1011
|
<h2 class="headline-demopage">Fancybox</h2>
|
987
1012
|
<h3>FancyBox with text</h3>
|
988
|
-
<a href="#" @click.prevent="showFancyBox('text','Some text', 'FancyBox with text')">Open FancyBox with
|
1013
|
+
<a href="#" @click.prevent="showFancyBox('text','Some text', 'FancyBox with text')">Open FancyBox with
|
1014
|
+
text</a>
|
989
1015
|
<h3>FancyBox with large image given by url</h3>
|
990
1016
|
<a href="#"
|
991
1017
|
@click.prevent="showFancyBox('url', 'media/images/demo-images/large/landscape-01.jpg', 'FancyBox with large image given by url')"
|
@@ -1074,8 +1100,8 @@
|
|
1074
1100
|
<CmdWidthLimitationWrapper>
|
1075
1101
|
<h2 class="headline-demopage">Image-Zoom</h2>
|
1076
1102
|
<CmdImageZoom
|
1077
|
-
|
1078
|
-
|
1103
|
+
:imageSmall="imageData[2].image"
|
1104
|
+
:imageLarge="imageData[3].image"
|
1079
1105
|
/>
|
1080
1106
|
</CmdWidthLimitationWrapper>
|
1081
1107
|
<!-- end image-zoom ------------------------------------------------------------------------------------------------------------------------------------------------------->
|
@@ -1100,10 +1126,10 @@
|
|
1100
1126
|
<CmdListOfLinks :links="listOfLinksData"/>
|
1101
1127
|
<h3>Horizontal (aligned left, with headline)</h3>
|
1102
1128
|
<CmdListOfLinks
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1129
|
+
orientation="horizontal"
|
1130
|
+
align="left"
|
1131
|
+
:links="listOfLinksData"
|
1132
|
+
:cmdHeadline="{
|
1107
1133
|
headlineText: 'Headline',
|
1108
1134
|
headlineLevel: 5
|
1109
1135
|
}"
|
@@ -1111,7 +1137,8 @@
|
|
1111
1137
|
<h3>Horizontal (aligned center)</h3>
|
1112
1138
|
<CmdListOfLinks orientation="horizontal" align="center" :links="listOfLinksData"/>
|
1113
1139
|
<h3>Horizontal (aligned right)</h3>
|
1114
|
-
<CmdListOfLinks orientation="horizontal" align="right" :links="listOfLinksData"
|
1140
|
+
<CmdListOfLinks orientation="horizontal" align="right" :links="listOfLinksData"
|
1141
|
+
@click="clickOnListOfLinks"/>
|
1115
1142
|
<h3>Large icons</h3>
|
1116
1143
|
<CmdListOfLinks orientation="horizontal" :links="listOfLinksData" :largeIcons="true"/>
|
1117
1144
|
</CmdWidthLimitationWrapper>
|
@@ -1122,9 +1149,9 @@
|
|
1122
1149
|
<CmdWidthLimitationWrapper>
|
1123
1150
|
<h2 class="headline-demopage">Main Navigation</h2>
|
1124
1151
|
<CmdMainNavigation
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1152
|
+
:stretchMainItems="false"
|
1153
|
+
:persistOnMobile="false"
|
1154
|
+
:navigationEntries="navigationData.navigationEntries"
|
1128
1155
|
/>
|
1129
1156
|
</CmdWidthLimitationWrapper>
|
1130
1157
|
<!-- end main-navigation ------------------------------------------------------------------------------------------------------------------------------------------------------->
|
@@ -1134,20 +1161,20 @@
|
|
1134
1161
|
<CmdWidthLimitationWrapper>
|
1135
1162
|
<h2 class="headline-demopage">Multistepform-Progressbar</h2>
|
1136
1163
|
<h3>Steps with icons</h3>
|
1137
|
-
|
1164
|
+
<CmdMultistepFormProgressBar
|
1138
1165
|
:multisteps="multistepsData.withIcon"
|
1139
1166
|
separatorIconClass="icon-single-arrow-right"
|
1140
1167
|
@click="showPageMultistep = $event.index + 1"
|
1141
|
-
|
1168
|
+
/>
|
1142
1169
|
<div>
|
1143
1170
|
<p>Page {{ showPageMultistep }}</p>
|
1144
1171
|
</div>
|
1145
1172
|
<h3>Steps with number</h3>
|
1146
1173
|
<CmdMultistepFormProgressBar
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1174
|
+
:showStepNumber="true"
|
1175
|
+
:multisteps="multistepsData.withoutIcon"
|
1176
|
+
separatorIconClass="icon-single-arrow-right"
|
1177
|
+
@click="showPageMultistep = $event.index + 1"
|
1151
1178
|
/>
|
1152
1179
|
<div>
|
1153
1180
|
<p>Page {{ showPageMultistep }}</p>
|
@@ -1160,7 +1187,8 @@
|
|
1160
1187
|
<CmdWidthLimitationWrapper>
|
1161
1188
|
<h2 class="headline-demopage">Newsletter Subscription</h2>
|
1162
1189
|
<CmdForm textLegend="Stay-up-to-date" :use-fieldset="false">
|
1163
|
-
<CmdNewsletterSubscription v-model="newsletter" buttonType="submit"
|
1190
|
+
<CmdNewsletterSubscription v-model="newsletter" buttonType="submit"
|
1191
|
+
@buttonClick="submitNewsletterRegistration"/>
|
1164
1192
|
</CmdForm>
|
1165
1193
|
</CmdWidthLimitationWrapper>
|
1166
1194
|
<!-- end newsletter-subscription ------------------------------------------------------------------------------------------------------------------------------------------------------->
|
@@ -1174,19 +1202,19 @@
|
|
1174
1202
|
<p>Page {{ showPagePager }}</p>
|
1175
1203
|
</div>
|
1176
1204
|
<CmdPager
|
1177
|
-
|
1178
|
-
|
1179
|
-
|
1205
|
+
:pages="4"
|
1206
|
+
:itemsPerPage="1"
|
1207
|
+
@click="showPagePager = $event"
|
1180
1208
|
/>
|
1181
1209
|
<h3>Button-view</h3>
|
1182
1210
|
<div>
|
1183
1211
|
<p>Page {{ showPagePager }}</p>
|
1184
1212
|
</div>
|
1185
1213
|
<CmdPager
|
1186
|
-
|
1187
|
-
|
1188
|
-
|
1189
|
-
|
1214
|
+
:pages="4"
|
1215
|
+
:itemsPerPage="1"
|
1216
|
+
link-type="button"
|
1217
|
+
@click="showPagePager = $event"
|
1190
1218
|
/>
|
1191
1219
|
</CmdWidthLimitationWrapper>
|
1192
1220
|
<!-- end pager ------------------------------------------------------------------------------------------------------------------------------------------------------->
|
@@ -1197,20 +1225,20 @@
|
|
1197
1225
|
<h2 class="headline-demopage">Social Networks</h2>
|
1198
1226
|
<h3>With user confirmation (buttons without gap)</h3>
|
1199
1227
|
<CmdSocialNetworks
|
1200
|
-
|
1201
|
-
|
1202
|
-
|
1228
|
+
:networks="socialNetworksData"
|
1229
|
+
:userMustAcceptDataPrivacy="true"
|
1230
|
+
:useGap="false"
|
1203
1231
|
/>
|
1204
1232
|
<h3>Without user confirmation (buttons with gap, text aligned left)</h3>
|
1205
1233
|
<CmdSocialNetworks
|
1206
|
-
|
1207
|
-
|
1234
|
+
:networks="socialNetworksData"
|
1235
|
+
:userMustAcceptDataPrivacy="false"
|
1208
1236
|
/>
|
1209
1237
|
<h3>Without user confirmation (buttons with gap, text aligned right)</h3>
|
1210
1238
|
<CmdSocialNetworks
|
1211
|
-
|
1212
|
-
|
1213
|
-
|
1239
|
+
:networks="socialNetworksData"
|
1240
|
+
:userMustAcceptDataPrivacy="false"
|
1241
|
+
textAlign="right"
|
1214
1242
|
/>
|
1215
1243
|
</CmdWidthLimitationWrapper>
|
1216
1244
|
<!-- end social-networks ------------------------------------------------------------------------------------------------------------------------------------------------------->
|
@@ -1221,39 +1249,39 @@
|
|
1221
1249
|
<h2 class="headline-demopage">Site Header</h2>
|
1222
1250
|
<h3>Header with navigation below logo</h3>
|
1223
1251
|
<CmdSiteHeader
|
1224
|
-
|
1225
|
-
|
1226
|
-
|
1252
|
+
:cmdMainNavigation="navigationData"
|
1253
|
+
:cmdCompanyLogo="companyLogoData"
|
1254
|
+
:sticky="false"
|
1227
1255
|
/>
|
1228
1256
|
<h3>Header with navigation inline with logo</h3>
|
1229
1257
|
<CmdSiteHeader
|
1230
|
-
|
1231
|
-
|
1232
|
-
|
1233
|
-
|
1258
|
+
:cmdMainNavigation="navigationData"
|
1259
|
+
:cmdCompanyLogo="companyLogoData"
|
1260
|
+
:sticky="false"
|
1261
|
+
:navigation-inline="true"
|
1234
1262
|
/>
|
1235
1263
|
<h3>Header with top-header-links, logo and navigation given by slot</h3>
|
1236
1264
|
<CmdSiteHeader :sticky="false">
|
1237
1265
|
<template v-slot:topheader>
|
1238
1266
|
<CmdListOfLinks
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1267
|
+
:links="listOfLinksData"
|
1268
|
+
orientation="horizontal"
|
1269
|
+
align="right"
|
1242
1270
|
/>
|
1243
1271
|
</template>
|
1244
1272
|
<template v-slot:logo>
|
1245
1273
|
<CmdCompanyLogo
|
1246
|
-
|
1247
|
-
|
1248
|
-
|
1249
|
-
|
1274
|
+
:link="companyLogoData.link"
|
1275
|
+
altText="CoManD Logo"
|
1276
|
+
:pathDefaultLogo="companyLogoData.pathDefaultLogo"
|
1277
|
+
:pathDarkmodeLogo="companyLogoData.pathDarkmodeLogo"
|
1250
1278
|
/>
|
1251
1279
|
</template>
|
1252
1280
|
<template v-slot:navigation>
|
1253
1281
|
<CmdMainNavigation
|
1254
|
-
|
1255
|
-
|
1256
|
-
|
1282
|
+
:stretchMainItems="false"
|
1283
|
+
:persistOnMobile="false"
|
1284
|
+
:navigationEntries="navigationData.navigationEntries"
|
1257
1285
|
/>
|
1258
1286
|
</template>
|
1259
1287
|
</CmdSiteHeader>
|
@@ -1265,13 +1293,13 @@
|
|
1265
1293
|
<CmdWidthLimitationWrapper>
|
1266
1294
|
<h2 class="headline-demopage">Site Search</h2>
|
1267
1295
|
<CmdSiteSearch
|
1268
|
-
|
1269
|
-
|
1270
|
-
|
1271
|
-
|
1272
|
-
|
1273
|
-
|
1274
|
-
|
1296
|
+
v-model:modelValueInput1="siteSearchInput1"
|
1297
|
+
v-model:modelValueInput2="siteSearchInput2"
|
1298
|
+
v-model:modelValueRadius="radius"
|
1299
|
+
v-model:modelValueSearchFilters="filters"
|
1300
|
+
@search="siteSearchOutput"
|
1301
|
+
textLegend="Search"
|
1302
|
+
:cmdFakeSelect="siteSearchFilters"
|
1275
1303
|
/>
|
1276
1304
|
</CmdWidthLimitationWrapper>
|
1277
1305
|
<!-- end site-search ------------------------------------------------------------------------------------------------------------------------------------------------------->
|
@@ -1323,11 +1351,14 @@
|
|
1323
1351
|
<CmdWidthLimitationWrapper>
|
1324
1352
|
<h2 class="headline-demopage">Tables</h2>
|
1325
1353
|
<h3>Table as wide as its content (with caption)</h3>
|
1326
|
-
<CmdTable :collapsible="true" :fullWidthOnDefault="false" :userCanToggleWidth="true"
|
1354
|
+
<CmdTable :collapsible="true" :fullWidthOnDefault="false" :userCanToggleWidth="true"
|
1355
|
+
:table-data="tableDataSmall"/>
|
1327
1356
|
<h3>Table as wide as its content (without caption)</h3>
|
1328
|
-
<CmdTable :collapsible="true" :fullWidthOnDefault="false" :userCanToggleWidth="true"
|
1357
|
+
<CmdTable :collapsible="true" :fullWidthOnDefault="false" :userCanToggleWidth="true"
|
1358
|
+
:caption="{ text: 'Hidden caption', show: false}" :table-data="tableDataSmall"/>
|
1329
1359
|
<h3>Table as wide as possible</h3>
|
1330
|
-
<CmdTable :collapsible="true" :fullWidthOnDefault="false" :userCanToggleWidth="true"
|
1360
|
+
<CmdTable :collapsible="true" :fullWidthOnDefault="false" :userCanToggleWidth="true"
|
1361
|
+
:table-data="tableDataLarge"/>
|
1331
1362
|
</CmdWidthLimitationWrapper>
|
1332
1363
|
<!-- end tables ------------------------------------------------------------------------------------------------------------------------------------------------------->
|
1333
1364
|
|
@@ -1338,7 +1369,8 @@
|
|
1338
1369
|
<h3>Tabs with content from json-file</h3>
|
1339
1370
|
<CmdTabs :stretchTabs="false" :tabs="tabsData"/>
|
1340
1371
|
<h3>Tabs with HTML-content (given by slot))</h3>
|
1341
|
-
<CmdTabs :stretchTabs="true" :tabs="[{name: 'Tab 1'}, {name: 'Tab 2'}, {name: 'Tab 3'}]"
|
1372
|
+
<CmdTabs :stretchTabs="true" :tabs="[{name: 'Tab 1'}, {name: 'Tab 2'}, {name: 'Tab 3'}]"
|
1373
|
+
:useSlot="true">
|
1342
1374
|
<template v-slot:tab-content-0>
|
1343
1375
|
<h4>Tab 1 headline</h4>
|
1344
1376
|
<p>Content</p>
|
@@ -1363,8 +1395,10 @@
|
|
1363
1395
|
<CmdWidthLimitationWrapper>
|
1364
1396
|
<h2 class="headline-demopage">Text-Block</h2>
|
1365
1397
|
<div class="flex-container">
|
1366
|
-
<CmdTextBlock :cmdHeadline="{headlineText: 'Headline', headlineLevel: 3}"
|
1367
|
-
|
1398
|
+
<CmdTextBlock :cmdHeadline="{headlineText: 'Headline', headlineLevel: 3}"
|
1399
|
+
textContent="Text given as text only"/>
|
1400
|
+
<CmdTextBlock :cmdHeadline="{headlineText: 'Headline', headlineLevel: 3}"
|
1401
|
+
htmlContent="<p>Text given as html-content</p>"/>
|
1368
1402
|
</div>
|
1369
1403
|
</CmdWidthLimitationWrapper>
|
1370
1404
|
<!-- end textblock ------------------------------------------------------------------------------------------------------------------------------------------------------->
|
@@ -1377,23 +1411,23 @@
|
|
1377
1411
|
<h3>Thumbnail-Scroller with images (opens fancybox)</h3>
|
1378
1412
|
|
1379
1413
|
<CmdThumbnailScroller
|
1380
|
-
|
1414
|
+
:thumbnail-scroller-items="thumbnailScrollerImagesData"
|
1381
1415
|
/>
|
1382
1416
|
<h3>Thumbnail-Scroller with text (opens url)</h3>
|
1383
1417
|
<CmdThumbnailScroller
|
1384
|
-
|
1385
|
-
|
1386
|
-
|
1387
|
-
|
1418
|
+
:thumbnail-scroller-items="thumbnailScrollerTextData"
|
1419
|
+
contentType="text"
|
1420
|
+
executeOnClick="url"
|
1421
|
+
:fullWidth="true"
|
1388
1422
|
/>
|
1389
1423
|
<h3>Thumbnail-Scroller with text (emits click-event)</h3>
|
1390
1424
|
<CmdThumbnailScroller
|
1391
|
-
|
1392
|
-
|
1393
|
-
|
1394
|
-
|
1395
|
-
|
1396
|
-
|
1425
|
+
:thumbnail-scroller-items="thumbnailScrollerTextData"
|
1426
|
+
contentType="text"
|
1427
|
+
executeOnClick="emit"
|
1428
|
+
@click="onClick"
|
1429
|
+
:largeIcons="true"
|
1430
|
+
:fullWidth="true"
|
1397
1431
|
/>
|
1398
1432
|
</div>
|
1399
1433
|
</CmdWidthLimitationWrapper>
|
@@ -1479,20 +1513,20 @@
|
|
1479
1513
|
|
1480
1514
|
<!-- begin fancy-box ------------------------------------------------------------------------------------------------------------------------------------------------------->
|
1481
1515
|
<CmdFancyBox
|
1482
|
-
|
1483
|
-
|
1484
|
-
|
1485
|
-
|
1486
|
-
|
1516
|
+
:show="fancyBoxCookieDisclaimer"
|
1517
|
+
:fancyboxOptions="{}"
|
1518
|
+
:allowEscapeKey="false"
|
1519
|
+
:cmdHeadline="{show: true, headlineText: 'Cookie Disclaimer', headlineLevel: 2}"
|
1520
|
+
ariaLabelText="Cookie Disclaimer"
|
1487
1521
|
>
|
1488
1522
|
<!-- begin cookie-disclaimer ------------------------------------------------------------------------------------------------------------------------------------------------------->
|
1489
1523
|
<CmdCookieDisclaimer
|
1490
|
-
|
1491
|
-
|
1492
|
-
|
1493
|
-
|
1494
|
-
|
1495
|
-
|
1524
|
+
:cookieOptions="cookieDisclaimerData"
|
1525
|
+
buttonLabelAcceptAllCookies="Accept all cookies"
|
1526
|
+
buttonLabelAcceptCurrentSettings="Accept current settings"
|
1527
|
+
@closeCookieDisclaimer="closeCookieDisclaimer"
|
1528
|
+
v-model="acceptedCookies"
|
1529
|
+
:cmdHeadlineCookieDisclaimer="{ show: false }">
|
1496
1530
|
<template #privacy-text>
|
1497
1531
|
<p>
|
1498
1532
|
<strong>
|
@@ -1504,6 +1538,7 @@
|
|
1504
1538
|
<!-- end cookie-disclaimer ------------------------------------------------------------------------------------------------------------------------------------------------------->
|
1505
1539
|
</CmdFancyBox>
|
1506
1540
|
<!-- end fancy-box ------------------------------------------------------------------------------------------------------------------------------------------------------->
|
1541
|
+
</div><!-- end #page-wrapper -->
|
1507
1542
|
</div>
|
1508
1543
|
</template>
|
1509
1544
|
|
@@ -1552,6 +1587,7 @@ export default {
|
|
1552
1587
|
name: "App",
|
1553
1588
|
data() {
|
1554
1589
|
return {
|
1590
|
+
selectedTemplate: "blank",
|
1555
1591
|
acceptedCookies: ["google-maps"],
|
1556
1592
|
showTooltip: false,
|
1557
1593
|
disabledStatus: undefined,
|
@@ -1687,6 +1723,11 @@ export default {
|
|
1687
1723
|
thumbnailScrollerTextData
|
1688
1724
|
}
|
1689
1725
|
},
|
1726
|
+
computed: {
|
1727
|
+
templateId() {
|
1728
|
+
return "template-" + this.selectedTemplate
|
1729
|
+
}
|
1730
|
+
},
|
1690
1731
|
methods: {
|
1691
1732
|
navigationDataRight() {
|
1692
1733
|
setTimeout(() => {
|
@@ -1797,21 +1838,38 @@ export default {
|
|
1797
1838
|
switchButtonChange() {
|
1798
1839
|
alert("Changed")
|
1799
1840
|
}
|
1841
|
+
},
|
1842
|
+
watch: {
|
1843
|
+
selectedTemplate() {
|
1844
|
+
let linkTag = document.querySelector('link')
|
1845
|
+
|
1846
|
+
if (linkTag) {
|
1847
|
+
linkTag.parentNode.removeChild(linkTag)
|
1848
|
+
}
|
1849
|
+
|
1850
|
+
if (this.selectedTemplate !== "blank") {
|
1851
|
+
let newLink = document.createElement('link');
|
1852
|
+
newLink.rel = 'stylesheet';
|
1853
|
+
newLink.href = 'https://cdn.jsdelivr.net/npm/comand-frontend-framework/dist/templates/' + this.selectedTemplate + '.css';
|
1854
|
+
|
1855
|
+
document.head.appendChild(newLink);
|
1856
|
+
}
|
1857
|
+
}
|
1800
1858
|
}
|
1801
1859
|
}
|
1802
1860
|
</script>
|
1803
1861
|
|
1804
1862
|
<style lang="scss">
|
1805
1863
|
.list-status {
|
1806
|
-
|
1807
|
-
|
1808
|
-
|
1809
|
-
|
1810
|
-
|
1864
|
+
.active {
|
1865
|
+
color: var(--text-color);
|
1866
|
+
text-decoration: none;
|
1867
|
+
background: none;
|
1868
|
+
}
|
1811
1869
|
}
|
1812
1870
|
|
1813
1871
|
main .cmd-width-limitation-wrapper:not(:last-of-type) {
|
1814
|
-
|
1815
|
-
|
1872
|
+
border-bottom: var(--default-border);
|
1873
|
+
border-style: dashed;
|
1816
1874
|
}
|
1817
1875
|
</style>
|