@progress/kendo-angular-inputs 13.2.1-develop.11 → 13.2.1-develop.13

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 (289) hide show
  1. package/LICENSE.md +11 -0
  2. package/NOTICE.txt +654 -0
  3. package/README.md +184 -0
  4. package/checkbox/checkbox.directive.d.ts +52 -0
  5. package/checkbox.module.d.ts +43 -0
  6. package/colorpicker/color-contrast-svg.component.d.ts +29 -0
  7. package/colorpicker/color-gradient-numeric-label.directive.d.ts +20 -0
  8. package/colorpicker/color-gradient.component.d.ts +281 -0
  9. package/colorpicker/color-input.component.d.ts +95 -0
  10. package/colorpicker/color-palette.component.d.ts +221 -0
  11. package/colorpicker/colorpicker.component.d.ts +383 -0
  12. package/colorpicker/constants.d.ts +41 -0
  13. package/colorpicker/contrast-validation.component.d.ts +24 -0
  14. package/colorpicker/contrast.component.d.ts +25 -0
  15. package/colorpicker/events/active-color-click-event.d.ts +53 -0
  16. package/colorpicker/events/cancel-event.d.ts +15 -0
  17. package/colorpicker/events/close-event.d.ts +10 -0
  18. package/colorpicker/events/kendo-drag-event.d.ts +21 -0
  19. package/colorpicker/events/open-event.d.ts +10 -0
  20. package/colorpicker/events.d.ts +8 -0
  21. package/colorpicker/flatcolorpicker-actions.component.d.ts +24 -0
  22. package/colorpicker/flatcolorpicker-header.component.d.ts +43 -0
  23. package/colorpicker/flatcolorpicker.component.d.ts +267 -0
  24. package/colorpicker/focus-on-dom-ready.directive.d.ts +18 -0
  25. package/colorpicker/localization/colorgradient-localization.service.d.ts +17 -0
  26. package/colorpicker/localization/colorpalette-localization.service.d.ts +17 -0
  27. package/colorpicker/localization/colorpicker-localization.service.d.ts +14 -0
  28. package/colorpicker/localization/custom-messages.component.d.ts +17 -0
  29. package/colorpicker/localization/flatcolorpicker-localization.service.d.ts +17 -0
  30. package/colorpicker/localization/localized-colorpicker-messages.directive.d.ts +16 -0
  31. package/colorpicker/localization/messages.d.ts +121 -0
  32. package/colorpicker/models/actions-layout.d.ts +8 -0
  33. package/colorpicker/models/colorpicker-view.d.ts +8 -0
  34. package/colorpicker/models/gradient-settings.d.ts +35 -0
  35. package/colorpicker/models/hsva.d.ts +13 -0
  36. package/colorpicker/models/output-format.d.ts +8 -0
  37. package/colorpicker/models/palette-presets.d.ts +61 -0
  38. package/colorpicker/models/palette-settings.d.ts +33 -0
  39. package/colorpicker/models/popup-settings.d.ts +18 -0
  40. package/colorpicker/models/rgb.d.ts +12 -0
  41. package/colorpicker/models/rgba.d.ts +13 -0
  42. package/colorpicker/models/table-cell.d.ts +11 -0
  43. package/colorpicker/models/tile-size.d.ts +11 -0
  44. package/colorpicker/models.d.ts +16 -0
  45. package/colorpicker/services/color-palette.service.d.ts +19 -0
  46. package/colorpicker/services/flatcolorpicker.service.d.ts +15 -0
  47. package/colorpicker/utils/color-parser.d.ts +77 -0
  48. package/colorpicker/utils/contrast-curve.d.ts +37 -0
  49. package/colorpicker/utils.d.ts +6 -0
  50. package/colorpicker.module.d.ts +35 -0
  51. package/common/dom-utils.d.ts +25 -0
  52. package/common/math.d.ts +36 -0
  53. package/common/models/fillmode.d.ts +9 -0
  54. package/common/models/rounded.d.ts +14 -0
  55. package/common/models/size.d.ts +9 -0
  56. package/common/models/styling-classes.d.ts +11 -0
  57. package/common/models.d.ts +8 -0
  58. package/common/utils.d.ts +56 -0
  59. package/esm2020/checkbox/checkbox.directive.mjs +94 -0
  60. package/esm2020/checkbox.module.mjs +52 -0
  61. package/esm2020/colorpicker/color-contrast-svg.component.mjs +97 -0
  62. package/esm2020/colorpicker/color-gradient-numeric-label.directive.mjs +31 -0
  63. package/esm2020/colorpicker/color-gradient.component.mjs +1003 -0
  64. package/esm2020/colorpicker/color-input.component.mjs +433 -0
  65. package/esm2020/colorpicker/color-palette.component.mjs +553 -0
  66. package/esm2020/colorpicker/colorpicker.component.mjs +1086 -0
  67. package/esm2020/colorpicker/constants.mjs +40 -0
  68. package/esm2020/colorpicker/contrast-validation.component.mjs +72 -0
  69. package/esm2020/colorpicker/contrast.component.mjs +100 -0
  70. package/esm2020/colorpicker/events/active-color-click-event.mjs +58 -0
  71. package/esm2020/colorpicker/events/cancel-event.mjs +14 -0
  72. package/esm2020/colorpicker/events/close-event.mjs +10 -0
  73. package/esm2020/colorpicker/events/kendo-drag-event.mjs +5 -0
  74. package/esm2020/colorpicker/events/open-event.mjs +10 -0
  75. package/esm2020/colorpicker/events.mjs +8 -0
  76. package/esm2020/colorpicker/flatcolorpicker-actions.component.mjs +93 -0
  77. package/esm2020/colorpicker/flatcolorpicker-header.component.mjs +217 -0
  78. package/esm2020/colorpicker/flatcolorpicker.component.mjs +829 -0
  79. package/esm2020/colorpicker/focus-on-dom-ready.directive.mjs +29 -0
  80. package/esm2020/colorpicker/localization/colorgradient-localization.service.mjs +45 -0
  81. package/esm2020/colorpicker/localization/colorpalette-localization.service.mjs +45 -0
  82. package/esm2020/colorpicker/localization/colorpicker-localization.service.mjs +31 -0
  83. package/esm2020/colorpicker/localization/custom-messages.component.mjs +41 -0
  84. package/esm2020/colorpicker/localization/flatcolorpicker-localization.service.mjs +45 -0
  85. package/esm2020/colorpicker/localization/localized-colorpicker-messages.directive.mjs +37 -0
  86. package/esm2020/colorpicker/localization/messages.mjs +75 -0
  87. package/esm2020/colorpicker/models/actions-layout.mjs +5 -0
  88. package/esm2020/colorpicker/models/colorpicker-view.mjs +5 -0
  89. package/esm2020/colorpicker/models/gradient-settings.mjs +5 -0
  90. package/esm2020/colorpicker/models/hsva.mjs +5 -0
  91. package/esm2020/colorpicker/models/output-format.mjs +5 -0
  92. package/esm2020/colorpicker/models/palette-presets.mjs +62 -0
  93. package/esm2020/colorpicker/models/palette-settings.mjs +5 -0
  94. package/esm2020/colorpicker/models/popup-settings.mjs +5 -0
  95. package/esm2020/colorpicker/models/rgb.mjs +5 -0
  96. package/esm2020/colorpicker/models/rgba.mjs +5 -0
  97. package/esm2020/colorpicker/models/table-cell.mjs +5 -0
  98. package/esm2020/colorpicker/models/tile-size.mjs +6 -0
  99. package/esm2020/colorpicker/models.mjs +16 -0
  100. package/esm2020/colorpicker/services/color-palette.service.mjs +67 -0
  101. package/esm2020/colorpicker/services/flatcolorpicker.service.mjs +39 -0
  102. package/esm2020/colorpicker/utils/color-parser.mjs +164 -0
  103. package/esm2020/colorpicker/utils/contrast-curve.mjs +85 -0
  104. package/esm2020/colorpicker/utils.mjs +6 -0
  105. package/esm2020/colorpicker.module.mjs +104 -0
  106. package/esm2020/common/dom-utils.mjs +36 -0
  107. package/esm2020/common/math.mjs +65 -0
  108. package/esm2020/common/models/fillmode.mjs +5 -0
  109. package/esm2020/common/models/rounded.mjs +5 -0
  110. package/esm2020/common/models/size.mjs +5 -0
  111. package/esm2020/common/models/styling-classes.mjs +5 -0
  112. package/esm2020/common/models.mjs +8 -0
  113. package/esm2020/common/utils.mjs +81 -0
  114. package/esm2020/formfield/error.component.mjs +68 -0
  115. package/esm2020/formfield/formfield.component.mjs +284 -0
  116. package/esm2020/formfield/hint.component.mjs +63 -0
  117. package/esm2020/formfield/models/message-align.mjs +5 -0
  118. package/esm2020/formfield/models/orientation.mjs +5 -0
  119. package/esm2020/formfield/models/show-options.mjs +5 -0
  120. package/esm2020/formfield.module.mjs +54 -0
  121. package/esm2020/index.mjs +66 -0
  122. package/esm2020/inputs.module.mjs +98 -0
  123. package/esm2020/maskedtextbox/maskedtextbox.component.mjs +711 -0
  124. package/esm2020/maskedtextbox/masking.service.mjs +191 -0
  125. package/esm2020/maskedtextbox/parsing/combinators.mjs +28 -0
  126. package/esm2020/maskedtextbox/parsing/parsers.mjs +147 -0
  127. package/esm2020/maskedtextbox/parsing/result.mjs +41 -0
  128. package/esm2020/maskedtextbox/parsing/stream.mjs +41 -0
  129. package/esm2020/maskedtextbox.module.mjs +53 -0
  130. package/esm2020/numerictextbox/arrow-direction.mjs +13 -0
  131. package/esm2020/numerictextbox/constants.mjs +28 -0
  132. package/esm2020/numerictextbox/localization/custom-messages.component.mjs +41 -0
  133. package/esm2020/numerictextbox/localization/localized-numerictextbox-messages.directive.mjs +37 -0
  134. package/esm2020/numerictextbox/localization/messages.mjs +25 -0
  135. package/esm2020/numerictextbox/numerictextbox.component.mjs +1105 -0
  136. package/esm2020/numerictextbox/utils.mjs +92 -0
  137. package/esm2020/numerictextbox.module.mjs +66 -0
  138. package/esm2020/package-metadata.mjs +15 -0
  139. package/esm2020/progress-kendo-angular-inputs.mjs +8 -0
  140. package/esm2020/radiobutton/radiobutton.directive.mjs +76 -0
  141. package/esm2020/radiobutton.module.mjs +52 -0
  142. package/esm2020/rangeslider/localization/custom-messages.component.mjs +41 -0
  143. package/esm2020/rangeslider/localization/localized-rangeslider-messages.directive.mjs +37 -0
  144. package/esm2020/rangeslider/localization/messages.mjs +25 -0
  145. package/esm2020/rangeslider/rangeslider-model.mjs +52 -0
  146. package/esm2020/rangeslider/rangeslider-value.type.mjs +5 -0
  147. package/esm2020/rangeslider/rangeslider.component.mjs +605 -0
  148. package/esm2020/rangeslider.module.mjs +71 -0
  149. package/esm2020/shared/input-separator.component.mjs +41 -0
  150. package/esm2020/shared/textarea.directive.mjs +260 -0
  151. package/esm2020/shared/utils.mjs +13 -0
  152. package/esm2020/shared.module.mjs +32 -0
  153. package/esm2020/signature/events/close-event.mjs +10 -0
  154. package/esm2020/signature/events/index.mjs +6 -0
  155. package/esm2020/signature/events/open-event.mjs +10 -0
  156. package/esm2020/signature/localization/custom-messages.component.mjs +41 -0
  157. package/esm2020/signature/localization/index.mjs +7 -0
  158. package/esm2020/signature/localization/localized-signature-messages.directive.mjs +37 -0
  159. package/esm2020/signature/localization/messages.mjs +29 -0
  160. package/esm2020/signature/signature.component.mjs +906 -0
  161. package/esm2020/signature.module.mjs +79 -0
  162. package/esm2020/slider/localization/custom-messages.component.mjs +41 -0
  163. package/esm2020/slider/localization/localized-slider-messages.directive.mjs +37 -0
  164. package/esm2020/slider/localization/messages.mjs +27 -0
  165. package/esm2020/slider/slider-model.mjs +34 -0
  166. package/esm2020/slider/slider.component.mjs +646 -0
  167. package/esm2020/slider.module.mjs +73 -0
  168. package/esm2020/sliders-common/label-template.directive.mjs +45 -0
  169. package/esm2020/sliders-common/slider-base.mjs +255 -0
  170. package/esm2020/sliders-common/slider-model.base.mjs +93 -0
  171. package/esm2020/sliders-common/slider-ticks.component.mjs +125 -0
  172. package/esm2020/sliders-common/sliders-common.module.mjs +42 -0
  173. package/esm2020/sliders-common/sliders-util.mjs +219 -0
  174. package/esm2020/sliders-common/title-callback.mjs +5 -0
  175. package/esm2020/switch/events/blur-event.mjs +9 -0
  176. package/esm2020/switch/events/focus-event.mjs +9 -0
  177. package/esm2020/switch/localization/custom-messages.component.mjs +41 -0
  178. package/esm2020/switch/localization/localized-switch-messages.directive.mjs +37 -0
  179. package/esm2020/switch/localization/messages.mjs +25 -0
  180. package/esm2020/switch/switch.component.mjs +577 -0
  181. package/esm2020/switch.module.mjs +68 -0
  182. package/esm2020/text-fields-common/text-fields-base.mjs +128 -0
  183. package/esm2020/textarea/models/flow.mjs +5 -0
  184. package/esm2020/textarea/models/resize.mjs +5 -0
  185. package/esm2020/textarea/textarea-suffix.component.mjs +40 -0
  186. package/esm2020/textarea/textarea.component.mjs +604 -0
  187. package/esm2020/textarea.module.mjs +68 -0
  188. package/esm2020/textbox/localization/custom-messages.component.mjs +41 -0
  189. package/esm2020/textbox/localization/localized-textbox-messages.directive.mjs +37 -0
  190. package/esm2020/textbox/localization/messages.mjs +23 -0
  191. package/esm2020/textbox/models/icon-show-options.mjs +5 -0
  192. package/esm2020/textbox/textbox-prefix.directive.mjs +38 -0
  193. package/esm2020/textbox/textbox-suffix.directive.mjs +37 -0
  194. package/esm2020/textbox/textbox.component.mjs +849 -0
  195. package/esm2020/textbox/textbox.directive.mjs +121 -0
  196. package/esm2020/textbox.module.mjs +89 -0
  197. package/esm2020/validators/max.validator.mjs +21 -0
  198. package/esm2020/validators/min.validator.mjs +21 -0
  199. package/fesm2015/progress-kendo-angular-inputs.mjs +15090 -0
  200. package/fesm2020/progress-kendo-angular-inputs.mjs +15055 -0
  201. package/formfield/error.component.d.ts +31 -0
  202. package/formfield/formfield.component.d.ts +98 -0
  203. package/formfield/hint.component.d.ts +29 -0
  204. package/formfield/models/message-align.d.ts +8 -0
  205. package/formfield/models/orientation.d.ts +9 -0
  206. package/formfield/models/show-options.d.ts +16 -0
  207. package/formfield.module.d.ts +45 -0
  208. package/index.d.ts +76 -0
  209. package/inputs.module.d.ts +55 -0
  210. package/maskedtextbox/maskedtextbox.component.d.ts +315 -0
  211. package/maskedtextbox/masking.service.d.ts +48 -0
  212. package/maskedtextbox/parsing/combinators.d.ts +13 -0
  213. package/maskedtextbox/parsing/parsers.d.ts +51 -0
  214. package/maskedtextbox/parsing/result.d.ts +27 -0
  215. package/maskedtextbox/parsing/stream.d.ts +26 -0
  216. package/maskedtextbox.module.d.ts +44 -0
  217. package/numerictextbox/arrow-direction.d.ts +12 -0
  218. package/numerictextbox/constants.d.ts +28 -0
  219. package/numerictextbox/localization/custom-messages.component.d.ts +17 -0
  220. package/numerictextbox/localization/localized-numerictextbox-messages.directive.d.ts +16 -0
  221. package/numerictextbox/localization/messages.d.ts +21 -0
  222. package/numerictextbox/numerictextbox.component.d.ts +364 -0
  223. package/numerictextbox/utils.d.ts +44 -0
  224. package/numerictextbox.module.d.ts +47 -0
  225. package/package-metadata.d.ts +9 -0
  226. package/package.json +74 -0
  227. package/progress-kendo-angular-inputs.d.ts +9 -0
  228. package/radiobutton/radiobutton.directive.d.ts +38 -0
  229. package/radiobutton.module.d.ts +43 -0
  230. package/rangeslider/localization/custom-messages.component.d.ts +17 -0
  231. package/rangeslider/localization/localized-rangeslider-messages.directive.d.ts +16 -0
  232. package/rangeslider/localization/messages.d.ts +21 -0
  233. package/rangeslider/rangeslider-model.d.ts +15 -0
  234. package/rangeslider/rangeslider-value.type.d.ts +9 -0
  235. package/rangeslider/rangeslider.component.d.ts +139 -0
  236. package/rangeslider.module.d.ts +48 -0
  237. package/schematics/collection.json +12 -0
  238. package/schematics/ngAdd/index.js +11 -0
  239. package/schematics/ngAdd/schema.json +28 -0
  240. package/shared/input-separator.component.d.ts +28 -0
  241. package/shared/textarea.directive.d.ts +99 -0
  242. package/shared/utils.d.ts +10 -0
  243. package/shared.module.d.ts +19 -0
  244. package/signature/events/close-event.d.ts +10 -0
  245. package/signature/events/index.d.ts +6 -0
  246. package/signature/events/open-event.d.ts +10 -0
  247. package/signature/localization/custom-messages.component.d.ts +17 -0
  248. package/signature/localization/index.d.ts +7 -0
  249. package/signature/localization/localized-signature-messages.directive.d.ts +16 -0
  250. package/signature/localization/messages.d.ts +29 -0
  251. package/signature/signature.component.d.ts +364 -0
  252. package/signature.module.d.ts +48 -0
  253. package/slider/localization/custom-messages.component.d.ts +17 -0
  254. package/slider/localization/localized-slider-messages.directive.d.ts +16 -0
  255. package/slider/localization/messages.d.ts +25 -0
  256. package/slider/slider-model.d.ts +14 -0
  257. package/slider/slider.component.d.ts +175 -0
  258. package/slider.module.d.ts +50 -0
  259. package/sliders-common/label-template.directive.d.ts +36 -0
  260. package/sliders-common/slider-base.d.ts +141 -0
  261. package/sliders-common/slider-model.base.d.ts +26 -0
  262. package/sliders-common/slider-ticks.component.d.ts +26 -0
  263. package/sliders-common/sliders-common.module.d.ts +17 -0
  264. package/sliders-common/sliders-util.d.ts +119 -0
  265. package/sliders-common/title-callback.d.ts +10 -0
  266. package/switch/events/blur-event.d.ts +13 -0
  267. package/switch/events/focus-event.d.ts +13 -0
  268. package/switch/localization/custom-messages.component.d.ts +17 -0
  269. package/switch/localization/localized-switch-messages.directive.d.ts +16 -0
  270. package/switch/localization/messages.d.ts +21 -0
  271. package/switch/switch.component.d.ts +216 -0
  272. package/switch.module.d.ts +46 -0
  273. package/text-fields-common/text-fields-base.d.ts +91 -0
  274. package/textarea/models/flow.d.ts +12 -0
  275. package/textarea/models/resize.d.ts +16 -0
  276. package/textarea/textarea-suffix.component.d.ts +26 -0
  277. package/textarea/textarea.component.d.ts +225 -0
  278. package/textarea.module.d.ts +48 -0
  279. package/textbox/localization/custom-messages.component.d.ts +17 -0
  280. package/textbox/localization/localized-textbox-messages.directive.d.ts +16 -0
  281. package/textbox/localization/messages.d.ts +17 -0
  282. package/textbox/models/icon-show-options.d.ts +13 -0
  283. package/textbox/textbox-prefix.directive.d.ts +29 -0
  284. package/textbox/textbox-suffix.directive.d.ts +28 -0
  285. package/textbox/textbox.component.d.ts +376 -0
  286. package/textbox/textbox.directive.d.ts +59 -0
  287. package/textbox.module.d.ts +53 -0
  288. package/validators/max.validator.d.ts +8 -0
  289. package/validators/min.validator.d.ts +8 -0
