comand-component-library 3.3.83 → 3.3.85

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. package/dist/comand-component-library.js +5630 -3936
  2. package/dist/comand-component-library.umd.cjs +4 -4
  3. package/dist/style.css +1 -1
  4. package/package.json +2 -2
  5. package/src/App.vue +215 -112
  6. package/src/assets/data/component-structure.json +228 -0
  7. package/src/assets/data/form-elements.json +156 -0
  8. package/src/assets/data/opening-hours.json +79 -37
  9. package/src/components/CmdAddressData.vue +187 -201
  10. package/src/components/CmdAddressDataItem.vue +306 -0
  11. package/src/components/CmdBox.vue +1 -0
  12. package/src/components/CmdBoxWrapper.vue +53 -5
  13. package/src/components/CmdFancyBox.vue +31 -4
  14. package/src/components/CmdForm.vue +98 -4
  15. package/src/components/CmdFormElement.vue +5 -1
  16. package/src/components/CmdHeadline.vue +179 -52
  17. package/src/components/CmdImage.vue +150 -21
  18. package/src/components/CmdImageGallery.vue +88 -85
  19. package/src/components/CmdListOfLinks.vue +63 -43
  20. package/src/components/CmdListOfLinksItem.vue +97 -0
  21. package/src/components/CmdLoginForm.vue +3 -6
  22. package/src/components/CmdMultistepFormProgressBar.vue +37 -8
  23. package/src/components/CmdOpeningHours.vue +280 -63
  24. package/src/components/CmdOpeningHoursItem.vue +264 -0
  25. package/src/components/{CmdPager.vue → CmdPagination.vue} +2 -2
  26. package/src/components/CmdSlideshow.vue +137 -10
  27. package/src/components/CmdSocialNetworks.vue +115 -28
  28. package/src/components/CmdSocialNetworksItem.vue +184 -0
  29. package/src/components/CmdTable.vue +0 -1
  30. package/src/components/CmdTextImageBlock.vue +158 -0
  31. package/src/components/CmdThumbnailScroller.vue +132 -12
  32. package/src/components/CmdToggleDarkMode.vue +58 -1
  33. package/src/components/EditComponentWrapper.vue +553 -0
  34. package/src/index.js +2 -2
  35. package/src/mixins/EditMode.vue +28 -9
  36. package/src/utils/editmode.js +30 -5
  37. package/src/components/CmdTextBlock.vue +0 -73
  38. package/src/editmode/editModeContext.js +0 -50
