comand-component-library 4.3.20 → 4.3.22
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.js +1808 -1663
- package/package.json +2 -2
- package/src/ComponentLibrary.vue +20 -20
- package/src/assets/data/accordion-data.json +40 -7
- package/src/assets/data/footnote.json +18 -8
- package/src/assets/data/listOfComponents.json +1 -0
- package/src/componentSettingsDataAndControls.vue +37 -2
- package/src/components/CmdAccordion.vue +56 -6
- package/src/components/CmdAccordionsWrapper.vue +59 -44
- package/src/components/CmdAddressData.vue +8 -1
- package/src/components/CmdBankAccountData.vue +8 -1
- package/src/components/CmdFootnote.vue +2 -0
- package/src/components/CmdList.vue +1 -1
- package/src/components/CmdWidthLimitationWrapper.vue +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "comand-component-library",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.22",
|
|
4
4
|
"license": "GPL-3.0-only",
|
|
5
5
|
"author": "CoManD-UI",
|
|
6
6
|
"private": false,
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"clickout-event": "^1.1.2",
|
|
32
|
-
"comand-frontend-framework": "^4.3.
|
|
32
|
+
"comand-frontend-framework": "^4.3.43",
|
|
33
33
|
"comand-ui-iconfonts": "^1.0.19",
|
|
34
34
|
"core-js": "^3.20.1",
|
|
35
35
|
"prismjs": "^1.27.0",
|
package/src/ComponentLibrary.vue
CHANGED
|
@@ -175,38 +175,41 @@
|
|
|
175
175
|
<a href="#" class="button small icon-cog" title="Open Component Settings"
|
|
176
176
|
@click.prevent="openSettingsSidebar('CmdAccordion')"></a>
|
|
177
177
|
</h2>
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
178
|
+
<CmdAccordion ref="CmdAccordion" open :name="accordionData.name"
|
|
179
|
+
:cmdHeadline="{ headlineText: 'Summary (no highlighting)' }"
|
|
180
|
+
:textAccordionBody="accordionData[0].textAccordionBody" v-bind="cmdAccordionSettingsData" />
|
|
181
181
|
<CmdAccordion highlightLevel="primary" :name="accordionData.name"
|
|
182
182
|
:cmdHeadline="{ headlineText: 'Summary (primary highlighting)' }"
|
|
183
|
-
:textAccordionBody="accordionData.textAccordionBody" />
|
|
183
|
+
:textAccordionBody="accordionData[1].textAccordionBody" />
|
|
184
184
|
<CmdAccordion highlightLevel="secondary" :name="accordionData.name"
|
|
185
185
|
:cmdHeadline="{ headlineText: 'Summary (secondary highlighting)' }"
|
|
186
|
-
:textAccordionBody="accordionData.textAccordionBody" />
|
|
186
|
+
:textAccordionBody="accordionData[2].textAccordionBody" />
|
|
187
187
|
<CmdAccordion highlightLevel="tertiary" :name="accordionData.name"
|
|
188
188
|
:cmdHeadline="{ headlineText: 'Summary (tertiary highlighting)' }"
|
|
189
|
-
:textAccordionBody="accordionData.textAccordionBody" />
|
|
189
|
+
:textAccordionBody="accordionData[3].textAccordionBody" />
|
|
190
190
|
</CmdWidthLimitationWrapper>
|
|
191
191
|
<!-- end accordion --------------------------------------------------------------------------------------------------->
|
|
192
192
|
|
|
193
193
|
<!-- begin accordions-wrapper --------------------------------------------------------------------------------------------------->
|
|
194
194
|
<CmdWidthLimitationWrapper>
|
|
195
|
-
<h2 class="headline-demopage" id="section-
|
|
195
|
+
<h2 class="headline-demopage" id="section-accordions-wrapper">
|
|
196
196
|
<span>Accordions-Wrapper</span>
|
|
197
197
|
<a href="#" class="button small icon-cog" title="Open Component Settings"
|
|
198
198
|
@click.prevent="openSettingsSidebar('CmdAccordionsWrapper')"></a>
|
|
199
199
|
</h2>
|
|
200
|
-
<CmdAccordionsWrapper
|
|
200
|
+
<CmdAccordionsWrapper ref="CmdAccordionsWrapper" v-bind="cmdAccordionsWrapperSettingsData">
|
|
201
201
|
<template v-slot="slotProps">
|
|
202
202
|
<CmdAccordion
|
|
203
|
-
v-for="(accordion, index) in
|
|
203
|
+
v-for="(accordion, index) in accordionData"
|
|
204
204
|
:key="index"
|
|
205
205
|
open
|
|
206
|
-
:
|
|
207
|
-
:cmdHeadline="{ headlineText:
|
|
206
|
+
:accordionName="accordion.name"
|
|
207
|
+
:cmdHeadline="{ headlineText: accordion.cmdHeadline.headlineText }"
|
|
208
208
|
:rowView="slotProps.rowView"
|
|
209
|
-
:
|
|
209
|
+
:openAccordionHasFullWidth="slotProps.fullWidth"
|
|
210
|
+
:textAccordionBody="accordion.textAccordionBody"
|
|
211
|
+
:allowMultipleExpandedBoxes="slotProps.allowMultipleExpandedBoxes"
|
|
212
|
+
:summaryWritingMode="slotProps.summaryWritingMode"
|
|
210
213
|
/>
|
|
211
214
|
</template>
|
|
212
215
|
</CmdAccordionsWrapper>
|
|
@@ -1011,7 +1014,7 @@
|
|
|
1011
1014
|
</CmdWidthLimitationWrapper>
|
|
1012
1015
|
<!-- end flexible-scroll-container --------------------------------------------------------------------------------------------------->
|
|
1013
1016
|
|
|
1014
|
-
<!-- begin
|
|
1017
|
+
<!-- begin footnotes --------------------------------------------------------------------------------------------------->
|
|
1015
1018
|
<CmdWidthLimitationWrapper>
|
|
1016
1019
|
<h2 class="headline-demopage" id="section-footnote">
|
|
1017
1020
|
<span>Footnotes</span>
|
|
@@ -1021,18 +1024,15 @@
|
|
|
1021
1024
|
<CmdFootnote
|
|
1022
1025
|
ref="CmdFootnote"
|
|
1023
1026
|
v-bind="cmdFootnoteSettingsData"
|
|
1024
|
-
:
|
|
1025
|
-
descriptionTermType="asterisk"
|
|
1026
|
-
:descriptionData="footnoteData.descriptionData"
|
|
1027
|
+
:descriptionData="footnoteData[0].descriptionData"
|
|
1027
1028
|
/>
|
|
1028
1029
|
<CmdFootnote
|
|
1029
|
-
:
|
|
1030
|
-
descriptionTermType="
|
|
1031
|
-
:descriptionData="footnoteData.descriptionData"
|
|
1030
|
+
:descriptionData="footnoteData[1].descriptionData"
|
|
1031
|
+
:descriptionTermType="footnoteData[1].descriptionTermType"
|
|
1032
1032
|
/>
|
|
1033
1033
|
|
|
1034
1034
|
</CmdWidthLimitationWrapper>
|
|
1035
|
-
<!-- end
|
|
1035
|
+
<!-- end footnotes --------------------------------------------------------------------------------------------------->
|
|
1036
1036
|
|
|
1037
1037
|
<!-- begin forms --------------------------------------------------------------------------------------------------->
|
|
1038
1038
|
<CmdWidthLimitationWrapper>
|
|
@@ -1,8 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
"
|
|
5
|
-
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "accordion-name",
|
|
4
|
+
"cmdHeadline": {
|
|
5
|
+
"headlineText": "Summary #1",
|
|
6
|
+
"headlineLevel": 4
|
|
7
|
+
},
|
|
8
|
+
"textAccordionBody": "This is text for accordion body #1!"
|
|
6
9
|
},
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
{
|
|
11
|
+
"name": "accordion-name",
|
|
12
|
+
"cmdHeadline": {
|
|
13
|
+
"headlineText": "Summary #2",
|
|
14
|
+
"headlineLevel": 4
|
|
15
|
+
},
|
|
16
|
+
"textAccordionBody": "This is text for accordion body #2!"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "accordion-name",
|
|
20
|
+
"cmdHeadline": {
|
|
21
|
+
"headlineText": "Summary #3",
|
|
22
|
+
"headlineLevel": 4
|
|
23
|
+
},
|
|
24
|
+
"textAccordionBody": "This is text for accordion body #3!"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "accordion-name",
|
|
28
|
+
"cmdHeadline": {
|
|
29
|
+
"headlineText": "Summary #4",
|
|
30
|
+
"headlineLevel": 4
|
|
31
|
+
},
|
|
32
|
+
"textAccordionBody": "This is text for accordion body #4!"
|
|
33
|
+
}, {
|
|
34
|
+
"name": "accordion-name",
|
|
35
|
+
"cmdHeadline": {
|
|
36
|
+
"headlineText": "Summary #5",
|
|
37
|
+
"headlineLevel": 4
|
|
38
|
+
},
|
|
39
|
+
"textAccordionBody": "This is text for accordion body #5!"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"descriptionTermType": "asterisk",
|
|
4
|
+
"descriptionData": [
|
|
5
|
+
"Footnotetext #1",
|
|
6
|
+
"Footnotetext #2",
|
|
7
|
+
"Footnotetext #3"
|
|
8
|
+
]
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"descriptionTermType": "number",
|
|
12
|
+
"descriptionData": [
|
|
13
|
+
"Footnotetext #1",
|
|
14
|
+
"Footnotetext #2",
|
|
15
|
+
"Footnotetext #3"
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
]
|
|
@@ -11,6 +11,16 @@ export default {
|
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
cmdAccordionSettingsControls: {
|
|
14
|
+
summaryWritingMode: [
|
|
15
|
+
{
|
|
16
|
+
text: "horizontal (default)",
|
|
17
|
+
value: "horizontal"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
text: "vertical",
|
|
21
|
+
value: "vertical"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
14
24
|
highlightLevel: [
|
|
15
25
|
{
|
|
16
26
|
text: "none (default)",
|
|
@@ -30,6 +40,29 @@ export default {
|
|
|
30
40
|
}
|
|
31
41
|
]
|
|
32
42
|
},
|
|
43
|
+
cmdAccordionsWrapperSettingsData: {
|
|
44
|
+
cmdHeadline: {
|
|
45
|
+
headlineText: "Accordions provided by Slot",
|
|
46
|
+
headlineLevel: 4
|
|
47
|
+
},
|
|
48
|
+
useGap: true,
|
|
49
|
+
useRowViewAsDefault: false,
|
|
50
|
+
fullWidth: true,
|
|
51
|
+
allowUserToToggleOrientation: true,
|
|
52
|
+
allowMultipleExpandedBoxes: false
|
|
53
|
+
},
|
|
54
|
+
cmdAccordionsWrapperSettingsControls: {
|
|
55
|
+
summaryWritingMode: [
|
|
56
|
+
{
|
|
57
|
+
text: "horizontal (default)",
|
|
58
|
+
value: "horizontal"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
text: "vertical",
|
|
62
|
+
value: "vertical"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
},
|
|
33
66
|
cmdAddressDataSettingsData: {
|
|
34
67
|
cmdHeadline: {
|
|
35
68
|
headlineText: "Address Data",
|
|
@@ -40,7 +73,8 @@ export default {
|
|
|
40
73
|
showLabelTexts: false,
|
|
41
74
|
showIconsOnly: false,
|
|
42
75
|
showLabels: true,
|
|
43
|
-
showCityBeforeZip: false
|
|
76
|
+
showCityBeforeZip: false,
|
|
77
|
+
styleAsBox: false
|
|
44
78
|
},
|
|
45
79
|
cmdAddressDataSettingsControls: {
|
|
46
80
|
contentOrientation: [
|
|
@@ -60,7 +94,8 @@ export default {
|
|
|
60
94
|
headlineLevel: 3
|
|
61
95
|
},
|
|
62
96
|
allowCopyByClick: false,
|
|
63
|
-
additionalInformation: ""
|
|
97
|
+
additionalInformation: "",
|
|
98
|
+
styleAsBox: false
|
|
64
99
|
},
|
|
65
100
|
cmdBreadcrumbsSettingsData: {
|
|
66
101
|
breadcrumbLabel: "You are here:",
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<!-- begin CmdAccordion ---------------------------------------------------------------------------------------- -->
|
|
3
|
-
<details ref="cmdAccordion"
|
|
4
|
-
|
|
3
|
+
<details ref="cmdAccordion"
|
|
4
|
+
:class="['cmd-accordion', highlightLevel, { 'flex-container no-gap' : rowView, 'stretch-to-full-width': openAccordionHasFullWidth }]"
|
|
5
|
+
:name="generateAccordionName"
|
|
6
|
+
>
|
|
7
|
+
<summary :class="{'writing-mode-vertical' : summaryWritingMode === 'vertical'}">
|
|
5
8
|
<!--
|
|
6
9
|
<span :class="[cmdIconClosed.iconClass, 'closed']" :title="cmdIconClosed.tooltip"></span>
|
|
7
10
|
<span :class="[cmdIconOpen.iconClass, 'open']" :title="cmdIconOpen.tooltip"></span>
|
|
@@ -26,6 +29,8 @@
|
|
|
26
29
|
</template>
|
|
27
30
|
|
|
28
31
|
<script>
|
|
32
|
+
import {createUuid} from "../utils/common.js"
|
|
33
|
+
|
|
29
34
|
export default {
|
|
30
35
|
name: "CmdAccordion",
|
|
31
36
|
mounted() {
|
|
@@ -33,7 +38,7 @@ export default {
|
|
|
33
38
|
},
|
|
34
39
|
props: {
|
|
35
40
|
/**
|
|
36
|
-
* arranges
|
|
41
|
+
* arranges accordion-content in a row
|
|
37
42
|
*
|
|
38
43
|
* @affectsStyling: true
|
|
39
44
|
*/
|
|
@@ -41,6 +46,21 @@ export default {
|
|
|
41
46
|
type: Boolean,
|
|
42
47
|
default: false
|
|
43
48
|
},
|
|
49
|
+
/**
|
|
50
|
+
* set direction of text for summary
|
|
51
|
+
*
|
|
52
|
+
* rowView-property must be true
|
|
53
|
+
*
|
|
54
|
+
* @allowedValues: "horizontal", "vertical"
|
|
55
|
+
*/
|
|
56
|
+
summaryWritingMode: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: "horizontal",
|
|
59
|
+
validator(value) {
|
|
60
|
+
return value === "horizontal",
|
|
61
|
+
value === "vertical"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
44
64
|
/**
|
|
45
65
|
* set highlight-level for headline
|
|
46
66
|
*
|
|
@@ -63,6 +83,15 @@ export default {
|
|
|
63
83
|
type: String,
|
|
64
84
|
required: false
|
|
65
85
|
},
|
|
86
|
+
/**
|
|
87
|
+
* open accordion uses remaining space in accordions-wrapper
|
|
88
|
+
*
|
|
89
|
+
* rowView must be false
|
|
90
|
+
*/
|
|
91
|
+
openAccordionHasFullWidth: {
|
|
92
|
+
type: Boolean,
|
|
93
|
+
default: true
|
|
94
|
+
},
|
|
66
95
|
/**
|
|
67
96
|
* properties for CmdIcon-component if accordion is collapsed/closed
|
|
68
97
|
*/
|
|
@@ -115,9 +144,18 @@ export default {
|
|
|
115
144
|
* accordion-name is required if multiple-accrdion-boxes should be connect (name must be identical)
|
|
116
145
|
*/
|
|
117
146
|
accordionName: {
|
|
118
|
-
type:
|
|
147
|
+
type: String,
|
|
119
148
|
required: false
|
|
120
149
|
},
|
|
150
|
+
/**
|
|
151
|
+
* multiple boxes can be expanded if activated
|
|
152
|
+
*
|
|
153
|
+
* accordionName-property must have different value or kept empty for each accordion-box in wrapper
|
|
154
|
+
*/
|
|
155
|
+
allowMultipleExpandedBoxes: {
|
|
156
|
+
type: Boolean,
|
|
157
|
+
default: false
|
|
158
|
+
},
|
|
121
159
|
/**
|
|
122
160
|
* properties for CmdHeadline-component
|
|
123
161
|
*/
|
|
@@ -127,6 +165,9 @@ export default {
|
|
|
127
165
|
}
|
|
128
166
|
},
|
|
129
167
|
computed: {
|
|
168
|
+
generateAccordionName() {
|
|
169
|
+
return this.allowMultipleExpandedBoxes ? this.accordionName + "-" + createUuid() : this.accordionName
|
|
170
|
+
},
|
|
130
171
|
cmdHeadlineProperties() {
|
|
131
172
|
return {
|
|
132
173
|
headlineLevel: 4,
|
|
@@ -155,12 +196,16 @@ export default {
|
|
|
155
196
|
isOpen() {
|
|
156
197
|
return this.$refs.cmdAccordion?.open + "test"
|
|
157
198
|
}
|
|
199
|
+
},
|
|
200
|
+
mounted() {
|
|
201
|
+
this.isOpen()
|
|
158
202
|
}
|
|
159
203
|
}
|
|
160
204
|
</script>
|
|
161
205
|
|
|
162
206
|
<style>
|
|
163
207
|
.cmd-accordion {
|
|
208
|
+
/* begin rowView */
|
|
164
209
|
&.flex-container {
|
|
165
210
|
flex-wrap: nowrap;
|
|
166
211
|
align-items: center;
|
|
@@ -173,13 +218,18 @@ export default {
|
|
|
173
218
|
summary {
|
|
174
219
|
border: 0;
|
|
175
220
|
}
|
|
221
|
+
|
|
222
|
+
&.stretch-to-full-width {
|
|
223
|
+
flex: 1; /* stretch accordion-body over remaining (horizontal) space in accordion-wrapper */
|
|
224
|
+
}
|
|
176
225
|
}
|
|
177
226
|
|
|
178
|
-
summary {
|
|
227
|
+
summary.writing-mode-vertical {
|
|
179
228
|
writing-mode: vertical-rl;
|
|
180
229
|
transform: rotate(180deg);
|
|
181
|
-
}
|
|
230
|
+
}
|
|
182
231
|
}
|
|
232
|
+
/* end rowView */
|
|
183
233
|
|
|
184
234
|
summary {
|
|
185
235
|
.cmd-headline {
|
|
@@ -2,22 +2,20 @@
|
|
|
2
2
|
<!-- begin CmdBoxWrapper ---------------------------------------------------------------------------------------- -->
|
|
3
3
|
<div class="cmd-accordions-wrapper">
|
|
4
4
|
<div v-if="cmdHeadline.headlineText || allowUserToToggleOrientation" class="flex-container headline-wrapper">
|
|
5
|
-
<!-- begin CmdHeadline -->
|
|
6
5
|
<CmdHeadline v-if="cmdHeadline.headlineText" v-bind="cmdHeadline" />
|
|
7
|
-
<!-- end CmdHeadline -->
|
|
8
6
|
|
|
7
|
+
<!-- begin toggle orientation TODO: replace by CmdLink -->
|
|
9
8
|
<div v-if="allowUserToToggleOrientation" class="options-wrapper">
|
|
10
|
-
<a href="#" @click.prevent="toggleOrientation" :title="rowView ? iconRowView.tooltip : iconColumnView.tooltip">
|
|
11
|
-
<!-- begin CmdIcon -->
|
|
9
|
+
<a href="#" @click.prevent="toggleOrientation" class="toggle-orientation" :title="rowView ? iconRowView.tooltip : iconColumnView.tooltip">
|
|
12
10
|
<CmdIcon :iconClass="rowView ? iconColumnView.iconClass : iconRowView.iconClass" :type="rowView ? iconColumnView.iconType : iconRowView.iconType" />
|
|
13
|
-
<!-- end CmdIcon -->
|
|
14
11
|
</a>
|
|
15
12
|
</div>
|
|
13
|
+
<!-- begin end orientation -->
|
|
16
14
|
</div>
|
|
17
|
-
<div :class="['inner-accordions-wrapper',
|
|
15
|
+
<div :class="['inner-accordions-wrapper flex-container',
|
|
18
16
|
{
|
|
19
17
|
'no-gap': !useGap,
|
|
20
|
-
'flex-
|
|
18
|
+
'flex-direction-column' : !rowView
|
|
21
19
|
}
|
|
22
20
|
]">
|
|
23
21
|
<slot
|
|
@@ -25,7 +23,9 @@
|
|
|
25
23
|
:boxToggled="boxToggled"
|
|
26
24
|
:boxIsOpen="boxIsOpen"
|
|
27
25
|
:rowView="rowView"
|
|
28
|
-
|
|
26
|
+
:openAccordionHasFullWidth="fullWidth"
|
|
27
|
+
:summaryWritingMode="summaryWritingMode"
|
|
28
|
+
:allowMultipleExpandedBoxes="allowMultipleExpandedBoxes"
|
|
29
29
|
>
|
|
30
30
|
</slot>
|
|
31
31
|
</div>
|
|
@@ -54,7 +54,6 @@ export default {
|
|
|
54
54
|
type: Array,
|
|
55
55
|
required: false
|
|
56
56
|
},
|
|
57
|
-
|
|
58
57
|
/**
|
|
59
58
|
* activate if a gap between boxes should be used
|
|
60
59
|
*/
|
|
@@ -69,6 +68,30 @@ export default {
|
|
|
69
68
|
type: Boolean,
|
|
70
69
|
default: false
|
|
71
70
|
},
|
|
71
|
+
/**
|
|
72
|
+
* open accordion uses remaining space in accordions-wrapper
|
|
73
|
+
*
|
|
74
|
+
* rowView must be false
|
|
75
|
+
*/
|
|
76
|
+
fullWidth: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
default: true
|
|
79
|
+
},
|
|
80
|
+
/**
|
|
81
|
+
* set direction of text for summary
|
|
82
|
+
*
|
|
83
|
+
* rowView-property must be true
|
|
84
|
+
*
|
|
85
|
+
* @allowedValues: "horizontal", "vertical"
|
|
86
|
+
*/
|
|
87
|
+
summaryWritingMode: {
|
|
88
|
+
type: String,
|
|
89
|
+
default: "horizontal",
|
|
90
|
+
validator(value) {
|
|
91
|
+
return value === "horizontal",
|
|
92
|
+
value === "vertical"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
72
95
|
/**
|
|
73
96
|
* activate if user can toggle grid- and row-orientation by himself
|
|
74
97
|
*/
|
|
@@ -149,40 +172,9 @@ export default {
|
|
|
149
172
|
methods: {
|
|
150
173
|
toggleOrientation() {
|
|
151
174
|
this.rowView = !this.rowView
|
|
152
|
-
this.oneBoxPerRow = this.rowView
|
|
153
|
-
},
|
|
154
|
-
boxIsOpen(index) {
|
|
155
|
-
return this.currentOpenBox.includes(index)
|
|
156
|
-
},
|
|
157
|
-
toggleCollapsingBoxes() {
|
|
158
|
-
this.collapsingBoxesOpen = !this.collapsingBoxesOpen
|
|
159
|
-
},
|
|
160
|
-
boxToggled(boxIndex, open) {
|
|
161
|
-
if(this.allowMultipleExpandedBoxes) {
|
|
162
|
-
if(open) {
|
|
163
|
-
this.currentOpenBox.push(boxIndex)
|
|
164
|
-
} else {
|
|
165
|
-
// remove boxIndex from array to close specific box
|
|
166
|
-
let position = this.currentOpenBox.indexOf(boxIndex)
|
|
167
|
-
this.currentOpenBox.splice(position, 1)
|
|
168
|
-
}
|
|
169
|
-
} else {
|
|
170
|
-
this.currentOpenBox = []
|
|
171
|
-
|
|
172
|
-
// add current boxIndex to array to open specific box
|
|
173
|
-
if(open) {
|
|
174
|
-
this.currentOpenBox.push(boxIndex)
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
175
|
}
|
|
178
176
|
},
|
|
179
177
|
watch: {
|
|
180
|
-
openBoxesByDefault: {
|
|
181
|
-
handler() {
|
|
182
|
-
this.currentOpenBox = [...this.openBoxesByDefault || []]
|
|
183
|
-
},
|
|
184
|
-
immediate: true
|
|
185
|
-
},
|
|
186
178
|
useRowViewAsDefault: {
|
|
187
179
|
handler() {
|
|
188
180
|
this.oneBoxPerRow = this.useRowViewAsDefault
|
|
@@ -194,8 +186,17 @@ export default {
|
|
|
194
186
|
</script>
|
|
195
187
|
|
|
196
188
|
<style>
|
|
197
|
-
/* begin cmd-
|
|
189
|
+
/* begin cmd-accordions-wrapper ---------------------------------------------------------------------------------------- */
|
|
198
190
|
.cmd-accordions-wrapper {
|
|
191
|
+
.headline-wrapper {
|
|
192
|
+
align-items: center;
|
|
193
|
+
|
|
194
|
+
.options-wrapper {
|
|
195
|
+
flex: none;
|
|
196
|
+
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
199
200
|
.inner-accordions-wrapper {
|
|
200
201
|
.cmd-accordion {
|
|
201
202
|
flex: none;
|
|
@@ -204,6 +205,20 @@ export default {
|
|
|
204
205
|
}
|
|
205
206
|
</style>
|
|
206
207
|
|
|
207
|
-
<style>
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
<style lang="scss">
|
|
209
|
+
@import '../assets/styles/variables';
|
|
210
|
+
|
|
211
|
+
@media only screen and (max-width: $medium-max-width) {
|
|
212
|
+
.cmd-accordions-wrapper {
|
|
213
|
+
.toggle-orientation {
|
|
214
|
+
display: none; /* hide button, because accordions are displayed vertically only at this screen-resolution */
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.inner-accordions-wrapper {
|
|
218
|
+
flex-direction: column; /* force accordions to be displayed vertically */
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
/* end cmd-accordions-wrapper ---------------------------------------------------------------------------------------- */
|
|
223
|
+
</style>
|
|
224
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<!-- begin CmdAddressData ---------------------------------------------------------------------------------------- -->
|
|
3
|
-
<div class="cmd-address-data vcard">
|
|
3
|
+
<div :class="['cmd-address-data vcard', {box: styleAsBox}]">
|
|
4
4
|
<!-- begin slot -->
|
|
5
5
|
<template v-if="useSlot">
|
|
6
6
|
<slot></slot>
|
|
@@ -184,6 +184,13 @@ export default {
|
|
|
184
184
|
name: "CmdAddressData",
|
|
185
185
|
mixins: [EditMode],
|
|
186
186
|
props: {
|
|
187
|
+
/**
|
|
188
|
+
* style component as a box
|
|
189
|
+
*/
|
|
190
|
+
styleAsBox: {
|
|
191
|
+
type: Boolean,
|
|
192
|
+
default: false
|
|
193
|
+
},
|
|
187
194
|
/**
|
|
188
195
|
* activate if you want to use slot instead for given structure
|
|
189
196
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<!-- begin CmdBankAccountData ---------------------------------------------------------------------------------------- -->
|
|
3
|
-
<div class="cmd-bank-account-data">
|
|
3
|
+
<div :class="['cmd-bank-account-data', {box: styleAsBox}]">
|
|
4
4
|
<!-- begin slot -->
|
|
5
5
|
<template v-if="useSlot">
|
|
6
6
|
<slot></slot>
|
|
@@ -41,6 +41,13 @@
|
|
|
41
41
|
export default {
|
|
42
42
|
name: "CmdBankAccountData",
|
|
43
43
|
props: {
|
|
44
|
+
/**
|
|
45
|
+
* style component as a box
|
|
46
|
+
*/
|
|
47
|
+
styleAsBox: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: false
|
|
50
|
+
},
|
|
44
51
|
/**
|
|
45
52
|
* activate if you want to use slot instead for given structure
|
|
46
53
|
*/
|
|
@@ -71,6 +71,7 @@ export default {
|
|
|
71
71
|
</script>
|
|
72
72
|
|
|
73
73
|
<style>
|
|
74
|
+
/* begin cmd-footnote ---------------------------------------------------------------------------------------- */
|
|
74
75
|
.cmd-footnote {
|
|
75
76
|
.cmd-list {
|
|
76
77
|
dl {
|
|
@@ -89,4 +90,5 @@ export default {
|
|
|
89
90
|
}
|
|
90
91
|
}
|
|
91
92
|
}
|
|
93
|
+
/* end cmd-footnote ---------------------------------------------------------------------------------------- */
|
|
92
94
|
</style>
|
|
@@ -147,7 +147,7 @@ export default {
|
|
|
147
147
|
if(this.contentOrientation === "horizontal") {
|
|
148
148
|
return "flex-container"
|
|
149
149
|
} else if(this.contentOrientation === "vertical") {
|
|
150
|
-
return "flex-container
|
|
150
|
+
return "flex-container flex-direction-column"
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
return ""
|