comand-component-library 4.2.4 → 4.2.6
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 +1568 -1526
- package/dist/media/images/flags/denmark.svg +5 -0
- package/dist/media/images/flags/finland.svg +5 -0
- package/dist/media/images/flags/norway.svg +7 -0
- package/dist/media/images/flags/sweden.svg +5 -0
- package/dist/media/images/user-images/fake-user-1.jpg +0 -0
- package/dist/media/images/user-images/fake-user-10.jpg +0 -0
- package/dist/media/images/user-images/fake-user-11.jpg +0 -0
- package/dist/media/images/user-images/fake-user-12.jpg +0 -0
- package/dist/media/images/user-images/fake-user-13.jpg +0 -0
- package/dist/media/images/user-images/fake-user-14.jpg +0 -0
- package/dist/media/images/user-images/fake-user-15.jpg +0 -0
- package/dist/media/images/user-images/fake-user-16.jpg +0 -0
- package/dist/media/images/user-images/fake-user-2.jpg +0 -0
- package/dist/media/images/user-images/fake-user-3.jpg +0 -0
- package/dist/media/images/user-images/fake-user-4.jpg +0 -0
- package/dist/media/images/user-images/fake-user-5.jpg +0 -0
- package/dist/media/images/user-images/fake-user-6.jpg +0 -0
- package/dist/media/images/user-images/fake-user-7.jpg +0 -0
- package/dist/media/images/user-images/fake-user-8.jpg +0 -0
- package/dist/media/images/user-images/fake-user-9.jpg +0 -0
- package/dist/style.css +1 -1
- package/package.json +8 -5
- package/src/ComponentLibrary.vue +4 -12
- package/src/assets/lists-of-data/dial-codes.json +82 -0
- package/src/assets/lists-of-data/us-cities.json +19 -0
- package/src/components/CmdBox.vue +6 -6
- package/src/components/CmdCookieDisclaimer.vue +5 -5
- package/src/components/CmdCopyrightInformation.vue +4 -4
- package/src/components/CmdFakeSelect.vue +4 -4
- package/src/components/CmdFancyBox.vue +3 -3
- package/src/components/CmdFlexContainer.vue +109 -0
- package/src/components/CmdFormElement.vue +6 -0
- package/src/components/CmdFormFilters.vue +1 -1
- package/src/components/CmdImage.vue +1 -1
- package/src/components/CmdLink.vue +4 -0
- package/src/components/CmdLoginForm.vue +152 -3
- package/src/components/CmdMailToolEntry.vue +1 -1
- package/src/components/CmdMailToolFilter.vue +1 -1
- package/src/components/CmdMainNavigation.vue +1 -1
- package/src/components/CmdMultistepFormProgressBar.vue +13 -12
- package/src/components/CmdOpeningHours.vue +2 -2
- package/src/components/CmdSiteHeader.vue +4 -0
- package/src/components/CmdSlideshow.vue +6 -6
- package/src/components/CmdSmartSearch.vue +1 -1
- package/src/components/CmdSocialNetworks.vue +3 -3
- package/src/components/CmdSocialNetworksItem.vue +2 -2
- package/src/components/CmdSwitchLanguage.vue +1 -1
- package/src/components/CmdSystemMessage.vue +3 -3
- package/src/components/CmdTable.vue +1 -1
- package/src/components/CmdTabs.vue +3 -3
- package/src/components/CmdThumbnailScroller.vue +1 -1
- package/src/components/CmdToggleDarkMode.vue +3 -3
- package/src/components/EditComponentWrapper.vue +5 -5
- /package/src/assets/data/{export-data.js → export-example-data.js} +0 -0
- /package/src/assets/{data/all-countries.json → lists-of-data/countries.json} +0 -0
- /package/src/assets/{data/all-currencies.json → lists-of-data/currencies.json} +0 -0
package/src/ComponentLibrary.vue
CHANGED
@@ -1762,14 +1762,6 @@
|
|
1762
1762
|
<a href="#" class="button small icon-cog" title="Open Component Settings"
|
1763
1763
|
@click.prevent="openSettingsSidebar('CmdOpeningHours')"></a>
|
1764
1764
|
</h2>
|
1765
|
-
<CmdOpeningHours
|
1766
|
-
ref="CmdOpeningHours"
|
1767
|
-
v-bind="cmdOpeningHoursSettingsData"
|
1768
|
-
:openingHours="openingHoursData"
|
1769
|
-
:checkInterval="0"
|
1770
|
-
abbreviationTextAm="h"
|
1771
|
-
abbreviationTextPm="h"
|
1772
|
-
/>
|
1773
1765
|
<CmdOpeningHours
|
1774
1766
|
ref="CmdOpeningHours"
|
1775
1767
|
v-bind="cmdOpeningHoursSettingsData"
|
@@ -2259,7 +2251,7 @@ import tableDataLarge from '@/assets/data/table-large.json'
|
|
2259
2251
|
import thumbnailScrollerImagesData from '@/assets/data/thumbnail-scroller-images.json'
|
2260
2252
|
import thumbnailScrollerTextData from '@/assets/data/thumbnail-scroller-text.json'
|
2261
2253
|
|
2262
|
-
import allCountriesData from '@/assets/data/
|
2254
|
+
import allCountriesData from '@/assets/lists-of-data/countries.json'
|
2263
2255
|
|
2264
2256
|
import packageJson from '../package.json'
|
2265
2257
|
|
@@ -2766,17 +2758,17 @@ export default {
|
|
2766
2758
|
align-items: center;
|
2767
2759
|
|
2768
2760
|
[class*="icon-"] {
|
2769
|
-
color: var(--
|
2761
|
+
color: var(--color-white);
|
2770
2762
|
margin: 0;
|
2771
2763
|
}
|
2772
2764
|
|
2773
2765
|
.button {
|
2774
2766
|
background: none;
|
2775
|
-
border-color: var(--
|
2767
|
+
border-color: var(--color-white);
|
2776
2768
|
align-self: center;
|
2777
2769
|
|
2778
2770
|
&:hover, &:active, &:focus {
|
2779
|
-
background: var(--
|
2771
|
+
background: var(--color-white);
|
2780
2772
|
color: var(--primary-color) !important;
|
2781
2773
|
}
|
2782
2774
|
}
|
@@ -0,0 +1,82 @@
|
|
1
|
+
[
|
2
|
+
{ "text": "+1 (USA/CAN)", "value": "001" },
|
3
|
+
{ "text": "+7 (RUS/KAZ)", "value": "007" },
|
4
|
+
{ "text": "+20 (EGY)", "value": "0020" },
|
5
|
+
{ "text": "+27 (ZAF)", "value": "0027" },
|
6
|
+
{ "text": "+30 (GRC)", "value": "0030" },
|
7
|
+
{ "text": "+31 (NLD)", "value": "0031" },
|
8
|
+
{ "text": "+32 (BEL)", "value": "0032" },
|
9
|
+
{ "text": "+33 (FRA)", "value": "0033" },
|
10
|
+
{ "text": "+34 (ESP)", "value": "0034" },
|
11
|
+
{ "text": "+36 (HUN)", "value": "0036" },
|
12
|
+
{ "text": "+39 (ITA)", "value": "0039" },
|
13
|
+
{ "text": "+40 (ROU)", "value": "0040" },
|
14
|
+
{ "text": "+41 (CHE)", "value": "0041" },
|
15
|
+
{ "text": "+43 (AUT)", "value": "0043" },
|
16
|
+
{ "text": "+44 (GBR)", "value": "0044" },
|
17
|
+
{ "text": "+45 (DNK)", "value": "0045" },
|
18
|
+
{ "text": "+46 (SWE)", "value": "0046" },
|
19
|
+
{ "text": "+47 (NOR)", "value": "0047" },
|
20
|
+
{ "text": "+48 (POL)", "value": "0048" },
|
21
|
+
{ "text": "+49 (GER)", "value": "0049" },
|
22
|
+
{ "text": "+51 (PER)", "value": "0051" },
|
23
|
+
{ "text": "+52 (MEX)", "value": "0052" },
|
24
|
+
{ "text": "+53 (CUB)", "value": "0053" },
|
25
|
+
{ "text": "+54 (ARG)", "value": "0054" },
|
26
|
+
{ "text": "+55 (BRA)", "value": "0055" },
|
27
|
+
{ "text": "+56 (CHL)", "value": "0056" },
|
28
|
+
{ "text": "+57 (COL)", "value": "0057" },
|
29
|
+
{ "text": "+58 (VEN)", "value": "0058" },
|
30
|
+
{ "text": "+60 (MYS)", "value": "0060" },
|
31
|
+
{ "text": "+61 (AUS)", "value": "0061" },
|
32
|
+
{ "text": "+62 (IDN)", "value": "0062" },
|
33
|
+
{ "text": "+63 (PHL)", "value": "0063" },
|
34
|
+
{ "text": "+64 (NZL)", "value": "0064" },
|
35
|
+
{ "text": "+65 (SGP)", "value": "0065" },
|
36
|
+
{ "text": "+66 (THA)", "value": "0066" },
|
37
|
+
{ "text": "+81 (JPN)", "value": "0081" },
|
38
|
+
{ "text": "+82 (KOR)", "value": "0082" },
|
39
|
+
{ "text": "+84 (VNM)", "value": "0084" },
|
40
|
+
{ "text": "+86 (CHN)", "value": "0086" },
|
41
|
+
{ "text": "+90 (TUR)", "value": "0090" },
|
42
|
+
{ "text": "+91 (IND)", "value": "0091" },
|
43
|
+
{ "text": "+92 (PAK)", "value": "0092" },
|
44
|
+
{ "text": "+93 (AFG)", "value": "0093" },
|
45
|
+
{ "text": "+94 (LKA)", "value": "0094" },
|
46
|
+
{ "text": "+95 (MMR)", "value": "0095" },
|
47
|
+
{ "text": "+98 (IRN)", "value": "0098" },
|
48
|
+
{ "text": "+211 (SSD)", "value": "0211" },
|
49
|
+
{ "text": "+212 (MAR)", "value": "0212" },
|
50
|
+
{ "text": "+213 (DZA)", "value": "0213" },
|
51
|
+
{ "text": "+216 (TUN)", "value": "0216" },
|
52
|
+
{ "text": "+218 (LBY)", "value": "0218" },
|
53
|
+
{ "text": "+220 (GMB)", "value": "0220" },
|
54
|
+
{ "text": "+221 (SEN)", "value": "0221" },
|
55
|
+
{ "text": "+222 (MRT)", "value": "0222" },
|
56
|
+
{ "text": "+223 (MLI)", "value": "0223" },
|
57
|
+
{ "text": "+224 (GIN)", "value": "0224" },
|
58
|
+
{ "text": "+225 (CIV)", "value": "0225" },
|
59
|
+
{ "text": "+226 (BFA)", "value": "0226" },
|
60
|
+
{ "text": "+227 (NER)", "value": "0227" },
|
61
|
+
{ "text": "+228 (TGO)", "value": "0228" },
|
62
|
+
{ "text": "+229 (BEN)", "value": "0229" },
|
63
|
+
{ "text": "+230 (MUS)", "value": "0230" },
|
64
|
+
{ "text": "+231 (LBR)", "value": "0231" },
|
65
|
+
{ "text": "+232 (SLE)", "value": "0232" },
|
66
|
+
{ "text": "+233 (GHA)", "value": "0233" },
|
67
|
+
{ "text": "+234 (NGA)", "value": "0234" },
|
68
|
+
{ "text": "+235 (TCD)", "value": "0235" },
|
69
|
+
{ "text": "+236 (CAF)", "value": "0236" },
|
70
|
+
{ "text": "+237 (CMR)", "value": "0237" },
|
71
|
+
{ "text": "+238 (CPV)", "value": "0238" },
|
72
|
+
{ "text": "+239 (STP)", "value": "0239" },
|
73
|
+
{ "text": "+240 (GNQ)", "value": "0240" },
|
74
|
+
{ "text": "+241 (GAB)", "value": "0241" },
|
75
|
+
{ "text": "+242 (COG)", "value": "0242" },
|
76
|
+
{ "text": "+243 (COD)", "value": "0243" },
|
77
|
+
{ "text": "+244 (AGO)", "value": "0244" },
|
78
|
+
{ "text": "+245 (GNB)", "value": "0245" },
|
79
|
+
{ "text": "+246 (IOT)", "value": "0246" },
|
80
|
+
{ "text": "+248 (SYC)", "value": "0248" },
|
81
|
+
{ "text": "+249 (SDN)", "value": "0249" }
|
82
|
+
]
|
@@ -0,0 +1,19 @@
|
|
1
|
+
[
|
2
|
+
{ "text": "Atlanta", "value": "atl" },
|
3
|
+
{ "text": "Boston", "value": "bos" },
|
4
|
+
{ "text": "Chicago", "value": "chi" },
|
5
|
+
{ "text": "Dallas", "value": "dal" },
|
6
|
+
{ "text": "Denver", "value": "den" },
|
7
|
+
{ "text": "Houston", "value": "hou" },
|
8
|
+
{ "text": "Las Vegas", "value": "vegas" },
|
9
|
+
{ "text": "Los Angeles", "value": "la" },
|
10
|
+
{ "text": "Miami", "value": "mia" },
|
11
|
+
{ "text": "New Orleans", "value": "nola" },
|
12
|
+
{ "text": "New York City", "value": "nyc" },
|
13
|
+
{ "text": "Philadelphia", "value": "philly" },
|
14
|
+
{ "text": "Phoenix", "value": "phx" },
|
15
|
+
{ "text": "San Antonio", "value": "satx" },
|
16
|
+
{ "text": "San Francisco", "value": "sf" },
|
17
|
+
{ "text": "Seattle", "value": "sea" },
|
18
|
+
{ "text": "Washington, D.C.", "value": "dc" }
|
19
|
+
]
|
@@ -606,7 +606,7 @@ export default {
|
|
606
606
|
border-radius: var(--box-border-radius);
|
607
607
|
|
608
608
|
&:hover, &:active, &:focus {
|
609
|
-
background: var(--
|
609
|
+
background: var(--color-white);
|
610
610
|
|
611
611
|
* {
|
612
612
|
color: var(--hyperlink-color);
|
@@ -757,7 +757,7 @@ export default {
|
|
757
757
|
|
758
758
|
&:hover, &:active, &:focus {
|
759
759
|
background: var(--primary-color);
|
760
|
-
color: var(--
|
760
|
+
color: var(--color-white);
|
761
761
|
}
|
762
762
|
}
|
763
763
|
|
@@ -804,7 +804,7 @@ export default {
|
|
804
804
|
left: -25%;
|
805
805
|
background: var(--error-color);
|
806
806
|
font-weight: bold;
|
807
|
-
color: var(--
|
807
|
+
color: var(--color-white);
|
808
808
|
text-transform: uppercase;
|
809
809
|
text-align: center;
|
810
810
|
}
|
@@ -894,7 +894,7 @@ export default {
|
|
894
894
|
padding: calc(var(--default-padding) * 3);
|
895
895
|
border-radius: var(--full-circle);
|
896
896
|
background: var(--box-header-background);
|
897
|
-
color: var(--
|
897
|
+
color: var(--color-white);
|
898
898
|
|
899
899
|
& + p, & + figcaption {
|
900
900
|
margin: 0 auto;
|
@@ -977,10 +977,10 @@ export default {
|
|
977
977
|
&:hover, &:active, &:focus {
|
978
978
|
a {
|
979
979
|
background: var(--primary-color);
|
980
|
-
color: var(--
|
980
|
+
color: var(--color-white);
|
981
981
|
|
982
982
|
span, [class*="icon-"] {
|
983
|
-
color: var(--
|
983
|
+
color: var(--color-white);
|
984
984
|
}
|
985
985
|
}
|
986
986
|
}
|
@@ -327,7 +327,7 @@ export default {
|
|
327
327
|
}
|
328
328
|
|
329
329
|
&:has(input:checked) {
|
330
|
-
background: var(--
|
330
|
+
background: var(--color-white);
|
331
331
|
|
332
332
|
span[class*="icon-"] {
|
333
333
|
color: var(--hyperlink-color);
|
@@ -358,24 +358,24 @@ export default {
|
|
358
358
|
background: var(--primary-color);
|
359
359
|
|
360
360
|
label .label-text span, span[class*="icon-"] {
|
361
|
-
color: var(--
|
361
|
+
color: var(--color-white) !important;
|
362
362
|
}
|
363
363
|
}
|
364
364
|
|
365
365
|
span[class*="icon-"] {
|
366
|
-
color: var(--
|
366
|
+
color: var(--color-white);
|
367
367
|
}
|
368
368
|
|
369
369
|
label {
|
370
370
|
padding: calc(var(--default-padding) / 2) var(--default-padding);
|
371
371
|
|
372
372
|
.label-text span {
|
373
|
-
color: var(--
|
373
|
+
color: var(--color-white); /* required to set label-text in header to white */
|
374
374
|
}
|
375
375
|
|
376
376
|
&.disabled {
|
377
377
|
.label-text span {
|
378
|
-
color: var(--
|
378
|
+
color: var(--color-white) !important; /* required to set label-text in header to white */
|
379
379
|
}
|
380
380
|
}
|
381
381
|
|
@@ -13,8 +13,8 @@ export default {
|
|
13
13
|
<style>
|
14
14
|
/* begin cmd-copyright-information ---------------------------------------------------------------------------------------- */
|
15
15
|
.cmd-copyright-information {
|
16
|
-
background: var(--dark-gray);
|
17
|
-
border-top: var(--default-border-width) var(--default-border-style) var(--
|
16
|
+
background: var(--color-dark-gray);
|
17
|
+
border-top: var(--default-border-width) var(--default-border-style) var(--color-white);
|
18
18
|
text-align: center;
|
19
19
|
padding: var(--default-padding);
|
20
20
|
margin-top: auto;
|
@@ -22,11 +22,11 @@ export default {
|
|
22
22
|
|
23
23
|
a {
|
24
24
|
text-decoration: none;
|
25
|
-
color: var(--
|
25
|
+
color: var(--color-white);
|
26
26
|
|
27
27
|
&:hover, &:active, &:focus {
|
28
28
|
text-decoration: underline;
|
29
|
-
color: var(--
|
29
|
+
color: var(--color-white);
|
30
30
|
}
|
31
31
|
}
|
32
32
|
}
|
@@ -572,7 +572,7 @@ export default {
|
|
572
572
|
}
|
573
573
|
|
574
574
|
&:hover, &:active, &:focus {
|
575
|
-
background: var(--
|
575
|
+
background: var(--color-white);
|
576
576
|
border-color: var(--primary-color);
|
577
577
|
|
578
578
|
span, [class*="icon"] {
|
@@ -630,7 +630,7 @@ export default {
|
|
630
630
|
background: var(--primary-color);
|
631
631
|
|
632
632
|
span, [class*="icon"] {
|
633
|
-
color: var(--
|
633
|
+
color: var(--color-white);
|
634
634
|
}
|
635
635
|
}
|
636
636
|
|
@@ -647,7 +647,7 @@ export default {
|
|
647
647
|
}
|
648
648
|
|
649
649
|
&.active {
|
650
|
-
background: var(--light-gray);
|
650
|
+
background: var(--color-light-gray);
|
651
651
|
|
652
652
|
span {
|
653
653
|
color: var(--hyperlink-color);
|
@@ -657,7 +657,7 @@ export default {
|
|
657
657
|
background: var(--primary-color);
|
658
658
|
|
659
659
|
span, [class*="icon"] {
|
660
|
-
color: var(--
|
660
|
+
color: var(--color-white);
|
661
661
|
}
|
662
662
|
}
|
663
663
|
}
|
@@ -624,16 +624,16 @@ export default FancyBox
|
|
624
624
|
}
|
625
625
|
|
626
626
|
&.print-grayscale {
|
627
|
-
background: linear-gradient(135deg, var(--medium-gray) 0%, var(--medium-gray) 50%, var(--
|
627
|
+
background: linear-gradient(135deg, var(--color-medium-gray) 0%, var(--color-medium-gray) 50%, var(--color-white) 50%, var(--color-white) 100%);
|
628
628
|
}
|
629
629
|
|
630
630
|
&.print-color {
|
631
|
-
background: linear-gradient(135deg, #009fe3 0%, #009fe3 25%, #e6007e 25%, #e6007e 50%, #ffed00 50%, #ffed00 50%, #ffed00 75%, var(--medium-gray) 75%, var(--medium-gray) 100%);
|
631
|
+
background: linear-gradient(135deg, #009fe3 0%, #009fe3 25%, #e6007e 25%, #e6007e 50%, #ffed00 50%, #ffed00 50%, #ffed00 75%, var(--color-medium-gray) 75%, var(--color-medium-gray) 100%);
|
632
632
|
}
|
633
633
|
|
634
634
|
&:hover, &:active, &:focus {
|
635
635
|
border: var(--primary-border);
|
636
|
-
background: var(--
|
636
|
+
background: var(--color-white);
|
637
637
|
|
638
638
|
[class*="icon-"] {
|
639
639
|
color: var(--primary-color);
|
@@ -0,0 +1,109 @@
|
|
1
|
+
<template>
|
2
|
+
<div :class="['cmd-flex-container', 'flex-container', htmlClasses]">
|
3
|
+
<!-- begin slot-content -->
|
4
|
+
<slot></slot>
|
5
|
+
<!-- end slot-content -->
|
6
|
+
</div>
|
7
|
+
</template>
|
8
|
+
|
9
|
+
<script>
|
10
|
+
export default {
|
11
|
+
name: "CmdFlexContainer",
|
12
|
+
props: {
|
13
|
+
/**
|
14
|
+
* activate if content should be aligned vertically
|
15
|
+
*
|
16
|
+
* @affectsStyling: true
|
17
|
+
*/
|
18
|
+
alignContentVertical: {
|
19
|
+
type: String,
|
20
|
+
required: false
|
21
|
+
},
|
22
|
+
/**
|
23
|
+
* activate if no gap between items should be used
|
24
|
+
*
|
25
|
+
* @affectsStyling: true
|
26
|
+
*/
|
27
|
+
noGap: {
|
28
|
+
type: Boolean,
|
29
|
+
default: true
|
30
|
+
},
|
31
|
+
/**
|
32
|
+
* activate if items should not behave like flex-items (they are now shrunk to their content)
|
33
|
+
*
|
34
|
+
* @affectsStyling: true
|
35
|
+
*/
|
36
|
+
noFlex: {
|
37
|
+
type: Boolean,
|
38
|
+
default: true
|
39
|
+
},
|
40
|
+
/**
|
41
|
+
* define how the items will be aligned vertically
|
42
|
+
*
|
43
|
+
* attention: if alignContentVertical is activated, this property defines the horizontal alignment
|
44
|
+
*
|
45
|
+
* @allowedValues: top, flex-start, center, flex-end, bottom
|
46
|
+
* @affectsStyling: true
|
47
|
+
*/
|
48
|
+
alignItems: {
|
49
|
+
type: String,
|
50
|
+
required: false,
|
51
|
+
validator(value) {
|
52
|
+
return value === "top" ||
|
53
|
+
value === "flex-start" ||
|
54
|
+
value === "center" ||
|
55
|
+
value === "flex-end" ||
|
56
|
+
value === "bottom"
|
57
|
+
}
|
58
|
+
},
|
59
|
+
/**
|
60
|
+
* define how the items will be aligned/justified horizontally.
|
61
|
+
*
|
62
|
+
* attention: if alignContentVertical is activated, this property defines the vertical alignment/justification
|
63
|
+
*
|
64
|
+
* @allowedValues: top, flex-start, center, flex-end, bottom, space-between, space-around
|
65
|
+
* @affectsStyling: true
|
66
|
+
*/
|
67
|
+
justifyContent: {
|
68
|
+
type: String,
|
69
|
+
required: false,
|
70
|
+
validator(value) {
|
71
|
+
return value === "top" ||
|
72
|
+
value === "flex-start" ||
|
73
|
+
value === "center" ||
|
74
|
+
value === "flex-end" ||
|
75
|
+
value === "bottom" ||
|
76
|
+
value === "space-between" ||
|
77
|
+
value === "space-around"
|
78
|
+
}
|
79
|
+
}
|
80
|
+
},
|
81
|
+
computed: {
|
82
|
+
htmlClasses() {
|
83
|
+
const htmlClasses = []
|
84
|
+
|
85
|
+
if (this.alignContentVertical) {
|
86
|
+
htmlClasses.push("vertical")
|
87
|
+
}
|
88
|
+
if (this.useGap) {
|
89
|
+
htmlClasses.push("no-gap")
|
90
|
+
}
|
91
|
+
if (this.noFlex) {
|
92
|
+
htmlClasses.push("no-flex")
|
93
|
+
}
|
94
|
+
if (this.alignItems) {
|
95
|
+
htmlClasses.push("align-items-" + this.alignItems)
|
96
|
+
}
|
97
|
+
if (this.justifyContent) {
|
98
|
+
htmlClasses.push("justify-content-" + this.justifyContent)
|
99
|
+
}
|
100
|
+
|
101
|
+
return htmlClasses.join(" ")
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
</script>
|
106
|
+
|
107
|
+
<style>
|
108
|
+
|
109
|
+
</style>
|
@@ -116,7 +116,7 @@ export default {
|
|
116
116
|
margin-left: 0;
|
117
117
|
margin-right: var(--default-margin);
|
118
118
|
border: var(--default-border);
|
119
|
-
background: var(--
|
119
|
+
background: var(--color-white);
|
120
120
|
font-size: var(--font-size-small);
|
121
121
|
|
122
122
|
&:hover, &:active, &:focus {
|
@@ -9,6 +9,37 @@
|
|
9
9
|
/>
|
10
10
|
<!-- end CmdHeadline -->
|
11
11
|
|
12
|
+
<!-- begin Google-Login-Button -->
|
13
|
+
<button v-if="enableLoginWithGoogle" class="gsi-material-button">
|
14
|
+
<div class="gsi-material-button-state"></div>
|
15
|
+
<div class="gsi-material-button-content-wrapper">
|
16
|
+
<div class="gsi-material-button-icon">
|
17
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" xmlns:xlink="http://www.w3.org/1999/xlink" style="display: block;">
|
18
|
+
<path fill="#EA4335" d="M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"></path>
|
19
|
+
<path fill="#4285F4" d="M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"></path>
|
20
|
+
<path fill="#FBBC05" d="M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"></path>
|
21
|
+
<path fill="#34A853" d="M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"></path>
|
22
|
+
<path fill="none" d="M0 0h48v48H0z"></path>
|
23
|
+
</svg>
|
24
|
+
</div>
|
25
|
+
<span class="gsi-material-button-contents">Sign in with Google</span>
|
26
|
+
<span style="display: none;">Sign in with Google</span>
|
27
|
+
</div>
|
28
|
+
</button>
|
29
|
+
<!-- end Google-Login-Button -->
|
30
|
+
|
31
|
+
<!-- begin Facebook-Login-Button -->
|
32
|
+
<div v-if="enableLoginWithFacebook"
|
33
|
+
class="fb-login-button"
|
34
|
+
data-width=""
|
35
|
+
data-size=""
|
36
|
+
data-button-type=""
|
37
|
+
data-layout=""
|
38
|
+
data-auto-logout-link="false"
|
39
|
+
data-use-continue-as="false">
|
40
|
+
</div>
|
41
|
+
<!-- end Facebook-Login-Button -->
|
42
|
+
|
12
43
|
<!-- begin form elements -->
|
13
44
|
<div :class="['login-fields flex-container', {'vertical': orientation === 'vertical'}]">
|
14
45
|
<!-- begin CmdFormElement -->
|
@@ -175,6 +206,20 @@ export default {
|
|
175
206
|
}
|
176
207
|
},
|
177
208
|
props: {
|
209
|
+
/**
|
210
|
+
* activate if login with google should be enabled
|
211
|
+
*/
|
212
|
+
enableLoginWithGoogle: {
|
213
|
+
type: Boolean,
|
214
|
+
default: true
|
215
|
+
},
|
216
|
+
/**
|
217
|
+
* activate if login with facebook should be enabled
|
218
|
+
*/
|
219
|
+
enableLoginWithFacebook: {
|
220
|
+
type: Boolean,
|
221
|
+
default: true
|
222
|
+
},
|
178
223
|
/**
|
179
224
|
* value for v-model (modelValue is default name in vue 3)
|
180
225
|
*/
|
@@ -507,16 +552,120 @@ export default {
|
|
507
552
|
align-items: center;
|
508
553
|
|
509
554
|
> a:not(.button) {
|
510
|
-
display:
|
511
|
-
align-items: center;
|
555
|
+
display: block;
|
512
556
|
text-decoration: none;
|
513
|
-
flex: none;
|
514
557
|
}
|
515
558
|
|
516
559
|
> .button {
|
517
560
|
margin-left: auto;
|
518
561
|
}
|
519
562
|
}
|
563
|
+
|
564
|
+
/* begin google-login-button */
|
565
|
+
.gsi-material-button {
|
566
|
+
-moz-user-select: none;
|
567
|
+
-webkit-user-select: none;
|
568
|
+
-ms-user-select: none;
|
569
|
+
-webkit-appearance: none;
|
570
|
+
background-color: WHITE;
|
571
|
+
background-image: none;
|
572
|
+
border: 1px solid #747775;
|
573
|
+
-webkit-border-radius: 4px;
|
574
|
+
border-radius: 4px;
|
575
|
+
-webkit-box-sizing: border-box;
|
576
|
+
box-sizing: border-box;
|
577
|
+
color: #1f1f1f;
|
578
|
+
cursor: pointer;
|
579
|
+
font-family: 'Roboto', arial, sans-serif;
|
580
|
+
font-size: 14px;
|
581
|
+
height: 40px;
|
582
|
+
letter-spacing: 0.25px;
|
583
|
+
outline: none;
|
584
|
+
overflow: hidden;
|
585
|
+
padding: 0 12px;
|
586
|
+
position: relative;
|
587
|
+
text-align: center;
|
588
|
+
-webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
|
589
|
+
transition: background-color .218s, border-color .218s, box-shadow .218s;
|
590
|
+
vertical-align: middle;
|
591
|
+
white-space: nowrap;
|
592
|
+
width: auto;
|
593
|
+
max-width: 400px;
|
594
|
+
min-width: min-content;
|
595
|
+
}
|
596
|
+
|
597
|
+
.gsi-material-button .gsi-material-button-icon {
|
598
|
+
height: 20px;
|
599
|
+
margin-right: 12px;
|
600
|
+
min-width: 20px;
|
601
|
+
width: 20px;
|
602
|
+
}
|
603
|
+
|
604
|
+
.gsi-material-button .gsi-material-button-content-wrapper {
|
605
|
+
-webkit-align-items: center;
|
606
|
+
align-items: center;
|
607
|
+
display: flex;
|
608
|
+
-webkit-flex-direction: row;
|
609
|
+
flex-direction: row;
|
610
|
+
-webkit-flex-wrap: nowrap;
|
611
|
+
flex-wrap: nowrap;
|
612
|
+
height: 100%;
|
613
|
+
justify-content: space-between;
|
614
|
+
position: relative;
|
615
|
+
width: 100%;
|
616
|
+
}
|
617
|
+
|
618
|
+
.gsi-material-button .gsi-material-button-contents {
|
619
|
+
-webkit-flex-grow: 1;
|
620
|
+
flex-grow: 1;
|
621
|
+
font-family: 'Roboto', arial, sans-serif;
|
622
|
+
font-weight: 500;
|
623
|
+
overflow: hidden;
|
624
|
+
text-overflow: ellipsis;
|
625
|
+
vertical-align: top;
|
626
|
+
}
|
627
|
+
|
628
|
+
.gsi-material-button .gsi-material-button-state {
|
629
|
+
-webkit-transition: opacity .218s;
|
630
|
+
transition: opacity .218s;
|
631
|
+
bottom: 0;
|
632
|
+
left: 0;
|
633
|
+
opacity: 0;
|
634
|
+
position: absolute;
|
635
|
+
right: 0;
|
636
|
+
top: 0;
|
637
|
+
}
|
638
|
+
|
639
|
+
.gsi-material-button:disabled {
|
640
|
+
cursor: default;
|
641
|
+
background-color: #ffffff61;
|
642
|
+
border-color: #1f1f1f1f;
|
643
|
+
}
|
644
|
+
|
645
|
+
.gsi-material-button:disabled .gsi-material-button-contents {
|
646
|
+
opacity: 38%;
|
647
|
+
}
|
648
|
+
|
649
|
+
.gsi-material-button:disabled .gsi-material-button-icon {
|
650
|
+
opacity: 38%;
|
651
|
+
}
|
652
|
+
|
653
|
+
.gsi-material-button:not(:disabled):active .gsi-material-button-state,
|
654
|
+
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
|
655
|
+
background-color: #303030;
|
656
|
+
opacity: 12%;
|
657
|
+
}
|
658
|
+
|
659
|
+
.gsi-material-button:not(:disabled):hover {
|
660
|
+
-webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
|
661
|
+
box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
|
662
|
+
}
|
663
|
+
|
664
|
+
.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
|
665
|
+
background-color: #303030;
|
666
|
+
opacity: 8%;
|
667
|
+
}
|
668
|
+
/* end google-login-button */
|
520
669
|
}
|
521
670
|
/* end cmd-login-form ---------------------------------------------------------------------------------------- */
|
522
671
|
</style>
|