@innoways/drip-form-theme-antd 9.0.12 → 9.0.13
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 +9 -0
- package/dist/index.js +12 -12
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 9.0.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix: applied Enter fieldKey, based on that field value dates will be disabled config 9.0.13
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @innoways/hooks@9.0.13
|
|
10
|
+
- @innoways/utils@9.0.13
|
|
11
|
+
|
|
3
12
|
## 9.0.12
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -22352,12 +22352,12 @@ var config$8 = {
|
|
|
22352
22352
|
type: 'switch'
|
|
22353
22353
|
}
|
|
22354
22354
|
}, {
|
|
22355
|
-
fieldKey: '
|
|
22356
|
-
type: '
|
|
22357
|
-
title: 'Can not select previous date',
|
|
22358
|
-
"default": false,
|
|
22355
|
+
fieldKey: 'can_not_select_previous_date_of',
|
|
22356
|
+
type: 'string',
|
|
22357
|
+
title: 'Can not select previous date of',
|
|
22359
22358
|
ui: {
|
|
22360
|
-
type: '
|
|
22359
|
+
type: 'text',
|
|
22360
|
+
placeholder: 'Enter fieldKey, based on that field value dates will be disabled'
|
|
22361
22361
|
}
|
|
22362
22362
|
}, {
|
|
22363
22363
|
fieldKey: 'disabled',
|
|
@@ -22502,7 +22502,7 @@ var config$8 = {
|
|
|
22502
22502
|
}
|
|
22503
22503
|
};
|
|
22504
22504
|
|
|
22505
|
-
var _excluded$9 = ["disabled", "onChange", "fieldData", "fieldKey", "dispatch", "style", "range", "
|
|
22505
|
+
var _excluded$9 = ["disabled", "onChange", "fieldData", "fieldKey", "dispatch", "style", "range", "can_not_select_previous_date_of", "format", "flatpickrFormat", "picker", "asyncValidate", "showTime", "allowClear", "getKey", "formMode", "showCurrentDate", "themeColor", "options"];
|
|
22506
22506
|
|
|
22507
22507
|
function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
22508
22508
|
|
|
@@ -22517,8 +22517,8 @@ var DatePickerField = function DatePickerField(_ref) {
|
|
|
22517
22517
|
dispatch = _ref.dispatch,
|
|
22518
22518
|
style = _ref.style,
|
|
22519
22519
|
range = _ref.range,
|
|
22520
|
-
_ref$can_not_select_p = _ref.
|
|
22521
|
-
|
|
22520
|
+
_ref$can_not_select_p = _ref.can_not_select_previous_date_of,
|
|
22521
|
+
can_not_select_previous_date_of = _ref$can_not_select_p === void 0 ? '' : _ref$can_not_select_p,
|
|
22522
22522
|
_ref$format = _ref.format,
|
|
22523
22523
|
format = _ref$format === void 0 ? 'DD-MMM-YYYY' : _ref$format,
|
|
22524
22524
|
_ref$flatpickrFormat = _ref.flatpickrFormat,
|
|
@@ -22533,8 +22533,8 @@ var DatePickerField = function DatePickerField(_ref) {
|
|
|
22533
22533
|
formMode = _ref.formMode;
|
|
22534
22534
|
_ref.showCurrentDate;
|
|
22535
22535
|
var themeColor = _ref.themeColor,
|
|
22536
|
-
options = _ref.options
|
|
22537
|
-
_objectWithoutProperties(_ref, _excluded$9);
|
|
22536
|
+
options = _ref.options,
|
|
22537
|
+
restProps = _objectWithoutProperties(_ref, _excluded$9);
|
|
22538
22538
|
|
|
22539
22539
|
/**
|
|
22540
22540
|
* 暂时不支持的DatePicker功能
|
|
@@ -22617,8 +22617,8 @@ var DatePickerField = function DatePickerField(_ref) {
|
|
|
22617
22617
|
altFormat: showTime ? flatpickrFormat + ' H:i' : flatpickrFormat,
|
|
22618
22618
|
dateFormat: showTime ? 'Y-m-d H:i' : 'Y-m-d',
|
|
22619
22619
|
altInputClass: disabled ? 'drip_date_picker_input_disabled' : 'drip_date_picker_input'
|
|
22620
|
-
},
|
|
22621
|
-
minDate: moment(
|
|
22620
|
+
}, can_not_select_previous_date_of && fieldData && restProps.formData && restProps.formData[can_not_select_previous_date_of] && moment(restProps.formData[can_not_select_previous_date_of], format).isValid() ? {
|
|
22621
|
+
minDate: moment(restProps.formData[can_not_select_previous_date_of], format).toDate()
|
|
22622
22622
|
} : {}), options)
|
|
22623
22623
|
})));
|
|
22624
22624
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@innoways/drip-form-theme-antd",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.13",
|
|
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.
|
|
35
|
-
"@innoways/utils": "^9.0.
|
|
34
|
+
"@innoways/hooks": "^9.0.13",
|
|
35
|
+
"@innoways/utils": "^9.0.13",
|
|
36
36
|
"antd": "^4.16.13",
|
|
37
37
|
"flatpickr": "4.6.3",
|
|
38
38
|
"moment": "^2.26.0",
|