@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,605 @@
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 { Renderer2, Component, ElementRef, Input, ViewChild, forwardRef, NgZone, Injector, ChangeDetectorRef } from '@angular/core';
6
+ import { NG_VALUE_ACCESSOR } from '@angular/forms';
7
+ import { take } from 'rxjs/operators';
8
+ import { trimValue, isSameRange, trimValueRange, validateValue } from '../sliders-common/sliders-util';
9
+ import { RangeSliderModel } from './rangeslider-model';
10
+ import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
11
+ import { eventValue, isStartHandle } from '../sliders-common/sliders-util';
12
+ import { invokeElementMethod } from '../common/dom-utils';
13
+ import { guid, isDocumentAvailable, Keys, KendoInput, anyChanged, hasObservers } from '@progress/kendo-angular-common';
14
+ import { requiresZoneOnBlur } from '../common/utils';
15
+ import { SliderBase } from '../sliders-common/slider-base';
16
+ import * as i0 from "@angular/core";
17
+ import * as i1 from "@progress/kendo-angular-l10n";
18
+ import * as i2 from "../sliders-common/slider-ticks.component";
19
+ import * as i3 from "@progress/kendo-angular-common";
20
+ import * as i4 from "./localization/localized-rangeslider-messages.directive";
21
+ import * as i5 from "@angular/common";
22
+ const PRESSED = 'k-pressed';
23
+ /**
24
+ * Represents the [Kendo UI RangeSlider component for Angular]({% slug overview_rangeslider %}).
25
+ */
26
+ export class RangeSliderComponent extends SliderBase {
27
+ constructor(localization, injector, renderer, ngZone, changeDetector, hostElement) {
28
+ super(localization, injector, renderer, ngZone, changeDetector, hostElement);
29
+ this.localization = localization;
30
+ this.injector = injector;
31
+ this.renderer = renderer;
32
+ this.ngZone = ngZone;
33
+ this.changeDetector = changeDetector;
34
+ this.hostElement = hostElement;
35
+ /**
36
+ * @hidden
37
+ */
38
+ this.startHandleId = `k-start-handle-${guid()}`;
39
+ /**
40
+ * @hidden
41
+ */
42
+ this.endHandleId = `k-end-handle-${guid()}`;
43
+ /**
44
+ * @hidden
45
+ */
46
+ this.focusableId = this.startHandleId;
47
+ this.activeHandle = 'startHandle';
48
+ this.focusChangedProgrammatically = false;
49
+ /**
50
+ * @hidden
51
+ */
52
+ this.onWrapClick = (args) => {
53
+ if (!this.isDisabled) {
54
+ this.value = this.value || [this.min, this.min];
55
+ const trackValue = eventValue(args, this.track.nativeElement, this.getProps());
56
+ let newRangeValue;
57
+ const [startValue, endValue] = newRangeValue = this.value;
58
+ if (trackValue <= startValue) {
59
+ newRangeValue = [trackValue, endValue];
60
+ this.activeHandle = 'startHandle';
61
+ }
62
+ else if (startValue < trackValue && trackValue < endValue) {
63
+ if (trackValue < (startValue + endValue) / 2) {
64
+ newRangeValue = [trackValue, endValue];
65
+ this.activeHandle = 'startHandle';
66
+ }
67
+ else {
68
+ newRangeValue = [startValue, trackValue];
69
+ this.activeHandle = 'endHandle';
70
+ }
71
+ }
72
+ else if (trackValue >= endValue) {
73
+ newRangeValue = [startValue, trackValue];
74
+ this.activeHandle = 'endHandle';
75
+ }
76
+ const activeHandle = this.activeHandle === 'startHandle' ? this.draghandleStart : this.draghandleEnd;
77
+ invokeElementMethod(activeHandle, 'focus');
78
+ this.changeValue(newRangeValue);
79
+ }
80
+ };
81
+ /**
82
+ * @hidden
83
+ */
84
+ this.onKeyDown = (e) => {
85
+ this.value = this.value || [this.min, this.min];
86
+ const options = this.getProps();
87
+ const { max, min } = options;
88
+ const handler = this.keyBinding[e.keyCode];
89
+ if (this.isDisabled || !handler) {
90
+ return;
91
+ }
92
+ const startHandleIsActive = isStartHandle(e.target);
93
+ const nonDraggedHandle = startHandleIsActive ? this.draghandleEnd.nativeElement : this.draghandleStart.nativeElement;
94
+ this.renderer.removeStyle(nonDraggedHandle, 'zIndex');
95
+ this.renderer.setStyle(e.target, 'zIndex', 1);
96
+ const value = handler({ ...options, value: startHandleIsActive ? this.value[0] : this.value[1] });
97
+ if (startHandleIsActive) {
98
+ if (value > this.value[1]) {
99
+ this.value[1] = value;
100
+ }
101
+ }
102
+ else {
103
+ if (value < this.value[0]) {
104
+ this.value[0] = value;
105
+ }
106
+ }
107
+ const trimmedValue = trimValue(max, min, value);
108
+ const newValue = startHandleIsActive ? [trimmedValue, this.value[1]]
109
+ : [this.value[0], trimmedValue];
110
+ this.changeValue(newValue);
111
+ e.preventDefault();
112
+ };
113
+ this.ngChange = (_) => { };
114
+ this.ngTouched = () => { };
115
+ this.handleBlur = () => {
116
+ this.changeDetector.markForCheck();
117
+ this.focused = false;
118
+ if (hasObservers(this.onBlur) || requiresZoneOnBlur(this.control)) {
119
+ this.ngZone.run(() => {
120
+ this.ngTouched();
121
+ if (!this.focusChangedProgrammatically) {
122
+ this.onBlur.emit();
123
+ }
124
+ });
125
+ }
126
+ };
127
+ }
128
+ /**
129
+ * Focuses the RangeSlider.
130
+ *
131
+ * @example
132
+ * ```ts-no-run
133
+ * _@Component({
134
+ * selector: 'my-app',
135
+ * template: `
136
+ * <div>
137
+ * <button class="k-button" (click)="slider.focus()">Focus</button>
138
+ * </div>
139
+ * <kendo-rangeslider #slider></kendo-rangeslider>
140
+ * `
141
+ * })
142
+ * class AppComponent { }
143
+ * ```
144
+ */
145
+ focus() {
146
+ this.focusChangedProgrammatically = true;
147
+ invokeElementMethod(this.draghandleStart, 'focus');
148
+ this.focusChangedProgrammatically = false;
149
+ }
150
+ /**
151
+ * Blurs the RangeSlider.
152
+ */
153
+ blur() {
154
+ this.focusChangedProgrammatically = true;
155
+ const activeHandle = this.activeHandle === 'startHandle' ? this.draghandleStart : this.draghandleEnd;
156
+ invokeElementMethod(activeHandle, 'blur');
157
+ this.handleBlur();
158
+ this.focusChangedProgrammatically = false;
159
+ }
160
+ ngOnInit() {
161
+ if (!this.value) {
162
+ this.value = [this.min, this.max];
163
+ }
164
+ super.ngOnInit();
165
+ }
166
+ ngOnChanges(changes) {
167
+ if (anyChanged(['value', 'fixedTickWidth', 'tickPlacement'], changes, true)) {
168
+ if (changes['value'] && changes['value'].currentValue) {
169
+ validateValue(changes['value'].currentValue);
170
+ }
171
+ this.ngZone.onStable.asObservable().pipe(take(1)).subscribe(() => {
172
+ this.sizeComponent();
173
+ });
174
+ }
175
+ }
176
+ ngAfterViewInit() {
177
+ if (!isDocumentAvailable()) {
178
+ return;
179
+ }
180
+ this.sizeComponent();
181
+ if (this.ticks) {
182
+ this.ticks.tickElements
183
+ .changes
184
+ .subscribe(() => this.sizeComponent());
185
+ }
186
+ this.isRangeSliderInvalid();
187
+ this.attachElementEventHandlers();
188
+ }
189
+ ngOnDestroy() {
190
+ if (this.subscriptions) {
191
+ this.subscriptions.unsubscribe();
192
+ }
193
+ }
194
+ /**
195
+ * @hidden
196
+ */
197
+ textFor(key) {
198
+ return this.localization.get(key);
199
+ }
200
+ /**
201
+ * @hidden
202
+ */
203
+ get valueText() {
204
+ return this.value ? `${this.value[0]} - ${this.value[1]}` : '';
205
+ }
206
+ /**
207
+ * @hidden
208
+ */
209
+ handleDragPress(args) {
210
+ if (args.originalEvent) {
211
+ args.originalEvent.preventDefault();
212
+ }
213
+ const target = args.originalEvent.target;
214
+ this.draggedHandle = target;
215
+ const nonDraggedHandle = this.draghandleStart.nativeElement === this.draggedHandle ? this.draghandleEnd.nativeElement : this.draghandleStart.nativeElement;
216
+ this.renderer.removeStyle(nonDraggedHandle, 'zIndex');
217
+ this.renderer.setStyle(target, 'zIndex', 1);
218
+ }
219
+ /**
220
+ * @hidden
221
+ */
222
+ onHandleDrag(args) {
223
+ this.value = this.value || [this.min, this.min];
224
+ const target = args.originalEvent.target;
225
+ const lastCoords = this.draggedHandle.getBoundingClientRect();
226
+ this.lastHandlePosition = { x: lastCoords.left, y: lastCoords.top };
227
+ this.dragging = { value: true, target };
228
+ const mousePos = {
229
+ x: (args.pageX - 0.5) - (lastCoords.width / 2),
230
+ y: (args.pageY - (lastCoords.width / 2))
231
+ };
232
+ const left = mousePos.x < this.lastHandlePosition.x;
233
+ const right = mousePos.x > this.lastHandlePosition.x;
234
+ const up = mousePos.y > this.lastHandlePosition.y;
235
+ const moveStartHandle = () => this.changeValue([eventValue(args, this.track.nativeElement, this.getProps()), this.value[1]]);
236
+ const moveEndHandle = () => this.changeValue([this.value[0], eventValue(args, this.track.nativeElement, this.getProps())]);
237
+ const moveBothHandles = () => this.changeValue([eventValue(args, this.track.nativeElement, this.getProps()), eventValue(args, this.track.nativeElement, this.getProps())]);
238
+ const activeStartHandle = isStartHandle(this.draggedHandle);
239
+ const vertical = this.vertical;
240
+ const horizontal = !vertical;
241
+ const forward = (vertical && up) || (this.reverse ? horizontal && right : horizontal && left);
242
+ const incorrectValueState = this.value[0] > this.value[1];
243
+ if (this.value[0] === this.value[1] || incorrectValueState) {
244
+ if (forward) {
245
+ // eslint-disable-next-line no-unused-expressions
246
+ activeStartHandle ? moveStartHandle() : moveBothHandles();
247
+ }
248
+ else {
249
+ // eslint-disable-next-line no-unused-expressions
250
+ activeStartHandle ? moveBothHandles() : moveEndHandle();
251
+ }
252
+ }
253
+ else {
254
+ // eslint-disable-next-line no-unused-expressions
255
+ activeStartHandle ? moveStartHandle() : moveEndHandle();
256
+ }
257
+ }
258
+ /**
259
+ * @hidden
260
+ */
261
+ onHandleRelease(args) {
262
+ this.dragging = { value: false, target: args.originalEvent.target }; //needed for animation
263
+ this.draggedHandle = undefined;
264
+ }
265
+ //ngModel binding
266
+ /**
267
+ * @hidden
268
+ */
269
+ writeValue(value) {
270
+ validateValue(value);
271
+ this.value = value;
272
+ this.sizeComponent();
273
+ }
274
+ /**
275
+ * @hidden
276
+ */
277
+ registerOnChange(fn) {
278
+ this.ngChange = fn;
279
+ }
280
+ /**
281
+ * @hidden
282
+ */
283
+ registerOnTouched(fn) {
284
+ this.ngTouched = fn;
285
+ }
286
+ /**
287
+ * @hidden
288
+ */
289
+ changeValue(value) {
290
+ if (!this.value || !isSameRange(this.value, value)) {
291
+ this.ngZone.run(() => {
292
+ this.value = value;
293
+ this.ngChange(value);
294
+ if (this.value) {
295
+ this.valueChange.emit(value);
296
+ }
297
+ this.sizeComponent();
298
+ });
299
+ }
300
+ this.isRangeSliderInvalid();
301
+ }
302
+ /**
303
+ * @hidden
304
+ */
305
+ sizeComponent() {
306
+ if (!isDocumentAvailable()) {
307
+ return;
308
+ }
309
+ const wrapper = this.wrapper.nativeElement;
310
+ const track = this.track.nativeElement;
311
+ const selectionEl = this.sliderSelection.nativeElement;
312
+ const dragHandleStartEl = this.draghandleStart.nativeElement;
313
+ const dragHandleEndEl = this.draghandleEnd.nativeElement;
314
+ const ticks = this.ticks ? this.ticksContainer.nativeElement : null;
315
+ this.resetStyles([track, selectionEl, dragHandleStartEl, dragHandleEndEl, ticks, this.hostElement.nativeElement]);
316
+ const props = this.getProps();
317
+ const model = new RangeSliderModel(props, wrapper, track, this.renderer);
318
+ model.resizeTrack();
319
+ if (this.ticks) { //for case when tickPlacement: none
320
+ model.resizeTicks(this.ticksContainer.nativeElement, this.ticks.tickElements.map(element => element.nativeElement));
321
+ }
322
+ model.positionHandle(dragHandleStartEl);
323
+ model.positionHandle(dragHandleEndEl);
324
+ model.positionSelection(dragHandleStartEl, selectionEl);
325
+ if (this.fixedTickWidth) {
326
+ model.resizeWrapper();
327
+ }
328
+ }
329
+ /**
330
+ * @hidden
331
+ */
332
+ get isDisabled() {
333
+ return this.disabled || this.readonly;
334
+ }
335
+ /**
336
+ * @hidden
337
+ * Used by the FloatingLabel to determine if the component is empty.
338
+ */
339
+ isEmpty() {
340
+ return false;
341
+ }
342
+ set focused(value) {
343
+ if (this.isFocused !== value && this.hostElement) {
344
+ this.isFocused = value;
345
+ }
346
+ }
347
+ set dragging(data) {
348
+ if (this.isDragged !== data.value && this.sliderSelection && this.draghandleStart && this.draghandleEnd) {
349
+ const sliderSelection = this.sliderSelection.nativeElement;
350
+ const draghandle = data.target;
351
+ if (data.value) {
352
+ this.renderer.addClass(sliderSelection, PRESSED);
353
+ this.renderer.addClass(draghandle, PRESSED);
354
+ }
355
+ else {
356
+ this.renderer.removeClass(sliderSelection, PRESSED);
357
+ this.renderer.removeClass(draghandle, PRESSED);
358
+ }
359
+ this.isDragged = data.value;
360
+ }
361
+ }
362
+ getProps() {
363
+ return {
364
+ disabled: this.disabled,
365
+ fixedTickWidth: this.fixedTickWidth,
366
+ largeStep: this.largeStep,
367
+ max: this.max,
368
+ min: this.min,
369
+ readonly: this.readonly,
370
+ reverse: this.reverse,
371
+ rtl: this.localizationService.rtl,
372
+ smallStep: this.smallStep,
373
+ value: trimValueRange(this.max, this.min, this.value),
374
+ vertical: this.vertical,
375
+ buttons: false
376
+ };
377
+ }
378
+ isRangeSliderInvalid() {
379
+ const rangeSliderClasses = this.hostElement.nativeElement.classList;
380
+ this.isInvalid = rangeSliderClasses.contains('ng-invalid') ? true : false;
381
+ this.renderer.setAttribute(this.draghandleStart.nativeElement, 'aria-invalid', `${this.isInvalid}`);
382
+ this.renderer.setAttribute(this.draghandleEnd.nativeElement, 'aria-invalid', `${this.isInvalid}`);
383
+ }
384
+ attachElementEventHandlers() {
385
+ const hostElement = this.hostElement.nativeElement;
386
+ let tabbing = false;
387
+ let cursorInsideWrapper = false;
388
+ this.ngZone.runOutsideAngular(() => {
389
+ // focusIn and focusOut are relative to the host element
390
+ this.subscriptions.add(this.renderer.listen(hostElement, 'focusin', () => {
391
+ if (!this.isFocused) {
392
+ this.ngZone.run(() => {
393
+ if (!this.focusChangedProgrammatically) {
394
+ this.onFocus.emit();
395
+ }
396
+ this.focused = true;
397
+ });
398
+ }
399
+ }));
400
+ this.subscriptions.add(this.renderer.listen(hostElement, 'focusout', (args) => {
401
+ if (!this.isFocused) {
402
+ return;
403
+ }
404
+ if (tabbing) {
405
+ if (args.relatedTarget !== this.draghandleStart.nativeElement && args.relatedTarget !== this.draghandleEnd.nativeElement) {
406
+ this.handleBlur();
407
+ }
408
+ tabbing = false;
409
+ }
410
+ else {
411
+ if (!cursorInsideWrapper) {
412
+ this.handleBlur();
413
+ }
414
+ }
415
+ }));
416
+ this.subscriptions.add(this.renderer.listen(hostElement, 'mouseenter', () => {
417
+ cursorInsideWrapper = true;
418
+ }));
419
+ this.subscriptions.add(this.renderer.listen(hostElement, 'mouseleave', () => {
420
+ cursorInsideWrapper = false;
421
+ }));
422
+ this.subscriptions.add(this.renderer.listen(hostElement, 'keydown', (args) => {
423
+ if (args.keyCode === Keys.Tab) {
424
+ tabbing = true;
425
+ }
426
+ else {
427
+ tabbing = false;
428
+ }
429
+ }));
430
+ });
431
+ }
432
+ }
433
+ RangeSliderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: RangeSliderComponent, deps: [{ token: i1.LocalizationService }, { token: i0.Injector }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
434
+ RangeSliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: RangeSliderComponent, selector: "kendo-rangeslider", inputs: { value: "value" }, providers: [
435
+ LocalizationService,
436
+ { provide: L10N_PREFIX, useValue: 'kendo.rangeslider' },
437
+ { multi: true, provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => RangeSliderComponent) },
438
+ { provide: KendoInput, useExisting: forwardRef(() => RangeSliderComponent) }
439
+ ], viewQueries: [{ propertyName: "draghandleStart", first: true, predicate: ["draghandleStart"], descendants: true, static: true }, { propertyName: "draghandleEnd", first: true, predicate: ["draghandleEnd"], descendants: true, static: true }], exportAs: ["kendoRangeSlider"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
440
+ <ng-container kendoSliderLocalizedMessages
441
+ i18n-dragHandleStart="kendo.rangeslider.dragHandleStart|The title of the **Start** drag handle of the Slider."
442
+ dragHandleStart="Drag"
443
+ i18n-dragHandleEnd="kendo.rangeslider.dragHandleEnd|The title of the **End** drag handle of the Slider."
444
+ dragHandleEnd="Drag"
445
+ >
446
+
447
+ <div
448
+ #wrap
449
+ class="k-slider-track-wrap"
450
+ [class.k-slider-topleft]="tickPlacement === 'before'"
451
+ [class.k-slider-bottomright]="tickPlacement === 'after'"
452
+ [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"
453
+ >
454
+ <ul kendoSliderTicks
455
+ #ticks
456
+ *ngIf="tickPlacement !== 'none'"
457
+ [tickTitle]="title"
458
+ [vertical]="vertical"
459
+ [step]="smallStep"
460
+ [largeStep]="largeStep"
461
+ [min]="min"
462
+ [max]="max"
463
+ [labelTemplate]="labelTemplate?.templateRef"
464
+ [attr.aria-hidden]="true"
465
+ >
466
+ </ul>
467
+ <div #track class="k-slider-track">
468
+ <div #sliderSelection class="k-slider-selection">
469
+ </div>
470
+ <span #draghandleStart
471
+ role="slider"
472
+ [id]="startHandleId"
473
+ [attr.tabindex]="disabled ? undefined : tabindex"
474
+ [attr.aria-valuemin]="min"
475
+ [attr.aria-valuemax]="max"
476
+ [attr.aria-valuenow]="value ? value[0] : null"
477
+ [attr.aria-valuetext]="valueText"
478
+ [attr.aria-disabled]="disabled ? true : undefined"
479
+ [attr.aria-readonly]="readonly ? true : undefined"
480
+ [attr.aria-orientation]="vertical ? 'vertical' : 'horizontal'"
481
+ [style.touch-action]="isDisabled ? '' : 'none'"
482
+ class="k-draghandle"
483
+ [title]="textFor('dragHandleStart')"
484
+ kendoDraggable
485
+ (kendoPress)="ifEnabled(handleDragPress ,$event)"
486
+ (kendoDrag)="ifEnabled(onHandleDrag ,$event)"
487
+ (kendoRelease)="ifEnabled(onHandleRelease, $event)"
488
+ ></span>
489
+ <span #draghandleEnd
490
+ role="slider"
491
+ [id]="endHandleId"
492
+ [attr.tabindex]="disabled ? undefined : tabindex"
493
+ [attr.aria-valuemin]="min"
494
+ [attr.aria-valuemax]="max"
495
+ [attr.aria-valuenow]="value ? value[1] : null"
496
+ [attr.aria-valuetext]="valueText"
497
+ [attr.aria-disabled]="disabled ? true : undefined"
498
+ [attr.aria-readonly]="readonly ? true : undefined"
499
+ [attr.aria-orientation]="vertical ? 'vertical' : 'horizontal'"
500
+ [style.touch-action]="isDisabled ? '' : 'none'"
501
+ class="k-draghandle"
502
+ [title]="textFor('dragHandleEnd')"
503
+ kendoDraggable
504
+ (kendoPress)="ifEnabled(handleDragPress ,$event)"
505
+ (kendoDrag)="ifEnabled(onHandleDrag ,$event)"
506
+ (kendoRelease)="ifEnabled(onHandleRelease, $event)"
507
+ ></span>
508
+ </div>
509
+ </div>
510
+ <kendo-resize-sensor (resize)="sizeComponent()"></kendo-resize-sensor>
511
+ `, isInline: true, components: [{ type: i2.SliderTicksComponent, selector: "[kendoSliderTicks]", inputs: ["tickTitle", "vertical", "step", "largeStep", "min", "max", "labelTemplate"] }, { type: i3.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: i4.LocalizedRangeSliderMessagesDirective, selector: "[kendoSliderLocalizedMessages]" }, { type: i3.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }] });
512
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: RangeSliderComponent, decorators: [{
513
+ type: Component,
514
+ args: [{
515
+ exportAs: 'kendoRangeSlider',
516
+ providers: [
517
+ LocalizationService,
518
+ { provide: L10N_PREFIX, useValue: 'kendo.rangeslider' },
519
+ { multi: true, provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => RangeSliderComponent) },
520
+ { provide: KendoInput, useExisting: forwardRef(() => RangeSliderComponent) }
521
+ ],
522
+ selector: 'kendo-rangeslider',
523
+ template: `
524
+ <ng-container kendoSliderLocalizedMessages
525
+ i18n-dragHandleStart="kendo.rangeslider.dragHandleStart|The title of the **Start** drag handle of the Slider."
526
+ dragHandleStart="Drag"
527
+ i18n-dragHandleEnd="kendo.rangeslider.dragHandleEnd|The title of the **End** drag handle of the Slider."
528
+ dragHandleEnd="Drag"
529
+ >
530
+
531
+ <div
532
+ #wrap
533
+ class="k-slider-track-wrap"
534
+ [class.k-slider-topleft]="tickPlacement === 'before'"
535
+ [class.k-slider-bottomright]="tickPlacement === 'after'"
536
+ [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"
537
+ >
538
+ <ul kendoSliderTicks
539
+ #ticks
540
+ *ngIf="tickPlacement !== 'none'"
541
+ [tickTitle]="title"
542
+ [vertical]="vertical"
543
+ [step]="smallStep"
544
+ [largeStep]="largeStep"
545
+ [min]="min"
546
+ [max]="max"
547
+ [labelTemplate]="labelTemplate?.templateRef"
548
+ [attr.aria-hidden]="true"
549
+ >
550
+ </ul>
551
+ <div #track class="k-slider-track">
552
+ <div #sliderSelection class="k-slider-selection">
553
+ </div>
554
+ <span #draghandleStart
555
+ role="slider"
556
+ [id]="startHandleId"
557
+ [attr.tabindex]="disabled ? undefined : tabindex"
558
+ [attr.aria-valuemin]="min"
559
+ [attr.aria-valuemax]="max"
560
+ [attr.aria-valuenow]="value ? value[0] : null"
561
+ [attr.aria-valuetext]="valueText"
562
+ [attr.aria-disabled]="disabled ? true : undefined"
563
+ [attr.aria-readonly]="readonly ? true : undefined"
564
+ [attr.aria-orientation]="vertical ? 'vertical' : 'horizontal'"
565
+ [style.touch-action]="isDisabled ? '' : 'none'"
566
+ class="k-draghandle"
567
+ [title]="textFor('dragHandleStart')"
568
+ kendoDraggable
569
+ (kendoPress)="ifEnabled(handleDragPress ,$event)"
570
+ (kendoDrag)="ifEnabled(onHandleDrag ,$event)"
571
+ (kendoRelease)="ifEnabled(onHandleRelease, $event)"
572
+ ></span>
573
+ <span #draghandleEnd
574
+ role="slider"
575
+ [id]="endHandleId"
576
+ [attr.tabindex]="disabled ? undefined : tabindex"
577
+ [attr.aria-valuemin]="min"
578
+ [attr.aria-valuemax]="max"
579
+ [attr.aria-valuenow]="value ? value[1] : null"
580
+ [attr.aria-valuetext]="valueText"
581
+ [attr.aria-disabled]="disabled ? true : undefined"
582
+ [attr.aria-readonly]="readonly ? true : undefined"
583
+ [attr.aria-orientation]="vertical ? 'vertical' : 'horizontal'"
584
+ [style.touch-action]="isDisabled ? '' : 'none'"
585
+ class="k-draghandle"
586
+ [title]="textFor('dragHandleEnd')"
587
+ kendoDraggable
588
+ (kendoPress)="ifEnabled(handleDragPress ,$event)"
589
+ (kendoDrag)="ifEnabled(onHandleDrag ,$event)"
590
+ (kendoRelease)="ifEnabled(onHandleRelease, $event)"
591
+ ></span>
592
+ </div>
593
+ </div>
594
+ <kendo-resize-sensor (resize)="sizeComponent()"></kendo-resize-sensor>
595
+ `
596
+ }]
597
+ }], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i0.Injector }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { value: [{
598
+ type: Input
599
+ }], draghandleStart: [{
600
+ type: ViewChild,
601
+ args: ['draghandleStart', { static: true }]
602
+ }], draghandleEnd: [{
603
+ type: ViewChild,
604
+ args: ['draghandleEnd', { static: true }]
605
+ }] } });
@@ -0,0 +1,71 @@
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 { NgModule } from '@angular/core';
6
+ import { CommonModule } from '@angular/common';
7
+ import { SlidersCommonModule } from './sliders-common/sliders-common.module';
8
+ import { RangeSliderComponent } from './rangeslider/rangeslider.component';
9
+ import { LocalizedRangeSliderMessagesDirective } from './rangeslider/localization/localized-rangeslider-messages.directive';
10
+ import { RangeSliderCustomMessagesComponent } from './rangeslider/localization/custom-messages.component';
11
+ import { LabelTemplateDirective } from './sliders-common/label-template.directive';
12
+ import * as i0 from "@angular/core";
13
+ /**
14
+ * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
15
+ * definition for the RangeSlider component.
16
+ *
17
+ * @example
18
+ *
19
+ * ```ts-no-run
20
+ * // Import the Inputs module
21
+ * import { RangeSliderModule } from '@progress/kendo-angular-inputs';
22
+ *
23
+ * // The browser platform with a compiler
24
+ * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
25
+ * import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
26
+ *
27
+ * import { NgModule } from '@angular/core';
28
+ *
29
+ * // Import the app component
30
+ * import { AppComponent } from './app.component';
31
+ *
32
+ * // Define the app module
33
+ * _@NgModule({
34
+ * declarations: [AppComponent], // declare app component
35
+ * imports: [BrowserModule, BrowserAnimationsModule, RangeSliderModule], // import RangeSlider module
36
+ * bootstrap: [AppComponent]
37
+ * })
38
+ * export class AppModule {}
39
+ *
40
+ * // Compile and launch the module
41
+ * platformBrowserDynamic().bootstrapModule(AppModule);
42
+ *
43
+ * ```
44
+ */
45
+ export class RangeSliderModule {
46
+ }
47
+ RangeSliderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: RangeSliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
48
+ RangeSliderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: RangeSliderModule, declarations: [RangeSliderComponent,
49
+ RangeSliderCustomMessagesComponent,
50
+ LocalizedRangeSliderMessagesDirective], imports: [CommonModule, SlidersCommonModule], exports: [RangeSliderComponent,
51
+ RangeSliderCustomMessagesComponent,
52
+ LocalizedRangeSliderMessagesDirective,
53
+ LabelTemplateDirective] });
54
+ RangeSliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: RangeSliderModule, imports: [[CommonModule, SlidersCommonModule]] });
55
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: RangeSliderModule, decorators: [{
56
+ type: NgModule,
57
+ args: [{
58
+ declarations: [
59
+ RangeSliderComponent,
60
+ RangeSliderCustomMessagesComponent,
61
+ LocalizedRangeSliderMessagesDirective
62
+ ],
63
+ exports: [
64
+ RangeSliderComponent,
65
+ RangeSliderCustomMessagesComponent,
66
+ LocalizedRangeSliderMessagesDirective,
67
+ LabelTemplateDirective
68
+ ],
69
+ imports: [CommonModule, SlidersCommonModule]
70
+ }]
71
+ }] });