@progress/kendo-angular-dropdowns 15.0.2-develop.1 → 15.0.2-develop.11

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.
@@ -608,6 +608,7 @@ export declare class DropDownTreeComponent implements OnInit, OnDestroy, OnChang
608
608
  * @param value - current value
609
609
  */
610
610
  private getField;
611
+ private areNodesHidden;
611
612
  private triggerPopupEvents;
612
613
  private createPopup;
613
614
  private destroyPopup;
@@ -656,6 +656,7 @@ export declare class MultiSelectTreeComponent implements OnInit, OnDestroy, OnCh
656
656
  protected onTouchedCallback: Function;
657
657
  protected onChangeCallback: Function;
658
658
  protected verifySettings(): void;
659
+ private areNodesHidden;
659
660
  private emitValueChange;
660
661
  private triggerPopupEvents;
661
662
  private createPopup;
@@ -1447,7 +1447,6 @@ DropDownListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
1447
1447
  }"
1448
1448
  >
1449
1449
  <kendo-icon-wrapper
1450
- *ngIf="!loading"
1451
1450
  unselectable="on"
1452
1451
  [name]="icon || 'caret-alt-down'"
1453
1452
  innerCssClass="k-button-icon"
@@ -1641,7 +1640,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
1641
1640
  }"
1642
1641
  >
1643
1642
  <kendo-icon-wrapper
1644
- *ngIf="!loading"
1645
1643
  unselectable="on"
1646
1644
  [name]="icon || 'caret-alt-down'"
1647
1645
  innerCssClass="k-button-icon"
