@progress/kendo-angular-toolbar 13.6.0-develop.5 → 13.6.0-develop.7
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/esm2020/package-metadata.mjs +2 -2
- package/esm2020/toolbar.component.mjs +3 -2
- package/esm2020/tools/toolbar-button.component.mjs +3 -3
- package/esm2020/tools/toolbar-buttongroup.component.mjs +1 -1
- package/esm2020/tools/toolbar-buttonlist.component.mjs +1 -1
- package/esm2020/tools/toolbar-dropdownbutton.component.mjs +59 -39
- package/esm2020/tools/toolbar-splitbutton.component.mjs +1 -1
- package/fesm2015/progress-kendo-angular-toolbar.mjs +69 -48
- package/fesm2020/progress-kendo-angular-toolbar.mjs +69 -48
- package/package.json +7 -7
- package/tools/toolbar-dropdownbutton.component.d.ts +12 -2
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-toolbar',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
13
|
-
version: '13.6.0-develop.
|
|
12
|
+
publishDate: 1695886951,
|
|
13
|
+
version: '13.6.0-develop.7',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -16,7 +16,7 @@ import { innerWidth, closest, isPresent, getStylingClasses, SIZES } from './util
|
|
|
16
16
|
import { Keys } from '@progress/kendo-angular-common';
|
|
17
17
|
import { PreventableEvent } from './common/preventable-event';
|
|
18
18
|
import { Subscription, fromEvent, Subject, merge } from 'rxjs';
|
|
19
|
-
import { takeUntil } from 'rxjs/operators';
|
|
19
|
+
import { take, takeUntil } from 'rxjs/operators';
|
|
20
20
|
import { filter } from 'rxjs/operators';
|
|
21
21
|
import { isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
22
22
|
import { moreVerticalIcon } from '@progress/kendo-svg-icons';
|
|
@@ -254,6 +254,7 @@ export class ToolBarComponent {
|
|
|
254
254
|
}
|
|
255
255
|
ngOnInit() {
|
|
256
256
|
this.subscriptions.add(this.localization.changes.subscribe(({ rtl }) => (this.direction = rtl ? 'rtl' : 'ltr')));
|
|
257
|
+
this.zone.onStable.pipe(take(1)).subscribe(() => this.onResize());
|
|
257
258
|
if (isDocumentAvailable()) {
|
|
258
259
|
this.zone.runOutsideAngular(() => this.subscriptions.add(fromEvent(document, 'click')
|
|
259
260
|
.pipe(filter(() => !!this.popupRef), filter((ev) => !this.popupRef.popup.instance.container.nativeElement.contains(ev.target)), filter((ev) => !this.overflowButton.nativeElement.contains(ev.target)))
|
|
@@ -623,7 +624,7 @@ ToolBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
|
|
|
623
624
|
</ng-template>
|
|
624
625
|
<ng-container #container></ng-container>
|
|
625
626
|
<kendo-resize-sensor *ngIf="overflow" #resizeSensor></kendo-resize-sensor>
|
|
626
|
-
`, isInline: true, components: [{ type: i5.ToolBarRendererComponent, selector: "kendo-toolbar-renderer", inputs: ["tool", "location", "resizable"], outputs: ["rendererClick"], exportAs: ["kendoToolBarRenderer"] }, { type: i6.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i7.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: i8.LocalizedToolbarMessagesDirective, selector: "[kendoToolbarLocalizedMessages]" }, { type: i9.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i9.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
627
|
+
`, isInline: true, components: [{ type: i5.ToolBarRendererComponent, selector: "kendo-toolbar-renderer", inputs: ["tool", "location", "resizable"], outputs: ["rendererClick"], exportAs: ["kendoToolBarRenderer"] }, { type: i6.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i7.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: i8.LocalizedToolbarMessagesDirective, selector: "[kendoToolbarLocalizedMessages]" }, { type: i9.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i9.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
627
628
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ToolBarComponent, decorators: [{
|
|
628
629
|
type: Component,
|
|
629
630
|
args: [{
|
|
@@ -228,7 +228,7 @@ export class ToolBarButtonComponent extends ToolBarToolComponent {
|
|
|
228
228
|
this.selectedChange.emit(state);
|
|
229
229
|
}
|
|
230
230
|
getButton() {
|
|
231
|
-
return (this.
|
|
231
|
+
return (this.overflowButtonElement || this.toolbarButtonElement).nativeElement;
|
|
232
232
|
}
|
|
233
233
|
setTextDisplayMode() {
|
|
234
234
|
this.toolbarOptions.text = this.showText === 'overflow' ? undefined : this.text;
|
|
@@ -290,7 +290,7 @@ ToolBarButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
290
290
|
</span>
|
|
291
291
|
</div>
|
|
292
292
|
</ng-template>
|
|
293
|
-
`, isInline: true, components: [{ type: i1.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i2.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
293
|
+
`, isInline: true, components: [{ type: i1.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i2.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
294
294
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ToolBarButtonComponent, decorators: [{
|
|
295
295
|
type: Component,
|
|
296
296
|
args: [{
|
|
@@ -402,5 +402,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
402
402
|
args: ['toolbarButton', { read: ElementRef }]
|
|
403
403
|
}], overflowButtonElement: [{
|
|
404
404
|
type: ViewChild,
|
|
405
|
-
args: ['overflowButton', { read: ElementRef
|
|
405
|
+
args: ['overflowButton', { read: ElementRef }]
|
|
406
406
|
}] } });
|
|
@@ -205,7 +205,7 @@ ToolBarButtonGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
|
|
|
205
205
|
</div>
|
|
206
206
|
</ng-container>
|
|
207
207
|
</ng-template>
|
|
208
|
-
`, isInline: true, components: [{ type: i2.ButtonGroupComponent, selector: "kendo-buttongroup", inputs: ["disabled", "selection", "width", "tabIndex", "navigable"], outputs: ["navigate"], exportAs: ["kendoButtonGroup"] }, { type: i2.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
208
|
+
`, isInline: true, components: [{ type: i2.ButtonGroupComponent, selector: "kendo-buttongroup", inputs: ["disabled", "selection", "width", "tabIndex", "navigable"], outputs: ["navigate"], exportAs: ["kendoButtonGroup"] }, { type: i2.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
209
209
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ToolBarButtonGroupComponent, decorators: [{
|
|
210
210
|
type: Component,
|
|
211
211
|
args: [{
|
|
@@ -51,7 +51,7 @@ ToolBarButtonListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
51
51
|
>
|
|
52
52
|
{{ getText(item) }}
|
|
53
53
|
</button>
|
|
54
|
-
`, isInline: true, components: [{ type: i1.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }], directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
54
|
+
`, isInline: true, components: [{ type: i1.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }], directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
55
55
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ToolBarButtonListComponent, decorators: [{
|
|
56
56
|
type: Component,
|
|
57
57
|
args: [{
|
|
@@ -16,6 +16,16 @@ import * as i3 from "@angular/common";
|
|
|
16
16
|
export class ToolBarDropDownButtonComponent extends ToolBarToolComponent {
|
|
17
17
|
constructor() {
|
|
18
18
|
super();
|
|
19
|
+
/**
|
|
20
|
+
* Allows showing the default arrow icon or providing alternative one instead.
|
|
21
|
+
* @default false
|
|
22
|
+
*/
|
|
23
|
+
this.arrowIcon = false;
|
|
24
|
+
/**
|
|
25
|
+
* Sets the `title` attribute of the underlying button element.
|
|
26
|
+
* @default ''
|
|
27
|
+
*/
|
|
28
|
+
this.title = '';
|
|
19
29
|
/**
|
|
20
30
|
* Defines the location of the button icon that will be displayed.
|
|
21
31
|
*/
|
|
@@ -268,7 +278,7 @@ export class ToolBarDropDownButtonComponent extends ToolBarToolComponent {
|
|
|
268
278
|
}
|
|
269
279
|
}
|
|
270
280
|
ToolBarDropDownButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ToolBarDropDownButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
271
|
-
ToolBarDropDownButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ToolBarDropDownButtonComponent, selector: "kendo-toolbar-dropdownbutton", inputs: { showText: "showText", showIcon: "showIcon", text: "text", icon: "icon", svgIcon: "svgIcon", iconClass: "iconClass", imageUrl: "imageUrl", popupSettings: "popupSettings", look: "look", primary: "primary", fillMode: "fillMode", themeColor: "themeColor", buttonClass: "buttonClass", textField: "textField", disabled: "disabled", data: "data" }, outputs: { itemClick: "itemClick", open: "open", close: "close" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarDropDownButtonComponent) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "dropdownButton", first: true, predicate: ["dropdownButton"], descendants: true, read: ElementRef, static: true }, { propertyName: "dropDownButtonComponent", first: true, predicate: DropDownButtonComponent, descendants: true }, { propertyName: "toolbarDropDownButton", first: true, predicate: ["toolbarDropDownButton"], descendants: true }, { propertyName: "overflowListItems", predicate: ["listItem"], descendants: true }], exportAs: ["kendoToolBarDropDownButton"], usesInheritance: true, ngImport: i0, template: `
|
|
281
|
+
ToolBarDropDownButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ToolBarDropDownButtonComponent, selector: "kendo-toolbar-dropdownbutton", inputs: { arrowIcon: "arrowIcon", title: "title", showText: "showText", showIcon: "showIcon", text: "text", icon: "icon", svgIcon: "svgIcon", iconClass: "iconClass", imageUrl: "imageUrl", popupSettings: "popupSettings", look: "look", primary: "primary", fillMode: "fillMode", themeColor: "themeColor", buttonClass: "buttonClass", textField: "textField", disabled: "disabled", data: "data" }, outputs: { itemClick: "itemClick", open: "open", close: "close" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarDropDownButtonComponent) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "dropdownButton", first: true, predicate: ["dropdownButton"], descendants: true, read: ElementRef, static: true }, { propertyName: "dropDownButtonComponent", first: true, predicate: DropDownButtonComponent, descendants: true }, { propertyName: "toolbarDropDownButton", first: true, predicate: ["toolbarDropDownButton"], descendants: true }, { propertyName: "overflowListItems", predicate: ["listItem"], descendants: true }], exportAs: ["kendoToolBarDropDownButton"], usesInheritance: true, ngImport: i0, template: `
|
|
272
282
|
<ng-template #toolbarTemplate>
|
|
273
283
|
<kendo-dropdownbutton
|
|
274
284
|
#toolbarDropDownButton
|
|
@@ -277,10 +287,12 @@ ToolBarDropDownButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
|
277
287
|
[iconClass]="toolbarOptions.iconClass"
|
|
278
288
|
[svgIcon]="toolbarOptions.svgIcon"
|
|
279
289
|
[imageUrl]="toolbarOptions.imageUrl"
|
|
290
|
+
[arrowIcon]="arrowIcon"
|
|
280
291
|
[buttonClass]="buttonClass"
|
|
281
292
|
[disabled]="disabled"
|
|
282
293
|
[tabIndex]="-1"
|
|
283
294
|
[data]="data"
|
|
295
|
+
[buttonAttributes]="{'title': title}"
|
|
284
296
|
[textField]="textField"
|
|
285
297
|
[popupSettings]="popupSettings"
|
|
286
298
|
[fillMode]="fillMode"
|
|
@@ -311,27 +323,28 @@ ToolBarDropDownButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
|
311
323
|
</span>
|
|
312
324
|
</div>
|
|
313
325
|
<ng-container *ngFor="let item of data; let i = index">
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
326
|
+
<div #listItem
|
|
327
|
+
tabindex="-1"
|
|
328
|
+
role="menuitem"
|
|
329
|
+
class="k-item k-menu-item"
|
|
330
|
+
[class.k-disabled]="disabled || item.disabled"
|
|
331
|
+
(click)="handleClick($event, item, i)">
|
|
332
|
+
<span
|
|
333
|
+
class="k-link k-menu-link"
|
|
334
|
+
[ngClass]="item.cssClass"
|
|
335
|
+
>
|
|
336
|
+
<kendo-icon-wrapper
|
|
337
|
+
*ngIf="item.icon || item.iconClass || item.svgIcon"
|
|
338
|
+
[name]="item.icon"
|
|
339
|
+
[customFontClass]="item.iconClass"
|
|
340
|
+
[svgIcon]="item.svgIcon"
|
|
341
|
+
></kendo-icon-wrapper>
|
|
342
|
+
<span *ngIf="getText(item)" class="k-menu-link-text">{{ getText(item) }}</span>
|
|
343
|
+
</span>
|
|
344
|
+
</div>
|
|
332
345
|
</ng-container>
|
|
333
346
|
</ng-template>
|
|
334
|
-
`, isInline: true, components: [{ type: i1.DropDownButtonComponent, selector: "kendo-dropdownbutton", inputs: ["icon", "svgIcon", "iconClass", "imageUrl", "textField", "data", "size", "rounded", "fillMode", "themeColor"], outputs: ["itemClick", "focus", "blur"], exportAs: ["kendoDropDownButton"] }, { type: i2.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
347
|
+
`, isInline: true, components: [{ type: i1.DropDownButtonComponent, selector: "kendo-dropdownbutton", inputs: ["arrowIcon", "icon", "svgIcon", "iconClass", "imageUrl", "textField", "data", "size", "rounded", "fillMode", "themeColor", "buttonAttributes"], outputs: ["itemClick", "focus", "blur"], exportAs: ["kendoDropDownButton"] }, { type: i2.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
335
348
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ToolBarDropDownButtonComponent, decorators: [{
|
|
336
349
|
type: Component,
|
|
337
350
|
args: [{
|
|
@@ -347,10 +360,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
347
360
|
[iconClass]="toolbarOptions.iconClass"
|
|
348
361
|
[svgIcon]="toolbarOptions.svgIcon"
|
|
349
362
|
[imageUrl]="toolbarOptions.imageUrl"
|
|
363
|
+
[arrowIcon]="arrowIcon"
|
|
350
364
|
[buttonClass]="buttonClass"
|
|
351
365
|
[disabled]="disabled"
|
|
352
366
|
[tabIndex]="-1"
|
|
353
367
|
[data]="data"
|
|
368
|
+
[buttonAttributes]="{'title': title}"
|
|
354
369
|
[textField]="textField"
|
|
355
370
|
[popupSettings]="popupSettings"
|
|
356
371
|
[fillMode]="fillMode"
|
|
@@ -381,29 +396,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
381
396
|
</span>
|
|
382
397
|
</div>
|
|
383
398
|
<ng-container *ngFor="let item of data; let i = index">
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
399
|
+
<div #listItem
|
|
400
|
+
tabindex="-1"
|
|
401
|
+
role="menuitem"
|
|
402
|
+
class="k-item k-menu-item"
|
|
403
|
+
[class.k-disabled]="disabled || item.disabled"
|
|
404
|
+
(click)="handleClick($event, item, i)">
|
|
405
|
+
<span
|
|
406
|
+
class="k-link k-menu-link"
|
|
407
|
+
[ngClass]="item.cssClass"
|
|
408
|
+
>
|
|
409
|
+
<kendo-icon-wrapper
|
|
410
|
+
*ngIf="item.icon || item.iconClass || item.svgIcon"
|
|
411
|
+
[name]="item.icon"
|
|
412
|
+
[customFontClass]="item.iconClass"
|
|
413
|
+
[svgIcon]="item.svgIcon"
|
|
414
|
+
></kendo-icon-wrapper>
|
|
415
|
+
<span *ngIf="getText(item)" class="k-menu-link-text">{{ getText(item) }}</span>
|
|
416
|
+
</span>
|
|
417
|
+
</div>
|
|
402
418
|
</ng-container>
|
|
403
419
|
</ng-template>
|
|
404
420
|
`
|
|
405
421
|
}]
|
|
406
|
-
}], ctorParameters: function () { return []; }, propDecorators: {
|
|
422
|
+
}], ctorParameters: function () { return []; }, propDecorators: { arrowIcon: [{
|
|
423
|
+
type: Input
|
|
424
|
+
}], title: [{
|
|
425
|
+
type: Input
|
|
426
|
+
}], showText: [{
|
|
407
427
|
type: Input
|
|
408
428
|
}], showIcon: [{
|
|
409
429
|
type: Input
|
|
@@ -357,7 +357,7 @@ ToolBarSplitButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
|
|
|
357
357
|
</div>
|
|
358
358
|
</ng-container>
|
|
359
359
|
</ng-template>
|
|
360
|
-
`, isInline: true, components: [{ type: i1.SplitButtonComponent, selector: "kendo-splitbutton", inputs: ["text", "icon", "svgIcon", "iconClass", "type", "imageUrl", "size", "rounded", "fillMode", "themeColor", "disabled", "popupSettings", "tabIndex", "textField", "data", "buttonClass", "arrowButtonClass", "arrowButtonIcon", "arrowButtonSvgIcon"], outputs: ["buttonClick", "itemClick", "focus", "blur", "open", "close"], exportAs: ["kendoSplitButton"] }, { type: i2.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
360
|
+
`, isInline: true, components: [{ type: i1.SplitButtonComponent, selector: "kendo-splitbutton", inputs: ["text", "icon", "svgIcon", "iconClass", "type", "imageUrl", "size", "rounded", "fillMode", "themeColor", "disabled", "popupSettings", "tabIndex", "textField", "data", "buttonClass", "arrowButtonClass", "arrowButtonIcon", "arrowButtonSvgIcon", "buttonAttributes"], outputs: ["buttonClick", "itemClick", "focus", "blur", "open", "close"], exportAs: ["kendoSplitButton"] }, { type: i2.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
361
361
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ToolBarSplitButtonComponent, decorators: [{
|
|
362
362
|
type: Component,
|
|
363
363
|
args: [{
|
|
@@ -28,8 +28,8 @@ const packageMetadata = {
|
|
|
28
28
|
name: '@progress/kendo-angular-toolbar',
|
|
29
29
|
productName: 'Kendo UI for Angular',
|
|
30
30
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
31
|
-
publishDate:
|
|
32
|
-
version: '13.6.0-develop.
|
|
31
|
+
publishDate: 1695886951,
|
|
32
|
+
version: '13.6.0-develop.7',
|
|
33
33
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
34
34
|
};
|
|
35
35
|
|
|
@@ -939,6 +939,7 @@ class ToolBarComponent {
|
|
|
939
939
|
}
|
|
940
940
|
ngOnInit() {
|
|
941
941
|
this.subscriptions.add(this.localization.changes.subscribe(({ rtl }) => (this.direction = rtl ? 'rtl' : 'ltr')));
|
|
942
|
+
this.zone.onStable.pipe(take(1)).subscribe(() => this.onResize());
|
|
942
943
|
if (isDocumentAvailable()) {
|
|
943
944
|
this.zone.runOutsideAngular(() => this.subscriptions.add(fromEvent(document, 'click')
|
|
944
945
|
.pipe(filter(() => !!this.popupRef), filter((ev) => !this.popupRef.popup.instance.container.nativeElement.contains(ev.target)), filter((ev) => !this.overflowButton.nativeElement.contains(ev.target)))
|
|
@@ -1309,7 +1310,7 @@ ToolBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
|
|
|
1309
1310
|
</ng-template>
|
|
1310
1311
|
<ng-container #container></ng-container>
|
|
1311
1312
|
<kendo-resize-sensor *ngIf="overflow" #resizeSensor></kendo-resize-sensor>
|
|
1312
|
-
`, isInline: true, components: [{ type: ToolBarRendererComponent, selector: "kendo-toolbar-renderer", inputs: ["tool", "location", "resizable"], outputs: ["rendererClick"], exportAs: ["kendoToolBarRenderer"] }, { type: i1$1.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i7.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: LocalizedToolbarMessagesDirective, selector: "[kendoToolbarLocalizedMessages]" }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
1313
|
+
`, isInline: true, components: [{ type: ToolBarRendererComponent, selector: "kendo-toolbar-renderer", inputs: ["tool", "location", "resizable"], outputs: ["rendererClick"], exportAs: ["kendoToolBarRenderer"] }, { type: i1$1.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i7.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: LocalizedToolbarMessagesDirective, selector: "[kendoToolbarLocalizedMessages]" }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
1313
1314
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ToolBarComponent, decorators: [{
|
|
1314
1315
|
type: Component,
|
|
1315
1316
|
args: [{
|
|
@@ -1658,7 +1659,7 @@ class ToolBarButtonComponent extends ToolBarToolComponent {
|
|
|
1658
1659
|
this.selectedChange.emit(state);
|
|
1659
1660
|
}
|
|
1660
1661
|
getButton() {
|
|
1661
|
-
return (this.
|
|
1662
|
+
return (this.overflowButtonElement || this.toolbarButtonElement).nativeElement;
|
|
1662
1663
|
}
|
|
1663
1664
|
setTextDisplayMode() {
|
|
1664
1665
|
this.toolbarOptions.text = this.showText === 'overflow' ? undefined : this.text;
|
|
@@ -1720,7 +1721,7 @@ ToolBarButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1720
1721
|
</span>
|
|
1721
1722
|
</div>
|
|
1722
1723
|
</ng-template>
|
|
1723
|
-
`, isInline: true, components: [{ type: i1$1.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i2$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1724
|
+
`, isInline: true, components: [{ type: i1$1.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i2$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1724
1725
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ToolBarButtonComponent, decorators: [{
|
|
1725
1726
|
type: Component,
|
|
1726
1727
|
args: [{
|
|
@@ -1832,7 +1833,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1832
1833
|
args: ['toolbarButton', { read: ElementRef }]
|
|
1833
1834
|
}], overflowButtonElement: [{
|
|
1834
1835
|
type: ViewChild,
|
|
1835
|
-
args: ['overflowButton', { read: ElementRef
|
|
1836
|
+
args: ['overflowButton', { read: ElementRef }]
|
|
1836
1837
|
}] } });
|
|
1837
1838
|
|
|
1838
1839
|
/**
|
|
@@ -2028,7 +2029,7 @@ ToolBarButtonGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
|
|
|
2028
2029
|
</div>
|
|
2029
2030
|
</ng-container>
|
|
2030
2031
|
</ng-template>
|
|
2031
|
-
`, isInline: true, components: [{ type: i1$1.ButtonGroupComponent, selector: "kendo-buttongroup", inputs: ["disabled", "selection", "width", "tabIndex", "navigable"], outputs: ["navigate"], exportAs: ["kendoButtonGroup"] }, { type: i1$1.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i2$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2032
|
+
`, isInline: true, components: [{ type: i1$1.ButtonGroupComponent, selector: "kendo-buttongroup", inputs: ["disabled", "selection", "width", "tabIndex", "navigable"], outputs: ["navigate"], exportAs: ["kendoButtonGroup"] }, { type: i1$1.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i2$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2032
2033
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ToolBarButtonGroupComponent, decorators: [{
|
|
2033
2034
|
type: Component,
|
|
2034
2035
|
args: [{
|
|
@@ -2129,6 +2130,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
2129
2130
|
class ToolBarDropDownButtonComponent extends ToolBarToolComponent {
|
|
2130
2131
|
constructor() {
|
|
2131
2132
|
super();
|
|
2133
|
+
/**
|
|
2134
|
+
* Allows showing the default arrow icon or providing alternative one instead.
|
|
2135
|
+
* @default false
|
|
2136
|
+
*/
|
|
2137
|
+
this.arrowIcon = false;
|
|
2138
|
+
/**
|
|
2139
|
+
* Sets the `title` attribute of the underlying button element.
|
|
2140
|
+
* @default ''
|
|
2141
|
+
*/
|
|
2142
|
+
this.title = '';
|
|
2132
2143
|
/**
|
|
2133
2144
|
* Defines the location of the button icon that will be displayed.
|
|
2134
2145
|
*/
|
|
@@ -2381,7 +2392,7 @@ class ToolBarDropDownButtonComponent extends ToolBarToolComponent {
|
|
|
2381
2392
|
}
|
|
2382
2393
|
}
|
|
2383
2394
|
ToolBarDropDownButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ToolBarDropDownButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2384
|
-
ToolBarDropDownButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ToolBarDropDownButtonComponent, selector: "kendo-toolbar-dropdownbutton", inputs: { showText: "showText", showIcon: "showIcon", text: "text", icon: "icon", svgIcon: "svgIcon", iconClass: "iconClass", imageUrl: "imageUrl", popupSettings: "popupSettings", look: "look", primary: "primary", fillMode: "fillMode", themeColor: "themeColor", buttonClass: "buttonClass", textField: "textField", disabled: "disabled", data: "data" }, outputs: { itemClick: "itemClick", open: "open", close: "close" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarDropDownButtonComponent) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "dropdownButton", first: true, predicate: ["dropdownButton"], descendants: true, read: ElementRef, static: true }, { propertyName: "dropDownButtonComponent", first: true, predicate: DropDownButtonComponent, descendants: true }, { propertyName: "toolbarDropDownButton", first: true, predicate: ["toolbarDropDownButton"], descendants: true }, { propertyName: "overflowListItems", predicate: ["listItem"], descendants: true }], exportAs: ["kendoToolBarDropDownButton"], usesInheritance: true, ngImport: i0, template: `
|
|
2395
|
+
ToolBarDropDownButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ToolBarDropDownButtonComponent, selector: "kendo-toolbar-dropdownbutton", inputs: { arrowIcon: "arrowIcon", title: "title", showText: "showText", showIcon: "showIcon", text: "text", icon: "icon", svgIcon: "svgIcon", iconClass: "iconClass", imageUrl: "imageUrl", popupSettings: "popupSettings", look: "look", primary: "primary", fillMode: "fillMode", themeColor: "themeColor", buttonClass: "buttonClass", textField: "textField", disabled: "disabled", data: "data" }, outputs: { itemClick: "itemClick", open: "open", close: "close" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarDropDownButtonComponent) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "dropdownButton", first: true, predicate: ["dropdownButton"], descendants: true, read: ElementRef, static: true }, { propertyName: "dropDownButtonComponent", first: true, predicate: DropDownButtonComponent, descendants: true }, { propertyName: "toolbarDropDownButton", first: true, predicate: ["toolbarDropDownButton"], descendants: true }, { propertyName: "overflowListItems", predicate: ["listItem"], descendants: true }], exportAs: ["kendoToolBarDropDownButton"], usesInheritance: true, ngImport: i0, template: `
|
|
2385
2396
|
<ng-template #toolbarTemplate>
|
|
2386
2397
|
<kendo-dropdownbutton
|
|
2387
2398
|
#toolbarDropDownButton
|
|
@@ -2390,10 +2401,12 @@ ToolBarDropDownButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
|
2390
2401
|
[iconClass]="toolbarOptions.iconClass"
|
|
2391
2402
|
[svgIcon]="toolbarOptions.svgIcon"
|
|
2392
2403
|
[imageUrl]="toolbarOptions.imageUrl"
|
|
2404
|
+
[arrowIcon]="arrowIcon"
|
|
2393
2405
|
[buttonClass]="buttonClass"
|
|
2394
2406
|
[disabled]="disabled"
|
|
2395
2407
|
[tabIndex]="-1"
|
|
2396
2408
|
[data]="data"
|
|
2409
|
+
[buttonAttributes]="{'title': title}"
|
|
2397
2410
|
[textField]="textField"
|
|
2398
2411
|
[popupSettings]="popupSettings"
|
|
2399
2412
|
[fillMode]="fillMode"
|
|
@@ -2424,27 +2437,28 @@ ToolBarDropDownButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
|
2424
2437
|
</span>
|
|
2425
2438
|
</div>
|
|
2426
2439
|
<ng-container *ngFor="let item of data; let i = index">
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2440
|
+
<div #listItem
|
|
2441
|
+
tabindex="-1"
|
|
2442
|
+
role="menuitem"
|
|
2443
|
+
class="k-item k-menu-item"
|
|
2444
|
+
[class.k-disabled]="disabled || item.disabled"
|
|
2445
|
+
(click)="handleClick($event, item, i)">
|
|
2446
|
+
<span
|
|
2447
|
+
class="k-link k-menu-link"
|
|
2448
|
+
[ngClass]="item.cssClass"
|
|
2449
|
+
>
|
|
2450
|
+
<kendo-icon-wrapper
|
|
2451
|
+
*ngIf="item.icon || item.iconClass || item.svgIcon"
|
|
2452
|
+
[name]="item.icon"
|
|
2453
|
+
[customFontClass]="item.iconClass"
|
|
2454
|
+
[svgIcon]="item.svgIcon"
|
|
2455
|
+
></kendo-icon-wrapper>
|
|
2456
|
+
<span *ngIf="getText(item)" class="k-menu-link-text">{{ getText(item) }}</span>
|
|
2457
|
+
</span>
|
|
2458
|
+
</div>
|
|
2445
2459
|
</ng-container>
|
|
2446
2460
|
</ng-template>
|
|
2447
|
-
`, isInline: true, components: [{ type: i1$1.DropDownButtonComponent, selector: "kendo-dropdownbutton", inputs: ["icon", "svgIcon", "iconClass", "imageUrl", "textField", "data", "size", "rounded", "fillMode", "themeColor"], outputs: ["itemClick", "focus", "blur"], exportAs: ["kendoDropDownButton"] }, { type: i2$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
2461
|
+
`, isInline: true, components: [{ type: i1$1.DropDownButtonComponent, selector: "kendo-dropdownbutton", inputs: ["arrowIcon", "icon", "svgIcon", "iconClass", "imageUrl", "textField", "data", "size", "rounded", "fillMode", "themeColor", "buttonAttributes"], outputs: ["itemClick", "focus", "blur"], exportAs: ["kendoDropDownButton"] }, { type: i2$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
2448
2462
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ToolBarDropDownButtonComponent, decorators: [{
|
|
2449
2463
|
type: Component,
|
|
2450
2464
|
args: [{
|
|
@@ -2460,10 +2474,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
2460
2474
|
[iconClass]="toolbarOptions.iconClass"
|
|
2461
2475
|
[svgIcon]="toolbarOptions.svgIcon"
|
|
2462
2476
|
[imageUrl]="toolbarOptions.imageUrl"
|
|
2477
|
+
[arrowIcon]="arrowIcon"
|
|
2463
2478
|
[buttonClass]="buttonClass"
|
|
2464
2479
|
[disabled]="disabled"
|
|
2465
2480
|
[tabIndex]="-1"
|
|
2466
2481
|
[data]="data"
|
|
2482
|
+
[buttonAttributes]="{'title': title}"
|
|
2467
2483
|
[textField]="textField"
|
|
2468
2484
|
[popupSettings]="popupSettings"
|
|
2469
2485
|
[fillMode]="fillMode"
|
|
@@ -2494,29 +2510,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
2494
2510
|
</span>
|
|
2495
2511
|
</div>
|
|
2496
2512
|
<ng-container *ngFor="let item of data; let i = index">
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2513
|
+
<div #listItem
|
|
2514
|
+
tabindex="-1"
|
|
2515
|
+
role="menuitem"
|
|
2516
|
+
class="k-item k-menu-item"
|
|
2517
|
+
[class.k-disabled]="disabled || item.disabled"
|
|
2518
|
+
(click)="handleClick($event, item, i)">
|
|
2519
|
+
<span
|
|
2520
|
+
class="k-link k-menu-link"
|
|
2521
|
+
[ngClass]="item.cssClass"
|
|
2522
|
+
>
|
|
2523
|
+
<kendo-icon-wrapper
|
|
2524
|
+
*ngIf="item.icon || item.iconClass || item.svgIcon"
|
|
2525
|
+
[name]="item.icon"
|
|
2526
|
+
[customFontClass]="item.iconClass"
|
|
2527
|
+
[svgIcon]="item.svgIcon"
|
|
2528
|
+
></kendo-icon-wrapper>
|
|
2529
|
+
<span *ngIf="getText(item)" class="k-menu-link-text">{{ getText(item) }}</span>
|
|
2530
|
+
</span>
|
|
2531
|
+
</div>
|
|
2515
2532
|
</ng-container>
|
|
2516
2533
|
</ng-template>
|
|
2517
2534
|
`
|
|
2518
2535
|
}]
|
|
2519
|
-
}], ctorParameters: function () { return []; }, propDecorators: {
|
|
2536
|
+
}], ctorParameters: function () { return []; }, propDecorators: { arrowIcon: [{
|
|
2537
|
+
type: Input
|
|
2538
|
+
}], title: [{
|
|
2539
|
+
type: Input
|
|
2540
|
+
}], showText: [{
|
|
2520
2541
|
type: Input
|
|
2521
2542
|
}], showIcon: [{
|
|
2522
2543
|
type: Input
|
|
@@ -2920,7 +2941,7 @@ ToolBarSplitButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
|
|
|
2920
2941
|
</div>
|
|
2921
2942
|
</ng-container>
|
|
2922
2943
|
</ng-template>
|
|
2923
|
-
`, isInline: true, components: [{ type: i1$1.SplitButtonComponent, selector: "kendo-splitbutton", inputs: ["text", "icon", "svgIcon", "iconClass", "type", "imageUrl", "size", "rounded", "fillMode", "themeColor", "disabled", "popupSettings", "tabIndex", "textField", "data", "buttonClass", "arrowButtonClass", "arrowButtonIcon", "arrowButtonSvgIcon"], outputs: ["buttonClick", "itemClick", "focus", "blur", "open", "close"], exportAs: ["kendoSplitButton"] }, { type: i2$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
2944
|
+
`, isInline: true, components: [{ type: i1$1.SplitButtonComponent, selector: "kendo-splitbutton", inputs: ["text", "icon", "svgIcon", "iconClass", "type", "imageUrl", "size", "rounded", "fillMode", "themeColor", "disabled", "popupSettings", "tabIndex", "textField", "data", "buttonClass", "arrowButtonClass", "arrowButtonIcon", "arrowButtonSvgIcon", "buttonAttributes"], outputs: ["buttonClick", "itemClick", "focus", "blur", "open", "close"], exportAs: ["kendoSplitButton"] }, { type: i2$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
2924
2945
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ToolBarSplitButtonComponent, decorators: [{
|
|
2925
2946
|
type: Component,
|
|
2926
2947
|
args: [{
|
|
@@ -3234,7 +3255,7 @@ ToolBarButtonListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
3234
3255
|
>
|
|
3235
3256
|
{{ getText(item) }}
|
|
3236
3257
|
</button>
|
|
3237
|
-
`, isInline: true, components: [{ type: i1$1.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }], directives: [{ type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
3258
|
+
`, isInline: true, components: [{ type: i1$1.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }], directives: [{ type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
3238
3259
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ToolBarButtonListComponent, decorators: [{
|
|
3239
3260
|
type: Component,
|
|
3240
3261
|
args: [{
|
|
@@ -28,8 +28,8 @@ const packageMetadata = {
|
|
|
28
28
|
name: '@progress/kendo-angular-toolbar',
|
|
29
29
|
productName: 'Kendo UI for Angular',
|
|
30
30
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
31
|
-
publishDate:
|
|
32
|
-
version: '13.6.0-develop.
|
|
31
|
+
publishDate: 1695886951,
|
|
32
|
+
version: '13.6.0-develop.7',
|
|
33
33
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
34
34
|
};
|
|
35
35
|
|
|
@@ -939,6 +939,7 @@ class ToolBarComponent {
|
|
|
939
939
|
}
|
|
940
940
|
ngOnInit() {
|
|
941
941
|
this.subscriptions.add(this.localization.changes.subscribe(({ rtl }) => (this.direction = rtl ? 'rtl' : 'ltr')));
|
|
942
|
+
this.zone.onStable.pipe(take(1)).subscribe(() => this.onResize());
|
|
942
943
|
if (isDocumentAvailable()) {
|
|
943
944
|
this.zone.runOutsideAngular(() => this.subscriptions.add(fromEvent(document, 'click')
|
|
944
945
|
.pipe(filter(() => !!this.popupRef), filter((ev) => !this.popupRef.popup.instance.container.nativeElement.contains(ev.target)), filter((ev) => !this.overflowButton.nativeElement.contains(ev.target)))
|
|
@@ -1308,7 +1309,7 @@ ToolBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
|
|
|
1308
1309
|
</ng-template>
|
|
1309
1310
|
<ng-container #container></ng-container>
|
|
1310
1311
|
<kendo-resize-sensor *ngIf="overflow" #resizeSensor></kendo-resize-sensor>
|
|
1311
|
-
`, isInline: true, components: [{ type: ToolBarRendererComponent, selector: "kendo-toolbar-renderer", inputs: ["tool", "location", "resizable"], outputs: ["rendererClick"], exportAs: ["kendoToolBarRenderer"] }, { type: i1$1.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i7.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: LocalizedToolbarMessagesDirective, selector: "[kendoToolbarLocalizedMessages]" }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
1312
|
+
`, isInline: true, components: [{ type: ToolBarRendererComponent, selector: "kendo-toolbar-renderer", inputs: ["tool", "location", "resizable"], outputs: ["rendererClick"], exportAs: ["kendoToolBarRenderer"] }, { type: i1$1.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i7.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: LocalizedToolbarMessagesDirective, selector: "[kendoToolbarLocalizedMessages]" }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
1312
1313
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ToolBarComponent, decorators: [{
|
|
1313
1314
|
type: Component,
|
|
1314
1315
|
args: [{
|
|
@@ -1657,7 +1658,7 @@ class ToolBarButtonComponent extends ToolBarToolComponent {
|
|
|
1657
1658
|
this.selectedChange.emit(state);
|
|
1658
1659
|
}
|
|
1659
1660
|
getButton() {
|
|
1660
|
-
return (this.
|
|
1661
|
+
return (this.overflowButtonElement || this.toolbarButtonElement).nativeElement;
|
|
1661
1662
|
}
|
|
1662
1663
|
setTextDisplayMode() {
|
|
1663
1664
|
this.toolbarOptions.text = this.showText === 'overflow' ? undefined : this.text;
|
|
@@ -1719,7 +1720,7 @@ ToolBarButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1719
1720
|
</span>
|
|
1720
1721
|
</div>
|
|
1721
1722
|
</ng-template>
|
|
1722
|
-
`, isInline: true, components: [{ type: i1$1.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i2$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1723
|
+
`, isInline: true, components: [{ type: i1$1.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i2$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1723
1724
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ToolBarButtonComponent, decorators: [{
|
|
1724
1725
|
type: Component,
|
|
1725
1726
|
args: [{
|
|
@@ -1831,7 +1832,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1831
1832
|
args: ['toolbarButton', { read: ElementRef }]
|
|
1832
1833
|
}], overflowButtonElement: [{
|
|
1833
1834
|
type: ViewChild,
|
|
1834
|
-
args: ['overflowButton', { read: ElementRef
|
|
1835
|
+
args: ['overflowButton', { read: ElementRef }]
|
|
1835
1836
|
}] } });
|
|
1836
1837
|
|
|
1837
1838
|
/**
|
|
@@ -2026,7 +2027,7 @@ ToolBarButtonGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
|
|
|
2026
2027
|
</div>
|
|
2027
2028
|
</ng-container>
|
|
2028
2029
|
</ng-template>
|
|
2029
|
-
`, isInline: true, components: [{ type: i1$1.ButtonGroupComponent, selector: "kendo-buttongroup", inputs: ["disabled", "selection", "width", "tabIndex", "navigable"], outputs: ["navigate"], exportAs: ["kendoButtonGroup"] }, { type: i1$1.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i2$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2030
|
+
`, isInline: true, components: [{ type: i1$1.ButtonGroupComponent, selector: "kendo-buttongroup", inputs: ["disabled", "selection", "width", "tabIndex", "navigable"], outputs: ["navigate"], exportAs: ["kendoButtonGroup"] }, { type: i1$1.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i2$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2030
2031
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ToolBarButtonGroupComponent, decorators: [{
|
|
2031
2032
|
type: Component,
|
|
2032
2033
|
args: [{
|
|
@@ -2127,6 +2128,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
2127
2128
|
class ToolBarDropDownButtonComponent extends ToolBarToolComponent {
|
|
2128
2129
|
constructor() {
|
|
2129
2130
|
super();
|
|
2131
|
+
/**
|
|
2132
|
+
* Allows showing the default arrow icon or providing alternative one instead.
|
|
2133
|
+
* @default false
|
|
2134
|
+
*/
|
|
2135
|
+
this.arrowIcon = false;
|
|
2136
|
+
/**
|
|
2137
|
+
* Sets the `title` attribute of the underlying button element.
|
|
2138
|
+
* @default ''
|
|
2139
|
+
*/
|
|
2140
|
+
this.title = '';
|
|
2130
2141
|
/**
|
|
2131
2142
|
* Defines the location of the button icon that will be displayed.
|
|
2132
2143
|
*/
|
|
@@ -2379,7 +2390,7 @@ class ToolBarDropDownButtonComponent extends ToolBarToolComponent {
|
|
|
2379
2390
|
}
|
|
2380
2391
|
}
|
|
2381
2392
|
ToolBarDropDownButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ToolBarDropDownButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2382
|
-
ToolBarDropDownButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ToolBarDropDownButtonComponent, selector: "kendo-toolbar-dropdownbutton", inputs: { showText: "showText", showIcon: "showIcon", text: "text", icon: "icon", svgIcon: "svgIcon", iconClass: "iconClass", imageUrl: "imageUrl", popupSettings: "popupSettings", look: "look", primary: "primary", fillMode: "fillMode", themeColor: "themeColor", buttonClass: "buttonClass", textField: "textField", disabled: "disabled", data: "data" }, outputs: { itemClick: "itemClick", open: "open", close: "close" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarDropDownButtonComponent) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "dropdownButton", first: true, predicate: ["dropdownButton"], descendants: true, read: ElementRef, static: true }, { propertyName: "dropDownButtonComponent", first: true, predicate: DropDownButtonComponent, descendants: true }, { propertyName: "toolbarDropDownButton", first: true, predicate: ["toolbarDropDownButton"], descendants: true }, { propertyName: "overflowListItems", predicate: ["listItem"], descendants: true }], exportAs: ["kendoToolBarDropDownButton"], usesInheritance: true, ngImport: i0, template: `
|
|
2393
|
+
ToolBarDropDownButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ToolBarDropDownButtonComponent, selector: "kendo-toolbar-dropdownbutton", inputs: { arrowIcon: "arrowIcon", title: "title", showText: "showText", showIcon: "showIcon", text: "text", icon: "icon", svgIcon: "svgIcon", iconClass: "iconClass", imageUrl: "imageUrl", popupSettings: "popupSettings", look: "look", primary: "primary", fillMode: "fillMode", themeColor: "themeColor", buttonClass: "buttonClass", textField: "textField", disabled: "disabled", data: "data" }, outputs: { itemClick: "itemClick", open: "open", close: "close" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarDropDownButtonComponent) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "dropdownButton", first: true, predicate: ["dropdownButton"], descendants: true, read: ElementRef, static: true }, { propertyName: "dropDownButtonComponent", first: true, predicate: DropDownButtonComponent, descendants: true }, { propertyName: "toolbarDropDownButton", first: true, predicate: ["toolbarDropDownButton"], descendants: true }, { propertyName: "overflowListItems", predicate: ["listItem"], descendants: true }], exportAs: ["kendoToolBarDropDownButton"], usesInheritance: true, ngImport: i0, template: `
|
|
2383
2394
|
<ng-template #toolbarTemplate>
|
|
2384
2395
|
<kendo-dropdownbutton
|
|
2385
2396
|
#toolbarDropDownButton
|
|
@@ -2388,10 +2399,12 @@ ToolBarDropDownButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
|
2388
2399
|
[iconClass]="toolbarOptions.iconClass"
|
|
2389
2400
|
[svgIcon]="toolbarOptions.svgIcon"
|
|
2390
2401
|
[imageUrl]="toolbarOptions.imageUrl"
|
|
2402
|
+
[arrowIcon]="arrowIcon"
|
|
2391
2403
|
[buttonClass]="buttonClass"
|
|
2392
2404
|
[disabled]="disabled"
|
|
2393
2405
|
[tabIndex]="-1"
|
|
2394
2406
|
[data]="data"
|
|
2407
|
+
[buttonAttributes]="{'title': title}"
|
|
2395
2408
|
[textField]="textField"
|
|
2396
2409
|
[popupSettings]="popupSettings"
|
|
2397
2410
|
[fillMode]="fillMode"
|
|
@@ -2422,27 +2435,28 @@ ToolBarDropDownButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
|
2422
2435
|
</span>
|
|
2423
2436
|
</div>
|
|
2424
2437
|
<ng-container *ngFor="let item of data; let i = index">
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2438
|
+
<div #listItem
|
|
2439
|
+
tabindex="-1"
|
|
2440
|
+
role="menuitem"
|
|
2441
|
+
class="k-item k-menu-item"
|
|
2442
|
+
[class.k-disabled]="disabled || item.disabled"
|
|
2443
|
+
(click)="handleClick($event, item, i)">
|
|
2444
|
+
<span
|
|
2445
|
+
class="k-link k-menu-link"
|
|
2446
|
+
[ngClass]="item.cssClass"
|
|
2447
|
+
>
|
|
2448
|
+
<kendo-icon-wrapper
|
|
2449
|
+
*ngIf="item.icon || item.iconClass || item.svgIcon"
|
|
2450
|
+
[name]="item.icon"
|
|
2451
|
+
[customFontClass]="item.iconClass"
|
|
2452
|
+
[svgIcon]="item.svgIcon"
|
|
2453
|
+
></kendo-icon-wrapper>
|
|
2454
|
+
<span *ngIf="getText(item)" class="k-menu-link-text">{{ getText(item) }}</span>
|
|
2455
|
+
</span>
|
|
2456
|
+
</div>
|
|
2443
2457
|
</ng-container>
|
|
2444
2458
|
</ng-template>
|
|
2445
|
-
`, isInline: true, components: [{ type: i1$1.DropDownButtonComponent, selector: "kendo-dropdownbutton", inputs: ["icon", "svgIcon", "iconClass", "imageUrl", "textField", "data", "size", "rounded", "fillMode", "themeColor"], outputs: ["itemClick", "focus", "blur"], exportAs: ["kendoDropDownButton"] }, { type: i2$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
2459
|
+
`, isInline: true, components: [{ type: i1$1.DropDownButtonComponent, selector: "kendo-dropdownbutton", inputs: ["arrowIcon", "icon", "svgIcon", "iconClass", "imageUrl", "textField", "data", "size", "rounded", "fillMode", "themeColor", "buttonAttributes"], outputs: ["itemClick", "focus", "blur"], exportAs: ["kendoDropDownButton"] }, { type: i2$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
2446
2460
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ToolBarDropDownButtonComponent, decorators: [{
|
|
2447
2461
|
type: Component,
|
|
2448
2462
|
args: [{
|
|
@@ -2458,10 +2472,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
2458
2472
|
[iconClass]="toolbarOptions.iconClass"
|
|
2459
2473
|
[svgIcon]="toolbarOptions.svgIcon"
|
|
2460
2474
|
[imageUrl]="toolbarOptions.imageUrl"
|
|
2475
|
+
[arrowIcon]="arrowIcon"
|
|
2461
2476
|
[buttonClass]="buttonClass"
|
|
2462
2477
|
[disabled]="disabled"
|
|
2463
2478
|
[tabIndex]="-1"
|
|
2464
2479
|
[data]="data"
|
|
2480
|
+
[buttonAttributes]="{'title': title}"
|
|
2465
2481
|
[textField]="textField"
|
|
2466
2482
|
[popupSettings]="popupSettings"
|
|
2467
2483
|
[fillMode]="fillMode"
|
|
@@ -2492,29 +2508,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
2492
2508
|
</span>
|
|
2493
2509
|
</div>
|
|
2494
2510
|
<ng-container *ngFor="let item of data; let i = index">
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2511
|
+
<div #listItem
|
|
2512
|
+
tabindex="-1"
|
|
2513
|
+
role="menuitem"
|
|
2514
|
+
class="k-item k-menu-item"
|
|
2515
|
+
[class.k-disabled]="disabled || item.disabled"
|
|
2516
|
+
(click)="handleClick($event, item, i)">
|
|
2517
|
+
<span
|
|
2518
|
+
class="k-link k-menu-link"
|
|
2519
|
+
[ngClass]="item.cssClass"
|
|
2520
|
+
>
|
|
2521
|
+
<kendo-icon-wrapper
|
|
2522
|
+
*ngIf="item.icon || item.iconClass || item.svgIcon"
|
|
2523
|
+
[name]="item.icon"
|
|
2524
|
+
[customFontClass]="item.iconClass"
|
|
2525
|
+
[svgIcon]="item.svgIcon"
|
|
2526
|
+
></kendo-icon-wrapper>
|
|
2527
|
+
<span *ngIf="getText(item)" class="k-menu-link-text">{{ getText(item) }}</span>
|
|
2528
|
+
</span>
|
|
2529
|
+
</div>
|
|
2513
2530
|
</ng-container>
|
|
2514
2531
|
</ng-template>
|
|
2515
2532
|
`
|
|
2516
2533
|
}]
|
|
2517
|
-
}], ctorParameters: function () { return []; }, propDecorators: {
|
|
2534
|
+
}], ctorParameters: function () { return []; }, propDecorators: { arrowIcon: [{
|
|
2535
|
+
type: Input
|
|
2536
|
+
}], title: [{
|
|
2537
|
+
type: Input
|
|
2538
|
+
}], showText: [{
|
|
2518
2539
|
type: Input
|
|
2519
2540
|
}], showIcon: [{
|
|
2520
2541
|
type: Input
|
|
@@ -2918,7 +2939,7 @@ ToolBarSplitButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
|
|
|
2918
2939
|
</div>
|
|
2919
2940
|
</ng-container>
|
|
2920
2941
|
</ng-template>
|
|
2921
|
-
`, isInline: true, components: [{ type: i1$1.SplitButtonComponent, selector: "kendo-splitbutton", inputs: ["text", "icon", "svgIcon", "iconClass", "type", "imageUrl", "size", "rounded", "fillMode", "themeColor", "disabled", "popupSettings", "tabIndex", "textField", "data", "buttonClass", "arrowButtonClass", "arrowButtonIcon", "arrowButtonSvgIcon"], outputs: ["buttonClick", "itemClick", "focus", "blur", "open", "close"], exportAs: ["kendoSplitButton"] }, { type: i2$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
2942
|
+
`, isInline: true, components: [{ type: i1$1.SplitButtonComponent, selector: "kendo-splitbutton", inputs: ["text", "icon", "svgIcon", "iconClass", "type", "imageUrl", "size", "rounded", "fillMode", "themeColor", "disabled", "popupSettings", "tabIndex", "textField", "data", "buttonClass", "arrowButtonClass", "arrowButtonIcon", "arrowButtonSvgIcon", "buttonAttributes"], outputs: ["buttonClick", "itemClick", "focus", "blur", "open", "close"], exportAs: ["kendoSplitButton"] }, { type: i2$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
2922
2943
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ToolBarSplitButtonComponent, decorators: [{
|
|
2923
2944
|
type: Component,
|
|
2924
2945
|
args: [{
|
|
@@ -3232,7 +3253,7 @@ ToolBarButtonListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
3232
3253
|
>
|
|
3233
3254
|
{{ getText(item) }}
|
|
3234
3255
|
</button>
|
|
3235
|
-
`, isInline: true, components: [{ type: i1$1.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }], directives: [{ type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
3256
|
+
`, isInline: true, components: [{ type: i1$1.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }], directives: [{ type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
3236
3257
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ToolBarButtonListComponent, decorators: [{
|
|
3237
3258
|
type: Component,
|
|
3238
3259
|
args: [{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-toolbar",
|
|
3
|
-
"version": "13.6.0-develop.
|
|
3
|
+
"version": "13.6.0-develop.7",
|
|
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",
|
|
@@ -29,16 +29,16 @@
|
|
|
29
29
|
"@angular/core": "13 - 16",
|
|
30
30
|
"@angular/platform-browser": "13 - 16",
|
|
31
31
|
"@progress/kendo-licensing": "^1.0.2",
|
|
32
|
-
"@progress/kendo-angular-buttons": "13.6.0-develop.
|
|
33
|
-
"@progress/kendo-angular-common": "13.6.0-develop.
|
|
34
|
-
"@progress/kendo-angular-l10n": "13.6.0-develop.
|
|
35
|
-
"@progress/kendo-angular-icons": "13.6.0-develop.
|
|
36
|
-
"@progress/kendo-angular-popup": "13.6.0-develop.
|
|
32
|
+
"@progress/kendo-angular-buttons": "13.6.0-develop.7",
|
|
33
|
+
"@progress/kendo-angular-common": "13.6.0-develop.7",
|
|
34
|
+
"@progress/kendo-angular-l10n": "13.6.0-develop.7",
|
|
35
|
+
"@progress/kendo-angular-icons": "13.6.0-develop.7",
|
|
36
|
+
"@progress/kendo-angular-popup": "13.6.0-develop.7",
|
|
37
37
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"tslib": "^2.3.1",
|
|
41
|
-
"@progress/kendo-angular-schematics": "13.6.0-develop.
|
|
41
|
+
"@progress/kendo-angular-schematics": "13.6.0-develop.7"
|
|
42
42
|
},
|
|
43
43
|
"schematics": "./schematics/collection.json",
|
|
44
44
|
"module": "fesm2015/progress-kendo-angular-toolbar.mjs",
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { ElementRef, TemplateRef, EventEmitter, OnInit, QueryList } from '@angular/core';
|
|
6
6
|
import { ToolBarToolComponent } from './toolbar-tool.component';
|
|
7
7
|
import { PopupSettings } from '../popup-settings';
|
|
8
|
-
import { ButtonFillMode, ButtonThemeColor, DropDownButtonComponent } from '@progress/kendo-angular-buttons';
|
|
8
|
+
import { ArrowIconSettings, ButtonFillMode, ButtonThemeColor, DropDownButtonComponent } from '@progress/kendo-angular-buttons';
|
|
9
9
|
import { DisplayMode } from '../display-mode';
|
|
10
10
|
import { ToolOptions } from '../tool-options';
|
|
11
11
|
import { PreventableEvent } from '@progress/kendo-angular-buttons';
|
|
@@ -15,6 +15,16 @@ import * as i0 from "@angular/core";
|
|
|
15
15
|
* Represents the [Kendo UI ToolBar DropDownButton for Angular]({% slug controltypes_toolbar %}#toc-dropdownbuttons).
|
|
16
16
|
*/
|
|
17
17
|
export declare class ToolBarDropDownButtonComponent extends ToolBarToolComponent implements OnInit {
|
|
18
|
+
/**
|
|
19
|
+
* Allows showing the default arrow icon or providing alternative one instead.
|
|
20
|
+
* @default false
|
|
21
|
+
*/
|
|
22
|
+
arrowIcon: boolean | ArrowIconSettings;
|
|
23
|
+
/**
|
|
24
|
+
* Sets the `title` attribute of the underlying button element.
|
|
25
|
+
* @default ''
|
|
26
|
+
*/
|
|
27
|
+
title: string;
|
|
18
28
|
/**
|
|
19
29
|
* Defines the location of the button text that will be displayed.
|
|
20
30
|
*/
|
|
@@ -177,5 +187,5 @@ export declare class ToolBarDropDownButtonComponent extends ToolBarToolComponent
|
|
|
177
187
|
private focusButton;
|
|
178
188
|
private setTextDisplayMode;
|
|
179
189
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToolBarDropDownButtonComponent, never>;
|
|
180
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ToolBarDropDownButtonComponent, "kendo-toolbar-dropdownbutton", ["kendoToolBarDropDownButton"], { "showText": "showText"; "showIcon": "showIcon"; "text": "text"; "icon": "icon"; "svgIcon": "svgIcon"; "iconClass": "iconClass"; "imageUrl": "imageUrl"; "popupSettings": "popupSettings"; "look": "look"; "primary": "primary"; "fillMode": "fillMode"; "themeColor": "themeColor"; "buttonClass": "buttonClass"; "textField": "textField"; "disabled": "disabled"; "data": "data"; }, { "itemClick": "itemClick"; "open": "open"; "close": "close"; }, never, never>;
|
|
190
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToolBarDropDownButtonComponent, "kendo-toolbar-dropdownbutton", ["kendoToolBarDropDownButton"], { "arrowIcon": "arrowIcon"; "title": "title"; "showText": "showText"; "showIcon": "showIcon"; "text": "text"; "icon": "icon"; "svgIcon": "svgIcon"; "iconClass": "iconClass"; "imageUrl": "imageUrl"; "popupSettings": "popupSettings"; "look": "look"; "primary": "primary"; "fillMode": "fillMode"; "themeColor": "themeColor"; "buttonClass": "buttonClass"; "textField": "textField"; "disabled": "disabled"; "data": "data"; }, { "itemClick": "itemClick"; "open": "open"; "close": "close"; }, never, never>;
|
|
181
191
|
}
|