@progress/kendo-angular-toolbar 5.0.2 → 6.0.0-dev.202204131416

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.
Files changed (134) hide show
  1. package/bundles/kendo-angular-toolbar.umd.js +5 -0
  2. package/{dist/es2015/common → common}/constants.d.ts +0 -0
  3. package/{dist/es2015/common → common}/preventable-event.d.ts +0 -0
  4. package/{dist/es2015/common → common}/renderer-click.d.ts +0 -0
  5. package/{dist/es2015/direction.d.ts → direction.d.ts} +0 -0
  6. package/{dist/es2015/display-mode.d.ts → display-mode.d.ts} +0 -0
  7. package/{dist/es2015 → esm2015}/common/constants.js +0 -0
  8. package/{dist/es2015 → esm2015}/common/preventable-event.js +0 -0
  9. package/{dist/es → esm2015}/common/renderer-click.js +1 -0
  10. package/{dist/es2015 → esm2015}/direction.js +1 -0
  11. package/{dist/es2015 → esm2015}/display-mode.js +1 -0
  12. package/{dist/es2015 → esm2015}/group-selection-settings.js +1 -0
  13. package/{dist/es/common/constants.js → esm2015/kendo-angular-toolbar.js} +2 -2
  14. package/esm2015/localization/custom-messages.component.js +40 -0
  15. package/esm2015/localization/localized-toolbar-messages.directive.js +36 -0
  16. package/esm2015/localization/messages.js +23 -0
  17. package/{dist/es → esm2015}/main.js +0 -0
  18. package/{dist/es2015 → esm2015}/navigation.service.js +9 -9
  19. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  20. package/{dist/es → esm2015}/popup-settings.js +1 -0
  21. package/{dist/es2015 → esm2015}/refresh.service.js +8 -10
  22. package/{dist/es → esm2015}/render-location.js +1 -0
  23. package/{dist/es2015 → esm2015}/renderer.component.js +36 -41
  24. package/{dist/es2015 → esm2015}/renderer.service.js +8 -7
  25. package/{dist/es → esm2015}/tool-options.js +1 -0
  26. package/{dist/es2015 → esm2015}/toolbar.component.js +166 -135
  27. package/{dist/es2015 → esm2015}/toolbar.module.js +27 -11
  28. package/{dist/es2015 → esm2015}/tools/toolbar-button.component.js +117 -114
  29. package/esm2015/tools/toolbar-buttongroup.component.js +267 -0
  30. package/esm2015/tools/toolbar-buttonlist.component.js +94 -0
  31. package/{dist/es2015 → esm2015}/tools/toolbar-dropdownbutton.component.js +119 -121
  32. package/esm2015/tools/toolbar-separator.component.js +68 -0
  33. package/{dist/es2015 → esm2015}/tools/toolbar-splitbutton.component.js +129 -125
  34. package/{dist/es2015 → esm2015}/tools/toolbar-tool.component.js +15 -19
  35. package/{dist/es2015 → esm2015}/util.js +0 -0
  36. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-toolbar.js} +1019 -886
  37. package/{dist/es2015/group-selection-settings.d.ts → group-selection-settings.d.ts} +0 -0
  38. package/kendo-angular-toolbar.d.ts +9 -0
  39. package/{dist/es2015/localization → localization}/custom-messages.component.d.ts +4 -1
  40. package/{dist/es2015/localization → localization}/localized-toolbar-messages.directive.d.ts +3 -0
  41. package/{dist/es2015/localization → localization}/messages.d.ts +3 -0
  42. package/{dist/es2015/main.d.ts → main.d.ts} +0 -0
  43. package/{dist/es2015/navigation.service.d.ts → navigation.service.d.ts} +3 -0
  44. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  45. package/package.json +34 -102
  46. package/{dist/es2015/popup-settings.d.ts → popup-settings.d.ts} +0 -0
  47. package/{dist/es2015/refresh.service.d.ts → refresh.service.d.ts} +3 -0
  48. package/{dist/es2015/render-location.d.ts → render-location.d.ts} +0 -0
  49. package/{dist/es2015/renderer.component.d.ts → renderer.component.d.ts} +4 -1
  50. package/{dist/es2015/renderer.service.d.ts → renderer.service.d.ts} +3 -0
  51. package/schematics/ngAdd/index.js +5 -2
  52. package/schematics/ngAdd/index.js.map +1 -1
  53. package/{dist/es2015/tool-options.d.ts → tool-options.d.ts} +0 -0
  54. package/{dist/es2015/toolbar.component.d.ts → toolbar.component.d.ts} +30 -18
  55. package/toolbar.module.d.ts +37 -0
  56. package/{dist/es2015/tools → tools}/toolbar-button.component.d.ts +10 -6
  57. package/{dist/es2015/tools → tools}/toolbar-buttongroup.component.d.ts +7 -5
  58. package/{dist/es2015/tools → tools}/toolbar-buttonlist.component.d.ts +3 -0
  59. package/{dist/es2015/tools → tools}/toolbar-dropdownbutton.component.d.ts +15 -10
  60. package/{dist/es2015/tools → tools}/toolbar-separator.component.d.ts +3 -0
  61. package/{dist/es2015/tools → tools}/toolbar-splitbutton.component.d.ts +14 -9
  62. package/{dist/es2015/tools → tools}/toolbar-tool.component.d.ts +5 -2
  63. package/{dist/es2015/util.d.ts → util.d.ts} +0 -0
  64. package/dist/cdn/js/kendo-angular-toolbar.js +0 -20
  65. package/dist/cdn/main.js +0 -5
  66. package/dist/es/common/preventable-event.js +0 -29
  67. package/dist/es/direction.js +0 -4
  68. package/dist/es/display-mode.js +0 -4
  69. package/dist/es/group-selection-settings.js +0 -4
  70. package/dist/es/index.js +0 -14
  71. package/dist/es/localization/custom-messages.component.js +0 -43
  72. package/dist/es/localization/localized-toolbar-messages.directive.js +0 -35
  73. package/dist/es/localization/messages.js +0 -22
  74. package/dist/es/navigation.service.js +0 -130
  75. package/dist/es/package-metadata.js +0 -15
  76. package/dist/es/refresh.service.js +0 -22
  77. package/dist/es/renderer.component.js +0 -132
  78. package/dist/es/renderer.service.js +0 -52
  79. package/dist/es/toolbar.component.js +0 -641
  80. package/dist/es/toolbar.module.js +0 -60
  81. package/dist/es/tools/toolbar-button.component.js +0 -310
  82. package/dist/es/tools/toolbar-buttongroup.component.js +0 -165
  83. package/dist/es/tools/toolbar-buttonlist.component.js +0 -66
  84. package/dist/es/tools/toolbar-dropdownbutton.component.js +0 -368
  85. package/dist/es/tools/toolbar-separator.component.js +0 -67
  86. package/dist/es/tools/toolbar-splitbutton.component.js +0 -380
  87. package/dist/es/tools/toolbar-tool.component.js +0 -76
  88. package/dist/es/util.js +0 -204
  89. package/dist/es2015/common/renderer-click.js +0 -4
  90. package/dist/es2015/index.d.ts +0 -14
  91. package/dist/es2015/index.js +0 -14
  92. package/dist/es2015/index.metadata.json +0 -1
  93. package/dist/es2015/localization/custom-messages.component.js +0 -35
  94. package/dist/es2015/localization/localized-toolbar-messages.directive.js +0 -31
  95. package/dist/es2015/localization/messages.js +0 -16
  96. package/dist/es2015/main.js +0 -14
  97. package/dist/es2015/popup-settings.js +0 -4
  98. package/dist/es2015/render-location.js +0 -4
  99. package/dist/es2015/tool-options.js +0 -4
  100. package/dist/es2015/toolbar.module.d.ts +0 -18
  101. package/dist/es2015/tools/toolbar-buttongroup.component.js +0 -216
  102. package/dist/es2015/tools/toolbar-buttonlist.component.js +0 -87
  103. package/dist/es2015/tools/toolbar-separator.component.js +0 -68
  104. package/dist/fesm5/index.js +0 -2665
  105. package/dist/npm/common/constants.js +0 -10
  106. package/dist/npm/common/preventable-event.js +0 -31
  107. package/dist/npm/common/renderer-click.js +0 -6
  108. package/dist/npm/direction.js +0 -6
  109. package/dist/npm/display-mode.js +0 -6
  110. package/dist/npm/group-selection-settings.js +0 -6
  111. package/dist/npm/index.js +0 -23
  112. package/dist/npm/localization/custom-messages.component.js +0 -45
  113. package/dist/npm/localization/localized-toolbar-messages.directive.js +0 -37
  114. package/dist/npm/localization/messages.js +0 -24
  115. package/dist/npm/main.js +0 -26
  116. package/dist/npm/navigation.service.js +0 -132
  117. package/dist/npm/package-metadata.js +0 -17
  118. package/dist/npm/popup-settings.js +0 -6
  119. package/dist/npm/refresh.service.js +0 -24
  120. package/dist/npm/render-location.js +0 -6
  121. package/dist/npm/renderer.component.js +0 -134
  122. package/dist/npm/renderer.service.js +0 -54
  123. package/dist/npm/tool-options.js +0 -6
  124. package/dist/npm/toolbar.component.js +0 -643
  125. package/dist/npm/toolbar.module.js +0 -62
  126. package/dist/npm/tools/toolbar-button.component.js +0 -312
  127. package/dist/npm/tools/toolbar-buttongroup.component.js +0 -167
  128. package/dist/npm/tools/toolbar-buttonlist.component.js +0 -68
  129. package/dist/npm/tools/toolbar-dropdownbutton.component.js +0 -370
  130. package/dist/npm/tools/toolbar-separator.component.js +0 -69
  131. package/dist/npm/tools/toolbar-splitbutton.component.js +0 -382
  132. package/dist/npm/tools/toolbar-tool.component.js +0 -78
  133. package/dist/npm/util.js +0 -209
  134. package/dist/systemjs/kendo-angular-toolbar.js +0 -5
