@progress/kendo-angular-buttons 6.4.0 → 7.0.0-next.202111120840

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 (265) hide show
  1. package/bundles/kendo-angular-buttons.umd.js +5 -0
  2. package/{dist/es2015/button → button}/button.directive.d.ts +29 -21
  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/button-look.d.ts → button-look.d.ts} +0 -0
  7. package/{dist/es2015/buttongroup → buttongroup}/buttongroup.component.d.ts +16 -12
  8. package/buttongroup/buttongroup.module.d.ts +21 -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 +5 -2
  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 +15 -14
  15. package/{dist/es2015/chip → chip}/chip.module.d.ts +7 -0
  16. package/{dist/es2015/buttongroup/buttongroup.module.d.ts → chip/models/chip-look.d.ts} +10 -6
  17. package/{dist/es2015/chip → chip}/models/selection.d.ts +0 -0
  18. package/{dist/es2015/chip → chip}/models/type.d.ts +0 -0
  19. package/{dist/es2015/common → common}/models/shape.d.ts +0 -0
  20. package/{dist/es2015/common → common}/models/size.d.ts +0 -0
  21. package/{dist/es2015/common → common}/models/theme-color.d.ts +0 -0
  22. package/{dist/es2015/direction.d.ts → direction.d.ts} +0 -0
  23. package/{dist/es2015/dropdownbutton → dropdownbutton}/dropdownbutton.component.d.ts +24 -17
  24. package/dropdownbutton/dropdownbutton.module.d.ts +23 -0
  25. package/{dist/es2015 → esm2015}/button/button.directive.js +97 -151
  26. package/{dist/es → esm2015}/button/button.module.js +13 -13
  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}/button-look.js +1 -0
  30. package/{dist/es2015 → esm2015}/buttongroup/buttongroup.component.js +93 -125
  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 +56 -63
  36. package/{dist/es → esm2015}/chip/chip-remove-event-args.interface.js +1 -0
  37. package/{dist/es2015 → esm2015}/chip/chip.component.js +121 -128
  38. package/{dist/es2015 → esm2015}/chip/chip.module.js +16 -11
  39. package/{dist/es → esm2015}/chip/models/chip-look.js +1 -0
  40. package/{dist/es → esm2015}/chip/models/selection.js +1 -0
  41. package/{dist/es → esm2015}/chip/models/type.js +1 -0
  42. package/{dist/es → esm2015}/common/models/shape.js +1 -0
  43. package/{dist/es → esm2015}/common/models/size.js +1 -0
  44. package/{dist/es → esm2015}/common/models/theme-color.js +1 -0
  45. package/{dist/es → esm2015}/direction.js +1 -0
  46. package/{dist/es2015 → esm2015}/dropdownbutton/dropdownbutton.component.js +162 -180
  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 +126 -0
  50. package/esm2015/floatingactionbutton/dial-list.component.js +89 -0
  51. package/{dist/es2015 → esm2015}/floatingactionbutton/floatingactionbutton.component.js +150 -150
  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 +13 -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 +120 -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 +33 -0
  72. package/{dist/es2015 → esm2015}/main.js +5 -1
  73. package/{dist/es → esm2015}/navigation/key-events.js +0 -0
  74. package/{dist/es → esm2015}/navigation/navigation-action.js +0 -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/{dist/es2015 → esm2015}/splitbutton/splitbutton.component.js +186 -192
  80. package/esm2015/splitbutton/splitbutton.module.js +32 -0
  81. package/{dist/es2015 → esm2015}/util.js +2 -6
  82. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-buttons.js} +1613 -1723
  83. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/animations/animations.d.ts +0 -0
  84. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/dial-item.component.d.ts +8 -5
  85. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/dial-list.component.d.ts +5 -2
  86. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/floatingactionbutton.component.d.ts +28 -19
  87. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/floatingactionbutton.module.d.ts +13 -0
  88. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/align.d.ts +0 -0
  89. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/item-animation.interface.d.ts +0 -0
  90. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/item-click.event.d.ts +0 -0
  91. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/item.interface.d.ts +0 -0
  92. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/offset.d.ts +0 -0
  93. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/position-mode.d.ts +0 -0
  94. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/templates/dial-item-template.directive.d.ts +3 -0
  95. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/templates/fab-template.directive.d.ts +3 -0
  96. package/{dist/es2015/floatingactionbutton → floatingactionbutton}/utils.d.ts +0 -0
  97. package/{dist/es2015/focusable → focusable}/focus.service.d.ts +5 -1
  98. package/{dist/es2015/focusable → focusable}/focusable.directive.d.ts +3 -0
  99. package/kendo-angular-buttons.d.ts +9 -0
  100. package/{dist/es2015/listbutton → listbutton}/button-item-template.directive.d.ts +3 -0
  101. package/{dist/es2015/listbutton → listbutton}/list-button.d.ts +6 -2
  102. package/{dist/es2015/listbutton → listbutton}/list-item-model.d.ts +0 -0
  103. package/{dist/es2015/listbutton → listbutton}/list.component.d.ts +3 -0
  104. package/listbutton/list.module.d.ts +18 -0
  105. package/{dist/es2015/listbutton → listbutton}/popup-settings.d.ts +0 -0
  106. package/{dist/es2015/listbutton → listbutton}/template-context.directive.d.ts +4 -1
  107. package/{dist/es2015/main.d.ts → main.d.ts} +5 -1
  108. package/{dist/es2015/navigation → navigation}/key-events.d.ts +0 -0
  109. package/{dist/es2015/navigation → navigation}/navigation-action.d.ts +0 -0
  110. package/{dist/es2015/navigation → navigation}/navigation-config.d.ts +0 -0
  111. package/{dist/es2015/navigation → navigation}/navigation.service.d.ts +3 -0
  112. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  113. package/package.json +34 -105
  114. package/{dist/es2015/preventable-event.d.ts → preventable-event.d.ts} +0 -0
  115. package/schematics/ngAdd/index.js +5 -2
  116. package/schematics/ngAdd/index.js.map +1 -1
  117. package/{dist/es2015/splitbutton → splitbutton}/splitbutton.component.d.ts +26 -19
  118. package/splitbutton/splitbutton.module.d.ts +23 -0
  119. package/{dist/es2015/util.d.ts → util.d.ts} +0 -4
  120. package/dist/cdn/js/kendo-angular-buttons.js +0 -20
  121. package/dist/cdn/main.js +0 -5
  122. package/dist/es/button/button.directive.js +0 -630
  123. package/dist/es/button/button.service.js +0 -28
  124. package/dist/es/button-look.js +0 -4
  125. package/dist/es/buttongroup/buttongroup.component.js +0 -402
  126. package/dist/es/buttongroup/buttongroup.module.js +0 -30
  127. package/dist/es/chip/chip-content-click-event-args.interface.js +0 -4
  128. package/dist/es/chip/chip-list-remove-event-args.interface.js +0 -4
  129. package/dist/es/chip/chip-list.component.js +0 -164
  130. package/dist/es/chip/chip.component.js +0 -360
  131. package/dist/es/chip/chip.module.js +0 -55
  132. package/dist/es/dropdownbutton/dropdownbutton.component.js +0 -652
  133. package/dist/es/dropdownbutton/dropdownbutton.module.js +0 -32
  134. package/dist/es/floatingactionbutton/animations/animations.js +0 -33
  135. package/dist/es/floatingactionbutton/dial-item.component.js +0 -143
  136. package/dist/es/floatingactionbutton/dial-list.component.js +0 -76
  137. package/dist/es/floatingactionbutton/floatingactionbutton.component.js +0 -878
  138. package/dist/es/floatingactionbutton/floatingactionbutton.module.js +0 -65
  139. package/dist/es/floatingactionbutton/templates/dial-item-template.directive.js +0 -26
  140. package/dist/es/floatingactionbutton/templates/fab-template.directive.js +0 -26
  141. package/dist/es/floatingactionbutton/utils.js +0 -38
  142. package/dist/es/focusable/focus.service.js +0 -43
  143. package/dist/es/focusable/focusable.directive.js +0 -68
  144. package/dist/es/index.js +0 -22
  145. package/dist/es/listbutton/button-item-template.directive.js +0 -68
  146. package/dist/es/listbutton/list-button.js +0 -240
  147. package/dist/es/listbutton/list.component.js +0 -66
  148. package/dist/es/listbutton/list.module.js +0 -33
  149. package/dist/es/listbutton/template-context.directive.js +0 -40
  150. package/dist/es/main.js +0 -22
  151. package/dist/es/navigation/navigation-config.js +0 -9
  152. package/dist/es/navigation/navigation.service.js +0 -114
  153. package/dist/es/package-metadata.js +0 -15
  154. package/dist/es/preventable-event.js +0 -29
  155. package/dist/es/splitbutton/localization/custom-messages.component.js +0 -44
  156. package/dist/es/splitbutton/localization/localized-messages.directive.js +0 -35
  157. package/dist/es/splitbutton/localization/messages.js +0 -22
  158. package/dist/es/splitbutton/splitbutton.component.js +0 -761
  159. package/dist/es/splitbutton/splitbutton.module.js +0 -34
  160. package/dist/es/util.js +0 -45
  161. package/dist/es2015/button/button.module.js +0 -47
  162. package/dist/es2015/button/selection-settings.js +0 -4
  163. package/dist/es2015/buttongroup/buttongroup.module.js +0 -27
  164. package/dist/es2015/buttons.module.js +0 -51
  165. package/dist/es2015/chip/chip-remove-event-args.interface.js +0 -4
  166. package/dist/es2015/chip/models/chip-look.d.ts +0 -20
  167. package/dist/es2015/chip/models/chip-look.js +0 -4
  168. package/dist/es2015/chip/models/selection.js +0 -4
  169. package/dist/es2015/chip/models/type.js +0 -4
  170. package/dist/es2015/common/models/shape.js +0 -4
  171. package/dist/es2015/common/models/size.js +0 -4
  172. package/dist/es2015/common/models/theme-color.js +0 -4
  173. package/dist/es2015/direction.js +0 -4
  174. package/dist/es2015/dropdownbutton/dropdownbutton.module.d.ts +0 -14
  175. package/dist/es2015/dropdownbutton/dropdownbutton.module.js +0 -29
  176. package/dist/es2015/floatingactionbutton/dial-item.component.js +0 -133
  177. package/dist/es2015/floatingactionbutton/dial-list.component.js +0 -81
  178. package/dist/es2015/floatingactionbutton/models/align.js +0 -4
  179. package/dist/es2015/floatingactionbutton/models/item-animation.interface.js +0 -4
  180. package/dist/es2015/floatingactionbutton/models/item-click.event.js +0 -4
  181. package/dist/es2015/floatingactionbutton/models/item.interface.js +0 -4
  182. package/dist/es2015/floatingactionbutton/models/offset.js +0 -4
  183. package/dist/es2015/floatingactionbutton/models/position-mode.js +0 -4
  184. package/dist/es2015/floatingactionbutton/templates/dial-item-template.directive.js +0 -25
  185. package/dist/es2015/floatingactionbutton/templates/fab-template.directive.js +0 -25
  186. package/dist/es2015/index.d.ts +0 -22
  187. package/dist/es2015/index.js +0 -22
  188. package/dist/es2015/index.metadata.json +0 -1
  189. package/dist/es2015/listbutton/list-item-model.js +0 -4
  190. package/dist/es2015/listbutton/list.component.js +0 -96
  191. package/dist/es2015/listbutton/list.module.js +0 -30
  192. package/dist/es2015/listbutton/popup-settings.js +0 -4
  193. package/dist/es2015/listbutton/template-context.directive.js +0 -35
  194. package/dist/es2015/navigation/key-events.js +0 -13
  195. package/dist/es2015/navigation/navigation-action.js +0 -19
  196. package/dist/es2015/splitbutton/localization/custom-messages.component.d.ts +0 -15
  197. package/dist/es2015/splitbutton/localization/custom-messages.component.js +0 -36
  198. package/dist/es2015/splitbutton/localization/localized-messages.directive.d.ts +0 -13
  199. package/dist/es2015/splitbutton/localization/localized-messages.directive.js +0 -31
  200. package/dist/es2015/splitbutton/localization/messages.d.ts +0 -32
  201. package/dist/es2015/splitbutton/localization/messages.js +0 -16
  202. package/dist/es2015/splitbutton/splitbutton.module.d.ts +0 -14
  203. package/dist/es2015/splitbutton/splitbutton.module.js +0 -31
  204. package/dist/fesm5/index.js +0 -5123
  205. package/dist/npm/button/button.directive.js +0 -632
  206. package/dist/npm/button/button.module.js +0 -52
  207. package/dist/npm/button/button.service.js +0 -30
  208. package/dist/npm/button/selection-settings.js +0 -6
  209. package/dist/npm/button-look.js +0 -6
  210. package/dist/npm/buttongroup/buttongroup.component.js +0 -404
  211. package/dist/npm/buttongroup/buttongroup.module.js +0 -32
  212. package/dist/npm/buttons.module.js +0 -56
  213. package/dist/npm/chip/chip-content-click-event-args.interface.js +0 -6
  214. package/dist/npm/chip/chip-list-remove-event-args.interface.js +0 -6
  215. package/dist/npm/chip/chip-list.component.js +0 -166
  216. package/dist/npm/chip/chip-remove-event-args.interface.js +0 -6
  217. package/dist/npm/chip/chip.component.js +0 -362
  218. package/dist/npm/chip/chip.module.js +0 -57
  219. package/dist/npm/chip/models/chip-look.js +0 -6
  220. package/dist/npm/chip/models/selection.js +0 -6
  221. package/dist/npm/chip/models/type.js +0 -6
  222. package/dist/npm/common/models/shape.js +0 -6
  223. package/dist/npm/common/models/size.js +0 -6
  224. package/dist/npm/common/models/theme-color.js +0 -6
  225. package/dist/npm/direction.js +0 -6
  226. package/dist/npm/dropdownbutton/dropdownbutton.component.js +0 -654
  227. package/dist/npm/dropdownbutton/dropdownbutton.module.js +0 -34
  228. package/dist/npm/floatingactionbutton/animations/animations.js +0 -37
  229. package/dist/npm/floatingactionbutton/dial-item.component.js +0 -145
  230. package/dist/npm/floatingactionbutton/dial-list.component.js +0 -78
  231. package/dist/npm/floatingactionbutton/floatingactionbutton.component.js +0 -880
  232. package/dist/npm/floatingactionbutton/floatingactionbutton.module.js +0 -67
  233. package/dist/npm/floatingactionbutton/models/align.js +0 -6
  234. package/dist/npm/floatingactionbutton/models/item-animation.interface.js +0 -6
  235. package/dist/npm/floatingactionbutton/models/item-click.event.js +0 -6
  236. package/dist/npm/floatingactionbutton/models/item.interface.js +0 -6
  237. package/dist/npm/floatingactionbutton/models/offset.js +0 -6
  238. package/dist/npm/floatingactionbutton/models/position-mode.js +0 -6
  239. package/dist/npm/floatingactionbutton/templates/dial-item-template.directive.js +0 -28
  240. package/dist/npm/floatingactionbutton/templates/fab-template.directive.js +0 -28
  241. package/dist/npm/floatingactionbutton/utils.js +0 -42
  242. package/dist/npm/focusable/focus.service.js +0 -45
  243. package/dist/npm/focusable/focusable.directive.js +0 -70
  244. package/dist/npm/index.js +0 -39
  245. package/dist/npm/listbutton/button-item-template.directive.js +0 -70
  246. package/dist/npm/listbutton/list-button.js +0 -242
  247. package/dist/npm/listbutton/list-item-model.js +0 -6
  248. package/dist/npm/listbutton/list.component.js +0 -68
  249. package/dist/npm/listbutton/list.module.js +0 -35
  250. package/dist/npm/listbutton/popup-settings.js +0 -6
  251. package/dist/npm/listbutton/template-context.directive.js +0 -42
  252. package/dist/npm/main.js +0 -45
  253. package/dist/npm/navigation/key-events.js +0 -15
  254. package/dist/npm/navigation/navigation-action.js +0 -21
  255. package/dist/npm/navigation/navigation-config.js +0 -11
  256. package/dist/npm/navigation/navigation.service.js +0 -116
  257. package/dist/npm/package-metadata.js +0 -17
  258. package/dist/npm/preventable-event.js +0 -31
  259. package/dist/npm/splitbutton/localization/custom-messages.component.js +0 -46
  260. package/dist/npm/splitbutton/localization/localized-messages.directive.js +0 -37
  261. package/dist/npm/splitbutton/localization/messages.js +0 -24
  262. package/dist/npm/splitbutton/splitbutton.component.js +0 -763
  263. package/dist/npm/splitbutton/splitbutton.module.js +0 -36
  264. package/dist/npm/util.js +0 -48
  265. package/dist/systemjs/kendo-angular-buttons.js +0 -5
