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
|
@@ -30,6 +30,18 @@
|
|
|
30
30
|
document.addEventListener("touchstart", () => {
|
|
31
31
|
}, true);
|
|
32
32
|
}
|
|
33
|
+
var __assign = function() {
|
|
34
|
+
__assign = Object.assign || function __assign2(t) {
|
|
35
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
36
|
+
s = arguments[i];
|
|
37
|
+
for (var p in s)
|
|
38
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
39
|
+
t[p] = s[p];
|
|
40
|
+
}
|
|
41
|
+
return t;
|
|
42
|
+
};
|
|
43
|
+
return __assign.apply(this, arguments);
|
|
44
|
+
};
|
|
33
45
|
function __rest(s, e) {
|
|
34
46
|
var t = {};
|
|
35
47
|
for (var p in s)
|
|
@@ -69,6 +81,128 @@
|
|
|
69
81
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
70
82
|
});
|
|
71
83
|
}
|
|
84
|
+
function __generator(thisArg, body) {
|
|
85
|
+
var _ = { label: 0, sent: function() {
|
|
86
|
+
if (t[0] & 1)
|
|
87
|
+
throw t[1];
|
|
88
|
+
return t[1];
|
|
89
|
+
}, trys: [], ops: [] }, f, y, t, g;
|
|
90
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
91
|
+
return this;
|
|
92
|
+
}), g;
|
|
93
|
+
function verb(n) {
|
|
94
|
+
return function(v) {
|
|
95
|
+
return step([n, v]);
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
function step(op) {
|
|
99
|
+
if (f)
|
|
100
|
+
throw new TypeError("Generator is already executing.");
|
|
101
|
+
while (g && (g = 0, op[0] && (_ = 0)), _)
|
|
102
|
+
try {
|
|
103
|
+
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)
|
|
104
|
+
return t;
|
|
105
|
+
if (y = 0, t)
|
|
106
|
+
op = [op[0] & 2, t.value];
|
|
107
|
+
switch (op[0]) {
|
|
108
|
+
case 0:
|
|
109
|
+
case 1:
|
|
110
|
+
t = op;
|
|
111
|
+
break;
|
|
112
|
+
case 4:
|
|
113
|
+
_.label++;
|
|
114
|
+
return { value: op[1], done: false };
|
|
115
|
+
case 5:
|
|
116
|
+
_.label++;
|
|
117
|
+
y = op[1];
|
|
118
|
+
op = [0];
|
|
119
|
+
continue;
|
|
120
|
+
case 7:
|
|
121
|
+
op = _.ops.pop();
|
|
122
|
+
_.trys.pop();
|
|
123
|
+
continue;
|
|
124
|
+
default:
|
|
125
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
126
|
+
_ = 0;
|
|
127
|
+
continue;
|
|
128
|
+
}
|
|
129
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
130
|
+
_.label = op[1];
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
134
|
+
_.label = t[1];
|
|
135
|
+
t = op;
|
|
136
|
+
break;
|
|
137
|
+
}
|
|
138
|
+
if (t && _.label < t[2]) {
|
|
139
|
+
_.label = t[2];
|
|
140
|
+
_.ops.push(op);
|
|
141
|
+
break;
|
|
142
|
+
}
|
|
143
|
+
if (t[2])
|
|
144
|
+
_.ops.pop();
|
|
145
|
+
_.trys.pop();
|
|
146
|
+
continue;
|
|
147
|
+
}
|
|
148
|
+
op = body.call(thisArg, _);
|
|
149
|
+
} catch (e) {
|
|
150
|
+
op = [6, e];
|
|
151
|
+
y = 0;
|
|
152
|
+
} finally {
|
|
153
|
+
f = t = 0;
|
|
154
|
+
}
|
|
155
|
+
if (op[0] & 5)
|
|
156
|
+
throw op[1];
|
|
157
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
function __values(o) {
|
|
161
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
162
|
+
if (m)
|
|
163
|
+
return m.call(o);
|
|
164
|
+
if (o && typeof o.length === "number")
|
|
165
|
+
return {
|
|
166
|
+
next: function() {
|
|
167
|
+
if (o && i >= o.length)
|
|
168
|
+
o = void 0;
|
|
169
|
+
return { value: o && o[i++], done: !o };
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
173
|
+
}
|
|
174
|
+
function __read(o, n) {
|
|
175
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
176
|
+
if (!m)
|
|
177
|
+
return o;
|
|
178
|
+
var i = m.call(o), r, ar = [], e;
|
|
179
|
+
try {
|
|
180
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
181
|
+
ar.push(r.value);
|
|
182
|
+
} catch (error) {
|
|
183
|
+
e = { error };
|
|
184
|
+
} finally {
|
|
185
|
+
try {
|
|
186
|
+
if (r && !r.done && (m = i["return"]))
|
|
187
|
+
m.call(i);
|
|
188
|
+
} finally {
|
|
189
|
+
if (e)
|
|
190
|
+
throw e.error;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
return ar;
|
|
194
|
+
}
|
|
195
|
+
function __spreadArray(to2, from, pack) {
|
|
196
|
+
if (pack || arguments.length === 2)
|
|
197
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
198
|
+
if (ar || !(i in from)) {
|
|
199
|
+
if (!ar)
|
|
200
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
201
|
+
ar[i] = from[i];
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
return to2.concat(ar || Array.prototype.slice.call(from));
|
|
205
|
+
}
|
|
72
206
|
function mergeLocale(base2, patch) {
|
|
73
207
|
function merge2(a, b) {
|
|
74
208
|
if (typeof a !== "object" || typeof b !== "object" || Array.isArray(a) || Array.isArray(b)) {
|
|
@@ -213,6 +347,9 @@
|
|
|
213
347
|
},
|
|
214
348
|
Switch: {
|
|
215
349
|
name: "Switch"
|
|
350
|
+
},
|
|
351
|
+
Selector: {
|
|
352
|
+
name: "Selector"
|
|
216
353
|
}
|
|
217
354
|
};
|
|
218
355
|
const typeTemplate$1 = "${label}\u4E0D\u662F\u4E00\u4E2A\u6709\u6548\u7684${type}";
|
|
@@ -344,6 +481,9 @@
|
|
|
344
481
|
},
|
|
345
482
|
Switch: {
|
|
346
483
|
name: "\u5F00\u5173"
|
|
484
|
+
},
|
|
485
|
+
Selector: {
|
|
486
|
+
name: "\u9009\u62E9\u7EC4"
|
|
347
487
|
}
|
|
348
488
|
});
|
|
349
489
|
const zhCN$1 = zhCN;
|
|
@@ -906,36 +1046,48 @@
|
|
|
906
1046
|
return ret;
|
|
907
1047
|
}
|
|
908
1048
|
const popup = "";
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
isMounted.current
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
1049
|
+
var createUpdateEffect = function(hook) {
|
|
1050
|
+
return function(effect, deps) {
|
|
1051
|
+
var isMounted = React$4.useRef(false);
|
|
1052
|
+
hook(function() {
|
|
1053
|
+
return function() {
|
|
1054
|
+
isMounted.current = false;
|
|
1055
|
+
};
|
|
1056
|
+
}, []);
|
|
1057
|
+
hook(function() {
|
|
1058
|
+
if (!isMounted.current) {
|
|
1059
|
+
isMounted.current = true;
|
|
1060
|
+
} else {
|
|
1061
|
+
return effect();
|
|
1062
|
+
}
|
|
1063
|
+
}, deps);
|
|
1064
|
+
};
|
|
923
1065
|
};
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
1066
|
+
var isFunction$1 = function(value) {
|
|
1067
|
+
return typeof value === "function";
|
|
1068
|
+
};
|
|
1069
|
+
var isNumber = function(value) {
|
|
1070
|
+
return typeof value === "number";
|
|
1071
|
+
};
|
|
1072
|
+
var isDev$1 = true;
|
|
927
1073
|
const isDev$2 = isDev$1;
|
|
928
1074
|
function useMemoizedFn(fn) {
|
|
929
1075
|
if (isDev$2) {
|
|
930
1076
|
if (!isFunction$1(fn)) {
|
|
931
|
-
console.error(
|
|
1077
|
+
console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof fn));
|
|
932
1078
|
}
|
|
933
1079
|
}
|
|
934
|
-
|
|
935
|
-
fnRef.current = React$4.useMemo(()
|
|
936
|
-
|
|
1080
|
+
var fnRef = React$4.useRef(fn);
|
|
1081
|
+
fnRef.current = React$4.useMemo(function() {
|
|
1082
|
+
return fn;
|
|
1083
|
+
}, [fn]);
|
|
1084
|
+
var memoizedFn = React$4.useRef();
|
|
937
1085
|
if (!memoizedFn.current) {
|
|
938
|
-
memoizedFn.current = function(
|
|
1086
|
+
memoizedFn.current = function() {
|
|
1087
|
+
var args = [];
|
|
1088
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1089
|
+
args[_i] = arguments[_i];
|
|
1090
|
+
}
|
|
939
1091
|
return fnRef.current.apply(this, args);
|
|
940
1092
|
};
|
|
941
1093
|
}
|
|
@@ -945,26 +1097,28 @@
|
|
|
945
1097
|
function depsAreSame(oldDeps, deps) {
|
|
946
1098
|
if (oldDeps === deps)
|
|
947
1099
|
return true;
|
|
948
|
-
for (
|
|
1100
|
+
for (var i = 0; i < oldDeps.length; i++) {
|
|
949
1101
|
if (!Object.is(oldDeps[i], deps[i]))
|
|
950
1102
|
return false;
|
|
951
1103
|
}
|
|
952
1104
|
return true;
|
|
953
1105
|
}
|
|
954
1106
|
function useLatest(value) {
|
|
955
|
-
|
|
1107
|
+
var ref = React$4.useRef(value);
|
|
956
1108
|
ref.current = value;
|
|
957
1109
|
return ref;
|
|
958
1110
|
}
|
|
959
|
-
|
|
1111
|
+
var useUnmount = function(fn) {
|
|
960
1112
|
if (isDev$2) {
|
|
961
1113
|
if (!isFunction$1(fn)) {
|
|
962
|
-
console.error(
|
|
1114
|
+
console.error("useUnmount expected parameter is a function, got ".concat(typeof fn));
|
|
963
1115
|
}
|
|
964
1116
|
}
|
|
965
|
-
|
|
966
|
-
React$4.useEffect(()
|
|
967
|
-
|
|
1117
|
+
var fnRef = useLatest(fn);
|
|
1118
|
+
React$4.useEffect(function() {
|
|
1119
|
+
return function() {
|
|
1120
|
+
fnRef.current();
|
|
1121
|
+
};
|
|
968
1122
|
}, []);
|
|
969
1123
|
};
|
|
970
1124
|
const useUnmount$1 = useUnmount;
|
|
@@ -1103,7 +1257,7 @@
|
|
|
1103
1257
|
return debounced;
|
|
1104
1258
|
}
|
|
1105
1259
|
var debounce_1 = debounce$1;
|
|
1106
|
-
|
|
1260
|
+
var isBrowser$2 = !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
1107
1261
|
const isBrowser$3 = isBrowser$2;
|
|
1108
1262
|
var debounce = debounce_1, isObject$5 = isObject_1;
|
|
1109
1263
|
var FUNC_ERROR_TEXT$1 = "Expected a function";
|
|
@@ -1123,20 +1277,22 @@
|
|
|
1123
1277
|
});
|
|
1124
1278
|
}
|
|
1125
1279
|
var throttle_1 = throttle$1;
|
|
1126
|
-
|
|
1280
|
+
var useMount = function(fn) {
|
|
1127
1281
|
if (isDev$2) {
|
|
1128
1282
|
if (!isFunction$1(fn)) {
|
|
1129
|
-
console.error(
|
|
1283
|
+
console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof fn, '".'));
|
|
1130
1284
|
}
|
|
1131
1285
|
}
|
|
1132
|
-
React$4.useEffect(()
|
|
1286
|
+
React$4.useEffect(function() {
|
|
1133
1287
|
fn === null || fn === void 0 ? void 0 : fn();
|
|
1134
1288
|
}, []);
|
|
1135
1289
|
};
|
|
1136
1290
|
const useMount$1 = useMount;
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
return React$4.useCallback(()
|
|
1291
|
+
var useUpdate = function() {
|
|
1292
|
+
var _a = __read(React$4.useState({}), 2), setState = _a[1];
|
|
1293
|
+
return React$4.useCallback(function() {
|
|
1294
|
+
return setState({});
|
|
1295
|
+
}, []);
|
|
1140
1296
|
};
|
|
1141
1297
|
const useUpdate$1 = useUpdate;
|
|
1142
1298
|
function getTargetElement(target, defaultElement) {
|
|
@@ -1146,7 +1302,7 @@
|
|
|
1146
1302
|
if (!target) {
|
|
1147
1303
|
return defaultElement;
|
|
1148
1304
|
}
|
|
1149
|
-
|
|
1305
|
+
var targetElement;
|
|
1150
1306
|
if (isFunction$1(target)) {
|
|
1151
1307
|
targetElement = target();
|
|
1152
1308
|
} else if ("current" in target) {
|
|
@@ -1156,42 +1312,44 @@
|
|
|
1156
1312
|
}
|
|
1157
1313
|
return targetElement;
|
|
1158
1314
|
}
|
|
1159
|
-
|
|
1160
|
-
return targets.every((item)
|
|
1161
|
-
|
|
1315
|
+
var checkIfAllInShadow = function(targets) {
|
|
1316
|
+
return targets.every(function(item) {
|
|
1317
|
+
var targetElement = getTargetElement(item);
|
|
1162
1318
|
if (!targetElement)
|
|
1163
1319
|
return false;
|
|
1164
1320
|
if (targetElement.getRootNode() instanceof ShadowRoot)
|
|
1165
1321
|
return true;
|
|
1166
1322
|
});
|
|
1167
1323
|
};
|
|
1168
|
-
|
|
1324
|
+
var getShadow = function(node) {
|
|
1169
1325
|
if (!node) {
|
|
1170
1326
|
return document;
|
|
1171
1327
|
}
|
|
1172
1328
|
return node.getRootNode();
|
|
1173
1329
|
};
|
|
1174
|
-
|
|
1330
|
+
var getDocumentOrShadow = function(target) {
|
|
1175
1331
|
if (!target || !document.getRootNode) {
|
|
1176
1332
|
return document;
|
|
1177
1333
|
}
|
|
1178
|
-
|
|
1334
|
+
var targets = Array.isArray(target) ? target : [target];
|
|
1179
1335
|
if (checkIfAllInShadow(targets)) {
|
|
1180
1336
|
return getShadow(getTargetElement(targets[0]));
|
|
1181
1337
|
}
|
|
1182
1338
|
return document;
|
|
1183
1339
|
};
|
|
1184
1340
|
const getDocumentOrShadow$1 = getDocumentOrShadow;
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
useEffectType(()
|
|
1341
|
+
var createEffectWithTarget = function(useEffectType) {
|
|
1342
|
+
var useEffectWithTarget2 = function(effect, deps, target) {
|
|
1343
|
+
var hasInitRef = React$4.useRef(false);
|
|
1344
|
+
var lastElementRef = React$4.useRef([]);
|
|
1345
|
+
var lastDepsRef = React$4.useRef([]);
|
|
1346
|
+
var unLoadRef = React$4.useRef();
|
|
1347
|
+
useEffectType(function() {
|
|
1192
1348
|
var _a;
|
|
1193
|
-
|
|
1194
|
-
|
|
1349
|
+
var targets = Array.isArray(target) ? target : [target];
|
|
1350
|
+
var els = targets.map(function(item) {
|
|
1351
|
+
return getTargetElement(item);
|
|
1352
|
+
});
|
|
1195
1353
|
if (!hasInitRef.current) {
|
|
1196
1354
|
hasInitRef.current = true;
|
|
1197
1355
|
lastElementRef.current = els;
|
|
@@ -1206,7 +1364,7 @@
|
|
|
1206
1364
|
unLoadRef.current = effect();
|
|
1207
1365
|
}
|
|
1208
1366
|
});
|
|
1209
|
-
useUnmount$1(()
|
|
1367
|
+
useUnmount$1(function() {
|
|
1210
1368
|
var _a;
|
|
1211
1369
|
(_a = unLoadRef.current) === null || _a === void 0 ? void 0 : _a.call(unLoadRef);
|
|
1212
1370
|
hasInitRef.current = false;
|
|
@@ -1215,26 +1373,33 @@
|
|
|
1215
1373
|
return useEffectWithTarget2;
|
|
1216
1374
|
};
|
|
1217
1375
|
const createEffectWithTarget$1 = createEffectWithTarget;
|
|
1218
|
-
|
|
1376
|
+
var useEffectWithTarget$1 = createEffectWithTarget$1(React$4.useEffect);
|
|
1219
1377
|
const useEffectWithTarget$2 = useEffectWithTarget$1;
|
|
1220
|
-
function useClickAway(onClickAway, target, eventName
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1378
|
+
function useClickAway(onClickAway, target, eventName) {
|
|
1379
|
+
if (eventName === void 0) {
|
|
1380
|
+
eventName = "click";
|
|
1381
|
+
}
|
|
1382
|
+
var onClickAwayRef = useLatest(onClickAway);
|
|
1383
|
+
useEffectWithTarget$2(function() {
|
|
1384
|
+
var handler = function(event) {
|
|
1385
|
+
var targets = Array.isArray(target) ? target : [target];
|
|
1386
|
+
if (targets.some(function(item) {
|
|
1387
|
+
var targetElement = getTargetElement(item);
|
|
1227
1388
|
return !targetElement || targetElement.contains(event.target);
|
|
1228
1389
|
})) {
|
|
1229
1390
|
return;
|
|
1230
1391
|
}
|
|
1231
1392
|
onClickAwayRef.current(event);
|
|
1232
1393
|
};
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
eventNames.forEach((event)
|
|
1236
|
-
|
|
1237
|
-
|
|
1394
|
+
var documentOrShadow = getDocumentOrShadow$1(target);
|
|
1395
|
+
var eventNames = Array.isArray(eventName) ? eventName : [eventName];
|
|
1396
|
+
eventNames.forEach(function(event) {
|
|
1397
|
+
return documentOrShadow.addEventListener(event, handler);
|
|
1398
|
+
});
|
|
1399
|
+
return function() {
|
|
1400
|
+
eventNames.forEach(function(event) {
|
|
1401
|
+
return documentOrShadow.removeEventListener(event, handler);
|
|
1402
|
+
});
|
|
1238
1403
|
};
|
|
1239
1404
|
}, Array.isArray(eventName) ? eventName : [eventName], target);
|
|
1240
1405
|
}
|
|
@@ -1451,15 +1616,21 @@
|
|
|
1451
1616
|
var _a;
|
|
1452
1617
|
if (isDev$2) {
|
|
1453
1618
|
if (!isFunction$1(fn)) {
|
|
1454
|
-
console.error(
|
|
1619
|
+
console.error("useDebounceFn expected parameter is a function, got ".concat(typeof fn));
|
|
1455
1620
|
}
|
|
1456
1621
|
}
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
return
|
|
1461
|
-
|
|
1462
|
-
|
|
1622
|
+
var fnRef = useLatest(fn);
|
|
1623
|
+
var wait = (_a = options === null || options === void 0 ? void 0 : options.wait) !== null && _a !== void 0 ? _a : 1e3;
|
|
1624
|
+
var debounced = React$4.useMemo(function() {
|
|
1625
|
+
return debounce_1(function() {
|
|
1626
|
+
var args = [];
|
|
1627
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1628
|
+
args[_i] = arguments[_i];
|
|
1629
|
+
}
|
|
1630
|
+
return fnRef.current.apply(fnRef, __spreadArray([], __read(args), false));
|
|
1631
|
+
}, wait, options);
|
|
1632
|
+
}, []);
|
|
1633
|
+
useUnmount$1(function() {
|
|
1463
1634
|
debounced.cancel();
|
|
1464
1635
|
});
|
|
1465
1636
|
return {
|
|
@@ -1469,13 +1640,11 @@
|
|
|
1469
1640
|
};
|
|
1470
1641
|
}
|
|
1471
1642
|
function useDebounceEffect(effect, deps, options) {
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
run
|
|
1475
|
-
} = useDebounceFn(() => {
|
|
1643
|
+
var _a = __read(React$4.useState({}), 2), flag = _a[0], setFlag = _a[1];
|
|
1644
|
+
var run = useDebounceFn(function() {
|
|
1476
1645
|
setFlag({});
|
|
1477
|
-
}, options);
|
|
1478
|
-
React$4.useEffect(()
|
|
1646
|
+
}, options).run;
|
|
1647
|
+
React$4.useEffect(function() {
|
|
1479
1648
|
return run();
|
|
1480
1649
|
}, deps);
|
|
1481
1650
|
useUpdateEffect(effect, [flag]);
|
|
@@ -2597,65 +2766,100 @@
|
|
|
2597
2766
|
window.IntersectionObserverEntry = IntersectionObserverEntry;
|
|
2598
2767
|
})();
|
|
2599
2768
|
function useInViewport(target, options) {
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
useEffectWithTarget$2(()
|
|
2603
|
-
|
|
2769
|
+
var _a = __read(React$4.useState(), 2), state = _a[0], setState = _a[1];
|
|
2770
|
+
var _b = __read(React$4.useState(), 2), ratio = _b[0], setRatio = _b[1];
|
|
2771
|
+
useEffectWithTarget$2(function() {
|
|
2772
|
+
var el = getTargetElement(target);
|
|
2604
2773
|
if (!el) {
|
|
2605
2774
|
return;
|
|
2606
2775
|
}
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2776
|
+
var observer = new IntersectionObserver(function(entries) {
|
|
2777
|
+
var e_1, _a2;
|
|
2778
|
+
try {
|
|
2779
|
+
for (var entries_1 = __values(entries), entries_1_1 = entries_1.next(); !entries_1_1.done; entries_1_1 = entries_1.next()) {
|
|
2780
|
+
var entry = entries_1_1.value;
|
|
2781
|
+
setRatio(entry.intersectionRatio);
|
|
2782
|
+
setState(entry.isIntersecting);
|
|
2783
|
+
}
|
|
2784
|
+
} catch (e_1_1) {
|
|
2785
|
+
e_1 = {
|
|
2786
|
+
error: e_1_1
|
|
2787
|
+
};
|
|
2788
|
+
} finally {
|
|
2789
|
+
try {
|
|
2790
|
+
if (entries_1_1 && !entries_1_1.done && (_a2 = entries_1.return))
|
|
2791
|
+
_a2.call(entries_1);
|
|
2792
|
+
} finally {
|
|
2793
|
+
if (e_1)
|
|
2794
|
+
throw e_1.error;
|
|
2795
|
+
}
|
|
2611
2796
|
}
|
|
2612
|
-
},
|
|
2797
|
+
}, __assign(__assign({}, options), {
|
|
2613
2798
|
root: getTargetElement(options === null || options === void 0 ? void 0 : options.root)
|
|
2614
2799
|
}));
|
|
2615
2800
|
observer.observe(el);
|
|
2616
|
-
return ()
|
|
2801
|
+
return function() {
|
|
2617
2802
|
observer.disconnect();
|
|
2618
2803
|
};
|
|
2619
2804
|
}, [options === null || options === void 0 ? void 0 : options.rootMargin, options === null || options === void 0 ? void 0 : options.threshold], target);
|
|
2620
2805
|
return [state, ratio];
|
|
2621
2806
|
}
|
|
2622
|
-
|
|
2807
|
+
var useIsomorphicLayoutEffect$1 = isBrowser$3 ? React$4.useLayoutEffect : React$4.useEffect;
|
|
2623
2808
|
const useIsomorphicLayoutEffect$2 = useIsomorphicLayoutEffect$1;
|
|
2624
2809
|
function useLockFn(fn) {
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2810
|
+
var _this = this;
|
|
2811
|
+
var lockRef = React$4.useRef(false);
|
|
2812
|
+
return React$4.useCallback(function() {
|
|
2813
|
+
var args = [];
|
|
2814
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
2815
|
+
args[_i] = arguments[_i];
|
|
2816
|
+
}
|
|
2817
|
+
return __awaiter(_this, void 0, void 0, function() {
|
|
2818
|
+
var ret, e_1;
|
|
2819
|
+
return __generator(this, function(_a) {
|
|
2820
|
+
switch (_a.label) {
|
|
2821
|
+
case 0:
|
|
2822
|
+
if (lockRef.current)
|
|
2823
|
+
return [2];
|
|
2824
|
+
lockRef.current = true;
|
|
2825
|
+
_a.label = 1;
|
|
2826
|
+
case 1:
|
|
2827
|
+
_a.trys.push([1, 3, , 4]);
|
|
2828
|
+
return [4, fn.apply(void 0, __spreadArray([], __read(args), false))];
|
|
2829
|
+
case 2:
|
|
2830
|
+
ret = _a.sent();
|
|
2831
|
+
lockRef.current = false;
|
|
2832
|
+
return [2, ret];
|
|
2833
|
+
case 3:
|
|
2834
|
+
e_1 = _a.sent();
|
|
2835
|
+
lockRef.current = false;
|
|
2836
|
+
throw e_1;
|
|
2837
|
+
case 4:
|
|
2838
|
+
return [2];
|
|
2839
|
+
}
|
|
2840
|
+
});
|
|
2841
|
+
});
|
|
2842
|
+
}, [fn]);
|
|
2639
2843
|
}
|
|
2640
2844
|
function useRafState(initialState) {
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2845
|
+
var ref = React$4.useRef(0);
|
|
2846
|
+
var _a = __read(React$4.useState(initialState), 2), state = _a[0], setState = _a[1];
|
|
2847
|
+
var setRafState = React$4.useCallback(function(value) {
|
|
2644
2848
|
cancelAnimationFrame(ref.current);
|
|
2645
|
-
ref.current = requestAnimationFrame(()
|
|
2849
|
+
ref.current = requestAnimationFrame(function() {
|
|
2646
2850
|
setState(value);
|
|
2647
2851
|
});
|
|
2648
2852
|
}, []);
|
|
2649
|
-
useUnmount$1(()
|
|
2853
|
+
useUnmount$1(function() {
|
|
2650
2854
|
cancelAnimationFrame(ref.current);
|
|
2651
2855
|
});
|
|
2652
2856
|
return [state, setRafState];
|
|
2653
2857
|
}
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
React$4.useEffect(()
|
|
2858
|
+
var useUnmountedRef = function() {
|
|
2859
|
+
var unmountedRef = React$4.useRef(false);
|
|
2860
|
+
React$4.useEffect(function() {
|
|
2657
2861
|
unmountedRef.current = false;
|
|
2658
|
-
return ()
|
|
2862
|
+
return function() {
|
|
2659
2863
|
unmountedRef.current = true;
|
|
2660
2864
|
};
|
|
2661
2865
|
}, []);
|
|
@@ -3133,23 +3337,26 @@
|
|
|
3133
3337
|
}
|
|
3134
3338
|
return ResizeObserver$1;
|
|
3135
3339
|
}();
|
|
3136
|
-
|
|
3340
|
+
var useEffectWithTarget = createEffectWithTarget$1(React$4.useLayoutEffect);
|
|
3137
3341
|
const useLayoutEffectWithTarget = useEffectWithTarget;
|
|
3138
|
-
|
|
3342
|
+
var useIsomorphicLayoutEffectWithTarget = isBrowser$3 ? useLayoutEffectWithTarget : useEffectWithTarget$2;
|
|
3139
3343
|
const useIsomorphicLayoutEffectWithTarget$1 = useIsomorphicLayoutEffectWithTarget;
|
|
3140
3344
|
function useSize(target) {
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3345
|
+
var _a = __read(useRafState(function() {
|
|
3346
|
+
var el = getTargetElement(target);
|
|
3347
|
+
return el ? {
|
|
3348
|
+
width: el.clientWidth,
|
|
3349
|
+
height: el.clientHeight
|
|
3350
|
+
} : void 0;
|
|
3351
|
+
}), 2), state = _a[0], setState = _a[1];
|
|
3352
|
+
useIsomorphicLayoutEffectWithTarget$1(function() {
|
|
3353
|
+
var el = getTargetElement(target);
|
|
3144
3354
|
if (!el) {
|
|
3145
3355
|
return;
|
|
3146
3356
|
}
|
|
3147
|
-
|
|
3148
|
-
entries.forEach((entry)
|
|
3149
|
-
|
|
3150
|
-
clientWidth,
|
|
3151
|
-
clientHeight
|
|
3152
|
-
} = entry.target;
|
|
3357
|
+
var resizeObserver = new index$k(function(entries) {
|
|
3358
|
+
entries.forEach(function(entry) {
|
|
3359
|
+
var _a2 = entry.target, clientWidth = _a2.clientWidth, clientHeight = _a2.clientHeight;
|
|
3153
3360
|
setState({
|
|
3154
3361
|
width: clientWidth,
|
|
3155
3362
|
height: clientHeight
|
|
@@ -3157,7 +3364,7 @@
|
|
|
3157
3364
|
});
|
|
3158
3365
|
});
|
|
3159
3366
|
resizeObserver.observe(el);
|
|
3160
|
-
return ()
|
|
3367
|
+
return function() {
|
|
3161
3368
|
resizeObserver.disconnect();
|
|
3162
3369
|
};
|
|
3163
3370
|
}, [], target);
|
|
@@ -3167,15 +3374,21 @@
|
|
|
3167
3374
|
var _a;
|
|
3168
3375
|
if (isDev$2) {
|
|
3169
3376
|
if (!isFunction$1(fn)) {
|
|
3170
|
-
console.error(
|
|
3377
|
+
console.error("useThrottleFn expected parameter is a function, got ".concat(typeof fn));
|
|
3171
3378
|
}
|
|
3172
3379
|
}
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
return
|
|
3177
|
-
|
|
3178
|
-
|
|
3380
|
+
var fnRef = useLatest(fn);
|
|
3381
|
+
var wait = (_a = options === null || options === void 0 ? void 0 : options.wait) !== null && _a !== void 0 ? _a : 1e3;
|
|
3382
|
+
var throttled = React$4.useMemo(function() {
|
|
3383
|
+
return throttle_1(function() {
|
|
3384
|
+
var args = [];
|
|
3385
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
3386
|
+
args[_i] = arguments[_i];
|
|
3387
|
+
}
|
|
3388
|
+
return fnRef.current.apply(fnRef, __spreadArray([], __read(args), false));
|
|
3389
|
+
}, wait, options);
|
|
3390
|
+
}, []);
|
|
3391
|
+
useUnmount$1(function() {
|
|
3179
3392
|
throttled.cancel();
|
|
3180
3393
|
});
|
|
3181
3394
|
return {
|
|
@@ -3184,29 +3397,24 @@
|
|
|
3184
3397
|
flush: throttled.flush
|
|
3185
3398
|
};
|
|
3186
3399
|
}
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
React$4.
|
|
3191
|
-
if (!isNumber(delay) || delay < 0) {
|
|
3192
|
-
return;
|
|
3193
|
-
}
|
|
3194
|
-
timerRef.current = setTimeout(() => {
|
|
3195
|
-
fnRef.current();
|
|
3196
|
-
}, delay);
|
|
3197
|
-
return () => {
|
|
3198
|
-
if (timerRef.current) {
|
|
3199
|
-
clearTimeout(timerRef.current);
|
|
3200
|
-
}
|
|
3201
|
-
};
|
|
3202
|
-
}, [delay]);
|
|
3203
|
-
const clear2 = React$4.useCallback(() => {
|
|
3400
|
+
var useTimeout = function(fn, delay) {
|
|
3401
|
+
var timerCallback = useMemoizedFn(fn);
|
|
3402
|
+
var timerRef = React$4.useRef(null);
|
|
3403
|
+
var clear2 = React$4.useCallback(function() {
|
|
3204
3404
|
if (timerRef.current) {
|
|
3205
3405
|
clearTimeout(timerRef.current);
|
|
3206
3406
|
}
|
|
3207
3407
|
}, []);
|
|
3408
|
+
React$4.useEffect(function() {
|
|
3409
|
+
if (!isNumber(delay) || delay < 0) {
|
|
3410
|
+
return;
|
|
3411
|
+
}
|
|
3412
|
+
timerRef.current = setTimeout(timerCallback, delay);
|
|
3413
|
+
return clear2;
|
|
3414
|
+
}, [delay]);
|
|
3208
3415
|
return clear2;
|
|
3209
|
-
}
|
|
3416
|
+
};
|
|
3417
|
+
const useTimeout$1 = useTimeout;
|
|
3210
3418
|
const mask = "";
|
|
3211
3419
|
const MIN_DISTANCE = 10;
|
|
3212
3420
|
function getDirection(x, y) {
|
|
@@ -7527,10 +7735,14 @@
|
|
|
7527
7735
|
ref: wrapperRef
|
|
7528
7736
|
}));
|
|
7529
7737
|
return {
|
|
7530
|
-
close: () => {
|
|
7738
|
+
close: () => __awaiter(this, void 0, void 0, function* () {
|
|
7531
7739
|
var _a;
|
|
7532
|
-
(
|
|
7533
|
-
|
|
7740
|
+
if (!wrapperRef.current) {
|
|
7741
|
+
unmount2();
|
|
7742
|
+
} else {
|
|
7743
|
+
(_a = wrapperRef.current) === null || _a === void 0 ? void 0 : _a.close();
|
|
7744
|
+
}
|
|
7745
|
+
}),
|
|
7534
7746
|
replace: (element2) => {
|
|
7535
7747
|
var _a;
|
|
7536
7748
|
(_a = wrapperRef.current) === null || _a === void 0 ? void 0 : _a.replace(element2);
|
|
@@ -7587,13 +7799,17 @@
|
|
|
7587
7799
|
if (props.closeOnAction) {
|
|
7588
7800
|
(_c = props.onClose) === null || _c === void 0 ? void 0 : _c.call(props);
|
|
7589
7801
|
}
|
|
7590
|
-
}
|
|
7802
|
+
},
|
|
7803
|
+
role: "option",
|
|
7804
|
+
"aria-disabled": action.disabled
|
|
7591
7805
|
}, React__default.default.createElement("div", {
|
|
7592
7806
|
className: `${classPrefix$1i}-button-item-name`
|
|
7593
7807
|
}, action.text), action.description && React__default.default.createElement("div", {
|
|
7594
7808
|
className: `${classPrefix$1i}-button-item-description`
|
|
7595
7809
|
}, action.description))))), props.cancelText && React__default.default.createElement("div", {
|
|
7596
|
-
className: `${classPrefix$1i}-cancel
|
|
7810
|
+
className: `${classPrefix$1i}-cancel`,
|
|
7811
|
+
role: "option",
|
|
7812
|
+
"aria-label": props.cancelText
|
|
7597
7813
|
}, React__default.default.createElement("div", {
|
|
7598
7814
|
className: `${classPrefix$1i}-button-item-wrapper`
|
|
7599
7815
|
}, React__default.default.createElement("a", {
|
|
@@ -7818,7 +8034,8 @@
|
|
|
7818
8034
|
lazy: props.lazy,
|
|
7819
8035
|
fit: props.fit,
|
|
7820
8036
|
onClick: props.onClick,
|
|
7821
|
-
onError: props.onError
|
|
8037
|
+
onError: props.onError,
|
|
8038
|
+
onLoad: props.onLoad
|
|
7822
8039
|
}));
|
|
7823
8040
|
};
|
|
7824
8041
|
const Avatar = Avatar$1;
|
|
@@ -8457,9 +8674,10 @@
|
|
|
8457
8674
|
}));
|
|
8458
8675
|
};
|
|
8459
8676
|
const ScrollMask = ScrollMask$1;
|
|
8460
|
-
var
|
|
8677
|
+
var _reactIs_18_2_0_reactIs = { exports: {} };
|
|
8461
8678
|
var reactIs_development$1 = {};
|
|
8462
|
-
/**
|
|
8679
|
+
/**
|
|
8680
|
+
* @license React
|
|
8463
8681
|
* react-is.development.js
|
|
8464
8682
|
*
|
|
8465
8683
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -8469,56 +8687,38 @@
|
|
|
8469
8687
|
*/
|
|
8470
8688
|
{
|
|
8471
8689
|
(function() {
|
|
8472
|
-
var REACT_ELEMENT_TYPE =
|
|
8473
|
-
var REACT_PORTAL_TYPE =
|
|
8474
|
-
var REACT_FRAGMENT_TYPE =
|
|
8475
|
-
var REACT_STRICT_MODE_TYPE =
|
|
8476
|
-
var REACT_PROFILER_TYPE =
|
|
8477
|
-
var REACT_PROVIDER_TYPE =
|
|
8478
|
-
var REACT_CONTEXT_TYPE =
|
|
8479
|
-
var
|
|
8480
|
-
var
|
|
8481
|
-
var
|
|
8482
|
-
var
|
|
8483
|
-
var
|
|
8484
|
-
var
|
|
8485
|
-
var
|
|
8486
|
-
var REACT_FUNDAMENTAL_TYPE = 60117;
|
|
8487
|
-
var REACT_DEBUG_TRACING_MODE_TYPE = 60129;
|
|
8488
|
-
var REACT_LEGACY_HIDDEN_TYPE = 60131;
|
|
8489
|
-
if (typeof Symbol === "function" && Symbol.for) {
|
|
8490
|
-
var symbolFor = Symbol.for;
|
|
8491
|
-
REACT_ELEMENT_TYPE = symbolFor("react.element");
|
|
8492
|
-
REACT_PORTAL_TYPE = symbolFor("react.portal");
|
|
8493
|
-
REACT_FRAGMENT_TYPE = symbolFor("react.fragment");
|
|
8494
|
-
REACT_STRICT_MODE_TYPE = symbolFor("react.strict_mode");
|
|
8495
|
-
REACT_PROFILER_TYPE = symbolFor("react.profiler");
|
|
8496
|
-
REACT_PROVIDER_TYPE = symbolFor("react.provider");
|
|
8497
|
-
REACT_CONTEXT_TYPE = symbolFor("react.context");
|
|
8498
|
-
REACT_FORWARD_REF_TYPE = symbolFor("react.forward_ref");
|
|
8499
|
-
REACT_SUSPENSE_TYPE = symbolFor("react.suspense");
|
|
8500
|
-
REACT_SUSPENSE_LIST_TYPE = symbolFor("react.suspense_list");
|
|
8501
|
-
REACT_MEMO_TYPE = symbolFor("react.memo");
|
|
8502
|
-
REACT_LAZY_TYPE = symbolFor("react.lazy");
|
|
8503
|
-
REACT_BLOCK_TYPE = symbolFor("react.block");
|
|
8504
|
-
REACT_SERVER_BLOCK_TYPE = symbolFor("react.server.block");
|
|
8505
|
-
REACT_FUNDAMENTAL_TYPE = symbolFor("react.fundamental");
|
|
8506
|
-
symbolFor("react.scope");
|
|
8507
|
-
symbolFor("react.opaque.id");
|
|
8508
|
-
REACT_DEBUG_TRACING_MODE_TYPE = symbolFor("react.debug_trace_mode");
|
|
8509
|
-
symbolFor("react.offscreen");
|
|
8510
|
-
REACT_LEGACY_HIDDEN_TYPE = symbolFor("react.legacy_hidden");
|
|
8511
|
-
}
|
|
8690
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
8691
|
+
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
8692
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
8693
|
+
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
8694
|
+
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
8695
|
+
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
8696
|
+
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
8697
|
+
var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context");
|
|
8698
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
8699
|
+
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
8700
|
+
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
8701
|
+
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
8702
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
8703
|
+
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
|
8512
8704
|
var enableScopeAPI = false;
|
|
8705
|
+
var enableCacheElement = false;
|
|
8706
|
+
var enableTransitionTracing = false;
|
|
8707
|
+
var enableLegacyHidden = false;
|
|
8708
|
+
var enableDebugTracing = false;
|
|
8709
|
+
var REACT_MODULE_REFERENCE;
|
|
8710
|
+
{
|
|
8711
|
+
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
8712
|
+
}
|
|
8513
8713
|
function isValidElementType(type2) {
|
|
8514
8714
|
if (typeof type2 === "string" || typeof type2 === "function") {
|
|
8515
8715
|
return true;
|
|
8516
8716
|
}
|
|
8517
|
-
if (type2 === REACT_FRAGMENT_TYPE || type2 === REACT_PROFILER_TYPE ||
|
|
8717
|
+
if (type2 === REACT_FRAGMENT_TYPE || type2 === REACT_PROFILER_TYPE || enableDebugTracing || type2 === REACT_STRICT_MODE_TYPE || type2 === REACT_SUSPENSE_TYPE || type2 === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type2 === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
|
|
8518
8718
|
return true;
|
|
8519
8719
|
}
|
|
8520
8720
|
if (typeof type2 === "object" && type2 !== null) {
|
|
8521
|
-
if (type2.$$typeof === REACT_LAZY_TYPE || type2.$$typeof === REACT_MEMO_TYPE || type2.$$typeof === REACT_PROVIDER_TYPE || type2.$$typeof === REACT_CONTEXT_TYPE || type2.$$typeof === REACT_FORWARD_REF_TYPE || type2.$$typeof ===
|
|
8721
|
+
if (type2.$$typeof === REACT_LAZY_TYPE || type2.$$typeof === REACT_MEMO_TYPE || type2.$$typeof === REACT_PROVIDER_TYPE || type2.$$typeof === REACT_CONTEXT_TYPE || type2.$$typeof === REACT_FORWARD_REF_TYPE || type2.$$typeof === REACT_MODULE_REFERENCE || type2.getModuleId !== void 0) {
|
|
8522
8722
|
return true;
|
|
8523
8723
|
}
|
|
8524
8724
|
}
|
|
@@ -8540,6 +8740,7 @@
|
|
|
8540
8740
|
default:
|
|
8541
8741
|
var $$typeofType = type2 && type2.$$typeof;
|
|
8542
8742
|
switch ($$typeofType) {
|
|
8743
|
+
case REACT_SERVER_CONTEXT_TYPE:
|
|
8543
8744
|
case REACT_CONTEXT_TYPE:
|
|
8544
8745
|
case REACT_FORWARD_REF_TYPE:
|
|
8545
8746
|
case REACT_LAZY_TYPE:
|
|
@@ -8567,6 +8768,7 @@
|
|
|
8567
8768
|
var Profiler = REACT_PROFILER_TYPE;
|
|
8568
8769
|
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
8569
8770
|
var Suspense = REACT_SUSPENSE_TYPE;
|
|
8771
|
+
var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
8570
8772
|
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
8571
8773
|
var hasWarnedAboutDeprecatedIsConcurrentMode = false;
|
|
8572
8774
|
function isAsyncMode(object2) {
|
|
@@ -8620,6 +8822,9 @@
|
|
|
8620
8822
|
function isSuspense(object2) {
|
|
8621
8823
|
return typeOf(object2) === REACT_SUSPENSE_TYPE;
|
|
8622
8824
|
}
|
|
8825
|
+
function isSuspenseList(object2) {
|
|
8826
|
+
return typeOf(object2) === REACT_SUSPENSE_LIST_TYPE;
|
|
8827
|
+
}
|
|
8623
8828
|
reactIs_development$1.ContextConsumer = ContextConsumer;
|
|
8624
8829
|
reactIs_development$1.ContextProvider = ContextProvider;
|
|
8625
8830
|
reactIs_development$1.Element = Element2;
|
|
@@ -8631,6 +8836,7 @@
|
|
|
8631
8836
|
reactIs_development$1.Profiler = Profiler;
|
|
8632
8837
|
reactIs_development$1.StrictMode = StrictMode;
|
|
8633
8838
|
reactIs_development$1.Suspense = Suspense;
|
|
8839
|
+
reactIs_development$1.SuspenseList = SuspenseList;
|
|
8634
8840
|
reactIs_development$1.isAsyncMode = isAsyncMode;
|
|
8635
8841
|
reactIs_development$1.isConcurrentMode = isConcurrentMode;
|
|
8636
8842
|
reactIs_development$1.isContextConsumer = isContextConsumer;
|
|
@@ -8644,6 +8850,7 @@
|
|
|
8644
8850
|
reactIs_development$1.isProfiler = isProfiler;
|
|
8645
8851
|
reactIs_development$1.isStrictMode = isStrictMode;
|
|
8646
8852
|
reactIs_development$1.isSuspense = isSuspense;
|
|
8853
|
+
reactIs_development$1.isSuspenseList = isSuspenseList;
|
|
8647
8854
|
reactIs_development$1.isValidElementType = isValidElementType;
|
|
8648
8855
|
reactIs_development$1.typeOf = typeOf;
|
|
8649
8856
|
})();
|
|
@@ -8652,12 +8859,12 @@
|
|
|
8652
8859
|
{
|
|
8653
8860
|
module2.exports = reactIs_development$1;
|
|
8654
8861
|
}
|
|
8655
|
-
})(
|
|
8862
|
+
})(_reactIs_18_2_0_reactIs);
|
|
8656
8863
|
function traverseReactNode(children, fn) {
|
|
8657
8864
|
let i = 0;
|
|
8658
8865
|
function handle(target) {
|
|
8659
8866
|
React__default.default.Children.forEach(target, (child) => {
|
|
8660
|
-
if (!
|
|
8867
|
+
if (!_reactIs_18_2_0_reactIs.exports.isFragment(child)) {
|
|
8661
8868
|
fn(child, i);
|
|
8662
8869
|
i += 1;
|
|
8663
8870
|
} else {
|
|
@@ -10911,7 +11118,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10911
11118
|
var useState2 = React2.useState, useEffect = React2.useEffect, useLayoutEffect2 = React2.useLayoutEffect, useDebugValue = React2.useDebugValue;
|
|
10912
11119
|
var didWarnOld18Alpha = false;
|
|
10913
11120
|
var didWarnUncachedGetSnapshot = false;
|
|
10914
|
-
function useSyncExternalStore(
|
|
11121
|
+
function useSyncExternalStore(subscribe2, getSnapshot, getServerSnapshot) {
|
|
10915
11122
|
{
|
|
10916
11123
|
if (!didWarnOld18Alpha) {
|
|
10917
11124
|
if (React2.startTransition !== void 0) {
|
|
@@ -10944,7 +11151,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10944
11151
|
inst
|
|
10945
11152
|
});
|
|
10946
11153
|
}
|
|
10947
|
-
}, [
|
|
11154
|
+
}, [subscribe2, value, getSnapshot]);
|
|
10948
11155
|
useEffect(function() {
|
|
10949
11156
|
if (checkIfSnapshotChanged(inst)) {
|
|
10950
11157
|
forceUpdate({
|
|
@@ -10958,8 +11165,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10958
11165
|
});
|
|
10959
11166
|
}
|
|
10960
11167
|
};
|
|
10961
|
-
return
|
|
10962
|
-
}, [
|
|
11168
|
+
return subscribe2(handleStoreChange);
|
|
11169
|
+
}, [subscribe2]);
|
|
10963
11170
|
useDebugValue(value);
|
|
10964
11171
|
return value;
|
|
10965
11172
|
}
|
|
@@ -10973,7 +11180,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10973
11180
|
return true;
|
|
10974
11181
|
}
|
|
10975
11182
|
}
|
|
10976
|
-
function useSyncExternalStore$1(
|
|
11183
|
+
function useSyncExternalStore$1(subscribe2, getSnapshot, getServerSnapshot) {
|
|
10977
11184
|
return getSnapshot();
|
|
10978
11185
|
}
|
|
10979
11186
|
var canUseDOM = !!(typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined");
|
|
@@ -11015,13 +11222,14 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11015
11222
|
function isMotionReduced() {
|
|
11016
11223
|
return reduced;
|
|
11017
11224
|
}
|
|
11225
|
+
function subscribe(onStoreChange) {
|
|
11226
|
+
subscribers.add(onStoreChange);
|
|
11227
|
+
return () => {
|
|
11228
|
+
subscribers.delete(onStoreChange);
|
|
11229
|
+
};
|
|
11230
|
+
}
|
|
11018
11231
|
function useMotionReduced() {
|
|
11019
|
-
return shim.exports.useSyncExternalStore(
|
|
11020
|
-
subscribers.add(onStoreChange);
|
|
11021
|
-
return () => {
|
|
11022
|
-
subscribers.delete(onStoreChange);
|
|
11023
|
-
};
|
|
11024
|
-
}, isMotionReduced);
|
|
11232
|
+
return shim.exports.useSyncExternalStore(subscribe, isMotionReduced);
|
|
11025
11233
|
}
|
|
11026
11234
|
const classPrefix$16 = "adm-spin-loading";
|
|
11027
11235
|
const colorRecord$2 = {
|
|
@@ -11579,7 +11787,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11579
11787
|
className: `${classPrefix$13}-tab-list`,
|
|
11580
11788
|
ref: tabListContainerRef,
|
|
11581
11789
|
scrollLeft,
|
|
11582
|
-
onScroll: updateMask
|
|
11790
|
+
onScroll: updateMask,
|
|
11791
|
+
role: "tablist"
|
|
11583
11792
|
}, React__default.default.createElement(animated.div, {
|
|
11584
11793
|
ref: activeLineRef,
|
|
11585
11794
|
className: `${classPrefix$13}-tab-line`,
|
|
@@ -11607,7 +11816,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11607
11816
|
className: classNames(`${classPrefix$13}-tab`, {
|
|
11608
11817
|
[`${classPrefix$13}-tab-active`]: pane.key === activeKey,
|
|
11609
11818
|
[`${classPrefix$13}-tab-disabled`]: pane.props.disabled
|
|
11610
|
-
})
|
|
11819
|
+
}),
|
|
11820
|
+
role: "tab",
|
|
11821
|
+
"aria-selected": pane.key === activeKey
|
|
11611
11822
|
}, pane.props.title)))))), panes.map((pane) => {
|
|
11612
11823
|
if (pane.props.children === void 0) {
|
|
11613
11824
|
return null;
|
|
@@ -11707,6 +11918,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11707
11918
|
}
|
|
11708
11919
|
const {
|
|
11709
11920
|
activeIcon,
|
|
11921
|
+
extra,
|
|
11710
11922
|
disabled,
|
|
11711
11923
|
readOnly
|
|
11712
11924
|
} = props;
|
|
@@ -11716,6 +11928,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11716
11928
|
check,
|
|
11717
11929
|
uncheck,
|
|
11718
11930
|
activeIcon,
|
|
11931
|
+
extra,
|
|
11719
11932
|
disabled,
|
|
11720
11933
|
readOnly
|
|
11721
11934
|
}
|
|
@@ -11733,9 +11946,11 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11733
11946
|
}
|
|
11734
11947
|
const active = context.value.includes(props.value);
|
|
11735
11948
|
const readOnly = props.readOnly || context.readOnly;
|
|
11949
|
+
const defaultExtra = active ? context.activeIcon : null;
|
|
11950
|
+
const renderExtra = context.extra ? context.extra(active) : defaultExtra;
|
|
11736
11951
|
const extra = React__default.default.createElement("div", {
|
|
11737
11952
|
className: `${classPrefix$$}-extra`
|
|
11738
|
-
},
|
|
11953
|
+
}, renderExtra);
|
|
11739
11954
|
return withNativeProps(props, React__default.default.createElement(List$1.Item, {
|
|
11740
11955
|
title: props.title,
|
|
11741
11956
|
className: classNames(classPrefix$$, readOnly && `${classPrefix$$}-readonly`, active && `${classPrefix$$}-active`),
|
|
@@ -13526,7 +13741,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13526
13741
|
setExpanded(true);
|
|
13527
13742
|
}
|
|
13528
13743
|
}, props.expandText)) : null;
|
|
13529
|
-
const collapseActionElement = exceeded && props.
|
|
13744
|
+
const collapseActionElement = exceeded && props.collapseText ? withStopPropagation(props.stopPropagationForActionButtons, React__default.default.createElement("a", {
|
|
13530
13745
|
onClick: () => {
|
|
13531
13746
|
setExpanded(false);
|
|
13532
13747
|
}
|
|
@@ -18789,9 +19004,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18789
19004
|
return typeof type2 === "function" && !shouldConstruct(type2) && type2.defaultProps === void 0;
|
|
18790
19005
|
}
|
|
18791
19006
|
function isSafeSetRefComponent(component) {
|
|
18792
|
-
if (
|
|
19007
|
+
if (_reactIs_18_2_0_reactIs.exports.isFragment(component))
|
|
18793
19008
|
return false;
|
|
18794
|
-
if (
|
|
19009
|
+
if (_reactIs_18_2_0_reactIs.exports.isMemo(component))
|
|
18795
19010
|
return isSafeSetRefComponent(component.type);
|
|
18796
19011
|
return !isSimpleFunctionComponent(component.type);
|
|
18797
19012
|
}
|
|
@@ -18881,22 +19096,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18881
19096
|
} = config2;
|
|
18882
19097
|
const validMiddleware = middleware.filter(Boolean);
|
|
18883
19098
|
const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(floating));
|
|
18884
|
-
{
|
|
18885
|
-
if (platform2 == null) {
|
|
18886
|
-
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(" "));
|
|
18887
|
-
}
|
|
18888
|
-
if (validMiddleware.filter((_ref) => {
|
|
18889
|
-
let {
|
|
18890
|
-
name
|
|
18891
|
-
} = _ref;
|
|
18892
|
-
return name === "autoPlacement" || name === "flip";
|
|
18893
|
-
}).length > 1) {
|
|
18894
|
-
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(" "));
|
|
18895
|
-
}
|
|
18896
|
-
if (!reference || !floating) {
|
|
18897
|
-
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(" "));
|
|
18898
|
-
}
|
|
18899
|
-
}
|
|
18900
19099
|
let rects = await platform2.getElementRects({
|
|
18901
19100
|
reference,
|
|
18902
19101
|
floating,
|
|
@@ -18942,11 +19141,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18942
19141
|
...data
|
|
18943
19142
|
}
|
|
18944
19143
|
};
|
|
18945
|
-
{
|
|
18946
|
-
if (resetCount > 50) {
|
|
18947
|
-
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(" "));
|
|
18948
|
-
}
|
|
18949
|
-
}
|
|
18950
19144
|
if (reset && resetCount <= 50) {
|
|
18951
19145
|
resetCount++;
|
|
18952
19146
|
if (typeof reset === "object") {
|
|
@@ -19075,12 +19269,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19075
19269
|
y,
|
|
19076
19270
|
placement,
|
|
19077
19271
|
rects,
|
|
19078
|
-
platform: platform2
|
|
19272
|
+
platform: platform2,
|
|
19273
|
+
elements
|
|
19079
19274
|
} = state;
|
|
19080
19275
|
if (element == null) {
|
|
19081
|
-
{
|
|
19082
|
-
console.warn("Floating UI: No `element` was passed to the `arrow` middleware.");
|
|
19083
|
-
}
|
|
19084
19276
|
return {};
|
|
19085
19277
|
}
|
|
19086
19278
|
const paddingObject = getSideObjectFromPadding(padding);
|
|
@@ -19091,14 +19283,16 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19091
19283
|
const axis = getMainAxisFromPlacement(placement);
|
|
19092
19284
|
const length = getLengthFromAxis(axis);
|
|
19093
19285
|
const arrowDimensions = await platform2.getDimensions(element);
|
|
19094
|
-
const
|
|
19095
|
-
const
|
|
19286
|
+
const isYAxis = axis === "y";
|
|
19287
|
+
const minProp = isYAxis ? "top" : "left";
|
|
19288
|
+
const maxProp = isYAxis ? "bottom" : "right";
|
|
19289
|
+
const clientProp = isYAxis ? "clientHeight" : "clientWidth";
|
|
19096
19290
|
const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
|
|
19097
19291
|
const startDiff = coords[axis] - rects.reference[axis];
|
|
19098
19292
|
const arrowOffsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(element));
|
|
19099
|
-
let clientSize = arrowOffsetParent ?
|
|
19100
|
-
if (clientSize
|
|
19101
|
-
clientSize = rects.floating[length];
|
|
19293
|
+
let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
|
|
19294
|
+
if (!clientSize || !await (platform2.isElement == null ? void 0 : platform2.isElement(arrowOffsetParent))) {
|
|
19295
|
+
clientSize = elements.floating[clientProp] || rects.floating[length];
|
|
19102
19296
|
}
|
|
19103
19297
|
const centerToReference = endDiff / 2 - startDiff / 2;
|
|
19104
19298
|
const min2 = paddingObject[minProp];
|
|
@@ -19538,25 +19732,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19538
19732
|
function getComputedStyle$1(element) {
|
|
19539
19733
|
return getWindow(element).getComputedStyle(element);
|
|
19540
19734
|
}
|
|
19541
|
-
|
|
19542
|
-
|
|
19543
|
-
const round = Math.round;
|
|
19544
|
-
function getCssDimensions(element) {
|
|
19545
|
-
const css = getComputedStyle$1(element);
|
|
19546
|
-
let width = parseFloat(css.width);
|
|
19547
|
-
let height = parseFloat(css.height);
|
|
19548
|
-
const offsetWidth = element.offsetWidth;
|
|
19549
|
-
const offsetHeight = element.offsetHeight;
|
|
19550
|
-
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
|
19551
|
-
if (shouldFallback) {
|
|
19552
|
-
width = offsetWidth;
|
|
19553
|
-
height = offsetHeight;
|
|
19554
|
-
}
|
|
19555
|
-
return {
|
|
19556
|
-
width,
|
|
19557
|
-
height,
|
|
19558
|
-
fallback: shouldFallback
|
|
19559
|
-
};
|
|
19735
|
+
function isNode(value) {
|
|
19736
|
+
return value instanceof getWindow(value).Node;
|
|
19560
19737
|
}
|
|
19561
19738
|
function getNodeName(node) {
|
|
19562
19739
|
return isNode(node) ? (node.nodeName || "").toLowerCase() : "";
|
|
@@ -19579,9 +19756,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19579
19756
|
function isElement(value) {
|
|
19580
19757
|
return value instanceof getWindow(value).Element;
|
|
19581
19758
|
}
|
|
19582
|
-
function isNode(value) {
|
|
19583
|
-
return value instanceof getWindow(value).Node;
|
|
19584
|
-
}
|
|
19585
19759
|
function isShadowRoot(node) {
|
|
19586
19760
|
if (typeof ShadowRoot === "undefined") {
|
|
19587
19761
|
return false;
|
|
@@ -19616,6 +19790,27 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19616
19790
|
function isLastTraversableNode(node) {
|
|
19617
19791
|
return ["html", "body", "#document"].includes(getNodeName(node));
|
|
19618
19792
|
}
|
|
19793
|
+
const min = Math.min;
|
|
19794
|
+
const max = Math.max;
|
|
19795
|
+
const round = Math.round;
|
|
19796
|
+
function getCssDimensions(element) {
|
|
19797
|
+
const css = getComputedStyle$1(element);
|
|
19798
|
+
let width = parseFloat(css.width);
|
|
19799
|
+
let height = parseFloat(css.height);
|
|
19800
|
+
const hasOffset = isHTMLElement(element);
|
|
19801
|
+
const offsetWidth = hasOffset ? element.offsetWidth : width;
|
|
19802
|
+
const offsetHeight = hasOffset ? element.offsetHeight : height;
|
|
19803
|
+
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
|
19804
|
+
if (shouldFallback) {
|
|
19805
|
+
width = offsetWidth;
|
|
19806
|
+
height = offsetHeight;
|
|
19807
|
+
}
|
|
19808
|
+
return {
|
|
19809
|
+
width,
|
|
19810
|
+
height,
|
|
19811
|
+
fallback: shouldFallback
|
|
19812
|
+
};
|
|
19813
|
+
}
|
|
19619
19814
|
function unwrapElement(element) {
|
|
19620
19815
|
return !isElement(element) ? element.contextElement : element;
|
|
19621
19816
|
}
|
|
@@ -19692,16 +19887,12 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19692
19887
|
currentIFrame = getWindow(currentIFrame).frameElement;
|
|
19693
19888
|
}
|
|
19694
19889
|
}
|
|
19695
|
-
return {
|
|
19890
|
+
return rectToClientRect({
|
|
19696
19891
|
width,
|
|
19697
19892
|
height,
|
|
19698
|
-
top: y,
|
|
19699
|
-
right: x + width,
|
|
19700
|
-
bottom: y + height,
|
|
19701
|
-
left: x,
|
|
19702
19893
|
x,
|
|
19703
19894
|
y
|
|
19704
|
-
};
|
|
19895
|
+
});
|
|
19705
19896
|
}
|
|
19706
19897
|
function getDocumentElement(node) {
|
|
19707
19898
|
return ((isNode(node) ? node.ownerDocument : node.document) || window.document).documentElement;
|
|
@@ -19929,10 +20120,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19929
20120
|
};
|
|
19930
20121
|
}
|
|
19931
20122
|
function getDimensions(element) {
|
|
19932
|
-
|
|
19933
|
-
return getCssDimensions(element);
|
|
19934
|
-
}
|
|
19935
|
-
return element.getBoundingClientRect();
|
|
20123
|
+
return getCssDimensions(element);
|
|
19936
20124
|
}
|
|
19937
20125
|
function getTrueOffsetParent(element, polyfill) {
|
|
19938
20126
|
if (!isHTMLElement(element) || getComputedStyle$1(element).position === "fixed") {
|
|
@@ -19956,6 +20144,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19956
20144
|
}
|
|
19957
20145
|
function getOffsetParent(element, polyfill) {
|
|
19958
20146
|
const window2 = getWindow(element);
|
|
20147
|
+
if (!isHTMLElement(element)) {
|
|
20148
|
+
return window2;
|
|
20149
|
+
}
|
|
19959
20150
|
let offsetParent = getTrueOffsetParent(element, polyfill);
|
|
19960
20151
|
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === "static") {
|
|
19961
20152
|
offsetParent = getTrueOffsetParent(offsetParent, polyfill);
|
|
@@ -20044,12 +20235,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20044
20235
|
});
|
|
20045
20236
|
let observer = null;
|
|
20046
20237
|
if (elementResize) {
|
|
20047
|
-
let initialUpdate = true;
|
|
20048
20238
|
observer = new ResizeObserver(() => {
|
|
20049
|
-
|
|
20050
|
-
update2();
|
|
20051
|
-
}
|
|
20052
|
-
initialUpdate = false;
|
|
20239
|
+
update2();
|
|
20053
20240
|
});
|
|
20054
20241
|
isElement(reference) && !animationFrame && observer.observe(reference);
|
|
20055
20242
|
if (!isElement(reference) && reference.contextElement && !animationFrame) {
|
|
@@ -20245,7 +20432,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20245
20432
|
top: arrowY != null ? `${arrowY}px` : "",
|
|
20246
20433
|
right: "",
|
|
20247
20434
|
bottom: "",
|
|
20248
|
-
[arrowSide]:
|
|
20435
|
+
[arrowSide]: "calc(var(--arrow-size) * -1)"
|
|
20249
20436
|
});
|
|
20250
20437
|
const arrowRotate = {
|
|
20251
20438
|
top: "0deg",
|
|
@@ -22141,7 +22328,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22141
22328
|
text.style.transitionDuration = `${Math.round(distance / speed)}s`;
|
|
22142
22329
|
text.style.transform = `translateX(-${text.offsetWidth}px)`;
|
|
22143
22330
|
}
|
|
22144
|
-
useTimeout(() => {
|
|
22331
|
+
useTimeout$1(() => {
|
|
22145
22332
|
delayLockRef.current = false;
|
|
22146
22333
|
start2();
|
|
22147
22334
|
}, props.delay);
|
|
@@ -22278,8 +22465,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22278
22465
|
className: classNames(`${classPrefix$w}-header`, {
|
|
22279
22466
|
[`${classPrefix$w}-header-with-title`]: !!title
|
|
22280
22467
|
})
|
|
22281
|
-
},
|
|
22282
|
-
className: `${classPrefix$w}-title
|
|
22468
|
+
}, React__default.default.createElement("div", {
|
|
22469
|
+
className: `${classPrefix$w}-title`,
|
|
22470
|
+
"aria-label": title
|
|
22283
22471
|
}, title), showCloseButton && React__default.default.createElement("span", {
|
|
22284
22472
|
className: `${classPrefix$w}-header-close-button`,
|
|
22285
22473
|
onClick: () => {
|
|
@@ -22287,7 +22475,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22287
22475
|
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
22288
22476
|
},
|
|
22289
22477
|
role: "button",
|
|
22290
|
-
title: "CLOSE"
|
|
22478
|
+
title: "CLOSE",
|
|
22479
|
+
tabIndex: -1
|
|
22291
22480
|
}, React__default.default.createElement(DownOutline, null)));
|
|
22292
22481
|
};
|
|
22293
22482
|
const renderKey = (key, index2) => {
|
|
@@ -22298,8 +22487,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22298
22487
|
[`${classPrefix$w}-key-mid`]: index2 === 9 && !!confirmText && keys2.length < 12
|
|
22299
22488
|
});
|
|
22300
22489
|
const ariaProps = key ? {
|
|
22301
|
-
role: "
|
|
22302
|
-
title: key
|
|
22490
|
+
role: "grid",
|
|
22491
|
+
title: key,
|
|
22492
|
+
tabIndex: -1
|
|
22303
22493
|
} : void 0;
|
|
22304
22494
|
return React__default.default.createElement("div", Object.assign({
|
|
22305
22495
|
key,
|
|
@@ -22355,7 +22545,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22355
22545
|
}, React__default.default.createElement(TextDeletionOutline, null)), React__default.default.createElement("div", {
|
|
22356
22546
|
className: `${classPrefix$w}-key ${classPrefix$w}-key-extra ${classPrefix$w}-key-ok`,
|
|
22357
22547
|
onTouchEnd: (e) => onKeyPress(e, "OK"),
|
|
22358
|
-
role: "button"
|
|
22548
|
+
role: "button",
|
|
22549
|
+
"aria-label": confirmText
|
|
22359
22550
|
}, confirmText))), props.safeArea && React__default.default.createElement("div", {
|
|
22360
22551
|
className: `${classPrefix$w}-footer`
|
|
22361
22552
|
}, React__default.default.createElement(SafeArea, {
|
|
@@ -22614,6 +22805,19 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22614
22805
|
(_a2 = elementRef.current) === null || _a2 === void 0 ? void 0 : _a2.addEventListener("touchmove", () => {
|
|
22615
22806
|
});
|
|
22616
22807
|
}, []);
|
|
22808
|
+
const reset = () => {
|
|
22809
|
+
return new Promise((resolve) => {
|
|
22810
|
+
api.start({
|
|
22811
|
+
to: {
|
|
22812
|
+
height: 0
|
|
22813
|
+
},
|
|
22814
|
+
onResolve() {
|
|
22815
|
+
setStatus("pulling");
|
|
22816
|
+
resolve();
|
|
22817
|
+
}
|
|
22818
|
+
});
|
|
22819
|
+
});
|
|
22820
|
+
};
|
|
22617
22821
|
function doRefresh() {
|
|
22618
22822
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22619
22823
|
api.start({
|
|
@@ -22624,27 +22828,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22624
22828
|
yield props.onRefresh();
|
|
22625
22829
|
setStatus("complete");
|
|
22626
22830
|
} catch (e) {
|
|
22627
|
-
|
|
22628
|
-
to: (next) => __awaiter(this, void 0, void 0, function* () {
|
|
22629
|
-
yield next({
|
|
22630
|
-
height: 0
|
|
22631
|
-
});
|
|
22632
|
-
setStatus("pulling");
|
|
22633
|
-
})
|
|
22634
|
-
});
|
|
22831
|
+
reset();
|
|
22635
22832
|
throw e;
|
|
22636
22833
|
}
|
|
22637
22834
|
if (props.completeDelay > 0) {
|
|
22638
22835
|
yield sleep(props.completeDelay);
|
|
22639
22836
|
}
|
|
22640
|
-
|
|
22641
|
-
to: (next) => __awaiter(this, void 0, void 0, function* () {
|
|
22642
|
-
yield next({
|
|
22643
|
-
height: 0
|
|
22644
|
-
});
|
|
22645
|
-
setStatus("pulling");
|
|
22646
|
-
})
|
|
22647
|
-
});
|
|
22837
|
+
reset();
|
|
22648
22838
|
});
|
|
22649
22839
|
}
|
|
22650
22840
|
useDrag((state) => {
|
|
@@ -23204,6 +23394,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23204
23394
|
(_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, val, extend);
|
|
23205
23395
|
}
|
|
23206
23396
|
});
|
|
23397
|
+
const {
|
|
23398
|
+
locale
|
|
23399
|
+
} = useConfig();
|
|
23207
23400
|
const items = props.options.map((option) => {
|
|
23208
23401
|
const active = (value || []).includes(option.value);
|
|
23209
23402
|
const disabled = option.disabled || props.disabled;
|
|
@@ -23226,7 +23419,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23226
23419
|
const val = active ? [] : [option.value];
|
|
23227
23420
|
setValue2(val);
|
|
23228
23421
|
}
|
|
23229
|
-
}
|
|
23422
|
+
},
|
|
23423
|
+
role: "option",
|
|
23424
|
+
"aria-selected": active && !props.multiple || active && props.multiple
|
|
23230
23425
|
}, option.label, option.description && React__default.default.createElement("div", {
|
|
23231
23426
|
className: `${classPrefix$k}-item-description`
|
|
23232
23427
|
}, option.description), active && props.showCheckMark && React__default.default.createElement("div", {
|
|
@@ -23234,7 +23429,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23234
23429
|
}, React__default.default.createElement(CheckMark, null)));
|
|
23235
23430
|
});
|
|
23236
23431
|
return withNativeProps(props, React__default.default.createElement("div", {
|
|
23237
|
-
className: classPrefix$k
|
|
23432
|
+
className: classPrefix$k,
|
|
23433
|
+
role: "listbox",
|
|
23434
|
+
"aria-label": locale.Selector.name
|
|
23238
23435
|
}, !props.columns && React__default.default.createElement(Space, {
|
|
23239
23436
|
wrap: true
|
|
23240
23437
|
}, items), props.columns && React__default.default.createElement(Grid, {
|
|
@@ -24198,7 +24395,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24198
24395
|
disabled: false,
|
|
24199
24396
|
allowEmpty: false
|
|
24200
24397
|
};
|
|
24201
|
-
function
|
|
24398
|
+
function InnerStepper(p, ref) {
|
|
24202
24399
|
const props = mergeProps(defaultProps$d, p);
|
|
24203
24400
|
const {
|
|
24204
24401
|
defaultValue = 0,
|
|
@@ -24217,6 +24414,20 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24217
24414
|
const {
|
|
24218
24415
|
locale
|
|
24219
24416
|
} = useConfig();
|
|
24417
|
+
React$4.useImperativeHandle(ref, () => ({
|
|
24418
|
+
focus: () => {
|
|
24419
|
+
var _a;
|
|
24420
|
+
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
24421
|
+
},
|
|
24422
|
+
blur: () => {
|
|
24423
|
+
var _a;
|
|
24424
|
+
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.blur();
|
|
24425
|
+
},
|
|
24426
|
+
get nativeElement() {
|
|
24427
|
+
var _a, _b;
|
|
24428
|
+
return (_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.nativeElement) !== null && _b !== void 0 ? _b : null;
|
|
24429
|
+
}
|
|
24430
|
+
}));
|
|
24220
24431
|
const fixedValue = (value2) => {
|
|
24221
24432
|
const fixedValue2 = digits !== void 0 ? toFixed(value2.toString(), ".", digits) : value2;
|
|
24222
24433
|
return fixedValue2.toString();
|
|
@@ -24381,6 +24592,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24381
24592
|
"aria-label": locale.Stepper.increase
|
|
24382
24593
|
}, React__default.default.createElement(AddOutline, null))));
|
|
24383
24594
|
}
|
|
24595
|
+
const Stepper$1 = React$4.forwardRef(InnerStepper);
|
|
24596
|
+
const Stepper = Stepper$1;
|
|
24384
24597
|
const steps = "";
|
|
24385
24598
|
const classPrefix$d = `adm-step`;
|
|
24386
24599
|
const Step = (props) => {
|
|
@@ -25189,6 +25402,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
25189
25402
|
}
|
|
25190
25403
|
const nativeTextAreaRef = React$4.useRef(null);
|
|
25191
25404
|
const heightRef = React$4.useRef("auto");
|
|
25405
|
+
const hiddenTextAreaRef = React$4.useRef(null);
|
|
25192
25406
|
React$4.useImperativeHandle(ref, () => ({
|
|
25193
25407
|
clear: () => {
|
|
25194
25408
|
setValue2("");
|
|
@@ -25209,10 +25423,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
25209
25423
|
if (!autoSize)
|
|
25210
25424
|
return;
|
|
25211
25425
|
const textArea2 = nativeTextAreaRef.current;
|
|
25426
|
+
const hiddenTextArea = hiddenTextAreaRef.current;
|
|
25212
25427
|
if (!textArea2)
|
|
25213
25428
|
return;
|
|
25214
25429
|
textArea2.style.height = heightRef.current;
|
|
25215
|
-
|
|
25430
|
+
if (!hiddenTextArea)
|
|
25431
|
+
return;
|
|
25432
|
+
let height = hiddenTextArea.scrollHeight;
|
|
25216
25433
|
if (typeof autoSize === "object") {
|
|
25217
25434
|
const computedStyle = window.getComputedStyle(textArea2);
|
|
25218
25435
|
const lineHeight = parseFloat(computedStyle.lineHeight);
|
|
@@ -25274,7 +25491,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
25274
25491
|
onFocus: props.onFocus,
|
|
25275
25492
|
onBlur: props.onBlur,
|
|
25276
25493
|
onClick: props.onClick
|
|
25277
|
-
}), count
|
|
25494
|
+
}), count, autoSize && React__default.default.createElement("textarea", {
|
|
25495
|
+
ref: hiddenTextAreaRef,
|
|
25496
|
+
className: `${classPrefix$6}-element ${classPrefix$6}-element-hidden`,
|
|
25497
|
+
value,
|
|
25498
|
+
"aria-hidden": true,
|
|
25499
|
+
readOnly: true
|
|
25500
|
+
})));
|
|
25278
25501
|
});
|
|
25279
25502
|
TextArea$1.defaultProps = defaultProps$6;
|
|
25280
25503
|
const TextArea = TextArea$1;
|
|
@@ -25756,6 +25979,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
25756
25979
|
const rootRef = React$4.useRef(null);
|
|
25757
25980
|
const contentRef = React$4.useRef(null);
|
|
25758
25981
|
const [hasFocus, setHasFocus] = React$4.useState(false);
|
|
25982
|
+
const {
|
|
25983
|
+
locale
|
|
25984
|
+
} = useConfig();
|
|
25759
25985
|
function scrollToEnd() {
|
|
25760
25986
|
const root2 = rootRef.current;
|
|
25761
25987
|
if (!root2)
|
|
@@ -25827,7 +26053,11 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
25827
26053
|
onClick: props.onClick
|
|
25828
26054
|
}, React__default.default.createElement("div", {
|
|
25829
26055
|
className: `${classPrefix$2}-content`,
|
|
25830
|
-
ref: contentRef
|
|
26056
|
+
ref: contentRef,
|
|
26057
|
+
role: "option",
|
|
26058
|
+
tabIndex: props.disabled ? void 0 : 0,
|
|
26059
|
+
"aria-disabled": props.disabled,
|
|
26060
|
+
"aria-label": props.placeholder
|
|
25831
26061
|
}, value, React__default.default.createElement("div", {
|
|
25832
26062
|
className: `${classPrefix$2}-caret-container`
|
|
25833
26063
|
}, hasFocus && React__default.default.createElement("div", {
|
|
@@ -25839,7 +26069,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
25839
26069
|
e.stopPropagation();
|
|
25840
26070
|
setValue2("");
|
|
25841
26071
|
(_a = props.onClear) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
25842
|
-
}
|
|
26072
|
+
},
|
|
26073
|
+
role: "button",
|
|
26074
|
+
"aria-label": locale.Input.clear
|
|
25843
26075
|
}, React__default.default.createElement(CloseCircleFill, null)), !value && React__default.default.createElement("div", {
|
|
25844
26076
|
className: `${classPrefix$2}-placeholder`
|
|
25845
26077
|
}, props.placeholder), keyboardElement));
|