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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (270) hide show
  1. package/bundles/kendo-angular-buttons.umd.js +5 -0
  2. package/{dist/es2015/button → button}/button.directive.d.ts +63 -60
  3. package/{dist/es2015/button → button}/button.module.d.ts +5 -0
  4. package/{dist/es2015/button → button}/button.service.d.ts +3 -0
  5. package/{dist/es2015/button → button}/selection-settings.d.ts +0 -0
  6. package/{dist/es2015/buttongroup → buttongroup}/buttongroup.component.d.ts +13 -9
  7. package/{dist/es2015/buttongroup → buttongroup}/buttongroup.module.d.ts +7 -0
  8. package/{dist/es2015/buttons.module.d.ts → buttons.module.d.ts} +10 -0
  9. package/{dist/es2015/chip → chip}/chip-content-click-event-args.interface.d.ts +0 -0
  10. package/{dist/es2015/chip → chip}/chip-list-remove-event-args.interface.d.ts +0 -0
  11. package/{dist/es2015/chip → chip}/chip-list.component.d.ts +8 -4
  12. package/{dist/es2015/chip → chip}/chip-remove-event-args.interface.d.ts +0 -0
  13. package/{dist/es2015/chip → chip}/chip.component.d.ts +38 -31
  14. package/{dist/es2015/chip → chip}/chip.module.d.ts +7 -0
  15. package/{dist/es2015/chip → chip}/models/selection.d.ts +0 -0
  16. package/{dist/es2015/common → common}/models/fillmode.d.ts +2 -2
  17. package/{dist/es2015/common → common}/models/rounded.d.ts +2 -2
  18. package/{dist/es2015/common → common}/models/size.d.ts +2 -2
  19. package/{dist/es2015/common → common}/models/styling-classes.d.ts +0 -0
  20. package/{dist/es2015/common → common}/models/theme-color.d.ts +2 -2
  21. package/{dist/es2015/common → common}/models.d.ts +0 -1
  22. package/{dist/es2015/direction.d.ts → direction.d.ts} +0 -0
  23. package/{dist/es2015/dropdownbutton → dropdownbutton}/dropdownbutton.component.d.ts +36 -38
  24. package/dropdownbutton/dropdownbutton.module.d.ts +23 -0
  25. package/{dist/es2015 → esm2015}/button/button.directive.js +139 -209
  26. package/{dist/es2015 → esm2015}/button/button.module.js +13 -10
  27. package/{dist/es2015 → esm2015}/button/button.service.js +8 -10
  28. package/{dist/es → esm2015}/button/selection-settings.js +1 -0
  29. package/{dist/es2015 → esm2015}/buttongroup/buttongroup.component.js +82 -106
  30. package/esm2015/buttongroup/buttongroup.module.js +30 -0
  31. package/{dist/es → esm2015}/buttons.module.js +12 -12
  32. package/{dist/es2015 → esm2015}/chip/chip-content-click-event-args.interface.js +1 -0
  33. package/{dist/es2015 → esm2015}/chip/chip-list-remove-event-args.interface.js +1 -0
  34. package/{dist/es2015 → esm2015}/chip/chip-list.component.js +62 -73
  35. package/{dist/es2015 → esm2015}/chip/chip-remove-event-args.interface.js +1 -0
  36. package/{dist/es2015 → esm2015}/chip/chip.component.js +160 -148
  37. package/{dist/es2015 → esm2015}/chip/chip.module.js +16 -11
  38. package/{dist/es → esm2015}/chip/models/selection.js +1 -0
  39. package/{dist/es → esm2015}/common/models/fillmode.js +1 -0
  40. package/{dist/es → esm2015}/common/models/rounded.js +1 -0
  41. package/{dist/es → esm2015}/common/models/size.js +1 -0
  42. package/{dist/es → esm2015}/common/models/styling-classes.js +1 -0
  43. package/{dist/es → esm2015}/common/models/theme-color.js +1 -0
  44. package/{dist/es → esm2015}/common/models.js +5 -0
  45. package/{dist/es → esm2015}/direction.js +1 -0
  46. package/{dist/es2015 → esm2015}/dropdownbutton/dropdownbutton.component.js +175 -206
  47. package/esm2015/dropdownbutton/dropdownbutton.module.js +32 -0
  48. package/{dist/es2015 → esm2015}/floatingactionbutton/animations/animations.js +0 -0
  49. package/esm2015/floatingactionbutton/dial-item.component.js +127 -0
  50. package/esm2015/floatingactionbutton/dial-list.component.js +90 -0
  51. package/{dist/es2015 → esm2015}/floatingactionbutton/floatingactionbutton.component.js +205 -210
  52. package/{dist/es2015 → esm2015}/floatingactionbutton/floatingactionbutton.module.js +19 -11
  53. package/{dist/es → esm2015}/floatingactionbutton/models/align.js +1 -0
  54. package/{dist/es → esm2015}/floatingactionbutton/models/item-animation.interface.js +1 -0
  55. package/{dist/es → esm2015}/floatingactionbutton/models/item-click.event.js +1 -0
  56. package/{dist/es → esm2015}/floatingactionbutton/models/item.interface.js +1 -0
  57. package/{dist/es → esm2015}/floatingactionbutton/models/offset.js +1 -0
  58. package/{dist/es → esm2015}/floatingactionbutton/models/position-mode.js +1 -0
  59. package/esm2015/floatingactionbutton/templates/dial-item-template.directive.js +27 -0
  60. package/esm2015/floatingactionbutton/templates/fab-template.directive.js +27 -0
  61. package/{dist/es2015 → esm2015}/floatingactionbutton/utils.js +0 -0
  62. package/{dist/es2015 → esm2015}/focusable/focus.service.js +8 -10
  63. package/{dist/es2015 → esm2015}/focusable/focusable.directive.js +15 -16
  64. package/{dist/es2015/listbutton/list.module.d.ts → esm2015/kendo-angular-buttons.js} +2 -3
  65. package/{dist/es2015 → esm2015}/listbutton/button-item-template.directive.js +12 -12
  66. package/{dist/es2015 → esm2015}/listbutton/list-button.js +15 -2
  67. package/{dist/es → esm2015}/listbutton/list-item-model.js +1 -0
  68. package/esm2015/listbutton/list.component.js +140 -0
  69. package/esm2015/listbutton/list.module.js +39 -0
  70. package/{dist/es → esm2015}/listbutton/popup-settings.js +1 -0
  71. package/esm2015/listbutton/template-context.directive.js +34 -0
  72. package/{dist/es2015 → esm2015}/main.js +7 -0
  73. package/{dist/es → esm2015}/navigation/key-events.js +0 -0
  74. package/{dist/es2015 → esm2015}/navigation/navigation-action.js +1 -0
  75. package/{dist/es2015 → esm2015}/navigation/navigation-config.js +0 -0
  76. package/{dist/es2015 → esm2015}/navigation/navigation.service.js +11 -9
  77. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  78. package/{dist/es2015 → esm2015}/preventable-event.js +0 -0
  79. package/esm2015/splitbutton/localization/custom-messages.component.js +37 -0
  80. package/esm2015/splitbutton/localization/localized-messages.directive.js +36 -0
  81. package/esm2015/splitbutton/localization/messages.js +23 -0
  82. package/{dist/es2015 → esm2015}/splitbutton/splitbutton.component.js +216 -207
  83. package/esm2015/splitbutton/splitbutton.module.js +34 -0
  84. package/{dist/es2015 → esm2015}/util.js +7 -7
  85. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-buttons.js} +1843 -1866
  86. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/animations/animations.d.ts +0 -0
  87. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/dial-item.component.d.ts +8 -5
  88. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/dial-list.component.d.ts +5 -2
  89. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/floatingactionbutton.component.d.ts +50 -51
  90. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/floatingactionbutton.module.d.ts +13 -0
  91. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/align.d.ts +0 -0
  92. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/item-animation.interface.d.ts +0 -0
  93. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/item-click.event.d.ts +0 -0
  94. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/item.interface.d.ts +0 -0
  95. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/offset.d.ts +0 -0
  96. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/position-mode.d.ts +0 -0
  97. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/templates/dial-item-template.directive.d.ts +3 -0
  98. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/templates/fab-template.directive.d.ts +3 -0
  99. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/utils.d.ts +0 -0
  100. package/{dist/es2015/focusable → focusable}/focus.service.d.ts +5 -1
  101. package/{dist/es2015/focusable → focusable}/focusable.directive.d.ts +3 -0
  102. package/{dist/es2015/common/models/shape.d.ts → kendo-angular-buttons.d.ts} +3 -3
  103. package/{dist/es2015/listbutton → listbutton}/button-item-template.directive.d.ts +3 -0
  104. package/{dist/es2015/listbutton → listbutton}/list-button.d.ts +6 -2
  105. package/{dist/es2015/listbutton → listbutton}/list-item-model.d.ts +0 -0
  106. package/{dist/es2015/listbutton → listbutton}/list.component.d.ts +4 -1
  107. package/listbutton/list.module.d.ts +18 -0
  108. package/{dist/es2015/listbutton → listbutton}/popup-settings.d.ts +0 -0
  109. package/{dist/es2015/listbutton → listbutton}/template-context.directive.d.ts +4 -1
  110. package/{dist/es2015/main.d.ts → main.d.ts} +7 -1
  111. package/{dist/es2015/navigation → navigation}/key-events.d.ts +0 -0
  112. package/{dist/es2015/navigation → navigation}/navigation-action.d.ts +0 -0
  113. package/{dist/es2015/navigation → navigation}/navigation-config.d.ts +0 -0
  114. package/{dist/es2015/navigation → navigation}/navigation.service.d.ts +3 -0
  115. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  116. package/package.json +38 -113
  117. package/{dist/es2015/preventable-event.d.ts → preventable-event.d.ts} +0 -0
  118. package/schematics/ngAdd/index.js +5 -2
  119. package/schematics/ngAdd/index.js.map +1 -1
  120. package/{dist/es2015/splitbutton → splitbutton}/localization/custom-messages.component.d.ts +4 -1
  121. package/{dist/es2015/splitbutton → splitbutton}/localization/localized-messages.directive.d.ts +3 -0
  122. package/{dist/es2015/splitbutton → splitbutton}/localization/messages.d.ts +3 -0
  123. package/{dist/es2015/splitbutton → splitbutton}/splitbutton.component.d.ts +38 -27
  124. package/splitbutton/splitbutton.module.d.ts +25 -0
  125. package/{dist/es2015/util.d.ts → util.d.ts} +0 -0
  126. package/dist/cdn/js/kendo-angular-buttons.js +0 -20
  127. package/dist/cdn/main.js +0 -5
  128. package/dist/es/button/button.directive.js +0 -775
  129. package/dist/es/button/button.module.js +0 -50
  130. package/dist/es/button/button.service.js +0 -24
  131. package/dist/es/buttongroup/buttongroup.component.js +0 -354
  132. package/dist/es/buttongroup/buttongroup.module.js +0 -30
  133. package/dist/es/chip/chip-content-click-event-args.interface.js +0 -4
  134. package/dist/es/chip/chip-list-remove-event-args.interface.js +0 -4
  135. package/dist/es/chip/chip-list.component.js +0 -214
  136. package/dist/es/chip/chip-remove-event-args.interface.js +0 -4
  137. package/dist/es/chip/chip.component.js +0 -441
  138. package/dist/es/chip/chip.module.js +0 -55
  139. package/dist/es/common/models/shape.js +0 -4
  140. package/dist/es/dropdownbutton/dropdownbutton.component.js +0 -706
  141. package/dist/es/dropdownbutton/dropdownbutton.module.js +0 -32
  142. package/dist/es/floatingactionbutton/animations/animations.js +0 -33
  143. package/dist/es/floatingactionbutton/dial-item.component.js +0 -143
  144. package/dist/es/floatingactionbutton/dial-list.component.js +0 -76
  145. package/dist/es/floatingactionbutton/floatingactionbutton.component.js +0 -903
  146. package/dist/es/floatingactionbutton/floatingactionbutton.module.js +0 -65
  147. package/dist/es/floatingactionbutton/templates/dial-item-template.directive.js +0 -26
  148. package/dist/es/floatingactionbutton/templates/fab-template.directive.js +0 -26
  149. package/dist/es/floatingactionbutton/utils.js +0 -38
  150. package/dist/es/focusable/focus.service.js +0 -43
  151. package/dist/es/focusable/focusable.directive.js +0 -62
  152. package/dist/es/index.js +0 -22
  153. package/dist/es/listbutton/button-item-template.directive.js +0 -68
  154. package/dist/es/listbutton/list-button.js +0 -223
  155. package/dist/es/listbutton/list.component.js +0 -85
  156. package/dist/es/listbutton/list.module.js +0 -33
  157. package/dist/es/listbutton/template-context.directive.js +0 -40
  158. package/dist/es/main.js +0 -22
  159. package/dist/es/navigation/navigation-action.js +0 -19
  160. package/dist/es/navigation/navigation-config.js +0 -9
  161. package/dist/es/navigation/navigation.service.js +0 -114
  162. package/dist/es/package-metadata.js +0 -15
  163. package/dist/es/preventable-event.js +0 -29
  164. package/dist/es/splitbutton/localization/custom-messages.component.js +0 -44
  165. package/dist/es/splitbutton/localization/localized-messages.directive.js +0 -35
  166. package/dist/es/splitbutton/localization/messages.js +0 -22
  167. package/dist/es/splitbutton/splitbutton.component.js +0 -833
  168. package/dist/es/splitbutton/splitbutton.module.js +0 -34
  169. package/dist/es/util.js +0 -108
  170. package/dist/es2015/button/selection-settings.js +0 -4
  171. package/dist/es2015/buttongroup/buttongroup.module.js +0 -27
  172. package/dist/es2015/buttons.module.js +0 -51
  173. package/dist/es2015/chip/models/selection.js +0 -4
  174. package/dist/es2015/common/models/fillmode.js +0 -4
  175. package/dist/es2015/common/models/rounded.js +0 -4
  176. package/dist/es2015/common/models/shape.js +0 -4
  177. package/dist/es2015/common/models/size.js +0 -4
  178. package/dist/es2015/common/models/styling-classes.js +0 -4
  179. package/dist/es2015/common/models/theme-color.js +0 -4
  180. package/dist/es2015/common/models.js +0 -4
  181. package/dist/es2015/direction.js +0 -4
  182. package/dist/es2015/dropdownbutton/dropdownbutton.module.d.ts +0 -14
  183. package/dist/es2015/dropdownbutton/dropdownbutton.module.js +0 -29
  184. package/dist/es2015/floatingactionbutton/dial-item.component.js +0 -133
  185. package/dist/es2015/floatingactionbutton/dial-list.component.js +0 -81
  186. package/dist/es2015/floatingactionbutton/models/align.js +0 -4
  187. package/dist/es2015/floatingactionbutton/models/item-animation.interface.js +0 -4
  188. package/dist/es2015/floatingactionbutton/models/item-click.event.js +0 -4
  189. package/dist/es2015/floatingactionbutton/models/item.interface.js +0 -4
  190. package/dist/es2015/floatingactionbutton/models/offset.js +0 -4
  191. package/dist/es2015/floatingactionbutton/models/position-mode.js +0 -4
  192. package/dist/es2015/floatingactionbutton/templates/dial-item-template.directive.js +0 -25
  193. package/dist/es2015/floatingactionbutton/templates/fab-template.directive.js +0 -25
  194. package/dist/es2015/index.d.ts +0 -22
  195. package/dist/es2015/index.js +0 -22
  196. package/dist/es2015/index.metadata.json +0 -1
  197. package/dist/es2015/listbutton/list-item-model.js +0 -4
  198. package/dist/es2015/listbutton/list.component.js +0 -115
  199. package/dist/es2015/listbutton/list.module.js +0 -30
  200. package/dist/es2015/listbutton/popup-settings.js +0 -4
  201. package/dist/es2015/listbutton/template-context.directive.js +0 -35
  202. package/dist/es2015/navigation/key-events.js +0 -13
  203. package/dist/es2015/splitbutton/localization/custom-messages.component.js +0 -36
  204. package/dist/es2015/splitbutton/localization/localized-messages.directive.js +0 -31
  205. package/dist/es2015/splitbutton/localization/messages.js +0 -16
  206. package/dist/es2015/splitbutton/splitbutton.module.d.ts +0 -14
  207. package/dist/es2015/splitbutton/splitbutton.module.js +0 -31
  208. package/dist/fesm5/index.js +0 -5544
  209. package/dist/npm/button/button.directive.js +0 -777
  210. package/dist/npm/button/button.module.js +0 -52
  211. package/dist/npm/button/button.service.js +0 -26
  212. package/dist/npm/button/selection-settings.js +0 -6
  213. package/dist/npm/buttongroup/buttongroup.component.js +0 -356
  214. package/dist/npm/buttongroup/buttongroup.module.js +0 -32
  215. package/dist/npm/buttons.module.js +0 -56
  216. package/dist/npm/chip/chip-content-click-event-args.interface.js +0 -6
  217. package/dist/npm/chip/chip-list-remove-event-args.interface.js +0 -6
  218. package/dist/npm/chip/chip-list.component.js +0 -216
  219. package/dist/npm/chip/chip-remove-event-args.interface.js +0 -6
  220. package/dist/npm/chip/chip.component.js +0 -443
  221. package/dist/npm/chip/chip.module.js +0 -57
  222. package/dist/npm/chip/models/selection.js +0 -6
  223. package/dist/npm/common/models/fillmode.js +0 -6
  224. package/dist/npm/common/models/rounded.js +0 -6
  225. package/dist/npm/common/models/shape.js +0 -6
  226. package/dist/npm/common/models/size.js +0 -6
  227. package/dist/npm/common/models/styling-classes.js +0 -6
  228. package/dist/npm/common/models/theme-color.js +0 -6
  229. package/dist/npm/common/models.js +0 -6
  230. package/dist/npm/direction.js +0 -6
  231. package/dist/npm/dropdownbutton/dropdownbutton.component.js +0 -708
  232. package/dist/npm/dropdownbutton/dropdownbutton.module.js +0 -34
  233. package/dist/npm/floatingactionbutton/animations/animations.js +0 -37
  234. package/dist/npm/floatingactionbutton/dial-item.component.js +0 -145
  235. package/dist/npm/floatingactionbutton/dial-list.component.js +0 -78
  236. package/dist/npm/floatingactionbutton/floatingactionbutton.component.js +0 -905
  237. package/dist/npm/floatingactionbutton/floatingactionbutton.module.js +0 -67
  238. package/dist/npm/floatingactionbutton/models/align.js +0 -6
  239. package/dist/npm/floatingactionbutton/models/item-animation.interface.js +0 -6
  240. package/dist/npm/floatingactionbutton/models/item-click.event.js +0 -6
  241. package/dist/npm/floatingactionbutton/models/item.interface.js +0 -6
  242. package/dist/npm/floatingactionbutton/models/offset.js +0 -6
  243. package/dist/npm/floatingactionbutton/models/position-mode.js +0 -6
  244. package/dist/npm/floatingactionbutton/templates/dial-item-template.directive.js +0 -28
  245. package/dist/npm/floatingactionbutton/templates/fab-template.directive.js +0 -28
  246. package/dist/npm/floatingactionbutton/utils.js +0 -42
  247. package/dist/npm/focusable/focus.service.js +0 -45
  248. package/dist/npm/focusable/focusable.directive.js +0 -64
  249. package/dist/npm/index.js +0 -39
  250. package/dist/npm/listbutton/button-item-template.directive.js +0 -70
  251. package/dist/npm/listbutton/list-button.js +0 -225
  252. package/dist/npm/listbutton/list-item-model.js +0 -6
  253. package/dist/npm/listbutton/list.component.js +0 -87
  254. package/dist/npm/listbutton/list.module.js +0 -35
  255. package/dist/npm/listbutton/popup-settings.js +0 -6
  256. package/dist/npm/listbutton/template-context.directive.js +0 -42
  257. package/dist/npm/main.js +0 -45
  258. package/dist/npm/navigation/key-events.js +0 -15
  259. package/dist/npm/navigation/navigation-action.js +0 -21
  260. package/dist/npm/navigation/navigation-config.js +0 -11
  261. package/dist/npm/navigation/navigation.service.js +0 -116
  262. package/dist/npm/package-metadata.js +0 -17
  263. package/dist/npm/preventable-event.js +0 -31
  264. package/dist/npm/splitbutton/localization/custom-messages.component.js +0 -46
  265. package/dist/npm/splitbutton/localization/localized-messages.directive.js +0 -37
  266. package/dist/npm/splitbutton/localization/messages.js +0 -24
  267. package/dist/npm/splitbutton/splitbutton.component.js +0 -835
  268. package/dist/npm/splitbutton/splitbutton.module.js +0 -36
  269. package/dist/npm/util.js +0 -111
  270. package/dist/systemjs/kendo-angular-buttons.js +0 -5
@@ -2,36 +2,22 @@
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, Subscription, fromEvent, merge } 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 { isDocumentAvailable, Keys, isChanged, 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';
11
+ import { Subject, Subscription, fromEvent, merge } from 'rxjs';
10
12
  import { validatePackage } from '@progress/kendo-licensing';
11
13
  import { detectDesktopBrowser, detectMobileOS } from '@progress/kendo-common';
14
+ import * as i2 from '@angular/common';
12
15
  import { CommonModule } from '@angular/common';
13
- import { PopupService, PopupModule } from '@progress/kendo-angular-popup';
16
+ import * as i3 from '@progress/kendo-angular-popup';
17
+ import { PopupModule } from '@progress/kendo-angular-popup';
14
18
  import { filter, take } from 'rxjs/operators';
15
- import { sequence, query, style, stagger, animate, AnimationBuilder } from '@angular/animations';
16
-
17
- /**
18
- * @hidden
19
- */
20
- let KendoButtonService = class KendoButtonService {
21
- /**
22
- * @hidden
23
- */
24
- constructor() {
25
- this.buttonClicked = new Subject();
26
- this.buttonClicked$ = this.buttonClicked.asObservable();
27
- }
28
- click(button) {
29
- this.buttonClicked.next(button);
30
- }
31
- };
32
- KendoButtonService = __decorate([
33
- Injectable()
34
- ], KendoButtonService);
19
+ import * as i4 from '@angular/animations';
20
+ import { sequence, query, style, stagger, animate } from '@angular/animations';
35
21
 
36
22
  /**
37
23
  * @hidden
@@ -40,12 +26,14 @@ const packageMetadata = {
40
26
  name: '@progress/kendo-angular-buttons',
41
27
  productName: 'Kendo UI for Angular',
42
28
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
43
- publishDate: 1649694226,
29
+ publishDate: 1649863768,
44
30
  version: '',
45
31
  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'
46
32
  };
47
33
 
48
- /* tslint:disable:no-null-keyword */
34
+ /**
35
+ * @hidden
36
+ */
49
37
  const resolvedPromise = Promise.resolve(null);
50
38
  /**
51
39
  * @hidden
@@ -107,18 +95,17 @@ const getStylingClasses = (componentType, stylingOption, previousValue, newValue
107
95
  case 'size':
108
96
  return {
109
97
  toRemove: `k-${componentType}-${SIZES[previousValue]}`,
110
- toAdd: newValue ? `k-${componentType}-${SIZES[newValue]}` : null
98
+ toAdd: newValue !== 'none' ? `k-${componentType}-${SIZES[newValue]}` : ''
111
99
  };
112
100
  case 'rounded':
113
101
  return {
114
102
  toRemove: `k-rounded-${ROUNDNESS[previousValue]}`,
115
- toAdd: newValue ? `k-rounded-${ROUNDNESS[newValue]}` : null
103
+ toAdd: newValue !== 'none' ? `k-rounded-${ROUNDNESS[newValue]}` : ''
116
104
  };
117
105
  case 'fillMode':
118
- case 'shape':
119
106
  return {
120
107
  toRemove: `k-${componentType}-${previousValue}`,
121
- toAdd: newValue ? `k-${componentType}-${newValue}` : null
108
+ toAdd: newValue !== 'none' ? `k-${componentType}-${newValue}` : ''
122
109
  };
123
110
  default:
124
111
  break;
@@ -132,7 +119,7 @@ const getStylingClasses = (componentType, stylingOption, previousValue, newValue
132
119
  const getThemeColorClasses = (componentType, prevFillMode, fillMode, previousValue, newValue) => {
133
120
  return {
134
121
  toRemove: `k-${componentType}-${prevFillMode}-${previousValue}`,
135
- toAdd: newValue ? `k-${componentType}-${fillMode}-${newValue}` : null
122
+ toAdd: newValue !== 'none' ? `k-${componentType}-${fillMode}-${newValue}` : ''
136
123
  };
137
124
  };
138
125
  /**
@@ -146,11 +133,33 @@ const isFirefox = (userAgent) => {
146
133
  return (desktopBrowser && desktopBrowser.mozilla) || (mobileOS && mobileOS.browser === 'firefox');
147
134
  };
148
135
 
136
+ /**
137
+ * @hidden
138
+ */
139
+ class KendoButtonService {
140
+ constructor() {
141
+ this.buttonClicked = new Subject();
142
+ this.buttonClicked$ = this.buttonClicked.asObservable();
143
+ }
144
+ click(button) {
145
+ this.buttonClicked.next(button);
146
+ }
147
+ }
148
+ KendoButtonService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KendoButtonService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
149
+ KendoButtonService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KendoButtonService });
150
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KendoButtonService, decorators: [{
151
+ type: Injectable
152
+ }] });
153
+
149
154
  const SPAN_TAG_NAME = 'SPAN';
