@progress/kendo-angular-dropdowns 17.1.2-develop.5 → 17.2.0-develop.1

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.
@@ -4,6 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Renderer2, ElementRef, EventEmitter, ViewContainerRef, TemplateRef, OnDestroy, SimpleChanges, OnChanges, ChangeDetectorRef, NgZone, AfterViewInit, Injector } from '@angular/core';
6
6
  import { SuffixTemplateDirective, PrefixTemplateDirective } from '@progress/kendo-angular-common';
7
+ import { AdaptiveSize, AdaptiveService } from '@progress/kendo-angular-utils';
7
8
  import { ControlValueAccessor, FormControl } from '@angular/forms';
8
9
  import { SearchBarComponent } from '../common/searchbar.component';
9
10
  import { ItemTemplateDirective } from '../common/templates/item-template.directive';
@@ -16,7 +17,7 @@ import { SelectionService } from '../common/selection/selection.service';
16
17
  import { NavigationService, NavigationEvent } from '../common/navigation/navigation.service';
17
18
  import { DisabledItemsService } from '../common/disabled-items/disabled-items.service';
18
19
  import { ItemDisabledFn } from '../common/disabled-items/item-disabled';
19
- import { AdaptiveMode, WindowSize } from '../common/util';
20
+ import { AdaptiveMode } from '../common/util';
20
21
  import { NoDataTemplateDirective } from '../common/templates/no-data-template.directive';
21
22
  import { PreventableEvent } from '../common/models/preventable-event';
22
23
  import { LocalizationService } from '@progress/kendo-angular-l10n';
@@ -70,6 +71,7 @@ export declare class AutoCompleteComponent implements ControlValueAccessor, OnDe
70
71
  private renderer;
71
72
  hostElement: ElementRef;
72
73
  private injector;
74
+ private adaptiveService;
73
75
  /**
74
76
  * @hidden
75
77
  */
@@ -374,7 +376,7 @@ export declare class AutoCompleteComponent implements ControlValueAccessor, OnDe
374
376
  /**
375
377
  * @hidden
376
378
  */
377
- windowSize: WindowSize;
379
+ windowSize: AdaptiveSize;
378
380
  /**
379
381
  * @hidden
380
382
  */
@@ -389,7 +391,7 @@ export declare class AutoCompleteComponent implements ControlValueAccessor, OnDe
389
391
  get formControl(): FormControl;
390
392
  protected onChangeCallback: Function;
391
393
  protected onTouchedCallback: Function;
392
- constructor(localization: LocalizationService, dataService: DataService, popupService: PopupService, selectionService: SelectionService, navigationService: NavigationService, disabledItemsService: DisabledItemsService, _zone: NgZone, cdr: ChangeDetectorRef, renderer: Renderer2, hostElement: ElementRef, injector: Injector);
394
+ constructor(localization: LocalizationService, dataService: DataService, popupService: PopupService, selectionService: SelectionService, navigationService: NavigationService, disabledItemsService: DisabledItemsService, _zone: NgZone, cdr: ChangeDetectorRef, renderer: Renderer2, hostElement: ElementRef, injector: Injector, adaptiveService: AdaptiveService);
393
395
  ngOnInit(): void;
394
396
  ngAfterViewInit(): void;
395
397
  ngOnDestroy(): void;
@@ -18,7 +18,8 @@ import { DisabledItemsService } from '../common/disabled-items/disabled-items.se
18
18
  import { ItemDisabledFn } from '../common/disabled-items/item-disabled';
19
19
  import { Observable } from 'rxjs';
20
20
  import { SuffixTemplateDirective, PrefixTemplateDirective, MultiTabStop } from '@progress/kendo-angular-common';
21
- import { AdaptiveMode, WindowSize } from '../common/util';
21
+ import { AdaptiveSize, AdaptiveService } from '@progress/kendo-angular-utils';
22
+ import { AdaptiveMode } from '../common/util';
22
23
  import { PreventableEvent } from '../common/models/preventable-event';
23
24
  import { LocalizationService } from '@progress/kendo-angular-l10n';
24
25
  import { PopupService, PopupRef } from '@progress/kendo-angular-popup';
@@ -69,6 +70,7 @@ export declare class ComboBoxComponent extends MultiTabStop implements ControlVa
69
70
  protected renderer: Renderer2;
70
71
  protected injector: Injector;
71
72
  hostElement: ElementRef;
73
+ protected adaptiveService: AdaptiveService;
72
74
  /**
73
75
  * @hidden
74
76
  */
@@ -447,7 +449,7 @@ export declare class ComboBoxComponent extends MultiTabStop implements ControlVa
447
449
  /**
448
450
  * @hidden
449
451
  */
450
- windowSize: WindowSize;
452
+ windowSize: AdaptiveSize;
451
453
  /**
452
454
  * @hidden
453
455
  */
@@ -498,7 +500,7 @@ export declare class ComboBoxComponent extends MultiTabStop implements ControlVa
498
500
  private _size;
499
501
  private _rounded;
500
502
  private _fillMode;
501
- constructor(wrapper: ElementRef<HTMLElement>, localization: LocalizationService, popupService: PopupService, selectionService: SelectionService, navigationService: NavigationService, disabledItemsService: DisabledItemsService, dataService: DataService, zone: NgZone, cdr: ChangeDetectorRef, renderer: Renderer2, injector: Injector, hostElement: ElementRef);
503
+ constructor(wrapper: ElementRef<HTMLElement>, localization: LocalizationService, popupService: PopupService, selectionService: SelectionService, navigationService: NavigationService, disabledItemsService: DisabledItemsService, dataService: DataService, zone: NgZone, cdr: ChangeDetectorRef, renderer: Renderer2, injector: Injector, hostElement: ElementRef, adaptiveService: AdaptiveService);
502
504
  ngOnInit(): void;
