@progress/kendo-angular-dropdowns 19.2.0 → 19.2.1-develop.2

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.
@@ -562,7 +562,7 @@ export declare class DropDownTreeComponent implements OnInit, OnDestroy, OnChang
562
562
  /**
563
563
  * @hidden
564
564
  */
565
- clearValue(event: MouseEvent): void;
565
+ clearValue(event?: MouseEvent): void;
566
566
  get appendTo(): ViewContainerRef;
567
567
  /**
568
568
  * @hidden
@@ -626,7 +626,7 @@ export declare class MultiSelectTreeComponent implements OnInit, OnDestroy, OnCh
626
626
  /**
627
627
  * @hidden
628
628
  */
629
- clearAll(event: any): void;
629
+ clearAll(event?: any): void;
630
630
  /**
631
631
  * @hidden
632
632
  */
@@ -913,12 +913,11 @@ export class DropDownTreeComponent {
913
913
  * @hidden
914
914
  */
915
915
  clearValue(event) {
916
- event.stopImmediatePropagation();
916
+ event?.stopImmediatePropagation();
917
917
  this.focus();
918
918
  this.value = undefined;
919
919
  this.dataItem = undefined;
920
920
  this.clearState();
921
- this.valueChange.emit(undefined);
922
921
  this.emitValueChange();
923
922
  }
924
923
  get appendTo() {
@@ -1197,7 +1196,14 @@ export class DropDownTreeComponent {
1197
1196
  }
1198
1197
  }),
1199
1198
  this.navigationService.esc