155
+ const DEFAULT_ROUNDED$2 = 'medium';
156
+ const DEFAULT_SIZE$1 = 'medium';
157
+ const DEFAULT_THEME_COLOR$1 = 'base';
158
+ const DEFAULT_FILL_MODE$2 = 'solid';
150
159
  /**
151
160
  * Represents the Kendo UI Button component for Angular.
152
161
  */
153
- let ButtonDirective = class ButtonDirective {
162
+ class ButtonDirective {
154
163
  constructor(element, renderer, service, localization, ngZone) {
155
164
  this.service = service;
156
165
  this.ngZone = ngZone;
@@ -176,11 +185,10 @@ let ButtonDirective = class ButtonDirective {
176
185
  this.isDisabled = false;
177
186
  this.isIcon = false;
178
187
  this.isIconClass = false;
179
- this._size = 'medium';
180
- this._rounded = 'medium';
181
- this._shape = 'rectangle';
182
- this._fillMode = 'solid';
183
- this._themeColor = 'base';
188
+ this._size = DEFAULT_SIZE$1;
189
+ this._rounded = DEFAULT_ROUNDED$2;
190
+ this._fillMode = DEFAULT_FILL_MODE$2;
191
+ this._themeColor = DEFAULT_THEME_COLOR$1;
184
192
  this._focused = false;
185
193
  this.subs = new Subscription();
186
194
  validatePackage(packageMetadata);
@@ -286,14 +294,15 @@ let ButtonDirective = class ButtonDirective {
286
294
  * ([see example]({% slug appearance_button %}#toc-size)).
287
295
  *
288
296
  * The possible values are:
289
- * * `'small'`
290
- * * `'medium'` (default)
291
- * * `'large'`
292
- * * `null`
297
+ * * `small`
298
+ * * `medium` (default)
299
+ * * `large`
300
+ * * `none`
293
301
  */
294
302
  set size(size) {
295
- this.handleClasses(size, 'size');
296
- this._size = size;
303
+ const newSize = size ? size : DEFAULT_SIZE$1;
304
+ this.handleClasses(newSize, 'size');
305
+ this._size = newSize;
297
306
  }
298
307
  get size() {
299
308
  return this._size;
@@ -303,15 +312,16 @@ let ButtonDirective = class ButtonDirective {
303
312
  * ([see example]({% slug appearance_button %}#toc-rounded)).
304
313
  *
305
314
  * The possible values are:
306
- * * `'small'`
307
- * * `'medium'` (default)
308
- * * `'large'`
309
- * * `'full'`
310
- * * `null`
315
+ * * `small`
316
+ * * `medium` (default)
317
+ * * `large`
318
+ * * `full`
319
+ * * `none`
311
320
  */
312
321
  set rounded(rounded) {
313
- this.handleClasses(rounded, 'rounded');
314
- this._rounded = rounded;
322
+ const newRounded = rounded ? rounded : DEFAULT_ROUNDED$2;
323
+ this.handleClasses(newRounded, 'rounded');
324
+ this._rounded = newRounded;
315
325
  }
316
326
  get rounded() {
317
327
  return this._rounded;
@@ -321,16 +331,17 @@ let ButtonDirective = class ButtonDirective {
321
331
  * ([see example]({% slug appearance_button %}#toc-fillMode)).
322
332
  *
323
333
  * The possible values are:
324
- * * `'flat'`
325
- * * `'solid'` (default)
326
- * * `'outline'`
327
- * * `'clear'`
328
- * * `'link'`
329
- * * `null`
334
+ * * `flat`
335
+ * * `solid` (default)
336
+ * * `outline`
337
+ * * `clear`
338
+ * * `link`
339
+ * * `none`
330
340
  */
331
341
  set fillMode(fillMode) {
332
- this.handleClasses(fillMode, 'fillMode');
333
- this._fillMode = fillMode;
342
+ const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE$2;
343
+ this.handleClasses(newFillMode, 'fillMode');
344
+ this._fillMode = newFillMode;
334
345
  }
335
346
  get fillMode() {
336
347
  return this._fillMode;
@@ -341,40 +352,27 @@ let ButtonDirective = class ButtonDirective {
341
352
  * ([see example]({% slug appearance_button %}#toc-themeColor)).
342
353
  *
343
354
  * The possible values are:
344
- * * `'base'` (default)
345
- * * `'primary'`
346
- * * `'secondary'`
347
- * * `'tertiary'`
348
- * * `'info'`
349
- * * `'success'`
350
- * * `'warning'`
351
- * * `'error'`
352
- * * `'dark'`
353
- * * `'light`'
354
- * * `'inverse'`
355
+ * * `base` (default)
356
+ * * `primary`
357
+ * * `secondary`
358
+ * * `tertiary`
359
+ * * `info`
360
+ * * `success`
361
+ * * `warning`
362
+ * * `error`
363
+ * * `dark`
364
+ * * `light`
365
+ * * `inverse`
366
+ * * `none`
355
367
  */
356
368
  set themeColor(themeColor) {
357
- this.handleThemeColor(themeColor);
358
- this._themeColor = themeColor;
369
+ const newThemeColor = themeColor ? themeColor : DEFAULT_THEME_COLOR$1;
370
+ this.handleThemeColor(newThemeColor);
371
+ this._themeColor = newThemeColor;
359
372
  }
360
373
  get themeColor() {
361
374
  return this._themeColor;
362
375
  }
363
- /**
364
- * The shape property specifies if the Button will form a rectangle or square.
365
- * ([see example]({% slug appearance_button %}#toc-shape)).
366
- *
367
- * The possible values are:
368
- * * `'square'`
369
- * * `'rectangle'` (default)
370
- */
371
- set shape(shape) {
372
- this.handleClasses(shape, 'shape');
373
- this._shape = shape;
374
- }
375
- get shape() {
376
- return this._shape;
377
- }
378
376
  set isFocused(isFocused) {
379
377
  this.toggleClass('k-focus', isFocused);
380
378
  this._focused = isFocused;
@@ -457,7 +455,7 @@ let ButtonDirective = class ButtonDirective {
457
455
  }
458
456
  }
459
457
  ngAfterViewInit() {
460
- const stylingOptions = ['size', 'rounded', 'shape', 'fillMode'];
458
+ const stylingOptions = ['size', 'rounded', 'fillMode'];
461
459
  stylingOptions.forEach(input => {
462
460
  this.handleClasses(this[input], input);
463
461
  });
@@ -654,161 +652,98 @@ let ButtonDirective = class ButtonDirective {
654
652
  const addFillMode = fillMode ? fillMode : this.fillMode;
655
653
  const themeColorClass = getThemeColorClasses('button', removeFillMode, addFillMode, this.themeColor, value);
656
654
  this.renderer.removeClass(elem, themeColorClass.toRemove);
657
- if (addFillMode !== null && fillMode !== null) {
655
+ if (addFillMode !== 'none' && fillMode !== 'none') {
658
656
  if (themeColorClass.toAdd) {
659
657
  this.renderer.addClass(elem, themeColorClass.toAdd);
660
658
  }
661
659
  }
662
660
  }
663
- };
664
- __decorate([
665
- Input(),
666
- __metadata("design:type", Boolean)
667
- ], ButtonDirective.prototype, "toggleable", void 0);
668
- __decorate([
669
- Input(),
670
- __metadata("design:type", Boolean),
671
- __metadata("design:paramtypes", [Boolean])
672
- ], ButtonDirective.prototype, "togglable", null);
673
- __decorate([
674
- Input(),
675
- __metadata("design:type", Boolean),
676
- __metadata("design:paramtypes", [Boolean])
677
- ], ButtonDirective.prototype, "selected", null);
678
- __decorate([
679
- Input(),
680
- __metadata("design:type", Number),
681
- __metadata("design:paramtypes", [Number])
682
- ], ButtonDirective.prototype, "tabIndex", null);
683
- __decorate([
684
- Input(),
685
- __metadata("design:type", String),
686
- __metadata("design:paramtypes", [String])
687
- ], ButtonDirective.prototype, "icon", null);
688
- __decorate([
689
- Input(),
690
- __metadata("design:type", String),
691
- __metadata("design:paramtypes", [String])
692
- ], ButtonDirective.prototype, "iconClass", null);
693
- __decorate([
694
- Input(),
695
- __metadata("design:type", String),
696
- __metadata("design:paramtypes", [String])
697
- ], ButtonDirective.prototype, "imageUrl", null);
698
- __decorate([
699
- Input(),
700
- __metadata("design:type", Boolean),
701
- __metadata("design:paramtypes", [Boolean])
702
- ], ButtonDirective.prototype, "disabled", null);
703
- __decorate([
704
- Input(),
705
- __metadata("design:type", String),
706
- __metadata("design:paramtypes", [String])
707
- ], ButtonDirective.prototype, "size", null);
708
- __decorate([
709
- Input(),
710
- __metadata("design:type", String),
711
- __metadata("design:paramtypes", [String])
712
- ], ButtonDirective.prototype, "rounded", null);
713
- __decorate([
714
- Input(),
715
- __metadata("design:type", String),
716
- __metadata("design:paramtypes", [String])
717
- ], ButtonDirective.prototype, "fillMode", null);
718
- __decorate([
719
- Input(),
720
- __metadata("design:type", String),
721
- __metadata("design:paramtypes", [String])
722
- ], ButtonDirective.prototype, "themeColor", null);
723
- __decorate([
724
- Input(),
725
- __metadata("design:type", String),
726
- __metadata("design:paramtypes", [String])
727
- ], ButtonDirective.prototype, "shape", null);
728
- __decorate([
729
- Input(),
730
- __metadata("design:type", String)
731
- ], ButtonDirective.prototype, "role", void 0);
732
- __decorate([
733
- Output(),
734
- __metadata("design:type", EventEmitter)
735
- ], ButtonDirective.prototype, "selectedChange", void 0);
736
- __decorate([
737
- Output(),
738
- __metadata("design:type", EventEmitter)
739
- ], ButtonDirective.prototype, "click", void 0);
740
- __decorate([
741
- HostBinding('class.k-button'),
742
- __metadata("design:type", Boolean),
743
- __metadata("design:paramtypes", [])
744
- ], ButtonDirective.prototype, "classButton", null);
745
- __decorate([
746
- HostBinding('class.k-toggle-button'),
747
- __metadata("design:type", Boolean),
748
- __metadata("design:paramtypes", [])
749
- ], ButtonDirective.prototype, "isToggleable", null);
750
- __decorate([
751
- HostBinding('attr.role'),
752
- __metadata("design:type", String),
753
- __metadata("design:paramtypes", [])
754
- ], ButtonDirective.prototype, "roleSetter", null);
755
- __decorate([
756
- HostBinding('attr.aria-disabled'),
757
- HostBinding('class.k-disabled'),
758
- __metadata("design:type", Boolean),
759
- __metadata("design:paramtypes", [])
760
- ], ButtonDirective.prototype, "classDisabled", null);
761
- __decorate([
762
- HostBinding('class.k-selected'),
763
- __metadata("design:type", Boolean),
764
- __metadata("design:paramtypes", [])
765
- ], ButtonDirective.prototype, "classActive", null);
766
- __decorate([
767
- HostBinding('attr.dir'),
768
- __metadata("design:type", String),
769
- __metadata("design:paramtypes", [])
770
- ], ButtonDirective.prototype, "getDirection", null);
771
- __decorate([
772
- HostListener('focus'),
773
- __metadata("design:type", Function),
774
- __metadata("design:paramtypes", []),
775
- __metadata("design:returntype", void 0)
776
- ], ButtonDirective.prototype, "onFocus", null);
777
- __decorate([
778
- HostListener('blur'),
779
- __metadata("design:type", Function),
780
- __metadata("design:paramtypes", []),
781
- __metadata("design:returntype", void 0)
782
- ], ButtonDirective.prototype, "onBlur", null);
783
- __decorate([
784
- Input(),
785
- __metadata("design:type", Boolean),
786
- __metadata("design:paramtypes", [Boolean])
787
- ], ButtonDirective.prototype, "primary", null);
788
- __decorate([
789
- Input(),
790
- __metadata("design:type", String),
791
- __metadata("design:paramtypes", [String])
792
- ], ButtonDirective.prototype, "look", null);
793
- ButtonDirective = __decorate([
794
- Directive({
795
- exportAs: 'kendoButton',
796
- providers: [
797
- LocalizationService,
798
- {
799
- provide: L10N_PREFIX,
800
- useValue: 'kendo.button'
801
- }
802
- ],
803
- selector: 'button[kendoButton], span[kendoButton]',
804
- }),
805
- __param(2, Optional()),
806
- __metadata("design:paramtypes", [ElementRef,
807
- Renderer2,
808
- KendoButtonService,
661
+ }
662
+ 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 });
663
+ 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", 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: [
809
664
  LocalizationService,
810
- NgZone])
811
- ], ButtonDirective);
665
+ {
666
+ provide: L10N_PREFIX,
667
+ useValue: 'kendo.button'
668
+ }
669
+ ], exportAs: ["kendoButton"], usesOnChanges: true, ngImport: i0 });
670
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonDirective, decorators: [{
671
+ type: Directive,
672
+ args: [{
673
+ exportAs: 'kendoButton',
674
+ providers: [
675
+ LocalizationService,
676
+ {
677
+ provide: L10N_PREFIX,
678
+ useValue: 'kendo.button'
679
+ }
680
+ ],
681
+ selector: 'button[kendoButton], span[kendoButton]' // eslint-disable-line
682
+ }]
683
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: KendoButtonService, decorators: [{
684
+ type: Optional
685
+ }] }, { type: i1.LocalizationService }, { type: i0.NgZone }]; }, propDecorators: { toggleable: [{
686
+ type: Input
687
+ }], togglable: [{
688
+ type: Input
689
+ }], selected: [{
690
+ type: Input
691
+ }], tabIndex: [{
692
+ type: Input
693
+ }], icon: [{
694
+ type: Input
695
+ }], iconClass: [{
696
+ type: Input
697
+ }], imageUrl: [{
698
+ type: Input
699
+ }], disabled: [{
700
+ type: Input
701
+ }], size: [{
702
+ type: Input
703
+ }], rounded: [{
704
+ type: Input
705
+ }], fillMode: [{
706
+ type: Input
707
+ }], themeColor: [{
708
+ type: Input
709
+ }], role: [{
710
+ type: Input
711
+ }], selectedChange: [{
712
+ type: Output
713
+ }], click: [{
714
+ type: Output
715
+ }], classButton: [{
716
+ type: HostBinding,
717
+ args: ['class.k-button']
718
+ }], isToggleable: [{
719
+ type: HostBinding,
720
+ args: ['class.k-toggle-button']
721
+ }], roleSetter: [{
722
+ type: HostBinding,
723
+ args: ['attr.role']
724
+ }], classDisabled: [{
725
+ type: HostBinding,
726
+ args: ['attr.aria-disabled']
727
+ }, {
728
+ type: HostBinding,
729
+ args: ['class.k-disabled']
730
+ }], classActive: [{
731
+ type: HostBinding,
732
+ args: ['class.k-selected']
733
+ }], getDirection: [{
734
+ type: HostBinding,
735
+ args: ['attr.dir']
736
+ }], onFocus: [{
737
+ type: HostListener,
738
+ args: ['focus']
739
+ }], onBlur: [{
740
+ type: HostListener,
741
+ args: ['blur']
742
+ }], primary: [{
743
+ type: Input
744
+ }], look: [{
745
+ type: Input
746
+ }] } });
812
747
 
813
748
  /**
814
749
  * @hidden
@@ -841,7 +776,7 @@ const tabindex = 'tabindex';
841
776
  /**
842
777
  * Represents the Kendo UI ButtonGroup component for Angular.
843
778
  */
844
- let ButtonGroupComponent = class ButtonGroupComponent {
779
+ class ButtonGroupComponent {
845
780
  constructor(service, localization, element) {
846
781
  this.service = service;
847
782
  this.element = element;
@@ -1027,110 +962,85 @@ let ButtonGroupComponent = class ButtonGroupComponent {
1027
962
  isSelectionSingle() {
1028
963
  return this.selection === 'single';
1029
964
  }
1030
- };
1031
- __decorate([
1032
- Input('disabled'),
1033
- __metadata("design:type", Boolean)
1034
- ], ButtonGroupComponent.prototype, "disabled", void 0);
1035
- __decorate([
1036
- Input('selection'),
1037
- __metadata("design:type", String)
1038
- ], ButtonGroupComponent.prototype, "selection", void 0);
1039
- __decorate([
1040
- Input('width'),
1041
- __metadata("design:type", String)
1042
- ], ButtonGroupComponent.prototype, "width", void 0);
1043
- __decorate([
1044
- Input(),
1045
- __metadata("design:type", Number),
1046
- __metadata("design:paramtypes", [Number])
1047
- ], ButtonGroupComponent.prototype, "tabIndex", null);
1048
- __decorate([
1049
- Output(),
1050
- __metadata("design:type", EventEmitter)
1051
- ], ButtonGroupComponent.prototype, "navigate", void 0);
1052
- __decorate([
1053
- ContentChildren(ButtonDirective),
1054
- __metadata("design:type", QueryList)
1055
- ], ButtonGroupComponent.prototype, "buttons", void 0);
1056
- __decorate([
1057
- HostBinding('class.k-button-group'),
1058
- __metadata("design:type", Boolean),
1059
- __metadata("design:paramtypes", [])
1060
- ], ButtonGroupComponent.prototype, "wrapperClass", null);
1061
- __decorate([
1062
- HostBinding('class.k-disabled'),
1063
- __metadata("design:type", Boolean),
1064
- __metadata("design:paramtypes", [])
1065
- ], ButtonGroupComponent.prototype, "disabledClass", null);
1066
- __decorate([
1067
- HostBinding('class.k-button-group-stretched'),
1068
- __metadata("design:type", Boolean),
1069
- __metadata("design:paramtypes", [])
1070
- ], ButtonGroupComponent.prototype, "stretchedClass", null);
1071
- __decorate([
1072
- HostBinding('attr.role'),
1073
- __metadata("design:type", String),
1074
- __metadata("design:paramtypes", [])
1075
- ], ButtonGroupComponent.prototype, "getRole", null);
1076
- __decorate([
1077
- HostBinding('attr.dir'),
1078
- __metadata("design:type", String),
1079
- __metadata("design:paramtypes", [])
1080
- ], ButtonGroupComponent.prototype, "dir", null);
1081
- __decorate([
1082
- HostBinding('attr.aria-disabled'),
1083
- __metadata("design:type", Boolean),
1084
- __metadata("design:paramtypes", [])
1085
- ], ButtonGroupComponent.prototype, "ariaDisabled", null);
1086
- __decorate([
1087
- HostBinding('style.width'),
1088
- __metadata("design:type", String),
1089
- __metadata("design:paramtypes", [])
1090
- ], ButtonGroupComponent.prototype, "wrapperWidth", null);
1091
- __decorate([
1092
- HostBinding('attr.tabindex'),
1093
- __metadata("design:type", Number),
1094
- __metadata("design:paramtypes", [])
1095
- ], ButtonGroupComponent.prototype, "wrapperTabIndex", null);
1096
- __decorate([
1097
- HostListener('keydown', ['$event']),
1098
- __metadata("design:type", Function),
1099
- __metadata("design:paramtypes", [Object]),
1100
- __metadata("design:returntype", void 0)
1101
- ], ButtonGroupComponent.prototype, "keydown", null);
1102
- __decorate([
1103
- HostListener('focus'),
1104
- __metadata("design:type", Function),
1105
- __metadata("design:paramtypes", []),
1106
- __metadata("design:returntype", void 0)
1107
- ], ButtonGroupComponent.prototype, "onFocus", null);
1108
- __decorate([
1109
- HostListener('focusout', ['$event']),
1110
- __metadata("design:type", Function),
1111
- __metadata("design:paramtypes", [Object]),
1112
- __metadata("design:returntype", void 0)
1113
- ], ButtonGroupComponent.prototype, "focusout", null);
1114
- ButtonGroupComponent = __decorate([
1115
- Component({
1116
- exportAs: 'kendoButtonGroup',
1117
- providers: [
1118
- KendoButtonService,
1119
- LocalizationService,
1120
- {
1121
- provide: L10N_PREFIX,
1122
- useValue: 'kendo.buttongroup'
1123
- }
1124
- ],
1125
- selector: 'kendo-buttongroup',
1126
- template: `
965
+ }
966
+ 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 });
967
+ 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: [
968
+ KendoButtonService,
969
+ LocalizationService,
970
+ {
971
+ provide: L10N_PREFIX,
972
+ useValue: 'kendo.buttongroup'
973
+ }
974
+ ], queries: [{ propertyName: "buttons", predicate: ButtonDirective }], exportAs: ["kendoButtonGroup"], usesOnChanges: true, ngImport: i0, template: `
975
+ <ng-content select="[kendoButton]"></ng-content>
976
+ `, isInline: true });
977
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonGroupComponent, decorators: [{
978
+ type: Component,
979
+ args: [{
980
+ exportAs: 'kendoButtonGroup',
981
+ providers: [
982
+ KendoButtonService,
983
+ LocalizationService,
984
+ {
985
+ provide: L10N_PREFIX,
986
+ useValue: 'kendo.buttongroup'
987
+ }
988
+ ],
989
+ selector: 'kendo-buttongroup',
990
+ template: `
1127
991
  <ng-content select="[kendoButton]"></ng-content>
1128
992
  `
1129
- }),
1130
- __metadata("design:paramtypes", [KendoButtonService,
1131
- LocalizationService,
1132
- ElementRef])
1133
- ], ButtonGroupComponent);
993
+ }]
994
+ }], ctorParameters: function () { return [{ type: KendoButtonService }, { type: i1.LocalizationService }, { type: i0.ElementRef }]; }, propDecorators: { disabled: [{
995
+ type: Input,
996
+ args: ['disabled']
997
+ }], selection: [{
998
+ type: Input,
999
+ args: ['selection']
1000
+ }], width: [{
1001
+ type: Input,
1002
+ args: ['width']
1003
+ }], tabIndex: [{
1004
+ type: Input
1005
+ }], navigate: [{
1006
+ type: Output
1007
+ }], buttons: [{
1008
+ type: ContentChildren,
1009
+ args: [ButtonDirective]
1010
+ }], wrapperClass: [{
1011
+ type: HostBinding,
1012
+ args: ['class.k-button-group']
1013
+ }], disabledClass: [{
1014
+ type: HostBinding,
1015
+ args: ['class.k-disabled']
1016
+ }], stretchedClass: [{
1017
+ type: HostBinding,
1018
+ args: ['class.k-button-group-stretched']
1019
+ }], getRole: [{
1020
+ type: HostBinding,
1021
+ args: ['attr.role']
1022
+ }], dir: [{
1023
+ type: HostBinding,
1024
+ args: ['attr.dir']
1025
+ }], ariaDisabled: [{
1026
+ type: HostBinding,
1027
+ args: ['attr.aria-disabled']
1028
+ }], wrapperWidth: [{
1029
+ type: HostBinding,
1030
+ args: ['style.width']
1031
+ }], wrapperTabIndex: [{
1032
+ type: HostBinding,
1033
+ args: ['attr.tabindex']
1034
+ }], keydown: [{
1035
+ type: HostListener,
1036
+ args: ['keydown', ['$event']]
1037
+ }], onFocus: [{
1038
+ type: HostListener,
1039
+ args: ['focus']
1040
+ }], focusout: [{
1041
+ type: HostListener,
1042
+ args: ['focusout', ['$event']]
1043
+ }] } });
1134
1044
 
1135
1045
  /**
1136
1046
  * Represents the [NgModule]({{ site.data.urls.angular['ngmodules'] }})
@@ -1163,14 +1073,18 @@ ButtonGroupComponent = __decorate([
1163
1073
  *
1164
1074
  * ```
1165
1075
  */
1166
- let ButtonModule = class ButtonModule {
1167
- };
1168
- ButtonModule = __decorate([
1169
- NgModule({
1170
- declarations: [ButtonDirective],
1171
- exports: [ButtonDirective]
1172
- })
1173
- ], ButtonModule);
1076
+ class ButtonModule {
1077
+ }
1078
+ ButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1079
+ ButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonModule, declarations: [ButtonDirective], exports: [ButtonDirective] });
1080
+ ButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonModule });
1081
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonModule, decorators: [{
1082
+ type: NgModule,
1083
+ args: [{
1084
+ declarations: [ButtonDirective],
1085
+ exports: [ButtonDirective]
1086
+ }]
1087
+ }] });
1174
1088
 
1175
1089
  /**
1176
1090
  * @hidden
@@ -1180,188 +1094,24 @@ ButtonModule = __decorate([
1180
1094
  * The package exports:
1181
1095
  * - `ButtonGroupComponent`&mdash;The ButtonGroupComponent component class.
1182
1096
  */
1183
- let ButtonGroupModule = class ButtonGroupModule {
1184
- };
1185
- ButtonGroupModule = __decorate([
1186
- NgModule({
1187
- declarations: [ButtonGroupComponent],
1188
- exports: [ButtonGroupComponent],
1189
- imports: [CommonModule, ButtonModule]
1190
- })
1191
- ], ButtonGroupModule);
1192
-
1193
- /**
1194
- * Used for rendering the list item content.
1195
- *
1196
- * To define the item template, nest a `<ng-template>` tag with the `kendo<ComponentName>ItemTemplate` directive inside the component tag.
1197
- *
1198
- * For the DropDownButton, use the `kendoDropDownButtonItemTemplate` directive.
1199
- * For the SplitButton, use the `kendoSplitButtonItemTemplate` directive.
1200
- *
1201
- * The template context is set to the current component. To get a reference to the current data item, use the `let-dataItem` directive.
1202
- *
1203
- * @example
1204
- * ```ts
1205
- * _@Component({
1206
- * selector: 'my-app',
1207
- * template: `
1208
- * <kendo-splitbutton [data]="listItems">
1209
- * <ng-template kendoSplitButtonItemTemplate let-dataItem>
1210
- * <span>{{dataItem}} option</span>
1211
- * </ng-template>
1212
- * </kendo-splitbutton>
1213
- * <kendo-dropdownbutton [data]="listItems">
1214
- * <ng-template kendoDropDownButtonItemTemplate let-dataItem>
1215
- * <span>{{dataItem}} option</span>
1216
- * </ng-template>
1217
- * </kendo-dropdownbutton>
1218
- * `
1219
- * })
1220
- * class AppComponent {
1221
- * public listItems: Array<any> = [{
1222
- * text: 'item1',
1223
- * icon: 'refresh',
1224
- * disabled: false,
1225
- * click: (dataItem: any) => {
1226
- * //action
1227
- * }
1228
- * }, {
1229
- * text: 'item2',
1230
- * icon: 'refresh',
1231
- * disabled: false,
1232
- * click: (dataItem: any) => {
1233
- * //action
1234
- * }
1235
- * }]
1236
- * }
1237
- * ```
1238
- *
1239
- * For more examples, refer to the article on the [DropDownList templates]({% slug overview_ddl %}#templates).
1240
- */
1241
- let ButtonItemTemplateDirective = class ButtonItemTemplateDirective {
1242
- constructor(templateRef) {
1243
- this.templateRef = templateRef;
1244
- }
1245
- };
1246
- ButtonItemTemplateDirective = __decorate([
1247
- Directive({
1248
- selector: '[kendoDropDownButtonItemTemplate],[kendoSplitButtonItemTemplate]'
1249
- }),
1250
- __metadata("design:paramtypes", [TemplateRef])
1251
- ], ButtonItemTemplateDirective);
1252
-
1253
- /**
1254
- * @hidden
1255
- */
1256
- let ListComponent = class ListComponent {
1257
- constructor() {
1258
- this.onItemClick = new EventEmitter();
1259
- this.onItemBlur = new EventEmitter();
1260
- this.sizeClass = '';
1261
- validatePackage(packageMetadata);
1262
- }
1263
- set size(size) {
1264
- if (size) {
1265
- this.sizeClass = `k-menu-group-${SIZES[size]}`;
1266
- }
1267
- else {
1268
- this.sizeClass = '';
1269
- }
1270
- }
1271
- getText(dataItem) {
1272
- if (dataItem) {
1273
- return this.textField ? dataItem[this.textField] : dataItem.text || dataItem;
1274
- }
1275
- return undefined;
1276
- }
1277
- getIconClasses(dataItem) {
1278
- const icon = dataItem.icon ? 'k-icon k-i-' + dataItem.icon : undefined;
1279
- const classes = {};
1280
- classes[icon || dataItem.iconClass] = true;
1281
- return classes;
1282
- }
1283
- onClick(index) {
1284
- this.onItemClick.emit(index);
1285
- }
1286
- onBlur() {
1287
- this.onItemBlur.emit();
1288
- }
1289
- };
1290
- __decorate([
1291
- Input(),
1292
- __metadata("design:type", Array)
1293
- ], ListComponent.prototype, "data", void 0);
1294
- __decorate([
1295
- Input(),
1296
- __metadata("design:type", String)
1297
- ], ListComponent.prototype, "textField", void 0);
1298
- __decorate([
1299
- Input(),
1300
- __metadata("design:type", ButtonItemTemplateDirective)
1301
- ], ListComponent.prototype, "itemTemplate", void 0);
1302
- __decorate([
1303
- Output(),
1304
- __metadata("design:type", EventEmitter)
1305
- ], ListComponent.prototype, "onItemClick", void 0);
1306
- __decorate([
1307
- Output(),
1308
- __metadata("design:type", EventEmitter)
1309
- ], ListComponent.prototype, "onItemBlur", void 0);
1310
- __decorate([
1311
- Input(),
1312
- __metadata("design:type", String),
1313
- __metadata("design:paramtypes", [String])
1314
- ], ListComponent.prototype, "size", null);
1315
- ListComponent = __decorate([
1316
- Component({
1317
- selector: 'kendo-button-list',
1318
- template: `
1319
- <ul class="k-group k-menu-group k-reset" [ngClass]="sizeClass" unselectable="on" role="menu">
1320
- <li role="menuitem" unselectable="on"
1321
- kendoButtonFocusable
1322
- *ngFor="let dataItem of data; let index = index;"
1323
- [index]="index"
1324
- tabindex="-1"
1325
- class="k-item k-menu-item"
1326
- (click)="onClick(index)"
1327
- (blur)="onBlur()"
1328
- [attr.aria-disabled]="dataItem.disabled ? true : false">
1329
- <ng-template [ngIf]="itemTemplate?.templateRef">
1330
- <span class="k-link k-menu-link" [class.k-disabled]="dataItem.disabled">
1331
- <ng-template [templateContext]="{templateRef: itemTemplate?.templateRef, $implicit: dataItem}"></ng-template>
1332
- </span>
1333
- </ng-template>
1334
- <ng-template [ngIf]="!itemTemplate?.templateRef">
1335
- <span class="k-link k-menu-link" [class.k-disabled]="dataItem.disabled">
1336
- <span
1337
- *ngIf="dataItem.icon || dataItem.iconClass"
1338
- [ngClass]="getIconClasses(dataItem)"
1339
- ></span>
1340
- <img
1341
- *ngIf="dataItem.imageUrl"
1342
- class="k-image"
1343
- [src]="dataItem.imageUrl"
1344
- alt=""
1345
- >
1346
- <span *ngIf="getText(dataItem)" class="k-menu-link-text">
1347
- {{ getText(dataItem) }}
1348
- </span>
1349
- </span>
1350
- </ng-template>
1351
- </li>
1352
- </ul>
1353
- `
1354
- }),
1355
- __metadata("design:paramtypes", [])
1356
- ], ListComponent);
1097
+ class ButtonGroupModule {
1098
+ }
1099
+ ButtonGroupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1100
+ ButtonGroupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonGroupModule, declarations: [ButtonGroupComponent], imports: [CommonModule, ButtonModule], exports: [ButtonGroupComponent] });
1101
+ ButtonGroupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonGroupModule, imports: [[CommonModule, ButtonModule]] });
1102
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonGroupModule, decorators: [{
1103
+ type: NgModule,
1104
+ args: [{
1105
+ declarations: [ButtonGroupComponent],
1106
+ exports: [ButtonGroupComponent],
1107
+ imports: [CommonModule, ButtonModule]
1108
+ }]
1109
+ }] });
1357
1110
 
1358
1111
  /**
1359
1112
  * @hidden
1360
1113
  */
1361
- let FocusService = class FocusService {
1362
- /**
1363
- * @hidden
1364
- */
1114
+ class FocusService {
1365
1115
  constructor() {
1366
1116
  this.onFocus = new EventEmitter();
1367
1117
  }
@@ -1385,15 +1135,17 @@ let FocusService = class FocusService {
1385
1135
  this.focusedIndex = index;
1386
1136
  this.onFocus.emit(index);
1387
1137
  }
1388
- };
1389
- FocusService = __decorate([
1390
- Injectable()
1391
- ], FocusService);
1138
+ }
1139
+ FocusService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FocusService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1140
+ FocusService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FocusService });
1141
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FocusService, decorators: [{
1142
+ type: Injectable
1143
+ }] });
1392
1144
 
1393
1145
  /**
1394
1146
  * @hidden
1395
1147
  */
1396
- let FocusableDirective = class FocusableDirective {
1148
+ class FocusableDirective {
1397
1149
  constructor(focusService, elementRef, renderer) {
1398
1150
  this.focusService = focusService;
1399
1151
  this.renderer = renderer;
@@ -1429,22 +1181,22 @@ let FocusableDirective = class FocusableDirective {
1429
1181
  }
1430
1182
  }));
1431
1183
  }
1432
- };
1433
- __decorate([
1434
- Input(),
1435
- __metadata("design:type", Number)
1436
- ], FocusableDirective.prototype, "index", void 0);
1437
- FocusableDirective = __decorate([
1438
- Directive({
1439
- selector: '[kendoButtonFocusable]'
1440
- }),
1441
- __metadata("design:paramtypes", [FocusService, ElementRef, Renderer2])
1442
- ], FocusableDirective);
1184
+ }
1185
+ FocusableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FocusableDirective, deps: [{ token: FocusService }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
1186
+ FocusableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FocusableDirective, selector: "[kendoButtonFocusable]", inputs: { index: "index" }, ngImport: i0 });
1187
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FocusableDirective, decorators: [{
1188
+ type: Directive,
1189
+ args: [{
1190
+ selector: '[kendoButtonFocusable]'
1191
+ }]
1192
+ }], ctorParameters: function () { return [{ type: FocusService }, { type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { index: [{
1193
+ type: Input
1194
+ }] } });
1443
1195
 
1444
1196
  /**
1445
1197
  * @hidden
1446
1198
  */
1447
- let TemplateContextDirective = class TemplateContextDirective {
1199
+ class TemplateContextDirective {
1448
1200
  constructor(viewContainerRef) {
1449
1201
  this.viewContainerRef = viewContainerRef;
1450
1202
  }
@@ -1457,84 +1209,395 @@ let TemplateContextDirective = class TemplateContextDirective {
1457
1209
  this.insertedViewRef = this.viewContainerRef.createEmbeddedView(context.templateRef, context);
1458
1210
  }
1459
1211
  }
1460
- };
1461
- __decorate([
1462
- Input(),
1463
- __metadata("design:type", Object),
1464
- __metadata("design:paramtypes", [Object])
1465
- ], TemplateContextDirective.prototype, "templateContext", null);
1466
- TemplateContextDirective = __decorate([
1467
- Directive({
1468
- selector: '[templateContext]' // tslint:disable-line:directive-selector
1469
- }),
1470
- __metadata("design:paramtypes", [ViewContainerRef])
1471
- ], TemplateContextDirective);
1472
-
1473
- const EXPORTED_DIRECTIVES = [
1474
- ListComponent,
1475
- FocusableDirective,
1476
- ButtonItemTemplateDirective,
1477
- TemplateContextDirective
1478
- ];
1479
- /**
1480
- * @hidden
1481
- */
1482
- let ListModule = class ListModule {
1483
- };
1484
- ListModule = __decorate([
1485
- NgModule({
1486
- declarations: [EXPORTED_DIRECTIVES],
1487
- exports: [EXPORTED_DIRECTIVES],
1488
- imports: [CommonModule]
1489
- })
1490
- ], ListModule);
1491
-
1492
- /**
1493
- * @hidden
1494
- */
1495
- var KeyEvents;
1496
- (function (KeyEvents) {
1497
- KeyEvents[KeyEvents["keydown"] = 0] = "keydown";
1498
- KeyEvents[KeyEvents["keypress"] = 1] = "keypress";
1499
- KeyEvents[KeyEvents["keyup"] = 2] = "keyup";
1500
- })(KeyEvents || (KeyEvents = {}));
1501
-
1502
- /**
1503
- * @hidden
1504
- */
1505
- var NavigationAction;
1506
- (function (NavigationAction) {
1507
- NavigationAction[NavigationAction["Undefined"] = 0] = "Undefined";
1508
- NavigationAction[NavigationAction["Open"] = 1] = "Open";
1509
- NavigationAction[NavigationAction["Close"] = 2] = "Close";
1510
- NavigationAction[NavigationAction["Enter"] = 3] = "Enter";
1511
- NavigationAction[NavigationAction["EnterPress"] = 4] = "EnterPress";
1512
- NavigationAction[NavigationAction["EnterUp"] = 5] = "EnterUp";
1513
- NavigationAction[NavigationAction["Tab"] = 6] = "Tab";
1514
- NavigationAction[NavigationAction["Esc"] = 7] = "Esc";
1515
- NavigationAction[NavigationAction["Navigate"] = 8] = "Navigate";
1516
- })(NavigationAction || (NavigationAction = {}));
1212
+ }
1213
+ TemplateContextDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TemplateContextDirective, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
1214
+ TemplateContextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TemplateContextDirective, selector: "[templateContext]", inputs: { templateContext: "templateContext" }, ngImport: i0 });
1215
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TemplateContextDirective, decorators: [{
1216
+ type: Directive,
1217
+ args: [{
1218
+ // eslint-disable-next-line @angular-eslint/directive-selector
1219
+ selector: '[templateContext]'
1220
+ }]
1221
+ }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; }, propDecorators: { templateContext: [{
1222
+ type: Input
1223
+ }] } });
1517
1224
 
