@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
@@ -2,35 +2,21 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { __decorate, __metadata, __param } from 'tslib';
6
- import { Injectable, EventEmitter, Input, Output, HostBinding, HostListener, Directive, Optional, ElementRef, Renderer2, NgZone, isDevMode, ContentChildren, QueryList, Component, NgModule, TemplateRef, ViewContainerRef, InjectionToken, Inject, ContentChild, ViewChild, ChangeDetectorRef, forwardRef } from '@angular/core';
7
- import { Subject, fromEvent, merge, Subscription } from 'rxjs';
5
+ import * as i0 from '@angular/core';
6
+ import { Injectable, EventEmitter, Directive, Optional, Input, Output, HostBinding, HostListener, isDevMode, Component, ContentChildren, NgModule, InjectionToken, Inject, forwardRef, ElementRef, ViewContainerRef, ContentChild, ViewChild } from '@angular/core';
7
+ import * as i8 from '@progress/kendo-angular-common';
8
8
  import { Keys, isChanged, isDocumentAvailable, hasObservers, guid, EventsModule } from '@progress/kendo-angular-common';
9
+ import * as i1 from '@progress/kendo-angular-l10n';
9
10
  import { LocalizationService, L10N_PREFIX, ComponentMessages } from '@progress/kendo-angular-l10n';
10
11
  import { validatePackage } from '@progress/kendo-licensing';
12
+ import { Subject, fromEvent, merge, Subscription } from 'rxjs';
13
+ import * as i2 from '@angular/common';
11
14
  import { CommonModule } from '@angular/common';
12
- import { PopupService, PopupModule } from '@progress/kendo-angular-popup';
15
+ import * as i3 from '@progress/kendo-angular-popup';
16
+ import { PopupModule } from '@progress/kendo-angular-popup';
13
17
  import { filter, take } from 'rxjs/operators';
14
- import { sequence, query, style, stagger, animate, AnimationBuilder } from '@angular/animations';
15
-
16
- /**
17
- * @hidden
18
- */
19
- let KendoButtonService = class KendoButtonService {
20
- /**
21
- * @hidden
22
- */
23
- constructor() {
24
- this.buttonClicked = new Subject();
25
- this.buttonClicked$ = this.buttonClicked.asObservable();
26
- }
27
- click(button) {
28
- this.buttonClicked.next(button);
29
- }
30
- };
31
- KendoButtonService = __decorate([
32
- Injectable()
33
- ], KendoButtonService);
18
+ import * as i4 from '@angular/animations';
19
+ import { sequence, query, style, stagger, animate } from '@angular/animations';
34
20
 
35
21
  /**
36
22
  * @hidden
@@ -39,13 +25,13 @@ const packageMetadata = {
39
25
  name: '@progress/kendo-angular-buttons',
40
26
  productName: 'Kendo UI for Angular',
41
27
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
42
- publishDate: 1642595280,
28
+ publishDate: 1644327071,
43
29
  version: '',
44
30
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
45
31
  };
46
32
 
47
- /* tslint:disable:no-null-keyword */
48
- /* tslint:disable:no-bitwise */
33
+ /* eslint-disable no-null-keyword */
34
+ /* eslint-disable no-bitwise */
49
35
  const resolvedPromise = Promise.resolve(null);
50
36
  /**
51
37
  * @hidden
@@ -136,11 +122,29 @@ const getThemeColorClasses = (componentType, prevFillMode, fillMode, previousVal
136
122
  };
137
123
  };
138
124
 
125
+ /**
126
+ * @hidden
127
+ */
128
+ class KendoButtonService {
129
+ constructor() {
130
+ this.buttonClicked = new Subject();
131
+ this.buttonClicked$ = this.buttonClicked.asObservable();
132
+ }
133
+ click(button) {
134
+ this.buttonClicked.next(button);
135
+ }
136
+ }
137
+ KendoButtonService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KendoButtonService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
138
+ KendoButtonService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KendoButtonService });
139
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KendoButtonService, decorators: [{
140
+ type: Injectable
141
+ }] });
142
+
139
143
  const SPAN_TAG_NAME = 'SPAN';
140
144
  /**
141
145
  * Represents the Kendo UI Button component for Angular.
142
146
  */
143
- let ButtonDirective = class ButtonDirective {
147
+ class ButtonDirective {
144
148
  constructor(element, renderer, service, localization, ngZone) {
145
149
  this.service = service;
146
150
  this.ngZone = ngZone;
@@ -269,7 +273,7 @@ let ButtonDirective = class ButtonDirective {
269
273
  }
270
274
  /**
271
275
  * The size property specifies the padding of the Button
272
- * ([see example]({% slug appearance_buttondirective %}#toc-size)).
276
+ * ([see example]({% slug appearance_button %}#toc-size)).
273
277
  *
274
278
  * The possible values are:
275
279
  * * `'small'`
@@ -286,7 +290,7 @@ let ButtonDirective = class ButtonDirective {
286
290
  }
287
291
  /**
288
292
  * The rounded property specifies the border radius of the Button
289
- * ([see example]({% slug appearance_buttondirective %}#toc-rounded)).
293
+ * ([see example]({% slug appearance_button %}#toc-rounded)).
290
294
  *
291
295
  * The possible values are:
292
296
  * * `'small'`
@@ -304,12 +308,13 @@ let ButtonDirective = class ButtonDirective {
304
308
  }
305
309
  /**
306
310
  * The fillMode property specifies the background and border styles of the Button
307
- * ([see example]({% slug appearance_buttondirective %}#toc-fillMode)).
311
+ * ([see example]({% slug appearance_button %}#toc-fillMode)).
308
312
  *
309
313
  * The possible values are:
310
314
  * * `'flat'`
311
315
  * * `'solid'` (default)
312
316
  * * `'outline'`
317
+ * * `'clear'`
313
318
  * * `'link'`
314
319
  * * `null`
315
320
  */
@@ -323,7 +328,7 @@ let ButtonDirective = class ButtonDirective {
323
328
  /**
324
329
  * The Button allows you to specify predefined theme colors.
325
330
  * The theme color will be applied as a background and border color while also amending the text color accordingly
326
- * ([see example]({% slug appearance_buttondirective %}#toc-themeColor)).
331
+ * ([see example]({% slug appearance_button %}#toc-themeColor)).
327
332
  *
328
333
  * The possible values are:
329
334
  * * `'base'` (default)
@@ -347,7 +352,7 @@ let ButtonDirective = class ButtonDirective {
347
352
  }
348
353
  /**
349
354
  * The shape property specifies if the Button will form a rectangle or square.
350
- * ([see example]({% slug appearance_buttondirective %}#toc-shape)).
355
+ * ([see example]({% slug appearance_button %}#toc-shape)).
351
356
  *
352
357
  * The possible values are:
353
358
  * * `'square'`
@@ -644,155 +649,94 @@ let ButtonDirective = class ButtonDirective {
644
649
  }
645
650
  }
646
651
  }
647
- };
648
- __decorate([
649
- Input(),
650
- __metadata("design:type", Boolean)
651
- ], ButtonDirective.prototype, "toggleable", void 0);
652
- __decorate([
653
- Input(),
654
- __metadata("design:type", Boolean),
655
- __metadata("design:paramtypes", [Boolean])
656
- ], ButtonDirective.prototype, "togglable", null);
657
- __decorate([
658
- Input(),
659
- __metadata("design:type", Boolean),
660
- __metadata("design:paramtypes", [Boolean])
661
- ], ButtonDirective.prototype, "selected", null);
662
- __decorate([
663
- Input(),
664
- __metadata("design:type", Number),
665
- __metadata("design:paramtypes", [Number])
666
- ], ButtonDirective.prototype, "tabIndex", null);
667
- __decorate([
668
- Input(),
669
- __metadata("design:type", String),
670
- __metadata("design:paramtypes", [String])
671
- ], ButtonDirective.prototype, "icon", null);
672
- __decorate([
673
- Input(),
674
- __metadata("design:type", String),
675
- __metadata("design:paramtypes", [String])
676
- ], ButtonDirective.prototype, "iconClass", null);
677
- __decorate([
678
- Input(),
679
- __metadata("design:type", String),
680
- __metadata("design:paramtypes", [String])
681
- ], ButtonDirective.prototype, "imageUrl", null);
682
- __decorate([
683
- Input(),
684
- __metadata("design:type", Boolean),
685
- __metadata("design:paramtypes", [Boolean])
686
- ], ButtonDirective.prototype, "disabled", null);
687
- __decorate([
688
- Input(),
689
- __metadata("design:type", String),
690
- __metadata("design:paramtypes", [String])
691
- ], ButtonDirective.prototype, "size", null);
692
- __decorate([
693
- Input(),
694
- __metadata("design:type", String),
695
- __metadata("design:paramtypes", [String])
696
- ], ButtonDirective.prototype, "rounded", null);
697
- __decorate([
698
- Input(),
699
- __metadata("design:type", String),
700
- __metadata("design:paramtypes", [String])
701
- ], ButtonDirective.prototype, "fillMode", null);
702
- __decorate([
703
- Input(),
704
- __metadata("design:type", String),
705
- __metadata("design:paramtypes", [String])
706
- ], ButtonDirective.prototype, "themeColor", null);
707
- __decorate([
708
- Input(),
709
- __metadata("design:type", String),
710
- __metadata("design:paramtypes", [String])
711
- ], ButtonDirective.prototype, "shape", null);
712
- __decorate([
713
- Input(),
714
- __metadata("design:type", String)
715
- ], ButtonDirective.prototype, "role", void 0);
716
- __decorate([
717
- Output(),
718
- __metadata("design:type", EventEmitter)
719
- ], ButtonDirective.prototype, "selectedChange", void 0);
720
- __decorate([
721
- Output(),
722
- __metadata("design:type", EventEmitter)
723
- ], ButtonDirective.prototype, "click", void 0);
724
- __decorate([
725
- HostBinding('class.k-button'),
726
- __metadata("design:type", Boolean),
727
- __metadata("design:paramtypes", [])
728
- ], ButtonDirective.prototype, "classButton", null);
729
- __decorate([
730
- HostBinding('class.k-toggle-button'),
731
- __metadata("design:type", Boolean),
732
- __metadata("design:paramtypes", [])
733
- ], ButtonDirective.prototype, "isToggleable", null);
734
- __decorate([
735
- HostBinding('attr.role'),
736
- __metadata("design:type", String),
737
- __metadata("design:paramtypes", [])
738
- ], ButtonDirective.prototype, "roleSetter", null);
739
- __decorate([
740
- HostBinding('attr.aria-disabled'),
741
- HostBinding('class.k-disabled'),
742
- __metadata("design:type", Boolean),
743
- __metadata("design:paramtypes", [])
744
- ], ButtonDirective.prototype, "classDisabled", null);
745
- __decorate([
746
- HostBinding('class.k-selected'),
747
- __metadata("design:type", Boolean),
748
- __metadata("design:paramtypes", [])
749
- ], ButtonDirective.prototype, "classActive", null);
750
- __decorate([
751
- HostBinding('attr.dir'),
752
- __metadata("design:type", String),
753
- __metadata("design:paramtypes", [])
754
- ], ButtonDirective.prototype, "getDirection", null);
755
- __decorate([
756
- HostListener('focus'),
757
- __metadata("design:type", Function),
758
- __metadata("design:paramtypes", []),
759
- __metadata("design:returntype", void 0)
760
- ], ButtonDirective.prototype, "onFocus", null);
761
- __decorate([
762
- HostListener('blur'),
763
- __metadata("design:type", Function),
764
- __metadata("design:paramtypes", []),
765
- __metadata("design:returntype", void 0)
766
- ], ButtonDirective.prototype, "onBlur", null);
767
- __decorate([
768
- Input(),
769
- __metadata("design:type", Boolean),
770
- __metadata("design:paramtypes", [Boolean])
771
- ], ButtonDirective.prototype, "primary", null);
772
- __decorate([
773
- Input(),
774
- __metadata("design:type", String),
775
- __metadata("design:paramtypes", [String])
776
- ], ButtonDirective.prototype, "look", null);
777
- ButtonDirective = __decorate([
778
- Directive({
779
- exportAs: 'kendoButton',
780
- providers: [
781
- LocalizationService,
782
- {
783
- provide: L10N_PREFIX,
784
- useValue: 'kendo.button'
785
- }
786
- ],
787
- selector: 'button[kendoButton], span[kendoButton]',
788
- }),
789
- __param(2, Optional()),
790
- __metadata("design:paramtypes", [ElementRef,
791
- Renderer2,
792
- KendoButtonService,
652
+ }
653
+ ButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: KendoButtonService, optional: true }, { token: i1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
654
+ ButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ButtonDirective, selector: "button[kendoButton], span[kendoButton]", inputs: { toggleable: "toggleable", togglable: "togglable", selected: "selected", tabIndex: "tabIndex", icon: "icon", iconClass: "iconClass", imageUrl: "imageUrl", disabled: "disabled", size: "size", rounded: "rounded", fillMode: "fillMode", themeColor: "themeColor", shape: "shape", role: "role", primary: "primary", look: "look" }, outputs: { selectedChange: "selectedChange", click: "click" }, host: { listeners: { "focus": "onFocus()", "blur": "onBlur()" }, properties: { "class.k-button": "this.classButton", "class.k-toggle-button": "this.isToggleable", "attr.role": "this.roleSetter", "attr.aria-disabled": "this.classDisabled", "class.k-disabled": "this.classDisabled", "class.k-selected": "this.classActive", "attr.dir": "this.getDirection" } }, providers: [
793
655
  LocalizationService,
794
- NgZone])
795
- ], ButtonDirective);
656
+ {
657
+ provide: L10N_PREFIX,
658
+ useValue: 'kendo.button'
659
+ }
660
+ ], exportAs: ["kendoButton"], usesOnChanges: true, ngImport: i0 });
661
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonDirective, decorators: [{
662
+ type: Directive,
663
+ args: [{
664
+ exportAs: 'kendoButton',
665
+ providers: [
666
+ LocalizationService,
667
+ {
668
+ provide: L10N_PREFIX,
669
+ useValue: 'kendo.button'
670
+ }
671
+ ],
672
+ selector: 'button[kendoButton], span[kendoButton]' // eslint-disable-line
673
+ }]
674
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: KendoButtonService, decorators: [{
675
+ type: Optional
676
+ }] }, { type: i1.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { toggleable: [{
677
+ type: Input
678
+ }], togglable: [{
679
+ type: Input
680
+ }], selected: [{
681
+ type: Input
682
+ }], tabIndex: [{
683
+ type: Input
684
+ }], icon: [{
685
+ type: Input
686
+ }], iconClass: [{
687
+ type: Input
688
+ }], imageUrl: [{
689
+ type: Input
690
+ }], disabled: [{
691
+ type: Input
692
+ }], size: [{
693
+ type: Input
694
+ }], rounded: [{
695
+ type: Input
696
+ }], fillMode: [{
697
+ type: Input
698
+ }], themeColor: [{
699
+ type: Input
700
+ }], shape: [{
701
+ type: Input
702
+ }], role: [{
703
+ type: Input
704
+ }], selectedChange: [{
705
+ type: Output
706
+ }], click: [{
707
+ type: Output
708
+ }], classButton: [{
709
+ type: HostBinding,
710
+ args: ['class.k-button']
711
+ }], isToggleable: [{
712
+ type: HostBinding,
713
+ args: ['class.k-toggle-button']
714
+ }], roleSetter: [{
715
+ type: HostBinding,
716
+ args: ['attr.role']
717
+ }], classDisabled: [{
718
+ type: HostBinding,
719
+ args: ['attr.aria-disabled']
720
+ }, {
721
+ type: HostBinding,
722
+ args: ['class.k-disabled']
723
+ }], classActive: [{
724
+ type: HostBinding,
725
+ args: ['class.k-selected']
726
+ }], getDirection: [{
727
+ type: HostBinding,
728
+ args: ['attr.dir']
729
+ }], onFocus: [{
730
+ type: HostListener,
731
+ args: ['focus']
732
+ }], onBlur: [{
733
+ type: HostListener,
734
+ args: ['blur']
735
+ }], primary: [{
736
+ type: Input
737
+ }], look: [{
738
+ type: Input
739
+ }] } });
796
740
 
797
741
  /**
798
742
  * @hidden
@@ -825,7 +769,7 @@ const tabindex = 'tabindex';
825
769
  /**
826
770
  * Represents the Kendo UI ButtonGroup component for Angular.
827
771
  */
828
- let ButtonGroupComponent = class ButtonGroupComponent {
772
+ class ButtonGroupComponent {
829
773
  constructor(service, localization, element) {
830
774
  this.service = service;
831
775
  this.element = element;
@@ -1011,110 +955,85 @@ let ButtonGroupComponent = class ButtonGroupComponent {
1011
955
  isSelectionSingle() {
1012
956
  return this.selection === 'single';
1013
957
  }
1014
- };
1015
- __decorate([
1016
- Input('disabled'),
1017
- __metadata("design:type", Boolean)
1018
- ], ButtonGroupComponent.prototype, "disabled", void 0);
1019
- __decorate([
1020
- Input('selection'),
1021
- __metadata("design:type", String)
1022
- ], ButtonGroupComponent.prototype, "selection", void 0);
1023
- __decorate([
1024
- Input('width'),
1025
- __metadata("design:type", String)
1026
- ], ButtonGroupComponent.prototype, "width", void 0);
1027
- __decorate([
1028
- Input(),
1029
- __metadata("design:type", Number),
1030
- __metadata("design:paramtypes", [Number])
1031
- ], ButtonGroupComponent.prototype, "tabIndex", null);
1032
- __decorate([
1033
- Output(),
1034
- __metadata("design:type", EventEmitter)
1035
- ], ButtonGroupComponent.prototype, "navigate", void 0);
1036
- __decorate([
1037
- ContentChildren(ButtonDirective),
1038
- __metadata("design:type", QueryList)
1039
- ], ButtonGroupComponent.prototype, "buttons", void 0);
1040
- __decorate([
1041
- HostBinding('class.k-button-group'),
1042
- __metadata("design:type", Boolean),
1043
- __metadata("design:paramtypes", [])
1044
- ], ButtonGroupComponent.prototype, "wrapperClass", null);
1045
- __decorate([
1046
- HostBinding('class.k-disabled'),
1047
- __metadata("design:type", Boolean),
1048
- __metadata("design:paramtypes", [])
1049
- ], ButtonGroupComponent.prototype, "disabledClass", null);
1050
- __decorate([
1051
- HostBinding('class.k-button-group-stretched'),
1052
- __metadata("design:type", Boolean),
1053
- __metadata("design:paramtypes", [])
1054
- ], ButtonGroupComponent.prototype, "stretchedClass", null);
1055
- __decorate([
1056
- HostBinding('attr.role'),
1057
- __metadata("design:type", String),
1058
- __metadata("design:paramtypes", [])
1059
- ], ButtonGroupComponent.prototype, "getRole", null);
1060
- __decorate([
1061
- HostBinding('attr.dir'),
1062
- __metadata("design:type", String),
1063
- __metadata("design:paramtypes", [])
1064
- ], ButtonGroupComponent.prototype, "dir", null);
1065
- __decorate([
1066
- HostBinding('attr.aria-disabled'),
1067
- __metadata("design:type", Boolean),
1068
- __metadata("design:paramtypes", [])
1069
- ], ButtonGroupComponent.prototype, "ariaDisabled", null);
1070
- __decorate([
1071
- HostBinding('style.width'),
1072
- __metadata("design:type", String),
1073
- __metadata("design:paramtypes", [])
1074
- ], ButtonGroupComponent.prototype, "wrapperWidth", null);
1075
- __decorate([
1076
- HostBinding('attr.tabindex'),
1077
- __metadata("design:type", Number),
1078
- __metadata("design:paramtypes", [])
1079
- ], ButtonGroupComponent.prototype, "wrapperTabIndex", null);
1080
- __decorate([
1081
- HostListener('keydown', ['$event']),
1082
- __metadata("design:type", Function),
1083
- __metadata("design:paramtypes", [Object]),
1084
- __metadata("design:returntype", void 0)
1085
- ], ButtonGroupComponent.prototype, "keydown", null);
1086
- __decorate([
1087
- HostListener('focus'),
1088
- __metadata("design:type", Function),
1089
- __metadata("design:paramtypes", []),
1090
- __metadata("design:returntype", void 0)
1091
- ], ButtonGroupComponent.prototype, "onFocus", null);
1092
- __decorate([
1093
- HostListener('focusout', ['$event']),
1094
- __metadata("design:type", Function),
1095
- __metadata("design:paramtypes", [Object]),
1096
- __metadata("design:returntype", void 0)
1097
- ], ButtonGroupComponent.prototype, "focusout", null);
1098
- ButtonGroupComponent = __decorate([
1099
- Component({
1100
- exportAs: 'kendoButtonGroup',
1101
- providers: [
1102
- KendoButtonService,
1103
- LocalizationService,
1104
- {
1105
- provide: L10N_PREFIX,
1106
- useValue: 'kendo.buttongroup'
1107
- }
1108
- ],
1109
- selector: 'kendo-buttongroup',
1110
- template: `
958
+ }
959
+ ButtonGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonGroupComponent, deps: [{ token: KendoButtonService }, { token: i1.LocalizationService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
960
+ ButtonGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ButtonGroupComponent, selector: "kendo-buttongroup", inputs: { disabled: "disabled", selection: "selection", width: "width", tabIndex: "tabIndex" }, outputs: { navigate: "navigate" }, host: { listeners: { "keydown": "keydown($event)", "focus": "onFocus()", "focusout": "focusout($event)" }, properties: { "class.k-button-group": "this.wrapperClass", "class.k-disabled": "this.disabledClass", "class.k-button-group-stretched": "this.stretchedClass", "attr.role": "this.getRole", "attr.dir": "this.dir", "attr.aria-disabled": "this.ariaDisabled", "style.width": "this.wrapperWidth", "attr.tabindex": "this.wrapperTabIndex" } }, providers: [
961
+ KendoButtonService,
962
+ LocalizationService,
963
+ {
964
+ provide: L10N_PREFIX,
965
+ useValue: 'kendo.buttongroup'
966
+ }
967
+ ], queries: [{ propertyName: "buttons", predicate: ButtonDirective }], exportAs: ["kendoButtonGroup"], usesOnChanges: true, ngImport: i0, template: `
968
+ <ng-content select="[kendoButton]"></ng-content>
969
+ `, isInline: true });
970
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonGroupComponent, decorators: [{
971
+ type: Component,
972
+ args: [{
973
+ exportAs: 'kendoButtonGroup',
974
+ providers: [
975
+ KendoButtonService,
976
+ LocalizationService,
977
+ {
978
+ provide: L10N_PREFIX,
979
+ useValue: 'kendo.buttongroup'
980
+ }
981
+ ],
982
+ selector: 'kendo-buttongroup',
983
+ template: `
1111
984
  <ng-content select="[kendoButton]"></ng-content>
1112
985
  `
1113
- }),
1114
- __metadata("design:paramtypes", [KendoButtonService,
1115
- LocalizationService,
1116
- ElementRef])
1117
- ], ButtonGroupComponent);
986
+ }]
987
+ }], ctorParameters: function () { return [{ type: KendoButtonService }, { type: i1.LocalizationService }, { type: i0.ElementRef }]; }, propDecorators: { disabled: [{
988
+ type: Input,
989
+ args: ['disabled']
990
+ }], selection: [{
991
+ type: Input,
992
+ args: ['selection']
993
+ }], width: [{
994
+ type: Input,
995
+ args: ['width']
996
+ }], tabIndex: [{
997
+ type: Input
998
+ }], navigate: [{
999
+ type: Output
1000
+ }], buttons: [{
1001
+ type: ContentChildren,
1002
+ args: [ButtonDirective]
1003
+ }], wrapperClass: [{
1004
+ type: HostBinding,
1005
+ args: ['class.k-button-group']
1006
+ }], disabledClass: [{
1007
+ type: HostBinding,
1008
+ args: ['class.k-disabled']
1009
+ }], stretchedClass: [{
1010
+ type: HostBinding,
1011
+ args: ['class.k-button-group-stretched']
1012
+ }], getRole: [{
1013
+ type: HostBinding,
1014
+ args: ['attr.role']
1015
+ }], dir: [{
1016
+ type: HostBinding,
1017
+ args: ['attr.dir']
1018
+ }], ariaDisabled: [{
1019
+ type: HostBinding,
1020
+ args: ['attr.aria-disabled']
1021
+ }], wrapperWidth: [{
1022
+ type: HostBinding,
1023
+ args: ['style.width']
1024
+ }], wrapperTabIndex: [{
1025
+ type: HostBinding,
1026
+ args: ['attr.tabindex']
1027
+ }], keydown: [{
1028
+ type: HostListener,
1029
+ args: ['keydown', ['$event']]
1030
+ }], onFocus: [{
1031
+ type: HostListener,
1032
+ args: ['focus']
1033
+ }], focusout: [{
1034
+ type: HostListener,
1035
+ args: ['focusout', ['$event']]
1036
+ }] } });
1118
1037
 
1119
1038
  /**
1120
1039
  * Represents the [NgModule]({{ site.data.urls.angular['ngmodules'] }})
@@ -1147,14 +1066,18 @@ ButtonGroupComponent = __decorate([
1147
1066
  *
1148
1067
  * ```
1149
1068
  */
1150
- let ButtonModule = class ButtonModule {
1151
- };
1152
- ButtonModule = __decorate([
1153
- NgModule({
1154
- declarations: [ButtonDirective],
1155
- exports: [ButtonDirective]
1156
- })
1157
- ], ButtonModule);
1069
+ class ButtonModule {
1070
+ }
1071
+ ButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1072
+ ButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonModule, declarations: [ButtonDirective], exports: [ButtonDirective] });
1073
+ ButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonModule });
1074
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonModule, decorators: [{
1075
+ type: NgModule,
1076
+ args: [{
1077
+ declarations: [ButtonDirective],
1078
+ exports: [ButtonDirective]
1079
+ }]
1080
+ }] });
1158
1081
 
1159
1082
  /**
1160
1083
  * @hidden
@@ -1164,186 +1087,24 @@ ButtonModule = __decorate([
1164
1087
  * The package exports:
1165
1088
  * - `ButtonGroupComponent`&mdash;The ButtonGroupComponent component class.
1166
1089
  */
1167
- let ButtonGroupModule = class ButtonGroupModule {
1168
- };
1169
- ButtonGroupModule = __decorate([
1170
- NgModule({
1171
- declarations: [ButtonGroupComponent],
1172
- exports: [ButtonGroupComponent],
1173
- imports: [CommonModule, ButtonModule]
1174
- })
1175
- ], ButtonGroupModule);
1176
-
1177
- /**
1178
- * Used for rendering the list item content.
1179
- *
1180
- * To define the item template, nest a `<ng-template>` tag with the `kendo<ComponentName>ItemTemplate` directive inside the component tag.
1181
- *
1182
- * For the DropDownButton, use the `kendoDropDownButtonItemTemplate` directive.
1183
- * For the SplitButton, use the `kendoSplitButtonItemTemplate` directive.
1184
- *
1185
- * The template context is set to the current component. To get a reference to the current data item, use the `let-dataItem` directive.
1186
- *
1187
- * @example
1188
- * ```ts
1189
- * _@Component({
1190
- * selector: 'my-app',
1191
- * template: `
1192
- * <kendo-splitbutton [data]="listItems">
1193
- * <ng-template kendoSplitButtonItemTemplate let-dataItem>
1194
- * <span>{{dataItem}} option</span>
1195
- * </ng-template>
1196
- * </kendo-splitbutton>
1197
- * <kendo-dropdownbutton [data]="listItems">
1198
- * <ng-template kendoDropDownButtonItemTemplate let-dataItem>
1199
- * <span>{{dataItem}} option</span>
1200
- * </ng-template>
1201
- * </kendo-dropdownbutton>
1202
- * `
1203
- * })
1204
- * class AppComponent {
1205
- * public listItems: Array<any> = [{
1206
- * text: 'item1',
1207
- * icon: 'refresh',
1208
- * disabled: false,
1209
- * click: (dataItem: any) => {
1210
- * //action
1211
- * }
1212
- * }, {
1213
- * text: 'item2',
1214
- * icon: 'refresh',
1215
- * disabled: false,
1216
- * click: (dataItem: any) => {
1217
- * //action
1218
- * }
1219
- * }]
1220
- * }
1221
- * ```
1222
- *
1223
- * For more examples, refer to the article on the [DropDownList templates]({% slug overview_ddl %}#templates).
1224
- */
1225
- let ButtonItemTemplateDirective = class ButtonItemTemplateDirective {
1226
- constructor(templateRef) {
1227
- this.templateRef = templateRef;
1228
- }
1229
- };
1230
- ButtonItemTemplateDirective = __decorate([
1231
- Directive({
1232
- selector: '[kendoDropDownButtonItemTemplate],[kendoSplitButtonItemTemplate]'
1233
- }),
1234
- __metadata("design:paramtypes", [TemplateRef])
1235
- ], ButtonItemTemplateDirective);
1236
-
1237
- /**
1238
- * @hidden
1239
- */
1240
- let ListComponent = class ListComponent {
1241
- constructor() {
1242
- this.onItemClick = new EventEmitter();
1243
- this.onItemBlur = new EventEmitter();
1244
- this.sizeClass = '';
1245
- validatePackage(packageMetadata);
1246
- }
1247
- set size(size) {
1248
- if (size) {
1249
- this.sizeClass = `k-menu-group-${SIZES[size]}`;
1250
- }
1251
- else {
1252
- this.sizeClass = '';
1253
- }
1254
- }
1255
- getText(dataItem) {
1256
- if (dataItem) {
1257
- return this.textField ? dataItem[this.textField] : dataItem.text || dataItem;
1258
- }
1259
- return undefined;
1260
- }
1261
- getIconClasses(dataItem) {
1262
- const icon = dataItem.icon ? 'k-icon k-i-' + dataItem.icon : undefined;
1263
- const classes = {};
1264
- classes[icon || dataItem.iconClass] = true;
1265
- return classes;
1266
- }
1267
- onClick(index) {
1268
- this.onItemClick.emit(index);
1269
- }
1270
- onBlur() {
1271
- this.onItemBlur.emit();
1272
- }
1273
- };
1274
- __decorate([
1275
- Input(),
1276
- __metadata("design:type", Array)
1277
- ], ListComponent.prototype, "data", void 0);
1278
- __decorate([
1279
- Input(),
1280
- __metadata("design:type", String)
1281
- ], ListComponent.prototype, "textField", void 0);
1282
- __decorate([
1283
- Input(),
1284
- __metadata("design:type", ButtonItemTemplateDirective)
1285
- ], ListComponent.prototype, "itemTemplate", void 0);
1286
- __decorate([
1287
- Output(),
1288
- __metadata("design:type", EventEmitter)
1289
- ], ListComponent.prototype, "onItemClick", void 0);
1290
- __decorate([
1291
- Output(),
1292
- __metadata("design:type", EventEmitter)
1293
- ], ListComponent.prototype, "onItemBlur", void 0);
1294
- __decorate([
1295
- Input(),
1296
- __metadata("design:type", String),
1297
- __metadata("design:paramtypes", [String])
1298
- ], ListComponent.prototype, "size", null);
1299
- ListComponent = __decorate([
1300
- Component({
1301
- selector: 'kendo-button-list',
1302
- template: `
1303
- <ul class="k-group k-menu-group k-reset" [ngClass]="sizeClass" unselectable="on" role="menu">
1304
- <li role="menuitem" unselectable="on"
1305
- kendoButtonFocusable
1306
- *ngFor="let dataItem of data; let index = index;"
1307
- class="k-item k-menu-item"
1308
- (click)="onClick(index)"
1309
- (blur)="onBlur()"
1310
- [attr.aria-disabled]="dataItem.disabled ? true : false">
1311
- <ng-template [ngIf]="itemTemplate?.templateRef">
1312
- <span kendoButtonFocusable [index]="index" class="k-link k-menu-link" [class.k-disabled]="dataItem.disabled" tabindex="-1">
1313
- <ng-template [templateContext]="{templateRef: itemTemplate?.templateRef, $implicit: dataItem}"></ng-template>
1314
- </span>
1315
- </ng-template>
1316
- <ng-template [ngIf]="!itemTemplate?.templateRef">
1317
- <span kendoButtonFocusable [index]="index" class="k-link k-menu-link" [class.k-disabled]="dataItem.disabled" tabindex="-1">
1318
- <span
1319
- *ngIf="dataItem.icon || dataItem.iconClass"
1320
- [ngClass]="getIconClasses(dataItem)"
1321
- ></span>
1322
- <img
1323
- *ngIf="dataItem.imageUrl"
1324
- class="k-image"
1325
- [src]="dataItem.imageUrl"
1326
- alt=""
1327
- >
1328
- <span *ngIf="getText(dataItem)" class="k-menu-link-text">
1329
- {{ getText(dataItem) }}
1330
- </span>
1331
- </span>
1332
- </ng-template>
1333
- </li>
1334
- </ul>
1335
- `
1336
- }),
1337
- __metadata("design:paramtypes", [])
1338
- ], ListComponent);
1090
+ class ButtonGroupModule {
1091
+ }
1092
+ ButtonGroupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1093
+ ButtonGroupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonGroupModule, declarations: [ButtonGroupComponent], imports: [CommonModule, ButtonModule], exports: [ButtonGroupComponent] });
1094
+ ButtonGroupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonGroupModule, imports: [[CommonModule, ButtonModule]] });
1095
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonGroupModule, decorators: [{
1096
+ type: NgModule,
1097
+ args: [{
1098
+ declarations: [ButtonGroupComponent],
1099
+ exports: [ButtonGroupComponent],
1100
+ imports: [CommonModule, ButtonModule]
1101
+ }]
1102
+ }] });
1339
1103
 
