igniteui-angular 12.3.34 → 12.3.37
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 +49 -13
- 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 +2 -2
- package/esm2015/lib/directives/radio/radio-group.directive.js +13 -7
- package/esm2015/lib/grids/grid-navigation.service.js +8 -3
- package/esm2015/lib/grids/selection/selection.service.js +9 -4
- package/esm2015/lib/radio/radio.component.js +15 -2
- package/esm2015/lib/simple-combo/simple-combo.component.js +7 -2
- package/esm2015/lib/time-picker/time-picker.component.js +3 -2
- package/fesm2015/igniteui-angular.js +50 -14
- package/fesm2015/igniteui-angular.js.map +1 -1
- package/igniteui-angular.metadata.json +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);
|
|
@@ -23946,7 +23951,7 @@
|
|
|
23946
23951
|
var ghostMarginLeft = parseInt(document.defaultView.getComputedStyle(this.ghostElement)['margin-left'], 10);
|
|
23947
23952
|
var ghostMarginTop = parseInt(document.defaultView.getComputedStyle(this.ghostElement)['margin-top'], 10);
|
|
23948
23953
|
this.ghostElement.style.left = (this._ghostStartX - ghostMarginLeft + totalMovedX - this._ghostHostX) + 'px';
|
|
23949
|
-
this.ghostElement.style.top = (this._ghostStartY - ghostMarginTop + totalMovedY - this.
|
|
23954
|
+
this.ghostElement.style.top = (this._ghostStartY - ghostMarginTop + totalMovedY - this._ghostHostY) + 'px';
|
|
23950
23955
|
if (this.pointerEventsEnabled) {
|
|
23951
23956
|
// The ghostElement takes control for moving and dragging after it has been rendered.
|
|
23952
23957
|
if (this._pointerDownId !== null) {
|
|
@@ -25937,6 +25942,11 @@
|
|
|
25937
25942
|
* @hidden
|
|
25938
25943
|
*/
|
|
25939
25944
|
this.inputId = this.id + "-input";
|
|
25945
|
+
/**
|
|
25946
|
+
* @hidden
|
|
25947
|
+
* @internal
|
|
25948
|
+
*/
|
|
25949
|
+
this.destroy$ = new rxjs.Subject();
|
|
25940
25950
|
/**
|
|
25941
25951
|
* @hidden
|
|
25942
25952
|
* @internal
|
|
@@ -26024,6 +26034,14 @@
|
|
|
26024
26034
|
IgxRadioComponent.prototype._clicked = function () {
|
|
26025
26035
|
this.select();
|
|
26026
26036
|
};
|
|
26037
|
+
/**
|
|
26038
|
+
* @hidden
|
|
26039
|
+
* @internal
|
|
26040
|
+
*/
|
|
26041
|
+
IgxRadioComponent.prototype.ngOnDestroy = function () {
|
|
26042
|
+
this.destroy$.next(true);
|
|
26043
|
+
this.destroy$.complete();
|
|
26044
|
+
};
|
|
26027
26045
|
/**
|
|
26028
26046
|
* Selects the current radio button.
|
|
26029
26047
|
* ```typescript
|
|
@@ -26264,6 +26282,11 @@
|
|
|
26264
26282
|
* @internal
|
|
26265
26283
|
*/
|
|
26266
26284
|
this.destroy$ = new rxjs.Subject();
|
|
26285
|
+
/**
|
|
26286
|
+
* @hidden
|
|
26287
|
+
* @internal
|
|
26288
|
+
*/
|
|
26289
|
+
this.queryChange$ = new rxjs.Subject();
|
|
26267
26290
|
}
|
|
26268
26291
|
Object.defineProperty(IgxRadioGroupDirective.prototype, "value", {
|
|
26269
26292
|
/**
|
|
@@ -26438,8 +26461,9 @@
|
|
|
26438
26461
|
// The initial value can possibly be set by NgModel and it is possible that
|
|
26439
26462
|
// the OnInit of the NgModel occurs after the OnInit of this class.
|
|
26440
26463
|
this._isInitialized = true;
|
|
26441
|
-
|
|
26442
|
-
_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(); });
|
|
26443
26467
|
});
|
|
26444
26468
|
};
|
|
26445
26469
|
/**
|
|
@@ -26512,7 +26536,7 @@
|
|
|
26512
26536
|
button.checked = true;
|
|
26513
26537
|
_this._selected = button;
|
|
26514
26538
|
}
|
|
26515
|
-
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); });
|
|
26516
26540
|
});
|
|
26517
26541
|
}
|
|
26518
26542
|
};
|
|
@@ -41380,7 +41404,12 @@
|
|
|
41380
41404
|
}
|
|
41381
41405
|
return current === _this.selection[0];
|
|
41382
41406
|
});
|
|
41383
|
-
_this.
|
|
41407
|
+
if (!_this.isRemote) {
|
|
41408
|
+
// navigate to item only if we have local data
|
|
41409
|
+
// as with remote data this will fiddle with igxFor's scroll handler
|
|
41410
|
+
// and will trigger another chunk load which will break the visualization
|
|
41411
|
+
_this.dropdown.navigateItem(index);
|
|
41412
|
+
}
|
|
41384
41413
|
}
|
|
41385
41414
|
});
|
|
41386
41415
|
this.dropdown.opening.pipe(operators.takeUntil(this.destroy$)).subscribe(function () {
|
|
@@ -42188,6 +42217,7 @@
|
|
|
42188
42217
|
_this._onTouchedCallback = rxjs.noop;
|
|
42189
42218
|
_this._onValidatorChange = rxjs.noop;
|
|
42190
42219
|
_this.onStatusChanged = function () {
|
|
42220
|
+
_this.disabled = _this._ngControl.disabled;
|
|
42191
42221
|
_this.updateValidity();
|
|
42192
42222
|
_this.inputGroup.isRequired = _this.required;
|
|
42193
42223
|
};
|
|
@@ -48755,8 +48785,13 @@
|
|
|
48755
48785
|
this.grid.clearCellSelection();
|
|
48756
48786
|
this.grid.navigateTo(this.activeNode.row, this.activeNode.column, function (obj) {
|
|
48757
48787
|
var _a;
|
|
48758
|
-
(
|
|
48759
|
-
|
|
48788
|
+
if (_this.activeNode.row === obj.target.row.index) {
|
|
48789
|
+
(_a = obj.target) === null || _a === void 0 ? void 0 : _a.activate(event);
|
|
48790
|
+
_this.grid.cdr.detectChanges();
|
|
48791
|
+
}
|
|
48792
|
+
else {
|
|
48793
|
+
_this.grid.navigateTo(_this.activeNode.row, _this.activeNode.column);
|
|
48794
|
+
}
|
|
48760
48795
|
});
|
|
48761
48796
|
}
|
|
48762
48797
|
else {
|
|
@@ -67698,7 +67733,8 @@
|
|
|
67698
67733
|
};
|
|
67699
67734
|
IgxTimePickerComponent.prototype.onStatusChanged = function () {
|
|
67700
67735
|
if ((this._ngControl.control.touched || this._ngControl.control.dirty) &&
|
|
67701
|
-
(this._ngControl.control.validator || this._ngControl.control.asyncValidator)
|
|
67736
|
+
(this._ngControl.control.validator || this._ngControl.control.asyncValidator) &&
|
|
67737
|
+
!this._ngControl.disabled) {
|
|
67702
67738
|
if (this._inputGroup.isFocused) {
|
|
67703
67739
|
this.inputDirective.valid = this._ngControl.valid ? exports.IgxInputState.VALID : exports.IgxInputState.INVALID;
|
|
67704
67740
|
}
|
|
@@ -83934,14 +83970,14 @@
|
|
|
83934
83970
|
_this.onValidatorChange = rxjs.noop;
|
|
83935
83971
|
_this.onStatusChanged = function () {
|
|
83936
83972
|
if (_this.inputGroup) {
|
|
83937
|
-
_this.inputDirective.valid = _this.isTouchedOrDirty
|
|
83973
|
+
_this.inputDirective.valid = _this.isTouchedOrDirty && !_this._ngControl.disabled
|
|
83938
83974
|
? _this.getInputState(_this.inputGroup.isFocused)
|
|
83939
83975
|
: exports.IgxInputState.INITIAL;
|
|
83940
83976
|
}
|
|
83941
83977
|
else if (_this.hasProjectedInputs) {
|
|
83942
83978
|
_this.projectedInputs
|
|
83943
83979
|
.forEach(function (i) {
|
|
83944
|
-
i.inputDirective.valid = _this.isTouchedOrDirty
|
|
83980
|
+
i.inputDirective.valid = _this.isTouchedOrDirty && !_this._ngControl.disabled
|
|
83945
83981
|
? _this.getInputState(i.isFocused)
|
|
83946
83982
|
: exports.IgxInputState.INITIAL;
|
|
83947
83983
|
;
|