comand-component-library 4.3.28 → 5.0.0

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.
Files changed (61) hide show
  1. package/dist/comand-component-library.css +1 -1
  2. package/dist/comand-component-library.js +9587 -9482
  3. package/dist/styles/demopage-only.css +12 -2
  4. package/package.json +47 -46
  5. package/src/ComponentLibrary.vue +2697 -2688
  6. package/src/assets/data/component-structure.json +1 -1
  7. package/src/assets/data/form-elements.json +224 -224
  8. package/src/assets/data/social-networks-page-by-json.json +43 -43
  9. package/src/assets/styles/component-library-global-styles.scss +296 -295
  10. package/src/componentSettingsDataAndControls.vue +1 -18
  11. package/src/components/CmdAccordion.vue +1 -1
  12. package/src/components/CmdAddressData.vue +6 -1
  13. package/src/components/CmdAddressDataItem.vue +6 -1
  14. package/src/components/CmdBasicForm.vue +2 -2
  15. package/src/components/CmdBox.vue +1103 -1092
  16. package/src/components/CmdBoxWrapper.vue +7 -1
  17. package/src/components/CmdBreadcrumbs.vue +2 -2
  18. package/src/components/CmdCodeOutput.vue +1 -1
  19. package/src/components/CmdCookieDisclaimer.vue +480 -480
  20. package/src/components/CmdFakeSelect.vue +930 -916
  21. package/src/components/CmdFlexibleScrollContainer.vue +42 -42
  22. package/src/components/CmdForm.vue +481 -481
  23. package/src/components/CmdFormElement.vue +1110 -1091
  24. package/src/components/CmdFormFilters.vue +146 -146
  25. package/src/components/CmdGoogleMaps.vue +1 -1
  26. package/src/components/CmdHeadline.vue +21 -4
  27. package/src/components/CmdIcon.vue +8 -2
  28. package/src/components/CmdImage.vue +14 -16
  29. package/src/components/CmdImageZoom.vue +9 -8
  30. package/src/components/CmdInputGroup.vue +436 -435
  31. package/src/components/CmdLink.vue +1 -1
  32. package/src/components/CmdList.vue +1 -1
  33. package/src/components/CmdListOfRequirements.vue +192 -192
  34. package/src/components/CmdLoginForm.vue +618 -618
  35. package/src/components/CmdMailToolFilter.vue +217 -217
  36. package/src/components/CmdMainNavigation.vue +581 -572
  37. package/src/components/CmdMultistepFormProgressBar.vue +9 -9
  38. package/src/components/CmdNewsletterSubscription.vue +199 -199
  39. package/src/components/CmdPagination.vue +4 -2
  40. package/src/components/CmdParagraph.vue +10 -4
  41. package/src/components/CmdProgressBar.vue +72 -72
  42. package/src/components/CmdSiteHeader.vue +382 -389
  43. package/src/components/CmdSiteSearch.vue +420 -420
  44. package/src/components/CmdSiteWrapper.vue +12 -5
  45. package/src/components/CmdSlideshow.vue +519 -519
  46. package/src/components/CmdSmartSearch.vue +291 -291
  47. package/src/components/CmdSystemMessage.vue +3 -2
  48. package/src/components/CmdTable.vue +401 -401
  49. package/src/components/CmdTabs.vue +262 -262
  50. package/src/components/CmdTag.vue +1 -1
  51. package/src/components/CmdTextImageBlock.vue +8 -2
  52. package/src/components/CmdThumbnailScroller.vue +0 -7
  53. package/src/components/CmdToggleDarkMode.vue +13 -11
  54. package/src/components/CmdTooltip.vue +305 -301
  55. package/src/components/CmdUploadForm.vue +1299 -1305
  56. package/src/components/CmdWidthLimitationWrapper.vue +1 -1
  57. package/src/components/EditComponentWrapper.vue +5 -5
  58. package/src/index.js +5 -0
  59. package/src/main.js +4 -3
  60. package/src/utils/template.js +57 -0
  61. package/src/assets/styles/template.css +0 -1
