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
|
@@ -229,7 +229,7 @@
|
|
|
229
229
|
},
|
|
230
230
|
Calendar: {
|
|
231
231
|
markItems: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
|
|
232
|
-
|
|
232
|
+
yearAndMonth: "${year}/${month}"
|
|
233
233
|
},
|
|
234
234
|
Cascader: {
|
|
235
235
|
placeholder: "Selecting"
|
|
@@ -363,7 +363,7 @@
|
|
|
363
363
|
},
|
|
364
364
|
Calendar: {
|
|
365
365
|
markItems: ["\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D", "\u65E5"],
|
|
366
|
-
|
|
366
|
+
yearAndMonth: "${year}\u5E74${month}\u6708"
|
|
367
367
|
},
|
|
368
368
|
Cascader: {
|
|
369
369
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
@@ -3549,14 +3549,17 @@
|
|
|
3549
3549
|
offsetHeight,
|
|
3550
3550
|
scrollTop
|
|
3551
3551
|
} = el;
|
|
3552
|
+
const {
|
|
3553
|
+
height
|
|
3554
|
+
} = el.getBoundingClientRect();
|
|
3552
3555
|
let status = "11";
|
|
3553
3556
|
if (scrollTop === 0) {
|
|
3554
3557
|
status = offsetHeight >= scrollHeight ? "00" : "01";
|
|
3555
|
-
} else if (
|
|
3558
|
+
} else if (scrollHeight <= Math.round(height + scrollTop)) {
|
|
3556
3559
|
status = "10";
|
|
3557
3560
|
}
|
|
3558
3561
|
if (status !== "11" && touch.isVertical() && !(parseInt(status, 2) & parseInt(direction, 2))) {
|
|
3559
|
-
if (event.cancelable) {
|
|
3562
|
+
if (event.cancelable && supportsPassive) {
|
|
3560
3563
|
event.preventDefault();
|
|
3561
3564
|
}
|
|
3562
3565
|
}
|
|
@@ -6823,7 +6826,7 @@
|
|
|
6823
6826
|
}
|
|
6824
6827
|
return React__default.default.cloneElement(element, props);
|
|
6825
6828
|
}
|
|
6826
|
-
const classPrefix$
|
|
6829
|
+
const classPrefix$1n = `adm-mask`;
|
|
6827
6830
|
const opacityRecord = {
|
|
6828
6831
|
default: 0.55,
|
|
6829
6832
|
thin: 0.35,
|
|
@@ -6885,7 +6888,7 @@
|
|
|
6885
6888
|
}
|
|
6886
6889
|
});
|
|
6887
6890
|
const node = withStopPropagation(props.stopPropagation, withNativeProps(props, React__default.default.createElement(animated.div, {
|
|
6888
|
-
className: classPrefix$
|
|
6891
|
+
className: classPrefix$1n,
|
|
6889
6892
|
ref,
|
|
6890
6893
|
style: Object.assign(Object.assign({}, props.style), {
|
|
6891
6894
|
background,
|
|
@@ -6899,12 +6902,12 @@
|
|
|
6899
6902
|
}
|
|
6900
6903
|
}
|
|
6901
6904
|
}, props.onMaskClick && React__default.default.createElement("div", {
|
|
6902
|
-
className: `${classPrefix$
|
|
6905
|
+
className: `${classPrefix$1n}-aria-button`,
|
|
6903
6906
|
role: "button",
|
|
6904
6907
|
"aria-label": locale.Mask.name,
|
|
6905
6908
|
onClick: props.onMaskClick
|
|
6906
6909
|
}), React__default.default.createElement("div", {
|
|
6907
|
-
className: `${classPrefix$
|
|
6910
|
+
className: `${classPrefix$1n}-content`
|
|
6908
6911
|
}, props.children))));
|
|
6909
6912
|
return React__default.default.createElement(ShouldRender, {
|
|
6910
6913
|
active,
|
|
@@ -9316,14 +9319,14 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
9316
9319
|
return useRecognizers(handlers, config2, void 0, nativeHandlers);
|
|
9317
9320
|
};
|
|
9318
9321
|
}
|
|
9319
|
-
const classPrefix$
|
|
9322
|
+
const classPrefix$1m = `adm-popup`;
|
|
9320
9323
|
const defaultProps$12 = Object.assign(Object.assign({}, defaultPopupBaseProps), {
|
|
9321
9324
|
closeOnSwipe: false,
|
|
9322
9325
|
position: "bottom"
|
|
9323
9326
|
});
|
|
9324
9327
|
const Popup$1 = (p) => {
|
|
9325
9328
|
const props = mergeProps(defaultProps$12, p);
|
|
9326
|
-
const bodyCls = classNames(`${classPrefix$
|
|
9329
|
+
const bodyCls = classNames(`${classPrefix$1m}-body`, props.bodyClassName, `${classPrefix$1m}-body-position-${props.position}`);
|
|
9327
9330
|
const {
|
|
9328
9331
|
locale
|
|
9329
9332
|
} = useConfig();
|
|
@@ -9373,7 +9376,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
9373
9376
|
});
|
|
9374
9377
|
const maskVisible = useInnerVisible(active && props.visible);
|
|
9375
9378
|
const node = withStopPropagation(props.stopPropagation, withNativeProps(props, React__default.default.createElement("div", Object.assign({
|
|
9376
|
-
className: classPrefix$
|
|
9379
|
+
className: classPrefix$1m,
|
|
9377
9380
|
onClick: props.onClick,
|
|
9378
9381
|
style: {
|
|
9379
9382
|
display: active ? void 0 : "none",
|
|
@@ -9415,7 +9418,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
9415
9418
|
}),
|
|
9416
9419
|
ref
|
|
9417
9420
|
}, props.showCloseButton && React__default.default.createElement("a", {
|
|
9418
|
-
className: classNames(`${classPrefix$
|
|
9421
|
+
className: classNames(`${classPrefix$1m}-close-icon`, "adm-plain-anchor"),
|
|
9419
9422
|
onClick: () => {
|
|
9420
9423
|
var _a;
|
|
9421
9424
|
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
@@ -9431,10 +9434,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
9431
9434
|
};
|
|
9432
9435
|
const Popup = Popup$1;
|
|
9433
9436
|
const safeArea = "";
|
|
9434
|
-
const classPrefix$
|
|
9437
|
+
const classPrefix$1l = "adm-safe-area";
|
|
9435
9438
|
const SafeArea$1 = (props) => {
|
|
9436
9439
|
return withNativeProps(props, React__default.default.createElement("div", {
|
|
9437
|
-
className: classNames(classPrefix$
|
|
9440
|
+
className: classNames(classPrefix$1l, `${classPrefix$1l}-position-${props.position}`)
|
|
9438
9441
|
}));
|
|
9439
9442
|
};
|
|
9440
9443
|
const SafeArea = SafeArea$1;
|
|
@@ -9567,7 +9570,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
9567
9570
|
}
|
|
9568
9571
|
};
|
|
9569
9572
|
}
|
|
9570
|
-
const classPrefix$
|
|
9573
|
+
const classPrefix$1k = `adm-action-sheet`;
|
|
9571
9574
|
const defaultProps$11 = {
|
|
9572
9575
|
visible: false,
|
|
9573
9576
|
actions: [],
|
|
@@ -9590,25 +9593,25 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
9590
9593
|
}
|
|
9591
9594
|
},
|
|
9592
9595
|
afterClose: props.afterClose,
|
|
9593
|
-
className: classNames(`${classPrefix$
|
|
9596
|
+
className: classNames(`${classPrefix$1k}-popup`, props.popupClassName),
|
|
9594
9597
|
style: props.popupStyle,
|
|
9595
9598
|
getContainer: props.getContainer,
|
|
9596
9599
|
destroyOnClose: props.destroyOnClose,
|
|
9597
9600
|
forceRender: props.forceRender
|
|
9598
9601
|
}, withNativeProps(props, React__default.default.createElement("div", {
|
|
9599
|
-
className: classPrefix$
|
|
9602
|
+
className: classPrefix$1k
|
|
9600
9603
|
}, props.extra && React__default.default.createElement("div", {
|
|
9601
|
-
className: `${classPrefix$
|
|
9604
|
+
className: `${classPrefix$1k}-extra`
|
|
9602
9605
|
}, props.extra), React__default.default.createElement("div", {
|
|
9603
|
-
className: `${classPrefix$
|
|
9606
|
+
className: `${classPrefix$1k}-button-list`
|
|
9604
9607
|
}, props.actions.map((action, index2) => React__default.default.createElement("div", {
|
|
9605
9608
|
key: action.key,
|
|
9606
|
-
className: `${classPrefix$
|
|
9609
|
+
className: `${classPrefix$1k}-button-item-wrapper`
|
|
9607
9610
|
}, React__default.default.createElement("a", {
|
|
9608
|
-
className: classNames("adm-plain-anchor", `${classPrefix$
|
|
9609
|
-
[`${classPrefix$
|
|
9610
|
-
[`${classPrefix$
|
|
9611
|
-
[`${classPrefix$
|
|
9611
|
+
className: classNames("adm-plain-anchor", `${classPrefix$1k}-button-item`, {
|
|
9612
|
+
[`${classPrefix$1k}-button-item-danger`]: action.danger,
|
|
9613
|
+
[`${classPrefix$1k}-button-item-disabled`]: action.disabled,
|
|
9614
|
+
[`${classPrefix$1k}-button-item-bold`]: action.bold
|
|
9612
9615
|
}),
|
|
9613
9616
|
onClick: () => {
|
|
9614
9617
|
var _a, _b, _c;
|
|
@@ -9621,23 +9624,23 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
9621
9624
|
role: "option",
|
|
9622
9625
|
"aria-disabled": action.disabled
|
|
9623
9626
|
}, React__default.default.createElement("div", {
|
|
9624
|
-
className: `${classPrefix$
|
|
9627
|
+
className: `${classPrefix$1k}-button-item-name`
|
|
9625
9628
|
}, action.text), action.description && React__default.default.createElement("div", {
|
|
9626
|
-
className: `${classPrefix$
|
|
9629
|
+
className: `${classPrefix$1k}-button-item-description`
|
|
9627
9630
|
}, action.description))))), props.cancelText && React__default.default.createElement("div", {
|
|
9628
|
-
className: `${classPrefix$
|
|
9631
|
+
className: `${classPrefix$1k}-cancel`,
|
|
9629
9632
|
role: "option",
|
|
9630
9633
|
"aria-label": props.cancelText
|
|
9631
9634
|
}, React__default.default.createElement("div", {
|
|
9632
|
-
className: `${classPrefix$
|
|
9635
|
+
className: `${classPrefix$1k}-button-item-wrapper`
|
|
9633
9636
|
}, React__default.default.createElement("a", {
|
|
9634
|
-
className: classNames("adm-plain-anchor", `${classPrefix$
|
|
9637
|
+
className: classNames("adm-plain-anchor", `${classPrefix$1k}-button-item`),
|
|
9635
9638
|
onClick: () => {
|
|
9636
9639
|
var _a;
|
|
9637
9640
|
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
9638
9641
|
}
|
|
9639
9642
|
}, React__default.default.createElement("div", {
|
|
9640
|
-
className: `${classPrefix$
|
|
9643
|
+
className: `${classPrefix$1k}-button-item-name`
|
|
9641
9644
|
}, props.cancelText)))), props.safeArea && React__default.default.createElement(SafeArea, {
|
|
9642
9645
|
position: "bottom"
|
|
9643
9646
|
}))));
|
|
@@ -9649,12 +9652,12 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
9649
9652
|
show: showActionSheet
|
|
9650
9653
|
});
|
|
9651
9654
|
const autoCenter = "";
|
|
9652
|
-
const classPrefix$
|
|
9655
|
+
const classPrefix$1j = "adm-auto-center";
|
|
9653
9656
|
const AutoCenter$1 = (props) => {
|
|
9654
9657
|
return withNativeProps(props, React__default.default.createElement("div", {
|
|
9655
|
-
className: classPrefix$
|
|
9658
|
+
className: classPrefix$1j
|
|
9656
9659
|
}, React__default.default.createElement("div", {
|
|
9657
|
-
className: `${classPrefix$
|
|
9660
|
+
className: `${classPrefix$1j}-content`
|
|
9658
9661
|
}, props.children)));
|
|
9659
9662
|
};
|
|
9660
9663
|
const AutoCenter = AutoCenter$1;
|
|
@@ -9755,14 +9758,14 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
9755
9758
|
fill: "#DBDBDB",
|
|
9756
9759
|
fillRule: "nonzero"
|
|
9757
9760
|
}));
|
|
9758
|
-
const classPrefix$
|
|
9761
|
+
const classPrefix$1i = `adm-image`;
|
|
9759
9762
|
const defaultProps$10 = {
|
|
9760
9763
|
fit: "fill",
|
|
9761
9764
|
placeholder: React__default.default.createElement("div", {
|
|
9762
|
-
className: `${classPrefix$
|
|
9765
|
+
className: `${classPrefix$1i}-tip`
|
|
9763
9766
|
}, React__default.default.createElement(ImageIcon, null)),
|
|
9764
9767
|
fallback: React__default.default.createElement("div", {
|
|
9765
|
-
className: `${classPrefix$
|
|
9768
|
+
className: `${classPrefix$1i}-tip`
|
|
9766
9769
|
}, React__default.default.createElement(BrokenImageIcon, null)),
|
|
9767
9770
|
lazy: false,
|
|
9768
9771
|
draggable: false
|
|
@@ -9795,7 +9798,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
9795
9798
|
const img = React__default.default.createElement("img", {
|
|
9796
9799
|
ref: imgRef,
|
|
9797
9800
|
id: props.id,
|
|
9798
|
-
className: `${classPrefix$
|
|
9801
|
+
className: `${classPrefix$1i}-img`,
|
|
9799
9802
|
src,
|
|
9800
9803
|
alt: props.alt,
|
|
9801
9804
|
onClick: props.onClick,
|
|
@@ -9835,7 +9838,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
9835
9838
|
}
|
|
9836
9839
|
return withNativeProps(props, React__default.default.createElement("div", {
|
|
9837
9840
|
ref,
|
|
9838
|
-
className: classPrefix$
|
|
9841
|
+
className: classPrefix$1i,
|
|
9839
9842
|
style,
|
|
9840
9843
|
onClick: props.onContainerClick
|
|
9841
9844
|
}, props.lazy && !initialized && React__default.default.createElement(LazyDetector, {
|
|
@@ -9845,7 +9848,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
9845
9848
|
}), renderInner()));
|
|
9846
9849
|
});
|
|
9847
9850
|
const Image$1 = Image$2;
|
|
9848
|
-
const classPrefix$
|
|
9851
|
+
const classPrefix$1h = "adm-avatar";
|
|
9849
9852
|
const defaultProps$$ = {
|
|
9850
9853
|
fallback: React__default.default.createElement(Fallback, null),
|
|
9851
9854
|
fit: "cover"
|
|
@@ -9853,7 +9856,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
9853
9856
|
const Avatar$1 = (p) => {
|
|
9854
9857
|
const props = mergeProps(defaultProps$$, p);
|
|
9855
9858
|
return withNativeProps(props, React__default.default.createElement(Image$1, {
|
|
9856
|
-
className: classPrefix$
|
|
9859
|
+
className: classPrefix$1h,
|
|
9857
9860
|
src: props.src,
|
|
9858
9861
|
fallback: props.fallback,
|
|
9859
9862
|
placeholder: props.fallback,
|
|
@@ -9867,7 +9870,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
9867
9870
|
};
|
|
9868
9871
|
const Avatar = Avatar$1;
|
|
9869
9872
|
const badge = "";
|
|
9870
|
-
const classPrefix$
|
|
9873
|
+
const classPrefix$1g = `adm-badge`;
|
|
9871
9874
|
const dot = React__default.default.createElement(React__default.default.Fragment, null);
|
|
9872
9875
|
const Badge$1 = (props) => {
|
|
9873
9876
|
const {
|
|
@@ -9876,17 +9879,17 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
9876
9879
|
children
|
|
9877
9880
|
} = props;
|
|
9878
9881
|
const isDot = content === dot;
|
|
9879
|
-
const badgeCls = classNames(classPrefix$
|
|
9882
|
+
const badgeCls = classNames(classPrefix$1g, !!children && `${classPrefix$1g}-fixed`, isDot && `${classPrefix$1g}-dot`, props.bordered && `${classPrefix$1g}-bordered`);
|
|
9880
9883
|
const element = content || content === 0 ? withNativeProps(props, React__default.default.createElement("div", {
|
|
9881
9884
|
className: badgeCls,
|
|
9882
9885
|
style: {
|
|
9883
9886
|
"--color": color
|
|
9884
9887
|
}
|
|
9885
9888
|
}, !isDot && React__default.default.createElement("div", {
|
|
9886
|
-
className: `${classPrefix$
|
|
9889
|
+
className: `${classPrefix$1g}-content`
|
|
9887
9890
|
}, content))) : null;
|
|
9888
9891
|
return children ? React__default.default.createElement("div", {
|
|
9889
|
-
className: classNames(`${classPrefix$
|
|
9892
|
+
className: classNames(`${classPrefix$1g}-wrapper`, props.wrapperClassName),
|
|
9890
9893
|
style: props.wrapperStyle
|
|
9891
9894
|
}, children, element) : element;
|
|
9892
9895
|
};
|
|
@@ -9895,7 +9898,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
9895
9898
|
});
|
|
9896
9899
|
const button = "";
|
|
9897
9900
|
const dotLoading = "";
|
|
9898
|
-
const classPrefix$
|
|
9901
|
+
const classPrefix$1f = `adm-dot-loading`;
|
|
9899
9902
|
const colorRecord$3 = {
|
|
9900
9903
|
default: "var(--adm-color-weak)",
|
|
9901
9904
|
primary: "var(--adm-color-primary)",
|
|
@@ -9911,7 +9914,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
9911
9914
|
style: {
|
|
9912
9915
|
color: (_a = colorRecord$3[props.color]) !== null && _a !== void 0 ? _a : props.color
|
|
9913
9916
|
},
|
|
9914
|
-
className: classNames("adm-loading", classPrefix$
|
|
9917
|
+
className: classNames("adm-loading", classPrefix$1f)
|
|
9915
9918
|
}, React__default.default.createElement("svg", {
|
|
9916
9919
|
height: "1em",
|
|
9917
9920
|
viewBox: "0 0 100 40",
|
|
@@ -9955,7 +9958,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
9955
9958
|
function isIOS() {
|
|
9956
9959
|
return canUseDom$2 ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : false;
|
|
9957
9960
|
}
|
|
9958
|
-
const classPrefix$
|
|
9961
|
+
const classPrefix$1e = `adm-button`;
|
|
9959
9962
|
const defaultProps$Z = {
|
|
9960
9963
|
color: "default",
|
|
9961
9964
|
fill: "solid",
|
|
@@ -9998,23 +10001,23 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
9998
10001
|
ref: nativeButtonRef,
|
|
9999
10002
|
type: props.type,
|
|
10000
10003
|
onClick: handleClick,
|
|
10001
|
-
className: classNames(classPrefix$
|
|
10002
|
-
[`${classPrefix$
|
|
10003
|
-
[`${classPrefix$
|
|
10004
|
-
[`${classPrefix$
|
|
10005
|
-
[`${classPrefix$
|
|
10006
|
-
[`${classPrefix$
|
|
10007
|
-
[`${classPrefix$
|
|
10008
|
-
[`${classPrefix$
|
|
10009
|
-
[`${classPrefix$
|
|
10010
|
-
}, `${classPrefix$
|
|
10004
|
+
className: classNames(classPrefix$1e, props.color ? `${classPrefix$1e}-${props.color}` : null, {
|
|
10005
|
+
[`${classPrefix$1e}-block`]: props.block,
|
|
10006
|
+
[`${classPrefix$1e}-disabled`]: disabled,
|
|
10007
|
+
[`${classPrefix$1e}-fill-outline`]: props.fill === "outline",
|
|
10008
|
+
[`${classPrefix$1e}-fill-none`]: props.fill === "none",
|
|
10009
|
+
[`${classPrefix$1e}-mini`]: props.size === "mini",
|
|
10010
|
+
[`${classPrefix$1e}-small`]: props.size === "small",
|
|
10011
|
+
[`${classPrefix$1e}-large`]: props.size === "large",
|
|
10012
|
+
[`${classPrefix$1e}-loading`]: loading
|
|
10013
|
+
}, `${classPrefix$1e}-shape-${props.shape}`),
|
|
10011
10014
|
disabled,
|
|
10012
10015
|
onMouseDown: props.onMouseDown,
|
|
10013
10016
|
onMouseUp: props.onMouseUp,
|
|
10014
10017
|
onTouchStart: props.onTouchStart,
|
|
10015
10018
|
onTouchEnd: props.onTouchEnd
|
|
10016
10019
|
}, loading ? React__default.default.createElement("div", {
|
|
10017
|
-
className: `${classPrefix$
|
|
10020
|
+
className: `${classPrefix$1e}-loading-wrapper`
|
|
10018
10021
|
}, props.loadingIcon, props.loadingText) : React__default.default.createElement("span", null, props.children)));
|
|
10019
10022
|
});
|
|
10020
10023
|
const Button = Button$1;
|
|
@@ -10123,6 +10126,12 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10123
10126
|
});
|
|
10124
10127
|
return [stateRef.current, setState];
|
|
10125
10128
|
}
|
|
10129
|
+
function replaceMessage$1(template, kv) {
|
|
10130
|
+
return template.replace(/\$\{\w+\}/g, (str) => {
|
|
10131
|
+
const key = str.slice(2, -1);
|
|
10132
|
+
return kv[key];
|
|
10133
|
+
});
|
|
10134
|
+
}
|
|
10126
10135
|
function convertValueToRange(selectionMode, value) {
|
|
10127
10136
|
if (selectionMode === void 0 || value === null)
|
|
10128
10137
|
return null;
|
|
@@ -10135,7 +10144,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10135
10144
|
return dayjs().year(page.year).month(page.month - 1).date(1);
|
|
10136
10145
|
}
|
|
10137
10146
|
dayjs.extend(isoWeek);
|
|
10138
|
-
const classPrefix$
|
|
10147
|
+
const classPrefix$1d = "adm-calendar";
|
|
10139
10148
|
const defaultProps$Y = {
|
|
10140
10149
|
weekStartsOn: "Sunday",
|
|
10141
10150
|
defaultValue: null,
|
|
@@ -10209,26 +10218,29 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10209
10218
|
setCurrent(nxtCurrent);
|
|
10210
10219
|
};
|
|
10211
10220
|
const header = React__default.default.createElement("div", {
|
|
10212
|
-
className: `${classPrefix$
|
|
10221
|
+
className: `${classPrefix$1d}-header`
|
|
10213
10222
|
}, React__default.default.createElement("a", {
|
|
10214
|
-
className: `${classPrefix$
|
|
10223
|
+
className: `${classPrefix$1d}-arrow-button ${classPrefix$1d}-arrow-button-year`,
|
|
10215
10224
|
onClick: () => {
|
|
10216
10225
|
handlePageChange("subtract", 1, "year");
|
|
10217
10226
|
}
|
|
10218
10227
|
}, props.prevYearButton), React__default.default.createElement("a", {
|
|
10219
|
-
className: `${classPrefix$
|
|
10228
|
+
className: `${classPrefix$1d}-arrow-button ${classPrefix$1d}-arrow-button-month`,
|
|
10220
10229
|
onClick: () => {
|
|
10221
10230
|
handlePageChange("subtract", 1, "month");
|
|
10222
10231
|
}
|
|
10223
10232
|
}, props.prevMonthButton), React__default.default.createElement("div", {
|
|
10224
|
-
className: `${classPrefix$
|
|
10225
|
-
}, locale.Calendar.
|
|
10226
|
-
|
|
10233
|
+
className: `${classPrefix$1d}-title`
|
|
10234
|
+
}, replaceMessage$1(locale.Calendar.yearAndMonth, {
|
|
10235
|
+
year: current.year().toString(),
|
|
10236
|
+
month: (current.month() + 1).toString()
|
|
10237
|
+
})), React__default.default.createElement("a", {
|
|
10238
|
+
className: classNames(`${classPrefix$1d}-arrow-button`, `${classPrefix$1d}-arrow-button-right`, `${classPrefix$1d}-arrow-button-right-month`),
|
|
10227
10239
|
onClick: () => {
|
|
10228
10240
|
handlePageChange("add", 1, "month");
|
|
10229
10241
|
}
|
|
10230
10242
|
}, props.nextMonthButton), React__default.default.createElement("a", {
|
|
10231
|
-
className: classNames(`${classPrefix$
|
|
10243
|
+
className: classNames(`${classPrefix$1d}-arrow-button`, `${classPrefix$1d}-arrow-button-right`, `${classPrefix$1d}-arrow-button-right-year`),
|
|
10232
10244
|
onClick: () => {
|
|
10233
10245
|
handlePageChange("add", 1, "year");
|
|
10234
10246
|
}
|
|
@@ -10263,13 +10275,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10263
10275
|
const disabled = props.shouldDisableDate ? props.shouldDisableDate(d.toDate()) : maxDay && d.isAfter(maxDay, "day") || minDay && d.isBefore(minDay, "day");
|
|
10264
10276
|
cells.push(React__default.default.createElement("div", {
|
|
10265
10277
|
key: d.valueOf(),
|
|
10266
|
-
className: classNames(`${classPrefix$
|
|
10267
|
-
[`${classPrefix$
|
|
10268
|
-
[`${classPrefix$
|
|
10269
|
-
[`${classPrefix$
|
|
10270
|
-
[`${classPrefix$
|
|
10271
|
-
[`${classPrefix$
|
|
10272
|
-
[`${classPrefix$
|
|
10278
|
+
className: classNames(`${classPrefix$1d}-cell`, (disabled || !inThisMonth) && `${classPrefix$1d}-cell-disabled`, inThisMonth && {
|
|
10279
|
+
[`${classPrefix$1d}-cell-today`]: d.isSame(today, "day"),
|
|
10280
|
+
[`${classPrefix$1d}-cell-selected`]: isSelect,
|
|
10281
|
+
[`${classPrefix$1d}-cell-selected-begin`]: isBegin,
|
|
10282
|
+
[`${classPrefix$1d}-cell-selected-end`]: isEnd,
|
|
10283
|
+
[`${classPrefix$1d}-cell-selected-row-begin`]: isSelectRowBegin,
|
|
10284
|
+
[`${classPrefix$1d}-cell-selected-row-end`]: isSelectRowEnd
|
|
10273
10285
|
}),
|
|
10274
10286
|
onClick: () => {
|
|
10275
10287
|
if (!props.selectionMode)
|
|
@@ -10316,25 +10328,25 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10316
10328
|
}
|
|
10317
10329
|
}
|
|
10318
10330
|
}, React__default.default.createElement("div", {
|
|
10319
|
-
className: `${classPrefix$
|
|
10331
|
+
className: `${classPrefix$1d}-cell-top`
|
|
10320
10332
|
}, props.renderDate ? props.renderDate(d.toDate()) : d.date()), React__default.default.createElement("div", {
|
|
10321
|
-
className: `${classPrefix$
|
|
10333
|
+
className: `${classPrefix$1d}-cell-bottom`
|
|
10322
10334
|
}, (_a = props.renderLabel) === null || _a === void 0 ? void 0 : _a.call(props, d.toDate()))));
|
|
10323
10335
|
iterator = iterator.add(1, "day");
|
|
10324
10336
|
}
|
|
10325
10337
|
return cells;
|
|
10326
10338
|
}
|
|
10327
10339
|
const body = React__default.default.createElement("div", {
|
|
10328
|
-
className: `${classPrefix$
|
|
10340
|
+
className: `${classPrefix$1d}-cells`
|
|
10329
10341
|
}, renderCells());
|
|
10330
10342
|
const mark = React__default.default.createElement("div", {
|
|
10331
|
-
className: `${classPrefix$
|
|
10343
|
+
className: `${classPrefix$1d}-mark`
|
|
10332
10344
|
}, markItems.map((item, index2) => React__default.default.createElement("div", {
|
|
10333
10345
|
key: index2,
|
|
10334
|
-
className: `${classPrefix$
|
|
10346
|
+
className: `${classPrefix$1d}-mark-cell`
|
|
10335
10347
|
}, item)));
|
|
10336
10348
|
return withNativeProps(props, React__default.default.createElement("div", {
|
|
10337
|
-
className: classPrefix$
|
|
10349
|
+
className: classPrefix$1d
|
|
10338
10350
|
}, header, mark, body));
|
|
10339
10351
|
});
|
|
10340
10352
|
const Calendar = Calendar$1;
|
|
@@ -10438,7 +10450,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10438
10450
|
};
|
|
10439
10451
|
};
|
|
10440
10452
|
const scrollMask = "";
|
|
10441
|
-
const classPrefix$
|
|
10453
|
+
const classPrefix$1c = `adm-scroll-mask`;
|
|
10442
10454
|
const ScrollMask$1 = (props) => {
|
|
10443
10455
|
const maskRef = React$4.useRef(null);
|
|
10444
10456
|
const [{
|
|
@@ -10485,12 +10497,12 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10485
10497
|
}, []);
|
|
10486
10498
|
return React__default.default.createElement(React__default.default.Fragment, null, React__default.default.createElement(animated.div, {
|
|
10487
10499
|
ref: maskRef,
|
|
10488
|
-
className: classNames(classPrefix$
|
|
10500
|
+
className: classNames(classPrefix$1c, `${classPrefix$1c}-left`),
|
|
10489
10501
|
style: {
|
|
10490
10502
|
opacity: leftMaskOpacity
|
|
10491
10503
|
}
|
|
10492
10504
|
}), React__default.default.createElement(animated.div, {
|
|
10493
|
-
className: classNames(classPrefix$
|
|
10505
|
+
className: classNames(classPrefix$1c, `${classPrefix$1c}-right`),
|
|
10494
10506
|
style: {
|
|
10495
10507
|
opacity: rightMaskOpacity
|
|
10496
10508
|
}
|
|
@@ -10697,7 +10709,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10697
10709
|
}
|
|
10698
10710
|
handle(children);
|
|
10699
10711
|
}
|
|
10700
|
-
const classPrefix$
|
|
10712
|
+
const classPrefix$1b = `adm-capsule-tabs`;
|
|
10701
10713
|
const CapsuleTab = () => null;
|
|
10702
10714
|
const CapsuleTabs = (props) => {
|
|
10703
10715
|
var _a;
|
|
@@ -10736,19 +10748,19 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10736
10748
|
animate(true);
|
|
10737
10749
|
}, rootRef);
|
|
10738
10750
|
return withNativeProps(props, React__default.default.createElement("div", {
|
|
10739
|
-
className: classPrefix$
|
|
10751
|
+
className: classPrefix$1b,
|
|
10740
10752
|
ref: rootRef
|
|
10741
10753
|
}, React__default.default.createElement("div", {
|
|
10742
|
-
className: `${classPrefix$
|
|
10754
|
+
className: `${classPrefix$1b}-header`
|
|
10743
10755
|
}, React__default.default.createElement(ScrollMask, {
|
|
10744
10756
|
scrollTrackRef: tabListContainerRef
|
|
10745
10757
|
}), React__default.default.createElement(animated.div, {
|
|
10746
|
-
className: `${classPrefix$
|
|
10758
|
+
className: `${classPrefix$1b}-tab-list`,
|
|
10747
10759
|
ref: tabListContainerRef,
|
|
10748
10760
|
scrollLeft
|
|
10749
10761
|
}, panes.map((pane) => withNativeProps(pane.props, React__default.default.createElement("div", {
|
|
10750
10762
|
key: pane.key,
|
|
10751
|
-
className: `${classPrefix$
|
|
10763
|
+
className: `${classPrefix$1b}-tab-wrapper`
|
|
10752
10764
|
}, React__default.default.createElement("div", {
|
|
10753
10765
|
onClick: () => {
|
|
10754
10766
|
const {
|
|
@@ -10761,9 +10773,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10761
10773
|
}
|
|
10762
10774
|
setActiveKey(key.toString());
|
|
10763
10775
|
},
|
|
10764
|
-
className: classNames(`${classPrefix$
|
|
10765
|
-
[`${classPrefix$
|
|
10766
|
-
[`${classPrefix$
|
|
10776
|
+
className: classNames(`${classPrefix$1b}-tab`, {
|
|
10777
|
+
[`${classPrefix$1b}-tab-active`]: pane.key === activeKey,
|
|
10778
|
+
[`${classPrefix$1b}-tab-disabled`]: pane.props.disabled
|
|
10767
10779
|
})
|
|
10768
10780
|
}, pane.props.title)))))), panes.map((pane) => {
|
|
10769
10781
|
if (pane.props.children === void 0) {
|
|
@@ -10776,7 +10788,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10776
10788
|
forceRender: pane.props.forceRender,
|
|
10777
10789
|
destroyOnClose: pane.props.destroyOnClose
|
|
10778
10790
|
}, React__default.default.createElement("div", {
|
|
10779
|
-
className: `${classPrefix$
|
|
10791
|
+
className: `${classPrefix$1b}-content`,
|
|
10780
10792
|
style: {
|
|
10781
10793
|
display: active ? "block" : "none"
|
|
10782
10794
|
}
|
|
@@ -10787,18 +10799,18 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10787
10799
|
Tab: CapsuleTab
|
|
10788
10800
|
});
|
|
10789
10801
|
const card = "";
|
|
10790
|
-
const classPrefix$
|
|
10802
|
+
const classPrefix$1a = `adm-card`;
|
|
10791
10803
|
const Card$1 = (props) => {
|
|
10792
10804
|
const renderHeader = () => {
|
|
10793
10805
|
if (!(props.title || props.extra)) {
|
|
10794
10806
|
return null;
|
|
10795
10807
|
}
|
|
10796
10808
|
return React__default.default.createElement("div", {
|
|
10797
|
-
className: classNames(`${classPrefix$
|
|
10809
|
+
className: classNames(`${classPrefix$1a}-header`, props.headerClassName),
|
|
10798
10810
|
style: props.headerStyle,
|
|
10799
10811
|
onClick: props.onHeaderClick
|
|
10800
10812
|
}, React__default.default.createElement("div", {
|
|
10801
|
-
className: `${classPrefix$
|
|
10813
|
+
className: `${classPrefix$1a}-header-title`
|
|
10802
10814
|
}, props.title), props.extra);
|
|
10803
10815
|
};
|
|
10804
10816
|
const renderBody = () => {
|
|
@@ -10806,13 +10818,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10806
10818
|
return null;
|
|
10807
10819
|
}
|
|
10808
10820
|
return React__default.default.createElement("div", {
|
|
10809
|
-
className: classNames(`${classPrefix$
|
|
10821
|
+
className: classNames(`${classPrefix$1a}-body`, props.bodyClassName),
|
|
10810
10822
|
style: props.bodyStyle,
|
|
10811
10823
|
onClick: props.onBodyClick
|
|
10812
10824
|
}, props.children);
|
|
10813
10825
|
};
|
|
10814
10826
|
return withNativeProps(props, React__default.default.createElement("div", {
|
|
10815
|
-
className: classPrefix$
|
|
10827
|
+
className: classPrefix$1a,
|
|
10816
10828
|
onClick: props.onClick
|
|
10817
10829
|
}, renderHeader(), renderBody()));
|
|
10818
10830
|
};
|
|
@@ -10862,7 +10874,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10862
10874
|
return 0;
|
|
10863
10875
|
}
|
|
10864
10876
|
}
|
|
10865
|
-
const classPrefix$
|
|
10877
|
+
const classPrefix$19 = `adm-picker-view`;
|
|
10866
10878
|
const Wheel = React$4.memo((props) => {
|
|
10867
10879
|
const {
|
|
10868
10880
|
value,
|
|
@@ -10929,17 +10941,66 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10929
10941
|
return;
|
|
10930
10942
|
onSelect(item.value);
|
|
10931
10943
|
}
|
|
10944
|
+
const handleGestureState = (state) => {
|
|
10945
|
+
const {
|
|
10946
|
+
direction: [, direction],
|
|
10947
|
+
distance: [, distance],
|
|
10948
|
+
velocity: [, velocity],
|
|
10949
|
+
offset: [, offset2],
|
|
10950
|
+
last
|
|
10951
|
+
} = state;
|
|
10952
|
+
return {
|
|
10953
|
+
direction,
|
|
10954
|
+
distance,
|
|
10955
|
+
velocity,
|
|
10956
|
+
offset: offset2,
|
|
10957
|
+
last
|
|
10958
|
+
};
|
|
10959
|
+
};
|
|
10932
10960
|
const handleDrag = (state) => {
|
|
10933
10961
|
draggingRef.current = true;
|
|
10934
10962
|
const min2 = -((column.length - 1) * itemHeight.current);
|
|
10935
10963
|
const max2 = 0;
|
|
10936
|
-
|
|
10964
|
+
const {
|
|
10965
|
+
direction,
|
|
10966
|
+
last,
|
|
10967
|
+
velocity,
|
|
10968
|
+
offset: offset2
|
|
10969
|
+
} = handleGestureState(state);
|
|
10970
|
+
if (last) {
|
|
10971
|
+
draggingRef.current = false;
|
|
10972
|
+
const position = offset2 + velocity * direction * 50;
|
|
10973
|
+
const boundNum = bound(position, min2, max2);
|
|
10974
|
+
const targetIndex = -Math.round(boundNum / itemHeight.current);
|
|
10975
|
+
scrollSelect(targetIndex);
|
|
10976
|
+
} else {
|
|
10977
|
+
const position = offset2;
|
|
10978
|
+
api.start({
|
|
10979
|
+
y: rubberbandIfOutOfBounds(position, min2, max2, itemHeight.current * 50, 0.2)
|
|
10980
|
+
});
|
|
10981
|
+
}
|
|
10982
|
+
};
|
|
10983
|
+
const handleWheel = (state) => {
|
|
10984
|
+
draggingRef.current = true;
|
|
10985
|
+
const min2 = -((column.length - 1) * itemHeight.current);
|
|
10986
|
+
const max2 = 0;
|
|
10987
|
+
const {
|
|
10988
|
+
direction,
|
|
10989
|
+
last,
|
|
10990
|
+
velocity,
|
|
10991
|
+
distance
|
|
10992
|
+
} = handleGestureState(state);
|
|
10993
|
+
const whellDir = -direction;
|
|
10994
|
+
const scrollY = y.get();
|
|
10995
|
+
if (last) {
|
|
10937
10996
|
draggingRef.current = false;
|
|
10938
|
-
const
|
|
10939
|
-
const
|
|
10997
|
+
const speed = velocity * whellDir * 50;
|
|
10998
|
+
const position = scrollY + distance * whellDir + speed;
|
|
10999
|
+
const boundNum = bound(position, min2, max2);
|
|
11000
|
+
const targetIndex = -Math.round(boundNum / itemHeight.current);
|
|
10940
11001
|
scrollSelect(targetIndex);
|
|
10941
11002
|
} else {
|
|
10942
|
-
const position =
|
|
11003
|
+
const position = scrollY + distance * whellDir;
|
|
10943
11004
|
api.start({
|
|
10944
11005
|
y: rubberbandIfOutOfBounds(position, min2, max2, itemHeight.current * 50, 0.2)
|
|
10945
11006
|
});
|
|
@@ -10959,15 +11020,15 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10959
11020
|
});
|
|
10960
11021
|
useWheel((state) => {
|
|
10961
11022
|
state.event.stopPropagation();
|
|
10962
|
-
|
|
11023
|
+
handleWheel(state);
|
|
10963
11024
|
}, {
|
|
11025
|
+
target: props.mouseWheel ? rootRef : void 0,
|
|
10964
11026
|
axis: "y",
|
|
10965
11027
|
from: () => [0, y.get()],
|
|
10966
11028
|
preventDefault: true,
|
|
10967
|
-
target: props.mouseWheel ? rootRef : void 0,
|
|
10968
11029
|
eventOptions: supportsPassive ? {
|
|
10969
11030
|
passive: false
|
|
10970
|
-
} :
|
|
11031
|
+
} : void 0
|
|
10971
11032
|
});
|
|
10972
11033
|
let selectedIndex = null;
|
|
10973
11034
|
function renderAccessible() {
|
|
@@ -10980,13 +11041,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10980
11041
|
const previous = column[previousIndex];
|
|
10981
11042
|
const next = column[nextIndex];
|
|
10982
11043
|
return React__default.default.createElement("div", {
|
|
10983
|
-
className:
|
|
11044
|
+
className: `${classPrefix$19}-column-accessible`
|
|
10984
11045
|
}, React__default.default.createElement("div", {
|
|
10985
|
-
className:
|
|
11046
|
+
className: `${classPrefix$19}-column-accessible-current`,
|
|
10986
11047
|
role: "button",
|
|
10987
11048
|
"aria-label": current ? `\u5F53\u524D\u9009\u62E9\u7684\u662F\uFF1A${current.label}` : "\u5F53\u524D\u672A\u9009\u62E9"
|
|
10988
11049
|
}, "-"), React__default.default.createElement("div", {
|
|
10989
|
-
className:
|
|
11050
|
+
className: `${classPrefix$19}-column-accessible-button`,
|
|
10990
11051
|
onClick: () => {
|
|
10991
11052
|
if (!previous)
|
|
10992
11053
|
return;
|
|
@@ -10995,7 +11056,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10995
11056
|
role: previous ? "button" : "text",
|
|
10996
11057
|
"aria-label": !previous ? "\u6CA1\u6709\u4E0A\u4E00\u9879" : `\u9009\u62E9\u4E0A\u4E00\u9879\uFF1A${previous.label}`
|
|
10997
11058
|
}, "-"), React__default.default.createElement("div", {
|
|
10998
|
-
className:
|
|
11059
|
+
className: `${classPrefix$19}-column-accessible-button`,
|
|
10999
11060
|
onClick: () => {
|
|
11000
11061
|
if (!next)
|
|
11001
11062
|
return;
|
|
@@ -11006,16 +11067,16 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11006
11067
|
}, "-"));
|
|
11007
11068
|
}
|
|
11008
11069
|
return React__default.default.createElement("div", {
|
|
11009
|
-
className: `${classPrefix$
|
|
11070
|
+
className: `${classPrefix$19}-column`
|
|
11010
11071
|
}, React__default.default.createElement("div", {
|
|
11011
|
-
className: `${classPrefix$
|
|
11072
|
+
className: `${classPrefix$19}-item-height-measure`,
|
|
11012
11073
|
ref: itemHeightMeasureRef
|
|
11013
11074
|
}), React__default.default.createElement(animated.div, {
|
|
11014
11075
|
ref: rootRef,
|
|
11015
11076
|
style: {
|
|
11016
11077
|
translateY: y
|
|
11017
11078
|
},
|
|
11018
|
-
className: `${classPrefix$
|
|
11079
|
+
className: `${classPrefix$19}-column-wheel`,
|
|
11019
11080
|
"aria-hidden": true
|
|
11020
11081
|
}, column.map((item, index2) => {
|
|
11021
11082
|
var _a;
|
|
@@ -11029,12 +11090,12 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11029
11090
|
return React__default.default.createElement("div", {
|
|
11030
11091
|
key: (_a = item.key) !== null && _a !== void 0 ? _a : item.value,
|
|
11031
11092
|
"data-selected": item.value === value,
|
|
11032
|
-
className: `${classPrefix$
|
|
11093
|
+
className: `${classPrefix$19}-column-item`,
|
|
11033
11094
|
onClick: handleClick,
|
|
11034
11095
|
"aria-hidden": !selected,
|
|
11035
11096
|
"aria-label": selected ? "active" : ""
|
|
11036
11097
|
}, React__default.default.createElement("div", {
|
|
11037
|
-
className: `${classPrefix$
|
|
11098
|
+
className: `${classPrefix$19}-column-item-label`
|
|
11038
11099
|
}, renderLabel(item)));
|
|
11039
11100
|
})), renderAccessible());
|
|
11040
11101
|
}, (prev, next) => {
|
|
@@ -11048,9 +11109,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11048
11109
|
return false;
|
|
11049
11110
|
if (prev.mouseWheel !== next.mouseWheel)
|
|
11050
11111
|
return false;
|
|
11051
|
-
if (!isEqual_1(prev.column, next.column))
|
|
11112
|
+
if (!isEqual_1(prev.column, next.column))
|
|
11052
11113
|
return false;
|
|
11053
|
-
}
|
|
11054
11114
|
return true;
|
|
11055
11115
|
});
|
|
11056
11116
|
Wheel.displayName = "Wheel";
|
|
@@ -11258,7 +11318,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11258
11318
|
function useMotionReduced() {
|
|
11259
11319
|
return shim.exports.useSyncExternalStore(subscribe, isMotionReduced, isMotionReduced);
|
|
11260
11320
|
}
|
|
11261
|
-
const classPrefix$
|
|
11321
|
+
const classPrefix$18 = "adm-spin-loading";
|
|
11262
11322
|
const colorRecord$2 = {
|
|
11263
11323
|
default: "var(--adm-color-weak)",
|
|
11264
11324
|
primary: "var(--adm-color-primary)",
|
|
@@ -11290,16 +11350,16 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11290
11350
|
}
|
|
11291
11351
|
});
|
|
11292
11352
|
return withNativeProps(props, React__default.default.createElement(animated.div, {
|
|
11293
|
-
className: classPrefix$
|
|
11353
|
+
className: classPrefix$18,
|
|
11294
11354
|
style: {
|
|
11295
11355
|
"--color": (_a = colorRecord$2[props.color]) !== null && _a !== void 0 ? _a : props.color,
|
|
11296
11356
|
"--percent": percent
|
|
11297
11357
|
}
|
|
11298
11358
|
}, React__default.default.createElement("svg", {
|
|
11299
|
-
className: `${classPrefix$
|
|
11359
|
+
className: `${classPrefix$18}-svg`,
|
|
11300
11360
|
viewBox: "0 0 32 32"
|
|
11301
11361
|
}, React__default.default.createElement(animated.circle, {
|
|
11302
|
-
className: `${classPrefix$
|
|
11362
|
+
className: `${classPrefix$18}-fill`,
|
|
11303
11363
|
fill: "transparent",
|
|
11304
11364
|
strokeWidth: "2",
|
|
11305
11365
|
strokeDasharray: circumference,
|
|
@@ -11311,13 +11371,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11311
11371
|
}))));
|
|
11312
11372
|
});
|
|
11313
11373
|
const SpinLoading = SpinLoading$1;
|
|
11314
|
-
const classPrefix$
|
|
11374
|
+
const classPrefix$17 = `adm-picker-view`;
|
|
11315
11375
|
const defaultProps$W = {
|
|
11316
11376
|
defaultValue: [],
|
|
11317
11377
|
renderLabel: defaultRenderLabel,
|
|
11318
11378
|
mouseWheel: false,
|
|
11319
11379
|
loadingContent: React__default.default.createElement("div", {
|
|
11320
|
-
className: `${classPrefix$
|
|
11380
|
+
className: `${classPrefix$17}-loading-content`
|
|
11321
11381
|
}, React__default.default.createElement(SpinLoading, null))
|
|
11322
11382
|
};
|
|
11323
11383
|
const PickerView$1 = React$4.memo((p) => {
|
|
@@ -11362,7 +11422,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11362
11422
|
});
|
|
11363
11423
|
}, []);
|
|
11364
11424
|
return withNativeProps(props, React__default.default.createElement("div", {
|
|
11365
|
-
className: `${classPrefix$
|
|
11425
|
+
className: `${classPrefix$17}`
|
|
11366
11426
|
}, props.loading ? props.loadingContent : React__default.default.createElement(React__default.default.Fragment, null, columns.map((column, index2) => React__default.default.createElement(Wheel, {
|
|
11367
11427
|
key: index2,
|
|
11368
11428
|
index: index2,
|
|
@@ -11372,19 +11432,19 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11372
11432
|
renderLabel: props.renderLabel,
|
|
11373
11433
|
mouseWheel: props.mouseWheel
|
|
11374
11434
|
})), React__default.default.createElement("div", {
|
|
11375
|
-
className: `${classPrefix$
|
|
11435
|
+
className: `${classPrefix$17}-mask`
|
|
11376
11436
|
}, React__default.default.createElement("div", {
|
|
11377
|
-
className: `${classPrefix$
|
|
11437
|
+
className: `${classPrefix$17}-mask-top`
|
|
11378
11438
|
}), React__default.default.createElement("div", {
|
|
11379
|
-
className: `${classPrefix$
|
|
11439
|
+
className: `${classPrefix$17}-mask-middle`
|
|
11380
11440
|
}), React__default.default.createElement("div", {
|
|
11381
|
-
className: `${classPrefix$
|
|
11441
|
+
className: `${classPrefix$17}-mask-bottom`
|
|
11382
11442
|
})))));
|
|
11383
11443
|
});
|
|
11384
11444
|
PickerView$1.displayName = "PickerView";
|
|
11385
11445
|
const pickerView = "";
|
|
11386
11446
|
const PickerView = PickerView$1;
|
|
11387
|
-
const classPrefix$
|
|
11447
|
+
const classPrefix$16 = `adm-picker`;
|
|
11388
11448
|
const defaultProps$V = {
|
|
11389
11449
|
defaultValue: [],
|
|
11390
11450
|
closeOnMaskClick: true,
|
|
@@ -11450,22 +11510,22 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11450
11510
|
}
|
|
11451
11511
|
});
|
|
11452
11512
|
const pickerElement = withNativeProps(props, React__default.default.createElement("div", {
|
|
11453
|
-
className: classPrefix$
|
|
11513
|
+
className: classPrefix$16
|
|
11454
11514
|
}, React__default.default.createElement("div", {
|
|
11455
|
-
className: `${classPrefix$
|
|
11515
|
+
className: `${classPrefix$16}-header`
|
|
11456
11516
|
}, React__default.default.createElement("a", {
|
|
11457
11517
|
role: "button",
|
|
11458
|
-
className: `${classPrefix$
|
|
11518
|
+
className: `${classPrefix$16}-header-button`,
|
|
11459
11519
|
onClick: () => {
|
|
11460
11520
|
var _a2;
|
|
11461
11521
|
(_a2 = props.onCancel) === null || _a2 === void 0 ? void 0 : _a2.call(props);
|
|
11462
11522
|
setVisible(false);
|
|
11463
11523
|
}
|
|
11464
11524
|
}, props.cancelText), React__default.default.createElement("div", {
|
|
11465
|
-
className: `${classPrefix$
|
|
11525
|
+
className: `${classPrefix$16}-header-title`
|
|
11466
11526
|
}, props.title), React__default.default.createElement("a", {
|
|
11467
11527
|
role: "button",
|
|
11468
|
-
className: classNames(`${classPrefix$
|
|
11528
|
+
className: classNames(`${classPrefix$16}-header-button`, props.loading && `${classPrefix$16}-header-button-disabled`),
|
|
11469
11529
|
onClick: () => {
|
|
11470
11530
|
if (props.loading)
|
|
11471
11531
|
return;
|
|
@@ -11474,7 +11534,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11474
11534
|
},
|
|
11475
11535
|
"aria-disabled": props.loading
|
|
11476
11536
|
}, props.confirmText)), React__default.default.createElement("div", {
|
|
11477
|
-
className: `${classPrefix$
|
|
11537
|
+
className: `${classPrefix$16}-body`
|
|
11478
11538
|
}, React__default.default.createElement(PickerView, {
|
|
11479
11539
|
loading: props.loading,
|
|
11480
11540
|
loadingContent: props.loadingContent,
|
|
@@ -11486,7 +11546,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11486
11546
|
}))));
|
|
11487
11547
|
const popupElement = React__default.default.createElement(Popup, {
|
|
11488
11548
|
style: props.popupStyle,
|
|
11489
|
-
className: classNames(`${classPrefix$
|
|
11549
|
+
className: classNames(`${classPrefix$16}-popup`, props.popupClassName),
|
|
11490
11550
|
visible,
|
|
11491
11551
|
position: "bottom",
|
|
11492
11552
|
onMaskClick: () => {
|
|
@@ -11636,7 +11696,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11636
11696
|
const CascadePickerView = CascadePickerView$1;
|
|
11637
11697
|
const cascaderView = "";
|
|
11638
11698
|
const tabs = "";
|
|
11639
|
-
const classPrefix$
|
|
11699
|
+
const classPrefix$15 = `adm-tabs`;
|
|
11640
11700
|
const Tab = () => {
|
|
11641
11701
|
return null;
|
|
11642
11702
|
};
|
|
@@ -11797,36 +11857,36 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11797
11857
|
updateMask(true);
|
|
11798
11858
|
}, []);
|
|
11799
11859
|
return withNativeProps(props, React__default.default.createElement("div", {
|
|
11800
|
-
className: classPrefix$
|
|
11860
|
+
className: classPrefix$15
|
|
11801
11861
|
}, React__default.default.createElement("div", {
|
|
11802
|
-
className: `${classPrefix$
|
|
11862
|
+
className: `${classPrefix$15}-header`
|
|
11803
11863
|
}, React__default.default.createElement(animated.div, {
|
|
11804
|
-
className: classNames(`${classPrefix$
|
|
11864
|
+
className: classNames(`${classPrefix$15}-header-mask`, `${classPrefix$15}-header-mask-left`),
|
|
11805
11865
|
style: {
|
|
11806
11866
|
opacity: leftMaskOpacity
|
|
11807
11867
|
}
|
|
11808
11868
|
}), React__default.default.createElement(animated.div, {
|
|
11809
|
-
className: classNames(`${classPrefix$
|
|
11869
|
+
className: classNames(`${classPrefix$15}-header-mask`, `${classPrefix$15}-header-mask-right`),
|
|
11810
11870
|
style: {
|
|
11811
11871
|
opacity: rightMaskOpacity
|
|
11812
11872
|
}
|
|
11813
11873
|
}), React__default.default.createElement(animated.div, {
|
|
11814
|
-
className: `${classPrefix$
|
|
11874
|
+
className: `${classPrefix$15}-tab-list`,
|
|
11815
11875
|
ref: tabListContainerRef,
|
|
11816
11876
|
scrollLeft,
|
|
11817
11877
|
onScroll: updateMask,
|
|
11818
11878
|
role: "tablist"
|
|
11819
11879
|
}, React__default.default.createElement(animated.div, {
|
|
11820
11880
|
ref: activeLineRef,
|
|
11821
|
-
className: `${classPrefix$
|
|
11881
|
+
className: `${classPrefix$15}-tab-line`,
|
|
11822
11882
|
style: {
|
|
11823
11883
|
width: props.activeLineMode === "fixed" ? "var(--fixed-active-line-width, 30px)" : width,
|
|
11824
11884
|
x
|
|
11825
11885
|
}
|
|
11826
11886
|
}), panes.map((pane) => withNativeProps(pane.props, React__default.default.createElement("div", {
|
|
11827
11887
|
key: pane.key,
|
|
11828
|
-
className: classNames(`${classPrefix$
|
|
11829
|
-
[`${classPrefix$
|
|
11888
|
+
className: classNames(`${classPrefix$15}-tab-wrapper`, {
|
|
11889
|
+
[`${classPrefix$15}-tab-wrapper-stretch`]: props.stretch
|
|
11830
11890
|
})
|
|
11831
11891
|
}, React__default.default.createElement("div", {
|
|
11832
11892
|
onClick: () => {
|
|
@@ -11840,9 +11900,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11840
11900
|
}
|
|
11841
11901
|
setActiveKey(key.toString());
|
|
11842
11902
|
},
|
|
11843
|
-
className: classNames(`${classPrefix$
|
|
11844
|
-
[`${classPrefix$
|
|
11845
|
-
[`${classPrefix$
|
|
11903
|
+
className: classNames(`${classPrefix$15}-tab`, {
|
|
11904
|
+
[`${classPrefix$15}-tab-active`]: pane.key === activeKey,
|
|
11905
|
+
[`${classPrefix$15}-tab-disabled`]: pane.props.disabled
|
|
11846
11906
|
}),
|
|
11847
11907
|
role: "tab",
|
|
11848
11908
|
"aria-selected": pane.key === activeKey
|
|
@@ -11857,7 +11917,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11857
11917
|
forceRender: pane.props.forceRender,
|
|
11858
11918
|
destroyOnClose: pane.props.destroyOnClose
|
|
11859
11919
|
}, React__default.default.createElement("div", {
|
|
11860
|
-
className: `${classPrefix$
|
|
11920
|
+
className: `${classPrefix$15}-content`,
|
|
11861
11921
|
style: {
|
|
11862
11922
|
display: active ? "block" : "none"
|
|
11863
11923
|
}
|
|
@@ -11869,7 +11929,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11869
11929
|
});
|
|
11870
11930
|
const checkList = "";
|
|
11871
11931
|
const list = "";
|
|
11872
|
-
const classPrefix$
|
|
11932
|
+
const classPrefix$14 = `adm-list`;
|
|
11873
11933
|
const defaultProps$T = {
|
|
11874
11934
|
mode: "default"
|
|
11875
11935
|
};
|
|
@@ -11882,41 +11942,41 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11882
11942
|
}
|
|
11883
11943
|
}));
|
|
11884
11944
|
return withNativeProps(props, React__default.default.createElement("div", {
|
|
11885
|
-
className: classNames(classPrefix$
|
|
11945
|
+
className: classNames(classPrefix$14, `${classPrefix$14}-${props.mode}`),
|
|
11886
11946
|
ref: nativeElementRef
|
|
11887
11947
|
}, props.header && React__default.default.createElement("div", {
|
|
11888
|
-
className: `${classPrefix$
|
|
11948
|
+
className: `${classPrefix$14}-header`
|
|
11889
11949
|
}, props.header), React__default.default.createElement("div", {
|
|
11890
|
-
className: `${classPrefix$
|
|
11950
|
+
className: `${classPrefix$14}-body`
|
|
11891
11951
|
}, React__default.default.createElement("div", {
|
|
11892
|
-
className: `${classPrefix$
|
|
11952
|
+
className: `${classPrefix$14}-body-inner`
|
|
11893
11953
|
}, props.children))));
|
|
11894
11954
|
});
|
|
11895
11955
|
function isNodeWithContent(node) {
|
|
11896
11956
|
return node !== void 0 && node !== null && node !== false;
|
|
11897
11957
|
}
|
|
11898
|
-
const classPrefix$
|
|
11958
|
+
const classPrefix$13 = `adm-list-item`;
|
|
11899
11959
|
const ListItem = (props) => {
|
|
11900
11960
|
var _a;
|
|
11901
11961
|
const clickable = (_a = props.clickable) !== null && _a !== void 0 ? _a : !!props.onClick;
|
|
11902
11962
|
const arrow2 = props.arrow === void 0 ? clickable : props.arrow;
|
|
11903
11963
|
const content = React__default.default.createElement("div", {
|
|
11904
|
-
className: `${classPrefix$
|
|
11964
|
+
className: `${classPrefix$13}-content`
|
|
11905
11965
|
}, isNodeWithContent(props.prefix) && React__default.default.createElement("div", {
|
|
11906
|
-
className: `${classPrefix$
|
|
11966
|
+
className: `${classPrefix$13}-content-prefix`
|
|
11907
11967
|
}, props.prefix), React__default.default.createElement("div", {
|
|
11908
|
-
className: `${classPrefix$
|
|
11968
|
+
className: `${classPrefix$13}-content-main`
|
|
11909
11969
|
}, isNodeWithContent(props.title) && React__default.default.createElement("div", {
|
|
11910
|
-
className: `${classPrefix$
|
|
11970
|
+
className: `${classPrefix$13}-title`
|
|
11911
11971
|
}, props.title), props.children, isNodeWithContent(props.description) && React__default.default.createElement("div", {
|
|
11912
|
-
className: `${classPrefix$
|
|
11972
|
+
className: `${classPrefix$13}-description`
|
|
11913
11973
|
}, props.description)), isNodeWithContent(props.extra) && React__default.default.createElement("div", {
|
|
11914
|
-
className: `${classPrefix$
|
|
11974
|
+
className: `${classPrefix$13}-content-extra`
|
|
11915
11975
|
}, props.extra), isNodeWithContent(arrow2) && React__default.default.createElement("div", {
|
|
11916
|
-
className: `${classPrefix$
|
|
11976
|
+
className: `${classPrefix$13}-content-arrow`
|
|
11917
11977
|
}, arrow2 === true ? React__default.default.createElement(RightOutline, null) : arrow2));
|
|
11918
11978
|
return withNativeProps(props, React__default.default.createElement(clickable ? "a" : "div", {
|
|
11919
|
-
className: classNames(`${classPrefix$
|
|
11979
|
+
className: classNames(`${classPrefix$13}`, clickable ? ["adm-plain-anchor"] : [], props.disabled && `${classPrefix$13}-disabled`),
|
|
11920
11980
|
onClick: props.disabled ? void 0 : props.onClick
|
|
11921
11981
|
}, content));
|
|
11922
11982
|
};
|
|
@@ -11924,7 +11984,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11924
11984
|
Item: ListItem
|
|
11925
11985
|
});
|
|
11926
11986
|
const CheckListContext = React$4.createContext(null);
|
|
11927
|
-
const classPrefix$
|
|
11987
|
+
const classPrefix$12 = "adm-check-list";
|
|
11928
11988
|
const defaultProps$S = {
|
|
11929
11989
|
multiple: false,
|
|
11930
11990
|
defaultValue: [],
|
|
@@ -11961,10 +12021,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11961
12021
|
}
|
|
11962
12022
|
}, withNativeProps(props, React__default.default.createElement(List$1, {
|
|
11963
12023
|
mode: props.mode,
|
|
11964
|
-
className: classPrefix$
|
|
12024
|
+
className: classPrefix$12
|
|
11965
12025
|
}, props.children)));
|
|
11966
12026
|
};
|
|
11967
|
-
const classPrefix
|
|
12027
|
+
const classPrefix$11 = `adm-check-list-item`;
|
|
11968
12028
|
const CheckListItem = (props) => {
|
|
11969
12029
|
const context = React$4.useContext(CheckListContext);
|
|
11970
12030
|
if (context === null) {
|
|
@@ -11976,11 +12036,11 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11976
12036
|
const defaultExtra = active ? context.activeIcon : null;
|
|
11977
12037
|
const renderExtra = context.extra ? context.extra(active) : defaultExtra;
|
|
11978
12038
|
const extra = React__default.default.createElement("div", {
|
|
11979
|
-
className: `${classPrefix
|
|
12039
|
+
className: `${classPrefix$11}-extra`
|
|
11980
12040
|
}, renderExtra);
|
|
11981
12041
|
return withNativeProps(props, React__default.default.createElement(List$1.Item, {
|
|
11982
12042
|
title: props.title,
|
|
11983
|
-
className: classNames(classPrefix
|
|
12043
|
+
className: classNames(classPrefix$11, readOnly && `${classPrefix$11}-readonly`, active && `${classPrefix$11}-active`),
|
|
11984
12044
|
description: props.description,
|
|
11985
12045
|
prefix: props.prefix,
|
|
11986
12046
|
onClick: (e2) => {
|
|
@@ -12071,18 +12131,18 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12071
12131
|
}
|
|
12072
12132
|
return array2;
|
|
12073
12133
|
}
|
|
12074
|
-
const classPrefix$
|
|
12134
|
+
const classPrefix$10 = "adm-skeleton";
|
|
12075
12135
|
const Skeleton$1 = (props) => {
|
|
12076
12136
|
return withNativeProps(props, React__default.default.createElement("div", {
|
|
12077
|
-
className: classNames(classPrefix$
|
|
12078
|
-
[`${classPrefix$
|
|
12137
|
+
className: classNames(classPrefix$10, {
|
|
12138
|
+
[`${classPrefix$10}-animated`]: props.animated
|
|
12079
12139
|
})
|
|
12080
12140
|
}));
|
|
12081
12141
|
};
|
|
12082
12142
|
const SkeletonTitle = (props) => {
|
|
12083
12143
|
return withNativeProps(props, React__default.default.createElement(Skeleton$1, {
|
|
12084
12144
|
animated: props.animated,
|
|
12085
|
-
className: `${classPrefix$
|
|
12145
|
+
className: `${classPrefix$10}-title`
|
|
12086
12146
|
}));
|
|
12087
12147
|
};
|
|
12088
12148
|
const defaultSkeletonParagraphProps = {
|
|
@@ -12092,11 +12152,11 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12092
12152
|
const props = mergeProps(defaultSkeletonParagraphProps, p);
|
|
12093
12153
|
const keys2 = generateIntArray(1, props.lineCount);
|
|
12094
12154
|
const node = React__default.default.createElement("div", {
|
|
12095
|
-
className: `${classPrefix$
|
|
12155
|
+
className: `${classPrefix$10}-paragraph`
|
|
12096
12156
|
}, keys2.map((key) => React__default.default.createElement(Skeleton$1, {
|
|
12097
12157
|
key,
|
|
12098
12158
|
animated: props.animated,
|
|
12099
|
-
className: `${classPrefix$
|
|
12159
|
+
className: `${classPrefix$10}-paragraph-line`
|
|
12100
12160
|
})));
|
|
12101
12161
|
return withNativeProps(props, node);
|
|
12102
12162
|
};
|
|
@@ -12104,7 +12164,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12104
12164
|
Title: SkeletonTitle,
|
|
12105
12165
|
Paragraph: SkeletonParagraph
|
|
12106
12166
|
});
|
|
12107
|
-
const classPrefix
|
|
12167
|
+
const classPrefix$$ = `adm-cascader-view`;
|
|
12108
12168
|
const defaultProps$R = {
|
|
12109
12169
|
defaultValue: []
|
|
12110
12170
|
};
|
|
@@ -12168,7 +12228,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12168
12228
|
};
|
|
12169
12229
|
const whetherLoading = (options) => props.loading || options === optionSkeleton;
|
|
12170
12230
|
return withNativeProps(props, React__default.default.createElement("div", {
|
|
12171
|
-
className: classPrefix
|
|
12231
|
+
className: classPrefix$$
|
|
12172
12232
|
}, React__default.default.createElement(Tabs, {
|
|
12173
12233
|
activeKey: tabActiveIndex.toString(),
|
|
12174
12234
|
onChange: (key) => {
|
|
@@ -12176,30 +12236,30 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12176
12236
|
setTabActiveIndex(activeIndex);
|
|
12177
12237
|
},
|
|
12178
12238
|
stretch: false,
|
|
12179
|
-
className: `${classPrefix
|
|
12239
|
+
className: `${classPrefix$$}-tabs`
|
|
12180
12240
|
}, levels.map((level, index2) => {
|
|
12181
12241
|
const selected = level.selected;
|
|
12182
12242
|
return React__default.default.createElement(Tabs.Tab, {
|
|
12183
12243
|
key: index2.toString(),
|
|
12184
12244
|
title: React__default.default.createElement("div", {
|
|
12185
|
-
className: `${classPrefix
|
|
12245
|
+
className: `${classPrefix$$}-header-title`
|
|
12186
12246
|
}, selected ? selected.label : typeof placeholder === "function" ? placeholder(index2) : placeholder),
|
|
12187
12247
|
forceRender: true
|
|
12188
12248
|
}, React__default.default.createElement("div", {
|
|
12189
|
-
className: `${classPrefix
|
|
12249
|
+
className: `${classPrefix$$}-content`
|
|
12190
12250
|
}, whetherLoading(level.options) ? React__default.default.createElement("div", {
|
|
12191
|
-
className: `${classPrefix
|
|
12251
|
+
className: `${classPrefix$$}-skeleton`
|
|
12192
12252
|
}, React__default.default.createElement(Skeleton, {
|
|
12193
|
-
className: `${classPrefix
|
|
12253
|
+
className: `${classPrefix$$}-skeleton-line-1`,
|
|
12194
12254
|
animated: true
|
|
12195
12255
|
}), React__default.default.createElement(Skeleton, {
|
|
12196
|
-
className: `${classPrefix
|
|
12256
|
+
className: `${classPrefix$$}-skeleton-line-2`,
|
|
12197
12257
|
animated: true
|
|
12198
12258
|
}), React__default.default.createElement(Skeleton, {
|
|
12199
|
-
className: `${classPrefix
|
|
12259
|
+
className: `${classPrefix$$}-skeleton-line-3`,
|
|
12200
12260
|
animated: true
|
|
12201
12261
|
}), React__default.default.createElement(Skeleton, {
|
|
12202
|
-
className: `${classPrefix
|
|
12262
|
+
className: `${classPrefix$$}-skeleton-line-4`,
|
|
12203
12263
|
animated: true
|
|
12204
12264
|
})) : React__default.default.createElement(CheckList, {
|
|
12205
12265
|
value: [value[index2]],
|
|
@@ -12211,8 +12271,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12211
12271
|
value: option.value,
|
|
12212
12272
|
key: option.value,
|
|
12213
12273
|
disabled: option.disabled,
|
|
12214
|
-
className: classNames(`${classPrefix
|
|
12215
|
-
[`${classPrefix
|
|
12274
|
+
className: classNames(`${classPrefix$$}-item`, {
|
|
12275
|
+
[`${classPrefix$$}-item-active`]: active
|
|
12216
12276
|
})
|
|
12217
12277
|
}, option.label);
|
|
12218
12278
|
}))));
|
|
@@ -12221,7 +12281,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12221
12281
|
const CascaderView = attachPropertiesToComponent(CascaderView$1, {
|
|
12222
12282
|
optionSkeleton
|
|
12223
12283
|
});
|
|
12224
|
-
const classPrefix$
|
|
12284
|
+
const classPrefix$_ = `adm-cascader`;
|
|
12225
12285
|
const defaultProps$Q = {
|
|
12226
12286
|
defaultValue: [],
|
|
12227
12287
|
destroyOnClose: true,
|
|
@@ -12273,26 +12333,26 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12273
12333
|
}
|
|
12274
12334
|
}, [visible, value]);
|
|
12275
12335
|
const cascaderElement = withNativeProps(props, React__default.default.createElement("div", {
|
|
12276
|
-
className: classPrefix$
|
|
12336
|
+
className: classPrefix$_
|
|
12277
12337
|
}, React__default.default.createElement("div", {
|
|
12278
|
-
className: `${classPrefix$
|
|
12338
|
+
className: `${classPrefix$_}-header`
|
|
12279
12339
|
}, React__default.default.createElement("a", {
|
|
12280
|
-
className: `${classPrefix$
|
|
12340
|
+
className: `${classPrefix$_}-header-button`,
|
|
12281
12341
|
onClick: () => {
|
|
12282
12342
|
var _a2;
|
|
12283
12343
|
(_a2 = props.onCancel) === null || _a2 === void 0 ? void 0 : _a2.call(props);
|
|
12284
12344
|
setVisible(false);
|
|
12285
12345
|
}
|
|
12286
12346
|
}, props.cancelText), React__default.default.createElement("div", {
|
|
12287
|
-
className: `${classPrefix$
|
|
12347
|
+
className: `${classPrefix$_}-header-title`
|
|
12288
12348
|
}, props.title), React__default.default.createElement("a", {
|
|
12289
|
-
className: `${classPrefix$
|
|
12349
|
+
className: `${classPrefix$_}-header-button`,
|
|
12290
12350
|
onClick: () => {
|
|
12291
12351
|
setValue2(innerValue, true);
|
|
12292
12352
|
setVisible(false);
|
|
12293
12353
|
}
|
|
12294
12354
|
}, props.confirmText)), React__default.default.createElement("div", {
|
|
12295
|
-
className: `${classPrefix$
|
|
12355
|
+
className: `${classPrefix$_}-body`
|
|
12296
12356
|
}, React__default.default.createElement(CascaderView, Object.assign({}, props, {
|
|
12297
12357
|
value: innerValue,
|
|
12298
12358
|
onChange: (val, ext) => {
|
|
@@ -12357,6 +12417,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12357
12417
|
optionSkeleton
|
|
12358
12418
|
});
|
|
12359
12419
|
const centerPopup = "";
|
|
12420
|
+
const classPrefix$Z = "adm-center-popup";
|
|
12360
12421
|
const defaultProps$P = Object.assign(Object.assign({}, defaultPopupBaseProps), {
|
|
12361
12422
|
getContainer: null
|
|
12362
12423
|
});
|
|
@@ -12394,11 +12455,11 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12394
12455
|
useLockScroll(ref, props.disableBodyScroll && active);
|
|
12395
12456
|
const maskVisible = useInnerVisible(active && props.visible);
|
|
12396
12457
|
const body = React__default.default.createElement("div", {
|
|
12397
|
-
className: classNames(
|
|
12458
|
+
className: classNames(`${classPrefix$Z}-body`, props.bodyClassName),
|
|
12398
12459
|
style: props.bodyStyle
|
|
12399
12460
|
}, props.children);
|
|
12400
12461
|
const node = withStopPropagation(props.stopPropagation, withNativeProps(props, React__default.default.createElement("div", {
|
|
12401
|
-
className:
|
|
12462
|
+
className: classPrefix$Z,
|
|
12402
12463
|
style: {
|
|
12403
12464
|
display: active ? void 0 : "none",
|
|
12404
12465
|
pointerEvents: active ? void 0 : "none"
|
|
@@ -12415,18 +12476,18 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12415
12476
|
}
|
|
12416
12477
|
},
|
|
12417
12478
|
style: props.maskStyle,
|
|
12418
|
-
className: classNames(
|
|
12479
|
+
className: classNames(`${classPrefix$Z}-mask`, props.maskClassName),
|
|
12419
12480
|
disableBodyScroll: false,
|
|
12420
12481
|
stopPropagation: props.stopPropagation
|
|
12421
12482
|
}), React__default.default.createElement("div", {
|
|
12422
|
-
className:
|
|
12483
|
+
className: `${classPrefix$Z}-wrap`,
|
|
12423
12484
|
role: props.role,
|
|
12424
12485
|
"aria-label": props["aria-label"]
|
|
12425
12486
|
}, React__default.default.createElement(animated.div, {
|
|
12426
12487
|
style,
|
|
12427
12488
|
ref
|
|
12428
12489
|
}, props.showCloseButton && React__default.default.createElement("a", {
|
|
12429
|
-
className: classNames(
|
|
12490
|
+
className: classNames(`${classPrefix$Z}-close`, "adm-plain-anchor"),
|
|
12430
12491
|
onClick: () => {
|
|
12431
12492
|
var _a;
|
|
12432
12493
|
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
@@ -12512,7 +12573,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12512
12573
|
id: props.id
|
|
12513
12574
|
});
|
|
12514
12575
|
};
|
|
12515
|
-
const classPrefix$
|
|
12576
|
+
const classPrefix$Y = `adm-checkbox`;
|
|
12516
12577
|
const defaultProps$N = {
|
|
12517
12578
|
defaultChecked: false,
|
|
12518
12579
|
indeterminate: false
|
|
@@ -12564,20 +12625,20 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12564
12625
|
const renderIcon = () => {
|
|
12565
12626
|
if (props.icon) {
|
|
12566
12627
|
return React__default.default.createElement("div", {
|
|
12567
|
-
className: `${classPrefix$
|
|
12628
|
+
className: `${classPrefix$Y}-custom-icon`
|
|
12568
12629
|
}, props.icon(checked, props.indeterminate));
|
|
12569
12630
|
}
|
|
12570
12631
|
return React__default.default.createElement("div", {
|
|
12571
|
-
className: `${classPrefix$
|
|
12632
|
+
className: `${classPrefix$Y}-icon`
|
|
12572
12633
|
}, props.indeterminate ? React__default.default.createElement(IndeterminateIcon, null) : checked && React__default.default.createElement(CheckIcon, null));
|
|
12573
12634
|
};
|
|
12574
12635
|
return withNativeProps(props, React__default.default.createElement("label", {
|
|
12575
12636
|
onClick: props.onClick,
|
|
12576
|
-
className: classNames(classPrefix$
|
|
12577
|
-
[`${classPrefix$
|
|
12578
|
-
[`${classPrefix$
|
|
12579
|
-
[`${classPrefix$
|
|
12580
|
-
[`${classPrefix$
|
|
12637
|
+
className: classNames(classPrefix$Y, {
|
|
12638
|
+
[`${classPrefix$Y}-checked`]: checked && !props.indeterminate,
|
|
12639
|
+
[`${classPrefix$Y}-indeterminate`]: props.indeterminate,
|
|
12640
|
+
[`${classPrefix$Y}-disabled`]: disabled,
|
|
12641
|
+
[`${classPrefix$Y}-block`]: props.block
|
|
12581
12642
|
})
|
|
12582
12643
|
}, React__default.default.createElement(NativeInput, {
|
|
12583
12644
|
type: "checkbox",
|
|
@@ -12586,14 +12647,14 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12586
12647
|
disabled,
|
|
12587
12648
|
id: props.id
|
|
12588
12649
|
}), renderIcon(), props.children && React__default.default.createElement("div", {
|
|
12589
|
-
className: `${classPrefix$
|
|
12650
|
+
className: `${classPrefix$Y}-content`
|
|
12590
12651
|
}, props.children)));
|
|
12591
12652
|
});
|
|
12592
12653
|
const Checkbox = attachPropertiesToComponent(Checkbox$1, {
|
|
12593
12654
|
Group: Group$1
|
|
12594
12655
|
});
|
|
12595
12656
|
const collapse = "";
|
|
12596
|
-
const classPrefix$
|
|
12657
|
+
const classPrefix$X = `adm-collapse`;
|
|
12597
12658
|
const CollapsePanel = () => {
|
|
12598
12659
|
return null;
|
|
12599
12660
|
};
|
|
@@ -12647,8 +12708,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12647
12708
|
}
|
|
12648
12709
|
}, [visible]);
|
|
12649
12710
|
return React__default.default.createElement(animated.div, {
|
|
12650
|
-
className: classNames(`${classPrefix$
|
|
12651
|
-
[`${classPrefix$
|
|
12711
|
+
className: classNames(`${classPrefix$X}-panel-content`, {
|
|
12712
|
+
[`${classPrefix$X}-panel-content-active`]: visible
|
|
12652
12713
|
}),
|
|
12653
12714
|
style: {
|
|
12654
12715
|
height: height.to((v) => {
|
|
@@ -12660,12 +12721,11 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12660
12721
|
})
|
|
12661
12722
|
}
|
|
12662
12723
|
}, React__default.default.createElement("div", {
|
|
12663
|
-
className: `${classPrefix$
|
|
12724
|
+
className: `${classPrefix$X}-panel-content-inner`,
|
|
12664
12725
|
ref: innerRef
|
|
12665
12726
|
}, React__default.default.createElement(List$1.Item, null, shouldRender && props.children)));
|
|
12666
12727
|
};
|
|
12667
12728
|
const Collapse = (props) => {
|
|
12668
|
-
var _a;
|
|
12669
12729
|
const panels = [];
|
|
12670
12730
|
traverseReactNode(props.children, (child) => {
|
|
12671
12731
|
if (!React$4.isValidElement(child))
|
|
@@ -12675,26 +12735,42 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12675
12735
|
return;
|
|
12676
12736
|
panels.push(child);
|
|
12677
12737
|
});
|
|
12678
|
-
const
|
|
12679
|
-
|
|
12680
|
-
|
|
12681
|
-
|
|
12682
|
-
|
|
12683
|
-
|
|
12738
|
+
const handlePropsValue = () => {
|
|
12739
|
+
var _a;
|
|
12740
|
+
if (!props.accordion) {
|
|
12741
|
+
return {
|
|
12742
|
+
value: props.activeKey,
|
|
12743
|
+
defaultValue: (_a = props.defaultActiveKey) !== null && _a !== void 0 ? _a : [],
|
|
12744
|
+
onChange: props.onChange
|
|
12745
|
+
};
|
|
12684
12746
|
}
|
|
12685
|
-
|
|
12686
|
-
|
|
12687
|
-
|
|
12688
|
-
|
|
12689
|
-
|
|
12747
|
+
const initValue = {
|
|
12748
|
+
value: [],
|
|
12749
|
+
defaultValue: [],
|
|
12750
|
+
onChange: (v) => {
|
|
12751
|
+
var _a2, _b;
|
|
12752
|
+
(_a2 = props.onChange) === null || _a2 === void 0 ? void 0 : _a2.call(props, (_b = v[0]) !== null && _b !== void 0 ? _b : null);
|
|
12753
|
+
}
|
|
12754
|
+
};
|
|
12755
|
+
if (props.activeKey === void 0) {
|
|
12756
|
+
initValue.value = void 0;
|
|
12757
|
+
} else if (props.activeKey !== null) {
|
|
12758
|
+
initValue.value = [props.activeKey];
|
|
12759
|
+
}
|
|
12760
|
+
if (![null, void 0].includes(props.defaultActiveKey)) {
|
|
12761
|
+
initValue.defaultValue = [props.defaultActiveKey];
|
|
12762
|
+
}
|
|
12763
|
+
return initValue;
|
|
12764
|
+
};
|
|
12765
|
+
const [activeKey, setActiveKey] = usePropsValue(handlePropsValue());
|
|
12690
12766
|
const activeKeyList = activeKey === null ? [] : Array.isArray(activeKey) ? activeKey : [activeKey];
|
|
12691
12767
|
return withNativeProps(props, React__default.default.createElement("div", {
|
|
12692
|
-
className: classPrefix$
|
|
12768
|
+
className: classPrefix$X
|
|
12693
12769
|
}, React__default.default.createElement(List$1, null, panels.map((panel) => {
|
|
12694
12770
|
const key = panel.key;
|
|
12695
12771
|
const active = activeKeyList.includes(key);
|
|
12696
12772
|
function handleClick(event) {
|
|
12697
|
-
var
|
|
12773
|
+
var _a, _b;
|
|
12698
12774
|
if (props.accordion) {
|
|
12699
12775
|
if (active) {
|
|
12700
12776
|
setActiveKey([]);
|
|
@@ -12708,7 +12784,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12708
12784
|
setActiveKey([...activeKeyList, key]);
|
|
12709
12785
|
}
|
|
12710
12786
|
}
|
|
12711
|
-
(_b = (
|
|
12787
|
+
(_b = (_a = panel.props).onClick) === null || _b === void 0 ? void 0 : _b.call(_a, event);
|
|
12712
12788
|
}
|
|
12713
12789
|
const renderArrow = () => {
|
|
12714
12790
|
let arrow2 = React__default.default.createElement(DownOutline, null);
|
|
@@ -12719,15 +12795,15 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12719
12795
|
arrow2 = panel.props.arrow;
|
|
12720
12796
|
}
|
|
12721
12797
|
return typeof arrow2 === "function" ? arrow2(active) : React__default.default.createElement("div", {
|
|
12722
|
-
className: classNames(`${classPrefix$
|
|
12723
|
-
[`${classPrefix$
|
|
12798
|
+
className: classNames(`${classPrefix$X}-arrow`, {
|
|
12799
|
+
[`${classPrefix$X}-arrow-active`]: active
|
|
12724
12800
|
})
|
|
12725
12801
|
}, arrow2);
|
|
12726
12802
|
};
|
|
12727
12803
|
return React__default.default.createElement(React__default.default.Fragment, {
|
|
12728
12804
|
key
|
|
12729
12805
|
}, withNativeProps(panel.props, React__default.default.createElement(List$1.Item, {
|
|
12730
|
-
className: `${classPrefix$
|
|
12806
|
+
className: `${classPrefix$X}-panel-header`,
|
|
12731
12807
|
onClick: handleClick,
|
|
12732
12808
|
disabled: panel.props.disabled,
|
|
12733
12809
|
arrow: renderArrow()
|
|
@@ -13368,7 +13444,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13368
13444
|
clear: clear$2
|
|
13369
13445
|
});
|
|
13370
13446
|
const divider = "";
|
|
13371
|
-
const classPrefix$
|
|
13447
|
+
const classPrefix$W = `adm-divider`;
|
|
13372
13448
|
const defaultProps$I = {
|
|
13373
13449
|
contentPosition: "center",
|
|
13374
13450
|
direction: "horizontal"
|
|
@@ -13376,30 +13452,30 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13376
13452
|
const Divider$1 = (p) => {
|
|
13377
13453
|
const props = mergeProps(defaultProps$I, p);
|
|
13378
13454
|
return withNativeProps(props, React__default.default.createElement("div", {
|
|
13379
|
-
className: classNames(classPrefix$
|
|
13455
|
+
className: classNames(classPrefix$W, `${classPrefix$W}-${props.direction}`, `${classPrefix$W}-${props.contentPosition}`)
|
|
13380
13456
|
}, props.children && React__default.default.createElement("div", {
|
|
13381
|
-
className: `${classPrefix$
|
|
13457
|
+
className: `${classPrefix$W}-content`
|
|
13382
13458
|
}, props.children)));
|
|
13383
13459
|
};
|
|
13384
13460
|
const Divider = Divider$1;
|
|
13385
13461
|
const dropdown = "";
|
|
13386
|
-
const classPrefix$
|
|
13462
|
+
const classPrefix$V = `adm-dropdown-item`;
|
|
13387
13463
|
const Item = (props) => {
|
|
13388
13464
|
var _a;
|
|
13389
|
-
const cls2 = classNames(classPrefix$
|
|
13390
|
-
[`${classPrefix$
|
|
13391
|
-
[`${classPrefix$
|
|
13465
|
+
const cls2 = classNames(classPrefix$V, {
|
|
13466
|
+
[`${classPrefix$V}-active`]: props.active,
|
|
13467
|
+
[`${classPrefix$V}-highlight`]: (_a = props.highlight) !== null && _a !== void 0 ? _a : props.active
|
|
13392
13468
|
});
|
|
13393
13469
|
return withNativeProps(props, React__default.default.createElement("div", {
|
|
13394
13470
|
className: cls2,
|
|
13395
13471
|
onClick: props.onClick
|
|
13396
13472
|
}, React__default.default.createElement("div", {
|
|
13397
|
-
className: `${classPrefix$
|
|
13473
|
+
className: `${classPrefix$V}-title`
|
|
13398
13474
|
}, React__default.default.createElement("span", {
|
|
13399
|
-
className: `${classPrefix$
|
|
13475
|
+
className: `${classPrefix$V}-title-text`
|
|
13400
13476
|
}, props.title), React__default.default.createElement("span", {
|
|
13401
|
-
className: classNames(`${classPrefix$
|
|
13402
|
-
[`${classPrefix$
|
|
13477
|
+
className: classNames(`${classPrefix$V}-title-arrow`, {
|
|
13478
|
+
[`${classPrefix$V}-title-arrow-active`]: props.active
|
|
13403
13479
|
})
|
|
13404
13480
|
}, props.arrow === void 0 ? React__default.default.createElement(DownFill, null) : props.arrow))));
|
|
13405
13481
|
};
|
|
@@ -13409,15 +13485,15 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13409
13485
|
active = false
|
|
13410
13486
|
} = props;
|
|
13411
13487
|
const shouldRender = useShouldRender(active, props.forceRender, props.destroyOnClose);
|
|
13412
|
-
const cls2 = classNames(`${classPrefix$
|
|
13413
|
-
[`${classPrefix$
|
|
13488
|
+
const cls2 = classNames(`${classPrefix$V}-content`, {
|
|
13489
|
+
[`${classPrefix$V}-content-hidden`]: !active
|
|
13414
13490
|
});
|
|
13415
13491
|
return shouldRender ? React__default.default.createElement("div", {
|
|
13416
13492
|
className: cls2,
|
|
13417
13493
|
onClick: props.onClick
|
|
13418
13494
|
}, props.children) : null;
|
|
13419
13495
|
};
|
|
13420
|
-
const classPrefix$
|
|
13496
|
+
const classPrefix$U = `adm-dropdown`;
|
|
13421
13497
|
const defaultProps$H = {
|
|
13422
13498
|
defaultActiveKey: null,
|
|
13423
13499
|
closeOnMaskClick: true,
|
|
@@ -13481,20 +13557,20 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13481
13557
|
}
|
|
13482
13558
|
}), [setValue2]);
|
|
13483
13559
|
return withNativeProps(props, React__default.default.createElement("div", {
|
|
13484
|
-
className: classNames(classPrefix$
|
|
13485
|
-
[`${classPrefix$
|
|
13560
|
+
className: classNames(classPrefix$U, {
|
|
13561
|
+
[`${classPrefix$U}-open`]: !!value
|
|
13486
13562
|
}),
|
|
13487
13563
|
ref: containerRef
|
|
13488
13564
|
}, React__default.default.createElement("div", {
|
|
13489
|
-
className: `${classPrefix$
|
|
13565
|
+
className: `${classPrefix$U}-nav`,
|
|
13490
13566
|
ref: navRef
|
|
13491
13567
|
}, navs), React__default.default.createElement(Popup, {
|
|
13492
13568
|
visible: !!value,
|
|
13493
13569
|
position: "top",
|
|
13494
13570
|
getContainer: props.getContainer,
|
|
13495
|
-
className: `${classPrefix$
|
|
13496
|
-
maskClassName: `${classPrefix$
|
|
13497
|
-
bodyClassName: `${classPrefix$
|
|
13571
|
+
className: `${classPrefix$U}-popup`,
|
|
13572
|
+
maskClassName: `${classPrefix$U}-popup-mask`,
|
|
13573
|
+
bodyClassName: `${classPrefix$U}-popup-body`,
|
|
13498
13574
|
style: {
|
|
13499
13575
|
top
|
|
13500
13576
|
},
|
|
@@ -13579,7 +13655,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13579
13655
|
!function(i2) {
|
|
13580
13656
|
i2[i2.unit_1 = 1] = "unit_1", i2[i2.unit_2 = 2] = "unit_2", i2[i2.unit_4 = 4] = "unit_4";
|
|
13581
13657
|
}(n || (n = {}));
|
|
13582
|
-
const classPrefix$
|
|
13658
|
+
const classPrefix$T = `adm-ellipsis`;
|
|
13583
13659
|
const defaultProps$G = {
|
|
13584
13660
|
direction: "end",
|
|
13585
13661
|
rows: 1,
|
|
@@ -13693,18 +13769,18 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13693
13769
|
useIsomorphicLayoutEffect$2(() => {
|
|
13694
13770
|
calcEllipsised();
|
|
13695
13771
|
}, [props.content, props.direction, props.rows, props.expandText, props.collapseText]);
|
|
13696
|
-
const expandActionElement =
|
|
13772
|
+
const expandActionElement = !!props.expandText && withStopPropagation(props.stopPropagationForActionButtons, React__default.default.createElement("a", {
|
|
13697
13773
|
ref: expandElRef,
|
|
13698
13774
|
onClick: () => {
|
|
13699
13775
|
setExpanded(true);
|
|
13700
13776
|
}
|
|
13701
|
-
}, props.expandText))
|
|
13702
|
-
const collapseActionElement =
|
|
13777
|
+
}, props.expandText));
|
|
13778
|
+
const collapseActionElement = !!props.collapseText && withStopPropagation(props.stopPropagationForActionButtons, React__default.default.createElement("a", {
|
|
13703
13779
|
ref: collapseElRef,
|
|
13704
13780
|
onClick: () => {
|
|
13705
13781
|
setExpanded(false);
|
|
13706
13782
|
}
|
|
13707
|
-
}, props.collapseText))
|
|
13783
|
+
}, props.collapseText));
|
|
13708
13784
|
const renderContent = () => {
|
|
13709
13785
|
if (!exceeded)
|
|
13710
13786
|
return props.content;
|
|
@@ -13714,7 +13790,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13714
13790
|
};
|
|
13715
13791
|
return withNativeProps(props, React__default.default.createElement("div", {
|
|
13716
13792
|
ref: rootRef,
|
|
13717
|
-
className: classPrefix$
|
|
13793
|
+
className: classPrefix$T,
|
|
13718
13794
|
onClick: (e2) => {
|
|
13719
13795
|
if (e2.target === e2.currentTarget) {
|
|
13720
13796
|
props.onContentClick(e2);
|
|
@@ -13752,7 +13828,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13752
13828
|
fill: "#fafafa"
|
|
13753
13829
|
})))));
|
|
13754
13830
|
};
|
|
13755
|
-
const classPrefix$
|
|
13831
|
+
const classPrefix$S = `adm-empty`;
|
|
13756
13832
|
const Empty$1 = (props) => {
|
|
13757
13833
|
function renderImageNode() {
|
|
13758
13834
|
const {
|
|
@@ -13760,13 +13836,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13760
13836
|
} = props;
|
|
13761
13837
|
if (image2 === void 0) {
|
|
13762
13838
|
return React__default.default.createElement(EmptyIcon, {
|
|
13763
|
-
className: `${classPrefix$
|
|
13839
|
+
className: `${classPrefix$S}-image`,
|
|
13764
13840
|
style: props.imageStyle
|
|
13765
13841
|
});
|
|
13766
13842
|
}
|
|
13767
13843
|
if (typeof image2 === "string") {
|
|
13768
13844
|
return React__default.default.createElement("img", {
|
|
13769
|
-
className: `${classPrefix$
|
|
13845
|
+
className: `${classPrefix$S}-image`,
|
|
13770
13846
|
style: props.imageStyle,
|
|
13771
13847
|
src: image2,
|
|
13772
13848
|
alt: "empty"
|
|
@@ -13775,16 +13851,16 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13775
13851
|
return image2;
|
|
13776
13852
|
}
|
|
13777
13853
|
return withNativeProps(props, React__default.default.createElement("div", {
|
|
13778
|
-
className: classPrefix$
|
|
13854
|
+
className: classPrefix$S
|
|
13779
13855
|
}, React__default.default.createElement("div", {
|
|
13780
|
-
className: `${classPrefix$
|
|
13856
|
+
className: `${classPrefix$S}-image-container`
|
|
13781
13857
|
}, renderImageNode()), props.description && React__default.default.createElement("div", {
|
|
13782
|
-
className: classNames(`${classPrefix$
|
|
13858
|
+
className: classNames(`${classPrefix$S}-description`)
|
|
13783
13859
|
}, props.description)));
|
|
13784
13860
|
};
|
|
13785
13861
|
const Empty = Empty$1;
|
|
13786
13862
|
const errorBlock = "";
|
|
13787
|
-
const classPrefix$
|
|
13863
|
+
const classPrefix$R = `adm-error-block`;
|
|
13788
13864
|
const defaultProps$F = {
|
|
13789
13865
|
status: "default"
|
|
13790
13866
|
};
|
|
@@ -13796,7 +13872,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13796
13872
|
locale
|
|
13797
13873
|
} = useConfig();
|
|
13798
13874
|
const contentPack = locale.ErrorBlock[props.status];
|
|
13799
|
-
const
|
|
13875
|
+
const desc = "description" in props ? props.description : contentPack.description;
|
|
13800
13876
|
const title = "title" in props ? props.title : contentPack.title;
|
|
13801
13877
|
const image2 = (_a = props.image) !== null && _a !== void 0 ? _a : imageRecord2[props.status];
|
|
13802
13878
|
const imageNode = typeof image2 === "string" ? React__default.default.createElement("img", {
|
|
@@ -13804,19 +13880,19 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13804
13880
|
alt: "error block image"
|
|
13805
13881
|
}) : image2;
|
|
13806
13882
|
return withNativeProps(props, React__default.default.createElement("div", {
|
|
13807
|
-
className: classNames(classPrefix$
|
|
13808
|
-
[`${classPrefix$
|
|
13883
|
+
className: classNames(classPrefix$R, {
|
|
13884
|
+
[`${classPrefix$R}-full-page`]: props.fullPage
|
|
13809
13885
|
})
|
|
13810
13886
|
}, React__default.default.createElement("div", {
|
|
13811
|
-
className: `${classPrefix$
|
|
13887
|
+
className: `${classPrefix$R}-image`
|
|
13812
13888
|
}, imageNode), React__default.default.createElement("div", {
|
|
13813
|
-
className: `${classPrefix$
|
|
13814
|
-
}, title && React__default.default.createElement("div", {
|
|
13815
|
-
className: `${classPrefix$
|
|
13816
|
-
}, title),
|
|
13817
|
-
className: `${classPrefix$
|
|
13818
|
-
},
|
|
13819
|
-
className: `${classPrefix$
|
|
13889
|
+
className: `${classPrefix$R}-description`
|
|
13890
|
+
}, ![void 0, null].includes(title) && React__default.default.createElement("div", {
|
|
13891
|
+
className: `${classPrefix$R}-description-title`
|
|
13892
|
+
}, title), ![void 0, null].includes(desc) && React__default.default.createElement("div", {
|
|
13893
|
+
className: `${classPrefix$R}-description-subtitle`
|
|
13894
|
+
}, desc)), props.children && React__default.default.createElement("div", {
|
|
13895
|
+
className: `${classPrefix$R}-content`
|
|
13820
13896
|
}, props.children)));
|
|
13821
13897
|
};
|
|
13822
13898
|
return ErrorBlock2;
|
|
@@ -14324,7 +14400,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14324
14400
|
const ErrorBlock$1 = createErrorBlock(imageRecord);
|
|
14325
14401
|
const ErrorBlock = ErrorBlock$1;
|
|
14326
14402
|
const floatingBubble = "";
|
|
14327
|
-
const classPrefix$
|
|
14403
|
+
const classPrefix$Q = `adm-floating-bubble`;
|
|
14328
14404
|
const defaultProps$E = {
|
|
14329
14405
|
axis: "y",
|
|
14330
14406
|
defaultOffset: {
|
|
@@ -14408,11 +14484,11 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14408
14484
|
from: () => [x.get(), y.get()]
|
|
14409
14485
|
});
|
|
14410
14486
|
return withNativeProps(props, React__default.default.createElement("div", {
|
|
14411
|
-
className: classPrefix$
|
|
14487
|
+
className: classPrefix$Q
|
|
14412
14488
|
}, React__default.default.createElement("div", {
|
|
14413
|
-
className: `${classPrefix$
|
|
14489
|
+
className: `${classPrefix$Q}-boundary-outer`
|
|
14414
14490
|
}, React__default.default.createElement("div", {
|
|
14415
|
-
className: `${classPrefix$
|
|
14491
|
+
className: `${classPrefix$Q}-boundary`,
|
|
14416
14492
|
ref: boundaryRef
|
|
14417
14493
|
})), React__default.default.createElement(animated.div, Object.assign({}, bind(), {
|
|
14418
14494
|
style: {
|
|
@@ -14420,7 +14496,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14420
14496
|
transform: to([x, y], (x2, y2) => `translate(${x2}px, ${y2}px)`)
|
|
14421
14497
|
},
|
|
14422
14498
|
onClick: props.onClick,
|
|
14423
|
-
className: `${classPrefix$
|
|
14499
|
+
className: `${classPrefix$Q}-button`,
|
|
14424
14500
|
ref: buttonRef
|
|
14425
14501
|
}), props.children)));
|
|
14426
14502
|
};
|
|
@@ -14431,6 +14507,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14431
14507
|
return Math.abs(pre - target) < Math.abs(cur - target) ? pre : cur;
|
|
14432
14508
|
});
|
|
14433
14509
|
}
|
|
14510
|
+
const classPrefix$P = "adm-floating-panel";
|
|
14434
14511
|
const defaultProps$D = {
|
|
14435
14512
|
handleDraggingOfContent: true
|
|
14436
14513
|
};
|
|
@@ -14493,7 +14570,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14493
14570
|
const {
|
|
14494
14571
|
event
|
|
14495
14572
|
} = state;
|
|
14496
|
-
if (event.cancelable) {
|
|
14573
|
+
if (event.cancelable && supportsPassive) {
|
|
14497
14574
|
event.preventDefault();
|
|
14498
14575
|
}
|
|
14499
14576
|
event.stopPropagation();
|
|
@@ -14517,7 +14594,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14517
14594
|
target: elementRef,
|
|
14518
14595
|
eventOptions: supportsPassive ? {
|
|
14519
14596
|
passive: false
|
|
14520
|
-
} :
|
|
14597
|
+
} : void 0
|
|
14521
14598
|
});
|
|
14522
14599
|
React$4.useImperativeHandle(ref, () => ({
|
|
14523
14600
|
setHeight: (height, options) => {
|
|
@@ -14530,23 +14607,23 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14530
14607
|
useLockScroll(elementRef, true);
|
|
14531
14608
|
return withNativeProps(props, React__default.default.createElement(animated.div, {
|
|
14532
14609
|
ref: elementRef,
|
|
14533
|
-
className:
|
|
14610
|
+
className: classPrefix$P,
|
|
14534
14611
|
style: {
|
|
14535
14612
|
height: Math.round(maxHeight),
|
|
14536
14613
|
translateY: y.to((y2) => `calc(100% + (${Math.round(y2)}px))`)
|
|
14537
14614
|
}
|
|
14538
14615
|
}, React__default.default.createElement("div", {
|
|
14539
|
-
className:
|
|
14616
|
+
className: `${classPrefix$P}-mask`,
|
|
14540
14617
|
style: {
|
|
14541
14618
|
display: pulling ? "block" : "none"
|
|
14542
14619
|
}
|
|
14543
14620
|
}), React__default.default.createElement("div", {
|
|
14544
|
-
className:
|
|
14621
|
+
className: `${classPrefix$P}-header`,
|
|
14545
14622
|
ref: headerRef
|
|
14546
14623
|
}, React__default.default.createElement("div", {
|
|
14547
|
-
className:
|
|
14624
|
+
className: `${classPrefix$P}-bar`
|
|
14548
14625
|
})), React__default.default.createElement("div", {
|
|
14549
|
-
className:
|
|
14626
|
+
className: `${classPrefix$P}-content`,
|
|
14550
14627
|
ref: contentRef
|
|
14551
14628
|
}, props.children)));
|
|
14552
14629
|
});
|
|
@@ -20604,7 +20681,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20604
20681
|
const FormItemLayout = (props) => {
|
|
20605
20682
|
var _a;
|
|
20606
20683
|
const {
|
|
20607
|
-
className,
|
|
20608
20684
|
style,
|
|
20609
20685
|
extra,
|
|
20610
20686
|
label,
|
|
@@ -20646,7 +20722,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20646
20722
|
return null;
|
|
20647
20723
|
}
|
|
20648
20724
|
})();
|
|
20649
|
-
const labelElement = label
|
|
20725
|
+
const labelElement = !!label && React__default.default.createElement("label", {
|
|
20650
20726
|
className: `${classPrefix$L}-label`,
|
|
20651
20727
|
htmlFor
|
|
20652
20728
|
}, label, requiredMark, help && React__default.default.createElement(Popover, {
|
|
@@ -20658,21 +20734,21 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20658
20734
|
onClick: (e2) => {
|
|
20659
20735
|
e2.preventDefault();
|
|
20660
20736
|
}
|
|
20661
|
-
}, React__default.default.createElement(QuestionCircleOutline, null))))
|
|
20662
|
-
const description = props.description || hasFeedback
|
|
20737
|
+
}, React__default.default.createElement(QuestionCircleOutline, null))));
|
|
20738
|
+
const description = (!!props.description || hasFeedback) && React__default.default.createElement(React__default.default.Fragment, null, props.description, hasFeedback && React__default.default.createElement(React__default.default.Fragment, null, props.errors.map((error, index2) => React__default.default.createElement("div", {
|
|
20663
20739
|
key: `error-${index2}`,
|
|
20664
20740
|
className: `${classPrefix$L}-feedback-error`
|
|
20665
20741
|
}, error)), props.warnings.map((warning2, index2) => React__default.default.createElement("div", {
|
|
20666
20742
|
key: `warning-${index2}`,
|
|
20667
20743
|
className: `${classPrefix$L}-feedback-warning`
|
|
20668
|
-
}, warning2))))
|
|
20744
|
+
}, warning2))));
|
|
20669
20745
|
return withNativeProps(props, React__default.default.createElement(List$1.Item, {
|
|
20670
20746
|
style,
|
|
20671
20747
|
title: layout === "vertical" && labelElement,
|
|
20672
20748
|
prefix: layout === "horizontal" && labelElement,
|
|
20673
20749
|
extra,
|
|
20674
20750
|
description,
|
|
20675
|
-
className: classNames(classPrefix$L,
|
|
20751
|
+
className: classNames(classPrefix$L, `${classPrefix$L}-${layout}`, {
|
|
20676
20752
|
[`${classPrefix$L}-hidden`]: hidden,
|
|
20677
20753
|
[`${classPrefix$L}-has-error`]: props.errors.length
|
|
20678
20754
|
}),
|
|
@@ -20688,7 +20764,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20688
20764
|
};
|
|
20689
20765
|
const FormItem = (props) => {
|
|
20690
20766
|
const {
|
|
20691
|
-
className,
|
|
20692
20767
|
style,
|
|
20693
20768
|
label,
|
|
20694
20769
|
help,
|
|
@@ -20712,7 +20787,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20712
20787
|
dependencies,
|
|
20713
20788
|
clickable,
|
|
20714
20789
|
arrow: arrow2
|
|
20715
|
-
} = props, fieldProps = __rest(props, ["
|
|
20790
|
+
} = 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"]);
|
|
20716
20791
|
const {
|
|
20717
20792
|
name: formName
|
|
20718
20793
|
} = React$4.useContext(FormContext);
|
|
@@ -20760,7 +20835,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20760
20835
|
return subWarnings;
|
|
20761
20836
|
}, curWarnings);
|
|
20762
20837
|
return withNativeProps(props, React__default.default.createElement(FormItemLayout, {
|
|
20763
|
-
className,
|
|
20764
20838
|
style,
|
|
20765
20839
|
label,
|
|
20766
20840
|
extra,
|
|
@@ -22962,7 +23036,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22962
23036
|
enabled: !props.disabled,
|
|
22963
23037
|
eventOptions: supportsPassive ? {
|
|
22964
23038
|
passive: false
|
|
22965
|
-
} :
|
|
23039
|
+
} : void 0
|
|
22966
23040
|
});
|
|
22967
23041
|
const renderStatusText = () => {
|
|
22968
23042
|
var _a2;
|
|
@@ -24747,14 +24821,14 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24747
24821
|
if (!React__default.default.isValidElement(child)) {
|
|
24748
24822
|
return child;
|
|
24749
24823
|
}
|
|
24750
|
-
const
|
|
24751
|
-
let status =
|
|
24824
|
+
const childProps = child.props;
|
|
24825
|
+
let status = childProps.status || "wait";
|
|
24752
24826
|
if (index2 < current) {
|
|
24753
|
-
status =
|
|
24827
|
+
status = childProps.status || "finish";
|
|
24754
24828
|
} else if (index2 === current) {
|
|
24755
|
-
status =
|
|
24829
|
+
status = childProps.status || "process";
|
|
24756
24830
|
}
|
|
24757
|
-
const icon = (_a =
|
|
24831
|
+
const icon = (_a = childProps.icon) !== null && _a !== void 0 ? _a : defaultIcon;
|
|
24758
24832
|
return React__default.default.cloneElement(child, {
|
|
24759
24833
|
status,
|
|
24760
24834
|
icon
|
|
@@ -25463,7 +25537,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
25463
25537
|
const tag = "";
|
|
25464
25538
|
const classPrefix$7 = `adm-tag`;
|
|
25465
25539
|
const colorRecord = {
|
|
25466
|
-
default: "#666666",
|
|
25540
|
+
default: "var(--adm-color-text-secondary, #666666)",
|
|
25467
25541
|
primary: "var(--adm-color-primary, #1677ff)",
|
|
25468
25542
|
success: "var(--adm-color-success, #00b578)",
|
|
25469
25543
|
warning: "var(--adm-color-warning, #ff8f1f)",
|
|
@@ -25566,12 +25640,21 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
25566
25640
|
className: `${classPrefix$6}-count`
|
|
25567
25641
|
}, maxLength === void 0 ? valueLength : valueLength + "/" + maxLength);
|
|
25568
25642
|
}
|
|
25643
|
+
let rows = props.rows;
|
|
25644
|
+
if (typeof autoSize === "object") {
|
|
25645
|
+
if (autoSize.maxRows && rows > autoSize.maxRows) {
|
|
25646
|
+
rows = autoSize.maxRows;
|
|
25647
|
+
}
|
|
25648
|
+
if (autoSize.minRows && rows < autoSize.minRows) {
|
|
25649
|
+
rows = autoSize.minRows;
|
|
25650
|
+
}
|
|
25651
|
+
}
|
|
25569
25652
|
return withNativeProps(props, React__default.default.createElement("div", {
|
|
25570
25653
|
className: classPrefix$6
|
|
25571
25654
|
}, React__default.default.createElement("textarea", {
|
|
25572
25655
|
ref: nativeTextAreaRef,
|
|
25573
25656
|
className: `${classPrefix$6}-element`,
|
|
25574
|
-
rows
|
|
25657
|
+
rows,
|
|
25575
25658
|
value,
|
|
25576
25659
|
placeholder: props.placeholder,
|
|
25577
25660
|
onChange: (e2) => {
|
|
@@ -25608,7 +25691,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
25608
25691
|
ref: hiddenTextAreaRef,
|
|
25609
25692
|
className: `${classPrefix$6}-element ${classPrefix$6}-element-hidden`,
|
|
25610
25693
|
value,
|
|
25611
|
-
rows
|
|
25694
|
+
rows,
|
|
25612
25695
|
"aria-hidden": true,
|
|
25613
25696
|
readOnly: true
|
|
25614
25697
|
})));
|
|
@@ -26194,7 +26277,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
26194
26277
|
const WaterMark$1 = (p) => {
|
|
26195
26278
|
const props = mergeProps(defaultProps$1, p);
|
|
26196
26279
|
const {
|
|
26197
|
-
zIndex
|
|
26280
|
+
zIndex,
|
|
26198
26281
|
gapX = 24,
|
|
26199
26282
|
gapY = 48,
|
|
26200
26283
|
width = 120,
|