@@ -311,6 +311,9 @@ export class DropDownTreeComponent {
311
311
  * > The data has to be provided in an array-like list with objects.
312
312
  */
313
313
  set data(data) {
314
+ if (data?.length > 0 && this.popupRef) {
315
+ this.allNodesHidden = this.areNodesHidden(data);
316
+ }
314
317
  this._nodes = data;
315
318
  this.setState();
316
319
  }
@@ -881,7 +884,7 @@ export class DropDownTreeComponent {
881
884
  */
882
885
  handleFilterInputChange(input) {
883
886
  this.filterChange.next(typeof (input) === 'string' ? input : input.value);
884
- this.allNodesHidden = this.nodes.every((node, index) => !this.isVisible(node, String(index)));
887
+ this.allNodesHidden = this.areNodesHidden(this.nodes);
885
888
  }
886
889
  /**
887
890
  * @hidden
@@ -975,6 +978,9 @@ export class DropDownTreeComponent {
975
978
  return field.find(item => item in value);
976
979
  }
977
980
  }
981
+ areNodesHidden(nodes) {
982
+ return nodes.every((node, index) => !this.isVisible(node, String(index)));
983
+ }
978
984
  triggerPopupEvents(open) {
979
985
  const eventArgs = new PreventableEvent();
980
986
  if (open) {
@@ -1015,6 +1021,7 @@ export class DropDownTreeComponent {
1015
1021
  this.renderer.setAttribute(popupWrapper, 'aria-label', this.messageFor('popupLabel'));
1016
1022
  }
1017
1023
  this.popupRef.popupOpen.subscribe(() => {
1024
+ this.allNodesHidden = this.areNodesHidden(this.data);
1018
1025
  this.popupRef.popupElement.addEventListener('click', (event) => stopPropagation(event));
1019
1026
  this.cdr.detectChanges();
1020
1027
  this.opened.emit();
@@ -528,6 +528,9 @@ export class MultiSelectTreeComponent {
528
528
  * > The data has to be provided in an array-like list with objects.
529
529
  */
530
530
  set data(data) {
531
+ if (data?.length > 0 && this.popupRef) {
532
+ this.allNodesHidden = this.areNodesHidden(data);
533
+ }
531
534
  this._nodes = data;
532
535
  this.setState();
533
536
  if (this.isContentInit) {
@@ -1109,7 +1112,7 @@ export class MultiSelectTreeComponent {
1109
1112
  */
1110
1113
  handleFilterInputChange(input) {
1111
1114
  this.filterChange.next(input.value);
1112
- this.allNodesHidden = this.nodes.every((node, index) => !this.isVisible(node, String(index)));
1115
+ this.allNodesHidden = this.areNodesHidden(this.nodes);
1113
1116
  }
1114
1117
  /**
1115
1118
  * @hidden
@@ -1168,6 +1171,9 @@ export class MultiSelectTreeComponent {
1168
1171
  }
1169
1172
  }
1170
1173
  }
1174
+ areNodesHidden(nodes) {
1175
+ return nodes.every((node, index) => !this.isVisible(node, String(index)));
1176
+ }
1171
1177
  emitValueChange(value) {
1172
1178
  this.onChangeCallback(value);
1173
1179
  this.valueChange.emit(value);
@@ -1213,6 +1219,7 @@ export class MultiSelectTreeComponent {
1213
1219
  this.renderer.setAttribute(popupWrapper, 'dir', this.direction);
1214
1220
  this.renderer.setAttribute(this.wrapper.nativeElement, 'aria-expanded', 'true');
1215
1221
  this.popupRef.popupOpen.subscribe(() => {
1222
+ this.allNodesHidden = this.areNodesHidden(this.data);
1216
1223
  this.cdr.detectChanges();
1217
1224
  this.opened.emit();
1218
1225
  this._searchableNodes = getSearchableItems(this.treeViewId, this.popupRef.popupElement);
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-dropdowns',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1707209490,
13
- version: '15.0.2-develop.1',
12
+ publishDate: 1708345560,
13
+ version: '15.0.2-develop.11',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -38,8 +38,8 @@ const packageMetadata = {
38
38
  name: '@progress/kendo-angular-dropdowns',
39
39
  productName: 'Kendo UI for Angular',
40
40
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
41
- publishDate: 1707209490,
42
- version: '15.0.2-develop.1',
41
+ publishDate: 1708345560,
42
+ version: '15.0.2-develop.11',
43
43
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
44
44
  };
45
45
 
@@ -7969,7 +7969,6 @@ DropDownListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
7969
7969
  }"
7970
7970
  >
7971
7971
  <kendo-icon-wrapper
7972
- *ngIf="!loading"
7973
7972
  unselectable="on"
7974
7973
  [name]="icon || 'caret-alt-down'"
7975
7974
  innerCssClass="k-button-icon"
@@ -8163,7 +8162,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
8163
8162
  }"
8164
8163
  >
8165
8164
  <kendo-icon-wrapper
8166
- *ngIf="!loading"
8167
8165
  unselectable="on"
8168
8166
  [name]="icon || 'caret-alt-down'"
8169
8167
  innerCssClass="k-button-icon"
@@ -12291,6 +12289,9 @@ class DropDownTreeComponent {
12291
12289
  * > The data has to be provided in an array-like list with objects.
12292
12290
  */
12293
12291
  set data(data) {
12292
+ if ((data === null || data === void 0 ? void 0 : data.length) > 0 && this.popupRef) {
12293
+ this.allNodesHidden = this.areNodesHidden(data);
12294
+ }
12294
12295
  this._nodes = data;
12295
12296
  this.setState();
12296
12297
  }
@@ -12863,7 +12864,7 @@ class DropDownTreeComponent {
12863
12864
  */
12864
12865
  handleFilterInputChange(input) {
12865
12866
  this.filterChange.next(typeof (input) === 'string' ? input : input.value);
12866
- this.allNodesHidden = this.nodes.every((node, index) => !this.isVisible(node, String(index)));
12867
+ this.allNodesHidden = this.areNodesHidden(this.nodes);
12867
12868
  }
12868
12869
  /**
12869
12870
  * @hidden
@@ -12957,6 +12958,9 @@ class DropDownTreeComponent {
12957
12958
  return field.find(item => item in value);
12958
12959
  }
12959
12960
  }
12961
+ areNodesHidden(nodes) {
12962
+ return nodes.every((node, index) => !this.isVisible(node, String(index)));
12963
+ }
12960
12964
  triggerPopupEvents(open) {
12961
12965
  const eventArgs = new PreventableEvent();
12962
12966
  if (open) {
@@ -12997,6 +13001,7 @@ class DropDownTreeComponent {
12997
13001
  this.renderer.setAttribute(popupWrapper, 'aria-label', this.messageFor('popupLabel'));
12998
13002
  }
12999
13003
  this.popupRef.popupOpen.subscribe(() => {
13004
+ this.allNodesHidden = this.areNodesHidden(this.data);
13000
13005
  this.popupRef.popupElement.addEventListener('click', (event) => stopPropagation(event));
13001
13006
  this.cdr.detectChanges();
13002
13007
  this.opened.emit();
@@ -14708,6 +14713,9 @@ class MultiSelectTreeComponent {
14708
14713
  * > The data has to be provided in an array-like list with objects.
14709
14714
  */
14710
14715
  set data(data) {
14716
+ if ((data === null || data === void 0 ? void 0 : data.length) > 0 && this.popupRef) {
14717
+ this.allNodesHidden = this.areNodesHidden(data);
14718
+ }
14711
14719
  this._nodes = data;
14712
14720
  this.setState();
14713
14721
  if (this.isContentInit) {
@@ -15286,7 +15294,7 @@ class MultiSelectTreeComponent {
15286
15294
  */
15287
15295
  handleFilterInputChange(input) {
15288
15296
  this.filterChange.next(input.value);
15289
- this.allNodesHidden = this.nodes.every((node, index) => !this.isVisible(node, String(index)));
15297
+ this.allNodesHidden = this.areNodesHidden(this.nodes);
15290
15298
  }
15291
15299
  /**
15292
15300
  * @hidden
@@ -15345,6 +15353,9 @@ class MultiSelectTreeComponent {
15345
15353
  }
15346
15354
  }
15347
15355
  }
15356
+ areNodesHidden(nodes) {
15357
+ return nodes.every((node, index) => !this.isVisible(node, String(index)));
15358
+ }
15348
15359
  emitValueChange(value) {
15349
15360
  this.onChangeCallback(value);
15350
15361
  this.valueChange.emit(value);
@@ -15390,6 +15401,7 @@ class MultiSelectTreeComponent {
15390
15401
  this.renderer.setAttribute(popupWrapper, 'dir', this.direction);
15391
15402
  this.renderer.setAttribute(this.wrapper.nativeElement, 'aria-expanded', 'true');
15392
15403
  this.popupRef.popupOpen.subscribe(() => {
15404
+ this.allNodesHidden = this.areNodesHidden(this.data);
15393
15405
  this.cdr.detectChanges();
15394
15406
  this.opened.emit();
15395
15407
  this._searchableNodes = getSearchableItems(this.treeViewId, this.popupRef.popupElement);
@@ -38,8 +38,8 @@ const packageMetadata = {
38
38
  name: '@progress/kendo-angular-dropdowns',
39
39
  productName: 'Kendo UI for Angular',
40
40
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
41
- publishDate: 1707209490,
42
- version: '15.0.2-develop.1',
41
+ publishDate: 1708345560,
42
+ version: '15.0.2-develop.11',
43
43
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
44
44
  };
45
45
 
@@ -7951,7 +7951,6 @@ DropDownListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
7951
7951
  }"
7952
7952
  >
7953
7953
  <kendo-icon-wrapper
7954
- *ngIf="!loading"
7955
7954
  unselectable="on"
7956
7955
  [name]="icon || 'caret-alt-down'"
7957
7956
  innerCssClass="k-button-icon"
@@ -8145,7 +8144,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
8145
8144
  }"
8146
8145
  >
8147
8146
  <kendo-icon-wrapper
8148
- *ngIf="!loading"
8149
8147
  unselectable="on"
8150
8148
  [name]="icon || 'caret-alt-down'"
8151
8149
  innerCssClass="k-button-icon"
@@ -12261,6 +12259,9 @@ class DropDownTreeComponent {
12261
12259
  * > The data has to be provided in an array-like list with objects.
12262
12260
  */
12263
12261
  set data(data) {
12262
+ if (data?.length > 0 && this.popupRef) {
12263
+ this.allNodesHidden = this.areNodesHidden(data);
12264
+ }
12264
12265
  this._nodes = data;
12265
12266
  this.setState();
12266
12267
  }
@@ -12831,7 +12832,7 @@ class DropDownTreeComponent {
12831
12832
  */
12832
12833
  handleFilterInputChange(input) {
12833
12834
  this.filterChange.next(typeof (input) === 'string' ? input : input.value);
12834
- this.allNodesHidden = this.nodes.every((node, index) => !this.isVisible(node, String(index)));
12835
+ this.allNodesHidden = this.areNodesHidden(this.nodes);
12835
12836
  }
12836
12837
  /**
12837
12838
  * @hidden
@@ -12925,6 +12926,9 @@ class DropDownTreeComponent {
12925
12926
  return field.find(item => item in value);
12926
12927
  }
12927
12928
  }
12929
+ areNodesHidden(nodes) {
12930
+ return nodes.every((node, index) => !this.isVisible(node, String(index)));
12931
+ }
12928
12932
  triggerPopupEvents(open) {
12929
12933
  const eventArgs = new PreventableEvent();
12930
12934
  if (open) {
@@ -12965,6 +12969,7 @@ class DropDownTreeComponent {
12965
12969
  this.renderer.setAttribute(popupWrapper, 'aria-label', this.messageFor('popupLabel'));
12966
12970
  }
12967
12971
  this.popupRef.popupOpen.subscribe(() => {
12972
+ this.allNodesHidden = this.areNodesHidden(this.data);
12968
12973
  this.popupRef.popupElement.addEventListener('click', (event) => stopPropagation(event));
12969
12974
  this.cdr.detectChanges();
12970
12975
  this.opened.emit();
@@ -14671,6 +14676,9 @@ class MultiSelectTreeComponent {
14671
14676
  * > The data has to be provided in an array-like list with objects.
14672
14677
  */
14673
14678
  set data(data) {
14679
+ if (data?.length > 0 && this.popupRef) {
14680
+ this.allNodesHidden = this.areNodesHidden(data);
14681
+ }
14674
14682
  this._nodes = data;
14675
14683
  this.setState();
14676
14684
  if (this.isContentInit) {
@@ -15252,7 +15260,7 @@ class MultiSelectTreeComponent {
15252
15260
  */
15253
15261
  handleFilterInputChange(input) {
15254
15262
  this.filterChange.next(input.value);
15255
- this.allNodesHidden = this.nodes.every((node, index) => !this.isVisible(node, String(index)));
15263
+ this.allNodesHidden = this.areNodesHidden(this.nodes);
15256
15264
  }
15257
15265
  /**
15258
15266
  * @hidden
@@ -15311,6 +15319,9 @@ class MultiSelectTreeComponent {
15311
15319
  }
15312
15320
  }
15313
15321
  }
15322
+ areNodesHidden(nodes) {
15323
+ return nodes.every((node, index) => !this.isVisible(node, String(index)));
15324
+ }
15314
15325
  emitValueChange(value) {
15315
15326
  this.onChangeCallback(value);
15316
15327
  this.valueChange.emit(value);
@@ -15356,6 +15367,7 @@ class MultiSelectTreeComponent {
15356
15367
  this.renderer.setAttribute(popupWrapper, 'dir', this.direction);
15357
15368
  this.renderer.setAttribute(this.wrapper.nativeElement, 'aria-expanded', 'true');
15358
15369
  this.popupRef.popupOpen.subscribe(() => {
15370
+ this.allNodesHidden = this.areNodesHidden(this.data);
15359
15371
  this.cdr.detectChanges();
15360
15372
  this.opened.emit();
15361
15373
  this._searchableNodes = getSearchableItems(this.treeViewId, this.popupRef.popupElement);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-dropdowns",
3
- "version": "15.0.2-develop.1",
3
+ "version": "15.0.2-develop.11",
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",
@@ -25,18 +25,18 @@
25
25
  "@angular/forms": "13 - 17",
26
26
  "@angular/platform-browser": "13 - 17",
27
27
  "@progress/kendo-licensing": "^1.0.2",
28
- "@progress/kendo-angular-common": "15.0.2-develop.1",
29
- "@progress/kendo-angular-l10n": "15.0.2-develop.1",
30
- "@progress/kendo-angular-popup": "15.0.2-develop.1",
31
- "@progress/kendo-angular-icons": "15.0.2-develop.1",
32
- "@progress/kendo-angular-treeview": "15.0.2-develop.1",
28
+ "@progress/kendo-angular-common": "15.0.2-develop.11",
29
+ "@progress/kendo-angular-l10n": "15.0.2-develop.11",
30
+ "@progress/kendo-angular-popup": "15.0.2-develop.11",
31
+ "@progress/kendo-angular-icons": "15.0.2-develop.11",
32
+ "@progress/kendo-angular-treeview": "15.0.2-develop.11",
33
33
  "rxjs": "^6.5.3 || ^7.0.0",
34
- "@progress/kendo-angular-navigation": "15.0.2-develop.1",
35
- "@progress/kendo-angular-label": "15.0.2-develop.1"
34
+ "@progress/kendo-angular-navigation": "15.0.2-develop.11",
35
+ "@progress/kendo-angular-label": "15.0.2-develop.11"
36
36
  },
37
37
  "dependencies": {
38
38
  "tslib": "^2.3.1",
39
- "@progress/kendo-angular-schematics": "15.0.2-develop.1",
39
+ "@progress/kendo-angular-schematics": "15.0.2-develop.11",
40
40
  "@progress/kendo-common": "^0.2.1"
41
41
  },
42
42
  "schematics": "./schematics/collection.json",
@@ -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': '15.0.2-develop.1',
7
+ '@progress/kendo-angular-inputs': '15.0.2-develop.11',
8
8
  // peers of inputs
9
- '@progress/kendo-angular-intl': '15.0.2-develop.1',
9
+ '@progress/kendo-angular-intl': '15.0.2-develop.11',
10
10
  '@progress/kendo-drawing': '^1.17.2',
11
11
  // Peer dependency of icons
12
12
  '@progress/kendo-svg-icons': '^2.0.0'