@acorex/components 3.0.61 → 3.0.64

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.
@@ -5746,6 +5746,7 @@
5746
5746
  var d = new core$1.AXDateTime().convertStringToGregorian(text, 'YYYY/M/D');
5747
5747
  }
5748
5748
  else {
5749
+ var d = new Date(new core$1.AXDateTime(text, 'gregorian').toISOString());
5749
5750
  }
5750
5751
  return d;
5751
5752
  };
@@ -5773,11 +5774,14 @@
5773
5774
  return { year: y, monnth: m, day: d };
5774
5775
  };
5775
5776
  AXDatePickerComponent.prototype.textChange = function (e) {
5776
- debugger;
5777
5777
  this.text = e.value;
5778
- if (this.text && this.text.indexOf('_') === -1 && this.text.length == 10) {
5778
+ var date = this.convertMask(this.text);
5779
+ if (this.text && this.text.indexOf('_') === -1 && this.text.length == 10 && this.type == 'jalali') {
5780
+ this.userChange = e.isUserChange;
5781
+ this.value = this.convertMaskToDate(date.year + '-' + date.monnth + '-' + date.day);
5782
+ }
5783
+ else if (this.text && this.text.indexOf('_') === -1 && this.text.length == 10 && this.type == 'gregorian') {
5779
5784
  this.userChange = e.isUserChange;
5780
- var date = this.convertMask(this.text);
5781
5785
  this.value = this.convertMaskToDate(date.year + '-' + date.monnth + '-' + date.day);
5782
5786
  }
5783
5787
  };
@@ -5792,7 +5796,6 @@
5792
5796
  if (_this.showToday && !_this.value) {
5793
5797
  _this.selectToday();
5794
5798
  }
5795
- debugger;
5796
5799
  if (_this.dropdown.dropdownWidth > 200 || _this.dropdown.dropdownWidth < 200) {
5797
5800
  _this.dropdown.dropdownWidth = 250;
5798
5801
  }
@@ -8781,12 +8784,10 @@
8781
8784
  }
8782
8785
  };
8783
8786
  AXSelectBoxComponent.prototype.scrolled = function (e) {
8784
- debugger;
8785
8787
  if (this.remoteOperation &&
8786
8788
  this.totalCount > this.items.length &&
8787
8789
  this.listContainer.nativeElement.scrollHeight != 0 &&
8788
8790
  this.listContainer.nativeElement.scrollHeight - this.listContainer.nativeElement.scrollTop - 300 < 50) {
8789
- debugger;
8790
8791
  if (this.skip !== this.items.length) {
8791
8792
  this.showLoading = true;
8792
8793
  this.skip = this.items.length;
@@ -8900,7 +8901,6 @@
8900
8901
  Object.defineProperty(AXSelectBoxComponent.prototype, "selectedValues", {
8901
8902
  get: function () {
8902
8903
  var _this = this;
8903
- debugger;
8904
8904
  if (this.mode === 'single') {
8905
8905
  return this._selectedItems.map(function (c) { return c[_this.valueField]; })[0];
8906
8906
  }
@@ -8987,7 +8987,6 @@
8987
8987
  }
8988
8988
  };
8989
8989
  AXSelectBoxComponent.prototype.emitSelectionChangedEvent = function () {
8990
- debugger;
8991
8990
  this.selectedValuesChange.emit(this.selectedValues);
8992
8991
  this.selectionChanged.emit(new AXSelectBoxSelectionChangedEvent(this, this.selectedItems, this.selectedValues));
8993
8992
  };
@@ -9366,7 +9365,6 @@
9366
9365
  if (e.key === 'Backspace' &&
9367
9366
  e.type === 'keydown' &&
9368
9367
  ((this.allowNull === true && this.selectedItems.length > 0) || (this.allowNull === false && this.selectedItems.length > 1))) {
9369
- debugger;
9370
9368
  this.selectedItems.pop();
9371
9369
  this.emitSelectionChangedEvent();
9372
9370
  }