503
505
  ngAfterViewInit(): void;
504
506
  private createValueStream;
@@ -5,6 +5,7 @@
5
5
  import { AfterViewInit, ChangeDetectorRef, ElementRef, Injector, NgZone, OnDestroy, QueryList, Renderer2 } from '@angular/core';
6
6
  import { LocalizationService } from '@progress/kendo-angular-l10n';
7
7
  import { PopupService } from '@progress/kendo-angular-popup';
8
+ import { AdaptiveService } from '@progress/kendo-angular-utils';
8
9
  import { ComboBoxComponent } from './combobox.component';
9
10
  import { ComboBoxColumnComponent } from './combobox-column/combobox-column.component';
10
11
  import { DataService } from '../common/data.service';
@@ -74,7 +75,7 @@ export declare class MultiColumnComboBoxComponent extends ComboBoxComponent impl
74
75
  * @hidden
75
76
  */
76
77
  protected get listContainerClasses(): string[];
77
- constructor(localization: LocalizationService, popupService: PopupService, selectionService: SelectionService, navigationService: NavigationService, disabledItemsService: DisabledItemsService, dataService: DataService, zone: NgZone, changeDetector: ChangeDetectorRef, renderer: Renderer2, wrapper: ElementRef<HTMLElement>, injector: Injector, hostElement: ElementRef);
78
+ constructor(localization: LocalizationService, popupService: PopupService, selectionService: SelectionService, navigationService: NavigationService, disabledItemsService: DisabledItemsService, dataService: DataService, zone: NgZone, changeDetector: ChangeDetectorRef, renderer: Renderer2, wrapper: ElementRef<HTMLElement>, injector: Injector, hostElement: ElementRef, adaptiveService: AdaptiveService);
78
79
  ngAfterViewInit(): void;
79
80
  ngOnDestroy(): void;
80
81
  /**
package/common/util.d.ts CHANGED
@@ -10,6 +10,7 @@ import { DropDownSize } from './models/size';
10
10
  import { DropDownRounded } from './models/rounded';
11
11
  import { DropDownFillMode } from './models/fillmode';
12
12
  import { ActionSheetComponent } from '@progress/kendo-angular-navigation';
13
+ import { AdaptiveSize } from '@progress/kendo-angular-utils';
13
14
  /**
14
15
  * @hidden
15
16
  */
@@ -183,10 +184,6 @@ export declare const getSearchableItems: (treeViewId: string, element: HTMLEleme
183
184
  text: string;
184
185
  index: string;
185
186
  }[];
186
- /**
187
- * @hidden
188
- */
189
- export declare const windowSize: () => 'large' | 'medium' | 'small';
190
187
  /**
191
188
  * Specifies the adaptive rendering of the component.
192
189
  *
@@ -202,11 +199,7 @@ export declare const isTruthy: (value: any) => boolean;
202
199
  /**
203
200
  * @hidden
204
201
  */
205
- export type WindowSize = 'large' | 'medium' | 'small';
206
- /**
207
- * @hidden
208
- */
209
- export declare const updateActionSheetAdaptiveAppearance: (actionSheet: ActionSheetComponent, windowSize: WindowSize, renderer: Renderer2) => void;
202
+ export declare const updateActionSheetAdaptiveAppearance: (actionSheet: ActionSheetComponent, windowSize: AdaptiveSize, renderer: Renderer2) => void;
210
203
  /**
211
204
  * @hidden
212
205
  */
@@ -4,8 +4,9 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Renderer2, ElementRef, EventEmitter, ViewContainerRef, OnDestroy, OnChanges, NgZone, TemplateRef, ChangeDetectorRef, OnInit, SimpleChanges, AfterContentChecked, Injector, AfterViewInit } from '@angular/core';
6
6
  import { ControlValueAccessor, FormControl } from '@angular/forms';
7
+ import { AdaptiveSize, AdaptiveService } from '@progress/kendo-angular-utils';
7
8
  import { PopupSettings } from '../common/models/popup-settings';
8
- import { AdaptiveMode, WindowSize } from '../common/util';
9
+ import { AdaptiveMode } from '../common/util';
9
10
  import { SelectionService } from '../common/selection/selection.service';
10
11
  import { NavigationService } from '../common/navigation/navigation.service';
11
12
  import { ItemTemplateDirective } from '../common/templates/item-template.directive';
@@ -67,6 +68,7 @@ export declare class DropDownListComponent implements ControlValueAccessor, Afte
67
68
  private renderer;
68
69
  private cdr;
69
70
  private injector;
71
+ private adaptiveService;
70
72
  /**
71
73
  * @hidden
72
74
  */
@@ -184,7 +186,7 @@ export declare class DropDownListComponent implements ControlValueAccessor, Afte
184
186
  /**
185
187
  * @hidden
186
188
  */
187
- windowSize: WindowSize;
189
+ windowSize: AdaptiveSize;
188
190
  /**
189
191
  * @hidden
190
192
  */
@@ -442,7 +444,7 @@ export declare class DropDownListComponent implements ControlValueAccessor, Afte
442
444
  private _size;
443
445
  private _rounded;
444
446
  private _fillMode;
445
- constructor(wrapper: ElementRef, localization: LocalizationService, popupService: PopupService, selectionService: SelectionService, navigationService: NavigationService, disabledItemsService: DisabledItemsService, dataService: DataService, _zone: NgZone, renderer: Renderer2, cdr: ChangeDetectorRef, injector: Injector);
447
+ constructor(wrapper: ElementRef, localization: LocalizationService, popupService: PopupService, selectionService: SelectionService, navigationService: NavigationService, disabledItemsService: DisabledItemsService, dataService: DataService, _zone: NgZone, renderer: Renderer2, cdr: ChangeDetectorRef, injector: Injector, adaptiveService: AdaptiveService);
446
448
  ngOnInit(): void;
