shineout 3.9.8-beta.12 → 3.9.8-beta.14
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/cjs/index.js +1 -1
- package/dist/shineout.js +36 -4
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/index.js +1 -1
- package/package.json +5 -5
package/cjs/index.js
CHANGED
|
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
522
522
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
523
523
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
524
524
|
var _default = exports.default = {
|
|
525
|
-
version: '3.9.8-beta.
|
|
525
|
+
version: '3.9.8-beta.14'
|
|
526
526
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12402,7 +12402,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12402
12402
|
};
|
|
12403
12403
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12404
12404
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12405
|
-
/* harmony default export */ var version = ('3.9.8-beta.
|
|
12405
|
+
/* harmony default export */ var version = ('3.9.8-beta.14');
|
|
12406
12406
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12407
12407
|
|
|
12408
12408
|
|
|
@@ -38386,7 +38386,8 @@ var input_Input = function Input(props) {
|
|
|
38386
38386
|
digits: commonProps.digits,
|
|
38387
38387
|
integerLimit: commonProps.integerLimit,
|
|
38388
38388
|
numType: commonProps.numType,
|
|
38389
|
-
trim: (_ref = (_commonProps$trim = commonProps.trim) !== null && _commonProps$trim !== void 0 ? _commonProps$trim : config.trim) !== null && _ref !== void 0 ? _ref : false
|
|
38389
|
+
trim: (_ref = (_commonProps$trim = commonProps.trim) !== null && _commonProps$trim !== void 0 ? _commonProps$trim : config.trim) !== null && _ref !== void 0 ? _ref : false,
|
|
38390
|
+
required: false
|
|
38390
38391
|
};
|
|
38391
38392
|
var inputFormatProps = use_input_format(objectSpread2_default()({
|
|
38392
38393
|
value: commonProps.value,
|
|
@@ -47360,7 +47361,36 @@ var useDatePickerFormat = function useDatePickerFormat(props) {
|
|
|
47360
47361
|
return item;
|
|
47361
47362
|
});
|
|
47362
47363
|
var isDis = isDisabledInputDate(inputValue);
|
|
47364
|
+
|
|
47365
|
+
// Check min/max constraints for inputValue
|
|
47366
|
+
var isOutOfRange = false;
|
|
47363
47367
|
if (!isDis) {
|
|
47368
|
+
for (var i = 0; i < inputValue.length; i++) {
|
|
47369
|
+
var _date = inputValue[i];
|
|
47370
|
+
if (_date) {
|
|
47371
|
+
if (type === 'week') {
|
|
47372
|
+
if (props.min && util.compareWeek(_date, props.min, 0, options) < 0) {
|
|
47373
|
+
isOutOfRange = true;
|
|
47374
|
+
break;
|
|
47375
|
+
}
|
|
47376
|
+
if (props.max && util.compareWeek(_date, props.max, 0, options) > 0) {
|
|
47377
|
+
isOutOfRange = true;
|
|
47378
|
+
break;
|
|
47379
|
+
}
|
|
47380
|
+
} else {
|
|
47381
|
+
if (props.min && util.compareDay(_date, props.min, 0, options) < 0) {
|
|
47382
|
+
isOutOfRange = true;
|
|
47383
|
+
break;
|
|
47384
|
+
}
|
|
47385
|
+
if (props.max && util.compareDay(_date, props.max, 0, options) > 0) {
|
|
47386
|
+
isOutOfRange = true;
|
|
47387
|
+
break;
|
|
47388
|
+
}
|
|
47389
|
+
}
|
|
47390
|
+
}
|
|
47391
|
+
}
|
|
47392
|
+
}
|
|
47393
|
+
if (!isDis && !isOutOfRange) {
|
|
47364
47394
|
formatValue = getFormatValueArr(inputValue);
|
|
47365
47395
|
}
|
|
47366
47396
|
}
|
|
@@ -49699,7 +49729,9 @@ var DatePicker = function DatePicker(props0) {
|
|
|
49699
49729
|
allowSingle: props.allowSingle,
|
|
49700
49730
|
defaultCurrent: props.defaultPickerValue || props.defaultRangeMonth,
|
|
49701
49731
|
formatResult: props.formatResult,
|
|
49702
|
-
onPickerChange: props.onPickerChange
|
|
49732
|
+
onPickerChange: props.onPickerChange,
|
|
49733
|
+
min: props.min,
|
|
49734
|
+
max: props.max
|
|
49703
49735
|
}),
|
|
49704
49736
|
inputArr = _useDatePickerFormat.inputArr,
|
|
49705
49737
|
resultArr = _useDatePickerFormat.resultArr,
|
|
@@ -75189,7 +75221,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
75189
75221
|
|
|
75190
75222
|
|
|
75191
75223
|
/* harmony default export */ var src_0 = ({
|
|
75192
|
-
version: '3.9.8-beta.
|
|
75224
|
+
version: '3.9.8-beta.14'
|
|
75193
75225
|
});
|
|
75194
75226
|
}();
|
|
75195
75227
|
/******/ return __webpack_exports__;
|