igniteui-angular 14.0.12 → 14.0.13
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/esm2020/lib/directives/radio/radio-group.directive.mjs +11 -5
- package/esm2020/lib/grids/grid-navigation.service.mjs +8 -3
- package/esm2020/lib/grids/selection/selection.service.mjs +9 -4
- package/esm2020/lib/radio/radio.component.mjs +15 -2
- package/fesm2015/igniteui-angular.mjs +38 -9
- package/fesm2015/igniteui-angular.mjs.map +1 -1
- package/fesm2020/igniteui-angular.mjs +38 -9
- package/fesm2020/igniteui-angular.mjs.map +1 -1
- package/lib/directives/radio/radio-group.directive.d.ts +5 -0
- package/lib/grids/selection/selection.service.d.ts +2 -1
- package/lib/radio/radio.component.d.ts +13 -2
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ import { NgModel, FormControlName, NG_VALUE_ACCESSOR, NG_VALIDATORS, CheckboxReq
|
|
|
7
7
|
import * as i1$1 from '@angular/common';
|
|
8
8
|
import { isPlatformBrowser, formatDate as formatDate$1, CurrencyPipe, formatPercent, formatNumber, getLocaleCurrencyCode, DatePipe, DOCUMENT, CommonModule, FormatWidth, getLocaleDateFormat, getLocaleFirstDayOfWeek, getLocaleNumberFormat, NumberFormatStyle, getCurrencySymbol } from '@angular/common';
|
|
9
9
|
import { Observable, Subject, fromEvent, interval, animationFrameScheduler, noop, merge, Subscription, timer, pipe } from 'rxjs';
|
|
10
|
-
import { takeUntil, filter, first as first$1, throttleTime, take, throttle, debounce, tap, switchMap, skipLast, map, debounceTime, shareReplay, takeWhile, pluck } from 'rxjs/operators';
|
|
10
|
+
import { takeUntil, filter, first as first$1, throttleTime, take, throttle, startWith, debounce, tap, switchMap, skipLast, map, debounceTime, shareReplay, takeWhile, pluck } from 'rxjs/operators';
|
|
11
11
|
import mergeWith from 'lodash.mergewith';
|
|
12
12
|
import { __awaiter, __decorate, __param } from 'tslib';
|
|
13
13
|
import * as JSZip from 'jszip';
|
|
@@ -17494,6 +17494,11 @@ let nextId$3 = 0;
|
|
|
17494
17494
|
class IgxRadioComponent {
|
|
17495
17495
|
constructor(cdr) {
|
|
17496
17496
|
this.cdr = cdr;
|
|
17497
|
+
/**
|
|
17498
|
+
* @hidden
|
|
17499
|
+
* @internal
|
|
17500
|
+
*/
|
|
17501
|
+
this.destroy$ = new Subject();
|
|
17497
17502
|
/**
|
|
17498
17503
|
* Sets/gets the `id` of the radio component.
|
|
17499
17504
|
* If not set, the `id` of the first radio component will be `"igx-radio-0"`.
|
|
@@ -17667,6 +17672,14 @@ class IgxRadioComponent {
|
|
|
17667
17672
|
set disabled(value) {
|
|
17668
17673
|
this._disabled = (value === '') || value;
|
|
17669
17674
|
}
|
|
17675
|
+
/**
|
|
17676
|
+
* @hidden
|
|
17677
|
+
* @internal
|
|
17678
|
+
*/
|
|
17679
|
+
ngOnDestroy() {
|
|
17680
|
+
this.destroy$.next(true);
|
|
17681
|
+
this.destroy$.complete();
|
|
17682
|
+
}
|
|
17670
17683
|
/**
|
|
17671
17684
|
* @hidden
|
|
17672
17685
|
* @internal
|
|
@@ -17966,6 +17979,11 @@ class IgxRadioGroupDirective {
|
|
|
17966
17979
|
* @internal
|
|
17967
17980
|
*/
|
|
17968
17981
|
this.destroy$ = new Subject();
|
|
17982
|
+
/**
|
|
17983
|
+
* @hidden
|
|
17984
|
+
* @internal
|
|
17985
|
+
*/
|
|
17986
|
+
this.queryChange$ = new Subject();
|
|
17969
17987
|
}
|
|
17970
17988
|
/**
|
|
17971
17989
|
* Sets/gets the `value` attribute.
|
|
@@ -18111,8 +18129,9 @@ class IgxRadioGroupDirective {
|
|
|
18111
18129
|
// The initial value can possibly be set by NgModel and it is possible that
|
|
18112
18130
|
// the OnInit of the NgModel occurs after the OnInit of this class.
|
|
18113
18131
|
this._isInitialized = true;
|
|
18114
|
-
|
|
18115
|
-
this.
|
|
18132
|
+
this.radioButtons.changes.pipe(startWith(0), takeUntil(this.destroy$)).subscribe(() => {
|
|
18133
|
+
this.queryChange$.next();
|
|
18134
|
+
setTimeout(() => this._initRadioButtons());
|
|
18116
18135
|
});
|
|
18117
18136
|
}
|
|
18118
18137
|
/**
|
|
@@ -18190,7 +18209,7 @@ class IgxRadioGroupDirective {
|
|
|
18190
18209
|
button.checked = true;
|
|
18191
18210
|
this._selected = button;
|
|
18192
18211
|
}
|
|
18193
|
-
button.change.pipe(takeUntil(this.destroy$)).subscribe((ev) => this._selectedRadioButtonChanged(ev));
|
|
18212
|
+
button.change.pipe(takeUntil(button.destroy$), takeUntil(this.destroy$), takeUntil(this.queryChange$)).subscribe((ev) => this._selectedRadioButtonChanged(ev));
|
|
18194
18213
|
});
|
|
18195
18214
|
}
|
|
18196
18215
|
}
|
|
@@ -23800,9 +23819,13 @@ class IgxGridSelectionService {
|
|
|
23800
23819
|
*/
|
|
23801
23820
|
this.pointerEventInGridBody = false;
|
|
23802
23821
|
this._ranges = new Set();
|
|
23803
|
-
this.pointerOriginHandler = () => {
|
|
23822
|
+
this.pointerOriginHandler = (event) => {
|
|
23804
23823
|
this.pointerEventInGridBody = false;
|
|
23805
23824
|
document.body.removeEventListener('pointerup', this.pointerOriginHandler);
|
|
23825
|
+
const targetTagName = event.target.tagName.toLowerCase();
|
|
23826
|
+
if (targetTagName !== 'igx-grid-cell' && targetTagName !== 'igx-tree-grid-cell') {
|
|
23827
|
+
this.pointerUp(this._lastSelectedNode, this.grid.rangeSelected, true);
|
|
23828
|
+
}
|
|
23806
23829
|
};
|
|
23807
23830
|
this.initPointerState();
|
|
23808
23831
|
this.initKeyboardState();
|
|
@@ -23919,6 +23942,7 @@ class IgxGridSelectionService {
|
|
|
23919
23942
|
* and the start node of the `state`.
|
|
23920
23943
|
*/
|
|
23921
23944
|
generateRange(node, state) {
|
|
23945
|
+
this._lastSelectedNode = node;
|
|
23922
23946
|
if (!state) {
|
|
23923
23947
|
return {
|
|
23924
23948
|
rowStart: node.row,
|
|
@@ -24036,8 +24060,8 @@ class IgxGridSelectionService {
|
|
|
24036
24060
|
}
|
|
24037
24061
|
return true;
|
|
24038
24062
|
}
|
|
24039
|
-
pointerUp(node, emitter) {
|
|
24040
|
-
if (this.dragMode) {
|
|
24063
|
+
pointerUp(node, emitter, firedOutsideGrid) {
|
|
24064
|
+
if (this.dragMode || firedOutsideGrid) {
|
|
24041
24065
|
this.restoreTextSelection();
|
|
24042
24066
|
this.addRangeMeta(node, this.pointerState);
|
|
24043
24067
|
this.mergeMap(this.selection, this.temp);
|
|
@@ -58465,8 +58489,13 @@ class IgxGridNavigationService {
|
|
|
58465
58489
|
this.grid.clearCellSelection();
|
|
58466
58490
|
this.grid.navigateTo(this.activeNode.row, this.activeNode.column, (obj) => {
|
|
58467
58491
|
var _a;
|
|
58468
|
-
(
|
|
58469
|
-
|
|
58492
|
+
if (this.activeNode.row === obj.target.row.index) {
|
|
58493
|
+
(_a = obj.target) === null || _a === void 0 ? void 0 : _a.activate(event);
|
|
58494
|
+
this.grid.cdr.detectChanges();
|
|
58495
|
+
}
|
|
58496
|
+
else {
|
|
58497
|
+
this.grid.navigateTo(this.activeNode.row, this.activeNode.column);
|
|
58498
|
+
}
|
|
58470
58499
|
});
|
|
58471
58500
|
}
|
|
58472
58501
|
else {
|