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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (271) hide show
  1. package/README.md +1 -0
  2. package/bundles/kendo-angular-buttons.umd.js +5 -0
  3. package/{dist/es2015/button → button}/button.directive.d.ts +63 -60
  4. package/{dist/es2015/button → button}/button.module.d.ts +5 -0
  5. package/{dist/es2015/button → button}/button.service.d.ts +3 -0
  6. package/{dist/es2015/button → button}/selection-settings.d.ts +0 -0
  7. package/{dist/es2015/buttongroup → buttongroup}/buttongroup.component.d.ts +13 -9
  8. package/{dist/es2015/buttongroup → buttongroup}/buttongroup.module.d.ts +7 -0
  9. package/{dist/es2015/buttons.module.d.ts → buttons.module.d.ts} +10 -0
  10. package/{dist/es2015/chip → chip}/chip-content-click-event-args.interface.d.ts +0 -0
  11. package/{dist/es2015/chip → chip}/chip-list-remove-event-args.interface.d.ts +0 -0
  12. package/{dist/es2015/chip → chip}/chip-list.component.d.ts +8 -4
  13. package/{dist/es2015/chip → chip}/chip-remove-event-args.interface.d.ts +0 -0
  14. package/{dist/es2015/chip → chip}/chip.component.d.ts +38 -31
  15. package/{dist/es2015/chip → chip}/chip.module.d.ts +7 -0
  16. package/{dist/es2015/chip → chip}/models/selection.d.ts +0 -0
  17. package/{dist/es2015/common → common}/models/fillmode.d.ts +2 -2
  18. package/{dist/es2015/common → common}/models/rounded.d.ts +2 -2
  19. package/{dist/es2015/common → common}/models/size.d.ts +3 -3
  20. package/{dist/es2015/common → common}/models/styling-classes.d.ts +0 -0
  21. package/{dist/es2015/common → common}/models/theme-color.d.ts +3 -3
  22. package/{dist/es2015/common → common}/models.d.ts +0 -1
  23. package/{dist/es2015/direction.d.ts → direction.d.ts} +0 -0
  24. package/{dist/es2015/dropdownbutton → dropdownbutton}/dropdownbutton.component.d.ts +36 -38
  25. package/dropdownbutton/dropdownbutton.module.d.ts +23 -0
  26. package/{dist/es2015 → esm2015}/button/button.directive.js +139 -209
  27. package/{dist/es2015 → esm2015}/button/button.module.js +13 -10
  28. package/{dist/es2015 → esm2015}/button/button.service.js +8 -10
  29. package/{dist/es → esm2015}/button/selection-settings.js +1 -0
  30. package/{dist/es2015 → esm2015}/buttongroup/buttongroup.component.js +82 -106
  31. package/esm2015/buttongroup/buttongroup.module.js +30 -0
  32. package/{dist/es → esm2015}/buttons.module.js +12 -12
  33. package/{dist/es2015 → esm2015}/chip/chip-content-click-event-args.interface.js +1 -0
  34. package/{dist/es2015 → esm2015}/chip/chip-list-remove-event-args.interface.js +1 -0
  35. package/{dist/es2015 → esm2015}/chip/chip-list.component.js +62 -73
  36. package/{dist/es2015 → esm2015}/chip/chip-remove-event-args.interface.js +1 -0
  37. package/{dist/es2015 → esm2015}/chip/chip.component.js +160 -148
  38. package/{dist/es2015 → esm2015}/chip/chip.module.js +16 -11
  39. package/{dist/es → esm2015}/chip/models/selection.js +1 -0
  40. package/{dist/es → esm2015}/common/models/fillmode.js +1 -0
  41. package/{dist/es → esm2015}/common/models/rounded.js +1 -0
  42. package/{dist/es → esm2015}/common/models/size.js +1 -0
  43. package/{dist/es → esm2015}/common/models/styling-classes.js +1 -0
  44. package/{dist/es → esm2015}/common/models/theme-color.js +1 -0
  45. package/{dist/es → esm2015}/common/models.js +5 -0
  46. package/{dist/es → esm2015}/direction.js +1 -0
  47. package/{dist/es2015 → esm2015}/dropdownbutton/dropdownbutton.component.js +175 -206
  48. package/esm2015/dropdownbutton/dropdownbutton.module.js +32 -0
  49. package/{dist/es2015 → esm2015}/floatingactionbutton/animations/animations.js +0 -0
  50. package/esm2015/floatingactionbutton/dial-item.component.js +127 -0
  51. package/esm2015/floatingactionbutton/dial-list.component.js +90 -0
  52. package/{dist/es2015 → esm2015}/floatingactionbutton/floatingactionbutton.component.js +205 -210
  53. package/{dist/es2015 → esm2015}/floatingactionbutton/floatingactionbutton.module.js +19 -11
  54. package/{dist/es → esm2015}/floatingactionbutton/models/align.js +1 -0
  55. package/{dist/es → esm2015}/floatingactionbutton/models/item-animation.interface.js +1 -0
  56. package/{dist/es → esm2015}/floatingactionbutton/models/item-click.event.js +1 -0
  57. package/{dist/es → esm2015}/floatingactionbutton/models/item.interface.js +1 -0
  58. package/{dist/es → esm2015}/floatingactionbutton/models/offset.js +1 -0
  59. package/{dist/es → esm2015}/floatingactionbutton/models/position-mode.js +1 -0
  60. package/esm2015/floatingactionbutton/templates/dial-item-template.directive.js +27 -0
  61. package/esm2015/floatingactionbutton/templates/fab-template.directive.js +27 -0
  62. package/{dist/es2015 → esm2015}/floatingactionbutton/utils.js +0 -0
  63. package/{dist/es2015 → esm2015}/focusable/focus.service.js +8 -10
  64. package/{dist/es2015 → esm2015}/focusable/focusable.directive.js +15 -16
  65. package/{dist/es2015/listbutton/list.module.d.ts → esm2015/kendo-angular-buttons.js} +2 -3
  66. package/{dist/es2015 → esm2015}/listbutton/button-item-template.directive.js +12 -12
  67. package/{dist/es2015 → esm2015}/listbutton/list-button.js +15 -2
  68. package/{dist/es → esm2015}/listbutton/list-item-model.js +1 -0
  69. package/esm2015/listbutton/list.component.js +140 -0
  70. package/esm2015/listbutton/list.module.js +39 -0
  71. package/{dist/es → esm2015}/listbutton/popup-settings.js +1 -0
  72. package/esm2015/listbutton/template-context.directive.js +34 -0
  73. package/{dist/es2015 → esm2015}/main.js +7 -0
  74. package/{dist/es → esm2015}/navigation/key-events.js +0 -0
  75. package/{dist/es2015 → esm2015}/navigation/navigation-action.js +1 -0
  76. package/{dist/es2015 → esm2015}/navigation/navigation-config.js +0 -0
  77. package/{dist/es2015 → esm2015}/navigation/navigation.service.js +11 -9
  78. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  79. package/{dist/es2015 → esm2015}/preventable-event.js +0 -0
  80. package/esm2015/splitbutton/localization/custom-messages.component.js +37 -0
  81. package/esm2015/splitbutton/localization/localized-messages.directive.js +36 -0
  82. package/esm2015/splitbutton/localization/messages.js +23 -0
  83. package/{dist/es2015 → esm2015}/splitbutton/splitbutton.component.js +216 -207
  84. package/esm2015/splitbutton/splitbutton.module.js +34 -0
  85. package/{dist/es2015 → esm2015}/util.js +7 -7
  86. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-buttons.js} +1843 -1866
  87. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/animations/animations.d.ts +0 -0
  88. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/dial-item.component.d.ts +8 -5
  89. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/dial-list.component.d.ts +5 -2
  90. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/floatingactionbutton.component.d.ts +50 -51
  91. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/floatingactionbutton.module.d.ts +13 -0
  92. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/align.d.ts +0 -0
  93. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/item-animation.interface.d.ts +0 -0
  94. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/item-click.event.d.ts +0 -0
  95. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/item.interface.d.ts +0 -0
  96. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/offset.d.ts +0 -0
  97. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/position-mode.d.ts +0 -0
  98. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/templates/dial-item-template.directive.d.ts +3 -0
  99. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/templates/fab-template.directive.d.ts +3 -0
  100. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/utils.d.ts +0 -0
  101. package/{dist/es2015/focusable → focusable}/focus.service.d.ts +5 -1
  102. package/{dist/es2015/focusable → focusable}/focusable.directive.d.ts +3 -0
  103. package/{dist/es2015/common/models/shape.d.ts → kendo-angular-buttons.d.ts} +3 -3
  104. package/{dist/es2015/listbutton → listbutton}/button-item-template.directive.d.ts +3 -0
  105. package/{dist/es2015/listbutton → listbutton}/list-button.d.ts +6 -2
  106. package/{dist/es2015/listbutton → listbutton}/list-item-model.d.ts +0 -0
  107. package/{dist/es2015/listbutton → listbutton}/list.component.d.ts +4 -1
  108. package/listbutton/list.module.d.ts +18 -0
  109. package/{dist/es2015/listbutton → listbutton}/popup-settings.d.ts +0 -0
  110. package/{dist/es2015/listbutton → listbutton}/template-context.directive.d.ts +4 -1
  111. package/{dist/es2015/main.d.ts → main.d.ts} +7 -1
  112. package/{dist/es2015/navigation → navigation}/key-events.d.ts +0 -0
  113. package/{dist/es2015/navigation → navigation}/navigation-action.d.ts +0 -0
  114. package/{dist/es2015/navigation → navigation}/navigation-config.d.ts +0 -0
  115. package/{dist/es2015/navigation → navigation}/navigation.service.d.ts +3 -0
  116. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  117. package/package.json +38 -113
  118. package/{dist/es2015/preventable-event.d.ts → preventable-event.d.ts} +0 -0
  119. package/schematics/ngAdd/index.js +5 -2
  120. package/schematics/ngAdd/index.js.map +1 -1
  121. package/{dist/es2015/splitbutton → splitbutton}/localization/custom-messages.component.d.ts +4 -1
  122. package/{dist/es2015/splitbutton → splitbutton}/localization/localized-messages.directive.d.ts +3 -0
  123. package/{dist/es2015/splitbutton → splitbutton}/localization/messages.d.ts +3 -0
  124. package/{dist/es2015/splitbutton → splitbutton}/splitbutton.component.d.ts +38 -27
  125. package/splitbutton/splitbutton.module.d.ts +25 -0
  126. package/{dist/es2015/util.d.ts → util.d.ts} +0 -0
  127. package/dist/cdn/js/kendo-angular-buttons.js +0 -20
  128. package/dist/cdn/main.js +0 -5
  129. package/dist/es/button/button.directive.js +0 -775
  130. package/dist/es/button/button.module.js +0 -50
  131. package/dist/es/button/button.service.js +0 -24
  132. package/dist/es/buttongroup/buttongroup.component.js +0 -354
  133. package/dist/es/buttongroup/buttongroup.module.js +0 -30
  134. package/dist/es/chip/chip-content-click-event-args.interface.js +0 -4
  135. package/dist/es/chip/chip-list-remove-event-args.interface.js +0 -4
  136. package/dist/es/chip/chip-list.component.js +0 -214
  137. package/dist/es/chip/chip-remove-event-args.interface.js +0 -4
  138. package/dist/es/chip/chip.component.js +0 -441
  139. package/dist/es/chip/chip.module.js +0 -55
  140. package/dist/es/common/models/shape.js +0 -4
  141. package/dist/es/dropdownbutton/dropdownbutton.component.js +0 -706
  142. package/dist/es/dropdownbutton/dropdownbutton.module.js +0 -32
  143. package/dist/es/floatingactionbutton/animations/animations.js +0 -33
  144. package/dist/es/floatingactionbutton/dial-item.component.js +0 -143
  145. package/dist/es/floatingactionbutton/dial-list.component.js +0 -76
  146. package/dist/es/floatingactionbutton/floatingactionbutton.component.js +0 -903
  147. package/dist/es/floatingactionbutton/floatingactionbutton.module.js +0 -65
  148. package/dist/es/floatingactionbutton/templates/dial-item-template.directive.js +0 -26
  149. package/dist/es/floatingactionbutton/templates/fab-template.directive.js +0 -26
  150. package/dist/es/floatingactionbutton/utils.js +0 -38
  151. package/dist/es/focusable/focus.service.js +0 -43
  152. package/dist/es/focusable/focusable.directive.js +0 -62
  153. package/dist/es/index.js +0 -22
  154. package/dist/es/listbutton/button-item-template.directive.js +0 -68
  155. package/dist/es/listbutton/list-button.js +0 -223
  156. package/dist/es/listbutton/list.component.js +0 -85
  157. package/dist/es/listbutton/list.module.js +0 -33
  158. package/dist/es/listbutton/template-context.directive.js +0 -40
  159. package/dist/es/main.js +0 -22
  160. package/dist/es/navigation/navigation-action.js +0 -19
  161. package/dist/es/navigation/navigation-config.js +0 -9
  162. package/dist/es/navigation/navigation.service.js +0 -114
  163. package/dist/es/package-metadata.js +0 -15
  164. package/dist/es/preventable-event.js +0 -29
  165. package/dist/es/splitbutton/localization/custom-messages.component.js +0 -44
  166. package/dist/es/splitbutton/localization/localized-messages.directive.js +0 -35
  167. package/dist/es/splitbutton/localization/messages.js +0 -22
  168. package/dist/es/splitbutton/splitbutton.component.js +0 -833
  169. package/dist/es/splitbutton/splitbutton.module.js +0 -34
  170. package/dist/es/util.js +0 -108
  171. package/dist/es2015/button/selection-settings.js +0 -4
  172. package/dist/es2015/buttongroup/buttongroup.module.js +0 -27
  173. package/dist/es2015/buttons.module.js +0 -51
  174. package/dist/es2015/chip/models/selection.js +0 -4
  175. package/dist/es2015/common/models/fillmode.js +0 -4
  176. package/dist/es2015/common/models/rounded.js +0 -4
  177. package/dist/es2015/common/models/shape.js +0 -4
  178. package/dist/es2015/common/models/size.js +0 -4
  179. package/dist/es2015/common/models/styling-classes.js +0 -4
  180. package/dist/es2015/common/models/theme-color.js +0 -4
  181. package/dist/es2015/common/models.js +0 -4
  182. package/dist/es2015/direction.js +0 -4
  183. package/dist/es2015/dropdownbutton/dropdownbutton.module.d.ts +0 -14
  184. package/dist/es2015/dropdownbutton/dropdownbutton.module.js +0 -29
  185. package/dist/es2015/floatingactionbutton/dial-item.component.js +0 -133
  186. package/dist/es2015/floatingactionbutton/dial-list.component.js +0 -81
  187. package/dist/es2015/floatingactionbutton/models/align.js +0 -4
  188. package/dist/es2015/floatingactionbutton/models/item-animation.interface.js +0 -4
  189. package/dist/es2015/floatingactionbutton/models/item-click.event.js +0 -4
  190. package/dist/es2015/floatingactionbutton/models/item.interface.js +0 -4
  191. package/dist/es2015/floatingactionbutton/models/offset.js +0 -4
  192. package/dist/es2015/floatingactionbutton/models/position-mode.js +0 -4
  193. package/dist/es2015/floatingactionbutton/templates/dial-item-template.directive.js +0 -25
  194. package/dist/es2015/floatingactionbutton/templates/fab-template.directive.js +0 -25
  195. package/dist/es2015/index.d.ts +0 -22
  196. package/dist/es2015/index.js +0 -22
  197. package/dist/es2015/index.metadata.json +0 -1
  198. package/dist/es2015/listbutton/list-item-model.js +0 -4
  199. package/dist/es2015/listbutton/list.component.js +0 -115
  200. package/dist/es2015/listbutton/list.module.js +0 -30
  201. package/dist/es2015/listbutton/popup-settings.js +0 -4
  202. package/dist/es2015/listbutton/template-context.directive.js +0 -35
  203. package/dist/es2015/navigation/key-events.js +0 -13
  204. package/dist/es2015/splitbutton/localization/custom-messages.component.js +0 -36
  205. package/dist/es2015/splitbutton/localization/localized-messages.directive.js +0 -31
  206. package/dist/es2015/splitbutton/localization/messages.js +0 -16
  207. package/dist/es2015/splitbutton/splitbutton.module.d.ts +0 -14
  208. package/dist/es2015/splitbutton/splitbutton.module.js +0 -31
  209. package/dist/fesm5/index.js +0 -5544
  210. package/dist/npm/button/button.directive.js +0 -777
  211. package/dist/npm/button/button.module.js +0 -52
  212. package/dist/npm/button/button.service.js +0 -26
  213. package/dist/npm/button/selection-settings.js +0 -6
  214. package/dist/npm/buttongroup/buttongroup.component.js +0 -356
  215. package/dist/npm/buttongroup/buttongroup.module.js +0 -32
  216. package/dist/npm/buttons.module.js +0 -56
  217. package/dist/npm/chip/chip-content-click-event-args.interface.js +0 -6
  218. package/dist/npm/chip/chip-list-remove-event-args.interface.js +0 -6
  219. package/dist/npm/chip/chip-list.component.js +0 -216
  220. package/dist/npm/chip/chip-remove-event-args.interface.js +0 -6
  221. package/dist/npm/chip/chip.component.js +0 -443
  222. package/dist/npm/chip/chip.module.js +0 -57
  223. package/dist/npm/chip/models/selection.js +0 -6
  224. package/dist/npm/common/models/fillmode.js +0 -6
  225. package/dist/npm/common/models/rounded.js +0 -6
  226. package/dist/npm/common/models/shape.js +0 -6
  227. package/dist/npm/common/models/size.js +0 -6
  228. package/dist/npm/common/models/styling-classes.js +0 -6
  229. package/dist/npm/common/models/theme-color.js +0 -6
  230. package/dist/npm/common/models.js +0 -6
  231. package/dist/npm/direction.js +0 -6
  232. package/dist/npm/dropdownbutton/dropdownbutton.component.js +0 -708
  233. package/dist/npm/dropdownbutton/dropdownbutton.module.js +0 -34
  234. package/dist/npm/floatingactionbutton/animations/animations.js +0 -37
  235. package/dist/npm/floatingactionbutton/dial-item.component.js +0 -145
  236. package/dist/npm/floatingactionbutton/dial-list.component.js +0 -78
  237. package/dist/npm/floatingactionbutton/floatingactionbutton.component.js +0 -905
  238. package/dist/npm/floatingactionbutton/floatingactionbutton.module.js +0 -67
  239. package/dist/npm/floatingactionbutton/models/align.js +0 -6
  240. package/dist/npm/floatingactionbutton/models/item-animation.interface.js +0 -6
  241. package/dist/npm/floatingactionbutton/models/item-click.event.js +0 -6
  242. package/dist/npm/floatingactionbutton/models/item.interface.js +0 -6
  243. package/dist/npm/floatingactionbutton/models/offset.js +0 -6
  244. package/dist/npm/floatingactionbutton/models/position-mode.js +0 -6
  245. package/dist/npm/floatingactionbutton/templates/dial-item-template.directive.js +0 -28
  246. package/dist/npm/floatingactionbutton/templates/fab-template.directive.js +0 -28
  247. package/dist/npm/floatingactionbutton/utils.js +0 -42
  248. package/dist/npm/focusable/focus.service.js +0 -45
  249. package/dist/npm/focusable/focusable.directive.js +0 -64
  250. package/dist/npm/index.js +0 -39
  251. package/dist/npm/listbutton/button-item-template.directive.js +0 -70
  252. package/dist/npm/listbutton/list-button.js +0 -225
  253. package/dist/npm/listbutton/list-item-model.js +0 -6
  254. package/dist/npm/listbutton/list.component.js +0 -87
  255. package/dist/npm/listbutton/list.module.js +0 -35
  256. package/dist/npm/listbutton/popup-settings.js +0 -6
  257. package/dist/npm/listbutton/template-context.directive.js +0 -42
  258. package/dist/npm/main.js +0 -45
  259. package/dist/npm/navigation/key-events.js +0 -15
  260. package/dist/npm/navigation/navigation-action.js +0 -21
  261. package/dist/npm/navigation/navigation-config.js +0 -11
  262. package/dist/npm/navigation/navigation.service.js +0 -116
  263. package/dist/npm/package-metadata.js +0 -17
  264. package/dist/npm/preventable-event.js +0 -31
  265. package/dist/npm/splitbutton/localization/custom-messages.component.js +0 -46
  266. package/dist/npm/splitbutton/localization/localized-messages.directive.js +0 -37
  267. package/dist/npm/splitbutton/localization/messages.js +0 -24
  268. package/dist/npm/splitbutton/splitbutton.component.js +0 -835
  269. package/dist/npm/splitbutton/splitbutton.module.js +0 -36
  270. package/dist/npm/util.js +0 -111
  271. package/dist/systemjs/kendo-angular-buttons.js +0 -5
