@progress/kendo-angular-buttons 7.0.0-next.202111120840 → 7.0.2-dev.202201201235

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 (283) hide show
  1. package/LICENSE.md +1 -1
  2. package/NOTICE.txt +119 -79
  3. package/README.md +1 -1
  4. package/dist/cdn/js/kendo-angular-buttons.js +20 -0
  5. package/dist/cdn/main.js +5 -0
  6. package/dist/es/button/button.directive.js +769 -0
  7. package/{esm2015 → dist/es}/button/button.module.js +13 -13
  8. package/dist/es/button/button.service.js +24 -0
  9. package/{esm2015 → dist/es}/button/selection-settings.js +0 -1
  10. package/dist/es/buttongroup/buttongroup.component.js +353 -0
  11. package/dist/es/buttongroup/buttongroup.module.js +30 -0
  12. package/{esm2015 → dist/es}/buttons.module.js +12 -12
  13. package/{esm2015 → dist/es}/chip/chip-content-click-event-args.interface.js +0 -1
  14. package/{esm2015 → dist/es}/chip/chip-list-remove-event-args.interface.js +0 -1
  15. package/dist/es/chip/chip-list.component.js +214 -0
  16. package/{esm2015 → dist/es}/chip/chip-remove-event-args.interface.js +0 -1
  17. package/dist/es/chip/chip.component.js +449 -0
  18. package/dist/es/chip/chip.module.js +55 -0
  19. package/{esm2015 → dist/es}/chip/models/selection.js +0 -1
  20. package/dist/es/common/models/fillmode.js +4 -0
  21. package/dist/es/common/models/rounded.js +4 -0
  22. package/{esm2015 → dist/es}/common/models/shape.js +0 -1
  23. package/{esm2015 → dist/es}/common/models/size.js +0 -1
  24. package/dist/es/common/models/styling-classes.js +4 -0
  25. package/{esm2015 → dist/es}/common/models/theme-color.js +0 -1
  26. package/{esm2015/button-look.js → dist/es/common/models.js} +0 -1
  27. package/{esm2015 → dist/es}/direction.js +0 -1
  28. package/dist/es/dropdownbutton/dropdownbutton.component.js +704 -0
  29. package/dist/es/dropdownbutton/dropdownbutton.module.js +32 -0
  30. package/dist/es/floatingactionbutton/animations/animations.js +33 -0
  31. package/dist/es/floatingactionbutton/dial-item.component.js +143 -0
  32. package/dist/es/floatingactionbutton/dial-list.component.js +76 -0
  33. package/dist/es/floatingactionbutton/floatingactionbutton.component.js +903 -0
  34. package/dist/es/floatingactionbutton/floatingactionbutton.module.js +65 -0
  35. package/{esm2015 → dist/es}/floatingactionbutton/models/align.js +0 -1
  36. package/{esm2015 → dist/es}/floatingactionbutton/models/item-animation.interface.js +0 -1
  37. package/{esm2015 → dist/es}/floatingactionbutton/models/item-click.event.js +0 -1
  38. package/{esm2015 → dist/es}/floatingactionbutton/models/item.interface.js +0 -1
  39. package/{esm2015 → dist/es}/floatingactionbutton/models/offset.js +0 -1
  40. package/{esm2015 → dist/es}/floatingactionbutton/models/position-mode.js +0 -1
  41. package/dist/es/floatingactionbutton/templates/dial-item-template.directive.js +26 -0
  42. package/dist/es/floatingactionbutton/templates/fab-template.directive.js +26 -0
  43. package/dist/es/floatingactionbutton/utils.js +38 -0
  44. package/dist/es/focusable/focus.service.js +43 -0
  45. package/dist/es/focusable/focusable.directive.js +68 -0
  46. package/dist/es/index.js +22 -0
  47. package/dist/es/listbutton/button-item-template.directive.js +68 -0
  48. package/dist/es/listbutton/list-button.js +243 -0
  49. package/{esm2015 → dist/es}/listbutton/list-item-model.js +0 -1
  50. package/dist/es/listbutton/list.component.js +85 -0
  51. package/dist/es/listbutton/list.module.js +33 -0
  52. package/{esm2015 → dist/es}/listbutton/popup-settings.js +0 -1
  53. package/dist/es/listbutton/template-context.directive.js +40 -0
  54. package/{esm2015 → dist/es}/main.js +1 -5
  55. package/{esm2015 → dist/es}/navigation/key-events.js +0 -0
  56. package/{esm2015 → dist/es}/navigation/navigation-action.js +0 -0
  57. package/dist/es/navigation/navigation-config.js +9 -0
  58. package/dist/es/navigation/navigation.service.js +114 -0
  59. package/dist/es/package-metadata.js +15 -0
  60. package/dist/es/preventable-event.js +29 -0
  61. package/dist/es/splitbutton/localization/custom-messages.component.js +44 -0
  62. package/dist/es/splitbutton/localization/localized-messages.directive.js +35 -0
  63. package/dist/es/splitbutton/localization/messages.js +22 -0
  64. package/dist/es/splitbutton/splitbutton.component.js +830 -0
  65. package/dist/es/splitbutton/splitbutton.module.js +34 -0
  66. package/dist/es/util.js +97 -0
  67. package/{button → dist/es2015/button}/button.directive.d.ts +101 -46
  68. package/dist/es2015/button/button.directive.js +671 -0
  69. package/{button → dist/es2015/button}/button.module.d.ts +0 -5
  70. package/dist/es2015/button/button.module.js +47 -0
  71. package/{button → dist/es2015/button}/button.service.d.ts +1 -7
  72. package/dist/es2015/button/button.service.js +26 -0
  73. package/{button → dist/es2015/button}/selection-settings.d.ts +0 -0
  74. package/dist/es2015/button/selection-settings.js +4 -0
  75. package/{buttongroup → dist/es2015/buttongroup}/buttongroup.component.d.ts +9 -28
  76. package/{esm2015 → dist/es2015}/buttongroup/buttongroup.component.js +116 -121
  77. package/dist/es2015/buttongroup/buttongroup.module.d.ts +14 -0
  78. package/dist/es2015/buttongroup/buttongroup.module.js +27 -0
  79. package/{buttons.module.d.ts → dist/es2015/buttons.module.d.ts} +0 -10
  80. package/dist/es2015/buttons.module.js +51 -0
  81. package/{chip → dist/es2015/chip}/chip-content-click-event-args.interface.d.ts +0 -0
  82. package/dist/es2015/chip/chip-content-click-event-args.interface.js +4 -0
  83. package/{chip → dist/es2015/chip}/chip-list-remove-event-args.interface.d.ts +0 -0
  84. package/dist/es2015/chip/chip-list-remove-event-args.interface.js +4 -0
  85. package/{chip → dist/es2015/chip}/chip-list.component.d.ts +21 -8
  86. package/dist/es2015/chip/chip-list.component.js +197 -0
  87. package/{chip → dist/es2015/chip}/chip-remove-event-args.interface.d.ts +0 -0
  88. package/dist/es2015/chip/chip-remove-event-args.interface.js +4 -0
  89. package/{chip → dist/es2015/chip}/chip.component.d.ts +72 -38
  90. package/dist/es2015/chip/chip.component.js +431 -0
  91. package/{chip → dist/es2015/chip}/chip.module.d.ts +0 -7
  92. package/{esm2015 → dist/es2015}/chip/chip.module.js +11 -16
  93. package/{chip → dist/es2015/chip}/models/selection.d.ts +0 -0
  94. package/dist/es2015/chip/models/selection.js +4 -0
  95. package/{util.d.ts → dist/es2015/common/models/fillmode.d.ts} +4 -8
  96. package/dist/es2015/common/models/fillmode.js +4 -0
  97. package/dist/es2015/common/models/rounded.d.ts +12 -0
  98. package/dist/es2015/common/models/rounded.js +4 -0
  99. package/dist/es2015/common/models/shape.d.ts +9 -0
  100. package/dist/es2015/common/models/shape.js +4 -0
  101. package/dist/es2015/common/models/size.d.ts +17 -0
  102. package/dist/es2015/common/models/size.js +4 -0
  103. package/{esm2015/kendo-angular-buttons.js → dist/es2015/common/models/styling-classes.d.ts} +5 -2
  104. package/dist/es2015/common/models/styling-classes.js +4 -0
  105. package/{common → dist/es2015/common}/models/theme-color.d.ts +15 -4
  106. package/dist/es2015/common/models/theme-color.js +4 -0
  107. package/{common/models/size.d.ts → dist/es2015/common/models.d.ts} +6 -10
  108. package/dist/es2015/common/models.js +4 -0
  109. package/{direction.d.ts → dist/es2015/direction.d.ts} +0 -0
  110. package/dist/es2015/direction.js +4 -0
  111. package/{dropdownbutton → dist/es2015/dropdownbutton}/dropdownbutton.component.d.ts +74 -29
  112. package/{esm2015 → dist/es2015}/dropdownbutton/dropdownbutton.component.js +257 -179
  113. package/dist/es2015/dropdownbutton/dropdownbutton.module.d.ts +14 -0
  114. package/dist/es2015/dropdownbutton/dropdownbutton.module.js +29 -0
  115. package/{floatingactionbutton → dist/es2015/floatingactionbutton}/animations/animations.d.ts +0 -0
  116. package/{esm2015 → dist/es2015}/floatingactionbutton/animations/animations.js +0 -0
  117. package/{floatingactionbutton → dist/es2015/floatingactionbutton}/dial-item.component.d.ts +5 -8
  118. package/dist/es2015/floatingactionbutton/dial-item.component.js +133 -0
  119. package/{floatingactionbutton → dist/es2015/floatingactionbutton}/dial-list.component.d.ts +2 -5
  120. package/dist/es2015/floatingactionbutton/dial-list.component.js +81 -0
  121. package/{floatingactionbutton → dist/es2015/floatingactionbutton}/floatingactionbutton.component.d.ts +47 -49
  122. package/{esm2015 → dist/es2015}/floatingactionbutton/floatingactionbutton.component.js +212 -192
  123. package/{floatingactionbutton → dist/es2015/floatingactionbutton}/floatingactionbutton.module.d.ts +0 -13
  124. package/{esm2015 → dist/es2015}/floatingactionbutton/floatingactionbutton.module.js +11 -19
  125. package/{floatingactionbutton → dist/es2015/floatingactionbutton}/models/align.d.ts +0 -0
  126. package/dist/es2015/floatingactionbutton/models/align.js +4 -0
  127. package/{floatingactionbutton → dist/es2015/floatingactionbutton}/models/item-animation.interface.d.ts +0 -0
  128. package/dist/es2015/floatingactionbutton/models/item-animation.interface.js +4 -0
  129. package/{floatingactionbutton → dist/es2015/floatingactionbutton}/models/item-click.event.d.ts +0 -0
  130. package/dist/es2015/floatingactionbutton/models/item-click.event.js +4 -0
  131. package/{floatingactionbutton → dist/es2015/floatingactionbutton}/models/item.interface.d.ts +0 -0
  132. package/dist/es2015/floatingactionbutton/models/item.interface.js +4 -0
  133. package/{floatingactionbutton → dist/es2015/floatingactionbutton}/models/offset.d.ts +0 -0
  134. package/dist/es2015/floatingactionbutton/models/offset.js +4 -0
  135. package/{floatingactionbutton → dist/es2015/floatingactionbutton}/models/position-mode.d.ts +0 -0
  136. package/dist/es2015/floatingactionbutton/models/position-mode.js +4 -0
  137. package/{floatingactionbutton → dist/es2015/floatingactionbutton}/templates/dial-item-template.directive.d.ts +0 -3
  138. package/dist/es2015/floatingactionbutton/templates/dial-item-template.directive.js +25 -0
  139. package/{floatingactionbutton → dist/es2015/floatingactionbutton}/templates/fab-template.directive.d.ts +0 -3
  140. package/dist/es2015/floatingactionbutton/templates/fab-template.directive.js +25 -0
  141. package/{floatingactionbutton → dist/es2015/floatingactionbutton}/utils.d.ts +0 -0
  142. package/{esm2015 → dist/es2015}/floatingactionbutton/utils.js +0 -0
  143. package/{focusable → dist/es2015/focusable}/focus.service.d.ts +1 -5
  144. package/{esm2015 → dist/es2015}/focusable/focus.service.js +10 -8
  145. package/{focusable → dist/es2015/focusable}/focusable.directive.d.ts +0 -3
  146. package/{esm2015 → dist/es2015}/focusable/focusable.directive.js +20 -19
  147. package/dist/es2015/index.d.ts +22 -0
  148. package/dist/es2015/index.js +22 -0
  149. package/dist/es2015/index.metadata.json +1 -0
  150. package/{listbutton → dist/es2015/listbutton}/button-item-template.directive.d.ts +0 -3
  151. package/{esm2015 → dist/es2015}/listbutton/button-item-template.directive.js +12 -13
  152. package/{listbutton → dist/es2015/listbutton}/list-button.d.ts +2 -6
  153. package/{esm2015 → dist/es2015}/listbutton/list-button.js +6 -16
  154. package/{listbutton → dist/es2015/listbutton}/list-item-model.d.ts +0 -0
  155. package/dist/es2015/listbutton/list-item-model.js +4 -0
  156. package/{listbutton → dist/es2015/listbutton}/list.component.d.ts +3 -3
  157. package/dist/es2015/listbutton/list.component.js +113 -0
  158. package/dist/es2015/listbutton/list.module.d.ts +9 -0
  159. package/dist/es2015/listbutton/list.module.js +30 -0
  160. package/{listbutton → dist/es2015/listbutton}/popup-settings.d.ts +0 -0
  161. package/dist/es2015/listbutton/popup-settings.js +4 -0
  162. package/{listbutton → dist/es2015/listbutton}/template-context.directive.d.ts +1 -4
  163. package/dist/es2015/listbutton/template-context.directive.js +35 -0
  164. package/{main.d.ts → dist/es2015/main.d.ts} +5 -9
  165. package/dist/es2015/main.js +22 -0
  166. package/{navigation → dist/es2015/navigation}/key-events.d.ts +0 -0
  167. package/dist/es2015/navigation/key-events.js +13 -0
  168. package/{navigation → dist/es2015/navigation}/navigation-action.d.ts +0 -0
  169. package/dist/es2015/navigation/navigation-action.js +19 -0
  170. package/{navigation → dist/es2015/navigation}/navigation-config.d.ts +0 -0
  171. package/{esm2015 → dist/es2015}/navigation/navigation-config.js +0 -0
  172. package/{navigation → dist/es2015/navigation}/navigation.service.d.ts +0 -3
  173. package/{esm2015 → dist/es2015}/navigation/navigation.service.js +9 -11
  174. package/{package-metadata.d.ts → dist/es2015/package-metadata.d.ts} +0 -0
  175. package/{esm2015 → dist/es2015}/package-metadata.js +1 -1
  176. package/{preventable-event.d.ts → dist/es2015/preventable-event.d.ts} +0 -0
  177. package/{esm2015 → dist/es2015}/preventable-event.js +0 -0
  178. package/dist/es2015/splitbutton/localization/custom-messages.component.d.ts +15 -0
  179. package/dist/es2015/splitbutton/localization/custom-messages.component.js +36 -0
  180. package/dist/es2015/splitbutton/localization/localized-messages.directive.d.ts +13 -0
  181. package/dist/es2015/splitbutton/localization/localized-messages.directive.js +31 -0
  182. package/dist/es2015/splitbutton/localization/messages.d.ts +32 -0
  183. package/dist/es2015/splitbutton/localization/messages.js +16 -0
  184. package/{splitbutton → dist/es2015/splitbutton}/splitbutton.component.d.ts +74 -34
  185. package/{esm2015 → dist/es2015}/splitbutton/splitbutton.component.js +288 -203
  186. package/dist/es2015/splitbutton/splitbutton.module.d.ts +14 -0
  187. package/dist/es2015/splitbutton/splitbutton.module.js +31 -0
  188. package/dist/es2015/util.d.ts +41 -0
  189. package/dist/es2015/util.js +95 -0
  190. package/{fesm2015/kendo-angular-buttons.js → dist/fesm2015/index.js} +2394 -1838
  191. package/dist/fesm5/index.js +5561 -0
  192. package/dist/npm/button/button.directive.js +771 -0
  193. package/dist/npm/button/button.module.js +52 -0
  194. package/dist/npm/button/button.service.js +26 -0
  195. package/dist/npm/button/selection-settings.js +6 -0
  196. package/dist/npm/buttongroup/buttongroup.component.js +355 -0
  197. package/dist/npm/buttongroup/buttongroup.module.js +32 -0
  198. package/dist/npm/buttons.module.js +56 -0
  199. package/dist/npm/chip/chip-content-click-event-args.interface.js +6 -0
  200. package/dist/npm/chip/chip-list-remove-event-args.interface.js +6 -0
  201. package/dist/npm/chip/chip-list.component.js +216 -0
  202. package/dist/npm/chip/chip-remove-event-args.interface.js +6 -0
  203. package/dist/npm/chip/chip.component.js +451 -0
  204. package/dist/npm/chip/chip.module.js +57 -0
  205. package/dist/npm/chip/models/selection.js +6 -0
  206. package/dist/npm/common/models/fillmode.js +6 -0
  207. package/dist/npm/common/models/rounded.js +6 -0
  208. package/dist/npm/common/models/shape.js +6 -0
  209. package/dist/npm/common/models/size.js +6 -0
  210. package/dist/npm/common/models/styling-classes.js +6 -0
  211. package/dist/npm/common/models/theme-color.js +6 -0
  212. package/dist/npm/common/models.js +6 -0
  213. package/dist/npm/direction.js +6 -0
  214. package/dist/npm/dropdownbutton/dropdownbutton.component.js +706 -0
  215. package/dist/npm/dropdownbutton/dropdownbutton.module.js +34 -0
  216. package/dist/npm/floatingactionbutton/animations/animations.js +37 -0
  217. package/dist/npm/floatingactionbutton/dial-item.component.js +145 -0
  218. package/dist/npm/floatingactionbutton/dial-list.component.js +78 -0
  219. package/dist/npm/floatingactionbutton/floatingactionbutton.component.js +905 -0
  220. package/dist/npm/floatingactionbutton/floatingactionbutton.module.js +67 -0
  221. package/dist/npm/floatingactionbutton/models/align.js +6 -0
  222. package/dist/npm/floatingactionbutton/models/item-animation.interface.js +6 -0
  223. package/dist/npm/floatingactionbutton/models/item-click.event.js +6 -0
  224. package/dist/npm/floatingactionbutton/models/item.interface.js +6 -0
  225. package/dist/npm/floatingactionbutton/models/offset.js +6 -0
  226. package/dist/npm/floatingactionbutton/models/position-mode.js +6 -0
  227. package/dist/npm/floatingactionbutton/templates/dial-item-template.directive.js +28 -0
  228. package/dist/npm/floatingactionbutton/templates/fab-template.directive.js +28 -0
  229. package/dist/npm/floatingactionbutton/utils.js +42 -0
  230. package/dist/npm/focusable/focus.service.js +45 -0
  231. package/dist/npm/focusable/focusable.directive.js +70 -0
  232. package/dist/npm/index.js +39 -0
  233. package/dist/npm/listbutton/button-item-template.directive.js +70 -0
  234. package/dist/npm/listbutton/list-button.js +245 -0
  235. package/dist/npm/listbutton/list-item-model.js +6 -0
  236. package/dist/npm/listbutton/list.component.js +87 -0
  237. package/dist/npm/listbutton/list.module.js +35 -0
  238. package/dist/npm/listbutton/popup-settings.js +6 -0
  239. package/dist/npm/listbutton/template-context.directive.js +42 -0
  240. package/dist/npm/main.js +45 -0
  241. package/dist/npm/navigation/key-events.js +15 -0
  242. package/dist/npm/navigation/navigation-action.js +21 -0
  243. package/dist/npm/navigation/navigation-config.js +11 -0
  244. package/dist/npm/navigation/navigation.service.js +116 -0
  245. package/dist/npm/package-metadata.js +17 -0
  246. package/dist/npm/preventable-event.js +31 -0
  247. package/dist/npm/splitbutton/localization/custom-messages.component.js +46 -0
  248. package/dist/npm/splitbutton/localization/localized-messages.directive.js +37 -0
  249. package/dist/npm/splitbutton/localization/messages.js +24 -0
  250. package/dist/npm/splitbutton/splitbutton.component.js +832 -0
  251. package/dist/npm/splitbutton/splitbutton.module.js +36 -0
  252. package/dist/npm/util.js +100 -0
  253. package/dist/systemjs/kendo-angular-buttons.js +5 -0
  254. package/package.json +110 -35
  255. package/schematics/ngAdd/index.js +2 -5
  256. package/schematics/ngAdd/index.js.map +1 -1
  257. package/bundles/kendo-angular-buttons.umd.js +0 -5
  258. package/button-look.d.ts +0 -21
  259. package/buttongroup/buttongroup.module.d.ts +0 -21
  260. package/chip/models/chip-look.d.ts +0 -18
  261. package/chip/models/type.d.ts +0 -21
  262. package/common/models/shape.d.ts +0 -16
  263. package/dropdownbutton/dropdownbutton.module.d.ts +0 -23
  264. package/esm2015/button/button.directive.js +0 -488
  265. package/esm2015/button/button.service.js +0 -28
  266. package/esm2015/buttongroup/buttongroup.module.js +0 -30
  267. package/esm2015/chip/chip-list.component.js +0 -145
  268. package/esm2015/chip/chip.component.js +0 -335
  269. package/esm2015/chip/models/chip-look.js +0 -5
  270. package/esm2015/chip/models/type.js +0 -5
  271. package/esm2015/dropdownbutton/dropdownbutton.module.js +0 -32
  272. package/esm2015/floatingactionbutton/dial-item.component.js +0 -126
  273. package/esm2015/floatingactionbutton/dial-list.component.js +0 -89
  274. package/esm2015/floatingactionbutton/templates/dial-item-template.directive.js +0 -27
  275. package/esm2015/floatingactionbutton/templates/fab-template.directive.js +0 -27
  276. package/esm2015/listbutton/list.component.js +0 -120
  277. package/esm2015/listbutton/list.module.js +0 -39
  278. package/esm2015/listbutton/template-context.directive.js +0 -33
  279. package/esm2015/splitbutton/splitbutton.module.js +0 -32
  280. package/esm2015/util.js +0 -39
  281. package/kendo-angular-buttons.d.ts +0 -9
  282. package/listbutton/list.module.d.ts +0 -18
  283. package/splitbutton/splitbutton.module.d.ts +0 -23
