@lingxiteam/assets 4.2.1-alpha.2 → 4.3.2-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/IconSvg/index.js +8 -7
- package/es/error/errorCatch/index.js +1 -1
- package/es/error/errorDisplay/Mobile/Drawer/Drawer.js +99 -77
- package/es/error/errorDisplay/Mobile/Drawer/index.js +26 -26
- package/es/error/errorDisplay/Mobile/ErrorMsg/index.js +127 -129
- package/es/error/errorDisplay/Mobile/Modal/Modal.js +46 -31
- package/es/error/errorDisplay/Mobile/Modal/index.js +24 -24
- package/es/error/errorDisplay/Mobile/defaultGlobalConfig.js +2 -2
- package/es/error/errorDisplay/Web/Drawer/Drawer.js +183 -145
- package/es/error/errorDisplay/Web/Drawer/DrawerConnect.js +43 -46
- package/es/error/errorDisplay/Web/Drawer/index.js +15 -15
- package/es/error/errorDisplay/Web/ErrorMsg/index.js +341 -327
- package/es/error/errorDisplay/Web/Notification/Notice.js +78 -65
- package/es/error/errorDisplay/Web/Notification/Notification.js +15 -15
- package/es/error/errorDisplay/Web/Notification/index.js +36 -38
- package/es/error/errorDisplay/Web/defaultGlobalConfig.js +2 -2
- package/es/error/errorDisplay/compUtils.js +6 -6
- package/es/error/errorDisplay/http.js +7 -7
- package/es/error/index.js +6 -6
- package/es/index.js +5 -5
- package/es/rootConfig/index.d.ts +1 -1
- package/es/rootConfig/index.js +5 -5
- package/es/rootConfig/locales/enus/config-locales-es.d.ts +2 -0
- package/es/rootConfig/locales/enus/config-locales-es.js +13 -0
- package/es/rootConfig/locales/enus/config-locales-es.mobile.d.ts +2 -0
- package/es/rootConfig/locales/enus/config-locales-es.mobile.js +106 -0
- package/es/rootConfig/locales/enus/config-locales-es.pc.d.ts +2 -0
- package/es/rootConfig/locales/enus/config-locales-es.pc.js +42 -0
- package/es/rootConfig/locales/enus/config-locales-es.todo-actionList.d.ts +2 -0
- package/es/rootConfig/locales/enus/config-locales-es.todo-actionList.js +865 -0
- package/es/rootConfig/locales/enus/config-locales-es.todo-callback.d.ts +2 -0
- package/es/rootConfig/locales/enus/config-locales-es.todo-callback.js +20 -0
- package/es/rootConfig/locales/enus/config-locales-es.todo-optionList.d.ts +2 -0
- package/es/rootConfig/locales/enus/config-locales-es.todo-optionList.js +266 -0
- package/es/rootConfig/locales/zhcn/config-locales-cn.d.ts +2 -0
- package/es/rootConfig/locales/zhcn/config-locales-cn.js +13 -0
- package/es/rootConfig/locales/zhcn/config-locales-cn.mobile.d.ts +2 -0
- package/es/rootConfig/locales/zhcn/config-locales-cn.mobile.js +57 -0
- package/es/rootConfig/locales/zhcn/config-locales-cn.pc.d.ts +2 -0
- package/es/rootConfig/locales/zhcn/config-locales-cn.pc.js +97 -0
- package/es/rootConfig/locales/zhcn/config-locales-cn.todo-actionList.d.ts +2 -0
- package/es/rootConfig/locales/zhcn/config-locales-cn.todo-actionList.js +583 -0
- package/es/rootConfig/locales/zhcn/config-locales-cn.todo-callback.d.ts +2 -0
- package/es/rootConfig/locales/zhcn/config-locales-cn.todo-callback.js +13 -0
- package/es/rootConfig/locales/zhcn/config-locales-cn.todo-optionList.d.ts +2 -0
- package/es/rootConfig/locales/zhcn/config-locales-cn.todo-optionList.js +127 -0
- package/es/rootConfig/locales/zhhk/config-locales-hk.d.ts +2 -0
- package/es/rootConfig/locales/zhhk/config-locales-hk.js +13 -0
- package/es/rootConfig/locales/zhhk/config-locales-hk.mobile.d.ts +2 -0
- package/es/rootConfig/locales/zhhk/config-locales-hk.mobile.js +106 -0
- package/es/rootConfig/locales/zhhk/config-locales-hk.pc.d.ts +2 -0
- package/es/rootConfig/locales/zhhk/config-locales-hk.pc.js +174 -0
- package/es/rootConfig/locales/zhhk/config-locales-hk.todo-actionList.d.ts +2 -0
- package/es/rootConfig/locales/zhhk/config-locales-hk.todo-actionList.js +869 -0
- package/es/rootConfig/locales/zhhk/config-locales-hk.todo-callback.d.ts +2 -0
- package/es/rootConfig/locales/zhhk/config-locales-hk.todo-callback.js +20 -0
- package/es/rootConfig/locales/zhhk/config-locales-hk.todo-optionList.d.ts +2 -0
- package/es/rootConfig/locales/zhhk/config-locales-hk.todo-optionList.js +266 -0
- package/es/rootConfig/mobile/BusiComp.d.ts +0 -1
- package/es/rootConfig/mobile/BusiComp.js +13 -10
- package/es/rootConfig/mobile/MobileModal.js +32 -27
- package/es/rootConfig/mobile/MobilePopover.d.ts +0 -2
- package/es/rootConfig/mobile/MobilePopover.js +16 -13
- package/es/rootConfig/mobile/index.js +4 -4
- package/es/rootConfig/mobile/page.d.ts +17 -2
- package/es/rootConfig/mobile/page.js +45 -38
- package/es/rootConfig/pc/BusiComp.js +82 -12
- package/es/rootConfig/pc/Drawer.d.ts +8 -9
- package/es/rootConfig/pc/Drawer.js +116 -46
- package/es/rootConfig/pc/Modal.d.ts +0 -1
- package/es/rootConfig/pc/Modal.js +90 -20
- package/es/rootConfig/pc/Popover.d.ts +0 -1
- package/es/rootConfig/pc/Popover.js +85 -15
- package/es/rootConfig/pc/index.js +5 -5
- package/es/rootConfig/pc/page.d.ts +0 -2
- package/es/rootConfig/pc/page.js +91 -22
- package/es/rootConfig/todoActionList.d.ts +1 -0
- package/es/rootConfig/todoActionList.js +1845 -719
- package/es/rootConfig/todoCallback.d.ts +12 -1
- package/es/rootConfig/todoCallback.js +175 -103
- package/es/rootConfig/todoOptionList.d.ts +0 -66
- package/es/rootConfig/todoOptionList.js +197 -198
- package/es/theme/index.js +18 -20
- package/es/theme/src/default/index.js +7 -7
- package/es/theme/utils/renderColors.js +1 -1
- package/es/utils/url.js +8 -7
- package/lib/IconSvg/index.js +10 -9
- package/lib/error/errorCatch/index.js +2 -3
- package/lib/error/errorDisplay/Mobile/Drawer/Drawer.js +99 -79
- package/lib/error/errorDisplay/Mobile/Drawer/index.js +25 -26
- package/lib/error/errorDisplay/Mobile/ErrorMsg/index.js +123 -126
- package/lib/error/errorDisplay/Mobile/Modal/Modal.js +45 -33
- package/lib/error/errorDisplay/Mobile/Modal/index.js +23 -24
- package/lib/error/errorDisplay/Mobile/defaultGlobalConfig.js +3 -5
- package/lib/error/errorDisplay/SVGstring.js +6 -12
- package/lib/error/errorDisplay/Web/Drawer/Drawer.js +181 -146
- package/lib/error/errorDisplay/Web/Drawer/DrawerConnect.js +44 -48
- package/lib/error/errorDisplay/Web/Drawer/index.js +18 -20
- package/lib/error/errorDisplay/Web/ErrorMsg/index.js +336 -324
- package/lib/error/errorDisplay/Web/Notification/Notice.js +79 -68
- package/lib/error/errorDisplay/Web/Notification/Notification.js +15 -16
- package/lib/error/errorDisplay/Web/Notification/index.js +37 -41
- package/lib/error/errorDisplay/Web/defaultGlobalConfig.js +3 -5
- package/lib/error/errorDisplay/compUtils.js +9 -12
- package/lib/error/errorDisplay/const.js +7 -13
- package/lib/error/errorDisplay/http.js +8 -9
- package/lib/index.js +3 -6
- package/lib/rootConfig/index.d.ts +1 -1
- package/lib/rootConfig/index.js +9 -3
- package/lib/rootConfig/locales/enus/config-locales-es.d.ts +2 -0
- package/lib/rootConfig/locales/enus/config-locales-es.js +19 -0
- package/lib/rootConfig/locales/enus/config-locales-es.mobile.d.ts +2 -0
- package/lib/rootConfig/locales/enus/config-locales-es.mobile.js +112 -0
- package/lib/rootConfig/locales/enus/config-locales-es.pc.d.ts +2 -0
- package/lib/rootConfig/locales/enus/config-locales-es.pc.js +48 -0
- package/lib/rootConfig/locales/enus/config-locales-es.todo-actionList.d.ts +2 -0
- package/lib/rootConfig/locales/enus/config-locales-es.todo-actionList.js +871 -0
- package/lib/rootConfig/locales/enus/config-locales-es.todo-callback.d.ts +2 -0
- package/lib/rootConfig/locales/enus/config-locales-es.todo-callback.js +26 -0
- package/lib/rootConfig/locales/enus/config-locales-es.todo-optionList.d.ts +2 -0
- package/lib/rootConfig/locales/enus/config-locales-es.todo-optionList.js +272 -0
- package/lib/rootConfig/locales/zhcn/config-locales-cn.d.ts +2 -0
- package/lib/rootConfig/locales/zhcn/config-locales-cn.js +19 -0
- package/lib/rootConfig/locales/zhcn/config-locales-cn.mobile.d.ts +2 -0
- package/lib/rootConfig/locales/zhcn/config-locales-cn.mobile.js +63 -0
- package/lib/rootConfig/locales/zhcn/config-locales-cn.pc.d.ts +2 -0
- package/lib/rootConfig/locales/zhcn/config-locales-cn.pc.js +103 -0
- package/lib/rootConfig/locales/zhcn/config-locales-cn.todo-actionList.d.ts +2 -0
- package/lib/rootConfig/locales/zhcn/config-locales-cn.todo-actionList.js +589 -0
- package/lib/rootConfig/locales/zhcn/config-locales-cn.todo-callback.d.ts +2 -0
- package/lib/rootConfig/locales/zhcn/config-locales-cn.todo-callback.js +19 -0
- package/lib/rootConfig/locales/zhcn/config-locales-cn.todo-optionList.d.ts +2 -0
- package/lib/rootConfig/locales/zhcn/config-locales-cn.todo-optionList.js +133 -0
- package/lib/rootConfig/locales/zhhk/config-locales-hk.d.ts +2 -0
- package/lib/rootConfig/locales/zhhk/config-locales-hk.js +19 -0
- package/lib/rootConfig/locales/zhhk/config-locales-hk.mobile.d.ts +2 -0
- package/lib/rootConfig/locales/zhhk/config-locales-hk.mobile.js +112 -0
- package/lib/rootConfig/locales/zhhk/config-locales-hk.pc.d.ts +2 -0
- package/lib/rootConfig/locales/zhhk/config-locales-hk.pc.js +180 -0
- package/lib/rootConfig/locales/zhhk/config-locales-hk.todo-actionList.d.ts +2 -0
- package/lib/rootConfig/locales/zhhk/config-locales-hk.todo-actionList.js +875 -0
- package/lib/rootConfig/locales/zhhk/config-locales-hk.todo-callback.d.ts +2 -0
- package/lib/rootConfig/locales/zhhk/config-locales-hk.todo-callback.js +26 -0
- package/lib/rootConfig/locales/zhhk/config-locales-hk.todo-optionList.d.ts +2 -0
- package/lib/rootConfig/locales/zhhk/config-locales-hk.todo-optionList.js +272 -0
- package/lib/rootConfig/mobile/BusiComp.d.ts +0 -1
- package/lib/rootConfig/mobile/BusiComp.js +14 -12
- package/lib/rootConfig/mobile/MobileModal.js +33 -29
- package/lib/rootConfig/mobile/MobilePopover.d.ts +0 -2
- package/lib/rootConfig/mobile/MobilePopover.js +17 -15
- package/lib/rootConfig/mobile/page.d.ts +17 -2
- package/lib/rootConfig/mobile/page.js +46 -40
- package/lib/rootConfig/pc/BusiComp.js +83 -14
- package/lib/rootConfig/pc/Drawer.d.ts +8 -9
- package/lib/rootConfig/pc/Drawer.js +117 -48
- package/lib/rootConfig/pc/Modal.d.ts +0 -1
- package/lib/rootConfig/pc/Modal.js +91 -22
- package/lib/rootConfig/pc/Popover.d.ts +0 -1
- package/lib/rootConfig/pc/Popover.js +86 -17
- package/lib/rootConfig/pc/page.d.ts +0 -2
- package/lib/rootConfig/pc/page.js +92 -24
- package/lib/rootConfig/todoActionList.d.ts +1 -0
- package/lib/rootConfig/todoActionList.js +1815 -695
- package/lib/rootConfig/todoCallback.d.ts +12 -1
- package/lib/rootConfig/todoCallback.js +182 -116
- package/lib/rootConfig/todoOptionList.d.ts +0 -66
- package/lib/rootConfig/todoOptionList.js +198 -200
- package/lib/theme/bin/default/modalWidth.js +1 -2
- package/lib/theme/index.js +19 -22
- package/lib/theme/src/default/index.js +7 -7
- package/lib/theme/utils/renderColors.js +1 -1
- package/lib/utils/cookieUtil.js +1 -2
- package/lib/utils/img.js +2 -3
- package/lib/utils/url.js +13 -16
- package/package.json +3 -4
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
3
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
5
|
-
function _iterableToArrayLimit(
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import React, { useEffect, isValidElement, forwardRef, useRef, useState, useCallback } from 'react';
|
|
8
|
-
import { CloseIcon, WarnIcon } from
|
|
9
|
-
import { getSvgImageBase64 } from
|
|
8
|
+
import { CloseIcon, WarnIcon } from "../../SVGstring";
|
|
9
|
+
import { getSvgImageBase64 } from "../../../../utils/img";
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
12
|
var isDomEle = function isDomEle(target) {
|
|
11
13
|
return typeof target === 'string' || /*#__PURE__*/isValidElement(target);
|
|
12
14
|
};
|
|
@@ -44,7 +46,7 @@ var Notice = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
44
46
|
var _circleRef$current;
|
|
45
47
|
countDownTime.current -= tickInterval;
|
|
46
48
|
lastTime.current = timestamp;
|
|
47
|
-
circleRef === null || circleRef === void 0
|
|
49
|
+
circleRef === null || circleRef === void 0 || (_circleRef$current = circleRef.current) === null || _circleRef$current === void 0 || _circleRef$current.setAttribute('stroke-dasharray', "".concat(57 * (countDownTime.current / duration), " 57"));
|
|
48
50
|
timer.current = window.requestAnimationFrame(updateCountDown);
|
|
49
51
|
} else {
|
|
50
52
|
onClose();
|
|
@@ -84,7 +86,7 @@ var Notice = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
84
86
|
});
|
|
85
87
|
}
|
|
86
88
|
}, [feedbackState]);
|
|
87
|
-
return /*#__PURE__*/
|
|
89
|
+
return /*#__PURE__*/_jsx("div", {
|
|
88
90
|
className: "lx-notification-wraper opening",
|
|
89
91
|
ref: ref,
|
|
90
92
|
onFocus: function onFocus() {
|
|
@@ -98,64 +100,75 @@ var Notice = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
98
100
|
},
|
|
99
101
|
onMouseLeave: function onMouseLeave() {
|
|
100
102
|
autoClose();
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
103
|
+
},
|
|
104
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
105
|
+
className: "lx-notification-notice",
|
|
106
|
+
children: [badge ? /*#__PURE__*/_jsx("i", {
|
|
107
|
+
className: "lx-notification-notice-badge",
|
|
108
|
+
onClick: onShowStash,
|
|
109
|
+
children: badge + 1
|
|
110
|
+
}) : null, isDomEle(title) ? /*#__PURE__*/_jsxs("div", {
|
|
111
|
+
className: "lx-notification-notice-head",
|
|
112
|
+
children: [/*#__PURE__*/_jsx("img", {
|
|
113
|
+
src: getSvgImageBase64(WarnIcon),
|
|
114
|
+
alt: "",
|
|
115
|
+
className: "lx-notification-notice-head-state"
|
|
116
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
117
|
+
className: "lx-notification-notice-head-title",
|
|
118
|
+
children: [title, showErrorCode !== false && isDomEle(code) ? /*#__PURE__*/_jsx("span", {
|
|
119
|
+
className: "lx-notification-notice-head-code",
|
|
120
|
+
children: code
|
|
121
|
+
}) : '']
|
|
122
|
+
}), isDomEle(extra) ? /*#__PURE__*/_jsx("div", {
|
|
123
|
+
className: "lx-notification-notice-head-extra",
|
|
124
|
+
children: extra
|
|
125
|
+
}) : null, isCountDown ? /*#__PURE__*/_jsxs("svg", {
|
|
126
|
+
width: "20",
|
|
127
|
+
height: "20",
|
|
128
|
+
viewBox: "0 0 20 20",
|
|
129
|
+
className: "lx-notification-notice-head-count-down",
|
|
130
|
+
children: [/*#__PURE__*/_jsx("circle", {
|
|
131
|
+
cx: "10",
|
|
132
|
+
cy: "10",
|
|
133
|
+
r: "9",
|
|
134
|
+
strokeWidth: "2",
|
|
135
|
+
stroke: "#D1D3D7",
|
|
136
|
+
fill: "none",
|
|
137
|
+
strokeLinecap: "round"
|
|
138
|
+
}), /*#__PURE__*/_jsx("circle", {
|
|
139
|
+
cx: "10",
|
|
140
|
+
cy: "10",
|
|
141
|
+
r: "9",
|
|
142
|
+
strokeWidth: "2",
|
|
143
|
+
stroke: "#4477ee",
|
|
144
|
+
fill: "none",
|
|
145
|
+
transform: "matrix(0,-1,1,0,0,20)",
|
|
146
|
+
ref: circleRef,
|
|
147
|
+
strokeDasharray: "57 57",
|
|
148
|
+
strokeLinecap: "round"
|
|
149
|
+
})]
|
|
150
|
+
}) : /*#__PURE__*/_jsx("div", {
|
|
151
|
+
className: "lx-notification-notice-head-extra",
|
|
152
|
+
onClick: function onClick() {
|
|
153
|
+
onClose();
|
|
154
|
+
},
|
|
155
|
+
children: /*#__PURE__*/_jsx("img", {
|
|
156
|
+
src: getSvgImageBase64(CloseIcon),
|
|
157
|
+
alt: "",
|
|
158
|
+
className: "lx-notification-notice-head-ico"
|
|
159
|
+
})
|
|
160
|
+
})]
|
|
161
|
+
}) : null, isDomEle(content) ? /*#__PURE__*/_jsx("div", {
|
|
162
|
+
className: "lx-notification-notice-content ".concat(maxLine && 'max-line'),
|
|
163
|
+
style: maxLine ? {
|
|
164
|
+
WebkitLineClamp: maxLine
|
|
165
|
+
} : {},
|
|
166
|
+
children: maxLen && typeof content === 'string' && content.length > maxLen ? "".concat(content.slice(0, maxLen), "...") : content
|
|
167
|
+
}) : null, footerContent ? /*#__PURE__*/_jsx("div", {
|
|
168
|
+
className: "lx-notification-notice-footer",
|
|
169
|
+
children: footerContent
|
|
170
|
+
}) : null]
|
|
171
|
+
})
|
|
172
|
+
});
|
|
160
173
|
});
|
|
161
174
|
export default Notice;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
function _typeof(
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
2
|
var _excluded = ["getContainer", "placement"];
|
|
3
3
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
|
-
function
|
|
6
|
-
function
|
|
7
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8
7
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
|
-
function _toPropertyKey(
|
|
10
|
-
function _toPrimitive(
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
9
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
11
10
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
12
11
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
13
12
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
@@ -15,14 +14,15 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
15
14
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
16
15
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
17
16
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
18
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
19
|
-
function _iterableToArrayLimit(
|
|
17
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
18
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
20
19
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
21
20
|
import React, { forwardRef, useImperativeHandle, useMemo, useState, useRef } from 'react';
|
|
22
21
|
import { render } from 'react-dom';
|
|
23
|
-
import { getChildren } from
|
|
24
|
-
import Notice from
|
|
25
|
-
import
|
|
22
|
+
import { getChildren } from "../../compUtils";
|
|
23
|
+
import Notice from "./Notice";
|
|
24
|
+
import "./Notification.less";
|
|
25
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
26
26
|
var keyNbr = 0;
|
|
27
27
|
var Notification = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
28
28
|
var _useState = useState([]),
|
|
@@ -42,7 +42,7 @@ var Notification = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
42
42
|
var config = configList.find(function (item) {
|
|
43
43
|
return item.key === key;
|
|
44
44
|
});
|
|
45
|
-
config === null || config === void 0
|
|
45
|
+
config === null || config === void 0 || (_config$onClose = config.onClose) === null || _config$onClose === void 0 || _config$onClose.call(config);
|
|
46
46
|
setConfigList(function (list) {
|
|
47
47
|
return list.filter(function (item) {
|
|
48
48
|
return item.key !== key;
|
|
@@ -108,9 +108,9 @@ var Notification = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
108
108
|
var renderCfgList = function renderCfgList() {
|
|
109
109
|
if (Array.isArray(configList) && configList.length > 0) {
|
|
110
110
|
return configList.map(function (notice) {
|
|
111
|
-
return /*#__PURE__*/
|
|
111
|
+
return /*#__PURE__*/_jsx(Notice, _objectSpread(_objectSpread({
|
|
112
112
|
itemKey: notice === null || notice === void 0 ? void 0 : notice.itemKey
|
|
113
|
-
}, notice, {
|
|
113
|
+
}, notice), {}, {
|
|
114
114
|
onShowStash: onShowStash,
|
|
115
115
|
badge: stashOpenList.length
|
|
116
116
|
}));
|
|
@@ -156,7 +156,7 @@ Notification.insert = function () {
|
|
|
156
156
|
stashOpenListSet: notification.stashOpenListSet
|
|
157
157
|
});
|
|
158
158
|
};
|
|
159
|
-
render( /*#__PURE__*/
|
|
159
|
+
render( /*#__PURE__*/_jsx(Notification, _objectSpread(_objectSpread({}, props), {}, {
|
|
160
160
|
ref: ref
|
|
161
161
|
})), div);
|
|
162
162
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
3
|
-
function ownKeys(
|
|
4
|
-
function _objectSpread(
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
-
function _toPropertyKey(
|
|
7
|
-
function _toPrimitive(
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
8
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
9
9
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
10
|
-
import Notification from
|
|
10
|
+
import Notification from "./Notification";
|
|
11
11
|
var notificationInstance = {};
|
|
12
12
|
function getNotificationInstance() {
|
|
13
13
|
return _getNotificationInstance.apply(this, arguments);
|
|
@@ -23,40 +23,38 @@ function _getNotificationInstance() {
|
|
|
23
23
|
cacheInstance,
|
|
24
24
|
_args2 = arguments;
|
|
25
25
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26
|
-
while (1) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
instance: instance
|
|
41
|
-
});
|
|
26
|
+
while (1) switch (_context.prev = _context.next) {
|
|
27
|
+
case 0:
|
|
28
|
+
args = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
29
|
+
callback = _args2.length > 1 ? _args2[1] : undefined;
|
|
30
|
+
_ref2 = args || {}, _ref2$placement = _ref2.placement, placement = _ref2$placement === void 0 ? 'topRight' : _ref2$placement;
|
|
31
|
+
cacheKey = "lx-notification-root ".concat(placement);
|
|
32
|
+
cacheInstance = notificationInstance[cacheKey];
|
|
33
|
+
if (!cacheInstance) {
|
|
34
|
+
_context.next = 8;
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
Promise.resolve(cacheInstance).then(function (instance) {
|
|
38
|
+
callback({
|
|
39
|
+
instance: instance
|
|
42
40
|
});
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
41
|
+
});
|
|
42
|
+
return _context.abrupt("return");
|
|
43
|
+
case 8:
|
|
44
|
+
_context.next = 10;
|
|
45
|
+
return new Promise(function (resolve) {
|
|
46
|
+
Notification.insert(args, function (notification) {
|
|
47
|
+
resolve(notification);
|
|
48
|
+
callback({
|
|
49
|
+
instance: notification
|
|
52
50
|
});
|
|
53
51
|
});
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
52
|
+
});
|
|
53
|
+
case 10:
|
|
54
|
+
notificationInstance[cacheKey] = _context.sent;
|
|
55
|
+
case 11:
|
|
56
|
+
case "end":
|
|
57
|
+
return _context.stop();
|
|
60
58
|
}
|
|
61
59
|
}, _callee);
|
|
62
60
|
}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { resolveRequestPath } from
|
|
2
|
-
import { errTypeTitMap, getArticle } from
|
|
1
|
+
import { resolveRequestPath } from "../compUtils";
|
|
2
|
+
import { errTypeTitMap, getArticle } from "../const";
|
|
3
3
|
export var defaultGlobalConfig = {
|
|
4
4
|
duration: 3500,
|
|
5
5
|
maxLine: 20,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
7
|
-
import { httpErrorMap } from
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import { httpErrorMap } from "./const";
|
|
8
8
|
function getChildren(obj) {
|
|
9
9
|
var objChild = [];
|
|
10
10
|
var objs = obj.getElementsByTagName('*');
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
function ownKeys(
|
|
2
|
-
function _objectSpread(
|
|
1
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3
3
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4
|
-
function _toPropertyKey(
|
|
5
|
-
function _toPrimitive(
|
|
6
|
-
function _typeof(
|
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
5
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
7
7
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
8
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
9
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
11
|
-
function _iterableToArrayLimit(
|
|
10
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
function getSearchObj() {
|
|
14
14
|
var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window.location.href;
|
package/es/error/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import ErrorMsg from
|
|
2
|
-
import MobileErrorMsg from
|
|
3
|
-
import MobileDrawer from
|
|
4
|
-
import { drawerHandel } from
|
|
5
|
-
import { getHttpErrorByCode } from
|
|
6
|
-
import errorCatch from
|
|
1
|
+
import ErrorMsg from "./errorDisplay/Web/ErrorMsg";
|
|
2
|
+
import MobileErrorMsg from "./errorDisplay/Mobile/ErrorMsg";
|
|
3
|
+
import MobileDrawer from "./errorDisplay/Mobile/Drawer";
|
|
4
|
+
import { drawerHandel } from "./errorDisplay/Web/Drawer";
|
|
5
|
+
import { getHttpErrorByCode } from "./errorDisplay/compUtils";
|
|
6
|
+
import errorCatch from "./errorCatch";
|
|
7
7
|
export { ErrorMsg, MobileErrorMsg, getHttpErrorByCode, errorCatch, MobileDrawer, drawerHandel };
|
package/es/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getSvgImageBase64 } from
|
|
2
|
-
import { ErrorMsg, MobileErrorMsg, getHttpErrorByCode, errorCatch, drawerHandel, MobileDrawer } from
|
|
3
|
-
import { parseUrlExpression } from
|
|
4
|
-
import { getTodoActionListByKey } from
|
|
5
|
-
export * from
|
|
1
|
+
import { getSvgImageBase64 } from "./utils/img";
|
|
2
|
+
import { ErrorMsg, MobileErrorMsg, getHttpErrorByCode, errorCatch, drawerHandel, MobileDrawer } from "./error";
|
|
3
|
+
import { parseUrlExpression } from "./utils/url";
|
|
4
|
+
import { getTodoActionListByKey } from "./rootConfig/todoActionList";
|
|
5
|
+
export * from "./rootConfig";
|
|
6
6
|
export var IconCheckSvg = getSvgImageBase64("<?xml version=\"1.0\" encoding=\"UTF-8\"?><svg width=\"22px\" height=\"22px\" viewBox=\"0 0 22 22\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><title>\u5168\u5C40\u6837\u5F0F:20/\u539F\u5B50\u7EA7\u63A7\u4EF6/\u590D\u9009/\u72B6\u6001:#\u9009\u4E2D</title><g id=\"\u63A7\u4EF6\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"><g id=\"system-complete\"><path d=\"M11,0 C17.075904,0 22,4.92409598 22,11 C22,17.075904 17.0734732,22 11,22 C4.92652679,22 0,17.0734732 0,11 C0,4.92652679 4.92409598,0 11,0 Z\" id=\"Shape\" fill=\"#1890FF\"></path><path d=\"M9.42871875,12.9681652 L7.2069029,10.7463493 C6.90006126,10.4395077 6.40257267,10.4395077 6.09573103,10.7463493 C5.78889035,11.05319 5.78889035,11.550677 6.09573103,11.8575177 C6.09573161,11.8575183 6.0957322,11.8575189 6.09573278,11.8575195 L8.72212536,14.4838955 C9.11265701,14.8744045 9.74581424,14.874407 10.136349,14.483901 L10.5404063,14.0798527 L10.5404063,14.0798527 L16.2813591,8.33795955 C16.588183,8.03108543 16.5881626,7.53359119 16.2813136,7.22674219 C15.974472,6.91990055 15.4769834,6.91990055 15.1701417,7.22674219 L9.42871875,12.9681652 L9.42871875,12.9681652 Z\" id=\"Path\" fill=\"#FFFFFF\"></path></g></g></svg>");
|
|
7
7
|
export var IconNormalCheckSvg = getSvgImageBase64("<?xml version=\"1.0\" encoding=\"UTF-8\"?><svg width=\"22px\" height=\"22px\" viewBox=\"0 0 22 22\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><title>\u5168\u5C40\u6837\u5F0F:20/\u539F\u5B50\u7EA7\u63A7\u4EF6/\u590D\u9009/\u72B6\u6001:\u672A\u9009\u4E2D</title><g id=\"\u63A7\u4EF6\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"><g id=\"\u5143\u7D20/\u9009\u62E9/\u672A\u9009\u4E2D\"><path d=\"M11,22 C4.93492502,22 0,17.0653546 0,10.999496 C0,4.9337633 4.93492502,0 11,0 C17.065075,0 22,4.93464539 22,10.999496 C22,17.0644725 17.0660846,22 11,22\" id=\"Fill\" fill=\"#FFFFFF\"></path><path d=\"M11,0.5 C13.8998633,0.5 16.5248731,1.67505184 18.4249106,3.57508938 C20.3249482,5.47512693 21.5,8.10013672 21.5,11 C21.5,13.8995696 20.3245821,16.5243277 18.4245965,18.4243132 C16.5242275,20.3246822 13.8989967,21.5 11,21.5 C8.10129687,21.5 5.47631792,20.324316 3.57600094,18.4239991 C1.67568396,16.5236821 0.5,13.8987031 0.5,11 C0.5,8.10100334 1.67531776,5.47577251 3.57568679,3.57540349 C5.47567234,1.67541793 8.10043037,0.5 11,0.5 Z\" id=\"Shape\" stroke=\"#CCCCCC\"></path></g></g></svg>");
|
|
8
8
|
export var IconWebViewErrorSvg = getSvgImageBase64("<svg width=\"181\" height=\"170\" viewBox=\"0 0 181 170\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><g id=\"Frame\"><g id=\"页面-1\"><g id=\"1920X1000\"><g id=\"此页面未找到~\"><g id=\"Group 2\"><path id=\"Stroke-1\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M47.5789 45.7989C47.5789 42.6064 48.8474 39.5438 51.1051 37.2858C53.3629 35.0284 56.4252 33.7597 59.6182 33.7597H59.6193C59.9774 33.7597 60.3209 33.9019 60.5741 34.1552C60.8272 34.4085 60.9695 34.7522 60.9695 35.1099C60.9695 39.9093 60.9695 55.8563 60.9695 55.8563L47.5789 56.0773V45.7989Z\" fill=\"white\" stroke=\"#9DB9F5\"/><path id=\"Stroke-2\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M132.386 45.8145C132.386 39.1572 126.989 33.7597 120.331 33.7597H120.33C119.976 33.7597 119.636 33.9003 119.386 34.1508C119.136 34.4013 118.995 34.7405 118.995 35.0943C118.995 39.8741 118.995 55.8563 118.995 55.8563L132.386 56.0773V45.8145Z\" fill=\"white\" stroke=\"#9DB9F5\"/><path id=\"Fill-4\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M145.776 80.8136C145.776 57.3996 126.767 38.3906 103.353 38.3906H76.6114C53.1975 38.3906 34.1884 57.3996 34.1884 80.8136V85.238C34.1884 108.652 46.4826 125.429 69.8965 125.429H110.068C133.482 125.429 145.776 108.652 145.776 85.238V80.8136Z\" fill=\"white\"/><path id=\"形状结合\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M116.64 40.0003C133.598 45.5561 145.861 61.52 145.861 80.3254V84.7498C145.861 108.164 133.566 124.941 110.153 124.941H69.9808C63.4458 124.941 57.7771 123.634 53.0001 121.241C56.5982 122.352 60.5944 122.941 64.9808 122.941H105.153C128.566 122.941 140.861 106.164 140.861 82.7498V78.3254C140.861 61.4673 131.006 46.8928 116.749 40.0527L116.64 40.0003Z\" fill=\"#DCE7FA\"/><path id=\"Stroke-5\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M145.776 80.8136C145.776 57.3996 126.767 38.3906 103.353 38.3906H76.6114C53.1975 38.3906 34.1884 57.3996 34.1884 80.8136V85.238C34.1884 108.652 46.4826 125.429 69.8965 125.429H110.068C133.482 125.429 145.776 108.652 145.776 85.238V80.8136Z\" stroke=\"#9DB9F5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/><path id=\"Fill-10\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M96.9342 38.863C96.9342 42.1561 93.3046 43 90.2136 43C87.1227 43 83.4931 42.1561 83.4931 38.863C83.4931 34.9214 86.767 29.1802 88.9891 25.6778C89.2536 25.2563 89.7158 25.0005 90.2136 25C90.7114 25 91.1742 25.2563 91.4387 25.6778C93.6603 29.1802 96.9342 34.9214 96.9342 38.863Z\" fill=\"#E0E8FA\" stroke=\"#9DB9F5\"/><path id=\"Fill-6\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M132.386 81.9099C132.386 66.513 119.886 54.0129 104.489 54.0129H75.476C60.0792 54.0129 47.5789 66.513 47.5789 81.9099C47.5789 97.3067 52.268 107.575 67.6648 107.575H112.3C127.697 107.575 132.386 97.3067 132.386 81.9099Z\" fill=\"white\"/><path id=\"Stroke-7\" d=\"M104.489 50.6653H75.476C58.2303 50.6653 44.2313 64.6642 44.2313 81.9099C44.2313 90.7375 45.7017 97.4992 49.092 102.417C52.9783 108.053 59.1903 110.923 67.6648 110.923H112.3C120.775 110.923 126.987 108.053 130.873 102.417C134.263 97.4992 135.734 90.7375 135.734 81.9099C135.734 64.6641 121.735 50.6653 104.489 50.6653Z\" fill=\"#9DB9F5\"/><g id=\"路径-2\"><path id=\"路径\" d=\"M75.476 57.3605H104.489C118.037 57.3605 129.038 68.3618 129.038 81.9099C129.038 97.3996 124.331 104.228 112.3 104.228H67.6648C55.6342 104.228 50.9266 97.3996 50.9266 81.9099C50.9266 68.3619 61.928 57.3605 75.476 57.3605Z\" fill=\"#E0E8FA\"/></g><path id=\"Fill-8\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M84.1137 95.9463C85.4031 95.6201 86.6775 95.4603 87.9468 95.3546C88.7982 95.2837 89.6435 95.2645 90.4899 95.2639C91.1254 95.2634 91.7597 95.2636 92.3969 95.297C93.876 95.3745 95.3613 95.5534 96.8638 95.9458C97.3955 96.1229 97.9702 95.8352 98.1476 95.3038C98.3245 94.7723 98.0366 94.1972 97.5054 94.0202C95.903 93.3659 94.2973 92.8946 92.6647 92.6492C91.9422 92.5406 91.2158 92.4767 90.4888 92.4767C89.5219 92.4766 88.5549 92.5743 87.5953 92.7544C86.2043 93.0155 84.8402 93.454 83.4746 94.0198C82.9429 94.1961 82.6544 94.7709 82.8308 95.3025C83.0071 95.8341 83.5819 96.1226 84.1137 95.9463Z\" fill=\"#9DB9F5\"/><path id=\"Fill-9\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M117.27 77.4622C117.27 74.9977 115.272 73 112.808 73H112.806C110.341 73 108.343 74.9977 108.343 77.4622C108.343 80.1433 108.343 83.5432 108.343 86.2243C108.343 88.6888 110.341 90.6867 112.806 90.6867H112.808C115.272 90.6867 117.27 88.6888 117.27 86.2243C117.27 83.5432 117.27 80.1433 117.27 77.4622Z\" fill=\"#9DB9F5\"/><path id=\"Fill-9_2\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M72.927 77.6596C72.927 75.1951 70.9291 73.1974 68.4646 73.1974H68.4624C65.998 73.1974 64 75.1951 64 77.6596C64 80.3407 64 83.7406 64 86.4217C64 88.8862 65.998 90.8841 68.4624 90.8841H68.4646C70.9291 90.8841 72.927 88.8862 72.927 86.4217C72.927 83.7406 72.927 80.3407 72.927 77.6596Z\" fill=\"#9DB9F5\"/><path id=\"形状结合_2\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M68.5 76.1974C69.88 76.1974 71 77.3176 71 78.6974C71 80.0772 69.88 81.1974 68.5 81.1974C67.12 81.1974 66 80.0772 66 78.6974C66 77.3176 67.12 76.1974 68.5 76.1974ZM112.843 76C114.223 76 115.343 77.1202 115.343 78.5C115.343 79.8798 114.223 81 112.843 81C111.463 81 110.343 79.8798 110.343 78.5C110.343 77.1202 111.463 76 112.843 76Z\" fill=\"white\"/><path id=\"形状结合_3\" d=\"M68.4934 61.2901L68.4933 64.8168C63.005 66.1839 58.9321 71.1569 58.9321 77.0741C58.9321 77.3899 58.9359 77.6987 58.9436 78.0005L55.504 78.0002C55.4967 77.6966 55.4931 77.3879 55.4931 77.0741C55.4931 69.2458 61.0911 62.7179 68.4934 61.2901Z\" fill=\"white\"/><path id=\"矩形\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M70.4931 61H76.4931V64.806H70.4931V61Z\" fill=\"white\"/><g id=\"编组\"><path id=\"Fill-11\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M36.927 70.1091C36.927 69.4966 36.4306 69 35.8182 69C35.493 69 35.1116 69 34.6953 69C32.9196 69 31.2166 69.7056 29.961 70.9612C28.7054 72.2168 28 73.9198 28 75.6955C28 79.785 28 84.9965 28 89.086C28 90.8617 28.7054 92.5647 29.961 93.8203C31.2166 95.076 32.9196 95.7813 34.6953 95.7813C35.1116 95.7813 35.493 95.7813 35.8182 95.7813C36.4306 95.7813 36.927 95.2849 36.927 94.6725C36.927 90.3236 36.927 74.4579 36.927 70.1091Z\" fill=\"white\" stroke=\"#9DB9F5\"/><path id=\"形状结合_4\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M29.5069 73.4835V86.874C29.5069 88.6497 30.2123 90.3527 31.4679 91.6083C32.7236 92.864 34.4265 93.5693 36.2022 93.5693L36.4339 93.5692L36.434 94.4605C36.434 95.032 36.0015 95.5026 35.4459 95.5628L35.3251 95.5693H34.2022C32.4265 95.5693 31.7236 94.864 30.4679 93.6083C29.2123 92.3527 28.5069 90.6497 28.5069 88.874V75.8337C28.5069 74.4889 28.9115 73.1858 29.6533 72.0872C29.5569 72.543 29.5069 73.0106 29.5069 73.4835Z\" fill=\"#DFE9FB\"/></g><g id=\"编组备份\"><path id=\"Fill-11_2\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M144 70.1091C144 69.4966 144.496 69 145.109 69C145.434 69 145.815 69 146.232 69C148.007 69 149.71 69.7056 150.966 70.9612C152.222 72.2168 152.927 73.9198 152.927 75.6955C152.927 79.785 152.927 84.9965 152.927 89.086C152.927 90.8617 152.222 92.5647 150.966 93.8203C149.71 95.076 148.007 95.7813 146.232 95.7813C145.815 95.7813 145.434 95.7813 145.109 95.7813C144.496 95.7813 144 95.2849 144 94.6725C144 90.3236 144 74.4579 144 70.1091Z\" fill=\"white\" stroke=\"#9DB9F5\"/><path id=\"形状结合_5\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M151.42 73.4835V86.874C151.42 88.6497 150.715 90.3527 149.459 91.6083C148.204 92.864 146.501 93.5693 144.725 93.5693L144.493 93.5692L144.493 94.4605C144.493 95.032 144.926 95.5026 145.481 95.5628L145.602 95.5693H146.725C148.501 95.5693 149.204 94.864 150.459 93.6083C151.715 92.3527 152.42 90.6497 152.42 88.874V75.8337C152.42 74.4889 152.016 73.1858 151.274 72.0872C151.37 72.543 151.42 73.0106 151.42 73.4835Z\" fill=\"#DFE9FB\"/></g><path id=\"椭圆形\" d=\"M90 145C110.987 145 128 142.09 128 138.5C128 134.91 110.987 132 90 132C69.0132 132 52 134.91 52 138.5C52 142.09 69.0132 145 90 145Z\" fill=\"#E0E8FA\"/><path id=\"路径_2\" d=\"M171.537 94.931C167.868 99.3728 161.059 99.807 161.059 99.807C161.059 99.807 160.2 93.0389 163.871 88.597C167.541 84.1555 174.349 83.7213 174.349 83.7213C174.349 83.7213 175.207 90.4891 171.537 94.931Z\" fill=\"#E0E8FA\"/><path id=\"路径备份-2\" d=\"M23.1487 112.332C20.7639 115.219 16.3383 115.501 16.3383 115.501C16.3383 115.501 15.7803 111.102 18.1661 108.215C20.5514 105.328 24.977 105.045 24.977 105.045C24.977 105.045 25.5346 109.444 23.1487 112.332Z\" fill=\"#E0E8FA\"/></g></g></g></g></g></svg>");
|
package/es/rootConfig/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as mobileRootConfig from './mobile';
|
|
2
2
|
import * as pcRootConfig from './pc';
|
|
3
3
|
import * as todoCallback from './todoCallback';
|
|
4
|
-
export { getTodoActionListByKey } from './todoActionList';
|
|
4
|
+
export { getTodoActionListByKey, wxAbilityTodoActionKeys } from './todoActionList';
|
|
5
5
|
export { default as todoOptionList } from './todoOptionList';
|
|
6
6
|
export type { KV } from './todoCallback';
|
|
7
7
|
export { mobileRootConfig, pcRootConfig, todoCallback, };
|
package/es/rootConfig/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as mobileRootConfig from
|
|
2
|
-
import * as pcRootConfig from
|
|
3
|
-
import * as todoCallback from
|
|
4
|
-
export { getTodoActionListByKey } from
|
|
5
|
-
export { default as todoOptionList } from
|
|
1
|
+
import * as mobileRootConfig from "./mobile";
|
|
2
|
+
import * as pcRootConfig from "./pc";
|
|
3
|
+
import * as todoCallback from "./todoCallback";
|
|
4
|
+
export { getTodoActionListByKey, wxAbilityTodoActionKeys } from "./todoActionList";
|
|
5
|
+
export { default as todoOptionList } from "./todoOptionList";
|
|
6
6
|
export { mobileRootConfig, pcRootConfig, todoCallback };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import { todoActionListEnUS } from "./config-locales-es.todo-actionList";
|
|
8
|
+
import { mobileEnUS } from "./config-locales-es.mobile";
|
|
9
|
+
import { pcEnUS } from "./config-locales-es.pc";
|
|
10
|
+
import { todoCallbackEnUS } from "./config-locales-es.todo-callback";
|
|
11
|
+
import { todoOptionListEnUS } from "./config-locales-es.todo-optionList";
|
|
12
|
+
export var configEnUS = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, todoActionListEnUS), mobileEnUS), pcEnUS), todoCallbackEnUS), todoOptionListEnUS);
|
|
13
|
+
export default configEnUS;
|