@progress/kendo-react-inputs 6.1.1-dev.202311151536 → 7.0.0-develop.1

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 (498) hide show
  1. package/LICENSE.md +1 -1
  2. package/{dist/npm/checkbox → checkbox}/Checkbox.d.ts +4 -0
  3. package/checkbox/interfaces/CheckboxBlurEvent.d.ts +11 -0
  4. package/checkbox/interfaces/CheckboxChangeEvent.d.ts +15 -0
  5. package/checkbox/interfaces/CheckboxFocusEvent.d.ts +11 -0
  6. package/{dist/es/checkbox → checkbox}/interfaces/CheckboxProps.d.ts +5 -2
  7. package/colors/ColorContrastLabels.d.ts +19 -0
  8. package/{dist/es/colors → colors}/ColorContrastSvg.d.ts +5 -1
  9. package/{dist/es/colors → colors}/ColorGradient.d.ts +10 -5
  10. package/{dist/es/colors → colors}/ColorInput.d.ts +6 -2
  11. package/{dist/npm/colors → colors}/ColorPalette.d.ts +6 -2
  12. package/{dist/npm/colors → colors}/ColorPicker.d.ts +4 -0
  13. package/{dist/npm/colors → colors}/FlatColorPicker.d.ts +4 -0
  14. package/{dist/npm/colors → colors}/HexInput.d.ts +5 -1
  15. package/colors/Picker.d.ts +10 -0
  16. package/colors/interfaces/ColorGradientChangeEvent.d.ts +15 -0
  17. package/{dist/es/colors → colors}/interfaces/ColorGradientProps.d.ts +4 -1
  18. package/{dist/npm/colors → colors}/interfaces/ColorPaletteChangeEvent.d.ts +4 -0
  19. package/{dist/npm/colors → colors}/interfaces/ColorPaletteProps.d.ts +4 -0
  20. package/{dist/npm/colors → colors}/interfaces/ColorPickerActiveColorClick.d.ts +4 -1
  21. package/colors/interfaces/ColorPickerBlurEvent.d.ts +17 -0
  22. package/colors/interfaces/ColorPickerChangeEvent.d.ts +21 -0
  23. package/colors/interfaces/ColorPickerFocusEvent.d.ts +17 -0
  24. package/{dist/es/colors → colors}/interfaces/ColorPickerGradientSettings.d.ts +4 -0
  25. package/{dist/es/colors → colors}/interfaces/ColorPickerPaletteSettings.d.ts +4 -0
  26. package/{dist/npm/colors → colors}/interfaces/ColorPickerPopupSettings.d.ts +4 -0
  27. package/{dist/npm/colors → colors}/interfaces/ColorPickerProps.d.ts +4 -0
  28. package/colors/interfaces/ColorPickerView.d.ts +14 -0
  29. package/{dist/es/colors → colors}/interfaces/PickerPopupSettings.d.ts +4 -1
  30. package/{dist/es/colors → colors}/interfaces/PickerProps.d.ts +4 -0
  31. package/colors/models/hsva.d.ts +13 -0
  32. package/colors/models/output-format.d.ts +8 -0
  33. package/{dist/es/colors → colors}/models/palette-presets.d.ts +4 -0
  34. package/colors/models/rgb.d.ts +12 -0
  35. package/colors/models/rgba.d.ts +13 -0
  36. package/colors/models/table-cell.d.ts +11 -0
  37. package/colors/models/tile-size.d.ts +15 -0
  38. package/{dist/npm/colors → colors}/utils/color-cache.d.ts +4 -0
  39. package/{dist/es/colors → colors}/utils/color-palette.service.d.ts +4 -0
  40. package/{dist/es/colors → colors}/utils/color-parser.d.ts +4 -0
  41. package/{dist/es/colors → colors}/utils/misc.d.ts +4 -0
  42. package/{dist/es/colors → colors}/utils/svg-calc.d.ts +4 -0
  43. package/dist/cdn/js/kendo-react-inputs.js +21 -1
  44. package/{dist/es/main.js → index.d.ts} +19 -12
  45. package/index.js +21 -0
  46. package/index.mjs +5030 -0
  47. package/{dist/npm/input → input}/Input.d.ts +7 -3
  48. package/input/InputClearValue.d.ts +19 -0
  49. package/input/InputPrefix.d.ts +19 -0
  50. package/input/InputSeparator.d.ts +19 -0
  51. package/input/InputSuffix.d.ts +19 -0
  52. package/{dist/es/input → input}/InputValidationIcon.d.ts +6 -2
  53. package/input/interfaces/InputChangeEvent.d.ts +15 -0
  54. package/interfaces/Direction.d.ts +5 -0
  55. package/interfaces/ToggleBaseProps.d.ts +12 -0
  56. package/{dist/npm/maskedtextbox → maskedtextbox}/MaskedTextBox.d.ts +10 -6
  57. package/{dist/es/maskedtextbox → maskedtextbox}/MaskedTextBoxProps.d.ts +4 -1
  58. package/{dist/npm/maskedtextbox → maskedtextbox}/masking.service.d.ts +4 -0
  59. package/maskedtextbox/parsing/combinators.d.ts +13 -0
  60. package/{dist/npm/maskedtextbox → maskedtextbox}/parsing/parsers.d.ts +4 -0
  61. package/{dist/es/maskedtextbox → maskedtextbox}/parsing/result.d.ts +4 -0
  62. package/{dist/npm/maskedtextbox → maskedtextbox}/parsing/stream.d.ts +4 -0
  63. package/{dist/es/maskedtextbox → maskedtextbox}/utils.d.ts +4 -0
  64. package/{dist/npm/messages → messages}/index.d.ts +4 -0
  65. package/{dist/npm/numerictextbox → numerictextbox}/NumericTextBox.d.ts +4 -0
  66. package/numerictextbox/interfaces/NumericTextBoxBlurEvent.d.ts +11 -0
  67. package/{dist/es/numerictextbox → numerictextbox}/interfaces/NumericTextBoxChangeEvent.d.ts +4 -0
  68. package/numerictextbox/interfaces/NumericTextBoxFocusEvent.d.ts +11 -0
  69. package/{dist/npm/numerictextbox → numerictextbox}/interfaces/NumericTextBoxHandle.d.ts +4 -0
  70. package/{dist/npm/numerictextbox → numerictextbox}/interfaces/NumericTextBoxProps.d.ts +5 -2
  71. package/{dist/es/numerictextbox → numerictextbox}/interfaces/NumericTextBoxState.d.ts +4 -0
  72. package/{dist/npm/numerictextbox → numerictextbox}/utils/index.d.ts +4 -0
  73. package/package-metadata.d.ts +9 -0
  74. package/package.json +36 -55
  75. package/{dist/es/radiobutton → radiobutton}/RadioButton.d.ts +4 -0
  76. package/{dist/es/radiobutton → radiobutton}/RadioGroup.d.ts +4 -0
  77. package/radiobutton/interfaces/RadioButtonBlurEvent.d.ts +11 -0
  78. package/radiobutton/interfaces/RadioButtonChangeEvent.d.ts +15 -0
  79. package/radiobutton/interfaces/RadioButtonFocusEvent.d.ts +11 -0
  80. package/{dist/npm/radiobutton → radiobutton}/interfaces/RadioButtonProps.d.ts +5 -2
  81. package/radiobutton/interfaces/RadioGroupChangeEvent.d.ts +15 -0
  82. package/radiobutton/interfaces/RadioGroupFocusEvent.d.ts +11 -0
  83. package/{dist/es/radiobutton → radiobutton}/interfaces/RadioGroupProps.d.ts +4 -0
  84. package/{dist/es/range-slider → range-slider}/RangeSlider.d.ts +5 -1
  85. package/{dist/es/range-slider → range-slider}/range-raducer.d.ts +5 -1
  86. package/{dist/npm/rating → rating}/Rating.d.ts +4 -0
  87. package/{dist/es/rating → rating}/RatingItem.d.ts +4 -0
  88. package/{dist/es/rating → rating}/models/index.d.ts +4 -1
  89. package/{dist/npm/rating → rating}/rating-reducer.d.ts +6 -3
  90. package/{dist/npm/rating → rating}/utils/index.d.ts +4 -0
  91. package/{dist/es/signature → signature}/Signature.d.ts +4 -0
  92. package/signature/interfaces/SignatureBlurEvent.d.ts +11 -0
  93. package/signature/interfaces/SignatureChangeEvent.d.ts +15 -0
  94. package/signature/interfaces/SignatureCloseEvent.d.ts +11 -0
  95. package/signature/interfaces/SignatureFocusEvent.d.ts +11 -0
  96. package/{dist/npm/signature → signature}/interfaces/SignatureHandle.d.ts +4 -0
  97. package/signature/interfaces/SignatureOpenEvent.d.ts +11 -0
  98. package/{dist/es/signature → signature}/interfaces/SignatureProps.d.ts +4 -1
  99. package/signature/interfaces/index.d.ts +11 -0
  100. package/signature/utils/index.d.ts +8 -0
  101. package/{dist/npm/slider → slider}/Slider.d.ts +6 -2
  102. package/{dist/es/slider → slider}/SliderLabel.d.ts +5 -1
  103. package/{dist/es/switch → switch}/Switch.d.ts +10 -6
  104. package/{dist/npm/textarea → textarea}/TextArea.d.ts +4 -0
  105. package/textarea/interfaces/TextAreaBlurEvent.d.ts +11 -0
  106. package/textarea/interfaces/TextAreaChangeEvent.d.ts +15 -0
  107. package/textarea/interfaces/TextAreaFocusEvent.d.ts +11 -0
  108. package/{dist/npm/textarea → textarea}/interfaces/TextAreaProps.d.ts +5 -2
  109. package/{dist/es/textbox → textbox}/Textbox.d.ts +5 -1
  110. package/about.md +0 -3
  111. package/dist/es/checkbox/Checkbox.d.ts +0 -32
  112. package/dist/es/checkbox/Checkbox.js +0 -204
  113. package/dist/es/checkbox/interfaces/CheckboxBlurEvent.d.ts +0 -7
  114. package/dist/es/checkbox/interfaces/CheckboxBlurEvent.js +0 -1
  115. package/dist/es/checkbox/interfaces/CheckboxChangeEvent.d.ts +0 -11
  116. package/dist/es/checkbox/interfaces/CheckboxChangeEvent.js +0 -1
  117. package/dist/es/checkbox/interfaces/CheckboxFocusEvent.d.ts +0 -7
  118. package/dist/es/checkbox/interfaces/CheckboxFocusEvent.js +0 -1
  119. package/dist/es/checkbox/interfaces/CheckboxProps.js +0 -1
  120. package/dist/es/colors/ColorContrastLabels.d.ts +0 -15
  121. package/dist/es/colors/ColorContrastLabels.js +0 -68
  122. package/dist/es/colors/ColorContrastSvg.js +0 -88
  123. package/dist/es/colors/ColorGradient.js +0 -316
  124. package/dist/es/colors/ColorInput.js +0 -125
  125. package/dist/es/colors/ColorPalette.d.ts +0 -123
  126. package/dist/es/colors/ColorPalette.js +0 -280
  127. package/dist/es/colors/ColorPicker.d.ts +0 -30
  128. package/dist/es/colors/ColorPicker.js +0 -246
  129. package/dist/es/colors/FlatColorPicker.d.ts +0 -135
  130. package/dist/es/colors/FlatColorPicker.js +0 -176
  131. package/dist/es/colors/HexInput.d.ts +0 -29
  132. package/dist/es/colors/HexInput.js +0 -54
  133. package/dist/es/colors/Picker.d.ts +0 -6
  134. package/dist/es/colors/Picker.js +0 -36
  135. package/dist/es/colors/interfaces/ColorGradientChangeEvent.d.ts +0 -11
  136. package/dist/es/colors/interfaces/ColorGradientChangeEvent.js +0 -1
  137. package/dist/es/colors/interfaces/ColorGradientProps.js +0 -1
  138. package/dist/es/colors/interfaces/ColorPaletteChangeEvent.d.ts +0 -15
  139. package/dist/es/colors/interfaces/ColorPaletteChangeEvent.js +0 -1
  140. package/dist/es/colors/interfaces/ColorPaletteProps.d.ts +0 -83
  141. package/dist/es/colors/interfaces/ColorPaletteProps.js +0 -1
  142. package/dist/es/colors/interfaces/ColorPickerActiveColorClick.d.ts +0 -18
  143. package/dist/es/colors/interfaces/ColorPickerActiveColorClick.js +0 -1
  144. package/dist/es/colors/interfaces/ColorPickerBlurEvent.d.ts +0 -14
  145. package/dist/es/colors/interfaces/ColorPickerBlurEvent.js +0 -1
  146. package/dist/es/colors/interfaces/ColorPickerChangeEvent.d.ts +0 -18
  147. package/dist/es/colors/interfaces/ColorPickerChangeEvent.js +0 -1
  148. package/dist/es/colors/interfaces/ColorPickerFocusEvent.d.ts +0 -14
  149. package/dist/es/colors/interfaces/ColorPickerFocusEvent.js +0 -1
  150. package/dist/es/colors/interfaces/ColorPickerGradientSettings.js +0 -1
  151. package/dist/es/colors/interfaces/ColorPickerPaletteSettings.js +0 -1
  152. package/dist/es/colors/interfaces/ColorPickerPopupSettings.d.ts +0 -14
  153. package/dist/es/colors/interfaces/ColorPickerPopupSettings.js +0 -1
  154. package/dist/es/colors/interfaces/ColorPickerProps.d.ts +0 -161
  155. package/dist/es/colors/interfaces/ColorPickerProps.js +0 -1
  156. package/dist/es/colors/interfaces/ColorPickerView.d.ts +0 -10
  157. package/dist/es/colors/interfaces/ColorPickerView.js +0 -1
  158. package/dist/es/colors/interfaces/PickerPopupSettings.js +0 -1
  159. package/dist/es/colors/interfaces/PickerProps.js +0 -1
  160. package/dist/es/colors/models/hsva.d.ts +0 -9
  161. package/dist/es/colors/models/hsva.js +0 -1
  162. package/dist/es/colors/models/output-format.d.ts +0 -4
  163. package/dist/es/colors/models/output-format.js +0 -1
  164. package/dist/es/colors/models/palette-presets.js +0 -54
  165. package/dist/es/colors/models/rgb.d.ts +0 -8
  166. package/dist/es/colors/models/rgb.js +0 -1
  167. package/dist/es/colors/models/rgba.d.ts +0 -9
  168. package/dist/es/colors/models/rgba.js +0 -1
  169. package/dist/es/colors/models/table-cell.d.ts +0 -7
  170. package/dist/es/colors/models/table-cell.js +0 -1
  171. package/dist/es/colors/models/tile-size.d.ts +0 -11
  172. package/dist/es/colors/models/tile-size.js +0 -1
  173. package/dist/es/colors/utils/color-cache.d.ts +0 -30
  174. package/dist/es/colors/utils/color-cache.js +0 -61
  175. package/dist/es/colors/utils/color-palette.service.js +0 -76
  176. package/dist/es/colors/utils/color-parser.js +0 -134
  177. package/dist/es/colors/utils/misc.js +0 -20
  178. package/dist/es/colors/utils/svg-calc.js +0 -103
  179. package/dist/es/common/SliderTooltip.d.ts +0 -18
  180. package/dist/es/common/SliderTooltip.js +0 -50
  181. package/dist/es/common/SwitchController.d.ts +0 -31
  182. package/dist/es/common/SwitchController.js +0 -122
  183. package/dist/es/common/SwitchModel.d.ts +0 -7
  184. package/dist/es/common/SwitchModel.js +0 -14
  185. package/dist/es/input/Input.d.ts +0 -167
  186. package/dist/es/input/Input.js +0 -259
  187. package/dist/es/input/InputClearValue.d.ts +0 -15
  188. package/dist/es/input/InputClearValue.js +0 -24
  189. package/dist/es/input/InputPrefix.d.ts +0 -15
  190. package/dist/es/input/InputPrefix.js +0 -24
  191. package/dist/es/input/InputSeparator.d.ts +0 -15
  192. package/dist/es/input/InputSeparator.js +0 -24
  193. package/dist/es/input/InputSuffix.d.ts +0 -15
  194. package/dist/es/input/InputSuffix.js +0 -24
  195. package/dist/es/input/InputValidationIcon.js +0 -20
  196. package/dist/es/input/interfaces/InputChangeEvent.d.ts +0 -11
  197. package/dist/es/input/interfaces/InputChangeEvent.js +0 -1
  198. package/dist/es/interfaces/Direction.d.ts +0 -1
  199. package/dist/es/interfaces/Direction.js +0 -1
  200. package/dist/es/interfaces/ToggleBaseProps.d.ts +0 -8
  201. package/dist/es/interfaces/ToggleBaseProps.js +0 -1
  202. package/dist/es/main.d.ts +0 -68
  203. package/dist/es/maskedtextbox/MaskedTextBox.d.ts +0 -234
  204. package/dist/es/maskedtextbox/MaskedTextBox.js +0 -434
  205. package/dist/es/maskedtextbox/MaskedTextBoxProps.js +0 -2
  206. package/dist/es/maskedtextbox/masking.service.d.ts +0 -41
  207. package/dist/es/maskedtextbox/masking.service.js +0 -206
  208. package/dist/es/maskedtextbox/parsing/combinators.d.ts +0 -9
  209. package/dist/es/maskedtextbox/parsing/combinators.js +0 -24
  210. package/dist/es/maskedtextbox/parsing/parsers.d.ts +0 -47
  211. package/dist/es/maskedtextbox/parsing/parsers.js +0 -150
  212. package/dist/es/maskedtextbox/parsing/result.js +0 -39
  213. package/dist/es/maskedtextbox/parsing/stream.d.ts +0 -22
  214. package/dist/es/maskedtextbox/parsing/stream.js +0 -41
  215. package/dist/es/maskedtextbox/utils.js +0 -56
  216. package/dist/es/messages/index.d.ts +0 -165
  217. package/dist/es/messages/index.js +0 -166
  218. package/dist/es/numerictextbox/NumericTextBox.d.ts +0 -14
  219. package/dist/es/numerictextbox/NumericTextBox.js +0 -355
  220. package/dist/es/numerictextbox/interfaces/NumericTextBoxBlurEvent.d.ts +0 -7
  221. package/dist/es/numerictextbox/interfaces/NumericTextBoxBlurEvent.js +0 -1
  222. package/dist/es/numerictextbox/interfaces/NumericTextBoxChangeEvent.js +0 -1
  223. package/dist/es/numerictextbox/interfaces/NumericTextBoxFocusEvent.d.ts +0 -7
  224. package/dist/es/numerictextbox/interfaces/NumericTextBoxFocusEvent.js +0 -1
  225. package/dist/es/numerictextbox/interfaces/NumericTextBoxHandle.d.ts +0 -39
  226. package/dist/es/numerictextbox/interfaces/NumericTextBoxHandle.js +0 -1
  227. package/dist/es/numerictextbox/interfaces/NumericTextBoxProps.d.ts +0 -185
  228. package/dist/es/numerictextbox/interfaces/NumericTextBoxProps.js +0 -1
  229. package/dist/es/numerictextbox/interfaces/NumericTextBoxState.js +0 -1
  230. package/dist/es/numerictextbox/utils/index.d.ts +0 -119
  231. package/dist/es/numerictextbox/utils/index.js +0 -553
  232. package/dist/es/package-metadata.d.ts +0 -5
  233. package/dist/es/package-metadata.js +0 -11
  234. package/dist/es/radiobutton/RadioButton.js +0 -108
  235. package/dist/es/radiobutton/RadioGroup.js +0 -102
  236. package/dist/es/radiobutton/interfaces/RadioButtonBlurEvent.d.ts +0 -7
  237. package/dist/es/radiobutton/interfaces/RadioButtonBlurEvent.js +0 -1
  238. package/dist/es/radiobutton/interfaces/RadioButtonChangeEvent.d.ts +0 -11
  239. package/dist/es/radiobutton/interfaces/RadioButtonChangeEvent.js +0 -1
  240. package/dist/es/radiobutton/interfaces/RadioButtonFocusEvent.d.ts +0 -7
  241. package/dist/es/radiobutton/interfaces/RadioButtonFocusEvent.js +0 -1
  242. package/dist/es/radiobutton/interfaces/RadioButtonProps.d.ts +0 -98
  243. package/dist/es/radiobutton/interfaces/RadioButtonProps.js +0 -1
  244. package/dist/es/radiobutton/interfaces/RadioGroupChangeEvent.d.ts +0 -11
  245. package/dist/es/radiobutton/interfaces/RadioGroupChangeEvent.js +0 -1
  246. package/dist/es/radiobutton/interfaces/RadioGroupFocusEvent.d.ts +0 -7
  247. package/dist/es/radiobutton/interfaces/RadioGroupFocusEvent.js +0 -1
  248. package/dist/es/radiobutton/interfaces/RadioGroupProps.js +0 -1
  249. package/dist/es/range-slider/RangeSlider.js +0 -314
  250. package/dist/es/range-slider/range-raducer.js +0 -114
  251. package/dist/es/rating/Rating.d.ts +0 -166
  252. package/dist/es/rating/Rating.js +0 -283
  253. package/dist/es/rating/RatingItem.js +0 -96
  254. package/dist/es/rating/models/index.js +0 -1
  255. package/dist/es/rating/rating-reducer.d.ts +0 -33
  256. package/dist/es/rating/rating-reducer.js +0 -63
  257. package/dist/es/rating/utils/index.d.ts +0 -24
  258. package/dist/es/rating/utils/index.js +0 -64
  259. package/dist/es/signature/Signature.js +0 -386
  260. package/dist/es/signature/interfaces/SignatureBlurEvent.d.ts +0 -7
  261. package/dist/es/signature/interfaces/SignatureBlurEvent.js +0 -1
  262. package/dist/es/signature/interfaces/SignatureChangeEvent.d.ts +0 -11
  263. package/dist/es/signature/interfaces/SignatureChangeEvent.js +0 -1
  264. package/dist/es/signature/interfaces/SignatureCloseEvent.d.ts +0 -7
  265. package/dist/es/signature/interfaces/SignatureCloseEvent.js +0 -1
  266. package/dist/es/signature/interfaces/SignatureFocusEvent.d.ts +0 -7
  267. package/dist/es/signature/interfaces/SignatureFocusEvent.js +0 -1
  268. package/dist/es/signature/interfaces/SignatureHandle.d.ts +0 -42
  269. package/dist/es/signature/interfaces/SignatureHandle.js +0 -1
  270. package/dist/es/signature/interfaces/SignatureOpenEvent.d.ts +0 -7
  271. package/dist/es/signature/interfaces/SignatureOpenEvent.js +0 -1
  272. package/dist/es/signature/interfaces/SignatureProps.js +0 -1
  273. package/dist/es/signature/interfaces/index.d.ts +0 -7
  274. package/dist/es/signature/interfaces/index.js +0 -1
  275. package/dist/es/signature/utils/index.d.ts +0 -4
  276. package/dist/es/signature/utils/index.js +0 -10
  277. package/dist/es/slider/Slider.d.ts +0 -193
  278. package/dist/es/slider/Slider.js +0 -256
  279. package/dist/es/slider/SliderLabel.js +0 -30
  280. package/dist/es/switch/Switch.js +0 -331
  281. package/dist/es/textarea/TextArea.d.ts +0 -36
  282. package/dist/es/textarea/TextArea.js +0 -158
  283. package/dist/es/textarea/interfaces/TextAreaBlurEvent.d.ts +0 -7
  284. package/dist/es/textarea/interfaces/TextAreaBlurEvent.js +0 -1
  285. package/dist/es/textarea/interfaces/TextAreaChangeEvent.d.ts +0 -11
  286. package/dist/es/textarea/interfaces/TextAreaChangeEvent.js +0 -1
  287. package/dist/es/textarea/interfaces/TextAreaFocusEvent.d.ts +0 -7
  288. package/dist/es/textarea/interfaces/TextAreaFocusEvent.js +0 -1
  289. package/dist/es/textarea/interfaces/TextAreaProps.d.ts +0 -129
  290. package/dist/es/textarea/interfaces/TextAreaProps.js +0 -1
  291. package/dist/es/textbox/Textbox.js +0 -112
  292. package/dist/es/utils.d.ts +0 -4
  293. package/dist/es/utils.js +0 -29
  294. package/dist/npm/checkbox/Checkbox.js +0 -207
  295. package/dist/npm/checkbox/interfaces/CheckboxBlurEvent.d.ts +0 -7
  296. package/dist/npm/checkbox/interfaces/CheckboxBlurEvent.js +0 -2
  297. package/dist/npm/checkbox/interfaces/CheckboxChangeEvent.d.ts +0 -11
  298. package/dist/npm/checkbox/interfaces/CheckboxChangeEvent.js +0 -2
  299. package/dist/npm/checkbox/interfaces/CheckboxFocusEvent.d.ts +0 -7
  300. package/dist/npm/checkbox/interfaces/CheckboxFocusEvent.js +0 -2
  301. package/dist/npm/checkbox/interfaces/CheckboxProps.d.ts +0 -123
  302. package/dist/npm/checkbox/interfaces/CheckboxProps.js +0 -2
  303. package/dist/npm/colors/ColorContrastLabels.d.ts +0 -15
  304. package/dist/npm/colors/ColorContrastLabels.js +0 -71
  305. package/dist/npm/colors/ColorContrastSvg.d.ts +0 -18
  306. package/dist/npm/colors/ColorContrastSvg.js +0 -91
  307. package/dist/npm/colors/ColorGradient.d.ts +0 -186
  308. package/dist/npm/colors/ColorGradient.js +0 -319
  309. package/dist/npm/colors/ColorInput.d.ts +0 -30
  310. package/dist/npm/colors/ColorInput.js +0 -127
  311. package/dist/npm/colors/ColorPalette.js +0 -283
  312. package/dist/npm/colors/ColorPicker.js +0 -249
  313. package/dist/npm/colors/FlatColorPicker.js +0 -179
  314. package/dist/npm/colors/HexInput.js +0 -56
  315. package/dist/npm/colors/Picker.d.ts +0 -6
  316. package/dist/npm/colors/Picker.js +0 -40
  317. package/dist/npm/colors/interfaces/ColorGradientChangeEvent.d.ts +0 -11
  318. package/dist/npm/colors/interfaces/ColorGradientChangeEvent.js +0 -2
  319. package/dist/npm/colors/interfaces/ColorGradientProps.d.ts +0 -98
  320. package/dist/npm/colors/interfaces/ColorGradientProps.js +0 -2
  321. package/dist/npm/colors/interfaces/ColorPaletteChangeEvent.js +0 -2
  322. package/dist/npm/colors/interfaces/ColorPaletteProps.js +0 -2
  323. package/dist/npm/colors/interfaces/ColorPickerActiveColorClick.js +0 -2
  324. package/dist/npm/colors/interfaces/ColorPickerBlurEvent.d.ts +0 -14
  325. package/dist/npm/colors/interfaces/ColorPickerBlurEvent.js +0 -2
  326. package/dist/npm/colors/interfaces/ColorPickerChangeEvent.d.ts +0 -18
  327. package/dist/npm/colors/interfaces/ColorPickerChangeEvent.js +0 -2
  328. package/dist/npm/colors/interfaces/ColorPickerFocusEvent.d.ts +0 -14
  329. package/dist/npm/colors/interfaces/ColorPickerFocusEvent.js +0 -2
  330. package/dist/npm/colors/interfaces/ColorPickerGradientSettings.d.ts +0 -18
  331. package/dist/npm/colors/interfaces/ColorPickerGradientSettings.js +0 -2
  332. package/dist/npm/colors/interfaces/ColorPickerPaletteSettings.d.ts +0 -32
  333. package/dist/npm/colors/interfaces/ColorPickerPaletteSettings.js +0 -2
  334. package/dist/npm/colors/interfaces/ColorPickerPopupSettings.js +0 -2
  335. package/dist/npm/colors/interfaces/ColorPickerProps.js +0 -2
  336. package/dist/npm/colors/interfaces/ColorPickerView.d.ts +0 -10
  337. package/dist/npm/colors/interfaces/ColorPickerView.js +0 -2
  338. package/dist/npm/colors/interfaces/PickerPopupSettings.d.ts +0 -19
  339. package/dist/npm/colors/interfaces/PickerPopupSettings.js +0 -2
  340. package/dist/npm/colors/interfaces/PickerProps.d.ts +0 -42
  341. package/dist/npm/colors/interfaces/PickerProps.js +0 -2
  342. package/dist/npm/colors/models/hsva.d.ts +0 -9
  343. package/dist/npm/colors/models/hsva.js +0 -2
  344. package/dist/npm/colors/models/output-format.d.ts +0 -4
  345. package/dist/npm/colors/models/output-format.js +0 -2
  346. package/dist/npm/colors/models/palette-presets.d.ts +0 -53
  347. package/dist/npm/colors/models/palette-presets.js +0 -57
  348. package/dist/npm/colors/models/rgb.d.ts +0 -8
  349. package/dist/npm/colors/models/rgb.js +0 -2
  350. package/dist/npm/colors/models/rgba.d.ts +0 -9
  351. package/dist/npm/colors/models/rgba.js +0 -2
  352. package/dist/npm/colors/models/table-cell.d.ts +0 -7
  353. package/dist/npm/colors/models/table-cell.js +0 -2
  354. package/dist/npm/colors/models/tile-size.d.ts +0 -11
  355. package/dist/npm/colors/models/tile-size.js +0 -2
  356. package/dist/npm/colors/utils/color-cache.js +0 -71
  357. package/dist/npm/colors/utils/color-palette.service.d.ts +0 -12
  358. package/dist/npm/colors/utils/color-palette.service.js +0 -79
  359. package/dist/npm/colors/utils/color-parser.d.ts +0 -65
  360. package/dist/npm/colors/utils/color-parser.js +0 -147
  361. package/dist/npm/colors/utils/misc.d.ts +0 -15
  362. package/dist/npm/colors/utils/misc.js +0 -25
  363. package/dist/npm/colors/utils/svg-calc.d.ts +0 -62
  364. package/dist/npm/colors/utils/svg-calc.js +0 -110
  365. package/dist/npm/common/SliderTooltip.d.ts +0 -18
  366. package/dist/npm/common/SliderTooltip.js +0 -54
  367. package/dist/npm/common/SwitchController.d.ts +0 -31
  368. package/dist/npm/common/SwitchController.js +0 -124
  369. package/dist/npm/common/SwitchModel.d.ts +0 -7
  370. package/dist/npm/common/SwitchModel.js +0 -16
  371. package/dist/npm/input/Input.js +0 -262
  372. package/dist/npm/input/InputClearValue.d.ts +0 -15
  373. package/dist/npm/input/InputClearValue.js +0 -27
  374. package/dist/npm/input/InputPrefix.d.ts +0 -15
  375. package/dist/npm/input/InputPrefix.js +0 -27
  376. package/dist/npm/input/InputSeparator.d.ts +0 -15
  377. package/dist/npm/input/InputSeparator.js +0 -27
  378. package/dist/npm/input/InputSuffix.d.ts +0 -15
  379. package/dist/npm/input/InputSuffix.js +0 -27
  380. package/dist/npm/input/InputValidationIcon.d.ts +0 -14
  381. package/dist/npm/input/InputValidationIcon.js +0 -23
  382. package/dist/npm/input/interfaces/InputChangeEvent.d.ts +0 -11
  383. package/dist/npm/input/interfaces/InputChangeEvent.js +0 -2
  384. package/dist/npm/interfaces/Direction.d.ts +0 -1
  385. package/dist/npm/interfaces/Direction.js +0 -2
  386. package/dist/npm/interfaces/ToggleBaseProps.d.ts +0 -8
  387. package/dist/npm/interfaces/ToggleBaseProps.js +0 -2
  388. package/dist/npm/main.d.ts +0 -68
  389. package/dist/npm/main.js +0 -120
  390. package/dist/npm/maskedtextbox/MaskedTextBox.js +0 -437
  391. package/dist/npm/maskedtextbox/MaskedTextBoxProps.d.ts +0 -197
  392. package/dist/npm/maskedtextbox/MaskedTextBoxProps.js +0 -3
  393. package/dist/npm/maskedtextbox/masking.service.js +0 -209
  394. package/dist/npm/maskedtextbox/parsing/combinators.d.ts +0 -9
  395. package/dist/npm/maskedtextbox/parsing/combinators.js +0 -29
  396. package/dist/npm/maskedtextbox/parsing/parsers.js +0 -160
  397. package/dist/npm/maskedtextbox/parsing/result.d.ts +0 -23
  398. package/dist/npm/maskedtextbox/parsing/result.js +0 -42
  399. package/dist/npm/maskedtextbox/parsing/stream.js +0 -44
  400. package/dist/npm/maskedtextbox/utils.d.ts +0 -16
  401. package/dist/npm/maskedtextbox/utils.js +0 -61
  402. package/dist/npm/messages/index.js +0 -169
  403. package/dist/npm/numerictextbox/NumericTextBox.js +0 -358
  404. package/dist/npm/numerictextbox/interfaces/NumericTextBoxBlurEvent.d.ts +0 -7
  405. package/dist/npm/numerictextbox/interfaces/NumericTextBoxBlurEvent.js +0 -2
  406. package/dist/npm/numerictextbox/interfaces/NumericTextBoxChangeEvent.d.ts +0 -11
  407. package/dist/npm/numerictextbox/interfaces/NumericTextBoxChangeEvent.js +0 -2
  408. package/dist/npm/numerictextbox/interfaces/NumericTextBoxFocusEvent.d.ts +0 -7
  409. package/dist/npm/numerictextbox/interfaces/NumericTextBoxFocusEvent.js +0 -2
  410. package/dist/npm/numerictextbox/interfaces/NumericTextBoxHandle.js +0 -2
  411. package/dist/npm/numerictextbox/interfaces/NumericTextBoxProps.js +0 -2
  412. package/dist/npm/numerictextbox/interfaces/NumericTextBoxState.d.ts +0 -15
  413. package/dist/npm/numerictextbox/interfaces/NumericTextBoxState.js +0 -2
  414. package/dist/npm/numerictextbox/utils/index.js +0 -584
  415. package/dist/npm/package-metadata.d.ts +0 -5
  416. package/dist/npm/package-metadata.js +0 -14
  417. package/dist/npm/radiobutton/RadioButton.d.ts +0 -23
  418. package/dist/npm/radiobutton/RadioButton.js +0 -111
  419. package/dist/npm/radiobutton/RadioGroup.d.ts +0 -23
  420. package/dist/npm/radiobutton/RadioGroup.js +0 -105
  421. package/dist/npm/radiobutton/interfaces/RadioButtonBlurEvent.d.ts +0 -7
  422. package/dist/npm/radiobutton/interfaces/RadioButtonBlurEvent.js +0 -2
  423. package/dist/npm/radiobutton/interfaces/RadioButtonChangeEvent.d.ts +0 -11
  424. package/dist/npm/radiobutton/interfaces/RadioButtonChangeEvent.js +0 -2
  425. package/dist/npm/radiobutton/interfaces/RadioButtonFocusEvent.d.ts +0 -7
  426. package/dist/npm/radiobutton/interfaces/RadioButtonFocusEvent.js +0 -2
  427. package/dist/npm/radiobutton/interfaces/RadioButtonProps.js +0 -2
  428. package/dist/npm/radiobutton/interfaces/RadioGroupChangeEvent.d.ts +0 -11
  429. package/dist/npm/radiobutton/interfaces/RadioGroupChangeEvent.js +0 -2
  430. package/dist/npm/radiobutton/interfaces/RadioGroupFocusEvent.d.ts +0 -7
  431. package/dist/npm/radiobutton/interfaces/RadioGroupFocusEvent.js +0 -2
  432. package/dist/npm/radiobutton/interfaces/RadioGroupProps.d.ts +0 -82
  433. package/dist/npm/radiobutton/interfaces/RadioGroupProps.js +0 -2
  434. package/dist/npm/range-slider/RangeSlider.d.ts +0 -138
  435. package/dist/npm/range-slider/RangeSlider.js +0 -317
  436. package/dist/npm/range-slider/range-raducer.d.ts +0 -36
  437. package/dist/npm/range-slider/range-raducer.js +0 -118
  438. package/dist/npm/rating/Rating.js +0 -286
  439. package/dist/npm/rating/RatingItem.d.ts +0 -104
  440. package/dist/npm/rating/RatingItem.js +0 -99
  441. package/dist/npm/rating/models/index.d.ts +0 -85
  442. package/dist/npm/rating/models/index.js +0 -2
  443. package/dist/npm/rating/rating-reducer.js +0 -67
  444. package/dist/npm/rating/utils/index.js +0 -73
  445. package/dist/npm/signature/Signature.d.ts +0 -14
  446. package/dist/npm/signature/Signature.js +0 -389
  447. package/dist/npm/signature/interfaces/SignatureBlurEvent.d.ts +0 -7
  448. package/dist/npm/signature/interfaces/SignatureBlurEvent.js +0 -2
  449. package/dist/npm/signature/interfaces/SignatureChangeEvent.d.ts +0 -11
  450. package/dist/npm/signature/interfaces/SignatureChangeEvent.js +0 -2
  451. package/dist/npm/signature/interfaces/SignatureCloseEvent.d.ts +0 -7
  452. package/dist/npm/signature/interfaces/SignatureCloseEvent.js +0 -2
  453. package/dist/npm/signature/interfaces/SignatureFocusEvent.d.ts +0 -7
  454. package/dist/npm/signature/interfaces/SignatureFocusEvent.js +0 -2
  455. package/dist/npm/signature/interfaces/SignatureHandle.js +0 -2
  456. package/dist/npm/signature/interfaces/SignatureOpenEvent.d.ts +0 -7
  457. package/dist/npm/signature/interfaces/SignatureOpenEvent.js +0 -2
  458. package/dist/npm/signature/interfaces/SignatureProps.d.ts +0 -195
  459. package/dist/npm/signature/interfaces/SignatureProps.js +0 -2
  460. package/dist/npm/signature/interfaces/index.d.ts +0 -7
  461. package/dist/npm/signature/interfaces/index.js +0 -2
  462. package/dist/npm/signature/utils/index.d.ts +0 -4
  463. package/dist/npm/signature/utils/index.js +0 -14
  464. package/dist/npm/slider/Slider.js +0 -259
  465. package/dist/npm/slider/SliderLabel.d.ts +0 -34
  466. package/dist/npm/slider/SliderLabel.js +0 -34
  467. package/dist/npm/switch/Switch.d.ts +0 -290
  468. package/dist/npm/switch/Switch.js +0 -334
  469. package/dist/npm/textarea/TextArea.js +0 -161
  470. package/dist/npm/textarea/interfaces/TextAreaBlurEvent.d.ts +0 -7
  471. package/dist/npm/textarea/interfaces/TextAreaBlurEvent.js +0 -2
  472. package/dist/npm/textarea/interfaces/TextAreaChangeEvent.d.ts +0 -11
  473. package/dist/npm/textarea/interfaces/TextAreaChangeEvent.js +0 -2
  474. package/dist/npm/textarea/interfaces/TextAreaFocusEvent.d.ts +0 -7
  475. package/dist/npm/textarea/interfaces/TextAreaFocusEvent.js +0 -2
  476. package/dist/npm/textarea/interfaces/TextAreaProps.js +0 -2
  477. package/dist/npm/textbox/Textbox.d.ts +0 -76
  478. package/dist/npm/textbox/Textbox.js +0 -115
  479. package/dist/npm/utils.d.ts +0 -4
  480. package/dist/npm/utils.js +0 -33
  481. package/dist/systemjs/kendo-react-inputs.js +0 -1
  482. package/e2e-next/checkbox.basic.tests.ts +0 -24
  483. package/e2e-next/colorgradient.basic.tests.ts +0 -24
  484. package/e2e-next/colorpaicker.basic.tests.ts +0 -24
  485. package/e2e-next/colorpalette.basic.tests.ts +0 -24
  486. package/e2e-next/flatcolorpicker.basic.tests.ts +0 -24
  487. package/e2e-next/input.basic.tests.ts +0 -24
  488. package/e2e-next/masktextbox.basic.tests.ts +0 -24
  489. package/e2e-next/numerictextbox.basic.tests.ts +0 -24
  490. package/e2e-next/radiobutton.basic.tests.ts +0 -24
  491. package/e2e-next/radiogroup.basic.tests.ts +0 -24
  492. package/e2e-next/rangeslider.basic.tests.ts +0 -24
  493. package/e2e-next/rating.basic.tests.ts +0 -24
  494. package/e2e-next/signature.basic.tests.ts +0 -24
  495. package/e2e-next/slider.basic.tests.ts +0 -24
  496. package/e2e-next/switch.basic.test.ts +0 -24
  497. package/e2e-next/textarea.basic.tests.ts +0 -24
  498. package/e2e-next/textbox.basic.tests copy.ts +0 -24