@@ -0,0 +1,40 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * @hidden
7
+ */
8
+ export const DEFAULT_OUTPUT_FORMAT = 'rgba';
9
+ /**
10
+ * @hidden
11
+ */
12
+ export const DEFAULT_GRADIENT_BACKGROUND_COLOR = 'rgba(255, 0, 0, 1)';
13
+ /**
14
+ * @hidden
15
+ */
16
+ export const DRAGHANDLE_MOVE_SPEED = 5;
17
+ /**
18
+ * @hidden
19
+ */
20
+ export const DRAGHANDLE_MOVE_SPEED_SMALL_STEP = 2;
21
+ /**
22
+ * @hidden
23
+ */
24
+ export const AAA_RATIO = 7.0;
25
+ /**
26
+ * @hidden
27
+ */
28
+ export const AA_RATIO = 4.5;
29
+ /**
30
+ * @hidden
31
+ */
32
+ export const DEFAULT_PRESET = 'office';
33
+ /**
34
+ * @hidden
35
+ */
36
+ export const DEFAULT_ACCESSIBLE_PRESET = 'accessible';
37
+ /**
38
+ * @hidden
39
+ */
40
+ export const STEP_COUNT = 16;
@@ -0,0 +1,72 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { AA_RATIO, AAA_RATIO } from './constants';
6
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
7
+ import { Component, Input } from '@angular/core';
8
+ import { checkIcon, xCircleIcon } from '@progress/kendo-svg-icons';
9
+ import * as i0 from "@angular/core";
10
+ import * as i1 from "@progress/kendo-angular-l10n";
11
+ import * as i2 from "@progress/kendo-angular-icons";
12
+ import * as i3 from "@angular/common";
13
+ /**
14
+ * @hidden
15
+ */
16
+ export class ContrastValidationComponent {
17
+ constructor(localization) {
18
+ this.localization = localization;
19
+ this.checkIcon = checkIcon;
20
+ this.xCircleIcon = xCircleIcon;
21
+ }
22
+ get passMessage() {
23
+ return this.localization.get('passContrast');
24
+ }
25
+ get failMessage() {
26
+ return this.localization.get('failContrast');
27
+ }
28
+ get contrastText() {
29
+ const ratio = this.type === 'AA' ? AA_RATIO : AAA_RATIO;
30
+ return `${this.type}: ${ratio.toFixed(1)}`;
31
+ }
32
+ }
33
+ ContrastValidationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ContrastValidationComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
34
+ ContrastValidationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ContrastValidationComponent, selector: "[kendoContrastValidation]", inputs: { type: "type", pass: "pass", value: "value" }, ngImport: i0, template: `
35
+ <span>{{contrastText}}</span>
36
+ <ng-container *ngIf="value">
37
+ <span class="k-contrast-validation k-text-success" *ngIf="pass">
38
+ {{passMessage}}
39
+ <kendo-icon-wrapper name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
40
+ </span>
41
+ <span class="k-contrast-validation k-text-error" *ngIf="!pass">
42
+ {{failMessage}}
43
+ <kendo-icon-wrapper name="x" [svgIcon]="xCircleIcon"></kendo-icon-wrapper>
44
+ </span>
45
+ </ng-container>
46
+ `, isInline: true, components: [{ type: i2.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
47
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ContrastValidationComponent, decorators: [{
48
+ type: Component,
49
+ args: [{
50
+ // eslint-disable-next-line @angular-eslint/component-selector
51
+ selector: '[kendoContrastValidation]',
52
+ template: `
53
+ <span>{{contrastText}}</span>
54
+ <ng-container *ngIf="value">
55
+ <span class="k-contrast-validation k-text-success" *ngIf="pass">
56
+ {{passMessage}}
57
+ <kendo-icon-wrapper name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
58
+ </span>
59
+ <span class="k-contrast-validation k-text-error" *ngIf="!pass">
60
+ {{failMessage}}
61
+ <kendo-icon-wrapper name="x" [svgIcon]="xCircleIcon"></kendo-icon-wrapper>
62
+ </span>
63
+ </ng-container>
64
+ `
65
+ }]
66
+ }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; }, propDecorators: { type: [{
67
+ type: Input
68
+ }], pass: [{
69
+ type: Input
70
+ }], value: [{
71
+ type: Input
72
+ }] } });
@@ -0,0 +1,100 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 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, Input } from '@angular/core';
6
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
7
+ import { getContrastFromTwoRGBAs, getRGBA } from './utils';
8
+ import { AA_RATIO, AAA_RATIO } from './constants';
9
+ import { checkIcon, xCircleIcon } from '@progress/kendo-svg-icons';
10
+ import * as i0 from "@angular/core";
11
+ import * as i1 from "@progress/kendo-angular-l10n";
12
+ import * as i2 from "@progress/kendo-angular-icons";
13
+ import * as i3 from "./contrast-validation.component";
14
+ import * as i4 from "@angular/common";
15
+ /**
16
+ * @hidden
17
+ */
18
+ export class ContrastComponent {
19
+ constructor(localization) {
20
+ this.localization = localization;
21
+ this.checkIcon = checkIcon;
22
+ this.xCircleIcon = xCircleIcon;
23
+ }
24
+ get formatedRatio() {
25
+ return this.contrastRatio.toFixed(2);
26
+ }
27
+ get contrastRatioText() {
28
+ return `${this.localization.get('contrastRatio')}: ${this.value ? this.formatedRatio : 'n/a'}`;
29
+ }
30
+ get satisfiesAACondition() {
31
+ return this.contrastRatio >= AA_RATIO;
32
+ }
33
+ get satisfiesAAACondition() {
34
+ return this.contrastRatio >= AAA_RATIO;
35
+ }
36
+ get contrastRatio() {
37
+ const contrast = getContrastFromTwoRGBAs(getRGBA(this.value), getRGBA(this.ratio));
38
+ return contrast;
39
+ }
40
+ }
41
+ ContrastComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ContrastComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
42
+ ContrastComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ContrastComponent, selector: "[kendoContrastTool]", inputs: { value: "value", ratio: "ratio" }, ngImport: i0, template: `
43
+ <div class="k-contrast-ratio">
44
+ <span class="k-contrast-ratio-text">{{contrastRatioText}}</span>
45
+ <ng-container *ngIf="value">
46
+ <span class="k-contrast-validation k-text-success" *ngIf="satisfiesAACondition">
47
+ <kendo-icon-wrapper name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
48
+ <kendo-icon-wrapper *ngIf="satisfiesAAACondition" name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
49
+ </span>
50
+ <span class="k-contrast-validation k-text-error" *ngIf="!satisfiesAACondition">
51
+ <kendo-icon-wrapper name="x" [svgIcon]="xCircleIcon"></kendo-icon-wrapper>
52
+ </span>
53
+ </ng-container>
54
+ </div>
55
+ <div kendoContrastValidation
56
+ type="AA"
57
+ [value]="value"
58
+ [pass]="satisfiesAACondition">
59
+ </div>
60
+ <div kendoContrastValidation
61
+ type="AAA"
62
+ [value]="value"
63
+ [pass]="satisfiesAAACondition">
64
+ </div>
65
+ `, isInline: true, components: [{ type: i2.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { type: i3.ContrastValidationComponent, selector: "[kendoContrastValidation]", inputs: ["type", "pass", "value"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
66
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ContrastComponent, decorators: [{
67
+ type: Component,
68
+ args: [{
69
+ // eslint-disable-next-line @angular-eslint/component-selector
70
+ selector: '[kendoContrastTool]',
71
+ template: `
72
+ <div class="k-contrast-ratio">
73
+ <span class="k-contrast-ratio-text">{{contrastRatioText}}</span>
74
+ <ng-container *ngIf="value">
75
+ <span class="k-contrast-validation k-text-success" *ngIf="satisfiesAACondition">
76
+ <kendo-icon-wrapper name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
77
+ <kendo-icon-wrapper *ngIf="satisfiesAAACondition" name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
78
+ </span>
79
+ <span class="k-contrast-validation k-text-error" *ngIf="!satisfiesAACondition">
80
+ <kendo-icon-wrapper name="x" [svgIcon]="xCircleIcon"></kendo-icon-wrapper>
81
+ </span>
82
+ </ng-container>
83
+ </div>
84
+ <div kendoContrastValidation
85
+ type="AA"
86
+ [value]="value"
87
+ [pass]="satisfiesAACondition">
88
+ </div>
89
+ <div kendoContrastValidation
90
+ type="AAA"
91
+ [value]="value"
92
+ [pass]="satisfiesAAACondition">
93
+ </div>
94
+ `
95
+ }]
96
+ }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; }, propDecorators: { value: [{
97
+ type: Input
98
+ }], ratio: [{
99
+ type: Input
100
+ }] } });
@@ -0,0 +1,58 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * Fires each time the left side of the ColorPicker wrapper is clicked.
7
+ * The event is triggered regardless of whether a ColorPicker icon is set or not.
8
+ *
9
+ * Provides information about the current active color and gives the option to prevent the opening of the popup.
10
+ *
11
+ * @example
12
+ *
13
+ * ```ts-no-run
14
+ * _@Component({
15
+ * selector: 'my-app',
16
+ * template: `
17
+ * <kendo-colorpicker
18
+ * [icon]="'edit-tools'"
19
+ * [value]="'#900'"
20
+ * (activeColorClick)="handleActiveColorClick($event)"
21
+ * >
22
+ * </kendo-colorpicker>
23
+ * `
24
+ * })
25
+ * class AppComponent {
26
+ * public handleActiveColorClick(event: ActiveColorClickEvent): void {
27
+ * event.preventOpen();
28
+ *
29
+ * console.log('Open prevented:', event.isOpenPrevented());
30
+ * console.log('Current color:', event.color);
31
+ * }
32
+ * }
33
+ * ```
34
+ */
35
+ export class ActiveColorClickEvent {
36
+ /**
37
+ * @hidden
38
+ * @param color Represents the current value of the ColorPicker.
39
+ */
40
+ constructor(color) {
41
+ this.color = color;
42
+ this.openPrevented = false;
43
+ }
44
+ /**
45
+ * Prevents the opening of the popup.
46
+ */
47
+ preventOpen() {
48
+ this.openPrevented = true;
49
+ }
50
+ /**
51
+ * Returns `true` if the popup opening is prevented by any of its subscribers.
52
+ *
53
+ * @returns - Returns `true` if the open action was prevented. Otherwise, returns `false`.
54
+ */
55
+ isOpenPrevented() {
56
+ return this.openPrevented;
57
+ }
58
+ }
@@ -0,0 +1,14 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { PreventableEvent } from "@progress/kendo-angular-common";
6
+ /**
7
+ * Arguments for the `cancel` event of the ColorPicker and FlatColorPicker components.
8
+ */
9
+ export class ColorPickerCancelEvent extends PreventableEvent {
10
+ constructor(originalEvent) {
11
+ super();
12
+ this.originalEvent = originalEvent;
13
+ }
14
+ }
@@ -0,0 +1,10 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { PreventableEvent } from "@progress/kendo-angular-common";
6
+ /**
7
+ * Arguments for the `close` event of the ColorPicker component.
8
+ */
9
+ export class ColorPickerCloseEvent extends PreventableEvent {
10
+ }
@@ -0,0 +1,5 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ export {};
@@ -0,0 +1,10 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { PreventableEvent } from "@progress/kendo-angular-common";
6
+ /**
7
+ * Arguments for the `open` event of the ColorPicker component.
8
+ */
9
+ export class ColorPickerOpenEvent extends PreventableEvent {
10
+ }
@@ -0,0 +1,8 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ export * from './events/cancel-event';
6
+ export * from './events/close-event';
7
+ export * from './events/open-event';
8
+ export * from './events/active-color-click-event';
@@ -0,0 +1,93 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 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, EventEmitter, Output, ElementRef, ViewChild, Input } from '@angular/core';
6
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
7
+ import * as i0 from "@angular/core";
8
+ import * as i1 from "@progress/kendo-angular-l10n";
9
+ /**
10
+ * @hidden
11
+ */
12
+ export class FlatColorPickerActionButtonsComponent {
13
+ constructor(localizationService) {
14
+ this.localizationService = localizationService;
15
+ this.hostClasses = true;
16
+ this.innerTabIndex = -1;
17
+ this.actionButtonClick = new EventEmitter();
18
+ this.tabOut = new EventEmitter();
19
+ }
20
+ getText(text) {
21
+ return this.localizationService.get(text);
22
+ }
23
+ onActionButtonClick(type, ev) {
24
+ const args = {
25
+ target: type,
26
+ originalEvent: ev
27
+ };
28
+ this.actionButtonClick.emit(args);
29
+ }
30
+ }
31
+ FlatColorPickerActionButtonsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FlatColorPickerActionButtonsComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
32
+ FlatColorPickerActionButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: FlatColorPickerActionButtonsComponent, selector: "[kendoFlatColorPickerActionButtons]", inputs: { innerTabIndex: "innerTabIndex" }, outputs: { actionButtonClick: "actionButtonClick", tabOut: "tabOut" }, host: { properties: { "class.k-coloreditor-footer": "this.hostClasses", "class.k-actions": "this.hostClasses", "class.k-actions-horizontal": "this.hostClasses" } }, viewQueries: [{ propertyName: "firstButton", first: true, predicate: ["first"], descendants: true, read: ElementRef }, { propertyName: "lastButton", first: true, predicate: ["last"], descendants: true, read: ElementRef }], ngImport: i0, template: `
33
+ <button #first
34
+ class="k-coloreditor-cancel k-button k-button-md k-button-solid k-button-solid-base"
35
+ [attr.title]="getText('cancelButton')"
36
+ (click)="onActionButtonClick('cancel', $event)"
37
+ type="button"
38
+ [tabindex]="innerTabIndex.toString()"
39
+ >{{getText('cancelButton')}}</button>
40
+ <button #last
41
+ class="k-coloreditor-apply k-button k-button-md k-button-solid k-button-solid-primary"
42
+ [attr.title]="getText('applyButton')"
43
+ (click)="onActionButtonClick('apply', $event)"
44
+ type="button"
45
+ [tabindex]="innerTabIndex.toString()"
46
+ (keydown.tab)="$event.preventDefault(); tabOut.emit();"
47
+ >{{getText('applyButton')}}</button>
48
+ `, isInline: true });
49
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FlatColorPickerActionButtonsComponent, decorators: [{
50
+ type: Component,
51
+ args: [{
52
+ // eslint-disable-next-line @angular-eslint/component-selector
53
+ selector: '[kendoFlatColorPickerActionButtons]',
54
+ template: `
55
+ <button #first
56
+ class="k-coloreditor-cancel k-button k-button-md k-button-solid k-button-solid-base"
57
+ [attr.title]="getText('cancelButton')"
58
+ (click)="onActionButtonClick('cancel', $event)"
59
+ type="button"
60
+ [tabindex]="innerTabIndex.toString()"
61
+ >{{getText('cancelButton')}}</button>
62
+ <button #last
63
+ class="k-coloreditor-apply k-button k-button-md k-button-solid k-button-solid-primary"
64
+ [attr.title]="getText('applyButton')"
65
+ (click)="onActionButtonClick('apply', $event)"
66
+ type="button"
67
+ [tabindex]="innerTabIndex.toString()"
68
+ (keydown.tab)="$event.preventDefault(); tabOut.emit();"
69
+ >{{getText('applyButton')}}</button>
70
+ `
71
+ }]
72
+ }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; }, propDecorators: { hostClasses: [{
73
+ type: HostBinding,
74
+ args: ['class.k-coloreditor-footer']
75
+ }, {
76
+ type: HostBinding,
77
+ args: ['class.k-actions']
78
+ }, {
79
+ type: HostBinding,
80
+ args: ['class.k-actions-horizontal']
81
+ }], innerTabIndex: [{
82
+ type: Input
83
+ }], actionButtonClick: [{
84
+ type: Output
85
+ }], tabOut: [{
86
+ type: Output
87
+ }], firstButton: [{
88
+ type: ViewChild,
89
+ args: ['first', { read: ElementRef }]
90
+ }], lastButton: [{
91
+ type: ViewChild,
92
+ args: ['last', { read: ElementRef }]
93
+ }] } });
@@ -0,0 +1,217 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /* eslint-disable @typescript-eslint/no-explicit-any */
6
+ import { Component, HostBinding, Input, Output, EventEmitter, ViewChild, ViewChildren, QueryList, ElementRef, Renderer2 } from '@angular/core';
7
+ import { dropletSlashIcon, dropletSliderIcon, paletteIcon } from '@progress/kendo-svg-icons';
8
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
9
+ import * as i0 from "@angular/core";
10
+ import * as i1 from "@progress/kendo-angular-l10n";
11
+ import * as i2 from "@progress/kendo-angular-buttons";
12
+ import * as i3 from "@angular/common";
13
+ /**
14
+ * @hidden
15
+ */
16
+ export class FlatColorPickerHeaderComponent {
17
+ constructor(localizationService, renderer) {
18
+ this.localizationService = localizationService;
19
+ this.renderer = renderer;
20
+ this.hostClasses = true;
21
+ this.innerTabIndex = -1;
22
+ this.viewChange = new EventEmitter();
23
+ this.valuePaneClick = new EventEmitter();
24
+ this.clearButtonClick = new EventEmitter();
25
+ this.tabOut = new EventEmitter();
26
+ this.dropletSliderIcon = dropletSliderIcon;
27
+ this.paletteIcon = paletteIcon;
28
+ this.dropletSlashIcon = dropletSlashIcon;
29
+ }
30
+ ngAfterViewInit() {
31
+ if (this.viewButtonsCollection.length > 0) {
32
+ this.viewButtonsCollection.forEach((button) => {
33
+ const buttonElem = button.nativeElement;
34
+ const isViewActive = buttonElem.getAttribute('aria-pressed') === 'true';
35
+ if (isViewActive) {
36
+ this.renderer.addClass(buttonElem, 'k-selected');
37
+ }
38
+ });
39
+ }
40
+ }
41
+ onViewButtonClick(view) {
42
+ this.activeView = view;
43
+ this.viewChange.emit(view);
44
+ }
45
+ get viewButtons() {
46
+ return this.views && this.views.indexOf('gradient') >= 0 && this.views.indexOf('palette') >= 0;
47
+ }
48
+ getViewButtonIcon(view) {
49
+ return view === 'gradient' ? 'color-canvas' : 'palette';
50
+ }
51
+ getViewButtonsSVGIcon(view) {
52
+ return view === 'gradient' ? this.dropletSliderIcon : this.paletteIcon;
53
+ }
54
+ getText(text) {
55
+ return this.localizationService.get(text);
56
+ }
57
+ onHeaderTabOut(ev, index) {
58
+ if (index === 0) {
59
+ ev.preventDefault();
60
+ this.tabOut.emit(ev);
61
+ }
62
+ }
63
+ }
64
+ FlatColorPickerHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FlatColorPickerHeaderComponent, deps: [{ token: i1.LocalizationService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
65
+ FlatColorPickerHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: FlatColorPickerHeaderComponent, selector: "[kendoFlatColorPickerHeader]", inputs: { clearButton: "clearButton", activeView: "activeView", views: "views", preview: "preview", innerTabIndex: "innerTabIndex", value: "value", selection: "selection" }, outputs: { viewChange: "viewChange", valuePaneClick: "valuePaneClick", clearButtonClick: "clearButtonClick", tabOut: "tabOut" }, host: { properties: { "class.k-coloreditor-header": "this.hostClasses", "class.k-hstack": "this.hostClasses" } }, viewQueries: [{ propertyName: "clearButtonElement", first: true, predicate: ["clearButton"], descendants: true, read: ElementRef }, { propertyName: "viewButtonsCollection", predicate: ["viewButtons"], descendants: true, read: ElementRef }], ngImport: i0, template: `
66
+ <div class="k-coloreditor-header-actions k-hstack">
67
+ <div
68
+ *ngIf="viewButtons"
69
+ class="k-button-group k-button-group-flat"
70
+ role="group"
71
+ >
72
+ <button
73
+ *ngFor="let view of views; let i = index;"
74
+ kendoButton
75
+ type="button"
76
+ #viewButtons
77
+ fillMode="flat"
78
+ [tabindex]="innerTabIndex.toString()"
79
+ (click)="onViewButtonClick(view)"
80
+ [icon]="getViewButtonIcon(view)"
81
+ [svgIcon]="getViewButtonsSVGIcon(view)"
82
+ (keydown.shift.tab)="onHeaderTabOut($event, i)"
83
+ class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button"
84
+ [attr.title]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
85
+ [attr.aria-label]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
86
+ [attr.aria-pressed]="activeView === view"
87
+ [ngClass]="activeView === view ? 'k-selected' : ''">
88
+ </button>
89
+ </div>
90
+ </div>
91
+ <div class="k-spacer"></div>
92
+ <div class="k-coloreditor-header-actions k-hstack">
93
+ <button
94
+ kendoButton
95
+ type="button"
96
+ [tabindex]="innerTabIndex.toString()"
97
+ *ngIf="clearButton"
98
+ #clearButton
99
+ fillMode="flat"
100
+ icon="reset-color"
101
+ [svgIcon]="dropletSlashIcon"
102
+ class="k-coloreditor-reset"
103
+ [attr.aria-label]="getText('clearButton')"
104
+ [attr.title]="getText('clearButton')"
105
+ (click)="clearButtonClick.emit()">
106
+ </button>
107
+ <div class="k-coloreditor-preview k-vstack" *ngIf="preview" aria-hidden="true">
108
+ <span
109
+ class="k-coloreditor-preview-color k-color-preview"
110
+ [attr.title]="getText('previewColor')"
111
+ [style.background-color]="selection">
112
+ </span>
113
+ <span class="k-coloreditor-current-color k-color-preview"
114
+ [style.background-color]="value"
115
+ [attr.title]="getText('revertSelection')"
116
+ (click)="valuePaneClick.emit($event)">
117
+ </span>
118
+ </div>
119
+ </div>
120
+ `, isInline: true, components: [{ type: i2.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
121
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FlatColorPickerHeaderComponent, decorators: [{
122
+ type: Component,
123
+ args: [{
124
+ // eslint-disable-next-line @angular-eslint/component-selector
125
+ selector: '[kendoFlatColorPickerHeader]',
126
+ template: `
127
+ <div class="k-coloreditor-header-actions k-hstack">
128
+ <div
129
+ *ngIf="viewButtons"
130
+ class="k-button-group k-button-group-flat"
131
+ role="group"
132
+ >
133
+ <button
134
+ *ngFor="let view of views; let i = index;"
135
+ kendoButton
136
+ type="button"
137
+ #viewButtons
138
+ fillMode="flat"
139
+ [tabindex]="innerTabIndex.toString()"
140
+ (click)="onViewButtonClick(view)"
141
+ [icon]="getViewButtonIcon(view)"
142
+ [svgIcon]="getViewButtonsSVGIcon(view)"
143
+ (keydown.shift.tab)="onHeaderTabOut($event, i)"
144
+ class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button"
145
+ [attr.title]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
146
+ [attr.aria-label]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
147
+ [attr.aria-pressed]="activeView === view"
148
+ [ngClass]="activeView === view ? 'k-selected' : ''">
149
+ </button>
150
+ </div>
151
+ </div>
152
+ <div class="k-spacer"></div>
153
+ <div class="k-coloreditor-header-actions k-hstack">
154
+ <button
155
+ kendoButton
156
+ type="button"
157
+ [tabindex]="innerTabIndex.toString()"
158
+ *ngIf="clearButton"
159
+ #clearButton
160
+ fillMode="flat"
161
+ icon="reset-color"
162
+ [svgIcon]="dropletSlashIcon"
163
+ class="k-coloreditor-reset"
164
+ [attr.aria-label]="getText('clearButton')"
165
+ [attr.title]="getText('clearButton')"
166
+ (click)="clearButtonClick.emit()">
167
+ </button>
168
+ <div class="k-coloreditor-preview k-vstack" *ngIf="preview" aria-hidden="true">
169
+ <span
170
+ class="k-coloreditor-preview-color k-color-preview"
171
+ [attr.title]="getText('previewColor')"
172
+ [style.background-color]="selection">
173
+ </span>
174
+ <span class="k-coloreditor-current-color k-color-preview"
175
+ [style.background-color]="value"
176
+ [attr.title]="getText('revertSelection')"
177
+ (click)="valuePaneClick.emit($event)">
178
+ </span>
179
+ </div>
180
+ </div>
181
+ `
182
+ }]
183
+ }], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i0.Renderer2 }]; }, propDecorators: { hostClasses: [{
184
+ type: HostBinding,
185
+ args: ['class.k-coloreditor-header']
186
+ }, {
187
+ type: HostBinding,
188
+ args: ['class.k-hstack']
189
+ }], clearButton: [{
190
+ type: Input
191
+ }], activeView: [{
192
+ type: Input
193
+ }], views: [{
194
+ type: Input
195
+ }], preview: [{
196
+ type: Input
197
+ }], innerTabIndex: [{
198
+ type: Input
199
+ }], value: [{
200
+ type: Input
201
+ }], selection: [{
202
+ type: Input
203
+ }], viewChange: [{
204
+ type: Output
205
+ }], valuePaneClick: [{
206
+ type: Output
207
+ }], clearButtonClick: [{
208
+ type: Output
209
+ }], tabOut: [{
210
+ type: Output
211
+ }], viewButtonsCollection: [{
212
+ type: ViewChildren,
213
+ args: ['viewButtons', { read: ElementRef }]
214
+ }], clearButtonElement: [{
215
+ type: ViewChild,
216
+ args: ['clearButton', { read: ElementRef }]
217
+ }] } });