447
449
  ngAfterViewInit(): void;
448
450
  /**
@@ -3,13 +3,14 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { OnInit, OnDestroy, ElementRef, EventEmitter, NgZone, Renderer2, TemplateRef, ChangeDetectorRef, SimpleChanges, OnChanges, ViewContainerRef, AfterContentChecked, Injector } from '@angular/core';
6
+ import { AdaptiveSize, AdaptiveService } from '@progress/kendo-angular-utils';
6
7
  import { PopupRef, PopupService } from '@progress/kendo-angular-popup';
7
8
  import { TreeItem, TreeViewComponent, DataBoundComponent, ExpandableComponent } from '@progress/kendo-angular-treeview';
8
9
  import { ControlValueAccessor, FormControl } from '@angular/forms';
9
10
  import { NavigationService } from '../common/navigation/navigation.service';
10
11
  import { LocalizationService } from '@progress/kendo-angular-l10n';
11
12
  import { PreventableEvent } from '../common/models/preventable-event';
12
- import { AdaptiveMode, WindowSize } from '../common/util';
13
+ import { AdaptiveMode } from '../common/util';
13
14
  import { NoDataTemplateDirective } from '../common/templates/no-data-template.directive';
14
15
  import { PopupSettings } from '../common/models/popup-settings';
15
16
  import { Direction } from '../common/models/direction';
@@ -38,6 +39,7 @@ export declare class DropDownTreeComponent implements OnInit, OnDestroy, OnChang
38
39
  private _zone;
39
40
  private cdr;
40
41
  private localization;
42
+ private adaptiveService;
41
43
  /**
42
44
  * @hidden
43
45
  */
@@ -378,7 +380,7 @@ export declare class DropDownTreeComponent implements OnInit, OnDestroy, OnChang
378
380
  /**
379
381
  * @hidden
380
382
  */
381
- windowSize: WindowSize;
383
+ windowSize: AdaptiveSize;
382
384
  /**
383
385
  * @hidden
384
386
  */
@@ -468,7 +470,7 @@ export declare class DropDownTreeComponent implements OnInit, OnDestroy, OnChang
468
470
  private subs;
469
471
  private touchstartDisposeHandler;
470
472
  private lastNodeOnFocus;
471
- constructor(injector: Injector, wrapper: ElementRef<HTMLElement>, popupService: PopupService, navigationService: NavigationService, renderer: Renderer2, _zone: NgZone, cdr: ChangeDetectorRef, localization: LocalizationService);
473
+ constructor(injector: Injector, wrapper: ElementRef<HTMLElement>, popupService: PopupService, navigationService: NavigationService, renderer: Renderer2, _zone: NgZone, cdr: ChangeDetectorRef, localization: LocalizationService, adaptiveService: AdaptiveService);
472
474
  ngOnInit(): void;
473
475
  /**
474
476
  * @hidden
@@ -4,6 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { AfterContentChecked, ChangeDetectorRef, ElementRef, EventEmitter, Injector, NgZone, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
6
6
  import { ControlValueAccessor, FormControl } from '@angular/forms';
7
+ import { AdaptiveSize, AdaptiveService } from '@progress/kendo-angular-utils';
7
8
  import { LocalizationService } from '@progress/kendo-angular-l10n';
8
9
  import { NavigationService } from '../common/navigation/navigation.service';
9
10
  import { PopupRef, PopupService } from '@progress/kendo-angular-popup';
@@ -14,7 +15,7 @@ import { PreventableEvent } from '../common/models/preventable-event';
14
15
  import { Direction } from '../common/models/direction';
15
16
  import { RemoveTagEvent } from '../common/models/remove-tag-event';
16
17
  import { CheckedItem } from './checked-state/checked-item';
17
- import { AdaptiveMode, WindowSize } from '../common/util';
18
+ import { AdaptiveMode } from '../common/util';
18
19
  import { HeaderTemplateDirective } from '../common/templates/header-template.directive';
19
20
  import { FooterTemplateDirective } from '../common/templates/footer-template.directive';
20
21
  import { NodeTemplateDirective } from './templates/node-template.directive';
@@ -44,6 +45,7 @@ export declare class MultiSelectTreeComponent implements OnInit, OnDestroy, OnCh
44
45
  private localization;
45
46
  private cdr;
46
47
  private lookup;
48
+ private adaptiveService;
47
49
  /**
48
50
  * @hidden
49
51
  */
@@ -113,7 +115,7 @@ export declare class MultiSelectTreeComponent implements OnInit, OnDestroy, OnCh
113
115
  /**
114
116
  * @hidden
115
117
  */
116
- windowSize: WindowSize;
118
+ windowSize: AdaptiveSize;
117
119
  /**
118
120
  * @hidden
119
121
  */
@@ -525,7 +527,7 @@ export declare class MultiSelectTreeComponent implements OnInit, OnDestroy, OnCh
525
527
  private subs;
526
528
  private lastNodeOnFocus;
527
529
  private isContentInit;
528
- constructor(injector: Injector, wrapper: ElementRef, popupService: PopupService, renderer: Renderer2, navigationService: NavigationService, _zone: NgZone, localization: LocalizationService, cdr: ChangeDetectorRef, lookup: MultiSelectTreeLookupService);
530
+ constructor(injector: Injector, wrapper: ElementRef, popupService: PopupService, renderer: Renderer2, navigationService: NavigationService, _zone: NgZone, localization: LocalizationService, cdr: ChangeDetectorRef, lookup: MultiSelectTreeLookupService, adaptiveService: AdaptiveService);
529
531
  ngOnInit(): void;
530
532
  ngAfterViewInit(): void;
