@progress/kendo-angular-buttons 6.4.0 → 7.0.0-next.202111120840

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 (265) hide show
  1. package/bundles/kendo-angular-buttons.umd.js +5 -0
  2. package/{dist/es2015/button → button}/button.directive.d.ts +29 -21
  3. package/{dist/es2015/button → button}/button.module.d.ts +5 -0
  4. package/{dist/es2015/button → button}/button.service.d.ts +3 -0
  5. package/{dist/es2015/button → button}/selection-settings.d.ts +0 -0
  6. package/{dist/es2015/button-look.d.ts → button-look.d.ts} +0 -0
  7. package/{dist/es2015/buttongroup → buttongroup}/buttongroup.component.d.ts +16 -12
  8. package/buttongroup/buttongroup.module.d.ts +21 -0
  9. package/{dist/es2015/buttons.module.d.ts → buttons.module.d.ts} +10 -0
  10. package/{dist/es2015/chip → chip}/chip-content-click-event-args.interface.d.ts +0 -0
  11. package/{dist/es2015/chip → chip}/chip-list-remove-event-args.interface.d.ts +0 -0
  12. package/{dist/es2015/chip → chip}/chip-list.component.d.ts +5 -2
  13. package/{dist/es2015/chip → chip}/chip-remove-event-args.interface.d.ts +0 -0
  14. package/{dist/es2015/chip → chip}/chip.component.d.ts +15 -14
  15. package/{dist/es2015/chip → chip}/chip.module.d.ts +7 -0
  16. package/{dist/es2015/buttongroup/buttongroup.module.d.ts → chip/models/chip-look.d.ts} +10 -6
  17. package/{dist/es2015/chip → chip}/models/selection.d.ts +0 -0
  18. package/{dist/es2015/chip → chip}/models/type.d.ts +0 -0
  19. package/{dist/es2015/common → common}/models/shape.d.ts +0 -0
  20. package/{dist/es2015/common → common}/models/size.d.ts +0 -0
  21. package/{dist/es2015/common → common}/models/theme-color.d.ts +0 -0
  22. package/{dist/es2015/direction.d.ts → direction.d.ts} +0 -0
  23. package/{dist/es2015/dropdownbutton → dropdownbutton}/dropdownbutton.component.d.ts +24 -17
  24. package/dropdownbutton/dropdownbutton.module.d.ts +23 -0
  25. package/{dist/es2015 → esm2015}/button/button.directive.js +97 -151
  26. package/{dist/es → esm2015}/button/button.module.js +13 -13
  27. package/{dist/es2015 → esm2015}/button/button.service.js +8 -10
  28. package/{dist/es → esm2015}/button/selection-settings.js +1 -0
  29. package/{dist/es2015 → esm2015}/button-look.js +1 -0
  30. package/{dist/es2015 → esm2015}/buttongroup/buttongroup.component.js +93 -125
  31. package/esm2015/buttongroup/buttongroup.module.js +30 -0
  32. package/{dist/es → esm2015}/buttons.module.js +12 -12
  33. package/{dist/es2015 → esm2015}/chip/chip-content-click-event-args.interface.js +1 -0
  34. package/{dist/es2015 → esm2015}/chip/chip-list-remove-event-args.interface.js +1 -0
  35. package/{dist/es2015 → esm2015}/chip/chip-list.component.js +56 -63
  36. package/{dist/es → esm2015}/chip/chip-remove-event-args.interface.js +1 -0
  37. package/{dist/es2015 → esm2015}/chip/chip.component.js +121 -128
  38. package/{dist/es2015 → esm2015}/chip/chip.module.js +16 -11
  39. package/{dist/es → esm2015}/chip/models/chip-look.js +1 -0
  40. package/{dist/es → esm2015}/chip/models/selection.js +1 -0
  41. package/{dist/es → esm2015}/chip/models/type.js +1 -0
  42. package/{dist/es → esm2015}/common/models/shape.js +1 -0
  43. package/{dist/es → esm2015}/common/models/size.js +1 -0
  44. package/{dist/es → esm2015}/common/models/theme-color.js +1 -0
  45. package/{dist/es → esm2015}/direction.js +1 -0
  46. package/{dist/es2015 → esm2015}/dropdownbutton/dropdownbutton.component.js +162 -180
  47. package/esm2015/dropdownbutton/dropdownbutton.module.js +32 -0
  48. package/{dist/es2015 → esm2015}/floatingactionbutton/animations/animations.js +0 -0
  49. package/esm2015/floatingactionbutton/dial-item.component.js +126 -0
  50. package/esm2015/floatingactionbutton/dial-list.component.js +89 -0
  51. package/{dist/es2015 → esm2015}/floatingactionbutton/floatingactionbutton.component.js +150 -150
  52. package/{dist/es2015 → esm2015}/floatingactionbutton/floatingactionbutton.module.js +19 -11
  53. package/{dist/es → esm2015}/floatingactionbutton/models/align.js +1 -0
  54. package/{dist/es → esm2015}/floatingactionbutton/models/item-animation.interface.js +1 -0
  55. package/{dist/es → esm2015}/floatingactionbutton/models/item-click.event.js +1 -0
  56. package/{dist/es → esm2015}/floatingactionbutton/models/item.interface.js +1 -0
  57. package/{dist/es → esm2015}/floatingactionbutton/models/offset.js +1 -0
  58. package/{dist/es → esm2015}/floatingactionbutton/models/position-mode.js +1 -0
  59. package/esm2015/floatingactionbutton/templates/dial-item-template.directive.js +27 -0
  60. package/esm2015/floatingactionbutton/templates/fab-template.directive.js +27 -0
  61. package/{dist/es2015 → esm2015}/floatingactionbutton/utils.js +0 -0
  62. package/{dist/es2015 → esm2015}/focusable/focus.service.js +8 -10
  63. package/{dist/es2015 → esm2015}/focusable/focusable.directive.js +15 -16
  64. package/{dist/es2015/listbutton/list.module.d.ts → esm2015/kendo-angular-buttons.js} +2 -3
  65. package/{dist/es2015 → esm2015}/listbutton/button-item-template.directive.js +13 -12
  66. package/{dist/es2015 → esm2015}/listbutton/list-button.js +15 -2
  67. package/{dist/es → esm2015}/listbutton/list-item-model.js +1 -0
  68. package/esm2015/listbutton/list.component.js +120 -0
  69. package/esm2015/listbutton/list.module.js +39 -0
  70. package/{dist/es → esm2015}/listbutton/popup-settings.js +1 -0
  71. package/esm2015/listbutton/template-context.directive.js +33 -0
  72. package/{dist/es2015 → esm2015}/main.js +5 -1
  73. package/{dist/es → esm2015}/navigation/key-events.js +0 -0
  74. package/{dist/es → esm2015}/navigation/navigation-action.js +0 -0
  75. package/{dist/es2015 → esm2015}/navigation/navigation-config.js +0 -0
  76. package/{dist/es2015 → esm2015}/navigation/navigation.service.js +11 -9
  77. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  78. package/{dist/es2015 → esm2015}/preventable-event.js +0 -0
  79. package/{dist/es2015 → esm2015}/splitbutton/splitbutton.component.js +186 -192
  80. package/esm2015/splitbutton/splitbutton.module.js +32 -0
  81. package/{dist/es2015 → esm2015}/util.js +2 -6
  82. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-buttons.js} +1613 -1723
  83. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/animations/animations.d.ts +0 -0
  84. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/dial-item.component.d.ts +8 -5
  85. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/dial-list.component.d.ts +5 -2
  86. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/floatingactionbutton.component.d.ts +28 -19
  87. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/floatingactionbutton.module.d.ts +13 -0
  88. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/align.d.ts +0 -0
  89. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/item-animation.interface.d.ts +0 -0
  90. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/item-click.event.d.ts +0 -0
  91. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/item.interface.d.ts +0 -0
  92. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/offset.d.ts +0 -0
  93. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/position-mode.d.ts +0 -0
  94. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/templates/dial-item-template.directive.d.ts +3 -0
  95. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/templates/fab-template.directive.d.ts +3 -0
  96. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/utils.d.ts +0 -0
  97. package/{dist/es2015/focusable → focusable}/focus.service.d.ts +5 -1
  98. package/{dist/es2015/focusable → focusable}/focusable.directive.d.ts +3 -0
  99. package/kendo-angular-buttons.d.ts +9 -0
  100. package/{dist/es2015/listbutton → listbutton}/button-item-template.directive.d.ts +3 -0
  101. package/{dist/es2015/listbutton → listbutton}/list-button.d.ts +6 -2
  102. package/{dist/es2015/listbutton → listbutton}/list-item-model.d.ts +0 -0
  103. package/{dist/es2015/listbutton → listbutton}/list.component.d.ts +3 -0
  104. package/listbutton/list.module.d.ts +18 -0
  105. package/{dist/es2015/listbutton → listbutton}/popup-settings.d.ts +0 -0
  106. package/{dist/es2015/listbutton → listbutton}/template-context.directive.d.ts +4 -1
  107. package/{dist/es2015/main.d.ts → main.d.ts} +5 -1
  108. package/{dist/es2015/navigation → navigation}/key-events.d.ts +0 -0
  109. package/{dist/es2015/navigation → navigation}/navigation-action.d.ts +0 -0
  110. package/{dist/es2015/navigation → navigation}/navigation-config.d.ts +0 -0
  111. package/{dist/es2015/navigation → navigation}/navigation.service.d.ts +3 -0
  112. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  113. package/package.json +34 -105
  114. package/{dist/es2015/preventable-event.d.ts → preventable-event.d.ts} +0 -0
  115. package/schematics/ngAdd/index.js +5 -2
  116. package/schematics/ngAdd/index.js.map +1 -1
  117. package/{dist/es2015/splitbutton → splitbutton}/splitbutton.component.d.ts +26 -19
  118. package/splitbutton/splitbutton.module.d.ts +23 -0
  119. package/{dist/es2015/util.d.ts → util.d.ts} +0 -4
  120. package/dist/cdn/js/kendo-angular-buttons.js +0 -20
  121. package/dist/cdn/main.js +0 -5
  122. package/dist/es/button/button.directive.js +0 -630
  123. package/dist/es/button/button.service.js +0 -28
  124. package/dist/es/button-look.js +0 -4
  125. package/dist/es/buttongroup/buttongroup.component.js +0 -402
  126. package/dist/es/buttongroup/buttongroup.module.js +0 -30
  127. package/dist/es/chip/chip-content-click-event-args.interface.js +0 -4
  128. package/dist/es/chip/chip-list-remove-event-args.interface.js +0 -4
  129. package/dist/es/chip/chip-list.component.js +0 -164
  130. package/dist/es/chip/chip.component.js +0 -360
  131. package/dist/es/chip/chip.module.js +0 -55
  132. package/dist/es/dropdownbutton/dropdownbutton.component.js +0 -652
  133. package/dist/es/dropdownbutton/dropdownbutton.module.js +0 -32
  134. package/dist/es/floatingactionbutton/animations/animations.js +0 -33
  135. package/dist/es/floatingactionbutton/dial-item.component.js +0 -143
  136. package/dist/es/floatingactionbutton/dial-list.component.js +0 -76
  137. package/dist/es/floatingactionbutton/floatingactionbutton.component.js +0 -878
  138. package/dist/es/floatingactionbutton/floatingactionbutton.module.js +0 -65
  139. package/dist/es/floatingactionbutton/templates/dial-item-template.directive.js +0 -26
  140. package/dist/es/floatingactionbutton/templates/fab-template.directive.js +0 -26
  141. package/dist/es/floatingactionbutton/utils.js +0 -38
  142. package/dist/es/focusable/focus.service.js +0 -43
  143. package/dist/es/focusable/focusable.directive.js +0 -68
  144. package/dist/es/index.js +0 -22
  145. package/dist/es/listbutton/button-item-template.directive.js +0 -68
  146. package/dist/es/listbutton/list-button.js +0 -240
  147. package/dist/es/listbutton/list.component.js +0 -66
  148. package/dist/es/listbutton/list.module.js +0 -33
  149. package/dist/es/listbutton/template-context.directive.js +0 -40
  150. package/dist/es/main.js +0 -22
  151. package/dist/es/navigation/navigation-config.js +0 -9
  152. package/dist/es/navigation/navigation.service.js +0 -114
  153. package/dist/es/package-metadata.js +0 -15
  154. package/dist/es/preventable-event.js +0 -29
  155. package/dist/es/splitbutton/localization/custom-messages.component.js +0 -44
  156. package/dist/es/splitbutton/localization/localized-messages.directive.js +0 -35
  157. package/dist/es/splitbutton/localization/messages.js +0 -22
  158. package/dist/es/splitbutton/splitbutton.component.js +0 -761
  159. package/dist/es/splitbutton/splitbutton.module.js +0 -34
  160. package/dist/es/util.js +0 -45
  161. package/dist/es2015/button/button.module.js +0 -47
  162. package/dist/es2015/button/selection-settings.js +0 -4
  163. package/dist/es2015/buttongroup/buttongroup.module.js +0 -27
  164. package/dist/es2015/buttons.module.js +0 -51
  165. package/dist/es2015/chip/chip-remove-event-args.interface.js +0 -4
  166. package/dist/es2015/chip/models/chip-look.d.ts +0 -20
  167. package/dist/es2015/chip/models/chip-look.js +0 -4
  168. package/dist/es2015/chip/models/selection.js +0 -4
  169. package/dist/es2015/chip/models/type.js +0 -4
  170. package/dist/es2015/common/models/shape.js +0 -4
  171. package/dist/es2015/common/models/size.js +0 -4
  172. package/dist/es2015/common/models/theme-color.js +0 -4
  173. package/dist/es2015/direction.js +0 -4
  174. package/dist/es2015/dropdownbutton/dropdownbutton.module.d.ts +0 -14
  175. package/dist/es2015/dropdownbutton/dropdownbutton.module.js +0 -29
  176. package/dist/es2015/floatingactionbutton/dial-item.component.js +0 -133
  177. package/dist/es2015/floatingactionbutton/dial-list.component.js +0 -81
  178. package/dist/es2015/floatingactionbutton/models/align.js +0 -4
  179. package/dist/es2015/floatingactionbutton/models/item-animation.interface.js +0 -4
  180. package/dist/es2015/floatingactionbutton/models/item-click.event.js +0 -4
  181. package/dist/es2015/floatingactionbutton/models/item.interface.js +0 -4
  182. package/dist/es2015/floatingactionbutton/models/offset.js +0 -4
  183. package/dist/es2015/floatingactionbutton/models/position-mode.js +0 -4
  184. package/dist/es2015/floatingactionbutton/templates/dial-item-template.directive.js +0 -25
  185. package/dist/es2015/floatingactionbutton/templates/fab-template.directive.js +0 -25
  186. package/dist/es2015/index.d.ts +0 -22
  187. package/dist/es2015/index.js +0 -22
  188. package/dist/es2015/index.metadata.json +0 -1
  189. package/dist/es2015/listbutton/list-item-model.js +0 -4
  190. package/dist/es2015/listbutton/list.component.js +0 -96
  191. package/dist/es2015/listbutton/list.module.js +0 -30
  192. package/dist/es2015/listbutton/popup-settings.js +0 -4
  193. package/dist/es2015/listbutton/template-context.directive.js +0 -35
  194. package/dist/es2015/navigation/key-events.js +0 -13
  195. package/dist/es2015/navigation/navigation-action.js +0 -19
  196. package/dist/es2015/splitbutton/localization/custom-messages.component.d.ts +0 -15
  197. package/dist/es2015/splitbutton/localization/custom-messages.component.js +0 -36
  198. package/dist/es2015/splitbutton/localization/localized-messages.directive.d.ts +0 -13
  199. package/dist/es2015/splitbutton/localization/localized-messages.directive.js +0 -31
  200. package/dist/es2015/splitbutton/localization/messages.d.ts +0 -32
  201. package/dist/es2015/splitbutton/localization/messages.js +0 -16
  202. package/dist/es2015/splitbutton/splitbutton.module.d.ts +0 -14
  203. package/dist/es2015/splitbutton/splitbutton.module.js +0 -31
  204. package/dist/fesm5/index.js +0 -5123
  205. package/dist/npm/button/button.directive.js +0 -632
  206. package/dist/npm/button/button.module.js +0 -52
  207. package/dist/npm/button/button.service.js +0 -30
  208. package/dist/npm/button/selection-settings.js +0 -6
  209. package/dist/npm/button-look.js +0 -6
  210. package/dist/npm/buttongroup/buttongroup.component.js +0 -404
  211. package/dist/npm/buttongroup/buttongroup.module.js +0 -32
  212. package/dist/npm/buttons.module.js +0 -56
  213. package/dist/npm/chip/chip-content-click-event-args.interface.js +0 -6
  214. package/dist/npm/chip/chip-list-remove-event-args.interface.js +0 -6
  215. package/dist/npm/chip/chip-list.component.js +0 -166
  216. package/dist/npm/chip/chip-remove-event-args.interface.js +0 -6
  217. package/dist/npm/chip/chip.component.js +0 -362
  218. package/dist/npm/chip/chip.module.js +0 -57
  219. package/dist/npm/chip/models/chip-look.js +0 -6
  220. package/dist/npm/chip/models/selection.js +0 -6
  221. package/dist/npm/chip/models/type.js +0 -6
  222. package/dist/npm/common/models/shape.js +0 -6
  223. package/dist/npm/common/models/size.js +0 -6
  224. package/dist/npm/common/models/theme-color.js +0 -6
  225. package/dist/npm/direction.js +0 -6
  226. package/dist/npm/dropdownbutton/dropdownbutton.component.js +0 -654
  227. package/dist/npm/dropdownbutton/dropdownbutton.module.js +0 -34
  228. package/dist/npm/floatingactionbutton/animations/animations.js +0 -37
  229. package/dist/npm/floatingactionbutton/dial-item.component.js +0 -145
  230. package/dist/npm/floatingactionbutton/dial-list.component.js +0 -78
  231. package/dist/npm/floatingactionbutton/floatingactionbutton.component.js +0 -880
  232. package/dist/npm/floatingactionbutton/floatingactionbutton.module.js +0 -67
  233. package/dist/npm/floatingactionbutton/models/align.js +0 -6
  234. package/dist/npm/floatingactionbutton/models/item-animation.interface.js +0 -6
  235. package/dist/npm/floatingactionbutton/models/item-click.event.js +0 -6
  236. package/dist/npm/floatingactionbutton/models/item.interface.js +0 -6
  237. package/dist/npm/floatingactionbutton/models/offset.js +0 -6
  238. package/dist/npm/floatingactionbutton/models/position-mode.js +0 -6
  239. package/dist/npm/floatingactionbutton/templates/dial-item-template.directive.js +0 -28
  240. package/dist/npm/floatingactionbutton/templates/fab-template.directive.js +0 -28
  241. package/dist/npm/floatingactionbutton/utils.js +0 -42
  242. package/dist/npm/focusable/focus.service.js +0 -45
  243. package/dist/npm/focusable/focusable.directive.js +0 -70
  244. package/dist/npm/index.js +0 -39
  245. package/dist/npm/listbutton/button-item-template.directive.js +0 -70
  246. package/dist/npm/listbutton/list-button.js +0 -242
  247. package/dist/npm/listbutton/list-item-model.js +0 -6
  248. package/dist/npm/listbutton/list.component.js +0 -68
  249. package/dist/npm/listbutton/list.module.js +0 -35
  250. package/dist/npm/listbutton/popup-settings.js +0 -6
  251. package/dist/npm/listbutton/template-context.directive.js +0 -42
  252. package/dist/npm/main.js +0 -45
  253. package/dist/npm/navigation/key-events.js +0 -15
  254. package/dist/npm/navigation/navigation-action.js +0 -21
  255. package/dist/npm/navigation/navigation-config.js +0 -11
  256. package/dist/npm/navigation/navigation.service.js +0 -116
  257. package/dist/npm/package-metadata.js +0 -17
  258. package/dist/npm/preventable-event.js +0 -31
  259. package/dist/npm/splitbutton/localization/custom-messages.component.js +0 -46
  260. package/dist/npm/splitbutton/localization/localized-messages.directive.js +0 -37
  261. package/dist/npm/splitbutton/localization/messages.js +0 -24
  262. package/dist/npm/splitbutton/splitbutton.component.js +0 -763
  263. package/dist/npm/splitbutton/splitbutton.module.js +0 -36
  264. package/dist/npm/util.js +0 -48
  265. package/dist/systemjs/kendo-angular-buttons.js +0 -5
