@progress/kendo-angular-inputs 17.0.0-develop.4 → 17.0.0-develop.40

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 (237) hide show
  1. package/README.md +53 -166
  2. package/checkbox/checkbox.component.d.ts +1 -1
  3. package/checkbox/checkbox.directive.d.ts +1 -1
  4. package/checkbox/checked-state.d.ts +1 -1
  5. package/colorpicker/color-contrast-svg.component.d.ts +1 -1
  6. package/colorpicker/color-gradient-numeric-label.directive.d.ts +1 -1
  7. package/colorpicker/color-gradient.component.d.ts +1 -1
  8. package/colorpicker/color-input.component.d.ts +1 -1
  9. package/colorpicker/color-palette.component.d.ts +1 -1
  10. package/colorpicker/colorpicker.component.d.ts +1 -1
  11. package/colorpicker/contrast-validation.component.d.ts +1 -1
  12. package/colorpicker/contrast.component.d.ts +1 -1
  13. package/colorpicker/flatcolorpicker-actions.component.d.ts +1 -1
  14. package/colorpicker/flatcolorpicker-header.component.d.ts +1 -1
  15. package/colorpicker/flatcolorpicker.component.d.ts +1 -1
  16. package/colorpicker/localization/messages.d.ts +1 -1
  17. package/colorpicker/models/actions-layout.d.ts +1 -1
  18. package/colorpicker/models/colorpicker-view.d.ts +1 -1
  19. package/colorpicker/models/output-format.d.ts +1 -1
  20. package/common/models/fillmode.d.ts +1 -1
  21. package/common/models/rounded.d.ts +2 -2
  22. package/common/models/size.d.ts +1 -1
  23. package/common/models/type.d.ts +1 -1
  24. package/common/radio-checkbox.base.d.ts +1 -1
  25. package/common/utils.d.ts +1 -1
  26. package/{esm2020 → esm2022}/checkbox/checkbox.component.mjs +49 -44
  27. package/{esm2020 → esm2022}/checkbox/checkbox.directive.mjs +12 -10
  28. package/{esm2020 → esm2022}/checkbox.module.mjs +4 -4
  29. package/{esm2020 → esm2022}/colorpicker/color-contrast-svg.component.mjs +13 -7
  30. package/{esm2020 → esm2022}/colorpicker/color-gradient-numeric-label.directive.mjs +6 -3
  31. package/{esm2020 → esm2022}/colorpicker/color-gradient.component.mjs +143 -126
  32. package/{esm2020 → esm2022}/colorpicker/color-input.component.mjs +70 -50
  33. package/{esm2020 → esm2022}/colorpicker/color-palette.component.mjs +129 -98
  34. package/{esm2020 → esm2022}/colorpicker/colorpicker.component.mjs +212 -159
  35. package/{esm2020 → esm2022}/colorpicker/contrast-validation.component.mjs +10 -6
  36. package/{esm2020 → esm2022}/colorpicker/contrast.component.mjs +9 -6
  37. package/{esm2020 → esm2022}/colorpicker/events/active-color-click-event.mjs +2 -1
  38. package/{esm2020 → esm2022}/colorpicker/events/cancel-event.mjs +4 -0
  39. package/{esm2020 → esm2022}/colorpicker/flatcolorpicker-actions.component.mjs +11 -8
  40. package/{esm2020 → esm2022}/colorpicker/flatcolorpicker-header.component.mjs +24 -14
  41. package/{esm2020 → esm2022}/colorpicker/flatcolorpicker.component.mjs +155 -127
  42. package/{esm2020 → esm2022}/colorpicker/localization/colorgradient-localization.service.mjs +4 -3
  43. package/{esm2020 → esm2022}/colorpicker/localization/colorpalette-localization.service.mjs +4 -3
  44. package/{esm2020 → esm2022}/colorpicker/localization/colorpicker-localization.service.mjs +3 -3
  45. package/{esm2020 → esm2022}/colorpicker/localization/custom-messages.component.mjs +9 -8
  46. package/{esm2020 → esm2022}/colorpicker/localization/flatcolorpicker-localization.service.mjs +4 -3
  47. package/{esm2020 → esm2022}/colorpicker/localization/localized-colorpicker-messages.directive.mjs +9 -8
  48. package/esm2022/colorpicker/localization/messages.mjs +183 -0
  49. package/{esm2020 → esm2022}/colorpicker/services/color-palette.service.mjs +4 -6
  50. package/{esm2020 → esm2022}/colorpicker/services/flatcolorpicker.service.mjs +3 -3
  51. package/{esm2020 → esm2022}/colorpicker.module.mjs +4 -4
  52. package/{esm2020 → esm2022}/common/radio-checkbox.base.mjs +80 -56
  53. package/{esm2020 → esm2022}/formfield/error.component.mjs +18 -20
  54. package/{esm2020 → esm2022}/formfield/formfield.component.mjs +67 -55
  55. package/{esm2020 → esm2022}/formfield/hint.component.mjs +17 -19
  56. package/{esm2020 → esm2022}/formfield.module.mjs +4 -4
  57. package/{esm2020 → esm2022}/index.mjs +0 -1
  58. package/esm2022/inputs.module.mjs +96 -0
  59. package/{esm2020 → esm2022}/maskedtextbox/maskedtextbox.component.mjs +263 -223
  60. package/{esm2020 → esm2022}/maskedtextbox/masking.service.mjs +12 -14
  61. package/{esm2020 → esm2022}/maskedtextbox/parsing/parsers.mjs +1 -0
  62. package/{esm2020 → esm2022}/maskedtextbox/parsing/result.mjs +3 -0
  63. package/{esm2020 → esm2022}/maskedtextbox/parsing/stream.mjs +4 -2
  64. package/{esm2020 → esm2022}/maskedtextbox.module.mjs +7 -7
  65. package/{esm2020 → esm2022}/numerictextbox/localization/custom-messages.component.mjs +9 -8
  66. package/{esm2020 → esm2022}/numerictextbox/localization/localized-numerictextbox-messages.directive.mjs +9 -8
  67. package/{esm2020 → esm2022}/numerictextbox/localization/messages.mjs +11 -3
  68. package/{esm2020 → esm2022}/numerictextbox/numerictextbox.component.mjs +367 -319
  69. package/{esm2020 → esm2022}/numerictextbox.module.mjs +7 -7
  70. package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
  71. package/{esm2020 → esm2022}/radiobutton/radiobutton.component.mjs +58 -51
  72. package/{esm2020 → esm2022}/radiobutton/radiobutton.directive.mjs +12 -10
  73. package/{esm2020 → esm2022}/radiobutton.module.mjs +4 -4
  74. package/{esm2020 → esm2022}/rangeslider/localization/custom-messages.component.mjs +9 -8
  75. package/{esm2020 → esm2022}/rangeslider/localization/localized-rangeslider-messages.directive.mjs +9 -8
  76. package/{esm2020 → esm2022}/rangeslider/localization/messages.mjs +11 -3
  77. package/{esm2020 → esm2022}/rangeslider/rangeslider-model.mjs +2 -0
  78. package/{esm2020 → esm2022}/rangeslider/rangeslider.component.mjs +117 -101
  79. package/{esm2020 → esm2022}/rangeslider.module.mjs +4 -4
  80. package/{esm2020 → esm2022}/rating/directives/rating-hovered-item.directive.mjs +4 -3
  81. package/{esm2020 → esm2022}/rating/directives/rating-item.directive.mjs +4 -3
  82. package/{esm2020 → esm2022}/rating/directives/rating-selected-item.directive.mjs +4 -3
  83. package/{esm2020 → esm2022}/rating/rating.component.mjs +96 -76
  84. package/{esm2020 → esm2022}/rating.module.mjs +4 -4
  85. package/{esm2020 → esm2022}/shared/input-separator.component.mjs +10 -12
  86. package/{esm2020 → esm2022}/shared/shared-events.directive.mjs +13 -7
  87. package/{esm2020 → esm2022}/shared/textarea.directive.mjs +66 -52
  88. package/{esm2020 → esm2022}/signature/localization/custom-messages.component.mjs +9 -8
  89. package/{esm2020 → esm2022}/signature/localization/localized-signature-messages.directive.mjs +9 -8
  90. package/{esm2020 → esm2022}/signature/localization/messages.mjs +19 -3
  91. package/{esm2020 → esm2022}/signature/signature.component.mjs +206 -152
  92. package/{esm2020 → esm2022}/signature.module.mjs +4 -4
  93. package/{esm2020 → esm2022}/slider/localization/custom-messages.component.mjs +9 -8
  94. package/{esm2020 → esm2022}/slider/localization/localized-slider-messages.directive.mjs +9 -8
  95. package/{esm2020 → esm2022}/slider/localization/messages.mjs +15 -3
  96. package/{esm2020 → esm2022}/slider/slider-model.mjs +1 -0
  97. package/{esm2020 → esm2022}/slider/slider.component.mjs +122 -100
  98. package/{esm2020 → esm2022}/slider.module.mjs +4 -4
  99. package/{esm2020 → esm2022}/sliders-common/label-template.directive.mjs +4 -3
  100. package/{esm2020 → esm2022}/sliders-common/slider-base.mjs +112 -90
  101. package/{esm2020 → esm2022}/sliders-common/slider-model.base.mjs +6 -0
  102. package/{esm2020 → esm2022}/sliders-common/slider-ticks.component.mjs +19 -11
  103. package/{esm2020 → esm2022}/switch/events/blur-event.mjs +4 -0
  104. package/{esm2020 → esm2022}/switch/events/focus-event.mjs +4 -0
  105. package/{esm2020 → esm2022}/switch/localization/custom-messages.component.mjs +9 -8
  106. package/{esm2020 → esm2022}/switch/localization/localized-switch-messages.directive.mjs +9 -8
  107. package/{esm2020 → esm2022}/switch/localization/messages.mjs +11 -3
  108. package/{esm2020 → esm2022}/switch/switch.component.mjs +125 -106
  109. package/{esm2020 → esm2022}/switch.module.mjs +4 -4
  110. package/esm2022/text-fields-common/text-fields-base.mjs +150 -0
  111. package/{esm2020 → esm2022}/textarea/textarea-prefix.component.mjs +12 -14
  112. package/{esm2020 → esm2022}/textarea/textarea-suffix.component.mjs +12 -14
  113. package/{esm2020 → esm2022}/textarea/textarea.component.mjs +173 -144
  114. package/{esm2020 → esm2022}/textarea.module.mjs +7 -7
  115. package/{esm2020 → esm2022}/textbox/localization/custom-messages.component.mjs +9 -8
  116. package/{esm2020 → esm2022}/textbox/localization/localized-textbox-messages.directive.mjs +9 -8
  117. package/{esm2020 → esm2022}/textbox/localization/messages.mjs +7 -3
  118. package/{esm2020 → esm2022}/textbox/textbox-prefix.directive.mjs +8 -7
  119. package/{esm2020 → esm2022}/textbox/textbox-suffix.directive.mjs +8 -7
  120. package/{esm2020 → esm2022}/textbox/textbox.component.mjs +286 -204
  121. package/{esm2020 → esm2022}/textbox/textbox.directive.mjs +36 -33
  122. package/{esm2020 → esm2022}/textbox.module.mjs +7 -7
  123. package/{fesm2020 → fesm2022}/progress-kendo-angular-inputs.mjs +3724 -2916
  124. package/formfield/error.component.d.ts +1 -1
  125. package/formfield/formfield.component.d.ts +1 -1
  126. package/formfield/hint.component.d.ts +1 -1
  127. package/formfield/models/message-align.d.ts +1 -1
  128. package/formfield/models/orientation.d.ts +1 -1
  129. package/formfield/models/show-options.d.ts +1 -1
  130. package/index.d.ts +0 -1
  131. package/inputs.module.d.ts +1 -1
  132. package/maskedtextbox/maskedtextbox.component.d.ts +1 -1
  133. package/maskedtextbox.module.d.ts +1 -1
  134. package/numerictextbox/localization/messages.d.ts +1 -1
  135. package/numerictextbox/numerictextbox.component.d.ts +1 -1
  136. package/numerictextbox.module.d.ts +1 -1
  137. package/package.json +20 -26
  138. package/radiobutton/radiobutton.component.d.ts +1 -1
  139. package/radiobutton/radiobutton.directive.d.ts +1 -1
  140. package/rangeslider/localization/messages.d.ts +1 -1
  141. package/rangeslider/rangeslider-model.d.ts +0 -1
  142. package/rangeslider/rangeslider-value.type.d.ts +1 -1
  143. package/rangeslider/rangeslider.component.d.ts +1 -1
  144. package/rating/models/precision.d.ts +1 -1
  145. package/rating/models/selection.d.ts +1 -1
  146. package/rating/rating.component.d.ts +1 -1
  147. package/shared/input-separator.component.d.ts +1 -1
  148. package/shared/shared-events.directive.d.ts +1 -1
  149. package/shared/textarea.directive.d.ts +1 -1
  150. package/signature/localization/messages.d.ts +1 -1
  151. package/signature/signature.component.d.ts +1 -1
  152. package/slider/localization/messages.d.ts +1 -1
  153. package/slider/slider-model.d.ts +0 -1
  154. package/slider/slider.component.d.ts +1 -1
  155. package/sliders-common/slider-base.d.ts +1 -1
  156. package/sliders-common/slider-ticks.component.d.ts +1 -1
  157. package/sliders-common/title-callback.d.ts +1 -1
  158. package/switch/localization/messages.d.ts +1 -1
  159. package/switch/switch.component.d.ts +1 -1
  160. package/text-fields-common/text-fields-base.d.ts +1 -1
  161. package/textarea/models/adornments-orientation.d.ts +1 -1
  162. package/textarea/models/flow.d.ts +1 -1
  163. package/textarea/models/resize.d.ts +1 -1
  164. package/textarea/textarea-prefix.component.d.ts +1 -1
  165. package/textarea/textarea-suffix.component.d.ts +1 -1
  166. package/textarea/textarea.component.d.ts +1 -1
  167. package/textarea.module.d.ts +1 -1
  168. package/textbox/localization/messages.d.ts +1 -1
  169. package/textbox/models/icon-show-options.d.ts +1 -1
  170. package/textbox/textbox-prefix.directive.d.ts +1 -1
  171. package/textbox/textbox-suffix.directive.d.ts +1 -1
  172. package/textbox/textbox.component.d.ts +1 -1
  173. package/textbox/textbox.directive.d.ts +1 -1
  174. package/textbox.module.d.ts +1 -1
  175. package/esm2020/colorpicker/localization/messages.mjs +0 -75
  176. package/esm2020/inputs.module.mjs +0 -96
  177. package/esm2020/shared.module.mjs +0 -32
  178. package/esm2020/text-fields-common/text-fields-base.mjs +0 -131
  179. package/fesm2015/progress-kendo-angular-inputs.mjs +0 -17268
  180. package/shared.module.d.ts +0 -19
  181. /package/{esm2020 → esm2022}/checkbox/checked-state.mjs +0 -0
  182. /package/{esm2020 → esm2022}/colorpicker/constants.mjs +0 -0
  183. /package/{esm2020 → esm2022}/colorpicker/events/close-event.mjs +0 -0
  184. /package/{esm2020 → esm2022}/colorpicker/events/kendo-drag-event.mjs +0 -0
  185. /package/{esm2020 → esm2022}/colorpicker/events/open-event.mjs +0 -0
  186. /package/{esm2020 → esm2022}/colorpicker/events.mjs +0 -0
  187. /package/{esm2020 → esm2022}/colorpicker/models/actions-layout.mjs +0 -0
  188. /package/{esm2020 → esm2022}/colorpicker/models/colorpicker-view.mjs +0 -0
  189. /package/{esm2020 → esm2022}/colorpicker/models/gradient-settings.mjs +0 -0
  190. /package/{esm2020 → esm2022}/colorpicker/models/hsva.mjs +0 -0
  191. /package/{esm2020 → esm2022}/colorpicker/models/output-format.mjs +0 -0
  192. /package/{esm2020 → esm2022}/colorpicker/models/palette-presets.mjs +0 -0
  193. /package/{esm2020 → esm2022}/colorpicker/models/palette-settings.mjs +0 -0
  194. /package/{esm2020 → esm2022}/colorpicker/models/popup-settings.mjs +0 -0
  195. /package/{esm2020 → esm2022}/colorpicker/models/rgb.mjs +0 -0
  196. /package/{esm2020 → esm2022}/colorpicker/models/rgba.mjs +0 -0
  197. /package/{esm2020 → esm2022}/colorpicker/models/table-cell.mjs +0 -0
  198. /package/{esm2020 → esm2022}/colorpicker/models/tile-size.mjs +0 -0
  199. /package/{esm2020 → esm2022}/colorpicker/models.mjs +0 -0
  200. /package/{esm2020 → esm2022}/colorpicker/utils/color-parser.mjs +0 -0
  201. /package/{esm2020 → esm2022}/colorpicker/utils/contrast-curve.mjs +0 -0
  202. /package/{esm2020 → esm2022}/colorpicker/utils.mjs +0 -0
  203. /package/{esm2020 → esm2022}/common/dom-utils.mjs +0 -0
  204. /package/{esm2020 → esm2022}/common/math.mjs +0 -0
  205. /package/{esm2020 → esm2022}/common/models/fillmode.mjs +0 -0
  206. /package/{esm2020 → esm2022}/common/models/rounded.mjs +0 -0
  207. /package/{esm2020 → esm2022}/common/models/size.mjs +0 -0
  208. /package/{esm2020 → esm2022}/common/models/styling-classes.mjs +0 -0
  209. /package/{esm2020 → esm2022}/common/models/type.mjs +0 -0
  210. /package/{esm2020 → esm2022}/common/models.mjs +0 -0
  211. /package/{esm2020 → esm2022}/common/utils.mjs +0 -0
  212. /package/{esm2020 → esm2022}/directives.mjs +0 -0
  213. /package/{esm2020 → esm2022}/formfield/models/message-align.mjs +0 -0
  214. /package/{esm2020 → esm2022}/formfield/models/orientation.mjs +0 -0
  215. /package/{esm2020 → esm2022}/formfield/models/show-options.mjs +0 -0
  216. /package/{esm2020 → esm2022}/maskedtextbox/parsing/combinators.mjs +0 -0
  217. /package/{esm2020 → esm2022}/numerictextbox/arrow-direction.mjs +0 -0
  218. /package/{esm2020 → esm2022}/numerictextbox/constants.mjs +0 -0
  219. /package/{esm2020 → esm2022}/numerictextbox/utils.mjs +0 -0
  220. /package/{esm2020 → esm2022}/progress-kendo-angular-inputs.mjs +0 -0
  221. /package/{esm2020 → esm2022}/rangeslider/rangeslider-value.type.mjs +0 -0
  222. /package/{esm2020 → esm2022}/rating/models/precision.mjs +0 -0
  223. /package/{esm2020 → esm2022}/rating/models/rating-item.interface.mjs +0 -0
  224. /package/{esm2020 → esm2022}/rating/models/selection.mjs +0 -0
  225. /package/{esm2020 → esm2022}/shared/utils.mjs +0 -0
  226. /package/{esm2020 → esm2022}/signature/events/close-event.mjs +0 -0
  227. /package/{esm2020 → esm2022}/signature/events/index.mjs +0 -0
  228. /package/{esm2020 → esm2022}/signature/events/open-event.mjs +0 -0
  229. /package/{esm2020 → esm2022}/signature/localization/index.mjs +0 -0
  230. /package/{esm2020 → esm2022}/sliders-common/sliders-util.mjs +0 -0
  231. /package/{esm2020 → esm2022}/sliders-common/title-callback.mjs +0 -0
  232. /package/{esm2020 → esm2022}/textarea/models/adornments-orientation.mjs +0 -0
  233. /package/{esm2020 → esm2022}/textarea/models/flow.mjs +0 -0
  234. /package/{esm2020 → esm2022}/textarea/models/resize.mjs +0 -0
  235. /package/{esm2020 → esm2022}/textbox/models/icon-show-options.mjs +0 -0
  236. /package/{esm2020 → esm2022}/validators/max.validator.mjs +0 -0
  237. /package/{esm2020 → esm2022}/validators/min.validator.mjs +0 -0