1340
1104
  /**
1341
1105
  * @hidden
1342
1106
  */
1343
- let FocusService = class FocusService {
1344
- /**
1345
- * @hidden
1346
- */
1107
+ class FocusService {
1347
1108
  constructor() {
1348
1109
  this.onFocus = new EventEmitter();
1349
1110
  }
@@ -1367,15 +1128,17 @@ let FocusService = class FocusService {
1367
1128
  this.focusedIndex = index;
1368
1129
  this.onFocus.emit(index);
1369
1130
  }
1370
- };
1371
- FocusService = __decorate([
1372
- Injectable()
1373
- ], FocusService);
1131
+ }
1132
+ FocusService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FocusService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1133
+ FocusService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FocusService });
1134
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FocusService, decorators: [{
1135
+ type: Injectable
1136
+ }] });
1374
1137
 
1375
1138
  /**
1376
1139
  * @hidden
1377
1140
  */
1378
- let FocusableDirective = class FocusableDirective {
1141
+ class FocusableDirective {
1379
1142
  constructor(focusService, elementRef, renderer) {
1380
1143
  this.focusService = focusService;
1381
1144
  this.renderer = renderer;
@@ -1418,22 +1181,22 @@ let FocusableDirective = class FocusableDirective {
1418
1181
  this.focusSubscription.unsubscribe();
1419
1182
  }
1420
1183
  }
1421
- };
1422
- __decorate([
1423
- Input(),
1424
- __metadata("design:type", Number)
1425
- ], FocusableDirective.prototype, "index", void 0);
1426
- FocusableDirective = __decorate([
1427
- Directive({
1428
- selector: '[kendoButtonFocusable]'
1429
- }),
1430
- __metadata("design:paramtypes", [FocusService, ElementRef, Renderer2])
1431
- ], FocusableDirective);
1184
+ }
1185
+ FocusableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FocusableDirective, deps: [{ token: FocusService }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
1186
+ FocusableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FocusableDirective, selector: "[kendoButtonFocusable]", inputs: { index: "index" }, ngImport: i0 });
1187
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FocusableDirective, decorators: [{
1188
+ type: Directive,
1189
+ args: [{
1190
+ selector: '[kendoButtonFocusable]'
1191
+ }]
1192
+ }], ctorParameters: function () { return [{ type: FocusService }, { type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { index: [{
1193
+ type: Input
1194
+ }] } });
1432
1195
 
1433
1196
  /**
1434
1197
  * @hidden
1435
1198
  */
1436
- let TemplateContextDirective = class TemplateContextDirective {
1199
+ class TemplateContextDirective {
1437
1200
  constructor(viewContainerRef) {
1438
1201
  this.viewContainerRef = viewContainerRef;
1439
1202
  }
@@ -1446,100 +1209,406 @@ let TemplateContextDirective = class TemplateContextDirective {
1446
1209
  this.insertedViewRef = this.viewContainerRef.createEmbeddedView(context.templateRef, context);
1447
1210
  }
1448
1211
  }
1449
- };
1450
- __decorate([
1451
- Input(),
1452
- __metadata("design:type", Object),
1453
- __metadata("design:paramtypes", [Object])
1454
- ], TemplateContextDirective.prototype, "templateContext", null);
1455
- TemplateContextDirective = __decorate([
1456
- Directive({
1457
- selector: '[templateContext]' // tslint:disable-line:directive-selector
1458
- }),
1459
- __metadata("design:paramtypes", [ViewContainerRef])
1460
- ], TemplateContextDirective);
1461
-
1462
- const EXPORTED_DIRECTIVES = [
1463
- ListComponent,
1464
- FocusableDirective,
1465
- ButtonItemTemplateDirective,
1466
- TemplateContextDirective
1467
- ];
1468
- /**
1469
- * @hidden
1470
- */
1471
- let ListModule = class ListModule {
1472
- };
1473
- ListModule = __decorate([
1474
- NgModule({
1475
- declarations: [EXPORTED_DIRECTIVES],
1476
- exports: [EXPORTED_DIRECTIVES],
1477
- imports: [CommonModule]
1478
- })
1479
- ], ListModule);
1480
-
1481
- /**
1482
- * @hidden
1483
- */
1484
- var KeyEvents;
1485
- (function (KeyEvents) {
1486
- KeyEvents[KeyEvents["keydown"] = 0] = "keydown";
1487
- KeyEvents[KeyEvents["keypress"] = 1] = "keypress";
1488
- KeyEvents[KeyEvents["keyup"] = 2] = "keyup";
1489
- })(KeyEvents || (KeyEvents = {}));
1490
-
1491
- /**
1492
- * @hidden
1493
- */
1494
- var NavigationAction;
1495
- (function (NavigationAction) {
1496
- NavigationAction[NavigationAction["Undefined"] = 0] = "Undefined";
1497
- NavigationAction[NavigationAction["Open"] = 1] = "Open";
1498
- NavigationAction[NavigationAction["Close"] = 2] = "Close";
1499
- NavigationAction[NavigationAction["Enter"] = 3] = "Enter";
1500
- NavigationAction[NavigationAction["EnterPress"] = 4] = "EnterPress";
1501
- NavigationAction[NavigationAction["EnterUp"] = 5] = "EnterUp";
1502
- NavigationAction[NavigationAction["Tab"] = 6] = "Tab";
1503
- NavigationAction[NavigationAction["Esc"] = 7] = "Esc";
1504
- NavigationAction[NavigationAction["Navigate"] = 8] = "Navigate";
1505
- })(NavigationAction || (NavigationAction = {}));
1212
+ }
1213
+ TemplateContextDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TemplateContextDirective, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
1214
+ TemplateContextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TemplateContextDirective, selector: "[templateContext]", inputs: { templateContext: "templateContext" }, ngImport: i0 });
1215
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TemplateContextDirective, decorators: [{
1216
+ type: Directive,
1217
+ args: [{
1218
+ selector: '[templateContext]' // eslint-disable-line directive-selector
1219
+ }]
1220
+ }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; }, propDecorators: { templateContext: [{
1221
+ type: Input
1222
+ }] } });
1506
1223
 
1507
- /* tslint:disable:deprecation */
1508
1224
  /**
1509
1225
  * @hidden
1510
1226
  */
