wargerm 0.5.34 → 0.5.36
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/dist/components/DatePicker/index.d.ts +6 -1
- package/dist/components/Modal/index.d.ts +1 -0
- package/dist/components/ModalTips/index.d.ts +1 -0
- package/dist/components/Radio/index.d.ts +1 -0
- package/dist/index.css +12736 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.css +12736 -0
- package/dist/index.esm.js +1554 -1285
- package/dist/index.js +1557 -1287
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -25,10 +25,13 @@ import _Spin from 'antd/es/spin';
|
|
25
25
|
import 'antd/es/tooltip/style';
|
26
26
|
import _Tooltip from 'antd/es/tooltip';
|
27
27
|
import classnames from 'classnames';
|
28
|
-
import 'antd/es/
|
29
|
-
import
|
28
|
+
import 'antd/es/space/style';
|
29
|
+
import _Space from 'antd/es/space';
|
30
30
|
import 'antd/es/radio/style';
|
31
31
|
import _Radio from 'antd/es/radio';
|
32
|
+
import 'antd/es/date-picker/style';
|
33
|
+
import _DatePicker from 'antd/es/date-picker';
|
34
|
+
import locale$1 from 'antd/lib/date-picker/locale/zh_CN';
|
32
35
|
import 'antd/es/checkbox/style';
|
33
36
|
import _Checkbox from 'antd/es/checkbox';
|
34
37
|
import uniqBy from 'lodash/uniqBy';
|
@@ -53,8 +56,6 @@ import 'antd/es/breadcrumb/style';
|
|
53
56
|
import _Breadcrumb from 'antd/es/breadcrumb';
|
54
57
|
import ReactDOM from 'react-dom';
|
55
58
|
import ProTable from '@ant-design/pro-table';
|
56
|
-
import 'antd/es/space/style';
|
57
|
-
import _Space from 'antd/es/space';
|
58
59
|
import Player from 'xgplayer';
|
59
60
|
import FlvPlayer from 'xgplayer-flv.js';
|
60
61
|
import HlsJsPlayer from 'xgplayer-hls.js';
|
@@ -901,453 +902,260 @@ var WInputNumber = function WInputNumber(props) {
|
|
901
902
|
|
902
903
|
WInputNumber.defaultProps = {};
|
903
904
|
|
904
|
-
|
905
|
-
|
905
|
+
//! moment.js locale configuration
|
906
|
+
(function (global, factory) {
|
907
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
908
|
+
&& typeof require === 'function' ? factory(require('../moment')) :
|
909
|
+
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
910
|
+
factory(global.moment);
|
911
|
+
}(undefined, (function (moment) {
|
912
|
+
//! moment.js locale configuration
|
913
|
+
|
914
|
+
var zhCn = moment.defineLocale('zh-cn', {
|
915
|
+
months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
|
916
|
+
'_'
|
917
|
+
),
|
918
|
+
monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
|
919
|
+
'_'
|
920
|
+
),
|
921
|
+
weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
|
922
|
+
weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
|
923
|
+
weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
|
924
|
+
longDateFormat: {
|
925
|
+
LT: 'HH:mm',
|
926
|
+
LTS: 'HH:mm:ss',
|
927
|
+
L: 'YYYY/MM/DD',
|
928
|
+
LL: 'YYYY年M月D日',
|
929
|
+
LLL: 'YYYY年M月D日Ah点mm分',
|
930
|
+
LLLL: 'YYYY年M月D日ddddAh点mm分',
|
931
|
+
l: 'YYYY/M/D',
|
932
|
+
ll: 'YYYY年M月D日',
|
933
|
+
lll: 'YYYY年M月D日 HH:mm',
|
934
|
+
llll: 'YYYY年M月D日dddd HH:mm',
|
935
|
+
},
|
936
|
+
meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
|
937
|
+
meridiemHour: function (hour, meridiem) {
|
938
|
+
if (hour === 12) {
|
939
|
+
hour = 0;
|
940
|
+
}
|
941
|
+
if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
|
942
|
+
return hour;
|
943
|
+
} else if (meridiem === '下午' || meridiem === '晚上') {
|
944
|
+
return hour + 12;
|
945
|
+
} else {
|
946
|
+
// '中午'
|
947
|
+
return hour >= 11 ? hour : hour + 12;
|
948
|
+
}
|
949
|
+
},
|
950
|
+
meridiem: function (hour, minute, isLower) {
|
951
|
+
var hm = hour * 100 + minute;
|
952
|
+
if (hm < 600) {
|
953
|
+
return '凌晨';
|
954
|
+
} else if (hm < 900) {
|
955
|
+
return '早上';
|
956
|
+
} else if (hm < 1130) {
|
957
|
+
return '上午';
|
958
|
+
} else if (hm < 1230) {
|
959
|
+
return '中午';
|
960
|
+
} else if (hm < 1800) {
|
961
|
+
return '下午';
|
962
|
+
} else {
|
963
|
+
return '晚上';
|
964
|
+
}
|
965
|
+
},
|
966
|
+
calendar: {
|
967
|
+
sameDay: '[今天]LT',
|
968
|
+
nextDay: '[明天]LT',
|
969
|
+
nextWeek: function (now) {
|
970
|
+
if (now.week() !== this.week()) {
|
971
|
+
return '[下]dddLT';
|
972
|
+
} else {
|
973
|
+
return '[本]dddLT';
|
974
|
+
}
|
975
|
+
},
|
976
|
+
lastDay: '[昨天]LT',
|
977
|
+
lastWeek: function (now) {
|
978
|
+
if (this.week() !== now.week()) {
|
979
|
+
return '[上]dddLT';
|
980
|
+
} else {
|
981
|
+
return '[本]dddLT';
|
982
|
+
}
|
983
|
+
},
|
984
|
+
sameElse: 'L',
|
985
|
+
},
|
986
|
+
dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
|
987
|
+
ordinal: function (number, period) {
|
988
|
+
switch (period) {
|
989
|
+
case 'd':
|
990
|
+
case 'D':
|
991
|
+
case 'DDD':
|
992
|
+
return number + '日';
|
993
|
+
case 'M':
|
994
|
+
return number + '月';
|
995
|
+
case 'w':
|
996
|
+
case 'W':
|
997
|
+
return number + '周';
|
998
|
+
default:
|
999
|
+
return number;
|
1000
|
+
}
|
1001
|
+
},
|
1002
|
+
relativeTime: {
|
1003
|
+
future: '%s后',
|
1004
|
+
past: '%s前',
|
1005
|
+
s: '几秒',
|
1006
|
+
ss: '%d 秒',
|
1007
|
+
m: '1 分钟',
|
1008
|
+
mm: '%d 分钟',
|
1009
|
+
h: '1 小时',
|
1010
|
+
hh: '%d 小时',
|
1011
|
+
d: '1 天',
|
1012
|
+
dd: '%d 天',
|
1013
|
+
w: '1 周',
|
1014
|
+
ww: '%d 周',
|
1015
|
+
M: '1 个月',
|
1016
|
+
MM: '%d 个月',
|
1017
|
+
y: '1 年',
|
1018
|
+
yy: '%d 年',
|
1019
|
+
},
|
1020
|
+
week: {
|
1021
|
+
// GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
|
1022
|
+
dow: 1, // Monday is the first day of the week.
|
1023
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
1024
|
+
},
|
1025
|
+
});
|
906
1026
|
|
907
|
-
|
908
|
-
};
|
1027
|
+
return zhCn;
|
909
1028
|
|
910
|
-
|
1029
|
+
})));
|
911
1030
|
|
912
|
-
|
913
|
-
|
1031
|
+
//! moment.js
|
1032
|
+
//! version : 2.29.1
|
1033
|
+
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
1034
|
+
//! license : MIT
|
1035
|
+
//! momentjs.com
|
914
1036
|
|
915
|
-
|
916
|
-
};
|
1037
|
+
var hookCallback;
|
917
1038
|
|
918
|
-
|
919
|
-
|
920
|
-
|
1039
|
+
function hooks() {
|
1040
|
+
return hookCallback.apply(null, arguments);
|
1041
|
+
}
|
921
1042
|
|
922
|
-
|
923
|
-
|
1043
|
+
// This is done to register the method called with moment()
|
1044
|
+
// without creating circular dependencies.
|
1045
|
+
function setHookCallback(callback) {
|
1046
|
+
hookCallback = callback;
|
1047
|
+
}
|
924
1048
|
|
925
|
-
|
926
|
-
|
1049
|
+
function isArray(input) {
|
1050
|
+
return (
|
1051
|
+
input instanceof Array ||
|
1052
|
+
Object.prototype.toString.call(input) === '[object Array]'
|
1053
|
+
);
|
1054
|
+
}
|
927
1055
|
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
1056
|
+
function isObject(input) {
|
1057
|
+
// IE8 will treat undefined and null as object if it wasn't for
|
1058
|
+
// input != null
|
1059
|
+
return (
|
1060
|
+
input != null &&
|
1061
|
+
Object.prototype.toString.call(input) === '[object Object]'
|
1062
|
+
);
|
1063
|
+
}
|
932
1064
|
|
933
|
-
|
934
|
-
|
1065
|
+
function hasOwnProp(a, b) {
|
1066
|
+
return Object.prototype.hasOwnProperty.call(a, b);
|
1067
|
+
}
|
935
1068
|
|
936
|
-
|
937
|
-
|
1069
|
+
function isObjectEmpty(obj) {
|
1070
|
+
if (Object.getOwnPropertyNames) {
|
1071
|
+
return Object.getOwnPropertyNames(obj).length === 0;
|
1072
|
+
} else {
|
1073
|
+
var k;
|
1074
|
+
for (k in obj) {
|
1075
|
+
if (hasOwnProp(obj, k)) {
|
1076
|
+
return false;
|
1077
|
+
}
|
1078
|
+
}
|
1079
|
+
return true;
|
1080
|
+
}
|
1081
|
+
}
|
938
1082
|
|
939
|
-
|
940
|
-
|
941
|
-
|
1083
|
+
function isUndefined(input) {
|
1084
|
+
return input === void 0;
|
1085
|
+
}
|
942
1086
|
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
* @FilePath: \wargerm-components\src\utils\index.ts
|
950
|
-
* 可以输入预定的版权声明、个性签名、空行等
|
951
|
-
*/
|
1087
|
+
function isNumber(input) {
|
1088
|
+
return (
|
1089
|
+
typeof input === 'number' ||
|
1090
|
+
Object.prototype.toString.call(input) === '[object Number]'
|
1091
|
+
);
|
1092
|
+
}
|
952
1093
|
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
if (!(_typeof(obj) === 'object')) {
|
960
|
-
return;
|
961
|
-
}
|
1094
|
+
function isDate(input) {
|
1095
|
+
return (
|
1096
|
+
input instanceof Date ||
|
1097
|
+
Object.prototype.toString.call(input) === '[object Date]'
|
1098
|
+
);
|
1099
|
+
}
|
962
1100
|
|
963
|
-
|
964
|
-
|
965
|
-
|
1101
|
+
function map(arr, fn) {
|
1102
|
+
var res = [],
|
1103
|
+
i;
|
1104
|
+
for (i = 0; i < arr.length; ++i) {
|
1105
|
+
res.push(fn(arr[i], i));
|
966
1106
|
}
|
967
|
-
|
968
|
-
|
969
|
-
return obj;
|
1107
|
+
return res;
|
970
1108
|
}
|
971
|
-
/**
|
972
|
-
* 求数组深度层级
|
973
|
-
* @param arr
|
974
|
-
* @param attr
|
975
|
-
* @param index
|
976
|
-
* @returns {*}
|
977
|
-
*/
|
978
|
-
|
979
|
-
function getArrayLayer(arr, attr) {
|
980
|
-
var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
|
981
|
-
var newIndex = index;
|
982
|
-
|
983
|
-
var _iterator = _createForOfIteratorHelper(arr),
|
984
|
-
_step;
|
985
1109
|
|
986
|
-
|
987
|
-
for (
|
988
|
-
|
989
|
-
|
1110
|
+
function extend(a, b) {
|
1111
|
+
for (var i in b) {
|
1112
|
+
if (hasOwnProp(b, i)) {
|
1113
|
+
a[i] = b[i];
|
1114
|
+
}
|
1115
|
+
}
|
990
1116
|
|
991
|
-
|
992
|
-
|
1117
|
+
if (hasOwnProp(b, 'toString')) {
|
1118
|
+
a.toString = b.toString;
|
1119
|
+
}
|
993
1120
|
|
994
|
-
|
995
|
-
|
996
|
-
}
|
997
|
-
}
|
1121
|
+
if (hasOwnProp(b, 'valueOf')) {
|
1122
|
+
a.valueOf = b.valueOf;
|
998
1123
|
}
|
999
|
-
} catch (err) {
|
1000
|
-
_iterator.e(err);
|
1001
|
-
} finally {
|
1002
|
-
_iterator.f();
|
1003
|
-
}
|
1004
1124
|
|
1005
|
-
|
1125
|
+
return a;
|
1006
1126
|
}
|
1007
|
-
var calcWidth = function calcWidth(width) {
|
1008
|
-
return document.body.clientWidth / 3840 * width;
|
1009
|
-
};
|
1010
|
-
var calcHeight = function calcHeight(height) {
|
1011
|
-
return document.body.clientHeight / 2160 * height;
|
1012
|
-
};
|
1013
|
-
/* eslint-disable no-param-reassign */
|
1014
|
-
|
1015
|
-
function deepCopy(target) {
|
1016
|
-
if (Object.prototype.toString.call({}).slice(8, -1) == 'Object') {
|
1017
|
-
var result = Array.isArray(target) ? [] : {}; // eslint-disable-next-line no-restricted-syntax
|
1018
1127
|
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
var _target$key, _target$key2;
|
1128
|
+
function createUTC(input, format, locale, strict) {
|
1129
|
+
return createLocalOrUTC(input, format, locale, strict, true).utc();
|
1130
|
+
}
|
1023
1131
|
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1132
|
+
function defaultParsingFlags() {
|
1133
|
+
// We need to deep clone this object.
|
1134
|
+
return {
|
1135
|
+
empty: false,
|
1136
|
+
unusedTokens: [],
|
1137
|
+
unusedInput: [],
|
1138
|
+
overflow: -2,
|
1139
|
+
charsLeftOver: 0,
|
1140
|
+
nullInput: false,
|
1141
|
+
invalidEra: null,
|
1142
|
+
invalidMonth: null,
|
1143
|
+
invalidFormat: false,
|
1144
|
+
userInvalidated: false,
|
1145
|
+
iso: false,
|
1146
|
+
parsedDateParts: [],
|
1147
|
+
era: null,
|
1148
|
+
meridiem: null,
|
1149
|
+
rfc2822: false,
|
1150
|
+
weekdayMismatch: false,
|
1151
|
+
};
|
1152
|
+
}
|
1031
1153
|
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
result[key] = deepCopy(target[key]);
|
1036
|
-
}
|
1037
|
-
} else {
|
1038
|
-
result[key] = target[key];
|
1039
|
-
}
|
1040
|
-
} else {
|
1041
|
-
result[key] = target[key];
|
1042
|
-
}
|
1154
|
+
function getParsingFlags(m) {
|
1155
|
+
if (m._pf == null) {
|
1156
|
+
m._pf = defaultParsingFlags();
|
1043
1157
|
}
|
1044
|
-
|
1045
|
-
return result;
|
1046
|
-
}
|
1047
|
-
|
1048
|
-
return target;
|
1049
|
-
}
|
1050
|
-
|
1051
|
-
var _excluded$2 = ["className", "frameStyle", "style", "direction", "children"];
|
1052
|
-
function FrameBox(_ref) {
|
1053
|
-
var _classnames;
|
1054
|
-
|
1055
|
-
var className = _ref.className,
|
1056
|
-
frameStyle = _ref.frameStyle,
|
1057
|
-
style = _ref.style,
|
1058
|
-
_ref$direction = _ref.direction,
|
1059
|
-
direction = _ref$direction === void 0 ? 'in' : _ref$direction,
|
1060
|
-
children = _ref.children,
|
1061
|
-
props = _objectWithoutProperties(_ref, _excluded$2);
|
1062
|
-
|
1063
|
-
return /*#__PURE__*/React.createElement("div", _objectSpread2({
|
1064
|
-
className: classnames((_classnames = {}, _defineProperty(_classnames, 'frame', true), _defineProperty(_classnames, className || '', true), _classnames)),
|
1065
|
-
style: style
|
1066
|
-
}, props), /*#__PURE__*/React.createElement("div", {
|
1067
|
-
className: 'framelt',
|
1068
|
-
style: _objectSpread2({
|
1069
|
-
transform: "translateY(".concat(direction == 'in' ? 0 : -100, "%)"),
|
1070
|
-
left: "".concat(direction == 'in' ? 0 : -1, "px)")
|
1071
|
-
}, frameStyle)
|
1072
|
-
}), /*#__PURE__*/React.createElement("div", {
|
1073
|
-
className: 'framert',
|
1074
|
-
style: _objectSpread2({
|
1075
|
-
transform: "translateY(".concat(direction == 'in' ? 0 : -100, "%)"),
|
1076
|
-
right: "".concat(direction == 'in' ? 0 : -1, "px)")
|
1077
|
-
}, frameStyle)
|
1078
|
-
}), /*#__PURE__*/React.createElement("div", {
|
1079
|
-
className: 'framelb',
|
1080
|
-
style: _objectSpread2({
|
1081
|
-
transform: "translateY(".concat(direction == 'in' ? 0 : 100, "%)"),
|
1082
|
-
right: "".concat(direction == 'in' ? 0 : -1, "px)")
|
1083
|
-
}, frameStyle)
|
1084
|
-
}), /*#__PURE__*/React.createElement("div", {
|
1085
|
-
className: 'framerb',
|
1086
|
-
style: _objectSpread2({
|
1087
|
-
transform: "translateY(".concat(direction == 'in' ? 0 : 100, "%)"),
|
1088
|
-
left: "".concat(direction == 'in' ? 0 : -1, "px)")
|
1089
|
-
}, frameStyle)
|
1090
|
-
}), children);
|
1091
|
-
}
|
1092
|
-
|
1093
|
-
var _excluded$3 = ["request", "valueEnum", "onLoad", "children", "params"],
|
1094
|
-
_excluded2 = ["value", "label"],
|
1095
|
-
_excluded3 = ["children"];
|
1096
|
-
|
1097
|
-
var WSelect = function WSelect(props) {
|
1098
|
-
var request = props.request,
|
1099
|
-
valueEnum = props.valueEnum,
|
1100
|
-
onLoad = props.onLoad,
|
1101
|
-
children = props.children,
|
1102
|
-
params = props.params,
|
1103
|
-
extraProps = _objectWithoutProperties(props, _excluded$3);
|
1104
|
-
|
1105
|
-
var _useState = useState([]),
|
1106
|
-
_useState2 = _slicedToArray(_useState, 2),
|
1107
|
-
childrenNode = _useState2[0],
|
1108
|
-
setChildrenNode = _useState2[1];
|
1109
|
-
|
1110
|
-
var _useState3 = useState([]),
|
1111
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
1112
|
-
valueEnumList = _useState4[0],
|
1113
|
-
setValueEnumList = _useState4[1];
|
1114
|
-
|
1115
|
-
var _useState5 = useState(null),
|
1116
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
1117
|
-
resList = _useState6[0],
|
1118
|
-
setResList = _useState6[1];
|
1119
|
-
|
1120
|
-
useEffect(function () {
|
1121
|
-
var isUnmount = false;
|
1122
|
-
|
1123
|
-
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
1124
|
-
var res, node;
|
1125
|
-
return regeneratorRuntime.wrap(function _callee$(_context) {
|
1126
|
-
while (1) {
|
1127
|
-
switch (_context.prev = _context.next) {
|
1128
|
-
case 0:
|
1129
|
-
if (!request) {
|
1130
|
-
_context.next = 10;
|
1131
|
-
break;
|
1132
|
-
}
|
1133
|
-
|
1134
|
-
_context.next = 3;
|
1135
|
-
return request();
|
1136
|
-
|
1137
|
-
case 3:
|
1138
|
-
res = _context.sent;
|
1139
|
-
|
1140
|
-
if (!isUnmount) {
|
1141
|
-
_context.next = 6;
|
1142
|
-
break;
|
1143
|
-
}
|
1144
|
-
|
1145
|
-
return _context.abrupt("return");
|
1146
|
-
|
1147
|
-
case 6:
|
1148
|
-
setResList(res);
|
1149
|
-
onLoad && onLoad(res);
|
1150
|
-
node = res === null || res === void 0 ? void 0 : res.map(function (_ref2) {
|
1151
|
-
var value = _ref2.value,
|
1152
|
-
label = _ref2.label,
|
1153
|
-
extraProps = _objectWithoutProperties(_ref2, _excluded2);
|
1154
|
-
|
1155
|
-
return /*#__PURE__*/React.createElement(_Select.Option, _objectSpread2({
|
1156
|
-
key: value,
|
1157
|
-
value: value
|
1158
|
-
}, extraProps), label) || /*#__PURE__*/React.createElement(React.Fragment, null);
|
1159
|
-
});
|
1160
|
-
setChildrenNode(node);
|
1161
|
-
|
1162
|
-
case 10:
|
1163
|
-
case "end":
|
1164
|
-
return _context.stop();
|
1165
|
-
}
|
1166
|
-
}
|
1167
|
-
}, _callee);
|
1168
|
-
}))();
|
1169
|
-
|
1170
|
-
var valueEnumNode = [];
|
1171
|
-
var options = [];
|
1172
|
-
|
1173
|
-
if (valueEnum) {
|
1174
|
-
for (var key in valueEnum) {
|
1175
|
-
var text = '';
|
1176
|
-
|
1177
|
-
if (typeof valueEnum[key] === 'string') {
|
1178
|
-
text = valueEnum[key];
|
1179
|
-
} else {
|
1180
|
-
var _valueEnum$key;
|
1181
|
-
|
1182
|
-
text = (_valueEnum$key = valueEnum[key]) === null || _valueEnum$key === void 0 ? void 0 : _valueEnum$key.text;
|
1183
|
-
}
|
1184
|
-
|
1185
|
-
options.push({
|
1186
|
-
label: text,
|
1187
|
-
value: key
|
1188
|
-
});
|
1189
|
-
valueEnumNode.push( /*#__PURE__*/React.createElement(_Select.Option, {
|
1190
|
-
key: key,
|
1191
|
-
value: key
|
1192
|
-
}, text));
|
1193
|
-
}
|
1194
|
-
}
|
1195
|
-
|
1196
|
-
onLoad && onLoad(options);
|
1197
|
-
setValueEnumList(valueEnumNode);
|
1198
|
-
return function () {
|
1199
|
-
isUnmount = true;
|
1200
|
-
};
|
1201
|
-
}, [JSON.stringify(params || {})]);
|
1202
|
-
return /*#__PURE__*/React.createElement(_Select, _objectSpread2({
|
1203
|
-
showSearch: true,
|
1204
|
-
filterOption: function filterOption(input, option) {
|
1205
|
-
return option.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
1206
|
-
}
|
1207
|
-
}, extraProps), request ? childrenNode : valueEnum ? valueEnumList : children);
|
1208
|
-
};
|
1209
|
-
|
1210
|
-
WSelect.defaultProps = {};
|
1211
|
-
|
1212
|
-
var Option = function Option(props) {
|
1213
|
-
var children = props.children,
|
1214
|
-
extraProps = _objectWithoutProperties(props, _excluded3);
|
1215
|
-
|
1216
|
-
return /*#__PURE__*/React.createElement(_Select.Option, _objectSpread2({}, extraProps), children);
|
1217
|
-
};
|
1218
|
-
|
1219
|
-
var Index$5 = WSelect;
|
1220
|
-
Index$5.Option = Option;
|
1221
|
-
var Select = /*#__PURE__*/memo(Index$5);
|
1222
|
-
|
1223
|
-
//! moment.js
|
1224
|
-
//! version : 2.29.1
|
1225
|
-
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
1226
|
-
//! license : MIT
|
1227
|
-
//! momentjs.com
|
1228
|
-
|
1229
|
-
var hookCallback;
|
1230
|
-
|
1231
|
-
function hooks() {
|
1232
|
-
return hookCallback.apply(null, arguments);
|
1233
|
-
}
|
1234
|
-
|
1235
|
-
// This is done to register the method called with moment()
|
1236
|
-
// without creating circular dependencies.
|
1237
|
-
function setHookCallback(callback) {
|
1238
|
-
hookCallback = callback;
|
1239
|
-
}
|
1240
|
-
|
1241
|
-
function isArray(input) {
|
1242
|
-
return (
|
1243
|
-
input instanceof Array ||
|
1244
|
-
Object.prototype.toString.call(input) === '[object Array]'
|
1245
|
-
);
|
1246
|
-
}
|
1247
|
-
|
1248
|
-
function isObject(input) {
|
1249
|
-
// IE8 will treat undefined and null as object if it wasn't for
|
1250
|
-
// input != null
|
1251
|
-
return (
|
1252
|
-
input != null &&
|
1253
|
-
Object.prototype.toString.call(input) === '[object Object]'
|
1254
|
-
);
|
1255
|
-
}
|
1256
|
-
|
1257
|
-
function hasOwnProp(a, b) {
|
1258
|
-
return Object.prototype.hasOwnProperty.call(a, b);
|
1259
|
-
}
|
1260
|
-
|
1261
|
-
function isObjectEmpty(obj) {
|
1262
|
-
if (Object.getOwnPropertyNames) {
|
1263
|
-
return Object.getOwnPropertyNames(obj).length === 0;
|
1264
|
-
} else {
|
1265
|
-
var k;
|
1266
|
-
for (k in obj) {
|
1267
|
-
if (hasOwnProp(obj, k)) {
|
1268
|
-
return false;
|
1269
|
-
}
|
1270
|
-
}
|
1271
|
-
return true;
|
1272
|
-
}
|
1273
|
-
}
|
1274
|
-
|
1275
|
-
function isUndefined(input) {
|
1276
|
-
return input === void 0;
|
1277
|
-
}
|
1278
|
-
|
1279
|
-
function isNumber(input) {
|
1280
|
-
return (
|
1281
|
-
typeof input === 'number' ||
|
1282
|
-
Object.prototype.toString.call(input) === '[object Number]'
|
1283
|
-
);
|
1284
|
-
}
|
1285
|
-
|
1286
|
-
function isDate(input) {
|
1287
|
-
return (
|
1288
|
-
input instanceof Date ||
|
1289
|
-
Object.prototype.toString.call(input) === '[object Date]'
|
1290
|
-
);
|
1291
|
-
}
|
1292
|
-
|
1293
|
-
function map(arr, fn) {
|
1294
|
-
var res = [],
|
1295
|
-
i;
|
1296
|
-
for (i = 0; i < arr.length; ++i) {
|
1297
|
-
res.push(fn(arr[i], i));
|
1298
|
-
}
|
1299
|
-
return res;
|
1300
|
-
}
|
1301
|
-
|
1302
|
-
function extend(a, b) {
|
1303
|
-
for (var i in b) {
|
1304
|
-
if (hasOwnProp(b, i)) {
|
1305
|
-
a[i] = b[i];
|
1306
|
-
}
|
1307
|
-
}
|
1308
|
-
|
1309
|
-
if (hasOwnProp(b, 'toString')) {
|
1310
|
-
a.toString = b.toString;
|
1311
|
-
}
|
1312
|
-
|
1313
|
-
if (hasOwnProp(b, 'valueOf')) {
|
1314
|
-
a.valueOf = b.valueOf;
|
1315
|
-
}
|
1316
|
-
|
1317
|
-
return a;
|
1318
|
-
}
|
1319
|
-
|
1320
|
-
function createUTC(input, format, locale, strict) {
|
1321
|
-
return createLocalOrUTC(input, format, locale, strict, true).utc();
|
1322
|
-
}
|
1323
|
-
|
1324
|
-
function defaultParsingFlags() {
|
1325
|
-
// We need to deep clone this object.
|
1326
|
-
return {
|
1327
|
-
empty: false,
|
1328
|
-
unusedTokens: [],
|
1329
|
-
unusedInput: [],
|
1330
|
-
overflow: -2,
|
1331
|
-
charsLeftOver: 0,
|
1332
|
-
nullInput: false,
|
1333
|
-
invalidEra: null,
|
1334
|
-
invalidMonth: null,
|
1335
|
-
invalidFormat: false,
|
1336
|
-
userInvalidated: false,
|
1337
|
-
iso: false,
|
1338
|
-
parsedDateParts: [],
|
1339
|
-
era: null,
|
1340
|
-
meridiem: null,
|
1341
|
-
rfc2822: false,
|
1342
|
-
weekdayMismatch: false,
|
1343
|
-
};
|
1344
|
-
}
|
1345
|
-
|
1346
|
-
function getParsingFlags(m) {
|
1347
|
-
if (m._pf == null) {
|
1348
|
-
m._pf = defaultParsingFlags();
|
1349
|
-
}
|
1350
|
-
return m._pf;
|
1158
|
+
return m._pf;
|
1351
1159
|
}
|
1352
1160
|
|
1353
1161
|
var some;
|
@@ -5894,994 +5702,1436 @@ addUnitAlias('quarter', 'Q');
|
|
5894
5702
|
|
5895
5703
|
// PRIORITY
|
5896
5704
|
|
5897
|
-
addUnitPriority('quarter', 7);
|
5705
|
+
addUnitPriority('quarter', 7);
|
5706
|
+
|
5707
|
+
// PARSING
|
5708
|
+
|
5709
|
+
addRegexToken('Q', match1);
|
5710
|
+
addParseToken('Q', function (input, array) {
|
5711
|
+
array[MONTH] = (toInt(input) - 1) * 3;
|
5712
|
+
});
|
5713
|
+
|
5714
|
+
// MOMENTS
|
5715
|
+
|
5716
|
+
function getSetQuarter(input) {
|
5717
|
+
return input == null
|
5718
|
+
? Math.ceil((this.month() + 1) / 3)
|
5719
|
+
: this.month((input - 1) * 3 + (this.month() % 3));
|
5720
|
+
}
|
5721
|
+
|
5722
|
+
// FORMATTING
|
5723
|
+
|
5724
|
+
addFormatToken('D', ['DD', 2], 'Do', 'date');
|
5725
|
+
|
5726
|
+
// ALIASES
|
5727
|
+
|
5728
|
+
addUnitAlias('date', 'D');
|
5729
|
+
|
5730
|
+
// PRIORITY
|
5731
|
+
addUnitPriority('date', 9);
|
5732
|
+
|
5733
|
+
// PARSING
|
5734
|
+
|
5735
|
+
addRegexToken('D', match1to2);
|
5736
|
+
addRegexToken('DD', match1to2, match2);
|
5737
|
+
addRegexToken('Do', function (isStrict, locale) {
|
5738
|
+
// TODO: Remove "ordinalParse" fallback in next major release.
|
5739
|
+
return isStrict
|
5740
|
+
? locale._dayOfMonthOrdinalParse || locale._ordinalParse
|
5741
|
+
: locale._dayOfMonthOrdinalParseLenient;
|
5742
|
+
});
|
5743
|
+
|
5744
|
+
addParseToken(['D', 'DD'], DATE);
|
5745
|
+
addParseToken('Do', function (input, array) {
|
5746
|
+
array[DATE] = toInt(input.match(match1to2)[0]);
|
5747
|
+
});
|
5748
|
+
|
5749
|
+
// MOMENTS
|
5750
|
+
|
5751
|
+
var getSetDayOfMonth = makeGetSet('Date', true);
|
5752
|
+
|
5753
|
+
// FORMATTING
|
5754
|
+
|
5755
|
+
addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
|
5756
|
+
|
5757
|
+
// ALIASES
|
5758
|
+
|
5759
|
+
addUnitAlias('dayOfYear', 'DDD');
|
5760
|
+
|
5761
|
+
// PRIORITY
|
5762
|
+
addUnitPriority('dayOfYear', 4);
|
5763
|
+
|
5764
|
+
// PARSING
|
5765
|
+
|
5766
|
+
addRegexToken('DDD', match1to3);
|
5767
|
+
addRegexToken('DDDD', match3);
|
5768
|
+
addParseToken(['DDD', 'DDDD'], function (input, array, config) {
|
5769
|
+
config._dayOfYear = toInt(input);
|
5770
|
+
});
|
5771
|
+
|
5772
|
+
// HELPERS
|
5773
|
+
|
5774
|
+
// MOMENTS
|
5775
|
+
|
5776
|
+
function getSetDayOfYear(input) {
|
5777
|
+
var dayOfYear =
|
5778
|
+
Math.round(
|
5779
|
+
(this.clone().startOf('day') - this.clone().startOf('year')) / 864e5
|
5780
|
+
) + 1;
|
5781
|
+
return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');
|
5782
|
+
}
|
5783
|
+
|
5784
|
+
// FORMATTING
|
5785
|
+
|
5786
|
+
addFormatToken('m', ['mm', 2], 0, 'minute');
|
5787
|
+
|
5788
|
+
// ALIASES
|
5789
|
+
|
5790
|
+
addUnitAlias('minute', 'm');
|
5791
|
+
|
5792
|
+
// PRIORITY
|
5793
|
+
|
5794
|
+
addUnitPriority('minute', 14);
|
5795
|
+
|
5796
|
+
// PARSING
|
5797
|
+
|
5798
|
+
addRegexToken('m', match1to2);
|
5799
|
+
addRegexToken('mm', match1to2, match2);
|
5800
|
+
addParseToken(['m', 'mm'], MINUTE);
|
5801
|
+
|
5802
|
+
// MOMENTS
|
5803
|
+
|
5804
|
+
var getSetMinute = makeGetSet('Minutes', false);
|
5805
|
+
|
5806
|
+
// FORMATTING
|
5807
|
+
|
5808
|
+
addFormatToken('s', ['ss', 2], 0, 'second');
|
5809
|
+
|
5810
|
+
// ALIASES
|
5811
|
+
|
5812
|
+
addUnitAlias('second', 's');
|
5813
|
+
|
5814
|
+
// PRIORITY
|
5815
|
+
|
5816
|
+
addUnitPriority('second', 15);
|
5817
|
+
|
5818
|
+
// PARSING
|
5819
|
+
|
5820
|
+
addRegexToken('s', match1to2);
|
5821
|
+
addRegexToken('ss', match1to2, match2);
|
5822
|
+
addParseToken(['s', 'ss'], SECOND);
|
5823
|
+
|
5824
|
+
// MOMENTS
|
5825
|
+
|
5826
|
+
var getSetSecond = makeGetSet('Seconds', false);
|
5827
|
+
|
5828
|
+
// FORMATTING
|
5829
|
+
|
5830
|
+
addFormatToken('S', 0, 0, function () {
|
5831
|
+
return ~~(this.millisecond() / 100);
|
5832
|
+
});
|
5833
|
+
|
5834
|
+
addFormatToken(0, ['SS', 2], 0, function () {
|
5835
|
+
return ~~(this.millisecond() / 10);
|
5836
|
+
});
|
5837
|
+
|
5838
|
+
addFormatToken(0, ['SSS', 3], 0, 'millisecond');
|
5839
|
+
addFormatToken(0, ['SSSS', 4], 0, function () {
|
5840
|
+
return this.millisecond() * 10;
|
5841
|
+
});
|
5842
|
+
addFormatToken(0, ['SSSSS', 5], 0, function () {
|
5843
|
+
return this.millisecond() * 100;
|
5844
|
+
});
|
5845
|
+
addFormatToken(0, ['SSSSSS', 6], 0, function () {
|
5846
|
+
return this.millisecond() * 1000;
|
5847
|
+
});
|
5848
|
+
addFormatToken(0, ['SSSSSSS', 7], 0, function () {
|
5849
|
+
return this.millisecond() * 10000;
|
5850
|
+
});
|
5851
|
+
addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
|
5852
|
+
return this.millisecond() * 100000;
|
5853
|
+
});
|
5854
|
+
addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
|
5855
|
+
return this.millisecond() * 1000000;
|
5856
|
+
});
|
5857
|
+
|
5858
|
+
// ALIASES
|
5859
|
+
|
5860
|
+
addUnitAlias('millisecond', 'ms');
|
5861
|
+
|
5862
|
+
// PRIORITY
|
5863
|
+
|
5864
|
+
addUnitPriority('millisecond', 16);
|
5865
|
+
|
5866
|
+
// PARSING
|
5867
|
+
|
5868
|
+
addRegexToken('S', match1to3, match1);
|
5869
|
+
addRegexToken('SS', match1to3, match2);
|
5870
|
+
addRegexToken('SSS', match1to3, match3);
|
5871
|
+
|
5872
|
+
var token, getSetMillisecond;
|
5873
|
+
for (token = 'SSSS'; token.length <= 9; token += 'S') {
|
5874
|
+
addRegexToken(token, matchUnsigned);
|
5875
|
+
}
|
5876
|
+
|
5877
|
+
function parseMs(input, array) {
|
5878
|
+
array[MILLISECOND] = toInt(('0.' + input) * 1000);
|
5879
|
+
}
|
5880
|
+
|
5881
|
+
for (token = 'S'; token.length <= 9; token += 'S') {
|
5882
|
+
addParseToken(token, parseMs);
|
5883
|
+
}
|
5884
|
+
|
5885
|
+
getSetMillisecond = makeGetSet('Milliseconds', false);
|
5886
|
+
|
5887
|
+
// FORMATTING
|
5888
|
+
|
5889
|
+
addFormatToken('z', 0, 0, 'zoneAbbr');
|
5890
|
+
addFormatToken('zz', 0, 0, 'zoneName');
|
5891
|
+
|
5892
|
+
// MOMENTS
|
5898
5893
|
|
5899
|
-
|
5894
|
+
function getZoneAbbr() {
|
5895
|
+
return this._isUTC ? 'UTC' : '';
|
5896
|
+
}
|
5900
5897
|
|
5901
|
-
|
5902
|
-
|
5903
|
-
|
5904
|
-
});
|
5898
|
+
function getZoneName() {
|
5899
|
+
return this._isUTC ? 'Coordinated Universal Time' : '';
|
5900
|
+
}
|
5905
5901
|
|
5906
|
-
|
5902
|
+
var proto = Moment.prototype;
|
5907
5903
|
|
5908
|
-
|
5909
|
-
|
5910
|
-
|
5911
|
-
|
5904
|
+
proto.add = add;
|
5905
|
+
proto.calendar = calendar$1;
|
5906
|
+
proto.clone = clone;
|
5907
|
+
proto.diff = diff;
|
5908
|
+
proto.endOf = endOf;
|
5909
|
+
proto.format = format;
|
5910
|
+
proto.from = from;
|
5911
|
+
proto.fromNow = fromNow;
|
5912
|
+
proto.to = to;
|
5913
|
+
proto.toNow = toNow;
|
5914
|
+
proto.get = stringGet;
|
5915
|
+
proto.invalidAt = invalidAt;
|
5916
|
+
proto.isAfter = isAfter;
|
5917
|
+
proto.isBefore = isBefore;
|
5918
|
+
proto.isBetween = isBetween;
|
5919
|
+
proto.isSame = isSame;
|
5920
|
+
proto.isSameOrAfter = isSameOrAfter;
|
5921
|
+
proto.isSameOrBefore = isSameOrBefore;
|
5922
|
+
proto.isValid = isValid$2;
|
5923
|
+
proto.lang = lang;
|
5924
|
+
proto.locale = locale;
|
5925
|
+
proto.localeData = localeData;
|
5926
|
+
proto.max = prototypeMax;
|
5927
|
+
proto.min = prototypeMin;
|
5928
|
+
proto.parsingFlags = parsingFlags;
|
5929
|
+
proto.set = stringSet;
|
5930
|
+
proto.startOf = startOf;
|
5931
|
+
proto.subtract = subtract;
|
5932
|
+
proto.toArray = toArray;
|
5933
|
+
proto.toObject = toObject;
|
5934
|
+
proto.toDate = toDate;
|
5935
|
+
proto.toISOString = toISOString;
|
5936
|
+
proto.inspect = inspect;
|
5937
|
+
if (typeof Symbol !== 'undefined' && Symbol.for != null) {
|
5938
|
+
proto[Symbol.for('nodejs.util.inspect.custom')] = function () {
|
5939
|
+
return 'Moment<' + this.format() + '>';
|
5940
|
+
};
|
5912
5941
|
}
|
5942
|
+
proto.toJSON = toJSON;
|
5943
|
+
proto.toString = toString;
|
5944
|
+
proto.unix = unix;
|
5945
|
+
proto.valueOf = valueOf;
|
5946
|
+
proto.creationData = creationData;
|
5947
|
+
proto.eraName = getEraName;
|
5948
|
+
proto.eraNarrow = getEraNarrow;
|
5949
|
+
proto.eraAbbr = getEraAbbr;
|
5950
|
+
proto.eraYear = getEraYear;
|
5951
|
+
proto.year = getSetYear;
|
5952
|
+
proto.isLeapYear = getIsLeapYear;
|
5953
|
+
proto.weekYear = getSetWeekYear;
|
5954
|
+
proto.isoWeekYear = getSetISOWeekYear;
|
5955
|
+
proto.quarter = proto.quarters = getSetQuarter;
|
5956
|
+
proto.month = getSetMonth;
|
5957
|
+
proto.daysInMonth = getDaysInMonth;
|
5958
|
+
proto.week = proto.weeks = getSetWeek;
|
5959
|
+
proto.isoWeek = proto.isoWeeks = getSetISOWeek;
|
5960
|
+
proto.weeksInYear = getWeeksInYear;
|
5961
|
+
proto.weeksInWeekYear = getWeeksInWeekYear;
|
5962
|
+
proto.isoWeeksInYear = getISOWeeksInYear;
|
5963
|
+
proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;
|
5964
|
+
proto.date = getSetDayOfMonth;
|
5965
|
+
proto.day = proto.days = getSetDayOfWeek;
|
5966
|
+
proto.weekday = getSetLocaleDayOfWeek;
|
5967
|
+
proto.isoWeekday = getSetISODayOfWeek;
|
5968
|
+
proto.dayOfYear = getSetDayOfYear;
|
5969
|
+
proto.hour = proto.hours = getSetHour;
|
5970
|
+
proto.minute = proto.minutes = getSetMinute;
|
5971
|
+
proto.second = proto.seconds = getSetSecond;
|
5972
|
+
proto.millisecond = proto.milliseconds = getSetMillisecond;
|
5973
|
+
proto.utcOffset = getSetOffset;
|
5974
|
+
proto.utc = setOffsetToUTC;
|
5975
|
+
proto.local = setOffsetToLocal;
|
5976
|
+
proto.parseZone = setOffsetToParsedOffset;
|
5977
|
+
proto.hasAlignedHourOffset = hasAlignedHourOffset;
|
5978
|
+
proto.isDST = isDaylightSavingTime;
|
5979
|
+
proto.isLocal = isLocal;
|
5980
|
+
proto.isUtcOffset = isUtcOffset;
|
5981
|
+
proto.isUtc = isUtc;
|
5982
|
+
proto.isUTC = isUtc;
|
5983
|
+
proto.zoneAbbr = getZoneAbbr;
|
5984
|
+
proto.zoneName = getZoneName;
|
5985
|
+
proto.dates = deprecate(
|
5986
|
+
'dates accessor is deprecated. Use date instead.',
|
5987
|
+
getSetDayOfMonth
|
5988
|
+
);
|
5989
|
+
proto.months = deprecate(
|
5990
|
+
'months accessor is deprecated. Use month instead',
|
5991
|
+
getSetMonth
|
5992
|
+
);
|
5993
|
+
proto.years = deprecate(
|
5994
|
+
'years accessor is deprecated. Use year instead',
|
5995
|
+
getSetYear
|
5996
|
+
);
|
5997
|
+
proto.zone = deprecate(
|
5998
|
+
'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',
|
5999
|
+
getSetZone
|
6000
|
+
);
|
6001
|
+
proto.isDSTShifted = deprecate(
|
6002
|
+
'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',
|
6003
|
+
isDaylightSavingTimeShifted
|
6004
|
+
);
|
5913
6005
|
|
5914
|
-
|
6006
|
+
function createUnix(input) {
|
6007
|
+
return createLocal(input * 1000);
|
6008
|
+
}
|
5915
6009
|
|
5916
|
-
|
6010
|
+
function createInZone() {
|
6011
|
+
return createLocal.apply(null, arguments).parseZone();
|
6012
|
+
}
|
5917
6013
|
|
5918
|
-
|
6014
|
+
function preParsePostFormat(string) {
|
6015
|
+
return string;
|
6016
|
+
}
|
5919
6017
|
|
5920
|
-
|
6018
|
+
var proto$1 = Locale.prototype;
|
5921
6019
|
|
5922
|
-
|
5923
|
-
|
6020
|
+
proto$1.calendar = calendar;
|
6021
|
+
proto$1.longDateFormat = longDateFormat;
|
6022
|
+
proto$1.invalidDate = invalidDate;
|
6023
|
+
proto$1.ordinal = ordinal;
|
6024
|
+
proto$1.preparse = preParsePostFormat;
|
6025
|
+
proto$1.postformat = preParsePostFormat;
|
6026
|
+
proto$1.relativeTime = relativeTime;
|
6027
|
+
proto$1.pastFuture = pastFuture;
|
6028
|
+
proto$1.set = set;
|
6029
|
+
proto$1.eras = localeEras;
|
6030
|
+
proto$1.erasParse = localeErasParse;
|
6031
|
+
proto$1.erasConvertYear = localeErasConvertYear;
|
6032
|
+
proto$1.erasAbbrRegex = erasAbbrRegex;
|
6033
|
+
proto$1.erasNameRegex = erasNameRegex;
|
6034
|
+
proto$1.erasNarrowRegex = erasNarrowRegex;
|
5924
6035
|
|
5925
|
-
|
6036
|
+
proto$1.months = localeMonths;
|
6037
|
+
proto$1.monthsShort = localeMonthsShort;
|
6038
|
+
proto$1.monthsParse = localeMonthsParse;
|
6039
|
+
proto$1.monthsRegex = monthsRegex;
|
6040
|
+
proto$1.monthsShortRegex = monthsShortRegex;
|
6041
|
+
proto$1.week = localeWeek;
|
6042
|
+
proto$1.firstDayOfYear = localeFirstDayOfYear;
|
6043
|
+
proto$1.firstDayOfWeek = localeFirstDayOfWeek;
|
5926
6044
|
|
5927
|
-
|
5928
|
-
|
5929
|
-
|
5930
|
-
|
5931
|
-
return isStrict
|
5932
|
-
? locale._dayOfMonthOrdinalParse || locale._ordinalParse
|
5933
|
-
: locale._dayOfMonthOrdinalParseLenient;
|
5934
|
-
});
|
6045
|
+
proto$1.weekdays = localeWeekdays;
|
6046
|
+
proto$1.weekdaysMin = localeWeekdaysMin;
|
6047
|
+
proto$1.weekdaysShort = localeWeekdaysShort;
|
6048
|
+
proto$1.weekdaysParse = localeWeekdaysParse;
|
5935
6049
|
|
5936
|
-
|
5937
|
-
|
5938
|
-
|
5939
|
-
});
|
6050
|
+
proto$1.weekdaysRegex = weekdaysRegex;
|
6051
|
+
proto$1.weekdaysShortRegex = weekdaysShortRegex;
|
6052
|
+
proto$1.weekdaysMinRegex = weekdaysMinRegex;
|
5940
6053
|
|
5941
|
-
|
6054
|
+
proto$1.isPM = localeIsPM;
|
6055
|
+
proto$1.meridiem = localeMeridiem;
|
5942
6056
|
|
5943
|
-
|
6057
|
+
function get$1(format, index, field, setter) {
|
6058
|
+
var locale = getLocale(),
|
6059
|
+
utc = createUTC().set(setter, index);
|
6060
|
+
return locale[field](utc, format);
|
6061
|
+
}
|
5944
6062
|
|
5945
|
-
|
6063
|
+
function listMonthsImpl(format, index, field) {
|
6064
|
+
if (isNumber(format)) {
|
6065
|
+
index = format;
|
6066
|
+
format = undefined;
|
6067
|
+
}
|
5946
6068
|
|
5947
|
-
|
6069
|
+
format = format || '';
|
5948
6070
|
|
5949
|
-
|
6071
|
+
if (index != null) {
|
6072
|
+
return get$1(format, index, field, 'month');
|
6073
|
+
}
|
5950
6074
|
|
5951
|
-
|
6075
|
+
var i,
|
6076
|
+
out = [];
|
6077
|
+
for (i = 0; i < 12; i++) {
|
6078
|
+
out[i] = get$1(format, i, field, 'month');
|
6079
|
+
}
|
6080
|
+
return out;
|
6081
|
+
}
|
5952
6082
|
|
5953
|
-
//
|
5954
|
-
|
6083
|
+
// ()
|
6084
|
+
// (5)
|
6085
|
+
// (fmt, 5)
|
6086
|
+
// (fmt)
|
6087
|
+
// (true)
|
6088
|
+
// (true, 5)
|
6089
|
+
// (true, fmt, 5)
|
6090
|
+
// (true, fmt)
|
6091
|
+
function listWeekdaysImpl(localeSorted, format, index, field) {
|
6092
|
+
if (typeof localeSorted === 'boolean') {
|
6093
|
+
if (isNumber(format)) {
|
6094
|
+
index = format;
|
6095
|
+
format = undefined;
|
6096
|
+
}
|
5955
6097
|
|
5956
|
-
|
6098
|
+
format = format || '';
|
6099
|
+
} else {
|
6100
|
+
format = localeSorted;
|
6101
|
+
index = format;
|
6102
|
+
localeSorted = false;
|
5957
6103
|
|
5958
|
-
|
5959
|
-
|
5960
|
-
|
5961
|
-
|
5962
|
-
});
|
6104
|
+
if (isNumber(format)) {
|
6105
|
+
index = format;
|
6106
|
+
format = undefined;
|
6107
|
+
}
|
5963
6108
|
|
5964
|
-
|
6109
|
+
format = format || '';
|
6110
|
+
}
|
5965
6111
|
|
5966
|
-
|
6112
|
+
var locale = getLocale(),
|
6113
|
+
shift = localeSorted ? locale._week.dow : 0,
|
6114
|
+
i,
|
6115
|
+
out = [];
|
5967
6116
|
|
5968
|
-
|
5969
|
-
|
5970
|
-
|
5971
|
-
(this.clone().startOf('day') - this.clone().startOf('year')) / 864e5
|
5972
|
-
) + 1;
|
5973
|
-
return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');
|
5974
|
-
}
|
6117
|
+
if (index != null) {
|
6118
|
+
return get$1(format, (index + shift) % 7, field, 'day');
|
6119
|
+
}
|
5975
6120
|
|
5976
|
-
|
6121
|
+
for (i = 0; i < 7; i++) {
|
6122
|
+
out[i] = get$1(format, (i + shift) % 7, field, 'day');
|
6123
|
+
}
|
6124
|
+
return out;
|
6125
|
+
}
|
5977
6126
|
|
5978
|
-
|
6127
|
+
function listMonths(format, index) {
|
6128
|
+
return listMonthsImpl(format, index, 'months');
|
6129
|
+
}
|
5979
6130
|
|
5980
|
-
|
6131
|
+
function listMonthsShort(format, index) {
|
6132
|
+
return listMonthsImpl(format, index, 'monthsShort');
|
6133
|
+
}
|
5981
6134
|
|
5982
|
-
|
6135
|
+
function listWeekdays(localeSorted, format, index) {
|
6136
|
+
return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
|
6137
|
+
}
|
5983
6138
|
|
5984
|
-
|
6139
|
+
function listWeekdaysShort(localeSorted, format, index) {
|
6140
|
+
return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
|
6141
|
+
}
|
5985
6142
|
|
5986
|
-
|
6143
|
+
function listWeekdaysMin(localeSorted, format, index) {
|
6144
|
+
return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
|
6145
|
+
}
|
5987
6146
|
|
5988
|
-
|
6147
|
+
getSetGlobalLocale('en', {
|
6148
|
+
eras: [
|
6149
|
+
{
|
6150
|
+
since: '0001-01-01',
|
6151
|
+
until: +Infinity,
|
6152
|
+
offset: 1,
|
6153
|
+
name: 'Anno Domini',
|
6154
|
+
narrow: 'AD',
|
6155
|
+
abbr: 'AD',
|
6156
|
+
},
|
6157
|
+
{
|
6158
|
+
since: '0000-12-31',
|
6159
|
+
until: -Infinity,
|
6160
|
+
offset: 1,
|
6161
|
+
name: 'Before Christ',
|
6162
|
+
narrow: 'BC',
|
6163
|
+
abbr: 'BC',
|
6164
|
+
},
|
6165
|
+
],
|
6166
|
+
dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
|
6167
|
+
ordinal: function (number) {
|
6168
|
+
var b = number % 10,
|
6169
|
+
output =
|
6170
|
+
toInt((number % 100) / 10) === 1
|
6171
|
+
? 'th'
|
6172
|
+
: b === 1
|
6173
|
+
? 'st'
|
6174
|
+
: b === 2
|
6175
|
+
? 'nd'
|
6176
|
+
: b === 3
|
6177
|
+
? 'rd'
|
6178
|
+
: 'th';
|
6179
|
+
return number + output;
|
6180
|
+
},
|
6181
|
+
});
|
5989
6182
|
|
5990
|
-
|
5991
|
-
addRegexToken('mm', match1to2, match2);
|
5992
|
-
addParseToken(['m', 'mm'], MINUTE);
|
6183
|
+
// Side effect imports
|
5993
6184
|
|
5994
|
-
|
6185
|
+
hooks.lang = deprecate(
|
6186
|
+
'moment.lang is deprecated. Use moment.locale instead.',
|
6187
|
+
getSetGlobalLocale
|
6188
|
+
);
|
6189
|
+
hooks.langData = deprecate(
|
6190
|
+
'moment.langData is deprecated. Use moment.localeData instead.',
|
6191
|
+
getLocale
|
6192
|
+
);
|
5995
6193
|
|
5996
|
-
var
|
6194
|
+
var mathAbs = Math.abs;
|
5997
6195
|
|
5998
|
-
|
6196
|
+
function abs() {
|
6197
|
+
var data = this._data;
|
5999
6198
|
|
6000
|
-
|
6199
|
+
this._milliseconds = mathAbs(this._milliseconds);
|
6200
|
+
this._days = mathAbs(this._days);
|
6201
|
+
this._months = mathAbs(this._months);
|
6001
6202
|
|
6002
|
-
|
6203
|
+
data.milliseconds = mathAbs(data.milliseconds);
|
6204
|
+
data.seconds = mathAbs(data.seconds);
|
6205
|
+
data.minutes = mathAbs(data.minutes);
|
6206
|
+
data.hours = mathAbs(data.hours);
|
6207
|
+
data.months = mathAbs(data.months);
|
6208
|
+
data.years = mathAbs(data.years);
|
6003
6209
|
|
6004
|
-
|
6210
|
+
return this;
|
6211
|
+
}
|
6005
6212
|
|
6006
|
-
|
6213
|
+
function addSubtract$1(duration, input, value, direction) {
|
6214
|
+
var other = createDuration(input, value);
|
6007
6215
|
|
6008
|
-
|
6216
|
+
duration._milliseconds += direction * other._milliseconds;
|
6217
|
+
duration._days += direction * other._days;
|
6218
|
+
duration._months += direction * other._months;
|
6009
6219
|
|
6010
|
-
|
6220
|
+
return duration._bubble();
|
6221
|
+
}
|
6011
6222
|
|
6012
|
-
|
6013
|
-
|
6014
|
-
|
6223
|
+
// supports only 2.0-style add(1, 's') or add(duration)
|
6224
|
+
function add$1(input, value) {
|
6225
|
+
return addSubtract$1(this, input, value, 1);
|
6226
|
+
}
|
6015
6227
|
|
6016
|
-
//
|
6228
|
+
// supports only 2.0-style subtract(1, 's') or subtract(duration)
|
6229
|
+
function subtract$1(input, value) {
|
6230
|
+
return addSubtract$1(this, input, value, -1);
|
6231
|
+
}
|
6017
6232
|
|
6018
|
-
|
6233
|
+
function absCeil(number) {
|
6234
|
+
if (number < 0) {
|
6235
|
+
return Math.floor(number);
|
6236
|
+
} else {
|
6237
|
+
return Math.ceil(number);
|
6238
|
+
}
|
6239
|
+
}
|
6019
6240
|
|
6020
|
-
|
6241
|
+
function bubble() {
|
6242
|
+
var milliseconds = this._milliseconds,
|
6243
|
+
days = this._days,
|
6244
|
+
months = this._months,
|
6245
|
+
data = this._data,
|
6246
|
+
seconds,
|
6247
|
+
minutes,
|
6248
|
+
hours,
|
6249
|
+
years,
|
6250
|
+
monthsFromDays;
|
6021
6251
|
|
6022
|
-
|
6023
|
-
|
6024
|
-
|
6252
|
+
// if we have a mix of positive and negative values, bubble down first
|
6253
|
+
// check: https://github.com/moment/moment/issues/2166
|
6254
|
+
if (
|
6255
|
+
!(
|
6256
|
+
(milliseconds >= 0 && days >= 0 && months >= 0) ||
|
6257
|
+
(milliseconds <= 0 && days <= 0 && months <= 0)
|
6258
|
+
)
|
6259
|
+
) {
|
6260
|
+
milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
|
6261
|
+
days = 0;
|
6262
|
+
months = 0;
|
6263
|
+
}
|
6025
6264
|
|
6026
|
-
|
6027
|
-
|
6028
|
-
|
6265
|
+
// The following code bubbles up values, see the tests for
|
6266
|
+
// examples of what that means.
|
6267
|
+
data.milliseconds = milliseconds % 1000;
|
6029
6268
|
|
6030
|
-
|
6031
|
-
|
6032
|
-
return this.millisecond() * 10;
|
6033
|
-
});
|
6034
|
-
addFormatToken(0, ['SSSSS', 5], 0, function () {
|
6035
|
-
return this.millisecond() * 100;
|
6036
|
-
});
|
6037
|
-
addFormatToken(0, ['SSSSSS', 6], 0, function () {
|
6038
|
-
return this.millisecond() * 1000;
|
6039
|
-
});
|
6040
|
-
addFormatToken(0, ['SSSSSSS', 7], 0, function () {
|
6041
|
-
return this.millisecond() * 10000;
|
6042
|
-
});
|
6043
|
-
addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
|
6044
|
-
return this.millisecond() * 100000;
|
6045
|
-
});
|
6046
|
-
addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
|
6047
|
-
return this.millisecond() * 1000000;
|
6048
|
-
});
|
6269
|
+
seconds = absFloor(milliseconds / 1000);
|
6270
|
+
data.seconds = seconds % 60;
|
6049
6271
|
|
6050
|
-
|
6272
|
+
minutes = absFloor(seconds / 60);
|
6273
|
+
data.minutes = minutes % 60;
|
6051
6274
|
|
6052
|
-
|
6275
|
+
hours = absFloor(minutes / 60);
|
6276
|
+
data.hours = hours % 24;
|
6053
6277
|
|
6054
|
-
|
6278
|
+
days += absFloor(hours / 24);
|
6055
6279
|
|
6056
|
-
|
6280
|
+
// convert days to months
|
6281
|
+
monthsFromDays = absFloor(daysToMonths(days));
|
6282
|
+
months += monthsFromDays;
|
6283
|
+
days -= absCeil(monthsToDays(monthsFromDays));
|
6057
6284
|
|
6058
|
-
//
|
6285
|
+
// 12 months -> 1 year
|
6286
|
+
years = absFloor(months / 12);
|
6287
|
+
months %= 12;
|
6059
6288
|
|
6060
|
-
|
6061
|
-
|
6062
|
-
|
6289
|
+
data.days = days;
|
6290
|
+
data.months = months;
|
6291
|
+
data.years = years;
|
6063
6292
|
|
6064
|
-
|
6065
|
-
for (token = 'SSSS'; token.length <= 9; token += 'S') {
|
6066
|
-
addRegexToken(token, matchUnsigned);
|
6293
|
+
return this;
|
6067
6294
|
}
|
6068
6295
|
|
6069
|
-
function
|
6070
|
-
|
6296
|
+
function daysToMonths(days) {
|
6297
|
+
// 400 years have 146097 days (taking into account leap year rules)
|
6298
|
+
// 400 years have 12 months === 4800
|
6299
|
+
return (days * 4800) / 146097;
|
6071
6300
|
}
|
6072
6301
|
|
6073
|
-
|
6074
|
-
|
6302
|
+
function monthsToDays(months) {
|
6303
|
+
// the reverse of daysToMonths
|
6304
|
+
return (months * 146097) / 4800;
|
6075
6305
|
}
|
6076
6306
|
|
6077
|
-
|
6078
|
-
|
6079
|
-
|
6080
|
-
|
6081
|
-
|
6082
|
-
|
6307
|
+
function as(units) {
|
6308
|
+
if (!this.isValid()) {
|
6309
|
+
return NaN;
|
6310
|
+
}
|
6311
|
+
var days,
|
6312
|
+
months,
|
6313
|
+
milliseconds = this._milliseconds;
|
6083
6314
|
|
6084
|
-
|
6315
|
+
units = normalizeUnits(units);
|
6085
6316
|
|
6086
|
-
|
6087
|
-
|
6317
|
+
if (units === 'month' || units === 'quarter' || units === 'year') {
|
6318
|
+
days = this._days + milliseconds / 864e5;
|
6319
|
+
months = this._months + daysToMonths(days);
|
6320
|
+
switch (units) {
|
6321
|
+
case 'month':
|
6322
|
+
return months;
|
6323
|
+
case 'quarter':
|
6324
|
+
return months / 3;
|
6325
|
+
case 'year':
|
6326
|
+
return months / 12;
|
6327
|
+
}
|
6328
|
+
} else {
|
6329
|
+
// handle milliseconds separately because of floating point math errors (issue #1867)
|
6330
|
+
days = this._days + Math.round(monthsToDays(this._months));
|
6331
|
+
switch (units) {
|
6332
|
+
case 'week':
|
6333
|
+
return days / 7 + milliseconds / 6048e5;
|
6334
|
+
case 'day':
|
6335
|
+
return days + milliseconds / 864e5;
|
6336
|
+
case 'hour':
|
6337
|
+
return days * 24 + milliseconds / 36e5;
|
6338
|
+
case 'minute':
|
6339
|
+
return days * 1440 + milliseconds / 6e4;
|
6340
|
+
case 'second':
|
6341
|
+
return days * 86400 + milliseconds / 1000;
|
6342
|
+
// Math.floor prevents floating point math errors here
|
6343
|
+
case 'millisecond':
|
6344
|
+
return Math.floor(days * 864e5) + milliseconds;
|
6345
|
+
default:
|
6346
|
+
throw new Error('Unknown unit ' + units);
|
6347
|
+
}
|
6348
|
+
}
|
6088
6349
|
}
|
6089
6350
|
|
6090
|
-
|
6091
|
-
|
6351
|
+
// TODO: Use this.as('ms')?
|
6352
|
+
function valueOf$1() {
|
6353
|
+
if (!this.isValid()) {
|
6354
|
+
return NaN;
|
6355
|
+
}
|
6356
|
+
return (
|
6357
|
+
this._milliseconds +
|
6358
|
+
this._days * 864e5 +
|
6359
|
+
(this._months % 12) * 2592e6 +
|
6360
|
+
toInt(this._months / 12) * 31536e6
|
6361
|
+
);
|
6092
6362
|
}
|
6093
6363
|
|
6094
|
-
|
6095
|
-
|
6096
|
-
|
6097
|
-
proto.calendar = calendar$1;
|
6098
|
-
proto.clone = clone;
|
6099
|
-
proto.diff = diff;
|
6100
|
-
proto.endOf = endOf;
|
6101
|
-
proto.format = format;
|
6102
|
-
proto.from = from;
|
6103
|
-
proto.fromNow = fromNow;
|
6104
|
-
proto.to = to;
|
6105
|
-
proto.toNow = toNow;
|
6106
|
-
proto.get = stringGet;
|
6107
|
-
proto.invalidAt = invalidAt;
|
6108
|
-
proto.isAfter = isAfter;
|
6109
|
-
proto.isBefore = isBefore;
|
6110
|
-
proto.isBetween = isBetween;
|
6111
|
-
proto.isSame = isSame;
|
6112
|
-
proto.isSameOrAfter = isSameOrAfter;
|
6113
|
-
proto.isSameOrBefore = isSameOrBefore;
|
6114
|
-
proto.isValid = isValid$2;
|
6115
|
-
proto.lang = lang;
|
6116
|
-
proto.locale = locale;
|
6117
|
-
proto.localeData = localeData;
|
6118
|
-
proto.max = prototypeMax;
|
6119
|
-
proto.min = prototypeMin;
|
6120
|
-
proto.parsingFlags = parsingFlags;
|
6121
|
-
proto.set = stringSet;
|
6122
|
-
proto.startOf = startOf;
|
6123
|
-
proto.subtract = subtract;
|
6124
|
-
proto.toArray = toArray;
|
6125
|
-
proto.toObject = toObject;
|
6126
|
-
proto.toDate = toDate;
|
6127
|
-
proto.toISOString = toISOString;
|
6128
|
-
proto.inspect = inspect;
|
6129
|
-
if (typeof Symbol !== 'undefined' && Symbol.for != null) {
|
6130
|
-
proto[Symbol.for('nodejs.util.inspect.custom')] = function () {
|
6131
|
-
return 'Moment<' + this.format() + '>';
|
6364
|
+
function makeAs(alias) {
|
6365
|
+
return function () {
|
6366
|
+
return this.as(alias);
|
6132
6367
|
};
|
6133
6368
|
}
|
6134
|
-
proto.toJSON = toJSON;
|
6135
|
-
proto.toString = toString;
|
6136
|
-
proto.unix = unix;
|
6137
|
-
proto.valueOf = valueOf;
|
6138
|
-
proto.creationData = creationData;
|
6139
|
-
proto.eraName = getEraName;
|
6140
|
-
proto.eraNarrow = getEraNarrow;
|
6141
|
-
proto.eraAbbr = getEraAbbr;
|
6142
|
-
proto.eraYear = getEraYear;
|
6143
|
-
proto.year = getSetYear;
|
6144
|
-
proto.isLeapYear = getIsLeapYear;
|
6145
|
-
proto.weekYear = getSetWeekYear;
|
6146
|
-
proto.isoWeekYear = getSetISOWeekYear;
|
6147
|
-
proto.quarter = proto.quarters = getSetQuarter;
|
6148
|
-
proto.month = getSetMonth;
|
6149
|
-
proto.daysInMonth = getDaysInMonth;
|
6150
|
-
proto.week = proto.weeks = getSetWeek;
|
6151
|
-
proto.isoWeek = proto.isoWeeks = getSetISOWeek;
|
6152
|
-
proto.weeksInYear = getWeeksInYear;
|
6153
|
-
proto.weeksInWeekYear = getWeeksInWeekYear;
|
6154
|
-
proto.isoWeeksInYear = getISOWeeksInYear;
|
6155
|
-
proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;
|
6156
|
-
proto.date = getSetDayOfMonth;
|
6157
|
-
proto.day = proto.days = getSetDayOfWeek;
|
6158
|
-
proto.weekday = getSetLocaleDayOfWeek;
|
6159
|
-
proto.isoWeekday = getSetISODayOfWeek;
|
6160
|
-
proto.dayOfYear = getSetDayOfYear;
|
6161
|
-
proto.hour = proto.hours = getSetHour;
|
6162
|
-
proto.minute = proto.minutes = getSetMinute;
|
6163
|
-
proto.second = proto.seconds = getSetSecond;
|
6164
|
-
proto.millisecond = proto.milliseconds = getSetMillisecond;
|
6165
|
-
proto.utcOffset = getSetOffset;
|
6166
|
-
proto.utc = setOffsetToUTC;
|
6167
|
-
proto.local = setOffsetToLocal;
|
6168
|
-
proto.parseZone = setOffsetToParsedOffset;
|
6169
|
-
proto.hasAlignedHourOffset = hasAlignedHourOffset;
|
6170
|
-
proto.isDST = isDaylightSavingTime;
|
6171
|
-
proto.isLocal = isLocal;
|
6172
|
-
proto.isUtcOffset = isUtcOffset;
|
6173
|
-
proto.isUtc = isUtc;
|
6174
|
-
proto.isUTC = isUtc;
|
6175
|
-
proto.zoneAbbr = getZoneAbbr;
|
6176
|
-
proto.zoneName = getZoneName;
|
6177
|
-
proto.dates = deprecate(
|
6178
|
-
'dates accessor is deprecated. Use date instead.',
|
6179
|
-
getSetDayOfMonth
|
6180
|
-
);
|
6181
|
-
proto.months = deprecate(
|
6182
|
-
'months accessor is deprecated. Use month instead',
|
6183
|
-
getSetMonth
|
6184
|
-
);
|
6185
|
-
proto.years = deprecate(
|
6186
|
-
'years accessor is deprecated. Use year instead',
|
6187
|
-
getSetYear
|
6188
|
-
);
|
6189
|
-
proto.zone = deprecate(
|
6190
|
-
'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',
|
6191
|
-
getSetZone
|
6192
|
-
);
|
6193
|
-
proto.isDSTShifted = deprecate(
|
6194
|
-
'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',
|
6195
|
-
isDaylightSavingTimeShifted
|
6196
|
-
);
|
6197
6369
|
|
6198
|
-
|
6199
|
-
|
6370
|
+
var asMilliseconds = makeAs('ms'),
|
6371
|
+
asSeconds = makeAs('s'),
|
6372
|
+
asMinutes = makeAs('m'),
|
6373
|
+
asHours = makeAs('h'),
|
6374
|
+
asDays = makeAs('d'),
|
6375
|
+
asWeeks = makeAs('w'),
|
6376
|
+
asMonths = makeAs('M'),
|
6377
|
+
asQuarters = makeAs('Q'),
|
6378
|
+
asYears = makeAs('y');
|
6379
|
+
|
6380
|
+
function clone$1() {
|
6381
|
+
return createDuration(this);
|
6200
6382
|
}
|
6201
6383
|
|
6202
|
-
function
|
6203
|
-
|
6384
|
+
function get$2(units) {
|
6385
|
+
units = normalizeUnits(units);
|
6386
|
+
return this.isValid() ? this[units + 's']() : NaN;
|
6204
6387
|
}
|
6205
6388
|
|
6206
|
-
function
|
6207
|
-
return
|
6389
|
+
function makeGetter(name) {
|
6390
|
+
return function () {
|
6391
|
+
return this.isValid() ? this._data[name] : NaN;
|
6392
|
+
};
|
6208
6393
|
}
|
6209
6394
|
|
6210
|
-
var
|
6395
|
+
var milliseconds = makeGetter('milliseconds'),
|
6396
|
+
seconds = makeGetter('seconds'),
|
6397
|
+
minutes = makeGetter('minutes'),
|
6398
|
+
hours = makeGetter('hours'),
|
6399
|
+
days = makeGetter('days'),
|
6400
|
+
months = makeGetter('months'),
|
6401
|
+
years = makeGetter('years');
|
6211
6402
|
|
6212
|
-
|
6213
|
-
|
6214
|
-
|
6215
|
-
proto$1.ordinal = ordinal;
|
6216
|
-
proto$1.preparse = preParsePostFormat;
|
6217
|
-
proto$1.postformat = preParsePostFormat;
|
6218
|
-
proto$1.relativeTime = relativeTime;
|
6219
|
-
proto$1.pastFuture = pastFuture;
|
6220
|
-
proto$1.set = set;
|
6221
|
-
proto$1.eras = localeEras;
|
6222
|
-
proto$1.erasParse = localeErasParse;
|
6223
|
-
proto$1.erasConvertYear = localeErasConvertYear;
|
6224
|
-
proto$1.erasAbbrRegex = erasAbbrRegex;
|
6225
|
-
proto$1.erasNameRegex = erasNameRegex;
|
6226
|
-
proto$1.erasNarrowRegex = erasNarrowRegex;
|
6403
|
+
function weeks() {
|
6404
|
+
return absFloor(this.days() / 7);
|
6405
|
+
}
|
6227
6406
|
|
6228
|
-
|
6229
|
-
|
6230
|
-
|
6231
|
-
|
6232
|
-
|
6233
|
-
|
6234
|
-
|
6235
|
-
|
6407
|
+
var round = Math.round,
|
6408
|
+
thresholds = {
|
6409
|
+
ss: 44, // a few seconds to seconds
|
6410
|
+
s: 45, // seconds to minute
|
6411
|
+
m: 45, // minutes to hour
|
6412
|
+
h: 22, // hours to day
|
6413
|
+
d: 26, // days to month/week
|
6414
|
+
w: null, // weeks to month
|
6415
|
+
M: 11, // months to year
|
6416
|
+
};
|
6236
6417
|
|
6237
|
-
|
6238
|
-
|
6239
|
-
|
6240
|
-
|
6418
|
+
// helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
|
6419
|
+
function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
|
6420
|
+
return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
|
6421
|
+
}
|
6241
6422
|
|
6242
|
-
|
6243
|
-
|
6244
|
-
|
6423
|
+
function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {
|
6424
|
+
var duration = createDuration(posNegDuration).abs(),
|
6425
|
+
seconds = round(duration.as('s')),
|
6426
|
+
minutes = round(duration.as('m')),
|
6427
|
+
hours = round(duration.as('h')),
|
6428
|
+
days = round(duration.as('d')),
|
6429
|
+
months = round(duration.as('M')),
|
6430
|
+
weeks = round(duration.as('w')),
|
6431
|
+
years = round(duration.as('y')),
|
6432
|
+
a =
|
6433
|
+
(seconds <= thresholds.ss && ['s', seconds]) ||
|
6434
|
+
(seconds < thresholds.s && ['ss', seconds]) ||
|
6435
|
+
(minutes <= 1 && ['m']) ||
|
6436
|
+
(minutes < thresholds.m && ['mm', minutes]) ||
|
6437
|
+
(hours <= 1 && ['h']) ||
|
6438
|
+
(hours < thresholds.h && ['hh', hours]) ||
|
6439
|
+
(days <= 1 && ['d']) ||
|
6440
|
+
(days < thresholds.d && ['dd', days]);
|
6245
6441
|
|
6246
|
-
|
6247
|
-
|
6442
|
+
if (thresholds.w != null) {
|
6443
|
+
a =
|
6444
|
+
a ||
|
6445
|
+
(weeks <= 1 && ['w']) ||
|
6446
|
+
(weeks < thresholds.w && ['ww', weeks]);
|
6447
|
+
}
|
6448
|
+
a = a ||
|
6449
|
+
(months <= 1 && ['M']) ||
|
6450
|
+
(months < thresholds.M && ['MM', months]) ||
|
6451
|
+
(years <= 1 && ['y']) || ['yy', years];
|
6248
6452
|
|
6249
|
-
|
6250
|
-
|
6251
|
-
|
6252
|
-
return
|
6453
|
+
a[2] = withoutSuffix;
|
6454
|
+
a[3] = +posNegDuration > 0;
|
6455
|
+
a[4] = locale;
|
6456
|
+
return substituteTimeAgo.apply(null, a);
|
6253
6457
|
}
|
6254
6458
|
|
6255
|
-
function
|
6256
|
-
|
6257
|
-
|
6258
|
-
|
6459
|
+
// This function allows you to set the rounding function for relative time strings
|
6460
|
+
function getSetRelativeTimeRounding(roundingFunction) {
|
6461
|
+
if (roundingFunction === undefined) {
|
6462
|
+
return round;
|
6463
|
+
}
|
6464
|
+
if (typeof roundingFunction === 'function') {
|
6465
|
+
round = roundingFunction;
|
6466
|
+
return true;
|
6259
6467
|
}
|
6468
|
+
return false;
|
6469
|
+
}
|
6260
6470
|
|
6261
|
-
|
6262
|
-
|
6263
|
-
if (
|
6264
|
-
return
|
6471
|
+
// This function allows you to set a threshold for relative time strings
|
6472
|
+
function getSetRelativeTimeThreshold(threshold, limit) {
|
6473
|
+
if (thresholds[threshold] === undefined) {
|
6474
|
+
return false;
|
6265
6475
|
}
|
6266
|
-
|
6267
|
-
|
6268
|
-
out = [];
|
6269
|
-
for (i = 0; i < 12; i++) {
|
6270
|
-
out[i] = get$1(format, i, field, 'month');
|
6476
|
+
if (limit === undefined) {
|
6477
|
+
return thresholds[threshold];
|
6271
6478
|
}
|
6272
|
-
|
6479
|
+
thresholds[threshold] = limit;
|
6480
|
+
if (threshold === 's') {
|
6481
|
+
thresholds.ss = limit - 1;
|
6482
|
+
}
|
6483
|
+
return true;
|
6273
6484
|
}
|
6274
6485
|
|
6275
|
-
|
6276
|
-
|
6277
|
-
|
6278
|
-
|
6279
|
-
// (true)
|
6280
|
-
// (true, 5)
|
6281
|
-
// (true, fmt, 5)
|
6282
|
-
// (true, fmt)
|
6283
|
-
function listWeekdaysImpl(localeSorted, format, index, field) {
|
6284
|
-
if (typeof localeSorted === 'boolean') {
|
6285
|
-
if (isNumber(format)) {
|
6286
|
-
index = format;
|
6287
|
-
format = undefined;
|
6288
|
-
}
|
6486
|
+
function humanize(argWithSuffix, argThresholds) {
|
6487
|
+
if (!this.isValid()) {
|
6488
|
+
return this.localeData().invalidDate();
|
6489
|
+
}
|
6289
6490
|
|
6290
|
-
|
6291
|
-
|
6292
|
-
|
6293
|
-
|
6294
|
-
localeSorted = false;
|
6491
|
+
var withSuffix = false,
|
6492
|
+
th = thresholds,
|
6493
|
+
locale,
|
6494
|
+
output;
|
6295
6495
|
|
6296
|
-
|
6297
|
-
|
6298
|
-
|
6496
|
+
if (typeof argWithSuffix === 'object') {
|
6497
|
+
argThresholds = argWithSuffix;
|
6498
|
+
argWithSuffix = false;
|
6499
|
+
}
|
6500
|
+
if (typeof argWithSuffix === 'boolean') {
|
6501
|
+
withSuffix = argWithSuffix;
|
6502
|
+
}
|
6503
|
+
if (typeof argThresholds === 'object') {
|
6504
|
+
th = Object.assign({}, thresholds, argThresholds);
|
6505
|
+
if (argThresholds.s != null && argThresholds.ss == null) {
|
6506
|
+
th.ss = argThresholds.s - 1;
|
6299
6507
|
}
|
6300
|
-
|
6301
|
-
format = format || '';
|
6302
6508
|
}
|
6303
6509
|
|
6304
|
-
|
6305
|
-
|
6306
|
-
i,
|
6307
|
-
out = [];
|
6510
|
+
locale = this.localeData();
|
6511
|
+
output = relativeTime$1(this, !withSuffix, th, locale);
|
6308
6512
|
|
6309
|
-
if (
|
6310
|
-
|
6513
|
+
if (withSuffix) {
|
6514
|
+
output = locale.pastFuture(+this, output);
|
6311
6515
|
}
|
6312
6516
|
|
6313
|
-
|
6314
|
-
out[i] = get$1(format, (i + shift) % 7, field, 'day');
|
6315
|
-
}
|
6316
|
-
return out;
|
6517
|
+
return locale.postformat(output);
|
6317
6518
|
}
|
6318
6519
|
|
6319
|
-
|
6320
|
-
return listMonthsImpl(format, index, 'months');
|
6321
|
-
}
|
6520
|
+
var abs$1 = Math.abs;
|
6322
6521
|
|
6323
|
-
function
|
6324
|
-
return
|
6522
|
+
function sign(x) {
|
6523
|
+
return (x > 0) - (x < 0) || +x;
|
6325
6524
|
}
|
6326
6525
|
|
6327
|
-
function
|
6328
|
-
|
6329
|
-
|
6526
|
+
function toISOString$1() {
|
6527
|
+
// for ISO strings we do not use the normal bubbling rules:
|
6528
|
+
// * milliseconds bubble up until they become hours
|
6529
|
+
// * days do not bubble at all
|
6530
|
+
// * months bubble up until they become years
|
6531
|
+
// This is because there is no context-free conversion between hours and days
|
6532
|
+
// (think of clock changes)
|
6533
|
+
// and also not between days and months (28-31 days per month)
|
6534
|
+
if (!this.isValid()) {
|
6535
|
+
return this.localeData().invalidDate();
|
6536
|
+
}
|
6330
6537
|
|
6331
|
-
|
6332
|
-
|
6333
|
-
|
6538
|
+
var seconds = abs$1(this._milliseconds) / 1000,
|
6539
|
+
days = abs$1(this._days),
|
6540
|
+
months = abs$1(this._months),
|
6541
|
+
minutes,
|
6542
|
+
hours,
|
6543
|
+
years,
|
6544
|
+
s,
|
6545
|
+
total = this.asSeconds(),
|
6546
|
+
totalSign,
|
6547
|
+
ymSign,
|
6548
|
+
daysSign,
|
6549
|
+
hmsSign;
|
6334
6550
|
|
6335
|
-
|
6336
|
-
|
6337
|
-
|
6551
|
+
if (!total) {
|
6552
|
+
// this is the same as C#'s (Noda) and python (isodate)...
|
6553
|
+
// but not other JS (goog.date)
|
6554
|
+
return 'P0D';
|
6555
|
+
}
|
6338
6556
|
|
6339
|
-
|
6340
|
-
|
6341
|
-
|
6342
|
-
|
6343
|
-
|
6344
|
-
offset: 1,
|
6345
|
-
name: 'Anno Domini',
|
6346
|
-
narrow: 'AD',
|
6347
|
-
abbr: 'AD',
|
6348
|
-
},
|
6349
|
-
{
|
6350
|
-
since: '0000-12-31',
|
6351
|
-
until: -Infinity,
|
6352
|
-
offset: 1,
|
6353
|
-
name: 'Before Christ',
|
6354
|
-
narrow: 'BC',
|
6355
|
-
abbr: 'BC',
|
6356
|
-
},
|
6357
|
-
],
|
6358
|
-
dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
|
6359
|
-
ordinal: function (number) {
|
6360
|
-
var b = number % 10,
|
6361
|
-
output =
|
6362
|
-
toInt((number % 100) / 10) === 1
|
6363
|
-
? 'th'
|
6364
|
-
: b === 1
|
6365
|
-
? 'st'
|
6366
|
-
: b === 2
|
6367
|
-
? 'nd'
|
6368
|
-
: b === 3
|
6369
|
-
? 'rd'
|
6370
|
-
: 'th';
|
6371
|
-
return number + output;
|
6372
|
-
},
|
6373
|
-
});
|
6557
|
+
// 3600 seconds -> 60 minutes -> 1 hour
|
6558
|
+
minutes = absFloor(seconds / 60);
|
6559
|
+
hours = absFloor(minutes / 60);
|
6560
|
+
seconds %= 60;
|
6561
|
+
minutes %= 60;
|
6374
6562
|
|
6375
|
-
//
|
6563
|
+
// 12 months -> 1 year
|
6564
|
+
years = absFloor(months / 12);
|
6565
|
+
months %= 12;
|
6376
6566
|
|
6377
|
-
|
6378
|
-
|
6379
|
-
getSetGlobalLocale
|
6380
|
-
);
|
6381
|
-
hooks.langData = deprecate(
|
6382
|
-
'moment.langData is deprecated. Use moment.localeData instead.',
|
6383
|
-
getLocale
|
6384
|
-
);
|
6567
|
+
// inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
|
6568
|
+
s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '';
|
6385
6569
|
|
6386
|
-
|
6570
|
+
totalSign = total < 0 ? '-' : '';
|
6571
|
+
ymSign = sign(this._months) !== sign(total) ? '-' : '';
|
6572
|
+
daysSign = sign(this._days) !== sign(total) ? '-' : '';
|
6573
|
+
hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';
|
6387
6574
|
|
6388
|
-
|
6389
|
-
|
6575
|
+
return (
|
6576
|
+
totalSign +
|
6577
|
+
'P' +
|
6578
|
+
(years ? ymSign + years + 'Y' : '') +
|
6579
|
+
(months ? ymSign + months + 'M' : '') +
|
6580
|
+
(days ? daysSign + days + 'D' : '') +
|
6581
|
+
(hours || minutes || seconds ? 'T' : '') +
|
6582
|
+
(hours ? hmsSign + hours + 'H' : '') +
|
6583
|
+
(minutes ? hmsSign + minutes + 'M' : '') +
|
6584
|
+
(seconds ? hmsSign + s + 'S' : '')
|
6585
|
+
);
|
6586
|
+
}
|
6390
6587
|
|
6391
|
-
|
6392
|
-
this._days = mathAbs(this._days);
|
6393
|
-
this._months = mathAbs(this._months);
|
6588
|
+
var proto$2 = Duration.prototype;
|
6394
6589
|
|
6395
|
-
|
6396
|
-
|
6397
|
-
|
6398
|
-
|
6399
|
-
|
6400
|
-
|
6590
|
+
proto$2.isValid = isValid$1;
|
6591
|
+
proto$2.abs = abs;
|
6592
|
+
proto$2.add = add$1;
|
6593
|
+
proto$2.subtract = subtract$1;
|
6594
|
+
proto$2.as = as;
|
6595
|
+
proto$2.asMilliseconds = asMilliseconds;
|
6596
|
+
proto$2.asSeconds = asSeconds;
|
6597
|
+
proto$2.asMinutes = asMinutes;
|
6598
|
+
proto$2.asHours = asHours;
|
6599
|
+
proto$2.asDays = asDays;
|
6600
|
+
proto$2.asWeeks = asWeeks;
|
6601
|
+
proto$2.asMonths = asMonths;
|
6602
|
+
proto$2.asQuarters = asQuarters;
|
6603
|
+
proto$2.asYears = asYears;
|
6604
|
+
proto$2.valueOf = valueOf$1;
|
6605
|
+
proto$2._bubble = bubble;
|
6606
|
+
proto$2.clone = clone$1;
|
6607
|
+
proto$2.get = get$2;
|
6608
|
+
proto$2.milliseconds = milliseconds;
|
6609
|
+
proto$2.seconds = seconds;
|
6610
|
+
proto$2.minutes = minutes;
|
6611
|
+
proto$2.hours = hours;
|
6612
|
+
proto$2.days = days;
|
6613
|
+
proto$2.weeks = weeks;
|
6614
|
+
proto$2.months = months;
|
6615
|
+
proto$2.years = years;
|
6616
|
+
proto$2.humanize = humanize;
|
6617
|
+
proto$2.toISOString = toISOString$1;
|
6618
|
+
proto$2.toString = toISOString$1;
|
6619
|
+
proto$2.toJSON = toISOString$1;
|
6620
|
+
proto$2.locale = locale;
|
6621
|
+
proto$2.localeData = localeData;
|
6401
6622
|
|
6402
|
-
|
6403
|
-
|
6623
|
+
proto$2.toIsoString = deprecate(
|
6624
|
+
'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',
|
6625
|
+
toISOString$1
|
6626
|
+
);
|
6627
|
+
proto$2.lang = lang;
|
6404
6628
|
|
6405
|
-
|
6406
|
-
|
6629
|
+
// FORMATTING
|
6630
|
+
|
6631
|
+
addFormatToken('X', 0, 0, 'unix');
|
6632
|
+
addFormatToken('x', 0, 0, 'valueOf');
|
6633
|
+
|
6634
|
+
// PARSING
|
6407
6635
|
|
6408
|
-
|
6409
|
-
|
6410
|
-
|
6636
|
+
addRegexToken('x', matchSigned);
|
6637
|
+
addRegexToken('X', matchTimestamp);
|
6638
|
+
addParseToken('X', function (input, array, config) {
|
6639
|
+
config._d = new Date(parseFloat(input) * 1000);
|
6640
|
+
});
|
6641
|
+
addParseToken('x', function (input, array, config) {
|
6642
|
+
config._d = new Date(toInt(input));
|
6643
|
+
});
|
6411
6644
|
|
6412
|
-
|
6413
|
-
}
|
6645
|
+
//! moment.js
|
6414
6646
|
|
6415
|
-
|
6416
|
-
function add$1(input, value) {
|
6417
|
-
return addSubtract$1(this, input, value, 1);
|
6418
|
-
}
|
6647
|
+
hooks.version = '2.29.1';
|
6419
6648
|
|
6420
|
-
|
6421
|
-
function subtract$1(input, value) {
|
6422
|
-
return addSubtract$1(this, input, value, -1);
|
6423
|
-
}
|
6649
|
+
setHookCallback(createLocal);
|
6424
6650
|
|
6425
|
-
|
6426
|
-
|
6427
|
-
|
6428
|
-
|
6429
|
-
|
6430
|
-
|
6431
|
-
|
6651
|
+
hooks.fn = proto;
|
6652
|
+
hooks.min = min;
|
6653
|
+
hooks.max = max;
|
6654
|
+
hooks.now = now;
|
6655
|
+
hooks.utc = createUTC;
|
6656
|
+
hooks.unix = createUnix;
|
6657
|
+
hooks.months = listMonths;
|
6658
|
+
hooks.isDate = isDate;
|
6659
|
+
hooks.locale = getSetGlobalLocale;
|
6660
|
+
hooks.invalid = createInvalid;
|
6661
|
+
hooks.duration = createDuration;
|
6662
|
+
hooks.isMoment = isMoment;
|
6663
|
+
hooks.weekdays = listWeekdays;
|
6664
|
+
hooks.parseZone = createInZone;
|
6665
|
+
hooks.localeData = getLocale;
|
6666
|
+
hooks.isDuration = isDuration;
|
6667
|
+
hooks.monthsShort = listMonthsShort;
|
6668
|
+
hooks.weekdaysMin = listWeekdaysMin;
|
6669
|
+
hooks.defineLocale = defineLocale;
|
6670
|
+
hooks.updateLocale = updateLocale;
|
6671
|
+
hooks.locales = listLocales;
|
6672
|
+
hooks.weekdaysShort = listWeekdaysShort;
|
6673
|
+
hooks.normalizeUnits = normalizeUnits;
|
6674
|
+
hooks.relativeTimeRounding = getSetRelativeTimeRounding;
|
6675
|
+
hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
|
6676
|
+
hooks.calendarFormat = getCalendarFormat;
|
6677
|
+
hooks.prototype = proto;
|
6432
6678
|
|
6433
|
-
|
6434
|
-
|
6435
|
-
|
6436
|
-
|
6437
|
-
|
6438
|
-
|
6439
|
-
|
6440
|
-
|
6441
|
-
|
6442
|
-
|
6679
|
+
// currently HTML5 input type only supports 24-hour formats
|
6680
|
+
hooks.HTML5_FMT = {
|
6681
|
+
DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // <input type="datetime-local" />
|
6682
|
+
DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // <input type="datetime-local" step="1" />
|
6683
|
+
DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // <input type="datetime-local" step="0.001" />
|
6684
|
+
DATE: 'YYYY-MM-DD', // <input type="date" />
|
6685
|
+
TIME: 'HH:mm', // <input type="time" />
|
6686
|
+
TIME_SECONDS: 'HH:mm:ss', // <input type="time" step="1" />
|
6687
|
+
TIME_MS: 'HH:mm:ss.SSS', // <input type="time" step="0.001" />
|
6688
|
+
WEEK: 'GGGG-[W]WW', // <input type="week" />
|
6689
|
+
MONTH: 'YYYY-MM', // <input type="month" />
|
6690
|
+
};
|
6443
6691
|
|
6444
|
-
|
6445
|
-
// check: https://github.com/moment/moment/issues/2166
|
6446
|
-
if (
|
6447
|
-
!(
|
6448
|
-
(milliseconds >= 0 && days >= 0 && months >= 0) ||
|
6449
|
-
(milliseconds <= 0 && days <= 0 && months <= 0)
|
6450
|
-
)
|
6451
|
-
) {
|
6452
|
-
milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
|
6453
|
-
days = 0;
|
6454
|
-
months = 0;
|
6455
|
-
}
|
6692
|
+
var _excluded$2 = ["getRangePickerValue", "panelType"];
|
6456
6693
|
|
6457
|
-
|
6458
|
-
|
6459
|
-
data.milliseconds = milliseconds % 1000;
|
6694
|
+
var WDatePicker = function WDatePicker(props) {
|
6695
|
+
var extraProps = _extends({}, props);
|
6460
6696
|
|
6461
|
-
|
6462
|
-
|
6697
|
+
return /*#__PURE__*/React.createElement(_DatePicker, _objectSpread2({
|
6698
|
+
locale: locale$1
|
6699
|
+
}, extraProps));
|
6700
|
+
};
|
6463
6701
|
|
6464
|
-
|
6465
|
-
data.minutes = minutes % 60;
|
6702
|
+
WDatePicker.defaultProps = {};
|
6466
6703
|
|
6467
|
-
|
6468
|
-
|
6704
|
+
var RangePicker = function RangePicker(props) {
|
6705
|
+
var getRangePickerValue = props.getRangePickerValue,
|
6706
|
+
panelType = props.panelType,
|
6707
|
+
extraProps = _objectWithoutProperties(props, _excluded$2);
|
6469
6708
|
|
6470
|
-
|
6709
|
+
var _useState = useState([]),
|
6710
|
+
_useState2 = _slicedToArray(_useState, 2),
|
6711
|
+
rangePickerValue = _useState2[0],
|
6712
|
+
setRangePickerValue = _useState2[1];
|
6471
6713
|
|
6472
|
-
|
6473
|
-
|
6474
|
-
|
6475
|
-
|
6714
|
+
var _useState3 = useState(''),
|
6715
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
6716
|
+
radioValue = _useState4[0],
|
6717
|
+
setRadioValue = _useState4[1];
|
6476
6718
|
|
6477
|
-
|
6478
|
-
|
6479
|
-
|
6719
|
+
useEffect(function () {
|
6720
|
+
getRangePickerValue && getRangePickerValue(rangePickerValue);
|
6721
|
+
}, [rangePickerValue]);
|
6722
|
+
|
6723
|
+
if (panelType === 'within') {
|
6724
|
+
return /*#__PURE__*/React.createElement(RangePicker, _objectSpread2({
|
6725
|
+
value: rangePickerValue,
|
6726
|
+
onChange: function onChange(date) {
|
6727
|
+
setRadioValue('');
|
6728
|
+
setRangePickerValue(date);
|
6729
|
+
},
|
6730
|
+
// showToday={false}
|
6731
|
+
// showNow={false}
|
6732
|
+
panelRender: function panelRender(originalPanel) {
|
6733
|
+
return /*#__PURE__*/React.createElement("div", {
|
6734
|
+
style: {
|
6735
|
+
display: 'flex'
|
6736
|
+
}
|
6737
|
+
}, /*#__PURE__*/React.createElement("div", {
|
6738
|
+
style: {
|
6739
|
+
width: 100,
|
6740
|
+
margin: '10px 0',
|
6741
|
+
borderRight: '1px solid #bdd0e3',
|
6742
|
+
display: 'flex',
|
6743
|
+
justifyContent: 'center',
|
6744
|
+
alignItems: 'center'
|
6745
|
+
}
|
6746
|
+
}, /*#__PURE__*/React.createElement("div", {
|
6747
|
+
id: "withinDateNav"
|
6748
|
+
}, /*#__PURE__*/React.createElement(_Radio.Group, {
|
6749
|
+
optionType: "button",
|
6750
|
+
buttonStyle: "solid",
|
6751
|
+
value: radioValue,
|
6752
|
+
onChange: function onChange(e) {
|
6753
|
+
setRadioValue(e.target.value);
|
6754
|
+
}
|
6755
|
+
}, /*#__PURE__*/React.createElement(_Space, {
|
6756
|
+
direction: "vertical",
|
6757
|
+
size: 'middle'
|
6758
|
+
}, /*#__PURE__*/React.createElement(_Radio.Button, {
|
6759
|
+
value: '1',
|
6760
|
+
onClick: function onClick() {
|
6761
|
+
setRangePickerValue([hooks().startOf('day'), hooks().endOf('day')]);
|
6762
|
+
}
|
6763
|
+
}, /*#__PURE__*/React.createElement("span", null, "\u4ECA\u65E5")), /*#__PURE__*/React.createElement(_Radio.Button, {
|
6764
|
+
value: '2',
|
6765
|
+
onClick: function onClick() {
|
6766
|
+
setRangePickerValue([hooks().startOf('week'), hooks().endOf('week')]);
|
6767
|
+
}
|
6768
|
+
}, /*#__PURE__*/React.createElement("span", null, "\u672C\u5468")), /*#__PURE__*/React.createElement(_Radio.Button, {
|
6769
|
+
value: '3',
|
6770
|
+
onClick: function onClick() {
|
6771
|
+
setRangePickerValue([hooks().startOf('month'), hooks().endOf('month')]);
|
6772
|
+
}
|
6773
|
+
}, /*#__PURE__*/React.createElement("span", null, "\u672C\u6708")), /*#__PURE__*/React.createElement(_Radio.Button, {
|
6774
|
+
value: '4',
|
6775
|
+
onClick: function onClick() {
|
6776
|
+
setRangePickerValue([hooks().startOf('year'), hooks().endOf('year')]);
|
6777
|
+
}
|
6778
|
+
}, /*#__PURE__*/React.createElement("span", null, "\u672C\u5E74")))))), /*#__PURE__*/React.createElement("div", null, originalPanel));
|
6779
|
+
}
|
6780
|
+
}, extraProps));
|
6781
|
+
} else if (panelType === 'outside') {
|
6782
|
+
return /*#__PURE__*/React.createElement(_Space, {
|
6783
|
+
split: /*#__PURE__*/React.createElement("span", {
|
6784
|
+
style: {
|
6785
|
+
color: '#768CAD'
|
6786
|
+
}
|
6787
|
+
}, "\u2014\u2014")
|
6788
|
+
}, /*#__PURE__*/React.createElement("div", {
|
6789
|
+
id: "outsideNav"
|
6790
|
+
}, /*#__PURE__*/React.createElement(_Radio.Group, {
|
6791
|
+
optionType: "button",
|
6792
|
+
buttonStyle: "solid",
|
6793
|
+
value: radioValue,
|
6794
|
+
onChange: function onChange(e) {
|
6795
|
+
setRadioValue(e.target.value);
|
6796
|
+
}
|
6797
|
+
}, /*#__PURE__*/React.createElement(_Radio.Button, {
|
6798
|
+
value: '1',
|
6799
|
+
onClick: function onClick() {
|
6800
|
+
setRangePickerValue([hooks().startOf('year'), hooks().endOf('year')]);
|
6801
|
+
}
|
6802
|
+
}, /*#__PURE__*/React.createElement("span", null, "\u5E74")), /*#__PURE__*/React.createElement(_Radio.Button, {
|
6803
|
+
value: '2',
|
6804
|
+
onClick: function onClick() {
|
6805
|
+
setRangePickerValue([hooks().startOf('month'), hooks().endOf('month')]);
|
6806
|
+
}
|
6807
|
+
}, /*#__PURE__*/React.createElement("span", null, "\u6708")), /*#__PURE__*/React.createElement(_Radio.Button, {
|
6808
|
+
value: '3',
|
6809
|
+
onClick: function onClick() {
|
6810
|
+
setRangePickerValue([hooks().startOf('day'), hooks().endOf('day')]);
|
6811
|
+
}
|
6812
|
+
}, /*#__PURE__*/React.createElement("span", null, "\u65E5")))), /*#__PURE__*/React.createElement(RangePicker, _objectSpread2({
|
6813
|
+
value: rangePickerValue,
|
6814
|
+
onChange: function onChange(date) {
|
6815
|
+
setRadioValue('');
|
6816
|
+
setRangePickerValue(date);
|
6817
|
+
}
|
6818
|
+
}, extraProps)));
|
6819
|
+
}
|
6480
6820
|
|
6481
|
-
|
6482
|
-
|
6483
|
-
|
6821
|
+
return /*#__PURE__*/React.createElement(_DatePicker.RangePicker, _objectSpread2({
|
6822
|
+
locale: locale$1
|
6823
|
+
}, extraProps));
|
6824
|
+
};
|
6484
6825
|
|
6485
|
-
|
6486
|
-
|
6826
|
+
RangePicker.defaultProps = {};
|
6827
|
+
var Index$2 = WDatePicker;
|
6828
|
+
Index$2.RangePicker = RangePicker;
|
6487
6829
|
|
6488
|
-
|
6489
|
-
// 400 years have 146097 days (taking into account leap year rules)
|
6490
|
-
// 400 years have 12 months === 4800
|
6491
|
-
return (days * 4800) / 146097;
|
6492
|
-
}
|
6830
|
+
var _excluded$3 = ["sideButtonStyle"];
|
6493
6831
|
|
6494
|
-
function
|
6495
|
-
|
6496
|
-
|
6497
|
-
}
|
6832
|
+
var WRadio = function WRadio(props) {
|
6833
|
+
var sideButtonStyle = props.sideButtonStyle,
|
6834
|
+
extraProps = _objectWithoutProperties(props, _excluded$3);
|
6498
6835
|
|
6499
|
-
|
6500
|
-
|
6501
|
-
return NaN;
|
6502
|
-
}
|
6503
|
-
var days,
|
6504
|
-
months,
|
6505
|
-
milliseconds = this._milliseconds;
|
6836
|
+
return /*#__PURE__*/React.createElement(_Radio, _objectSpread2({}, extraProps));
|
6837
|
+
};
|
6506
6838
|
|
6507
|
-
|
6839
|
+
var Index$3 = WRadio;
|
6840
|
+
Index$3.Group = _Radio.Group;
|
6841
|
+
Index$3.Button = _Radio.Button;
|
6842
|
+
WRadio.defaultProps = {};
|
6508
6843
|
|
6509
|
-
|
6510
|
-
|
6511
|
-
months = this._months + daysToMonths(days);
|
6512
|
-
switch (units) {
|
6513
|
-
case 'month':
|
6514
|
-
return months;
|
6515
|
-
case 'quarter':
|
6516
|
-
return months / 3;
|
6517
|
-
case 'year':
|
6518
|
-
return months / 12;
|
6519
|
-
}
|
6520
|
-
} else {
|
6521
|
-
// handle milliseconds separately because of floating point math errors (issue #1867)
|
6522
|
-
days = this._days + Math.round(monthsToDays(this._months));
|
6523
|
-
switch (units) {
|
6524
|
-
case 'week':
|
6525
|
-
return days / 7 + milliseconds / 6048e5;
|
6526
|
-
case 'day':
|
6527
|
-
return days + milliseconds / 864e5;
|
6528
|
-
case 'hour':
|
6529
|
-
return days * 24 + milliseconds / 36e5;
|
6530
|
-
case 'minute':
|
6531
|
-
return days * 1440 + milliseconds / 6e4;
|
6532
|
-
case 'second':
|
6533
|
-
return days * 86400 + milliseconds / 1000;
|
6534
|
-
// Math.floor prevents floating point math errors here
|
6535
|
-
case 'millisecond':
|
6536
|
-
return Math.floor(days * 864e5) + milliseconds;
|
6537
|
-
default:
|
6538
|
-
throw new Error('Unknown unit ' + units);
|
6539
|
-
}
|
6540
|
-
}
|
6541
|
-
}
|
6844
|
+
var WCheckbox = function WCheckbox(props) {
|
6845
|
+
var extraProps = _extends({}, props);
|
6542
6846
|
|
6543
|
-
|
6544
|
-
|
6545
|
-
if (!this.isValid()) {
|
6546
|
-
return NaN;
|
6547
|
-
}
|
6548
|
-
return (
|
6549
|
-
this._milliseconds +
|
6550
|
-
this._days * 864e5 +
|
6551
|
-
(this._months % 12) * 2592e6 +
|
6552
|
-
toInt(this._months / 12) * 31536e6
|
6553
|
-
);
|
6554
|
-
}
|
6847
|
+
return /*#__PURE__*/React.createElement(_Checkbox, _objectSpread2({}, extraProps));
|
6848
|
+
};
|
6555
6849
|
|
6556
|
-
|
6557
|
-
|
6558
|
-
|
6559
|
-
};
|
6560
|
-
}
|
6850
|
+
WCheckbox.defaultProps = {};
|
6851
|
+
var Index$4 = WCheckbox;
|
6852
|
+
Index$4.Group = _Checkbox.Group;
|
6561
6853
|
|
6562
|
-
|
6563
|
-
|
6564
|
-
|
6565
|
-
|
6566
|
-
|
6567
|
-
|
6568
|
-
|
6569
|
-
|
6570
|
-
|
6854
|
+
/*
|
6855
|
+
* @Author: lijin
|
6856
|
+
* @Date: 2021-10-27 22:18:49
|
6857
|
+
* @LastEditTime: 2022-08-11 10:57:14
|
6858
|
+
* @LastEditors: lijin
|
6859
|
+
* @Description:
|
6860
|
+
* @FilePath: \wargerm-components\src\utils\index.ts
|
6861
|
+
* 可以输入预定的版权声明、个性签名、空行等
|
6862
|
+
*/
|
6571
6863
|
|
6572
|
-
|
6573
|
-
|
6574
|
-
|
6864
|
+
/**
|
6865
|
+
* 过滤对象中为空的属性
|
6866
|
+
* @param obj
|
6867
|
+
* @returns {*}
|
6868
|
+
*/
|
6869
|
+
function filterObj(obj) {
|
6870
|
+
if (!(_typeof(obj) === 'object')) {
|
6871
|
+
return;
|
6872
|
+
}
|
6575
6873
|
|
6576
|
-
|
6577
|
-
|
6578
|
-
|
6579
|
-
}
|
6874
|
+
for (var key in obj) {
|
6875
|
+
if (obj.hasOwnProperty(key) && (obj[key] == null || obj[key] == undefined || obj[key] === '')) {
|
6876
|
+
delete obj[key];
|
6877
|
+
}
|
6878
|
+
}
|
6580
6879
|
|
6581
|
-
|
6582
|
-
return function () {
|
6583
|
-
return this.isValid() ? this._data[name] : NaN;
|
6584
|
-
};
|
6880
|
+
return obj;
|
6585
6881
|
}
|
6882
|
+
/**
|
6883
|
+
* 求数组深度层级
|
6884
|
+
* @param arr
|
6885
|
+
* @param attr
|
6886
|
+
* @param index
|
6887
|
+
* @returns {*}
|
6888
|
+
*/
|
6586
6889
|
|
6587
|
-
|
6588
|
-
|
6589
|
-
|
6590
|
-
hours = makeGetter('hours'),
|
6591
|
-
days = makeGetter('days'),
|
6592
|
-
months = makeGetter('months'),
|
6593
|
-
years = makeGetter('years');
|
6594
|
-
|
6595
|
-
function weeks() {
|
6596
|
-
return absFloor(this.days() / 7);
|
6597
|
-
}
|
6890
|
+
function getArrayLayer(arr, attr) {
|
6891
|
+
var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
|
6892
|
+
var newIndex = index;
|
6598
6893
|
|
6599
|
-
var
|
6600
|
-
|
6601
|
-
ss: 44, // a few seconds to seconds
|
6602
|
-
s: 45, // seconds to minute
|
6603
|
-
m: 45, // minutes to hour
|
6604
|
-
h: 22, // hours to day
|
6605
|
-
d: 26, // days to month/week
|
6606
|
-
w: null, // weeks to month
|
6607
|
-
M: 11, // months to year
|
6608
|
-
};
|
6894
|
+
var _iterator = _createForOfIteratorHelper(arr),
|
6895
|
+
_step;
|
6609
6896
|
|
6610
|
-
|
6611
|
-
|
6612
|
-
|
6613
|
-
|
6897
|
+
try {
|
6898
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
6899
|
+
var iterator = _step.value;
|
6900
|
+
var tempIndex = index;
|
6614
6901
|
|
6615
|
-
|
6616
|
-
|
6617
|
-
seconds = round(duration.as('s')),
|
6618
|
-
minutes = round(duration.as('m')),
|
6619
|
-
hours = round(duration.as('h')),
|
6620
|
-
days = round(duration.as('d')),
|
6621
|
-
months = round(duration.as('M')),
|
6622
|
-
weeks = round(duration.as('w')),
|
6623
|
-
years = round(duration.as('y')),
|
6624
|
-
a =
|
6625
|
-
(seconds <= thresholds.ss && ['s', seconds]) ||
|
6626
|
-
(seconds < thresholds.s && ['ss', seconds]) ||
|
6627
|
-
(minutes <= 1 && ['m']) ||
|
6628
|
-
(minutes < thresholds.m && ['mm', minutes]) ||
|
6629
|
-
(hours <= 1 && ['h']) ||
|
6630
|
-
(hours < thresholds.h && ['hh', hours]) ||
|
6631
|
-
(days <= 1 && ['d']) ||
|
6632
|
-
(days < thresholds.d && ['dd', days]);
|
6902
|
+
if (iterator[attr]) {
|
6903
|
+
tempIndex = getArrayLayer(iterator[attr], attr, index + 1);
|
6633
6904
|
|
6634
|
-
|
6635
|
-
|
6636
|
-
|
6637
|
-
|
6638
|
-
(weeks < thresholds.w && ['ww', weeks]);
|
6905
|
+
if (tempIndex > newIndex) {
|
6906
|
+
newIndex = tempIndex;
|
6907
|
+
}
|
6908
|
+
}
|
6639
6909
|
}
|
6640
|
-
|
6641
|
-
|
6642
|
-
|
6643
|
-
|
6644
|
-
|
6645
|
-
a[2] = withoutSuffix;
|
6646
|
-
a[3] = +posNegDuration > 0;
|
6647
|
-
a[4] = locale;
|
6648
|
-
return substituteTimeAgo.apply(null, a);
|
6649
|
-
}
|
6910
|
+
} catch (err) {
|
6911
|
+
_iterator.e(err);
|
6912
|
+
} finally {
|
6913
|
+
_iterator.f();
|
6914
|
+
}
|
6650
6915
|
|
6651
|
-
|
6652
|
-
function getSetRelativeTimeRounding(roundingFunction) {
|
6653
|
-
if (roundingFunction === undefined) {
|
6654
|
-
return round;
|
6655
|
-
}
|
6656
|
-
if (typeof roundingFunction === 'function') {
|
6657
|
-
round = roundingFunction;
|
6658
|
-
return true;
|
6659
|
-
}
|
6660
|
-
return false;
|
6916
|
+
return newIndex;
|
6661
6917
|
}
|
6918
|
+
var calcWidth = function calcWidth(width) {
|
6919
|
+
return document.body.clientWidth / 3840 * width;
|
6920
|
+
};
|
6921
|
+
var calcHeight = function calcHeight(height) {
|
6922
|
+
return document.body.clientHeight / 2160 * height;
|
6923
|
+
};
|
6924
|
+
/* eslint-disable no-param-reassign */
|
6662
6925
|
|
6663
|
-
|
6664
|
-
|
6665
|
-
|
6666
|
-
return false;
|
6667
|
-
}
|
6668
|
-
if (limit === undefined) {
|
6669
|
-
return thresholds[threshold];
|
6670
|
-
}
|
6671
|
-
thresholds[threshold] = limit;
|
6672
|
-
if (threshold === 's') {
|
6673
|
-
thresholds.ss = limit - 1;
|
6674
|
-
}
|
6675
|
-
return true;
|
6676
|
-
}
|
6926
|
+
function deepCopy(target) {
|
6927
|
+
if (Object.prototype.toString.call({}).slice(8, -1) == 'Object') {
|
6928
|
+
var result = Array.isArray(target) ? [] : {}; // eslint-disable-next-line no-restricted-syntax
|
6677
6929
|
|
6678
|
-
|
6679
|
-
|
6680
|
-
|
6681
|
-
|
6930
|
+
for (var key in target) {
|
6931
|
+
if (_typeof(target[key]) === 'object') {
|
6932
|
+
if (Object.prototype.toString.call(target).slice(8, -1) == 'Object') {
|
6933
|
+
var _target$key, _target$key2;
|
6682
6934
|
|
6683
|
-
|
6684
|
-
|
6685
|
-
|
6686
|
-
|
6935
|
+
if (((_target$key = target[key]) === null || _target$key === void 0 ? void 0 : _target$key['$$typeof']) || ((_target$key2 = target[key]) === null || _target$key2 === void 0 ? void 0 : _target$key2['_isAMomentObject'])) {
|
6936
|
+
result[key] = target[key];
|
6937
|
+
} else {
|
6938
|
+
result[key] = deepCopy(target[key]);
|
6939
|
+
}
|
6940
|
+
} else if (Object.prototype.toString.call(target).slice(8, -1) == 'Array') {
|
6941
|
+
var _target$key3, _target$key4;
|
6687
6942
|
|
6688
|
-
|
6689
|
-
|
6690
|
-
|
6691
|
-
|
6692
|
-
|
6693
|
-
|
6694
|
-
|
6695
|
-
if (typeof argThresholds === 'object') {
|
6696
|
-
th = Object.assign({}, thresholds, argThresholds);
|
6697
|
-
if (argThresholds.s != null && argThresholds.ss == null) {
|
6698
|
-
th.ss = argThresholds.s - 1;
|
6943
|
+
if (((_target$key3 = target[key]) === null || _target$key3 === void 0 ? void 0 : _target$key3['$$typeof']) || ((_target$key4 = target[key]) === null || _target$key4 === void 0 ? void 0 : _target$key4['_isAMomentObject'])) {
|
6944
|
+
result[key] = target[key];
|
6945
|
+
} else {
|
6946
|
+
result[key] = deepCopy(target[key]);
|
6947
|
+
}
|
6948
|
+
} else {
|
6949
|
+
result[key] = target[key];
|
6699
6950
|
}
|
6951
|
+
} else {
|
6952
|
+
result[key] = target[key];
|
6953
|
+
}
|
6700
6954
|
}
|
6701
6955
|
|
6702
|
-
|
6703
|
-
|
6704
|
-
|
6705
|
-
if (withSuffix) {
|
6706
|
-
output = locale.pastFuture(+this, output);
|
6707
|
-
}
|
6956
|
+
return result;
|
6957
|
+
}
|
6708
6958
|
|
6709
|
-
|
6959
|
+
return target;
|
6710
6960
|
}
|
6711
6961
|
|
6712
|
-
var
|
6962
|
+
var _excluded$4 = ["className", "frameStyle", "style", "direction", "children"];
|
6963
|
+
function FrameBox(_ref) {
|
6964
|
+
var _classnames;
|
6713
6965
|
|
6714
|
-
|
6715
|
-
|
6966
|
+
var className = _ref.className,
|
6967
|
+
frameStyle = _ref.frameStyle,
|
6968
|
+
style = _ref.style,
|
6969
|
+
_ref$direction = _ref.direction,
|
6970
|
+
direction = _ref$direction === void 0 ? 'in' : _ref$direction,
|
6971
|
+
children = _ref.children,
|
6972
|
+
props = _objectWithoutProperties(_ref, _excluded$4);
|
6973
|
+
|
6974
|
+
return /*#__PURE__*/React.createElement("div", _objectSpread2({
|
6975
|
+
className: classnames((_classnames = {}, _defineProperty(_classnames, 'frame', true), _defineProperty(_classnames, className || '', true), _classnames)),
|
6976
|
+
style: style
|
6977
|
+
}, props), /*#__PURE__*/React.createElement("div", {
|
6978
|
+
className: 'framelt',
|
6979
|
+
style: _objectSpread2({
|
6980
|
+
transform: "translateY(".concat(direction == 'in' ? 0 : -100, "%)"),
|
6981
|
+
left: "".concat(direction == 'in' ? 0 : -1, "px)")
|
6982
|
+
}, frameStyle)
|
6983
|
+
}), /*#__PURE__*/React.createElement("div", {
|
6984
|
+
className: 'framert',
|
6985
|
+
style: _objectSpread2({
|
6986
|
+
transform: "translateY(".concat(direction == 'in' ? 0 : -100, "%)"),
|
6987
|
+
right: "".concat(direction == 'in' ? 0 : -1, "px)")
|
6988
|
+
}, frameStyle)
|
6989
|
+
}), /*#__PURE__*/React.createElement("div", {
|
6990
|
+
className: 'framelb',
|
6991
|
+
style: _objectSpread2({
|
6992
|
+
transform: "translateY(".concat(direction == 'in' ? 0 : 100, "%)"),
|
6993
|
+
right: "".concat(direction == 'in' ? 0 : -1, "px)")
|
6994
|
+
}, frameStyle)
|
6995
|
+
}), /*#__PURE__*/React.createElement("div", {
|
6996
|
+
className: 'framerb',
|
6997
|
+
style: _objectSpread2({
|
6998
|
+
transform: "translateY(".concat(direction == 'in' ? 0 : 100, "%)"),
|
6999
|
+
left: "".concat(direction == 'in' ? 0 : -1, "px)")
|
7000
|
+
}, frameStyle)
|
7001
|
+
}), children);
|
6716
7002
|
}
|
6717
7003
|
|
6718
|
-
|
6719
|
-
|
6720
|
-
|
6721
|
-
|
6722
|
-
|
6723
|
-
|
6724
|
-
|
6725
|
-
|
6726
|
-
|
6727
|
-
|
6728
|
-
|
7004
|
+
var _excluded$5 = ["request", "valueEnum", "onLoad", "children", "params"],
|
7005
|
+
_excluded2 = ["value", "label"],
|
7006
|
+
_excluded3 = ["children"];
|
7007
|
+
|
7008
|
+
var WSelect = function WSelect(props) {
|
7009
|
+
var request = props.request,
|
7010
|
+
valueEnum = props.valueEnum,
|
7011
|
+
onLoad = props.onLoad,
|
7012
|
+
children = props.children,
|
7013
|
+
params = props.params,
|
7014
|
+
extraProps = _objectWithoutProperties(props, _excluded$5);
|
6729
7015
|
|
6730
|
-
|
6731
|
-
|
6732
|
-
|
6733
|
-
|
6734
|
-
hours,
|
6735
|
-
years,
|
6736
|
-
s,
|
6737
|
-
total = this.asSeconds(),
|
6738
|
-
totalSign,
|
6739
|
-
ymSign,
|
6740
|
-
daysSign,
|
6741
|
-
hmsSign;
|
7016
|
+
var _useState = useState([]),
|
7017
|
+
_useState2 = _slicedToArray(_useState, 2),
|
7018
|
+
childrenNode = _useState2[0],
|
7019
|
+
setChildrenNode = _useState2[1];
|
6742
7020
|
|
6743
|
-
|
6744
|
-
|
6745
|
-
|
6746
|
-
|
6747
|
-
}
|
7021
|
+
var _useState3 = useState([]),
|
7022
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
7023
|
+
valueEnumList = _useState4[0],
|
7024
|
+
setValueEnumList = _useState4[1];
|
6748
7025
|
|
6749
|
-
|
6750
|
-
|
6751
|
-
|
6752
|
-
|
6753
|
-
minutes %= 60;
|
7026
|
+
var _useState5 = useState(null),
|
7027
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
7028
|
+
resList = _useState6[0],
|
7029
|
+
setResList = _useState6[1];
|
6754
7030
|
|
6755
|
-
|
6756
|
-
|
6757
|
-
months %= 12;
|
7031
|
+
useEffect(function () {
|
7032
|
+
var isUnmount = false;
|
6758
7033
|
|
6759
|
-
|
6760
|
-
|
7034
|
+
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
7035
|
+
var res, node;
|
7036
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
7037
|
+
while (1) {
|
7038
|
+
switch (_context.prev = _context.next) {
|
7039
|
+
case 0:
|
7040
|
+
if (!request) {
|
7041
|
+
_context.next = 10;
|
7042
|
+
break;
|
7043
|
+
}
|
6761
7044
|
|
6762
|
-
|
6763
|
-
|
6764
|
-
daysSign = sign(this._days) !== sign(total) ? '-' : '';
|
6765
|
-
hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';
|
7045
|
+
_context.next = 3;
|
7046
|
+
return request();
|
6766
7047
|
|
6767
|
-
|
6768
|
-
|
6769
|
-
'P' +
|
6770
|
-
(years ? ymSign + years + 'Y' : '') +
|
6771
|
-
(months ? ymSign + months + 'M' : '') +
|
6772
|
-
(days ? daysSign + days + 'D' : '') +
|
6773
|
-
(hours || minutes || seconds ? 'T' : '') +
|
6774
|
-
(hours ? hmsSign + hours + 'H' : '') +
|
6775
|
-
(minutes ? hmsSign + minutes + 'M' : '') +
|
6776
|
-
(seconds ? hmsSign + s + 'S' : '')
|
6777
|
-
);
|
6778
|
-
}
|
7048
|
+
case 3:
|
7049
|
+
res = _context.sent;
|
6779
7050
|
|
6780
|
-
|
7051
|
+
if (!isUnmount) {
|
7052
|
+
_context.next = 6;
|
7053
|
+
break;
|
7054
|
+
}
|
6781
7055
|
|
6782
|
-
|
6783
|
-
proto$2.abs = abs;
|
6784
|
-
proto$2.add = add$1;
|
6785
|
-
proto$2.subtract = subtract$1;
|
6786
|
-
proto$2.as = as;
|
6787
|
-
proto$2.asMilliseconds = asMilliseconds;
|
6788
|
-
proto$2.asSeconds = asSeconds;
|
6789
|
-
proto$2.asMinutes = asMinutes;
|
6790
|
-
proto$2.asHours = asHours;
|
6791
|
-
proto$2.asDays = asDays;
|
6792
|
-
proto$2.asWeeks = asWeeks;
|
6793
|
-
proto$2.asMonths = asMonths;
|
6794
|
-
proto$2.asQuarters = asQuarters;
|
6795
|
-
proto$2.asYears = asYears;
|
6796
|
-
proto$2.valueOf = valueOf$1;
|
6797
|
-
proto$2._bubble = bubble;
|
6798
|
-
proto$2.clone = clone$1;
|
6799
|
-
proto$2.get = get$2;
|
6800
|
-
proto$2.milliseconds = milliseconds;
|
6801
|
-
proto$2.seconds = seconds;
|
6802
|
-
proto$2.minutes = minutes;
|
6803
|
-
proto$2.hours = hours;
|
6804
|
-
proto$2.days = days;
|
6805
|
-
proto$2.weeks = weeks;
|
6806
|
-
proto$2.months = months;
|
6807
|
-
proto$2.years = years;
|
6808
|
-
proto$2.humanize = humanize;
|
6809
|
-
proto$2.toISOString = toISOString$1;
|
6810
|
-
proto$2.toString = toISOString$1;
|
6811
|
-
proto$2.toJSON = toISOString$1;
|
6812
|
-
proto$2.locale = locale;
|
6813
|
-
proto$2.localeData = localeData;
|
7056
|
+
return _context.abrupt("return");
|
6814
7057
|
|
6815
|
-
|
6816
|
-
|
6817
|
-
|
6818
|
-
)
|
6819
|
-
|
7058
|
+
case 6:
|
7059
|
+
setResList(res);
|
7060
|
+
onLoad && onLoad(res);
|
7061
|
+
node = res === null || res === void 0 ? void 0 : res.map(function (_ref2) {
|
7062
|
+
var value = _ref2.value,
|
7063
|
+
label = _ref2.label,
|
7064
|
+
extraProps = _objectWithoutProperties(_ref2, _excluded2);
|
6820
7065
|
|
6821
|
-
|
7066
|
+
return /*#__PURE__*/React.createElement(_Select.Option, _objectSpread2({
|
7067
|
+
key: value,
|
7068
|
+
value: value
|
7069
|
+
}, extraProps), label) || /*#__PURE__*/React.createElement(React.Fragment, null);
|
7070
|
+
});
|
7071
|
+
setChildrenNode(node);
|
6822
7072
|
|
6823
|
-
|
6824
|
-
|
7073
|
+
case 10:
|
7074
|
+
case "end":
|
7075
|
+
return _context.stop();
|
7076
|
+
}
|
7077
|
+
}
|
7078
|
+
}, _callee);
|
7079
|
+
}))();
|
6825
7080
|
|
6826
|
-
|
7081
|
+
var valueEnumNode = [];
|
7082
|
+
var options = [];
|
6827
7083
|
|
6828
|
-
|
6829
|
-
|
6830
|
-
|
6831
|
-
config._d = new Date(parseFloat(input) * 1000);
|
6832
|
-
});
|
6833
|
-
addParseToken('x', function (input, array, config) {
|
6834
|
-
config._d = new Date(toInt(input));
|
6835
|
-
});
|
7084
|
+
if (valueEnum) {
|
7085
|
+
for (var key in valueEnum) {
|
7086
|
+
var text = '';
|
6836
7087
|
|
6837
|
-
|
7088
|
+
if (typeof valueEnum[key] === 'string') {
|
7089
|
+
text = valueEnum[key];
|
7090
|
+
} else {
|
7091
|
+
var _valueEnum$key;
|
6838
7092
|
|
6839
|
-
|
7093
|
+
text = (_valueEnum$key = valueEnum[key]) === null || _valueEnum$key === void 0 ? void 0 : _valueEnum$key.text;
|
7094
|
+
}
|
6840
7095
|
|
6841
|
-
|
7096
|
+
options.push({
|
7097
|
+
label: text,
|
7098
|
+
value: key
|
7099
|
+
});
|
7100
|
+
valueEnumNode.push( /*#__PURE__*/React.createElement(_Select.Option, {
|
7101
|
+
key: key,
|
7102
|
+
value: key
|
7103
|
+
}, text));
|
7104
|
+
}
|
7105
|
+
}
|
6842
7106
|
|
6843
|
-
|
6844
|
-
|
6845
|
-
|
6846
|
-
|
6847
|
-
|
6848
|
-
|
6849
|
-
|
6850
|
-
|
6851
|
-
|
6852
|
-
|
6853
|
-
|
6854
|
-
|
6855
|
-
|
6856
|
-
hooks.parseZone = createInZone;
|
6857
|
-
hooks.localeData = getLocale;
|
6858
|
-
hooks.isDuration = isDuration;
|
6859
|
-
hooks.monthsShort = listMonthsShort;
|
6860
|
-
hooks.weekdaysMin = listWeekdaysMin;
|
6861
|
-
hooks.defineLocale = defineLocale;
|
6862
|
-
hooks.updateLocale = updateLocale;
|
6863
|
-
hooks.locales = listLocales;
|
6864
|
-
hooks.weekdaysShort = listWeekdaysShort;
|
6865
|
-
hooks.normalizeUnits = normalizeUnits;
|
6866
|
-
hooks.relativeTimeRounding = getSetRelativeTimeRounding;
|
6867
|
-
hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
|
6868
|
-
hooks.calendarFormat = getCalendarFormat;
|
6869
|
-
hooks.prototype = proto;
|
7107
|
+
onLoad && onLoad(options);
|
7108
|
+
setValueEnumList(valueEnumNode);
|
7109
|
+
return function () {
|
7110
|
+
isUnmount = true;
|
7111
|
+
};
|
7112
|
+
}, [JSON.stringify(params || {})]);
|
7113
|
+
return /*#__PURE__*/React.createElement(_Select, _objectSpread2({
|
7114
|
+
showSearch: true,
|
7115
|
+
filterOption: function filterOption(input, option) {
|
7116
|
+
return option.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
7117
|
+
}
|
7118
|
+
}, extraProps), request ? childrenNode : valueEnum ? valueEnumList : children);
|
7119
|
+
};
|
6870
7120
|
|
6871
|
-
|
6872
|
-
|
6873
|
-
|
6874
|
-
|
6875
|
-
|
6876
|
-
|
6877
|
-
|
6878
|
-
TIME_SECONDS: 'HH:mm:ss', // <input type="time" step="1" />
|
6879
|
-
TIME_MS: 'HH:mm:ss.SSS', // <input type="time" step="0.001" />
|
6880
|
-
WEEK: 'GGGG-[W]WW', // <input type="week" />
|
6881
|
-
MONTH: 'YYYY-MM', // <input type="month" />
|
7121
|
+
WSelect.defaultProps = {};
|
7122
|
+
|
7123
|
+
var Option = function Option(props) {
|
7124
|
+
var children = props.children,
|
7125
|
+
extraProps = _objectWithoutProperties(props, _excluded3);
|
7126
|
+
|
7127
|
+
return /*#__PURE__*/React.createElement(_Select.Option, _objectSpread2({}, extraProps), children);
|
6882
7128
|
};
|
6883
7129
|
|
6884
|
-
var
|
7130
|
+
var Index$5 = WSelect;
|
7131
|
+
Index$5.Option = Option;
|
7132
|
+
var Select = /*#__PURE__*/memo(Index$5);
|
7133
|
+
|
7134
|
+
var _excluded$6 = ["defaultValue", "format", "value", "onChange"],
|
6885
7135
|
_excluded2$1 = ["defaultValue", "value", "format", "showTime", "onChange"];
|
6886
7136
|
|
6887
7137
|
var momentValue = function momentValue(value) {
|
@@ -6897,7 +7147,7 @@ var WDatePicker$1 = function WDatePicker(props) {
|
|
6897
7147
|
format = props.format,
|
6898
7148
|
value = props.value,
|
6899
7149
|
_onChange = props.onChange,
|
6900
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
7150
|
+
extraProps = _objectWithoutProperties(props, _excluded$6);
|
6901
7151
|
|
6902
7152
|
return /*#__PURE__*/React.createElement(_DatePicker, _objectSpread2({
|
6903
7153
|
defaultValue: momentValue(defaultValue),
|
@@ -7034,7 +7284,7 @@ var NumericInput = /*#__PURE__*/function (_React$Component) {
|
|
7034
7284
|
return NumericInput;
|
7035
7285
|
}(React.Component);
|
7036
7286
|
|
7037
|
-
var _excluded$
|
7287
|
+
var _excluded$7 = ["treeNodeLabelProp", "treeNodeValueProp", "treeNodeChildrenProp", "request", "onLoad", "params", "treeData"];
|
7038
7288
|
|
7039
7289
|
var TreeSelect = function TreeSelect(_ref) {
|
7040
7290
|
var _ref$treeNodeLabelPro = _ref.treeNodeLabelProp,
|
@@ -7047,7 +7297,7 @@ var TreeSelect = function TreeSelect(_ref) {
|
|
7047
7297
|
onLoad = _ref.onLoad,
|
7048
7298
|
params = _ref.params,
|
7049
7299
|
treePropsData = _ref.treeData,
|
7050
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
7300
|
+
props = _objectWithoutProperties(_ref, _excluded$7);
|
7051
7301
|
|
7052
7302
|
var renderTree = function renderTree(data) {
|
7053
7303
|
return data === null || data === void 0 ? void 0 : data.map(function (item) {
|
@@ -7112,17 +7362,19 @@ var TreeSelect = function TreeSelect(_ref) {
|
|
7112
7362
|
isUnmount = true;
|
7113
7363
|
};
|
7114
7364
|
}, [JSON.stringify(params)]);
|
7115
|
-
return /*#__PURE__*/React.createElement(_TreeSelect, _objectSpread2({
|
7365
|
+
return /*#__PURE__*/React.createElement(_TreeSelect, _objectSpread2(_objectSpread2({
|
7116
7366
|
showSearch: true,
|
7117
7367
|
treeNodeFilterProp: "title",
|
7118
7368
|
treeDefaultExpandAll: true
|
7119
|
-
}, props),
|
7369
|
+
}, props), {}, {
|
7370
|
+
dropdownStyle: {}
|
7371
|
+
}), !props.children ? renderTree(treeData) : props.children);
|
7120
7372
|
};
|
7121
7373
|
|
7122
7374
|
var Index$7 = TreeSelect;
|
7123
7375
|
Index$7.TreeNode = _TreeSelect.TreeNode;
|
7124
7376
|
|
7125
|
-
var _excluded$
|
7377
|
+
var _excluded$8 = ["request", "options", "onLoad", "value", "onChange", "params"];
|
7126
7378
|
|
7127
7379
|
var WCascader = function WCascader(props) {
|
7128
7380
|
var request = props.request,
|
@@ -7131,7 +7383,7 @@ var WCascader = function WCascader(props) {
|
|
7131
7383
|
value = props.value,
|
7132
7384
|
_onChange = props.onChange,
|
7133
7385
|
params = props.params,
|
7134
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
7386
|
+
extraProps = _objectWithoutProperties(props, _excluded$8);
|
7135
7387
|
|
7136
7388
|
var _useState = useState(null),
|
7137
7389
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -7198,7 +7450,7 @@ var WCascader = function WCascader(props) {
|
|
7198
7450
|
}, extraProps));
|
7199
7451
|
};
|
7200
7452
|
|
7201
|
-
var _excluded$
|
7453
|
+
var _excluded$9 = ["columns", "extraColumns", "className", "style", "search", "disabled", "disabledHideInSearch", "disabledRuler", "onFormChange", "onSubmit", "onReset", "setForm", "deps"];
|
7202
7454
|
var RangePicker$2 = Index$6.RangePicker;
|
7203
7455
|
|
7204
7456
|
var WForm = function WForm(props, ref) {
|
@@ -7215,7 +7467,7 @@ var WForm = function WForm(props, ref) {
|
|
7215
7467
|
onReset = props.onReset,
|
7216
7468
|
setForm = props.setForm,
|
7217
7469
|
deps = props.deps,
|
7218
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
7470
|
+
extraProps = _objectWithoutProperties(props, _excluded$9);
|
7219
7471
|
|
7220
7472
|
var _Form$useForm = _Form.useForm(),
|
7221
7473
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
@@ -7993,7 +8245,7 @@ var WForm = function WForm(props, ref) {
|
|
7993
8245
|
|
7994
8246
|
var WForm$1 = /*#__PURE__*/React.forwardRef(WForm);
|
7995
8247
|
|
7996
|
-
var _excluded$
|
8248
|
+
var _excluded$a = ["columns", "dataSource", "request", "onLoad", "params", "onSubmit", "rowKey", "onRow", "className", "rowClassName", "rowSelection", "style", "tbodyStyle", "thStyle", "border", "scroll", "pagination", "search", "frameBoxTable", "frameBoxDirection", "formRef", "none"];
|
7997
8249
|
|
7998
8250
|
function Table(_ref) {
|
7999
8251
|
var _formSearchRef$curren4, _classnames2, _columns$, _columns$2;
|
@@ -8025,7 +8277,7 @@ function Table(_ref) {
|
|
8025
8277
|
frameBoxDirection = _ref$frameBoxDirectio === void 0 ? 'out' : _ref$frameBoxDirectio,
|
8026
8278
|
formRef = _ref.formRef,
|
8027
8279
|
none = _ref.none,
|
8028
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
8280
|
+
props = _objectWithoutProperties(_ref, _excluded$a);
|
8029
8281
|
|
8030
8282
|
var _useState = useState(_toConsumableArray((rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRowKeys) || [])),
|
8031
8283
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -8565,7 +8817,7 @@ Table.defaultProps = {
|
|
8565
8817
|
};
|
8566
8818
|
var index$1 = /*#__PURE__*/memo(Table);
|
8567
8819
|
|
8568
|
-
var _excluded$
|
8820
|
+
var _excluded$b = ["height", "width", "count", "style", "numberStyle"],
|
8569
8821
|
_excluded2$2 = ["count", "numberCount", "width", "height", "marginRight"];
|
8570
8822
|
|
8571
8823
|
var Number = function Number(_ref) {
|
@@ -8575,7 +8827,7 @@ var Number = function Number(_ref) {
|
|
8575
8827
|
count = _ref$count === void 0 ? 0 : _ref$count,
|
8576
8828
|
style = _ref.style,
|
8577
8829
|
numberStyle = _ref.numberStyle,
|
8578
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
8830
|
+
props = _objectWithoutProperties(_ref, _excluded$b);
|
8579
8831
|
|
8580
8832
|
// 上次的值
|
8581
8833
|
var _useState = useState(0),
|
@@ -8739,12 +8991,12 @@ var Index$8 = function Index(props) {
|
|
8739
8991
|
}));
|
8740
8992
|
};
|
8741
8993
|
|
8742
|
-
var _excluded$
|
8994
|
+
var _excluded$c = ["duration"];
|
8743
8995
|
|
8744
8996
|
var Index$9 = function Index(props) {
|
8745
8997
|
var _props$duration = props.duration,
|
8746
8998
|
duration = _props$duration === void 0 ? 2.75 : _props$duration,
|
8747
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
8999
|
+
extraProps = _objectWithoutProperties(props, _excluded$c);
|
8748
9000
|
return /*#__PURE__*/React.createElement(CountUp, _objectSpread2({
|
8749
9001
|
duration: duration
|
8750
9002
|
}, extraProps));
|
@@ -8752,7 +9004,7 @@ var Index$9 = function Index(props) {
|
|
8752
9004
|
|
8753
9005
|
Index$9.defaultProps = {};
|
8754
9006
|
|
8755
|
-
var _excluded$
|
9007
|
+
var _excluded$d = ["list", "render", "none", "partSize"];
|
8756
9008
|
|
8757
9009
|
function AutoScroll(props) {
|
8758
9010
|
var inner1 = useRef();
|
@@ -8837,7 +9089,7 @@ var Index$a = function Index(_ref) {
|
|
8837
9089
|
none = _ref.none,
|
8838
9090
|
_ref$partSize = _ref.partSize,
|
8839
9091
|
partSize = _ref$partSize === void 0 ? 4 : _ref$partSize,
|
8840
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
9092
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$d);
|
8841
9093
|
|
8842
9094
|
var _useState = useState([]),
|
8843
9095
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -8920,7 +9172,7 @@ var Index$a = function Index(_ref) {
|
|
8920
9172
|
}, none || '暂无数据');
|
8921
9173
|
};
|
8922
9174
|
|
8923
|
-
var _excluded$
|
9175
|
+
var _excluded$e = ["data", "onClick", "slidesPerView", "rowKey", "onSwiperChange", "renderItem"];
|
8924
9176
|
|
8925
9177
|
SwiperCore.use([Pagination, Navigation, Autoplay, Virtual]);
|
8926
9178
|
|
@@ -8932,7 +9184,7 @@ var Index$b = function Index(props) {
|
|
8932
9184
|
rowKey = props.rowKey,
|
8933
9185
|
onSwiperChange = props.onSwiperChange,
|
8934
9186
|
renderItem = props.renderItem,
|
8935
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
9187
|
+
extraProps = _objectWithoutProperties(props, _excluded$e);
|
8936
9188
|
|
8937
9189
|
var _useState = useState(null),
|
8938
9190
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -9583,7 +9835,7 @@ function createBrowserHistory(props) {
|
|
9583
9835
|
return history;
|
9584
9836
|
}
|
9585
9837
|
|
9586
|
-
var _excluded$
|
9838
|
+
var _excluded$f = ["routes", "className"];
|
9587
9839
|
var history = createBrowserHistory();
|
9588
9840
|
|
9589
9841
|
function itemRender(route, params, routes, paths) {
|
@@ -9601,7 +9853,7 @@ function itemRender(route, params, routes, paths) {
|
|
9601
9853
|
var Index$c = function Index(_ref) {
|
9602
9854
|
var routes = _ref.routes,
|
9603
9855
|
className = _ref.className,
|
9604
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
9856
|
+
props = _objectWithoutProperties(_ref, _excluded$f);
|
9605
9857
|
|
9606
9858
|
return /*#__PURE__*/React.createElement(_Breadcrumb, _objectSpread2({
|
9607
9859
|
className: className || 'default',
|
@@ -9611,7 +9863,7 @@ var Index$c = function Index(_ref) {
|
|
9611
9863
|
}, props));
|
9612
9864
|
};
|
9613
9865
|
|
9614
|
-
var _excluded$
|
9866
|
+
var _excluded$g = ["title", "className", "headerTail", "headerCenter", "sliderTabs"];
|
9615
9867
|
|
9616
9868
|
var Index$d = function Index(_ref, ref) {
|
9617
9869
|
var _classNames, _sliderTabs$component, _sliderTabs$tabs;
|
@@ -9622,7 +9874,7 @@ var Index$d = function Index(_ref, ref) {
|
|
9622
9874
|
headerTail = _ref.headerTail,
|
9623
9875
|
headerCenter = _ref.headerCenter,
|
9624
9876
|
sliderTabs = _ref.sliderTabs,
|
9625
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
9877
|
+
props = _objectWithoutProperties(_ref, _excluded$g);
|
9626
9878
|
|
9627
9879
|
useImperativeHandle(ref, function () {
|
9628
9880
|
return {
|
@@ -9866,7 +10118,7 @@ function DialogModel(props, ref) {
|
|
9866
10118
|
|
9867
10119
|
var Dialog = /*#__PURE__*/React.forwardRef(DialogModel);
|
9868
10120
|
|
9869
|
-
var _excluded$
|
10121
|
+
var _excluded$h = ["visible", "width", "closeCb", "onClose", "className", "style"],
|
9870
10122
|
_excluded2$3 = ["visible"];
|
9871
10123
|
|
9872
10124
|
var Modal = /*#__PURE__*/function (_React$PureComponent) {
|
@@ -9919,19 +10171,20 @@ var Modal = /*#__PURE__*/function (_React$PureComponent) {
|
|
9919
10171
|
title = _this$props2.title,
|
9920
10172
|
onClose = _this$props2.onClose,
|
9921
10173
|
closeCb = _this$props2.closeCb,
|
10174
|
+
renderClose = _this$props2.renderClose,
|
9922
10175
|
isDrag = _this$props2.isDrag;
|
9923
10176
|
return /*#__PURE__*/React.createElement("div", {
|
9924
10177
|
className: "model-header"
|
9925
10178
|
}, /*#__PURE__*/React.createElement("div", {
|
9926
10179
|
ref: _this.titleRef,
|
9927
10180
|
className: "model-title ".concat(isDrag ? 'move' : '')
|
9928
|
-
}, title), /*#__PURE__*/React.createElement(
|
10181
|
+
}, title), /*#__PURE__*/React.createElement("div", {
|
9929
10182
|
className: "model-closeIcon",
|
9930
10183
|
onClick: function onClick() {
|
9931
10184
|
onClose && onClose();
|
9932
10185
|
closeCb && closeCb();
|
9933
10186
|
}
|
9934
|
-
}));
|
10187
|
+
}, renderClose ? renderClose : /*#__PURE__*/React.createElement(CloseCircleOutlined, null)));
|
9935
10188
|
};
|
9936
10189
|
|
9937
10190
|
_this.renderContent = function () {
|
@@ -9983,7 +10236,7 @@ var Modal = /*#__PURE__*/function (_React$PureComponent) {
|
|
9983
10236
|
onClose = _this$props4.onClose,
|
9984
10237
|
className = _this$props4.className,
|
9985
10238
|
style = _this$props4.style,
|
9986
|
-
other = _objectWithoutProperties(_this$props4, _excluded$
|
10239
|
+
other = _objectWithoutProperties(_this$props4, _excluded$h);
|
9987
10240
|
|
9988
10241
|
return /*#__PURE__*/React.createElement(Dialog, _objectSpread2({
|
9989
10242
|
ref: this.containerRef,
|
@@ -10166,7 +10419,7 @@ function DialogModel$1(props) {
|
|
10166
10419
|
return renderChildren;
|
10167
10420
|
}
|
10168
10421
|
|
10169
|
-
var _excluded$
|
10422
|
+
var _excluded$i = ["visible"];
|
10170
10423
|
|
10171
10424
|
var Modal$1 = /*#__PURE__*/function (_React$PureComponent) {
|
10172
10425
|
_inherits(Modal, _React$PureComponent);
|
@@ -10221,17 +10474,18 @@ var Modal$1 = /*#__PURE__*/function (_React$PureComponent) {
|
|
10221
10474
|
_this.renderTop = function () {
|
10222
10475
|
var _this$props2 = _this.props,
|
10223
10476
|
title = _this$props2.title,
|
10224
|
-
onClose = _this$props2.onClose
|
10477
|
+
onClose = _this$props2.onClose,
|
10478
|
+
renderClose = _this$props2.renderClose;
|
10225
10479
|
return /*#__PURE__*/React.createElement("div", {
|
10226
10480
|
className: "model-header-tips"
|
10227
10481
|
}, /*#__PURE__*/React.createElement("div", {
|
10228
10482
|
className: "model-title-tips"
|
10229
|
-
}, title), /*#__PURE__*/React.createElement(
|
10483
|
+
}, title), /*#__PURE__*/React.createElement("div", {
|
10230
10484
|
className: "model-closeIcon-tips",
|
10231
10485
|
onClick: function onClick() {
|
10232
10486
|
return onClose && onClose();
|
10233
10487
|
}
|
10234
|
-
}));
|
10488
|
+
}, renderClose ? renderClose : /*#__PURE__*/React.createElement(CloseCircleOutlined, null)));
|
10235
10489
|
};
|
10236
10490
|
|
10237
10491
|
_this.renderContent = function () {
|
@@ -10306,7 +10560,7 @@ Modal$1.show = function (config) {
|
|
10306
10560
|
manager.setShow = setShow;
|
10307
10561
|
|
10308
10562
|
var visible = props.visible,
|
10309
|
-
trueProps = _objectWithoutProperties(props, _excluded$
|
10563
|
+
trueProps = _objectWithoutProperties(props, _excluded$i);
|
10310
10564
|
|
10311
10565
|
useEffect(function () {
|
10312
10566
|
manager.mounted = true;
|
@@ -10506,7 +10760,7 @@ function DragBox(_ref) {
|
|
10506
10760
|
}, children)) : /*#__PURE__*/React.createElement(React.Fragment, null);
|
10507
10761
|
}
|
10508
10762
|
|
10509
|
-
var _excluded$
|
10763
|
+
var _excluded$j = ["columns", "extraColumns", "search", "visible", "setVisible", "modalFormOpend", "disabled", "submitMethod", "onSubmitSuccess", "title", "record", "onFormChange", "formItemChild", "onCancel", "modalHeaderSolt", "modalFooterSolt", "formProps"];
|
10510
10764
|
|
10511
10765
|
var ModalForm = function ModalForm(props, ref) {
|
10512
10766
|
var columns = props.columns,
|
@@ -10526,7 +10780,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10526
10780
|
modalHeaderSolt = props.modalHeaderSolt,
|
10527
10781
|
modalFooterSolt = props.modalFooterSolt,
|
10528
10782
|
formProps = props.formProps,
|
10529
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
10783
|
+
extraProps = _objectWithoutProperties(props, _excluded$j);
|
10530
10784
|
|
10531
10785
|
var formRef = useRef(null);
|
10532
10786
|
|
@@ -10672,7 +10926,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10672
10926
|
|
10673
10927
|
var ModalForm$1 = /*#__PURE__*/React.forwardRef(ModalForm);
|
10674
10928
|
|
10675
|
-
var _excluded$
|
10929
|
+
var _excluded$k = ["columns", "extraColumns", "request", "modalFormSearch", "search", "tableAction", "fliterAction", "renderTableBar", "className", "style", "onFormChange", "modalConfig", "searchFormConfig", "optionColumnConfig", "pagination", "noBordered"];
|
10676
10930
|
|
10677
10931
|
var TabelCard = function TabelCard(props, ref) {
|
10678
10932
|
var columns = props.columns,
|
@@ -10691,7 +10945,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10691
10945
|
optionColumnConfig = props.optionColumnConfig,
|
10692
10946
|
pagination = props.pagination,
|
10693
10947
|
noBordered = props.noBordered,
|
10694
|
-
extraProps = _objectWithoutProperties(props, _excluded$
|
10948
|
+
extraProps = _objectWithoutProperties(props, _excluded$k);
|
10695
10949
|
|
10696
10950
|
var actionRef = useRef();
|
10697
10951
|
var modalFormRef = useRef(null);
|
@@ -10903,7 +11157,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10903
11157
|
}, /*#__PURE__*/React.createElement("a", {
|
10904
11158
|
key: btn.key,
|
10905
11159
|
onClick: function () {
|
10906
|
-
var _onClick = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
|
11160
|
+
var _onClick = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5(e) {
|
10907
11161
|
var _actionHandler$item$t;
|
10908
11162
|
|
10909
11163
|
var info;
|
@@ -10911,23 +11165,24 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10911
11165
|
while (1) {
|
10912
11166
|
switch (_context5.prev = _context5.next) {
|
10913
11167
|
case 0:
|
11168
|
+
e.stopPropagation();
|
10914
11169
|
info = null;
|
10915
11170
|
|
10916
11171
|
if (!item.fetchInfo) {
|
10917
|
-
_context5.next =
|
11172
|
+
_context5.next = 6;
|
10918
11173
|
break;
|
10919
11174
|
}
|
10920
11175
|
|
10921
|
-
_context5.next =
|
11176
|
+
_context5.next = 5;
|
10922
11177
|
return item.fetchInfo(record);
|
10923
11178
|
|
10924
|
-
case
|
11179
|
+
case 5:
|
10925
11180
|
info = _context5.sent;
|
10926
11181
|
|
10927
|
-
case
|
11182
|
+
case 6:
|
10928
11183
|
(_actionHandler$item$t = actionHandler[item.type]) === null || _actionHandler$item$t === void 0 ? void 0 : _actionHandler$item$t.call(actionHandler, item, info || record, index);
|
10929
11184
|
|
10930
|
-
case
|
11185
|
+
case 7:
|
10931
11186
|
case "end":
|
10932
11187
|
return _context5.stop();
|
10933
11188
|
}
|
@@ -10935,7 +11190,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10935
11190
|
}, _callee5);
|
10936
11191
|
}));
|
10937
11192
|
|
10938
|
-
function onClick() {
|
11193
|
+
function onClick(_x3) {
|
10939
11194
|
return _onClick.apply(this, arguments);
|
10940
11195
|
}
|
10941
11196
|
|
@@ -10960,7 +11215,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10960
11215
|
}, /*#__PURE__*/React.createElement("a", {
|
10961
11216
|
key: btn.key,
|
10962
11217
|
onClick: function () {
|
10963
|
-
var _onClick2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
|
11218
|
+
var _onClick2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6(e) {
|
10964
11219
|
var _actionHandler$item$t3;
|
10965
11220
|
|
10966
11221
|
var info;
|
@@ -10968,23 +11223,24 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10968
11223
|
while (1) {
|
10969
11224
|
switch (_context6.prev = _context6.next) {
|
10970
11225
|
case 0:
|
11226
|
+
e.stopPropagation();
|
10971
11227
|
info = null;
|
10972
11228
|
|
10973
11229
|
if (!item.fetchInfo) {
|
10974
|
-
_context6.next =
|
11230
|
+
_context6.next = 6;
|
10975
11231
|
break;
|
10976
11232
|
}
|
10977
11233
|
|
10978
|
-
_context6.next =
|
11234
|
+
_context6.next = 5;
|
10979
11235
|
return item.fetchInfo(record);
|
10980
11236
|
|
10981
|
-
case
|
11237
|
+
case 5:
|
10982
11238
|
info = _context6.sent;
|
10983
11239
|
|
10984
|
-
case
|
11240
|
+
case 6:
|
10985
11241
|
(_actionHandler$item$t3 = actionHandler[item.type]) === null || _actionHandler$item$t3 === void 0 ? void 0 : _actionHandler$item$t3.call(actionHandler, item, info || record, index);
|
10986
11242
|
|
10987
|
-
case
|
11243
|
+
case 7:
|
10988
11244
|
case "end":
|
10989
11245
|
return _context6.stop();
|
10990
11246
|
}
|
@@ -10992,7 +11248,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10992
11248
|
}, _callee6);
|
10993
11249
|
}));
|
10994
11250
|
|
10995
|
-
function onClick() {
|
11251
|
+
function onClick(_x4) {
|
10996
11252
|
return _onClick2.apply(this, arguments);
|
10997
11253
|
}
|
10998
11254
|
|
@@ -11022,10 +11278,11 @@ var TabelCard = function TabelCard(props, ref) {
|
|
11022
11278
|
key: i
|
11023
11279
|
}, /*#__PURE__*/React.createElement("a", {
|
11024
11280
|
key: btn.key,
|
11025
|
-
onClick: function onClick() {
|
11281
|
+
onClick: function onClick(e) {
|
11026
11282
|
var _actionHandler$item$t5;
|
11027
11283
|
|
11028
|
-
|
11284
|
+
e.stopPropagation();
|
11285
|
+
(_actionHandler$item$t5 = actionHandler[item.type]) === null || _actionHandler$item$t5 === void 0 ? void 0 : _actionHandler$item$t5.call(actionHandler, item, record, index);
|
11029
11286
|
}
|
11030
11287
|
}, btn.icon, " ", btn.title));
|
11031
11288
|
}
|
@@ -11077,7 +11334,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
11077
11334
|
}, _callee7);
|
11078
11335
|
}));
|
11079
11336
|
|
11080
|
-
function modalOnOk(
|
11337
|
+
function modalOnOk(_x5, _x6) {
|
11081
11338
|
return _modalOnOk3.apply(this, arguments);
|
11082
11339
|
}
|
11083
11340
|
|
@@ -11159,7 +11416,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
11159
11416
|
}, _callee8);
|
11160
11417
|
}));
|
11161
11418
|
|
11162
|
-
function submitMethod(
|
11419
|
+
function submitMethod(_x7, _x8) {
|
11163
11420
|
return _submitMethod.apply(this, arguments);
|
11164
11421
|
}
|
11165
11422
|
|
@@ -11249,7 +11506,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
11249
11506
|
}, _callee9);
|
11250
11507
|
}));
|
11251
11508
|
|
11252
|
-
function request(
|
11509
|
+
function request(_x9) {
|
11253
11510
|
return _request2.apply(this, arguments);
|
11254
11511
|
}
|
11255
11512
|
|
@@ -12104,7 +12361,7 @@ function VideoPlayer(_ref, ref) {
|
|
12104
12361
|
|
12105
12362
|
var index$5 = /*#__PURE__*/forwardRef(VideoPlayer);
|
12106
12363
|
|
12107
|
-
var _excluded$
|
12364
|
+
var _excluded$l = ["id", "videoUrls", "definitionList", "isLoop", "muted", "currentIndex", "setCurrentIndex", "className", "style", "visible", "autoplay", "videoInit", "enableMemory", "lastPlayTimeHideDelay"];
|
12108
12365
|
|
12109
12366
|
var DEFAULT_PLAY_BACK_RATE = [0.5, 0.75, 1, 1.5, 2]; // 默认记忆提示文字展示时长(s)
|
12110
12367
|
|
@@ -12135,7 +12392,7 @@ var index$6 = (function (_ref) {
|
|
12135
12392
|
enableMemory = _ref$enableMemory === void 0 ? false : _ref$enableMemory,
|
12136
12393
|
_ref$lastPlayTimeHide = _ref.lastPlayTimeHideDelay,
|
12137
12394
|
lastPlayTimeHideDelay = _ref$lastPlayTimeHide === void 0 ? DEFAULT_LAST_PLAY_TIME_DELAY : _ref$lastPlayTimeHide,
|
12138
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
12395
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
12139
12396
|
|
12140
12397
|
var player = useRef();
|
12141
12398
|
var currentPlayerIndex = useRef(0); // 内置的 index 状态管理
|
@@ -13113,4 +13370,16 @@ function WaterLevelCharts(config) {
|
|
13113
13370
|
});
|
13114
13371
|
}
|
13115
13372
|
|
13373
|
+
/*
|
13374
|
+
* @Author: lijin
|
13375
|
+
* @Date: 2021-09-09 11:02:54
|
13376
|
+
* @LastEditTime: 2022-09-06 15:31:12
|
13377
|
+
* @LastEditors: lijin
|
13378
|
+
* @Description:
|
13379
|
+
* @FilePath: \wargerm-components\src\index.ts
|
13380
|
+
* 可以输入预定的版权声明、个性签名、空行等
|
13381
|
+
*/
|
13382
|
+
var COLOR_ATTR_NAME = 'data-prefers-color';
|
13383
|
+
document.documentElement.setAttribute(COLOR_ATTR_NAME, 'nt');
|
13384
|
+
|
13116
13385
|
export { Index$a as AutoScroll, Index$c as Breadcrumb, WButton as Button, index$4 as Calendar, index$2 as Card, WCascader as Cascader, Index$4 as Checkbox, Index$9 as CountUp, Index$2 as DatePicker, DragBox, index as IconFont, Index as Input, WInputNumber as InputNumber, LineEcharts, Modal, ModalForm$1 as ModalForm, Modal$1 as ModalTips, Index$8 as Number, NumericInput, Index$3 as Radio, Select, Index$b as Swiper, WSwitch as Switch, index$3 as TabelCard, index$1 as Table, Index$7 as TreeSelect, Upload, index$6 as Video, index$5 as VideoPlayer, Index$6 as WDatePicker, WForm$1 as WForm, WaterLevelCharts, WebsocketHeart, useEventEmitter };
|