@@ -2,28 +2,32 @@
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
+ /* eslint-disable no-access-missing-member */
6
+ import { Component, ContentChild, ViewChild, ViewContainerRef, EventEmitter, HostBinding, HostListener, Input, Output } from '@angular/core';
8
7
  import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
9
- import { PopupService } from '@progress/kendo-angular-popup';
10
8
  import { isDocumentAvailable, guid, Keys, isChanged } from '@progress/kendo-angular-common';
11
9
  import { ButtonItemTemplateDirective } from '../listbutton/button-item-template.directive';
12
10
  import { isPresent, tick } from '../util';
13
11
  import { ListButton } from '../listbutton/list-button';
14
- import { ListComponent } from '../listbutton/list.component';
15
12
  import { FocusService } from '../focusable/focus.service';
16
13
  import { NavigationService } from '../navigation/navigation.service';
17
14
  import { NAVIGATION_CONFIG } from '../navigation/navigation-config';
18
15
  import { PreventableEvent } from '../preventable-event';
19
16
  import { merge } from 'rxjs';
17
+ import * as i0 from "@angular/core";
18
+ import * as i1 from "../focusable/focus.service";
19
+ import * as i2 from "../navigation/navigation.service";
20
+ import * as i3 from "@progress/kendo-angular-popup";
21
+ import * as i4 from "@progress/kendo-angular-l10n";
22
+ import * as i5 from "../listbutton/list.component";
23
+ import * as i6 from "../button/button.directive";
24
+ import * as i7 from "@angular/common";
20
25
  const NAVIGATION_SETTINGS = {
21
26
  useLeftRightArrows: true
22
27
  };