1511
- class ListButton {
1512
- constructor(focusService, navigationService, wrapperRef, _zone, localization, cdr) {
1513
- this.focusService = focusService;
1514
- this.navigationService = navigationService;
1515
- this.wrapperRef = wrapperRef;
1516
- this._zone = _zone;
1517
- this.cdr = cdr;
1518
- this._open = false;
1519
- this._disabled = false;
1520
- this._active = false;
1521
- this._popupSettings = { animate: true, popupClass: '' };
1522
- this.listId = guid();
1523
- this._isFocused = false;
1227
+ class ListComponent {
1228
+ constructor() {
1229
+ this.onItemClick = new EventEmitter();
1230
+ this.onItemBlur = new EventEmitter();
1231
+ this.sizeClass = '';
1524
1232
  validatePackage(packageMetadata);
1525
- this.focusService = focusService;
1526
- this.navigationService = navigationService;
1527
- this.wrapper = wrapperRef.nativeElement;
1528
- this.localizationChangeSubscription = localization.changes.subscribe(({ rtl }) => (this.direction = rtl ? 'rtl' : 'ltr'));
1529
- this.subscribeEvents();
1530
1233
  }
1531
- get popupClasses() {
1532
- const popupClasses = ['k-menu-popup'];
1533
- if (this._popupSettings.popupClass) {
1534
- popupClasses.push(this._popupSettings.popupClass);
1234
+ set size(size) {
1235
+ if (size) {
1236
+ this.sizeClass = `k-menu-group-${SIZES[size]}`;
1237
+ }
1238
+ else {
1239
+ this.sizeClass = '';
1535
1240
  }
1536
- return popupClasses.join(' ');
1537
1241
  }
1538
- get openState() {
1539
- return this._open;
1242
+ getText(dataItem) {
1243
+ if (dataItem) {
1244
+ return this.textField ? dataItem[this.textField] : dataItem.text || dataItem;
1245
+ }
1246
+ return undefined;
1540
1247
  }
1541
- set openState(open) {
1542
- this._open = open;
1248
+ getIconClasses(dataItem) {
1249
+ const icon = dataItem.icon ? 'k-icon k-i-' + dataItem.icon : undefined;
1250
+ const classes = {};
1251
+ classes[icon || dataItem.iconClass] = true;
1252
+ return classes;
1253
+ }
1254
+ onClick(index) {
1255
+ this.onItemClick.emit(index);
1256
+ }
1257
+ onBlur() {
1258
+ this.onItemBlur.emit();
1259
+ }
1260
+ }
1261
+ ListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1262
+ ListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ListComponent, selector: "kendo-button-list", inputs: { data: "data", textField: "textField", itemTemplate: "itemTemplate", size: "size" }, outputs: { onItemClick: "onItemClick", onItemBlur: "onItemBlur" }, ngImport: i0, template: `
1263
+ <ul class="k-group k-menu-group k-reset" [ngClass]="sizeClass" unselectable="on" role="menu">
1264
+ <li role="menuitem" unselectable="on"
1265
+ kendoButtonFocusable
1266
+ *ngFor="let dataItem of data; let index = index;"
1267
+ class="k-item k-menu-item"
1268
+ (click)="onClick(index)"
1269
+ (blur)="onBlur()"
1270
+ [attr.aria-disabled]="dataItem.disabled ? true : false">
1271
+ <ng-template [ngIf]="itemTemplate?.templateRef">
1272
+ <span kendoButtonFocusable [index]="index" class="k-link k-menu-link" [class.k-disabled]="dataItem.disabled" tabindex="-1">
1273
+ <ng-template [templateContext]="{templateRef: itemTemplate?.templateRef, $implicit: dataItem}"></ng-template>
1274
+ </span>
1275
+ </ng-template>
1276
+ <ng-template [ngIf]="!itemTemplate?.templateRef">
1277
+ <span kendoButtonFocusable [index]="index" class="k-link k-menu-link" [class.k-disabled]="dataItem.disabled" tabindex="-1">
1278
+ <span
1279
+ *ngIf="dataItem.icon || dataItem.iconClass"
1280
+ [ngClass]="getIconClasses(dataItem)"
1281
+ ></span>
1282
+ <img
1283
+ *ngIf="dataItem.imageUrl"
1284
+ class="k-image"
1285
+ [src]="dataItem.imageUrl"
1286
+ alt=""
1287
+ >
1288
+ <span *ngIf="getText(dataItem)" class="k-menu-link-text">
1289
+ {{ getText(dataItem) }}
1290
+ </span>
1291
+ </span>
1292
+ </ng-template>
1293
+ </li>
1294
+ </ul>
1295
+ `, isInline: true, directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: FocusableDirective, selector: "[kendoButtonFocusable]", inputs: ["index"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }] });
1296
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListComponent, decorators: [{
1297
+ type: Component,
1298
+ args: [{
1299
+ selector: 'kendo-button-list',
1300
+ template: `
1301
+ <ul class="k-group k-menu-group k-reset" [ngClass]="sizeClass" unselectable="on" role="menu">
1302
+ <li role="menuitem" unselectable="on"
1303
+ kendoButtonFocusable
1304
+ *ngFor="let dataItem of data; let index = index;"
1305
+ class="k-item k-menu-item"
1306
+ (click)="onClick(index)"
1307
+ (blur)="onBlur()"
1308
+ [attr.aria-disabled]="dataItem.disabled ? true : false">
1309
+ <ng-template [ngIf]="itemTemplate?.templateRef">
1310
+ <span kendoButtonFocusable [index]="index" class="k-link k-menu-link" [class.k-disabled]="dataItem.disabled" tabindex="-1">
1311
+ <ng-template [templateContext]="{templateRef: itemTemplate?.templateRef, $implicit: dataItem}"></ng-template>
1312
+ </span>
1313
+ </ng-template>
1314
+ <ng-template [ngIf]="!itemTemplate?.templateRef">
1315
+ <span kendoButtonFocusable [index]="index" class="k-link k-menu-link" [class.k-disabled]="dataItem.disabled" tabindex="-1">
1316
+ <span
1317
+ *ngIf="dataItem.icon || dataItem.iconClass"
1318
+ [ngClass]="getIconClasses(dataItem)"
1319
+ ></span>
1320
+ <img
1321
+ *ngIf="dataItem.imageUrl"
1322
+ class="k-image"
1323
+ [src]="dataItem.imageUrl"
1324
+ alt=""
1325
+ >
1326
+ <span *ngIf="getText(dataItem)" class="k-menu-link-text">
1327
+ {{ getText(dataItem) }}
1328
+ </span>
1329
+ </span>
1330
+ </ng-template>
1331
+ </li>
1332
+ </ul>
1333
+ `
1334
+ }]
1335
+ }], ctorParameters: function () { return []; }, propDecorators: { data: [{
1336
+ type: Input
1337
+ }], textField: [{
1338
+ type: Input
1339
+ }], itemTemplate: [{
1340
+ type: Input
1341
+ }], onItemClick: [{
1342
+ type: Output
1343
+ }], onItemBlur: [{
1344
+ type: Output
1345
+ }], size: [{
1346
+ type: Input
1347
+ }] } });
1348
+
1349
+ /* eslint-disable directive-selector-name */
1350
+ /**
1351
+ * Used for rendering the list item content.
1352
+ *
1353
+ * To define the item template, nest a `<ng-template>` tag with the `kendo<ComponentName>ItemTemplate` directive inside the component tag.
1354
+ *
1355
+ * For the DropDownButton, use the `kendoDropDownButtonItemTemplate` directive.
1356
+ * For the SplitButton, use the `kendoSplitButtonItemTemplate` directive.
1357
+ *
1358
+ * The template context is set to the current component. To get a reference to the current data item, use the `let-dataItem` directive.
1359
+ *
1360
+ * @example
1361
+ * ```ts
1362
+ * _@Component({
1363
+ * selector: 'my-app',
1364
+ * template: `
1365
+ * <kendo-splitbutton [data]="listItems">
1366
+ * <ng-template kendoSplitButtonItemTemplate let-dataItem>
1367
+ * <span>{{dataItem}} option</span>
1368
+ * </ng-template>
1369
+ * </kendo-splitbutton>
1370
+ * <kendo-dropdownbutton [data]="listItems">
1371
+ * <ng-template kendoDropDownButtonItemTemplate let-dataItem>
1372
+ * <span>{{dataItem}} option</span>
1373
+ * </ng-template>
1374
+ * </kendo-dropdownbutton>
1375
+ * `
1376
+ * })
1377
+ * class AppComponent {
1378
+ * public listItems: Array<any> = [{
1379
+ * text: 'item1',
1380
+ * icon: 'refresh',
1381
+ * disabled: false,
1382
+ * click: (dataItem: any) => {
1383
+ * //action
1384
+ * }
1385
+ * }, {
1386
+ * text: 'item2',
1387
+ * icon: 'refresh',
1388
+ * disabled: false,
1389
+ * click: (dataItem: any) => {
1390
+ * //action
1391
+ * }
1392
+ * }]
1393
+ * }
1394
+ * ```
1395
+ *
1396
+ * For more examples, refer to the article on the [DropDownList templates]({% slug overview_ddl %}#templates).
1397
+ */
1398
+ class ButtonItemTemplateDirective {
1399
+ constructor(templateRef) {
1400
+ this.templateRef = templateRef;
1401
+ }
1402
+ }
1403
+ ButtonItemTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonItemTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
1404
+ ButtonItemTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ButtonItemTemplateDirective, selector: "[kendoDropDownButtonItemTemplate],[kendoSplitButtonItemTemplate]", ngImport: i0 });
1405
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonItemTemplateDirective, decorators: [{
1406
+ type: Directive,
1407
+ args: [{
1408
+ selector: '[kendoDropDownButtonItemTemplate],[kendoSplitButtonItemTemplate]'
1409
+ }]
1410
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
1411
+
1412
+ const EXPORTED_DIRECTIVES = [
1413
+ ListComponent,
1414
+ FocusableDirective,
1415
+ ButtonItemTemplateDirective,
1416
+ TemplateContextDirective
1417
+ ];
1418
+ /**
1419
+ * @hidden
1420
+ */
1421
+ class ListModule {
1422
+ }
1423
+ ListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1424
+ ListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListModule, declarations: [ListComponent,
1425
+ FocusableDirective,
1426
+ ButtonItemTemplateDirective,
1427
+ TemplateContextDirective], imports: [CommonModule], exports: [ListComponent,
1428
+ FocusableDirective,
1429
+ ButtonItemTemplateDirective,
1430
+ TemplateContextDirective] });
1431
+ ListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListModule, imports: [[CommonModule]] });
1432
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListModule, decorators: [{
1433
+ type: NgModule,
1434
+ args: [{
1435
+ declarations: [EXPORTED_DIRECTIVES],
1436
+ exports: [EXPORTED_DIRECTIVES],
1437
+ imports: [CommonModule]
1438
+ }]
1439
+ }] });
1440
+
1441
+ /**
1442
+ * @hidden
1443
+ */
1444
+ var KeyEvents;
1445
+ (function (KeyEvents) {
1446
+ KeyEvents[KeyEvents["keydown"] = 0] = "keydown";
1447
+ KeyEvents[KeyEvents["keypress"] = 1] = "keypress";
1448
+ KeyEvents[KeyEvents["keyup"] = 2] = "keyup";
1449
+ })(KeyEvents || (KeyEvents = {}));
1450
+
1451
+ /**
1452
+ * @hidden
1453
+ */
1454
+ var NavigationAction;
1455
+ (function (NavigationAction) {
1456
+ NavigationAction[NavigationAction["Undefined"] = 0] = "Undefined";
1457
+ NavigationAction[NavigationAction["Open"] = 1] = "Open";
1458
+ NavigationAction[NavigationAction["Close"] = 2] = "Close";
1459
+ NavigationAction[NavigationAction["Enter"] = 3] = "Enter";
1460
+ NavigationAction[NavigationAction["EnterPress"] = 4] = "EnterPress";
1461
+ NavigationAction[NavigationAction["EnterUp"] = 5] = "EnterUp";
1462
+ NavigationAction[NavigationAction["Tab"] = 6] = "Tab";
1463
+ NavigationAction[NavigationAction["Esc"] = 7] = "Esc";
1464
+ NavigationAction[NavigationAction["Navigate"] = 8] = "Navigate";
1465
+ })(NavigationAction || (NavigationAction = {}));
1466
+
1467
+ /**
1468
+ * @hidden
1469
+ */
1470
+ const NAVIGATION_CONFIG = new InjectionToken('navigation.config');
1471
+
1472
+ /**
1473
+ * @hidden
1474
+ */
1475
+ class NavigationService {
1476
+ constructor(config) {
1477
+ this.navigate = new EventEmitter();
1478
+ this.open = new EventEmitter();
1479
+ this.close = new EventEmitter();
1480
+ this.enter = new EventEmitter();
1481
+ this.enterpress = new EventEmitter();
1482
+ this.enterup = new EventEmitter();
1483
+ this.tab = new EventEmitter();
1484
+ this.esc = new EventEmitter();
1485
+ this.useLeftRightArrows = config.useLeftRightArrows;
1486
+ }
1487
+ process(args) {
1488
+ const keyCode = args.keyCode;
1489
+ const keyEvent = args.keyEvent;
1490
+ let index;
1491
+ let action = NavigationAction.Undefined;
1492
+ if (keyEvent === KeyEvents.keypress) {
1493
+ if (this.isEnter(keyCode)) {
1494
+ action = NavigationAction.EnterPress;
1495
+ }
1496
+ }
1497
+ else if (keyEvent === KeyEvents.keyup) {
1498
+ if (this.isEnter(keyCode)) {
1499
+ action = NavigationAction.EnterUp;
1500
+ }
1501
+ }
1502
+ else {
1503
+ if (args.altKey && keyCode === Keys.ArrowDown) {
1504
+ action = NavigationAction.Open;
1505
+ }
1506
+ else if (args.altKey && keyCode === Keys.ArrowUp) {
1507
+ action = NavigationAction.Close;
1508
+ }
1509
+ else if (this.isEnter(keyCode)) {
1510
+ action = NavigationAction.Enter;
1511
+ }
1512
+ else if (keyCode === Keys.Escape) {
1513
+ action = NavigationAction.Esc;
1514
+ }
1515
+ else if (keyCode === Keys.Tab) {
1516
+ action = NavigationAction.Tab;
1517
+ }
1518
+ else if (keyCode === Keys.ArrowUp || (this.useLeftRightArrows && keyCode === Keys.ArrowLeft)) {
1519
+ const step = args.flipNavigation ? 1 : -1;
1520
+ const start = args.flipNavigation ? args.min : args.max;
1521
+ const end = args.flipNavigation ? args.max : args.min;
1522
+ index = this.next({
1523
+ current: args.current,
1524
+ start: start,
1525
+ end: end,
1526
+ step: step
1527
+ });
1528
+ action = NavigationAction.Navigate;
1529
+ }
1530
+ else if (keyCode === Keys.ArrowDown || (this.useLeftRightArrows && keyCode === Keys.ArrowRight)) {
1531
+ const step = args.flipNavigation ? -1 : 1;
1532
+ const start = args.flipNavigation ? args.max : args.min;
1533
+ const end = args.flipNavigation ? args.min : args.max;
1534
+ index = this.next({
1535
+ current: args.current,
1536
+ start: start,
1537
+ end: end,
1538
+ step: step
1539
+ });
1540
+ action = NavigationAction.Navigate;
1541
+ }
1542
+ else if (keyCode === Keys.Home) {
1543
+ index = args.min;
1544
+ action = NavigationAction.Navigate;
1545
+ }
1546
+ else if (keyCode === Keys.End) {
1547
+ index = args.max;
1548
+ action = NavigationAction.Navigate;
1549
+ }
1550
+ }
1551
+ if (action !== NavigationAction.Undefined) {
1552
+ this[NavigationAction[action].toLowerCase()].emit(index);
1553
+ }
1554
+ return action;
1555
+ }
1556
+ isEnter(keyCode) {
1557
+ return keyCode === Keys.Enter || keyCode === Keys.Space;
1558
+ }
1559
+ next(args) {
1560
+ if (!isPresent(args.current)) {
1561
+ return args.start;
1562
+ }
1563
+ else {
1564
+ return args.current !== args.end ? args.current + args.step : args.end;
1565
+ }
1566
+ }
1567
+ }
1568
+ NavigationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NavigationService, deps: [{ token: NAVIGATION_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable });
1569
+ NavigationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NavigationService });
1570
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NavigationService, decorators: [{
1571
+ type: Injectable
1572
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1573
+ type: Inject,
1574
+ args: [NAVIGATION_CONFIG]
1575
+ }] }]; } });
1576
+
1577
+ /**
1578
+ * @hidden
1579
+ */
1580
+ class ListButton {
1581
+ constructor(focusService, navigationService, wrapperRef, _zone, localization, cdr) {
1582
+ this.focusService = focusService;
1583
+ this.navigationService = navigationService;
1584
+ this.wrapperRef = wrapperRef;
1585
+ this._zone = _zone;
1586
+ this.cdr = cdr;
1587
+ this._open = false;
1588
+ this._disabled = false;
1589
+ this._active = false;
1590
+ this._popupSettings = { animate: true, popupClass: '' };
1591
+ this.listId = guid();
1592
+ this._isFocused = false;
1593
+ validatePackage(packageMetadata);
1594
+ this.focusService = focusService;
1595
+ this.navigationService = navigationService;
1596
+ this.wrapper = wrapperRef.nativeElement;
1597
+ this.localizationChangeSubscription = localization.changes.subscribe(({ rtl }) => (this.direction = rtl ? 'rtl' : 'ltr'));
1598
+ this.subscribeEvents();
1599
+ }
1600
+ get popupClasses() {
1601
+ const popupClasses = ['k-menu-popup'];
1602
+ if (this._popupSettings.popupClass) {
1603
+ popupClasses.push(this._popupSettings.popupClass);
1604
+ }
1605
+ return popupClasses.join(' ');
1606
+ }
1607
+ get openState() {
1608
+ return this._open;
1609
+ }
1610
+ set openState(open) {
1611
+ this._open = open;
1543
1612
  }
1544
1613
  /**
1545
1614
  * @hidden
@@ -1607,7 +1676,7 @@ class ListButton {
1607
1676
  });
1608
1677
  this.closeSubscription = merge(this.navigationService.close, this.navigationService.esc).subscribe(() => this.focusWrapper());
1609
1678
  }
1610
- enterHandler() { } // tslint:disable-line
1679
+ enterHandler() { } // eslint-disable-line
1611
1680
  unsubscribeEvents() {
1612
1681
  if (!isDocumentAvailable()) {
1613
1682
  return;
@@ -1715,121 +1784,67 @@ class ListButton {
1715
1784
  this.blurWrapper(false);
1716
1785
  }
1717
1786
  }
1787
+ ListButton.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListButton, deps: [{ token: FocusService }, { token: NavigationService }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1788
+ ListButton.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ListButton, selector: "ng-component", ngImport: i0, template: '', isInline: true });
1789
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListButton, decorators: [{
1790
+ type: Component,
1791
+ args: [{
1792
+ template: ''
1793
+ }]
1794
+ }], ctorParameters: function () { return [{ type: FocusService }, { type: NavigationService }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }]; } });
1718
1795
 
1719
1796
  /**
1720
1797
  * @hidden
1721
1798
  */
1722
- const NAVIGATION_CONFIG = new InjectionToken('navigation.config');
1799
+ class Messages extends ComponentMessages {
1800
+ }
1801
+ Messages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
1802
+ Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: Messages, selector: "kendo-splitbutton-messages-base", inputs: { splitButtonLabel: "splitButtonLabel" }, usesInheritance: true, ngImport: i0 });
1803
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Messages, decorators: [{
1804
+ type: Directive,
1805
+ args: [{
1806
+ selector: 'kendo-splitbutton-messages-base'
1807
+ }]
1808
+ }], propDecorators: { splitButtonLabel: [{
1809
+ type: Input
1810
+ }] } });
1723
1811
 
1724
1812
  /**
1725
1813
  * @hidden
1726
1814
  */