@@ -2,29 +2,33 @@
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 * as tslib_1 from "tslib";
6
- /* tslint:disable:no-access-missing-member */
7
- import { Component, ContentChild, TemplateRef, ViewChild, ViewContainerRef, ElementRef, EventEmitter, HostBinding, HostListener, Input, Output, NgZone, ChangeDetectorRef } from '@angular/core';
5
+ import { Component, ContentChild, ViewChild, ViewContainerRef, EventEmitter, HostBinding, HostListener, Input, Output } from '@angular/core';
8
6
  import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
9
- import { PopupService } from '@progress/kendo-angular-popup';
10
7
  import { isDocumentAvailable, guid, Keys, isChanged } from '@progress/kendo-angular-common';
11
8
  import { ButtonItemTemplateDirective } from '../listbutton/button-item-template.directive';
12
9
  import { isPresent, tick } from '../util';
13
10
  import { ListButton } from '../listbutton/list-button';
14
- import { ListComponent } from '../listbutton/list.component';
15
11
  import { FocusService } from '../focusable/focus.service';
16
12
  import { NavigationService } from '../navigation/navigation.service';
17
13
  import { NAVIGATION_CONFIG } from '../navigation/navigation-config';
18
14
  import { PreventableEvent } from '../preventable-event';
19
15
  import { merge, Subscription } from 'rxjs';
