@progress/kendo-angular-menu 25.0.0-develop.1 → 25.0.0-develop.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/fesm2022/progress-kendo-angular-menu.mjs +747 -236
- package/index.d.ts +266 -100
- package/package-metadata.mjs +2 -2
- package/package.json +7 -7
package/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
|
-
import { NgZone, EventEmitter, TemplateRef, QueryList, TrackByFunction, OnChanges, AfterViewChecked, ViewContainerRef, Renderer2, OnInit, AfterViewInit,
|
|
6
|
+
import { NgZone, EventEmitter, TemplateRef, QueryList, AfterContentInit, TrackByFunction, OnChanges, AfterViewChecked, OnDestroy, ViewContainerRef, Renderer2, OnInit, AfterViewInit, ElementRef } from '@angular/core';
|
|
7
7
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
8
|
import * as _progress_kendo_angular_icons from '@progress/kendo-angular-icons';
|
|
9
9
|
import { SVGIcon } from '@progress/kendo-angular-icons';
|
|
@@ -422,15 +422,24 @@ interface MenuItem {
|
|
|
422
422
|
* Supported children components are: {@link MenuItemComponent}.
|
|
423
423
|
*/
|
|
424
424
|
declare class MenuItemComponent implements MenuItem {
|
|
425
|
-
text: string;
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
425
|
+
set text(value: string);
|
|
426
|
+
get text(): string;
|
|
427
|
+
set url(value: string);
|
|
428
|
+
get url(): string;
|
|
429
|
+
set disabled(value: boolean);
|
|
430
|
+
get disabled(): boolean;
|
|
431
|
+
set cssClass(value: any);
|
|
432
|
+
get cssClass(): any;
|
|
433
|
+
set cssStyle(value: any);
|
|
434
|
+
get cssStyle(): any;
|
|
435
|
+
set icon(value: string);
|
|
436
|
+
get icon(): string;
|
|
437
|
+
set svgIcon(value: SVGIcon$1);
|
|
438
|
+
get svgIcon(): SVGIcon$1;
|
|
439
|
+
set data(value: any);
|
|
440
|
+
get data(): any;
|
|
441
|
+
set separator(value: boolean);
|
|
442
|
+
get separator(): boolean;
|
|
434
443
|
/**
|
|
435
444
|
* @hidden
|
|
436
445
|
*/
|
|
@@ -463,6 +472,15 @@ declare class MenuItemComponent implements MenuItem {
|
|
|
463
472
|
* @hidden
|
|
464
473
|
*/
|
|
465
474
|
get items(): any[];
|
|
475
|
+
private _text;
|
|
476
|
+
private _url;
|
|
477
|
+
private _disabled;
|
|
478
|
+
private _cssClass;
|
|
479
|
+
private _cssStyle;
|
|
480
|
+
private _icon;
|
|
481
|
+
private _svgIcon;
|
|
482
|
+
private _data;
|
|
483
|
+
private _separator;
|
|
466
484
|
static ɵfac: i0.ɵɵFactoryDeclaration<MenuItemComponent, never>;
|
|
467
485
|
static ɵcmp: i0.ɵɵComponentDeclaration<MenuItemComponent, "kendo-menu-item", never, { "text": { "alias": "text"; "required": false; }; "url": { "alias": "url"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "cssClass": { "alias": "cssClass"; "required": false; }; "cssStyle": { "alias": "cssStyle"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "svgIcon": { "alias": "svgIcon"; "required": false; }; "data": { "alias": "data"; "required": false; }; "separator": { "alias": "separator"; "required": false; }; }, {}, ["itemTemplate", "itemLinkTemplate", "itemContentTemplate", "children"], never, true, never>;
|
|
468
486
|
}
|
|
@@ -524,30 +542,35 @@ interface PopupSettings {
|
|
|
524
542
|
/**
|
|
525
543
|
* @hidden
|
|
526
544
|
*/
|
|
527
|
-
declare class MenuBase {
|
|
545
|
+
declare class MenuBase implements AfterContentInit {
|
|
528
546
|
/**
|
|
529
547
|
* Specifies the Menu items.
|
|
530
548
|
*/
|
|
531
|
-
items: any[];
|
|
549
|
+
set items(value: any[]);
|
|
550
|
+
get items(): any[];
|
|
532
551
|
/**
|
|
533
552
|
* Specifies if the Menu will be vertical ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/vertical)).
|
|
534
553
|
*/
|
|
535
|
-
vertical: boolean;
|
|
554
|
+
set vertical(value: boolean);
|
|
555
|
+
get vertical(): boolean;
|
|
536
556
|
/**
|
|
537
557
|
* Specifies that the root items can be opened only on click
|
|
538
558
|
* ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/open-close#opening-on-click)).
|
|
539
559
|
*/
|
|
540
|
-
openOnClick: boolean | OpenOnClickSettings;
|
|
560
|
+
set openOnClick(value: boolean | OpenOnClickSettings);
|
|
561
|
+
get openOnClick(): boolean | OpenOnClickSettings;
|
|
541
562
|
/**
|
|
542
563
|
* Specifies the delay in milliseconds before the Menu items are opened or closed on item hover
|
|
543
564
|
* or leave ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/open-close#delay-on-hover)). Used to avoid the accidental
|
|
544
565
|
* opening or closing of the items.
|
|
545
566
|
*/
|
|
546
|
-
hoverDelay: number;
|
|
567
|
+
set hoverDelay(value: number);
|
|
568
|
+
get hoverDelay(): number;
|
|
547
569
|
/**
|
|
548
570
|
* Sets the Menu animation.
|
|
549
571
|
*/
|
|
550
|
-
animate: boolean | MenuAnimation;
|
|
572
|
+
set animate(value: boolean | MenuAnimation);
|
|
573
|
+
get animate(): boolean | MenuAnimation;
|
|
551
574
|
/**
|
|
552
575
|
* Sets the Menu size.
|
|
553
576
|
*
|
|
@@ -557,17 +580,20 @@ declare class MenuBase {
|
|
|
557
580
|
* * `large`
|
|
558
581
|
*
|
|
559
582
|
*/
|
|
560
|
-
size: MenuSize;
|
|
583
|
+
set size(value: MenuSize);
|
|
584
|
+
get size(): MenuSize;
|
|
561
585
|
/**
|
|
562
586
|
* Configures the popup settings for the Menu items.
|
|
563
587
|
* Allows customization of the popup class and margin.
|
|
564
588
|
*/
|
|
565
|
-
popupSettings: PopupSettings;
|
|
589
|
+
set popupSettings(value: PopupSettings);
|
|
590
|
+
get popupSettings(): PopupSettings;
|
|
566
591
|
/**
|
|
567
|
-
* Defines a function that determines how to track
|
|
592
|
+
* Defines a function that determines how to track for the menu items.
|
|
568
593
|
* By default, the component tracks changes by index.
|
|
569
594
|
*/
|
|
570
|
-
trackBy: TrackByFunction<any
|
|
595
|
+
set trackBy(value: TrackByFunction<any>);
|
|
596
|
+
get trackBy(): TrackByFunction<any>;
|
|
571
597
|
/**
|
|
572
598
|
* @hidden
|
|
573
599
|
*/
|
|
@@ -580,6 +606,17 @@ declare class MenuBase {
|
|
|
580
606
|
* @hidden
|
|
581
607
|
*/
|
|
582
608
|
children: QueryList<MenuItemComponent>;
|
|
609
|
+
protected _items: i0.WritableSignal<any[]>;
|
|
610
|
+
protected _vertical: i0.WritableSignal<boolean>;
|
|
611
|
+
protected _openOnClick: i0.WritableSignal<boolean | OpenOnClickSettings>;
|
|
612
|
+
protected _hoverDelay: i0.WritableSignal<number>;
|
|
613
|
+
protected _animate: i0.WritableSignal<boolean | MenuAnimation>;
|
|
614
|
+
protected _size: i0.WritableSignal<MenuSize>;
|
|
615
|
+
protected _popupSettings: i0.WritableSignal<PopupSettings>;
|
|
616
|
+
protected _trackBy: i0.WritableSignal<TrackByFunction<any>>;
|
|
617
|
+
protected _children: i0.WritableSignal<MenuItemComponent[]>;
|
|
618
|
+
private destroyRef;
|
|
619
|
+
ngAfterContentInit(): void;
|
|
583
620
|
/**
|
|
584
621
|
* @hidden
|
|
585
622
|
*/
|
|
@@ -608,7 +645,7 @@ declare class MenuBase {
|
|
|
608
645
|
* @remarks
|
|
609
646
|
* Supported children components are: {@link MenuItemComponent}.
|
|
610
647
|
*/
|
|
611
|
-
declare class MenuComponent extends MenuBase implements OnChanges, AfterViewChecked {
|
|
648
|
+
declare class MenuComponent extends MenuBase implements OnChanges, AfterViewChecked, OnDestroy {
|
|
612
649
|
private itemsService;
|
|
613
650
|
private hover;
|
|
614
651
|
private actions;
|
|
@@ -620,19 +657,23 @@ declare class MenuComponent extends MenuBase implements OnChanges, AfterViewChec
|
|
|
620
657
|
/**
|
|
621
658
|
* Defines the container to which the popups will be appended.
|
|
622
659
|
*/
|
|
623
|
-
appendTo: ViewContainerRef;
|
|
660
|
+
set appendTo(value: ViewContainerRef);
|
|
661
|
+
get appendTo(): ViewContainerRef;
|
|
624
662
|
/**
|
|
625
663
|
* @hidden
|
|
626
664
|
*/
|
|
627
|
-
menuItemTemplate: TemplateRef<any
|
|
665
|
+
set menuItemTemplate(value: TemplateRef<any>);
|
|
666
|
+
get menuItemTemplate(): TemplateRef<any>;
|
|
628
667
|
/**
|
|
629
668
|
* @hidden
|
|
630
669
|
*/
|
|
631
|
-
ariaRole: string;
|
|
670
|
+
set ariaRole(value: string);
|
|
671
|
+
get ariaRole(): string;
|
|
632
672
|
/**
|
|
633
673
|
* @hidden
|
|
634
674
|
*/
|
|
635
|
-
menuItemLinkTemplate: TemplateRef<any
|
|
675
|
+
set menuItemLinkTemplate(value: TemplateRef<any>);
|
|
676
|
+
get menuItemLinkTemplate(): TemplateRef<any>;
|
|
636
677
|
/**
|
|
637
678
|
* Fires when a Menu item is selected ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/events)).
|
|
638
679
|
*/
|
|
@@ -661,7 +702,14 @@ declare class MenuComponent extends MenuBase implements OnChanges, AfterViewChec
|
|
|
661
702
|
get menuClasses(): string;
|
|
662
703
|
private closeClickSubscription;
|
|
663
704
|
private contextKeyDownSubscription;
|
|
705
|
+
private localizationSubscription;
|
|
706
|
+
private _appendTo;
|
|
707
|
+
private _menuItemTemplate;
|
|
708
|
+
private _ariaRole;
|
|
709
|
+
private _menuItemLinkTemplate;
|
|
710
|
+
private _rtl;
|
|
664
711
|
constructor(itemsService: ItemsService, hover: HoverService, actions: ActionsService, navigation: NavigationService, localization: LocalizationService, ngZone: NgZone, renderer: Renderer2, contextService?: ContextMenuService);
|
|
712
|
+
ngOnChanges(changes: any): void;
|
|
665
713
|
/**
|
|
666
714
|
* Opens or closes the specified Menu items.
|
|
667
715
|
*
|
|
@@ -673,7 +721,6 @@ declare class MenuComponent extends MenuBase implements OnChanges, AfterViewChec
|
|
|
673
721
|
* @hidden
|
|
674
722
|
*/
|
|
675
723
|
focus(index?: string): void;
|
|
676
|
-
ngOnChanges(changes: any): void;
|
|
677
724
|
ngAfterViewChecked(): void;
|
|
678
725
|
ngOnDestroy(): void;
|
|
679
726
|
private attachCloseClick;
|
|
@@ -694,20 +741,46 @@ declare class ListComponent implements OnInit, OnDestroy {
|
|
|
694
741
|
private renderer;
|
|
695
742
|
private ngZone;
|
|
696
743
|
element: ElementRef;
|
|
697
|
-
appendTo: ViewContainerRef;
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
744
|
+
set appendTo(value: ViewContainerRef);
|
|
745
|
+
get appendTo(): ViewContainerRef;
|
|
746
|
+
set items(value: any[]);
|
|
747
|
+
get items(): any[];
|
|
748
|
+
set level(value: number);
|
|
749
|
+
get level(): number;
|
|
750
|
+
set index(value: string);
|
|
751
|
+
get index(): string;
|
|
752
|
+
set animate(value: boolean | MenuAnimation);
|
|
753
|
+
get animate(): boolean | MenuAnimation;
|
|
754
|
+
set size(value: MenuSize);
|
|
755
|
+
get size(): MenuSize;
|
|
756
|
+
set vertical(value: boolean);
|
|
757
|
+
get vertical(): boolean;
|
|
758
|
+
set rtl(value: boolean);
|
|
759
|
+
get rtl(): boolean;
|
|
760
|
+
set openOnClick(value: any);
|
|
761
|
+
get openOnClick(): any;
|
|
762
|
+
set itemTemplate(value: TemplateRef<any>);
|
|
763
|
+
get itemTemplate(): TemplateRef<any>;
|
|
764
|
+
set itemLinkTemplate(value: TemplateRef<any>);
|
|
765
|
+
get itemLinkTemplate(): TemplateRef<any>;
|
|
766
|
+
set popupSettings(value: PopupSettings);
|
|
767
|
+
get popupSettings(): PopupSettings;
|
|
768
|
+
set trackBy(value: TrackByFunction<any>);
|
|
769
|
+
get trackBy(): TrackByFunction<any>;
|
|
710
770
|
private domSubscriptions;
|
|
771
|
+
private _appendTo;
|
|
772
|
+
private _items;
|
|
773
|
+
private _level;
|
|
774
|
+
private _index;
|
|
775
|
+
private _animate;
|
|
776
|
+
private _size;
|
|
777
|
+
private _vertical;
|
|
778
|
+
private _rtl;
|
|
779
|
+
private _openOnClick;
|
|
780
|
+
private _itemTemplate;
|
|
781
|
+
private _itemLinkTemplate;
|
|
782
|
+
private _popupSettings;
|
|
783
|
+
private _trackBy;
|
|
711
784
|
constructor(itemsService: ItemsService, hover: HoverService, actions: ActionsService, navigation: NavigationService, renderer: Renderer2, ngZone: NgZone, element: ElementRef);
|
|
712
785
|
trackByWrapper(index: number, item: any): any;
|
|
713
786
|
hierarchyIndex(index: number): string;
|
|
@@ -724,29 +797,41 @@ declare class ListComponent implements OnInit, OnDestroy {
|
|
|
724
797
|
/**
|
|
725
798
|
* @hidden
|
|
726
799
|
*/
|
|
727
|
-
declare class ItemComponent implements OnInit,
|
|
800
|
+
declare class ItemComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
728
801
|
private itemsService;
|
|
729
802
|
private navigation;
|
|
730
|
-
private changeDetector;
|
|
731
803
|
private renderer;
|
|
732
804
|
private popupService;
|
|
733
805
|
element: ElementRef;
|
|
734
806
|
private contextService?;
|
|
735
|
-
appendTo: ViewContainerRef;
|
|
736
|
-
|
|
737
|
-
|
|
807
|
+
set appendTo(value: ViewContainerRef);
|
|
808
|
+
get appendTo(): ViewContainerRef;
|
|
809
|
+
set item(value: any);
|
|
810
|
+
get item(): any;
|
|
811
|
+
set level(value: number);
|
|
812
|
+
get level(): number;
|
|
738
813
|
set index(index: string);
|
|
739
814
|
get index(): string;
|
|
740
|
-
siblingIndex: number;
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
815
|
+
set siblingIndex(value: number);
|
|
816
|
+
get siblingIndex(): number;
|
|
817
|
+
set animate(value: boolean | MenuAnimation);
|
|
818
|
+
get animate(): boolean | MenuAnimation;
|
|
819
|
+
set size(value: MenuSize);
|
|
820
|
+
get size(): MenuSize;
|
|
821
|
+
set vertical(value: boolean);
|
|
822
|
+
get vertical(): boolean;
|
|
823
|
+
set rtl(value: boolean);
|
|
824
|
+
get rtl(): boolean;
|
|
825
|
+
set openOnClick(value: any);
|
|
826
|
+
get openOnClick(): any;
|
|
827
|
+
set itemTemplate(value: TemplateRef<any>);
|
|
828
|
+
get itemTemplate(): TemplateRef<any>;
|
|
829
|
+
set itemLinkTemplate(value: TemplateRef<any>);
|
|
830
|
+
get itemLinkTemplate(): TemplateRef<any>;
|
|
831
|
+
set popupSettings(value: PopupSettings);
|
|
832
|
+
get popupSettings(): PopupSettings;
|
|
833
|
+
set trackBy(value: TrackByFunction<any>);
|
|
834
|
+
get trackBy(): TrackByFunction<any>;
|
|
750
835
|
link: ElementRef;
|
|
751
836
|
popupTemplate: TemplateRef<any>;
|
|
752
837
|
get disabled(): boolean;
|
|
@@ -770,17 +855,31 @@ declare class ItemComponent implements OnInit, OnChanges, AfterViewInit, OnDestr
|
|
|
770
855
|
* @hidden
|
|
771
856
|
*/
|
|
772
857
|
SVGIcon: (horizontal: boolean, rtl: boolean) => _progress_kendo_angular_icons.SVGIcon;
|
|
773
|
-
opened: boolean;
|
|
858
|
+
get opened(): boolean;
|
|
859
|
+
set opened(value: boolean);
|
|
774
860
|
navigating: boolean;
|
|
775
861
|
childId: string;
|
|
776
862
|
private contentItems;
|
|
777
863
|
private popupRef;
|
|
778
|
-
private _index;
|
|
779
864
|
private destroyed;
|
|
780
|
-
|
|
865
|
+
private _index;
|
|
866
|
+
private _appendTo;
|
|
867
|
+
private _item;
|
|
868
|
+
private _level;
|
|
869
|
+
private _opened;
|
|
870
|
+
private _siblingIndex;
|
|
871
|
+
private _animate;
|
|
872
|
+
private _size;
|
|
873
|
+
private _vertical;
|
|
874
|
+
private _rtl;
|
|
875
|
+
private _openOnClick;
|
|
876
|
+
private _itemTemplate;
|
|
877
|
+
private _itemLinkTemplate;
|
|
878
|
+
private _popupSettings;
|
|
879
|
+
private _trackBy;
|
|
880
|
+
constructor(itemsService: ItemsService, navigation: NavigationService, renderer: Renderer2, popupService: PopupService, element: ElementRef, contextService?: ContextMenuService);
|
|
781
881
|
hasContentTemplates(): boolean;
|
|
782
882
|
ngOnInit(): void;
|
|
783
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
784
883
|
ngAfterViewInit(): void;
|
|
785
884
|
ngOnDestroy(): void;
|
|
786
885
|
focus(): void;
|
|
@@ -791,7 +890,7 @@ declare class ItemComponent implements OnInit, OnChanges, AfterViewInit, OnDestr
|
|
|
791
890
|
navigate(): void;
|
|
792
891
|
private setAttribute;
|
|
793
892
|
private getMergedPopupSettings;
|
|
794
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ItemComponent, [null, null, null, null, null,
|
|
893
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItemComponent, [null, null, null, null, null, { optional: true; }]>;
|
|
795
894
|
static ɵcmp: i0.ɵɵComponentDeclaration<ItemComponent, "[kendoMenuItem]", never, { "appendTo": { "alias": "appendTo"; "required": false; }; "item": { "alias": "item"; "required": false; }; "level": { "alias": "level"; "required": false; }; "index": { "alias": "index"; "required": false; }; "siblingIndex": { "alias": "siblingIndex"; "required": false; }; "animate": { "alias": "animate"; "required": false; }; "size": { "alias": "size"; "required": false; }; "vertical": { "alias": "vertical"; "required": false; }; "rtl": { "alias": "rtl"; "required": false; }; "openOnClick": { "alias": "openOnClick"; "required": false; }; "itemTemplate": { "alias": "itemTemplate"; "required": false; }; "itemLinkTemplate": { "alias": "itemLinkTemplate"; "required": false; }; "popupSettings": { "alias": "popupSettings"; "required": false; }; "trackBy": { "alias": "trackBy"; "required": false; }; }, {}, never, never, true, never>;
|
|
796
895
|
}
|
|
797
896
|
|
|
@@ -811,9 +910,10 @@ declare class LinkDirective implements OnInit {
|
|
|
811
910
|
/**
|
|
812
911
|
* Specifies the index of the Menu item. The input is mandatory.
|
|
813
912
|
*/
|
|
814
|
-
index: string;
|
|
913
|
+
set index(value: string);
|
|
914
|
+
get index(): string;
|
|
915
|
+
private _index;
|
|
815
916
|
hostClasses: boolean;
|
|
816
|
-
role: string;
|
|
817
917
|
tabindex: string;
|
|
818
918
|
get activeClass(): boolean;
|
|
819
919
|
private item;
|
|
@@ -839,7 +939,9 @@ declare class ExpandArrowComponent implements OnInit {
|
|
|
839
939
|
/**
|
|
840
940
|
* Specifies the index of the Menu item. The input is mandatory.
|
|
841
941
|
*/
|
|
842
|
-
index: string;
|
|
942
|
+
set index(value: string);
|
|
943
|
+
get index(): string;
|
|
944
|
+
private _index;
|
|
843
945
|
hostClasses: boolean;
|
|
844
946
|
ariaHidden: string;
|
|
845
947
|
private item;
|
|
@@ -860,12 +962,13 @@ declare class ExpandArrowComponent implements OnInit {
|
|
|
860
962
|
/**
|
|
861
963
|
* @hidden
|
|
862
964
|
*/
|
|
863
|
-
declare abstract class BindingDirectiveBase
|
|
965
|
+
declare abstract class BindingDirectiveBase {
|
|
864
966
|
protected menu: MenuBase;
|
|
865
|
-
data: any[];
|
|
967
|
+
set data(value: any[]);
|
|
968
|
+
get data(): any[];
|
|
969
|
+
protected _data: i0.WritableSignal<any[]>;
|
|
866
970
|
protected fields: any[];
|
|
867
971
|
constructor(menu: MenuBase);
|
|
868
|
-
ngOnChanges(): void;
|
|
869
972
|
/**
|
|
870
973
|
* Rebinds the Menu items.
|
|
871
974
|
*/
|
|
@@ -891,43 +994,62 @@ declare class HierarchyBindingDirective extends BindingDirectiveBase {
|
|
|
891
994
|
/**
|
|
892
995
|
* Specifies the array of data which will be used to populate the Menu.
|
|
893
996
|
*/
|
|
894
|
-
data: any[];
|
|
997
|
+
set data(value: any[]);
|
|
998
|
+
get data(): any[];
|
|
895
999
|
/**
|
|
896
1000
|
* Defines the `text` field (or fields) of an item.
|
|
897
1001
|
*/
|
|
898
|
-
textField: string | string[];
|
|
1002
|
+
set textField(value: string | string[]);
|
|
1003
|
+
get textField(): string | string[];
|
|
899
1004
|
/**
|
|
900
1005
|
* Defines the `url` field (or fields) of an item.
|
|
901
1006
|
*/
|
|
902
|
-
urlField: string | string[];
|
|
1007
|
+
set urlField(value: string | string[]);
|
|
1008
|
+
get urlField(): string | string[];
|
|
903
1009
|
/**
|
|
904
1010
|
* Defines the `icon` field (or fields) of an item.
|
|
905
1011
|
*/
|
|
906
|
-
iconField: string | string[];
|
|
1012
|
+
set iconField(value: string | string[]);
|
|
1013
|
+
get iconField(): string | string[];
|
|
907
1014
|
/**
|
|
908
1015
|
* Defines the `svgIcon` field of the items.
|
|
909
1016
|
*/
|
|
910
|
-
svgIconField: string | string[];
|
|
1017
|
+
set svgIconField(value: string | string[]);
|
|
1018
|
+
get svgIconField(): string | string[];
|
|
911
1019
|
/**
|
|
912
1020
|
* Defines the `disabled` field (or fields) of an item.
|
|
913
1021
|
*/
|
|
914
|
-
disabledField: string | string[];
|
|
1022
|
+
set disabledField(value: string | string[]);
|
|
1023
|
+
get disabledField(): string | string[];
|
|
915
1024
|
/**
|
|
916
1025
|
* Defines the `cssClass` field (or fields) of an item.
|
|
917
1026
|
*/
|
|
918
|
-
cssClassField: string | string[];
|
|
1027
|
+
set cssClassField(value: string | string[]);
|
|
1028
|
+
get cssClassField(): string | string[];
|
|
919
1029
|
/**
|
|
920
1030
|
* Defines the `cssStyle` field (or fields) of an item.
|
|
921
1031
|
*/
|
|
922
|
-
cssStyleField: string | string[];
|
|
1032
|
+
set cssStyleField(value: string | string[]);
|
|
1033
|
+
get cssStyleField(): string | string[];
|
|
923
1034
|
/**
|
|
924
1035
|
* Defines the `separator` field (or fields) of the items.
|
|
925
1036
|
*/
|
|
926
|
-
separatorField: string | string[];
|
|
1037
|
+
set separatorField(value: string | string[]);
|
|
1038
|
+
get separatorField(): string | string[];
|
|
927
1039
|
/**
|
|
928
1040
|
* Defines the `children` field (or fields) of the items.
|
|
929
1041
|
*/
|
|
930
|
-
childrenField: string | string[];
|
|
1042
|
+
set childrenField(value: string | string[]);
|
|
1043
|
+
get childrenField(): string | string[];
|
|
1044
|
+
private _textField;
|
|
1045
|
+
private _urlField;
|
|
1046
|
+
private _iconField;
|
|
1047
|
+
private _svgIconField;
|
|
1048
|
+
private _disabledField;
|
|
1049
|
+
private _cssClassField;
|
|
1050
|
+
private _cssStyleField;
|
|
1051
|
+
private _separatorField;
|
|
1052
|
+
private _childrenField;
|
|
931
1053
|
constructor(menu: MenuBase);
|
|
932
1054
|
protected mapItems(items: any[], level?: number): any[];
|
|
933
1055
|
protected createItem(item: any, level: number): any;
|
|
@@ -952,47 +1074,68 @@ declare class FlatBindingDirective extends BindingDirectiveBase {
|
|
|
952
1074
|
/**
|
|
953
1075
|
* Specifies the array of data which will be used to populate the Menu.
|
|
954
1076
|
*/
|
|
955
|
-
data: any[];
|
|
1077
|
+
set data(value: any[]);
|
|
1078
|
+
get data(): any[];
|
|
956
1079
|
/**
|
|
957
1080
|
* Defines the `text` field of the items.
|
|
958
1081
|
*/
|
|
959
|
-
textField: string;
|
|
1082
|
+
set textField(value: string);
|
|
1083
|
+
get textField(): string;
|
|
960
1084
|
/**
|
|
961
1085
|
* Defines the `url` field of the items.
|
|
962
1086
|
*/
|
|
963
|
-
urlField: string;
|
|
1087
|
+
set urlField(value: string);
|
|
1088
|
+
get urlField(): string;
|
|
964
1089
|
/**
|
|
965
1090
|
* Defines the `icon` field of the items.
|
|
966
1091
|
*/
|
|
967
|
-
iconField: string | string[];
|
|
1092
|
+
set iconField(value: string | string[]);
|
|
1093
|
+
get iconField(): string | string[];
|
|
968
1094
|
/**
|
|
969
1095
|
* Defines the `svgIcon` field of the items.
|
|
970
1096
|
*/
|
|
971
|
-
svgIconField: string | string[];
|
|
1097
|
+
set svgIconField(value: string | string[]);
|
|
1098
|
+
get svgIconField(): string | string[];
|
|
972
1099
|
/**
|
|
973
1100
|
* Defines the `disabled` field of the items.
|
|
974
1101
|
*/
|
|
975
|
-
disabledField: string;
|
|
1102
|
+
set disabledField(value: string);
|
|
1103
|
+
get disabledField(): string;
|
|
976
1104
|
/**
|
|
977
1105
|
* Defines the `cssClass` field of the items.
|
|
978
1106
|
*/
|
|
979
|
-
cssClassField: string;
|
|
1107
|
+
set cssClassField(value: string);
|
|
1108
|
+
get cssClassField(): string;
|
|
980
1109
|
/**
|
|
981
1110
|
* Defines the `cssStyle` field of the items.
|
|
982
1111
|
*/
|
|
983
|
-
cssStyleField: string;
|
|
1112
|
+
set cssStyleField(value: string);
|
|
1113
|
+
get cssStyleField(): string;
|
|
984
1114
|
/**
|
|
985
1115
|
* Defines the `separator` field of the items.
|
|
986
1116
|
*/
|
|
987
|
-
separatorField: string;
|
|
1117
|
+
set separatorField(value: string);
|
|
1118
|
+
get separatorField(): string;
|
|
988
1119
|
/**
|
|
989
1120
|
* Defines the `id` field of the items.
|
|
990
1121
|
*/
|
|
991
|
-
idField: string;
|
|
1122
|
+
set idField(value: string);
|
|
1123
|
+
get idField(): string;
|
|
992
1124
|
/**
|
|
993
1125
|
* Defines the parent `id` field of the items.
|
|
994
1126
|
*/
|
|
995
|
-
parentIdField: string;
|
|
1127
|
+
set parentIdField(value: string);
|
|
1128
|
+
get parentIdField(): string;
|
|
1129
|
+
private _textField;
|
|
1130
|
+
private _urlField;
|
|
1131
|
+
private _iconField;
|
|
1132
|
+
private _svgIconField;
|
|
1133
|
+
private _disabledField;
|
|
1134
|
+
private _cssClassField;
|
|
1135
|
+
private _cssStyleField;
|
|
1136
|
+
private _separatorField;
|
|
1137
|
+
private _idField;
|
|
1138
|
+
private _parentIdField;
|
|
996
1139
|
constructor(menu: MenuBase);
|
|
997
1140
|
protected mapItems(items: any[]): any[];
|
|
998
1141
|
protected createItem(dataItem: any): any;
|
|
@@ -1152,7 +1295,7 @@ declare class ContextMenuTargetContainerDirective {
|
|
|
1152
1295
|
* }
|
|
1153
1296
|
* ```
|
|
1154
1297
|
*/
|
|
1155
|
-
declare class ContextMenuComponent extends MenuBase implements OnInit,
|
|
1298
|
+
declare class ContextMenuComponent extends MenuBase implements OnInit, OnDestroy {
|
|
1156
1299
|
private popupService;
|
|
1157
1300
|
private service;
|
|
1158
1301
|
private ngZone;
|
|
@@ -1163,63 +1306,74 @@ declare class ContextMenuComponent extends MenuBase implements OnInit, OnChanges
|
|
|
1163
1306
|
*
|
|
1164
1307
|
* @default 'contextmenu'
|
|
1165
1308
|
*/
|
|
1166
|
-
showOn: string;
|
|
1309
|
+
set showOn(value: string);
|
|
1310
|
+
get showOn(): string;
|
|
1167
1311
|
/**
|
|
1168
1312
|
* Specifies the element for which the ContextMenu will open ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu/target#configuration)).
|
|
1169
1313
|
*/
|
|
1170
|
-
target: HTMLElement | ElementRef | ContextMenuTargetContainerDirective | string;
|
|
1314
|
+
set target(value: HTMLElement | ElementRef | ContextMenuTargetContainerDirective | string);
|
|
1315
|
+
get target(): HTMLElement | ElementRef | ContextMenuTargetContainerDirective | string;
|
|
1171
1316
|
/**
|
|
1172
1317
|
* Specifies a CSS selector which filters the elements in the target for which the ContextMenu will open
|
|
1173
1318
|
* ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu/target#changing-items-for-specific-targets)).
|
|
1174
1319
|
*/
|
|
1175
|
-
filter: string;
|
|
1320
|
+
set filter(value: string);
|
|
1321
|
+
get filter(): string;
|
|
1176
1322
|
/**
|
|
1177
1323
|
* Specifies if the ContextMenu will be aligned to the target or to the `filter` element (if specified).
|
|
1178
1324
|
*
|
|
1179
1325
|
* @default false
|
|
1180
1326
|
*/
|
|
1181
|
-
alignToAnchor: boolean;
|
|
1327
|
+
set alignToAnchor(value: boolean);
|
|
1328
|
+
get alignToAnchor(): boolean;
|
|
1182
1329
|
/**
|
|
1183
1330
|
* Specifies if the Menu will be vertically rendered ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu/orientation)).
|
|
1184
1331
|
*
|
|
1185
1332
|
* @default true
|
|
1186
1333
|
*/
|
|
1187
|
-
vertical: boolean;
|
|
1334
|
+
set vertical(value: boolean);
|
|
1335
|
+
get vertical(): boolean;
|
|
1188
1336
|
/**
|
|
1189
1337
|
* Specifies the popup animation.
|
|
1190
1338
|
*
|
|
1191
1339
|
* @default true
|
|
1192
1340
|
*/
|
|
1193
|
-
popupAnimate: boolean | PopupAnimation;
|
|
1341
|
+
set popupAnimate(value: boolean | PopupAnimation);
|
|
1342
|
+
get popupAnimate(): boolean | PopupAnimation;
|
|
1194
1343
|
/**
|
|
1195
1344
|
* Specifies the pivot point of the popup.
|
|
1196
1345
|
*
|
|
1197
1346
|
* @default { horizontal: 'left', vertical: 'top' }
|
|
1198
1347
|
*/
|
|
1199
|
-
popupAlign: Align;
|
|
1348
|
+
set popupAlign(value: Align);
|
|
1349
|
+
get popupAlign(): Align;
|
|
1200
1350
|
/**
|
|
1201
1351
|
* Specifies the pivot point of the anchor. Applicable if `alignToAnchor` is `true`.
|
|
1202
1352
|
*
|
|
1203
1353
|
* @default { horizontal: 'left', vertical: 'bottom' }
|
|
1204
1354
|
*/
|
|
1205
|
-
anchorAlign: Align;
|
|
1355
|
+
set anchorAlign(value: Align);
|
|
1356
|
+
get anchorAlign(): Align;
|
|
1206
1357
|
/**
|
|
1207
1358
|
* Configures the collision behavior of the popup.
|
|
1208
1359
|
*
|
|
1209
1360
|
* @default { horizontal: 'fit', vertical: 'flip' }
|
|
1210
1361
|
*/
|
|
1211
|
-
collision: Collision;
|
|
1362
|
+
set collision(value: Collision);
|
|
1363
|
+
get collision(): Collision;
|
|
1212
1364
|
/**
|
|
1213
1365
|
* Defines the container to which the popups will be appended.
|
|
1214
1366
|
*/
|
|
1215
|
-
appendTo: ViewContainerRef;
|
|
1367
|
+
set appendTo(value: ViewContainerRef);
|
|
1368
|
+
get appendTo(): ViewContainerRef;
|
|
1216
1369
|
/**
|
|
1217
1370
|
* Sets the value for the [`aria-label`](https://www.w3.org/TR/wai-aria-1.1/#aria-label) attribute of the ContextMenu.
|
|
1218
1371
|
*
|
|
1219
1372
|
* @remarks
|
|
1220
1373
|
* This property is related to accessibility.
|
|
1221
1374
|
*/
|
|
1222
|
-
ariaLabel: string;
|
|
1375
|
+
set ariaLabel(value: string);
|
|
1376
|
+
get ariaLabel(): string;
|
|
1223
1377
|
/**
|
|
1224
1378
|
* Fires when the Menu is opened ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu/events)).
|
|
1225
1379
|
*/
|
|
@@ -1256,6 +1410,17 @@ declare class ContextMenuComponent extends MenuBase implements OnInit, OnChanges
|
|
|
1256
1410
|
private currentTarget;
|
|
1257
1411
|
private directiveTarget;
|
|
1258
1412
|
private activeTarget;
|
|
1413
|
+
private _showOn;
|
|
1414
|
+
private _target;
|
|
1415
|
+
private _filter;
|
|
1416
|
+
private _alignToAnchor;
|
|
1417
|
+
private _popupAnimate;
|
|
1418
|
+
private _popupAlign;
|
|
1419
|
+
private _anchorAlign;
|
|
1420
|
+
private _collision;
|
|
1421
|
+
private _appendTo;
|
|
1422
|
+
private _ariaLabel;
|
|
1423
|
+
protected _vertical: i0.WritableSignal<boolean>;
|
|
1259
1424
|
constructor(popupService: PopupService, service: ContextMenuService, ngZone: NgZone, renderer: Renderer2);
|
|
1260
1425
|
/**
|
|
1261
1426
|
* Hides the ContextMenu.
|
|
@@ -1267,7 +1432,6 @@ declare class ContextMenuComponent extends MenuBase implements OnInit, OnChanges
|
|
|
1267
1432
|
* @param target - The offset or the target element for which the ContextMenu will open.
|
|
1268
1433
|
*/
|
|
1269
1434
|
show(target: Offset | HTMLElement | ElementRef): void;
|
|
1270
|
-
ngOnChanges(changes: any): void;
|
|
1271
1435
|
ngOnInit(): void;
|
|
1272
1436
|
ngOnDestroy(): void;
|
|
1273
1437
|
/**
|
|
@@ -1327,7 +1491,8 @@ declare class ContextMenuTargetDirective implements OnDestroy {
|
|
|
1327
1491
|
/**
|
|
1328
1492
|
* Specifies the data which is associated with the target.
|
|
1329
1493
|
*/
|
|
1330
|
-
data: any;
|
|
1494
|
+
set data(value: any);
|
|
1495
|
+
get data(): any;
|
|
1331
1496
|
/**
|
|
1332
1497
|
* Specifies the target DOM element.
|
|
1333
1498
|
*/
|
|
@@ -1336,6 +1501,7 @@ declare class ContextMenuTargetDirective implements OnDestroy {
|
|
|
1336
1501
|
* @hidden
|
|
1337
1502
|
*/
|
|
1338
1503
|
hostClass: boolean;
|
|
1504
|
+
private _data;
|
|
1339
1505
|
constructor(elementRef: ElementRef, targetService: ContextMenuTargetService);
|
|
1340
1506
|
ngOnDestroy(): void;
|
|
1341
1507
|
static ɵfac: i0.ɵɵFactoryDeclaration<ContextMenuTargetDirective, never>;
|