23
- const ɵ0 = NAVIGATION_SETTINGS;
24
28
  const NAVIGATION_SETTINGS_PROVIDER = {
25
29
  provide: NAVIGATION_CONFIG,
26
- useValue: ɵ0
30
+ useValue: NAVIGATION_SETTINGS
27
31
  };
28
32
  /**
29
33
  * Represents the Kendo UI DropDownButton component for Angular.
@@ -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;
@@ -103,11 +107,11 @@ let DropDownButtonComponent = class DropDownButtonComponent extends ListButton {
103
107
  /**
104
108
  * Fires each time the DropDownButton gets focused.
105
109
  */
106
- this.onFocus = new EventEmitter(); //tslint:disable-line:no-output-rename
110
+ this.onFocus = new EventEmitter(); //eslint-disable-line no-output-rename
107
111
  /**
108
112
  * Fires each time the DropDownButton gets blurred.
109
113
  */
110
- this.onBlur = new EventEmitter(); //tslint:disable-line:no-output-rename
114
+ this.onBlur = new EventEmitter(); //eslint-disable-line no-output-rename
111
115
  this.listId = guid();
112
116
  this._itemClick = this.itemClick;
113
117
  this._blur = this.onBlur;
@@ -415,164 +419,73 @@ let DropDownButtonComponent = class DropDownButtonComponent extends ListButton {
415
419
  this.popupRef = null;
416
420
  }
