@kizmann/nano-ui 0.7.2 → 0.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kizmann/nano-ui",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "author": "Eduard Kizmann <kizmann@protonmail.ch>",
@@ -17,7 +17,7 @@
17
17
  "@babel/plugin-proposal-export-default-from": "^7.2.0",
18
18
  "@babel/plugin-proposal-object-rest-spread": "^7.4.4",
19
19
  "@babel/preset-env": "^7.4.4",
20
- "@kizmann/pico-js": "^0.3.8",
20
+ "@kizmann/pico-js": "^0.3.17",
21
21
  "@vue/babel-plugin-jsx": "^1.0.0",
22
22
  "@vue/babel-preset-jsx": "^1.2.4",
23
23
  "autoprefixer": "^9.6.1",
@@ -252,7 +252,7 @@ export default {
252
252
  let value = event.target.value;
253
253
 
254
254
  let format = this.format.replace(':count',
255
- `([0-9\,\.\\s]+)`);
255
+ `([0-9\\,\\.\\-\\s]+)`);
256
256
 
257
257
  let regex = new RegExp(`^${format}$`);
258
258
 
@@ -267,6 +267,14 @@ export default {
267
267
 
268
268
  value = Num.float(value).toFixed(this.precision);
269
269
 
270
+ if ( value < this.min ) {
271
+ value = this.min;
272
+ }
273
+
274
+ if ( value > this.max ) {
275
+ value = this.max;
276
+ }
277
+
270
278
  this.$emit('update:modelValue',
271
279
  this.tempValue = Num.float(value));
272
280
 
@@ -5,17 +5,6 @@
5
5
  display: inline-flex;
6
6
  }
7
7
 
8
- .n-preview:before {
9
- z-index: 5;
10
- content: '\00a0';
11
- position: absolute;
12
- top: 0;
13
- left: 0;
14
- display: block;
15
- width: 100%;
16
- height: 100%;
17
- }
18
-
19
8
  .n-preview--cover img {
20
9
  object-fit: cover !important;
21
10
  }