comand-component-library 3.1.87 → 3.1.88
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.umd.min.js +1 -1
- package/package.json +1 -1
- package/src/App.vue +1063 -1059
- package/src/assets/data/opening-hours.json +10 -0
- package/src/assets/styles/global-styles.scss +19 -2
- package/src/components/CmdOpeningHours.vue +11 -0
- package/src/components/CmdSiteHeader.vue +4 -0
- package/src/documentation/generated/CmdOpeningHoursPropertyDescriptions.json +2 -2
@@ -4,6 +4,12 @@
|
|
4
4
|
/*
|
5
5
|
- IMPORTS ------------------------
|
6
6
|
- COMPONENTS AND GLOBAL STYLES ------------------------
|
7
|
+
* ------------------------
|
8
|
+
- main structure
|
9
|
+
|
10
|
+
A ------------------------
|
11
|
+
- avoid-scrolling
|
12
|
+
|
7
13
|
E ------------------------
|
8
14
|
- error-styles (for form-elements)
|
9
15
|
|
@@ -33,12 +39,23 @@
|
|
33
39
|
@import 'variables'; /* scss-variables (only used for media-query-breakpoints) */
|
34
40
|
/* ---------------------------------------------- END IMPORTS -------------------------------------------------- */
|
35
41
|
|
42
|
+
/* ---------------------------------------------- BEGIN COMPONENTS AND GLOBAL STYLES -------------------------------------------------- */
|
43
|
+
/* begin styles for main structure --------------------------------------------------------------------------------------------------------------------------------------------------- */
|
44
|
+
#page-wrapper {
|
45
|
+
display: flex;
|
46
|
+
flex-direction: column;
|
47
|
+
min-height: 100vh;
|
48
|
+
|
49
|
+
.cmd-site-footer {
|
50
|
+
margin-top: auto;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
36
54
|
body, .cmd-site-header, .cmd-site-footer, .cmd-copyright-information {
|
37
55
|
transition: background linear .5s;
|
38
56
|
}
|
57
|
+
/* end styles for main structure --------------------------------------------------------------------------------------------------------------------------------------------------- */
|
39
58
|
|
40
|
-
|
41
|
-
/* ---------------------------------------------- BEGIN COMPONENTS AND GLOBAL STYLES -------------------------------------------------- */
|
42
59
|
/* begin .avoid-scrolling --------------------------------------------------------------------------------------------------------------------------------------------------- */
|
43
60
|
body.avoid-scrolling {
|
44
61
|
overflow: hidden;
|
@@ -134,15 +134,26 @@ export default {
|
|
134
134
|
type: Object,
|
135
135
|
required: false
|
136
136
|
},
|
137
|
+
/**
|
138
|
+
* option to set custom time format by function
|
139
|
+
*/
|
137
140
|
timeFormatter: {
|
138
141
|
type: Function,
|
139
142
|
required: false
|
140
143
|
},
|
144
|
+
/**
|
145
|
+
* activate if component should update open-/closed-status on its own
|
146
|
+
*/
|
141
147
|
componentHandlesClosedStatus: {
|
142
148
|
type: Boolean,
|
143
149
|
default: true
|
144
150
|
}
|
145
151
|
},
|
152
|
+
created() {
|
153
|
+
setInterval(function () {
|
154
|
+
this.isClosed()
|
155
|
+
}, 5000)
|
156
|
+
},
|
146
157
|
computed: {
|
147
158
|
textOpenClosed() {
|
148
159
|
return this.isClosed ? this.textClosed : this.textOpen
|
@@ -46,12 +46,12 @@
|
|
46
46
|
},
|
47
47
|
"timeFormatter": {
|
48
48
|
"comments": [
|
49
|
-
"
|
49
|
+
"option to set custom time format by function"
|
50
50
|
]
|
51
51
|
},
|
52
52
|
"componentHandlesClosedStatus": {
|
53
53
|
"comments": [
|
54
|
-
"
|
54
|
+
"activate if component should update open-/closed-status on its own"
|
55
55
|
]
|
56
56
|
}
|
57
57
|
}
|