1727
- let NavigationService = class NavigationService {
1728
- constructor(config) {
1729
- this.navigate = new EventEmitter();
1730
- this.open = new EventEmitter();
1731
- this.close = new EventEmitter();
1732
- this.enter = new EventEmitter();
1733
- this.enterpress = new EventEmitter();
1734
- this.enterup = new EventEmitter();
1735
- this.tab = new EventEmitter();
1736
- this.esc = new EventEmitter();
1737
- this.useLeftRightArrows = config.useLeftRightArrows;
1738
- }
1739
- process(args) {
1740
- const keyCode = args.keyCode;
1741
- const keyEvent = args.keyEvent;
1742
- let index;
1743
- let action = NavigationAction.Undefined;
1744
- if (keyEvent === KeyEvents.keypress) {
1745
- if (this.isEnter(keyCode)) {
1746
- action = NavigationAction.EnterPress;
1747
- }
1748
- }
1749
- else if (keyEvent === KeyEvents.keyup) {
1750
- if (this.isEnter(keyCode)) {
1751
- action = NavigationAction.EnterUp;
1752
- }
1753
- }
1754
- else {
1755
- if (args.altKey && keyCode === Keys.ArrowDown) {
1756
- action = NavigationAction.Open;
1757
- }
1758
- else if (args.altKey && keyCode === Keys.ArrowUp) {
1759
- action = NavigationAction.Close;
1760
- }
1761
- else if (this.isEnter(keyCode)) {
1762
- action = NavigationAction.Enter;
1763
- }
1764
- else if (keyCode === Keys.Escape) {
1765
- action = NavigationAction.Esc;
1766
- }
1767
- else if (keyCode === Keys.Tab) {
1768
- action = NavigationAction.Tab;
1769
- }
1770
- else if (keyCode === Keys.ArrowUp || (this.useLeftRightArrows && keyCode === Keys.ArrowLeft)) {
1771
- const step = args.flipNavigation ? 1 : -1;
1772
- const start = args.flipNavigation ? args.min : args.max;
1773
- const end = args.flipNavigation ? args.max : args.min;
1774
- index = this.next({
1775
- current: args.current,
1776
- start: start,
1777
- end: end,
1778
- step: step
1779
- });
1780
- action = NavigationAction.Navigate;
1781
- }
1782
- else if (keyCode === Keys.ArrowDown || (this.useLeftRightArrows && keyCode === Keys.ArrowRight)) {
1783
- const step = args.flipNavigation ? -1 : 1;
1784
- const start = args.flipNavigation ? args.max : args.min;
1785
- const end = args.flipNavigation ? args.min : args.max;
1786
- index = this.next({
1787
- current: args.current,
1788
- start: start,
1789
- end: end,
1790
- step: step
1791
- });
1792
- action = NavigationAction.Navigate;
1793
- }
1794
- else if (keyCode === Keys.Home) {
1795
- index = args.min;
1796
- action = NavigationAction.Navigate;
1797
- }
1798
- else if (keyCode === Keys.End) {
1799
- index = args.max;
1800
- action = NavigationAction.Navigate;
1801
- }
1802
- }
1803
- if (action !== NavigationAction.Undefined) {
1804
- this[NavigationAction[action].toLowerCase()].emit(index);
1805
- }
1806
- return action;
1807
- }
1808
- isEnter(keyCode) {
1809
- return keyCode === Keys.Enter || keyCode === Keys.Space;
1810
- }
1811
- next(args) {
1812
- if (!isPresent(args.current)) {
1813
- return args.start;
1814
- }
1815
- else {
1816
- return args.current !== args.end ? args.current + args.step : args.end;
1817
- }
1815
+ class LocalizedSplitButtonMessagesDirective extends Messages {
1816
+ constructor(service) {
1817
+ super();
1818
+ this.service = service;
1818
1819
  }
1819
- };
1820
- NavigationService = __decorate([
1821
- Injectable(),
1822
- __param(0, Inject(NAVIGATION_CONFIG)),
1823
- __metadata("design:paramtypes", [Object])
1824
- ], NavigationService);
1820
+ }
1821
+ LocalizedSplitButtonMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedSplitButtonMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
1822
+ LocalizedSplitButtonMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: LocalizedSplitButtonMessagesDirective, selector: "[kendoSplitButtonLocalizedMessages]", providers: [
1823
+ {
1824
+ provide: Messages,
1825
+ useExisting: forwardRef(() => LocalizedSplitButtonMessagesDirective)
1826
+ }
1827
+ ], usesInheritance: true, ngImport: i0 });
1828
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedSplitButtonMessagesDirective, decorators: [{
1829
+ type: Directive,
1830
+ args: [{
1831
+ providers: [
1832
+ {
1833
+ provide: Messages,
1834
+ useExisting: forwardRef(() => LocalizedSplitButtonMessagesDirective)
1835
+ }
1836
+ ],
1837
+ selector: '[kendoSplitButtonLocalizedMessages]'
1838
+ }]
1839
+ }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
1825
1840
 
1826
- const NAVIGATION_SETTINGS = {
1841
+ /* eslint-disable no-access-missing-member */
1842
+ const NAVIGATION_SETTINGS$2 = {
1827
1843
  useLeftRightArrows: true
1828
1844
  };
1829
- const ɵ0 = NAVIGATION_SETTINGS;
1830
- const NAVIGATION_SETTINGS_PROVIDER = {
1845
+ const NAVIGATION_SETTINGS_PROVIDER$2 = {
1831
1846
  provide: NAVIGATION_CONFIG,
1832
- useValue: ɵ0
1847
+ useValue: NAVIGATION_SETTINGS$2
1833
1848
  };
1834
1849
  /**
1835
1850
  * Represents the Kendo UI SplitButton component for Angular.
@@ -1872,7 +1887,7 @@ const NAVIGATION_SETTINGS_PROVIDER = {
1872
1887
  * }
1873
1888
  * ```
1874
1889
  */
1875
- let SplitButtonComponent = class SplitButtonComponent extends ListButton {
1890
+ class SplitButtonComponent extends ListButton {
1876
1891
  constructor(focusService, navigationService, wrapperRef, zone, popupService, elRef, localization, cdr, renderer) {
1877
1892
  super(focusService, navigationService, wrapperRef, zone, localization, cdr);
1878
1893
  this.popupService = popupService;
@@ -1994,11 +2009,11 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
1994
2009
  /**
1995
2010
  * Fires each time the SplitButton gets focused.
1996
2011
  */
1997
- this.onFocus = new EventEmitter(); //tslint:disable-line:no-output-rename
2012
+ this.onFocus = new EventEmitter(); //eslint-disable-line no-output-rename
1998
2013
  /**
1999
2014
  * Fires each time the SplitButton gets blurred.
2000
2015
  */
2001
- this.onBlur = new EventEmitter(); //tslint:disable-line:no-output-rename
2016
+ this.onBlur = new EventEmitter(); //eslint-disable-line no-output-rename
2002
2017
  /**
2003
2018
  * Fires each time the popup is about to open.
2004
2019
  * This event is preventable. If you cancel the event, the popup will remain closed.
@@ -2050,7 +2065,6 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
2050
2065
  * * `link`
2051
2066
  */
2052
2067
  set fillMode(fillMode) {
2053
- // Temporary workaround for missing 'clear' styles
2054
2068
  this._fillMode = fillMode === 'clear' ? 'flat' : fillMode;
2055
2069
  }
2056
2070
  get fillMode() {
@@ -2385,173 +2399,103 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
2385
2399
  this.renderer.addClass(elem, classes.toAdd);
2386
2400
  }
2387
2401
  }
2388
- };
2389
- __decorate([
2390
- Input(),
2391
- __metadata("design:type", String)
2392
- ], SplitButtonComponent.prototype, "text", void 0);
2393
- __decorate([
2394
- Input(),
2395
- __metadata("design:type", String)
2396
- ], SplitButtonComponent.prototype, "icon", void 0);
2397
- __decorate([
2398
- Input(),
2399
- __metadata("design:type", String)
2400
- ], SplitButtonComponent.prototype, "iconClass", void 0);
2401
- __decorate([
2402
- Input(),
2403
- __metadata("design:type", String)
2404
- ], SplitButtonComponent.prototype, "type", void 0);
2405
- __decorate([
2406
- Input(),
2407
- __metadata("design:type", String)
2408
- ], SplitButtonComponent.prototype, "imageUrl", void 0);
2409
- __decorate([
2410
- Input(),
2411
- __metadata("design:type", String)
2412
- ], SplitButtonComponent.prototype, "size", void 0);
2413
- __decorate([
2414
- Input(),
2415
- __metadata("design:type", String),
2416
- __metadata("design:paramtypes", [String])
2417
- ], SplitButtonComponent.prototype, "rounded", null);
2418
- __decorate([
2419
- Input(),
2420
- __metadata("design:type", String),
2421
- __metadata("design:paramtypes", [String])
2422
- ], SplitButtonComponent.prototype, "fillMode", null);
2423
- __decorate([
2424
- Input(),
2425
- __metadata("design:type", String)
2426
- ], SplitButtonComponent.prototype, "themeColor", void 0);
2427
- __decorate([
2428
- Input(),
2429
- __metadata("design:type", Boolean),
2430
- __metadata("design:paramtypes", [Boolean])
2431
- ], SplitButtonComponent.prototype, "disabled", null);
2432
- __decorate([
2433
- Input(),
2434
- __metadata("design:type", Object),
2435
- __metadata("design:paramtypes", [Object])
2436
- ], SplitButtonComponent.prototype, "popupSettings", null);
2437
- __decorate([
2438
- Input(),
2439
- __metadata("design:type", Number)
2440
- ], SplitButtonComponent.prototype, "tabIndex", void 0);
2441
- __decorate([
2442
- Input(),
2443
- __metadata("design:type", String)
2444
- ], SplitButtonComponent.prototype, "textField", void 0);
2445
- __decorate([
2446
- Input(),
2447
- __metadata("design:type", Object),
2448
- __metadata("design:paramtypes", [Object])
2449
- ], SplitButtonComponent.prototype, "data", null);
2450
- __decorate([
2451
- Input(),
2452
- __metadata("design:type", Object)
2453
- ], SplitButtonComponent.prototype, "buttonClass", void 0);
2454
- __decorate([
2455
- Input(),
2456
- __metadata("design:type", Object)
2457
- ], SplitButtonComponent.prototype, "arrowButtonClass", void 0);
2458
- __decorate([
2459
- Input(),
2460
- __metadata("design:type", String)
2461
- ], SplitButtonComponent.prototype, "arrowButtonIcon", void 0);
2462
- __decorate([
2463
- Output(),
2464
- __metadata("design:type", EventEmitter)
2465
- ], SplitButtonComponent.prototype, "buttonClick", void 0);
2466
- __decorate([
2467
- Output(),
2468
- __metadata("design:type", EventEmitter)
2469
- ], SplitButtonComponent.prototype, "itemClick", void 0);
2470
- __decorate([
2471
- Output('focus'),
2472
- __metadata("design:type", EventEmitter)
2473
- ], SplitButtonComponent.prototype, "onFocus", void 0);
2474
- __decorate([
2475
- Output('blur'),
2476
- __metadata("design:type", EventEmitter)
2477
- ], SplitButtonComponent.prototype, "onBlur", void 0);
2478
- __decorate([
2479
- Output(),
2480
- __metadata("design:type", EventEmitter)
2481
- ], SplitButtonComponent.prototype, "open", void 0);
2482
- __decorate([
2483
- Output(),
2484
- __metadata("design:type", EventEmitter)
2485
- ], SplitButtonComponent.prototype, "close", void 0);
2486
- __decorate([
2487
- ContentChild(ButtonItemTemplateDirective, { static: false }),
2488
- __metadata("design:type", ButtonItemTemplateDirective)
2489
- ], SplitButtonComponent.prototype, "itemTemplate", void 0);
2490
- __decorate([
2491
- ViewChild('button', { static: true }),
2492
- __metadata("design:type", ElementRef)
2493
- ], SplitButtonComponent.prototype, "button", void 0);
2494
- __decorate([
2495
- ViewChild('arrowButton', { static: true, read: ElementRef }),
2496
- __metadata("design:type", ElementRef)
2497
- ], SplitButtonComponent.prototype, "arrowButton", void 0);
2498
- __decorate([
2499
- ViewChild('popupTemplate', { static: true }),
2500
- __metadata("design:type", TemplateRef)
2501
- ], SplitButtonComponent.prototype, "popupTemplate", void 0);
2502
- __decorate([
2503
- ViewChild('container', { read: ViewContainerRef, static: true }),
2504
- __metadata("design:type", ViewContainerRef)
2505
- ], SplitButtonComponent.prototype, "containerRef", void 0);
2506
- __decorate([
2507
- HostBinding('class.k-focus'),
2508
- __metadata("design:type", Boolean),
2509
- __metadata("design:paramtypes", [Boolean])
2510
- ], SplitButtonComponent.prototype, "isFocused", null);
2511
- __decorate([
2512
- HostBinding('class.k-split-button'),
2513
- HostBinding('class.k-button-group'),
2514
- __metadata("design:type", Boolean),
2515
- __metadata("design:paramtypes", [])
2516
- ], SplitButtonComponent.prototype, "widgetClasses", null);
2517
- __decorate([
2518
- HostBinding('attr.dir'),
2519
- __metadata("design:type", String),
2520
- __metadata("design:paramtypes", [])
2521
- ], SplitButtonComponent.prototype, "dir", null);
2522
- __decorate([
2523
- HostListener('keydown', ['$event']),
2524
- __metadata("design:type", Function),
2525
- __metadata("design:paramtypes", [Object]),
2526
- __metadata("design:returntype", void 0)
2527
- ], SplitButtonComponent.prototype, "keydown", null);
2528
- __decorate([
2529
- HostListener('keypress', ['$event']),
2530
- __metadata("design:type", Function),
2531
- __metadata("design:paramtypes", [Object]),
2532
- __metadata("design:returntype", void 0)
2533
- ], SplitButtonComponent.prototype, "keypress", null);
2534
- __decorate([
2535
- HostListener('keyup', ['$event']),
2536
- __metadata("design:type", Function),
2537
- __metadata("design:paramtypes", [Object]),
2538
- __metadata("design:returntype", void 0)
2539
- ], SplitButtonComponent.prototype, "keyup", null);
2540
- SplitButtonComponent = __decorate([
2541
- Component({
2542
- exportAs: 'kendoSplitButton',
2543
- providers: [
2544
- FocusService,
2545
- NavigationService,
2546
- NAVIGATION_SETTINGS_PROVIDER,
2547
- LocalizationService,
2548
- {
2549
- provide: L10N_PREFIX,
2550
- useValue: 'kendo.splitbutton'
2551
- }
2552
- ],
2553
- selector: 'kendo-splitbutton',
2554
- template: `
2402
+ }
2403
+ SplitButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SplitButtonComponent, deps: [{ token: FocusService }, { token: NavigationService }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i3.PopupService }, { token: i0.ElementRef }, { token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
2404
+ SplitButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SplitButtonComponent, selector: "kendo-splitbutton", inputs: { text: "text", icon: "icon", iconClass: "iconClass", type: "type", imageUrl: "imageUrl", size: "size", rounded: "rounded", fillMode: "fillMode", themeColor: "themeColor", disabled: "disabled", popupSettings: "popupSettings", tabIndex: "tabIndex", textField: "textField", data: "data", buttonClass: "buttonClass", arrowButtonClass: "arrowButtonClass", arrowButtonIcon: "arrowButtonIcon" }, outputs: { buttonClick: "buttonClick", itemClick: "itemClick", onFocus: "focus", onBlur: "blur", open: "open", close: "close" }, host: { listeners: { "keydown": "keydown($event)", "keypress": "keypress($event)", "keyup": "keyup($event)" }, properties: { "class.k-focus": "this.isFocused", "class.k-split-button": "this.widgetClasses", "class.k-button-group": "this.widgetClasses", "attr.dir": "this.dir" } }, providers: [
2405
+ FocusService,
2406
+ NavigationService,
2407
+ NAVIGATION_SETTINGS_PROVIDER$2,
2408
+ LocalizationService,
2409
+ {
2410
+ provide: L10N_PREFIX,
2411
+ useValue: 'kendo.splitbutton'
2412
+ }
2413
+ ], queries: [{ propertyName: "itemTemplate", first: true, predicate: ButtonItemTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "button", first: true, predicate: ["button"], descendants: true, static: true }, { propertyName: "arrowButton", first: true, predicate: ["arrowButton"], descendants: true, read: ElementRef, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "containerRef", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }], exportAs: ["kendoSplitButton"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
2414
+ <ng-container kendoSplitButtonLocalizedMessages
2415
+ i18n-splitButtonLabel="kendo.splitbutton.splitButtonLabel|The text for the SplitButton aria-label"
2416
+ splitButtonLabel="{{ '{buttonText} splitbutton' }}">
2417
+ </ng-container>
2418
+ <button
2419
+ kendoButton
2420
+ #button
2421
+ [type]="type"
2422
+ [tabindex]="componentTabIndex"
2423
+ [disabled]="disabled"
2424
+ [size]="size"
2425
+ [rounded]="rounded"
2426
+ [fillMode]="fillMode"
2427
+ [themeColor]="themeColor"
2428
+ [icon]="icon"
2429
+ [class.k-active]="active"
2430
+ [class.k-icon-button]="!text && icon"
2431
+ [iconClass]="iconClass"
2432
+ [imageUrl]="imageUrl"
2433
+ [ngClass]="buttonClass"
2434
+ (focus)="onButtonFocus()"
2435
+ (click)="onButtonClick()"
2436
+ (blur)="onButtonBlur()"
2437
+ (mousedown)="toggleButtonActiveState(true)"
2438
+ (mouseup)="toggleButtonActiveState(false)"
2439
+ [attr.aria-disabled]="disabled"
2440
+ [attr.aria-expanded]="openState"
2441
+ [attr.aria-haspopup]="true"
2442
+ [attr.aria-owns]="listId"
2443
+ [attr.aria-label]="ariaLabel"
2444
+ >
2445
+ <span *ngIf="text" class="k-button-text">
2446
+ {{ text }}
2447
+ </span><ng-content></ng-content>
2448
+ </button>
2449
+ <button
2450
+ kendoButton
2451
+ #arrowButton
2452
+ type="button"
2453
+ [class.k-active]="activeArrow"
2454
+ [disabled]="disabled"
2455
+ [icon]="arrowButtonIcon"
2456
+ [size]="size"
2457
+ [rounded]="rounded"
2458
+ [fillMode]="fillMode"
2459
+ [themeColor]="fillMode ? themeColor : null"
2460
+ [tabindex]="-1"
2461
+ [ngClass]="arrowButtonClass"
2462
+ (click)="onArrowButtonClick()"
2463
+ (mousedown)="toggleArrowButtonActiveState(true)"
2464
+ (mouseup)="toggleArrowButtonActiveState(false)"
2465
+ ></button>
2466
+ <ng-template #popupTemplate>
2467
+ <kendo-button-list
2468
+ [id]="listId"
2469
+ [data]="data"
2470
+ [textField]="textField"
2471
+ [itemTemplate]="itemTemplate"
2472
+ (onItemClick)="onItemClick($event)"
2473
+ (keydown)="keyDownHandler($event)"
2474
+ (keypress)="keyPressHandler($event)"
2475
+ (keyup)="keyUpHandler($event)"
2476
+ [attr.dir]="dir"
2477
+ [size]="size"
2478
+ >
2479
+ </kendo-button-list>
2480
+ </ng-template>
2481
+ <ng-container #container></ng-container>
2482
+ `, isInline: true, components: [{ type: ListComponent, selector: "kendo-button-list", inputs: ["data", "textField", "itemTemplate", "size"], outputs: ["onItemClick", "onItemBlur"] }], directives: [{ type: LocalizedSplitButtonMessagesDirective, selector: "[kendoSplitButtonLocalizedMessages]" }, { type: ButtonDirective, selector: "button[kendoButton], span[kendoButton]", inputs: ["toggleable", "togglable", "selected", "tabIndex", "icon", "iconClass", "imageUrl", "disabled", "size", "rounded", "fillMode", "themeColor", "shape", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
2483
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SplitButtonComponent, decorators: [{
2484
+ type: Component,
2485
+ args: [{
2486
+ exportAs: 'kendoSplitButton',
2487
+ providers: [
2488
+ FocusService,
2489
+ NavigationService,
2490
+ NAVIGATION_SETTINGS_PROVIDER$2,
2491
+ LocalizationService,
2492
+ {
2493
+ provide: L10N_PREFIX,
2494
+ useValue: 'kendo.splitbutton'
2495
+ }
2496
+ ],
2497
+ selector: 'kendo-splitbutton',
2498
+ template: `
2555
2499
  <ng-container kendoSplitButtonLocalizedMessages
2556
2500
  i18n-splitButtonLabel="kendo.splitbutton.splitButtonLabel|The text for the SplitButton aria-label"
2557
2501
  splitButtonLabel="{{ '{buttonText} splitbutton' }}">
@@ -2621,57 +2565,98 @@ SplitButtonComponent = __decorate([
2621
2565
  </ng-template>
2622
2566
  <ng-container #container></ng-container>
2623
2567
  `
2624
- }),
2625
- __metadata("design:paramtypes", [FocusService,
2626
- NavigationService,
2627
- ElementRef,
2628
- NgZone,
2629
- PopupService,
2630
- ElementRef,
2631
- LocalizationService,
2632
- ChangeDetectorRef,
2633
- Renderer2])
2634
- ], SplitButtonComponent);
2635
-
2636
- /**
2637
- * @hidden
2638
- */
2639
- class Messages extends ComponentMessages {
2640
- }
2641
- __decorate([
2642
- Input(),
2643
- __metadata("design:type", String)
2644
- ], Messages.prototype, "splitButtonLabel", void 0);
2645
-
2646
- var LocalizedSplitButtonMessagesDirective_1;
2647
- /**
2648
- * @hidden
2649
- */
2650
- let LocalizedSplitButtonMessagesDirective = LocalizedSplitButtonMessagesDirective_1 = class LocalizedSplitButtonMessagesDirective extends Messages {
2651
- constructor(service) {
2652
- super();
2653
- this.service = service;
2654
- }
2655
- };
2656
- LocalizedSplitButtonMessagesDirective = LocalizedSplitButtonMessagesDirective_1 = __decorate([
2657
- Directive({
2658
- providers: [
2659
- {
2660
- provide: Messages,
2661
- useExisting: forwardRef(() => LocalizedSplitButtonMessagesDirective_1)
2662
- }
2663
- ],
2664
- selector: '[kendoSplitButtonLocalizedMessages]'
2665
- }),
2666
- __metadata("design:paramtypes", [LocalizationService])
2667
- ], LocalizedSplitButtonMessagesDirective);
2568
+ }]
2569
+ }], ctorParameters: function () { return [{ type: FocusService }, { type: NavigationService }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i3.PopupService }, { type: i0.ElementRef }, { type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }]; }, propDecorators: { text: [{
2570
+ type: Input
2571
+ }], icon: [{
2572
+ type: Input
2573
+ }], iconClass: [{
2574
+ type: Input
2575
+ }], type: [{
2576
+ type: Input
2577
+ }], imageUrl: [{
2578
+ type: Input
2579
+ }], size: [{
2580
+ type: Input
2581
+ }], rounded: [{
2582
+ type: Input
2583
+ }], fillMode: [{
2584
+ type: Input
2585
+ }], themeColor: [{
2586
+ type: Input
2587
+ }], disabled: [{
2588
+ type: Input
2589
+ }], popupSettings: [{
2590
+ type: Input
2591
+ }], tabIndex: [{
2592
+ type: Input
2593
+ }], textField: [{
2594
+ type: Input
2595
+ }], data: [{
2596
+ type: Input
2597
+ }], buttonClass: [{
2598
+ type: Input
2599
+ }], arrowButtonClass: [{
2600
+ type: Input
2601
+ }], arrowButtonIcon: [{
2602
+ type: Input
2603
+ }], buttonClick: [{
2604
+ type: Output
2605
+ }], itemClick: [{
2606
+ type: Output
2607
+ }], onFocus: [{
2608
+ type: Output,
2609
+ args: ['focus']
2610
+ }], onBlur: [{
2611
+ type: Output,
2612
+ args: ['blur']
2613
+ }], open: [{
2614
+ type: Output
2615
+ }], close: [{
2616
+ type: Output
2617
+ }], itemTemplate: [{
2618
+ type: ContentChild,
2619
+ args: [ButtonItemTemplateDirective, { static: false }]
2620
+ }], button: [{
2621
+ type: ViewChild,
2622
+ args: ['button', { static: true }]
2623
+ }], arrowButton: [{
2624
+ type: ViewChild,
2625
+ args: ['arrowButton', { static: true, read: ElementRef }]
2626
+ }], popupTemplate: [{
2627
+ type: ViewChild,
2628
+ args: ['popupTemplate', { static: true }]
2629
+ }], containerRef: [{
2630
+ type: ViewChild,
2631
+ args: ['container', { read: ViewContainerRef, static: true }]
2632
+ }], isFocused: [{
2633
+ type: HostBinding,
2634
+ args: ['class.k-focus']
2635
+ }], widgetClasses: [{
2636
+ type: HostBinding,
2637
+ args: ['class.k-split-button']
2638
+ }, {
2639
+ type: HostBinding,
2640
+ args: ['class.k-button-group']
2641
+ }], dir: [{
2642
+ type: HostBinding,
2643
+ args: ['attr.dir']
2644
+ }], keydown: [{
2645
+ type: HostListener,
2646
+ args: ['keydown', ['$event']]
2647
+ }], keypress: [{
2648
+ type: HostListener,
2649
+ args: ['keypress', ['$event']]
2650
+ }], keyup: [{
2651
+ type: HostListener,
2652
+ args: ['keyup', ['$event']]
2653
+ }] } });
2668
2654
 
2669
- var SplitButtonCustomMessagesComponent_1;
2670
2655
  /**
2671
2656
  * Custom component messages override default component messages
2672
2657
  * ([see example]({% slug rtl_buttons %}).
2673
2658
  */
2674
- let SplitButtonCustomMessagesComponent = SplitButtonCustomMessagesComponent_1 = class SplitButtonCustomMessagesComponent extends Messages {
2659
+ class SplitButtonCustomMessagesComponent extends Messages {
2675
2660
  constructor(service) {
2676
2661
  super();
2677
2662
  this.service = service;
@@ -2679,20 +2664,23 @@ let SplitButtonCustomMessagesComponent = SplitButtonCustomMessagesComponent_1 =
2679
2664
  get override() {
2680
2665
  return true;
2681
2666
  }
2682
- };
2683
- SplitButtonCustomMessagesComponent = SplitButtonCustomMessagesComponent_1 = __decorate([
2684
- Component({
2685
- providers: [
2686
- {
2687
- provide: Messages,
2688
- useExisting: forwardRef(() => SplitButtonCustomMessagesComponent_1)
2689
- }
2690
- ],
2691
- selector: 'kendo-splitbutton-messages',
2692
- template: ``
2693
- }),
2694
- __metadata("design:paramtypes", [LocalizationService])
2695
- ], SplitButtonCustomMessagesComponent);
2667
+ }
2668
+ SplitButtonCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SplitButtonCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
2669
+ SplitButtonCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SplitButtonCustomMessagesComponent, selector: "kendo-splitbutton-messages", providers: [{
2670
+ provide: Messages,
2671
+ useExisting: forwardRef(() => SplitButtonCustomMessagesComponent)
2672
+ }], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
2673
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SplitButtonCustomMessagesComponent, decorators: [{
2674
+ type: Component,
2675
+ args: [{
2676
+ providers: [{
2677
+ provide: Messages,
2678
+ useExisting: forwardRef(() => SplitButtonCustomMessagesComponent)
2679
+ }],
2680
+ selector: 'kendo-splitbutton-messages',
2681
+ template: ``
2682
+ }]
2683
+ }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
2696
2684
 
2697
2685
  /**
2698
2686
  * @hidden
@@ -2702,23 +2690,27 @@ SplitButtonCustomMessagesComponent = SplitButtonCustomMessagesComponent_1 = __de
2702
2690
  * The package exports:
2703
2691
  * - `SplitButtonComponent`&mdash;The SplitButtonComponent component class.
2704
2692
  */
2705
- let SplitButtonModule = class SplitButtonModule {
2706
- };
2707
- SplitButtonModule = __decorate([
2708
- NgModule({
2709
- declarations: [SplitButtonComponent, LocalizedSplitButtonMessagesDirective, SplitButtonCustomMessagesComponent],
2710
- exports: [SplitButtonComponent, ListModule, LocalizedSplitButtonMessagesDirective, SplitButtonCustomMessagesComponent],
2711
- imports: [CommonModule, PopupModule, ButtonModule, ListModule]
2712
- })
2713
- ], SplitButtonModule);
2693
+ class SplitButtonModule {
2694
+ }
2695
+ SplitButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SplitButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2696
+ SplitButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SplitButtonModule, declarations: [SplitButtonComponent, LocalizedSplitButtonMessagesDirective, SplitButtonCustomMessagesComponent], imports: [CommonModule, PopupModule, ButtonModule, ListModule], exports: [SplitButtonComponent, ListModule, LocalizedSplitButtonMessagesDirective, SplitButtonCustomMessagesComponent] });
2697
+ SplitButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SplitButtonModule, imports: [[CommonModule, PopupModule, ButtonModule, ListModule], ListModule] });
2698
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SplitButtonModule, decorators: [{
2699
+ type: NgModule,
2700
+ args: [{
2701
+ declarations: [SplitButtonComponent, LocalizedSplitButtonMessagesDirective, SplitButtonCustomMessagesComponent],
2702
+ exports: [SplitButtonComponent, ListModule, LocalizedSplitButtonMessagesDirective, SplitButtonCustomMessagesComponent],
2703
+ imports: [CommonModule, PopupModule, ButtonModule, ListModule]
2704
+ }]
2705
+ }] });
2714
2706
 