1200
- .subscribe(() => this.handleEscape()),
1199
+ .subscribe(() => {
1200
+ if (this.isOpen) {
1201
+ this.handleEscape();
1202
+ }
1203
+ else if (this.isFocused && this.selectedKeys.length > 0) {
1204
+ this.clearValue();
1205
+ }
1206
+ }),
1201
1207
  this.navigationService.tab.subscribe(() => {
1202
1208
  this.focus();
1203
1209
  if (this.isOpen) {
@@ -1137,8 +1137,8 @@ export class MultiSelectTreeComponent {
1137
1137
  * @hidden
1138
1138
  */
1139
1139
  clearAll(event) {
1140
- event.stopImmediatePropagation();
1141
- event.preventDefault();
1140
+ event?.stopImmediatePropagation();
1141
+ event?.preventDefault();
1142
1142
  this.focus();
1143
1143
  this.value = this.value.filter((_item, index) => this.disabledIndices.has(index));
1144
1144
  this.dataItems = this.dataItems.filter((_item, index) => this.disabledIndices.has(index));
@@ -1349,7 +1349,7 @@ export class MultiSelectTreeComponent {
1349
1349
  this.navigationService.enter
1350
1350
  .pipe(tap((event) => event.originalEvent.preventDefault()))
1351
1351
  .subscribe(() => this.togglePopup(true)),
1352
- merge(this.navigationService.close, this.navigationService.esc).subscribe((event) => {
1352
+ merge(this.navigationService.close).subscribe((event) => {
1353
1353
  event.originalEvent.preventDefault();
1354
1354
  this.focus();
1355
1355
  this.togglePopup(false);
@@ -1357,6 +1357,15 @@ export class MultiSelectTreeComponent {
1357
1357
  this.navigationService.tab.subscribe(this.handleTabKey.bind(this)),
1358
1358
  this.navigationService.up.subscribe(this.handleUpKey.bind(this)),
1359
1359
  this.navigationService.down.subscribe(this.handleDownKey.bind(this)),
1360
+ this.navigationService.esc.subscribe(() => {
1361
+ if (this.isOpen) {
1362
+ this.togglePopup(false);
1363
+ this.focus();
1364
+ }
1365
+ else if (this.isFocused && this.checkedItems.length > 0) {
1366
+ this.clearAll();
1367
+ }
1368
+ }),
1360
1369
  this.navigationService.left
1361
1370
  .pipe(filter(() => !this.isTreeViewActive))
1362
1371
  .subscribe(this.direction === 'rtl' ? this.handleRightKey.bind(this) : this.handleLeftKey.bind(this)),
@@ -1191,7 +1191,14 @@ export class MultiSelectComponent {
1191
1191
  const isTagFocused = () => !this.isOpen && this.focusedTagIndex !== undefined;
1192
1192
  [
1193
1193
  this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),
1194
- this.navigationService.esc.subscribe(this.closePopup.bind(this)),
1194
+ this.navigationService.esc.subscribe(() => {
1195
+ if (this.isOpen) {
1196
+ this.closePopup();
1197
+ }
1198
+ else if (this.isFocused && this.selectedDataItems.length > 0) {
1199
+ this.clearAll();
1200
+ }
1201
+ }),
1195
1202
  this.navigationService.enter.pipe(filter(isOpen)).subscribe(this.handleEnter.bind(this)),
1196
1203
  this.navigationService.open.subscribe(this.openPopup.bind(this)),
1197
1204
  this.navigationService.close.subscribe(this.handleClose.bind(this)),
@@ -10,7 +10,7 @@ export const packageMetadata = {
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCode: 'KENDOUIANGULAR',
12
12
  productCodes: ['KENDOUIANGULAR'],
13
- publishDate: 1751463102,
14
- version: '19.2.0',
13
+ publishDate: 1751624099,
14
+ version: '19.2.1-develop.2',
15
15
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
16
16
  };
@@ -37,8 +37,8 @@ const packageMetadata = {
37
37
  productName: 'Kendo UI for Angular',
38
38
  productCode: 'KENDOUIANGULAR',
39
39
  productCodes: ['KENDOUIANGULAR'],
40
- publishDate: 1751463102,
41
- version: '19.2.0',
40
+ publishDate: 1751624099,
41
+ version: '19.2.1-develop.2',
42
42
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
43
43
  };
44
44
 
@@ -10395,7 +10395,14 @@ class MultiSelectComponent {
10395
10395
  const isTagFocused = () => !this.isOpen && this.focusedTagIndex !== undefined;
10396
10396
  [
10397
10397
  this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),
10398
- this.navigationService.esc.subscribe(this.closePopup.bind(this)),
10398
+ this.navigationService.esc.subscribe(() => {
10399
+ if (this.isOpen) {
10400
+ this.closePopup();
10401
+ }
10402
+ else if (this.isFocused && this.selectedDataItems.length > 0) {
10403
+ this.clearAll();
10404
+ }
10405
+ }),
10399
10406
  this.navigationService.enter.pipe(filter(isOpen)).subscribe(this.handleEnter.bind(this)),
10400
10407
  this.navigationService.open.subscribe(this.openPopup.bind(this)),
10401
10408
  this.navigationService.close.subscribe(this.handleClose.bind(this)),
@@ -13455,12 +13462,11 @@ class DropDownTreeComponent {
13455
13462
  * @hidden
13456
13463
  */
13457
13464
  clearValue(event) {
13458
- event.stopImmediatePropagation();
13465
+ event?.stopImmediatePropagation();
13459
13466
  this.focus();
13460
13467
  this.value = undefined;
13461
13468
  this.dataItem = undefined;
13462
13469
  this.clearState();
13463
- this.valueChange.emit(undefined);
13464
13470
  this.emitValueChange();
13465
13471
  }
13466
13472
  get appendTo() {
@@ -13739,7 +13745,14 @@ class DropDownTreeComponent {
13739
13745
  }
13740
13746
  }),
13741
13747
  this.navigationService.esc
13742
- .subscribe(() => this.handleEscape()),
13748
+ .subscribe(() => {
13749
+ if (this.isOpen) {
13750
+ this.handleEscape();
13751
+ }
13752
+ else if (this.isFocused && this.selectedKeys.length > 0) {
13753
+ this.clearValue();
13754
+ }
13755
+ }),
13743
13756
  this.navigationService.tab.subscribe(() => {
13744
13757
  this.focus();
13745
13758
  if (this.isOpen) {
@@ -16019,8 +16032,8 @@ class MultiSelectTreeComponent {
16019
16032
  * @hidden
16020
16033
  */
16021
16034
  clearAll(event) {
16022
- event.stopImmediatePropagation();
16023
- event.preventDefault();
16035
+ event?.stopImmediatePropagation();
16036
+ event?.preventDefault();
16024
16037
  this.focus();
16025
16038
  this.value = this.value.filter((_item, index) => this.disabledIndices.has(index));
16026
16039
  this.dataItems = this.dataItems.filter((_item, index) => this.disabledIndices.has(index));
@@ -16231,7 +16244,7 @@ class MultiSelectTreeComponent {
16231
16244
  this.navigationService.enter
16232
16245
  .pipe(tap((event) => event.originalEvent.preventDefault()))
16233
16246
  .subscribe(() => this.togglePopup(true)),
16234
- merge(this.navigationService.close, this.navigationService.esc).subscribe((event) => {
16247
+ merge(this.navigationService.close).subscribe((event) => {
16235
16248
  event.originalEvent.preventDefault();
16236
16249
  this.focus();
16237
16250
  this.togglePopup(false);
@@ -16239,6 +16252,15 @@ class MultiSelectTreeComponent {
16239
16252
  this.navigationService.tab.subscribe(this.handleTabKey.bind(this)),
16240
16253
  this.navigationService.up.subscribe(this.handleUpKey.bind(this)),
16241
16254
  this.navigationService.down.subscribe(this.handleDownKey.bind(this)),
16255
+ this.navigationService.esc.subscribe(() => {
16256
+ if (this.isOpen) {
16257
+ this.togglePopup(false);
16258
+ this.focus();
16259
+ }
16260
+ else if (this.isFocused && this.checkedItems.length > 0) {
16261
+ this.clearAll();
16262
+ }
16263
+ }),
16242
16264
  this.navigationService.left
16243
16265
  .pipe(filter(() => !this.isTreeViewActive))
16244
16266
  .subscribe(this.direction === 'rtl' ? this.handleRightKey.bind(this) : this.handleLeftKey.bind(this)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-dropdowns",
3
- "version": "19.2.0",
3
+ "version": "19.2.1-develop.2",
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",
@@ -100,7 +100,7 @@
100
100
  "package": {
101
101
  "productName": "Kendo UI for Angular",
102
102
  "productCode": "KENDOUIANGULAR",
103
- "publishDate": 1751463102,
103
+ "publishDate": 1751624099,
104
104
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
105
105
  }
106
106
  },
@@ -111,18 +111,18 @@
111
111
  "@angular/forms": "16 - 20",
112
112
  "@angular/platform-browser": "16 - 20",
113
113
  "@progress/kendo-licensing": "^1.5.0",
114
- "@progress/kendo-angular-common": "19.2.0",
115
- "@progress/kendo-angular-utils": "19.2.0",
116
- "@progress/kendo-angular-l10n": "19.2.0",
117
- "@progress/kendo-angular-navigation": "19.2.0",
118
- "@progress/kendo-angular-popup": "19.2.0",
119
- "@progress/kendo-angular-icons": "19.2.0",
120
- "@progress/kendo-angular-treeview": "19.2.0",
114
+ "@progress/kendo-angular-common": "19.2.1-develop.2",
115
+ "@progress/kendo-angular-utils": "19.2.1-develop.2",
116
+ "@progress/kendo-angular-l10n": "19.2.1-develop.2",
117
+ "@progress/kendo-angular-navigation": "19.2.1-develop.2",
118
+ "@progress/kendo-angular-popup": "19.2.1-develop.2",
119
+ "@progress/kendo-angular-icons": "19.2.1-develop.2",
120
+ "@progress/kendo-angular-treeview": "19.2.1-develop.2",
121
121
  "rxjs": "^6.5.3 || ^7.0.0"
122
122
  },
123
123
  "dependencies": {
124
124
  "tslib": "^2.3.1",
125
- "@progress/kendo-angular-schematics": "19.2.0",
125
+ "@progress/kendo-angular-schematics": "19.2.1-develop.2",
126
126
  "@progress/kendo-common": "^1.0.1",
127
127
  "node-html-parser": "^7.0.1"
128
128
  },
@@ -4,9 +4,9 @@ const schematics_1 = require("@angular-devkit/schematics");
4
4
  function default_1(options) {
5
5
  const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'DropDownsModule', package: 'dropdowns', peerDependencies: {
6
6
  // peers of the treeview
7
- '@progress/kendo-angular-inputs': '19.2.0',
7
+ '@progress/kendo-angular-inputs': '19.2.1-develop.2',
8
8
  // peers of inputs
9
- '@progress/kendo-angular-intl': '19.2.0',
9
+ '@progress/kendo-angular-intl': '19.2.1-develop.2',
10
10
  '@progress/kendo-drawing': '^1.17.2',
11
11
  // Peer dependency of icons
12
12
  '@progress/kendo-svg-icons': '^4.0.0'