@babylonjs/inspector 5.0.0-beta.7 → 5.0.0-beta.8

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.
@@ -47158,7 +47158,7 @@ var AnimationCurveEditorComponent = /** @class */ (function (_super) {
47158
47158
  }
47159
47159
  this.setState({ isOpen: false });
47160
47160
  this.props.context.activeAnimations = [];
47161
- this.props.context.onActiveAnimationChanged.notifyObservers();
47161
+ this.props.context.onActiveAnimationChanged.notifyObservers({});
47162
47162
  };
47163
47163
  AnimationCurveEditorComponent.prototype.shouldComponentUpdate = function (newProps, newState) {
47164
47164
  var _this = this;
@@ -47170,7 +47170,7 @@ var AnimationCurveEditorComponent = /** @class */ (function (_super) {
47170
47170
  _this.props.context.activeAnimations.push(_this.props.context.useTargetAnimations
47171
47171
  ? _this.props.context.animations[0].animation
47172
47172
  : _this.props.context.animations[0]);
47173
- _this.props.context.onActiveAnimationChanged.notifyObservers();
47173
+ _this.props.context.onActiveAnimationChanged.notifyObservers({});
47174
47174
  });
47175
47175
  }
47176
47176
  }
@@ -48026,6 +48026,7 @@ __webpack_require__.r(__webpack_exports__);
48026
48026
  /* harmony import */ var _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babylonjs/core/Misc/observable */ "@babylonjs/core/Misc/observable");
48027
48027
  /* harmony import */ var _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__);
48028
48028
 