2707
+ /* eslint-disable no-access-missing-member */
2715
2708
  const NAVIGATION_SETTINGS$1 = {
2716
2709
  useLeftRightArrows: true
2717
2710
  };
2718
- const ɵ0$1 = NAVIGATION_SETTINGS$1;
2719
2711
  const NAVIGATION_SETTINGS_PROVIDER$1 = {
2720
2712
  provide: NAVIGATION_CONFIG,
2721
- useValue: ɵ0$1
2713
+ useValue: NAVIGATION_SETTINGS$1
2722
2714
  };
2723
2715
  /**
2724
2716
  * Represents the Kendo UI DropDownButton component for Angular.
@@ -2748,7 +2740,7 @@ const NAVIGATION_SETTINGS_PROVIDER$1 = {
2748
2740
  * }
2749
2741
  * ```
2750
2742
  */
2751
- let DropDownButtonComponent = class DropDownButtonComponent extends ListButton {
2743
+ class DropDownButtonComponent extends ListButton {
2752
2744
  constructor(focusService, navigationService, wrapperRef, zone, popupService, elRef, localization, cdr) {
2753
2745
  super(focusService, navigationService, wrapperRef, zone, localization, cdr);
2754
2746
  this.popupService = popupService;
@@ -2839,11 +2831,11 @@ let DropDownButtonComponent = class DropDownButtonComponent extends ListButton {
2839
2831
  /**
2840
2832
  * Fires each time the DropDownButton gets focused.
2841
2833
  */
2842
- this.onFocus = new EventEmitter(); //tslint:disable-line:no-output-rename
2834
+ this.onFocus = new EventEmitter(); //eslint-disable-line no-output-rename
2843
2835
  /**
2844
2836
  * Fires each time the DropDownButton gets blurred.
2845
2837
  */
2846
- this.onBlur = new EventEmitter(); //tslint:disable-line:no-output-rename
2838
+ this.onBlur = new EventEmitter(); //eslint-disable-line no-output-rename
2847
2839
  this.listId = guid();
2848
2840
  this._fillMode = 'solid';
2849
2841
  this._itemClick = this.itemClick;
@@ -2899,7 +2891,6 @@ let DropDownButtonComponent = class DropDownButtonComponent extends ListButton {
2899
2891
  * * `null`
2900
2892
  */
2901
2893
  set fillMode(fillMode) {
2902
- // Temporary workaround for missing 'clear' styles
2903
2894
  this._fillMode = fillMode === 'clear' ? 'flat' : fillMode;
2904
2895
  }
2905
2896
  get fillMode() {
@@ -3164,167 +3155,77 @@ let DropDownButtonComponent = class DropDownButtonComponent extends ListButton {
3164
3155
  this.popupRef = null;
3165
3156
  }
3166
3157
  }
3167
- };
3168
- __decorate([
3169
- Input(),
3170
- __metadata("design:type", String)
3171
- ], DropDownButtonComponent.prototype, "icon", void 0);
3172
- __decorate([
3173
- Input(),
3174
- __metadata("design:type", String)
3175
- ], DropDownButtonComponent.prototype, "iconClass", void 0);
3176
- __decorate([
3177
- Input(),
3178
- __metadata("design:type", String)
3179
- ], DropDownButtonComponent.prototype, "imageUrl", void 0);
3180
- __decorate([
3181
- Input(),
3182
- __metadata("design:type", Object),
3183
- __metadata("design:paramtypes", [Object])
3184
- ], DropDownButtonComponent.prototype, "popupSettings", null);
3185
- __decorate([
3186
- Input(),
3187
- __metadata("design:type", String)
3188
- ], DropDownButtonComponent.prototype, "textField", void 0);
3189
- __decorate([
3190
- Input(),
3191
- __metadata("design:type", Boolean),
3192
- __metadata("design:paramtypes", [Boolean])
3193
- ], DropDownButtonComponent.prototype, "disabled", null);
3194
- __decorate([
3195
- Input(),
3196
- __metadata("design:type", Object),
3197
- __metadata("design:paramtypes", [Object])
3198
- ], DropDownButtonComponent.prototype, "data", null);
3199
- __decorate([
3200
- Input(),
3201
- __metadata("design:type", String)
3202
- ], DropDownButtonComponent.prototype, "size", void 0);
3203
- __decorate([
3204
- Input(),
3205
- __metadata("design:type", String)
3206
- ], DropDownButtonComponent.prototype, "shape", void 0);
3207
- __decorate([
3208
- Input(),
3209
- __metadata("design:type", String)
3210
- ], DropDownButtonComponent.prototype, "rounded", void 0);
3211
- __decorate([
3212
- Input(),
3213
- __metadata("design:type", String),
3214
- __metadata("design:paramtypes", [String])
3215
- ], DropDownButtonComponent.prototype, "fillMode", null);
3216
- __decorate([
3217
- Input(),
3218
- __metadata("design:type", String)
3219
- ], DropDownButtonComponent.prototype, "themeColor", void 0);
3220
- __decorate([
3221
- Input(),
3222
- __metadata("design:type", Object)
3223
- ], DropDownButtonComponent.prototype, "buttonClass", void 0);
3224
- __decorate([
3225
- Input(),
3226
- __metadata("design:type", Number)
3227
- ], DropDownButtonComponent.prototype, "tabIndex", void 0);
3228
- __decorate([
3229
- Output(),
3230
- __metadata("design:type", EventEmitter)
3231
- ], DropDownButtonComponent.prototype, "itemClick", void 0);
3232
- __decorate([
3233
- Output(),
3234
- __metadata("design:type", EventEmitter)
3235
- ], DropDownButtonComponent.prototype, "open", void 0);
3236
- __decorate([
3237
- Output(),
3238
- __metadata("design:type", EventEmitter)
3239
- ], DropDownButtonComponent.prototype, "close", void 0);
3240
- __decorate([
3241
- Output('focus'),
3242
- __metadata("design:type", EventEmitter)
3243
- ], DropDownButtonComponent.prototype, "onFocus", void 0);
3244
- __decorate([
3245
- Output('blur'),
3246
- __metadata("design:type", EventEmitter)
3247
- ], DropDownButtonComponent.prototype, "onBlur", void 0);
3248
- __decorate([
3249
- HostBinding('class.k-focus'),
3250
- __metadata("design:type", Boolean),
3251
- __metadata("design:paramtypes", [])
3252
- ], DropDownButtonComponent.prototype, "focused", null);
3253
- __decorate([
3254
- HostBinding('class.k-dropdown-button'),
3255
- __metadata("design:type", Boolean),
3256
- __metadata("design:paramtypes", [])
3257
- ], DropDownButtonComponent.prototype, "widgetClasses", null);
3258
- __decorate([
3259
- HostBinding('attr.dir'),
3260
- __metadata("design:type", String),
3261
- __metadata("design:paramtypes", [])
3262
- ], DropDownButtonComponent.prototype, "dir", null);
3263
- __decorate([
3264
- ContentChild(ButtonItemTemplateDirective, { static: false }),
3265
- __metadata("design:type", ButtonItemTemplateDirective)
3266
- ], DropDownButtonComponent.prototype, "itemTemplate", void 0);
3267
- __decorate([
3268
- ViewChild('button', { static: true }),
3269
- __metadata("design:type", ElementRef)
3270
- ], DropDownButtonComponent.prototype, "button", void 0);
3271
- __decorate([
3272
- ViewChild('buttonList', { static: false }),
3273
- __metadata("design:type", ListComponent)
3274
- ], DropDownButtonComponent.prototype, "buttonList", void 0);
3275
- __decorate([
3276
- ViewChild('popupTemplate', { static: true }),
3277
- __metadata("design:type", TemplateRef)
3278
- ], DropDownButtonComponent.prototype, "popupTemplate", void 0);
3279
- __decorate([
3280
- ViewChild('container', { read: ViewContainerRef, static: true }),
3281
- __metadata("design:type", ViewContainerRef)
3282
- ], DropDownButtonComponent.prototype, "container", void 0);
3283
- __decorate([
3284
- HostListener('keydown', ['$event']),
3285
- __metadata("design:type", Function),
3286
- __metadata("design:paramtypes", [Object]),
3287
- __metadata("design:returntype", void 0)
3288
- ], DropDownButtonComponent.prototype, "keydown", null);
3289
- __decorate([
3290
- HostListener('keypress', ['$event']),
3291
- __metadata("design:type", Function),
3292
- __metadata("design:paramtypes", [Object]),
3293
- __metadata("design:returntype", void 0)
3294
- ], DropDownButtonComponent.prototype, "keypress", null);
3295
- __decorate([
3296
- HostListener('keyup', ['$event']),
3297
- __metadata("design:type", Function),
3298
- __metadata("design:paramtypes", [Object]),
3299
- __metadata("design:returntype", void 0)
3300
- ], DropDownButtonComponent.prototype, "keyup", null);
3301
- __decorate([
3302
- HostListener('mousedown', ['$event']),
3303
- __metadata("design:type", Function),
3304
- __metadata("design:paramtypes", [Object]),
3305
- __metadata("design:returntype", void 0)
3306
- ], DropDownButtonComponent.prototype, "mousedown", null);
3307
- __decorate([
3308
- HostListener('mouseup', ['$event']),
3309
- __metadata("design:type", Function),
3310
- __metadata("design:paramtypes", [Object]),
3311
- __metadata("design:returntype", void 0)
3312
- ], DropDownButtonComponent.prototype, "mouseup", null);
3313
- DropDownButtonComponent = __decorate([
3314
- Component({
3315
- exportAs: 'kendoDropDownButton',
3316
- providers: [
3317
- FocusService,
3318
- NavigationService,
3319
- NAVIGATION_SETTINGS_PROVIDER$1,
3320
- LocalizationService,
3321
- {
3322
- provide: L10N_PREFIX,
3323
- useValue: 'kendo.dropdownbutton'
3324
- }
3325
- ],
3326
- selector: 'kendo-dropdownbutton',
3327
- template: `
3158
+ }
3159
+ DropDownButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropDownButtonComponent, deps: [{ token: FocusService }, { token: NavigationService }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i3.PopupService }, { token: i0.ElementRef }, { token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
3160
+ DropDownButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DropDownButtonComponent, selector: "kendo-dropdownbutton", inputs: { icon: "icon", iconClass: "iconClass", imageUrl: "imageUrl", popupSettings: "popupSettings", textField: "textField", disabled: "disabled", data: "data", size: "size", shape: "shape", rounded: "rounded", fillMode: "fillMode", themeColor: "themeColor", buttonClass: "buttonClass", tabIndex: "tabIndex" }, outputs: { itemClick: "itemClick", open: "open", close: "close", onFocus: "focus", onBlur: "blur" }, host: { listeners: { "keydown": "keydown($event)", "keypress": "keypress($event)", "keyup": "keyup($event)", "mousedown": "mousedown($event)", "mouseup": "mouseup($event)" }, properties: { "class.k-focus": "this.focused", "class.k-dropdown-button": "this.widgetClasses", "attr.dir": "this.dir" } }, providers: [
3161
+ FocusService,
3162
+ NavigationService,
3163
+ NAVIGATION_SETTINGS_PROVIDER$1,
3164
+ LocalizationService,
3165
+ {
3166
+ provide: L10N_PREFIX,
3167
+ useValue: 'kendo.dropdownbutton'
3168
+ }
3169
+ ], queries: [{ propertyName: "itemTemplate", first: true, predicate: ButtonItemTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "button", first: true, predicate: ["button"], descendants: true, static: true }, { propertyName: "buttonList", first: true, predicate: ["buttonList"], descendants: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }], exportAs: ["kendoDropDownButton"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
3170
+ <button kendoButton #button
3171
+ role="menu"
3172
+ type="button"
3173
+ [tabindex]="componentTabIndex"
3174
+ [class.k-active]="active"
3175
+ [disabled]="disabled"
3176
+ [icon]="icon"
3177
+ [iconClass]="iconClass"
3178
+ [imageUrl]="imageUrl"
3179
+ [ngClass]="buttonClass"
3180
+ [size]="size"
3181
+ [shape]="shape"
3182
+ [rounded]="rounded"
3183
+ [fillMode]="fillMode"
3184
+ [themeColor]="fillMode ? themeColor : null"
3185
+ (click)="openPopup()"
3186
+ (focus)="handleFocus()"
3187
+ (blur)="onButtonBlur()"
3188
+ [attr.aria-disabled]="disabled"
3189
+ [attr.aria-expanded]="openState"
3190
+ [attr.aria-haspopup]="true"
3191
+ [attr.aria-owns]="listId"
3192
+ >
3193
+ <ng-content></ng-content>
3194
+ </button>
3195
+ <ng-template #popupTemplate>
3196
+ <kendo-button-list
3197
+ #buttonList
3198
+ [id]="listId"
3199
+ [data]="data"
3200
+ [textField]="textField"
3201
+ [itemTemplate]="itemTemplate"
3202
+ (onItemClick)="onItemClick($event)"
3203
+ (keydown)="keyDownHandler($event)"
3204
+ (keypress)="keyPressHandler($event)"
3205
+ (keyup)="keyUpHandler($event)"
3206
+ [attr.dir]="dir"
3207
+ [size]="size"
3208
+ >
3209
+ </kendo-button-list>
3210
+ </ng-template>
3211
+ <ng-container #container></ng-container>
3212
+ `, isInline: true, components: [{ type: ListComponent, selector: "kendo-button-list", inputs: ["data", "textField", "itemTemplate", "size"], outputs: ["onItemClick", "onItemBlur"] }], directives: [{ type: ButtonDirective, selector: "button[kendoButton], span[kendoButton]", inputs: ["toggleable", "togglable", "selected", "tabIndex", "icon", "iconClass", "imageUrl", "disabled", "size", "rounded", "fillMode", "themeColor", "shape", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
3213
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropDownButtonComponent, decorators: [{
3214
+ type: Component,
3215
+ args: [{
3216
+ exportAs: 'kendoDropDownButton',
3217
+ providers: [
3218
+ FocusService,
3219
+ NavigationService,
3220
+ NAVIGATION_SETTINGS_PROVIDER$1,
3221
+ LocalizationService,
3222
+ {
3223
+ provide: L10N_PREFIX,
3224
+ useValue: 'kendo.dropdownbutton'
3225
+ }
3226
+ ],
3227
+ selector: 'kendo-dropdownbutton',
3228
+ template: `
3328
3229
  <button kendoButton #button
3329
3230
  role="menu"
3330
3231
  type="button"
@@ -3368,16 +3269,87 @@ DropDownButtonComponent = __decorate([
3368
3269
  </ng-template>
3369
3270
  <ng-container #container></ng-container>
3370
3271
  `
3371
- }),
3372
- __metadata("design:paramtypes", [FocusService,
3373
- NavigationService,
3374
- ElementRef,
3375
- NgZone,
3376
- PopupService,
3377
- ElementRef,
3378
- LocalizationService,
3379
- ChangeDetectorRef])
3380
- ], DropDownButtonComponent);
3272
+ }]
3273
+ }], ctorParameters: function () { return [{ type: FocusService }, { type: NavigationService }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i3.PopupService }, { type: i0.ElementRef }, { type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { icon: [{
3274
+ type: Input
3275
+ }], iconClass: [{
3276
+ type: Input
3277
+ }], imageUrl: [{
3278
+ type: Input
3279
+ }], popupSettings: [{
3280
+ type: Input
3281
+ }], textField: [{
3282
+ type: Input
3283
+ }], disabled: [{
3284
+ type: Input
3285
+ }], data: [{
3286
+ type: Input
3287
+ }], size: [{
3288
+ type: Input
3289
+ }], shape: [{
3290
+ type: Input
3291
+ }], rounded: [{
3292
+ type: Input
3293
+ }], fillMode: [{
3294
+ type: Input
3295
+ }], themeColor: [{
3296
+ type: Input
3297
+ }], buttonClass: [{
3298
+ type: Input
3299
+ }], tabIndex: [{
3300
+ type: Input
3301
+ }], itemClick: [{
3302
+ type: Output
3303
+ }], open: [{
3304
+ type: Output
3305
+ }], close: [{
3306
+ type: Output
3307
+ }], onFocus: [{
3308
+ type: Output,
3309
+ args: ['focus']
3310
+ }], onBlur: [{
3311
+ type: Output,
3312
+ args: ['blur']
3313
+ }], focused: [{
3314
+ type: HostBinding,
3315
+ args: ['class.k-focus']
3316
+ }], widgetClasses: [{
3317
+ type: HostBinding,
3318
+ args: ['class.k-dropdown-button']
3319
+ }], dir: [{
3320
+ type: HostBinding,
3321
+ args: ['attr.dir']
3322
+ }], itemTemplate: [{
3323
+ type: ContentChild,
3324
+ args: [ButtonItemTemplateDirective, { static: false }]
3325
+ }], button: [{
3326
+ type: ViewChild,
3327
+ args: ['button', { static: true }]
3328
+ }], buttonList: [{
3329
+ type: ViewChild,
3330
+ args: ['buttonList', { static: false }]
3331
+ }], popupTemplate: [{
3332
+ type: ViewChild,
3333
+ args: ['popupTemplate', { static: true }]
3334
+ }], container: [{
3335
+ type: ViewChild,
3336
+ args: ['container', { read: ViewContainerRef, static: true }]
3337
+ }], keydown: [{
3338
+ type: HostListener,
3339
+ args: ['keydown', ['$event']]
3340
+ }], keypress: [{
3341
+ type: HostListener,
3342
+ args: ['keypress', ['$event']]
3343
+ }], keyup: [{
3344
+ type: HostListener,
3345
+ args: ['keyup', ['$event']]
3346
+ }], mousedown: [{
3347
+ type: HostListener,
3348
+ args: ['mousedown', ['$event']]
3349
+ }], mouseup: [{
3350
+ type: HostListener,
3351
+ args: ['mouseup', ['$event']]
3352
+ }] } });
3381
3353
 
3382
3354
  /**
3383
3355
  * @hidden
@@ -3387,20 +3359,24 @@ DropDownButtonComponent = __decorate([
3387
3359
  * The package exports:
3388
3360
  * - `DropDownButtonComponent`&mdash;The DropDownButtonComponent component class.
3389
3361
  */
3390
- let DropDownButtonModule = class DropDownButtonModule {
3391
- };
3392
- DropDownButtonModule = __decorate([
3393
- NgModule({
3394
- declarations: [DropDownButtonComponent],
3395
- exports: [DropDownButtonComponent, ListModule],
3396
- imports: [CommonModule, PopupModule, ListModule, ButtonModule]
3397
- })
3398
- ], DropDownButtonModule);
3362
+ class DropDownButtonModule {
3363
+ }
3364
+ DropDownButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropDownButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3365
+ DropDownButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropDownButtonModule, declarations: [DropDownButtonComponent], imports: [CommonModule, PopupModule, ListModule, ButtonModule], exports: [DropDownButtonComponent, ListModule] });
3366
+ DropDownButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropDownButtonModule, imports: [[CommonModule, PopupModule, ListModule, ButtonModule], ListModule] });
3367
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropDownButtonModule, decorators: [{
3368
+ type: NgModule,
3369
+ args: [{
3370
+ declarations: [DropDownButtonComponent],
3371
+ exports: [DropDownButtonComponent, ListModule],
3372
+ imports: [CommonModule, PopupModule, ListModule, ButtonModule]
3373
+ }]
3374
+ }] });
3399
3375
 
3400
3376
  /**
3401
3377
  * Displays a Chip that represents an input, attribute or an action.
3402
3378
  */
3403
- let ChipComponent = class ChipComponent {
3379
+ class ChipComponent {
3404
3380
  constructor(element, renderer, ngZone, localizationService) {
3405
3381
  this.element = element;
3406
3382
  this.renderer = renderer;
@@ -3659,109 +3635,61 @@ let ChipComponent = class ChipComponent {
3659
3635
  }
3660
3636
  }
3661
3637
  }
3662
- };
3663
- __decorate([
3664
- Input(),
3665
- __metadata("design:type", String)
3666
- ], ChipComponent.prototype, "label", void 0);
3667
- __decorate([
3668
- Input(),
3669
- __metadata("design:type", String)
3670
- ], ChipComponent.prototype, "icon", void 0);
3671
- __decorate([
3672
- Input(),
3673
- __metadata("design:type", String)
3674
- ], ChipComponent.prototype, "iconClass", void 0);
3675
- __decorate([
3676
- Input(),
3677
- __metadata("design:type", String)
3678
- ], ChipComponent.prototype, "avatarClass", void 0);
3679
- __decorate([
3680
- Input(),
3681
- __metadata("design:type", Boolean)
3682
- ], ChipComponent.prototype, "selected", void 0);
3683
- __decorate([
3684
- Input(),
3685
- __metadata("design:type", Boolean)
3686
- ], ChipComponent.prototype, "removable", void 0);
3687
- __decorate([
3688
- Input(),
3689
- __metadata("design:type", String)
3690
- ], ChipComponent.prototype, "removeIcon", void 0);
3691
- __decorate([
3692
- Input(),
3693
- __metadata("design:type", Boolean)
3694
- ], ChipComponent.prototype, "disabled", void 0);
3695
- __decorate([
3696
- Input(),
3697
- __metadata("design:type", String),
3698
- __metadata("design:paramtypes", [String])
3699
- ], ChipComponent.prototype, "size", null);
3700
- __decorate([
3701
- Input(),
3702
- __metadata("design:type", String),
3703
- __metadata("design:paramtypes", [String])
3704
- ], ChipComponent.prototype, "rounded", null);
3705
- __decorate([
3706
- Input(),
3707
- __metadata("design:type", String),
3708
- __metadata("design:paramtypes", [String])
3709
- ], ChipComponent.prototype, "fillMode", null);
3710
- __decorate([
3711
- Input(),
3712
- __metadata("design:type", String),
3713
- __metadata("design:paramtypes", [String])
3714
- ], ChipComponent.prototype, "themeColor", null);
3715
- __decorate([
3716
- Output(),
3717
- __metadata("design:type", EventEmitter)
3718
- ], ChipComponent.prototype, "remove", void 0);
3719
- __decorate([
3720
- Output(),
3721
- __metadata("design:type", EventEmitter)
3722
- ], ChipComponent.prototype, "contentClick", void 0);
3723
- __decorate([
3724
- HostBinding('attr.tabindex'),
3725
- __metadata("design:type", Number)
3726
- ], ChipComponent.prototype, "tabIndex", void 0);
3727
- __decorate([
3728
- HostBinding('attr.aria-checked'),
3729
- __metadata("design:type", Boolean),
3730
- __metadata("design:paramtypes", [])
3731
- ], ChipComponent.prototype, "ariaChecked", null);
3732
- __decorate([
3733
- HostBinding('class.k-chip'),
3734
- __metadata("design:type", Boolean)
3735
- ], ChipComponent.prototype, "hostClass", void 0);
3736
- __decorate([
3737
- HostBinding('class.k-chip-has-icon'),
3738
- __metadata("design:type", Boolean),
3739
- __metadata("design:paramtypes", [])
3740
- ], ChipComponent.prototype, "hasIconClass", null);
3741
- __decorate([
3742
- HostBinding('attr.aria-disabled'),
3743
- HostBinding('class.k-disabled'),
3744
- __metadata("design:type", Boolean),
3745
- __metadata("design:paramtypes", [])
3746
- ], ChipComponent.prototype, "disabledClass", null);
3747
- __decorate([
3748
- HostBinding('class.k-selected'),
3749
- __metadata("design:type", Boolean),
3750
- __metadata("design:paramtypes", [])
3751
- ], ChipComponent.prototype, "selectedClass", null);
3752
- __decorate([
3753
- HostBinding('class.k-focus'),
3754
- __metadata("design:type", Boolean),
3755
- __metadata("design:paramtypes", [])
3756
- ], ChipComponent.prototype, "focusedClass", null);
3757
- __decorate([
3758
- HostBinding('attr.dir'),
3759
- __metadata("design:type", String)
3760
- ], ChipComponent.prototype, "direction", void 0);
3761
- ChipComponent = __decorate([
3762
- Component({
3763
- selector: 'kendo-chip',
3764
- template: `
3638
+ }
3639
+ ChipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChipComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
3640
+ ChipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ChipComponent, selector: "kendo-chip", inputs: { label: "label", icon: "icon", iconClass: "iconClass", avatarClass: "avatarClass", selected: "selected", removable: "removable", removeIcon: "removeIcon", disabled: "disabled", size: "size", rounded: "rounded", fillMode: "fillMode", themeColor: "themeColor" }, outputs: { remove: "remove", contentClick: "contentClick" }, host: { properties: { "attr.tabindex": "this.tabIndex", "attr.aria-checked": "this.ariaChecked", "class.k-chip": "this.hostClass", "class.k-chip-has-icon": "this.hasIconClass", "attr.aria-disabled": "this.disabledClass", "class.k-disabled": "this.disabledClass", "class.k-selected": "this.selectedClass", "class.k-focus": "this.focusedClass", "attr.dir": "this.direction" } }, providers: [
3641
+ LocalizationService,
3642
+ {
3643
+ provide: L10N_PREFIX,
3644
+ useValue: 'kendo.chip'
3645
+ }
3646
+ ], ngImport: i0, template: `
3647
+ <span
3648
+ *ngIf="icon"
3649
+ class="k-chip-icon k-icon"
3650
+ [ngClass]="kendoIconClass"
3651
+ >
3652
+ </span>
3653
+
3654
+ <span
3655
+ *ngIf="iconClass"
3656
+ class="k-chip-icon"
3657
+ [ngClass]="customIconClass"
3658
+ >
3659
+ </span>
3660
+
3661
+ <span
3662
+ *ngIf="avatarClass"
3663
+ class="k-chip-avatar k-avatar k-rounded-full"
3664
+ >
3665
+ <span class="k-avatar-image" [ngClass]="chipAvatarClass"></span>
3666
+ </span>
3667
+
3668
+ <span class="k-chip-content">
3669
+ <span class="k-chip-label" *ngIf="label">
3670
+ {{ label }}
3671
+ </span>
3672
+ <ng-content *ngIf="!label"></ng-content>
3673
+ </span>
3674
+
3675
+ <span class="k-chip-actions">
3676
+ <span class="k-chip-action k-chip-remove-action"
3677
+ *ngIf="removable"
3678
+ (click)="onRemoveClick($event)"
3679
+ >
3680
+ <span
3681
+ class="k-icon"
3682
+ [ngClass]="removeIconClass"
3683
+ >
3684
+ </span>
3685
+ </span>
3686
+ </span>
3687
+ `, isInline: true, directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
3688
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChipComponent, decorators: [{
3689
+ type: Component,
3690
+ args: [{
3691
+ selector: 'kendo-chip',
3692
+ template: `
3765
3693
  <span
3766
3694
  *ngIf="icon"
3767
3695
  class="k-chip-icon k-icon"
@@ -3803,21 +3731,72 @@ ChipComponent = __decorate([
3803
3731
  </span>
3804
3732
  </span>
3805
3733
  `,
3806
- providers: [
3807
- LocalizationService,
3808
- {
3809
- provide: L10N_PREFIX,
3810
- useValue: 'kendo.chip'
3811
- }
3812
- ]
3813
- }),
3814
- __metadata("design:paramtypes", [ElementRef,
3815
- Renderer2,
3816
- NgZone,
3817
- LocalizationService])
3818
- ], ChipComponent);
3734
+ providers: [
3735
+ LocalizationService,
3736
+ {
3737
+ provide: L10N_PREFIX,
3738
+ useValue: 'kendo.chip'
3739
+ }
3740
+ ]
3741
+ }]
3742
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i1.LocalizationService }]; }, propDecorators: { label: [{
3743
+ type: Input
3744
+ }], icon: [{
3745
+ type: Input
3746
+ }], iconClass: [{
3747
+ type: Input
3748
+ }], avatarClass: [{
3749
+ type: Input
3750
+ }], selected: [{
3751
+ type: Input
3752
+ }], removable: [{
3753
+ type: Input
3754
+ }], removeIcon: [{
3755
+ type: Input
3756
+ }], disabled: [{
3757
+ type: Input
3758
+ }], size: [{
3759
+ type: Input
3760
+ }], rounded: [{
3761
+ type: Input
3762
+ }], fillMode: [{
3763
+ type: Input
3764
+ }], themeColor: [{
3765
+ type: Input
3766
+ }], remove: [{
3767
+ type: Output
3768
+ }], contentClick: [{
3769
+ type: Output
3770
+ }], tabIndex: [{
3771
+ type: HostBinding,
3772
+ args: ['attr.tabindex']
3773
+ }], ariaChecked: [{
3774
+ type: HostBinding,
3775
+ args: ['attr.aria-checked']
3776
+ }], hostClass: [{
3777
+ type: HostBinding,
3778
+ args: ['class.k-chip']
3779
+ }], hasIconClass: [{
3780
+ type: HostBinding,
3781
+ args: ['class.k-chip-has-icon']
3782
+ }], disabledClass: [{
3783
+ type: HostBinding,
3784
+ args: ['attr.aria-disabled']
3785
+ }, {
3786
+ type: HostBinding,
3787
+ args: ['class.k-disabled']
3788
+ }], selectedClass: [{
3789
+ type: HostBinding,
3790
+ args: ['class.k-selected']
3791
+ }], focusedClass: [{
3792
+ type: HostBinding,
3793
+ args: ['class.k-focus']
3794
+ }], direction: [{
3795
+ type: HostBinding,
3796
+ args: ['attr.dir']
3797
+ }] } });
3819
3798
 
3820
- let ChipListComponent = class ChipListComponent {
3799
+ class ChipListComponent {
3821
3800
  constructor(localizationService, renderer, element) {
3822
3801
  this.localizationService = localizationService;
3823
3802
  this.renderer = renderer;
@@ -3934,81 +3913,69 @@ let ChipListComponent = class ChipListComponent {
3934
3913
  this.renderer.addClass(elem, classes.toAdd);
3935
3914
  }
3936
3915
  }
3937
- };
3938
- __decorate([
3939
- HostBinding('class.k-chip-list'),
3940
- __metadata("design:type", Boolean)
3941
- ], ChipListComponent.prototype, "hostClass", void 0);
3942
- __decorate([
3943
- HostBinding('attr.dir'),
3944
- __metadata("design:type", String)
3945
- ], ChipListComponent.prototype, "direction", void 0);
3946
- __decorate([
3947
- Input(),
3948
- __metadata("design:type", String)
3949
- ], ChipListComponent.prototype, "selection", void 0);
3950
- __decorate([
3951
- Input(),
3952
- __metadata("design:type", String),
3953
- __metadata("design:paramtypes", [String])
3954
- ], ChipListComponent.prototype, "size", null);
3955
- __decorate([
3956
- Output(),
3957
- __metadata("design:type", EventEmitter)
3958
- ], ChipListComponent.prototype, "selectedChange", void 0);
3959
- __decorate([
3960
- Output(),
3961
- __metadata("design:type", EventEmitter)
3962
- ], ChipListComponent.prototype, "remove", void 0);
3963
- __decorate([
3964
- ContentChildren(ChipComponent),
3965
- __metadata("design:type", QueryList)
3966
- ], ChipListComponent.prototype, "chips", void 0);
3967
- __decorate([
3968
- HostBinding('class.k-selection-single'),
3969
- __metadata("design:type", Boolean),
3970
- __metadata("design:paramtypes", [])
3971
- ], ChipListComponent.prototype, "single", null);
3972
- __decorate([
3973
- HostBinding('class.k-selection-multiple'),
3974
- __metadata("design:type", Boolean),
3975
- __metadata("design:paramtypes", [])
3976
- ], ChipListComponent.prototype, "multiple", null);
3977
- __decorate([
3978
- HostBinding('attr.role'),
3979
- __metadata("design:type", String)
3980
- ], ChipListComponent.prototype, "role", void 0);
3981
- __decorate([
3982
- HostListener('click', ['$event']),
3983
- __metadata("design:type", Function),
3984
- __metadata("design:paramtypes", [Object]),
3985
- __metadata("design:returntype", void 0)
3986
- ], ChipListComponent.prototype, "onClick", null);
3987
- ChipListComponent = __decorate([
3988
- Component({
3989
- selector: 'kendo-chiplist, kendo-chip-list',
3990
- template: `
3916
+ }
3917
+ ChipListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChipListComponent, deps: [{ token: i1.LocalizationService }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
3918
+ ChipListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ChipListComponent, selector: "kendo-chiplist, kendo-chip-list", inputs: { selection: "selection", size: "size" }, outputs: { selectedChange: "selectedChange", remove: "remove" }, host: { listeners: { "click": "onClick($event)" }, properties: { "class.k-chip-list": "this.hostClass", "attr.dir": "this.direction", "class.k-selection-single": "this.single", "class.k-selection-multiple": "this.multiple", "attr.role": "this.role" } }, providers: [
3919
+ LocalizationService,
3920
+ {
3921
+ provide: L10N_PREFIX,
3922
+ useValue: 'kendo.chiplist'
3923
+ }
3924
+ ], queries: [{ propertyName: "chips", predicate: ChipComponent }], ngImport: i0, template: `
3925
+ <ng-content></ng-content>
3926
+ `, isInline: true });
3927
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChipListComponent, decorators: [{
3928
+ type: Component,
3929
+ args: [{
3930
+ selector: 'kendo-chiplist, kendo-chip-list',
3931
+ template: `
3991
3932
  <ng-content></ng-content>
3992
3933
  `,
3993
- providers: [
3994
- LocalizationService,
3995
- {
3996
- provide: L10N_PREFIX,
3997
- useValue: 'kendo.chiplist'
3998
- }
3999
- ]
4000
- }),
4001
- __metadata("design:paramtypes", [LocalizationService,
4002
- Renderer2,
4003
- ElementRef])
4004
- ], ChipListComponent);
3934
+ providers: [
3935
+ LocalizationService,
3936
+ {
3937
+ provide: L10N_PREFIX,
3938
+ useValue: 'kendo.chiplist'
3939
+ }
3940
+ ]
3941
+ }]
3942
+ }], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i0.Renderer2 }, { type: i0.ElementRef }]; }, propDecorators: { hostClass: [{
3943
+ type: HostBinding,
3944
+ args: ['class.k-chip-list']
3945
+ }], direction: [{
3946
+ type: HostBinding,
3947
+ args: ['attr.dir']
3948
+ }], selection: [{
3949
+ type: Input
3950
+ }], size: [{
3951
+ type: Input
3952
+ }], selectedChange: [{
3953
+ type: Output
3954
+ }], remove: [{
3955
+ type: Output
3956
+ }], chips: [{
3957
+ type: ContentChildren,
3958
+ args: [ChipComponent]
3959
+ }], single: [{
3960
+ type: HostBinding,
3961
+ args: ['class.k-selection-single']
3962
+ }], multiple: [{
3963
+ type: HostBinding,
3964
+ args: ['class.k-selection-multiple']
3965
+ }], role: [{
3966
+ type: HostBinding,
3967
+ args: ['attr.role']
3968
+ }], onClick: [{
3969
+ type: HostListener,
3970
+ args: ['click', ['$event']]
3971
+ }] } });
4005
3972
 
