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