comand-component-library 3.2.0 → 3.2.2
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.css +1 -1
- package/dist/comand-component-library.umd.min.js +1 -1
- package/package.json +2 -1
- package/src/App.vue +31 -6
- package/src/assets/data/multistep-form-progress-bar.json +63 -33
- package/src/components/CmdBox.vue +10 -5
- package/src/components/CmdFancyBox.vue +1 -1
- package/src/components/CmdListOfLinks.vue +0 -2
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "comand-component-library",
|
3
|
-
"version": "3.2.
|
3
|
+
"version": "3.2.02",
|
4
4
|
"private": false,
|
5
5
|
"scripts": {
|
6
6
|
"serve": "vue-cli-service serve",
|
@@ -27,6 +27,7 @@
|
|
27
27
|
"vuex": "^4.0.2"
|
28
28
|
},
|
29
29
|
"devDependencies": {
|
30
|
+
"@iconify/vue": "^4.0.0",
|
30
31
|
"@vue/cli-plugin-babel": "^4.5.15",
|
31
32
|
"@vue/cli-plugin-eslint": "^4.5.15",
|
32
33
|
"@vue/cli-plugin-router": "^4.5.15",
|
package/src/App.vue
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
<template>
|
3
3
|
<div id="page-wrapper">
|
4
4
|
<a id="anchor-back-to-top"></a>
|
5
|
+
<Icon icon="mdi-light:home" class="icon-" />
|
6
|
+
ICON: <Icon icon="mdi:account-cowboy-hat" />
|
5
7
|
<!-- begin site-header --------------------------------------------------------------------------------------------------------------------------------------------------->
|
6
8
|
<CmdSiteHeader :sticky="true">
|
7
9
|
<template v-slot:top-header>
|
@@ -42,21 +44,22 @@
|
|
42
44
|
<li><a href="#section-google-maps-integration">Google-Maps™-Integration</a></li>
|
43
45
|
<li><a href="#section-image-gallery">Image Gallery</a></li>
|
44
46
|
<li><a href="#section-image-zoom">Image-Zoom</a></li>
|
47
|
+
<li><a href="#section-list-of-links">List Of Links</a></li>
|
45
48
|
<li><a href="#section-login-form">Login Form</a></li>
|
46
49
|
<li><a href="#section-main-navigation">Main-Navigation</a></li>
|
47
50
|
<li><a href="#section-multistep-form-progress-bar">Multistepform-Progressbar</a></li>
|
48
|
-
<li><a href="#section-pager">Pager</a></li>
|
49
51
|
</ul>
|
50
52
|
<ul>
|
53
|
+
<li><a href="#section-pager">Pager</a></li>
|
51
54
|
<li><a href="#section-share-buttons">Share Buttons</a></li>
|
52
55
|
<li><a href="#section-site-header">Site Header</a></li>
|
53
56
|
<li><a href="#section-site-search">Site Search</a></li>
|
54
57
|
<li><a href="#section-slideshow">Slideshow</a></li>
|
55
58
|
<li><a href="#section-system-message">System-Message</a></li>
|
56
59
|
<li><a href="#section-tables">Tables</a></li>
|
57
|
-
<li><a href="#section-tabs">Tabs</a></li>
|
58
60
|
</ul>
|
59
61
|
<ul>
|
62
|
+
<li><a href="#section-tabs">Tabs</a></li>
|
60
63
|
<li><a href="#section-thumbnail-scroller">Thumbnail-Scroller</a></li>
|
61
64
|
<li><a href="#section-toggle-darkmode">ToggleDarkMode</a></li>
|
62
65
|
<li><a href="#section-tooltip">Tooltip</a></li>
|
@@ -845,7 +848,7 @@
|
|
845
848
|
</CmdBox>
|
846
849
|
</div>
|
847
850
|
<div class="grid-small-item">
|
848
|
-
<CmdBox :cmdHeadline="{headlineText: 'Collapsible box', headlineLevel: 4}" :collapsible="true"
|
851
|
+
<CmdBox :cmdHeadline="{headlineText: 'Collapsible box', headlineLevel: 4}" :collapsible="true">
|
849
852
|
<template v-slot:header>
|
850
853
|
<h3>
|
851
854
|
Collapsible box with image
|
@@ -971,8 +974,16 @@
|
|
971
974
|
<h2 class="headline-demopage">List Of Links</h2>
|
972
975
|
<h3>Vertical</h3>
|
973
976
|
<CmdListOfLinks :links="listOfLinksData"/>
|
974
|
-
<h3>Horizontal (aligned left)</h3>
|
975
|
-
<CmdListOfLinks
|
977
|
+
<h3>Horizontal (aligned left, with headline)</h3>
|
978
|
+
<CmdListOfLinks
|
979
|
+
orientation="horizontal"
|
980
|
+
align="left"
|
981
|
+
:links="listOfLinksData"
|
982
|
+
:cmdHeadline="{
|
983
|
+
headlineText: 'Headline',
|
984
|
+
headlineLevel: 5
|
985
|
+
}"
|
986
|
+
/>
|
976
987
|
<h3>Horizontal (aligned center)</h3>
|
977
988
|
<CmdListOfLinks orientation="horizontal" align="center" :links="listOfLinksData"/>
|
978
989
|
<h3>Horizontal (aligned right)</h3>
|
@@ -997,7 +1008,17 @@
|
|
997
1008
|
<CmdWidthLimitationWrapper>
|
998
1009
|
<h2 class="headline-demopage">Multistepform-Progressbar</h2>
|
999
1010
|
<CmdMultistepFormProgressBar
|
1000
|
-
:multisteps="multistepsData"
|
1011
|
+
:multisteps="multistepsData.withIcon"
|
1012
|
+
separatorIconClass="icon-single-arrow-right"
|
1013
|
+
@click="showPageMultistep = $event.index + 1"
|
1014
|
+
/>
|
1015
|
+
<div>
|
1016
|
+
<p>Page {{ showPageMultistep }}</p>
|
1017
|
+
</div>
|
1018
|
+
<h2 class="headline-demopage">Multistepform-Progressbar</h2>
|
1019
|
+
<CmdMultistepFormProgressBar
|
1020
|
+
:showStepNumber="true"
|
1021
|
+
:multisteps="multistepsData.withoutIcon"
|
1001
1022
|
separatorIconClass="icon-single-arrow-right"
|
1002
1023
|
@click="showPageMultistep = $event.index + 1"
|
1003
1024
|
/>
|
@@ -1297,6 +1318,9 @@
|
|
1297
1318
|
</template>
|
1298
1319
|
|
1299
1320
|
<script>
|
1321
|
+
import {Icon} from "@iconify/vue"
|
1322
|
+
|
1323
|
+
|
1300
1324
|
// import used example data
|
1301
1325
|
import accordionData from '@/assets/data/accordion.json'
|
1302
1326
|
import addressData from '@/assets/data/address-data.json'
|
@@ -1380,6 +1404,7 @@ import {localizedTime} from "./components/CmdOpeningHours"
|
|
1380
1404
|
export default {
|
1381
1405
|
name: "App",
|
1382
1406
|
components: {
|
1407
|
+
Icon,
|
1383
1408
|
CmdListOfLinks,
|
1384
1409
|
CmdAddressData,
|
1385
1410
|
CmdBackToTopButton,
|
@@ -1,33 +1,63 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
1
|
+
{
|
2
|
+
"withIcon": [
|
3
|
+
{
|
4
|
+
"type": "href",
|
5
|
+
"path": "#",
|
6
|
+
"text": "Contact",
|
7
|
+
"tooltip": "This is a tooltip for step 1",
|
8
|
+
"iconClass": "icon-address"
|
9
|
+
},
|
10
|
+
{
|
11
|
+
"type": "href",
|
12
|
+
"path": "#",
|
13
|
+
"text": "Settings",
|
14
|
+
"iconClass": "icon-configuration"
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"type": "href",
|
18
|
+
"path": "#",
|
19
|
+
"text": "Attachments",
|
20
|
+
"iconClass": "icon-attachment"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"type": "href",
|
24
|
+
"path": "#",
|
25
|
+
"text": "Terms and Conditions",
|
26
|
+
"iconClass": "icon-section-sign"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"type": "href",
|
30
|
+
"path": "#",
|
31
|
+
"text": "Summary",
|
32
|
+
"iconClass": "icon-rows"
|
33
|
+
}
|
34
|
+
],
|
35
|
+
"withoutIcon": [
|
36
|
+
{
|
37
|
+
"type": "href",
|
38
|
+
"path": "#",
|
39
|
+
"text": "Contact",
|
40
|
+
"tooltip": "This is a tooltip for step 1"
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"type": "href",
|
44
|
+
"path": "#",
|
45
|
+
"text": "Settings"
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"type": "href",
|
49
|
+
"path": "#",
|
50
|
+
"text": "Attachments"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"type": "href",
|
54
|
+
"path": "#",
|
55
|
+
"text": "Terms and Conditions"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"type": "href",
|
59
|
+
"path": "#",
|
60
|
+
"text": "Summary"
|
61
|
+
}
|
62
|
+
]
|
63
|
+
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<template>
|
2
2
|
<!-- begin boxType 'content' -->
|
3
3
|
<div v-if="boxType === 'content'"
|
4
|
-
:class="['cmd-box box content', {open : open, collapsible: collapsible, 'stretch-vertically': stretchVertically, 'stretch-horizontally': stretchHorizontally}]">
|
4
|
+
:class="['cmd-box box content', {open : open, collapsible: collapsible, 'stretch-vertically': stretchVertically && open, 'stretch-horizontally': stretchHorizontally}]">
|
5
5
|
<template v-if="useSlots?.includes('header')">
|
6
6
|
<!-- begin collapsible header with slot -->
|
7
7
|
<div v-if="collapsible" class="box-header">
|
@@ -310,10 +310,15 @@ export default {
|
|
310
310
|
display: flex;
|
311
311
|
}
|
312
312
|
|
313
|
+
&.stretch-vertically {
|
314
|
+
height: 100%;
|
315
|
+
}
|
316
|
+
|
313
317
|
> .cmd-headline {
|
314
318
|
margin-bottom: 0;
|
315
319
|
}
|
316
320
|
|
321
|
+
// collapsible box only
|
317
322
|
&.collapsible {
|
318
323
|
a.box-header {
|
319
324
|
justify-content: space-between;
|
@@ -333,10 +338,7 @@ export default {
|
|
333
338
|
padding: var(--default-padding);
|
334
339
|
}
|
335
340
|
|
336
|
-
|
337
|
-
height: 100%;
|
338
|
-
}
|
339
|
-
|
341
|
+
// boyType === 'content'
|
340
342
|
&.content {
|
341
343
|
> * {
|
342
344
|
> *:last-child {
|
@@ -420,6 +422,7 @@ export default {
|
|
420
422
|
}
|
421
423
|
}
|
422
424
|
|
425
|
+
// boyType === 'product' and boxType === 'user'
|
423
426
|
&.product, &.user {
|
424
427
|
> div {
|
425
428
|
> .cmd-custom-headline {
|
@@ -429,6 +432,7 @@ export default {
|
|
429
432
|
}
|
430
433
|
}
|
431
434
|
|
435
|
+
// boyType === 'product'
|
432
436
|
&.product {
|
433
437
|
text-decoration: none;
|
434
438
|
overflow: hidden;
|
@@ -508,6 +512,7 @@ export default {
|
|
508
512
|
}
|
509
513
|
}
|
510
514
|
|
515
|
+
// boxType === 'user'
|
511
516
|
&.user {
|
512
517
|
> .box-header {
|
513
518
|
--icon-size: 6rem;
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<div v-if="showFancyBox"
|
4
4
|
:class="['cmd-fancybox', {'show-overlay': showOverlay}]"
|
5
5
|
role="dialog"
|
6
|
-
:aria-
|
6
|
+
:aria-label="ariaLabelText">
|
7
7
|
<div class="popup" :class="{'image' : fancyBoxImageUrl || fancyBoxGallery }">
|
8
8
|
<!-- begin print buttons -->
|
9
9
|
<div class="button-wrapper no-flex"
|