4006
- const exportedModules = [
3973
+ const exportedModules$1 = [
4007
3974
  ChipComponent,
4008
3975
  ChipListComponent
4009
3976
  ];
4010
- const declarations = [
4011
- ...exportedModules
3977
+ const declarations$1 = [
3978
+ ...exportedModules$1
4012
3979
  ];
4013
3980
  /**
4014
3981
  * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
@@ -4038,15 +4005,21 @@ const declarations = [
4038
4005
  *
4039
4006
  * ```
4040
4007
  */
4041
- let ChipModule = class ChipModule {
4042
- };
4043
- ChipModule = __decorate([
4044
- NgModule({
4045
- declarations: [declarations],
4046
- exports: [exportedModules],
4047
- imports: [CommonModule]
4048
- })
4049
- ], ChipModule);
4008
+ class ChipModule {
4009
+ }
4010
+ ChipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4011
+ ChipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChipModule, declarations: [ChipComponent,
4012
+ ChipListComponent], imports: [CommonModule], exports: [ChipComponent,
4013
+ ChipListComponent] });
4014
+ ChipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChipModule, imports: [[CommonModule]] });
4015
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChipModule, decorators: [{
4016
+ type: NgModule,
4017
+ args: [{
4018
+ declarations: [declarations$1],
4019
+ exports: [exportedModules$1],
4020
+ imports: [CommonModule]
4021
+ }]
4022
+ }] });
4050
4023
 