531
533
  /**
@@ -4,6 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Component, Renderer2, forwardRef, ElementRef, Input, Output, EventEmitter, ContentChild, ViewChild, ViewContainerRef, TemplateRef, HostBinding, isDevMode, ChangeDetectorRef, NgZone, Injector } from '@angular/core';
6
6
  import { isDocumentAvailable, KendoInput, hasObservers, SuffixTemplateDirective, PrefixTemplateDirective, isControlRequired, SeparatorComponent, ResizeSensorComponent, TemplateContextDirective } from '@progress/kendo-angular-common';
7
+ import { AdaptiveService } from '@progress/kendo-angular-utils';
7
8
  import { NG_VALUE_ACCESSOR, NgControl } from '@angular/forms';
8
9
  import { validatePackage } from '@progress/kendo-licensing';
9
10
  import { packageMetadata } from '../package-metadata';
@@ -17,7 +18,7 @@ import { SelectionService } from '../common/selection/selection.service';
17
18
  import { NavigationService } from '../common/navigation/navigation.service';
18
19
  import { DisabledItemsService } from '../common/disabled-items/disabled-items.service';
19
20
  import { Subject, Subscription, merge } from 'rxjs';
20
- import { isPresent, guid, getter, isUntouched, noop, inDropDown, getSizeClass, getRoundedClass, getFillModeClass, windowSize, isTruthy, setListBoxAriaLabelledBy, setActionSheetTitle, updateActionSheetAdaptiveAppearance, animationDuration } from '../common/util';
21
+ import { isPresent, guid, getter, isUntouched, noop, inDropDown, getSizeClass, getRoundedClass, getFillModeClass, isTruthy, setListBoxAriaLabelledBy, setActionSheetTitle, updateActionSheetAdaptiveAppearance, animationDuration } from '../common/util';
21
22
  import { NavigationAction } from '../common/navigation/navigation-action';
22
23
  import { NoDataTemplateDirective } from '../common/templates/no-data-template.directive';
23
24
  import { PreventableEvent } from '../common/models/preventable-event';
@@ -41,6 +42,7 @@ import * as i3 from "@progress/kendo-angular-popup";
41
42
  import * as i4 from "../common/selection/selection.service";
42
43
  import * as i5 from "../common/navigation/navigation.service";
43
44
  import * as i6 from "../common/disabled-items/disabled-items.service";
45
+ import * as i7 from "@progress/kendo-angular-utils";
44
46
  const NO_VALUE = "";
45
47
  const DEFAULT_SIZE = 'medium';
46
48
  const DEFAULT_ROUNDED = 'medium';
@@ -85,6 +87,7 @@ export class AutoCompleteComponent {
85
87
  renderer;
86
88
  hostElement;
87
89
  injector;
90
+ adaptiveService;
88
91
  /**
89
92
  * @hidden
90
93
  */
