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