@progress/kendo-react-inputs 5.6.0-dev.202208251227 → 5.7.0-sig.202208281415
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.
- package/api.json +71211 -0
- package/dist/cdn/js/kendo-react-inputs.js +1 -1
- package/dist/es/main.d.ts +2 -0
- package/dist/es/main.js +2 -0
- package/dist/es/messages/index.d.ts +15 -0
- package/dist/es/messages/index.js +15 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/signature/Signature.d.ts +14 -0
- package/dist/es/signature/Signature.js +346 -0
- package/dist/es/signature/interfaces/SignatureBlurEvent.d.ts +7 -0
- package/dist/es/signature/interfaces/SignatureBlurEvent.js +1 -0
- package/dist/es/signature/interfaces/SignatureChangeEvent.d.ts +11 -0
- package/dist/es/signature/interfaces/SignatureChangeEvent.js +1 -0
- package/dist/es/signature/interfaces/SignatureCloseEvent.d.ts +7 -0
- package/dist/es/signature/interfaces/SignatureCloseEvent.js +1 -0
- package/dist/es/signature/interfaces/SignatureFocusEvent.d.ts +7 -0
- package/dist/es/signature/interfaces/SignatureFocusEvent.js +1 -0
- package/dist/es/signature/interfaces/SignatureHandle.d.ts +34 -0
- package/dist/es/signature/interfaces/SignatureHandle.js +1 -0
- package/dist/es/signature/interfaces/SignatureOpenEvent.d.ts +7 -0
- package/dist/es/signature/interfaces/SignatureOpenEvent.js +1 -0
- package/dist/es/signature/interfaces/SignatureProps.d.ts +192 -0
- package/dist/es/signature/interfaces/SignatureProps.js +1 -0
- package/dist/es/signature/interfaces/index.d.ts +7 -0
- package/dist/es/signature/interfaces/index.js +1 -0
- package/dist/es/signature/utils/index.d.ts +4 -0
- package/dist/es/signature/utils/index.js +10 -0
- package/dist/npm/main.d.ts +2 -0
- package/dist/npm/main.js +2 -0
- package/dist/npm/messages/index.d.ts +15 -0
- package/dist/npm/messages/index.js +16 -1
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/signature/Signature.d.ts +14 -0
- package/dist/npm/signature/Signature.js +349 -0
- package/dist/npm/signature/interfaces/SignatureBlurEvent.d.ts +7 -0
- package/dist/npm/signature/interfaces/SignatureBlurEvent.js +2 -0
- package/dist/npm/signature/interfaces/SignatureChangeEvent.d.ts +11 -0
- package/dist/npm/signature/interfaces/SignatureChangeEvent.js +2 -0
- package/dist/npm/signature/interfaces/SignatureCloseEvent.d.ts +7 -0
- package/dist/npm/signature/interfaces/SignatureCloseEvent.js +2 -0
- package/dist/npm/signature/interfaces/SignatureFocusEvent.d.ts +7 -0
- package/dist/npm/signature/interfaces/SignatureFocusEvent.js +2 -0
- package/dist/npm/signature/interfaces/SignatureHandle.d.ts +34 -0
- package/dist/npm/signature/interfaces/SignatureHandle.js +2 -0
- package/dist/npm/signature/interfaces/SignatureOpenEvent.d.ts +7 -0
- package/dist/npm/signature/interfaces/SignatureOpenEvent.js +2 -0
- package/dist/npm/signature/interfaces/SignatureProps.d.ts +192 -0
- package/dist/npm/signature/interfaces/SignatureProps.js +2 -0
- package/dist/npm/signature/interfaces/SignatureState.d.ts +15 -0
- package/dist/npm/signature/interfaces/SignatureState.js +2 -0
- package/dist/npm/signature/interfaces/index.d.ts +7 -0
- package/dist/npm/signature/interfaces/index.js +2 -0
- package/dist/npm/signature/utils/index.d.ts +4 -0
- package/dist/npm/signature/utils/index.js +14 -0
- package/dist/systemjs/kendo-react-inputs.js +1 -1
- package/docs/_meta.yml +3 -0
- package/docs/api/Checkbox.md +23 -0
- package/docs/api/CheckboxBlurEvent.md +132 -0
- package/docs/api/CheckboxChangeEvent.md +167 -0
- package/docs/api/CheckboxFocusEvent.md +132 -0
- package/docs/api/CheckboxHandle.md +167 -0
- package/docs/api/CheckboxProps.md +1068 -0
- package/docs/api/CheckboxPropsContext.md +17 -0
- package/docs/api/ColorGradient.md +27 -0
- package/docs/api/ColorGradientChangeEvent.md +167 -0
- package/docs/api/ColorGradientHandle.md +99 -0
- package/docs/api/ColorGradientProps.md +538 -0
- package/docs/api/ColorGradientPropsContext.md +17 -0
- package/docs/api/ColorPalette.md +26 -0
- package/docs/api/ColorPaletteChangeEvent.md +202 -0
- package/docs/api/ColorPaletteHandle.md +64 -0
- package/docs/api/ColorPaletteProps.md +542 -0
- package/docs/api/ColorPalettePropsContext.md +17 -0
- package/docs/api/ColorPicker.md +23 -0
- package/docs/api/ColorPickerActiveColorClick.md +132 -0
- package/docs/api/ColorPickerBlurEvent.md +97 -0
- package/docs/api/ColorPickerChangeEvent.md +132 -0
- package/docs/api/ColorPickerFocusEvent.md +97 -0
- package/docs/api/ColorPickerGradientSettings.md +102 -0
- package/docs/api/ColorPickerPaletteSettings.md +148 -0
- package/docs/api/ColorPickerPopupSettings.md +97 -0
- package/docs/api/ColorPickerProps.md +1078 -0
- package/docs/api/ColorPickerPropsContext.md +17 -0
- package/docs/api/ColorPickerView.md +19 -0
- package/docs/api/Direction.md +12 -0
- package/docs/api/FlatColorPicker.md +13 -0
- package/docs/api/FlatColorPickerHandle.md +127 -0
- package/docs/api/FlatColorPickerProps.md +412 -0
- package/docs/api/FormComponentValidity.md +428 -0
- package/docs/api/Input.md +17 -0
- package/docs/api/InputChangeEvent.md +167 -0
- package/docs/api/InputHandle.md +204 -0
- package/docs/api/InputProps.md +428 -0
- package/docs/api/InputPropsContext.md +17 -0
- package/docs/api/MaskedTextBox.md +17 -0
- package/docs/api/MaskedTextBoxChangeEvent.md +237 -0
- package/docs/api/MaskedTextBoxEvent.md +132 -0
- package/docs/api/MaskedTextBoxHandle.md +265 -0
- package/docs/api/MaskedTextBoxProps.md +1395 -0
- package/docs/api/MaskedTextBoxPropsContext.md +17 -0
- package/docs/api/NumericTextBox.md +13 -0
- package/docs/api/NumericTextBoxBlurEvent.md +132 -0
- package/docs/api/NumericTextBoxChangeEvent.md +167 -0
- package/docs/api/NumericTextBoxFocusEvent.md +132 -0
- package/docs/api/NumericTextBoxHandle.md +197 -0
- package/docs/api/NumericTextBoxProps.md +1471 -0
- package/docs/api/NumericTextBoxPropsContext.md +17 -0
- package/docs/api/RadioButton.md +17 -0
- package/docs/api/RadioButtonBlurEvent.md +132 -0
- package/docs/api/RadioButtonChangeEvent.md +167 -0
- package/docs/api/RadioButtonFocusEvent.md +132 -0
- package/docs/api/RadioButtonHandle.md +97 -0
- package/docs/api/RadioButtonProps.md +791 -0
- package/docs/api/RadioButtonPropsContext.md +17 -0
- package/docs/api/RadioGroup.md +17 -0
- package/docs/api/RadioGroupChangeEvent.md +167 -0
- package/docs/api/RadioGroupFocusEvent.md +132 -0
- package/docs/api/RadioGroupHandle.md +97 -0
- package/docs/api/RadioGroupProps.md +707 -0
- package/docs/api/RadioGroupPropsContext.md +17 -0
- package/docs/api/Range.md +13 -0
- package/docs/api/RangeSlider.md +17 -0
- package/docs/api/RangeSliderChangeEvent.md +132 -0
- package/docs/api/RangeSliderHandle.md +127 -0
- package/docs/api/RangeSliderProps.md +853 -0
- package/docs/api/RangeSliderPropsContext.md +17 -0
- package/docs/api/Rating.md +17 -0
- package/docs/api/RatingChangeEvent.md +132 -0
- package/docs/api/RatingFocusEvent.md +97 -0
- package/docs/api/RatingHandle.md +97 -0
- package/docs/api/RatingItem.md +13 -0
- package/docs/api/RatingItemFocusEvent.md +97 -0
- package/docs/api/RatingItemHandle.md +132 -0
- package/docs/api/RatingItemKeyboardEvent.md +97 -0
- package/docs/api/RatingItemMouseEvent.md +97 -0
- package/docs/api/RatingItemProps.md +941 -0
- package/docs/api/RatingKeyboardEvent.md +97 -0
- package/docs/api/RatingMouseEvent.md +97 -0
- package/docs/api/RatingProps.md +1308 -0
- package/docs/api/RatingPropsContext.md +17 -0
- package/docs/api/Signature.md +13 -0
- package/docs/api/SignatureBlurEvent.md +132 -0
- package/docs/api/SignatureChangeEvent.md +167 -0
- package/docs/api/SignatureCloseEvent.md +132 -0
- package/docs/api/SignatureFocusEvent.md +132 -0
- package/docs/api/SignatureHandle.md +162 -0
- package/docs/api/SignatureOpenEvent.md +132 -0
- package/docs/api/SignatureProps.md +1592 -0
- package/docs/api/SignaturePropsContext.md +17 -0
- package/docs/api/Slider.md +17 -0
- package/docs/api/SliderChangeEvent.md +167 -0
- package/docs/api/SliderHandle.md +99 -0
- package/docs/api/SliderLabel.md +62 -0
- package/docs/api/SliderLabelProps.md +171 -0
- package/docs/api/SliderProps.md +902 -0
- package/docs/api/SliderPropsContext.md +17 -0
- package/docs/api/Switch.md +17 -0
- package/docs/api/SwitchChangeEvent.md +167 -0
- package/docs/api/SwitchHandle.md +239 -0
- package/docs/api/SwitchProps.md +1081 -0
- package/docs/api/SwitchPropsContext.md +17 -0
- package/docs/api/TextArea.md +27 -0
- package/docs/api/TextAreaBlurEvent.md +132 -0
- package/docs/api/TextAreaChangeEvent.md +167 -0
- package/docs/api/TextAreaFocusEvent.md +132 -0
- package/docs/api/TextAreaProps.md +1082 -0
- package/docs/api/TextAreaPropsContext.md +17 -0
- package/docs/api/TileSize.md +18 -0
- package/docs/api/ToggleBaseProps.md +132 -0
- package/docs/api/_meta.yml +3 -0
- package/docs/api/index.md +425 -0
- package/docs/auto-imports.js +40 -0
- package/docs/checkbox/_meta.yml +3 -0
- package/docs/checkbox/accessibility.md +26 -0
- package/docs/checkbox/appearance.md +28 -0
- package/docs/checkbox/controlled.md +57 -0
- package/docs/checkbox/default-state.md +24 -0
- package/docs/checkbox/disabled.md +23 -0
- package/docs/checkbox/forms-support.md +90 -0
- package/docs/checkbox/index.md +46 -0
- package/docs/checkbox/keyboard-navigation.md +36 -0
- package/docs/checkbox/labels.md +36 -0
- package/docs/colorgradient/_meta.yml +3 -0
- package/docs/colorgradient/color-contrast.md +34 -0
- package/docs/colorgradient/controlled.md +32 -0
- package/docs/colorgradient/disabled.md +23 -0
- package/docs/colorgradient/index.md +42 -0
- package/docs/colorgradient/noopacity.md +28 -0
- package/docs/colorpalette/_meta.yml +3 -0
- package/docs/colorpalette/assets/demo-img.png +0 -0
- package/docs/colorpalette/controlled.md +32 -0
- package/docs/colorpalette/custom.md +23 -0
- package/docs/colorpalette/disabled.md +23 -0
- package/docs/colorpalette/events.md +27 -0
- package/docs/colorpalette/index.md +47 -0
- package/docs/colorpalette/keyboard-navigation.md +36 -0
- package/docs/colorpalette/presets.md +23 -0
- package/docs/colorpicker/_meta.yml +3 -0
- package/docs/colorpicker/appearance.md +30 -0
- package/docs/colorpicker/color-contrast.md +33 -0
- package/docs/colorpicker/combined-views.md +46 -0
- package/docs/colorpicker/controlled.md +57 -0
- package/docs/colorpicker/custom.md +67 -0
- package/docs/colorpicker/default-value.md +20 -0
- package/docs/colorpicker/disabled.md +20 -0
- package/docs/colorpicker/index.md +41 -0
- package/docs/colorpicker/keyboard-navigation.md +39 -0
- package/docs/custom-attributes.md +27 -0
- package/docs/examples/attribute/class/main.tsx +44 -0
- package/docs/examples/attribute/func/main.tsx +58 -0
- package/docs/examples/checkbox/appearance/func/main.tsx +33 -0
- package/docs/examples/checkbox/controlled/checked/class/main.tsx +32 -0
- package/docs/examples/checkbox/controlled/checked/func/main.tsx +29 -0
- package/docs/examples/checkbox/controlled/value/class/main.tsx +32 -0
- package/docs/examples/checkbox/controlled/value/func/main.tsx +28 -0
- package/docs/examples/checkbox/default/func/main.tsx +15 -0
- package/docs/examples/checkbox/disabled/func/main.tsx +19 -0
- package/docs/examples/checkbox/forms/basic/class/main.tsx +79 -0
- package/docs/examples/checkbox/forms/basic/func/main.tsx +71 -0
- package/docs/examples/checkbox/forms/custom-message/class/main.tsx +117 -0
- package/docs/examples/checkbox/forms/custom-message/func/main.tsx +124 -0
- package/docs/examples/checkbox/forms/disable-styles/class/main.tsx +126 -0
- package/docs/examples/checkbox/forms/disable-styles/func/main.tsx +125 -0
- package/docs/examples/checkbox/forms/kendo-react-form/func/main.tsx +137 -0
- package/docs/examples/checkbox/keyboard/class/main.tsx +32 -0
- package/docs/examples/checkbox/keyboard/func/main.tsx +27 -0
- package/docs/examples/checkbox/labels/custom/func/main.tsx +20 -0
- package/docs/examples/checkbox/labels/setup/func/main.tsx +20 -0
- package/docs/examples/checkbox/main/func/main.tsx +22 -0
- package/docs/examples/colorgradient/colorcontrast/class/main.tsx +48 -0
- package/docs/examples/colorgradient/colorcontrast/func/main.tsx +43 -0
- package/docs/examples/colorgradient/controlled/class/main.tsx +29 -0
- package/docs/examples/colorgradient/controlled/func/main.tsx +21 -0
- package/docs/examples/colorgradient/disabled/func/main.tsx +17 -0
- package/docs/examples/colorgradient/opacity/class/main.tsx +32 -0
- package/docs/examples/colorgradient/opacity/func/main.tsx +24 -0
- package/docs/examples/colorgradient/overview/class/main.tsx +42 -0
- package/docs/examples/colorgradient/overview/func/main.tsx +34 -0
- package/docs/examples/colorpalette/controlled/class/main.tsx +25 -0
- package/docs/examples/colorpalette/controlled/func/main.tsx +17 -0
- package/docs/examples/colorpalette/custom/func/main.tsx +13 -0
- package/docs/examples/colorpalette/disabled/func/main.tsx +13 -0
- package/docs/examples/colorpalette/keyboard/class/main.tsx +30 -0
- package/docs/examples/colorpalette/keyboard/func/main.tsx +30 -0
- package/docs/examples/colorpalette/overview/basic/class/main.tsx +55 -0
- package/docs/examples/colorpalette/overview/basic/class/styles.css +50 -0
- package/docs/examples/colorpalette/overview/basic/func/main.tsx +47 -0
- package/docs/examples/colorpalette/overview/basic/func/styles.css +50 -0
- package/docs/examples/colorpalette/overview/events/class/main.tsx +48 -0
- package/docs/examples/colorpalette/overview/events/func/main.tsx +40 -0
- package/docs/examples/colorpalette/presets/func/main.tsx +70 -0
- package/docs/examples/colorpicker/appearance/func/main.tsx +37 -0
- package/docs/examples/colorpicker/colorcontrast/class/main.tsx +50 -0
- package/docs/examples/colorpicker/colorcontrast/func/main.tsx +44 -0
- package/docs/examples/colorpicker/controlled/popup/class/main.tsx +39 -0
- package/docs/examples/colorpicker/controlled/popup/func/main.tsx +31 -0
- package/docs/examples/colorpicker/controlled/value/class/main.tsx +25 -0
- package/docs/examples/colorpicker/controlled/value/func/main.tsx +17 -0
- package/docs/examples/colorpicker/custom/custom-icons/func/main.tsx +18 -0
- package/docs/examples/colorpicker/custom/gradient/func/main.tsx +24 -0
- package/docs/examples/colorpicker/custom/kendo-icons/func/main.tsx +18 -0
- package/docs/examples/colorpicker/custom/palette/func/main.tsx +28 -0
- package/docs/examples/colorpicker/default/func/main.tsx +24 -0
- package/docs/examples/colorpicker/disabled/func/main.tsx +17 -0
- package/docs/examples/colorpicker/keyboard/class/main.tsx +30 -0
- package/docs/examples/colorpicker/keyboard/func/main.tsx +29 -0
- package/docs/examples/colorpicker/overview/func/main.tsx +24 -0
- package/docs/examples/colorpicker/view/combined/class/main.tsx +37 -0
- package/docs/examples/colorpicker/view/combined/func/main.tsx +27 -0
- package/docs/examples/colorpicker/view/popup/class/main.tsx +66 -0
- package/docs/examples/colorpicker/view/popup/func/main.tsx +55 -0
- package/docs/examples/flatcolorpicker/basic/func/main.tsx +13 -0
- package/docs/examples/flatcolorpicker/customization/footer/func/main.tsx +13 -0
- package/docs/examples/flatcolorpicker/customization/header/func/main.tsx +13 -0
- package/docs/examples/flatcolorpicker/disabled/func/main.tsx +13 -0
- package/docs/examples/get-started/func/main.tsx +14 -0
- package/docs/examples/globalization/func/main.tsx +47 -0
- package/docs/examples/input/counter/main.tsx +30 -0
- package/docs/examples/input/forms/basic/class/main.tsx +87 -0
- package/docs/examples/input/forms/basic/func/main.tsx +79 -0
- package/docs/examples/input/forms/custom-message/class/main.tsx +94 -0
- package/docs/examples/input/forms/custom-message/func/main.tsx +86 -0
- package/docs/examples/input/forms/disable-styles/class/main.tsx +115 -0
- package/docs/examples/input/forms/disable-styles/func/main.tsx +106 -0
- package/docs/examples/input/forms/override/class/main.tsx +111 -0
- package/docs/examples/input/forms/override/func/main.tsx +102 -0
- package/docs/examples/input/main/main.jsx +17 -0
- package/docs/examples/input/overview/func/main.tsx +88 -0
- package/docs/examples/label/class/main.tsx +69 -0
- package/docs/examples/label/func/main.tsx +65 -0
- package/docs/examples/maskedtextbox/appearance/func/main.tsx +41 -0
- package/docs/examples/maskedtextbox/disabled/func/main.tsx +24 -0
- package/docs/examples/maskedtextbox/forms/basic/class/main.tsx +78 -0
- package/docs/examples/maskedtextbox/forms/basic/func/main.tsx +70 -0
- package/docs/examples/maskedtextbox/forms/custom-message/class/main.tsx +81 -0
- package/docs/examples/maskedtextbox/forms/custom-message/func/main.tsx +73 -0
- package/docs/examples/maskedtextbox/forms/disable-styles/class/main.tsx +75 -0
- package/docs/examples/maskedtextbox/forms/disable-styles/func/main.tsx +67 -0
- package/docs/examples/maskedtextbox/forms/override/class/main.tsx +85 -0
- package/docs/examples/maskedtextbox/forms/override/func/main.tsx +75 -0
- package/docs/examples/maskedtextbox/mask/basic/func/main.tsx +19 -0
- package/docs/examples/maskedtextbox/mask/extend/func/main.tsx +35 -0
- package/docs/examples/maskedtextbox/overview/basic/func/main.tsx +18 -0
- package/docs/examples/maskedtextbox/readonly/func/main.tsx +20 -0
- package/docs/examples/maskedtextbox/valid/class/main.tsx +59 -0
- package/docs/examples/maskedtextbox/valid/func/main.tsx +51 -0
- package/docs/examples/maskedtextbox/value/class/main.tsx +37 -0
- package/docs/examples/maskedtextbox/value/func/main.tsx +29 -0
- package/docs/examples/numerictextbox/appearance/func/main.tsx +39 -0
- package/docs/examples/numerictextbox/formats/func/main.tsx +53 -0
- package/docs/examples/numerictextbox/forms/basic/class/main.tsx +75 -0
- package/docs/examples/numerictextbox/forms/basic/func/main.tsx +67 -0
- package/docs/examples/numerictextbox/forms/custom-message/class/main.tsx +82 -0
- package/docs/examples/numerictextbox/forms/custom-message/func/main.tsx +74 -0
- package/docs/examples/numerictextbox/forms/disable-styles/class/main.tsx +98 -0
- package/docs/examples/numerictextbox/forms/disable-styles/func/main.tsx +85 -0
- package/docs/examples/numerictextbox/forms/override/class/main.tsx +96 -0
- package/docs/examples/numerictextbox/forms/override/func/main.tsx +87 -0
- package/docs/examples/numerictextbox/forms/ref/class/main.tsx +44 -0
- package/docs/examples/numerictextbox/forms/ref/func/main.tsx +34 -0
- package/docs/examples/numerictextbox/keyboard/func/main.tsx +20 -0
- package/docs/examples/numerictextbox/overview/class/main.tsx +55 -0
- package/docs/examples/numerictextbox/overview/func/main.tsx +43 -0
- package/docs/examples/numerictextbox/spin/func/main.tsx +22 -0
- package/docs/examples/numerictextbox/step/func/main.tsx +21 -0
- package/docs/examples/overview/func/main.tsx +102 -0
- package/docs/examples/props-context/overview/class/grid-with-filtering.tsx +32 -0
- package/docs/examples/props-context/overview/class/main.tsx +26 -0
- package/docs/examples/props-context/overview/class/sample-products.ts +182 -0
- package/docs/examples/props-context/overview/func/grid-with-filtering.tsx +32 -0
- package/docs/examples/props-context/overview/func/main.tsx +24 -0
- package/docs/examples/props-context/overview/func/sample-products.ts +182 -0
- package/docs/examples/radiobutton/appearance/func/main.tsx +28 -0
- package/docs/examples/radiobutton/custom-labels/func/main.tsx +28 -0
- package/docs/examples/radiobutton/disabled/func/main.tsx +20 -0
- package/docs/examples/radiobutton/labels/func/main.tsx +20 -0
- package/docs/examples/radiobutton/overview/class/main.tsx +35 -0
- package/docs/examples/radiobutton/overview/func/main.tsx +30 -0
- package/docs/examples/radiogroup/controlled/class/main.tsx +49 -0
- package/docs/examples/radiogroup/controlled/func/main.tsx +40 -0
- package/docs/examples/radiogroup/default-state/func/main.tsx +19 -0
- package/docs/examples/radiogroup/forms/class/main.tsx +150 -0
- package/docs/examples/radiogroup/forms/func/main.tsx +146 -0
- package/docs/examples/radiogroup/keyboard/class/main.tsx +37 -0
- package/docs/examples/radiogroup/keyboard/func/main.tsx +31 -0
- package/docs/examples/radiogroup/layout/class/main.tsx +49 -0
- package/docs/examples/radiogroup/layout/func/main.tsx +43 -0
- package/docs/examples/radiogroup/overview/func/main.tsx +18 -0
- package/docs/examples/rangeslider/controlled/class/main.tsx +45 -0
- package/docs/examples/rangeslider/controlled/func/main.tsx +37 -0
- package/docs/examples/rangeslider/disabled/func/main.tsx +27 -0
- package/docs/examples/rangeslider/labels/func/main.tsx +26 -0
- package/docs/examples/rangeslider/orientation/func/main.tsx +27 -0
- package/docs/examples/rangeslider/overview/func/main.tsx +26 -0
- package/docs/examples/rating/controlled/class/main.tsx +29 -0
- package/docs/examples/rating/controlled/func/main.tsx +21 -0
- package/docs/examples/rating/disabled/func/main.tsx +18 -0
- package/docs/examples/rating/forms/class/main.tsx +85 -0
- package/docs/examples/rating/forms/func/main.tsx +79 -0
- package/docs/examples/rating/icon/func/main.tsx +15 -0
- package/docs/examples/rating/items/func/main.tsx +15 -0
- package/docs/examples/rating/label/class/main.tsx +33 -0
- package/docs/examples/rating/label/func/main.tsx +26 -0
- package/docs/examples/rating/navigation/func/main.tsx +15 -0
- package/docs/examples/rating/overview/func/main.tsx +12 -0
- package/docs/examples/rating/precision/func/main.tsx +27 -0
- package/docs/examples/rating/rating-item/advanced/class/main.tsx +82 -0
- package/docs/examples/rating/rating-item/advanced/func/main.tsx +76 -0
- package/docs/examples/rating/rating-item/overview/func/main.tsx +75 -0
- package/docs/examples/rating/readonly/func/main.tsx +18 -0
- package/docs/examples/rating/selection/func/main.tsx +25 -0
- package/docs/examples/rtl/func/main.tsx +99 -0
- package/docs/examples/shared/checkbox-style-configurator.tsx +69 -0
- package/docs/examples/shared/es.json +6 -0
- package/docs/examples/shared/radiobutton-style-configurator.tsx +47 -0
- package/docs/examples/shared/sample-signature.ts +2 -0
- package/docs/examples/shared/style-configurator.tsx +93 -0
- package/docs/examples/shared/switch-style-configurator.tsx +91 -0
- package/docs/examples/signature/appearance/all-options/func/main.tsx +89 -0
- package/docs/examples/signature/appearance/color/func/main.tsx +17 -0
- package/docs/examples/signature/appearance/stroke-width/func/main.tsx +16 -0
- package/docs/examples/signature/controlled/export-scale/func/main.tsx +34 -0
- package/docs/examples/signature/controlled/popup/func/main.tsx +28 -0
- package/docs/examples/signature/controlled/value/func/main.tsx +19 -0
- package/docs/examples/signature/disabled/func/main.tsx +17 -0
- package/docs/examples/signature/events/func/main.tsx +66 -0
- package/docs/examples/signature/forms/kendo/func/main.tsx +148 -0
- package/docs/examples/signature/overview/func/main.tsx +239 -0
- package/docs/examples/signature/overview/func/styles.css +56 -0
- package/docs/examples/signature/popup/disabled/func/main.tsx +14 -0
- package/docs/examples/signature/popup/scale/func/main.tsx +14 -0
- package/docs/examples/signature/readonly/func/main.tsx +17 -0
- package/docs/examples/signature/smooth/func/main.tsx +14 -0
- package/docs/examples/slider/buttons/func/main.tsx +18 -0
- package/docs/examples/slider/controlled/class/main.tsx +45 -0
- package/docs/examples/slider/controlled/func/main.tsx +36 -0
- package/docs/examples/slider/labels/class/main.tsx +44 -0
- package/docs/examples/slider/labels/func/main.tsx +35 -0
- package/docs/examples/slider/orientation/func/main.tsx +25 -0
- package/docs/examples/slider/overview/func/main.tsx +24 -0
- package/docs/examples/switch/appearance/func/main.tsx +38 -0
- package/docs/examples/switch/controlled/manual/class/main.tsx +40 -0
- package/docs/examples/switch/controlled/manual/func/main.tsx +33 -0
- package/docs/examples/switch/controlled/readonly/func/main.tsx +15 -0
- package/docs/examples/switch/default/func/main.tsx +15 -0
- package/docs/examples/switch/disabled/func/main.tsx +15 -0
- package/docs/examples/switch/forms/basic/class/main.tsx +81 -0
- package/docs/examples/switch/forms/basic/func/main.tsx +72 -0
- package/docs/examples/switch/forms/custom-message/class/main.tsx +108 -0
- package/docs/examples/switch/forms/custom-message/func/main.tsx +100 -0
- package/docs/examples/switch/forms/disable-styles/class/main.tsx +129 -0
- package/docs/examples/switch/forms/disable-styles/func/main.tsx +118 -0
- package/docs/examples/switch/forms/kendo-react-form/class/main.tsx +104 -0
- package/docs/examples/switch/forms/kendo-react-form/func/main.tsx +106 -0
- package/docs/examples/switch/keyboard/class/main.tsx +22 -0
- package/docs/examples/switch/keyboard/func/main.tsx +23 -0
- package/docs/examples/switch/labels/func/main.tsx +15 -0
- package/docs/examples/switch/overview/basic/func/main.tsx +15 -0
- package/docs/examples/textarea/appearance/func/main.tsx +39 -0
- package/docs/examples/textarea/auto-sizing/func/main.tsx +18 -0
- package/docs/examples/textarea/controlled/class/main.tsx +32 -0
- package/docs/examples/textarea/controlled/func/main.tsx +26 -0
- package/docs/examples/textarea/counter/class/main.tsx +38 -0
- package/docs/examples/textarea/counter/func/main.tsx +32 -0
- package/docs/examples/textarea/default-state/func/main.tsx +18 -0
- package/docs/examples/textarea/disabled/func/main.tsx +20 -0
- package/docs/examples/textarea/forms/kendo-react-form/class/main.tsx +152 -0
- package/docs/examples/textarea/forms/kendo-react-form/func/main.tsx +140 -0
- package/docs/examples/textarea/main/func/main.tsx +15 -0
- package/docs/examples/textarea/overview/class/main.tsx +103 -0
- package/docs/examples/textarea/overview/func/main.tsx +90 -0
- package/docs/examples/textarea/sizing/func/main.tsx +15 -0
- package/docs/examples/tsconfig.json +29 -0
- package/docs/flatcolorpicker/_meta.yml +3 -0
- package/docs/flatcolorpicker/customization.md +33 -0
- package/docs/flatcolorpicker/disabled.md +22 -0
- package/docs/flatcolorpicker/index.md +30 -0
- package/docs/floating-labels.md +35 -0
- package/docs/get-started.md +153 -0
- package/docs/globalization.md +67 -0
- package/docs/index.md +212 -0
- package/docs/input/_meta.yml +3 -0
- package/docs/input/counter.md +20 -0
- package/docs/input/forms.md +87 -0
- package/docs/input/index.md +40 -0
- package/docs/maskedtextbox/_meta.yml +3 -0
- package/docs/maskedtextbox/accessibility.md +22 -0
- package/docs/maskedtextbox/appearance.md +30 -0
- package/docs/maskedtextbox/disabled-state.md +20 -0
- package/docs/maskedtextbox/forms.md +87 -0
- package/docs/maskedtextbox/index.md +40 -0
- package/docs/maskedtextbox/masks.md +44 -0
- package/docs/maskedtextbox/readonly-state.md +20 -0
- package/docs/maskedtextbox/valid-state.md +25 -0
- package/docs/maskedtextbox/value.md +23 -0
- package/docs/numerictextbox/_meta.yml +3 -0
- package/docs/numerictextbox/accessibility.md +25 -0
- package/docs/numerictextbox/appearance.md +30 -0
- package/docs/numerictextbox/formats.md +25 -0
- package/docs/numerictextbox/forms.md +87 -0
- package/docs/numerictextbox/index.md +49 -0
- package/docs/numerictextbox/keyboard-navigation.md +26 -0
- package/docs/numerictextbox/predefined-step.md +20 -0
- package/docs/numerictextbox/ref.md +28 -0
- package/docs/numerictextbox/spin-buttons.md +20 -0
- package/docs/props-context.md +65 -0
- package/docs/radiobutton/_meta.yml +3 -0
- package/docs/radiobutton/appearance.md +26 -0
- package/docs/radiobutton/disabled.md +23 -0
- package/docs/radiobutton/index.md +47 -0
- package/docs/radiobutton/labels.md +36 -0
- package/docs/radiogroup/_meta.yml +3 -0
- package/docs/radiogroup/accessibility.md +25 -0
- package/docs/radiogroup/controlled_mode.md +34 -0
- package/docs/radiogroup/default_state.md +24 -0
- package/docs/radiogroup/forms_support.md +37 -0
- package/docs/radiogroup/index.md +41 -0
- package/docs/radiogroup/keyboard_navigation.md +37 -0
- package/docs/radiogroup/layout.md +29 -0
- package/docs/rangeslider/_meta.yml +3 -0
- package/docs/rangeslider/accessibility.md +26 -0
- package/docs/rangeslider/controlled.md +32 -0
- package/docs/rangeslider/disabled.md +23 -0
- package/docs/rangeslider/index.md +41 -0
- package/docs/rangeslider/keyboard-navigation.md +33 -0
- package/docs/rangeslider/orientation.md +24 -0
- package/docs/rangeslider/ticks.md +26 -0
- package/docs/rating/_meta.yml +3 -0
- package/docs/rating/accessibility.md +26 -0
- package/docs/rating/forms_support.md +39 -0
- package/docs/rating/functionality-and-features/_meta.yml +2 -0
- package/docs/rating/functionality-and-features/controlled.md +34 -0
- package/docs/rating/functionality-and-features/disabled.md +23 -0
- package/docs/rating/functionality-and-features/icon.md +27 -0
- package/docs/rating/functionality-and-features/items.md +24 -0
- package/docs/rating/functionality-and-features/label.md +28 -0
- package/docs/rating/functionality-and-features/precision.md +51 -0
- package/docs/rating/functionality-and-features/readonly.md +23 -0
- package/docs/rating/functionality-and-features/selection.md +23 -0
- package/docs/rating/index.md +45 -0
- package/docs/rating/item_custamization.md +45 -0
- package/docs/rating/keyboard-navigation.md +33 -0
- package/docs/signature/_meta.yml +3 -0
- package/docs/signature/appearance.md +96 -0
- package/docs/signature/controlled.md +60 -0
- package/docs/signature/disabled.md +21 -0
- package/docs/signature/events.md +20 -0
- package/docs/signature/forms.md +28 -0
- package/docs/signature/index.md +34 -0
- package/docs/signature/line-smoothing.md +16 -0
- package/docs/signature/popup.md +34 -0
- package/docs/signature/readonly.md +21 -0
- package/docs/slider/_meta.yml +3 -0
- package/docs/slider/accessibility.md +26 -0
- package/docs/slider/controlled.md +32 -0
- package/docs/slider/index.md +41 -0
- package/docs/slider/keyboard-navigation.md +33 -0
- package/docs/slider/orientation.md +24 -0
- package/docs/slider/side-buttons.md +24 -0
- package/docs/slider/ticks.md +31 -0
- package/docs/switch/_meta.yml +3 -0
- package/docs/switch/accessibility.md +17 -0
- package/docs/switch/appearance.md +30 -0
- package/docs/switch/controlled-switch.md +44 -0
- package/docs/switch/default-state.md +20 -0
- package/docs/switch/disabled-state.md +20 -0
- package/docs/switch/forms-support.md +78 -0
- package/docs/switch/index.md +44 -0
- package/docs/switch/keyboard-navigation.md +31 -0
- package/docs/switch/labels.md +29 -0
- package/docs/textarea/_meta.yml +3 -0
- package/docs/textarea/appearance.md +30 -0
- package/docs/textarea/controlled_mode.md +37 -0
- package/docs/textarea/counter.md +28 -0
- package/docs/textarea/default_state.md +25 -0
- package/docs/textarea/disabled.md +24 -0
- package/docs/textarea/forms_support.md +39 -0
- package/docs/textarea/index.md +51 -0
- package/docs/textarea/sizing.md +38 -0
- package/e2e/a11y.tests.ts +154 -0
- package/e2e/input.tests.ts +143 -0
- package/e2e/numeric.tests.ts +134 -0
- package/e2e/switch.tests.ts +122 -0
- package/examples/checkbox/checkbox.html +9 -0
- package/examples/checkbox/checkbox.tsx +292 -0
- package/examples/checkbox/checkboxForm.html +9 -0
- package/examples/checkbox/checkboxForm.tsx +81 -0
- package/examples/checkbox/checked-n-value.html +9 -0
- package/examples/checkbox/checked-n-value.tsx +115 -0
- package/examples/checkbox/controlled-mode.html +9 -0
- package/examples/checkbox/controlled-mode.tsx +69 -0
- package/examples/checkbox/form.html +9 -0
- package/examples/checkbox/form.tsx +78 -0
- package/examples/checkbox/formik.html +9 -0
- package/examples/checkbox/formik.tsx +89 -0
- package/examples/colors/colorContrast.html +12 -0
- package/examples/colors/colorContrast.tsx +52 -0
- package/examples/colors/colorGradient.html +9 -0
- package/examples/colors/colorGradient.tsx +37 -0
- package/examples/colors/colorPalette.html +9 -0
- package/examples/colors/colorPalette.tsx +29 -0
- package/examples/colors/colorPicker.html +22 -0
- package/examples/colors/colorPicker.tsx +58 -0
- package/examples/colors/colorPickerLocalization.html +9 -0
- package/examples/colors/colorPickerLocalization.tsx +31 -0
- package/examples/colors/flatColorPicker.html +12 -0
- package/examples/colors/flatColorPicker.tsx +21 -0
- package/examples/context/class/grid-with-filtering.tsx +32 -0
- package/examples/context/class/index.html +9 -0
- package/examples/context/class/index.tsx +28 -0
- package/examples/context/class/sample-products.tsx +182 -0
- package/examples/context/func/grid-with-filtering.tsx +32 -0
- package/examples/context/func/index.html +9 -0
- package/examples/context/func/index.tsx +26 -0
- package/examples/context/func/sample-products.tsx +182 -0
- package/examples/e2e/accessibility/CheckboxExample.tsx +26 -0
- package/examples/e2e/accessibility/ColorGradientExample.tsx +28 -0
- package/examples/e2e/accessibility/ColorPaletteExample.tsx +33 -0
- package/examples/e2e/accessibility/ColorPickerExample.tsx +21 -0
- package/examples/e2e/accessibility/InputExample.tsx +49 -0
- package/examples/e2e/accessibility/MaskedTextBoxExample.tsx +29 -0
- package/examples/e2e/accessibility/NumericTextBoxExample.tsx +24 -0
- package/examples/e2e/accessibility/RadioButtonExample.tsx +29 -0
- package/examples/e2e/accessibility/RangeSliderExample.tsx +26 -0
- package/examples/e2e/accessibility/RatingExample.tsx +13 -0
- package/examples/e2e/accessibility/SliderExample.tsx +19 -0
- package/examples/e2e/accessibility/SwitchExample.tsx +26 -0
- package/examples/e2e/accessibility/TextAreaExample.tsx +70 -0
- package/examples/e2e/accessibility/main.html +14 -0
- package/examples/e2e/accessibility/main.tsx +104 -0
- package/examples/e2e/input/input.html +9 -0
- package/examples/e2e/input/input.tsx +58 -0
- package/examples/e2e/numerictextbox/numericLabel.html +9 -0
- package/examples/e2e/numerictextbox/numericLabel.tsx +38 -0
- package/examples/e2e/switch/switch.html +16 -0
- package/examples/e2e/switch/switch.tsx +74 -0
- package/examples/focus/focus.html +9 -0
- package/examples/focus/focus.tsx +81 -0
- package/examples/input/inputFloatingLabels.html +9 -0
- package/examples/input/inputFloatingLabels.tsx +26 -0
- package/examples/input/inputForm.html +9 -0
- package/examples/input/inputForm.tsx +151 -0
- package/examples/maskedtextbox/basic.html +9 -0
- package/examples/maskedtextbox/basic.tsx +54 -0
- package/examples/maskedtextbox/ipmask.html +9 -0
- package/examples/maskedtextbox/ipmask.tsx +79 -0
- package/examples/messages/index.ts +4 -0
- package/examples/numerictextbox/newNumeric.html +9 -0
- package/examples/numerictextbox/newNumeric.tsx +149 -0
- package/examples/numerictextbox/numeric.html +9 -0
- package/examples/numerictextbox/numeric.tsx +247 -0
- package/examples/numerictextbox/numericApiExample.html +9 -0
- package/examples/numerictextbox/numericApiExample.tsx +25 -0
- package/examples/numerictextbox/numericForm.html +9 -0
- package/examples/numerictextbox/numericForm.tsx +89 -0
- package/examples/numerictextbox/roundingIssues.html +9 -0
- package/examples/numerictextbox/roundingIssues.tsx +51 -0
- package/examples/numerictextbox/test.html +9 -0
- package/examples/numerictextbox/test.tsx +165 -0
- package/examples/numerictextbox/testingBlurDisabled.html +9 -0
- package/examples/numerictextbox/testingBlurDisabled.tsx +167 -0
- package/examples/radio-group/customization/index.html +12 -0
- package/examples/radio-group/customization/index.tsx +32 -0
- package/examples/radioButton/accessibility.html +12 -0
- package/examples/radioButton/accessibility.tsx +81 -0
- package/examples/radioButton/html-forms.html +9 -0
- package/examples/radioButton/html-forms.tsx +63 -0
- package/examples/radioButton/kendo-react-form.html +12 -0
- package/examples/radioButton/kendo-react-form.tsx +80 -0
- package/examples/radioButton/radio.html +9 -0
- package/examples/radioButton/radio.tsx +45 -0
- package/examples/radioButton/standalone-radio.html +9 -0
- package/examples/radioButton/standalone-radio.tsx +76 -0
- package/examples/range-slider/form/index.html +9 -0
- package/examples/range-slider/form/index.tsx +57 -0
- package/examples/range-slider/index.html +9 -0
- package/examples/range-slider/index.tsx +147 -0
- package/examples/rating/index.html +9 -0
- package/examples/rating/index.tsx +158 -0
- package/examples/rtl/index.html +12 -0
- package/examples/rtl/index.tsx +29 -0
- package/examples/signature/basic.html +9 -0
- package/examples/signature/basic.tsx +72 -0
- package/examples/signature/forms-basic.html +9 -0
- package/examples/signature/forms-basic.tsx +72 -0
- package/examples/signature/forms.html +9 -0
- package/examples/signature/forms.tsx +90 -0
- package/examples/slider/slider.html +15 -0
- package/examples/slider/slider.tsx +99 -0
- package/examples/slider/vertical.html +15 -0
- package/examples/slider/vertical.tsx +28 -0
- package/examples/switch/switch.html +9 -0
- package/examples/switch/switch.tsx +44 -0
- package/examples/switch/switchDoubleEvent.html +9 -0
- package/examples/switch/switchDoubleEvent.tsx +25 -0
- package/examples/switch/switchForm.html +9 -0
- package/examples/switch/switchForm.tsx +138 -0
- package/examples/textarea/formik.html +12 -0
- package/examples/textarea/formik.tsx +84 -0
- package/examples/textarea/textarea.html +12 -0
- package/examples/textarea/textarea.tsx +96 -0
- package/gulpfile.js +7 -0
- package/package.json +19 -16
- package/src/checkbox/Checkbox.tsx +352 -0
- package/src/checkbox/interfaces/CheckboxBlurEvent.ts +7 -0
- package/src/checkbox/interfaces/CheckboxChangeEvent.ts +12 -0
- package/src/checkbox/interfaces/CheckboxFocusEvent.ts +7 -0
- package/src/checkbox/interfaces/CheckboxProps.ts +122 -0
- package/src/colors/ColorContrastLabels.tsx +83 -0
- package/src/colors/ColorContrastSvg.tsx +88 -0
- package/src/colors/ColorGradient.tsx +450 -0
- package/src/colors/ColorInput.tsx +192 -0
- package/src/colors/ColorPalette.tsx +329 -0
- package/src/colors/ColorPicker.tsx +387 -0
- package/src/colors/FlatColorPicker.tsx +258 -0
- package/src/colors/HexInput.tsx +67 -0
- package/src/colors/Picker.tsx +56 -0
- package/src/colors/interfaces/ColorGradientChangeEvent.ts +12 -0
- package/src/colors/interfaces/ColorGradientProps.ts +77 -0
- package/src/colors/interfaces/ColorPaletteChangeEvent.ts +16 -0
- package/src/colors/interfaces/ColorPaletteProps.ts +78 -0
- package/src/colors/interfaces/ColorPickerActiveColorClick.ts +17 -0
- package/src/colors/interfaces/ColorPickerBlurEvent.ts +13 -0
- package/src/colors/interfaces/ColorPickerChangeEvent.ts +17 -0
- package/src/colors/interfaces/ColorPickerFocusEvent.ts +13 -0
- package/src/colors/interfaces/ColorPickerGradientSettings.ts +19 -0
- package/src/colors/interfaces/ColorPickerPaletteSettings.ts +35 -0
- package/src/colors/interfaces/ColorPickerPopupSettings.ts +16 -0
- package/src/colors/interfaces/ColorPickerProps.ts +170 -0
- package/src/colors/interfaces/ColorPickerView.ts +10 -0
- package/src/colors/interfaces/PickerPopupSettings.ts +21 -0
- package/src/colors/interfaces/PickerProps.ts +51 -0
- package/src/colors/models/hsva.ts +9 -0
- package/src/colors/models/output-format.ts +4 -0
- package/src/colors/models/palette-presets.ts +54 -0
- package/src/colors/models/rgb.ts +8 -0
- package/src/colors/models/rgba.ts +9 -0
- package/src/colors/models/table-cell.ts +7 -0
- package/src/colors/models/tile-size.ts +8 -0
- package/src/colors/utils/color-cache.ts +71 -0
- package/src/colors/utils/color-palette.service.ts +79 -0
- package/src/colors/utils/color-parser.ts +158 -0
- package/src/colors/utils/misc.ts +23 -0
- package/src/colors/utils/svg-calc.ts +115 -0
- package/src/common/SliderTooltip.tsx +83 -0
- package/src/common/SwitchController.ts +130 -0
- package/src/common/SwitchModel.ts +12 -0
- package/src/input/Input.tsx +346 -0
- package/src/input/interfaces/InputChangeEvent.tsx +12 -0
- package/src/interfaces/Direction.ts +1 -0
- package/src/interfaces/ToggleBaseProps.ts +8 -0
- package/src/main.ts +57 -0
- package/src/maskedtextbox/MaskedTextBox.tsx +541 -0
- package/src/maskedtextbox/MaskedTextBoxProps.ts +215 -0
- package/src/maskedtextbox/masking.service.ts +230 -0
- package/src/maskedtextbox/parsing/combinators.ts +30 -0
- package/src/maskedtextbox/parsing/parsers.ts +179 -0
- package/src/maskedtextbox/parsing/result.ts +39 -0
- package/src/maskedtextbox/parsing/stream.ts +41 -0
- package/src/maskedtextbox/utils.ts +70 -0
- package/src/messages/index.ts +151 -0
- package/src/numerictextbox/NumericTextBox.tsx +626 -0
- package/src/numerictextbox/interfaces/NumericTextBoxBlurEvent.tsx +7 -0
- package/src/numerictextbox/interfaces/NumericTextBoxChangeEvent.tsx +12 -0
- package/src/numerictextbox/interfaces/NumericTextBoxFocusEvent.tsx +7 -0
- package/src/numerictextbox/interfaces/NumericTextBoxHandle.tsx +40 -0
- package/src/numerictextbox/interfaces/NumericTextBoxProps.tsx +180 -0
- package/src/numerictextbox/interfaces/NumericTextBoxState.tsx +15 -0
- package/src/numerictextbox/utils/index.tsx +744 -0
- package/src/package-metadata.ts +13 -0
- package/src/radiobutton/RadioButton.tsx +194 -0
- package/src/radiobutton/RadioGroup.tsx +190 -0
- package/src/radiobutton/interfaces/RadioButtonBlurEvent.ts +7 -0
- package/src/radiobutton/interfaces/RadioButtonChangeEvent.ts +12 -0
- package/src/radiobutton/interfaces/RadioButtonFocusEvent.ts +7 -0
- package/src/radiobutton/interfaces/RadioButtonProps.ts +102 -0
- package/src/radiobutton/interfaces/RadioGroupChangeEvent.ts +12 -0
- package/src/radiobutton/interfaces/RadioGroupFocusEvent.ts +7 -0
- package/src/radiobutton/interfaces/RadioGroupProps.ts +89 -0
- package/src/range-slider/RangeSlider.tsx +644 -0
- package/src/range-slider/range-raducer.tsx +153 -0
- package/src/rating/Rating.tsx +633 -0
- package/src/rating/RatingItem.tsx +268 -0
- package/src/rating/models/index.tsx +91 -0
- package/src/rating/rating-reducer.tsx +70 -0
- package/src/rating/utils/index.tsx +65 -0
- package/src/signature/Signature.tsx +488 -0
- package/src/signature/interfaces/SignatureBlurEvent.tsx +7 -0
- package/src/signature/interfaces/SignatureChangeEvent.tsx +12 -0
- package/src/signature/interfaces/SignatureCloseEvent.tsx +7 -0
- package/src/signature/interfaces/SignatureFocusEvent.tsx +7 -0
- package/src/signature/interfaces/SignatureHandle.tsx +35 -0
- package/src/signature/interfaces/SignatureOpenEvent.tsx +7 -0
- package/src/signature/interfaces/SignatureProps.tsx +227 -0
- package/src/signature/interfaces/index.ts +7 -0
- package/src/signature/utils/index.ts +11 -0
- package/src/slider/Slider.tsx +470 -0
- package/src/slider/SliderLabel.tsx +69 -0
- package/src/switch/Switch.tsx +559 -0
- package/src/textarea/TextArea.tsx +263 -0
- package/src/textarea/interfaces/TextAreaBlurEvent.ts +7 -0
- package/src/textarea/interfaces/TextAreaChangeEvent.ts +12 -0
- package/src/textarea/interfaces/TextAreaFocusEvent.ts +7 -0
- package/src/textarea/interfaces/TextAreaProps.tsx +131 -0
- package/src/utils.ts +16 -0
- package/test/Checkbox.tsx +252 -0
- package/test/ColorGradient.tsx +260 -0
- package/test/ColorPalette.tsx +440 -0
- package/test/ColorPicker.tsx +74 -0
- package/test/Input.tsx +255 -0
- package/test/NumericTextBox.tsx +984 -0
- package/test/RadioButton.tsx +176 -0
- package/test/RangeSlider.tsx +502 -0
- package/test/Rating.tsx +227 -0
- package/test/Slider.tsx +198 -0
- package/test/Switch.tsx +154 -0
- package/test/TextArea.tsx +216 -0
- package/test/maskedtextbox/component.tsx +424 -0
- package/test/maskedtextbox/masking.service.tsx +1345 -0
- package/test/maskedtextbox/parser.tsx +364 -0
- package/tsconfig.es.json +25 -0
- package/tsconfig.json +26 -0
- package/tsconfig.npm.json +25 -0
- package/LICENSE.md +0 -11
- package/NOTICE.txt +0 -111
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as ReactDOM from 'react-dom';
|
|
3
|
+
|
|
4
|
+
import { NumericTextBox, Input } from '@progress/kendo-react-inputs';
|
|
5
|
+
|
|
6
|
+
const App = () => {
|
|
7
|
+
const [firstName, setFirstName] = React.useState<string>('');
|
|
8
|
+
const [lastName, setLastName] = React.useState<string>('');
|
|
9
|
+
const [age, setAge] = React.useState<number>(0);
|
|
10
|
+
const [success, setSuccess] = React.useState<boolean>(false);
|
|
11
|
+
|
|
12
|
+
const ageValidationMessage: string = "You must be over 18 years old!";
|
|
13
|
+
|
|
14
|
+
const handleChange = (event) => {
|
|
15
|
+
if (event.target.name === 'firstName') {
|
|
16
|
+
setFirstName(event.target.value);
|
|
17
|
+
} else if (event.target.name === 'lastName') {
|
|
18
|
+
setLastName(event.target.value);
|
|
19
|
+
} else if (event.target.name === 'age') {
|
|
20
|
+
setAge(event.target.value);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const handleSubmit = (event) => {
|
|
25
|
+
event.preventDefault();
|
|
26
|
+
setSuccess(true);
|
|
27
|
+
setTimeout(() => { setSuccess(false); }, 3000);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return (
|
|
31
|
+
<div className="row example-wrapper">
|
|
32
|
+
<div className="col-xs-12 col-sm-6 offset-sm-3 example-col">
|
|
33
|
+
<form className="k-form" onSubmit={handleSubmit}>
|
|
34
|
+
<fieldset>
|
|
35
|
+
<legend>Please fill in the fields:</legend>
|
|
36
|
+
<div className="mb-3">
|
|
37
|
+
<Input
|
|
38
|
+
value={firstName}
|
|
39
|
+
onChange={handleChange}
|
|
40
|
+
name="firstName"
|
|
41
|
+
style={{ width: "100%" }}
|
|
42
|
+
label="First Name"
|
|
43
|
+
pattern="[A-Za-z]{1,32}"
|
|
44
|
+
/>
|
|
45
|
+
</div>
|
|
46
|
+
<div className="mb-3">
|
|
47
|
+
<Input
|
|
48
|
+
value={lastName}
|
|
49
|
+
onChange={handleChange}
|
|
50
|
+
name="lastName"
|
|
51
|
+
style={{ width: '100%' }}
|
|
52
|
+
label="Last Name"
|
|
53
|
+
/>
|
|
54
|
+
</div>
|
|
55
|
+
<div>
|
|
56
|
+
<NumericTextBox
|
|
57
|
+
value={age}
|
|
58
|
+
onChange={handleChange}
|
|
59
|
+
name="age"
|
|
60
|
+
width="100%"
|
|
61
|
+
label="Age"
|
|
62
|
+
required={true}
|
|
63
|
+
valid={age >= 18}
|
|
64
|
+
validationMessage={age !== null
|
|
65
|
+
? ageValidationMessage
|
|
66
|
+
: 'Please enter your age!'}
|
|
67
|
+
/>
|
|
68
|
+
</div>
|
|
69
|
+
</fieldset>
|
|
70
|
+
<input type="submit" className="k-button k-button-md k-rounded-md k-button-solid k-button-solid-primary" value="Search" />
|
|
71
|
+
</form>
|
|
72
|
+
</div>
|
|
73
|
+
{success && (
|
|
74
|
+
<div
|
|
75
|
+
className="alert alert-success"
|
|
76
|
+
style={{ position: 'absolute' }}
|
|
77
|
+
>
|
|
78
|
+
Form submitted!
|
|
79
|
+
</div>)}
|
|
80
|
+
</div>
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
ReactDOM.render(
|
|
85
|
+
<App />,
|
|
86
|
+
document.querySelector('my-app')
|
|
87
|
+
);
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as ReactDOM from "react-dom";
|
|
3
|
+
|
|
4
|
+
import { NumericTextBox } from "@progress/kendo-react-inputs";
|
|
5
|
+
|
|
6
|
+
interface AppState {
|
|
7
|
+
ref: any
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class App extends React.Component {
|
|
11
|
+
state: AppState = {
|
|
12
|
+
ref: React.createRef()
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
componentDidMount() {
|
|
16
|
+
this.state.ref.element.focus();
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
handleFocus = () => {
|
|
20
|
+
this.state.ref.current.focus();
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
render() {
|
|
24
|
+
return (
|
|
25
|
+
<div>
|
|
26
|
+
<NumericTextBox
|
|
27
|
+
ref={(ref) => this.setState({ ref })}
|
|
28
|
+
placeholder="please enter value"
|
|
29
|
+
defaultValue={10}
|
|
30
|
+
/>
|
|
31
|
+
<button
|
|
32
|
+
onClick={this.handleFocus}
|
|
33
|
+
>
|
|
34
|
+
Click to focus
|
|
35
|
+
</button>
|
|
36
|
+
</div>
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
ReactDOM.render(
|
|
42
|
+
<App />,
|
|
43
|
+
document.querySelector('my-app')
|
|
44
|
+
);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as ReactDOM from "react-dom";
|
|
3
|
+
|
|
4
|
+
import { NumericTextBox } from "@progress/kendo-react-inputs";
|
|
5
|
+
|
|
6
|
+
const App = () => {
|
|
7
|
+
const ref = React.createRef<any>();
|
|
8
|
+
|
|
9
|
+
const handleFocus = (event) => {
|
|
10
|
+
if (event && ref && ref.current) {
|
|
11
|
+
ref.current.focus();
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<div>
|
|
17
|
+
<NumericTextBox
|
|
18
|
+
ref={ref}
|
|
19
|
+
placeholder="please enter value"
|
|
20
|
+
defaultValue={10}
|
|
21
|
+
/>
|
|
22
|
+
<button
|
|
23
|
+
onClick={handleFocus}
|
|
24
|
+
>
|
|
25
|
+
Click to focus
|
|
26
|
+
</button>
|
|
27
|
+
</div>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
ReactDOM.render(
|
|
32
|
+
<App />,
|
|
33
|
+
document.querySelector('my-app')
|
|
34
|
+
);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
import * as ReactDOM from 'react-dom'
|
|
3
|
+
|
|
4
|
+
import { NumericTextBox } from '@progress/kendo-react-inputs';
|
|
5
|
+
|
|
6
|
+
const App = () => {
|
|
7
|
+
return (
|
|
8
|
+
<div>
|
|
9
|
+
<NumericTextBox
|
|
10
|
+
width={200}
|
|
11
|
+
defaultValue={5}
|
|
12
|
+
/>
|
|
13
|
+
</div>
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
ReactDOM.render(
|
|
18
|
+
<App />,
|
|
19
|
+
document.querySelector('my-app')
|
|
20
|
+
);
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
import * as ReactDOM from 'react-dom'
|
|
3
|
+
|
|
4
|
+
import { NumericTextBox, NumericTextBoxChangeEvent } from '@progress/kendo-react-inputs';
|
|
5
|
+
|
|
6
|
+
interface AppState {
|
|
7
|
+
value: number | null
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class App extends React.Component {
|
|
11
|
+
state: AppState = {
|
|
12
|
+
value: null
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
render() {
|
|
16
|
+
return (
|
|
17
|
+
<div>
|
|
18
|
+
<label>
|
|
19
|
+
<NumericTextBox
|
|
20
|
+
width={200}
|
|
21
|
+
placeholder="please enter value"
|
|
22
|
+
value={this.state.value}
|
|
23
|
+
onChange={this.ChangeKilometers}
|
|
24
|
+
/> Kilometers
|
|
25
|
+
</label>
|
|
26
|
+
<br />
|
|
27
|
+
<label>
|
|
28
|
+
<NumericTextBox
|
|
29
|
+
width={200}
|
|
30
|
+
placeholder="please enter value"
|
|
31
|
+
value={this.state.value !== null ? this.state.value / 1.609344 : null}
|
|
32
|
+
onChange={this.ChangeMiles}
|
|
33
|
+
/> Miles
|
|
34
|
+
</label>
|
|
35
|
+
</div>
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
ChangeKilometers = (e: NumericTextBoxChangeEvent) => {
|
|
40
|
+
this.setState({
|
|
41
|
+
value: e.value
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
ChangeMiles = (e: NumericTextBoxChangeEvent) => {
|
|
46
|
+
this.setState({
|
|
47
|
+
value: e.value !== null ? e.value * 1.609344 : null
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
ReactDOM.render(
|
|
53
|
+
<App />,
|
|
54
|
+
document.querySelector('my-app')
|
|
55
|
+
);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
import * as ReactDOM from 'react-dom'
|
|
3
|
+
|
|
4
|
+
import { NumericTextBox, NumericTextBoxChangeEvent } from '@progress/kendo-react-inputs';
|
|
5
|
+
|
|
6
|
+
const App = () => {
|
|
7
|
+
const [value, setValue] = React.useState<number | null>(null);
|
|
8
|
+
|
|
9
|
+
const ChangeKilometers = (e: NumericTextBoxChangeEvent) => {
|
|
10
|
+
setValue(e.value);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const ChangeMiles = (e: NumericTextBoxChangeEvent) => {
|
|
14
|
+
setValue(e.value !== null ? e.value * 1.609344 : null);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<div>
|
|
19
|
+
<label>
|
|
20
|
+
<NumericTextBox
|
|
21
|
+
width={200}
|
|
22
|
+
placeholder="please enter value"
|
|
23
|
+
value={value}
|
|
24
|
+
onChange={ChangeKilometers}
|
|
25
|
+
/> Kilometers
|
|
26
|
+
</label>
|
|
27
|
+
<br />
|
|
28
|
+
<label>
|
|
29
|
+
<NumericTextBox
|
|
30
|
+
width={200}
|
|
31
|
+
placeholder="please enter value"
|
|
32
|
+
value={value == null ? null : value / 1.609344}
|
|
33
|
+
onChange={ChangeMiles}
|
|
34
|
+
/> Miles
|
|
35
|
+
</label>
|
|
36
|
+
</div>
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
ReactDOM.render(
|
|
41
|
+
<App />,
|
|
42
|
+
document.querySelector('my-app')
|
|
43
|
+
);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
import * as ReactDOM from 'react-dom'
|
|
3
|
+
|
|
4
|
+
import { NumericTextBox } from '@progress/kendo-react-inputs';
|
|
5
|
+
|
|
6
|
+
const App = () => {
|
|
7
|
+
return (
|
|
8
|
+
<div>
|
|
9
|
+
<NumericTextBox
|
|
10
|
+
width={200}
|
|
11
|
+
defaultValue={5}
|
|
12
|
+
spinners={false}
|
|
13
|
+
step={2}
|
|
14
|
+
/>
|
|
15
|
+
</div>
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
ReactDOM.render(
|
|
20
|
+
<App />,
|
|
21
|
+
document.querySelector('my-app')
|
|
22
|
+
);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
import * as ReactDOM from 'react-dom'
|
|
3
|
+
|
|
4
|
+
import { NumericTextBox } from '@progress/kendo-react-inputs';
|
|
5
|
+
|
|
6
|
+
const App = () => {
|
|
7
|
+
return (
|
|
8
|
+
<div>
|
|
9
|
+
<NumericTextBox
|
|
10
|
+
width={200}
|
|
11
|
+
defaultValue={5}
|
|
12
|
+
step={3}
|
|
13
|
+
/>
|
|
14
|
+
</div>
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
ReactDOM.render(
|
|
19
|
+
<App />,
|
|
20
|
+
document.querySelector('my-app')
|
|
21
|
+
);
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
import * as ReactDOM from 'react-dom'
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
Input,
|
|
6
|
+
TextArea,
|
|
7
|
+
MaskedTextBox,
|
|
8
|
+
NumericTextBox,
|
|
9
|
+
Slider,
|
|
10
|
+
RangeSlider,
|
|
11
|
+
Rating,
|
|
12
|
+
ColorGradient,
|
|
13
|
+
ColorPalette,
|
|
14
|
+
ColorPicker,
|
|
15
|
+
Switch,
|
|
16
|
+
Checkbox,
|
|
17
|
+
RadioButton,
|
|
18
|
+
RadioGroup
|
|
19
|
+
} from '@progress/kendo-react-inputs'
|
|
20
|
+
|
|
21
|
+
const App = () => {
|
|
22
|
+
const data = React.useMemo(
|
|
23
|
+
() => [
|
|
24
|
+
{ label: 'Option 1', value: 'one' },
|
|
25
|
+
{ label: 'Option 2', value: 'two' },
|
|
26
|
+
{ label: 'Option 3', value: 'three' }
|
|
27
|
+
],
|
|
28
|
+
[]
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<div className="row example-wrapper" style={{ minHeight: 450 }}>
|
|
33
|
+
<div className="col-12 col-md-6 example-col">
|
|
34
|
+
<p>Input</p>
|
|
35
|
+
<Input label="First name" />
|
|
36
|
+
</div>
|
|
37
|
+
<div className="col-12 col-md-6 example-col">
|
|
38
|
+
<p>TextArea</p>
|
|
39
|
+
<TextArea placeholder="Type the text here..." rows={3} />
|
|
40
|
+
</div>
|
|
41
|
+
<div className="col-12 col-md-6 example-col">
|
|
42
|
+
<p>MaskedTextBox</p>
|
|
43
|
+
<MaskedTextBox
|
|
44
|
+
mask="9-000"
|
|
45
|
+
defaultValue="_-___"
|
|
46
|
+
/>
|
|
47
|
+
</div>
|
|
48
|
+
<div className="col-12 col-md-6 example-col">
|
|
49
|
+
<p>NumericTextBox</p>
|
|
50
|
+
<NumericTextBox
|
|
51
|
+
defaultValue={123.45}
|
|
52
|
+
format="c2"
|
|
53
|
+
/>
|
|
54
|
+
</div>
|
|
55
|
+
<div className="col-12 col-md-6 example-col">
|
|
56
|
+
<p>Slider</p>
|
|
57
|
+
<Slider min={1} max={10} step={1} defaultValue={4} />
|
|
58
|
+
</div>
|
|
59
|
+
<div className="col-12 col-md-6 example-col">
|
|
60
|
+
<p>RangeSlider</p>
|
|
61
|
+
<RangeSlider min={1} max={100} step={1} defaultValue={{ start: 30, end: 70 }} />
|
|
62
|
+
</div>
|
|
63
|
+
<div className="col-12 col-md-6 example-col">
|
|
64
|
+
<p>ColorPicker</p>
|
|
65
|
+
<ColorPicker />
|
|
66
|
+
</div>
|
|
67
|
+
<div className="col-12 col-md-6 example-col">
|
|
68
|
+
<p>Switch</p>
|
|
69
|
+
<Switch />
|
|
70
|
+
</div>
|
|
71
|
+
<div className="col-12 col-md-6 example-col">
|
|
72
|
+
<p>ColorGradient</p>
|
|
73
|
+
<ColorGradient />
|
|
74
|
+
</div>
|
|
75
|
+
<div className="col-12 col-md-6 example-col">
|
|
76
|
+
<p>ColorPalette</p>
|
|
77
|
+
<ColorPalette palette='office' tileSize={30} />
|
|
78
|
+
</div>
|
|
79
|
+
<div className="col-12 col-md-6 example-col">
|
|
80
|
+
<p>Checkbox</p>
|
|
81
|
+
<Checkbox label="Checkbox Option 1" defaultChecked={true} />
|
|
82
|
+
</div>
|
|
83
|
+
<div className="col-12 col-md-6 example-col">
|
|
84
|
+
<p>RadioButton</p>
|
|
85
|
+
<RadioButton label="Radio Option 1" name="group1" value="option 1" defaultChecked={true} />
|
|
86
|
+
</div>
|
|
87
|
+
<div className="col-12 col-md-6 example-col">
|
|
88
|
+
<p>RadioGroup</p>
|
|
89
|
+
<RadioGroup defaultValue={data[2].value} data={data} />
|
|
90
|
+
</div>
|
|
91
|
+
<div className="col-12 col-md-6 example-col">
|
|
92
|
+
<p>Rating</p>
|
|
93
|
+
<Rating defaultValue={2.5} precision={'half'} />
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
ReactDOM.render(
|
|
100
|
+
<App />,
|
|
101
|
+
document.querySelector('my-app')
|
|
102
|
+
);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
import { Grid, GridColumn, GridFilterChangeEvent } from '@progress/kendo-react-grid';
|
|
4
|
+
import { filterBy, CompositeFilterDescriptor } from '@progress/kendo-data-query';
|
|
5
|
+
import { sampleProducts } from './sample-products';
|
|
6
|
+
|
|
7
|
+
const initialFilter: CompositeFilterDescriptor = {
|
|
8
|
+
logic: 'and',
|
|
9
|
+
filters: [
|
|
10
|
+
{ field: 'ProductName', operator: 'contains', value: 'Chef' }
|
|
11
|
+
]
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const GridWithFiltering = () => {
|
|
15
|
+
const [filter, setFilter] = React.useState(initialFilter);
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<Grid
|
|
19
|
+
style={{ height: '420px' }}
|
|
20
|
+
data={filterBy(sampleProducts, filter)}
|
|
21
|
+
filterable={true}
|
|
22
|
+
filter={filter}
|
|
23
|
+
onFilterChange={(e: GridFilterChangeEvent) => setFilter(e.filter)}
|
|
24
|
+
>
|
|
25
|
+
<GridColumn field="ProductID" title="ID" filterable={false} width="60px" />
|
|
26
|
+
<GridColumn field="ProductName" title="Product Name" width="240px" />
|
|
27
|
+
<GridColumn field="FirstOrderedOn" width="240px" filter="date" format="{0:d}" />
|
|
28
|
+
<GridColumn field="UnitPrice" width="180px" filter="numeric" format="{0:c}" />
|
|
29
|
+
<GridColumn field="Discontinued" width="190px" filter="boolean" />
|
|
30
|
+
</Grid>
|
|
31
|
+
);
|
|
32
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as ReactDOM from 'react-dom';
|
|
3
|
+
|
|
4
|
+
import { GridWithFiltering } from './grid-with-filtering';
|
|
5
|
+
import { NumericTextBoxProps, NumericTextBoxPropsContext } from '@progress/kendo-react-inputs';
|
|
6
|
+
|
|
7
|
+
class App extends React.Component {
|
|
8
|
+
numericTextBoxPropsCallback = (numericTextBoxProps: NumericTextBoxProps) => ({
|
|
9
|
+
...numericTextBoxProps,
|
|
10
|
+
spinners: false
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
render() {
|
|
14
|
+
return (
|
|
15
|
+
<NumericTextBoxPropsContext.Provider value={this.numericTextBoxPropsCallback}>
|
|
16
|
+
<GridWithFiltering />
|
|
17
|
+
</NumericTextBoxPropsContext.Provider>
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
ReactDOM.render(
|
|
23
|
+
<App />,
|
|
24
|
+
document.querySelector('my-app')
|
|
25
|
+
);
|
|
26
|
+
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
export const sampleProducts = [
|
|
2
|
+
{
|
|
3
|
+
"ProductID": 1,
|
|
4
|
+
"ProductName": "Chai",
|
|
5
|
+
"SupplierID": 1,
|
|
6
|
+
"CategoryID": 1,
|
|
7
|
+
"QuantityPerUnit": "10 boxes x 20 bags",
|
|
8
|
+
"UnitPrice": 18,
|
|
9
|
+
"UnitsInStock": 39,
|
|
10
|
+
"UnitsOnOrder": 0,
|
|
11
|
+
"ReorderLevel": 10,
|
|
12
|
+
"Discontinued": false,
|
|
13
|
+
"Category": {
|
|
14
|
+
"CategoryID": 1,
|
|
15
|
+
"CategoryName": "Beverages",
|
|
16
|
+
"Description": "Soft drinks, coffees, teas, beers, and ales"
|
|
17
|
+
},
|
|
18
|
+
"FirstOrderedOn": new Date(1996, 8, 20)
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"ProductID": 2,
|
|
22
|
+
"ProductName": "Chang",
|
|
23
|
+
"SupplierID": 1,
|
|
24
|
+
"CategoryID": 1,
|
|
25
|
+
"QuantityPerUnit": "24 - 12 oz bottles",
|
|
26
|
+
"UnitPrice": 19,
|
|
27
|
+
"UnitsInStock": 17,
|
|
28
|
+
"UnitsOnOrder": 40,
|
|
29
|
+
"ReorderLevel": 25,
|
|
30
|
+
"Discontinued": false,
|
|
31
|
+
"Category": {
|
|
32
|
+
"CategoryID": 1,
|
|
33
|
+
"CategoryName": "Beverages",
|
|
34
|
+
"Description": "Soft drinks, coffees, teas, beers, and ales"
|
|
35
|
+
},
|
|
36
|
+
"FirstOrderedOn": new Date(1996, 7, 12)
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"ProductID": 3,
|
|
40
|
+
"ProductName": "Aniseed Syrup",
|
|
41
|
+
"SupplierID": 1,
|
|
42
|
+
"CategoryID": 2,
|
|
43
|
+
"QuantityPerUnit": "12 - 550 ml bottles",
|
|
44
|
+
"UnitPrice": 10,
|
|
45
|
+
"UnitsInStock": 13,
|
|
46
|
+
"UnitsOnOrder": 70,
|
|
47
|
+
"ReorderLevel": 25,
|
|
48
|
+
"Discontinued": false,
|
|
49
|
+
"Category": {
|
|
50
|
+
"CategoryID": 2,
|
|
51
|
+
"CategoryName": "Condiments",
|
|
52
|
+
"Description": "Sweet and savory sauces, relishes, spreads, and seasonings"
|
|
53
|
+
},
|
|
54
|
+
"FirstOrderedOn": new Date(1996, 8, 26)
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"ProductID": 4,
|
|
58
|
+
"ProductName": "Chef Anton's Cajun Seasoning",
|
|
59
|
+
"SupplierID": 2,
|
|
60
|
+
"CategoryID": 2,
|
|
61
|
+
"QuantityPerUnit": "48 - 6 oz jars",
|
|
62
|
+
"UnitPrice": 22,
|
|
63
|
+
"UnitsInStock": 53,
|
|
64
|
+
"UnitsOnOrder": 0,
|
|
65
|
+
"ReorderLevel": 0,
|
|
66
|
+
"Discontinued": false,
|
|
67
|
+
"Category": {
|
|
68
|
+
"CategoryID": 2,
|
|
69
|
+
"CategoryName": "Condiments",
|
|
70
|
+
"Description": "Sweet and savory sauces, relishes, spreads, and seasonings"
|
|
71
|
+
},
|
|
72
|
+
"FirstOrderedOn": new Date(1996, 9, 19)
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"ProductID": 5,
|
|
76
|
+
"ProductName": "Chef Anton's Gumbo Mix",
|
|
77
|
+
"SupplierID": 2,
|
|
78
|
+
"CategoryID": 2,
|
|
79
|
+
"QuantityPerUnit": "36 boxes",
|
|
80
|
+
"UnitPrice": 21.35,
|
|
81
|
+
"UnitsInStock": 0,
|
|
82
|
+
"UnitsOnOrder": 0,
|
|
83
|
+
"ReorderLevel": 0,
|
|
84
|
+
"Discontinued": true,
|
|
85
|
+
"Category": {
|
|
86
|
+
"CategoryID": 2,
|
|
87
|
+
"CategoryName": "Condiments",
|
|
88
|
+
"Description": "Sweet and savory sauces, relishes, spreads, and seasonings"
|
|
89
|
+
},
|
|
90
|
+
"FirstOrderedOn": new Date(1996, 7, 17)
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"ProductID": 6,
|
|
94
|
+
"ProductName": "Grandma's Boysenberry Spread",
|
|
95
|
+
"SupplierID": 3,
|
|
96
|
+
"CategoryID": 2,
|
|
97
|
+
"QuantityPerUnit": "12 - 8 oz jars",
|
|
98
|
+
"UnitPrice": 25,
|
|
99
|
+
"UnitsInStock": 120,
|
|
100
|
+
"UnitsOnOrder": 0,
|
|
101
|
+
"ReorderLevel": 25,
|
|
102
|
+
"Discontinued": false,
|
|
103
|
+
"Category": {
|
|
104
|
+
"CategoryID": 2,
|
|
105
|
+
"CategoryName": "Condiments",
|
|
106
|
+
"Description": "Sweet and savory sauces, relishes, spreads, and seasonings"
|
|
107
|
+
},
|
|
108
|
+
"FirstOrderedOn": new Date(1996, 9, 19)
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"ProductID": 7,
|
|
112
|
+
"ProductName": "Uncle Bob's Organic Dried Pears",
|
|
113
|
+
"SupplierID": 3,
|
|
114
|
+
"CategoryID": 7,
|
|
115
|
+
"QuantityPerUnit": "12 - 1 lb pkgs.",
|
|
116
|
+
"UnitPrice": 30,
|
|
117
|
+
"UnitsInStock": 15,
|
|
118
|
+
"UnitsOnOrder": 0,
|
|
119
|
+
"ReorderLevel": 10,
|
|
120
|
+
"Discontinued": false,
|
|
121
|
+
"Category": {
|
|
122
|
+
"CategoryID": 7,
|
|
123
|
+
"CategoryName": "Produce",
|
|
124
|
+
"Description": "Dried fruit and bean curd"
|
|
125
|
+
},
|
|
126
|
+
"FirstOrderedOn": new Date(1996, 7, 22)
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"ProductID": 8,
|
|
130
|
+
"ProductName": "Northwoods Cranberry Sauce",
|
|
131
|
+
"SupplierID": 3,
|
|
132
|
+
"CategoryID": 2,
|
|
133
|
+
"QuantityPerUnit": "12 - 12 oz jars",
|
|
134
|
+
"UnitPrice": 40,
|
|
135
|
+
"UnitsInStock": 6,
|
|
136
|
+
"UnitsOnOrder": 0,
|
|
137
|
+
"ReorderLevel": 0,
|
|
138
|
+
"Discontinued": false,
|
|
139
|
+
"Category": {
|
|
140
|
+
"CategoryID": 2,
|
|
141
|
+
"CategoryName": "Condiments",
|
|
142
|
+
"Description": "Sweet and savory sauces, relishes, spreads, and seasonings"
|
|
143
|
+
},
|
|
144
|
+
"FirstOrderedOn": new Date(1996, 11, 1)
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"ProductID": 9,
|
|
148
|
+
"ProductName": "Mishi Kobe Niku",
|
|
149
|
+
"SupplierID": 4,
|
|
150
|
+
"CategoryID": 6,
|
|
151
|
+
"QuantityPerUnit": "18 - 500 g pkgs.",
|
|
152
|
+
"UnitPrice": 97,
|
|
153
|
+
"UnitsInStock": 29,
|
|
154
|
+
"UnitsOnOrder": 0,
|
|
155
|
+
"ReorderLevel": 0,
|
|
156
|
+
"Discontinued": true,
|
|
157
|
+
"Category": {
|
|
158
|
+
"CategoryID": 6,
|
|
159
|
+
"CategoryName": "Meat/Poultry",
|
|
160
|
+
"Description": "Prepared meats"
|
|
161
|
+
},
|
|
162
|
+
"FirstOrderedOn": new Date(1997, 1, 21)
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"ProductID": 10,
|
|
166
|
+
"ProductName": "Ikura",
|
|
167
|
+
"SupplierID": 4,
|
|
168
|
+
"CategoryID": 8,
|
|
169
|
+
"QuantityPerUnit": "12 - 200 ml jars",
|
|
170
|
+
"UnitPrice": 31,
|
|
171
|
+
"UnitsInStock": 31,
|
|
172
|
+
"UnitsOnOrder": 0,
|
|
173
|
+
"ReorderLevel": 0,
|
|
174
|
+
"Discontinued": false,
|
|
175
|
+
"Category": {
|
|
176
|
+
"CategoryID": 8,
|
|
177
|
+
"CategoryName": "Seafood",
|
|
178
|
+
"Description": "Seaweed and fish"
|
|
179
|
+
},
|
|
180
|
+
"FirstOrderedOn": new Date(1996, 8, 5)
|
|
181
|
+
}
|
|
182
|
+
];
|