1518
- /* tslint:disable:deprecation */
1519
1225
  /**
1520
1226
  * @hidden
1521
1227
  */
1522
- class ListButton {
1523
- constructor(focusService, navigationService, wrapperRef, _zone, localization, cdr) {
1524
- this.focusService = focusService;
1525
- this.navigationService = navigationService;
1526
- this.wrapperRef = wrapperRef;
1527
- this._zone = _zone;
1528
- this.cdr = cdr;
1529
- this._open = false;
1530
- this._disabled = false;
1531
- this._active = false;
1532
- this._popupSettings = { animate: true, popupClass: '' };
1533
- this.listId = guid();
1534
- this._isFocused = false;
1535
- this.subs = new Subscription();
1536
- validatePackage(packageMetadata);
1537
- this.focusService = focusService;
1228
+ class ListComponent {
1229
+ constructor() {
1230
+ this.onItemClick = new EventEmitter();
1231
+ this.onItemBlur = new EventEmitter();
1232
+ this.sizeClass = '';
1233
+ validatePackage(packageMetadata);
1234
+ }
1235
+ set size(size) {
1236
+ if (size) {
1237
+ this.sizeClass = `k-menu-group-${SIZES[size]}`;
1238
+ }
1239
+ else {
1240
+ this.sizeClass = '';
1241
+ }
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
+ [index]="index"
1269
+ tabindex="-1"
1270
+ class="k-item k-menu-item"
1271
+ (click)="onClick(index)"
1272
+ (blur)="onBlur()"
1273
+ [attr.aria-disabled]="dataItem.disabled ? true : false">
1274
+ <ng-template [ngIf]="itemTemplate?.templateRef">
1275
+ <span class="k-link k-menu-link" [class.k-disabled]="dataItem.disabled">
1276
+ <ng-template [templateContext]="{templateRef: itemTemplate?.templateRef, $implicit: dataItem}"></ng-template>
1277
+ </span>
1278
+ </ng-template>
1279
+ <ng-template [ngIf]="!itemTemplate?.templateRef">
1280
+ <span class="k-link k-menu-link" [class.k-disabled]="dataItem.disabled">
1281
+ <span
1282
+ *ngIf="dataItem.icon || dataItem.iconClass"
1283
+ [ngClass]="getIconClasses(dataItem)"
1284
+ ></span>
1285
+ <img
1286
+ *ngIf="dataItem.imageUrl"
1287
+ class="k-image"
1288
+ [src]="dataItem.imageUrl"
1289
+ alt=""
1290
+ >
1291
+ <span *ngIf="getText(dataItem)" class="k-menu-link-text">
1292
+ {{ getText(dataItem) }}
1293
+ </span>
1294
+ </span>
1295
+ </ng-template>
1296
+ </li>
1297
+ </ul>
1298
+ `, 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"] }] });
1299
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListComponent, decorators: [{
1300
+ type: Component,
1301
+ args: [{
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
+ [index]="index"
1309
+ tabindex="-1"
1310
+ class="k-item k-menu-item"
1311
+ (click)="onClick(index)"
1312
+ (blur)="onBlur()"
1313
+ [attr.aria-disabled]="dataItem.disabled ? true : false">
1314
+ <ng-template [ngIf]="itemTemplate?.templateRef">
1315
+ <span class="k-link k-menu-link" [class.k-disabled]="dataItem.disabled">
1316
+ <ng-template [templateContext]="{templateRef: itemTemplate?.templateRef, $implicit: dataItem}"></ng-template>
1317
+ </span>
1318
+ </ng-template>
1319
+ <ng-template [ngIf]="!itemTemplate?.templateRef">
1320
+ <span class="k-link k-menu-link" [class.k-disabled]="dataItem.disabled">
1321
+ <span
1322
+ *ngIf="dataItem.icon || dataItem.iconClass"
1323
+ [ngClass]="getIconClasses(dataItem)"
1324
+ ></span>
1325
+ <img
1326
+ *ngIf="dataItem.imageUrl"
1327
+ class="k-image"
1328
+ [src]="dataItem.imageUrl"
1329
+ alt=""
1330
+ >
1331
+ <span *ngIf="getText(dataItem)" class="k-menu-link-text">
1332
+ {{ getText(dataItem) }}
1333
+ </span>
1334
+ </span>
1335
+ </ng-template>
1336
+ </li>
1337
+ </ul>
1338
+ `
1339
+ }]
1340
+ }], ctorParameters: function () { return []; }, propDecorators: { data: [{
1341
+ type: Input
1342
+ }], textField: [{
1343
+ type: Input
1344
+ }], itemTemplate: [{
1345
+ type: Input
1346
+ }], onItemClick: [{
1347
+ type: Output
1348
+ }], onItemBlur: [{
1349
+ type: Output
1350
+ }], size: [{
1351
+ type: Input
1352
+ }] } });
1353
+
1354
+ /**
1355
+ * Used for rendering the list item content.
1356
+ *
1357
+ * To define the item template, nest a `<ng-template>` tag with the `kendo<ComponentName>ItemTemplate` directive inside the component tag.
1358
+ *
1359
+ * For the DropDownButton, use the `kendoDropDownButtonItemTemplate` directive.
1360
+ * For the SplitButton, use the `kendoSplitButtonItemTemplate` directive.
1361
+ *
1362
+ * The template context is set to the current component. To get a reference to the current data item, use the `let-dataItem` directive.
1363
+ *
1364
+ * @example
1365
+ * ```ts
1366
+ * _@Component({
1367
+ * selector: 'my-app',
1368
+ * template: `
1369
+ * <kendo-splitbutton [data]="listItems">
1370
+ * <ng-template kendoSplitButtonItemTemplate let-dataItem>
1371
+ * <span>{{dataItem}} option</span>
1372
+ * </ng-template>
1373
+ * </kendo-splitbutton>
1374
+ * <kendo-dropdownbutton [data]="listItems">
1375
+ * <ng-template kendoDropDownButtonItemTemplate let-dataItem>
1376
+ * <span>{{dataItem}} option</span>
1377
+ * </ng-template>
1378
+ * </kendo-dropdownbutton>
1379
+ * `
1380
+ * })
1381
+ * class AppComponent {
1382
+ * public listItems: Array<any> = [{
1383
+ * text: 'item1',
1384
+ * icon: 'refresh',
1385
+ * disabled: false,
1386
+ * click: (dataItem: any) => {
1387
+ * //action
1388
+ * }
1389
+ * }, {
1390
+ * text: 'item2',
1391
+ * icon: 'refresh',
1392
+ * disabled: false,
1393
+ * click: (dataItem: any) => {
1394
+ * //action
1395
+ * }
1396
+ * }]
1397
+ * }
1398
+ * ```
1399
+ *
1400
+ * For more examples, refer to the article on the [DropDownList templates]({% slug overview_ddl %}#templates).
1401
+ */
1402
+ class ButtonItemTemplateDirective {
1403
+ constructor(templateRef) {
1404
+ this.templateRef = templateRef;
1405
+ }
1406
+ }
1407
+ ButtonItemTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonItemTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
1408
+ ButtonItemTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ButtonItemTemplateDirective, selector: "[kendoDropDownButtonItemTemplate],[kendoSplitButtonItemTemplate]", ngImport: i0 });
1409
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonItemTemplateDirective, decorators: [{
1410
+ type: Directive,
1411
+ args: [{
1412
+ selector: '[kendoDropDownButtonItemTemplate],[kendoSplitButtonItemTemplate]'
1413
+ }]
1414
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
1415
+
1416
+ const EXPORTED_DIRECTIVES = [
1417
+ ListComponent,
1418
+ FocusableDirective,
1419
+ ButtonItemTemplateDirective,
1420
+ TemplateContextDirective
1421
+ ];
1422
+ /**
1423
+ * @hidden
1424
+ */
1425
+ class ListModule {
1426
+ }
1427
+ ListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1428
+ ListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListModule, declarations: [ListComponent,
1429
+ FocusableDirective,
1430
+ ButtonItemTemplateDirective,
1431
+ TemplateContextDirective], imports: [CommonModule], exports: [ListComponent,
1432
+ FocusableDirective,
1433
+ ButtonItemTemplateDirective,
1434
+ TemplateContextDirective] });
1435
+ ListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListModule, imports: [[CommonModule]] });
1436
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListModule, decorators: [{
1437
+ type: NgModule,
1438
+ args: [{
1439
+ declarations: [EXPORTED_DIRECTIVES],
1440
+ exports: [EXPORTED_DIRECTIVES],
1441
+ imports: [CommonModule]
1442
+ }]
1443
+ }] });
1444
+
1445
+ /**
1446
+ * @hidden
1447
+ */
1448
+ var KeyEvents;
1449
+ (function (KeyEvents) {
1450
+ KeyEvents[KeyEvents["keydown"] = 0] = "keydown";
1451
+ KeyEvents[KeyEvents["keypress"] = 1] = "keypress";
1452
+ KeyEvents[KeyEvents["keyup"] = 2] = "keyup";
1453
+ })(KeyEvents || (KeyEvents = {}));
1454
+
1455
+ /**
1456
+ * @hidden
1457
+ */
1458
+ var NavigationAction;
1459
+ (function (NavigationAction) {
1460
+ // eslint-disable-next-line id-denylist
1461
+ NavigationAction[NavigationAction["Undefined"] = 0] = "Undefined";
1462
+ NavigationAction[NavigationAction["Open"] = 1] = "Open";
1463
+ NavigationAction[NavigationAction["Close"] = 2] = "Close";
1464
+ NavigationAction[NavigationAction["Enter"] = 3] = "Enter";
1465
+ NavigationAction[NavigationAction["EnterPress"] = 4] = "EnterPress";
1466
+ NavigationAction[NavigationAction["EnterUp"] = 5] = "EnterUp";
1467
+ NavigationAction[NavigationAction["Tab"] = 6] = "Tab";
1468
+ NavigationAction[NavigationAction["Esc"] = 7] = "Esc";
1469
+ NavigationAction[NavigationAction["Navigate"] = 8] = "Navigate";
1470
+ })(NavigationAction || (NavigationAction = {}));
1471
+
1472
+ /**
1473
+ * @hidden
1474
+ */
1475
+ const NAVIGATION_CONFIG = new InjectionToken('navigation.config');
1476
+
1477
+ /**
1478
+ * @hidden
1479
+ */
1480
+ class NavigationService {
1481
+ constructor(config) {
1482
+ this.navigate = new EventEmitter();
1483
+ this.open = new EventEmitter();
1484
+ this.close = new EventEmitter();
1485
+ this.enter = new EventEmitter();
1486
+ this.enterpress = new EventEmitter();
1487
+ this.enterup = new EventEmitter();
1488
+ this.tab = new EventEmitter();
1489
+ this.esc = new EventEmitter();
1490
+ this.useLeftRightArrows = config.useLeftRightArrows;
1491
+ }
1492
+ process(args) {
1493
+ const keyCode = args.keyCode;
1494
+ const keyEvent = args.keyEvent;
1495
+ let index;
1496
+ let action = NavigationAction.Undefined;
1497
+ if (keyEvent === KeyEvents.keypress) {
1498
+ if (this.isEnter(keyCode)) {
1499
+ action = NavigationAction.EnterPress;
1500
+ }
1501
+ }
1502
+ else if (keyEvent === KeyEvents.keyup) {
1503
+ if (this.isEnter(keyCode)) {
1504
+ action = NavigationAction.EnterUp;
1505
+ }
1506
+ }
1507
+ else {
1508
+ if (args.altKey && keyCode === Keys.ArrowDown) {
1509
+ action = NavigationAction.Open;
1510
+ }
1511
+ else if (args.altKey && keyCode === Keys.ArrowUp) {
1512
+ action = NavigationAction.Close;
1513
+ }
1514
+ else if (this.isEnter(keyCode)) {
1515
+ action = NavigationAction.Enter;
1516
+ }
1517
+ else if (keyCode === Keys.Escape) {
1518
+ action = NavigationAction.Esc;
1519
+ }
1520
+ else if (keyCode === Keys.Tab) {
1521
+ action = NavigationAction.Tab;
1522
+ }
1523
+ else if (keyCode === Keys.ArrowUp || (this.useLeftRightArrows && keyCode === Keys.ArrowLeft)) {
1524
+ const step = args.flipNavigation ? 1 : -1;
1525
+ const start = args.flipNavigation ? args.min : args.max;
1526
+ const end = args.flipNavigation ? args.max : args.min;
1527
+ index = this.next({
1528
+ current: args.current,
1529
+ start: start,
1530
+ end: end,
1531
+ step: step
1532
+ });
1533
+ action = NavigationAction.Navigate;
1534
+ }
1535
+ else if (keyCode === Keys.ArrowDown || (this.useLeftRightArrows && keyCode === Keys.ArrowRight)) {
1536
+ const step = args.flipNavigation ? -1 : 1;
1537
+ const start = args.flipNavigation ? args.max : args.min;
1538
+ const end = args.flipNavigation ? args.min : args.max;
1539
+ index = this.next({
1540
+ current: args.current,
1541
+ start: start,
1542
+ end: end,
1543
+ step: step
1544
+ });
1545
+ action = NavigationAction.Navigate;
1546
+ }
1547
+ else if (keyCode === Keys.Home) {
1548
+ index = args.min;
1549
+ action = NavigationAction.Navigate;
1550
+ }
1551
+ else if (keyCode === Keys.End) {
1552
+ index = args.max;
1553
+ action = NavigationAction.Navigate;
1554
+ }
1555
+ }
1556
+ if (action !== NavigationAction.Undefined) {
1557
+ this[NavigationAction[action].toLowerCase()].emit(index);
1558
+ }
1559
+ return action;
1560
+ }
1561
+ isEnter(keyCode) {
1562
+ return keyCode === Keys.Enter || keyCode === Keys.Space;
1563
+ }
1564
+ next(args) {
1565
+ if (!isPresent(args.current)) {
1566
+ return args.start;
1567
+ }
1568
+ else {
1569
+ return args.current !== args.end ? args.current + args.step : args.end;
1570
+ }
1571
+ }
1572
+ }
1573
+ NavigationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NavigationService, deps: [{ token: NAVIGATION_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable });
1574
+ NavigationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NavigationService });
1575
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NavigationService, decorators: [{
1576
+ type: Injectable
1577
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
1578
+ type: Inject,
1579
+ args: [NAVIGATION_CONFIG]
1580
+ }] }]; } });
1581
+
1582
+ /**
1583
+ * @hidden
1584
+ */
1585
+ class ListButton {
1586
+ constructor(focusService, navigationService, wrapperRef, _zone, localization, cdr) {
1587
+ this.focusService = focusService;
1588
+ this.navigationService = navigationService;
1589
+ this.wrapperRef = wrapperRef;
1590
+ this._zone = _zone;
1591
+ this.cdr = cdr;
1592
+ this._open = false;
1593
+ this._disabled = false;
1594
+ this._active = false;
1595
+ this._popupSettings = { animate: true, popupClass: '' };
1596
+ this.listId = guid();
1597
+ this._isFocused = false;
1598
+ this.subs = new Subscription();
1599
+ validatePackage(packageMetadata);
1600
+ this.focusService = focusService;
1538
1601
  this.navigationService = navigationService;
1539
1602
  this.wrapper = wrapperRef.nativeElement;
1540
1603
  this.subs.add(localization.changes.subscribe(({ rtl }) => (this.direction = rtl ? 'rtl' : 'ltr')));
@@ -1616,7 +1679,7 @@ class ListButton {
1616
1679
  }));
