@progress/kendo-angular-toolbar 25.3.0-develop.7 → 25.3.0-develop.9
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-toolbar.mjs +1209 -218
- package/index.d.ts +391 -40
- package/package-metadata.mjs +2 -2
- package/package.json +9 -9
package/index.d.ts
CHANGED
|
@@ -3,8 +3,9 @@
|
|
|
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 { TemplateRef, ElementRef, EventEmitter, OnInit, OnDestroy, Renderer2, ViewContainerRef, NgZone, QueryList, ChangeDetectorRef, SimpleChanges, AfterViewInit } from '@angular/core';
|
|
7
|
-
import { Align, PopupRef, PopupService } from '@progress/kendo-angular-popup';
|
|
6
|
+
import { TemplateRef, ElementRef, EventEmitter, OnInit, OnDestroy, Renderer2, ViewContainerRef, NgZone, QueryList, ChangeDetectorRef, SimpleChanges, AfterViewInit, Injector } from '@angular/core';
|
|
7
|
+
import { Align, PopupRef, PopupService, Collision, Margin, Offset } from '@progress/kendo-angular-popup';
|
|
8
|
+
export { Align, Margin, Offset } from '@progress/kendo-angular-popup';
|
|
8
9
|
import { ResizeSensorComponent } from '@progress/kendo-angular-common';
|
|
9
10
|
import { LocalizationService, ComponentMessages } from '@progress/kendo-angular-l10n';
|
|
10
11
|
import { LicenseMessage } from '@progress/kendo-licensing';
|
|
@@ -174,17 +175,50 @@ declare class ToolBarRendererComponent implements OnInit, OnDestroy {
|
|
|
174
175
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ToolBarRendererComponent, "[kendoToolbarRenderer]", never, { "tool": { "alias": "tool"; "required": false; }; "location": { "alias": "location"; "required": false; }; "resizable": { "alias": "resizable"; "required": false; }; }, { "rendererClick": "rendererClick"; }, never, never, true, never>;
|
|
175
176
|
}
|
|
176
177
|
|
|
178
|
+
/**
|
|
179
|
+
* @hidden
|
|
180
|
+
*/
|
|
181
|
+
type ScrollButtonActiveStateChange = {
|
|
182
|
+
buttonType: string;
|
|
183
|
+
active: boolean;
|
|
184
|
+
};
|
|
185
|
+
/**
|
|
186
|
+
* @hidden
|
|
187
|
+
*/
|
|
188
|
+
declare class ScrollService {
|
|
189
|
+
private ngZone;
|
|
190
|
+
private localization;
|
|
191
|
+
owner: ToolBarComponent;
|
|
192
|
+
position: number;
|
|
193
|
+
scrollButtonActiveStateChange: Subject<ScrollButtonActiveStateChange>;
|
|
194
|
+
get scrollElement(): HTMLElement;
|
|
195
|
+
get scrollContainerOverflowSize(): number;
|
|
196
|
+
get toolsOverflow(): boolean;
|
|
197
|
+
constructor(ngZone: NgZone, localization: LocalizationService);
|
|
198
|
+
toggleScrollButtonsState(): void;
|
|
199
|
+
onScroll(e: Event): void;
|
|
200
|
+
scrollTools(direction: string): void;
|
|
201
|
+
updateScrollPosition(element: HTMLElement): void;
|
|
202
|
+
scrollIntoView(element: Element): void;
|
|
203
|
+
calculateListPosition(direction: string, scrollSpeed: number): void;
|
|
204
|
+
private toggleButtonActiveState;
|
|
205
|
+
private isDisabled;
|
|
206
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollService, never>;
|
|
207
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ScrollService>;
|
|
208
|
+
}
|
|
209
|
+
|
|
177
210
|
/**
|
|
178
211
|
* @hidden
|
|
179
212
|
*/
|
|
180
213
|
declare class NavigationService {
|
|
181
214
|
private zone;
|
|
215
|
+
private scrollService;
|
|
182
216
|
overflowButton: ElementRef<HTMLButtonElement>;
|
|
183
217
|
private focused;
|
|
184
218
|
private renderedTools;
|
|
185
219
|
private isPopupFocused;
|
|
186
220
|
private isOverflowButtonFocused;
|
|
187
|
-
constructor(zone: NgZone);
|
|
221
|
+
constructor(zone: NgZone, scrollService: ScrollService);
|
|
188
222
|
setRenderedTools(rts: ToolBarRendererComponent[]): void;
|
|
189
223
|
click({ context, event: ev }: RendererClickPayload): void;
|
|
190
224
|
moveFocusToToolBar(): void;
|
|
@@ -354,37 +388,6 @@ interface ToolbarOverflowSettings {
|
|
|
354
388
|
nextSVGButtonIcon?: SVGIcon;
|
|
355
389
|
}
|
|
356
390
|
|
|
357
|
-
/**
|
|
358
|
-
* @hidden
|
|
359
|
-
*/
|
|
360
|
-
type ScrollButtonActiveStateChange = {
|
|
361
|
-
buttonType: string;
|
|
362
|
-
active: boolean;
|
|
363
|
-
};
|
|
364
|
-
/**
|
|
365
|
-
* @hidden
|
|
366
|
-
*/
|
|
367
|
-
declare class ScrollService {
|
|
368
|
-
private ngZone;
|
|
369
|
-
private localization;
|
|
370
|
-
owner: ToolBarComponent;
|
|
371
|
-
position: number;
|
|
372
|
-
scrollButtonActiveStateChange: Subject<ScrollButtonActiveStateChange>;
|
|
373
|
-
get scrollElement(): HTMLElement;
|
|
374
|
-
get scrollContainerOverflowSize(): number;
|
|
375
|
-
get toolsOverflow(): boolean;
|
|
376
|
-
constructor(ngZone: NgZone, localization: LocalizationService);
|
|
377
|
-
toggleScrollButtonsState(): void;
|
|
378
|
-
onScroll(e: Event): void;
|
|
379
|
-
scrollTools(direction: string): void;
|
|
380
|
-
updateScrollPosition(element: HTMLElement): void;
|
|
381
|
-
calculateListPosition(direction: string, scrollSpeed: number): void;
|
|
382
|
-
private toggleButtonActiveState;
|
|
383
|
-
private isDisabled;
|
|
384
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollService, never>;
|
|
385
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ScrollService>;
|
|
386
|
-
}
|
|
387
|
-
|
|
388
391
|
/**
|
|
389
392
|
* Sets the visibility for the ToolBar tool text or icon.
|
|
390
393
|
*
|
|
@@ -461,6 +464,10 @@ declare class ToolBarComponent {
|
|
|
461
464
|
* @hidden
|
|
462
465
|
*/
|
|
463
466
|
get isScrollMode(): boolean;
|
|
467
|
+
/**
|
|
468
|
+
* @hidden
|
|
469
|
+
*/
|
|
470
|
+
scrollButtonClasses: string[];
|
|
464
471
|
/**
|
|
465
472
|
* @hidden
|
|
466
473
|
*/
|
|
@@ -521,7 +528,15 @@ declare class ToolBarComponent {
|
|
|
521
528
|
* Emits when the overflow popup of the ToolBar closes.
|
|
522
529
|
*/
|
|
523
530
|
close: EventEmitter<PreventableEvent>;
|
|
524
|
-
|
|
531
|
+
contentTools: QueryList<ToolBarToolComponent>;
|
|
532
|
+
/**
|
|
533
|
+
* @hidden
|
|
534
|
+
*/
|
|
535
|
+
toolsSource: QueryList<ToolBarToolComponent>;
|
|
536
|
+
/**
|
|
537
|
+
* @hidden
|
|
538
|
+
*/
|
|
539
|
+
get allTools(): QueryList<ToolBarToolComponent>;
|
|
525
540
|
overflowButton: ElementRef;
|
|
526
541
|
popupTemplate: TemplateRef<any>;
|
|
527
542
|
popupSectionTemplate: TemplateRef<any>;
|
|
@@ -679,6 +694,7 @@ declare class ToolBarComponent {
|
|
|
679
694
|
private showFirstHiddenTool;
|
|
680
695
|
private setPopupContentDimensions;
|
|
681
696
|
private destroyPopup;
|
|
697
|
+
private updateScrollButtonClasses;
|
|
682
698
|
private handleClasses;
|
|
683
699
|
private normalizePopupClasses;
|
|
684
700
|
private setScrollableOverlayClasses;
|
|
@@ -686,7 +702,7 @@ declare class ToolBarComponent {
|
|
|
686
702
|
private removeSubscriptions;
|
|
687
703
|
private normalizeDisplayValue;
|
|
688
704
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToolBarComponent, never>;
|
|
689
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ToolBarComponent, "kendo-toolbar", ["kendoToolBar"], { "overflow": { "alias": "overflow"; "required": false; }; "resizable": { "alias": "resizable"; "required": false; }; "popupSettings": { "alias": "popupSettings"; "required": false; }; "fillMode": { "alias": "fillMode"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "size": { "alias": "size"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "showText": { "alias": "showText"; "required": false; }; }, { "open": "open"; "close": "close"; }, ["
|
|
705
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToolBarComponent, "kendo-toolbar", ["kendoToolBar"], { "overflow": { "alias": "overflow"; "required": false; }; "resizable": { "alias": "resizable"; "required": false; }; "popupSettings": { "alias": "popupSettings"; "required": false; }; "fillMode": { "alias": "fillMode"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "size": { "alias": "size"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "showText": { "alias": "showText"; "required": false; }; "toolsSource": { "alias": "toolsSource"; "required": false; }; }, { "open": "open"; "close": "close"; }, ["contentTools"], never, true, never>;
|
|
690
706
|
}
|
|
691
707
|
|
|
692
708
|
/**
|
|
@@ -849,6 +865,10 @@ declare class ToolBarButtonComponent extends ToolBarToolComponent {
|
|
|
849
865
|
private _showText;
|
|
850
866
|
private _showIcon;
|
|
851
867
|
private _text;
|
|
868
|
+
private _icon;
|
|
869
|
+
private _iconClass;
|
|
870
|
+
private _svgIcon;
|
|
871
|
+
private _imageUrl;
|
|
852
872
|
private propertyChangeSub;
|
|
853
873
|
constructor(element: ElementRef, zone: NgZone, host: ToolBarComponent);
|
|
854
874
|
ngOnInit(): void;
|
|
@@ -883,6 +903,7 @@ declare class ToolBarButtonComponent extends ToolBarToolComponent {
|
|
|
883
903
|
*/
|
|
884
904
|
getButton(): HTMLElement;
|
|
885
905
|
private setTextDisplayMode;
|
|
906
|
+
private setIconDisplayMode;
|
|
886
907
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToolBarButtonComponent, never>;
|
|
887
908
|
static ɵcmp: i0.ɵɵComponentDeclaration<ToolBarButtonComponent, "kendo-toolbar-button", ["kendoToolBarButton"], { "showText": { "alias": "showText"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "text": { "alias": "text"; "required": false; }; "style": { "alias": "style"; "required": false; }; "className": { "alias": "className"; "required": false; }; "title": { "alias": "title"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "toggleable": { "alias": "toggleable"; "required": false; }; "look": { "alias": "look"; "required": false; }; "togglable": { "alias": "togglable"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "fillMode": { "alias": "fillMode"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "themeColor": { "alias": "themeColor"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconClass": { "alias": "iconClass"; "required": false; }; "svgIcon": { "alias": "svgIcon"; "required": false; }; "imageUrl": { "alias": "imageUrl"; "required": false; }; }, { "click": "click"; "pointerdown": "pointerdown"; "selectedChange": "selectedChange"; }, never, never, true, never>;
|
|
888
909
|
}
|
|
@@ -1140,6 +1161,10 @@ declare class ToolBarDropDownButtonComponent extends ToolBarToolComponent implem
|
|
|
1140
1161
|
private _showText;
|
|
1141
1162
|
private _showIcon;
|
|
1142
1163
|
private _text;
|
|
1164
|
+
private _icon;
|
|
1165
|
+
private _iconClass;
|
|
1166
|
+
private _svgIcon;
|
|
1167
|
+
private _imageUrl;
|
|
1143
1168
|
private propertyChangeSub;
|
|
1144
1169
|
private getNextKey;
|
|
1145
1170
|
private getPrevKey;
|
|
@@ -1177,6 +1202,7 @@ declare class ToolBarDropDownButtonComponent extends ToolBarToolComponent implem
|
|
|
1177
1202
|
handleClick(ev: any, item: any, index: number): void;
|
|
1178
1203
|
private focusButton;
|
|
1179
1204
|
private setTextDisplayMode;
|
|
1205
|
+
private setIconDisplayMode;
|
|
1180
1206
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToolBarDropDownButtonComponent, never>;
|
|
1181
1207
|
static ɵcmp: i0.ɵɵComponentDeclaration<ToolBarDropDownButtonComponent, "kendo-toolbar-dropdownbutton", ["kendoToolBarDropDownButton"], { "arrowIcon": { "alias": "arrowIcon"; "required": false; }; "title": { "alias": "title"; "required": false; }; "showText": { "alias": "showText"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "text": { "alias": "text"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "svgIcon": { "alias": "svgIcon"; "required": false; }; "iconClass": { "alias": "iconClass"; "required": false; }; "imageUrl": { "alias": "imageUrl"; "required": false; }; "popupSettings": { "alias": "popupSettings"; "required": false; }; "look": { "alias": "look"; "required": false; }; "primary": { "alias": "primary"; "required": false; }; "fillMode": { "alias": "fillMode"; "required": false; }; "themeColor": { "alias": "themeColor"; "required": false; }; "buttonClass": { "alias": "buttonClass"; "required": false; }; "textField": { "alias": "textField"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "itemClick": "itemClick"; "open": "open"; "close": "close"; }, never, never, true, never>;
|
|
1182
1208
|
}
|
|
@@ -1316,6 +1342,10 @@ declare class ToolBarSplitButtonComponent extends ToolBarToolComponent implement
|
|
|
1316
1342
|
private _showText;
|
|
1317
1343
|
private _showIcon;
|
|
1318
1344
|
private _text;
|
|
1345
|
+
private _icon;
|
|
1346
|
+
private _iconClass;
|
|
1347
|
+
private _svgIcon;
|
|
1348
|
+
private _imageUrl;
|
|
1319
1349
|
private propertyChangeSub;
|
|
1320
1350
|
private getNextKey;
|
|
1321
1351
|
private getPrevKey;
|
|
@@ -1358,6 +1388,7 @@ declare class ToolBarSplitButtonComponent extends ToolBarToolComponent implement
|
|
|
1358
1388
|
handleClick(ev: any, item: any, index: number): void;
|
|
1359
1389
|
private focusButton;
|
|
1360
1390
|
private setTextDisplayMode;
|
|
1391
|
+
private setIconDisplayMode;
|
|
1361
1392
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToolBarSplitButtonComponent, never>;
|
|
1362
1393
|
static ɵcmp: i0.ɵɵComponentDeclaration<ToolBarSplitButtonComponent, "kendo-toolbar-splitbutton", ["kendoToolBarSplitButton"], { "showText": { "alias": "showText"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "text": { "alias": "text"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "svgIcon": { "alias": "svgIcon"; "required": false; }; "iconClass": { "alias": "iconClass"; "required": false; }; "imageUrl": { "alias": "imageUrl"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "popupSettings": { "alias": "popupSettings"; "required": false; }; "fillMode": { "alias": "fillMode"; "required": false; }; "themeColor": { "alias": "themeColor"; "required": false; }; "look": { "alias": "look"; "required": false; }; "buttonClass": { "alias": "buttonClass"; "required": false; }; "arrowButtonClass": { "alias": "arrowButtonClass"; "required": false; }; "arrowButtonIcon": { "alias": "arrowButtonIcon"; "required": false; }; "arrowButtonSvgIcon": { "alias": "arrowButtonSvgIcon"; "required": false; }; "textField": { "alias": "textField"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "buttonClick": "buttonClick"; "itemClick": "itemClick"; "open": "open"; "close": "close"; }, never, never, true, never>;
|
|
1363
1394
|
}
|
|
@@ -1477,6 +1508,316 @@ declare class ToolbarCustomMessagesComponent extends ToolbarMessages {
|
|
|
1477
1508
|
static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarCustomMessagesComponent, "kendo-toolbar-messages", never, {}, {}, never, never, true, never>;
|
|
1478
1509
|
}
|
|
1479
1510
|
|
|
1511
|
+
/**
|
|
1512
|
+
* Arguments for the `dragStart` event of the FloatingToolBar.
|
|
1513
|
+
*/
|
|
1514
|
+
declare class FloatingToolBarDragStartEvent extends PreventableEvent {
|
|
1515
|
+
sender: FloatingToolBarComponent;
|
|
1516
|
+
top: number;
|
|
1517
|
+
left: number;
|
|
1518
|
+
constructor(sender: FloatingToolBarComponent, top: number, left: number);
|
|
1519
|
+
/**
|
|
1520
|
+
* Prevents the FloatingToolBar from starting a pointer drag or keyboard move mode.
|
|
1521
|
+
*/
|
|
1522
|
+
preventDefault(): void;
|
|
1523
|
+
}
|
|
1524
|
+
/**
|
|
1525
|
+
* Arguments for the `move` event of the FloatingToolBar.
|
|
1526
|
+
*/
|
|
1527
|
+
declare class FloatingToolBarMoveEvent {
|
|
1528
|
+
sender: FloatingToolBarComponent;
|
|
1529
|
+
top: number;
|
|
1530
|
+
left: number;
|
|
1531
|
+
constructor(sender: FloatingToolBarComponent, top: number, left: number);
|
|
1532
|
+
}
|
|
1533
|
+
/**
|
|
1534
|
+
* Arguments for the `dragEnd` event of the FloatingToolBar.
|
|
1535
|
+
*/
|
|
1536
|
+
declare class FloatingToolBarDragEndEvent {
|
|
1537
|
+
sender: FloatingToolBarComponent;
|
|
1538
|
+
top: number;
|
|
1539
|
+
left: number;
|
|
1540
|
+
constructor(sender: FloatingToolBarComponent, top: number, left: number);
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
/**
|
|
1544
|
+
* Specifies the preferred side of the anchor element the FloatingToolBar renders on.
|
|
1545
|
+
*/
|
|
1546
|
+
type FloatingToolBarPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
1547
|
+
/**
|
|
1548
|
+
* Sets how the FloatingToolBar renders tools when their total size is greater than the available width.
|
|
1549
|
+
*
|
|
1550
|
+
* @remarks
|
|
1551
|
+
* Narrower than the ToolBar's own `OverflowMode` — `'section'` is intentionally excluded. The shared
|
|
1552
|
+
* spec does not define a section-list overflow presentation for the FloatingToolBar.
|
|
1553
|
+
*/
|
|
1554
|
+
type FloatingToolBarOverflowMode = 'scroll' | 'menu' | 'none';
|
|
1555
|
+
/**
|
|
1556
|
+
* Configures the overflow behavior of the FloatingToolBar in detail.
|
|
1557
|
+
*
|
|
1558
|
+
* @remarks
|
|
1559
|
+
* Narrower than the ToolBar's own `ToolbarOverflowSettings` — `mode` cannot be set to `'section'`.
|
|
1560
|
+
*/
|
|
1561
|
+
type FloatingToolBarOverflowSettings = Omit<ToolbarOverflowSettings, 'mode'> & {
|
|
1562
|
+
mode?: FloatingToolBarOverflowMode;
|
|
1563
|
+
};
|
|
1564
|
+
|
|
1565
|
+
/**
|
|
1566
|
+
* @hidden
|
|
1567
|
+
*/
|
|
1568
|
+
interface DraggablePointerEvent {
|
|
1569
|
+
clientX: number;
|
|
1570
|
+
clientY: number;
|
|
1571
|
+
isTouch?: boolean;
|
|
1572
|
+
originalEvent?: Event;
|
|
1573
|
+
}
|
|
1574
|
+
/**
|
|
1575
|
+
* @hidden
|
|
1576
|
+
*/
|
|
1577
|
+
interface PopupPosition {
|
|
1578
|
+
anchor: ElementRef | HTMLElement | undefined;
|
|
1579
|
+
anchorAlign: Align;
|
|
1580
|
+
popupAlign: Align;
|
|
1581
|
+
collision: Collision;
|
|
1582
|
+
margin: Margin | undefined;
|
|
1583
|
+
offset: Offset;
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
/**
|
|
1587
|
+
* Represents the Kendo UI FloatingToolBar component for Angular. Hosts the {@link ToolBarComponent}
|
|
1588
|
+
* inside a floating {@link PopupComponent} container.
|
|
1589
|
+
*
|
|
1590
|
+
* @example
|
|
1591
|
+
* ```html
|
|
1592
|
+
* <kendo-floatingtoolbar>
|
|
1593
|
+
* <kendo-toolbar-button text="Button"></kendo-toolbar-button>
|
|
1594
|
+
* </kendo-floatingtoolbar>
|
|
1595
|
+
* ```
|
|
1596
|
+
*/
|
|
1597
|
+
declare class FloatingToolBarComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
1598
|
+
private hostElement;
|
|
1599
|
+
private ngZone;
|
|
1600
|
+
private injector;
|
|
1601
|
+
private renderer;
|
|
1602
|
+
private localization;
|
|
1603
|
+
private changeDetectorRef;
|
|
1604
|
+
protected projectedTools: QueryList<ToolBarToolComponent>;
|
|
1605
|
+
private popupComponent;
|
|
1606
|
+
private toolbarComponent;
|
|
1607
|
+
private dragHandle;
|
|
1608
|
+
/**
|
|
1609
|
+
* Sets the element the FloatingToolBar is positioned against. When not set, the component
|
|
1610
|
+
* is positioned within its containing element based on the `containerAlign` option.
|
|
1611
|
+
*/
|
|
1612
|
+
set anchor(value: ElementRef | HTMLElement);
|
|
1613
|
+
get anchor(): ElementRef | HTMLElement;
|
|
1614
|
+
/**
|
|
1615
|
+
* Sets the preferred side of the anchor the FloatingToolBar is rendered on.
|
|
1616
|
+
* Collision handling can render the component on the opposite side when the preferred side does not fit.
|
|
1617
|
+
* Applies when `anchor` is set.
|
|
1618
|
+
*
|
|
1619
|
+
* @default 'top'
|
|
1620
|
+
*/
|
|
1621
|
+
set position(value: FloatingToolBarPosition);
|
|
1622
|
+
get position(): FloatingToolBarPosition;
|
|
1623
|
+
/**
|
|
1624
|
+
* Sets the position of the FloatingToolBar within its containing element.
|
|
1625
|
+
* Applies when `anchor` is not set.
|
|
1626
|
+
*
|
|
1627
|
+
* @default { horizontal: 'center', vertical: 'top' }
|
|
1628
|
+
*/
|
|
1629
|
+
set containerAlign(value: Align);
|
|
1630
|
+
get containerAlign(): Align;
|
|
1631
|
+
/**
|
|
1632
|
+
* Sets the horizontal and vertical spacing in pixels between the FloatingToolBar and the element it is
|
|
1633
|
+
* positioned against. When no anchor is provided, the spacing is applied relative to the containing element.
|
|
1634
|
+
*
|
|
1635
|
+
* @default { horizontal: 0, vertical: 0 }
|
|
1636
|
+
*/
|
|
1637
|
+
set margin(value: Margin);
|
|
1638
|
+
get margin(): Margin;
|
|
1639
|
+
/**
|
|
1640
|
+
* Sets the width of the FloatingToolBar. Numeric values are treated as pixels.
|
|
1641
|
+
*/
|
|
1642
|
+
set width(value: number | string);
|
|
1643
|
+
get width(): string | number;
|
|
1644
|
+
/**
|
|
1645
|
+
* Sets the maximum width of the FloatingToolBar. Numeric values are treated as pixels.
|
|
1646
|
+
*/
|
|
1647
|
+
set maxWidth(value: number | string);
|
|
1648
|
+
get maxWidth(): string | number;
|
|
1649
|
+
/**
|
|
1650
|
+
* Sets how the FloatingToolBar renders tools when their total size is greater than the available width.
|
|
1651
|
+
* @default 'menu'
|
|
1652
|
+
*/
|
|
1653
|
+
set overflow(value: FloatingToolBarOverflowMode | FloatingToolBarOverflowSettings);
|
|
1654
|
+
get overflow(): FloatingToolBarOverflowMode | FloatingToolBarOverflowSettings;
|
|
1655
|
+
/**
|
|
1656
|
+
* Sets the size of the FloatingToolBar and the tools it hosts. The default value is set by the Kendo theme.
|
|
1657
|
+
*/
|
|
1658
|
+
set size(value: ToolbarSize);
|
|
1659
|
+
get size(): ToolbarSize;
|
|
1660
|
+
/**
|
|
1661
|
+
* Sets the background and border styles of the FloatingToolBar. The default value is set by the Kendo theme.
|
|
1662
|
+
*/
|
|
1663
|
+
set fillMode(value: ToolbarFillMode);
|
|
1664
|
+
get fillMode(): ToolbarFillMode;
|
|
1665
|
+
/**
|
|
1666
|
+
* Controls whether the user can reposition the FloatingToolBar with the pointer or the keyboard. When enabled, the
|
|
1667
|
+
* component renders a drag handle before the hosted Toolbar.
|
|
1668
|
+
*
|
|
1669
|
+
* Press `M` while a Toolbar tool or the drag handle has focus to enter move mode. Focus moves
|
|
1670
|
+
* to the drag handle, where you can use the arrow keys to move the FloatingToolBar by one pixel at a time.
|
|
1671
|
+
* Move focus away from the drag handle to finish, or press `Escape` to restore the starting position.
|
|
1672
|
+
*
|
|
1673
|
+
* @default false
|
|
1674
|
+
*/
|
|
1675
|
+
set draggable(value: boolean);
|
|
1676
|
+
get draggable(): boolean;
|
|
1677
|
+
/**
|
|
1678
|
+
* Sets the accessible name of the FloatingToolBar.
|
|
1679
|
+
*/
|
|
1680
|
+
set ariaLabel(value: string);
|
|
1681
|
+
get ariaLabel(): string;
|
|
1682
|
+
/**
|
|
1683
|
+
* Fires when a pointer drag or the keyboard move mode starts. Cancelable — calling `preventDefault()` keeps the
|
|
1684
|
+
* FloatingToolBar in place.
|
|
1685
|
+
*/
|
|
1686
|
+
dragStart: EventEmitter<FloatingToolBarDragStartEvent>;
|
|
1687
|
+
/**
|
|
1688
|
+
* Fires when the user moves the FloatingToolBar with the pointer or the keyboard.
|
|
1689
|
+
*/
|
|
1690
|
+
move: EventEmitter<FloatingToolBarMoveEvent>;
|
|
1691
|
+
/**
|
|
1692
|
+
* Fires when a pointer drag ends or the keyboard move mode is committed or canceled.
|
|
1693
|
+
*/
|
|
1694
|
+
dragEnd: EventEmitter<FloatingToolBarDragEndEvent>;
|
|
1695
|
+
/**
|
|
1696
|
+
* @hidden
|
|
1697
|
+
*
|
|
1698
|
+
* Projected tools subscribe to this after resolving this component as their ToolBar host.
|
|
1699
|
+
*/
|
|
1700
|
+
propertyChange: EventEmitter<{
|
|
1701
|
+
property: string;
|
|
1702
|
+
value: any;
|
|
1703
|
+
}>;
|
|
1704
|
+
protected dragHandleIcon: SVGIcon;
|
|
1705
|
+
protected direction: 'ltr' | 'rtl';
|
|
1706
|
+
protected moveMode: i0.Signal<boolean>;
|
|
1707
|
+
protected popupClass: i0.Signal<string>;
|
|
1708
|
+
protected popupPosition: i0.Signal<PopupPosition>;
|
|
1709
|
+
protected popupPositionMode: i0.Signal<"absolute" | "fixed">;
|
|
1710
|
+
protected get dragHandleTitle(): string;
|
|
1711
|
+
private _anchor;
|
|
1712
|
+
private _position;
|
|
1713
|
+
private _containerAlign;
|
|
1714
|
+
private _margin;
|
|
1715
|
+
private _width;
|
|
1716
|
+
private _maxWidth;
|
|
1717
|
+
private _overflow;
|
|
1718
|
+
private _size;
|
|
1719
|
+
private _fillMode;
|
|
1720
|
+
private _draggable;
|
|
1721
|
+
private _ariaLabel;
|
|
1722
|
+
private _dragOffset;
|
|
1723
|
+
private keyboardMoveOrigin;
|
|
1724
|
+
private preMoveDragOffset;
|
|
1725
|
+
private pointerDragging;
|
|
1726
|
+
private pointerDrag;
|
|
1727
|
+
private focusReturnTarget;
|
|
1728
|
+
private isFocusWithinComponent;
|
|
1729
|
+
private subscriptions;
|
|
1730
|
+
constructor(hostElement: ElementRef<HTMLElement>, ngZone: NgZone, injector: Injector, renderer: Renderer2, localization: LocalizationService, changeDetectorRef: ChangeDetectorRef);
|
|
1731
|
+
ngOnInit(): void;
|
|
1732
|
+
ngAfterViewInit(): void;
|
|
1733
|
+
ngOnDestroy(): void;
|
|
1734
|
+
/**
|
|
1735
|
+
* Moves the focus into the FloatingToolBar at its current roving tabindex position.
|
|
1736
|
+
*/
|
|
1737
|
+
focus(): void;
|
|
1738
|
+
/**
|
|
1739
|
+
* Sets the FloatingToolBar position using the provided `top` and `left` coordinates.
|
|
1740
|
+
* The position is clamped to the viewport.
|
|
1741
|
+
*/
|
|
1742
|
+
setPosition(position: Offset): void;
|
|
1743
|
+
protected messageFor(key: string): string;
|
|
1744
|
+
protected handlePress(ev: DraggablePointerEvent): void;
|
|
1745
|
+
protected handleDrag(ev: DraggablePointerEvent): void;
|
|
1746
|
+
protected handleRelease(): void;
|
|
1747
|
+
private get containerElement();
|
|
1748
|
+
private updatePopupSize;
|
|
1749
|
+
private restoreFocus;
|
|
1750
|
+
private cancelActiveDrag;
|
|
1751
|
+
private focusFirstTool;
|
|
1752
|
+
private onFocusIn;
|
|
1753
|
+
private onFocusOut;
|
|
1754
|
+
private onKeydown;
|
|
1755
|
+
private enterKeyboardMoveMode;
|
|
1756
|
+
private handleMoveModeKey;
|
|
1757
|
+
private finishKeyboardMoveMode;
|
|
1758
|
+
private cancelKeyboardMoveMode;
|
|
1759
|
+
private emitDragStart;
|
|
1760
|
+
private updatePositionAndEmitMove;
|
|
1761
|
+
private currentPosition;
|
|
1762
|
+
private clampToViewport;
|
|
1763
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FloatingToolBarComponent, never>;
|
|
1764
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FloatingToolBarComponent, "kendo-floatingtoolbar", ["kendoFloatingToolBar"], { "anchor": { "alias": "anchor"; "required": false; }; "position": { "alias": "position"; "required": false; }; "containerAlign": { "alias": "containerAlign"; "required": false; }; "margin": { "alias": "margin"; "required": false; }; "width": { "alias": "width"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "overflow": { "alias": "overflow"; "required": false; }; "size": { "alias": "size"; "required": false; }; "fillMode": { "alias": "fillMode"; "required": false; }; "draggable": { "alias": "draggable"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; }, { "dragStart": "dragStart"; "move": "move"; "dragEnd": "dragEnd"; }, ["projectedTools"], ["*"], true, never>;
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1767
|
+
/**
|
|
1768
|
+
* @hidden
|
|
1769
|
+
*/
|
|
1770
|
+
declare class FloatingToolBarMessages extends ComponentMessages {
|
|
1771
|
+
/**
|
|
1772
|
+
* Sets the accessible name of the FloatingToolBar drag handle.
|
|
1773
|
+
*/
|
|
1774
|
+
set dragHandleTitle(value: string);
|
|
1775
|
+
get dragHandleTitle(): string;
|
|
1776
|
+
/**
|
|
1777
|
+
* Sets the title of the More Tools button in the hosted ToolBar. When unset, the FloatingToolBar's localized default is used.
|
|
1778
|
+
*/
|
|
1779
|
+
set moreToolsTitle(value: string);
|
|
1780
|
+
get moreToolsTitle(): string;
|
|
1781
|
+
/**
|
|
1782
|
+
* Sets the title of the previous scroll button in the hosted ToolBar. When unset, the FloatingToolBar's localized default is used.
|
|
1783
|
+
*/
|
|
1784
|
+
set previousToolButton(value: string);
|
|
1785
|
+
get previousToolButton(): string;
|
|
1786
|
+
/**
|
|
1787
|
+
* Sets the title of the next scroll button in the hosted ToolBar. When unset, the FloatingToolBar's localized default is used.
|
|
1788
|
+
*/
|
|
1789
|
+
set nextToolButton(value: string);
|
|
1790
|
+
get nextToolButton(): string;
|
|
1791
|
+
private _dragHandleTitle;
|
|
1792
|
+
private _moreToolsTitle;
|
|
1793
|
+
private _previousToolButton;
|
|
1794
|
+
private _nextToolButton;
|
|
1795
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FloatingToolBarMessages, never>;
|
|
1796
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FloatingToolBarMessages, "kendo-floatingtoolbar-messages-base", never, { "dragHandleTitle": { "alias": "dragHandleTitle"; "required": false; }; "moreToolsTitle": { "alias": "moreToolsTitle"; "required": false; }; "previousToolButton": { "alias": "previousToolButton"; "required": false; }; "nextToolButton": { "alias": "nextToolButton"; "required": false; }; }, {}, never, never, true, never>;
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1799
|
+
/**
|
|
1800
|
+
* Represents the custom messages component of the FloatingToolBar.
|
|
1801
|
+
*
|
|
1802
|
+
* Use this component to override default messages for the FloatingToolBar.
|
|
1803
|
+
*
|
|
1804
|
+
* @example
|
|
1805
|
+
* ```html
|
|
1806
|
+
* <kendo-floatingtoolbar>
|
|
1807
|
+
* <kendo-floatingtoolbar-messages
|
|
1808
|
+
* dragHandleTitle="Drag to reposition">
|
|
1809
|
+
* </kendo-floatingtoolbar-messages>
|
|
1810
|
+
* </kendo-floatingtoolbar>
|
|
1811
|
+
* ```
|
|
1812
|
+
*/
|
|
1813
|
+
declare class FloatingToolBarCustomMessagesComponent extends FloatingToolBarMessages {
|
|
1814
|
+
protected service: LocalizationService;
|
|
1815
|
+
constructor(service: LocalizationService);
|
|
1816
|
+
protected get override(): boolean;
|
|
1817
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FloatingToolBarCustomMessagesComponent, never>;
|
|
1818
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FloatingToolBarCustomMessagesComponent, "kendo-floatingtoolbar-messages", never, {}, {}, never, never, true, never>;
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1480
1821
|
/**
|
|
1481
1822
|
* Represents the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) definition for the ToolBar component.
|
|
1482
1823
|
*
|
|
@@ -1492,7 +1833,7 @@ declare class ToolbarCustomMessagesComponent extends ToolbarMessages {
|
|
|
1492
1833
|
*/
|
|
1493
1834
|
declare class ToolBarModule {
|
|
1494
1835
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToolBarModule, never>;
|
|
1495
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ToolBarModule, never, [typeof ToolBarComponent, typeof ToolbarCustomMessagesComponent, typeof ToolBarButtonComponent, typeof ToolBarButtonGroupComponent, typeof ToolBarDropDownButtonComponent, typeof ToolBarSeparatorComponent, typeof ToolBarSpacerComponent, typeof ToolBarSplitButtonComponent, typeof ToolBarToolComponent], [typeof ToolBarComponent, typeof ToolbarCustomMessagesComponent, typeof ToolBarButtonComponent, typeof ToolBarButtonGroupComponent, typeof ToolBarDropDownButtonComponent, typeof ToolBarSeparatorComponent, typeof ToolBarSpacerComponent, typeof ToolBarSplitButtonComponent, typeof ToolBarToolComponent]>;
|
|
1836
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ToolBarModule, never, [typeof ToolBarComponent, typeof ToolbarCustomMessagesComponent, typeof ToolBarButtonComponent, typeof ToolBarButtonGroupComponent, typeof ToolBarDropDownButtonComponent, typeof ToolBarSeparatorComponent, typeof ToolBarSpacerComponent, typeof ToolBarSplitButtonComponent, typeof ToolBarToolComponent, typeof FloatingToolBarComponent, typeof FloatingToolBarCustomMessagesComponent], [typeof ToolBarComponent, typeof ToolbarCustomMessagesComponent, typeof ToolBarButtonComponent, typeof ToolBarButtonGroupComponent, typeof ToolBarDropDownButtonComponent, typeof ToolBarSeparatorComponent, typeof ToolBarSpacerComponent, typeof ToolBarSplitButtonComponent, typeof ToolBarToolComponent, typeof FloatingToolBarComponent, typeof FloatingToolBarCustomMessagesComponent]>;
|
|
1496
1837
|
static ɵinj: i0.ɵɵInjectorDeclaration<ToolBarModule>;
|
|
1497
1838
|
}
|
|
1498
1839
|
|
|
@@ -1506,6 +1847,16 @@ declare class LocalizedToolbarMessagesDirective extends ToolbarMessages {
|
|
|
1506
1847
|
static ɵdir: i0.ɵɵDirectiveDeclaration<LocalizedToolbarMessagesDirective, "[kendoToolbarLocalizedMessages]", never, {}, {}, never, never, true, never>;
|
|
1507
1848
|
}
|
|
1508
1849
|
|
|
1850
|
+
/**
|
|
1851
|
+
* @hidden
|
|
1852
|
+
*/
|
|
1853
|
+
declare class LocalizedFloatingToolBarMessagesDirective extends FloatingToolBarMessages {
|
|
1854
|
+
protected service: LocalizationService;
|
|
1855
|
+
constructor(service: LocalizationService);
|
|
1856
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizedFloatingToolBarMessagesDirective, never>;
|
|
1857
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LocalizedFloatingToolBarMessagesDirective, "[kendoFloatingToolBarLocalizedMessages]", never, {}, {}, never, never, true, never>;
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1509
1860
|
/**
|
|
1510
1861
|
* Use this utility array to access all `@progress/kendo-angular-toolbar`-related components and directives in a standalone Angular component.
|
|
1511
1862
|
*
|
|
@@ -1527,7 +1878,7 @@ declare class LocalizedToolbarMessagesDirective extends ToolbarMessages {
|
|
|
1527
1878
|
* export class AppComponent {}
|
|
1528
1879
|
* ```
|
|
1529
1880
|
*/
|
|
1530
|
-
declare const KENDO_TOOLBAR: readonly [typeof ToolBarComponent, typeof ToolbarCustomMessagesComponent, typeof ToolBarButtonComponent, typeof ToolBarButtonGroupComponent, typeof ToolBarDropDownButtonComponent, typeof ToolBarSeparatorComponent, typeof ToolBarSpacerComponent, typeof ToolBarSplitButtonComponent, typeof ToolBarToolComponent];
|
|
1881
|
+
declare const KENDO_TOOLBAR: readonly [typeof ToolBarComponent, typeof ToolbarCustomMessagesComponent, typeof ToolBarButtonComponent, typeof ToolBarButtonGroupComponent, typeof ToolBarDropDownButtonComponent, typeof ToolBarSeparatorComponent, typeof ToolBarSpacerComponent, typeof ToolBarSplitButtonComponent, typeof ToolBarToolComponent, typeof FloatingToolBarComponent, typeof FloatingToolBarCustomMessagesComponent];
|
|
1531
1882
|
|
|
1532
|
-
export { KENDO_TOOLBAR, LocalizedToolbarMessagesDirective, RefreshService, ToolBarButtonComponent, ToolBarButtonGroupComponent, ToolBarComponent, ToolBarDropDownButtonComponent, ToolBarModule, ToolBarSeparatorComponent, ToolBarSpacerComponent, ToolBarSplitButtonComponent, ToolBarToolComponent, ToolbarCustomMessagesComponent };
|
|
1533
|
-
export type { ButtonGroupSelection, DisplayMode, OverflowMode, PopupSettings, ToolbarFillMode, ToolbarOverflowSettings, ToolbarScrollButtonsPosition, ToolbarScrollButtonsVisibility, ToolbarSize };
|
|
1883
|
+
export { FloatingToolBarComponent, FloatingToolBarCustomMessagesComponent, FloatingToolBarDragEndEvent, FloatingToolBarDragStartEvent, FloatingToolBarMessages, FloatingToolBarMoveEvent, KENDO_TOOLBAR, LocalizedFloatingToolBarMessagesDirective, LocalizedToolbarMessagesDirective, RefreshService, ToolBarButtonComponent, ToolBarButtonGroupComponent, ToolBarComponent, ToolBarDropDownButtonComponent, ToolBarModule, ToolBarSeparatorComponent, ToolBarSpacerComponent, ToolBarSplitButtonComponent, ToolBarToolComponent, ToolbarCustomMessagesComponent };
|
|
1884
|
+
export type { ButtonGroupSelection, DisplayMode, FloatingToolBarOverflowMode, FloatingToolBarOverflowSettings, FloatingToolBarPosition, OverflowMode, PopupSettings, ToolbarFillMode, ToolbarOverflowSettings, ToolbarScrollButtonsPosition, ToolbarScrollButtonsVisibility, ToolbarSize };
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "25.3.0-develop.
|
|
10
|
+
"publishDate": 1791301982,
|
|
11
|
+
"version": "25.3.0-develop.9",
|
|
12
12
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-toolbar",
|
|
3
|
-
"version": "25.3.0-develop.
|
|
3
|
+
"version": "25.3.0-develop.9",
|
|
4
4
|
"description": "Kendo UI Angular Toolbar component - a single UI element that organizes buttons and other navigation elements",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"package": {
|
|
44
44
|
"productName": "Kendo UI for Angular",
|
|
45
45
|
"productCode": "KENDOUIANGULAR",
|
|
46
|
-
"publishDate":
|
|
46
|
+
"publishDate": 1791301982,
|
|
47
47
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
48
48
|
}
|
|
49
49
|
},
|
|
@@ -53,17 +53,17 @@
|
|
|
53
53
|
"@angular/core": "20 - 22",
|
|
54
54
|
"@angular/platform-browser": "20 - 22",
|
|
55
55
|
"@progress/kendo-licensing": "^1.11.0",
|
|
56
|
-
"@progress/kendo-angular-buttons": "25.3.0-develop.
|
|
57
|
-
"@progress/kendo-angular-common": "25.3.0-develop.
|
|
58
|
-
"@progress/kendo-angular-l10n": "25.3.0-develop.
|
|
59
|
-
"@progress/kendo-angular-icons": "25.3.0-develop.
|
|
60
|
-
"@progress/kendo-angular-indicators": "25.3.0-develop.
|
|
61
|
-
"@progress/kendo-angular-popup": "25.3.0-develop.
|
|
56
|
+
"@progress/kendo-angular-buttons": "25.3.0-develop.9",
|
|
57
|
+
"@progress/kendo-angular-common": "25.3.0-develop.9",
|
|
58
|
+
"@progress/kendo-angular-l10n": "25.3.0-develop.9",
|
|
59
|
+
"@progress/kendo-angular-icons": "25.3.0-develop.9",
|
|
60
|
+
"@progress/kendo-angular-indicators": "25.3.0-develop.9",
|
|
61
|
+
"@progress/kendo-angular-popup": "25.3.0-develop.9",
|
|
62
62
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"tslib": "^2.3.1",
|
|
66
|
-
"@progress/kendo-angular-schematics": "25.3.0-develop.
|
|
66
|
+
"@progress/kendo-angular-schematics": "25.3.0-develop.9"
|
|
67
67
|
},
|
|
68
68
|
"schematics": "./schematics/collection.json",
|
|
69
69
|
"module": "fesm2022/progress-kendo-angular-toolbar.mjs",
|