@@ -185,7 +188,7 @@ export class AutoCompleteComponent {
185
188
  * @hidden
186
189
  */
187
190
  handleClick() {
188
- this.windowSize = windowSize();
191
+ this.windowSize = this.adaptiveService.size;
189
192
  if (this.isAdaptive) {
190
193
  this.togglePopup(true);
191
194
  }
@@ -578,7 +581,7 @@ export class AutoCompleteComponent {
578
581
  }
579
582
  onChangeCallback = noop;
580
583
  onTouchedCallback = noop;
581
- constructor(localization, dataService, popupService, selectionService, navigationService, disabledItemsService, _zone, cdr, renderer, hostElement, injector) {
584
+ constructor(localization, dataService, popupService, selectionService, navigationService, disabledItemsService, _zone, cdr, renderer, hostElement, injector, adaptiveService) {
582
585
  this.localization = localization;
583
586
  this.dataService = dataService;
584
587
  this.popupService = popupService;
@@ -590,6 +593,7 @@ export class AutoCompleteComponent {
590
593
  this.renderer = renderer;
591
594
  this.hostElement = hostElement;
592
595
  this.injector = injector;
596
+ this.adaptiveService = adaptiveService;
593
597
  validatePackage(packageMetadata);
594
598
  this.direction = localization.rtl ? 'rtl' : 'ltr';
595
599
  this.wrapper = this.hostElement.nativeElement;
@@ -609,7 +613,7 @@ export class AutoCompleteComponent {
609
613
  this.setComponentClasses();
610
614
  }
611
615
  ngAfterViewInit() {
612
- this.windowSize = windowSize();
616
+ this.windowSize = this.adaptiveService.size;
613
617
  this.cdr.detectChanges();
614
618
  if (this.actionSheet && isDocumentAvailable()) {
615
619
  // The following syntax is used as it does not violate CSP compliance
@@ -721,11 +725,12 @@ export class AutoCompleteComponent {
721
725
  * @hidden
722
726
  */
723
727
  onResize() {
724
- if (this.isAdaptiveModeEnabled && this.windowSize !== windowSize()) {
728
+ const currentWindowSize = this.adaptiveService.size;
729
+ if (this.isAdaptiveModeEnabled && this.windowSize !== currentWindowSize) {
725
730
  if (this.isOpen) {
726
731
  this.togglePopup(false);
727
732
  }
728
- this.windowSize = windowSize();
733
+ this.windowSize = currentWindowSize;
729
734
  this.cdr.detectChanges();
730
735
  }
731
736
  if (this._open && !this.isActionSheetExpanded) {
@@ -1058,7 +1063,7 @@ export class AutoCompleteComponent {
1058
1063
  if (this.virtual) {
1059
1064
  this.virtual.skip = 0;
1060
1065
  }
1061
- this.windowSize = windowSize();
1066
+ this.windowSize = this.adaptiveService.size;
1062
1067
  if (this.isAdaptive) {
1063
1068
  this.openActionSheet();
1064
1069
  return;
@@ -1183,7 +1188,7 @@ export class AutoCompleteComponent {
1183
1188
  this.selectionService.focus(this.selectionService.focused);
1184
1189
  this.actionSheetSearchBar.focus();
1185
1190
  }
1186
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AutoCompleteComponent, deps: [{ token: i1.LocalizationService }, { token: i2.DataService }, { token: i3.PopupService }, { token: i4.SelectionService }, { token: i5.NavigationService }, { token: i6.DisabledItemsService }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
1191
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AutoCompleteComponent, deps: [{ token: i1.LocalizationService }, { token: i2.DataService }, { token: i3.PopupService }, { token: i4.SelectionService }, { token: i5.NavigationService }, { token: i6.DisabledItemsService }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.Injector }, { token: i7.AdaptiveService }], target: i0.ɵɵFactoryTarget.Component });
1187
1192
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: AutoCompleteComponent, isStandalone: true, selector: "kendo-autocomplete", inputs: { highlightFirst: "highlightFirst", showStickyHeader: "showStickyHeader", focusableId: "focusableId", data: "data", value: "value", valueField: "valueField", placeholder: "placeholder", adaptiveMode: "adaptiveMode", title: "title", subtitle: "subtitle", popupSettings: "popupSettings", listHeight: "listHeight", loading: "loading", clearButton: "clearButton", suggest: "suggest", disabled: "disabled", itemDisabled: "itemDisabled", readonly: "readonly", tabindex: "tabindex", tabIndex: "tabIndex", filterable: "filterable", virtual: "virtual", size: "size", rounded: "rounded", fillMode: "fillMode", inputAttributes: "inputAttributes" }, outputs: { valueChange: "valueChange", filterChange: "filterChange", open: "open", opened: "opened", close: "close", closed: "closed", onFocus: "focus", onBlur: "blur", inputFocus: "inputFocus", inputBlur: "inputBlur" }, host: { properties: { "class.k-readonly": "this.readonly", "class.k-autocomplete": "this.widgetClasses", "class.k-input": "this.widgetClasses", "class.k-disabled": "this.isDisabled", "class.k-loading": "this.isLoading", "attr.dir": "this.dir" } }, providers: [
1188
1193
  AUTOCOMPLETE_VALUE_ACCESSOR,
1189
1194
  DataService,
@@ -1508,7 +1513,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1508
1513
  standalone: true,
1509
1514
  imports: [LocalizedMessagesDirective, SharedDropDownEventsDirective, NgIf, NgTemplateOutlet, SeparatorComponent, SearchBarComponent, IconWrapperComponent, ResizeSensorComponent, ResponsiveRendererComponent, TemplateContextDirective, ListComponent]
1510
1515
  }]
1511
- }], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i2.DataService }, { type: i3.PopupService }, { type: i4.SelectionService }, { type: i5.NavigationService }, { type: i6.DisabledItemsService }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.Injector }]; }, propDecorators: { responsiveRendererComponent: [{
1516
+ }], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i2.DataService }, { type: i3.PopupService }, { type: i4.SelectionService }, { type: i5.NavigationService }, { type: i6.DisabledItemsService }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.Injector }, { type: i7.AdaptiveService }]; }, propDecorators: { responsiveRendererComponent: [{
1512
1517
  type: ViewChild,
1513
1518
  args: [ResponsiveRendererComponent]
1514
1519
  }], highlightFirst: [{
@@ -7,6 +7,7 @@ import { KENDO_AUTOCOMPLETE } from '../directives';
7
7
  import { KENDO_ADORNMENTS, ResizeBatchService } from '@progress/kendo-angular-common';
8
8
  import { IconsService } from '@progress/kendo-angular-icons';
9
9
  import { PopupService } from '@progress/kendo-angular-popup';
10
+ import { AdaptiveService } from '@progress/kendo-angular-utils';
10
11
  import * as i0 from "@angular/core";
11
12
  import * as i1 from "./autocomplete.component";
12
13
  import * as i2 from "../common/templates/fixed-group-template.directive";
@@ -42,7 +43,8 @@ export class AutoCompleteModule {
42
43
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AutoCompleteModule, providers: [
43
44
  PopupService,
44
45
  ResizeBatchService,
45
- IconsService
46
+ IconsService,
47
+ AdaptiveService
46
48
  ], imports: [i1.AutoCompleteComponent, i10.SeparatorComponent, i10.SeparatorComponent] });
47
49
  }
48
50
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AutoCompleteModule, decorators: [{
@@ -53,7 +55,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
53
55
  providers: [
54
56
  PopupService,
55
57
  ResizeBatchService,
56
- IconsService
58
+ IconsService,
59
+ AdaptiveService
57
60
  ]
58
61
  }]
59
62
  }] });
@@ -19,7 +19,8 @@ import { DisabledItemsService } from '../common/disabled-items/disabled-items.se
19
19
  import { merge, of, Subject, Subscription } from 'rxjs';
20
20
  import { catchError, filter, map, partition, tap, throttleTime } from 'rxjs/operators';
21
21
  import { isChanged, isDocumentAvailable, KendoInput, hasObservers, anyChanged, SuffixTemplateDirective, PrefixTemplateDirective, isControlRequired, MultiTabStop, SeparatorComponent, EventsOutsideAngularDirective, ResizeSensorComponent, Keys, TemplateContextDirective } from '@progress/kendo-angular-common';
