comand-component-library 4.0.95 → 4.0.96

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": "4.0.95",
3
+ "version": "4.0.96",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "GPL-3.0-only",
@@ -1418,6 +1418,18 @@
1418
1418
  ref="CmdHeadline"
1419
1419
  v-bind="cmdHeadlineSettingsData"
1420
1420
  />
1421
+ <CmdHeadline
1422
+ ref="CmdHeadline"
1423
+ headlineLevel="3"
1424
+ headlineText="Headline text<br /> with html given by property"
1425
+ />
1426
+ <CmdHeadline
1427
+ ref="CmdHeadline"
1428
+ headlineLevel="3"
1429
+ >
1430
+ Headline text<br /> with html given by slot
1431
+ </CmdHeadline>
1432
+
1421
1433
  </CmdWidthLimitationWrapper>
1422
1434
  <!-- end headlines ------------------------------------------------------------------------------------------------------------------------------------------------------->
1423
1435
 
@@ -6,7 +6,7 @@
6
6
  <template v-if="preHeadlineText">
7
7
  <component v-if="headlineText" :is="headlineTag">
8
8
  <!-- begin CmdIcon -->
9
- <CmdIcon v-if="cmdIcon" v-bind="cmdIcon" />
9
+ <CmdIcon v-if="cmdIcon" v-bind="cmdIcon"/>
10
10
  <!-- end CmdIcon -->
11
11
 
12
12
  <span class="pre-headline-text-wrapper">
@@ -14,11 +14,17 @@
14
14
  <span class="pre-headline-text" v-html="preHeadlineText"></span>
15
15
  <!-- end pre-headline-text -->
16
16
 
17
- <span>
17
+ <!-- begin default headline-text without slot -->
18
+ <span v-if="headlineText" v-html="headlineText"></span>
19
+ <!-- end default headline-text without slot -->
20
+
21
+ <!-- begin headline-text with slot -->
22
+ <span v-else>
18
23
  <!-- begin slot -->
19
- <slot>{{ headlineText }}</slot>
20
- <!-- end slot -->
24
+ <slot></slot>
25
+ <!-- end slot -->
21
26
  </span>
27
+ <!-- end headline-text with slot -->
22
28
  </span>
23
29
  </component>
24
30
  </template>
@@ -27,14 +33,20 @@
27
33
  <!-- begin headline without pre-headline-text -->
28
34
  <component v-else :is="headlineTag">
29
35
  <!-- begin CmdIcon -->
30
- <CmdIcon v-if="cmdIcon" v-bind="cmdIcon" />
36
+ <CmdIcon v-if="cmdIcon" v-bind="cmdIcon"/>
31
37
  <!-- end CmdIcon -->
32
38
 
33
- <span>
39
+ <!-- begin default headline-text without slot -->
40
+ <span v-if="headlineText" v-html="headlineText"></span>
41
+ <!-- end default headline-text without slot -->
42
+
43
+ <!-- begin headline-text with slot -->
44
+ <span v-else>
34
45
  <!-- begin slot -->
35
- <slot>{{ headlineText }}</slot>
46
+ <slot></slot>
36
47
  <!-- end slot -->
37
48
  </span>
49
+ <!-- end headline-text with slot -->
38
50
  </component>
39
51
  <!-- end headline without pre-headline-text -->
40
52
  </div>
@@ -67,15 +79,15 @@
67
79
  <!-- end CmdFormElement -->
68
80
 
69
81
  <template v-else-if="headlineText"
70
- :class="['cmd-headline', {'has-pre-headline-text': preHeadlineText, 'has-icon': cmdIcon?.iconClass}, headlineTextAlign]">
82
+ :class="['cmd-headline', {'has-pre-headline-text': preHeadlineText, 'has-icon': cmdIcon?.iconClass}, headlineTextAlign]">
71
83
  <!-- begin CmdIcon -->
72
- <CmdIcon v-if="cmdIcon" v-bind="cmdIcon" />
84
+ <CmdIcon v-if="cmdIcon" v-bind="cmdIcon"/>
73
85
  <!-- end CmdIcon -->
74
86
 
75
87
  <template v-if="preHeadlineText">
76
88
  <component v-if="headlineText" :is="headlineTag">
77
89
  <!-- begin CmdIcon -->
78
- <CmdIcon v-if="cmdIcon" v-bind="cmdIcon" />
90
+ <CmdIcon v-if="cmdIcon" v-bind="cmdIcon"/>
79
91
  <!-- end CmdIcon -->
80
92
 
81
93
  <!-- begin pre-headline-text -->