@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,95 @@
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 { OnChanges, SimpleChanges, EventEmitter, ElementRef, AfterViewInit, Renderer2 } from '@angular/core';
6
+ import { RGBA } from './models';
7
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
8
+ import { NumericTextBoxComponent } from './../numerictextbox/numerictextbox.component';
9
+ import { SVGIcon } from '@progress/kendo-svg-icons';
10
+ import * as i0 from "@angular/core";
11
+ /**
12
+ * @hidden
13
+ */
14
+ export declare class ColorInputComponent implements AfterViewInit, OnChanges {
15
+ private host;
16
+ private renderer;
17
+ localizationService: LocalizationService;
18
+ /**
19
+ * The id of the hex input.
20
+ */
21
+ focusableId: string;
22
+ /**
23
+ * The color format view.
24
+ */
25
+ formatView: string;
26
+ /**
27
+ * The inputs tabindex.
28
+ */
29
+ tabindex: number;
30
+ /**
31
+ * The color value that will be parsed and populate the hex & rgba inputs.
32
+ * Required input property.
33
+ */
34
+ value: string;
35
+ /**
36
+ * Sets whether the alpha slider will be shown.
37
+ */
38
+ opacity: boolean;
39
+ /**
40
+ * Sets the disabled state of the ColorInput.
41
+ */
42
+ disabled: boolean;
43
+ /**
44
+ * Sets the read-only state of the ColorInput.
45
+ */
46
+ readonly: boolean;
47
+ /**
48
+ * Emits a parsed rgba string color.
49
+ */
50
+ valueChange: EventEmitter<string>;
51
+ /**
52
+ * Emits when the user tabs out of the last focusable input.
53
+ */
54
+ tabOut: EventEmitter<any>;
55
+ colorInputClass: boolean;
56
+ opacityInput: NumericTextBoxComponent;
57
+ hexInput: ElementRef;
58
+ blueInput: NumericTextBoxComponent;
59
+ toggleFormatButton: ElementRef;
60
+ /**
61
+ * The rgba inputs values.
62
+ */
63
+ rgba: RGBA;
64
+ hex: string;
65
+ /**
66
+ * Indicates whether any of the inputs are focused.
67
+ */
68
+ private get isFocused();
69
+ /**
70
+ * Indicates whether any of the rgba inputs have value.
71
+ */
72
+ private get rgbaInputValid();
73
+ /**
74
+ * @hidden
75
+ */
76
+ caretAltExpandIcon: SVGIcon;
77
+ private subscriptions;
78
+ constructor(host: ElementRef, renderer: Renderer2, localizationService: LocalizationService);
79
+ ngAfterViewInit(): void;
80
+ ngOnDestroy(): void;
81
+ ngOnChanges(changes: SimpleChanges): void;
82
+ get formatButtonTitle(): string;
83
+ handleRgbaValueChange(): void;
84
+ focusDragHandle(event: any): void;
85
+ handleHexValueChange(hex: string): void;
86
+ handleRgbaInputBlur(): void;
87
+ handleHexInputBlur(): void;
88
+ focusLast(): void;
89
+ onTab(): void;
90
+ private toggleFormatView;
91
+ private initDomEvents;
92
+ private lastInput;
93
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorInputComponent, never>;
94
+ static ɵcmp: i0.ɵɵComponentDeclaration<ColorInputComponent, "kendo-colorinput", never, { "focusableId": "focusableId"; "formatView": "formatView"; "tabindex": "tabindex"; "value": "value"; "opacity": "opacity"; "disabled": "disabled"; "readonly": "readonly"; }, { "valueChange": "valueChange"; "tabOut": "tabOut"; }, never, never>;
95
+ }
@@ -0,0 +1,221 @@
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 { OnInit, EventEmitter, SimpleChanges, OnChanges, OnDestroy, ChangeDetectorRef, Renderer2, ElementRef, AfterViewInit, NgZone } from '@angular/core';
6
+ import { ControlValueAccessor } from '@angular/forms';
7
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
8
+ import { TileSize, OutputFormat, TableCell } from './models';
9
+ import { ColorPaletteService } from './services/color-palette.service';
10
+ import * as i0 from "@angular/core";
11
+ /**
12
+ * The ColorPalette component provides a set of predefined palette presets and enables you to implement a custom color palette.
13
+ * The ColorPalette is independently used by `kendo-colorpicker` and can be directly added to the page.
14
+ */
15
+ export declare class ColorPaletteComponent implements OnInit, AfterViewInit, OnDestroy, OnChanges, ControlValueAccessor {
16
+ host: ElementRef;
17
+ private service;
18
+ private cdr;
19
+ private renderer;
20
+ private localizationService;
21
+ private ngZone;
22
+ /**
23
+ * @hidden
24
+ */
25
+ direction: string;
26
+ /**
27
+ * @hidden
28
+ */
29
+ role: string;
30
+ /**
31
+ * @hidden
32
+ */
33
+ get activeDescendant(): string;
34
+ /**
35
+ * @hidden
36
+ */
37
+ get paletteId(): string;
38
+ /**
39
+ * @hidden
40
+ */
41
+ id: string;
42
+ /**
43
+ * Specifies the output format of the ColorPaletteComponent.
44
+ * The input value may be in a different format. However, it will be parsed into the output `format`
45
+ * after the component processes it.
46
+ *
47
+ * The supported values are:
48
+ * * (Default) `hex`
49
+ * * `rgba`
50
+ * * `name`
51
+ */
52
+ format: OutputFormat;
53
+ /**
54
+ * Specifies the value of the initially selected color.
55
+ */
56
+ set value(value: string);
57
+ get value(): string;
58
+ /**
59
+ * Specifies the number of columns that will be displayed.
60
+ * Defaults to `10`.
61
+ */
62
+ set columns(value: number);
63
+ get columns(): number;
64
+ /**
65
+ * The color palette that will be displayed.
66
+ *
67
+ * The supported values are:
68
+ * * The name of the predefined palette preset (for example, `office`, `basic`, and `apex`).
69
+ * * A string with comma-separated colors.
70
+ * * A string array.
71
+ */
72
+ set palette(value: string | Array<string>);
73
+ get palette(): string | Array<string>;
74
+ /**
75
+ * Specifies the [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
76
+ */
77
+ set tabindex(value: number);
78
+ get tabindex(): number;
79
+ /**
80
+ * Sets the disabled state of the ColorPalette.
81
+ */
82
+ disabled: boolean;
83
+ /**
84
+ * Sets the read-only state of the ColorPalette.
85
+ */
86
+ readonly: boolean;
87
+ /**
88
+ * Specifies the size of a color cell.
89
+ *
90
+ * The possible values are:
91
+ * * (Default) `tileSize = 24`
92
+ * * `{ width: number, height: number }`
93
+ */
94
+ tileSize: number | TileSize;
95
+ /**
96
+ * @hidden
97
+ */
98
+ get tileLayout(): TileSize;
99
+ /**
100
+ * Fires each time the color selection is changed.
101
+ */
102
+ selectionChange: EventEmitter<string>;
103
+ /**
104
+ * Fires each time the value is changed.
105
+ */
106
+ valueChange: EventEmitter<string>;
107
+ /**
108
+ * Fires each time the user selects a cell with the mouse or presses `Enter`.
109
+ *
110
+ * @hidden
111
+ */
112
+ cellSelection: EventEmitter<string>;
113
+ /**
114
+ * @hidden
115
+ */
116
+ get colorRows(): string[][];
117
+ /**
118
+ * @hidden
119
+ */
120
+ get hostTabindex(): number;
121
+ /**
122
+ * @hidden
123
+ */
124
+ hostClasses: boolean;
125
+ /**
126
+ * @hidden
127
+ */
128
+ get disabledClass(): boolean;
129
+ /**
130
+ * @hidden
131
+ */
132
+ get readonlyAttribute(): boolean;
133
+ /**
134
+ * @hidden
135
+ */
136
+ activeCellId: string;
137
+ /**
138
+ * @hidden
139
+ */
140
+ focusedCell: TableCell;
141
+ /**
142
+ * @hidden
143
+ */
144
+ selectedCell: TableCell;
145
+ /**
146
+ * @hidden
147
+ */
148
+ focusInComponent: boolean;
149
+ /**
150
+ * @hidden
151
+ */
152
+ uniqueId: string;
153
+ private selection;
154
+ private _value;
155
+ private _columns;
156
+ private _palette;
157
+ private _tabindex;
158
+ private subs;
159
+ private dynamicRTLSubscription;
160
+ constructor(host: ElementRef, service: ColorPaletteService, cdr: ChangeDetectorRef, renderer: Renderer2, localizationService: LocalizationService, ngZone: NgZone);
161
+ ngOnInit(): void;
162
+ ngAfterViewInit(): void;
163
+ ngOnDestroy(): void;
164
+ ngOnChanges(changes: SimpleChanges): void;
165
+ /**
166
+ * @hidden
167
+ */
168
+ handleKeydown(event: any): void;
169
+ /**
170
+ * @hidden
171
+ */
172
+ handleFocus(): void;
173
+ /**
174
+ * @hidden
175
+ */
176
+ handleHostBlur(): void;
177
+ /**
178
+ * @hidden
179
+ */
180
+ handleCellSelection(value: string, focusedCell?: TableCell): void;
181
+ /**
182
+ * @hidden
183
+ */
184
+ writeValue(value: string): void;
185
+ /**
186
+ * @hidden
187
+ */
188
+ registerOnChange(fn: any): void;
189
+ /**
190
+ * @hidden
191
+ */
192
+ registerOnTouched(fn: any): void;
193
+ /**
194
+ * @hidden
195
+ */
196
+ setDisabledState(isDisabled: boolean): void;
197
+ /**
198
+ * @hidden
199
+ */
200
+ focus(): void;
201
+ /**
202
+ * @hidden
203
+ * Used by the FloatingLabel to determine if the component is empty.
204
+ */
205
+ isEmpty(): boolean;
206
+ /**
207
+ * Clears the color value of the ColorPalette.
208
+ */
209
+ reset(): void;
210
+ private handleValueChange;
211
+ private handleCellFocusOnBlur;
212
+ private selectCell;
213
+ private setRows;
214
+ private handleCellNavigation;
215
+ private setHostElementAriaLabel;
216
+ private handleEnter;
217
+ private notifyNgTouched;
218
+ private notifyNgChanged;
219
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPaletteComponent, never>;
220
+ static ɵcmp: i0.ɵɵComponentDeclaration<ColorPaletteComponent, "kendo-colorpalette", ["kendoColorPalette"], { "id": "id"; "format": "format"; "value": "value"; "columns": "columns"; "palette": "palette"; "tabindex": "tabindex"; "disabled": "disabled"; "readonly": "readonly"; "tileSize": "tileSize"; }, { "selectionChange": "selectionChange"; "valueChange": "valueChange"; "cellSelection": "cellSelection"; }, never, never>;
221
+ }
@@ -0,0 +1,383 @@
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 { EventEmitter, ElementRef, OnDestroy, ViewContainerRef, ChangeDetectorRef, NgZone, OnChanges, OnInit, AfterViewInit, Renderer2, Injector } from '@angular/core';
6
+ import { ControlValueAccessor } from '@angular/forms';
7
+ import { PopupService } from '@progress/kendo-angular-popup';
8
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
9
+ import { PopupSettings, PaletteSettings, OutputFormat, ColorPickerView, GradientSettings, ColorPickerActionsLayout } from './models';
10
+ import { ActiveColorClickEvent, ColorPickerCancelEvent, ColorPickerCloseEvent, ColorPickerOpenEvent } from './events';
11
+ import { InputFillMode, InputRounded, InputSize } from '../common/models';
12
+ import { SVGIcon } from '@progress/kendo-angular-icons';
13
+ import * as i0 from "@angular/core";
14
+ /**
15
+ * Represents the [Kendo UI ColorPicker component for Angular]({% slug overview_colorpicker %}).
16
+ *
17
+ * The ColorPicker is a powerful tool for choosing colors from Gradient and Palette views
18
+ * which are rendered in its popup. It supports previewing the selected color, reverting it to its previous state or clearing it completely.
19
+ */
20
+ export declare class ColorPickerComponent implements OnInit, AfterViewInit, OnChanges, OnDestroy, ControlValueAccessor {
21
+ private host;
22
+ private popupService;
23
+ private cdr;
24
+ private localizationService;
25
+ private ngZone;
26
+ private renderer;
27
+ private injector;
28
+ hostClasses: boolean;
29
+ get focusedClass(): boolean;
30
+ get disabledClass(): boolean;
31
+ get ariaReadonly(): boolean;
32
+ get ariaExpanded(): boolean;
33
+ get hostTabindex(): number;
34
+ direction: string;
35
+ role: string;
36
+ hasPopup: string;
37
+ get isControlInvalid(): string;
38
+ /**
39
+ * @hidden
40
+ */
41
+ focusableId: string;
42
+ /**
43
+ * Specifies the views that will be rendered in the popup.
44
+ * By default both the gradient and palette views will be rendered.
45
+ */
46
+ views: Array<ColorPickerView>;
47
+ /**
48
+ * @hidden
49
+ */
50
+ set view(view: ColorPickerView);
51
+ get view(): ColorPickerView;
52
+ /**
53
+ * Sets the initially active view in the popup. The property supports two-way binding.
54
+ *
55
+ * The supported values are:
56
+ * * `gradient`
57
+ * * `palette`
58
+ */
59
+ activeView: ColorPickerView;
60
+ /**
61
+ * Sets the read-only state of the ColorPicker.
62
+ *
63
+ * @default false
64
+ */
65
+ readonly: boolean;
66
+ /**
67
+ * Sets the disabled state of the ColorPicker.
68
+ *
69
+ * @default false
70
+ */
71
+ disabled: boolean;
72
+ /**
73
+ * Specifies the output format of the ColorPicker.
74
+ *
75
+ * If the input value is in a different format, it will be parsed into the specified output `format`.
76
+ *
77
+ * The supported values are:
78
+ * * `rgba` (default)
79
+ * * `hex`
80
+ */
81
+ format: OutputFormat;
82
+ /**
83
+ * Specifies the value of the initially selected color.
84
+ */
85
+ set value(value: string);
86
+ get value(): string;
87
+ /**
88
+ * Configures the popup of the ColorPicker.
89
+ */
90
+ set popupSettings(value: PopupSettings);
91
+ get popupSettings(): PopupSettings;
92
+ /**
93
+ * Configures the palette that is displayed in the ColorPicker popup.
94
+ */
95
+ set paletteSettings(value: PaletteSettings);
96
+ get paletteSettings(): PaletteSettings;
97
+ /**
98
+ * Configures the gradient that is displayed in the ColorPicker popup.
99
+ */
100
+ set gradientSettings(value: GradientSettings);
101
+ get gradientSettings(): GradientSettings;
102
+ /**
103
+ * Defines the name of an [existing icon in the Kendo UI theme]({% slug icons %}).
104
+ * Provide only the name of the icon without the `k-icon` or the `k-i-` prefixes.
105
+ *
106
+ * For example, `pencil-tools` will be parsed to `k-icon k-i-pencil-tools`.
107
+ */
108
+ icon: string;
109
+ /**
110
+ * A CSS class name which displays an icon in the ColorPicker button.
111
+ * `iconClass` is compatible with the `ngClass` syntax.
112
+ *
113
+ * Takes precedence over `icon` if both are defined.
114
+ */
115
+ iconClass: string | Array<string> | {
116
+ [key: string]: boolean;
117
+ };
118
+ /**
119
+ * Defines an SVGIcon to be rendered within the button.
120
+ * The input can take either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
121
+ */
122
+ set svgIcon(icon: SVGIcon);
123
+ get svgIcon(): SVGIcon;
124
+ /**
125
+ * Specifies whether the ColorPicker should display a 'Clear color' button.
126
+ *
127
+ * @default true
128
+ */
129
+ clearButton: boolean;
130
+ /**
131
+ * Specifies the [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
132
+ *
133
+ * @default 0
134
+ */
135
+ set tabindex(value: number);
136
+ get tabindex(): number;
137
+ /**
138
+ * Displays `Apply` and `Cancel` action buttons and color preview panes.
139
+ *
140
+ * When enabled, the component value will not change immediately upon
141
+ * color selection, but only after the `Apply` button is clicked.
142
+ *
143
+ * The `Cancel` button reverts the current selection to its
144
+ * previous state i.e. to the current value.
145
+ *
146
+ * @default false
147
+ */
148
+ preview: boolean;
149
+ /**
150
+ * Configures the layout of the `Apply` and `Cancel` action buttons.
151
+ *
152
+ * The possible values are:
153
+ * * `start`
154
+ * * `center`
155
+ * * `end` (default)
156
+ * * `stretch`
157
+ */
158
+ actionsLayout: ColorPickerActionsLayout;
159
+ /**
160
+ * The size property specifies the padding of the ColorPicker internal elements
161
+ * ([see example]({% slug appearance_colorpicker %}#toc-size)).
162
+ *
163
+ * The possible values are:
164
+ * * `small`
165
+ * * `medium` (default)
166
+ * * `large`
167
+ * * `none`
168
+ */
169
+ set size(size: InputSize);
170
+ get size(): InputSize;
171
+ /**
172
+ * The rounded property specifies the border radius of the ColorPicker
173
+ * ([see example]({% slug appearance_colorpicker %}#toc-rounded)).
174
+ *
175
+ * The possible values are:
176
+ * * `small`
177
+ * * `medium` (default)
178
+ * * `large`
179
+ * * `full`
180
+ * * `none`
181
+ */
182
+ set rounded(rounded: InputRounded);
183
+ get rounded(): InputRounded;
184
+ /**
185
+ * The fillMode property specifies the background and border styles of the ColorPicker
186
+ * ([see example]({% slug appearance_colorpicker %}#toc-fillMode)).
187
+ *
188
+ * The possible values are:
189
+ * * `flat`
190
+ * * `solid` (default)
191
+ * * `outline`
192
+ * * `none`
193
+ */
194
+ set fillMode(fillMode: InputFillMode);
195
+ get fillMode(): InputFillMode;
196
+ /**
197
+ * Fires each time the value is changed.
198
+ */
199
+ valueChange: EventEmitter<any>;
200
+ /**
201
+ * Fires each time the popup is about to open.
202
+ * This event is preventable. If you cancel it, the popup will remain closed.
203
+ */
204
+ open: EventEmitter<ColorPickerOpenEvent>;
205
+ /**
206
+ * Fires each time the popup is about to close.
207
+ * This event is preventable. If you cancel it, the popup will remain open.
208
+ */
209
+ close: EventEmitter<ColorPickerCloseEvent>;
210
+ /**
211
+ * Fires each time ColorPicker is focused.
212
+ */
213
+ onFocus: EventEmitter<any>;
214
+ /**
215
+ * Fires each time the ColorPicker is blurred.
216
+ */
217
+ onBlur: EventEmitter<any>;
218
+ /**
219
+ * Fires when the user cancels the current color selection.
220
+ *
221
+ * Fires on preview pane or 'Cancel' button click.
222
+ */
223
+ cancel: EventEmitter<ColorPickerCancelEvent>;
224
+ /**
225
+ * Fires each time the left side of the ColorPicker wrapper is clicked.
226
+ * The event is triggered regardless of whether a ColorPicker icon is set or not.
227
+ *
228
+ * The [ActiveColorClickEvent]({% slug api_inputs_activecolorclickevent %}) event provides the option to prevent the popup opening.
229
+ */
230
+ activeColorClick: EventEmitter<ActiveColorClickEvent>;
231
+ /**
232
+ * @hidden
233
+ * Fires each time the clear button is clicked.
234
+ */
235
+ clearButtonClick: EventEmitter<any>;
236
+ /**
237
+ * Fires each time the view is about to change.
238
+ * Used to provide a two-way binding for the `activeView` property.
239
+ */
240
+ activeViewChange: EventEmitter<string>;
241
+ /**
242
+ * Indicates whether the ColorPicker wrapper is focused.
243
+ */
244
+ isFocused: boolean;
245
+ /**
246
+ * Indicates whether the ColorPicker popup is open.
247
+ */
248
+ get isOpen(): boolean;
249
+ /**
250
+ * @hidden
251
+ */
252
+ get customIconStyles(): string;
253
+ /**
254
+ * @hidden
255
+ */
256
+ get iconStyles(): string;
257
+ /**
258
+ * Provides a reference to a container element inside the component markup.
259
+ * The container element references the location of the appended popup&mdash;
260
+ * for example, inside the component markup.
261
+ */
262
+ container: ViewContainerRef;
263
+ private activeColor;
264
+ private popupTemplate;
265
+ private flatColorPicker;
266
+ /**
267
+ * @hidden
268
+ */
269
+ arrowDownIcon: SVGIcon;
270
+ private popupRef;
271
+ private _svgIcon;
272
+ private _value;
273
+ private _tabindex;
274
+ private _popupSettings;
275
+ private _paletteSettings;
276
+ private _gradientSettings;
277
+ private _size;
278
+ private _rounded;
279
+ private _fillMode;
280
+ private dynamicRTLSubscription;
281
+ private subscriptions;
282
+ private popupSubs;
283
+ private colorPickerId;
284
+ private control;
285
+ constructor(host: ElementRef, popupService: PopupService, cdr: ChangeDetectorRef, localizationService: LocalizationService, ngZone: NgZone, renderer: Renderer2, injector: Injector);
286
+ ngOnInit(): void;
287
+ ngAfterViewInit(): void;
288
+ ngOnChanges(changes: any): void;
289
+ ngOnDestroy(): void;
290
+ /**
291
+ * @hidden
292
+ */
293
+ handleCancelEvent(ev: ColorPickerCancelEvent): void;
294
+ /**
295
+ * @hidden
296
+ */
297
+ togglePopup(): void;
298
+ /**
299
+ * @hidden
300
+ */
301
+ handleWrapperClick(event: MouseEvent): void;
302
+ /**
303
+ * Focuses the wrapper of the ColorPicker.
304
+ */
305
+ focus(): void;
306
+ /**
307
+ * @hidden
308
+ */
309
+ handleWrapperFocus(): void;
310
+ /**
311
+ * Blurs the ColorPicker.
312
+ */
313
+ blur(): void;
314
+ /**
315
+ * @hidden
316
+ */
317
+ handleWrapperBlur(): void;
318
+ /**
319
+ * Clears the value of the ColorPicker.
320
+ */
321
+ reset(): void;
322
+ /**
323
+ * Toggles the popup of the ColorPicker.
324
+ * Does not trigger the `open` and `close` events of the component.
325
+ *
326
+ * @param open An optional parameter. Specifies whether the popup will be opened or closed.
327
+ */
328
+ toggle(open?: boolean): void;
329
+ /**
330
+ * @hidden
331
+ */
332
+ handleValueChange(color: string): void;
333
+ /**
334
+ * @hidden
335
+ */
336
+ handlePopupBlur(event: FocusEvent): void;
337
+ /**
338
+ * @hidden
339
+ */
340
+ writeValue(value: string): void;
341
+ /**
342
+ * @hidden
343
+ */
344
+ registerOnChange(fn: any): void;
345
+ /**
346
+ * @hidden
347
+ */
348
+ registerOnTouched(fn: any): void;
349
+ /**
350
+ * @hidden
351
+ */
352
+ setDisabledState(isDisabled: boolean): void;
353
+ /**
354
+ * @hidden
355
+ */
356
+ handleWrapperKeyDown(event: any): void;
357
+ /**
358
+ * @hidden
359
+ */
360
+ handlePopupKeyDown(event: any): void;
361
+ /**
362
+ * @hidden
363
+ * Used by the FloatingLabel to determine if the component is empty.
364
+ */
365
+ isEmpty(): boolean;
366
+ private setHostElementAriaLabel;
367
+ private handleClasses;
368
+ private popupBlurInvalid;
369
+ private toggleWithEvents;
370
+ private focusFirstElement;
371
+ private openPopup;
372
+ private closePopup;
373
+ private get firstFocusableElement();
374
+ private get lastFocusableElement();
375
+ private notifyNgTouched;
376
+ private notifyNgChanged;
377
+ private handleDomEvents;
378
+ private initDomEvents;
379
+ private domFocusListener;
380
+ private handleHostId;
381
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerComponent, never>;
382
+ static ɵcmp: i0.ɵɵComponentDeclaration<ColorPickerComponent, "kendo-colorpicker", ["kendoColorPicker"], { "views": "views"; "view": "view"; "activeView": "activeView"; "readonly": "readonly"; "disabled": "disabled"; "format": "format"; "value": "value"; "popupSettings": "popupSettings"; "paletteSettings": "paletteSettings"; "gradientSettings": "gradientSettings"; "icon": "icon"; "iconClass": "iconClass"; "svgIcon": "svgIcon"; "clearButton": "clearButton"; "tabindex": "tabindex"; "preview": "preview"; "actionsLayout": "actionsLayout"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; }, { "valueChange": "valueChange"; "open": "open"; "close": "close"; "onFocus": "focus"; "onBlur": "blur"; "cancel": "cancel"; "activeColorClick": "activeColorClick"; "clearButtonClick": "clearButtonClick"; "activeViewChange": "activeViewChange"; }, never, never>;
383
+ }