@mi-avalon/libs 0.0.17 → 0.0.19
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/ItemsRow/index.d.ts +42 -0
- package/dist/components/ItemsRow/index.js +20 -0
- package/dist/components/MDescriptions/index.d.ts +65 -0
- package/dist/components/MDescriptions/index.js +25 -0
- package/dist/components/ThemeContext/index.d.ts +11 -0
- package/dist/components/ThemeContext/index.js +17 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -2
- package/dist/components/utils.d.ts +1 -0
- package/dist/components/utils.js +16 -0
- package/dist/index.es.js +353 -287
- package/dist/index.umd.js +11 -11
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import
|
|
5
|
-
import { Button as
|
|
6
|
-
var
|
|
1
|
+
var gr = Object.defineProperty;
|
|
2
|
+
var hr = (p, d, R) => d in p ? gr(p, d, { enumerable: !0, configurable: !0, writable: !0, value: R }) : p[d] = R;
|
|
3
|
+
var u = (p, d, R) => (hr(p, typeof d != "symbol" ? d + "" : d, R), R);
|
|
4
|
+
import Ae, { createContext as mr, useContext as br } from "react";
|
|
5
|
+
import { theme as _r, ConfigProvider as Rr, Descriptions as je, Button as Er } from "antd";
|
|
6
|
+
var ae = { exports: {} }, N = {};
|
|
7
7
|
/**
|
|
8
8
|
* @license React
|
|
9
9
|
* react-jsx-runtime.production.min.js
|
|
@@ -13,25 +13,25 @@ var ee = { exports: {} }, M = {};
|
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
if (
|
|
19
|
-
return
|
|
20
|
-
|
|
21
|
-
var
|
|
22
|
-
function
|
|
23
|
-
var h, y = {}, w = null,
|
|
24
|
-
|
|
25
|
-
for (h in
|
|
26
|
-
|
|
27
|
-
if (
|
|
28
|
-
for (h in
|
|
29
|
-
y[h] === void 0 && (y[h] =
|
|
30
|
-
return { $$typeof:
|
|
16
|
+
var Te;
|
|
17
|
+
function yr() {
|
|
18
|
+
if (Te)
|
|
19
|
+
return N;
|
|
20
|
+
Te = 1;
|
|
21
|
+
var p = Ae, d = Symbol.for("react.element"), R = Symbol.for("react.fragment"), C = Object.prototype.hasOwnProperty, x = p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, A = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
22
|
+
function b(O, v, j) {
|
|
23
|
+
var h, y = {}, w = null, $ = null;
|
|
24
|
+
j !== void 0 && (w = "" + j), v.key !== void 0 && (w = "" + v.key), v.ref !== void 0 && ($ = v.ref);
|
|
25
|
+
for (h in v)
|
|
26
|
+
C.call(v, h) && !A.hasOwnProperty(h) && (y[h] = v[h]);
|
|
27
|
+
if (O && O.defaultProps)
|
|
28
|
+
for (h in v = O.defaultProps, v)
|
|
29
|
+
y[h] === void 0 && (y[h] = v[h]);
|
|
30
|
+
return { $$typeof: d, type: O, key: w, ref: $, props: y, _owner: x.current };
|
|
31
31
|
}
|
|
32
|
-
return
|
|
32
|
+
return N.Fragment = R, N.jsx = b, N.jsxs = b, N;
|
|
33
33
|
}
|
|
34
|
-
var
|
|
34
|
+
var H = {};
|
|
35
35
|
/**
|
|
36
36
|
* @license React
|
|
37
37
|
* react-jsx-runtime.development.js
|
|
@@ -41,91 +41,91 @@ var F = {};
|
|
|
41
41
|
* This source code is licensed under the MIT license found in the
|
|
42
42
|
* LICENSE file in the root directory of this source tree.
|
|
43
43
|
*/
|
|
44
|
-
var
|
|
45
|
-
function
|
|
46
|
-
return
|
|
47
|
-
var
|
|
48
|
-
function
|
|
44
|
+
var Ye;
|
|
45
|
+
function Cr() {
|
|
46
|
+
return Ye || (Ye = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
+
var p = Ae, d = Symbol.for("react.element"), R = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), O = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), V = Symbol.iterator, k = "@@iterator";
|
|
48
|
+
function B(e) {
|
|
49
49
|
if (e === null || typeof e != "object")
|
|
50
50
|
return null;
|
|
51
|
-
var r =
|
|
51
|
+
var r = V && e[V] || e[k];
|
|
52
52
|
return typeof r == "function" ? r : null;
|
|
53
53
|
}
|
|
54
|
-
var
|
|
55
|
-
function
|
|
54
|
+
var D = p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
55
|
+
function g(e) {
|
|
56
56
|
{
|
|
57
57
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
58
58
|
t[n - 1] = arguments[n];
|
|
59
|
-
|
|
59
|
+
ke("error", e, t);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function ke(e, r, t) {
|
|
63
63
|
{
|
|
64
|
-
var n =
|
|
64
|
+
var n = D.ReactDebugCurrentFrame, o = n.getStackAddendum();
|
|
65
65
|
o !== "" && (r += "%s", t = t.concat([o]));
|
|
66
|
-
var
|
|
66
|
+
var s = t.map(function(i) {
|
|
67
67
|
return String(i);
|
|
68
68
|
});
|
|
69
|
-
|
|
69
|
+
s.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, s);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
var
|
|
73
|
-
|
|
74
|
-
function
|
|
75
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
72
|
+
var Pe = !1, Me = !1, Fe = !1, Ie = !1, We = !1, ie;
|
|
73
|
+
ie = Symbol.for("react.module.reference");
|
|
74
|
+
function Ne(e) {
|
|
75
|
+
return !!(typeof e == "string" || typeof e == "function" || e === C || e === A || We || e === x || e === j || e === h || Ie || e === $ || Pe || Me || Fe || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === y || e.$$typeof === b || e.$$typeof === O || e.$$typeof === v || // This needs to include all possible module reference object
|
|
76
76
|
// types supported by any Flight configuration anywhere since
|
|
77
77
|
// we don't know which Flight build this will end up being used
|
|
78
78
|
// with.
|
|
79
|
-
e.$$typeof ===
|
|
79
|
+
e.$$typeof === ie || e.getModuleId !== void 0));
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function He(e, r, t) {
|
|
82
82
|
var n = e.displayName;
|
|
83
83
|
if (n)
|
|
84
84
|
return n;
|
|
85
85
|
var o = r.displayName || r.name || "";
|
|
86
86
|
return o !== "" ? t + "(" + o + ")" : t;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function oe(e) {
|
|
89
89
|
return e.displayName || "Context";
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function S(e) {
|
|
92
92
|
if (e == null)
|
|
93
93
|
return null;
|
|
94
|
-
if (typeof e.tag == "number" &&
|
|
94
|
+
if (typeof e.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
95
95
|
return e.displayName || e.name || null;
|
|
96
96
|
if (typeof e == "string")
|
|
97
97
|
return e;
|
|
98
98
|
switch (e) {
|
|
99
|
-
case
|
|
99
|
+
case C:
|
|
100
100
|
return "Fragment";
|
|
101
101
|
case R:
|
|
102
102
|
return "Portal";
|
|
103
|
-
case
|
|
103
|
+
case A:
|
|
104
104
|
return "Profiler";
|
|
105
|
-
case
|
|
105
|
+
case x:
|
|
106
106
|
return "StrictMode";
|
|
107
|
-
case
|
|
107
|
+
case j:
|
|
108
108
|
return "Suspense";
|
|
109
109
|
case h:
|
|
110
110
|
return "SuspenseList";
|
|
111
111
|
}
|
|
112
112
|
if (typeof e == "object")
|
|
113
113
|
switch (e.$$typeof) {
|
|
114
|
-
case
|
|
114
|
+
case O:
|
|
115
115
|
var r = e;
|
|
116
|
-
return
|
|
117
|
-
case
|
|
116
|
+
return oe(r) + ".Consumer";
|
|
117
|
+
case b:
|
|
118
118
|
var t = e;
|
|
119
|
-
return
|
|
120
|
-
case
|
|
121
|
-
return
|
|
119
|
+
return oe(t._context) + ".Provider";
|
|
120
|
+
case v:
|
|
121
|
+
return He(e, e.render, "ForwardRef");
|
|
122
122
|
case y:
|
|
123
123
|
var n = e.displayName || null;
|
|
124
|
-
return n !== null ? n :
|
|
124
|
+
return n !== null ? n : S(e.type) || "Memo";
|
|
125
125
|
case w: {
|
|
126
|
-
var o = e,
|
|
126
|
+
var o = e, s = o._payload, i = o._init;
|
|
127
127
|
try {
|
|
128
|
-
return
|
|
128
|
+
return S(i(s));
|
|
129
129
|
} catch {
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
@@ -133,18 +133,18 @@ function mr() {
|
|
|
133
133
|
}
|
|
134
134
|
return null;
|
|
135
135
|
}
|
|
136
|
-
var
|
|
137
|
-
function
|
|
136
|
+
var T = Object.assign, F = 0, se, ue, le, ce, fe, de, ve;
|
|
137
|
+
function pe() {
|
|
138
138
|
}
|
|
139
|
-
|
|
140
|
-
function
|
|
139
|
+
pe.__reactDisabledLog = !0;
|
|
140
|
+
function ze() {
|
|
141
141
|
{
|
|
142
|
-
if (
|
|
143
|
-
|
|
142
|
+
if (F === 0) {
|
|
143
|
+
se = console.log, ue = console.info, le = console.warn, ce = console.error, fe = console.group, de = console.groupCollapsed, ve = console.groupEnd;
|
|
144
144
|
var e = {
|
|
145
145
|
configurable: !0,
|
|
146
146
|
enumerable: !0,
|
|
147
|
-
value:
|
|
147
|
+
value: pe,
|
|
148
148
|
writable: !0
|
|
149
149
|
};
|
|
150
150
|
Object.defineProperties(console, {
|
|
@@ -157,77 +157,77 @@ function mr() {
|
|
|
157
157
|
groupEnd: e
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
|
-
|
|
160
|
+
F++;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function Ve() {
|
|
164
164
|
{
|
|
165
|
-
if (
|
|
165
|
+
if (F--, F === 0) {
|
|
166
166
|
var e = {
|
|
167
167
|
configurable: !0,
|
|
168
168
|
enumerable: !0,
|
|
169
169
|
writable: !0
|
|
170
170
|
};
|
|
171
171
|
Object.defineProperties(console, {
|
|
172
|
-
log:
|
|
173
|
-
value:
|
|
174
|
-
}),
|
|
175
|
-
info: S({}, e, {
|
|
176
|
-
value: ie
|
|
177
|
-
}),
|
|
178
|
-
warn: S({}, e, {
|
|
179
|
-
value: oe
|
|
172
|
+
log: T({}, e, {
|
|
173
|
+
value: se
|
|
180
174
|
}),
|
|
181
|
-
|
|
175
|
+
info: T({}, e, {
|
|
182
176
|
value: ue
|
|
183
177
|
}),
|
|
184
|
-
|
|
185
|
-
value:
|
|
178
|
+
warn: T({}, e, {
|
|
179
|
+
value: le
|
|
186
180
|
}),
|
|
187
|
-
|
|
181
|
+
error: T({}, e, {
|
|
188
182
|
value: ce
|
|
189
183
|
}),
|
|
190
|
-
|
|
191
|
-
value:
|
|
184
|
+
group: T({}, e, {
|
|
185
|
+
value: fe
|
|
186
|
+
}),
|
|
187
|
+
groupCollapsed: T({}, e, {
|
|
188
|
+
value: de
|
|
189
|
+
}),
|
|
190
|
+
groupEnd: T({}, e, {
|
|
191
|
+
value: ve
|
|
192
192
|
})
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
|
-
|
|
195
|
+
F < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
var
|
|
199
|
-
function
|
|
198
|
+
var q = D.ReactCurrentDispatcher, K;
|
|
199
|
+
function U(e, r, t) {
|
|
200
200
|
{
|
|
201
|
-
if (
|
|
201
|
+
if (K === void 0)
|
|
202
202
|
try {
|
|
203
203
|
throw Error();
|
|
204
204
|
} catch (o) {
|
|
205
205
|
var n = o.stack.trim().match(/\n( *(at )?)/);
|
|
206
|
-
|
|
206
|
+
K = n && n[1] || "";
|
|
207
207
|
}
|
|
208
208
|
return `
|
|
209
|
-
` +
|
|
209
|
+
` + K + e;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
var
|
|
212
|
+
var G = !1, L;
|
|
213
213
|
{
|
|
214
|
-
var
|
|
215
|
-
|
|
214
|
+
var Ue = typeof WeakMap == "function" ? WeakMap : Map;
|
|
215
|
+
L = new Ue();
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
if (!e ||
|
|
217
|
+
function ge(e, r) {
|
|
218
|
+
if (!e || G)
|
|
219
219
|
return "";
|
|
220
220
|
{
|
|
221
|
-
var t =
|
|
221
|
+
var t = L.get(e);
|
|
222
222
|
if (t !== void 0)
|
|
223
223
|
return t;
|
|
224
224
|
}
|
|
225
225
|
var n;
|
|
226
|
-
|
|
226
|
+
G = !0;
|
|
227
227
|
var o = Error.prepareStackTrace;
|
|
228
228
|
Error.prepareStackTrace = void 0;
|
|
229
|
-
var
|
|
230
|
-
|
|
229
|
+
var s;
|
|
230
|
+
s = q.current, q.current = null, ze();
|
|
231
231
|
try {
|
|
232
232
|
if (r) {
|
|
233
233
|
var i = function() {
|
|
@@ -240,171 +240,171 @@ function mr() {
|
|
|
240
240
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
241
241
|
try {
|
|
242
242
|
Reflect.construct(i, []);
|
|
243
|
-
} catch (
|
|
244
|
-
n =
|
|
243
|
+
} catch (_) {
|
|
244
|
+
n = _;
|
|
245
245
|
}
|
|
246
246
|
Reflect.construct(e, [], i);
|
|
247
247
|
} else {
|
|
248
248
|
try {
|
|
249
249
|
i.call();
|
|
250
|
-
} catch (
|
|
251
|
-
n =
|
|
250
|
+
} catch (_) {
|
|
251
|
+
n = _;
|
|
252
252
|
}
|
|
253
253
|
e.call(i.prototype);
|
|
254
254
|
}
|
|
255
255
|
} else {
|
|
256
256
|
try {
|
|
257
257
|
throw Error();
|
|
258
|
-
} catch (
|
|
259
|
-
n =
|
|
258
|
+
} catch (_) {
|
|
259
|
+
n = _;
|
|
260
260
|
}
|
|
261
261
|
e();
|
|
262
262
|
}
|
|
263
|
-
} catch (
|
|
264
|
-
if (
|
|
265
|
-
for (var a =
|
|
266
|
-
`),
|
|
267
|
-
`),
|
|
263
|
+
} catch (_) {
|
|
264
|
+
if (_ && n && typeof _.stack == "string") {
|
|
265
|
+
for (var a = _.stack.split(`
|
|
266
|
+
`), m = n.stack.split(`
|
|
267
|
+
`), c = a.length - 1, f = m.length - 1; c >= 1 && f >= 0 && a[c] !== m[f]; )
|
|
268
268
|
f--;
|
|
269
|
-
for (;
|
|
270
|
-
if (a[
|
|
271
|
-
if (
|
|
269
|
+
for (; c >= 1 && f >= 0; c--, f--)
|
|
270
|
+
if (a[c] !== m[f]) {
|
|
271
|
+
if (c !== 1 || f !== 1)
|
|
272
272
|
do
|
|
273
|
-
if (
|
|
274
|
-
var
|
|
275
|
-
` + a[
|
|
276
|
-
return e.displayName &&
|
|
273
|
+
if (c--, f--, f < 0 || a[c] !== m[f]) {
|
|
274
|
+
var E = `
|
|
275
|
+
` + a[c].replace(" at new ", " at ");
|
|
276
|
+
return e.displayName && E.includes("<anonymous>") && (E = E.replace("<anonymous>", e.displayName)), typeof e == "function" && L.set(e, E), E;
|
|
277
277
|
}
|
|
278
|
-
while (
|
|
278
|
+
while (c >= 1 && f >= 0);
|
|
279
279
|
break;
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
} finally {
|
|
283
|
-
|
|
283
|
+
G = !1, q.current = s, Ve(), Error.prepareStackTrace = o;
|
|
284
284
|
}
|
|
285
|
-
var
|
|
286
|
-
return typeof e == "function" &&
|
|
285
|
+
var M = e ? e.displayName || e.name : "", Y = M ? U(M) : "";
|
|
286
|
+
return typeof e == "function" && L.set(e, Y), Y;
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
return
|
|
288
|
+
function Le(e, r, t) {
|
|
289
|
+
return ge(e, !1);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function Ze(e) {
|
|
292
292
|
var r = e.prototype;
|
|
293
293
|
return !!(r && r.isReactComponent);
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function Z(e, r, t) {
|
|
296
296
|
if (e == null)
|
|
297
297
|
return "";
|
|
298
298
|
if (typeof e == "function")
|
|
299
|
-
return
|
|
299
|
+
return ge(e, Ze(e));
|
|
300
300
|
if (typeof e == "string")
|
|
301
|
-
return
|
|
301
|
+
return U(e);
|
|
302
302
|
switch (e) {
|
|
303
|
-
case
|
|
304
|
-
return
|
|
303
|
+
case j:
|
|
304
|
+
return U("Suspense");
|
|
305
305
|
case h:
|
|
306
|
-
return
|
|
306
|
+
return U("SuspenseList");
|
|
307
307
|
}
|
|
308
308
|
if (typeof e == "object")
|
|
309
309
|
switch (e.$$typeof) {
|
|
310
|
-
case
|
|
311
|
-
return
|
|
310
|
+
case v:
|
|
311
|
+
return Le(e.render);
|
|
312
312
|
case y:
|
|
313
|
-
return
|
|
313
|
+
return Z(e.type, r, t);
|
|
314
314
|
case w: {
|
|
315
|
-
var n = e, o = n._payload,
|
|
315
|
+
var n = e, o = n._payload, s = n._init;
|
|
316
316
|
try {
|
|
317
|
-
return
|
|
317
|
+
return Z(s(o), r, t);
|
|
318
318
|
} catch {
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
return "";
|
|
323
323
|
}
|
|
324
|
-
var
|
|
325
|
-
function
|
|
324
|
+
var I = Object.prototype.hasOwnProperty, he = {}, me = D.ReactDebugCurrentFrame;
|
|
325
|
+
function J(e) {
|
|
326
326
|
if (e) {
|
|
327
|
-
var r = e._owner, t =
|
|
328
|
-
|
|
327
|
+
var r = e._owner, t = Z(e.type, e._source, r ? r.type : null);
|
|
328
|
+
me.setExtraStackFrame(t);
|
|
329
329
|
} else
|
|
330
|
-
|
|
330
|
+
me.setExtraStackFrame(null);
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function Je(e, r, t, n, o) {
|
|
333
333
|
{
|
|
334
|
-
var
|
|
334
|
+
var s = Function.call.bind(I);
|
|
335
335
|
for (var i in e)
|
|
336
|
-
if (
|
|
336
|
+
if (s(e, i)) {
|
|
337
337
|
var a = void 0;
|
|
338
338
|
try {
|
|
339
339
|
if (typeof e[i] != "function") {
|
|
340
|
-
var
|
|
341
|
-
throw
|
|
340
|
+
var m = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
341
|
+
throw m.name = "Invariant Violation", m;
|
|
342
342
|
}
|
|
343
343
|
a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
344
|
-
} catch (
|
|
345
|
-
a =
|
|
344
|
+
} catch (c) {
|
|
345
|
+
a = c;
|
|
346
346
|
}
|
|
347
|
-
a && !(a instanceof Error) && (
|
|
347
|
+
a && !(a instanceof Error) && (J(o), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), J(null)), a instanceof Error && !(a.message in he) && (he[a.message] = !0, J(o), g("Failed %s type: %s", t, a.message), J(null));
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
|
-
var
|
|
352
|
-
function
|
|
353
|
-
return
|
|
351
|
+
var Be = Array.isArray;
|
|
352
|
+
function X(e) {
|
|
353
|
+
return Be(e);
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function qe(e) {
|
|
356
356
|
{
|
|
357
357
|
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
358
358
|
return t;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function Ke(e) {
|
|
362
362
|
try {
|
|
363
|
-
return
|
|
363
|
+
return be(e), !1;
|
|
364
364
|
} catch {
|
|
365
365
|
return !0;
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function be(e) {
|
|
369
369
|
return "" + e;
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
if (
|
|
373
|
-
return
|
|
371
|
+
function _e(e) {
|
|
372
|
+
if (Ke(e))
|
|
373
|
+
return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qe(e)), be(e);
|
|
374
374
|
}
|
|
375
|
-
var
|
|
375
|
+
var W = D.ReactCurrentOwner, Ge = {
|
|
376
376
|
key: !0,
|
|
377
377
|
ref: !0,
|
|
378
378
|
__self: !0,
|
|
379
379
|
__source: !0
|
|
380
|
-
},
|
|
381
|
-
|
|
382
|
-
function
|
|
383
|
-
if (
|
|
380
|
+
}, Re, Ee, Q;
|
|
381
|
+
Q = {};
|
|
382
|
+
function Xe(e) {
|
|
383
|
+
if (I.call(e, "ref")) {
|
|
384
384
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
385
385
|
if (r && r.isReactWarning)
|
|
386
386
|
return !1;
|
|
387
387
|
}
|
|
388
388
|
return e.ref !== void 0;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
391
|
-
if (
|
|
390
|
+
function Qe(e) {
|
|
391
|
+
if (I.call(e, "key")) {
|
|
392
392
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
393
393
|
if (r && r.isReactWarning)
|
|
394
394
|
return !1;
|
|
395
395
|
}
|
|
396
396
|
return e.key !== void 0;
|
|
397
397
|
}
|
|
398
|
-
function
|
|
399
|
-
if (typeof e.ref == "string" &&
|
|
400
|
-
var t =
|
|
401
|
-
|
|
398
|
+
function er(e, r) {
|
|
399
|
+
if (typeof e.ref == "string" && W.current && r && W.current.stateNode !== r) {
|
|
400
|
+
var t = S(W.current.type);
|
|
401
|
+
Q[t] || (g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', S(W.current.type), e.ref), Q[t] = !0);
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function rr(e, r) {
|
|
405
405
|
{
|
|
406
406
|
var t = function() {
|
|
407
|
-
|
|
407
|
+
Re || (Re = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
408
408
|
};
|
|
409
409
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
410
410
|
get: t,
|
|
@@ -412,10 +412,10 @@ function mr() {
|
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
function
|
|
415
|
+
function tr(e, r) {
|
|
416
416
|
{
|
|
417
417
|
var t = function() {
|
|
418
|
-
|
|
418
|
+
Ee || (Ee = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
419
419
|
};
|
|
420
420
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
421
421
|
get: t,
|
|
@@ -423,17 +423,17 @@ function mr() {
|
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
var
|
|
426
|
+
var nr = function(e, r, t, n, o, s, i) {
|
|
427
427
|
var a = {
|
|
428
428
|
// This tag allows us to uniquely identify this as a React Element
|
|
429
|
-
$$typeof:
|
|
429
|
+
$$typeof: d,
|
|
430
430
|
// Built-in properties that belong on the element
|
|
431
431
|
type: e,
|
|
432
432
|
key: r,
|
|
433
433
|
ref: t,
|
|
434
434
|
props: i,
|
|
435
435
|
// Record the component responsible for creating this element.
|
|
436
|
-
_owner:
|
|
436
|
+
_owner: s
|
|
437
437
|
};
|
|
438
438
|
return a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
439
439
|
configurable: !1,
|
|
@@ -452,41 +452,41 @@ function mr() {
|
|
|
452
452
|
value: o
|
|
453
453
|
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
454
454
|
};
|
|
455
|
-
function
|
|
455
|
+
function ar(e, r, t, n, o) {
|
|
456
456
|
{
|
|
457
|
-
var
|
|
458
|
-
t !== void 0 && (
|
|
459
|
-
for (
|
|
460
|
-
|
|
457
|
+
var s, i = {}, a = null, m = null;
|
|
458
|
+
t !== void 0 && (_e(t), a = "" + t), Qe(r) && (_e(r.key), a = "" + r.key), Xe(r) && (m = r.ref, er(r, o));
|
|
459
|
+
for (s in r)
|
|
460
|
+
I.call(r, s) && !Ge.hasOwnProperty(s) && (i[s] = r[s]);
|
|
461
461
|
if (e && e.defaultProps) {
|
|
462
|
-
var
|
|
463
|
-
for (
|
|
464
|
-
i[
|
|
462
|
+
var c = e.defaultProps;
|
|
463
|
+
for (s in c)
|
|
464
|
+
i[s] === void 0 && (i[s] = c[s]);
|
|
465
465
|
}
|
|
466
|
-
if (a ||
|
|
466
|
+
if (a || m) {
|
|
467
467
|
var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
468
|
-
a &&
|
|
468
|
+
a && rr(i, f), m && tr(i, f);
|
|
469
469
|
}
|
|
470
|
-
return
|
|
470
|
+
return nr(e, a, m, o, n, W.current, i);
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
var
|
|
474
|
-
function
|
|
473
|
+
var ee = D.ReactCurrentOwner, ye = D.ReactDebugCurrentFrame;
|
|
474
|
+
function P(e) {
|
|
475
475
|
if (e) {
|
|
476
|
-
var r = e._owner, t =
|
|
477
|
-
|
|
476
|
+
var r = e._owner, t = Z(e.type, e._source, r ? r.type : null);
|
|
477
|
+
ye.setExtraStackFrame(t);
|
|
478
478
|
} else
|
|
479
|
-
|
|
479
|
+
ye.setExtraStackFrame(null);
|
|
480
480
|
}
|
|
481
|
-
var
|
|
482
|
-
|
|
483
|
-
function
|
|
484
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
481
|
+
var re;
|
|
482
|
+
re = !1;
|
|
483
|
+
function te(e) {
|
|
484
|
+
return typeof e == "object" && e !== null && e.$$typeof === d;
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function Ce() {
|
|
487
487
|
{
|
|
488
|
-
if (
|
|
489
|
-
var e =
|
|
488
|
+
if (ee.current) {
|
|
489
|
+
var e = S(ee.current.type);
|
|
490
490
|
if (e)
|
|
491
491
|
return `
|
|
492
492
|
|
|
@@ -495,7 +495,7 @@ Check the render method of \`` + e + "`.";
|
|
|
495
495
|
return "";
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function ir(e) {
|
|
499
499
|
{
|
|
500
500
|
if (e !== void 0) {
|
|
501
501
|
var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
|
|
@@ -506,10 +506,10 @@ Check your code at ` + r + ":" + t + ".";
|
|
|
506
506
|
return "";
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
-
var
|
|
510
|
-
function
|
|
509
|
+
var Se = {};
|
|
510
|
+
function or(e) {
|
|
511
511
|
{
|
|
512
|
-
var r =
|
|
512
|
+
var r = Ce();
|
|
513
513
|
if (!r) {
|
|
514
514
|
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
515
515
|
t && (r = `
|
|
@@ -519,39 +519,39 @@ Check the top-level render call using <` + t + ">.");
|
|
|
519
519
|
return r;
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function xe(e, r) {
|
|
523
523
|
{
|
|
524
524
|
if (!e._store || e._store.validated || e.key != null)
|
|
525
525
|
return;
|
|
526
526
|
e._store.validated = !0;
|
|
527
|
-
var t =
|
|
528
|
-
if (
|
|
527
|
+
var t = or(r);
|
|
528
|
+
if (Se[t])
|
|
529
529
|
return;
|
|
530
|
-
|
|
530
|
+
Se[t] = !0;
|
|
531
531
|
var n = "";
|
|
532
|
-
e && e._owner && e._owner !==
|
|
532
|
+
e && e._owner && e._owner !== ee.current && (n = " It was passed a child from " + S(e._owner.type) + "."), P(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), P(null);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
function Oe(e, r) {
|
|
536
536
|
{
|
|
537
537
|
if (typeof e != "object")
|
|
538
538
|
return;
|
|
539
|
-
if (
|
|
539
|
+
if (X(e))
|
|
540
540
|
for (var t = 0; t < e.length; t++) {
|
|
541
541
|
var n = e[t];
|
|
542
|
-
|
|
542
|
+
te(n) && xe(n, r);
|
|
543
543
|
}
|
|
544
|
-
else if (
|
|
544
|
+
else if (te(e))
|
|
545
545
|
e._store && (e._store.validated = !0);
|
|
546
546
|
else if (e) {
|
|
547
|
-
var o =
|
|
547
|
+
var o = B(e);
|
|
548
548
|
if (typeof o == "function" && o !== e.entries)
|
|
549
|
-
for (var
|
|
550
|
-
|
|
549
|
+
for (var s = o.call(e), i; !(i = s.next()).done; )
|
|
550
|
+
te(i.value) && xe(i.value, r);
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function sr(e) {
|
|
555
555
|
{
|
|
556
556
|
var r = e.type;
|
|
557
557
|
if (r == null || typeof r == "string")
|
|
@@ -559,93 +559,158 @@ Check the top-level render call using <` + t + ">.");
|
|
|
559
559
|
var t;
|
|
560
560
|
if (typeof r == "function")
|
|
561
561
|
t = r.propTypes;
|
|
562
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
562
|
+
else if (typeof r == "object" && (r.$$typeof === v || // Note: Memo only checks outer props here.
|
|
563
563
|
// Inner props are checked in the reconciler.
|
|
564
564
|
r.$$typeof === y))
|
|
565
565
|
t = r.propTypes;
|
|
566
566
|
else
|
|
567
567
|
return;
|
|
568
568
|
if (t) {
|
|
569
|
-
var n =
|
|
570
|
-
|
|
571
|
-
} else if (r.PropTypes !== void 0 && !
|
|
572
|
-
|
|
573
|
-
var o =
|
|
574
|
-
|
|
569
|
+
var n = S(r);
|
|
570
|
+
Je(t, e.props, "prop", n, e);
|
|
571
|
+
} else if (r.PropTypes !== void 0 && !re) {
|
|
572
|
+
re = !0;
|
|
573
|
+
var o = S(r);
|
|
574
|
+
g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
|
|
575
575
|
}
|
|
576
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
576
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
|
-
function
|
|
579
|
+
function ur(e) {
|
|
580
580
|
{
|
|
581
581
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
582
582
|
var n = r[t];
|
|
583
583
|
if (n !== "children" && n !== "key") {
|
|
584
|
-
|
|
584
|
+
P(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), P(null);
|
|
585
585
|
break;
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
|
-
e.ref !== null && (
|
|
588
|
+
e.ref !== null && (P(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), P(null));
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
|
-
var
|
|
592
|
-
function
|
|
591
|
+
var we = {};
|
|
592
|
+
function De(e, r, t, n, o, s) {
|
|
593
593
|
{
|
|
594
|
-
var i =
|
|
594
|
+
var i = Ne(e);
|
|
595
595
|
if (!i) {
|
|
596
596
|
var a = "";
|
|
597
597
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
598
|
-
var
|
|
599
|
-
|
|
600
|
-
var
|
|
601
|
-
e === null ?
|
|
598
|
+
var m = ir(o);
|
|
599
|
+
m ? a += m : a += Ce();
|
|
600
|
+
var c;
|
|
601
|
+
e === null ? c = "null" : X(e) ? c = "array" : e !== void 0 && e.$$typeof === d ? (c = "<" + (S(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : c = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", c, a);
|
|
602
602
|
}
|
|
603
|
-
var f =
|
|
603
|
+
var f = ar(e, r, t, o, s);
|
|
604
604
|
if (f == null)
|
|
605
605
|
return f;
|
|
606
606
|
if (i) {
|
|
607
|
-
var
|
|
608
|
-
if (
|
|
607
|
+
var E = r.children;
|
|
608
|
+
if (E !== void 0)
|
|
609
609
|
if (n)
|
|
610
|
-
if (
|
|
611
|
-
for (var
|
|
612
|
-
Oe(
|
|
613
|
-
Object.freeze && Object.freeze(
|
|
610
|
+
if (X(E)) {
|
|
611
|
+
for (var M = 0; M < E.length; M++)
|
|
612
|
+
Oe(E[M], e);
|
|
613
|
+
Object.freeze && Object.freeze(E);
|
|
614
614
|
} else
|
|
615
|
-
|
|
615
|
+
g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
616
616
|
else
|
|
617
|
-
Oe(
|
|
617
|
+
Oe(E, e);
|
|
618
618
|
}
|
|
619
|
-
if (
|
|
620
|
-
var
|
|
621
|
-
return
|
|
622
|
-
}),
|
|
623
|
-
if (!
|
|
624
|
-
var
|
|
625
|
-
|
|
619
|
+
if (I.call(r, "key")) {
|
|
620
|
+
var Y = S(e), _ = Object.keys(r).filter(function(pr) {
|
|
621
|
+
return pr !== "key";
|
|
622
|
+
}), ne = _.length > 0 ? "{key: someKey, " + _.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
623
|
+
if (!we[Y + ne]) {
|
|
624
|
+
var vr = _.length > 0 ? "{" + _.join(": ..., ") + ": ...}" : "{}";
|
|
625
|
+
g(`A props object containing a "key" prop is being spread into JSX:
|
|
626
626
|
let props = %s;
|
|
627
627
|
<%s {...props} />
|
|
628
628
|
React keys must be passed directly to JSX without using spread:
|
|
629
629
|
let props = %s;
|
|
630
|
-
<%s key={someKey} {...props} />`,
|
|
630
|
+
<%s key={someKey} {...props} />`, ne, Y, vr, Y), we[Y + ne] = !0;
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
|
-
return e ===
|
|
633
|
+
return e === C ? ur(f) : sr(f), f;
|
|
634
634
|
}
|
|
635
635
|
}
|
|
636
|
-
function
|
|
637
|
-
return
|
|
636
|
+
function lr(e, r, t) {
|
|
637
|
+
return De(e, r, t, !0);
|
|
638
638
|
}
|
|
639
|
-
function
|
|
640
|
-
return
|
|
639
|
+
function cr(e, r, t) {
|
|
640
|
+
return De(e, r, t, !1);
|
|
641
641
|
}
|
|
642
|
-
var
|
|
643
|
-
|
|
644
|
-
}()),
|
|
642
|
+
var fr = cr, dr = lr;
|
|
643
|
+
H.Fragment = C, H.jsx = fr, H.jsxs = dr;
|
|
644
|
+
}()), H;
|
|
645
|
+
}
|
|
646
|
+
process.env.NODE_ENV === "production" ? ae.exports = yr() : ae.exports = Cr();
|
|
647
|
+
var z = ae.exports;
|
|
648
|
+
const $e = mr({
|
|
649
|
+
theme: {
|
|
650
|
+
cssVar: !0,
|
|
651
|
+
algorithm: [_r.defaultAlgorithm]
|
|
652
|
+
}
|
|
653
|
+
});
|
|
654
|
+
$e.Provider;
|
|
655
|
+
function Sr() {
|
|
656
|
+
return br($e);
|
|
645
657
|
}
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
658
|
+
function xr(p) {
|
|
659
|
+
const { theme: d } = Sr();
|
|
660
|
+
return /* @__PURE__ */ z.jsx(Rr, { theme: d, children: p.children });
|
|
661
|
+
}
|
|
662
|
+
const Or = (p) => {
|
|
663
|
+
const {
|
|
664
|
+
data: d,
|
|
665
|
+
title: R,
|
|
666
|
+
column: C = 3,
|
|
667
|
+
lineHeight: x,
|
|
668
|
+
align: A = "left",
|
|
669
|
+
itemLayout: b,
|
|
670
|
+
colon: O = !0,
|
|
671
|
+
bordered: v = !1,
|
|
672
|
+
style: j,
|
|
673
|
+
className: h,
|
|
674
|
+
labelStyle: y,
|
|
675
|
+
contentStyle: w
|
|
676
|
+
} = p, $ = {
|
|
677
|
+
...x ? { lineHeight: `${x}px` } : {},
|
|
678
|
+
textAlign: A,
|
|
679
|
+
...b != null && b.label ? { width: `${b.label}px` } : {},
|
|
680
|
+
...y
|
|
681
|
+
}, V = {
|
|
682
|
+
...x ? { lineHeight: `${x}px` } : {},
|
|
683
|
+
...b != null && b.value ? { width: `${b.value}px` } : {},
|
|
684
|
+
...w
|
|
685
|
+
};
|
|
686
|
+
return /* @__PURE__ */ z.jsx(xr, { children: /* @__PURE__ */ z.jsx(
|
|
687
|
+
je,
|
|
688
|
+
{
|
|
689
|
+
title: R,
|
|
690
|
+
column: C,
|
|
691
|
+
colon: O,
|
|
692
|
+
bordered: v,
|
|
693
|
+
style: j,
|
|
694
|
+
className: h,
|
|
695
|
+
labelStyle: $,
|
|
696
|
+
contentStyle: V,
|
|
697
|
+
children: d.map((k, B) => {
|
|
698
|
+
var D;
|
|
699
|
+
return /* @__PURE__ */ z.jsx(
|
|
700
|
+
je.Item,
|
|
701
|
+
{
|
|
702
|
+
label: k.label,
|
|
703
|
+
span: k.span,
|
|
704
|
+
children: k.value || "-"
|
|
705
|
+
},
|
|
706
|
+
((D = k.label) == null ? void 0 : D.toString()) || B
|
|
707
|
+
);
|
|
708
|
+
})
|
|
709
|
+
}
|
|
710
|
+
) });
|
|
711
|
+
};
|
|
712
|
+
Or.displayName = "MDescriptions";
|
|
713
|
+
const Tr = ({ type: p = "primary", children: d, onClick: R, custom: C }) => /* @__PURE__ */ z.jsx(Er, { type: p, onClick: R, className: "my-button", children: C || d }), Yr = {
|
|
649
714
|
YMD_Hms: "YYYY-MM-DD HH:mm:ss",
|
|
650
715
|
YMD: "YYYY-MM-DD",
|
|
651
716
|
YMD2: "YYYYMMDD",
|
|
@@ -655,35 +720,36 @@ const Er = ({ type: b = "primary", children: v, onClick: R, custom: O }) => /* @
|
|
|
655
720
|
YMD_000: "YYYY-MM-DD 00:00:00",
|
|
656
721
|
YMD_end: "YYYY-MM-DD 23:59:59",
|
|
657
722
|
YMD_Hm: "YYYYMMDD HHmm"
|
|
658
|
-
},
|
|
659
|
-
class
|
|
723
|
+
}, Ar = 10;
|
|
724
|
+
class l {
|
|
660
725
|
}
|
|
661
726
|
// 整数
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
727
|
+
u(l, "integerRegex", /^-?\d+$/), // 正整数
|
|
728
|
+
u(l, "positiveIntegerRegex", /^[1-9]\d*$/), // 负整数
|
|
729
|
+
u(l, "negativeIntegerRegex", /^-[1-9]\d*$/), // 浮点数
|
|
730
|
+
u(l, "floatRegex", /^-?\d+(\.\d+)?$/), // 字母
|
|
731
|
+
u(l, "letter", /^[a-zA-Z]+$/), // 汉字
|
|
732
|
+
u(l, "chinese", /^[\u4e00-\u9fa5]+$/), // 数字
|
|
733
|
+
u(l, "number", /^[0-9]*$/), // 用户名 字母开头,允许字母数字下划线,长度4-16
|
|
734
|
+
u(l, "username", /^[a-zA-Z]\w{3,15}$/), // 强用户名 必须包含大小写字母和数字,6-20位
|
|
735
|
+
u(l, "strongUsername", /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,20}$/), // 密码 至少8位,包含字母和数字
|
|
736
|
+
u(l, "password", /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/), // 强密码 至少8位,包含大小写字母、数字和特殊字符
|
|
737
|
+
u(l, "strongPassword", /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/), // 中国大陆的手机号
|
|
738
|
+
u(l, "phone", /^1[3-9]\d{9}$/), // 带区号的手机号
|
|
739
|
+
u(l, "phoneWithAreaCode", /^\+?\d{2,3}-?\d{8,11}$/), // 邮箱
|
|
740
|
+
u(l, "email", /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/), // 身份证
|
|
741
|
+
u(l, "idCard", /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/), // 银行卡
|
|
742
|
+
u(l, "bankCard", /^[1-9]\d{3,30}$/), // 邮政编码
|
|
743
|
+
u(l, "zipCode", /^[1-9]\d{5}$/), // IP
|
|
744
|
+
u(l, "ip", /^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/), // URL
|
|
745
|
+
u(l, "url", /^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/), // 车牌
|
|
746
|
+
u(l, "carNumber", /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/), // 时间 hh:mm:ss
|
|
747
|
+
u(l, "time", /^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/), // 日期 YYYY-MM-DD
|
|
748
|
+
u(l, "date", /^(\d{4})-(\d{2})-(\d{2})$/);
|
|
684
749
|
export {
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
750
|
+
Yr as DATE_FORMAT,
|
|
751
|
+
Or as MDescriptions,
|
|
752
|
+
Tr as MyButton,
|
|
753
|
+
Ar as PAGE_SIZE,
|
|
754
|
+
l as PatternType
|
|
689
755
|
};
|