@@ -5,7 +5,7 @@
5
5
  import { NgModule } from '@angular/core';
6
6
  import { KENDO_NUMERICTEXTBOX } from './directives';
7
7
  import { IconsService } from '@progress/kendo-angular-icons';
8
- import { AdornmentsModule } from '@progress/kendo-angular-common';
8
+ import { KENDO_ADORNMENTS } from '@progress/kendo-angular-common';
9
9
  import * as i0 from "@angular/core";
10
10
  import * as i1 from "./numerictextbox/numerictextbox.component";
11
11
  import * as i2 from "./numerictextbox/localization/custom-messages.component";
@@ -43,15 +43,15 @@ import * as i3 from "@progress/kendo-angular-common";
43
43
  * ```
44
44
  */
45
45
  export class NumericTextBoxModule {
46
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NumericTextBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
47
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: NumericTextBoxModule, imports: [i1.NumericTextBoxComponent, i2.NumericTextBoxCustomMessagesComponent, i3.PrefixTemplateDirective, i3.SuffixTemplateDirective, i3.SeparatorComponent, i3.PrefixTemplateDirective, i3.SuffixTemplateDirective, i3.SeparatorComponent], exports: [i1.NumericTextBoxComponent, i2.NumericTextBoxCustomMessagesComponent, i3.PrefixTemplateDirective, i3.SuffixTemplateDirective, i3.SeparatorComponent, i3.PrefixTemplateDirective, i3.SuffixTemplateDirective, i3.SeparatorComponent] });
48
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NumericTextBoxModule, providers: [IconsService], imports: [i1.NumericTextBoxComponent, i3.SeparatorComponent, i3.SeparatorComponent] });
46
49
  }
47
- NumericTextBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NumericTextBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
48
- NumericTextBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: NumericTextBoxModule, imports: [i1.NumericTextBoxComponent, i2.NumericTextBoxCustomMessagesComponent, i3.PrefixTemplateDirective, i3.SuffixTemplateDirective, i3.SeparatorComponent], exports: [i1.NumericTextBoxComponent, i2.NumericTextBoxCustomMessagesComponent, i3.PrefixTemplateDirective, i3.SuffixTemplateDirective, i3.SeparatorComponent, AdornmentsModule] });
49
- NumericTextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NumericTextBoxModule, providers: [IconsService], imports: [i1.NumericTextBoxComponent, i2.NumericTextBoxCustomMessagesComponent, i3.SeparatorComponent, AdornmentsModule] });
50
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NumericTextBoxModule, decorators: [{
50
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NumericTextBoxModule, decorators: [{
51
51
  type: NgModule,
52
52
  args: [{
53
- imports: [...KENDO_NUMERICTEXTBOX],
54
- exports: [...KENDO_NUMERICTEXTBOX, AdornmentsModule],
53
+ imports: [...KENDO_NUMERICTEXTBOX, ...KENDO_ADORNMENTS],
54
+ exports: [...KENDO_NUMERICTEXTBOX, ...KENDO_ADORNMENTS],
55
55
  providers: [IconsService]
56
56
  }]
57
57
  }] });
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-inputs',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1728985073,
13
- version: '17.0.0-develop.4',
12
+ publishDate: 1730798878,
13
+ version: '17.0.0-develop.40',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -14,44 +14,30 @@ import { SharedInputEventsDirective } from '../shared/shared-events.directive';
14
14
  import * as i0 from "@angular/core";
15
15
  import * as i1 from "@progress/kendo-angular-l10n";
16
16
  export class RadioButtonComponent extends RadioCheckBoxBase {
17
- constructor(renderer, hostElement, cdr, ngZone, injector, localizationService) {
18
- super('radio', hostElement, renderer, cdr, ngZone, injector);
19
- this.renderer = renderer;
20
- this.hostElement = hostElement;
21
- this.cdr = cdr;
22
- this.ngZone = ngZone;
23
- this.injector = injector;
24
- this.localizationService = localizationService;
25
- this.hostClass = true;
26
- /**
27
- * Specifies the checked state of the RadioButton.
28
- *
29
- * @default false
30
- */
31
- this.checked = false;
32
- /**
33
- * Fires each time the checked state is changed.
34
- * When the state of the component is programmatically changed to `ngModel` or `formControl`
35
- * through its API or form binding, the `checkedStateChange` event is not triggered because it
36
- * might cause a mix-up with the built-in mechanisms of the `ngModel` or `formControl` bindings.
37
- *
38
- * Used to provide a two-way binding for the `checked` property.
39
- */
40
- this.checkedChange = new EventEmitter();
41
- this.subs = new Subscription();
42
- /**
43
- * @hidden
44
- */
45
- this.handleChange = ($event) => {
46
- this.ngZone.run(() => {
47
- this.checked = $event.target.checked;
48
- this.checkedChange.emit(this.checked);
49
- this.ngChange($event.target.value);
50
- });
51
- };
52
- validatePackage(packageMetadata);
53
- this.direction = localizationService.rtl ? 'rtl' : 'ltr';
54
- }
17
+ renderer;
18
+ hostElement;
19
+ cdr;
20
+ ngZone;
21
+ injector;
22
+ localizationService;
23
+ hostClass = true;
24
+ direction;
25
+ /**
26
+ * Specifies the checked state of the RadioButton.
27
+ *
28
+ * @default false
29
+ */
30
+ checked = false;
31
+ /**
32
+ * Fires each time the checked state is changed.
33
+ * When the state of the component is programmatically changed to `ngModel` or `formControl`
34
+ * through its API or form binding, the `checkedStateChange` event is not triggered because it
35
+ * might cause a mix-up with the built-in mechanisms of the `ngModel` or `formControl` bindings.
36
+ *
37
+ * Used to provide a two-way binding for the `checked` property.
38
+ */
39
+ checkedChange = new EventEmitter();
40
+ subs = new Subscription();
55
41
  get defaultAttributes() {
56
42
  return {
57
43
  type: 'radio',
@@ -66,6 +52,17 @@ export class RadioButtonComponent extends RadioCheckBoxBase {
66
52
  'aria-invalid': this.isControlInvalid
67
53
  };
68
54
  }
55
+ constructor(renderer, hostElement, cdr, ngZone, injector, localizationService) {
56
+ super('radio', hostElement, renderer, cdr, ngZone, injector);
57
+ this.renderer = renderer;
58
+ this.hostElement = hostElement;
59
+ this.cdr = cdr;
60
+ this.ngZone = ngZone;
61
+ this.injector = injector;
62
+ this.localizationService = localizationService;
63
+ validatePackage(packageMetadata);
64
+ this.direction = localizationService.rtl ? 'rtl' : 'ltr';
65
+ }
69
66
  ngOnInit() {
70
67
  super.ngOnInit();
71
68
  this.subs.add(this.localizationService.changes.subscribe(({ rtl }) => {
@@ -87,24 +84,33 @@ export class RadioButtonComponent extends RadioCheckBoxBase {
87
84
  ngOnDestroy() {
88
85
  this.subs.unsubscribe();
89
86
  }
87
+ /**
88
+ * @hidden
89
+ */
90
+ handleChange = ($event) => {
91
+ this.ngZone.run(() => {
92
+ this.checked = $event.target.checked;
93
+ this.checkedChange.emit(this.checked);
94
+ this.ngChange($event.target.value);
95
+ });
96
+ };
90
97
  /**
91
98
  * @hidden
92
99
  */
93
100
  writeValue(value) {
94
101
  this.checked = value === this.value;
95
102
  }
96
- }
97
- RadioButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RadioButtonComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.Injector }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
98
- RadioButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: RadioButtonComponent, isStandalone: true, selector: "kendo-radiobutton", inputs: { checked: "checked" }, outputs: { checkedChange: "checkedChange" }, host: { properties: { "class.k-radio-wrap": "this.hostClass", "attr.dir": "this.direction" } }, providers: [
99
- LocalizationService,
100
- { provide: L10N_PREFIX, useValue: 'kendo.radiobutton' },
101
- {
102
- provide: NG_VALUE_ACCESSOR,
103
- useExisting: forwardRef(() => RadioButtonComponent),
104
- multi: true
105
- },
106
- { provide: KendoInput, useExisting: forwardRef(() => RadioButtonComponent) }
107
- ], exportAs: ["kendoRadioButton"], usesInheritance: true, ngImport: i0, template: `
103
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RadioButtonComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.Injector }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
104
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: RadioButtonComponent, isStandalone: true, selector: "kendo-radiobutton", inputs: { checked: "checked" }, outputs: { checkedChange: "checkedChange" }, host: { properties: { "class.k-radio-wrap": "this.hostClass", "attr.dir": "this.direction" } }, providers: [
105
+ LocalizationService,
106
+ { provide: L10N_PREFIX, useValue: 'kendo.radiobutton' },
107
+ {
108
+ provide: NG_VALUE_ACCESSOR,
109
+ useExisting: forwardRef(() => RadioButtonComponent),
110
+ multi: true
111
+ },
112
+ { provide: KendoInput, useExisting: forwardRef(() => RadioButtonComponent) }
113
+ ], exportAs: ["kendoRadioButton"], usesInheritance: true, ngImport: i0, template: `
108
114
  <ng-container
109
115
  kendoInputSharedEvents
110
116
  [hostElement]="hostElement"
@@ -134,7 +140,8 @@ RadioButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
134
140
  />
135
141
  </ng-container>
136
142
  `, isInline: true, dependencies: [{ kind: "directive", type: SharedInputEventsDirective, selector: "[kendoInputSharedEvents]", inputs: ["hostElement", "clearButtonClicked", "isFocused"], outputs: ["isFocusedChange", "onFocus", "handleBlur"] }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }] });
