@progress/kendo-react-inputs 5.4.0-dev.202205250548 → 5.4.0-dev.202205271059

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 (147) hide show
  1. package/dist/cdn/js/kendo-react-inputs.js +1 -1
  2. package/dist/es/checkbox/Checkbox.js +7 -5
  3. package/dist/es/checkbox/interfaces/CheckboxBlurEvent.js +1 -0
  4. package/dist/es/checkbox/interfaces/CheckboxChangeEvent.js +1 -0
  5. package/dist/es/checkbox/interfaces/CheckboxFocusEvent.js +1 -0
  6. package/dist/es/checkbox/interfaces/CheckboxProps.js +1 -0
  7. package/dist/es/colors/ColorContrastLabels.js +3 -1
  8. package/dist/es/colors/ColorContrastSvg.js +3 -1
  9. package/dist/es/colors/ColorGradient.d.ts +2 -2
  10. package/dist/es/colors/ColorGradient.js +4 -2
  11. package/dist/es/colors/ColorInput.js +3 -1
  12. package/dist/es/colors/ColorPalette.d.ts +2 -2
  13. package/dist/es/colors/ColorPalette.js +5 -3
  14. package/dist/es/colors/HexInput.js +3 -1
  15. package/dist/es/colors/Picker.js +1 -1
  16. package/dist/es/colors/interfaces/ColorGradientChangeEvent.js +1 -0
  17. package/dist/es/colors/interfaces/ColorGradientProps.js +1 -0
  18. package/dist/es/colors/interfaces/ColorPaletteChangeEvent.js +1 -0
  19. package/dist/es/colors/interfaces/ColorPaletteProps.js +1 -0
  20. package/dist/es/colors/interfaces/ColorPickerActiveColorClick.js +1 -0
  21. package/dist/es/colors/interfaces/ColorPickerBlurEvent.js +1 -0
  22. package/dist/es/colors/interfaces/ColorPickerChangeEvent.js +1 -0
  23. package/dist/es/colors/interfaces/ColorPickerFocusEvent.js +1 -0
  24. package/dist/es/colors/interfaces/ColorPickerGradientSettings.js +1 -0
  25. package/dist/es/colors/interfaces/ColorPickerPaletteSettings.js +1 -0
  26. package/dist/es/colors/interfaces/ColorPickerPopupSettings.js +1 -0
  27. package/dist/es/colors/interfaces/ColorPickerProps.js +1 -0
  28. package/dist/es/colors/interfaces/ColorPickerView.js +1 -0
  29. package/dist/es/colors/interfaces/PickerPopupSettings.js +1 -0
  30. package/dist/es/colors/interfaces/PickerProps.js +1 -0
  31. package/dist/es/colors/models/hsva.js +1 -0
  32. package/dist/es/colors/models/output-format.js +1 -0
  33. package/dist/es/colors/models/rgb.js +1 -0
  34. package/dist/es/colors/models/rgba.js +1 -0
  35. package/dist/es/colors/models/table-cell.js +1 -0
  36. package/dist/es/colors/models/tile-size.js +1 -0
  37. package/dist/es/colors/utils/color-parser.d.ts +1 -1
  38. package/dist/es/colors/utils/misc.d.ts +1 -1
  39. package/dist/es/common/SwitchController.d.ts +3 -3
  40. package/dist/es/common/SwitchController.js +4 -4
  41. package/dist/es/input/Input.d.ts +5 -5
  42. package/dist/es/input/Input.js +13 -9
  43. package/dist/es/input/interfaces/InputChangeEvent.js +1 -0
  44. package/dist/es/interfaces/Direction.js +1 -0
  45. package/dist/es/interfaces/ToggleBaseProps.js +1 -0
  46. package/dist/es/main.js +31 -0
  47. package/dist/es/maskedtextbox/MaskedTextBox.d.ts +12 -12
  48. package/dist/es/maskedtextbox/MaskedTextBox.js +12 -10
  49. package/dist/es/maskedtextbox/MaskedTextBoxProps.js +1 -0
  50. package/dist/es/maskedtextbox/masking.service.d.ts +4 -4
  51. package/dist/es/maskedtextbox/masking.service.js +4 -4
  52. package/dist/es/messages/index.d.ts +22 -22
  53. package/dist/es/numerictextbox/interfaces/NumericTextBoxBlurEvent.js +1 -0
  54. package/dist/es/numerictextbox/interfaces/NumericTextBoxChangeEvent.js +1 -0
  55. package/dist/es/numerictextbox/interfaces/NumericTextBoxFocusEvent.js +1 -0
  56. package/dist/es/numerictextbox/interfaces/NumericTextBoxHandle.js +1 -0
  57. package/dist/es/numerictextbox/interfaces/NumericTextBoxProps.js +1 -0
  58. package/dist/es/numerictextbox/interfaces/NumericTextBoxState.js +1 -0
  59. package/dist/es/numerictextbox/utils/index.d.ts +7 -7
  60. package/dist/es/package-metadata.js +1 -1
  61. package/dist/es/radiobutton/RadioButton.js +4 -2
  62. package/dist/es/radiobutton/RadioGroup.js +1 -1
  63. package/dist/es/radiobutton/interfaces/RadioButtonBlurEvent.js +1 -0
  64. package/dist/es/radiobutton/interfaces/RadioButtonChangeEvent.js +1 -0
  65. package/dist/es/radiobutton/interfaces/RadioButtonFocusEvent.js +1 -0
  66. package/dist/es/radiobutton/interfaces/RadioButtonProps.js +1 -0
  67. package/dist/es/radiobutton/interfaces/RadioGroupChangeEvent.js +1 -0
  68. package/dist/es/radiobutton/interfaces/RadioGroupFocusEvent.js +1 -0
  69. package/dist/es/radiobutton/interfaces/RadioGroupProps.js +1 -0
  70. package/dist/es/range-slider/RangeSlider.js +1 -1
  71. package/dist/es/range-slider/range-raducer.js +12 -12
  72. package/dist/es/rating/Rating.js +1 -1
  73. package/dist/es/rating/models/index.js +1 -0
  74. package/dist/es/rating/utils/index.d.ts +1 -1
  75. package/dist/es/slider/Slider.d.ts +1 -1
  76. package/dist/es/slider/Slider.js +5 -3
  77. package/dist/es/switch/Switch.d.ts +11 -11
  78. package/dist/es/switch/Switch.js +11 -9
  79. package/dist/es/textarea/TextArea.js +5 -3
  80. package/dist/es/textarea/interfaces/TextAreaBlurEvent.js +1 -0
  81. package/dist/es/textarea/interfaces/TextAreaChangeEvent.js +1 -0
  82. package/dist/es/textarea/interfaces/TextAreaFocusEvent.js +1 -0
  83. package/dist/es/textarea/interfaces/TextAreaProps.js +1 -0
  84. package/dist/es/utils.js +6 -1
  85. package/dist/npm/checkbox/Checkbox.js +8 -5
  86. package/dist/npm/colors/ColorContrastLabels.js +4 -1
  87. package/dist/npm/colors/ColorContrastSvg.js +4 -1
  88. package/dist/npm/colors/ColorGradient.d.ts +2 -2
  89. package/dist/npm/colors/ColorGradient.js +5 -2
  90. package/dist/npm/colors/ColorInput.js +3 -1
  91. package/dist/npm/colors/ColorPalette.d.ts +2 -2
  92. package/dist/npm/colors/ColorPalette.js +6 -3
  93. package/dist/npm/colors/ColorPicker.js +1 -0
  94. package/dist/npm/colors/FlatColorPicker.js +1 -0
  95. package/dist/npm/colors/HexInput.js +3 -1
  96. package/dist/npm/colors/Picker.js +4 -2
  97. package/dist/npm/colors/models/palette-presets.js +1 -0
  98. package/dist/npm/colors/utils/color-cache.js +1 -0
  99. package/dist/npm/colors/utils/color-palette.service.js +1 -0
  100. package/dist/npm/colors/utils/color-parser.d.ts +1 -1
  101. package/dist/npm/colors/utils/color-parser.js +21 -10
  102. package/dist/npm/colors/utils/misc.d.ts +1 -1
  103. package/dist/npm/colors/utils/misc.js +5 -2
  104. package/dist/npm/colors/utils/svg-calc.js +9 -4
  105. package/dist/npm/common/SliderTooltip.js +3 -1
  106. package/dist/npm/common/SwitchController.d.ts +3 -3
  107. package/dist/npm/common/SwitchController.js +4 -4
  108. package/dist/npm/input/Input.d.ts +5 -5
  109. package/dist/npm/input/Input.js +14 -9
  110. package/dist/npm/main.js +65 -26
  111. package/dist/npm/maskedtextbox/MaskedTextBox.d.ts +12 -12
  112. package/dist/npm/maskedtextbox/MaskedTextBox.js +13 -10
  113. package/dist/npm/maskedtextbox/masking.service.d.ts +4 -4
  114. package/dist/npm/maskedtextbox/masking.service.js +5 -4
  115. package/dist/npm/maskedtextbox/parsing/combinators.js +5 -2
  116. package/dist/npm/maskedtextbox/parsing/parsers.js +15 -7
  117. package/dist/npm/maskedtextbox/parsing/result.js +1 -0
  118. package/dist/npm/maskedtextbox/parsing/stream.js +1 -0
  119. package/dist/npm/maskedtextbox/utils.js +1 -0
  120. package/dist/npm/messages/index.d.ts +22 -22
  121. package/dist/npm/messages/index.js +2 -1
  122. package/dist/npm/numerictextbox/NumericTextBox.js +1 -0
  123. package/dist/npm/numerictextbox/utils/index.d.ts +7 -7
  124. package/dist/npm/numerictextbox/utils/index.js +57 -28
  125. package/dist/npm/package-metadata.js +2 -1
  126. package/dist/npm/radiobutton/RadioButton.js +5 -2
  127. package/dist/npm/radiobutton/RadioGroup.js +2 -1
  128. package/dist/npm/range-slider/RangeSlider.js +2 -1
  129. package/dist/npm/range-slider/range-raducer.js +15 -13
  130. package/dist/npm/rating/Rating.js +2 -1
  131. package/dist/npm/rating/RatingItem.js +1 -0
  132. package/dist/npm/rating/rating-reducer.js +3 -1
  133. package/dist/npm/rating/utils/index.d.ts +1 -1
  134. package/dist/npm/rating/utils/index.js +13 -6
  135. package/dist/npm/slider/Slider.d.ts +1 -1
  136. package/dist/npm/slider/Slider.js +6 -3
  137. package/dist/npm/slider/SliderLabel.js +3 -1
  138. package/dist/npm/switch/Switch.d.ts +11 -11
  139. package/dist/npm/switch/Switch.js +12 -9
  140. package/dist/npm/textarea/TextArea.js +6 -3
  141. package/dist/npm/utils.js +7 -1
  142. package/dist/systemjs/kendo-react-inputs.js +1 -1
  143. package/package.json +14 -14
  144. package/dist/es/switch/util.d.ts +0 -8
  145. package/dist/es/switch/util.js +0 -46
  146. package/dist/npm/switch/util.d.ts +0 -8
  147. package/dist/npm/switch/util.js +0 -48
