antd-mobile 5.24.1 → 5.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2x/bundle/antd-mobile.cjs.development.js +349 -230
- package/2x/bundle/antd-mobile.cjs.js +8 -8
- package/2x/bundle/antd-mobile.es.development.js +349 -230
- package/2x/bundle/antd-mobile.es.js +6581 -6524
- package/2x/bundle/antd-mobile.umd.development.js +349 -230
- package/2x/bundle/antd-mobile.umd.js +8 -8
- package/2x/bundle/style.css +2 -0
- package/2x/cjs/components/cascader-view/cascader-view.d.ts +1 -1
- package/2x/cjs/components/cascader-view/cascader-view.js +3 -4
- package/2x/cjs/components/image-uploader/image-uploader.js +8 -7
- package/2x/cjs/components/image-viewer/image-viewer.d.ts +1 -1
- package/2x/cjs/components/image-viewer/slide.d.ts +1 -1
- package/2x/cjs/components/image-viewer/slide.js +9 -2
- package/2x/cjs/components/picker-view/picker-view.css +1 -0
- package/2x/cjs/components/popup/popup.css +1 -0
- package/2x/cjs/components/slider/slider.js +1 -1
- package/2x/cjs/components/slider/thumb.js +3 -2
- package/2x/cjs/index.d.ts +81 -1
- package/2x/cjs/index.js +1 -1
- package/2x/es/components/cascader-view/cascader-view.d.ts +1 -1
- package/2x/es/components/cascader-view/cascader-view.js +3 -4
- package/2x/es/components/image-uploader/image-uploader.js +8 -7
- package/2x/es/components/image-viewer/image-viewer.d.ts +1 -1
- package/2x/es/components/image-viewer/slide.d.ts +1 -1
- package/2x/es/components/image-viewer/slide.js +9 -2
- package/2x/es/components/picker-view/picker-view.css +1 -0
- package/2x/es/components/popup/popup.css +1 -0
- package/2x/es/components/slider/slider.js +1 -1
- package/2x/es/components/slider/thumb.js +1 -1
- package/2x/es/index.d.ts +81 -1
- package/2x/es/index.js +1 -1
- package/2x/package.json +1 -1
- package/bundle/antd-mobile.cjs.development.js +349 -230
- package/bundle/antd-mobile.cjs.js +8 -8
- package/bundle/antd-mobile.compatible.umd.js +1 -1
- package/bundle/antd-mobile.es.development.js +349 -230
- package/bundle/antd-mobile.es.js +6581 -6524
- package/bundle/antd-mobile.umd.development.js +349 -230
- package/bundle/antd-mobile.umd.js +8 -8
- package/bundle/style.css +1 -1
- package/cjs/components/cascader-view/cascader-view.d.ts +1 -1
- package/cjs/components/cascader-view/cascader-view.js +3 -4
- package/cjs/components/image-uploader/image-uploader.js +8 -7
- package/cjs/components/image-viewer/image-viewer.d.ts +1 -1
- package/cjs/components/image-viewer/slide.d.ts +1 -1
- package/cjs/components/image-viewer/slide.js +9 -2
- package/cjs/components/picker-view/picker-view.css +1 -0
- package/cjs/components/popup/popup.css +1 -0
- package/cjs/components/slider/slider.js +1 -1
- package/cjs/components/slider/thumb.js +3 -2
- package/cjs/index.d.ts +81 -1
- package/cjs/index.js +1 -1
- package/es/components/cascader-view/cascader-view.d.ts +1 -1
- package/es/components/cascader-view/cascader-view.js +3 -4
- package/es/components/image-uploader/image-uploader.js +8 -7
- package/es/components/image-viewer/image-viewer.d.ts +1 -1
- package/es/components/image-viewer/slide.d.ts +1 -1
- package/es/components/image-viewer/slide.js +9 -2
- package/es/components/picker-view/picker-view.css +1 -0
- package/es/components/popup/popup.css +1 -0
- package/es/components/slider/slider.js +1 -1
- package/es/components/slider/thumb.js +1 -1
- package/es/index.d.ts +81 -1
- package/es/index.js +1 -1
- package/package.json +1 -1
- package/umd/antd-mobile.js +1 -1
- package/2x/bundle/css-vars-patch.css +0 -399
- package/bundle/css-vars-patch.css +0 -312
|
@@ -338,9 +338,10 @@ const zhCN = mergeLocale(base, {
|
|
|
338
338
|
name: "\u5F00\u5173"
|
|
339
339
|
}
|
|
340
340
|
});
|
|
341
|
+
const zhCN$1 = zhCN;
|
|
341
342
|
const defaultConfigRef = {
|
|
342
343
|
current: {
|
|
343
|
-
locale: zhCN
|
|
344
|
+
locale: zhCN$1
|
|
344
345
|
}
|
|
345
346
|
};
|
|
346
347
|
function setDefaultConfig(config2) {
|
|
@@ -350,7 +351,7 @@ function getDefaultConfig() {
|
|
|
350
351
|
return defaultConfigRef.current;
|
|
351
352
|
}
|
|
352
353
|
const ConfigContext = React__default.default.createContext(null);
|
|
353
|
-
const ConfigProvider = (props) => {
|
|
354
|
+
const ConfigProvider$1 = (props) => {
|
|
354
355
|
const {
|
|
355
356
|
children
|
|
356
357
|
} = props, config2 = __rest(props, ["children"]);
|
|
@@ -363,6 +364,7 @@ function useConfig() {
|
|
|
363
364
|
var _a;
|
|
364
365
|
return (_a = React$1.useContext(ConfigContext)) !== null && _a !== void 0 ? _a : getDefaultConfig();
|
|
365
366
|
}
|
|
367
|
+
const ConfigProvider = ConfigProvider$1;
|
|
366
368
|
const actionSheet = "";
|
|
367
369
|
function attachPropertiesToComponent(component, properties) {
|
|
368
370
|
const ret = component;
|
|
@@ -919,12 +921,12 @@ var isFunction$1 = function isFunction(value) {
|
|
|
919
921
|
var isNumber = function isNumber2(value) {
|
|
920
922
|
return typeof value === "number";
|
|
921
923
|
};
|
|
922
|
-
var isDev = true;
|
|
923
|
-
const isDev$
|
|
924
|
+
var isDev$1 = true;
|
|
925
|
+
const isDev$2 = isDev$1;
|
|
924
926
|
function useMemoizedFn(fn) {
|
|
925
|
-
if (isDev$
|
|
927
|
+
if (isDev$2) {
|
|
926
928
|
if (!isFunction$1(fn)) {
|
|
927
|
-
console.error("useMemoizedFn expected parameter is a function, got "
|
|
929
|
+
console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof fn));
|
|
928
930
|
}
|
|
929
931
|
}
|
|
930
932
|
var fnRef = React$1.useRef(fn);
|
|
@@ -959,9 +961,9 @@ function useLatest(value) {
|
|
|
959
961
|
return ref;
|
|
960
962
|
}
|
|
961
963
|
var useUnmount = function useUnmount2(fn) {
|
|
962
|
-
if (isDev$
|
|
964
|
+
if (isDev$2) {
|
|
963
965
|
if (!isFunction$1(fn)) {
|
|
964
|
-
console.error("useUnmount expected parameter is a function, got "
|
|
966
|
+
console.error("useUnmount expected parameter is a function, got ".concat(typeof fn));
|
|
965
967
|
}
|
|
966
968
|
}
|
|
967
969
|
var fnRef = useLatest(fn);
|
|
@@ -1128,9 +1130,9 @@ function throttle$1(func, wait, options) {
|
|
|
1128
1130
|
}
|
|
1129
1131
|
var throttle_1 = throttle$1;
|
|
1130
1132
|
var useMount = function useMount2(fn) {
|
|
1131
|
-
if (isDev$
|
|
1133
|
+
if (isDev$2) {
|
|
1132
1134
|
if (!isFunction$1(fn)) {
|
|
1133
|
-
console.error('useMount: parameter `fn` expected to be a function, but got "'
|
|
1135
|
+
console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof fn, '".'));
|
|
1134
1136
|
}
|
|
1135
1137
|
}
|
|
1136
1138
|
React$1.useEffect(function() {
|
|
@@ -1282,10 +1284,13 @@ var dayjs_min = { exports: {} };
|
|
|
1282
1284
|
!function(t, e) {
|
|
1283
1285
|
module2.exports = e();
|
|
1284
1286
|
}(commonjsGlobal, function() {
|
|
1285
|
-
var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", f = "month", h = "quarter", c = "year", d = "date",
|
|
1287
|
+
var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", f = "month", h = "quarter", c = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
|
|
1288
|
+
var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
|
|
1289
|
+
return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
|
|
1290
|
+
} }, m = function(t2, e2, n2) {
|
|
1286
1291
|
var r2 = String(t2);
|
|
1287
1292
|
return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n2) + t2;
|
|
1288
|
-
},
|
|
1293
|
+
}, v = { s: m, z: function(t2) {
|
|
1289
1294
|
var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
|
|
1290
1295
|
return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0");
|
|
1291
1296
|
}, m: function t2(e2, n2) {
|
|
@@ -1299,14 +1304,14 @@ var dayjs_min = { exports: {} };
|
|
|
1299
1304
|
return { M: f, y: c, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: h }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
|
|
1300
1305
|
}, u: function(t2) {
|
|
1301
1306
|
return void 0 === t2;
|
|
1302
|
-
} },
|
|
1303
|
-
D[
|
|
1307
|
+
} }, g = "en", D = {};
|
|
1308
|
+
D[g] = M;
|
|
1304
1309
|
var p = function(t2) {
|
|
1305
1310
|
return t2 instanceof _;
|
|
1306
1311
|
}, S = function t2(e2, n2, r2) {
|
|
1307
1312
|
var i2;
|
|
1308
1313
|
if (!e2)
|
|
1309
|
-
return
|
|
1314
|
+
return g;
|
|
1310
1315
|
if ("string" == typeof e2) {
|
|
1311
1316
|
var s2 = e2.toLowerCase();
|
|
1312
1317
|
D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
|
|
@@ -1317,13 +1322,13 @@ var dayjs_min = { exports: {} };
|
|
|
1317
1322
|
var a2 = e2.name;
|
|
1318
1323
|
D[a2] = e2, i2 = a2;
|
|
1319
1324
|
}
|
|
1320
|
-
return !r2 && i2 && (
|
|
1325
|
+
return !r2 && i2 && (g = i2), i2 || !r2 && g;
|
|
1321
1326
|
}, w = function(t2, e2) {
|
|
1322
1327
|
if (p(t2))
|
|
1323
1328
|
return t2.clone();
|
|
1324
1329
|
var n2 = "object" == typeof e2 ? e2 : {};
|
|
1325
1330
|
return n2.date = t2, n2.args = arguments, new _(n2);
|
|
1326
|
-
}, O =
|
|
1331
|
+
}, O = v;
|
|
1327
1332
|
O.l = S, O.i = p, O.w = function(t2, e2) {
|
|
1328
1333
|
return w(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
1329
1334
|
};
|
|
@@ -1342,7 +1347,7 @@ var dayjs_min = { exports: {} };
|
|
|
1342
1347
|
if (e2 instanceof Date)
|
|
1343
1348
|
return new Date(e2);
|
|
1344
1349
|
if ("string" == typeof e2 && !/Z$/i.test(e2)) {
|
|
1345
|
-
var r2 = e2.match(
|
|
1350
|
+
var r2 = e2.match($);
|
|
1346
1351
|
if (r2) {
|
|
1347
1352
|
var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
|
|
1348
1353
|
return n2 ? new Date(Date.UTC(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2);
|
|
@@ -1356,7 +1361,7 @@ var dayjs_min = { exports: {} };
|
|
|
1356
1361
|
}, m2.$utils = function() {
|
|
1357
1362
|
return O;
|
|
1358
1363
|
}, m2.isValid = function() {
|
|
1359
|
-
return !(this.$d.toString() ===
|
|
1364
|
+
return !(this.$d.toString() === l);
|
|
1360
1365
|
}, m2.isSame = function(t2, e2) {
|
|
1361
1366
|
var n2 = w(t2);
|
|
1362
1367
|
return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
|
|
@@ -1371,69 +1376,69 @@ var dayjs_min = { exports: {} };
|
|
|
1371
1376
|
}, m2.valueOf = function() {
|
|
1372
1377
|
return this.$d.getTime();
|
|
1373
1378
|
}, m2.startOf = function(t2, e2) {
|
|
1374
|
-
var n2 = this, r2 = !!O.u(e2) || e2, h2 = O.p(t2),
|
|
1379
|
+
var n2 = this, r2 = !!O.u(e2) || e2, h2 = O.p(t2), l2 = function(t3, e3) {
|
|
1375
1380
|
var i2 = O.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
|
|
1376
1381
|
return r2 ? i2 : i2.endOf(a);
|
|
1377
|
-
},
|
|
1382
|
+
}, $2 = function(t3, e3) {
|
|
1378
1383
|
return O.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
|
|
1379
|
-
}, y2 = this.$W, M3 = this.$M, m3 = this.$D,
|
|
1384
|
+
}, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
|
|
1380
1385
|
switch (h2) {
|
|
1381
1386
|
case c:
|
|
1382
|
-
return r2 ?
|
|
1387
|
+
return r2 ? l2(1, 0) : l2(31, 11);
|
|
1383
1388
|
case f:
|
|
1384
|
-
return r2 ?
|
|
1389
|
+
return r2 ? l2(1, M3) : l2(0, M3 + 1);
|
|
1385
1390
|
case o:
|
|
1386
|
-
var
|
|
1387
|
-
return
|
|
1391
|
+
var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
|
|
1392
|
+
return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
|
|
1388
1393
|
case a:
|
|
1389
1394
|
case d:
|
|
1390
|
-
return
|
|
1395
|
+
return $2(v2 + "Hours", 0);
|
|
1391
1396
|
case u:
|
|
1392
|
-
return
|
|
1397
|
+
return $2(v2 + "Minutes", 1);
|
|
1393
1398
|
case s:
|
|
1394
|
-
return
|
|
1399
|
+
return $2(v2 + "Seconds", 2);
|
|
1395
1400
|
case i:
|
|
1396
|
-
return
|
|
1401
|
+
return $2(v2 + "Milliseconds", 3);
|
|
1397
1402
|
default:
|
|
1398
1403
|
return this.clone();
|
|
1399
1404
|
}
|
|
1400
1405
|
}, m2.endOf = function(t2) {
|
|
1401
1406
|
return this.startOf(t2, false);
|
|
1402
1407
|
}, m2.$set = function(t2, e2) {
|
|
1403
|
-
var n2, o2 = O.p(t2), h2 = "set" + (this.$u ? "UTC" : ""),
|
|
1408
|
+
var n2, o2 = O.p(t2), h2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = h2 + "Date", n2[d] = h2 + "Date", n2[f] = h2 + "Month", n2[c] = h2 + "FullYear", n2[u] = h2 + "Hours", n2[s] = h2 + "Minutes", n2[i] = h2 + "Seconds", n2[r] = h2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
|
|
1404
1409
|
if (o2 === f || o2 === c) {
|
|
1405
1410
|
var y2 = this.clone().set(d, 1);
|
|
1406
|
-
y2.$d[$2
|
|
1411
|
+
y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
|
|
1407
1412
|
} else
|
|
1408
|
-
|
|
1413
|
+
l2 && this.$d[l2]($2);
|
|
1409
1414
|
return this.init(), this;
|
|
1410
1415
|
}, m2.set = function(t2, e2) {
|
|
1411
1416
|
return this.clone().$set(t2, e2);
|
|
1412
1417
|
}, m2.get = function(t2) {
|
|
1413
1418
|
return this[O.p(t2)]();
|
|
1414
1419
|
}, m2.add = function(r2, h2) {
|
|
1415
|
-
var d2,
|
|
1420
|
+
var d2, l2 = this;
|
|
1416
1421
|
r2 = Number(r2);
|
|
1417
|
-
var
|
|
1418
|
-
var e2 = w(
|
|
1419
|
-
return O.w(e2.date(e2.date() + Math.round(t2 * r2)),
|
|
1422
|
+
var $2 = O.p(h2), y2 = function(t2) {
|
|
1423
|
+
var e2 = w(l2);
|
|
1424
|
+
return O.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
|
|
1420
1425
|
};
|
|
1421
|
-
if (
|
|
1426
|
+
if ($2 === f)
|
|
1422
1427
|
return this.set(f, this.$M + r2);
|
|
1423
|
-
if (
|
|
1428
|
+
if ($2 === c)
|
|
1424
1429
|
return this.set(c, this.$y + r2);
|
|
1425
|
-
if (
|
|
1430
|
+
if ($2 === a)
|
|
1426
1431
|
return y2(1);
|
|
1427
|
-
if (
|
|
1432
|
+
if ($2 === o)
|
|
1428
1433
|
return y2(7);
|
|
1429
|
-
var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[
|
|
1434
|
+
var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
|
|
1430
1435
|
return O.w(m3, this);
|
|
1431
1436
|
}, m2.subtract = function(t2, e2) {
|
|
1432
1437
|
return this.add(-1 * t2, e2);
|
|
1433
1438
|
}, m2.format = function(t2) {
|
|
1434
1439
|
var e2 = this, n2 = this.$locale();
|
|
1435
1440
|
if (!this.isValid())
|
|
1436
|
-
return n2.invalidDate ||
|
|
1441
|
+
return n2.invalidDate || l;
|
|
1437
1442
|
var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = O.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, f2 = n2.months, h2 = function(t3, n3, i3, s3) {
|
|
1438
1443
|
return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
|
|
1439
1444
|
}, c6 = function(t3) {
|
|
@@ -1441,15 +1446,15 @@ var dayjs_min = { exports: {} };
|
|
|
1441
1446
|
}, d2 = n2.meridiem || function(t3, e3, n3) {
|
|
1442
1447
|
var r3 = t3 < 12 ? "AM" : "PM";
|
|
1443
1448
|
return n3 ? r3.toLowerCase() : r3;
|
|
1444
|
-
},
|
|
1449
|
+
}, $2 = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: a2 + 1, MM: O.s(a2 + 1, 2, "0"), MMM: h2(n2.monthsShort, a2, f2, 3), MMMM: h2(f2, a2), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: h2(n2.weekdaysMin, this.$W, o2, 2), ddd: h2(n2.weekdaysShort, this.$W, o2, 3), dddd: o2[this.$W], H: String(s2), HH: O.s(s2, 2, "0"), h: c6(1), hh: c6(2), a: d2(s2, u2, true), A: d2(s2, u2, false), m: String(u2), mm: O.s(u2, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: i2 };
|
|
1445
1450
|
return r2.replace(y, function(t3, e3) {
|
|
1446
|
-
return e3 ||
|
|
1451
|
+
return e3 || $2[t3] || i2.replace(":", "");
|
|
1447
1452
|
});
|
|
1448
1453
|
}, m2.utcOffset = function() {
|
|
1449
1454
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1450
|
-
}, m2.diff = function(r2, d2,
|
|
1451
|
-
var
|
|
1452
|
-
return
|
|
1455
|
+
}, m2.diff = function(r2, d2, l2) {
|
|
1456
|
+
var $2, y2 = O.p(d2), M3 = w(r2), m3 = (M3.utcOffset() - this.utcOffset()) * e, v2 = this - M3, g2 = O.m(this, M3);
|
|
1457
|
+
return g2 = ($2 = {}, $2[c] = g2 / 12, $2[f] = g2, $2[h] = g2 / 3, $2[o] = (v2 - m3) / 6048e5, $2[a] = (v2 - m3) / 864e5, $2[u] = v2 / n, $2[s] = v2 / e, $2[i] = v2 / t, $2)[y2] || v2, l2 ? g2 : O.a(g2);
|
|
1453
1458
|
}, m2.daysInMonth = function() {
|
|
1454
1459
|
return this.endOf(f).$D;
|
|
1455
1460
|
}, m2.$locale = function() {
|
|
@@ -1479,7 +1484,7 @@ var dayjs_min = { exports: {} };
|
|
|
1479
1484
|
return t2.$i || (t2(e2, _, w), t2.$i = true), w;
|
|
1480
1485
|
}, w.locale = S, w.isDayjs = p, w.unix = function(t2) {
|
|
1481
1486
|
return w(1e3 * t2);
|
|
1482
|
-
}, w.en = D[
|
|
1487
|
+
}, w.en = D[g], w.Ls = D, w.p = {}, w;
|
|
1483
1488
|
});
|
|
1484
1489
|
})(dayjs_min);
|
|
1485
1490
|
const dayjs = dayjs_min.exports;
|
|
@@ -1507,17 +1512,22 @@ var __read$6 = globalThis && globalThis.__read || function(o, n) {
|
|
|
1507
1512
|
}
|
|
1508
1513
|
return ar;
|
|
1509
1514
|
};
|
|
1510
|
-
var
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
+
var __spreadArray$2 = globalThis && globalThis.__spreadArray || function(to2, from, pack) {
|
|
1516
|
+
if (pack || arguments.length === 2)
|
|
1517
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
1518
|
+
if (ar || !(i in from)) {
|
|
1519
|
+
if (!ar)
|
|
1520
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
1521
|
+
ar[i] = from[i];
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
return to2.concat(ar || Array.prototype.slice.call(from));
|
|
1515
1525
|
};
|
|
1516
1526
|
function useDebounceFn(fn, options) {
|
|
1517
1527
|
var _a;
|
|
1518
|
-
if (isDev$
|
|
1528
|
+
if (isDev$2) {
|
|
1519
1529
|
if (!isFunction$1(fn)) {
|
|
1520
|
-
console.error("useDebounceFn expected parameter is a function, got "
|
|
1530
|
+
console.error("useDebounceFn expected parameter is a function, got ".concat(typeof fn));
|
|
1521
1531
|
}
|
|
1522
1532
|
}
|
|
1523
1533
|
var fnRef = useLatest(fn);
|
|
@@ -1528,7 +1538,7 @@ function useDebounceFn(fn, options) {
|
|
|
1528
1538
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1529
1539
|
args[_i] = arguments[_i];
|
|
1530
1540
|
}
|
|
1531
|
-
return fnRef.current.apply(fnRef,
|
|
1541
|
+
return fnRef.current.apply(fnRef, __spreadArray$2([], __read$6(args), false));
|
|
1532
1542
|
}, wait, options);
|
|
1533
1543
|
}, []);
|
|
1534
1544
|
useUnmount$1(function() {
|
|
@@ -2928,11 +2938,16 @@ var __read$3 = globalThis && globalThis.__read || function(o, n) {
|
|
|
2928
2938
|
}
|
|
2929
2939
|
return ar;
|
|
2930
2940
|
};
|
|
2931
|
-
var
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2941
|
+
var __spreadArray$1 = globalThis && globalThis.__spreadArray || function(to2, from, pack) {
|
|
2942
|
+
if (pack || arguments.length === 2)
|
|
2943
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
2944
|
+
if (ar || !(i in from)) {
|
|
2945
|
+
if (!ar)
|
|
2946
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
2947
|
+
ar[i] = from[i];
|
|
2948
|
+
}
|
|
2949
|
+
}
|
|
2950
|
+
return to2.concat(ar || Array.prototype.slice.call(from));
|
|
2936
2951
|
};
|
|
2937
2952
|
function useLockFn(fn) {
|
|
2938
2953
|
var _this = this;
|
|
@@ -2948,32 +2963,22 @@ function useLockFn(fn) {
|
|
|
2948
2963
|
switch (_a.label) {
|
|
2949
2964
|
case 0:
|
|
2950
2965
|
if (lockRef.current)
|
|
2951
|
-
return [
|
|
2952
|
-
2
|
|
2953
|
-
];
|
|
2966
|
+
return [2];
|
|
2954
2967
|
lockRef.current = true;
|
|
2955
2968
|
_a.label = 1;
|
|
2956
2969
|
case 1:
|
|
2957
2970
|
_a.trys.push([1, 3, , 4]);
|
|
2958
|
-
return [
|
|
2959
|
-
4,
|
|
2960
|
-
fn.apply(void 0, __spread$1(args))
|
|
2961
|
-
];
|
|
2971
|
+
return [4, fn.apply(void 0, __spreadArray$1([], __read$3(args), false))];
|
|
2962
2972
|
case 2:
|
|
2963
2973
|
ret = _a.sent();
|
|
2964
2974
|
lockRef.current = false;
|
|
2965
|
-
return [
|
|
2966
|
-
2,
|
|
2967
|
-
ret
|
|
2968
|
-
];
|
|
2975
|
+
return [2, ret];
|
|
2969
2976
|
case 3:
|
|
2970
2977
|
e_1 = _a.sent();
|
|
2971
2978
|
lockRef.current = false;
|
|
2972
2979
|
throw e_1;
|
|
2973
2980
|
case 4:
|
|
2974
|
-
return [
|
|
2975
|
-
2
|
|
2976
|
-
];
|
|
2981
|
+
return [2];
|
|
2977
2982
|
}
|
|
2978
2983
|
});
|
|
2979
2984
|
});
|
|
@@ -3574,17 +3579,22 @@ var __read = globalThis && globalThis.__read || function(o, n) {
|
|
|
3574
3579
|
}
|
|
3575
3580
|
return ar;
|
|
3576
3581
|
};
|
|
3577
|
-
var
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
+
var __spreadArray = globalThis && globalThis.__spreadArray || function(to2, from, pack) {
|
|
3583
|
+
if (pack || arguments.length === 2)
|
|
3584
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3585
|
+
if (ar || !(i in from)) {
|
|
3586
|
+
if (!ar)
|
|
3587
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
3588
|
+
ar[i] = from[i];
|
|
3589
|
+
}
|
|
3590
|
+
}
|
|
3591
|
+
return to2.concat(ar || Array.prototype.slice.call(from));
|
|
3582
3592
|
};
|
|
3583
3593
|
function useThrottleFn(fn, options) {
|
|
3584
3594
|
var _a;
|
|
3585
|
-
if (isDev$
|
|
3595
|
+
if (isDev$2) {
|
|
3586
3596
|
if (!isFunction$1(fn)) {
|
|
3587
|
-
console.error("useThrottleFn expected parameter is a function, got "
|
|
3597
|
+
console.error("useThrottleFn expected parameter is a function, got ".concat(typeof fn));
|
|
3588
3598
|
}
|
|
3589
3599
|
}
|
|
3590
3600
|
var fnRef = useLatest(fn);
|
|
@@ -3595,7 +3605,7 @@ function useThrottleFn(fn, options) {
|
|
|
3595
3605
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
3596
3606
|
args[_i] = arguments[_i];
|
|
3597
3607
|
}
|
|
3598
|
-
return fnRef.current.apply(fnRef,
|
|
3608
|
+
return fnRef.current.apply(fnRef, __spreadArray([], __read(args), false));
|
|
3599
3609
|
}, wait, options);
|
|
3600
3610
|
}, []);
|
|
3601
3611
|
useUnmount$1(function() {
|
|
@@ -3609,10 +3619,11 @@ function useThrottleFn(fn, options) {
|
|
|
3609
3619
|
}
|
|
3610
3620
|
function useTimeout(fn, delay) {
|
|
3611
3621
|
var fnRef = useLatest(fn);
|
|
3612
|
-
var timerRef = React$1.useRef();
|
|
3622
|
+
var timerRef = React$1.useRef(null);
|
|
3613
3623
|
React$1.useEffect(function() {
|
|
3614
|
-
if (!isNumber(delay) || delay < 0)
|
|
3624
|
+
if (!isNumber(delay) || delay < 0) {
|
|
3615
3625
|
return;
|
|
3626
|
+
}
|
|
3616
3627
|
timerRef.current = setTimeout(function() {
|
|
3617
3628
|
fnRef.current();
|
|
3618
3629
|
}, delay);
|
|
@@ -7032,7 +7043,7 @@ const defaultProps$13 = {
|
|
|
7032
7043
|
getContainer: null,
|
|
7033
7044
|
stopPropagation: ["click"]
|
|
7034
7045
|
};
|
|
7035
|
-
const Mask = (p) => {
|
|
7046
|
+
const Mask$1 = (p) => {
|
|
7036
7047
|
const props = mergeProps(defaultProps$13, p);
|
|
7037
7048
|
const {
|
|
7038
7049
|
locale
|
|
@@ -7101,6 +7112,7 @@ const Mask = (p) => {
|
|
|
7101
7112
|
destroyOnClose: props.destroyOnClose
|
|
7102
7113
|
}, renderToContainer(props.getContainer, node));
|
|
7103
7114
|
};
|
|
7115
|
+
const Mask = Mask$1;
|
|
7104
7116
|
function AddOutline(props) {
|
|
7105
7117
|
return /* @__PURE__ */ React__namespace.createElement("svg", Object.assign({
|
|
7106
7118
|
width: "1em",
|
|
@@ -7714,7 +7726,7 @@ const classPrefix$1k = `adm-popup`;
|
|
|
7714
7726
|
const defaultProps$12 = Object.assign(Object.assign({}, defaultPopupBaseProps), {
|
|
7715
7727
|
position: "bottom"
|
|
7716
7728
|
});
|
|
7717
|
-
const Popup = (p) => {
|
|
7729
|
+
const Popup$1 = (p) => {
|
|
7718
7730
|
const props = mergeProps(defaultProps$12, p);
|
|
7719
7731
|
const bodyCls = classNames(`${classPrefix$1k}-body`, props.bodyClassName, `${classPrefix$1k}-body-position-${props.position}`);
|
|
7720
7732
|
const [active, setActive] = React$1.useState(props.visible);
|
|
@@ -7803,13 +7815,15 @@ const Popup = (p) => {
|
|
|
7803
7815
|
destroyOnClose: props.destroyOnClose
|
|
7804
7816
|
}, renderToContainer(props.getContainer, node));
|
|
7805
7817
|
};
|
|
7818
|
+
const Popup = Popup$1;
|
|
7806
7819
|
const safeArea = "";
|
|
7807
7820
|
const classPrefix$1j = "adm-safe-area";
|
|
7808
|
-
const SafeArea = (props) => {
|
|
7821
|
+
const SafeArea$1 = (props) => {
|
|
7809
7822
|
return withNativeProps(props, React__default.default.createElement("div", {
|
|
7810
7823
|
className: classNames(classPrefix$1j, `${classPrefix$1j}-position-${props.position}`)
|
|
7811
7824
|
}));
|
|
7812
7825
|
};
|
|
7826
|
+
const SafeArea = SafeArea$1;
|
|
7813
7827
|
const fullClone = Object.assign({}, ReactDOM__namespace);
|
|
7814
7828
|
const {
|
|
7815
7829
|
version,
|
|
@@ -8014,13 +8028,14 @@ const index$j = attachPropertiesToComponent(ActionSheet, {
|
|
|
8014
8028
|
});
|
|
8015
8029
|
const autoCenter = "";
|
|
8016
8030
|
const classPrefix$1h = "adm-auto-center";
|
|
8017
|
-
const AutoCenter = (props) => {
|
|
8031
|
+
const AutoCenter$1 = (props) => {
|
|
8018
8032
|
return withNativeProps(props, React__default.default.createElement("div", {
|
|
8019
8033
|
className: classPrefix$1h
|
|
8020
8034
|
}, React__default.default.createElement("div", {
|
|
8021
8035
|
className: `${classPrefix$1h}-content`
|
|
8022
8036
|
}, props.children)));
|
|
8023
8037
|
};
|
|
8038
|
+
const AutoCenter = AutoCenter$1;
|
|
8024
8039
|
const avatar = "";
|
|
8025
8040
|
const image = "";
|
|
8026
8041
|
var _stagedComponents_1_1_3_stagedComponents = {};
|
|
@@ -8092,7 +8107,7 @@ const defaultProps$10 = {
|
|
|
8092
8107
|
lazy: false,
|
|
8093
8108
|
draggable: false
|
|
8094
8109
|
};
|
|
8095
|
-
const Image$
|
|
8110
|
+
const Image$2 = staged_1((p) => {
|
|
8096
8111
|
const props = mergeProps(defaultProps$10, p);
|
|
8097
8112
|
const [loaded, setLoaded] = React$1.useState(false);
|
|
8098
8113
|
const [failed, setFailed] = React$1.useState(false);
|
|
@@ -8160,6 +8175,7 @@ const Image$1 = staged_1((p) => {
|
|
|
8160
8175
|
}
|
|
8161
8176
|
}), renderInner()));
|
|
8162
8177
|
});
|
|
8178
|
+
const Image$1 = Image$2;
|
|
8163
8179
|
const Fallback = React$1.memo(() => React__default.default.createElement("svg", {
|
|
8164
8180
|
className: "adm-avatar-fallback",
|
|
8165
8181
|
width: "88px",
|
|
@@ -8203,7 +8219,7 @@ const defaultProps$$ = {
|
|
|
8203
8219
|
fallback: React__default.default.createElement(Fallback, null),
|
|
8204
8220
|
fit: "cover"
|
|
8205
8221
|
};
|
|
8206
|
-
const Avatar = (p) => {
|
|
8222
|
+
const Avatar$1 = (p) => {
|
|
8207
8223
|
const props = mergeProps(defaultProps$$, p);
|
|
8208
8224
|
return withNativeProps(props, React__default.default.createElement(Image$1, {
|
|
8209
8225
|
className: classPrefix$1f,
|
|
@@ -8217,6 +8233,7 @@ const Avatar = (p) => {
|
|
|
8217
8233
|
onError: props.onError
|
|
8218
8234
|
}));
|
|
8219
8235
|
};
|
|
8236
|
+
const Avatar = Avatar$1;
|
|
8220
8237
|
const badge = "";
|
|
8221
8238
|
const classPrefix$1e = `adm-badge`;
|
|
8222
8239
|
const dot = React__default.default.createElement(React__default.default.Fragment, null);
|
|
@@ -8255,7 +8272,7 @@ const colorRecord$3 = {
|
|
|
8255
8272
|
const defaultProps$_ = {
|
|
8256
8273
|
color: "default"
|
|
8257
8274
|
};
|
|
8258
|
-
const DotLoading = React$1.memo((p) => {
|
|
8275
|
+
const DotLoading$2 = React$1.memo((p) => {
|
|
8259
8276
|
var _a;
|
|
8260
8277
|
const props = mergeProps(defaultProps$_, p);
|
|
8261
8278
|
return withNativeProps(props, React__default.default.createElement("div", {
|
|
@@ -8299,6 +8316,7 @@ const DotLoading = React$1.memo((p) => {
|
|
|
8299
8316
|
keyTimes: "0; 0.1; 0.3; 0.4; 1"
|
|
8300
8317
|
}))))))))));
|
|
8301
8318
|
});
|
|
8319
|
+
const DotLoading$1 = DotLoading$2;
|
|
8302
8320
|
function isPromise(obj) {
|
|
8303
8321
|
return !!obj && typeof obj === "object" && typeof obj.then === "function";
|
|
8304
8322
|
}
|
|
@@ -8311,14 +8329,14 @@ const defaultProps$Z = {
|
|
|
8311
8329
|
fill: "solid",
|
|
8312
8330
|
block: false,
|
|
8313
8331
|
loading: false,
|
|
8314
|
-
loadingIcon: React__default.default.createElement(DotLoading, {
|
|
8332
|
+
loadingIcon: React__default.default.createElement(DotLoading$1, {
|
|
8315
8333
|
color: "currentColor"
|
|
8316
8334
|
}),
|
|
8317
8335
|
type: "button",
|
|
8318
8336
|
shape: "default",
|
|
8319
8337
|
size: "middle"
|
|
8320
8338
|
};
|
|
8321
|
-
const Button = React$1.forwardRef((p, ref) => {
|
|
8339
|
+
const Button$1 = React$1.forwardRef((p, ref) => {
|
|
8322
8340
|
const props = mergeProps(defaultProps$Z, p);
|
|
8323
8341
|
const [innerLoading, setInnerLoading] = React$1.useState(false);
|
|
8324
8342
|
const nativeButtonRef = React$1.useRef(null);
|
|
@@ -8367,6 +8385,7 @@ const Button = React$1.forwardRef((p, ref) => {
|
|
|
8367
8385
|
className: `${classPrefix$1c}-loading-wrapper`
|
|
8368
8386
|
}, props.loadingIcon, props.loadingText) : React__default.default.createElement("span", null, props.children)));
|
|
8369
8387
|
});
|
|
8388
|
+
const Button = Button$1;
|
|
8370
8389
|
const calendar = "";
|
|
8371
8390
|
const ArrowLeft = () => {
|
|
8372
8391
|
return React__default.default.createElement("svg", {
|
|
@@ -8498,7 +8517,7 @@ const defaultProps$Y = {
|
|
|
8498
8517
|
nextMonthButton: React__default.default.createElement(ArrowLeft, null),
|
|
8499
8518
|
nextYearButton: React__default.default.createElement(ArrowLeftDouble, null)
|
|
8500
8519
|
};
|
|
8501
|
-
const Calendar = React$1.forwardRef((p, ref) => {
|
|
8520
|
+
const Calendar$1 = React$1.forwardRef((p, ref) => {
|
|
8502
8521
|
const today = dayjs();
|
|
8503
8522
|
const props = mergeProps(defaultProps$Y, p);
|
|
8504
8523
|
const {
|
|
@@ -8682,6 +8701,7 @@ const Calendar = React$1.forwardRef((p, ref) => {
|
|
|
8682
8701
|
className: classPrefix$1b
|
|
8683
8702
|
}, header, mark, body));
|
|
8684
8703
|
});
|
|
8704
|
+
const Calendar = Calendar$1;
|
|
8685
8705
|
const capsuleTabs = "";
|
|
8686
8706
|
function useResizeEffect(effect, targetRef) {
|
|
8687
8707
|
const fn = useMemoizedFn(effect);
|
|
@@ -8783,7 +8803,7 @@ const useTabListScroll = (targetRef, activeIndex) => {
|
|
|
8783
8803
|
};
|
|
8784
8804
|
const scrollMask = "";
|
|
8785
8805
|
const classPrefix$1a = `adm-scroll-mask`;
|
|
8786
|
-
const ScrollMask = (props) => {
|
|
8806
|
+
const ScrollMask$1 = (props) => {
|
|
8787
8807
|
const maskRef = React$1.useRef(null);
|
|
8788
8808
|
const [{
|
|
8789
8809
|
leftMaskOpacity,
|
|
@@ -8840,6 +8860,7 @@ const ScrollMask = (props) => {
|
|
|
8840
8860
|
}
|
|
8841
8861
|
}));
|
|
8842
8862
|
};
|
|
8863
|
+
const ScrollMask = ScrollMask$1;
|
|
8843
8864
|
var _reactIs_17_0_2_reactIs = { exports: {} };
|
|
8844
8865
|
var reactIs_development$1 = {};
|
|
8845
8866
|
/** @license React v17.0.2
|
|
@@ -9143,7 +9164,7 @@ const index$i = attachPropertiesToComponent(CapsuleTabs, {
|
|
|
9143
9164
|
});
|
|
9144
9165
|
const card = "";
|
|
9145
9166
|
const classPrefix$18 = `adm-card`;
|
|
9146
|
-
const Card = (props) => {
|
|
9167
|
+
const Card$1 = (props) => {
|
|
9147
9168
|
const renderHeader = () => {
|
|
9148
9169
|
if (!(props.title || props.extra)) {
|
|
9149
9170
|
return null;
|
|
@@ -9171,6 +9192,7 @@ const Card = (props) => {
|
|
|
9171
9192
|
onClick: props.onClick
|
|
9172
9193
|
}, renderHeader(), renderBody()));
|
|
9173
9194
|
};
|
|
9195
|
+
const Card = Card$1;
|
|
9174
9196
|
const picker = "";
|
|
9175
9197
|
function clamp(v, min2, max2) {
|
|
9176
9198
|
return Math.max(min2, Math.min(v, max2));
|
|
@@ -10978,13 +11000,14 @@ function rubberbandIfOutOfBounds(position, min2, max2, dimension, constant2 = 0.
|
|
|
10978
11000
|
return +rubberband(position - max2, dimension, constant2) + max2;
|
|
10979
11001
|
return position;
|
|
10980
11002
|
}
|
|
11003
|
+
const isDev = true;
|
|
10981
11004
|
function devWarning(component, message) {
|
|
10982
|
-
{
|
|
11005
|
+
if (isDev) {
|
|
10983
11006
|
console.warn(`[antd-mobile: ${component}] ${message}`);
|
|
10984
11007
|
}
|
|
10985
11008
|
}
|
|
10986
11009
|
function devError(component, message) {
|
|
10987
|
-
{
|
|
11010
|
+
if (isDev) {
|
|
10988
11011
|
console.error(`[antd-mobile: ${component}] ${message}`);
|
|
10989
11012
|
}
|
|
10990
11013
|
}
|
|
@@ -11414,7 +11437,7 @@ const defaultProps$X = {
|
|
|
11414
11437
|
color: "default"
|
|
11415
11438
|
};
|
|
11416
11439
|
const circumference = 15 * 3.14159265358979 * 2;
|
|
11417
|
-
const SpinLoading = React$1.memo((p) => {
|
|
11440
|
+
const SpinLoading$1 = React$1.memo((p) => {
|
|
11418
11441
|
var _a;
|
|
11419
11442
|
const props = mergeProps(defaultProps$X, p);
|
|
11420
11443
|
const motionReduced = useMotionReduced();
|
|
@@ -11456,6 +11479,7 @@ const SpinLoading = React$1.memo((p) => {
|
|
|
11456
11479
|
cy: 16
|
|
11457
11480
|
}))));
|
|
11458
11481
|
});
|
|
11482
|
+
const SpinLoading = SpinLoading$1;
|
|
11459
11483
|
const classPrefix$15 = `adm-picker-view`;
|
|
11460
11484
|
const defaultProps$W = {
|
|
11461
11485
|
defaultValue: [],
|
|
@@ -11465,7 +11489,7 @@ const defaultProps$W = {
|
|
|
11465
11489
|
className: `${classPrefix$15}-loading-content`
|
|
11466
11490
|
}, React__default.default.createElement(SpinLoading, null))
|
|
11467
11491
|
};
|
|
11468
|
-
const PickerView = React$1.memo((p) => {
|
|
11492
|
+
const PickerView$1 = React$1.memo((p) => {
|
|
11469
11493
|
const props = mergeProps(defaultProps$W, p);
|
|
11470
11494
|
const [innerValue, setInnerValue] = React$1.useState(props.value === void 0 ? props.defaultValue : props.value);
|
|
11471
11495
|
React$1.useEffect(() => {
|
|
@@ -11526,8 +11550,9 @@ const PickerView = React$1.memo((p) => {
|
|
|
11526
11550
|
className: `${classPrefix$15}-mask-bottom`
|
|
11527
11551
|
})))));
|
|
11528
11552
|
});
|
|
11529
|
-
PickerView.displayName = "PickerView";
|
|
11553
|
+
PickerView$1.displayName = "PickerView";
|
|
11530
11554
|
const pickerView = "";
|
|
11555
|
+
const PickerView = PickerView$1;
|
|
11531
11556
|
const classPrefix$14 = `adm-picker`;
|
|
11532
11557
|
const defaultProps$V = {
|
|
11533
11558
|
defaultValue: [],
|
|
@@ -11768,7 +11793,7 @@ function prompt$2(props) {
|
|
|
11768
11793
|
const index$h = attachPropertiesToComponent(CascadePicker, {
|
|
11769
11794
|
prompt: prompt$2
|
|
11770
11795
|
});
|
|
11771
|
-
const CascadePickerView = (props) => {
|
|
11796
|
+
const CascadePickerView$1 = (props) => {
|
|
11772
11797
|
const {
|
|
11773
11798
|
options
|
|
11774
11799
|
} = props, pickerProps = __rest(props, ["options"]);
|
|
@@ -11777,6 +11802,7 @@ const CascadePickerView = (props) => {
|
|
|
11777
11802
|
columns: columnsFn
|
|
11778
11803
|
}));
|
|
11779
11804
|
};
|
|
11805
|
+
const CascadePickerView = CascadePickerView$1;
|
|
11780
11806
|
const cascaderView = "";
|
|
11781
11807
|
const tabs = "";
|
|
11782
11808
|
const classPrefix$13 = `adm-tabs`;
|
|
@@ -12248,9 +12274,8 @@ const CascaderView$1 = (p) => {
|
|
|
12248
12274
|
const {
|
|
12249
12275
|
locale
|
|
12250
12276
|
} = useConfig();
|
|
12251
|
-
const props = mergeProps(defaultProps$R,
|
|
12252
|
-
|
|
12253
|
-
}, p);
|
|
12277
|
+
const props = mergeProps(defaultProps$R, p);
|
|
12278
|
+
const placeholder = props.placeholder || locale.Cascader.placeholder;
|
|
12254
12279
|
const [value, setValue2] = usePropsValue(Object.assign(Object.assign({}, props), {
|
|
12255
12280
|
onChange: (val) => {
|
|
12256
12281
|
var _a;
|
|
@@ -12319,7 +12344,7 @@ const CascaderView$1 = (p) => {
|
|
|
12319
12344
|
key: index2.toString(),
|
|
12320
12345
|
title: React__default.default.createElement("div", {
|
|
12321
12346
|
className: `${classPrefix$Z}-header-title`
|
|
12322
|
-
}, selected ? selected.label :
|
|
12347
|
+
}, selected ? selected.label : typeof placeholder === "function" ? placeholder(index2) : placeholder),
|
|
12323
12348
|
forceRender: true
|
|
12324
12349
|
}, React__default.default.createElement("div", {
|
|
12325
12350
|
className: `${classPrefix$Z}-content`
|
|
@@ -12501,7 +12526,7 @@ const centerPopup = "";
|
|
|
12501
12526
|
const defaultProps$P = Object.assign(Object.assign({}, defaultPopupBaseProps), {
|
|
12502
12527
|
getContainer: null
|
|
12503
12528
|
});
|
|
12504
|
-
const CenterPopup = (p) => {
|
|
12529
|
+
const CenterPopup$1 = (p) => {
|
|
12505
12530
|
const props = mergeProps(defaultProps$P, p);
|
|
12506
12531
|
const unmountedRef = useUnmountedRef$1();
|
|
12507
12532
|
const style = useSpring({
|
|
@@ -12579,6 +12604,7 @@ const CenterPopup = (p) => {
|
|
|
12579
12604
|
destroyOnClose: props.destroyOnClose
|
|
12580
12605
|
}, renderToContainer(props.getContainer, node));
|
|
12581
12606
|
};
|
|
12607
|
+
const CenterPopup = CenterPopup$1;
|
|
12582
12608
|
const checkbox = "";
|
|
12583
12609
|
const CheckboxGroupContext = React$1.createContext(null);
|
|
12584
12610
|
const defaultProps$O = {
|
|
@@ -12670,7 +12696,7 @@ const Checkbox$1 = React$1.forwardRef((p, ref) => {
|
|
|
12670
12696
|
value
|
|
12671
12697
|
} = props;
|
|
12672
12698
|
if (groupContext && value !== void 0) {
|
|
12673
|
-
{
|
|
12699
|
+
if (isDev) {
|
|
12674
12700
|
if (p.checked !== void 0) {
|
|
12675
12701
|
devWarning("Checkbox", "When used within `Checkbox.Group`, the `checked` prop of `Checkbox` will not work.");
|
|
12676
12702
|
}
|
|
@@ -13294,7 +13320,7 @@ const defaultProps$L = {
|
|
|
13294
13320
|
precision: "day",
|
|
13295
13321
|
renderLabel: defaultRenderLabel
|
|
13296
13322
|
};
|
|
13297
|
-
const DatePickerView = (p) => {
|
|
13323
|
+
const DatePickerView$1 = (p) => {
|
|
13298
13324
|
var _a;
|
|
13299
13325
|
const props = mergeProps(defaultProps$L, p);
|
|
13300
13326
|
const [value, setValue2] = usePropsValue({
|
|
@@ -13319,6 +13345,7 @@ const DatePickerView = (p) => {
|
|
|
13319
13345
|
onChange
|
|
13320
13346
|
}));
|
|
13321
13347
|
};
|
|
13348
|
+
const DatePickerView = DatePickerView$1;
|
|
13322
13349
|
const dialog = "";
|
|
13323
13350
|
const DialogActionButton = (props) => {
|
|
13324
13351
|
const {
|
|
@@ -13494,7 +13521,7 @@ const defaultProps$I = {
|
|
|
13494
13521
|
contentPosition: "center",
|
|
13495
13522
|
direction: "horizontal"
|
|
13496
13523
|
};
|
|
13497
|
-
const Divider = (p) => {
|
|
13524
|
+
const Divider$1 = (p) => {
|
|
13498
13525
|
const props = mergeProps(defaultProps$I, p);
|
|
13499
13526
|
return withNativeProps(props, React__default.default.createElement("div", {
|
|
13500
13527
|
className: classNames(classPrefix$V, `${classPrefix$V}-${props.direction}`, `${classPrefix$V}-${props.contentPosition}`)
|
|
@@ -13502,6 +13529,7 @@ const Divider = (p) => {
|
|
|
13502
13529
|
className: `${classPrefix$V}-content`
|
|
13503
13530
|
}, props.children)));
|
|
13504
13531
|
};
|
|
13532
|
+
const Divider = Divider$1;
|
|
13505
13533
|
const dropdown = "";
|
|
13506
13534
|
const classPrefix$U = `adm-dropdown-item`;
|
|
13507
13535
|
const Item = (props) => {
|
|
@@ -13523,6 +13551,7 @@ const Item = (props) => {
|
|
|
13523
13551
|
})
|
|
13524
13552
|
}, props.arrow === void 0 ? React__default.default.createElement(DownFill, null) : props.arrow))));
|
|
13525
13553
|
};
|
|
13554
|
+
const Item$1 = Item;
|
|
13526
13555
|
const ItemChildrenWrap = (props) => {
|
|
13527
13556
|
const {
|
|
13528
13557
|
active = false
|
|
@@ -13631,8 +13660,9 @@ const Dropdown = React$1.forwardRef((p, ref) => {
|
|
|
13631
13660
|
}, item.props.children);
|
|
13632
13661
|
})))));
|
|
13633
13662
|
});
|
|
13634
|
-
const
|
|
13635
|
-
|
|
13663
|
+
const Dropdown$1 = Dropdown;
|
|
13664
|
+
const index$c = attachPropertiesToComponent(Dropdown$1, {
|
|
13665
|
+
Item: Item$1
|
|
13636
13666
|
});
|
|
13637
13667
|
const ellipsis = "";
|
|
13638
13668
|
var _runes_0_4_3_runes = { exports: {} };
|
|
@@ -13766,7 +13796,7 @@ const defaultProps$G = {
|
|
|
13766
13796
|
onContentClick: () => {
|
|
13767
13797
|
}
|
|
13768
13798
|
};
|
|
13769
|
-
const Ellipsis = (p) => {
|
|
13799
|
+
const Ellipsis$1 = (p) => {
|
|
13770
13800
|
const props = mergeProps(defaultProps$G, p);
|
|
13771
13801
|
const rootRef = React$1.useRef(null);
|
|
13772
13802
|
const [ellipsised, setEllipsised] = React$1.useState({});
|
|
@@ -13902,6 +13932,7 @@ function pxToNumber(value) {
|
|
|
13902
13932
|
const match = value.match(/^\d*(\.\d*)?/);
|
|
13903
13933
|
return match ? Number(match[0]) : 0;
|
|
13904
13934
|
}
|
|
13935
|
+
const Ellipsis = Ellipsis$1;
|
|
13905
13936
|
const empty = "";
|
|
13906
13937
|
const EmptyIcon = (props) => {
|
|
13907
13938
|
return withNativeProps(props, React__default.default.createElement("svg", {
|
|
@@ -13926,7 +13957,7 @@ const EmptyIcon = (props) => {
|
|
|
13926
13957
|
})))));
|
|
13927
13958
|
};
|
|
13928
13959
|
const classPrefix$R = `adm-empty`;
|
|
13929
|
-
const Empty = (props) => {
|
|
13960
|
+
const Empty$1 = (props) => {
|
|
13930
13961
|
function renderImageNode() {
|
|
13931
13962
|
const {
|
|
13932
13963
|
image: image2
|
|
@@ -13955,6 +13986,7 @@ const Empty = (props) => {
|
|
|
13955
13986
|
className: classNames(`${classPrefix$R}-description`)
|
|
13956
13987
|
}, props.description)));
|
|
13957
13988
|
};
|
|
13989
|
+
const Empty = Empty$1;
|
|
13958
13990
|
const errorBlock = "";
|
|
13959
13991
|
const classPrefix$Q = `adm-error-block`;
|
|
13960
13992
|
const defaultProps$F = {
|
|
@@ -14493,13 +14525,14 @@ const imageRecord = {
|
|
|
14493
14525
|
"empty": emptyImage,
|
|
14494
14526
|
"busy": busyImage
|
|
14495
14527
|
};
|
|
14496
|
-
const ErrorBlock = createErrorBlock(imageRecord);
|
|
14528
|
+
const ErrorBlock$1 = createErrorBlock(imageRecord);
|
|
14529
|
+
const ErrorBlock = ErrorBlock$1;
|
|
14497
14530
|
const floatingBubble = "";
|
|
14498
14531
|
const classPrefix$P = `adm-floating-bubble`;
|
|
14499
14532
|
const defaultProps$E = {
|
|
14500
14533
|
axis: "y"
|
|
14501
14534
|
};
|
|
14502
|
-
const FloatingBubble = (p) => {
|
|
14535
|
+
const FloatingBubble$1 = (p) => {
|
|
14503
14536
|
const props = mergeProps(defaultProps$E, p);
|
|
14504
14537
|
const boundaryRef = React$1.useRef(null);
|
|
14505
14538
|
const buttonRef = React$1.useRef(null);
|
|
@@ -14575,6 +14608,7 @@ const FloatingBubble = (p) => {
|
|
|
14575
14608
|
ref: buttonRef
|
|
14576
14609
|
}), props.children)));
|
|
14577
14610
|
};
|
|
14611
|
+
const FloatingBubble = FloatingBubble$1;
|
|
14578
14612
|
const floatingPanel = "";
|
|
14579
14613
|
function nearest(arr, target) {
|
|
14580
14614
|
return arr.reduce((pre, cur) => {
|
|
@@ -14584,7 +14618,7 @@ function nearest(arr, target) {
|
|
|
14584
14618
|
const defaultProps$D = {
|
|
14585
14619
|
handleDraggingOfContent: true
|
|
14586
14620
|
};
|
|
14587
|
-
const FloatingPanel = React$1.forwardRef((p, ref) => {
|
|
14621
|
+
const FloatingPanel$1 = React$1.forwardRef((p, ref) => {
|
|
14588
14622
|
var _a, _b;
|
|
14589
14623
|
const props = mergeProps(defaultProps$D, p);
|
|
14590
14624
|
const {
|
|
@@ -14700,6 +14734,7 @@ const FloatingPanel = React$1.forwardRef((p, ref) => {
|
|
|
14700
14734
|
ref: contentRef
|
|
14701
14735
|
}, props.children)));
|
|
14702
14736
|
});
|
|
14737
|
+
const FloatingPanel = FloatingPanel$1;
|
|
14703
14738
|
const index$b = "";
|
|
14704
14739
|
function _extends$1() {
|
|
14705
14740
|
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
@@ -15162,7 +15197,9 @@ function _regeneratorRuntime() {
|
|
|
15162
15197
|
_regeneratorRuntime = function _regeneratorRuntime2() {
|
|
15163
15198
|
return exports2;
|
|
15164
15199
|
};
|
|
15165
|
-
var exports2 = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty,
|
|
15200
|
+
var exports2 = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty2 = Object.defineProperty || function(obj, key, desc) {
|
|
15201
|
+
obj[key] = desc.value;
|
|
15202
|
+
}, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
15166
15203
|
function define(obj, key, value) {
|
|
15167
15204
|
return Object.defineProperty(obj, key, {
|
|
15168
15205
|
value,
|
|
@@ -15180,48 +15217,9 @@ function _regeneratorRuntime() {
|
|
|
15180
15217
|
}
|
|
15181
15218
|
function wrap(innerFn, outerFn, self2, tryLocsList) {
|
|
15182
15219
|
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context2(tryLocsList || []);
|
|
15183
|
-
return generator
|
|
15184
|
-
|
|
15185
|
-
|
|
15186
|
-
if ("executing" === state)
|
|
15187
|
-
throw new Error("Generator is already running");
|
|
15188
|
-
if ("completed" === state) {
|
|
15189
|
-
if ("throw" === method4)
|
|
15190
|
-
throw arg;
|
|
15191
|
-
return doneResult();
|
|
15192
|
-
}
|
|
15193
|
-
for (context2.method = method4, context2.arg = arg; ; ) {
|
|
15194
|
-
var delegate = context2.delegate;
|
|
15195
|
-
if (delegate) {
|
|
15196
|
-
var delegateResult = maybeInvokeDelegate(delegate, context2);
|
|
15197
|
-
if (delegateResult) {
|
|
15198
|
-
if (delegateResult === ContinueSentinel)
|
|
15199
|
-
continue;
|
|
15200
|
-
return delegateResult;
|
|
15201
|
-
}
|
|
15202
|
-
}
|
|
15203
|
-
if ("next" === context2.method)
|
|
15204
|
-
context2.sent = context2._sent = context2.arg;
|
|
15205
|
-
else if ("throw" === context2.method) {
|
|
15206
|
-
if ("suspendedStart" === state)
|
|
15207
|
-
throw state = "completed", context2.arg;
|
|
15208
|
-
context2.dispatchException(context2.arg);
|
|
15209
|
-
} else
|
|
15210
|
-
"return" === context2.method && context2.abrupt("return", context2.arg);
|
|
15211
|
-
state = "executing";
|
|
15212
|
-
var record2 = tryCatch(innerFn2, self3, context2);
|
|
15213
|
-
if ("normal" === record2.type) {
|
|
15214
|
-
if (state = context2.done ? "completed" : "suspendedYield", record2.arg === ContinueSentinel)
|
|
15215
|
-
continue;
|
|
15216
|
-
return {
|
|
15217
|
-
value: record2.arg,
|
|
15218
|
-
done: context2.done
|
|
15219
|
-
};
|
|
15220
|
-
}
|
|
15221
|
-
"throw" === record2.type && (state = "completed", context2.method = "throw", context2.arg = record2.arg);
|
|
15222
|
-
}
|
|
15223
|
-
};
|
|
15224
|
-
}(innerFn, self2, context), generator;
|
|
15220
|
+
return defineProperty2(generator, "_invoke", {
|
|
15221
|
+
value: makeInvokeMethod(innerFn, self2, context)
|
|
15222
|
+
}), generator;
|
|
15225
15223
|
}
|
|
15226
15224
|
function tryCatch(fn, obj, arg) {
|
|
15227
15225
|
try {
|
|
@@ -15276,13 +15274,57 @@ function _regeneratorRuntime() {
|
|
|
15276
15274
|
reject(record2.arg);
|
|
15277
15275
|
}
|
|
15278
15276
|
var previousPromise;
|
|
15279
|
-
this
|
|
15280
|
-
function
|
|
15281
|
-
|
|
15282
|
-
|
|
15283
|
-
|
|
15277
|
+
defineProperty2(this, "_invoke", {
|
|
15278
|
+
value: function value(method4, arg) {
|
|
15279
|
+
function callInvokeWithMethodAndArg() {
|
|
15280
|
+
return new PromiseImpl(function(resolve, reject) {
|
|
15281
|
+
invoke(method4, arg, resolve, reject);
|
|
15282
|
+
});
|
|
15283
|
+
}
|
|
15284
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
15285
|
+
}
|
|
15286
|
+
});
|
|
15287
|
+
}
|
|
15288
|
+
function makeInvokeMethod(innerFn, self2, context) {
|
|
15289
|
+
var state = "suspendedStart";
|
|
15290
|
+
return function(method4, arg) {
|
|
15291
|
+
if ("executing" === state)
|
|
15292
|
+
throw new Error("Generator is already running");
|
|
15293
|
+
if ("completed" === state) {
|
|
15294
|
+
if ("throw" === method4)
|
|
15295
|
+
throw arg;
|
|
15296
|
+
return doneResult();
|
|
15297
|
+
}
|
|
15298
|
+
for (context.method = method4, context.arg = arg; ; ) {
|
|
15299
|
+
var delegate = context.delegate;
|
|
15300
|
+
if (delegate) {
|
|
15301
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
15302
|
+
if (delegateResult) {
|
|
15303
|
+
if (delegateResult === ContinueSentinel)
|
|
15304
|
+
continue;
|
|
15305
|
+
return delegateResult;
|
|
15306
|
+
}
|
|
15307
|
+
}
|
|
15308
|
+
if ("next" === context.method)
|
|
15309
|
+
context.sent = context._sent = context.arg;
|
|
15310
|
+
else if ("throw" === context.method) {
|
|
15311
|
+
if ("suspendedStart" === state)
|
|
15312
|
+
throw state = "completed", context.arg;
|
|
15313
|
+
context.dispatchException(context.arg);
|
|
15314
|
+
} else
|
|
15315
|
+
"return" === context.method && context.abrupt("return", context.arg);
|
|
15316
|
+
state = "executing";
|
|
15317
|
+
var record2 = tryCatch(innerFn, self2, context);
|
|
15318
|
+
if ("normal" === record2.type) {
|
|
15319
|
+
if (state = context.done ? "completed" : "suspendedYield", record2.arg === ContinueSentinel)
|
|
15320
|
+
continue;
|
|
15321
|
+
return {
|
|
15322
|
+
value: record2.arg,
|
|
15323
|
+
done: context.done
|
|
15324
|
+
};
|
|
15325
|
+
}
|
|
15326
|
+
"throw" === record2.type && (state = "completed", context.method = "throw", context.arg = record2.arg);
|
|
15284
15327
|
}
|
|
15285
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
15286
15328
|
};
|
|
15287
15329
|
}
|
|
15288
15330
|
function maybeInvokeDelegate(delegate, context) {
|
|
@@ -15344,7 +15386,13 @@ function _regeneratorRuntime() {
|
|
|
15344
15386
|
done: true
|
|
15345
15387
|
};
|
|
15346
15388
|
}
|
|
15347
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
15389
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty2(Gp, "constructor", {
|
|
15390
|
+
value: GeneratorFunctionPrototype,
|
|
15391
|
+
configurable: true
|
|
15392
|
+
}), defineProperty2(GeneratorFunctionPrototype, "constructor", {
|
|
15393
|
+
value: GeneratorFunction,
|
|
15394
|
+
configurable: true
|
|
15395
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports2.isGeneratorFunction = function(genFun) {
|
|
15348
15396
|
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
15349
15397
|
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
15350
15398
|
}, exports2.mark = function(genFun) {
|
|
@@ -15365,8 +15413,8 @@ function _regeneratorRuntime() {
|
|
|
15365
15413
|
return this;
|
|
15366
15414
|
}), define(Gp, "toString", function() {
|
|
15367
15415
|
return "[object Generator]";
|
|
15368
|
-
}), exports2.keys = function(
|
|
15369
|
-
var keys2 = [];
|
|
15416
|
+
}), exports2.keys = function(val) {
|
|
15417
|
+
var object4 = Object(val), keys2 = [];
|
|
15370
15418
|
for (var key in object4) {
|
|
15371
15419
|
keys2.push(key);
|
|
15372
15420
|
}
|
|
@@ -17184,6 +17232,8 @@ var Field = /* @__PURE__ */ function(_React$Component) {
|
|
|
17184
17232
|
var filteredRules = _this.getRules();
|
|
17185
17233
|
if (triggerName) {
|
|
17186
17234
|
filteredRules = filteredRules.filter(function(rule) {
|
|
17235
|
+
return rule;
|
|
17236
|
+
}).filter(function(rule) {
|
|
17187
17237
|
var validateTrigger = rule.validateTrigger;
|
|
17188
17238
|
if (!validateTrigger) {
|
|
17189
17239
|
return true;
|
|
@@ -19824,9 +19874,10 @@ function isOverflowElement(element) {
|
|
|
19824
19874
|
const {
|
|
19825
19875
|
overflow,
|
|
19826
19876
|
overflowX,
|
|
19827
|
-
overflowY
|
|
19877
|
+
overflowY,
|
|
19878
|
+
display
|
|
19828
19879
|
} = getComputedStyle(element);
|
|
19829
|
-
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
|
|
19880
|
+
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX) && !["inline", "contents"].includes(display);
|
|
19830
19881
|
}
|
|
19831
19882
|
function isTableElement(element) {
|
|
19832
19883
|
return ["table", "td", "th"].includes(getNodeName(element));
|
|
@@ -19834,11 +19885,19 @@ function isTableElement(element) {
|
|
|
19834
19885
|
function isContainingBlock(element) {
|
|
19835
19886
|
const isFirefox = /firefox/i.test(getUAString());
|
|
19836
19887
|
const css = getComputedStyle(element);
|
|
19837
|
-
return css.transform !== "none" || css.perspective !== "none" ||
|
|
19888
|
+
return css.transform !== "none" || css.perspective !== "none" || isFirefox && css.willChange === "filter" || isFirefox && (css.filter ? css.filter !== "none" : false) || ["transform", "perspective"].some((value) => css.willChange.includes(value)) || ["paint", "layout", "strict", "content"].some(
|
|
19889
|
+
(value) => {
|
|
19890
|
+
const contain = css.contain;
|
|
19891
|
+
return contain != null ? contain.includes(value) : false;
|
|
19892
|
+
}
|
|
19893
|
+
);
|
|
19838
19894
|
}
|
|
19839
19895
|
function isLayoutViewport() {
|
|
19840
19896
|
return !/^((?!chrome|android).)*safari/i.test(getUAString());
|
|
19841
19897
|
}
|
|
19898
|
+
function isLastTraversableNode(node) {
|
|
19899
|
+
return ["html", "body", "#document"].includes(getNodeName(node));
|
|
19900
|
+
}
|
|
19842
19901
|
const min = Math.min;
|
|
19843
19902
|
const max = Math.max;
|
|
19844
19903
|
const round$1 = Math.round;
|
|
@@ -19948,7 +20007,7 @@ function getContainingBlock(element) {
|
|
|
19948
20007
|
if (isShadowRoot(currentNode)) {
|
|
19949
20008
|
currentNode = currentNode.host;
|
|
19950
20009
|
}
|
|
19951
|
-
while (isHTMLElement(currentNode) && !
|
|
20010
|
+
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
19952
20011
|
if (isContainingBlock(currentNode)) {
|
|
19953
20012
|
return currentNode;
|
|
19954
20013
|
} else {
|
|
@@ -20062,7 +20121,7 @@ function getDocumentRect(element) {
|
|
|
20062
20121
|
}
|
|
20063
20122
|
function getNearestOverflowAncestor(node) {
|
|
20064
20123
|
const parentNode = getParentNode(node);
|
|
20065
|
-
if (
|
|
20124
|
+
if (isLastTraversableNode(parentNode)) {
|
|
20066
20125
|
return node.ownerDocument.body;
|
|
20067
20126
|
}
|
|
20068
20127
|
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
|
|
@@ -20097,6 +20156,17 @@ function contains(parent, child) {
|
|
|
20097
20156
|
}
|
|
20098
20157
|
return false;
|
|
20099
20158
|
}
|
|
20159
|
+
function getNearestParentCapableOfEscapingClipping(element, clippingAncestors) {
|
|
20160
|
+
let currentNode = element;
|
|
20161
|
+
while (currentNode && !isLastTraversableNode(currentNode) && !clippingAncestors.includes(currentNode)) {
|
|
20162
|
+
if (isElement(currentNode) && ["absolute", "fixed"].includes(getComputedStyle(currentNode).position)) {
|
|
20163
|
+
break;
|
|
20164
|
+
}
|
|
20165
|
+
const parentNode = getParentNode(currentNode);
|
|
20166
|
+
currentNode = isShadowRoot(parentNode) ? parentNode.host : parentNode;
|
|
20167
|
+
}
|
|
20168
|
+
return currentNode;
|
|
20169
|
+
}
|
|
20100
20170
|
function getInnerBoundingClientRect(element, strategy) {
|
|
20101
20171
|
const clientRect = getBoundingClientRect(element, false, strategy === "fixed");
|
|
20102
20172
|
const top = clientRect.top + element.clientTop;
|
|
@@ -20123,12 +20193,20 @@ function getClientRectFromClippingAncestor(element, clippingParent, strategy) {
|
|
|
20123
20193
|
}
|
|
20124
20194
|
function getClippingAncestors(element) {
|
|
20125
20195
|
const clippingAncestors = getOverflowAncestors(element);
|
|
20126
|
-
const
|
|
20127
|
-
|
|
20196
|
+
const nearestEscapableParent = getNearestParentCapableOfEscapingClipping(element, clippingAncestors);
|
|
20197
|
+
let clipperElement = null;
|
|
20198
|
+
if (nearestEscapableParent && isHTMLElement(nearestEscapableParent)) {
|
|
20199
|
+
const offsetParent = getOffsetParent(nearestEscapableParent);
|
|
20200
|
+
if (isOverflowElement(nearestEscapableParent)) {
|
|
20201
|
+
clipperElement = nearestEscapableParent;
|
|
20202
|
+
} else if (isHTMLElement(offsetParent)) {
|
|
20203
|
+
clipperElement = offsetParent;
|
|
20204
|
+
}
|
|
20205
|
+
}
|
|
20128
20206
|
if (!isElement(clipperElement)) {
|
|
20129
20207
|
return [];
|
|
20130
20208
|
}
|
|
20131
|
-
return clippingAncestors.filter((clippingAncestors2) => isElement(clippingAncestors2) && contains(clippingAncestors2, clipperElement) && getNodeName(clippingAncestors2) !== "body");
|
|
20209
|
+
return clippingAncestors.filter((clippingAncestors2) => clipperElement && isElement(clippingAncestors2) && contains(clippingAncestors2, clipperElement) && getNodeName(clippingAncestors2) !== "body");
|
|
20132
20210
|
}
|
|
20133
20211
|
function getClippingRect(_ref) {
|
|
20134
20212
|
let {
|
|
@@ -20186,13 +20264,12 @@ function autoUpdate(reference, floating, update2, options) {
|
|
|
20186
20264
|
}
|
|
20187
20265
|
const {
|
|
20188
20266
|
ancestorScroll: _ancestorScroll = true,
|
|
20189
|
-
ancestorResize
|
|
20267
|
+
ancestorResize = true,
|
|
20190
20268
|
elementResize = true,
|
|
20191
20269
|
animationFrame = false
|
|
20192
20270
|
} = options;
|
|
20193
20271
|
const ancestorScroll = _ancestorScroll && !animationFrame;
|
|
20194
|
-
const
|
|
20195
|
-
const ancestors = ancestorScroll || ancestorResize ? [...isElement(reference) ? getOverflowAncestors(reference) : [], ...getOverflowAncestors(floating)] : [];
|
|
20272
|
+
const ancestors = ancestorScroll || ancestorResize ? [...isElement(reference) ? getOverflowAncestors(reference) : reference.contextElement ? getOverflowAncestors(reference.contextElement) : [], ...getOverflowAncestors(floating)] : [];
|
|
20196
20273
|
ancestors.forEach((ancestor) => {
|
|
20197
20274
|
ancestorScroll && ancestor.addEventListener("scroll", update2, {
|
|
20198
20275
|
passive: true
|
|
@@ -20209,6 +20286,9 @@ function autoUpdate(reference, floating, update2, options) {
|
|
|
20209
20286
|
initialUpdate = false;
|
|
20210
20287
|
});
|
|
20211
20288
|
isElement(reference) && !animationFrame && observer.observe(reference);
|
|
20289
|
+
if (!isElement(reference) && reference.contextElement && !animationFrame) {
|
|
20290
|
+
observer.observe(reference.contextElement);
|
|
20291
|
+
}
|
|
20212
20292
|
observer.observe(floating);
|
|
20213
20293
|
}
|
|
20214
20294
|
let frameId;
|
|
@@ -20859,7 +20939,8 @@ const multiply = (m1, m2) => {
|
|
|
20859
20939
|
const classPrefix$J = `adm-image-viewer`;
|
|
20860
20940
|
const Slide = (props) => {
|
|
20861
20941
|
const {
|
|
20862
|
-
dragLockRef
|
|
20942
|
+
dragLockRef,
|
|
20943
|
+
maxZoom
|
|
20863
20944
|
} = props;
|
|
20864
20945
|
const controlRef = React$1.useRef(null);
|
|
20865
20946
|
const imgRef = React$1.useRef(null);
|
|
@@ -20944,7 +21025,13 @@ const Slide = (props) => {
|
|
|
20944
21025
|
const [d] = state.offset;
|
|
20945
21026
|
if (d < 0)
|
|
20946
21027
|
return;
|
|
20947
|
-
|
|
21028
|
+
let mergedMaxZoom;
|
|
21029
|
+
if (maxZoom === "auto") {
|
|
21030
|
+
mergedMaxZoom = controlSize && imgSize ? Math.max(controlSize.height / imgSize.height, controlSize.width / imgSize.width) : 1;
|
|
21031
|
+
} else {
|
|
21032
|
+
mergedMaxZoom = maxZoom;
|
|
21033
|
+
}
|
|
21034
|
+
const nextZoom = state.last ? bound(d, 1, mergedMaxZoom) : d;
|
|
20948
21035
|
(_a = props.onZoomChange) === null || _a === void 0 ? void 0 : _a.call(props, nextZoom);
|
|
20949
21036
|
if (state.last && nextZoom <= 1) {
|
|
20950
21037
|
api.start({
|
|
@@ -21262,12 +21349,13 @@ const PreviewItem = (props) => {
|
|
|
21262
21349
|
onClick: props.onClick
|
|
21263
21350
|
}), renderLoading(), renderDelete());
|
|
21264
21351
|
};
|
|
21352
|
+
const PreviewItem$1 = PreviewItem;
|
|
21265
21353
|
const space = "";
|
|
21266
21354
|
const classPrefix$F = `adm-space`;
|
|
21267
21355
|
const defaultProps$z = {
|
|
21268
21356
|
direction: "horizontal"
|
|
21269
21357
|
};
|
|
21270
|
-
const Space = (p) => {
|
|
21358
|
+
const Space$1 = (p) => {
|
|
21271
21359
|
const props = mergeProps(defaultProps$z, p);
|
|
21272
21360
|
const {
|
|
21273
21361
|
direction,
|
|
@@ -21288,6 +21376,7 @@ const Space = (p) => {
|
|
|
21288
21376
|
}, child);
|
|
21289
21377
|
})));
|
|
21290
21378
|
};
|
|
21379
|
+
const Space = Space$1;
|
|
21291
21380
|
const classPrefix$E = `adm-image-uploader`;
|
|
21292
21381
|
const defaultProps$y = {
|
|
21293
21382
|
disableUpload: false,
|
|
@@ -21301,7 +21390,7 @@ const defaultProps$y = {
|
|
|
21301
21390
|
showFailed: true,
|
|
21302
21391
|
imageFit: "cover"
|
|
21303
21392
|
};
|
|
21304
|
-
const ImageUploader = (p) => {
|
|
21393
|
+
const ImageUploader$1 = (p) => {
|
|
21305
21394
|
const {
|
|
21306
21395
|
locale
|
|
21307
21396
|
} = useConfig();
|
|
@@ -21338,6 +21427,9 @@ const ImageUploader = (p) => {
|
|
|
21338
21427
|
return transformedFile;
|
|
21339
21428
|
});
|
|
21340
21429
|
}
|
|
21430
|
+
function getFinalTasks(tasks2) {
|
|
21431
|
+
return props.showFailed ? tasks2 : tasks2.filter((task) => task.status !== "fail");
|
|
21432
|
+
}
|
|
21341
21433
|
function onChange(e) {
|
|
21342
21434
|
var _a;
|
|
21343
21435
|
return __awaiter$1(this, void 0, void 0, function* () {
|
|
@@ -21372,7 +21464,7 @@ const ImageUploader = (p) => {
|
|
|
21372
21464
|
status: "pending",
|
|
21373
21465
|
file
|
|
21374
21466
|
}));
|
|
21375
|
-
setTasks((prev) => [...prev, ...newTasks]);
|
|
21467
|
+
setTasks((prev) => [...getFinalTasks(prev), ...newTasks]);
|
|
21376
21468
|
yield Promise.all(newTasks.map((currentTask) => __awaiter$1(this, void 0, void 0, function* () {
|
|
21377
21469
|
try {
|
|
21378
21470
|
const result2 = yield props.upload(currentTask.file);
|
|
@@ -21421,11 +21513,12 @@ const ImageUploader = (p) => {
|
|
|
21421
21513
|
var _a;
|
|
21422
21514
|
(_a = imageViewerHandlerRef.current) === null || _a === void 0 ? void 0 : _a.close();
|
|
21423
21515
|
});
|
|
21424
|
-
const
|
|
21516
|
+
const finalTasks = getFinalTasks(tasks);
|
|
21517
|
+
const showUpload = props.showUpload && (maxCount === 0 || value.length + finalTasks.length < maxCount);
|
|
21425
21518
|
const renderImages = () => {
|
|
21426
21519
|
return value.map((fileItem, index2) => {
|
|
21427
21520
|
var _a, _b;
|
|
21428
|
-
const originNode = React__default.default.createElement(PreviewItem, {
|
|
21521
|
+
const originNode = React__default.default.createElement(PreviewItem$1, {
|
|
21429
21522
|
key: (_a = fileItem.key) !== null && _a !== void 0 ? _a : index2,
|
|
21430
21523
|
url: (_b = fileItem.thumbnailUrl) !== null && _b !== void 0 ? _b : fileItem.url,
|
|
21431
21524
|
deletable: props.deletable,
|
|
@@ -21453,18 +21546,15 @@ const ImageUploader = (p) => {
|
|
|
21453
21546
|
className: `${classPrefix$E}-space`,
|
|
21454
21547
|
wrap: true,
|
|
21455
21548
|
block: true
|
|
21456
|
-
}, renderImages(),
|
|
21457
|
-
|
|
21458
|
-
return null;
|
|
21459
|
-
}
|
|
21460
|
-
return React__default.default.createElement(PreviewItem, {
|
|
21549
|
+
}, renderImages(), finalTasks.map((task) => {
|
|
21550
|
+
return React__default.default.createElement(PreviewItem$1, {
|
|
21461
21551
|
key: task.id,
|
|
21462
21552
|
file: task.file,
|
|
21463
21553
|
deletable: task.status !== "pending",
|
|
21464
21554
|
status: task.status,
|
|
21465
21555
|
imageFit: props.imageFit,
|
|
21466
21556
|
onDelete: () => {
|
|
21467
|
-
setTasks(
|
|
21557
|
+
setTasks((prev) => prev.filter((x) => x.id !== task.id));
|
|
21468
21558
|
}
|
|
21469
21559
|
});
|
|
21470
21560
|
}), showUpload && React__default.default.createElement("div", {
|
|
@@ -21486,6 +21576,7 @@ const ImageUploader = (p) => {
|
|
|
21486
21576
|
})))));
|
|
21487
21577
|
};
|
|
21488
21578
|
const imageUploader = "";
|
|
21579
|
+
const ImageUploader = ImageUploader$1;
|
|
21489
21580
|
const indexBar = "";
|
|
21490
21581
|
const Panel = () => null;
|
|
21491
21582
|
const classPrefix$D = `adm-index-bar`;
|
|
@@ -21667,7 +21758,7 @@ const defaultProps$w = {
|
|
|
21667
21758
|
retry
|
|
21668
21759
|
})
|
|
21669
21760
|
};
|
|
21670
|
-
const InfiniteScroll = (p) => {
|
|
21761
|
+
const InfiniteScroll$1 = (p) => {
|
|
21671
21762
|
const props = mergeProps(defaultProps$w, p);
|
|
21672
21763
|
const [failed, setFailed] = React$1.useState(false);
|
|
21673
21764
|
const doLoadMore = useLockFn((isRetry) => __awaiter$1(void 0, void 0, void 0, function* () {
|
|
@@ -21757,15 +21848,16 @@ const InfiniteScrollContent = (props) => {
|
|
|
21757
21848
|
}
|
|
21758
21849
|
}, locale.InfiniteScroll.retry));
|
|
21759
21850
|
}
|
|
21760
|
-
return React__default.default.createElement(React__default.default.Fragment, null, React__default.default.createElement("span", null, locale.common.loading), React__default.default.createElement(DotLoading, null));
|
|
21851
|
+
return React__default.default.createElement(React__default.default.Fragment, null, React__default.default.createElement("span", null, locale.common.loading), React__default.default.createElement(DotLoading$1, null));
|
|
21761
21852
|
};
|
|
21853
|
+
const InfiniteScroll = InfiniteScroll$1;
|
|
21762
21854
|
const input = "";
|
|
21763
21855
|
const classPrefix$A = `adm-input`;
|
|
21764
21856
|
const defaultProps$v = {
|
|
21765
21857
|
defaultValue: "",
|
|
21766
21858
|
onlyShowClearWhenFocus: true
|
|
21767
21859
|
};
|
|
21768
|
-
const Input = React$1.forwardRef((p, ref) => {
|
|
21860
|
+
const Input$1 = React$1.forwardRef((p, ref) => {
|
|
21769
21861
|
const props = mergeProps(defaultProps$v, p);
|
|
21770
21862
|
const [value, setValue2] = usePropsValue(props);
|
|
21771
21863
|
const [hasFocus, setHasFocus] = React$1.useState(false);
|
|
@@ -21896,6 +21988,7 @@ const Input = React$1.forwardRef((p, ref) => {
|
|
|
21896
21988
|
"aria-label": locale.Input.clear
|
|
21897
21989
|
}, React__default.default.createElement(CloseCircleFill, null))));
|
|
21898
21990
|
});
|
|
21991
|
+
const Input = Input$1;
|
|
21899
21992
|
const jumboTabs = "";
|
|
21900
21993
|
const classPrefix$z = `adm-jumbo-tabs`;
|
|
21901
21994
|
const JumboTab = () => {
|
|
@@ -21992,6 +22085,7 @@ const JumboTabs = (props) => {
|
|
|
21992
22085
|
const index$8 = attachPropertiesToComponent(JumboTabs, {
|
|
21993
22086
|
Tab: JumboTab
|
|
21994
22087
|
});
|
|
22088
|
+
const DotLoading = DotLoading$2;
|
|
21995
22089
|
const modal = "";
|
|
21996
22090
|
const ModalActionButton = (props) => {
|
|
21997
22091
|
const {
|
|
@@ -22162,7 +22256,7 @@ const classPrefix$y = `adm-nav-bar`;
|
|
|
22162
22256
|
const defaultProps$s = {
|
|
22163
22257
|
backArrow: true
|
|
22164
22258
|
};
|
|
22165
|
-
const NavBar = (p) => {
|
|
22259
|
+
const NavBar$1 = (p) => {
|
|
22166
22260
|
const props = mergeProps(defaultProps$s, p);
|
|
22167
22261
|
const {
|
|
22168
22262
|
back,
|
|
@@ -22186,6 +22280,7 @@ const NavBar = (p) => {
|
|
|
22186
22280
|
className: `${classPrefix$y}-right`
|
|
22187
22281
|
}, props.right)));
|
|
22188
22282
|
};
|
|
22283
|
+
const NavBar = NavBar$1;
|
|
22189
22284
|
const noticeBar = "";
|
|
22190
22285
|
const classPrefix$x = `adm-notice-bar`;
|
|
22191
22286
|
const defaultProps$r = {
|
|
@@ -22194,7 +22289,7 @@ const defaultProps$r = {
|
|
|
22194
22289
|
speed: 50,
|
|
22195
22290
|
icon: React__default.default.createElement(SoundOutline, null)
|
|
22196
22291
|
};
|
|
22197
|
-
const NoticeBar = React$1.memo((p) => {
|
|
22292
|
+
const NoticeBar$1 = React$1.memo((p) => {
|
|
22198
22293
|
const props = mergeProps(defaultProps$r, p);
|
|
22199
22294
|
const containerRef = React$1.useRef(null);
|
|
22200
22295
|
const textRef = React$1.useRef(null);
|
|
@@ -22272,6 +22367,7 @@ const NoticeBar = React$1.memo((p) => {
|
|
|
22272
22367
|
className: `${classPrefix$x}-close-icon`
|
|
22273
22368
|
})))));
|
|
22274
22369
|
});
|
|
22370
|
+
const NoticeBar = NoticeBar$1;
|
|
22275
22371
|
const numberKeyboard = "";
|
|
22276
22372
|
function shuffle(array4) {
|
|
22277
22373
|
const result2 = [...array4];
|
|
@@ -22292,7 +22388,7 @@ const defaultProps$q = {
|
|
|
22292
22388
|
destroyOnClose: false,
|
|
22293
22389
|
forceRender: false
|
|
22294
22390
|
};
|
|
22295
|
-
const NumberKeyboard = (p) => {
|
|
22391
|
+
const NumberKeyboard$1 = (p) => {
|
|
22296
22392
|
const props = mergeProps(defaultProps$q, p);
|
|
22297
22393
|
const {
|
|
22298
22394
|
visible,
|
|
@@ -22447,13 +22543,14 @@ const NumberKeyboard = (p) => {
|
|
|
22447
22543
|
position: "bottom"
|
|
22448
22544
|
})))));
|
|
22449
22545
|
};
|
|
22546
|
+
const NumberKeyboard = NumberKeyboard$1;
|
|
22450
22547
|
const pageIndicator = "";
|
|
22451
22548
|
const classPrefix$v = `adm-page-indicator`;
|
|
22452
22549
|
const defaultProps$p = {
|
|
22453
22550
|
color: "primary",
|
|
22454
22551
|
direction: "horizontal"
|
|
22455
22552
|
};
|
|
22456
|
-
const PageIndicator = React$1.memo((p) => {
|
|
22553
|
+
const PageIndicator$1 = React$1.memo((p) => {
|
|
22457
22554
|
const props = mergeProps(defaultProps$p, p);
|
|
22458
22555
|
const dots = [];
|
|
22459
22556
|
for (let i = 0; i < props.total; i++) {
|
|
@@ -22468,6 +22565,7 @@ const PageIndicator = React$1.memo((p) => {
|
|
|
22468
22565
|
className: classNames(classPrefix$v, `${classPrefix$v}-${props.direction}`, `${classPrefix$v}-color-${props.color}`)
|
|
22469
22566
|
}, dots));
|
|
22470
22567
|
});
|
|
22568
|
+
const PageIndicator = PageIndicator$1;
|
|
22471
22569
|
const passcodeInput = "";
|
|
22472
22570
|
const classPrefix$u = "adm-passcode-input";
|
|
22473
22571
|
const defaultProps$o = {
|
|
@@ -22478,7 +22576,7 @@ const defaultProps$o = {
|
|
|
22478
22576
|
seperated: false,
|
|
22479
22577
|
caret: true
|
|
22480
22578
|
};
|
|
22481
|
-
const PasscodeInput = React$1.forwardRef((p, ref) => {
|
|
22579
|
+
const PasscodeInput$1 = React$1.forwardRef((p, ref) => {
|
|
22482
22580
|
const props = mergeProps(defaultProps$o, p);
|
|
22483
22581
|
const cellLength = props.length > 0 && props.length < Infinity ? Math.floor(props.length) : defaultProps$o.length;
|
|
22484
22582
|
const {
|
|
@@ -22592,6 +22690,7 @@ const PasscodeInput = React$1.forwardRef((p, ref) => {
|
|
|
22592
22690
|
}
|
|
22593
22691
|
}));
|
|
22594
22692
|
});
|
|
22693
|
+
const PasscodeInput = PasscodeInput$1;
|
|
22595
22694
|
const progressBar = "";
|
|
22596
22695
|
const classPrefix$t = `adm-progress-bar`;
|
|
22597
22696
|
const defaultProps$n = {
|
|
@@ -22599,7 +22698,7 @@ const defaultProps$n = {
|
|
|
22599
22698
|
rounded: true,
|
|
22600
22699
|
text: false
|
|
22601
22700
|
};
|
|
22602
|
-
const ProgressBar = (p) => {
|
|
22701
|
+
const ProgressBar$1 = (p) => {
|
|
22603
22702
|
const props = mergeProps(defaultProps$n, p);
|
|
22604
22703
|
const fillStyle = {
|
|
22605
22704
|
width: `${props.percent}%`
|
|
@@ -22624,9 +22723,10 @@ const ProgressBar = (p) => {
|
|
|
22624
22723
|
className: `${classPrefix$t}-text`
|
|
22625
22724
|
}, textElement)));
|
|
22626
22725
|
};
|
|
22726
|
+
const ProgressBar = ProgressBar$1;
|
|
22627
22727
|
const progressCircle = "";
|
|
22628
22728
|
const classPrefix$s = `adm-progress-circle`;
|
|
22629
|
-
const ProgressCircle = (p) => {
|
|
22729
|
+
const ProgressCircle$1 = (p) => {
|
|
22630
22730
|
const props = mergeProps({
|
|
22631
22731
|
percent: 0
|
|
22632
22732
|
}, p);
|
|
@@ -22650,6 +22750,7 @@ const ProgressCircle = (p) => {
|
|
|
22650
22750
|
className: `${classPrefix$s}-info`
|
|
22651
22751
|
}, props.children))));
|
|
22652
22752
|
};
|
|
22753
|
+
const ProgressCircle = ProgressCircle$1;
|
|
22653
22754
|
const pullToRefresh = "";
|
|
22654
22755
|
const sleep = (time) => new Promise((resolve) => setTimeout(resolve, time));
|
|
22655
22756
|
const classPrefix$r = `adm-pull-to-refresh`;
|
|
@@ -22663,7 +22764,7 @@ const defaultProps$m = {
|
|
|
22663
22764
|
onRefresh: () => {
|
|
22664
22765
|
}
|
|
22665
22766
|
};
|
|
22666
|
-
const PullToRefresh = (p) => {
|
|
22767
|
+
const PullToRefresh$1 = (p) => {
|
|
22667
22768
|
var _a, _b;
|
|
22668
22769
|
const {
|
|
22669
22770
|
locale
|
|
@@ -22818,6 +22919,7 @@ const PullToRefresh = (p) => {
|
|
|
22818
22919
|
className: `${classPrefix$r}-content`
|
|
22819
22920
|
}, props.children));
|
|
22820
22921
|
};
|
|
22922
|
+
const PullToRefresh = PullToRefresh$1;
|
|
22821
22923
|
const radio = "";
|
|
22822
22924
|
const RadioGroupContext = React$1.createContext(null);
|
|
22823
22925
|
const defaultProps$l = {
|
|
@@ -22869,7 +22971,7 @@ const Radio = (p) => {
|
|
|
22869
22971
|
value
|
|
22870
22972
|
} = props;
|
|
22871
22973
|
if (groupContext && value !== void 0) {
|
|
22872
|
-
{
|
|
22974
|
+
if (isDev) {
|
|
22873
22975
|
if (p.checked !== void 0) {
|
|
22874
22976
|
devWarning("Radio", "When used within `Radio.Group`, the `checked` prop of `Radio` will not work.");
|
|
22875
22977
|
}
|
|
@@ -22942,7 +23044,7 @@ const defaultProps$j = {
|
|
|
22942
23044
|
readOnly: false,
|
|
22943
23045
|
allowClear: true
|
|
22944
23046
|
};
|
|
22945
|
-
const Rate = (p) => {
|
|
23047
|
+
const Rate$1 = (p) => {
|
|
22946
23048
|
const props = mergeProps(defaultProps$j, p);
|
|
22947
23049
|
const [value, setValue2] = usePropsValue(props);
|
|
22948
23050
|
const containerRef = React$1.useRef(null);
|
|
@@ -22999,6 +23101,7 @@ const Rate = (p) => {
|
|
|
22999
23101
|
className: classNames(`${classPrefix$p}-box`)
|
|
23000
23102
|
}, props.allowHalf && renderStar(i + 0.5, true), renderStar(i + 1, false)))));
|
|
23001
23103
|
};
|
|
23104
|
+
const Rate = Rate$1;
|
|
23002
23105
|
const result = "";
|
|
23003
23106
|
const classPrefix$o = `adm-result`;
|
|
23004
23107
|
const iconRecord$1 = {
|
|
@@ -23011,7 +23114,7 @@ const iconRecord$1 = {
|
|
|
23011
23114
|
const defaultProps$i = {
|
|
23012
23115
|
status: "info"
|
|
23013
23116
|
};
|
|
23014
|
-
const Result = (p) => {
|
|
23117
|
+
const Result$1 = (p) => {
|
|
23015
23118
|
const props = mergeProps(defaultProps$i, p);
|
|
23016
23119
|
const {
|
|
23017
23120
|
status,
|
|
@@ -23032,6 +23135,7 @@ const Result = (p) => {
|
|
|
23032
23135
|
className: `${classPrefix$o}-description`
|
|
23033
23136
|
}, description) : null));
|
|
23034
23137
|
};
|
|
23138
|
+
const Result = Result$1;
|
|
23035
23139
|
const resultPage = "";
|
|
23036
23140
|
const classPrefix$n = `adm-result-page`;
|
|
23037
23141
|
const iconRecord = {
|
|
@@ -23128,7 +23232,7 @@ const defaultProps$g = {
|
|
|
23128
23232
|
clearOnCancel: true,
|
|
23129
23233
|
icon: React__default.default.createElement(SearchOutline, null)
|
|
23130
23234
|
};
|
|
23131
|
-
const SearchBar = React$1.forwardRef((p, ref) => {
|
|
23235
|
+
const SearchBar$1 = React$1.forwardRef((p, ref) => {
|
|
23132
23236
|
const {
|
|
23133
23237
|
locale
|
|
23134
23238
|
} = useConfig();
|
|
@@ -23230,6 +23334,7 @@ const SearchBar = React$1.forwardRef((p, ref) => {
|
|
|
23230
23334
|
}
|
|
23231
23335
|
})), renderCancelButton()));
|
|
23232
23336
|
});
|
|
23337
|
+
const SearchBar = SearchBar$1;
|
|
23233
23338
|
const selector = "";
|
|
23234
23339
|
const CheckMark = React$1.memo(() => {
|
|
23235
23340
|
return React__default.default.createElement("svg", {
|
|
@@ -23265,7 +23370,7 @@ const defaultProps$f = {
|
|
|
23265
23370
|
defaultValue: [],
|
|
23266
23371
|
showCheckMark: true
|
|
23267
23372
|
};
|
|
23268
|
-
const Selector = (p) => {
|
|
23373
|
+
const Selector$1 = (p) => {
|
|
23269
23374
|
const props = mergeProps(defaultProps$f, p);
|
|
23270
23375
|
const [value, setValue2] = usePropsValue({
|
|
23271
23376
|
value: props.value,
|
|
@@ -23317,6 +23422,7 @@ const Selector = (p) => {
|
|
|
23317
23422
|
columns: props.columns
|
|
23318
23423
|
}, items)));
|
|
23319
23424
|
};
|
|
23425
|
+
const Selector = Selector$1;
|
|
23320
23426
|
const sideBar = "";
|
|
23321
23427
|
const Corner = React$1.memo((props) => withNativeProps(props, React__default.default.createElement("svg", {
|
|
23322
23428
|
viewBox: "0 0 30 30"
|
|
@@ -23434,6 +23540,7 @@ const Ticks = ({
|
|
|
23434
23540
|
className: `${classPrefix$i}-ticks`
|
|
23435
23541
|
}, elements);
|
|
23436
23542
|
};
|
|
23543
|
+
const Ticks$1 = Ticks;
|
|
23437
23544
|
const classPrefix$h = `adm-slider-mark`;
|
|
23438
23545
|
const Marks = ({
|
|
23439
23546
|
marks,
|
|
@@ -23467,6 +23574,7 @@ const Marks = ({
|
|
|
23467
23574
|
className: classPrefix$h
|
|
23468
23575
|
}, elements);
|
|
23469
23576
|
};
|
|
23577
|
+
const Marks$1 = Marks;
|
|
23470
23578
|
const ThumbIcon = (props) => {
|
|
23471
23579
|
return withNativeProps(props, React__default.default.createElement("svg", {
|
|
23472
23580
|
viewBox: "0 0 24 24",
|
|
@@ -23550,7 +23658,7 @@ const Thumb = (props) => {
|
|
|
23550
23658
|
"aria-valuemin": min2,
|
|
23551
23659
|
"aria-valuenow": value,
|
|
23552
23660
|
"aria-disabled": disabled
|
|
23553
|
-
}), renderPopoverContent ? React__default.default.createElement(Popover
|
|
23661
|
+
}), renderPopoverContent ? React__default.default.createElement(Popover, {
|
|
23554
23662
|
content: renderPopoverContent(value),
|
|
23555
23663
|
placement: "top",
|
|
23556
23664
|
visible: residentPopover || dragging,
|
|
@@ -23558,6 +23666,7 @@ const Thumb = (props) => {
|
|
|
23558
23666
|
mode: "dark"
|
|
23559
23667
|
}, thumbElement) : thumbElement);
|
|
23560
23668
|
};
|
|
23669
|
+
const Thumb$1 = Thumb;
|
|
23561
23670
|
var DP = 20, RM = 1, MAX_DP = 1e6, MAX_POWER = 1e6, NE = -7, PE = 21, STRICT = false, NAME = "[big.js] ", INVALID = NAME + "Invalid ", INVALID_DP = INVALID + "decimal places", INVALID_RM = INVALID + "rounding mode", DIV_BY_ZERO = NAME + "Division by zero", P = {}, UNDEFINED = void 0, NUMERIC = /^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;
|
|
23562
23671
|
function _Big_() {
|
|
23563
23672
|
function Big2(n) {
|
|
@@ -24077,7 +24186,7 @@ const defaultProps$e = {
|
|
|
24077
24186
|
popover: false,
|
|
24078
24187
|
residentPopover: false
|
|
24079
24188
|
};
|
|
24080
|
-
const Slider = (p) => {
|
|
24189
|
+
const Slider$1 = (p) => {
|
|
24081
24190
|
var _a;
|
|
24082
24191
|
const props = mergeProps(defaultProps$e, p);
|
|
24083
24192
|
const {
|
|
@@ -24132,7 +24241,7 @@ const Slider = (p) => {
|
|
|
24132
24241
|
return Object.keys(marks).map(parseFloat).sort((a, b) => a - b);
|
|
24133
24242
|
} else {
|
|
24134
24243
|
const points = [];
|
|
24135
|
-
for (let i = Big(min2); i.
|
|
24244
|
+
for (let i = Big(min2); i.lte(max2); i = i.plus(step)) {
|
|
24136
24245
|
points.push(i.toNumber());
|
|
24137
24246
|
}
|
|
24138
24247
|
return points;
|
|
@@ -24178,7 +24287,7 @@ const Slider = (p) => {
|
|
|
24178
24287
|
};
|
|
24179
24288
|
const valueBeforeDragRef = React$1.useRef();
|
|
24180
24289
|
const renderThumb = (index2) => {
|
|
24181
|
-
return React__default.default.createElement(Thumb, {
|
|
24290
|
+
return React__default.default.createElement(Thumb$1, {
|
|
24182
24291
|
key: index2,
|
|
24183
24292
|
value: sliderValue[index2],
|
|
24184
24293
|
min: min2,
|
|
@@ -24227,13 +24336,13 @@ const Slider = (p) => {
|
|
|
24227
24336
|
width: fillSize,
|
|
24228
24337
|
left: fillStart
|
|
24229
24338
|
}
|
|
24230
|
-
}), props.ticks && React__default.default.createElement(Ticks, {
|
|
24339
|
+
}), props.ticks && React__default.default.createElement(Ticks$1, {
|
|
24231
24340
|
points: pointList,
|
|
24232
24341
|
min: min2,
|
|
24233
24342
|
max: max2,
|
|
24234
24343
|
lowerBound: sliderValue[0],
|
|
24235
24344
|
upperBound: sliderValue[1]
|
|
24236
|
-
}), props.range && renderThumb(0), renderThumb(1))), marks && React__default.default.createElement(Marks, {
|
|
24345
|
+
}), props.range && renderThumb(0), renderThumb(1))), marks && React__default.default.createElement(Marks$1, {
|
|
24237
24346
|
min: min2,
|
|
24238
24347
|
max: max2,
|
|
24239
24348
|
marks,
|
|
@@ -24241,6 +24350,7 @@ const Slider = (p) => {
|
|
|
24241
24350
|
upperBound: sliderValue[1]
|
|
24242
24351
|
})));
|
|
24243
24352
|
};
|
|
24353
|
+
const Slider = Slider$1;
|
|
24244
24354
|
const stepper = "";
|
|
24245
24355
|
const classPrefix$e = `adm-stepper`;
|
|
24246
24356
|
const defaultProps$d = {
|
|
@@ -24249,7 +24359,7 @@ const defaultProps$d = {
|
|
|
24249
24359
|
disabled: false,
|
|
24250
24360
|
allowEmpty: false
|
|
24251
24361
|
};
|
|
24252
|
-
const Stepper = (p) => {
|
|
24362
|
+
const Stepper$1 = (p) => {
|
|
24253
24363
|
const props = mergeProps(defaultProps$d, p);
|
|
24254
24364
|
const {
|
|
24255
24365
|
disabled,
|
|
@@ -24383,6 +24493,7 @@ function convertTextToValue(text) {
|
|
|
24383
24493
|
return null;
|
|
24384
24494
|
return parseFloat(text);
|
|
24385
24495
|
}
|
|
24496
|
+
const Stepper = Stepper$1;
|
|
24386
24497
|
const steps = "";
|
|
24387
24498
|
const classPrefix$d = `adm-step`;
|
|
24388
24499
|
const Step = (props) => {
|
|
@@ -24455,7 +24566,7 @@ const defaultProps$b = {
|
|
|
24455
24566
|
closeOnAction: true,
|
|
24456
24567
|
stopPropagation: []
|
|
24457
24568
|
};
|
|
24458
|
-
const SwipeAction = React$1.forwardRef((p, ref) => {
|
|
24569
|
+
const SwipeAction$1 = React$1.forwardRef((p, ref) => {
|
|
24459
24570
|
const props = mergeProps(defaultProps$b, p);
|
|
24460
24571
|
const rootRef = React$1.useRef(null);
|
|
24461
24572
|
const leftRef = React$1.useRef(null);
|
|
@@ -24645,6 +24756,7 @@ const colorRecord$1 = {
|
|
|
24645
24756
|
warning: "var(--adm-color-warning)",
|
|
24646
24757
|
danger: "var(--adm-color-danger)"
|
|
24647
24758
|
};
|
|
24759
|
+
const SwipeAction = SwipeAction$1;
|
|
24648
24760
|
const swiper = "";
|
|
24649
24761
|
const SwiperItem = (props) => {
|
|
24650
24762
|
return withNativeProps(props, React__default.default.createElement("div", {
|
|
@@ -24954,7 +25066,7 @@ const classPrefix$9 = `adm-switch`;
|
|
|
24954
25066
|
const defaultProps$9 = {
|
|
24955
25067
|
defaultChecked: false
|
|
24956
25068
|
};
|
|
24957
|
-
const Switch = (p) => {
|
|
25069
|
+
const Switch$1 = (p) => {
|
|
24958
25070
|
const props = mergeProps(defaultProps$9, p);
|
|
24959
25071
|
const disabled = props.disabled || props.loading || false;
|
|
24960
25072
|
const [changing, setChanging] = React$1.useState(false);
|
|
@@ -25015,6 +25127,7 @@ const Switch = (p) => {
|
|
|
25015
25127
|
className: `${classPrefix$9}-inner`
|
|
25016
25128
|
}, checked ? props.checkedText : props.uncheckedText))));
|
|
25017
25129
|
};
|
|
25130
|
+
const Switch = Switch$1;
|
|
25018
25131
|
const tabBar = "";
|
|
25019
25132
|
const TabBarItem = () => {
|
|
25020
25133
|
return null;
|
|
@@ -25110,7 +25223,7 @@ const defaultProps$7 = {
|
|
|
25110
25223
|
fill: "solid",
|
|
25111
25224
|
round: false
|
|
25112
25225
|
};
|
|
25113
|
-
const Tag = (p) => {
|
|
25226
|
+
const Tag$1 = (p) => {
|
|
25114
25227
|
var _a;
|
|
25115
25228
|
const props = mergeProps(defaultProps$7, p);
|
|
25116
25229
|
const color = (_a = colorRecord[props.color]) !== null && _a !== void 0 ? _a : props.color;
|
|
@@ -25127,6 +25240,7 @@ const Tag = (p) => {
|
|
|
25127
25240
|
})
|
|
25128
25241
|
}, props.children));
|
|
25129
25242
|
};
|
|
25243
|
+
const Tag = Tag$1;
|
|
25130
25244
|
const textArea = "";
|
|
25131
25245
|
const classPrefix$6 = "adm-text-area";
|
|
25132
25246
|
const defaultProps$6 = {
|
|
@@ -25135,7 +25249,7 @@ const defaultProps$6 = {
|
|
|
25135
25249
|
autoSize: false,
|
|
25136
25250
|
defaultValue: ""
|
|
25137
25251
|
};
|
|
25138
|
-
const TextArea = React$1.forwardRef((p, ref) => {
|
|
25252
|
+
const TextArea$1 = React$1.forwardRef((p, ref) => {
|
|
25139
25253
|
const props = mergeProps(defaultProps$6, p);
|
|
25140
25254
|
const {
|
|
25141
25255
|
autoSize,
|
|
@@ -25235,7 +25349,8 @@ const TextArea = React$1.forwardRef((p, ref) => {
|
|
|
25235
25349
|
onClick: props.onClick
|
|
25236
25350
|
}), count));
|
|
25237
25351
|
});
|
|
25238
|
-
TextArea.defaultProps = defaultProps$6;
|
|
25352
|
+
TextArea$1.defaultProps = defaultProps$6;
|
|
25353
|
+
const TextArea = TextArea$1;
|
|
25239
25354
|
const toast = "";
|
|
25240
25355
|
const classPrefix$5 = `adm-toast`;
|
|
25241
25356
|
const defaultProps$5 = {
|
|
@@ -25356,6 +25471,7 @@ const Toast = {
|
|
|
25356
25471
|
clear,
|
|
25357
25472
|
config
|
|
25358
25473
|
};
|
|
25474
|
+
const Toast$1 = Toast;
|
|
25359
25475
|
const treeSelect = "";
|
|
25360
25476
|
function getTreeDeep(treeData, childrenName = "children") {
|
|
25361
25477
|
const walker = (tree) => {
|
|
@@ -25707,7 +25823,7 @@ const classPrefix$2 = "adm-virtual-input";
|
|
|
25707
25823
|
const defaultProps$2 = {
|
|
25708
25824
|
defaultValue: ""
|
|
25709
25825
|
};
|
|
25710
|
-
const VirtualInput = React$1.forwardRef((p, ref) => {
|
|
25826
|
+
const VirtualInput$1 = React$1.forwardRef((p, ref) => {
|
|
25711
25827
|
const props = mergeProps(defaultProps$2, p);
|
|
25712
25828
|
const [value, setValue2] = usePropsValue(props);
|
|
25713
25829
|
const rootRef = React$1.useRef(null);
|
|
@@ -25801,12 +25917,13 @@ const VirtualInput = React$1.forwardRef((p, ref) => {
|
|
|
25801
25917
|
className: `${classPrefix$2}-placeholder`
|
|
25802
25918
|
}, props.placeholder), keyboardElement));
|
|
25803
25919
|
});
|
|
25920
|
+
const VirtualInput = VirtualInput$1;
|
|
25804
25921
|
const waterMark = "";
|
|
25805
25922
|
const classPrefix$1 = `adm-water-mark`;
|
|
25806
25923
|
const defaultProps$1 = {
|
|
25807
25924
|
fullPage: true
|
|
25808
25925
|
};
|
|
25809
|
-
const WaterMark = (p) => {
|
|
25926
|
+
const WaterMark$1 = (p) => {
|
|
25810
25927
|
const props = mergeProps(defaultProps$1, p);
|
|
25811
25928
|
const {
|
|
25812
25929
|
zIndex = 2e3,
|
|
@@ -25876,6 +25993,7 @@ const WaterMark = (p) => {
|
|
|
25876
25993
|
}
|
|
25877
25994
|
}));
|
|
25878
25995
|
};
|
|
25996
|
+
const WaterMark = WaterMark$1;
|
|
25879
25997
|
const footer = "";
|
|
25880
25998
|
const classPrefix = `adm-footer`;
|
|
25881
25999
|
const defaultProps = {
|
|
@@ -25884,7 +26002,7 @@ const defaultProps = {
|
|
|
25884
26002
|
content: "",
|
|
25885
26003
|
chips: []
|
|
25886
26004
|
};
|
|
25887
|
-
const Footer = (p) => {
|
|
26005
|
+
const Footer$1 = (p) => {
|
|
25888
26006
|
const props = mergeProps(defaultProps, p);
|
|
25889
26007
|
const {
|
|
25890
26008
|
label,
|
|
@@ -25909,7 +26027,7 @@ const Footer = (p) => {
|
|
|
25909
26027
|
className: classNames(classPrefix)
|
|
25910
26028
|
}, label && React__default.default.createElement("div", {
|
|
25911
26029
|
className: `${classPrefix}-label`
|
|
25912
|
-
}, React__default.default.createElement(Divider, null, label)), links && links.length > 0 && React__default.default.createElement("div", {
|
|
26030
|
+
}, React__default.default.createElement(Divider$1, null, label)), links && links.length > 0 && React__default.default.createElement("div", {
|
|
25913
26031
|
className: `${classPrefix}-links`
|
|
25914
26032
|
}, links.map((link, index2) => {
|
|
25915
26033
|
return React__default.default.createElement(React__default.default.Fragment, {
|
|
@@ -25918,7 +26036,7 @@ const Footer = (p) => {
|
|
|
25918
26036
|
href: link.href,
|
|
25919
26037
|
rel: "noopener noreferrer",
|
|
25920
26038
|
onClick: (event) => clickLinkItem(link, index2, event)
|
|
25921
|
-
}, link.text), index2 !== links.length - 1 && React__default.default.createElement(Divider, {
|
|
26039
|
+
}, link.text), index2 !== links.length - 1 && React__default.default.createElement(Divider$1, {
|
|
25922
26040
|
direction: "vertical"
|
|
25923
26041
|
}));
|
|
25924
26042
|
})), content && React__default.default.createElement("div", {
|
|
@@ -25935,6 +26053,7 @@ const Footer = (p) => {
|
|
|
25935
26053
|
}, chip.text);
|
|
25936
26054
|
}))));
|
|
25937
26055
|
};
|
|
26056
|
+
const Footer = Footer$1;
|
|
25938
26057
|
exports.ActionSheet = index$j;
|
|
25939
26058
|
exports.AutoCenter = AutoCenter;
|
|
25940
26059
|
exports.Avatar = Avatar;
|
|
@@ -25956,7 +26075,7 @@ exports.DatePicker = index$e;
|
|
|
25956
26075
|
exports.DatePickerView = DatePickerView;
|
|
25957
26076
|
exports.Dialog = index$d;
|
|
25958
26077
|
exports.Divider = Divider;
|
|
25959
|
-
exports.DotLoading = DotLoading;
|
|
26078
|
+
exports.DotLoading = DotLoading$1;
|
|
25960
26079
|
exports.Dropdown = index$c;
|
|
25961
26080
|
exports.Ellipsis = Ellipsis;
|
|
25962
26081
|
exports.Empty = Empty;
|
|
@@ -26011,7 +26130,7 @@ exports.TabBar = index$1;
|
|
|
26011
26130
|
exports.Tabs = Tabs;
|
|
26012
26131
|
exports.Tag = Tag;
|
|
26013
26132
|
exports.TextArea = TextArea;
|
|
26014
|
-
exports.Toast = Toast;
|
|
26133
|
+
exports.Toast = Toast$1;
|
|
26015
26134
|
exports.TreeSelect = index;
|
|
26016
26135
|
exports.VirtualInput = VirtualInput;
|
|
26017
26136
|
exports.WaterMark = WaterMark;
|