@babylonjs/inspector 5.14.0 → 5.14.1
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.
@@ -69719,7 +69719,12 @@ class HexColor extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
|
|
69719
69719
|
}
|
69720
69720
|
this.setState({ hex: valueString });
|
69721
69721
|
if (valueString.length !== this.props.expectedLength) {
|
69722
|
-
|
69722
|
+
if (this.props.expectedLength === 8 && valueString.length === 6) {
|
69723
|
+
valueString = valueString + "FF";
|
69724
|
+
}
|
69725
|
+
else {
|
69726
|
+
return;
|
69727
|
+
}
|
69723
69728
|
}
|
69724
69729
|
this.props.onChange("#" + valueString);
|
69725
69730
|
}
|
@@ -71300,7 +71305,7 @@ class TextInputLineComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Componen
|
|
71300
71305
|
}
|
71301
71306
|
return 0;
|
71302
71307
|
}
|
71303
|
-
updateValue(value) {
|
71308
|
+
updateValue(value, valueToValidate) {
|
71304
71309
|
if (this.props.numbersOnly) {
|
71305
71310
|
if (/[^0-9.\p\x%-]/g.test(value)) {
|
71306
71311
|
return;
|
@@ -71328,8 +71333,8 @@ class TextInputLineComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Componen
|
|
71328
71333
|
}
|
71329
71334
|
this._localChange = true;
|
71330
71335
|
const store = this.props.value !== undefined ? this.props.value : this.props.target[this.props.propertyName];
|
71331
|
-
if (this.props.validator) {
|
71332
|
-
if (this.props.validator(
|
71336
|
+
if (this.props.validator && valueToValidate) {
|
71337
|
+
if (this.props.validator(valueToValidate) == false) {
|
71333
71338
|
value = store;
|
71334
71339
|
}
|
71335
71340
|
}
|
@@ -71376,15 +71381,15 @@ class TextInputLineComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Componen
|
|
71376
71381
|
}
|
71377
71382
|
this.updateValue(this.state.value);
|
71378
71383
|
}, onBlur: (evt) => {
|
71379
|
-
this.updateValue(evt.target.value);
|
71384
|
+
this.updateValue(evt.target.value, evt.target.value);
|
71380
71385
|
if (this.props.lockObject) {
|
71381
71386
|
this.props.lockObject.lock = false;
|
71382
71387
|
}
|
71383
|
-
} }) })), !this.props.multilines && ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", Object.assign({ className: `value${this.props.noUnderline === true ? " noUnderline" : ""}${this.props.arrows ? " hasArrows" : ""}${this.state.dragging ? " dragging" : ""}` }, { children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("input", { value: value, onBlur: () => {
|
71388
|
+
} }) })), !this.props.multilines && ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", Object.assign({ className: `value${this.props.noUnderline === true ? " noUnderline" : ""}${this.props.arrows ? " hasArrows" : ""}${this.state.dragging ? " dragging" : ""}` }, { children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("input", { value: value, onBlur: (evt) => {
|
71384
71389
|
if (this.props.lockObject) {
|
71385
71390
|
this.props.lockObject.lock = false;
|
71386
71391
|
}
|
71387
|
-
this.updateValue((this.props.value !== undefined ? this.props.value : this.props.target[this.props.propertyName]) || "");
|
71392
|
+
this.updateValue((this.props.value !== undefined ? this.props.value : this.props.target[this.props.propertyName]) || "", evt.target.value);
|
71388
71393
|
}, onFocus: () => {
|
71389
71394
|
if (this.props.lockObject) {
|
71390
71395
|
this.props.lockObject.lock = true;
|