ps-toolkit-ui 1.12.32 → 1.12.33

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.
@@ -4764,37 +4764,26 @@
4764
4764
  }
4765
4765
  };
4766
4766
  this.part1.onFocusOut = function (e) {
4767
- console.log(e, $__namespace(e.relatedTarget), $__namespace(e.rangeParent));
4768
- if (!$__namespace(e.relatedTarget).closest('.form-input.plaque-select').hasClass('plaque-select') && !$__namespace(e.rangeParent).closest('.form-input.plaque-select').hasClass('plaque-select')) {
4769
- if (_this.open) {
4770
- _this.closeOptions();
4771
- }
4772
- }
4767
+ _this.onFocusOutCloseOptions(e);
4773
4768
  };
4774
4769
  this.part2.onFocusOut = function (e) {
4775
- console.log(e, $__namespace(e.relatedTarget), $__namespace(e.rangeParent));
4776
- if (!$__namespace(e.relatedTarget).closest('.form-input.plaque-select').hasClass('plaque-select') && !$__namespace(e.rangeParent).closest('.form-input.plaque-select').hasClass('plaque-select')) {
4777
- if (_this.open) {
4778
- _this.closeOptions();
4779
- }
4780
- }
4770
+ _this.onFocusOutCloseOptions(e);
4781
4771
  };
4782
4772
  this.part3.onFocusOut = function (e) {
4783
- console.log(e, $__namespace(e.relatedTarget), $__namespace(e.rangeParent));
4784
- if (!$__namespace(e.relatedTarget).closest('.form-input.plaque-select').hasClass('plaque-select') && !$__namespace(e.rangeParent).closest('.form-input.plaque-select').hasClass('plaque-select')) {
4785
- if (_this.open) {
4786
- _this.closeOptions();
4787
- }
4788
- }
4773
+ _this.onFocusOutCloseOptions(e);
4789
4774
  };
4790
4775
  this.part4.onFocusOut = function (e) {
4791
- console.log(e, $__namespace(e.relatedTarget), $__namespace(e.rangeParent));
4776
+ _this.onFocusOutCloseOptions(e);
4777
+ };
4778
+ };
4779
+ FormPlaqueSelectComponent.prototype.onFocusOutCloseOptions = function (e) {
4780
+ if ($__namespace(e.relatedTarget).length !== 0 || $__namespace(e.rangeParent).length !== 0) {
4792
4781
  if (!$__namespace(e.relatedTarget).closest('.form-input.plaque-select').hasClass('plaque-select') && !$__namespace(e.rangeParent).closest('.form-input.plaque-select').hasClass('plaque-select')) {
4793
- if (_this.open) {
4794
- _this.closeOptions();
4782
+ if (this.open) {
4783
+ this.closeOptions();
4795
4784
  }
4796
4785
  }
4797
- };
4786
+ }
4798
4787
  };
4799
4788
  FormPlaqueSelectComponent.prototype.loadOptions = function () {
4800
4789
  this.removeHover();