@progress/kendo-angular-toolbar 21.1.1-develop.2 → 21.2.0-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/toolbar.component.mjs +146 -104
- package/esm2022/tools/toolbar-button.component.mjs +220 -192
- package/esm2022/tools/toolbar-buttongroup.component.mjs +195 -183
- package/esm2022/tools/toolbar-dropdownbutton.component.mjs +177 -165
- package/esm2022/tools/toolbar-splitbutton.component.mjs +191 -179
- package/fesm2022/progress-kendo-angular-toolbar.mjs +927 -821
- package/package.json +9 -9
|
@@ -7,7 +7,7 @@ import { ToolBarToolComponent } from './toolbar-tool.component';
|
|
|
7
7
|
import { DropDownButtonComponent } from '@progress/kendo-angular-buttons';
|
|
8
8
|
import { getValueForLocation, makePeeker, getIndexOfFocused, getPrevKey, getNextKey, seekFocusedIndex, areEqual } from '../util';
|
|
9
9
|
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
10
|
-
import { NgClass
|
|
10
|
+
import { NgClass } from '@angular/common';
|
|
11
11
|
import { take } from 'rxjs/operators';
|
|
12
12
|
import { ToolBarComponent } from '../toolbar.component';
|
|
13
13
|
import { normalizeNumpadKeys } from '@progress/kendo-angular-common';
|
|
@@ -332,98 +332,104 @@ export class ToolBarDropDownButtonComponent extends ToolBarToolComponent {
|
|
|
332
332
|
this.overflowOptions.text = this.showText === 'toolbar' || this.showText === 'never' ? undefined : this.text;
|
|
333
333
|
}
|
|
334
334
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolBarDropDownButtonComponent, deps: [{ token: i0.NgZone }, { token: i0.Renderer2 }, { token: i1.ToolBarComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
335
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
335
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ToolBarDropDownButtonComponent, isStandalone: true, 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: "dropdownButton", first: true, predicate: ["dropdownButton"], descendants: true, read: ElementRef, static: true }, { propertyName: "toolbarDropDownButton", first: true, predicate: ["toolbarDropDownButton"], descendants: true }, { propertyName: "sectionDropDownButton", first: true, predicate: ["sectionDropDownButton"], descendants: true }, { propertyName: "overflowListItems", predicate: ["listItem"], descendants: true }], exportAs: ["kendoToolBarDropDownButton"], usesInheritance: true, ngImport: i0, template: `
|
|
336
336
|
<ng-template #toolbarTemplate>
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
337
|
+
<kendo-dropdownbutton #toolbarDropDownButton
|
|
338
|
+
[icon]="toolbarOptions.icon"
|
|
339
|
+
[iconClass]="toolbarOptions.iconClass"
|
|
340
|
+
[svgIcon]="toolbarOptions.svgIcon"
|
|
341
|
+
[imageUrl]="toolbarOptions.imageUrl"
|
|
342
|
+
[arrowIcon]="arrowIcon"
|
|
343
|
+
[buttonClass]="buttonClass"
|
|
344
|
+
[disabled]="disabled"
|
|
345
|
+
[size]="size"
|
|
346
|
+
[tabIndex]="-1"
|
|
347
|
+
[data]="data"
|
|
348
|
+
[buttonAttributes]="{'title': title}"
|
|
349
|
+
[textField]="textField"
|
|
350
|
+
[popupSettings]="popupSettings"
|
|
351
|
+
[fillMode]="fillMode"
|
|
352
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
353
|
+
(open)="open.emit($event)"
|
|
354
|
+
(close)="close.emit($event)"
|
|
355
|
+
(itemClick)="itemClick.emit($event)"
|
|
356
356
|
>
|
|
357
|
-
|
|
358
|
-
|
|
357
|
+
{{ toolbarOptions.text }}
|
|
358
|
+
</kendo-dropdownbutton>
|
|
359
359
|
</ng-template>
|
|
360
|
-
|
|
360
|
+
|
|
361
361
|
<ng-template #popupTemplate>
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
362
|
+
<div
|
|
363
|
+
tabindex="-1"
|
|
364
|
+
role="menuitem"
|
|
365
|
+
class="k-item k-menu-item k-disabled"
|
|
366
|
+
[ngClass]="buttonClass">
|
|
367
|
+
<span
|
|
368
|
+
[ngClass]="{'k-link': true, 'k-menu-link': true}"
|
|
369
|
+
>
|
|
370
|
+
@if (overflowOptions.icon || overflowOptions.iconClass || overflowOptions.svgIcon) {
|
|
371
|
+
<kendo-icon-wrapper
|
|
372
|
+
[name]="overflowOptions.icon"
|
|
373
|
+
[customFontClass]="overflowOptions.iconClass"
|
|
374
|
+
[svgIcon]="overflowOptions.svgIcon"
|
|
375
|
+
></kendo-icon-wrapper>
|
|
376
|
+
}
|
|
377
|
+
@if (overflowOptions.text) {
|
|
378
|
+
<span class="k-menu-link-text">{{overflowOptions.text}}</span>
|
|
379
|
+
}
|
|
380
|
+
</span>
|
|
381
|
+
</div>
|
|
382
|
+
@for (item of data; track item; let i = $index) {
|
|
383
|
+
<div #listItem
|
|
384
|
+
tabindex="-1"
|
|
385
|
+
role="menuitem"
|
|
386
|
+
class="k-item k-menu-item"
|
|
387
|
+
[class.k-disabled]="disabled || item.disabled"
|
|
388
|
+
(click)="handleClick($event, item, i)">
|
|
389
|
+
<span
|
|
390
|
+
class="k-link k-menu-link"
|
|
391
|
+
[ngClass]="item.cssClass"
|
|
369
392
|
>
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
393
|
+
@if (item.icon || item.iconClass || item.svgIcon) {
|
|
394
|
+
<kendo-icon-wrapper
|
|
395
|
+
[name]="item.icon"
|
|
396
|
+
[customFontClass]="item.iconClass"
|
|
397
|
+
[svgIcon]="item.svgIcon"
|
|
398
|
+
></kendo-icon-wrapper>
|
|
399
|
+
}
|
|
400
|
+
@if (getText(item)) {
|
|
401
|
+
<span class="k-menu-link-text">{{ getText(item) }}</span>
|
|
402
|
+
}
|
|
403
|
+
</span>
|
|
378
404
|
</div>
|
|
379
|
-
|
|
380
|
-
<div #listItem
|
|
381
|
-
tabindex="-1"
|
|
382
|
-
role="menuitem"
|
|
383
|
-
class="k-item k-menu-item"
|
|
384
|
-
[class.k-disabled]="disabled || item.disabled"
|
|
385
|
-
(click)="handleClick($event, item, i)">
|
|
386
|
-
<span
|
|
387
|
-
class="k-link k-menu-link"
|
|
388
|
-
[ngClass]="item.cssClass"
|
|
389
|
-
>
|
|
390
|
-
<kendo-icon-wrapper
|
|
391
|
-
*ngIf="item.icon || item.iconClass || item.svgIcon"
|
|
392
|
-
[name]="item.icon"
|
|
393
|
-
[customFontClass]="item.iconClass"
|
|
394
|
-
[svgIcon]="item.svgIcon"
|
|
395
|
-
></kendo-icon-wrapper>
|
|
396
|
-
<span *ngIf="getText(item)" class="k-menu-link-text">{{ getText(item) }}</span>
|
|
397
|
-
</span>
|
|
398
|
-
</div>
|
|
399
|
-
</ng-container>
|
|
405
|
+
}
|
|
400
406
|
</ng-template>
|
|
401
|
-
|
|
407
|
+
|
|
402
408
|
<ng-template #sectionTemplate>
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
409
|
+
<kendo-dropdownbutton #sectionDropDownButton
|
|
410
|
+
[icon]="toolbarOptions.icon"
|
|
411
|
+
[iconClass]="toolbarOptions.iconClass"
|
|
412
|
+
[svgIcon]="toolbarOptions.svgIcon"
|
|
413
|
+
[imageUrl]="toolbarOptions.imageUrl"
|
|
414
|
+
[arrowIcon]="arrowIcon"
|
|
415
|
+
[buttonClass]="buttonClass"
|
|
416
|
+
[disabled]="disabled"
|
|
417
|
+
[size]="size"
|
|
418
|
+
[tabIndex]="-1"
|
|
419
|
+
[data]="data"
|
|
420
|
+
[buttonAttributes]="{'title': title}"
|
|
421
|
+
[textField]="textField"
|
|
422
|
+
[popupSettings]="popupSettings"
|
|
423
|
+
[fillMode]="fillMode"
|
|
424
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
425
|
+
(open)="open.emit($event)"
|
|
426
|
+
(close)="close.emit($event)"
|
|
427
|
+
(itemClick)="itemClick.emit($event)"
|
|
422
428
|
>
|
|
423
|
-
|
|
424
|
-
|
|
429
|
+
{{ toolbarOptions.text }}
|
|
430
|
+
</kendo-dropdownbutton>
|
|
425
431
|
</ng-template>
|
|
426
|
-
|
|
432
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DropDownButtonComponent, selector: "kendo-dropdownbutton", inputs: ["arrowIcon", "icon", "svgIcon", "iconClass", "imageUrl", "textField", "data", "size", "rounded", "fillMode", "themeColor", "buttonAttributes"], outputs: ["itemClick", "focus", "blur"], exportAs: ["kendoDropDownButton"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
|
|
427
433
|
}
|
|
428
434
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolBarDropDownButtonComponent, decorators: [{
|
|
429
435
|
type: Component,
|
|
@@ -433,98 +439,104 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
433
439
|
selector: 'kendo-toolbar-dropdownbutton',
|
|
434
440
|
template: `
|
|
435
441
|
<ng-template #toolbarTemplate>
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
442
|
+
<kendo-dropdownbutton #toolbarDropDownButton
|
|
443
|
+
[icon]="toolbarOptions.icon"
|
|
444
|
+
[iconClass]="toolbarOptions.iconClass"
|
|
445
|
+
[svgIcon]="toolbarOptions.svgIcon"
|
|
446
|
+
[imageUrl]="toolbarOptions.imageUrl"
|
|
447
|
+
[arrowIcon]="arrowIcon"
|
|
448
|
+
[buttonClass]="buttonClass"
|
|
449
|
+
[disabled]="disabled"
|
|
450
|
+
[size]="size"
|
|
451
|
+
[tabIndex]="-1"
|
|
452
|
+
[data]="data"
|
|
453
|
+
[buttonAttributes]="{'title': title}"
|
|
454
|
+
[textField]="textField"
|
|
455
|
+
[popupSettings]="popupSettings"
|
|
456
|
+
[fillMode]="fillMode"
|
|
457
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
458
|
+
(open)="open.emit($event)"
|
|
459
|
+
(close)="close.emit($event)"
|
|
460
|
+
(itemClick)="itemClick.emit($event)"
|
|
455
461
|
>
|
|
456
|
-
|
|
457
|
-
|
|
462
|
+
{{ toolbarOptions.text }}
|
|
463
|
+
</kendo-dropdownbutton>
|
|
458
464
|
</ng-template>
|
|
459
|
-
|
|
465
|
+
|
|
460
466
|
<ng-template #popupTemplate>
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
467
|
+
<div
|
|
468
|
+
tabindex="-1"
|
|
469
|
+
role="menuitem"
|
|
470
|
+
class="k-item k-menu-item k-disabled"
|
|
471
|
+
[ngClass]="buttonClass">
|
|
472
|
+
<span
|
|
473
|
+
[ngClass]="{'k-link': true, 'k-menu-link': true}"
|
|
474
|
+
>
|
|
475
|
+
@if (overflowOptions.icon || overflowOptions.iconClass || overflowOptions.svgIcon) {
|
|
476
|
+
<kendo-icon-wrapper
|
|
477
|
+
[name]="overflowOptions.icon"
|
|
478
|
+
[customFontClass]="overflowOptions.iconClass"
|
|
479
|
+
[svgIcon]="overflowOptions.svgIcon"
|
|
480
|
+
></kendo-icon-wrapper>
|
|
481
|
+
}
|
|
482
|
+
@if (overflowOptions.text) {
|
|
483
|
+
<span class="k-menu-link-text">{{overflowOptions.text}}</span>
|
|
484
|
+
}
|
|
485
|
+
</span>
|
|
486
|
+
</div>
|
|
487
|
+
@for (item of data; track item; let i = $index) {
|
|
488
|
+
<div #listItem
|
|
489
|
+
tabindex="-1"
|
|
490
|
+
role="menuitem"
|
|
491
|
+
class="k-item k-menu-item"
|
|
492
|
+
[class.k-disabled]="disabled || item.disabled"
|
|
493
|
+
(click)="handleClick($event, item, i)">
|
|
494
|
+
<span
|
|
495
|
+
class="k-link k-menu-link"
|
|
496
|
+
[ngClass]="item.cssClass"
|
|
468
497
|
>
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
498
|
+
@if (item.icon || item.iconClass || item.svgIcon) {
|
|
499
|
+
<kendo-icon-wrapper
|
|
500
|
+
[name]="item.icon"
|
|
501
|
+
[customFontClass]="item.iconClass"
|
|
502
|
+
[svgIcon]="item.svgIcon"
|
|
503
|
+
></kendo-icon-wrapper>
|
|
504
|
+
}
|
|
505
|
+
@if (getText(item)) {
|
|
506
|
+
<span class="k-menu-link-text">{{ getText(item) }}</span>
|
|
507
|
+
}
|
|
508
|
+
</span>
|
|
477
509
|
</div>
|
|
478
|
-
|
|
479
|
-
<div #listItem
|
|
480
|
-
tabindex="-1"
|
|
481
|
-
role="menuitem"
|
|
482
|
-
class="k-item k-menu-item"
|
|
483
|
-
[class.k-disabled]="disabled || item.disabled"
|
|
484
|
-
(click)="handleClick($event, item, i)">
|
|
485
|
-
<span
|
|
486
|
-
class="k-link k-menu-link"
|
|
487
|
-
[ngClass]="item.cssClass"
|
|
488
|
-
>
|
|
489
|
-
<kendo-icon-wrapper
|
|
490
|
-
*ngIf="item.icon || item.iconClass || item.svgIcon"
|
|
491
|
-
[name]="item.icon"
|
|
492
|
-
[customFontClass]="item.iconClass"
|
|
493
|
-
[svgIcon]="item.svgIcon"
|
|
494
|
-
></kendo-icon-wrapper>
|
|
495
|
-
<span *ngIf="getText(item)" class="k-menu-link-text">{{ getText(item) }}</span>
|
|
496
|
-
</span>
|
|
497
|
-
</div>
|
|
498
|
-
</ng-container>
|
|
510
|
+
}
|
|
499
511
|
</ng-template>
|
|
500
|
-
|
|
512
|
+
|
|
501
513
|
<ng-template #sectionTemplate>
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
514
|
+
<kendo-dropdownbutton #sectionDropDownButton
|
|
515
|
+
[icon]="toolbarOptions.icon"
|
|
516
|
+
[iconClass]="toolbarOptions.iconClass"
|
|
517
|
+
[svgIcon]="toolbarOptions.svgIcon"
|
|
518
|
+
[imageUrl]="toolbarOptions.imageUrl"
|
|
519
|
+
[arrowIcon]="arrowIcon"
|
|
520
|
+
[buttonClass]="buttonClass"
|
|
521
|
+
[disabled]="disabled"
|
|
522
|
+
[size]="size"
|
|
523
|
+
[tabIndex]="-1"
|
|
524
|
+
[data]="data"
|
|
525
|
+
[buttonAttributes]="{'title': title}"
|
|
526
|
+
[textField]="textField"
|
|
527
|
+
[popupSettings]="popupSettings"
|
|
528
|
+
[fillMode]="fillMode"
|
|
529
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
530
|
+
(open)="open.emit($event)"
|
|
531
|
+
(close)="close.emit($event)"
|
|
532
|
+
(itemClick)="itemClick.emit($event)"
|
|
521
533
|
>
|
|
522
|
-
|
|
523
|
-
|
|
534
|
+
{{ toolbarOptions.text }}
|
|
535
|
+
</kendo-dropdownbutton>
|
|
524
536
|
</ng-template>
|
|
525
|
-
|
|
537
|
+
`,
|
|
526
538
|
standalone: true,
|
|
527
|
-
imports: [DropDownButtonComponent, NgClass,
|
|
539
|
+
imports: [DropDownButtonComponent, NgClass, IconWrapperComponent]
|
|
528
540
|
}]
|
|
529
541
|
}], ctorParameters: () => [{ type: i0.NgZone }, { type: i0.Renderer2 }, { type: i1.ToolBarComponent }], propDecorators: { arrowIcon: [{
|
|
530
542
|
type: Input
|