@acorex/components 3.0.61 → 3.0.62
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.
- package/acorex-components.metadata.json +1 -1
- package/bundles/acorex-components.umd.js +7 -9
- package/bundles/acorex-components.umd.js.map +1 -1
- package/bundles/acorex-components.umd.min.js +1 -1
- package/bundles/acorex-components.umd.min.js.map +1 -1
- package/esm2015/lib/date-picker/date-picker.component.js +8 -5
- package/esm2015/lib/selectbox/selectbox.component.js +1 -6
- package/esm5/lib/date-picker/date-picker.component.js +8 -5
- package/esm5/lib/selectbox/selectbox.component.js +1 -6
- package/fesm2015/acorex-components.js +7 -9
- package/fesm2015/acorex-components.js.map +1 -1
- package/fesm5/acorex-components.js +7 -9
- package/fesm5/acorex-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -5540,6 +5540,7 @@ var AXDatePickerComponent = /** @class */ (function (_super) {
|
|
|
5540
5540
|
var d = new AXDateTime().convertStringToGregorian(text, 'YYYY/M/D');
|
|
5541
5541
|
}
|
|
5542
5542
|
else {
|
|
5543
|
+
var d = new Date(new AXDateTime(text, 'gregorian').toISOString());
|
|
5543
5544
|
}
|
|
5544
5545
|
return d;
|
|
5545
5546
|
};
|
|
@@ -5567,11 +5568,14 @@ var AXDatePickerComponent = /** @class */ (function (_super) {
|
|
|
5567
5568
|
return { year: y, monnth: m, day: d };
|
|
5568
5569
|
};
|
|
5569
5570
|
AXDatePickerComponent.prototype.textChange = function (e) {
|
|
5570
|
-
debugger;
|
|
5571
5571
|
this.text = e.value;
|
|
5572
|
-
|
|
5572
|
+
var date = this.convertMask(this.text);
|
|
5573
|
+
if (this.text && this.text.indexOf('_') === -1 && this.text.length == 10 && this.type == 'jalali') {
|
|
5574
|
+
this.userChange = e.isUserChange;
|
|
5575
|
+
this.value = this.convertMaskToDate(date.year + '-' + date.monnth + '-' + date.day);
|
|
5576
|
+
}
|
|
5577
|
+
else if (this.text && this.text.indexOf('_') === -1 && this.text.length == 10 && this.type == 'gregorian') {
|
|
5573
5578
|
this.userChange = e.isUserChange;
|
|
5574
|
-
var date = this.convertMask(this.text);
|
|
5575
5579
|
this.value = this.convertMaskToDate(date.year + '-' + date.monnth + '-' + date.day);
|
|
5576
5580
|
}
|
|
5577
5581
|
};
|
|
@@ -5586,7 +5590,6 @@ var AXDatePickerComponent = /** @class */ (function (_super) {
|
|
|
5586
5590
|
if (_this.showToday && !_this.value) {
|
|
5587
5591
|
_this.selectToday();
|
|
5588
5592
|
}
|
|
5589
|
-
debugger;
|
|
5590
5593
|
if (_this.dropdown.dropdownWidth > 200 || _this.dropdown.dropdownWidth < 200) {
|
|
5591
5594
|
_this.dropdown.dropdownWidth = 250;
|
|
5592
5595
|
}
|
|
@@ -8575,12 +8578,10 @@ var AXSelectBoxComponent = /** @class */ (function (_super) {
|
|
|
8575
8578
|
}
|
|
8576
8579
|
};
|
|
8577
8580
|
AXSelectBoxComponent.prototype.scrolled = function (e) {
|
|
8578
|
-
debugger;
|
|
8579
8581
|
if (this.remoteOperation &&
|
|
8580
8582
|
this.totalCount > this.items.length &&
|
|
8581
8583
|
this.listContainer.nativeElement.scrollHeight != 0 &&
|
|
8582
8584
|
this.listContainer.nativeElement.scrollHeight - this.listContainer.nativeElement.scrollTop - 300 < 50) {
|
|
8583
|
-
debugger;
|
|
8584
8585
|
if (this.skip !== this.items.length) {
|
|
8585
8586
|
this.showLoading = true;
|
|
8586
8587
|
this.skip = this.items.length;
|
|
@@ -8694,7 +8695,6 @@ var AXSelectBoxComponent = /** @class */ (function (_super) {
|
|
|
8694
8695
|
Object.defineProperty(AXSelectBoxComponent.prototype, "selectedValues", {
|
|
8695
8696
|
get: function () {
|
|
8696
8697
|
var _this = this;
|
|
8697
|
-
debugger;
|
|
8698
8698
|
if (this.mode === 'single') {
|
|
8699
8699
|
return this._selectedItems.map(function (c) { return c[_this.valueField]; })[0];
|
|
8700
8700
|
}
|
|
@@ -8781,7 +8781,6 @@ var AXSelectBoxComponent = /** @class */ (function (_super) {
|
|
|
8781
8781
|
}
|
|
8782
8782
|
};
|
|
8783
8783
|
AXSelectBoxComponent.prototype.emitSelectionChangedEvent = function () {
|
|
8784
|
-
debugger;
|
|
8785
8784
|
this.selectedValuesChange.emit(this.selectedValues);
|
|
8786
8785
|
this.selectionChanged.emit(new AXSelectBoxSelectionChangedEvent(this, this.selectedItems, this.selectedValues));
|
|
8787
8786
|
};
|
|
@@ -9160,7 +9159,6 @@ var AXSelectBoxComponent = /** @class */ (function (_super) {
|
|
|
9160
9159
|
if (e.key === 'Backspace' &&
|
|
9161
9160
|
e.type === 'keydown' &&
|
|
9162
9161
|
((this.allowNull === true && this.selectedItems.length > 0) || (this.allowNull === false && this.selectedItems.length > 1))) {
|
|
9163
|
-
debugger;
|
|
9164
9162
|
this.selectedItems.pop();
|
|
9165
9163
|
this.emitSelectionChangedEvent();
|
|
9166
9164
|
}
|