1617
1680
  this.subs.add(merge(this.navigationService.close, this.navigationService.esc).subscribe(() => this.focusWrapper()));
1618
1681
  }
1619
- enterHandler() { } // tslint:disable-line
1682
+ enterHandler() { } // eslint-disable-line
1620
1683
  /**
1621
1684
  * @hidden
1622
1685
  */
@@ -1706,122 +1769,70 @@ class ListButton {
1706
1769
  this.blurWrapper(false);
1707
1770
  }
1708
1771
  }
1772
+ 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 });
1773
+ ListButton.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ListButton, selector: "ng-component", ngImport: i0, template: '', isInline: true });
1774
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListButton, decorators: [{
1775
+ type: Component,
1776
+ args: [{
1777
+ template: ''
1778
+ }]
1779
+ }], ctorParameters: function () { return [{ type: FocusService }, { type: NavigationService }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }]; } });
1709
1780
 
1710
1781
  /**
1711
1782
  * @hidden
1712
1783
  */
1713
- const NAVIGATION_CONFIG = new InjectionToken('navigation.config');
1784
+ class Messages extends ComponentMessages {
1785
+ }
1786
+ Messages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
1787
+ 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 });
1788
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Messages, decorators: [{
1789
+ type: Directive,
1790
+ args: [{
1791
+ // eslint-disable-next-line @angular-eslint/directive-selector
1792
+ selector: 'kendo-splitbutton-messages-base'
1793
+ }]
1794
+ }], propDecorators: { splitButtonLabel: [{
1795
+ type: Input
1796
+ }] } });
1714
1797
 
1715
1798
  /**
1716
1799
  * @hidden
1717
1800
  */