@@ -1,296 +1,297 @@
1
- /* component-library-global-styles.scss - last update: 2022/06/11 - IT IS NOT RECOMMENDED TO EDIT THIS FILE (TO AVOID TROUBLESHOOTING AFTER UPDATING) - DO CHANGES IN template.css ONLY */
2
-
3
- /* begin table of contents --------------------------------------------------------------------------------------------------------------------------------------------------- */
4
- /*
5
- - IMPORTS ------------------------
6
- - COMPONENTS AND GLOBAL STYLES ------------------------
7
- * ------------------------
8
- - main structure
9
-
10
- A ------------------------
11
- - avoid-scrolling
12
-
13
- E ------------------------
14
- - error-styles (for form-elements)
15
-
16
- F ------------------------
17
- - flags
18
-
19
- I ------------------------
20
- - input-wrapper (for .select)
21
-
22
- P ------------------------
23
- - print-preview
24
- - product-listing
25
-
26
- T ------------------------
27
- - tooltip
28
-
29
- - MEDIA QUERIES ------------------------
30
- - styles for medium screens
31
- - styles for small screens
32
-
33
- */
34
- /* end table of contents ----------------------------------------------------------------------------------------------------------------------------------------------------- */
35
-
36
- /* ---------------------------------------------- BEGIN IMPORTS -------------------------------------------------- */
37
- @import 'variables'; /* scss-variables (only used for media-query-breakpoints) */
38
- /* ---------------------------------------------- END IMPORTS ---------------------------------------------------- */
39
-
40
- /* assign scss-variables for breakpoints (from variables.scss) to css-variables, to get access to their value in JavaScript by getComputedStyle(document.documentElement).getPropertyValue */
41
- html {
42
- --medium-max-width: #{$medium-max-width};
43
- --small-max-width: #{$small-max-width};
44
- }
45
-
46
- /* ---------------------------------------------- BEGIN COMPONENTS AND GLOBAL STYLES -------------------------------------------------- */
47
- /* begin styles for main structure --------------------------------------------------------------------------------------------------------------------------------------------------- */
48
- main {
49
- flex: 1 0 auto;
50
- }
51
-
52
- html {
53
- height: auto;
54
- scroll-behavior: unset;
55
- }
56
-
57
- body {
58
- height: auto;
59
- }
60
-
61
- #component-library {
62
- scroll-snap-type: unset !important;
63
- }
64
-
65
- body, .cmd-site-header, .cmd-site-footer, .cmd-copyright-information {
66
- transition: background linear .5s;
67
- }
68
-
69
- /* end styles for main structure ----------------------------------------------------------------------------------------------------------------------------------------------------- */
70
-
71
- /* begin .avoid-scrolling --------------------------------------------------------------------------------------------------------------------------------------------------- */
72
- body.avoid-scrolling {
73
- overflow: hidden;
74
- height: 100%;
75
- }
76
-
77
- /* end .avoid-scrolling ----------------------------------------------------------------------------------------------------------------------------------------------------- */
78
-
79
- /* begin flags --------------------------------------------------------------------------------------------------------------------------------------------------- */
80
- .flag {
81
- width: 3rem;
82
- background-size: 100% 100%;
83
- display: block;
84
- aspect-ratio: 3/2;
85
- }
86
-
87
- a img.flag {
88
- border: 0;
89
- outline: var(--default-border);
90
- }
91
-
92
- /* end flags ----------------------------------------------------------------------------------------------------------------------------------------------------- */
93
-
94
- /* begin input-wrapper for .select --------------------------------------------------------------------------------------------------------------------------------------------------- */
95
- .select {
96
- height: var(--form-input-height); /* forces different browsers to render same height */
97
- }
98
-
99
- .input-wrapper {
100
- .select {
101
- &:first-of-type {
102
- > ul {
103
- > li {
104
- &:first-child {
105
- border-top-right-radius: 0;
106
- border-bottom-right-radius: 0;
107
- }
108
- }
109
- }
110
- }
111
-
112
- &:last-of-type {
113
- > ul {
114
- > li {
115
- &:first-child {
116
- border-top-left-radius: 0;
117
- border-bottom-left-radius: 0;
118
- }
119
- }
120
- }
121
- }
122
- }
123
- }
124
-
125
- /* end input-wrapper for .select --------------------------------------------------------------------------------------------------------------------------------------------------- */
126
-
127
- /* begin print-preview --------------------------------------------------------------------------------------------------------------------------------------------------- */
128
- #print-preview {
129
- .cmd-page-footer, .cmd-back-to-top-button {
130
- display: none;
131
- }
132
- }
133
- /* end print-preview --------------------------------------------------------------------------------------------------------------------------------------------------- */
134
-
135
- /* begin product-listing --------------------------------------------------------------------------------------------------------------------------------------------------- */
136
- #product-listing-wrapper {
137
- > a {
138
- border: var(--default-border);
139
- text-decoration: none;
140
- display: flex;
141
- flex-direction: column;
142
- grid-column: span var(--grid-small-span);
143
- order: 1;
144
-
145
- &:hover, &:active, &:focus {
146
- border-color: var(--primary-color);
147
- background: var(--default-background);
148
- }
149
- }
150
-
151
- img {
152
- order: 1;
153
- }
154
-
155
- &.products-squares {
156
- > a {
157
- grid-column: span calc(var(--grid-columns) / 2);
158
- }
159
- }
160
-
161
- &.products-lines {
162
- > a {
163
- grid-column: span var(--grid-columns);
164
- flex-direction: unset;
165
-
166
- img {
167
- margin-left: 0;
168
- }
169
- }
170
-
171
- & .product-information {
172
- display: flex;
173
- flex-direction: column;
174
- padding: calc(var(--default-padding) * 2);
175
- margin-right: auto;
176
- }
177
-
178
- .description {
179
- display: block;
180
- }
181
- }
182
-
183
- &.product-information {
184
- order: 2;
185
- }
186
-
187
- .description {
188
- display: none;
189
- }
190
-
191
- h3, div {
192
- padding: var(--default-padding);
193
- margin: 0;
194
- }
195
-
196
- h3, p {
197
- text-align: center;
198
- }
199
-
200
- .price {
201
- order: 3;
202
- margin-top: auto;
203
- }
204
-
205
- p {
206
- &:last-child {
207
- &, & > span {
208
- margin-bottom: 0;
209
- font-size: 2rem;
210
- }
211
- }
212
-
213
- > span {
214
- &:first-child {
215
- text-decoration: line-through;
216
- font-style: italic;
217
- margin-right: var(--default-margin);
218
- opacity: var(--reduced-opacity);
219
- font-size: 1.5rem;
220
- }
221
- }
222
- }
223
- }
224
-
225
- /* end product-listing ----------------------------------------------------------------------------------------------------------------------------------------------------- */
226
-
227
- /* begin tooltip for cmd-form-element and cmd-fake-select ---------------------------------------------------------------------------------------------------------------- */
228
- .cmd-form-element, .cmd-fake-select, .cmd-input-group {
229
- /*
230
- .cmd-tooltip {
231
- position: absolute;
232
- right: 0;
233
- transform: translateY(calc(-100% - calc(var(--default-margin) / 2)));
234
- left: auto !important; /* overwrite calculated inline-styles from javascript for cmd-tooltip-component
235
- top: 0 !important; /* overwrite calculated inline-styles from javascript for cmd-tooltip-component
236
- }
237
- */
238
- &:has([required]) {
239
- &.has-state, & + .cmd-tooltip {
240
- .label-text {
241
- > span, > a, sup {
242
- color: var(--status-color);
243
- }
244
- }
245
-
246
- &.error {
247
- --status-color: var(--error-color);
248
- }
249
-
250
- &.warning {
251
- --status-color: var(--warning-color);
252
- }
253
-
254
- &.success {
255
- --status-color: var(--success-color);
256
-
257
- .label-text > a {
258
- &:has([class*="icon-"]) {
259
- &:hover, &:active, &:focus {
260
- cursor: default;
261
-
262
- [class*="icon-"] {
263
- color: var(--success-color);
264
- }
265
- }
266
- }
267
- }
268
- }
269
-
270
- &.info {
271
- --status-color: var(--info-color);
272
- }
273
- }
274
- }
275
-
276
- & + .cmd-tooltip {
277
- border-color: var(--status-color);
278
- }
279
- }
280
- /* end tooltip for cmd-form-element and cmd-fake-select -------------------------------------------------------------------------------------------------------------------- */
281
- /* ----------------------------------------------- END COMPONENTS AND GLOBAL STYLES --------------------------------------------------- */
282
-
283
- /* ---------------------------------------------- BEGIN MEDIA QUERIES AND BROWSER SPECIFIC STYLES -------------------------------------------------- */
284
- /* begin styles for small screens --------------------------------------------------------------------------------------------------------------------------------------------------- */
285
- @media only screen and (width <= $small-max-width) {
286
- body, html {
287
- height: auto;
288
- }
289
-
290
- .section-wrapper {
291
- padding: calc(var(--default-padding) * 2) 0;
292
- }
293
- }
294
-
295
- /* end styles for small screens ----------------------------------------------------------------------------------------------------------------------------------------------------- */
1
+ /* component-library-global-styles.scss - last update: 2022/06/11 - IT IS NOT RECOMMENDED TO EDIT THIS FILE (TO AVOID TROUBLESHOOTING AFTER UPDATING) - DO CHANGES IN A TEMPLATE-CSS OF comand-frontend-framework OR YOUR OWN CSS ONLY */
2
+
3
+ /* begin table of contents --------------------------------------------------------------------------------------------------------------------------------------------------- */
4
+ /*
5
+ - IMPORTS ------------------------
6
+ - COMPONENTS AND GLOBAL STYLES ------------------------
7
+ * ------------------------
8
+ - main structure
9
+
10
+ A ------------------------
11
+ - avoid-scrolling
12
+
13
+ E ------------------------
14
+ - error-styles (for form-elements)
15
+
16
+ F ------------------------
17
+ - flags
18
+
19
+ I ------------------------
20
+ - input-wrapper (for .select)
21
+
22
+ P ------------------------
23
+ - print-preview
24
+ - product-listing
25
+
26
+ T ------------------------
27
+ - tooltip
28
+
29
+ - MEDIA QUERIES ------------------------
30
+ - styles for medium screens
31
+ - styles for small screens
32
+
33
+ */
34
+ /* end table of contents ----------------------------------------------------------------------------------------------------------------------------------------------------- */
35
+
36
+ /* ---------------------------------------------- BEGIN IMPORTS -------------------------------------------------- */
37
+ @import 'variables'; /* scss-variables (only used for media-query-breakpoints) */
38
+ /* ---------------------------------------------- END IMPORTS ---------------------------------------------------- */
39
+
40
+ /* assign scss-variables for breakpoints (from variables.scss) to css-variables, to get access to their value in JavaScript by getComputedStyle(document.documentElement).getPropertyValue */
41
+ :root {
42
+ --medium-max-width: #{$medium-max-width};
43
+ --small-max-width: #{$small-max-width};
44
+ }
45
+
46
+ /* ---------------------------------------------- BEGIN COMPONENTS AND GLOBAL STYLES -------------------------------------------------- */
47
+ /* begin styles for main structure --------------------------------------------------------------------------------------------------------------------------------------------------- */
48
+ :root {
49
+ height: auto;
50
+ scroll-behavior: unset;
51
+ }
52
+
53
+ body {
54
+ height: auto;
55
+ }
56
+
57
+
58
+ main {
59
+ flex: 1 0 auto;
60
+ }
61
+
62
+ #component-library {
63
+ scroll-snap-type: unset !important;
64
+ }
65
+
66
+ body, .cmd-site-header, .cmd-site-footer, .cmd-copyright-information {
67
+ transition: background linear .5s;
68
+ }
69
+
70
+ /* end styles for main structure ----------------------------------------------------------------------------------------------------------------------------------------------------- */
71
+
72
+ /* begin .avoid-scrolling --------------------------------------------------------------------------------------------------------------------------------------------------- */
73
+ body.avoid-scrolling {
74
+ overflow: hidden;
75
+ height: 100%;
76
+ }
77
+
78
+ /* end .avoid-scrolling ----------------------------------------------------------------------------------------------------------------------------------------------------- */
79
+
80
+ /* begin flags --------------------------------------------------------------------------------------------------------------------------------------------------- */
81
+ .flag {
82
+ width: 3rem;
83
+ background-size: 100% 100%;
84
+ display: block;
85
+ aspect-ratio: 3/2;
86
+ }
87
+
88
+ a img.flag {
89
+ border: 0;
90
+ outline: var(--default-border);
91
+ }
92
+
93
+ /* end flags ----------------------------------------------------------------------------------------------------------------------------------------------------- */
94
+
95
+ /* begin input-wrapper for .select --------------------------------------------------------------------------------------------------------------------------------------------------- */
96
+ .select {
97
+ height: var(--form-input-height); /* forces different browsers to render same height */
98
+ }
99
+
100
+ .input-wrapper {
101
+ .select {
102
+ &:first-of-type {
103
+ > ul {
104
+ > li {
105
+ &:first-child {
106
+ border-top-right-radius: 0;
107
+ border-bottom-right-radius: 0;
108
+ }
109
+ }
110
+ }
111
+ }
112
+
113
+ &:last-of-type {
114
+ > ul {
115
+ > li {
116
+ &:first-child {
117
+ border-top-left-radius: 0;
118
+ border-bottom-left-radius: 0;
119
+ }
120
+ }
121
+ }
122
+ }
123
+ }
124
+ }
125
+
126
+ /* end input-wrapper for .select --------------------------------------------------------------------------------------------------------------------------------------------------- */
127
+
128
+ /* begin print-preview --------------------------------------------------------------------------------------------------------------------------------------------------- */
129
+ #print-preview {
130
+ .cmd-page-footer, .cmd-back-to-top-button {
131
+ display: none;
132
+ }
133
+ }
134
+ /* end print-preview --------------------------------------------------------------------------------------------------------------------------------------------------- */
135
+
136
+ /* begin product-listing --------------------------------------------------------------------------------------------------------------------------------------------------- */
137
+ #product-listing-wrapper {
138
+ > a {
139
+ border: var(--default-border);
140
+ text-decoration: none;
141
+ display: flex;
142
+ flex-direction: column;
143
+ grid-column: span var(--grid-small-span);
144
+ order: 1;
145
+
146
+ &:hover, &:active, &:focus {
147
+ border-color: var(--primary-color);
148
+ background: var(--color-scheme-background-subtle);
149
+ }
150
+ }
151
+
152
+ img {
153
+ order: 1;
154
+ }
155
+
156
+ &.products-squares {
157
+ > a {
158
+ grid-column: span calc(var(--grid-columns) / 2);
159
+ }
160
+ }
161
+
162
+ &.products-lines {
163
+ > a {
164
+ grid-column: span var(--grid-columns);
165
+ flex-direction: unset;
166
+
167
+ img {
168
+ margin-left: 0;
169
+ }
170
+ }
171
+
172
+ & .product-information {
173
+ display: flex;
174
+ flex-direction: column;
175
+ padding: calc(var(--default-padding) * 2);
176
+ margin-right: auto;
177
+ }
178
+
179
+ .description {
180
+ display: block;
181
+ }
182
+ }
183
+
184
+ &.product-information {
185
+ order: 2;
186
+ }
187
+
188
+ .description {
189
+ display: none;
190
+ }
191
+
192
+ h3, div {
193
+ padding: var(--default-padding);
194
+ margin: 0;
195
+ }
196
+
197
+ h3, p {
198
+ text-align: center;
199
+ }
200
+
201
+ .price {
202
+ order: 3;
203
+ margin-top: auto;
204
+ }
205
+
206
+ p {
207
+ &:last-child {
208
+ &, & > span {
209
+ margin-bottom: 0;
210
+ font-size: 2rem;
211
+ }
212
+ }
213
+
214
+ > span {
215
+ &:first-child {
216
+ text-decoration: line-through;
217
+ font-style: italic;
218
+ margin-right: var(--default-margin);
219
+ opacity: var(--reduced-opacity);
220
+ font-size: 1.5rem;
221
+ }
222
+ }
223
+ }
224
+ }
225
+
226
+ /* end product-listing ----------------------------------------------------------------------------------------------------------------------------------------------------- */
227
+
228
+ /* begin tooltip for cmd-form-element and cmd-fake-select ---------------------------------------------------------------------------------------------------------------- */
229
+ .cmd-form-element, .cmd-fake-select, .cmd-input-group {
230
+ /*
231
+ .cmd-tooltip {
232
+ position: absolute;
233
+ right: 0;
234
+ transform: translateY(calc(-100% - calc(var(--default-margin) / 2)));
235
+ left: auto !important; /* overwrite calculated inline-styles from javascript for cmd-tooltip-component
236
+ top: 0 !important; /* overwrite calculated inline-styles from javascript for cmd-tooltip-component
237
+ }
238
+ */
239
+ &:has([required]) {
240
+ &.has-state, & + .cmd-tooltip {
241
+ .label-text {
242
+ > span, > a, sup {
243
+ color: var(--status-color);
244
+ }
245
+ }
246
+
247
+ &.error {
248
+ --status-color: var(--error-color-text);
249
+ }
250
+
251
+ &.warning {
252
+ --status-color: var(--warning-color-text);
253
+ }
254
+
255
+ &.success {
256
+ --status-color: var(--success-color-text);
257
+
258
+ .label-text > a {
259
+ &:has([class*="icon-"]) {
260
+ &:hover, &:active, &:focus {
261
+ cursor: default;
262
+
263
+ [class*="icon-"] {
264
+ color: var(--success-color-text);
265
+ }
266
+ }
267
+ }
268
+ }
269
+ }
270
+
271
+ &.info {
272
+ --status-color: var(--info-color-text);
273
+ }
274
+ }
275
+ }
276
+
277
+ & + .cmd-tooltip {
278
+ border-color: var(--status-color);
279
+ }
280
+ }
281
+ /* end tooltip for cmd-form-element and cmd-fake-select -------------------------------------------------------------------------------------------------------------------- */
282
+ /* ----------------------------------------------- END COMPONENTS AND GLOBAL STYLES --------------------------------------------------- */
283
+
284
+ /* ---------------------------------------------- BEGIN MEDIA QUERIES AND BROWSER SPECIFIC STYLES -------------------------------------------------- */
285
+ /* begin styles for small screens --------------------------------------------------------------------------------------------------------------------------------------------------- */
286
+ @media only screen and (width <= $small-max-width) {
287
+ body, html {
288
+ height: auto;
289
+ }
290
+
291
+ .section-wrapper {
292
+ padding: calc(var(--default-padding) * 2) 0;
293
+ }
294
+ }
295
+
296
+ /* end styles for small screens ----------------------------------------------------------------------------------------------------------------------------------------------------- */
296
297
  /* ----------------------------------------------- END MEDIA QUERIES AND BROWSER SPECIFIC STYLES --------------------------------------------------- */
