igniteui-angular 12.3.33 → 12.3.36
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 +53 -21
- package/bundles/igniteui-angular.umd.js.map +1 -1
- package/esm2015/lib/date-picker/date-picker.component.js +2 -1
- package/esm2015/lib/date-range-picker/date-range-picker.component.js +3 -3
- package/esm2015/lib/directives/drag-drop/drag-drop.directive.js +8 -6
- package/esm2015/lib/directives/radio/radio-group.directive.js +13 -7
- package/esm2015/lib/grids/grid/grid.component.js +2 -2
- package/esm2015/lib/grids/grid-navigation.service.js +8 -3
- package/esm2015/lib/grids/selection/selection.service.js +9 -4
- package/esm2015/lib/paginator/pager.component.js +2 -2
- package/esm2015/lib/radio/radio.component.js +15 -2
- package/esm2015/lib/time-picker/time-picker.component.js +3 -2
- package/fesm2015/igniteui-angular.js +52 -19
- package/fesm2015/igniteui-angular.js.map +1 -1
- package/igniteui-angular.metadata.json +1 -1
- package/lib/directives/drag-drop/drag-drop.directive.d.ts +1 -1
- package/lib/directives/radio/radio-group.directive.d.ts +6 -1
- package/lib/grids/selection/selection.service.d.ts +2 -1
- package/lib/radio/radio.component.d.ts +14 -3
- package/package.json +1 -1
|
@@ -8133,9 +8133,13 @@
|
|
|
8133
8133
|
*/
|
|
8134
8134
|
this.pointerEventInGridBody = false;
|
|
8135
8135
|
this._ranges = new Set();
|
|
8136
|
-
this.pointerOriginHandler = function () {
|
|
8136
|
+
this.pointerOriginHandler = function (event) {
|
|
8137
8137
|
_this.pointerEventInGridBody = false;
|
|
8138
8138
|
document.body.removeEventListener('pointerup', _this.pointerOriginHandler);
|
|
8139
|
+
var targetTagName = event.target.tagName.toLowerCase();
|
|
8140
|
+
if (targetTagName !== 'igx-grid-cell' && targetTagName !== 'igx-tree-grid-cell') {
|
|
8141
|
+
_this.pointerUp(_this._lastSelectedNode, _this.grid.rangeSelected, true);
|
|
8142
|
+
}
|
|
8139
8143
|
};
|
|
8140
8144
|
this.initPointerState();
|
|
8141
8145
|
this.initKeyboardState();
|
|
@@ -8261,6 +8265,7 @@
|
|
|
8261
8265
|
* and the start node of the `state`.
|
|
8262
8266
|
*/
|
|
8263
8267
|
IgxGridSelectionService.prototype.generateRange = function (node, state) {
|
|
8268
|
+
this._lastSelectedNode = node;
|
|
8264
8269
|
if (!state) {
|
|
8265
8270
|
return {
|
|
8266
8271
|
rowStart: node.row,
|
|
@@ -8382,9 +8387,9 @@
|
|
|
8382
8387
|
}
|
|
8383
8388
|
return true;
|
|
8384
8389
|
};
|
|
8385
|
-
IgxGridSelectionService.prototype.pointerUp = function (node, emitter) {
|
|
8390
|
+
IgxGridSelectionService.prototype.pointerUp = function (node, emitter, firedOutsideGrid) {
|
|
8386
8391
|
var _this = this;
|
|
8387
|
-
if (this.dragMode) {
|
|
8392
|
+
if (this.dragMode || firedOutsideGrid) {
|
|
8388
8393
|
this.restoreTextSelection();
|
|
8389
8394
|
this.addRangeMeta(node, this.pointerState);
|
|
8390
8395
|
this.mergeMap(this.selection, this.temp);
|
|
@@ -23990,7 +23995,7 @@
|
|
|
23990
23995
|
for (var elementsFromPoint_1 = __values(elementsFromPoint), elementsFromPoint_1_1 = elementsFromPoint_1.next(); !elementsFromPoint_1_1.done; elementsFromPoint_1_1 = elementsFromPoint_1.next()) {
|
|
23991
23996
|
var elFromPoint = elementsFromPoint_1_1.value;
|
|
23992
23997
|
if (!!(elFromPoint === null || elFromPoint === void 0 ? void 0 : elFromPoint.shadowRoot)) {
|
|
23993
|
-
targetElements = targetElements.concat(this.getFromShadowRoot(elFromPoint, pageX, pageY));
|
|
23998
|
+
targetElements = targetElements.concat(this.getFromShadowRoot(elFromPoint, pageX, pageY, elementsFromPoint));
|
|
23994
23999
|
}
|
|
23995
24000
|
else if (targetElements.indexOf(elFromPoint) === -1) {
|
|
23996
24001
|
targetElements.push(elFromPoint);
|
|
@@ -24042,22 +24047,24 @@
|
|
|
24042
24047
|
* @hidden
|
|
24043
24048
|
* Traverse shadow dom in depth.
|
|
24044
24049
|
*/
|
|
24045
|
-
IgxDragDirective.prototype.getFromShadowRoot = function (elem, pageX, pageY) {
|
|
24050
|
+
IgxDragDirective.prototype.getFromShadowRoot = function (elem, pageX, pageY, parentDomElems) {
|
|
24046
24051
|
var e_3, _a;
|
|
24047
24052
|
var elementsFromPoint = elem.shadowRoot.elementsFromPoint(pageX, pageY);
|
|
24048
|
-
var
|
|
24053
|
+
var shadowElements = elementsFromPoint.filter(function (cur) { return parentDomElems.indexOf(cur) === -1; });
|
|
24054
|
+
var res = [];
|
|
24049
24055
|
try {
|
|
24050
|
-
for (var
|
|
24051
|
-
var elFromPoint =
|
|
24056
|
+
for (var shadowElements_1 = __values(shadowElements), shadowElements_1_1 = shadowElements_1.next(); !shadowElements_1_1.done; shadowElements_1_1 = shadowElements_1.next()) {
|
|
24057
|
+
var elFromPoint = shadowElements_1_1.value;
|
|
24052
24058
|
if (!!(elFromPoint === null || elFromPoint === void 0 ? void 0 : elFromPoint.shadowRoot) && elFromPoint.shadowRoot !== elem.shadowRoot) {
|
|
24053
|
-
res = res.concat(this.getFromShadowRoot(elFromPoint, pageX, pageY));
|
|
24059
|
+
res = res.concat(this.getFromShadowRoot(elFromPoint, pageX, pageY, elementsFromPoint));
|
|
24054
24060
|
}
|
|
24061
|
+
res.push(elFromPoint);
|
|
24055
24062
|
}
|
|
24056
24063
|
}
|
|
24057
24064
|
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
24058
24065
|
finally {
|
|
24059
24066
|
try {
|
|
24060
|
-
if (
|
|
24067
|
+
if (shadowElements_1_1 && !shadowElements_1_1.done && (_a = shadowElements_1.return)) _a.call(shadowElements_1);
|
|
24061
24068
|
}
|
|
24062
24069
|
finally { if (e_3) throw e_3.error; }
|
|
24063
24070
|
}
|
|
@@ -25935,6 +25942,11 @@
|
|
|
25935
25942
|
* @hidden
|
|
25936
25943
|
*/
|
|
25937
25944
|
this.inputId = this.id + "-input";
|
|
25945
|
+
/**
|
|
25946
|
+
* @hidden
|
|
25947
|
+
* @internal
|
|
25948
|
+
*/
|
|
25949
|
+
this.destroy$ = new rxjs.Subject();
|
|
25938
25950
|
/**
|
|
25939
25951
|
* @hidden
|
|
25940
25952
|
* @internal
|
|
@@ -26022,6 +26034,14 @@
|
|
|
26022
26034
|
IgxRadioComponent.prototype._clicked = function () {
|
|
26023
26035
|
this.select();
|
|
26024
26036
|
};
|
|
26037
|
+
/**
|
|
26038
|
+
* @hidden
|
|
26039
|
+
* @internal
|
|
26040
|
+
*/
|
|
26041
|
+
IgxRadioComponent.prototype.ngOnDestroy = function () {
|
|
26042
|
+
this.destroy$.next(true);
|
|
26043
|
+
this.destroy$.complete();
|
|
26044
|
+
};
|
|
26025
26045
|
/**
|
|
26026
26046
|
* Selects the current radio button.
|
|
26027
26047
|
* ```typescript
|
|
@@ -26262,6 +26282,11 @@
|
|
|
26262
26282
|
* @internal
|
|
26263
26283
|
*/
|
|
26264
26284
|
this.destroy$ = new rxjs.Subject();
|
|
26285
|
+
/**
|
|
26286
|
+
* @hidden
|
|
26287
|
+
* @internal
|
|
26288
|
+
*/
|
|
26289
|
+
this.queryChange$ = new rxjs.Subject();
|
|
26265
26290
|
}
|
|
26266
26291
|
Object.defineProperty(IgxRadioGroupDirective.prototype, "value", {
|
|
26267
26292
|
/**
|
|
@@ -26436,8 +26461,9 @@
|
|
|
26436
26461
|
// The initial value can possibly be set by NgModel and it is possible that
|
|
26437
26462
|
// the OnInit of the NgModel occurs after the OnInit of this class.
|
|
26438
26463
|
this._isInitialized = true;
|
|
26439
|
-
|
|
26440
|
-
_this.
|
|
26464
|
+
this.radioButtons.changes.pipe(operators.startWith(0), operators.takeUntil(this.destroy$)).subscribe(function () {
|
|
26465
|
+
_this.queryChange$.next();
|
|
26466
|
+
setTimeout(function () { return _this._initRadioButtons(); });
|
|
26441
26467
|
});
|
|
26442
26468
|
};
|
|
26443
26469
|
/**
|
|
@@ -26510,7 +26536,7 @@
|
|
|
26510
26536
|
button.checked = true;
|
|
26511
26537
|
_this._selected = button;
|
|
26512
26538
|
}
|
|
26513
|
-
button.change.pipe(operators.takeUntil(_this.destroy$)).subscribe(function (ev) { return _this._selectedRadioButtonChanged(ev); });
|
|
26539
|
+
button.change.pipe(operators.takeUntil(button.destroy$), operators.takeUntil(_this.destroy$), operators.takeUntil(_this.queryChange$)).subscribe(function (ev) { return _this._selectedRadioButtonChanged(ev); });
|
|
26514
26540
|
});
|
|
26515
26541
|
}
|
|
26516
26542
|
};
|
|
@@ -42186,6 +42212,7 @@
|
|
|
42186
42212
|
_this._onTouchedCallback = rxjs.noop;
|
|
42187
42213
|
_this._onValidatorChange = rxjs.noop;
|
|
42188
42214
|
_this.onStatusChanged = function () {
|
|
42215
|
+
_this.disabled = _this._ngControl.disabled;
|
|
42189
42216
|
_this.updateValidity();
|
|
42190
42217
|
_this.inputGroup.isRequired = _this.required;
|
|
42191
42218
|
};
|
|
@@ -48753,8 +48780,13 @@
|
|
|
48753
48780
|
this.grid.clearCellSelection();
|
|
48754
48781
|
this.grid.navigateTo(this.activeNode.row, this.activeNode.column, function (obj) {
|
|
48755
48782
|
var _a;
|
|
48756
|
-
(
|
|
48757
|
-
|
|
48783
|
+
if (_this.activeNode.row === obj.target.row.index) {
|
|
48784
|
+
(_a = obj.target) === null || _a === void 0 ? void 0 : _a.activate(event);
|
|
48785
|
+
_this.grid.cdr.detectChanges();
|
|
48786
|
+
}
|
|
48787
|
+
else {
|
|
48788
|
+
_this.grid.navigateTo(_this.activeNode.row, _this.activeNode.column);
|
|
48789
|
+
}
|
|
48758
48790
|
});
|
|
48759
48791
|
}
|
|
48760
48792
|
else {
|
|
@@ -64419,7 +64451,7 @@
|
|
|
64419
64451
|
IgxPageNavigationComponent.decorators = [
|
|
64420
64452
|
{ type: i0.Component, args: [{
|
|
64421
64453
|
selector: 'igx-page-nav',
|
|
64422
|
-
template: "<button\n [title]=\"paginator.resourceStrings.igx_paginator_first_page_button_text\"\n [disabled]=\"paginator.isFirstPageDisabled\"\n [attr.aria-disabled]=\"paginator.isFirstPageDisabled\"\n (click)=\"paginator.paginate(0)\"\n igxButton=\"icon\"\n igxRipple\n [igxRippleCentered]=\"true\"\n>\n <igx-icon>first_page</igx-icon>\n</button>\n<button\n [title]=\"paginator.resourceStrings.igx_paginator_previous_page_button_text\"\n [disabled]=\"paginator.isFirstPageDisabled\"\n [attr.aria-disabled]=\"paginator.isFirstPageDisabled\"\n (click)=\"paginator.previousPage()\"\n igxButton=\"icon\"\n igxRipple\n [igxRippleCentered]=\"true\"\n>\n <igx-icon>chevron_left</igx-icon>\n</button>\n<div class=\"igx-page-nav__text\" aria-current=\"page\">\n <span>{{ paginator.page + 1 }}</span>\n <span\n > {{\n paginator.resourceStrings.igx_paginator_pager_text\n }} </span\n >\n <span>{{ paginator.totalPages }}</span>\n</div>\n<button\n [title]=\"paginator.resourceStrings.igx_paginator_next_page_button_text\"\n [disabled]=\"paginator.isLastPageDisabled\"\n [attr.aria-disabled]=\"paginator.isLastPageDisabled\"\n (click)=\"paginator.nextPage()\"\n igxRipple\n [igxRippleCentered]=\"true\"\n igxButton=\"icon\"\n>\n <igx-icon>chevron_right</igx-icon>\n</button>\n<button\n [title]=\"paginator.resourceStrings.igx_paginator_last_page_button_text\"\n [disabled]=\"paginator.isLastPageDisabled\"\n [attr.aria-disabled]=\"paginator.isLastPageDisabled\"\n (click)=\"paginator.paginate(paginator.totalPages - 1)\"\n igxButton=\"icon\"\n igxRipple\n [igxRippleCentered]=\"true\"\n>\n <igx-icon>last_page</igx-icon>\n</button>\n\n"
|
|
64454
|
+
template: "<button\n [title]=\"paginator.resourceStrings.igx_paginator_first_page_button_text\"\n [disabled]=\"paginator.isFirstPageDisabled\"\n [attr.aria-disabled]=\"paginator.isFirstPageDisabled\"\n (click)=\"paginator.paginate(0)\"\n igxButton=\"icon\"\n igxRipple\n [igxRippleCentered]=\"true\"\n type=\"button\"\n>\n <igx-icon>first_page</igx-icon>\n</button>\n<button\n [title]=\"paginator.resourceStrings.igx_paginator_previous_page_button_text\"\n [disabled]=\"paginator.isFirstPageDisabled\"\n [attr.aria-disabled]=\"paginator.isFirstPageDisabled\"\n (click)=\"paginator.previousPage()\"\n igxButton=\"icon\"\n igxRipple\n [igxRippleCentered]=\"true\"\n type=\"button\"\n>\n <igx-icon>chevron_left</igx-icon>\n</button>\n<div class=\"igx-page-nav__text\" aria-current=\"page\">\n <span>{{ paginator.page + 1 }}</span>\n <span\n > {{\n paginator.resourceStrings.igx_paginator_pager_text\n }} </span\n >\n <span>{{ paginator.totalPages }}</span>\n</div>\n<button\n [title]=\"paginator.resourceStrings.igx_paginator_next_page_button_text\"\n [disabled]=\"paginator.isLastPageDisabled\"\n [attr.aria-disabled]=\"paginator.isLastPageDisabled\"\n (click)=\"paginator.nextPage()\"\n igxRipple\n [igxRippleCentered]=\"true\"\n igxButton=\"icon\"\n type=\"button\"\n>\n <igx-icon>chevron_right</igx-icon>\n</button>\n<button\n [title]=\"paginator.resourceStrings.igx_paginator_last_page_button_text\"\n [disabled]=\"paginator.isLastPageDisabled\"\n [attr.aria-disabled]=\"paginator.isLastPageDisabled\"\n (click)=\"paginator.paginate(paginator.totalPages - 1)\"\n igxButton=\"icon\"\n igxRipple\n [igxRippleCentered]=\"true\"\n type=\"button\"\n>\n <igx-icon>last_page</igx-icon>\n</button>\n\n"
|
|
64423
64455
|
},] }
|
|
64424
64456
|
];
|
|
64425
64457
|
IgxPageNavigationComponent.ctorParameters = function () { return [
|
|
@@ -67696,7 +67728,8 @@
|
|
|
67696
67728
|
};
|
|
67697
67729
|
IgxTimePickerComponent.prototype.onStatusChanged = function () {
|
|
67698
67730
|
if ((this._ngControl.control.touched || this._ngControl.control.dirty) &&
|
|
67699
|
-
(this._ngControl.control.validator || this._ngControl.control.asyncValidator)
|
|
67731
|
+
(this._ngControl.control.validator || this._ngControl.control.asyncValidator) &&
|
|
67732
|
+
!this._ngControl.disabled) {
|
|
67700
67733
|
if (this._inputGroup.isFocused) {
|
|
67701
67734
|
this.inputDirective.valid = this._ngControl.valid ? exports.IgxInputState.VALID : exports.IgxInputState.INVALID;
|
|
67702
67735
|
}
|
|
@@ -70186,7 +70219,6 @@
|
|
|
70186
70219
|
* @hidden @internal
|
|
70187
70220
|
*/
|
|
70188
70221
|
IgxGridComponent.prototype.ngAfterContentInit = function () {
|
|
70189
|
-
var _this = this;
|
|
70190
70222
|
_super.prototype.ngAfterContentInit.call(this);
|
|
70191
70223
|
if (this.allowFiltering && this.hasColumnLayouts) {
|
|
70192
70224
|
this.filterMode = FilterMode.excelStyleFilter;
|
|
@@ -70194,7 +70226,6 @@
|
|
|
70194
70226
|
if (this.groupTemplate) {
|
|
70195
70227
|
this._groupRowTemplate = this.groupTemplate.template;
|
|
70196
70228
|
}
|
|
70197
|
-
this.detailTemplate.changes.subscribe(function () { return _this.trackChanges = function (_, rec) { return ((rec === null || rec === void 0 ? void 0 : rec.detailsData) !== undefined ? rec.detailsData : rec); }; });
|
|
70198
70229
|
if (this.hideGroupedColumns && this._columns && this.groupingExpressions) {
|
|
70199
70230
|
this._setGroupColsVisibility(this.hideGroupedColumns);
|
|
70200
70231
|
}
|
|
@@ -70235,6 +70266,7 @@
|
|
|
70235
70266
|
IgxGridComponent.prototype.ngOnInit = function () {
|
|
70236
70267
|
var _this = this;
|
|
70237
70268
|
_super.prototype.ngOnInit.call(this);
|
|
70269
|
+
this.trackChanges = function (_, rec) { return ((rec === null || rec === void 0 ? void 0 : rec.detailsData) !== undefined ? rec.detailsData : rec); };
|
|
70238
70270
|
this.onGroupingDone.pipe(operators.takeUntil(this.destroy$)).subscribe(function (args) {
|
|
70239
70271
|
_this.crudService.endEdit(false);
|
|
70240
70272
|
_this.summaryService.updateSummaryCache(args);
|
|
@@ -83933,14 +83965,14 @@
|
|
|
83933
83965
|
_this.onValidatorChange = rxjs.noop;
|
|
83934
83966
|
_this.onStatusChanged = function () {
|
|
83935
83967
|
if (_this.inputGroup) {
|
|
83936
|
-
_this.inputDirective.valid = _this.isTouchedOrDirty
|
|
83968
|
+
_this.inputDirective.valid = _this.isTouchedOrDirty && !_this._ngControl.disabled
|
|
83937
83969
|
? _this.getInputState(_this.inputGroup.isFocused)
|
|
83938
83970
|
: exports.IgxInputState.INITIAL;
|
|
83939
83971
|
}
|
|
83940
83972
|
else if (_this.hasProjectedInputs) {
|
|
83941
83973
|
_this.projectedInputs
|
|
83942
83974
|
.forEach(function (i) {
|
|
83943
|
-
i.inputDirective.valid = _this.isTouchedOrDirty
|
|
83975
|
+
i.inputDirective.valid = _this.isTouchedOrDirty && !_this._ngControl.disabled
|
|
83944
83976
|
? _this.getInputState(i.isFocused)
|
|
83945
83977
|
: exports.IgxInputState.INITIAL;
|
|
83946
83978
|
;
|