comand-component-library 4.2.52 → 4.2.54
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 +3384 -3006
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/ComponentLibrary.vue +55 -12
- package/src/assets/data/box-user.json +3 -0
- package/src/assets/data/list-description-list.json +74 -0
- package/src/assets/data/listOfComponents.json +2 -0
- package/src/assets/styles/component-library-global-styles.scss +0 -14
- package/src/componentSettingsDataAndControls.vue +49 -0
- package/src/components/CmdBox.vue +52 -27
- package/src/components/CmdBoxWrapper.vue +0 -4
- package/src/components/CmdCodeOutput.vue +0 -2
- package/src/components/CmdFancyBox.vue +2 -2
- package/src/components/CmdForm.vue +5 -2
- package/src/components/CmdLink.vue +2 -1
- package/src/components/CmdList.vue +93 -27
- package/src/components/CmdMultistepFormProgressBar.vue +19 -4
- package/src/components/CmdNewsletterSubscription.vue +2 -0
- package/src/components/CmdOpeningHours.vue +2 -0
- package/src/components/CmdOpeningHoursItem.vue +2 -0
- package/src/components/CmdPageFooter.vue +2 -0
- package/src/components/CmdPageHeader.vue +2 -0
- package/src/components/CmdPagination.vue +2 -0
- package/src/components/CmdParagraph.vue +50 -0
- package/src/components/CmdSection.vue +2 -0
- package/src/components/CmdSidebar.vue +2 -0
- package/src/components/CmdSiteFooter.vue +2 -0
- package/src/components/CmdSiteHeader.vue +2 -0
- package/src/components/CmdSiteSearch.vue +2 -0
- package/src/components/CmdSlideButton.vue +2 -0
- package/src/components/CmdSocialNetworks.vue +2 -0
- package/src/components/CmdSocialNetworksItem.vue +2 -0
- package/src/components/CmdSwitchLanguage.vue +2 -0
- package/src/components/CmdSystemMessage.vue +16 -14
- package/src/components/CmdTable.vue +2 -0
- package/src/components/CmdTabs.vue +2 -0
- package/src/components/CmdTag.vue +101 -0
- package/src/components/CmdTextImageBlock.vue +2 -0
- package/src/components/CmdThumbnailScroller.vue +2 -0
- package/src/components/CmdToggleDarkMode.vue +2 -0
- package/src/components/CmdTooltip.vue +2 -0
- package/src/components/CmdTooltipForFormElements.vue +2 -0
- package/src/components/CmdUploadForm.vue +2 -0
- package/src/components/CmdWidthLimitationWrapper.vue +2 -0
package/src/ComponentLibrary.vue
CHANGED
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
<span>Select template</span>
|
|
21
21
|
<select id="select-template" v-model="selectedTemplate">
|
|
22
22
|
<option value="blank">Blank/Unstyled</option>
|
|
23
|
-
<option value="
|
|
23
|
+
<option value="material-web">Material-Web</option>
|
|
24
|
+
<option value="tailwind">Tailwind</option>
|
|
24
25
|
</select>
|
|
25
26
|
</label>
|
|
26
27
|
<div>
|
|
@@ -1157,7 +1158,7 @@
|
|
|
1157
1158
|
</CmdWidthLimitationWrapper>
|
|
1158
1159
|
<!-- end link --------------------------------------------------------------------------------------------------->
|
|
1159
1160
|
|
|
1160
|
-
<!-- begin
|
|
1161
|
+
<!-- begin lists --------------------------------------------------------------------------------------------------->
|
|
1161
1162
|
<CmdWidthLimitationWrapper>
|
|
1162
1163
|
<h2 class="headline-demopage" id="section-list">
|
|
1163
1164
|
<span>List</span>
|
|
@@ -1165,7 +1166,7 @@
|
|
|
1165
1166
|
@click.prevent="openSettingsSidebar('CmdList')"></a>
|
|
1166
1167
|
</h2>
|
|
1167
1168
|
<CmdList :cmdHeadline="{ headlineText: 'List of links', headlineLevel: 3 }" ref="CmdList"
|
|
1168
|
-
v-bind="cmdListSettingsData" :items="listData"
|
|
1169
|
+
v-bind="cmdListSettingsData" :items="listData" listContentType="links" @click="cmdLinkOutput" />
|
|
1169
1170
|
<dl class="output">
|
|
1170
1171
|
<dt>Event:</dt>
|
|
1171
1172
|
<dd>{{ outputCmdLink?.event?.originalEvent }}</dd>
|
|
@@ -1175,38 +1176,57 @@
|
|
|
1175
1176
|
<dd>{{ outputCmdLink?.event?.linkType }}</dd>
|
|
1176
1177
|
</dl>
|
|
1177
1178
|
<CmdList :cmdHeadline="{ headlineText: 'List of images', headlineLevel: 3 }" :items="imageGalleryData"
|
|
1178
|
-
orientation="horizontal"
|
|
1179
|
+
orientation="horizontal" listContentType="images" />
|
|
1179
1180
|
<div class="flex-container">
|
|
1180
1181
|
<CmdList
|
|
1181
1182
|
:cmdHeadline="{ headlineText: 'List of tags (default)', headlineLevel: 3 }"
|
|
1182
1183
|
:items="listOfTagsData"
|
|
1183
1184
|
orientation="horizontal"
|
|
1184
|
-
|
|
1185
|
+
listContentType="tags"
|
|
1185
1186
|
/>
|
|
1186
1187
|
<CmdList
|
|
1187
1188
|
:cmdHeadline="{ headlineText: 'List of tags (primary)', headlineLevel: 3 }"
|
|
1188
1189
|
:items="listOfTagsData"
|
|
1189
1190
|
orientation="horizontal"
|
|
1190
|
-
|
|
1191
|
+
listContentType="tags"
|
|
1191
1192
|
highlightLevel="primary"
|
|
1192
1193
|
/>
|
|
1193
1194
|
<CmdList
|
|
1194
1195
|
:cmdHeadline="{ headlineText: 'List of tags (secondary)', headlineLevel: 3 }"
|
|
1195
1196
|
:items="listOfTagsData"
|
|
1196
1197
|
orientation="horizontal"
|
|
1197
|
-
|
|
1198
|
+
listContentType="tags"
|
|
1198
1199
|
highlightLevel="secondary"
|
|
1199
1200
|
/>
|
|
1200
1201
|
<CmdList
|
|
1201
1202
|
:cmdHeadline="{ headlineText: 'List of tags (tertiary)', headlineLevel: 3 }"
|
|
1202
1203
|
:items="listOfTagsData"
|
|
1203
1204
|
orientation="horizontal"
|
|
1204
|
-
|
|
1205
|
+
listContentType="tags"
|
|
1205
1206
|
highlightLevel="tertiary"
|
|
1206
1207
|
/>
|
|
1207
1208
|
</div>
|
|
1209
|
+
<h3>Description Lists</h3>
|
|
1210
|
+
<div class="flex-container">
|
|
1211
|
+
<CmdList
|
|
1212
|
+
listType="description"
|
|
1213
|
+
:cmdHeadline="{ headlineText: 'List with text', headlineLevel: 4 }"
|
|
1214
|
+
:items="descriptionListData.text"
|
|
1215
|
+
/>
|
|
1216
|
+
<CmdList
|
|
1217
|
+
listType="description"
|
|
1218
|
+
:cmdHeadline="{ headlineText: 'List with text (term right aligned)', headlineLevel: 4 }"
|
|
1219
|
+
:alignDescriptionTermRight="true"
|
|
1220
|
+
:items="descriptionListData.text"
|
|
1221
|
+
/>
|
|
1222
|
+
<CmdList
|
|
1223
|
+
listType="description"
|
|
1224
|
+
:cmdHeadline="{ headlineText: 'List with icons', headlineLevel: 4 }"
|
|
1225
|
+
:items="descriptionListData.icons"
|
|
1226
|
+
/>
|
|
1227
|
+
</div>
|
|
1208
1228
|
</CmdWidthLimitationWrapper>
|
|
1209
|
-
<!-- end
|
|
1229
|
+
<!-- end lists --------------------------------------------------------------------------------------------------->
|
|
1210
1230
|
|
|
1211
1231
|
<!-- begin login-form --------------------------------------------------------------------------------------------------->
|
|
1212
1232
|
<CmdWidthLimitationWrapper>
|
|
@@ -1340,6 +1360,17 @@
|
|
|
1340
1360
|
</CmdWidthLimitationWrapper>
|
|
1341
1361
|
<!-- end pagination --------------------------------------------------------------------------------------------------->
|
|
1342
1362
|
|
|
1363
|
+
<!-- begin paragraph --------------------------------------------------------------------------------------------------->
|
|
1364
|
+
<CmdWidthLimitationWrapper>
|
|
1365
|
+
<h2 class="headline-demopage" id="section-paragraph">
|
|
1366
|
+
<span>Paragraph</span>
|
|
1367
|
+
<a href="#" class="button small icon-cog" title="Open Component Settings"
|
|
1368
|
+
@click.prevent="openSettingsSidebar('CmdParagraph')"></a>
|
|
1369
|
+
</h2>
|
|
1370
|
+
<CmdParagraph ref="CmdParagraph" v-bind="cmdParagraphSettingsData" />
|
|
1371
|
+
</CmdWidthLimitationWrapper>
|
|
1372
|
+
<!-- end paragraph --------------------------------------------------------------------------------------------------->
|
|
1373
|
+
|
|
1343
1374
|
<!-- begin section --------------------------------------------------------------------------------------------------->
|
|
1344
1375
|
<CmdWidthLimitationWrapper>
|
|
1345
1376
|
<h2 class="headline-demopage" id="section-section">
|
|
@@ -1514,6 +1545,18 @@
|
|
|
1514
1545
|
</CmdWidthLimitationWrapper>
|
|
1515
1546
|
<!-- end tabs --------------------------------------------------------------------------------------------------->
|
|
1516
1547
|
|
|
1548
|
+
<!-- begin tags --------------------------------------------------------------------------------------------------->
|
|
1549
|
+
<CmdWidthLimitationWrapper>
|
|
1550
|
+
<h2 class="headline-demopage" id="section-tag">
|
|
1551
|
+
<span>Tag</span>
|
|
1552
|
+
<a href="#" class="button small icon-cog" title="Open Component Settings"
|
|
1553
|
+
@click.prevent="openSettingsSidebar('CmdTag')">
|
|
1554
|
+
</a>
|
|
1555
|
+
</h2>
|
|
1556
|
+
<CmdTag ref="CmdTag" v-bind="cmdTagSettingsData" />
|
|
1557
|
+
</CmdWidthLimitationWrapper>
|
|
1558
|
+
<!-- end tags --------------------------------------------------------------------------------------------------->
|
|
1559
|
+
|
|
1517
1560
|
<!-- begin text-image-block --------------------------------------------------------------------------------------------------->
|
|
1518
1561
|
<CmdWidthLimitationWrapper>
|
|
1519
1562
|
<h2 class="headline-demopage" id="section-text-image-block">
|
|
@@ -1711,6 +1754,7 @@ import inputGroupRadiobuttonsData from '@/assets/data/input-group-radiobuttons.j
|
|
|
1711
1754
|
import inputGroupReplacedRadiobuttonsData from '@/assets/data/input-group-replaced-radiobuttons.json'
|
|
1712
1755
|
import inputGroupToggleSwitchRadiobuttonsData from '@/assets/data/input-group-toggle-switch-radiobuttons.json'
|
|
1713
1756
|
import listData from '@/assets/data/list.json'
|
|
1757
|
+
import descriptionListData from '@/assets/data/list-description-list.json'
|
|
1714
1758
|
import listOfTagsData from '@/assets/data/list-of-tags.json'
|
|
1715
1759
|
import switchLanguage from '@/assets/data/switch-language.json'
|
|
1716
1760
|
import mailToolData from '@/assets/data/mail-tool.json'
|
|
@@ -1910,6 +1954,7 @@ export default {
|
|
|
1910
1954
|
switchLanguage,
|
|
1911
1955
|
listData,
|
|
1912
1956
|
listOfTagsData,
|
|
1957
|
+
descriptionListData,
|
|
1913
1958
|
multistepsData,
|
|
1914
1959
|
mailToolData,
|
|
1915
1960
|
navigationData,
|
|
@@ -2191,7 +2236,7 @@ export default {
|
|
|
2191
2236
|
}
|
|
2192
2237
|
|
|
2193
2238
|
// change logo
|
|
2194
|
-
if (this.selectedTemplate === "
|
|
2239
|
+
if (this.selectedTemplate === "material-web") {
|
|
2195
2240
|
this.companyLogoData =
|
|
2196
2241
|
{
|
|
2197
2242
|
"link": {
|
|
@@ -2199,8 +2244,6 @@ export default {
|
|
|
2199
2244
|
"path": "./",
|
|
2200
2245
|
"tooltip": "Tooltip"
|
|
2201
2246
|
},
|
|
2202
|
-
"pathDefaultLogo": "/media/images/logos/logo-dating.svg",
|
|
2203
|
-
"pathDarkmodeLogo": "/media/images/logos/logo-dating-darkmode.svg",
|
|
2204
2247
|
"altText": "Company Logo"
|
|
2205
2248
|
}
|
|
2206
2249
|
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
"description": "User with a long text as description that wraps over multiple lines",
|
|
64
64
|
"links": [
|
|
65
65
|
{
|
|
66
|
+
"linkType": "href",
|
|
66
67
|
"path": "mailto:",
|
|
67
68
|
"icon": {
|
|
68
69
|
"iconClass": "icon-mail",
|
|
@@ -70,6 +71,7 @@
|
|
|
70
71
|
}
|
|
71
72
|
},
|
|
72
73
|
{
|
|
74
|
+
"linkType": "href",
|
|
73
75
|
"path": "https://www.comand-ui.com",
|
|
74
76
|
"target": "comand",
|
|
75
77
|
"icon": {
|
|
@@ -78,6 +80,7 @@
|
|
|
78
80
|
}
|
|
79
81
|
},
|
|
80
82
|
{
|
|
83
|
+
"linkType": "href",
|
|
81
84
|
"path": "tel:",
|
|
82
85
|
"icon": {
|
|
83
86
|
"iconClass": "icon-phone",
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"text": [
|
|
3
|
+
{
|
|
4
|
+
"descriptionTerm": {
|
|
5
|
+
"text": "Description Term #1"
|
|
6
|
+
},
|
|
7
|
+
"descriptionData": {
|
|
8
|
+
"text": "Description Data #1"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"descriptionTerm": {
|
|
13
|
+
"text": "Description Term #2"
|
|
14
|
+
},
|
|
15
|
+
"descriptionData": {
|
|
16
|
+
"text": "Description Data #2"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"descriptionTerm": {
|
|
21
|
+
"text": "Description Term #3"
|
|
22
|
+
},
|
|
23
|
+
"descriptionData": {
|
|
24
|
+
"text": "Description Data #3"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"icons": [
|
|
29
|
+
{
|
|
30
|
+
"descriptionTerm": {
|
|
31
|
+
"cmdIcon": {
|
|
32
|
+
"show": true,
|
|
33
|
+
"iconClass": "icon-home",
|
|
34
|
+
"tooltip": "Href with anchor"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"descriptionData": {
|
|
38
|
+
"cmdLink": {
|
|
39
|
+
"linkType": "href",
|
|
40
|
+
"text": "Description data in link ",
|
|
41
|
+
"path": "#anchor-back-to-top"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"descriptionTerm": {
|
|
47
|
+
"cmdIcon": {
|
|
48
|
+
"show": true,
|
|
49
|
+
"iconClass": "icon-user-profile",
|
|
50
|
+
"tooltip": "Href with anchor"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"descriptionData": {
|
|
54
|
+
"text": "Data without link"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"descriptionTerm": {
|
|
59
|
+
"cmdIcon": {
|
|
60
|
+
"show": true,
|
|
61
|
+
"iconClass": "icon-phone",
|
|
62
|
+
"tooltip": "Href with anchor"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"descriptionData": {
|
|
66
|
+
"cmdLink": {
|
|
67
|
+
"linkType": "href",
|
|
68
|
+
"text": "Description data in link",
|
|
69
|
+
"path": "#anchor-back-to-top"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"PageFooter",
|
|
30
30
|
"PageHeader",
|
|
31
31
|
"Pagination",
|
|
32
|
+
"Paragraph",
|
|
32
33
|
"Section",
|
|
33
34
|
"SiteFooter",
|
|
34
35
|
"SiteHeader",
|
|
@@ -40,6 +41,7 @@
|
|
|
40
41
|
"SystemMessage",
|
|
41
42
|
"Tables",
|
|
42
43
|
"Tabs",
|
|
44
|
+
"Tag",
|
|
43
45
|
"TextImageBlock",
|
|
44
46
|
"ThumbnailScroller",
|
|
45
47
|
"ToggleDarkMode",
|
|
@@ -284,22 +284,8 @@ a img.flag {
|
|
|
284
284
|
border-color: var(--status-color);
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
|
-
|
|
288
|
-
.cmd-link.button {
|
|
289
|
-
&.router-link-active {
|
|
290
|
-
background: var(--button-primary-background-highlighted); /* set background for active router-links styled as buttons buttons */
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
|
|
294
287
|
/* end tooltip for cmd-form-element and cmd-fake-select -------------------------------------------------------------------------------------------------------------------- */
|
|
295
288
|
|
|
296
|
-
/* begin cmd-link -------------------------------------------------------------------------------------------------------------------- */
|
|
297
|
-
.cmd-link.button {
|
|
298
|
-
&.router-link-active {
|
|
299
|
-
background: var(--button-primary-background-highlighted); /* set background for active router-links styled as buttons */
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
/* end cmd-link -------------------------------------------------------------------------------------------------------------------- */
|
|
303
289
|
/* ----------------------------------------------- END COMPONENTS AND GLOBAL STYLES --------------------------------------------------- */
|
|
304
290
|
|
|
305
291
|
/* ---------------------------------------------- BEGIN MEDIA QUERIES AND BROWSER SPECIFIC STYLES -------------------------------------------------- */
|
|
@@ -651,6 +651,31 @@ data() {
|
|
|
651
651
|
}
|
|
652
652
|
]
|
|
653
653
|
},
|
|
654
|
+
cmdParagraphSettingsData: {
|
|
655
|
+
content: "This is a paragraph with content provided per property with <dfn title='HyperText Markup Language'>HTML</dfn> inside. Its alignment can be adjusted with the <em>textAlign</em>-property. Additionally the number of columns (1-4) can be defined by <em>numberOfColumns</em>-property.",
|
|
656
|
+
numberOfColumns: 1,
|
|
657
|
+
textAlign: "left",
|
|
658
|
+
},
|
|
659
|
+
cmdParagraphSettingsControls: {
|
|
660
|
+
textAlign: [
|
|
661
|
+
{
|
|
662
|
+
text: "left",
|
|
663
|
+
value: "left"
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
text: "center",
|
|
667
|
+
value: "center"
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
text: "right",
|
|
671
|
+
value: "right"
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
text: "justify",
|
|
675
|
+
value: "justify"
|
|
676
|
+
}
|
|
677
|
+
]
|
|
678
|
+
},
|
|
654
679
|
cmdSiteHeaderSettingsData: {
|
|
655
680
|
sticky: false,
|
|
656
681
|
navigationInline: false,
|
|
@@ -775,6 +800,30 @@ data() {
|
|
|
775
800
|
}
|
|
776
801
|
]
|
|
777
802
|
},
|
|
803
|
+
cmdTagSettingsData: {
|
|
804
|
+
tagText: "Text for Tag",
|
|
805
|
+
removeByClick: false
|
|
806
|
+
},
|
|
807
|
+
cmdTagSettingsControls: {
|
|
808
|
+
highlightLevel: [
|
|
809
|
+
{
|
|
810
|
+
text: "none (default)",
|
|
811
|
+
value: "none"
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
text: "primary",
|
|
815
|
+
value: "primary"
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
text: "secondary",
|
|
819
|
+
value: "secondary"
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
text: "tertiary",
|
|
823
|
+
value: "tertiary"
|
|
824
|
+
}
|
|
825
|
+
]
|
|
826
|
+
},
|
|
778
827
|
cmdTextImageBlockSettingsData: {
|
|
779
828
|
htmlContent: "Text given as html-content",
|
|
780
829
|
paragraphTextAlign: "left",
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
href="#"
|
|
160
160
|
@click.prevent="clickOnProduct(product)">
|
|
161
161
|
<div class="box-header flex-container vertical">
|
|
162
|
-
<CmdImage v-if="product.image?.src" v-bind="product.image" />
|
|
162
|
+
<CmdImage v-if="product.image?.src" v-bind="{image:{...product.image}}" />
|
|
163
163
|
|
|
164
164
|
<!-- begin ribbons -->
|
|
165
165
|
<div v-if="product.new" class="ribbon-new">
|
|
@@ -208,16 +208,23 @@
|
|
|
208
208
|
</figcaption>
|
|
209
209
|
</figure>
|
|
210
210
|
<!-- end no user-image -->
|
|
211
|
-
|
|
211
|
+
|
|
212
212
|
<!-- begin no user-image -->
|
|
213
|
-
<
|
|
214
|
-
<
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
213
|
+
<template v-else>
|
|
214
|
+
<div class="no-user-image">
|
|
215
|
+
<CmdIcon
|
|
216
|
+
:iconClass="iconUserProfile.iconClass"
|
|
217
|
+
:type="iconUserProfile.iconType"
|
|
218
|
+
:title="user.name"
|
|
219
|
+
/>
|
|
220
|
+
</div>
|
|
221
|
+
<p v-if="!rowView" class="user-name">
|
|
222
|
+
{{ user.name }}
|
|
223
|
+
<span v-if="user.age" class="user-age">
|
|
224
|
+
({{ user.age }})
|
|
225
|
+
</span>
|
|
226
|
+
</p>
|
|
227
|
+
</template>
|
|
221
228
|
<!-- end no user-image -->
|
|
222
229
|
</div>
|
|
223
230
|
<!-- end box-header -->
|
|
@@ -241,7 +248,7 @@
|
|
|
241
248
|
|
|
242
249
|
<!-- begin box-footer -->
|
|
243
250
|
<div v-if="user.links && user.links.length" class="box-footer">
|
|
244
|
-
<CmdList :
|
|
251
|
+
<CmdList :items="user.links" orientation="horizontal" :useGap="false"/>
|
|
245
252
|
</div>
|
|
246
253
|
<!-- end box-footer -->
|
|
247
254
|
</div>
|
|
@@ -390,7 +397,7 @@ export default {
|
|
|
390
397
|
*
|
|
391
398
|
* @required: only available for boxtype===user
|
|
392
399
|
*
|
|
393
|
-
* @allowedValues: 'business', 'influencer', '
|
|
400
|
+
* @allowedValues: 'business', 'influencer', 'material-web'
|
|
394
401
|
*/
|
|
395
402
|
profileType: {
|
|
396
403
|
type: String,
|
|
@@ -398,7 +405,7 @@ export default {
|
|
|
398
405
|
validator(value) {
|
|
399
406
|
return value === "business" ||
|
|
400
407
|
value === "influencer" ||
|
|
401
|
-
value === "
|
|
408
|
+
value === "material-web"
|
|
402
409
|
}
|
|
403
410
|
},
|
|
404
411
|
/**
|
|
@@ -433,6 +440,10 @@ export default {
|
|
|
433
440
|
/**
|
|
434
441
|
* icon for user-profile if no user-image exists
|
|
435
442
|
*
|
|
443
|
+
* {
|
|
444
|
+
* iconClass: string,
|
|
445
|
+
* iconType: string
|
|
446
|
+
* }
|
|
436
447
|
* @requiredForAccessibility: partial
|
|
437
448
|
*/
|
|
438
449
|
iconUserProfile: {
|
|
@@ -600,6 +611,8 @@ export default {
|
|
|
600
611
|
}
|
|
601
612
|
|
|
602
613
|
.box-header {
|
|
614
|
+
overflow: hidden; /* hide edges of optional badges */
|
|
615
|
+
|
|
603
616
|
.cmd-headline {
|
|
604
617
|
margin-bottom: 0;
|
|
605
618
|
text-decoration: none;
|
|
@@ -624,6 +637,7 @@ export default {
|
|
|
624
637
|
justify-content: space-between;
|
|
625
638
|
background: var(--box-header-background);
|
|
626
639
|
border-radius: var(--box-border-radius);
|
|
640
|
+
border-bottom: 0;
|
|
627
641
|
|
|
628
642
|
&:hover, &:active, &:focus {
|
|
629
643
|
background: var(--color-white);
|
|
@@ -633,6 +647,10 @@ export default {
|
|
|
633
647
|
}
|
|
634
648
|
}
|
|
635
649
|
}
|
|
650
|
+
|
|
651
|
+
.box-body {
|
|
652
|
+
border-top: var(--box-border);
|
|
653
|
+
}
|
|
636
654
|
}
|
|
637
655
|
|
|
638
656
|
> .box-body:first-child {
|
|
@@ -693,7 +711,6 @@ export default {
|
|
|
693
711
|
.box-body {
|
|
694
712
|
display: flex;
|
|
695
713
|
flex-grow: 1;
|
|
696
|
-
border-top: var(--box-border);
|
|
697
714
|
|
|
698
715
|
.box-body-padding {
|
|
699
716
|
padding: var(--box-body-padding);
|
|
@@ -855,12 +872,6 @@ export default {
|
|
|
855
872
|
border-bottom-left-radius: 0;
|
|
856
873
|
border-bottom-right-radius: 0;
|
|
857
874
|
}
|
|
858
|
-
|
|
859
|
-
figcaption {
|
|
860
|
-
font-size: 2rem;
|
|
861
|
-
font-weight: bold;
|
|
862
|
-
padding: var(--default-padding);
|
|
863
|
-
}
|
|
864
875
|
}
|
|
865
876
|
|
|
866
877
|
.box-body {
|
|
@@ -888,13 +899,22 @@ export default {
|
|
|
888
899
|
&:hover, &:active, &:focus {
|
|
889
900
|
border-color: var(--hyperlink-color-highlighted);
|
|
890
901
|
}
|
|
902
|
+
|
|
903
|
+
|
|
904
|
+
&.row-view {
|
|
905
|
+
flex-direction: row;
|
|
906
|
+
align-items: center;
|
|
907
|
+
}
|
|
891
908
|
}
|
|
892
909
|
|
|
893
910
|
/* boxType === 'user' */
|
|
894
911
|
&.user {
|
|
912
|
+
--box-header-padding: var(--default-padding);
|
|
913
|
+
|
|
895
914
|
.user-name {
|
|
896
915
|
color: var(--color-scheme-text-color);
|
|
897
916
|
font-size: 2rem;
|
|
917
|
+
font-weight: bold;
|
|
898
918
|
}
|
|
899
919
|
|
|
900
920
|
.user-age {
|
|
@@ -906,15 +926,12 @@ export default {
|
|
|
906
926
|
--box-header-text-color: var(--primary-color);
|
|
907
927
|
|
|
908
928
|
background: none;
|
|
929
|
+
gap: calc(var(--default-gap) / 2);
|
|
909
930
|
|
|
910
931
|
> div:first-child > [class*="icon-"] {
|
|
911
932
|
aspect-ratio: 1/1;
|
|
912
933
|
}
|
|
913
934
|
|
|
914
|
-
&:has(img) {
|
|
915
|
-
--box-header-padding: var(--default-padding);
|
|
916
|
-
}
|
|
917
|
-
|
|
918
935
|
img {
|
|
919
936
|
margin: 0 auto var(--default-margin) auto;
|
|
920
937
|
|
|
@@ -937,15 +954,19 @@ export default {
|
|
|
937
954
|
color: var(--color-white);
|
|
938
955
|
justify-content: center;
|
|
939
956
|
align-items: center;
|
|
940
|
-
margin: 0;
|
|
941
957
|
font-size: var(--default-icon-size);
|
|
942
958
|
}
|
|
959
|
+
|
|
960
|
+
.no-user-image {
|
|
961
|
+
background: var(--default-background);
|
|
962
|
+
}
|
|
943
963
|
}
|
|
944
964
|
|
|
945
965
|
.box-body {
|
|
946
966
|
flex-grow: 1;
|
|
947
967
|
padding: var(--default-padding);
|
|
948
|
-
|
|
968
|
+
|
|
969
|
+
border-bottom: 0;
|
|
949
970
|
|
|
950
971
|
p {
|
|
951
972
|
text-align: center;
|
|
@@ -966,7 +987,7 @@ export default {
|
|
|
966
987
|
padding: 0;
|
|
967
988
|
border-top: var(--box-border);
|
|
968
989
|
|
|
969
|
-
.cmd-list
|
|
990
|
+
.cmd-list {
|
|
970
991
|
ul {
|
|
971
992
|
width: 100%;
|
|
972
993
|
margin-bottom: 0;
|
|
@@ -1026,6 +1047,10 @@ export default {
|
|
|
1026
1047
|
}
|
|
1027
1048
|
|
|
1028
1049
|
&.row-view {
|
|
1050
|
+
.box-header {
|
|
1051
|
+
border: 0;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1029
1054
|
.box-body {
|
|
1030
1055
|
padding: 0;
|
|
1031
1056
|
|
|
@@ -300,8 +300,6 @@ export default {
|
|
|
300
300
|
}
|
|
301
301
|
|
|
302
302
|
.row-view {
|
|
303
|
-
flex-direction: column;
|
|
304
|
-
|
|
305
303
|
p.cutoff-text {
|
|
306
304
|
height: auto;
|
|
307
305
|
|
|
@@ -332,8 +330,6 @@ export default {
|
|
|
332
330
|
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
333
331
|
}
|
|
334
332
|
}
|
|
335
|
-
|
|
336
|
-
|
|
337
333
|
}
|
|
338
334
|
</style>
|
|
339
335
|
|
|
@@ -93,7 +93,6 @@
|
|
|
93
93
|
<!-- end slot-content -->
|
|
94
94
|
</div>
|
|
95
95
|
</div>
|
|
96
|
-
|
|
97
96
|
<footer v-if="showSubmitButtons && fancyBoxOptionsProperties.submitButtons" class="flex-container flex-none">
|
|
98
97
|
<!-- begin cancel-button -->
|
|
99
98
|
<button
|
|
@@ -545,9 +544,10 @@ export default FancyBox
|
|
|
545
544
|
|
|
546
545
|
> header {
|
|
547
546
|
display: flex;
|
|
547
|
+
height: auto; /* overwrite possible overwrites by global header */
|
|
548
|
+
max-height: none; /* overwrite possible overwrites by global header */
|
|
548
549
|
}
|
|
549
550
|
|
|
550
|
-
|
|
551
551
|
> .grayscale {
|
|
552
552
|
filter: grayscale(1);
|
|
553
553
|
}
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
<small v-if="mandatoryText" class="mandatory-text"><sup>*</sup>{{ mandatoryText }}</small>
|
|
69
69
|
<!-- begin cancel-button (below fieldset) -->
|
|
70
70
|
<button
|
|
71
|
-
v-if="cancelButtonOptions
|
|
71
|
+
v-if="cancelButtonOptions.show"
|
|
72
72
|
:class="['button', {'stretch-on-small-devices': cancelButtonOptions.stretchOnSmallDevices, disabled: cancelButtonOptions.disabled, cancel: cancelButtonOptions.useDefaultStyling}]"
|
|
73
73
|
type="button"
|
|
74
74
|
@click="cancelFormSubmit"
|
|
@@ -79,7 +79,8 @@
|
|
|
79
79
|
<!-- end cancel-button (below fieldset) -->
|
|
80
80
|
|
|
81
81
|
<!-- begin submit-button (below fieldset) -->
|
|
82
|
-
<button
|
|
82
|
+
<button v-if="submitButtonOptions.show"
|
|
83
|
+
:class="['button', {'stretch-on-small-devices': submitButtonOptions.stretchOnSmallDevices, primary: submitButtonOptions.primary, disabled: submitButtonOptions.disabled}]"
|
|
83
84
|
:type="submitButtonOptions.type || 'submit'">
|
|
84
85
|
<span v-if="submitButtonOptions.iconClass" :class="submitButtonOptions.iconClass"></span>
|
|
85
86
|
<span v-if="submitButtonOptions.text">{{ submitButtonOptions.text }}</span>
|
|
@@ -220,6 +221,7 @@ export default {
|
|
|
220
221
|
},
|
|
221
222
|
cancelButtonOptions() {
|
|
222
223
|
return {
|
|
224
|
+
show: true,
|
|
223
225
|
iconClass: "icon-cancel-circle",
|
|
224
226
|
text: "Cancel",
|
|
225
227
|
useDefaultStyling: false,
|
|
@@ -230,6 +232,7 @@ export default {
|
|
|
230
232
|
},
|
|
231
233
|
submitButtonOptions() {
|
|
232
234
|
return {
|
|
235
|
+
show: true,
|
|
233
236
|
iconClass: "icon-check-circle",
|
|
234
237
|
text: "Submit",
|
|
235
238
|
type: "submit",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
<!-- begin router-link -->
|
|
22
22
|
<router-link v-else-if="linkType === 'router'"
|
|
23
23
|
:to="!disabled ? path : {}"
|
|
24
|
+
exact-active-class="router-link-exact-active active"
|
|
24
25
|
:class="['cmd-link', highlightLevel, {'button': styleAsButton, 'disabled': disabled, 'box': styleAsBox, 'fancybox': fancybox}]"
|
|
25
26
|
@click="emitClick($event, 'router')"
|
|
26
27
|
:title="icon?.tooltip">
|
|
@@ -97,7 +98,7 @@ export default {
|
|
|
97
98
|
*/
|
|
98
99
|
icon: {
|
|
99
100
|
type: Object,
|
|
100
|
-
default:
|
|
101
|
+
default: null
|
|
101
102
|
},
|
|
102
103
|
/**
|
|
103
104
|
* displayed text
|