@progress/kendo-angular-buttons 7.0.1-dev.202201191229 → 8.0.0-next.202202081332

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 (271) hide show
  1. package/bundles/kendo-angular-buttons.umd.js +5 -0
  2. package/{dist/es2015/button → button}/button.directive.d.ts +42 -28
  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 +7 -3
  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 +20 -13
  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 +0 -0
  17. package/{dist/es2015/common → common}/models/rounded.d.ts +0 -0
  18. package/{dist/es2015/common → common}/models/shape.d.ts +0 -0
  19. package/{dist/es2015/common → common}/models/size.d.ts +0 -0
  20. package/{dist/es2015/common → common}/models/styling-classes.d.ts +0 -0
  21. package/{dist/es2015/common → common}/models/theme-color.d.ts +0 -0
  22. package/{dist/es2015/common → common}/models.d.ts +0 -0
  23. package/{dist/es2015/direction.d.ts → direction.d.ts} +0 -0
  24. package/{dist/es2015/dropdownbutton → dropdownbutton}/dropdownbutton.component.d.ts +24 -16
  25. package/dropdownbutton/dropdownbutton.module.d.ts +23 -0
  26. package/{dist/es2015 → esm2015}/button/button.directive.js +98 -158
  27. package/{dist/es2015 → esm2015}/button/button.module.js +13 -10
  28. package/{dist/es2015 → esm2015}/button/button.service.js +8 -10
  29. package/{dist/es → esm2015}/button/selection-settings.js +1 -0
  30. package/{dist/es2015 → esm2015}/buttongroup/buttongroup.component.js +82 -106
  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 +58 -70
  36. package/{dist/es2015 → esm2015}/chip/chip-remove-event-args.interface.js +1 -0
  37. package/{dist/es2015 → esm2015}/chip/chip.component.js +124 -120
  38. package/{dist/es2015 → esm2015}/chip/chip.module.js +16 -11
  39. package/{dist/es → esm2015}/chip/models/selection.js +1 -0
  40. package/{dist/es → esm2015}/common/models/fillmode.js +1 -0
  41. package/{dist/es → esm2015}/common/models/rounded.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/styling-classes.js +1 -0
  45. package/{dist/es → esm2015}/common/models/theme-color.js +1 -0
  46. package/{dist/es → esm2015}/common/models.js +6 -0
  47. package/{dist/es → esm2015}/direction.js +1 -0
  48. package/{dist/es2015 → esm2015}/dropdownbutton/dropdownbutton.component.js +166 -184
  49. package/esm2015/dropdownbutton/dropdownbutton.module.js +32 -0
  50. package/{dist/es2015 → esm2015}/floatingactionbutton/animations/animations.js +0 -0
  51. package/esm2015/floatingactionbutton/dial-item.component.js +126 -0
  52. package/esm2015/floatingactionbutton/dial-list.component.js +89 -0
  53. package/{dist/es2015 → esm2015}/floatingactionbutton/floatingactionbutton.component.js +152 -155
  54. package/{dist/es2015 → esm2015}/floatingactionbutton/floatingactionbutton.module.js +19 -11
  55. package/{dist/es → esm2015}/floatingactionbutton/models/align.js +1 -0
  56. package/{dist/es → esm2015}/floatingactionbutton/models/item-animation.interface.js +1 -0
  57. package/{dist/es → esm2015}/floatingactionbutton/models/item-click.event.js +1 -0
  58. package/{dist/es → esm2015}/floatingactionbutton/models/item.interface.js +1 -0
  59. package/{dist/es → esm2015}/floatingactionbutton/models/offset.js +1 -0
  60. package/{dist/es → esm2015}/floatingactionbutton/models/position-mode.js +1 -0
  61. package/esm2015/floatingactionbutton/templates/dial-item-template.directive.js +27 -0
  62. package/esm2015/floatingactionbutton/templates/fab-template.directive.js +27 -0
  63. package/{dist/es2015 → esm2015}/floatingactionbutton/utils.js +0 -0
  64. package/{dist/es2015 → esm2015}/focusable/focus.service.js +8 -10
  65. package/{dist/es2015 → esm2015}/focusable/focusable.directive.js +15 -16
  66. package/{dist/es2015/listbutton/list.module.d.ts → esm2015/kendo-angular-buttons.js} +2 -3
  67. package/{dist/es2015 → esm2015}/listbutton/button-item-template.directive.js +13 -12
  68. package/{dist/es2015 → esm2015}/listbutton/list-button.js +15 -2
  69. package/{dist/es → esm2015}/listbutton/list-item-model.js +1 -0
  70. package/esm2015/listbutton/list.component.js +136 -0
  71. package/esm2015/listbutton/list.module.js +39 -0
  72. package/{dist/es → esm2015}/listbutton/popup-settings.js +1 -0
  73. package/esm2015/listbutton/template-context.directive.js +33 -0
  74. package/{dist/es → esm2015}/main.js +6 -0
  75. package/{dist/es → esm2015}/navigation/key-events.js +0 -0
  76. package/{dist/es → esm2015}/navigation/navigation-action.js +0 -0
  77. package/{dist/es2015 → esm2015}/navigation/navigation-config.js +0 -0
  78. package/{dist/es2015 → esm2015}/navigation/navigation.service.js +11 -9
  79. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  80. package/{dist/es2015 → esm2015}/preventable-event.js +0 -0
  81. package/esm2015/splitbutton/localization/custom-messages.component.js +37 -0
  82. package/esm2015/splitbutton/localization/localized-messages.directive.js +36 -0
  83. package/esm2015/splitbutton/localization/messages.js +22 -0
  84. package/{dist/es2015 → esm2015}/splitbutton/splitbutton.component.js +198 -190
  85. package/esm2015/splitbutton/splitbutton.module.js +34 -0
  86. package/{dist/es2015 → esm2015}/util.js +2 -2
  87. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-buttons.js} +1679 -1694
  88. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/animations/animations.d.ts +0 -0
  89. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/dial-item.component.d.ts +8 -5
  90. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/dial-list.component.d.ts +5 -2
  91. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/floatingactionbutton.component.d.ts +30 -20
  92. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/floatingactionbutton.module.d.ts +13 -0
  93. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/align.d.ts +0 -0
  94. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/item-animation.interface.d.ts +0 -0
  95. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/item-click.event.d.ts +0 -0
  96. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/item.interface.d.ts +0 -0
  97. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/offset.d.ts +0 -0
  98. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/position-mode.d.ts +0 -0
  99. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/templates/dial-item-template.directive.d.ts +3 -0
  100. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/templates/fab-template.directive.d.ts +3 -0
  101. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/utils.d.ts +0 -0
  102. package/{dist/es2015/focusable → focusable}/focus.service.d.ts +5 -1
  103. package/{dist/es2015/focusable → focusable}/focusable.directive.d.ts +3 -0
  104. package/kendo-angular-buttons.d.ts +9 -0
  105. package/{dist/es2015/listbutton → listbutton}/button-item-template.directive.d.ts +3 -0
  106. package/{dist/es2015/listbutton → listbutton}/list-button.d.ts +6 -2
  107. package/{dist/es2015/listbutton → listbutton}/list-item-model.d.ts +0 -0
  108. package/{dist/es2015/listbutton → listbutton}/list.component.d.ts +4 -1
  109. package/listbutton/list.module.d.ts +18 -0
  110. package/{dist/es2015/listbutton → listbutton}/popup-settings.d.ts +0 -0
  111. package/{dist/es2015/listbutton → listbutton}/template-context.directive.d.ts +4 -1
  112. package/{dist/es2015/main.d.ts → main.d.ts} +6 -0
  113. package/{dist/es2015/navigation → navigation}/key-events.d.ts +0 -0
  114. package/{dist/es2015/navigation → navigation}/navigation-action.d.ts +0 -0
  115. package/{dist/es2015/navigation → navigation}/navigation-config.d.ts +0 -0
  116. package/{dist/es2015/navigation → navigation}/navigation.service.d.ts +3 -0
  117. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  118. package/package.json +35 -110
  119. package/{dist/es2015/preventable-event.d.ts → preventable-event.d.ts} +0 -0
  120. package/schematics/ngAdd/index.js +5 -2
  121. package/schematics/ngAdd/index.js.map +1 -1
  122. package/{dist/es2015/splitbutton → splitbutton}/localization/custom-messages.component.d.ts +4 -1
  123. package/{dist/es2015/splitbutton → splitbutton}/localization/localized-messages.directive.d.ts +3 -0
  124. package/{dist/es2015/splitbutton → splitbutton}/localization/messages.d.ts +3 -0
  125. package/{dist/es2015/splitbutton → splitbutton}/splitbutton.component.d.ts +28 -18
  126. package/splitbutton/splitbutton.module.d.ts +25 -0
  127. package/{dist/es2015/util.d.ts → util.d.ts} +0 -0
  128. package/dist/cdn/js/kendo-angular-buttons.js +0 -20
  129. package/dist/cdn/main.js +0 -5
  130. package/dist/es/button/button.directive.js +0 -768
  131. package/dist/es/button/button.module.js +0 -50
  132. package/dist/es/button/button.service.js +0 -24
  133. package/dist/es/buttongroup/buttongroup.component.js +0 -353
  134. package/dist/es/buttongroup/buttongroup.module.js +0 -30
  135. package/dist/es/chip/chip-content-click-event-args.interface.js +0 -4
  136. package/dist/es/chip/chip-list-remove-event-args.interface.js +0 -4
  137. package/dist/es/chip/chip-list.component.js +0 -214
  138. package/dist/es/chip/chip-remove-event-args.interface.js +0 -4
  139. package/dist/es/chip/chip.component.js +0 -449
  140. package/dist/es/chip/chip.module.js +0 -55
  141. package/dist/es/dropdownbutton/dropdownbutton.component.js +0 -705
  142. package/dist/es/dropdownbutton/dropdownbutton.module.js +0 -32
  143. package/dist/es/floatingactionbutton/animations/animations.js +0 -33
  144. package/dist/es/floatingactionbutton/dial-item.component.js +0 -143
  145. package/dist/es/floatingactionbutton/dial-list.component.js +0 -76
  146. package/dist/es/floatingactionbutton/floatingactionbutton.component.js +0 -903
  147. package/dist/es/floatingactionbutton/floatingactionbutton.module.js +0 -65
  148. package/dist/es/floatingactionbutton/templates/dial-item-template.directive.js +0 -26
  149. package/dist/es/floatingactionbutton/templates/fab-template.directive.js +0 -26
  150. package/dist/es/floatingactionbutton/utils.js +0 -38
  151. package/dist/es/focusable/focus.service.js +0 -43
  152. package/dist/es/focusable/focusable.directive.js +0 -68
  153. package/dist/es/index.js +0 -22
  154. package/dist/es/listbutton/button-item-template.directive.js +0 -68
  155. package/dist/es/listbutton/list-button.js +0 -243
  156. package/dist/es/listbutton/list.component.js +0 -85
  157. package/dist/es/listbutton/list.module.js +0 -33
  158. package/dist/es/listbutton/template-context.directive.js +0 -40
  159. package/dist/es/navigation/navigation-config.js +0 -9
  160. package/dist/es/navigation/navigation.service.js +0 -114
  161. package/dist/es/package-metadata.js +0 -15
  162. package/dist/es/preventable-event.js +0 -29
  163. package/dist/es/splitbutton/localization/custom-messages.component.js +0 -44
  164. package/dist/es/splitbutton/localization/localized-messages.directive.js +0 -35
  165. package/dist/es/splitbutton/localization/messages.js +0 -22
  166. package/dist/es/splitbutton/splitbutton.component.js +0 -831
  167. package/dist/es/splitbutton/splitbutton.module.js +0 -34
  168. package/dist/es/util.js +0 -97
  169. package/dist/es2015/button/selection-settings.js +0 -4
  170. package/dist/es2015/buttongroup/buttongroup.module.js +0 -27
  171. package/dist/es2015/buttons.module.js +0 -51
  172. package/dist/es2015/chip/models/selection.js +0 -4
  173. package/dist/es2015/common/models/fillmode.js +0 -4
  174. package/dist/es2015/common/models/rounded.js +0 -4
  175. package/dist/es2015/common/models/shape.js +0 -4
  176. package/dist/es2015/common/models/size.js +0 -4
  177. package/dist/es2015/common/models/styling-classes.js +0 -4
  178. package/dist/es2015/common/models/theme-color.js +0 -4
  179. package/dist/es2015/common/models.js +0 -4
  180. package/dist/es2015/direction.js +0 -4
  181. package/dist/es2015/dropdownbutton/dropdownbutton.module.d.ts +0 -14
  182. package/dist/es2015/dropdownbutton/dropdownbutton.module.js +0 -29
  183. package/dist/es2015/floatingactionbutton/dial-item.component.js +0 -133
  184. package/dist/es2015/floatingactionbutton/dial-list.component.js +0 -81
  185. package/dist/es2015/floatingactionbutton/models/align.js +0 -4
  186. package/dist/es2015/floatingactionbutton/models/item-animation.interface.js +0 -4
  187. package/dist/es2015/floatingactionbutton/models/item-click.event.js +0 -4
  188. package/dist/es2015/floatingactionbutton/models/item.interface.js +0 -4
  189. package/dist/es2015/floatingactionbutton/models/offset.js +0 -4
  190. package/dist/es2015/floatingactionbutton/models/position-mode.js +0 -4
  191. package/dist/es2015/floatingactionbutton/templates/dial-item-template.directive.js +0 -25
  192. package/dist/es2015/floatingactionbutton/templates/fab-template.directive.js +0 -25
  193. package/dist/es2015/index.d.ts +0 -22
  194. package/dist/es2015/index.js +0 -22
  195. package/dist/es2015/index.metadata.json +0 -1
  196. package/dist/es2015/listbutton/list-item-model.js +0 -4
  197. package/dist/es2015/listbutton/list.component.js +0 -113
  198. package/dist/es2015/listbutton/list.module.js +0 -30
  199. package/dist/es2015/listbutton/popup-settings.js +0 -4
  200. package/dist/es2015/listbutton/template-context.directive.js +0 -35
  201. package/dist/es2015/main.js +0 -22
  202. package/dist/es2015/navigation/key-events.js +0 -13
  203. package/dist/es2015/navigation/navigation-action.js +0 -19
  204. package/dist/es2015/splitbutton/localization/custom-messages.component.js +0 -36
  205. package/dist/es2015/splitbutton/localization/localized-messages.directive.js +0 -31
  206. package/dist/es2015/splitbutton/localization/messages.js +0 -16
  207. package/dist/es2015/splitbutton/splitbutton.module.d.ts +0 -14
  208. package/dist/es2015/splitbutton/splitbutton.module.js +0 -31
  209. package/dist/fesm5/index.js +0 -5562
  210. package/dist/npm/button/button.directive.js +0 -770
  211. package/dist/npm/button/button.module.js +0 -52
  212. package/dist/npm/button/button.service.js +0 -26
  213. package/dist/npm/button/selection-settings.js +0 -6
  214. package/dist/npm/buttongroup/buttongroup.component.js +0 -355
  215. package/dist/npm/buttongroup/buttongroup.module.js +0 -32
  216. package/dist/npm/buttons.module.js +0 -56
  217. package/dist/npm/chip/chip-content-click-event-args.interface.js +0 -6
  218. package/dist/npm/chip/chip-list-remove-event-args.interface.js +0 -6
  219. package/dist/npm/chip/chip-list.component.js +0 -216
  220. package/dist/npm/chip/chip-remove-event-args.interface.js +0 -6
  221. package/dist/npm/chip/chip.component.js +0 -451
  222. package/dist/npm/chip/chip.module.js +0 -57
  223. package/dist/npm/chip/models/selection.js +0 -6
  224. package/dist/npm/common/models/fillmode.js +0 -6
  225. package/dist/npm/common/models/rounded.js +0 -6
  226. package/dist/npm/common/models/shape.js +0 -6
  227. package/dist/npm/common/models/size.js +0 -6
  228. package/dist/npm/common/models/styling-classes.js +0 -6
  229. package/dist/npm/common/models/theme-color.js +0 -6
  230. package/dist/npm/common/models.js +0 -6
  231. package/dist/npm/direction.js +0 -6
  232. package/dist/npm/dropdownbutton/dropdownbutton.component.js +0 -707
  233. package/dist/npm/dropdownbutton/dropdownbutton.module.js +0 -34
  234. package/dist/npm/floatingactionbutton/animations/animations.js +0 -37
  235. package/dist/npm/floatingactionbutton/dial-item.component.js +0 -145
  236. package/dist/npm/floatingactionbutton/dial-list.component.js +0 -78
  237. package/dist/npm/floatingactionbutton/floatingactionbutton.component.js +0 -905
  238. package/dist/npm/floatingactionbutton/floatingactionbutton.module.js +0 -67
  239. package/dist/npm/floatingactionbutton/models/align.js +0 -6
  240. package/dist/npm/floatingactionbutton/models/item-animation.interface.js +0 -6
  241. package/dist/npm/floatingactionbutton/models/item-click.event.js +0 -6
  242. package/dist/npm/floatingactionbutton/models/item.interface.js +0 -6
  243. package/dist/npm/floatingactionbutton/models/offset.js +0 -6
  244. package/dist/npm/floatingactionbutton/models/position-mode.js +0 -6
  245. package/dist/npm/floatingactionbutton/templates/dial-item-template.directive.js +0 -28
  246. package/dist/npm/floatingactionbutton/templates/fab-template.directive.js +0 -28
  247. package/dist/npm/floatingactionbutton/utils.js +0 -42
  248. package/dist/npm/focusable/focus.service.js +0 -45
  249. package/dist/npm/focusable/focusable.directive.js +0 -70
  250. package/dist/npm/index.js +0 -39
  251. package/dist/npm/listbutton/button-item-template.directive.js +0 -70
  252. package/dist/npm/listbutton/list-button.js +0 -245
  253. package/dist/npm/listbutton/list-item-model.js +0 -6
  254. package/dist/npm/listbutton/list.component.js +0 -87
  255. package/dist/npm/listbutton/list.module.js +0 -35
  256. package/dist/npm/listbutton/popup-settings.js +0 -6
  257. package/dist/npm/listbutton/template-context.directive.js +0 -42
  258. package/dist/npm/main.js +0 -45
  259. package/dist/npm/navigation/key-events.js +0 -15
  260. package/dist/npm/navigation/navigation-action.js +0 -21
  261. package/dist/npm/navigation/navigation-config.js +0 -11
  262. package/dist/npm/navigation/navigation.service.js +0 -116
  263. package/dist/npm/package-metadata.js +0 -17
  264. package/dist/npm/preventable-event.js +0 -31
  265. package/dist/npm/splitbutton/localization/custom-messages.component.js +0 -46
  266. package/dist/npm/splitbutton/localization/localized-messages.directive.js +0 -37
  267. package/dist/npm/splitbutton/localization/messages.js +0 -24
  268. package/dist/npm/splitbutton/splitbutton.component.js +0 -833
  269. package/dist/npm/splitbutton/splitbutton.module.js +0 -36
  270. package/dist/npm/util.js +0 -100
  271. package/dist/systemjs/kendo-angular-buttons.js +0 -5
