@douyinfe/semi-ui 2.10.0-beta.0 → 2.10.0
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/button/buttonGroup.tsx +2 -2
- package/carousel/CarouselArrow.tsx +4 -4
- package/carousel/CarouselIndicator.tsx +0 -1
- package/carousel/index.tsx +1 -3
- package/carousel/interface.ts +1 -2
- package/datePicker/monthsGrid.tsx +8 -8
- package/dist/css/semi.css +4 -4
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +365 -211
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/form/baseForm.tsx +10 -1
- package/form/hoc/withField.tsx +17 -5
- package/inputNumber/__test__/inputNumber.test.js +40 -3
- package/inputNumber/_story/inputNumber.stories.js +56 -1
- package/inputNumber/index.tsx +22 -14
- package/lib/cjs/button/buttonGroup.d.ts +1 -1
- package/lib/cjs/carousel/CarouselArrow.js +3 -6
- package/lib/cjs/carousel/index.js +1 -3
- package/lib/cjs/carousel/interface.d.ts +1 -2
- package/lib/cjs/datePicker/monthsGrid.js +6 -6
- package/lib/cjs/form/baseForm.d.ts +1 -0
- package/lib/cjs/form/baseForm.js +10 -1
- package/lib/cjs/form/hoc/withField.js +8 -1
- package/lib/cjs/inputNumber/index.d.ts +2 -6
- package/lib/cjs/inputNumber/index.js +27 -11
- package/lib/cjs/transfer/index.js +5 -5
- package/lib/cjs/treeSelect/index.js +1 -1
- package/lib/es/button/buttonGroup.d.ts +1 -1
- package/lib/es/carousel/CarouselArrow.js +3 -5
- package/lib/es/carousel/index.js +1 -3
- package/lib/es/carousel/interface.d.ts +1 -2
- package/lib/es/datePicker/monthsGrid.js +7 -7
- package/lib/es/form/baseForm.d.ts +1 -0
- package/lib/es/form/baseForm.js +10 -1
- package/lib/es/form/hoc/withField.js +8 -1
- package/lib/es/inputNumber/index.d.ts +2 -6
- package/lib/es/inputNumber/index.js +26 -11
- package/lib/es/transfer/index.js +1 -1
- package/lib/es/treeSelect/index.js +1 -1
- package/package.json +9 -9
- package/transfer/index.tsx +1 -1
- package/treeSelect/index.tsx +1 -1
package/dist/umd/semi-ui.js
CHANGED
|
@@ -1604,6 +1604,97 @@ function times(n, iteratee) {
|
|
|
1604
1604
|
module.exports = times;
|
|
1605
1605
|
|
|
1606
1606
|
|
|
1607
|
+
/***/ }),
|
|
1608
|
+
|
|
1609
|
+
/***/ "16Al":
|
|
1610
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1611
|
+
|
|
1612
|
+
"use strict";
|
|
1613
|
+
/**
|
|
1614
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1615
|
+
*
|
|
1616
|
+
* This source code is licensed under the MIT license found in the
|
|
1617
|
+
* LICENSE file in the root directory of this source tree.
|
|
1618
|
+
*/
|
|
1619
|
+
|
|
1620
|
+
|
|
1621
|
+
|
|
1622
|
+
var ReactPropTypesSecret = __webpack_require__("WbBG");
|
|
1623
|
+
|
|
1624
|
+
function emptyFunction() {}
|
|
1625
|
+
function emptyFunctionWithReset() {}
|
|
1626
|
+
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
1627
|
+
|
|
1628
|
+
module.exports = function() {
|
|
1629
|
+
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
1630
|
+
if (secret === ReactPropTypesSecret) {
|
|
1631
|
+
// It is still safe when called from React.
|
|
1632
|
+
return;
|
|
1633
|
+
}
|
|
1634
|
+
var err = new Error(
|
|
1635
|
+
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
1636
|
+
'Use PropTypes.checkPropTypes() to call them. ' +
|
|
1637
|
+
'Read more at http://fb.me/use-check-prop-types'
|
|
1638
|
+
);
|
|
1639
|
+
err.name = 'Invariant Violation';
|
|
1640
|
+
throw err;
|
|
1641
|
+
};
|
|
1642
|
+
shim.isRequired = shim;
|
|
1643
|
+
function getShim() {
|
|
1644
|
+
return shim;
|
|
1645
|
+
};
|
|
1646
|
+
// Important!
|
|
1647
|
+
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
1648
|
+
var ReactPropTypes = {
|
|
1649
|
+
array: shim,
|
|
1650
|
+
bool: shim,
|
|
1651
|
+
func: shim,
|
|
1652
|
+
number: shim,
|
|
1653
|
+
object: shim,
|
|
1654
|
+
string: shim,
|
|
1655
|
+
symbol: shim,
|
|
1656
|
+
|
|
1657
|
+
any: shim,
|
|
1658
|
+
arrayOf: getShim,
|
|
1659
|
+
element: shim,
|
|
1660
|
+
elementType: shim,
|
|
1661
|
+
instanceOf: getShim,
|
|
1662
|
+
node: shim,
|
|
1663
|
+
objectOf: getShim,
|
|
1664
|
+
oneOf: getShim,
|
|
1665
|
+
oneOfType: getShim,
|
|
1666
|
+
shape: getShim,
|
|
1667
|
+
exact: getShim,
|
|
1668
|
+
|
|
1669
|
+
checkPropTypes: emptyFunctionWithReset,
|
|
1670
|
+
resetWarningCache: emptyFunction
|
|
1671
|
+
};
|
|
1672
|
+
|
|
1673
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
1674
|
+
|
|
1675
|
+
return ReactPropTypes;
|
|
1676
|
+
};
|
|
1677
|
+
|
|
1678
|
+
|
|
1679
|
+
/***/ }),
|
|
1680
|
+
|
|
1681
|
+
/***/ "17x9":
|
|
1682
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1683
|
+
|
|
1684
|
+
/**
|
|
1685
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1686
|
+
*
|
|
1687
|
+
* This source code is licensed under the MIT license found in the
|
|
1688
|
+
* LICENSE file in the root directory of this source tree.
|
|
1689
|
+
*/
|
|
1690
|
+
|
|
1691
|
+
if (false) { var throwOnDirectAccess, ReactIs; } else {
|
|
1692
|
+
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
1693
|
+
// http://fb.me/prop-types-in-prod
|
|
1694
|
+
module.exports = __webpack_require__("16Al")();
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1697
|
+
|
|
1607
1698
|
/***/ }),
|
|
1608
1699
|
|
|
1609
1700
|
/***/ "1EDM":
|
|
@@ -4319,6 +4410,13 @@ module.exports = {
|
|
|
4319
4410
|
};
|
|
4320
4411
|
|
|
4321
4412
|
|
|
4413
|
+
/***/ }),
|
|
4414
|
+
|
|
4415
|
+
/***/ "BKEV":
|
|
4416
|
+
/***/ (function(module, exports) {
|
|
4417
|
+
|
|
4418
|
+
|
|
4419
|
+
|
|
4322
4420
|
/***/ }),
|
|
4323
4421
|
|
|
4324
4422
|
/***/ "BMex":
|
|
@@ -14757,6 +14855,26 @@ module.exports = function (it) {
|
|
|
14757
14855
|
};
|
|
14758
14856
|
|
|
14759
14857
|
|
|
14858
|
+
/***/ }),
|
|
14859
|
+
|
|
14860
|
+
/***/ "WbBG":
|
|
14861
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
14862
|
+
|
|
14863
|
+
"use strict";
|
|
14864
|
+
/**
|
|
14865
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
14866
|
+
*
|
|
14867
|
+
* This source code is licensed under the MIT license found in the
|
|
14868
|
+
* LICENSE file in the root directory of this source tree.
|
|
14869
|
+
*/
|
|
14870
|
+
|
|
14871
|
+
|
|
14872
|
+
|
|
14873
|
+
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
14874
|
+
|
|
14875
|
+
module.exports = ReactPropTypesSecret;
|
|
14876
|
+
|
|
14877
|
+
|
|
14760
14878
|
/***/ }),
|
|
14761
14879
|
|
|
14762
14880
|
/***/ "WbkG":
|
|
@@ -14805,13 +14923,6 @@ function buildMatchPatternFn(args) {
|
|
|
14805
14923
|
|
|
14806
14924
|
module.exports = exports.default;
|
|
14807
14925
|
|
|
14808
|
-
/***/ }),
|
|
14809
|
-
|
|
14810
|
-
/***/ "WvjI":
|
|
14811
|
-
/***/ (function(module, exports) {
|
|
14812
|
-
|
|
14813
|
-
|
|
14814
|
-
|
|
14815
14926
|
/***/ }),
|
|
14816
14927
|
|
|
14817
14928
|
/***/ "X+IB":
|
|
@@ -24985,8 +25096,8 @@ var external_root_React_commonjs2_react_commonjs_react_amd_react_default = /*#__
|
|
|
24985
25096
|
var classnames = __webpack_require__("O94r");
|
|
24986
25097
|
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
|
24987
25098
|
|
|
24988
|
-
// EXTERNAL MODULE:
|
|
24989
|
-
var prop_types = __webpack_require__("
|
|
25099
|
+
// EXTERNAL MODULE: ./node_modules/prop-types/index.js
|
|
25100
|
+
var prop_types = __webpack_require__("17x9");
|
|
24990
25101
|
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
|
24991
25102
|
|
|
24992
25103
|
// CONCATENATED MODULE: ../semi-foundation/base/env.ts
|
|
@@ -25717,7 +25828,7 @@ var find_index_default = /*#__PURE__*/__webpack_require__.n(find_index);
|
|
|
25717
25828
|
|
|
25718
25829
|
// CONCATENATED MODULE: ../semi-foundation/utils/isNullOrUndefined.ts
|
|
25719
25830
|
/**
|
|
25720
|
-
* Whether null or
|
|
25831
|
+
* Whether null or undefined
|
|
25721
25832
|
* @param {*} value
|
|
25722
25833
|
* @returns {boolean}
|
|
25723
25834
|
*/
|
|
@@ -30547,12 +30658,12 @@ localeConsumer_LocaleConsumer.defaultProps = {
|
|
|
30547
30658
|
var is_safe_integer = __webpack_require__("lpbv");
|
|
30548
30659
|
var is_safe_integer_default = /*#__PURE__*/__webpack_require__.n(is_safe_integer);
|
|
30549
30660
|
|
|
30550
|
-
// CONCATENATED MODULE:
|
|
30661
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/env.js
|
|
30551
30662
|
const env_BASE_CLASS_PREFIX = 'semi';
|
|
30552
|
-
// EXTERNAL MODULE:
|
|
30553
|
-
var icons = __webpack_require__("
|
|
30663
|
+
// EXTERNAL MODULE: ../semi-icons/lib/es/styles/icons.css
|
|
30664
|
+
var icons = __webpack_require__("BKEV");
|
|
30554
30665
|
|
|
30555
|
-
// CONCATENATED MODULE:
|
|
30666
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/components/Icon.js
|
|
30556
30667
|
|
|
30557
30668
|
|
|
30558
30669
|
|
|
@@ -30632,7 +30743,7 @@ const convertIcon = (Svg, iconType) => {
|
|
|
30632
30743
|
|
|
30633
30744
|
|
|
30634
30745
|
/* harmony default export */ var components_Icon = (Icon);
|
|
30635
|
-
// CONCATENATED MODULE:
|
|
30746
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconAlertCircle.js
|
|
30636
30747
|
|
|
30637
30748
|
|
|
30638
30749
|
|
|
@@ -30656,7 +30767,7 @@ function SvgComponent(props) {
|
|
|
30656
30767
|
|
|
30657
30768
|
const IconComponent = convertIcon(SvgComponent, 'alert_circle');
|
|
30658
30769
|
/* harmony default export */ var IconAlertCircle = (IconComponent);
|
|
30659
|
-
// CONCATENATED MODULE:
|
|
30770
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconAlertTriangle.js
|
|
30660
30771
|
|
|
30661
30772
|
|
|
30662
30773
|
|
|
@@ -30680,7 +30791,7 @@ function IconAlertTriangle_SvgComponent(props) {
|
|
|
30680
30791
|
|
|
30681
30792
|
const IconAlertTriangle_IconComponent = convertIcon(IconAlertTriangle_SvgComponent, 'alert_triangle');
|
|
30682
30793
|
/* harmony default export */ var IconAlertTriangle = (IconAlertTriangle_IconComponent);
|
|
30683
|
-
// CONCATENATED MODULE:
|
|
30794
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconCalendar.js
|
|
30684
30795
|
|
|
30685
30796
|
|
|
30686
30797
|
|
|
@@ -30704,7 +30815,7 @@ function IconCalendar_SvgComponent(props) {
|
|
|
30704
30815
|
|
|
30705
30816
|
const IconCalendar_IconComponent = convertIcon(IconCalendar_SvgComponent, 'calendar');
|
|
30706
30817
|
/* harmony default export */ var IconCalendar = (IconCalendar_IconComponent);
|
|
30707
|
-
// CONCATENATED MODULE:
|
|
30818
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconCalendarClock.js
|
|
30708
30819
|
|
|
30709
30820
|
|
|
30710
30821
|
|
|
@@ -30743,7 +30854,7 @@ function IconCalendarClock_SvgComponent(props) {
|
|
|
30743
30854
|
|
|
30744
30855
|
const IconCalendarClock_IconComponent = convertIcon(IconCalendarClock_SvgComponent, 'calendar_clock');
|
|
30745
30856
|
/* harmony default export */ var IconCalendarClock = (IconCalendarClock_IconComponent);
|
|
30746
|
-
// CONCATENATED MODULE:
|
|
30857
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconCaretdown.js
|
|
30747
30858
|
|
|
30748
30859
|
|
|
30749
30860
|
|
|
@@ -30765,7 +30876,7 @@ function IconCaretdown_SvgComponent(props) {
|
|
|
30765
30876
|
|
|
30766
30877
|
const IconCaretdown_IconComponent = convertIcon(IconCaretdown_SvgComponent, 'caretdown');
|
|
30767
30878
|
/* harmony default export */ var IconCaretdown = (IconCaretdown_IconComponent);
|
|
30768
|
-
// CONCATENATED MODULE:
|
|
30879
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconCaretup.js
|
|
30769
30880
|
|
|
30770
30881
|
|
|
30771
30882
|
|
|
@@ -30787,7 +30898,7 @@ function IconCaretup_SvgComponent(props) {
|
|
|
30787
30898
|
|
|
30788
30899
|
const IconCaretup_IconComponent = convertIcon(IconCaretup_SvgComponent, 'caretup');
|
|
30789
30900
|
/* harmony default export */ var IconCaretup = (IconCaretup_IconComponent);
|
|
30790
|
-
// CONCATENATED MODULE:
|
|
30901
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconCheckboxIndeterminate.js
|
|
30791
30902
|
|
|
30792
30903
|
|
|
30793
30904
|
|
|
@@ -30809,7 +30920,7 @@ function IconCheckboxIndeterminate_SvgComponent(props) {
|
|
|
30809
30920
|
|
|
30810
30921
|
const IconCheckboxIndeterminate_IconComponent = convertIcon(IconCheckboxIndeterminate_SvgComponent, 'checkbox_indeterminate');
|
|
30811
30922
|
/* harmony default export */ var IconCheckboxIndeterminate = (IconCheckboxIndeterminate_IconComponent);
|
|
30812
|
-
// CONCATENATED MODULE:
|
|
30923
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconCheckboxTick.js
|
|
30813
30924
|
|
|
30814
30925
|
|
|
30815
30926
|
|
|
@@ -30833,7 +30944,7 @@ function IconCheckboxTick_SvgComponent(props) {
|
|
|
30833
30944
|
|
|
30834
30945
|
const IconCheckboxTick_IconComponent = convertIcon(IconCheckboxTick_SvgComponent, 'checkbox_tick');
|
|
30835
30946
|
/* harmony default export */ var IconCheckboxTick = (IconCheckboxTick_IconComponent);
|
|
30836
|
-
// CONCATENATED MODULE:
|
|
30947
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconChevronDown.js
|
|
30837
30948
|
|
|
30838
30949
|
|
|
30839
30950
|
|
|
@@ -30857,7 +30968,7 @@ function IconChevronDown_SvgComponent(props) {
|
|
|
30857
30968
|
|
|
30858
30969
|
const IconChevronDown_IconComponent = convertIcon(IconChevronDown_SvgComponent, 'chevron_down');
|
|
30859
30970
|
/* harmony default export */ var IconChevronDown = (IconChevronDown_IconComponent);
|
|
30860
|
-
// CONCATENATED MODULE:
|
|
30971
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconChevronLeft.js
|
|
30861
30972
|
|
|
30862
30973
|
|
|
30863
30974
|
|
|
@@ -30881,7 +30992,7 @@ function IconChevronLeft_SvgComponent(props) {
|
|
|
30881
30992
|
|
|
30882
30993
|
const IconChevronLeft_IconComponent = convertIcon(IconChevronLeft_SvgComponent, 'chevron_left');
|
|
30883
30994
|
/* harmony default export */ var IconChevronLeft = (IconChevronLeft_IconComponent);
|
|
30884
|
-
// CONCATENATED MODULE:
|
|
30995
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconChevronRight.js
|
|
30885
30996
|
|
|
30886
30997
|
|
|
30887
30998
|
|
|
@@ -30905,7 +31016,7 @@ function IconChevronRight_SvgComponent(props) {
|
|
|
30905
31016
|
|
|
30906
31017
|
const IconChevronRight_IconComponent = convertIcon(IconChevronRight_SvgComponent, 'chevron_right');
|
|
30907
31018
|
/* harmony default export */ var IconChevronRight = (IconChevronRight_IconComponent);
|
|
30908
|
-
// CONCATENATED MODULE:
|
|
31019
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconChevronUp.js
|
|
30909
31020
|
|
|
30910
31021
|
|
|
30911
31022
|
|
|
@@ -30929,7 +31040,7 @@ function IconChevronUp_SvgComponent(props) {
|
|
|
30929
31040
|
|
|
30930
31041
|
const IconChevronUp_IconComponent = convertIcon(IconChevronUp_SvgComponent, 'chevron_up');
|
|
30931
31042
|
/* harmony default export */ var IconChevronUp = (IconChevronUp_IconComponent);
|
|
30932
|
-
// CONCATENATED MODULE:
|
|
31043
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconClear.js
|
|
30933
31044
|
|
|
30934
31045
|
|
|
30935
31046
|
|
|
@@ -30953,7 +31064,7 @@ function IconClear_SvgComponent(props) {
|
|
|
30953
31064
|
|
|
30954
31065
|
const IconClear_IconComponent = convertIcon(IconClear_SvgComponent, 'clear');
|
|
30955
31066
|
/* harmony default export */ var IconClear = (IconClear_IconComponent);
|
|
30956
|
-
// CONCATENATED MODULE:
|
|
31067
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconClock.js
|
|
30957
31068
|
|
|
30958
31069
|
|
|
30959
31070
|
|
|
@@ -30977,7 +31088,7 @@ function IconClock_SvgComponent(props) {
|
|
|
30977
31088
|
|
|
30978
31089
|
const IconClock_IconComponent = convertIcon(IconClock_SvgComponent, 'clock');
|
|
30979
31090
|
/* harmony default export */ var IconClock = (IconClock_IconComponent);
|
|
30980
|
-
// CONCATENATED MODULE:
|
|
31091
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconClose.js
|
|
30981
31092
|
|
|
30982
31093
|
|
|
30983
31094
|
|
|
@@ -30999,7 +31110,7 @@ function IconClose_SvgComponent(props) {
|
|
|
30999
31110
|
|
|
31000
31111
|
const IconClose_IconComponent = convertIcon(IconClose_SvgComponent, 'close');
|
|
31001
31112
|
/* harmony default export */ var IconClose = (IconClose_IconComponent);
|
|
31002
|
-
// CONCATENATED MODULE:
|
|
31113
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconCopy.js
|
|
31003
31114
|
|
|
31004
31115
|
|
|
31005
31116
|
|
|
@@ -31024,7 +31135,7 @@ function IconCopy_SvgComponent(props) {
|
|
|
31024
31135
|
|
|
31025
31136
|
const IconCopy_IconComponent = convertIcon(IconCopy_SvgComponent, 'copy');
|
|
31026
31137
|
/* harmony default export */ var IconCopy = (IconCopy_IconComponent);
|
|
31027
|
-
// CONCATENATED MODULE:
|
|
31138
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconDoubleChevronLeft.js
|
|
31028
31139
|
|
|
31029
31140
|
|
|
31030
31141
|
|
|
@@ -31053,7 +31164,7 @@ function IconDoubleChevronLeft_SvgComponent(props) {
|
|
|
31053
31164
|
|
|
31054
31165
|
const IconDoubleChevronLeft_IconComponent = convertIcon(IconDoubleChevronLeft_SvgComponent, 'double_chevron_left');
|
|
31055
31166
|
/* harmony default export */ var IconDoubleChevronLeft = (IconDoubleChevronLeft_IconComponent);
|
|
31056
|
-
// CONCATENATED MODULE:
|
|
31167
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconDoubleChevronRight.js
|
|
31057
31168
|
|
|
31058
31169
|
|
|
31059
31170
|
|
|
@@ -31082,7 +31193,7 @@ function IconDoubleChevronRight_SvgComponent(props) {
|
|
|
31082
31193
|
|
|
31083
31194
|
const IconDoubleChevronRight_IconComponent = convertIcon(IconDoubleChevronRight_SvgComponent, 'double_chevron_right');
|
|
31084
31195
|
/* harmony default export */ var IconDoubleChevronRight = (IconDoubleChevronRight_IconComponent);
|
|
31085
|
-
// CONCATENATED MODULE:
|
|
31196
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconEyeClosedSolid.js
|
|
31086
31197
|
|
|
31087
31198
|
|
|
31088
31199
|
|
|
@@ -31109,7 +31220,7 @@ function IconEyeClosedSolid_SvgComponent(props) {
|
|
|
31109
31220
|
|
|
31110
31221
|
const IconEyeClosedSolid_IconComponent = convertIcon(IconEyeClosedSolid_SvgComponent, 'eye_closed_solid');
|
|
31111
31222
|
/* harmony default export */ var IconEyeClosedSolid = (IconEyeClosedSolid_IconComponent);
|
|
31112
|
-
// CONCATENATED MODULE:
|
|
31223
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconEyeOpened.js
|
|
31113
31224
|
|
|
31114
31225
|
|
|
31115
31226
|
|
|
@@ -31133,7 +31244,7 @@ function IconEyeOpened_SvgComponent(props) {
|
|
|
31133
31244
|
|
|
31134
31245
|
const IconEyeOpened_IconComponent = convertIcon(IconEyeOpened_SvgComponent, 'eye_opened');
|
|
31135
31246
|
/* harmony default export */ var IconEyeOpened = (IconEyeOpened_IconComponent);
|
|
31136
|
-
// CONCATENATED MODULE:
|
|
31247
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconFile.js
|
|
31137
31248
|
|
|
31138
31249
|
|
|
31139
31250
|
|
|
@@ -31157,7 +31268,7 @@ function IconFile_SvgComponent(props) {
|
|
|
31157
31268
|
|
|
31158
31269
|
const IconFile_IconComponent = convertIcon(IconFile_SvgComponent, 'file');
|
|
31159
31270
|
/* harmony default export */ var IconFile = (IconFile_IconComponent);
|
|
31160
|
-
// CONCATENATED MODULE:
|
|
31271
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconFilter.js
|
|
31161
31272
|
|
|
31162
31273
|
|
|
31163
31274
|
|
|
@@ -31181,7 +31292,7 @@ function IconFilter_SvgComponent(props) {
|
|
|
31181
31292
|
|
|
31182
31293
|
const IconFilter_IconComponent = convertIcon(IconFilter_SvgComponent, 'filter');
|
|
31183
31294
|
/* harmony default export */ var IconFilter = (IconFilter_IconComponent);
|
|
31184
|
-
// CONCATENATED MODULE:
|
|
31295
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconFolder.js
|
|
31185
31296
|
|
|
31186
31297
|
|
|
31187
31298
|
|
|
@@ -31206,7 +31317,7 @@ function IconFolder_SvgComponent(props) {
|
|
|
31206
31317
|
|
|
31207
31318
|
const IconFolder_IconComponent = convertIcon(IconFolder_SvgComponent, 'folder');
|
|
31208
31319
|
/* harmony default export */ var IconFolder = (IconFolder_IconComponent);
|
|
31209
|
-
// CONCATENATED MODULE:
|
|
31320
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconFolderOpen.js
|
|
31210
31321
|
|
|
31211
31322
|
|
|
31212
31323
|
|
|
@@ -31230,7 +31341,7 @@ function IconFolderOpen_SvgComponent(props) {
|
|
|
31230
31341
|
|
|
31231
31342
|
const IconFolderOpen_IconComponent = convertIcon(IconFolderOpen_SvgComponent, 'folder_open');
|
|
31232
31343
|
/* harmony default export */ var IconFolderOpen = (IconFolderOpen_IconComponent);
|
|
31233
|
-
// CONCATENATED MODULE:
|
|
31344
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconHandle.js
|
|
31234
31345
|
|
|
31235
31346
|
|
|
31236
31347
|
|
|
@@ -31267,7 +31378,7 @@ function IconHandle_SvgComponent(props) {
|
|
|
31267
31378
|
|
|
31268
31379
|
const IconHandle_IconComponent = convertIcon(IconHandle_SvgComponent, 'handle');
|
|
31269
31380
|
/* harmony default export */ var IconHandle = (IconHandle_IconComponent);
|
|
31270
|
-
// CONCATENATED MODULE:
|
|
31381
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconHelpCircle.js
|
|
31271
31382
|
|
|
31272
31383
|
|
|
31273
31384
|
|
|
@@ -31291,7 +31402,7 @@ function IconHelpCircle_SvgComponent(props) {
|
|
|
31291
31402
|
|
|
31292
31403
|
const IconHelpCircle_IconComponent = convertIcon(IconHelpCircle_SvgComponent, 'help_circle');
|
|
31293
31404
|
/* harmony default export */ var IconHelpCircle = (IconHelpCircle_IconComponent);
|
|
31294
|
-
// CONCATENATED MODULE:
|
|
31405
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconInfoCircle.js
|
|
31295
31406
|
|
|
31296
31407
|
|
|
31297
31408
|
|
|
@@ -31315,7 +31426,7 @@ function IconInfoCircle_SvgComponent(props) {
|
|
|
31315
31426
|
|
|
31316
31427
|
const IconInfoCircle_IconComponent = convertIcon(IconInfoCircle_SvgComponent, 'info_circle');
|
|
31317
31428
|
/* harmony default export */ var IconInfoCircle = (IconInfoCircle_IconComponent);
|
|
31318
|
-
// CONCATENATED MODULE:
|
|
31429
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconMore.js
|
|
31319
31430
|
|
|
31320
31431
|
|
|
31321
31432
|
|
|
@@ -31343,7 +31454,7 @@ function IconMore_SvgComponent(props) {
|
|
|
31343
31454
|
|
|
31344
31455
|
const IconMore_IconComponent = convertIcon(IconMore_SvgComponent, 'more');
|
|
31345
31456
|
/* harmony default export */ var IconMore = (IconMore_IconComponent);
|
|
31346
|
-
// CONCATENATED MODULE:
|
|
31457
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconRadio.js
|
|
31347
31458
|
|
|
31348
31459
|
|
|
31349
31460
|
|
|
@@ -31367,7 +31478,7 @@ function IconRadio_SvgComponent(props) {
|
|
|
31367
31478
|
|
|
31368
31479
|
const IconRadio_IconComponent = convertIcon(IconRadio_SvgComponent, 'radio');
|
|
31369
31480
|
/* harmony default export */ var IconRadio = (IconRadio_IconComponent);
|
|
31370
|
-
// CONCATENATED MODULE:
|
|
31481
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconRefresh.js
|
|
31371
31482
|
|
|
31372
31483
|
|
|
31373
31484
|
|
|
@@ -31391,7 +31502,7 @@ function IconRefresh_SvgComponent(props) {
|
|
|
31391
31502
|
|
|
31392
31503
|
const IconRefresh_IconComponent = convertIcon(IconRefresh_SvgComponent, 'refresh');
|
|
31393
31504
|
/* harmony default export */ var IconRefresh = (IconRefresh_IconComponent);
|
|
31394
|
-
// CONCATENATED MODULE:
|
|
31505
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconSearch.js
|
|
31395
31506
|
|
|
31396
31507
|
|
|
31397
31508
|
|
|
@@ -31415,7 +31526,7 @@ function IconSearch_SvgComponent(props) {
|
|
|
31415
31526
|
|
|
31416
31527
|
const IconSearch_IconComponent = convertIcon(IconSearch_SvgComponent, 'search');
|
|
31417
31528
|
/* harmony default export */ var IconSearch = (IconSearch_IconComponent);
|
|
31418
|
-
// CONCATENATED MODULE:
|
|
31529
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconSidebar.js
|
|
31419
31530
|
|
|
31420
31531
|
|
|
31421
31532
|
|
|
@@ -31439,7 +31550,7 @@ function IconSidebar_SvgComponent(props) {
|
|
|
31439
31550
|
|
|
31440
31551
|
const IconSidebar_IconComponent = convertIcon(IconSidebar_SvgComponent, 'sidebar');
|
|
31441
31552
|
/* harmony default export */ var IconSidebar = (IconSidebar_IconComponent);
|
|
31442
|
-
// CONCATENATED MODULE:
|
|
31553
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconStar.js
|
|
31443
31554
|
|
|
31444
31555
|
|
|
31445
31556
|
|
|
@@ -31461,7 +31572,7 @@ function IconStar_SvgComponent(props) {
|
|
|
31461
31572
|
|
|
31462
31573
|
const IconStar_IconComponent = convertIcon(IconStar_SvgComponent, 'star');
|
|
31463
31574
|
/* harmony default export */ var IconStar = (IconStar_IconComponent);
|
|
31464
|
-
// CONCATENATED MODULE:
|
|
31575
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconTick.js
|
|
31465
31576
|
|
|
31466
31577
|
|
|
31467
31578
|
|
|
@@ -31485,7 +31596,7 @@ function IconTick_SvgComponent(props) {
|
|
|
31485
31596
|
|
|
31486
31597
|
const IconTick_IconComponent = convertIcon(IconTick_SvgComponent, 'tick');
|
|
31487
31598
|
/* harmony default export */ var IconTick = (IconTick_IconComponent);
|
|
31488
|
-
// CONCATENATED MODULE:
|
|
31599
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconTickCircle.js
|
|
31489
31600
|
|
|
31490
31601
|
|
|
31491
31602
|
|
|
@@ -31509,7 +31620,7 @@ function IconTickCircle_SvgComponent(props) {
|
|
|
31509
31620
|
|
|
31510
31621
|
const IconTickCircle_IconComponent = convertIcon(IconTickCircle_SvgComponent, 'tick_circle');
|
|
31511
31622
|
/* harmony default export */ var IconTickCircle = (IconTickCircle_IconComponent);
|
|
31512
|
-
// CONCATENATED MODULE:
|
|
31623
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconTreeTriangleDown.js
|
|
31513
31624
|
|
|
31514
31625
|
|
|
31515
31626
|
|
|
@@ -31531,7 +31642,7 @@ function IconTreeTriangleDown_SvgComponent(props) {
|
|
|
31531
31642
|
|
|
31532
31643
|
const IconTreeTriangleDown_IconComponent = convertIcon(IconTreeTriangleDown_SvgComponent, 'tree_triangle_down');
|
|
31533
31644
|
/* harmony default export */ var IconTreeTriangleDown = (IconTreeTriangleDown_IconComponent);
|
|
31534
|
-
// CONCATENATED MODULE:
|
|
31645
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconTreeTriangleRight.js
|
|
31535
31646
|
|
|
31536
31647
|
|
|
31537
31648
|
|
|
@@ -31553,7 +31664,7 @@ function IconTreeTriangleRight_SvgComponent(props) {
|
|
|
31553
31664
|
|
|
31554
31665
|
const IconTreeTriangleRight_IconComponent = convertIcon(IconTreeTriangleRight_SvgComponent, 'tree_triangle_right');
|
|
31555
31666
|
/* harmony default export */ var IconTreeTriangleRight = (IconTreeTriangleRight_IconComponent);
|
|
31556
|
-
// CONCATENATED MODULE:
|
|
31667
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconUpload.js
|
|
31557
31668
|
|
|
31558
31669
|
|
|
31559
31670
|
|
|
@@ -31577,7 +31688,7 @@ function IconUpload_SvgComponent(props) {
|
|
|
31577
31688
|
|
|
31578
31689
|
const IconUpload_IconComponent = convertIcon(IconUpload_SvgComponent, 'upload');
|
|
31579
31690
|
/* harmony default export */ var IconUpload = (IconUpload_IconComponent);
|
|
31580
|
-
// CONCATENATED MODULE:
|
|
31691
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/icons/index.js
|
|
31581
31692
|
|
|
31582
31693
|
|
|
31583
31694
|
|
|
@@ -32015,7 +32126,7 @@ const IconUpload_IconComponent = convertIcon(IconUpload_SvgComponent, 'upload');
|
|
|
32015
32126
|
|
|
32016
32127
|
|
|
32017
32128
|
|
|
32018
|
-
// CONCATENATED MODULE:
|
|
32129
|
+
// CONCATENATED MODULE: ../semi-icons/lib/es/index.js
|
|
32019
32130
|
|
|
32020
32131
|
|
|
32021
32132
|
|
|
@@ -45366,12 +45477,10 @@ var set_interval_default = /*#__PURE__*/__webpack_require__.n(set_interval);
|
|
|
45366
45477
|
|
|
45367
45478
|
|
|
45368
45479
|
|
|
45369
|
-
|
|
45370
45480
|
class foundation_CarouselFoundation extends foundation {
|
|
45371
45481
|
constructor(adapter) {
|
|
45372
45482
|
super(assign_default()({}, adapter));
|
|
45373
45483
|
this._interval = null;
|
|
45374
|
-
this.throttleChange = throttle_default()(this.onIndicatorChange, this.getSwitchingTime());
|
|
45375
45484
|
}
|
|
45376
45485
|
|
|
45377
45486
|
play(interval) {
|
|
@@ -45704,7 +45813,6 @@ CarouselIndicator_CarouselIndicator.propTypes = {
|
|
|
45704
45813
|
|
|
45705
45814
|
|
|
45706
45815
|
|
|
45707
|
-
|
|
45708
45816
|
/* eslint-disable jsx-a11y/click-events-have-key-events */
|
|
45709
45817
|
|
|
45710
45818
|
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
@@ -45739,8 +45847,7 @@ class CarouselArrow_CarouselArrow extends external_root_React_commonjs2_react_co
|
|
|
45739
45847
|
type,
|
|
45740
45848
|
theme,
|
|
45741
45849
|
prev,
|
|
45742
|
-
next
|
|
45743
|
-
timing
|
|
45850
|
+
next
|
|
45744
45851
|
} = this.props;
|
|
45745
45852
|
const classNames = classnames_default()({
|
|
45746
45853
|
[carousel_constants_cssClasses.CAROUSEL_ARROW]: true,
|
|
@@ -45760,12 +45867,12 @@ class CarouselArrow_CarouselArrow extends external_root_React_commonjs2_react_co
|
|
|
45760
45867
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", assign_default()({
|
|
45761
45868
|
// role='button'
|
|
45762
45869
|
className: leftClassNames,
|
|
45763
|
-
onClick:
|
|
45870
|
+
onClick: prev
|
|
45764
45871
|
}, get_default()(this.props, 'arrowProps.leftArrow.props')), this.renderLeftIcon()), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", assign_default()({
|
|
45765
45872
|
// role='button'
|
|
45766
45873
|
// tabIndex={0}
|
|
45767
45874
|
className: rightClassNames,
|
|
45768
|
-
onClick:
|
|
45875
|
+
onClick: next
|
|
45769
45876
|
}, get_default()(this.props, 'arrowProps.rightArrow.props')), this.renderRightIcon()));
|
|
45770
45877
|
}
|
|
45771
45878
|
|
|
@@ -45845,7 +45952,7 @@ class carousel_Carousel extends baseComponent_BaseComponent {
|
|
|
45845
45952
|
};
|
|
45846
45953
|
|
|
45847
45954
|
this.onIndicatorChange = activeIndex => {
|
|
45848
|
-
return this.foundation.
|
|
45955
|
+
return this.foundation.onIndicatorChange(activeIndex);
|
|
45849
45956
|
};
|
|
45850
45957
|
|
|
45851
45958
|
this.getChildren = () => {
|
|
@@ -45944,7 +46051,6 @@ class carousel_Carousel extends baseComponent_BaseComponent {
|
|
|
45944
46051
|
theme,
|
|
45945
46052
|
arrowProps
|
|
45946
46053
|
} = this.props;
|
|
45947
|
-
const timing = this.foundation.getSwitchingTime();
|
|
45948
46054
|
|
|
45949
46055
|
if (showArrow && children.length > 1) {
|
|
45950
46056
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(carousel_CarouselArrow, {
|
|
@@ -45952,7 +46058,6 @@ class carousel_Carousel extends baseComponent_BaseComponent {
|
|
|
45952
46058
|
theme: theme,
|
|
45953
46059
|
prev: this.prev,
|
|
45954
46060
|
next: this.next,
|
|
45955
|
-
timing: timing,
|
|
45956
46061
|
arrowProps: arrowProps
|
|
45957
46062
|
});
|
|
45958
46063
|
}
|
|
@@ -46236,13 +46341,13 @@ function convertJsonToData(treeJson) {
|
|
|
46236
46341
|
if (isObject_default()(children)) {
|
|
46237
46342
|
var _context2;
|
|
46238
46343
|
|
|
46239
|
-
const
|
|
46344
|
+
const newChildren = [];
|
|
46240
46345
|
|
|
46241
46346
|
for_each_default()(_context2 = object_entries_default()(children)).call(_context2, c => {
|
|
46242
|
-
traverseNode(c[0], c[1], currPath,
|
|
46347
|
+
traverseNode(c[0], c[1], currPath, newChildren);
|
|
46243
46348
|
});
|
|
46244
46349
|
|
|
46245
|
-
newNode.children =
|
|
46350
|
+
newNode.children = newChildren;
|
|
46246
46351
|
}
|
|
46247
46352
|
|
|
46248
46353
|
res.push(newNode);
|
|
@@ -46518,8 +46623,8 @@ function calcCheckedKeys(values, keyEntities) {
|
|
|
46518
46623
|
const allChecked = every_default()(siblingKeys).call(siblingKeys, siblingKey => checkedKeys.has(siblingKey));
|
|
46519
46624
|
|
|
46520
46625
|
if (!allChecked) {
|
|
46521
|
-
const
|
|
46522
|
-
halfCheckedKeys = new set_default.a([...halfCheckedKeys, ...
|
|
46626
|
+
const ancestorKeys = findAncestorKeys([key], keyEntities, false);
|
|
46627
|
+
halfCheckedKeys = new set_default.a([...halfCheckedKeys, ...ancestorKeys]);
|
|
46523
46628
|
} else {
|
|
46524
46629
|
checkedKeys.add(parent.key); // IMPORTANT! parent level may not exist in original level map; if add to the end directly may destroy the hierarchical order
|
|
46525
46630
|
|
|
@@ -46559,8 +46664,8 @@ function calcExpandedKeys() {
|
|
|
46559
46664
|
}
|
|
46560
46665
|
|
|
46561
46666
|
if (autoExpandParent) {
|
|
46562
|
-
const
|
|
46563
|
-
return new set_default.a(
|
|
46667
|
+
const ancestorKeys = findAncestorKeys(keyList, keyEntities, true);
|
|
46668
|
+
return new set_default.a(ancestorKeys);
|
|
46564
46669
|
}
|
|
46565
46670
|
|
|
46566
46671
|
return new set_default.a(keyList);
|
|
@@ -46705,8 +46810,8 @@ function calcCheckedKeysForChecked(key, keyEntities, checkedKeys, halfCheckedKey
|
|
|
46705
46810
|
const allChecked = every_default()(siblingKeys).call(siblingKeys, key => checkedKeys.has(key));
|
|
46706
46811
|
|
|
46707
46812
|
if (!allChecked) {
|
|
46708
|
-
const
|
|
46709
|
-
halfCheckedKeys = new set_default.a([...halfCheckedKeys, ...
|
|
46813
|
+
const ancestorKeys = findAncestorKeys([key], keyEntities, false);
|
|
46814
|
+
halfCheckedKeys = new set_default.a([...halfCheckedKeys, ...ancestorKeys]);
|
|
46710
46815
|
} else {
|
|
46711
46816
|
const par = node.parent;
|
|
46712
46817
|
checkedKeys.add(par.key);
|
|
@@ -46756,10 +46861,10 @@ function calcCheckedKeysForUnchecked(key, keyEntities, checkedKeys, halfCheckedK
|
|
|
46756
46861
|
|
|
46757
46862
|
const anyChecked = some_default()(siblingKeys).call(siblingKeys, key => checkedKeys.has(key) || halfCheckedKeys.has(key));
|
|
46758
46863
|
|
|
46759
|
-
const
|
|
46864
|
+
const ancestorKeys = findAncestorKeys([key], keyEntities, false); // If there is checked or halfChecked in the sibling node, you need to change the parent node to halfChecked
|
|
46760
46865
|
|
|
46761
46866
|
if (anyChecked) {
|
|
46762
|
-
for_each_default()(
|
|
46867
|
+
for_each_default()(ancestorKeys).call(ancestorKeys, itemKey => {
|
|
46763
46868
|
if (checkedKeys.has(itemKey)) {
|
|
46764
46869
|
checkedKeys.delete(itemKey);
|
|
46765
46870
|
halfCheckedKeys.add(itemKey);
|
|
@@ -47306,7 +47411,7 @@ class foundation_CascaderFoundation extends foundation {
|
|
|
47306
47411
|
activeKeys,
|
|
47307
47412
|
loadingKeys,
|
|
47308
47413
|
loading,
|
|
47309
|
-
keyEntities:
|
|
47414
|
+
keyEntities: keyEntityState,
|
|
47310
47415
|
selectedKeys: selectedKeysState
|
|
47311
47416
|
} = this.getStates();
|
|
47312
47417
|
|
|
@@ -47377,7 +47482,7 @@ class foundation_CascaderFoundation extends foundation {
|
|
|
47377
47482
|
} else if (loading) {
|
|
47378
47483
|
// Use assign to avoid overwriting the'not-exist- * 'property of keyEntities after asynchronous loading
|
|
47379
47484
|
// Overwriting'not-exist- * 'will cause selectionContent to be emptied unexpectedly when clicking on a dropDown item
|
|
47380
|
-
updateStates.keyEntities = lodash_assign_default()(
|
|
47485
|
+
updateStates.keyEntities = lodash_assign_default()(keyEntityState, keyEntities);
|
|
47381
47486
|
|
|
47382
47487
|
this._adapter.updateStates(updateStates);
|
|
47383
47488
|
|
|
@@ -47731,12 +47836,12 @@ class foundation_CascaderFoundation extends foundation {
|
|
|
47731
47836
|
|
|
47732
47837
|
const prevCheckedStatus = checkedKeys.has(key); // next checked status
|
|
47733
47838
|
|
|
47734
|
-
const curCheckedStatus = disableStrictly ? this.
|
|
47839
|
+
const curCheckedStatus = disableStrictly ? this.calcCheckedStatus(!prevCheckedStatus, key) : !prevCheckedStatus; // calculate all key of nodes that are checked or half checked
|
|
47735
47840
|
|
|
47736
47841
|
const {
|
|
47737
47842
|
checkedKeys: curCheckedKeys,
|
|
47738
47843
|
halfCheckedKeys: curHalfCheckedKeys
|
|
47739
|
-
} = disableStrictly ? this.
|
|
47844
|
+
} = disableStrictly ? this.calcNonDisabledCheckedKeys(key, curCheckedStatus) : this.calcCheckedKeys(key, curCheckedStatus);
|
|
47740
47845
|
const mergeType = calcMergeType(autoMergeValue, leafOnly);
|
|
47741
47846
|
const isLeafOnlyMerge = mergeType === cascader_constants_strings.LEAF_ONLY_MERGE_TYPE;
|
|
47742
47847
|
const isNoneMerge = mergeType === cascader_constants_strings.NONE_MERGE_TYPE;
|
|
@@ -47794,7 +47899,7 @@ class foundation_CascaderFoundation extends foundation {
|
|
|
47794
47899
|
});
|
|
47795
47900
|
}
|
|
47796
47901
|
|
|
47797
|
-
|
|
47902
|
+
calcNonDisabledCheckedKeys(eventKey, targetStatus) {
|
|
47798
47903
|
const {
|
|
47799
47904
|
keyEntities,
|
|
47800
47905
|
disabledKeys
|
|
@@ -47816,7 +47921,7 @@ class foundation_CascaderFoundation extends foundation {
|
|
|
47816
47921
|
return calcCheckedKeys(newCheckedKeys, keyEntities);
|
|
47817
47922
|
}
|
|
47818
47923
|
|
|
47819
|
-
|
|
47924
|
+
calcCheckedStatus(targetStatus, eventKey) {
|
|
47820
47925
|
if (!targetStatus) {
|
|
47821
47926
|
return targetStatus;
|
|
47822
47927
|
}
|
|
@@ -48543,12 +48648,12 @@ checkbox_Checkbox.defaultProps = {
|
|
|
48543
48648
|
|
|
48544
48649
|
|
|
48545
48650
|
class checkboxGroupFoundation_CheckboxGroupFoundation extends foundation {
|
|
48546
|
-
static get
|
|
48651
|
+
static get checkboxGroupDefaultAdapter() {
|
|
48547
48652
|
return {};
|
|
48548
48653
|
}
|
|
48549
48654
|
|
|
48550
48655
|
constructor(adapter) {
|
|
48551
|
-
super(assign_default()(assign_default()({}, checkboxGroupFoundation_CheckboxGroupFoundation.
|
|
48656
|
+
super(assign_default()(assign_default()({}, checkboxGroupFoundation_CheckboxGroupFoundation.checkboxGroupDefaultAdapter), adapter));
|
|
48552
48657
|
}
|
|
48553
48658
|
|
|
48554
48659
|
init() {
|
|
@@ -51725,8 +51830,8 @@ function isEmptyObject(target) {
|
|
|
51725
51830
|
* }
|
|
51726
51831
|
* the result of JSON.stringify(a/b/d) are same: '{}'
|
|
51727
51832
|
* We can use the above features to remove keys with empty values in Form
|
|
51728
|
-
* But we cannot use JSON.stringify() directly, because if the input parameter of JSON.stringify includes fiberNode, it will cause an TypeError: '
|
|
51729
|
-
* So we have to mock it's
|
|
51833
|
+
* But we cannot use JSON.stringify() directly, because if the input parameter of JSON.stringify includes fiberNode, it will cause an TypeError: 'Converting circular structure to JSON'
|
|
51834
|
+
* So we have to mock it's behavior, also, the form value cannot have Symbol or function type, it can be ignored
|
|
51730
51835
|
*/
|
|
51731
51836
|
if (!isObject_default()(target)) {
|
|
51732
51837
|
return false;
|
|
@@ -55998,7 +56103,7 @@ function parseISO_validateTimezone(_hours, minutes) {
|
|
|
55998
56103
|
* Parsing value to Date object
|
|
55999
56104
|
*/
|
|
56000
56105
|
|
|
56001
|
-
function
|
|
56106
|
+
function compatibleParse(value, formatToken, baseDate, locale) {
|
|
56002
56107
|
let result = null;
|
|
56003
56108
|
|
|
56004
56109
|
if (value) {
|
|
@@ -56348,7 +56453,7 @@ class foundation_DatePickerFoundation extends foundation {
|
|
|
56348
56453
|
if (isValidDate(value)) {
|
|
56349
56454
|
dateObj = value;
|
|
56350
56455
|
} else if (isString_default()(value)) {
|
|
56351
|
-
dateObj =
|
|
56456
|
+
dateObj = compatibleParse(value, this.getProp('format'), undefined, dateFnsLocale);
|
|
56352
56457
|
} else if (isTimestamp(value)) {
|
|
56353
56458
|
dateObj = new Date(value);
|
|
56354
56459
|
} else {
|
|
@@ -56726,7 +56831,7 @@ class foundation_DatePickerFoundation extends foundation {
|
|
|
56726
56831
|
case 'date':
|
|
56727
56832
|
case 'dateTime':
|
|
56728
56833
|
case 'month':
|
|
56729
|
-
parsedResult = input ?
|
|
56834
|
+
parsedResult = input ? compatibleParse(input, formatToken, nowDate, dateFnsLocale) : '';
|
|
56730
56835
|
formatedInput = parsedResult && isValid(parsedResult) && this.localeFormat(parsedResult, formatToken);
|
|
56731
56836
|
|
|
56732
56837
|
if (parsedResult && formatedInput === input) {
|
|
@@ -56740,7 +56845,7 @@ class foundation_DatePickerFoundation extends foundation {
|
|
|
56740
56845
|
const separator = rangeSeparator;
|
|
56741
56846
|
const values = input.split(separator);
|
|
56742
56847
|
parsedResult = values && reduce_default()(values).call(values, (arr, cur) => {
|
|
56743
|
-
const parsedVal = cur &&
|
|
56848
|
+
const parsedVal = cur && compatibleParse(cur, formatToken, nowDate, dateFnsLocale);
|
|
56744
56849
|
parsedVal && arr.push(parsedVal);
|
|
56745
56850
|
return arr;
|
|
56746
56851
|
}, []);
|
|
@@ -58917,7 +59022,7 @@ class monthsGridFoundation_MonthsGridFoundation extends foundation {
|
|
|
58917
59022
|
}
|
|
58918
59023
|
|
|
58919
59024
|
initDefaultPickerValue() {
|
|
58920
|
-
const defaultPickerValue =
|
|
59025
|
+
const defaultPickerValue = compatibleParse(this.getProp('defaultPickerValue'));
|
|
58921
59026
|
|
|
58922
59027
|
if (defaultPickerValue && isValidDate(defaultPickerValue)) {
|
|
58923
59028
|
this._updatePanelDetail(datePicker_constants_strings.PANEL_TYPE_LEFT, {
|
|
@@ -59532,7 +59637,7 @@ class monthsGridFoundation_MonthsGridFoundation extends foundation {
|
|
|
59532
59637
|
|
|
59533
59638
|
const dateFormat = this.getValidDateFormat(); // When passed to the upper layer, it is converted into a Date object to ensure that the input parameter format of initFormDefaultValue is consistent
|
|
59534
59639
|
|
|
59535
|
-
const newSelectedDates = map_default()(_context4 = [...newSelected]).call(_context4, _dateStr =>
|
|
59640
|
+
const newSelectedDates = map_default()(_context4 = [...newSelected]).call(_context4, _dateStr => compatibleParse(_dateStr, dateFormat, undefined, dateFnsLocale));
|
|
59536
59641
|
|
|
59537
59642
|
this.handleShowDateAndTime(panelType, time);
|
|
59538
59643
|
|
|
@@ -59567,10 +59672,10 @@ class monthsGridFoundation_MonthsGridFoundation extends foundation {
|
|
|
59567
59672
|
|
|
59568
59673
|
const dateFnsLocale = this._adapter.getProp('dateFnsLocale');
|
|
59569
59674
|
|
|
59570
|
-
const dateStr = format_format(isValidDate(date) ? date :
|
|
59571
|
-
const timeStr = format_format(isValidDate(time) ? time :
|
|
59675
|
+
const dateStr = format_format(isValidDate(date) ? date : compatibleParse(date, datePicker_constants_strings.FORMAT_FULL_DATE, undefined, dateFnsLocale), datePicker_constants_strings.FORMAT_FULL_DATE);
|
|
59676
|
+
const timeStr = format_format(isValidDate(time) ? time : compatibleParse(time, datePicker_constants_strings.FORMAT_TIME_PICKER, undefined, dateFnsLocale), datePicker_constants_strings.FORMAT_TIME_PICKER);
|
|
59572
59677
|
const timeFormat = this.getValidTimeFormat();
|
|
59573
|
-
return
|
|
59678
|
+
return compatibleParse(concat_default()(_context5 = "".concat(dateStr, " ")).call(_context5, timeStr), timeFormat, undefined, dateFnsLocale);
|
|
59574
59679
|
}
|
|
59575
59680
|
|
|
59576
59681
|
handleRangeSelected(day) {
|
|
@@ -59653,7 +59758,7 @@ class monthsGridFoundation_MonthsGridFoundation extends foundation {
|
|
|
59653
59758
|
const dateFormat = this.getValidDateFormat(); // only notify when choose completed
|
|
59654
59759
|
|
|
59655
59760
|
if (rangeStart || rangeEnd) {
|
|
59656
|
-
const [startDate, endDate] = [
|
|
59761
|
+
const [startDate, endDate] = [compatibleParse(rangeStart, dateFormat, undefined, dateFnsLocale), compatibleParse(rangeEnd, dateFormat, undefined, dateFnsLocale)];
|
|
59657
59762
|
let date = [startDate, endDate]; // If the type is dateRangeTime, add the value of time
|
|
59658
59763
|
|
|
59659
59764
|
if (type === 'dateTimeRange') {
|
|
@@ -59790,7 +59895,7 @@ class monthsGridFoundation_MonthsGridFoundation extends foundation {
|
|
|
59790
59895
|
// } else
|
|
59791
59896
|
|
|
59792
59897
|
if (type === 'dateTimeRange' && destRange) {
|
|
59793
|
-
const rangeDate =
|
|
59898
|
+
const rangeDate = compatibleParse(destRange, dateFormat, undefined, dateFnsLocale);
|
|
59794
59899
|
year = rangeDate.getFullYear();
|
|
59795
59900
|
monthNo = rangeDate.getMonth();
|
|
59796
59901
|
date = rangeDate.getDate();
|
|
@@ -59839,8 +59944,8 @@ class monthsGridFoundation_MonthsGridFoundation extends foundation {
|
|
|
59839
59944
|
const dateFormat = this.getValidDateFormat(); // TODO: Modify a time individually
|
|
59840
59945
|
|
|
59841
59946
|
if (rangeStart && rangeEnd) {
|
|
59842
|
-
let startDate =
|
|
59843
|
-
let endDate =
|
|
59947
|
+
let startDate = compatibleParse(rangeStart, dateFormat, undefined, dateFnsLocale);
|
|
59948
|
+
let endDate = compatibleParse(rangeEnd, dateFormat, undefined, dateFnsLocale); // console.log('_updateTimeInDateRange()', rangeStart, rangeEnd, startDate, endDate);
|
|
59844
59949
|
|
|
59845
59950
|
if (panelType === datePicker_constants_strings.PANEL_TYPE_RIGHT) {
|
|
59846
59951
|
endDate = this._mergeDateAndTime(timeDate, timeDate);
|
|
@@ -60822,7 +60927,7 @@ const timePicker_constants_strings = {
|
|
|
60822
60927
|
DEFAULT_MULTIPLE_SEPARATOR,
|
|
60823
60928
|
SIZE: input_constants_strings.SIZE,
|
|
60824
60929
|
DEFAULT_FORMAT: 'HH:mm:ss',
|
|
60825
|
-
|
|
60930
|
+
DEFAULT_FORMAT_A: 'a h:mm:ss',
|
|
60826
60931
|
STATUS: VALIDATE_STATUS,
|
|
60827
60932
|
DEFAULT_POSITION: {
|
|
60828
60933
|
[TYPE_TIME_PICKER]: 'bottomLeft',
|
|
@@ -61915,7 +62020,7 @@ class ComboxFoundation_ComboboxFoundation extends foundation {
|
|
|
61915
62020
|
if (this._isInProps('format')) {
|
|
61916
62021
|
return this.getProp('format');
|
|
61917
62022
|
} else if (this.getProp('use12Hours')) {
|
|
61918
|
-
return timePicker_constants_strings.
|
|
62023
|
+
return timePicker_constants_strings.DEFAULT_FORMAT_A;
|
|
61919
62024
|
} else {
|
|
61920
62025
|
return timePicker_constants_strings.DEFAULT_FORMAT;
|
|
61921
62026
|
}
|
|
@@ -62306,7 +62411,7 @@ var fill_default = /*#__PURE__*/__webpack_require__.n(fill);
|
|
|
62306
62411
|
// CONCATENATED MODULE: ../semi-foundation/datePicker/yearAndMonthFoundation.ts
|
|
62307
62412
|
|
|
62308
62413
|
|
|
62309
|
-
class
|
|
62414
|
+
class yearAndMonthFoundation_YearAndMonthFoundation extends foundation {
|
|
62310
62415
|
constructor(adapter) {
|
|
62311
62416
|
super(assign_default()({}, adapter));
|
|
62312
62417
|
} // eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
@@ -62468,7 +62573,7 @@ class yearAndMonth_YearAndMonth extends baseComponent_BaseComponent {
|
|
|
62468
62573
|
};
|
|
62469
62574
|
this.yearRef = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createRef();
|
|
62470
62575
|
this.monthRef = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createRef();
|
|
62471
|
-
this.foundation = new
|
|
62576
|
+
this.foundation = new yearAndMonthFoundation_YearAndMonthFoundation(this.adapter);
|
|
62472
62577
|
}
|
|
62473
62578
|
|
|
62474
62579
|
get adapter() {
|
|
@@ -62674,7 +62779,7 @@ function getDefaultPickerDate(options) {
|
|
|
62674
62779
|
break;
|
|
62675
62780
|
|
|
62676
62781
|
case typeof nowDate === 'string':
|
|
62677
|
-
nowDate =
|
|
62782
|
+
nowDate = compatibleParse(nowDate, format, undefined, dateFnsLocale);
|
|
62678
62783
|
break;
|
|
62679
62784
|
|
|
62680
62785
|
default:
|
|
@@ -62691,7 +62796,7 @@ function getDefaultPickerDate(options) {
|
|
|
62691
62796
|
break;
|
|
62692
62797
|
|
|
62693
62798
|
case typeof nextDate === 'string':
|
|
62694
|
-
nextDate =
|
|
62799
|
+
nextDate = compatibleParse(nextDate, format, undefined, dateFnsLocale);
|
|
62695
62800
|
break;
|
|
62696
62801
|
|
|
62697
62802
|
default:
|
|
@@ -63181,7 +63286,7 @@ class monthsGrid_MonthsGrid extends baseComponent_BaseComponent {
|
|
|
63181
63286
|
const dateFormat = this.foundation.getValidDateFormat();
|
|
63182
63287
|
let startDate, endDate;
|
|
63183
63288
|
|
|
63184
|
-
if (type === 'dateTimeRange' && rangeStart && rangeEnd && isSameDay(startDate =
|
|
63289
|
+
if (type === 'dateTimeRange' && rangeStart && rangeEnd && isSameDay(startDate = compatibleParse(rangeStart, dateFormat, undefined, dateFnsLocale), endDate = compatibleParse(rangeEnd, dateFormat, undefined, dateFnsLocale))) {
|
|
63185
63290
|
if (panelType === datePicker_constants_strings.PANEL_TYPE_RIGHT) {
|
|
63186
63291
|
rangeStart && (restProps.startDate = startDate);
|
|
63187
63292
|
} else {
|
|
@@ -63267,10 +63372,10 @@ class monthsGrid_MonthsGrid extends baseComponent_BaseComponent {
|
|
|
63267
63372
|
|
|
63268
63373
|
if (panelType === datePicker_constants_strings.PANEL_TYPE_LEFT) {
|
|
63269
63374
|
panelDetail = monthLeft;
|
|
63270
|
-
dateText = rangeStart ? format_format(
|
|
63375
|
+
dateText = rangeStart ? format_format(compatibleParse(rangeStart, dateFormat, undefined, dateFnsLocale), FORMAT_SWITCH_DATE) : '';
|
|
63271
63376
|
} else {
|
|
63272
63377
|
panelDetail = monthRight;
|
|
63273
|
-
dateText = rangeEnd ? format_format(
|
|
63378
|
+
dateText = rangeEnd ? format_format(compatibleParse(rangeEnd, dateFormat, undefined, dateFnsLocale), FORMAT_SWITCH_DATE) : '';
|
|
63274
63379
|
}
|
|
63275
63380
|
|
|
63276
63381
|
const {
|
|
@@ -63280,7 +63385,7 @@ class monthsGrid_MonthsGrid extends baseComponent_BaseComponent {
|
|
|
63280
63385
|
const monthText = showDate ? format_format(showDate, FORMAT_SWITCH_DATE) : '';
|
|
63281
63386
|
const timeText = showDate ? format_format(showDate, formatTimePicker) : '';
|
|
63282
63387
|
|
|
63283
|
-
const
|
|
63388
|
+
const showSwitchIcon = includes_default()(_context3 = ['default']).call(_context3, density);
|
|
63284
63389
|
|
|
63285
63390
|
const switchCls = classnames_default()("".concat(monthsGrid_prefixCls, "-switch"));
|
|
63286
63391
|
const dateCls = classnames_default()({
|
|
@@ -63301,7 +63406,7 @@ class monthsGrid_MonthsGrid extends baseComponent_BaseComponent {
|
|
|
63301
63406
|
"aria-label": "Switch to date panel",
|
|
63302
63407
|
className: dateCls,
|
|
63303
63408
|
onClick: e => this.foundation.showDatePanel(panelType)
|
|
63304
|
-
},
|
|
63409
|
+
}, showSwitchIcon && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconCalendar, {
|
|
63305
63410
|
"aria-hidden": true
|
|
63306
63411
|
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
|
|
63307
63412
|
className: textCls
|
|
@@ -63310,7 +63415,7 @@ class monthsGrid_MonthsGrid extends baseComponent_BaseComponent {
|
|
|
63310
63415
|
"aria-label": "Switch to time panel",
|
|
63311
63416
|
className: timeCls,
|
|
63312
63417
|
onClick: e => this.foundation.showTimePicker(panelType, true)
|
|
63313
|
-
},
|
|
63418
|
+
}, showSwitchIcon && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconClock, {
|
|
63314
63419
|
"aria-hidden": true
|
|
63315
63420
|
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
|
|
63316
63421
|
className: textCls
|
|
@@ -68449,6 +68554,10 @@ var toString_default = /*#__PURE__*/__webpack_require__.n(lodash_toString);
|
|
|
68449
68554
|
var toNumber = __webpack_require__("nvU9");
|
|
68450
68555
|
var toNumber_default = /*#__PURE__*/__webpack_require__.n(toNumber);
|
|
68451
68556
|
|
|
68557
|
+
// EXTERNAL MODULE: /home/runner/work/semi-design/semi-design/node_modules/@babel/runtime-corejs3/core-js-stable/number/is-nan.js
|
|
68558
|
+
var is_nan = __webpack_require__("gobS");
|
|
68559
|
+
var is_nan_default = /*#__PURE__*/__webpack_require__.n(is_nan);
|
|
68560
|
+
|
|
68452
68561
|
// CONCATENATED MODULE: ../semi-foundation/inputNumber/constants.ts
|
|
68453
68562
|
|
|
68454
68563
|
|
|
@@ -68495,6 +68604,8 @@ function minus(num1, num2) {
|
|
|
68495
68604
|
|
|
68496
68605
|
|
|
68497
68606
|
|
|
68607
|
+
|
|
68608
|
+
|
|
68498
68609
|
/* eslint-disable max-len */
|
|
68499
68610
|
|
|
68500
68611
|
/* eslint-disable no-param-reassign */
|
|
@@ -68695,9 +68806,9 @@ class foundation_InputNumberFoundation extends foundation {
|
|
|
68695
68806
|
|
|
68696
68807
|
this._adapter.recordCursorPosition();
|
|
68697
68808
|
|
|
68698
|
-
const
|
|
68809
|
+
const formattedVal = code === utils_keyCode.UP ? this.add() : this.minus();
|
|
68699
68810
|
|
|
68700
|
-
this._doInput(
|
|
68811
|
+
this._doInput(formattedVal, event, () => {
|
|
68701
68812
|
this._adapter.restoreCursor();
|
|
68702
68813
|
});
|
|
68703
68814
|
|
|
@@ -68871,18 +68982,22 @@ class foundation_InputNumberFoundation extends foundation {
|
|
|
68871
68982
|
value
|
|
68872
68983
|
} = this.getProps();
|
|
68873
68984
|
const propsValue = this._isControlledComponent('value') ? value : defaultValue;
|
|
68874
|
-
const
|
|
68985
|
+
const tmpNumber = this.doParse(toString_default()(propsValue), false, true, true);
|
|
68875
68986
|
let number = null;
|
|
68876
68987
|
|
|
68877
|
-
if (typeof
|
|
68878
|
-
number =
|
|
68988
|
+
if (typeof tmpNumber === 'number' && !isNaN(tmpNumber)) {
|
|
68989
|
+
number = tmpNumber;
|
|
68879
68990
|
}
|
|
68880
68991
|
|
|
68881
|
-
const
|
|
68992
|
+
const formattedValue = typeof number === 'number' ? this.doFormat(number, true) : '';
|
|
68882
68993
|
|
|
68883
68994
|
this._adapter.setNumber(number);
|
|
68884
68995
|
|
|
68885
|
-
this._adapter.setValue(
|
|
68996
|
+
this._adapter.setValue(formattedValue);
|
|
68997
|
+
|
|
68998
|
+
if (isString_default()(formattedValue) && formattedValue !== String(propsValue)) {
|
|
68999
|
+
this.notifyChange(formattedValue, null);
|
|
69000
|
+
}
|
|
68886
69001
|
}
|
|
68887
69002
|
|
|
68888
69003
|
add(step, event) {
|
|
@@ -68953,7 +69068,7 @@ class foundation_InputNumberFoundation extends foundation {
|
|
|
68953
69068
|
_adjustPrec(num) {
|
|
68954
69069
|
const precision = this.getProp('precision');
|
|
68955
69070
|
|
|
68956
|
-
if (typeof precision === 'number' && num !== '') {
|
|
69071
|
+
if (typeof precision === 'number' && num !== '' && num !== null && !is_nan_default()(Number(num))) {
|
|
68957
69072
|
num = Number(num).toFixed(precision);
|
|
68958
69073
|
}
|
|
68959
69074
|
|
|
@@ -69171,6 +69286,10 @@ class foundation_InputNumberFoundation extends foundation {
|
|
|
69171
69286
|
}
|
|
69172
69287
|
}
|
|
69173
69288
|
|
|
69289
|
+
updateStates(states, callback) {
|
|
69290
|
+
this._adapter.updateStates(states, callback);
|
|
69291
|
+
}
|
|
69292
|
+
|
|
69174
69293
|
}
|
|
69175
69294
|
|
|
69176
69295
|
/* harmony default export */ var inputNumber_foundation = (foundation_InputNumberFoundation);
|
|
@@ -69187,6 +69306,7 @@ var inputNumber = __webpack_require__("KwJG");
|
|
|
69187
69306
|
|
|
69188
69307
|
|
|
69189
69308
|
|
|
69309
|
+
|
|
69190
69310
|
var inputNumber_rest = undefined && undefined.__rest || function (s, e) {
|
|
69191
69311
|
var t = {};
|
|
69192
69312
|
|
|
@@ -69451,6 +69571,9 @@ class inputNumber_InputNumber extends baseComponent_BaseComponent {
|
|
|
69451
69571
|
},
|
|
69452
69572
|
setClickUpOrDown: value => {
|
|
69453
69573
|
this.clickUpOrDown = value;
|
|
69574
|
+
},
|
|
69575
|
+
updateStates: (states, callback) => {
|
|
69576
|
+
this.setState(states, callback);
|
|
69454
69577
|
}
|
|
69455
69578
|
});
|
|
69456
69579
|
}
|
|
@@ -69462,6 +69585,7 @@ class inputNumber_InputNumber extends baseComponent_BaseComponent {
|
|
|
69462
69585
|
const {
|
|
69463
69586
|
focusing
|
|
69464
69587
|
} = this.state;
|
|
69588
|
+
let newValue;
|
|
69465
69589
|
/**
|
|
69466
69590
|
* To determine whether the front and back are equal
|
|
69467
69591
|
* NaN need to check whether both are NaN
|
|
@@ -69469,8 +69593,9 @@ class inputNumber_InputNumber extends baseComponent_BaseComponent {
|
|
|
69469
69593
|
|
|
69470
69594
|
if (value !== prevProps.value && !utils_isBothNaN(value, prevProps.value)) {
|
|
69471
69595
|
if (isNullOrUndefined(value) || value === '') {
|
|
69472
|
-
|
|
69473
|
-
|
|
69596
|
+
newValue = '';
|
|
69597
|
+
this.foundation.updateStates({
|
|
69598
|
+
value: newValue,
|
|
69474
69599
|
number: null
|
|
69475
69600
|
});
|
|
69476
69601
|
} else {
|
|
@@ -69526,33 +69651,42 @@ class inputNumber_InputNumber extends baseComponent_BaseComponent {
|
|
|
69526
69651
|
|
|
69527
69652
|
if (this.clickUpOrDown) {
|
|
69528
69653
|
obj.value = this.foundation.doFormat(valueStr, true);
|
|
69654
|
+
newValue = obj.value;
|
|
69529
69655
|
}
|
|
69530
69656
|
|
|
69531
|
-
this.
|
|
69657
|
+
this.foundation.updateStates(obj, () => this.adapter.restoreCursor());
|
|
69532
69658
|
} else if (!isNaN_default()(toNum)) {
|
|
69533
69659
|
// Update input content when controlled input is illegal and not NaN
|
|
69534
|
-
this.
|
|
69535
|
-
|
|
69660
|
+
newValue = this.foundation.doFormat(toNum, false);
|
|
69661
|
+
this.foundation.updateStates({
|
|
69662
|
+
value: newValue
|
|
69536
69663
|
});
|
|
69537
69664
|
} else {
|
|
69538
69665
|
// Update input content when controlled input NaN
|
|
69539
|
-
this.
|
|
69540
|
-
|
|
69666
|
+
newValue = this.foundation.doFormat(valueStr, false);
|
|
69667
|
+
this.foundation.updateStates({
|
|
69668
|
+
value: newValue
|
|
69541
69669
|
});
|
|
69542
69670
|
}
|
|
69543
69671
|
} else if (this.foundation.isValidNumber(parsedNum)) {
|
|
69544
|
-
this.
|
|
69672
|
+
newValue = this.foundation.doFormat(parsedNum);
|
|
69673
|
+
this.foundation.updateStates({
|
|
69545
69674
|
number: parsedNum,
|
|
69546
|
-
value:
|
|
69675
|
+
value: newValue
|
|
69547
69676
|
});
|
|
69548
69677
|
} else {
|
|
69549
69678
|
// Invalid digital analog blurring effect instead of controlled failure
|
|
69550
|
-
|
|
69679
|
+
newValue = '';
|
|
69680
|
+
this.foundation.updateStates({
|
|
69551
69681
|
number: null,
|
|
69552
|
-
value:
|
|
69682
|
+
value: newValue
|
|
69553
69683
|
});
|
|
69554
69684
|
}
|
|
69555
69685
|
}
|
|
69686
|
+
|
|
69687
|
+
if (isString_default()(newValue) && newValue !== String(this.props.value)) {
|
|
69688
|
+
this.foundation.notifyChange(newValue, null);
|
|
69689
|
+
}
|
|
69556
69690
|
}
|
|
69557
69691
|
|
|
69558
69692
|
if (!this.clickUpOrDown) {
|
|
@@ -69885,7 +70019,7 @@ class foundation_NavigationFoundation extends foundation {
|
|
|
69885
70019
|
const {
|
|
69886
70020
|
itemKeysMap,
|
|
69887
70021
|
willOpenKeys,
|
|
69888
|
-
|
|
70022
|
+
formattedItems
|
|
69889
70023
|
} = this.getCalcState();
|
|
69890
70024
|
const parentSelectKeys = this.selectLevelZeroParentKeys(itemKeysMap, willSelectedKeys);
|
|
69891
70025
|
willSelectedKeys = concat_default()(willSelectedKeys).call(willSelectedKeys, parentSelectKeys);
|
|
@@ -69895,7 +70029,7 @@ class foundation_NavigationFoundation extends foundation {
|
|
|
69895
70029
|
selectedKeys: willSelectedKeys,
|
|
69896
70030
|
itemKeysMap,
|
|
69897
70031
|
openKeys: willOpenKeys,
|
|
69898
|
-
items:
|
|
70032
|
+
items: formattedItems
|
|
69899
70033
|
};
|
|
69900
70034
|
} else {
|
|
69901
70035
|
this._adapter.updateSelectedKeys(willSelectedKeys);
|
|
@@ -69904,7 +70038,7 @@ class foundation_NavigationFoundation extends foundation {
|
|
|
69904
70038
|
|
|
69905
70039
|
this._adapter.updateOpenKeys(willOpenKeys);
|
|
69906
70040
|
|
|
69907
|
-
this._adapter.updateItems(
|
|
70041
|
+
this._adapter.updateItems(formattedItems);
|
|
69908
70042
|
|
|
69909
70043
|
this._adapter.setItemsChanged(true);
|
|
69910
70044
|
}
|
|
@@ -69919,13 +70053,13 @@ class foundation_NavigationFoundation extends foundation {
|
|
|
69919
70053
|
getCalcState() {
|
|
69920
70054
|
const {
|
|
69921
70055
|
itemKeysMap,
|
|
69922
|
-
|
|
69923
|
-
} = this.
|
|
70056
|
+
formattedItems
|
|
70057
|
+
} = this.getFormattedItems();
|
|
69924
70058
|
const willOpenKeys = this.getWillOpenKeys(itemKeysMap);
|
|
69925
70059
|
return {
|
|
69926
70060
|
itemKeysMap,
|
|
69927
70061
|
willOpenKeys,
|
|
69928
|
-
|
|
70062
|
+
formattedItems
|
|
69929
70063
|
};
|
|
69930
70064
|
}
|
|
69931
70065
|
/**
|
|
@@ -69933,17 +70067,17 @@ class foundation_NavigationFoundation extends foundation {
|
|
|
69933
70067
|
*/
|
|
69934
70068
|
|
|
69935
70069
|
|
|
69936
|
-
|
|
70070
|
+
getFormattedItems() {
|
|
69937
70071
|
const {
|
|
69938
70072
|
items,
|
|
69939
70073
|
children
|
|
69940
70074
|
} = this.getProps();
|
|
69941
|
-
const
|
|
69942
|
-
const willHandleItems = is_array_default()(items) && items.length ?
|
|
70075
|
+
const formattedItems = this.formatItems(items);
|
|
70076
|
+
const willHandleItems = is_array_default()(items) && items.length ? formattedItems : children;
|
|
69943
70077
|
const itemKeysMap = foundation_NavigationFoundation.buildItemKeysMap(willHandleItems);
|
|
69944
70078
|
return {
|
|
69945
70079
|
itemKeysMap,
|
|
69946
|
-
|
|
70080
|
+
formattedItems
|
|
69947
70081
|
};
|
|
69948
70082
|
}
|
|
69949
70083
|
/**
|
|
@@ -70034,13 +70168,13 @@ class foundation_NavigationFoundation extends foundation {
|
|
|
70034
70168
|
|
|
70035
70169
|
formatItems() {
|
|
70036
70170
|
let items = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
70037
|
-
const
|
|
70171
|
+
const formattedItems = [];
|
|
70038
70172
|
|
|
70039
70173
|
for (const item of items) {
|
|
70040
|
-
|
|
70174
|
+
formattedItems.push(new NavItem_NavItem(item));
|
|
70041
70175
|
}
|
|
70042
70176
|
|
|
70043
|
-
return
|
|
70177
|
+
return formattedItems;
|
|
70044
70178
|
}
|
|
70045
70179
|
|
|
70046
70180
|
handleSelect(data) {
|
|
@@ -75328,10 +75462,6 @@ function shouldComponentUpdate(nextProps, nextState) {
|
|
|
75328
75462
|
|
|
75329
75463
|
//# sourceMappingURL=index.esm.js.map
|
|
75330
75464
|
|
|
75331
|
-
// EXTERNAL MODULE: /home/runner/work/semi-design/semi-design/node_modules/@babel/runtime-corejs3/core-js-stable/number/is-nan.js
|
|
75332
|
-
var is_nan = __webpack_require__("gobS");
|
|
75333
|
-
var is_nan_default = /*#__PURE__*/__webpack_require__.n(is_nan);
|
|
75334
|
-
|
|
75335
75465
|
// CONCATENATED MODULE: ../semi-foundation/pagination/constants.ts
|
|
75336
75466
|
|
|
75337
75467
|
const pagination_constants_cssClasses = {
|
|
@@ -91545,9 +91675,9 @@ class foundation_TabsFoundation extends foundation {
|
|
|
91545
91675
|
}
|
|
91546
91676
|
|
|
91547
91677
|
handleTabClick(activeKey, event) {
|
|
91548
|
-
const
|
|
91678
|
+
const isControlledComponent = this._isInProps('activeKey');
|
|
91549
91679
|
|
|
91550
|
-
if (
|
|
91680
|
+
if (isControlledComponent) {
|
|
91551
91681
|
this._notifyChange(activeKey);
|
|
91552
91682
|
} else {
|
|
91553
91683
|
this._notifyChange(activeKey);
|
|
@@ -92962,7 +93092,7 @@ class foundation_TimePickerFoundation extends foundation {
|
|
|
92962
93092
|
if (this._isInProps('format')) {
|
|
92963
93093
|
return this.getProp('format');
|
|
92964
93094
|
} else if (this.getProp('use12Hours')) {
|
|
92965
|
-
return timePicker_constants_strings.
|
|
93095
|
+
return timePicker_constants_strings.DEFAULT_FORMAT_A;
|
|
92966
93096
|
} else {
|
|
92967
93097
|
return timePicker_constants_strings.DEFAULT_FORMAT;
|
|
92968
93098
|
}
|
|
@@ -95215,7 +95345,7 @@ class foundation_TreeFoundation extends foundation {
|
|
|
95215
95345
|
*/
|
|
95216
95346
|
|
|
95217
95347
|
|
|
95218
|
-
|
|
95348
|
+
calcCheckedStatus(targetStatus, eventKey) {
|
|
95219
95349
|
// From checked to unchecked, you can change it directly
|
|
95220
95350
|
if (!targetStatus) {
|
|
95221
95351
|
return targetStatus;
|
|
@@ -95248,7 +95378,7 @@ class foundation_TreeFoundation extends foundation {
|
|
|
95248
95378
|
*/
|
|
95249
95379
|
|
|
95250
95380
|
|
|
95251
|
-
|
|
95381
|
+
calcNonDisabledCheckedKeys(eventKey, targetStatus) {
|
|
95252
95382
|
const {
|
|
95253
95383
|
keyEntities,
|
|
95254
95384
|
disabledKeys
|
|
@@ -95292,11 +95422,11 @@ class foundation_TreeFoundation extends foundation {
|
|
|
95292
95422
|
|
|
95293
95423
|
if (checkRelation === 'related') {
|
|
95294
95424
|
// Find the checked state of the current node
|
|
95295
|
-
const targetStatus = disableStrictly ? this.
|
|
95425
|
+
const targetStatus = disableStrictly ? this.calcCheckedStatus(!checked, eventKey) : !checked;
|
|
95296
95426
|
const {
|
|
95297
95427
|
checkedKeys,
|
|
95298
95428
|
halfCheckedKeys
|
|
95299
|
-
} = disableStrictly ? this.
|
|
95429
|
+
} = disableStrictly ? this.calcNonDisabledCheckedKeys(eventKey, targetStatus) : this.calcCheckedKeys(eventKey, targetStatus);
|
|
95300
95430
|
|
|
95301
95431
|
this._adapter.notifySelect(eventKey, targetStatus, data);
|
|
95302
95432
|
|
|
@@ -97325,7 +97455,7 @@ tree_Tree.TreeNode = treeNode_TreeNode;
|
|
|
97325
97455
|
|
|
97326
97456
|
const treeSelect_constants_cssClasses = {
|
|
97327
97457
|
PREFIX: "".concat(BASE_CLASS_PREFIX, "-tree-select"),
|
|
97328
|
-
|
|
97458
|
+
PREFIX_TREE: "".concat(BASE_CLASS_PREFIX, "-tree"),
|
|
97329
97459
|
PREFIX_OPTION: "".concat(BASE_CLASS_PREFIX, "-tree-select-option")
|
|
97330
97460
|
};
|
|
97331
97461
|
const treeSelect_constants_strings = {
|
|
@@ -97949,11 +98079,11 @@ class foundation_TreeSelectFoundation extends foundation {
|
|
|
97949
98079
|
} = treeNode;
|
|
97950
98080
|
|
|
97951
98081
|
if (checkRelation === 'related') {
|
|
97952
|
-
const targetStatus = disableStrictly ? this.
|
|
98082
|
+
const targetStatus = disableStrictly ? this.calcCheckedStatus(!checked, eventKey) : !checked;
|
|
97953
98083
|
const {
|
|
97954
98084
|
checkedKeys,
|
|
97955
98085
|
halfCheckedKeys
|
|
97956
|
-
} = disableStrictly ? this.
|
|
98086
|
+
} = disableStrictly ? this.calcNonDisabledCheckedKeys(eventKey, targetStatus) : this.calcCheckedKeys(eventKey, targetStatus);
|
|
97957
98087
|
|
|
97958
98088
|
this._adapter.notifySelect(eventKey, targetStatus, data);
|
|
97959
98089
|
|
|
@@ -97999,7 +98129,7 @@ class foundation_TreeSelectFoundation extends foundation {
|
|
|
97999
98129
|
}
|
|
98000
98130
|
}
|
|
98001
98131
|
|
|
98002
|
-
|
|
98132
|
+
calcNonDisabledCheckedKeys(eventKey, targetStatus) {
|
|
98003
98133
|
const {
|
|
98004
98134
|
keyEntities,
|
|
98005
98135
|
disabledKeys
|
|
@@ -98021,7 +98151,7 @@ class foundation_TreeSelectFoundation extends foundation {
|
|
|
98021
98151
|
return calcCheckedKeys(newCheckedKeys, keyEntities);
|
|
98022
98152
|
}
|
|
98023
98153
|
|
|
98024
|
-
|
|
98154
|
+
calcCheckedStatus(targetStatus, eventKey) {
|
|
98025
98155
|
if (!targetStatus) {
|
|
98026
98156
|
return targetStatus;
|
|
98027
98157
|
}
|
|
@@ -98250,7 +98380,7 @@ var treeSelect = __webpack_require__("uw59");
|
|
|
98250
98380
|
|
|
98251
98381
|
|
|
98252
98382
|
const treeSelect_prefixcls = treeSelect_constants_cssClasses.PREFIX;
|
|
98253
|
-
const prefixTree = treeSelect_constants_cssClasses.
|
|
98383
|
+
const prefixTree = treeSelect_constants_cssClasses.PREFIX_TREE;
|
|
98254
98384
|
const treeSelect_key = 0;
|
|
98255
98385
|
|
|
98256
98386
|
class treeSelect_TreeSelect extends baseComponent_BaseComponent {
|
|
@@ -99729,7 +99859,7 @@ function mapFileTree(items) {
|
|
|
99729
99859
|
const result = yield promise_default.a.all(promises);
|
|
99730
99860
|
return result;
|
|
99731
99861
|
} catch (error) {
|
|
99732
|
-
console.warn('
|
|
99862
|
+
console.warn('Captured error while loop directory.');
|
|
99733
99863
|
console.error(error);
|
|
99734
99864
|
return [];
|
|
99735
99865
|
}
|
|
@@ -99854,13 +99984,13 @@ class foundation_UploadFoundation extends foundation {
|
|
|
99854
99984
|
maxSize,
|
|
99855
99985
|
minSize
|
|
99856
99986
|
} = this.getProps();
|
|
99857
|
-
let
|
|
99987
|
+
let isIllegal = false;
|
|
99858
99988
|
|
|
99859
99989
|
if (size > maxSize * byteKB || size < minSize * byteKB) {
|
|
99860
|
-
|
|
99990
|
+
isIllegal = true;
|
|
99861
99991
|
}
|
|
99862
99992
|
|
|
99863
|
-
return
|
|
99993
|
+
return isIllegal;
|
|
99864
99994
|
}
|
|
99865
99995
|
/**
|
|
99866
99996
|
* 1. 选择文件
|
|
@@ -100268,7 +100398,7 @@ class foundation_UploadFoundation extends foundation {
|
|
|
100268
100398
|
});
|
|
100269
100399
|
|
|
100270
100400
|
switch (true) {
|
|
100271
|
-
// sync
|
|
100401
|
+
// sync validate - boolean
|
|
100272
100402
|
case buResult === true:
|
|
100273
100403
|
{
|
|
100274
100404
|
this.post(file);
|
|
@@ -100288,17 +100418,17 @@ class foundation_UploadFoundation extends foundation {
|
|
|
100288
100418
|
|
|
100289
100419
|
case buResult && isPromise(buResult):
|
|
100290
100420
|
{
|
|
100291
|
-
promise_default.a.resolve(buResult).then(
|
|
100421
|
+
promise_default.a.resolve(buResult).then(resolveData => {
|
|
100292
100422
|
var _context5;
|
|
100293
100423
|
|
|
100294
100424
|
let newResult = {
|
|
100295
100425
|
shouldUpload: true
|
|
100296
100426
|
};
|
|
100297
100427
|
|
|
100298
|
-
const
|
|
100428
|
+
const typeOfResolveData = slice_default()(_context5 = Object.prototype.toString.call(resolveData)).call(_context5, 8, -1);
|
|
100299
100429
|
|
|
100300
|
-
if (
|
|
100301
|
-
newResult = assign_default()(assign_default()({}, newResult),
|
|
100430
|
+
if (typeOfResolveData === 'Object') {
|
|
100431
|
+
newResult = assign_default()(assign_default()({}, newResult), resolveData);
|
|
100302
100432
|
}
|
|
100303
100433
|
|
|
100304
100434
|
this.handleBeforeUploadResultInObject(newResult, file);
|
|
@@ -102207,6 +102337,10 @@ function _nonIterableSpread() {
|
|
|
102207
102337
|
function _toConsumableArray(arr) {
|
|
102208
102338
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
102209
102339
|
}
|
|
102340
|
+
// EXTERNAL MODULE: /home/runner/work/semi-design/semi-design/node_modules/prop-types/index.js
|
|
102341
|
+
var semi_design_node_modules_prop_types = __webpack_require__("aWzz");
|
|
102342
|
+
var semi_design_node_modules_prop_types_default = /*#__PURE__*/__webpack_require__.n(semi_design_node_modules_prop_types);
|
|
102343
|
+
|
|
102210
102344
|
// CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/react-sortable-hoc/dist/react-sortable-hoc.esm.js
|
|
102211
102345
|
|
|
102212
102346
|
|
|
@@ -102724,37 +102858,37 @@ function defaultShouldCancelStart(event) {
|
|
|
102724
102858
|
}
|
|
102725
102859
|
|
|
102726
102860
|
var propTypes = {
|
|
102727
|
-
axis:
|
|
102728
|
-
contentWindow:
|
|
102729
|
-
disableAutoscroll:
|
|
102730
|
-
distance:
|
|
102731
|
-
getContainer:
|
|
102732
|
-
getHelperDimensions:
|
|
102733
|
-
helperClass:
|
|
102734
|
-
helperContainer:
|
|
102735
|
-
hideSortableGhost:
|
|
102736
|
-
keyboardSortingTransitionDuration:
|
|
102737
|
-
lockAxis:
|
|
102738
|
-
lockOffset:
|
|
102739
|
-
lockToContainerEdges:
|
|
102740
|
-
onSortEnd:
|
|
102741
|
-
onSortMove:
|
|
102742
|
-
onSortOver:
|
|
102743
|
-
onSortStart:
|
|
102744
|
-
pressDelay:
|
|
102745
|
-
pressThreshold:
|
|
102746
|
-
keyCodes:
|
|
102747
|
-
lift:
|
|
102748
|
-
drop:
|
|
102749
|
-
cancel:
|
|
102750
|
-
up:
|
|
102751
|
-
down:
|
|
102861
|
+
axis: semi_design_node_modules_prop_types_default.a.oneOf(['x', 'y', 'xy']),
|
|
102862
|
+
contentWindow: semi_design_node_modules_prop_types_default.a.any,
|
|
102863
|
+
disableAutoscroll: semi_design_node_modules_prop_types_default.a.bool,
|
|
102864
|
+
distance: semi_design_node_modules_prop_types_default.a.number,
|
|
102865
|
+
getContainer: semi_design_node_modules_prop_types_default.a.func,
|
|
102866
|
+
getHelperDimensions: semi_design_node_modules_prop_types_default.a.func,
|
|
102867
|
+
helperClass: semi_design_node_modules_prop_types_default.a.string,
|
|
102868
|
+
helperContainer: semi_design_node_modules_prop_types_default.a.oneOfType([semi_design_node_modules_prop_types_default.a.func, typeof HTMLElement === 'undefined' ? semi_design_node_modules_prop_types_default.a.any : semi_design_node_modules_prop_types_default.a.instanceOf(HTMLElement)]),
|
|
102869
|
+
hideSortableGhost: semi_design_node_modules_prop_types_default.a.bool,
|
|
102870
|
+
keyboardSortingTransitionDuration: semi_design_node_modules_prop_types_default.a.number,
|
|
102871
|
+
lockAxis: semi_design_node_modules_prop_types_default.a.string,
|
|
102872
|
+
lockOffset: semi_design_node_modules_prop_types_default.a.oneOfType([semi_design_node_modules_prop_types_default.a.number, semi_design_node_modules_prop_types_default.a.string, semi_design_node_modules_prop_types_default.a.arrayOf(semi_design_node_modules_prop_types_default.a.oneOfType([semi_design_node_modules_prop_types_default.a.number, semi_design_node_modules_prop_types_default.a.string]))]),
|
|
102873
|
+
lockToContainerEdges: semi_design_node_modules_prop_types_default.a.bool,
|
|
102874
|
+
onSortEnd: semi_design_node_modules_prop_types_default.a.func,
|
|
102875
|
+
onSortMove: semi_design_node_modules_prop_types_default.a.func,
|
|
102876
|
+
onSortOver: semi_design_node_modules_prop_types_default.a.func,
|
|
102877
|
+
onSortStart: semi_design_node_modules_prop_types_default.a.func,
|
|
102878
|
+
pressDelay: semi_design_node_modules_prop_types_default.a.number,
|
|
102879
|
+
pressThreshold: semi_design_node_modules_prop_types_default.a.number,
|
|
102880
|
+
keyCodes: semi_design_node_modules_prop_types_default.a.shape({
|
|
102881
|
+
lift: semi_design_node_modules_prop_types_default.a.arrayOf(semi_design_node_modules_prop_types_default.a.number),
|
|
102882
|
+
drop: semi_design_node_modules_prop_types_default.a.arrayOf(semi_design_node_modules_prop_types_default.a.number),
|
|
102883
|
+
cancel: semi_design_node_modules_prop_types_default.a.arrayOf(semi_design_node_modules_prop_types_default.a.number),
|
|
102884
|
+
up: semi_design_node_modules_prop_types_default.a.arrayOf(semi_design_node_modules_prop_types_default.a.number),
|
|
102885
|
+
down: semi_design_node_modules_prop_types_default.a.arrayOf(semi_design_node_modules_prop_types_default.a.number)
|
|
102752
102886
|
}),
|
|
102753
|
-
shouldCancelStart:
|
|
102754
|
-
transitionDuration:
|
|
102755
|
-
updateBeforeSortStart:
|
|
102756
|
-
useDragHandle:
|
|
102757
|
-
useWindowAsScrollContainer:
|
|
102887
|
+
shouldCancelStart: semi_design_node_modules_prop_types_default.a.func,
|
|
102888
|
+
transitionDuration: semi_design_node_modules_prop_types_default.a.number,
|
|
102889
|
+
updateBeforeSortStart: semi_design_node_modules_prop_types_default.a.func,
|
|
102890
|
+
useDragHandle: semi_design_node_modules_prop_types_default.a.bool,
|
|
102891
|
+
useWindowAsScrollContainer: semi_design_node_modules_prop_types_default.a.bool
|
|
102758
102892
|
};
|
|
102759
102893
|
var defaultKeyCodes = {
|
|
102760
102894
|
lift: [KEYCODE.SPACE],
|
|
@@ -103701,9 +103835,9 @@ function sortableContainer(WrappedComponent) {
|
|
|
103701
103835
|
}
|
|
103702
103836
|
|
|
103703
103837
|
var propTypes$1 = {
|
|
103704
|
-
index:
|
|
103705
|
-
collection:
|
|
103706
|
-
disabled:
|
|
103838
|
+
index: semi_design_node_modules_prop_types_default.a.number.isRequired,
|
|
103839
|
+
collection: semi_design_node_modules_prop_types_default.a.oneOfType([semi_design_node_modules_prop_types_default.a.number, semi_design_node_modules_prop_types_default.a.string]),
|
|
103840
|
+
disabled: semi_design_node_modules_prop_types_default.a.bool
|
|
103707
103841
|
};
|
|
103708
103842
|
var omittedProps$1 = Object.keys(propTypes$1);
|
|
103709
103843
|
function sortableElement(WrappedComponent) {
|
|
@@ -103823,7 +103957,7 @@ const transfer_constants_strings = {
|
|
|
103823
103957
|
};
|
|
103824
103958
|
const transfer_constants_numbers = {};
|
|
103825
103959
|
|
|
103826
|
-
// CONCATENATED MODULE: ../semi-foundation/transfer/
|
|
103960
|
+
// CONCATENATED MODULE: ../semi-foundation/transfer/transferUtils.ts
|
|
103827
103961
|
|
|
103828
103962
|
|
|
103829
103963
|
|
|
@@ -103836,7 +103970,7 @@ const transfer_constants_numbers = {};
|
|
|
103836
103970
|
|
|
103837
103971
|
|
|
103838
103972
|
|
|
103839
|
-
var
|
|
103973
|
+
var transferUtils_rest = undefined && undefined.__rest || function (s, e) {
|
|
103840
103974
|
var t = {};
|
|
103841
103975
|
|
|
103842
103976
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && index_of_default()(e).call(e, p) < 0) t[p] = s[p];
|
|
@@ -103858,7 +103992,7 @@ function _generateGroupedData(dataSource) {
|
|
|
103858
103992
|
const {
|
|
103859
103993
|
children
|
|
103860
103994
|
} = group,
|
|
103861
|
-
rest =
|
|
103995
|
+
rest = transferUtils_rest(group, ["children"]);
|
|
103862
103996
|
|
|
103863
103997
|
newData.push(assign_default()(assign_default()({}, item), {
|
|
103864
103998
|
_parent: rest
|
|
@@ -105204,6 +105338,10 @@ class foundation_FormFoundation extends foundation {
|
|
|
105204
105338
|
this.scrollToField = bind_default()(_context20 = this.scrollToField).call(_context20, this);
|
|
105205
105339
|
}
|
|
105206
105340
|
|
|
105341
|
+
init() {
|
|
105342
|
+
this._adapter.initFormId();
|
|
105343
|
+
}
|
|
105344
|
+
|
|
105207
105345
|
getField(field) {
|
|
105208
105346
|
const targetField = this.fields.get(field);
|
|
105209
105347
|
return targetField;
|
|
@@ -105460,7 +105598,7 @@ class foundation_FormFoundation extends foundation {
|
|
|
105460
105598
|
let targetFields = new core_js_stable_map_default.a();
|
|
105461
105599
|
|
|
105462
105600
|
if (!isUndefined_default()(fieldPaths)) {
|
|
105463
|
-
// reset or validate
|
|
105601
|
+
// reset or validate specific fields
|
|
105464
105602
|
for_each_default()(fieldPaths).call(fieldPaths, path => {
|
|
105465
105603
|
const field = this.fields.get(path); // may be undefined, if exists two fields like 'a[0]'、'a[1]', but user directly call reset(['a']) / validate(['a'])
|
|
105466
105604
|
|
|
@@ -105598,8 +105736,8 @@ class foundation_FormFoundation extends foundation {
|
|
|
105598
105736
|
updateKey: new Date().valueOf()
|
|
105599
105737
|
});
|
|
105600
105738
|
});
|
|
105601
|
-
} // When
|
|
105602
|
-
// 当
|
|
105739
|
+
} // When isOverride is true, there may be a non-existent field in the values passed in, directly synchronized to formState.values
|
|
105740
|
+
// 当isOverride为true,传入的values中可能存在不存在的field时,直接将其同步到formState.values中
|
|
105603
105741
|
|
|
105604
105742
|
|
|
105605
105743
|
if (isOverride) {
|
|
@@ -105773,7 +105911,7 @@ class foundation_FormFoundation extends foundation {
|
|
|
105773
105911
|
};
|
|
105774
105912
|
|
|
105775
105913
|
const setTouched = (field, isTouched, opts) => {
|
|
105776
|
-
const fieldApi = this.fields.get(field) ? this.fields.get(field).fieldApi : undefined; // touched is boolean variable, no need to
|
|
105914
|
+
const fieldApi = this.fields.get(field) ? this.fields.get(field).fieldApi : undefined; // touched is boolean variable, no need to exec deepClone like setValue
|
|
105777
105915
|
|
|
105778
105916
|
if (fieldApi) {
|
|
105779
105917
|
fieldApi.setTouched(isTouched, opts);
|
|
@@ -105860,7 +105998,7 @@ class foundation_FormFoundation extends foundation {
|
|
|
105860
105998
|
getFormState() {
|
|
105861
105999
|
let needClone = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
105862
106000
|
|
|
105863
|
-
// NOTES:这里如果直接返回this.data,
|
|
106001
|
+
// NOTES:这里如果直接返回this.data,forceUpdate 触发 Form rerender 时,通过context传下去的formState会被认为是同一个对象【应该是浅对比的原因】
|
|
105864
106002
|
// 使用了useFormState相关的component都不会触发重新渲染。所以使用...复制一次
|
|
105865
106003
|
|
|
105866
106004
|
/*
|
|
@@ -106832,9 +106970,16 @@ function withField(Component, opts) {
|
|
|
106832
106970
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
106833
106971
|
return () => {};
|
|
106834
106972
|
} // log('register: ' + field);
|
|
106973
|
+
// field value may change after field component mounted, we use ref value here to get changed value
|
|
106835
106974
|
|
|
106836
106975
|
|
|
106837
|
-
|
|
106976
|
+
const refValue = getVal();
|
|
106977
|
+
updater.register(field, {
|
|
106978
|
+
value: refValue,
|
|
106979
|
+
error,
|
|
106980
|
+
touched,
|
|
106981
|
+
status
|
|
106982
|
+
}, {
|
|
106838
106983
|
field,
|
|
106839
106984
|
fieldApi,
|
|
106840
106985
|
keepState,
|
|
@@ -107124,7 +107269,7 @@ class baseForm_Form extends baseComponent_BaseComponent {
|
|
|
107124
107269
|
|
|
107125
107270
|
super(props);
|
|
107126
107271
|
this.state = {
|
|
107127
|
-
formId:
|
|
107272
|
+
formId: ''
|
|
107128
107273
|
};
|
|
107129
107274
|
Object(warning["a" /* default */])(Boolean(props.component && props.render), '[Semi Form] You should not use <Form component> and <Form render> in ths same time; <Form render> will be ignored');
|
|
107130
107275
|
Object(warning["a" /* default */])(props.component && props.children && !isEmptyChildren(props.children), '[Semi Form] You should not use <Form component> and <Form>{children}</Form> in ths same time; <Form>{children}</Form> will be ignored');
|
|
@@ -107139,6 +107284,10 @@ class baseForm_Form extends baseComponent_BaseComponent {
|
|
|
107139
107284
|
}
|
|
107140
107285
|
}
|
|
107141
107286
|
|
|
107287
|
+
componentDidMount() {
|
|
107288
|
+
this.foundation.init();
|
|
107289
|
+
}
|
|
107290
|
+
|
|
107142
107291
|
componentWillUnmount() {
|
|
107143
107292
|
this.foundation.destroy();
|
|
107144
107293
|
this.foundation = null;
|
|
@@ -107166,6 +107315,11 @@ class baseForm_Form extends baseComponent_BaseComponent {
|
|
|
107166
107315
|
notifyReset: () => {
|
|
107167
107316
|
this.props.onReset();
|
|
107168
107317
|
},
|
|
107318
|
+
initFormId: () => {
|
|
107319
|
+
this.setState({
|
|
107320
|
+
formId: getUuidv4()
|
|
107321
|
+
});
|
|
107322
|
+
},
|
|
107169
107323
|
getInitValues: () => this.props.initValues,
|
|
107170
107324
|
getFormProps: keys => {
|
|
107171
107325
|
if (typeof keys === 'undefined') {
|