comand-component-library 3.2.1 → 3.2.3

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comand-component-library",
3
- "version": "3.2.01",
3
+ "version": "3.2.03",
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&trade;-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>
@@ -370,8 +373,8 @@
370
373
  id="range-value"
371
374
  />
372
375
  </label>
373
- <label for="range-slider" class="hidden">
374
- <span class="label-text">
376
+ <label for="range-slider">
377
+ <span class="label-text hidden">
375
378
  <span>Range Value</span>
376
379
  </span>
377
380
  <input
@@ -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" :stretchVertically="false">
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 orientation="horizontal" align="left" :links="listOfLinksData"/>
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
  />
@@ -1285,7 +1306,7 @@
1285
1306
  <template #privacy-text>
1286
1307
  <p>
1287
1308
  <strong>
1288
- By browsing this web site to accept the usage and saving of anonymous data!
1309
+ By browsing this web site you accept the usage and saving of anonymous data!
1289
1310
  </strong>
1290
1311
  </p>
1291
1312
  </template>
@@ -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,
@@ -41,6 +41,23 @@
41
41
  }
42
42
  ]
43
43
  },
44
+ {
45
+ "type": "href",
46
+ "text": "Entry 3",
47
+ "path": "#",
48
+ "subentries": [
49
+ {
50
+ "type": "href",
51
+ "text": "Entry 3.1",
52
+ "path": ""
53
+ },
54
+ {
55
+ "type": "href",
56
+ "text": "Entry 3.2",
57
+ "path": ""
58
+ }
59
+ ]
60
+ },
44
61
  {
45
62
  "type": "href",
46
63
  "text": "CoManD-CMS",
@@ -1,33 +1,63 @@
1
- [
2
- {
3
- "type": "href",
4
- "path": "",
5
- "text": "Contact",
6
- "tooltip": "This is a tooltip for step 1",
7
- "iconClass": "icon-address"
8
- },
9
- {
10
- "type": "href",
11
- "path": "",
12
- "text": "Settings",
13
- "iconClass": "icon-configuration"
14
- },
15
- {
16
- "type": "href",
17
- "path": "",
18
- "text": "Attachments",
19
- "iconClass": "icon-attachment"
20
- },
21
- {
22
- "type": "href",
23
- "path": "",
24
- "text": "Terms and Conditions",
25
- "iconClass": "icon-section-sign"
26
- },
27
- {
28
- "type": "href",
29
- "path": "",
30
- "text": "Summary",
31
- "iconClass": "icon-rows"
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
+ }
@@ -45,6 +45,7 @@
45
45
  display: flex;
46
46
  flex-direction: column;
47
47
  min-height: 100vh;
48
+ height: 100vh;
48
49
 
49
50
  .cmd-site-footer {
50
51
  margin-top: auto;
@@ -64,7 +65,6 @@ body, .cmd-site-header, .cmd-site-footer, .cmd-copyright-information {
64
65
  /* begin .avoid-scrolling --------------------------------------------------------------------------------------------------------------------------------------------------- */
65
66
  body.avoid-scrolling {
66
67
  overflow: hidden;
67
- height: 100vh;
68
68
  }
69
69
  /* end .avoid-scrolling --------------------------------------------------------------------------------------------------------------------------------------------------- */
70
70
 
@@ -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">
@@ -74,12 +74,14 @@
74
74
  </figure>
75
75
  <p v-else>{{ product.name }}</p>
76
76
 
77
- <div class="ribbon-new" v-if="product.new">
77
+ <!-- begin ribbons -->
78
+ <div v-if="product.new" class="ribbon-new">
78
79
  <span>{{ getMessage("cmdbox.productbox.new") }}</span>
79
80
  </div>
80
81
  <div v-if="product.discount" class="ribbon-discount">
81
82
  <span>{{ product.discount }}</span>
82
83
  </div>
84
+ <!-- end ribbons -->
83
85
  </div>
84
86
  <div class="box-body">
85
87
  <p v-if="product.articleNumber">{{ getMessage("cmdbox.productbox.article_no") }} {{ product.articleNumber }}</p>
@@ -310,10 +312,15 @@ export default {
310
312
  display: flex;
311
313
  }
312
314
 
315
+ &.stretch-vertically {
316
+ height: 100%;
317
+ }
318
+
313
319
  > .cmd-headline {
314
320
  margin-bottom: 0;
315
321
  }
316
322
 
323
+ // collapsible box only
317
324
  &.collapsible {
318
325
  a.box-header {
319
326
  justify-content: space-between;
@@ -333,10 +340,7 @@ export default {
333
340
  padding: var(--default-padding);
334
341
  }
335
342
 
336
- &.stretch-vertically {
337
- height: 100%;
338
- }
339
-
343
+ // boyType === 'content'
340
344
  &.content {
341
345
  > * {
342
346
  > *:last-child {
@@ -420,6 +424,7 @@ export default {
420
424
  }
421
425
  }
422
426
 
427
+ // boyType === 'product' and boxType === 'user'
423
428
  &.product, &.user {
424
429
  > div {
425
430
  > .cmd-custom-headline {
@@ -429,6 +434,7 @@ export default {
429
434
  }
430
435
  }
431
436
 
437
+ // boyType === 'product'
432
438
  &.product {
433
439
  text-decoration: none;
434
440
  overflow: hidden;
@@ -508,6 +514,7 @@ export default {
508
514
  }
509
515
  }
510
516
 
517
+ // boxType === 'user'
511
518
  &.user {
512
519
  > .box-header {
513
520
  --icon-size: 6rem;