@progress/kendo-angular-toolbar 21.1.1-develop.2 → 21.2.0-develop.2
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
|
@@ -8,7 +8,7 @@ import { ToolBarToolComponent } from './toolbar-tool.component';
|
|
|
8
8
|
import { getValueForLocation, makePeeker, getIndexOfFocused, getPrevKey, getNextKey, seekFocusedIndex, areEqual } from '../util';
|
|
9
9
|
import { caretAltDownIcon } from '@progress/kendo-svg-icons';
|
|
10
10
|
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
11
|
-
import { NgClass
|
|
11
|
+
import { NgClass } from '@angular/common';
|
|
12
12
|
import { ToolBarComponent } from '../toolbar.component';
|
|
13
13
|
import { normalizeNumpadKeys } from '@progress/kendo-angular-common';
|
|
14
14
|
import * as i0 from "@angular/core";
|
|
@@ -328,105 +328,111 @@ export class ToolBarSplitButtonComponent extends ToolBarToolComponent {
|
|
|
328
328
|
this.overflowOptions.text = this.showText === 'toolbar' || this.showText === 'never' ? undefined : this.text;
|
|
329
329
|
}
|
|
330
330
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolBarSplitButtonComponent, deps: [{ token: i1.ToolBarComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
331
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
331
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ToolBarSplitButtonComponent, isStandalone: true, selector: "kendo-toolbar-splitbutton", inputs: { showText: "showText", showIcon: "showIcon", text: "text", icon: "icon", svgIcon: "svgIcon", iconClass: "iconClass", imageUrl: "imageUrl", disabled: "disabled", popupSettings: "popupSettings", fillMode: "fillMode", themeColor: "themeColor", look: "look", buttonClass: "buttonClass", arrowButtonClass: "arrowButtonClass", arrowButtonIcon: "arrowButtonIcon", arrowButtonSvgIcon: "arrowButtonSvgIcon", textField: "textField", data: "data" }, outputs: { buttonClick: "buttonClick", itemClick: "itemClick", open: "open", close: "close" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSplitButtonComponent) }], viewQueries: [{ propertyName: "toolbarSplitButton", first: true, predicate: ["toolbarSplitButton"], descendants: true }, { propertyName: "sectionSplitButton", first: true, predicate: ["sectionSplitButton"], descendants: true }, { propertyName: "overflowMainButton", first: true, predicate: ["overflowMainButton"], descendants: true, read: ElementRef }, { propertyName: "overflowListItems", predicate: ["listItem"], descendants: true }], exportAs: ["kendoToolBarSplitButton"], usesInheritance: true, ngImport: i0, template: `
|
|
332
332
|
<ng-template #toolbarTemplate>
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
333
|
+
<kendo-splitbutton
|
|
334
|
+
#toolbarSplitButton
|
|
335
|
+
class="k-toolbar-split-button"
|
|
336
|
+
[data]="data"
|
|
337
|
+
[text]="toolbarOptions.text"
|
|
338
|
+
[icon]="toolbarOptions.icon"
|
|
339
|
+
[iconClass]="toolbarOptions.iconClass"
|
|
340
|
+
[svgIcon]="toolbarOptions.svgIcon"
|
|
341
|
+
[imageUrl]="toolbarOptions.imageUrl"
|
|
342
|
+
[buttonClass]="buttonClass"
|
|
343
|
+
[arrowButtonClass]="arrowButtonClass"
|
|
344
|
+
[arrowButtonIcon]="arrowButtonIcon"
|
|
345
|
+
[arrowButtonSvgIcon]="arrowButtonSvgIcon"
|
|
346
|
+
[disabled]="disabled"
|
|
347
|
+
[size]="size"
|
|
348
|
+
[tabIndex]="-1"
|
|
349
|
+
[textField]="textField"
|
|
350
|
+
[popupSettings]="popupSettings"
|
|
351
|
+
[fillMode]="fillMode"
|
|
352
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
353
|
+
(buttonClick)="buttonClick.emit($event)"
|
|
354
|
+
(open)="open.emit($event)"
|
|
355
|
+
(close)="close.emit($event)"
|
|
356
|
+
(itemClick)="itemClick.emit($event)"
|
|
357
|
+
></kendo-splitbutton>
|
|
358
358
|
</ng-template>
|
|
359
359
|
<ng-template #popupTemplate>
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
360
|
+
<div #overflowMainButton
|
|
361
|
+
tabindex="-1"
|
|
362
|
+
role="menuitem"
|
|
363
|
+
class="k-item k-menu-item"
|
|
364
|
+
[class.k-disabled]="disabled"
|
|
365
|
+
[ngClass]="buttonClass"
|
|
366
|
+
(click)="onMainButtonClick($event)">
|
|
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
|
+
>
|
|
376
|
+
</kendo-icon-wrapper>
|
|
377
|
+
}
|
|
378
|
+
@if (overflowOptions.text) {
|
|
379
|
+
<span class="k-menu-link-text">{{overflowOptions.text}}</span>
|
|
380
|
+
}
|
|
381
|
+
</span>
|
|
382
|
+
</div>
|
|
383
|
+
@for (item of data; track item; let i = $index) {
|
|
381
384
|
<div #listItem
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
385
|
+
tabindex="-1"
|
|
386
|
+
role="menuitem"
|
|
387
|
+
class="k-item k-menu-item"
|
|
388
|
+
[class.k-disabled]="disabled || item.disabled"
|
|
389
|
+
(click)="handleClick($event, item, i)">
|
|
390
|
+
<span
|
|
391
|
+
class="k-link k-menu-link"
|
|
389
392
|
>
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
393
|
+
@if (item.icon || item.iconClass || item.svgIcon) {
|
|
394
|
+
<kendo-icon-wrapper
|
|
395
|
+
[name]="item.icon"
|
|
396
|
+
[customFontClass]="item.iconClass"
|
|
397
|
+
[svgIcon]="item.svgIcon"
|
|
395
398
|
>
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
+
</kendo-icon-wrapper>
|
|
400
|
+
}
|
|
401
|
+
@if (getText(item)) {
|
|
402
|
+
<span class="k-menu-link-text">{{ getText(item) }}</span>
|
|
403
|
+
}
|
|
404
|
+
</span>
|
|
399
405
|
</div>
|
|
400
|
-
|
|
406
|
+
}
|
|
401
407
|
</ng-template>
|
|
402
408
|
<ng-template #sectionTemplate>
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
409
|
+
<kendo-splitbutton
|
|
410
|
+
#sectionSplitButton
|
|
411
|
+
class="k-toolbar-split-button"
|
|
412
|
+
[data]="data"
|
|
413
|
+
[text]="toolbarOptions.text"
|
|
414
|
+
[icon]="toolbarOptions.icon"
|
|
415
|
+
[iconClass]="toolbarOptions.iconClass"
|
|
416
|
+
[svgIcon]="toolbarOptions.svgIcon"
|
|
417
|
+
[imageUrl]="toolbarOptions.imageUrl"
|
|
418
|
+
[buttonClass]="buttonClass"
|
|
419
|
+
[arrowButtonClass]="arrowButtonClass"
|
|
420
|
+
[arrowButtonIcon]="arrowButtonIcon"
|
|
421
|
+
[arrowButtonSvgIcon]="arrowButtonSvgIcon"
|
|
422
|
+
[disabled]="disabled"
|
|
423
|
+
[size]="size"
|
|
424
|
+
[tabIndex]="-1"
|
|
425
|
+
[textField]="textField"
|
|
426
|
+
[popupSettings]="popupSettings"
|
|
427
|
+
[fillMode]="fillMode"
|
|
428
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
429
|
+
(buttonClick)="buttonClick.emit($event)"
|
|
430
|
+
(open)="open.emit($event)"
|
|
431
|
+
(close)="close.emit($event)"
|
|
432
|
+
(itemClick)="itemClick.emit($event)"
|
|
433
|
+
></kendo-splitbutton>
|
|
428
434
|
</ng-template>
|
|
429
|
-
|
|
435
|
+
`, isInline: true, dependencies: [{ kind: "component", type: SplitButtonComponent, selector: "kendo-splitbutton", inputs: ["text", "icon", "svgIcon", "iconClass", "type", "imageUrl", "size", "rounded", "fillMode", "themeColor", "disabled", "popupSettings", "tabIndex", "textField", "data", "arrowButtonClass", "arrowButtonIcon", "arrowButtonSvgIcon", "buttonAttributes"], outputs: ["buttonClick", "itemClick", "focus", "blur", "open", "close"], exportAs: ["kendoSplitButton"] }, { 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"] }] });
|
|
430
436
|
}
|
|
431
437
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolBarSplitButtonComponent, decorators: [{
|
|
432
438
|
type: Component,
|
|
@@ -436,105 +442,111 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
436
442
|
selector: 'kendo-toolbar-splitbutton',
|
|
437
443
|
template: `
|
|
438
444
|
<ng-template #toolbarTemplate>
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
445
|
+
<kendo-splitbutton
|
|
446
|
+
#toolbarSplitButton
|
|
447
|
+
class="k-toolbar-split-button"
|
|
448
|
+
[data]="data"
|
|
449
|
+
[text]="toolbarOptions.text"
|
|
450
|
+
[icon]="toolbarOptions.icon"
|
|
451
|
+
[iconClass]="toolbarOptions.iconClass"
|
|
452
|
+
[svgIcon]="toolbarOptions.svgIcon"
|
|
453
|
+
[imageUrl]="toolbarOptions.imageUrl"
|
|
454
|
+
[buttonClass]="buttonClass"
|
|
455
|
+
[arrowButtonClass]="arrowButtonClass"
|
|
456
|
+
[arrowButtonIcon]="arrowButtonIcon"
|
|
457
|
+
[arrowButtonSvgIcon]="arrowButtonSvgIcon"
|
|
458
|
+
[disabled]="disabled"
|
|
459
|
+
[size]="size"
|
|
460
|
+
[tabIndex]="-1"
|
|
461
|
+
[textField]="textField"
|
|
462
|
+
[popupSettings]="popupSettings"
|
|
463
|
+
[fillMode]="fillMode"
|
|
464
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
465
|
+
(buttonClick)="buttonClick.emit($event)"
|
|
466
|
+
(open)="open.emit($event)"
|
|
467
|
+
(close)="close.emit($event)"
|
|
468
|
+
(itemClick)="itemClick.emit($event)"
|
|
469
|
+
></kendo-splitbutton>
|
|
464
470
|
</ng-template>
|
|
465
471
|
<ng-template #popupTemplate>
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
472
|
+
<div #overflowMainButton
|
|
473
|
+
tabindex="-1"
|
|
474
|
+
role="menuitem"
|
|
475
|
+
class="k-item k-menu-item"
|
|
476
|
+
[class.k-disabled]="disabled"
|
|
477
|
+
[ngClass]="buttonClass"
|
|
478
|
+
(click)="onMainButtonClick($event)">
|
|
479
|
+
<span
|
|
480
|
+
[ngClass]="{'k-link': true, 'k-menu-link': true}"
|
|
481
|
+
>
|
|
482
|
+
@if (overflowOptions.icon || overflowOptions.iconClass || overflowOptions.svgIcon) {
|
|
483
|
+
<kendo-icon-wrapper
|
|
484
|
+
[name]="overflowOptions.icon"
|
|
485
|
+
[customFontClass]="overflowOptions.iconClass"
|
|
486
|
+
[svgIcon]="overflowOptions.svgIcon"
|
|
487
|
+
>
|
|
488
|
+
</kendo-icon-wrapper>
|
|
489
|
+
}
|
|
490
|
+
@if (overflowOptions.text) {
|
|
491
|
+
<span class="k-menu-link-text">{{overflowOptions.text}}</span>
|
|
492
|
+
}
|
|
493
|
+
</span>
|
|
494
|
+
</div>
|
|
495
|
+
@for (item of data; track item; let i = $index) {
|
|
487
496
|
<div #listItem
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
497
|
+
tabindex="-1"
|
|
498
|
+
role="menuitem"
|
|
499
|
+
class="k-item k-menu-item"
|
|
500
|
+
[class.k-disabled]="disabled || item.disabled"
|
|
501
|
+
(click)="handleClick($event, item, i)">
|
|
502
|
+
<span
|
|
503
|
+
class="k-link k-menu-link"
|
|
495
504
|
>
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
505
|
+
@if (item.icon || item.iconClass || item.svgIcon) {
|
|
506
|
+
<kendo-icon-wrapper
|
|
507
|
+
[name]="item.icon"
|
|
508
|
+
[customFontClass]="item.iconClass"
|
|
509
|
+
[svgIcon]="item.svgIcon"
|
|
501
510
|
>
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
511
|
+
</kendo-icon-wrapper>
|
|
512
|
+
}
|
|
513
|
+
@if (getText(item)) {
|
|
514
|
+
<span class="k-menu-link-text">{{ getText(item) }}</span>
|
|
515
|
+
}
|
|
516
|
+
</span>
|
|
505
517
|
</div>
|
|
506
|
-
|
|
518
|
+
}
|
|
507
519
|
</ng-template>
|
|
508
520
|
<ng-template #sectionTemplate>
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
521
|
+
<kendo-splitbutton
|
|
522
|
+
#sectionSplitButton
|
|
523
|
+
class="k-toolbar-split-button"
|
|
524
|
+
[data]="data"
|
|
525
|
+
[text]="toolbarOptions.text"
|
|
526
|
+
[icon]="toolbarOptions.icon"
|
|
527
|
+
[iconClass]="toolbarOptions.iconClass"
|
|
528
|
+
[svgIcon]="toolbarOptions.svgIcon"
|
|
529
|
+
[imageUrl]="toolbarOptions.imageUrl"
|
|
530
|
+
[buttonClass]="buttonClass"
|
|
531
|
+
[arrowButtonClass]="arrowButtonClass"
|
|
532
|
+
[arrowButtonIcon]="arrowButtonIcon"
|
|
533
|
+
[arrowButtonSvgIcon]="arrowButtonSvgIcon"
|
|
534
|
+
[disabled]="disabled"
|
|
535
|
+
[size]="size"
|
|
536
|
+
[tabIndex]="-1"
|
|
537
|
+
[textField]="textField"
|
|
538
|
+
[popupSettings]="popupSettings"
|
|
539
|
+
[fillMode]="fillMode"
|
|
540
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
541
|
+
(buttonClick)="buttonClick.emit($event)"
|
|
542
|
+
(open)="open.emit($event)"
|
|
543
|
+
(close)="close.emit($event)"
|
|
544
|
+
(itemClick)="itemClick.emit($event)"
|
|
545
|
+
></kendo-splitbutton>
|
|
534
546
|
</ng-template>
|
|
535
|
-
|
|
547
|
+
`,
|
|
536
548
|
standalone: true,
|
|
537
|
-
imports: [SplitButtonComponent, NgClass,
|
|
549
|
+
imports: [SplitButtonComponent, NgClass, IconWrapperComponent]
|
|
538
550
|
}]
|
|
539
551
|
}], ctorParameters: () => [{ type: i1.ToolBarComponent }], propDecorators: { showText: [{
|
|
540
552
|
type: Input
|