@progress/kendo-angular-buttons 7.0.1 → 8.0.0-next.202202091348

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