@@ -856,8 +856,7 @@ export default {
856
856
  transition: "fade",
857
857
  textAlign: "center",
858
858
  validationStatus: "error",
859
- systemMessage: "This is an system message!",
860
- messageHeadlineLevel: 4
859
+ systemMessage: "This is an system message!"
861
860
  },
862
861
  cmdSystemMessageSettingsControls: {
863
862
  transition: [
@@ -966,26 +965,10 @@ export default {
966
965
  message: "This is a message!"
967
966
  },
968
967
  cmdTextImageBlockSettingsData: {
969
- htmlContent: "Text given as html-content",
970
- paragraphTextAlign: "left",
971
968
  headlinePosition: "aboveImage",
972
969
  orientation: "vertical"
973
970
  },
974
971
  cmdTextImageBlockSettingsControls: {
975
- paragraphTextAlign: [
976
- {
977
- text: "Left (default)",
978
- value: "left"
979
- },
980
- {
981
- text: "Center",
982
- value: "center"
983
- },
984
- {
985
- text: "Right",
986
- value: "right"
987
- }
988
- ],
989
972
  headlinePosition: [
990
973
  {
991
974
  text: "Above Image (default)",
@@ -7,7 +7,7 @@
7
7
  <summary :class="{'writing-mode-vertical' : summaryWritingMode === 'vertical'}">
8
8
  <CmdIcon :iconClass="toggleIconIconClassClosed" class="closed" :tooltip="cmdIconClosedRowView.tooltip" />
9
9
  <CmdIcon :iconClass="toggleIconIconClassOpen" class="open" :tooltip="cmdIconOpenRowView.tooltip" />
10
- <CmdHeadline v-bind="cmdHeadlineProperties" />
10
+ <CmdHeadline v-bind="cmdHeadlineProperties" :without-wrapper="true" />
11
11
  </summary>
12
12
  <div class="accordion-body">
13
13
  <!-- begin slot-content -->