@@ -0,0 +1,228 @@
1
+ {
2
+ "CmdAddressData": {
3
+ "name": "CmdAddressData",
4
+ "props": {
5
+ "cmdHeadline": {
6
+ },
7
+ "linkGoogleMaps": false,
8
+ "addressData": [
9
+ {
10
+ "name": "name",
11
+ "iconClass": "icon-company",
12
+ "data": "Entry data",
13
+ "labelText": "Labeltext"
14
+ }
15
+ ]
16
+ }
17
+ },
18
+ "CmdContainer": {
19
+ "name": "CmdContainer",
20
+ "allowAddComponent": true,
21
+ "props": {
22
+ "class": "flex-container vertical"
23
+ },
24
+ "components": []
25
+ },
26
+ "CmdHeadline": {
27
+ "name": "CmdHeadline",
28
+ "props": {
29
+ "headlineText": "Headline",
30
+ "headlineLevel": "2"
31
+ }
32
+ },
33
+ "CmdImage": {
34
+ "name": "CmdImage",
35
+ "allowAddComponent": true,
36
+ "props": {
37
+ "image": {
38
+ "id": "",
39
+ "src": "media/images/demo-images/large/landscape-06.jpg",
40
+ "srcImageLarge": "media/images/demo-images/large/landscape-06.jpg",
41
+ "alt": "Alternative Text"
42
+ },
43
+ "figcaption": {
44
+ "show": true,
45
+ "position": "bottom",
46
+ "text": "Figcaption",
47
+ "textAlign": "center"
48
+ }
49
+ }
50
+ },
51
+ "CmdImageGallery": {
52
+ "name": "CmdImageGallery",
53
+ "props": {
54
+ "cmdHeadline": {
55
+ "headlineText": "Headline",
56
+ "headlineLevel": "3"
57
+ },
58
+ "images": [
59
+ {
60
+ "image": {
61
+ "src": "media/images/demo-images/medium/landscape-01.jpg",
62
+ "srcImageLarge": "media/images/demo-images/large/landscape-01.jpg",
63
+ "alt": "Alternative text"
64
+ },
65
+ "figcaption": {
66
+ "show": true,
67
+ "position": "bottom",
68
+ "text": "Figcaption",
69
+ "textAlign": "center"
70
+ }
71
+ }
72
+ ]
73
+ }
74
+ },
75
+ "CmdListOfLinks": {
76
+ "name": "CmdListOfLinks",
77
+ "props": {
78
+ "cmdHeadline": {
79
+ "headlineText": "Headline",
80
+ "headlineLevel": "3"
81
+ },
82
+ "links": [
83
+ {
84
+ "iconClass": "icon-user-profile",
85
+ "type": "href",
86
+ "text": "Linktext",
87
+ "path": "#",
88
+ "tooltip": "Tooltip"
89
+ }
90
+ ]
91
+ }
92
+ },
93
+ "CmdOpeningHours": {
94
+ "name": "CmdOpeningHours",
95
+ "props": {
96
+ "cmdHeadline": {
97
+ "headlineText": "Headline",
98
+ "headlineLevel": "3"
99
+ },
100
+ "textHolidays": "",
101
+ "textMiscInfo": "",
102
+ "openingHours": [
103
+ {
104
+ "day": "Day name",
105
+ "am": {
106
+ "fromTime": "00:00",
107
+ "tillTime": "00:00",
108
+ "displayText": "open"
109
+ },
110
+ "pm": {
111
+ "fromTime": "00:00",
112
+ "tillTime": "00:00",
113
+ "displayText": "closed"
114
+ }
115
+ }
116
+ ]
117
+ }
118
+ },
119
+ "CmdSlideshow": {
120
+ "name": "CmdSlideshow",
121
+ "props": {
122
+ "slideshowItems": [
123
+ {
124
+ "image": {
125
+ "src": {
126
+ "large": "/media/images/slideshow-images/large/slide1.jpg",
127
+ "medium": "/media/images/slideshow-images/medium/slide1.jpg",
128
+ "small": "/media/images/slideshow-images/small/slide1.jpg"
129
+ },
130
+ "alt": "Alternative text",
131
+ "tooltip": "Tooltip"
132
+ },
133
+ "figcaption": {
134
+ "text": "Figcaption",
135
+ "position": "bottom",
136
+ "textAlign": "center",
137
+ "show": true
138
+ },
139
+ "link": {
140
+ "href": "#",
141
+ "target": null
142
+ }
143
+ }
144
+ ]
145
+ }
146
+ },
147
+ "CmdSocialNetworks": {
148
+ "name": "CmdSocialNetworks",
149
+ "props": {
150
+ "cmdHeadline": {
151
+ "headlineText": "Headline",
152
+ "headlineLevel": "2"
153
+ },
154
+ "networks": [
155
+ {
156
+ "id": "social-network-facebook",
157
+ "path": "https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fdevelopment.comand-cms.com%2Fmodule%2Fteam.html",
158
+ "tooltip": "Share this page on facebook",
159
+ "iconClass": "icon-facebook",
160
+ "linkText": "Share"
161
+ }
162
+ ]
163
+ }
164
+ },
165
+ "CmdTextImageBlock": {
166
+ "name": "CmdTextImageBlock",
167
+ "props": {
168
+ "cmdHeadline": {
169
+ "headlineText": "Headline",
170
+ "headlineLevel": "2"
171
+ },
172
+ "cmdImage": {
173
+ "image": {
174
+ "src": "/media/images/demo-images/large/landscape-01.jpg",
175
+ "alt": "alternative text",
176
+ "tooltip": "tooltip"
177
+ },
178
+ "figcaption": {
179
+ "text": "figcaption",
180
+ "position": "bottom",
181
+ "textAlign": "center",
182
+ "show": true
183
+ }
184
+ },
185
+ "htmlContent": "<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt.</p><p> Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugia a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. <br />Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna. Sed consequat, leo eget bibendum sodales, augue velit cursus nunc.</p>"
186
+ }
187
+ },
188
+ "CmdThumbnailScroller": {
189
+ "name": "CmdThumbnailScroller",
190
+ "props": {
191
+ "cmdHeadline": {
192
+ "headlineText": "Headline",
193
+ "headlineLevel": "2"
194
+ },
195
+ "thumbnailScrollerItems": [
196
+ {
197
+ "image": {
198
+ "id": 1,
199
+ "src": "media/images/demo-images/small/landscape-01.jpg",
200
+ "srcImageLarge": "media/images/demo-images/large/landscape-01.jpg",
201
+ "alt": "Alternative Text"
202
+ },
203
+ "figcaption": {
204
+ "show": true,
205
+ "position": "bottom",
206
+ "text": "Figcaption",
207
+ "textAlign": "center"
208
+ }
209
+ }
210
+ ]
211
+ }
212
+ },
213
+ "CmdToggleDarkMode": {
214
+ "name": "CmdToggleDarkMode",
215
+ "props": {
216
+ "showLabel": true,
217
+ "labelTextDarkMode": "Labeltext Dark Mode",
218
+ "labelTextLightMode": "Labeltext Light Mode"
219
+ }
220
+ },
221
+ "section": {
222
+ "id": "section-new",
223
+ "useFullDeviceWidth": false,
224
+ "showLinkInMainNavigation": false,
225
+ "allowAddComponent": true,
226
+ "components": []
227
+ }
228
+ }
@@ -0,0 +1,156 @@
1
+ [
2
+ {
3
+ "element": "input",
4
+ "type": "text",
5
+ "name": "form-element-text-name",
6
+ "htmlClass": "form-element-text-class",
7
+ "value": "default value",
8
+ "fieldIconClass": "icon-lock",
9
+ "labelText": "Text input",
10
+ "placeholder": "Placeholdertext",
11
+ "required": false,
12
+ "disabled": false
13
+ },
14
+ {
15
+ "element": "input",
16
+ "type": "number",
17
+ "name": "form-element-number-name",
18
+ "htmlClass": "form-element-number-class",
19
+ "id": "form-element-number-id",
20
+ "value": "default value",
21
+ "fieldIconClass": "icon-cogs",
22
+ "labelText": "Number input (required)",
23
+ "placeholder": "Placeholdertext",
24
+ "required": true,
25
+ "disabled": false
26
+ },
27
+ {
28
+ "element": "input",
29
+ "type": "password",
30
+ "name": "form-element-password-name",
31
+ "htmlClass": "form-element-password-class",
32
+ "id": "form-element-password-id",
33
+ "value": "default value",
34
+ "fieldIconClass": "icon-cogs",
35
+ "labelText": "Password input",
36
+ "placeholder": "Placeholdertext",
37
+ "required": false,
38
+ "disabled": false
39
+ },
40
+ {
41
+ "element": "input",
42
+ "type": "tel",
43
+ "name": "form-element-tel-name",
44
+ "htmlClass": "form-element-tel-class",
45
+ "id": "form-element-tel-id",
46
+ "value": "default value",
47
+ "fieldIconClass": "icon-tel",
48
+ "labelText": "Telephone input (disabled)",
49
+ "placeholder": "Placeholdertext",
50
+ "required": false,
51
+ "disabled": true
52
+ },
53
+ {
54
+ "element": "input",
55
+ "type": "email",
56
+ "name": "form-element-email-name",
57
+ "htmlClass": "form-element-email-class",
58
+ "id": "form-element-email-id",
59
+ "value": "default value",
60
+ "fieldIconClass": "icon-email",
61
+ "labelText": "Email input (with icon)",
62
+ "placeholder": "Placeholdertext",
63
+ "required": false,
64
+ "disabled": false
65
+ },
66
+ {
67
+ "element": "select",
68
+ "name": "form-element-select-name",
69
+ "htmlClass": "form-element-select-class",
70
+ "id": "form-element-select-id",
71
+ "value": "option2",
72
+ "selectOptions": [
73
+ {
74
+ "text": "Please select...",
75
+ "value": null
76
+ },
77
+ {
78
+ "text": "Option 1",
79
+ "value": "option1"
80
+ },
81
+ {
82
+ "text": "Option 2",
83
+ "value": "option2"
84
+ },
85
+ {
86
+ "text": "Option 3",
87
+ "value": "option3"
88
+ }
89
+ ],
90
+ "labelText": "Select",
91
+ "placeholder": "Placeholdertext",
92
+ "required": false,
93
+ "disabled": false
94
+ },
95
+ {
96
+ "element": "input",
97
+ "type": "checkbox",
98
+ "name": "form-element-checkbox-name",
99
+ "htmlClass": "form-element-checkbox-class",
100
+ "id": "form-element-checkbox-id1",
101
+ "value": "checkboxInputValue1",
102
+ "inputValue": "checkboxInputValue1",
103
+ "labelText": "Checkbox",
104
+ "placeholder": "Placeholdertext",
105
+ "required": false,
106
+ "disabled": false
107
+ },
108
+ {
109
+ "element": "input",
110
+ "type": "checkbox",
111
+ "name": "form-element-checkbox-name",
112
+ "htmlClass": "form-element-checkbox-class",
113
+ "id": "form-element-checkbox-id2",
114
+ "inputValue": "checkboxInputValue2",
115
+ "labelText": "Checkbox",
116
+ "placeholder": "Placeholdertext",
117
+ "required": false,
118
+ "disabled": false
119
+ },
120
+ {
121
+ "element": "input",
122
+ "type": "radio",
123
+ "name": "form-element-radio-name",
124
+ "htmlClass": "form-element-radio-class",
125
+ "id": "form-element-radio-id1",
126
+ "inputValue": "valueRadioButton1",
127
+ "labelText": "Radio",
128
+ "placeholder": "Placeholdertext",
129
+ "required": false,
130
+ "disabled": false
131
+ },
132
+ {
133
+ "element": "input",
134
+ "type": "radio",
135
+ "name": "form-element-radio-name",
136
+ "htmlClass": "form-element-radio-class",
137
+ "id": "form-element-radio-id2",
138
+ "value": "valueRadioButton2",
139
+ "inputValue": "valueRadioButton2",
140
+ "labelText": "Radio",
141
+ "placeholder": "Placeholdertext",
142
+ "required": false,
143
+ "disabled": false
144
+ },
145
+ {
146
+ "element": "textarea",
147
+ "name": "form-element-textarea-name",
148
+ "htmlClass": "form-element-textarea-class",
149
+ "id": "form-element-textarea-id",
150
+ "value": "default value",
151
+ "labelText": "Textarea",
152
+ "placeholder": "Placeholdertext",
153
+ "required": false,
154
+ "disabled": false
155
+ }
156
+ ]
@@ -1,41 +1,83 @@
1
1
  [
2
- {
3
- "day": "Mo",
4
- "fromTime": "08:00",
5
- "tillTime": "17:00"
6
- },
7
- {
8
- "day": "Tu",
9
- "fromTime": "08:00",
10
- "tillTime": "17:00"
11
- },
12
- {
13
- "day": "We",
14
- "fromTime": "08:00",
15
- "tillTime": "17:30"
16
- },
17
-
18
- {
19
- "day": "Th",
20
- "fromTime": "08:00",
21
- "tillTime": "17:00"
22
- },
23
- {
24
- "day": "Fr",
25
- "fromTime": "08:00",
26
- "tillTime": "15:00"
27
- },
28
- {
29
- "day": "Sa",
30
- "fromTime": "08:00",
31
- "tillTime": "17:28"
32
- },
33
- {
34
- "day": "So",
35
- "fromTime": "08:00",
36
- "tillTime": "22:22"
37
- }
2
+ {
3
+ "day": "Mondays",
4
+ "am": {
5
+ "fromTime": "08:00",
6
+ "tillTime": "12:00",
7
+ "displayText": "open"
8
+ },
9
+ "pm": {
10
+ "fromTime": "13:00",
11
+ "tillTime": "18:00",
12
+ "displayText": "closed"
13
+ }
14
+ },
15
+ {
16
+ "day": "Tu",
17
+ "am": {
18
+ "fromTime": "08:00",
19
+ "tillTime": "12:01"
20
+ },
21
+ "pm": {
22
+ "fromTime": "13:00",
23
+ "tillTime": "18:00"
24
+ }
25
+ },
26
+ {
27
+ "day": "We",
28
+ "am": {
29
+ "fromTime": "08:00",
30
+ "tillTime": "12:00"
31
+ },
32
+ "pm": {
33
+ "fromTime": "13:00",
34
+ "tillTime": "18:00"
35
+ }
36
+ },
37
+ {
38
+ "day": "Th",
39
+ "am": {
40
+ "fromTime": "08:00",
41
+ "tillTime": "12:00"
42
+ },
43
+ "pm": {
44
+ "fromTime": "13:00",
45
+ "tillTime": "18:00"
46
+ }
47
+ },
48
+ {
49
+ "day": "Fr",
50
+ "am": {
51
+ "fromTime": "08:00",
52
+ "tillTime": "12:00"
53
+ },
54
+ "pm": {
55
+ "fromTime": "13:00",
56
+ "tillTime": "18:00"
57
+ }
58
+ },
59
+ {
60
+ "day": "Sa",
61
+ "am": {
62
+ "fromTime": "08:00",
63
+ "tillTime": "12:00"
64
+ },
65
+ "pm": {
66
+ "fromTime": "13:00",
67
+ "tillTime": "18:00"
68
+ }
69
+ },
70
+ {
71
+ "day": "So",
72
+ "am": {
73
+ "fromTime": "08:00",
74
+ "tillTime": "12:00"
75
+ },
76
+ "pm": {
77
+ "fromTime": "13:00",
78
+ "tillTime": "18:00"
79
+ }
80
+ }
38
81
  ]
39
82
 
40
83
 
41
-