@@ -1,770 +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
- var core_1 = require("@angular/core");
9
- var button_service_1 = require("./button.service");
10
- var kendo_angular_common_1 = require("@progress/kendo-angular-common");
11
- var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
12
- var kendo_licensing_1 = require("@progress/kendo-licensing");
13
- var package_metadata_1 = require("../package-metadata");
14
- var util_1 = require("../util");
15
- var SPAN_TAG_NAME = 'SPAN';
16
- /**
17
- * Represents the Kendo UI Button component for Angular.
18
- */
19
- var ButtonDirective = /** @class */ (function () {
20
- function ButtonDirective(element, renderer, service, localization, ngZone) {
21
- var _this = this;
22
- this.service = service;
23
- this.ngZone = ngZone;
24
- /**
25
- * Provides visual styling that indicates if the Button is active.
26
- * By default, `toggleable` is set to `false`.
27
- */
28
- this.toggleable = false;
29
- /**
30
- * @hidden
31
- */
32
- this.role = 'button';
33
- /**
34
- * Fires each time the selected state of a toggleable button is changed.
35
- *
36
- * The event argument is the new selected state (boolean).
37
- */
38
- this.selectedChange = new core_1.EventEmitter();
39
- /**
40
- * Fires each time the user clicks the button.
41
- */
42
- this.click = new core_1.EventEmitter();
43
- this.isDisabled = false;
44
- this.isIcon = false;
45
- this.isIconClass = false;
46
- this._size = 'medium';
47
- this._rounded = 'medium';
48
- this._shape = 'rectangle';
49
- this._fillMode = 'solid';
50
- this._themeColor = 'base';
51
- this._focused = false;
52
- this.domEvents = [];
53
- kendo_licensing_1.validatePackage(package_metadata_1.packageMetadata);
54
- this.direction = localization.rtl ? 'rtl' : 'ltr';
55
- this.localizationChangeSubscription = localization.changes.subscribe(function (_a) {
56
- var rtl = _a.rtl;
57
- return (_this.direction = rtl ? 'rtl' : 'ltr');
58
- });
59
- this.element = element.nativeElement;
60
- this.renderer = renderer;
61
- }
62
- Object.defineProperty(ButtonDirective.prototype, "togglable", {
63
- /**
64
- * Backwards-compatible alias
65
- *
66
- * @hidden
67
- */
68
- get: function () {
69
- return this.toggleable;
70
- },
71
- /**
72
- * @hidden
73
- */
74
- set: function (value) {
75
- this.toggleable = value;
76
- },
77
- enumerable: true,
78
- configurable: true
79
- });
80
- Object.defineProperty(ButtonDirective.prototype, "selected", {
81
- /**
82
- * Sets the selected state of the Button.
83
- */
84
- get: function () {
85
- return this._selected || false;
86
- },
87
- set: function (value) {
88
- this._selected = value;
89
- },
90
- enumerable: true,
91
- configurable: true
92
- });
93
- Object.defineProperty(ButtonDirective.prototype, "tabIndex", {
94
- get: function () {
95
- return this.element.tabIndex;
96
- },
97
- /**
98
- * @hidden
99
- */
100
- set: function (index) {
101
- this.element.tabIndex = index;
102
- },
103
- enumerable: true,
104
- configurable: true
105
- });
106
- Object.defineProperty(ButtonDirective.prototype, "icon", {
107
- /**
108
- * Defines the name for an existing icon in a Kendo UI theme.
109
- * The icon is rendered inside the Button by a `span.k-icon` element.
110
- */
111
- set: function (icon) {
112
- var _this = this;
113
- if (icon) {
114
- this.iconSetter(icon, function () {
115
- _this.isIcon = true;
116
- var classes = 'k-button-icon k-icon k-i-' + icon;
117
- _this.addIcon(classes);
118
- });
119
- }
120
- else {
121
- this.isIcon = false;
122
- this.updateIconNode();
123
- }
124
- },
125
- enumerable: true,
126
- configurable: true
127
- });
128
- Object.defineProperty(ButtonDirective.prototype, "iconClass", {
129
- /**
130
- * Defines a CSS class—or multiple classes separated by spaces—
131
- * which are applied to a `span` element inside the Button. Allows the usage of custom icons.
132
- */
133
- set: function (iconClassName) {
134
- var _this = this;
135
- if (iconClassName) {
136
- this.iconSetter(iconClassName, function () {
137
- _this.isIconClass = true;
138
- var classes = 'k-button-icon k-icon ' + iconClassName;
139
- _this.addIcon(classes);
140
- });
141
- }
142
- else {
143
- this.isIconClass = false;
144
- this.updateIconNode();
145
- }
146
- },
147
- enumerable: true,
148
- configurable: true
149
- });
150
- Object.defineProperty(ButtonDirective.prototype, "imageUrl", {
151
- /**
152
- * Defines a URL which is used for an `img` element inside the Button.
153
- * The URL can be relative or absolute. If relative, it is evaluated with relation to the web page URL.
154
- */
155
- set: function (imageUrl) {
156
- if (imageUrl) {
157
- this.iconSetter(imageUrl, this.addImgIcon.bind(this));
158
- }
159
- else {
160
- this.removeImageNode();
161
- }
162
- },
163
- enumerable: true,
164
- configurable: true
165
- });
166
- Object.defineProperty(ButtonDirective.prototype, "disabled", {
167
- get: function () {
168
- return this.isDisabled;
169
- },
170
- /**
171
- * If set to `true`, it disables the Button.
172
- */
173
- set: function (disabled) {
174
- this.isDisabled = disabled;
175
- this.renderer.setProperty(this.element, 'disabled', disabled);
176
- },
177
- enumerable: true,
178
- configurable: true
179
- });
180
- Object.defineProperty(ButtonDirective.prototype, "size", {
181
- get: function () {
182
- return this._size;
183
- },
184
- /**
185
- * The size property specifies the padding of the Button
186
- * ([see example]({% slug appearance_buttondirective %}#toc-size)).
187
- *
188
- * The possible values are:
189
- * * `'small'`
190
- * * `'medium'` (default)
191
- * * `'large'`
192
- * * `null`
193
- */
194
- set: function (size) {
195
- this.handleClasses(size, 'size');
196
- this._size = size;
197
- },
198
- enumerable: true,
199
- configurable: true
200
- });
201
- Object.defineProperty(ButtonDirective.prototype, "rounded", {
202
- get: function () {
203
- return this._rounded;
204
- },
205
- /**
206
- * The rounded property specifies the border radius of the Button
207
- * ([see example]({% slug appearance_buttondirective %}#toc-rounded)).
208
- *
209
- * The possible values are:
210
- * * `'small'`
211
- * * `'medium'` (default)
212
- * * `'large'`
213
- * * `'full'`
214
- * * `null`
215
- */
216
- set: function (rounded) {
217
- this.handleClasses(rounded, 'rounded');
218
- this._rounded = rounded;
219
- },
220
- enumerable: true,
221
- configurable: true
222
- });
223
- Object.defineProperty(ButtonDirective.prototype, "fillMode", {
224
- get: function () {
225
- return this._fillMode;
226
- },
227
- /**
228
- * The fillMode property specifies the background and border styles of the Button
229
- * ([see example]({% slug appearance_buttondirective %}#toc-fillMode)).
230
- *
231
- * The possible values are:
232
- * * `'flat'`
233
- * * `'solid'` (default)
234
- * * `'outline'`
235
- * * `'link'`
236
- * * `null`
237
- */
238
- set: function (fillMode) {
239
- this.handleClasses(fillMode, 'fillMode');
240
- this._fillMode = fillMode;
241
- },
242
- enumerable: true,
243
- configurable: true
244
- });
245
- Object.defineProperty(ButtonDirective.prototype, "themeColor", {
246
- get: function () {
247
- return this._themeColor;
248
- },
249
- /**
250
- * The Button allows you to specify predefined theme colors.
251
- * The theme color will be applied as a background and border color while also amending the text color accordingly
252
- * ([see example]({% slug appearance_buttondirective %}#toc-themeColor)).
253
- *
254
- * The possible values are:
255
- * * `'base'` (default)
256
- * * `'primary'`
257
- * * `'secondary'`
258
- * * `'tertiary'`
259
- * * `'info'`
260
- * * `'success'`
261
- * * `'warning'`
262
- * * `'error'`
263
- * * `'dark'`
264
- * * `'light`'
265
- * * `'inverse'`
266
- */
267
- set: function (themeColor) {
268
- this.handleThemeColor(themeColor);
269
- this._themeColor = themeColor;
270
- },
271
- enumerable: true,
272
- configurable: true
273
- });
274
- Object.defineProperty(ButtonDirective.prototype, "shape", {
275
- get: function () {
276
- return this._shape;
277
- },
278
- /**
279
- * The shape property specifies if the Button will form a rectangle or square.
280
- * ([see example]({% slug appearance_buttondirective %}#toc-shape)).
281
- *
282
- * The possible values are:
283
- * * `'square'`
284
- * * `'rectangle'` (default)
285
- */
286
- set: function (shape) {
287
- this.handleClasses(shape, 'shape');
288
- this._shape = shape;
289
- },
290
- enumerable: true,
291
- configurable: true
292
- });
293
- Object.defineProperty(ButtonDirective.prototype, "isFocused", {
294
- get: function () {
295
- return this._focused;
296
- },
297
- set: function (isFocused) {
298
- this.toggleClass('k-focus', isFocused);
299
- this._focused = isFocused;
300
- },
301
- enumerable: true,
302
- configurable: true
303
- });
304
- Object.defineProperty(ButtonDirective.prototype, "classButton", {
305
- get: function () {
306
- return true;
307
- },
308
- enumerable: true,
309
- configurable: true
310
- });
311
- Object.defineProperty(ButtonDirective.prototype, "isToggleable", {
312
- get: function () {
313
- return this.toggleable;
314
- },
315
- enumerable: true,
316
- configurable: true
317
- });
318
- Object.defineProperty(ButtonDirective.prototype, "roleSetter", {
319
- get: function () {
320
- return this.role;
321
- },
322
- enumerable: true,
323
- configurable: true
324
- });
325
- Object.defineProperty(ButtonDirective.prototype, "classDisabled", {
326
- get: function () {
327
- return this.isDisabled;
328
- },
329
- enumerable: true,
330
- configurable: true
331
- });
332
- Object.defineProperty(ButtonDirective.prototype, "classActive", {
333
- get: function () {
334
- return this.selected;
335
- },
336
- enumerable: true,
337
- configurable: true
338
- });
339
- Object.defineProperty(ButtonDirective.prototype, "getDirection", {
340
- get: function () {
341
- return this.direction;
342
- },
343
- enumerable: true,
344
- configurable: true
345
- });
346
- /**
347
- * @hidden
348
- */
349
- ButtonDirective.prototype.onFocus = function () {
350
- this.isFocused = true;
351
- };
352
- /**
353
- * @hidden
354
- */
355
- ButtonDirective.prototype.onBlur = function () {
356
- this.isFocused = false;
357
- };
358
- Object.defineProperty(ButtonDirective.prototype, "primary", {
359
- /**
360
- * @hidden
361
- */
362
- set: function (value) {
363
- this.themeColor = value ? 'primary' : 'base';
364
- },
365
- enumerable: true,
366
- configurable: true
367
- });
368
- Object.defineProperty(ButtonDirective.prototype, "look", {
369
- /**
370
- * @hidden
371
- */
372
- set: function (value) {
373
- switch (value) {
374
- case 'default':
375
- this.fillMode = 'solid';
376
- break;
377
- default:
378
- this.fillMode = value;
379
- break;
380
- }
381
- },
382
- enumerable: true,
383
- configurable: true
384
- });
385
- ButtonDirective.prototype.ngOnInit = function () {
386
- var _this = this;
387
- var isSpan = this.element.tagName === SPAN_TAG_NAME;
388
- this.addTextSpan();
389
- if (!this.element.hasAttribute('role') && this.togglable) {
390
- this.toggleAriaPressed(this.toggleable);
391
- }
392
- if (this.role) {
393
- this.setAttribute('role', this.role);
394
- }
395
- this.ngZone.runOutsideAngular(function () {
396
- _this.domEvents.push(_this.renderer.listen(_this.element, 'click', _this._onButtonClick.bind(_this)));
397
- _this.domEvents.push(_this.renderer.listen(_this.element, 'keydown', function (event) {
398
- var isSpaceOrEnter = event.keyCode === kendo_angular_common_1.Keys.Space || event.keyCode === kendo_angular_common_1.Keys.Enter;
399
- if (isSpan && isSpaceOrEnter) {
400
- _this.click.emit(event);
401
- _this._onButtonClick();
402
- }
403
- }));
404
- });
405
- };
406
- ButtonDirective.prototype.ngOnChanges = function (change) {
407
- if (kendo_angular_common_1.isChanged('togglable', change) || kendo_angular_common_1.isChanged('toggleable', change)) {
408
- this.toggleAriaPressed(this.toggleable);
409
- }
410
- };
411
- ButtonDirective.prototype.ngAfterViewInit = function () {
412
- var _this = this;
413
- var stylingOptions = ['size', 'rounded', 'shape', 'fillMode'];
414
- stylingOptions.forEach(function (input) {
415
- _this.handleClasses(_this[input], input);
416
- });
417
- };
418
- ButtonDirective.prototype.ngAfterViewChecked = function () {
419
- this.setIconTextClasses();
420
- };
421
- ButtonDirective.prototype.ngOnDestroy = function () {
422
- this.imageNode = null;
423
- this.iconNode = null;
424
- this.iconSpanNode = null;
425
- this.renderer = null;
426
- this.localizationChangeSubscription.unsubscribe();
427
- clearTimeout(this.deferTimeout);
428
- this.domEvents.forEach(function (unbindHandler) { return unbindHandler(); });
429
- };
430
- /**
431
- * Focuses the Button component.
432
- */
433
- ButtonDirective.prototype.focus = function () {
434
- if (kendo_angular_common_1.isDocumentAvailable()) {
435
- this.element.focus();
436
- this.isFocused = true;
437
- }
438
- };
439
- /**
440
- * Blurs the Button component.
441
- */
442
- ButtonDirective.prototype.blur = function () {
443
- if (kendo_angular_common_1.isDocumentAvailable()) {
444
- this.element.blur();
445
- this.isFocused = false;
446
- }
447
- };
448
- /**
449
- * @hidden
450
- */
451
- ButtonDirective.prototype.setAttribute = function (attribute, value) {
452
- this.renderer.setAttribute(this.element, attribute, value);
453
- };
454
- /**
455
- * @hidden
456
- */
457
- ButtonDirective.prototype.removeAttribute = function (attribute) {
458
- this.renderer.removeAttribute(this.element, attribute);
459
- };
460
- /**
461
- * @hidden
462
- *
463
- * Internal setter that triggers selectedChange
464
- */
465
- ButtonDirective.prototype.setSelected = function (value) {
466
- var _this = this;
467
- var changed = this.selected !== value;
468
- this.selected = value;
469
- this.setAttribute('aria-pressed', this.selected.toString());
470
- this.toggleClass('k-selected', this.selected);
471
- if (changed && kendo_angular_common_1.hasObservers(this.selectedChange)) {
472
- this.ngZone.run(function () {
473
- _this.selectedChange.emit(value);
474
- });
475
- }
476
- };
477
- ButtonDirective.prototype.toggleAriaPressed = function (shouldSet) {
478
- if (!kendo_angular_common_1.isDocumentAvailable()) {
479
- return;
480
- }
481
- if (shouldSet) {
482
- this.setAttribute('aria-pressed', this.selected.toString());
483
- }
484
- else {
485
- this.removeAttribute('aria-pressed');
486
- }
487
- };
488
- ButtonDirective.prototype.hasText = function () {
489
- return kendo_angular_common_1.isDocumentAvailable() && this.element.textContent.trim().length > 0;
490
- };
491
- ButtonDirective.prototype.addImgIcon = function (imageUrl) {
492
- var renderer = this.renderer;
493
- this.iconSpanNode = renderer.createElement('span');
494
- renderer.setProperty(this.iconSpanNode, 'className', 'k-button-icon k-icon');
495
- if (this.imageNode) {
496
- renderer.setProperty(this.imageNode, 'src', imageUrl);
497
- }
498
- else if (kendo_angular_common_1.isDocumentAvailable()) {
499
- this.imageNode = renderer.createElement('img');
500
- renderer.setProperty(this.imageNode, 'src', imageUrl);
501
- renderer.setProperty(this.imageNode, 'className', 'k-image');
502
- renderer.setAttribute(this.imageNode, 'role', 'presentation');
503
- }
504
- this.iconSpanNode.appendChild(this.imageNode);
505
- this.prependChild(this.iconSpanNode);
506
- };
507
- ButtonDirective.prototype.addIcon = function (classNames) {
508
- var renderer = this.renderer;
509
- if (this.iconNode) {
510
- renderer.setProperty(this.iconNode, 'className', classNames);
511
- }
512
- else if (kendo_angular_common_1.isDocumentAvailable()) {
513
- this.iconNode = renderer.createElement('span');
514
- renderer.setProperty(this.iconNode, 'className', classNames);
515
- renderer.setAttribute(this.iconNode, 'role', 'presentation');
516
- this.prependChild(this.iconNode);
517
- }
518
- };
519
- ButtonDirective.prototype.addTextSpan = function () {
520
- var _this = this;
521
- if (kendo_angular_common_1.isDocumentAvailable() && this.hasText()) {
522
- var span_1 = this.renderer.createElement('span');
523
- this.renderer.addClass(span_1, 'k-button-text');
524
- var buttonContentNodes = Array.from(this.element.childNodes);
525
- buttonContentNodes.forEach(function (node) { return _this.renderer.appendChild(span_1, node); });
526
- this.renderer.appendChild(this.element, span_1);
527
- }
528
- };
529
- ButtonDirective.prototype.prependChild = function (node) {
530
- var _this = this;
531
- this.defer(function () {
532
- if (_this.renderer && node !== _this.element.firstChild) {
533
- _this.renderer.insertBefore(_this.element, node, _this.element.firstChild);
534
- }
535
- });
536
- };
537
- ButtonDirective.prototype.defer = function (callback) {
538
- var _this = this;
539
- this.ngZone.runOutsideAngular(function () {
540
- _this.deferTimeout = setTimeout(callback, 0);
541
- });
542
- };
543
- ButtonDirective.prototype.iconSetter = function (icon, insertIcon) {
544
- if (icon) {
545
- insertIcon(icon);
546
- }
547
- this.setIconTextClasses();
548
- };
549
- ButtonDirective.prototype.removeImageNode = function () {
550
- if (this.imageNode && this.renderer.parentNode(this.imageNode)) {
551
- this.renderer.removeChild(this.element, this.imageNode);
552
- this.renderer.removeChild(this.element, this.iconSpanNode);
553
- this.imageNode = null;
554
- this.iconSpanNode = null;
555
- }
556
- };
557
- ButtonDirective.prototype.removeIconNode = function () {
558
- if (this.iconNode && this.renderer.parentNode(this.iconNode)) {
559
- this.renderer.removeChild(this.element, this.iconNode);
560
- this.iconNode = null;
561
- }
562
- if (this.iconSpanNode) {
563
- this.renderer.removeChild(this.element, this.iconSpanNode);
564
- this.iconSpanNode = null;
565
- }
566
- };
567
- ButtonDirective.prototype.updateIconNode = function () {
568
- if (!this.isIcon && !this.isIconClass) {
569
- this.removeIconNode();
570
- }
571
- };
572
- ButtonDirective.prototype.setIconTextClasses = function () {
573
- var hasIcon = this.isIcon || this.isIconClass || this.imageNode;
574
- this.toggleClass('k-icon-button', hasIcon && !this.hasText());
575
- };
576
- ButtonDirective.prototype.toggleClass = function (className, add) {
577
- if (add) {
578
- this.renderer.addClass(this.element, className);
579
- }
580
- else {
581
- this.renderer.removeClass(this.element, className);
582
- }
583
- };
584
- ButtonDirective.prototype._onButtonClick = function () {
585
- var _this = this;
586
- if (!this.disabled && this.service) {
587
- this.ngZone.run(function () {
588
- _this.service.click(_this);
589
- });
590
- }
591
- if (this.togglable && !this.service) {
592
- this.setSelected(!this.selected);
593
- }
594
- };
595
- ButtonDirective.prototype.handleClasses = function (value, input) {
596
- var elem = this.element;
597
- var classes = util_1.getStylingClasses('button', input, this[input], value);
598
- if (input === 'fillMode') {
599
- this.handleThemeColor(this.themeColor, this[input], value);
600
- }
601
- if (classes.toRemove) {
602
- this.renderer.removeClass(elem, classes.toRemove);
603
- }
604
- if (classes.toAdd) {
605
- this.renderer.addClass(elem, classes.toAdd);
606
- }
607
- };
608
- ButtonDirective.prototype.handleThemeColor = function (value, prevFillMode, fillMode) {
609
- var elem = this.element;
610
- var removeFillMode = prevFillMode ? prevFillMode : this.fillMode;
611
- var addFillMode = fillMode ? fillMode : this.fillMode;
612
- var themeColorClass = util_1.getThemeColorClasses('button', removeFillMode, addFillMode, this.themeColor, value);
613
- this.renderer.removeClass(elem, themeColorClass.toRemove);
614
- if (addFillMode !== null && fillMode !== null) {
615
- if (themeColorClass.toAdd) {
616
- this.renderer.addClass(elem, themeColorClass.toAdd);
617
- }
618
- }
619
- };
620
- tslib_1.__decorate([
621
- core_1.Input(),
622
- tslib_1.__metadata("design:type", Boolean)
623
- ], ButtonDirective.prototype, "toggleable", void 0);
624
- tslib_1.__decorate([
625
- core_1.Input(),
626
- tslib_1.__metadata("design:type", Boolean),
627
- tslib_1.__metadata("design:paramtypes", [Boolean])
628
- ], ButtonDirective.prototype, "togglable", null);
629
- tslib_1.__decorate([
630
- core_1.Input(),
631
- tslib_1.__metadata("design:type", Boolean),
632
- tslib_1.__metadata("design:paramtypes", [Boolean])
633
- ], ButtonDirective.prototype, "selected", null);
634
- tslib_1.__decorate([
635
- core_1.Input(),
636
- tslib_1.__metadata("design:type", Number),
637
- tslib_1.__metadata("design:paramtypes", [Number])
638
- ], ButtonDirective.prototype, "tabIndex", null);
639
- tslib_1.__decorate([
640
- core_1.Input(),
641
- tslib_1.__metadata("design:type", String),
642
- tslib_1.__metadata("design:paramtypes", [String])
643
- ], ButtonDirective.prototype, "icon", null);
644
- tslib_1.__decorate([
645
- core_1.Input(),
646
- tslib_1.__metadata("design:type", String),
647
- tslib_1.__metadata("design:paramtypes", [String])
648
- ], ButtonDirective.prototype, "iconClass", null);
649
- tslib_1.__decorate([
650
- core_1.Input(),
651
- tslib_1.__metadata("design:type", String),
652
- tslib_1.__metadata("design:paramtypes", [String])
653
- ], ButtonDirective.prototype, "imageUrl", null);
654
- tslib_1.__decorate([
655
- core_1.Input(),
656
- tslib_1.__metadata("design:type", Boolean),
657
- tslib_1.__metadata("design:paramtypes", [Boolean])
658
- ], ButtonDirective.prototype, "disabled", null);
659
- tslib_1.__decorate([
660
- core_1.Input(),
661
- tslib_1.__metadata("design:type", String),
662
- tslib_1.__metadata("design:paramtypes", [String])
663
- ], ButtonDirective.prototype, "size", null);
664
- tslib_1.__decorate([
665
- core_1.Input(),
666
- tslib_1.__metadata("design:type", String),
667
- tslib_1.__metadata("design:paramtypes", [String])
668
- ], ButtonDirective.prototype, "rounded", null);
669
- tslib_1.__decorate([
670
- core_1.Input(),
671
- tslib_1.__metadata("design:type", String),
672
- tslib_1.__metadata("design:paramtypes", [String])
673
- ], ButtonDirective.prototype, "fillMode", null);
674
- tslib_1.__decorate([
675
- core_1.Input(),
676
- tslib_1.__metadata("design:type", String),
677
- tslib_1.__metadata("design:paramtypes", [String])
678
- ], ButtonDirective.prototype, "themeColor", null);
679
- tslib_1.__decorate([
680
- core_1.Input(),
681
- tslib_1.__metadata("design:type", String),
682
- tslib_1.__metadata("design:paramtypes", [String])
683
- ], ButtonDirective.prototype, "shape", null);
684
- tslib_1.__decorate([
685
- core_1.Input(),
686
- tslib_1.__metadata("design:type", String)
687
- ], ButtonDirective.prototype, "role", void 0);
688
- tslib_1.__decorate([
689
- core_1.Output(),
690
- tslib_1.__metadata("design:type", core_1.EventEmitter)
691
- ], ButtonDirective.prototype, "selectedChange", void 0);
692
- tslib_1.__decorate([
693
- core_1.Output(),
694
- tslib_1.__metadata("design:type", core_1.EventEmitter)
695
- ], ButtonDirective.prototype, "click", void 0);
696
- tslib_1.__decorate([
697
- core_1.HostBinding('class.k-button'),
698
- tslib_1.__metadata("design:type", Boolean),
699
- tslib_1.__metadata("design:paramtypes", [])
700
- ], ButtonDirective.prototype, "classButton", null);
701
- tslib_1.__decorate([
702
- core_1.HostBinding('class.k-toggle-button'),
703
- tslib_1.__metadata("design:type", Boolean),
704
- tslib_1.__metadata("design:paramtypes", [])
705
- ], ButtonDirective.prototype, "isToggleable", null);
706
- tslib_1.__decorate([
707
- core_1.HostBinding('attr.role'),
708
- tslib_1.__metadata("design:type", String),
709
- tslib_1.__metadata("design:paramtypes", [])
710
- ], ButtonDirective.prototype, "roleSetter", null);
711
- tslib_1.__decorate([
712
- core_1.HostBinding('attr.aria-disabled'),
713
- core_1.HostBinding('class.k-disabled'),
714
- tslib_1.__metadata("design:type", Boolean),
715
- tslib_1.__metadata("design:paramtypes", [])
716
- ], ButtonDirective.prototype, "classDisabled", null);
717
- tslib_1.__decorate([
718
- core_1.HostBinding('class.k-selected'),
719
- tslib_1.__metadata("design:type", Boolean),
720
- tslib_1.__metadata("design:paramtypes", [])
721
- ], ButtonDirective.prototype, "classActive", null);
722
- tslib_1.__decorate([
723
- core_1.HostBinding('attr.dir'),
724
- tslib_1.__metadata("design:type", String),
725
- tslib_1.__metadata("design:paramtypes", [])
726
- ], ButtonDirective.prototype, "getDirection", null);
727
- tslib_1.__decorate([
728
- core_1.HostListener('focus'),
729
- tslib_1.__metadata("design:type", Function),
730
- tslib_1.__metadata("design:paramtypes", []),
731
- tslib_1.__metadata("design:returntype", void 0)
732
- ], ButtonDirective.prototype, "onFocus", null);
733
- tslib_1.__decorate([
734
- core_1.HostListener('blur'),
735
- tslib_1.__metadata("design:type", Function),
736
- tslib_1.__metadata("design:paramtypes", []),
737
- tslib_1.__metadata("design:returntype", void 0)
738
- ], ButtonDirective.prototype, "onBlur", null);
739
- tslib_1.__decorate([
740
- core_1.Input(),
741
- tslib_1.__metadata("design:type", Boolean),
742
- tslib_1.__metadata("design:paramtypes", [Boolean])
743
- ], ButtonDirective.prototype, "primary", null);
744
- tslib_1.__decorate([
745
- core_1.Input(),
746
- tslib_1.__metadata("design:type", String),
747
- tslib_1.__metadata("design:paramtypes", [String])
748
- ], ButtonDirective.prototype, "look", null);
749
- ButtonDirective = tslib_1.__decorate([
750
- core_1.Directive({
751
- exportAs: 'kendoButton',
752
- providers: [
753
- kendo_angular_l10n_1.LocalizationService,
754
- {
755
- provide: kendo_angular_l10n_1.L10N_PREFIX,
756
- useValue: 'kendo.button'
757
- }
758
- ],
759
- selector: 'button[kendoButton], span[kendoButton]',
760
- }),
761
- tslib_1.__param(2, core_1.Optional()),
762
- tslib_1.__metadata("design:paramtypes", [core_1.ElementRef,
763
- core_1.Renderer2,
764
- button_service_1.KendoButtonService,
765
- kendo_angular_l10n_1.LocalizationService,
766
- core_1.NgZone])
767
- ], ButtonDirective);
768
- return ButtonDirective;
769
- }());
770
- exports.ButtonDirective = ButtonDirective;