4051
4024
  /**
4052
4025
  * @hidden
@@ -4112,51 +4085,254 @@ function closeAnimation(animationSettings) {
4112
4085
  ]);
4113
4086
  }
4114
4087
 
4115
- /**
4116
- * Represents a template that defines the content of the whole dial item.
4117
- * To define the template, nest an `<ng-template>` tag
4118
- * with the `kendoDialItemTemplate` directive inside the `<kendo-floatingactionbutton>` tag
4119
- * ([see example]({% slug templates_floatingactionbutton %}#toc-dial-item-template)).
4120
- */
4121
- let DialItemTemplateDirective = class DialItemTemplateDirective {
4122
- constructor(templateRef) {
4123
- this.templateRef = templateRef;
4124
- }
4125
- };
4126
- DialItemTemplateDirective = __decorate([
4127
- Directive({
4128
- selector: '[kendoDialItemTemplate]'
4129
- }),
4130
- __param(0, Optional()),
4131
- __metadata("design:paramtypes", [TemplateRef])
4132
- ], DialItemTemplateDirective);
4088
+ /**
4089
+ * Represents a template that defines the content of the whole dial item.
4090
+ * To define the template, nest an `<ng-template>` tag
4091
+ * with the `kendoDialItemTemplate` directive inside the `<kendo-floatingactionbutton>` tag
4092
+ * ([see example]({% slug templates_floatingactionbutton %}#toc-dial-item-template)).
4093
+ */
4094
+ class DialItemTemplateDirective {
4095
+ constructor(templateRef) {
4096
+ this.templateRef = templateRef;
4097
+ }
4098
+ }
4099
+ DialItemTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialItemTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
4100
+ DialItemTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: DialItemTemplateDirective, selector: "[kendoDialItemTemplate]", ngImport: i0 });
4101
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialItemTemplateDirective, decorators: [{
4102
+ type: Directive,
4103
+ args: [{
4104
+ selector: '[kendoDialItemTemplate]'
4105
+ }]
4106
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
4107
+ type: Optional
4108
+ }] }]; } });
4109
+
4110
+ /**
4111
+ * Represents a template that defines the content of the FloatingActionButton.
4112
+ * To define the template, nest an `<ng-template>` tag
4113
+ * with the `kendoFloatingActionButtonTemplate` directive inside the `<kendo-floatingactionbutton>` tag
4114
+ * ([see example]({% slug templates_floatingactionbutton %}#toc-floatingactionbutton-template)).
4115
+ */
4116
+ class FloatingActionButtonTemplateDirective {
4117
+ constructor(templateRef) {
4118
+ this.templateRef = templateRef;
4119
+ }
4120
+ }
4121
+ FloatingActionButtonTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FloatingActionButtonTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
4122
+ FloatingActionButtonTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FloatingActionButtonTemplateDirective, selector: "[kendoFloatingActionButtonTemplate]", ngImport: i0 });
4123
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FloatingActionButtonTemplateDirective, decorators: [{
4124
+ type: Directive,
4125
+ args: [{
4126
+ selector: '[kendoFloatingActionButtonTemplate]'
4127
+ }]
4128
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
4129
+ type: Optional
4130
+ }] }]; } });
4131
+
4132
+ /**
4133
+ * @hidden
4134
+ */
4135
+ class DialItemComponent {
4136
+ constructor(element, renderer, localisationService) {
4137
+ this.element = element;
4138
+ this.renderer = renderer;
4139
+ this.localisationService = localisationService;
4140
+ this.hostClass = true;
4141
+ this.role = 'menuitem';
4142
+ }
4143
+ get disabledClass() {
4144
+ return this.item.disabled;
4145
+ }
4146
+ get title() {
4147
+ const label = this.item.label;
4148
+ return label ? label : this.itemTitle;
4149
+ }
4150
+ get indexAttr() {
4151
+ return this.index;
4152
+ }
4153
+ get iconClasses() {
4154
+ const classes = [];
4155
+ if (this.item.iconClass) {
4156
+ classes.push(`${this.item.iconClass}`);
4157
+ }
4158
+ if (this.item.icon) {
4159
+ classes.push(`k-fab-item-icon k-icon k-i-${this.item.icon}`);
4160
+ }
4161
+ return classes;
4162
+ }
4163
+ get itemTitle() {
4164
+ const icon = this.item.icon;
4165
+ const itemTitle = this.item.itemTitle;
4166
+ return (icon && itemTitle) ? itemTitle : icon;
4167
+ }
4168
+ ngAfterViewInit() {
4169
+ const element = this.element.nativeElement;
4170
+ const rtl = this.localisationService.rtl;
4171
+ const hAlign = this.align.horizontal;
4172
+ this.renderer.addClass(element, this.getTextDirectionClass(rtl, hAlign));
4173
+ }
4174
+ getTextDirectionClass(rtl, hAlign) {
4175
+ const dir = rtl ? 'rtl' : 'ltr';
4176
+ const align = hAlign === 'end' ? 'end' : 'start';
4177
+ const directions = {
4178
+ rtl: { end: 'k-text-left', start: 'k-text-right' },
4179
+ ltr: { start: 'k-text-left', end: 'k-text-right' }
4180
+ };
4181
+ return directions[dir][align];
4182
+ }
4183
+ }
4184
+ DialItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialItemComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
4185
+ DialItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DialItemComponent, selector: "[kendoDialItem]", inputs: { cssClass: "cssClass", cssStyle: "cssStyle", isFocused: "isFocused", index: "index", item: "item", dialItemTemplate: "dialItemTemplate", align: "align" }, host: { properties: { "class.k-fab-item": "this.hostClass", "attr.role": "this.role", "attr.aria-disabled": "this.disabledClass", "class.k-disabled": "this.disabledClass", "attr.title": "this.title", "attr.aria-label": "this.title", "attr.data-fab-item-index": "this.indexAttr" } }, ngImport: i0, template: `
4186
+ <ng-template *ngIf="dialItemTemplate"
4187
+ [ngTemplateOutlet]="dialItemTemplate"
4188
+ [ngTemplateOutletContext]="{ $implicit: item, index: index, isFocused: isFocused }"
4189
+ >
4190
+ </ng-template>
4191
+
4192
+ <ng-container *ngIf="!dialItemTemplate">
4193
+ <span *ngIf="item.label" class="k-fab-item-text">{{ item.label }}</span>
4194
+ <span *ngIf="item.icon || item.iconClass" [ngClass]="iconClasses"></span>
4195
+ </ng-container>
4196
+ `, isInline: true, directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
4197
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialItemComponent, decorators: [{
4198
+ type: Component,
4199
+ args: [{
4200
+ selector: '[kendoDialItem]',
4201
+ template: `
4202
+ <ng-template *ngIf="dialItemTemplate"
4203
+ [ngTemplateOutlet]="dialItemTemplate"
4204
+ [ngTemplateOutletContext]="{ $implicit: item, index: index, isFocused: isFocused }"
4205
+ >
4206
+ </ng-template>
4207
+
4208
+ <ng-container *ngIf="!dialItemTemplate">
4209
+ <span *ngIf="item.label" class="k-fab-item-text">{{ item.label }}</span>
4210
+ <span *ngIf="item.icon || item.iconClass" [ngClass]="iconClasses"></span>
4211
+ </ng-container>
4212
+ `
4213
+ }]
4214
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.LocalizationService }]; }, propDecorators: { hostClass: [{
4215
+ type: HostBinding,
4216
+ args: ['class.k-fab-item']
4217
+ }], role: [{
4218
+ type: HostBinding,
4219
+ args: ['attr.role']
4220
+ }], disabledClass: [{
4221
+ type: HostBinding,
4222
+ args: ['attr.aria-disabled']
4223
+ }, {
4224
+ type: HostBinding,
4225
+ args: ['class.k-disabled']
4226
+ }], title: [{
4227
+ type: HostBinding,
4228
+ args: ['attr.title']
4229
+ }, {
4230
+ type: HostBinding,
4231
+ args: ['attr.aria-label']
4232
+ }], indexAttr: [{
4233
+ type: HostBinding,
4234
+ args: ['attr.data-fab-item-index']
4235
+ }], cssClass: [{
4236
+ type: Input
4237
+ }], cssStyle: [{
4238
+ type: Input
4239
+ }], isFocused: [{
4240
+ type: Input
4241
+ }], index: [{
4242
+ type: Input
4243
+ }], item: [{
4244
+ type: Input
4245
+ }], dialItemTemplate: [{
4246
+ type: Input
4247
+ }], align: [{
4248
+ type: Input
4249
+ }] } });
4133
4250
 
4134
4251
  /**
4135
- * Represents a template that defines the content of the FloatingActionButton.
4136
- * To define the template, nest an `<ng-template>` tag
4137
- * with the `kendoFloatingActionButtonTemplate` directive inside the `<kendo-floatingactionbutton>` tag
4138
- * ([see example]({% slug templates_floatingactionbutton %}#toc-floatingactionbutton-template)).
4252
+ * @hidden
4139
4253
  */