417
421
  }
418
- };
419
- tslib_1.__decorate([
420
- Input(),
421
- tslib_1.__metadata("design:type", String)
422
- ], DropDownButtonComponent.prototype, "icon", void 0);
423
- tslib_1.__decorate([
424
- Input(),
425
- tslib_1.__metadata("design:type", String)
426
- ], DropDownButtonComponent.prototype, "iconClass", void 0);
427
- tslib_1.__decorate([
428
- Input(),
429
- tslib_1.__metadata("design:type", String)
430
- ], DropDownButtonComponent.prototype, "imageUrl", void 0);
431
- tslib_1.__decorate([
432
- Input(),
433
- tslib_1.__metadata("design:type", Object),
434
- tslib_1.__metadata("design:paramtypes", [Object])
435
- ], DropDownButtonComponent.prototype, "popupSettings", null);
436
- tslib_1.__decorate([
437
- Input(),
438
- tslib_1.__metadata("design:type", String)
439
- ], DropDownButtonComponent.prototype, "textField", void 0);
440
- tslib_1.__decorate([
441
- Input(),
442
- tslib_1.__metadata("design:type", Boolean),
443
- tslib_1.__metadata("design:paramtypes", [Boolean])
444
- ], DropDownButtonComponent.prototype, "disabled", null);
445
- tslib_1.__decorate([
446
- Input(),
447
- tslib_1.__metadata("design:type", Object),
448
- tslib_1.__metadata("design:paramtypes", [Object])
449
- ], DropDownButtonComponent.prototype, "data", null);
450
- tslib_1.__decorate([
451
- Input(),
452
- tslib_1.__metadata("design:type", Boolean)
453
- ], DropDownButtonComponent.prototype, "primary", void 0);
454
- tslib_1.__decorate([
455
- Input(),
456
- tslib_1.__metadata("design:type", String)
457
- ], DropDownButtonComponent.prototype, "look", void 0);
458
- tslib_1.__decorate([
459
- Input(),
460
- tslib_1.__metadata("design:type", Object)
461
- ], DropDownButtonComponent.prototype, "buttonClass", void 0);
462
- tslib_1.__decorate([
463
- Input(),
464
- tslib_1.__metadata("design:type", Number)
465
- ], DropDownButtonComponent.prototype, "tabIndex", void 0);
466
- tslib_1.__decorate([
467
- Output(),
468
- tslib_1.__metadata("design:type", EventEmitter)
469
- ], DropDownButtonComponent.prototype, "itemClick", void 0);
470
- tslib_1.__decorate([
471
- Output(),
472
- tslib_1.__metadata("design:type", EventEmitter)
473
- ], DropDownButtonComponent.prototype, "open", void 0);
474
- tslib_1.__decorate([
475
- Output(),
476
- tslib_1.__metadata("design:type", EventEmitter)
477
- ], DropDownButtonComponent.prototype, "close", void 0);
478
- tslib_1.__decorate([
479
- Output('focus'),
480
- tslib_1.__metadata("design:type", EventEmitter)
481
- ], DropDownButtonComponent.prototype, "onFocus", void 0);
482
- tslib_1.__decorate([
483
- Output('blur'),
484
- tslib_1.__metadata("design:type", EventEmitter)
485
- ], DropDownButtonComponent.prototype, "onBlur", void 0);
486
- tslib_1.__decorate([
487
- HostBinding('class.k-state-focused'),
488
- tslib_1.__metadata("design:type", Boolean),
489
- tslib_1.__metadata("design:paramtypes", [])
490
- ], DropDownButtonComponent.prototype, "focused", null);
491
- tslib_1.__decorate([
492
- HostBinding('class.k-flat'),
493
- tslib_1.__metadata("design:type", Boolean),
494
- tslib_1.__metadata("design:paramtypes", [])
495
- ], DropDownButtonComponent.prototype, "isFlat", null);
496
- tslib_1.__decorate([
497
- HostBinding('class.k-outline'),
498
- tslib_1.__metadata("design:type", Boolean),
499
- tslib_1.__metadata("design:paramtypes", [])
500
- ], DropDownButtonComponent.prototype, "isOutline", null);
501
- tslib_1.__decorate([
502
- HostBinding('class.k-dropdown-button'),
503
- tslib_1.__metadata("design:type", Boolean),
504
- tslib_1.__metadata("design:paramtypes", [])
505
- ], DropDownButtonComponent.prototype, "widgetClasses", null);
506
- tslib_1.__decorate([
507
- HostBinding('attr.dir'),
508
- tslib_1.__metadata("design:type", String),
509
- tslib_1.__metadata("design:paramtypes", [])
510
- ], DropDownButtonComponent.prototype, "dir", null);
511
- tslib_1.__decorate([
512
- ContentChild(ButtonItemTemplateDirective, { static: false }),
513
- tslib_1.__metadata("design:type", ButtonItemTemplateDirective)
514
- ], DropDownButtonComponent.prototype, "itemTemplate", void 0);
515
- tslib_1.__decorate([
516
- ViewChild('button', { static: true }),
517
- tslib_1.__metadata("design:type", ElementRef)
518
- ], DropDownButtonComponent.prototype, "button", void 0);
519
- tslib_1.__decorate([
520
- ViewChild('buttonList', { static: false }),
521
- tslib_1.__metadata("design:type", ListComponent)
522
- ], DropDownButtonComponent.prototype, "buttonList", void 0);
523
- tslib_1.__decorate([
524
- ViewChild('popupTemplate', { static: true }),
525
- tslib_1.__metadata("design:type", TemplateRef)
526
- ], DropDownButtonComponent.prototype, "popupTemplate", void 0);
527
- tslib_1.__decorate([
528
- ViewChild('container', { read: ViewContainerRef, static: true }),
529
- tslib_1.__metadata("design:type", ViewContainerRef)
530
- ], DropDownButtonComponent.prototype, "container", void 0);
531
- tslib_1.__decorate([
532
- HostListener('keydown', ['$event']),
533
- tslib_1.__metadata("design:type", Function),
534
- tslib_1.__metadata("design:paramtypes", [Object]),
535
- tslib_1.__metadata("design:returntype", void 0)
536
- ], DropDownButtonComponent.prototype, "keydown", null);
537
- tslib_1.__decorate([
538
- HostListener('keypress', ['$event']),
539
- tslib_1.__metadata("design:type", Function),
540
- tslib_1.__metadata("design:paramtypes", [Object]),
541
- tslib_1.__metadata("design:returntype", void 0)
542
- ], DropDownButtonComponent.prototype, "keypress", null);
543
- tslib_1.__decorate([
544
- HostListener('keyup', ['$event']),
545
- tslib_1.__metadata("design:type", Function),
546
- tslib_1.__metadata("design:paramtypes", [Object]),
547
- tslib_1.__metadata("design:returntype", void 0)
548
- ], DropDownButtonComponent.prototype, "keyup", null);
549
- tslib_1.__decorate([
550
- HostListener('mousedown', ['$event']),
551
- tslib_1.__metadata("design:type", Function),
552
- tslib_1.__metadata("design:paramtypes", [Object]),
553
- tslib_1.__metadata("design:returntype", void 0)
554
- ], DropDownButtonComponent.prototype, "mousedown", null);
555
- tslib_1.__decorate([
556
- HostListener('mouseup', ['$event']),
557
- tslib_1.__metadata("design:type", Function),
558
- tslib_1.__metadata("design:paramtypes", [Object]),
559
- tslib_1.__metadata("design:returntype", void 0)
560
- ], DropDownButtonComponent.prototype, "mouseup", null);
561
- DropDownButtonComponent = tslib_1.__decorate([
562
- Component({
563
- exportAs: 'kendoDropDownButton',
564
- providers: [
565
- FocusService,
566
- NavigationService,
567
- NAVIGATION_SETTINGS_PROVIDER,
568
- LocalizationService,
569
- {
570
- provide: L10N_PREFIX,
571
- useValue: 'kendo.dropdownbutton'
572
- }
573
- ],
574
- selector: 'kendo-dropdownbutton',
575
- template: `
422
+ }
423
+ DropDownButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", 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 });
424
+ DropDownButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: DropDownButtonComponent, selector: "kendo-dropdownbutton", inputs: { icon: "icon", iconClass: "iconClass", imageUrl: "imageUrl", popupSettings: "popupSettings", textField: "textField", disabled: "disabled", data: "data", primary: "primary", look: "look", 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-state-focused": "this.focused", "class.k-flat": "this.isFlat", "class.k-outline": "this.isOutline", "class.k-dropdown-button": "this.widgetClasses", "attr.dir": "this.dir" } }, providers: [
425
+ FocusService,
426
+ NavigationService,
427
+ NAVIGATION_SETTINGS_PROVIDER,
428
+ LocalizationService,
429
+ {
430
+ provide: L10N_PREFIX,
431
+ useValue: 'kendo.dropdownbutton'
432
+ }
433
+ ], 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: `
434
+ <button kendoButton #button
435
+ role="menu"
436
+ type="button"
437
+ [tabindex]="componentTabIndex"
438
+ [class.k-state-active]="active"
439
+ [disabled]="disabled"
440
+ [icon]="icon"
441
+ [iconClass]="iconClass"
442
+ [imageUrl]="imageUrl"
443
+ [ngClass]="buttonClass"
444
+ (click)="openPopup()"
445
+ (focus)="handleFocus()"
446
+ (blur)="onButtonBlur()"
447
+ [attr.aria-disabled]="disabled"
448
+ [attr.aria-expanded]="openState"
449
+ [attr.aria-haspopup]="true"
450
+ [attr.aria-owns]="listId"
451
+ [look]="look"
452
+ [primary]="primary"
453
+ >
454
+ <ng-content></ng-content>
455
+ </button>
456
+ <ng-template #popupTemplate>
457
+ <kendo-button-list
458
+ #buttonList
459
+ [id]="listId"
460
+ [data]="data"
461
+ [textField]="textField"
462
+ [itemTemplate]="itemTemplate"
463
+ (onItemClick)="onItemClick($event)"
464
+ (keydown)="keyDownHandler($event)"
465
+ (keypress)="keyPressHandler($event)"
466
+ (keyup)="keyUpHandler($event)"
467
+ [attr.dir]="dir"
468
+ >
469
+ </kendo-button-list>
470
+ </ng-template>
471
+ <ng-container #container></ng-container>
472
+ `, isInline: true, components: [{ type: i5.ListComponent, selector: "kendo-button-list", inputs: ["data", "textField", "itemTemplate"], outputs: ["onItemClick", "onItemBlur"] }], directives: [{ type: i6.ButtonDirective, selector: "button[kendoButton], span[kendoButton]", inputs: ["toggleable", "togglable", "primary", "look", "selected", "tabIndex", "icon", "iconClass", "imageUrl", "disabled", "role"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i7.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
473
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: DropDownButtonComponent, decorators: [{
474
+ type: Component,
475
+ args: [{
476
+ exportAs: 'kendoDropDownButton',
477
+ providers: [
478
+ FocusService,
479
+ NavigationService,
480
+ NAVIGATION_SETTINGS_PROVIDER,
481
+ LocalizationService,
482
+ {
483
+ provide: L10N_PREFIX,
484
+ useValue: 'kendo.dropdownbutton'
485
+ }
486
+ ],
487
+ selector: 'kendo-dropdownbutton',
488
+ template: `
576
489
  <button kendoButton #button
577
490
  role="menu"
578
491
  type="button"
@@ -612,15 +525,84 @@ DropDownButtonComponent = tslib_1.__decorate([
612
525
  </ng-template>
613
526
  <ng-container #container></ng-container>
614
527
  `
615
- }),
616
- tslib_1.__metadata("design:paramtypes", [FocusService,
617
- NavigationService,
618
- ElementRef,
619
- NgZone,
620
- PopupService,
621
- ElementRef,
622
- LocalizationService,
623
- ChangeDetectorRef])
624
- ], DropDownButtonComponent);
625
- export { DropDownButtonComponent };
626
- export { ɵ0 };
528
+ }]
529
+ }], 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: [{
530
+ type: Input
531
+ }], iconClass: [{
532
+ type: Input
533
+ }], imageUrl: [{
534
+ type: Input
535
+ }], popupSettings: [{
536
+ type: Input
537
+ }], textField: [{
538
+ type: Input
539
+ }], disabled: [{
540
+ type: Input
541
+ }], data: [{
542
+ type: Input
543
+ }], primary: [{
544
+ type: Input
545
+ }], look: [{
546
+ type: Input
547
+ }], buttonClass: [{
548
+ type: Input
549
+ }], tabIndex: [{
550
+ type: Input
551
+ }], itemClick: [{
552
+ type: Output
553
+ }], open: [{
554
+ type: Output
555
+ }], close: [{
556
+ type: Output
557
+ }], onFocus: [{
558
+ type: Output,
559
+ args: ['focus']
560
+ }], onBlur: [{
561
+ type: Output,
562
+ args: ['blur']
563
+ }], focused: [{
564
+ type: HostBinding,
565
+ args: ['class.k-state-focused']
566
+ }], isFlat: [{
567
+ type: HostBinding,
568
+ args: ['class.k-flat']
569
+ }], isOutline: [{
570
+ type: HostBinding,
571
+ args: ['class.k-outline']
572
+ }], widgetClasses: [{
573
+ type: HostBinding,
574
+ args: ['class.k-dropdown-button']
575
+ }], dir: [{
576
+ type: HostBinding,
577
+ args: ['attr.dir']
578
+ }], itemTemplate: [{
579
+ type: ContentChild,
580
+ args: [ButtonItemTemplateDirective, { static: false }]
581
+ }], button: [{
582
+ type: ViewChild,
583
+ args: ['button', { static: true }]
584
+ }], buttonList: [{
585
+ type: ViewChild,
586
+ args: ['buttonList', { static: false }]
587
+ }], popupTemplate: [{
588
+ type: ViewChild,
589
+ args: ['popupTemplate', { static: true }]
590
+ }], container: [{
591
+ type: ViewChild,
592
+ args: ['container', { read: ViewContainerRef, static: true }]
593
+ }], keydown: [{
594
+ type: HostListener,
595
+ args: ['keydown', ['$event']]
596
+ }], keypress: [{
597
+ type: HostListener,
598
+ args: ['keypress', ['$event']]
599
+ }], keyup: [{
600
+ type: HostListener,
601
+ args: ['keyup', ['$event']]
602
+ }], mousedown: [{
603
+ type: HostListener,
604
+ args: ['mousedown', ['$event']]
605
+ }], mouseup: [{
606
+ type: HostListener,
607
+ args: ['mouseup', ['$event']]
608
+ }] } });
@@ -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.13", ngImport: i0, type: DropDownButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
23
+ DropDownButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", 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.13", ngImport: i0, type: DropDownButtonModule, imports: [[CommonModule, PopupModule, ListModule, ButtonModule], ListModule] });
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", 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,126 @@
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.13", 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.13", 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-state-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.13", ngImport: i0, type: DialItemComponent, decorators: [{
75
+ type: Component,
76
+ args: [{
77
+ selector: '[kendoDialItem]',
78
+ template: `
79
+ <ng-template *ngIf="dialItemTemplate"
80
+ [ngTemplateOutlet]="dialItemTemplate"
81
+ [ngTemplateOutletContext]="{ $implicit: item, index: index, isFocused: isFocused }"
82
+ >
83
+ </ng-template>
84
+
85
+ <ng-container *ngIf="!dialItemTemplate">
86
+ <span *ngIf="item.label" class="k-fab-item-text">{{ item.label }}</span>
87
+ <span *ngIf="item.icon || item.iconClass" [ngClass]="iconClasses"></span>
88
+ </ng-container>
89
+ `
90
+ }]
91
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.LocalizationService }]; }, propDecorators: { hostClass: [{
92
+ type: HostBinding,
93
+ args: ['class.k-fab-item']
94
+ }], role: [{
95
+ type: HostBinding,
96
+ args: ['attr.role']
97
+ }], disabledClass: [{
98
+ type: HostBinding,
99
+ args: ['attr.aria-disabled']
100
+ }, {
101
+ type: HostBinding,
102
+ args: ['class.k-state-disabled']
103
+ }], title: [{
104
+ type: HostBinding,
105
+ args: ['attr.title']
106
+ }, {
107
+ type: HostBinding,
108
+ args: ['attr.aria-label']
109
+ }], indexAttr: [{
110
+ type: HostBinding,
111
+ args: ['attr.data-fab-item-index']
112
+ }], cssClass: [{
113
+ type: Input
114
+ }], cssStyle: [{
115
+ type: Input
116
+ }], isFocused: [{
117
+ type: Input
118
+ }], index: [{
119
+ type: Input
120
+ }], item: [{
121
+ type: Input
122
+ }], dialItemTemplate: [{
123
+ type: Input
124
+ }], align: [{
125
+ type: Input
126
+ }] } });
@@ -0,0 +1,89 @@
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 { Subscription } from 'rxjs';
7
+ import * as i0 from "@angular/core";
8
+ import * as i1 from "../focusable/focus.service";
9
+ import * as i2 from "./dial-item.component";
10
+ import * as i3 from "@angular/common";
11
+ import * as i4 from "../focusable/focusable.directive";
12
+ /**
13
+ * @hidden
14
+ */
15
+ export class DialListComponent {
16
+ constructor(focusService, cdr) {
17
+ this.focusService = focusService;
18
+ this.cdr = cdr;
19
+ this.hostClass = true;
20
+ this.subscriptions = new Subscription();
21
+ this.subscriptions.add(this.focusService.onFocus.subscribe(() => this.cdr.detectChanges()));
22
+ }
23
+ get bottomClass() {
24
+ return this.align.vertical === 'top' || this.align.vertical === 'middle';
25
+ }
26
+ get topClass() {
27
+ return this.align.vertical === 'bottom';
28
+ }
29
+ isFocused(index) {
30
+ return this.focusService.isFocused(index);
31
+ }
32
+ ngOnDestroy() {
33
+ this.subscriptions.unsubscribe();
34
+ }
35
+ }
36
+ DialListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: DialListComponent, deps: [{ token: i1.FocusService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
37
+ DialListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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: `
38
+ <ng-container *ngFor='let item of dialItems; let idx = index'>
39
+ <li
40
+ kendoButtonFocusable
41
+ kendoDialItem
42
+ [item]="dialItems[idx]"
43
+ [index]="idx"
44
+ [dialItemTemplate]="dialItemTemplate"
45
+ [isFocused]="isFocused(idx)"
46
+ [ngClass]='item.cssClass'
47
+ [ngStyle]='item.cssStyle'
48
+ [align]="align"
49
+ >
50
+ </li>
51
+ </ng-container>
52
+ `, isInline: true, components: [{ type: i2.DialItemComponent, selector: "[kendoDialItem]", inputs: ["cssClass", "cssStyle", "isFocused", "index", "item", "dialItemTemplate", "align"] }], directives: [{ type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.FocusableDirective, selector: "[kendoButtonFocusable]", inputs: ["index"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
53
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: DialListComponent, decorators: [{
54
+ type: Component,
55
+ args: [{
56
+ selector: '[kendoDialList]',
57
+ template: `
58
+ <ng-container *ngFor='let item of dialItems; let idx = index'>
59
+ <li
60
+ kendoButtonFocusable
61
+ kendoDialItem
62
+ [item]="dialItems[idx]"
63
+ [index]="idx"
64
+ [dialItemTemplate]="dialItemTemplate"
65
+ [isFocused]="isFocused(idx)"
66
+ [ngClass]='item.cssClass'
67
+ [ngStyle]='item.cssStyle'
68
+ [align]="align"
69
+ >
70
+ </li>
71
+ </ng-container>
72
+ `
73
+ }]
74
+ }], ctorParameters: function () { return [{ type: i1.FocusService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { hostClass: [{
75
+ type: HostBinding,
76
+ args: ['class.k-fab-items']
77
+ }], bottomClass: [{
78
+ type: HostBinding,
79
+ args: ['class.k-fab-items-bottom']
80
+ }], topClass: [{
81
+ type: HostBinding,
82
+ args: ['class.k-fab-items-top']
83
+ }], dialItems: [{
84
+ type: Input
85
+ }], dialItemTemplate: [{
86
+ type: Input
87
+ }], align: [{
88
+ type: Input
89
+ }] } });