igniteui-angular 12.3.24 → 12.3.25
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 +65 -54
- package/bundles/igniteui-angular.umd.js.map +1 -1
- package/esm2015/lib/combo/combo.common.js +11 -5
- package/esm2015/lib/directives/date-time-editor/date-time-editor.directive.js +7 -5
- package/esm2015/lib/directives/for-of/for_of.directive.js +8 -2
- package/esm2015/lib/grids/grid/grid.component.js +4 -1
- package/esm2015/lib/grids/grid-base.directive.js +20 -4
- package/esm2015/lib/grids/hierarchical-grid/hierarchical-grid.component.js +13 -39
- package/fesm2015/igniteui-angular.js +57 -50
- package/fesm2015/igniteui-angular.js.map +1 -1
- package/igniteui-angular.metadata.json +1 -1
- package/lib/grids/grid-base.directive.d.ts +7 -5
- package/lib/grids/hierarchical-grid/hierarchical-grid.component.d.ts +1 -6
- package/package.json +1 -1
|
@@ -6091,10 +6091,16 @@
|
|
|
6091
6091
|
}
|
|
6092
6092
|
};
|
|
6093
6093
|
IgxForOfDirective.prototype.updateSizes = function () {
|
|
6094
|
+
var scrollable = this.isScrollable();
|
|
6094
6095
|
this.recalcUpdateSizes();
|
|
6095
6096
|
this._applyChanges();
|
|
6096
6097
|
this._updateScrollOffset();
|
|
6097
|
-
this.
|
|
6098
|
+
if (scrollable !== this.isScrollable()) {
|
|
6099
|
+
this.scrollbarVisibilityChanged.emit();
|
|
6100
|
+
}
|
|
6101
|
+
else {
|
|
6102
|
+
this.contentSizeChange.emit();
|
|
6103
|
+
}
|
|
6098
6104
|
};
|
|
6099
6105
|
/**
|
|
6100
6106
|
* @hidden
|
|
@@ -28414,10 +28420,12 @@
|
|
|
28414
28420
|
Object.defineProperty(IgxDateTimeEditorDirective.prototype, "targetDatePart", {
|
|
28415
28421
|
get: function () {
|
|
28416
28422
|
var _this = this;
|
|
28417
|
-
var _a;
|
|
28418
|
-
|
|
28419
|
-
|
|
28420
|
-
|
|
28423
|
+
var _a, _b, _c;
|
|
28424
|
+
// V.K. May 16th, 2022 #11557 Get correct date part in shadow DOM
|
|
28425
|
+
if (this.document.activeElement === this.nativeElement ||
|
|
28426
|
+
((_b = (_a = this.document.activeElement) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.activeElement) === this.nativeElement) {
|
|
28427
|
+
return (_c = this._inputDateParts
|
|
28428
|
+
.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;
|
|
28421
28429
|
}
|
|
28422
28430
|
else {
|
|
28423
28431
|
if (this._inputDateParts.some(function (p) { return p.type === exports.DatePart.Date; })) {
|
|
@@ -28689,12 +28697,12 @@
|
|
|
28689
28697
|
return DateTimeUtil.parseValueFromMask(val, this._inputDateParts, this.promptChar);
|
|
28690
28698
|
};
|
|
28691
28699
|
IgxDateTimeEditorDirective.prototype.getMaskedValue = function () {
|
|
28692
|
-
var e_1,
|
|
28700
|
+
var e_1, _d;
|
|
28693
28701
|
var mask = this.emptyMask;
|
|
28694
28702
|
if (DateTimeUtil.isValidDate(this.value)) {
|
|
28695
28703
|
try {
|
|
28696
|
-
for (var
|
|
28697
|
-
var part =
|
|
28704
|
+
for (var _e = __values(this._inputDateParts), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
28705
|
+
var part = _f.value;
|
|
28698
28706
|
if (part.type === exports.DatePart.Literal) {
|
|
28699
28707
|
continue;
|
|
28700
28708
|
}
|
|
@@ -28705,7 +28713,7 @@
|
|
|
28705
28713
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
28706
28714
|
finally {
|
|
28707
28715
|
try {
|
|
28708
|
-
if (
|
|
28716
|
+
if (_f && !_f.done && (_d = _e.return)) _d.call(_e);
|
|
28709
28717
|
}
|
|
28710
28718
|
finally { if (e_1) throw e_1.error; }
|
|
28711
28719
|
}
|
|
@@ -40290,10 +40298,16 @@
|
|
|
40290
40298
|
this.customValueFlag = this.allowCustomValues && !itemMatch;
|
|
40291
40299
|
};
|
|
40292
40300
|
IgxComboBaseDirective.prototype.manageRequiredAsterisk = function () {
|
|
40293
|
-
if (this.ngControl
|
|
40294
|
-
|
|
40295
|
-
|
|
40296
|
-
|
|
40301
|
+
if (this.ngControl) {
|
|
40302
|
+
if (this.ngControl.control.validator) {
|
|
40303
|
+
// Run the validation with empty object to check if required is enabled.
|
|
40304
|
+
var error = this.ngControl.control.validator({});
|
|
40305
|
+
this.inputGroup.isRequired = error && error.required;
|
|
40306
|
+
}
|
|
40307
|
+
else {
|
|
40308
|
+
// P.M. 18 May 2022: IgxCombo's asterisk not removed when removing required validator dynamically in reactive form #11543
|
|
40309
|
+
this.inputGroup.isRequired = false;
|
|
40310
|
+
}
|
|
40297
40311
|
}
|
|
40298
40312
|
};
|
|
40299
40313
|
/** Contains key-value pairs of the selected valueKeys and their resp. displayKeys */
|
|
@@ -57485,6 +57499,22 @@
|
|
|
57485
57499
|
enumerable: false,
|
|
57486
57500
|
configurable: true
|
|
57487
57501
|
});
|
|
57502
|
+
Object.defineProperty(IgxGridBaseDirective.prototype, "summariesHeight", {
|
|
57503
|
+
/**
|
|
57504
|
+
* @hidden @internal
|
|
57505
|
+
*/
|
|
57506
|
+
get: function () {
|
|
57507
|
+
if (this.hasSummarizedColumns && this.rootSummariesEnabled) {
|
|
57508
|
+
return this._summariesHeight;
|
|
57509
|
+
}
|
|
57510
|
+
return 0;
|
|
57511
|
+
},
|
|
57512
|
+
set: function (val) {
|
|
57513
|
+
this._summariesHeight = val;
|
|
57514
|
+
},
|
|
57515
|
+
enumerable: false,
|
|
57516
|
+
configurable: true
|
|
57517
|
+
});
|
|
57488
57518
|
Object.defineProperty(IgxGridBaseDirective.prototype, "filteredSortedData", {
|
|
57489
57519
|
/**
|
|
57490
57520
|
* Returns an array containing the filtered sorted data.
|
|
@@ -57850,7 +57880,10 @@
|
|
|
57850
57880
|
this.resizeNotify.pipe(destructor, operators.filter(function () { return !_this._init; }), operators.throttleTime(0, rxjs.animationFrameScheduler, { leading: true, trailing: true }))
|
|
57851
57881
|
.subscribe(function () {
|
|
57852
57882
|
_this.zone.run(function () {
|
|
57853
|
-
|
|
57883
|
+
// do not trigger reflow if element is detached.
|
|
57884
|
+
if (_this.document.contains(_this.nativeElement)) {
|
|
57885
|
+
_this.notifyChanges(true);
|
|
57886
|
+
}
|
|
57854
57887
|
});
|
|
57855
57888
|
});
|
|
57856
57889
|
this.pipeTriggerNotifier.pipe(operators.takeUntil(this.destroy$)).subscribe(function () { return _this.pipeTrigger++; });
|
|
@@ -57908,9 +57941,10 @@
|
|
|
57908
57941
|
// called to recalc all widths that may have changes as a result of
|
|
57909
57942
|
// the vert. scrollbar showing/hiding
|
|
57910
57943
|
_this.notifyChanges(true);
|
|
57944
|
+
_this.cdr.detectChanges();
|
|
57911
57945
|
});
|
|
57912
|
-
this.verticalScrollContainer.contentSizeChange.pipe(
|
|
57913
|
-
_this.
|
|
57946
|
+
this.verticalScrollContainer.contentSizeChange.pipe(operators.filter(function () { return !_this._init; }), destructor).subscribe(function () {
|
|
57947
|
+
_this.notifyChanges();
|
|
57914
57948
|
});
|
|
57915
57949
|
this.onDensityChanged.pipe(destructor).subscribe(function () {
|
|
57916
57950
|
_this.crudService.endEdit(false);
|
|
@@ -69471,6 +69505,9 @@
|
|
|
69471
69505
|
this.setupColumns();
|
|
69472
69506
|
}
|
|
69473
69507
|
this.cdr.markForCheck();
|
|
69508
|
+
if (this.isPercentHeight) {
|
|
69509
|
+
this.notifyChanges(true);
|
|
69510
|
+
}
|
|
69474
69511
|
},
|
|
69475
69512
|
enumerable: false,
|
|
69476
69513
|
configurable: true
|
|
@@ -77046,20 +77083,16 @@
|
|
|
77046
77083
|
}
|
|
77047
77084
|
_super.prototype.ngOnInit.call(this);
|
|
77048
77085
|
};
|
|
77049
|
-
IgxHierarchicalGridComponent.prototype.ngDoCheck = function () {
|
|
77050
|
-
if (this._cdrRequestRepaint && !this._init) {
|
|
77051
|
-
this.updateSizes();
|
|
77052
|
-
}
|
|
77053
|
-
_super.prototype.ngDoCheck.call(this);
|
|
77054
|
-
};
|
|
77055
77086
|
/**
|
|
77056
77087
|
* @hidden
|
|
77057
77088
|
*/
|
|
77058
77089
|
IgxHierarchicalGridComponent.prototype.ngAfterViewInit = function () {
|
|
77059
77090
|
var _this = this;
|
|
77060
77091
|
_super.prototype.ngAfterViewInit.call(this);
|
|
77061
|
-
this.
|
|
77062
|
-
|
|
77092
|
+
this.zone.runOutsideAngular(function () {
|
|
77093
|
+
_this.verticalScrollContainer.getScroll().addEventListener('scroll', _this.hg_verticalScrollHandler.bind(_this));
|
|
77094
|
+
_this.headerContainer.getScroll().addEventListener('scroll', _this.hg_horizontalScrollHandler.bind(_this));
|
|
77095
|
+
});
|
|
77063
77096
|
this.verticalScrollContainer.beforeViewDestroyed.pipe(operators.takeUntil(this.destroy$)).subscribe(function (view) {
|
|
77064
77097
|
var rowData = view.context.$implicit;
|
|
77065
77098
|
if (_this.isChildGridRecord(rowData)) {
|
|
@@ -77465,26 +77498,6 @@
|
|
|
77465
77498
|
relatedGrid.updateOnRender = false;
|
|
77466
77499
|
}
|
|
77467
77500
|
});
|
|
77468
|
-
var childGrids = this.getChildGrids(true);
|
|
77469
|
-
childGrids.forEach(function (grid) {
|
|
77470
|
-
if (grid.isPercentWidth) {
|
|
77471
|
-
grid.notifyChanges(true);
|
|
77472
|
-
}
|
|
77473
|
-
grid.updateScrollPosition();
|
|
77474
|
-
});
|
|
77475
|
-
}
|
|
77476
|
-
};
|
|
77477
|
-
/**
|
|
77478
|
-
* @hidden
|
|
77479
|
-
*/
|
|
77480
|
-
IgxHierarchicalGridComponent.prototype.updateScrollPosition = function () {
|
|
77481
|
-
var vScr = this.verticalScrollContainer.getScroll();
|
|
77482
|
-
var hScr = this.headerContainer.getScroll();
|
|
77483
|
-
if (vScr) {
|
|
77484
|
-
vScr.scrollTop = this.scrollTop;
|
|
77485
|
-
}
|
|
77486
|
-
if (hScr) {
|
|
77487
|
-
hScr.scrollLeft = this.scrollLeft;
|
|
77488
77501
|
}
|
|
77489
77502
|
};
|
|
77490
77503
|
IgxHierarchicalGridComponent.prototype.onContainerScroll = function () {
|
|
@@ -77513,6 +77526,12 @@
|
|
|
77513
77526
|
return keys.indexOf(field) === -1;
|
|
77514
77527
|
});
|
|
77515
77528
|
};
|
|
77529
|
+
IgxHierarchicalGridComponent.prototype.resizeNotifyHandler = function () {
|
|
77530
|
+
// do not trigger reflow if element is detached or if it is child grid.
|
|
77531
|
+
if (this.document.contains(this.nativeElement) && !this.parent) {
|
|
77532
|
+
this.notifyChanges(true);
|
|
77533
|
+
}
|
|
77534
|
+
};
|
|
77516
77535
|
/**
|
|
77517
77536
|
* @hidden
|
|
77518
77537
|
*/
|
|
@@ -77549,14 +77568,6 @@
|
|
|
77549
77568
|
}
|
|
77550
77569
|
return _super.prototype._shouldAutoSize.call(this, renderedHeight);
|
|
77551
77570
|
};
|
|
77552
|
-
IgxHierarchicalGridComponent.prototype.updateSizes = function () {
|
|
77553
|
-
if (document.body.contains(this.nativeElement) && this.isPercentWidth) {
|
|
77554
|
-
this.reflow();
|
|
77555
|
-
this.hgridAPI.getChildGrids(false).forEach(function (grid) {
|
|
77556
|
-
grid.updateSizes();
|
|
77557
|
-
});
|
|
77558
|
-
}
|
|
77559
|
-
};
|
|
77560
77571
|
IgxHierarchicalGridComponent.prototype.updateColumnList = function (recalcColSizes) {
|
|
77561
77572
|
if (recalcColSizes === void 0) { recalcColSizes = true; }
|
|
77562
77573
|
var childLayouts = this.parent ? this.childLayoutList : this.allLayoutList;
|
|
@@ -77581,10 +77592,10 @@
|
|
|
77581
77592
|
});
|
|
77582
77593
|
};
|
|
77583
77594
|
IgxHierarchicalGridComponent.prototype.hg_verticalScrollHandler = function (event) {
|
|
77584
|
-
this.scrollTop =
|
|
77595
|
+
this.scrollTop = this.verticalScrollContainer.scrollPosition;
|
|
77585
77596
|
};
|
|
77586
77597
|
IgxHierarchicalGridComponent.prototype.hg_horizontalScrollHandler = function (event) {
|
|
77587
|
-
this.scrollLeft =
|
|
77598
|
+
this.scrollLeft = this.headerContainer.scrollPosition;
|
|
77588
77599
|
};
|
|
77589
77600
|
return IgxHierarchicalGridComponent;
|
|
77590
77601
|
}(IgxHierarchicalGridBaseDirective));
|