@progress/kendo-angular-menu 25.0.0-develop.1 → 25.0.0-develop.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/progress-kendo-angular-menu.mjs +670 -157
- package/index.d.ts +266 -99
- 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,7 +910,9 @@ 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
917
|
role: string;
|
|
817
918
|
tabindex: string;
|
|
@@ -839,7 +940,9 @@ declare class ExpandArrowComponent implements OnInit {
|
|
|
839
940
|
/**
|
|
840
941
|
* Specifies the index of the Menu item. The input is mandatory.
|
|
841
942
|
*/
|
|
842
|
-
index: string;
|
|
943
|
+
set index(value: string);
|
|
944
|
+
get index(): string;
|
|
945
|
+
private _index;
|
|
843
946
|
hostClasses: boolean;
|
|
844
947
|
ariaHidden: string;
|
|
845
948
|
private item;
|
|
@@ -860,12 +963,13 @@ declare class ExpandArrowComponent implements OnInit {
|
|
|
860
963
|
/**
|
|
861
964
|
* @hidden
|
|
862
965
|
*/
|
|
863
|
-
declare abstract class BindingDirectiveBase
|
|
966
|
+
declare abstract class BindingDirectiveBase {
|
|
864
967
|
protected menu: MenuBase;
|
|
865
|
-
data: any[];
|
|
968
|
+
set data(value: any[]);
|
|
969
|
+
get data(): any[];
|
|
970
|
+
protected _data: i0.WritableSignal<any[]>;
|
|
866
971
|
protected fields: any[];
|
|
867
972
|
constructor(menu: MenuBase);
|
|
868
|
-
ngOnChanges(): void;
|
|
869
973
|
/**
|
|
870
974
|
* Rebinds the Menu items.
|
|
871
975
|
*/
|
|
@@ -891,43 +995,62 @@ declare class HierarchyBindingDirective extends BindingDirectiveBase {
|
|
|
891
995
|
/**
|
|
892
996
|
* Specifies the array of data which will be used to populate the Menu.
|
|
893
997
|
*/
|
|
894
|
-
data: any[];
|
|
998
|
+
set data(value: any[]);
|
|
999
|
+
get data(): any[];
|
|
895
1000
|
/**
|
|
896
1001
|
* Defines the `text` field (or fields) of an item.
|
|
897
1002
|
*/
|
|
898
|
-
textField: string | string[];
|
|
1003
|
+
set textField(value: string | string[]);
|
|
1004
|
+
get textField(): string | string[];
|
|
899
1005
|
/**
|
|
900
1006
|
* Defines the `url` field (or fields) of an item.
|
|
901
1007
|
*/
|
|
902
|
-
urlField: string | string[];
|
|
1008
|
+
set urlField(value: string | string[]);
|
|
1009
|
+
get urlField(): string | string[];
|
|
903
1010
|
/**
|
|
904
1011
|
* Defines the `icon` field (or fields) of an item.
|
|
905
1012
|
*/
|
|
906
|
-
iconField: string | string[];
|
|
1013
|
+
set iconField(value: string | string[]);
|
|
1014
|
+
get iconField(): string | string[];
|
|
907
1015
|
/**
|
|
908
1016
|
* Defines the `svgIcon` field of the items.
|
|
909
1017
|
*/
|
|
910
|
-
svgIconField: string | string[];
|
|
1018
|
+
set svgIconField(value: string | string[]);
|
|
1019
|
+
get svgIconField(): string | string[];
|
|
911
1020
|
/**
|
|
912
1021
|
* Defines the `disabled` field (or fields) of an item.
|
|
913
1022
|
*/
|
|
914
|
-
disabledField: string | string[];
|
|
1023
|
+
set disabledField(value: string | string[]);
|
|
1024
|
+
get disabledField(): string | string[];
|
|
915
1025
|
/**
|
|
916
1026
|
* Defines the `cssClass` field (or fields) of an item.
|
|
917
1027
|
*/
|
|
918
|
-
cssClassField: string | string[];
|
|
1028
|
+
set cssClassField(value: string | string[]);
|
|
1029
|
+
get cssClassField(): string | string[];
|
|
919
1030
|
/**
|
|
920
1031
|
* Defines the `cssStyle` field (or fields) of an item.
|
|
921
1032
|
*/
|
|
922
|
-
cssStyleField: string | string[];
|
|
1033
|
+
set cssStyleField(value: string | string[]);
|
|
1034
|
+
get cssStyleField(): string | string[];
|
|
923
1035
|
/**
|
|
924
1036
|
* Defines the `separator` field (or fields) of the items.
|
|
925
1037
|
*/
|
|
926
|
-
separatorField: string | string[];
|
|
1038
|
+
set separatorField(value: string | string[]);
|
|
1039
|
+
get separatorField(): string | string[];
|
|
927
1040
|
/**
|
|
928
1041
|
* Defines the `children` field (or fields) of the items.
|
|
929
1042
|
*/
|
|
930
|
-
childrenField: string | string[];
|
|
1043
|
+
set childrenField(value: string | string[]);
|
|
1044
|
+
get childrenField(): string | string[];
|
|
1045
|
+
private _textField;
|
|
1046
|
+
private _urlField;
|
|
1047
|
+
private _iconField;
|
|
1048
|
+
private _svgIconField;
|
|
1049
|
+
private _disabledField;
|
|
1050
|
+
private _cssClassField;
|
|
1051
|
+
private _cssStyleField;
|
|
1052
|
+
private _separatorField;
|
|
1053
|
+
private _childrenField;
|
|
931
1054
|
constructor(menu: MenuBase);
|
|
932
1055
|
protected mapItems(items: any[], level?: number): any[];
|
|
933
1056
|
protected createItem(item: any, level: number): any;
|
|
@@ -952,47 +1075,68 @@ declare class FlatBindingDirective extends BindingDirectiveBase {
|
|
|
952
1075
|
/**
|
|
953
1076
|
* Specifies the array of data which will be used to populate the Menu.
|
|
954
1077
|
*/
|
|
955
|
-
data: any[];
|
|
1078
|
+
set data(value: any[]);
|
|
1079
|
+
get data(): any[];
|
|
956
1080
|
/**
|
|
957
1081
|
* Defines the `text` field of the items.
|
|
958
1082
|
*/
|
|
959
|
-
textField: string;
|
|
1083
|
+
set textField(value: string);
|
|
1084
|
+
get textField(): string;
|
|
960
1085
|
/**
|
|
961
1086
|
* Defines the `url` field of the items.
|
|
962
1087
|
*/
|
|
963
|
-
urlField: string;
|
|
1088
|
+
set urlField(value: string);
|
|
1089
|
+
get urlField(): string;
|
|
964
1090
|
/**
|
|
965
1091
|
* Defines the `icon` field of the items.
|
|
966
1092
|
*/
|
|
967
|
-
iconField: string | string[];
|
|
1093
|
+
set iconField(value: string | string[]);
|
|
1094
|
+
get iconField(): string | string[];
|
|
968
1095
|
/**
|
|
969
1096
|
* Defines the `svgIcon` field of the items.
|
|
970
1097
|
*/
|
|
971
|
-
svgIconField: string | string[];
|
|
1098
|
+
set svgIconField(value: string | string[]);
|
|
1099
|
+
get svgIconField(): string | string[];
|
|
972
1100
|
/**
|
|
973
1101
|
* Defines the `disabled` field of the items.
|
|
974
1102
|
*/
|
|
975
|
-
disabledField: string;
|
|
1103
|
+
set disabledField(value: string);
|
|
1104
|
+
get disabledField(): string;
|
|
976
1105
|
/**
|
|
977
1106
|
* Defines the `cssClass` field of the items.
|
|
978
1107
|
*/
|
|
979
|
-
cssClassField: string;
|
|
1108
|
+
set cssClassField(value: string);
|
|
1109
|
+
get cssClassField(): string;
|
|
980
1110
|
/**
|
|
981
1111
|
* Defines the `cssStyle` field of the items.
|
|
982
1112
|
*/
|
|
983
|
-
cssStyleField: string;
|
|
1113
|
+
set cssStyleField(value: string);
|
|
1114
|
+
get cssStyleField(): string;
|
|
984
1115
|
/**
|
|
985
1116
|
* Defines the `separator` field of the items.
|
|
986
1117
|
*/
|
|
987
|
-
separatorField: string;
|
|
1118
|
+
set separatorField(value: string);
|
|
1119
|
+
get separatorField(): string;
|
|
988
1120
|
/**
|
|
989
1121
|
* Defines the `id` field of the items.
|
|
990
1122
|
*/
|
|
991
|
-
idField: string;
|
|
1123
|
+
set idField(value: string);
|
|
1124
|
+
get idField(): string;
|
|
992
1125
|
/**
|
|
993
1126
|
* Defines the parent `id` field of the items.
|
|
994
1127
|
*/
|
|
995
|
-
parentIdField: string;
|
|
1128
|
+
set parentIdField(value: string);
|
|
1129
|
+
get parentIdField(): string;
|
|
1130
|
+
private _textField;
|
|
1131
|
+
private _urlField;
|
|
1132
|
+
private _iconField;
|
|
1133
|
+
private _svgIconField;
|
|
1134
|
+
private _disabledField;
|
|
1135
|
+
private _cssClassField;
|
|
1136
|
+
private _cssStyleField;
|
|
1137
|
+
private _separatorField;
|
|
1138
|
+
private _idField;
|
|
1139
|
+
private _parentIdField;
|
|
996
1140
|
constructor(menu: MenuBase);
|
|
997
1141
|
protected mapItems(items: any[]): any[];
|
|
998
1142
|
protected createItem(dataItem: any): any;
|
|
@@ -1152,7 +1296,7 @@ declare class ContextMenuTargetContainerDirective {
|
|
|
1152
1296
|
* }
|
|
1153
1297
|
* ```
|
|
1154
1298
|
*/
|
|
1155
|
-
declare class ContextMenuComponent extends MenuBase implements OnInit,
|
|
1299
|
+
declare class ContextMenuComponent extends MenuBase implements OnInit, OnDestroy {
|
|
1156
1300
|
private popupService;
|
|
1157
1301
|
private service;
|
|
1158
1302
|
private ngZone;
|
|
@@ -1163,63 +1307,74 @@ declare class ContextMenuComponent extends MenuBase implements OnInit, OnChanges
|
|
|
1163
1307
|
*
|
|
1164
1308
|
* @default 'contextmenu'
|
|
1165
1309
|
*/
|
|
1166
|
-
showOn: string;
|
|
1310
|
+
set showOn(value: string);
|
|
1311
|
+
get showOn(): string;
|
|
1167
1312
|
/**
|
|
1168
1313
|
* Specifies the element for which the ContextMenu will open ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu/target#configuration)).
|
|
1169
1314
|
*/
|
|
1170
|
-
target: HTMLElement | ElementRef | ContextMenuTargetContainerDirective | string;
|
|
1315
|
+
set target(value: HTMLElement | ElementRef | ContextMenuTargetContainerDirective | string);
|
|
1316
|
+
get target(): HTMLElement | ElementRef | ContextMenuTargetContainerDirective | string;
|
|
1171
1317
|
/**
|
|
1172
1318
|
* Specifies a CSS selector which filters the elements in the target for which the ContextMenu will open
|
|
1173
1319
|
* ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu/target#changing-items-for-specific-targets)).
|
|
1174
1320
|
*/
|
|
1175
|
-
filter: string;
|
|
1321
|
+
set filter(value: string);
|
|
1322
|
+
get filter(): string;
|
|
1176
1323
|
/**
|
|
1177
1324
|
* Specifies if the ContextMenu will be aligned to the target or to the `filter` element (if specified).
|
|
1178
1325
|
*
|
|
1179
1326
|
* @default false
|
|
1180
1327
|
*/
|
|
1181
|
-
alignToAnchor: boolean;
|
|
1328
|
+
set alignToAnchor(value: boolean);
|
|
1329
|
+
get alignToAnchor(): boolean;
|
|
1182
1330
|
/**
|
|
1183
1331
|
* Specifies if the Menu will be vertically rendered ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu/orientation)).
|
|
1184
1332
|
*
|
|
1185
1333
|
* @default true
|
|
1186
1334
|
*/
|
|
1187
|
-
vertical: boolean;
|
|
1335
|
+
set vertical(value: boolean);
|
|
1336
|
+
get vertical(): boolean;
|
|
1188
1337
|
/**
|
|
1189
1338
|
* Specifies the popup animation.
|
|
1190
1339
|
*
|
|
1191
1340
|
* @default true
|
|
1192
1341
|
*/
|
|
1193
|
-
popupAnimate: boolean | PopupAnimation;
|
|
1342
|
+
set popupAnimate(value: boolean | PopupAnimation);
|
|
1343
|
+
get popupAnimate(): boolean | PopupAnimation;
|
|
1194
1344
|
/**
|
|
1195
1345
|
* Specifies the pivot point of the popup.
|
|
1196
1346
|
*
|
|
1197
1347
|
* @default { horizontal: 'left', vertical: 'top' }
|
|
1198
1348
|
*/
|
|
1199
|
-
popupAlign: Align;
|
|
1349
|
+
set popupAlign(value: Align);
|
|
1350
|
+
get popupAlign(): Align;
|
|
1200
1351
|
/**
|
|
1201
1352
|
* Specifies the pivot point of the anchor. Applicable if `alignToAnchor` is `true`.
|
|
1202
1353
|
*
|
|
1203
1354
|
* @default { horizontal: 'left', vertical: 'bottom' }
|
|
1204
1355
|
*/
|
|
1205
|
-
anchorAlign: Align;
|
|
1356
|
+
set anchorAlign(value: Align);
|
|
1357
|
+
get anchorAlign(): Align;
|
|
1206
1358
|
/**
|
|
1207
1359
|
* Configures the collision behavior of the popup.
|
|
1208
1360
|
*
|
|
1209
1361
|
* @default { horizontal: 'fit', vertical: 'flip' }
|
|
1210
1362
|
*/
|
|
1211
|
-
collision: Collision;
|
|
1363
|
+
set collision(value: Collision);
|
|
1364
|
+
get collision(): Collision;
|
|
1212
1365
|
/**
|
|
1213
1366
|
* Defines the container to which the popups will be appended.
|
|
1214
1367
|
*/
|
|
1215
|
-
appendTo: ViewContainerRef;
|
|
1368
|
+
set appendTo(value: ViewContainerRef);
|
|
1369
|
+
get appendTo(): ViewContainerRef;
|
|
1216
1370
|
/**
|
|
1217
1371
|
* Sets the value for the [`aria-label`](https://www.w3.org/TR/wai-aria-1.1/#aria-label) attribute of the ContextMenu.
|
|
1218
1372
|
*
|
|
1219
1373
|
* @remarks
|
|
1220
1374
|
* This property is related to accessibility.
|
|
1221
1375
|
*/
|
|
1222
|
-
ariaLabel: string;
|
|
1376
|
+
set ariaLabel(value: string);
|
|
1377
|
+
get ariaLabel(): string;
|
|
1223
1378
|
/**
|
|
1224
1379
|
* Fires when the Menu is opened ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu/events)).
|
|
1225
1380
|
*/
|
|
@@ -1256,6 +1411,17 @@ declare class ContextMenuComponent extends MenuBase implements OnInit, OnChanges
|
|
|
1256
1411
|
private currentTarget;
|
|
1257
1412
|
private directiveTarget;
|
|
1258
1413
|
private activeTarget;
|
|
1414
|
+
private _showOn;
|
|
1415
|
+
private _target;
|
|
1416
|
+
private _filter;
|
|
1417
|
+
private _alignToAnchor;
|
|
1418
|
+
private _popupAnimate;
|
|
1419
|
+
private _popupAlign;
|
|
1420
|
+
private _anchorAlign;
|
|
1421
|
+
private _collision;
|
|
1422
|
+
private _appendTo;
|
|
1423
|
+
private _ariaLabel;
|
|
1424
|
+
protected _vertical: i0.WritableSignal<boolean>;
|
|
1259
1425
|
constructor(popupService: PopupService, service: ContextMenuService, ngZone: NgZone, renderer: Renderer2);
|
|
1260
1426
|
/**
|
|
1261
1427
|
* Hides the ContextMenu.
|
|
@@ -1267,7 +1433,6 @@ declare class ContextMenuComponent extends MenuBase implements OnInit, OnChanges
|
|
|
1267
1433
|
* @param target - The offset or the target element for which the ContextMenu will open.
|
|
1268
1434
|
*/
|
|
1269
1435
|
show(target: Offset | HTMLElement | ElementRef): void;
|
|
1270
|
-
ngOnChanges(changes: any): void;
|
|
1271
1436
|
ngOnInit(): void;
|
|
1272
1437
|
ngOnDestroy(): void;
|
|
1273
1438
|
/**
|
|
@@ -1327,7 +1492,8 @@ declare class ContextMenuTargetDirective implements OnDestroy {
|
|
|
1327
1492
|
/**
|
|
1328
1493
|
* Specifies the data which is associated with the target.
|
|
1329
1494
|
*/
|
|
1330
|
-
data: any;
|
|
1495
|
+
set data(value: any);
|
|
1496
|
+
get data(): any;
|
|
1331
1497
|
/**
|
|
1332
1498
|
* Specifies the target DOM element.
|
|
1333
1499
|
*/
|
|
@@ -1336,6 +1502,7 @@ declare class ContextMenuTargetDirective implements OnDestroy {
|
|
|
1336
1502
|
* @hidden
|
|
1337
1503
|
*/
|
|
1338
1504
|
hostClass: boolean;
|
|
1505
|
+
private _data;
|
|
1339
1506
|
constructor(elementRef: ElementRef, targetService: ContextMenuTargetService);
|
|
1340
1507
|
ngOnDestroy(): void;
|
|
1341
1508
|
static ɵfac: i0.ɵɵFactoryDeclaration<ContextMenuTargetDirective, never>;
|