@@ -1,110 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.bezierCommand = exports.controlPoint = exports.line = exports.svgPath = void 0;
4
- /**
5
- * @hidden
6
- *
7
- * Render the svg <path> element.
8
- *
9
- * @param points (array) Represents the points coordinates as an array of tuples.
10
- * @param command (function) The command that is used (bezierCommand, lineCommand).
11
- * @param point (array) [x,y] Represents the current point coordinates.
12
- * @param i (integer) Represents the index of 'point' in the array 'a'.
13
- * @param a (array) Represents the complete array of points coordinates.
14
- * @output (string) a svg path command.
15
- * @output (string) a Svg <path> element
16
- */
17
- var svgPath = function (points, command) {
18
- if (points.length === 0) {
19
- return '';
20
- }
21
- // build the d attributes by looping over the points
22
- var d = points.reduce(function (acc, point, i, a) {
23
- return i === 0 ?
24
- // if first point
25
- "M ".concat(point[0], ",").concat(point[1]) :
26
- // else
27
- "".concat(acc, " ").concat(command(point, i, a));
28
- }, '');
29
- return "<path d=\"".concat(d, "\" fill=\"none\" stroke=\"white\" stroke-width=\"1\"/>");
30
- };
31
- exports.svgPath = svgPath;
32
- /**
33
- * @hidden
34
- *
35
- * Returns the properties of a line.
36
- *
37
- * @param pointA (array) [x,y] Represents the start point coordinates.
38
- * @param pointB (array) [x,y] Represents the end point coordinates.
39
- * @output (object) { length: (integer), angle: (integer) }
40
- */
41
- var line = function (pointA, pointB) {
42
- var lengthX = pointB[0] - pointA[0];
43
- var lengthY = pointB[1] - pointA[1];
44
- return {
45
- length: Math.sqrt(Math.pow(lengthX, 2) + Math.pow(lengthY, 2)),
46
- angle: Math.atan2(lengthY, lengthX)
47
- };
48
- };
49
- exports.line = line;
50
- /**
51
- * @hidden
52
- *
53
- * Create a function to calculate the position of the control point.
54
- *
55
- * @param lineCalc (function) Represents the line function.
56
- * @param pointA (array) [x,y] Represents the start point coordinates.
57
- * @param pointB (array) [x,y] Represents the end point coordinates.
58
- * @output (object) { length: (integer), angle: (integer) }
59
- * @output (function) closure.
60
- * @param current (array) [x, y] Represents the current point coordinates.
61
- * @param previous (array) [x, y] Represents the previous point coordinates.
62
- * @param next (array) [x, y] ]Represents the next point coordinates.
63
- * @param reverse (boolean, optional) Sets the direction.
64
- * @output (array) [x, y] coordinates of a control point.
65
- */
66
- var controlPoint = function (lineCalc) {
67
- return function (current, previous, next, reverse) {
68
- // when 'current' is the first or last point of the array
69
- // 'previous' and 'next' are undefined
70
- // replace with 'current'
71
- var p = previous || current;
72
- var n = next || current;
73
- var smooth = 0.1;
74
- // properties of the line between previous and next
75
- var l = lineCalc(p, n);
76
- // If is end-control-point, add PI to the angle to go backward
77
- var angle = l.angle + (reverse ? Math.PI : 0);
78
- var length = l.length * smooth;
79
- // The control point position is relative to the current point
80
- var x = current[0] + Math.cos(angle) * length;
81
- var y = current[1] + Math.sin(angle) * length;
82
- return [x, y];
83
- };
84
- };
85
- exports.controlPoint = controlPoint;
86
- /**
87
- * @hidden
88
- *
89
- * Create a function to calculate a bezier curve command.
90
- *
91
- * @param controlPointCalc (function) Represents the controlPoint function.
92
- * @param current (array) [x, y] Represents the current point coordinates.
93
- * @param previous (array) [x, y] Represents the previous point coordinates.
94
- * @param next (array) [x, y] ]Represents the next point coordinates.
95
- * @param reverse (boolean, optional) Sets the direction.
96
- * @output (array) [x, y] coordinates of a control point.
97
- * @output (function) closure.
98
- * @param point (array) [x,y] Represents the current point coordinates.
99
- * @param i (integer) Represents the index of 'point' in the array 'a'.
100
- * @param a (array) Represents the complete array of points coordinates.
101
- * @output (string) 'C x2,y2 x1,y1 x,y' Cubic bezier command.
102
- */
103
- var bezierCommand = function (controlPointCalc) { return function (point, i, a) {
104
- // start control point
105
- var _a = controlPointCalc(a[i - 1], a[i - 2], point), cpsX = _a[0], cpsY = _a[1];
106
- // end control point
107
- var _b = controlPointCalc(point, a[i - 1], a[i + 1], true), cpeX = _b[0], cpeY = _b[1];
108
- return "C ".concat(cpsX, ",").concat(cpsY, " ").concat(cpeX, ",").concat(cpeY, " ").concat(point[0], ",").concat(point[1]);
109
- }; };
110
- exports.bezierCommand = bezierCommand;
@@ -1,18 +0,0 @@
1
- import * as React from 'react';
2
- /**
3
- * @hidden
4
- */
5
- export interface SliderTooltipProps {
6
- id?: string;
7
- className?: string;
8
- tabIndex?: number;
9
- style?: React.CSSProperties;
10
- children?: React.ReactNode;
11
- position: 'right' | 'top';
12
- show?: boolean;
13
- anchor?: React.RefObject<HTMLElement>;
14
- }
15
- /**
16
- * @hidden
17
- */
18
- export declare const SliderTooltip: (props: SliderTooltipProps) => JSX.Element;
@@ -1,54 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SliderTooltip = void 0;
4
- var React = require("react");
5
- var kendo_react_animation_1 = require("@progress/kendo-react-animation");
6
- /**
7
- * @hidden
8
- */
9
- var SliderTooltip = function (props) {
10
- var tooltipRef = React.useRef(null);
11
- var position = function () {
12
- if (props.anchor && props.anchor.current && tooltipRef.current) {
13
- var anchorRect = props.anchor.current.getBoundingClientRect();
14
- var rect = tooltipRef.current.getBoundingClientRect();
15
- var left = props.position === 'top'
16
- ? (anchorRect.width / 2) - (rect.width / 2)
17
- : (rect.height * 1);
18
- var top_1 = props.position === 'right'
19
- ? (anchorRect.height / 2) - (rect.height / 2)
20
- : -(rect.height * 1.5);
21
- tooltipRef.current.style.left = "".concat(left, "px");
22
- tooltipRef.current.style.top = "".concat(top_1, "px");
23
- }
24
- };
25
- var handleAnimationStart = function () {
26
- if (!tooltipRef.current) {
27
- return;
28
- }
29
- tooltipRef.current.style.opacity = props.show ? '0' : '1';
30
- };
31
- var handleAnimationEnd = function () {
32
- if (!tooltipRef.current) {
33
- return;
34
- }
35
- tooltipRef.current.style.opacity = props.show ? '1' : '0';
36
- };
37
- var handleAnimationUpdate = function (progress) {
38
- if (!tooltipRef.current) {
39
- return;
40
- }
41
- tooltipRef.current.style.opacity = "".concat(props.show ? progress : 1 - progress);
42
- };
43
- React.useEffect(position);
44
- (0, kendo_react_animation_1.useAnimation)({
45
- appear: true,
46
- duration: 300,
47
- onStart: handleAnimationStart,
48
- onUpdate: handleAnimationUpdate,
49
- onEnd: handleAnimationEnd
50
- }, [props.show]);
51
- return (React.createElement("div", { ref: tooltipRef, className: "k-tooltip", style: { position: 'absolute' } },
52
- React.createElement("div", { className: "k-tooltip-content" }, props.children)));
53
- };
54
- exports.SliderTooltip = SliderTooltip;
@@ -1,31 +0,0 @@
1
- import SwitchModel from './SwitchModel';
2
- /**
3
- * @hidden
4
- */
5
- declare class SwitchController {
6
- private handlePosition;
7
- private wrapperOffset;
8
- private handleOffset;
9
- private handleMargin;
10
- private updateView;
11
- private onChange;
12
- private _checked;
13
- private reverse;
14
- private coords;
15
- private lastPressX;
16
- private originalPressX;
17
- constructor(updateView?: Function, onChange?: Function);
18
- overrideChecked: (checked: boolean) => void;
19
- updateState({ wrapperOffset, handleOffset, checked, animate, coords, handleMargin, reverse }: any): void;
20
- change: (checked: boolean, event?: any) => void;
21
- get isChecked(): boolean;
22
- addAnimation: (model: any) => any;
23
- onPress: (event: any) => void;
24
- onRelease: (event: any) => void;
25
- onDrag: (event: any) => void;
26
- updateModel(position: any, animate?: boolean): SwitchModel;
27
- private limit;
28
- get constrain(): number;
29
- get checked(): boolean;
30
- }
31
- export default SwitchController;
@@ -1,124 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var SwitchModel_1 = require("./SwitchModel");
4
- /**
5
- * @hidden
6
- */
7
- var DEFAULT_THRESHOLD = 5;
8
- /**
9
- * @hidden
10
- */
11
- var noop = function () { };
12
- /**
13
- * @hidden
14
- */
15
- var SwitchController = /** @class */ (function () {
16
- function SwitchController(updateView, onChange) {
17
- if (updateView === void 0) { updateView = noop; }
18
- if (onChange === void 0) { onChange = noop; }
19
- var _this = this;
20
- this._checked = false;
21
- this.reverse = false;
22
- this.lastPressX = 0;
23
- this.originalPressX = 0;
24
- this.overrideChecked = function (checked) {
25
- _this._checked = checked;
26
- };
27
- this.change = function (checked, event) {
28
- _this._checked = checked;
29
- _this.updateView(_this.updateModel(checked ? _this.constrain : 0));
30
- _this.onChange(checked, event);
31
- };
32
- this.addAnimation = function (model) {
33
- if (model.transition === true) {
34
- model.transition = 'all 200ms ease-out';
35
- }
36
- else {
37
- model.transition = 'none';
38
- }
39
- return model;
40
- };
41
- this.onPress = function (event) {
42
- var pageX = event.pageX;
43
- _this.lastPressX = _this.originalPressX = pageX;
44
- };
45
- this.onRelease = function (event) {
46
- var pageX = event.pageX;
47
- var delta = Math.abs(_this.originalPressX - pageX);
48
- var snapPoint = _this.constrain / 2;
49
- var checked = delta < DEFAULT_THRESHOLD ? !_this._checked : _this.handlePosition > snapPoint;
50
- _this.change(checked, event);
51
- };
52
- this.onDrag = function (event) {
53
- var pageX = event.pageX;
54
- var _a = _this.coords, left = _a.left, right = _a.right;
55
- var overElement = pageX > left && pageX < right;
56
- if (overElement) {
57
- var delta = _this.reverse ? _this.lastPressX - pageX : pageX - _this.lastPressX;
58
- var position = _this.limit(_this.handlePosition + delta);
59
- _this.lastPressX = pageX;
60
- _this.handlePosition = position;
61
- _this.updateView(_this.updateModel(_this.handlePosition));
62
- }
63
- if (pageX > right) {
64
- _this.updateView(_this.updateModel(_this.reverse ? 0 : _this.constrain));
65
- }
66
- if (pageX < left) {
67
- _this.updateView(_this.updateModel(_this.reverse ? 0 : _this.constrain));
68
- }
69
- };
70
- this.limit = function (value) {
71
- if (value > _this.constrain) {
72
- return _this.constrain;
73
- }
74
- if (value < 0) {
75
- return 0;
76
- }
77
- return value;
78
- };
79
- this.handlePosition = 0;
80
- this.wrapperOffset = 0;
81
- this.handleOffset = 0;
82
- this.handleMargin = 4;
83
- this.updateView = updateView;
84
- this.onChange = onChange;
85
- }
86
- SwitchController.prototype.updateState = function (_a) {
87
- var wrapperOffset = _a.wrapperOffset, handleOffset = _a.handleOffset, checked = _a.checked, _b = _a.animate, animate = _b === void 0 ? true : _b, coords = _a.coords, handleMargin = _a.handleMargin, reverse = _a.reverse;
88
- this.wrapperOffset = wrapperOffset;
89
- this.handleOffset = handleOffset;
90
- this.coords = coords;
91
- this.handleMargin = handleMargin;
92
- this._checked = checked;
93
- this.reverse = reverse;
94
- this.updateView(this.updateModel(checked ? this.constrain : 0, animate));
95
- };
96
- Object.defineProperty(SwitchController.prototype, "isChecked", {
97
- get: function () {
98
- return this._checked;
99
- },
100
- enumerable: false,
101
- configurable: true
102
- });
103
- SwitchController.prototype.updateModel = function (position, animate) {
104
- if (animate === void 0) { animate = true; }
105
- var pos = this.reverse ? this.wrapperOffset / 2 - position : position;
106
- return new SwitchModel_1.default(pos, animate);
107
- };
108
- Object.defineProperty(SwitchController.prototype, "constrain", {
109
- get: function () {
110
- return this.wrapperOffset - this.handleOffset - this.handleMargin;
111
- },
112
- enumerable: false,
113
- configurable: true
114
- });
115
- Object.defineProperty(SwitchController.prototype, "checked", {
116
- get: function () {
117
- return this._checked;
118
- },
119
- enumerable: false,
120
- configurable: true
121
- });
122
- return SwitchController;
123
- }());
124
- exports.default = SwitchController;
@@ -1,7 +0,0 @@
1
- /**
2
- * @hidden
3
- */
4
- export default class Model {
5
- handle: any;
6
- constructor(value: number | undefined, animate: boolean);
7
- }
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- /**
4
- * @hidden
5
- */
6
- var Model = /** @class */ (function () {
7
- function Model(value, animate) {
8
- if (value === void 0) { value = 0; }
9
- this.handle = {
10
- transform: 'translateX(' + value + 'px)',
11
- transition: animate
12
- };
13
- }
14
- return Model;
15
- }());
16
- exports.default = Model;
@@ -1,262 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __assign = (this && this.__assign) || function () {
18
- __assign = Object.assign || function(t) {
19
- for (var s, i = 1, n = arguments.length; i < n; i++) {
20
- s = arguments[i];
21
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
22
- t[p] = s[p];
23
- }
24
- return t;
25
- };
26
- return __assign.apply(this, arguments);
27
- };
28
- var __rest = (this && this.__rest) || function (s, e) {
29
- var t = {};
30
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
31
- t[p] = s[p];
32
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
33
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
34
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
35
- t[p[i]] = s[p[i]];
36
- }
37
- return t;
38
- };
39
- Object.defineProperty(exports, "__esModule", { value: true });
40
- exports.Input = exports.InputPropsContext = exports.InputWithoutContext = void 0;
41
- var React = require("react");
42
- var PropTypes = require("prop-types");
43
- var kendo_react_common_1 = require("@progress/kendo-react-common");
44
- var kendo_react_labels_1 = require("@progress/kendo-react-labels");
45
- var kendo_react_common_2 = require("@progress/kendo-react-common");
46
- var package_metadata_1 = require("../package-metadata");
47
- /** @hidden */
48
- var InputWithoutContext = /** @class */ (function (_super) {
49
- __extends(InputWithoutContext, _super);
50
- function InputWithoutContext(props) {
51
- var _this = _super.call(this, props) || this;
52
- _this._input = null;
53
- _this._inputId = (0, kendo_react_common_1.guid)();
54
- /**
55
- * @hidden
56
- */
57
- _this.focus = function () {
58
- if (_this._input) {
59
- _this._input.focus();
60
- }
61
- };
62
- _this.isInvalid = function (state) {
63
- var result = false;
64
- for (var prop in state) {
65
- if (state.hasOwnProperty(prop)) {
66
- result = result || Boolean(state[prop]);
67
- }
68
- }
69
- return result;
70
- };
71
- /**
72
- * @hidden
73
- */
74
- _this.setValidity = function () {
75
- if (_this._input && _this._input.setCustomValidity) {
76
- _this.validity.valid || !_this.validityStyles
77
- ? _this._input.classList.remove('k-invalid')
78
- : _this._input.classList.add('k-invalid');
79
- _this._input.setCustomValidity(_this.validity.valid
80
- ? ''
81
- : _this.props.validationMessage || '');
82
- }
83
- };
84
- _this.handleChange = function (event) {
85
- _this.setState({
86
- value: event.target.value
87
- });
88
- _this.valueDuringOnChange = event.target.value;
89
- if (_this.props.onChange) {
90
- _this.props.onChange.call(undefined, {
91
- syntheticEvent: event,
92
- nativeEvent: event.nativeEvent,
93
- value: event.target.value,
94
- target: _this
95
- });
96
- }
97
- _this.valueDuringOnChange = undefined;
98
- };
99
- /**
100
- * @hidden
101
- */
102
- _this.handleAutoFill = function (e) {
103
- if (e.animationName === 'autoFillStart') {
104
- var parent_1 = e.target.parentNode;
105
- if (parent_1 && parent_1.classList.contains('k-empty')) {
106
- parent_1.classList.remove('k-empty');
107
- }
108
- }
109
- };
110
- (0, kendo_react_common_2.validatePackage)(package_metadata_1.packageMetadata);
111
- _this.state = {
112
- value: _this.props.defaultValue || InputWithoutContext.defaultProps.defaultValue
113
- };
114
- return _this;
115
- }
116
- Object.defineProperty(InputWithoutContext.prototype, "element", {
117
- /**
118
- * Gets the native input element of the Input component.
119
- */
120
- get: function () {
121
- return this._input;
122
- },
123
- enumerable: false,
124
- configurable: true
125
- });
126
- Object.defineProperty(InputWithoutContext.prototype, "value", {
127
- /**
128
- * Gets the value of the Input.
129
- */
130
- get: function () {
131
- return this.valueDuringOnChange !== undefined
132
- ? this.valueDuringOnChange
133
- : this.props.value !== undefined
134
- ? this.props.value
135
- : this.state.value;
136
- },
137
- enumerable: false,
138
- configurable: true
139
- });
140
- Object.defineProperty(InputWithoutContext.prototype, "name", {
141
- /**
142
- * Gets the `name` property of the Input.
143
- */
144
- get: function () {
145
- return this.props.name;
146
- },
147
- enumerable: false,
148
- configurable: true
149
- });
150
- Object.defineProperty(InputWithoutContext.prototype, "validity", {
151
- /**
152
- * Represents the validity state into which the Input is set.
153
- */
154
- get: function () {
155
- var result = {
156
- badInput: this._input ? this._input.validity.badInput : false,
157
- patternMismatch: this._input
158
- ? this._input.validity.patternMismatch
159
- : false,
160
- rangeOverflow: this._input ? this._input.validity.rangeOverflow : false,
161
- rangeUnderflow: this._input ? this._input.validity.rangeUnderflow : false,
162
- stepMismatch: this._input ? this._input.validity.stepMismatch : false,
163
- tooLong: this._input ? this._input.validity.tooLong : false,
164
- typeMismatch: this._input ? this._input.validity.typeMismatch : false,
165
- valueMissing: this._input ? this._input.validity.valueMissing : false
166
- };
167
- return __assign(__assign({}, result), { customError: this.props.validationMessage !== undefined, valid: this.props.valid !== undefined
168
- ? this.props.valid
169
- : this._input
170
- ? !this.isInvalid(result)
171
- : true });
172
- },
173
- enumerable: false,
174
- configurable: true
175
- });
176
- Object.defineProperty(InputWithoutContext.prototype, "validityStyles", {
177
- /**
178
- * @hidden
179
- */
180
- get: function () {
181
- return this.props.validityStyles !== undefined
182
- ? this.props.validityStyles
183
- : InputWithoutContext.defaultProps.validityStyles;
184
- },
185
- enumerable: false,
186
- configurable: true
187
- });
188
- /**
189
- * @hidden
190
- */
191
- InputWithoutContext.prototype.componentDidMount = function () {
192
- this.forceUpdate();
193
- };
194
- /**
195
- * @hidden
196
- */
197
- InputWithoutContext.prototype.componentDidUpdate = function () {
198
- this.setValidity();
199
- };
200
- /**
201
- * @hidden
202
- */
203
- InputWithoutContext.prototype.render = function () {
204
- var _this = this;
205
- var _a = this.props, className = _a.className, label = _a.label, labelClassName = _a.labelClassName, id = _a.id, validationMessage = _a.validationMessage, defaultValue = _a.defaultValue, valid = _a.valid,
206
- // Removed to support direct use in Form Field component
207
- visited = _a.visited, touched = _a.touched, modified = _a.modified, ariaLabelledBy = _a.ariaLabelledBy, ariaDescribedBy = _a.ariaDescribedBy, validityStyles = _a.validityStyles, style = _a.style, ariaLabel = _a.ariaLabel, props = __rest(_a, ["className", "label", "labelClassName", "id", "validationMessage", "defaultValue", "valid", "visited", "touched", "modified", "ariaLabelledBy", "ariaDescribedBy", "validityStyles", "style", "ariaLabel"]);
208
- var inputId = id || this._inputId;
209
- var isValid = !this.validityStyles || this.validity.valid;
210
- var inputClassName = (0, kendo_react_common_1.classNames)(className, 'k-input k-input-md k-rounded-md k-input-solid');
211
- var textbox = (React.createElement("input", __assign({ "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, "aria-disabled": this.props.disabled || undefined, "aria-invalid": !isValid || undefined, "aria-label": ariaLabel || undefined }, props, { style: !label
212
- ? style
213
- : undefined, value: this.value, id: inputId, className: inputClassName, onChange: this.handleChange, onAnimationStart: this.handleAutoFill, ref: function (el) {
214
- _this._input = el;
215
- } })));
216
- return label ?
217
- (React.createElement(kendo_react_labels_1.FloatingLabel, { label: label, labelClassName: labelClassName, editorId: inputId, editorValue: String(this.value), editorValid: isValid, editorDisabled: props.disabled, editorPlaceholder: props.placeholder, children: textbox, style: style, dir: props.dir }))
218
- : textbox;
219
- };
220
- InputWithoutContext.displayName = 'Input';
221
- /**
222
- * @hidden
223
- */
224
- InputWithoutContext.propTypes = {
225
- label: PropTypes.string,
226
- labelClassName: PropTypes.string,
227
- validationMessage: PropTypes.string,
228
- required: PropTypes.bool,
229
- validate: PropTypes.bool,
230
- id: PropTypes.string,
231
- ariaLabelledBy: PropTypes.string,
232
- ariaDescribedBy: PropTypes.string,
233
- ariaLabel: PropTypes.string
234
- };
235
- /**
236
- * @hidden
237
- */
238
- InputWithoutContext.defaultProps = {
239
- defaultValue: '',
240
- required: false,
241
- validityStyles: true
242
- };
243
- return InputWithoutContext;
244
- }(React.Component));
245
- exports.InputWithoutContext = InputWithoutContext;
246
- /**
247
- * Represents the PropsContext of the `Input` component.
248
- * Used for global configuration of all `Input` instances.
249
- *
250
- * For more information, refer to the [Inputs Props Context]({% slug props-context_inputs %}) article.
251
- */
252
- exports.InputPropsContext = (0, kendo_react_common_1.createPropsContext)();
253
- ;
254
- /* eslint-disable @typescript-eslint/no-redeclare -- intentionally naming the component the same as the type */
255
- /**
256
- * Represents the [KendoReact Input component]({% slug overview_textbox %}).
257
- *
258
- * Accepts properties of type [InputProps]({% slug api_inputs_inputprops %}).
259
- * Obtaining the `ref` returns an object of type [InputHandle]({% slug api_inputs_inputhandle %}).
260
- */
261
- exports.Input = (0, kendo_react_common_1.withPropsContext)(exports.InputPropsContext, InputWithoutContext);
262
- exports.Input.displayName = 'KendoReactInput';
@@ -1,15 +0,0 @@
1
- import * as React from 'react';
2
- /**
3
- * Represent the `ref` of the `InputClearValue` component.
4
- */
5
- export declare type InputClearValueHandle = {
6
- element: HTMLSpanElement | null;
7
- };
8
- /**
9
- * Represents the `props` of the `InputClearValue` component.
10
- */
11
- export declare type InputClearValueProps = React.HTMLAttributes<HTMLSpanElement>;
12
- /**
13
- * Represents the KendoReact InputClearValue component.
14
- */
15
- export declare const InputClearValue: React.ForwardRefExoticComponent<InputClearValueProps & React.RefAttributes<InputClearValueHandle>>;
@@ -1,27 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.InputClearValue = void 0;
15
- var React = require("react");
16
- var kendo_react_common_1 = require("@progress/kendo-react-common");
17
- /**
18
- * Represents the KendoReact InputClearValue component.
19
- */
20
- exports.InputClearValue = React.forwardRef(function (props, ref) {
21
- var target = React.useRef(null);
22
- var element = React.useRef(null);
23
- React.useImperativeHandle(target, function () { return ({ element: element.current }); });
24
- React.useImperativeHandle(ref, function () { return target.current; });
25
- return (React.createElement("span", __assign({}, props, { className: (0, kendo_react_common_1.classNames)('k-clear-value', props.className) })));
26
- });
27
- exports.InputClearValue.displayName = 'KendoReactInputClearValue';