4140
- let FloatingActionButtonTemplateDirective = class FloatingActionButtonTemplateDirective {
4141
- constructor(templateRef) {
4142
- this.templateRef = templateRef;
4254
+ class DialListComponent {
4255
+ constructor(focusService, cdr) {
4256
+ this.focusService = focusService;
4257
+ this.cdr = cdr;
4258
+ this.hostClass = true;
4259
+ this.subscriptions = new Subscription();
4260
+ this.subscriptions.add(this.focusService.onFocus.subscribe(() => this.cdr.detectChanges()));
4143
4261
  }
4144
- };
4145
- FloatingActionButtonTemplateDirective = __decorate([
4146
- Directive({
4147
- selector: '[kendoFloatingActionButtonTemplate]'
4148
- }),
4149
- __param(0, Optional()),
4150
- __metadata("design:paramtypes", [TemplateRef])
4151
- ], FloatingActionButtonTemplateDirective);
4262
+ get bottomClass() {
4263
+ return this.align.vertical === 'top' || this.align.vertical === 'middle';
4264
+ }
4265
+ get topClass() {
4266
+ return this.align.vertical === 'bottom';
4267
+ }
4268
+ isFocused(index) {
4269
+ return this.focusService.isFocused(index);
4270
+ }
4271
+ ngOnDestroy() {
4272
+ this.subscriptions.unsubscribe();
4273
+ }
4274
+ }
4275
+ DialListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialListComponent, deps: [{ token: FocusService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
4276
+ DialListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DialListComponent, selector: "[kendoDialList]", inputs: { dialItems: "dialItems", dialItemTemplate: "dialItemTemplate", align: "align" }, host: { properties: { "class.k-fab-items": "this.hostClass", "class.k-fab-items-bottom": "this.bottomClass", "class.k-fab-items-top": "this.topClass" } }, ngImport: i0, template: `
4277
+ <ng-container *ngFor='let item of dialItems; let idx = index'>
4278
+ <li
4279
+ kendoButtonFocusable
4280
+ kendoDialItem
4281
+ [item]="dialItems[idx]"
4282
+ [index]="idx"
4283
+ [dialItemTemplate]="dialItemTemplate"
4284
+ [isFocused]="isFocused(idx)"
4285
+ [ngClass]='item.cssClass'
4286
+ [ngStyle]='item.cssStyle'
4287
+ [align]="align"
4288
+ >
4289
+ </li>
4290
+ </ng-container>
4291
+ `, isInline: true, components: [{ type: DialItemComponent, selector: "[kendoDialItem]", inputs: ["cssClass", "cssStyle", "isFocused", "index", "item", "dialItemTemplate", "align"] }], directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: FocusableDirective, selector: "[kendoButtonFocusable]", inputs: ["index"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
4292
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialListComponent, decorators: [{
4293
+ type: Component,
4294
+ args: [{
4295
+ selector: '[kendoDialList]',
4296
+ template: `
4297
+ <ng-container *ngFor='let item of dialItems; let idx = index'>
4298
+ <li
4299
+ kendoButtonFocusable
4300
+ kendoDialItem
4301
+ [item]="dialItems[idx]"
4302
+ [index]="idx"
4303
+ [dialItemTemplate]="dialItemTemplate"
4304
+ [isFocused]="isFocused(idx)"
4305
+ [ngClass]='item.cssClass'
4306
+ [ngStyle]='item.cssStyle'
4307
+ [align]="align"
4308
+ >
4309
+ </li>
4310
+ </ng-container>
4311
+ `
4312
+ }]
4313
+ }], ctorParameters: function () { return [{ type: FocusService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { hostClass: [{
4314
+ type: HostBinding,
4315
+ args: ['class.k-fab-items']
4316
+ }], bottomClass: [{
4317
+ type: HostBinding,
4318
+ args: ['class.k-fab-items-bottom']
4319
+ }], topClass: [{
4320
+ type: HostBinding,
4321
+ args: ['class.k-fab-items-top']
4322
+ }], dialItems: [{
4323
+ type: Input
4324
+ }], dialItemTemplate: [{
4325
+ type: Input
4326
+ }], align: [{
4327
+ type: Input
4328
+ }] } });
4152
4329
 
4153
- const NAVIGATION_SETTINGS$2 = {
4330
+ const NAVIGATION_SETTINGS = {
4154
4331
  useLeftRightArrows: false
4155
4332
  };
4156
- const ɵ0$2 = NAVIGATION_SETTINGS$2;
4157
- const NAVIGATION_SETTINGS_PROVIDER$2 = {
4333
+ const NAVIGATION_SETTINGS_PROVIDER = {
4158
4334
  provide: NAVIGATION_CONFIG,
4159
- useValue: ɵ0$2
4335
+ useValue: NAVIGATION_SETTINGS
4160
4336
  };
4161
4337
  const SIZE_CLASSES = {
4162
4338
  small: 'k-fab-sm',
@@ -4183,7 +4359,7 @@ const DEFAULT_OFFSET = '16px';
4183
4359
  * Used to specify the primary or the most common action in an application.
4184
4360
  *
4185
4361
  */
4186
- let FloatingActionButtonComponent = class FloatingActionButtonComponent {
4362
+ class FloatingActionButtonComponent {
4187
4363
  constructor(renderer, element, focusService, navigationService, ngZone, popupService, builder, localizationService) {
4188
4364
  this.renderer = renderer;
4189
4365
  this.element = element;
@@ -4790,142 +4966,18 @@ let FloatingActionButtonComponent = class FloatingActionButtonComponent {
4790
4966
  }
4791
4967
  return DEFAULT_DURATION;
4792
4968
  }
4793
- };
4794
- __decorate([
4795
- HostBinding('class.k-pos-fixed'),
4796
- __metadata("design:type", Boolean),
4797
- __metadata("design:paramtypes", [])
4798
- ], FloatingActionButtonComponent.prototype, "fixedClass", null);
4799
- __decorate([
4800
- HostBinding('class.k-pos-absolute'),
4801
- __metadata("design:type", Boolean),
4802
- __metadata("design:paramtypes", [])
4803
- ], FloatingActionButtonComponent.prototype, "absoluteClass", null);
4804
- __decorate([
4805
- HostBinding('attr.dir'),
4806
- __metadata("design:type", String)
4807
- ], FloatingActionButtonComponent.prototype, "direction", void 0);
4808
- __decorate([
4809
- ViewChild('button', { static: true }),
4810
- __metadata("design:type", ElementRef)
4811
- ], FloatingActionButtonComponent.prototype, "button", void 0);
4812
- __decorate([
4813
- ViewChild('popupTemplate', { static: true }),
4814
- __metadata("design:type", TemplateRef)
4815
- ], FloatingActionButtonComponent.prototype, "popupTemplate", void 0);
4816
- __decorate([
4817
- ContentChild(DialItemTemplateDirective, { static: true }),
4818
- __metadata("design:type", DialItemTemplateDirective)
4819
- ], FloatingActionButtonComponent.prototype, "dialItemTemplate", void 0);
4820
- __decorate([
4821
- ContentChild(FloatingActionButtonTemplateDirective, { static: true }),
4822
- __metadata("design:type", FloatingActionButtonTemplateDirective)
4823
- ], FloatingActionButtonComponent.prototype, "fabTemplate", void 0);
4824
- __decorate([
4825
- Input(),
4826
- __metadata("design:type", String),
4827
- __metadata("design:paramtypes", [String])
4828
- ], FloatingActionButtonComponent.prototype, "themeColor", null);
4829
- __decorate([
4830
- Input(),
4831
- __metadata("design:type", String),
4832
- __metadata("design:paramtypes", [String])
4833
- ], FloatingActionButtonComponent.prototype, "size", null);
4834
- __decorate([
4835
- Input(),
4836
- __metadata("design:type", String),
4837
- __metadata("design:paramtypes", [String])
4838
- ], FloatingActionButtonComponent.prototype, "rounded", null);
4839
- __decorate([
4840
- Input(),
4841
- __metadata("design:type", String),
4842
- __metadata("design:paramtypes", [String])
4843
- ], FloatingActionButtonComponent.prototype, "shape", null);
4844
- __decorate([
4845
- Input(),
4846
- __metadata("design:type", Boolean),
4847
- __metadata("design:paramtypes", [Boolean])
4848
- ], FloatingActionButtonComponent.prototype, "disabled", null);
4849
- __decorate([
4850
- Input(),
4851
- __metadata("design:type", Object),
4852
- __metadata("design:paramtypes", [Object])
4853
- ], FloatingActionButtonComponent.prototype, "align", null);
4854
- __decorate([
4855
- Input(),
4856
- __metadata("design:type", Object),
4857
- __metadata("design:paramtypes", [Object])
4858
- ], FloatingActionButtonComponent.prototype, "offset", null);
4859
- __decorate([
4860
- Input(),
4861
- __metadata("design:type", String)
4862
- ], FloatingActionButtonComponent.prototype, "positionMode", void 0);
4863
- __decorate([
4864
- Input(),
4865
- __metadata("design:type", String)
4866
- ], FloatingActionButtonComponent.prototype, "icon", void 0);
4867
- __decorate([
4868
- Input(),
4869
- __metadata("design:type", String)
4870
- ], FloatingActionButtonComponent.prototype, "iconClass", void 0);
4871
- __decorate([
4872
- Input(),
4873
- __metadata("design:type", Object)
4874
- ], FloatingActionButtonComponent.prototype, "buttonClass", void 0);
4875
- __decorate([
4876
- Input(),
4877
- __metadata("design:type", Object)
4878
- ], FloatingActionButtonComponent.prototype, "dialClass", void 0);
4879
- __decorate([
4880
- Input(),
4881
- __metadata("design:type", String)
4882
- ], FloatingActionButtonComponent.prototype, "text", void 0);
4883
- __decorate([
4884
- Input(),
4885
- __metadata("design:type", Object)
4886
- ], FloatingActionButtonComponent.prototype, "dialItemAnimation", void 0);
4887
- __decorate([
4888
- Input(),
4889
- __metadata("design:type", Number)
4890
- ], FloatingActionButtonComponent.prototype, "tabIndex", void 0);
4891
- __decorate([
4892
- Input(),
4893
- __metadata("design:type", Array)
4894
- ], FloatingActionButtonComponent.prototype, "dialItems", void 0);
4895
- __decorate([
4896
- Output('blur'),
4897
- __metadata("design:type", EventEmitter)
4898
- ], FloatingActionButtonComponent.prototype, "onBlur", void 0);
4899
- __decorate([
4900
- Output('focus'),
4901
- __metadata("design:type", EventEmitter)
4902
- ], FloatingActionButtonComponent.prototype, "onFocus", void 0);
4903
- __decorate([
4904
- Output('dialItemClick'),
4905
- __metadata("design:type", EventEmitter)
4906
- ], FloatingActionButtonComponent.prototype, "dialItemClick", void 0);
4907
- __decorate([
4908
- Output(),
4909
- __metadata("design:type", EventEmitter)
4910
- ], FloatingActionButtonComponent.prototype, "open", void 0);
4911
- __decorate([
4912
- Output(),
4913
- __metadata("design:type", EventEmitter)
4914
- ], FloatingActionButtonComponent.prototype, "close", void 0);
4915
- FloatingActionButtonComponent = __decorate([
4916
- Component({
4917
- selector: 'kendo-floatingactionbutton',
4918
- providers: [
4919
- FocusService,
4920
- NavigationService,
4921
- NAVIGATION_SETTINGS_PROVIDER$2,
4922
- LocalizationService,
4923
- {
4924
- provide: L10N_PREFIX,
4925
- useValue: 'kendo.floatingactionbutton'
4926
- }
4927
- ],
4928
- template: `
4969
+ }
4970
+ FloatingActionButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FloatingActionButtonComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: FocusService }, { token: NavigationService }, { token: i0.NgZone }, { token: i3.PopupService }, { token: i4.AnimationBuilder }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
4971
+ FloatingActionButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FloatingActionButtonComponent, selector: "kendo-floatingactionbutton", inputs: { themeColor: "themeColor", size: "size", rounded: "rounded", shape: "shape", disabled: "disabled", align: "align", offset: "offset", positionMode: "positionMode", icon: "icon", iconClass: "iconClass", buttonClass: "buttonClass", dialClass: "dialClass", text: "text", dialItemAnimation: "dialItemAnimation", tabIndex: "tabIndex", dialItems: "dialItems" }, outputs: { onBlur: "blur", onFocus: "focus", dialItemClick: "dialItemClick", open: "open", close: "close" }, host: { properties: { "class.k-pos-fixed": "this.fixedClass", "class.k-pos-absolute": "this.absoluteClass", "attr.dir": "this.direction" } }, providers: [
4972
+ FocusService,
4973
+ NavigationService,
4974
+ NAVIGATION_SETTINGS_PROVIDER,
4975
+ LocalizationService,
4976
+ {
4977
+ provide: L10N_PREFIX,
4978
+ useValue: 'kendo.floatingactionbutton'
4979
+ }
4980
+ ], queries: [{ propertyName: "dialItemTemplate", first: true, predicate: DialItemTemplateDirective, descendants: true, static: true }, { propertyName: "fabTemplate", first: true, predicate: FloatingActionButtonTemplateDirective, descendants: true, static: true }], viewQueries: [{ propertyName: "button", first: true, predicate: ["button"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }], ngImport: i0, template: `
4929
4981
  <button
4930
4982
  #button
4931
4983
  [attr.id]="id"
@@ -4970,224 +5022,143 @@ FloatingActionButtonComponent = __decorate([
4970
5022
  >
4971
5023
  </ul>
4972
5024
  </ng-template>
4973
- `
4974
- }),
4975
- __metadata("design:paramtypes", [Renderer2,
4976
- ElementRef,
4977
- FocusService,
4978
- NavigationService,
4979
- NgZone,
4980
- PopupService,
4981
- AnimationBuilder,
4982
- LocalizationService])
4983
- ], FloatingActionButtonComponent);
5025
+ `, isInline: true, components: [{ type: DialListComponent, selector: "[kendoDialList]", inputs: ["dialItems", "dialItemTemplate", "align"] }], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i8.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
5026
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FloatingActionButtonComponent, decorators: [{
5027
+ type: Component,
5028
+ args: [{
5029
+ selector: 'kendo-floatingactionbutton',
5030
+ providers: [
5031
+ FocusService,
5032
+ NavigationService,
5033
+ NAVIGATION_SETTINGS_PROVIDER,
5034
+ LocalizationService,
5035
+ {
5036
+ provide: L10N_PREFIX,
5037
+ useValue: 'kendo.floatingactionbutton'
5038
+ }
5039
+ ],
5040
+ template: `
5041
+ <button
5042
+ #button
5043
+ [attr.id]="id"
5044
+ [attr.role]="role"
5045
+ [tabIndex]="componentTabIndex"
5046
+ type="button"
5047
+ class="k-fab k-fab-solid"
5048
+ [class.k-disabled]="disabled"
5049
+ [ngClass]="buttonClass"
5050
+ [disabled]="disabled"
5051
+ [attr.aria-disabled]="disabled"
5052
+ [attr.aria-expanded]="ariaExpanded"
5053
+ [attr.aria-haspopup]="ariaHasPopup"
5054
+ (focus)="focusHandler()"
5055
+ (blur)="blurHandler()"
5056
+ [kendoEventsOutsideAngular]="{
5057
+ keydown: keyDownHandler,
5058
+ click: clickHandler
5059
+ }"
5060
+ [scope]="this"
5061
+ >
5062
+ <ng-template *ngIf="fabTemplate"
5063
+ [ngTemplateOutlet]="fabTemplate?.templateRef"
5064
+ >
5065
+ </ng-template>
4984
5066
 
4985
- /**
4986
- * @hidden
4987
- */
4988
- let DialListComponent = class DialListComponent {
4989
- constructor(focusService, cdr) {
4990
- this.focusService = focusService;
4991
- this.cdr = cdr;
4992
- this.hostClass = true;
4993
- this.subscriptions = new Subscription();
4994
- this.subscriptions.add(this.focusService.onFocus.subscribe(() => this.cdr.detectChanges()));
4995
- }
4996
- get bottomClass() {
4997
- return this.align.vertical === 'top' || this.align.vertical === 'middle';
4998
- }
4999
- get topClass() {
5000
- return this.align.vertical === 'bottom';
5001
- }
5002
- isFocused(index) {
5003
- return this.focusService.isFocused(index);
5004
- }
5005
- ngOnDestroy() {
5006
- this.subscriptions.unsubscribe();
5007
- }
5008
- };
5009
- __decorate([
5010
- HostBinding('class.k-fab-items'),
5011
- __metadata("design:type", Boolean)
5012
- ], DialListComponent.prototype, "hostClass", void 0);
5013
- __decorate([
5014
- HostBinding('class.k-fab-items-bottom'),
5015
- __metadata("design:type", Boolean),
5016
- __metadata("design:paramtypes", [])
5017
- ], DialListComponent.prototype, "bottomClass", null);
5018
- __decorate([
5019
- HostBinding('class.k-fab-items-top'),
5020
- __metadata("design:type", Boolean),
5021
- __metadata("design:paramtypes", [])
5022
- ], DialListComponent.prototype, "topClass", null);
5023
- __decorate([
5024
- Input(),
5025
- __metadata("design:type", Array)
5026
- ], DialListComponent.prototype, "dialItems", void 0);
5027
- __decorate([
5028
- Input(),
5029
- __metadata("design:type", TemplateRef)
5030
- ], DialListComponent.prototype, "dialItemTemplate", void 0);
5031
- __decorate([
5032
- Input(),
5033
- __metadata("design:type", Object)
5034
- ], DialListComponent.prototype, "align", void 0);
5035
- DialListComponent = __decorate([
5036
- Component({
5037
- selector: '[kendoDialList]',
5038
- template: `
5039
- <ng-container *ngFor='let item of dialItems; let idx = index'>
5040
- <li
5041
- kendoButtonFocusable
5042
- kendoDialItem
5043
- [item]="dialItems[idx]"
5044
- [index]="idx"
5045
- [dialItemTemplate]="dialItemTemplate"
5046
- [isFocused]="isFocused(idx)"
5047
- [ngClass]='item.cssClass'
5048
- [ngStyle]='item.cssStyle'
5067
+ <ng-container *ngIf="!fabTemplate">
5068
+ <span *ngIf="icon || iconClass" [ngClass]="iconClasses"></span>
5069
+ <span *ngIf="text" class="k-fab-text">{{ text }}</span>
5070
+ </ng-container>
5071
+ </button>
5072
+
5073
+ <ng-template #popupTemplate>
5074
+ <ul
5075
+ kendoDialList
5076
+ [ngClass]="dialClass"
5077
+ [dialItems]="dialItems"
5078
+ [dialItemTemplate]='dialItemTemplate?.templateRef'
5049
5079
  [align]="align"
5080
+ [attr.aria-labelledby]="id"
5081
+ (click)="onItemClick($event)"
5050
5082
  >
5051
- </li>
5052
- </ng-container>
5053
- `
5054
- }),
5055
- __metadata("design:paramtypes", [FocusService, ChangeDetectorRef])
5056
- ], DialListComponent);
5057
-
5058
- /**
5059
- * @hidden
5060
- */
5061
- let DialItemComponent = class DialItemComponent {
5062
- constructor(element, renderer, localisationService) {
5063
- this.element = element;
5064
- this.renderer = renderer;
5065
- this.localisationService = localisationService;
5066
- this.hostClass = true;
5067
- this.role = 'menuitem';
5068
- }
5069
- get disabledClass() {
5070
- return this.item.disabled;
5071
- }
5072
- get title() {
5073
- const label = this.item.label;
5074
- return label ? label : this.itemTitle;
5075
- }
5076
- get indexAttr() {
5077
- return this.index;
5078
- }
5079
- get iconClasses() {
5080
- const classes = [];
5081
- if (this.item.iconClass) {
5082
- classes.push(`${this.item.iconClass}`);
5083
- }
5084
- if (this.item.icon) {
5085
- classes.push(`k-fab-item-icon k-icon k-i-${this.item.icon}`);
5086
- }
5087
- return classes;
5088
- }
5089
- get itemTitle() {
5090
- const icon = this.item.icon;
5091
- const itemTitle = this.item.itemTitle;
5092
- return (icon && itemTitle) ? itemTitle : icon;
5093
- }
5094
- ngAfterViewInit() {
5095
- const element = this.element.nativeElement;
5096
- const rtl = this.localisationService.rtl;
5097
- const hAlign = this.align.horizontal;
5098
- this.renderer.addClass(element, this.getTextDirectionClass(rtl, hAlign));
5099
- }
5100
- getTextDirectionClass(rtl, hAlign) {
5101
- const dir = rtl ? 'rtl' : 'ltr';
5102
- const align = hAlign === 'end' ? 'end' : 'start';
5103
- const directions = {
5104
- rtl: { end: 'k-text-left', start: 'k-text-right' },
5105
- ltr: { start: 'k-text-left', end: 'k-text-right' }
5106
- };
5107
- return directions[dir][align];
5108
- }
5109
- };
5110
- __decorate([
5111
- HostBinding('class.k-fab-item'),
5112
- __metadata("design:type", Boolean)
5113
- ], DialItemComponent.prototype, "hostClass", void 0);
5114
- __decorate([
5115
- HostBinding('attr.role'),
5116
- __metadata("design:type", String)
5117
- ], DialItemComponent.prototype, "role", void 0);
5118
- __decorate([
5119
- HostBinding('attr.aria-disabled'),
5120
- HostBinding('class.k-disabled'),
5121
- __metadata("design:type", Boolean),
5122
- __metadata("design:paramtypes", [])
5123
- ], DialItemComponent.prototype, "disabledClass", null);
5124
- __decorate([
5125
- HostBinding('attr.title'),
5126
- HostBinding('attr.aria-label'),
5127
- __metadata("design:type", String),
5128
- __metadata("design:paramtypes", [])
5129
- ], DialItemComponent.prototype, "title", null);
5130
- __decorate([
5131
- HostBinding('attr.data-fab-item-index'),
5132
- __metadata("design:type", String),
5133
- __metadata("design:paramtypes", [])
5134
- ], DialItemComponent.prototype, "indexAttr", null);
5135
- __decorate([
5136
- Input(),
5137
- __metadata("design:type", Object)
5138
- ], DialItemComponent.prototype, "cssClass", void 0);
5139
- __decorate([
5140
- Input(),
5141
- __metadata("design:type", Object)
5142
- ], DialItemComponent.prototype, "cssStyle", void 0);
5143
- __decorate([
5144
- Input(),
5145
- __metadata("design:type", Boolean)
5146
- ], DialItemComponent.prototype, "isFocused", void 0);
5147
- __decorate([
5148
- Input(),
5149
- __metadata("design:type", Object)
5150
- ], DialItemComponent.prototype, "index", void 0);
5151
- __decorate([
5152
- Input(),
5153
- __metadata("design:type", Object)
5154
- ], DialItemComponent.prototype, "item", void 0);
5155
- __decorate([
5156
- Input(),
5157
- __metadata("design:type", TemplateRef)
5158
- ], DialItemComponent.prototype, "dialItemTemplate", void 0);
5159
- __decorate([
5160
- Input(),
5161
- __metadata("design:type", Object)
5162
- ], DialItemComponent.prototype, "align", void 0);
5163
- DialItemComponent = __decorate([
5164
- Component({
5165
- selector: '[kendoDialItem]',
5166
- template: `
5167
- <ng-template *ngIf="dialItemTemplate"
5168
- [ngTemplateOutlet]="dialItemTemplate"
5169
- [ngTemplateOutletContext]="{ $implicit: item, index: index, isFocused: isFocused }"
5170
- >
5083
+ </ul>
5171
5084
  </ng-template>
5172
-
5173
- <ng-container *ngIf="!dialItemTemplate">
5174
- <span *ngIf="item.label" class="k-fab-item-text">{{ item.label }}</span>
5175
- <span *ngIf="item.icon || item.iconClass" [ngClass]="iconClasses"></span>
5176
- </ng-container>
5177
5085
  `
5178
- }),
5179
- __metadata("design:paramtypes", [ElementRef,
5180
- Renderer2,
5181
- LocalizationService])
5182
- ], DialItemComponent);
5086
+ }]
5087
+ }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: FocusService }, { type: NavigationService }, { type: i0.NgZone }, { type: i3.PopupService }, { type: i4.AnimationBuilder }, { type: i1.LocalizationService }]; }, propDecorators: { fixedClass: [{
5088
+ type: HostBinding,
5089
+ args: ['class.k-pos-fixed']
5090
+ }], absoluteClass: [{
5091
+ type: HostBinding,
5092
+ args: ['class.k-pos-absolute']
5093
+ }], direction: [{
5094
+ type: HostBinding,
5095
+ args: ['attr.dir']
5096
+ }], button: [{
5097
+ type: ViewChild,
5098
+ args: ['button', { static: true }]
5099
+ }], popupTemplate: [{
5100
+ type: ViewChild,
5101
+ args: ['popupTemplate', { static: true }]
5102
+ }], dialItemTemplate: [{
5103
+ type: ContentChild,
5104
+ args: [DialItemTemplateDirective, { static: true }]
5105
+ }], fabTemplate: [{
5106
+ type: ContentChild,
5107
+ args: [FloatingActionButtonTemplateDirective, { static: true }]
5108
+ }], themeColor: [{
5109
+ type: Input
5110
+ }], size: [{
5111
+ type: Input
5112
+ }], rounded: [{
5113
+ type: Input
5114
+ }], shape: [{
5115
+ type: Input
5116
+ }], disabled: [{
5117
+ type: Input
5118
+ }], align: [{
5119
+ type: Input
5120
+ }], offset: [{
5121
+ type: Input
5122
+ }], positionMode: [{
5123
+ type: Input
5124
+ }], icon: [{
5125
+ type: Input
5126
+ }], iconClass: [{
5127
+ type: Input
5128
+ }], buttonClass: [{
5129
+ type: Input
5130
+ }], dialClass: [{
5131
+ type: Input
5132
+ }], text: [{
5133
+ type: Input
5134
+ }], dialItemAnimation: [{
5135
+ type: Input
5136
+ }], tabIndex: [{
5137
+ type: Input
5138
+ }], dialItems: [{
5139
+ type: Input
5140
+ }], onBlur: [{
5141
+ type: Output,
5142
+ args: ['blur']
5143
+ }], onFocus: [{
5144
+ type: Output,
5145
+ args: ['focus']
5146
+ }], dialItemClick: [{
5147
+ type: Output,
5148
+ args: ['dialItemClick']
5149
+ }], open: [{
5150
+ type: Output
5151
+ }], close: [{
5152
+ type: Output
5153
+ }] } });
5183
5154
 
5184
- const exportedModules$1 = [
5155
+ const exportedModules = [
5185
5156
  FloatingActionButtonComponent,
5186
5157
  DialItemTemplateDirective,
5187
5158
  FloatingActionButtonTemplateDirective
5188
5159
  ];
5189
- const declarations$1 = [
5190
- ...exportedModules$1,
5160
+ const declarations = [
5161
+ ...exportedModules,
5191
5162
  DialListComponent,
5192
5163
  DialItemComponent
5193
5164
  ];
@@ -5219,15 +5190,24 @@ const declarations$1 = [
5219
5190
  *
5220
5191
  * ```
5221
5192
  */
5222
- let FloatingActionButtonModule = class FloatingActionButtonModule {
5223
- };
5224
- FloatingActionButtonModule = __decorate([
5225
- NgModule({
5226
- declarations: [declarations$1],
5227
- exports: [exportedModules$1],
5228
- imports: [CommonModule, PopupModule, ListModule, EventsModule]
5229
- })
5230
- ], FloatingActionButtonModule);
5193
+ class FloatingActionButtonModule {
5194
+ }
5195
+ FloatingActionButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FloatingActionButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
5196
+ FloatingActionButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FloatingActionButtonModule, declarations: [FloatingActionButtonComponent,
5197
+ DialItemTemplateDirective,
5198
+ FloatingActionButtonTemplateDirective, DialListComponent,
5199
+ DialItemComponent], imports: [CommonModule, PopupModule, ListModule, EventsModule], exports: [FloatingActionButtonComponent,
5200
+ DialItemTemplateDirective,
5201
+ FloatingActionButtonTemplateDirective] });
5202
+ FloatingActionButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FloatingActionButtonModule, imports: [[CommonModule, PopupModule, ListModule, EventsModule]] });
5203
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FloatingActionButtonModule, decorators: [{
5204
+ type: NgModule,
5205
+ args: [{
5206
+ declarations: [declarations],
5207
+ exports: [exportedModules],
5208
+ imports: [CommonModule, PopupModule, ListModule, EventsModule]
5209
+ }]
5210
+ }] });
5231
5211
 
5232
5212
  /**
5233
5213
  * Represents the [NgModule]({{ site.data.urls.angular['ngmodules'] }})
@@ -5260,16 +5240,21 @@ FloatingActionButtonModule = __decorate([
5260
5240
  *
5261
5241
  * ```
5262
5242
  */
5263
- let ButtonsModule = class ButtonsModule {
5264
- };
5265
- ButtonsModule = __decorate([
5266
- NgModule({
5267
- exports: [ButtonGroupModule, ButtonModule, SplitButtonModule, DropDownButtonModule, ChipModule, FloatingActionButtonModule]
5268
- })
5269
- ], ButtonsModule);
5243
+ class ButtonsModule {
5244
+ }
5245
+ ButtonsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
5246
+ ButtonsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonsModule, exports: [ButtonGroupModule, ButtonModule, SplitButtonModule, DropDownButtonModule, ChipModule, FloatingActionButtonModule] });
5247
+ ButtonsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonsModule, imports: [ButtonGroupModule, ButtonModule, SplitButtonModule, DropDownButtonModule, ChipModule, FloatingActionButtonModule] });
5248
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonsModule, decorators: [{
5249
+ type: NgModule,
5250
+ args: [{
5251
+ exports: [ButtonGroupModule, ButtonModule, SplitButtonModule, DropDownButtonModule, ChipModule, FloatingActionButtonModule]
5252
+ }]
5253
+ }] });
5270
5254
 
5271
5255
  /**
5272
5256
  * Generated bundle index. Do not edit.
5273
5257
  */
5274
5258
 
5275
- export { KendoButtonService, DialItemComponent, DialListComponent, FocusService, FocusableDirective, ButtonItemTemplateDirective, ListButton, ListComponent, ListModule, TemplateContextDirective, NAVIGATION_CONFIG, NavigationService, LocalizedSplitButtonMessagesDirective, Messages, ButtonDirective, ButtonDirective as Button, ButtonGroupComponent, ButtonGroupComponent as ButtonGroup, ButtonGroupModule, ButtonModule, ButtonsModule, SplitButtonComponent, SplitButtonComponent as SplitButton, SplitButtonModule, SplitButtonCustomMessagesComponent, DropDownButtonComponent, DropDownButtonComponent as DropDownButton, DropDownButtonModule, ChipComponent, ChipListComponent, ChipModule, FloatingActionButtonModule, FloatingActionButtonComponent, FloatingActionButtonTemplateDirective, DialItemTemplateDirective };
5259
+ export { ButtonDirective as Button, ButtonDirective, ButtonGroupComponent as ButtonGroup, ButtonGroupComponent, ButtonGroupModule, ButtonItemTemplateDirective, ButtonModule, ButtonsModule, ChipComponent, ChipListComponent, ChipModule, DialItemTemplateDirective, DropDownButtonComponent as DropDownButton, DropDownButtonComponent, DropDownButtonModule, FloatingActionButtonComponent, FloatingActionButtonModule, FloatingActionButtonTemplateDirective, FocusableDirective, ListComponent, ListModule, LocalizedSplitButtonMessagesDirective, SplitButtonComponent as SplitButton, SplitButtonComponent, SplitButtonCustomMessagesComponent, SplitButtonModule, TemplateContextDirective };
5260
+