@@ -14,8 +14,10 @@ var __rest = (this && this.__rest) || function (s, e) {
14
14
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
15
  t[p] = s[p];
16
16
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
18
- t[p[i]] = s[p[i]];
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
19
21
  return t;
20
22
  };
21
23
  import * as React from 'react';
@@ -102,7 +104,7 @@ export var Checkbox = React.forwardRef(function (directProps, target) {
102
104
  }
103
105
  }
104
106
  if (onChange && !disabled) {
105
- dispatchEvent(onChange, e, __assign({}, getImperativeHandle(), { value: val }), { value: val });
107
+ dispatchEvent(onChange, e, __assign(__assign({}, getImperativeHandle()), { value: val }), { value: val });
106
108
  }
107
109
  }, [isCheckedControlled, disabled, onChange, isValueControlled, getImperativeHandle]);
108
110
  var handleChange = React.useCallback(function (e) {
@@ -142,7 +144,7 @@ export var Checkbox = React.forwardRef(function (directProps, target) {
142
144
  }, [onBlur, disabled, getImperativeHandle]);
143
145
  var dir = useDir(elementRef, props.dir);
144
146
  var checkboxClasses = classNames({ 'k-disabled': disabled }, className);
145
- var inputProps = __assign({ type: 'checkbox', className: classNames('k-checkbox', (_a = {},
147
+ var inputProps = __assign(__assign({ type: 'checkbox', className: classNames('k-checkbox', (_a = {},
146
148
  _a["k-checkbox-" + (kendoThemeMaps.sizeMap[size] || size)] = size,
147
149
  _a["k-rounded-" + (kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded,
148
150
  _a['k-indeterminate'] = indeterminateProp,
@@ -151,7 +153,7 @@ export var Checkbox = React.forwardRef(function (directProps, target) {
151
153
  true :
152
154
  indeterminateProp ?
153
155
  'mixed' :
154
- false, 'aria-disabled': disabled || undefined }, others, { onChange: handleChange, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, onFocus: handleFocus, onBlur: handleBlur });
156
+ false, 'aria-disabled': disabled || undefined }, others), { onChange: handleChange, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, onFocus: handleFocus, onBlur: handleBlur });
155
157
  var checkboxInput = (React.createElement(React.Fragment, null,
156
158
  // removing value prop is required due to bug in react where
157
159
  // value set to undefined override default submit value
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -96,7 +96,7 @@ export declare class ColorGradientWithoutContext extends React.Component<ColorGr
96
96
  /**
97
97
  * @hidden
98
98
  */
99
- onGradientWrapperClick: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
99
+ onGradientWrapperClick: (event: React.MouseEvent<HTMLDivElement>) => void;
100
100
  /**
101
101
  * @hidden
102
102
  */
@@ -133,7 +133,7 @@ export declare class ColorGradientWithoutContext extends React.Component<ColorGr
133
133
  /**
134
134
  * @hidden
135
135
  */
136
- readonly isUncontrolled: boolean;
136
+ get isUncontrolled(): boolean;
137
137
  /**
138
138
  * @hidden
139
139
  */
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -218,7 +220,7 @@ var ColorGradientWithoutContext = /** @class */ (function (_super) {
218
220
  get: function () {
219
221
  return this.props.value === undefined;
220
222
  },
221
- enumerable: true,
223
+ enumerable: false,
222
224
  configurable: true
223
225
  });
224
226
  /**
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -80,8 +80,8 @@ export declare class ColorPaletteWithoutContext extends React.Component<ColorPal
80
80
  private handleCellNavigation;
81
81
  private handleEnter;
82
82
  private dispatchChangeEvent;
83
- private readonly focusedColorCooridanates;
84
- private readonly isUncontrolled;
83
+ private get focusedColorCooridanates();
84
+ private get isUncontrolled();
85
85
  private getPaletteInfo;
86
86
  private renderRows;
87
87
  private renderColumns;
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -161,14 +163,14 @@ var ColorPaletteWithoutContext = /** @class */ (function (_super) {
161
163
  get: function () {
162
164
  return this.state.focusedColor ? this.paletteService.getCellCoordsFor(this.state.focusedColor) : undefined;
163
165
  },
164
- enumerable: true,
166
+ enumerable: false,
165
167
  configurable: true
166
168
  });
167
169
  Object.defineProperty(ColorPaletteWithoutContext.prototype, "isUncontrolled", {
168
170
  get: function () {
169
171
  return this.props.value === undefined;
170
172
  },
171
- enumerable: true,
173
+ enumerable: false,
172
174
  configurable: true
173
175
  });
174
176
  ColorPaletteWithoutContext.prototype.getPaletteInfo = function () {
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -31,6 +31,6 @@ export var Picker = function (props) {
31
31
  return (React.createElement(React.Fragment, null,
32
32
  props.input,
33
33
  props.button,
34
- React.createElement(Popup, __assign({ style: __assign({}, (popupSettings || {}).style, { direction: props.dir }) }, popupSettings, { anchor: props.popupAnchor, anchorAlign: anchorAlign, popupAlign: popupAlign, show: props.open, onOpen: props.onOpen, onClose: props.onClose, className: classNames('k-reset', popupSettings.className) }), props.content)));
34
+ React.createElement(Popup, __assign({ style: __assign(__assign({}, (popupSettings || {}).style), { direction: props.dir }) }, popupSettings, { anchor: props.popupAnchor, anchorAlign: anchorAlign, popupAlign: popupAlign, show: props.open, onOpen: props.onOpen, onClose: props.onClose, className: classNames('k-reset', popupSettings.className) }), props.content)));
35
35
  };
36
36
  Picker.displayName = 'KendoPickerComponent';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -7,7 +7,7 @@ import { RGBA } from '../models/rgba';
7
7
  *
8
8
  * Returns the hex or RGBA string representation of the color.
9
9
  */
10
- export declare const parseColor: (value: string, format: OutputFormat, safe?: boolean) => string;
10
+ export declare const parseColor: (value: string, format: OutputFormat, safe?: boolean) => string | undefined;
11
11
  /**
12
12
  * @hidden
13
13
  *
@@ -12,4 +12,4 @@ export declare const isPresent: (value: any) => boolean;
12
12
  * @param min The inclusive lower bound number.
13
13
  * @param max The inclusive upper bound number.
14
14
  */
15
- export declare const fitIntoBounds: (contender: number, min: number, max: number) => number;
15
+ export declare const fitIntoBounds: (contender: number | undefined, min: number, max: number) => number;
@@ -18,14 +18,14 @@ declare class SwitchController {
18
18
  overrideChecked: (checked: boolean) => void;
19
19
  updateState({ wrapperOffset, handleOffset, checked, animate, coords, handleMargin, reverse }: any): void;
20
20
  change: (checked: boolean, event?: any) => void;
21
- readonly isChecked: boolean;
21
+ get isChecked(): boolean;
22
22
  addAnimation: (model: any) => any;
23
23
  onPress: (event: any) => void;
24
24
  onRelease: (event: any) => void;
25
25
  onDrag: (event: any) => void;
26
26
  updateModel(position: any, animate?: boolean): SwitchModel;
27
27
  private limit;
28
- readonly constrain: number;
29
- readonly checked: boolean;
28
+ get constrain(): number;
29
+ get checked(): boolean;
30
30
  }
31
31
  export default SwitchController;
@@ -12,9 +12,9 @@ var noop = function () { };
12
12
  */
13
13
  var SwitchController = /** @class */ (function () {
14
14
  function SwitchController(updateView, onChange) {
15
+ var _this = this;
15
16
  if (updateView === void 0) { updateView = noop; }
16
17
  if (onChange === void 0) { onChange = noop; }
17
- var _this = this;
18
18
  this.overrideChecked = function (checked) {
19
19
  _this._checked = checked;
20
20
  };
@@ -91,7 +91,7 @@ var SwitchController = /** @class */ (function () {
91
91
  get: function () {
92
92
  return this._checked;
93
93
  },
94
- enumerable: true,
94
+ enumerable: false,
95
95
  configurable: true
96
96
  });
97
97
  SwitchController.prototype.updateModel = function (position, animate) {
@@ -103,14 +103,14 @@ var SwitchController = /** @class */ (function () {
103
103
  get: function () {
104
104
  return this.wrapperOffset - this.handleOffset - this.handleMargin;
105
105
  },
106
- enumerable: true,
106
+ enumerable: false,
107
107
  configurable: true
108
108
  });
109
109
  Object.defineProperty(SwitchController.prototype, "checked", {
110
110
  get: function () {
111
111
  return this._checked;
112
112
  },
113
- enumerable: true,
113
+ enumerable: false,
114
114
  configurable: true
115
115
  });
116
116
  return SwitchController;
@@ -77,23 +77,23 @@ export declare class InputWithoutContext extends React.Component<InputProps, Inp
77
77
  /**
78
78
  * Gets the native input element of the Input component.
79
79
  */
80
- readonly element: HTMLInputElement | null;
80
+ get element(): HTMLInputElement | null;
81
81
  /**
82
82
  * Gets the value of the Input.
83
83
  */
84
- readonly value: string | string[] | number | undefined;
84
+ get value(): string | string[] | number | undefined;
85
85
  /**
86
86
  * Gets the `name` property of the Input.
87
87
  */
88
- readonly name: string | undefined;
88
+ get name(): string | undefined;
89
89
  /**
90
90
  * Represents the validity state into which the Input is set.
91
91
  */
92
- readonly validity: FormComponentValidity;
92
+ get validity(): FormComponentValidity;
93
93
  /**
94
94
  * @hidden
95
95
  */
96
- protected readonly validityStyles: boolean;
96
+ protected get validityStyles(): boolean;
97
97
  /**
98
98
  * @hidden
99
99
  */
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -27,8 +29,10 @@ var __rest = (this && this.__rest) || function (s, e) {
27
29
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
30
  t[p] = s[p];
29
31
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
31
- t[p[i]] = s[p[i]];
32
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
33
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
34
+ t[p[i]] = s[p[i]];
35
+ }
32
36
  return t;
33
37
  };
34
38
  import * as React from 'react';
@@ -112,7 +116,7 @@ var InputWithoutContext = /** @class */ (function (_super) {
112
116
  get: function () {
113
117
  return this._input;
114
118
  },
115
- enumerable: true,
119
+ enumerable: false,
116
120
  configurable: true
117
121
  });
118
122
  Object.defineProperty(InputWithoutContext.prototype, "value", {
@@ -126,7 +130,7 @@ var InputWithoutContext = /** @class */ (function (_super) {
126
130
  ? this.props.value
127
131
  : this.state.value;
128
132
  },
129
- enumerable: true,
133
+ enumerable: false,
130
134
  configurable: true
131
135
  });
132
136
  Object.defineProperty(InputWithoutContext.prototype, "name", {
@@ -136,7 +140,7 @@ var InputWithoutContext = /** @class */ (function (_super) {
136
140
  get: function () {
137
141
  return this.props.name;
138
142
  },
139
- enumerable: true,
143
+ enumerable: false,
140
144
  configurable: true
141
145
  });
142
146
  Object.defineProperty(InputWithoutContext.prototype, "validity", {
@@ -156,13 +160,13 @@ var InputWithoutContext = /** @class */ (function (_super) {
156
160
  typeMismatch: this._input ? this._input.validity.typeMismatch : false,
157
161
  valueMissing: this._input ? this._input.validity.valueMissing : false
158
162
  };
159
- return __assign({}, result, { customError: this.props.validationMessage !== undefined, valid: this.props.valid !== undefined
163
+ return __assign(__assign({}, result), { customError: this.props.validationMessage !== undefined, valid: this.props.valid !== undefined
160
164
  ? this.props.valid
161
165
  : this._input
162
166
  ? !this.isInvalid(result)
163
167
  : true });
164
168
  },
165
- enumerable: true,
169
+ enumerable: false,
166
170
  configurable: true
167
171
  });
168
172
  Object.defineProperty(InputWithoutContext.prototype, "validityStyles", {
@@ -174,7 +178,7 @@ var InputWithoutContext = /** @class */ (function (_super) {
174
178
  ? this.props.validityStyles
175
179
  : InputWithoutContext.defaultProps.validityStyles;
176
180
  },
177
- enumerable: true,
181
+ enumerable: false,
178
182
  configurable: true
179
183
  });
180
184
  /**
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
package/dist/es/main.js CHANGED
@@ -1,17 +1,48 @@
1
1
  export { ColorGradient, ColorGradientPropsContext } from './colors/ColorGradient';
2
2
  export { ColorPalette, ColorPalettePropsContext } from './colors/ColorPalette';
3
3
  export * from './colors/ColorPicker';
4
+ export * from './colors/interfaces/ColorGradientChangeEvent';
5
+ export * from './colors/interfaces/ColorGradientProps';
6
+ export * from './colors/interfaces/ColorPaletteChangeEvent';
7
+ export * from './colors/interfaces/ColorPaletteProps';
8
+ export * from './colors/interfaces/ColorPickerBlurEvent';
9
+ export * from './colors/interfaces/ColorPickerChangeEvent';
10
+ export * from './colors/interfaces/ColorPickerFocusEvent';
11
+ export * from './colors/interfaces/ColorPickerGradientSettings';
12
+ export * from './colors/interfaces/ColorPickerPaletteSettings';
13
+ export * from './colors/interfaces/ColorPickerPopupSettings';
14
+ export * from './colors/interfaces/ColorPickerProps';
4
15
  export * from './colors/FlatColorPicker';
5
16
  export { Input, InputPropsContext } from './input/Input';
6
17
  export { MaskedTextBox, MaskedTextBoxPropsContext } from './maskedtextbox/MaskedTextBox';
18
+ export * from './maskedtextbox/MaskedTextBoxProps';
7
19
  export * from './numerictextbox/NumericTextBox';
20
+ export * from './numerictextbox/interfaces/NumericTextBoxHandle';
21
+ export * from './numerictextbox/interfaces/NumericTextBoxChangeEvent';
22
+ export * from './numerictextbox/interfaces/NumericTextBoxBlurEvent';
23
+ export * from './numerictextbox/interfaces/NumericTextBoxFocusEvent';
24
+ export * from './numerictextbox/interfaces/NumericTextBoxProps';
8
25
  export { Slider, SliderPropsContext } from './slider/Slider';
9
26
  export * from './slider/SliderLabel';
10
27
  export * from './range-slider/RangeSlider';
28
+ export * from './interfaces/ToggleBaseProps';
11
29
  export { Switch, SwitchPropsContext } from './switch/Switch';
30
+ export * from './checkbox/interfaces/CheckboxProps';
31
+ export * from './checkbox/interfaces/CheckboxChangeEvent';
32
+ export * from './checkbox/interfaces/CheckboxFocusEvent';
12
33
  export * from './checkbox/Checkbox';
13
34
  export * from './radiobutton/RadioGroup';
35
+ export * from './radiobutton/interfaces/RadioGroupProps';
36
+ export * from './radiobutton/interfaces/RadioGroupChangeEvent';
37
+ export * from './radiobutton/interfaces/RadioGroupFocusEvent';
14
38
  export * from './radiobutton/RadioButton';
39
+ export * from './radiobutton/interfaces/RadioButtonProps';
40
+ export * from './radiobutton/interfaces/RadioButtonChangeEvent';
41
+ export * from './radiobutton/interfaces/RadioButtonFocusEvent';
15
42
  export * from './textarea/TextArea';
43
+ export * from './textarea/interfaces/TextAreaProps';
44
+ export * from './textarea/interfaces/TextAreaChangeEvent';
45
+ export * from './textarea/interfaces/TextAreaFocusEvent';
16
46
  export * from './rating/Rating';
17
47
  export * from './rating/RatingItem';
48
+ export * from './rating/models/index';
@@ -49,8 +49,8 @@ export declare class MaskedTextBoxWithoutContext extends React.Component<MaskedT
49
49
  validityStyles: PropTypes.Requireable<boolean>;
50
50
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
51
51
  size: PropTypes.Requireable<"small" | "medium" | "large">;
52
- rounded: PropTypes.Requireable<"small" | "medium" | "large" | "full">;
53
- fillMode: PropTypes.Requireable<"solid" | "flat" | "outline">;
52
+ rounded: PropTypes.Requireable<"small" | "medium" | "full" | "large">;
53
+ fillMode: PropTypes.Requireable<"flat" | "solid" | "outline">;
54
54
  };
55
55
  /**
56
56
  * @hidden
@@ -66,8 +66,8 @@ export declare class MaskedTextBoxWithoutContext extends React.Component<MaskedT
66
66
  required: boolean;
67
67
  validityStyles: boolean;
68
68
  size: "small" | "medium" | "large";
69
- rounded: "small" | "medium" | "large" | "full";
70
- fillMode: "solid" | "flat" | "outline";
69
+ rounded: "small" | "medium" | "full" | "large";
70
+ fillMode: "flat" | "solid" | "outline";
71
71
  };
72
72
  /**
73
73
  * @hidden
@@ -115,31 +115,31 @@ export declare class MaskedTextBoxWithoutContext extends React.Component<MaskedT
115
115
  * );
116
116
  * ```
117
117
  */
118
- readonly element: HTMLInputElement | null;
118
+ get element(): HTMLInputElement | null;
119
119
  /**
120
120
  * Gets the value with the mask of the MaskedTextBox.
121
121
  */
122
- readonly value: string;
122
+ get value(): string;
123
123
  /**
124
124
  * Gets the raw value without the mask of the MaskedTextBox.
125
125
  */
126
- readonly rawValue: string;
126
+ get rawValue(): string;
127
127
  /**
128
128
  * Represents the validity state into which the MaskedTextBox is set.
129
129
  */
130
- readonly validity: FormComponentValidity;
130
+ get validity(): FormComponentValidity;
131
131
  /**
132
132
  * @hidden
133
133
  */
134
- protected readonly validityStyles: boolean;
134
+ protected get validityStyles(): boolean;
135
135
  /**
136
136
  * @hidden
137
137
  */
138
- protected readonly required: boolean;
138
+ protected get required(): boolean;
139
139
  /**
140
140
  * Gets the `name` property of the MaskedTextBox.
141
141
  */
142
- readonly name: string | undefined;
142
+ get name(): string | undefined;
143
143
  /**
144
144
  * @hidden
145
145
  */
@@ -158,7 +158,7 @@ export declare class MaskedTextBoxWithoutContext extends React.Component<MaskedT
158
158
  private blurHandler;
159
159
  private triggerOnChange;
160
160
  private updateService;
161
- private readonly rules;
161
+ private get rules();
162
162
  private setValidity;
163
163
  }
164
164
  /**