16
+ import * as i0 from "@angular/core";
17
+ import * as i1 from "../focusable/focus.service";
18
+ import * as i2 from "../navigation/navigation.service";
19
+ import * as i3 from "@progress/kendo-angular-popup";
20
+ import * as i4 from "@progress/kendo-angular-l10n";
21
+ import * as i5 from "../listbutton/list.component";
22
+ import * as i6 from "../button/button.directive";
23
+ import * as i7 from "@angular/common";
20
24
  const NAVIGATION_SETTINGS = {
21
25
  useLeftRightArrows: true
22
26
  };
23
- const ɵ0 = NAVIGATION_SETTINGS;
24
27
  const NAVIGATION_SETTINGS_PROVIDER = {
25
28
  provide: NAVIGATION_CONFIG,
26
- useValue: ɵ0
29
+ useValue: NAVIGATION_SETTINGS
27
30
  };
31
+ const DEFAULT_FILL_MODE = 'solid';
28
32
  /**
29
33
  * Represents the Kendo UI DropDownButton component for Angular.
30
34
  *
@@ -53,7 +57,7 @@ const NAVIGATION_SETTINGS_PROVIDER = {
53
57
  * }
54
58
  * ```
55
59
  */
56
- let DropDownButtonComponent = class DropDownButtonComponent extends ListButton {
60
+ export class DropDownButtonComponent extends ListButton {
57
61
  constructor(focusService, navigationService, wrapperRef, zone, popupService, elRef, localization, cdr) {
58
62
  super(focusService, navigationService, wrapperRef, zone, localization, cdr);
59
63
  this.popupService = popupService;
@@ -75,32 +79,22 @@ let DropDownButtonComponent = class DropDownButtonComponent extends ListButton {
75
79
  * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-size)).
76
80
  *
77
81
  * The possible values are:
78
- * * `'small'`
79
- * * `'medium'` (default)
80
- * * `'large'`
81
- * * `null`
82
+ * * `small`
83
+ * * `medium` (default)
84
+ * * `large`
85
+ * * `none`
82
86
  */
83
87
  this.size = 'medium';
84
- /**
85
- * The shape property specifies if the DropDownButton will be a square or rectangle.
86
- * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-shape)).
87
- *
88
- * The possible values are:
89
- * * `'rectangle'` (default)
90
- * * `'square'`
91
- * * `null`
92
- */
93
- this.shape = 'rectangle';
94
88
  /**
95
89
  * The rounded property specifies the border radius of the DropDownButton
96
90
  * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-rounded)).
97
91
  *
98
92
  * The possible values are:
99
- * * `'small'`
100
- * * `'medium'` (default)
101
- * * `'large'`
102
- * * `'full'`
103
- * * `null`
93
+ * * `small`
94
+ * * `medium` (default)
95
+ * * `large`
96
+ * * `full`
97
+ * * `none`
104
98
  */
105
99
  this.rounded = 'medium';
106
100
  /**
@@ -120,7 +114,7 @@ let DropDownButtonComponent = class DropDownButtonComponent extends ListButton {
120
114
  * * `dark`— Applies coloring based on the `dark` theme color.
121
115
  * * `light`— Applies coloring based on the `light` theme color.
122
116
  * * `inverse`— Applies coloring based on the `inverse` theme color.
123
- * * `null` —Removes the default CSS class (no class would be rendered).
117
+ * * `none` —Removes the default CSS class (no class would be rendered).
124
118
  */
125
119
  this.themeColor = 'base';
126
120
  /**
@@ -144,13 +138,13 @@ let DropDownButtonComponent = class DropDownButtonComponent extends ListButton {
144
138
  /**
145
139
  * Fires each time the DropDownButton gets focused.
146
140
  */
147
- this.onFocus = new EventEmitter(); //tslint:disable-line:no-output-rename
141
+ this.onFocus = new EventEmitter();
148
142
  /**
149
143
  * Fires each time the DropDownButton gets blurred.
150
144
  */
151
- this.onBlur = new EventEmitter(); //tslint:disable-line:no-output-rename
145
+ this.onBlur = new EventEmitter();
152
146
  this.listId = guid();
153
- this._fillMode = 'solid';
147
+ this._fillMode = DEFAULT_FILL_MODE;
154
148
  this.popupSubs = new Subscription();
155
149
  this._itemClick = this.itemClick;
156
150
  this._blur = this.onBlur;
@@ -202,7 +196,7 @@ let DropDownButtonComponent = class DropDownButtonComponent extends ListButton {
202
196
  * * `flat`
203
197
  * * `outline`
204
198
  * * `link`
205
- * * `null`
199
+ * * `none`
206
200
  */
207
201
  set fillMode(fillMode) {
208
202
  this._fillMode = fillMode === 'clear' ? 'flat' : fillMode;
@@ -470,167 +464,76 @@ let DropDownButtonComponent = class DropDownButtonComponent extends ListButton {
470
464
  this.popupSubs.unsubscribe();
471
465
  }
472
466
  }
473
- };
474
- tslib_1.__decorate([
475
- Input(),
476
- tslib_1.__metadata("design:type", String)
477
- ], DropDownButtonComponent.prototype, "icon", void 0);
478
- tslib_1.__decorate([
479
- Input(),
480
- tslib_1.__metadata("design:type", String)
481
- ], DropDownButtonComponent.prototype, "iconClass", void 0);
482
- tslib_1.__decorate([
483
- Input(),
484
- tslib_1.__metadata("design:type", String)
485
- ], DropDownButtonComponent.prototype, "imageUrl", void 0);
486
- tslib_1.__decorate([
487
- Input(),
488
- tslib_1.__metadata("design:type", Object),
489
- tslib_1.__metadata("design:paramtypes", [Object])
490
- ], DropDownButtonComponent.prototype, "popupSettings", null);
491
- tslib_1.__decorate([
492
- Input(),
493
- tslib_1.__metadata("design:type", String)
494
- ], DropDownButtonComponent.prototype, "textField", void 0);
495
- tslib_1.__decorate([
496
- Input(),
497
- tslib_1.__metadata("design:type", Boolean),
498
- tslib_1.__metadata("design:paramtypes", [Boolean])
499
- ], DropDownButtonComponent.prototype, "disabled", null);
500
- tslib_1.__decorate([
501
- Input(),
502
- tslib_1.__metadata("design:type", Object),
503
- tslib_1.__metadata("design:paramtypes", [Object])
504
- ], DropDownButtonComponent.prototype, "data", null);
505
- tslib_1.__decorate([
506
- Input(),
507
- tslib_1.__metadata("design:type", String)
508
- ], DropDownButtonComponent.prototype, "size", void 0);
509
- tslib_1.__decorate([
510
- Input(),
511
- tslib_1.__metadata("design:type", String)
512
- ], DropDownButtonComponent.prototype, "shape", void 0);
513
- tslib_1.__decorate([
514
- Input(),
515
- tslib_1.__metadata("design:type", String)
516
- ], DropDownButtonComponent.prototype, "rounded", void 0);
517
- tslib_1.__decorate([
518
- Input(),
519
- tslib_1.__metadata("design:type", String),
520
- tslib_1.__metadata("design:paramtypes", [String])
521
- ], DropDownButtonComponent.prototype, "fillMode", null);
522
- tslib_1.__decorate([
523
- Input(),
524
- tslib_1.__metadata("design:type", String)
525
- ], DropDownButtonComponent.prototype, "themeColor", void 0);
526
- tslib_1.__decorate([
527
- Input(),
528
- tslib_1.__metadata("design:type", Object)
529
- ], DropDownButtonComponent.prototype, "buttonClass", void 0);
530
- tslib_1.__decorate([
531
- Input(),
532
- tslib_1.__metadata("design:type", Number)
533
- ], DropDownButtonComponent.prototype, "tabIndex", void 0);
534
- tslib_1.__decorate([
535
- Output(),
536
- tslib_1.__metadata("design:type", EventEmitter)
537
- ], DropDownButtonComponent.prototype, "itemClick", void 0);
538
- tslib_1.__decorate([
539
- Output(),
540
- tslib_1.__metadata("design:type", EventEmitter)
541
- ], DropDownButtonComponent.prototype, "open", void 0);
542
- tslib_1.__decorate([
543
- Output(),
544
- tslib_1.__metadata("design:type", EventEmitter)
545
- ], DropDownButtonComponent.prototype, "close", void 0);
546
- tslib_1.__decorate([
547
- Output('focus'),
548
- tslib_1.__metadata("design:type", EventEmitter)
549
- ], DropDownButtonComponent.prototype, "onFocus", void 0);
550
- tslib_1.__decorate([
551
- Output('blur'),
552
- tslib_1.__metadata("design:type", EventEmitter)
553
- ], DropDownButtonComponent.prototype, "onBlur", void 0);
554
- tslib_1.__decorate([
555
- HostBinding('class.k-focus'),
556
- tslib_1.__metadata("design:type", Boolean),
557
- tslib_1.__metadata("design:paramtypes", [])
558
- ], DropDownButtonComponent.prototype, "focused", null);
559
- tslib_1.__decorate([
560
- HostBinding('class.k-dropdown-button'),
561
- tslib_1.__metadata("design:type", Boolean),
562
- tslib_1.__metadata("design:paramtypes", [])
563
- ], DropDownButtonComponent.prototype, "widgetClasses", null);
564
- tslib_1.__decorate([
565
- HostBinding('attr.dir'),
566
- tslib_1.__metadata("design:type", String),
567
- tslib_1.__metadata("design:paramtypes", [])
568
- ], DropDownButtonComponent.prototype, "dir", null);
569
- tslib_1.__decorate([
570
- ContentChild(ButtonItemTemplateDirective, { static: false }),
571
- tslib_1.__metadata("design:type", ButtonItemTemplateDirective)
572
- ], DropDownButtonComponent.prototype, "itemTemplate", void 0);
573
- tslib_1.__decorate([
574
- ViewChild('button', { static: true }),
575
- tslib_1.__metadata("design:type", ElementRef)
576
- ], DropDownButtonComponent.prototype, "button", void 0);
577
- tslib_1.__decorate([
578
- ViewChild('buttonList', { static: false }),
579
- tslib_1.__metadata("design:type", ListComponent)
580
- ], DropDownButtonComponent.prototype, "buttonList", void 0);
581
- tslib_1.__decorate([
582
- ViewChild('popupTemplate', { static: true }),
583
- tslib_1.__metadata("design:type", TemplateRef)
584
- ], DropDownButtonComponent.prototype, "popupTemplate", void 0);
585
- tslib_1.__decorate([
586
- ViewChild('container', { read: ViewContainerRef, static: true }),
587
- tslib_1.__metadata("design:type", ViewContainerRef)
588
- ], DropDownButtonComponent.prototype, "container", void 0);
589
- tslib_1.__decorate([
590
- HostListener('keydown', ['$event']),
591
- tslib_1.__metadata("design:type", Function),
592
- tslib_1.__metadata("design:paramtypes", [Object]),
593
- tslib_1.__metadata("design:returntype", void 0)
594
- ], DropDownButtonComponent.prototype, "keydown", null);
595
- tslib_1.__decorate([
596
- HostListener('keypress', ['$event']),
597
- tslib_1.__metadata("design:type", Function),
598
- tslib_1.__metadata("design:paramtypes", [Object]),
599
- tslib_1.__metadata("design:returntype", void 0)
600
- ], DropDownButtonComponent.prototype, "keypress", null);
601
- tslib_1.__decorate([
602
- HostListener('keyup', ['$event']),
603
- tslib_1.__metadata("design:type", Function),
604
- tslib_1.__metadata("design:paramtypes", [Object]),
605
- tslib_1.__metadata("design:returntype", void 0)
606
- ], DropDownButtonComponent.prototype, "keyup", null);
607
- tslib_1.__decorate([
608
- HostListener('mousedown', ['$event']),
609
- tslib_1.__metadata("design:type", Function),
610
- tslib_1.__metadata("design:paramtypes", [Object]),
611
- tslib_1.__metadata("design:returntype", void 0)
612
- ], DropDownButtonComponent.prototype, "mousedown", null);
613
- tslib_1.__decorate([
614
- HostListener('mouseup', ['$event']),
615
- tslib_1.__metadata("design:type", Function),
616
- tslib_1.__metadata("design:paramtypes", [Object]),
617
- tslib_1.__metadata("design:returntype", void 0)
618
- ], DropDownButtonComponent.prototype, "mouseup", null);
619
- DropDownButtonComponent = tslib_1.__decorate([
620
- Component({
621
- exportAs: 'kendoDropDownButton',
622
- providers: [
623
- FocusService,
624
- NavigationService,
625
- NAVIGATION_SETTINGS_PROVIDER,
626
- LocalizationService,
627
- {
628
- provide: L10N_PREFIX,
629
- useValue: 'kendo.dropdownbutton'
630
- }
631
- ],
632
- selector: 'kendo-dropdownbutton',
633
- template: `
467
+ }
468
+ DropDownButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropDownButtonComponent, deps: [{ token: i1.FocusService }, { token: i2.NavigationService }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i3.PopupService }, { token: i0.ElementRef }, { token: i4.LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
469
+ 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: [
470
+ FocusService,
471
+ NavigationService,
472
+ NAVIGATION_SETTINGS_PROVIDER,
473
+ LocalizationService,
474
+ {
475
+ provide: L10N_PREFIX,
476
+ useValue: 'kendo.dropdownbutton'
477
+ }
478
+ ], 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: `
479
+ <button kendoButton #button
480
+ role="menu"
481
+ type="button"
482
+ [tabindex]="componentTabIndex"
483
+ [class.k-active]="active"
484
+ [disabled]="disabled"
485
+ [icon]="icon"
486
+ [iconClass]="iconClass"
487
+ [imageUrl]="imageUrl"
488
+ [ngClass]="buttonClass"
489
+ [size]="size"
490
+ [rounded]="rounded"
491
+ [fillMode]="fillMode"
492
+ [themeColor]="fillMode ? themeColor : null"
493
+ (click)="openPopup()"
494
+ (focus)="handleFocus()"
495
+ (blur)="onButtonBlur()"
496
+ [attr.aria-disabled]="disabled"
497
+ [attr.aria-expanded]="openState"
498
+ [attr.aria-haspopup]="true"
499
+ [attr.aria-owns]="listId"
500
+ >
501
+ <ng-content></ng-content>
502
+ </button>
503
+ <ng-template #popupTemplate>
504
+ <kendo-button-list
505
+ #buttonList
506
+ [id]="listId"
507
+ [data]="data"
508
+ [textField]="textField"
509
+ [itemTemplate]="itemTemplate"
510
+ (onItemClick)="onItemClick($event)"
511
+ (keydown)="keyDownHandler($event)"
512
+ (keypress)="keyPressHandler($event)"
513
+ (keyup)="keyUpHandler($event)"
514
+ [attr.dir]="dir"
515
+ [size]="size"
516
+ >
517
+ </kendo-button-list>
518
+ </ng-template>
519
+ <ng-container #container></ng-container>
520
+ `, isInline: true, components: [{ type: i5.ListComponent, selector: "kendo-button-list", inputs: ["data", "textField", "itemTemplate", "size"], outputs: ["onItemClick", "onItemBlur"] }], directives: [{ type: i6.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: i7.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
521
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropDownButtonComponent, decorators: [{
522
+ type: Component,
523
+ args: [{
524
+ exportAs: 'kendoDropDownButton',
525
+ providers: [
526
+ FocusService,
527
+ NavigationService,
528
+ NAVIGATION_SETTINGS_PROVIDER,
529
+ LocalizationService,
530
+ {
531
+ provide: L10N_PREFIX,
532
+ useValue: 'kendo.dropdownbutton'
533
+ }
534
+ ],
535
+ selector: 'kendo-dropdownbutton',
536
+ template: `
634
537
  <button kendoButton #button
635
538
  role="menu"
636
539
  type="button"
@@ -642,7 +545,6 @@ DropDownButtonComponent = tslib_1.__decorate([
642
545
  [imageUrl]="imageUrl"
643
546
  [ngClass]="buttonClass"
644
547
  [size]="size"
645
- [shape]="shape"
646
548
  [rounded]="rounded"
647
549
  [fillMode]="fillMode"
648
550
  [themeColor]="fillMode ? themeColor : null"
@@ -674,15 +576,82 @@ DropDownButtonComponent = tslib_1.__decorate([
674
576
  </ng-template>
675
577
  <ng-container #container></ng-container>
676
578
  `
677
- }),
678
- tslib_1.__metadata("design:paramtypes", [FocusService,
679
- NavigationService,
680
- ElementRef,
681
- NgZone,
682
- PopupService,
683
- ElementRef,
684
- LocalizationService,
685
- ChangeDetectorRef])
686
- ], DropDownButtonComponent);
687
- export { DropDownButtonComponent };
688
- export { ɵ0 };
579
+ }]
580
+ }], ctorParameters: function () { return [{ type: i1.FocusService }, { type: i2.NavigationService }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i3.PopupService }, { type: i0.ElementRef }, { type: i4.LocalizationService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { icon: [{
581
+ type: Input
582
+ }], iconClass: [{
583
+ type: Input
584
+ }], imageUrl: [{
585
+ type: Input
586
+ }], popupSettings: [{
587
+ type: Input
588
+ }], textField: [{
589
+ type: Input
590
+ }], disabled: [{
591
+ type: Input
592
+ }], data: [{
593
+ type: Input
594
+ }], size: [{
595
+ type: Input
596
+ }], rounded: [{
597
+ type: Input
598
+ }], fillMode: [{
599
+ type: Input
600
+ }], themeColor: [{
601
+ type: Input
602
+ }], buttonClass: [{
603
+ type: Input
604
+ }], tabIndex: [{
605
+ type: Input
606
+ }], itemClick: [{
607
+ type: Output
608
+ }], open: [{
609
+ type: Output
610
+ }], close: [{
611
+ type: Output
612
+ }], onFocus: [{
613
+ type: Output,
614
+ args: ['focus']
615
+ }], onBlur: [{
616
+ type: Output,
617
+ args: ['blur']
618
+ }], focused: [{
619
+ type: HostBinding,
620
+ args: ['class.k-focus']
621
+ }], widgetClasses: [{
622
+ type: HostBinding,
623
+ args: ['class.k-dropdown-button']
624
+ }], dir: [{
625
+ type: HostBinding,
626
+ args: ['attr.dir']
627
+ }], itemTemplate: [{
628
+ type: ContentChild,
629
+ args: [ButtonItemTemplateDirective, { static: false }]
630
+ }], button: [{
631
+ type: ViewChild,
632
+ args: ['button', { static: true }]
633
+ }], buttonList: [{
634
+ type: ViewChild,
635
+ args: ['buttonList', { static: false }]
636
+ }], popupTemplate: [{
637
+ type: ViewChild,
638
+ args: ['popupTemplate', { static: true }]
639
+ }], container: [{
640
+ type: ViewChild,
641
+ args: ['container', { read: ViewContainerRef, static: true }]
642
+ }], keydown: [{
643
+ type: HostListener,
644
+ args: ['keydown', ['$event']]
645
+ }], keypress: [{
646
+ type: HostListener,
647
+ args: ['keypress', ['$event']]
648
+ }], keyup: [{
649
+ type: HostListener,
650
+ args: ['keyup', ['$event']]
651
+ }], mousedown: [{
652
+ type: HostListener,
653
+ args: ['mousedown', ['$event']]
654
+ }], mouseup: [{
655
+ type: HostListener,
656
+ args: ['mouseup', ['$event']]
657
+ }] } });
@@ -0,0 +1,32 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { NgModule } from '@angular/core';
6
+ import { CommonModule } from '@angular/common';
7
+ import { PopupModule } from '@progress/kendo-angular-popup';
8
+ import { ListModule } from '../listbutton/list.module';
9
+ import { ButtonModule } from '../button/button.module';
10
+ import { DropDownButtonComponent } from './dropdownbutton.component';
11
+ import * as i0 from "@angular/core";
12
+ /**
13
+ * @hidden
14
+ *
15
+ * The exported package module.
16
+ *
17
+ * The package exports:
18
+ * - `DropDownButtonComponent`&mdash;The DropDownButtonComponent component class.
19
+ */
20
+ export class DropDownButtonModule {
21
+ }
22
+ DropDownButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropDownButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
23
+ 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] });
24
+ DropDownButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropDownButtonModule, imports: [[CommonModule, PopupModule, ListModule, ButtonModule], ListModule] });
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropDownButtonModule, decorators: [{
26
+ type: NgModule,
27
+ args: [{
28
+ declarations: [DropDownButtonComponent],
29
+ exports: [DropDownButtonComponent, ListModule],
30
+ imports: [CommonModule, PopupModule, ListModule, ButtonModule]
31
+ }]
32
+ }] });
@@ -0,0 +1,127 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { Component, HostBinding, Input } from "@angular/core";
6
+ import * as i0 from "@angular/core";
7
+ import * as i1 from "@progress/kendo-angular-l10n";
8
+ import * as i2 from "@angular/common";
9
+ /**
10
+ * @hidden
11
+ */
12
+ export class DialItemComponent {
13
+ constructor(element, renderer, localisationService) {
14
+ this.element = element;
15
+ this.renderer = renderer;
16
+ this.localisationService = localisationService;
17
+ this.hostClass = true;
18
+ this.role = 'menuitem';
19
+ }
20
+ get disabledClass() {
21
+ return this.item.disabled;
22
+ }
23
+ get title() {
24
+ const label = this.item.label;
25
+ return label ? label : this.itemTitle;
26
+ }
27
+ get indexAttr() {
28
+ return this.index;
29
+ }
30
+ get iconClasses() {
31
+ const classes = [];
32
+ if (this.item.iconClass) {
33
+ classes.push(`${this.item.iconClass}`);
34
+ }
35
+ if (this.item.icon) {
36
+ classes.push(`k-fab-item-icon k-icon k-i-${this.item.icon}`);
37
+ }
38
+ return classes;
39
+ }
40
+ get itemTitle() {
41
+ const icon = this.item.icon;
42
+ const itemTitle = this.item.itemTitle;
43
+ return (icon && itemTitle) ? itemTitle : icon;
44
+ }
45
+ ngAfterViewInit() {
46
+ const element = this.element.nativeElement;
47
+ const rtl = this.localisationService.rtl;
48
+ const hAlign = this.align.horizontal;
49
+ this.renderer.addClass(element, this.getTextDirectionClass(rtl, hAlign));
50
+ }
51
+ getTextDirectionClass(rtl, hAlign) {
52
+ const dir = rtl ? 'rtl' : 'ltr';
53
+ const align = hAlign === 'end' ? 'end' : 'start';
54
+ const directions = {
55
+ rtl: { end: 'k-text-left', start: 'k-text-right' },
56
+ ltr: { start: 'k-text-left', end: 'k-text-right' }
57
+ };
58
+ return directions[dir][align];
59
+ }
60
+ }
61
+ 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 });
62
+ 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: `
63
+ <ng-template *ngIf="dialItemTemplate"
64
+ [ngTemplateOutlet]="dialItemTemplate"
65
+ [ngTemplateOutletContext]="{ $implicit: item, index: index, isFocused: isFocused }"
66
+ >
67
+ </ng-template>
68
+
69
+ <ng-container *ngIf="!dialItemTemplate">
70
+ <span *ngIf="item.label" class="k-fab-item-text">{{ item.label }}</span>
71
+ <span *ngIf="item.icon || item.iconClass" [ngClass]="iconClasses"></span>
72
+ </ng-container>
73
+ `, 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"] }] });
74
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialItemComponent, decorators: [{
75
+ type: Component,
76
+ args: [{
77
+ // eslint-disable-next-line @angular-eslint/component-selector
78
+ selector: '[kendoDialItem]',
79
+ template: `
80
+ <ng-template *ngIf="dialItemTemplate"
81
+ [ngTemplateOutlet]="dialItemTemplate"
82
+ [ngTemplateOutletContext]="{ $implicit: item, index: index, isFocused: isFocused }"
83
+ >
84
+ </ng-template>
85
+
86
+ <ng-container *ngIf="!dialItemTemplate">
87
+ <span *ngIf="item.label" class="k-fab-item-text">{{ item.label }}</span>
88
+ <span *ngIf="item.icon || item.iconClass" [ngClass]="iconClasses"></span>
89
+ </ng-container>
90
+ `
91
+ }]
92
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.LocalizationService }]; }, propDecorators: { hostClass: [{
93
+ type: HostBinding,
94
+ args: ['class.k-fab-item']
95
+ }], role: [{
96
+ type: HostBinding,
97
+ args: ['attr.role']
98
+ }], disabledClass: [{
99
+ type: HostBinding,
100
+ args: ['attr.aria-disabled']
101
+ }, {
102
+ type: HostBinding,
103
+ args: ['class.k-disabled']
104
+ }], title: [{
105
+ type: HostBinding,
106
+ args: ['attr.title']
107
+ }, {
108
+ type: HostBinding,
109
+ args: ['attr.aria-label']
110
+ }], indexAttr: [{
111
+ type: HostBinding,
112
+ args: ['attr.data-fab-item-index']
113
+ }], cssClass: [{
114
+ type: Input
115
+ }], cssStyle: [{
116
+ type: Input
117
+ }], isFocused: [{
118
+ type: Input
119
+ }], index: [{
120
+ type: Input
121
+ }], item: [{
122
+ type: Input
123
+ }], dialItemTemplate: [{
124
+ type: Input
125
+ }], align: [{
126
+ type: Input
127
+ }] } });