22
- import { isPresent, guid, getter, isEmptyString, isUntouched, inDropDown, getSizeClass, getRoundedClass, getFillModeClass, isTruthy, windowSize, setListBoxAriaLabelledBy, setActionSheetTitle, updateActionSheetAdaptiveAppearance, animationDuration } from '../common/util';
22
+ import { AdaptiveService } from '@progress/kendo-angular-utils';
23
+ import { isPresent, guid, getter, isEmptyString, isUntouched, inDropDown, getSizeClass, getRoundedClass, getFillModeClass, isTruthy, setListBoxAriaLabelledBy, setActionSheetTitle, updateActionSheetAdaptiveAppearance, animationDuration } from '../common/util';
23
24
  import { NavigationAction } from '../common/navigation/navigation-action';
24
25
  import { PreventableEvent } from '../common/models/preventable-event';
25
26
  import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
@@ -43,6 +44,7 @@ import * as i3 from "../common/selection/selection.service";
43
44
  import * as i4 from "../common/navigation/navigation.service";
44
45
  import * as i5 from "../common/disabled-items/disabled-items.service";
45
46
  import * as i6 from "../common/data.service";
47
+ import * as i7 from "@progress/kendo-angular-utils";
46
48
  /**
47
49
  * @hidden
48
50
  */