@@ -1,761 +0,0 @@
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 * as tslib_1 from "tslib";
6
- /* tslint:disable:no-access-missing-member */
7
- import { Component, ElementRef, TemplateRef, Input, Output, HostBinding, HostListener, EventEmitter, ContentChild, ViewChild, ViewContainerRef, NgZone, ChangeDetectorRef } from '@angular/core';
8
- import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
9
- import { PopupService } from '@progress/kendo-angular-popup';
10
- import { ListButton } from './../listbutton/list-button';
11
- import { ButtonItemTemplateDirective } from './../listbutton/button-item-template.directive';
12
- import { FocusService } from './../focusable/focus.service';
13
- import { NavigationService } from './../navigation/navigation.service';
14
- import { NAVIGATION_CONFIG } from './../navigation/navigation-config';
15
- import { isDocumentAvailable, guid, isChanged } from '@progress/kendo-angular-common';
16
- import { isPresent, tick } from './../util';
17
- import { PreventableEvent } from '../preventable-event';
18
- import { Keys } from '@progress/kendo-angular-common';
19
- import { replaceMessagePlaceholder } from '../util';
20
- var NAVIGATION_SETTINGS = {
21
- useLeftRightArrows: true
22
- };
23
- var ɵ0 = NAVIGATION_SETTINGS;
24
- var NAVIGATION_SETTINGS_PROVIDER = {
25
- provide: NAVIGATION_CONFIG,
26
- useValue: ɵ0
27
- };
28
- /**
29
- * Represents the Kendo UI SplitButton component for Angular.
30
- *
31
- * @example
32
- * ```ts
33
- * _@Component({
34
- * selector: 'my-app',
35
- * template: `
36
- * <kendo-splitbutton [data]="data" icon="paste"
37
- * (itemClick)="onSplitButtonItemClick($event)"
38
- * (buttonClick)="onSplitButtonClick()">Paste</kendo-splitbutton>
39
- * `
40
- * })
41
- *
42
- * class AppComponent {
43
- * public data: Array<any> = [{
44
- * text: 'Keep Text Only',
45
- * icon: 'paste-plain-text',
46
- * click: () => { console.log('Keep Text Only click handler'); }
47
- * }, {
48
- * text: 'Paste as HTML',
49
- * icon: 'paste-as-html'
50
- * }, {
51
- * text: 'Paste Markdown',
52
- * icon: 'paste-markdown'
53
- * }, {
54
- * text: 'Set Default Paste'
55
- * }];
56
- *
57
- * public onSplitButtonClick(dataItem: any): void {
58
- * console.log('Paste');
59
- * }
60
- *
61
- * public onSplitButtonItemClick(dataItem: any): void {
62
- * if (dataItem) {
63
- * console.log(dataItem.text);
64
- * }
65
- * }
66
- * }
67
- * ```
68
- */
69
- var SplitButtonComponent = /** @class */ (function (_super) {
70
- tslib_1.__extends(SplitButtonComponent, _super);
71
- function SplitButtonComponent(focusService, navigationService, wrapperRef, zone, popupService, elRef, localization, cdr) {
72
- var _this = _super.call(this, focusService, navigationService, wrapperRef, zone, localization, cdr) || this;
73
- _this.popupService = popupService;
74
- _this.elRef = elRef;
75
- _this.localization = localization;
76
- /**
77
- * Sets the text of the SplitButton.
78
- */
79
- _this.text = '';
80
- /**
81
- * Defines an icon to be rendered next to the button text
82
- * ([see example]({% slug databinding_splitbutton %}#toc-arrays-of-complex-data)).
83
- */
84
- _this.icon = '';
85
- /**
86
- * Defines an icon with a custom CSS class to be rendered next to the button text
87
- * ([see example]({% slug databinding_splitbutton %}#toc-arrays-of-complex-data)).
88
- */
89
- _this.iconClass = '';
90
- /**
91
- * Defines the type attribute of the main button
92
- */
93
- _this.type = 'button';
94
- /**
95
- * Defines the location of an image to be displayed next to the button text
96
- * ([see example]({% slug databinding_splitbutton %}#toc-arrays-of-complex-data)).
97
- */
98
- _this.imageUrl = '';
99
- /**
100
- * Changes the visual appearance by using alternative styling options.
101
- *
102
- * The available values are:
103
- * * `flat`
104
- * * `outline`
105
- */
106
- _this.look = 'default';
107
- /**
108
- * Specifies the [`tabIndex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
109
- */
110
- _this.tabIndex = 0;
111
- /**
112
- * Specifies the name of the [font icon]({% slug icons %}#toc-list-of-font-icons) that will
113
- * be rendered for the button which opens the popup.
114
- */
115
- _this.arrowButtonIcon = 'arrow-s';
116
- /**
117
- * Fires each time the user clicks the main button.
118
- *
119
- * @example
120
- * ```ts
121
- * _@Component({
122
- * selector: 'my-app',
123
- * template: `
124
- * <kendo-splitbutton (buttonClick)="onSplitButtonClick()" [data]="data">
125
- * Reply
126
- * </kendo-splitbutton>
127
- * `
128
- * })
129
- * class AppComponent {
130
- * public data: Array<any> = ['Reply All', 'Forward', 'Reply & Delete'];
131
- *
132
- * public onSplitButtonClick(): void {
133
- * console.log('SplitButton click');
134
- * }
135
- * }
136
- * ```
137
- *
138
- */
139
- _this.buttonClick = new EventEmitter();
140
- /**
141
- * Fires each time the user clicks on the drop-down list. The event data contains the data item bound to the clicked list item.
142
- *
143
- * @example
144
- * ```ts
145
- * _@Component({
146
- * selector: 'my-app',
147
- * template: `
148
- * <kendo-splitbutton (itemClick)="onSplitButtonItemClick($event)" [data]="data">
149
- * Reply
150
- * </kendo-splitbutton>
151
- * `
152
- * })
153
- * class AppComponent {
154
- * public data: Array<any> = ['Reply All', 'Forward', 'Reply & Delete'];
155
- *
156
- * public onSplitButtonItemClick(dataItem?: string): void {
157
- * if (dataItem) {
158
- * console.log(dataItem);
159
- * }
160
- * }
161
- * }
162
- * ```
163
- *
164
- */
165
- _this.itemClick = new EventEmitter();
166
- /**
167
- * Fires each time the SplitButton gets focused.
168
- */
169
- _this.onFocus = new EventEmitter(); //tslint:disable-line:no-output-rename
170
- /**
171
- * Fires each time the SplitButton gets blurred.
172
- */
173
- _this.onBlur = new EventEmitter(); //tslint:disable-line:no-output-rename
174
- /**
175
- * Fires each time the popup is about to open.
176
- * This event is preventable. If you cancel the event, the popup will remain closed.
177
- */
178
- _this.open = new EventEmitter();
179
- /**
180
- * Fires each time the popup is about to close.
181
- * This event is preventable. If you cancel the event, the popup will remain open.
182
- */
183
- _this.close = new EventEmitter();
184
- _this.listId = guid();
185
- /**
186
- * @hidden
187
- */
188
- _this.activeArrow = false;
189
- _this.buttonText = '';
190
- _this.lockFocus = false;
191
- _this._itemClick = _this.itemClick;
192
- _this._blur = _this.onBlur;
193
- return _this;
194
- }
195
- Object.defineProperty(SplitButtonComponent.prototype, "disabled", {
196
- get: function () {
197
- return this._disabled;
198
- },
199
- /**
200
- * When set to `true`, disables a SplitButton item
201
- * ([see example]({% slug databinding_splitbutton %}#toc-arrays-of-complex-data)).
202
- */
203
- set: function (value) {
204
- if (this.isOpen) {
205
- this.toggle(false);
206
- }
207
- this._disabled = value;
208
- },
209
- enumerable: true,
210
- configurable: true
211
- });
212
- Object.defineProperty(SplitButtonComponent.prototype, "popupSettings", {
213
- get: function () {
214
- return this._popupSettings;
215
- },
216
- /**
217
- * Configures the popup of the SplitButton.
218
- *
219
- * The available options are:
220
- * - `animate: Boolean`&mdash;Controls the popup animation. By default, the open and close animations are enabled.
221
- * - `popupClass: String`&mdash;Specifies a list of CSS classes that are used to style the popup.
222
- * - `appendTo: "root" | "component" | ViewContainerRef`&mdash;Specifies the component to which the popup will be appended.
223
- * - `align: "left" | "center" | "right"`&mdash;Specifies the alignment of the popup.
224
- */
225
- set: function (settings) {
226
- this._popupSettings = Object.assign({ animate: true, popupClass: '' }, settings);
227
- },
228
- enumerable: true,
229
- configurable: true
230
- });
231
- Object.defineProperty(SplitButtonComponent.prototype, "data", {
232
- get: function () {
233
- if (!this._data) {
234
- this.data = [];
235
- }
236
- return this._data;
237
- },
238
- /**
239
- * Sets the data of the SplitButton.
240
- *
241
- * > The data has to be provided in an array-like list.
242
- */
243
- set: function (data) {
244
- this._data = data || [];
245
- },
246
- enumerable: true,
247
- configurable: true
248
- });
249
- Object.defineProperty(SplitButtonComponent.prototype, "openState", {
250
- /**
251
- * @hidden
252
- */
253
- get: function () {
254
- return this._open;
255
- },
256
- /**
257
- * @hidden
258
- */
259
- set: function (open) {
260
- if (this.disabled) {
261
- return;
262
- }
263
- var eventArgs = new PreventableEvent();
264
- if (open) {
265
- this.open.emit(eventArgs);
266
- }
267
- else {
268
- this.close.emit(eventArgs);
269
- }
270
- if (eventArgs.isDefaultPrevented()) {
271
- return;
272
- }
273
- this._toggle(open);
274
- },
275
- enumerable: true,
276
- configurable: true
277
- });
278
- Object.defineProperty(SplitButtonComponent.prototype, "active", {
279
- /**
280
- * @hidden
281
- */
282
- get: function () {
283
- return this._active;
284
- },
285
- enumerable: true,
286
- configurable: true
287
- });
288
- Object.defineProperty(SplitButtonComponent.prototype, "componentTabIndex", {
289
- /**
290
- * @hidden
291
- */
292
- get: function () {
293
- return this.disabled ? -1 : this.tabIndex;
294
- },
295
- enumerable: true,
296
- configurable: true
297
- });
298
- Object.defineProperty(SplitButtonComponent.prototype, "isFocused", {
299
- get: function () {
300
- return this._isFocused && !this._disabled;
301
- },
302
- set: function (value) {
303
- this._isFocused = value;
304
- },
305
- enumerable: true,
306
- configurable: true
307
- });
308
- Object.defineProperty(SplitButtonComponent.prototype, "isFlat", {
309
- get: function () {
310
- return this.look === 'flat';
311
- },
312
- enumerable: true,
313
- configurable: true
314
- });
315
- Object.defineProperty(SplitButtonComponent.prototype, "isOutline", {
316
- get: function () {
317
- return this.look === 'outline';
318
- },
319
- enumerable: true,
320
- configurable: true
321
- });
322
- Object.defineProperty(SplitButtonComponent.prototype, "widgetClasses", {
323
- get: function () {
324
- return true;
325
- },
326
- enumerable: true,
327
- configurable: true
328
- });
329
- Object.defineProperty(SplitButtonComponent.prototype, "dir", {
330
- get: function () {
331
- return this.direction;
332
- },
333
- enumerable: true,
334
- configurable: true
335
- });
336
- Object.defineProperty(SplitButtonComponent.prototype, "ariaLabel", {
337
- /**
338
- * @hidden
339
- */
340
- get: function () {
341
- var localizationMsg = this.localization.get('splitButtonLabel') || '';
342
- return replaceMessagePlaceholder(localizationMsg, 'buttonText', this.buttonText);
343
- },
344
- enumerable: true,
345
- configurable: true
346
- });
347
- /**
348
- * @hidden
349
- */
350
- SplitButtonComponent.prototype.onButtonFocus = function () {
351
- if (!this.isFocused) {
352
- this._isFocused = true;
353
- this.onFocus.emit();
354
- }
355
- };
356
- /**
357
- * @hidden
358
- */
359
- SplitButtonComponent.prototype.onArrowButtonClick = function () {
360
- this.lockFocus = true;
361
- this.togglePopupVisibility();
362
- };
363
- /**
364
- * @hidden
365
- */
366
- SplitButtonComponent.prototype.toggleButtonActiveState = function (enable) {
367
- this._active = enable;
368
- };
369
- /**
370
- * @hidden
371
- */
372
- SplitButtonComponent.prototype.toggleArrowButtonActiveState = function (enable) {
373
- this.activeArrow = enable;
374
- };
375
- /**
376
- * @hidden
377
- */
378
- SplitButtonComponent.prototype.onButtonClick = function () {
379
- this.lockFocus = true;
380
- this.buttonClick.emit();
381
- };
382
- /**
383
- * @hidden
384
- */
385
- SplitButtonComponent.prototype.onButtonBlur = function () {
386
- if (!this.isOpen && !this.lockFocus) {
387
- this.blurWrapper();
388
- }
389
- this.lockFocus = false;
390
- };
391
- /**
392
- * @hidden
393
- */
394
- SplitButtonComponent.prototype.keydown = function (event) {
395
- this.keyDownHandler(event);
396
- if (event.keyCode === Keys.Space) {
397
- this._active = true;
398
- }
399
- };
400
- /**
401
- * @hidden
402
- */
403
- SplitButtonComponent.prototype.keypress = function (event) {
404
- this.keyPressHandler(event);
405
- };
406
- /**
407
- * @hidden
408
- */
409
- SplitButtonComponent.prototype.keyup = function (event) {
410
- this._active = false;
411
- if (event.keyCode !== Keys.Space) {
412
- this.keyUpHandler(event);
413
- }
414
- };
415
- /**
416
- * @hidden
417
- */
418
- SplitButtonComponent.prototype.ngAfterViewInit = function () {
419
- this.updateButtonText();
420
- };
421
- /**
422
- * @hidden
423
- */
424
- SplitButtonComponent.prototype.ngOnChanges = function (changes) {
425
- if (changes.hasOwnProperty('text')) {
426
- this.updateButtonText();
427
- }
428
- if (isChanged("popupSettings", changes) && isPresent(this.popupRef)) {
429
- var popup = this.popupRef.popup.instance;
430
- var newSettings = changes.popupSettings.currentValue;
431
- popup.popupClass = newSettings.popupClass;
432
- popup.animate = newSettings.animate;
433
- popup.popupAlign = this.popupAlign;
434
- }
435
- };
436
- /**
437
- * @hidden
438
- */
439
- SplitButtonComponent.prototype.togglePopupVisibility = function () {
440
- _super.prototype.togglePopupVisibility.call(this);
441
- if (isDocumentAvailable() && this.lockFocus) {
442
- this.button.nativeElement.focus();
443
- }
444
- };
445
- /**
446
- * @hidden
447
- */
448
- SplitButtonComponent.prototype.wrapperContains = function (element) {
449
- return (this.wrapper === element || this.wrapper.contains(element) || (this.popupRef && this.popupRef.popupElement.contains(element)));
450
- };
451
- Object.defineProperty(SplitButtonComponent.prototype, "anchorAlign", {
452
- /**
453
- * @hidden
454
- */
455
- get: function () {
456
- var align = { horizontal: this.popupSettings.align || 'left', vertical: 'bottom' };
457
- if (this.direction === 'rtl' && !isPresent(this.popupSettings.align)) {
458
- align.horizontal = 'right';
459
- }
460
- return align;
461
- },
462
- enumerable: true,
463
- configurable: true
464
- });
465
- Object.defineProperty(SplitButtonComponent.prototype, "popupAlign", {
466
- /**
467
- * @hidden
468
- */
469
- get: function () {
470
- var align = { horizontal: this.popupSettings.align || 'left', vertical: 'top' };
471
- if (this.direction === 'rtl' && !isPresent(this.popupSettings.align)) {
472
- align.horizontal = 'right';
473
- }
474
- return align;
475
- },
476
- enumerable: true,
477
- configurable: true
478
- });
479
- /**
480
- * Focuses the SplitButton component.
481
- */
482
- SplitButtonComponent.prototype.focus = function () {
483
- if (isDocumentAvailable()) {
484
- this.button.nativeElement.focus();
485
- }
486
- };
487
- /**
488
- * Blurs the SplitButton component.
489
- */
490
- SplitButtonComponent.prototype.blur = function () {
491
- if (isDocumentAvailable()) {
492
- this.button.nativeElement.blur();
493
- this.blurWrapper();
494
- }
495
- };
496
- SplitButtonComponent.prototype.ngOnDestroy = function () {
497
- _super.prototype.ngOnDestroy.call(this);
498
- this.destroyPopup();
499
- };
500
- /**
501
- * Toggles the visibility of the popup.
502
- * If the `toggle` method is used to open or close the popup, the `open` and `close` events will not be fired.
503
- *
504
- * @param open - The state of the popup.
505
- */
506
- SplitButtonComponent.prototype.toggle = function (open) {
507
- var _this = this;
508
- if (this.disabled) {
509
- return;
510
- }
511
- tick(function () { return _this._toggle(open === undefined ? !_this._open : open); });
512
- };
513
- Object.defineProperty(SplitButtonComponent.prototype, "isOpen", {
514
- /**
515
- * Returns the current open state of the popup.
516
- */
517
- get: function () {
518
- return this.openState;
519
- },
520
- enumerable: true,
521
- configurable: true
522
- });
523
- SplitButtonComponent.prototype.enterHandler = function () {
524
- if (this.disabled) {
525
- return;
526
- }
527
- if (this.openState) {
528
- var focused = this.focusService.focused;
529
- if (isPresent(focused) && focused !== -1) {
530
- this.emitItemClickHandler(focused);
531
- }
532
- }
533
- else {
534
- this.buttonClick.emit();
535
- }
536
- };
537
- SplitButtonComponent.prototype.updateButtonText = function () {
538
- var _this = this;
539
- if (isDocumentAvailable()) {
540
- var innerText_1 = this.wrapper.innerText
541
- .split('\n')
542
- .join('')
543
- .trim();
544
- //setTimout is needed because of `Expression has changed after it was checked.` error;
545
- setTimeout(function () { return (_this.buttonText = innerText_1); }, 0);
546
- }
547
- };
548
- Object.defineProperty(SplitButtonComponent.prototype, "appendTo", {
549
- get: function () {
550
- var appendTo = this.popupSettings.appendTo;
551
- if (!appendTo || appendTo === 'root') {
552
- return undefined;
553
- }
554
- return appendTo === 'component' ? this.containerRef : appendTo;
555
- },
556
- enumerable: true,
557
- configurable: true
558
- });
559
- SplitButtonComponent.prototype._toggle = function (open) {
560
- this._open = open;
561
- this.destroyPopup();
562
- if (this._open) {
563
- this.createPopup();
564
- }
565
- };
566
- SplitButtonComponent.prototype.createPopup = function () {
567
- var _this = this;
568
- this.popupRef = this.popupService.open({
569
- anchor: this.elRef,
570
- anchorAlign: this.anchorAlign,
571
- animate: this.popupSettings.animate,
572
- appendTo: this.appendTo,
573
- content: this.popupTemplate,
574
- popupAlign: this.popupAlign,
575
- popupClass: this.popupClasses
576
- });
577
- this.popupRef.popupAnchorViewportLeave.subscribe(function () { return (_this.openState = false); });
578
- this.popupRef.popupOpen.subscribe(this.focusFirstItem.bind(this));
579
- };
580
- SplitButtonComponent.prototype.destroyPopup = function () {
581
- if (this.popupRef) {
582
- this.popupRef.close();
583
- this.popupRef = null;
584
- }
585
- };
586
- tslib_1.__decorate([
587
- Input(),
588
- tslib_1.__metadata("design:type", String)
589
- ], SplitButtonComponent.prototype, "text", void 0);
590
- tslib_1.__decorate([
591
- Input(),
592
- tslib_1.__metadata("design:type", String)
593
- ], SplitButtonComponent.prototype, "icon", void 0);
594
- tslib_1.__decorate([
595
- Input(),
596
- tslib_1.__metadata("design:type", String)
597
- ], SplitButtonComponent.prototype, "iconClass", void 0);
598
- tslib_1.__decorate([
599
- Input(),
600
- tslib_1.__metadata("design:type", String)
601
- ], SplitButtonComponent.prototype, "type", void 0);
602
- tslib_1.__decorate([
603
- Input(),
604
- tslib_1.__metadata("design:type", String)
605
- ], SplitButtonComponent.prototype, "imageUrl", void 0);
606
- tslib_1.__decorate([
607
- Input(),
608
- tslib_1.__metadata("design:type", String)
609
- ], SplitButtonComponent.prototype, "look", void 0);
610
- tslib_1.__decorate([
611
- Input(),
612
- tslib_1.__metadata("design:type", Boolean),
613
- tslib_1.__metadata("design:paramtypes", [Boolean])
614
- ], SplitButtonComponent.prototype, "disabled", null);
615
- tslib_1.__decorate([
616
- Input(),
617
- tslib_1.__metadata("design:type", Object),
618
- tslib_1.__metadata("design:paramtypes", [Object])
619
- ], SplitButtonComponent.prototype, "popupSettings", null);
620
- tslib_1.__decorate([
621
- Input(),
622
- tslib_1.__metadata("design:type", Number)
623
- ], SplitButtonComponent.prototype, "tabIndex", void 0);
624
- tslib_1.__decorate([
625
- Input(),
626
- tslib_1.__metadata("design:type", String)
627
- ], SplitButtonComponent.prototype, "textField", void 0);
628
- tslib_1.__decorate([
629
- Input(),
630
- tslib_1.__metadata("design:type", Object),
631
- tslib_1.__metadata("design:paramtypes", [Object])
632
- ], SplitButtonComponent.prototype, "data", null);
633
- tslib_1.__decorate([
634
- Input(),
635
- tslib_1.__metadata("design:type", Object)
636
- ], SplitButtonComponent.prototype, "buttonClass", void 0);
637
- tslib_1.__decorate([
638
- Input(),
639
- tslib_1.__metadata("design:type", Object)
640
- ], SplitButtonComponent.prototype, "arrowButtonClass", void 0);
641
- tslib_1.__decorate([
642
- Input(),
643
- tslib_1.__metadata("design:type", String)
644
- ], SplitButtonComponent.prototype, "arrowButtonIcon", void 0);
645
- tslib_1.__decorate([
646
- Output(),
647
- tslib_1.__metadata("design:type", EventEmitter)
648
- ], SplitButtonComponent.prototype, "buttonClick", void 0);
649
- tslib_1.__decorate([
650
- Output(),
651
- tslib_1.__metadata("design:type", EventEmitter)
652
- ], SplitButtonComponent.prototype, "itemClick", void 0);
653
- tslib_1.__decorate([
654
- Output('focus'),
655
- tslib_1.__metadata("design:type", EventEmitter)
656
- ], SplitButtonComponent.prototype, "onFocus", void 0);
657
- tslib_1.__decorate([
658
- Output('blur'),
659
- tslib_1.__metadata("design:type", EventEmitter)
660
- ], SplitButtonComponent.prototype, "onBlur", void 0);
661
- tslib_1.__decorate([
662
- Output(),
663
- tslib_1.__metadata("design:type", EventEmitter)
664
- ], SplitButtonComponent.prototype, "open", void 0);
665
- tslib_1.__decorate([
666
- Output(),
667
- tslib_1.__metadata("design:type", EventEmitter)
668
- ], SplitButtonComponent.prototype, "close", void 0);
669
- tslib_1.__decorate([
670
- ContentChild(ButtonItemTemplateDirective, { static: false }),
671
- tslib_1.__metadata("design:type", ButtonItemTemplateDirective)
672
- ], SplitButtonComponent.prototype, "itemTemplate", void 0);
673
- tslib_1.__decorate([
674
- ViewChild('button', { static: true }),
675
- tslib_1.__metadata("design:type", ElementRef)
676
- ], SplitButtonComponent.prototype, "button", void 0);
677
- tslib_1.__decorate([
678
- ViewChild('arrowButton', { static: true, read: ElementRef }),
679
- tslib_1.__metadata("design:type", ElementRef)
680
- ], SplitButtonComponent.prototype, "arrowButton", void 0);
681
- tslib_1.__decorate([
682
- ViewChild('popupTemplate', { static: true }),
683
- tslib_1.__metadata("design:type", TemplateRef)
684
- ], SplitButtonComponent.prototype, "popupTemplate", void 0);
685
- tslib_1.__decorate([
686
- ViewChild('container', { read: ViewContainerRef, static: true }),
687
- tslib_1.__metadata("design:type", ViewContainerRef)
688
- ], SplitButtonComponent.prototype, "containerRef", void 0);
689
- tslib_1.__decorate([
690
- HostBinding('class.k-state-focused'),
691
- tslib_1.__metadata("design:type", Boolean),
692
- tslib_1.__metadata("design:paramtypes", [Boolean])
693
- ], SplitButtonComponent.prototype, "isFocused", null);
694
- tslib_1.__decorate([
695
- HostBinding('class.k-flat'),
696
- tslib_1.__metadata("design:type", Boolean),
697
- tslib_1.__metadata("design:paramtypes", [])
698
- ], SplitButtonComponent.prototype, "isFlat", null);
699
- tslib_1.__decorate([
700
- HostBinding('class.k-outline'),
701
- tslib_1.__metadata("design:type", Boolean),
702
- tslib_1.__metadata("design:paramtypes", [])
703
- ], SplitButtonComponent.prototype, "isOutline", null);
704
- tslib_1.__decorate([
705
- HostBinding('class.k-split-button'),
706
- HostBinding('class.k-button-group'),
707
- tslib_1.__metadata("design:type", Boolean),
708
- tslib_1.__metadata("design:paramtypes", [])
709
- ], SplitButtonComponent.prototype, "widgetClasses", null);
710
- tslib_1.__decorate([
711
- HostBinding('attr.dir'),
712
- tslib_1.__metadata("design:type", String),
713
- tslib_1.__metadata("design:paramtypes", [])
714
- ], SplitButtonComponent.prototype, "dir", null);
715
- tslib_1.__decorate([
716
- HostListener('keydown', ['$event']),
717
- tslib_1.__metadata("design:type", Function),
718
- tslib_1.__metadata("design:paramtypes", [Object]),
719
- tslib_1.__metadata("design:returntype", void 0)
720
- ], SplitButtonComponent.prototype, "keydown", null);
721
- tslib_1.__decorate([
722
- HostListener('keypress', ['$event']),
723
- tslib_1.__metadata("design:type", Function),
724
- tslib_1.__metadata("design:paramtypes", [Object]),
725
- tslib_1.__metadata("design:returntype", void 0)
726
- ], SplitButtonComponent.prototype, "keypress", null);
727
- tslib_1.__decorate([
728
- HostListener('keyup', ['$event']),
729
- tslib_1.__metadata("design:type", Function),
730
- tslib_1.__metadata("design:paramtypes", [Object]),
731
- tslib_1.__metadata("design:returntype", void 0)
732
- ], SplitButtonComponent.prototype, "keyup", null);
733
- SplitButtonComponent = tslib_1.__decorate([
734
- Component({
735
- exportAs: 'kendoSplitButton',
736
- providers: [
737
- FocusService,
738
- NavigationService,
739
- NAVIGATION_SETTINGS_PROVIDER,
740
- LocalizationService,
741
- {
742
- provide: L10N_PREFIX,
743
- useValue: 'kendo.splitbutton'
744
- }
745
- ],
746
- selector: 'kendo-splitbutton',
747
- template: "\n <ng-container kendoSplitButtonLocalizedMessages\n i18n-splitButtonLabel=\"kendo.splitbutton.splitButtonLabel|The text for the SplitButton aria-label\"\n splitButtonLabel=\"{{ '{buttonText} splitbutton' }}\">\n </ng-container>\n <button\n kendoButton\n #button\n [type]=\"type\"\n [look]=\"look\"\n [tabindex]=\"componentTabIndex\"\n [disabled]=\"disabled\"\n [icon]=\"icon\"\n [class.k-state-active]=\"active\"\n [iconClass]=\"iconClass\"\n [imageUrl]=\"imageUrl\"\n [ngClass]=\"buttonClass\"\n (focus)=\"onButtonFocus()\"\n (click)=\"onButtonClick()\"\n (blur)=\"onButtonBlur()\"\n (mousedown)=\"toggleButtonActiveState(true)\"\n (mouseup)=\"toggleButtonActiveState(false)\"\n [attr.aria-disabled]=\"disabled\"\n [attr.aria-expanded]=\"openState\"\n [attr.aria-haspopup]=\"true\"\n [attr.aria-owns]=\"listId\"\n [attr.aria-label]=\"ariaLabel\"\n >\n {{ text }}<ng-content></ng-content>\n </button>\n <button\n kendoButton\n #arrowButton\n type=\"button\"\n [class.k-state-active]=\"activeArrow\"\n [disabled]=\"disabled\"\n [icon]=\"arrowButtonIcon\"\n [look]=\"look\"\n [tabindex]=\"-1\"\n [ngClass]=\"arrowButtonClass\"\n (click)=\"onArrowButtonClick()\"\n (mousedown)=\"toggleArrowButtonActiveState(true)\"\n (mouseup)=\"toggleArrowButtonActiveState(false)\"\n ></button>\n <ng-template #popupTemplate>\n <kendo-button-list\n [id]=\"listId\"\n [data]=\"data\"\n [textField]=\"textField\"\n [itemTemplate]=\"itemTemplate\"\n (onItemClick)=\"onItemClick($event)\"\n (keydown)=\"keyDownHandler($event)\"\n (keypress)=\"keyPressHandler($event)\"\n (keyup)=\"keyUpHandler($event)\"\n [attr.dir]=\"dir\"\n >\n </kendo-button-list>\n </ng-template>\n <ng-container #container></ng-container>\n "
748
- }),
749
- tslib_1.__metadata("design:paramtypes", [FocusService,
750
- NavigationService,
751
- ElementRef,
752
- NgZone,
753
- PopupService,
754
- ElementRef,
755
- LocalizationService,
756
- ChangeDetectorRef])
757
- ], SplitButtonComponent);
758
- return SplitButtonComponent;
759
- }(ListButton));
760
- export { SplitButtonComponent };
761
- export { ɵ0 };