antd-mobile 5.28.1 → 5.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2x/bundle/antd-mobile.cjs.development.js +549 -317
- package/2x/bundle/antd-mobile.cjs.js +10 -9
- package/2x/bundle/antd-mobile.es.development.js +549 -317
- package/2x/bundle/antd-mobile.es.js +7650 -7398
- package/2x/bundle/antd-mobile.umd.development.js +549 -317
- package/2x/bundle/antd-mobile.umd.js +10 -9
- package/2x/bundle/css-vars-patch.css +1 -0
- package/2x/bundle/style.css +45 -34
- package/2x/cjs/components/action-sheet/action-sheet.css +1 -1
- package/2x/cjs/components/action-sheet/action-sheet.js +6 -2
- package/2x/cjs/components/avatar/avatar.d.ts +1 -1
- package/2x/cjs/components/avatar/avatar.js +2 -1
- package/2x/cjs/components/badge/badge.css +2 -2
- package/2x/cjs/components/button/button.css +2 -2
- package/2x/cjs/components/capsule-tabs/capsule-tabs.css +2 -2
- package/2x/cjs/components/check-list/check-list-item.js +3 -1
- package/2x/cjs/components/check-list/check-list.d.ts +1 -0
- package/2x/cjs/components/check-list/check-list.js +2 -0
- package/2x/cjs/components/check-list/context.d.ts +1 -0
- package/2x/cjs/components/checkbox/checkbox.css +2 -2
- package/2x/cjs/components/ellipsis/ellipsis.js +1 -1
- package/2x/cjs/components/image/image.css +1 -1
- package/2x/cjs/components/index-bar/index-bar.css +4 -4
- package/2x/cjs/components/input/input.d.ts +1 -1
- package/2x/cjs/components/jumbo-tabs/jumbo-tabs.css +2 -2
- package/2x/cjs/components/notice-bar/notice-bar.css +1 -1
- package/2x/cjs/components/number-keyboard/number-keyboard.js +10 -6
- package/2x/cjs/components/popover/index.d.ts +1 -1
- package/2x/cjs/components/popover/popover.css +2 -2
- package/2x/cjs/components/popover/popover.d.ts +2 -2
- package/2x/cjs/components/popover/popover.js +1 -1
- package/2x/cjs/components/popover/popover.patch.css +1 -0
- package/2x/cjs/components/pull-to-refresh/pull-to-refresh.js +15 -16
- package/2x/cjs/components/radio/radio.css +2 -2
- package/2x/cjs/components/search-bar/search-bar.css +1 -1
- package/2x/cjs/components/selector/selector.css +1 -1
- package/2x/cjs/components/selector/selector.js +10 -2
- package/2x/cjs/components/side-bar/side-bar.css +1 -1
- package/2x/cjs/components/slider/slider.css +3 -3
- package/2x/cjs/components/stepper/index.d.ts +1 -1
- package/2x/cjs/components/stepper/stepper.css +2 -2
- package/2x/cjs/components/stepper/stepper.d.ts +4 -2
- package/2x/cjs/components/stepper/stepper.js +21 -3
- package/2x/cjs/components/swipe-action/swipe-action.css +1 -1
- package/2x/cjs/components/switch/switch.css +2 -2
- package/2x/cjs/components/tabs/tabs.js +5 -2
- package/2x/cjs/components/text-area/text-area.css +8 -0
- package/2x/cjs/components/text-area/text-area.d.ts +1 -1
- package/2x/cjs/components/text-area/text-area.js +12 -2
- package/2x/cjs/components/virtual-input/virtual-input.js +12 -2
- package/2x/cjs/global/css-vars-patch.css +1 -0
- package/2x/cjs/global/global.css +5 -2
- package/2x/cjs/global/theme-default.css +5 -2
- package/2x/cjs/index.d.ts +1 -1
- package/2x/cjs/locales/base.d.ts +3 -0
- package/2x/cjs/locales/base.js +3 -0
- package/2x/cjs/locales/en-US.d.ts +3 -0
- package/2x/cjs/locales/es-ES.d.ts +3 -0
- package/2x/cjs/locales/fa-IR.d.ts +3 -0
- package/2x/cjs/locales/fr-FR.d.ts +3 -0
- package/2x/cjs/locales/id-ID.d.ts +3 -0
- package/2x/cjs/locales/ja-JP.d.ts +3 -0
- package/2x/cjs/locales/kk-KZ.d.ts +3 -0
- package/2x/cjs/locales/ko-KR.d.ts +3 -0
- package/2x/cjs/locales/ko-KR.js +31 -2
- package/2x/cjs/locales/zh-CN.d.ts +3 -0
- package/2x/cjs/locales/zh-CN.js +3 -0
- package/2x/cjs/locales/zh-HK.d.ts +3 -0
- package/2x/cjs/locales/zh-TW.d.ts +3 -0
- package/2x/cjs/utils/reduce-and-restore-motion.js +7 -6
- package/2x/cjs/utils/render-imperatively.js +9 -3
- package/2x/es/components/action-sheet/action-sheet.css +1 -1
- package/2x/es/components/action-sheet/action-sheet.js +6 -2
- package/2x/es/components/avatar/avatar.d.ts +1 -1
- package/2x/es/components/avatar/avatar.js +2 -1
- package/2x/es/components/badge/badge.css +2 -2
- package/2x/es/components/button/button.css +2 -2
- package/2x/es/components/capsule-tabs/capsule-tabs.css +2 -2
- package/2x/es/components/check-list/check-list-item.js +3 -1
- package/2x/es/components/check-list/check-list.d.ts +1 -0
- package/2x/es/components/check-list/check-list.js +2 -0
- package/2x/es/components/check-list/context.d.ts +1 -0
- package/2x/es/components/checkbox/checkbox.css +2 -2
- package/2x/es/components/ellipsis/ellipsis.js +1 -1
- package/2x/es/components/image/image.css +1 -1
- package/2x/es/components/index-bar/index-bar.css +4 -4
- package/2x/es/components/input/input.d.ts +1 -1
- package/2x/es/components/jumbo-tabs/jumbo-tabs.css +2 -2
- package/2x/es/components/notice-bar/notice-bar.css +1 -1
- package/2x/es/components/number-keyboard/number-keyboard.js +10 -6
- package/2x/es/components/popover/index.d.ts +1 -1
- package/2x/es/components/popover/popover.css +2 -2
- package/2x/es/components/popover/popover.d.ts +2 -2
- package/2x/es/components/popover/popover.js +1 -1
- package/2x/es/components/popover/popover.patch.css +1 -0
- package/2x/es/components/pull-to-refresh/pull-to-refresh.js +15 -16
- package/2x/es/components/radio/radio.css +2 -2
- package/2x/es/components/search-bar/search-bar.css +1 -1
- package/2x/es/components/selector/selector.css +1 -1
- package/2x/es/components/selector/selector.js +10 -2
- package/2x/es/components/side-bar/side-bar.css +1 -1
- package/2x/es/components/slider/slider.css +3 -3
- package/2x/es/components/stepper/index.d.ts +1 -1
- package/2x/es/components/stepper/stepper.css +2 -2
- package/2x/es/components/stepper/stepper.d.ts +4 -2
- package/2x/es/components/stepper/stepper.js +19 -3
- package/2x/es/components/swipe-action/swipe-action.css +1 -1
- package/2x/es/components/switch/switch.css +2 -2
- package/2x/es/components/tabs/tabs.js +5 -2
- package/2x/es/components/text-area/text-area.css +8 -0
- package/2x/es/components/text-area/text-area.d.ts +1 -1
- package/2x/es/components/text-area/text-area.js +12 -2
- package/2x/es/components/virtual-input/virtual-input.js +12 -2
- package/2x/es/global/css-vars-patch.css +1 -0
- package/2x/es/global/global.css +5 -2
- package/2x/es/global/theme-default.css +5 -2
- package/2x/es/index.d.ts +1 -1
- package/2x/es/locales/base.d.ts +3 -0
- package/2x/es/locales/base.js +3 -0
- package/2x/es/locales/en-US.d.ts +3 -0
- package/2x/es/locales/es-ES.d.ts +3 -0
- package/2x/es/locales/fa-IR.d.ts +3 -0
- package/2x/es/locales/fr-FR.d.ts +3 -0
- package/2x/es/locales/id-ID.d.ts +3 -0
- package/2x/es/locales/ja-JP.d.ts +3 -0
- package/2x/es/locales/kk-KZ.d.ts +3 -0
- package/2x/es/locales/ko-KR.d.ts +3 -0
- package/2x/es/locales/ko-KR.js +31 -2
- package/2x/es/locales/zh-CN.d.ts +3 -0
- package/2x/es/locales/zh-CN.js +3 -0
- package/2x/es/locales/zh-HK.d.ts +3 -0
- package/2x/es/locales/zh-TW.d.ts +3 -0
- package/2x/es/utils/reduce-and-restore-motion.js +7 -6
- package/2x/es/utils/render-imperatively.js +9 -3
- package/2x/package.json +2 -2
- package/bundle/antd-mobile.cjs.development.js +549 -317
- package/bundle/antd-mobile.cjs.js +10 -9
- package/bundle/antd-mobile.compatible.umd.js +1 -1
- package/bundle/antd-mobile.es.development.js +549 -317
- package/bundle/antd-mobile.es.js +7650 -7398
- package/bundle/antd-mobile.umd.development.js +549 -317
- package/bundle/antd-mobile.umd.js +10 -9
- package/bundle/css-vars-patch.css +1 -0
- package/bundle/style.css +1 -1
- package/cjs/components/action-sheet/action-sheet.css +1 -1
- package/cjs/components/action-sheet/action-sheet.js +6 -2
- package/cjs/components/avatar/avatar.d.ts +1 -1
- package/cjs/components/avatar/avatar.js +2 -1
- package/cjs/components/badge/badge.css +2 -2
- package/cjs/components/button/button.css +2 -2
- package/cjs/components/capsule-tabs/capsule-tabs.css +2 -2
- package/cjs/components/check-list/check-list-item.js +3 -1
- package/cjs/components/check-list/check-list.d.ts +1 -0
- package/cjs/components/check-list/check-list.js +2 -0
- package/cjs/components/check-list/context.d.ts +1 -0
- package/cjs/components/checkbox/checkbox.css +2 -2
- package/cjs/components/ellipsis/ellipsis.js +1 -1
- package/cjs/components/image/image.css +1 -1
- package/cjs/components/index-bar/index-bar.css +4 -4
- package/cjs/components/input/input.d.ts +1 -1
- package/cjs/components/jumbo-tabs/jumbo-tabs.css +2 -2
- package/cjs/components/notice-bar/notice-bar.css +1 -1
- package/cjs/components/number-keyboard/number-keyboard.js +10 -6
- package/cjs/components/popover/index.d.ts +1 -1
- package/cjs/components/popover/popover.css +2 -2
- package/cjs/components/popover/popover.d.ts +2 -2
- package/cjs/components/popover/popover.js +1 -1
- package/cjs/components/popover/popover.patch.css +1 -0
- package/cjs/components/pull-to-refresh/pull-to-refresh.js +15 -16
- package/cjs/components/radio/radio.css +2 -2
- package/cjs/components/search-bar/search-bar.css +1 -1
- package/cjs/components/selector/selector.css +1 -1
- package/cjs/components/selector/selector.js +10 -2
- package/cjs/components/side-bar/side-bar.css +1 -1
- package/cjs/components/slider/slider.css +3 -3
- package/cjs/components/stepper/index.d.ts +1 -1
- package/cjs/components/stepper/stepper.css +2 -2
- package/cjs/components/stepper/stepper.d.ts +4 -2
- package/cjs/components/stepper/stepper.js +21 -3
- package/cjs/components/swipe-action/swipe-action.css +1 -1
- package/cjs/components/switch/switch.css +2 -2
- package/cjs/components/tabs/tabs.js +5 -2
- package/cjs/components/text-area/text-area.css +7 -0
- package/cjs/components/text-area/text-area.d.ts +1 -1
- package/cjs/components/text-area/text-area.js +12 -2
- package/cjs/components/virtual-input/virtual-input.js +12 -2
- package/cjs/global/css-vars-patch.css +1 -0
- package/cjs/global/global.css +5 -2
- package/cjs/global/theme-default.css +5 -2
- package/cjs/index.d.ts +1 -1
- package/cjs/locales/base.d.ts +3 -0
- package/cjs/locales/base.js +3 -0
- package/cjs/locales/en-US.d.ts +3 -0
- package/cjs/locales/es-ES.d.ts +3 -0
- package/cjs/locales/fa-IR.d.ts +3 -0
- package/cjs/locales/fr-FR.d.ts +3 -0
- package/cjs/locales/id-ID.d.ts +3 -0
- package/cjs/locales/ja-JP.d.ts +3 -0
- package/cjs/locales/kk-KZ.d.ts +3 -0
- package/cjs/locales/ko-KR.d.ts +3 -0
- package/cjs/locales/ko-KR.js +31 -2
- package/cjs/locales/zh-CN.d.ts +3 -0
- package/cjs/locales/zh-CN.js +3 -0
- package/cjs/locales/zh-HK.d.ts +3 -0
- package/cjs/locales/zh-TW.d.ts +3 -0
- package/cjs/utils/reduce-and-restore-motion.js +7 -6
- package/cjs/utils/render-imperatively.js +9 -3
- package/es/components/action-sheet/action-sheet.css +1 -1
- package/es/components/action-sheet/action-sheet.js +6 -2
- package/es/components/avatar/avatar.d.ts +1 -1
- package/es/components/avatar/avatar.js +2 -1
- package/es/components/badge/badge.css +2 -2
- package/es/components/button/button.css +2 -2
- package/es/components/capsule-tabs/capsule-tabs.css +2 -2
- package/es/components/check-list/check-list-item.js +3 -1
- package/es/components/check-list/check-list.d.ts +1 -0
- package/es/components/check-list/check-list.js +2 -0
- package/es/components/check-list/context.d.ts +1 -0
- package/es/components/checkbox/checkbox.css +2 -2
- package/es/components/ellipsis/ellipsis.js +1 -1
- package/es/components/image/image.css +1 -1
- package/es/components/index-bar/index-bar.css +4 -4
- package/es/components/input/input.d.ts +1 -1
- package/es/components/jumbo-tabs/jumbo-tabs.css +2 -2
- package/es/components/notice-bar/notice-bar.css +1 -1
- package/es/components/number-keyboard/number-keyboard.js +10 -6
- package/es/components/popover/index.d.ts +1 -1
- package/es/components/popover/popover.css +2 -2
- package/es/components/popover/popover.d.ts +2 -2
- package/es/components/popover/popover.js +1 -1
- package/es/components/popover/popover.patch.css +1 -0
- package/es/components/pull-to-refresh/pull-to-refresh.js +15 -16
- package/es/components/radio/radio.css +2 -2
- package/es/components/search-bar/search-bar.css +1 -1
- package/es/components/selector/selector.css +1 -1
- package/es/components/selector/selector.js +10 -2
- package/es/components/side-bar/side-bar.css +1 -1
- package/es/components/slider/slider.css +3 -3
- package/es/components/stepper/index.d.ts +1 -1
- package/es/components/stepper/stepper.css +2 -2
- package/es/components/stepper/stepper.d.ts +4 -2
- package/es/components/stepper/stepper.js +19 -3
- package/es/components/swipe-action/swipe-action.css +1 -1
- package/es/components/switch/switch.css +2 -2
- package/es/components/tabs/tabs.js +5 -2
- package/es/components/text-area/text-area.css +7 -0
- package/es/components/text-area/text-area.d.ts +1 -1
- package/es/components/text-area/text-area.js +12 -2
- package/es/components/virtual-input/virtual-input.js +12 -2
- package/es/global/css-vars-patch.css +1 -0
- package/es/global/global.css +5 -2
- package/es/global/theme-default.css +5 -2
- package/es/index.d.ts +1 -1
- package/es/locales/base.d.ts +3 -0
- package/es/locales/base.js +3 -0
- package/es/locales/en-US.d.ts +3 -0
- package/es/locales/es-ES.d.ts +3 -0
- package/es/locales/fa-IR.d.ts +3 -0
- package/es/locales/fr-FR.d.ts +3 -0
- package/es/locales/id-ID.d.ts +3 -0
- package/es/locales/ja-JP.d.ts +3 -0
- package/es/locales/kk-KZ.d.ts +3 -0
- package/es/locales/ko-KR.d.ts +3 -0
- package/es/locales/ko-KR.js +31 -2
- package/es/locales/zh-CN.d.ts +3 -0
- package/es/locales/zh-CN.js +3 -0
- package/es/locales/zh-HK.d.ts +3 -0
- package/es/locales/zh-TW.d.ts +3 -0
- package/es/utils/reduce-and-restore-motion.js +7 -6
- package/es/utils/render-imperatively.js +9 -3
- package/package.json +2 -2
- package/umd/antd-mobile.js +1 -1
- package/umd/antd-mobile.js.LICENSE.txt +5 -4
|
@@ -8,6 +8,18 @@ if (canUseDom$2) {
|
|
|
8
8
|
document.addEventListener("touchstart", () => {
|
|
9
9
|
}, true);
|
|
10
10
|
}
|
|
11
|
+
var __assign = function() {
|
|
12
|
+
__assign = Object.assign || function __assign2(t) {
|
|
13
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
14
|
+
s = arguments[i];
|
|
15
|
+
for (var p in s)
|
|
16
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
17
|
+
t[p] = s[p];
|
|
18
|
+
}
|
|
19
|
+
return t;
|
|
20
|
+
};
|
|
21
|
+
return __assign.apply(this, arguments);
|
|
22
|
+
};
|
|
11
23
|
function __rest(s, e) {
|
|
12
24
|
var t = {};
|
|
13
25
|
for (var p in s)
|
|
@@ -47,6 +59,128 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
47
59
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
60
|
});
|
|
49
61
|
}
|
|
62
|
+
function __generator(thisArg, body) {
|
|
63
|
+
var _ = { label: 0, sent: function() {
|
|
64
|
+
if (t[0] & 1)
|
|
65
|
+
throw t[1];
|
|
66
|
+
return t[1];
|
|
67
|
+
}, trys: [], ops: [] }, f, y, t, g;
|
|
68
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
69
|
+
return this;
|
|
70
|
+
}), g;
|
|
71
|
+
function verb(n) {
|
|
72
|
+
return function(v) {
|
|
73
|
+
return step([n, v]);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function step(op) {
|
|
77
|
+
if (f)
|
|
78
|
+
throw new TypeError("Generator is already executing.");
|
|
79
|
+
while (g && (g = 0, op[0] && (_ = 0)), _)
|
|
80
|
+
try {
|
|
81
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
82
|
+
return t;
|
|
83
|
+
if (y = 0, t)
|
|
84
|
+
op = [op[0] & 2, t.value];
|
|
85
|
+
switch (op[0]) {
|
|
86
|
+
case 0:
|
|
87
|
+
case 1:
|
|
88
|
+
t = op;
|
|
89
|
+
break;
|
|
90
|
+
case 4:
|
|
91
|
+
_.label++;
|
|
92
|
+
return { value: op[1], done: false };
|
|
93
|
+
case 5:
|
|
94
|
+
_.label++;
|
|
95
|
+
y = op[1];
|
|
96
|
+
op = [0];
|
|
97
|
+
continue;
|
|
98
|
+
case 7:
|
|
99
|
+
op = _.ops.pop();
|
|
100
|
+
_.trys.pop();
|
|
101
|
+
continue;
|
|
102
|
+
default:
|
|
103
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
104
|
+
_ = 0;
|
|
105
|
+
continue;
|
|
106
|
+
}
|
|
107
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
108
|
+
_.label = op[1];
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
112
|
+
_.label = t[1];
|
|
113
|
+
t = op;
|
|
114
|
+
break;
|
|
115
|
+
}
|
|
116
|
+
if (t && _.label < t[2]) {
|
|
117
|
+
_.label = t[2];
|
|
118
|
+
_.ops.push(op);
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
if (t[2])
|
|
122
|
+
_.ops.pop();
|
|
123
|
+
_.trys.pop();
|
|
124
|
+
continue;
|
|
125
|
+
}
|
|
126
|
+
op = body.call(thisArg, _);
|
|
127
|
+
} catch (e) {
|
|
128
|
+
op = [6, e];
|
|
129
|
+
y = 0;
|
|
130
|
+
} finally {
|
|
131
|
+
f = t = 0;
|
|
132
|
+
}
|
|
133
|
+
if (op[0] & 5)
|
|
134
|
+
throw op[1];
|
|
135
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
function __values(o) {
|
|
139
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
140
|
+
if (m)
|
|
141
|
+
return m.call(o);
|
|
142
|
+
if (o && typeof o.length === "number")
|
|
143
|
+
return {
|
|
144
|
+
next: function() {
|
|
145
|
+
if (o && i >= o.length)
|
|
146
|
+
o = void 0;
|
|
147
|
+
return { value: o && o[i++], done: !o };
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
151
|
+
}
|
|
152
|
+
function __read(o, n) {
|
|
153
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
154
|
+
if (!m)
|
|
155
|
+
return o;
|
|
156
|
+
var i = m.call(o), r, ar = [], e;
|
|
157
|
+
try {
|
|
158
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
159
|
+
ar.push(r.value);
|
|
160
|
+
} catch (error) {
|
|
161
|
+
e = { error };
|
|
162
|
+
} finally {
|
|
163
|
+
try {
|
|
164
|
+
if (r && !r.done && (m = i["return"]))
|
|
165
|
+
m.call(i);
|
|
166
|
+
} finally {
|
|
167
|
+
if (e)
|
|
168
|
+
throw e.error;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
return ar;
|
|
172
|
+
}
|
|
173
|
+
function __spreadArray(to2, from, pack) {
|
|
174
|
+
if (pack || arguments.length === 2)
|
|
175
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
176
|
+
if (ar || !(i in from)) {
|
|
177
|
+
if (!ar)
|
|
178
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
179
|
+
ar[i] = from[i];
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
return to2.concat(ar || Array.prototype.slice.call(from));
|
|
183
|
+
}
|
|
50
184
|
function mergeLocale(base2, patch) {
|
|
51
185
|
function merge2(a, b) {
|
|
52
186
|
if (typeof a !== "object" || typeof b !== "object" || Array.isArray(a) || Array.isArray(b)) {
|
|
@@ -191,6 +325,9 @@ const base = {
|
|
|
191
325
|
},
|
|
192
326
|
Switch: {
|
|
193
327
|
name: "Switch"
|
|
328
|
+
},
|
|
329
|
+
Selector: {
|
|
330
|
+
name: "Selector"
|
|
194
331
|
}
|
|
195
332
|
};
|
|
196
333
|
const typeTemplate$1 = "${label}\u4E0D\u662F\u4E00\u4E2A\u6709\u6548\u7684${type}";
|
|
@@ -322,6 +459,9 @@ const zhCN = mergeLocale(base, {
|
|
|
322
459
|
},
|
|
323
460
|
Switch: {
|
|
324
461
|
name: "\u5F00\u5173"
|
|
462
|
+
},
|
|
463
|
+
Selector: {
|
|
464
|
+
name: "\u9009\u62E9\u7EC4"
|
|
325
465
|
}
|
|
326
466
|
});
|
|
327
467
|
const zhCN$1 = zhCN;
|
|
@@ -884,36 +1024,48 @@ function mergeProps(...items) {
|
|
|
884
1024
|
return ret;
|
|
885
1025
|
}
|
|
886
1026
|
const popup = "";
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
isMounted.current
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
1027
|
+
var createUpdateEffect = function(hook) {
|
|
1028
|
+
return function(effect, deps) {
|
|
1029
|
+
var isMounted = useRef(false);
|
|
1030
|
+
hook(function() {
|
|
1031
|
+
return function() {
|
|
1032
|
+
isMounted.current = false;
|
|
1033
|
+
};
|
|
1034
|
+
}, []);
|
|
1035
|
+
hook(function() {
|
|
1036
|
+
if (!isMounted.current) {
|
|
1037
|
+
isMounted.current = true;
|
|
1038
|
+
} else {
|
|
1039
|
+
return effect();
|
|
1040
|
+
}
|
|
1041
|
+
}, deps);
|
|
1042
|
+
};
|
|
901
1043
|
};
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
1044
|
+
var isFunction$1 = function(value) {
|
|
1045
|
+
return typeof value === "function";
|
|
1046
|
+
};
|
|
1047
|
+
var isNumber = function(value) {
|
|
1048
|
+
return typeof value === "number";
|
|
1049
|
+
};
|
|
1050
|
+
var isDev$1 = true;
|
|
905
1051
|
const isDev$2 = isDev$1;
|
|
906
1052
|
function useMemoizedFn(fn) {
|
|
907
1053
|
if (isDev$2) {
|
|
908
1054
|
if (!isFunction$1(fn)) {
|
|
909
|
-
console.error(
|
|
1055
|
+
console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof fn));
|
|
910
1056
|
}
|
|
911
1057
|
}
|
|
912
|
-
|
|
913
|
-
fnRef.current = useMemo(()
|
|
914
|
-
|
|
1058
|
+
var fnRef = useRef(fn);
|
|
1059
|
+
fnRef.current = useMemo(function() {
|
|
1060
|
+
return fn;
|
|
1061
|
+
}, [fn]);
|
|
1062
|
+
var memoizedFn = useRef();
|
|
915
1063
|
if (!memoizedFn.current) {
|
|
916
|
-
memoizedFn.current = function(
|
|
1064
|
+
memoizedFn.current = function() {
|
|
1065
|
+
var args = [];
|
|
1066
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1067
|
+
args[_i] = arguments[_i];
|
|
1068
|
+
}
|
|
917
1069
|
return fnRef.current.apply(this, args);
|
|
918
1070
|
};
|
|
919
1071
|
}
|
|
@@ -923,26 +1075,28 @@ const useUpdateEffect = createUpdateEffect(useEffect);
|
|
|
923
1075
|
function depsAreSame(oldDeps, deps) {
|
|
924
1076
|
if (oldDeps === deps)
|
|
925
1077
|
return true;
|
|
926
|
-
for (
|
|
1078
|
+
for (var i = 0; i < oldDeps.length; i++) {
|
|
927
1079
|
if (!Object.is(oldDeps[i], deps[i]))
|
|
928
1080
|
return false;
|
|
929
1081
|
}
|
|
930
1082
|
return true;
|
|
931
1083
|
}
|
|
932
1084
|
function useLatest(value) {
|
|
933
|
-
|
|
1085
|
+
var ref = useRef(value);
|
|
934
1086
|
ref.current = value;
|
|
935
1087
|
return ref;
|
|
936
1088
|
}
|
|
937
|
-
|
|
1089
|
+
var useUnmount = function(fn) {
|
|
938
1090
|
if (isDev$2) {
|
|
939
1091
|
if (!isFunction$1(fn)) {
|
|
940
|
-
console.error(
|
|
1092
|
+
console.error("useUnmount expected parameter is a function, got ".concat(typeof fn));
|
|
941
1093
|
}
|
|
942
1094
|
}
|
|
943
|
-
|
|
944
|
-
useEffect(()
|
|
945
|
-
|
|
1095
|
+
var fnRef = useLatest(fn);
|
|
1096
|
+
useEffect(function() {
|
|
1097
|
+
return function() {
|
|
1098
|
+
fnRef.current();
|
|
1099
|
+
};
|
|
946
1100
|
}, []);
|
|
947
1101
|
};
|
|
948
1102
|
const useUnmount$1 = useUnmount;
|
|
@@ -1081,7 +1235,7 @@ function debounce$1(func, wait, options) {
|
|
|
1081
1235
|
return debounced;
|
|
1082
1236
|
}
|
|
1083
1237
|
var debounce_1 = debounce$1;
|
|
1084
|
-
|
|
1238
|
+
var isBrowser$2 = !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
1085
1239
|
const isBrowser$3 = isBrowser$2;
|
|
1086
1240
|
var debounce = debounce_1, isObject$5 = isObject_1;
|
|
1087
1241
|
var FUNC_ERROR_TEXT$1 = "Expected a function";
|
|
@@ -1101,20 +1255,22 @@ function throttle$1(func, wait, options) {
|
|
|
1101
1255
|
});
|
|
1102
1256
|
}
|
|
1103
1257
|
var throttle_1 = throttle$1;
|
|
1104
|
-
|
|
1258
|
+
var useMount = function(fn) {
|
|
1105
1259
|
if (isDev$2) {
|
|
1106
1260
|
if (!isFunction$1(fn)) {
|
|
1107
|
-
console.error(
|
|
1261
|
+
console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof fn, '".'));
|
|
1108
1262
|
}
|
|
1109
1263
|
}
|
|
1110
|
-
useEffect(()
|
|
1264
|
+
useEffect(function() {
|
|
1111
1265
|
fn === null || fn === void 0 ? void 0 : fn();
|
|
1112
1266
|
}, []);
|
|
1113
1267
|
};
|
|
1114
1268
|
const useMount$1 = useMount;
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
return useCallback(()
|
|
1269
|
+
var useUpdate = function() {
|
|
1270
|
+
var _a = __read(useState$1({}), 2), setState = _a[1];
|
|
1271
|
+
return useCallback(function() {
|
|
1272
|
+
return setState({});
|
|
1273
|
+
}, []);
|
|
1118
1274
|
};
|
|
1119
1275
|
const useUpdate$1 = useUpdate;
|
|
1120
1276
|
function getTargetElement(target, defaultElement) {
|
|
@@ -1124,7 +1280,7 @@ function getTargetElement(target, defaultElement) {
|
|
|
1124
1280
|
if (!target) {
|
|
1125
1281
|
return defaultElement;
|
|
1126
1282
|
}
|
|
1127
|
-
|
|
1283
|
+
var targetElement;
|
|
1128
1284
|
if (isFunction$1(target)) {
|
|
1129
1285
|
targetElement = target();
|
|
1130
1286
|
} else if ("current" in target) {
|
|
@@ -1134,42 +1290,44 @@ function getTargetElement(target, defaultElement) {
|
|
|
1134
1290
|
}
|
|
1135
1291
|
return targetElement;
|
|
1136
1292
|
}
|
|
1137
|
-
|
|
1138
|
-
return targets.every((item)
|
|
1139
|
-
|
|
1293
|
+
var checkIfAllInShadow = function(targets) {
|
|
1294
|
+
return targets.every(function(item) {
|
|
1295
|
+
var targetElement = getTargetElement(item);
|
|
1140
1296
|
if (!targetElement)
|
|
1141
1297
|
return false;
|
|
1142
1298
|
if (targetElement.getRootNode() instanceof ShadowRoot)
|
|
1143
1299
|
return true;
|
|
1144
1300
|
});
|
|
1145
1301
|
};
|
|
1146
|
-
|
|
1302
|
+
var getShadow = function(node) {
|
|
1147
1303
|
if (!node) {
|
|
1148
1304
|
return document;
|
|
1149
1305
|
}
|
|
1150
1306
|
return node.getRootNode();
|
|
1151
1307
|
};
|
|
1152
|
-
|
|
1308
|
+
var getDocumentOrShadow = function(target) {
|
|
1153
1309
|
if (!target || !document.getRootNode) {
|
|
1154
1310
|
return document;
|
|
1155
1311
|
}
|
|
1156
|
-
|
|
1312
|
+
var targets = Array.isArray(target) ? target : [target];
|
|
1157
1313
|
if (checkIfAllInShadow(targets)) {
|
|
1158
1314
|
return getShadow(getTargetElement(targets[0]));
|
|
1159
1315
|
}
|
|
1160
1316
|
return document;
|
|
1161
1317
|
};
|
|
1162
1318
|
const getDocumentOrShadow$1 = getDocumentOrShadow;
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
useEffectType(()
|
|
1319
|
+
var createEffectWithTarget = function(useEffectType) {
|
|
1320
|
+
var useEffectWithTarget2 = function(effect, deps, target) {
|
|
1321
|
+
var hasInitRef = useRef(false);
|
|
1322
|
+
var lastElementRef = useRef([]);
|
|
1323
|
+
var lastDepsRef = useRef([]);
|
|
1324
|
+
var unLoadRef = useRef();
|
|
1325
|
+
useEffectType(function() {
|
|
1170
1326
|
var _a;
|
|
1171
|
-
|
|
1172
|
-
|
|
1327
|
+
var targets = Array.isArray(target) ? target : [target];
|
|
1328
|
+
var els = targets.map(function(item) {
|
|
1329
|
+
return getTargetElement(item);
|
|
1330
|
+
});
|
|
1173
1331
|
if (!hasInitRef.current) {
|
|
1174
1332
|
hasInitRef.current = true;
|
|
1175
1333
|
lastElementRef.current = els;
|
|
@@ -1184,7 +1342,7 @@ const createEffectWithTarget = (useEffectType) => {
|
|
|
1184
1342
|
unLoadRef.current = effect();
|
|
1185
1343
|
}
|
|
1186
1344
|
});
|
|
1187
|
-
useUnmount$1(()
|
|
1345
|
+
useUnmount$1(function() {
|
|
1188
1346
|
var _a;
|
|
1189
1347
|
(_a = unLoadRef.current) === null || _a === void 0 ? void 0 : _a.call(unLoadRef);
|
|
1190
1348
|
hasInitRef.current = false;
|
|
@@ -1193,26 +1351,33 @@ const createEffectWithTarget = (useEffectType) => {
|
|
|
1193
1351
|
return useEffectWithTarget2;
|
|
1194
1352
|
};
|
|
1195
1353
|
const createEffectWithTarget$1 = createEffectWithTarget;
|
|
1196
|
-
|
|
1354
|
+
var useEffectWithTarget$1 = createEffectWithTarget$1(useEffect);
|
|
1197
1355
|
const useEffectWithTarget$2 = useEffectWithTarget$1;
|
|
1198
|
-
function useClickAway(onClickAway, target, eventName
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1356
|
+
function useClickAway(onClickAway, target, eventName) {
|
|
1357
|
+
if (eventName === void 0) {
|
|
1358
|
+
eventName = "click";
|
|
1359
|
+
}
|
|
1360
|
+
var onClickAwayRef = useLatest(onClickAway);
|
|
1361
|
+
useEffectWithTarget$2(function() {
|
|
1362
|
+
var handler = function(event) {
|
|
1363
|
+
var targets = Array.isArray(target) ? target : [target];
|
|
1364
|
+
if (targets.some(function(item) {
|
|
1365
|
+
var targetElement = getTargetElement(item);
|
|
1205
1366
|
return !targetElement || targetElement.contains(event.target);
|
|
1206
1367
|
})) {
|
|
1207
1368
|
return;
|
|
1208
1369
|
}
|
|
1209
1370
|
onClickAwayRef.current(event);
|
|
1210
1371
|
};
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
eventNames.forEach((event)
|
|
1214
|
-
|
|
1215
|
-
|
|
1372
|
+
var documentOrShadow = getDocumentOrShadow$1(target);
|
|
1373
|
+
var eventNames = Array.isArray(eventName) ? eventName : [eventName];
|
|
1374
|
+
eventNames.forEach(function(event) {
|
|
1375
|
+
return documentOrShadow.addEventListener(event, handler);
|
|
1376
|
+
});
|
|
1377
|
+
return function() {
|
|
1378
|
+
eventNames.forEach(function(event) {
|
|
1379
|
+
return documentOrShadow.removeEventListener(event, handler);
|
|
1380
|
+
});
|
|
1216
1381
|
};
|
|
1217
1382
|
}, Array.isArray(eventName) ? eventName : [eventName], target);
|
|
1218
1383
|
}
|
|
@@ -1429,15 +1594,21 @@ function useDebounceFn(fn, options) {
|
|
|
1429
1594
|
var _a;
|
|
1430
1595
|
if (isDev$2) {
|
|
1431
1596
|
if (!isFunction$1(fn)) {
|
|
1432
|
-
console.error(
|
|
1597
|
+
console.error("useDebounceFn expected parameter is a function, got ".concat(typeof fn));
|
|
1433
1598
|
}
|
|
1434
1599
|
}
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
return
|
|
1439
|
-
|
|
1440
|
-
|
|
1600
|
+
var fnRef = useLatest(fn);
|
|
1601
|
+
var wait = (_a = options === null || options === void 0 ? void 0 : options.wait) !== null && _a !== void 0 ? _a : 1e3;
|
|
1602
|
+
var debounced = useMemo(function() {
|
|
1603
|
+
return debounce_1(function() {
|
|
1604
|
+
var args = [];
|
|
1605
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1606
|
+
args[_i] = arguments[_i];
|
|
1607
|
+
}
|
|
1608
|
+
return fnRef.current.apply(fnRef, __spreadArray([], __read(args), false));
|
|
1609
|
+
}, wait, options);
|
|
1610
|
+
}, []);
|
|
1611
|
+
useUnmount$1(function() {
|
|
1441
1612
|
debounced.cancel();
|
|
1442
1613
|
});
|
|
1443
1614
|
return {
|
|
@@ -1447,13 +1618,11 @@ function useDebounceFn(fn, options) {
|
|
|
1447
1618
|
};
|
|
1448
1619
|
}
|
|
1449
1620
|
function useDebounceEffect(effect, deps, options) {
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
run
|
|
1453
|
-
} = useDebounceFn(() => {
|
|
1621
|
+
var _a = __read(useState$1({}), 2), flag = _a[0], setFlag = _a[1];
|
|
1622
|
+
var run = useDebounceFn(function() {
|
|
1454
1623
|
setFlag({});
|
|
1455
|
-
}, options);
|
|
1456
|
-
useEffect(()
|
|
1624
|
+
}, options).run;
|
|
1625
|
+
useEffect(function() {
|
|
1457
1626
|
return run();
|
|
1458
1627
|
}, deps);
|
|
1459
1628
|
useUpdateEffect(effect, [flag]);
|
|
@@ -2575,65 +2744,100 @@ var isEqual_1 = isEqual$1;
|
|
|
2575
2744
|
window.IntersectionObserverEntry = IntersectionObserverEntry;
|
|
2576
2745
|
})();
|
|
2577
2746
|
function useInViewport(target, options) {
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
useEffectWithTarget$2(()
|
|
2581
|
-
|
|
2747
|
+
var _a = __read(useState$1(), 2), state = _a[0], setState = _a[1];
|
|
2748
|
+
var _b = __read(useState$1(), 2), ratio = _b[0], setRatio = _b[1];
|
|
2749
|
+
useEffectWithTarget$2(function() {
|
|
2750
|
+
var el = getTargetElement(target);
|
|
2582
2751
|
if (!el) {
|
|
2583
2752
|
return;
|
|
2584
2753
|
}
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2754
|
+
var observer = new IntersectionObserver(function(entries) {
|
|
2755
|
+
var e_1, _a2;
|
|
2756
|
+
try {
|
|
2757
|
+
for (var entries_1 = __values(entries), entries_1_1 = entries_1.next(); !entries_1_1.done; entries_1_1 = entries_1.next()) {
|
|
2758
|
+
var entry = entries_1_1.value;
|
|
2759
|
+
setRatio(entry.intersectionRatio);
|
|
2760
|
+
setState(entry.isIntersecting);
|
|
2761
|
+
}
|
|
2762
|
+
} catch (e_1_1) {
|
|
2763
|
+
e_1 = {
|
|
2764
|
+
error: e_1_1
|
|
2765
|
+
};
|
|
2766
|
+
} finally {
|
|
2767
|
+
try {
|
|
2768
|
+
if (entries_1_1 && !entries_1_1.done && (_a2 = entries_1.return))
|
|
2769
|
+
_a2.call(entries_1);
|
|
2770
|
+
} finally {
|
|
2771
|
+
if (e_1)
|
|
2772
|
+
throw e_1.error;
|
|
2773
|
+
}
|
|
2589
2774
|
}
|
|
2590
|
-
},
|
|
2775
|
+
}, __assign(__assign({}, options), {
|
|
2591
2776
|
root: getTargetElement(options === null || options === void 0 ? void 0 : options.root)
|
|
2592
2777
|
}));
|
|
2593
2778
|
observer.observe(el);
|
|
2594
|
-
return ()
|
|
2779
|
+
return function() {
|
|
2595
2780
|
observer.disconnect();
|
|
2596
2781
|
};
|
|
2597
2782
|
}, [options === null || options === void 0 ? void 0 : options.rootMargin, options === null || options === void 0 ? void 0 : options.threshold], target);
|
|
2598
2783
|
return [state, ratio];
|
|
2599
2784
|
}
|
|
2600
|
-
|
|
2785
|
+
var useIsomorphicLayoutEffect$1 = isBrowser$3 ? useLayoutEffect$2 : useEffect;
|
|
2601
2786
|
const useIsomorphicLayoutEffect$2 = useIsomorphicLayoutEffect$1;
|
|
2602
2787
|
function useLockFn(fn) {
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2788
|
+
var _this = this;
|
|
2789
|
+
var lockRef = useRef(false);
|
|
2790
|
+
return useCallback(function() {
|
|
2791
|
+
var args = [];
|
|
2792
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
2793
|
+
args[_i] = arguments[_i];
|
|
2794
|
+
}
|
|
2795
|
+
return __awaiter(_this, void 0, void 0, function() {
|
|
2796
|
+
var ret, e_1;
|
|
2797
|
+
return __generator(this, function(_a) {
|
|
2798
|
+
switch (_a.label) {
|
|
2799
|
+
case 0:
|
|
2800
|
+
if (lockRef.current)
|
|
2801
|
+
return [2];
|
|
2802
|
+
lockRef.current = true;
|
|
2803
|
+
_a.label = 1;
|
|
2804
|
+
case 1:
|
|
2805
|
+
_a.trys.push([1, 3, , 4]);
|
|
2806
|
+
return [4, fn.apply(void 0, __spreadArray([], __read(args), false))];
|
|
2807
|
+
case 2:
|
|
2808
|
+
ret = _a.sent();
|
|
2809
|
+
lockRef.current = false;
|
|
2810
|
+
return [2, ret];
|
|
2811
|
+
case 3:
|
|
2812
|
+
e_1 = _a.sent();
|
|
2813
|
+
lockRef.current = false;
|
|
2814
|
+
throw e_1;
|
|
2815
|
+
case 4:
|
|
2816
|
+
return [2];
|
|
2817
|
+
}
|
|
2818
|
+
});
|
|
2819
|
+
});
|
|
2820
|
+
}, [fn]);
|
|
2617
2821
|
}
|
|
2618
2822
|
function useRafState(initialState) {
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2823
|
+
var ref = useRef(0);
|
|
2824
|
+
var _a = __read(useState$1(initialState), 2), state = _a[0], setState = _a[1];
|
|
2825
|
+
var setRafState = useCallback(function(value) {
|
|
2622
2826
|
cancelAnimationFrame(ref.current);
|
|
2623
|
-
ref.current = requestAnimationFrame(()
|
|
2827
|
+
ref.current = requestAnimationFrame(function() {
|
|
2624
2828
|
setState(value);
|
|
2625
2829
|
});
|
|
2626
2830
|
}, []);
|
|
2627
|
-
useUnmount$1(()
|
|
2831
|
+
useUnmount$1(function() {
|
|
2628
2832
|
cancelAnimationFrame(ref.current);
|
|
2629
2833
|
});
|
|
2630
2834
|
return [state, setRafState];
|
|
2631
2835
|
}
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
useEffect(()
|
|
2836
|
+
var useUnmountedRef = function() {
|
|
2837
|
+
var unmountedRef = useRef(false);
|
|
2838
|
+
useEffect(function() {
|
|
2635
2839
|
unmountedRef.current = false;
|
|
2636
|
-
return ()
|
|
2840
|
+
return function() {
|
|
2637
2841
|
unmountedRef.current = true;
|
|
2638
2842
|
};
|
|
2639
2843
|
}, []);
|
|
@@ -3111,23 +3315,26 @@ var index$k = function() {
|
|
|
3111
3315
|
}
|
|
3112
3316
|
return ResizeObserver$1;
|
|
3113
3317
|
}();
|
|
3114
|
-
|
|
3318
|
+
var useEffectWithTarget = createEffectWithTarget$1(useLayoutEffect$2);
|
|
3115
3319
|
const useLayoutEffectWithTarget = useEffectWithTarget;
|
|
3116
|
-
|
|
3320
|
+
var useIsomorphicLayoutEffectWithTarget = isBrowser$3 ? useLayoutEffectWithTarget : useEffectWithTarget$2;
|
|
3117
3321
|
const useIsomorphicLayoutEffectWithTarget$1 = useIsomorphicLayoutEffectWithTarget;
|
|
3118
3322
|
function useSize(target) {
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3323
|
+
var _a = __read(useRafState(function() {
|
|
3324
|
+
var el = getTargetElement(target);
|
|
3325
|
+
return el ? {
|
|
3326
|
+
width: el.clientWidth,
|
|
3327
|
+
height: el.clientHeight
|
|
3328
|
+
} : void 0;
|
|
3329
|
+
}), 2), state = _a[0], setState = _a[1];
|
|
3330
|
+
useIsomorphicLayoutEffectWithTarget$1(function() {
|
|
3331
|
+
var el = getTargetElement(target);
|
|
3122
3332
|
if (!el) {
|
|
3123
3333
|
return;
|
|
3124
3334
|
}
|
|
3125
|
-
|
|
3126
|
-
entries.forEach((entry)
|
|
3127
|
-
|
|
3128
|
-
clientWidth,
|
|
3129
|
-
clientHeight
|
|
3130
|
-
} = entry.target;
|
|
3335
|
+
var resizeObserver = new index$k(function(entries) {
|
|
3336
|
+
entries.forEach(function(entry) {
|
|
3337
|
+
var _a2 = entry.target, clientWidth = _a2.clientWidth, clientHeight = _a2.clientHeight;
|
|
3131
3338
|
setState({
|
|
3132
3339
|
width: clientWidth,
|
|
3133
3340
|
height: clientHeight
|
|
@@ -3135,7 +3342,7 @@ function useSize(target) {
|
|
|
3135
3342
|
});
|
|
3136
3343
|
});
|
|
3137
3344
|
resizeObserver.observe(el);
|
|
3138
|
-
return ()
|
|
3345
|
+
return function() {
|
|
3139
3346
|
resizeObserver.disconnect();
|
|
3140
3347
|
};
|
|
3141
3348
|
}, [], target);
|
|
@@ -3145,15 +3352,21 @@ function useThrottleFn(fn, options) {
|
|
|
3145
3352
|
var _a;
|
|
3146
3353
|
if (isDev$2) {
|
|
3147
3354
|
if (!isFunction$1(fn)) {
|
|
3148
|
-
console.error(
|
|
3355
|
+
console.error("useThrottleFn expected parameter is a function, got ".concat(typeof fn));
|
|
3149
3356
|
}
|
|
3150
3357
|
}
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
return
|
|
3155
|
-
|
|
3156
|
-
|
|
3358
|
+
var fnRef = useLatest(fn);
|
|
3359
|
+
var wait = (_a = options === null || options === void 0 ? void 0 : options.wait) !== null && _a !== void 0 ? _a : 1e3;
|
|
3360
|
+
var throttled = useMemo(function() {
|
|
3361
|
+
return throttle_1(function() {
|
|
3362
|
+
var args = [];
|
|
3363
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
3364
|
+
args[_i] = arguments[_i];
|
|
3365
|
+
}
|
|
3366
|
+
return fnRef.current.apply(fnRef, __spreadArray([], __read(args), false));
|
|
3367
|
+
}, wait, options);
|
|
3368
|
+
}, []);
|
|
3369
|
+
useUnmount$1(function() {
|
|
3157
3370
|
throttled.cancel();
|
|
3158
3371
|
});
|
|
3159
3372
|
return {
|
|
@@ -3162,29 +3375,24 @@ function useThrottleFn(fn, options) {
|
|
|
3162
3375
|
flush: throttled.flush
|
|
3163
3376
|
};
|
|
3164
3377
|
}
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
if (!isNumber(delay) || delay < 0) {
|
|
3170
|
-
return;
|
|
3171
|
-
}
|
|
3172
|
-
timerRef.current = setTimeout(() => {
|
|
3173
|
-
fnRef.current();
|
|
3174
|
-
}, delay);
|
|
3175
|
-
return () => {
|
|
3176
|
-
if (timerRef.current) {
|
|
3177
|
-
clearTimeout(timerRef.current);
|
|
3178
|
-
}
|
|
3179
|
-
};
|
|
3180
|
-
}, [delay]);
|
|
3181
|
-
const clear2 = useCallback(() => {
|
|
3378
|
+
var useTimeout = function(fn, delay) {
|
|
3379
|
+
var timerCallback = useMemoizedFn(fn);
|
|
3380
|
+
var timerRef = useRef(null);
|
|
3381
|
+
var clear2 = useCallback(function() {
|
|
3182
3382
|
if (timerRef.current) {
|
|
3183
3383
|
clearTimeout(timerRef.current);
|
|
3184
3384
|
}
|
|
3185
3385
|
}, []);
|
|
3386
|
+
useEffect(function() {
|
|
3387
|
+
if (!isNumber(delay) || delay < 0) {
|
|
3388
|
+
return;
|
|
3389
|
+
}
|
|
3390
|
+
timerRef.current = setTimeout(timerCallback, delay);
|
|
3391
|
+
return clear2;
|
|
3392
|
+
}, [delay]);
|
|
3186
3393
|
return clear2;
|
|
3187
|
-
}
|
|
3394
|
+
};
|
|
3395
|
+
const useTimeout$1 = useTimeout;
|
|
3188
3396
|
const mask = "";
|
|
3189
3397
|
const MIN_DISTANCE = 10;
|
|
3190
3398
|
function getDirection(x, y) {
|
|
@@ -7505,10 +7713,14 @@ function renderImperatively(element) {
|
|
|
7505
7713
|
ref: wrapperRef
|
|
7506
7714
|
}));
|
|
7507
7715
|
return {
|
|
7508
|
-
close: () => {
|
|
7716
|
+
close: () => __awaiter(this, void 0, void 0, function* () {
|
|
7509
7717
|
var _a;
|
|
7510
|
-
(
|
|
7511
|
-
|
|
7718
|
+
if (!wrapperRef.current) {
|
|
7719
|
+
unmount2();
|
|
7720
|
+
} else {
|
|
7721
|
+
(_a = wrapperRef.current) === null || _a === void 0 ? void 0 : _a.close();
|
|
7722
|
+
}
|
|
7723
|
+
}),
|
|
7512
7724
|
replace: (element2) => {
|
|
7513
7725
|
var _a;
|
|
7514
7726
|
(_a = wrapperRef.current) === null || _a === void 0 ? void 0 : _a.replace(element2);
|
|
@@ -7565,13 +7777,17 @@ const ActionSheet = (p) => {
|
|
|
7565
7777
|
if (props.closeOnAction) {
|
|
7566
7778
|
(_c = props.onClose) === null || _c === void 0 ? void 0 : _c.call(props);
|
|
7567
7779
|
}
|
|
7568
|
-
}
|
|
7780
|
+
},
|
|
7781
|
+
role: "option",
|
|
7782
|
+
"aria-disabled": action.disabled
|
|
7569
7783
|
}, React__default.createElement("div", {
|
|
7570
7784
|
className: `${classPrefix$1i}-button-item-name`
|
|
7571
7785
|
}, action.text), action.description && React__default.createElement("div", {
|
|
7572
7786
|
className: `${classPrefix$1i}-button-item-description`
|
|
7573
7787
|
}, action.description))))), props.cancelText && React__default.createElement("div", {
|
|
7574
|
-
className: `${classPrefix$1i}-cancel
|
|
7788
|
+
className: `${classPrefix$1i}-cancel`,
|
|
7789
|
+
role: "option",
|
|
7790
|
+
"aria-label": props.cancelText
|
|
7575
7791
|
}, React__default.createElement("div", {
|
|
7576
7792
|
className: `${classPrefix$1i}-button-item-wrapper`
|
|
7577
7793
|
}, React__default.createElement("a", {
|
|
@@ -7796,7 +8012,8 @@ const Avatar$1 = (p) => {
|
|
|
7796
8012
|
lazy: props.lazy,
|
|
7797
8013
|
fit: props.fit,
|
|
7798
8014
|
onClick: props.onClick,
|
|
7799
|
-
onError: props.onError
|
|
8015
|
+
onError: props.onError,
|
|
8016
|
+
onLoad: props.onLoad
|
|
7800
8017
|
}));
|
|
7801
8018
|
};
|
|
7802
8019
|
const Avatar = Avatar$1;
|
|
@@ -8435,9 +8652,10 @@ const ScrollMask$1 = (props) => {
|
|
|
8435
8652
|
}));
|
|
8436
8653
|
};
|
|
8437
8654
|
const ScrollMask = ScrollMask$1;
|
|
8438
|
-
var
|
|
8655
|
+
var _reactIs_18_2_0_reactIs = { exports: {} };
|
|
8439
8656
|
var reactIs_development$1 = {};
|
|
8440
|
-
/**
|
|
8657
|
+
/**
|
|
8658
|
+
* @license React
|
|
8441
8659
|
* react-is.development.js
|
|
8442
8660
|
*
|
|
8443
8661
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -8447,56 +8665,38 @@ var reactIs_development$1 = {};
|
|
|
8447
8665
|
*/
|
|
8448
8666
|
{
|
|
8449
8667
|
(function() {
|
|
8450
|
-
var REACT_ELEMENT_TYPE =
|
|
8451
|
-
var REACT_PORTAL_TYPE =
|
|
8452
|
-
var REACT_FRAGMENT_TYPE =
|
|
8453
|
-
var REACT_STRICT_MODE_TYPE =
|
|
8454
|
-
var REACT_PROFILER_TYPE =
|
|
8455
|
-
var REACT_PROVIDER_TYPE =
|
|
8456
|
-
var REACT_CONTEXT_TYPE =
|
|
8457
|
-
var
|
|
8458
|
-
var
|
|
8459
|
-
var
|
|
8460
|
-
var
|
|
8461
|
-
var
|
|
8462
|
-
var
|
|
8463
|
-
var
|
|
8464
|
-
var REACT_FUNDAMENTAL_TYPE = 60117;
|
|
8465
|
-
var REACT_DEBUG_TRACING_MODE_TYPE = 60129;
|
|
8466
|
-
var REACT_LEGACY_HIDDEN_TYPE = 60131;
|
|
8467
|
-
if (typeof Symbol === "function" && Symbol.for) {
|
|
8468
|
-
var symbolFor = Symbol.for;
|
|
8469
|
-
REACT_ELEMENT_TYPE = symbolFor("react.element");
|
|
8470
|
-
REACT_PORTAL_TYPE = symbolFor("react.portal");
|
|
8471
|
-
REACT_FRAGMENT_TYPE = symbolFor("react.fragment");
|
|
8472
|
-
REACT_STRICT_MODE_TYPE = symbolFor("react.strict_mode");
|
|
8473
|
-
REACT_PROFILER_TYPE = symbolFor("react.profiler");
|
|
8474
|
-
REACT_PROVIDER_TYPE = symbolFor("react.provider");
|
|
8475
|
-
REACT_CONTEXT_TYPE = symbolFor("react.context");
|
|
8476
|
-
REACT_FORWARD_REF_TYPE = symbolFor("react.forward_ref");
|
|
8477
|
-
REACT_SUSPENSE_TYPE = symbolFor("react.suspense");
|
|
8478
|
-
REACT_SUSPENSE_LIST_TYPE = symbolFor("react.suspense_list");
|
|
8479
|
-
REACT_MEMO_TYPE = symbolFor("react.memo");
|
|
8480
|
-
REACT_LAZY_TYPE = symbolFor("react.lazy");
|
|
8481
|
-
REACT_BLOCK_TYPE = symbolFor("react.block");
|
|
8482
|
-
REACT_SERVER_BLOCK_TYPE = symbolFor("react.server.block");
|
|
8483
|
-
REACT_FUNDAMENTAL_TYPE = symbolFor("react.fundamental");
|
|
8484
|
-
symbolFor("react.scope");
|
|
8485
|
-
symbolFor("react.opaque.id");
|
|
8486
|
-
REACT_DEBUG_TRACING_MODE_TYPE = symbolFor("react.debug_trace_mode");
|
|
8487
|
-
symbolFor("react.offscreen");
|
|
8488
|
-
REACT_LEGACY_HIDDEN_TYPE = symbolFor("react.legacy_hidden");
|
|
8489
|
-
}
|
|
8668
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
8669
|
+
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
8670
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
8671
|
+
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
8672
|
+
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
8673
|
+
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
8674
|
+
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
8675
|
+
var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context");
|
|
8676
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
8677
|
+
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
8678
|
+
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
8679
|
+
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
8680
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
8681
|
+
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
|
8490
8682
|
var enableScopeAPI = false;
|
|
8683
|
+
var enableCacheElement = false;
|
|
8684
|
+
var enableTransitionTracing = false;
|
|
8685
|
+
var enableLegacyHidden = false;
|
|
8686
|
+
var enableDebugTracing = false;
|
|
8687
|
+
var REACT_MODULE_REFERENCE;
|
|
8688
|
+
{
|
|
8689
|
+
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
8690
|
+
}
|
|
8491
8691
|
function isValidElementType(type4) {
|
|
8492
8692
|
if (typeof type4 === "string" || typeof type4 === "function") {
|
|
8493
8693
|
return true;
|
|
8494
8694
|
}
|
|
8495
|
-
if (type4 === REACT_FRAGMENT_TYPE || type4 === REACT_PROFILER_TYPE ||
|
|
8695
|
+
if (type4 === REACT_FRAGMENT_TYPE || type4 === REACT_PROFILER_TYPE || enableDebugTracing || type4 === REACT_STRICT_MODE_TYPE || type4 === REACT_SUSPENSE_TYPE || type4 === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type4 === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
|
|
8496
8696
|
return true;
|
|
8497
8697
|
}
|
|
8498
8698
|
if (typeof type4 === "object" && type4 !== null) {
|
|
8499
|
-
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 || type4.$$typeof ===
|
|
8699
|
+
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 || type4.$$typeof === REACT_MODULE_REFERENCE || type4.getModuleId !== void 0) {
|
|
8500
8700
|
return true;
|
|
8501
8701
|
}
|
|
8502
8702
|
}
|
|
@@ -8518,6 +8718,7 @@ var reactIs_development$1 = {};
|
|
|
8518
8718
|
default:
|
|
8519
8719
|
var $$typeofType = type4 && type4.$$typeof;
|
|
8520
8720
|
switch ($$typeofType) {
|
|
8721
|
+
case REACT_SERVER_CONTEXT_TYPE:
|
|
8521
8722
|
case REACT_CONTEXT_TYPE:
|
|
8522
8723
|
case REACT_FORWARD_REF_TYPE:
|
|
8523
8724
|
case REACT_LAZY_TYPE:
|
|
@@ -8545,6 +8746,7 @@ var reactIs_development$1 = {};
|
|
|
8545
8746
|
var Profiler = REACT_PROFILER_TYPE;
|
|
8546
8747
|
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
8547
8748
|
var Suspense = REACT_SUSPENSE_TYPE;
|
|
8749
|
+
var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
8548
8750
|
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
8549
8751
|
var hasWarnedAboutDeprecatedIsConcurrentMode = false;
|
|
8550
8752
|
function isAsyncMode(object4) {
|
|
@@ -8598,6 +8800,9 @@ var reactIs_development$1 = {};
|
|
|
8598
8800
|
function isSuspense(object4) {
|
|
8599
8801
|
return typeOf(object4) === REACT_SUSPENSE_TYPE;
|
|
8600
8802
|
}
|
|
8803
|
+
function isSuspenseList(object4) {
|
|
8804
|
+
return typeOf(object4) === REACT_SUSPENSE_LIST_TYPE;
|
|
8805
|
+
}
|
|
8601
8806
|
reactIs_development$1.ContextConsumer = ContextConsumer;
|
|
8602
8807
|
reactIs_development$1.ContextProvider = ContextProvider;
|
|
8603
8808
|
reactIs_development$1.Element = Element2;
|
|
@@ -8609,6 +8814,7 @@ var reactIs_development$1 = {};
|
|
|
8609
8814
|
reactIs_development$1.Profiler = Profiler;
|
|
8610
8815
|
reactIs_development$1.StrictMode = StrictMode;
|
|
8611
8816
|
reactIs_development$1.Suspense = Suspense;
|
|
8817
|
+
reactIs_development$1.SuspenseList = SuspenseList;
|
|
8612
8818
|
reactIs_development$1.isAsyncMode = isAsyncMode;
|
|
8613
8819
|
reactIs_development$1.isConcurrentMode = isConcurrentMode;
|
|
8614
8820
|
reactIs_development$1.isContextConsumer = isContextConsumer;
|
|
@@ -8622,6 +8828,7 @@ var reactIs_development$1 = {};
|
|
|
8622
8828
|
reactIs_development$1.isProfiler = isProfiler;
|
|
8623
8829
|
reactIs_development$1.isStrictMode = isStrictMode;
|
|
8624
8830
|
reactIs_development$1.isSuspense = isSuspense;
|
|
8831
|
+
reactIs_development$1.isSuspenseList = isSuspenseList;
|
|
8625
8832
|
reactIs_development$1.isValidElementType = isValidElementType;
|
|
8626
8833
|
reactIs_development$1.typeOf = typeOf;
|
|
8627
8834
|
})();
|
|
@@ -8630,12 +8837,12 @@ var reactIs_development$1 = {};
|
|
|
8630
8837
|
{
|
|
8631
8838
|
module.exports = reactIs_development$1;
|
|
8632
8839
|
}
|
|
8633
|
-
})(
|
|
8840
|
+
})(_reactIs_18_2_0_reactIs);
|
|
8634
8841
|
function traverseReactNode(children, fn) {
|
|
8635
8842
|
let i = 0;
|
|
8636
8843
|
function handle(target) {
|
|
8637
8844
|
React__default.Children.forEach(target, (child) => {
|
|
8638
|
-
if (!
|
|
8845
|
+
if (!_reactIs_18_2_0_reactIs.exports.isFragment(child)) {
|
|
8639
8846
|
fn(child, i);
|
|
8640
8847
|
i += 1;
|
|
8641
8848
|
} else {
|
|
@@ -10889,7 +11096,7 @@ var useSyncExternalStoreShim_development = {};
|
|
|
10889
11096
|
var useState2 = React2.useState, useEffect2 = React2.useEffect, useLayoutEffect2 = React2.useLayoutEffect, useDebugValue = React2.useDebugValue;
|
|
10890
11097
|
var didWarnOld18Alpha = false;
|
|
10891
11098
|
var didWarnUncachedGetSnapshot = false;
|
|
10892
|
-
function useSyncExternalStore(
|
|
11099
|
+
function useSyncExternalStore(subscribe2, getSnapshot, getServerSnapshot) {
|
|
10893
11100
|
{
|
|
10894
11101
|
if (!didWarnOld18Alpha) {
|
|
10895
11102
|
if (React2.startTransition !== void 0) {
|
|
@@ -10922,7 +11129,7 @@ var useSyncExternalStoreShim_development = {};
|
|
|
10922
11129
|
inst
|
|
10923
11130
|
});
|
|
10924
11131
|
}
|
|
10925
|
-
}, [
|
|
11132
|
+
}, [subscribe2, value, getSnapshot]);
|
|
10926
11133
|
useEffect2(function() {
|
|
10927
11134
|
if (checkIfSnapshotChanged(inst)) {
|
|
10928
11135
|
forceUpdate({
|
|
@@ -10936,8 +11143,8 @@ var useSyncExternalStoreShim_development = {};
|
|
|
10936
11143
|
});
|
|
10937
11144
|
}
|
|
10938
11145
|
};
|
|
10939
|
-
return
|
|
10940
|
-
}, [
|
|
11146
|
+
return subscribe2(handleStoreChange);
|
|
11147
|
+
}, [subscribe2]);
|
|
10941
11148
|
useDebugValue(value);
|
|
10942
11149
|
return value;
|
|
10943
11150
|
}
|
|
@@ -10951,7 +11158,7 @@ var useSyncExternalStoreShim_development = {};
|
|
|
10951
11158
|
return true;
|
|
10952
11159
|
}
|
|
10953
11160
|
}
|
|
10954
|
-
function useSyncExternalStore$1(
|
|
11161
|
+
function useSyncExternalStore$1(subscribe2, getSnapshot, getServerSnapshot) {
|
|
10955
11162
|
return getSnapshot();
|
|
10956
11163
|
}
|
|
10957
11164
|
var canUseDOM = !!(typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined");
|
|
@@ -10993,13 +11200,14 @@ function restoreMotion() {
|
|
|
10993
11200
|
function isMotionReduced() {
|
|
10994
11201
|
return reduced;
|
|
10995
11202
|
}
|
|
11203
|
+
function subscribe(onStoreChange) {
|
|
11204
|
+
subscribers.add(onStoreChange);
|
|
11205
|
+
return () => {
|
|
11206
|
+
subscribers.delete(onStoreChange);
|
|
11207
|
+
};
|
|
11208
|
+
}
|
|
10996
11209
|
function useMotionReduced() {
|
|
10997
|
-
return shim.exports.useSyncExternalStore(
|
|
10998
|
-
subscribers.add(onStoreChange);
|
|
10999
|
-
return () => {
|
|
11000
|
-
subscribers.delete(onStoreChange);
|
|
11001
|
-
};
|
|
11002
|
-
}, isMotionReduced);
|
|
11210
|
+
return shim.exports.useSyncExternalStore(subscribe, isMotionReduced);
|
|
11003
11211
|
}
|
|
11004
11212
|
const classPrefix$16 = "adm-spin-loading";
|
|
11005
11213
|
const colorRecord$2 = {
|
|
@@ -11557,7 +11765,8 @@ const Tabs$1 = (p) => {
|
|
|
11557
11765
|
className: `${classPrefix$13}-tab-list`,
|
|
11558
11766
|
ref: tabListContainerRef,
|
|
11559
11767
|
scrollLeft,
|
|
11560
|
-
onScroll: updateMask
|
|
11768
|
+
onScroll: updateMask,
|
|
11769
|
+
role: "tablist"
|
|
11561
11770
|
}, React__default.createElement(animated.div, {
|
|
11562
11771
|
ref: activeLineRef,
|
|
11563
11772
|
className: `${classPrefix$13}-tab-line`,
|
|
@@ -11585,7 +11794,9 @@ const Tabs$1 = (p) => {
|
|
|
11585
11794
|
className: classNames(`${classPrefix$13}-tab`, {
|
|
11586
11795
|
[`${classPrefix$13}-tab-active`]: pane.key === activeKey,
|
|
11587
11796
|
[`${classPrefix$13}-tab-disabled`]: pane.props.disabled
|
|
11588
|
-
})
|
|
11797
|
+
}),
|
|
11798
|
+
role: "tab",
|
|
11799
|
+
"aria-selected": pane.key === activeKey
|
|
11589
11800
|
}, pane.props.title)))))), panes.map((pane) => {
|
|
11590
11801
|
if (pane.props.children === void 0) {
|
|
11591
11802
|
return null;
|
|
@@ -11685,6 +11896,7 @@ const CheckList$1 = (p) => {
|
|
|
11685
11896
|
}
|
|
11686
11897
|
const {
|
|
11687
11898
|
activeIcon,
|
|
11899
|
+
extra,
|
|
11688
11900
|
disabled,
|
|
11689
11901
|
readOnly
|
|
11690
11902
|
} = props;
|
|
@@ -11694,6 +11906,7 @@ const CheckList$1 = (p) => {
|
|
|
11694
11906
|
check,
|
|
11695
11907
|
uncheck,
|
|
11696
11908
|
activeIcon,
|
|
11909
|
+
extra,
|
|
11697
11910
|
disabled,
|
|
11698
11911
|
readOnly
|
|
11699
11912
|
}
|
|
@@ -11711,9 +11924,11 @@ const CheckListItem = (props) => {
|
|
|
11711
11924
|
}
|
|
11712
11925
|
const active = context.value.includes(props.value);
|
|
11713
11926
|
const readOnly = props.readOnly || context.readOnly;
|
|
11927
|
+
const defaultExtra = active ? context.activeIcon : null;
|
|
11928
|
+
const renderExtra = context.extra ? context.extra(active) : defaultExtra;
|
|
11714
11929
|
const extra = React__default.createElement("div", {
|
|
11715
11930
|
className: `${classPrefix$$}-extra`
|
|
11716
|
-
},
|
|
11931
|
+
}, renderExtra);
|
|
11717
11932
|
return withNativeProps(props, React__default.createElement(List$1.Item, {
|
|
11718
11933
|
title: props.title,
|
|
11719
11934
|
className: classNames(classPrefix$$, readOnly && `${classPrefix$$}-readonly`, active && `${classPrefix$$}-active`),
|
|
@@ -13504,7 +13719,7 @@ const Ellipsis$1 = (p) => {
|
|
|
13504
13719
|
setExpanded(true);
|
|
13505
13720
|
}
|
|
13506
13721
|
}, props.expandText)) : null;
|
|
13507
|
-
const collapseActionElement = exceeded && props.
|
|
13722
|
+
const collapseActionElement = exceeded && props.collapseText ? withStopPropagation(props.stopPropagationForActionButtons, React__default.createElement("a", {
|
|
13508
13723
|
onClick: () => {
|
|
13509
13724
|
setExpanded(false);
|
|
13510
13725
|
}
|
|
@@ -18767,9 +18982,9 @@ function isSimpleFunctionComponent(type4) {
|
|
|
18767
18982
|
return typeof type4 === "function" && !shouldConstruct(type4) && type4.defaultProps === void 0;
|
|
18768
18983
|
}
|
|
18769
18984
|
function isSafeSetRefComponent(component) {
|
|
18770
|
-
if (
|
|
18985
|
+
if (_reactIs_18_2_0_reactIs.exports.isFragment(component))
|
|
18771
18986
|
return false;
|
|
18772
|
-
if (
|
|
18987
|
+
if (_reactIs_18_2_0_reactIs.exports.isMemo(component))
|
|
18773
18988
|
return isSafeSetRefComponent(component.type);
|
|
18774
18989
|
return !isSimpleFunctionComponent(component.type);
|
|
18775
18990
|
}
|
|
@@ -18859,22 +19074,6 @@ const computePosition$1 = async (reference, floating, config2) => {
|
|
|
18859
19074
|
} = config2;
|
|
18860
19075
|
const validMiddleware = middleware.filter(Boolean);
|
|
18861
19076
|
const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(floating));
|
|
18862
|
-
{
|
|
18863
|
-
if (platform2 == null) {
|
|
18864
|
-
console.error(["Floating UI: `platform` property was not passed to config. If you", "want to use Floating UI on the web, install @floating-ui/dom", "instead of the /core package. Otherwise, you can create your own", "`platform`: https://floating-ui.com/docs/platform"].join(" "));
|
|
18865
|
-
}
|
|
18866
|
-
if (validMiddleware.filter((_ref) => {
|
|
18867
|
-
let {
|
|
18868
|
-
name
|
|
18869
|
-
} = _ref;
|
|
18870
|
-
return name === "autoPlacement" || name === "flip";
|
|
18871
|
-
}).length > 1) {
|
|
18872
|
-
throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement` middleware", "detected. This will lead to an infinite loop. Ensure only one of", "either has been passed to the `middleware` array."].join(" "));
|
|
18873
|
-
}
|
|
18874
|
-
if (!reference || !floating) {
|
|
18875
|
-
console.error(["Floating UI: The reference and/or floating element was not defined", "when `computePosition()` was called. Ensure that both elements have", "been created and can be measured."].join(" "));
|
|
18876
|
-
}
|
|
18877
|
-
}
|
|
18878
19077
|
let rects = await platform2.getElementRects({
|
|
18879
19078
|
reference,
|
|
18880
19079
|
floating,
|
|
@@ -18920,11 +19119,6 @@ const computePosition$1 = async (reference, floating, config2) => {
|
|
|
18920
19119
|
...data
|
|
18921
19120
|
}
|
|
18922
19121
|
};
|
|
18923
|
-
{
|
|
18924
|
-
if (resetCount > 50) {
|
|
18925
|
-
console.warn(["Floating UI: The middleware lifecycle appears to be running in an", "infinite loop. This is usually caused by a `reset` continually", "being returned without a break condition."].join(" "));
|
|
18926
|
-
}
|
|
18927
|
-
}
|
|
18928
19122
|
if (reset && resetCount <= 50) {
|
|
18929
19123
|
resetCount++;
|
|
18930
19124
|
if (typeof reset === "object") {
|
|
@@ -19053,12 +19247,10 @@ const arrow = (options) => ({
|
|
|
19053
19247
|
y,
|
|
19054
19248
|
placement,
|
|
19055
19249
|
rects,
|
|
19056
|
-
platform: platform2
|
|
19250
|
+
platform: platform2,
|
|
19251
|
+
elements
|
|
19057
19252
|
} = state;
|
|
19058
19253
|
if (element == null) {
|
|
19059
|
-
{
|
|
19060
|
-
console.warn("Floating UI: No `element` was passed to the `arrow` middleware.");
|
|
19061
|
-
}
|
|
19062
19254
|
return {};
|
|
19063
19255
|
}
|
|
19064
19256
|
const paddingObject = getSideObjectFromPadding(padding);
|
|
@@ -19069,14 +19261,16 @@ const arrow = (options) => ({
|
|
|
19069
19261
|
const axis = getMainAxisFromPlacement(placement);
|
|
19070
19262
|
const length = getLengthFromAxis(axis);
|
|
19071
19263
|
const arrowDimensions = await platform2.getDimensions(element);
|
|
19072
|
-
const
|
|
19073
|
-
const
|
|
19264
|
+
const isYAxis = axis === "y";
|
|
19265
|
+
const minProp = isYAxis ? "top" : "left";
|
|
19266
|
+
const maxProp = isYAxis ? "bottom" : "right";
|
|
19267
|
+
const clientProp = isYAxis ? "clientHeight" : "clientWidth";
|
|
19074
19268
|
const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
|
|
19075
19269
|
const startDiff = coords[axis] - rects.reference[axis];
|
|
19076
19270
|
const arrowOffsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(element));
|
|
19077
|
-
let clientSize = arrowOffsetParent ?
|
|
19078
|
-
if (clientSize
|
|
19079
|
-
clientSize = rects.floating[length];
|
|
19271
|
+
let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
|
|
19272
|
+
if (!clientSize || !await (platform2.isElement == null ? void 0 : platform2.isElement(arrowOffsetParent))) {
|
|
19273
|
+
clientSize = elements.floating[clientProp] || rects.floating[length];
|
|
19080
19274
|
}
|
|
19081
19275
|
const centerToReference = endDiff / 2 - startDiff / 2;
|
|
19082
19276
|
const min2 = paddingObject[minProp];
|
|
@@ -19516,25 +19710,8 @@ function getWindow(node) {
|
|
|
19516
19710
|
function getComputedStyle$1(element) {
|
|
19517
19711
|
return getWindow(element).getComputedStyle(element);
|
|
19518
19712
|
}
|
|
19519
|
-
|
|
19520
|
-
|
|
19521
|
-
const round = Math.round;
|
|
19522
|
-
function getCssDimensions(element) {
|
|
19523
|
-
const css = getComputedStyle$1(element);
|
|
19524
|
-
let width = parseFloat(css.width);
|
|
19525
|
-
let height = parseFloat(css.height);
|
|
19526
|
-
const offsetWidth = element.offsetWidth;
|
|
19527
|
-
const offsetHeight = element.offsetHeight;
|
|
19528
|
-
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
|
19529
|
-
if (shouldFallback) {
|
|
19530
|
-
width = offsetWidth;
|
|
19531
|
-
height = offsetHeight;
|
|
19532
|
-
}
|
|
19533
|
-
return {
|
|
19534
|
-
width,
|
|
19535
|
-
height,
|
|
19536
|
-
fallback: shouldFallback
|
|
19537
|
-
};
|
|
19713
|
+
function isNode(value) {
|
|
19714
|
+
return value instanceof getWindow(value).Node;
|
|
19538
19715
|
}
|
|
19539
19716
|
function getNodeName(node) {
|
|
19540
19717
|
return isNode(node) ? (node.nodeName || "").toLowerCase() : "";
|
|
@@ -19557,9 +19734,6 @@ function isHTMLElement(value) {
|
|
|
19557
19734
|
function isElement(value) {
|
|
19558
19735
|
return value instanceof getWindow(value).Element;
|
|
19559
19736
|
}
|
|
19560
|
-
function isNode(value) {
|
|
19561
|
-
return value instanceof getWindow(value).Node;
|
|
19562
|
-
}
|
|
19563
19737
|
function isShadowRoot(node) {
|
|
19564
19738
|
if (typeof ShadowRoot === "undefined") {
|
|
19565
19739
|
return false;
|
|
@@ -19594,6 +19768,27 @@ function isClientRectVisualViewportBased() {
|
|
|
19594
19768
|
function isLastTraversableNode(node) {
|
|
19595
19769
|
return ["html", "body", "#document"].includes(getNodeName(node));
|
|
19596
19770
|
}
|
|
19771
|
+
const min = Math.min;
|
|
19772
|
+
const max = Math.max;
|
|
19773
|
+
const round = Math.round;
|
|
19774
|
+
function getCssDimensions(element) {
|
|
19775
|
+
const css = getComputedStyle$1(element);
|
|
19776
|
+
let width = parseFloat(css.width);
|
|
19777
|
+
let height = parseFloat(css.height);
|
|
19778
|
+
const hasOffset = isHTMLElement(element);
|
|
19779
|
+
const offsetWidth = hasOffset ? element.offsetWidth : width;
|
|
19780
|
+
const offsetHeight = hasOffset ? element.offsetHeight : height;
|
|
19781
|
+
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
|
19782
|
+
if (shouldFallback) {
|
|
19783
|
+
width = offsetWidth;
|
|
19784
|
+
height = offsetHeight;
|
|
19785
|
+
}
|
|
19786
|
+
return {
|
|
19787
|
+
width,
|
|
19788
|
+
height,
|
|
19789
|
+
fallback: shouldFallback
|
|
19790
|
+
};
|
|
19791
|
+
}
|
|
19597
19792
|
function unwrapElement(element) {
|
|
19598
19793
|
return !isElement(element) ? element.contextElement : element;
|
|
19599
19794
|
}
|
|
@@ -19670,16 +19865,12 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
19670
19865
|
currentIFrame = getWindow(currentIFrame).frameElement;
|
|
19671
19866
|
}
|
|
19672
19867
|
}
|
|
19673
|
-
return {
|
|
19868
|
+
return rectToClientRect({
|
|
19674
19869
|
width,
|
|
19675
19870
|
height,
|
|
19676
|
-
top: y,
|
|
19677
|
-
right: x + width,
|
|
19678
|
-
bottom: y + height,
|
|
19679
|
-
left: x,
|
|
19680
19871
|
x,
|
|
19681
19872
|
y
|
|
19682
|
-
};
|
|
19873
|
+
});
|
|
19683
19874
|
}
|
|
19684
19875
|
function getDocumentElement(node) {
|
|
19685
19876
|
return ((isNode(node) ? node.ownerDocument : node.document) || window.document).documentElement;
|
|
@@ -19907,10 +20098,7 @@ function getClippingRect(_ref) {
|
|
|
19907
20098
|
};
|
|
19908
20099
|
}
|
|
19909
20100
|
function getDimensions(element) {
|
|
19910
|
-
|
|
19911
|
-
return getCssDimensions(element);
|
|
19912
|
-
}
|
|
19913
|
-
return element.getBoundingClientRect();
|
|
20101
|
+
return getCssDimensions(element);
|
|
19914
20102
|
}
|
|
19915
20103
|
function getTrueOffsetParent(element, polyfill) {
|
|
19916
20104
|
if (!isHTMLElement(element) || getComputedStyle$1(element).position === "fixed") {
|
|
@@ -19934,6 +20122,9 @@ function getContainingBlock(element) {
|
|
|
19934
20122
|
}
|
|
19935
20123
|
function getOffsetParent(element, polyfill) {
|
|
19936
20124
|
const window2 = getWindow(element);
|
|
20125
|
+
if (!isHTMLElement(element)) {
|
|
20126
|
+
return window2;
|
|
20127
|
+
}
|
|
19937
20128
|
let offsetParent = getTrueOffsetParent(element, polyfill);
|
|
19938
20129
|
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === "static") {
|
|
19939
20130
|
offsetParent = getTrueOffsetParent(offsetParent, polyfill);
|
|
@@ -20022,12 +20213,8 @@ function autoUpdate(reference, floating, update2, options) {
|
|
|
20022
20213
|
});
|
|
20023
20214
|
let observer = null;
|
|
20024
20215
|
if (elementResize) {
|
|
20025
|
-
let initialUpdate = true;
|
|
20026
20216
|
observer = new ResizeObserver(() => {
|
|
20027
|
-
|
|
20028
|
-
update2();
|
|
20029
|
-
}
|
|
20030
|
-
initialUpdate = false;
|
|
20217
|
+
update2();
|
|
20031
20218
|
});
|
|
20032
20219
|
isElement(reference) && !animationFrame && observer.observe(reference);
|
|
20033
20220
|
if (!isElement(reference) && reference.contextElement && !animationFrame) {
|
|
@@ -20223,7 +20410,7 @@ const Popover$1 = forwardRef((p, ref) => {
|
|
|
20223
20410
|
top: arrowY != null ? `${arrowY}px` : "",
|
|
20224
20411
|
right: "",
|
|
20225
20412
|
bottom: "",
|
|
20226
|
-
[arrowSide]:
|
|
20413
|
+
[arrowSide]: "calc(var(--arrow-size) * -1)"
|
|
20227
20414
|
});
|
|
20228
20415
|
const arrowRotate = {
|
|
20229
20416
|
top: "0deg",
|
|
@@ -22119,7 +22306,7 @@ const NoticeBar$1 = memo((p) => {
|
|
|
22119
22306
|
text.style.transitionDuration = `${Math.round(distance / speed)}s`;
|
|
22120
22307
|
text.style.transform = `translateX(-${text.offsetWidth}px)`;
|
|
22121
22308
|
}
|
|
22122
|
-
useTimeout(() => {
|
|
22309
|
+
useTimeout$1(() => {
|
|
22123
22310
|
delayLockRef.current = false;
|
|
22124
22311
|
start2();
|
|
22125
22312
|
}, props.delay);
|
|
@@ -22256,8 +22443,9 @@ const NumberKeyboard$1 = (p) => {
|
|
|
22256
22443
|
className: classNames(`${classPrefix$w}-header`, {
|
|
22257
22444
|
[`${classPrefix$w}-header-with-title`]: !!title
|
|
22258
22445
|
})
|
|
22259
|
-
},
|
|
22260
|
-
className: `${classPrefix$w}-title
|
|
22446
|
+
}, React__default.createElement("div", {
|
|
22447
|
+
className: `${classPrefix$w}-title`,
|
|
22448
|
+
"aria-label": title
|
|
22261
22449
|
}, title), showCloseButton && React__default.createElement("span", {
|
|
22262
22450
|
className: `${classPrefix$w}-header-close-button`,
|
|
22263
22451
|
onClick: () => {
|
|
@@ -22265,7 +22453,8 @@ const NumberKeyboard$1 = (p) => {
|
|
|
22265
22453
|
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
22266
22454
|
},
|
|
22267
22455
|
role: "button",
|
|
22268
|
-
title: "CLOSE"
|
|
22456
|
+
title: "CLOSE",
|
|
22457
|
+
tabIndex: -1
|
|
22269
22458
|
}, React__default.createElement(DownOutline, null)));
|
|
22270
22459
|
};
|
|
22271
22460
|
const renderKey = (key, index2) => {
|
|
@@ -22276,8 +22465,9 @@ const NumberKeyboard$1 = (p) => {
|
|
|
22276
22465
|
[`${classPrefix$w}-key-mid`]: index2 === 9 && !!confirmText && keys2.length < 12
|
|
22277
22466
|
});
|
|
22278
22467
|
const ariaProps = key ? {
|
|
22279
|
-
role: "
|
|
22280
|
-
title: key
|
|
22468
|
+
role: "grid",
|
|
22469
|
+
title: key,
|
|
22470
|
+
tabIndex: -1
|
|
22281
22471
|
} : void 0;
|
|
22282
22472
|
return React__default.createElement("div", Object.assign({
|
|
22283
22473
|
key,
|
|
@@ -22333,7 +22523,8 @@ const NumberKeyboard$1 = (p) => {
|
|
|
22333
22523
|
}, React__default.createElement(TextDeletionOutline, null)), React__default.createElement("div", {
|
|
22334
22524
|
className: `${classPrefix$w}-key ${classPrefix$w}-key-extra ${classPrefix$w}-key-ok`,
|
|
22335
22525
|
onTouchEnd: (e) => onKeyPress(e, "OK"),
|
|
22336
|
-
role: "button"
|
|
22526
|
+
role: "button",
|
|
22527
|
+
"aria-label": confirmText
|
|
22337
22528
|
}, confirmText))), props.safeArea && React__default.createElement("div", {
|
|
22338
22529
|
className: `${classPrefix$w}-footer`
|
|
22339
22530
|
}, React__default.createElement(SafeArea, {
|
|
@@ -22592,6 +22783,19 @@ const PullToRefresh$1 = (p) => {
|
|
|
22592
22783
|
(_a2 = elementRef.current) === null || _a2 === void 0 ? void 0 : _a2.addEventListener("touchmove", () => {
|
|
22593
22784
|
});
|
|
22594
22785
|
}, []);
|
|
22786
|
+
const reset = () => {
|
|
22787
|
+
return new Promise((resolve) => {
|
|
22788
|
+
api.start({
|
|
22789
|
+
to: {
|
|
22790
|
+
height: 0
|
|
22791
|
+
},
|
|
22792
|
+
onResolve() {
|
|
22793
|
+
setStatus("pulling");
|
|
22794
|
+
resolve();
|
|
22795
|
+
}
|
|
22796
|
+
});
|
|
22797
|
+
});
|
|
22798
|
+
};
|
|
22595
22799
|
function doRefresh() {
|
|
22596
22800
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22597
22801
|
api.start({
|
|
@@ -22602,27 +22806,13 @@ const PullToRefresh$1 = (p) => {
|
|
|
22602
22806
|
yield props.onRefresh();
|
|
22603
22807
|
setStatus("complete");
|
|
22604
22808
|
} catch (e) {
|
|
22605
|
-
|
|
22606
|
-
to: (next) => __awaiter(this, void 0, void 0, function* () {
|
|
22607
|
-
yield next({
|
|
22608
|
-
height: 0
|
|
22609
|
-
});
|
|
22610
|
-
setStatus("pulling");
|
|
22611
|
-
})
|
|
22612
|
-
});
|
|
22809
|
+
reset();
|
|
22613
22810
|
throw e;
|
|
22614
22811
|
}
|
|
22615
22812
|
if (props.completeDelay > 0) {
|
|
22616
22813
|
yield sleep(props.completeDelay);
|
|
22617
22814
|
}
|
|
22618
|
-
|
|
22619
|
-
to: (next) => __awaiter(this, void 0, void 0, function* () {
|
|
22620
|
-
yield next({
|
|
22621
|
-
height: 0
|
|
22622
|
-
});
|
|
22623
|
-
setStatus("pulling");
|
|
22624
|
-
})
|
|
22625
|
-
});
|
|
22815
|
+
reset();
|
|
22626
22816
|
});
|
|
22627
22817
|
}
|
|
22628
22818
|
useDrag((state) => {
|
|
@@ -23182,6 +23372,9 @@ const Selector$1 = (p) => {
|
|
|
23182
23372
|
(_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, val, extend);
|
|
23183
23373
|
}
|
|
23184
23374
|
});
|
|
23375
|
+
const {
|
|
23376
|
+
locale
|
|
23377
|
+
} = useConfig();
|
|
23185
23378
|
const items = props.options.map((option) => {
|
|
23186
23379
|
const active = (value || []).includes(option.value);
|
|
23187
23380
|
const disabled = option.disabled || props.disabled;
|
|
@@ -23204,7 +23397,9 @@ const Selector$1 = (p) => {
|
|
|
23204
23397
|
const val = active ? [] : [option.value];
|
|
23205
23398
|
setValue2(val);
|
|
23206
23399
|
}
|
|
23207
|
-
}
|
|
23400
|
+
},
|
|
23401
|
+
role: "option",
|
|
23402
|
+
"aria-selected": active && !props.multiple || active && props.multiple
|
|
23208
23403
|
}, option.label, option.description && React__default.createElement("div", {
|
|
23209
23404
|
className: `${classPrefix$k}-item-description`
|
|
23210
23405
|
}, option.description), active && props.showCheckMark && React__default.createElement("div", {
|
|
@@ -23212,7 +23407,9 @@ const Selector$1 = (p) => {
|
|
|
23212
23407
|
}, React__default.createElement(CheckMark, null)));
|
|
23213
23408
|
});
|
|
23214
23409
|
return withNativeProps(props, React__default.createElement("div", {
|
|
23215
|
-
className: classPrefix$k
|
|
23410
|
+
className: classPrefix$k,
|
|
23411
|
+
role: "listbox",
|
|
23412
|
+
"aria-label": locale.Selector.name
|
|
23216
23413
|
}, !props.columns && React__default.createElement(Space, {
|
|
23217
23414
|
wrap: true
|
|
23218
23415
|
}, items), props.columns && React__default.createElement(Grid, {
|
|
@@ -24176,7 +24373,7 @@ const defaultProps$d = {
|
|
|
24176
24373
|
disabled: false,
|
|
24177
24374
|
allowEmpty: false
|
|
24178
24375
|
};
|
|
24179
|
-
function
|
|
24376
|
+
function InnerStepper(p, ref) {
|
|
24180
24377
|
const props = mergeProps(defaultProps$d, p);
|
|
24181
24378
|
const {
|
|
24182
24379
|
defaultValue = 0,
|
|
@@ -24195,6 +24392,20 @@ function Stepper(p) {
|
|
|
24195
24392
|
const {
|
|
24196
24393
|
locale
|
|
24197
24394
|
} = useConfig();
|
|
24395
|
+
useImperativeHandle(ref, () => ({
|
|
24396
|
+
focus: () => {
|
|
24397
|
+
var _a;
|
|
24398
|
+
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
24399
|
+
},
|
|
24400
|
+
blur: () => {
|
|
24401
|
+
var _a;
|
|
24402
|
+
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.blur();
|
|
24403
|
+
},
|
|
24404
|
+
get nativeElement() {
|
|
24405
|
+
var _a, _b;
|
|
24406
|
+
return (_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.nativeElement) !== null && _b !== void 0 ? _b : null;
|
|
24407
|
+
}
|
|
24408
|
+
}));
|
|
24198
24409
|
const fixedValue = (value2) => {
|
|
24199
24410
|
const fixedValue2 = digits !== void 0 ? toFixed(value2.toString(), ".", digits) : value2;
|
|
24200
24411
|
return fixedValue2.toString();
|
|
@@ -24359,6 +24570,8 @@ function Stepper(p) {
|
|
|
24359
24570
|
"aria-label": locale.Stepper.increase
|
|
24360
24571
|
}, React__default.createElement(AddOutline, null))));
|
|
24361
24572
|
}
|
|
24573
|
+
const Stepper$1 = forwardRef(InnerStepper);
|
|
24574
|
+
const Stepper = Stepper$1;
|
|
24362
24575
|
const steps = "";
|
|
24363
24576
|
const classPrefix$d = `adm-step`;
|
|
24364
24577
|
const Step = (props) => {
|
|
@@ -25167,6 +25380,7 @@ const TextArea$1 = forwardRef((p, ref) => {
|
|
|
25167
25380
|
}
|
|
25168
25381
|
const nativeTextAreaRef = useRef(null);
|
|
25169
25382
|
const heightRef = useRef("auto");
|
|
25383
|
+
const hiddenTextAreaRef = useRef(null);
|
|
25170
25384
|
useImperativeHandle(ref, () => ({
|
|
25171
25385
|
clear: () => {
|
|
25172
25386
|
setValue2("");
|
|
@@ -25187,10 +25401,13 @@ const TextArea$1 = forwardRef((p, ref) => {
|
|
|
25187
25401
|
if (!autoSize)
|
|
25188
25402
|
return;
|
|
25189
25403
|
const textArea2 = nativeTextAreaRef.current;
|
|
25404
|
+
const hiddenTextArea = hiddenTextAreaRef.current;
|
|
25190
25405
|
if (!textArea2)
|
|
25191
25406
|
return;
|
|
25192
25407
|
textArea2.style.height = heightRef.current;
|
|
25193
|
-
|
|
25408
|
+
if (!hiddenTextArea)
|
|
25409
|
+
return;
|
|
25410
|
+
let height = hiddenTextArea.scrollHeight;
|
|
25194
25411
|
if (typeof autoSize === "object") {
|
|
25195
25412
|
const computedStyle = window.getComputedStyle(textArea2);
|
|
25196
25413
|
const lineHeight = parseFloat(computedStyle.lineHeight);
|
|
@@ -25252,7 +25469,13 @@ const TextArea$1 = forwardRef((p, ref) => {
|
|
|
25252
25469
|
onFocus: props.onFocus,
|
|
25253
25470
|
onBlur: props.onBlur,
|
|
25254
25471
|
onClick: props.onClick
|
|
25255
|
-
}), count
|
|
25472
|
+
}), count, autoSize && React__default.createElement("textarea", {
|
|
25473
|
+
ref: hiddenTextAreaRef,
|
|
25474
|
+
className: `${classPrefix$6}-element ${classPrefix$6}-element-hidden`,
|
|
25475
|
+
value,
|
|
25476
|
+
"aria-hidden": true,
|
|
25477
|
+
readOnly: true
|
|
25478
|
+
})));
|
|
25256
25479
|
});
|
|
25257
25480
|
TextArea$1.defaultProps = defaultProps$6;
|
|
25258
25481
|
const TextArea = TextArea$1;
|
|
@@ -25734,6 +25957,9 @@ const VirtualInput$1 = forwardRef((p, ref) => {
|
|
|
25734
25957
|
const rootRef = useRef(null);
|
|
25735
25958
|
const contentRef = useRef(null);
|
|
25736
25959
|
const [hasFocus, setHasFocus] = useState$1(false);
|
|
25960
|
+
const {
|
|
25961
|
+
locale
|
|
25962
|
+
} = useConfig();
|
|
25737
25963
|
function scrollToEnd() {
|
|
25738
25964
|
const root2 = rootRef.current;
|
|
25739
25965
|
if (!root2)
|
|
@@ -25805,7 +26031,11 @@ const VirtualInput$1 = forwardRef((p, ref) => {
|
|
|
25805
26031
|
onClick: props.onClick
|
|
25806
26032
|
}, React__default.createElement("div", {
|
|
25807
26033
|
className: `${classPrefix$2}-content`,
|
|
25808
|
-
ref: contentRef
|
|
26034
|
+
ref: contentRef,
|
|
26035
|
+
role: "option",
|
|
26036
|
+
tabIndex: props.disabled ? void 0 : 0,
|
|
26037
|
+
"aria-disabled": props.disabled,
|
|
26038
|
+
"aria-label": props.placeholder
|
|
25809
26039
|
}, value, React__default.createElement("div", {
|
|
25810
26040
|
className: `${classPrefix$2}-caret-container`
|
|
25811
26041
|
}, hasFocus && React__default.createElement("div", {
|
|
@@ -25817,7 +26047,9 @@ const VirtualInput$1 = forwardRef((p, ref) => {
|
|
|
25817
26047
|
e.stopPropagation();
|
|
25818
26048
|
setValue2("");
|
|
25819
26049
|
(_a = props.onClear) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
25820
|
-
}
|
|
26050
|
+
},
|
|
26051
|
+
role: "button",
|
|
26052
|
+
"aria-label": locale.Input.clear
|
|
25821
26053
|
}, React__default.createElement(CloseCircleFill, null)), !value && React__default.createElement("div", {
|
|
25822
26054
|
className: `${classPrefix$2}-placeholder`
|
|
25823
26055
|
}, props.placeholder), keyboardElement));
|