ps-toolkit-ui 1.5.11 → 1.5.12

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.
@@ -1858,6 +1858,7 @@
1858
1858
  _this.type === exports.InputType.SelectAutoCompletePlaque || _this.type === exports.InputType.SelectAutoCompletePlaqueM ||
1859
1859
  _this.type === exports.InputType.SelectAutoCompletePlaqueF || _this.type === exports.InputType.Radio) {
1860
1860
  var r = _this.getOptions(result, null);
1861
+ console.log(r, 'this.getOptions(result, null)');
1861
1862
  var s = result.find(function (x) { return x.Selected; });
1862
1863
  if (s) {
1863
1864
  _this.value = s.Id.toString();
@@ -1889,6 +1890,7 @@
1889
1890
  InputClass.prototype.setOptions = function (r) {
1890
1891
  var _this = this;
1891
1892
  this.options = r;
1893
+ console.log(this.options, 'this.options');
1892
1894
  if (this.value != null) {
1893
1895
  setTimeout(function () {
1894
1896
  _this.setValue(_this.value, true);
@@ -4286,6 +4288,7 @@
4286
4288
  }
4287
4289
  };
4288
4290
  this.inp.focus = function () {
4291
+ console.log('this.inp.focus');
4289
4292
  _this.openOptions(true);
4290
4293
  };
4291
4294
  this.inp.isValid = function () {
@@ -4419,6 +4422,7 @@
4419
4422
  };
4420
4423
  FormPlaqueSelectComponent.prototype.loadOptions = function () {
4421
4424
  var v = this.getSearch().replace(/^_+|_+$/g, '');
4425
+ console.log('loadOptions', v);
4422
4426
  if (v) {
4423
4427
  this.inp.load(this.inp.url.replace('{}', v));
4424
4428
  }
@@ -4428,6 +4432,7 @@
4428
4432
  };
4429
4433
  FormPlaqueSelectComponent.prototype.openOptions = function (f) {
4430
4434
  if (f === void 0) { f = false; }
4435
+ console.log('openOptions');
4431
4436
  this.setPosition();
4432
4437
  this.setHoverCenter();
4433
4438
  this.open = true;
@@ -4501,6 +4506,7 @@
4501
4506
  }
4502
4507
  };
4503
4508
  FormPlaqueSelectComponent.prototype.toggleOption = function () {
4509
+ console.log('toggleOption');
4504
4510
  this.openOptions();
4505
4511
  };
4506
4512
  FormPlaqueSelectComponent.prototype.selectOption = function (v, isEdit) {
@@ -4645,7 +4651,6 @@
4645
4651
  }
4646
4652
  };
4647
4653
  FormPlaqueSelectComponent.prototype.plaqueChangeFocus = function (p, a) {
4648
- var _this = this;
4649
4654
  if (this.inp.type === exports.InputType.SelectAutoCompletePlaque) {
4650
4655
  if (p === 'Part1') {
4651
4656
  if (a === 'Tab' || a === 'Enter') {
@@ -4695,7 +4700,7 @@
4695
4700
  if (a === 'Tab' || a === 'Enter') {
4696
4701
  this.part3.focus();
4697
4702
  if (this.inp.type === exports.InputType.SelectAutoCompletePlaqueF) {
4698
- setTimeout(function () { _this.loadOptions(); }, 100);
4703
+ this.loadOptions();
4699
4704
  }
4700
4705
  }
4701
4706
  else if (a === 'ShiftTab' || a === 'ShiftEnter') {
@@ -4709,7 +4714,7 @@
4709
4714
  else if (a === 'ShiftTab' || a === 'ShiftEnter') {
4710
4715
  this.part1.focus();
4711
4716
  if (this.inp.type === exports.InputType.SelectAutoCompletePlaqueF) {
4712
- setTimeout(function () { _this.loadOptions(); }, 100);
4717
+ this.loadOptions();
4713
4718
  }
4714
4719
  }
4715
4720
  }