@progress/kendo-angular-buttons 7.0.7-dev.202204111624 → 8.0.0-dev.202204131530

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