@progress/kendo-angular-dropdowns 27.0.0-develop.1 → 27.0.0-develop.3
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.
|
@@ -37,8 +37,8 @@ const packageMetadata = {
|
|
|
37
37
|
productName: 'Kendo UI for Angular',
|
|
38
38
|
productCode: 'KENDOUIANGULAR',
|
|
39
39
|
productCodes: ['KENDOUIANGULAR'],
|
|
40
|
-
publishDate:
|
|
41
|
-
version: '27.0.0-develop.
|
|
40
|
+
publishDate: 1795685115,
|
|
41
|
+
version: '27.0.0-develop.3',
|
|
42
42
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
43
43
|
};
|
|
44
44
|
|
|
@@ -2533,8 +2533,8 @@ class ListComponent {
|
|
|
2533
2533
|
[multipleSelection]="multipleSelection"
|
|
2534
2534
|
[attr.id]="optionPrefix + '-' + itemIndex"
|
|
2535
2535
|
[attr.tabIndex]="-1"
|
|
2536
|
-
[attr.aria-selected]="itemAriaSelected(itemIndex)"
|
|
2537
2536
|
[class]="listItemClass"
|
|
2537
|
+
[attr.aria-selected]="itemAriaSelected(itemIndex + startFrom)"
|
|
2538
2538
|
[ngClass]="{
|
|
2539
2539
|
'k-disabled': isDisabled(itemIndex),
|
|
2540
2540
|
'k-table-alt-row': isAltRow(itemIndex)
|
|
@@ -2869,8 +2869,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImpo
|
|
|
2869
2869
|
[multipleSelection]="multipleSelection"
|
|
2870
2870
|
[attr.id]="optionPrefix + '-' + itemIndex"
|
|
2871
2871
|
[attr.tabIndex]="-1"
|
|
2872
|
-
[attr.aria-selected]="itemAriaSelected(itemIndex)"
|
|
2873
2872
|
[class]="listItemClass"
|
|
2873
|
+
[attr.aria-selected]="itemAriaSelected(itemIndex + startFrom)"
|
|
2874
2874
|
[ngClass]="{
|
|
2875
2875
|
'k-disabled': isDisabled(itemIndex),
|
|
2876
2876
|
'k-table-alt-row': isAltRow(itemIndex)
|
|
@@ -14487,6 +14487,7 @@ class DropDownTreeComponent {
|
|
|
14487
14487
|
printableCharacters = new Subject();
|
|
14488
14488
|
subs = new Subscription();
|
|
14489
14489
|
popupSubscriptions;
|
|
14490
|
+
isClosingPopup = false;
|
|
14490
14491
|
touchstartDisposeHandler;
|
|
14491
14492
|
// Keep an instance of the last focused node for when the popup close is prevented
|
|
14492
14493
|
// in order to be able to properly restore the focus
|
|
@@ -14638,6 +14639,12 @@ class DropDownTreeComponent {
|
|
|
14638
14639
|
* @hidden
|
|
14639
14640
|
*/
|
|
14640
14641
|
togglePopup(open) {
|
|
14642
|
+
this.setPopupVisibility(open);
|
|
14643
|
+
}
|
|
14644
|
+
setPopupVisibility(open, restoreFocus = false) {
|
|
14645
|
+
if (this.isClosingPopup) {
|
|
14646
|
+
return;
|
|
14647
|
+
}
|
|
14641
14648
|
const isDisabled = this.disabled || this.readonly;
|
|
14642
14649
|
const sameState = this.isOpen === open;
|
|
14643
14650
|
if (isDisabled || sameState) {
|
|
@@ -14649,7 +14656,7 @@ class DropDownTreeComponent {
|
|
|
14649
14656
|
this.createPopup();
|
|
14650
14657
|
}
|
|
14651
14658
|
else {
|
|
14652
|
-
this.destroyPopup();
|
|
14659
|
+
this.destroyPopup(restoreFocus);
|
|
14653
14660
|
}
|
|
14654
14661
|
}
|
|
14655
14662
|
}
|
|
@@ -14799,8 +14806,7 @@ class DropDownTreeComponent {
|
|
|
14799
14806
|
this.dataItem = dataItem;
|
|
14800
14807
|
this.emitValueChange(this.value);
|
|
14801
14808
|
}
|
|
14802
|
-
this.
|
|
14803
|
-
this.focus();
|
|
14809
|
+
this.setPopupVisibility(false, true);
|
|
14804
14810
|
}
|
|
14805
14811
|
/**
|
|
14806
14812
|
* @hidden
|
|
@@ -15020,20 +15026,32 @@ class DropDownTreeComponent {
|
|
|
15020
15026
|
this.closed.emit();
|
|
15021
15027
|
}));
|
|
15022
15028
|
}
|
|
15023
|
-
destroyPopup() {
|
|
15024
|
-
if (this.
|
|
15025
|
-
|
|
15029
|
+
destroyPopup(restoreFocus = false) {
|
|
15030
|
+
if (this.isClosingPopup) {
|
|
15031
|
+
return;
|
|
15026
15032
|
}
|
|
15027
|
-
|
|
15028
|
-
|
|
15029
|
-
this.
|
|
15030
|
-
|
|
15031
|
-
|
|
15032
|
-
|
|
15033
|
-
|
|
15033
|
+
this.isClosingPopup = true;
|
|
15034
|
+
try {
|
|
15035
|
+
if (this.isActionSheetExpanded) {
|
|
15036
|
+
this.closeActionSheet();
|
|
15037
|
+
}
|
|
15038
|
+
if (this.popupRef) {
|
|
15039
|
+
if (restoreFocus) {
|
|
15040
|
+
this.focus();
|
|
15041
|
+
}
|
|
15042
|
+
this.popupRef.popupElement.removeEventListener('click', (event) => stopPropagation(event));
|
|
15043
|
+
this.popupRef.close();
|
|
15044
|
+
this.popupRef = null;
|
|
15045
|
+
this.clearFilter();
|
|
15046
|
+
// Trigger change detection to update aria-controls attribute
|
|
15047
|
+
this.cdr.markForCheck();
|
|
15048
|
+
}
|
|
15049
|
+
this.popupSubscriptions?.unsubscribe();
|
|
15050
|
+
this.popupSubscriptions = null;
|
|
15051
|
+
}
|
|
15052
|
+
finally {
|
|
15053
|
+
this.isClosingPopup = false;
|
|
15034
15054
|
}
|
|
15035
|
-
this.popupSubscriptions?.unsubscribe();
|
|
15036
|
-
this.popupSubscriptions = null;
|
|
15037
15055
|
}
|
|
15038
15056
|
clearFilter() {
|
|
15039
15057
|
if (this.filter !== "") {
|
|
@@ -15058,8 +15076,7 @@ class DropDownTreeComponent {
|
|
|
15058
15076
|
}
|
|
15059
15077
|
}
|
|
15060
15078
|
handleEscape() {
|
|
15061
|
-
this.
|
|
15062
|
-
this.focus();
|
|
15079
|
+
this.setPopupVisibility(false, true);
|
|
15063
15080
|
}
|
|
15064
15081
|
setState() {
|
|
15065
15082
|
if (isPresent(this.value) && isPresent(this.dataItem) && isPresent(this.valueField)) {
|
|
@@ -17117,6 +17134,7 @@ class MultiSelectTreeComponent {
|
|
|
17117
17134
|
printableCharacters = new Subject();
|
|
17118
17135
|
subs = new Subscription();
|
|
17119
17136
|
popupSubscriptions;
|
|
17137
|
+
isClosingPopup = false;
|
|
17120
17138
|
// Keep an instance of the last focused node for when the popup close is prevented
|
|
17121
17139
|
// in order to be able to properly restore the focus
|
|
17122
17140
|
lastNodeOnFocus;
|
|
@@ -17396,6 +17414,12 @@ class MultiSelectTreeComponent {
|
|
|
17396
17414
|
* @hidden
|
|
17397
17415
|
*/
|
|
17398
17416
|
togglePopup(open) {
|
|
17417
|
+
this.setPopupVisibility(open);
|
|
17418
|
+
}
|
|
17419
|
+
setPopupVisibility(open, restoreFocus = false) {
|
|
17420
|
+
if (this.isClosingPopup) {
|
|
17421
|
+
return;
|
|
17422
|
+
}
|
|
17399
17423
|
const isDisabled = this.disabled || this.readonly;
|
|
17400
17424
|
const sameState = this.isOpen === open;
|
|
17401
17425
|
this._zone.run(() => {
|
|
@@ -17410,7 +17434,7 @@ class MultiSelectTreeComponent {
|
|
|
17410
17434
|
this.createPopup();
|
|
17411
17435
|
}
|
|
17412
17436
|
else {
|
|
17413
|
-
this.destroyPopup();
|
|
17437
|
+
this.destroyPopup(restoreFocus);
|
|
17414
17438
|
}
|
|
17415
17439
|
}
|
|
17416
17440
|
else {
|
|
@@ -17670,17 +17694,29 @@ class MultiSelectTreeComponent {
|
|
|
17670
17694
|
}
|
|
17671
17695
|
}));
|
|
17672
17696
|
}
|
|
17673
|
-
destroyPopup() {
|
|
17674
|
-
if (this.
|
|
17675
|
-
|
|
17697
|
+
destroyPopup(restoreFocus = false) {
|
|
17698
|
+
if (this.isClosingPopup) {
|
|
17699
|
+
return;
|
|
17676
17700
|
}
|
|
17677
|
-
|
|
17678
|
-
|
|
17679
|
-
this.
|
|
17680
|
-
|
|
17701
|
+
this.isClosingPopup = true;
|
|
17702
|
+
try {
|
|
17703
|
+
if (this.isActionSheetExpanded) {
|
|
17704
|
+
this.closeActionSheet();
|
|
17705
|
+
}
|
|
17706
|
+
if (this.popupRef) {
|
|
17707
|
+
if (restoreFocus) {
|
|
17708
|
+
this.focus();
|
|
17709
|
+
}
|
|
17710
|
+
this.popupRef.close();
|
|
17711
|
+
this.popupRef = null;
|
|
17712
|
+
this.clearFilter();
|
|
17713
|
+
}
|
|
17714
|
+
this.popupSubscriptions?.unsubscribe();
|
|
17715
|
+
this.popupSubscriptions = null;
|
|
17716
|
+
}
|
|
17717
|
+
finally {
|
|
17718
|
+
this.isClosingPopup = false;
|
|
17681
17719
|
}
|
|
17682
|
-
this.popupSubscriptions?.unsubscribe();
|
|
17683
|
-
this.popupSubscriptions = null;
|
|
17684
17720
|
}
|
|
17685
17721
|
clearFilter() {
|
|
17686
17722
|
if (this.filter !== "") {
|
|
@@ -17720,8 +17756,7 @@ class MultiSelectTreeComponent {
|
|
|
17720
17756
|
this.navigationService.down.subscribe(this.handleDownKey.bind(this)),
|
|
17721
17757
|
this.navigationService.esc.subscribe(() => {
|
|
17722
17758
|
if (this.isOpen) {
|
|
17723
|
-
this.
|
|
17724
|
-
this.focus();
|
|
17759
|
+
this.setPopupVisibility(false, true);
|
|
17725
17760
|
}
|
|
17726
17761
|
else if (this.isFocused && this.checkedItems.length > 0) {
|
|
17727
17762
|
this.clearAll();
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "27.0.0-develop.
|
|
10
|
+
"publishDate": 1795685115,
|
|
11
|
+
"version": "27.0.0-develop.3",
|
|
12
12
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-dropdowns",
|
|
3
|
-
"version": "27.0.0-develop.
|
|
3
|
+
"version": "27.0.0-develop.3",
|
|
4
4
|
"description": "A wide variety of native Angular dropdown components including AutoComplete, ComboBox, DropDownList, DropDownTree, MultiColumnComboBox, MultiSelect, and MultiSelectTree ",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"package": {
|
|
133
133
|
"productName": "Kendo UI for Angular",
|
|
134
134
|
"productCode": "KENDOUIANGULAR",
|
|
135
|
-
"publishDate":
|
|
135
|
+
"publishDate": 1795685115,
|
|
136
136
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
137
137
|
}
|
|
138
138
|
},
|
|
@@ -142,19 +142,19 @@
|
|
|
142
142
|
"@angular/forms": "21 - 22",
|
|
143
143
|
"@angular/platform-browser": "21 - 22",
|
|
144
144
|
"@progress/kendo-licensing": "^1.13.1",
|
|
145
|
-
"@progress/kendo-angular-common": "27.0.0-develop.
|
|
146
|
-
"@progress/kendo-angular-utils": "27.0.0-develop.
|
|
147
|
-
"@progress/kendo-angular-l10n": "27.0.0-develop.
|
|
148
|
-
"@progress/kendo-angular-navigation": "27.0.0-develop.
|
|
149
|
-
"@progress/kendo-angular-popup": "27.0.0-develop.
|
|
150
|
-
"@progress/kendo-angular-icons": "27.0.0-develop.
|
|
151
|
-
"@progress/kendo-angular-inputs": "27.0.0-develop.
|
|
152
|
-
"@progress/kendo-angular-treeview": "27.0.0-develop.
|
|
145
|
+
"@progress/kendo-angular-common": "27.0.0-develop.3",
|
|
146
|
+
"@progress/kendo-angular-utils": "27.0.0-develop.3",
|
|
147
|
+
"@progress/kendo-angular-l10n": "27.0.0-develop.3",
|
|
148
|
+
"@progress/kendo-angular-navigation": "27.0.0-develop.3",
|
|
149
|
+
"@progress/kendo-angular-popup": "27.0.0-develop.3",
|
|
150
|
+
"@progress/kendo-angular-icons": "27.0.0-develop.3",
|
|
151
|
+
"@progress/kendo-angular-inputs": "27.0.0-develop.3",
|
|
152
|
+
"@progress/kendo-angular-treeview": "27.0.0-develop.3",
|
|
153
153
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
154
154
|
},
|
|
155
155
|
"dependencies": {
|
|
156
156
|
"tslib": "^2.3.1",
|
|
157
|
-
"@progress/kendo-angular-schematics": "27.0.0-develop.
|
|
157
|
+
"@progress/kendo-angular-schematics": "27.0.0-develop.3",
|
|
158
158
|
"@progress/kendo-common": "^1.0.1"
|
|
159
159
|
},
|
|
160
160
|
"schematics": "./schematics/collection.json",
|
|
@@ -9,9 +9,9 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
9
9
|
function default_1(options) {
|
|
10
10
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'DropDownsModule', package: 'dropdowns', peerDependencies: {
|
|
11
11
|
// peers of the treeview
|
|
12
|
-
'@progress/kendo-angular-inputs': '27.0.0-develop.
|
|
12
|
+
'@progress/kendo-angular-inputs': '27.0.0-develop.3',
|
|
13
13
|
// peers of inputs
|
|
14
|
-
'@progress/kendo-angular-intl': '27.0.0-develop.
|
|
14
|
+
'@progress/kendo-angular-intl': '27.0.0-develop.3',
|
|
15
15
|
'@progress/kendo-drawing': '^1.17.2',
|
|
16
16
|
// Peer dependency of icons
|
|
17
17
|
'@progress/kendo-svg-icons': '^4.0.0'
|
|
@@ -4315,6 +4315,7 @@ declare class DropDownTreeComponent implements OnInit, OnDestroy, OnChanges, Aft
|
|
|
4315
4315
|
private printableCharacters;
|
|
4316
4316
|
private subs;
|
|
4317
4317
|
private popupSubscriptions;
|
|
4318
|
+
private isClosingPopup;
|
|
4318
4319
|
private touchstartDisposeHandler;
|
|
4319
4320
|
private lastNodeOnFocus;
|
|
4320
4321
|
private _popupRef;
|
|
@@ -4386,6 +4387,7 @@ declare class DropDownTreeComponent implements OnInit, OnDestroy, OnChanges, Aft
|
|
|
4386
4387
|
* @hidden
|
|
4387
4388
|
*/
|
|
4388
4389
|
togglePopup(open: boolean): void;
|
|
4390
|
+
private setPopupVisibility;
|
|
4389
4391
|
/**
|
|
4390
4392
|
* @hidden
|
|
4391
4393
|
*/
|
|
@@ -5112,6 +5114,7 @@ declare class MultiSelectTreeComponent implements OnInit, OnDestroy, OnChanges,
|
|
|
5112
5114
|
private printableCharacters;
|
|
5113
5115
|
private subs;
|
|
5114
5116
|
private popupSubscriptions;
|
|
5117
|
+
private isClosingPopup;
|
|
5115
5118
|
private lastNodeOnFocus;
|
|
5116
5119
|
private isContentInit;
|
|
5117
5120
|
private _adaptiveMode;
|
|
@@ -5221,6 +5224,7 @@ declare class MultiSelectTreeComponent implements OnInit, OnDestroy, OnChanges,
|
|
|
5221
5224
|
* @hidden
|
|
5222
5225
|
*/
|
|
5223
5226
|
togglePopup(open: boolean): void;
|
|
5227
|
+
private setPopupVisibility;
|
|
5224
5228
|
/**
|
|
5225
5229
|
* @hidden
|
|
5226
5230
|
*/
|