@@ -0,0 +1,216 @@
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
+ "use strict";
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ var tslib_1 = require("tslib");
8
+ var core_1 = require("@angular/core");
9
+ var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
10
+ var chip_component_1 = require("./chip.component");
11
+ var util_1 = require("../util");
12
+ var kendo_licensing_1 = require("@progress/kendo-licensing");
13
+ var package_metadata_1 = require("../package-metadata");
14
+ var ChipListComponent = /** @class */ (function () {
15
+ function ChipListComponent(localizationService, renderer, element) {
16
+ this.localizationService = localizationService;
17
+ this.renderer = renderer;
18
+ this.element = element;
19
+ this.hostClass = true;
20
+ /**
21
+ * Sets the selection mode of the ChipList.
22
+ *
23
+ * The available values are:
24
+ * * `none` (default)
25
+ * * `single`
26
+ * * `multiple`
27
+ */
28
+ this.selection = 'none';
29
+ /**
30
+ * Fires each time when the ChipList selection is changed.
31
+ */
32
+ this.selectedChange = new core_1.EventEmitter();
33
+ /**
34
+ * Fires each time the user clicks on the remove icon of the Chip.
35
+ */
36
+ this.remove = new core_1.EventEmitter();
37
+ this.role = 'listbox';
38
+ this._size = 'medium';
39
+ kendo_licensing_1.validatePackage(package_metadata_1.packageMetadata);
40
+ this.direction = localizationService.rtl ? 'rtl' : 'ltr';
41
+ }
42
+ Object.defineProperty(ChipListComponent.prototype, "size", {
43
+ get: function () {
44
+ return this._size;
45
+ },
46
+ /**
47
+ * The size property specifies the gap between the Chips in the ChipList
48
+ * ([see example]({% slug appearance_chiplist %}#toc-size)).
49
+ *
50
+ * The possible values are:
51
+ * * `'small'`
52
+ * * `'medium'` (default)
53
+ * * `'large'`
54
+ * * `null`
55
+ */
56
+ set: function (size) {
57
+ this.handleClasses(size, 'size');
58
+ this._size = size;
59
+ },
60
+ enumerable: true,
61
+ configurable: true
62
+ });
63
+ Object.defineProperty(ChipListComponent.prototype, "single", {
64
+ get: function () {
65
+ return this.selection === 'single';
66
+ },
67
+ enumerable: true,
68
+ configurable: true
69
+ });
70
+ Object.defineProperty(ChipListComponent.prototype, "multiple", {
71
+ get: function () {
72
+ return this.selection === 'multiple';
73
+ },
74
+ enumerable: true,
75
+ configurable: true
76
+ });
77
+ /**
78
+ * @hidden
79
+ */
80
+ ChipListComponent.prototype.onClick = function ($event) {
81
+ var target = $event.target;
82
+ var isRemoveClicked = util_1.closest(target, '.k-chip-remove-action');
83
+ var clickedChip = util_1.closest(target, '.k-chip');
84
+ var chip = this.chips.find(function (chip) { return clickedChip === chip.element.nativeElement; });
85
+ if (isRemoveClicked && clickedChip) {
86
+ var removeEventArgs = { sender: this, originalEvent: $event, removedChip: chip };
87
+ this.remove.emit(removeEventArgs);
88
+ }
89
+ if (this.selection !== 'none' && clickedChip && !isRemoveClicked) {
90
+ this.setSelection(chip);
91
+ }
92
+ };
93
+ ChipListComponent.prototype.ngOnInit = function () {
94
+ var _this = this;
95
+ this.dynamicRTLSubscription = this.localizationService.changes
96
+ .subscribe(function (_a) {
97
+ var rtl = _a.rtl;
98
+ return _this.direction = rtl ? 'rtl' : 'ltr';
99
+ });
100
+ };
101
+ ChipListComponent.prototype.ngAfterViewInit = function () {
102
+ var _this = this;
103
+ var stylingInputs = ['size'];
104
+ stylingInputs.forEach(function (input) {
105
+ _this.handleClasses(_this[input], input);
106
+ });
107
+ };
108
+ ChipListComponent.prototype.ngAfterContentInit = function () {
109
+ var _this = this;
110
+ this.chips.forEach(function (chip) {
111
+ _this.renderer.setAttribute(chip.element.nativeElement, 'role', 'option');
112
+ });
113
+ };
114
+ ChipListComponent.prototype.ngOnDestroy = function () {
115
+ if (this.dynamicRTLSubscription) {
116
+ this.dynamicRTLSubscription.unsubscribe();
117
+ }
118
+ };
119
+ ChipListComponent.prototype.selectedChips = function () {
120
+ return this.chips.reduce(function (acc, cur, idx) { return cur.selected ? acc.concat(idx) : acc; }, []);
121
+ };
122
+ /**
123
+ * Updates the selection on click of a Chip. Emits events.
124
+ */
125
+ ChipListComponent.prototype.setSelection = function (chip) {
126
+ if (this.selection === 'single') {
127
+ this.clearSelection(chip);
128
+ }
129
+ chip.selected = !chip.selected;
130
+ this.selectedChange.emit(this.selectedChips());
131
+ };
132
+ ChipListComponent.prototype.clearSelection = function (chip) {
133
+ this.chips.forEach(function (c) {
134
+ if (chip !== c) {
135
+ c.selected = false;
136
+ }
137
+ });
138
+ };
139
+ ChipListComponent.prototype.handleClasses = function (value, input) {
140
+ var elem = this.element.nativeElement;
141
+ var classes = util_1.getStylingClasses('chip-list', input, this[input], value);
142
+ if (classes.toRemove) {
143
+ this.renderer.removeClass(elem, classes.toRemove);
144
+ }
145
+ if (classes.toAdd) {
146
+ this.renderer.addClass(elem, classes.toAdd);
147
+ }
148
+ };
149
+ tslib_1.__decorate([
150
+ core_1.HostBinding('class.k-chip-list'),
151
+ tslib_1.__metadata("design:type", Boolean)
152
+ ], ChipListComponent.prototype, "hostClass", void 0);
153
+ tslib_1.__decorate([
154
+ core_1.HostBinding('attr.dir'),
155
+ tslib_1.__metadata("design:type", String)
156
+ ], ChipListComponent.prototype, "direction", void 0);
157
+ tslib_1.__decorate([
158
+ core_1.Input(),
159
+ tslib_1.__metadata("design:type", String)
160
+ ], ChipListComponent.prototype, "selection", void 0);
161
+ tslib_1.__decorate([
162
+ core_1.Input(),
163
+ tslib_1.__metadata("design:type", String),
164
+ tslib_1.__metadata("design:paramtypes", [String])
165
+ ], ChipListComponent.prototype, "size", null);
166
+ tslib_1.__decorate([
167
+ core_1.Output(),
168
+ tslib_1.__metadata("design:type", core_1.EventEmitter)
169
+ ], ChipListComponent.prototype, "selectedChange", void 0);
170
+ tslib_1.__decorate([
171
+ core_1.Output(),
172
+ tslib_1.__metadata("design:type", core_1.EventEmitter)
173
+ ], ChipListComponent.prototype, "remove", void 0);
174
+ tslib_1.__decorate([
175
+ core_1.ContentChildren(chip_component_1.ChipComponent),
176
+ tslib_1.__metadata("design:type", core_1.QueryList)
177
+ ], ChipListComponent.prototype, "chips", void 0);
178
+ tslib_1.__decorate([
179
+ core_1.HostBinding('class.k-selection-single'),
180
+ tslib_1.__metadata("design:type", Boolean),
181
+ tslib_1.__metadata("design:paramtypes", [])
182
+ ], ChipListComponent.prototype, "single", null);
183
+ tslib_1.__decorate([
184
+ core_1.HostBinding('class.k-selection-multiple'),
185
+ tslib_1.__metadata("design:type", Boolean),
186
+ tslib_1.__metadata("design:paramtypes", [])
187
+ ], ChipListComponent.prototype, "multiple", null);
188
+ tslib_1.__decorate([
189
+ core_1.HostBinding('attr.role'),
190
+ tslib_1.__metadata("design:type", String)
191
+ ], ChipListComponent.prototype, "role", void 0);
192
+ tslib_1.__decorate([
193
+ core_1.HostListener('click', ['$event']),
194
+ tslib_1.__metadata("design:type", Function),
195
+ tslib_1.__metadata("design:paramtypes", [Object]),
196
+ tslib_1.__metadata("design:returntype", void 0)
197
+ ], ChipListComponent.prototype, "onClick", null);
198
+ ChipListComponent = tslib_1.__decorate([
199
+ core_1.Component({
200
+ selector: 'kendo-chiplist, kendo-chip-list',
201
+ template: "\n <ng-content></ng-content>\n ",
202
+ providers: [
203
+ kendo_angular_l10n_1.LocalizationService,
204
+ {
205
+ provide: kendo_angular_l10n_1.L10N_PREFIX,
206
+ useValue: 'kendo.chiplist'
207
+ }
208
+ ]
209
+ }),
210
+ tslib_1.__metadata("design:paramtypes", [kendo_angular_l10n_1.LocalizationService,
211
+ core_1.Renderer2,
212
+ core_1.ElementRef])
213
+ ], ChipListComponent);
214
+ return ChipListComponent;
215
+ }());
216
+ exports.ChipListComponent = ChipListComponent;
@@ -0,0 +1,6 @@
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
+ "use strict";
6
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,451 @@
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
+ "use strict";
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ var tslib_1 = require("tslib");
8
+ var core_1 = require("@angular/core");
9
+ var kendo_angular_common_1 = require("@progress/kendo-angular-common");
10
+ var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
11
+ var kendo_licensing_1 = require("@progress/kendo-licensing");
12
+ var package_metadata_1 = require("../package-metadata");
13
+ var util_1 = require("../util");
14
+ /**
15
+ * Displays a Chip that represents an input, attribute or an action.
16
+ */
17
+ var ChipComponent = /** @class */ (function () {
18
+ function ChipComponent(element, renderer, ngZone, localizationService) {
19
+ this.element = element;
20
+ this.renderer = renderer;
21
+ this.ngZone = ngZone;
22
+ this.localizationService = localizationService;
23
+ /**
24
+ * Specifies the selected state of the Chip.
25
+ * @default false
26
+ */
27
+ this.selected = false;
28
+ /**
29
+ * Specifies if the Chip will be removable or not.
30
+ * If the property is set to `true`, the Chip renders a remove icon.
31
+ * @default false
32
+ */
33
+ this.removable = false;
34
+ /**
35
+ * If set to `true`, the Chip will be disabled.
36
+ * @default false
37
+ */
38
+ this.disabled = false;
39
+ /**
40
+ * Fires each time the user clicks the remove icon of the Chip.
41
+ */
42
+ this.remove = new core_1.EventEmitter();
43
+ /**
44
+ * Fires each time the user clicks the content of the Chip.
45
+ */
46
+ this.contentClick = new core_1.EventEmitter();
47
+ this.tabIndex = 0;
48
+ this.hostClass = true;
49
+ this._size = 'medium';
50
+ this._rounded = 'medium';
51
+ this._fillMode = 'solid';
52
+ this._themeColor = 'base';
53
+ this.focused = false;
54
+ kendo_licensing_1.validatePackage(package_metadata_1.packageMetadata);
55
+ this.direction = localizationService.rtl ? 'rtl' : 'ltr';
56
+ }
57
+ Object.defineProperty(ChipComponent.prototype, "size", {
58
+ get: function () {
59
+ return this._size;
60
+ },
61
+ /**
62
+ * The size property specifies the padding of the Chip
63
+ * ([see example]({% slug appearance_chip %}#toc-size)).
64
+ *
65
+ * The possible values are:
66
+ * * `'small'`
67
+ * * `'medium'` (default)
68
+ * * `'large'`
69
+ * * `null`
70
+ */
71
+ set: function (size) {
72
+ this.handleClasses(size, 'size');
73
+ this._size = size;
74
+ },
75
+ enumerable: true,
76
+ configurable: true
77
+ });
78
+ Object.defineProperty(ChipComponent.prototype, "rounded", {
79
+ get: function () {
80
+ return this._rounded;
81
+ },
82
+ /**
83
+ * The rounded property specifies the border radius of the Chip
84
+ * ([see example]({% slug appearance_chip %}#toc-rounded)).
85
+ *
86
+ * The possible values are:
87
+ * * `'small'`
88
+ * * `'medium'` (default)
89
+ * * `'large'`
90
+ * * `'full'`
91
+ * * `null`
92
+ */
93
+ set: function (rounded) {
94
+ this.handleClasses(rounded, 'rounded');
95
+ this._rounded = rounded;
96
+ },
97
+ enumerable: true,
98
+ configurable: true
99
+ });
100
+ Object.defineProperty(ChipComponent.prototype, "fillMode", {
101
+ get: function () {
102
+ return this._fillMode;
103
+ },
104
+ /**
105
+ * The fillMode property specifies the background and border styles of the Chip
106
+ * ([see example]({% slug appearance_chip %}#toc-fillMode)).
107
+ *
108
+ * The possible values are:
109
+ * * `'solid'` (default)
110
+ * * `'outline'`
111
+ * * `null`
112
+ */
113
+ set: function (fillMode) {
114
+ this.handleClasses(fillMode, 'fillMode');
115
+ this._fillMode = fillMode;
116
+ },
117
+ enumerable: true,
118
+ configurable: true
119
+ });
120
+ Object.defineProperty(ChipComponent.prototype, "themeColor", {
121
+ get: function () {
122
+ return this._themeColor;
123
+ },
124
+ /**
125
+ * The Chip allows you to specify predefined theme colors.
126
+ * The theme color will be applied as a background and border color while also amending the text color accordingly
127
+ * ([see example]({% slug appearance_chip %}#toc-themeColor)).
128
+ *
129
+ * The possible values are:
130
+ * * `'base'` (default)
131
+ * * `'info'`
132
+ * * `'success'`
133
+ * * `'warning'`
134
+ * * `'error'`
135
+ * * `null`
136
+ */
137
+ set: function (themeColor) {
138
+ this.handleThemeColor(themeColor);
139
+ this._themeColor = themeColor;
140
+ },
141
+ enumerable: true,
142
+ configurable: true
143
+ });
144
+ Object.defineProperty(ChipComponent.prototype, "ariaChecked", {
145
+ get: function () {
146
+ return this.selected;
147
+ },
148
+ enumerable: true,
149
+ configurable: true
150
+ });
151
+ Object.defineProperty(ChipComponent.prototype, "hasIconClass", {
152
+ get: function () {
153
+ return this.icon || this.iconClass || this.avatarClass ? true : false;
154
+ },
155
+ enumerable: true,
156
+ configurable: true
157
+ });
158
+ Object.defineProperty(ChipComponent.prototype, "disabledClass", {
159
+ get: function () {
160
+ return this.disabled;
161
+ },
162
+ enumerable: true,
163
+ configurable: true
164
+ });
165
+ Object.defineProperty(ChipComponent.prototype, "selectedClass", {
166
+ get: function () {
167
+ return this.selected;
168
+ },
169
+ enumerable: true,
170
+ configurable: true
171
+ });
172
+ Object.defineProperty(ChipComponent.prototype, "focusedClass", {
173
+ get: function () {
174
+ return this.focused;
175
+ },
176
+ enumerable: true,
177
+ configurable: true
178
+ });
179
+ ChipComponent.prototype.ngOnInit = function () {
180
+ var _this = this;
181
+ this.dynamicRTLSubscription = this.localizationService.changes
182
+ .subscribe(function (_a) {
183
+ var rtl = _a.rtl;
184
+ return _this.direction = rtl ? 'rtl' : 'ltr';
185
+ });
186
+ };
187
+ ChipComponent.prototype.ngOnDestroy = function () {
188
+ if (this.dynamicRTLSubscription) {
189
+ this.dynamicRTLSubscription.unsubscribe();
190
+ }
191
+ if (this.detachDomEvents) {
192
+ this.detachDomEvents();
193
+ }
194
+ };
195
+ ChipComponent.prototype.ngAfterViewInit = function () {
196
+ var _this = this;
197
+ var chip = this.element.nativeElement;
198
+ var stylingOptions = ['size', 'rounded', 'fillMode'];
199
+ stylingOptions.forEach(function (input) {
200
+ _this.handleClasses(_this[input], input);
201
+ });
202
+ this.attachElementEventHandlers(chip);
203
+ };
204
+ Object.defineProperty(ChipComponent.prototype, "kendoIconClass", {
205
+ /**
206
+ * @hidden
207
+ */
208
+ get: function () {
209
+ this.verifyIconSettings([this.iconClass, this.avatarClass]);
210
+ return "k-i-" + this.icon;
211
+ },
212
+ enumerable: true,
213
+ configurable: true
214
+ });
215
+ Object.defineProperty(ChipComponent.prototype, "customIconClass", {
216
+ /**
217
+ * @hidden
218
+ */
219
+ get: function () {
220
+ this.verifyIconSettings([this.icon, this.avatarClass]);
221
+ return "" + this.iconClass;
222
+ },
223
+ enumerable: true,
224
+ configurable: true
225
+ });
226
+ Object.defineProperty(ChipComponent.prototype, "chipAvatarClass", {
227
+ /**
228
+ * @hidden
229
+ */
230
+ get: function () {
231
+ this.verifyIconSettings([this.icon, this.iconClass]);
232
+ return "" + this.avatarClass;
233
+ },
234
+ enumerable: true,
235
+ configurable: true
236
+ });
237
+ Object.defineProperty(ChipComponent.prototype, "removeIconClass", {
238
+ /**
239
+ * @hidden
240
+ */
241
+ get: function () {
242
+ if (this.removeIcon) {
243
+ return "" + this.removeIcon;
244
+ }
245
+ return "k-i-close-circle";
246
+ },
247
+ enumerable: true,
248
+ configurable: true
249
+ });
250
+ /**
251
+ * Focuses the Chip component.
252
+ */
253
+ ChipComponent.prototype.focus = function () {
254
+ if (kendo_angular_common_1.isDocumentAvailable()) {
255
+ this.element.nativeElement.focus();
256
+ }
257
+ };
258
+ /**
259
+ * Blurs the Chip component.
260
+ */
261
+ ChipComponent.prototype.blur = function () {
262
+ if (kendo_angular_common_1.isDocumentAvailable()) {
263
+ this.element.nativeElement.blur();
264
+ }
265
+ };
266
+ /**
267
+ * @hidden
268
+ */
269
+ ChipComponent.prototype.onRemoveClick = function (e) {
270
+ if (this.removable) {
271
+ this.remove.emit({ sender: this, originalEvent: e });
272
+ }
273
+ };
274
+ ChipComponent.prototype.attachElementEventHandlers = function (chip) {
275
+ var _this = this;
276
+ this.ngZone.runOutsideAngular(function () {
277
+ var focusListener = _this.renderer.listen(chip, 'focus', function () {
278
+ _this.renderer.addClass(chip, 'k-focus');
279
+ });
280
+ var blurListener = _this.renderer.listen(chip, 'blur', function () {
281
+ _this.renderer.removeClass(chip, 'k-focus');
282
+ });
283
+ var contentClickListener = _this.renderer.listen(chip, 'click', function (e) {
284
+ var isRemoveClicked = util_1.closest(e.target, '.k-chip-remove-action');
285
+ if (!isRemoveClicked) {
286
+ _this.ngZone.run(function () {
287
+ _this.contentClick.emit({ sender: _this, originalEvent: e });
288
+ });
289
+ }
290
+ });
291
+ _this.detachDomEvents = function () {
292
+ focusListener();
293
+ blurListener();
294
+ contentClickListener();
295
+ };
296
+ });
297
+ };
298
+ /**
299
+ * @hidden
300
+ */
301
+ ChipComponent.prototype.verifyIconSettings = function (iconsToCheck) {
302
+ if (core_1.isDevMode()) {
303
+ if (iconsToCheck.filter(function (icon) { return icon !== null && icon !== undefined; }).length > 0) {
304
+ this.renderer.removeClass(this.element.nativeElement, 'k-chip-has-icon');
305
+ throw new Error('Invalid configuration: Having multiple icons is not supported. Only a single icon on a chip can be displayed.');
306
+ }
307
+ }
308
+ };
309
+ ChipComponent.prototype.handleClasses = function (value, input) {
310
+ var elem = this.element.nativeElement;
311
+ var classes = util_1.getStylingClasses('chip', input, this[input], value);
312
+ if (input === 'fillMode') {
313
+ this.handleThemeColor(this.themeColor, this[input], value);
314
+ }
315
+ if (classes.toRemove) {
316
+ this.renderer.removeClass(elem, classes.toRemove);
317
+ }
318
+ if (classes.toAdd) {
319
+ this.renderer.addClass(elem, classes.toAdd);
320
+ }
321
+ };
322
+ ChipComponent.prototype.handleThemeColor = function (value, prevFillMode, fillMode) {
323
+ var elem = this.element.nativeElement;
324
+ var removeFillMode = prevFillMode ? prevFillMode : this.fillMode;
325
+ var addFillMode = fillMode ? fillMode : this.fillMode;
326
+ var themeColorClass = util_1.getThemeColorClasses('chip', removeFillMode, addFillMode, this.themeColor, value);
327
+ this.renderer.removeClass(elem, themeColorClass.toRemove);
328
+ if (addFillMode !== null && fillMode !== null) {
329
+ if (themeColorClass.toAdd) {
330
+ this.renderer.addClass(elem, themeColorClass.toAdd);
331
+ }
332
+ }
333
+ };
334
+ tslib_1.__decorate([
335
+ core_1.Input(),
336
+ tslib_1.__metadata("design:type", String)
337
+ ], ChipComponent.prototype, "label", void 0);
338
+ tslib_1.__decorate([
339
+ core_1.Input(),
340
+ tslib_1.__metadata("design:type", String)
341
+ ], ChipComponent.prototype, "icon", void 0);
342
+ tslib_1.__decorate([
343
+ core_1.Input(),
344
+ tslib_1.__metadata("design:type", String)
345
+ ], ChipComponent.prototype, "iconClass", void 0);
346
+ tslib_1.__decorate([
347
+ core_1.Input(),
348
+ tslib_1.__metadata("design:type", String)
349
+ ], ChipComponent.prototype, "avatarClass", void 0);
350
+ tslib_1.__decorate([
351
+ core_1.Input(),
352
+ tslib_1.__metadata("design:type", Boolean)
353
+ ], ChipComponent.prototype, "selected", void 0);
354
+ tslib_1.__decorate([
355
+ core_1.Input(),
356
+ tslib_1.__metadata("design:type", Boolean)
357
+ ], ChipComponent.prototype, "removable", void 0);
358
+ tslib_1.__decorate([
359
+ core_1.Input(),
360
+ tslib_1.__metadata("design:type", String)
361
+ ], ChipComponent.prototype, "removeIcon", void 0);
362
+ tslib_1.__decorate([
363
+ core_1.Input(),
364
+ tslib_1.__metadata("design:type", Boolean)
365
+ ], ChipComponent.prototype, "disabled", void 0);
366
+ tslib_1.__decorate([
367
+ core_1.Input(),
368
+ tslib_1.__metadata("design:type", String),
369
+ tslib_1.__metadata("design:paramtypes", [String])
370
+ ], ChipComponent.prototype, "size", null);
371
+ tslib_1.__decorate([
372
+ core_1.Input(),
373
+ tslib_1.__metadata("design:type", String),
374
+ tslib_1.__metadata("design:paramtypes", [String])
375
+ ], ChipComponent.prototype, "rounded", null);
376
+ tslib_1.__decorate([
377
+ core_1.Input(),
378
+ tslib_1.__metadata("design:type", String),
379
+ tslib_1.__metadata("design:paramtypes", [String])
380
+ ], ChipComponent.prototype, "fillMode", null);
381
+ tslib_1.__decorate([
382
+ core_1.Input(),
383
+ tslib_1.__metadata("design:type", String),
384
+ tslib_1.__metadata("design:paramtypes", [String])
385
+ ], ChipComponent.prototype, "themeColor", null);
386
+ tslib_1.__decorate([
387
+ core_1.Output(),
388
+ tslib_1.__metadata("design:type", core_1.EventEmitter)
389
+ ], ChipComponent.prototype, "remove", void 0);
390
+ tslib_1.__decorate([
391
+ core_1.Output(),
392
+ tslib_1.__metadata("design:type", core_1.EventEmitter)
393
+ ], ChipComponent.prototype, "contentClick", void 0);
394
+ tslib_1.__decorate([
395
+ core_1.HostBinding('attr.tabindex'),
396
+ tslib_1.__metadata("design:type", Number)
397
+ ], ChipComponent.prototype, "tabIndex", void 0);
398
+ tslib_1.__decorate([
399
+ core_1.HostBinding('attr.aria-checked'),
400
+ tslib_1.__metadata("design:type", Boolean),
401
+ tslib_1.__metadata("design:paramtypes", [])
402
+ ], ChipComponent.prototype, "ariaChecked", null);
403
+ tslib_1.__decorate([
404
+ core_1.HostBinding('class.k-chip'),
405
+ tslib_1.__metadata("design:type", Boolean)
406
+ ], ChipComponent.prototype, "hostClass", void 0);
407
+ tslib_1.__decorate([
408
+ core_1.HostBinding('class.k-chip-has-icon'),
409
+ tslib_1.__metadata("design:type", Boolean),
410
+ tslib_1.__metadata("design:paramtypes", [])
411
+ ], ChipComponent.prototype, "hasIconClass", null);
412
+ tslib_1.__decorate([
413
+ core_1.HostBinding('attr.aria-disabled'),
414
+ core_1.HostBinding('class.k-disabled'),
415
+ tslib_1.__metadata("design:type", Boolean),
416
+ tslib_1.__metadata("design:paramtypes", [])
417
+ ], ChipComponent.prototype, "disabledClass", null);
418
+ tslib_1.__decorate([
419
+ core_1.HostBinding('class.k-selected'),
420
+ tslib_1.__metadata("design:type", Boolean),
421
+ tslib_1.__metadata("design:paramtypes", [])
422
+ ], ChipComponent.prototype, "selectedClass", null);
423
+ tslib_1.__decorate([
424
+ core_1.HostBinding('class.k-focus'),
425
+ tslib_1.__metadata("design:type", Boolean),
426
+ tslib_1.__metadata("design:paramtypes", [])
427
+ ], ChipComponent.prototype, "focusedClass", null);
428
+ tslib_1.__decorate([
429
+ core_1.HostBinding('attr.dir'),
430
+ tslib_1.__metadata("design:type", String)
431
+ ], ChipComponent.prototype, "direction", void 0);
432
+ ChipComponent = tslib_1.__decorate([
433
+ core_1.Component({
434
+ selector: 'kendo-chip',
435
+ template: "\n <span\n *ngIf=\"icon\"\n class=\"k-chip-icon k-icon\"\n [ngClass]=\"kendoIconClass\"\n >\n </span>\n\n <span\n *ngIf=\"iconClass\"\n class=\"k-chip-icon\"\n [ngClass]=\"customIconClass\"\n >\n </span>\n\n <span\n *ngIf=\"avatarClass\"\n class=\"k-chip-avatar k-avatar k-rounded-full\"\n >\n <span class=\"k-avatar-image\" [ngClass]=\"chipAvatarClass\"></span>\n </span>\n\n <span class=\"k-chip-content\">\n <span class=\"k-chip-label\" *ngIf=\"label\">\n {{ label }}\n </span>\n <ng-content *ngIf=\"!label\"></ng-content>\n </span>\n\n <span class=\"k-chip-actions\">\n <span class=\"k-chip-action k-chip-remove-action\"\n *ngIf=\"removable\"\n (click)=\"onRemoveClick($event)\"\n >\n <span\n class=\"k-icon\"\n [ngClass]=\"removeIconClass\"\n >\n </span>\n </span>\n </span>\n ",
436
+ providers: [
437
+ kendo_angular_l10n_1.LocalizationService,
438
+ {
439
+ provide: kendo_angular_l10n_1.L10N_PREFIX,
440
+ useValue: 'kendo.chip'
441
+ }
442
+ ]
443
+ }),
444
+ tslib_1.__metadata("design:paramtypes", [core_1.ElementRef,
445
+ core_1.Renderer2,
446
+ core_1.NgZone,
447
+ kendo_angular_l10n_1.LocalizationService])
448
+ ], ChipComponent);
449
+ return ChipComponent;
450
+ }());
451
+ exports.ChipComponent = ChipComponent;