@lemonadejs/calendar 3.6.0 → 5.2.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.
- package/README.md +3 -3
- package/dist/index.d.ts +64 -14
- package/dist/index.js +3173 -309
- package/dist/style.css +88 -35
- package/package.json +3 -3
package/dist/style.css
CHANGED
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
position: relative;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
.lm-calendar[data-disabled] .lm-calendar-container[data-view="days"] .lm-calendar-content,
|
|
12
|
+
.lm-calendar[data-disabled] .lm-calendar-footer {
|
|
13
|
+
opacity: 0.5;
|
|
14
|
+
pointer-events: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
11
17
|
.lm-calendar button {
|
|
12
18
|
cursor: pointer;
|
|
13
19
|
}
|
|
@@ -53,7 +59,8 @@
|
|
|
53
59
|
display: flex;
|
|
54
60
|
flex: 1;
|
|
55
61
|
cursor: pointer;
|
|
56
|
-
padding
|
|
62
|
+
padding: 5px;
|
|
63
|
+
margin: 10px 0;
|
|
57
64
|
}
|
|
58
65
|
|
|
59
66
|
.lm-calendar-header .lm-calendar-labels > button {
|
|
@@ -67,13 +74,7 @@
|
|
|
67
74
|
.lm-calendar-navigation {
|
|
68
75
|
display: grid;
|
|
69
76
|
grid-template-columns: repeat(2, 1fr);
|
|
70
|
-
gap:
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.lm-calendar-navigation button {
|
|
74
|
-
padding: 8px;
|
|
75
|
-
border: 0;
|
|
76
|
-
border-radius: 24px;
|
|
77
|
+
gap: 1px;
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
.lm-calendar-navigation i:hover {
|
|
@@ -86,11 +87,12 @@
|
|
|
86
87
|
grid-template-columns: repeat(7, 1fr);
|
|
87
88
|
padding: 0 8px 0 8px;
|
|
88
89
|
font-size: 0.8em;
|
|
90
|
+
align-items: center;
|
|
91
|
+
justify-content: center;
|
|
89
92
|
}
|
|
90
93
|
|
|
91
94
|
.lm-calendar-container[data-view="days"] .lm-calendar-weekdays {
|
|
92
95
|
display: grid;
|
|
93
|
-
align-items: center;
|
|
94
96
|
flex: 1;
|
|
95
97
|
}
|
|
96
98
|
|
|
@@ -101,6 +103,7 @@
|
|
|
101
103
|
text-align: center;
|
|
102
104
|
font-weight: bold;
|
|
103
105
|
line-height: 2em;
|
|
106
|
+
justify-content: center;
|
|
104
107
|
}
|
|
105
108
|
|
|
106
109
|
.lm-calendar-content {
|
|
@@ -125,6 +128,11 @@
|
|
|
125
128
|
background-origin: padding-box;
|
|
126
129
|
}
|
|
127
130
|
|
|
131
|
+
.lm-calendar-content > div[data-disabled="true"] {
|
|
132
|
+
pointer-events: none;
|
|
133
|
+
opacity: 0.3;
|
|
134
|
+
}
|
|
135
|
+
|
|
128
136
|
.lm-calendar-container[data-view="months"] .lm-calendar-content {
|
|
129
137
|
grid-template-columns: repeat(4, 1fr);
|
|
130
138
|
}
|
|
@@ -185,14 +193,20 @@
|
|
|
185
193
|
top: calc(25%);
|
|
186
194
|
height: 50%;
|
|
187
195
|
background-color: var(--lm-main-color-alpha, #2196f388);
|
|
196
|
+
z-index: -1;
|
|
188
197
|
}
|
|
189
198
|
|
|
190
199
|
.lm-calendar-content > div[data-start="true"]::before {
|
|
191
|
-
left:
|
|
200
|
+
left: 5px;
|
|
201
|
+
border-top-left-radius: 20%;
|
|
202
|
+
border-bottom-left-radius: 20%;
|
|
192
203
|
}
|
|
193
204
|
|
|
194
|
-
.lm-calendar-content > div[data-end="true"]::before
|
|
195
|
-
|
|
205
|
+
.lm-calendar-content > div[data-end="true"]::before,
|
|
206
|
+
.lm-calendar-content > div[data-last="true"]::before {
|
|
207
|
+
right: 5px;
|
|
208
|
+
border-top-right-radius: 20%;
|
|
209
|
+
border-bottom-right-radius: 20%;
|
|
196
210
|
}
|
|
197
211
|
|
|
198
212
|
.lm-calendar-footer > div {
|
|
@@ -211,7 +225,7 @@
|
|
|
211
225
|
display: none;
|
|
212
226
|
}
|
|
213
227
|
|
|
214
|
-
.lm-calendar-footer
|
|
228
|
+
.lm-calendar-footer .lm-calendar-control {
|
|
215
229
|
border: 0;
|
|
216
230
|
background-color: transparent;
|
|
217
231
|
padding: 6px;
|
|
@@ -245,6 +259,65 @@
|
|
|
245
259
|
display: none;
|
|
246
260
|
}
|
|
247
261
|
|
|
262
|
+
.lm-calendar .lm-calendar-icon {
|
|
263
|
+
font-family: "Material Symbols Outlined", "Material Icons", "FontAwesome";
|
|
264
|
+
font-size: 24px;
|
|
265
|
+
width: 40px;
|
|
266
|
+
height: 40px;
|
|
267
|
+
line-height: 24px;
|
|
268
|
+
box-sizing: border-box;
|
|
269
|
+
border-radius: 20px;
|
|
270
|
+
border: 0;
|
|
271
|
+
padding: 0;
|
|
272
|
+
margin: 0;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.lm-calendar[data-type="picker"] .lm-modal {
|
|
276
|
+
position: fixed;
|
|
277
|
+
left: 0;
|
|
278
|
+
bottom: 0;
|
|
279
|
+
min-width: 100%;
|
|
280
|
+
min-height: 40px;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.lm-calendar[data-type="picker"] .lm-calendar-content > div {
|
|
284
|
+
aspect-ratio: initial;
|
|
285
|
+
min-height: 60px;
|
|
286
|
+
border-radius: 4px;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.lm-calendar[data-type="picker"] .lm-calendar-weekdays > div {
|
|
290
|
+
min-height: 60px;
|
|
291
|
+
line-height: 60px;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
/** Calendar with grid lines */
|
|
296
|
+
|
|
297
|
+
.lm-calendar[data-grid="true"] .lm-calendar-weekdays {
|
|
298
|
+
padding: 0;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.lm-calendar[data-grid="true"] .lm-calendar-content {
|
|
302
|
+
border-top: 1px solid transparent;
|
|
303
|
+
border-left: 1px solid transparent;
|
|
304
|
+
border-right: 1px solid #ccc;
|
|
305
|
+
border-bottom: 1px solid #ccc;
|
|
306
|
+
padding: 0;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.lm-calendar[data-grid="true"] .lm-calendar-content > div {
|
|
310
|
+
border-top: 1px solid #ccc;
|
|
311
|
+
border-left: 1px solid #ccc;
|
|
312
|
+
border-right: 1px solid transparent;
|
|
313
|
+
border-bottom: 1px solid transparent;
|
|
314
|
+
border-radius: 0;
|
|
315
|
+
justify-content: start;
|
|
316
|
+
align-items: end;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/** Other */
|
|
320
|
+
|
|
248
321
|
.lm-ripple {
|
|
249
322
|
background-position: center;
|
|
250
323
|
transition: background 0.8s;
|
|
@@ -260,6 +333,8 @@
|
|
|
260
333
|
transition: background 0s;
|
|
261
334
|
}
|
|
262
335
|
|
|
336
|
+
/** Dark mode */
|
|
337
|
+
|
|
263
338
|
.lm-dark-mode .lm-calendar-weekdays {
|
|
264
339
|
color: #aaa;
|
|
265
340
|
}
|
|
@@ -279,25 +354,3 @@
|
|
|
279
354
|
.lm-dark-mode .lm-calendar-footer select:focus {
|
|
280
355
|
background-color: #3a3a45;
|
|
281
356
|
}
|
|
282
|
-
|
|
283
|
-
.lm-calendar[data-grid="true"] .lm-calendar-weekdays {
|
|
284
|
-
padding: 0;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
.lm-calendar[data-grid="true"] .lm-calendar-content {
|
|
288
|
-
border-top: 1px solid transparent;
|
|
289
|
-
border-left: 1px solid transparent;
|
|
290
|
-
border-right: 1px solid #ccc;
|
|
291
|
-
border-bottom: 1px solid #ccc;
|
|
292
|
-
padding: 0;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
.lm-calendar[data-grid="true"] .lm-calendar-content > div {
|
|
296
|
-
border-top: 1px solid #ccc;
|
|
297
|
-
border-left: 1px solid #ccc;
|
|
298
|
-
border-right: 1px solid transparent;
|
|
299
|
-
border-bottom: 1px solid transparent;
|
|
300
|
-
border-radius: 0;
|
|
301
|
-
justify-content: start;
|
|
302
|
-
align-items: end;
|
|
303
|
-
}
|
package/package.json
CHANGED
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"javascript plugins"
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"lemonadejs": "^
|
|
18
|
-
"@lemonadejs/modal": "^
|
|
17
|
+
"lemonadejs": "^5.2.0",
|
|
18
|
+
"@lemonadejs/modal": "^5.2.0"
|
|
19
19
|
},
|
|
20
20
|
"main": "dist/index.js",
|
|
21
21
|
"types": "dist/index.d.ts",
|
|
22
|
-
"version": "
|
|
22
|
+
"version": "5.2.0"
|
|
23
23
|
}
|