1718
- let NavigationService = class NavigationService {
1719
- constructor(config) {
1720
- this.navigate = new EventEmitter();
1721
- this.open = new EventEmitter();
1722
- this.close = new EventEmitter();
1723
- this.enter = new EventEmitter();
1724
- this.enterpress = new EventEmitter();
1725
- this.enterup = new EventEmitter();
1726
- this.tab = new EventEmitter();
1727
- this.esc = new EventEmitter();
1728
- this.useLeftRightArrows = config.useLeftRightArrows;
1729
- }
1730
- process(args) {
1731
- const keyCode = args.keyCode;
1732
- const keyEvent = args.keyEvent;
1733
- let index;
1734
- let action = NavigationAction.Undefined;
1735
- if (keyEvent === KeyEvents.keypress) {
1736
- if (this.isEnter(keyCode)) {
1737
- action = NavigationAction.EnterPress;
1738
- }
1739
- }
1740
- else if (keyEvent === KeyEvents.keyup) {
1741
- if (this.isEnter(keyCode)) {
1742
- action = NavigationAction.EnterUp;
1743
- }
1744
- }
1745
- else {
1746
- if (args.altKey && keyCode === Keys.ArrowDown) {
1747
- action = NavigationAction.Open;
1748
- }
1749
- else if (args.altKey && keyCode === Keys.ArrowUp) {
1750
- action = NavigationAction.Close;
1751
- }
1752
- else if (this.isEnter(keyCode)) {
1753
- action = NavigationAction.Enter;
1754
- }
1755
- else if (keyCode === Keys.Escape) {
1756
- action = NavigationAction.Esc;
1757
- }
1758
- else if (keyCode === Keys.Tab) {
1759
- action = NavigationAction.Tab;
1760
- }
1761
- else if (keyCode === Keys.ArrowUp || (this.useLeftRightArrows && keyCode === Keys.ArrowLeft)) {
1762
- const step = args.flipNavigation ? 1 : -1;
1763
- const start = args.flipNavigation ? args.min : args.max;
1764
- const end = args.flipNavigation ? args.max : args.min;
1765
- index = this.next({
1766
- current: args.current,
1767
- start: start,
1768
- end: end,
1769
- step: step
1770
- });
1771
- action = NavigationAction.Navigate;
1772
- }
1773
- else if (keyCode === Keys.ArrowDown || (this.useLeftRightArrows && keyCode === Keys.ArrowRight)) {
1774
- const step = args.flipNavigation ? -1 : 1;
1775
- const start = args.flipNavigation ? args.max : args.min;
1776
- const end = args.flipNavigation ? args.min : args.max;
1777
- index = this.next({
1778
- current: args.current,
1779
- start: start,
1780
- end: end,
1781
- step: step
1782
- });
1783
- action = NavigationAction.Navigate;
1784
- }
1785
- else if (keyCode === Keys.Home) {
1786
- index = args.min;
1787
- action = NavigationAction.Navigate;
1788
- }
1789
- else if (keyCode === Keys.End) {
1790
- index = args.max;
1791
- action = NavigationAction.Navigate;
1792
- }
1793
- }
1794
- if (action !== NavigationAction.Undefined) {
1795
- this[NavigationAction[action].toLowerCase()].emit(index);
1796
- }
1797
- return action;
1798
- }
1799
- isEnter(keyCode) {
1800
- return keyCode === Keys.Enter || keyCode === Keys.Space;
1801
- }
1802
- next(args) {
1803
- if (!isPresent(args.current)) {
1804
- return args.start;
1805
- }
1806
- else {
1807
- return args.current !== args.end ? args.current + args.step : args.end;
1808
- }
1801
+ class LocalizedSplitButtonMessagesDirective extends Messages {
1802
+ constructor(service) {
1803
+ super();
1804
+ this.service = service;
1809
1805
  }
1810
- };
1811
- NavigationService = __decorate([
1812
- Injectable(),
1813
- __param(0, Inject(NAVIGATION_CONFIG)),
1814
- __metadata("design:paramtypes", [Object])
1815
- ], NavigationService);
1806
+ }
1807
+ LocalizedSplitButtonMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedSplitButtonMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
1808
+ LocalizedSplitButtonMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: LocalizedSplitButtonMessagesDirective, selector: "[kendoSplitButtonLocalizedMessages]", providers: [
1809
+ {
1810
+ provide: Messages,
1811
+ useExisting: forwardRef(() => LocalizedSplitButtonMessagesDirective)
1812
+ }
1813
+ ], usesInheritance: true, ngImport: i0 });
1814
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedSplitButtonMessagesDirective, decorators: [{
1815
+ type: Directive,
1816
+ args: [{
1817
+ providers: [
1818
+ {
1819
+ provide: Messages,
1820
+ useExisting: forwardRef(() => LocalizedSplitButtonMessagesDirective)
1821
+ }
1822
+ ],
1823
+ selector: '[kendoSplitButtonLocalizedMessages]'
1824
+ }]
1825
+ }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
1816
1826
 
1817
- const NAVIGATION_SETTINGS = {
1827
+ const NAVIGATION_SETTINGS$2 = {
1818
1828
  useLeftRightArrows: true
1819
1829
  };
1820
- const ɵ0 = NAVIGATION_SETTINGS;
1821
- const NAVIGATION_SETTINGS_PROVIDER = {
1830
+ const NAVIGATION_SETTINGS_PROVIDER$2 = {
1822
1831
  provide: NAVIGATION_CONFIG,
1823
- useValue: ɵ0
1832
+ useValue: NAVIGATION_SETTINGS$2
1824
1833
  };
1834
+ const DEFAULT_ROUNDED$1 = 'medium';
1835
+ const DEFAULT_FILL_MODE$1 = 'solid';
1825
1836
  /**
1826
1837
  * Represents the Kendo UI SplitButton component for Angular.
1827
1838
  *
@@ -1863,7 +1874,7 @@ const NAVIGATION_SETTINGS_PROVIDER = {
1863
1874
  * }
1864
1875
  * ```
1865
1876
  */
1866
- let SplitButtonComponent = class SplitButtonComponent extends ListButton {
1877
+ class SplitButtonComponent extends ListButton {
1867
1878
  constructor(focusService, navigationService, wrapperRef, zone, popupService, elRef, localization, cdr, renderer) {
1868
1879
  super(focusService, navigationService, wrapperRef, zone, localization, cdr);
1869
1880
  this.popupService = popupService;
@@ -1898,10 +1909,10 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
1898
1909
  * ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-size)).
1899
1910
  *
1900
1911
  * The possible values are:
1901
- * * `'small'`
1902
- * * `'medium'` (default)
1903
- * * `'large'`
1904
- * * `null`
1912
+ * * `small`
1913
+ * * `medium` (default)
1914
+ * * `large`
1915
+ * * `none`
1905
1916
  */
1906
1917
  this.size = 'medium';
1907
1918
  /**
@@ -1921,6 +1932,7 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
1921
1932
  * * `dark`&mdash; Applies coloring based on the `dark` theme color.
1922
1933
  * * `light`&mdash; Applies coloring based on the `light` theme color.
1923
1934
  * * `inverse`&mdash; Applies coloring based on the `inverse` theme color.
1935
+ * * `none`&mdash; Removes the built in theme color.
1924
1936
  */
1925
1937
  this.themeColor = 'base';
1926
1938
  /**
@@ -1985,11 +1997,11 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
1985
1997
  /**
1986
1998
  * Fires each time the SplitButton gets focused.
1987
1999
  */
1988
- this.onFocus = new EventEmitter(); //tslint:disable-line:no-output-rename
2000
+ this.onFocus = new EventEmitter();
1989
2001
  /**
1990
2002
  * Fires each time the SplitButton gets blurred.
1991
2003
  */
1992
- this.onBlur = new EventEmitter(); //tslint:disable-line:no-output-rename
2004
+ this.onBlur = new EventEmitter();
1993
2005
  /**
1994
2006
  * Fires each time the popup is about to open.
1995
2007
  * This event is preventable. If you cancel the event, the popup will remain closed.
@@ -2007,8 +2019,8 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
2007
2019
  this.listId = guid();
2008
2020
  this.buttonText = '';
2009
2021
  this.lockFocus = false;
2010
- this._rounded = 'medium';
2011
- this._fillMode = "solid";
2022
+ this._rounded = DEFAULT_ROUNDED$1;
2023
+ this._fillMode = DEFAULT_FILL_MODE$1;
2012
2024
  this.popupSubs = new Subscription();
2013
2025
  this._itemClick = this.itemClick;
2014
2026
  this._blur = this.onBlur;
@@ -2018,15 +2030,16 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
2018
2030
  * ([see example]({% slug api_buttons_splitbuttoncomponent %}#toc-rounded)).
2019
2031
  *
2020
2032
  * The possible values are:
2021
- * * `'small'`
2022
- * * `'medium'` (default)
2023
- * * `'large'`
2024
- * * `'full'`
2025
- * * `null`
2033
+ * * `small`
2034
+ * * `medium` (default)
2035
+ * * `large`
2036
+ * * `full`
2037
+ * * `none`
2026
2038
  */
2027
2039
  set rounded(rounded) {
2028
- this.handleClasses(rounded, 'rounded');
2029
- this._rounded = rounded;
2040
+ const newRounded = rounded ? rounded : DEFAULT_ROUNDED$1;
2041
+ this.handleClasses(newRounded, 'rounded');
2042
+ this._rounded = newRounded;
2030
2043
  }
2031
2044
  get rounded() {
2032
2045
  return this._rounded;
@@ -2042,7 +2055,8 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
2042
2055
  * * `link`
2043
2056
  */
2044
2057
  set fillMode(fillMode) {
2045
- this._fillMode = fillMode === 'clear' ? 'flat' : fillMode;
2058
+ const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE$1;
2059
+ this._fillMode = fillMode === 'clear' ? 'flat' : newFillMode;
2046
2060
  }
2047
2061
  get fillMode() {
2048
2062
  return this._fillMode;
@@ -2377,173 +2391,101 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
2377
2391
  this.renderer.addClass(elem, classes.toAdd);
2378
2392
  }
2379
2393
  }
2380
- };
2381
- __decorate([
2382
- Input(),
2383
- __metadata("design:type", String)
2384
- ], SplitButtonComponent.prototype, "text", void 0);
2385
- __decorate([
2386
- Input(),
2387
- __metadata("design:type", String)
2388
- ], SplitButtonComponent.prototype, "icon", void 0);
2389
- __decorate([
2390
- Input(),
2391
- __metadata("design:type", String)
2392
- ], SplitButtonComponent.prototype, "iconClass", void 0);
2393
- __decorate([
2394
- Input(),
2395
- __metadata("design:type", String)
2396
- ], SplitButtonComponent.prototype, "type", void 0);
2397
- __decorate([
2398
- Input(),
2399
- __metadata("design:type", String)
2400
- ], SplitButtonComponent.prototype, "imageUrl", void 0);
2401
- __decorate([
2402
- Input(),
2403
- __metadata("design:type", String)
2404
- ], SplitButtonComponent.prototype, "size", void 0);
2405
- __decorate([
2406
- Input(),
2407
- __metadata("design:type", String),
2408
- __metadata("design:paramtypes", [String])
2409
- ], SplitButtonComponent.prototype, "rounded", null);
2410
- __decorate([
2411
- Input(),
2412
- __metadata("design:type", String),
2413
- __metadata("design:paramtypes", [String])
2414
- ], SplitButtonComponent.prototype, "fillMode", null);
2415
- __decorate([
2416
- Input(),
2417
- __metadata("design:type", String)
2418
- ], SplitButtonComponent.prototype, "themeColor", void 0);
2419
- __decorate([
2420
- Input(),
2421
- __metadata("design:type", Boolean),
2422
- __metadata("design:paramtypes", [Boolean])
2423
- ], SplitButtonComponent.prototype, "disabled", null);
2424
- __decorate([
2425
- Input(),
2426
- __metadata("design:type", Object),
2427
- __metadata("design:paramtypes", [Object])
2428
- ], SplitButtonComponent.prototype, "popupSettings", null);
2429
- __decorate([
2430
- Input(),
2431
- __metadata("design:type", Number)
2432
- ], SplitButtonComponent.prototype, "tabIndex", void 0);
2433
- __decorate([
2434
- Input(),
2435
- __metadata("design:type", String)
2436
- ], SplitButtonComponent.prototype, "textField", void 0);
2437
- __decorate([
2438
- Input(),
2439
- __metadata("design:type", Object),
2440
- __metadata("design:paramtypes", [Object])
2441
- ], SplitButtonComponent.prototype, "data", null);
2442
- __decorate([
2443
- Input(),
2444
- __metadata("design:type", Object)
2445
- ], SplitButtonComponent.prototype, "buttonClass", void 0);
2446
- __decorate([
2447
- Input(),
2448
- __metadata("design:type", Object)
2449
- ], SplitButtonComponent.prototype, "arrowButtonClass", void 0);
2450
- __decorate([
2451
- Input(),
2452
- __metadata("design:type", String)
2453
- ], SplitButtonComponent.prototype, "arrowButtonIcon", void 0);
2454
- __decorate([
2455
- Output(),
2456
- __metadata("design:type", EventEmitter)
2457
- ], SplitButtonComponent.prototype, "buttonClick", void 0);
2458
- __decorate([
2459
- Output(),
2460
- __metadata("design:type", EventEmitter)
2461
- ], SplitButtonComponent.prototype, "itemClick", void 0);
2462
- __decorate([
2463
- Output('focus'),
2464
- __metadata("design:type", EventEmitter)
2465
- ], SplitButtonComponent.prototype, "onFocus", void 0);
2466
- __decorate([
2467
- Output('blur'),
2468
- __metadata("design:type", EventEmitter)
2469
- ], SplitButtonComponent.prototype, "onBlur", void 0);
2470
- __decorate([
2471
- Output(),
2472
- __metadata("design:type", EventEmitter)
2473
- ], SplitButtonComponent.prototype, "open", void 0);
2474
- __decorate([
2475
- Output(),
2476
- __metadata("design:type", EventEmitter)
2477
- ], SplitButtonComponent.prototype, "close", void 0);
2478
- __decorate([
2479
- ContentChild(ButtonItemTemplateDirective, { static: false }),
2480
- __metadata("design:type", ButtonItemTemplateDirective)
2481
- ], SplitButtonComponent.prototype, "itemTemplate", void 0);
2482
- __decorate([
2483
- ViewChild('button', { static: true }),
2484
- __metadata("design:type", ElementRef)
2485
- ], SplitButtonComponent.prototype, "button", void 0);
2486
- __decorate([
2487
- ViewChild('arrowButton', { static: true, read: ElementRef }),
2488
- __metadata("design:type", ElementRef)
2489
- ], SplitButtonComponent.prototype, "arrowButton", void 0);
2490
- __decorate([
2491
- ViewChild('popupTemplate', { static: true }),
2492
- __metadata("design:type", TemplateRef)
2493
- ], SplitButtonComponent.prototype, "popupTemplate", void 0);
2494
- __decorate([
2495
- ViewChild('container', { read: ViewContainerRef, static: true }),
2496
- __metadata("design:type", ViewContainerRef)
2497
- ], SplitButtonComponent.prototype, "containerRef", void 0);
2498
- __decorate([
2499
- HostBinding('class.k-focus'),
2500
- __metadata("design:type", Boolean),
2501
- __metadata("design:paramtypes", [Boolean])
2502
- ], SplitButtonComponent.prototype, "isFocused", null);
2503
- __decorate([
2504
- HostBinding('class.k-split-button'),
2505
- HostBinding('class.k-button-group'),
2506
- __metadata("design:type", Boolean),
2507
- __metadata("design:paramtypes", [])
2508
- ], SplitButtonComponent.prototype, "widgetClasses", null);
2509
- __decorate([
2510
- HostBinding('attr.dir'),
2511
- __metadata("design:type", String),
2512
- __metadata("design:paramtypes", [])
2513
- ], SplitButtonComponent.prototype, "dir", null);
2514
- __decorate([
2515
- HostListener('keydown', ['$event']),
2516
- __metadata("design:type", Function),
2517
- __metadata("design:paramtypes", [Object]),
2518
- __metadata("design:returntype", void 0)
2519
- ], SplitButtonComponent.prototype, "keydown", null);
2520
- __decorate([
2521
- HostListener('keypress', ['$event']),
2522
- __metadata("design:type", Function),
2523
- __metadata("design:paramtypes", [Object]),
2524
- __metadata("design:returntype", void 0)
2525
- ], SplitButtonComponent.prototype, "keypress", null);
2526
- __decorate([
2527
- HostListener('keyup', ['$event']),
2528
- __metadata("design:type", Function),
2529
- __metadata("design:paramtypes", [Object]),
2530
- __metadata("design:returntype", void 0)
2531
- ], SplitButtonComponent.prototype, "keyup", null);
2532
- SplitButtonComponent = __decorate([
2533
- Component({
2534
- exportAs: 'kendoSplitButton',
2535
- providers: [
2536
- FocusService,
2537
- NavigationService,
2538
- NAVIGATION_SETTINGS_PROVIDER,
2539
- LocalizationService,
2540
- {
2541
- provide: L10N_PREFIX,
2542
- useValue: 'kendo.splitbutton'
2543
- }
2544
- ],
2545
- selector: 'kendo-splitbutton',
2546
- template: `
2394
+ }
2395
+ 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 });
2396
+ 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: [
2397
+ FocusService,
2398
+ NavigationService,
2399
+ NAVIGATION_SETTINGS_PROVIDER$2,
2400
+ LocalizationService,
2401
+ {
2402
+ provide: L10N_PREFIX,
2403
+ useValue: 'kendo.splitbutton'
2404
+ }
2405
+ ], 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: `
2406
+ <ng-container kendoSplitButtonLocalizedMessages
2407
+ i18n-splitButtonLabel="kendo.splitbutton.splitButtonLabel|The text for the SplitButton aria-label"
2408
+ splitButtonLabel="{{ '{buttonText} splitbutton' }}">
2409
+ </ng-container>
2410
+ <button
2411
+ kendoButton
2412
+ #button
2413
+ [type]="type"
2414
+ [tabindex]="componentTabIndex"
2415
+ [disabled]="disabled"
2416
+ [size]="size"
2417
+ [rounded]="rounded"
2418
+ [fillMode]="fillMode"
2419
+ [themeColor]="themeColor"
2420
+ [icon]="icon"
2421
+ [class.k-active]="active"
2422
+ [class.k-icon-button]="!text && icon"
2423
+ [iconClass]="iconClass"
2424
+ [imageUrl]="imageUrl"
2425
+ [ngClass]="buttonClass"
2426
+ (focus)="onButtonFocus()"
2427
+ (click)="onButtonClick()"
2428
+ (blur)="onButtonBlur()"
2429
+ (mousedown)="toggleButtonActiveState(true)"
2430
+ (mouseup)="toggleButtonActiveState(false)"
2431
+ [attr.aria-disabled]="disabled"
2432
+ [attr.aria-expanded]="openState"
2433
+ [attr.aria-haspopup]="true"
2434
+ [attr.aria-owns]="listId"
2435
+ [attr.aria-label]="ariaLabel"
2436
+ >
2437
+ <span *ngIf="text" class="k-button-text">
2438
+ {{ text }}
2439
+ </span><ng-content></ng-content>
2440
+ </button>
2441
+ <button kendoButton #arrowButton type="button"
2442
+ class="k-split-button-arrow"
2443
+ [class.k-active]="activeArrow"
2444
+ [ngClass]="arrowButtonClass"
2445
+ [disabled]="disabled"
2446
+ [icon]="arrowButtonIcon"
2447
+ [size]="size"
2448
+ [rounded]="rounded"
2449
+ [fillMode]="fillMode"
2450
+ [themeColor]="themeColor"
2451
+ [tabindex]="-1"
2452
+ (click)="onArrowButtonClick()"
2453
+ (mousedown)="toggleArrowButtonActiveState(true)"
2454
+ (mouseup)="toggleArrowButtonActiveState(false)"
2455
+ ></button>
2456
+ <ng-template #popupTemplate>
2457
+ <kendo-button-list
2458
+ [id]="listId"
2459
+ [data]="data"
2460
+ [textField]="textField"
2461
+ [itemTemplate]="itemTemplate"
2462
+ (onItemClick)="onItemClick($event)"
2463
+ (keydown)="keyDownHandler($event)"
2464
+ (keypress)="keyPressHandler($event)"
2465
+ (keyup)="keyUpHandler($event)"
2466
+ [attr.dir]="dir"
2467
+ [size]="size"
2468
+ >
2469
+ </kendo-button-list>
2470
+ </ng-template>
2471
+ <ng-container #container></ng-container>
2472
+ `, 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", "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"] }] });
2473
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SplitButtonComponent, decorators: [{
2474
+ type: Component,
2475
+ args: [{
2476
+ exportAs: 'kendoSplitButton',
2477
+ providers: [
2478
+ FocusService,
2479
+ NavigationService,
2480
+ NAVIGATION_SETTINGS_PROVIDER$2,
2481
+ LocalizationService,
2482
+ {
2483
+ provide: L10N_PREFIX,
2484
+ useValue: 'kendo.splitbutton'
2485
+ }
2486
+ ],
2487
+ selector: 'kendo-splitbutton',
2488
+ template: `
2547
2489
  <ng-container kendoSplitButtonLocalizedMessages
2548
2490
  i18n-splitButtonLabel="kendo.splitbutton.splitButtonLabel|The text for the SplitButton aria-label"
2549
2491
  splitButtonLabel="{{ '{buttonText} splitbutton' }}">
@@ -2579,19 +2521,17 @@ SplitButtonComponent = __decorate([
2579
2521
  {{ text }}
2580
2522
  </span><ng-content></ng-content>
2581
2523
  </button>
2582
- <button
2583
- kendoButton
2584
- #arrowButton
2585
- type="button"
2524
+ <button kendoButton #arrowButton type="button"
2525
+ class="k-split-button-arrow"
2586
2526
  [class.k-active]="activeArrow"
2527
+ [ngClass]="arrowButtonClass"
2587
2528
  [disabled]="disabled"
2588
2529
  [icon]="arrowButtonIcon"
2589
2530
  [size]="size"
2590
2531
  [rounded]="rounded"
2591
2532
  [fillMode]="fillMode"
2592
- [themeColor]="fillMode ? themeColor : null"
2533
+ [themeColor]="themeColor"
2593
2534
  [tabindex]="-1"
2594
- [ngClass]="arrowButtonClass"
2595
2535
  (click)="onArrowButtonClick()"
2596
2536
  (mousedown)="toggleArrowButtonActiveState(true)"
2597
2537
  (mouseup)="toggleArrowButtonActiveState(false)"
@@ -2613,57 +2553,98 @@ SplitButtonComponent = __decorate([
2613
2553
  </ng-template>
2614
2554
  <ng-container #container></ng-container>
2615
2555
  `
2616
- }),
2617
- __metadata("design:paramtypes", [FocusService,
2618
- NavigationService,
2619
- ElementRef,
2620
- NgZone,
2621
- PopupService,
2622
- ElementRef,
2623
- LocalizationService,
2624
- ChangeDetectorRef,
2625
- Renderer2])
2626
- ], SplitButtonComponent);
2627
-
2628
- /**
2629
- * @hidden
2630
- */
2631
- class Messages extends ComponentMessages {
2632
- }
2633
- __decorate([
2634
- Input(),
2635
- __metadata("design:type", String)
2636
- ], Messages.prototype, "splitButtonLabel", void 0);
2637
-
2638
- var LocalizedSplitButtonMessagesDirective_1;
2639
- /**
2640
- * @hidden
2641
- */
2642
- let LocalizedSplitButtonMessagesDirective = LocalizedSplitButtonMessagesDirective_1 = class LocalizedSplitButtonMessagesDirective extends Messages {
2643
- constructor(service) {
2644
- super();
2645
- this.service = service;
2646
- }
2647
- };
2648
- LocalizedSplitButtonMessagesDirective = LocalizedSplitButtonMessagesDirective_1 = __decorate([
2649
- Directive({
2650
- providers: [
2651
- {
2652
- provide: Messages,
2653
- useExisting: forwardRef(() => LocalizedSplitButtonMessagesDirective_1)
2654
- }
2655
- ],
2656
- selector: '[kendoSplitButtonLocalizedMessages]'
2657
- }),
2658
- __metadata("design:paramtypes", [LocalizationService])
2659
- ], LocalizedSplitButtonMessagesDirective);
2556
+ }]
2557
+ }], 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: [{
2558
+ type: Input
2559
+ }], icon: [{
2560
+ type: Input
2561
+ }], iconClass: [{
2562
+ type: Input
2563
+ }], type: [{
2564
+ type: Input
2565
+ }], imageUrl: [{
2566
+ type: Input
2567
+ }], size: [{
2568
+ type: Input
2569
+ }], rounded: [{
2570
+ type: Input
2571
+ }], fillMode: [{
2572
+ type: Input
2573
+ }], themeColor: [{
2574
+ type: Input
2575
+ }], disabled: [{
2576
+ type: Input
2577
+ }], popupSettings: [{
2578
+ type: Input
2579
+ }], tabIndex: [{
2580
+ type: Input
2581
+ }], textField: [{
2582
+ type: Input
2583
+ }], data: [{
2584
+ type: Input
2585
+ }], buttonClass: [{
2586
+ type: Input
2587
+ }], arrowButtonClass: [{
2588
+ type: Input
2589
+ }], arrowButtonIcon: [{
2590
+ type: Input
2591
+ }], buttonClick: [{
2592
+ type: Output
2593
+ }], itemClick: [{
2594
+ type: Output
2595
+ }], onFocus: [{
2596
+ type: Output,
2597
+ args: ['focus']
2598
+ }], onBlur: [{
2599
+ type: Output,
2600
+ args: ['blur']
2601
+ }], open: [{
2602
+ type: Output
2603
+ }], close: [{
2604
+ type: Output
2605
+ }], itemTemplate: [{
2606
+ type: ContentChild,
2607
+ args: [ButtonItemTemplateDirective, { static: false }]
2608
+ }], button: [{
2609
+ type: ViewChild,
2610
+ args: ['button', { static: true }]
2611
+ }], arrowButton: [{
2612
+ type: ViewChild,
2613
+ args: ['arrowButton', { static: true, read: ElementRef }]
2614
+ }], popupTemplate: [{
2615
+ type: ViewChild,
2616
+ args: ['popupTemplate', { static: true }]
2617
+ }], containerRef: [{
2618
+ type: ViewChild,
2619
+ args: ['container', { read: ViewContainerRef, static: true }]
2620
+ }], isFocused: [{
2621
+ type: HostBinding,
2622
+ args: ['class.k-focus']
2623
+ }], widgetClasses: [{
2624
+ type: HostBinding,
2625
+ args: ['class.k-split-button']
2626
+ }, {
2627
+ type: HostBinding,
2628
+ args: ['class.k-button-group']
2629
+ }], dir: [{
2630
+ type: HostBinding,
2631
+ args: ['attr.dir']
2632
+ }], keydown: [{
2633
+ type: HostListener,
2634
+ args: ['keydown', ['$event']]
2635
+ }], keypress: [{
2636
+ type: HostListener,
2637
+ args: ['keypress', ['$event']]
2638
+ }], keyup: [{
2639
+ type: HostListener,
2640
+ args: ['keyup', ['$event']]
2641
+ }] } });
2660
2642
 
2661
- var SplitButtonCustomMessagesComponent_1;
2662
2643
  /**
2663
2644
  * Custom component messages override default component messages
2664
2645
  * ([see example]({% slug rtl_buttons %}).
2665
2646
  */
2666
- let SplitButtonCustomMessagesComponent = SplitButtonCustomMessagesComponent_1 = class SplitButtonCustomMessagesComponent extends Messages {
2647
+ class SplitButtonCustomMessagesComponent extends Messages {
2667
2648
  constructor(service) {
2668
2649
  super();
2669
2650
  this.service = service;
@@ -2671,20 +2652,23 @@ let SplitButtonCustomMessagesComponent = SplitButtonCustomMessagesComponent_1 =
2671
2652
  get override() {
2672
2653
  return true;
2673
2654
  }
2674
- };
2675
- SplitButtonCustomMessagesComponent = SplitButtonCustomMessagesComponent_1 = __decorate([
2676
- Component({
2677
- providers: [
2678
- {
2679
- provide: Messages,
2680
- useExisting: forwardRef(() => SplitButtonCustomMessagesComponent_1)
2681
- }
2682
- ],
2683
- selector: 'kendo-splitbutton-messages',
2684
- template: ``
2685
- }),
2686
- __metadata("design:paramtypes", [LocalizationService])
2687
- ], SplitButtonCustomMessagesComponent);
2655
+ }
2656
+ SplitButtonCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SplitButtonCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
2657
+ SplitButtonCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SplitButtonCustomMessagesComponent, selector: "kendo-splitbutton-messages", providers: [{
2658
+ provide: Messages,
2659
+ useExisting: forwardRef(() => SplitButtonCustomMessagesComponent)
2660
+ }], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
2661
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SplitButtonCustomMessagesComponent, decorators: [{
2662
+ type: Component,
2663
+ args: [{
2664
+ providers: [{
2665
+ provide: Messages,
2666
+ useExisting: forwardRef(() => SplitButtonCustomMessagesComponent)
2667
+ }],
2668
+ selector: 'kendo-splitbutton-messages',
2669
+ template: ``
2670
+ }]
2671
+ }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
2688
2672
 
2689
2673
  /**
2690
2674
  * @hidden
@@ -2694,24 +2678,28 @@ SplitButtonCustomMessagesComponent = SplitButtonCustomMessagesComponent_1 = __de
2694
2678
  * The package exports:
2695
2679
  * - `SplitButtonComponent`&mdash;The SplitButtonComponent component class.
2696
2680
  */
2697
- let SplitButtonModule = class SplitButtonModule {
2698
- };
2699
- SplitButtonModule = __decorate([
2700
- NgModule({
2701
- declarations: [SplitButtonComponent, LocalizedSplitButtonMessagesDirective, SplitButtonCustomMessagesComponent],
2702
- exports: [SplitButtonComponent, ListModule, LocalizedSplitButtonMessagesDirective, SplitButtonCustomMessagesComponent],
2703
- imports: [CommonModule, PopupModule, ButtonModule, ListModule]
2704
- })
2705
- ], SplitButtonModule);
2681
+ class SplitButtonModule {
2682
+ }
2683
+ SplitButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SplitButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2684
+ 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] });
2685
+ SplitButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SplitButtonModule, imports: [[CommonModule, PopupModule, ButtonModule, ListModule], ListModule] });
2686
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SplitButtonModule, decorators: [{
2687
+ type: NgModule,
2688
+ args: [{
2689
+ declarations: [SplitButtonComponent, LocalizedSplitButtonMessagesDirective, SplitButtonCustomMessagesComponent],
2690
+ exports: [SplitButtonComponent, ListModule, LocalizedSplitButtonMessagesDirective, SplitButtonCustomMessagesComponent],
2691
+ imports: [CommonModule, PopupModule, ButtonModule, ListModule]
2692
+ }]
2693
+ }] });
2706
2694
 
2707
2695
  const NAVIGATION_SETTINGS$1 = {
2708
2696
  useLeftRightArrows: true
2709
2697
  };
2710
- const ɵ0$1 = NAVIGATION_SETTINGS$1;
2711
2698
  const NAVIGATION_SETTINGS_PROVIDER$1 = {
2712
2699
  provide: NAVIGATION_CONFIG,
2713
- useValue: ɵ0$1
2700
+ useValue: NAVIGATION_SETTINGS$1
2714
2701
  };
2702
+ const DEFAULT_FILL_MODE = 'solid';
2715
2703
  /**
2716
2704
  * Represents the Kendo UI DropDownButton component for Angular.
2717
2705
  *
@@ -2740,7 +2728,7 @@ const NAVIGATION_SETTINGS_PROVIDER$1 = {
2740
2728
  * }
2741
2729
  * ```
2742
2730
  */
2743
- let DropDownButtonComponent = class DropDownButtonComponent extends ListButton {
2731
+ class DropDownButtonComponent extends ListButton {
2744
2732
  constructor(focusService, navigationService, wrapperRef, zone, popupService, elRef, localization, cdr) {
2745
2733
  super(focusService, navigationService, wrapperRef, zone, localization, cdr);
2746
2734
  this.popupService = popupService;
@@ -2762,32 +2750,22 @@ let DropDownButtonComponent = class DropDownButtonComponent extends ListButton {
2762
2750
  * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-size)).
2763
2751
  *
2764
2752
  * The possible values are:
2765
- * * `'small'`
2766
- * * `'medium'` (default)
2767
- * * `'large'`
2768
- * * `null`
2753
+ * * `small`
2754
+ * * `medium` (default)
2755
+ * * `large`
2756
+ * * `none`
2769
2757
  */
2770
2758
  this.size = 'medium';
2771
- /**
2772
- * The shape property specifies if the DropDownButton will be a square or rectangle.
2773
- * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-shape)).
2774
- *
2775
- * The possible values are:
2776
- * * `'rectangle'` (default)
2777
- * * `'square'`
2778
- * * `null`
2779
- */
2780
- this.shape = 'rectangle';
2781
2759
  /**
2782
2760
  * The rounded property specifies the border radius of the DropDownButton
2783
2761
  * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-rounded)).
2784
2762
  *
2785
2763
  * The possible values are:
2786
- * * `'small'`
2787
- * * `'medium'` (default)
2788
- * * `'large'`
2789
- * * `'full'`
2790
- * * `null`
2764
+ * * `small`
2765
+ * * `medium` (default)
2766
+ * * `large`
2767
+ * * `full`
2768
+ * * `none`
2791
2769
  */
2792
2770
  this.rounded = 'medium';
2793
2771
  /**
@@ -2807,7 +2785,7 @@ let DropDownButtonComponent = class DropDownButtonComponent extends ListButton {
2807
2785
  * * `dark`&mdash; Applies coloring based on the `dark` theme color.
2808
2786
  * * `light`&mdash; Applies coloring based on the `light` theme color.
2809
2787
  * * `inverse`&mdash; Applies coloring based on the `inverse` theme color.
2810
- * * `null` &mdash;Removes the default CSS class (no class would be rendered).
2788
+ * * `none` &mdash;Removes the default CSS class (no class would be rendered).
2811
2789
  */
2812
2790
  this.themeColor = 'base';
2813
2791
  /**
@@ -2831,13 +2809,13 @@ let DropDownButtonComponent = class DropDownButtonComponent extends ListButton {
2831
2809
  /**
2832
2810
  * Fires each time the DropDownButton gets focused.
2833
2811
  */
2834
- this.onFocus = new EventEmitter(); //tslint:disable-line:no-output-rename
2812
+ this.onFocus = new EventEmitter();
2835
2813
  /**
2836
2814
  * Fires each time the DropDownButton gets blurred.
2837
2815
  */
2838
- this.onBlur = new EventEmitter(); //tslint:disable-line:no-output-rename
2816
+ this.onBlur = new EventEmitter();
2839
2817
  this.listId = guid();
2840
- this._fillMode = 'solid';
2818
+ this._fillMode = DEFAULT_FILL_MODE;
2841
2819
  this.popupSubs = new Subscription();
2842
2820
  this._itemClick = this.itemClick;
2843
2821
  this._blur = this.onBlur;
@@ -2889,7 +2867,7 @@ let DropDownButtonComponent = class DropDownButtonComponent extends ListButton {
2889
2867
  * * `flat`
2890
2868
  * * `outline`
2891
2869
  * * `link`
2892
- * * `null`
2870
+ * * `none`
2893
2871
  */
2894
2872
  set fillMode(fillMode) {
2895
2873
  this._fillMode = fillMode === 'clear' ? 'flat' : fillMode;
@@ -3157,167 +3135,76 @@ let DropDownButtonComponent = class DropDownButtonComponent extends ListButton {
3157
3135
  this.popupSubs.unsubscribe();
3158
3136
  }
3159
3137
  }
3160
- };
3161
- __decorate([
3162
- Input(),
3163
- __metadata("design:type", String)
3164
- ], DropDownButtonComponent.prototype, "icon", void 0);
3165
- __decorate([
3166
- Input(),
3167
- __metadata("design:type", String)
3168
- ], DropDownButtonComponent.prototype, "iconClass", void 0);
3169
- __decorate([
3170
- Input(),
3171
- __metadata("design:type", String)
3172
- ], DropDownButtonComponent.prototype, "imageUrl", void 0);
3173
- __decorate([
3174
- Input(),
3175
- __metadata("design:type", Object),
3176
- __metadata("design:paramtypes", [Object])
3177
- ], DropDownButtonComponent.prototype, "popupSettings", null);
3178
- __decorate([
3179
- Input(),
3180
- __metadata("design:type", String)
3181
- ], DropDownButtonComponent.prototype, "textField", void 0);
3182
- __decorate([
3183
- Input(),
3184
- __metadata("design:type", Boolean),
3185
- __metadata("design:paramtypes", [Boolean])
3186
- ], DropDownButtonComponent.prototype, "disabled", null);
3187
- __decorate([
3188
- Input(),
3189
- __metadata("design:type", Object),
3190
- __metadata("design:paramtypes", [Object])
3191
- ], DropDownButtonComponent.prototype, "data", null);
3192
- __decorate([
3193
- Input(),
3194
- __metadata("design:type", String)
3195
- ], DropDownButtonComponent.prototype, "size", void 0);
3196
- __decorate([
3197
- Input(),
3198
- __metadata("design:type", String)
3199
- ], DropDownButtonComponent.prototype, "shape", void 0);
3200
- __decorate([
3201
- Input(),
3202
- __metadata("design:type", String)
3203
- ], DropDownButtonComponent.prototype, "rounded", void 0);
3204
- __decorate([
3205
- Input(),
3206
- __metadata("design:type", String),
3207
- __metadata("design:paramtypes", [String])
3208
- ], DropDownButtonComponent.prototype, "fillMode", null);
3209
- __decorate([
3210
- Input(),
3211
- __metadata("design:type", String)
3212
- ], DropDownButtonComponent.prototype, "themeColor", void 0);
3213
- __decorate([
3214
- Input(),
3215
- __metadata("design:type", Object)
3216
- ], DropDownButtonComponent.prototype, "buttonClass", void 0);
3217
- __decorate([
3218
- Input(),
3219
- __metadata("design:type", Number)
3220
- ], DropDownButtonComponent.prototype, "tabIndex", void 0);
3221
- __decorate([
3222
- Output(),
3223
- __metadata("design:type", EventEmitter)
3224
- ], DropDownButtonComponent.prototype, "itemClick", void 0);
3225
- __decorate([
3226
- Output(),
3227
- __metadata("design:type", EventEmitter)
3228
- ], DropDownButtonComponent.prototype, "open", void 0);
3229
- __decorate([
3230
- Output(),
3231
- __metadata("design:type", EventEmitter)
3232
- ], DropDownButtonComponent.prototype, "close", void 0);
3233
- __decorate([
3234
- Output('focus'),
3235
- __metadata("design:type", EventEmitter)
3236
- ], DropDownButtonComponent.prototype, "onFocus", void 0);
3237
- __decorate([
3238
- Output('blur'),
3239
- __metadata("design:type", EventEmitter)
3240
- ], DropDownButtonComponent.prototype, "onBlur", void 0);
3241
- __decorate([
3242
- HostBinding('class.k-focus'),
3243
- __metadata("design:type", Boolean),
3244
- __metadata("design:paramtypes", [])
3245
- ], DropDownButtonComponent.prototype, "focused", null);
3246
- __decorate([
3247
- HostBinding('class.k-dropdown-button'),
3248
- __metadata("design:type", Boolean),
3249
- __metadata("design:paramtypes", [])
3250
- ], DropDownButtonComponent.prototype, "widgetClasses", null);
3251
- __decorate([
3252
- HostBinding('attr.dir'),
3253
- __metadata("design:type", String),
3254
- __metadata("design:paramtypes", [])
3255
- ], DropDownButtonComponent.prototype, "dir", null);
3256
- __decorate([
3257
- ContentChild(ButtonItemTemplateDirective, { static: false }),
3258
- __metadata("design:type", ButtonItemTemplateDirective)
3259
- ], DropDownButtonComponent.prototype, "itemTemplate", void 0);
3260
- __decorate([
3261
- ViewChild('button', { static: true }),
3262
- __metadata("design:type", ElementRef)
3263
- ], DropDownButtonComponent.prototype, "button", void 0);
3264
- __decorate([
3265
- ViewChild('buttonList', { static: false }),
3266
- __metadata("design:type", ListComponent)
3267
- ], DropDownButtonComponent.prototype, "buttonList", void 0);
3268
- __decorate([
3269
- ViewChild('popupTemplate', { static: true }),
3270
- __metadata("design:type", TemplateRef)
3271
- ], DropDownButtonComponent.prototype, "popupTemplate", void 0);
3272
- __decorate([
3273
- ViewChild('container', { read: ViewContainerRef, static: true }),
3274
- __metadata("design:type", ViewContainerRef)
3275
- ], DropDownButtonComponent.prototype, "container", void 0);
3276
- __decorate([
3277
- HostListener('keydown', ['$event']),
3278
- __metadata("design:type", Function),
3279
- __metadata("design:paramtypes", [Object]),
3280
- __metadata("design:returntype", void 0)
3281
- ], DropDownButtonComponent.prototype, "keydown", null);
3282
- __decorate([
3283
- HostListener('keypress', ['$event']),
3284
- __metadata("design:type", Function),
3285
- __metadata("design:paramtypes", [Object]),
3286
- __metadata("design:returntype", void 0)
3287
- ], DropDownButtonComponent.prototype, "keypress", null);
3288
- __decorate([
3289
- HostListener('keyup', ['$event']),
3290
- __metadata("design:type", Function),
3291
- __metadata("design:paramtypes", [Object]),
3292
- __metadata("design:returntype", void 0)
3293
- ], DropDownButtonComponent.prototype, "keyup", null);
3294
- __decorate([
3295
- HostListener('mousedown', ['$event']),
3296
- __metadata("design:type", Function),
3297
- __metadata("design:paramtypes", [Object]),
3298
- __metadata("design:returntype", void 0)
3299
- ], DropDownButtonComponent.prototype, "mousedown", null);
3300
- __decorate([
3301
- HostListener('mouseup', ['$event']),
3302
- __metadata("design:type", Function),
3303
- __metadata("design:paramtypes", [Object]),
3304
- __metadata("design:returntype", void 0)
3305
- ], DropDownButtonComponent.prototype, "mouseup", null);
3306
- DropDownButtonComponent = __decorate([
3307
- Component({
3308
- exportAs: 'kendoDropDownButton',
3309
- providers: [
3310
- FocusService,
3311
- NavigationService,
3312
- NAVIGATION_SETTINGS_PROVIDER$1,
3313
- LocalizationService,
3314
- {
3315
- provide: L10N_PREFIX,
3316
- useValue: 'kendo.dropdownbutton'
3317
- }
3318
- ],
3319
- selector: 'kendo-dropdownbutton',
3320
- template: `
3138
+ }
3139
+ 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 });
3140
+ 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", 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: [
3141
+ FocusService,
3142
+ NavigationService,
3143
+ NAVIGATION_SETTINGS_PROVIDER$1,
3144
+ LocalizationService,
3145
+ {
3146
+ provide: L10N_PREFIX,
3147
+ useValue: 'kendo.dropdownbutton'
3148
+ }
3149
+ ], 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: `
3150
+ <button kendoButton #button
3151
+ role="menu"
3152
+ type="button"
3153
+ [tabindex]="componentTabIndex"
3154
+ [class.k-active]="active"
3155
+ [disabled]="disabled"
3156
+ [icon]="icon"
3157
+ [iconClass]="iconClass"
3158
+ [imageUrl]="imageUrl"
3159
+ [ngClass]="buttonClass"
3160
+ [size]="size"
3161
+ [rounded]="rounded"
3162
+ [fillMode]="fillMode"
3163
+ [themeColor]="fillMode ? themeColor : null"
3164
+ (click)="openPopup()"
3165
+ (focus)="handleFocus()"
3166
+ (blur)="onButtonBlur()"
3167
+ [attr.aria-disabled]="disabled"
3168
+ [attr.aria-expanded]="openState"
3169
+ [attr.aria-haspopup]="true"
3170
+ [attr.aria-owns]="listId"
3171
+ >
3172
+ <ng-content></ng-content>
3173
+ </button>
3174
+ <ng-template #popupTemplate>
3175
+ <kendo-button-list
3176
+ #buttonList
3177
+ [id]="listId"
3178
+ [data]="data"
3179
+ [textField]="textField"
3180
+ [itemTemplate]="itemTemplate"
3181
+ (onItemClick)="onItemClick($event)"
3182
+ (keydown)="keyDownHandler($event)"
3183
+ (keypress)="keyPressHandler($event)"
3184
+ (keyup)="keyUpHandler($event)"
3185
+ [attr.dir]="dir"
3186
+ [size]="size"
3187
+ >
3188
+ </kendo-button-list>
3189
+ </ng-template>
3190
+ <ng-container #container></ng-container>
3191
+ `, 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", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
3192
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropDownButtonComponent, decorators: [{
3193
+ type: Component,
3194
+ args: [{
3195
+ exportAs: 'kendoDropDownButton',
3196
+ providers: [
3197
+ FocusService,
3198
+ NavigationService,
3199
+ NAVIGATION_SETTINGS_PROVIDER$1,
3200
+ LocalizationService,
3201
+ {
3202
+ provide: L10N_PREFIX,
3203
+ useValue: 'kendo.dropdownbutton'
3204
+ }
3205
+ ],
3206
+ selector: 'kendo-dropdownbutton',
3207
+ template: `
3321
3208
  <button kendoButton #button
3322
3209
  role="menu"
3323
3210
  type="button"
@@ -3329,7 +3216,6 @@ DropDownButtonComponent = __decorate([
3329
3216
  [imageUrl]="imageUrl"
3330
3217
  [ngClass]="buttonClass"
3331
3218
  [size]="size"
3332
- [shape]="shape"
3333
3219
  [rounded]="rounded"
3334
3220
  [fillMode]="fillMode"
3335
3221
  [themeColor]="fillMode ? themeColor : null"
@@ -3361,16 +3247,85 @@ DropDownButtonComponent = __decorate([
3361
3247
  </ng-template>
3362
3248
  <ng-container #container></ng-container>
3363
3249
  `
3364
- }),
3365
- __metadata("design:paramtypes", [FocusService,
3366
- NavigationService,
3367
- ElementRef,
3368
- NgZone,
3369
- PopupService,
3370
- ElementRef,
3371
- LocalizationService,
3372
- ChangeDetectorRef])
3373
- ], DropDownButtonComponent);
3250
+ }]
3251
+ }], 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: [{
3252
+ type: Input
3253
+ }], iconClass: [{
3254
+ type: Input
3255
+ }], imageUrl: [{
3256
+ type: Input
3257
+ }], popupSettings: [{
3258
+ type: Input
3259
+ }], textField: [{
3260
+ type: Input
3261
+ }], disabled: [{
3262
+ type: Input
3263
+ }], data: [{
3264
+ type: Input
3265
+ }], size: [{
3266
+ type: Input
3267
+ }], rounded: [{
3268
+ type: Input
3269
+ }], fillMode: [{
3270
+ type: Input
3271
+ }], themeColor: [{
3272
+ type: Input
3273
+ }], buttonClass: [{
3274
+ type: Input
3275
+ }], tabIndex: [{
3276
+ type: Input
3277
+ }], itemClick: [{
3278
+ type: Output
3279
+ }], open: [{
3280
+ type: Output
3281
+ }], close: [{
3282
+ type: Output
3283
+ }], onFocus: [{
3284
+ type: Output,
3285
+ args: ['focus']
3286
+ }], onBlur: [{
3287
+ type: Output,
3288
+ args: ['blur']
3289
+ }], focused: [{
3290
+ type: HostBinding,
3291
+ args: ['class.k-focus']
3292
+ }], widgetClasses: [{
3293
+ type: HostBinding,
3294
+ args: ['class.k-dropdown-button']
3295
+ }], dir: [{
3296
+ type: HostBinding,
3297
+ args: ['attr.dir']
3298
+ }], itemTemplate: [{
3299
+ type: ContentChild,
3300
+ args: [ButtonItemTemplateDirective, { static: false }]
3301
+ }], button: [{
3302
+ type: ViewChild,
3303
+ args: ['button', { static: true }]
3304
+ }], buttonList: [{
3305
+ type: ViewChild,
3306
+ args: ['buttonList', { static: false }]
3307
+ }], popupTemplate: [{
3308
+ type: ViewChild,
3309
+ args: ['popupTemplate', { static: true }]
3310
+ }], container: [{
3311
+ type: ViewChild,
3312
+ args: ['container', { read: ViewContainerRef, static: true }]
3313
+ }], keydown: [{
3314
+ type: HostListener,
3315
+ args: ['keydown', ['$event']]
3316
+ }], keypress: [{
3317
+ type: HostListener,
3318
+ args: ['keypress', ['$event']]
3319
+ }], keyup: [{
3320
+ type: HostListener,
3321
+ args: ['keyup', ['$event']]
3322
+ }], mousedown: [{
3323
+ type: HostListener,
3324
+ args: ['mousedown', ['$event']]
3325
+ }], mouseup: [{
3326
+ type: HostListener,
3327
+ args: ['mouseup', ['$event']]
3328
+ }] } });
3374
3329
 
3375
3330
  /**
3376
3331
  * @hidden
@@ -3380,20 +3335,24 @@ DropDownButtonComponent = __decorate([
3380
3335
  * The package exports:
3381
3336
  * - `DropDownButtonComponent`&mdash;The DropDownButtonComponent component class.
3382
3337
  */
3383
- let DropDownButtonModule = class DropDownButtonModule {
3384
- };
3385
- DropDownButtonModule = __decorate([
3386
- NgModule({
3387
- declarations: [DropDownButtonComponent],
3388
- exports: [DropDownButtonComponent, ListModule],
3389
- imports: [CommonModule, PopupModule, ListModule, ButtonModule]
3390
- })
3391
- ], DropDownButtonModule);
3338
+ class DropDownButtonModule {
3339
+ }
3340
+ DropDownButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropDownButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3341
+ 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] });
3342
+ DropDownButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropDownButtonModule, imports: [[CommonModule, PopupModule, ListModule, ButtonModule], ListModule] });
3343
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropDownButtonModule, decorators: [{
3344
+ type: NgModule,
3345
+ args: [{
3346
+ declarations: [DropDownButtonComponent],
3347
+ exports: [DropDownButtonComponent, ListModule],
3348
+ imports: [CommonModule, PopupModule, ListModule, ButtonModule]
3349
+ }]
3350
+ }] });
3392
3351
 
3393
3352
  /**
3394
3353
  * Displays a Chip that represents an input, attribute or an action.
3395
3354
  */
3396
- let ChipComponent = class ChipComponent {
3355
+ class ChipComponent {
3397
3356
  constructor(element, renderer, ngZone, localizationService) {
3398
3357
  this.element = element;
3399
3358
  this.renderer = renderer;
@@ -3439,14 +3398,16 @@ let ChipComponent = class ChipComponent {
3439
3398
  * ([see example]({% slug appearance_chip %}#toc-size)).
3440
3399
  *
3441
3400
  * The possible values are:
3442
- * * `'small'`
3443
- * * `'medium'` (default)
3444
- * * `'large'`
3445
- * * `null`
3401
+ * * `small`
3402
+ * * `medium` (default)
3403
+ * * `large`
3404
+ * * `none`
3446
3405
  */
3447
3406
  set size(size) {
3448
- this.handleClasses(size, 'size');
3449
- this._size = size;
3407
+ if (isPresent(size)) {
3408
+ this._size = size;
3409
+ }
3410
+ this.handleClasses(this._size, 'size');
3450
3411
  }
3451
3412
  get size() {
3452
3413
  return this._size;
@@ -3456,15 +3417,17 @@ let ChipComponent = class ChipComponent {
3456
3417
  * ([see example]({% slug appearance_chip %}#toc-rounded)).
3457
3418
  *
3458
3419
  * The possible values are:
3459
- * * `'small'`
3460
- * * `'medium'` (default)
3461
- * * `'large'`
3462
- * * `'full'`
3463
- * * `null`
3420
+ * * `small`
3421
+ * * `medium` (default)
3422
+ * * `large`
3423
+ * * `full`
3424
+ * * `none`
3464
3425
  */
3465
3426
  set rounded(rounded) {
3466
- this.handleClasses(rounded, 'rounded');
3467
- this._rounded = rounded;
3427
+ if (isPresent(rounded)) {
3428
+ this._rounded = rounded;
3429
+ }
3430
+ this.handleClasses(this._rounded, 'rounded');
3468
3431
  }
3469
3432
  get rounded() {
3470
3433
  return this._rounded;
@@ -3474,13 +3437,15 @@ let ChipComponent = class ChipComponent {
3474
3437
  * ([see example]({% slug appearance_chip %}#toc-fillMode)).
3475
3438
  *
3476
3439
  * The possible values are:
3477
- * * `'solid'` (default)
3478
- * * `'outline'`
3479
- * * `null`
3440
+ * * `solid` (default)
3441
+ * * `outline`
3442
+ * * `none`
3480
3443
  */
3481
3444
  set fillMode(fillMode) {
3482
- this.handleClasses(fillMode, 'fillMode');
3483
- this._fillMode = fillMode;
3445
+ if (isPresent(fillMode)) {
3446
+ this._fillMode = fillMode;
3447
+ }
3448
+ this.handleClasses(this._fillMode, 'fillMode');
3484
3449
  }
3485
3450
  get fillMode() {
3486
3451
  return this._fillMode;
@@ -3491,16 +3456,18 @@ let ChipComponent = class ChipComponent {
3491
3456
  * ([see example]({% slug appearance_chip %}#toc-themeColor)).
3492
3457
  *
3493
3458
  * The possible values are:
3494
- * * `'base'` (default)
3495
- * * `'info'`
3496
- * * `'success'`
3497
- * * `'warning'`
3498
- * * `'error'`
3499
- * * `null`
3459
+ * * `base` (default)
3460
+ * * `info`
3461
+ * * `success`
3462
+ * * `warning`
3463
+ * * `error`
3464
+ * * `none`
3500
3465
  */
3501
3466
  set themeColor(themeColor) {
3502
- this.handleThemeColor(themeColor);
3503
- this._themeColor = themeColor;
3467
+ if (isPresent(themeColor)) {
3468
+ this._themeColor = themeColor;
3469
+ }
3470
+ this.handleThemeColor(this._themeColor);
3504
3471
  }
3505
3472
  get themeColor() {
3506
3473
  return this._themeColor;
@@ -3637,115 +3604,67 @@ let ChipComponent = class ChipComponent {
3637
3604
  const addFillMode = fillMode ? fillMode : this.fillMode;
3638
3605
  const themeColorClass = getThemeColorClasses('chip', removeFillMode, addFillMode, this.themeColor, value);
3639
3606
  this.renderer.removeClass(elem, themeColorClass.toRemove);
3640
- if (addFillMode !== null && fillMode !== null) {
3607
+ if (addFillMode !== 'none' && fillMode !== 'none') {
3641
3608
  if (themeColorClass.toAdd) {
3642
3609
  this.renderer.addClass(elem, themeColorClass.toAdd);
3643
3610
  }
3644
3611
  }
3645
3612
  }
3646
- };
3647
- __decorate([
3648
- Input(),
3649
- __metadata("design:type", String)
3650
- ], ChipComponent.prototype, "label", void 0);
3651
- __decorate([
3652
- Input(),
3653
- __metadata("design:type", String)
3654
- ], ChipComponent.prototype, "icon", void 0);
3655
- __decorate([
3656
- Input(),
3657
- __metadata("design:type", String)
3658
- ], ChipComponent.prototype, "iconClass", void 0);
3659
- __decorate([
3660
- Input(),
3661
- __metadata("design:type", String)
3662
- ], ChipComponent.prototype, "avatarClass", void 0);
3663
- __decorate([
3664
- Input(),
3665
- __metadata("design:type", Boolean)
3666
- ], ChipComponent.prototype, "selected", void 0);
3667
- __decorate([
3668
- Input(),
3669
- __metadata("design:type", Boolean)
3670
- ], ChipComponent.prototype, "removable", void 0);
3671
- __decorate([
3672
- Input(),
3673
- __metadata("design:type", String)
3674
- ], ChipComponent.prototype, "removeIcon", void 0);
3675
- __decorate([
3676
- Input(),
3677
- __metadata("design:type", Boolean)
3678
- ], ChipComponent.prototype, "disabled", void 0);
3679
- __decorate([
3680
- Input(),
3681
- __metadata("design:type", String),
3682
- __metadata("design:paramtypes", [String])
3683
- ], ChipComponent.prototype, "size", null);
3684
- __decorate([
3685
- Input(),
3686
- __metadata("design:type", String),
3687
- __metadata("design:paramtypes", [String])
3688
- ], ChipComponent.prototype, "rounded", null);
3689
- __decorate([
3690
- Input(),
3691
- __metadata("design:type", String),
3692
- __metadata("design:paramtypes", [String])
3693
- ], ChipComponent.prototype, "fillMode", null);
3694
- __decorate([
3695
- Input(),
3696
- __metadata("design:type", String),
3697
- __metadata("design:paramtypes", [String])
3698
- ], ChipComponent.prototype, "themeColor", null);
3699
- __decorate([
3700
- Output(),
3701
- __metadata("design:type", EventEmitter)
3702
- ], ChipComponent.prototype, "remove", void 0);
3703
- __decorate([
3704
- Output(),
3705
- __metadata("design:type", EventEmitter)
3706
- ], ChipComponent.prototype, "contentClick", void 0);
3707
- __decorate([
3708
- HostBinding('attr.tabindex'),
3709
- __metadata("design:type", Number)
3710
- ], ChipComponent.prototype, "tabIndex", void 0);
3711
- __decorate([
3712
- HostBinding('attr.aria-checked'),
3713
- __metadata("design:type", Boolean),
3714
- __metadata("design:paramtypes", [])
3715
- ], ChipComponent.prototype, "ariaChecked", null);
3716
- __decorate([
3717
- HostBinding('class.k-chip'),
3718
- __metadata("design:type", Boolean)
3719
- ], ChipComponent.prototype, "hostClass", void 0);
3720
- __decorate([
3721
- HostBinding('class.k-chip-has-icon'),
3722
- __metadata("design:type", Boolean),
3723
- __metadata("design:paramtypes", [])
3724
- ], ChipComponent.prototype, "hasIconClass", null);
3725
- __decorate([
3726
- HostBinding('attr.aria-disabled'),
3727
- HostBinding('class.k-disabled'),
3728
- __metadata("design:type", Boolean),
3729
- __metadata("design:paramtypes", [])
3730
- ], ChipComponent.prototype, "disabledClass", null);
3731
- __decorate([
3732
- HostBinding('class.k-selected'),
3733
- __metadata("design:type", Boolean),
3734
- __metadata("design:paramtypes", [])
3735
- ], ChipComponent.prototype, "selectedClass", null);
3736
- __decorate([
3737
- HostBinding('class.k-focus'),
3738
- __metadata("design:type", Boolean),
3739
- __metadata("design:paramtypes", [])
3740
- ], ChipComponent.prototype, "focusedClass", null);
3741
- __decorate([
3742
- HostBinding('attr.dir'),
3743
- __metadata("design:type", String)
3744
- ], ChipComponent.prototype, "direction", void 0);
3745
- ChipComponent = __decorate([
3746
- Component({
3747
- selector: 'kendo-chip',
3748
- template: `
3613
+ }
3614
+ 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 });
3615
+ 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: [
3616
+ LocalizationService,
3617
+ {
3618
+ provide: L10N_PREFIX,
3619
+ useValue: 'kendo.chip'
3620
+ }
3621
+ ], ngImport: i0, template: `
3622
+ <span
3623
+ *ngIf="icon"
3624
+ class="k-chip-icon k-icon"
3625
+ [ngClass]="kendoIconClass"
3626
+ >
3627
+ </span>
3628
+
3629
+ <span
3630
+ *ngIf="iconClass"
3631
+ class="k-chip-icon"
3632
+ [ngClass]="customIconClass"
3633
+ >
3634
+ </span>
3635
+
3636
+ <span
3637
+ *ngIf="avatarClass"
3638
+ class="k-chip-avatar k-avatar k-rounded-full"
3639
+ >
3640
+ <span class="k-avatar-image" [ngClass]="chipAvatarClass"></span>
3641
+ </span>
3642
+
3643
+ <span class="k-chip-content">
3644
+ <span class="k-chip-label" *ngIf="label">
3645
+ {{ label }}
3646
+ </span>
3647
+ <ng-content *ngIf="!label"></ng-content>
3648
+ </span>
3649
+
3650
+ <span class="k-chip-actions">
3651
+ <span class="k-chip-action k-chip-remove-action"
3652
+ *ngIf="removable"
3653
+ (click)="onRemoveClick($event)"
3654
+ >
3655
+ <span
3656
+ class="k-icon"
3657
+ [ngClass]="removeIconClass"
3658
+ >
3659
+ </span>
3660
+ </span>
3661
+ </span>
3662
+ `, isInline: true, directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
3663
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChipComponent, decorators: [{
3664
+ type: Component,
3665
+ args: [{
3666
+ selector: 'kendo-chip',
3667
+ template: `
3749
3668
  <span
3750
3669
  *ngIf="icon"
3751
3670
  class="k-chip-icon k-icon"
@@ -3787,21 +3706,72 @@ ChipComponent = __decorate([
3787
3706
  </span>
3788
3707
  </span>
3789
3708
  `,
3790
- providers: [
3791
- LocalizationService,
3792
- {
3793
- provide: L10N_PREFIX,
3794
- useValue: 'kendo.chip'
3795
- }
3796
- ]
3797
- }),
3798
- __metadata("design:paramtypes", [ElementRef,
3799
- Renderer2,
3800
- NgZone,
3801
- LocalizationService])
3802
- ], ChipComponent);
3709
+ providers: [
3710
+ LocalizationService,
3711
+ {
3712
+ provide: L10N_PREFIX,
3713
+ useValue: 'kendo.chip'
3714
+ }
3715
+ ]
3716
+ }]
3717
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i1.LocalizationService }]; }, propDecorators: { label: [{
3718
+ type: Input
3719
+ }], icon: [{
3720
+ type: Input
3721
+ }], iconClass: [{
3722
+ type: Input
3723
+ }], avatarClass: [{
3724
+ type: Input
3725
+ }], selected: [{
3726
+ type: Input
3727
+ }], removable: [{
3728
+ type: Input
3729
+ }], removeIcon: [{
3730
+ type: Input
3731
+ }], disabled: [{
3732
+ type: Input
3733
+ }], size: [{
3734
+ type: Input
3735
+ }], rounded: [{
3736
+ type: Input
3737
+ }], fillMode: [{
3738
+ type: Input
3739
+ }], themeColor: [{
3740
+ type: Input
3741
+ }], remove: [{
3742
+ type: Output
3743
+ }], contentClick: [{
3744
+ type: Output
3745
+ }], tabIndex: [{
3746
+ type: HostBinding,
3747
+ args: ['attr.tabindex']
3748
+ }], ariaChecked: [{
3749
+ type: HostBinding,
3750
+ args: ['attr.aria-checked']
3751
+ }], hostClass: [{
3752
+ type: HostBinding,
3753
+ args: ['class.k-chip']
3754
+ }], hasIconClass: [{
3755
+ type: HostBinding,
3756
+ args: ['class.k-chip-has-icon']
3757
+ }], disabledClass: [{
3758
+ type: HostBinding,
3759
+ args: ['attr.aria-disabled']
3760
+ }, {
3761
+ type: HostBinding,
3762
+ args: ['class.k-disabled']
3763
+ }], selectedClass: [{
3764
+ type: HostBinding,
3765
+ args: ['class.k-selected']
3766
+ }], focusedClass: [{
3767
+ type: HostBinding,
3768
+ args: ['class.k-focus']
3769
+ }], direction: [{
3770
+ type: HostBinding,
3771
+ args: ['attr.dir']
3772
+ }] } });
3803
3773
 
3804
- let ChipListComponent = class ChipListComponent {
3774
+ class ChipListComponent {
3805
3775
  constructor(localizationService, renderer, element) {
3806
3776
  this.localizationService = localizationService;
3807
3777
  this.renderer = renderer;
@@ -3837,11 +3807,12 @@ let ChipListComponent = class ChipListComponent {
3837
3807
  * * `'small'`
3838
3808
  * * `'medium'` (default)
3839
3809
  * * `'large'`
3840
- * * `null`
3810
+ * * `none`
3841
3811
  */
3842
3812
  set size(size) {
3843
- this.handleClasses(size, 'size');
3844
- this._size = size;
3813
+ const sizeValue = size ? size : 'medium';
3814
+ this.handleClasses(sizeValue, 'size');
3815
+ this._size = sizeValue;
3845
3816
  }
3846
3817
  get size() {
3847
3818
  return this._size;
@@ -3918,81 +3889,69 @@ let ChipListComponent = class ChipListComponent {
3918
3889
  this.renderer.addClass(elem, classes.toAdd);
3919
3890
  }
3920
3891
  }
3921
- };
3922
- __decorate([
3923
- HostBinding('class.k-chip-list'),
3924
- __metadata("design:type", Boolean)
3925
- ], ChipListComponent.prototype, "hostClass", void 0);
3926
- __decorate([
3927
- HostBinding('attr.dir'),
3928
- __metadata("design:type", String)
3929
- ], ChipListComponent.prototype, "direction", void 0);
3930
- __decorate([
3931
- Input(),
3932
- __metadata("design:type", String)
3933
- ], ChipListComponent.prototype, "selection", void 0);
3934
- __decorate([
3935
- Input(),
3936
- __metadata("design:type", String),
3937
- __metadata("design:paramtypes", [String])
3938
- ], ChipListComponent.prototype, "size", null);
3939
- __decorate([
3940
- Output(),
3941
- __metadata("design:type", EventEmitter)
3942
- ], ChipListComponent.prototype, "selectedChange", void 0);
3943
- __decorate([
3944
- Output(),
3945
- __metadata("design:type", EventEmitter)
3946
- ], ChipListComponent.prototype, "remove", void 0);
3947
- __decorate([
3948
- ContentChildren(ChipComponent),
3949
- __metadata("design:type", QueryList)
3950
- ], ChipListComponent.prototype, "chips", void 0);
3951
- __decorate([
3952
- HostBinding('class.k-selection-single'),
3953
- __metadata("design:type", Boolean),
3954
- __metadata("design:paramtypes", [])
3955
- ], ChipListComponent.prototype, "single", null);
3956
- __decorate([
3957
- HostBinding('class.k-selection-multiple'),
3958
- __metadata("design:type", Boolean),
3959
- __metadata("design:paramtypes", [])
3960
- ], ChipListComponent.prototype, "multiple", null);
3961
- __decorate([
3962
- HostBinding('attr.role'),
3963
- __metadata("design:type", String)
3964
- ], ChipListComponent.prototype, "role", void 0);
3965
- __decorate([
3966
- HostListener('click', ['$event']),
3967
- __metadata("design:type", Function),
3968
- __metadata("design:paramtypes", [Object]),
3969
- __metadata("design:returntype", void 0)
3970
- ], ChipListComponent.prototype, "onClick", null);
3971
- ChipListComponent = __decorate([
3972
- Component({
3973
- selector: 'kendo-chiplist, kendo-chip-list',
3974
- template: `
3892
+ }
3893
+ 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 });
3894
+ 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: [
3895
+ LocalizationService,
3896
+ {
3897
+ provide: L10N_PREFIX,
3898
+ useValue: 'kendo.chiplist'
3899
+ }
3900
+ ], queries: [{ propertyName: "chips", predicate: ChipComponent }], ngImport: i0, template: `
3901
+ <ng-content></ng-content>
3902
+ `, isInline: true });
3903
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChipListComponent, decorators: [{
3904
+ type: Component,
3905
+ args: [{
3906
+ selector: 'kendo-chiplist, kendo-chip-list',
3907
+ template: `
3975
3908
  <ng-content></ng-content>
3976
3909
  `,
3977
- providers: [
3978
- LocalizationService,
3979
- {
3980
- provide: L10N_PREFIX,
3981
- useValue: 'kendo.chiplist'
3982
- }
3983
- ]
3984
- }),
3985
- __metadata("design:paramtypes", [LocalizationService,
3986
- Renderer2,
3987
- ElementRef])
3988
- ], ChipListComponent);
3910
+ providers: [
3911
+ LocalizationService,
3912
+ {
3913
+ provide: L10N_PREFIX,
3914
+ useValue: 'kendo.chiplist'
3915
+ }
3916
+ ]
3917
+ }]
3918
+ }], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i0.Renderer2 }, { type: i0.ElementRef }]; }, propDecorators: { hostClass: [{
3919
+ type: HostBinding,
3920
+ args: ['class.k-chip-list']
3921
+ }], direction: [{
3922
+ type: HostBinding,
3923
+ args: ['attr.dir']
3924
+ }], selection: [{
3925
+ type: Input
3926
+ }], size: [{
3927
+ type: Input
3928
+ }], selectedChange: [{
3929
+ type: Output
3930
+ }], remove: [{
3931
+ type: Output
3932
+ }], chips: [{
3933
+ type: ContentChildren,
3934
+ args: [ChipComponent]
3935
+ }], single: [{
3936
+ type: HostBinding,
3937
+ args: ['class.k-selection-single']
3938
+ }], multiple: [{
3939
+ type: HostBinding,
3940
+ args: ['class.k-selection-multiple']
3941
+ }], role: [{
3942
+ type: HostBinding,
3943
+ args: ['attr.role']
3944
+ }], onClick: [{
3945
+ type: HostListener,
3946
+ args: ['click', ['$event']]
3947
+ }] } });
3989
3948
 
3990
- const exportedModules = [
3949
+ const exportedModules$1 = [
3991
3950
  ChipComponent,
3992
3951
  ChipListComponent
3993
3952
  ];
3994
- const declarations = [
3995
- ...exportedModules
3953
+ const declarations$1 = [
3954
+ ...exportedModules$1
3996
3955
  ];
3997
3956
  /**
3998
3957
  * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
@@ -4022,15 +3981,21 @@ const declarations = [
4022
3981
  *
4023
3982
  * ```
4024
3983
  */
4025
- let ChipModule = class ChipModule {
4026
- };
4027
- ChipModule = __decorate([
4028
- NgModule({
4029
- declarations: [declarations],
4030
- exports: [exportedModules],
4031
- imports: [CommonModule]
4032
- })
4033
- ], ChipModule);
3984
+ class ChipModule {
3985
+ }
3986
+ ChipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3987
+ ChipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChipModule, declarations: [ChipComponent,
3988
+ ChipListComponent], imports: [CommonModule], exports: [ChipComponent,
3989
+ ChipListComponent] });
3990
+ ChipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChipModule, imports: [[CommonModule]] });
3991
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChipModule, decorators: [{
3992
+ type: NgModule,
3993
+ args: [{
3994
+ declarations: [declarations$1],
3995
+ exports: [exportedModules$1],
3996
+ imports: [CommonModule]
3997
+ }]
3998
+ }] });
4034
3999
 
4035
4000
  /**
4036
4001
  * @hidden
@@ -4096,61 +4061,262 @@ function closeAnimation(animationSettings) {
4096
4061
  ]);
4097
4062
  }
4098
4063
 
4099
- /**
4100
- * Represents a template that defines the content of the whole dial item.
4101
- * To define the template, nest an `<ng-template>` tag
4102
- * with the `kendoDialItemTemplate` directive inside the `<kendo-floatingactionbutton>` tag
4103
- * ([see example]({% slug templates_floatingactionbutton %}#toc-dial-item-template)).
4104
- */
4105
- let DialItemTemplateDirective = class DialItemTemplateDirective {
4106
- constructor(templateRef) {
4107
- this.templateRef = templateRef;
4108
- }
4109
- };
4110
- DialItemTemplateDirective = __decorate([
4111
- Directive({
4112
- selector: '[kendoDialItemTemplate]'
4113
- }),
4114
- __param(0, Optional()),
4115
- __metadata("design:paramtypes", [TemplateRef])
4116
- ], DialItemTemplateDirective);
4064
+ /**
4065
+ * Represents a template that defines the content of the whole dial item.
4066
+ * To define the template, nest an `<ng-template>` tag
4067
+ * with the `kendoDialItemTemplate` directive inside the `<kendo-floatingactionbutton>` tag
4068
+ * ([see example]({% slug templates_floatingactionbutton %}#toc-dial-item-template)).
4069
+ */
4070
+ class DialItemTemplateDirective {
4071
+ constructor(templateRef) {
4072
+ this.templateRef = templateRef;
4073
+ }
4074
+ }
4075
+ 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 });
4076
+ DialItemTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: DialItemTemplateDirective, selector: "[kendoDialItemTemplate]", ngImport: i0 });
4077
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialItemTemplateDirective, decorators: [{
4078
+ type: Directive,
4079
+ args: [{
4080
+ selector: '[kendoDialItemTemplate]'
4081
+ }]
4082
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
4083
+ type: Optional
4084
+ }] }]; } });
4085
+
4086
+ /**
4087
+ * Represents a template that defines the content of the FloatingActionButton.
4088
+ * To define the template, nest an `<ng-template>` tag
4089
+ * with the `kendoFloatingActionButtonTemplate` directive inside the `<kendo-floatingactionbutton>` tag
4090
+ * ([see example]({% slug templates_floatingactionbutton %}#toc-floatingactionbutton-template)).
4091
+ */
4092
+ class FloatingActionButtonTemplateDirective {
4093
+ constructor(templateRef) {
4094
+ this.templateRef = templateRef;
4095
+ }
4096
+ }
4097
+ 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 });
4098
+ FloatingActionButtonTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FloatingActionButtonTemplateDirective, selector: "[kendoFloatingActionButtonTemplate]", ngImport: i0 });
4099
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FloatingActionButtonTemplateDirective, decorators: [{
4100
+ type: Directive,
4101
+ args: [{
4102
+ selector: '[kendoFloatingActionButtonTemplate]'
4103
+ }]
4104
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
4105
+ type: Optional
4106
+ }] }]; } });
4107
+
4108
+ /**
4109
+ * @hidden
4110
+ */
4111
+ class DialItemComponent {
4112
+ constructor(element, renderer, localisationService) {
4113
+ this.element = element;
4114
+ this.renderer = renderer;
4115
+ this.localisationService = localisationService;
4116
+ this.hostClass = true;
4117
+ this.role = 'menuitem';
4118
+ }
4119
+ get disabledClass() {
4120
+ return this.item.disabled;
4121
+ }
4122
+ get title() {
4123
+ const label = this.item.label;
4124
+ return label ? label : this.itemTitle;
4125
+ }
4126
+ get indexAttr() {
4127
+ return this.index;
4128
+ }
4129
+ get iconClasses() {
4130
+ const classes = [];
4131
+ if (this.item.iconClass) {
4132
+ classes.push(`${this.item.iconClass}`);
4133
+ }
4134
+ if (this.item.icon) {
4135
+ classes.push(`k-fab-item-icon k-icon k-i-${this.item.icon}`);
4136
+ }
4137
+ return classes;
4138
+ }
4139
+ get itemTitle() {
4140
+ const icon = this.item.icon;
4141
+ const itemTitle = this.item.itemTitle;
4142
+ return (icon && itemTitle) ? itemTitle : icon;
4143
+ }
4144
+ ngAfterViewInit() {
4145
+ const element = this.element.nativeElement;
4146
+ const rtl = this.localisationService.rtl;
4147
+ const hAlign = this.align.horizontal;
4148
+ this.renderer.addClass(element, this.getTextDirectionClass(rtl, hAlign));
4149
+ }
4150
+ getTextDirectionClass(rtl, hAlign) {
4151
+ const dir = rtl ? 'rtl' : 'ltr';
4152
+ const align = hAlign === 'end' ? 'end' : 'start';
4153
+ const directions = {
4154
+ rtl: { end: 'k-text-left', start: 'k-text-right' },
4155
+ ltr: { start: 'k-text-left', end: 'k-text-right' }
4156
+ };
4157
+ return directions[dir][align];
4158
+ }
4159
+ }
4160
+ 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 });
4161
+ 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: `
4162
+ <ng-template *ngIf="dialItemTemplate"
4163
+ [ngTemplateOutlet]="dialItemTemplate"
4164
+ [ngTemplateOutletContext]="{ $implicit: item, index: index, isFocused: isFocused }"
4165
+ >
4166
+ </ng-template>
4167
+
4168
+ <ng-container *ngIf="!dialItemTemplate">
4169
+ <span *ngIf="item.label" class="k-fab-item-text">{{ item.label }}</span>
4170
+ <span *ngIf="item.icon || item.iconClass" [ngClass]="iconClasses"></span>
4171
+ </ng-container>
4172
+ `, 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"] }] });
4173
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialItemComponent, decorators: [{
4174
+ type: Component,
4175
+ args: [{
4176
+ // eslint-disable-next-line @angular-eslint/component-selector
4177
+ selector: '[kendoDialItem]',
4178
+ template: `
4179
+ <ng-template *ngIf="dialItemTemplate"
4180
+ [ngTemplateOutlet]="dialItemTemplate"
4181
+ [ngTemplateOutletContext]="{ $implicit: item, index: index, isFocused: isFocused }"
4182
+ >
4183
+ </ng-template>
4184
+
4185
+ <ng-container *ngIf="!dialItemTemplate">
4186
+ <span *ngIf="item.label" class="k-fab-item-text">{{ item.label }}</span>
4187
+ <span *ngIf="item.icon || item.iconClass" [ngClass]="iconClasses"></span>
4188
+ </ng-container>
4189
+ `
4190
+ }]
4191
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.LocalizationService }]; }, propDecorators: { hostClass: [{
4192
+ type: HostBinding,
4193
+ args: ['class.k-fab-item']
4194
+ }], role: [{
4195
+ type: HostBinding,
4196
+ args: ['attr.role']
4197
+ }], disabledClass: [{
4198
+ type: HostBinding,
4199
+ args: ['attr.aria-disabled']
4200
+ }, {
4201
+ type: HostBinding,
4202
+ args: ['class.k-disabled']
4203
+ }], title: [{
4204
+ type: HostBinding,
4205
+ args: ['attr.title']
4206
+ }, {
4207
+ type: HostBinding,
4208
+ args: ['attr.aria-label']
4209
+ }], indexAttr: [{
4210
+ type: HostBinding,
4211
+ args: ['attr.data-fab-item-index']
4212
+ }], cssClass: [{
4213
+ type: Input
4214
+ }], cssStyle: [{
4215
+ type: Input
4216
+ }], isFocused: [{
4217
+ type: Input
4218
+ }], index: [{
4219
+ type: Input
4220
+ }], item: [{
4221
+ type: Input
4222
+ }], dialItemTemplate: [{
4223
+ type: Input
4224
+ }], align: [{
4225
+ type: Input
4226
+ }] } });
4117
4227
 
