x-block-lib 0.10.29 → 0.10.30
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/index.js +7 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -403,7 +403,7 @@ var On = ye(), kn = (e, t) => {
|
|
|
403
403
|
return { value: this.value };
|
|
404
404
|
},
|
|
405
405
|
loadExtraState: function(e) {
|
|
406
|
-
this.value = e.value
|
|
406
|
+
this.value = e.value, this.updateShape_(), setTimeout(() => {
|
|
407
407
|
this.checkWarning_();
|
|
408
408
|
}, 0);
|
|
409
409
|
},
|
|
@@ -435,7 +435,10 @@ var On = ye(), kn = (e, t) => {
|
|
|
435
435
|
if (!n) return;
|
|
436
436
|
e.removeField("VALUE", !0), e.removeField("SUFFIX", !0);
|
|
437
437
|
let i, a;
|
|
438
|
-
if (n.trait === "
|
|
438
|
+
if (n.trait === "number") i = new r(this.value ?? 0, n.min, n.max, n.precision ? 1 / 10 ** n.precision : null, (e) => {
|
|
439
|
+
this.value = e;
|
|
440
|
+
});
|
|
441
|
+
else if (n.trait === "pixel") i = new r($e(this.value) ?? 0, n.min, n.max, n.precision ? 1 / 10 ** n.precision : null, (e) => {
|
|
439
442
|
this.value = e + "px";
|
|
440
443
|
}), a = "px";
|
|
441
444
|
else if (n.trait === "percent") i = new r(Qe(this.value) ?? 0, n.min, n.max, n.precision ? 1 / 10 ** n.precision : null, (e) => {
|
|
@@ -467,8 +470,8 @@ var On = ye(), kn = (e, t) => {
|
|
|
467
470
|
this.setWarningText(null);
|
|
468
471
|
}
|
|
469
472
|
}, g.forBlock[n] = function(e) {
|
|
470
|
-
let t = g.quote_;
|
|
471
|
-
return [t(
|
|
473
|
+
let t = g.quote_, n = e;
|
|
474
|
+
return typeof n.value == "string" ? [t(n.value), _.ATOMIC] : [n.value, _.ATOMIC];
|
|
472
475
|
};
|
|
473
476
|
};
|
|
474
477
|
for (let e in et) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-block-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.10.
|
|
4
|
+
"version": "0.10.30",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"x-error-lib": "^0.5.18",
|
|
44
44
|
"x-essential-lib": "^0.9.31",
|
|
45
|
-
"x-runtime-lib": "^0.9.
|
|
45
|
+
"x-runtime-lib": "^0.9.42",
|
|
46
46
|
"x-state-lib": "^0.3.43"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|