@thinkpixellab-public/px-vue 4.0.1 → 4.0.3
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/components/PxClock.vue
CHANGED
|
@@ -217,19 +217,19 @@ export default {
|
|
|
217
217
|
&__hand-min,
|
|
218
218
|
&__hand-min-hover {
|
|
219
219
|
@include abs;
|
|
220
|
-
|
|
221
|
-
|
|
220
|
+
&::before,
|
|
221
|
+
&::after {
|
|
222
222
|
content: '';
|
|
223
223
|
display: block;
|
|
224
224
|
position: absolute;
|
|
225
225
|
}
|
|
226
|
-
|
|
226
|
+
&::before {
|
|
227
227
|
border-radius: 50%;
|
|
228
228
|
top: 50%;
|
|
229
229
|
left: 50%;
|
|
230
230
|
transform: translate(-50%, -50%);
|
|
231
231
|
}
|
|
232
|
-
|
|
232
|
+
&::after {
|
|
233
233
|
bottom: 50%;
|
|
234
234
|
left: 50%;
|
|
235
235
|
transform: translateX(-50%);
|
|
@@ -239,12 +239,12 @@ export default {
|
|
|
239
239
|
&__hand-hour-shadow,
|
|
240
240
|
&__hand-hour-hover,
|
|
241
241
|
&__hand-hour {
|
|
242
|
-
|
|
242
|
+
&::before {
|
|
243
243
|
width: $hour-width + 4px;
|
|
244
244
|
height: $hour-width + 4px;
|
|
245
245
|
background-color: $hour-color;
|
|
246
246
|
}
|
|
247
|
-
|
|
247
|
+
&::after {
|
|
248
248
|
height: $hour-height;
|
|
249
249
|
width: $hour-width;
|
|
250
250
|
background-color: $hour-color;
|
|
@@ -253,20 +253,20 @@ export default {
|
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
&__hand-hour-hover {
|
|
256
|
-
|
|
257
|
-
|
|
256
|
+
&::before,
|
|
257
|
+
&::after {
|
|
258
258
|
background-color: $hour-hover;
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
&__hand-hour-shadow {
|
|
263
263
|
margin-top: 3px;
|
|
264
|
-
|
|
264
|
+
&::before {
|
|
265
265
|
background-color: rgba(black, 0.5);
|
|
266
266
|
box-shadow: 0px 0px 4px black;
|
|
267
267
|
opacity: 0.25;
|
|
268
268
|
}
|
|
269
|
-
|
|
269
|
+
&::after {
|
|
270
270
|
background-color: rgba(black, 0.5);
|
|
271
271
|
box-shadow: 0px 0px 4px black;
|
|
272
272
|
opacity: 0.25;
|
|
@@ -275,12 +275,12 @@ export default {
|
|
|
275
275
|
|
|
276
276
|
&__hand-min,
|
|
277
277
|
&__hand-min-hover {
|
|
278
|
-
|
|
278
|
+
&::before {
|
|
279
279
|
width: $min-width + 2px;
|
|
280
280
|
height: $min-width + 2px;
|
|
281
281
|
background-color: $min-color;
|
|
282
282
|
}
|
|
283
|
-
|
|
283
|
+
&::after {
|
|
284
284
|
height: $min-height;
|
|
285
285
|
width: $min-width;
|
|
286
286
|
background-color: $min-color;
|
|
@@ -289,8 +289,8 @@ export default {
|
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
&__hand-min-hover {
|
|
292
|
-
|
|
293
|
-
|
|
292
|
+
&::before,
|
|
293
|
+
&::after {
|
|
294
294
|
background-color: $min-hover;
|
|
295
295
|
}
|
|
296
296
|
}
|
|
@@ -426,7 +426,7 @@ export default {
|
|
|
426
426
|
|
|
427
427
|
&__hour {
|
|
428
428
|
text-align: right;
|
|
429
|
-
|
|
429
|
+
&::before {
|
|
430
430
|
// derive a fixed size from this
|
|
431
431
|
content: '10';
|
|
432
432
|
color: transparent;
|
|
@@ -439,7 +439,7 @@ export default {
|
|
|
439
439
|
|
|
440
440
|
&__min {
|
|
441
441
|
text-align: center;
|
|
442
|
-
|
|
442
|
+
&::before {
|
|
443
443
|
// derive a fixed size from this
|
|
444
444
|
content: '00';
|
|
445
445
|
color: transparent;
|
|
@@ -450,11 +450,11 @@ export default {
|
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
452
|
|
|
453
|
-
&__hour
|
|
453
|
+
&__hour::after {
|
|
454
454
|
background-color: $hour-color;
|
|
455
455
|
}
|
|
456
456
|
|
|
457
|
-
&__min
|
|
457
|
+
&__min::after {
|
|
458
458
|
background-color: $min-color;
|
|
459
459
|
}
|
|
460
460
|
|
package/components/PxResizer.vue
CHANGED
package/components/PxSlides.vue
CHANGED
|
@@ -203,22 +203,25 @@ export default {
|
|
|
203
203
|
if (check !== this.lethargyPrevCheck) {
|
|
204
204
|
if (check) {
|
|
205
205
|
if (check > 0) {
|
|
206
|
-
this.previous();
|
|
206
|
+
this.previous(false);
|
|
207
207
|
} else {
|
|
208
|
-
this.next();
|
|
208
|
+
this.next(false);
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
this.lethargyPrevCheck = check;
|
|
214
|
+
|
|
215
|
+
e.stopPropagation();
|
|
216
|
+
e.preventDefault();
|
|
214
217
|
},
|
|
215
218
|
|
|
216
|
-
next() {
|
|
217
|
-
this.selectOffsetSafe(1, this.loop);
|
|
219
|
+
next(loopOverride = null) {
|
|
220
|
+
this.selectOffsetSafe(1, loopOverride === null ? this.loop : loopOverride);
|
|
218
221
|
},
|
|
219
222
|
|
|
220
|
-
previous() {
|
|
221
|
-
this.selectOffsetSafe(-1, this.loop);
|
|
223
|
+
previous(loopOverride = null) {
|
|
224
|
+
this.selectOffsetSafe(-1, loopOverride === null ? this.loop : loopOverride);
|
|
222
225
|
},
|
|
223
226
|
|
|
224
227
|
// returns the index of the item relative to the selected item, if looped
|
package/components/PxSpinner.vue
CHANGED
|
@@ -85,8 +85,8 @@ export default {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
&__spinner,
|
|
88
|
-
&__spinner
|
|
89
|
-
&__spinner
|
|
88
|
+
&__spinner::before,
|
|
89
|
+
&__spinner::after {
|
|
90
90
|
position: absolute;
|
|
91
91
|
top: -2.5em;
|
|
92
92
|
width: 2.5em;
|
|
@@ -103,17 +103,17 @@ export default {
|
|
|
103
103
|
transform: translateZ(0);
|
|
104
104
|
animation-delay: ($dur * -0.088888888);
|
|
105
105
|
}
|
|
106
|
-
&__spinner
|
|
107
|
-
&__spinner
|
|
106
|
+
&__spinner::before,
|
|
107
|
+
&__spinner::after {
|
|
108
108
|
content: '';
|
|
109
109
|
position: absolute;
|
|
110
110
|
top: 0;
|
|
111
111
|
}
|
|
112
|
-
&__spinner
|
|
112
|
+
&__spinner::before {
|
|
113
113
|
left: -5em;
|
|
114
114
|
animation-delay: ($dur * -0.088888888 * 2);
|
|
115
115
|
}
|
|
116
|
-
&__spinner
|
|
116
|
+
&__spinner::after {
|
|
117
117
|
left: 5em;
|
|
118
118
|
}
|
|
119
119
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thinkpixellab-public/px-vue",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"description": "General purpose Vue components and helpers that can be used across projects.",
|
|
5
5
|
"author": "Pixel Lab",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@floating-ui/dom": "^1.1.1",
|
|
19
|
-
"@thinkpixellab-public/px-styles": "^3.7.
|
|
19
|
+
"@thinkpixellab-public/px-styles": "^3.7.9",
|
|
20
20
|
"@thinkpixellab-public/vue-resize-directive": "^1.2.2",
|
|
21
21
|
"body-scroll-lock": "^4.0.0-beta.0",
|
|
22
22
|
"mitt": "^3.0.0",
|
package/plugins/common.js
CHANGED