@progress/kendo-react-inputs 5.4.0-dev.202205180853 → 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
@@ -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 __());
@@ -154,7 +156,7 @@ var MaskedTextBoxWithoutContext = /** @class */ (function (_super) {
154
156
  get: function () {
155
157
  return this._input;
156
158
  },
157
- enumerable: true,
159
+ enumerable: false,
158
160
  configurable: true
159
161
  });
160
162
  Object.defineProperty(MaskedTextBoxWithoutContext.prototype, "value", {
@@ -176,7 +178,7 @@ var MaskedTextBoxWithoutContext = /** @class */ (function (_super) {
176
178
  }
177
179
  return '';
178
180
  },
179
- enumerable: true,
181
+ enumerable: false,
180
182
  configurable: true
181
183
  });
182
184
  Object.defineProperty(MaskedTextBoxWithoutContext.prototype, "rawValue", {
@@ -186,7 +188,7 @@ var MaskedTextBoxWithoutContext = /** @class */ (function (_super) {
186
188
  get: function () {
187
189
  return this._service.rawValue(this.value);
188
190
  },
189
- enumerable: true,
191
+ enumerable: false,
190
192
  configurable: true
191
193
  });
192
194
  Object.defineProperty(MaskedTextBoxWithoutContext.prototype, "validity", {
@@ -206,7 +208,7 @@ var MaskedTextBoxWithoutContext = /** @class */ (function (_super) {
206
208
  valueMissing: !value
207
209
  };
208
210
  },
209
- enumerable: true,
211
+ enumerable: false,
210
212
  configurable: true
211
213
  });
212
214
  Object.defineProperty(MaskedTextBoxWithoutContext.prototype, "validityStyles", {
@@ -218,7 +220,7 @@ var MaskedTextBoxWithoutContext = /** @class */ (function (_super) {
218
220
  ? this.props.validityStyles
219
221
  : MaskedTextBoxWithoutContext.defaultProps.validityStyles;
220
222
  },
221
- enumerable: true,
223
+ enumerable: false,
222
224
  configurable: true
223
225
  });
224
226
  Object.defineProperty(MaskedTextBoxWithoutContext.prototype, "required", {
@@ -230,7 +232,7 @@ var MaskedTextBoxWithoutContext = /** @class */ (function (_super) {
230
232
  ? this.props.required
231
233
  : MaskedTextBoxWithoutContext.defaultProps.required;
232
234
  },
233
- enumerable: true,
235
+ enumerable: false,
234
236
  configurable: true
235
237
  });
236
238
  Object.defineProperty(MaskedTextBoxWithoutContext.prototype, "name", {
@@ -240,7 +242,7 @@ var MaskedTextBoxWithoutContext = /** @class */ (function (_super) {
240
242
  get: function () {
241
243
  return this.props.name;
242
244
  },
243
- enumerable: true,
245
+ enumerable: false,
244
246
  configurable: true
245
247
  });
246
248
  /**
@@ -277,8 +279,8 @@ var MaskedTextBoxWithoutContext = /** @class */ (function (_super) {
277
279
  * @hidden
278
280
  */
279
281
  MaskedTextBoxWithoutContext.prototype.render = function () {
280
- var _this = this;
281
282
  var _a;
283
+ var _this = this;
282
284
  var _b = this.props, _c = _b.size, size = _c === void 0 ? MaskedTextBoxWithoutContext.defaultProps.size : _c, _d = _b.fillMode, fillMode = _d === void 0 ? MaskedTextBoxWithoutContext.defaultProps.fillMode : _d, _e = _b.rounded, rounded = _e === void 0 ? MaskedTextBoxWithoutContext.defaultProps.rounded : _e;
283
285
  var inputId = this.props.id || this._inputId;
284
286
  var isValid = !this.validityStyles || this.validity.valid;
@@ -328,7 +330,7 @@ var MaskedTextBoxWithoutContext = /** @class */ (function (_super) {
328
330
  get: function () {
329
331
  return Object.assign({}, defaultRules, this.props.rules);
330
332
  },
331
- enumerable: true,
333
+ enumerable: false,
332
334
  configurable: true
333
335
  });
334
336
  MaskedTextBoxWithoutContext.displayName = 'MaskedTextBox';
@@ -1 +1,2 @@
1
+ export {};
1
2
  // tslint:enable:max-line-length
@@ -25,16 +25,16 @@ export declare class MaskingService {
25
25
  private maskRemoved;
26
26
  private adjustPosition;
27
27
  private maskInserted;
28
- protected readonly maskTokenCreator: {
28
+ protected get maskTokenCreator(): {
29
29
  [key: string]: Function;
30
30
  };
31
- protected readonly unmaskTokenCreator: {
31
+ protected get unmaskTokenCreator(): {
32
32
  [key: string]: Function;
33
33
  };
34
- protected readonly rawTokenCreator: {
34
+ protected get rawTokenCreator(): {
35
35
  [key: string]: Function;
36
36
  };
37
- protected readonly validationTokenCreator: {
37
+ protected get validationTokenCreator(): {
38
38
  [key: string]: Function;
39
39
  };
40
40
  private tokenize;
@@ -142,7 +142,7 @@ var MaskingService = /** @class */ (function () {
142
142
  mask: function (rule) { return maskParser({ prompt: prompt, promptPlaceholder: promptPlaceholder })(rule); }
143
143
  };
144
144
  },
145
- enumerable: true,
145
+ enumerable: false,
146
146
  configurable: true
147
147
  });
148
148
  Object.defineProperty(MaskingService.prototype, "unmaskTokenCreator", {
@@ -153,7 +153,7 @@ var MaskingService = /** @class */ (function () {
153
153
  mask: function (rule) { return unmask(_this.prompt)(rule); }
154
154
  };
155
155
  },
156
- enumerable: true,
156
+ enumerable: false,
157
157
  configurable: true
158
158
  });
159
159
  Object.defineProperty(MaskingService.prototype, "rawTokenCreator", {
@@ -164,7 +164,7 @@ var MaskingService = /** @class */ (function () {
164
164
  mask: function (_) { return rawMask({ prompt: prompt, promptPlaceholder: promptPlaceholder }); }
165
165
  };
166
166
  },
167
- enumerable: true,
167
+ enumerable: false,
168
168
  configurable: true
169
169
  });
170
170
  Object.defineProperty(MaskingService.prototype, "validationTokenCreator", {
@@ -175,7 +175,7 @@ var MaskingService = /** @class */ (function () {
175
175
  mask: function (_) { return rawMask({ prompt: prompt, promptPlaceholder: '' }); }
176
176
  };
177
177
  },
178
- enumerable: true,
178
+ enumerable: false,
179
179
  configurable: true
180
180
  });
181
181
  MaskingService.prototype.tokenize = function () {
@@ -90,26 +90,26 @@ export declare const colorPickerDropdownButtonAriaLabel = "colorPicker.dropdownB
90
90
  * @hidden
91
91
  */
92
92
  export declare const messages: {
93
- [numericIncreaseValue]: string;
94
- [numericDecreaseValue]: string;
95
- [sliderIncreaseValue]: string;
96
- [sliderDecreaseValue]: string;
97
- [sliderDragTitle]: string;
98
- [colorGradientR]: string;
99
- [colorGradientG]: string;
100
- [colorGradientB]: string;
101
- [colorGradientA]: string;
102
- [colorGradientHex]: string;
103
- [colorGradientContrastRatio]: string;
104
- [colorGradientAALevel]: string;
105
- [colorGradientAAALevel]: string;
106
- [colorGradientPass]: string;
107
- [colorGradientFail]: string;
108
- [flatColorPickerCancelBtn]: string;
109
- [flatColorPickerApplyBtn]: string;
110
- [checkboxValidation]: string;
111
- [checkboxOptionalText]: string;
112
- [radioButtonValidation]: string;
113
- [switchValidation]: string;
114
- [colorPickerDropdownButtonAriaLabel]: string;
93
+ "numerictextbox.increment": string;
94
+ "numerictextbox.decrement": string;
95
+ "slider.increment": string;
96
+ "slider.decrement": string;
97
+ "slider.dragTitle": string;
98
+ "colorGradient.r": string;
99
+ "colorGradient.g": string;
100
+ "colorGradient.b": string;
101
+ "colorGradient.a": string;
102
+ "colorGradient.hex": string;
103
+ "colorGradient.contrastRatio": string;
104
+ "colorGradient.colorGradientAALevel": string;
105
+ "colorGradient.colorGradientAAALevel": string;
106
+ "colorGradient.colorGradientPass": string;
107
+ "colorGradient.colorGradientFail": string;
108
+ "flatColorPicker.cancelBtn": string;
109
+ "flatColorPicker.applyBtn": string;
110
+ "checkbox.validation": string;
111
+ "checkbox.optionalText": string;
112
+ "radioButton.validation": string;
113
+ "switch.validation": string;
114
+ "colorPicker.dropdownButtonAriaLabel": string;
115
115
  };
@@ -7,11 +7,11 @@ export declare const getInitialState: () => NumericTextBoxState;
7
7
  /**
8
8
  * @hidden
9
9
  */
10
- export declare const getStateOrPropsValue: (value: number, stateValue: number) => number;
10
+ export declare const getStateOrPropsValue: (value: number | null | undefined, stateValue: number | null | undefined) => number | null | undefined;
11
11
  /**
12
12
  * @hidden
13
13
  */
14
- export declare const formatValue: (value: string | number, format: string | NumberFormatOptions, intlService: any) => string;
14
+ export declare const formatValue: (value: string | number | null | undefined, format: string | NumberFormatOptions | undefined, intlService: any) => string;
15
15
  /**
16
16
  * @hidden
17
17
  */
@@ -35,7 +35,7 @@ export declare const decreaseValue: (value: any, newState: any, step: any, min:
35
35
  /**
36
36
  * @hidden
37
37
  */
38
- export declare const rangeValue: (value: number, min: any, max: any) => number;
38
+ export declare const rangeValue: (value: number | null, min: any, max: any) => number | null;
39
39
  /**
40
40
  * @hidden
41
41
  */
@@ -55,7 +55,7 @@ export declare const setSelection: (newState: NumericTextBoxState, newIndex: num
55
55
  /**
56
56
  * @hidden
57
57
  */
58
- export declare const setInvalid: (newState: NumericTextBoxState, format: string | NumberFormatOptions, formatInfo: string[][], intlService: any) => void;
58
+ export declare const setInvalid: (newState: NumericTextBoxState, format: string | NumberFormatOptions | undefined, formatInfo: string[][], intlService: any) => void;
59
59
  /**
60
60
  * @hidden
61
61
  */
@@ -71,7 +71,7 @@ export declare const isDecimalDuplicated: (newState: NumericTextBoxState, symbol
71
71
  /**
72
72
  * @hidden
73
73
  */
74
- export declare const getFormatPrefixSufix: (format: string | NumberFormatOptions, intlService: any) => {
74
+ export declare const getFormatPrefixSufix: (format: string | NumberFormatOptions | undefined, intlService: any) => {
75
75
  positiveInfo: string[];
76
76
  negativeInfo: string[];
77
77
  zeroInfo: string[];
@@ -80,7 +80,7 @@ export declare const getFormatPrefixSufix: (format: string | NumberFormatOptions
80
80
  /**
81
81
  * @hidden
82
82
  */
83
- export declare const getFormatSymbols: (format: string | NumberFormatOptions, intlService: any) => string;
83
+ export declare const getFormatSymbols: (format: string | NumberFormatOptions | undefined, intlService: any) => string;
84
84
  /**
85
85
  * @hidden
86
86
  */
@@ -116,4 +116,4 @@ export declare const changeBasedSelection: (currentValue: string, nextValue: str
116
116
  /**
117
117
  * @hidden
118
118
  */
119
- export declare const sanitizeNumber: (state: NumericTextBoxState, format: string | NumberFormatOptions, intlService: any) => NumericTextBoxState;
119
+ export declare const sanitizeNumber: (state: NumericTextBoxState, format: string | NumberFormatOptions | undefined, intlService: any) => NumericTextBoxState;
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-react-inputs',
6
6
  productName: 'KendoReact',
7
7
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
8
- publishDate: 1652862765,
8
+ publishDate: 1653648212,
9
9
  version: '',
10
10
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
11
11
  };
@@ -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';
@@ -69,7 +69,7 @@ export var RadioGroup = React.forwardRef(function (directProps, target) {
69
69
  var radioOptions = (data && data.map(function (option, index) {
70
70
  var isCurrentlyChecked = checkedRadioValue === option.value;
71
71
  var noOptionChecked = checkedRadioValue === null || checkedRadioValue === undefined;
72
- var radioButtonProps = __assign({}, option, { valid: valid, checked: isCurrentlyChecked, disabled: (option.disabled || disabled) ? true : false, labelPlacement: option.labelPlacement ? option.labelPlacement : labelPlacement, tabIndex: option.tabIndex
72
+ var radioButtonProps = __assign(__assign({}, option), { valid: valid, checked: isCurrentlyChecked, disabled: (option.disabled || disabled) ? true : false, labelPlacement: option.labelPlacement ? option.labelPlacement : labelPlacement, tabIndex: option.tabIndex
73
73
  ? option.tabIndex
74
74
  : (noOptionChecked && index === 0) || isCurrentlyChecked
75
75
  ? 0
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -23,7 +23,7 @@ import { packageMetadata } from '../package-metadata';
23
23
  var useRange = function (defaultValue, args, callback) {
24
24
  var _a = React.useState(defaultValue), state = _a[0], setState = _a[1];
25
25
  var handleDispatchAction = React.useCallback(function (action) {
26
- var newState = rangeReducer(args.state || state, __assign({}, action, args));
26
+ var newState = rangeReducer(args.state || state, __assign(__assign({}, action), args));
27
27
  if (callback) {
28
28
  callback(newState, action.event);
29
29
  }
@@ -48,18 +48,18 @@ export var rangeReducer = function (state, action) {
48
48
  break;
49
49
  case RANGE_ACTION.min:
50
50
  if (action.key === 'start') {
51
- newState = __assign({}, state, { start: action.min });
51
+ newState = __assign(__assign({}, state), { start: action.min });
52
52
  }
53
53
  else {
54
- newState = __assign({}, state, { end: Math.max(action.min, state.start) });
54
+ newState = __assign(__assign({}, state), { end: Math.max(action.min, state.start) });
55
55
  }
56
56
  break;
57
57
  case RANGE_ACTION.max:
58
58
  if (action.key === 'start') {
59
- newState = __assign({}, state, { start: Math.min(action.max, state.end) });
59
+ newState = __assign(__assign({}, state), { start: Math.min(action.max, state.end) });
60
60
  }
61
61
  else {
62
- newState = __assign({}, state, { end: action.max });
62
+ newState = __assign(__assign({}, state), { end: action.max });
63
63
  }
64
64
  break;
65
65
  case RANGE_ACTION.increase:
@@ -69,18 +69,18 @@ export var rangeReducer = function (state, action) {
69
69
  newValue = state[action.key] + action.step;
70
70
  if (action.key === 'start') {
71
71
  if (newValue < action.min) {
72
- newState = __assign({}, state, { start: action.min });
72
+ newState = __assign(__assign({}, state), { start: action.min });
73
73
  }
74
74
  else {
75
- newState = __assign({}, state, { start: Math.min(newValue, state.end) });
75
+ newState = __assign(__assign({}, state), { start: Math.min(newValue, state.end) });
76
76
  }
77
77
  }
78
78
  else {
79
79
  if (newValue > action.max) {
80
- newState = __assign({}, state, { end: action.max });
80
+ newState = __assign(__assign({}, state), { end: action.max });
81
81
  }
82
82
  else {
83
- newState = __assign({}, state, { end: Math.max(newValue, state.start) });
83
+ newState = __assign(__assign({}, state), { end: Math.max(newValue, state.start) });
84
84
  }
85
85
  }
86
86
  break;
@@ -91,18 +91,18 @@ export var rangeReducer = function (state, action) {
91
91
  newValue = state[action.key] - action.step;
92
92
  if (action.key === 'start') {
93
93
  if (newValue < action.min) {
94
- newState = __assign({}, state, { start: action.min });
94
+ newState = __assign(__assign({}, state), { start: action.min });
95
95
  }
96
96
  else {
97
- newState = __assign({}, state, { start: Math.min(newValue, state.end) });
97
+ newState = __assign(__assign({}, state), { start: Math.min(newValue, state.end) });
98
98
  }
99
99
  }
100
100
  else {
101
101
  if (newValue > action.max) {
102
- newState = __assign({}, state, { end: action.max });
102
+ newState = __assign(__assign({}, state), { end: action.max });
103
103
  }
104
104
  else {
105
- newState = __assign({}, state, { end: Math.max(newValue, state.start) });
105
+ newState = __assign(__assign({}, state), { end: Math.max(newValue, state.start) });
106
106
  }
107
107
  }
108
108
  break;
@@ -21,7 +21,7 @@ import { isSelected, isHalf, calcIsFirstHalf, isCorrectValue, toRound, getRemain
21
21
  var useRating = function (defaultValue, args, callback) {
22
22
  var _a = React.useState(defaultValue), state = _a[0], setState = _a[1];
23
23
  var handleDispatchAction = function (action) {
24
- var newState = ratingReducer(args.state || state, __assign({}, action, args));
24
+ var newState = ratingReducer(args.state || state, __assign(__assign({}, action), args));
25
25
  if (callback) {
26
26
  callback(newState, action.event);
27
27
  }
@@ -0,0 +1 @@
1
+ export {};
@@ -13,7 +13,7 @@ export declare const isHalf: (index: number, value: number, step: number) => boo
13
13
  /**
14
14
  * @hidden
15
15
  */
16
- export declare const isSelected: (index: number, value: number, step: number, selection: "single" | "continues") => boolean;
16
+ export declare const isSelected: (index: number, value: number | null, step: number, selection: 'single' | 'continues') => boolean;
17
17
  /**
18
18
  * @hidden
19
19
  */
@@ -152,7 +152,7 @@ export declare class SliderWithoutContext extends React.Component<SliderProps, S
152
152
  /**
153
153
  * @hidden
154
154
  */
155
- readonly sliderTrack: HTMLDivElement | null;
155
+ get sliderTrack(): HTMLDivElement | null;
156
156
  private isLabel;
157
157
  private onFocus;
158
158
  private onBlur;
@@ -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 __());
@@ -162,8 +164,8 @@ var SliderWithoutContext = /** @class */ (function (_super) {
162
164
  * @hidden
163
165
  */
164
166
  SliderWithoutContext.prototype.render = function () {
165
- var _this = this;
166
167
  var _a;
168
+ var _this = this;
167
169
  var lS = provideLocalizationService(this);
168
170
  var percentValue = ((this.state.value - this.props.min) / (this.props.max - this.props.min)) * 100;
169
171
  var trackStyles = this.props.vertical
@@ -206,7 +208,7 @@ var SliderWithoutContext = /** @class */ (function (_super) {
206
208
  get: function () {
207
209
  return this._sliderTrack;
208
210
  },
209
- enumerable: true,
211
+ enumerable: false,
210
212
  configurable: true
211
213
  });
212
214
  SliderWithoutContext.prototype.change = function (e, value) {
@@ -137,28 +137,28 @@ export declare class SwitchWithoutContext extends React.Component<SwitchProps, S
137
137
  /**
138
138
  * Gets the value of the Switch.
139
139
  */
140
- readonly value: boolean;
141
- readonly element: HTMLSpanElement | null;
140
+ get value(): boolean;
141
+ get element(): HTMLSpanElement | null;
142
142
  /**
143
143
  * @hidden
144
144
  */
145
- readonly actionElement: HTMLSpanElement | null;
145
+ get actionElement(): HTMLSpanElement | null;
146
146
  /**
147
147
  * Gets the `name` property of the Switch.
148
148
  */
149
- readonly name: string | undefined;
149
+ get name(): string | undefined;
150
150
  /**
151
151
  * Represents the validity state into which the Switch is set.
152
152
  */
153
- readonly validity: FormComponentValidity;
153
+ get validity(): FormComponentValidity;
154
154
  /**
155
155
  * @hidden
156
156
  */
157
- protected readonly validityStyles: boolean;
157
+ protected get validityStyles(): boolean;
158
158
  /**
159
159
  * @hidden
160
160
  */
161
- protected readonly required: boolean;
161
+ protected get required(): boolean;
162
162
  /**
163
163
  * @hidden
164
164
  */
@@ -175,8 +175,8 @@ export declare class SwitchWithoutContext extends React.Component<SwitchProps, S
175
175
  disabled: PropTypes.Requireable<boolean>;
176
176
  defaultChecked: PropTypes.Requireable<boolean>;
177
177
  size: PropTypes.Requireable<"small" | "medium" | "large">;
178
- trackRounded: PropTypes.Requireable<"small" | "medium" | "large" | "full">;
179
- thumbRounded: PropTypes.Requireable<"small" | "medium" | "large" | "full">;
178
+ trackRounded: PropTypes.Requireable<"small" | "medium" | "full" | "large">;
179
+ thumbRounded: PropTypes.Requireable<"small" | "medium" | "full" | "large">;
180
180
  dir: PropTypes.Requireable<string>;
181
181
  id: PropTypes.Requireable<string>;
182
182
  ariaLabelledBy: PropTypes.Requireable<string>;
@@ -199,8 +199,8 @@ export declare class SwitchWithoutContext extends React.Component<SwitchProps, S
199
199
  disabled: boolean;
200
200
  defaultChecked: boolean;
201
201
  size: "small" | "medium" | "large";
202
- trackRounded: "small" | "medium" | "large" | "full";
203
- thumbRounded: "small" | "medium" | "large" | "full";
202
+ trackRounded: "small" | "medium" | "full" | "large";
203
+ thumbRounded: "small" | "medium" | "full" | "large";
204
204
  offLabel: string;
205
205
  onBlur: () => void;
206
206
  onFocus: () => void;
@@ -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 __());
@@ -136,14 +138,14 @@ var SwitchWithoutContext = /** @class */ (function (_super) {
136
138
  ? this.props.checked
137
139
  : this.state.checked;
138
140
  },
139
- enumerable: true,
141
+ enumerable: false,
140
142
  configurable: true
141
143
  });
142
144
  Object.defineProperty(SwitchWithoutContext.prototype, "element", {
143
145
  get: function () {
144
146
  return this._element;
145
147
  },
146
- enumerable: true,
148
+ enumerable: false,
147
149
  configurable: true
148
150
  });
149
151
  Object.defineProperty(SwitchWithoutContext.prototype, "actionElement", {
@@ -153,7 +155,7 @@ var SwitchWithoutContext = /** @class */ (function (_super) {
153
155
  get: function () {
154
156
  return this._wrapper;
155
157
  },
156
- enumerable: true,
158
+ enumerable: false,
157
159
  configurable: true
158
160
  });
159
161
  Object.defineProperty(SwitchWithoutContext.prototype, "name", {
@@ -163,7 +165,7 @@ var SwitchWithoutContext = /** @class */ (function (_super) {
163
165
  get: function () {
164
166
  return this.props.name;
165
167
  },
166
- enumerable: true,
168
+ enumerable: false,
167
169
  configurable: true
168
170
  });
169
171
  Object.defineProperty(SwitchWithoutContext.prototype, "validity", {
@@ -184,7 +186,7 @@ var SwitchWithoutContext = /** @class */ (function (_super) {
184
186
  valueMissing: this.value === null
185
187
  };
186
188
  },
187
- enumerable: true,
189
+ enumerable: false,
188
190
  configurable: true
189
191
  });
190
192
  Object.defineProperty(SwitchWithoutContext.prototype, "validityStyles", {
@@ -196,7 +198,7 @@ var SwitchWithoutContext = /** @class */ (function (_super) {
196
198
  ? this.props.validityStyles
197
199
  : SwitchWithoutContext.defaultProps.validityStyles;
198
200
  },
199
- enumerable: true,
201
+ enumerable: false,
200
202
  configurable: true
201
203
  });
202
204
  Object.defineProperty(SwitchWithoutContext.prototype, "required", {
@@ -208,7 +210,7 @@ var SwitchWithoutContext = /** @class */ (function (_super) {
208
210
  ? this.props.required
209
211
  : SwitchWithoutContext.defaultProps.required;
210
212
  },
211
- enumerable: true,
213
+ enumerable: false,
212
214
  configurable: true
213
215
  });
214
216
  /**
@@ -229,8 +231,8 @@ var SwitchWithoutContext = /** @class */ (function (_super) {
229
231
  * @hidden
230
232
  */
231
233
  SwitchWithoutContext.prototype.render = function () {
232
- var _this = this;
233
234
  var _a, _b, _c;
235
+ var _this = this;
234
236
  var focused = this.state.focused;
235
237
  var _d = this.props, dir = _d.dir, disabled = _d.disabled, trackRounded = _d.trackRounded, thumbRounded = _d.thumbRounded, size = _d.size, id = _d.id, offLabel = _d.offLabel, onLabel = _d.onLabel, tabIndex = _d.tabIndex;
236
238
  this.dir = dir || (this._wrapper && getComputedStyle(this._wrapper).direction) || undefined;