137
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RadioButtonComponent, decorators: [{
143
+ }
144
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RadioButtonComponent, decorators: [{
138
145
  type: Component,
139
146
  args: [{
140
147
  exportAs: 'kendoRadioButton',
@@ -18,13 +18,9 @@ const DEFAULT_SIZE = 'medium';
18
18
  * ```
19
19
  */
20
20
  export class RadioButtonDirective {
21
- constructor(renderer, hostElement) {
22
- this.renderer = renderer;
23
- this.hostElement = hostElement;
24
- this.kendoClass = true;
25
- this._size = 'medium';
26
- validatePackage(packageMetadata);
27
- }
21
+ renderer;
22
+ hostElement;
23
+ kendoClass = true;
28
24
  /**
29
25
  * The size property specifies the width and height of the RadioButton
30
26
  * ([see example]({% slug appearance_radiobuttondirective %}#toc-size)).
@@ -42,6 +38,12 @@ export class RadioButtonDirective {
42
38
  get size() {
43
39
  return this._size;
44
40
  }
41
+ _size = 'medium';
42
+ constructor(renderer, hostElement) {
43
+ this.renderer = renderer;
44
+ this.hostElement = hostElement;
45
+ validatePackage(packageMetadata);
46
+ }
45
47
  ngAfterViewInit() {
46
48
  // kept in sync with other inputs for easier refactoring
47
49
  // to a common base class
@@ -60,10 +62,10 @@ export class RadioButtonDirective {
60
62
  this.renderer.addClass(elem, classes.toAdd);
61
63
  }
62
64
  }
65
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RadioButtonDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
66
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: RadioButtonDirective, isStandalone: true, selector: "input[kendoRadioButton]", inputs: { size: "size" }, host: { properties: { "class.k-radio": "this.kendoClass" } }, ngImport: i0 });
63
67
  }
64
- RadioButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RadioButtonDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
65
- RadioButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: RadioButtonDirective, isStandalone: true, selector: "input[kendoRadioButton]", inputs: { size: "size" }, host: { properties: { "class.k-radio": "this.kendoClass" } }, ngImport: i0 });
66
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RadioButtonDirective, decorators: [{
68
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RadioButtonDirective, decorators: [{
67
69
  type: Directive,
68
70
  args: [{
69
71
  selector: 'input[kendoRadioButton]',
@@ -40,11 +40,11 @@ import * as i2 from "./radiobutton/radiobutton.directive";
40
40
  * ```
41
41
  */
42
42
  export class RadioButtonModule {
43
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RadioButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
44
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: RadioButtonModule, imports: [i1.RadioButtonComponent, i2.RadioButtonDirective], exports: [i1.RadioButtonComponent, i2.RadioButtonDirective] });
45
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RadioButtonModule });
43
46
  }
44
- RadioButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RadioButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
45
- RadioButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: RadioButtonModule, imports: [i1.RadioButtonComponent, i2.RadioButtonDirective], exports: [i1.RadioButtonComponent, i2.RadioButtonDirective] });
46
- RadioButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RadioButtonModule, imports: [i1.RadioButtonComponent] });
47
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RadioButtonModule, decorators: [{
47
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RadioButtonModule, decorators: [{
48
48
  type: NgModule,
49
49
  args: [{
50
50
  imports: [...KENDO_RADIOBUTTON],
@@ -11,6 +11,7 @@ import * as i1 from "@progress/kendo-angular-l10n";
11
11
  * Custom component messages override default component messages.
12
12
  */
13
13
  export class RangeSliderCustomMessagesComponent extends RangeSliderMessages {
14
+ service;
14
15
  constructor(service) {
15
16
  super();
16
17
  this.service = service;
@@ -18,15 +19,15 @@ export class RangeSliderCustomMessagesComponent extends RangeSliderMessages {
18
19
  get override() {
19
20
  return true;
20
21
  }
22
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RangeSliderCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
23
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: RangeSliderCustomMessagesComponent, isStandalone: true, selector: "kendo-rangeslider-messages", providers: [
24
+ {
25
+ provide: RangeSliderMessages,
26
+ useExisting: forwardRef(() => RangeSliderCustomMessagesComponent)
27
+ }
28
+ ], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
21
29
  }
22
- RangeSliderCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RangeSliderCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
23
- RangeSliderCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: RangeSliderCustomMessagesComponent, isStandalone: true, selector: "kendo-rangeslider-messages", providers: [
24
- {
25
- provide: RangeSliderMessages,
26
- useExisting: forwardRef(() => RangeSliderCustomMessagesComponent)
27
- }
28
- ], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RangeSliderCustomMessagesComponent, decorators: [{
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RangeSliderCustomMessagesComponent, decorators: [{
30
31
  type: Component,
31
32
  args: [{
32
33
  providers: [
@@ -11,19 +11,20 @@ import * as i1 from "@progress/kendo-angular-l10n";
11
11
  * @hidden
12
12
  */
13
13
  export class LocalizedRangeSliderMessagesDirective extends RangeSliderMessages {
14
+ service;
14
15
  constructor(service) {
15
16
  super();
16
17
  this.service = service;
17
18
  }
19
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LocalizedRangeSliderMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
20
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: LocalizedRangeSliderMessagesDirective, isStandalone: true, selector: "[kendoSliderLocalizedMessages]", providers: [
21
+ {
22
+ provide: RangeSliderMessages,
23
+ useExisting: forwardRef(() => LocalizedRangeSliderMessagesDirective)
24
+ }
25
+ ], usesInheritance: true, ngImport: i0 });
18
26
  }
19
- LocalizedRangeSliderMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedRangeSliderMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
20
- LocalizedRangeSliderMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedRangeSliderMessagesDirective, isStandalone: true, selector: "[kendoSliderLocalizedMessages]", providers: [
21
- {
22
- provide: RangeSliderMessages,
23
- useExisting: forwardRef(() => LocalizedRangeSliderMessagesDirective)
24
- }
25
- ], usesInheritance: true, ngImport: i0 });
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedRangeSliderMessagesDirective, decorators: [{
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LocalizedRangeSliderMessagesDirective, decorators: [{
27
28
  type: Directive,
28
29
  args: [{
29
30
  providers: [
@@ -9,10 +9,18 @@ import * as i0 from "@angular/core";
9
9
  * @hidden
10
10
  */
11
11
  export class RangeSliderMessages extends ComponentMessages {
12
+ /**
13
+ * The title of the range `start` drag handle.
14
+ */
15
+ dragHandleStart;
16
+ /**
17
+ * The title of the range `end` drag handle.
18
+ */
19
+ dragHandleEnd;
20
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RangeSliderMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
21
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: RangeSliderMessages, selector: "kendo-rangeslider-messages-base", inputs: { dragHandleStart: "dragHandleStart", dragHandleEnd: "dragHandleEnd" }, usesInheritance: true, ngImport: i0 });
12
22
  }
13
- RangeSliderMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RangeSliderMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
14
- RangeSliderMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: RangeSliderMessages, selector: "kendo-rangeslider-messages-base", inputs: { dragHandleStart: "dragHandleStart", dragHandleEnd: "dragHandleEnd" }, usesInheritance: true, ngImport: i0 });
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RangeSliderMessages, decorators: [{
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RangeSliderMessages, decorators: [{
16
24
  type: Directive,
17
25
  args: [{
18
26
  // eslint-disable-next-line @angular-eslint/directive-selector
@@ -9,6 +9,8 @@ import { SliderModelBase } from '../sliders-common/slider-model.base';
9
9
  * @hidden
10
10
  */
11
11
  export class RangeSliderModel extends SliderModelBase {
12
+ startHandlePosition;
13
+ endHandlePosition;
12
14
  positionHandle(dragHandle) {
13
15
  if (!dragHandle.id) {
14
16
  return;
@@ -23,6 +23,36 @@ const PRESSED = 'k-pressed';
23
23
  * Represents the [Kendo UI RangeSlider component for Angular]({% slug overview_rangeslider %}).
24
24
  */
25
25
  export class RangeSliderComponent extends SliderBase {
26
+ localization;
27
+ injector;
28
+ renderer;
29
+ ngZone;
30
+ changeDetector;
31
+ hostElement;
32
+ /**
33
+ * Sets the range value of the RangeSlider.
34
+ * The component can use either NgModel or the `value` binding but not both of them at the same time.
35
+ */
36
+ value;
37
+ draghandleStart;
38
+ draghandleEnd;
39
+ /**
40
+ * @hidden
41
+ */
42
+ startHandleId = `k-start-handle-${guid()}`;
43
+ /**
44
+ * @hidden
45
+ */
46
+ endHandleId = `k-end-handle-${guid()}`;
47
+ /**
48
+ * @hidden
49
+ */
50
+ focusableId = this.startHandleId;
51
+ draggedHandle;
52
+ lastHandlePosition;
53
+ activeHandle = 'startHandle';
54
+ focusChangedProgrammatically = false;
55
+ isInvalid;
26
56
  constructor(localization, injector, renderer, ngZone, changeDetector, hostElement) {
27
57
  super(localization, injector, renderer, ngZone, changeDetector, hostElement);
28
58
  this.localization = localization;
@@ -31,98 +61,6 @@ export class RangeSliderComponent extends SliderBase {
31
61
  this.ngZone = ngZone;
32
62
  this.changeDetector = changeDetector;
33
63
  this.hostElement = hostElement;
34
- /**
35
- * @hidden
36
- */
37
- this.startHandleId = `k-start-handle-${guid()}`;
38
- /**
39
- * @hidden
40
- */
41
- this.endHandleId = `k-end-handle-${guid()}`;
42
- /**
43
- * @hidden
44
- */
45
- this.focusableId = this.startHandleId;
46
- this.activeHandle = 'startHandle';
47
- this.focusChangedProgrammatically = false;
48
- /**
49
- * @hidden
50
- */
51
- this.onWrapClick = (args) => {
52
- if (!this.isDisabled) {
53
- this.value = this.value || [this.min, this.min];
54
- const trackValue = eventValue(args, this.track.nativeElement, this.getProps());
55
- let newRangeValue;
56
- const [startValue, endValue] = newRangeValue = this.value;
57
- if (trackValue <= startValue) {
58
- newRangeValue = [trackValue, endValue];
59
- this.activeHandle = 'startHandle';
60
- }
61
- else if (startValue < trackValue && trackValue < endValue) {
62
- if (trackValue < (startValue + endValue) / 2) {
63
- newRangeValue = [trackValue, endValue];
64
- this.activeHandle = 'startHandle';
65
- }
66
- else {
67
- newRangeValue = [startValue, trackValue];
68
- this.activeHandle = 'endHandle';
69
- }
70
- }
71
- else if (trackValue >= endValue) {
72
- newRangeValue = [startValue, trackValue];
73
- this.activeHandle = 'endHandle';
74
- }
75
- const activeHandle = this.activeHandle === 'startHandle' ? this.draghandleStart : this.draghandleEnd;
76
- invokeElementMethod(activeHandle, 'focus');
77
- this.changeValue(newRangeValue);
78
- }
79
- };
80
- /**
81
- * @hidden
82
- */
83
- this.onKeyDown = (e) => {
84
- this.value = this.value || [this.min, this.min];
85
- const options = this.getProps();
86
- const { max, min } = options;
87
- const handler = this.keyBinding[e.keyCode];
88
- if (this.isDisabled || !handler) {
89
- return;
90
- }
91
- const startHandleIsActive = isStartHandle(e.target);
92
- const nonDraggedHandle = startHandleIsActive ? this.draghandleEnd.nativeElement : this.draghandleStart.nativeElement;
93
- this.renderer.removeStyle(nonDraggedHandle, 'zIndex');
94
- this.renderer.setStyle(e.target, 'zIndex', 1);
95
- const value = handler({ ...options, value: startHandleIsActive ? this.value[0] : this.value[1] });
96
- if (startHandleIsActive) {
97
- if (value > this.value[1]) {
98
- this.value[1] = value;
99
- }
100
- }
101
- else {
102
- if (value < this.value[0]) {
103
- this.value[0] = value;
104
- }
105
- }
106
- const trimmedValue = trimValue(max, min, value);
107
- const newValue = startHandleIsActive ? [trimmedValue, this.value[1]]
108
- : [this.value[0], trimmedValue];
109
- this.changeValue(newValue);
110
- e.preventDefault();
111
- };
112
- this.ngChange = (_) => { };
113
- this.ngTouched = () => { };
114
- this.handleBlur = () => {
115
- this.changeDetector.markForCheck();
116
- this.focused = false;
117
- if (hasObservers(this.onBlur) || requiresZoneOnBlur(this.control)) {
118
- this.ngZone.run(() => {
119
- this.ngTouched();
120
- if (!this.focusChangedProgrammatically) {
121
- this.onBlur.emit();
122
- }
123
- });
124
- }
125
- };
126
64
  }
127
65
  /**
128
66
  * Focuses the RangeSlider.
@@ -202,6 +140,38 @@ export class RangeSliderComponent extends SliderBase {
202
140
  get valueText() {
203
141
  return this.value ? `${this.value[0]} - ${this.value[1]}` : '';
204
142
  }
143
+ /**
144
+ * @hidden
145
+ */
146
+ onWrapClick = (args) => {
147
+ if (!this.isDisabled) {
148
+ this.value = this.value || [this.min, this.min];
149
+ const trackValue = eventValue(args, this.track.nativeElement, this.getProps());
150
+ let newRangeValue;
151
+ const [startValue, endValue] = newRangeValue = this.value;
152
+ if (trackValue <= startValue) {
153
+ newRangeValue = [trackValue, endValue];
154
+ this.activeHandle = 'startHandle';
155
+ }
156
+ else if (startValue < trackValue && trackValue < endValue) {
157
+ if (trackValue < (startValue + endValue) / 2) {
158
+ newRangeValue = [trackValue, endValue];
159
+ this.activeHandle = 'startHandle';
160
+ }
161
+ else {
162
+ newRangeValue = [startValue, trackValue];
163
+ this.activeHandle = 'endHandle';
164
+ }
165
+ }
166
+ else if (trackValue >= endValue) {
167
+ newRangeValue = [startValue, trackValue];
168
+ this.activeHandle = 'endHandle';
169
+ }
170
+ const activeHandle = this.activeHandle === 'startHandle' ? this.draghandleStart : this.draghandleEnd;
171
+ invokeElementMethod(activeHandle, 'focus');
172
+ this.changeValue(newRangeValue);
173
+ }
174
+ };
205
175
  /**
206
176
  * @hidden
207
177
  */
@@ -254,6 +224,38 @@ export class RangeSliderComponent extends SliderBase {
254
224
  activeStartHandle ? moveStartHandle() : moveEndHandle();
255
225
  }
256
226
  }
227
+ /**
228
+ * @hidden
229
+ */
230
+ onKeyDown = (e) => {
231
+ this.value = this.value || [this.min, this.min];
232
+ const options = this.getProps();
233
+ const { max, min } = options;
234
+ const handler = this.keyBinding[e.keyCode];
235
+ if (this.isDisabled || !handler) {
236
+ return;
237
+ }
238
+ const startHandleIsActive = isStartHandle(e.target);
239
+ const nonDraggedHandle = startHandleIsActive ? this.draghandleEnd.nativeElement : this.draghandleStart.nativeElement;
240
+ this.renderer.removeStyle(nonDraggedHandle, 'zIndex');
241
+ this.renderer.setStyle(e.target, 'zIndex', 1);
242
+ const value = handler({ ...options, value: startHandleIsActive ? this.value[0] : this.value[1] });
243
+ if (startHandleIsActive) {
244
+ if (value > this.value[1]) {
245
+ this.value[1] = value;
246
+ }
247
+ }
248
+ else {
249
+ if (value < this.value[0]) {
250
+ this.value[0] = value;
251
+ }
252
+ }
253
+ const trimmedValue = trimValue(max, min, value);
254
+ const newValue = startHandleIsActive ? [trimmedValue, this.value[1]]
255
+ : [this.value[0], trimmedValue];
256
+ this.changeValue(newValue);
257
+ e.preventDefault();
258
+ };
257
259
  /**
258
260
  * @hidden
259
261
  */
@@ -358,6 +360,8 @@ export class RangeSliderComponent extends SliderBase {
358
360
  this.isDragged = data.value;
359
361
  }
360
362
  }
363
+ ngChange = (_) => { };
364
+ ngTouched = () => { };
361
365
  getProps() {
362
366
  return {
363
367
  disabled: this.disabled,
@@ -428,14 +432,25 @@ export class RangeSliderComponent extends SliderBase {
428
432
  }));
429
433
  });
430
434
  }
431
- }
432
- RangeSliderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", 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 });
433
- RangeSliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: RangeSliderComponent, isStandalone: true, selector: "kendo-rangeslider", inputs: { value: "value" }, providers: [
434
- LocalizationService,
435
- { provide: L10N_PREFIX, useValue: 'kendo.rangeslider' },
436
- { multi: true, provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => RangeSliderComponent) },
437
- { provide: KendoInput, useExisting: forwardRef(() => RangeSliderComponent) }
438
- ], 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: `
435
+ handleBlur = () => {
436
+ this.changeDetector.markForCheck();
437
+ this.focused = false;
438
+ if (hasObservers(this.onBlur) || requiresZoneOnBlur(this.control)) {
439
+ this.ngZone.run(() => {
440
+ this.ngTouched();
441
+ if (!this.focusChangedProgrammatically) {
442
+ this.onBlur.emit();
443
+ }
444
+ });
445
+ }
446
+ };
447
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.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 });
448
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: RangeSliderComponent, isStandalone: true, selector: "kendo-rangeslider", inputs: { value: "value" }, providers: [
449
+ LocalizationService,
450
+ { provide: L10N_PREFIX, useValue: 'kendo.rangeslider' },
451
+ { multi: true, provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => RangeSliderComponent) },
452
+ { provide: KendoInput, useExisting: forwardRef(() => RangeSliderComponent) }
453
+ ], 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: `
439
454
  <ng-container kendoSliderLocalizedMessages
440
455
  i18n-dragHandleStart="kendo.rangeslider.dragHandleStart|The title of the **Start** drag handle of the Slider."
441
456
  dragHandleStart="Drag"
@@ -508,7 +523,8 @@ RangeSliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
508
523
  </div>
509
524
  <kendo-resize-sensor (resize)="sizeComponent()"></kendo-resize-sensor>
510
525
  `, isInline: true, dependencies: [{ kind: "directive", type: LocalizedRangeSliderMessagesDirective, selector: "[kendoSliderLocalizedMessages]" }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: SliderTicksComponent, selector: "[kendoSliderTicks]", inputs: ["tickTitle", "vertical", "step", "largeStep", "min", "max", "labelTemplate"] }, { kind: "directive", type: DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }] });
511
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RangeSliderComponent, decorators: [{
526
+ }
527
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RangeSliderComponent, decorators: [{
512
528
  type: Component,
513
529
  args: [{
514
530
  exportAs: 'kendoRangeSlider',
@@ -43,11 +43,11 @@ import * as i3 from "./sliders-common/label-template.directive";
43
43
  * ```
44
44
  */
45
45
  export class RangeSliderModule {
46
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RangeSliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
47
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: RangeSliderModule, imports: [i1.RangeSliderComponent, i2.RangeSliderCustomMessagesComponent, i3.LabelTemplateDirective], exports: [i1.RangeSliderComponent, i2.RangeSliderCustomMessagesComponent, i3.LabelTemplateDirective] });
48
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RangeSliderModule, providers: [ResizeBatchService], imports: [i1.RangeSliderComponent] });
46
49
  }
47
- RangeSliderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RangeSliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
48
- RangeSliderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: RangeSliderModule, imports: [i1.RangeSliderComponent, i2.RangeSliderCustomMessagesComponent, i3.LabelTemplateDirective], exports: [i1.RangeSliderComponent, i2.RangeSliderCustomMessagesComponent, i3.LabelTemplateDirective] });
49
- RangeSliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RangeSliderModule, providers: [ResizeBatchService], imports: [i1.RangeSliderComponent, i2.RangeSliderCustomMessagesComponent] });
50
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RangeSliderModule, decorators: [{
50
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RangeSliderModule, decorators: [{
51
51
  type: NgModule,
52
52
  args: [{
53
53
  imports: [...KENDO_RANGESLIDER],