antd-mobile 5.33.0 → 5.33.2
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/README.md +1 -1
- package/2x/bundle/antd-mobile.cjs.development.js +1843 -1829
- package/2x/bundle/antd-mobile.cjs.js +9 -9
- package/2x/bundle/antd-mobile.es.development.js +1025 -1007
- package/2x/bundle/antd-mobile.es.js +5315 -5259
- package/2x/bundle/antd-mobile.umd.development.js +2194 -2180
- package/2x/bundle/antd-mobile.umd.js +9 -9
- package/2x/bundle/style.css +4 -4
- package/2x/cjs/components/calendar-picker/calendar-picker.d.ts +5 -0
- package/2x/cjs/components/calendar-picker/calendar-picker.js +5 -3
- package/2x/cjs/components/cascader/cascader.js +6 -1
- package/2x/cjs/components/cascader-view/cascader-view.js +4 -1
- package/2x/cjs/components/cascader-view/use-cascader-value-extend.d.ts +3 -2
- package/2x/cjs/components/cascader-view/use-cascader-value-extend.js +9 -5
- package/2x/cjs/components/dropdown/dropdown.js +3 -1
- package/2x/cjs/components/image-viewer/image-viewer.d.ts +4 -0
- package/2x/cjs/components/image-viewer/image-viewer.js +11 -8
- package/2x/cjs/components/mask/mask.js +1 -0
- package/2x/cjs/components/number-keyboard/number-keyboard.js +15 -7
- package/2x/cjs/components/popover/popover-menu.js +3 -1
- package/2x/cjs/components/popover/popover.js +5 -5
- package/2x/cjs/components/popup/popup.js +1 -0
- package/2x/cjs/components/switch/switch.css +2 -2
- package/2x/cjs/components/tabs/tabs.d.ts +6 -0
- package/2x/cjs/components/tabs/tabs.js +14 -12
- package/2x/cjs/components/virtual-input/virtual-input.js +11 -4
- package/2x/cjs/global/global.css +2 -2
- package/2x/es/components/calendar-picker/calendar-picker.d.ts +5 -0
- package/2x/es/components/calendar-picker/calendar-picker.js +5 -3
- package/2x/es/components/cascader/cascader.js +6 -1
- package/2x/es/components/cascader-view/cascader-view.js +4 -1
- package/2x/es/components/cascader-view/use-cascader-value-extend.d.ts +3 -2
- package/2x/es/components/cascader-view/use-cascader-value-extend.js +9 -5
- package/2x/es/components/dropdown/dropdown.js +3 -1
- package/2x/es/components/image-viewer/image-viewer.d.ts +4 -0
- package/2x/es/components/image-viewer/image-viewer.js +11 -8
- package/2x/es/components/mask/mask.js +1 -0
- package/2x/es/components/number-keyboard/number-keyboard.js +15 -7
- package/2x/es/components/popover/popover-menu.js +3 -1
- package/2x/es/components/popover/popover.js +5 -5
- package/2x/es/components/popup/popup.js +1 -0
- package/2x/es/components/switch/switch.css +2 -2
- package/2x/es/components/tabs/tabs.d.ts +6 -0
- package/2x/es/components/tabs/tabs.js +14 -12
- package/2x/es/components/virtual-input/virtual-input.js +11 -4
- package/2x/es/global/global.css +2 -2
- package/2x/package.json +1 -1
- package/README.md +1 -1
- package/bundle/antd-mobile.cjs.development.js +1843 -1829
- package/bundle/antd-mobile.cjs.js +9 -9
- package/bundle/antd-mobile.compatible.umd.js +1 -1
- package/bundle/antd-mobile.es.development.js +1025 -1007
- package/bundle/antd-mobile.es.js +5315 -5259
- package/bundle/antd-mobile.umd.development.js +2194 -2180
- package/bundle/antd-mobile.umd.js +9 -9
- package/bundle/style.css +1 -1
- package/cjs/components/calendar-picker/calendar-picker.d.ts +5 -0
- package/cjs/components/calendar-picker/calendar-picker.js +5 -3
- package/cjs/components/cascader/cascader.js +6 -1
- package/cjs/components/cascader-view/cascader-view.js +4 -1
- package/cjs/components/cascader-view/use-cascader-value-extend.d.ts +3 -2
- package/cjs/components/cascader-view/use-cascader-value-extend.js +9 -5
- package/cjs/components/dropdown/dropdown.js +3 -1
- package/cjs/components/image-viewer/image-viewer.d.ts +4 -0
- package/cjs/components/image-viewer/image-viewer.js +11 -8
- package/cjs/components/mask/mask.js +1 -0
- package/cjs/components/number-keyboard/number-keyboard.js +15 -7
- package/cjs/components/popover/popover-menu.js +3 -1
- package/cjs/components/popover/popover.js +5 -5
- package/cjs/components/popup/popup.js +1 -0
- package/cjs/components/switch/switch.css +2 -2
- package/cjs/components/tabs/tabs.d.ts +6 -0
- package/cjs/components/tabs/tabs.js +14 -12
- package/cjs/components/virtual-input/virtual-input.js +11 -4
- package/cjs/global/global.css +2 -2
- package/es/components/calendar-picker/calendar-picker.d.ts +5 -0
- package/es/components/calendar-picker/calendar-picker.js +5 -3
- package/es/components/cascader/cascader.js +6 -1
- package/es/components/cascader-view/cascader-view.js +4 -1
- package/es/components/cascader-view/use-cascader-value-extend.d.ts +3 -2
- package/es/components/cascader-view/use-cascader-value-extend.js +9 -5
- package/es/components/dropdown/dropdown.js +3 -1
- package/es/components/image-viewer/image-viewer.d.ts +4 -0
- package/es/components/image-viewer/image-viewer.js +11 -8
- package/es/components/mask/mask.js +1 -0
- package/es/components/number-keyboard/number-keyboard.js +15 -7
- package/es/components/popover/popover-menu.js +3 -1
- package/es/components/popover/popover.js +5 -5
- package/es/components/popup/popup.js +1 -0
- package/es/components/switch/switch.css +2 -2
- package/es/components/tabs/tabs.d.ts +6 -0
- package/es/components/tabs/tabs.js +14 -12
- package/es/components/virtual-input/virtual-input.js +11 -4
- package/es/global/global.css +2 -2
- package/package.json +1 -1
- package/umd/antd-mobile.js +1 -1
|
@@ -2,7 +2,6 @@ import * as React$4 from "react";
|
|
|
2
2
|
import React__default, { useContext, useRef, useMemo, useEffect, useState as useState$1, useCallback, useLayoutEffect as useLayoutEffect$2, forwardRef, useImperativeHandle, memo, isValidElement, createContext, cloneElement } from "react";
|
|
3
3
|
import * as ReactDOM from "react-dom";
|
|
4
4
|
import { unstable_batchedUpdates, createPortal, findDOMNode } from "react-dom";
|
|
5
|
-
const global$2 = "";
|
|
6
5
|
const canUseDom$2 = !!(typeof window !== "undefined" && typeof document !== "undefined" && window.document && window.document.createElement);
|
|
7
6
|
if (canUseDom$2) {
|
|
8
7
|
document.addEventListener("touchstart", () => {
|
|
@@ -53,8 +52,8 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
53
52
|
reject(e2);
|
|
54
53
|
}
|
|
55
54
|
}
|
|
56
|
-
function step(
|
|
57
|
-
|
|
55
|
+
function step(result) {
|
|
56
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
58
57
|
}
|
|
59
58
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
60
59
|
});
|
|
@@ -190,13 +189,13 @@ function mergeLocale(base2, patch) {
|
|
|
190
189
|
if (typeof a !== "object" || typeof b !== "object" || Array.isArray(a) || Array.isArray(b)) {
|
|
191
190
|
return b !== void 0 ? b : a;
|
|
192
191
|
}
|
|
193
|
-
const
|
|
192
|
+
const result = {};
|
|
194
193
|
for (const key in a) {
|
|
195
194
|
if (a.hasOwnProperty(key)) {
|
|
196
|
-
|
|
195
|
+
result[key] = merge2(a[key], b[key]);
|
|
197
196
|
}
|
|
198
197
|
}
|
|
199
|
-
return
|
|
198
|
+
return result;
|
|
200
199
|
}
|
|
201
200
|
return merge2(base2, patch);
|
|
202
201
|
}
|
|
@@ -339,63 +338,63 @@ const base = {
|
|
|
339
338
|
name: "Selector"
|
|
340
339
|
}
|
|
341
340
|
};
|
|
342
|
-
const typeTemplate$1 = "${label}
|
|
341
|
+
const typeTemplate$1 = "${label}不是一个有效的${type}";
|
|
343
342
|
const zhCN = mergeLocale(base, {
|
|
344
343
|
locale: "zh-CH",
|
|
345
344
|
common: {
|
|
346
|
-
confirm: "
|
|
347
|
-
cancel: "
|
|
348
|
-
loading: "
|
|
349
|
-
close: "
|
|
345
|
+
confirm: "确定",
|
|
346
|
+
cancel: "取消",
|
|
347
|
+
loading: "加载中",
|
|
348
|
+
close: "关闭"
|
|
350
349
|
},
|
|
351
350
|
Calendar: {
|
|
352
|
-
title: "
|
|
353
|
-
confirm: "
|
|
354
|
-
start: "
|
|
355
|
-
end: "
|
|
356
|
-
today: "
|
|
357
|
-
markItems: ["
|
|
358
|
-
yearAndMonth: "${year}
|
|
351
|
+
title: "日期选择",
|
|
352
|
+
confirm: "确认",
|
|
353
|
+
start: "开始",
|
|
354
|
+
end: "结束",
|
|
355
|
+
today: "今日",
|
|
356
|
+
markItems: ["一", "二", "三", "四", "五", "六", "日"],
|
|
357
|
+
yearAndMonth: "${year}年${month}月"
|
|
359
358
|
},
|
|
360
359
|
Cascader: {
|
|
361
|
-
placeholder: "
|
|
360
|
+
placeholder: "请选择"
|
|
362
361
|
},
|
|
363
362
|
Dialog: {
|
|
364
|
-
ok: "
|
|
363
|
+
ok: "我知道了"
|
|
365
364
|
},
|
|
366
365
|
DatePicker: {
|
|
367
|
-
tillNow: "
|
|
366
|
+
tillNow: "至今"
|
|
368
367
|
},
|
|
369
368
|
ErrorBlock: {
|
|
370
369
|
default: {
|
|
371
|
-
title: "
|
|
372
|
-
description: "
|
|
370
|
+
title: "页面遇到一些小问题",
|
|
371
|
+
description: "待会来试试"
|
|
373
372
|
},
|
|
374
373
|
busy: {
|
|
375
|
-
title: "
|
|
376
|
-
description: "
|
|
374
|
+
title: "前方拥堵",
|
|
375
|
+
description: "刷新试试"
|
|
377
376
|
},
|
|
378
377
|
disconnected: {
|
|
379
|
-
title: "
|
|
380
|
-
description: "
|
|
378
|
+
title: "网络有点忙",
|
|
379
|
+
description: "动动手指帮忙修复"
|
|
381
380
|
},
|
|
382
381
|
empty: {
|
|
383
|
-
title: "
|
|
384
|
-
description: "
|
|
382
|
+
title: "没有找到你需要的东西",
|
|
383
|
+
description: "找找其他的吧"
|
|
385
384
|
}
|
|
386
385
|
},
|
|
387
386
|
Form: {
|
|
388
|
-
required: "
|
|
389
|
-
optional: "
|
|
387
|
+
required: "必填",
|
|
388
|
+
optional: "选填",
|
|
390
389
|
defaultValidateMessages: {
|
|
391
|
-
default: "
|
|
392
|
-
required: "
|
|
393
|
-
enum: "${label}
|
|
394
|
-
whitespace: "${label}
|
|
390
|
+
default: "字段验证错误${label}",
|
|
391
|
+
required: "请输入${label}",
|
|
392
|
+
enum: "${label}必须是其中一个[${enum}]",
|
|
393
|
+
whitespace: "${label}不能为空字符",
|
|
395
394
|
date: {
|
|
396
|
-
format: "${label}
|
|
397
|
-
parse: "${label}
|
|
398
|
-
invalid: "${label}
|
|
395
|
+
format: "${label}日期格式无效",
|
|
396
|
+
parse: "${label}不能转换为日期",
|
|
397
|
+
invalid: "${label}是一个无效日期"
|
|
399
398
|
},
|
|
400
399
|
types: {
|
|
401
400
|
string: typeTemplate$1,
|
|
@@ -413,69 +412,69 @@ const zhCN = mergeLocale(base, {
|
|
|
413
412
|
hex: typeTemplate$1
|
|
414
413
|
},
|
|
415
414
|
string: {
|
|
416
|
-
len: "${label}
|
|
417
|
-
min: "${label}
|
|
418
|
-
max: "${label}
|
|
419
|
-
range: "${label}
|
|
415
|
+
len: "${label}须为${len}个字符",
|
|
416
|
+
min: "${label}最少${min}个字符",
|
|
417
|
+
max: "${label}最多${max}个字符",
|
|
418
|
+
range: "${label}须在${min}-${max}字符之间"
|
|
420
419
|
},
|
|
421
420
|
number: {
|
|
422
|
-
len: "${label}
|
|
423
|
-
min: "${label}
|
|
424
|
-
max: "${label}
|
|
425
|
-
range: "${label}
|
|
421
|
+
len: "${label}必须等于${len}",
|
|
422
|
+
min: "${label}最小值为${min}",
|
|
423
|
+
max: "${label}最大值为${max}",
|
|
424
|
+
range: "${label}须在${min}-${max}之间"
|
|
426
425
|
},
|
|
427
426
|
array: {
|
|
428
|
-
len: "
|
|
429
|
-
min: "
|
|
430
|
-
max: "
|
|
431
|
-
range: "${label}
|
|
427
|
+
len: "须为${len}个${label}",
|
|
428
|
+
min: "最少${min}个${label}",
|
|
429
|
+
max: "最多${max}个${label}",
|
|
430
|
+
range: "${label}数量须在${min}-${max}之间"
|
|
432
431
|
},
|
|
433
432
|
pattern: {
|
|
434
|
-
mismatch: "${label}
|
|
433
|
+
mismatch: "${label}与模式不匹配${pattern}"
|
|
435
434
|
}
|
|
436
435
|
}
|
|
437
436
|
},
|
|
438
437
|
ImageUploader: {
|
|
439
|
-
uploading: "
|
|
440
|
-
upload: "
|
|
438
|
+
uploading: "上传中...",
|
|
439
|
+
upload: "上传"
|
|
441
440
|
},
|
|
442
441
|
InfiniteScroll: {
|
|
443
|
-
noMore: "
|
|
444
|
-
failedToLoad: "
|
|
445
|
-
retry: "
|
|
442
|
+
noMore: "没有更多了",
|
|
443
|
+
failedToLoad: "加载失败",
|
|
444
|
+
retry: "重新加载"
|
|
446
445
|
},
|
|
447
446
|
Input: {
|
|
448
|
-
clear: "
|
|
447
|
+
clear: "清除"
|
|
449
448
|
},
|
|
450
449
|
Mask: {
|
|
451
|
-
name: "
|
|
450
|
+
name: "背景蒙层"
|
|
452
451
|
},
|
|
453
452
|
Modal: {
|
|
454
|
-
ok: "
|
|
453
|
+
ok: "我知道了"
|
|
455
454
|
},
|
|
456
455
|
PasscodeInput: {
|
|
457
|
-
name: "
|
|
456
|
+
name: "密码输入框"
|
|
458
457
|
},
|
|
459
458
|
PullToRefresh: {
|
|
460
|
-
pulling: "
|
|
461
|
-
canRelease: "
|
|
462
|
-
complete: "
|
|
459
|
+
pulling: "下拉刷新",
|
|
460
|
+
canRelease: "释放立即刷新",
|
|
461
|
+
complete: "刷新成功"
|
|
463
462
|
},
|
|
464
463
|
SearchBar: {
|
|
465
|
-
name: "
|
|
464
|
+
name: "搜索框"
|
|
466
465
|
},
|
|
467
466
|
Slider: {
|
|
468
|
-
name: "
|
|
467
|
+
name: "滑动输入条"
|
|
469
468
|
},
|
|
470
469
|
Stepper: {
|
|
471
|
-
decrease: "
|
|
472
|
-
increase: "
|
|
470
|
+
decrease: "减少",
|
|
471
|
+
increase: "增加"
|
|
473
472
|
},
|
|
474
473
|
Switch: {
|
|
475
|
-
name: "
|
|
474
|
+
name: "开关"
|
|
476
475
|
},
|
|
477
476
|
Selector: {
|
|
478
|
-
name: "
|
|
477
|
+
name: "选择组"
|
|
479
478
|
}
|
|
480
479
|
});
|
|
481
480
|
const zhCN$1 = zhCN;
|
|
@@ -491,7 +490,7 @@ function getDefaultConfig() {
|
|
|
491
490
|
return defaultConfigRef.current;
|
|
492
491
|
}
|
|
493
492
|
const ConfigContext = React__default.createContext(null);
|
|
494
|
-
const ConfigProvider
|
|
493
|
+
const ConfigProvider = (props) => {
|
|
495
494
|
const {
|
|
496
495
|
children
|
|
497
496
|
} = props, config2 = __rest(props, ["children"]);
|
|
@@ -504,8 +503,6 @@ function useConfig() {
|
|
|
504
503
|
var _a;
|
|
505
504
|
return (_a = useContext(ConfigContext)) !== null && _a !== void 0 ? _a : getDefaultConfig();
|
|
506
505
|
}
|
|
507
|
-
const ConfigProvider = ConfigProvider$1;
|
|
508
|
-
const actionSheet = "";
|
|
509
506
|
function attachPropertiesToComponent(component, properties) {
|
|
510
507
|
const ret = component;
|
|
511
508
|
for (const key in properties) {
|
|
@@ -516,6 +513,9 @@ function attachPropertiesToComponent(component, properties) {
|
|
|
516
513
|
return ret;
|
|
517
514
|
}
|
|
518
515
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
516
|
+
function getDefaultExportFromCjs(x) {
|
|
517
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
518
|
+
}
|
|
519
519
|
var classnames = { exports: {} };
|
|
520
520
|
/*!
|
|
521
521
|
Copyright (c) 2018 Jed Watson.
|
|
@@ -563,7 +563,8 @@ var classnames = { exports: {} };
|
|
|
563
563
|
}
|
|
564
564
|
})();
|
|
565
565
|
})(classnames);
|
|
566
|
-
|
|
566
|
+
var classnamesExports = classnames.exports;
|
|
567
|
+
const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
|
|
567
568
|
function withNativeProps(props, element) {
|
|
568
569
|
const p = Object.assign({}, element.props);
|
|
569
570
|
if (props.className) {
|
|
@@ -599,21 +600,21 @@ var hasOwnProperty$b = objectProto$e.hasOwnProperty;
|
|
|
599
600
|
var nativeObjectToString$1 = objectProto$e.toString;
|
|
600
601
|
var symToStringTag$1 = Symbol$3 ? Symbol$3.toStringTag : void 0;
|
|
601
602
|
function getRawTag$1(value) {
|
|
602
|
-
var isOwn = hasOwnProperty$b.call(value, symToStringTag$1),
|
|
603
|
+
var isOwn = hasOwnProperty$b.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
603
604
|
try {
|
|
604
605
|
value[symToStringTag$1] = void 0;
|
|
605
606
|
var unmasked = true;
|
|
606
607
|
} catch (e2) {
|
|
607
608
|
}
|
|
608
|
-
var
|
|
609
|
+
var result = nativeObjectToString$1.call(value);
|
|
609
610
|
if (unmasked) {
|
|
610
611
|
if (isOwn) {
|
|
611
|
-
value[symToStringTag$1] =
|
|
612
|
+
value[symToStringTag$1] = tag;
|
|
612
613
|
} else {
|
|
613
614
|
delete value[symToStringTag$1];
|
|
614
615
|
}
|
|
615
616
|
}
|
|
616
|
-
return
|
|
617
|
+
return result;
|
|
617
618
|
}
|
|
618
619
|
var _getRawTag = getRawTag$1;
|
|
619
620
|
var objectProto$d = Object.prototype;
|
|
@@ -643,8 +644,8 @@ function isFunction$4(value) {
|
|
|
643
644
|
if (!isObject$a(value)) {
|
|
644
645
|
return false;
|
|
645
646
|
}
|
|
646
|
-
var
|
|
647
|
-
return
|
|
647
|
+
var tag = baseGetTag$5(value);
|
|
648
|
+
return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
648
649
|
}
|
|
649
650
|
var isFunction_1 = isFunction$4;
|
|
650
651
|
var root$7 = _root;
|
|
@@ -890,11 +891,11 @@ function createAssigner$2(assigner) {
|
|
|
890
891
|
}
|
|
891
892
|
var _createAssigner = createAssigner$2;
|
|
892
893
|
function baseTimes$1(n2, iteratee) {
|
|
893
|
-
var index2 = -1,
|
|
894
|
+
var index2 = -1, result = Array(n2);
|
|
894
895
|
while (++index2 < n2) {
|
|
895
|
-
|
|
896
|
+
result[index2] = iteratee(index2);
|
|
896
897
|
}
|
|
897
|
-
return
|
|
898
|
+
return result;
|
|
898
899
|
}
|
|
899
900
|
var _baseTimes = baseTimes$1;
|
|
900
901
|
function isObjectLike$7(value) {
|
|
@@ -911,7 +912,7 @@ var baseIsArguments = _baseIsArguments, isObjectLike$5 = isObjectLike_1;
|
|
|
911
912
|
var objectProto$a = Object.prototype;
|
|
912
913
|
var hasOwnProperty$8 = objectProto$a.hasOwnProperty;
|
|
913
914
|
var propertyIsEnumerable$1 = objectProto$a.propertyIsEnumerable;
|
|
914
|
-
var isArguments$2 = baseIsArguments(function() {
|
|
915
|
+
var isArguments$2 = baseIsArguments(/* @__PURE__ */ function() {
|
|
915
916
|
return arguments;
|
|
916
917
|
}()) ? baseIsArguments : function(value) {
|
|
917
918
|
return isObjectLike$5(value) && hasOwnProperty$8.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
@@ -924,6 +925,7 @@ function stubFalse() {
|
|
|
924
925
|
return false;
|
|
925
926
|
}
|
|
926
927
|
var stubFalse_1 = stubFalse;
|
|
928
|
+
isBuffer$3.exports;
|
|
927
929
|
(function(module, exports) {
|
|
928
930
|
var root2 = _root, stubFalse2 = stubFalse_1;
|
|
929
931
|
var freeExports = exports && !exports.nodeType && exports;
|
|
@@ -934,6 +936,7 @@ var stubFalse_1 = stubFalse;
|
|
|
934
936
|
var isBuffer2 = nativeIsBuffer || stubFalse2;
|
|
935
937
|
module.exports = isBuffer2;
|
|
936
938
|
})(isBuffer$3, isBuffer$3.exports);
|
|
939
|
+
var isBufferExports = isBuffer$3.exports;
|
|
937
940
|
var baseGetTag$3 = _baseGetTag, isLength = isLength_1, isObjectLike$4 = isObjectLike_1;
|
|
938
941
|
var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", errorTag$1 = "[object Error]", funcTag = "[object Function]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", objectTag$3 = "[object Object]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", weakMapTag$1 = "[object WeakMap]";
|
|
939
942
|
var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$2 = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
|
|
@@ -951,6 +954,7 @@ function baseUnary$1(func) {
|
|
|
951
954
|
}
|
|
952
955
|
var _baseUnary = baseUnary$1;
|
|
953
956
|
var _nodeUtil = { exports: {} };
|
|
957
|
+
_nodeUtil.exports;
|
|
954
958
|
(function(module, exports) {
|
|
955
959
|
var freeGlobal2 = _freeGlobal;
|
|
956
960
|
var freeExports = exports && !exports.nodeType && exports;
|
|
@@ -969,21 +973,26 @@ var _nodeUtil = { exports: {} };
|
|
|
969
973
|
}();
|
|
970
974
|
module.exports = nodeUtil2;
|
|
971
975
|
})(_nodeUtil, _nodeUtil.exports);
|
|
972
|
-
var
|
|
976
|
+
var _nodeUtilExports = _nodeUtil.exports;
|
|
977
|
+
var baseIsTypedArray = _baseIsTypedArray, baseUnary = _baseUnary, nodeUtil = _nodeUtilExports;
|
|
973
978
|
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
974
979
|
var isTypedArray$3 = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
975
980
|
var isTypedArray_1 = isTypedArray$3;
|
|
976
|
-
var baseTimes = _baseTimes, isArguments$1 = isArguments_1, isArray$3 = isArray_1, isBuffer$2 =
|
|
981
|
+
var baseTimes = _baseTimes, isArguments$1 = isArguments_1, isArray$3 = isArray_1, isBuffer$2 = isBufferExports, isIndex = _isIndex, isTypedArray$2 = isTypedArray_1;
|
|
977
982
|
var objectProto$9 = Object.prototype;
|
|
978
983
|
var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
|
|
979
984
|
function arrayLikeKeys$2(value, inherited) {
|
|
980
|
-
var isArr = isArray$3(value), isArg = !isArr && isArguments$1(value), isBuff = !isArr && !isArg && isBuffer$2(value), isType = !isArr && !isArg && !isBuff && isTypedArray$2(value), skipIndexes = isArr || isArg || isBuff || isType,
|
|
985
|
+
var isArr = isArray$3(value), isArg = !isArr && isArguments$1(value), isBuff = !isArr && !isArg && isBuffer$2(value), isType = !isArr && !isArg && !isBuff && isTypedArray$2(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
981
986
|
for (var key in value) {
|
|
982
|
-
if ((inherited || hasOwnProperty$7.call(value, key)) && !(skipIndexes &&
|
|
983
|
-
|
|
987
|
+
if ((inherited || hasOwnProperty$7.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
988
|
+
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
989
|
+
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
990
|
+
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
991
|
+
isIndex(key, length)))) {
|
|
992
|
+
result.push(key);
|
|
984
993
|
}
|
|
985
994
|
}
|
|
986
|
-
return
|
|
995
|
+
return result;
|
|
987
996
|
}
|
|
988
997
|
var _arrayLikeKeys = arrayLikeKeys$2;
|
|
989
998
|
var objectProto$8 = Object.prototype;
|
|
@@ -1008,13 +1017,13 @@ function baseKeys$1(object4) {
|
|
|
1008
1017
|
if (!isPrototype$2(object4)) {
|
|
1009
1018
|
return nativeKeys(object4);
|
|
1010
1019
|
}
|
|
1011
|
-
var
|
|
1020
|
+
var result = [];
|
|
1012
1021
|
for (var key in Object(object4)) {
|
|
1013
1022
|
if (hasOwnProperty$6.call(object4, key) && key != "constructor") {
|
|
1014
|
-
|
|
1023
|
+
result.push(key);
|
|
1015
1024
|
}
|
|
1016
1025
|
}
|
|
1017
|
-
return
|
|
1026
|
+
return result;
|
|
1018
1027
|
}
|
|
1019
1028
|
var _baseKeys = baseKeys$1;
|
|
1020
1029
|
var arrayLikeKeys$1 = _arrayLikeKeys, baseKeys = _baseKeys, isArrayLike$2 = isArrayLike_1;
|
|
@@ -1027,17 +1036,17 @@ var assignWith = createAssigner$1(function(object4, source, srcIndex, customizer
|
|
|
1027
1036
|
copyObject$1(source, keys$1(source), object4, customizer);
|
|
1028
1037
|
});
|
|
1029
1038
|
var assignWith_1 = assignWith;
|
|
1039
|
+
const assignWith$1 = /* @__PURE__ */ getDefaultExportFromCjs(assignWith_1);
|
|
1030
1040
|
function mergeProps(...items) {
|
|
1031
1041
|
function customizer(objValue, srcValue) {
|
|
1032
1042
|
return srcValue === void 0 ? objValue : srcValue;
|
|
1033
1043
|
}
|
|
1034
1044
|
let ret = Object.assign({}, items[0]);
|
|
1035
1045
|
for (let i2 = 1; i2 < items.length; i2++) {
|
|
1036
|
-
ret =
|
|
1046
|
+
ret = assignWith$1(ret, items[i2], customizer);
|
|
1037
1047
|
}
|
|
1038
1048
|
return ret;
|
|
1039
1049
|
}
|
|
1040
|
-
const popup = "";
|
|
1041
1050
|
var createUpdateEffect = function(hook) {
|
|
1042
1051
|
return function(effect, deps) {
|
|
1043
1052
|
var isMounted = useRef(false);
|
|
@@ -1061,10 +1070,10 @@ var isFunction$1 = function(value) {
|
|
|
1061
1070
|
var isNumber = function(value) {
|
|
1062
1071
|
return typeof value === "number";
|
|
1063
1072
|
};
|
|
1064
|
-
var isDev
|
|
1065
|
-
const isDev$
|
|
1073
|
+
var isDev = true;
|
|
1074
|
+
const isDev$1 = isDev;
|
|
1066
1075
|
function useMemoizedFn(fn) {
|
|
1067
|
-
if (isDev$
|
|
1076
|
+
if (isDev$1) {
|
|
1068
1077
|
if (!isFunction$1(fn)) {
|
|
1069
1078
|
console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof fn));
|
|
1070
1079
|
}
|
|
@@ -1101,7 +1110,7 @@ function useLatest(value) {
|
|
|
1101
1110
|
return ref;
|
|
1102
1111
|
}
|
|
1103
1112
|
var useUnmount = function(fn) {
|
|
1104
|
-
if (isDev$
|
|
1113
|
+
if (isDev$1) {
|
|
1105
1114
|
if (!isFunction$1(fn)) {
|
|
1106
1115
|
console.error("useUnmount expected parameter is a function, got ".concat(typeof fn));
|
|
1107
1116
|
}
|
|
@@ -1168,7 +1177,7 @@ var isObject$6 = isObject_1, now = now_1, toNumber = toNumber_1;
|
|
|
1168
1177
|
var FUNC_ERROR_TEXT$2 = "Expected a function";
|
|
1169
1178
|
var nativeMax = Math.max, nativeMin = Math.min;
|
|
1170
1179
|
function debounce$1(func, wait, options) {
|
|
1171
|
-
var lastArgs, lastThis, maxWait,
|
|
1180
|
+
var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
|
|
1172
1181
|
if (typeof func != "function") {
|
|
1173
1182
|
throw new TypeError(FUNC_ERROR_TEXT$2);
|
|
1174
1183
|
}
|
|
@@ -1183,13 +1192,13 @@ function debounce$1(func, wait, options) {
|
|
|
1183
1192
|
var args = lastArgs, thisArg = lastThis;
|
|
1184
1193
|
lastArgs = lastThis = void 0;
|
|
1185
1194
|
lastInvokeTime = time;
|
|
1186
|
-
|
|
1187
|
-
return
|
|
1195
|
+
result = func.apply(thisArg, args);
|
|
1196
|
+
return result;
|
|
1188
1197
|
}
|
|
1189
1198
|
function leadingEdge(time) {
|
|
1190
1199
|
lastInvokeTime = time;
|
|
1191
1200
|
timerId = setTimeout(timerExpired, wait);
|
|
1192
|
-
return leading ? invokeFunc(time) :
|
|
1201
|
+
return leading ? invokeFunc(time) : result;
|
|
1193
1202
|
}
|
|
1194
1203
|
function remainingWait(time) {
|
|
1195
1204
|
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall;
|
|
@@ -1212,7 +1221,7 @@ function debounce$1(func, wait, options) {
|
|
|
1212
1221
|
return invokeFunc(time);
|
|
1213
1222
|
}
|
|
1214
1223
|
lastArgs = lastThis = void 0;
|
|
1215
|
-
return
|
|
1224
|
+
return result;
|
|
1216
1225
|
}
|
|
1217
1226
|
function cancel() {
|
|
1218
1227
|
if (timerId !== void 0) {
|
|
@@ -1222,7 +1231,7 @@ function debounce$1(func, wait, options) {
|
|
|
1222
1231
|
lastArgs = lastCallTime = lastThis = timerId = void 0;
|
|
1223
1232
|
}
|
|
1224
1233
|
function flush2() {
|
|
1225
|
-
return timerId === void 0 ?
|
|
1234
|
+
return timerId === void 0 ? result : trailingEdge(now());
|
|
1226
1235
|
}
|
|
1227
1236
|
function debounced() {
|
|
1228
1237
|
var time = now(), isInvoking = shouldInvoke(time);
|
|
@@ -1242,13 +1251,14 @@ function debounce$1(func, wait, options) {
|
|
|
1242
1251
|
if (timerId === void 0) {
|
|
1243
1252
|
timerId = setTimeout(timerExpired, wait);
|
|
1244
1253
|
}
|
|
1245
|
-
return
|
|
1254
|
+
return result;
|
|
1246
1255
|
}
|
|
1247
1256
|
debounced.cancel = cancel;
|
|
1248
1257
|
debounced.flush = flush2;
|
|
1249
1258
|
return debounced;
|
|
1250
1259
|
}
|
|
1251
1260
|
var debounce_1 = debounce$1;
|
|
1261
|
+
const debounce$2 = /* @__PURE__ */ getDefaultExportFromCjs(debounce_1);
|
|
1252
1262
|
var isBrowser$2 = !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
1253
1263
|
const isBrowser$3 = isBrowser$2;
|
|
1254
1264
|
var debounce = debounce_1, isObject$5 = isObject_1;
|
|
@@ -1269,8 +1279,9 @@ function throttle$1(func, wait, options) {
|
|
|
1269
1279
|
});
|
|
1270
1280
|
}
|
|
1271
1281
|
var throttle_1 = throttle$1;
|
|
1282
|
+
const throttle$2 = /* @__PURE__ */ getDefaultExportFromCjs(throttle_1);
|
|
1272
1283
|
var useMount = function(fn) {
|
|
1273
|
-
if (isDev$
|
|
1284
|
+
if (isDev$1) {
|
|
1274
1285
|
if (!isFunction$1(fn)) {
|
|
1275
1286
|
console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof fn, '".'));
|
|
1276
1287
|
}
|
|
@@ -1457,9 +1468,9 @@ var dayjs_min = { exports: {} };
|
|
|
1457
1468
|
this.$d = function(t3) {
|
|
1458
1469
|
var e3 = t3.date, n3 = t3.utc;
|
|
1459
1470
|
if (null === e3)
|
|
1460
|
-
return new Date(NaN);
|
|
1471
|
+
return /* @__PURE__ */ new Date(NaN);
|
|
1461
1472
|
if (O.u(e3))
|
|
1462
|
-
return new Date();
|
|
1473
|
+
return /* @__PURE__ */ new Date();
|
|
1463
1474
|
if (e3 instanceof Date)
|
|
1464
1475
|
return new Date(e3);
|
|
1465
1476
|
if ("string" == typeof e3 && !/Z$/i.test(e3)) {
|
|
@@ -1685,10 +1696,11 @@ var dayjs_min = { exports: {} };
|
|
|
1685
1696
|
}, w.en = D[g], w.Ls = D, w.p = {}, w;
|
|
1686
1697
|
});
|
|
1687
1698
|
})(dayjs_min);
|
|
1688
|
-
|
|
1699
|
+
var dayjs_minExports = dayjs_min.exports;
|
|
1700
|
+
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
|
1689
1701
|
function useDebounceFn(fn, options) {
|
|
1690
1702
|
var _a;
|
|
1691
|
-
if (isDev$
|
|
1703
|
+
if (isDev$1) {
|
|
1692
1704
|
if (!isFunction$1(fn)) {
|
|
1693
1705
|
console.error("useDebounceFn expected parameter is a function, got ".concat(typeof fn));
|
|
1694
1706
|
}
|
|
@@ -1696,7 +1708,7 @@ function useDebounceFn(fn, options) {
|
|
|
1696
1708
|
var fnRef = useLatest(fn);
|
|
1697
1709
|
var wait = (_a = options === null || options === void 0 ? void 0 : options.wait) !== null && _a !== void 0 ? _a : 1e3;
|
|
1698
1710
|
var debounced = useMemo(function() {
|
|
1699
|
-
return
|
|
1711
|
+
return debounce$2(function() {
|
|
1700
1712
|
var args = [];
|
|
1701
1713
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1702
1714
|
args[_i] = arguments[_i];
|
|
@@ -1802,9 +1814,9 @@ function stackClear$1() {
|
|
|
1802
1814
|
}
|
|
1803
1815
|
var _stackClear = stackClear$1;
|
|
1804
1816
|
function stackDelete$1(key) {
|
|
1805
|
-
var data = this.__data__,
|
|
1817
|
+
var data = this.__data__, result = data["delete"](key);
|
|
1806
1818
|
this.size = data.size;
|
|
1807
|
-
return
|
|
1819
|
+
return result;
|
|
1808
1820
|
}
|
|
1809
1821
|
var _stackDelete = stackDelete$1;
|
|
1810
1822
|
function stackGet$1(key) {
|
|
@@ -1828,9 +1840,9 @@ function hashClear$1() {
|
|
|
1828
1840
|
}
|
|
1829
1841
|
var _hashClear = hashClear$1;
|
|
1830
1842
|
function hashDelete$1(key) {
|
|
1831
|
-
var
|
|
1832
|
-
this.size -=
|
|
1833
|
-
return
|
|
1843
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
1844
|
+
this.size -= result ? 1 : 0;
|
|
1845
|
+
return result;
|
|
1834
1846
|
}
|
|
1835
1847
|
var _hashDelete = hashDelete$1;
|
|
1836
1848
|
var nativeCreate$2 = _nativeCreate;
|
|
@@ -1840,8 +1852,8 @@ var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
|
|
|
1840
1852
|
function hashGet$1(key) {
|
|
1841
1853
|
var data = this.__data__;
|
|
1842
1854
|
if (nativeCreate$2) {
|
|
1843
|
-
var
|
|
1844
|
-
return
|
|
1855
|
+
var result = data[key];
|
|
1856
|
+
return result === HASH_UNDEFINED$2 ? void 0 : result;
|
|
1845
1857
|
}
|
|
1846
1858
|
return hasOwnProperty$5.call(data, key) ? data[key] : void 0;
|
|
1847
1859
|
}
|
|
@@ -1901,9 +1913,9 @@ function getMapData$4(map, key) {
|
|
|
1901
1913
|
var _getMapData = getMapData$4;
|
|
1902
1914
|
var getMapData$3 = _getMapData;
|
|
1903
1915
|
function mapCacheDelete$1(key) {
|
|
1904
|
-
var
|
|
1905
|
-
this.size -=
|
|
1906
|
-
return
|
|
1916
|
+
var result = getMapData$3(this, key)["delete"](key);
|
|
1917
|
+
this.size -= result ? 1 : 0;
|
|
1918
|
+
return result;
|
|
1907
1919
|
}
|
|
1908
1920
|
var _mapCacheDelete = mapCacheDelete$1;
|
|
1909
1921
|
var getMapData$2 = _getMapData;
|
|
@@ -2015,7 +2027,7 @@ function equalArrays$2(array4, other, bitmask, customizer, equalFunc, stack) {
|
|
|
2015
2027
|
if (arrStacked && othStacked) {
|
|
2016
2028
|
return arrStacked == other && othStacked == array4;
|
|
2017
2029
|
}
|
|
2018
|
-
var index2 = -1,
|
|
2030
|
+
var index2 = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG$1 ? new SetCache() : void 0;
|
|
2019
2031
|
stack.set(array4, other);
|
|
2020
2032
|
stack.set(other, array4);
|
|
2021
2033
|
while (++index2 < arrLength) {
|
|
@@ -2027,7 +2039,7 @@ function equalArrays$2(array4, other, bitmask, customizer, equalFunc, stack) {
|
|
|
2027
2039
|
if (compared) {
|
|
2028
2040
|
continue;
|
|
2029
2041
|
}
|
|
2030
|
-
|
|
2042
|
+
result = false;
|
|
2031
2043
|
break;
|
|
2032
2044
|
}
|
|
2033
2045
|
if (seen) {
|
|
@@ -2036,36 +2048,36 @@ function equalArrays$2(array4, other, bitmask, customizer, equalFunc, stack) {
|
|
|
2036
2048
|
return seen.push(othIndex);
|
|
2037
2049
|
}
|
|
2038
2050
|
})) {
|
|
2039
|
-
|
|
2051
|
+
result = false;
|
|
2040
2052
|
break;
|
|
2041
2053
|
}
|
|
2042
2054
|
} else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
|
|
2043
|
-
|
|
2055
|
+
result = false;
|
|
2044
2056
|
break;
|
|
2045
2057
|
}
|
|
2046
2058
|
}
|
|
2047
2059
|
stack["delete"](array4);
|
|
2048
2060
|
stack["delete"](other);
|
|
2049
|
-
return
|
|
2061
|
+
return result;
|
|
2050
2062
|
}
|
|
2051
2063
|
var _equalArrays = equalArrays$2;
|
|
2052
2064
|
var root$4 = _root;
|
|
2053
2065
|
var Uint8Array$2 = root$4.Uint8Array;
|
|
2054
2066
|
var _Uint8Array = Uint8Array$2;
|
|
2055
2067
|
function mapToArray$1(map) {
|
|
2056
|
-
var index2 = -1,
|
|
2068
|
+
var index2 = -1, result = Array(map.size);
|
|
2057
2069
|
map.forEach(function(value, key) {
|
|
2058
|
-
|
|
2070
|
+
result[++index2] = [key, value];
|
|
2059
2071
|
});
|
|
2060
|
-
return
|
|
2072
|
+
return result;
|
|
2061
2073
|
}
|
|
2062
2074
|
var _mapToArray = mapToArray$1;
|
|
2063
2075
|
function setToArray$1(set2) {
|
|
2064
|
-
var index2 = -1,
|
|
2076
|
+
var index2 = -1, result = Array(set2.size);
|
|
2065
2077
|
set2.forEach(function(value) {
|
|
2066
|
-
|
|
2078
|
+
result[++index2] = value;
|
|
2067
2079
|
});
|
|
2068
|
-
return
|
|
2080
|
+
return result;
|
|
2069
2081
|
}
|
|
2070
2082
|
var _setToArray = setToArray$1;
|
|
2071
2083
|
var Symbol$1 = _Symbol, Uint8Array$1 = _Uint8Array, eq$1 = eq_1, equalArrays$1 = _equalArrays, mapToArray = _mapToArray, setToArray = _setToArray;
|
|
@@ -2073,8 +2085,8 @@ var COMPARE_PARTIAL_FLAG$2 = 1, COMPARE_UNORDERED_FLAG = 2;
|
|
|
2073
2085
|
var boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", mapTag$1 = "[object Map]", numberTag = "[object Number]", regexpTag = "[object RegExp]", setTag$1 = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]";
|
|
2074
2086
|
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]";
|
|
2075
2087
|
var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
2076
|
-
function equalByTag$1(object4, other,
|
|
2077
|
-
switch (
|
|
2088
|
+
function equalByTag$1(object4, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
2089
|
+
switch (tag) {
|
|
2078
2090
|
case dataViewTag$1:
|
|
2079
2091
|
if (object4.byteLength != other.byteLength || object4.byteOffset != other.byteOffset) {
|
|
2080
2092
|
return false;
|
|
@@ -2109,9 +2121,9 @@ function equalByTag$1(object4, other, tag2, bitmask, customizer, equalFunc, stac
|
|
|
2109
2121
|
}
|
|
2110
2122
|
bitmask |= COMPARE_UNORDERED_FLAG;
|
|
2111
2123
|
stack.set(object4, other);
|
|
2112
|
-
var
|
|
2124
|
+
var result = equalArrays$1(convert(object4), convert(other), bitmask, customizer, equalFunc, stack);
|
|
2113
2125
|
stack["delete"](object4);
|
|
2114
|
-
return
|
|
2126
|
+
return result;
|
|
2115
2127
|
case symbolTag:
|
|
2116
2128
|
if (symbolValueOf) {
|
|
2117
2129
|
return symbolValueOf.call(object4) == symbolValueOf.call(other);
|
|
@@ -2130,19 +2142,19 @@ function arrayPush$1(array4, values) {
|
|
|
2130
2142
|
var _arrayPush = arrayPush$1;
|
|
2131
2143
|
var arrayPush = _arrayPush, isArray$2 = isArray_1;
|
|
2132
2144
|
function baseGetAllKeys$1(object4, keysFunc, symbolsFunc) {
|
|
2133
|
-
var
|
|
2134
|
-
return isArray$2(object4) ?
|
|
2145
|
+
var result = keysFunc(object4);
|
|
2146
|
+
return isArray$2(object4) ? result : arrayPush(result, symbolsFunc(object4));
|
|
2135
2147
|
}
|
|
2136
2148
|
var _baseGetAllKeys = baseGetAllKeys$1;
|
|
2137
2149
|
function arrayFilter$1(array4, predicate) {
|
|
2138
|
-
var index2 = -1, length = array4 == null ? 0 : array4.length, resIndex = 0,
|
|
2150
|
+
var index2 = -1, length = array4 == null ? 0 : array4.length, resIndex = 0, result = [];
|
|
2139
2151
|
while (++index2 < length) {
|
|
2140
2152
|
var value = array4[index2];
|
|
2141
2153
|
if (predicate(value, index2, array4)) {
|
|
2142
|
-
|
|
2154
|
+
result[resIndex++] = value;
|
|
2143
2155
|
}
|
|
2144
2156
|
}
|
|
2145
|
-
return
|
|
2157
|
+
return result;
|
|
2146
2158
|
}
|
|
2147
2159
|
var _arrayFilter = arrayFilter$1;
|
|
2148
2160
|
function stubArray$1() {
|
|
@@ -2189,7 +2201,7 @@ function equalObjects$1(object4, other, bitmask, customizer, equalFunc, stack) {
|
|
|
2189
2201
|
if (objStacked && othStacked) {
|
|
2190
2202
|
return objStacked == other && othStacked == object4;
|
|
2191
2203
|
}
|
|
2192
|
-
var
|
|
2204
|
+
var result = true;
|
|
2193
2205
|
stack.set(object4, other);
|
|
2194
2206
|
stack.set(other, object4);
|
|
2195
2207
|
var skipCtor = isPartial;
|
|
@@ -2200,20 +2212,20 @@ function equalObjects$1(object4, other, bitmask, customizer, equalFunc, stack) {
|
|
|
2200
2212
|
var compared = isPartial ? customizer(othValue, objValue, key, other, object4, stack) : customizer(objValue, othValue, key, object4, other, stack);
|
|
2201
2213
|
}
|
|
2202
2214
|
if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
|
|
2203
|
-
|
|
2215
|
+
result = false;
|
|
2204
2216
|
break;
|
|
2205
2217
|
}
|
|
2206
2218
|
skipCtor || (skipCtor = key == "constructor");
|
|
2207
2219
|
}
|
|
2208
|
-
if (
|
|
2220
|
+
if (result && !skipCtor) {
|
|
2209
2221
|
var objCtor = object4.constructor, othCtor = other.constructor;
|
|
2210
2222
|
if (objCtor != othCtor && ("constructor" in object4 && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
|
|
2211
|
-
|
|
2223
|
+
result = false;
|
|
2212
2224
|
}
|
|
2213
2225
|
}
|
|
2214
2226
|
stack["delete"](object4);
|
|
2215
2227
|
stack["delete"](other);
|
|
2216
|
-
return
|
|
2228
|
+
return result;
|
|
2217
2229
|
}
|
|
2218
2230
|
var _equalObjects = equalObjects$1;
|
|
2219
2231
|
var getNative$3 = _getNative, root$3 = _root;
|
|
@@ -2235,7 +2247,7 @@ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map$1), pr
|
|
|
2235
2247
|
var getTag$1 = baseGetTag$1;
|
|
2236
2248
|
if (DataView && getTag$1(new DataView(new ArrayBuffer(1))) != dataViewTag || Map$1 && getTag$1(new Map$1()) != mapTag || Promise$1 && getTag$1(Promise$1.resolve()) != promiseTag || Set$1 && getTag$1(new Set$1()) != setTag || WeakMap$1 && getTag$1(new WeakMap$1()) != weakMapTag) {
|
|
2237
2249
|
getTag$1 = function(value) {
|
|
2238
|
-
var
|
|
2250
|
+
var result = baseGetTag$1(value), Ctor = result == objectTag$2 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
2239
2251
|
if (ctorString) {
|
|
2240
2252
|
switch (ctorString) {
|
|
2241
2253
|
case dataViewCtorString:
|
|
@@ -2250,11 +2262,11 @@ if (DataView && getTag$1(new DataView(new ArrayBuffer(1))) != dataViewTag || Map
|
|
|
2250
2262
|
return weakMapTag;
|
|
2251
2263
|
}
|
|
2252
2264
|
}
|
|
2253
|
-
return
|
|
2265
|
+
return result;
|
|
2254
2266
|
};
|
|
2255
2267
|
}
|
|
2256
2268
|
var _getTag = getTag$1;
|
|
2257
|
-
var Stack$1 = _Stack, equalArrays = _equalArrays, equalByTag = _equalByTag, equalObjects = _equalObjects, getTag = _getTag, isArray$1 = isArray_1, isBuffer$1 =
|
|
2269
|
+
var Stack$1 = _Stack, equalArrays = _equalArrays, equalByTag = _equalByTag, equalObjects = _equalObjects, getTag = _getTag, isArray$1 = isArray_1, isBuffer$1 = isBufferExports, isTypedArray$1 = isTypedArray_1;
|
|
2258
2270
|
var COMPARE_PARTIAL_FLAG = 1;
|
|
2259
2271
|
var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag$1 = "[object Object]";
|
|
2260
2272
|
var objectProto$2 = Object.prototype;
|
|
@@ -2306,6 +2318,7 @@ function isEqual$1(value, other) {
|
|
|
2306
2318
|
return baseIsEqual(value, other);
|
|
2307
2319
|
}
|
|
2308
2320
|
var isEqual_1 = isEqual$1;
|
|
2321
|
+
const isEqual$2 = /* @__PURE__ */ getDefaultExportFromCjs(isEqual_1);
|
|
2309
2322
|
function useGetState(initialState) {
|
|
2310
2323
|
var _a = __read(useState$1(initialState), 2), state = _a[0], setState = _a[1];
|
|
2311
2324
|
var stateRef = useRef(state);
|
|
@@ -2616,7 +2629,8 @@ function useGetState(initialState) {
|
|
|
2616
2629
|
var parentComputedStyle = parent.nodeType == 1 ? window.getComputedStyle(parent) : {};
|
|
2617
2630
|
if (parentComputedStyle.display == "none")
|
|
2618
2631
|
return null;
|
|
2619
|
-
if (parent == this.root || parent.nodeType ==
|
|
2632
|
+
if (parent == this.root || parent.nodeType == /* DOCUMENT */
|
|
2633
|
+
9) {
|
|
2620
2634
|
atRoot = true;
|
|
2621
2635
|
if (parent == this.root || parent == document2) {
|
|
2622
2636
|
if (crossOriginUpdater && !this.root) {
|
|
@@ -2831,7 +2845,8 @@ function useGetState(initialState) {
|
|
|
2831
2845
|
}
|
|
2832
2846
|
function getParentNode2(node) {
|
|
2833
2847
|
var parent = node.parentNode;
|
|
2834
|
-
if (node.nodeType ==
|
|
2848
|
+
if (node.nodeType == /* DOCUMENT */
|
|
2849
|
+
9 && node != document2) {
|
|
2835
2850
|
return getFrameElement(node);
|
|
2836
2851
|
}
|
|
2837
2852
|
if (parent && parent.assignedSlot) {
|
|
@@ -2903,7 +2918,10 @@ function useLockFn(fn) {
|
|
|
2903
2918
|
switch (_a.label) {
|
|
2904
2919
|
case 0:
|
|
2905
2920
|
if (lockRef.current)
|
|
2906
|
-
return [
|
|
2921
|
+
return [
|
|
2922
|
+
2
|
|
2923
|
+
/*return*/
|
|
2924
|
+
];
|
|
2907
2925
|
lockRef.current = true;
|
|
2908
2926
|
_a.label = 1;
|
|
2909
2927
|
case 1:
|
|
@@ -2918,7 +2936,10 @@ function useLockFn(fn) {
|
|
|
2918
2936
|
lockRef.current = false;
|
|
2919
2937
|
throw e_1;
|
|
2920
2938
|
case 4:
|
|
2921
|
-
return [
|
|
2939
|
+
return [
|
|
2940
|
+
2
|
|
2941
|
+
/*return*/
|
|
2942
|
+
];
|
|
2922
2943
|
}
|
|
2923
2944
|
});
|
|
2924
2945
|
});
|
|
@@ -2975,64 +2996,70 @@ var MapShim = function() {
|
|
|
2975
2996
|
return Map;
|
|
2976
2997
|
}
|
|
2977
2998
|
function getIndex(arr, key) {
|
|
2978
|
-
var
|
|
2999
|
+
var result = -1;
|
|
2979
3000
|
arr.some(function(entry, index2) {
|
|
2980
3001
|
if (entry[0] === key) {
|
|
2981
|
-
|
|
3002
|
+
result = index2;
|
|
2982
3003
|
return true;
|
|
2983
3004
|
}
|
|
2984
3005
|
return false;
|
|
2985
3006
|
});
|
|
2986
|
-
return
|
|
3007
|
+
return result;
|
|
2987
3008
|
}
|
|
2988
|
-
return
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
}
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3009
|
+
return (
|
|
3010
|
+
/** @class */
|
|
3011
|
+
function() {
|
|
3012
|
+
function class_1() {
|
|
3013
|
+
this.__entries__ = [];
|
|
3014
|
+
}
|
|
3015
|
+
Object.defineProperty(class_1.prototype, "size", {
|
|
3016
|
+
/**
|
|
3017
|
+
* @returns {boolean}
|
|
3018
|
+
*/
|
|
3019
|
+
get: function() {
|
|
3020
|
+
return this.__entries__.length;
|
|
3021
|
+
},
|
|
3022
|
+
enumerable: true,
|
|
3023
|
+
configurable: true
|
|
3024
|
+
});
|
|
3025
|
+
class_1.prototype.get = function(key) {
|
|
3026
|
+
var index2 = getIndex(this.__entries__, key);
|
|
3027
|
+
var entry = this.__entries__[index2];
|
|
3028
|
+
return entry && entry[1];
|
|
3029
|
+
};
|
|
3030
|
+
class_1.prototype.set = function(key, value) {
|
|
3031
|
+
var index2 = getIndex(this.__entries__, key);
|
|
3032
|
+
if (~index2) {
|
|
3033
|
+
this.__entries__[index2][1] = value;
|
|
3034
|
+
} else {
|
|
3035
|
+
this.__entries__.push([key, value]);
|
|
3036
|
+
}
|
|
3037
|
+
};
|
|
3038
|
+
class_1.prototype.delete = function(key) {
|
|
3039
|
+
var entries = this.__entries__;
|
|
3040
|
+
var index2 = getIndex(entries, key);
|
|
3041
|
+
if (~index2) {
|
|
3042
|
+
entries.splice(index2, 1);
|
|
3043
|
+
}
|
|
3044
|
+
};
|
|
3045
|
+
class_1.prototype.has = function(key) {
|
|
3046
|
+
return !!~getIndex(this.__entries__, key);
|
|
3047
|
+
};
|
|
3048
|
+
class_1.prototype.clear = function() {
|
|
3049
|
+
this.__entries__.splice(0);
|
|
3050
|
+
};
|
|
3051
|
+
class_1.prototype.forEach = function(callback, ctx2) {
|
|
3052
|
+
if (ctx2 === void 0) {
|
|
3053
|
+
ctx2 = null;
|
|
3054
|
+
}
|
|
3055
|
+
for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {
|
|
3056
|
+
var entry = _a[_i];
|
|
3057
|
+
callback.call(ctx2, entry[1], entry[0]);
|
|
3058
|
+
}
|
|
3059
|
+
};
|
|
3060
|
+
return class_1;
|
|
3061
|
+
}()
|
|
3062
|
+
);
|
|
3036
3063
|
}();
|
|
3037
3064
|
var isBrowser$1 = typeof window !== "undefined" && typeof document !== "undefined" && window.document === document;
|
|
3038
3065
|
var global$1 = function() {
|
|
@@ -3091,102 +3118,105 @@ function throttle(callback, delay) {
|
|
|
3091
3118
|
var REFRESH_DELAY = 20;
|
|
3092
3119
|
var transitionKeys = ["top", "right", "bottom", "left", "width", "height", "size", "weight"];
|
|
3093
3120
|
var mutationObserverSupported = typeof MutationObserver !== "undefined";
|
|
3094
|
-
var ResizeObserverController =
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
observers2.
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
this.
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
return observer.broadcastActive();
|
|
3133
|
-
});
|
|
3134
|
-
return activeObservers.length > 0;
|
|
3135
|
-
};
|
|
3136
|
-
ResizeObserverController2.prototype.connect_ = function() {
|
|
3137
|
-
if (!isBrowser$1 || this.connected_) {
|
|
3138
|
-
return;
|
|
3139
|
-
}
|
|
3140
|
-
document.addEventListener("transitionend", this.onTransitionEnd_);
|
|
3141
|
-
window.addEventListener("resize", this.refresh);
|
|
3142
|
-
if (mutationObserverSupported) {
|
|
3143
|
-
this.mutationsObserver_ = new MutationObserver(this.refresh);
|
|
3144
|
-
this.mutationsObserver_.observe(document, {
|
|
3145
|
-
attributes: true,
|
|
3146
|
-
childList: true,
|
|
3147
|
-
characterData: true,
|
|
3148
|
-
subtree: true
|
|
3121
|
+
var ResizeObserverController = (
|
|
3122
|
+
/** @class */
|
|
3123
|
+
function() {
|
|
3124
|
+
function ResizeObserverController2() {
|
|
3125
|
+
this.connected_ = false;
|
|
3126
|
+
this.mutationEventsAdded_ = false;
|
|
3127
|
+
this.mutationsObserver_ = null;
|
|
3128
|
+
this.observers_ = [];
|
|
3129
|
+
this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);
|
|
3130
|
+
this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);
|
|
3131
|
+
}
|
|
3132
|
+
ResizeObserverController2.prototype.addObserver = function(observer) {
|
|
3133
|
+
if (!~this.observers_.indexOf(observer)) {
|
|
3134
|
+
this.observers_.push(observer);
|
|
3135
|
+
}
|
|
3136
|
+
if (!this.connected_) {
|
|
3137
|
+
this.connect_();
|
|
3138
|
+
}
|
|
3139
|
+
};
|
|
3140
|
+
ResizeObserverController2.prototype.removeObserver = function(observer) {
|
|
3141
|
+
var observers2 = this.observers_;
|
|
3142
|
+
var index2 = observers2.indexOf(observer);
|
|
3143
|
+
if (~index2) {
|
|
3144
|
+
observers2.splice(index2, 1);
|
|
3145
|
+
}
|
|
3146
|
+
if (!observers2.length && this.connected_) {
|
|
3147
|
+
this.disconnect_();
|
|
3148
|
+
}
|
|
3149
|
+
};
|
|
3150
|
+
ResizeObserverController2.prototype.refresh = function() {
|
|
3151
|
+
var changesDetected = this.updateObservers_();
|
|
3152
|
+
if (changesDetected) {
|
|
3153
|
+
this.refresh();
|
|
3154
|
+
}
|
|
3155
|
+
};
|
|
3156
|
+
ResizeObserverController2.prototype.updateObservers_ = function() {
|
|
3157
|
+
var activeObservers = this.observers_.filter(function(observer) {
|
|
3158
|
+
return observer.gatherActive(), observer.hasActive();
|
|
3149
3159
|
});
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3160
|
+
activeObservers.forEach(function(observer) {
|
|
3161
|
+
return observer.broadcastActive();
|
|
3162
|
+
});
|
|
3163
|
+
return activeObservers.length > 0;
|
|
3164
|
+
};
|
|
3165
|
+
ResizeObserverController2.prototype.connect_ = function() {
|
|
3166
|
+
if (!isBrowser$1 || this.connected_) {
|
|
3167
|
+
return;
|
|
3168
|
+
}
|
|
3169
|
+
document.addEventListener("transitionend", this.onTransitionEnd_);
|
|
3170
|
+
window.addEventListener("resize", this.refresh);
|
|
3171
|
+
if (mutationObserverSupported) {
|
|
3172
|
+
this.mutationsObserver_ = new MutationObserver(this.refresh);
|
|
3173
|
+
this.mutationsObserver_.observe(document, {
|
|
3174
|
+
attributes: true,
|
|
3175
|
+
childList: true,
|
|
3176
|
+
characterData: true,
|
|
3177
|
+
subtree: true
|
|
3178
|
+
});
|
|
3179
|
+
} else {
|
|
3180
|
+
document.addEventListener("DOMSubtreeModified", this.refresh);
|
|
3181
|
+
this.mutationEventsAdded_ = true;
|
|
3182
|
+
}
|
|
3183
|
+
this.connected_ = true;
|
|
3184
|
+
};
|
|
3185
|
+
ResizeObserverController2.prototype.disconnect_ = function() {
|
|
3186
|
+
if (!isBrowser$1 || !this.connected_) {
|
|
3187
|
+
return;
|
|
3188
|
+
}
|
|
3189
|
+
document.removeEventListener("transitionend", this.onTransitionEnd_);
|
|
3190
|
+
window.removeEventListener("resize", this.refresh);
|
|
3191
|
+
if (this.mutationsObserver_) {
|
|
3192
|
+
this.mutationsObserver_.disconnect();
|
|
3193
|
+
}
|
|
3194
|
+
if (this.mutationEventsAdded_) {
|
|
3195
|
+
document.removeEventListener("DOMSubtreeModified", this.refresh);
|
|
3196
|
+
}
|
|
3197
|
+
this.mutationsObserver_ = null;
|
|
3198
|
+
this.mutationEventsAdded_ = false;
|
|
3199
|
+
this.connected_ = false;
|
|
3200
|
+
};
|
|
3201
|
+
ResizeObserverController2.prototype.onTransitionEnd_ = function(_a) {
|
|
3202
|
+
var _b = _a.propertyName, propertyName = _b === void 0 ? "" : _b;
|
|
3203
|
+
var isReflowProperty = transitionKeys.some(function(key) {
|
|
3204
|
+
return !!~propertyName.indexOf(key);
|
|
3205
|
+
});
|
|
3206
|
+
if (isReflowProperty) {
|
|
3207
|
+
this.refresh();
|
|
3208
|
+
}
|
|
3209
|
+
};
|
|
3210
|
+
ResizeObserverController2.getInstance = function() {
|
|
3211
|
+
if (!this.instance_) {
|
|
3212
|
+
this.instance_ = new ResizeObserverController2();
|
|
3213
|
+
}
|
|
3214
|
+
return this.instance_;
|
|
3215
|
+
};
|
|
3216
|
+
ResizeObserverController2.instance_ = null;
|
|
3217
|
+
return ResizeObserverController2;
|
|
3218
|
+
}()
|
|
3219
|
+
);
|
|
3190
3220
|
var defineConfigurable = function(target, props) {
|
|
3191
3221
|
for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {
|
|
3192
3222
|
var key = _a[_i];
|
|
@@ -3302,129 +3332,141 @@ function createReadOnlyRect(_a) {
|
|
|
3302
3332
|
function createRectInit(x, y, width, height) {
|
|
3303
3333
|
return { x, y, width, height };
|
|
3304
3334
|
}
|
|
3305
|
-
var ResizeObservation =
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
}
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
var
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3335
|
+
var ResizeObservation = (
|
|
3336
|
+
/** @class */
|
|
3337
|
+
function() {
|
|
3338
|
+
function ResizeObservation2(target) {
|
|
3339
|
+
this.broadcastWidth = 0;
|
|
3340
|
+
this.broadcastHeight = 0;
|
|
3341
|
+
this.contentRect_ = createRectInit(0, 0, 0, 0);
|
|
3342
|
+
this.target = target;
|
|
3343
|
+
}
|
|
3344
|
+
ResizeObservation2.prototype.isActive = function() {
|
|
3345
|
+
var rect = getContentRect(this.target);
|
|
3346
|
+
this.contentRect_ = rect;
|
|
3347
|
+
return rect.width !== this.broadcastWidth || rect.height !== this.broadcastHeight;
|
|
3348
|
+
};
|
|
3349
|
+
ResizeObservation2.prototype.broadcastRect = function() {
|
|
3350
|
+
var rect = this.contentRect_;
|
|
3351
|
+
this.broadcastWidth = rect.width;
|
|
3352
|
+
this.broadcastHeight = rect.height;
|
|
3353
|
+
return rect;
|
|
3354
|
+
};
|
|
3355
|
+
return ResizeObservation2;
|
|
3356
|
+
}()
|
|
3357
|
+
);
|
|
3358
|
+
var ResizeObserverEntry = (
|
|
3359
|
+
/** @class */
|
|
3360
|
+
/* @__PURE__ */ function() {
|
|
3361
|
+
function ResizeObserverEntry2(target, rectInit) {
|
|
3362
|
+
var contentRect = createReadOnlyRect(rectInit);
|
|
3363
|
+
defineConfigurable(this, { target, contentRect });
|
|
3364
|
+
}
|
|
3365
|
+
return ResizeObserverEntry2;
|
|
3366
|
+
}()
|
|
3367
|
+
);
|
|
3368
|
+
var ResizeObserverSPI = (
|
|
3369
|
+
/** @class */
|
|
3370
|
+
function() {
|
|
3371
|
+
function ResizeObserverSPI2(callback, controller, callbackCtx) {
|
|
3372
|
+
this.activeObservations_ = [];
|
|
3373
|
+
this.observations_ = new MapShim();
|
|
3374
|
+
if (typeof callback !== "function") {
|
|
3375
|
+
throw new TypeError("The callback provided as parameter 1 is not a function.");
|
|
3376
|
+
}
|
|
3377
|
+
this.callback_ = callback;
|
|
3378
|
+
this.controller_ = controller;
|
|
3379
|
+
this.callbackCtx_ = callbackCtx;
|
|
3380
|
+
}
|
|
3381
|
+
ResizeObserverSPI2.prototype.observe = function(target) {
|
|
3382
|
+
if (!arguments.length) {
|
|
3383
|
+
throw new TypeError("1 argument required, but only 0 present.");
|
|
3384
|
+
}
|
|
3385
|
+
if (typeof Element === "undefined" || !(Element instanceof Object)) {
|
|
3386
|
+
return;
|
|
3387
|
+
}
|
|
3388
|
+
if (!(target instanceof getWindowOf(target).Element)) {
|
|
3389
|
+
throw new TypeError('parameter 1 is not of type "Element".');
|
|
3390
|
+
}
|
|
3391
|
+
var observations = this.observations_;
|
|
3392
|
+
if (observations.has(target)) {
|
|
3393
|
+
return;
|
|
3394
|
+
}
|
|
3395
|
+
observations.set(target, new ResizeObservation(target));
|
|
3396
|
+
this.controller_.addObserver(this);
|
|
3397
|
+
this.controller_.refresh();
|
|
3398
|
+
};
|
|
3399
|
+
ResizeObserverSPI2.prototype.unobserve = function(target) {
|
|
3400
|
+
if (!arguments.length) {
|
|
3401
|
+
throw new TypeError("1 argument required, but only 0 present.");
|
|
3402
|
+
}
|
|
3403
|
+
if (typeof Element === "undefined" || !(Element instanceof Object)) {
|
|
3404
|
+
return;
|
|
3405
|
+
}
|
|
3406
|
+
if (!(target instanceof getWindowOf(target).Element)) {
|
|
3407
|
+
throw new TypeError('parameter 1 is not of type "Element".');
|
|
3408
|
+
}
|
|
3409
|
+
var observations = this.observations_;
|
|
3410
|
+
if (!observations.has(target)) {
|
|
3411
|
+
return;
|
|
3412
|
+
}
|
|
3413
|
+
observations.delete(target);
|
|
3414
|
+
if (!observations.size) {
|
|
3415
|
+
this.controller_.removeObserver(this);
|
|
3416
|
+
}
|
|
3417
|
+
};
|
|
3418
|
+
ResizeObserverSPI2.prototype.disconnect = function() {
|
|
3419
|
+
this.clearActive();
|
|
3420
|
+
this.observations_.clear();
|
|
3377
3421
|
this.controller_.removeObserver(this);
|
|
3378
|
-
}
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
if (
|
|
3390
|
-
|
|
3422
|
+
};
|
|
3423
|
+
ResizeObserverSPI2.prototype.gatherActive = function() {
|
|
3424
|
+
var _this = this;
|
|
3425
|
+
this.clearActive();
|
|
3426
|
+
this.observations_.forEach(function(observation) {
|
|
3427
|
+
if (observation.isActive()) {
|
|
3428
|
+
_this.activeObservations_.push(observation);
|
|
3429
|
+
}
|
|
3430
|
+
});
|
|
3431
|
+
};
|
|
3432
|
+
ResizeObserverSPI2.prototype.broadcastActive = function() {
|
|
3433
|
+
if (!this.hasActive()) {
|
|
3434
|
+
return;
|
|
3391
3435
|
}
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
}
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
ResizeObserverSPI2.prototype.hasActive = function() {
|
|
3409
|
-
return this.activeObservations_.length > 0;
|
|
3410
|
-
};
|
|
3411
|
-
return ResizeObserverSPI2;
|
|
3412
|
-
}();
|
|
3436
|
+
var ctx2 = this.callbackCtx_;
|
|
3437
|
+
var entries = this.activeObservations_.map(function(observation) {
|
|
3438
|
+
return new ResizeObserverEntry(observation.target, observation.broadcastRect());
|
|
3439
|
+
});
|
|
3440
|
+
this.callback_.call(ctx2, entries, ctx2);
|
|
3441
|
+
this.clearActive();
|
|
3442
|
+
};
|
|
3443
|
+
ResizeObserverSPI2.prototype.clearActive = function() {
|
|
3444
|
+
this.activeObservations_.splice(0);
|
|
3445
|
+
};
|
|
3446
|
+
ResizeObserverSPI2.prototype.hasActive = function() {
|
|
3447
|
+
return this.activeObservations_.length > 0;
|
|
3448
|
+
};
|
|
3449
|
+
return ResizeObserverSPI2;
|
|
3450
|
+
}()
|
|
3451
|
+
);
|
|
3413
3452
|
var observers = typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : new MapShim();
|
|
3414
|
-
var ResizeObserver$1 =
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
}
|
|
3453
|
+
var ResizeObserver$1 = (
|
|
3454
|
+
/** @class */
|
|
3455
|
+
/* @__PURE__ */ function() {
|
|
3456
|
+
function ResizeObserver2(callback) {
|
|
3457
|
+
if (!(this instanceof ResizeObserver2)) {
|
|
3458
|
+
throw new TypeError("Cannot call a class as a function.");
|
|
3459
|
+
}
|
|
3460
|
+
if (!arguments.length) {
|
|
3461
|
+
throw new TypeError("1 argument required, but only 0 present.");
|
|
3462
|
+
}
|
|
3463
|
+
var controller = ResizeObserverController.getInstance();
|
|
3464
|
+
var observer = new ResizeObserverSPI(callback, controller, this);
|
|
3465
|
+
observers.set(this, observer);
|
|
3466
|
+
}
|
|
3467
|
+
return ResizeObserver2;
|
|
3468
|
+
}()
|
|
3469
|
+
);
|
|
3428
3470
|
[
|
|
3429
3471
|
"observe",
|
|
3430
3472
|
"unobserve",
|
|
@@ -3435,7 +3477,7 @@ var ResizeObserver$1 = function() {
|
|
|
3435
3477
|
return (_a = observers.get(this))[method4].apply(_a, arguments);
|
|
3436
3478
|
};
|
|
3437
3479
|
});
|
|
3438
|
-
var index$
|
|
3480
|
+
var index$j = function() {
|
|
3439
3481
|
if (typeof global$1.ResizeObserver !== "undefined") {
|
|
3440
3482
|
return global$1.ResizeObserver;
|
|
3441
3483
|
}
|
|
@@ -3458,7 +3500,7 @@ function useSize(target) {
|
|
|
3458
3500
|
if (!el) {
|
|
3459
3501
|
return;
|
|
3460
3502
|
}
|
|
3461
|
-
var resizeObserver = new index$
|
|
3503
|
+
var resizeObserver = new index$j(function(entries) {
|
|
3462
3504
|
entries.forEach(function(entry) {
|
|
3463
3505
|
var _a2 = entry.target, clientWidth = _a2.clientWidth, clientHeight = _a2.clientHeight;
|
|
3464
3506
|
setState({
|
|
@@ -3476,7 +3518,7 @@ function useSize(target) {
|
|
|
3476
3518
|
}
|
|
3477
3519
|
function useThrottleFn(fn, options) {
|
|
3478
3520
|
var _a;
|
|
3479
|
-
if (isDev$
|
|
3521
|
+
if (isDev$1) {
|
|
3480
3522
|
if (!isFunction$1(fn)) {
|
|
3481
3523
|
console.error("useThrottleFn expected parameter is a function, got ".concat(typeof fn));
|
|
3482
3524
|
}
|
|
@@ -3484,7 +3526,7 @@ function useThrottleFn(fn, options) {
|
|
|
3484
3526
|
var fnRef = useLatest(fn);
|
|
3485
3527
|
var wait = (_a = options === null || options === void 0 ? void 0 : options.wait) !== null && _a !== void 0 ? _a : 1e3;
|
|
3486
3528
|
var throttled = useMemo(function() {
|
|
3487
|
-
return
|
|
3529
|
+
return throttle$2(function() {
|
|
3488
3530
|
var args = [];
|
|
3489
3531
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
3490
3532
|
args[_i] = arguments[_i];
|
|
@@ -3519,7 +3561,6 @@ var useTimeout = function(fn, delay) {
|
|
|
3519
3561
|
return clear2;
|
|
3520
3562
|
};
|
|
3521
3563
|
const useTimeout$1 = useTimeout;
|
|
3522
|
-
const mask = "";
|
|
3523
3564
|
const MIN_DISTANCE = 10;
|
|
3524
3565
|
function getDirection(x, y) {
|
|
3525
3566
|
if (x > y && x > MIN_DISTANCE) {
|
|
@@ -4254,10 +4295,10 @@ function parsePercentage(str) {
|
|
|
4254
4295
|
return 1;
|
|
4255
4296
|
return int / 100;
|
|
4256
4297
|
}
|
|
4257
|
-
function colorToRgba(
|
|
4258
|
-
let int32Color = normalizeColor(
|
|
4298
|
+
function colorToRgba(input) {
|
|
4299
|
+
let int32Color = normalizeColor(input);
|
|
4259
4300
|
if (int32Color === null)
|
|
4260
|
-
return
|
|
4301
|
+
return input;
|
|
4261
4302
|
int32Color = int32Color || 0;
|
|
4262
4303
|
let r = (int32Color & 4278190080) >>> 24;
|
|
4263
4304
|
let g = (int32Color & 16711680) >>> 16;
|
|
@@ -4285,51 +4326,51 @@ const createInterpolator = (range3, output, extrapolate) => {
|
|
|
4285
4326
|
const extrapolateLeft = config2.extrapolateLeft || config2.extrapolate || "extend";
|
|
4286
4327
|
const extrapolateRight = config2.extrapolateRight || config2.extrapolate || "extend";
|
|
4287
4328
|
const easing = config2.easing || ((t) => t);
|
|
4288
|
-
return (
|
|
4289
|
-
const range4 = findRange(
|
|
4290
|
-
return interpolate(
|
|
4329
|
+
return (input) => {
|
|
4330
|
+
const range4 = findRange(input, inputRange);
|
|
4331
|
+
return interpolate(input, inputRange[range4], inputRange[range4 + 1], outputRange[range4], outputRange[range4 + 1], easing, extrapolateLeft, extrapolateRight, config2.map);
|
|
4291
4332
|
};
|
|
4292
4333
|
};
|
|
4293
|
-
function interpolate(
|
|
4294
|
-
let
|
|
4295
|
-
if (
|
|
4334
|
+
function interpolate(input, inputMin, inputMax, outputMin, outputMax, easing, extrapolateLeft, extrapolateRight, map) {
|
|
4335
|
+
let result = map ? map(input) : input;
|
|
4336
|
+
if (result < inputMin) {
|
|
4296
4337
|
if (extrapolateLeft === "identity")
|
|
4297
|
-
return
|
|
4338
|
+
return result;
|
|
4298
4339
|
else if (extrapolateLeft === "clamp")
|
|
4299
|
-
|
|
4340
|
+
result = inputMin;
|
|
4300
4341
|
}
|
|
4301
|
-
if (
|
|
4342
|
+
if (result > inputMax) {
|
|
4302
4343
|
if (extrapolateRight === "identity")
|
|
4303
|
-
return
|
|
4344
|
+
return result;
|
|
4304
4345
|
else if (extrapolateRight === "clamp")
|
|
4305
|
-
|
|
4346
|
+
result = inputMax;
|
|
4306
4347
|
}
|
|
4307
4348
|
if (outputMin === outputMax)
|
|
4308
4349
|
return outputMin;
|
|
4309
4350
|
if (inputMin === inputMax)
|
|
4310
|
-
return
|
|
4351
|
+
return input <= inputMin ? outputMin : outputMax;
|
|
4311
4352
|
if (inputMin === -Infinity)
|
|
4312
|
-
|
|
4353
|
+
result = -result;
|
|
4313
4354
|
else if (inputMax === Infinity)
|
|
4314
|
-
|
|
4355
|
+
result = result - inputMin;
|
|
4315
4356
|
else
|
|
4316
|
-
|
|
4317
|
-
|
|
4357
|
+
result = (result - inputMin) / (inputMax - inputMin);
|
|
4358
|
+
result = easing(result);
|
|
4318
4359
|
if (outputMin === -Infinity)
|
|
4319
|
-
|
|
4360
|
+
result = -result;
|
|
4320
4361
|
else if (outputMax === Infinity)
|
|
4321
|
-
|
|
4362
|
+
result = result + outputMin;
|
|
4322
4363
|
else
|
|
4323
|
-
|
|
4324
|
-
return
|
|
4364
|
+
result = result * (outputMax - outputMin) + outputMin;
|
|
4365
|
+
return result;
|
|
4325
4366
|
}
|
|
4326
|
-
function findRange(
|
|
4367
|
+
function findRange(input, inputRange) {
|
|
4327
4368
|
for (var i2 = 1; i2 < inputRange.length - 1; ++i2)
|
|
4328
|
-
if (inputRange[i2] >=
|
|
4369
|
+
if (inputRange[i2] >= input)
|
|
4329
4370
|
break;
|
|
4330
4371
|
return i2 - 1;
|
|
4331
4372
|
}
|
|
4332
|
-
const steps
|
|
4373
|
+
const steps = (steps2, direction = "end") => (progress) => {
|
|
4333
4374
|
progress = direction === "end" ? Math.min(progress, 0.999) : Math.max(progress, 1e-3);
|
|
4334
4375
|
const expanded = progress * steps2;
|
|
4335
4376
|
const rounded = direction === "end" ? Math.floor(expanded) : Math.ceil(expanded);
|
|
@@ -4385,7 +4426,7 @@ const easings = {
|
|
|
4385
4426
|
easeInBounce: (x) => 1 - bounceOut(1 - x),
|
|
4386
4427
|
easeOutBounce: bounceOut,
|
|
4387
4428
|
easeInOutBounce: (x) => x < 0.5 ? (1 - bounceOut(1 - 2 * x)) / 2 : (1 + bounceOut(2 * x - 1)) / 2,
|
|
4388
|
-
steps
|
|
4429
|
+
steps
|
|
4389
4430
|
};
|
|
4390
4431
|
function _extends$4() {
|
|
4391
4432
|
_extends$4 = Object.assign ? Object.assign.bind() : function(target) {
|
|
@@ -4471,10 +4512,10 @@ const colorRegex = /(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[
|
|
|
4471
4512
|
const unitRegex = new RegExp(`(${numberRegex.source})(%|[a-z]+)`, "i");
|
|
4472
4513
|
const rgbaRegex = /rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi;
|
|
4473
4514
|
const cssVariableRegex = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;
|
|
4474
|
-
const variableToRgba = (
|
|
4475
|
-
const [token, fallback] = parseCSSVariable(
|
|
4515
|
+
const variableToRgba = (input) => {
|
|
4516
|
+
const [token, fallback] = parseCSSVariable(input);
|
|
4476
4517
|
if (!token || isSSR()) {
|
|
4477
|
-
return
|
|
4518
|
+
return input;
|
|
4478
4519
|
}
|
|
4479
4520
|
const value = window.getComputedStyle(document.documentElement).getPropertyValue(token);
|
|
4480
4521
|
if (value) {
|
|
@@ -4484,14 +4525,14 @@ const variableToRgba = (input2) => {
|
|
|
4484
4525
|
if (_value) {
|
|
4485
4526
|
return _value;
|
|
4486
4527
|
} else {
|
|
4487
|
-
return
|
|
4528
|
+
return input;
|
|
4488
4529
|
}
|
|
4489
4530
|
} else if (fallback && cssVariableRegex.test(fallback)) {
|
|
4490
4531
|
return variableToRgba(fallback);
|
|
4491
4532
|
} else if (fallback) {
|
|
4492
4533
|
return fallback;
|
|
4493
4534
|
}
|
|
4494
|
-
return
|
|
4535
|
+
return input;
|
|
4495
4536
|
};
|
|
4496
4537
|
const parseCSSVariable = (current) => {
|
|
4497
4538
|
const match = cssVariableRegex.exec(current);
|
|
@@ -4518,11 +4559,11 @@ const createStringInterpolator = (config2) => {
|
|
|
4518
4559
|
const interpolators = outputRanges.map((output2) => createInterpolator(_extends$4({}, config2, {
|
|
4519
4560
|
output: output2
|
|
4520
4561
|
})));
|
|
4521
|
-
return (
|
|
4562
|
+
return (input) => {
|
|
4522
4563
|
var _output$find;
|
|
4523
4564
|
const missingUnit = !unitRegex.test(output[0]) && ((_output$find = output.find((value) => unitRegex.test(value))) == null ? void 0 : _output$find.replace(numberRegex, ""));
|
|
4524
4565
|
let i2 = 0;
|
|
4525
|
-
return output[0].replace(numberRegex, () => `${interpolators[i2++](
|
|
4566
|
+
return output[0].replace(numberRegex, () => `${interpolators[i2++](input)}${missingUnit || ""}`).replace(rgbaRegex, rgbaRound);
|
|
4526
4567
|
};
|
|
4527
4568
|
};
|
|
4528
4569
|
const prefix = "react-spring: ";
|
|
@@ -5216,7 +5257,7 @@ function scheduleProps(callId, {
|
|
|
5216
5257
|
}
|
|
5217
5258
|
});
|
|
5218
5259
|
}
|
|
5219
|
-
const getCombinedResult = (target, results) => results.length == 1 ? results[0] : results.some((
|
|
5260
|
+
const getCombinedResult = (target, results) => results.length == 1 ? results[0] : results.some((result) => result.cancelled) ? getCancelledResult(target.get()) : results.every((result) => result.noop) ? getNoopResult(target.get()) : getFinishedResult(target.get(), results.every((result) => result.finished));
|
|
5220
5261
|
const getNoopResult = (value) => ({
|
|
5221
5262
|
value,
|
|
5222
5263
|
noop: true,
|
|
@@ -5281,17 +5322,17 @@ function runAsync(to2, props, state, target) {
|
|
|
5281
5322
|
props2[key] = value;
|
|
5282
5323
|
}
|
|
5283
5324
|
});
|
|
5284
|
-
const
|
|
5325
|
+
const result2 = await target.start(props2);
|
|
5285
5326
|
bailIfEnded(bailSignal);
|
|
5286
5327
|
if (state.paused) {
|
|
5287
5328
|
await new Promise((resume) => {
|
|
5288
5329
|
state.resumeQueue.add(resume);
|
|
5289
5330
|
});
|
|
5290
5331
|
}
|
|
5291
|
-
return
|
|
5332
|
+
return result2;
|
|
5292
5333
|
})();
|
|
5293
5334
|
};
|
|
5294
|
-
let
|
|
5335
|
+
let result;
|
|
5295
5336
|
if (globals.skipAnimation) {
|
|
5296
5337
|
stopAsync(state);
|
|
5297
5338
|
return getFinishedResult(target, false);
|
|
@@ -5308,12 +5349,12 @@ function runAsync(to2, props, state, target) {
|
|
|
5308
5349
|
animating = Promise.resolve(to2(animate, target.stop.bind(target)));
|
|
5309
5350
|
}
|
|
5310
5351
|
await Promise.all([animating.then(preventBail), bailPromise]);
|
|
5311
|
-
|
|
5352
|
+
result = getFinishedResult(target.get(), true, false);
|
|
5312
5353
|
} catch (err) {
|
|
5313
5354
|
if (err instanceof BailSignal) {
|
|
5314
|
-
|
|
5355
|
+
result = err.result;
|
|
5315
5356
|
} else if (err instanceof SkipAnimationSignal) {
|
|
5316
|
-
|
|
5357
|
+
result = err.result;
|
|
5317
5358
|
} else {
|
|
5318
5359
|
throw err;
|
|
5319
5360
|
}
|
|
@@ -5326,10 +5367,10 @@ function runAsync(to2, props, state, target) {
|
|
|
5326
5367
|
}
|
|
5327
5368
|
if (is.fun(onRest)) {
|
|
5328
5369
|
raf.batchedUpdates(() => {
|
|
5329
|
-
onRest(
|
|
5370
|
+
onRest(result, target, target.item);
|
|
5330
5371
|
});
|
|
5331
5372
|
}
|
|
5332
|
-
return
|
|
5373
|
+
return result;
|
|
5333
5374
|
})();
|
|
5334
5375
|
}
|
|
5335
5376
|
function stopAsync(state, cancelId) {
|
|
@@ -5736,14 +5777,14 @@ class SpringValue extends FrameValue {
|
|
|
5736
5777
|
},
|
|
5737
5778
|
start: this._merge.bind(this, range3)
|
|
5738
5779
|
}
|
|
5739
|
-
}).then((
|
|
5740
|
-
if (props.loop &&
|
|
5780
|
+
}).then((result) => {
|
|
5781
|
+
if (props.loop && result.finished && !(isLoop && result.noop)) {
|
|
5741
5782
|
const nextProps = createLoopUpdate(props);
|
|
5742
5783
|
if (nextProps) {
|
|
5743
5784
|
return this._update(nextProps, true);
|
|
5744
5785
|
}
|
|
5745
5786
|
}
|
|
5746
|
-
return
|
|
5787
|
+
return result;
|
|
5747
5788
|
});
|
|
5748
5789
|
}
|
|
5749
5790
|
_merge(range3, props, resolve) {
|
|
@@ -5855,17 +5896,17 @@ class SpringValue extends FrameValue {
|
|
|
5855
5896
|
onRest
|
|
5856
5897
|
} = anim;
|
|
5857
5898
|
each(ACTIVE_EVENTS, (type4) => mergeActiveFn(this, props, type4));
|
|
5858
|
-
const
|
|
5859
|
-
flushCalls(this._pendingCalls,
|
|
5899
|
+
const result = getFinishedResult(this, checkFinished(this, prevTo));
|
|
5900
|
+
flushCalls(this._pendingCalls, result);
|
|
5860
5901
|
this._pendingCalls.add(resolve);
|
|
5861
5902
|
if (anim.changed)
|
|
5862
5903
|
raf.batchedUpdates(() => {
|
|
5863
5904
|
anim.changed = !reset;
|
|
5864
|
-
onRest == null ? void 0 : onRest(
|
|
5905
|
+
onRest == null ? void 0 : onRest(result, this);
|
|
5865
5906
|
if (reset) {
|
|
5866
|
-
callProp(defaultProps2.onRest,
|
|
5907
|
+
callProp(defaultProps2.onRest, result);
|
|
5867
5908
|
} else {
|
|
5868
|
-
anim.onStart == null ? void 0 : anim.onStart(
|
|
5909
|
+
anim.onStart == null ? void 0 : anim.onStart(result, this);
|
|
5869
5910
|
}
|
|
5870
5911
|
});
|
|
5871
5912
|
}
|
|
@@ -5985,11 +6026,11 @@ class SpringValue extends FrameValue {
|
|
|
5985
6026
|
type: "idle",
|
|
5986
6027
|
parent: this
|
|
5987
6028
|
});
|
|
5988
|
-
const
|
|
5989
|
-
flushCalls(this._pendingCalls,
|
|
6029
|
+
const result = cancel ? getCancelledResult(this.get()) : getFinishedResult(this.get(), checkFinished(this, goal != null ? goal : anim.to));
|
|
6030
|
+
flushCalls(this._pendingCalls, result);
|
|
5990
6031
|
if (anim.changed) {
|
|
5991
6032
|
anim.changed = false;
|
|
5992
|
-
sendEvent(this, "onRest",
|
|
6033
|
+
sendEvent(this, "onRest", result, this);
|
|
5993
6034
|
}
|
|
5994
6035
|
}
|
|
5995
6036
|
}
|
|
@@ -6049,7 +6090,7 @@ function sendEvent(target, type4, ...args) {
|
|
|
6049
6090
|
}
|
|
6050
6091
|
const BATCHED_EVENTS = ["onStart", "onChange", "onRest"];
|
|
6051
6092
|
let nextId = 1;
|
|
6052
|
-
|
|
6093
|
+
let Controller$1 = class Controller {
|
|
6053
6094
|
constructor(props, flush2) {
|
|
6054
6095
|
this.id = nextId++;
|
|
6055
6096
|
this.springs = {};
|
|
@@ -6176,24 +6217,24 @@ class Controller$1 {
|
|
|
6176
6217
|
const changed = this._changed.size > 0;
|
|
6177
6218
|
if (active && !this._started || changed && !this._started) {
|
|
6178
6219
|
this._started = true;
|
|
6179
|
-
flush(onStart, ([onStart2,
|
|
6180
|
-
|
|
6181
|
-
onStart2(
|
|
6220
|
+
flush(onStart, ([onStart2, result]) => {
|
|
6221
|
+
result.value = this.get();
|
|
6222
|
+
onStart2(result, this, this._item);
|
|
6182
6223
|
});
|
|
6183
6224
|
}
|
|
6184
6225
|
const idle = !active && this._started;
|
|
6185
6226
|
const values = changed || idle && onRest.size ? this.get() : null;
|
|
6186
6227
|
if (changed && onChange.size) {
|
|
6187
|
-
flush(onChange, ([onChange2,
|
|
6188
|
-
|
|
6189
|
-
onChange2(
|
|
6228
|
+
flush(onChange, ([onChange2, result]) => {
|
|
6229
|
+
result.value = values;
|
|
6230
|
+
onChange2(result, this, this._item);
|
|
6190
6231
|
});
|
|
6191
6232
|
}
|
|
6192
6233
|
if (idle) {
|
|
6193
6234
|
this._started = false;
|
|
6194
|
-
flush(onRest, ([onRest2,
|
|
6195
|
-
|
|
6196
|
-
onRest2(
|
|
6235
|
+
flush(onRest, ([onRest2, result]) => {
|
|
6236
|
+
result.value = values;
|
|
6237
|
+
onRest2(result, this, this._item);
|
|
6197
6238
|
});
|
|
6198
6239
|
}
|
|
6199
6240
|
}
|
|
@@ -6209,7 +6250,7 @@ class Controller$1 {
|
|
|
6209
6250
|
return;
|
|
6210
6251
|
raf.onFrame(this._onFrame);
|
|
6211
6252
|
}
|
|
6212
|
-
}
|
|
6253
|
+
};
|
|
6213
6254
|
function flushUpdateQueue(ctrl, queue) {
|
|
6214
6255
|
return Promise.all(queue.map((props) => flushUpdate(ctrl, props))).then((results) => getCombinedResult(ctrl, results));
|
|
6215
6256
|
}
|
|
@@ -6246,12 +6287,12 @@ async function flushUpdate(ctrl, props, isLoop) {
|
|
|
6246
6287
|
finished,
|
|
6247
6288
|
cancelled
|
|
6248
6289
|
}) => {
|
|
6249
|
-
const
|
|
6250
|
-
if (
|
|
6290
|
+
const result2 = queue.get(handler);
|
|
6291
|
+
if (result2) {
|
|
6251
6292
|
if (!finished)
|
|
6252
|
-
|
|
6293
|
+
result2.finished = false;
|
|
6253
6294
|
if (cancelled)
|
|
6254
|
-
|
|
6295
|
+
result2.cancelled = true;
|
|
6255
6296
|
} else {
|
|
6256
6297
|
queue.set(handler, {
|
|
6257
6298
|
value: null,
|
|
@@ -6299,8 +6340,8 @@ async function flushUpdate(ctrl, props, isLoop) {
|
|
|
6299
6340
|
state.resumeQueue.add(resume);
|
|
6300
6341
|
});
|
|
6301
6342
|
}
|
|
6302
|
-
const
|
|
6303
|
-
if (loop2 &&
|
|
6343
|
+
const result = getCombinedResult(ctrl, await Promise.all(promises));
|
|
6344
|
+
if (loop2 && result.finished && !(isLoop && result.noop)) {
|
|
6304
6345
|
const nextProps = createLoopUpdate(props, loop2, to2);
|
|
6305
6346
|
if (nextProps) {
|
|
6306
6347
|
prepareKeys(ctrl, [nextProps]);
|
|
@@ -6308,9 +6349,9 @@ async function flushUpdate(ctrl, props, isLoop) {
|
|
|
6308
6349
|
}
|
|
6309
6350
|
}
|
|
6310
6351
|
if (onResolve) {
|
|
6311
|
-
raf.batchedUpdates(() => onResolve(
|
|
6352
|
+
raf.batchedUpdates(() => onResolve(result, ctrl, ctrl.item));
|
|
6312
6353
|
}
|
|
6313
|
-
return
|
|
6354
|
+
return result;
|
|
6314
6355
|
}
|
|
6315
6356
|
function getSprings(ctrl, props) {
|
|
6316
6357
|
const springs = _extends$2({}, ctrl.springs);
|
|
@@ -6813,7 +6854,7 @@ class AnimatedStyle extends AnimatedObject {
|
|
|
6813
6854
|
return;
|
|
6814
6855
|
const unit = pxTransforms.test(key) ? "px" : degTransforms.test(key) ? "deg" : "";
|
|
6815
6856
|
inputs.push(toArray$3(value));
|
|
6816
|
-
transforms.push(key === "rotate3d" ? ([x2, y2, z2, deg]) => [`rotate3d(${x2},${y2},${z2},${addUnit(deg, unit)})`, isValueIdentity(deg, 0)] : (
|
|
6857
|
+
transforms.push(key === "rotate3d" ? ([x2, y2, z2, deg]) => [`rotate3d(${x2},${y2},${z2},${addUnit(deg, unit)})`, isValueIdentity(deg, 0)] : (input) => [`${key}(${input.map((v) => addUnit(v, unit)).join(",")})`, isValueIdentity(input, key.startsWith("scale") ? 1 : 0)]);
|
|
6817
6858
|
}
|
|
6818
6859
|
});
|
|
6819
6860
|
if (inputs.length) {
|
|
@@ -6835,9 +6876,9 @@ class FluidTransform extends FluidValue {
|
|
|
6835
6876
|
_get() {
|
|
6836
6877
|
let transform = "";
|
|
6837
6878
|
let identity2 = true;
|
|
6838
|
-
each(this.inputs, (
|
|
6839
|
-
const arg1 = getFluidValue(
|
|
6840
|
-
const [t, id] = this.transforms[i2](is.arr(arg1) ? arg1 :
|
|
6879
|
+
each(this.inputs, (input, i2) => {
|
|
6880
|
+
const arg1 = getFluidValue(input[0]);
|
|
6881
|
+
const [t, id] = this.transforms[i2](is.arr(arg1) ? arg1 : input.map(getFluidValue));
|
|
6841
6882
|
transform += " " + t;
|
|
6842
6883
|
identity2 = identity2 && id;
|
|
6843
6884
|
});
|
|
@@ -6845,11 +6886,11 @@ class FluidTransform extends FluidValue {
|
|
|
6845
6886
|
}
|
|
6846
6887
|
observerAdded(count) {
|
|
6847
6888
|
if (count == 1)
|
|
6848
|
-
each(this.inputs, (
|
|
6889
|
+
each(this.inputs, (input) => each(input, (value) => hasFluidValue(value) && addFluidObserver(value, this)));
|
|
6849
6890
|
}
|
|
6850
6891
|
observerRemoved(count) {
|
|
6851
6892
|
if (count == 0)
|
|
6852
|
-
each(this.inputs, (
|
|
6893
|
+
each(this.inputs, (input) => each(input, (value) => hasFluidValue(value) && removeFluidObserver(value, this)));
|
|
6853
6894
|
}
|
|
6854
6895
|
eventObserved(event) {
|
|
6855
6896
|
if (event.type == "change") {
|
|
@@ -6941,7 +6982,7 @@ const defaultProps$15 = {
|
|
|
6941
6982
|
getContainer: null,
|
|
6942
6983
|
stopPropagation: ["click"]
|
|
6943
6984
|
};
|
|
6944
|
-
const Mask
|
|
6985
|
+
const Mask = (p) => {
|
|
6945
6986
|
const props = mergeProps(defaultProps$15, p);
|
|
6946
6987
|
const {
|
|
6947
6988
|
locale
|
|
@@ -6985,6 +7026,7 @@ const Mask$1 = (p) => {
|
|
|
6985
7026
|
const node = withStopPropagation(props.stopPropagation, withNativeProps(props, React__default.createElement(animated.div, {
|
|
6986
7027
|
className: classPrefix$1p,
|
|
6987
7028
|
ref,
|
|
7029
|
+
"aria-hidden": true,
|
|
6988
7030
|
style: Object.assign(Object.assign({}, props.style), {
|
|
6989
7031
|
background,
|
|
6990
7032
|
opacity,
|
|
@@ -7010,7 +7052,6 @@ const Mask$1 = (p) => {
|
|
|
7010
7052
|
destroyOnClose: props.destroyOnClose
|
|
7011
7053
|
}, renderToContainer(props.getContainer, node));
|
|
7012
7054
|
};
|
|
7013
|
-
const Mask = Mask$1;
|
|
7014
7055
|
function AddOutline(props) {
|
|
7015
7056
|
return /* @__PURE__ */ React$4.createElement("svg", Object.assign({
|
|
7016
7057
|
width: "1em",
|
|
@@ -7032,7 +7073,7 @@ function AddOutline(props) {
|
|
|
7032
7073
|
}, /* @__PURE__ */ React$4.createElement("g", {
|
|
7033
7074
|
id: "AddOutline-add"
|
|
7034
7075
|
}, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7035
|
-
id: "AddOutline
|
|
7076
|
+
id: "AddOutline-矩形",
|
|
7036
7077
|
fill: "#FFFFFF",
|
|
7037
7078
|
opacity: 0,
|
|
7038
7079
|
x: 0,
|
|
@@ -7041,7 +7082,7 @@ function AddOutline(props) {
|
|
|
7041
7082
|
height: 48
|
|
7042
7083
|
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7043
7084
|
d: "M25.1,6.5 C25.3209139,6.5 25.5,6.6790861 25.5,6.9 L25.5,22.5 L41.1,22.5 C41.3209139,22.5 41.5,22.6790861 41.5,22.9 L41.5,25.1 C41.5,25.3209139 41.3209139,25.5 41.1,25.5 L25.5,25.5 L25.5,41.1 C25.5,41.3209139 25.3209139,41.5 25.1,41.5 L22.9,41.5 C22.6790861,41.5 22.5,41.3209139 22.5,41.1 L22.5,25.5 L6.9,25.5 C6.6790861,25.5 6.5,25.3209139 6.5,25.1 L6.5,22.9 C6.5,22.6790861 6.6790861,22.5 6.9,22.5 L22.5,22.5 L22.5,6.9 C22.5,6.6790861 22.6790861,6.5 22.9,6.5 L25.1,6.5 Z",
|
|
7044
|
-
id: "AddOutline
|
|
7085
|
+
id: "AddOutline-路径",
|
|
7045
7086
|
fill: "currentColor",
|
|
7046
7087
|
fillRule: "nonzero"
|
|
7047
7088
|
}))));
|
|
@@ -7065,9 +7106,9 @@ function CheckCircleFill(props) {
|
|
|
7065
7106
|
fill: "none",
|
|
7066
7107
|
fillRule: "evenodd"
|
|
7067
7108
|
}, /* @__PURE__ */ React$4.createElement("g", {
|
|
7068
|
-
id: "CheckCircleFill
|
|
7109
|
+
id: "CheckCircleFill-编组"
|
|
7069
7110
|
}, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7070
|
-
id: "CheckCircleFill
|
|
7111
|
+
id: "CheckCircleFill-矩形",
|
|
7071
7112
|
fill: "#FFFFFF",
|
|
7072
7113
|
opacity: 0,
|
|
7073
7114
|
x: 0,
|
|
@@ -7076,7 +7117,7 @@ function CheckCircleFill(props) {
|
|
|
7076
7117
|
height: 48
|
|
7077
7118
|
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7078
7119
|
d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M35.8202936,17 L32.7086692,17 C32.6025922,17 32.500859,17.0421352 32.4258461,17.1171378 L32.4258461,17.1171378 L21.3922352,28.1492247 L16.3591562,23.1163755 C16.2841422,23.0413649 16.1824034,22.9992247 16.0763199,22.9992247 L16.0763199,22.9992247 L12.9653996,22.9992247 C12.859342,22.9992247 12.7576259,23.0413445 12.6826161,23.1163228 C12.5263737,23.2724998 12.5263207,23.5257658 12.6824977,23.6820082 C12.8583452,23.8579294 13.0341927,24.0338505 13.2100402,24.2097716 C13.2577488,24.2575002 13.3065097,24.3063074 13.3562592,24.3561283 L13.6661084,24.6666997 C14.3074913,25.3100963 15.0728595,26.0807873 15.8520136,26.8666654 L16.4372421,27.4571699 C18.2552812,29.2922548 19.9983838,31.0574343 20.2666114,31.3285298 L20.301004,31.3632341 C20.8867904,31.9490205 21.8365379,31.9490205 22.4223243,31.3632341 L22.4223243,31.3632341 L36.1031319,17.6828471 C36.1781492,17.6078322 36.2202936,17.5060887 36.2202936,17.4 C36.2202936,17.1790861 36.0412075,17 35.8202936,17 L35.8202936,17 Z",
|
|
7079
|
-
id: "CheckCircleFill
|
|
7120
|
+
id: "CheckCircleFill-形状结合",
|
|
7080
7121
|
fill: "currentColor",
|
|
7081
7122
|
fillRule: "nonzero"
|
|
7082
7123
|
}))));
|
|
@@ -7100,9 +7141,9 @@ function CheckOutline(props) {
|
|
|
7100
7141
|
fill: "none",
|
|
7101
7142
|
fillRule: "evenodd"
|
|
7102
7143
|
}, /* @__PURE__ */ React$4.createElement("g", {
|
|
7103
|
-
id: "CheckOutline
|
|
7144
|
+
id: "CheckOutline-编组"
|
|
7104
7145
|
}, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7105
|
-
id: "CheckOutline
|
|
7146
|
+
id: "CheckOutline-矩形",
|
|
7106
7147
|
fill: "#FFFFFF",
|
|
7107
7148
|
opacity: 0,
|
|
7108
7149
|
x: 0,
|
|
@@ -7111,7 +7152,7 @@ function CheckOutline(props) {
|
|
|
7111
7152
|
height: 48
|
|
7112
7153
|
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7113
7154
|
d: "M44.309608,12.6841286 L21.2180499,35.5661955 L21.2180499,35.5661955 C20.6343343,36.1446015 19.6879443,36.1446015 19.1042286,35.5661955 C19.0538201,35.5162456 19.0077648,35.4636155 18.9660627,35.4087682 C18.9113105,35.368106 18.8584669,35.3226694 18.808302,35.2729607 L3.6903839,20.2920499 C3.53346476,20.1365529 3.53231192,19.8832895 3.68780898,19.7263704 C3.7629255,19.6505669 3.86521855,19.6079227 3.97193622,19.6079227 L7.06238923,19.6079227 C7.16784214,19.6079227 7.26902895,19.6495648 7.34393561,19.7237896 L20.160443,32.4236157 L20.160443,32.4236157 L40.656066,12.115858 C40.7309719,12.0416387 40.8321549,12 40.9376034,12 L44.0280571,12 C44.248971,12 44.4280571,12.1790861 44.4280571,12.4 C44.4280571,12.5067183 44.3854124,12.609012 44.309608,12.6841286 Z",
|
|
7114
|
-
id: "CheckOutline
|
|
7155
|
+
id: "CheckOutline-路径",
|
|
7115
7156
|
fill: "currentColor",
|
|
7116
7157
|
fillRule: "nonzero"
|
|
7117
7158
|
}))));
|
|
@@ -7135,9 +7176,9 @@ function ClockCircleFill(props) {
|
|
|
7135
7176
|
fill: "none",
|
|
7136
7177
|
fillRule: "evenodd"
|
|
7137
7178
|
}, /* @__PURE__ */ React$4.createElement("g", {
|
|
7138
|
-
id: "ClockCircleFill
|
|
7179
|
+
id: "ClockCircleFill-编组"
|
|
7139
7180
|
}, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7140
|
-
id: "ClockCircleFill
|
|
7181
|
+
id: "ClockCircleFill-矩形",
|
|
7141
7182
|
fill: "#FFFFFF",
|
|
7142
7183
|
opacity: 0,
|
|
7143
7184
|
x: 0,
|
|
@@ -7146,7 +7187,7 @@ function ClockCircleFill(props) {
|
|
|
7146
7187
|
height: 48
|
|
7147
7188
|
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7148
7189
|
d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M24.6,14 L22.4,14 C22.1790861,14 22,14.1790861 22,14.4 L22,14.4 L22,23.1715729 L22.0065089,23.3850222 C22.0584325,24.2354066 22.4192395,25.0405598 23.0251263,25.6464466 L23.0251263,25.6464466 L31.1564971,33.7778175 C31.3127068,33.9340272 31.5659728,33.9340272 31.7221825,33.7778175 L31.7221825,33.7778175 L33.2778175,32.2221825 C33.4340272,32.0659728 33.4340272,31.8127068 33.2778175,31.6564971 L33.2778175,31.6564971 L25.1464466,23.5251263 L25.0952092,23.4650801 C25.0337142,23.38027 25,23.2776595 25,23.1715729 L25,23.1715729 L25,14.4 C25,14.1790861 24.8209139,14 24.6,14 L24.6,14 Z",
|
|
7149
|
-
id: "ClockCircleFill
|
|
7190
|
+
id: "ClockCircleFill-形状结合",
|
|
7150
7191
|
fill: "currentColor",
|
|
7151
7192
|
fillRule: "nonzero"
|
|
7152
7193
|
}))));
|
|
@@ -7170,9 +7211,9 @@ function CloseCircleFill(props) {
|
|
|
7170
7211
|
fill: "none",
|
|
7171
7212
|
fillRule: "evenodd"
|
|
7172
7213
|
}, /* @__PURE__ */ React$4.createElement("g", {
|
|
7173
|
-
id: "CloseCircleFill
|
|
7214
|
+
id: "CloseCircleFill-编组"
|
|
7174
7215
|
}, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7175
|
-
id: "CloseCircleFill
|
|
7216
|
+
id: "CloseCircleFill-矩形",
|
|
7176
7217
|
fill: "#FFFFFF",
|
|
7177
7218
|
opacity: 0,
|
|
7178
7219
|
x: 0,
|
|
@@ -7181,7 +7222,7 @@ function CloseCircleFill(props) {
|
|
|
7181
7222
|
height: 48
|
|
7182
7223
|
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7183
7224
|
d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M18.6753876,16 L15.5637812,16 C15.4576916,16 15.3559474,16.0421451 15.2809323,16.1171635 C15.124726,16.2733766 15.1247316,16.5266426 15.2809447,16.6828489 L15.2809447,16.6828489 L22.299066,23.7006641 L14.6828159,31.3171619 C14.6078042,31.3921761 14.5656632,31.4939157 14.5656632,31.6 C14.5656632,31.8209139 14.7447493,32 14.9656632,32 L14.9656632,32 L18.0753284,32 C18.1814068,32 18.2831412,31.9578638 18.3581544,31.8828594 L18.3581544,31.8828594 L24.420066,25.8216641 L30.4818451,31.8828564 C30.5568585,31.9578626 30.6585942,32 30.7646741,32 L30.7646741,32 L33.8763476,32 C33.9824309,32 34.0841695,31.9578599 34.1591835,31.8828496 C34.315397,31.7266436 34.3154031,31.4733776 34.1591972,31.3171641 L34.1591972,31.3171641 L26.542066,23.6996641 L33.5591874,16.6828489 C33.6342057,16.6078338 33.6763508,16.5060896 33.6763508,16.4 C33.6763508,16.1790861 33.4972647,16 33.2763508,16 L33.2763508,16 L30.1637654,16 C30.0576705,16 29.9559218,16.0421493 29.8809058,16.1171741 L29.8809058,16.1171741 L24.420066,21.5786641 L18.9582218,16.1171488 C18.883208,16.0421394 18.7814701,16 18.6753876,16 L18.6753876,16 Z",
|
|
7184
|
-
id: "CloseCircleFill
|
|
7225
|
+
id: "CloseCircleFill-形状结合",
|
|
7185
7226
|
fill: "currentColor",
|
|
7186
7227
|
fillRule: "nonzero"
|
|
7187
7228
|
}))));
|
|
@@ -7205,9 +7246,9 @@ function CloseOutline(props) {
|
|
|
7205
7246
|
fill: "none",
|
|
7206
7247
|
fillRule: "evenodd"
|
|
7207
7248
|
}, /* @__PURE__ */ React$4.createElement("g", {
|
|
7208
|
-
id: "CloseOutline
|
|
7249
|
+
id: "CloseOutline-编组"
|
|
7209
7250
|
}, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7210
|
-
id: "CloseOutline
|
|
7251
|
+
id: "CloseOutline-矩形",
|
|
7211
7252
|
fill: "#FFFFFF",
|
|
7212
7253
|
opacity: 0,
|
|
7213
7254
|
x: 0,
|
|
@@ -7216,7 +7257,7 @@ function CloseOutline(props) {
|
|
|
7216
7257
|
height: 48
|
|
7217
7258
|
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7218
7259
|
d: "M10.6085104,8.11754663 L24.1768397,21.8195031 L24.1768397,21.8195031 L37.7443031,8.1175556 C37.8194278,8.04168616 37.9217669,7.999 38.0285372,7.999 L41.1040268,7.999 C41.3249407,7.999 41.5040268,8.1780861 41.5040268,8.399 C41.5040268,8.50440471 41.4624226,8.60554929 41.3882578,8.68044752 L26.2773302,23.9408235 L26.2773302,23.9408235 L41.5021975,39.3175645 C41.65763,39.4745475 41.6563731,39.7278104 41.4993901,39.8832429 C41.4244929,39.9574004 41.3233534,39.999 41.2179546,39.999 L38.1434012,39.999 C38.0366291,39.999 37.9342885,39.9563124 37.8591634,39.8804408 L24.1768397,26.0621438 L24.1768397,26.0621438 L10.4936501,39.8804497 C10.4185257,39.9563159 10.3161889,39.999 10.2094212,39.999 L7.13584526,39.999 C6.91493136,39.999 6.73584526,39.8199139 6.73584526,39.599 C6.73584526,39.4936017 6.77744443,39.3924627 6.85160121,39.3175656 L22.0763492,23.9408235 L22.0763492,23.9408235 L6.96554081,8.68044639 C6.81010226,8.52346929 6.81134951,8.27020637 6.9683266,8.11476782 C7.04322474,8.04060377 7.14436883,7.999 7.24977299,7.999 L10.3242852,7.999 C10.4310511,7.999 10.5333863,8.04168267 10.6085104,8.11754663 Z",
|
|
7219
|
-
id: "CloseOutline
|
|
7260
|
+
id: "CloseOutline-路径",
|
|
7220
7261
|
fill: "currentColor",
|
|
7221
7262
|
fillRule: "nonzero"
|
|
7222
7263
|
}))));
|
|
@@ -7240,9 +7281,9 @@ function DownFill(props) {
|
|
|
7240
7281
|
fill: "none",
|
|
7241
7282
|
fillRule: "evenodd"
|
|
7242
7283
|
}, /* @__PURE__ */ React$4.createElement("g", {
|
|
7243
|
-
id: "DownFill
|
|
7284
|
+
id: "DownFill-编组"
|
|
7244
7285
|
}, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7245
|
-
id: "DownFill
|
|
7286
|
+
id: "DownFill-矩形",
|
|
7246
7287
|
fill: "#FFFFFF",
|
|
7247
7288
|
opacity: 0,
|
|
7248
7289
|
x: 0,
|
|
@@ -7251,7 +7292,7 @@ function DownFill(props) {
|
|
|
7251
7292
|
height: 48
|
|
7252
7293
|
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7253
7294
|
d: "M40.6640052,13 L7.34128264,13 C6.57572302,13 5.83336217,13.2619065 5.23947349,13.7351762 C3.80578911,14.8838891 3.58308085,16.9699517 4.74301968,18.3897608 L21.404381,38.7725222 C21.5528531,38.9517214 21.7152446,39.1171361 21.9008348,39.2641713 C23.3345192,40.4128842 25.4363283,40.1923313 26.6009069,38.7725222 L43.2576284,18.3897608 C43.740163,17.8016198 44,17.0664436 44,16.3082931 C44.004629,14.4795422 42.505988,13 40.6640052,13 Z",
|
|
7254
|
-
id: "DownFill
|
|
7295
|
+
id: "DownFill-路径",
|
|
7255
7296
|
fill: "currentColor",
|
|
7256
7297
|
fillRule: "nonzero"
|
|
7257
7298
|
}))));
|
|
@@ -7275,7 +7316,7 @@ function DownOutline(props) {
|
|
|
7275
7316
|
fill: "none",
|
|
7276
7317
|
fillRule: "evenodd"
|
|
7277
7318
|
}, /* @__PURE__ */ React$4.createElement("g", null, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7278
|
-
id: "DownOutline
|
|
7319
|
+
id: "DownOutline-矩形",
|
|
7279
7320
|
fill: "#FFFFFF",
|
|
7280
7321
|
opacity: 0,
|
|
7281
7322
|
x: 0,
|
|
@@ -7308,7 +7349,7 @@ function ExclamationCircleFill(props) {
|
|
|
7308
7349
|
fill: "none",
|
|
7309
7350
|
fillRule: "evenodd"
|
|
7310
7351
|
}, /* @__PURE__ */ React$4.createElement("g", null, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7311
|
-
id: "ExclamationCircleFill
|
|
7352
|
+
id: "ExclamationCircleFill-矩形",
|
|
7312
7353
|
fill: "#D76060",
|
|
7313
7354
|
opacity: 0,
|
|
7314
7355
|
x: 0,
|
|
@@ -7317,7 +7358,7 @@ function ExclamationCircleFill(props) {
|
|
|
7317
7358
|
height: 48
|
|
7318
7359
|
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7319
7360
|
d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M25.1,31 L22.9,31 C22.6790861,31 22.5,31.1790861 22.5,31.4 L22.5,31.4 L22.5,33.6 C22.5,33.8209139 22.6790861,34 22.9,34 L22.9,34 L25.1,34 C25.3209139,34 25.5,33.8209139 25.5,33.6 L25.5,33.6 L25.5,31.4 C25.5,31.1790861 25.3209139,31 25.1,31 L25.1,31 Z M25.1,14 L22.9,14 C22.6790861,14 22.5,14.1790861 22.5,14.4 L22.5,14.4 L22.5,27.6 C22.5,27.8209139 22.6790861,28 22.9,28 L22.9,28 L25.1,28 C25.3209139,28 25.5,27.8209139 25.5,27.6 L25.5,27.6 L25.5,14.4 C25.5,14.1790861 25.3209139,14 25.1,14 L25.1,14 Z",
|
|
7320
|
-
id: "ExclamationCircleFill
|
|
7361
|
+
id: "ExclamationCircleFill-形状结合",
|
|
7321
7362
|
fill: "currentColor",
|
|
7322
7363
|
fillRule: "nonzero"
|
|
7323
7364
|
}))));
|
|
@@ -7341,9 +7382,9 @@ function InformationCircleFill(props) {
|
|
|
7341
7382
|
fill: "none",
|
|
7342
7383
|
fillRule: "evenodd"
|
|
7343
7384
|
}, /* @__PURE__ */ React$4.createElement("g", {
|
|
7344
|
-
id: "InformationCircleFill
|
|
7385
|
+
id: "InformationCircleFill-编组"
|
|
7345
7386
|
}, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7346
|
-
id: "InformationCircleFill
|
|
7387
|
+
id: "InformationCircleFill-矩形",
|
|
7347
7388
|
fill: "#FFFFFF",
|
|
7348
7389
|
opacity: 0,
|
|
7349
7390
|
x: 0,
|
|
@@ -7352,7 +7393,7 @@ function InformationCircleFill(props) {
|
|
|
7352
7393
|
height: 48
|
|
7353
7394
|
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7354
7395
|
d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M25.6,20 L21.4,20 C21.1790861,20 21,20.1790861 21,20.4 L21,20.4 L21,22.6 C21,22.8209139 21.1790861,23 21.4,23 L21.4,23 L22.6,23 C22.8209139,23 23,23.1790861 23,23.4 L23,23.4 L23,34.6 C23,34.8209139 23.1790861,35 23.4,35 L23.4,35 L25.6,35 C25.8209139,35 26,34.8209139 26,34.6 L26,34.6 L26,20.4 C26,20.1790861 25.8209139,20 25.6,20 L25.6,20 Z M25.6,14 L23.4,14 C23.1790861,14 23,14.1790861 23,14.4 L23,14.4 L23,16.6 C23,16.8209139 23.1790861,17 23.4,17 L23.4,17 L25.6,17 C25.8209139,17 26,16.8209139 26,16.6 L26,16.6 L26,14.4 C26,14.1790861 25.8209139,14 25.6,14 L25.6,14 Z",
|
|
7355
|
-
id: "InformationCircleFill
|
|
7396
|
+
id: "InformationCircleFill-形状结合",
|
|
7356
7397
|
fill: "currentColor",
|
|
7357
7398
|
fillRule: "nonzero"
|
|
7358
7399
|
}))));
|
|
@@ -7376,9 +7417,9 @@ function LeftOutline(props) {
|
|
|
7376
7417
|
fill: "none",
|
|
7377
7418
|
fillRule: "evenodd"
|
|
7378
7419
|
}, /* @__PURE__ */ React$4.createElement("g", {
|
|
7379
|
-
id: "LeftOutline
|
|
7420
|
+
id: "LeftOutline-编组"
|
|
7380
7421
|
}, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7381
|
-
id: "LeftOutline
|
|
7422
|
+
id: "LeftOutline-矩形",
|
|
7382
7423
|
fill: "#FFFFFF",
|
|
7383
7424
|
opacity: 0,
|
|
7384
7425
|
x: 0,
|
|
@@ -7387,7 +7428,7 @@ function LeftOutline(props) {
|
|
|
7387
7428
|
height: 48
|
|
7388
7429
|
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7389
7430
|
d: "M31.7053818,5.11219264 L13.5234393,22.6612572 L13.5234393,22.6612572 C12.969699,23.2125856 12.9371261,24.0863155 13.4257204,24.6755735 L13.5234393,24.7825775 L31.7045714,42.8834676 C31.7795345,42.9580998 31.8810078,43 31.9867879,43 L35.1135102,43 C35.3344241,43 35.5135102,42.8209139 35.5135102,42.6 C35.5135102,42.4936115 35.4711279,42.391606 35.3957362,42.316542 L16.7799842,23.7816937 L16.7799842,23.7816937 L35.3764658,5.6866816 C35.5347957,5.53262122 35.5382568,5.27937888 35.3841964,5.121049 C35.3088921,5.04365775 35.205497,5 35.0975148,5 L31.9831711,5 C31.8795372,5 31.7799483,5.04022164 31.7053818,5.11219264 Z",
|
|
7390
|
-
id: "LeftOutline
|
|
7431
|
+
id: "LeftOutline-路径",
|
|
7391
7432
|
fill: "currentColor",
|
|
7392
7433
|
fillRule: "nonzero"
|
|
7393
7434
|
}))));
|
|
@@ -7413,7 +7454,7 @@ function MinusOutline(props) {
|
|
|
7413
7454
|
}, /* @__PURE__ */ React$4.createElement("g", {
|
|
7414
7455
|
id: "MinusOutline-add"
|
|
7415
7456
|
}, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7416
|
-
id: "MinusOutline
|
|
7457
|
+
id: "MinusOutline-矩形",
|
|
7417
7458
|
fill: "#FFFFFF",
|
|
7418
7459
|
opacity: 0,
|
|
7419
7460
|
x: 0,
|
|
@@ -7422,7 +7463,7 @@ function MinusOutline(props) {
|
|
|
7422
7463
|
height: 48
|
|
7423
7464
|
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7424
7465
|
d: "M41.1,22.5 C41.3209139,22.5 41.5,22.6790861 41.5,22.9 L41.5,25.1 C41.5,25.3209139 41.3209139,25.5 41.1,25.5 L6.9,25.5 C6.6790861,25.5 6.5,25.3209139 6.5,25.1 L6.5,22.9 C6.5,22.6790861 6.6790861,22.5 6.9,22.5 L41.1,22.5 Z",
|
|
7425
|
-
id: "MinusOutline
|
|
7466
|
+
id: "MinusOutline-路径",
|
|
7426
7467
|
fill: "currentColor",
|
|
7427
7468
|
fillRule: "nonzero"
|
|
7428
7469
|
}))));
|
|
@@ -7446,9 +7487,9 @@ function QuestionCircleOutline(props) {
|
|
|
7446
7487
|
fill: "none",
|
|
7447
7488
|
fillRule: "evenodd"
|
|
7448
7489
|
}, /* @__PURE__ */ React$4.createElement("g", {
|
|
7449
|
-
id: "QuestionCircleOutline
|
|
7490
|
+
id: "QuestionCircleOutline-编组"
|
|
7450
7491
|
}, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7451
|
-
id: "QuestionCircleOutline
|
|
7492
|
+
id: "QuestionCircleOutline-矩形",
|
|
7452
7493
|
fill: "#FFFFFF",
|
|
7453
7494
|
opacity: 0,
|
|
7454
7495
|
x: 0,
|
|
@@ -7457,7 +7498,7 @@ function QuestionCircleOutline(props) {
|
|
|
7457
7498
|
height: 48
|
|
7458
7499
|
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7459
7500
|
d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M24,5 C13.5065898,5 5,13.5065898 5,24 C5,34.4934102 13.5065898,43 24,43 C34.4934102,43 43,34.4934102 43,24 C43,13.5065898 34.4934102,5 24,5 Z M26,32.4 L26,34.6 C26,34.8209139 25.8209139,35 25.6,35 L23.4,35 C23.1790861,35 23,34.8209139 23,34.6 L23,32.4 C23,32.1790861 23.1790861,32 23.4,32 L25.6,32 C25.8209139,32 26,32.1790861 26,32.4 Z M24,12 C27.8659932,12 31,15.1340068 31,19 C31,22.1706393 28.8919961,24.8489278 26.0010432,25.7098107 L26.0001268,28.6 C25.9999299,28.8208643 25.8208644,28.9998731 25.6,29 L23.4,29 C23.1790861,29 23,28.8209139 23,28.6 L23,23.4 C23,23.1790861 23.1790861,23 23.4,23 L24,23 L24,23 C26.209139,23 28,21.209139 28,19 C28,16.790861 26.209139,15 24,15 C21.790861,15 20,16.790861 20,19 L17,19 C17,15.1340068 20.1340068,12 24,12 Z",
|
|
7460
|
-
id: "QuestionCircleOutline
|
|
7501
|
+
id: "QuestionCircleOutline-形状",
|
|
7461
7502
|
fill: "currentColor",
|
|
7462
7503
|
fillRule: "nonzero"
|
|
7463
7504
|
}))));
|
|
@@ -7483,7 +7524,7 @@ function RightOutline(props) {
|
|
|
7483
7524
|
}, /* @__PURE__ */ React$4.createElement("g", {
|
|
7484
7525
|
id: "RightOutline-RightOutlined"
|
|
7485
7526
|
}, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7486
|
-
id: "RightOutline
|
|
7527
|
+
id: "RightOutline-矩形",
|
|
7487
7528
|
fill: "#FFFFFF",
|
|
7488
7529
|
opacity: 0,
|
|
7489
7530
|
x: 0,
|
|
@@ -7516,9 +7557,9 @@ function SearchOutline(props) {
|
|
|
7516
7557
|
fill: "none",
|
|
7517
7558
|
fillRule: "evenodd"
|
|
7518
7559
|
}, /* @__PURE__ */ React$4.createElement("g", {
|
|
7519
|
-
id: "SearchOutline
|
|
7560
|
+
id: "SearchOutline-编组"
|
|
7520
7561
|
}, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7521
|
-
id: "SearchOutline
|
|
7562
|
+
id: "SearchOutline-矩形",
|
|
7522
7563
|
fill: "#FFFFFF",
|
|
7523
7564
|
opacity: 0,
|
|
7524
7565
|
x: 0,
|
|
@@ -7527,7 +7568,7 @@ function SearchOutline(props) {
|
|
|
7527
7568
|
height: 48
|
|
7528
7569
|
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7529
7570
|
d: "M10.2434135,10.1505371 C17.2346315,3.28315429 28.5696354,3.28315429 35.5608534,10.1505371 C42.3159331,16.7859644 42.5440954,27.4048667 36.2453405,34.3093889 L43.7095294,41.6422249 C43.8671196,41.7970419 43.8693677,42.0502979 43.7145508,42.2078881 C43.7128864,42.2095822 43.7112069,42.2112616 43.7095126,42.2129259 L42.1705322,43.7246464 C42.014915,43.8775072 41.7655181,43.8775006 41.6099089,43.7246316 L34.0775268,36.3248916 L34.0775268,36.3248916 C27.0485579,41.8551751 16.7593545,41.4200547 10.2434135,35.0195303 C3.25219551,28.1521474 3.25219551,17.0179199 10.2434135,10.1505371 Z M12.3532001,12.2229532 C6.52718516,17.9457722 6.52718516,27.2242951 12.3532001,32.9471142 C18.1792151,38.6699332 27.6250517,38.6699332 33.4510667,32.9471142 C39.2770817,27.2242951 39.2770817,17.9457722 33.4510667,12.2229532 C27.6250517,6.50013419 18.1792151,6.50013419 12.3532001,12.2229532 Z",
|
|
7530
|
-
id: "SearchOutline
|
|
7571
|
+
id: "SearchOutline-形状",
|
|
7531
7572
|
fill: "currentColor",
|
|
7532
7573
|
fillRule: "nonzero"
|
|
7533
7574
|
}))));
|
|
@@ -7551,9 +7592,9 @@ function SoundOutline(props) {
|
|
|
7551
7592
|
fill: "none",
|
|
7552
7593
|
fillRule: "evenodd"
|
|
7553
7594
|
}, /* @__PURE__ */ React$4.createElement("g", {
|
|
7554
|
-
id: "SoundOutline
|
|
7595
|
+
id: "SoundOutline-编组"
|
|
7555
7596
|
}, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7556
|
-
id: "SoundOutline
|
|
7597
|
+
id: "SoundOutline-矩形",
|
|
7557
7598
|
fill: "#FFFFFF",
|
|
7558
7599
|
opacity: 0,
|
|
7559
7600
|
x: 0,
|
|
@@ -7562,7 +7603,7 @@ function SoundOutline(props) {
|
|
|
7562
7603
|
height: 48
|
|
7563
7604
|
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7564
7605
|
d: "M28.267333,7.42364522 C28.6217345,7.94869119 28.8108515,8.56559899 28.8108515,9.19662571 L28.8108515,38.803714 C28.8108515,40.568974 27.3619563,42 25.5746535,42 C24.9357472,42 24.311136,41.8132153 23.7795338,41.4631847 L13.5176584,34.7058449 L8.3149307,34.706256 C5.93186028,34.706256 4,32.7982213 4,30.4445413 L4,17.6593971 C4,15.3057171 5.93186028,13.3976824 8.3149307,13.3976824 L13.3601634,13.3972713 L23.7795338,6.53715498 C25.2666597,5.55796489 27.2759158,5.95486009 28.267333,7.42364522 Z M40.4649231,8.99868666 C40.5511218,9.17742383 40.619996,9.32223121 40.6715457,9.43310881 C42.8085201,14.0295034 44,19.1437027 44,24.532755 C44,29.7837404 42.8687892,34.7737758 40.8339269,39.2781083 C40.7469512,39.4706362 40.6237802,39.7330988 40.4644141,40.0654961 C40.3689469,40.2647533 40.1300031,40.3488277 39.9307715,40.2533072 C39.9306414,40.2532448 39.9305113,40.2531824 39.9303812,40.2531198 C39.6706542,40.1282492 39.4751102,40.0342363 39.3437492,39.9710811 C38.9410401,39.777468 38.6130663,39.619786 38.3598279,39.498035 C38.2070716,39.4245934 38.0007263,39.3253875 37.740792,39.2004172 C37.5419104,39.104853 37.4580092,38.8662856 37.5532468,38.6672473 C37.7034937,38.3532445 37.8197479,38.104744 37.9020095,37.9217457 C39.7416376,33.8293278 40.763802,29.2989389 40.763802,24.532755 C40.763802,19.6931433 39.7099001,15.0966478 37.8164042,10.9549334 C37.7526807,10.8155487 37.6652043,10.6300308 37.5539748,10.3983796 C37.4585265,10.1993116 37.5423279,9.96050973 37.7412949,9.8648511 C37.9298799,9.7741839 38.0818373,9.70112639 38.1971671,9.64567856 C38.5403397,9.48068928 39.0100918,9.2548436 39.6064234,8.9681415 C39.6867211,8.9295363 39.7949893,8.87748349 39.9312282,8.81198307 C40.1301627,8.71623553 40.3690201,8.79982709 40.4649231,8.99868666 Z M24.954689,9.60481048 L14.4401642,16.5275765 C14.3748695,16.5705665 14.2984086,16.5934809 14.2202323,16.5934873 L8.3149307,16.5939685 L8.3149307,16.5939685 C7.76171792,16.5939685 7.30576856,17.0052668 7.24345545,17.5351457 L7.23619803,17.6593971 L7.23619803,30.4445413 C7.23619803,30.9909313 7.65263219,31.4412574 8.18892037,31.502802 L8.31467178,31.50997 L14.3775506,31.5094909 C14.4557573,31.5094847 14.5322502,31.5324045 14.5975676,31.5754153 L24.9546682,38.39546 C25.139173,38.5169545 25.3872345,38.4658746 25.508729,38.2813698 C25.5517339,38.2160614 25.5746535,38.1395804 25.5746535,38.0613845 L25.5746535,9.93889975 C25.5746535,9.71798585 25.3955674,9.53889975 25.1746535,9.53889975 C25.0964661,9.53889975 25.019993,9.56181436 24.954689,9.60481048 Z M34.6436115,11.798648 C34.7547335,12.030794 34.8419854,12.2167889 34.9053671,12.3566328 C36.590502,16.0746763 37.5276039,20.1956294 37.5276039,24.532755 C37.5276039,28.7641394 36.635639,32.7897635 35.0272837,36.4362183 C34.9380427,36.6385449 34.8101552,36.9146706 34.6436211,37.2645952 C34.5486602,37.4640326 34.3100191,37.5487723 34.1105639,37.4538487 C34.1101091,37.4536323 34.1096547,37.453415 34.1092007,37.4531968 C33.9190573,37.3618222 33.7721424,37.2912213 33.6684561,37.2413942 C33.186467,37.0097713 32.80073,36.824403 32.5112451,36.6852892 C32.3647538,36.6148919 32.1675294,36.5201144 31.9195719,36.4009569 C31.7210538,36.3055358 31.6370188,36.067582 31.7316042,35.8686644 C31.8690322,35.5796464 31.9753727,35.3500122 32.0506255,35.1797617 C33.4919206,31.9190071 34.2914059,28.3180945 34.2914059,24.532755 C34.2914059,20.6930477 33.46879,17.0431031 31.9881259,13.7454591 C31.9261905,13.6075203 31.840749,13.424362 31.7318014,13.1959842 C31.636885,12.9969991 31.7208632,12.7587263 31.919573,12.6632348 C32.0929373,12.5799233 32.2332164,12.5125112 32.3404102,12.4609985 C32.6888449,12.2935556 33.1655706,12.0644616 33.7705875,11.7737163 C33.8540198,11.7336223 33.9670458,11.6793068 34.1096655,11.6107699 C34.3087736,11.5152168 34.5476881,11.5990382 34.6433466,11.7980956 C34.643435,11.7982797 34.6435233,11.7984638 34.6436115,11.798648 Z",
|
|
7565
|
-
id: "SoundOutline
|
|
7606
|
+
id: "SoundOutline-形状",
|
|
7566
7607
|
fill: "currentColor",
|
|
7567
7608
|
fillRule: "nonzero"
|
|
7568
7609
|
}))));
|
|
@@ -7586,9 +7627,9 @@ function TextDeletionOutline(props) {
|
|
|
7586
7627
|
fill: "none",
|
|
7587
7628
|
fillRule: "evenodd"
|
|
7588
7629
|
}, /* @__PURE__ */ React$4.createElement("g", {
|
|
7589
|
-
id: "TextDeletionOutline
|
|
7630
|
+
id: "TextDeletionOutline-编组"
|
|
7590
7631
|
}, /* @__PURE__ */ React$4.createElement("rect", {
|
|
7591
|
-
id: "TextDeletionOutline
|
|
7632
|
+
id: "TextDeletionOutline-矩形",
|
|
7592
7633
|
fill: "#FFFFFF",
|
|
7593
7634
|
opacity: 0,
|
|
7594
7635
|
x: 0,
|
|
@@ -7597,7 +7638,7 @@ function TextDeletionOutline(props) {
|
|
|
7597
7638
|
height: 48
|
|
7598
7639
|
}), /* @__PURE__ */ React$4.createElement("path", {
|
|
7599
7640
|
d: "M38.5492302,6 C41.5596051,6 44,8.46240906 44,11.499981 L44,35.5 C44,38.5375742 41.5596051,41.000013 38.54923,41.000013 L17.3058462,41.000013 C14.6665152,41.000013 12.2347138,39.555982 10.9529738,37.2279238 L4.91451284,27.0612608 C3.6951623,24.8464932 3.6951623,22.1535354 4.91451335,19.9387516 L10.9529743,9.77208856 C12.234697,7.44403098 14.6665154,6 17.3058464,6 L38.5492302,6 Z M38.5492273,8.74994707 L17.3058465,8.74994707 C15.7329163,8.74994707 14.2719651,9.57120176 13.4439762,10.9206455 L13.3349608,11.1076457 L7.29739408,21.2743087 C6.57566975,22.5850072 6.53495505,24.1690434 7.18837846,25.5157286 L7.29739386,25.7265623 L13.3349605,35.8932253 C14.0992225,37.2803788 15.5202936,38.1698544 17.0914483,38.2444783 L17.3058454,38.2499783 L38.5492292,38.2499783 C39.9923716,38.2499783 41.1854088,37.114979 41.2700704,35.6613101 L41.2746127,35.4999769 L41.2746127,11.4999513 C41.2746127,10.0436198 40.1496291,8.83987037 38.7089651,8.75452144 L38.5492273,8.74994707 Z M22.3492842,17 C22.4547968,17 22.556036,17.0416892 22.6309531,17.1159883 L26.757,21.208 L30.8830469,17.1159883 C30.957964,17.0416892 31.0592032,17 31.1647158,17 L34.2719196,17 C34.4928335,17 34.6719196,17.1790861 34.6719196,17.4 C34.6719196,17.5067321 34.6292639,17.6090378 34.5534423,17.6841566 L28.879,23.306 L34.8245071,29.1968543 C34.9814364,29.3523411 34.9826059,29.6056044 34.8271191,29.7625337 C34.7520011,29.8383486 34.6497001,29.881 34.5429734,29.881 L31.4366959,29.881 C31.331195,29.881 31.2299662,29.8393201 31.1550512,29.7650357 L26.758,25.405 L22.3599432,29.7650669 C22.2850309,29.8393322 22.1838155,29.881 22.07833,29.881 L18.9720266,29.881 C18.7511127,29.881 18.5720266,29.7019139 18.5720266,29.481 C18.5720266,29.3742733 18.614678,29.2719723 18.6904929,29.1968543 L24.636,23.306 L18.9624269,17.6841345 C18.8055037,17.5286415 18.8043444,17.2753782 18.9598374,17.118455 C19.0349545,17.042647 19.1372506,17 19.2439719,17 L22.3492842,17 Z",
|
|
7600
|
-
id: "TextDeletionOutline
|
|
7641
|
+
id: "TextDeletionOutline-形状结合",
|
|
7601
7642
|
fill: "currentColor",
|
|
7602
7643
|
fillRule: "nonzero"
|
|
7603
7644
|
}))));
|
|
@@ -7662,17 +7703,17 @@ function computeRubberband(bounds, [Vx, Vy], [Rx, Ry]) {
|
|
|
7662
7703
|
const [[X0, X1], [Y0, Y1]] = bounds;
|
|
7663
7704
|
return [rubberbandIfOutOfBounds$1(Vx, X0, X1, Rx), rubberbandIfOutOfBounds$1(Vy, Y0, Y1, Ry)];
|
|
7664
7705
|
}
|
|
7665
|
-
function _toPrimitive$1(
|
|
7666
|
-
if (typeof
|
|
7667
|
-
return
|
|
7668
|
-
var prim =
|
|
7706
|
+
function _toPrimitive$1(input, hint) {
|
|
7707
|
+
if (typeof input !== "object" || input === null)
|
|
7708
|
+
return input;
|
|
7709
|
+
var prim = input[Symbol.toPrimitive];
|
|
7669
7710
|
if (prim !== void 0) {
|
|
7670
|
-
var res = prim.call(
|
|
7711
|
+
var res = prim.call(input, hint || "default");
|
|
7671
7712
|
if (typeof res !== "object")
|
|
7672
7713
|
return res;
|
|
7673
7714
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
7674
7715
|
}
|
|
7675
|
-
return (hint === "string" ? String : Number)(
|
|
7716
|
+
return (hint === "string" ? String : Number)(input);
|
|
7676
7717
|
}
|
|
7677
7718
|
function _toPropertyKey$1(arg) {
|
|
7678
7719
|
var key = _toPrimitive$1(arg, "string");
|
|
@@ -7877,11 +7918,11 @@ function chain(...fns) {
|
|
|
7877
7918
|
if (fns.length === 1)
|
|
7878
7919
|
return fns[0];
|
|
7879
7920
|
return function() {
|
|
7880
|
-
let
|
|
7921
|
+
let result;
|
|
7881
7922
|
for (const fn of fns) {
|
|
7882
|
-
|
|
7923
|
+
result = fn.apply(this, arguments) || result;
|
|
7883
7924
|
}
|
|
7884
|
-
return
|
|
7925
|
+
return result;
|
|
7885
7926
|
};
|
|
7886
7927
|
}
|
|
7887
7928
|
function assignDefault(value, fallback) {
|
|
@@ -9137,26 +9178,26 @@ const sharedConfigResolver = {
|
|
|
9137
9178
|
};
|
|
9138
9179
|
const _excluded$3 = ["target", "eventOptions", "window", "enabled", "transform"];
|
|
9139
9180
|
function resolveWith(config2 = {}, resolvers) {
|
|
9140
|
-
const
|
|
9181
|
+
const result = {};
|
|
9141
9182
|
for (const [key, resolver] of Object.entries(resolvers)) {
|
|
9142
9183
|
switch (typeof resolver) {
|
|
9143
9184
|
case "function":
|
|
9144
9185
|
{
|
|
9145
|
-
const r = resolver.call(
|
|
9186
|
+
const r = resolver.call(result, config2[key], key, config2);
|
|
9146
9187
|
if (!Number.isNaN(r))
|
|
9147
|
-
|
|
9188
|
+
result[key] = r;
|
|
9148
9189
|
}
|
|
9149
9190
|
break;
|
|
9150
9191
|
case "object":
|
|
9151
|
-
|
|
9192
|
+
result[key] = resolveWith(config2[key], resolver);
|
|
9152
9193
|
break;
|
|
9153
9194
|
case "boolean":
|
|
9154
9195
|
if (resolver)
|
|
9155
|
-
|
|
9196
|
+
result[key] = config2[key];
|
|
9156
9197
|
break;
|
|
9157
9198
|
}
|
|
9158
9199
|
}
|
|
9159
|
-
return
|
|
9200
|
+
return result;
|
|
9160
9201
|
}
|
|
9161
9202
|
function parse(newConfig, gestureKey, _config = {}) {
|
|
9162
9203
|
const _ref = newConfig, {
|
|
@@ -9239,7 +9280,7 @@ class TimeoutStore {
|
|
|
9239
9280
|
this._timeouts.clear();
|
|
9240
9281
|
}
|
|
9241
9282
|
}
|
|
9242
|
-
class
|
|
9283
|
+
class Controller2 {
|
|
9243
9284
|
constructor(handlers) {
|
|
9244
9285
|
_defineProperty$1(this, "gestures", /* @__PURE__ */ new Set());
|
|
9245
9286
|
_defineProperty$1(this, "_targetEventStore", new EventStore(this));
|
|
@@ -9420,7 +9461,7 @@ function parseMergedHandlers(mergedHandlers, mergedConfig) {
|
|
|
9420
9461
|
};
|
|
9421
9462
|
}
|
|
9422
9463
|
function useRecognizers(handlers, config2 = {}, gestureKey, nativeHandlers) {
|
|
9423
|
-
const ctrl = React__default.useMemo(() => new
|
|
9464
|
+
const ctrl = React__default.useMemo(() => new Controller2(handlers), []);
|
|
9424
9465
|
ctrl.applyHandlers(handlers, nativeHandlers);
|
|
9425
9466
|
ctrl.applyConfig(config2, gestureKey);
|
|
9426
9467
|
React__default.useEffect(ctrl.effect.bind(ctrl));
|
|
@@ -9460,7 +9501,7 @@ const defaultProps$14 = Object.assign(Object.assign({}, defaultPopupBaseProps),
|
|
|
9460
9501
|
closeOnSwipe: false,
|
|
9461
9502
|
position: "bottom"
|
|
9462
9503
|
});
|
|
9463
|
-
const Popup
|
|
9504
|
+
const Popup = (p) => {
|
|
9464
9505
|
const props = mergeProps(defaultProps$14, p);
|
|
9465
9506
|
const bodyCls = classNames(`${classPrefix$1o}-body`, props.bodyClassName, `${classPrefix$1o}-body-position-${props.position}`);
|
|
9466
9507
|
const {
|
|
@@ -9536,6 +9577,7 @@ const Popup$1 = (p) => {
|
|
|
9536
9577
|
}), React__default.createElement(animated.div, {
|
|
9537
9578
|
className: bodyCls,
|
|
9538
9579
|
style: Object.assign(Object.assign({}, props.bodyStyle), {
|
|
9580
|
+
pointerEvents: percent.to((v) => v === 0 ? "unset" : "none"),
|
|
9539
9581
|
transform: percent.to((v) => {
|
|
9540
9582
|
if (props.position === "bottom") {
|
|
9541
9583
|
return `translate(0, ${v}%)`;
|
|
@@ -9568,15 +9610,12 @@ const Popup$1 = (p) => {
|
|
|
9568
9610
|
destroyOnClose: props.destroyOnClose
|
|
9569
9611
|
}, renderToContainer(props.getContainer, node));
|
|
9570
9612
|
};
|
|
9571
|
-
const Popup = Popup$1;
|
|
9572
|
-
const safeArea = "";
|
|
9573
9613
|
const classPrefix$1n = "adm-safe-area";
|
|
9574
|
-
const SafeArea
|
|
9614
|
+
const SafeArea = (props) => {
|
|
9575
9615
|
return withNativeProps(props, React__default.createElement("div", {
|
|
9576
9616
|
className: classNames(classPrefix$1n, `${classPrefix$1n}-position-${props.position}`)
|
|
9577
9617
|
}));
|
|
9578
9618
|
};
|
|
9579
|
-
const SafeArea = SafeArea$1;
|
|
9580
9619
|
const fullClone = Object.assign({}, ReactDOM);
|
|
9581
9620
|
const {
|
|
9582
9621
|
version,
|
|
@@ -9786,38 +9825,35 @@ const ActionSheet = (p) => {
|
|
|
9786
9825
|
function showActionSheet(props) {
|
|
9787
9826
|
return renderImperatively(React__default.createElement(ActionSheet, Object.assign({}, props)));
|
|
9788
9827
|
}
|
|
9789
|
-
const index$
|
|
9828
|
+
const index$i = attachPropertiesToComponent(ActionSheet, {
|
|
9790
9829
|
show: showActionSheet
|
|
9791
9830
|
});
|
|
9792
|
-
const autoCenter = "";
|
|
9793
9831
|
const classPrefix$1l = "adm-auto-center";
|
|
9794
|
-
const AutoCenter
|
|
9832
|
+
const AutoCenter = (props) => withNativeProps(props, React__default.createElement("div", {
|
|
9795
9833
|
className: classPrefix$1l
|
|
9796
9834
|
}, React__default.createElement("div", {
|
|
9797
9835
|
className: `${classPrefix$1l}-content`
|
|
9798
9836
|
}, props.children)));
|
|
9799
|
-
const AutoCenter = AutoCenter$1;
|
|
9800
|
-
const avatar = "";
|
|
9801
9837
|
const Fallback = memo(() => React__default.createElement("svg", {
|
|
9802
9838
|
className: "adm-avatar-fallback",
|
|
9803
9839
|
width: "88px",
|
|
9804
9840
|
height: "88px",
|
|
9805
9841
|
viewBox: "0 0 88 88",
|
|
9806
9842
|
version: "1.1"
|
|
9807
|
-
}, React__default.createElement("title", null, "
|
|
9843
|
+
}, React__default.createElement("title", null, "编组 3"), React__default.createElement("defs", null, React__default.createElement("polygon", {
|
|
9808
9844
|
id: "path-1",
|
|
9809
9845
|
points: "0 0 88 0 88 88 0 88"
|
|
9810
9846
|
})), React__default.createElement("g", {
|
|
9811
|
-
id: "
|
|
9847
|
+
id: "页面-1",
|
|
9812
9848
|
stroke: "none",
|
|
9813
9849
|
strokeWidth: "1",
|
|
9814
9850
|
fill: "none",
|
|
9815
9851
|
fillRule: "evenodd"
|
|
9816
9852
|
}, React__default.createElement("g", {
|
|
9817
|
-
id: "
|
|
9853
|
+
id: "语雀",
|
|
9818
9854
|
transform: "translate(-495.000000, -71.000000)"
|
|
9819
9855
|
}, React__default.createElement("g", {
|
|
9820
|
-
id: "
|
|
9856
|
+
id: "编组-3",
|
|
9821
9857
|
transform: "translate(495.000000, 71.000000)"
|
|
9822
9858
|
}, React__default.createElement("mask", {
|
|
9823
9859
|
id: "mask-2",
|
|
@@ -9831,12 +9867,11 @@ const Fallback = memo(() => React__default.createElement("svg", {
|
|
|
9831
9867
|
xlinkHref: "#path-1"
|
|
9832
9868
|
}), React__default.createElement("path", {
|
|
9833
9869
|
d: "M44.5707528,16 L43.4292117,16 L42.9575197,16.0086403 L42.9575195,16.0086403 C36.5215787,16.2615464 31.4341803,21.5678078 31.4344832,28.0273864 L31.4344832,34.7776551 L31.4495601,35.3716788 L31.4495593,35.3716628 C31.599687,38.5368723 32.9422041,41.5269327 35.2058513,43.7376716 L38.2147759,46.6775505 L38.4086219,46.8913989 C38.7747759,47.3385365 38.9750835,47.9001589 38.9750835,48.4833848 L38.9750835,48.8938006 L38.9556989,49.1897326 L38.9556989,49.1897325 C38.8577746,49.9812662 38.3754713,50.67284 37.667703,51.036605 L18.7375269,60.7440265 L18.4101421,60.9276334 L18.4101423,60.9276333 C16.9141658,61.8418636 16.0009389,63.4714674 16,65.2283758 L16,66.070809 L16.0129231,66.3948217 C16.1766149,68.4123376 17.860922,70 19.91569,70 L68.0843101,70 L68.08431,70 C70.2460467,70 71.9988087,68.243122 72,66.0751224 L72,65.2326893 C72,63.3382982 70.9446194,61.6037466 69.2624598,60.7440295 L50.3322837,51.036608 L50.3322835,51.0366079 C49.5291218,50.6249082 49.0240448,49.7962466 49.024903,48.8916436 L49.024903,48.4812278 C49.024903,47.8029608 49.3005955,47.1527756 49.7852106,46.6775603 L52.7941352,43.7376813 L52.7941354,43.7376811 C55.204308,41.3832325 56.5636029,38.151975 56.5633606,34.7776456 L56.5633606,28.0273769 L56.5633606,28.0273774 C56.5633606,21.3848531 51.1940878,16 44.5707524,16 L44.5707528,16 Z",
|
|
9834
|
-
id: "
|
|
9870
|
+
id: "形状",
|
|
9835
9871
|
fill: "#CCCCCC",
|
|
9836
9872
|
fillRule: "nonzero",
|
|
9837
9873
|
mask: "url(#mask-2)"
|
|
9838
9874
|
}))))));
|
|
9839
|
-
const image = "";
|
|
9840
9875
|
var stagedComponents = {};
|
|
9841
9876
|
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
9842
9877
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -9906,7 +9941,7 @@ const defaultProps$12 = {
|
|
|
9906
9941
|
lazy: false,
|
|
9907
9942
|
draggable: false
|
|
9908
9943
|
};
|
|
9909
|
-
const Image$
|
|
9944
|
+
const Image$1 = staged_1((p) => {
|
|
9910
9945
|
const props = mergeProps(defaultProps$12, p);
|
|
9911
9946
|
const [loaded, setLoaded] = useState$1(false);
|
|
9912
9947
|
const [failed, setFailed] = useState$1(false);
|
|
@@ -9983,13 +10018,12 @@ const Image$2 = staged_1((p) => {
|
|
|
9983
10018
|
}
|
|
9984
10019
|
}), renderInner()));
|
|
9985
10020
|
});
|
|
9986
|
-
const Image$1 = Image$2;
|
|
9987
10021
|
const classPrefix$1j = "adm-avatar";
|
|
9988
10022
|
const defaultProps$11 = {
|
|
9989
10023
|
fallback: React__default.createElement(Fallback, null),
|
|
9990
10024
|
fit: "cover"
|
|
9991
10025
|
};
|
|
9992
|
-
const Avatar
|
|
10026
|
+
const Avatar = (p) => {
|
|
9993
10027
|
const props = mergeProps(defaultProps$11, p);
|
|
9994
10028
|
return withNativeProps(props, React__default.createElement(Image$1, {
|
|
9995
10029
|
className: classPrefix$1j,
|
|
@@ -10004,8 +10038,6 @@ const Avatar$1 = (p) => {
|
|
|
10004
10038
|
onLoad: props.onLoad
|
|
10005
10039
|
}));
|
|
10006
10040
|
};
|
|
10007
|
-
const Avatar = Avatar$1;
|
|
10008
|
-
const badge = "";
|
|
10009
10041
|
const classPrefix$1i = `adm-badge`;
|
|
10010
10042
|
const dot = React__default.createElement(React__default.Fragment, null);
|
|
10011
10043
|
const Badge$1 = (props) => {
|
|
@@ -10036,8 +10068,6 @@ const Badge$1 = (props) => {
|
|
|
10036
10068
|
const Badge = attachPropertiesToComponent(Badge$1, {
|
|
10037
10069
|
dot
|
|
10038
10070
|
});
|
|
10039
|
-
const button = "";
|
|
10040
|
-
const dotLoading = "";
|
|
10041
10071
|
const classPrefix$1h = `adm-dot-loading`;
|
|
10042
10072
|
const colorRecord$3 = {
|
|
10043
10073
|
default: "var(--adm-color-weak)",
|
|
@@ -10047,7 +10077,7 @@ const colorRecord$3 = {
|
|
|
10047
10077
|
const defaultProps$10 = {
|
|
10048
10078
|
color: "default"
|
|
10049
10079
|
};
|
|
10050
|
-
const DotLoading
|
|
10080
|
+
const DotLoading = memo((p) => {
|
|
10051
10081
|
var _a;
|
|
10052
10082
|
const props = mergeProps(defaultProps$10, p);
|
|
10053
10083
|
return withNativeProps(props, React__default.createElement("div", {
|
|
@@ -10091,7 +10121,6 @@ const DotLoading$2 = memo((p) => {
|
|
|
10091
10121
|
keyTimes: "0; 0.1; 0.3; 0.4; 1"
|
|
10092
10122
|
}))))))))));
|
|
10093
10123
|
});
|
|
10094
|
-
const DotLoading$1 = DotLoading$2;
|
|
10095
10124
|
function isPromise(obj) {
|
|
10096
10125
|
return !!obj && typeof obj === "object" && typeof obj.then === "function";
|
|
10097
10126
|
}
|
|
@@ -10104,14 +10133,14 @@ const defaultProps$$ = {
|
|
|
10104
10133
|
fill: "solid",
|
|
10105
10134
|
block: false,
|
|
10106
10135
|
loading: false,
|
|
10107
|
-
loadingIcon: React__default.createElement(DotLoading
|
|
10136
|
+
loadingIcon: React__default.createElement(DotLoading, {
|
|
10108
10137
|
color: "currentColor"
|
|
10109
10138
|
}),
|
|
10110
10139
|
type: "button",
|
|
10111
10140
|
shape: "default",
|
|
10112
10141
|
size: "middle"
|
|
10113
10142
|
};
|
|
10114
|
-
const Button
|
|
10143
|
+
const Button = forwardRef((p, ref) => {
|
|
10115
10144
|
const props = mergeProps(defaultProps$$, p);
|
|
10116
10145
|
const [innerLoading, setInnerLoading] = useState$1(false);
|
|
10117
10146
|
const nativeButtonRef = useRef(null);
|
|
@@ -10161,8 +10190,6 @@ const Button$1 = forwardRef((p, ref) => {
|
|
|
10161
10190
|
className: `${classPrefix$1g}-loading-wrapper`
|
|
10162
10191
|
}, props.loadingIcon, props.loadingText) : React__default.createElement("span", null, props.children)));
|
|
10163
10192
|
});
|
|
10164
|
-
const Button = Button$1;
|
|
10165
|
-
const calendar = "";
|
|
10166
10193
|
const ArrowLeft = () => {
|
|
10167
10194
|
return React__default.createElement("svg", {
|
|
10168
10195
|
height: "1em",
|
|
@@ -10245,7 +10272,8 @@ var isoWeek$1 = { exports: {} };
|
|
|
10245
10272
|
};
|
|
10246
10273
|
});
|
|
10247
10274
|
})(isoWeek$1);
|
|
10248
|
-
|
|
10275
|
+
var isoWeekExports = isoWeek$1.exports;
|
|
10276
|
+
const isoWeek = /* @__PURE__ */ getDefaultExportFromCjs(isoWeekExports);
|
|
10249
10277
|
function usePropsValue(options) {
|
|
10250
10278
|
const {
|
|
10251
10279
|
value,
|
|
@@ -10273,14 +10301,13 @@ function replaceMessage$1(template, kv) {
|
|
|
10273
10301
|
return kv[key];
|
|
10274
10302
|
});
|
|
10275
10303
|
}
|
|
10276
|
-
const isDev = true;
|
|
10277
10304
|
function devWarning(component, message) {
|
|
10278
|
-
|
|
10305
|
+
{
|
|
10279
10306
|
console.warn(`[antd-mobile: ${component}] ${message}`);
|
|
10280
10307
|
}
|
|
10281
10308
|
}
|
|
10282
10309
|
function devError(component, message) {
|
|
10283
|
-
|
|
10310
|
+
{
|
|
10284
10311
|
console.error(`[antd-mobile: ${component}] ${message}`);
|
|
10285
10312
|
}
|
|
10286
10313
|
}
|
|
@@ -10306,7 +10333,7 @@ const defaultProps$_ = {
|
|
|
10306
10333
|
nextMonthButton: React__default.createElement(ArrowLeft, null),
|
|
10307
10334
|
nextYearButton: React__default.createElement(ArrowLeftDouble, null)
|
|
10308
10335
|
};
|
|
10309
|
-
const Calendar
|
|
10336
|
+
const Calendar = forwardRef((p, ref) => {
|
|
10310
10337
|
const today = dayjs();
|
|
10311
10338
|
const props = mergeProps(defaultProps$_, p);
|
|
10312
10339
|
const {
|
|
@@ -10506,14 +10533,12 @@ const Calendar$1 = forwardRef((p, ref) => {
|
|
|
10506
10533
|
className: classPrefix$1f
|
|
10507
10534
|
}, header, mark, body));
|
|
10508
10535
|
});
|
|
10509
|
-
const Calendar = Calendar$1;
|
|
10510
|
-
const divider = "";
|
|
10511
10536
|
const classPrefix$1e = `adm-divider`;
|
|
10512
10537
|
const defaultProps$Z = {
|
|
10513
10538
|
contentPosition: "center",
|
|
10514
10539
|
direction: "horizontal"
|
|
10515
10540
|
};
|
|
10516
|
-
const Divider
|
|
10541
|
+
const Divider = (p) => {
|
|
10517
10542
|
const props = mergeProps(defaultProps$Z, p);
|
|
10518
10543
|
return withNativeProps(props, React__default.createElement("div", {
|
|
10519
10544
|
className: classNames(classPrefix$1e, `${classPrefix$1e}-${props.direction}`, `${classPrefix$1e}-${props.contentPosition}`)
|
|
@@ -10521,8 +10546,6 @@ const Divider$1 = (p) => {
|
|
|
10521
10546
|
className: `${classPrefix$1e}-content`
|
|
10522
10547
|
}, props.children)));
|
|
10523
10548
|
};
|
|
10524
|
-
const Divider = Divider$1;
|
|
10525
|
-
const calendarPickerView = "";
|
|
10526
10549
|
var isSameOrBefore$1 = { exports: {} };
|
|
10527
10550
|
(function(module, exports) {
|
|
10528
10551
|
!function(e2, i2) {
|
|
@@ -10535,7 +10558,8 @@ var isSameOrBefore$1 = { exports: {} };
|
|
|
10535
10558
|
};
|
|
10536
10559
|
});
|
|
10537
10560
|
})(isSameOrBefore$1);
|
|
10538
|
-
|
|
10561
|
+
var isSameOrBeforeExports = isSameOrBefore$1.exports;
|
|
10562
|
+
const isSameOrBefore = /* @__PURE__ */ getDefaultExportFromCjs(isSameOrBeforeExports);
|
|
10539
10563
|
function convertValueToRange(selectionMode, value) {
|
|
10540
10564
|
if (selectionMode === void 0 || value === null)
|
|
10541
10565
|
return null;
|
|
@@ -10557,7 +10581,7 @@ const defaultProps$Y = {
|
|
|
10557
10581
|
usePopup: true,
|
|
10558
10582
|
selectionMode: "single"
|
|
10559
10583
|
};
|
|
10560
|
-
const CalendarPickerView
|
|
10584
|
+
const CalendarPickerView = forwardRef((p, ref) => {
|
|
10561
10585
|
var _a;
|
|
10562
10586
|
const today = dayjs();
|
|
10563
10587
|
const props = mergeProps(defaultProps$Y, p);
|
|
@@ -10746,7 +10770,6 @@ const CalendarPickerView$1 = forwardRef((p, ref) => {
|
|
|
10746
10770
|
className: classPrefix$1d
|
|
10747
10771
|
}, header, mark, body));
|
|
10748
10772
|
});
|
|
10749
|
-
const CalendarPickerView = CalendarPickerView$1;
|
|
10750
10773
|
const classPrefix$1c = "adm-calendar-picker";
|
|
10751
10774
|
const defaultProps$X = {
|
|
10752
10775
|
weekStartsOn: "Sunday",
|
|
@@ -10755,7 +10778,7 @@ const defaultProps$X = {
|
|
|
10755
10778
|
usePopup: true,
|
|
10756
10779
|
selectionMode: "single"
|
|
10757
10780
|
};
|
|
10758
|
-
const CalendarPicker
|
|
10781
|
+
const CalendarPicker = forwardRef((p, ref) => {
|
|
10759
10782
|
const props = mergeProps(defaultProps$X, p);
|
|
10760
10783
|
const {
|
|
10761
10784
|
locale
|
|
@@ -10771,9 +10794,10 @@ const CalendarPicker$1 = forwardRef((p, ref) => {
|
|
|
10771
10794
|
closeOnMaskClick,
|
|
10772
10795
|
onClose,
|
|
10773
10796
|
onConfirm,
|
|
10774
|
-
onMaskClick
|
|
10775
|
-
|
|
10776
|
-
|
|
10797
|
+
onMaskClick,
|
|
10798
|
+
getContainer
|
|
10799
|
+
} = props, calendarViewProps = __rest(props, ["visible", "confirmText", "popupClassName", "popupStyle", "popupBodyStyle", "forceRender", "closeOnMaskClick", "onClose", "onConfirm", "onMaskClick", "getContainer"]);
|
|
10800
|
+
const footer = React__default.createElement("div", {
|
|
10777
10801
|
className: `${classPrefix$1c}-footer`
|
|
10778
10802
|
}, React__default.createElement(Divider, null), React__default.createElement("div", {
|
|
10779
10803
|
className: `${classPrefix$1c}-footer-bottom`
|
|
@@ -10810,13 +10834,12 @@ const CalendarPicker$1 = forwardRef((p, ref) => {
|
|
|
10810
10834
|
if (closeOnMaskClick) {
|
|
10811
10835
|
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
10812
10836
|
}
|
|
10813
|
-
}
|
|
10837
|
+
},
|
|
10838
|
+
getContainer
|
|
10814
10839
|
}, React__default.createElement(CalendarPickerView, Object.assign({
|
|
10815
10840
|
ref: calendarRef
|
|
10816
|
-
}, calendarViewProps)),
|
|
10841
|
+
}, calendarViewProps)), footer)));
|
|
10817
10842
|
});
|
|
10818
|
-
const CalendarPicker = CalendarPicker$1;
|
|
10819
|
-
const capsuleTabs = "";
|
|
10820
10843
|
function useResizeEffect(effect, targetRef) {
|
|
10821
10844
|
const fn = useMemoizedFn(effect);
|
|
10822
10845
|
useIsomorphicLayoutEffect$2(() => {
|
|
@@ -10915,9 +10938,8 @@ const useTabListScroll = (targetRef, activeIndex) => {
|
|
|
10915
10938
|
animate
|
|
10916
10939
|
};
|
|
10917
10940
|
};
|
|
10918
|
-
const scrollMask = "";
|
|
10919
10941
|
const classPrefix$1b = `adm-scroll-mask`;
|
|
10920
|
-
const ScrollMask
|
|
10942
|
+
const ScrollMask = (props) => {
|
|
10921
10943
|
const maskRef = useRef(null);
|
|
10922
10944
|
const [{
|
|
10923
10945
|
leftMaskOpacity,
|
|
@@ -10932,8 +10954,8 @@ const ScrollMask$1 = (props) => {
|
|
|
10932
10954
|
const {
|
|
10933
10955
|
run: updateMask
|
|
10934
10956
|
} = useThrottleFn((immediate = false) => {
|
|
10935
|
-
const
|
|
10936
|
-
if (!
|
|
10957
|
+
const mask = maskRef.current;
|
|
10958
|
+
if (!mask)
|
|
10937
10959
|
return;
|
|
10938
10960
|
const scrollEl = props.scrollTrackRef.current;
|
|
10939
10961
|
if (!scrollEl)
|
|
@@ -10974,7 +10996,6 @@ const ScrollMask$1 = (props) => {
|
|
|
10974
10996
|
}
|
|
10975
10997
|
}));
|
|
10976
10998
|
};
|
|
10977
|
-
const ScrollMask = ScrollMask$1;
|
|
10978
10999
|
var reactIs$1 = { exports: {} };
|
|
10979
11000
|
var reactIs_development$1 = {};
|
|
10980
11001
|
/**
|
|
@@ -11019,7 +11040,11 @@ var reactIs_development$1 = {};
|
|
|
11019
11040
|
return true;
|
|
11020
11041
|
}
|
|
11021
11042
|
if (typeof type4 === "object" && type4 !== null) {
|
|
11022
|
-
if (type4.$$typeof === REACT_LAZY_TYPE || type4.$$typeof === REACT_MEMO_TYPE || type4.$$typeof === REACT_PROVIDER_TYPE || type4.$$typeof === REACT_CONTEXT_TYPE || type4.$$typeof === REACT_FORWARD_REF_TYPE ||
|
|
11043
|
+
if (type4.$$typeof === REACT_LAZY_TYPE || type4.$$typeof === REACT_MEMO_TYPE || type4.$$typeof === REACT_PROVIDER_TYPE || type4.$$typeof === REACT_CONTEXT_TYPE || type4.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
|
|
11044
|
+
// types supported by any Flight configuration anywhere since
|
|
11045
|
+
// we don't know which Flight build this will end up being used
|
|
11046
|
+
// with.
|
|
11047
|
+
type4.$$typeof === REACT_MODULE_REFERENCE || type4.getModuleId !== void 0) {
|
|
11023
11048
|
return true;
|
|
11024
11049
|
}
|
|
11025
11050
|
}
|
|
@@ -11156,16 +11181,15 @@ var reactIs_development$1 = {};
|
|
|
11156
11181
|
reactIs_development$1.typeOf = typeOf;
|
|
11157
11182
|
})();
|
|
11158
11183
|
}
|
|
11159
|
-
|
|
11160
|
-
|
|
11161
|
-
|
|
11162
|
-
|
|
11163
|
-
})(reactIs$1);
|
|
11184
|
+
{
|
|
11185
|
+
reactIs$1.exports = reactIs_development$1;
|
|
11186
|
+
}
|
|
11187
|
+
var reactIsExports$1 = reactIs$1.exports;
|
|
11164
11188
|
function traverseReactNode(children, fn) {
|
|
11165
11189
|
let i2 = 0;
|
|
11166
11190
|
function handle(target) {
|
|
11167
11191
|
React__default.Children.forEach(target, (child) => {
|
|
11168
|
-
if (!
|
|
11192
|
+
if (!reactIsExports$1.isFragment(child)) {
|
|
11169
11193
|
fn(child, i2);
|
|
11170
11194
|
i2 += 1;
|
|
11171
11195
|
} else {
|
|
@@ -11261,12 +11285,11 @@ const CapsuleTabs = (props) => {
|
|
|
11261
11285
|
}, pane.props.children));
|
|
11262
11286
|
})));
|
|
11263
11287
|
};
|
|
11264
|
-
const index$
|
|
11288
|
+
const index$h = attachPropertiesToComponent(CapsuleTabs, {
|
|
11265
11289
|
Tab: CapsuleTab
|
|
11266
11290
|
});
|
|
11267
|
-
const card = "";
|
|
11268
11291
|
const classPrefix$19 = `adm-card`;
|
|
11269
|
-
const Card
|
|
11292
|
+
const Card = (props) => {
|
|
11270
11293
|
const renderHeader = () => {
|
|
11271
11294
|
if (!(props.title || props.extra)) {
|
|
11272
11295
|
return null;
|
|
@@ -11294,8 +11317,6 @@ const Card$1 = (props) => {
|
|
|
11294
11317
|
onClick: props.onClick
|
|
11295
11318
|
}, renderHeader(), renderBody()));
|
|
11296
11319
|
};
|
|
11297
|
-
const Card = Card$1;
|
|
11298
|
-
const picker = "";
|
|
11299
11320
|
function rubberband(distance, dimension, constant2) {
|
|
11300
11321
|
return distance * dimension * constant2 / (dimension + constant2 * distance);
|
|
11301
11322
|
}
|
|
@@ -11500,7 +11521,7 @@ const Wheel = memo((props) => {
|
|
|
11500
11521
|
}, React__default.createElement("div", {
|
|
11501
11522
|
className: `${classPrefix$18}-column-accessible-current`,
|
|
11502
11523
|
role: "button",
|
|
11503
|
-
"aria-label": current ?
|
|
11524
|
+
"aria-label": current ? `当前选择的是:${current.label}` : "当前未选择"
|
|
11504
11525
|
}, "-"), React__default.createElement("div", {
|
|
11505
11526
|
className: `${classPrefix$18}-column-accessible-button`,
|
|
11506
11527
|
onClick: () => {
|
|
@@ -11509,7 +11530,7 @@ const Wheel = memo((props) => {
|
|
|
11509
11530
|
scrollSelect(previousIndex);
|
|
11510
11531
|
},
|
|
11511
11532
|
role: previous ? "button" : "text",
|
|
11512
|
-
"aria-label": !previous ? "
|
|
11533
|
+
"aria-label": !previous ? "没有上一项" : `选择上一项:${previous.label}`
|
|
11513
11534
|
}, "-"), React__default.createElement("div", {
|
|
11514
11535
|
className: `${classPrefix$18}-column-accessible-button`,
|
|
11515
11536
|
onClick: () => {
|
|
@@ -11518,7 +11539,7 @@ const Wheel = memo((props) => {
|
|
|
11518
11539
|
scrollSelect(nextIndex);
|
|
11519
11540
|
},
|
|
11520
11541
|
role: next ? "button" : "text",
|
|
11521
|
-
"aria-label": !next ? "
|
|
11542
|
+
"aria-label": !next ? "没有下一项" : `选择下一项:${next.label}`
|
|
11522
11543
|
}, "-"));
|
|
11523
11544
|
}
|
|
11524
11545
|
return React__default.createElement("div", {
|
|
@@ -11564,7 +11585,7 @@ const Wheel = memo((props) => {
|
|
|
11564
11585
|
return false;
|
|
11565
11586
|
if (prev.mouseWheel !== next.mouseWheel)
|
|
11566
11587
|
return false;
|
|
11567
|
-
if (!
|
|
11588
|
+
if (!isEqual$2(prev.column, next.column))
|
|
11568
11589
|
return false;
|
|
11569
11590
|
return true;
|
|
11570
11591
|
});
|
|
@@ -11609,7 +11630,6 @@ function useColumnsExtend(rawColumns, value) {
|
|
|
11609
11630
|
return useMemo(() => generateColumnsExtend(rawColumns, value), [rawColumns, value]);
|
|
11610
11631
|
}
|
|
11611
11632
|
const defaultRenderLabel = (item) => item.label;
|
|
11612
|
-
const spinLoading = "";
|
|
11613
11633
|
var shim = { exports: {} };
|
|
11614
11634
|
var useSyncExternalStoreShim_development = {};
|
|
11615
11635
|
/**
|
|
@@ -11735,11 +11755,10 @@ var useSyncExternalStoreShim_development = {};
|
|
|
11735
11755
|
}
|
|
11736
11756
|
})();
|
|
11737
11757
|
}
|
|
11738
|
-
|
|
11739
|
-
|
|
11740
|
-
|
|
11741
|
-
|
|
11742
|
-
})(shim);
|
|
11758
|
+
{
|
|
11759
|
+
shim.exports = useSyncExternalStoreShim_development;
|
|
11760
|
+
}
|
|
11761
|
+
var shimExports = shim.exports;
|
|
11743
11762
|
let reduced = false;
|
|
11744
11763
|
const subscribers = /* @__PURE__ */ new Set();
|
|
11745
11764
|
function notify() {
|
|
@@ -11771,7 +11790,7 @@ function subscribe(onStoreChange) {
|
|
|
11771
11790
|
};
|
|
11772
11791
|
}
|
|
11773
11792
|
function useMotionReduced() {
|
|
11774
|
-
return
|
|
11793
|
+
return shimExports.useSyncExternalStore(subscribe, isMotionReduced, isMotionReduced);
|
|
11775
11794
|
}
|
|
11776
11795
|
const classPrefix$17 = "adm-spin-loading";
|
|
11777
11796
|
const colorRecord$2 = {
|
|
@@ -11783,7 +11802,7 @@ const defaultProps$W = {
|
|
|
11783
11802
|
color: "default"
|
|
11784
11803
|
};
|
|
11785
11804
|
const circumference = 15 * 3.14159265358979 * 2;
|
|
11786
|
-
const SpinLoading
|
|
11805
|
+
const SpinLoading = memo((p) => {
|
|
11787
11806
|
var _a;
|
|
11788
11807
|
const props = mergeProps(defaultProps$W, p);
|
|
11789
11808
|
const motionReduced = useMotionReduced();
|
|
@@ -11825,7 +11844,6 @@ const SpinLoading$1 = memo((p) => {
|
|
|
11825
11844
|
cy: 16
|
|
11826
11845
|
}))));
|
|
11827
11846
|
});
|
|
11828
|
-
const SpinLoading = SpinLoading$1;
|
|
11829
11847
|
const classPrefix$16 = `adm-picker-view`;
|
|
11830
11848
|
const defaultProps$V = {
|
|
11831
11849
|
defaultValue: [],
|
|
@@ -11835,7 +11853,7 @@ const defaultProps$V = {
|
|
|
11835
11853
|
className: `${classPrefix$16}-loading-content`
|
|
11836
11854
|
}, React__default.createElement(SpinLoading, null))
|
|
11837
11855
|
};
|
|
11838
|
-
const PickerView
|
|
11856
|
+
const PickerView = memo((p) => {
|
|
11839
11857
|
const props = mergeProps(defaultProps$V, p);
|
|
11840
11858
|
const [innerValue, setInnerValue] = useState$1(props.value === void 0 ? props.defaultValue : props.value);
|
|
11841
11859
|
useEffect(() => {
|
|
@@ -11896,9 +11914,7 @@ const PickerView$1 = memo((p) => {
|
|
|
11896
11914
|
className: `${classPrefix$16}-mask-bottom`
|
|
11897
11915
|
})))));
|
|
11898
11916
|
});
|
|
11899
|
-
PickerView
|
|
11900
|
-
const pickerView = "";
|
|
11901
|
-
const PickerView = PickerView$1;
|
|
11917
|
+
PickerView.displayName = "PickerView";
|
|
11902
11918
|
const classPrefix$15 = `adm-picker`;
|
|
11903
11919
|
const defaultProps$U = {
|
|
11904
11920
|
defaultValue: [],
|
|
@@ -12136,10 +12152,10 @@ function prompt$2(props) {
|
|
|
12136
12152
|
const unmount2 = renderToBody(React__default.createElement(Wrapper2, null));
|
|
12137
12153
|
});
|
|
12138
12154
|
}
|
|
12139
|
-
const index$
|
|
12155
|
+
const index$g = attachPropertiesToComponent(CascadePicker, {
|
|
12140
12156
|
prompt: prompt$2
|
|
12141
12157
|
});
|
|
12142
|
-
const CascadePickerView
|
|
12158
|
+
const CascadePickerView = (props) => {
|
|
12143
12159
|
const {
|
|
12144
12160
|
options
|
|
12145
12161
|
} = props, pickerProps = __rest(props, ["options"]);
|
|
@@ -12148,9 +12164,6 @@ const CascadePickerView$1 = (props) => {
|
|
|
12148
12164
|
columns: columnsFn
|
|
12149
12165
|
}));
|
|
12150
12166
|
};
|
|
12151
|
-
const CascadePickerView = CascadePickerView$1;
|
|
12152
|
-
const cascaderView = "";
|
|
12153
|
-
const tabs = "";
|
|
12154
12167
|
const classPrefix$14 = `adm-tabs`;
|
|
12155
12168
|
const Tab = () => {
|
|
12156
12169
|
return null;
|
|
@@ -12194,7 +12207,7 @@ const Tabs$1 = (p) => {
|
|
|
12194
12207
|
const [{
|
|
12195
12208
|
x,
|
|
12196
12209
|
width
|
|
12197
|
-
},
|
|
12210
|
+
}, inkApi] = useSpring(() => ({
|
|
12198
12211
|
x: 0,
|
|
12199
12212
|
width: 0,
|
|
12200
12213
|
config: {
|
|
@@ -12221,13 +12234,13 @@ const Tabs$1 = (p) => {
|
|
|
12221
12234
|
clamp: true
|
|
12222
12235
|
}
|
|
12223
12236
|
}));
|
|
12224
|
-
function animate(immediate = false) {
|
|
12237
|
+
function animate(immediate = false, fromMutation = false) {
|
|
12225
12238
|
const container = tabListContainerRef.current;
|
|
12226
12239
|
if (!container)
|
|
12227
12240
|
return;
|
|
12228
12241
|
const activeIndex = keyToIndexRecord[activeKey];
|
|
12229
12242
|
if (activeIndex === void 0) {
|
|
12230
|
-
|
|
12243
|
+
inkApi.start({
|
|
12231
12244
|
x: 0,
|
|
12232
12245
|
width: 0,
|
|
12233
12246
|
immediate: true
|
|
@@ -12262,7 +12275,7 @@ const Tabs$1 = (p) => {
|
|
|
12262
12275
|
const w = ["auto", "full"].includes(props.activeLineMode) ? width2 : activeLineWidth;
|
|
12263
12276
|
x2 = -(containerWidth - x2 - w);
|
|
12264
12277
|
}
|
|
12265
|
-
|
|
12278
|
+
inkApi.start({
|
|
12266
12279
|
x: x2,
|
|
12267
12280
|
width: width2,
|
|
12268
12281
|
immediate
|
|
@@ -12276,13 +12289,15 @@ const Tabs$1 = (p) => {
|
|
|
12276
12289
|
} else {
|
|
12277
12290
|
nextScrollLeft = bound(activeTabLeft - (containerWidth - activeTabWidth) / 2, 0, maxScrollDistance);
|
|
12278
12291
|
}
|
|
12279
|
-
|
|
12280
|
-
|
|
12281
|
-
|
|
12282
|
-
|
|
12283
|
-
|
|
12284
|
-
|
|
12285
|
-
|
|
12292
|
+
if (!fromMutation || props.autoScroll !== false) {
|
|
12293
|
+
scrollApi.start({
|
|
12294
|
+
scrollLeft: nextScrollLeft,
|
|
12295
|
+
from: {
|
|
12296
|
+
scrollLeft: containerScrollLeft
|
|
12297
|
+
},
|
|
12298
|
+
immediate
|
|
12299
|
+
});
|
|
12300
|
+
}
|
|
12286
12301
|
}
|
|
12287
12302
|
useIsomorphicLayoutEffect$2(() => {
|
|
12288
12303
|
animate(!x.isAnimating);
|
|
@@ -12294,7 +12309,7 @@ const Tabs$1 = (p) => {
|
|
|
12294
12309
|
animate(!x.isAnimating);
|
|
12295
12310
|
}, tabListContainerRef);
|
|
12296
12311
|
useMutationEffect(() => {
|
|
12297
|
-
animate(!x.isAnimating);
|
|
12312
|
+
animate(!x.isAnimating, true);
|
|
12298
12313
|
}, tabListContainerRef, {
|
|
12299
12314
|
subtree: true,
|
|
12300
12315
|
childList: true,
|
|
@@ -12403,8 +12418,6 @@ const Tabs$1 = (p) => {
|
|
|
12403
12418
|
const Tabs = attachPropertiesToComponent(Tabs$1, {
|
|
12404
12419
|
Tab
|
|
12405
12420
|
});
|
|
12406
|
-
const checkList = "";
|
|
12407
|
-
const list = "";
|
|
12408
12421
|
const classPrefix$13 = `adm-list`;
|
|
12409
12422
|
const defaultProps$S = {
|
|
12410
12423
|
mode: "default"
|
|
@@ -12550,38 +12563,43 @@ function memoize(func, resolver) {
|
|
|
12550
12563
|
if (cache.has(key)) {
|
|
12551
12564
|
return cache.get(key);
|
|
12552
12565
|
}
|
|
12553
|
-
var
|
|
12554
|
-
memoized.cache = cache.set(key,
|
|
12555
|
-
return
|
|
12566
|
+
var result = func.apply(this, args);
|
|
12567
|
+
memoized.cache = cache.set(key, result) || cache;
|
|
12568
|
+
return result;
|
|
12556
12569
|
};
|
|
12557
12570
|
memoized.cache = new (memoize.Cache || MapCache)();
|
|
12558
12571
|
return memoized;
|
|
12559
12572
|
}
|
|
12560
12573
|
memoize.Cache = MapCache;
|
|
12561
12574
|
var memoize_1 = memoize;
|
|
12562
|
-
|
|
12575
|
+
const memoize$1 = /* @__PURE__ */ getDefaultExportFromCjs(memoize_1);
|
|
12576
|
+
function useCascaderValueExtend(options, fieldNames) {
|
|
12577
|
+
const {
|
|
12578
|
+
valueName,
|
|
12579
|
+
childrenName
|
|
12580
|
+
} = fieldNames;
|
|
12563
12581
|
const generateItems = useMemo(() => {
|
|
12564
|
-
return
|
|
12582
|
+
return memoize$1((val) => {
|
|
12565
12583
|
const ret = [];
|
|
12566
12584
|
let currentOptions = options;
|
|
12567
12585
|
for (const v of val) {
|
|
12568
|
-
const target = currentOptions.find((option) => option
|
|
12586
|
+
const target = currentOptions.find((option) => option[valueName] === v);
|
|
12569
12587
|
if (!target) {
|
|
12570
12588
|
break;
|
|
12571
12589
|
}
|
|
12572
12590
|
ret.push(target);
|
|
12573
|
-
if (!target
|
|
12591
|
+
if (!target[childrenName])
|
|
12574
12592
|
break;
|
|
12575
|
-
currentOptions = target
|
|
12593
|
+
currentOptions = target[childrenName];
|
|
12576
12594
|
}
|
|
12577
12595
|
return ret;
|
|
12578
12596
|
}, (val) => JSON.stringify(val));
|
|
12579
12597
|
}, [options]);
|
|
12580
12598
|
const generateIsLeaf = useMemo(() => {
|
|
12581
|
-
return
|
|
12599
|
+
return memoize$1((val) => {
|
|
12582
12600
|
const children = val.reduce((currentOptions, v) => {
|
|
12583
12601
|
var _a;
|
|
12584
|
-
return ((_a = currentOptions.find((option) => option
|
|
12602
|
+
return ((_a = currentOptions.find((option) => option[valueName] === v)) === null || _a === void 0 ? void 0 : _a[childrenName]) || [];
|
|
12585
12603
|
}, options);
|
|
12586
12604
|
return children.length === 0;
|
|
12587
12605
|
}, (val) => JSON.stringify(val));
|
|
@@ -12599,7 +12617,6 @@ function useCascaderValueExtend(options) {
|
|
|
12599
12617
|
return generateValueExtend;
|
|
12600
12618
|
}
|
|
12601
12619
|
const optionSkeleton = [];
|
|
12602
|
-
const skeleton = "";
|
|
12603
12620
|
function generateIntArray(from, to2) {
|
|
12604
12621
|
const array4 = [];
|
|
12605
12622
|
for (let i2 = from; i2 <= to2; i2++) {
|
|
@@ -12661,8 +12678,11 @@ const CascaderView$1 = (p) => {
|
|
|
12661
12678
|
const {
|
|
12662
12679
|
locale
|
|
12663
12680
|
} = useConfig();
|
|
12664
|
-
const generateValueExtend = useCascaderValueExtend(props.options);
|
|
12665
12681
|
const [labelName, valueName, childrenName, disabledName] = useFieldNames(props.fieldNames);
|
|
12682
|
+
const generateValueExtend = useCascaderValueExtend(props.options, {
|
|
12683
|
+
valueName,
|
|
12684
|
+
childrenName
|
|
12685
|
+
});
|
|
12666
12686
|
const [value, setValue2] = usePropsValue(Object.assign(Object.assign({}, props), {
|
|
12667
12687
|
onChange: (val) => {
|
|
12668
12688
|
var _a;
|
|
@@ -12814,7 +12834,11 @@ const Cascader = forwardRef((p, ref) => {
|
|
|
12814
12834
|
(_a2 = props.onConfirm) === null || _a2 === void 0 ? void 0 : _a2.call(props, val, generateValueExtend(val));
|
|
12815
12835
|
}
|
|
12816
12836
|
}));
|
|
12817
|
-
const
|
|
12837
|
+
const [, valueName, childrenName] = useFieldNames(props.fieldNames);
|
|
12838
|
+
const generateValueExtend = useCascaderValueExtend(props.options, {
|
|
12839
|
+
valueName,
|
|
12840
|
+
childrenName
|
|
12841
|
+
});
|
|
12818
12842
|
const [innerValue, setInnerValue] = useState$1(value);
|
|
12819
12843
|
useEffect(() => {
|
|
12820
12844
|
if (!visible) {
|
|
@@ -12900,17 +12924,15 @@ function prompt$1(props) {
|
|
|
12900
12924
|
const unmount2 = renderToBody(React__default.createElement(Wrapper2, null));
|
|
12901
12925
|
});
|
|
12902
12926
|
}
|
|
12903
|
-
const
|
|
12904
|
-
const index$g = attachPropertiesToComponent(Cascader, {
|
|
12927
|
+
const index$f = attachPropertiesToComponent(Cascader, {
|
|
12905
12928
|
prompt: prompt$1,
|
|
12906
12929
|
optionSkeleton
|
|
12907
12930
|
});
|
|
12908
|
-
const centerPopup = "";
|
|
12909
12931
|
const classPrefix$Y = "adm-center-popup";
|
|
12910
12932
|
const defaultProps$O = Object.assign(Object.assign({}, defaultPopupBaseProps), {
|
|
12911
12933
|
getContainer: null
|
|
12912
12934
|
});
|
|
12913
|
-
const CenterPopup
|
|
12935
|
+
const CenterPopup = (p) => {
|
|
12914
12936
|
const props = mergeProps(defaultProps$O, p);
|
|
12915
12937
|
const unmountedRef = useUnmountedRef$1();
|
|
12916
12938
|
const style = useSpring({
|
|
@@ -12990,8 +13012,6 @@ const CenterPopup$1 = (p) => {
|
|
|
12990
13012
|
destroyOnClose: props.destroyOnClose
|
|
12991
13013
|
}, renderToContainer(props.getContainer, node));
|
|
12992
13014
|
};
|
|
12993
|
-
const CenterPopup = CenterPopup$1;
|
|
12994
|
-
const checkbox = "";
|
|
12995
13015
|
const CheckboxGroupContext = createContext(null);
|
|
12996
13016
|
const defaultProps$N = {
|
|
12997
13017
|
disabled: false,
|
|
@@ -13003,6 +13023,7 @@ const Group$1 = (p) => {
|
|
|
13003
13023
|
return React__default.createElement(
|
|
13004
13024
|
CheckboxGroupContext.Provider,
|
|
13005
13025
|
{
|
|
13026
|
+
// TODO: 性能优化
|
|
13006
13027
|
value: {
|
|
13007
13028
|
value,
|
|
13008
13029
|
disabled: props.disabled,
|
|
@@ -13048,10 +13069,10 @@ const NativeInput = (props) => {
|
|
|
13048
13069
|
return;
|
|
13049
13070
|
if (!inputRef.current)
|
|
13050
13071
|
return;
|
|
13051
|
-
const
|
|
13052
|
-
|
|
13072
|
+
const input = inputRef.current;
|
|
13073
|
+
input.addEventListener("click", handleClick);
|
|
13053
13074
|
return () => {
|
|
13054
|
-
|
|
13075
|
+
input.removeEventListener("click", handleClick);
|
|
13055
13076
|
};
|
|
13056
13077
|
}, [props.disabled, props.onChange]);
|
|
13057
13078
|
return React__default.createElement("input", {
|
|
@@ -13082,7 +13103,7 @@ const Checkbox$1 = forwardRef((p, ref) => {
|
|
|
13082
13103
|
value
|
|
13083
13104
|
} = props;
|
|
13084
13105
|
if (groupContext && value !== void 0) {
|
|
13085
|
-
|
|
13106
|
+
{
|
|
13086
13107
|
if (p.checked !== void 0) {
|
|
13087
13108
|
devWarning("Checkbox", "When used within `Checkbox.Group`, the `checked` prop of `Checkbox` will not work.");
|
|
13088
13109
|
}
|
|
@@ -13144,7 +13165,6 @@ const Checkbox$1 = forwardRef((p, ref) => {
|
|
|
13144
13165
|
const Checkbox = attachPropertiesToComponent(Checkbox$1, {
|
|
13145
13166
|
Group: Group$1
|
|
13146
13167
|
});
|
|
13147
|
-
const collapse = "";
|
|
13148
13168
|
const classPrefix$W = `adm-collapse`;
|
|
13149
13169
|
const CollapsePanel = () => {
|
|
13150
13170
|
return null;
|
|
@@ -13305,10 +13325,9 @@ const Collapse = (props) => {
|
|
|
13305
13325
|
}, panel.props.children));
|
|
13306
13326
|
}))));
|
|
13307
13327
|
};
|
|
13308
|
-
const index$
|
|
13328
|
+
const index$e = attachPropertiesToComponent(Collapse, {
|
|
13309
13329
|
Panel: CollapsePanel
|
|
13310
13330
|
});
|
|
13311
|
-
const datePicker = "";
|
|
13312
13331
|
var isoWeeksInYear$1 = { exports: {} };
|
|
13313
13332
|
(function(module, exports) {
|
|
13314
13333
|
!function(e2, n2) {
|
|
@@ -13322,7 +13341,8 @@ var isoWeeksInYear$1 = { exports: {} };
|
|
|
13322
13341
|
};
|
|
13323
13342
|
});
|
|
13324
13343
|
})(isoWeeksInYear$1);
|
|
13325
|
-
|
|
13344
|
+
var isoWeeksInYearExports = isoWeeksInYear$1.exports;
|
|
13345
|
+
const isoWeeksInYear = /* @__PURE__ */ getDefaultExportFromCjs(isoWeeksInYearExports);
|
|
13326
13346
|
var isLeapYear$1 = { exports: {} };
|
|
13327
13347
|
(function(module, exports) {
|
|
13328
13348
|
!function(e2, t) {
|
|
@@ -13335,7 +13355,8 @@ var isLeapYear$1 = { exports: {} };
|
|
|
13335
13355
|
};
|
|
13336
13356
|
});
|
|
13337
13357
|
})(isLeapYear$1);
|
|
13338
|
-
|
|
13358
|
+
var isLeapYearExports = isLeapYear$1.exports;
|
|
13359
|
+
const isLeapYear = /* @__PURE__ */ getDefaultExportFromCjs(isLeapYearExports);
|
|
13339
13360
|
const TILL_NOW = "TILL_NOW";
|
|
13340
13361
|
dayjs.extend(isoWeek);
|
|
13341
13362
|
dayjs.extend(isoWeeksInYear);
|
|
@@ -13583,7 +13604,7 @@ const convertDateToStringArray = (date4, precision) => {
|
|
|
13583
13604
|
};
|
|
13584
13605
|
const convertStringArrayToDate = (value, precision) => {
|
|
13585
13606
|
if ((value === null || value === void 0 ? void 0 : value[0]) === TILL_NOW) {
|
|
13586
|
-
const now2 = new Date();
|
|
13607
|
+
const now2 = /* @__PURE__ */ new Date();
|
|
13587
13608
|
now2.tillNow = true;
|
|
13588
13609
|
return now2;
|
|
13589
13610
|
}
|
|
@@ -13620,10 +13641,10 @@ function useRenderLabel(renderLabel) {
|
|
|
13620
13641
|
}
|
|
13621
13642
|
}, [renderLabel]);
|
|
13622
13643
|
}
|
|
13623
|
-
const thisYear$1 = new Date().getFullYear();
|
|
13644
|
+
const thisYear$1 = (/* @__PURE__ */ new Date()).getFullYear();
|
|
13624
13645
|
const defaultProps$L = {
|
|
13625
|
-
min: new Date(new Date().setFullYear(thisYear$1 - 10)),
|
|
13626
|
-
max: new Date(new Date().setFullYear(thisYear$1 + 10)),
|
|
13646
|
+
min: new Date((/* @__PURE__ */ new Date()).setFullYear(thisYear$1 - 10)),
|
|
13647
|
+
max: new Date((/* @__PURE__ */ new Date()).setFullYear(thisYear$1 + 10)),
|
|
13627
13648
|
precision: "day",
|
|
13628
13649
|
defaultValue: null
|
|
13629
13650
|
};
|
|
@@ -13642,7 +13663,7 @@ const DatePicker = forwardRef((p, ref) => {
|
|
|
13642
13663
|
(_a = props.onConfirm) === null || _a === void 0 ? void 0 : _a.call(props, v);
|
|
13643
13664
|
}
|
|
13644
13665
|
});
|
|
13645
|
-
const now2 = useMemo(() => new Date(), []);
|
|
13666
|
+
const now2 = useMemo(() => /* @__PURE__ */ new Date(), []);
|
|
13646
13667
|
const mergedRenderLabel = useRenderLabel(renderLabel);
|
|
13647
13668
|
const pickerValue = useMemo(() => {
|
|
13648
13669
|
let date4 = value !== null && value !== void 0 ? value : now2;
|
|
@@ -13720,17 +13741,17 @@ function prompt(props) {
|
|
|
13720
13741
|
const unmount2 = renderToBody(React__default.createElement(Wrapper2, null));
|
|
13721
13742
|
});
|
|
13722
13743
|
}
|
|
13723
|
-
const index$
|
|
13744
|
+
const index$d = attachPropertiesToComponent(DatePicker, {
|
|
13724
13745
|
prompt,
|
|
13725
13746
|
DATE_NOW: TILL_NOW
|
|
13726
13747
|
});
|
|
13727
|
-
const thisYear = new Date().getFullYear();
|
|
13748
|
+
const thisYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
13728
13749
|
const defaultProps$K = {
|
|
13729
|
-
min: new Date(new Date().setFullYear(thisYear - 10)),
|
|
13730
|
-
max: new Date(new Date().setFullYear(thisYear + 10)),
|
|
13750
|
+
min: new Date((/* @__PURE__ */ new Date()).setFullYear(thisYear - 10)),
|
|
13751
|
+
max: new Date((/* @__PURE__ */ new Date()).setFullYear(thisYear + 10)),
|
|
13731
13752
|
precision: "day"
|
|
13732
13753
|
};
|
|
13733
|
-
const DatePickerView
|
|
13754
|
+
const DatePickerView = (p) => {
|
|
13734
13755
|
var _a;
|
|
13735
13756
|
const props = mergeProps(defaultProps$K, p);
|
|
13736
13757
|
const {
|
|
@@ -13764,8 +13785,6 @@ const DatePickerView$1 = (p) => {
|
|
|
13764
13785
|
onChange
|
|
13765
13786
|
}));
|
|
13766
13787
|
};
|
|
13767
|
-
const DatePickerView = DatePickerView$1;
|
|
13768
|
-
const dialog = "";
|
|
13769
13788
|
const DialogActionButton = (props) => {
|
|
13770
13789
|
const {
|
|
13771
13790
|
action
|
|
@@ -13883,8 +13902,8 @@ function alert$1(p) {
|
|
|
13883
13902
|
});
|
|
13884
13903
|
}
|
|
13885
13904
|
const defaultProps$I = {
|
|
13886
|
-
confirmText: "
|
|
13887
|
-
cancelText: "
|
|
13905
|
+
confirmText: "确认",
|
|
13906
|
+
cancelText: "取消"
|
|
13888
13907
|
};
|
|
13889
13908
|
function confirm$1(p) {
|
|
13890
13909
|
const {
|
|
@@ -13928,13 +13947,12 @@ function clear$2() {
|
|
|
13928
13947
|
close();
|
|
13929
13948
|
});
|
|
13930
13949
|
}
|
|
13931
|
-
const index$
|
|
13950
|
+
const index$c = attachPropertiesToComponent(Dialog, {
|
|
13932
13951
|
show: show$2,
|
|
13933
13952
|
alert: alert$1,
|
|
13934
13953
|
confirm: confirm$1,
|
|
13935
13954
|
clear: clear$2
|
|
13936
13955
|
});
|
|
13937
|
-
const dropdown = "";
|
|
13938
13956
|
const classPrefix$V = `adm-dropdown-item`;
|
|
13939
13957
|
const Item = (props) => {
|
|
13940
13958
|
var _a;
|
|
@@ -14013,8 +14031,10 @@ const Dropdown = forwardRef((p, ref) => {
|
|
|
14013
14031
|
const navs = React__default.Children.map(props.children, (child) => {
|
|
14014
14032
|
if (isValidElement(child)) {
|
|
14015
14033
|
const childProps = Object.assign(Object.assign({}, child.props), {
|
|
14016
|
-
onClick: () => {
|
|
14034
|
+
onClick: (event) => {
|
|
14035
|
+
var _a, _b;
|
|
14017
14036
|
changeActive(child.key);
|
|
14037
|
+
(_b = (_a = child.props).onClick) === null || _b === void 0 ? void 0 : _b.call(_a, event);
|
|
14018
14038
|
},
|
|
14019
14039
|
active: child.key === value,
|
|
14020
14040
|
arrow: child.props.arrow === void 0 ? props.arrow : child.props.arrow
|
|
@@ -14067,10 +14087,9 @@ const Dropdown = forwardRef((p, ref) => {
|
|
|
14067
14087
|
})))));
|
|
14068
14088
|
});
|
|
14069
14089
|
const Dropdown$1 = Dropdown;
|
|
14070
|
-
const index$
|
|
14090
|
+
const index$b = attachPropertiesToComponent(Dropdown$1, {
|
|
14071
14091
|
Item: Item$1
|
|
14072
14092
|
});
|
|
14073
|
-
const ellipsis = "";
|
|
14074
14093
|
var i;
|
|
14075
14094
|
!function(i2) {
|
|
14076
14095
|
i2[i2.HIGH_SURROGATE_START = 55296] = "HIGH_SURROGATE_START", i2[i2.HIGH_SURROGATE_END = 56319] = "HIGH_SURROGATE_END", i2[i2.LOW_SURROGATE_START = 56320] = "LOW_SURROGATE_START", i2[i2.REGIONAL_INDICATOR_START = 127462] = "REGIONAL_INDICATOR_START", i2[i2.REGIONAL_INDICATOR_END = 127487] = "REGIONAL_INDICATOR_END", i2[i2.FITZPATRICK_MODIFIER_START = 127995] = "FITZPATRICK_MODIFIER_START", i2[i2.FITZPATRICK_MODIFIER_END = 127999] = "FITZPATRICK_MODIFIER_END", i2[i2.VARIATION_MODIFIER_START = 65024] = "VARIATION_MODIFIER_START", i2[i2.VARIATION_MODIFIER_END = 65039] = "VARIATION_MODIFIER_END", i2[i2.DIACRITICAL_MARKS_START = 8400] = "DIACRITICAL_MARKS_START", i2[i2.DIACRITICAL_MARKS_END = 8447] = "DIACRITICAL_MARKS_END", i2[i2.SUBDIVISION_INDICATOR_START = 127988] = "SUBDIVISION_INDICATOR_START", i2[i2.TAGS_START = 917504] = "TAGS_START", i2[i2.TAGS_END = 917631] = "TAGS_END", i2[i2.ZWJ = 8205] = "ZWJ";
|
|
@@ -14143,7 +14162,7 @@ const defaultProps$G = {
|
|
|
14143
14162
|
},
|
|
14144
14163
|
defaultExpanded: false
|
|
14145
14164
|
};
|
|
14146
|
-
const Ellipsis
|
|
14165
|
+
const Ellipsis = (p) => {
|
|
14147
14166
|
const props = mergeProps(defaultProps$G, p);
|
|
14148
14167
|
const rootRef = useRef(null);
|
|
14149
14168
|
const expandElRef = useRef(null);
|
|
@@ -14279,8 +14298,6 @@ function pxToNumber(value) {
|
|
|
14279
14298
|
const match = value.match(/^\d*(\.\d*)?/);
|
|
14280
14299
|
return match ? Number(match[0]) : 0;
|
|
14281
14300
|
}
|
|
14282
|
-
const Ellipsis = Ellipsis$1;
|
|
14283
|
-
const empty = "";
|
|
14284
14301
|
const EmptyIcon = (props) => {
|
|
14285
14302
|
return withNativeProps(props, React__default.createElement("svg", {
|
|
14286
14303
|
viewBox: "0 0 64 41"
|
|
@@ -14304,26 +14321,26 @@ const EmptyIcon = (props) => {
|
|
|
14304
14321
|
})))));
|
|
14305
14322
|
};
|
|
14306
14323
|
const classPrefix$S = `adm-empty`;
|
|
14307
|
-
const Empty
|
|
14324
|
+
const Empty = (props) => {
|
|
14308
14325
|
function renderImageNode() {
|
|
14309
14326
|
const {
|
|
14310
|
-
image
|
|
14327
|
+
image
|
|
14311
14328
|
} = props;
|
|
14312
|
-
if (
|
|
14329
|
+
if (image === void 0) {
|
|
14313
14330
|
return React__default.createElement(EmptyIcon, {
|
|
14314
14331
|
className: `${classPrefix$S}-image`,
|
|
14315
14332
|
style: props.imageStyle
|
|
14316
14333
|
});
|
|
14317
14334
|
}
|
|
14318
|
-
if (typeof
|
|
14335
|
+
if (typeof image === "string") {
|
|
14319
14336
|
return React__default.createElement("img", {
|
|
14320
14337
|
className: `${classPrefix$S}-image`,
|
|
14321
14338
|
style: props.imageStyle,
|
|
14322
|
-
src:
|
|
14339
|
+
src: image,
|
|
14323
14340
|
alt: "empty"
|
|
14324
14341
|
});
|
|
14325
14342
|
}
|
|
14326
|
-
return
|
|
14343
|
+
return image;
|
|
14327
14344
|
}
|
|
14328
14345
|
return withNativeProps(props, React__default.createElement("div", {
|
|
14329
14346
|
className: classPrefix$S
|
|
@@ -14333,8 +14350,6 @@ const Empty$1 = (props) => {
|
|
|
14333
14350
|
className: classNames(`${classPrefix$S}-description`)
|
|
14334
14351
|
}, props.description)));
|
|
14335
14352
|
};
|
|
14336
|
-
const Empty = Empty$1;
|
|
14337
|
-
const errorBlock = "";
|
|
14338
14353
|
const classPrefix$R = `adm-error-block`;
|
|
14339
14354
|
const defaultProps$F = {
|
|
14340
14355
|
status: "default"
|
|
@@ -14349,11 +14364,11 @@ function createErrorBlock(imageRecord2) {
|
|
|
14349
14364
|
const contentPack = locale.ErrorBlock[props.status];
|
|
14350
14365
|
const desc = "description" in props ? props.description : contentPack.description;
|
|
14351
14366
|
const title = "title" in props ? props.title : contentPack.title;
|
|
14352
|
-
const
|
|
14353
|
-
const imageNode = typeof
|
|
14354
|
-
src:
|
|
14367
|
+
const image = (_a = props.image) !== null && _a !== void 0 ? _a : imageRecord2[props.status];
|
|
14368
|
+
const imageNode = typeof image === "string" ? React__default.createElement("img", {
|
|
14369
|
+
src: image,
|
|
14355
14370
|
alt: "error block image"
|
|
14356
|
-
}) :
|
|
14371
|
+
}) : image;
|
|
14357
14372
|
return withNativeProps(props, React__default.createElement("div", {
|
|
14358
14373
|
className: classNames(classPrefix$R, {
|
|
14359
14374
|
[`${classPrefix$R}-full-page`]: props.fullPage
|
|
@@ -14541,7 +14556,7 @@ const disconnectedImage = React__default.createElement("svg", {
|
|
|
14541
14556
|
viewBox: "0 0 400 400",
|
|
14542
14557
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14543
14558
|
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
14544
|
-
}, React__default.createElement("title", null, "
|
|
14559
|
+
}, React__default.createElement("title", null, "@反馈/异常/网络服务异常"), React__default.createElement("defs", null, React__default.createElement("linearGradient", {
|
|
14545
14560
|
x1: "50%",
|
|
14546
14561
|
y1: "-116.862%",
|
|
14547
14562
|
x2: "50%",
|
|
@@ -14872,9 +14887,7 @@ const imageRecord = {
|
|
|
14872
14887
|
"empty": emptyImage,
|
|
14873
14888
|
"busy": busyImage
|
|
14874
14889
|
};
|
|
14875
|
-
const ErrorBlock
|
|
14876
|
-
const ErrorBlock = ErrorBlock$1;
|
|
14877
|
-
const floatingBubble = "";
|
|
14890
|
+
const ErrorBlock = createErrorBlock(imageRecord);
|
|
14878
14891
|
const classPrefix$Q = `adm-floating-bubble`;
|
|
14879
14892
|
const defaultProps$E = {
|
|
14880
14893
|
axis: "y",
|
|
@@ -14883,7 +14896,7 @@ const defaultProps$E = {
|
|
|
14883
14896
|
y: 0
|
|
14884
14897
|
}
|
|
14885
14898
|
};
|
|
14886
|
-
const FloatingBubble
|
|
14899
|
+
const FloatingBubble = (p) => {
|
|
14887
14900
|
const props = mergeProps(defaultProps$E, p);
|
|
14888
14901
|
const boundaryRef = useRef(null);
|
|
14889
14902
|
const buttonRef = useRef(null);
|
|
@@ -14911,11 +14924,11 @@ const FloatingBubble$1 = (p) => {
|
|
|
14911
14924
|
let nextY = state.offset[1];
|
|
14912
14925
|
if (state.last && props.magnetic) {
|
|
14913
14926
|
const boundary = boundaryRef.current;
|
|
14914
|
-
const
|
|
14915
|
-
if (!boundary || !
|
|
14927
|
+
const button = buttonRef.current;
|
|
14928
|
+
if (!boundary || !button)
|
|
14916
14929
|
return;
|
|
14917
14930
|
const boundaryRect = boundary.getBoundingClientRect();
|
|
14918
|
-
const buttonRect =
|
|
14931
|
+
const buttonRect = button.getBoundingClientRect();
|
|
14919
14932
|
if (props.magnetic === "x") {
|
|
14920
14933
|
const compensation = x.goal - x.get();
|
|
14921
14934
|
const leftDistance = buttonRect.left + compensation - boundaryRect.left;
|
|
@@ -14954,7 +14967,9 @@ const FloatingBubble$1 = (p) => {
|
|
|
14954
14967
|
pointer: {
|
|
14955
14968
|
touch: true
|
|
14956
14969
|
},
|
|
14970
|
+
// the component won't trigger drag logic if the user just clicked on the component.
|
|
14957
14971
|
filterTaps: true,
|
|
14972
|
+
// set constraints to the user gesture
|
|
14958
14973
|
bounds: boundaryRef,
|
|
14959
14974
|
from: () => [x.get(), y.get()]
|
|
14960
14975
|
});
|
|
@@ -14975,8 +14990,6 @@ const FloatingBubble$1 = (p) => {
|
|
|
14975
14990
|
ref: buttonRef
|
|
14976
14991
|
}), props.children)));
|
|
14977
14992
|
};
|
|
14978
|
-
const FloatingBubble = FloatingBubble$1;
|
|
14979
|
-
const floatingPanel = "";
|
|
14980
14993
|
function nearest(arr, target) {
|
|
14981
14994
|
return arr.reduce((pre, cur) => {
|
|
14982
14995
|
return Math.abs(pre - target) < Math.abs(cur - target) ? pre : cur;
|
|
@@ -14986,7 +14999,7 @@ const classPrefix$P = "adm-floating-panel";
|
|
|
14986
14999
|
const defaultProps$D = {
|
|
14987
15000
|
handleDraggingOfContent: true
|
|
14988
15001
|
};
|
|
14989
|
-
const FloatingPanel
|
|
15002
|
+
const FloatingPanel = forwardRef((p, ref) => {
|
|
14990
15003
|
var _a, _b;
|
|
14991
15004
|
const props = mergeProps(defaultProps$D, p);
|
|
14992
15005
|
const {
|
|
@@ -15012,8 +15025,8 @@ const FloatingPanel$1 = forwardRef((p, ref) => {
|
|
|
15012
15025
|
config: {
|
|
15013
15026
|
tension: 300
|
|
15014
15027
|
},
|
|
15015
|
-
onChange: (
|
|
15016
|
-
onHeightChange(-
|
|
15028
|
+
onChange: (result) => {
|
|
15029
|
+
onHeightChange(-result.value.y, y.isAnimating);
|
|
15017
15030
|
}
|
|
15018
15031
|
}));
|
|
15019
15032
|
useDrag((state) => {
|
|
@@ -15102,8 +15115,6 @@ const FloatingPanel$1 = forwardRef((p, ref) => {
|
|
|
15102
15115
|
ref: contentRef
|
|
15103
15116
|
}, props.children)));
|
|
15104
15117
|
});
|
|
15105
|
-
const FloatingPanel = FloatingPanel$1;
|
|
15106
|
-
const index$b = "";
|
|
15107
15118
|
function _extends$1() {
|
|
15108
15119
|
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
15109
15120
|
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
@@ -15158,17 +15169,17 @@ function _typeof$1(o) {
|
|
|
15158
15169
|
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
15159
15170
|
}, _typeof$1(o);
|
|
15160
15171
|
}
|
|
15161
|
-
function _toPrimitive(
|
|
15162
|
-
if (_typeof$1(
|
|
15163
|
-
return
|
|
15164
|
-
var prim =
|
|
15172
|
+
function _toPrimitive(input, hint) {
|
|
15173
|
+
if (_typeof$1(input) !== "object" || input === null)
|
|
15174
|
+
return input;
|
|
15175
|
+
var prim = input[Symbol.toPrimitive];
|
|
15165
15176
|
if (prim !== void 0) {
|
|
15166
|
-
var res = prim.call(
|
|
15177
|
+
var res = prim.call(input, hint || "default");
|
|
15167
15178
|
if (_typeof$1(res) !== "object")
|
|
15168
15179
|
return res;
|
|
15169
15180
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
15170
15181
|
}
|
|
15171
|
-
return (hint === "string" ? String : Number)(
|
|
15182
|
+
return (hint === "string" ? String : Number)(input);
|
|
15172
15183
|
}
|
|
15173
15184
|
function _toPropertyKey(arg) {
|
|
15174
15185
|
var key = _toPrimitive(arg, "string");
|
|
@@ -15330,14 +15341,14 @@ function _possibleConstructorReturn(self2, call2) {
|
|
|
15330
15341
|
function _createSuper(Derived) {
|
|
15331
15342
|
var hasNativeReflectConstruct = _isNativeReflectConstruct$1();
|
|
15332
15343
|
return function _createSuperInternal() {
|
|
15333
|
-
var Super = _getPrototypeOf$1(Derived),
|
|
15344
|
+
var Super = _getPrototypeOf$1(Derived), result;
|
|
15334
15345
|
if (hasNativeReflectConstruct) {
|
|
15335
15346
|
var NewTarget = _getPrototypeOf$1(this).constructor;
|
|
15336
|
-
|
|
15347
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
15337
15348
|
} else {
|
|
15338
|
-
|
|
15349
|
+
result = Super.apply(this, arguments);
|
|
15339
15350
|
}
|
|
15340
|
-
return _possibleConstructorReturn(this,
|
|
15351
|
+
return _possibleConstructorReturn(this, result);
|
|
15341
15352
|
};
|
|
15342
15353
|
}
|
|
15343
15354
|
var reactIs = { exports: {} };
|
|
@@ -15372,7 +15383,8 @@ var reactIs_development = {};
|
|
|
15372
15383
|
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
|
|
15373
15384
|
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
|
|
15374
15385
|
function isValidElementType(type4) {
|
|
15375
|
-
return typeof type4 === "string" || typeof type4 === "function" ||
|
|
15386
|
+
return typeof type4 === "string" || typeof type4 === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
15387
|
+
type4 === REACT_FRAGMENT_TYPE || type4 === REACT_CONCURRENT_MODE_TYPE || type4 === REACT_PROFILER_TYPE || type4 === REACT_STRICT_MODE_TYPE || type4 === REACT_SUSPENSE_TYPE || type4 === REACT_SUSPENSE_LIST_TYPE || typeof type4 === "object" && type4 !== null && (type4.$$typeof === REACT_LAZY_TYPE || type4.$$typeof === REACT_MEMO_TYPE || type4.$$typeof === REACT_PROVIDER_TYPE || type4.$$typeof === REACT_CONTEXT_TYPE || type4.$$typeof === REACT_FORWARD_REF_TYPE || type4.$$typeof === REACT_FUNDAMENTAL_TYPE || type4.$$typeof === REACT_RESPONDER_TYPE || type4.$$typeof === REACT_SCOPE_TYPE || type4.$$typeof === REACT_BLOCK_TYPE);
|
|
15376
15388
|
}
|
|
15377
15389
|
function typeOf(object4) {
|
|
15378
15390
|
if (typeof object4 === "object" && object4 !== null) {
|
|
@@ -15496,11 +15508,10 @@ var reactIs_development = {};
|
|
|
15496
15508
|
reactIs_development.typeOf = typeOf;
|
|
15497
15509
|
})();
|
|
15498
15510
|
}
|
|
15499
|
-
|
|
15500
|
-
|
|
15501
|
-
|
|
15502
|
-
|
|
15503
|
-
})(reactIs);
|
|
15511
|
+
{
|
|
15512
|
+
reactIs.exports = reactIs_development;
|
|
15513
|
+
}
|
|
15514
|
+
var reactIsExports = reactIs.exports;
|
|
15504
15515
|
function toArray$2(children) {
|
|
15505
15516
|
var option = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
15506
15517
|
var ret = [];
|
|
@@ -15510,7 +15521,7 @@ function toArray$2(children) {
|
|
|
15510
15521
|
}
|
|
15511
15522
|
if (Array.isArray(child)) {
|
|
15512
15523
|
ret = ret.concat(toArray$2(child));
|
|
15513
|
-
} else if (
|
|
15524
|
+
} else if (reactIsExports.isFragment(child) && child.props) {
|
|
15514
15525
|
ret = ret.concat(toArray$2(child.props.children, option));
|
|
15515
15526
|
} else {
|
|
15516
15527
|
ret.push(child);
|
|
@@ -15520,7 +15531,7 @@ function toArray$2(children) {
|
|
|
15520
15531
|
}
|
|
15521
15532
|
var warned$1 = {};
|
|
15522
15533
|
var preWarningFns$1 = [];
|
|
15523
|
-
var preMessage$1 = function
|
|
15534
|
+
var preMessage$1 = function preMessage2(fn) {
|
|
15524
15535
|
preWarningFns$1.push(fn);
|
|
15525
15536
|
};
|
|
15526
15537
|
function warning$3(valid, message) {
|
|
@@ -16040,7 +16051,7 @@ function _wrapNativeSuper(Class) {
|
|
|
16040
16051
|
return _wrapNativeSuper(Class);
|
|
16041
16052
|
}
|
|
16042
16053
|
var formatRegExp = /%[sdj%]/g;
|
|
16043
|
-
var warning$2 = function
|
|
16054
|
+
var warning$2 = function warning2() {
|
|
16044
16055
|
};
|
|
16045
16056
|
if (typeof process !== "undefined" && process.env && true && typeof window !== "undefined" && typeof document !== "undefined") {
|
|
16046
16057
|
warning$2 = function warning3(type4, errors) {
|
|
@@ -16310,7 +16321,12 @@ var getUrlRegex = function() {
|
|
|
16310
16321
|
return urlReg;
|
|
16311
16322
|
};
|
|
16312
16323
|
var pattern$2 = {
|
|
16324
|
+
// http://emailregex.com/
|
|
16313
16325
|
email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,
|
|
16326
|
+
// url: new RegExp(
|
|
16327
|
+
// '^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$',
|
|
16328
|
+
// 'i',
|
|
16329
|
+
// ),
|
|
16314
16330
|
hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
|
|
16315
16331
|
};
|
|
16316
16332
|
var types = {
|
|
@@ -17225,7 +17241,7 @@ function validateRule(_x, _x2, _x3, _x4, _x5) {
|
|
|
17225
17241
|
}
|
|
17226
17242
|
function _validateRule() {
|
|
17227
17243
|
_validateRule = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee2(name, value, rule, options, messageVariables) {
|
|
17228
|
-
var cloneRule, originValidator, subRuleField, validator, messages2,
|
|
17244
|
+
var cloneRule, originValidator, subRuleField, validator, messages2, result, subResults, kv, fillVariableResult;
|
|
17229
17245
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
17230
17246
|
while (1)
|
|
17231
17247
|
switch (_context2.prev = _context2.next) {
|
|
@@ -17251,7 +17267,7 @@ function _validateRule() {
|
|
|
17251
17267
|
validator = new AsyncValidator(_defineProperty({}, name, [cloneRule]));
|
|
17252
17268
|
messages2 = setValues({}, defaultValidateMessages, options.validateMessages);
|
|
17253
17269
|
validator.messages(messages2);
|
|
17254
|
-
|
|
17270
|
+
result = [];
|
|
17255
17271
|
_context2.prev = 9;
|
|
17256
17272
|
_context2.next = 12;
|
|
17257
17273
|
return Promise.resolve(validator.validate(_defineProperty({}, name, value), _objectSpread2({}, options)));
|
|
@@ -17262,16 +17278,19 @@ function _validateRule() {
|
|
|
17262
17278
|
_context2.prev = 14;
|
|
17263
17279
|
_context2.t0 = _context2["catch"](9);
|
|
17264
17280
|
if (_context2.t0.errors) {
|
|
17265
|
-
|
|
17281
|
+
result = _context2.t0.errors.map(function(_ref4, index2) {
|
|
17266
17282
|
var message = _ref4.message;
|
|
17267
17283
|
var mergedMessage = message === CODE_LOGIC_ERROR ? messages2.default : message;
|
|
17268
|
-
return /* @__PURE__ */ React$4.isValidElement(mergedMessage) ?
|
|
17269
|
-
key
|
|
17270
|
-
|
|
17284
|
+
return /* @__PURE__ */ React$4.isValidElement(mergedMessage) ? (
|
|
17285
|
+
// Wrap ReactNode with `key`
|
|
17286
|
+
React$4.cloneElement(mergedMessage, {
|
|
17287
|
+
key: "error_".concat(index2)
|
|
17288
|
+
})
|
|
17289
|
+
) : mergedMessage;
|
|
17271
17290
|
});
|
|
17272
17291
|
}
|
|
17273
17292
|
case 17:
|
|
17274
|
-
if (!(!
|
|
17293
|
+
if (!(!result.length && subRuleField)) {
|
|
17275
17294
|
_context2.next = 22;
|
|
17276
17295
|
break;
|
|
17277
17296
|
}
|
|
@@ -17289,7 +17308,7 @@ function _validateRule() {
|
|
|
17289
17308
|
name,
|
|
17290
17309
|
enum: (rule.enum || []).join(", ")
|
|
17291
17310
|
}, messageVariables);
|
|
17292
|
-
fillVariableResult =
|
|
17311
|
+
fillVariableResult = result.map(function(error) {
|
|
17293
17312
|
if (typeof error === "string") {
|
|
17294
17313
|
return replaceMessage(error, kv);
|
|
17295
17314
|
}
|
|
@@ -17742,8 +17761,8 @@ var Field = /* @__PURE__ */ function(_React$Component) {
|
|
|
17742
17761
|
var _this$props6 = _this.props, trigger = _this$props6.trigger, validateTrigger = _this$props6.validateTrigger, getValueFromEvent = _this$props6.getValueFromEvent, normalize2 = _this$props6.normalize, valuePropName = _this$props6.valuePropName, getValueProps = _this$props6.getValueProps, fieldContext = _this$props6.fieldContext;
|
|
17743
17762
|
var mergedValidateTrigger = validateTrigger !== void 0 ? validateTrigger : fieldContext.validateTrigger;
|
|
17744
17763
|
var namePath = _this.getNamePath();
|
|
17745
|
-
var
|
|
17746
|
-
var _getInternalHooks =
|
|
17764
|
+
var getInternalHooks22 = fieldContext.getInternalHooks, getFieldsValue = fieldContext.getFieldsValue;
|
|
17765
|
+
var _getInternalHooks = getInternalHooks22(HOOK_MARK$1), dispatch = _getInternalHooks.dispatch;
|
|
17747
17766
|
var value = _this.getValue();
|
|
17748
17767
|
var mergedGetValueProps = getValueProps || function(val) {
|
|
17749
17768
|
return _defineProperty({}, valuePropName, val);
|
|
@@ -18033,9 +18052,9 @@ function allPromiseFinish(promiseList) {
|
|
|
18033
18052
|
promise.catch(function(e2) {
|
|
18034
18053
|
hasError = true;
|
|
18035
18054
|
return e2;
|
|
18036
|
-
}).then(function(
|
|
18055
|
+
}).then(function(result) {
|
|
18037
18056
|
count -= 1;
|
|
18038
|
-
results[index2] =
|
|
18057
|
+
results[index2] = result;
|
|
18039
18058
|
if (count > 0) {
|
|
18040
18059
|
return;
|
|
18041
18060
|
}
|
|
@@ -18084,6 +18103,7 @@ var NameMap = /* @__PURE__ */ function() {
|
|
|
18084
18103
|
value: function _delete(key) {
|
|
18085
18104
|
this.kvs.delete(normalize(key));
|
|
18086
18105
|
}
|
|
18106
|
+
// Since we only use this in test, let simply realize this
|
|
18087
18107
|
}, {
|
|
18088
18108
|
key: "map",
|
|
18089
18109
|
value: function map(callback) {
|
|
@@ -18368,8 +18388,8 @@ var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate
|
|
|
18368
18388
|
if (shortNamePath.every(function(nameUnit, i2) {
|
|
18369
18389
|
return fieldNamePath[i2] === nameUnit;
|
|
18370
18390
|
})) {
|
|
18371
|
-
map.update(shortNamePath, function(
|
|
18372
|
-
return [].concat(_toConsumableArray(
|
|
18391
|
+
map.update(shortNamePath, function(list) {
|
|
18392
|
+
return [].concat(_toConsumableArray(list), [field]);
|
|
18373
18393
|
});
|
|
18374
18394
|
}
|
|
18375
18395
|
});
|
|
@@ -18560,7 +18580,10 @@ var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate
|
|
|
18560
18580
|
if (!_this.isMergedPreserve(preserve) && (!isListField || subNamePath.length > 1)) {
|
|
18561
18581
|
var defaultValue = isListField ? void 0 : _this.getInitialValue(namePath);
|
|
18562
18582
|
if (namePath.length && _this.getFieldValue(namePath) !== defaultValue && _this.fieldEntities.every(function(field) {
|
|
18563
|
-
return
|
|
18583
|
+
return (
|
|
18584
|
+
// Only reset when no namePath exist
|
|
18585
|
+
!matchNamePath(field.getNamePath(), namePath)
|
|
18586
|
+
);
|
|
18564
18587
|
})) {
|
|
18565
18588
|
var _prevStore = _this.store;
|
|
18566
18589
|
_this.updateStore(setValue(_prevStore, namePath, defaultValue, true));
|
|
@@ -18712,9 +18735,13 @@ var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate
|
|
|
18712
18735
|
}
|
|
18713
18736
|
if ((options === null || options === void 0 ? void 0 : options.recursive) && provideNameList) {
|
|
18714
18737
|
var namePath = field.getNamePath();
|
|
18715
|
-
if (
|
|
18716
|
-
|
|
18717
|
-
|
|
18738
|
+
if (
|
|
18739
|
+
// nameList[i] === undefined 说明是以 nameList 开头的
|
|
18740
|
+
// ['name'] -> ['name','list']
|
|
18741
|
+
namePath.every(function(nameUnit, i2) {
|
|
18742
|
+
return nameList[i2] === nameUnit || nameList[i2] === void 0;
|
|
18743
|
+
})
|
|
18744
|
+
) {
|
|
18718
18745
|
namePathList.push(namePath);
|
|
18719
18746
|
}
|
|
18720
18747
|
}
|
|
@@ -18779,8 +18806,8 @@ var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate
|
|
|
18779
18806
|
}
|
|
18780
18807
|
return Promise.reject([]);
|
|
18781
18808
|
}).catch(function(results) {
|
|
18782
|
-
var errorList = results.filter(function(
|
|
18783
|
-
return
|
|
18809
|
+
var errorList = results.filter(function(result) {
|
|
18810
|
+
return result && result.errors.length;
|
|
18784
18811
|
});
|
|
18785
18812
|
return Promise.reject({
|
|
18786
18813
|
values: _this.getFieldsValue(namePathList),
|
|
@@ -18846,6 +18873,9 @@ var FormProvider = function FormProvider2(_ref) {
|
|
|
18846
18873
|
return /* @__PURE__ */ React$4.createElement(FormContext$1.Provider, {
|
|
18847
18874
|
value: _objectSpread2(_objectSpread2({}, formContext), {}, {
|
|
18848
18875
|
validateMessages: _objectSpread2(_objectSpread2({}, formContext.validateMessages), validateMessages),
|
|
18876
|
+
// =========================================================
|
|
18877
|
+
// = Global Form Control =
|
|
18878
|
+
// =========================================================
|
|
18849
18879
|
triggerFormChange: function triggerFormChange2(name, changedFields) {
|
|
18850
18880
|
if (onFormChange) {
|
|
18851
18881
|
onFormChange(name, {
|
|
@@ -18924,6 +18954,7 @@ var Form$1 = function Form(_ref, ref) {
|
|
|
18924
18954
|
function() {
|
|
18925
18955
|
return destroyForm;
|
|
18926
18956
|
},
|
|
18957
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
18927
18958
|
[]
|
|
18928
18959
|
);
|
|
18929
18960
|
var childrenNode;
|
|
@@ -19019,6 +19050,8 @@ function useWatch() {
|
|
|
19019
19050
|
setValue2(initialValue);
|
|
19020
19051
|
return cancelRegister;
|
|
19021
19052
|
},
|
|
19053
|
+
// We do not need re-register since namePath content is the same
|
|
19054
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
19022
19055
|
[isValidForm]
|
|
19023
19056
|
);
|
|
19024
19057
|
return value;
|
|
@@ -19064,6 +19097,7 @@ var createBaseFor = _createBaseFor;
|
|
|
19064
19097
|
var baseFor$1 = createBaseFor();
|
|
19065
19098
|
var _baseFor = baseFor$1;
|
|
19066
19099
|
var _cloneBuffer = { exports: {} };
|
|
19100
|
+
_cloneBuffer.exports;
|
|
19067
19101
|
(function(module, exports) {
|
|
19068
19102
|
var root2 = _root;
|
|
19069
19103
|
var freeExports = exports && !exports.nodeType && exports;
|
|
@@ -19074,17 +19108,18 @@ var _cloneBuffer = { exports: {} };
|
|
|
19074
19108
|
if (isDeep) {
|
|
19075
19109
|
return buffer.slice();
|
|
19076
19110
|
}
|
|
19077
|
-
var length = buffer.length,
|
|
19078
|
-
buffer.copy(
|
|
19079
|
-
return
|
|
19111
|
+
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
19112
|
+
buffer.copy(result);
|
|
19113
|
+
return result;
|
|
19080
19114
|
}
|
|
19081
19115
|
module.exports = cloneBuffer2;
|
|
19082
19116
|
})(_cloneBuffer, _cloneBuffer.exports);
|
|
19117
|
+
var _cloneBufferExports = _cloneBuffer.exports;
|
|
19083
19118
|
var Uint8Array = _Uint8Array;
|
|
19084
19119
|
function cloneArrayBuffer$1(arrayBuffer) {
|
|
19085
|
-
var
|
|
19086
|
-
new Uint8Array(
|
|
19087
|
-
return
|
|
19120
|
+
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
19121
|
+
new Uint8Array(result).set(new Uint8Array(arrayBuffer));
|
|
19122
|
+
return result;
|
|
19088
19123
|
}
|
|
19089
19124
|
var _cloneArrayBuffer = cloneArrayBuffer$1;
|
|
19090
19125
|
var cloneArrayBuffer = _cloneArrayBuffer;
|
|
@@ -19104,7 +19139,7 @@ function copyArray$1(source, array4) {
|
|
|
19104
19139
|
var _copyArray = copyArray$1;
|
|
19105
19140
|
var isObject$3 = isObject_1;
|
|
19106
19141
|
var objectCreate = Object.create;
|
|
19107
|
-
var baseCreate$1 = function() {
|
|
19142
|
+
var baseCreate$1 = /* @__PURE__ */ function() {
|
|
19108
19143
|
function object4() {
|
|
19109
19144
|
}
|
|
19110
19145
|
return function(proto) {
|
|
@@ -19115,9 +19150,9 @@ var baseCreate$1 = function() {
|
|
|
19115
19150
|
return objectCreate(proto);
|
|
19116
19151
|
}
|
|
19117
19152
|
object4.prototype = proto;
|
|
19118
|
-
var
|
|
19153
|
+
var result = new object4();
|
|
19119
19154
|
object4.prototype = void 0;
|
|
19120
|
-
return
|
|
19155
|
+
return result;
|
|
19121
19156
|
};
|
|
19122
19157
|
}();
|
|
19123
19158
|
var _baseCreate = baseCreate$1;
|
|
@@ -19142,13 +19177,13 @@ function safeGet$2(object4, key) {
|
|
|
19142
19177
|
}
|
|
19143
19178
|
var _safeGet = safeGet$2;
|
|
19144
19179
|
function nativeKeysIn$1(object4) {
|
|
19145
|
-
var
|
|
19180
|
+
var result = [];
|
|
19146
19181
|
if (object4 != null) {
|
|
19147
19182
|
for (var key in Object(object4)) {
|
|
19148
|
-
|
|
19183
|
+
result.push(key);
|
|
19149
19184
|
}
|
|
19150
19185
|
}
|
|
19151
|
-
return
|
|
19186
|
+
return result;
|
|
19152
19187
|
}
|
|
19153
19188
|
var _nativeKeysIn = nativeKeysIn$1;
|
|
19154
19189
|
var isObject$2 = isObject_1, isPrototype = _isPrototype, nativeKeysIn = _nativeKeysIn;
|
|
@@ -19158,13 +19193,13 @@ function baseKeysIn$1(object4) {
|
|
|
19158
19193
|
if (!isObject$2(object4)) {
|
|
19159
19194
|
return nativeKeysIn(object4);
|
|
19160
19195
|
}
|
|
19161
|
-
var isProto = isPrototype(object4),
|
|
19196
|
+
var isProto = isPrototype(object4), result = [];
|
|
19162
19197
|
for (var key in object4) {
|
|
19163
19198
|
if (!(key == "constructor" && (isProto || !hasOwnProperty.call(object4, key)))) {
|
|
19164
|
-
|
|
19199
|
+
result.push(key);
|
|
19165
19200
|
}
|
|
19166
19201
|
}
|
|
19167
|
-
return
|
|
19202
|
+
return result;
|
|
19168
19203
|
}
|
|
19169
19204
|
var _baseKeysIn = baseKeysIn$1;
|
|
19170
19205
|
var arrayLikeKeys = _arrayLikeKeys, baseKeysIn = _baseKeysIn, isArrayLike = isArrayLike_1;
|
|
@@ -19177,7 +19212,7 @@ function toPlainObject$1(value) {
|
|
|
19177
19212
|
return copyObject(value, keysIn$1(value));
|
|
19178
19213
|
}
|
|
19179
19214
|
var toPlainObject_1 = toPlainObject$1;
|
|
19180
|
-
var assignMergeValue$1 = _assignMergeValue, cloneBuffer =
|
|
19215
|
+
var assignMergeValue$1 = _assignMergeValue, cloneBuffer = _cloneBufferExports, cloneTypedArray = _cloneTypedArray, copyArray = _copyArray, initCloneObject = _initCloneObject, isArguments = isArguments_1, isArray = isArray_1, isArrayLikeObject = isArrayLikeObject_1, isBuffer = isBufferExports, isFunction = isFunction_1, isObject$1 = isObject_1, isPlainObject = isPlainObject_1, isTypedArray = isTypedArray_1, safeGet$1 = _safeGet, toPlainObject = toPlainObject_1;
|
|
19181
19216
|
function baseMergeDeep$1(object4, source, key, srcIndex, mergeFunc, customizer, stack) {
|
|
19182
19217
|
var objValue = safeGet$1(object4, key), srcValue = safeGet$1(source, key), stacked = stack.get(srcValue);
|
|
19183
19218
|
if (stacked) {
|
|
@@ -19246,6 +19281,7 @@ var merge = createAssigner(function(object4, source, srcIndex) {
|
|
|
19246
19281
|
baseMerge(object4, source, srcIndex);
|
|
19247
19282
|
});
|
|
19248
19283
|
var merge_1 = merge;
|
|
19284
|
+
const merge$1 = /* @__PURE__ */ getDefaultExportFromCjs(merge_1);
|
|
19249
19285
|
const FormArray = (props) => {
|
|
19250
19286
|
return React__default.createElement(List, {
|
|
19251
19287
|
name: props.name,
|
|
@@ -19288,7 +19324,7 @@ const Form2 = forwardRef((p, ref) => {
|
|
|
19288
19324
|
hasFeedback,
|
|
19289
19325
|
children,
|
|
19290
19326
|
layout,
|
|
19291
|
-
footer
|
|
19327
|
+
footer,
|
|
19292
19328
|
mode,
|
|
19293
19329
|
disabled,
|
|
19294
19330
|
requiredMarkStyle
|
|
@@ -19296,7 +19332,7 @@ const Form2 = forwardRef((p, ref) => {
|
|
|
19296
19332
|
const {
|
|
19297
19333
|
locale
|
|
19298
19334
|
} = useConfig();
|
|
19299
|
-
const validateMessages = useMemo(() =>
|
|
19335
|
+
const validateMessages = useMemo(() => merge$1({}, locale.Form.defaultValidateMessages, formProps.validateMessages), [locale.Form.defaultValidateMessages, formProps.validateMessages]);
|
|
19300
19336
|
const lists = [];
|
|
19301
19337
|
let currentHeader = null;
|
|
19302
19338
|
let items = [];
|
|
@@ -19342,9 +19378,9 @@ const Form2 = forwardRef((p, ref) => {
|
|
|
19342
19378
|
requiredMarkStyle,
|
|
19343
19379
|
disabled
|
|
19344
19380
|
}
|
|
19345
|
-
}, lists),
|
|
19381
|
+
}, lists), footer && React__default.createElement("div", {
|
|
19346
19382
|
className: `${classPrefix$O}-footer`
|
|
19347
|
-
},
|
|
19383
|
+
}, footer));
|
|
19348
19384
|
});
|
|
19349
19385
|
var FieldContext = {};
|
|
19350
19386
|
var interopRequireWildcard = { exports: {} };
|
|
@@ -19360,8 +19396,9 @@ var _typeof = { exports: {} };
|
|
|
19360
19396
|
}
|
|
19361
19397
|
module.exports = _typeof2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
19362
19398
|
})(_typeof);
|
|
19399
|
+
var _typeofExports = _typeof.exports;
|
|
19363
19400
|
(function(module) {
|
|
19364
|
-
var
|
|
19401
|
+
var _typeof2 = _typeofExports["default"];
|
|
19365
19402
|
function _getRequireWildcardCache(nodeInterop) {
|
|
19366
19403
|
if (typeof WeakMap !== "function")
|
|
19367
19404
|
return null;
|
|
@@ -19375,7 +19412,7 @@ var _typeof = { exports: {} };
|
|
|
19375
19412
|
if (!nodeInterop && obj && obj.__esModule) {
|
|
19376
19413
|
return obj;
|
|
19377
19414
|
}
|
|
19378
|
-
if (obj === null ||
|
|
19415
|
+
if (obj === null || _typeof2(obj) !== "object" && typeof obj !== "function") {
|
|
19379
19416
|
return {
|
|
19380
19417
|
"default": obj
|
|
19381
19418
|
};
|
|
@@ -19404,6 +19441,7 @@ var _typeof = { exports: {} };
|
|
|
19404
19441
|
}
|
|
19405
19442
|
module.exports = _interopRequireWildcard2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
19406
19443
|
})(interopRequireWildcard);
|
|
19444
|
+
var interopRequireWildcardExports = interopRequireWildcard.exports;
|
|
19407
19445
|
var interopRequireDefault = { exports: {} };
|
|
19408
19446
|
(function(module) {
|
|
19409
19447
|
function _interopRequireDefault2(obj) {
|
|
@@ -19413,6 +19451,7 @@ var interopRequireDefault = { exports: {} };
|
|
|
19413
19451
|
}
|
|
19414
19452
|
module.exports = _interopRequireDefault2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
19415
19453
|
})(interopRequireDefault);
|
|
19454
|
+
var interopRequireDefaultExports = interopRequireDefault.exports;
|
|
19416
19455
|
var warning$1 = {};
|
|
19417
19456
|
Object.defineProperty(warning$1, "__esModule", {
|
|
19418
19457
|
value: true
|
|
@@ -19423,15 +19462,15 @@ warning$1.note = note;
|
|
|
19423
19462
|
warning$1.noteOnce = noteOnce;
|
|
19424
19463
|
warning$1.preMessage = void 0;
|
|
19425
19464
|
warning$1.resetWarned = resetWarned;
|
|
19426
|
-
warning$1.warning =
|
|
19465
|
+
warning$1.warning = warning;
|
|
19427
19466
|
warning$1.warningOnce = warningOnce;
|
|
19428
19467
|
var warned = {};
|
|
19429
19468
|
var preWarningFns = [];
|
|
19430
|
-
var
|
|
19469
|
+
var preMessage = function preMessage22(fn) {
|
|
19431
19470
|
preWarningFns.push(fn);
|
|
19432
19471
|
};
|
|
19433
|
-
warning$1.preMessage =
|
|
19434
|
-
function
|
|
19472
|
+
warning$1.preMessage = preMessage;
|
|
19473
|
+
function warning(valid, message) {
|
|
19435
19474
|
if (!valid && console !== void 0) {
|
|
19436
19475
|
var finalMessage = preWarningFns.reduce(function(msg, preMessageFn) {
|
|
19437
19476
|
return preMessageFn(msg !== null && msg !== void 0 ? msg : "", "warning");
|
|
@@ -19461,18 +19500,18 @@ function call(method4, valid, message) {
|
|
|
19461
19500
|
}
|
|
19462
19501
|
}
|
|
19463
19502
|
function warningOnce(valid, message) {
|
|
19464
|
-
call(
|
|
19503
|
+
call(warning, valid, message);
|
|
19465
19504
|
}
|
|
19466
19505
|
function noteOnce(valid, message) {
|
|
19467
19506
|
call(note, valid, message);
|
|
19468
19507
|
}
|
|
19469
|
-
warningOnce.preMessage =
|
|
19508
|
+
warningOnce.preMessage = preMessage;
|
|
19470
19509
|
warningOnce.resetWarned = resetWarned;
|
|
19471
19510
|
warningOnce.noteOnce = noteOnce;
|
|
19472
19511
|
var _default$3 = warningOnce;
|
|
19473
19512
|
warning$1.default = _default$3;
|
|
19474
|
-
var _interopRequireWildcard$3 =
|
|
19475
|
-
var _interopRequireDefault$3 =
|
|
19513
|
+
var _interopRequireWildcard$3 = interopRequireWildcardExports.default;
|
|
19514
|
+
var _interopRequireDefault$3 = interopRequireDefaultExports.default;
|
|
19476
19515
|
Object.defineProperty(FieldContext, "__esModule", {
|
|
19477
19516
|
value: true
|
|
19478
19517
|
});
|
|
@@ -19533,14 +19572,12 @@ function isSimpleFunctionComponent(type4) {
|
|
|
19533
19572
|
return typeof type4 === "function" && !shouldConstruct(type4) && type4.defaultProps === void 0;
|
|
19534
19573
|
}
|
|
19535
19574
|
function isSafeSetRefComponent(component) {
|
|
19536
|
-
if (
|
|
19575
|
+
if (reactIsExports$1.isFragment(component))
|
|
19537
19576
|
return false;
|
|
19538
|
-
if (
|
|
19577
|
+
if (reactIsExports$1.isMemo(component))
|
|
19539
19578
|
return isSafeSetRefComponent(component.type);
|
|
19540
19579
|
return !isSimpleFunctionComponent(component.type);
|
|
19541
19580
|
}
|
|
19542
|
-
const popover = "";
|
|
19543
|
-
const popoverMenu = "";
|
|
19544
19581
|
const Arrow = memo((props) => {
|
|
19545
19582
|
return withNativeProps(props, React__default.createElement("svg", {
|
|
19546
19583
|
viewBox: "0 0 30 16"
|
|
@@ -19633,14 +19670,14 @@ function getSideList(side, isStart, rtl) {
|
|
|
19633
19670
|
}
|
|
19634
19671
|
function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
|
19635
19672
|
const alignment = getAlignment(placement);
|
|
19636
|
-
let
|
|
19673
|
+
let list = getSideList(getSide(placement), direction === "start", rtl);
|
|
19637
19674
|
if (alignment) {
|
|
19638
|
-
|
|
19675
|
+
list = list.map((side) => side + "-" + alignment);
|
|
19639
19676
|
if (flipAlignment) {
|
|
19640
|
-
|
|
19677
|
+
list = list.concat(list.map(getOppositeAlignmentPlacement));
|
|
19641
19678
|
}
|
|
19642
19679
|
}
|
|
19643
|
-
return
|
|
19680
|
+
return list;
|
|
19644
19681
|
}
|
|
19645
19682
|
function getOppositePlacement(placement) {
|
|
19646
19683
|
return placement.replace(/left|right|bottom|top/g, (side) => oppositeSideMap[side]);
|
|
@@ -20356,8 +20393,14 @@ function getParentNode(node) {
|
|
|
20356
20393
|
if (getNodeName(node) === "html") {
|
|
20357
20394
|
return node;
|
|
20358
20395
|
}
|
|
20359
|
-
const
|
|
20360
|
-
|
|
20396
|
+
const result = (
|
|
20397
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
20398
|
+
node.assignedSlot || // DOM Element detected.
|
|
20399
|
+
node.parentNode || // ShadowRoot detected.
|
|
20400
|
+
isShadowRoot(node) && node.host || // Fallback.
|
|
20401
|
+
getDocumentElement(node)
|
|
20402
|
+
);
|
|
20403
|
+
return isShadowRoot(result) ? result.host : result;
|
|
20361
20404
|
}
|
|
20362
20405
|
function getNearestOverflowAncestor(node) {
|
|
20363
20406
|
const parentNode = getParentNode(node);
|
|
@@ -20369,10 +20412,10 @@ function getNearestOverflowAncestor(node) {
|
|
|
20369
20412
|
}
|
|
20370
20413
|
return getNearestOverflowAncestor(parentNode);
|
|
20371
20414
|
}
|
|
20372
|
-
function getOverflowAncestors(node,
|
|
20415
|
+
function getOverflowAncestors(node, list, traverseIframes) {
|
|
20373
20416
|
var _node$ownerDocument2;
|
|
20374
|
-
if (
|
|
20375
|
-
|
|
20417
|
+
if (list === void 0) {
|
|
20418
|
+
list = [];
|
|
20376
20419
|
}
|
|
20377
20420
|
if (traverseIframes === void 0) {
|
|
20378
20421
|
traverseIframes = true;
|
|
@@ -20381,9 +20424,9 @@ function getOverflowAncestors(node, list2, traverseIframes) {
|
|
|
20381
20424
|
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
20382
20425
|
const win = getWindow(scrollableAncestor);
|
|
20383
20426
|
if (isBody) {
|
|
20384
|
-
return
|
|
20427
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
|
|
20385
20428
|
}
|
|
20386
|
-
return
|
|
20429
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
20387
20430
|
}
|
|
20388
20431
|
function getCssDimensions(element) {
|
|
20389
20432
|
const css = getComputedStyle(element);
|
|
@@ -20629,7 +20672,7 @@ function getClippingElementAncestors(element, cache) {
|
|
|
20629
20672
|
if (cachedResult) {
|
|
20630
20673
|
return cachedResult;
|
|
20631
20674
|
}
|
|
20632
|
-
let
|
|
20675
|
+
let result = getOverflowAncestors(element, [], false).filter((el) => isElement(el) && getNodeName(el) !== "body");
|
|
20633
20676
|
let currentContainingBlockComputedStyle = null;
|
|
20634
20677
|
const elementIsFixed = getComputedStyle(element).position === "fixed";
|
|
20635
20678
|
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
|
@@ -20641,14 +20684,14 @@ function getClippingElementAncestors(element, cache) {
|
|
|
20641
20684
|
}
|
|
20642
20685
|
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && ["absolute", "fixed"].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
20643
20686
|
if (shouldDropCurrentNode) {
|
|
20644
|
-
|
|
20687
|
+
result = result.filter((ancestor) => ancestor !== currentNode);
|
|
20645
20688
|
} else {
|
|
20646
20689
|
currentContainingBlockComputedStyle = computedStyle;
|
|
20647
20690
|
}
|
|
20648
20691
|
currentNode = getParentNode(currentNode);
|
|
20649
20692
|
}
|
|
20650
|
-
cache.set(element,
|
|
20651
|
-
return
|
|
20693
|
+
cache.set(element, result);
|
|
20694
|
+
return result;
|
|
20652
20695
|
}
|
|
20653
20696
|
function getClippingRect(_ref) {
|
|
20654
20697
|
let {
|
|
@@ -20820,6 +20863,7 @@ function observeMove(element, onMove) {
|
|
|
20820
20863
|
try {
|
|
20821
20864
|
io = new IntersectionObserver(handleObserve, {
|
|
20822
20865
|
...options,
|
|
20866
|
+
// Handle <iframe>s
|
|
20823
20867
|
root: root2.ownerDocument
|
|
20824
20868
|
});
|
|
20825
20869
|
} catch (e2) {
|
|
@@ -20975,13 +21019,11 @@ const defaultProps$B = {
|
|
|
20975
21019
|
placement: "top",
|
|
20976
21020
|
defaultVisible: false,
|
|
20977
21021
|
stopPropagation: ["click"],
|
|
20978
|
-
getContainer: () => document.body
|
|
21022
|
+
getContainer: () => document.body,
|
|
21023
|
+
mode: "light"
|
|
20979
21024
|
};
|
|
20980
21025
|
const Popover$1 = forwardRef((p, ref) => {
|
|
20981
21026
|
const props = mergeProps(defaultProps$B, p);
|
|
20982
|
-
const {
|
|
20983
|
-
mode = "light"
|
|
20984
|
-
} = props;
|
|
20985
21027
|
const placement = normalizePlacement(props.placement);
|
|
20986
21028
|
const [visible, setVisible] = usePropsValue({
|
|
20987
21029
|
value: props.visible,
|
|
@@ -20997,7 +21039,9 @@ const Popover$1 = forwardRef((p, ref) => {
|
|
|
20997
21039
|
const floatingRef = useRef(null);
|
|
20998
21040
|
const arrowRef = useRef(null);
|
|
20999
21041
|
const floating = withStopPropagation(props.stopPropagation, withNativeProps(props, React__default.createElement("div", {
|
|
21000
|
-
className: classNames(classPrefix$N, `${classPrefix$N}-${mode}`,
|
|
21042
|
+
className: classNames(classPrefix$N, `${classPrefix$N}-${props.mode}`, {
|
|
21043
|
+
[`${classPrefix$N}-hidden`]: !visible
|
|
21044
|
+
}),
|
|
21001
21045
|
ref: floatingRef
|
|
21002
21046
|
}, React__default.createElement("div", {
|
|
21003
21047
|
className: `${classPrefix$N}-arrow`,
|
|
@@ -21133,7 +21177,9 @@ const PopoverMenu = forwardRef((props, ref) => {
|
|
|
21133
21177
|
var _a;
|
|
21134
21178
|
return React__default.createElement("a", {
|
|
21135
21179
|
key: (_a = action.key) !== null && _a !== void 0 ? _a : index2,
|
|
21136
|
-
className: classNames(`${classPrefix$M}-item`, "adm-plain-anchor",
|
|
21180
|
+
className: classNames(`${classPrefix$M}-item`, "adm-plain-anchor", {
|
|
21181
|
+
[`${classPrefix$M}-item-disabled`]: action.disabled
|
|
21182
|
+
}),
|
|
21137
21183
|
onClick: () => {
|
|
21138
21184
|
var _a2;
|
|
21139
21185
|
if (action.disabled)
|
|
@@ -21257,7 +21303,9 @@ const FormItemLayout = (props) => {
|
|
|
21257
21303
|
};
|
|
21258
21304
|
const FormItem = (props) => {
|
|
21259
21305
|
const {
|
|
21306
|
+
// 样式相关
|
|
21260
21307
|
style,
|
|
21308
|
+
// FormItem 相关
|
|
21261
21309
|
label,
|
|
21262
21310
|
help,
|
|
21263
21311
|
extra,
|
|
@@ -21269,6 +21317,7 @@ const FormItem = (props) => {
|
|
|
21269
21317
|
layout,
|
|
21270
21318
|
childElementPosition,
|
|
21271
21319
|
description,
|
|
21320
|
+
// Field 相关
|
|
21272
21321
|
disabled,
|
|
21273
21322
|
rules: rules2,
|
|
21274
21323
|
children,
|
|
@@ -21465,7 +21514,6 @@ const index$a = attachPropertiesToComponent(Form2, {
|
|
|
21465
21514
|
useForm,
|
|
21466
21515
|
useWatch
|
|
21467
21516
|
});
|
|
21468
|
-
const grid = "";
|
|
21469
21517
|
const classPrefix$K = `adm-grid`;
|
|
21470
21518
|
const Grid$1 = (props) => {
|
|
21471
21519
|
const style = {
|
|
@@ -21503,7 +21551,6 @@ const GridItem = (p) => {
|
|
|
21503
21551
|
const Grid = attachPropertiesToComponent(Grid$1, {
|
|
21504
21552
|
Item: GridItem
|
|
21505
21553
|
});
|
|
21506
|
-
const imageViewer = "";
|
|
21507
21554
|
const useDragAndPinch = createUseGesture([dragAction, pinchAction]);
|
|
21508
21555
|
const create = () => {
|
|
21509
21556
|
return [1, 0, 0, 1, 0, 0];
|
|
@@ -21821,9 +21868,9 @@ const Slides = forwardRef((props, ref) => {
|
|
|
21821
21868
|
style: {
|
|
21822
21869
|
x: x.to((x2) => -x2)
|
|
21823
21870
|
}
|
|
21824
|
-
}, props.images.map((
|
|
21871
|
+
}, props.images.map((image, index2) => React__default.createElement(Slide, {
|
|
21825
21872
|
key: index2,
|
|
21826
|
-
image
|
|
21873
|
+
image,
|
|
21827
21874
|
onTap: props.onTap,
|
|
21828
21875
|
maxZoom: props.maxZoom,
|
|
21829
21876
|
onZoomChange: (zoom) => {
|
|
@@ -21844,23 +21891,24 @@ const defaultProps$A = {
|
|
|
21844
21891
|
visible: false
|
|
21845
21892
|
};
|
|
21846
21893
|
const ImageViewer$1 = (p) => {
|
|
21847
|
-
var _a;
|
|
21894
|
+
var _a, _b, _c;
|
|
21848
21895
|
const props = mergeProps(defaultProps$A, p);
|
|
21849
21896
|
const node = React__default.createElement(Mask, {
|
|
21850
21897
|
visible: props.visible,
|
|
21851
21898
|
disableBodyScroll: false,
|
|
21852
21899
|
opacity: "thick",
|
|
21853
21900
|
afterClose: props.afterClose,
|
|
21854
|
-
destroyOnClose: true
|
|
21901
|
+
destroyOnClose: true,
|
|
21902
|
+
className: (_a = props === null || props === void 0 ? void 0 : props.classNames) === null || _a === void 0 ? void 0 : _a.mask
|
|
21855
21903
|
}, React__default.createElement("div", {
|
|
21856
|
-
className: `${classPrefix$H}-content
|
|
21904
|
+
className: classNames(`${classPrefix$H}-content`, (_b = props === null || props === void 0 ? void 0 : props.classNames) === null || _b === void 0 ? void 0 : _b.body)
|
|
21857
21905
|
}, props.image && React__default.createElement(Slide, {
|
|
21858
21906
|
image: props.image,
|
|
21859
21907
|
onTap: props.onClose,
|
|
21860
21908
|
maxZoom: props.maxZoom
|
|
21861
21909
|
})), props.image && React__default.createElement("div", {
|
|
21862
21910
|
className: `${classPrefix$H}-footer`
|
|
21863
|
-
}, (
|
|
21911
|
+
}, (_c = props.renderFooter) === null || _c === void 0 ? void 0 : _c.call(props, props.image), React__default.createElement(SafeArea, {
|
|
21864
21912
|
position: "bottom"
|
|
21865
21913
|
})));
|
|
21866
21914
|
return renderToContainer(props.getContainer, node);
|
|
@@ -21869,7 +21917,7 @@ const multiDefaultProps = Object.assign(Object.assign({}, defaultProps$A), {
|
|
|
21869
21917
|
defaultIndex: 0
|
|
21870
21918
|
});
|
|
21871
21919
|
const MultiImageViewer = forwardRef((p, ref) => {
|
|
21872
|
-
var _a;
|
|
21920
|
+
var _a, _b, _c;
|
|
21873
21921
|
const props = mergeProps(multiDefaultProps, p);
|
|
21874
21922
|
const [index2, setIndex] = useState$1(props.defaultIndex);
|
|
21875
21923
|
const slidesRef = useRef(null);
|
|
@@ -21892,9 +21940,10 @@ const MultiImageViewer = forwardRef((p, ref) => {
|
|
|
21892
21940
|
disableBodyScroll: false,
|
|
21893
21941
|
opacity: "thick",
|
|
21894
21942
|
afterClose: props.afterClose,
|
|
21895
|
-
destroyOnClose: true
|
|
21943
|
+
destroyOnClose: true,
|
|
21944
|
+
className: (_a = props === null || props === void 0 ? void 0 : props.classNames) === null || _a === void 0 ? void 0 : _a.mask
|
|
21896
21945
|
}, React__default.createElement("div", {
|
|
21897
|
-
className: `${classPrefix$H}-content
|
|
21946
|
+
className: classNames(`${classPrefix$H}-content`, (_b = props === null || props === void 0 ? void 0 : props.classNames) === null || _b === void 0 ? void 0 : _b.body)
|
|
21898
21947
|
}, props.images && React__default.createElement(Slides, {
|
|
21899
21948
|
ref: slidesRef,
|
|
21900
21949
|
defaultIndex: index2,
|
|
@@ -21904,7 +21953,7 @@ const MultiImageViewer = forwardRef((p, ref) => {
|
|
|
21904
21953
|
maxZoom: props.maxZoom
|
|
21905
21954
|
})), props.images && React__default.createElement("div", {
|
|
21906
21955
|
className: `${classPrefix$H}-footer`
|
|
21907
|
-
}, (
|
|
21956
|
+
}, (_c = props.renderFooter) === null || _c === void 0 ? void 0 : _c.call(props, props.images[index2], index2), React__default.createElement(SafeArea, {
|
|
21908
21957
|
position: "bottom"
|
|
21909
21958
|
})));
|
|
21910
21959
|
return renderToContainer(props.getContainer, node);
|
|
@@ -22003,12 +22052,11 @@ const PreviewItem = (props) => {
|
|
|
22003
22052
|
}), renderLoading(), renderDelete());
|
|
22004
22053
|
};
|
|
22005
22054
|
const PreviewItem$1 = PreviewItem;
|
|
22006
|
-
const space = "";
|
|
22007
22055
|
const classPrefix$F = `adm-space`;
|
|
22008
22056
|
const defaultProps$z = {
|
|
22009
22057
|
direction: "horizontal"
|
|
22010
22058
|
};
|
|
22011
|
-
const Space
|
|
22059
|
+
const Space = (p) => {
|
|
22012
22060
|
const props = mergeProps(defaultProps$z, p);
|
|
22013
22061
|
const {
|
|
22014
22062
|
direction,
|
|
@@ -22029,7 +22077,6 @@ const Space$1 = (p) => {
|
|
|
22029
22077
|
}, child);
|
|
22030
22078
|
})));
|
|
22031
22079
|
};
|
|
22032
|
-
const Space = Space$1;
|
|
22033
22080
|
const classPrefix$E = `adm-image-uploader`;
|
|
22034
22081
|
const defaultProps$y = {
|
|
22035
22082
|
disableUpload: false,
|
|
@@ -22046,7 +22093,7 @@ const defaultProps$y = {
|
|
|
22046
22093
|
showFailed: true,
|
|
22047
22094
|
imageFit: "cover"
|
|
22048
22095
|
};
|
|
22049
|
-
const ImageUploader
|
|
22096
|
+
const ImageUploader = forwardRef((p, ref) => {
|
|
22050
22097
|
const {
|
|
22051
22098
|
locale
|
|
22052
22099
|
} = useConfig();
|
|
@@ -22141,14 +22188,14 @@ const ImageUploader$1 = forwardRef((p, ref) => {
|
|
|
22141
22188
|
const newVal = [];
|
|
22142
22189
|
yield Promise.all(newTasks.map((currentTask, index2) => __awaiter(this, void 0, void 0, function* () {
|
|
22143
22190
|
try {
|
|
22144
|
-
const
|
|
22145
|
-
newVal[index2] =
|
|
22191
|
+
const result = yield props.upload(currentTask.file);
|
|
22192
|
+
newVal[index2] = result;
|
|
22146
22193
|
setTasks((prev) => {
|
|
22147
22194
|
return prev.map((task) => {
|
|
22148
22195
|
if (task.id === currentTask.id) {
|
|
22149
22196
|
return Object.assign(Object.assign({}, task), {
|
|
22150
22197
|
status: "success",
|
|
22151
|
-
url:
|
|
22198
|
+
url: result.url
|
|
22152
22199
|
});
|
|
22153
22200
|
}
|
|
22154
22201
|
return task;
|
|
@@ -22270,9 +22317,6 @@ const ImageUploader$1 = forwardRef((p, ref) => {
|
|
|
22270
22317
|
block: true
|
|
22271
22318
|
}, contentNode.props.children)));
|
|
22272
22319
|
});
|
|
22273
|
-
const imageUploader = "";
|
|
22274
|
-
const ImageUploader = ImageUploader$1;
|
|
22275
|
-
const indexBar = "";
|
|
22276
22320
|
const Panel = () => null;
|
|
22277
22321
|
const classPrefix$D = `adm-index-bar`;
|
|
22278
22322
|
const Sidebar = (props) => {
|
|
@@ -22440,7 +22484,6 @@ const IndexBar = forwardRef((p, ref) => {
|
|
|
22440
22484
|
const index$9 = attachPropertiesToComponent(IndexBar, {
|
|
22441
22485
|
Panel
|
|
22442
22486
|
});
|
|
22443
|
-
const infiniteScroll = "";
|
|
22444
22487
|
function isWindow(element) {
|
|
22445
22488
|
return element === window;
|
|
22446
22489
|
}
|
|
@@ -22453,7 +22496,7 @@ const defaultProps$w = {
|
|
|
22453
22496
|
retry
|
|
22454
22497
|
})
|
|
22455
22498
|
};
|
|
22456
|
-
const InfiniteScroll
|
|
22499
|
+
const InfiniteScroll = (p) => {
|
|
22457
22500
|
const props = mergeProps(defaultProps$w, p);
|
|
22458
22501
|
const [failed, setFailed] = useState$1(false);
|
|
22459
22502
|
const doLoadMore = useLockFn((isRetry) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -22543,16 +22586,14 @@ const InfiniteScrollContent = (props) => {
|
|
|
22543
22586
|
}
|
|
22544
22587
|
}, locale.InfiniteScroll.retry));
|
|
22545
22588
|
}
|
|
22546
|
-
return React__default.createElement(React__default.Fragment, null, React__default.createElement("span", null, locale.common.loading), React__default.createElement(DotLoading
|
|
22589
|
+
return React__default.createElement(React__default.Fragment, null, React__default.createElement("span", null, locale.common.loading), React__default.createElement(DotLoading, null));
|
|
22547
22590
|
};
|
|
22548
|
-
const InfiniteScroll = InfiniteScroll$1;
|
|
22549
|
-
const input = "";
|
|
22550
22591
|
const classPrefix$A = `adm-input`;
|
|
22551
22592
|
const defaultProps$v = {
|
|
22552
22593
|
defaultValue: "",
|
|
22553
22594
|
onlyShowClearWhenFocus: true
|
|
22554
22595
|
};
|
|
22555
|
-
const Input
|
|
22596
|
+
const Input = forwardRef((p, ref) => {
|
|
22556
22597
|
const props = mergeProps(defaultProps$v, p);
|
|
22557
22598
|
const [value, setValue2] = usePropsValue(props);
|
|
22558
22599
|
const [hasFocus, setHasFocus] = useState$1(false);
|
|
@@ -22687,8 +22728,6 @@ const Input$1 = forwardRef((p, ref) => {
|
|
|
22687
22728
|
"aria-label": locale.Input.clear
|
|
22688
22729
|
}, React__default.createElement(CloseCircleFill, null))));
|
|
22689
22730
|
});
|
|
22690
|
-
const Input = Input$1;
|
|
22691
|
-
const jumboTabs = "";
|
|
22692
22731
|
const classPrefix$z = `adm-jumbo-tabs`;
|
|
22693
22732
|
const JumboTab = () => {
|
|
22694
22733
|
return null;
|
|
@@ -22784,8 +22823,6 @@ const JumboTabs = (props) => {
|
|
|
22784
22823
|
const index$8 = attachPropertiesToComponent(JumboTabs, {
|
|
22785
22824
|
Tab: JumboTab
|
|
22786
22825
|
});
|
|
22787
|
-
const DotLoading = DotLoading$2;
|
|
22788
|
-
const modal = "";
|
|
22789
22826
|
const ModalActionButton = (props) => {
|
|
22790
22827
|
const {
|
|
22791
22828
|
action
|
|
@@ -22897,8 +22934,8 @@ function alert(p) {
|
|
|
22897
22934
|
});
|
|
22898
22935
|
}
|
|
22899
22936
|
const defaultProps$t = {
|
|
22900
|
-
confirmText: "
|
|
22901
|
-
cancelText: "
|
|
22937
|
+
confirmText: "确认",
|
|
22938
|
+
cancelText: "取消"
|
|
22902
22939
|
};
|
|
22903
22940
|
function confirm(p) {
|
|
22904
22941
|
const {
|
|
@@ -22948,12 +22985,11 @@ const index$7 = attachPropertiesToComponent(Modal, {
|
|
|
22948
22985
|
confirm,
|
|
22949
22986
|
clear: clear$1
|
|
22950
22987
|
});
|
|
22951
|
-
const navBar = "";
|
|
22952
22988
|
const classPrefix$y = `adm-nav-bar`;
|
|
22953
22989
|
const defaultProps$s = {
|
|
22954
22990
|
backArrow: true
|
|
22955
22991
|
};
|
|
22956
|
-
const NavBar
|
|
22992
|
+
const NavBar = (p) => {
|
|
22957
22993
|
const props = mergeProps(defaultProps$s, p);
|
|
22958
22994
|
const {
|
|
22959
22995
|
back,
|
|
@@ -22977,8 +23013,6 @@ const NavBar$1 = (p) => {
|
|
|
22977
23013
|
className: `${classPrefix$y}-right`
|
|
22978
23014
|
}, props.right)));
|
|
22979
23015
|
};
|
|
22980
|
-
const NavBar = NavBar$1;
|
|
22981
|
-
const noticeBar = "";
|
|
22982
23016
|
const classPrefix$x = `adm-notice-bar`;
|
|
22983
23017
|
const defaultProps$r = {
|
|
22984
23018
|
color: "default",
|
|
@@ -22987,7 +23021,7 @@ const defaultProps$r = {
|
|
|
22987
23021
|
wrap: false,
|
|
22988
23022
|
icon: React__default.createElement(SoundOutline, null)
|
|
22989
23023
|
};
|
|
22990
|
-
const NoticeBar
|
|
23024
|
+
const NoticeBar = memo((p) => {
|
|
22991
23025
|
const props = mergeProps(defaultProps$r, p);
|
|
22992
23026
|
const containerRef = useRef(null);
|
|
22993
23027
|
const textRef = useRef(null);
|
|
@@ -23068,15 +23102,13 @@ const NoticeBar$1 = memo((p) => {
|
|
|
23068
23102
|
className: `${classPrefix$x}-close-icon`
|
|
23069
23103
|
})))));
|
|
23070
23104
|
});
|
|
23071
|
-
const NoticeBar = NoticeBar$1;
|
|
23072
|
-
const numberKeyboard = "";
|
|
23073
23105
|
function shuffle(array4) {
|
|
23074
|
-
const
|
|
23075
|
-
for (let i2 =
|
|
23106
|
+
const result = [...array4];
|
|
23107
|
+
for (let i2 = result.length; i2 > 0; i2--) {
|
|
23076
23108
|
const j = Math.floor(Math.random() * i2);
|
|
23077
|
-
[
|
|
23109
|
+
[result[i2 - 1], result[j]] = [result[j], result[i2 - 1]];
|
|
23078
23110
|
}
|
|
23079
|
-
return
|
|
23111
|
+
return result;
|
|
23080
23112
|
}
|
|
23081
23113
|
const classPrefix$w = "adm-number-keyboard";
|
|
23082
23114
|
const defaultProps$q = {
|
|
@@ -23089,7 +23121,7 @@ const defaultProps$q = {
|
|
|
23089
23121
|
destroyOnClose: false,
|
|
23090
23122
|
forceRender: false
|
|
23091
23123
|
};
|
|
23092
|
-
const NumberKeyboard
|
|
23124
|
+
const NumberKeyboard = (p) => {
|
|
23093
23125
|
const props = mergeProps(defaultProps$q, p);
|
|
23094
23126
|
const {
|
|
23095
23127
|
visible,
|
|
@@ -23101,6 +23133,9 @@ const NumberKeyboard$1 = (p) => {
|
|
|
23101
23133
|
showCloseButton,
|
|
23102
23134
|
onInput
|
|
23103
23135
|
} = props;
|
|
23136
|
+
const {
|
|
23137
|
+
locale
|
|
23138
|
+
} = useConfig();
|
|
23104
23139
|
const keyboardRef = useRef(null);
|
|
23105
23140
|
const keys2 = useMemo(() => {
|
|
23106
23141
|
const defaultKeys = ["1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
@@ -23160,7 +23195,7 @@ const NumberKeyboard$1 = (p) => {
|
|
|
23160
23195
|
className: classNames(`${classPrefix$w}-header`, {
|
|
23161
23196
|
[`${classPrefix$w}-header-with-title`]: !!title
|
|
23162
23197
|
})
|
|
23163
|
-
}, React__default.createElement("div", {
|
|
23198
|
+
}, !!title && React__default.createElement("div", {
|
|
23164
23199
|
className: `${classPrefix$w}-title`,
|
|
23165
23200
|
"aria-label": title
|
|
23166
23201
|
}, title), showCloseButton && React__default.createElement("span", {
|
|
@@ -23169,8 +23204,8 @@ const NumberKeyboard$1 = (p) => {
|
|
|
23169
23204
|
var _a;
|
|
23170
23205
|
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
23171
23206
|
},
|
|
23172
|
-
role: "
|
|
23173
|
-
title:
|
|
23207
|
+
role: "button",
|
|
23208
|
+
title: locale.common.close,
|
|
23174
23209
|
tabIndex: -1
|
|
23175
23210
|
}, React__default.createElement(DownOutline, null)));
|
|
23176
23211
|
};
|
|
@@ -23182,7 +23217,7 @@ const NumberKeyboard$1 = (p) => {
|
|
|
23182
23217
|
[`${classPrefix$w}-key-mid`]: index2 === 9 && !!confirmText && keys2.length < 12
|
|
23183
23218
|
});
|
|
23184
23219
|
const ariaProps = key ? {
|
|
23185
|
-
role: "
|
|
23220
|
+
role: "button",
|
|
23186
23221
|
title: key,
|
|
23187
23222
|
tabIndex: -1
|
|
23188
23223
|
} : void 0;
|
|
@@ -23235,13 +23270,16 @@ const NumberKeyboard$1 = (p) => {
|
|
|
23235
23270
|
onKeyPress(e2, "BACKSPACE");
|
|
23236
23271
|
onBackspacePressEnd();
|
|
23237
23272
|
},
|
|
23238
|
-
|
|
23239
|
-
|
|
23273
|
+
onContextMenu: (e2) => {
|
|
23274
|
+
e2.preventDefault();
|
|
23275
|
+
},
|
|
23276
|
+
title: locale.Input.clear,
|
|
23277
|
+
role: "button",
|
|
23240
23278
|
tabIndex: -1
|
|
23241
23279
|
}, React__default.createElement(TextDeletionOutline, null)), React__default.createElement("div", {
|
|
23242
23280
|
className: `${classPrefix$w}-key ${classPrefix$w}-key-extra ${classPrefix$w}-key-ok`,
|
|
23243
23281
|
onTouchEnd: (e2) => onKeyPress(e2, "OK"),
|
|
23244
|
-
role: "
|
|
23282
|
+
role: "button",
|
|
23245
23283
|
tabIndex: -1,
|
|
23246
23284
|
"aria-label": confirmText
|
|
23247
23285
|
}, confirmText))), props.safeArea && React__default.createElement("div", {
|
|
@@ -23250,14 +23288,12 @@ const NumberKeyboard$1 = (p) => {
|
|
|
23250
23288
|
position: "bottom"
|
|
23251
23289
|
})))));
|
|
23252
23290
|
};
|
|
23253
|
-
const NumberKeyboard = NumberKeyboard$1;
|
|
23254
|
-
const pageIndicator = "";
|
|
23255
23291
|
const classPrefix$v = `adm-page-indicator`;
|
|
23256
23292
|
const defaultProps$p = {
|
|
23257
23293
|
color: "primary",
|
|
23258
23294
|
direction: "horizontal"
|
|
23259
23295
|
};
|
|
23260
|
-
const PageIndicator
|
|
23296
|
+
const PageIndicator = memo((p) => {
|
|
23261
23297
|
const props = mergeProps(defaultProps$p, p);
|
|
23262
23298
|
const dots = [];
|
|
23263
23299
|
for (let i2 = 0; i2 < props.total; i2++) {
|
|
@@ -23272,8 +23308,6 @@ const PageIndicator$1 = memo((p) => {
|
|
|
23272
23308
|
className: classNames(classPrefix$v, `${classPrefix$v}-${props.direction}`, `${classPrefix$v}-color-${props.color}`)
|
|
23273
23309
|
}, dots));
|
|
23274
23310
|
});
|
|
23275
|
-
const PageIndicator = PageIndicator$1;
|
|
23276
|
-
const passcodeInput = "";
|
|
23277
23311
|
const classPrefix$u = "adm-passcode-input";
|
|
23278
23312
|
const defaultProps$o = {
|
|
23279
23313
|
defaultValue: "",
|
|
@@ -23283,7 +23317,7 @@ const defaultProps$o = {
|
|
|
23283
23317
|
seperated: false,
|
|
23284
23318
|
caret: true
|
|
23285
23319
|
};
|
|
23286
|
-
const PasscodeInput
|
|
23320
|
+
const PasscodeInput = forwardRef((p, ref) => {
|
|
23287
23321
|
const props = mergeProps(defaultProps$o, p);
|
|
23288
23322
|
const cellLength = props.length > 0 && props.length < Infinity ? Math.floor(props.length) : defaultProps$o.length;
|
|
23289
23323
|
const {
|
|
@@ -23397,15 +23431,13 @@ const PasscodeInput$1 = forwardRef((p, ref) => {
|
|
|
23397
23431
|
}
|
|
23398
23432
|
}));
|
|
23399
23433
|
});
|
|
23400
|
-
const PasscodeInput = PasscodeInput$1;
|
|
23401
|
-
const progressBar = "";
|
|
23402
23434
|
const classPrefix$t = `adm-progress-bar`;
|
|
23403
23435
|
const defaultProps$n = {
|
|
23404
23436
|
percent: 0,
|
|
23405
23437
|
rounded: true,
|
|
23406
23438
|
text: false
|
|
23407
23439
|
};
|
|
23408
|
-
const ProgressBar
|
|
23440
|
+
const ProgressBar = (p) => {
|
|
23409
23441
|
const props = mergeProps(defaultProps$n, p);
|
|
23410
23442
|
const fillStyle = {
|
|
23411
23443
|
width: `${props.percent}%`
|
|
@@ -23430,10 +23462,8 @@ const ProgressBar$1 = (p) => {
|
|
|
23430
23462
|
className: `${classPrefix$t}-text`
|
|
23431
23463
|
}, textElement)));
|
|
23432
23464
|
};
|
|
23433
|
-
const ProgressBar = ProgressBar$1;
|
|
23434
|
-
const progressCircle = "";
|
|
23435
23465
|
const classPrefix$s = `adm-progress-circle`;
|
|
23436
|
-
const ProgressCircle
|
|
23466
|
+
const ProgressCircle = (p) => {
|
|
23437
23467
|
const props = mergeProps({
|
|
23438
23468
|
percent: 0
|
|
23439
23469
|
}, p);
|
|
@@ -23457,21 +23487,19 @@ const ProgressCircle$1 = (p) => {
|
|
|
23457
23487
|
className: `${classPrefix$s}-info`
|
|
23458
23488
|
}, props.children))));
|
|
23459
23489
|
};
|
|
23460
|
-
const ProgressCircle = ProgressCircle$1;
|
|
23461
|
-
const pullToRefresh = "";
|
|
23462
23490
|
const sleep = (time) => new Promise((resolve) => setTimeout(resolve, time));
|
|
23463
23491
|
const classPrefix$r = `adm-pull-to-refresh`;
|
|
23464
23492
|
const defaultProps$m = {
|
|
23465
|
-
pullingText: "
|
|
23466
|
-
canReleaseText: "
|
|
23467
|
-
refreshingText: "
|
|
23468
|
-
completeText: "
|
|
23493
|
+
pullingText: "下拉刷新",
|
|
23494
|
+
canReleaseText: "释放立即刷新",
|
|
23495
|
+
refreshingText: "加载中...",
|
|
23496
|
+
completeText: "刷新成功",
|
|
23469
23497
|
completeDelay: 500,
|
|
23470
23498
|
disabled: false,
|
|
23471
23499
|
onRefresh: () => {
|
|
23472
23500
|
}
|
|
23473
23501
|
};
|
|
23474
|
-
const PullToRefresh
|
|
23502
|
+
const PullToRefresh = (p) => {
|
|
23475
23503
|
var _a, _b;
|
|
23476
23504
|
const {
|
|
23477
23505
|
locale
|
|
@@ -23627,8 +23655,6 @@ const PullToRefresh$1 = (p) => {
|
|
|
23627
23655
|
className: `${classPrefix$r}-content`
|
|
23628
23656
|
}, props.children));
|
|
23629
23657
|
};
|
|
23630
|
-
const PullToRefresh = PullToRefresh$1;
|
|
23631
|
-
const radio = "";
|
|
23632
23658
|
const RadioGroupContext = createContext(null);
|
|
23633
23659
|
const defaultProps$l = {
|
|
23634
23660
|
disabled: false,
|
|
@@ -23649,6 +23675,7 @@ const Group = (p) => {
|
|
|
23649
23675
|
return React__default.createElement(
|
|
23650
23676
|
RadioGroupContext.Provider,
|
|
23651
23677
|
{
|
|
23678
|
+
// TODO: 性能优化
|
|
23652
23679
|
value: {
|
|
23653
23680
|
value: value === null ? [] : [value],
|
|
23654
23681
|
check: (v) => {
|
|
@@ -23679,7 +23706,7 @@ const Radio = (p) => {
|
|
|
23679
23706
|
value
|
|
23680
23707
|
} = props;
|
|
23681
23708
|
if (groupContext && value !== void 0) {
|
|
23682
|
-
|
|
23709
|
+
{
|
|
23683
23710
|
if (p.checked !== void 0) {
|
|
23684
23711
|
devWarning("Radio", "When used within `Radio.Group`, the `checked` prop of `Radio` will not work.");
|
|
23685
23712
|
}
|
|
@@ -23729,7 +23756,6 @@ const Radio = (p) => {
|
|
|
23729
23756
|
const index$6 = attachPropertiesToComponent(Radio, {
|
|
23730
23757
|
Group
|
|
23731
23758
|
});
|
|
23732
|
-
const rate = "";
|
|
23733
23759
|
const Star = () => {
|
|
23734
23760
|
return React__default.createElement("svg", {
|
|
23735
23761
|
viewBox: "0 0 42 40",
|
|
@@ -23753,7 +23779,7 @@ const defaultProps$j = {
|
|
|
23753
23779
|
readOnly: false,
|
|
23754
23780
|
allowClear: true
|
|
23755
23781
|
};
|
|
23756
|
-
const Rate
|
|
23782
|
+
const Rate = (p) => {
|
|
23757
23783
|
const props = mergeProps(defaultProps$j, p);
|
|
23758
23784
|
const [value, setValue2] = usePropsValue(props);
|
|
23759
23785
|
const containerRef = useRef(null);
|
|
@@ -23810,8 +23836,6 @@ const Rate$1 = (p) => {
|
|
|
23810
23836
|
className: classNames(`${classPrefix$p}-box`)
|
|
23811
23837
|
}, props.allowHalf && renderStar(i2 + 0.5, true), renderStar(i2 + 1, false)))));
|
|
23812
23838
|
};
|
|
23813
|
-
const Rate = Rate$1;
|
|
23814
|
-
const result = "";
|
|
23815
23839
|
const classPrefix$o = `adm-result`;
|
|
23816
23840
|
const iconRecord$1 = {
|
|
23817
23841
|
success: CheckCircleFill,
|
|
@@ -23823,7 +23847,7 @@ const iconRecord$1 = {
|
|
|
23823
23847
|
const defaultProps$i = {
|
|
23824
23848
|
status: "info"
|
|
23825
23849
|
};
|
|
23826
|
-
const Result
|
|
23850
|
+
const Result = (p) => {
|
|
23827
23851
|
const props = mergeProps(defaultProps$i, p);
|
|
23828
23852
|
const {
|
|
23829
23853
|
status,
|
|
@@ -23844,8 +23868,6 @@ const Result$1 = (p) => {
|
|
|
23844
23868
|
className: `${classPrefix$o}-description`
|
|
23845
23869
|
}, description)));
|
|
23846
23870
|
};
|
|
23847
|
-
const Result = Result$1;
|
|
23848
|
-
const resultPage = "";
|
|
23849
23871
|
const classPrefix$n = `adm-result-page`;
|
|
23850
23872
|
const iconRecord = {
|
|
23851
23873
|
success: CheckCircleFill,
|
|
@@ -23872,7 +23894,7 @@ const ResultPage = (p) => {
|
|
|
23872
23894
|
onSecondaryButtonClick
|
|
23873
23895
|
} = props;
|
|
23874
23896
|
const resultIcon = icon || React__default.createElement(iconRecord[status]);
|
|
23875
|
-
const [
|
|
23897
|
+
const [collapse, setCollapse] = useState$1(true);
|
|
23876
23898
|
const showSecondaryButton = isNodeWithContent(secondaryButtonText);
|
|
23877
23899
|
const showPrimaryButton = isNodeWithContent(primaryButtonText);
|
|
23878
23900
|
return withNativeProps(props, React__default.createElement("div", {
|
|
@@ -23887,7 +23909,7 @@ const ResultPage = (p) => {
|
|
|
23887
23909
|
className: `${classPrefix$n}-description`
|
|
23888
23910
|
}, description) : null, (details === null || details === void 0 ? void 0 : details.length) ? React__default.createElement("div", {
|
|
23889
23911
|
className: `${classPrefix$n}-details`
|
|
23890
|
-
}, (
|
|
23912
|
+
}, (collapse ? details.slice(0, 3) : details).map((detail, index2) => {
|
|
23891
23913
|
return React__default.createElement("div", {
|
|
23892
23914
|
className: classNames(`${classPrefix$n}-detail`, detail.bold && `${classPrefix$n}-detail-bold`),
|
|
23893
23915
|
key: index2
|
|
@@ -23895,7 +23917,7 @@ const ResultPage = (p) => {
|
|
|
23895
23917
|
}), details.length > 3 && React__default.createElement("div", {
|
|
23896
23918
|
onClick: () => setCollapse((prev) => !prev)
|
|
23897
23919
|
}, React__default.createElement("div", {
|
|
23898
|
-
className: classNames(`${classPrefix$n}-collapse`, !
|
|
23920
|
+
className: classNames(`${classPrefix$n}-collapse`, !collapse && `${classPrefix$n}-collapse-active`)
|
|
23899
23921
|
}))) : null, React__default.createElement("div", {
|
|
23900
23922
|
className: `${classPrefix$n}-bgWrapper`
|
|
23901
23923
|
}, React__default.createElement("div", {
|
|
@@ -23931,7 +23953,6 @@ const ResultPageCard = (props) => {
|
|
|
23931
23953
|
const index$5 = attachPropertiesToComponent(ResultPage, {
|
|
23932
23954
|
Card: ResultPageCard
|
|
23933
23955
|
});
|
|
23934
|
-
const searchBar = "";
|
|
23935
23956
|
const classPrefix$l = `adm-search-bar`;
|
|
23936
23957
|
const defaultProps$g = {
|
|
23937
23958
|
clearable: true,
|
|
@@ -23941,7 +23962,7 @@ const defaultProps$g = {
|
|
|
23941
23962
|
clearOnCancel: true,
|
|
23942
23963
|
icon: React__default.createElement(SearchOutline, null)
|
|
23943
23964
|
};
|
|
23944
|
-
const SearchBar
|
|
23965
|
+
const SearchBar = forwardRef((p, ref) => {
|
|
23945
23966
|
const {
|
|
23946
23967
|
locale
|
|
23947
23968
|
} = useConfig();
|
|
@@ -24047,8 +24068,6 @@ const SearchBar$1 = forwardRef((p, ref) => {
|
|
|
24047
24068
|
}
|
|
24048
24069
|
})), renderCancelButton()));
|
|
24049
24070
|
});
|
|
24050
|
-
const SearchBar = SearchBar$1;
|
|
24051
|
-
const selector = "";
|
|
24052
24071
|
const CheckMark = memo(() => {
|
|
24053
24072
|
return React__default.createElement("svg", {
|
|
24054
24073
|
width: "17px",
|
|
@@ -24083,7 +24102,7 @@ const defaultProps$f = {
|
|
|
24083
24102
|
defaultValue: [],
|
|
24084
24103
|
showCheckMark: true
|
|
24085
24104
|
};
|
|
24086
|
-
const Selector
|
|
24105
|
+
const Selector = (p) => {
|
|
24087
24106
|
const props = mergeProps(defaultProps$f, p);
|
|
24088
24107
|
const [labelName, valueName, , disabledName] = useFieldNames(props.fieldNames);
|
|
24089
24108
|
const [value, setValue2] = usePropsValue({
|
|
@@ -24143,8 +24162,6 @@ const Selector$1 = (p) => {
|
|
|
24143
24162
|
wrap: true
|
|
24144
24163
|
}, items)));
|
|
24145
24164
|
};
|
|
24146
|
-
const Selector = Selector$1;
|
|
24147
|
-
const sideBar = "";
|
|
24148
24165
|
const Corner = memo((props) => withNativeProps(props, React__default.createElement("svg", {
|
|
24149
24166
|
viewBox: "0 0 30 30"
|
|
24150
24167
|
}, React__default.createElement("g", {
|
|
@@ -24231,7 +24248,6 @@ const SideBar = (props) => {
|
|
|
24231
24248
|
const index$4 = attachPropertiesToComponent(SideBar, {
|
|
24232
24249
|
Item: SideBarItem
|
|
24233
24250
|
});
|
|
24234
|
-
const slider = "";
|
|
24235
24251
|
const classPrefix$i = `adm-slider`;
|
|
24236
24252
|
const Ticks = ({
|
|
24237
24253
|
points,
|
|
@@ -24365,7 +24381,12 @@ function validateNumber(num) {
|
|
|
24365
24381
|
if (!num) {
|
|
24366
24382
|
return false;
|
|
24367
24383
|
}
|
|
24368
|
-
return
|
|
24384
|
+
return (
|
|
24385
|
+
// Normal type: 11.28
|
|
24386
|
+
/^\s*-?\d+(\.\d+)?\s*$/.test(num) || // Pre-number: 1.
|
|
24387
|
+
/^\s*-?\d+\.\s*$/.test(num) || // Post-number: .1
|
|
24388
|
+
/^\s*-?\.\d+\s*$/.test(num)
|
|
24389
|
+
);
|
|
24369
24390
|
}
|
|
24370
24391
|
var BigIntDecimal = /* @__PURE__ */ function() {
|
|
24371
24392
|
function BigIntDecimal2(value) {
|
|
@@ -24413,11 +24434,18 @@ var BigIntDecimal = /* @__PURE__ */ function() {
|
|
|
24413
24434
|
value: function getIntegerStr() {
|
|
24414
24435
|
return this.integer.toString();
|
|
24415
24436
|
}
|
|
24437
|
+
/**
|
|
24438
|
+
* @private get decimal string
|
|
24439
|
+
*/
|
|
24416
24440
|
}, {
|
|
24417
24441
|
key: "getDecimalStr",
|
|
24418
24442
|
value: function getDecimalStr() {
|
|
24419
24443
|
return this.decimal.toString().padStart(this.decimalLen, "0");
|
|
24420
24444
|
}
|
|
24445
|
+
/**
|
|
24446
|
+
* @private Align BigIntDecimal with same decimal length. e.g. 12.3 + 5 = 1230000
|
|
24447
|
+
* This is used for add function only.
|
|
24448
|
+
*/
|
|
24421
24449
|
}, {
|
|
24422
24450
|
key: "alignDecimal",
|
|
24423
24451
|
value: function alignDecimal(decimalLength) {
|
|
@@ -24753,7 +24781,7 @@ const defaultProps$e = {
|
|
|
24753
24781
|
popover: false,
|
|
24754
24782
|
residentPopover: false
|
|
24755
24783
|
};
|
|
24756
|
-
const Slider
|
|
24784
|
+
const Slider = (p) => {
|
|
24757
24785
|
var _a;
|
|
24758
24786
|
const props = mergeProps(defaultProps$e, p);
|
|
24759
24787
|
const {
|
|
@@ -24923,8 +24951,6 @@ const Slider$1 = (p) => {
|
|
|
24923
24951
|
upperBound: sliderValue[1]
|
|
24924
24952
|
})));
|
|
24925
24953
|
};
|
|
24926
|
-
const Slider = Slider$1;
|
|
24927
|
-
const stepper = "";
|
|
24928
24954
|
var useMergedState$1 = {};
|
|
24929
24955
|
var slicedToArray = { exports: {} };
|
|
24930
24956
|
var arrayWithHoles = { exports: {} };
|
|
@@ -24935,6 +24961,7 @@ var arrayWithHoles = { exports: {} };
|
|
|
24935
24961
|
}
|
|
24936
24962
|
module.exports = _arrayWithHoles2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
24937
24963
|
})(arrayWithHoles);
|
|
24964
|
+
var arrayWithHolesExports = arrayWithHoles.exports;
|
|
24938
24965
|
var iterableToArrayLimit = { exports: {} };
|
|
24939
24966
|
(function(module) {
|
|
24940
24967
|
function _iterableToArrayLimit2(r, l) {
|
|
@@ -24965,6 +24992,7 @@ var iterableToArrayLimit = { exports: {} };
|
|
|
24965
24992
|
}
|
|
24966
24993
|
module.exports = _iterableToArrayLimit2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
24967
24994
|
})(iterableToArrayLimit);
|
|
24995
|
+
var iterableToArrayLimitExports = iterableToArrayLimit.exports;
|
|
24968
24996
|
var unsupportedIterableToArray = { exports: {} };
|
|
24969
24997
|
var arrayLikeToArray = { exports: {} };
|
|
24970
24998
|
(function(module) {
|
|
@@ -24977,23 +25005,25 @@ var arrayLikeToArray = { exports: {} };
|
|
|
24977
25005
|
}
|
|
24978
25006
|
module.exports = _arrayLikeToArray2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
24979
25007
|
})(arrayLikeToArray);
|
|
25008
|
+
var arrayLikeToArrayExports = arrayLikeToArray.exports;
|
|
24980
25009
|
(function(module) {
|
|
24981
|
-
var
|
|
25010
|
+
var arrayLikeToArray2 = arrayLikeToArrayExports;
|
|
24982
25011
|
function _unsupportedIterableToArray2(o, minLen) {
|
|
24983
25012
|
if (!o)
|
|
24984
25013
|
return;
|
|
24985
25014
|
if (typeof o === "string")
|
|
24986
|
-
return
|
|
25015
|
+
return arrayLikeToArray2(o, minLen);
|
|
24987
25016
|
var n2 = Object.prototype.toString.call(o).slice(8, -1);
|
|
24988
25017
|
if (n2 === "Object" && o.constructor)
|
|
24989
25018
|
n2 = o.constructor.name;
|
|
24990
25019
|
if (n2 === "Map" || n2 === "Set")
|
|
24991
25020
|
return Array.from(o);
|
|
24992
25021
|
if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))
|
|
24993
|
-
return
|
|
25022
|
+
return arrayLikeToArray2(o, minLen);
|
|
24994
25023
|
}
|
|
24995
25024
|
module.exports = _unsupportedIterableToArray2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
24996
25025
|
})(unsupportedIterableToArray);
|
|
25026
|
+
var unsupportedIterableToArrayExports = unsupportedIterableToArray.exports;
|
|
24997
25027
|
var nonIterableRest = { exports: {} };
|
|
24998
25028
|
(function(module) {
|
|
24999
25029
|
function _nonIterableRest2() {
|
|
@@ -25001,18 +25031,20 @@ var nonIterableRest = { exports: {} };
|
|
|
25001
25031
|
}
|
|
25002
25032
|
module.exports = _nonIterableRest2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
25003
25033
|
})(nonIterableRest);
|
|
25034
|
+
var nonIterableRestExports = nonIterableRest.exports;
|
|
25004
25035
|
(function(module) {
|
|
25005
|
-
var
|
|
25006
|
-
var
|
|
25007
|
-
var
|
|
25008
|
-
var
|
|
25036
|
+
var arrayWithHoles2 = arrayWithHolesExports;
|
|
25037
|
+
var iterableToArrayLimit2 = iterableToArrayLimitExports;
|
|
25038
|
+
var unsupportedIterableToArray2 = unsupportedIterableToArrayExports;
|
|
25039
|
+
var nonIterableRest2 = nonIterableRestExports;
|
|
25009
25040
|
function _slicedToArray3(arr, i2) {
|
|
25010
|
-
return
|
|
25041
|
+
return arrayWithHoles2(arr) || iterableToArrayLimit2(arr, i2) || unsupportedIterableToArray2(arr, i2) || nonIterableRest2();
|
|
25011
25042
|
}
|
|
25012
25043
|
module.exports = _slicedToArray3, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
25013
25044
|
})(slicedToArray);
|
|
25045
|
+
var slicedToArrayExports = slicedToArray.exports;
|
|
25014
25046
|
var useEvent$1 = {};
|
|
25015
|
-
var _interopRequireWildcard$2 =
|
|
25047
|
+
var _interopRequireWildcard$2 = interopRequireWildcardExports.default;
|
|
25016
25048
|
Object.defineProperty(useEvent$1, "__esModule", {
|
|
25017
25049
|
value: true
|
|
25018
25050
|
});
|
|
@@ -25039,8 +25071,8 @@ canUseDom$1.default = canUseDom;
|
|
|
25039
25071
|
function canUseDom() {
|
|
25040
25072
|
return !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
25041
25073
|
}
|
|
25042
|
-
var _interopRequireDefault$2 =
|
|
25043
|
-
var _interopRequireWildcard$1 =
|
|
25074
|
+
var _interopRequireDefault$2 = interopRequireDefaultExports.default;
|
|
25075
|
+
var _interopRequireWildcard$1 = interopRequireWildcardExports.default;
|
|
25044
25076
|
Object.defineProperty(useLayoutEffect$1, "__esModule", {
|
|
25045
25077
|
value: true
|
|
25046
25078
|
});
|
|
@@ -25071,13 +25103,13 @@ useLayoutEffect$1.useLayoutUpdateEffect = useLayoutUpdateEffect;
|
|
|
25071
25103
|
var _default$1 = useLayoutEffect;
|
|
25072
25104
|
useLayoutEffect$1.default = _default$1;
|
|
25073
25105
|
var useState = {};
|
|
25074
|
-
var _interopRequireWildcard =
|
|
25075
|
-
var _interopRequireDefault$1 =
|
|
25106
|
+
var _interopRequireWildcard = interopRequireWildcardExports.default;
|
|
25107
|
+
var _interopRequireDefault$1 = interopRequireDefaultExports.default;
|
|
25076
25108
|
Object.defineProperty(useState, "__esModule", {
|
|
25077
25109
|
value: true
|
|
25078
25110
|
});
|
|
25079
25111
|
useState.default = useSafeState;
|
|
25080
|
-
var _slicedToArray2$1 = _interopRequireDefault$1(
|
|
25112
|
+
var _slicedToArray2$1 = _interopRequireDefault$1(slicedToArrayExports);
|
|
25081
25113
|
var React = _interopRequireWildcard(React__default);
|
|
25082
25114
|
function useSafeState(defaultValue) {
|
|
25083
25115
|
var destroyRef = React.useRef(false);
|
|
@@ -25096,12 +25128,12 @@ function useSafeState(defaultValue) {
|
|
|
25096
25128
|
}
|
|
25097
25129
|
return [value, safeSetState];
|
|
25098
25130
|
}
|
|
25099
|
-
var _interopRequireDefault =
|
|
25131
|
+
var _interopRequireDefault = interopRequireDefaultExports.default;
|
|
25100
25132
|
Object.defineProperty(useMergedState$1, "__esModule", {
|
|
25101
25133
|
value: true
|
|
25102
25134
|
});
|
|
25103
25135
|
var _default = useMergedState$1.default = useMergedState;
|
|
25104
|
-
var _slicedToArray2 = _interopRequireDefault(
|
|
25136
|
+
var _slicedToArray2 = _interopRequireDefault(slicedToArrayExports);
|
|
25105
25137
|
var _useEvent = _interopRequireDefault(useEvent$1);
|
|
25106
25138
|
var _useLayoutEffect = useLayoutEffect$1;
|
|
25107
25139
|
var _useState5 = _interopRequireDefault(useState);
|
|
@@ -25339,9 +25371,7 @@ function InnerStepper(p, ref) {
|
|
|
25339
25371
|
"aria-label": locale.Stepper.increase
|
|
25340
25372
|
}, React__default.createElement(AddOutline, null))));
|
|
25341
25373
|
}
|
|
25342
|
-
const Stepper
|
|
25343
|
-
const Stepper = Stepper$1;
|
|
25344
|
-
const steps = "";
|
|
25374
|
+
const Stepper = forwardRef(InnerStepper);
|
|
25345
25375
|
const classPrefix$d = `adm-step`;
|
|
25346
25376
|
const Step = (props) => {
|
|
25347
25377
|
const {
|
|
@@ -25404,7 +25434,6 @@ const Steps = (p) => {
|
|
|
25404
25434
|
const index$3 = attachPropertiesToComponent(Steps, {
|
|
25405
25435
|
Step
|
|
25406
25436
|
});
|
|
25407
|
-
const swipeAction = "";
|
|
25408
25437
|
const classPrefix$b = `adm-swipe-action`;
|
|
25409
25438
|
const defaultProps$b = {
|
|
25410
25439
|
rightActions: [],
|
|
@@ -25413,7 +25442,7 @@ const defaultProps$b = {
|
|
|
25413
25442
|
closeOnAction: true,
|
|
25414
25443
|
stopPropagation: []
|
|
25415
25444
|
};
|
|
25416
|
-
const SwipeAction
|
|
25445
|
+
const SwipeAction = forwardRef((p, ref) => {
|
|
25417
25446
|
const props = mergeProps(defaultProps$b, p);
|
|
25418
25447
|
const rootRef = useRef(null);
|
|
25419
25448
|
const leftRef = useRef(null);
|
|
@@ -25603,8 +25632,6 @@ const colorRecord$1 = {
|
|
|
25603
25632
|
warning: "var(--adm-color-warning)",
|
|
25604
25633
|
danger: "var(--adm-color-danger)"
|
|
25605
25634
|
};
|
|
25606
|
-
const SwipeAction = SwipeAction$1;
|
|
25607
|
-
const swiper = "";
|
|
25608
25635
|
const SwiperItem = (props) => {
|
|
25609
25636
|
return withNativeProps(props, React__default.createElement("div", {
|
|
25610
25637
|
className: "adm-swiper-item",
|
|
@@ -25931,7 +25958,6 @@ function modulus(value, division) {
|
|
|
25931
25958
|
const index$2 = attachPropertiesToComponent(Swiper, {
|
|
25932
25959
|
Item: SwiperItem
|
|
25933
25960
|
});
|
|
25934
|
-
const _switch = "";
|
|
25935
25961
|
const SpinIcon = memo((props) => {
|
|
25936
25962
|
return withNativeProps(props, React__default.createElement("svg", {
|
|
25937
25963
|
width: "28px",
|
|
@@ -25957,7 +25983,7 @@ const classPrefix$9 = `adm-switch`;
|
|
|
25957
25983
|
const defaultProps$9 = {
|
|
25958
25984
|
defaultChecked: false
|
|
25959
25985
|
};
|
|
25960
|
-
const Switch
|
|
25986
|
+
const Switch = (p) => {
|
|
25961
25987
|
const props = mergeProps(defaultProps$9, p);
|
|
25962
25988
|
const disabled = props.disabled || props.loading || false;
|
|
25963
25989
|
const [changing, setChanging] = useState$1(false);
|
|
@@ -25985,11 +26011,11 @@ const Switch$1 = (p) => {
|
|
|
25985
26011
|
throw e2;
|
|
25986
26012
|
}
|
|
25987
26013
|
}
|
|
25988
|
-
const
|
|
25989
|
-
if (isPromise(
|
|
26014
|
+
const result = setChecked(nextChecked);
|
|
26015
|
+
if (isPromise(result)) {
|
|
25990
26016
|
setChanging(true);
|
|
25991
26017
|
try {
|
|
25992
|
-
yield
|
|
26018
|
+
yield result;
|
|
25993
26019
|
setChanging(false);
|
|
25994
26020
|
} catch (e2) {
|
|
25995
26021
|
setChanging(false);
|
|
@@ -26018,8 +26044,6 @@ const Switch$1 = (p) => {
|
|
|
26018
26044
|
className: `${classPrefix$9}-inner`
|
|
26019
26045
|
}, checked ? props.checkedText : props.uncheckedText))));
|
|
26020
26046
|
};
|
|
26021
|
-
const Switch = Switch$1;
|
|
26022
|
-
const tabBar = "";
|
|
26023
26047
|
const TabBarItem = () => {
|
|
26024
26048
|
return null;
|
|
26025
26049
|
};
|
|
@@ -26100,7 +26124,6 @@ const TabBar = (p) => {
|
|
|
26100
26124
|
const index$1 = attachPropertiesToComponent(TabBar, {
|
|
26101
26125
|
Item: TabBarItem
|
|
26102
26126
|
});
|
|
26103
|
-
const tag = "";
|
|
26104
26127
|
const classPrefix$7 = `adm-tag`;
|
|
26105
26128
|
const colorRecord = {
|
|
26106
26129
|
default: "var(--adm-color-text-secondary, #666666)",
|
|
@@ -26114,7 +26137,7 @@ const defaultProps$7 = {
|
|
|
26114
26137
|
fill: "solid",
|
|
26115
26138
|
round: false
|
|
26116
26139
|
};
|
|
26117
|
-
const Tag
|
|
26140
|
+
const Tag = (p) => {
|
|
26118
26141
|
var _a;
|
|
26119
26142
|
const props = mergeProps(defaultProps$7, p);
|
|
26120
26143
|
const color = (_a = colorRecord[props.color]) !== null && _a !== void 0 ? _a : props.color;
|
|
@@ -26131,8 +26154,6 @@ const Tag$1 = (p) => {
|
|
|
26131
26154
|
})
|
|
26132
26155
|
}, props.children));
|
|
26133
26156
|
};
|
|
26134
|
-
const Tag = Tag$1;
|
|
26135
|
-
const textArea = "";
|
|
26136
26157
|
const classPrefix$6 = "adm-text-area";
|
|
26137
26158
|
const defaultProps$6 = {
|
|
26138
26159
|
rows: 2,
|
|
@@ -26140,7 +26161,7 @@ const defaultProps$6 = {
|
|
|
26140
26161
|
autoSize: false,
|
|
26141
26162
|
defaultValue: ""
|
|
26142
26163
|
};
|
|
26143
|
-
const TextArea
|
|
26164
|
+
const TextArea = forwardRef((p, ref) => {
|
|
26144
26165
|
const props = mergeProps(defaultProps$6, p);
|
|
26145
26166
|
const {
|
|
26146
26167
|
autoSize,
|
|
@@ -26175,16 +26196,16 @@ const TextArea$1 = forwardRef((p, ref) => {
|
|
|
26175
26196
|
useIsomorphicLayoutEffect$2(() => {
|
|
26176
26197
|
if (!autoSize)
|
|
26177
26198
|
return;
|
|
26178
|
-
const
|
|
26199
|
+
const textArea = nativeTextAreaRef.current;
|
|
26179
26200
|
const hiddenTextArea = hiddenTextAreaRef.current;
|
|
26180
|
-
if (!
|
|
26201
|
+
if (!textArea)
|
|
26181
26202
|
return;
|
|
26182
|
-
|
|
26203
|
+
textArea.style.height = heightRef.current;
|
|
26183
26204
|
if (!hiddenTextArea)
|
|
26184
26205
|
return;
|
|
26185
26206
|
let height = hiddenTextArea.scrollHeight;
|
|
26186
26207
|
if (typeof autoSize === "object") {
|
|
26187
|
-
const computedStyle = window.getComputedStyle(
|
|
26208
|
+
const computedStyle = window.getComputedStyle(textArea);
|
|
26188
26209
|
const lineHeight = parseFloat(computedStyle.lineHeight);
|
|
26189
26210
|
if (autoSize.minRows) {
|
|
26190
26211
|
height = Math.max(height, autoSize.minRows * lineHeight);
|
|
@@ -26194,7 +26215,7 @@ const TextArea$1 = forwardRef((p, ref) => {
|
|
|
26194
26215
|
}
|
|
26195
26216
|
}
|
|
26196
26217
|
heightRef.current = `${height}px`;
|
|
26197
|
-
|
|
26218
|
+
textArea.style.height = `${height}px`;
|
|
26198
26219
|
}, [value, autoSize]);
|
|
26199
26220
|
const compositingRef = useRef(false);
|
|
26200
26221
|
let count;
|
|
@@ -26262,9 +26283,7 @@ const TextArea$1 = forwardRef((p, ref) => {
|
|
|
26262
26283
|
readOnly: true
|
|
26263
26284
|
})));
|
|
26264
26285
|
});
|
|
26265
|
-
TextArea
|
|
26266
|
-
const TextArea = TextArea$1;
|
|
26267
|
-
const toast = "";
|
|
26286
|
+
TextArea.defaultProps = defaultProps$6;
|
|
26268
26287
|
const classPrefix$5 = `adm-toast`;
|
|
26269
26288
|
const defaultProps$5 = {
|
|
26270
26289
|
maskClickable: true,
|
|
@@ -26385,7 +26404,6 @@ const Toast = {
|
|
|
26385
26404
|
config
|
|
26386
26405
|
};
|
|
26387
26406
|
const Toast$1 = Toast;
|
|
26388
|
-
const treeSelect = "";
|
|
26389
26407
|
function getTreeDeep(treeData, childrenName = "children") {
|
|
26390
26408
|
const walker = (tree) => {
|
|
26391
26409
|
let deep = 0;
|
|
@@ -26723,12 +26741,11 @@ const Multiple = (p) => {
|
|
|
26723
26741
|
const index = attachPropertiesToComponent(TreeSelect, {
|
|
26724
26742
|
Multiple
|
|
26725
26743
|
});
|
|
26726
|
-
const virtualInput = "";
|
|
26727
26744
|
const classPrefix$2 = "adm-virtual-input";
|
|
26728
26745
|
const defaultProps$2 = {
|
|
26729
26746
|
defaultValue: ""
|
|
26730
26747
|
};
|
|
26731
|
-
const VirtualInput
|
|
26748
|
+
const VirtualInput = forwardRef((p, ref) => {
|
|
26732
26749
|
const props = mergeProps(defaultProps$2, p);
|
|
26733
26750
|
const [value, setValue2] = usePropsValue(props);
|
|
26734
26751
|
const rootRef = useRef(null);
|
|
@@ -26791,9 +26808,14 @@ const VirtualInput$1 = forwardRef((p, ref) => {
|
|
|
26791
26808
|
},
|
|
26792
26809
|
visible: hasFocus,
|
|
26793
26810
|
onClose: () => {
|
|
26794
|
-
var _a, _b, _c;
|
|
26795
|
-
|
|
26796
|
-
(
|
|
26811
|
+
var _a, _b, _c, _d;
|
|
26812
|
+
const activeElement = document.activeElement;
|
|
26813
|
+
if (activeElement && ((_a = rootRef.current) === null || _a === void 0 ? void 0 : _a.contains(activeElement))) {
|
|
26814
|
+
activeElement.blur();
|
|
26815
|
+
} else {
|
|
26816
|
+
(_b = rootRef.current) === null || _b === void 0 ? void 0 : _b.blur();
|
|
26817
|
+
}
|
|
26818
|
+
(_d = (_c = keyboard.props).onClose) === null || _d === void 0 ? void 0 : _d.call(_c);
|
|
26797
26819
|
},
|
|
26798
26820
|
getContainer: null
|
|
26799
26821
|
});
|
|
@@ -26803,7 +26825,7 @@ const VirtualInput$1 = forwardRef((p, ref) => {
|
|
|
26803
26825
|
[`${classPrefix$2}-disabled`]: props.disabled
|
|
26804
26826
|
}),
|
|
26805
26827
|
tabIndex: props.disabled ? void 0 : 0,
|
|
26806
|
-
role: "
|
|
26828
|
+
role: "textbox",
|
|
26807
26829
|
onFocus,
|
|
26808
26830
|
onBlur,
|
|
26809
26831
|
onClick: props.onClick
|
|
@@ -26830,13 +26852,11 @@ const VirtualInput$1 = forwardRef((p, ref) => {
|
|
|
26830
26852
|
className: `${classPrefix$2}-placeholder`
|
|
26831
26853
|
}, props.placeholder), keyboardElement));
|
|
26832
26854
|
});
|
|
26833
|
-
const VirtualInput = VirtualInput$1;
|
|
26834
|
-
const waterMark = "";
|
|
26835
26855
|
const classPrefix$1 = `adm-water-mark`;
|
|
26836
26856
|
const defaultProps$1 = {
|
|
26837
26857
|
fullPage: true
|
|
26838
26858
|
};
|
|
26839
|
-
const WaterMark
|
|
26859
|
+
const WaterMark = (p) => {
|
|
26840
26860
|
const props = mergeProps(defaultProps$1, p);
|
|
26841
26861
|
const {
|
|
26842
26862
|
zIndex,
|
|
@@ -26845,7 +26865,7 @@ const WaterMark$1 = (p) => {
|
|
|
26845
26865
|
width = 120,
|
|
26846
26866
|
height = 64,
|
|
26847
26867
|
rotate = -22,
|
|
26848
|
-
image
|
|
26868
|
+
image,
|
|
26849
26869
|
imageWidth = 120,
|
|
26850
26870
|
imageHeight = 64,
|
|
26851
26871
|
content,
|
|
@@ -26867,7 +26887,7 @@ const WaterMark$1 = (p) => {
|
|
|
26867
26887
|
canvas.setAttribute("width", canvasWidth);
|
|
26868
26888
|
canvas.setAttribute("height", canvasHeight);
|
|
26869
26889
|
if (ctx2) {
|
|
26870
|
-
if (
|
|
26890
|
+
if (image) {
|
|
26871
26891
|
ctx2.translate(markWidth / 2, markHeight / 2);
|
|
26872
26892
|
ctx2.rotate(Math.PI / 180 * Number(rotate));
|
|
26873
26893
|
const img = new Image();
|
|
@@ -26878,7 +26898,7 @@ const WaterMark$1 = (p) => {
|
|
|
26878
26898
|
ctx2.restore();
|
|
26879
26899
|
setBase64Url(canvas.toDataURL());
|
|
26880
26900
|
};
|
|
26881
|
-
img.src =
|
|
26901
|
+
img.src = image;
|
|
26882
26902
|
} else if (content) {
|
|
26883
26903
|
ctx2.textBaseline = "middle";
|
|
26884
26904
|
ctx2.textAlign = "center";
|
|
@@ -26898,7 +26918,7 @@ const WaterMark$1 = (p) => {
|
|
|
26898
26918
|
} else {
|
|
26899
26919
|
throw new Error("Canvas is not supported in the current environment");
|
|
26900
26920
|
}
|
|
26901
|
-
}, [gapX, gapY, rotate, fontStyle, fontWeight, width, height, fontFamily, fontColor,
|
|
26921
|
+
}, [gapX, gapY, rotate, fontStyle, fontWeight, width, height, fontFamily, fontColor, image, content, fontSize]);
|
|
26902
26922
|
return withNativeProps(props, React__default.createElement("div", {
|
|
26903
26923
|
className: classNames(classPrefix$1, {
|
|
26904
26924
|
[`${classPrefix$1}-full-page`]: props.fullPage
|
|
@@ -26906,12 +26926,11 @@ const WaterMark$1 = (p) => {
|
|
|
26906
26926
|
style: {
|
|
26907
26927
|
zIndex,
|
|
26908
26928
|
backgroundSize: `${gapX + width}px`,
|
|
26929
|
+
// Not give `url` if its empty. Which will cause 404 error.
|
|
26909
26930
|
backgroundImage: base64Url === "" ? void 0 : `url('${base64Url}')`
|
|
26910
26931
|
}
|
|
26911
26932
|
}));
|
|
26912
26933
|
};
|
|
26913
|
-
const WaterMark = WaterMark$1;
|
|
26914
|
-
const footer = "";
|
|
26915
26934
|
const classPrefix = `adm-footer`;
|
|
26916
26935
|
const defaultProps = {
|
|
26917
26936
|
label: "",
|
|
@@ -26919,7 +26938,7 @@ const defaultProps = {
|
|
|
26919
26938
|
content: "",
|
|
26920
26939
|
chips: []
|
|
26921
26940
|
};
|
|
26922
|
-
const Footer
|
|
26941
|
+
const Footer = (p) => {
|
|
26923
26942
|
const props = mergeProps(defaultProps, p);
|
|
26924
26943
|
const {
|
|
26925
26944
|
label,
|
|
@@ -26966,9 +26985,8 @@ const Footer$1 = (p) => {
|
|
|
26966
26985
|
})
|
|
26967
26986
|
}, chip.text)))));
|
|
26968
26987
|
};
|
|
26969
|
-
const Footer = Footer$1;
|
|
26970
26988
|
export {
|
|
26971
|
-
index$
|
|
26989
|
+
index$i as ActionSheet,
|
|
26972
26990
|
AutoCenter,
|
|
26973
26991
|
Avatar,
|
|
26974
26992
|
Badge,
|
|
@@ -26976,23 +26994,23 @@ export {
|
|
|
26976
26994
|
Calendar,
|
|
26977
26995
|
CalendarPicker,
|
|
26978
26996
|
CalendarPickerView,
|
|
26979
|
-
index$
|
|
26997
|
+
index$h as CapsuleTabs,
|
|
26980
26998
|
Card,
|
|
26981
|
-
index$
|
|
26999
|
+
index$g as CascadePicker,
|
|
26982
27000
|
CascadePickerView,
|
|
26983
|
-
index$
|
|
27001
|
+
index$f as Cascader,
|
|
26984
27002
|
CascaderView,
|
|
26985
27003
|
CenterPopup,
|
|
26986
27004
|
CheckList,
|
|
26987
27005
|
Checkbox,
|
|
26988
|
-
index$
|
|
27006
|
+
index$e as Collapse,
|
|
26989
27007
|
ConfigProvider,
|
|
26990
|
-
index$
|
|
27008
|
+
index$d as DatePicker,
|
|
26991
27009
|
DatePickerView,
|
|
26992
|
-
index$
|
|
27010
|
+
index$c as Dialog,
|
|
26993
27011
|
Divider,
|
|
26994
|
-
DotLoading
|
|
26995
|
-
index$
|
|
27012
|
+
DotLoading,
|
|
27013
|
+
index$b as Dropdown,
|
|
26996
27014
|
Ellipsis,
|
|
26997
27015
|
Empty,
|
|
26998
27016
|
ErrorBlock,
|