comand-component-library 3.1.46 → 3.1.49

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.1.46",
3
+ "version": "3.1.49",
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.34",
21
+ "comand-frontend-framework": "^3.2.39",
22
22
  "core-js": "^3.20.1",
23
23
  "prismjs": "^1.27.0",
24
24
  "vue": "^3.2.31",
@@ -66,7 +66,7 @@
66
66
  </template>
67
67
  <!-- end filters -->
68
68
  </fieldset>
69
- <CmdFormFilters v-if="useFilters" v-model="fakeSelectFilters" :selectedOptionsName="getOptionName"/>
69
+ <CmdFormFilters v-if="useFilters" v-model:value="fakeSelectFilters" :selectedOptionsName="getOptionName"/>
70
70
  </template>
71
71
 
72
72
  <script>
@@ -96,6 +96,9 @@ export default {
96
96
  }
97
97
  },
98
98
  props: {
99
+ /**
100
+ * the native modelValue for v-model given from outside for pre-sets
101
+ */
99
102
  modelValue: {
100
103
  type: Array,
101
104
  required: false
@@ -14,7 +14,7 @@
14
14
  >
15
15
  <span>
16
16
  <!-- begin label -->
17
- <span>
17
+ <span v-if="showLabel">
18
18
  {{ labelText }}<sup v-if="$attrs.required !== undefined">*</sup>
19
19
  </span>
20
20
  <!-- end label -->
@@ -66,7 +66,7 @@
66
66
  <li v-for="(option, index) in selectData" :key="index">
67
67
  <label v-if="type === 'checkboxOptions'" :for="'option-' + (index + 1)" :class="{'active' : modelValue.includes(`${option.value}`)}">
68
68
  <input type="checkbox" :value="option.value" @change="optionSelect"
69
- :checked="modelValue.includes(`${option.value}`)" :id="'option-' + (index + 1)"/>
69
+ :checked="modelValue.includes(option.value)" :id="'option-' + (index + 1)"/>
70
70
  <span>{{ option.text }}</span>
71
71
  </label>
72
72
 
@@ -254,6 +254,13 @@ export default {
254
254
  type: String,
255
255
  required: false
256
256
  },
257
+ /**
258
+ * toggle label visibility
259
+ */
260
+ showLabel: {
261
+ type: Boolean,
262
+ default: true
263
+ },
257
264
  /**
258
265
  * path to flag-files (will be combined with flag isoCode to load svg)
259
266
  */
@@ -5,7 +5,7 @@
5
5
  <!-- end for elements above header -->
6
6
 
7
7
  <!-- begin header-wrapper with slots for logo and other header elements -->
8
- <header :class="useGrid ? 'grid-container-create-columns': 'flex-container'">
8
+ <header v-if="$slots.logo || $slots.header" :class="useGrid ? 'grid-container-create-columns': 'flex-container'">
9
9
  <slot name="logo"></slot>
10
10
  <slot name="header"></slot>
11
11
  </header>
@@ -34,7 +34,7 @@ export default {
34
34
  * properties for CmdMainNavigation-component
35
35
  */
36
36
  cmdMainNavigation: {
37
- type: Array,
37
+ type: Object,
38
38
  required: true
39
39
  },
40
40
  /**
@@ -1,4 +1,9 @@
1
1
  {
2
+ "modelValue": {
3
+ "comments": [
4
+ "the native modelValue for v-model given from outside for pre-sets"
5
+ ]
6
+ },
2
7
  "useFilters": {
3
8
  "comments": [
4
9
  "toggle use of filters (must configured)"
@@ -71,6 +71,11 @@
71
71
  " @requiredForAccessibility: true"
72
72
  ]
73
73
  },
74
+ "showLabel": {
75
+ "comments": [
76
+ "toggle label visibility"
77
+ ]
78
+ },
74
79
  "pathFlags": {
75
80
  "comments": [
76
81
  "path to flag-files (will be combined with flag isoCode to load svg)"
package/src/index.js CHANGED
@@ -3,7 +3,9 @@ import "clickout-event"
3
3
  export { default as CmdAccordion } from '@/components/CmdAccordion'
4
4
  export { default as CmdAddressData } from '@/components/CmdAddressData'
5
5
  export { default as CmdBackToTopButton } from '@/components/CmdBackToTopButton'
6
+ export { default as CmdBankAccountData } from '@/components/CmdBankAccountData'
6
7
  export { default as CmdBox } from '@/components/CmdBox'
8
+ export { default as CmdBoxSiteSearch } from '@/components/CmdBoxSiteSearch'
7
9
  export { default as CmdBoxWrapper } from '@/components/CmdBoxWrapper'
8
10
  export { default as CmdBreadcrumbs } from '@/components/CmdBreadcrumbs'
9
11
  export { default as CmdCompanyLogo } from '@/components/CmdCompanyLogo'
@@ -12,6 +14,7 @@ export { default as CmdCopyrightInformation } from '@/components/CmdCopyrightInf
12
14
  export { default as CmdCustomHeadline } from '@/components/CmdCustomHeadline'
13
15
  export { default as CmdFakeSelect } from '@/components/CmdFakeSelect'
14
16
  export { openFancyBox, default as CmdFancyBox } from '@/components/CmdFancyBox'
17
+ export { default as CmdForm } from '@/components/CmdForm'
15
18
  export { default as CmdFormElement } from '@/components/CmdFormElement'
16
19
  export { default as CmdFormFilters } from '@/components/CmdFormFilters'
17
20
  export { default as CmdGoogleMaps } from '@/components/CmdGoogleMaps'
package/src/main.js CHANGED
@@ -1,7 +1,13 @@
1
- /* import css from comand-frontend-framework */
1
+ /* begin imports css from comand-frontend-framework ---------------------------------------------------------------------------------------- */
2
+ /* import normalize to set same default styles for all browsers */
2
3
  import 'comand-frontend-framework/src/assets/css/normalize.css'
4
+
5
+ /* import framework-styles */
3
6
  import 'comand-frontend-framework/src/assets/css/framework.css'
7
+
8
+ /* import framework-iconfont */
4
9
  import 'comand-frontend-framework/src/assets/css/framework-iconfont.css'
10
+ /* end imports css from comand-frontend-framework ---------------------------------------------------------------------------------------- */
5
11
 
6
12
  import { createApp } from 'vue'
7
13
  // import App from './App.vue'
@@ -15,6 +21,7 @@ import directiveTelephone from "./directives/telephone"
15
21
  // directive to set focus on specific form-elements
16
22
  import directiveFocus from "./directives/focus"
17
23
 
24
+ /* begin imports css from comand-component-library ---------------------------------------------------------------------------------------- */
18
25
  /* import additional iconfont containing company-logos */
19
26
  import '@/assets/styles/logos-iconfont.css'
20
27
 
@@ -24,7 +31,7 @@ import '@/assets/styles/global-styles.scss'
24
31
  /* import css for global transitions */
25
32
  import '@/assets/styles/transitions.scss'
26
33
 
27
- /* import css for your custom styles */
34
+ /* import css-example for your custom styles (contains overwritten primary-color only) */
28
35
  import '@/assets/styles/template.css'
29
36
 
30
37
  /* import css for prism-library (for styling syntax) */
@@ -32,6 +39,7 @@ import "prismjs/themes/prism.css"
32
39
 
33
40
  /* import css for demopage only */
34
41
  import 'comand-frontend-framework/public/demopage-only.css'
42
+ /* end imports css from comand-component-library ---------------------------------------------------------------------------------------- */
35
43
 
36
44
  import router from "./router"
37
45