@innoways/drip-form-theme-antd 9.0.0 → 9.0.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: enhance date parsing logic in DatePickerField for better validation 9.0.3
8
+ - Updated dependencies
9
+ - @innoways/hooks@9.0.3
10
+ - @innoways/utils@9.0.3
11
+
12
+ ## 9.0.2
13
+
14
+ ### Patch Changes
15
+
16
+ - set default value for allowClear in SelectField component version 9.0.2
17
+ - Updated dependencies
18
+ - @innoways/hooks@9.0.2
19
+ - @innoways/utils@9.0.2
20
+
21
+ ## 9.0.1
22
+
23
+ ### Patch Changes
24
+
25
+ - fixed datepicker default input hide 9.0.1
26
+ - Updated dependencies
27
+ - @innoways/hooks@9.0.1
28
+ - @innoways/utils@9.0.1
29
+
3
30
  ## 9.0.0
4
31
 
5
32
  ### Major Changes
package/dist/index.css CHANGED
@@ -239,6 +239,11 @@
239
239
  justify-content: center !important;
240
240
  }
241
241
 
242
+ /* Hide the default flatpickr input when altInput is enabled */
243
+ .custom-date-picker input.flatpickr-input.flat-date-picker {
244
+ display: none !important;
245
+ }
246
+
242
247
  .drip-form--colorpicker {
243
248
  display: flex;
244
249
  }
package/dist/index.js CHANGED
@@ -20660,7 +20660,8 @@ var SelectField$1 = function SelectField(props) {
20660
20660
  multiple = props.multiple,
20661
20661
  _props$options = props.options,
20662
20662
  options = _props$options === void 0 ? [] : _props$options,
20663
- allowClear = props.allowClear,
20663
+ _props$allowClear = props.allowClear,
20664
+ allowClear = _props$allowClear === void 0 ? true : _props$allowClear,
20664
20665
  queryFunc = props.queryFunc,
20665
20666
  asyncValidate = props.asyncValidate,
20666
20667
  _props$requestCache = props.requestCache,
@@ -22560,7 +22561,7 @@ var DatePickerField = function DatePickerField(_ref) {
22560
22561
  }, options)
22561
22562
  }) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledFlatPicker, {
22562
22563
  disabled: disabled,
22563
- value: fieldData ? [typeof fieldData === 'string' ? moment(fieldData, format).toDate() : moment(fieldData).toDate()] : [],
22564
+ value: fieldData ? [typeof fieldData === 'string' ? moment(fieldData, format, true).isValid() ? moment(fieldData, format).toDate() : moment(fieldData).toDate() : moment(fieldData).toDate()] : [],
22564
22565
  onChange: function onChange(date, isCleared) {
22565
22566
  if (isCleared) {
22566
22567
  _onChange(null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innoways/drip-form-theme-antd",
3
- "version": "9.0.0",
3
+ "version": "9.0.3",
4
4
  "author": "JDFED",
5
5
  "description": "drip-form antd主题包",
6
6
  "main": "dist/index.js",
@@ -31,8 +31,8 @@
31
31
  "dependencies": {
32
32
  "@ant-design/icons": "^4.7.0",
33
33
  "@babel/runtime": "^7.10.2",
34
- "@innoways/hooks": "^9.0.0",
35
- "@innoways/utils": "^9.0.0",
34
+ "@innoways/hooks": "^9.0.3",
35
+ "@innoways/utils": "^9.0.3",
36
36
  "antd": "^4.16.13",
37
37
  "flatpickr": "^4.6.13",
38
38
  "moment": "^2.26.0",