48029
+ ;
48029
48030
  var Context = /** @class */ (function () {
48030
48031
  function Context() {
48031
48032
  this.activeAnimations = [];
@@ -48935,13 +48936,16 @@ var GraphComponent = /** @class */ (function (_super) {
48935
48936
  _this.props.context.onHostWindowResized.add(function () {
48936
48937
  _this._computeSizes();
48937
48938
  });
48938
- _this._onActiveAnimationChangedObserver = _this.props.context.onActiveAnimationChanged.add(function () {
48939
- _this._evaluateKeys();
48939
+ _this._onActiveAnimationChangedObserver = _this.props.context.onActiveAnimationChanged.add(function (_a) {
48940
+ var _b = _a.evaluateKeys, evaluateKeys = _b === void 0 ? true : _b, _c = _a.frame, frame = _c === void 0 ? true : _c, _d = _a.range, range = _d === void 0 ? true : _d;
48941
+ if (evaluateKeys) {
48942
+ _this._evaluateKeys(frame, range);
48943
+ }
48940
48944
  _this._computeSizes();
48941
48945
  _this.forceUpdate();
48942
48946
  });
48943
48947
  _this.props.context.onFrameRequired.add(function () {
48944
- _this._frame();
48948
+ _this._frameFromActiveKeys();
48945
48949
  _this.forceUpdate();
48946
48950
  });
48947
48951
  _this.props.context.onRangeUpdated.add(function () {
@@ -48977,9 +48981,12 @@ var GraphComponent = /** @class */ (function (_super) {
48977
48981
  if (deletedFrame !== null) {
48978
48982
  _this.props.context.moveToFrame(deletedFrame);
48979
48983
  }
48980
- _this.props.context.activeKeyPoints = [];
48981
48984
  }
48982
- _this.props.context.onActiveAnimationChanged.notifyObservers();
48985
+ _this._evaluateKeys(false, false);
48986
+ _this.props.context.activeKeyPoints = [];
48987
+ _this.props.context.onActiveKeyPointChanged.notifyObservers();
48988
+ _this.props.context.onActiveAnimationChanged.notifyObservers({ evaluateKeys: false });
48989
+ _this.forceUpdate();
48983
48990
  });
48984
48991
  // Create or Update keypoint
48985
48992
  _this.props.context.onCreateOrUpdateKeyPointRequired.add(function () {
@@ -49072,7 +49079,7 @@ var GraphComponent = /** @class */ (function (_super) {
49072
49079
  _this._evaluateKeys(false, false);
49073
49080
  _this.props.context.activeKeyPoints = [];
49074
49081
  _this.props.context.onActiveKeyPointChanged.notifyObservers();
49075
- _this.props.context.onActiveAnimationChanged.notifyObservers();
49082
+ _this.props.context.onActiveAnimationChanged.notifyObservers({ evaluateKeys: false });
49076
49083
  _this.forceUpdate();
49077
49084
  });
49078
49085
  return _this;
@@ -49113,10 +49120,6 @@ var GraphComponent = /** @class */ (function (_super) {
49113
49120
  return;
49114
49121
  }
49115
49122
  this._curves = [];
49116
- this._minValue = Number.MAX_VALUE;
49117
- this._maxValue = -Number.MAX_VALUE;
49118
- this._minFrame = Number.MAX_VALUE;
49119
- this._maxFrame = -Number.MAX_VALUE;
49120
49123
  for (var _i = 0, _b = this.props.context.activeAnimations; _i < _b.length; _i++) {
49121
49124
  var animation = _b[_i];
49122
49125
  var keys = animation.getKeys();
@@ -49162,7 +49165,7 @@ var GraphComponent = /** @class */ (function (_super) {
49162
49165
  }
49163
49166
  }
49164
49167
  if (frame) {
49165
- this._frame();
49168
+ this._frameFromActiveKeys();
49166
49169
  }
49167
49170
  };
49168
49171
  GraphComponent.prototype._extractValuesFromKeys = function (keys, dataType, curvesToPushTo, propertyFilter) {
@@ -49511,16 +49514,17 @@ var GraphComponent = /** @class */ (function (_super) {
49511
49514
  } }, text)));
49512
49515
  });
49513
49516
  };
49514
- GraphComponent.prototype._frame = function () {
49517
+ GraphComponent.prototype._frameFromActiveKeys = function () {
49515
49518
  if (this.props.context.activeAnimations.length === 0) {
49516
49519
  return;
49517
49520
  }
49518
49521
  this._offsetX = 20;
49519
49522
  this._offsetY = 20;
49520
- this._minValue = Number.MAX_VALUE;
49521
- this._maxValue = -Number.MAX_VALUE;
49522
- this._minFrame = Number.MAX_VALUE;
49523
- this._maxFrame = -Number.MAX_VALUE;
49523
+ var minValue = Number.MAX_VALUE;
49524
+ var maxValue = -Number.MAX_VALUE;
49525
+ var minFrame = Number.MAX_VALUE;
49526
+ var maxFrame = -Number.MAX_VALUE;
49527
+ var hasRange = false;
49524
49528
  var _loop_1 = function (animation) {
49525
49529
  var propertyFilter = undefined;
49526
49530
  var activeChannel = this_1.props.context.getActiveChannel(animation);
@@ -49531,13 +49535,19 @@ var GraphComponent = /** @class */ (function (_super) {
49531
49535
  }
49532
49536
  }
49533
49537
  var keys = animation.getKeys();
49534
- // Only keep selected keys
49535
- if (this_1.props.context.activeKeyPoints && this_1.props.context.activeKeyPoints.length > 1) {
49538
+ // Only keep selected keys, the previous sibling to the first key, and the next sibling of the last key
49539
+ if (this_1.props.context.activeKeyPoints && this_1.props.context.activeKeyPoints.length > 0) {
49536
49540
  var newKeys = [];
49537
- for (var _b = 0, _c = this_1.props.context.activeKeyPoints; _b < _c.length; _b++) {
49538
- var keyPoint = _c[_b];
49541
+ for (var i = 0; i < this_1.props.context.activeKeyPoints.length; i++) {
49542
+ var keyPoint = this_1.props.context.activeKeyPoints[i];
49539
49543
  if (keyPoint.props.curve.animation === animation) {
49540
49544
  newKeys.push(keys[keyPoint.props.keyId]);
49545
+ if (i === 0 && keyPoint.props.keyId >= 1) {
49546
+ newKeys.unshift(keys[keyPoint.props.keyId - 1]);
49547
+ }
49548
+ if (i === this_1.props.context.activeKeyPoints.length - 1 && keyPoint.props.keyId < keys.length - 1) {
49549
+ newKeys.push(keys[keyPoint.props.keyId + 1]);
49550
+ }
49541
49551
  }
49542
49552
  }
49543
49553
  keys = newKeys;
@@ -49546,16 +49556,24 @@ var GraphComponent = /** @class */ (function (_super) {
49546
49556
  return "continue";
49547
49557
  }
49548
49558
  var values = this_1._extractValuesFromKeys(keys, animation.dataType, undefined, propertyFilter);
49549
- this_1._minValue = Math.min(this_1._minValue, values.min);
49550
- this_1._maxValue = Math.max(this_1._maxValue, values.max);
49551
- this_1._minFrame = Math.min(this_1._minFrame, keys[0].frame);
49552
- this_1._maxFrame = Math.max(this_1._maxFrame, keys[keys.length - 1].frame);
49559
+ minValue = Math.min(minValue, values.min);
49560
+ maxValue = Math.max(maxValue, values.max);
49561
+ minFrame = Math.min(minFrame, keys[0].frame);
49562
+ maxFrame = Math.max(maxFrame, keys[keys.length - 1].frame);
49563
+ hasRange = true;
49553
49564
  };
49554
49565
  var this_1 = this;
49555
49566
  for (var _i = 0, _a = this.props.context.activeAnimations; _i < _a.length; _i++) {
49556
49567
  var animation = _a[_i];
49557
49568
  _loop_1(animation);
49558
49569
  }
49570
+ if (!hasRange) {
49571
+ return;
49572
+ }
49573
+ this._minFrame = minFrame;
49574
+ this._maxFrame = maxFrame;
49575
+ this._minValue = minValue;
49576
+ this._maxValue = maxValue;
49559
49577
  this.props.context.referenceMinFrame = this._minFrame;
49560
49578
  this.props.context.referenceMaxFrame = this._maxFrame;
49561
49579
  var frameConvert = Math.abs(this._convertX(this._maxFrame) - this._convertX(this._minFrame)) + this._offsetX * 2;
@@ -50714,6 +50732,16 @@ var AddAnimationComponent = /** @class */ (function (_super) {
50714
50732
  ? this.props.context.animations[0].animation.framePerSecond
50715
50733
  : this.props.context.animations[0].framePerSecond
50716
50734
  : 60;
50735
+ var minFrame = this.props.context.referenceMinFrame;
50736
+ var maxFrame = this.props.context.referenceMaxFrame;
50737
+ if (this.props.context.animations) {
50738
+ for (var _i = 0, _a = this.props.context.animations; _i < _a.length; _i++) {
50739
+ var anim = _a[_i];
50740
+ var innerAnim = this.props.context.useTargetAnimations ? anim.animation : anim;
50741
+ minFrame = Math.min(minFrame, innerAnim.getKeys()[0].frame);
50742
+ maxFrame = Math.max(maxFrame, innerAnim.getKeys()[innerAnim.getKeys().length - 1].frame);
50743
+ }
50744
+ }
50717
50745
  var dataType = 0;
50718
50746
  var loopMode = 0;
50719
50747
  var defaultValue0;
@@ -50801,13 +50829,13 @@ var AddAnimationComponent = /** @class */ (function (_super) {
50801
50829
  var animation = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"](displayName, property, fps, dataType, loopMode);
50802
50830
  var keys = [];
50803
50831
  keys.push({
50804
- frame: context.referenceMinFrame,
50832
+ frame: minFrame,
50805
50833
  value: defaultValue0,
50806
50834
  inTangent: defaultInTangent0,
50807
50835
  outTangent: defaultOutTangent0
50808
50836
  });
50809
50837
  keys.push({
50810
- frame: context.referenceMaxFrame,
50838
+ frame: maxFrame,
50811
50839
  value: defaultValue1,
50812
50840
  inTangent: defaultInTangent1,
50813
50841
  outTangent: defaultOutTangent1
@@ -50825,7 +50853,7 @@ var AddAnimationComponent = /** @class */ (function (_super) {
50825
50853
  }
50826
50854
  context.activeAnimations.push(animation);
50827
50855
  context.prepare();
50828
- context.onActiveAnimationChanged.notifyObservers();
50856
+ context.onActiveAnimationChanged.notifyObservers({});
50829
50857
  context.onAnimationsLoaded.notifyObservers();
50830
50858
  };
50831
50859
  AddAnimationComponent.prototype.getInferredType = function (activeProperty) {
@@ -51024,7 +51052,7 @@ var AnimationEntryComponent = /** @class */ (function (_super) {
51024
51052
  to: this.props.context.getAnimationSortIndex(this.props.animation),
51025
51053
  };
51026
51054
  this.props.context.onSelectToActivated.notifyObservers(payload);
51027
- this.props.context.onActiveAnimationChanged.notifyObservers();
51055
+ this.props.context.onActiveAnimationChanged.notifyObservers({});
51028
51056
  }
51029
51057
  return;
51030
51058
  }
@@ -51042,7 +51070,7 @@ var AnimationEntryComponent = /** @class */ (function (_super) {
51042
51070
  }
51043
51071
  }
51044
51072
  this.props.context.disableChannel(this.props.animation);
51045
- this.props.context.onActiveAnimationChanged.notifyObservers();
51073
+ this.props.context.onActiveAnimationChanged.notifyObservers({});
51046
51074
  };
51047
51075
  AnimationEntryComponent.prototype._expandOrCollapse = function () {
51048
51076
  this.setState({ isExpanded: !this.state.isExpanded });
@@ -51177,7 +51205,7 @@ var AnimationSubEntryComponent = /** @class */ (function (_super) {
51177
51205
  }
51178
51206
  }
51179
51207
  _this.state = { isSelected: isSelected };
51180
- _this._onActiveAnimationChangedObserver = props.context.onActiveAnimationChanged.add(function (animation) {
51208
+ _this._onActiveAnimationChangedObserver = props.context.onActiveAnimationChanged.add(function () {
51181
51209
  _this.forceUpdate();
51182
51210
  });
51183
51211
  _this._onActiveKeyPointChangedObserver = _this.props.context.onActiveKeyPointChanged.add(function () {
@@ -51220,7 +51248,7 @@ var AnimationSubEntryComponent = /** @class */ (function (_super) {
51220
51248
  }
51221
51249
  }
51222
51250
  this.props.context.enableChannel(this.props.animation, this.props.color);
51223
- this.props.context.onActiveAnimationChanged.notifyObservers();
51251
+ this.props.context.onActiveAnimationChanged.notifyObservers({});
51224
51252
  };
51225
51253
  AnimationSubEntryComponent.prototype.render = function () {
51226
51254
  var _this = this;
@@ -51398,7 +51426,7 @@ var LoadAnimationComponent = /** @class */ (function (_super) {
51398
51426
  context.activeAnimations = animations.length ? animations : [];
51399
51427
  context.prepare();
51400
51428
  context.onAnimationsLoaded.notifyObservers();
51401
- context.onActiveAnimationChanged.notifyObservers();
51429
+ context.onActiveAnimationChanged.notifyObservers({});
51402
51430
  }, undefined, true);
51403
51431
  evt.target.value = "";
51404
51432
  };
@@ -51420,7 +51448,7 @@ var LoadAnimationComponent = /** @class */ (function (_super) {
51420
51448
  context.activeAnimations = context.animations.length ? context.animations : [];
51421
51449
  context.prepare();
51422
51450
  context.onAnimationsLoaded.notifyObservers();
51423
- context.onActiveAnimationChanged.notifyObservers();
51451
+ context.onActiveAnimationChanged.notifyObservers({});
51424
51452
  })
51425
51453
  .catch(function (err) {
51426
51454
  var _a;
@@ -51629,7 +51657,7 @@ var SideBarComponent = /** @class */ (function (_super) {
51629
51657
  var indexInActiveList = _this.props.context.activeAnimations.indexOf(animationToDelete);
51630
51658
  if (indexInActiveList !== -1) {
51631
51659
  _this.props.context.activeAnimations.splice(indexInActiveList, 1);
51632
- _this.props.context.onActiveAnimationChanged.notifyObservers();
51660
+ _this.props.context.onActiveAnimationChanged.notifyObservers({});
51633
51661
  }
51634
51662
  var index = -1;
51635
51663
  if (_this.props.context.useTargetAnimations) {
@@ -56750,13 +56778,6 @@ var SkeletonPropertyGridComponent = /** @class */ (function (_super) {
56750
56778
  }
56751
56779
  return true;
56752
56780
  };
56753
- SkeletonPropertyGridComponent.prototype.onOverrideMeshLink = function () {
56754
- if (!this.props.globalState.onSelectionChangedObservable) {
56755
- return;
56756
- }
56757
- var skeleton = this.props.skeleton;
56758
- this.props.globalState.onSelectionChangedObservable.notifyObservers(skeleton.overrideMesh);
56759
- };
56760
56781
  SkeletonPropertyGridComponent.prototype.render = function () {
56761
56782
  var _this = this;
56762
56783
  var skeleton = this.props.skeleton;
@@ -56792,7 +56813,6 @@ var SkeletonPropertyGridComponent = /** @class */ (function (_super) {
56792
56813
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedUiComponents_lines_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "GENERAL", selection: this.props.globalState },
56793
56814
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedUiComponents_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "ID", value: skeleton.id }),
56794
56815
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedUiComponents_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Bone count", value: skeleton.bones.length.toString() }),
56795
- skeleton.overrideMesh && react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedUiComponents_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Override mesh", value: skeleton.overrideMesh.name, onLink: function () { return _this.onOverrideMeshLink(); } }),
56796
56816
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedUiComponents_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Use texture to store matrices", target: skeleton, propertyName: "useTextureToStoreBoneMatrices", onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
56797
56817
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedUiComponents_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_10__["ButtonLineComponent"], { label: "Return to rest", onClick: function () { return skeleton.returnToRest(); } })),
56798
56818
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedUiComponents_lines_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "DEBUG", selection: this.props.globalState },
@@ -65065,7 +65085,9 @@ var CheckBoxLineComponent = /** @class */ (function (_super) {
65065
65085
  initialValue: this.state.isSelected,
65066
65086
  });
65067
65087
  }
65068
- this.props.target[this.props.propertyName] = !this.state.isSelected;
65088
+ if (this.props.target && this.props.propertyName) {
65089
+ this.props.target[this.props.propertyName] = !this.state.isSelected;
65090
+ }
65069
65091
  }
65070
65092
  if (this.props.onValueChanged) {
65071
65093
  this.props.onValueChanged();
@@ -65741,7 +65763,9 @@ var FloatLineComponent = /** @class */ (function (_super) {
65741
65763
  if (_this.props.onEnter) {
65742
65764
  _this.props.onEnter(_this._store);
65743
65765
  }
65744
- }, placeholder: placeholder, onFocus: function () { return _this.lock(); }, onChange: function (evt) { return _this.updateValue(evt.target.value); } })))),
65766
+ }, placeholder: placeholder, onFocus: function () { return _this.lock(); }, onChange: function (evt) { return _this.updateValue(evt.target.value); } })),
65767
+ this.props.unit && react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.props.unitLocked ? "unit disabled" : "unit", onClick: function () { if (_this.props.onUnitClicked && !_this.props.unitLocked)
65768
+ _this.props.onUnitClicked(); } }, this.props.unit))),
65745
65769
  this.props.useEuler && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sliderLineComponent__WEBPACK_IMPORTED_MODULE_2__["SliderLineComponent"], { label: this.props.label, minimum: 0, maximum: 360, step: 0.1, directValue: _babylonjs_core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Tools"].ToDegrees(valueAsNumber), onChange: function (value) { return _this.updateValue(_babylonjs_core_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Tools"].ToRadians(value).toString()); } }))));
65746
65770
  };
65747
65771
  return FloatLineComponent;
@@ -66462,15 +66486,17 @@ var conflictingValuesPlaceholder = "—";
66462
66486
  * @param setter an optional setter function to override the default setter behavior
66463
66487
  * @returns a proxy object that can be passed as a target into the input
66464
66488
  */
66465
- function makeTargetsProxy(targets, onPropertyChangedObservable) {
66489
+ function makeTargetsProxy(targets, onPropertyChangedObservable, getProperty) {
66490
+ if (getProperty === void 0) { getProperty = function (target, property) { return target[property]; }; }
66466
66491
  return new Proxy({}, {
66467
66492
  get: function (_, name) {
66493
+ var property = name;
66468
66494
  if (targets.length === 0)
66469
66495
  return conflictingValuesPlaceholder;
66470
- var firstValue = targets[0][name];
66496
+ var firstValue = getProperty(targets[0], property);
66471
66497
  for (var _i = 0, targets_1 = targets; _i < targets_1.length; _i++) {
66472
66498
  var target = targets_1[_i];
66473
- if (target[name] !== firstValue) {
66499
+ if (getProperty(target, property) !== firstValue) {
66474
66500
  return conflictingValuesPlaceholder;
66475
66501
  }
66476
66502
  }
@@ -66479,15 +66505,16 @@ function makeTargetsProxy(targets, onPropertyChangedObservable) {
66479
66505
  set: function (_, name, value) {
66480
66506
  if (value === "—")
66481
66507
  return true;
66508
+ var property = name;
66482
66509
  for (var _i = 0, targets_2 = targets; _i < targets_2.length; _i++) {
66483
66510
  var target = targets_2[_i];
66484
- var initialValue = target[name];
66485
- target[name] = value;
66511
+ var initialValue = target[property];
66512
+ target[property] = value;
66486
66513
  if (onPropertyChangedObservable) {
66487
66514
  onPropertyChangedObservable.notifyObservers({
66488
66515
  object: target,
66489
66516
  property: name,
66490
- value: target[name],
66517
+ value: target[property],
66491
66518
  initialValue: initialValue
66492
66519
  });
66493
66520
  }
@@ -66580,14 +66607,16 @@ var TextInputLineComponent = /** @class */ (function (_super) {
66580
66607
  var _this = this;
66581
66608
  var value = this.state.value === _targetsProxy__WEBPACK_IMPORTED_MODULE_2__["conflictingValuesPlaceholder"] ? "" : this.state.value;
66582
66609
  var placeholder = this.state.value === _targetsProxy__WEBPACK_IMPORTED_MODULE_2__["conflictingValuesPlaceholder"] ? _targetsProxy__WEBPACK_IMPORTED_MODULE_2__["conflictingValuesPlaceholder"] : "";
66583
- return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "textInputLine" },
66610
+ return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.props.unit !== undefined ? "textInputLine withUnits" : "textInputLine" },
66584
66611
  this.props.icon && react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: this.props.icon, title: this.props.iconLabel, alt: this.props.iconLabel, color: "black", className: "icon" }),
66585
66612
  (!this.props.icon || (this.props.icon && this.props.label != "")) && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label", title: this.props.label }, this.props.label)),
66586
66613
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" + (this.props.noUnderline === true ? " noUnderline" : "") },
66587
66614
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { value: value, onBlur: function () {
66588
66615
  _this.props.lockObject.lock = false;
66589
66616
  _this.updateValue((_this.props.value !== undefined ? _this.props.value : _this.props.target[_this.props.propertyName]) || "");
66590
- }, onFocus: function () { return (_this.props.lockObject.lock = true); }, onChange: function (evt) { return _this.updateValue(evt.target.value); }, placeholder: placeholder }))));
66617
+ }, onFocus: function () { return (_this.props.lockObject.lock = true); }, onChange: function (evt) { return _this.updateValue(evt.target.value); }, placeholder: placeholder })),
66618
+ this.props.unit !== undefined && react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.props.unitLocked ? "unit disabled" : "unit", onClick: function () { if (_this.props.onUnitClicked && !_this.props.unitLocked)
66619
+ _this.props.onUnitClicked(_this.props.unit || ""); } }, this.props.unit)));
66591
66620
  };
66592
66621
  return TextInputLineComponent;
66593
66622
  }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));