igniteui-angular 11.1.45 → 11.1.46
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/bundles/igniteui-angular.umd.js +10 -8
- package/bundles/igniteui-angular.umd.js.map +1 -1
- package/bundles/igniteui-angular.umd.min.js +1 -1
- package/bundles/igniteui-angular.umd.min.js.map +1 -1
- package/esm2015/lib/directives/date-time-editor/date-time-editor.directive.js +7 -5
- package/fesm2015/igniteui-angular.js +6 -4
- package/fesm2015/igniteui-angular.js.map +1 -1
- package/igniteui-angular.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -20335,10 +20335,12 @@
|
|
|
20335
20335
|
Object.defineProperty(IgxDateTimeEditorDirective.prototype, "targetDatePart", {
|
|
20336
20336
|
get: function () {
|
|
20337
20337
|
var _this = this;
|
|
20338
|
-
var _a;
|
|
20339
|
-
|
|
20340
|
-
|
|
20341
|
-
|
|
20338
|
+
var _a, _b, _c;
|
|
20339
|
+
// V.K. May 16th, 2022 #11559 Get correct date part in shadow DOM
|
|
20340
|
+
if (this.document.activeElement === this.nativeElement ||
|
|
20341
|
+
((_b = (_a = this.document.activeElement) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.activeElement) === this.nativeElement) {
|
|
20342
|
+
return (_c = this._inputDateParts
|
|
20343
|
+
.find(function (p) { return p.start <= _this.selectionStart && _this.selectionStart <= p.end && p.type !== exports.DatePart.Literal; })) === null || _c === void 0 ? void 0 : _c.type;
|
|
20342
20344
|
}
|
|
20343
20345
|
else {
|
|
20344
20346
|
if (this._inputDateParts.some(function (p) { return p.type === exports.DatePart.Date; })) {
|
|
@@ -20545,11 +20547,11 @@
|
|
|
20545
20547
|
return DatePickerUtil.parseValueFromMask(val, this._inputDateParts, this.promptChar);
|
|
20546
20548
|
};
|
|
20547
20549
|
IgxDateTimeEditorDirective.prototype.getMaskedValue = function () {
|
|
20548
|
-
var e_1,
|
|
20550
|
+
var e_1, _d;
|
|
20549
20551
|
var mask = this.emptyMask;
|
|
20550
20552
|
try {
|
|
20551
|
-
for (var
|
|
20552
|
-
var part =
|
|
20553
|
+
for (var _e = __values(this._inputDateParts), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
20554
|
+
var part = _f.value;
|
|
20553
20555
|
if (part.type === exports.DatePart.Literal) {
|
|
20554
20556
|
continue;
|
|
20555
20557
|
}
|
|
@@ -20560,7 +20562,7 @@
|
|
|
20560
20562
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
20561
20563
|
finally {
|
|
20562
20564
|
try {
|
|
20563
|
-
if (
|
|
20565
|
+
if (_f && !_f.done && (_d = _e.return)) _d.call(_e);
|
|
20564
20566
|
}
|
|
20565
20567
|
finally { if (e_1) throw e_1.error; }
|
|
20566
20568
|
}
|