antd-mobile 5.32.0 → 5.32.1
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 +385 -302
- package/2x/bundle/antd-mobile.cjs.js +9 -9
- package/2x/bundle/antd-mobile.es.development.js +385 -302
- package/2x/bundle/antd-mobile.es.js +5266 -5213
- package/2x/bundle/antd-mobile.umd.development.js +385 -302
- package/2x/bundle/antd-mobile.umd.js +9 -9
- package/2x/bundle/style.css +15 -15
- package/2x/cjs/components/action-sheet/action-sheet.css +1 -1
- package/2x/cjs/components/button/button.css +2 -2
- package/2x/cjs/components/calendar/calendar.js +5 -1
- package/2x/cjs/components/center-popup/center-popup.js +6 -5
- package/2x/cjs/components/collapse/collapse.js +27 -12
- package/2x/cjs/components/ellipsis/ellipsis.js +4 -4
- package/2x/cjs/components/error-block/create-error-block.js +4 -4
- package/2x/cjs/components/error-block/error-block.css +1 -1
- package/2x/cjs/components/floating-panel/floating-panel.js +8 -7
- package/2x/cjs/components/form/form-item.d.ts +1 -1
- package/2x/cjs/components/form/form-item.js +6 -9
- package/2x/cjs/components/form/form.css +1 -1
- package/2x/cjs/components/form/index.css +1 -1
- package/2x/cjs/components/image-uploader/image-uploader.css +1 -1
- package/2x/cjs/components/input/input.d.ts +2 -8
- package/2x/cjs/components/notice-bar/notice-bar.css +2 -2
- package/2x/cjs/components/number-keyboard/number-keyboard.css +2 -2
- package/2x/cjs/components/picker-view/wheel.js +61 -14
- package/2x/cjs/components/popover/popover-menu.css +2 -2
- package/2x/cjs/components/progress-bar/progress-bar.css +1 -1
- package/2x/cjs/components/pull-to-refresh/pull-to-refresh.js +1 -1
- package/2x/cjs/components/rate/rate.d.ts +1 -1
- package/2x/cjs/components/steps/steps.js +5 -5
- package/2x/cjs/components/swipe-action/swipe-action.d.ts +4 -3
- package/2x/cjs/components/tag/tag.js +1 -1
- package/2x/cjs/components/text-area/text-area.js +11 -2
- package/2x/cjs/components/toast/toast.css +2 -2
- package/2x/cjs/components/water-mark/water-mark.js +1 -1
- package/2x/cjs/locales/base.d.ts +1 -1
- package/2x/cjs/locales/base.js +1 -1
- package/2x/cjs/locales/da-DK.d.ts +1 -1
- package/2x/cjs/locales/da-DK.js +1 -1
- package/2x/cjs/locales/en-US.d.ts +1 -1
- package/2x/cjs/locales/es-ES.d.ts +1 -1
- package/2x/cjs/locales/es-ES.js +1 -1
- package/2x/cjs/locales/fa-IR.d.ts +1 -1
- package/2x/cjs/locales/fa-IR.js +1 -1
- package/2x/cjs/locales/fr-FR.d.ts +1 -1
- package/2x/cjs/locales/fr-FR.js +1 -1
- package/2x/cjs/locales/id-ID.d.ts +1 -1
- package/2x/cjs/locales/id-ID.js +1 -1
- package/2x/cjs/locales/it-IT.d.ts +1 -1
- package/2x/cjs/locales/it-IT.js +1 -1
- package/2x/cjs/locales/ja-JP.d.ts +1 -1
- package/2x/cjs/locales/ja-JP.js +1 -1
- package/2x/cjs/locales/kk-KZ.d.ts +1 -1
- package/2x/cjs/locales/kk-KZ.js +1 -1
- package/2x/cjs/locales/ko-KR.d.ts +1 -1
- package/2x/cjs/locales/ko-KR.js +1 -1
- package/2x/cjs/locales/nb-NO.d.ts +1 -1
- package/2x/cjs/locales/nb-NO.js +1 -1
- package/2x/cjs/locales/nl-NL.d.ts +1 -1
- package/2x/cjs/locales/nl-NL.js +1 -1
- package/2x/cjs/locales/ru-RU.d.ts +1 -1
- package/2x/cjs/locales/ru-RU.js +1 -1
- package/2x/cjs/locales/zh-CN.d.ts +1 -1
- package/2x/cjs/locales/zh-CN.js +1 -1
- package/2x/cjs/locales/zh-HK.d.ts +1 -1
- package/2x/cjs/locales/zh-HK.js +1 -1
- package/2x/cjs/locales/zh-TW.d.ts +1 -1
- package/2x/cjs/locales/zh-TW.js +1 -1
- package/2x/cjs/utils/replace-message.d.ts +1 -0
- package/2x/cjs/utils/replace-message.js +13 -0
- package/2x/cjs/utils/use-lock-scroll.js +6 -2
- package/2x/es/components/action-sheet/action-sheet.css +1 -1
- package/2x/es/components/button/button.css +2 -2
- package/2x/es/components/calendar/calendar.js +5 -1
- package/2x/es/components/center-popup/center-popup.js +6 -5
- package/2x/es/components/collapse/collapse.js +27 -12
- package/2x/es/components/ellipsis/ellipsis.js +4 -4
- package/2x/es/components/error-block/create-error-block.js +4 -4
- package/2x/es/components/error-block/error-block.css +1 -1
- package/2x/es/components/floating-panel/floating-panel.js +8 -7
- package/2x/es/components/form/form-item.d.ts +1 -1
- package/2x/es/components/form/form-item.js +6 -9
- package/2x/es/components/form/form.css +1 -1
- package/2x/es/components/form/index.css +1 -1
- package/2x/es/components/image-uploader/image-uploader.css +1 -1
- package/2x/es/components/input/input.d.ts +2 -8
- package/2x/es/components/notice-bar/notice-bar.css +2 -2
- package/2x/es/components/number-keyboard/number-keyboard.css +2 -2
- package/2x/es/components/picker-view/wheel.js +61 -14
- package/2x/es/components/popover/popover-menu.css +2 -2
- package/2x/es/components/progress-bar/progress-bar.css +1 -1
- package/2x/es/components/pull-to-refresh/pull-to-refresh.js +1 -1
- package/2x/es/components/rate/rate.d.ts +1 -1
- package/2x/es/components/steps/steps.js +5 -5
- package/2x/es/components/swipe-action/swipe-action.d.ts +4 -3
- package/2x/es/components/tag/tag.js +1 -1
- package/2x/es/components/text-area/text-area.js +11 -2
- package/2x/es/components/toast/toast.css +2 -2
- package/2x/es/components/water-mark/water-mark.js +1 -1
- package/2x/es/locales/base.d.ts +1 -1
- package/2x/es/locales/base.js +1 -1
- package/2x/es/locales/da-DK.d.ts +1 -1
- package/2x/es/locales/da-DK.js +1 -1
- package/2x/es/locales/en-US.d.ts +1 -1
- package/2x/es/locales/es-ES.d.ts +1 -1
- package/2x/es/locales/es-ES.js +1 -1
- package/2x/es/locales/fa-IR.d.ts +1 -1
- package/2x/es/locales/fa-IR.js +1 -1
- package/2x/es/locales/fr-FR.d.ts +1 -1
- package/2x/es/locales/fr-FR.js +1 -1
- package/2x/es/locales/id-ID.d.ts +1 -1
- package/2x/es/locales/id-ID.js +1 -1
- package/2x/es/locales/it-IT.d.ts +1 -1
- package/2x/es/locales/it-IT.js +1 -1
- package/2x/es/locales/ja-JP.d.ts +1 -1
- package/2x/es/locales/ja-JP.js +1 -1
- package/2x/es/locales/kk-KZ.d.ts +1 -1
- package/2x/es/locales/kk-KZ.js +1 -1
- package/2x/es/locales/ko-KR.d.ts +1 -1
- package/2x/es/locales/ko-KR.js +1 -1
- package/2x/es/locales/nb-NO.d.ts +1 -1
- package/2x/es/locales/nb-NO.js +1 -1
- package/2x/es/locales/nl-NL.d.ts +1 -1
- package/2x/es/locales/nl-NL.js +1 -1
- package/2x/es/locales/ru-RU.d.ts +1 -1
- package/2x/es/locales/ru-RU.js +1 -1
- package/2x/es/locales/zh-CN.d.ts +1 -1
- package/2x/es/locales/zh-CN.js +1 -1
- package/2x/es/locales/zh-HK.d.ts +1 -1
- package/2x/es/locales/zh-HK.js +1 -1
- package/2x/es/locales/zh-TW.d.ts +1 -1
- package/2x/es/locales/zh-TW.js +1 -1
- package/2x/es/utils/replace-message.d.ts +1 -0
- package/2x/es/utils/replace-message.js +7 -0
- package/2x/es/utils/use-lock-scroll.js +6 -2
- package/2x/package.json +1 -1
- package/bundle/antd-mobile.cjs.development.js +385 -302
- package/bundle/antd-mobile.cjs.js +9 -9
- package/bundle/antd-mobile.compatible.umd.js +1 -1
- package/bundle/antd-mobile.es.development.js +385 -302
- package/bundle/antd-mobile.es.js +5266 -5213
- package/bundle/antd-mobile.umd.development.js +385 -302
- package/bundle/antd-mobile.umd.js +9 -9
- package/bundle/style.css +1 -1
- package/cjs/components/action-sheet/action-sheet.css +1 -1
- package/cjs/components/button/button.css +2 -2
- package/cjs/components/calendar/calendar.js +5 -1
- package/cjs/components/center-popup/center-popup.js +6 -5
- package/cjs/components/collapse/collapse.js +27 -12
- package/cjs/components/ellipsis/ellipsis.js +4 -4
- package/cjs/components/error-block/create-error-block.js +4 -4
- package/cjs/components/error-block/error-block.css +1 -1
- package/cjs/components/floating-panel/floating-panel.js +8 -7
- package/cjs/components/form/form-item.d.ts +1 -1
- package/cjs/components/form/form-item.js +6 -9
- package/cjs/components/form/form.css +1 -1
- package/cjs/components/form/index.css +1 -1
- package/cjs/components/image-uploader/image-uploader.css +1 -1
- package/cjs/components/input/input.d.ts +2 -8
- package/cjs/components/notice-bar/notice-bar.css +2 -2
- package/cjs/components/number-keyboard/number-keyboard.css +2 -2
- package/cjs/components/picker-view/wheel.js +61 -14
- package/cjs/components/popover/popover-menu.css +2 -2
- package/cjs/components/progress-bar/progress-bar.css +1 -1
- package/cjs/components/pull-to-refresh/pull-to-refresh.js +1 -1
- package/cjs/components/rate/rate.d.ts +1 -1
- package/cjs/components/steps/steps.js +5 -5
- package/cjs/components/swipe-action/swipe-action.d.ts +4 -3
- package/cjs/components/tag/tag.js +1 -1
- package/cjs/components/text-area/text-area.js +11 -2
- package/cjs/components/toast/toast.css +2 -2
- package/cjs/components/water-mark/water-mark.js +1 -1
- package/cjs/locales/base.d.ts +1 -1
- package/cjs/locales/base.js +1 -1
- package/cjs/locales/da-DK.d.ts +1 -1
- package/cjs/locales/da-DK.js +1 -1
- package/cjs/locales/en-US.d.ts +1 -1
- package/cjs/locales/es-ES.d.ts +1 -1
- package/cjs/locales/es-ES.js +1 -1
- package/cjs/locales/fa-IR.d.ts +1 -1
- package/cjs/locales/fa-IR.js +1 -1
- package/cjs/locales/fr-FR.d.ts +1 -1
- package/cjs/locales/fr-FR.js +1 -1
- package/cjs/locales/id-ID.d.ts +1 -1
- package/cjs/locales/id-ID.js +1 -1
- package/cjs/locales/it-IT.d.ts +1 -1
- package/cjs/locales/it-IT.js +1 -1
- package/cjs/locales/ja-JP.d.ts +1 -1
- package/cjs/locales/ja-JP.js +1 -1
- package/cjs/locales/kk-KZ.d.ts +1 -1
- package/cjs/locales/kk-KZ.js +1 -1
- package/cjs/locales/ko-KR.d.ts +1 -1
- package/cjs/locales/ko-KR.js +1 -1
- package/cjs/locales/nb-NO.d.ts +1 -1
- package/cjs/locales/nb-NO.js +1 -1
- package/cjs/locales/nl-NL.d.ts +1 -1
- package/cjs/locales/nl-NL.js +1 -1
- package/cjs/locales/ru-RU.d.ts +1 -1
- package/cjs/locales/ru-RU.js +1 -1
- package/cjs/locales/zh-CN.d.ts +1 -1
- package/cjs/locales/zh-CN.js +1 -1
- package/cjs/locales/zh-HK.d.ts +1 -1
- package/cjs/locales/zh-HK.js +1 -1
- package/cjs/locales/zh-TW.d.ts +1 -1
- package/cjs/locales/zh-TW.js +1 -1
- package/cjs/utils/replace-message.d.ts +1 -0
- package/cjs/utils/replace-message.js +13 -0
- package/cjs/utils/use-lock-scroll.js +6 -2
- package/es/components/action-sheet/action-sheet.css +1 -1
- package/es/components/button/button.css +2 -2
- package/es/components/calendar/calendar.js +5 -1
- package/es/components/center-popup/center-popup.js +6 -5
- package/es/components/collapse/collapse.js +27 -12
- package/es/components/ellipsis/ellipsis.js +4 -4
- package/es/components/error-block/create-error-block.js +4 -4
- package/es/components/error-block/error-block.css +1 -1
- package/es/components/floating-panel/floating-panel.js +8 -7
- package/es/components/form/form-item.d.ts +1 -1
- package/es/components/form/form-item.js +6 -9
- package/es/components/form/form.css +1 -1
- package/es/components/form/index.css +1 -1
- package/es/components/image-uploader/image-uploader.css +1 -1
- package/es/components/input/input.d.ts +2 -8
- package/es/components/notice-bar/notice-bar.css +2 -2
- package/es/components/number-keyboard/number-keyboard.css +2 -2
- package/es/components/picker-view/wheel.js +61 -14
- package/es/components/popover/popover-menu.css +2 -2
- package/es/components/progress-bar/progress-bar.css +1 -1
- package/es/components/pull-to-refresh/pull-to-refresh.js +1 -1
- package/es/components/rate/rate.d.ts +1 -1
- package/es/components/steps/steps.js +5 -5
- package/es/components/swipe-action/swipe-action.d.ts +4 -3
- package/es/components/tag/tag.js +1 -1
- package/es/components/text-area/text-area.js +11 -2
- package/es/components/toast/toast.css +2 -2
- package/es/components/water-mark/water-mark.js +1 -1
- package/es/locales/base.d.ts +1 -1
- package/es/locales/base.js +1 -1
- package/es/locales/da-DK.d.ts +1 -1
- package/es/locales/da-DK.js +1 -1
- package/es/locales/en-US.d.ts +1 -1
- package/es/locales/es-ES.d.ts +1 -1
- package/es/locales/es-ES.js +1 -1
- package/es/locales/fa-IR.d.ts +1 -1
- package/es/locales/fa-IR.js +1 -1
- package/es/locales/fr-FR.d.ts +1 -1
- package/es/locales/fr-FR.js +1 -1
- package/es/locales/id-ID.d.ts +1 -1
- package/es/locales/id-ID.js +1 -1
- package/es/locales/it-IT.d.ts +1 -1
- package/es/locales/it-IT.js +1 -1
- package/es/locales/ja-JP.d.ts +1 -1
- package/es/locales/ja-JP.js +1 -1
- package/es/locales/kk-KZ.d.ts +1 -1
- package/es/locales/kk-KZ.js +1 -1
- package/es/locales/ko-KR.d.ts +1 -1
- package/es/locales/ko-KR.js +1 -1
- package/es/locales/nb-NO.d.ts +1 -1
- package/es/locales/nb-NO.js +1 -1
- package/es/locales/nl-NL.d.ts +1 -1
- package/es/locales/nl-NL.js +1 -1
- package/es/locales/ru-RU.d.ts +1 -1
- package/es/locales/ru-RU.js +1 -1
- package/es/locales/zh-CN.d.ts +1 -1
- package/es/locales/zh-CN.js +1 -1
- package/es/locales/zh-HK.d.ts +1 -1
- package/es/locales/zh-HK.js +1 -1
- package/es/locales/zh-TW.d.ts +1 -1
- package/es/locales/zh-TW.js +1 -1
- package/es/utils/replace-message.d.ts +1 -0
- package/es/utils/replace-message.js +7 -0
- package/es/utils/use-lock-scroll.js +6 -2
- package/package.json +1 -1
- package/umd/antd-mobile.js +1 -1
|
@@ -207,7 +207,7 @@ const base = {
|
|
|
207
207
|
},
|
|
208
208
|
Calendar: {
|
|
209
209
|
markItems: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
|
|
210
|
-
|
|
210
|
+
yearAndMonth: "${year}/${month}"
|
|
211
211
|
},
|
|
212
212
|
Cascader: {
|
|
213
213
|
placeholder: "Selecting"
|
|
@@ -341,7 +341,7 @@ const zhCN = mergeLocale(base, {
|
|
|
341
341
|
},
|
|
342
342
|
Calendar: {
|
|
343
343
|
markItems: ["\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D", "\u65E5"],
|
|
344
|
-
|
|
344
|
+
yearAndMonth: "${year}\u5E74${month}\u6708"
|
|
345
345
|
},
|
|
346
346
|
Cascader: {
|
|
347
347
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
@@ -3527,14 +3527,17 @@ function useLockScroll(rootRef, shouldLock) {
|
|
|
3527
3527
|
offsetHeight,
|
|
3528
3528
|
scrollTop
|
|
3529
3529
|
} = el;
|
|
3530
|
+
const {
|
|
3531
|
+
height
|
|
3532
|
+
} = el.getBoundingClientRect();
|
|
3530
3533
|
let status = "11";
|
|
3531
3534
|
if (scrollTop === 0) {
|
|
3532
3535
|
status = offsetHeight >= scrollHeight ? "00" : "01";
|
|
3533
|
-
} else if (
|
|
3536
|
+
} else if (scrollHeight <= Math.round(height + scrollTop)) {
|
|
3534
3537
|
status = "10";
|
|
3535
3538
|
}
|
|
3536
3539
|
if (status !== "11" && touch.isVertical() && !(parseInt(status, 2) & parseInt(direction, 2))) {
|
|
3537
|
-
if (event.cancelable) {
|
|
3540
|
+
if (event.cancelable && supportsPassive) {
|
|
3538
3541
|
event.preventDefault();
|
|
3539
3542
|
}
|
|
3540
3543
|
}
|
|
@@ -6801,7 +6804,7 @@ function withStopPropagation(events, element) {
|
|
|
6801
6804
|
}
|
|
6802
6805
|
return React__default.cloneElement(element, props);
|
|
6803
6806
|
}
|
|
6804
|
-
const classPrefix$
|
|
6807
|
+
const classPrefix$1n = `adm-mask`;
|
|
6805
6808
|
const opacityRecord = {
|
|
6806
6809
|
default: 0.55,
|
|
6807
6810
|
thin: 0.35,
|
|
@@ -6863,7 +6866,7 @@ const Mask$1 = (p) => {
|
|
|
6863
6866
|
}
|
|
6864
6867
|
});
|
|
6865
6868
|
const node = withStopPropagation(props.stopPropagation, withNativeProps(props, React__default.createElement(animated.div, {
|
|
6866
|
-
className: classPrefix$
|
|
6869
|
+
className: classPrefix$1n,
|
|
6867
6870
|
ref,
|
|
6868
6871
|
style: Object.assign(Object.assign({}, props.style), {
|
|
6869
6872
|
background,
|
|
@@ -6877,12 +6880,12 @@ const Mask$1 = (p) => {
|
|
|
6877
6880
|
}
|
|
6878
6881
|
}
|
|
6879
6882
|
}, props.onMaskClick && React__default.createElement("div", {
|
|
6880
|
-
className: `${classPrefix$
|
|
6883
|
+
className: `${classPrefix$1n}-aria-button`,
|
|
6881
6884
|
role: "button",
|
|
6882
6885
|
"aria-label": locale.Mask.name,
|
|
6883
6886
|
onClick: props.onMaskClick
|
|
6884
6887
|
}), React__default.createElement("div", {
|
|
6885
|
-
className: `${classPrefix$
|
|
6888
|
+
className: `${classPrefix$1n}-content`
|
|
6886
6889
|
}, props.children))));
|
|
6887
6890
|
return React__default.createElement(ShouldRender, {
|
|
6888
6891
|
active,
|
|
@@ -9294,14 +9297,14 @@ function createUseGesture(actions) {
|
|
|
9294
9297
|
return useRecognizers(handlers, config2, void 0, nativeHandlers);
|
|
9295
9298
|
};
|
|
9296
9299
|
}
|
|
9297
|
-
const classPrefix$
|
|
9300
|
+
const classPrefix$1m = `adm-popup`;
|
|
9298
9301
|
const defaultProps$12 = Object.assign(Object.assign({}, defaultPopupBaseProps), {
|
|
9299
9302
|
closeOnSwipe: false,
|
|
9300
9303
|
position: "bottom"
|
|
9301
9304
|
});
|
|
9302
9305
|
const Popup$1 = (p) => {
|
|
9303
9306
|
const props = mergeProps(defaultProps$12, p);
|
|
9304
|
-
const bodyCls = classNames(`${classPrefix$
|
|
9307
|
+
const bodyCls = classNames(`${classPrefix$1m}-body`, props.bodyClassName, `${classPrefix$1m}-body-position-${props.position}`);
|
|
9305
9308
|
const {
|
|
9306
9309
|
locale
|
|
9307
9310
|
} = useConfig();
|
|
@@ -9351,7 +9354,7 @@ const Popup$1 = (p) => {
|
|
|
9351
9354
|
});
|
|
9352
9355
|
const maskVisible = useInnerVisible(active && props.visible);
|
|
9353
9356
|
const node = withStopPropagation(props.stopPropagation, withNativeProps(props, React__default.createElement("div", Object.assign({
|
|
9354
|
-
className: classPrefix$
|
|
9357
|
+
className: classPrefix$1m,
|
|
9355
9358
|
onClick: props.onClick,
|
|
9356
9359
|
style: {
|
|
9357
9360
|
display: active ? void 0 : "none",
|
|
@@ -9393,7 +9396,7 @@ const Popup$1 = (p) => {
|
|
|
9393
9396
|
}),
|
|
9394
9397
|
ref
|
|
9395
9398
|
}, props.showCloseButton && React__default.createElement("a", {
|
|
9396
|
-
className: classNames(`${classPrefix$
|
|
9399
|
+
className: classNames(`${classPrefix$1m}-close-icon`, "adm-plain-anchor"),
|
|
9397
9400
|
onClick: () => {
|
|
9398
9401
|
var _a;
|
|
9399
9402
|
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
@@ -9409,10 +9412,10 @@ const Popup$1 = (p) => {
|
|
|
9409
9412
|
};
|
|
9410
9413
|
const Popup = Popup$1;
|
|
9411
9414
|
const safeArea = "";
|
|
9412
|
-
const classPrefix$
|
|
9415
|
+
const classPrefix$1l = "adm-safe-area";
|
|
9413
9416
|
const SafeArea$1 = (props) => {
|
|
9414
9417
|
return withNativeProps(props, React__default.createElement("div", {
|
|
9415
|
-
className: classNames(classPrefix$
|
|
9418
|
+
className: classNames(classPrefix$1l, `${classPrefix$1l}-position-${props.position}`)
|
|
9416
9419
|
}));
|
|
9417
9420
|
};
|
|
9418
9421
|
const SafeArea = SafeArea$1;
|
|
@@ -9545,7 +9548,7 @@ function renderImperatively(element) {
|
|
|
9545
9548
|
}
|
|
9546
9549
|
};
|
|
9547
9550
|
}
|
|
9548
|
-
const classPrefix$
|
|
9551
|
+
const classPrefix$1k = `adm-action-sheet`;
|
|
9549
9552
|
const defaultProps$11 = {
|
|
9550
9553
|
visible: false,
|
|
9551
9554
|
actions: [],
|
|
@@ -9568,25 +9571,25 @@ const ActionSheet = (p) => {
|
|
|
9568
9571
|
}
|
|
9569
9572
|
},
|
|
9570
9573
|
afterClose: props.afterClose,
|
|
9571
|
-
className: classNames(`${classPrefix$
|
|
9574
|
+
className: classNames(`${classPrefix$1k}-popup`, props.popupClassName),
|
|
9572
9575
|
style: props.popupStyle,
|
|
9573
9576
|
getContainer: props.getContainer,
|
|
9574
9577
|
destroyOnClose: props.destroyOnClose,
|
|
9575
9578
|
forceRender: props.forceRender
|
|
9576
9579
|
}, withNativeProps(props, React__default.createElement("div", {
|
|
9577
|
-
className: classPrefix$
|
|
9580
|
+
className: classPrefix$1k
|
|
9578
9581
|
}, props.extra && React__default.createElement("div", {
|
|
9579
|
-
className: `${classPrefix$
|
|
9582
|
+
className: `${classPrefix$1k}-extra`
|
|
9580
9583
|
}, props.extra), React__default.createElement("div", {
|
|
9581
|
-
className: `${classPrefix$
|
|
9584
|
+
className: `${classPrefix$1k}-button-list`
|
|
9582
9585
|
}, props.actions.map((action, index2) => React__default.createElement("div", {
|
|
9583
9586
|
key: action.key,
|
|
9584
|
-
className: `${classPrefix$
|
|
9587
|
+
className: `${classPrefix$1k}-button-item-wrapper`
|
|
9585
9588
|
}, React__default.createElement("a", {
|
|
9586
|
-
className: classNames("adm-plain-anchor", `${classPrefix$
|
|
9587
|
-
[`${classPrefix$
|
|
9588
|
-
[`${classPrefix$
|
|
9589
|
-
[`${classPrefix$
|
|
9589
|
+
className: classNames("adm-plain-anchor", `${classPrefix$1k}-button-item`, {
|
|
9590
|
+
[`${classPrefix$1k}-button-item-danger`]: action.danger,
|
|
9591
|
+
[`${classPrefix$1k}-button-item-disabled`]: action.disabled,
|
|
9592
|
+
[`${classPrefix$1k}-button-item-bold`]: action.bold
|
|
9590
9593
|
}),
|
|
9591
9594
|
onClick: () => {
|
|
9592
9595
|
var _a, _b, _c;
|
|
@@ -9599,23 +9602,23 @@ const ActionSheet = (p) => {
|
|
|
9599
9602
|
role: "option",
|
|
9600
9603
|
"aria-disabled": action.disabled
|
|
9601
9604
|
}, React__default.createElement("div", {
|
|
9602
|
-
className: `${classPrefix$
|
|
9605
|
+
className: `${classPrefix$1k}-button-item-name`
|
|
9603
9606
|
}, action.text), action.description && React__default.createElement("div", {
|
|
9604
|
-
className: `${classPrefix$
|
|
9607
|
+
className: `${classPrefix$1k}-button-item-description`
|
|
9605
9608
|
}, action.description))))), props.cancelText && React__default.createElement("div", {
|
|
9606
|
-
className: `${classPrefix$
|
|
9609
|
+
className: `${classPrefix$1k}-cancel`,
|
|
9607
9610
|
role: "option",
|
|
9608
9611
|
"aria-label": props.cancelText
|
|
9609
9612
|
}, React__default.createElement("div", {
|
|
9610
|
-
className: `${classPrefix$
|
|
9613
|
+
className: `${classPrefix$1k}-button-item-wrapper`
|
|
9611
9614
|
}, React__default.createElement("a", {
|
|
9612
|
-
className: classNames("adm-plain-anchor", `${classPrefix$
|
|
9615
|
+
className: classNames("adm-plain-anchor", `${classPrefix$1k}-button-item`),
|
|
9613
9616
|
onClick: () => {
|
|
9614
9617
|
var _a;
|
|
9615
9618
|
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
9616
9619
|
}
|
|
9617
9620
|
}, React__default.createElement("div", {
|
|
9618
|
-
className: `${classPrefix$
|
|
9621
|
+
className: `${classPrefix$1k}-button-item-name`
|
|
9619
9622
|
}, props.cancelText)))), props.safeArea && React__default.createElement(SafeArea, {
|
|
9620
9623
|
position: "bottom"
|
|
9621
9624
|
}))));
|
|
@@ -9627,12 +9630,12 @@ const index$j = attachPropertiesToComponent(ActionSheet, {
|
|
|
9627
9630
|
show: showActionSheet
|
|
9628
9631
|
});
|
|
9629
9632
|
const autoCenter = "";
|
|
9630
|
-
const classPrefix$
|
|
9633
|
+
const classPrefix$1j = "adm-auto-center";
|
|
9631
9634
|
const AutoCenter$1 = (props) => {
|
|
9632
9635
|
return withNativeProps(props, React__default.createElement("div", {
|
|
9633
|
-
className: classPrefix$
|
|
9636
|
+
className: classPrefix$1j
|
|
9634
9637
|
}, React__default.createElement("div", {
|
|
9635
|
-
className: `${classPrefix$
|
|
9638
|
+
className: `${classPrefix$1j}-content`
|
|
9636
9639
|
}, props.children)));
|
|
9637
9640
|
};
|
|
9638
9641
|
const AutoCenter = AutoCenter$1;
|
|
@@ -9733,14 +9736,14 @@ const BrokenImageIcon = () => React__default.createElement("svg", {
|
|
|
9733
9736
|
fill: "#DBDBDB",
|
|
9734
9737
|
fillRule: "nonzero"
|
|
9735
9738
|
}));
|
|
9736
|
-
const classPrefix$
|
|
9739
|
+
const classPrefix$1i = `adm-image`;
|
|
9737
9740
|
const defaultProps$10 = {
|
|
9738
9741
|
fit: "fill",
|
|
9739
9742
|
placeholder: React__default.createElement("div", {
|
|
9740
|
-
className: `${classPrefix$
|
|
9743
|
+
className: `${classPrefix$1i}-tip`
|
|
9741
9744
|
}, React__default.createElement(ImageIcon, null)),
|
|
9742
9745
|
fallback: React__default.createElement("div", {
|
|
9743
|
-
className: `${classPrefix$
|
|
9746
|
+
className: `${classPrefix$1i}-tip`
|
|
9744
9747
|
}, React__default.createElement(BrokenImageIcon, null)),
|
|
9745
9748
|
lazy: false,
|
|
9746
9749
|
draggable: false
|
|
@@ -9773,7 +9776,7 @@ const Image$2 = staged_1((p) => {
|
|
|
9773
9776
|
const img = React__default.createElement("img", {
|
|
9774
9777
|
ref: imgRef,
|
|
9775
9778
|
id: props.id,
|
|
9776
|
-
className: `${classPrefix$
|
|
9779
|
+
className: `${classPrefix$1i}-img`,
|
|
9777
9780
|
src,
|
|
9778
9781
|
alt: props.alt,
|
|
9779
9782
|
onClick: props.onClick,
|
|
@@ -9813,7 +9816,7 @@ const Image$2 = staged_1((p) => {
|
|
|
9813
9816
|
}
|
|
9814
9817
|
return withNativeProps(props, React__default.createElement("div", {
|
|
9815
9818
|
ref,
|
|
9816
|
-
className: classPrefix$
|
|
9819
|
+
className: classPrefix$1i,
|
|
9817
9820
|
style,
|
|
9818
9821
|
onClick: props.onContainerClick
|
|
9819
9822
|
}, props.lazy && !initialized && React__default.createElement(LazyDetector, {
|
|
@@ -9823,7 +9826,7 @@ const Image$2 = staged_1((p) => {
|
|
|
9823
9826
|
}), renderInner()));
|
|
9824
9827
|
});
|
|
9825
9828
|
const Image$1 = Image$2;
|
|
9826
|
-
const classPrefix$
|
|
9829
|
+
const classPrefix$1h = "adm-avatar";
|
|
9827
9830
|
const defaultProps$$ = {
|
|
9828
9831
|
fallback: React__default.createElement(Fallback, null),
|
|
9829
9832
|
fit: "cover"
|
|
@@ -9831,7 +9834,7 @@ const defaultProps$$ = {
|
|
|
9831
9834
|
const Avatar$1 = (p) => {
|
|
9832
9835
|
const props = mergeProps(defaultProps$$, p);
|
|
9833
9836
|
return withNativeProps(props, React__default.createElement(Image$1, {
|
|
9834
|
-
className: classPrefix$
|
|
9837
|
+
className: classPrefix$1h,
|
|
9835
9838
|
src: props.src,
|
|
9836
9839
|
fallback: props.fallback,
|
|
9837
9840
|
placeholder: props.fallback,
|
|
@@ -9845,7 +9848,7 @@ const Avatar$1 = (p) => {
|
|
|
9845
9848
|
};
|
|
9846
9849
|
const Avatar = Avatar$1;
|
|
9847
9850
|
const badge = "";
|
|
9848
|
-
const classPrefix$
|
|
9851
|
+
const classPrefix$1g = `adm-badge`;
|
|
9849
9852
|
const dot = React__default.createElement(React__default.Fragment, null);
|
|
9850
9853
|
const Badge$1 = (props) => {
|
|
9851
9854
|
const {
|
|
@@ -9854,17 +9857,17 @@ const Badge$1 = (props) => {
|
|
|
9854
9857
|
children
|
|
9855
9858
|
} = props;
|
|
9856
9859
|
const isDot = content === dot;
|
|
9857
|
-
const badgeCls = classNames(classPrefix$
|
|
9860
|
+
const badgeCls = classNames(classPrefix$1g, !!children && `${classPrefix$1g}-fixed`, isDot && `${classPrefix$1g}-dot`, props.bordered && `${classPrefix$1g}-bordered`);
|
|
9858
9861
|
const element = content || content === 0 ? withNativeProps(props, React__default.createElement("div", {
|
|
9859
9862
|
className: badgeCls,
|
|
9860
9863
|
style: {
|
|
9861
9864
|
"--color": color
|
|
9862
9865
|
}
|
|
9863
9866
|
}, !isDot && React__default.createElement("div", {
|
|
9864
|
-
className: `${classPrefix$
|
|
9867
|
+
className: `${classPrefix$1g}-content`
|
|
9865
9868
|
}, content))) : null;
|
|
9866
9869
|
return children ? React__default.createElement("div", {
|
|
9867
|
-
className: classNames(`${classPrefix$
|
|
9870
|
+
className: classNames(`${classPrefix$1g}-wrapper`, props.wrapperClassName),
|
|
9868
9871
|
style: props.wrapperStyle
|
|
9869
9872
|
}, children, element) : element;
|
|
9870
9873
|
};
|
|
@@ -9873,7 +9876,7 @@ const Badge = attachPropertiesToComponent(Badge$1, {
|
|
|
9873
9876
|
});
|
|
9874
9877
|
const button = "";
|
|
9875
9878
|
const dotLoading = "";
|
|
9876
|
-
const classPrefix$
|
|
9879
|
+
const classPrefix$1f = `adm-dot-loading`;
|
|
9877
9880
|
const colorRecord$3 = {
|
|
9878
9881
|
default: "var(--adm-color-weak)",
|
|
9879
9882
|
primary: "var(--adm-color-primary)",
|
|
@@ -9889,7 +9892,7 @@ const DotLoading$2 = memo((p) => {
|
|
|
9889
9892
|
style: {
|
|
9890
9893
|
color: (_a = colorRecord$3[props.color]) !== null && _a !== void 0 ? _a : props.color
|
|
9891
9894
|
},
|
|
9892
|
-
className: classNames("adm-loading", classPrefix$
|
|
9895
|
+
className: classNames("adm-loading", classPrefix$1f)
|
|
9893
9896
|
}, React__default.createElement("svg", {
|
|
9894
9897
|
height: "1em",
|
|
9895
9898
|
viewBox: "0 0 100 40",
|
|
@@ -9933,7 +9936,7 @@ function isPromise(obj) {
|
|
|
9933
9936
|
function isIOS() {
|
|
9934
9937
|
return canUseDom$2 ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : false;
|
|
9935
9938
|
}
|
|
9936
|
-
const classPrefix$
|
|
9939
|
+
const classPrefix$1e = `adm-button`;
|
|
9937
9940
|
const defaultProps$Z = {
|
|
9938
9941
|
color: "default",
|
|
9939
9942
|
fill: "solid",
|
|
@@ -9976,23 +9979,23 @@ const Button$1 = forwardRef((p, ref) => {
|
|
|
9976
9979
|
ref: nativeButtonRef,
|
|
9977
9980
|
type: props.type,
|
|
9978
9981
|
onClick: handleClick,
|
|
9979
|
-
className: classNames(classPrefix$
|
|
9980
|
-
[`${classPrefix$
|
|
9981
|
-
[`${classPrefix$
|
|
9982
|
-
[`${classPrefix$
|
|
9983
|
-
[`${classPrefix$
|
|
9984
|
-
[`${classPrefix$
|
|
9985
|
-
[`${classPrefix$
|
|
9986
|
-
[`${classPrefix$
|
|
9987
|
-
[`${classPrefix$
|
|
9988
|
-
}, `${classPrefix$
|
|
9982
|
+
className: classNames(classPrefix$1e, props.color ? `${classPrefix$1e}-${props.color}` : null, {
|
|
9983
|
+
[`${classPrefix$1e}-block`]: props.block,
|
|
9984
|
+
[`${classPrefix$1e}-disabled`]: disabled,
|
|
9985
|
+
[`${classPrefix$1e}-fill-outline`]: props.fill === "outline",
|
|
9986
|
+
[`${classPrefix$1e}-fill-none`]: props.fill === "none",
|
|
9987
|
+
[`${classPrefix$1e}-mini`]: props.size === "mini",
|
|
9988
|
+
[`${classPrefix$1e}-small`]: props.size === "small",
|
|
9989
|
+
[`${classPrefix$1e}-large`]: props.size === "large",
|
|
9990
|
+
[`${classPrefix$1e}-loading`]: loading
|
|
9991
|
+
}, `${classPrefix$1e}-shape-${props.shape}`),
|
|
9989
9992
|
disabled,
|
|
9990
9993
|
onMouseDown: props.onMouseDown,
|
|
9991
9994
|
onMouseUp: props.onMouseUp,
|
|
9992
9995
|
onTouchStart: props.onTouchStart,
|
|
9993
9996
|
onTouchEnd: props.onTouchEnd
|
|
9994
9997
|
}, loading ? React__default.createElement("div", {
|
|
9995
|
-
className: `${classPrefix$
|
|
9998
|
+
className: `${classPrefix$1e}-loading-wrapper`
|
|
9996
9999
|
}, props.loadingIcon, props.loadingText) : React__default.createElement("span", null, props.children)));
|
|
9997
10000
|
});
|
|
9998
10001
|
const Button = Button$1;
|
|
@@ -10101,6 +10104,12 @@ function usePropsValue(options) {
|
|
|
10101
10104
|
});
|
|
10102
10105
|
return [stateRef.current, setState];
|
|
10103
10106
|
}
|
|
10107
|
+
function replaceMessage$1(template, kv) {
|
|
10108
|
+
return template.replace(/\$\{\w+\}/g, (str) => {
|
|
10109
|
+
const key = str.slice(2, -1);
|
|
10110
|
+
return kv[key];
|
|
10111
|
+
});
|
|
10112
|
+
}
|
|
10104
10113
|
function convertValueToRange(selectionMode, value) {
|
|
10105
10114
|
if (selectionMode === void 0 || value === null)
|
|
10106
10115
|
return null;
|
|
@@ -10113,7 +10122,7 @@ function convertPageToDayjs(page) {
|
|
|
10113
10122
|
return dayjs().year(page.year).month(page.month - 1).date(1);
|
|
10114
10123
|
}
|
|
10115
10124
|
dayjs.extend(isoWeek);
|
|
10116
|
-
const classPrefix$
|
|
10125
|
+
const classPrefix$1d = "adm-calendar";
|
|
10117
10126
|
const defaultProps$Y = {
|
|
10118
10127
|
weekStartsOn: "Sunday",
|
|
10119
10128
|
defaultValue: null,
|
|
@@ -10187,26 +10196,29 @@ const Calendar$1 = forwardRef((p, ref) => {
|
|
|
10187
10196
|
setCurrent(nxtCurrent);
|
|
10188
10197
|
};
|
|
10189
10198
|
const header = React__default.createElement("div", {
|
|
10190
|
-
className: `${classPrefix$
|
|
10199
|
+
className: `${classPrefix$1d}-header`
|
|
10191
10200
|
}, React__default.createElement("a", {
|
|
10192
|
-
className: `${classPrefix$
|
|
10201
|
+
className: `${classPrefix$1d}-arrow-button ${classPrefix$1d}-arrow-button-year`,
|
|
10193
10202
|
onClick: () => {
|
|
10194
10203
|
handlePageChange("subtract", 1, "year");
|
|
10195
10204
|
}
|
|
10196
10205
|
}, props.prevYearButton), React__default.createElement("a", {
|
|
10197
|
-
className: `${classPrefix$
|
|
10206
|
+
className: `${classPrefix$1d}-arrow-button ${classPrefix$1d}-arrow-button-month`,
|
|
10198
10207
|
onClick: () => {
|
|
10199
10208
|
handlePageChange("subtract", 1, "month");
|
|
10200
10209
|
}
|
|
10201
10210
|
}, props.prevMonthButton), React__default.createElement("div", {
|
|
10202
|
-
className: `${classPrefix$
|
|
10203
|
-
}, locale.Calendar.
|
|
10204
|
-
|
|
10211
|
+
className: `${classPrefix$1d}-title`
|
|
10212
|
+
}, replaceMessage$1(locale.Calendar.yearAndMonth, {
|
|
10213
|
+
year: current.year().toString(),
|
|
10214
|
+
month: (current.month() + 1).toString()
|
|
10215
|
+
})), React__default.createElement("a", {
|
|
10216
|
+
className: classNames(`${classPrefix$1d}-arrow-button`, `${classPrefix$1d}-arrow-button-right`, `${classPrefix$1d}-arrow-button-right-month`),
|
|
10205
10217
|
onClick: () => {
|
|
10206
10218
|
handlePageChange("add", 1, "month");
|
|
10207
10219
|
}
|
|
10208
10220
|
}, props.nextMonthButton), React__default.createElement("a", {
|
|
10209
|
-
className: classNames(`${classPrefix$
|
|
10221
|
+
className: classNames(`${classPrefix$1d}-arrow-button`, `${classPrefix$1d}-arrow-button-right`, `${classPrefix$1d}-arrow-button-right-year`),
|
|
10210
10222
|
onClick: () => {
|
|
10211
10223
|
handlePageChange("add", 1, "year");
|
|
10212
10224
|
}
|
|
@@ -10241,13 +10253,13 @@ const Calendar$1 = forwardRef((p, ref) => {
|
|
|
10241
10253
|
const disabled = props.shouldDisableDate ? props.shouldDisableDate(d.toDate()) : maxDay && d.isAfter(maxDay, "day") || minDay && d.isBefore(minDay, "day");
|
|
10242
10254
|
cells.push(React__default.createElement("div", {
|
|
10243
10255
|
key: d.valueOf(),
|
|
10244
|
-
className: classNames(`${classPrefix$
|
|
10245
|
-
[`${classPrefix$
|
|
10246
|
-
[`${classPrefix$
|
|
10247
|
-
[`${classPrefix$
|
|
10248
|
-
[`${classPrefix$
|
|
10249
|
-
[`${classPrefix$
|
|
10250
|
-
[`${classPrefix$
|
|
10256
|
+
className: classNames(`${classPrefix$1d}-cell`, (disabled || !inThisMonth) && `${classPrefix$1d}-cell-disabled`, inThisMonth && {
|
|
10257
|
+
[`${classPrefix$1d}-cell-today`]: d.isSame(today, "day"),
|
|
10258
|
+
[`${classPrefix$1d}-cell-selected`]: isSelect,
|
|
10259
|
+
[`${classPrefix$1d}-cell-selected-begin`]: isBegin,
|
|
10260
|
+
[`${classPrefix$1d}-cell-selected-end`]: isEnd,
|
|
10261
|
+
[`${classPrefix$1d}-cell-selected-row-begin`]: isSelectRowBegin,
|
|
10262
|
+
[`${classPrefix$1d}-cell-selected-row-end`]: isSelectRowEnd
|
|
10251
10263
|
}),
|
|
10252
10264
|
onClick: () => {
|
|
10253
10265
|
if (!props.selectionMode)
|
|
@@ -10294,25 +10306,25 @@ const Calendar$1 = forwardRef((p, ref) => {
|
|
|
10294
10306
|
}
|
|
10295
10307
|
}
|
|
10296
10308
|
}, React__default.createElement("div", {
|
|
10297
|
-
className: `${classPrefix$
|
|
10309
|
+
className: `${classPrefix$1d}-cell-top`
|
|
10298
10310
|
}, props.renderDate ? props.renderDate(d.toDate()) : d.date()), React__default.createElement("div", {
|
|
10299
|
-
className: `${classPrefix$
|
|
10311
|
+
className: `${classPrefix$1d}-cell-bottom`
|
|
10300
10312
|
}, (_a = props.renderLabel) === null || _a === void 0 ? void 0 : _a.call(props, d.toDate()))));
|
|
10301
10313
|
iterator = iterator.add(1, "day");
|
|
10302
10314
|
}
|
|
10303
10315
|
return cells;
|
|
10304
10316
|
}
|
|
10305
10317
|
const body = React__default.createElement("div", {
|
|
10306
|
-
className: `${classPrefix$
|
|
10318
|
+
className: `${classPrefix$1d}-cells`
|
|
10307
10319
|
}, renderCells());
|
|
10308
10320
|
const mark = React__default.createElement("div", {
|
|
10309
|
-
className: `${classPrefix$
|
|
10321
|
+
className: `${classPrefix$1d}-mark`
|
|
10310
10322
|
}, markItems.map((item, index2) => React__default.createElement("div", {
|
|
10311
10323
|
key: index2,
|
|
10312
|
-
className: `${classPrefix$
|
|
10324
|
+
className: `${classPrefix$1d}-mark-cell`
|
|
10313
10325
|
}, item)));
|
|
10314
10326
|
return withNativeProps(props, React__default.createElement("div", {
|
|
10315
|
-
className: classPrefix$
|
|
10327
|
+
className: classPrefix$1d
|
|
10316
10328
|
}, header, mark, body));
|
|
10317
10329
|
});
|
|
10318
10330
|
const Calendar = Calendar$1;
|
|
@@ -10416,7 +10428,7 @@ const useTabListScroll = (targetRef, activeIndex) => {
|
|
|
10416
10428
|
};
|
|
10417
10429
|
};
|
|
10418
10430
|
const scrollMask = "";
|
|
10419
|
-
const classPrefix$
|
|
10431
|
+
const classPrefix$1c = `adm-scroll-mask`;
|
|
10420
10432
|
const ScrollMask$1 = (props) => {
|
|
10421
10433
|
const maskRef = useRef(null);
|
|
10422
10434
|
const [{
|
|
@@ -10463,12 +10475,12 @@ const ScrollMask$1 = (props) => {
|
|
|
10463
10475
|
}, []);
|
|
10464
10476
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(animated.div, {
|
|
10465
10477
|
ref: maskRef,
|
|
10466
|
-
className: classNames(classPrefix$
|
|
10478
|
+
className: classNames(classPrefix$1c, `${classPrefix$1c}-left`),
|
|
10467
10479
|
style: {
|
|
10468
10480
|
opacity: leftMaskOpacity
|
|
10469
10481
|
}
|
|
10470
10482
|
}), React__default.createElement(animated.div, {
|
|
10471
|
-
className: classNames(classPrefix$
|
|
10483
|
+
className: classNames(classPrefix$1c, `${classPrefix$1c}-right`),
|
|
10472
10484
|
style: {
|
|
10473
10485
|
opacity: rightMaskOpacity
|
|
10474
10486
|
}
|
|
@@ -10675,7 +10687,7 @@ function traverseReactNode(children, fn) {
|
|
|
10675
10687
|
}
|
|
10676
10688
|
handle(children);
|
|
10677
10689
|
}
|
|
10678
|
-
const classPrefix$
|
|
10690
|
+
const classPrefix$1b = `adm-capsule-tabs`;
|
|
10679
10691
|
const CapsuleTab = () => null;
|
|
10680
10692
|
const CapsuleTabs = (props) => {
|
|
10681
10693
|
var _a;
|
|
@@ -10714,19 +10726,19 @@ const CapsuleTabs = (props) => {
|
|
|
10714
10726
|
animate(true);
|
|
10715
10727
|
}, rootRef);
|
|
10716
10728
|
return withNativeProps(props, React__default.createElement("div", {
|
|
10717
|
-
className: classPrefix$
|
|
10729
|
+
className: classPrefix$1b,
|
|
10718
10730
|
ref: rootRef
|
|
10719
10731
|
}, React__default.createElement("div", {
|
|
10720
|
-
className: `${classPrefix$
|
|
10732
|
+
className: `${classPrefix$1b}-header`
|
|
10721
10733
|
}, React__default.createElement(ScrollMask, {
|
|
10722
10734
|
scrollTrackRef: tabListContainerRef
|
|
10723
10735
|
}), React__default.createElement(animated.div, {
|
|
10724
|
-
className: `${classPrefix$
|
|
10736
|
+
className: `${classPrefix$1b}-tab-list`,
|
|
10725
10737
|
ref: tabListContainerRef,
|
|
10726
10738
|
scrollLeft
|
|
10727
10739
|
}, panes.map((pane) => withNativeProps(pane.props, React__default.createElement("div", {
|
|
10728
10740
|
key: pane.key,
|
|
10729
|
-
className: `${classPrefix$
|
|
10741
|
+
className: `${classPrefix$1b}-tab-wrapper`
|
|
10730
10742
|
}, React__default.createElement("div", {
|
|
10731
10743
|
onClick: () => {
|
|
10732
10744
|
const {
|
|
@@ -10739,9 +10751,9 @@ const CapsuleTabs = (props) => {
|
|
|
10739
10751
|
}
|
|
10740
10752
|
setActiveKey(key.toString());
|
|
10741
10753
|
},
|
|
10742
|
-
className: classNames(`${classPrefix$
|
|
10743
|
-
[`${classPrefix$
|
|
10744
|
-
[`${classPrefix$
|
|
10754
|
+
className: classNames(`${classPrefix$1b}-tab`, {
|
|
10755
|
+
[`${classPrefix$1b}-tab-active`]: pane.key === activeKey,
|
|
10756
|
+
[`${classPrefix$1b}-tab-disabled`]: pane.props.disabled
|
|
10745
10757
|
})
|
|
10746
10758
|
}, pane.props.title)))))), panes.map((pane) => {
|
|
10747
10759
|
if (pane.props.children === void 0) {
|
|
@@ -10754,7 +10766,7 @@ const CapsuleTabs = (props) => {
|
|
|
10754
10766
|
forceRender: pane.props.forceRender,
|
|
10755
10767
|
destroyOnClose: pane.props.destroyOnClose
|
|
10756
10768
|
}, React__default.createElement("div", {
|
|
10757
|
-
className: `${classPrefix$
|
|
10769
|
+
className: `${classPrefix$1b}-content`,
|
|
10758
10770
|
style: {
|
|
10759
10771
|
display: active ? "block" : "none"
|
|
10760
10772
|
}
|
|
@@ -10765,18 +10777,18 @@ const index$i = attachPropertiesToComponent(CapsuleTabs, {
|
|
|
10765
10777
|
Tab: CapsuleTab
|
|
10766
10778
|
});
|
|
10767
10779
|
const card = "";
|
|
10768
|
-
const classPrefix$
|
|
10780
|
+
const classPrefix$1a = `adm-card`;
|
|
10769
10781
|
const Card$1 = (props) => {
|
|
10770
10782
|
const renderHeader = () => {
|
|
10771
10783
|
if (!(props.title || props.extra)) {
|
|
10772
10784
|
return null;
|
|
10773
10785
|
}
|
|
10774
10786
|
return React__default.createElement("div", {
|
|
10775
|
-
className: classNames(`${classPrefix$
|
|
10787
|
+
className: classNames(`${classPrefix$1a}-header`, props.headerClassName),
|
|
10776
10788
|
style: props.headerStyle,
|
|
10777
10789
|
onClick: props.onHeaderClick
|
|
10778
10790
|
}, React__default.createElement("div", {
|
|
10779
|
-
className: `${classPrefix$
|
|
10791
|
+
className: `${classPrefix$1a}-header-title`
|
|
10780
10792
|
}, props.title), props.extra);
|
|
10781
10793
|
};
|
|
10782
10794
|
const renderBody = () => {
|
|
@@ -10784,13 +10796,13 @@ const Card$1 = (props) => {
|
|
|
10784
10796
|
return null;
|
|
10785
10797
|
}
|
|
10786
10798
|
return React__default.createElement("div", {
|
|
10787
|
-
className: classNames(`${classPrefix$
|
|
10799
|
+
className: classNames(`${classPrefix$1a}-body`, props.bodyClassName),
|
|
10788
10800
|
style: props.bodyStyle,
|
|
10789
10801
|
onClick: props.onBodyClick
|
|
10790
10802
|
}, props.children);
|
|
10791
10803
|
};
|
|
10792
10804
|
return withNativeProps(props, React__default.createElement("div", {
|
|
10793
|
-
className: classPrefix$
|
|
10805
|
+
className: classPrefix$1a,
|
|
10794
10806
|
onClick: props.onClick
|
|
10795
10807
|
}, renderHeader(), renderBody()));
|
|
10796
10808
|
};
|
|
@@ -10840,7 +10852,7 @@ function measureCSSLength(raw) {
|
|
|
10840
10852
|
return 0;
|
|
10841
10853
|
}
|
|
10842
10854
|
}
|
|
10843
|
-
const classPrefix$
|
|
10855
|
+
const classPrefix$19 = `adm-picker-view`;
|
|
10844
10856
|
const Wheel = memo((props) => {
|
|
10845
10857
|
const {
|
|
10846
10858
|
value,
|
|
@@ -10907,17 +10919,66 @@ const Wheel = memo((props) => {
|
|
|
10907
10919
|
return;
|
|
10908
10920
|
onSelect(item.value);
|
|
10909
10921
|
}
|
|
10922
|
+
const handleGestureState = (state) => {
|
|
10923
|
+
const {
|
|
10924
|
+
direction: [, direction],
|
|
10925
|
+
distance: [, distance],
|
|
10926
|
+
velocity: [, velocity],
|
|
10927
|
+
offset: [, offset2],
|
|
10928
|
+
last
|
|
10929
|
+
} = state;
|
|
10930
|
+
return {
|
|
10931
|
+
direction,
|
|
10932
|
+
distance,
|
|
10933
|
+
velocity,
|
|
10934
|
+
offset: offset2,
|
|
10935
|
+
last
|
|
10936
|
+
};
|
|
10937
|
+
};
|
|
10910
10938
|
const handleDrag = (state) => {
|
|
10911
10939
|
draggingRef.current = true;
|
|
10912
10940
|
const min2 = -((column.length - 1) * itemHeight.current);
|
|
10913
10941
|
const max2 = 0;
|
|
10914
|
-
|
|
10942
|
+
const {
|
|
10943
|
+
direction,
|
|
10944
|
+
last,
|
|
10945
|
+
velocity,
|
|
10946
|
+
offset: offset2
|
|
10947
|
+
} = handleGestureState(state);
|
|
10948
|
+
if (last) {
|
|
10949
|
+
draggingRef.current = false;
|
|
10950
|
+
const position = offset2 + velocity * direction * 50;
|
|
10951
|
+
const boundNum = bound(position, min2, max2);
|
|
10952
|
+
const targetIndex = -Math.round(boundNum / itemHeight.current);
|
|
10953
|
+
scrollSelect(targetIndex);
|
|
10954
|
+
} else {
|
|
10955
|
+
const position = offset2;
|
|
10956
|
+
api.start({
|
|
10957
|
+
y: rubberbandIfOutOfBounds(position, min2, max2, itemHeight.current * 50, 0.2)
|
|
10958
|
+
});
|
|
10959
|
+
}
|
|
10960
|
+
};
|
|
10961
|
+
const handleWheel = (state) => {
|
|
10962
|
+
draggingRef.current = true;
|
|
10963
|
+
const min2 = -((column.length - 1) * itemHeight.current);
|
|
10964
|
+
const max2 = 0;
|
|
10965
|
+
const {
|
|
10966
|
+
direction,
|
|
10967
|
+
last,
|
|
10968
|
+
velocity,
|
|
10969
|
+
distance
|
|
10970
|
+
} = handleGestureState(state);
|
|
10971
|
+
const whellDir = -direction;
|
|
10972
|
+
const scrollY = y.get();
|
|
10973
|
+
if (last) {
|
|
10915
10974
|
draggingRef.current = false;
|
|
10916
|
-
const
|
|
10917
|
-
const
|
|
10975
|
+
const speed = velocity * whellDir * 50;
|
|
10976
|
+
const position = scrollY + distance * whellDir + speed;
|
|
10977
|
+
const boundNum = bound(position, min2, max2);
|
|
10978
|
+
const targetIndex = -Math.round(boundNum / itemHeight.current);
|
|
10918
10979
|
scrollSelect(targetIndex);
|
|
10919
10980
|
} else {
|
|
10920
|
-
const position =
|
|
10981
|
+
const position = scrollY + distance * whellDir;
|
|
10921
10982
|
api.start({
|
|
10922
10983
|
y: rubberbandIfOutOfBounds(position, min2, max2, itemHeight.current * 50, 0.2)
|
|
10923
10984
|
});
|
|
@@ -10937,15 +10998,15 @@ const Wheel = memo((props) => {
|
|
|
10937
10998
|
});
|
|
10938
10999
|
useWheel((state) => {
|
|
10939
11000
|
state.event.stopPropagation();
|
|
10940
|
-
|
|
11001
|
+
handleWheel(state);
|
|
10941
11002
|
}, {
|
|
11003
|
+
target: props.mouseWheel ? rootRef : void 0,
|
|
10942
11004
|
axis: "y",
|
|
10943
11005
|
from: () => [0, y.get()],
|
|
10944
11006
|
preventDefault: true,
|
|
10945
|
-
target: props.mouseWheel ? rootRef : void 0,
|
|
10946
11007
|
eventOptions: supportsPassive ? {
|
|
10947
11008
|
passive: false
|
|
10948
|
-
} :
|
|
11009
|
+
} : void 0
|
|
10949
11010
|
});
|
|
10950
11011
|
let selectedIndex = null;
|
|
10951
11012
|
function renderAccessible() {
|
|
@@ -10958,13 +11019,13 @@ const Wheel = memo((props) => {
|
|
|
10958
11019
|
const previous = column[previousIndex];
|
|
10959
11020
|
const next = column[nextIndex];
|
|
10960
11021
|
return React__default.createElement("div", {
|
|
10961
|
-
className:
|
|
11022
|
+
className: `${classPrefix$19}-column-accessible`
|
|
10962
11023
|
}, React__default.createElement("div", {
|
|
10963
|
-
className:
|
|
11024
|
+
className: `${classPrefix$19}-column-accessible-current`,
|
|
10964
11025
|
role: "button",
|
|
10965
11026
|
"aria-label": current ? `\u5F53\u524D\u9009\u62E9\u7684\u662F\uFF1A${current.label}` : "\u5F53\u524D\u672A\u9009\u62E9"
|
|
10966
11027
|
}, "-"), React__default.createElement("div", {
|
|
10967
|
-
className:
|
|
11028
|
+
className: `${classPrefix$19}-column-accessible-button`,
|
|
10968
11029
|
onClick: () => {
|
|
10969
11030
|
if (!previous)
|
|
10970
11031
|
return;
|
|
@@ -10973,7 +11034,7 @@ const Wheel = memo((props) => {
|
|
|
10973
11034
|
role: previous ? "button" : "text",
|
|
10974
11035
|
"aria-label": !previous ? "\u6CA1\u6709\u4E0A\u4E00\u9879" : `\u9009\u62E9\u4E0A\u4E00\u9879\uFF1A${previous.label}`
|
|
10975
11036
|
}, "-"), React__default.createElement("div", {
|
|
10976
|
-
className:
|
|
11037
|
+
className: `${classPrefix$19}-column-accessible-button`,
|
|
10977
11038
|
onClick: () => {
|
|
10978
11039
|
if (!next)
|
|
10979
11040
|
return;
|
|
@@ -10984,16 +11045,16 @@ const Wheel = memo((props) => {
|
|
|
10984
11045
|
}, "-"));
|
|
10985
11046
|
}
|
|
10986
11047
|
return React__default.createElement("div", {
|
|
10987
|
-
className: `${classPrefix$
|
|
11048
|
+
className: `${classPrefix$19}-column`
|
|
10988
11049
|
}, React__default.createElement("div", {
|
|
10989
|
-
className: `${classPrefix$
|
|
11050
|
+
className: `${classPrefix$19}-item-height-measure`,
|
|
10990
11051
|
ref: itemHeightMeasureRef
|
|
10991
11052
|
}), React__default.createElement(animated.div, {
|
|
10992
11053
|
ref: rootRef,
|
|
10993
11054
|
style: {
|
|
10994
11055
|
translateY: y
|
|
10995
11056
|
},
|
|
10996
|
-
className: `${classPrefix$
|
|
11057
|
+
className: `${classPrefix$19}-column-wheel`,
|
|
10997
11058
|
"aria-hidden": true
|
|
10998
11059
|
}, column.map((item, index2) => {
|
|
10999
11060
|
var _a;
|
|
@@ -11007,12 +11068,12 @@ const Wheel = memo((props) => {
|
|
|
11007
11068
|
return React__default.createElement("div", {
|
|
11008
11069
|
key: (_a = item.key) !== null && _a !== void 0 ? _a : item.value,
|
|
11009
11070
|
"data-selected": item.value === value,
|
|
11010
|
-
className: `${classPrefix$
|
|
11071
|
+
className: `${classPrefix$19}-column-item`,
|
|
11011
11072
|
onClick: handleClick,
|
|
11012
11073
|
"aria-hidden": !selected,
|
|
11013
11074
|
"aria-label": selected ? "active" : ""
|
|
11014
11075
|
}, React__default.createElement("div", {
|
|
11015
|
-
className: `${classPrefix$
|
|
11076
|
+
className: `${classPrefix$19}-column-item-label`
|
|
11016
11077
|
}, renderLabel(item)));
|
|
11017
11078
|
})), renderAccessible());
|
|
11018
11079
|
}, (prev, next) => {
|
|
@@ -11026,9 +11087,8 @@ const Wheel = memo((props) => {
|
|
|
11026
11087
|
return false;
|
|
11027
11088
|
if (prev.mouseWheel !== next.mouseWheel)
|
|
11028
11089
|
return false;
|
|
11029
|
-
if (!isEqual_1(prev.column, next.column))
|
|
11090
|
+
if (!isEqual_1(prev.column, next.column))
|
|
11030
11091
|
return false;
|
|
11031
|
-
}
|
|
11032
11092
|
return true;
|
|
11033
11093
|
});
|
|
11034
11094
|
Wheel.displayName = "Wheel";
|
|
@@ -11236,7 +11296,7 @@ function subscribe(onStoreChange) {
|
|
|
11236
11296
|
function useMotionReduced() {
|
|
11237
11297
|
return shim.exports.useSyncExternalStore(subscribe, isMotionReduced, isMotionReduced);
|
|
11238
11298
|
}
|
|
11239
|
-
const classPrefix$
|
|
11299
|
+
const classPrefix$18 = "adm-spin-loading";
|
|
11240
11300
|
const colorRecord$2 = {
|
|
11241
11301
|
default: "var(--adm-color-weak)",
|
|
11242
11302
|
primary: "var(--adm-color-primary)",
|
|
@@ -11268,16 +11328,16 @@ const SpinLoading$1 = memo((p) => {
|
|
|
11268
11328
|
}
|
|
11269
11329
|
});
|
|
11270
11330
|
return withNativeProps(props, React__default.createElement(animated.div, {
|
|
11271
|
-
className: classPrefix$
|
|
11331
|
+
className: classPrefix$18,
|
|
11272
11332
|
style: {
|
|
11273
11333
|
"--color": (_a = colorRecord$2[props.color]) !== null && _a !== void 0 ? _a : props.color,
|
|
11274
11334
|
"--percent": percent
|
|
11275
11335
|
}
|
|
11276
11336
|
}, React__default.createElement("svg", {
|
|
11277
|
-
className: `${classPrefix$
|
|
11337
|
+
className: `${classPrefix$18}-svg`,
|
|
11278
11338
|
viewBox: "0 0 32 32"
|
|
11279
11339
|
}, React__default.createElement(animated.circle, {
|
|
11280
|
-
className: `${classPrefix$
|
|
11340
|
+
className: `${classPrefix$18}-fill`,
|
|
11281
11341
|
fill: "transparent",
|
|
11282
11342
|
strokeWidth: "2",
|
|
11283
11343
|
strokeDasharray: circumference,
|
|
@@ -11289,13 +11349,13 @@ const SpinLoading$1 = memo((p) => {
|
|
|
11289
11349
|
}))));
|
|
11290
11350
|
});
|
|
11291
11351
|
const SpinLoading = SpinLoading$1;
|
|
11292
|
-
const classPrefix$
|
|
11352
|
+
const classPrefix$17 = `adm-picker-view`;
|
|
11293
11353
|
const defaultProps$W = {
|
|
11294
11354
|
defaultValue: [],
|
|
11295
11355
|
renderLabel: defaultRenderLabel,
|
|
11296
11356
|
mouseWheel: false,
|
|
11297
11357
|
loadingContent: React__default.createElement("div", {
|
|
11298
|
-
className: `${classPrefix$
|
|
11358
|
+
className: `${classPrefix$17}-loading-content`
|
|
11299
11359
|
}, React__default.createElement(SpinLoading, null))
|
|
11300
11360
|
};
|
|
11301
11361
|
const PickerView$1 = memo((p) => {
|
|
@@ -11340,7 +11400,7 @@ const PickerView$1 = memo((p) => {
|
|
|
11340
11400
|
});
|
|
11341
11401
|
}, []);
|
|
11342
11402
|
return withNativeProps(props, React__default.createElement("div", {
|
|
11343
|
-
className: `${classPrefix$
|
|
11403
|
+
className: `${classPrefix$17}`
|
|
11344
11404
|
}, props.loading ? props.loadingContent : React__default.createElement(React__default.Fragment, null, columns.map((column, index2) => React__default.createElement(Wheel, {
|
|
11345
11405
|
key: index2,
|
|
11346
11406
|
index: index2,
|
|
@@ -11350,19 +11410,19 @@ const PickerView$1 = memo((p) => {
|
|
|
11350
11410
|
renderLabel: props.renderLabel,
|
|
11351
11411
|
mouseWheel: props.mouseWheel
|
|
11352
11412
|
})), React__default.createElement("div", {
|
|
11353
|
-
className: `${classPrefix$
|
|
11413
|
+
className: `${classPrefix$17}-mask`
|
|
11354
11414
|
}, React__default.createElement("div", {
|
|
11355
|
-
className: `${classPrefix$
|
|
11415
|
+
className: `${classPrefix$17}-mask-top`
|
|
11356
11416
|
}), React__default.createElement("div", {
|
|
11357
|
-
className: `${classPrefix$
|
|
11417
|
+
className: `${classPrefix$17}-mask-middle`
|
|
11358
11418
|
}), React__default.createElement("div", {
|
|
11359
|
-
className: `${classPrefix$
|
|
11419
|
+
className: `${classPrefix$17}-mask-bottom`
|
|
11360
11420
|
})))));
|
|
11361
11421
|
});
|
|
11362
11422
|
PickerView$1.displayName = "PickerView";
|
|
11363
11423
|
const pickerView = "";
|
|
11364
11424
|
const PickerView = PickerView$1;
|
|
11365
|
-
const classPrefix$
|
|
11425
|
+
const classPrefix$16 = `adm-picker`;
|
|
11366
11426
|
const defaultProps$V = {
|
|
11367
11427
|
defaultValue: [],
|
|
11368
11428
|
closeOnMaskClick: true,
|
|
@@ -11428,22 +11488,22 @@ const Picker$1 = memo(forwardRef((p, ref) => {
|
|
|
11428
11488
|
}
|
|
11429
11489
|
});
|
|
11430
11490
|
const pickerElement = withNativeProps(props, React__default.createElement("div", {
|
|
11431
|
-
className: classPrefix$
|
|
11491
|
+
className: classPrefix$16
|
|
11432
11492
|
}, React__default.createElement("div", {
|
|
11433
|
-
className: `${classPrefix$
|
|
11493
|
+
className: `${classPrefix$16}-header`
|
|
11434
11494
|
}, React__default.createElement("a", {
|
|
11435
11495
|
role: "button",
|
|
11436
|
-
className: `${classPrefix$
|
|
11496
|
+
className: `${classPrefix$16}-header-button`,
|
|
11437
11497
|
onClick: () => {
|
|
11438
11498
|
var _a2;
|
|
11439
11499
|
(_a2 = props.onCancel) === null || _a2 === void 0 ? void 0 : _a2.call(props);
|
|
11440
11500
|
setVisible(false);
|
|
11441
11501
|
}
|
|
11442
11502
|
}, props.cancelText), React__default.createElement("div", {
|
|
11443
|
-
className: `${classPrefix$
|
|
11503
|
+
className: `${classPrefix$16}-header-title`
|
|
11444
11504
|
}, props.title), React__default.createElement("a", {
|
|
11445
11505
|
role: "button",
|
|
11446
|
-
className: classNames(`${classPrefix$
|
|
11506
|
+
className: classNames(`${classPrefix$16}-header-button`, props.loading && `${classPrefix$16}-header-button-disabled`),
|
|
11447
11507
|
onClick: () => {
|
|
11448
11508
|
if (props.loading)
|
|
11449
11509
|
return;
|
|
@@ -11452,7 +11512,7 @@ const Picker$1 = memo(forwardRef((p, ref) => {
|
|
|
11452
11512
|
},
|
|
11453
11513
|
"aria-disabled": props.loading
|
|
11454
11514
|
}, props.confirmText)), React__default.createElement("div", {
|
|
11455
|
-
className: `${classPrefix$
|
|
11515
|
+
className: `${classPrefix$16}-body`
|
|
11456
11516
|
}, React__default.createElement(PickerView, {
|
|
11457
11517
|
loading: props.loading,
|
|
11458
11518
|
loadingContent: props.loadingContent,
|
|
@@ -11464,7 +11524,7 @@ const Picker$1 = memo(forwardRef((p, ref) => {
|
|
|
11464
11524
|
}))));
|
|
11465
11525
|
const popupElement = React__default.createElement(Popup, {
|
|
11466
11526
|
style: props.popupStyle,
|
|
11467
|
-
className: classNames(`${classPrefix$
|
|
11527
|
+
className: classNames(`${classPrefix$16}-popup`, props.popupClassName),
|
|
11468
11528
|
visible,
|
|
11469
11529
|
position: "bottom",
|
|
11470
11530
|
onMaskClick: () => {
|
|
@@ -11614,7 +11674,7 @@ const CascadePickerView$1 = (props) => {
|
|
|
11614
11674
|
const CascadePickerView = CascadePickerView$1;
|
|
11615
11675
|
const cascaderView = "";
|
|
11616
11676
|
const tabs = "";
|
|
11617
|
-
const classPrefix$
|
|
11677
|
+
const classPrefix$15 = `adm-tabs`;
|
|
11618
11678
|
const Tab = () => {
|
|
11619
11679
|
return null;
|
|
11620
11680
|
};
|
|
@@ -11775,36 +11835,36 @@ const Tabs$1 = (p) => {
|
|
|
11775
11835
|
updateMask(true);
|
|
11776
11836
|
}, []);
|
|
11777
11837
|
return withNativeProps(props, React__default.createElement("div", {
|
|
11778
|
-
className: classPrefix$
|
|
11838
|
+
className: classPrefix$15
|
|
11779
11839
|
}, React__default.createElement("div", {
|
|
11780
|
-
className: `${classPrefix$
|
|
11840
|
+
className: `${classPrefix$15}-header`
|
|
11781
11841
|
}, React__default.createElement(animated.div, {
|
|
11782
|
-
className: classNames(`${classPrefix$
|
|
11842
|
+
className: classNames(`${classPrefix$15}-header-mask`, `${classPrefix$15}-header-mask-left`),
|
|
11783
11843
|
style: {
|
|
11784
11844
|
opacity: leftMaskOpacity
|
|
11785
11845
|
}
|
|
11786
11846
|
}), React__default.createElement(animated.div, {
|
|
11787
|
-
className: classNames(`${classPrefix$
|
|
11847
|
+
className: classNames(`${classPrefix$15}-header-mask`, `${classPrefix$15}-header-mask-right`),
|
|
11788
11848
|
style: {
|
|
11789
11849
|
opacity: rightMaskOpacity
|
|
11790
11850
|
}
|
|
11791
11851
|
}), React__default.createElement(animated.div, {
|
|
11792
|
-
className: `${classPrefix$
|
|
11852
|
+
className: `${classPrefix$15}-tab-list`,
|
|
11793
11853
|
ref: tabListContainerRef,
|
|
11794
11854
|
scrollLeft,
|
|
11795
11855
|
onScroll: updateMask,
|
|
11796
11856
|
role: "tablist"
|
|
11797
11857
|
}, React__default.createElement(animated.div, {
|
|
11798
11858
|
ref: activeLineRef,
|
|
11799
|
-
className: `${classPrefix$
|
|
11859
|
+
className: `${classPrefix$15}-tab-line`,
|
|
11800
11860
|
style: {
|
|
11801
11861
|
width: props.activeLineMode === "fixed" ? "var(--fixed-active-line-width, 30px)" : width,
|
|
11802
11862
|
x
|
|
11803
11863
|
}
|
|
11804
11864
|
}), panes.map((pane) => withNativeProps(pane.props, React__default.createElement("div", {
|
|
11805
11865
|
key: pane.key,
|
|
11806
|
-
className: classNames(`${classPrefix$
|
|
11807
|
-
[`${classPrefix$
|
|
11866
|
+
className: classNames(`${classPrefix$15}-tab-wrapper`, {
|
|
11867
|
+
[`${classPrefix$15}-tab-wrapper-stretch`]: props.stretch
|
|
11808
11868
|
})
|
|
11809
11869
|
}, React__default.createElement("div", {
|
|
11810
11870
|
onClick: () => {
|
|
@@ -11818,9 +11878,9 @@ const Tabs$1 = (p) => {
|
|
|
11818
11878
|
}
|
|
11819
11879
|
setActiveKey(key.toString());
|
|
11820
11880
|
},
|
|
11821
|
-
className: classNames(`${classPrefix$
|
|
11822
|
-
[`${classPrefix$
|
|
11823
|
-
[`${classPrefix$
|
|
11881
|
+
className: classNames(`${classPrefix$15}-tab`, {
|
|
11882
|
+
[`${classPrefix$15}-tab-active`]: pane.key === activeKey,
|
|
11883
|
+
[`${classPrefix$15}-tab-disabled`]: pane.props.disabled
|
|
11824
11884
|
}),
|
|
11825
11885
|
role: "tab",
|
|
11826
11886
|
"aria-selected": pane.key === activeKey
|
|
@@ -11835,7 +11895,7 @@ const Tabs$1 = (p) => {
|
|
|
11835
11895
|
forceRender: pane.props.forceRender,
|
|
11836
11896
|
destroyOnClose: pane.props.destroyOnClose
|
|
11837
11897
|
}, React__default.createElement("div", {
|
|
11838
|
-
className: `${classPrefix$
|
|
11898
|
+
className: `${classPrefix$15}-content`,
|
|
11839
11899
|
style: {
|
|
11840
11900
|
display: active ? "block" : "none"
|
|
11841
11901
|
}
|
|
@@ -11847,7 +11907,7 @@ const Tabs = attachPropertiesToComponent(Tabs$1, {
|
|
|
11847
11907
|
});
|
|
11848
11908
|
const checkList = "";
|
|
11849
11909
|
const list = "";
|
|
11850
|
-
const classPrefix$
|
|
11910
|
+
const classPrefix$14 = `adm-list`;
|
|
11851
11911
|
const defaultProps$T = {
|
|
11852
11912
|
mode: "default"
|
|
11853
11913
|
};
|
|
@@ -11860,41 +11920,41 @@ const List$2 = forwardRef((p, ref) => {
|
|
|
11860
11920
|
}
|
|
11861
11921
|
}));
|
|
11862
11922
|
return withNativeProps(props, React__default.createElement("div", {
|
|
11863
|
-
className: classNames(classPrefix$
|
|
11923
|
+
className: classNames(classPrefix$14, `${classPrefix$14}-${props.mode}`),
|
|
11864
11924
|
ref: nativeElementRef
|
|
11865
11925
|
}, props.header && React__default.createElement("div", {
|
|
11866
|
-
className: `${classPrefix$
|
|
11926
|
+
className: `${classPrefix$14}-header`
|
|
11867
11927
|
}, props.header), React__default.createElement("div", {
|
|
11868
|
-
className: `${classPrefix$
|
|
11928
|
+
className: `${classPrefix$14}-body`
|
|
11869
11929
|
}, React__default.createElement("div", {
|
|
11870
|
-
className: `${classPrefix$
|
|
11930
|
+
className: `${classPrefix$14}-body-inner`
|
|
11871
11931
|
}, props.children))));
|
|
11872
11932
|
});
|
|
11873
11933
|
function isNodeWithContent(node) {
|
|
11874
11934
|
return node !== void 0 && node !== null && node !== false;
|
|
11875
11935
|
}
|
|
11876
|
-
const classPrefix$
|
|
11936
|
+
const classPrefix$13 = `adm-list-item`;
|
|
11877
11937
|
const ListItem = (props) => {
|
|
11878
11938
|
var _a;
|
|
11879
11939
|
const clickable = (_a = props.clickable) !== null && _a !== void 0 ? _a : !!props.onClick;
|
|
11880
11940
|
const arrow2 = props.arrow === void 0 ? clickable : props.arrow;
|
|
11881
11941
|
const content = React__default.createElement("div", {
|
|
11882
|
-
className: `${classPrefix$
|
|
11942
|
+
className: `${classPrefix$13}-content`
|
|
11883
11943
|
}, isNodeWithContent(props.prefix) && React__default.createElement("div", {
|
|
11884
|
-
className: `${classPrefix$
|
|
11944
|
+
className: `${classPrefix$13}-content-prefix`
|
|
11885
11945
|
}, props.prefix), React__default.createElement("div", {
|
|
11886
|
-
className: `${classPrefix$
|
|
11946
|
+
className: `${classPrefix$13}-content-main`
|
|
11887
11947
|
}, isNodeWithContent(props.title) && React__default.createElement("div", {
|
|
11888
|
-
className: `${classPrefix$
|
|
11948
|
+
className: `${classPrefix$13}-title`
|
|
11889
11949
|
}, props.title), props.children, isNodeWithContent(props.description) && React__default.createElement("div", {
|
|
11890
|
-
className: `${classPrefix$
|
|
11950
|
+
className: `${classPrefix$13}-description`
|
|
11891
11951
|
}, props.description)), isNodeWithContent(props.extra) && React__default.createElement("div", {
|
|
11892
|
-
className: `${classPrefix$
|
|
11952
|
+
className: `${classPrefix$13}-content-extra`
|
|
11893
11953
|
}, props.extra), isNodeWithContent(arrow2) && React__default.createElement("div", {
|
|
11894
|
-
className: `${classPrefix$
|
|
11954
|
+
className: `${classPrefix$13}-content-arrow`
|
|
11895
11955
|
}, arrow2 === true ? React__default.createElement(RightOutline, null) : arrow2));
|
|
11896
11956
|
return withNativeProps(props, React__default.createElement(clickable ? "a" : "div", {
|
|
11897
|
-
className: classNames(`${classPrefix$
|
|
11957
|
+
className: classNames(`${classPrefix$13}`, clickable ? ["adm-plain-anchor"] : [], props.disabled && `${classPrefix$13}-disabled`),
|
|
11898
11958
|
onClick: props.disabled ? void 0 : props.onClick
|
|
11899
11959
|
}, content));
|
|
11900
11960
|
};
|
|
@@ -11902,7 +11962,7 @@ const List$1 = attachPropertiesToComponent(List$2, {
|
|
|
11902
11962
|
Item: ListItem
|
|
11903
11963
|
});
|
|
11904
11964
|
const CheckListContext = createContext(null);
|
|
11905
|
-
const classPrefix$
|
|
11965
|
+
const classPrefix$12 = "adm-check-list";
|
|
11906
11966
|
const defaultProps$S = {
|
|
11907
11967
|
multiple: false,
|
|
11908
11968
|
defaultValue: [],
|
|
@@ -11939,10 +11999,10 @@ const CheckList$1 = (p) => {
|
|
|
11939
11999
|
}
|
|
11940
12000
|
}, withNativeProps(props, React__default.createElement(List$1, {
|
|
11941
12001
|
mode: props.mode,
|
|
11942
|
-
className: classPrefix$
|
|
12002
|
+
className: classPrefix$12
|
|
11943
12003
|
}, props.children)));
|
|
11944
12004
|
};
|
|
11945
|
-
const classPrefix
|
|
12005
|
+
const classPrefix$11 = `adm-check-list-item`;
|
|
11946
12006
|
const CheckListItem = (props) => {
|
|
11947
12007
|
const context = useContext(CheckListContext);
|
|
11948
12008
|
if (context === null) {
|
|
@@ -11954,11 +12014,11 @@ const CheckListItem = (props) => {
|
|
|
11954
12014
|
const defaultExtra = active ? context.activeIcon : null;
|
|
11955
12015
|
const renderExtra = context.extra ? context.extra(active) : defaultExtra;
|
|
11956
12016
|
const extra = React__default.createElement("div", {
|
|
11957
|
-
className: `${classPrefix
|
|
12017
|
+
className: `${classPrefix$11}-extra`
|
|
11958
12018
|
}, renderExtra);
|
|
11959
12019
|
return withNativeProps(props, React__default.createElement(List$1.Item, {
|
|
11960
12020
|
title: props.title,
|
|
11961
|
-
className: classNames(classPrefix
|
|
12021
|
+
className: classNames(classPrefix$11, readOnly && `${classPrefix$11}-readonly`, active && `${classPrefix$11}-active`),
|
|
11962
12022
|
description: props.description,
|
|
11963
12023
|
prefix: props.prefix,
|
|
11964
12024
|
onClick: (e2) => {
|
|
@@ -12049,18 +12109,18 @@ function generateIntArray(from, to2) {
|
|
|
12049
12109
|
}
|
|
12050
12110
|
return array4;
|
|
12051
12111
|
}
|
|
12052
|
-
const classPrefix$
|
|
12112
|
+
const classPrefix$10 = "adm-skeleton";
|
|
12053
12113
|
const Skeleton$1 = (props) => {
|
|
12054
12114
|
return withNativeProps(props, React__default.createElement("div", {
|
|
12055
|
-
className: classNames(classPrefix$
|
|
12056
|
-
[`${classPrefix$
|
|
12115
|
+
className: classNames(classPrefix$10, {
|
|
12116
|
+
[`${classPrefix$10}-animated`]: props.animated
|
|
12057
12117
|
})
|
|
12058
12118
|
}));
|
|
12059
12119
|
};
|
|
12060
12120
|
const SkeletonTitle = (props) => {
|
|
12061
12121
|
return withNativeProps(props, React__default.createElement(Skeleton$1, {
|
|
12062
12122
|
animated: props.animated,
|
|
12063
|
-
className: `${classPrefix$
|
|
12123
|
+
className: `${classPrefix$10}-title`
|
|
12064
12124
|
}));
|
|
12065
12125
|
};
|
|
12066
12126
|
const defaultSkeletonParagraphProps = {
|
|
@@ -12070,11 +12130,11 @@ const SkeletonParagraph = (p) => {
|
|
|
12070
12130
|
const props = mergeProps(defaultSkeletonParagraphProps, p);
|
|
12071
12131
|
const keys2 = generateIntArray(1, props.lineCount);
|
|
12072
12132
|
const node = React__default.createElement("div", {
|
|
12073
|
-
className: `${classPrefix$
|
|
12133
|
+
className: `${classPrefix$10}-paragraph`
|
|
12074
12134
|
}, keys2.map((key) => React__default.createElement(Skeleton$1, {
|
|
12075
12135
|
key,
|
|
12076
12136
|
animated: props.animated,
|
|
12077
|
-
className: `${classPrefix$
|
|
12137
|
+
className: `${classPrefix$10}-paragraph-line`
|
|
12078
12138
|
})));
|
|
12079
12139
|
return withNativeProps(props, node);
|
|
12080
12140
|
};
|
|
@@ -12082,7 +12142,7 @@ const Skeleton = attachPropertiesToComponent(Skeleton$1, {
|
|
|
12082
12142
|
Title: SkeletonTitle,
|
|
12083
12143
|
Paragraph: SkeletonParagraph
|
|
12084
12144
|
});
|
|
12085
|
-
const classPrefix
|
|
12145
|
+
const classPrefix$$ = `adm-cascader-view`;
|
|
12086
12146
|
const defaultProps$R = {
|
|
12087
12147
|
defaultValue: []
|
|
12088
12148
|
};
|
|
@@ -12146,7 +12206,7 @@ const CascaderView$1 = (p) => {
|
|
|
12146
12206
|
};
|
|
12147
12207
|
const whetherLoading = (options) => props.loading || options === optionSkeleton;
|
|
12148
12208
|
return withNativeProps(props, React__default.createElement("div", {
|
|
12149
|
-
className: classPrefix
|
|
12209
|
+
className: classPrefix$$
|
|
12150
12210
|
}, React__default.createElement(Tabs, {
|
|
12151
12211
|
activeKey: tabActiveIndex.toString(),
|
|
12152
12212
|
onChange: (key) => {
|
|
@@ -12154,30 +12214,30 @@ const CascaderView$1 = (p) => {
|
|
|
12154
12214
|
setTabActiveIndex(activeIndex);
|
|
12155
12215
|
},
|
|
12156
12216
|
stretch: false,
|
|
12157
|
-
className: `${classPrefix
|
|
12217
|
+
className: `${classPrefix$$}-tabs`
|
|
12158
12218
|
}, levels.map((level, index2) => {
|
|
12159
12219
|
const selected = level.selected;
|
|
12160
12220
|
return React__default.createElement(Tabs.Tab, {
|
|
12161
12221
|
key: index2.toString(),
|
|
12162
12222
|
title: React__default.createElement("div", {
|
|
12163
|
-
className: `${classPrefix
|
|
12223
|
+
className: `${classPrefix$$}-header-title`
|
|
12164
12224
|
}, selected ? selected.label : typeof placeholder === "function" ? placeholder(index2) : placeholder),
|
|
12165
12225
|
forceRender: true
|
|
12166
12226
|
}, React__default.createElement("div", {
|
|
12167
|
-
className: `${classPrefix
|
|
12227
|
+
className: `${classPrefix$$}-content`
|
|
12168
12228
|
}, whetherLoading(level.options) ? React__default.createElement("div", {
|
|
12169
|
-
className: `${classPrefix
|
|
12229
|
+
className: `${classPrefix$$}-skeleton`
|
|
12170
12230
|
}, React__default.createElement(Skeleton, {
|
|
12171
|
-
className: `${classPrefix
|
|
12231
|
+
className: `${classPrefix$$}-skeleton-line-1`,
|
|
12172
12232
|
animated: true
|
|
12173
12233
|
}), React__default.createElement(Skeleton, {
|
|
12174
|
-
className: `${classPrefix
|
|
12234
|
+
className: `${classPrefix$$}-skeleton-line-2`,
|
|
12175
12235
|
animated: true
|
|
12176
12236
|
}), React__default.createElement(Skeleton, {
|
|
12177
|
-
className: `${classPrefix
|
|
12237
|
+
className: `${classPrefix$$}-skeleton-line-3`,
|
|
12178
12238
|
animated: true
|
|
12179
12239
|
}), React__default.createElement(Skeleton, {
|
|
12180
|
-
className: `${classPrefix
|
|
12240
|
+
className: `${classPrefix$$}-skeleton-line-4`,
|
|
12181
12241
|
animated: true
|
|
12182
12242
|
})) : React__default.createElement(CheckList, {
|
|
12183
12243
|
value: [value[index2]],
|
|
@@ -12189,8 +12249,8 @@ const CascaderView$1 = (p) => {
|
|
|
12189
12249
|
value: option.value,
|
|
12190
12250
|
key: option.value,
|
|
12191
12251
|
disabled: option.disabled,
|
|
12192
|
-
className: classNames(`${classPrefix
|
|
12193
|
-
[`${classPrefix
|
|
12252
|
+
className: classNames(`${classPrefix$$}-item`, {
|
|
12253
|
+
[`${classPrefix$$}-item-active`]: active
|
|
12194
12254
|
})
|
|
12195
12255
|
}, option.label);
|
|
12196
12256
|
}))));
|
|
@@ -12199,7 +12259,7 @@ const CascaderView$1 = (p) => {
|
|
|
12199
12259
|
const CascaderView = attachPropertiesToComponent(CascaderView$1, {
|
|
12200
12260
|
optionSkeleton
|
|
12201
12261
|
});
|
|
12202
|
-
const classPrefix$
|
|
12262
|
+
const classPrefix$_ = `adm-cascader`;
|
|
12203
12263
|
const defaultProps$Q = {
|
|
12204
12264
|
defaultValue: [],
|
|
12205
12265
|
destroyOnClose: true,
|
|
@@ -12251,26 +12311,26 @@ const Cascader = forwardRef((p, ref) => {
|
|
|
12251
12311
|
}
|
|
12252
12312
|
}, [visible, value]);
|
|
12253
12313
|
const cascaderElement = withNativeProps(props, React__default.createElement("div", {
|
|
12254
|
-
className: classPrefix$
|
|
12314
|
+
className: classPrefix$_
|
|
12255
12315
|
}, React__default.createElement("div", {
|
|
12256
|
-
className: `${classPrefix$
|
|
12316
|
+
className: `${classPrefix$_}-header`
|
|
12257
12317
|
}, React__default.createElement("a", {
|
|
12258
|
-
className: `${classPrefix$
|
|
12318
|
+
className: `${classPrefix$_}-header-button`,
|
|
12259
12319
|
onClick: () => {
|
|
12260
12320
|
var _a2;
|
|
12261
12321
|
(_a2 = props.onCancel) === null || _a2 === void 0 ? void 0 : _a2.call(props);
|
|
12262
12322
|
setVisible(false);
|
|
12263
12323
|
}
|
|
12264
12324
|
}, props.cancelText), React__default.createElement("div", {
|
|
12265
|
-
className: `${classPrefix$
|
|
12325
|
+
className: `${classPrefix$_}-header-title`
|
|
12266
12326
|
}, props.title), React__default.createElement("a", {
|
|
12267
|
-
className: `${classPrefix$
|
|
12327
|
+
className: `${classPrefix$_}-header-button`,
|
|
12268
12328
|
onClick: () => {
|
|
12269
12329
|
setValue2(innerValue, true);
|
|
12270
12330
|
setVisible(false);
|
|
12271
12331
|
}
|
|
12272
12332
|
}, props.confirmText)), React__default.createElement("div", {
|
|
12273
|
-
className: `${classPrefix$
|
|
12333
|
+
className: `${classPrefix$_}-body`
|
|
12274
12334
|
}, React__default.createElement(CascaderView, Object.assign({}, props, {
|
|
12275
12335
|
value: innerValue,
|
|
12276
12336
|
onChange: (val, ext) => {
|
|
@@ -12335,6 +12395,7 @@ const index$g = attachPropertiesToComponent(Cascader, {
|
|
|
12335
12395
|
optionSkeleton
|
|
12336
12396
|
});
|
|
12337
12397
|
const centerPopup = "";
|
|
12398
|
+
const classPrefix$Z = "adm-center-popup";
|
|
12338
12399
|
const defaultProps$P = Object.assign(Object.assign({}, defaultPopupBaseProps), {
|
|
12339
12400
|
getContainer: null
|
|
12340
12401
|
});
|
|
@@ -12372,11 +12433,11 @@ const CenterPopup$1 = (p) => {
|
|
|
12372
12433
|
useLockScroll(ref, props.disableBodyScroll && active);
|
|
12373
12434
|
const maskVisible = useInnerVisible(active && props.visible);
|
|
12374
12435
|
const body = React__default.createElement("div", {
|
|
12375
|
-
className: classNames(
|
|
12436
|
+
className: classNames(`${classPrefix$Z}-body`, props.bodyClassName),
|
|
12376
12437
|
style: props.bodyStyle
|
|
12377
12438
|
}, props.children);
|
|
12378
12439
|
const node = withStopPropagation(props.stopPropagation, withNativeProps(props, React__default.createElement("div", {
|
|
12379
|
-
className:
|
|
12440
|
+
className: classPrefix$Z,
|
|
12380
12441
|
style: {
|
|
12381
12442
|
display: active ? void 0 : "none",
|
|
12382
12443
|
pointerEvents: active ? void 0 : "none"
|
|
@@ -12393,18 +12454,18 @@ const CenterPopup$1 = (p) => {
|
|
|
12393
12454
|
}
|
|
12394
12455
|
},
|
|
12395
12456
|
style: props.maskStyle,
|
|
12396
|
-
className: classNames(
|
|
12457
|
+
className: classNames(`${classPrefix$Z}-mask`, props.maskClassName),
|
|
12397
12458
|
disableBodyScroll: false,
|
|
12398
12459
|
stopPropagation: props.stopPropagation
|
|
12399
12460
|
}), React__default.createElement("div", {
|
|
12400
|
-
className:
|
|
12461
|
+
className: `${classPrefix$Z}-wrap`,
|
|
12401
12462
|
role: props.role,
|
|
12402
12463
|
"aria-label": props["aria-label"]
|
|
12403
12464
|
}, React__default.createElement(animated.div, {
|
|
12404
12465
|
style,
|
|
12405
12466
|
ref
|
|
12406
12467
|
}, props.showCloseButton && React__default.createElement("a", {
|
|
12407
|
-
className: classNames(
|
|
12468
|
+
className: classNames(`${classPrefix$Z}-close`, "adm-plain-anchor"),
|
|
12408
12469
|
onClick: () => {
|
|
12409
12470
|
var _a;
|
|
12410
12471
|
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
@@ -12490,7 +12551,7 @@ const NativeInput = (props) => {
|
|
|
12490
12551
|
id: props.id
|
|
12491
12552
|
});
|
|
12492
12553
|
};
|
|
12493
|
-
const classPrefix$
|
|
12554
|
+
const classPrefix$Y = `adm-checkbox`;
|
|
12494
12555
|
const defaultProps$N = {
|
|
12495
12556
|
defaultChecked: false,
|
|
12496
12557
|
indeterminate: false
|
|
@@ -12542,20 +12603,20 @@ const Checkbox$1 = forwardRef((p, ref) => {
|
|
|
12542
12603
|
const renderIcon = () => {
|
|
12543
12604
|
if (props.icon) {
|
|
12544
12605
|
return React__default.createElement("div", {
|
|
12545
|
-
className: `${classPrefix$
|
|
12606
|
+
className: `${classPrefix$Y}-custom-icon`
|
|
12546
12607
|
}, props.icon(checked, props.indeterminate));
|
|
12547
12608
|
}
|
|
12548
12609
|
return React__default.createElement("div", {
|
|
12549
|
-
className: `${classPrefix$
|
|
12610
|
+
className: `${classPrefix$Y}-icon`
|
|
12550
12611
|
}, props.indeterminate ? React__default.createElement(IndeterminateIcon, null) : checked && React__default.createElement(CheckIcon, null));
|
|
12551
12612
|
};
|
|
12552
12613
|
return withNativeProps(props, React__default.createElement("label", {
|
|
12553
12614
|
onClick: props.onClick,
|
|
12554
|
-
className: classNames(classPrefix$
|
|
12555
|
-
[`${classPrefix$
|
|
12556
|
-
[`${classPrefix$
|
|
12557
|
-
[`${classPrefix$
|
|
12558
|
-
[`${classPrefix$
|
|
12615
|
+
className: classNames(classPrefix$Y, {
|
|
12616
|
+
[`${classPrefix$Y}-checked`]: checked && !props.indeterminate,
|
|
12617
|
+
[`${classPrefix$Y}-indeterminate`]: props.indeterminate,
|
|
12618
|
+
[`${classPrefix$Y}-disabled`]: disabled,
|
|
12619
|
+
[`${classPrefix$Y}-block`]: props.block
|
|
12559
12620
|
})
|
|
12560
12621
|
}, React__default.createElement(NativeInput, {
|
|
12561
12622
|
type: "checkbox",
|
|
@@ -12564,14 +12625,14 @@ const Checkbox$1 = forwardRef((p, ref) => {
|
|
|
12564
12625
|
disabled,
|
|
12565
12626
|
id: props.id
|
|
12566
12627
|
}), renderIcon(), props.children && React__default.createElement("div", {
|
|
12567
|
-
className: `${classPrefix$
|
|
12628
|
+
className: `${classPrefix$Y}-content`
|
|
12568
12629
|
}, props.children)));
|
|
12569
12630
|
});
|
|
12570
12631
|
const Checkbox = attachPropertiesToComponent(Checkbox$1, {
|
|
12571
12632
|
Group: Group$1
|
|
12572
12633
|
});
|
|
12573
12634
|
const collapse = "";
|
|
12574
|
-
const classPrefix$
|
|
12635
|
+
const classPrefix$X = `adm-collapse`;
|
|
12575
12636
|
const CollapsePanel = () => {
|
|
12576
12637
|
return null;
|
|
12577
12638
|
};
|
|
@@ -12625,8 +12686,8 @@ const CollapsePanelContent = (props) => {
|
|
|
12625
12686
|
}
|
|
12626
12687
|
}, [visible]);
|
|
12627
12688
|
return React__default.createElement(animated.div, {
|
|
12628
|
-
className: classNames(`${classPrefix$
|
|
12629
|
-
[`${classPrefix$
|
|
12689
|
+
className: classNames(`${classPrefix$X}-panel-content`, {
|
|
12690
|
+
[`${classPrefix$X}-panel-content-active`]: visible
|
|
12630
12691
|
}),
|
|
12631
12692
|
style: {
|
|
12632
12693
|
height: height.to((v) => {
|
|
@@ -12638,12 +12699,11 @@ const CollapsePanelContent = (props) => {
|
|
|
12638
12699
|
})
|
|
12639
12700
|
}
|
|
12640
12701
|
}, React__default.createElement("div", {
|
|
12641
|
-
className: `${classPrefix$
|
|
12702
|
+
className: `${classPrefix$X}-panel-content-inner`,
|
|
12642
12703
|
ref: innerRef
|
|
12643
12704
|
}, React__default.createElement(List$1.Item, null, shouldRender && props.children)));
|
|
12644
12705
|
};
|
|
12645
12706
|
const Collapse = (props) => {
|
|
12646
|
-
var _a;
|
|
12647
12707
|
const panels = [];
|
|
12648
12708
|
traverseReactNode(props.children, (child) => {
|
|
12649
12709
|
if (!isValidElement(child))
|
|
@@ -12653,26 +12713,42 @@ const Collapse = (props) => {
|
|
|
12653
12713
|
return;
|
|
12654
12714
|
panels.push(child);
|
|
12655
12715
|
});
|
|
12656
|
-
const
|
|
12657
|
-
|
|
12658
|
-
|
|
12659
|
-
|
|
12660
|
-
|
|
12661
|
-
|
|
12716
|
+
const handlePropsValue = () => {
|
|
12717
|
+
var _a;
|
|
12718
|
+
if (!props.accordion) {
|
|
12719
|
+
return {
|
|
12720
|
+
value: props.activeKey,
|
|
12721
|
+
defaultValue: (_a = props.defaultActiveKey) !== null && _a !== void 0 ? _a : [],
|
|
12722
|
+
onChange: props.onChange
|
|
12723
|
+
};
|
|
12662
12724
|
}
|
|
12663
|
-
|
|
12664
|
-
|
|
12665
|
-
|
|
12666
|
-
|
|
12667
|
-
|
|
12725
|
+
const initValue = {
|
|
12726
|
+
value: [],
|
|
12727
|
+
defaultValue: [],
|
|
12728
|
+
onChange: (v) => {
|
|
12729
|
+
var _a2, _b;
|
|
12730
|
+
(_a2 = props.onChange) === null || _a2 === void 0 ? void 0 : _a2.call(props, (_b = v[0]) !== null && _b !== void 0 ? _b : null);
|
|
12731
|
+
}
|
|
12732
|
+
};
|
|
12733
|
+
if (props.activeKey === void 0) {
|
|
12734
|
+
initValue.value = void 0;
|
|
12735
|
+
} else if (props.activeKey !== null) {
|
|
12736
|
+
initValue.value = [props.activeKey];
|
|
12737
|
+
}
|
|
12738
|
+
if (![null, void 0].includes(props.defaultActiveKey)) {
|
|
12739
|
+
initValue.defaultValue = [props.defaultActiveKey];
|
|
12740
|
+
}
|
|
12741
|
+
return initValue;
|
|
12742
|
+
};
|
|
12743
|
+
const [activeKey, setActiveKey] = usePropsValue(handlePropsValue());
|
|
12668
12744
|
const activeKeyList = activeKey === null ? [] : Array.isArray(activeKey) ? activeKey : [activeKey];
|
|
12669
12745
|
return withNativeProps(props, React__default.createElement("div", {
|
|
12670
|
-
className: classPrefix$
|
|
12746
|
+
className: classPrefix$X
|
|
12671
12747
|
}, React__default.createElement(List$1, null, panels.map((panel) => {
|
|
12672
12748
|
const key = panel.key;
|
|
12673
12749
|
const active = activeKeyList.includes(key);
|
|
12674
12750
|
function handleClick(event) {
|
|
12675
|
-
var
|
|
12751
|
+
var _a, _b;
|
|
12676
12752
|
if (props.accordion) {
|
|
12677
12753
|
if (active) {
|
|
12678
12754
|
setActiveKey([]);
|
|
@@ -12686,7 +12762,7 @@ const Collapse = (props) => {
|
|
|
12686
12762
|
setActiveKey([...activeKeyList, key]);
|
|
12687
12763
|
}
|
|
12688
12764
|
}
|
|
12689
|
-
(_b = (
|
|
12765
|
+
(_b = (_a = panel.props).onClick) === null || _b === void 0 ? void 0 : _b.call(_a, event);
|
|
12690
12766
|
}
|
|
12691
12767
|
const renderArrow = () => {
|
|
12692
12768
|
let arrow2 = React__default.createElement(DownOutline, null);
|
|
@@ -12697,15 +12773,15 @@ const Collapse = (props) => {
|
|
|
12697
12773
|
arrow2 = panel.props.arrow;
|
|
12698
12774
|
}
|
|
12699
12775
|
return typeof arrow2 === "function" ? arrow2(active) : React__default.createElement("div", {
|
|
12700
|
-
className: classNames(`${classPrefix$
|
|
12701
|
-
[`${classPrefix$
|
|
12776
|
+
className: classNames(`${classPrefix$X}-arrow`, {
|
|
12777
|
+
[`${classPrefix$X}-arrow-active`]: active
|
|
12702
12778
|
})
|
|
12703
12779
|
}, arrow2);
|
|
12704
12780
|
};
|
|
12705
12781
|
return React__default.createElement(React__default.Fragment, {
|
|
12706
12782
|
key
|
|
12707
12783
|
}, withNativeProps(panel.props, React__default.createElement(List$1.Item, {
|
|
12708
|
-
className: `${classPrefix$
|
|
12784
|
+
className: `${classPrefix$X}-panel-header`,
|
|
12709
12785
|
onClick: handleClick,
|
|
12710
12786
|
disabled: panel.props.disabled,
|
|
12711
12787
|
arrow: renderArrow()
|
|
@@ -13346,7 +13422,7 @@ const index$d = attachPropertiesToComponent(Dialog, {
|
|
|
13346
13422
|
clear: clear$2
|
|
13347
13423
|
});
|
|
13348
13424
|
const divider = "";
|
|
13349
|
-
const classPrefix$
|
|
13425
|
+
const classPrefix$W = `adm-divider`;
|
|
13350
13426
|
const defaultProps$I = {
|
|
13351
13427
|
contentPosition: "center",
|
|
13352
13428
|
direction: "horizontal"
|
|
@@ -13354,30 +13430,30 @@ const defaultProps$I = {
|
|
|
13354
13430
|
const Divider$1 = (p) => {
|
|
13355
13431
|
const props = mergeProps(defaultProps$I, p);
|
|
13356
13432
|
return withNativeProps(props, React__default.createElement("div", {
|
|
13357
|
-
className: classNames(classPrefix$
|
|
13433
|
+
className: classNames(classPrefix$W, `${classPrefix$W}-${props.direction}`, `${classPrefix$W}-${props.contentPosition}`)
|
|
13358
13434
|
}, props.children && React__default.createElement("div", {
|
|
13359
|
-
className: `${classPrefix$
|
|
13435
|
+
className: `${classPrefix$W}-content`
|
|
13360
13436
|
}, props.children)));
|
|
13361
13437
|
};
|
|
13362
13438
|
const Divider = Divider$1;
|
|
13363
13439
|
const dropdown = "";
|
|
13364
|
-
const classPrefix$
|
|
13440
|
+
const classPrefix$V = `adm-dropdown-item`;
|
|
13365
13441
|
const Item = (props) => {
|
|
13366
13442
|
var _a;
|
|
13367
|
-
const cls2 = classNames(classPrefix$
|
|
13368
|
-
[`${classPrefix$
|
|
13369
|
-
[`${classPrefix$
|
|
13443
|
+
const cls2 = classNames(classPrefix$V, {
|
|
13444
|
+
[`${classPrefix$V}-active`]: props.active,
|
|
13445
|
+
[`${classPrefix$V}-highlight`]: (_a = props.highlight) !== null && _a !== void 0 ? _a : props.active
|
|
13370
13446
|
});
|
|
13371
13447
|
return withNativeProps(props, React__default.createElement("div", {
|
|
13372
13448
|
className: cls2,
|
|
13373
13449
|
onClick: props.onClick
|
|
13374
13450
|
}, React__default.createElement("div", {
|
|
13375
|
-
className: `${classPrefix$
|
|
13451
|
+
className: `${classPrefix$V}-title`
|
|
13376
13452
|
}, React__default.createElement("span", {
|
|
13377
|
-
className: `${classPrefix$
|
|
13453
|
+
className: `${classPrefix$V}-title-text`
|
|
13378
13454
|
}, props.title), React__default.createElement("span", {
|
|
13379
|
-
className: classNames(`${classPrefix$
|
|
13380
|
-
[`${classPrefix$
|
|
13455
|
+
className: classNames(`${classPrefix$V}-title-arrow`, {
|
|
13456
|
+
[`${classPrefix$V}-title-arrow-active`]: props.active
|
|
13381
13457
|
})
|
|
13382
13458
|
}, props.arrow === void 0 ? React__default.createElement(DownFill, null) : props.arrow))));
|
|
13383
13459
|
};
|
|
@@ -13387,15 +13463,15 @@ const ItemChildrenWrap = (props) => {
|
|
|
13387
13463
|
active = false
|
|
13388
13464
|
} = props;
|
|
13389
13465
|
const shouldRender = useShouldRender(active, props.forceRender, props.destroyOnClose);
|
|
13390
|
-
const cls2 = classNames(`${classPrefix$
|
|
13391
|
-
[`${classPrefix$
|
|
13466
|
+
const cls2 = classNames(`${classPrefix$V}-content`, {
|
|
13467
|
+
[`${classPrefix$V}-content-hidden`]: !active
|
|
13392
13468
|
});
|
|
13393
13469
|
return shouldRender ? React__default.createElement("div", {
|
|
13394
13470
|
className: cls2,
|
|
13395
13471
|
onClick: props.onClick
|
|
13396
13472
|
}, props.children) : null;
|
|
13397
13473
|
};
|
|
13398
|
-
const classPrefix$
|
|
13474
|
+
const classPrefix$U = `adm-dropdown`;
|
|
13399
13475
|
const defaultProps$H = {
|
|
13400
13476
|
defaultActiveKey: null,
|
|
13401
13477
|
closeOnMaskClick: true,
|
|
@@ -13459,20 +13535,20 @@ const Dropdown = forwardRef((p, ref) => {
|
|
|
13459
13535
|
}
|
|
13460
13536
|
}), [setValue2]);
|
|
13461
13537
|
return withNativeProps(props, React__default.createElement("div", {
|
|
13462
|
-
className: classNames(classPrefix$
|
|
13463
|
-
[`${classPrefix$
|
|
13538
|
+
className: classNames(classPrefix$U, {
|
|
13539
|
+
[`${classPrefix$U}-open`]: !!value
|
|
13464
13540
|
}),
|
|
13465
13541
|
ref: containerRef
|
|
13466
13542
|
}, React__default.createElement("div", {
|
|
13467
|
-
className: `${classPrefix$
|
|
13543
|
+
className: `${classPrefix$U}-nav`,
|
|
13468
13544
|
ref: navRef
|
|
13469
13545
|
}, navs), React__default.createElement(Popup, {
|
|
13470
13546
|
visible: !!value,
|
|
13471
13547
|
position: "top",
|
|
13472
13548
|
getContainer: props.getContainer,
|
|
13473
|
-
className: `${classPrefix$
|
|
13474
|
-
maskClassName: `${classPrefix$
|
|
13475
|
-
bodyClassName: `${classPrefix$
|
|
13549
|
+
className: `${classPrefix$U}-popup`,
|
|
13550
|
+
maskClassName: `${classPrefix$U}-popup-mask`,
|
|
13551
|
+
bodyClassName: `${classPrefix$U}-popup-body`,
|
|
13476
13552
|
style: {
|
|
13477
13553
|
top
|
|
13478
13554
|
},
|
|
@@ -13557,7 +13633,7 @@ function betweenInclusive(i2, e2, n2) {
|
|
|
13557
13633
|
!function(i2) {
|
|
13558
13634
|
i2[i2.unit_1 = 1] = "unit_1", i2[i2.unit_2 = 2] = "unit_2", i2[i2.unit_4 = 4] = "unit_4";
|
|
13559
13635
|
}(n || (n = {}));
|
|
13560
|
-
const classPrefix$
|
|
13636
|
+
const classPrefix$T = `adm-ellipsis`;
|
|
13561
13637
|
const defaultProps$G = {
|
|
13562
13638
|
direction: "end",
|
|
13563
13639
|
rows: 1,
|
|
@@ -13671,18 +13747,18 @@ const Ellipsis$1 = (p) => {
|
|
|
13671
13747
|
useIsomorphicLayoutEffect$2(() => {
|
|
13672
13748
|
calcEllipsised();
|
|
13673
13749
|
}, [props.content, props.direction, props.rows, props.expandText, props.collapseText]);
|
|
13674
|
-
const expandActionElement =
|
|
13750
|
+
const expandActionElement = !!props.expandText && withStopPropagation(props.stopPropagationForActionButtons, React__default.createElement("a", {
|
|
13675
13751
|
ref: expandElRef,
|
|
13676
13752
|
onClick: () => {
|
|
13677
13753
|
setExpanded(true);
|
|
13678
13754
|
}
|
|
13679
|
-
}, props.expandText))
|
|
13680
|
-
const collapseActionElement =
|
|
13755
|
+
}, props.expandText));
|
|
13756
|
+
const collapseActionElement = !!props.collapseText && withStopPropagation(props.stopPropagationForActionButtons, React__default.createElement("a", {
|
|
13681
13757
|
ref: collapseElRef,
|
|
13682
13758
|
onClick: () => {
|
|
13683
13759
|
setExpanded(false);
|
|
13684
13760
|
}
|
|
13685
|
-
}, props.collapseText))
|
|
13761
|
+
}, props.collapseText));
|
|
13686
13762
|
const renderContent = () => {
|
|
13687
13763
|
if (!exceeded)
|
|
13688
13764
|
return props.content;
|
|
@@ -13692,7 +13768,7 @@ const Ellipsis$1 = (p) => {
|
|
|
13692
13768
|
};
|
|
13693
13769
|
return withNativeProps(props, React__default.createElement("div", {
|
|
13694
13770
|
ref: rootRef,
|
|
13695
|
-
className: classPrefix$
|
|
13771
|
+
className: classPrefix$T,
|
|
13696
13772
|
onClick: (e2) => {
|
|
13697
13773
|
if (e2.target === e2.currentTarget) {
|
|
13698
13774
|
props.onContentClick(e2);
|
|
@@ -13730,7 +13806,7 @@ const EmptyIcon = (props) => {
|
|
|
13730
13806
|
fill: "#fafafa"
|
|
13731
13807
|
})))));
|
|
13732
13808
|
};
|
|
13733
|
-
const classPrefix$
|
|
13809
|
+
const classPrefix$S = `adm-empty`;
|
|
13734
13810
|
const Empty$1 = (props) => {
|
|
13735
13811
|
function renderImageNode() {
|
|
13736
13812
|
const {
|
|
@@ -13738,13 +13814,13 @@ const Empty$1 = (props) => {
|
|
|
13738
13814
|
} = props;
|
|
13739
13815
|
if (image2 === void 0) {
|
|
13740
13816
|
return React__default.createElement(EmptyIcon, {
|
|
13741
|
-
className: `${classPrefix$
|
|
13817
|
+
className: `${classPrefix$S}-image`,
|
|
13742
13818
|
style: props.imageStyle
|
|
13743
13819
|
});
|
|
13744
13820
|
}
|
|
13745
13821
|
if (typeof image2 === "string") {
|
|
13746
13822
|
return React__default.createElement("img", {
|
|
13747
|
-
className: `${classPrefix$
|
|
13823
|
+
className: `${classPrefix$S}-image`,
|
|
13748
13824
|
style: props.imageStyle,
|
|
13749
13825
|
src: image2,
|
|
13750
13826
|
alt: "empty"
|
|
@@ -13753,16 +13829,16 @@ const Empty$1 = (props) => {
|
|
|
13753
13829
|
return image2;
|
|
13754
13830
|
}
|
|
13755
13831
|
return withNativeProps(props, React__default.createElement("div", {
|
|
13756
|
-
className: classPrefix$
|
|
13832
|
+
className: classPrefix$S
|
|
13757
13833
|
}, React__default.createElement("div", {
|
|
13758
|
-
className: `${classPrefix$
|
|
13834
|
+
className: `${classPrefix$S}-image-container`
|
|
13759
13835
|
}, renderImageNode()), props.description && React__default.createElement("div", {
|
|
13760
|
-
className: classNames(`${classPrefix$
|
|
13836
|
+
className: classNames(`${classPrefix$S}-description`)
|
|
13761
13837
|
}, props.description)));
|
|
13762
13838
|
};
|
|
13763
13839
|
const Empty = Empty$1;
|
|
13764
13840
|
const errorBlock = "";
|
|
13765
|
-
const classPrefix$
|
|
13841
|
+
const classPrefix$R = `adm-error-block`;
|
|
13766
13842
|
const defaultProps$F = {
|
|
13767
13843
|
status: "default"
|
|
13768
13844
|
};
|
|
@@ -13774,7 +13850,7 @@ function createErrorBlock(imageRecord2) {
|
|
|
13774
13850
|
locale
|
|
13775
13851
|
} = useConfig();
|
|
13776
13852
|
const contentPack = locale.ErrorBlock[props.status];
|
|
13777
|
-
const
|
|
13853
|
+
const desc = "description" in props ? props.description : contentPack.description;
|
|
13778
13854
|
const title = "title" in props ? props.title : contentPack.title;
|
|
13779
13855
|
const image2 = (_a = props.image) !== null && _a !== void 0 ? _a : imageRecord2[props.status];
|
|
13780
13856
|
const imageNode = typeof image2 === "string" ? React__default.createElement("img", {
|
|
@@ -13782,19 +13858,19 @@ function createErrorBlock(imageRecord2) {
|
|
|
13782
13858
|
alt: "error block image"
|
|
13783
13859
|
}) : image2;
|
|
13784
13860
|
return withNativeProps(props, React__default.createElement("div", {
|
|
13785
|
-
className: classNames(classPrefix$
|
|
13786
|
-
[`${classPrefix$
|
|
13861
|
+
className: classNames(classPrefix$R, {
|
|
13862
|
+
[`${classPrefix$R}-full-page`]: props.fullPage
|
|
13787
13863
|
})
|
|
13788
13864
|
}, React__default.createElement("div", {
|
|
13789
|
-
className: `${classPrefix$
|
|
13865
|
+
className: `${classPrefix$R}-image`
|
|
13790
13866
|
}, imageNode), React__default.createElement("div", {
|
|
13791
|
-
className: `${classPrefix$
|
|
13792
|
-
}, title && React__default.createElement("div", {
|
|
13793
|
-
className: `${classPrefix$
|
|
13794
|
-
}, title),
|
|
13795
|
-
className: `${classPrefix$
|
|
13796
|
-
},
|
|
13797
|
-
className: `${classPrefix$
|
|
13867
|
+
className: `${classPrefix$R}-description`
|
|
13868
|
+
}, ![void 0, null].includes(title) && React__default.createElement("div", {
|
|
13869
|
+
className: `${classPrefix$R}-description-title`
|
|
13870
|
+
}, title), ![void 0, null].includes(desc) && React__default.createElement("div", {
|
|
13871
|
+
className: `${classPrefix$R}-description-subtitle`
|
|
13872
|
+
}, desc)), props.children && React__default.createElement("div", {
|
|
13873
|
+
className: `${classPrefix$R}-content`
|
|
13798
13874
|
}, props.children)));
|
|
13799
13875
|
};
|
|
13800
13876
|
return ErrorBlock2;
|
|
@@ -14302,7 +14378,7 @@ const imageRecord = {
|
|
|
14302
14378
|
const ErrorBlock$1 = createErrorBlock(imageRecord);
|
|
14303
14379
|
const ErrorBlock = ErrorBlock$1;
|
|
14304
14380
|
const floatingBubble = "";
|
|
14305
|
-
const classPrefix$
|
|
14381
|
+
const classPrefix$Q = `adm-floating-bubble`;
|
|
14306
14382
|
const defaultProps$E = {
|
|
14307
14383
|
axis: "y",
|
|
14308
14384
|
defaultOffset: {
|
|
@@ -14386,11 +14462,11 @@ const FloatingBubble$1 = (p) => {
|
|
|
14386
14462
|
from: () => [x.get(), y.get()]
|
|
14387
14463
|
});
|
|
14388
14464
|
return withNativeProps(props, React__default.createElement("div", {
|
|
14389
|
-
className: classPrefix$
|
|
14465
|
+
className: classPrefix$Q
|
|
14390
14466
|
}, React__default.createElement("div", {
|
|
14391
|
-
className: `${classPrefix$
|
|
14467
|
+
className: `${classPrefix$Q}-boundary-outer`
|
|
14392
14468
|
}, React__default.createElement("div", {
|
|
14393
|
-
className: `${classPrefix$
|
|
14469
|
+
className: `${classPrefix$Q}-boundary`,
|
|
14394
14470
|
ref: boundaryRef
|
|
14395
14471
|
})), React__default.createElement(animated.div, Object.assign({}, bind(), {
|
|
14396
14472
|
style: {
|
|
@@ -14398,7 +14474,7 @@ const FloatingBubble$1 = (p) => {
|
|
|
14398
14474
|
transform: to([x, y], (x2, y2) => `translate(${x2}px, ${y2}px)`)
|
|
14399
14475
|
},
|
|
14400
14476
|
onClick: props.onClick,
|
|
14401
|
-
className: `${classPrefix$
|
|
14477
|
+
className: `${classPrefix$Q}-button`,
|
|
14402
14478
|
ref: buttonRef
|
|
14403
14479
|
}), props.children)));
|
|
14404
14480
|
};
|
|
@@ -14409,6 +14485,7 @@ function nearest(arr, target) {
|
|
|
14409
14485
|
return Math.abs(pre - target) < Math.abs(cur - target) ? pre : cur;
|
|
14410
14486
|
});
|
|
14411
14487
|
}
|
|
14488
|
+
const classPrefix$P = "adm-floating-panel";
|
|
14412
14489
|
const defaultProps$D = {
|
|
14413
14490
|
handleDraggingOfContent: true
|
|
14414
14491
|
};
|
|
@@ -14471,7 +14548,7 @@ const FloatingPanel$1 = forwardRef((p, ref) => {
|
|
|
14471
14548
|
const {
|
|
14472
14549
|
event
|
|
14473
14550
|
} = state;
|
|
14474
|
-
if (event.cancelable) {
|
|
14551
|
+
if (event.cancelable && supportsPassive) {
|
|
14475
14552
|
event.preventDefault();
|
|
14476
14553
|
}
|
|
14477
14554
|
event.stopPropagation();
|
|
@@ -14495,7 +14572,7 @@ const FloatingPanel$1 = forwardRef((p, ref) => {
|
|
|
14495
14572
|
target: elementRef,
|
|
14496
14573
|
eventOptions: supportsPassive ? {
|
|
14497
14574
|
passive: false
|
|
14498
|
-
} :
|
|
14575
|
+
} : void 0
|
|
14499
14576
|
});
|
|
14500
14577
|
useImperativeHandle(ref, () => ({
|
|
14501
14578
|
setHeight: (height, options) => {
|
|
@@ -14508,23 +14585,23 @@ const FloatingPanel$1 = forwardRef((p, ref) => {
|
|
|
14508
14585
|
useLockScroll(elementRef, true);
|
|
14509
14586
|
return withNativeProps(props, React__default.createElement(animated.div, {
|
|
14510
14587
|
ref: elementRef,
|
|
14511
|
-
className:
|
|
14588
|
+
className: classPrefix$P,
|
|
14512
14589
|
style: {
|
|
14513
14590
|
height: Math.round(maxHeight),
|
|
14514
14591
|
translateY: y.to((y2) => `calc(100% + (${Math.round(y2)}px))`)
|
|
14515
14592
|
}
|
|
14516
14593
|
}, React__default.createElement("div", {
|
|
14517
|
-
className:
|
|
14594
|
+
className: `${classPrefix$P}-mask`,
|
|
14518
14595
|
style: {
|
|
14519
14596
|
display: pulling ? "block" : "none"
|
|
14520
14597
|
}
|
|
14521
14598
|
}), React__default.createElement("div", {
|
|
14522
|
-
className:
|
|
14599
|
+
className: `${classPrefix$P}-header`,
|
|
14523
14600
|
ref: headerRef
|
|
14524
14601
|
}, React__default.createElement("div", {
|
|
14525
|
-
className:
|
|
14602
|
+
className: `${classPrefix$P}-bar`
|
|
14526
14603
|
})), React__default.createElement("div", {
|
|
14527
|
-
className:
|
|
14604
|
+
className: `${classPrefix$P}-content`,
|
|
14528
14605
|
ref: contentRef
|
|
14529
14606
|
}, props.children)));
|
|
14530
14607
|
});
|
|
@@ -20582,7 +20659,6 @@ const MemoInput = React__default.memo(({
|
|
|
20582
20659
|
const FormItemLayout = (props) => {
|
|
20583
20660
|
var _a;
|
|
20584
20661
|
const {
|
|
20585
|
-
className,
|
|
20586
20662
|
style,
|
|
20587
20663
|
extra,
|
|
20588
20664
|
label,
|
|
@@ -20624,7 +20700,7 @@ const FormItemLayout = (props) => {
|
|
|
20624
20700
|
return null;
|
|
20625
20701
|
}
|
|
20626
20702
|
})();
|
|
20627
|
-
const labelElement = label
|
|
20703
|
+
const labelElement = !!label && React__default.createElement("label", {
|
|
20628
20704
|
className: `${classPrefix$L}-label`,
|
|
20629
20705
|
htmlFor
|
|
20630
20706
|
}, label, requiredMark, help && React__default.createElement(Popover, {
|
|
@@ -20636,21 +20712,21 @@ const FormItemLayout = (props) => {
|
|
|
20636
20712
|
onClick: (e2) => {
|
|
20637
20713
|
e2.preventDefault();
|
|
20638
20714
|
}
|
|
20639
|
-
}, React__default.createElement(QuestionCircleOutline, null))))
|
|
20640
|
-
const description = props.description || hasFeedback
|
|
20715
|
+
}, React__default.createElement(QuestionCircleOutline, null))));
|
|
20716
|
+
const description = (!!props.description || hasFeedback) && React__default.createElement(React__default.Fragment, null, props.description, hasFeedback && React__default.createElement(React__default.Fragment, null, props.errors.map((error, index2) => React__default.createElement("div", {
|
|
20641
20717
|
key: `error-${index2}`,
|
|
20642
20718
|
className: `${classPrefix$L}-feedback-error`
|
|
20643
20719
|
}, error)), props.warnings.map((warning3, index2) => React__default.createElement("div", {
|
|
20644
20720
|
key: `warning-${index2}`,
|
|
20645
20721
|
className: `${classPrefix$L}-feedback-warning`
|
|
20646
|
-
}, warning3))))
|
|
20722
|
+
}, warning3))));
|
|
20647
20723
|
return withNativeProps(props, React__default.createElement(List$1.Item, {
|
|
20648
20724
|
style,
|
|
20649
20725
|
title: layout === "vertical" && labelElement,
|
|
20650
20726
|
prefix: layout === "horizontal" && labelElement,
|
|
20651
20727
|
extra,
|
|
20652
20728
|
description,
|
|
20653
|
-
className: classNames(classPrefix$L,
|
|
20729
|
+
className: classNames(classPrefix$L, `${classPrefix$L}-${layout}`, {
|
|
20654
20730
|
[`${classPrefix$L}-hidden`]: hidden,
|
|
20655
20731
|
[`${classPrefix$L}-has-error`]: props.errors.length
|
|
20656
20732
|
}),
|
|
@@ -20666,7 +20742,6 @@ const FormItemLayout = (props) => {
|
|
|
20666
20742
|
};
|
|
20667
20743
|
const FormItem = (props) => {
|
|
20668
20744
|
const {
|
|
20669
|
-
className,
|
|
20670
20745
|
style,
|
|
20671
20746
|
label,
|
|
20672
20747
|
help,
|
|
@@ -20690,7 +20765,7 @@ const FormItem = (props) => {
|
|
|
20690
20765
|
dependencies,
|
|
20691
20766
|
clickable,
|
|
20692
20767
|
arrow: arrow2
|
|
20693
|
-
} = props, fieldProps = __rest(props, ["
|
|
20768
|
+
} = props, fieldProps = __rest(props, ["style", "label", "help", "extra", "hasFeedback", "name", "required", "noStyle", "hidden", "layout", "childElementPosition", "description", "disabled", "rules", "children", "messageVariables", "trigger", "validateTrigger", "onClick", "shouldUpdate", "dependencies", "clickable", "arrow"]);
|
|
20694
20769
|
const {
|
|
20695
20770
|
name: formName
|
|
20696
20771
|
} = useContext(FormContext);
|
|
@@ -20738,7 +20813,6 @@ const FormItem = (props) => {
|
|
|
20738
20813
|
return subWarnings;
|
|
20739
20814
|
}, curWarnings);
|
|
20740
20815
|
return withNativeProps(props, React__default.createElement(FormItemLayout, {
|
|
20741
|
-
className,
|
|
20742
20816
|
style,
|
|
20743
20817
|
label,
|
|
20744
20818
|
extra,
|
|
@@ -22940,7 +23014,7 @@ const PullToRefresh$1 = (p) => {
|
|
|
22940
23014
|
enabled: !props.disabled,
|
|
22941
23015
|
eventOptions: supportsPassive ? {
|
|
22942
23016
|
passive: false
|
|
22943
|
-
} :
|
|
23017
|
+
} : void 0
|
|
22944
23018
|
});
|
|
22945
23019
|
const renderStatusText = () => {
|
|
22946
23020
|
var _a2;
|
|
@@ -24725,14 +24799,14 @@ const Steps = (p) => {
|
|
|
24725
24799
|
if (!React__default.isValidElement(child)) {
|
|
24726
24800
|
return child;
|
|
24727
24801
|
}
|
|
24728
|
-
const
|
|
24729
|
-
let status =
|
|
24802
|
+
const childProps = child.props;
|
|
24803
|
+
let status = childProps.status || "wait";
|
|
24730
24804
|
if (index2 < current) {
|
|
24731
|
-
status =
|
|
24805
|
+
status = childProps.status || "finish";
|
|
24732
24806
|
} else if (index2 === current) {
|
|
24733
|
-
status =
|
|
24807
|
+
status = childProps.status || "process";
|
|
24734
24808
|
}
|
|
24735
|
-
const icon = (_a =
|
|
24809
|
+
const icon = (_a = childProps.icon) !== null && _a !== void 0 ? _a : defaultIcon;
|
|
24736
24810
|
return React__default.cloneElement(child, {
|
|
24737
24811
|
status,
|
|
24738
24812
|
icon
|
|
@@ -25441,7 +25515,7 @@ const index$1 = attachPropertiesToComponent(TabBar, {
|
|
|
25441
25515
|
const tag = "";
|
|
25442
25516
|
const classPrefix$7 = `adm-tag`;
|
|
25443
25517
|
const colorRecord = {
|
|
25444
|
-
default: "#666666",
|
|
25518
|
+
default: "var(--adm-color-text-secondary, #666666)",
|
|
25445
25519
|
primary: "var(--adm-color-primary, #1677ff)",
|
|
25446
25520
|
success: "var(--adm-color-success, #00b578)",
|
|
25447
25521
|
warning: "var(--adm-color-warning, #ff8f1f)",
|
|
@@ -25544,12 +25618,21 @@ const TextArea$1 = forwardRef((p, ref) => {
|
|
|
25544
25618
|
className: `${classPrefix$6}-count`
|
|
25545
25619
|
}, maxLength === void 0 ? valueLength : valueLength + "/" + maxLength);
|
|
25546
25620
|
}
|
|
25621
|
+
let rows = props.rows;
|
|
25622
|
+
if (typeof autoSize === "object") {
|
|
25623
|
+
if (autoSize.maxRows && rows > autoSize.maxRows) {
|
|
25624
|
+
rows = autoSize.maxRows;
|
|
25625
|
+
}
|
|
25626
|
+
if (autoSize.minRows && rows < autoSize.minRows) {
|
|
25627
|
+
rows = autoSize.minRows;
|
|
25628
|
+
}
|
|
25629
|
+
}
|
|
25547
25630
|
return withNativeProps(props, React__default.createElement("div", {
|
|
25548
25631
|
className: classPrefix$6
|
|
25549
25632
|
}, React__default.createElement("textarea", {
|
|
25550
25633
|
ref: nativeTextAreaRef,
|
|
25551
25634
|
className: `${classPrefix$6}-element`,
|
|
25552
|
-
rows
|
|
25635
|
+
rows,
|
|
25553
25636
|
value,
|
|
25554
25637
|
placeholder: props.placeholder,
|
|
25555
25638
|
onChange: (e2) => {
|
|
@@ -25586,7 +25669,7 @@ const TextArea$1 = forwardRef((p, ref) => {
|
|
|
25586
25669
|
ref: hiddenTextAreaRef,
|
|
25587
25670
|
className: `${classPrefix$6}-element ${classPrefix$6}-element-hidden`,
|
|
25588
25671
|
value,
|
|
25589
|
-
rows
|
|
25672
|
+
rows,
|
|
25590
25673
|
"aria-hidden": true,
|
|
25591
25674
|
readOnly: true
|
|
25592
25675
|
})));
|
|
@@ -26172,7 +26255,7 @@ const defaultProps$1 = {
|
|
|
26172
26255
|
const WaterMark$1 = (p) => {
|
|
26173
26256
|
const props = mergeProps(defaultProps$1, p);
|
|
26174
26257
|
const {
|
|
26175
|
-
zIndex
|
|
26258
|
+
zIndex,
|
|
26176
26259
|
gapX = 24,
|
|
26177
26260
|
gapY = 48,
|
|
26178
26261
|
width = 120,
|