4118
4228
  /**
4119
- * Represents a template that defines the content of the FloatingActionButton.
4120
- * To define the template, nest an `<ng-template>` tag
4121
- * with the `kendoFloatingActionButtonTemplate` directive inside the `<kendo-floatingactionbutton>` tag
4122
- * ([see example]({% slug templates_floatingactionbutton %}#toc-floatingactionbutton-template)).
4229
+ * @hidden
4123
4230
  */
4124
- let FloatingActionButtonTemplateDirective = class FloatingActionButtonTemplateDirective {
4125
- constructor(templateRef) {
4126
- this.templateRef = templateRef;
4231
+ class DialListComponent {
4232
+ constructor(focusService, cdr) {
4233
+ this.focusService = focusService;
4234
+ this.cdr = cdr;
4235
+ this.hostClass = true;
4236
+ this.subscriptions = new Subscription();
4237
+ this.subscriptions.add(this.focusService.onFocus.subscribe(() => this.cdr.detectChanges()));
4127
4238
  }
4128
- };
4129
- FloatingActionButtonTemplateDirective = __decorate([
4130
- Directive({
4131
- selector: '[kendoFloatingActionButtonTemplate]'
4132
- }),
4133
- __param(0, Optional()),
4134
- __metadata("design:paramtypes", [TemplateRef])
4135
- ], FloatingActionButtonTemplateDirective);
4239
+ get bottomClass() {
4240
+ return this.align.vertical === 'top' || this.align.vertical === 'middle';
4241
+ }
4242
+ get topClass() {
4243
+ return this.align.vertical === 'bottom';
4244
+ }
4245
+ isFocused(index) {
4246
+ return this.focusService.isFocused(index);
4247
+ }
4248
+ ngOnDestroy() {
4249
+ this.subscriptions.unsubscribe();
4250
+ }
4251
+ }
4252
+ 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 });
4253
+ 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: `
4254
+ <ng-container *ngFor='let item of dialItems; let idx = index'>
4255
+ <li
4256
+ kendoButtonFocusable
4257
+ kendoDialItem
4258
+ [item]="dialItems[idx]"
4259
+ [index]="idx"
4260
+ [dialItemTemplate]="dialItemTemplate"
4261
+ [isFocused]="isFocused(idx)"
4262
+ [ngClass]='item.cssClass'
4263
+ [ngStyle]='item.cssStyle'
4264
+ [align]="align"
4265
+ >
4266
+ </li>
4267
+ </ng-container>
4268
+ `, 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"] }] });
4269
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialListComponent, decorators: [{
4270
+ type: Component,
4271
+ args: [{
4272
+ // eslint-disable-next-line @angular-eslint/component-selector
4273
+ selector: '[kendoDialList]',
4274
+ template: `
4275
+ <ng-container *ngFor='let item of dialItems; let idx = index'>
4276
+ <li
4277
+ kendoButtonFocusable
4278
+ kendoDialItem
4279
+ [item]="dialItems[idx]"
4280
+ [index]="idx"
4281
+ [dialItemTemplate]="dialItemTemplate"
4282
+ [isFocused]="isFocused(idx)"
4283
+ [ngClass]='item.cssClass'
4284
+ [ngStyle]='item.cssStyle'
4285
+ [align]="align"
4286
+ >
4287
+ </li>
4288
+ </ng-container>
4289
+ `
4290
+ }]
4291
+ }], ctorParameters: function () { return [{ type: FocusService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { hostClass: [{
4292
+ type: HostBinding,
4293
+ args: ['class.k-fab-items']
4294
+ }], bottomClass: [{
4295
+ type: HostBinding,
4296
+ args: ['class.k-fab-items-bottom']
4297
+ }], topClass: [{
4298
+ type: HostBinding,
4299
+ args: ['class.k-fab-items-top']
4300
+ }], dialItems: [{
4301
+ type: Input
4302
+ }], dialItemTemplate: [{
4303
+ type: Input
4304
+ }], align: [{
4305
+ type: Input
4306
+ }] } });
4136
4307
 
4137
- const NAVIGATION_SETTINGS$2 = {
4308
+ const NAVIGATION_SETTINGS = {
4138
4309
  useLeftRightArrows: false
4139
4310
  };
4140
- const ɵ0$2 = NAVIGATION_SETTINGS$2;
4141
- const NAVIGATION_SETTINGS_PROVIDER$2 = {
4311
+ const NAVIGATION_SETTINGS_PROVIDER = {
4142
4312
  provide: NAVIGATION_CONFIG,
4143
- useValue: ɵ0$2
4313
+ useValue: NAVIGATION_SETTINGS
4144
4314
  };
4145
4315
  const SIZE_CLASSES = {
4146
4316
  small: 'k-fab-sm',
4147
4317
  medium: 'k-fab-md',
4148
4318
  large: 'k-fab-lg'
4149
4319
  };
4150
- const SHAPE_CLASSES = {
4151
- rectangle: 'k-fab-rectangle',
4152
- square: 'k-fab-square'
4153
- };
4154
4320
  const ROUNDED_CLASSES = {
4155
4321
  small: 'k-rounded-sm',
4156
4322
  medium: 'k-rounded-md',
@@ -4161,13 +4327,16 @@ const FILLMODE_CLASS = 'k-fab-solid';
4161
4327
  const DEFAULT_DURATION = 180;
4162
4328
  const DEFAULT_ITEM_GAP = 90;
4163
4329
  const DEFAULT_OFFSET = '16px';
4330
+ const DEFAULT_ROUNDED = 'full';
4331
+ const DEFAULT_SIZE = 'medium';
4332
+ const DEFAULT_THEME_COLOR = 'primary';
4164
4333
  /**
4165
4334
  *
4166
4335
  * Represents the [Kendo UI FloatingActionButton component for Angular]({% slug overview_floatingactionbutton %}).
4167
4336
  * Used to specify the primary or the most common action in an application.
4168
4337
  *
4169
4338
  */
4170
- let FloatingActionButtonComponent = class FloatingActionButtonComponent {
4339
+ class FloatingActionButtonComponent {
4171
4340
  constructor(renderer, element, focusService, navigationService, ngZone, popupService, builder, localizationService) {
4172
4341
  this.renderer = renderer;
4173
4342
  this.element = element;
@@ -4235,13 +4404,12 @@ let FloatingActionButtonComponent = class FloatingActionButtonComponent {
4235
4404
  * @hidden
4236
4405
  */
4237
4406
  this.id = `k-${guid()}`;
4238
- this._themeColor = 'primary';
4239
- this._size = 'medium';
4240
- this._shape = 'rectangle';
4407
+ this._themeColor = DEFAULT_THEME_COLOR;
4408
+ this._size = DEFAULT_SIZE;
4409
+ this._rounded = DEFAULT_ROUNDED;
4241
4410
  this._disabled = false;
4242
4411
  this._align = { horizontal: 'end', vertical: 'bottom' };
4243
4412
  this._offset = { x: DEFAULT_OFFSET, y: DEFAULT_OFFSET };
4244
- this._rounded = 'full';
4245
4413
  this.subscriptions = new Subscription();
4246
4414
  this.rtl = false;
4247
4415
  this.animationEnd = new EventEmitter();
@@ -4265,20 +4433,22 @@ let FloatingActionButtonComponent = class FloatingActionButtonComponent {
4265
4433
  * The theme color will be applied as background color of the component.
4266
4434
  *
4267
4435
  * The possible values are:
4268
- * * `'primary'` (Default)&mdash;Applies coloring based on the `primary` theme color.
4269
- * * `'secondary'`&mdash;Applies coloring based on the `secondary` theme color.
4270
- * * `'tertiary'`&mdash; Applies coloring based on the `tertiary` theme color.
4271
- * * `'info'`&mdash;Applies coloring based on the `info` theme color.
4272
- * * `'success'`&mdash; Applies coloring based on the `success` theme color.
4273
- * * `'warning'`&mdash; Applies coloring based on the `warning` theme color.
4274
- * * `'error'`&mdash; Applies coloring based on the `error` theme color.
4275
- * * `'dark'`&mdash; Applies coloring based on the `dark` theme color.
4276
- * * `'light'`&mdash; Applies coloring based on the `light` theme color.
4277
- * * `'inverse'`&mdash; Applies coloring based on the `inverse` theme color.
4436
+ * * `primary` (Default)&mdash;Applies coloring based on the `primary` theme color.
4437
+ * * `secondary`&mdash;Applies coloring based on the `secondary` theme color.
4438
+ * * `tertiary`&mdash; Applies coloring based on the `tertiary` theme color.
4439
+ * * `info`&mdash;Applies coloring based on the `info` theme color.
4440
+ * * `success`&mdash; Applies coloring based on the `success` theme color.
4441
+ * * `warning`&mdash; Applies coloring based on the `warning` theme color.
4442
+ * * `error`&mdash; Applies coloring based on the `error` theme color.
4443
+ * * `dark`&mdash; Applies coloring based on the `dark` theme color.
4444
+ * * `light`&mdash; Applies coloring based on the `light` theme color.
4445
+ * * `inverse`&mdash; Applies coloring based on the `inverse` theme color.
4446
+ * * `none`&mdash; Removes the built in theme color.
4278
4447
  */
4279
4448
  set themeColor(themeColor) {
4280
- this.handleClasses(themeColor, 'themeColor');
4281
- this._themeColor = themeColor;
4449
+ const newThemeColor = themeColor ? themeColor : DEFAULT_THEME_COLOR;
4450
+ this.handleClasses(newThemeColor, 'themeColor');
4451
+ this._themeColor = newThemeColor;
4282
4452
  }
4283
4453
  get themeColor() {
4284
4454
  return this._themeColor;
@@ -4288,13 +4458,15 @@ let FloatingActionButtonComponent = class FloatingActionButtonComponent {
4288
4458
  * ([see example]({% slug appearance_floatingactionbutton %}#toc-size)).
4289
4459
  *
4290
4460
  * The possible values are:
4291
- * * `'small'`
4292
- * * `'medium'` (Default)
4293
- * * `'large'`
4461
+ * * `small`
4462
+ * * `medium` (Default)
4463
+ * * `large`
4464
+ * * `none`
4294
4465
  */
4295
4466
  set size(size) {
4296
- this.handleClasses(size, 'size');
4297
- this._size = size;
4467
+ const newSize = size ? size : DEFAULT_SIZE;
4468
+ this.handleClasses(newSize, 'size');
4469
+ this._size = newSize;
4298
4470
  }
4299
4471
  get size() {
4300
4472
  return this._size;
@@ -4303,35 +4475,20 @@ let FloatingActionButtonComponent = class FloatingActionButtonComponent {
4303
4475
  * The rounded property specifies the border radius of the FloatingActionButton.
4304
4476
  *
4305
4477
  * The possible values are:
4306
- * * `'small'`
4307
- * * `'medium'`
4308
- * * `'large'`
4309
- * * `'full'` (default)
4310
- * * `null`
4478
+ * * `small`
4479
+ * * `medium`
4480
+ * * `large`
4481
+ * * `full` (default)
4482
+ * * `none`
4311
4483
  */
4312
4484
  set rounded(rounded) {
4313
- this.handleClasses(rounded, 'rounded');
4314
- this._rounded = rounded;
4485
+ const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
4486
+ this.handleClasses(newRounded, 'rounded');
4487
+ this._rounded = newRounded;
4315
4488
  }
4316
4489
  get rounded() {
4317
4490
  return this._rounded;
4318
4491
  }
4319
- /**
4320
- * Specifies the shape of the FloatingActionButton
4321
- * ([see example]({% slug appearance_floatingactionbutton %}#toc-shape)).
4322
- *
4323
- * The possible values are:
4324
- * * `rectangle` (Default)&mdash;Applies rectangular shape on the FloatingActionButton.
4325
- * * `square`&mdash;Applies square shape on the FloatingActionButton.
4326
- *
4327
- */
4328
- set shape(shape) {
4329
- this.handleClasses(shape, 'shape');
4330
- this._shape = shape;
4331
- }
4332
- get shape() {
4333
- return this._shape;
4334
- }
4335
4492
  /**
4336
4493
  * Specifies whether the FloatingActionButton is disabled.
4337
4494
  */
@@ -4379,7 +4536,7 @@ let FloatingActionButtonComponent = class FloatingActionButtonComponent {
4379
4536
  return this.disabled ? (-1) : this.tabIndex;
4380
4537
  }
4381
4538
  ngAfterViewInit() {
4382
- ['shape', 'size', 'rounded', 'themeColor'].forEach(option => this.handleClasses(this[option], option));
4539
+ ['size', 'rounded', 'themeColor'].forEach(option => this.handleClasses(this[option], option));
4383
4540
  this.renderer.addClass(this.element.nativeElement, this.alignClass());
4384
4541
  this.offsetStyles();
4385
4542
  this.initialSetup = false;
@@ -4423,7 +4580,12 @@ let FloatingActionButtonComponent = class FloatingActionButtonComponent {
4423
4580
  if (this.disabled || shouldOpen === this.isOpen) {
4424
4581
  return;
4425
4582
  }
4426
- shouldOpen ? setTimeout(() => this.openDial()) : this.closeDial();
4583
+ if (shouldOpen) {
4584
+ setTimeout(() => this.openDial());
4585
+ }
4586
+ else {
4587
+ this.closeDial();
4588
+ }
4427
4589
  }
4428
4590
  /**
4429
4591
  * @hidden
@@ -4529,13 +4691,11 @@ let FloatingActionButtonComponent = class FloatingActionButtonComponent {
4529
4691
  const classesToRemove = {
4530
4692
  themeColor: `${FILLMODE_CLASS}-${this.themeColor}`,
4531
4693
  size: SIZE_CLASSES[this.size],
4532
- shape: SHAPE_CLASSES[this.shape],
4533
4694
  rounded: ROUNDED_CLASSES[this.rounded]
4534
4695
  };
4535
4696
  const classesToAdd = {
4536
- themeColor: inputValue ? `${FILLMODE_CLASS}-${inputValue}` : null,
4697
+ themeColor: inputValue !== 'none' ? `${FILLMODE_CLASS}-${inputValue}` : '',
4537
4698
  size: SIZE_CLASSES[inputValue],
4538
- shape: SHAPE_CLASSES[inputValue],
4539
4699
  rounded: ROUNDED_CLASSES[inputValue]
4540
4700
  };
4541
4701
  this.renderer.removeClass(button, classesToRemove[input]);
@@ -4601,11 +4761,21 @@ let FloatingActionButtonComponent = class FloatingActionButtonComponent {
4601
4761
  return;
4602
4762
  }
4603
4763
  const event = new PreventableEvent();
4604
- open ? this.open.emit(event) : this.close.emit(event);
4764
+ if (open) {
4765
+ this.open.emit(event);
4766
+ }
4767
+ else {
4768
+ this.close.emit(event);
4769
+ }
4605
4770
  if (event.isDefaultPrevented()) {
4606
4771
  return;
4607
4772
  }
4608
- open ? this.openDial() : this.closeDial();
4773
+ if (open) {
4774
+ this.openDial();
4775
+ }
4776
+ else {
4777
+ this.closeDial();
4778
+ }
4609
4779
  }
4610
4780
  openPopup() {
4611
4781
  if (this.isOpen) {
@@ -4774,142 +4944,18 @@ let FloatingActionButtonComponent = class FloatingActionButtonComponent {
4774
4944
  }
4775
4945
  return DEFAULT_DURATION;
4776
4946
  }
4777
- };
4778
- __decorate([
4779
- HostBinding('class.k-pos-fixed'),
4780
- __metadata("design:type", Boolean),
4781
- __metadata("design:paramtypes", [])
4782
- ], FloatingActionButtonComponent.prototype, "fixedClass", null);
4783
- __decorate([
4784
- HostBinding('class.k-pos-absolute'),
4785
- __metadata("design:type", Boolean),
4786
- __metadata("design:paramtypes", [])
4787
- ], FloatingActionButtonComponent.prototype, "absoluteClass", null);
4788
- __decorate([
4789
- HostBinding('attr.dir'),
4790
- __metadata("design:type", String)
4791
- ], FloatingActionButtonComponent.prototype, "direction", void 0);
4792
- __decorate([
4793
- ViewChild('button', { static: true }),
4794
- __metadata("design:type", ElementRef)
4795
- ], FloatingActionButtonComponent.prototype, "button", void 0);
4796
- __decorate([
4797
- ViewChild('popupTemplate', { static: true }),
4798
- __metadata("design:type", TemplateRef)
4799
- ], FloatingActionButtonComponent.prototype, "popupTemplate", void 0);
4800
- __decorate([
4801
- ContentChild(DialItemTemplateDirective, { static: false }),
4802
- __metadata("design:type", DialItemTemplateDirective)
4803
- ], FloatingActionButtonComponent.prototype, "dialItemTemplate", void 0);
4804
- __decorate([
4805
- ContentChild(FloatingActionButtonTemplateDirective, { static: false }),
4806
- __metadata("design:type", FloatingActionButtonTemplateDirective)
4807
- ], FloatingActionButtonComponent.prototype, "fabTemplate", void 0);
4808
- __decorate([
4809
- Input(),
4810
- __metadata("design:type", String),
4811
- __metadata("design:paramtypes", [String])
4812
- ], FloatingActionButtonComponent.prototype, "themeColor", null);
4813
- __decorate([
4814
- Input(),
4815
- __metadata("design:type", String),
4816
- __metadata("design:paramtypes", [String])
4817
- ], FloatingActionButtonComponent.prototype, "size", null);
4818
- __decorate([
4819
- Input(),
4820
- __metadata("design:type", String),
4821
- __metadata("design:paramtypes", [String])
4822
- ], FloatingActionButtonComponent.prototype, "rounded", null);
4823
- __decorate([
4824
- Input(),
4825
- __metadata("design:type", String),
4826
- __metadata("design:paramtypes", [String])
4827
- ], FloatingActionButtonComponent.prototype, "shape", null);
4828
- __decorate([
4829
- Input(),
4830
- __metadata("design:type", Boolean),
4831
- __metadata("design:paramtypes", [Boolean])
4832
- ], FloatingActionButtonComponent.prototype, "disabled", null);
4833
- __decorate([
4834
- Input(),
4835
- __metadata("design:type", Object),
4836
- __metadata("design:paramtypes", [Object])
4837
- ], FloatingActionButtonComponent.prototype, "align", null);
4838
- __decorate([
4839
- Input(),
4840
- __metadata("design:type", Object),
4841
- __metadata("design:paramtypes", [Object])
4842
- ], FloatingActionButtonComponent.prototype, "offset", null);
4843
- __decorate([
4844
- Input(),
4845
- __metadata("design:type", String)
4846
- ], FloatingActionButtonComponent.prototype, "positionMode", void 0);
4847
- __decorate([
4848
- Input(),
4849
- __metadata("design:type", String)
4850
- ], FloatingActionButtonComponent.prototype, "icon", void 0);
4851
- __decorate([
4852
- Input(),
4853
- __metadata("design:type", String)
4854
- ], FloatingActionButtonComponent.prototype, "iconClass", void 0);
4855
- __decorate([
4856
- Input(),
4857
- __metadata("design:type", Object)
4858
- ], FloatingActionButtonComponent.prototype, "buttonClass", void 0);
4859
- __decorate([
4860
- Input(),
4861
- __metadata("design:type", Object)
4862
- ], FloatingActionButtonComponent.prototype, "dialClass", void 0);
4863
- __decorate([
4864
- Input(),
4865
- __metadata("design:type", String)
4866
- ], FloatingActionButtonComponent.prototype, "text", void 0);
4867
- __decorate([
4868
- Input(),
4869
- __metadata("design:type", Object)
4870
- ], FloatingActionButtonComponent.prototype, "dialItemAnimation", void 0);
4871
- __decorate([
4872
- Input(),
4873
- __metadata("design:type", Number)
4874
- ], FloatingActionButtonComponent.prototype, "tabIndex", void 0);
4875
- __decorate([
4876
- Input(),
4877
- __metadata("design:type", Array)
4878
- ], FloatingActionButtonComponent.prototype, "dialItems", void 0);
4879
- __decorate([
4880
- Output('blur'),
4881
- __metadata("design:type", EventEmitter)
4882
- ], FloatingActionButtonComponent.prototype, "onBlur", void 0);
4883
- __decorate([
4884
- Output('focus'),
4885
- __metadata("design:type", EventEmitter)
4886
- ], FloatingActionButtonComponent.prototype, "onFocus", void 0);
4887
- __decorate([
4888
- Output('dialItemClick'),
4889
- __metadata("design:type", EventEmitter)
4890
- ], FloatingActionButtonComponent.prototype, "dialItemClick", void 0);
4891
- __decorate([
4892
- Output(),
4893
- __metadata("design:type", EventEmitter)
4894
- ], FloatingActionButtonComponent.prototype, "open", void 0);
4895
- __decorate([
4896
- Output(),
4897
- __metadata("design:type", EventEmitter)
4898
- ], FloatingActionButtonComponent.prototype, "close", void 0);
4899
- FloatingActionButtonComponent = __decorate([
4900
- Component({
4901
- selector: 'kendo-floatingactionbutton',
4902
- providers: [
4903
- FocusService,
4904
- NavigationService,
4905
- NAVIGATION_SETTINGS_PROVIDER$2,
4906
- LocalizationService,
4907
- {
4908
- provide: L10N_PREFIX,
4909
- useValue: 'kendo.floatingactionbutton'
4910
- }
4911
- ],
4912
- template: `
4947
+ }
4948
+ 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 });
4949
+ FloatingActionButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FloatingActionButtonComponent, selector: "kendo-floatingactionbutton", inputs: { themeColor: "themeColor", size: "size", rounded: "rounded", 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: [
4950
+ FocusService,
4951
+ NavigationService,
4952
+ NAVIGATION_SETTINGS_PROVIDER,
4953
+ LocalizationService,
4954
+ {
4955
+ provide: L10N_PREFIX,
4956
+ useValue: 'kendo.floatingactionbutton'
4957
+ }
4958
+ ], queries: [{ propertyName: "dialItemTemplate", first: true, predicate: DialItemTemplateDirective, descendants: true }, { propertyName: "fabTemplate", first: true, predicate: FloatingActionButtonTemplateDirective, descendants: 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: `
4913
4959
  <button
4914
4960
  #button
4915
4961
  [attr.id]="id"
@@ -4954,224 +5000,141 @@ FloatingActionButtonComponent = __decorate([
4954
5000
  >
4955
5001
  </ul>
4956
5002
  </ng-template>
4957
- `
4958
- }),
4959
- __metadata("design:paramtypes", [Renderer2,
4960
- ElementRef,
4961
- FocusService,
4962
- NavigationService,
4963
- NgZone,
4964
- PopupService,
4965
- AnimationBuilder,
4966
- LocalizationService])
4967
- ], FloatingActionButtonComponent);
5003
+ `, 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"] }] });
5004
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FloatingActionButtonComponent, decorators: [{
5005
+ type: Component,
5006
+ args: [{
5007
+ selector: 'kendo-floatingactionbutton',
5008
+ providers: [
5009
+ FocusService,
5010
+ NavigationService,
5011
+ NAVIGATION_SETTINGS_PROVIDER,
5012
+ LocalizationService,
5013
+ {
5014
+ provide: L10N_PREFIX,
5015
+ useValue: 'kendo.floatingactionbutton'
5016
+ }
5017
+ ],
5018
+ template: `
5019
+ <button
5020
+ #button
5021
+ [attr.id]="id"
5022
+ [attr.role]="role"
5023
+ [tabIndex]="componentTabIndex"
5024
+ type="button"
5025
+ class="k-fab k-fab-solid"
5026
+ [class.k-disabled]="disabled"
5027
+ [ngClass]="buttonClass"
5028
+ [disabled]="disabled"
5029
+ [attr.aria-disabled]="disabled"
5030
+ [attr.aria-expanded]="ariaExpanded"
5031
+ [attr.aria-haspopup]="ariaHasPopup"
5032
+ (focus)="focusHandler()"
5033
+ (blur)="blurHandler()"
5034
+ [kendoEventsOutsideAngular]="{
5035
+ keydown: keyDownHandler,
5036
+ click: clickHandler
5037
+ }"
5038
+ [scope]="this"
5039
+ >
5040
+ <ng-template *ngIf="fabTemplate"
5041
+ [ngTemplateOutlet]="fabTemplate?.templateRef"
5042
+ >
5043
+ </ng-template>
4968
5044
 
4969
- /**
4970
- * @hidden
4971
- */
4972
- let DialListComponent = class DialListComponent {
4973
- constructor(focusService, cdr) {
4974
- this.focusService = focusService;
4975
- this.cdr = cdr;
4976
- this.hostClass = true;
4977
- this.subscriptions = new Subscription();
4978
- this.subscriptions.add(this.focusService.onFocus.subscribe(() => this.cdr.detectChanges()));
4979
- }
4980
- get bottomClass() {
4981
- return this.align.vertical === 'top' || this.align.vertical === 'middle';
4982
- }
4983
- get topClass() {
4984
- return this.align.vertical === 'bottom';
4985
- }
4986
- isFocused(index) {
4987
- return this.focusService.isFocused(index);
4988
- }
4989
- ngOnDestroy() {
4990
- this.subscriptions.unsubscribe();
4991
- }
4992
- };
4993
- __decorate([
4994
- HostBinding('class.k-fab-items'),
4995
- __metadata("design:type", Boolean)
4996
- ], DialListComponent.prototype, "hostClass", void 0);
4997
- __decorate([
4998
- HostBinding('class.k-fab-items-bottom'),
4999
- __metadata("design:type", Boolean),
5000
- __metadata("design:paramtypes", [])
5001
- ], DialListComponent.prototype, "bottomClass", null);
5002
- __decorate([
5003
- HostBinding('class.k-fab-items-top'),
5004
- __metadata("design:type", Boolean),
5005
- __metadata("design:paramtypes", [])
5006
- ], DialListComponent.prototype, "topClass", null);
5007
- __decorate([
5008
- Input(),
5009
- __metadata("design:type", Array)
5010
- ], DialListComponent.prototype, "dialItems", void 0);
5011
- __decorate([
5012
- Input(),
5013
- __metadata("design:type", TemplateRef)
5014
- ], DialListComponent.prototype, "dialItemTemplate", void 0);
5015
- __decorate([
5016
- Input(),
5017
- __metadata("design:type", Object)
5018
- ], DialListComponent.prototype, "align", void 0);
5019
- DialListComponent = __decorate([
5020
- Component({
5021
- selector: '[kendoDialList]',
5022
- template: `
5023
- <ng-container *ngFor='let item of dialItems; let idx = index'>
5024
- <li
5025
- kendoButtonFocusable
5026
- kendoDialItem
5027
- [item]="dialItems[idx]"
5028
- [index]="idx"
5029
- [dialItemTemplate]="dialItemTemplate"
5030
- [isFocused]="isFocused(idx)"
5031
- [ngClass]='item.cssClass'
5032
- [ngStyle]='item.cssStyle'
5045
+ <ng-container *ngIf="!fabTemplate">
5046
+ <span *ngIf="icon || iconClass" [ngClass]="iconClasses"></span>
5047
+ <span *ngIf="text" class="k-fab-text">{{ text }}</span>
5048
+ </ng-container>
5049
+ </button>
5050
+
5051
+ <ng-template #popupTemplate>
5052
+ <ul
5053
+ kendoDialList
5054
+ [ngClass]="dialClass"
5055
+ [dialItems]="dialItems"
5056
+ [dialItemTemplate]='dialItemTemplate?.templateRef'
5033
5057
  [align]="align"
5058
+ [attr.aria-labelledby]="id"
5059
+ (click)="onItemClick($event)"
5034
5060
  >
5035
- </li>
5036
- </ng-container>
5037
- `
5038
- }),
5039
- __metadata("design:paramtypes", [FocusService, ChangeDetectorRef])
5040
- ], DialListComponent);
5041
-
5042
- /**
5043
- * @hidden
5044
- */
5045
- let DialItemComponent = class DialItemComponent {
5046
- constructor(element, renderer, localisationService) {
5047
- this.element = element;
5048
- this.renderer = renderer;
5049
- this.localisationService = localisationService;
5050
- this.hostClass = true;
5051
- this.role = 'menuitem';
5052
- }
5053
- get disabledClass() {
5054
- return this.item.disabled;
5055
- }
5056
- get title() {
5057
- const label = this.item.label;
5058
- return label ? label : this.itemTitle;
5059
- }
5060
- get indexAttr() {
5061
- return this.index;
5062
- }
5063
- get iconClasses() {
5064
- const classes = [];
5065
- if (this.item.iconClass) {
5066
- classes.push(`${this.item.iconClass}`);
5067
- }
5068
- if (this.item.icon) {
5069
- classes.push(`k-fab-item-icon k-icon k-i-${this.item.icon}`);
5070
- }
5071
- return classes;
5072
- }
5073
- get itemTitle() {
5074
- const icon = this.item.icon;
5075
- const itemTitle = this.item.itemTitle;
5076
- return (icon && itemTitle) ? itemTitle : icon;
5077
- }
5078
- ngAfterViewInit() {
5079
- const element = this.element.nativeElement;
5080
- const rtl = this.localisationService.rtl;
5081
- const hAlign = this.align.horizontal;
5082
- this.renderer.addClass(element, this.getTextDirectionClass(rtl, hAlign));
5083
- }
5084
- getTextDirectionClass(rtl, hAlign) {
5085
- const dir = rtl ? 'rtl' : 'ltr';
5086
- const align = hAlign === 'end' ? 'end' : 'start';
5087
- const directions = {
5088
- rtl: { end: 'k-text-left', start: 'k-text-right' },
5089
- ltr: { start: 'k-text-left', end: 'k-text-right' }
5090
- };
5091
- return directions[dir][align];
5092
- }
5093
- };
5094
- __decorate([
5095
- HostBinding('class.k-fab-item'),
5096
- __metadata("design:type", Boolean)
5097
- ], DialItemComponent.prototype, "hostClass", void 0);
5098
- __decorate([
5099
- HostBinding('attr.role'),
5100
- __metadata("design:type", String)
5101
- ], DialItemComponent.prototype, "role", void 0);
5102
- __decorate([
5103
- HostBinding('attr.aria-disabled'),
5104
- HostBinding('class.k-disabled'),
5105
- __metadata("design:type", Boolean),
5106
- __metadata("design:paramtypes", [])
5107
- ], DialItemComponent.prototype, "disabledClass", null);
5108
- __decorate([
5109
- HostBinding('attr.title'),
5110
- HostBinding('attr.aria-label'),
5111
- __metadata("design:type", String),
5112
- __metadata("design:paramtypes", [])
5113
- ], DialItemComponent.prototype, "title", null);
5114
- __decorate([
5115
- HostBinding('attr.data-fab-item-index'),
5116
- __metadata("design:type", String),
5117
- __metadata("design:paramtypes", [])
5118
- ], DialItemComponent.prototype, "indexAttr", null);
5119
- __decorate([
5120
- Input(),
5121
- __metadata("design:type", Object)
5122
- ], DialItemComponent.prototype, "cssClass", void 0);
5123
- __decorate([
5124
- Input(),
5125
- __metadata("design:type", Object)
5126
- ], DialItemComponent.prototype, "cssStyle", void 0);
5127
- __decorate([
5128
- Input(),
5129
- __metadata("design:type", Boolean)
5130
- ], DialItemComponent.prototype, "isFocused", void 0);
5131
- __decorate([
5132
- Input(),
5133
- __metadata("design:type", Object)
5134
- ], DialItemComponent.prototype, "index", void 0);
5135
- __decorate([
5136
- Input(),
5137
- __metadata("design:type", Object)
5138
- ], DialItemComponent.prototype, "item", void 0);
5139
- __decorate([
5140
- Input(),
5141
- __metadata("design:type", TemplateRef)
5142
- ], DialItemComponent.prototype, "dialItemTemplate", void 0);
5143
- __decorate([
5144
- Input(),
5145
- __metadata("design:type", Object)
5146
- ], DialItemComponent.prototype, "align", void 0);
5147
- DialItemComponent = __decorate([
5148
- Component({
5149
- selector: '[kendoDialItem]',
5150
- template: `
5151
- <ng-template *ngIf="dialItemTemplate"
5152
- [ngTemplateOutlet]="dialItemTemplate"
5153
- [ngTemplateOutletContext]="{ $implicit: item, index: index, isFocused: isFocused }"
5154
- >
5061
+ </ul>
5155
5062
  </ng-template>
5156
-
5157
- <ng-container *ngIf="!dialItemTemplate">
5158
- <span *ngIf="item.label" class="k-fab-item-text">{{ item.label }}</span>
5159
- <span *ngIf="item.icon || item.iconClass" [ngClass]="iconClasses"></span>
5160
- </ng-container>
5161
5063
  `
5162
- }),
5163
- __metadata("design:paramtypes", [ElementRef,
5164
- Renderer2,
5165
- LocalizationService])
5166
- ], DialItemComponent);
5064
+ }]
5065
+ }], 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: [{
5066
+ type: HostBinding,
5067
+ args: ['class.k-pos-fixed']
5068
+ }], absoluteClass: [{
5069
+ type: HostBinding,
5070
+ args: ['class.k-pos-absolute']
5071
+ }], direction: [{
5072
+ type: HostBinding,
5073
+ args: ['attr.dir']
5074
+ }], button: [{
5075
+ type: ViewChild,
5076
+ args: ['button', { static: true }]
5077
+ }], popupTemplate: [{
5078
+ type: ViewChild,
5079
+ args: ['popupTemplate', { static: true }]
5080
+ }], dialItemTemplate: [{
5081
+ type: ContentChild,
5082
+ args: [DialItemTemplateDirective, { static: false }]
5083
+ }], fabTemplate: [{
5084
+ type: ContentChild,
5085
+ args: [FloatingActionButtonTemplateDirective, { static: false }]
5086
+ }], themeColor: [{
5087
+ type: Input
5088
+ }], size: [{
5089
+ type: Input
5090
+ }], rounded: [{
5091
+ type: Input
5092
+ }], disabled: [{
5093
+ type: Input
5094
+ }], align: [{
5095
+ type: Input
5096
+ }], offset: [{
5097
+ type: Input
5098
+ }], positionMode: [{
5099
+ type: Input
5100
+ }], icon: [{
5101
+ type: Input
5102
+ }], iconClass: [{
5103
+ type: Input
5104
+ }], buttonClass: [{
5105
+ type: Input
5106
+ }], dialClass: [{
5107
+ type: Input
5108
+ }], text: [{
5109
+ type: Input
5110
+ }], dialItemAnimation: [{
5111
+ type: Input
5112
+ }], tabIndex: [{
5113
+ type: Input
5114
+ }], dialItems: [{
5115
+ type: Input
5116
+ }], onBlur: [{
5117
+ type: Output,
5118
+ args: ['blur']
5119
+ }], onFocus: [{
5120
+ type: Output,
5121
+ args: ['focus']
5122
+ }], dialItemClick: [{
5123
+ type: Output,
5124
+ args: ['dialItemClick']
5125
+ }], open: [{
5126
+ type: Output
5127
+ }], close: [{
5128
+ type: Output
5129
+ }] } });
5167
5130
 
5168
- const exportedModules$1 = [
5131
+ const exportedModules = [
5169
5132
  FloatingActionButtonComponent,
5170
5133
  DialItemTemplateDirective,
5171
5134
  FloatingActionButtonTemplateDirective
5172
5135
  ];
5173
- const declarations$1 = [
5174
- ...exportedModules$1,
5136
+ const declarations = [
5137
+ ...exportedModules,
5175
5138
  DialListComponent,
5176
5139
  DialItemComponent
5177
5140
  ];
@@ -5203,15 +5166,24 @@ const declarations$1 = [
5203
5166
  *
5204
5167
  * ```
5205
5168
  */
5206
- let FloatingActionButtonModule = class FloatingActionButtonModule {
5207
- };
5208
- FloatingActionButtonModule = __decorate([
5209
- NgModule({
5210
- declarations: [declarations$1],
5211
- exports: [exportedModules$1],
5212
- imports: [CommonModule, PopupModule, ListModule, EventsModule]
5213
- })
5214
- ], FloatingActionButtonModule);
5169
+ class FloatingActionButtonModule {
5170
+ }
5171
+ FloatingActionButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FloatingActionButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
5172
+ FloatingActionButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FloatingActionButtonModule, declarations: [FloatingActionButtonComponent,
5173
+ DialItemTemplateDirective,
5174
+ FloatingActionButtonTemplateDirective, DialListComponent,
5175
+ DialItemComponent], imports: [CommonModule, PopupModule, ListModule, EventsModule], exports: [FloatingActionButtonComponent,
5176
+ DialItemTemplateDirective,
5177
+ FloatingActionButtonTemplateDirective] });
5178
+ FloatingActionButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FloatingActionButtonModule, imports: [[CommonModule, PopupModule, ListModule, EventsModule]] });
5179
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FloatingActionButtonModule, decorators: [{
5180
+ type: NgModule,
5181
+ args: [{
5182
+ declarations: [declarations],
5183
+ exports: [exportedModules],
5184
+ imports: [CommonModule, PopupModule, ListModule, EventsModule]
5185
+ }]
5186
+ }] });
5215
5187
 
5216
5188
  /**
5217
5189
  * Represents the [NgModule]({{ site.data.urls.angular['ngmodules'] }})
@@ -5244,16 +5216,21 @@ FloatingActionButtonModule = __decorate([
5244
5216
  *
5245
5217
  * ```
5246
5218
  */
5247
- let ButtonsModule = class ButtonsModule {
5248
- };
5249
- ButtonsModule = __decorate([
5250
- NgModule({
5251
- exports: [ButtonGroupModule, ButtonModule, SplitButtonModule, DropDownButtonModule, ChipModule, FloatingActionButtonModule]
5252
- })
5253
- ], ButtonsModule);
5219
+ class ButtonsModule {
5220
+ }
5221
+ ButtonsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
5222
+ ButtonsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonsModule, exports: [ButtonGroupModule, ButtonModule, SplitButtonModule, DropDownButtonModule, ChipModule, FloatingActionButtonModule] });
5223
+ ButtonsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonsModule, imports: [ButtonGroupModule, ButtonModule, SplitButtonModule, DropDownButtonModule, ChipModule, FloatingActionButtonModule] });
5224
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonsModule, decorators: [{
5225
+ type: NgModule,
5226
+ args: [{
5227
+ exports: [ButtonGroupModule, ButtonModule, SplitButtonModule, DropDownButtonModule, ChipModule, FloatingActionButtonModule]
5228
+ }]
5229
+ }] });
5254
5230
 
5255
5231
  /**
5256
5232
  * Generated bundle index. Do not edit.
5257
5233
  */
5258
5234
 
5259
- 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 };
5235
+ 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, PreventableEvent, SplitButtonComponent as SplitButton, SplitButtonComponent, SplitButtonCustomMessagesComponent, SplitButtonModule, TemplateContextDirective };
5236
+