@@ -2,17 +2,18 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import * as tslib_1 from "tslib";
6
- var ToolBarDropDownButtonComponent_1;
7
- import { Component, ElementRef, TemplateRef, forwardRef, ViewChild, Input, EventEmitter, Output } from '@angular/core';
5
+ import { Component, ElementRef, forwardRef, ViewChild, Input, EventEmitter, Output } from '@angular/core';
8
6
  import { ToolBarToolComponent } from './toolbar-tool.component';
9
7
  import { DropDownButtonComponent } from '@progress/kendo-angular-buttons';
10
- import { ToolBarButtonListComponent } from './toolbar-buttonlist.component';
11
8
  import { getValueForLocation, makePeeker, getIndexOfFocused, getPrevKey, getNextKey, seekFocusedIndex, areEqual } from '../util';
9
+ import * as i0 from "@angular/core";
10
+ import * as i1 from "@progress/kendo-angular-buttons";
11
+ import * as i2 from "./toolbar-buttonlist.component";
12
+ import * as i3 from "@angular/common";
12
13
  /**
13
14
  * Represents the [Kendo UI ToolBar DropDownButton for Angular]({% slug controltypes_toolbar %}#toc-dropdownbuttons).
14
15
  */
15
- let ToolBarDropDownButtonComponent = ToolBarDropDownButtonComponent_1 = class ToolBarDropDownButtonComponent extends ToolBarToolComponent {
16
+ export class ToolBarDropDownButtonComponent extends ToolBarToolComponent {
16
17
  constructor() {
17
18
  super();
18
19
  // showText and showIcon showIcon should be declared first
@@ -209,118 +210,63 @@ let ToolBarDropDownButtonComponent = ToolBarDropDownButtonComponent_1 = class To
209
210
  this.overflowButtons[index].nativeElement.focus();
210
211
  }
211
212
  }
212
- };
213
- tslib_1.__decorate([
214
- Input(),
215
- tslib_1.__metadata("design:type", String)
216
- ], ToolBarDropDownButtonComponent.prototype, "showText", void 0);
217
- tslib_1.__decorate([
218
- Input(),
219
- tslib_1.__metadata("design:type", String)
220
- ], ToolBarDropDownButtonComponent.prototype, "showIcon", void 0);
221
- tslib_1.__decorate([
222
- Input(),
223
- tslib_1.__metadata("design:type", String),
224
- tslib_1.__metadata("design:paramtypes", [String])
225
- ], ToolBarDropDownButtonComponent.prototype, "text", null);
226
- tslib_1.__decorate([
227
- Input(),
228
- tslib_1.__metadata("design:type", String),
229
- tslib_1.__metadata("design:paramtypes", [String])
230
- ], ToolBarDropDownButtonComponent.prototype, "icon", null);
231
- tslib_1.__decorate([
232
- Input(),
233
- tslib_1.__metadata("design:type", String),
234
- tslib_1.__metadata("design:paramtypes", [String])
235
- ], ToolBarDropDownButtonComponent.prototype, "iconClass", null);
236
- tslib_1.__decorate([
237
- Input(),
238
- tslib_1.__metadata("design:type", String),
239
- tslib_1.__metadata("design:paramtypes", [String])
240
- ], ToolBarDropDownButtonComponent.prototype, "imageUrl", null);
241
- tslib_1.__decorate([
242
- Input(),
243
- tslib_1.__metadata("design:type", Object),
244
- tslib_1.__metadata("design:paramtypes", [Object])
245
- ], ToolBarDropDownButtonComponent.prototype, "popupSettings", null);
246
- tslib_1.__decorate([
247
- Input(),
248
- tslib_1.__metadata("design:type", String),
249
- tslib_1.__metadata("design:paramtypes", [String])
250
- ], ToolBarDropDownButtonComponent.prototype, "look", null);
251
- tslib_1.__decorate([
252
- Input(),
253
- tslib_1.__metadata("design:type", Boolean),
254
- tslib_1.__metadata("design:paramtypes", [Boolean])
255
- ], ToolBarDropDownButtonComponent.prototype, "primary", null);
256
- tslib_1.__decorate([
257
- Input(),
258
- tslib_1.__metadata("design:type", String)
259
- ], ToolBarDropDownButtonComponent.prototype, "fillMode", void 0);
260
- tslib_1.__decorate([
261
- Input(),
262
- tslib_1.__metadata("design:type", String)
263
- ], ToolBarDropDownButtonComponent.prototype, "themeColor", void 0);
264
- tslib_1.__decorate([
265
- Input(),
266
- tslib_1.__metadata("design:type", String)
267
- ], ToolBarDropDownButtonComponent.prototype, "buttonClass", void 0);
268
- tslib_1.__decorate([
269
- Input(),
270
- tslib_1.__metadata("design:type", String)
271
- ], ToolBarDropDownButtonComponent.prototype, "textField", void 0);
272
- tslib_1.__decorate([
273
- Input(),
274
- tslib_1.__metadata("design:type", Boolean)
275
- ], ToolBarDropDownButtonComponent.prototype, "disabled", void 0);
276
- tslib_1.__decorate([
277
- Input(),
278
- tslib_1.__metadata("design:type", Array),
279
- tslib_1.__metadata("design:paramtypes", [Array])
280
- ], ToolBarDropDownButtonComponent.prototype, "data", null);
281
- tslib_1.__decorate([
282
- Output(),
283
- tslib_1.__metadata("design:type", EventEmitter)
284
- ], ToolBarDropDownButtonComponent.prototype, "itemClick", void 0);
285
- tslib_1.__decorate([
286
- Output(),
287
- tslib_1.__metadata("design:type", EventEmitter)
288
- ], ToolBarDropDownButtonComponent.prototype, "open", void 0);
289
- tslib_1.__decorate([
290
- Output(),
291
- tslib_1.__metadata("design:type", EventEmitter)
292
- ], ToolBarDropDownButtonComponent.prototype, "close", void 0);
293
- tslib_1.__decorate([
294
- ViewChild('toolbarTemplate', { static: true }),
295
- tslib_1.__metadata("design:type", TemplateRef)
296
- ], ToolBarDropDownButtonComponent.prototype, "toolbarTemplate", void 0);
297
- tslib_1.__decorate([
298
- ViewChild('popupTemplate', { static: true }),
299
- tslib_1.__metadata("design:type", TemplateRef)
300
- ], ToolBarDropDownButtonComponent.prototype, "popupTemplate", void 0);
301
- tslib_1.__decorate([
302
- ViewChild('dropdownButton', { read: ElementRef, static: true }),
303
- tslib_1.__metadata("design:type", ElementRef)
304
- ], ToolBarDropDownButtonComponent.prototype, "dropdownButton", void 0);
305
- tslib_1.__decorate([
306
- ViewChild(DropDownButtonComponent, { static: false }),
307
- tslib_1.__metadata("design:type", DropDownButtonComponent)
308
- ], ToolBarDropDownButtonComponent.prototype, "dropDownButtonComponent", void 0);
309
- tslib_1.__decorate([
310
- ViewChild('toolbarDropDownButton', { static: false }),
311
- tslib_1.__metadata("design:type", DropDownButtonComponent)
312
- ], ToolBarDropDownButtonComponent.prototype, "toolbarDropDownButton", void 0);
313
- tslib_1.__decorate([
314
- ViewChild('overflowDropDownButtonButtonList', { static: false }),
315
- tslib_1.__metadata("design:type", ToolBarButtonListComponent)
316
- ], ToolBarDropDownButtonComponent.prototype, "overflowDropDownButtonButtonList", void 0);
317
- ToolBarDropDownButtonComponent = ToolBarDropDownButtonComponent_1 = tslib_1.__decorate([
318
- Component({
319
- exportAs: 'kendoToolBarDropDownButton',
320
- // tslint:disable-next-line:no-forward-ref
321
- providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarDropDownButtonComponent_1) }],
322
- selector: 'kendo-toolbar-dropdownbutton',
323
- template: `
213
+ }
214
+ ToolBarDropDownButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarDropDownButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
215
+ ToolBarDropDownButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ToolBarDropDownButtonComponent, selector: "kendo-toolbar-dropdownbutton", inputs: { showText: "showText", showIcon: "showIcon", text: "text", icon: "icon", 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: "overflowDropDownButtonButtonList", first: true, predicate: ["overflowDropDownButtonButtonList"], descendants: true }], exportAs: ["kendoToolBarDropDownButton"], usesInheritance: true, ngImport: i0, template: `
216
+ <ng-template #toolbarTemplate>
217
+ <kendo-dropdownbutton
218
+ #toolbarDropDownButton
219
+ [icon]="toolbarOptions.icon"
220
+ [iconClass]="toolbarOptions.iconClass"
221
+ [imageUrl]="toolbarOptions.imageUrl"
222
+ [buttonClass]="buttonClass"
223
+ [disabled]="disabled"
224
+ [tabIndex]="-1"
225
+ [data]="data"
226
+ [textField]="textField"
227
+ [popupSettings]="popupSettings"
228
+ [fillMode]="fillMode"
229
+ [themeColor]="fillMode ? themeColor : null"
230
+ (open)="open.emit($event)"
231
+ (close)="close.emit($event)"
232
+ (itemClick)="itemClick.emit($event)"
233
+ >
234
+ {{ toolbarOptions.text }}
235
+ </kendo-dropdownbutton>
236
+ </ng-template>
237
+ <ng-template #popupTemplate>
238
+ <button
239
+ type="button"
240
+ tabindex="-1"
241
+ kendoButton
242
+ class="k-overflow-button"
243
+ [disabled]="true"
244
+ [icon]="overflowOptions.icon"
245
+ [iconClass]="overflowOptions.iconClass"
246
+ [imageUrl]="overflowOptions.imageUrl"
247
+ [ngClass]="buttonClass"
248
+ (click)="itemClick.emit($event)"
249
+ >
250
+ {{ overflowOptions.text }}
251
+ </button>
252
+ <kendo-toolbar-buttonlist
253
+ #overflowDropDownButtonButtonList
254
+ [data]="data"
255
+ [disabled]="disabled"
256
+ [textField]="textField"
257
+ (itemClick)="itemClick.emit($event)"
258
+ (click)="onButtonListClick($event)"
259
+ >
260
+ </kendo-toolbar-buttonlist>
261
+ </ng-template>
262
+ `, isInline: true, components: [{ type: i1.DropDownButtonComponent, selector: "kendo-dropdownbutton", inputs: ["icon", "iconClass", "imageUrl", "popupSettings", "textField", "disabled", "data", "size", "rounded", "fillMode", "themeColor", "buttonClass", "tabIndex"], outputs: ["itemClick", "open", "close", "focus", "blur"], exportAs: ["kendoDropDownButton"] }, { type: i2.ToolBarButtonListComponent, selector: "kendo-toolbar-buttonlist", inputs: ["data", "textField", "disabled", "fillMode", "themeColor"], outputs: ["itemClick"] }], directives: [{ type: i1.ButtonDirective, selector: "button[kendoButton], span[kendoButton]", inputs: ["toggleable", "togglable", "selected", "tabIndex", "icon", "iconClass", "imageUrl", "disabled", "size", "rounded", "fillMode", "themeColor", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
263
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarDropDownButtonComponent, decorators: [{
264
+ type: Component,
265
+ args: [{
266
+ exportAs: 'kendoToolBarDropDownButton',
267
+ providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarDropDownButtonComponent) }],
268
+ selector: 'kendo-toolbar-dropdownbutton',
269
+ template: `
324
270
  <ng-template #toolbarTemplate>
325
271
  <kendo-dropdownbutton
326
272
  #toolbarDropDownButton
@@ -368,7 +314,59 @@ ToolBarDropDownButtonComponent = ToolBarDropDownButtonComponent_1 = tslib_1.__de
368
314
  </kendo-toolbar-buttonlist>
369
315
  </ng-template>
370
316
  `
371
- }),
372
- tslib_1.__metadata("design:paramtypes", [])
373
- ], ToolBarDropDownButtonComponent);
374
- export { ToolBarDropDownButtonComponent };
317
+ }]
318
+ }], ctorParameters: function () { return []; }, propDecorators: { showText: [{
319
+ type: Input
320
+ }], showIcon: [{
321
+ type: Input
322
+ }], text: [{
323
+ type: Input
324
+ }], icon: [{
325
+ type: Input
326
+ }], iconClass: [{
327
+ type: Input
328
+ }], imageUrl: [{
329
+ type: Input
330
+ }], popupSettings: [{
331
+ type: Input
332
+ }], look: [{
333
+ type: Input
334
+ }], primary: [{
335
+ type: Input
336
+ }], fillMode: [{
337
+ type: Input
338
+ }], themeColor: [{
339
+ type: Input
340
+ }], buttonClass: [{
341
+ type: Input
342
+ }], textField: [{
343
+ type: Input
344
+ }], disabled: [{
345
+ type: Input
346
+ }], data: [{
347
+ type: Input
348
+ }], itemClick: [{
349
+ type: Output
350
+ }], open: [{
351
+ type: Output
352
+ }], close: [{
353
+ type: Output
354
+ }], toolbarTemplate: [{
355
+ type: ViewChild,
356
+ args: ['toolbarTemplate', { static: true }]
357
+ }], popupTemplate: [{
358
+ type: ViewChild,
359
+ args: ['popupTemplate', { static: true }]
360
+ }], dropdownButton: [{
361
+ type: ViewChild,
362
+ args: ['dropdownButton', { read: ElementRef, static: true }]
363
+ }], dropDownButtonComponent: [{
364
+ type: ViewChild,
365
+ args: [DropDownButtonComponent, { static: false }]
366
+ }], toolbarDropDownButton: [{
367
+ type: ViewChild,
368
+ args: ['toolbarDropDownButton', { static: false }]
369
+ }], overflowDropDownButtonButtonList: [{
370
+ type: ViewChild,
371
+ args: ['overflowDropDownButtonButtonList', { static: false }]
372
+ }] } });
@@ -0,0 +1,68 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { Component, forwardRef, ViewChild } from '@angular/core';
6
+ import { ToolBarToolComponent } from './toolbar-tool.component';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * Represents the [Kendo UI ToolBar Separator for Angular]({% slug controltypes_toolbar %}#toc-separators).
10
+ */
11
+ export class ToolBarSeparatorComponent extends ToolBarToolComponent {
12
+ constructor() {
13
+ super();
14
+ }
15
+ /**
16
+ * @hidden
17
+ */
18
+ canFocus() {
19
+ return false;
20
+ }
21
+ // If this is not here, the docs display info from its parent(ToolBarToolComponent).
22
+ /**
23
+ * @hidden
24
+ */
25
+ focus() {
26
+ /* noop */
27
+ }
28
+ // If this is not here, the docs display info from its parent(ToolBarToolComponent).
29
+ /**
30
+ * @hidden
31
+ */
32
+ handleKey() {
33
+ return false;
34
+ }
35
+ ngAfterViewInit() {
36
+ if (!this.popupTemplate) {
37
+ this.popupTemplate = this.toolbarTemplate;
38
+ }
39
+ }
40
+ }
41
+ ToolBarSeparatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarSeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
42
+ ToolBarSeparatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ToolBarSeparatorComponent, selector: "kendo-toolbar-separator", providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSeparatorComponent) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "separator", first: true, predicate: ["separator"], descendants: true }], exportAs: ["kendoToolBarSeparator"], usesInheritance: true, ngImport: i0, template: `
43
+ <ng-template #toolbarTemplate>
44
+ <div class="k-separator"></div>
45
+ </ng-template>
46
+ `, isInline: true });
47
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarSeparatorComponent, decorators: [{
48
+ type: Component,
49
+ args: [{
50
+ exportAs: 'kendoToolBarSeparator',
51
+ providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSeparatorComponent) }],
52
+ selector: 'kendo-toolbar-separator',
53
+ template: `
54
+ <ng-template #toolbarTemplate>
55
+ <div class="k-separator"></div>
56
+ </ng-template>
57
+ `
58
+ }]
59
+ }], ctorParameters: function () { return []; }, propDecorators: { toolbarTemplate: [{
60
+ type: ViewChild,
61
+ args: ['toolbarTemplate', { static: true }]
62
+ }], popupTemplate: [{
63
+ type: ViewChild,
64
+ args: ['popupTemplate', { static: true }]
65
+ }], separator: [{
66
+ type: ViewChild,
67
+ args: ['separator', { static: false }]
68
+ }] } });
@@ -2,17 +2,17 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import * as tslib_1 from "tslib";
6
- var ToolBarSplitButtonComponent_1;
7
- import { Component, TemplateRef, forwardRef, ViewChild, Input, ElementRef, Output, EventEmitter } from '@angular/core';
8
- import { SplitButtonComponent } from '@progress/kendo-angular-buttons';
5
+ import { Component, forwardRef, ViewChild, Input, ElementRef, Output, EventEmitter } from '@angular/core';
9
6
  import { ToolBarToolComponent } from './toolbar-tool.component';
10
- import { ToolBarButtonListComponent } from './toolbar-buttonlist.component';
11
7
  import { getValueForLocation, makePeeker, getIndexOfFocused, getPrevKey, getNextKey, seekFocusedIndex, areEqual } from '../util';
8
+ import * as i0 from "@angular/core";
9
+ import * as i1 from "@progress/kendo-angular-buttons";
10
+ import * as i2 from "./toolbar-buttonlist.component";
11
+ import * as i3 from "@angular/common";
12
12
  /**
13
13
  * Represents the [Kendo UI ToolBar SplitButton for Angular]({% slug controltypes_toolbar %}#toc-splitbuttons).
14
14
  */
15
- let ToolBarSplitButtonComponent = ToolBarSplitButtonComponent_1 = class ToolBarSplitButtonComponent extends ToolBarToolComponent {
15
+ export class ToolBarSplitButtonComponent extends ToolBarToolComponent {
16
16
  constructor() {
17
17
  super();
18
18
  // showText and showIcon showIcon should be declared first
@@ -222,121 +222,72 @@ let ToolBarSplitButtonComponent = ToolBarSplitButtonComponent_1 = class ToolBarS
222
222
  this.overflowButtons[index].nativeElement.focus();
223
223
  }
224
224
  }
225
- };
226
- tslib_1.__decorate([
227
- Input(),
228
- tslib_1.__metadata("design:type", String)
229
- ], ToolBarSplitButtonComponent.prototype, "showText", void 0);
230
- tslib_1.__decorate([
231
- Input(),
232
- tslib_1.__metadata("design:type", String)
233
- ], ToolBarSplitButtonComponent.prototype, "showIcon", void 0);
234
- tslib_1.__decorate([
235
- Input(),
236
- tslib_1.__metadata("design:type", String),
237
- tslib_1.__metadata("design:paramtypes", [String])
238
- ], ToolBarSplitButtonComponent.prototype, "text", null);
239
- tslib_1.__decorate([
240
- Input(),
241
- tslib_1.__metadata("design:type", String),
242
- tslib_1.__metadata("design:paramtypes", [String])
243
- ], ToolBarSplitButtonComponent.prototype, "icon", null);
244
- tslib_1.__decorate([
245
- Input(),
246
- tslib_1.__metadata("design:type", String),
247
- tslib_1.__metadata("design:paramtypes", [String])
248
- ], ToolBarSplitButtonComponent.prototype, "iconClass", null);
249
- tslib_1.__decorate([
250
- Input(),
251
- tslib_1.__metadata("design:type", String),
252
- tslib_1.__metadata("design:paramtypes", [String])
253
- ], ToolBarSplitButtonComponent.prototype, "imageUrl", null);
254
- tslib_1.__decorate([
255
- Input(),
256
- tslib_1.__metadata("design:type", Boolean)
257
- ], ToolBarSplitButtonComponent.prototype, "disabled", void 0);
258
- tslib_1.__decorate([
259
- Input(),
260
- tslib_1.__metadata("design:type", Object),
261
- tslib_1.__metadata("design:paramtypes", [Object])
262
- ], ToolBarSplitButtonComponent.prototype, "popupSettings", null);
263
- tslib_1.__decorate([
264
- Input(),
265
- tslib_1.__metadata("design:type", String)
266
- ], ToolBarSplitButtonComponent.prototype, "fillMode", void 0);
267
- tslib_1.__decorate([
268
- Input(),
269
- tslib_1.__metadata("design:type", String)
270
- ], ToolBarSplitButtonComponent.prototype, "themeColor", void 0);
271
- tslib_1.__decorate([
272
- Input(),
273
- tslib_1.__metadata("design:type", String),
274
- tslib_1.__metadata("design:paramtypes", [String])
275
- ], ToolBarSplitButtonComponent.prototype, "look", null);
276
- tslib_1.__decorate([
277
- Input(),
278
- tslib_1.__metadata("design:type", String)
279
- ], ToolBarSplitButtonComponent.prototype, "buttonClass", void 0);
280
- tslib_1.__decorate([
281
- Input(),
282
- tslib_1.__metadata("design:type", Object)
283
- ], ToolBarSplitButtonComponent.prototype, "arrowButtonClass", void 0);
284
- tslib_1.__decorate([
285
- Input(),
286
- tslib_1.__metadata("design:type", String)
287
- ], ToolBarSplitButtonComponent.prototype, "arrowButtonIcon", void 0);
288
- tslib_1.__decorate([
289
- Input(),
290
- tslib_1.__metadata("design:type", String)
291
- ], ToolBarSplitButtonComponent.prototype, "textField", void 0);
292
- tslib_1.__decorate([
293
- Input(),
294
- tslib_1.__metadata("design:type", Array),
295
- tslib_1.__metadata("design:paramtypes", [Array])
296
- ], ToolBarSplitButtonComponent.prototype, "data", null);
297
- tslib_1.__decorate([
298
- Output(),
299
- tslib_1.__metadata("design:type", EventEmitter)
300
- ], ToolBarSplitButtonComponent.prototype, "buttonClick", void 0);
301
- tslib_1.__decorate([
302
- Output(),
303
- tslib_1.__metadata("design:type", EventEmitter)
304
- ], ToolBarSplitButtonComponent.prototype, "itemClick", void 0);
305
- tslib_1.__decorate([
306
- Output(),
307
- tslib_1.__metadata("design:type", EventEmitter)
308
- ], ToolBarSplitButtonComponent.prototype, "open", void 0);
309
- tslib_1.__decorate([
310
- Output(),
311
- tslib_1.__metadata("design:type", EventEmitter)
312
- ], ToolBarSplitButtonComponent.prototype, "close", void 0);
313
- tslib_1.__decorate([
314
- ViewChild('toolbarTemplate', { static: true }),
315
- tslib_1.__metadata("design:type", TemplateRef)
316
- ], ToolBarSplitButtonComponent.prototype, "toolbarTemplate", void 0);
317
- tslib_1.__decorate([
318
- ViewChild('popupTemplate', { static: true }),
319
- tslib_1.__metadata("design:type", TemplateRef)
320
- ], ToolBarSplitButtonComponent.prototype, "popupTemplate", void 0);
321
- tslib_1.__decorate([
322
- ViewChild('toolbarSplitButton', { static: false }),
323
- tslib_1.__metadata("design:type", SplitButtonComponent)
324
- ], ToolBarSplitButtonComponent.prototype, "toolbarSplitButton", void 0);
325
- tslib_1.__decorate([
326
- ViewChild('overflowSplitButton', { read: ElementRef, static: false }),
327
- tslib_1.__metadata("design:type", ElementRef)
328
- ], ToolBarSplitButtonComponent.prototype, "overflowSplitButton", void 0);
329
- tslib_1.__decorate([
330
- ViewChild('overflowSplitButtonButtonList', { static: false }),
331
- tslib_1.__metadata("design:type", ToolBarButtonListComponent)
332
- ], ToolBarSplitButtonComponent.prototype, "overflowSplitButtonButtonList", void 0);
333
- ToolBarSplitButtonComponent = ToolBarSplitButtonComponent_1 = tslib_1.__decorate([
334
- Component({
335
- exportAs: 'kendoToolBarSplitButton',
336
- // tslint:disable-next-line:no-forward-ref
337
- providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSplitButtonComponent_1) }],
338
- selector: 'kendo-toolbar-splitbutton',
339
- template: `
225
+ }
226
+ ToolBarSplitButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarSplitButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
227
+ ToolBarSplitButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ToolBarSplitButtonComponent, selector: "kendo-toolbar-splitbutton", inputs: { showText: "showText", showIcon: "showIcon", text: "text", icon: "icon", iconClass: "iconClass", imageUrl: "imageUrl", disabled: "disabled", popupSettings: "popupSettings", fillMode: "fillMode", themeColor: "themeColor", look: "look", buttonClass: "buttonClass", arrowButtonClass: "arrowButtonClass", arrowButtonIcon: "arrowButtonIcon", textField: "textField", data: "data" }, outputs: { buttonClick: "buttonClick", itemClick: "itemClick", open: "open", close: "close" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSplitButtonComponent) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "toolbarSplitButton", first: true, predicate: ["toolbarSplitButton"], descendants: true }, { propertyName: "overflowSplitButton", first: true, predicate: ["overflowSplitButton"], descendants: true, read: ElementRef }, { propertyName: "overflowSplitButtonButtonList", first: true, predicate: ["overflowSplitButtonButtonList"], descendants: true }], exportAs: ["kendoToolBarSplitButton"], usesInheritance: true, ngImport: i0, template: `
228
+ <ng-template #toolbarTemplate>
229
+ <kendo-splitbutton
230
+ #toolbarSplitButton
231
+ [data]="data"
232
+ [text]="toolbarOptions.text"
233
+ [icon]="toolbarOptions.icon"
234
+ [iconClass]="toolbarOptions.iconClass"
235
+ [imageUrl]="toolbarOptions.imageUrl"
236
+ [buttonClass]="buttonClass"
237
+ [arrowButtonClass]="arrowButtonClass"
238
+ [arrowButtonIcon]="arrowButtonIcon"
239
+ [disabled]="disabled"
240
+ [tabIndex]="-1"
241
+ [textField]="textField"
242
+ [popupSettings]="popupSettings"
243
+ [fillMode]="fillMode"
244
+ [themeColor]="fillMode ? themeColor : null"
245
+ (buttonClick)="buttonClick.emit($event)"
246
+ (open)="open.emit($event)"
247
+ (close)="close.emit($event)"
248
+ (itemClick)="itemClick.emit($event)"
249
+ >
250
+ </kendo-splitbutton>
251
+ </ng-template>
252
+ <ng-template #popupTemplate>
253
+ <button
254
+ #overflowSplitButton
255
+ type="button"
256
+ tabindex="-1"
257
+ [fillMode]="fillMode"
258
+ [themeColor]="fillMode ? themeColor : null"
259
+ kendoButton
260
+ class="k-overflow-button"
261
+ [disabled]="disabled"
262
+ [icon]="overflowOptions.icon"
263
+ [iconClass]="overflowOptions.iconClass"
264
+ [imageUrl]="overflowOptions.imageUrl"
265
+ [ngClass]="buttonClass"
266
+ (click)="buttonClick.emit($event)"
267
+ (click)="onMainButtonClick($event)"
268
+ >
269
+ {{ overflowOptions.text }}
270
+ </button>
271
+ <kendo-toolbar-buttonlist
272
+ #overflowSplitButtonButtonList
273
+ [data]="data"
274
+ [disabled]="disabled"
275
+ [fillMode]="fillMode"
276
+ [themeColor]="fillMode ? themeColor : null"
277
+ [textField]="textField"
278
+ (itemClick)="itemClick.emit($event)"
279
+ (click)="onButtonListClick($event)"
280
+ >
281
+ </kendo-toolbar-buttonlist>
282
+ </ng-template>
283
+ `, isInline: true, components: [{ type: i1.SplitButtonComponent, selector: "kendo-splitbutton", inputs: ["text", "icon", "iconClass", "type", "imageUrl", "size", "rounded", "fillMode", "themeColor", "disabled", "popupSettings", "tabIndex", "textField", "data", "buttonClass", "arrowButtonClass", "arrowButtonIcon"], outputs: ["buttonClick", "itemClick", "focus", "blur", "open", "close"], exportAs: ["kendoSplitButton"] }, { type: i2.ToolBarButtonListComponent, selector: "kendo-toolbar-buttonlist", inputs: ["data", "textField", "disabled", "fillMode", "themeColor"], outputs: ["itemClick"] }], directives: [{ type: i1.ButtonDirective, selector: "button[kendoButton], span[kendoButton]", inputs: ["toggleable", "togglable", "selected", "tabIndex", "icon", "iconClass", "imageUrl", "disabled", "size", "rounded", "fillMode", "themeColor", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
284
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarSplitButtonComponent, decorators: [{
285
+ type: Component,
286
+ args: [{
287
+ exportAs: 'kendoToolBarSplitButton',
288
+ providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSplitButtonComponent) }],
289
+ selector: 'kendo-toolbar-splitbutton',
290
+ template: `
340
291
  <ng-template #toolbarTemplate>
341
292
  <kendo-splitbutton
342
293
  #toolbarSplitButton
@@ -393,7 +344,60 @@ ToolBarSplitButtonComponent = ToolBarSplitButtonComponent_1 = tslib_1.__decorate
393
344
  </kendo-toolbar-buttonlist>
394
345
  </ng-template>
395
346
  `
396
- }),
397
- tslib_1.__metadata("design:paramtypes", [])
398
- ], ToolBarSplitButtonComponent);
399
- export { ToolBarSplitButtonComponent };
347
+ }]
348
+ }], ctorParameters: function () { return []; }, propDecorators: { showText: [{
349
+ type: Input
350
+ }], showIcon: [{
351
+ type: Input
352
+ }], text: [{
353
+ type: Input
354
+ }], icon: [{
355
+ type: Input
356
+ }], iconClass: [{
357
+ type: Input
358
+ }], imageUrl: [{
359
+ type: Input
360
+ }], disabled: [{
361
+ type: Input
362
+ }], popupSettings: [{
363
+ type: Input
364
+ }], fillMode: [{
365
+ type: Input
366
+ }], themeColor: [{
367
+ type: Input
368
+ }], look: [{
369
+ type: Input
370
+ }], buttonClass: [{
371
+ type: Input
372
+ }], arrowButtonClass: [{
373
+ type: Input
374
+ }], arrowButtonIcon: [{
375
+ type: Input
376
+ }], textField: [{
377
+ type: Input
378
+ }], data: [{
379
+ type: Input
380
+ }], buttonClick: [{
381
+ type: Output
382
+ }], itemClick: [{
383
+ type: Output
384
+ }], open: [{
385
+ type: Output
386
+ }], close: [{
387
+ type: Output
388
+ }], toolbarTemplate: [{
389
+ type: ViewChild,
390
+ args: ['toolbarTemplate', { static: true }]
391
+ }], popupTemplate: [{
392
+ type: ViewChild,
393
+ args: ['popupTemplate', { static: true }]
394
+ }], toolbarSplitButton: [{
395
+ type: ViewChild,
396
+ args: ['toolbarSplitButton', { static: false }]
397
+ }], overflowSplitButton: [{
398
+ type: ViewChild,
399
+ args: ['overflowSplitButton', { read: ElementRef, static: false }]
400
+ }], overflowSplitButtonButtonList: [{
401
+ type: ViewChild,
402
+ args: ['overflowSplitButtonButtonList', { static: false }]
403
+ }] } });