igniteui-angular 12.3.34 → 12.3.35
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 +37 -8
- package/bundles/igniteui-angular.umd.js.map +1 -1
- 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/fesm2015/igniteui-angular.js +38 -9
- 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
|
@@ -6,7 +6,7 @@ import { NG_VALUE_ACCESSOR, NG_VALIDATORS, CheckboxRequiredValidator, NgModel, F
|
|
|
6
6
|
import * as i2 from '@angular/common';
|
|
7
7
|
import { isPlatformBrowser, CommonModule, DOCUMENT, DatePipe, formatDate, FormatWidth, getLocaleDateFormat, getLocaleCurrencyCode, DecimalPipe, CurrencyPipe, PercentPipe, getLocaleNumberFormat, NumberFormatStyle, getCurrencySymbol } from '@angular/common';
|
|
8
8
|
import { Observable, noop, Subject, fromEvent, interval, animationFrameScheduler, merge, pipe, Subscription, timer } from 'rxjs';
|
|
9
|
-
import { throttleTime, takeUntil, filter, first as first$1, take, throttle, debounce, tap, switchMap, skipLast, map, shareReplay, takeWhile, debounceTime, pluck } from 'rxjs/operators';
|
|
9
|
+
import { throttleTime, takeUntil, filter, first as first$1, take, throttle, startWith, debounce, tap, switchMap, skipLast, map, shareReplay, takeWhile, debounceTime, pluck } from 'rxjs/operators';
|
|
10
10
|
import mergeWith from 'lodash.mergewith';
|
|
11
11
|
import { ResizeObserver } from '@juggle/resize-observer';
|
|
12
12
|
import { __decorate, __awaiter } from 'tslib';
|
|
@@ -7345,9 +7345,13 @@ class IgxGridSelectionService {
|
|
|
7345
7345
|
*/
|
|
7346
7346
|
this.pointerEventInGridBody = false;
|
|
7347
7347
|
this._ranges = new Set();
|
|
7348
|
-
this.pointerOriginHandler = () => {
|
|
7348
|
+
this.pointerOriginHandler = (event) => {
|
|
7349
7349
|
this.pointerEventInGridBody = false;
|
|
7350
7350
|
document.body.removeEventListener('pointerup', this.pointerOriginHandler);
|
|
7351
|
+
const targetTagName = event.target.tagName.toLowerCase();
|
|
7352
|
+
if (targetTagName !== 'igx-grid-cell' && targetTagName !== 'igx-tree-grid-cell') {
|
|
7353
|
+
this.pointerUp(this._lastSelectedNode, this.grid.rangeSelected, true);
|
|
7354
|
+
}
|
|
7351
7355
|
};
|
|
7352
7356
|
this.initPointerState();
|
|
7353
7357
|
this.initKeyboardState();
|
|
@@ -7464,6 +7468,7 @@ class IgxGridSelectionService {
|
|
|
7464
7468
|
* and the start node of the `state`.
|
|
7465
7469
|
*/
|
|
7466
7470
|
generateRange(node, state) {
|
|
7471
|
+
this._lastSelectedNode = node;
|
|
7467
7472
|
if (!state) {
|
|
7468
7473
|
return {
|
|
7469
7474
|
rowStart: node.row,
|
|
@@ -7581,8 +7586,8 @@ class IgxGridSelectionService {
|
|
|
7581
7586
|
}
|
|
7582
7587
|
return true;
|
|
7583
7588
|
}
|
|
7584
|
-
pointerUp(node, emitter) {
|
|
7585
|
-
if (this.dragMode) {
|
|
7589
|
+
pointerUp(node, emitter, firedOutsideGrid) {
|
|
7590
|
+
if (this.dragMode || firedOutsideGrid) {
|
|
7586
7591
|
this.restoreTextSelection();
|
|
7587
7592
|
this.addRangeMeta(node, this.pointerState);
|
|
7588
7593
|
this.mergeMap(this.selection, this.temp);
|
|
@@ -23127,6 +23132,11 @@ class IgxRadioComponent {
|
|
|
23127
23132
|
* @hidden
|
|
23128
23133
|
*/
|
|
23129
23134
|
this.inputId = `${this.id}-input`;
|
|
23135
|
+
/**
|
|
23136
|
+
* @hidden
|
|
23137
|
+
* @internal
|
|
23138
|
+
*/
|
|
23139
|
+
this.destroy$ = new Subject();
|
|
23130
23140
|
/**
|
|
23131
23141
|
* @hidden
|
|
23132
23142
|
* @internal
|
|
@@ -23206,6 +23216,14 @@ class IgxRadioComponent {
|
|
|
23206
23216
|
_clicked() {
|
|
23207
23217
|
this.select();
|
|
23208
23218
|
}
|
|
23219
|
+
/**
|
|
23220
|
+
* @hidden
|
|
23221
|
+
* @internal
|
|
23222
|
+
*/
|
|
23223
|
+
ngOnDestroy() {
|
|
23224
|
+
this.destroy$.next(true);
|
|
23225
|
+
this.destroy$.complete();
|
|
23226
|
+
}
|
|
23209
23227
|
/**
|
|
23210
23228
|
* Selects the current radio button.
|
|
23211
23229
|
* ```typescript
|
|
@@ -23441,6 +23459,11 @@ class IgxRadioGroupDirective {
|
|
|
23441
23459
|
* @internal
|
|
23442
23460
|
*/
|
|
23443
23461
|
this.destroy$ = new Subject();
|
|
23462
|
+
/**
|
|
23463
|
+
* @hidden
|
|
23464
|
+
* @internal
|
|
23465
|
+
*/
|
|
23466
|
+
this.queryChange$ = new Subject();
|
|
23444
23467
|
}
|
|
23445
23468
|
/**
|
|
23446
23469
|
* Sets/gets the `value` attribute.
|
|
@@ -23586,8 +23609,9 @@ class IgxRadioGroupDirective {
|
|
|
23586
23609
|
// The initial value can possibly be set by NgModel and it is possible that
|
|
23587
23610
|
// the OnInit of the NgModel occurs after the OnInit of this class.
|
|
23588
23611
|
this._isInitialized = true;
|
|
23589
|
-
|
|
23590
|
-
this.
|
|
23612
|
+
this.radioButtons.changes.pipe(startWith(0), takeUntil(this.destroy$)).subscribe(() => {
|
|
23613
|
+
this.queryChange$.next();
|
|
23614
|
+
setTimeout(() => this._initRadioButtons());
|
|
23591
23615
|
});
|
|
23592
23616
|
}
|
|
23593
23617
|
/**
|
|
@@ -23659,7 +23683,7 @@ class IgxRadioGroupDirective {
|
|
|
23659
23683
|
button.checked = true;
|
|
23660
23684
|
this._selected = button;
|
|
23661
23685
|
}
|
|
23662
|
-
button.change.pipe(takeUntil(this.destroy$)).subscribe((ev) => this._selectedRadioButtonChanged(ev));
|
|
23686
|
+
button.change.pipe(takeUntil(button.destroy$), takeUntil(this.destroy$), takeUntil(this.queryChange$)).subscribe((ev) => this._selectedRadioButtonChanged(ev));
|
|
23663
23687
|
});
|
|
23664
23688
|
}
|
|
23665
23689
|
}
|
|
@@ -43847,8 +43871,13 @@ class IgxGridNavigationService {
|
|
|
43847
43871
|
this.grid.clearCellSelection();
|
|
43848
43872
|
this.grid.navigateTo(this.activeNode.row, this.activeNode.column, (obj) => {
|
|
43849
43873
|
var _a;
|
|
43850
|
-
(
|
|
43851
|
-
|
|
43874
|
+
if (this.activeNode.row === obj.target.row.index) {
|
|
43875
|
+
(_a = obj.target) === null || _a === void 0 ? void 0 : _a.activate(event);
|
|
43876
|
+
this.grid.cdr.detectChanges();
|
|
43877
|
+
}
|
|
43878
|
+
else {
|
|
43879
|
+
this.grid.navigateTo(this.activeNode.row, this.activeNode.column);
|
|
43880
|
+
}
|
|
43852
43881
|
});
|
|
43853
43882
|
}
|
|
43854
43883
|
else {
|