@@ -84,6 +86,7 @@ export class ComboBoxComponent extends MultiTabStop {
84
86
  renderer;
85
87
  injector;
86
88
  hostElement;
89
+ adaptiveService;
87
90
  /**
88
91
  * @hidden
89
92
  */
@@ -672,7 +675,7 @@ export class ComboBoxComponent extends MultiTabStop {
672
675
  _size = 'medium';
673
676
  _rounded = 'medium';
674
677
  _fillMode = 'solid';
675
- constructor(wrapper, localization, popupService, selectionService, navigationService, disabledItemsService, dataService, zone, cdr, renderer, injector, hostElement) {
678
+ constructor(wrapper, localization, popupService, selectionService, navigationService, disabledItemsService, dataService, zone, cdr, renderer, injector, hostElement, adaptiveService) {
676
679
  super();
677
680
  this.wrapper = wrapper;
678
681
  this.localization = localization;
@@ -686,6 +689,7 @@ export class ComboBoxComponent extends MultiTabStop {
686
689
  this.renderer = renderer;
687
690
  this.injector = injector;
688
691
  this.hostElement = hostElement;
692
+ this.adaptiveService = adaptiveService;
689
693
  validatePackage(packageMetadata);
690
694
  this.direction = localization.rtl ? 'rtl' : 'ltr';
691
695
  this.data = [];
@@ -699,7 +703,7 @@ export class ComboBoxComponent extends MultiTabStop {
699
703
  this.setComponentClasses();
700
704
  }
701
705
  ngAfterViewInit() {
702
- this.windowSize = windowSize();
706
+ this.windowSize = this.adaptiveService.size;
703
707
  this.cdr.detectChanges();
704
708
  if (this.actionSheet && isDocumentAvailable()) {
705
709
  // The following syntax is used as it does not violate CSP compliance
@@ -929,7 +933,7 @@ export class ComboBoxComponent extends MultiTabStop {
929
933
  * @hidden
930
934
  */
931
935
  handleClick() {
932
- this.windowSize = windowSize();
936
+ this.windowSize = this.adaptiveService.size;
933
937
  if (this.isAdaptive) {
934
938
  this.togglePopup(true);
935
939
  }
@@ -1010,11 +1014,12 @@ export class ComboBoxComponent extends MultiTabStop {
1010
1014
  * @hidden
1011
1015
  */
1012
1016
  onResize() {
1013
- if (this.isAdaptiveModeEnabled && this.windowSize !== windowSize()) {
1017
+ const currentWindowSize = this.adaptiveService.size;
1018
+ if (this.isAdaptiveModeEnabled && this.windowSize !== currentWindowSize) {
1014
1019
  if (this.isOpen) {
1015
1020
  this.togglePopup(false);
1016
1021
  }
1017
- this.windowSize = windowSize();
1022
+ this.windowSize = currentWindowSize;
1018
1023
  this.cdr.detectChanges();
1019
1024
  }
1020
1025
  if (this.isOpen && !this.isActionSheetExpanded) {
@@ -1462,7 +1467,7 @@ export class ComboBoxComponent extends MultiTabStop {
1462
1467
  if (this.virtual) {
1463
1468
  this.virtual.skip = 0;
1464
1469
  }
1465
- this.windowSize = windowSize();
1470
+ this.windowSize = this.adaptiveService.size;
1466
1471
  if (this.isAdaptive) {
1467
1472
  this.openActionSheet();
1468
1473
  return;
@@ -1511,7 +1516,7 @@ export class ComboBoxComponent extends MultiTabStop {
1511
1516
  this.closeActionSheet();
1512
1517
  }
1513
1518
  if (this._open) {
1514
- this.windowSize = windowSize();
1519
+ this.windowSize = this.adaptiveService.size;
1515
1520
  this.createPopup();
1516
1521
  }
1517
1522
  }
@@ -1585,7 +1590,7 @@ export class ComboBoxComponent extends MultiTabStop {
1585
1590
  this.closed.emit();
1586
1591
  }
1587
1592
  openActionSheet() {
1588
- this.windowSize = windowSize();
1593
+ this.windowSize = this.adaptiveService.size;
1589
1594
  this.actionSheet.toggle(true);
1590
1595
  this.cdr.detectChanges();
1591
1596
  setListBoxAriaLabelledBy(this.optionsList, this.searchbar.input, this.renderer);
@@ -1597,7 +1602,7 @@ export class ComboBoxComponent extends MultiTabStop {
1597
1602
  this.selectionService.focus(this.selectionService.focused);
1598
1603
  this.actionSheetSearchBar.focus();
1599
1604
  }
1600
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ComboBoxComponent, deps: [{ token: i0.ElementRef }, { token: i1.LocalizationService }, { token: i2.PopupService }, { token: i3.SelectionService }, { token: i4.NavigationService }, { token: i5.DisabledItemsService }, { token: i6.DataService }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i0.Injector }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
1605
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ComboBoxComponent, deps: [{ token: i0.ElementRef }, { token: i1.LocalizationService }, { token: i2.PopupService }, { token: i3.SelectionService }, { token: i4.NavigationService }, { token: i5.DisabledItemsService }, { token: i6.DataService }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i0.Injector }, { token: i0.ElementRef }, { token: i7.AdaptiveService }], target: i0.ɵɵFactoryTarget.Component });
1601
1606
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ComboBoxComponent, isStandalone: true, selector: "kendo-combobox", inputs: { icon: "icon", svgIcon: "svgIcon", inputAttributes: "inputAttributes", showStickyHeader: "showStickyHeader", focusableId: "focusableId", allowCustom: "allowCustom", data: "data", value: "value", textField: "textField", valueField: "valueField", valuePrimitive: "valuePrimitive", valueNormalizer: "valueNormalizer", placeholder: "placeholder", adaptiveMode: "adaptiveMode", title: "title", subtitle: "subtitle", popupSettings: "popupSettings", listHeight: "listHeight", loading: "loading", suggest: "suggest", clearButton: "clearButton", disabled: "disabled", itemDisabled: "itemDisabled", readonly: "readonly", tabindex: "tabindex", tabIndex: "tabIndex", filterable: "filterable", virtual: "virtual", size: "size", rounded: "rounded", fillMode: "fillMode" }, outputs: { valueChange: "valueChange", selectionChange: "selectionChange", filterChange: "filterChange", open: "open", opened: "opened", close: "close", closed: "closed", onFocus: "focus", onBlur: "blur", inputFocus: "inputFocus", inputBlur: "inputBlur", escape: "escape" }, host: { properties: { "class.k-readonly": "this.readonly", "class.k-combobox": "this.widgetClasses", "class.k-input": "this.widgetClasses", "class.k-disabled": "this.isDisabled", "class.k-loading": "this.isLoading", "attr.dir": "this.dir" } }, providers: [
1602
1607
  COMBOBOX_VALUE_ACCESSOR,
1603
1608
  DataService,
@@ -1970,7 +1975,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1970
1975
  standalone: true,
1971
1976
  imports: [LocalizedMessagesDirective, SharedDropDownEventsDirective, NgIf, NgTemplateOutlet, SeparatorComponent, SearchBarComponent, EventsOutsideAngularDirective, IconWrapperComponent, NgClass, ResizeSensorComponent, ResponsiveRendererComponent, TemplateContextDirective, ListComponent]
1972
1977
  }]
1973
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.LocalizationService }, { type: i2.PopupService }, { type: i3.SelectionService }, { type: i4.NavigationService }, { type: i5.DisabledItemsService }, { type: i6.DataService }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: i0.Injector }, { type: i0.ElementRef }]; }, propDecorators: { icon: [{
1978
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.LocalizationService }, { type: i2.PopupService }, { type: i3.SelectionService }, { type: i4.NavigationService }, { type: i5.DisabledItemsService }, { type: i6.DataService }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: i0.Injector }, { type: i0.ElementRef }, { type: i7.AdaptiveService }]; }, propDecorators: { icon: [{
1974
1979
  type: Input
1975
1980
  }], svgIcon: [{
1976
1981
  type: Input
@@ -7,6 +7,7 @@ import { KENDO_COMBOBOX, KENDO_MULTICOLUMNCOMBOBOX } from '../directives';
7
7
  import { KENDO_ADORNMENTS, KENDO_TOGGLEBUTTONTABSTOP, ResizeBatchService } from '@progress/kendo-angular-common';
8
8
  import { IconsService } from '@progress/kendo-angular-icons';
9
9
  import { PopupService } from '@progress/kendo-angular-popup';
10
+ import { AdaptiveService } from '@progress/kendo-angular-utils';
10
11
  import * as i0 from "@angular/core";
11
12
  import * as i1 from "./combobox.component";
12
13
  import * as i2 from "../common/templates/fixed-group-template.directive";
@@ -48,7 +49,8 @@ export class ComboBoxModule {
48
49
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ComboBoxModule, providers: [
49
50
  PopupService,
50
51
  ResizeBatchService,
51
- IconsService
52
+ IconsService,
53
+ AdaptiveService
52
54
  ], imports: [i1.ComboBoxComponent, i10.SeparatorComponent, i11.MultiColumnComboBoxComponent, i10.SeparatorComponent, i10.SeparatorComponent] });
53
55
  }
54
56
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ComboBoxModule, decorators: [{
@@ -59,7 +61,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
59
61
  providers: [
60
62
  PopupService,
61
63
  ResizeBatchService,
62
- IconsService
64
+ IconsService,
65
+ AdaptiveService
63
66
  ]
64
67
  }]
65
68
  }] });
@@ -7,13 +7,14 @@ import { NG_VALUE_ACCESSOR } from '@angular/forms';
7
7
  import { EventsOutsideAngularDirective, isDocumentAvailable, KendoInput, MultiTabStop, ResizeSensorComponent, SeparatorComponent, TemplateContextDirective } from '@progress/kendo-angular-common';
8
8
  import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
9
9
  import { PopupService } from '@progress/kendo-angular-popup';
10
+ import { AdaptiveService } from '@progress/kendo-angular-utils';
10
11
  import { ComboBoxComponent } from './combobox.component';
11
12
  import { ComboBoxColumnComponent } from './combobox-column/combobox-column.component';
12
13
  import { DataService } from '../common/data.service';
13
14
  import { DisabledItemsService } from '../common/disabled-items/disabled-items.service';
14
15
  import { NavigationService } from '../common/navigation/navigation.service';
15
16
  import { SelectionService } from '../common/selection/selection.service';
16
- import { animationDuration, getSizeClass, getter, isObject, isPresent, noop, windowSize } from '../common/util';
17
+ import { animationDuration, getSizeClass, getter, isObject, isPresent, noop } from '../common/util';
17
18
  import { getRowWidthFromColumnsMeta, scrollbarWidth } from './combobox-column/util';
18
19
  import { FilterableComponent } from '../common/filtering/filterable-component';
19
20
  import { MultiColumnComboBoxMessages } from '../common/constants/error-messages';
@@ -32,6 +33,7 @@ import * as i3 from "../common/selection/selection.service";
32
33
  import * as i4 from "../common/navigation/navigation.service";
33
34
  import * as i5 from "../common/disabled-items/disabled-items.service";
34
35
  import * as i6 from "../common/data.service";
36
+ import * as i7 from "@progress/kendo-angular-utils";
35
37
  /**
36
38
  * Represents the [Kendo UI MultiColumnComboBox component for Angular]({% slug overview_multicolumncombobox %}).
37
39
  */
@@ -114,8 +116,8 @@ export class MultiColumnComboBoxComponent extends ComboBoxComponent {
114
116
  get listContainerClasses() {
115
117
  return ['k-popup', 'k-dropdowngrid-popup'].concat(this.popupSettings.popupClass || []);
116
118
  }
117
- constructor(localization, popupService, selectionService, navigationService, disabledItemsService, dataService, zone, changeDetector, renderer, wrapper, injector, hostElement) {
118
- super(wrapper, localization, popupService, selectionService, navigationService, disabledItemsService, dataService, zone, changeDetector, renderer, injector, hostElement);
119
+ constructor(localization, popupService, selectionService, navigationService, disabledItemsService, dataService, zone, changeDetector, renderer, wrapper, injector, hostElement, adaptiveService) {
120
+ super(wrapper, localization, popupService, selectionService, navigationService, disabledItemsService, dataService, zone, changeDetector, renderer, injector, hostElement, adaptiveService);
119
121
  this.hostElement = hostElement;
120
122
  // the row height in @progress/kendo-theme-default
121
123
  this.defaultVirtualItemHeight = 36;
@@ -125,7 +127,7 @@ export class MultiColumnComboBoxComponent extends ComboBoxComponent {
125
127
  ngAfterViewInit() {
126
128
  this.updateColumnsMediaState();
127
129
  this.addWindowResizeListener();
128
- this.windowSize = windowSize();
130
+ this.windowSize = this.adaptiveService.size;
129
131
  this.rowWidth = this.calculateRowWidth();
130
132
  this.totalColumnsWidth = this.columns.reduce((total, currentColumn) => total + currentColumn.width, 0);
131
133
  this.columnsChangeSubscription = this.columns.changes.subscribe(() => {
@@ -226,7 +228,7 @@ export class MultiColumnComboBoxComponent extends ComboBoxComponent {
226
228
  }
227
229
  return this.headerTable?.nativeElement.offsetWidth;
228
230
  }
229
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MultiColumnComboBoxComponent, deps: [{ token: i1.LocalizationService }, { token: i2.PopupService }, { token: i3.SelectionService }, { token: i4.NavigationService }, { token: i5.DisabledItemsService }, { token: i6.DataService }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.Injector }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
231
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MultiColumnComboBoxComponent, deps: [{ token: i1.LocalizationService }, { token: i2.PopupService }, { token: i3.SelectionService }, { token: i4.NavigationService }, { token: i5.DisabledItemsService }, { token: i6.DataService }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.Injector }, { token: i0.ElementRef }, { token: i7.AdaptiveService }], target: i0.ɵɵFactoryTarget.Component });
230
232
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: MultiColumnComboBoxComponent, isStandalone: true, selector: "kendo-multicolumncombobox", host: { properties: { "class.k-dropdowngrid": "this.hostClasses", "class.k-disabled": "this.isDisabled" } }, providers: [
231
233
  SelectionService,
232
234
  DataService,
@@ -796,7 +798,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
796
798
  standalone: true,
797
799
  imports: [LocalizedMessagesDirective, SharedDropDownEventsDirective, NgIf, NgTemplateOutlet, SeparatorComponent, SearchBarComponent, EventsOutsideAngularDirective, IconWrapperComponent, NgClass, ResizeSensorComponent, ResponsiveRendererComponent, TemplateContextDirective, NgFor, NgStyle, ListComponent]
798
800
  }]
799
- }], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i2.PopupService }, { type: i3.SelectionService }, { type: i4.NavigationService }, { type: i5.DisabledItemsService }, { type: i6.DataService }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.Injector }, { type: i0.ElementRef }]; }, propDecorators: { hostClasses: [{
801
+ }], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i2.PopupService }, { type: i3.SelectionService }, { type: i4.NavigationService }, { type: i5.DisabledItemsService }, { type: i6.DataService }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.Injector }, { type: i0.ElementRef }, { type: i7.AdaptiveService }]; }, propDecorators: { hostClasses: [{
800
802
  type: HostBinding,
801
803
  args: ['class.k-dropdowngrid']
802
804
  }], isDisabled: [{
@@ -363,22 +363,6 @@ export const getSearchableItems = (treeViewId, element) => {
363
363
  return { text: liElement.innerText, index: liElement.getAttribute('data-treeindex') };
364
364
  });
365
365
  };
366
- /**
367
- * @hidden
368
- */
369
- export const windowSize = () => {
370
- if (typeof window !== 'undefined') {
371
- if (window.innerWidth > 768) {
372
- return 'large';
373
- }
374
- else if (window.innerWidth > 500) {
375
- return 'medium';
376
- }
377
- else {
378
- return 'small';
379
- }
380
- }
381
- };
382
366
  /**
383
367
  * @hidden
384
368
  */