tdesign-react 0.22.1 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -1
- package/cjs/_chunks/dep-01eba63c.js +49 -0
- package/cjs/_chunks/dep-01eba63c.js.map +1 -0
- package/cjs/_chunks/dep-069dcce3.js +47 -0
- package/cjs/_chunks/dep-069dcce3.js.map +1 -0
- package/cjs/_chunks/dep-0ec4a40c.js +159 -0
- package/cjs/_chunks/dep-0ec4a40c.js.map +1 -0
- package/cjs/_chunks/dep-14268b89.js +47 -0
- package/cjs/_chunks/dep-14268b89.js.map +1 -0
- package/cjs/_chunks/dep-193075dd.js +28 -0
- package/cjs/_chunks/dep-193075dd.js.map +1 -0
- package/cjs/_chunks/dep-28c92f2b.js +26 -0
- package/cjs/_chunks/dep-28c92f2b.js.map +1 -0
- package/cjs/_chunks/dep-297336a6.js +161 -0
- package/cjs/_chunks/dep-297336a6.js.map +1 -0
- package/cjs/_chunks/dep-37063cf1.js +47 -0
- package/cjs/_chunks/dep-37063cf1.js.map +1 -0
- package/cjs/_chunks/dep-3936d71e.js +275 -0
- package/cjs/_chunks/dep-3936d71e.js.map +1 -0
- package/cjs/_chunks/dep-3d22a9b1.js +88 -0
- package/cjs/_chunks/dep-3d22a9b1.js.map +1 -0
- package/cjs/_chunks/dep-3e75c768.js +69 -0
- package/cjs/_chunks/dep-3e75c768.js.map +1 -0
- package/cjs/_chunks/dep-40adb9d6.js +568 -0
- package/cjs/_chunks/dep-40adb9d6.js.map +1 -0
- package/cjs/_chunks/dep-421ee0a3.js +110 -0
- package/cjs/_chunks/dep-421ee0a3.js.map +1 -0
- package/cjs/_chunks/dep-47177f07.js +36 -0
- package/cjs/_chunks/dep-47177f07.js.map +1 -0
- package/cjs/_chunks/dep-47be2d02.js +395 -0
- package/cjs/_chunks/dep-47be2d02.js.map +1 -0
- package/cjs/_chunks/dep-480f6d21.js +197 -0
- package/cjs/_chunks/dep-480f6d21.js.map +1 -0
- package/cjs/_chunks/dep-4af53794.js +30 -0
- package/cjs/_chunks/dep-4af53794.js.map +1 -0
- package/cjs/_chunks/dep-56755bdf.js +45 -0
- package/cjs/_chunks/dep-56755bdf.js.map +1 -0
- package/cjs/_chunks/dep-588b21da.js +232 -0
- package/cjs/_chunks/dep-588b21da.js.map +1 -0
- package/cjs/_chunks/dep-59d9cd64.js +772 -0
- package/cjs/_chunks/dep-59d9cd64.js.map +1 -0
- package/cjs/_chunks/dep-5c95645c.js +108 -0
- package/cjs/_chunks/dep-5c95645c.js.map +1 -0
- package/cjs/_chunks/dep-640a069e.js +95 -0
- package/cjs/_chunks/dep-640a069e.js.map +1 -0
- package/cjs/_chunks/dep-69db5a7a.js +308 -0
- package/cjs/_chunks/dep-69db5a7a.js.map +1 -0
- package/cjs/_chunks/dep-6df4e076.js +44 -0
- package/cjs/_chunks/dep-6df4e076.js.map +1 -0
- package/cjs/_chunks/dep-6e4749ac.js +25 -0
- package/cjs/_chunks/dep-6e4749ac.js.map +1 -0
- package/cjs/_chunks/dep-6f6f8585.js +132 -0
- package/cjs/_chunks/dep-6f6f8585.js.map +1 -0
- package/cjs/_chunks/dep-718240e7.js +97 -0
- package/cjs/_chunks/dep-718240e7.js.map +1 -0
- package/cjs/_chunks/dep-7a5a5782.js +20 -0
- package/cjs/_chunks/dep-7a5a5782.js.map +1 -0
- package/cjs/_chunks/dep-83c57744.js +51 -0
- package/cjs/_chunks/dep-83c57744.js.map +1 -0
- package/cjs/_chunks/dep-84adf720.js +54 -0
- package/cjs/_chunks/dep-84adf720.js.map +1 -0
- package/cjs/_chunks/dep-887ddf9a.js +57 -0
- package/cjs/_chunks/dep-887ddf9a.js.map +1 -0
- package/cjs/_chunks/dep-8d77d442.js +119 -0
- package/cjs/_chunks/dep-8d77d442.js.map +1 -0
- package/cjs/_chunks/dep-8e345302.js +18 -0
- package/cjs/_chunks/dep-8e345302.js.map +1 -0
- package/cjs/_chunks/dep-8efc45c5.js +27 -0
- package/cjs/_chunks/dep-8efc45c5.js.map +1 -0
- package/cjs/_chunks/dep-90afeac3.js +86 -0
- package/cjs/_chunks/dep-90afeac3.js.map +1 -0
- package/cjs/_chunks/dep-92c93e34.js +740 -0
- package/cjs/_chunks/dep-92c93e34.js.map +1 -0
- package/cjs/_chunks/dep-94d2a54a.js +34 -0
- package/cjs/_chunks/dep-94d2a54a.js.map +1 -0
- package/cjs/_chunks/dep-a0608a67.js +141 -0
- package/cjs/_chunks/dep-a0608a67.js.map +1 -0
- package/cjs/_chunks/dep-a27abb15.js +957 -0
- package/cjs/_chunks/dep-a27abb15.js.map +1 -0
- package/cjs/_chunks/dep-a5c11047.js +44 -0
- package/cjs/_chunks/dep-a5c11047.js.map +1 -0
- package/cjs/_chunks/dep-a767fd94.js +46 -0
- package/cjs/_chunks/dep-a767fd94.js.map +1 -0
- package/cjs/_chunks/dep-b102c53a.js +26 -0
- package/cjs/_chunks/dep-b102c53a.js.map +1 -0
- package/cjs/_chunks/dep-b9e73793.js +43 -0
- package/cjs/_chunks/dep-b9e73793.js.map +1 -0
- package/cjs/_chunks/dep-c1a327ec.js +75 -0
- package/cjs/_chunks/dep-c1a327ec.js.map +1 -0
- package/cjs/_chunks/dep-c5115095.js +35 -0
- package/cjs/_chunks/dep-c5115095.js.map +1 -0
- package/cjs/_chunks/dep-d02076c3.js +120 -0
- package/cjs/_chunks/dep-d02076c3.js.map +1 -0
- package/cjs/_chunks/dep-de5cb09f.js +201 -0
- package/cjs/_chunks/dep-de5cb09f.js.map +1 -0
- package/cjs/_chunks/dep-e9da3029.js +230 -0
- package/cjs/_chunks/dep-e9da3029.js.map +1 -0
- package/cjs/_chunks/dep-f17e069c.js +200 -0
- package/cjs/_chunks/dep-f17e069c.js.map +1 -0
- package/cjs/_chunks/dep-f25dd55b.js +52 -0
- package/cjs/_chunks/dep-f25dd55b.js.map +1 -0
- package/cjs/_chunks/dep-f40d66d2.js +20 -0
- package/cjs/_chunks/dep-f40d66d2.js.map +1 -0
- package/cjs/_chunks/dep-f481476f.js +47 -0
- package/cjs/_chunks/dep-f481476f.js.map +1 -0
- package/cjs/_chunks/dep-f9cc9672.js +864 -0
- package/cjs/_chunks/dep-f9cc9672.js.map +1 -0
- package/cjs/_chunks/dep-fda248de.js +28 -0
- package/cjs/_chunks/dep-fda248de.js.map +1 -0
- package/cjs/_common/js/common.d.ts +3 -0
- package/cjs/_common/js/common.js +1 -1
- package/cjs/_common/js/date-picker/utils.d.ts +87 -0
- package/cjs/_common/js/date-picker/utils.js +395 -0
- package/cjs/_common/js/date-picker/utils.js.map +1 -0
- package/cjs/_common/js/loading/circle-adapter.d.ts +1 -0
- package/cjs/_common/js/loading/circle-adapter.js +54 -0
- package/cjs/_common/js/loading/circle-adapter.js.map +1 -0
- package/cjs/_common/js/log/log.d.ts +3 -0
- package/cjs/_common/js/log/log.js +1 -1
- package/cjs/_common/js/log/types.d.ts +8 -0
- package/cjs/_common/js/log/types.js +1 -1
- package/cjs/_common/js/tree/tree-node-model.js +25 -24
- package/cjs/_common/js/tree/tree-node-model.js.map +1 -1
- package/cjs/_common/js/tree/tree-node.js +28 -27
- package/cjs/_common/js/tree/tree-node.js.map +1 -1
- package/cjs/_common/js/tree/tree-store.js +37 -36
- package/cjs/_common/js/tree/tree-store.js.map +1 -1
- package/cjs/_common/js/tree/types.js +1 -1
- package/cjs/_common/js/upload/types.js +1 -1
- package/cjs/_common/js/upload/xhr.js +1 -1
- package/cjs/_common/js/utils/set-style.d.ts +8 -0
- package/cjs/_common/js/utils/set-style.js +19 -0
- package/cjs/_common/js/utils/set-style.js.map +1 -0
- package/cjs/_util/callBoth.js +1 -1
- package/cjs/_util/composeRefs.js +4 -2
- package/cjs/_util/composeRefs.js.map +1 -1
- package/cjs/_util/dom.js +6 -6
- package/cjs/_util/easing.js +1 -1
- package/cjs/_util/forwardRefWithStatics.js +1 -1
- package/cjs/_util/getScrollbarWidth.js +1 -1
- package/cjs/_util/hasScrollBar.js +1 -1
- package/cjs/_util/helper.js +14 -14
- package/cjs/_util/injectValue.js +1 -1
- package/cjs/_util/insertCSS.js +1 -1
- package/cjs/_util/isCallable.js +1 -1
- package/cjs/_util/linearGradient.js +2 -2
- package/cjs/_util/noop.js +1 -1
- package/cjs/_util/number.js +1 -1
- package/cjs/_util/setStyle.js +1 -1
- package/cjs/_util/useClickOutside.js +1 -1
- package/cjs/_util/useCommonClassName.js +1 -1
- package/cjs/_util/useConfig.js +1 -1
- package/cjs/_util/useDefault.js +3 -3
- package/cjs/_util/useDefaultValue.js +5 -5
- package/cjs/_util/usePersistFn.js +1 -1
- package/cjs/_util/usePrevious.js +1 -1
- package/cjs/_util/useRefAndForward.js +1 -1
- package/cjs/_util/useRipple.js +1 -1
- package/cjs/_util/useSetState.js +4 -4
- package/cjs/_util/useUpdateEffect.js +1 -1
- package/cjs/addon/Addon.js +3 -3
- package/cjs/addon/index.js +3 -3
- package/cjs/affix/Affix.js +11 -11
- package/cjs/affix/index.js +11 -11
- package/cjs/affix/type.js +1 -1
- package/cjs/alert/Alert.js +5 -5
- package/cjs/alert/index.js +5 -5
- package/cjs/alert/type.js +1 -1
- package/cjs/anchor/Anchor.js +22 -21
- package/cjs/anchor/Anchor.js.map +1 -1
- package/cjs/anchor/AnchorContext.js +1 -1
- package/cjs/anchor/AnchorItem.js +2 -2
- package/cjs/anchor/AnchorTarget.js +11 -10
- package/cjs/anchor/AnchorTarget.js.map +1 -1
- package/cjs/anchor/_util/clipboard.js +1 -1
- package/cjs/anchor/_util/dom.js +1 -1
- package/cjs/anchor/index.js +22 -21
- package/cjs/anchor/index.js.map +1 -1
- package/cjs/anchor/type.js +1 -1
- package/cjs/avatar/AvararGroup.js +6 -7
- package/cjs/avatar/AvararGroup.js.map +1 -1
- package/cjs/avatar/Avatar.js +6 -7
- package/cjs/avatar/Avatar.js.map +1 -1
- package/cjs/avatar/AvatarContext.js +1 -1
- package/cjs/avatar/index.js +6 -7
- package/cjs/avatar/index.js.map +1 -1
- package/cjs/avatar/type.js +1 -1
- package/cjs/badge/Badge.js +3 -3
- package/cjs/badge/index.js +3 -3
- package/cjs/badge/type.js +1 -1
- package/cjs/breadcrumb/Breadcrumb.js +3 -3
- package/cjs/breadcrumb/BreadcrumbContext.js +1 -1
- package/cjs/breadcrumb/BreadcrumbItem.js +3 -3
- package/cjs/breadcrumb/BreadcrumbProps.js +1 -1
- package/cjs/breadcrumb/index.js +3 -3
- package/cjs/breadcrumb/type.js +1 -1
- package/cjs/button/Button.js +14 -12
- package/cjs/button/Button.js.map +1 -1
- package/cjs/button/index.js +12 -10
- package/cjs/button/index.js.map +1 -1
- package/cjs/button/type.js +1 -1
- package/cjs/calendar/Calendar.js +26 -25
- package/cjs/calendar/Calendar.js.map +1 -1
- package/cjs/calendar/_util.js +1 -1
- package/cjs/calendar/index.js +26 -25
- package/cjs/calendar/index.js.map +1 -1
- package/cjs/calendar/type.js +1 -1
- package/cjs/card/type.js +1 -1
- package/cjs/cascader/Cascader.js +47 -45
- package/cjs/cascader/Cascader.js.map +1 -1
- package/cjs/cascader/components/InputContent.js +20 -20
- package/cjs/cascader/components/Item.js +20 -19
- package/cjs/cascader/components/Item.js.map +1 -1
- package/cjs/cascader/components/Panel.js +20 -19
- package/cjs/cascader/components/Panel.js.map +1 -1
- package/cjs/cascader/index.js +47 -45
- package/cjs/cascader/index.js.map +1 -1
- package/cjs/cascader/interface.js +28 -27
- package/cjs/cascader/interface.js.map +1 -1
- package/cjs/cascader/type.js +1 -1
- package/cjs/cascader/utils/cascader.js +4 -4
- package/cjs/cascader/utils/helper.js +2 -2
- package/cjs/cascader/utils/inputContent.js +17 -17
- package/cjs/cascader/utils/item.js +4 -4
- package/cjs/cascader/utils/panel.js +7 -7
- package/cjs/checkbox/Checkbox.js +16 -16
- package/cjs/checkbox/CheckboxGroup.js +16 -16
- package/cjs/checkbox/index.js +16 -16
- package/cjs/checkbox/type.js +1 -1
- package/cjs/comment/Comment.js +1 -1
- package/cjs/comment/index.js +1 -1
- package/cjs/comment/type.js +1 -1
- package/cjs/common/Check.js +14 -14
- package/cjs/common/FakeArrow.js +2 -2
- package/cjs/common/Portal.js +4 -4
- package/cjs/common.js +1 -1
- package/cjs/config-provider/ConfigContext.js +1 -1
- package/cjs/config-provider/ConfigProvider.js +3 -3
- package/cjs/config-provider/index.js +3 -3
- package/cjs/config-provider/type.js +1 -1
- package/cjs/date-picker/DatePicker.js +32 -31
- package/cjs/date-picker/DatePicker.js.map +1 -1
- package/cjs/date-picker/base/CalendarPresets.js +12 -10
- package/cjs/date-picker/base/CalendarPresets.js.map +1 -1
- package/cjs/date-picker/base/Cell.js +2 -2
- package/cjs/date-picker/base/Header.js +12 -10
- package/cjs/date-picker/base/Header.js.map +1 -1
- package/cjs/date-picker/base/Table.js +4 -4
- package/cjs/date-picker/index.js +32 -31
- package/cjs/date-picker/index.js.map +1 -1
- package/cjs/date-picker/panel/Date.d.ts +2 -1
- package/cjs/date-picker/panel/Date.js +34 -32
- package/cjs/date-picker/panel/Date.js.map +1 -1
- package/cjs/date-picker/panel/DateRange.js +40 -38
- package/cjs/date-picker/panel/DateRange.js.map +1 -1
- package/cjs/date-picker/type.js +1 -1
- package/cjs/dialog/Dialog.js +12 -10
- package/cjs/dialog/Dialog.js.map +1 -1
- package/cjs/dialog/RenderDialog.js +5 -5
- package/cjs/dialog/index.js +12 -10
- package/cjs/dialog/index.js.map +1 -1
- package/cjs/dialog/plugin.js +12 -10
- package/cjs/dialog/plugin.js.map +1 -1
- package/cjs/dialog/type.d.ts +3 -9
- package/cjs/dialog/type.js +1 -1
- package/cjs/divider/Divider.js +17 -8
- package/cjs/divider/Divider.js.map +1 -1
- package/cjs/divider/index.js +3 -3
- package/cjs/divider/type.js +1 -1
- package/cjs/drawer/Drawer.js +13 -11
- package/cjs/drawer/Drawer.js.map +1 -1
- package/cjs/drawer/DrawerWrapper.js +4 -4
- package/cjs/drawer/_util.js +1 -1
- package/cjs/drawer/index.js +12 -10
- package/cjs/drawer/index.js.map +1 -1
- package/cjs/drawer/type.js +1 -1
- package/cjs/dropdown/Dropdown.js +36 -37
- package/cjs/dropdown/Dropdown.js.map +1 -1
- package/cjs/dropdown/DropdownItem.js +14 -14
- package/cjs/dropdown/DropdownMenu.js +15 -15
- package/cjs/dropdown/index.js +36 -37
- package/cjs/dropdown/index.js.map +1 -1
- package/cjs/dropdown/type.js +1 -1
- package/cjs/form/Form.d.ts +4 -1
- package/cjs/form/Form.js +70 -53
- package/cjs/form/Form.js.map +1 -1
- package/cjs/form/FormContext.js +1 -1
- package/cjs/form/FormItem.js +53 -41
- package/cjs/form/FormItem.js.map +1 -1
- package/cjs/form/formModel.js +26 -26
- package/cjs/form/index.js +46 -43
- package/cjs/form/index.js.map +1 -1
- package/cjs/form/type.js +1 -1
- package/cjs/grid/Col.js +5 -5
- package/cjs/grid/Row.js +7 -7
- package/cjs/grid/index.js +7 -7
- package/cjs/grid/type.js +1 -1
- package/cjs/index.js +60 -57
- package/cjs/index.js.map +1 -1
- package/cjs/input/Input.d.ts +8 -4
- package/cjs/input/Input.js +110 -51
- package/cjs/input/Input.js.map +1 -1
- package/cjs/input/InputGroup.js +3 -3
- package/cjs/input/index.d.ts +1 -1
- package/cjs/input/index.js +5 -9
- package/cjs/input/index.js.map +1 -1
- package/cjs/input/type.d.ts +28 -7
- package/cjs/input/type.js +1 -1
- package/cjs/input-number/InputNumber.js +12 -12
- package/cjs/input-number/StepHandler.js +12 -10
- package/cjs/input-number/StepHandler.js.map +1 -1
- package/cjs/input-number/index.js +12 -12
- package/cjs/input-number/type.js +1 -1
- package/cjs/input-number/utils/numberUtils.js +1 -1
- package/cjs/layout/Aside.js +3 -3
- package/cjs/layout/Layout.js +6 -6
- package/cjs/layout/index.js +6 -6
- package/cjs/layout/type.js +1 -1
- package/cjs/list/List.js +11 -9
- package/cjs/list/List.js.map +1 -1
- package/cjs/list/ListItem.js +1 -1
- package/cjs/list/ListItemMeta.js +1 -1
- package/cjs/list/index.js +11 -9
- package/cjs/list/index.js.map +1 -1
- package/cjs/list/type.js +1 -1
- package/cjs/loading/gradient.js +5 -45
- package/cjs/loading/gradient.js.map +1 -1
- package/cjs/loading/index.js +11 -9
- package/cjs/loading/index.js.map +1 -1
- package/cjs/loading/loading.js +19 -12
- package/cjs/loading/loading.js.map +1 -1
- package/cjs/loading/plugin.js +11 -9
- package/cjs/loading/plugin.js.map +1 -1
- package/cjs/loading/type.js +1 -1
- package/cjs/locale/LocalReceiver.js +2 -2
- package/cjs/locale/type.js +1 -1
- package/cjs/locale/zh_CN.js +2 -2
- package/cjs/locale/zh_CN.js.map +1 -1
- package/cjs/menu/HeadMenu.js +7 -7
- package/cjs/menu/Menu.js +7 -7
- package/cjs/menu/MenuContext.js +1 -1
- package/cjs/menu/MenuGroup.js +1 -1
- package/cjs/menu/MenuItem.js +2 -2
- package/cjs/menu/SubMenu.js +4 -4
- package/cjs/menu/_util/cacularPaddingLeft.js +1 -1
- package/cjs/menu/_util/checkMenuType.js +1 -1
- package/cjs/menu/_util/checkSubMenuActive.js +1 -1
- package/cjs/menu/_util/checkSubMenuChildExpanded.js +3 -3
- package/cjs/menu/_util/checkSubMenuChildrenActive.js +1 -1
- package/cjs/menu/_util/constant.js +1 -1
- package/cjs/menu/_util/getSubMenuChildStyle.js +1 -1
- package/cjs/menu/_util/type.js +1 -1
- package/cjs/menu/hooks/useMenuContext.js +5 -5
- package/cjs/menu/index.js +7 -7
- package/cjs/menu/type.js +1 -1
- package/cjs/message/Message.js +11 -9
- package/cjs/message/Message.js.map +1 -1
- package/cjs/message/MessageClose.js +1 -1
- package/cjs/message/MessageComponent.js +11 -9
- package/cjs/message/MessageComponent.js.map +1 -1
- package/cjs/message/MessageIcon.js +11 -9
- package/cjs/message/MessageIcon.js.map +1 -1
- package/cjs/message/const.js +1 -1
- package/cjs/message/index.js +11 -9
- package/cjs/message/index.js.map +1 -1
- package/cjs/message/type.js +1 -1
- package/cjs/message/useMessageClass.js +1 -1
- package/cjs/notification/Notification.js +3 -3
- package/cjs/notification/NotificationList.js +5 -5
- package/cjs/notification/NotificationPlugin.js +6 -6
- package/cjs/notification/index.js +6 -6
- package/cjs/notification/type.js +1 -1
- package/cjs/pagination/Pagination.js +22 -21
- package/cjs/pagination/Pagination.js.map +1 -1
- package/cjs/pagination/index.js +22 -21
- package/cjs/pagination/index.js.map +1 -1
- package/cjs/pagination/type.js +1 -1
- package/cjs/pagination/validators.js +1 -1
- package/cjs/popconfirm/PopConfirm.js +13 -12
- package/cjs/popconfirm/PopConfirm.js.map +1 -1
- package/cjs/popconfirm/PopContent.js +12 -10
- package/cjs/popconfirm/PopContent.js.map +1 -1
- package/cjs/popconfirm/index.js +13 -12
- package/cjs/popconfirm/index.js.map +1 -1
- package/cjs/popconfirm/type.js +1 -1
- package/cjs/popup/Popup.js +45 -63
- package/cjs/popup/Popup.js.map +1 -1
- package/cjs/popup/Portal.js +1 -1
- package/cjs/popup/hooks/usePopupCssTransition.js +8 -5
- package/cjs/popup/hooks/usePopupCssTransition.js.map +1 -1
- package/cjs/popup/hooks/useTriggerProps.js +1 -1
- package/cjs/popup/index.js +4 -5
- package/cjs/popup/index.js.map +1 -1
- package/cjs/popup/type.js +1 -1
- package/cjs/progress/Progress.js +3 -3
- package/cjs/progress/index.js +3 -3
- package/cjs/progress/type.js +1 -1
- package/cjs/radio/Radio.js +15 -15
- package/cjs/radio/RadioGroup.js +15 -15
- package/cjs/radio/index.js +15 -15
- package/cjs/radio/type.js +1 -1
- package/cjs/rate/type.js +1 -1
- package/cjs/select/base/Option.js +16 -16
- package/cjs/select/base/OptionGroup.js +2 -2
- package/cjs/select/base/PopupContent.js +20 -20
- package/cjs/select/base/Select.js +22 -21
- package/cjs/select/base/Select.js.map +1 -1
- package/cjs/select/index.js +22 -21
- package/cjs/select/index.js.map +1 -1
- package/cjs/select/type.js +1 -1
- package/cjs/select/util/helper.js +18 -18
- package/cjs/skeleton/type.js +1 -1
- package/cjs/slider/Slider.js +12 -13
- package/cjs/slider/Slider.js.map +1 -1
- package/cjs/slider/SliderHandleButton.js +6 -7
- package/cjs/slider/SliderHandleButton.js.map +1 -1
- package/cjs/slider/index.js +12 -13
- package/cjs/slider/index.js.map +1 -1
- package/cjs/slider/type.js +1 -1
- package/cjs/slider/utils/handleNumber.js +1 -1
- package/cjs/steps/StepItem.js +2 -2
- package/cjs/steps/Steps.js +2 -2
- package/cjs/steps/StepsContext.js +1 -1
- package/cjs/steps/index.js +2 -2
- package/cjs/steps/type.js +1 -1
- package/cjs/sticky-tool/type.js +1 -1
- package/cjs/swiper/Swiper.js +4 -4
- package/cjs/swiper/SwiperItem.js +1 -1
- package/cjs/swiper/index.js +4 -4
- package/cjs/swiper/type.js +1 -1
- package/cjs/switch/Switch.js +12 -10
- package/cjs/switch/Switch.js.map +1 -1
- package/cjs/switch/index.js +12 -10
- package/cjs/switch/index.js.map +1 -1
- package/cjs/switch/type.js +1 -1
- package/cjs/table/base/Table.d.ts +2 -1
- package/cjs/table/base/Table.js +32 -28
- package/cjs/table/base/Table.js.map +1 -1
- package/cjs/table/base/TableAsyncLoadingBody.js +13 -11
- package/cjs/table/base/TableAsyncLoadingBody.js.map +1 -1
- package/cjs/table/base/TableBody.js +17 -17
- package/cjs/table/base/TableCell.js +4 -4
- package/cjs/table/base/TableColGroup.js +1 -1
- package/cjs/table/base/TableContext.js +1 -1
- package/cjs/table/base/TableEmptyBody.js +1 -1
- package/cjs/table/base/TableFooter.js +1 -1
- package/cjs/table/base/TableHeader.js +10 -10
- package/cjs/table/base/TableLoadingBody.js +5 -5
- package/cjs/table/base/TableRow.js +17 -17
- package/cjs/table/hooks/useColumns.js +4 -4
- package/cjs/table/index.js +29 -28
- package/cjs/table/index.js.map +1 -1
- package/cjs/table/primary/FilterButton.js +20 -21
- package/cjs/table/primary/FilterButton.js.map +1 -1
- package/cjs/table/primary/SorterButton.js +6 -7
- package/cjs/table/primary/SorterButton.js.map +1 -1
- package/cjs/table/primary/Table.js +29 -28
- package/cjs/table/primary/Table.js.map +1 -1
- package/cjs/table/primary/expand-box.js +2 -2
- package/cjs/table/primary/useExpand.js +17 -17
- package/cjs/table/primary/useFilter.js +20 -21
- package/cjs/table/primary/useFilter.js.map +1 -1
- package/cjs/table/primary/useSelect.js +20 -20
- package/cjs/table/primary/useSorter.js +18 -19
- package/cjs/table/primary/useSorter.js.map +1 -1
- package/cjs/table/type.js +1 -1
- package/cjs/table/util/getRowKeyFromRowKey.js +1 -1
- package/cjs/table/util/index.js +1 -1
- package/cjs/tabs/TabBar.js +4 -4
- package/cjs/tabs/TabNav.js +4 -4
- package/cjs/tabs/TabNavItem.js +1 -1
- package/cjs/tabs/TabPanel.js +1 -1
- package/cjs/tabs/Tabs.js +4 -4
- package/cjs/tabs/index.js +4 -4
- package/cjs/tabs/type.js +1 -1
- package/cjs/tabs/useTabClass.js +1 -1
- package/cjs/tag/CheckTag.js +5 -5
- package/cjs/tag/Tag.js +5 -5
- package/cjs/tag/index.js +5 -5
- package/cjs/tag/type.js +1 -1
- package/cjs/textarea/Textarea.js +14 -14
- package/cjs/textarea/index.js +14 -14
- package/cjs/textarea/type.js +1 -1
- package/cjs/time-picker/InputItems.js +38 -28
- package/cjs/time-picker/InputItems.js.map +1 -1
- package/cjs/time-picker/TimePicker.js +29 -28
- package/cjs/time-picker/TimePicker.js.map +1 -1
- package/cjs/time-picker/TimeRangePicker.js +29 -28
- package/cjs/time-picker/TimeRangePicker.js.map +1 -1
- package/cjs/time-picker/consts.js +4 -4
- package/cjs/time-picker/index.js +29 -28
- package/cjs/time-picker/index.js.map +1 -1
- package/cjs/time-picker/interfaces.js +1 -1
- package/cjs/time-picker/panel/SinglePanel.js +24 -24
- package/cjs/time-picker/panel/TimePickerPanel.js +28 -26
- package/cjs/time-picker/panel/TimePickerPanel.js.map +1 -1
- package/cjs/time-picker/panel/TimePickerRangePanel.js +28 -26
- package/cjs/time-picker/panel/TimePickerRangePanel.js.map +1 -1
- package/cjs/time-picker/type.js +1 -1
- package/cjs/tooltip/Tooltip.js +6 -7
- package/cjs/tooltip/Tooltip.js.map +1 -1
- package/cjs/tooltip/index.js +6 -7
- package/cjs/tooltip/index.js.map +1 -1
- package/cjs/tooltip/type.js +1 -1
- package/cjs/transfer/Transfer.js +39 -38
- package/cjs/transfer/Transfer.js.map +1 -1
- package/cjs/transfer/TransferList.js +34 -33
- package/cjs/transfer/TransferList.js.map +1 -1
- package/cjs/transfer/index.js +39 -38
- package/cjs/transfer/index.js.map +1 -1
- package/cjs/transfer/type.js +1 -1
- package/cjs/transfer/utils.js +17 -17
- package/cjs/tree/Tree.js +48 -45
- package/cjs/tree/Tree.js.map +1 -1
- package/cjs/tree/TreeItem.js +19 -17
- package/cjs/tree/TreeItem.js.map +1 -1
- package/cjs/tree/index.js +48 -45
- package/cjs/tree/index.js.map +1 -1
- package/cjs/tree/interface.js +1 -1
- package/cjs/tree/type.js +1 -1
- package/cjs/tree/useControllable.js +3 -3
- package/cjs/tree/useStore.js +41 -40
- package/cjs/tree/useStore.js.map +1 -1
- package/cjs/tree/useTreeConfig.js +1 -1
- package/cjs/tree-select/TreeSelect.js +49 -47
- package/cjs/tree-select/TreeSelect.js.map +1 -1
- package/cjs/tree-select/TreeSelectInput.js +21 -21
- package/cjs/tree-select/TreeSelectSuffix.js +22 -20
- package/cjs/tree-select/TreeSelectSuffix.js.map +1 -1
- package/cjs/tree-select/TreeSelectTags.js +5 -5
- package/cjs/tree-select/index.js +49 -47
- package/cjs/tree-select/index.js.map +1 -1
- package/cjs/tree-select/type.js +1 -1
- package/cjs/tree-select/useTreeSelectConfig.js +2 -2
- package/cjs/upload/boolean-render.js +1 -1
- package/cjs/upload/dragger.js +13 -11
- package/cjs/upload/dragger.js.map +1 -1
- package/cjs/upload/hooks/useDefaultValue.js +6 -6
- package/cjs/upload/hooks/useSizeLimit.d.ts +2 -0
- package/cjs/upload/hooks/useSizeLimit.js +67 -0
- package/cjs/upload/hooks/useSizeLimit.js.map +1 -0
- package/cjs/upload/index.js +39 -36
- package/cjs/upload/index.js.map +1 -1
- package/cjs/upload/themes/dragger-progress.js +13 -11
- package/cjs/upload/themes/dragger-progress.js.map +1 -1
- package/cjs/upload/themes/flow-list/file-list.js +12 -10
- package/cjs/upload/themes/flow-list/file-list.js.map +1 -1
- package/cjs/upload/themes/flow-list/img-list.js +12 -10
- package/cjs/upload/themes/flow-list/img-list.js.map +1 -1
- package/cjs/upload/themes/flow-list/index.js +13 -11
- package/cjs/upload/themes/flow-list/index.js.map +1 -1
- package/cjs/upload/themes/image-card.js +13 -11
- package/cjs/upload/themes/image-card.js.map +1 -1
- package/cjs/upload/themes/single-file.js +11 -9
- package/cjs/upload/themes/single-file.js.map +1 -1
- package/cjs/upload/tips.js +1 -1
- package/cjs/upload/type.d.ts +3 -2
- package/cjs/upload/type.js +1 -1
- package/cjs/upload/types.js +1 -1
- package/cjs/upload/upload-trigger.js +12 -10
- package/cjs/upload/upload-trigger.js.map +1 -1
- package/cjs/upload/upload.js +58 -44
- package/cjs/upload/upload.js.map +1 -1
- package/cjs/upload/util.js +3 -3
- package/dist/tdesign.css +119 -55
- package/dist/tdesign.css.map +1 -1
- package/dist/tdesign.js +2001 -1696
- package/dist/tdesign.js.map +1 -1
- package/dist/tdesign.min.css +1 -1
- package/dist/tdesign.min.css.map +1 -1
- package/dist/tdesign.min.js +4 -4
- package/dist/tdesign.min.js.map +1 -1
- package/es/_chunks/dep-045d914f.js +26 -0
- package/es/_chunks/dep-045d914f.js.map +1 -0
- package/es/_chunks/dep-07388879.js +222 -0
- package/es/_chunks/dep-07388879.js.map +1 -0
- package/es/_chunks/dep-184b21c3.js +108 -0
- package/es/_chunks/dep-184b21c3.js.map +1 -0
- package/es/_chunks/dep-1ae028f2.js +50 -0
- package/es/_chunks/dep-1ae028f2.js.map +1 -0
- package/es/_chunks/dep-1bcb0f03.js +47 -0
- package/es/_chunks/dep-1bcb0f03.js.map +1 -0
- package/es/_chunks/dep-26028aac.js +34 -0
- package/es/_chunks/dep-26028aac.js.map +1 -0
- package/es/_chunks/dep-27db1e3c.js +49 -0
- package/es/_chunks/dep-27db1e3c.js.map +1 -0
- package/es/_chunks/dep-30477921.js +865 -0
- package/es/_chunks/dep-30477921.js.map +1 -0
- package/es/_chunks/dep-33e85467.js +26 -0
- package/es/_chunks/dep-33e85467.js.map +1 -0
- package/es/_chunks/dep-36ec1fee.js +232 -0
- package/es/_chunks/dep-36ec1fee.js.map +1 -0
- package/es/_chunks/dep-3882ffcd.js +41 -0
- package/es/_chunks/dep-3882ffcd.js.map +1 -0
- package/es/_chunks/dep-3a07fdc5.js +735 -0
- package/es/_chunks/dep-3a07fdc5.js.map +1 -0
- package/es/_chunks/dep-3ef615a3.js +52 -0
- package/es/_chunks/dep-3ef615a3.js.map +1 -0
- package/es/_chunks/dep-42431ee2.js +56 -0
- package/es/_chunks/dep-42431ee2.js.map +1 -0
- package/es/_chunks/dep-42dfd306.js +27 -0
- package/es/_chunks/dep-42dfd306.js.map +1 -0
- package/es/_chunks/dep-442ff40f.js +52 -0
- package/es/_chunks/dep-442ff40f.js.map +1 -0
- package/es/_chunks/dep-44534aa1.js +68 -0
- package/es/_chunks/dep-44534aa1.js.map +1 -0
- package/es/_chunks/dep-45ba95e4.js +93 -0
- package/es/_chunks/dep-45ba95e4.js.map +1 -0
- package/es/_chunks/dep-50f46574.js +48 -0
- package/es/_chunks/dep-50f46574.js.map +1 -0
- package/es/_chunks/dep-5154a629.js +154 -0
- package/es/_chunks/dep-5154a629.js.map +1 -0
- package/es/_chunks/dep-5469de86.js +158 -0
- package/es/_chunks/dep-5469de86.js.map +1 -0
- package/es/_chunks/dep-55ec31d6.js +18 -0
- package/es/_chunks/dep-55ec31d6.js.map +1 -0
- package/es/_chunks/dep-5c879b29.js +200 -0
- package/es/_chunks/dep-5c879b29.js.map +1 -0
- package/es/_chunks/dep-61768ea7.js +45 -0
- package/es/_chunks/dep-61768ea7.js.map +1 -0
- package/es/_chunks/dep-6216481e.js +84 -0
- package/es/_chunks/dep-6216481e.js.map +1 -0
- package/es/_chunks/dep-68236d72.js +954 -0
- package/es/_chunks/dep-68236d72.js.map +1 -0
- package/es/_chunks/dep-71117f38.js +47 -0
- package/es/_chunks/dep-71117f38.js.map +1 -0
- package/es/_chunks/dep-711e796f.js +117 -0
- package/es/_chunks/dep-711e796f.js.map +1 -0
- package/es/_chunks/dep-72ef6cf6.js +23 -0
- package/es/_chunks/dep-72ef6cf6.js.map +1 -0
- package/es/_chunks/dep-7556f79a.js +388 -0
- package/es/_chunks/dep-7556f79a.js.map +1 -0
- package/es/_chunks/dep-8fede92a.js +305 -0
- package/es/_chunks/dep-8fede92a.js.map +1 -0
- package/es/_chunks/dep-9825193d.js +8 -0
- package/es/_chunks/dep-9825193d.js.map +1 -0
- package/es/_chunks/dep-98b17dae.js +75 -0
- package/es/_chunks/dep-98b17dae.js.map +1 -0
- package/es/_chunks/dep-9bf19387.js +567 -0
- package/es/_chunks/dep-9bf19387.js.map +1 -0
- package/es/_chunks/dep-9f46a2fc.js +8 -0
- package/es/_chunks/dep-9f46a2fc.js.map +1 -0
- package/es/_chunks/dep-9f80f9d6.js +129 -0
- package/es/_chunks/dep-9f80f9d6.js.map +1 -0
- package/es/_chunks/dep-a2bc34d5.js +26 -0
- package/es/_chunks/dep-a2bc34d5.js.map +1 -0
- package/es/_chunks/dep-a3ebf465.js +45 -0
- package/es/_chunks/dep-a3ebf465.js.map +1 -0
- package/es/_chunks/dep-a57a3adc.js +26 -0
- package/es/_chunks/dep-a57a3adc.js.map +1 -0
- package/es/_chunks/dep-a57dc5be.js +8 -0
- package/es/_chunks/dep-a57dc5be.js.map +1 -0
- package/es/_chunks/dep-abd9fbed.js +17 -0
- package/es/_chunks/dep-abd9fbed.js.map +1 -0
- package/es/_chunks/dep-ae12755c.js +36 -0
- package/es/_chunks/dep-ae12755c.js.map +1 -0
- package/es/_chunks/dep-b4546e0e.js +27 -0
- package/es/_chunks/dep-b4546e0e.js.map +1 -0
- package/es/_chunks/dep-ba7f3134.js +44 -0
- package/es/_chunks/dep-ba7f3134.js.map +1 -0
- package/es/_chunks/dep-be6500d4.js +274 -0
- package/es/_chunks/dep-be6500d4.js.map +1 -0
- package/es/_chunks/dep-c27cb807.js +197 -0
- package/es/_chunks/dep-c27cb807.js.map +1 -0
- package/es/_chunks/dep-c55cb8a1.js +97 -0
- package/es/_chunks/dep-c55cb8a1.js.map +1 -0
- package/es/_chunks/dep-c611ea38.js +42 -0
- package/es/_chunks/dep-c611ea38.js.map +1 -0
- package/es/_chunks/dep-cbb0c1c0.js +85 -0
- package/es/_chunks/dep-cbb0c1c0.js.map +1 -0
- package/es/_chunks/dep-cdcdc773.js +129 -0
- package/es/_chunks/dep-cdcdc773.js.map +1 -0
- package/es/_chunks/dep-d4c7e673.js +33 -0
- package/es/_chunks/dep-d4c7e673.js.map +1 -0
- package/es/_chunks/dep-e273b26f.js +19 -0
- package/es/_chunks/dep-e273b26f.js.map +1 -0
- package/es/_chunks/dep-ec5da0c1.js +108 -0
- package/es/_chunks/dep-ec5da0c1.js.map +1 -0
- package/es/_chunks/dep-eddcc10b.js +773 -0
- package/es/_chunks/dep-eddcc10b.js.map +1 -0
- package/es/_chunks/dep-f253fe70.js +119 -0
- package/es/_chunks/dep-f253fe70.js.map +1 -0
- package/es/_chunks/dep-f2705322.js +190 -0
- package/es/_chunks/dep-f2705322.js.map +1 -0
- package/es/_chunks/dep-f326b5da.js +42 -0
- package/es/_chunks/dep-f326b5da.js.map +1 -0
- package/es/_chunks/dep-fa30ac54.js +47 -0
- package/es/_chunks/dep-fa30ac54.js.map +1 -0
- package/es/_common/js/common.d.ts +3 -0
- package/es/_common/js/common.js +1 -1
- package/es/_common/js/date-picker/utils.d.ts +87 -0
- package/es/_common/js/date-picker/utils.js +382 -0
- package/es/_common/js/date-picker/utils.js.map +1 -0
- package/es/_common/js/loading/circle-adapter.d.ts +1 -0
- package/es/_common/js/loading/circle-adapter.js +50 -0
- package/es/_common/js/loading/circle-adapter.js.map +1 -0
- package/es/_common/js/log/log.d.ts +3 -0
- package/es/_common/js/log/log.js +1 -1
- package/es/_common/js/log/types.d.ts +8 -0
- package/es/_common/js/log/types.js +1 -1
- package/es/_common/js/tree/tree-node-model.js +29 -28
- package/es/_common/js/tree/tree-node-model.js.map +1 -1
- package/es/_common/js/tree/tree-node.js +32 -31
- package/es/_common/js/tree/tree-node.js.map +1 -1
- package/es/_common/js/tree/tree-store.js +41 -40
- package/es/_common/js/tree/tree-store.js.map +1 -1
- package/es/_common/js/tree/types.js +1 -1
- package/es/_common/js/upload/types.js +1 -1
- package/es/_common/js/upload/xhr.js +1 -1
- package/es/_common/js/utils/set-style.d.ts +8 -0
- package/es/_common/js/utils/set-style.js +15 -0
- package/es/_common/js/utils/set-style.js.map +1 -0
- package/es/_util/callBoth.js +1 -1
- package/es/_util/composeRefs.js +4 -2
- package/es/_util/composeRefs.js.map +1 -1
- package/es/_util/dom.js +8 -8
- package/es/_util/easing.js +1 -1
- package/es/_util/forwardRefWithStatics.js +1 -1
- package/es/_util/getScrollbarWidth.js +1 -1
- package/es/_util/hasScrollBar.js +1 -1
- package/es/_util/helper.js +16 -16
- package/es/_util/injectValue.js +1 -1
- package/es/_util/insertCSS.js +1 -1
- package/es/_util/isCallable.js +1 -1
- package/es/_util/linearGradient.js +2 -2
- package/es/_util/noop.js +1 -1
- package/es/_util/number.js +1 -1
- package/es/_util/setStyle.js +1 -1
- package/es/_util/useClickOutside.js +1 -1
- package/es/_util/useCommonClassName.js +1 -1
- package/es/_util/useConfig.js +1 -1
- package/es/_util/useDefault.js +3 -3
- package/es/_util/useDefaultValue.js +5 -5
- package/es/_util/usePersistFn.js +1 -1
- package/es/_util/usePrevious.js +1 -1
- package/es/_util/useRefAndForward.js +1 -1
- package/es/_util/useRipple.js +1 -1
- package/es/_util/useSetState.js +4 -4
- package/es/_util/useUpdateEffect.js +1 -1
- package/es/addon/Addon.js +3 -3
- package/es/addon/index.js +3 -3
- package/es/affix/Affix.js +14 -14
- package/es/affix/index.js +14 -14
- package/es/affix/style/index.js +1 -1
- package/es/affix/type.js +1 -1
- package/es/alert/Alert.js +5 -5
- package/es/alert/index.js +5 -5
- package/es/alert/style/index.css +2 -0
- package/es/alert/style/index.js +1 -1
- package/es/alert/type.js +1 -1
- package/es/anchor/Anchor.js +26 -25
- package/es/anchor/Anchor.js.map +1 -1
- package/es/anchor/AnchorContext.js +1 -1
- package/es/anchor/AnchorItem.js +2 -2
- package/es/anchor/AnchorTarget.js +13 -12
- package/es/anchor/AnchorTarget.js.map +1 -1
- package/es/anchor/_util/clipboard.js +1 -1
- package/es/anchor/_util/dom.js +1 -1
- package/es/anchor/index.js +26 -25
- package/es/anchor/index.js.map +1 -1
- package/es/anchor/style/index.js +1 -1
- package/es/anchor/type.js +1 -1
- package/es/avatar/AvararGroup.js +6 -7
- package/es/avatar/AvararGroup.js.map +1 -1
- package/es/avatar/Avatar.js +6 -7
- package/es/avatar/Avatar.js.map +1 -1
- package/es/avatar/AvatarContext.js +1 -1
- package/es/avatar/index.js +6 -7
- package/es/avatar/index.js.map +1 -1
- package/es/avatar/style/index.js +1 -1
- package/es/avatar/type.js +1 -1
- package/es/badge/Badge.js +3 -3
- package/es/badge/index.js +3 -3
- package/es/badge/style/index.js +1 -1
- package/es/badge/type.js +1 -1
- package/es/breadcrumb/Breadcrumb.js +3 -3
- package/es/breadcrumb/BreadcrumbContext.js +1 -1
- package/es/breadcrumb/BreadcrumbItem.js +3 -3
- package/es/breadcrumb/BreadcrumbProps.js +1 -1
- package/es/breadcrumb/index.js +3 -3
- package/es/breadcrumb/style/index.js +1 -1
- package/es/breadcrumb/type.js +1 -1
- package/es/button/Button.js +16 -14
- package/es/button/Button.js.map +1 -1
- package/es/button/index.js +14 -12
- package/es/button/index.js.map +1 -1
- package/es/button/style/index.css +2 -2
- package/es/button/style/index.js +1 -1
- package/es/button/type.js +1 -1
- package/es/calendar/Calendar.js +30 -29
- package/es/calendar/Calendar.js.map +1 -1
- package/es/calendar/_util.js +1 -1
- package/es/calendar/index.js +30 -29
- package/es/calendar/index.js.map +1 -1
- package/es/calendar/style/index.js +1 -1
- package/es/calendar/type.js +1 -1
- package/es/card/type.js +1 -1
- package/es/cascader/Cascader.js +51 -49
- package/es/cascader/Cascader.js.map +1 -1
- package/es/cascader/components/InputContent.js +24 -24
- package/es/cascader/components/Item.js +22 -21
- package/es/cascader/components/Item.js.map +1 -1
- package/es/cascader/components/Panel.js +22 -21
- package/es/cascader/components/Panel.js.map +1 -1
- package/es/cascader/components/style/index.js +1 -1
- package/es/cascader/index.js +51 -49
- package/es/cascader/index.js.map +1 -1
- package/es/cascader/interface.js +32 -31
- package/es/cascader/interface.js.map +1 -1
- package/es/cascader/style/index.css +5 -5
- package/es/cascader/style/index.js +1 -1
- package/es/cascader/type.js +1 -1
- package/es/cascader/utils/cascader.js +4 -4
- package/es/cascader/utils/helper.js +2 -2
- package/es/cascader/utils/inputContent.js +21 -21
- package/es/cascader/utils/item.js +4 -4
- package/es/cascader/utils/panel.js +8 -8
- package/es/checkbox/Checkbox.js +18 -18
- package/es/checkbox/CheckboxGroup.js +18 -18
- package/es/checkbox/index.js +18 -18
- package/es/checkbox/style/index.js +1 -1
- package/es/checkbox/type.js +1 -1
- package/es/comment/Comment.js +1 -1
- package/es/comment/index.js +1 -1
- package/es/comment/style/index.js +1 -1
- package/es/comment/type.js +1 -1
- package/es/common/Check.js +16 -16
- package/es/common/FakeArrow.js +2 -2
- package/es/common/Portal.js +4 -4
- package/es/common.js +1 -1
- package/es/config-provider/ConfigContext.js +1 -1
- package/es/config-provider/ConfigProvider.js +3 -3
- package/es/config-provider/index.js +3 -3
- package/es/config-provider/type.js +1 -1
- package/es/date-picker/DatePicker.js +36 -35
- package/es/date-picker/DatePicker.js.map +1 -1
- package/es/date-picker/base/CalendarPresets.js +14 -12
- package/es/date-picker/base/CalendarPresets.js.map +1 -1
- package/es/date-picker/base/Cell.js +2 -2
- package/es/date-picker/base/Header.js +14 -12
- package/es/date-picker/base/Header.js.map +1 -1
- package/es/date-picker/base/Table.js +5 -5
- package/es/date-picker/base/style/index.js +1 -1
- package/es/date-picker/index.js +36 -35
- package/es/date-picker/index.js.map +1 -1
- package/es/date-picker/panel/Date.d.ts +2 -1
- package/es/date-picker/panel/Date.js +31 -29
- package/es/date-picker/panel/Date.js.map +1 -1
- package/es/date-picker/panel/DateRange.js +31 -29
- package/es/date-picker/panel/DateRange.js.map +1 -1
- package/es/date-picker/panel/style/index.js +1 -1
- package/es/date-picker/style/index.css +0 -3
- package/es/date-picker/style/index.js +1 -1
- package/es/date-picker/type.js +1 -1
- package/es/dialog/Dialog.js +14 -12
- package/es/dialog/Dialog.js.map +1 -1
- package/es/dialog/RenderDialog.js +5 -5
- package/es/dialog/index.js +14 -12
- package/es/dialog/index.js.map +1 -1
- package/es/dialog/plugin.js +14 -12
- package/es/dialog/plugin.js.map +1 -1
- package/es/dialog/style/index.js +1 -1
- package/es/dialog/type.d.ts +3 -9
- package/es/dialog/type.js +1 -1
- package/es/divider/Divider.js +17 -8
- package/es/divider/Divider.js.map +1 -1
- package/es/divider/index.js +3 -3
- package/es/divider/style/index.js +1 -1
- package/es/divider/type.js +1 -1
- package/es/drawer/Drawer.js +15 -13
- package/es/drawer/Drawer.js.map +1 -1
- package/es/drawer/DrawerWrapper.js +4 -4
- package/es/drawer/_util.js +1 -1
- package/es/drawer/index.js +14 -12
- package/es/drawer/index.js.map +1 -1
- package/es/drawer/style/index.js +1 -1
- package/es/drawer/type.js +1 -1
- package/es/dropdown/Dropdown.js +40 -41
- package/es/dropdown/Dropdown.js.map +1 -1
- package/es/dropdown/DropdownItem.js +16 -16
- package/es/dropdown/DropdownMenu.js +17 -17
- package/es/dropdown/index.js +40 -41
- package/es/dropdown/index.js.map +1 -1
- package/es/dropdown/style/index.js +1 -1
- package/es/dropdown/type.js +1 -1
- package/es/form/Form.d.ts +4 -1
- package/es/form/Form.js +74 -57
- package/es/form/Form.js.map +1 -1
- package/es/form/FormContext.js +1 -1
- package/es/form/FormItem.js +57 -45
- package/es/form/FormItem.js.map +1 -1
- package/es/form/formModel.js +30 -30
- package/es/form/index.js +50 -47
- package/es/form/index.js.map +1 -1
- package/es/form/style/index.js +1 -1
- package/es/form/type.js +1 -1
- package/es/grid/Col.js +6 -6
- package/es/grid/Row.js +8 -8
- package/es/grid/index.js +8 -8
- package/es/grid/style/index.js +1 -1
- package/es/grid/type.js +1 -1
- package/es/index.js +64 -61
- package/es/index.js.map +1 -1
- package/es/input/Input.d.ts +8 -4
- package/es/input/Input.js +111 -54
- package/es/input/Input.js.map +1 -1
- package/es/input/InputGroup.js +3 -3
- package/es/input/index.d.ts +1 -1
- package/es/input/index.js +5 -11
- package/es/input/index.js.map +1 -1
- package/es/input/style/index.css +24 -6
- package/es/input/style/index.js +1 -1
- package/es/input/type.d.ts +28 -7
- package/es/input/type.js +1 -1
- package/es/input-number/InputNumber.js +14 -15
- package/es/input-number/InputNumber.js.map +1 -1
- package/es/input-number/StepHandler.js +14 -12
- package/es/input-number/StepHandler.js.map +1 -1
- package/es/input-number/index.js +14 -15
- package/es/input-number/index.js.map +1 -1
- package/es/input-number/style/index.css +20 -0
- package/es/input-number/style/index.js +1 -1
- package/es/input-number/type.js +1 -1
- package/es/input-number/utils/numberUtils.js +1 -1
- package/es/layout/Aside.js +3 -3
- package/es/layout/Layout.js +6 -6
- package/es/layout/index.js +6 -6
- package/es/layout/style/index.js +1 -1
- package/es/layout/type.js +1 -1
- package/es/list/List.js +13 -11
- package/es/list/List.js.map +1 -1
- package/es/list/ListItem.js +1 -1
- package/es/list/ListItemMeta.js +1 -1
- package/es/list/index.js +13 -11
- package/es/list/index.js.map +1 -1
- package/es/list/style/index.js +1 -1
- package/es/list/type.js +1 -1
- package/es/loading/gradient.js +6 -46
- package/es/loading/gradient.js.map +1 -1
- package/es/loading/index.js +13 -11
- package/es/loading/index.js.map +1 -1
- package/es/loading/loading.js +21 -14
- package/es/loading/loading.js.map +1 -1
- package/es/loading/plugin.js +13 -11
- package/es/loading/plugin.js.map +1 -1
- package/es/loading/style/index.css +20 -0
- package/es/loading/style/index.js +1 -1
- package/es/loading/type.js +1 -1
- package/es/locale/LocalReceiver.js +3 -3
- package/es/locale/type.js +1 -1
- package/es/locale/zh_CN.js +2 -2
- package/es/locale/zh_CN.js.map +1 -1
- package/es/menu/HeadMenu.js +8 -8
- package/es/menu/Menu.js +8 -8
- package/es/menu/MenuContext.js +1 -1
- package/es/menu/MenuGroup.js +1 -1
- package/es/menu/MenuItem.js +2 -2
- package/es/menu/SubMenu.js +4 -4
- package/es/menu/_util/cacularPaddingLeft.js +1 -1
- package/es/menu/_util/checkMenuType.js +1 -1
- package/es/menu/_util/checkSubMenuActive.js +1 -1
- package/es/menu/_util/checkSubMenuChildExpanded.js +3 -3
- package/es/menu/_util/checkSubMenuChildrenActive.js +1 -1
- package/es/menu/_util/constant.js +1 -1
- package/es/menu/_util/getSubMenuChildStyle.js +1 -1
- package/es/menu/_util/type.js +1 -1
- package/es/menu/hooks/useMenuContext.js +5 -5
- package/es/menu/index.js +8 -8
- package/es/menu/style/index.js +1 -1
- package/es/menu/type.js +1 -1
- package/es/message/Message.js +13 -11
- package/es/message/Message.js.map +1 -1
- package/es/message/MessageClose.js +1 -1
- package/es/message/MessageComponent.js +13 -11
- package/es/message/MessageComponent.js.map +1 -1
- package/es/message/MessageIcon.js +13 -11
- package/es/message/MessageIcon.js.map +1 -1
- package/es/message/const.js +1 -1
- package/es/message/index.js +13 -11
- package/es/message/index.js.map +1 -1
- package/es/message/style/index.js +1 -1
- package/es/message/type.js +1 -1
- package/es/message/useMessageClass.js +1 -1
- package/es/notification/Notification.js +3 -3
- package/es/notification/NotificationList.js +5 -5
- package/es/notification/NotificationPlugin.js +6 -6
- package/es/notification/index.js +6 -6
- package/es/notification/style/index.js +1 -1
- package/es/notification/type.js +1 -1
- package/es/pagination/Pagination.js +26 -25
- package/es/pagination/Pagination.js.map +1 -1
- package/es/pagination/index.js +26 -25
- package/es/pagination/index.js.map +1 -1
- package/es/pagination/style/index.css +0 -10
- package/es/pagination/style/index.js +1 -1
- package/es/pagination/type.js +1 -1
- package/es/pagination/validators.js +1 -1
- package/es/popconfirm/PopConfirm.js +15 -14
- package/es/popconfirm/PopConfirm.js.map +1 -1
- package/es/popconfirm/PopContent.js +14 -12
- package/es/popconfirm/PopContent.js.map +1 -1
- package/es/popconfirm/index.js +15 -14
- package/es/popconfirm/index.js.map +1 -1
- package/es/popconfirm/style/index.js +1 -1
- package/es/popconfirm/type.js +1 -1
- package/es/popup/Popup.js +46 -64
- package/es/popup/Popup.js.map +1 -1
- package/es/popup/Portal.js +1 -1
- package/es/popup/hooks/usePopupCssTransition.js +8 -5
- package/es/popup/hooks/usePopupCssTransition.js.map +1 -1
- package/es/popup/hooks/useTriggerProps.js +1 -1
- package/es/popup/index.js +4 -5
- package/es/popup/index.js.map +1 -1
- package/es/popup/style/index.css +2 -2
- package/es/popup/style/index.js +1 -1
- package/es/popup/type.js +1 -1
- package/es/progress/Progress.js +3 -3
- package/es/progress/index.js +3 -3
- package/es/progress/style/index.js +1 -1
- package/es/progress/type.js +1 -1
- package/es/radio/Radio.js +17 -17
- package/es/radio/RadioGroup.js +17 -17
- package/es/radio/index.js +17 -17
- package/es/radio/style/index.css +10 -10
- package/es/radio/style/index.js +1 -1
- package/es/radio/type.js +1 -1
- package/es/rate/type.js +1 -1
- package/es/select/base/Option.js +20 -20
- package/es/select/base/OptionGroup.js +2 -2
- package/es/select/base/PopupContent.js +24 -24
- package/es/select/base/Select.js +26 -25
- package/es/select/base/Select.js.map +1 -1
- package/es/select/base/style/index.js +1 -1
- package/es/select/index.js +26 -25
- package/es/select/index.js.map +1 -1
- package/es/select/style/index.css +4 -4
- package/es/select/style/index.js +1 -1
- package/es/select/type.js +1 -1
- package/es/select/util/helper.js +22 -22
- package/es/skeleton/type.js +1 -1
- package/es/slider/Slider.js +14 -16
- package/es/slider/Slider.js.map +1 -1
- package/es/slider/SliderHandleButton.js +7 -8
- package/es/slider/SliderHandleButton.js.map +1 -1
- package/es/slider/index.js +14 -16
- package/es/slider/index.js.map +1 -1
- package/es/slider/style/index.js +1 -1
- package/es/slider/type.js +1 -1
- package/es/slider/utils/handleNumber.js +1 -1
- package/es/steps/StepItem.js +2 -2
- package/es/steps/Steps.js +2 -2
- package/es/steps/StepsContext.js +1 -1
- package/es/steps/index.js +2 -2
- package/es/steps/style/index.js +1 -1
- package/es/steps/type.js +1 -1
- package/es/sticky-tool/type.js +1 -1
- package/es/style/index.js +1 -1
- package/es/swiper/Swiper.js +4 -4
- package/es/swiper/SwiperItem.js +1 -1
- package/es/swiper/index.js +4 -4
- package/es/swiper/style/index.js +1 -1
- package/es/swiper/type.js +1 -1
- package/es/switch/Switch.js +14 -12
- package/es/switch/Switch.js.map +1 -1
- package/es/switch/index.js +14 -12
- package/es/switch/index.js.map +1 -1
- package/es/switch/style/index.css +2 -2
- package/es/switch/style/index.js +1 -1
- package/es/switch/type.js +1 -1
- package/es/table/base/Table.d.ts +2 -1
- package/es/table/base/Table.js +36 -32
- package/es/table/base/Table.js.map +1 -1
- package/es/table/base/TableAsyncLoadingBody.js +16 -14
- package/es/table/base/TableAsyncLoadingBody.js.map +1 -1
- package/es/table/base/TableBody.js +21 -21
- package/es/table/base/TableCell.js +4 -4
- package/es/table/base/TableColGroup.js +1 -1
- package/es/table/base/TableContext.js +1 -1
- package/es/table/base/TableEmptyBody.js +1 -1
- package/es/table/base/TableFooter.js +1 -1
- package/es/table/base/TableHeader.js +12 -12
- package/es/table/base/TableLoadingBody.js +7 -7
- package/es/table/base/TableRow.js +21 -21
- package/es/table/base/style/index.js +1 -1
- package/es/table/hooks/useColumns.js +4 -4
- package/es/table/index.js +33 -32
- package/es/table/index.js.map +1 -1
- package/es/table/primary/FilterButton.js +23 -24
- package/es/table/primary/FilterButton.js.map +1 -1
- package/es/table/primary/SorterButton.js +7 -8
- package/es/table/primary/SorterButton.js.map +1 -1
- package/es/table/primary/Table.js +33 -32
- package/es/table/primary/Table.js.map +1 -1
- package/es/table/primary/expand-box.js +3 -3
- package/es/table/primary/style/index.js +1 -1
- package/es/table/primary/useExpand.js +22 -22
- package/es/table/primary/useFilter.js +23 -24
- package/es/table/primary/useFilter.js.map +1 -1
- package/es/table/primary/useSelect.js +23 -23
- package/es/table/primary/useSorter.js +22 -23
- package/es/table/primary/useSorter.js.map +1 -1
- package/es/table/style/index.css +1 -5
- package/es/table/style/index.js +1 -1
- package/es/table/type.js +1 -1
- package/es/table/util/getRowKeyFromRowKey.js +1 -1
- package/es/table/util/index.js +1 -1
- package/es/tabs/TabBar.js +4 -4
- package/es/tabs/TabNav.js +4 -4
- package/es/tabs/TabNavItem.js +1 -1
- package/es/tabs/TabPanel.js +1 -1
- package/es/tabs/Tabs.js +4 -4
- package/es/tabs/index.js +4 -4
- package/es/tabs/style/index.js +1 -1
- package/es/tabs/type.js +1 -1
- package/es/tabs/useTabClass.js +1 -1
- package/es/tag/CheckTag.js +5 -5
- package/es/tag/Tag.js +5 -5
- package/es/tag/index.js +5 -5
- package/es/tag/style/index.js +1 -1
- package/es/tag/type.js +1 -1
- package/es/textarea/Textarea.js +16 -16
- package/es/textarea/index.js +16 -16
- package/es/textarea/style/index.js +1 -1
- package/es/textarea/type.js +1 -1
- package/es/time-picker/InputItems.js +43 -33
- package/es/time-picker/InputItems.js.map +1 -1
- package/es/time-picker/TimePicker.js +33 -32
- package/es/time-picker/TimePicker.js.map +1 -1
- package/es/time-picker/TimeRangePicker.js +33 -32
- package/es/time-picker/TimeRangePicker.js.map +1 -1
- package/es/time-picker/consts.js +5 -5
- package/es/time-picker/index.js +33 -32
- package/es/time-picker/index.js.map +1 -1
- package/es/time-picker/interfaces.js +1 -1
- package/es/time-picker/panel/SinglePanel.js +29 -29
- package/es/time-picker/panel/TimePickerPanel.js +32 -30
- package/es/time-picker/panel/TimePickerPanel.js.map +1 -1
- package/es/time-picker/panel/TimePickerRangePanel.js +32 -30
- package/es/time-picker/panel/TimePickerRangePanel.js.map +1 -1
- package/es/time-picker/panel/style/index.js +1 -1
- package/es/time-picker/style/index.js +1 -1
- package/es/time-picker/type.js +1 -1
- package/es/tooltip/Tooltip.js +7 -8
- package/es/tooltip/Tooltip.js.map +1 -1
- package/es/tooltip/index.js +7 -8
- package/es/tooltip/index.js.map +1 -1
- package/es/tooltip/style/index.js +1 -1
- package/es/tooltip/type.js +1 -1
- package/es/transfer/Transfer.js +43 -42
- package/es/transfer/Transfer.js.map +1 -1
- package/es/transfer/TransferList.js +38 -37
- package/es/transfer/TransferList.js.map +1 -1
- package/es/transfer/index.js +43 -42
- package/es/transfer/index.js.map +1 -1
- package/es/transfer/style/index.js +1 -1
- package/es/transfer/type.js +1 -1
- package/es/transfer/utils.js +21 -21
- package/es/tree/Tree.js +52 -49
- package/es/tree/Tree.js.map +1 -1
- package/es/tree/TreeItem.js +21 -19
- package/es/tree/TreeItem.js.map +1 -1
- package/es/tree/index.js +52 -49
- package/es/tree/index.js.map +1 -1
- package/es/tree/interface.js +1 -1
- package/es/tree/style/index.js +1 -1
- package/es/tree/type.js +1 -1
- package/es/tree/useControllable.js +3 -3
- package/es/tree/useStore.js +45 -44
- package/es/tree/useStore.js.map +1 -1
- package/es/tree/useTreeConfig.js +1 -1
- package/es/tree-select/TreeSelect.js +53 -51
- package/es/tree-select/TreeSelect.js.map +1 -1
- package/es/tree-select/TreeSelectInput.js +25 -25
- package/es/tree-select/TreeSelectSuffix.js +26 -24
- package/es/tree-select/TreeSelectSuffix.js.map +1 -1
- package/es/tree-select/TreeSelectTags.js +5 -5
- package/es/tree-select/index.js +53 -51
- package/es/tree-select/index.js.map +1 -1
- package/es/tree-select/style/index.js +1 -1
- package/es/tree-select/type.js +1 -1
- package/es/tree-select/useTreeSelectConfig.js +2 -2
- package/es/upload/boolean-render.js +1 -1
- package/es/upload/dragger.js +15 -13
- package/es/upload/dragger.js.map +1 -1
- package/es/upload/hooks/useDefaultValue.js +7 -7
- package/es/upload/hooks/useSizeLimit.d.ts +2 -0
- package/es/upload/hooks/useSizeLimit.js +66 -0
- package/es/upload/hooks/useSizeLimit.js.map +1 -0
- package/es/upload/index.js +43 -40
- package/es/upload/index.js.map +1 -1
- package/es/upload/style/index.css +27 -6
- package/es/upload/style/index.js +1 -1
- package/es/upload/themes/dragger-progress.js +15 -13
- package/es/upload/themes/dragger-progress.js.map +1 -1
- package/es/upload/themes/flow-list/file-list.js +14 -12
- package/es/upload/themes/flow-list/file-list.js.map +1 -1
- package/es/upload/themes/flow-list/img-list.js +14 -12
- package/es/upload/themes/flow-list/img-list.js.map +1 -1
- package/es/upload/themes/flow-list/index.js +15 -13
- package/es/upload/themes/flow-list/index.js.map +1 -1
- package/es/upload/themes/flow-list/style/index.js +1 -1
- package/es/upload/themes/image-card.js +15 -13
- package/es/upload/themes/image-card.js.map +1 -1
- package/es/upload/themes/single-file.js +13 -11
- package/es/upload/themes/single-file.js.map +1 -1
- package/es/upload/themes/style/index.js +1 -1
- package/es/upload/tips.js +1 -1
- package/es/upload/type.d.ts +3 -2
- package/es/upload/type.js +1 -1
- package/es/upload/types.js +1 -1
- package/es/upload/upload-trigger.js +14 -12
- package/es/upload/upload-trigger.js.map +1 -1
- package/es/upload/upload.js +62 -48
- package/es/upload/upload.js.map +1 -1
- package/es/upload/util.js +3 -3
- package/esm/_chunks/dep-045d914f.js +26 -0
- package/esm/_chunks/dep-045d914f.js.map +1 -0
- package/esm/_chunks/dep-07388879.js +222 -0
- package/esm/_chunks/dep-07388879.js.map +1 -0
- package/esm/_chunks/dep-184b21c3.js +108 -0
- package/esm/_chunks/dep-184b21c3.js.map +1 -0
- package/esm/_chunks/dep-1ae028f2.js +50 -0
- package/esm/_chunks/dep-1ae028f2.js.map +1 -0
- package/esm/_chunks/dep-1bcb0f03.js +47 -0
- package/esm/_chunks/dep-1bcb0f03.js.map +1 -0
- package/esm/_chunks/dep-26028aac.js +34 -0
- package/esm/_chunks/dep-26028aac.js.map +1 -0
- package/esm/_chunks/dep-27db1e3c.js +49 -0
- package/esm/_chunks/dep-27db1e3c.js.map +1 -0
- package/esm/_chunks/dep-30477921.js +865 -0
- package/esm/_chunks/dep-30477921.js.map +1 -0
- package/esm/_chunks/dep-33e85467.js +26 -0
- package/esm/_chunks/dep-33e85467.js.map +1 -0
- package/esm/_chunks/dep-36ec1fee.js +232 -0
- package/esm/_chunks/dep-36ec1fee.js.map +1 -0
- package/esm/_chunks/dep-3882ffcd.js +41 -0
- package/esm/_chunks/dep-3882ffcd.js.map +1 -0
- package/esm/_chunks/dep-3a07fdc5.js +735 -0
- package/esm/_chunks/dep-3a07fdc5.js.map +1 -0
- package/esm/_chunks/dep-3ef615a3.js +52 -0
- package/esm/_chunks/dep-3ef615a3.js.map +1 -0
- package/esm/_chunks/dep-42431ee2.js +56 -0
- package/esm/_chunks/dep-42431ee2.js.map +1 -0
- package/esm/_chunks/dep-42dfd306.js +27 -0
- package/esm/_chunks/dep-42dfd306.js.map +1 -0
- package/esm/_chunks/dep-442ff40f.js +52 -0
- package/esm/_chunks/dep-442ff40f.js.map +1 -0
- package/esm/_chunks/dep-44534aa1.js +68 -0
- package/esm/_chunks/dep-44534aa1.js.map +1 -0
- package/esm/_chunks/dep-45ba95e4.js +93 -0
- package/esm/_chunks/dep-45ba95e4.js.map +1 -0
- package/esm/_chunks/dep-50f46574.js +48 -0
- package/esm/_chunks/dep-50f46574.js.map +1 -0
- package/esm/_chunks/dep-5154a629.js +154 -0
- package/esm/_chunks/dep-5154a629.js.map +1 -0
- package/esm/_chunks/dep-5469de86.js +158 -0
- package/esm/_chunks/dep-5469de86.js.map +1 -0
- package/esm/_chunks/dep-55ec31d6.js +18 -0
- package/esm/_chunks/dep-55ec31d6.js.map +1 -0
- package/esm/_chunks/dep-5c879b29.js +200 -0
- package/esm/_chunks/dep-5c879b29.js.map +1 -0
- package/esm/_chunks/dep-61768ea7.js +45 -0
- package/esm/_chunks/dep-61768ea7.js.map +1 -0
- package/esm/_chunks/dep-6216481e.js +84 -0
- package/esm/_chunks/dep-6216481e.js.map +1 -0
- package/esm/_chunks/dep-68236d72.js +954 -0
- package/esm/_chunks/dep-68236d72.js.map +1 -0
- package/esm/_chunks/dep-71117f38.js +47 -0
- package/esm/_chunks/dep-71117f38.js.map +1 -0
- package/esm/_chunks/dep-711e796f.js +117 -0
- package/esm/_chunks/dep-711e796f.js.map +1 -0
- package/esm/_chunks/dep-72ef6cf6.js +23 -0
- package/esm/_chunks/dep-72ef6cf6.js.map +1 -0
- package/esm/_chunks/dep-7556f79a.js +388 -0
- package/esm/_chunks/dep-7556f79a.js.map +1 -0
- package/esm/_chunks/dep-8fede92a.js +305 -0
- package/esm/_chunks/dep-8fede92a.js.map +1 -0
- package/esm/_chunks/dep-9825193d.js +8 -0
- package/esm/_chunks/dep-9825193d.js.map +1 -0
- package/esm/_chunks/dep-98b17dae.js +75 -0
- package/esm/_chunks/dep-98b17dae.js.map +1 -0
- package/esm/_chunks/dep-9bf19387.js +567 -0
- package/esm/_chunks/dep-9bf19387.js.map +1 -0
- package/esm/_chunks/dep-9f46a2fc.js +8 -0
- package/esm/_chunks/dep-9f46a2fc.js.map +1 -0
- package/esm/_chunks/dep-9f80f9d6.js +129 -0
- package/esm/_chunks/dep-9f80f9d6.js.map +1 -0
- package/esm/_chunks/dep-a2bc34d5.js +26 -0
- package/esm/_chunks/dep-a2bc34d5.js.map +1 -0
- package/esm/_chunks/dep-a3ebf465.js +45 -0
- package/esm/_chunks/dep-a3ebf465.js.map +1 -0
- package/esm/_chunks/dep-a57a3adc.js +26 -0
- package/esm/_chunks/dep-a57a3adc.js.map +1 -0
- package/esm/_chunks/dep-a57dc5be.js +8 -0
- package/esm/_chunks/dep-a57dc5be.js.map +1 -0
- package/esm/_chunks/dep-abd9fbed.js +17 -0
- package/esm/_chunks/dep-abd9fbed.js.map +1 -0
- package/esm/_chunks/dep-ae12755c.js +36 -0
- package/esm/_chunks/dep-ae12755c.js.map +1 -0
- package/esm/_chunks/dep-b4546e0e.js +27 -0
- package/esm/_chunks/dep-b4546e0e.js.map +1 -0
- package/esm/_chunks/dep-ba7f3134.js +44 -0
- package/esm/_chunks/dep-ba7f3134.js.map +1 -0
- package/esm/_chunks/dep-be6500d4.js +274 -0
- package/esm/_chunks/dep-be6500d4.js.map +1 -0
- package/esm/_chunks/dep-c27cb807.js +197 -0
- package/esm/_chunks/dep-c27cb807.js.map +1 -0
- package/esm/_chunks/dep-c55cb8a1.js +97 -0
- package/esm/_chunks/dep-c55cb8a1.js.map +1 -0
- package/esm/_chunks/dep-c611ea38.js +42 -0
- package/esm/_chunks/dep-c611ea38.js.map +1 -0
- package/esm/_chunks/dep-cbb0c1c0.js +85 -0
- package/esm/_chunks/dep-cbb0c1c0.js.map +1 -0
- package/esm/_chunks/dep-cdcdc773.js +129 -0
- package/esm/_chunks/dep-cdcdc773.js.map +1 -0
- package/esm/_chunks/dep-d4c7e673.js +33 -0
- package/esm/_chunks/dep-d4c7e673.js.map +1 -0
- package/esm/_chunks/dep-e273b26f.js +19 -0
- package/esm/_chunks/dep-e273b26f.js.map +1 -0
- package/esm/_chunks/dep-ec5da0c1.js +108 -0
- package/esm/_chunks/dep-ec5da0c1.js.map +1 -0
- package/esm/_chunks/dep-eddcc10b.js +773 -0
- package/esm/_chunks/dep-eddcc10b.js.map +1 -0
- package/esm/_chunks/dep-f253fe70.js +119 -0
- package/esm/_chunks/dep-f253fe70.js.map +1 -0
- package/esm/_chunks/dep-f2705322.js +190 -0
- package/esm/_chunks/dep-f2705322.js.map +1 -0
- package/esm/_chunks/dep-f326b5da.js +42 -0
- package/esm/_chunks/dep-f326b5da.js.map +1 -0
- package/esm/_chunks/dep-fa30ac54.js +47 -0
- package/esm/_chunks/dep-fa30ac54.js.map +1 -0
- package/esm/_common/js/common.d.ts +3 -0
- package/esm/_common/js/common.js +1 -1
- package/esm/_common/js/date-picker/utils.d.ts +87 -0
- package/esm/_common/js/date-picker/utils.js +382 -0
- package/esm/_common/js/date-picker/utils.js.map +1 -0
- package/esm/_common/js/loading/circle-adapter.d.ts +1 -0
- package/esm/_common/js/loading/circle-adapter.js +50 -0
- package/esm/_common/js/loading/circle-adapter.js.map +1 -0
- package/esm/_common/js/log/log.d.ts +3 -0
- package/esm/_common/js/log/log.js +1 -1
- package/esm/_common/js/log/types.d.ts +8 -0
- package/esm/_common/js/log/types.js +1 -1
- package/esm/_common/js/tree/tree-node-model.js +29 -28
- package/esm/_common/js/tree/tree-node-model.js.map +1 -1
- package/esm/_common/js/tree/tree-node.js +32 -31
- package/esm/_common/js/tree/tree-node.js.map +1 -1
- package/esm/_common/js/tree/tree-store.js +41 -40
- package/esm/_common/js/tree/tree-store.js.map +1 -1
- package/esm/_common/js/tree/types.js +1 -1
- package/esm/_common/js/upload/types.js +1 -1
- package/esm/_common/js/upload/xhr.js +1 -1
- package/esm/_common/js/utils/set-style.d.ts +8 -0
- package/esm/_common/js/utils/set-style.js +15 -0
- package/esm/_common/js/utils/set-style.js.map +1 -0
- package/esm/_common/style/web/_variables.less +1 -1
- package/esm/_common/style/web/components/alert/_index.less +1 -0
- package/esm/_common/style/web/components/button/_index.less +2 -2
- package/esm/_common/style/web/components/cascader/_index.less +3 -3
- package/esm/_common/style/web/components/date-picker/_index.less +0 -6
- package/esm/_common/style/web/components/input/_index.less +28 -4
- package/esm/_common/style/web/components/input/_var.less +5 -0
- package/esm/_common/style/web/components/pagination/_index.less +0 -2
- package/esm/_common/style/web/components/pagination/_mixin.less +0 -1
- package/esm/_common/style/web/components/select/_index.less +2 -2
- package/esm/_common/style/web/components/skeleton/_index.less +105 -0
- package/esm/_common/style/web/components/skeleton/_mixin.less +0 -0
- package/esm/_common/style/web/components/skeleton/_var.less +37 -0
- package/esm/_common/style/web/components/table/_index.less +1 -6
- package/esm/_common/style/web/components/tag-input/_index.less +79 -0
- package/esm/_common/style/web/components/tag-input/_var.less +0 -0
- package/esm/_common/style/web/components/upload/_index.less +4 -0
- package/esm/_common/style/web/components/upload/_var.less +1 -0
- package/esm/_common/style/web/docs.less +3 -0
- package/esm/_common/style/web/utilities/_animation.less +11 -1
- package/esm/_util/callBoth.js +1 -1
- package/esm/_util/composeRefs.js +4 -2
- package/esm/_util/composeRefs.js.map +1 -1
- package/esm/_util/dom.js +8 -8
- package/esm/_util/easing.js +1 -1
- package/esm/_util/forwardRefWithStatics.js +1 -1
- package/esm/_util/getScrollbarWidth.js +1 -1
- package/esm/_util/hasScrollBar.js +1 -1
- package/esm/_util/helper.js +16 -16
- package/esm/_util/injectValue.js +1 -1
- package/esm/_util/insertCSS.js +1 -1
- package/esm/_util/isCallable.js +1 -1
- package/esm/_util/linearGradient.js +2 -2
- package/esm/_util/noop.js +1 -1
- package/esm/_util/number.js +1 -1
- package/esm/_util/setStyle.js +1 -1
- package/esm/_util/useClickOutside.js +1 -1
- package/esm/_util/useCommonClassName.js +1 -1
- package/esm/_util/useConfig.js +1 -1
- package/esm/_util/useDefault.js +3 -3
- package/esm/_util/useDefaultValue.js +5 -5
- package/esm/_util/usePersistFn.js +1 -1
- package/esm/_util/usePrevious.js +1 -1
- package/esm/_util/useRefAndForward.js +1 -1
- package/esm/_util/useRipple.js +1 -1
- package/esm/_util/useSetState.js +4 -4
- package/esm/_util/useUpdateEffect.js +1 -1
- package/esm/addon/Addon.js +3 -3
- package/esm/addon/index.js +3 -3
- package/esm/affix/Affix.js +14 -14
- package/esm/affix/index.js +14 -14
- package/esm/affix/type.js +1 -1
- package/esm/alert/Alert.js +5 -5
- package/esm/alert/index.js +5 -5
- package/esm/alert/type.js +1 -1
- package/esm/anchor/Anchor.js +26 -25
- package/esm/anchor/Anchor.js.map +1 -1
- package/esm/anchor/AnchorContext.js +1 -1
- package/esm/anchor/AnchorItem.js +2 -2
- package/esm/anchor/AnchorTarget.js +13 -12
- package/esm/anchor/AnchorTarget.js.map +1 -1
- package/esm/anchor/_util/clipboard.js +1 -1
- package/esm/anchor/_util/dom.js +1 -1
- package/esm/anchor/index.js +26 -25
- package/esm/anchor/index.js.map +1 -1
- package/esm/anchor/type.js +1 -1
- package/esm/avatar/AvararGroup.js +6 -7
- package/esm/avatar/AvararGroup.js.map +1 -1
- package/esm/avatar/Avatar.js +6 -7
- package/esm/avatar/Avatar.js.map +1 -1
- package/esm/avatar/AvatarContext.js +1 -1
- package/esm/avatar/index.js +6 -7
- package/esm/avatar/index.js.map +1 -1
- package/esm/avatar/type.js +1 -1
- package/esm/badge/Badge.js +3 -3
- package/esm/badge/index.js +3 -3
- package/esm/badge/type.js +1 -1
- package/esm/breadcrumb/Breadcrumb.js +3 -3
- package/esm/breadcrumb/BreadcrumbContext.js +1 -1
- package/esm/breadcrumb/BreadcrumbItem.js +3 -3
- package/esm/breadcrumb/BreadcrumbProps.js +1 -1
- package/esm/breadcrumb/index.js +3 -3
- package/esm/breadcrumb/type.js +1 -1
- package/esm/button/Button.js +16 -14
- package/esm/button/Button.js.map +1 -1
- package/esm/button/index.js +14 -12
- package/esm/button/index.js.map +1 -1
- package/esm/button/type.js +1 -1
- package/esm/calendar/Calendar.js +30 -29
- package/esm/calendar/Calendar.js.map +1 -1
- package/esm/calendar/_util.js +1 -1
- package/esm/calendar/index.js +30 -29
- package/esm/calendar/index.js.map +1 -1
- package/esm/calendar/type.js +1 -1
- package/esm/card/type.js +1 -1
- package/esm/cascader/Cascader.js +51 -49
- package/esm/cascader/Cascader.js.map +1 -1
- package/esm/cascader/components/InputContent.js +24 -24
- package/esm/cascader/components/Item.js +22 -21
- package/esm/cascader/components/Item.js.map +1 -1
- package/esm/cascader/components/Panel.js +22 -21
- package/esm/cascader/components/Panel.js.map +1 -1
- package/esm/cascader/index.js +51 -49
- package/esm/cascader/index.js.map +1 -1
- package/esm/cascader/interface.js +32 -31
- package/esm/cascader/interface.js.map +1 -1
- package/esm/cascader/type.js +1 -1
- package/esm/cascader/utils/cascader.js +4 -4
- package/esm/cascader/utils/helper.js +2 -2
- package/esm/cascader/utils/inputContent.js +21 -21
- package/esm/cascader/utils/item.js +4 -4
- package/esm/cascader/utils/panel.js +8 -8
- package/esm/checkbox/Checkbox.js +18 -18
- package/esm/checkbox/CheckboxGroup.js +18 -18
- package/esm/checkbox/index.js +18 -18
- package/esm/checkbox/type.js +1 -1
- package/esm/comment/Comment.js +1 -1
- package/esm/comment/index.js +1 -1
- package/esm/comment/type.js +1 -1
- package/esm/common/Check.js +16 -16
- package/esm/common/FakeArrow.js +2 -2
- package/esm/common/Portal.js +4 -4
- package/esm/common.js +1 -1
- package/esm/config-provider/ConfigContext.js +1 -1
- package/esm/config-provider/ConfigProvider.js +3 -3
- package/esm/config-provider/index.js +3 -3
- package/esm/config-provider/type.js +1 -1
- package/esm/date-picker/DatePicker.js +36 -35
- package/esm/date-picker/DatePicker.js.map +1 -1
- package/esm/date-picker/base/CalendarPresets.js +14 -12
- package/esm/date-picker/base/CalendarPresets.js.map +1 -1
- package/esm/date-picker/base/Cell.js +2 -2
- package/esm/date-picker/base/Header.js +14 -12
- package/esm/date-picker/base/Header.js.map +1 -1
- package/esm/date-picker/base/Table.js +5 -5
- package/esm/date-picker/index.js +36 -35
- package/esm/date-picker/index.js.map +1 -1
- package/esm/date-picker/panel/Date.d.ts +2 -1
- package/esm/date-picker/panel/Date.js +31 -29
- package/esm/date-picker/panel/Date.js.map +1 -1
- package/esm/date-picker/panel/DateRange.js +31 -29
- package/esm/date-picker/panel/DateRange.js.map +1 -1
- package/esm/date-picker/type.js +1 -1
- package/esm/dialog/Dialog.js +14 -12
- package/esm/dialog/Dialog.js.map +1 -1
- package/esm/dialog/RenderDialog.js +5 -5
- package/esm/dialog/index.js +14 -12
- package/esm/dialog/index.js.map +1 -1
- package/esm/dialog/plugin.js +14 -12
- package/esm/dialog/plugin.js.map +1 -1
- package/esm/dialog/type.d.ts +3 -9
- package/esm/dialog/type.js +1 -1
- package/esm/divider/Divider.js +17 -8
- package/esm/divider/Divider.js.map +1 -1
- package/esm/divider/index.js +3 -3
- package/esm/divider/type.js +1 -1
- package/esm/drawer/Drawer.js +15 -13
- package/esm/drawer/Drawer.js.map +1 -1
- package/esm/drawer/DrawerWrapper.js +4 -4
- package/esm/drawer/_util.js +1 -1
- package/esm/drawer/index.js +14 -12
- package/esm/drawer/index.js.map +1 -1
- package/esm/drawer/type.js +1 -1
- package/esm/dropdown/Dropdown.js +40 -41
- package/esm/dropdown/Dropdown.js.map +1 -1
- package/esm/dropdown/DropdownItem.js +16 -16
- package/esm/dropdown/DropdownMenu.js +17 -17
- package/esm/dropdown/index.js +40 -41
- package/esm/dropdown/index.js.map +1 -1
- package/esm/dropdown/type.js +1 -1
- package/esm/form/Form.d.ts +4 -1
- package/esm/form/Form.js +74 -57
- package/esm/form/Form.js.map +1 -1
- package/esm/form/FormContext.js +1 -1
- package/esm/form/FormItem.js +57 -45
- package/esm/form/FormItem.js.map +1 -1
- package/esm/form/formModel.js +30 -30
- package/esm/form/index.js +50 -47
- package/esm/form/index.js.map +1 -1
- package/esm/form/type.js +1 -1
- package/esm/grid/Col.js +6 -6
- package/esm/grid/Row.js +8 -8
- package/esm/grid/index.js +8 -8
- package/esm/grid/type.js +1 -1
- package/esm/index.js +64 -61
- package/esm/index.js.map +1 -1
- package/esm/input/Input.d.ts +8 -4
- package/esm/input/Input.js +111 -54
- package/esm/input/Input.js.map +1 -1
- package/esm/input/InputGroup.js +3 -3
- package/esm/input/index.d.ts +1 -1
- package/esm/input/index.js +5 -11
- package/esm/input/index.js.map +1 -1
- package/esm/input/type.d.ts +28 -7
- package/esm/input/type.js +1 -1
- package/esm/input-number/InputNumber.js +14 -15
- package/esm/input-number/InputNumber.js.map +1 -1
- package/esm/input-number/StepHandler.js +14 -12
- package/esm/input-number/StepHandler.js.map +1 -1
- package/esm/input-number/index.js +14 -15
- package/esm/input-number/index.js.map +1 -1
- package/esm/input-number/type.js +1 -1
- package/esm/input-number/utils/numberUtils.js +1 -1
- package/esm/layout/Aside.js +3 -3
- package/esm/layout/Layout.js +6 -6
- package/esm/layout/index.js +6 -6
- package/esm/layout/type.js +1 -1
- package/esm/list/List.js +13 -11
- package/esm/list/List.js.map +1 -1
- package/esm/list/ListItem.js +1 -1
- package/esm/list/ListItemMeta.js +1 -1
- package/esm/list/index.js +13 -11
- package/esm/list/index.js.map +1 -1
- package/esm/list/type.js +1 -1
- package/esm/loading/gradient.js +6 -46
- package/esm/loading/gradient.js.map +1 -1
- package/esm/loading/index.js +13 -11
- package/esm/loading/index.js.map +1 -1
- package/esm/loading/loading.js +21 -14
- package/esm/loading/loading.js.map +1 -1
- package/esm/loading/plugin.js +13 -11
- package/esm/loading/plugin.js.map +1 -1
- package/esm/loading/type.js +1 -1
- package/esm/locale/LocalReceiver.js +3 -3
- package/esm/locale/type.js +1 -1
- package/esm/locale/zh_CN.js +2 -2
- package/esm/locale/zh_CN.js.map +1 -1
- package/esm/menu/HeadMenu.js +8 -8
- package/esm/menu/Menu.js +8 -8
- package/esm/menu/MenuContext.js +1 -1
- package/esm/menu/MenuGroup.js +1 -1
- package/esm/menu/MenuItem.js +2 -2
- package/esm/menu/SubMenu.js +4 -4
- package/esm/menu/_util/cacularPaddingLeft.js +1 -1
- package/esm/menu/_util/checkMenuType.js +1 -1
- package/esm/menu/_util/checkSubMenuActive.js +1 -1
- package/esm/menu/_util/checkSubMenuChildExpanded.js +3 -3
- package/esm/menu/_util/checkSubMenuChildrenActive.js +1 -1
- package/esm/menu/_util/constant.js +1 -1
- package/esm/menu/_util/getSubMenuChildStyle.js +1 -1
- package/esm/menu/_util/type.js +1 -1
- package/esm/menu/hooks/useMenuContext.js +5 -5
- package/esm/menu/index.js +8 -8
- package/esm/menu/type.js +1 -1
- package/esm/message/Message.js +13 -11
- package/esm/message/Message.js.map +1 -1
- package/esm/message/MessageClose.js +1 -1
- package/esm/message/MessageComponent.js +13 -11
- package/esm/message/MessageComponent.js.map +1 -1
- package/esm/message/MessageIcon.js +13 -11
- package/esm/message/MessageIcon.js.map +1 -1
- package/esm/message/const.js +1 -1
- package/esm/message/index.js +13 -11
- package/esm/message/index.js.map +1 -1
- package/esm/message/type.js +1 -1
- package/esm/message/useMessageClass.js +1 -1
- package/esm/notification/Notification.js +3 -3
- package/esm/notification/NotificationList.js +5 -5
- package/esm/notification/NotificationPlugin.js +6 -6
- package/esm/notification/index.js +6 -6
- package/esm/notification/type.js +1 -1
- package/esm/pagination/Pagination.js +26 -25
- package/esm/pagination/Pagination.js.map +1 -1
- package/esm/pagination/index.js +26 -25
- package/esm/pagination/index.js.map +1 -1
- package/esm/pagination/type.js +1 -1
- package/esm/pagination/validators.js +1 -1
- package/esm/popconfirm/PopConfirm.js +15 -14
- package/esm/popconfirm/PopConfirm.js.map +1 -1
- package/esm/popconfirm/PopContent.js +14 -12
- package/esm/popconfirm/PopContent.js.map +1 -1
- package/esm/popconfirm/index.js +15 -14
- package/esm/popconfirm/index.js.map +1 -1
- package/esm/popconfirm/type.js +1 -1
- package/esm/popup/Popup.js +46 -64
- package/esm/popup/Popup.js.map +1 -1
- package/esm/popup/Portal.js +1 -1
- package/esm/popup/hooks/usePopupCssTransition.js +8 -5
- package/esm/popup/hooks/usePopupCssTransition.js.map +1 -1
- package/esm/popup/hooks/useTriggerProps.js +1 -1
- package/esm/popup/index.js +4 -5
- package/esm/popup/index.js.map +1 -1
- package/esm/popup/type.js +1 -1
- package/esm/progress/Progress.js +3 -3
- package/esm/progress/index.js +3 -3
- package/esm/progress/type.js +1 -1
- package/esm/radio/Radio.js +17 -17
- package/esm/radio/RadioGroup.js +17 -17
- package/esm/radio/index.js +17 -17
- package/esm/radio/type.js +1 -1
- package/esm/rate/type.js +1 -1
- package/esm/select/base/Option.js +20 -20
- package/esm/select/base/OptionGroup.js +2 -2
- package/esm/select/base/PopupContent.js +24 -24
- package/esm/select/base/Select.js +26 -25
- package/esm/select/base/Select.js.map +1 -1
- package/esm/select/index.js +26 -25
- package/esm/select/index.js.map +1 -1
- package/esm/select/type.js +1 -1
- package/esm/select/util/helper.js +22 -22
- package/esm/skeleton/type.js +1 -1
- package/esm/slider/Slider.js +14 -16
- package/esm/slider/Slider.js.map +1 -1
- package/esm/slider/SliderHandleButton.js +7 -8
- package/esm/slider/SliderHandleButton.js.map +1 -1
- package/esm/slider/index.js +14 -16
- package/esm/slider/index.js.map +1 -1
- package/esm/slider/type.js +1 -1
- package/esm/slider/utils/handleNumber.js +1 -1
- package/esm/steps/StepItem.js +2 -2
- package/esm/steps/Steps.js +2 -2
- package/esm/steps/StepsContext.js +1 -1
- package/esm/steps/index.js +2 -2
- package/esm/steps/type.js +1 -1
- package/esm/sticky-tool/type.js +1 -1
- package/esm/swiper/Swiper.js +4 -4
- package/esm/swiper/SwiperItem.js +1 -1
- package/esm/swiper/index.js +4 -4
- package/esm/swiper/type.js +1 -1
- package/esm/switch/Switch.js +14 -12
- package/esm/switch/Switch.js.map +1 -1
- package/esm/switch/index.js +14 -12
- package/esm/switch/index.js.map +1 -1
- package/esm/switch/type.js +1 -1
- package/esm/table/base/Table.d.ts +2 -1
- package/esm/table/base/Table.js +36 -32
- package/esm/table/base/Table.js.map +1 -1
- package/esm/table/base/TableAsyncLoadingBody.js +16 -14
- package/esm/table/base/TableAsyncLoadingBody.js.map +1 -1
- package/esm/table/base/TableBody.js +21 -21
- package/esm/table/base/TableCell.js +4 -4
- package/esm/table/base/TableColGroup.js +1 -1
- package/esm/table/base/TableContext.js +1 -1
- package/esm/table/base/TableEmptyBody.js +1 -1
- package/esm/table/base/TableFooter.js +1 -1
- package/esm/table/base/TableHeader.js +12 -12
- package/esm/table/base/TableLoadingBody.js +7 -7
- package/esm/table/base/TableRow.js +21 -21
- package/esm/table/hooks/useColumns.js +4 -4
- package/esm/table/index.js +33 -32
- package/esm/table/index.js.map +1 -1
- package/esm/table/primary/FilterButton.js +23 -24
- package/esm/table/primary/FilterButton.js.map +1 -1
- package/esm/table/primary/SorterButton.js +7 -8
- package/esm/table/primary/SorterButton.js.map +1 -1
- package/esm/table/primary/Table.js +33 -32
- package/esm/table/primary/Table.js.map +1 -1
- package/esm/table/primary/expand-box.js +3 -3
- package/esm/table/primary/useExpand.js +22 -22
- package/esm/table/primary/useFilter.js +23 -24
- package/esm/table/primary/useFilter.js.map +1 -1
- package/esm/table/primary/useSelect.js +23 -23
- package/esm/table/primary/useSorter.js +22 -23
- package/esm/table/primary/useSorter.js.map +1 -1
- package/esm/table/type.js +1 -1
- package/esm/table/util/getRowKeyFromRowKey.js +1 -1
- package/esm/table/util/index.js +1 -1
- package/esm/tabs/TabBar.js +4 -4
- package/esm/tabs/TabNav.js +4 -4
- package/esm/tabs/TabNavItem.js +1 -1
- package/esm/tabs/TabPanel.js +1 -1
- package/esm/tabs/Tabs.js +4 -4
- package/esm/tabs/index.js +4 -4
- package/esm/tabs/type.js +1 -1
- package/esm/tabs/useTabClass.js +1 -1
- package/esm/tag/CheckTag.js +5 -5
- package/esm/tag/Tag.js +5 -5
- package/esm/tag/index.js +5 -5
- package/esm/tag/type.js +1 -1
- package/esm/textarea/Textarea.js +16 -16
- package/esm/textarea/index.js +16 -16
- package/esm/textarea/type.js +1 -1
- package/esm/time-picker/InputItems.js +43 -33
- package/esm/time-picker/InputItems.js.map +1 -1
- package/esm/time-picker/TimePicker.js +33 -32
- package/esm/time-picker/TimePicker.js.map +1 -1
- package/esm/time-picker/TimeRangePicker.js +33 -32
- package/esm/time-picker/TimeRangePicker.js.map +1 -1
- package/esm/time-picker/consts.js +5 -5
- package/esm/time-picker/index.js +33 -32
- package/esm/time-picker/index.js.map +1 -1
- package/esm/time-picker/interfaces.js +1 -1
- package/esm/time-picker/panel/SinglePanel.js +29 -29
- package/esm/time-picker/panel/TimePickerPanel.js +32 -30
- package/esm/time-picker/panel/TimePickerPanel.js.map +1 -1
- package/esm/time-picker/panel/TimePickerRangePanel.js +32 -30
- package/esm/time-picker/panel/TimePickerRangePanel.js.map +1 -1
- package/esm/time-picker/type.js +1 -1
- package/esm/tooltip/Tooltip.js +7 -8
- package/esm/tooltip/Tooltip.js.map +1 -1
- package/esm/tooltip/index.js +7 -8
- package/esm/tooltip/index.js.map +1 -1
- package/esm/tooltip/type.js +1 -1
- package/esm/transfer/Transfer.js +43 -42
- package/esm/transfer/Transfer.js.map +1 -1
- package/esm/transfer/TransferList.js +38 -37
- package/esm/transfer/TransferList.js.map +1 -1
- package/esm/transfer/index.js +43 -42
- package/esm/transfer/index.js.map +1 -1
- package/esm/transfer/type.js +1 -1
- package/esm/transfer/utils.js +21 -21
- package/esm/tree/Tree.js +52 -49
- package/esm/tree/Tree.js.map +1 -1
- package/esm/tree/TreeItem.js +21 -19
- package/esm/tree/TreeItem.js.map +1 -1
- package/esm/tree/index.js +52 -49
- package/esm/tree/index.js.map +1 -1
- package/esm/tree/interface.js +1 -1
- package/esm/tree/type.js +1 -1
- package/esm/tree/useControllable.js +3 -3
- package/esm/tree/useStore.js +45 -44
- package/esm/tree/useStore.js.map +1 -1
- package/esm/tree/useTreeConfig.js +1 -1
- package/esm/tree-select/TreeSelect.js +53 -51
- package/esm/tree-select/TreeSelect.js.map +1 -1
- package/esm/tree-select/TreeSelectInput.js +25 -25
- package/esm/tree-select/TreeSelectSuffix.js +26 -24
- package/esm/tree-select/TreeSelectSuffix.js.map +1 -1
- package/esm/tree-select/TreeSelectTags.js +5 -5
- package/esm/tree-select/index.js +53 -51
- package/esm/tree-select/index.js.map +1 -1
- package/esm/tree-select/type.js +1 -1
- package/esm/tree-select/useTreeSelectConfig.js +2 -2
- package/esm/upload/boolean-render.js +1 -1
- package/esm/upload/dragger.js +15 -13
- package/esm/upload/dragger.js.map +1 -1
- package/esm/upload/hooks/useDefaultValue.js +7 -7
- package/esm/upload/hooks/useSizeLimit.d.ts +2 -0
- package/esm/upload/hooks/useSizeLimit.js +66 -0
- package/esm/upload/hooks/useSizeLimit.js.map +1 -0
- package/esm/upload/index.js +43 -40
- package/esm/upload/index.js.map +1 -1
- package/esm/upload/themes/dragger-progress.js +15 -13
- package/esm/upload/themes/dragger-progress.js.map +1 -1
- package/esm/upload/themes/flow-list/file-list.js +14 -12
- package/esm/upload/themes/flow-list/file-list.js.map +1 -1
- package/esm/upload/themes/flow-list/img-list.js +14 -12
- package/esm/upload/themes/flow-list/img-list.js.map +1 -1
- package/esm/upload/themes/flow-list/index.js +15 -13
- package/esm/upload/themes/flow-list/index.js.map +1 -1
- package/esm/upload/themes/image-card.js +15 -13
- package/esm/upload/themes/image-card.js.map +1 -1
- package/esm/upload/themes/single-file.js +13 -11
- package/esm/upload/themes/single-file.js.map +1 -1
- package/esm/upload/tips.js +1 -1
- package/esm/upload/type.d.ts +3 -2
- package/esm/upload/type.js +1 -1
- package/esm/upload/types.js +1 -1
- package/esm/upload/upload-trigger.js +14 -12
- package/esm/upload/upload-trigger.js.map +1 -1
- package/esm/upload/upload.js +62 -48
- package/esm/upload/upload.js.map +1 -1
- package/esm/upload/util.js +3 -3
- package/lib/_chunks/dep-00c682f2.js +67 -0
- package/lib/_chunks/dep-00c682f2.js.map +1 -0
- package/lib/_chunks/dep-0532d795.js +302 -0
- package/lib/_chunks/dep-0532d795.js.map +1 -0
- package/lib/_chunks/dep-073cc01e.js +566 -0
- package/lib/_chunks/dep-073cc01e.js.map +1 -0
- package/lib/_chunks/dep-0e93f995.js +116 -0
- package/lib/_chunks/dep-0e93f995.js.map +1 -0
- package/lib/_chunks/dep-106adff6.js +16 -0
- package/lib/_chunks/dep-106adff6.js.map +1 -0
- package/lib/_chunks/dep-17da32ea.js +155 -0
- package/lib/_chunks/dep-17da32ea.js.map +1 -0
- package/lib/_chunks/dep-1bdb91ee.js +73 -0
- package/lib/_chunks/dep-1bdb91ee.js.map +1 -0
- package/lib/_chunks/dep-2670b458.js +153 -0
- package/lib/_chunks/dep-2670b458.js.map +1 -0
- package/lib/_chunks/dep-2c954aac.js +42 -0
- package/lib/_chunks/dep-2c954aac.js.map +1 -0
- package/lib/_chunks/dep-314993f3.js +24 -0
- package/lib/_chunks/dep-314993f3.js.map +1 -0
- package/lib/_chunks/dep-33e85467.js +26 -0
- package/lib/_chunks/dep-33e85467.js.map +1 -0
- package/lib/_chunks/dep-347cfd5e.js +386 -0
- package/lib/_chunks/dep-347cfd5e.js.map +1 -0
- package/lib/_chunks/dep-3720660d.js +25 -0
- package/lib/_chunks/dep-3720660d.js.map +1 -0
- package/lib/_chunks/dep-393a231f.js +860 -0
- package/lib/_chunks/dep-393a231f.js.map +1 -0
- package/lib/_chunks/dep-3b234d38.js +733 -0
- package/lib/_chunks/dep-3b234d38.js.map +1 -0
- package/lib/_chunks/dep-3c713383.js +106 -0
- package/lib/_chunks/dep-3c713383.js.map +1 -0
- package/lib/_chunks/dep-3f6bcf45.js +18 -0
- package/lib/_chunks/dep-3f6bcf45.js.map +1 -0
- package/lib/_chunks/dep-42dfd306.js +27 -0
- package/lib/_chunks/dep-42dfd306.js.map +1 -0
- package/lib/_chunks/dep-442ff40f.js +52 -0
- package/lib/_chunks/dep-442ff40f.js.map +1 -0
- package/lib/_chunks/dep-44e9b93c.js +92 -0
- package/lib/_chunks/dep-44e9b93c.js.map +1 -0
- package/lib/_chunks/dep-5496d5fc.js +24 -0
- package/lib/_chunks/dep-5496d5fc.js.map +1 -0
- package/lib/_chunks/dep-5588acf9.js +83 -0
- package/lib/_chunks/dep-5588acf9.js.map +1 -0
- package/lib/_chunks/dep-55ec31d6.js +18 -0
- package/lib/_chunks/dep-55ec31d6.js.map +1 -0
- package/lib/_chunks/dep-566d4902.js +34 -0
- package/lib/_chunks/dep-566d4902.js.map +1 -0
- package/lib/_chunks/dep-595a775f.js +41 -0
- package/lib/_chunks/dep-595a775f.js.map +1 -0
- package/lib/_chunks/dep-644def38.js +45 -0
- package/lib/_chunks/dep-644def38.js.map +1 -0
- package/lib/_chunks/dep-6609d273.js +95 -0
- package/lib/_chunks/dep-6609d273.js.map +1 -0
- package/lib/_chunks/dep-72ef6cf6.js +23 -0
- package/lib/_chunks/dep-72ef6cf6.js.map +1 -0
- package/lib/_chunks/dep-76ac4ad1.js +33 -0
- package/lib/_chunks/dep-76ac4ad1.js.map +1 -0
- package/lib/_chunks/dep-78bdf5e4.js +769 -0
- package/lib/_chunks/dep-78bdf5e4.js.map +1 -0
- package/lib/_chunks/dep-7cc7e3b1.js +43 -0
- package/lib/_chunks/dep-7cc7e3b1.js.map +1 -0
- package/lib/_chunks/dep-7dfff374.js +189 -0
- package/lib/_chunks/dep-7dfff374.js.map +1 -0
- package/lib/_chunks/dep-9779f7b5.js +54 -0
- package/lib/_chunks/dep-9779f7b5.js.map +1 -0
- package/lib/_chunks/dep-9f75cf86.js +47 -0
- package/lib/_chunks/dep-9f75cf86.js.map +1 -0
- package/lib/_chunks/dep-a20bc341.js +273 -0
- package/lib/_chunks/dep-a20bc341.js.map +1 -0
- package/lib/_chunks/dep-a2bc34d5.js +26 -0
- package/lib/_chunks/dep-a2bc34d5.js.map +1 -0
- package/lib/_chunks/dep-ab2216ba.js +221 -0
- package/lib/_chunks/dep-ab2216ba.js.map +1 -0
- package/lib/_chunks/dep-ad63776f.js +134 -0
- package/lib/_chunks/dep-ad63776f.js.map +1 -0
- package/lib/_chunks/dep-b05d4541.js +50 -0
- package/lib/_chunks/dep-b05d4541.js.map +1 -0
- package/lib/_chunks/dep-befa6559.js +45 -0
- package/lib/_chunks/dep-befa6559.js.map +1 -0
- package/lib/_chunks/dep-c0c0ba5e.js +128 -0
- package/lib/_chunks/dep-c0c0ba5e.js.map +1 -0
- package/lib/_chunks/dep-c0e4122f.js +84 -0
- package/lib/_chunks/dep-c0e4122f.js.map +1 -0
- package/lib/_chunks/dep-c1730598.js +196 -0
- package/lib/_chunks/dep-c1730598.js.map +1 -0
- package/lib/_chunks/dep-c611ea38.js +42 -0
- package/lib/_chunks/dep-c611ea38.js.map +1 -0
- package/lib/_chunks/dep-c87bcb14.js +953 -0
- package/lib/_chunks/dep-c87bcb14.js.map +1 -0
- package/lib/_chunks/dep-cb3cccda.js +199 -0
- package/lib/_chunks/dep-cb3cccda.js.map +1 -0
- package/lib/_chunks/dep-cfb40ae9.js +230 -0
- package/lib/_chunks/dep-cfb40ae9.js.map +1 -0
- package/lib/_chunks/dep-db274e18.js +106 -0
- package/lib/_chunks/dep-db274e18.js.map +1 -0
- package/lib/_chunks/dep-e09b37eb.js +44 -0
- package/lib/_chunks/dep-e09b37eb.js.map +1 -0
- package/lib/_chunks/dep-e4b59541.js +49 -0
- package/lib/_chunks/dep-e4b59541.js.map +1 -0
- package/lib/_chunks/dep-e71d0ba4.js +45 -0
- package/lib/_chunks/dep-e71d0ba4.js.map +1 -0
- package/lib/_chunks/dep-e7d98398.js +117 -0
- package/lib/_chunks/dep-e7d98398.js.map +1 -0
- package/lib/_chunks/dep-f4f551a6.js +45 -0
- package/lib/_chunks/dep-f4f551a6.js.map +1 -0
- package/lib/_chunks/dep-fa7917fc.js +32 -0
- package/lib/_chunks/dep-fa7917fc.js.map +1 -0
- package/lib/_common/js/common.d.ts +3 -0
- package/lib/_common/js/common.js +1 -1
- package/lib/_common/js/date-picker/utils.d.ts +87 -0
- package/lib/_common/js/date-picker/utils.js +379 -0
- package/lib/_common/js/date-picker/utils.js.map +1 -0
- package/lib/_common/js/loading/circle-adapter.d.ts +1 -0
- package/lib/_common/js/loading/circle-adapter.js +50 -0
- package/lib/_common/js/loading/circle-adapter.js.map +1 -0
- package/lib/_common/js/log/log.d.ts +3 -0
- package/lib/_common/js/log/log.js +1 -1
- package/lib/_common/js/log/types.d.ts +8 -0
- package/lib/_common/js/log/types.js +1 -1
- package/lib/_common/js/tree/tree-node-model.js +25 -24
- package/lib/_common/js/tree/tree-node-model.js.map +1 -1
- package/lib/_common/js/tree/tree-node.js +28 -27
- package/lib/_common/js/tree/tree-node.js.map +1 -1
- package/lib/_common/js/tree/tree-store.js +37 -36
- package/lib/_common/js/tree/tree-store.js.map +1 -1
- package/lib/_common/js/tree/types.js +1 -1
- package/lib/_common/js/upload/types.js +1 -1
- package/lib/_common/js/upload/xhr.js +1 -1
- package/lib/_common/js/utils/set-style.d.ts +8 -0
- package/lib/_common/js/utils/set-style.js +15 -0
- package/lib/_common/js/utils/set-style.js.map +1 -0
- package/lib/_util/callBoth.js +1 -1
- package/lib/_util/composeRefs.js +4 -2
- package/lib/_util/composeRefs.js.map +1 -1
- package/lib/_util/dom.js +6 -6
- package/lib/_util/easing.js +1 -1
- package/lib/_util/forwardRefWithStatics.js +1 -1
- package/lib/_util/getScrollbarWidth.js +1 -1
- package/lib/_util/hasScrollBar.js +1 -1
- package/lib/_util/helper.js +14 -14
- package/lib/_util/injectValue.js +1 -1
- package/lib/_util/insertCSS.js +1 -1
- package/lib/_util/isCallable.js +1 -1
- package/lib/_util/linearGradient.js +2 -2
- package/lib/_util/noop.js +1 -1
- package/lib/_util/number.js +1 -1
- package/lib/_util/setStyle.js +1 -1
- package/lib/_util/useClickOutside.js +1 -1
- package/lib/_util/useCommonClassName.js +1 -1
- package/lib/_util/useConfig.js +1 -1
- package/lib/_util/useDefault.js +3 -3
- package/lib/_util/useDefaultValue.js +5 -5
- package/lib/_util/usePersistFn.js +1 -1
- package/lib/_util/usePrevious.js +1 -1
- package/lib/_util/useRefAndForward.js +1 -1
- package/lib/_util/useRipple.js +1 -1
- package/lib/_util/useSetState.js +4 -4
- package/lib/_util/useUpdateEffect.js +1 -1
- package/lib/addon/Addon.js +3 -3
- package/lib/addon/index.js +3 -3
- package/lib/affix/Affix.js +11 -11
- package/lib/affix/index.js +11 -11
- package/lib/affix/type.js +1 -1
- package/lib/alert/Alert.js +5 -5
- package/lib/alert/index.js +5 -5
- package/lib/alert/type.js +1 -1
- package/lib/anchor/Anchor.js +22 -21
- package/lib/anchor/Anchor.js.map +1 -1
- package/lib/anchor/AnchorContext.js +1 -1
- package/lib/anchor/AnchorItem.js +2 -2
- package/lib/anchor/AnchorTarget.js +11 -10
- package/lib/anchor/AnchorTarget.js.map +1 -1
- package/lib/anchor/_util/clipboard.js +1 -1
- package/lib/anchor/_util/dom.js +1 -1
- package/lib/anchor/index.js +22 -21
- package/lib/anchor/index.js.map +1 -1
- package/lib/anchor/type.js +1 -1
- package/lib/avatar/AvararGroup.js +6 -7
- package/lib/avatar/AvararGroup.js.map +1 -1
- package/lib/avatar/Avatar.js +6 -7
- package/lib/avatar/Avatar.js.map +1 -1
- package/lib/avatar/AvatarContext.js +1 -1
- package/lib/avatar/index.js +6 -7
- package/lib/avatar/index.js.map +1 -1
- package/lib/avatar/type.js +1 -1
- package/lib/badge/Badge.js +3 -3
- package/lib/badge/index.js +3 -3
- package/lib/badge/type.js +1 -1
- package/lib/breadcrumb/Breadcrumb.js +3 -3
- package/lib/breadcrumb/BreadcrumbContext.js +1 -1
- package/lib/breadcrumb/BreadcrumbItem.js +3 -3
- package/lib/breadcrumb/BreadcrumbProps.js +1 -1
- package/lib/breadcrumb/index.js +3 -3
- package/lib/breadcrumb/type.js +1 -1
- package/lib/button/Button.js +14 -12
- package/lib/button/Button.js.map +1 -1
- package/lib/button/index.js +12 -10
- package/lib/button/index.js.map +1 -1
- package/lib/button/type.js +1 -1
- package/lib/calendar/Calendar.js +26 -25
- package/lib/calendar/Calendar.js.map +1 -1
- package/lib/calendar/_util.js +1 -1
- package/lib/calendar/index.js +26 -25
- package/lib/calendar/index.js.map +1 -1
- package/lib/calendar/type.js +1 -1
- package/lib/card/type.js +1 -1
- package/lib/cascader/Cascader.js +47 -45
- package/lib/cascader/Cascader.js.map +1 -1
- package/lib/cascader/components/InputContent.js +20 -20
- package/lib/cascader/components/Item.js +20 -19
- package/lib/cascader/components/Item.js.map +1 -1
- package/lib/cascader/components/Panel.js +20 -19
- package/lib/cascader/components/Panel.js.map +1 -1
- package/lib/cascader/index.js +47 -45
- package/lib/cascader/index.js.map +1 -1
- package/lib/cascader/interface.js +28 -27
- package/lib/cascader/interface.js.map +1 -1
- package/lib/cascader/type.js +1 -1
- package/lib/cascader/utils/cascader.js +4 -4
- package/lib/cascader/utils/helper.js +2 -2
- package/lib/cascader/utils/inputContent.js +17 -17
- package/lib/cascader/utils/item.js +4 -4
- package/lib/cascader/utils/panel.js +7 -7
- package/lib/checkbox/Checkbox.js +16 -16
- package/lib/checkbox/CheckboxGroup.js +16 -16
- package/lib/checkbox/index.js +16 -16
- package/lib/checkbox/type.js +1 -1
- package/lib/comment/Comment.js +1 -1
- package/lib/comment/index.js +1 -1
- package/lib/comment/type.js +1 -1
- package/lib/common/Check.js +14 -14
- package/lib/common/FakeArrow.js +2 -2
- package/lib/common/Portal.js +4 -4
- package/lib/common.js +1 -1
- package/lib/config-provider/ConfigContext.js +1 -1
- package/lib/config-provider/ConfigProvider.js +3 -3
- package/lib/config-provider/index.js +3 -3
- package/lib/config-provider/type.js +1 -1
- package/lib/date-picker/DatePicker.js +32 -31
- package/lib/date-picker/DatePicker.js.map +1 -1
- package/lib/date-picker/base/CalendarPresets.js +12 -10
- package/lib/date-picker/base/CalendarPresets.js.map +1 -1
- package/lib/date-picker/base/Cell.js +2 -2
- package/lib/date-picker/base/Header.js +12 -10
- package/lib/date-picker/base/Header.js.map +1 -1
- package/lib/date-picker/base/Table.js +4 -4
- package/lib/date-picker/index.js +32 -31
- package/lib/date-picker/index.js.map +1 -1
- package/lib/date-picker/panel/Date.d.ts +2 -1
- package/lib/date-picker/panel/Date.js +27 -25
- package/lib/date-picker/panel/Date.js.map +1 -1
- package/lib/date-picker/panel/DateRange.js +27 -25
- package/lib/date-picker/panel/DateRange.js.map +1 -1
- package/lib/date-picker/type.js +1 -1
- package/lib/dialog/Dialog.js +12 -10
- package/lib/dialog/Dialog.js.map +1 -1
- package/lib/dialog/RenderDialog.js +5 -5
- package/lib/dialog/index.js +12 -10
- package/lib/dialog/index.js.map +1 -1
- package/lib/dialog/plugin.js +12 -10
- package/lib/dialog/plugin.js.map +1 -1
- package/lib/dialog/type.d.ts +3 -9
- package/lib/dialog/type.js +1 -1
- package/lib/divider/Divider.js +17 -8
- package/lib/divider/Divider.js.map +1 -1
- package/lib/divider/index.js +3 -3
- package/lib/divider/type.js +1 -1
- package/lib/drawer/Drawer.js +13 -11
- package/lib/drawer/Drawer.js.map +1 -1
- package/lib/drawer/DrawerWrapper.js +4 -4
- package/lib/drawer/_util.js +1 -1
- package/lib/drawer/index.js +12 -10
- package/lib/drawer/index.js.map +1 -1
- package/lib/drawer/type.js +1 -1
- package/lib/dropdown/Dropdown.js +36 -37
- package/lib/dropdown/Dropdown.js.map +1 -1
- package/lib/dropdown/DropdownItem.js +14 -14
- package/lib/dropdown/DropdownMenu.js +15 -15
- package/lib/dropdown/index.js +36 -37
- package/lib/dropdown/index.js.map +1 -1
- package/lib/dropdown/type.js +1 -1
- package/lib/form/Form.d.ts +4 -1
- package/lib/form/Form.js +70 -53
- package/lib/form/Form.js.map +1 -1
- package/lib/form/FormContext.js +1 -1
- package/lib/form/FormItem.js +53 -41
- package/lib/form/FormItem.js.map +1 -1
- package/lib/form/formModel.js +26 -26
- package/lib/form/index.js +46 -43
- package/lib/form/index.js.map +1 -1
- package/lib/form/type.js +1 -1
- package/lib/grid/Col.js +5 -5
- package/lib/grid/Row.js +7 -7
- package/lib/grid/index.js +7 -7
- package/lib/grid/type.js +1 -1
- package/lib/index.js +60 -57
- package/lib/index.js.map +1 -1
- package/lib/input/Input.d.ts +8 -4
- package/lib/input/Input.js +111 -52
- package/lib/input/Input.js.map +1 -1
- package/lib/input/InputGroup.js +3 -3
- package/lib/input/index.d.ts +1 -1
- package/lib/input/index.js +5 -9
- package/lib/input/index.js.map +1 -1
- package/lib/input/type.d.ts +28 -7
- package/lib/input/type.js +1 -1
- package/lib/input-number/InputNumber.js +12 -12
- package/lib/input-number/StepHandler.js +12 -10
- package/lib/input-number/StepHandler.js.map +1 -1
- package/lib/input-number/index.js +12 -12
- package/lib/input-number/type.js +1 -1
- package/lib/input-number/utils/numberUtils.js +1 -1
- package/lib/layout/Aside.js +3 -3
- package/lib/layout/Layout.js +6 -6
- package/lib/layout/index.js +6 -6
- package/lib/layout/type.js +1 -1
- package/lib/list/List.js +11 -9
- package/lib/list/List.js.map +1 -1
- package/lib/list/ListItem.js +1 -1
- package/lib/list/ListItemMeta.js +1 -1
- package/lib/list/index.js +11 -9
- package/lib/list/index.js.map +1 -1
- package/lib/list/type.js +1 -1
- package/lib/loading/gradient.js +6 -46
- package/lib/loading/gradient.js.map +1 -1
- package/lib/loading/index.js +11 -9
- package/lib/loading/index.js.map +1 -1
- package/lib/loading/loading.js +19 -12
- package/lib/loading/loading.js.map +1 -1
- package/lib/loading/plugin.js +11 -9
- package/lib/loading/plugin.js.map +1 -1
- package/lib/loading/type.js +1 -1
- package/lib/locale/LocalReceiver.js +2 -2
- package/lib/locale/type.js +1 -1
- package/lib/locale/zh_CN.js +2 -2
- package/lib/locale/zh_CN.js.map +1 -1
- package/lib/menu/HeadMenu.js +7 -7
- package/lib/menu/Menu.js +7 -7
- package/lib/menu/MenuContext.js +1 -1
- package/lib/menu/MenuGroup.js +1 -1
- package/lib/menu/MenuItem.js +2 -2
- package/lib/menu/SubMenu.js +4 -4
- package/lib/menu/_util/cacularPaddingLeft.js +1 -1
- package/lib/menu/_util/checkMenuType.js +1 -1
- package/lib/menu/_util/checkSubMenuActive.js +1 -1
- package/lib/menu/_util/checkSubMenuChildExpanded.js +3 -3
- package/lib/menu/_util/checkSubMenuChildrenActive.js +1 -1
- package/lib/menu/_util/constant.js +1 -1
- package/lib/menu/_util/getSubMenuChildStyle.js +1 -1
- package/lib/menu/_util/type.js +1 -1
- package/lib/menu/hooks/useMenuContext.js +5 -5
- package/lib/menu/index.js +7 -7
- package/lib/menu/type.js +1 -1
- package/lib/message/Message.js +11 -9
- package/lib/message/Message.js.map +1 -1
- package/lib/message/MessageClose.js +1 -1
- package/lib/message/MessageComponent.js +11 -9
- package/lib/message/MessageComponent.js.map +1 -1
- package/lib/message/MessageIcon.js +11 -9
- package/lib/message/MessageIcon.js.map +1 -1
- package/lib/message/const.js +1 -1
- package/lib/message/index.js +11 -9
- package/lib/message/index.js.map +1 -1
- package/lib/message/type.js +1 -1
- package/lib/message/useMessageClass.js +1 -1
- package/lib/notification/Notification.js +3 -3
- package/lib/notification/NotificationList.js +5 -5
- package/lib/notification/NotificationPlugin.js +6 -6
- package/lib/notification/index.js +6 -6
- package/lib/notification/type.js +1 -1
- package/lib/pagination/Pagination.js +22 -21
- package/lib/pagination/Pagination.js.map +1 -1
- package/lib/pagination/index.js +22 -21
- package/lib/pagination/index.js.map +1 -1
- package/lib/pagination/type.js +1 -1
- package/lib/pagination/validators.js +1 -1
- package/lib/popconfirm/PopConfirm.js +13 -12
- package/lib/popconfirm/PopConfirm.js.map +1 -1
- package/lib/popconfirm/PopContent.js +12 -10
- package/lib/popconfirm/PopContent.js.map +1 -1
- package/lib/popconfirm/index.js +13 -12
- package/lib/popconfirm/index.js.map +1 -1
- package/lib/popconfirm/type.js +1 -1
- package/lib/popup/Popup.js +46 -64
- package/lib/popup/Popup.js.map +1 -1
- package/lib/popup/Portal.js +1 -1
- package/lib/popup/hooks/usePopupCssTransition.js +8 -5
- package/lib/popup/hooks/usePopupCssTransition.js.map +1 -1
- package/lib/popup/hooks/useTriggerProps.js +1 -1
- package/lib/popup/index.js +4 -5
- package/lib/popup/index.js.map +1 -1
- package/lib/popup/type.js +1 -1
- package/lib/progress/Progress.js +3 -3
- package/lib/progress/index.js +3 -3
- package/lib/progress/type.js +1 -1
- package/lib/radio/Radio.js +15 -15
- package/lib/radio/RadioGroup.js +15 -15
- package/lib/radio/index.js +15 -15
- package/lib/radio/type.js +1 -1
- package/lib/rate/type.js +1 -1
- package/lib/select/base/Option.js +16 -16
- package/lib/select/base/OptionGroup.js +2 -2
- package/lib/select/base/PopupContent.js +20 -20
- package/lib/select/base/Select.js +22 -21
- package/lib/select/base/Select.js.map +1 -1
- package/lib/select/index.js +22 -21
- package/lib/select/index.js.map +1 -1
- package/lib/select/type.js +1 -1
- package/lib/select/util/helper.js +18 -18
- package/lib/skeleton/type.js +1 -1
- package/lib/slider/Slider.js +12 -13
- package/lib/slider/Slider.js.map +1 -1
- package/lib/slider/SliderHandleButton.js +6 -7
- package/lib/slider/SliderHandleButton.js.map +1 -1
- package/lib/slider/index.js +12 -13
- package/lib/slider/index.js.map +1 -1
- package/lib/slider/type.js +1 -1
- package/lib/slider/utils/handleNumber.js +1 -1
- package/lib/steps/StepItem.js +2 -2
- package/lib/steps/Steps.js +2 -2
- package/lib/steps/StepsContext.js +1 -1
- package/lib/steps/index.js +2 -2
- package/lib/steps/type.js +1 -1
- package/lib/sticky-tool/type.js +1 -1
- package/lib/swiper/Swiper.js +4 -4
- package/lib/swiper/SwiperItem.js +1 -1
- package/lib/swiper/index.js +4 -4
- package/lib/swiper/type.js +1 -1
- package/lib/switch/Switch.js +12 -10
- package/lib/switch/Switch.js.map +1 -1
- package/lib/switch/index.js +12 -10
- package/lib/switch/index.js.map +1 -1
- package/lib/switch/type.js +1 -1
- package/lib/table/base/Table.d.ts +2 -1
- package/lib/table/base/Table.js +32 -28
- package/lib/table/base/Table.js.map +1 -1
- package/lib/table/base/TableAsyncLoadingBody.js +13 -11
- package/lib/table/base/TableAsyncLoadingBody.js.map +1 -1
- package/lib/table/base/TableBody.js +17 -17
- package/lib/table/base/TableCell.js +4 -4
- package/lib/table/base/TableColGroup.js +1 -1
- package/lib/table/base/TableContext.js +1 -1
- package/lib/table/base/TableEmptyBody.js +1 -1
- package/lib/table/base/TableFooter.js +1 -1
- package/lib/table/base/TableHeader.js +10 -10
- package/lib/table/base/TableLoadingBody.js +5 -5
- package/lib/table/base/TableRow.js +17 -17
- package/lib/table/hooks/useColumns.js +4 -4
- package/lib/table/index.js +29 -28
- package/lib/table/index.js.map +1 -1
- package/lib/table/primary/FilterButton.js +20 -21
- package/lib/table/primary/FilterButton.js.map +1 -1
- package/lib/table/primary/SorterButton.js +6 -7
- package/lib/table/primary/SorterButton.js.map +1 -1
- package/lib/table/primary/Table.js +29 -28
- package/lib/table/primary/Table.js.map +1 -1
- package/lib/table/primary/expand-box.js +2 -2
- package/lib/table/primary/useExpand.js +17 -17
- package/lib/table/primary/useFilter.js +20 -21
- package/lib/table/primary/useFilter.js.map +1 -1
- package/lib/table/primary/useSelect.js +20 -20
- package/lib/table/primary/useSorter.js +18 -19
- package/lib/table/primary/useSorter.js.map +1 -1
- package/lib/table/type.js +1 -1
- package/lib/table/util/getRowKeyFromRowKey.js +1 -1
- package/lib/table/util/index.js +1 -1
- package/lib/tabs/TabBar.js +4 -4
- package/lib/tabs/TabNav.js +4 -4
- package/lib/tabs/TabNavItem.js +1 -1
- package/lib/tabs/TabPanel.js +1 -1
- package/lib/tabs/Tabs.js +4 -4
- package/lib/tabs/index.js +4 -4
- package/lib/tabs/type.js +1 -1
- package/lib/tabs/useTabClass.js +1 -1
- package/lib/tag/CheckTag.js +5 -5
- package/lib/tag/Tag.js +5 -5
- package/lib/tag/index.js +5 -5
- package/lib/tag/type.js +1 -1
- package/lib/textarea/Textarea.js +14 -14
- package/lib/textarea/index.js +14 -14
- package/lib/textarea/type.js +1 -1
- package/lib/time-picker/InputItems.js +39 -29
- package/lib/time-picker/InputItems.js.map +1 -1
- package/lib/time-picker/TimePicker.js +29 -28
- package/lib/time-picker/TimePicker.js.map +1 -1
- package/lib/time-picker/TimeRangePicker.js +29 -28
- package/lib/time-picker/TimeRangePicker.js.map +1 -1
- package/lib/time-picker/consts.js +4 -4
- package/lib/time-picker/index.js +29 -28
- package/lib/time-picker/index.js.map +1 -1
- package/lib/time-picker/interfaces.js +1 -1
- package/lib/time-picker/panel/SinglePanel.js +24 -24
- package/lib/time-picker/panel/TimePickerPanel.js +28 -26
- package/lib/time-picker/panel/TimePickerPanel.js.map +1 -1
- package/lib/time-picker/panel/TimePickerRangePanel.js +28 -26
- package/lib/time-picker/panel/TimePickerRangePanel.js.map +1 -1
- package/lib/time-picker/type.js +1 -1
- package/lib/tooltip/Tooltip.js +6 -7
- package/lib/tooltip/Tooltip.js.map +1 -1
- package/lib/tooltip/index.js +6 -7
- package/lib/tooltip/index.js.map +1 -1
- package/lib/tooltip/type.js +1 -1
- package/lib/transfer/Transfer.js +39 -38
- package/lib/transfer/Transfer.js.map +1 -1
- package/lib/transfer/TransferList.js +34 -33
- package/lib/transfer/TransferList.js.map +1 -1
- package/lib/transfer/index.js +39 -38
- package/lib/transfer/index.js.map +1 -1
- package/lib/transfer/type.js +1 -1
- package/lib/transfer/utils.js +17 -17
- package/lib/tree/Tree.js +48 -45
- package/lib/tree/Tree.js.map +1 -1
- package/lib/tree/TreeItem.js +19 -17
- package/lib/tree/TreeItem.js.map +1 -1
- package/lib/tree/index.js +48 -45
- package/lib/tree/index.js.map +1 -1
- package/lib/tree/interface.js +1 -1
- package/lib/tree/type.js +1 -1
- package/lib/tree/useControllable.js +3 -3
- package/lib/tree/useStore.js +41 -40
- package/lib/tree/useStore.js.map +1 -1
- package/lib/tree/useTreeConfig.js +1 -1
- package/lib/tree-select/TreeSelect.js +49 -47
- package/lib/tree-select/TreeSelect.js.map +1 -1
- package/lib/tree-select/TreeSelectInput.js +21 -21
- package/lib/tree-select/TreeSelectSuffix.js +22 -20
- package/lib/tree-select/TreeSelectSuffix.js.map +1 -1
- package/lib/tree-select/TreeSelectTags.js +5 -5
- package/lib/tree-select/index.js +49 -47
- package/lib/tree-select/index.js.map +1 -1
- package/lib/tree-select/type.js +1 -1
- package/lib/tree-select/useTreeSelectConfig.js +2 -2
- package/lib/upload/boolean-render.js +1 -1
- package/lib/upload/dragger.js +13 -11
- package/lib/upload/dragger.js.map +1 -1
- package/lib/upload/hooks/useDefaultValue.js +6 -6
- package/lib/upload/hooks/useSizeLimit.d.ts +2 -0
- package/lib/upload/hooks/useSizeLimit.js +63 -0
- package/lib/upload/hooks/useSizeLimit.js.map +1 -0
- package/lib/upload/index.js +39 -36
- package/lib/upload/index.js.map +1 -1
- package/lib/upload/themes/dragger-progress.js +13 -11
- package/lib/upload/themes/dragger-progress.js.map +1 -1
- package/lib/upload/themes/flow-list/file-list.js +12 -10
- package/lib/upload/themes/flow-list/file-list.js.map +1 -1
- package/lib/upload/themes/flow-list/img-list.js +12 -10
- package/lib/upload/themes/flow-list/img-list.js.map +1 -1
- package/lib/upload/themes/flow-list/index.js +13 -11
- package/lib/upload/themes/flow-list/index.js.map +1 -1
- package/lib/upload/themes/image-card.js +13 -11
- package/lib/upload/themes/image-card.js.map +1 -1
- package/lib/upload/themes/single-file.js +11 -9
- package/lib/upload/themes/single-file.js.map +1 -1
- package/lib/upload/tips.js +1 -1
- package/lib/upload/type.d.ts +3 -2
- package/lib/upload/type.js +1 -1
- package/lib/upload/types.js +1 -1
- package/lib/upload/upload-trigger.js +12 -10
- package/lib/upload/upload-trigger.js.map +1 -1
- package/lib/upload/upload.js +58 -44
- package/lib/upload/upload.js.map +1 -1
- package/lib/upload/util.js +3 -3
- package/package.json +8 -7
- package/cjs/_chunks/dep-045b87c1.js +0 -30
- package/cjs/_chunks/dep-045b87c1.js.map +0 -1
- package/cjs/_chunks/dep-059e74d9.js +0 -47
- package/cjs/_chunks/dep-059e74d9.js.map +0 -1
- package/cjs/_chunks/dep-0705da20.js +0 -44
- package/cjs/_chunks/dep-0705da20.js.map +0 -1
- package/cjs/_chunks/dep-07d4a79b.js +0 -26
- package/cjs/_chunks/dep-07d4a79b.js.map +0 -1
- package/cjs/_chunks/dep-0e3f1753.js +0 -141
- package/cjs/_chunks/dep-0e3f1753.js.map +0 -1
- package/cjs/_chunks/dep-15af0f44.js +0 -275
- package/cjs/_chunks/dep-15af0f44.js.map +0 -1
- package/cjs/_chunks/dep-1bafebb1.js +0 -52
- package/cjs/_chunks/dep-1bafebb1.js.map +0 -1
- package/cjs/_chunks/dep-20e76bfc.js +0 -159
- package/cjs/_chunks/dep-20e76bfc.js.map +0 -1
- package/cjs/_chunks/dep-228a3548.js +0 -232
- package/cjs/_chunks/dep-228a3548.js.map +0 -1
- package/cjs/_chunks/dep-35453ccd.js +0 -864
- package/cjs/_chunks/dep-35453ccd.js.map +0 -1
- package/cjs/_chunks/dep-3ca698ba.js +0 -568
- package/cjs/_chunks/dep-3ca698ba.js.map +0 -1
- package/cjs/_chunks/dep-449daca3.js +0 -25
- package/cjs/_chunks/dep-449daca3.js.map +0 -1
- package/cjs/_chunks/dep-48870ae5.js +0 -18
- package/cjs/_chunks/dep-48870ae5.js.map +0 -1
- package/cjs/_chunks/dep-4a02b995.js +0 -57
- package/cjs/_chunks/dep-4a02b995.js.map +0 -1
- package/cjs/_chunks/dep-4f605641.js +0 -740
- package/cjs/_chunks/dep-4f605641.js.map +0 -1
- package/cjs/_chunks/dep-552722c0.js +0 -86
- package/cjs/_chunks/dep-552722c0.js.map +0 -1
- package/cjs/_chunks/dep-55c2ba72.js +0 -200
- package/cjs/_chunks/dep-55c2ba72.js.map +0 -1
- package/cjs/_chunks/dep-59b9b071.js +0 -108
- package/cjs/_chunks/dep-59b9b071.js.map +0 -1
- package/cjs/_chunks/dep-5e46865d.js +0 -95
- package/cjs/_chunks/dep-5e46865d.js.map +0 -1
- package/cjs/_chunks/dep-6681bc7b.js +0 -49
- package/cjs/_chunks/dep-6681bc7b.js.map +0 -1
- package/cjs/_chunks/dep-66fbd01b.js +0 -120
- package/cjs/_chunks/dep-66fbd01b.js.map +0 -1
- package/cjs/_chunks/dep-69abf228.js +0 -27
- package/cjs/_chunks/dep-69abf228.js.map +0 -1
- package/cjs/_chunks/dep-72511bfe.js +0 -45
- package/cjs/_chunks/dep-72511bfe.js.map +0 -1
- package/cjs/_chunks/dep-72f8673c.js +0 -97
- package/cjs/_chunks/dep-72f8673c.js.map +0 -1
- package/cjs/_chunks/dep-735b841a.js +0 -20
- package/cjs/_chunks/dep-735b841a.js.map +0 -1
- package/cjs/_chunks/dep-7a0cfc4c.js +0 -110
- package/cjs/_chunks/dep-7a0cfc4c.js.map +0 -1
- package/cjs/_chunks/dep-7d00ab60.js +0 -34
- package/cjs/_chunks/dep-7d00ab60.js.map +0 -1
- package/cjs/_chunks/dep-8027cfc6.js +0 -197
- package/cjs/_chunks/dep-8027cfc6.js.map +0 -1
- package/cjs/_chunks/dep-871fbfc7.js +0 -28
- package/cjs/_chunks/dep-871fbfc7.js.map +0 -1
- package/cjs/_chunks/dep-87ec326c.js +0 -954
- package/cjs/_chunks/dep-87ec326c.js.map +0 -1
- package/cjs/_chunks/dep-8bb9b7ba.js +0 -119
- package/cjs/_chunks/dep-8bb9b7ba.js.map +0 -1
- package/cjs/_chunks/dep-8f3deb2a.js +0 -28
- package/cjs/_chunks/dep-8f3deb2a.js.map +0 -1
- package/cjs/_chunks/dep-9125a75e.js +0 -36
- package/cjs/_chunks/dep-9125a75e.js.map +0 -1
- package/cjs/_chunks/dep-942a7aba.js +0 -26
- package/cjs/_chunks/dep-942a7aba.js.map +0 -1
- package/cjs/_chunks/dep-99d6d655.js +0 -201
- package/cjs/_chunks/dep-99d6d655.js.map +0 -1
- package/cjs/_chunks/dep-9c74d22d.js +0 -43
- package/cjs/_chunks/dep-9c74d22d.js.map +0 -1
- package/cjs/_chunks/dep-9e6db8fb.js +0 -75
- package/cjs/_chunks/dep-9e6db8fb.js.map +0 -1
- package/cjs/_chunks/dep-a7666a95.js +0 -26
- package/cjs/_chunks/dep-a7666a95.js.map +0 -1
- package/cjs/_chunks/dep-a81e362c.js +0 -88
- package/cjs/_chunks/dep-a81e362c.js.map +0 -1
- package/cjs/_chunks/dep-af921283.js +0 -46
- package/cjs/_chunks/dep-af921283.js.map +0 -1
- package/cjs/_chunks/dep-b000fdae.js +0 -772
- package/cjs/_chunks/dep-b000fdae.js.map +0 -1
- package/cjs/_chunks/dep-bc486aab.js +0 -132
- package/cjs/_chunks/dep-bc486aab.js.map +0 -1
- package/cjs/_chunks/dep-c5449fbe.js +0 -69
- package/cjs/_chunks/dep-c5449fbe.js.map +0 -1
- package/cjs/_chunks/dep-c57ef5b6.js +0 -395
- package/cjs/_chunks/dep-c57ef5b6.js.map +0 -1
- package/cjs/_chunks/dep-c7adf4af.js +0 -47
- package/cjs/_chunks/dep-c7adf4af.js.map +0 -1
- package/cjs/_chunks/dep-c82d4aac.js +0 -308
- package/cjs/_chunks/dep-c82d4aac.js.map +0 -1
- package/cjs/_chunks/dep-d2229c5d.js +0 -35
- package/cjs/_chunks/dep-d2229c5d.js.map +0 -1
- package/cjs/_chunks/dep-e03ca79d.js +0 -44
- package/cjs/_chunks/dep-e03ca79d.js.map +0 -1
- package/cjs/_chunks/dep-e4430646.js +0 -230
- package/cjs/_chunks/dep-e4430646.js.map +0 -1
- package/cjs/_chunks/dep-f0639562.js +0 -51
- package/cjs/_chunks/dep-f0639562.js.map +0 -1
- package/cjs/_chunks/dep-f1b75399.js +0 -161
- package/cjs/_chunks/dep-f1b75399.js.map +0 -1
- package/cjs/_chunks/dep-f445e9bb.js +0 -47
- package/cjs/_chunks/dep-f445e9bb.js.map +0 -1
- package/cjs/_chunks/dep-fa36e79f.js +0 -54
- package/cjs/_chunks/dep-fa36e79f.js.map +0 -1
- package/cjs/_chunks/dep-fb89215e.js +0 -47
- package/cjs/_chunks/dep-fb89215e.js.map +0 -1
- package/cjs/date-picker/utils.d.ts +0 -130
- package/cjs/date-picker/utils.js +0 -460
- package/cjs/date-picker/utils.js.map +0 -1
- package/es/_chunks/dep-028895a6.js +0 -93
- package/es/_chunks/dep-028895a6.js.map +0 -1
- package/es/_chunks/dep-0758224e.js +0 -388
- package/es/_chunks/dep-0758224e.js.map +0 -1
- package/es/_chunks/dep-0ce610a9.js +0 -108
- package/es/_chunks/dep-0ce610a9.js.map +0 -1
- package/es/_chunks/dep-0de37580.js +0 -49
- package/es/_chunks/dep-0de37580.js.map +0 -1
- package/es/_chunks/dep-121f2926.js +0 -773
- package/es/_chunks/dep-121f2926.js.map +0 -1
- package/es/_chunks/dep-124f91c5.js +0 -26
- package/es/_chunks/dep-124f91c5.js.map +0 -1
- package/es/_chunks/dep-14692160.js +0 -45
- package/es/_chunks/dep-14692160.js.map +0 -1
- package/es/_chunks/dep-14bd2526.js +0 -56
- package/es/_chunks/dep-14bd2526.js.map +0 -1
- package/es/_chunks/dep-156c830d.js +0 -24
- package/es/_chunks/dep-156c830d.js.map +0 -1
- package/es/_chunks/dep-1997c424.js +0 -75
- package/es/_chunks/dep-1997c424.js.map +0 -1
- package/es/_chunks/dep-25536592.js +0 -52
- package/es/_chunks/dep-25536592.js.map +0 -1
- package/es/_chunks/dep-27d690ce.js +0 -42
- package/es/_chunks/dep-27d690ce.js.map +0 -1
- package/es/_chunks/dep-2eff142e.js +0 -8
- package/es/_chunks/dep-2eff142e.js.map +0 -1
- package/es/_chunks/dep-304ab091.js +0 -129
- package/es/_chunks/dep-304ab091.js.map +0 -1
- package/es/_chunks/dep-312619d6.js +0 -17
- package/es/_chunks/dep-312619d6.js.map +0 -1
- package/es/_chunks/dep-3853103d.js +0 -44
- package/es/_chunks/dep-3853103d.js.map +0 -1
- package/es/_chunks/dep-39f90ded.js +0 -305
- package/es/_chunks/dep-39f90ded.js.map +0 -1
- package/es/_chunks/dep-444d31ef.js +0 -117
- package/es/_chunks/dep-444d31ef.js.map +0 -1
- package/es/_chunks/dep-44c00646.js +0 -108
- package/es/_chunks/dep-44c00646.js.map +0 -1
- package/es/_chunks/dep-4fb1b483.js +0 -865
- package/es/_chunks/dep-4fb1b483.js.map +0 -1
- package/es/_chunks/dep-55e3e3e3.js +0 -26
- package/es/_chunks/dep-55e3e3e3.js.map +0 -1
- package/es/_chunks/dep-5ace74d6.js +0 -158
- package/es/_chunks/dep-5ace74d6.js.map +0 -1
- package/es/_chunks/dep-6615471e.js +0 -274
- package/es/_chunks/dep-6615471e.js.map +0 -1
- package/es/_chunks/dep-66dcd197.js +0 -34
- package/es/_chunks/dep-66dcd197.js.map +0 -1
- package/es/_chunks/dep-6bae5139.js +0 -47
- package/es/_chunks/dep-6bae5139.js.map +0 -1
- package/es/_chunks/dep-6cc10247.js +0 -154
- package/es/_chunks/dep-6cc10247.js.map +0 -1
- package/es/_chunks/dep-7daf07a9.js +0 -48
- package/es/_chunks/dep-7daf07a9.js.map +0 -1
- package/es/_chunks/dep-8309e373.js +0 -8
- package/es/_chunks/dep-8309e373.js.map +0 -1
- package/es/_chunks/dep-897ce04d.js +0 -36
- package/es/_chunks/dep-897ce04d.js.map +0 -1
- package/es/_chunks/dep-8bccb9b0.js +0 -26
- package/es/_chunks/dep-8bccb9b0.js.map +0 -1
- package/es/_chunks/dep-8dc257e5.js +0 -200
- package/es/_chunks/dep-8dc257e5.js.map +0 -1
- package/es/_chunks/dep-9332bbea.js +0 -23
- package/es/_chunks/dep-9332bbea.js.map +0 -1
- package/es/_chunks/dep-93971e86.js +0 -52
- package/es/_chunks/dep-93971e86.js.map +0 -1
- package/es/_chunks/dep-93bd2d05.js +0 -567
- package/es/_chunks/dep-93bd2d05.js.map +0 -1
- package/es/_chunks/dep-95c9ff5b.js +0 -42
- package/es/_chunks/dep-95c9ff5b.js.map +0 -1
- package/es/_chunks/dep-9e88086c.js +0 -232
- package/es/_chunks/dep-9e88086c.js.map +0 -1
- package/es/_chunks/dep-a0400c35.js +0 -735
- package/es/_chunks/dep-a0400c35.js.map +0 -1
- package/es/_chunks/dep-a5b60243.js +0 -222
- package/es/_chunks/dep-a5b60243.js.map +0 -1
- package/es/_chunks/dep-a764e3bd.js +0 -19
- package/es/_chunks/dep-a764e3bd.js.map +0 -1
- package/es/_chunks/dep-a8d92bd9.js +0 -97
- package/es/_chunks/dep-a8d92bd9.js.map +0 -1
- package/es/_chunks/dep-aa2bff1b.js +0 -129
- package/es/_chunks/dep-aa2bff1b.js.map +0 -1
- package/es/_chunks/dep-ab1e2688.js +0 -41
- package/es/_chunks/dep-ab1e2688.js.map +0 -1
- package/es/_chunks/dep-ab9c749e.js +0 -26
- package/es/_chunks/dep-ab9c749e.js.map +0 -1
- package/es/_chunks/dep-ae2e9ece.js +0 -45
- package/es/_chunks/dep-ae2e9ece.js.map +0 -1
- package/es/_chunks/dep-b12a3761.js +0 -197
- package/es/_chunks/dep-b12a3761.js.map +0 -1
- package/es/_chunks/dep-b8263a1c.js +0 -47
- package/es/_chunks/dep-b8263a1c.js.map +0 -1
- package/es/_chunks/dep-beac373a.js +0 -27
- package/es/_chunks/dep-beac373a.js.map +0 -1
- package/es/_chunks/dep-c8351fc0.js +0 -951
- package/es/_chunks/dep-c8351fc0.js.map +0 -1
- package/es/_chunks/dep-cac5f189.js +0 -119
- package/es/_chunks/dep-cac5f189.js.map +0 -1
- package/es/_chunks/dep-d098d908.js +0 -8
- package/es/_chunks/dep-d098d908.js.map +0 -1
- package/es/_chunks/dep-d2535fd6.js +0 -50
- package/es/_chunks/dep-d2535fd6.js.map +0 -1
- package/es/_chunks/dep-d44ac8a4.js +0 -190
- package/es/_chunks/dep-d44ac8a4.js.map +0 -1
- package/es/_chunks/dep-e2a0e7b2.js +0 -27
- package/es/_chunks/dep-e2a0e7b2.js.map +0 -1
- package/es/_chunks/dep-ea69dcf8.js +0 -47
- package/es/_chunks/dep-ea69dcf8.js.map +0 -1
- package/es/_chunks/dep-ee2e5653.js +0 -84
- package/es/_chunks/dep-ee2e5653.js.map +0 -1
- package/es/_chunks/dep-f5f7d3f4.js +0 -68
- package/es/_chunks/dep-f5f7d3f4.js.map +0 -1
- package/es/_chunks/dep-f88db21e.js +0 -33
- package/es/_chunks/dep-f88db21e.js.map +0 -1
- package/es/_chunks/dep-fcfd7649.js +0 -85
- package/es/_chunks/dep-fcfd7649.js.map +0 -1
- package/es/date-picker/utils.d.ts +0 -130
- package/es/date-picker/utils.js +0 -442
- package/es/date-picker/utils.js.map +0 -1
- package/esm/_chunks/dep-028895a6.js +0 -93
- package/esm/_chunks/dep-028895a6.js.map +0 -1
- package/esm/_chunks/dep-0758224e.js +0 -388
- package/esm/_chunks/dep-0758224e.js.map +0 -1
- package/esm/_chunks/dep-0ce610a9.js +0 -108
- package/esm/_chunks/dep-0ce610a9.js.map +0 -1
- package/esm/_chunks/dep-0de37580.js +0 -49
- package/esm/_chunks/dep-0de37580.js.map +0 -1
- package/esm/_chunks/dep-121f2926.js +0 -773
- package/esm/_chunks/dep-121f2926.js.map +0 -1
- package/esm/_chunks/dep-124f91c5.js +0 -26
- package/esm/_chunks/dep-124f91c5.js.map +0 -1
- package/esm/_chunks/dep-14692160.js +0 -45
- package/esm/_chunks/dep-14692160.js.map +0 -1
- package/esm/_chunks/dep-14bd2526.js +0 -56
- package/esm/_chunks/dep-14bd2526.js.map +0 -1
- package/esm/_chunks/dep-156c830d.js +0 -24
- package/esm/_chunks/dep-156c830d.js.map +0 -1
- package/esm/_chunks/dep-1997c424.js +0 -75
- package/esm/_chunks/dep-1997c424.js.map +0 -1
- package/esm/_chunks/dep-25536592.js +0 -52
- package/esm/_chunks/dep-25536592.js.map +0 -1
- package/esm/_chunks/dep-27d690ce.js +0 -42
- package/esm/_chunks/dep-27d690ce.js.map +0 -1
- package/esm/_chunks/dep-2eff142e.js +0 -8
- package/esm/_chunks/dep-2eff142e.js.map +0 -1
- package/esm/_chunks/dep-304ab091.js +0 -129
- package/esm/_chunks/dep-304ab091.js.map +0 -1
- package/esm/_chunks/dep-312619d6.js +0 -17
- package/esm/_chunks/dep-312619d6.js.map +0 -1
- package/esm/_chunks/dep-3853103d.js +0 -44
- package/esm/_chunks/dep-3853103d.js.map +0 -1
- package/esm/_chunks/dep-39f90ded.js +0 -305
- package/esm/_chunks/dep-39f90ded.js.map +0 -1
- package/esm/_chunks/dep-444d31ef.js +0 -117
- package/esm/_chunks/dep-444d31ef.js.map +0 -1
- package/esm/_chunks/dep-44c00646.js +0 -108
- package/esm/_chunks/dep-44c00646.js.map +0 -1
- package/esm/_chunks/dep-4fb1b483.js +0 -865
- package/esm/_chunks/dep-4fb1b483.js.map +0 -1
- package/esm/_chunks/dep-55e3e3e3.js +0 -26
- package/esm/_chunks/dep-55e3e3e3.js.map +0 -1
- package/esm/_chunks/dep-5ace74d6.js +0 -158
- package/esm/_chunks/dep-5ace74d6.js.map +0 -1
- package/esm/_chunks/dep-6615471e.js +0 -274
- package/esm/_chunks/dep-6615471e.js.map +0 -1
- package/esm/_chunks/dep-66dcd197.js +0 -34
- package/esm/_chunks/dep-66dcd197.js.map +0 -1
- package/esm/_chunks/dep-6bae5139.js +0 -47
- package/esm/_chunks/dep-6bae5139.js.map +0 -1
- package/esm/_chunks/dep-6cc10247.js +0 -154
- package/esm/_chunks/dep-6cc10247.js.map +0 -1
- package/esm/_chunks/dep-7daf07a9.js +0 -48
- package/esm/_chunks/dep-7daf07a9.js.map +0 -1
- package/esm/_chunks/dep-8309e373.js +0 -8
- package/esm/_chunks/dep-8309e373.js.map +0 -1
- package/esm/_chunks/dep-897ce04d.js +0 -36
- package/esm/_chunks/dep-897ce04d.js.map +0 -1
- package/esm/_chunks/dep-8bccb9b0.js +0 -26
- package/esm/_chunks/dep-8bccb9b0.js.map +0 -1
- package/esm/_chunks/dep-8dc257e5.js +0 -200
- package/esm/_chunks/dep-8dc257e5.js.map +0 -1
- package/esm/_chunks/dep-9332bbea.js +0 -23
- package/esm/_chunks/dep-9332bbea.js.map +0 -1
- package/esm/_chunks/dep-93971e86.js +0 -52
- package/esm/_chunks/dep-93971e86.js.map +0 -1
- package/esm/_chunks/dep-93bd2d05.js +0 -567
- package/esm/_chunks/dep-93bd2d05.js.map +0 -1
- package/esm/_chunks/dep-95c9ff5b.js +0 -42
- package/esm/_chunks/dep-95c9ff5b.js.map +0 -1
- package/esm/_chunks/dep-9e88086c.js +0 -232
- package/esm/_chunks/dep-9e88086c.js.map +0 -1
- package/esm/_chunks/dep-a0400c35.js +0 -735
- package/esm/_chunks/dep-a0400c35.js.map +0 -1
- package/esm/_chunks/dep-a5b60243.js +0 -222
- package/esm/_chunks/dep-a5b60243.js.map +0 -1
- package/esm/_chunks/dep-a764e3bd.js +0 -19
- package/esm/_chunks/dep-a764e3bd.js.map +0 -1
- package/esm/_chunks/dep-a8d92bd9.js +0 -97
- package/esm/_chunks/dep-a8d92bd9.js.map +0 -1
- package/esm/_chunks/dep-aa2bff1b.js +0 -129
- package/esm/_chunks/dep-aa2bff1b.js.map +0 -1
- package/esm/_chunks/dep-ab1e2688.js +0 -41
- package/esm/_chunks/dep-ab1e2688.js.map +0 -1
- package/esm/_chunks/dep-ab9c749e.js +0 -26
- package/esm/_chunks/dep-ab9c749e.js.map +0 -1
- package/esm/_chunks/dep-ae2e9ece.js +0 -45
- package/esm/_chunks/dep-ae2e9ece.js.map +0 -1
- package/esm/_chunks/dep-b12a3761.js +0 -197
- package/esm/_chunks/dep-b12a3761.js.map +0 -1
- package/esm/_chunks/dep-b8263a1c.js +0 -47
- package/esm/_chunks/dep-b8263a1c.js.map +0 -1
- package/esm/_chunks/dep-beac373a.js +0 -27
- package/esm/_chunks/dep-beac373a.js.map +0 -1
- package/esm/_chunks/dep-c8351fc0.js +0 -951
- package/esm/_chunks/dep-c8351fc0.js.map +0 -1
- package/esm/_chunks/dep-cac5f189.js +0 -119
- package/esm/_chunks/dep-cac5f189.js.map +0 -1
- package/esm/_chunks/dep-d098d908.js +0 -8
- package/esm/_chunks/dep-d098d908.js.map +0 -1
- package/esm/_chunks/dep-d2535fd6.js +0 -50
- package/esm/_chunks/dep-d2535fd6.js.map +0 -1
- package/esm/_chunks/dep-d44ac8a4.js +0 -190
- package/esm/_chunks/dep-d44ac8a4.js.map +0 -1
- package/esm/_chunks/dep-e2a0e7b2.js +0 -27
- package/esm/_chunks/dep-e2a0e7b2.js.map +0 -1
- package/esm/_chunks/dep-ea69dcf8.js +0 -47
- package/esm/_chunks/dep-ea69dcf8.js.map +0 -1
- package/esm/_chunks/dep-ee2e5653.js +0 -84
- package/esm/_chunks/dep-ee2e5653.js.map +0 -1
- package/esm/_chunks/dep-f5f7d3f4.js +0 -68
- package/esm/_chunks/dep-f5f7d3f4.js.map +0 -1
- package/esm/_chunks/dep-f88db21e.js +0 -33
- package/esm/_chunks/dep-f88db21e.js.map +0 -1
- package/esm/_chunks/dep-fcfd7649.js +0 -85
- package/esm/_chunks/dep-fcfd7649.js.map +0 -1
- package/esm/date-picker/utils.d.ts +0 -130
- package/esm/date-picker/utils.js +0 -442
- package/esm/date-picker/utils.js.map +0 -1
- package/lib/_chunks/dep-00169190.js +0 -302
- package/lib/_chunks/dep-00169190.js.map +0 -1
- package/lib/_chunks/dep-0268bf88.js +0 -47
- package/lib/_chunks/dep-0268bf88.js.map +0 -1
- package/lib/_chunks/dep-04305406.js +0 -34
- package/lib/_chunks/dep-04305406.js.map +0 -1
- package/lib/_chunks/dep-055d1d0f.js +0 -54
- package/lib/_chunks/dep-055d1d0f.js.map +0 -1
- package/lib/_chunks/dep-060885ed.js +0 -67
- package/lib/_chunks/dep-060885ed.js.map +0 -1
- package/lib/_chunks/dep-0762ef06.js +0 -273
- package/lib/_chunks/dep-0762ef06.js.map +0 -1
- package/lib/_chunks/dep-07c9edb2.js +0 -84
- package/lib/_chunks/dep-07c9edb2.js.map +0 -1
- package/lib/_chunks/dep-124f91c5.js +0 -26
- package/lib/_chunks/dep-124f91c5.js.map +0 -1
- package/lib/_chunks/dep-156c830d.js +0 -24
- package/lib/_chunks/dep-156c830d.js.map +0 -1
- package/lib/_chunks/dep-17892822.js +0 -43
- package/lib/_chunks/dep-17892822.js.map +0 -1
- package/lib/_chunks/dep-18a6adb5.js +0 -189
- package/lib/_chunks/dep-18a6adb5.js.map +0 -1
- package/lib/_chunks/dep-26c74cb0.js +0 -106
- package/lib/_chunks/dep-26c74cb0.js.map +0 -1
- package/lib/_chunks/dep-27d690ce.js +0 -42
- package/lib/_chunks/dep-27d690ce.js.map +0 -1
- package/lib/_chunks/dep-2924d6ff.js +0 -24
- package/lib/_chunks/dep-2924d6ff.js.map +0 -1
- package/lib/_chunks/dep-37f63687.js +0 -950
- package/lib/_chunks/dep-37f63687.js.map +0 -1
- package/lib/_chunks/dep-38f29685.js +0 -83
- package/lib/_chunks/dep-38f29685.js.map +0 -1
- package/lib/_chunks/dep-3dccad86.js +0 -45
- package/lib/_chunks/dep-3dccad86.js.map +0 -1
- package/lib/_chunks/dep-4912e829.js +0 -199
- package/lib/_chunks/dep-4912e829.js.map +0 -1
- package/lib/_chunks/dep-532b8f09.js +0 -196
- package/lib/_chunks/dep-532b8f09.js.map +0 -1
- package/lib/_chunks/dep-5913685b.js +0 -566
- package/lib/_chunks/dep-5913685b.js.map +0 -1
- package/lib/_chunks/dep-5950eb93.js +0 -45
- package/lib/_chunks/dep-5950eb93.js.map +0 -1
- package/lib/_chunks/dep-61d30284.js +0 -92
- package/lib/_chunks/dep-61d30284.js.map +0 -1
- package/lib/_chunks/dep-623f5502.js +0 -44
- package/lib/_chunks/dep-623f5502.js.map +0 -1
- package/lib/_chunks/dep-6ca758b4.js +0 -16
- package/lib/_chunks/dep-6ca758b4.js.map +0 -1
- package/lib/_chunks/dep-6cc953ca.js +0 -33
- package/lib/_chunks/dep-6cc953ca.js.map +0 -1
- package/lib/_chunks/dep-734d525f.js +0 -733
- package/lib/_chunks/dep-734d525f.js.map +0 -1
- package/lib/_chunks/dep-76c67131.js +0 -106
- package/lib/_chunks/dep-76c67131.js.map +0 -1
- package/lib/_chunks/dep-7cf92957.js +0 -41
- package/lib/_chunks/dep-7cf92957.js.map +0 -1
- package/lib/_chunks/dep-7dc750a9.js +0 -860
- package/lib/_chunks/dep-7dc750a9.js.map +0 -1
- package/lib/_chunks/dep-8610b562.js +0 -153
- package/lib/_chunks/dep-8610b562.js.map +0 -1
- package/lib/_chunks/dep-8acca302.js +0 -25
- package/lib/_chunks/dep-8acca302.js.map +0 -1
- package/lib/_chunks/dep-9332bbea.js +0 -23
- package/lib/_chunks/dep-9332bbea.js.map +0 -1
- package/lib/_chunks/dep-93971e86.js +0 -52
- package/lib/_chunks/dep-93971e86.js.map +0 -1
- package/lib/_chunks/dep-97e692ae.js +0 -95
- package/lib/_chunks/dep-97e692ae.js.map +0 -1
- package/lib/_chunks/dep-99f6ab64.js +0 -32
- package/lib/_chunks/dep-99f6ab64.js.map +0 -1
- package/lib/_chunks/dep-a347fb20.js +0 -50
- package/lib/_chunks/dep-a347fb20.js.map +0 -1
- package/lib/_chunks/dep-a554e9c2.js +0 -155
- package/lib/_chunks/dep-a554e9c2.js.map +0 -1
- package/lib/_chunks/dep-ab9c749e.js +0 -26
- package/lib/_chunks/dep-ab9c749e.js.map +0 -1
- package/lib/_chunks/dep-aeb2fb38.js +0 -45
- package/lib/_chunks/dep-aeb2fb38.js.map +0 -1
- package/lib/_chunks/dep-b33ecffe.js +0 -18
- package/lib/_chunks/dep-b33ecffe.js.map +0 -1
- package/lib/_chunks/dep-beac373a.js +0 -27
- package/lib/_chunks/dep-beac373a.js.map +0 -1
- package/lib/_chunks/dep-beebb45e.js +0 -45
- package/lib/_chunks/dep-beebb45e.js.map +0 -1
- package/lib/_chunks/dep-bf08cd6d.js +0 -769
- package/lib/_chunks/dep-bf08cd6d.js.map +0 -1
- package/lib/_chunks/dep-c6576f8f.js +0 -134
- package/lib/_chunks/dep-c6576f8f.js.map +0 -1
- package/lib/_chunks/dep-cc1bc349.js +0 -73
- package/lib/_chunks/dep-cc1bc349.js.map +0 -1
- package/lib/_chunks/dep-d94d4b8e.js +0 -221
- package/lib/_chunks/dep-d94d4b8e.js.map +0 -1
- package/lib/_chunks/dep-e2a4740c.js +0 -49
- package/lib/_chunks/dep-e2a4740c.js.map +0 -1
- package/lib/_chunks/dep-e335ac07.js +0 -230
- package/lib/_chunks/dep-e335ac07.js.map +0 -1
- package/lib/_chunks/dep-e7a51908.js +0 -24
- package/lib/_chunks/dep-e7a51908.js.map +0 -1
- package/lib/_chunks/dep-e7eff919.js +0 -128
- package/lib/_chunks/dep-e7eff919.js.map +0 -1
- package/lib/_chunks/dep-f3f6eedc.js +0 -42
- package/lib/_chunks/dep-f3f6eedc.js.map +0 -1
- package/lib/_chunks/dep-f99c7286.js +0 -386
- package/lib/_chunks/dep-f99c7286.js.map +0 -1
- package/lib/_chunks/dep-fba8d70d.js +0 -116
- package/lib/_chunks/dep-fba8d70d.js.map +0 -1
- package/lib/_chunks/dep-fc84e5e6.js +0 -117
- package/lib/_chunks/dep-fc84e5e6.js.map +0 -1
- package/lib/date-picker/utils.d.ts +0 -130
- package/lib/date-picker/utils.js +0 -439
- package/lib/date-picker/utils.js.map +0 -1
package/dist/tdesign.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* tdesign v0.
|
|
2
|
+
* tdesign v0.23.0
|
|
3
3
|
* (c) 2022 tdesign
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
@@ -37,17 +37,11 @@
|
|
|
37
37
|
function _typeof(obj) {
|
|
38
38
|
"@babel/helpers - typeof";
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
_typeof = function _typeof(obj) {
|
|
46
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
return _typeof(obj);
|
|
40
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
41
|
+
return typeof obj;
|
|
42
|
+
} : function (obj) {
|
|
43
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
44
|
+
}, _typeof(obj);
|
|
51
45
|
}
|
|
52
46
|
|
|
53
47
|
function _arrayWithHoles(arr) {
|
|
@@ -295,7 +289,7 @@
|
|
|
295
289
|
year: "\u8BF7\u9009\u62E9\u5E74\u4EFD"
|
|
296
290
|
},
|
|
297
291
|
weekdays: ["\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D", "\u65E5"],
|
|
298
|
-
months: ["\
|
|
292
|
+
months: ["1 \u6708", "2 \u6708", "3 \u6708", "4 \u6708", "5 \u6708", "6 \u6708", "7 \u6708", "8 \u6708", "9 \u6708", "10 \u6708", "11 \u6708", "12 \u6708"],
|
|
299
293
|
firstDayOfWeek: 0,
|
|
300
294
|
rangeSeparator: " \u81F3 ",
|
|
301
295
|
direction: "ltr",
|
|
@@ -334,9 +328,9 @@
|
|
|
334
328
|
|
|
335
329
|
var _excluded$u = ["width", "className", "style", "children"];
|
|
336
330
|
|
|
337
|
-
function ownKeys$
|
|
331
|
+
function ownKeys$1Z(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
338
332
|
|
|
339
|
-
function _objectSpread$
|
|
333
|
+
function _objectSpread$1Z(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1Z(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1Z(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
340
334
|
|
|
341
335
|
var Aside = function Aside(props) {
|
|
342
336
|
var width = props.width,
|
|
@@ -351,14 +345,14 @@
|
|
|
351
345
|
var asideClassNames = classNames$1("".concat(classPrefix, "-layout__sider"), className);
|
|
352
346
|
var asideWidth = typeof width === "number" ? "".concat(width, "px") : String(width);
|
|
353
347
|
|
|
354
|
-
var asideStyle = _objectSpread$
|
|
348
|
+
var asideStyle = _objectSpread$1Z({
|
|
355
349
|
width: asideWidth,
|
|
356
350
|
maxWidth: asideWidth,
|
|
357
351
|
minWidth: asideWidth,
|
|
358
352
|
flex: "0 0 ".concat(asideWidth)
|
|
359
353
|
}, style);
|
|
360
354
|
|
|
361
|
-
return /* @__PURE__ */React__default["default"].createElement("aside", _objectSpread$
|
|
355
|
+
return /* @__PURE__ */React__default["default"].createElement("aside", _objectSpread$1Z({
|
|
362
356
|
className: asideClassNames,
|
|
363
357
|
style: asideStyle
|
|
364
358
|
}, otherAsideProps), children);
|
|
@@ -374,9 +368,9 @@
|
|
|
374
368
|
_excluded3 = ["className", "style", "children"],
|
|
375
369
|
_excluded4 = ["direction", "className", "style", "children"];
|
|
376
370
|
|
|
377
|
-
function ownKeys$
|
|
371
|
+
function ownKeys$1Y(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
378
372
|
|
|
379
|
-
function _objectSpread$
|
|
373
|
+
function _objectSpread$1Y(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1Y(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1Y(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
380
374
|
|
|
381
375
|
var Header = function Header(props) {
|
|
382
376
|
var _useConfig = useConfig$1(),
|
|
@@ -388,7 +382,7 @@
|
|
|
388
382
|
others = _objectWithoutProperties$1(props, _excluded$t);
|
|
389
383
|
|
|
390
384
|
var headerClassNames = classNames$1("".concat(classPrefix, "-layout__header"), className);
|
|
391
|
-
return /* @__PURE__ */React__default["default"].createElement("header", _objectSpread$
|
|
385
|
+
return /* @__PURE__ */React__default["default"].createElement("header", _objectSpread$1Y({
|
|
392
386
|
className: headerClassNames,
|
|
393
387
|
style: style
|
|
394
388
|
}, others), children);
|
|
@@ -404,7 +398,7 @@
|
|
|
404
398
|
others = _objectWithoutProperties$1(props, _excluded2$2);
|
|
405
399
|
|
|
406
400
|
var footerClassNames = classNames$1("".concat(classPrefix, "-layout__footer"), className);
|
|
407
|
-
return /* @__PURE__ */React__default["default"].createElement("footer", _objectSpread$
|
|
401
|
+
return /* @__PURE__ */React__default["default"].createElement("footer", _objectSpread$1Y({
|
|
408
402
|
className: footerClassNames,
|
|
409
403
|
style: style
|
|
410
404
|
}, others), children);
|
|
@@ -420,7 +414,7 @@
|
|
|
420
414
|
others = _objectWithoutProperties$1(props, _excluded3);
|
|
421
415
|
|
|
422
416
|
var contentClassNames = classNames$1("".concat(classPrefix, "-layout__content"), className);
|
|
423
|
-
return /* @__PURE__ */React__default["default"].createElement("main", _objectSpread$
|
|
417
|
+
return /* @__PURE__ */React__default["default"].createElement("main", _objectSpread$1Y({
|
|
424
418
|
className: contentClassNames,
|
|
425
419
|
style: style
|
|
426
420
|
}, others), children);
|
|
@@ -451,7 +445,7 @@
|
|
|
451
445
|
classPrefix = _useConfig4.classPrefix;
|
|
452
446
|
|
|
453
447
|
var layoutClassNames = classNames$1("".concat(classPrefix, "-layout"), (_classNames = {}, _defineProperty$2(_classNames, "".concat(classPrefix, "-layout--with-sider"), !!asides.length), _defineProperty$2(_classNames, "".concat(classPrefix, "-layout__direction-").concat(direction), direction), _classNames), className);
|
|
454
|
-
return /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$
|
|
448
|
+
return /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$1Y({
|
|
455
449
|
className: layoutClassNames,
|
|
456
450
|
style: style
|
|
457
451
|
}, otherLayoutProps), children);
|
|
@@ -478,9 +472,9 @@
|
|
|
478
472
|
|
|
479
473
|
var _excluded$s = ["flex", "offset", "order", "pull", "push", "span", "tag", "className", "children", "style"];
|
|
480
474
|
|
|
481
|
-
function ownKeys$
|
|
475
|
+
function ownKeys$1X(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
482
476
|
|
|
483
|
-
function _objectSpread$
|
|
477
|
+
function _objectSpread$1X(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1X(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1X(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
484
478
|
|
|
485
479
|
var calcColPadding = function calcColPadding(gutter, currentSize) {
|
|
486
480
|
var paddingObj = {};
|
|
@@ -561,14 +555,14 @@
|
|
|
561
555
|
sizeObj = sizeProp || {};
|
|
562
556
|
}
|
|
563
557
|
|
|
564
|
-
return _objectSpread$
|
|
558
|
+
return _objectSpread$1X(_objectSpread$1X({}, acc), {}, (_objectSpread2 = {}, _defineProperty$2(_objectSpread2, "".concat(classPrefix, "-col-").concat(currSize, "-").concat(sizeObj.span), sizeObj.span !== void 0), _defineProperty$2(_objectSpread2, "".concat(classPrefix, "-col-").concat(currSize, "-order-").concat(sizeObj.order), parseInt(sizeObj.order, 10) >= 0), _defineProperty$2(_objectSpread2, "".concat(classPrefix, "-col-").concat(currSize, "-offset-").concat(sizeObj.offset), parseInt(sizeObj.offset, 10) >= 0), _defineProperty$2(_objectSpread2, "".concat(classPrefix, "-col-").concat(currSize, "-push-").concat(sizeObj.push), parseInt(sizeObj.push, 10) >= 0), _defineProperty$2(_objectSpread2, "".concat(classPrefix, "-col-").concat(currSize, "-pull-").concat(sizeObj.pull), parseInt(sizeObj.pull, 10) >= 0), _objectSpread2));
|
|
565
559
|
}, {});
|
|
566
560
|
var colClassNames = classNames$1("".concat(classPrefix, "-col"), className, (_classNames = {}, _defineProperty$2(_classNames, "".concat(classPrefix, "-col-").concat(span), span !== void 0), _defineProperty$2(_classNames, "".concat(classPrefix, "-col-offset-").concat(offset), parseInt(offset, 10) >= 0), _defineProperty$2(_classNames, "".concat(classPrefix, "-col-pull-").concat(pull), parseInt(pull, 10) >= 0), _defineProperty$2(_classNames, "".concat(classPrefix, "-col-push-").concat(push), parseInt(push, 10) >= 0), _defineProperty$2(_classNames, "".concat(classPrefix, "-col-order-").concat(order), parseInt(order, 10) >= 0), _classNames), sizeClasses);
|
|
567
561
|
|
|
568
|
-
var colStyle = _objectSpread$
|
|
562
|
+
var colStyle = _objectSpread$1X(_objectSpread$1X({}, calcColPadding(rowGutter, rowSize)), propStyle);
|
|
569
563
|
|
|
570
564
|
flex && (colStyle.flex = parseFlex(flex));
|
|
571
|
-
return /*#__PURE__*/React__default["default"].createElement(tag, _objectSpread$
|
|
565
|
+
return /*#__PURE__*/React__default["default"].createElement(tag, _objectSpread$1X({
|
|
572
566
|
className: colClassNames,
|
|
573
567
|
style: colStyle
|
|
574
568
|
}, otherColProps), children);
|
|
@@ -578,9 +572,9 @@
|
|
|
578
572
|
|
|
579
573
|
var _excluded$r = ["align", "gutter", "justify", "tag", "style", "className", "children"];
|
|
580
574
|
|
|
581
|
-
function ownKeys$
|
|
575
|
+
function ownKeys$1W(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
582
576
|
|
|
583
|
-
function _objectSpread$
|
|
577
|
+
function _objectSpread$1W(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1W(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1W(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
584
578
|
|
|
585
579
|
var calcSize = function calcSize(width) {
|
|
586
580
|
var size = "xs";
|
|
@@ -690,7 +684,7 @@
|
|
|
690
684
|
|
|
691
685
|
var rowClassNames = classNames$1("".concat(classPrefix, "-row"), className, (_classNames = {}, _defineProperty$2(_classNames, "".concat(classPrefix, "-row--").concat(justify), true), _defineProperty$2(_classNames, "".concat(classPrefix, "-row--").concat(align), true), _classNames));
|
|
692
686
|
|
|
693
|
-
var rowStyle = _objectSpread$
|
|
687
|
+
var rowStyle = _objectSpread$1W(_objectSpread$1W({}, calcRowStyle(gutter, size)), propStyle);
|
|
694
688
|
|
|
695
689
|
React.useEffect(function () {
|
|
696
690
|
window.addEventListener("resize", updateSize);
|
|
@@ -698,7 +692,7 @@
|
|
|
698
692
|
window.removeEventListener("resize", updateSize);
|
|
699
693
|
};
|
|
700
694
|
});
|
|
701
|
-
return /*#__PURE__*/React__default["default"].createElement(tag, _objectSpread$
|
|
695
|
+
return /*#__PURE__*/React__default["default"].createElement(tag, _objectSpread$1W({
|
|
702
696
|
className: rowClassNames,
|
|
703
697
|
style: rowStyle
|
|
704
698
|
}, otherRowProps), React__default["default"].Children.map(children, function (child) {
|
|
@@ -1169,54 +1163,61 @@
|
|
|
1169
1163
|
});
|
|
1170
1164
|
Portal$1.displayName = "Portal";
|
|
1171
1165
|
|
|
1172
|
-
function
|
|
1166
|
+
function setStyle$1(el, styles) {
|
|
1167
|
+
var keys = Object.keys(styles);
|
|
1168
|
+
keys.forEach(function (key) {
|
|
1169
|
+
el.style[key] = styles[key];
|
|
1170
|
+
});
|
|
1171
|
+
}
|
|
1173
1172
|
|
|
1174
|
-
function
|
|
1173
|
+
function ownKeys$1V(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1174
|
+
|
|
1175
|
+
function _objectSpread$1V(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1V(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1V(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1176
|
+
function circleAdapter(circleElem) {
|
|
1177
|
+
var _window, _window$getComputedSt2, _window2, _window2$navigator;
|
|
1178
|
+
|
|
1179
|
+
var basicStyle = {};
|
|
1180
|
+
|
|
1181
|
+
if (!circleElem) {
|
|
1182
|
+
return;
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
var _window$getComputedSt = (_window = window) === null || _window === void 0 ? void 0 : (_window$getComputedSt2 = _window.getComputedStyle) === null || _window$getComputedSt2 === void 0 ? void 0 : _window$getComputedSt2.call(_window, circleElem),
|
|
1186
|
+
color = _window$getComputedSt.color,
|
|
1187
|
+
fontSize = _window$getComputedSt.fontSize;
|
|
1188
|
+
|
|
1189
|
+
var ua = (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$navigator = _window2.navigator) === null || _window2$navigator === void 0 ? void 0 : _window2$navigator.userAgent;
|
|
1190
|
+
var isSafari = /Safari/.test(ua) && !/Chrome/.test(ua);
|
|
1191
|
+
|
|
1192
|
+
if (isSafari) {
|
|
1193
|
+
basicStyle = {
|
|
1194
|
+
transformOrigin: "-1px -1px",
|
|
1195
|
+
transform: "scale(".concat(parseInt(fontSize, 10) / 14, ")")
|
|
1196
|
+
};
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
if (color) {
|
|
1200
|
+
var matched = color.match(/[\d.]+/g);
|
|
1201
|
+
var endColor = "rgba(".concat(matched[0], ", ").concat(matched[1], ", ").concat(matched[2], ", 0)");
|
|
1202
|
+
setStyle$1(circleElem, _objectSpread$1V(_objectSpread$1V({}, basicStyle), {}, {
|
|
1203
|
+
background: "conic-gradient(from 90deg at 50% 50%,".concat(endColor, " 0deg, ").concat(color, " 360deg)")
|
|
1204
|
+
}));
|
|
1205
|
+
} else {
|
|
1206
|
+
setStyle$1(circleElem, _objectSpread$1V(_objectSpread$1V({}, basicStyle), {}, {
|
|
1207
|
+
background: ""
|
|
1208
|
+
}));
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1175
1211
|
|
|
1176
1212
|
var GradientLoading = function GradientLoading() {
|
|
1177
1213
|
var _useConfig = useConfig$1(),
|
|
1178
1214
|
classPrefix = _useConfig.classPrefix;
|
|
1179
1215
|
|
|
1180
|
-
var _useState = React.useState({}),
|
|
1181
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
1182
|
-
styleFromEnv = _useState2[0],
|
|
1183
|
-
setStyleFromEnv = _useState2[1];
|
|
1184
|
-
|
|
1185
1216
|
var conicRef = React.useRef();
|
|
1186
1217
|
var gradientClass = "".concat(classPrefix, "-loading__gradient");
|
|
1187
1218
|
React.useEffect(function () {
|
|
1188
1219
|
var el = conicRef === null || conicRef === void 0 ? void 0 : conicRef.current;
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
if (el) {
|
|
1192
|
-
var _window, _window$navigator;
|
|
1193
|
-
|
|
1194
|
-
var _getComputedStyle = getComputedStyle(el),
|
|
1195
|
-
fontSize = _getComputedStyle.fontSize,
|
|
1196
|
-
color = _getComputedStyle.color;
|
|
1197
|
-
|
|
1198
|
-
var ua = (_window = window) === null || _window === void 0 ? void 0 : (_window$navigator = _window.navigator) === null || _window$navigator === void 0 ? void 0 : _window$navigator.userAgent;
|
|
1199
|
-
var isSafari = /Safari/.test(ua) && !/Chrome/.test(ua);
|
|
1200
|
-
|
|
1201
|
-
if (isSafari) {
|
|
1202
|
-
basicStyle = {
|
|
1203
|
-
transformOrigin: "-1px -1px",
|
|
1204
|
-
transform: "scale(".concat(parseInt(fontSize, 10) / 14, ")")
|
|
1205
|
-
};
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
|
-
if (color) {
|
|
1209
|
-
var matched = color.match(/[\d.]+/g);
|
|
1210
|
-
var endColor = "rgba(".concat(matched[0], ", ").concat(matched[1], ", ").concat(matched[2], ", 0)");
|
|
1211
|
-
setStyleFromEnv(_objectSpread$1U(_objectSpread$1U({}, basicStyle), {}, {
|
|
1212
|
-
background: "conic-gradient(from 90deg at 50% 50%,".concat(endColor, " 0deg, ").concat(color, " 360deg)")
|
|
1213
|
-
}));
|
|
1214
|
-
} else {
|
|
1215
|
-
setStyleFromEnv(_objectSpread$1U(_objectSpread$1U({}, basicStyle), {}, {
|
|
1216
|
-
background: ""
|
|
1217
|
-
}));
|
|
1218
|
-
}
|
|
1219
|
-
}
|
|
1220
|
+
circleAdapter(el);
|
|
1220
1221
|
}, []);
|
|
1221
1222
|
return /* @__PURE__ */React__default["default"].createElement("svg", {
|
|
1222
1223
|
className: classNames$1(gradientClass, "".concat(classPrefix, "-icon-loading")),
|
|
@@ -1232,11 +1233,14 @@
|
|
|
1232
1233
|
height: "12"
|
|
1233
1234
|
}, /* @__PURE__ */React__default["default"].createElement("div", {
|
|
1234
1235
|
className: "".concat(gradientClass, "-conic"),
|
|
1235
|
-
style: styleFromEnv,
|
|
1236
1236
|
ref: conicRef
|
|
1237
1237
|
})));
|
|
1238
1238
|
};
|
|
1239
1239
|
|
|
1240
|
+
function ownKeys$1U(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1241
|
+
|
|
1242
|
+
function _objectSpread$1U(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1U(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1U(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1243
|
+
|
|
1240
1244
|
var Loading$1 = function Loading(props) {
|
|
1241
1245
|
var attach = props.attach,
|
|
1242
1246
|
_props$indicator = props.indicator,
|
|
@@ -1258,7 +1262,8 @@
|
|
|
1258
1262
|
_props$inheritColor = props.inheritColor,
|
|
1259
1263
|
inheritColor = _props$inheritColor === void 0 ? false : _props$inheritColor,
|
|
1260
1264
|
zIndex = props.zIndex,
|
|
1261
|
-
className = props.className
|
|
1265
|
+
className = props.className,
|
|
1266
|
+
style = props.style;
|
|
1262
1267
|
|
|
1263
1268
|
var _useState = React.useState(delay ? false : loading),
|
|
1264
1269
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -1303,8 +1308,8 @@
|
|
|
1303
1308
|
styles["font-size"] = size;
|
|
1304
1309
|
}
|
|
1305
1310
|
|
|
1306
|
-
return styles;
|
|
1307
|
-
}, [size, zIndex]);
|
|
1311
|
+
return style ? _objectSpread$1U(_objectSpread$1U({}, styles), style) : styles;
|
|
1312
|
+
}, [size, zIndex, style]);
|
|
1308
1313
|
var sizeMap = {
|
|
1309
1314
|
large: "".concat(classPrefix, "-size-l"),
|
|
1310
1315
|
small: "".concat(classPrefix, "-size-s"),
|
|
@@ -3920,269 +3925,6 @@
|
|
|
3920
3925
|
|
|
3921
3926
|
var useIsomorphicLayoutEffect = typeof window !== 'undefined' && window.document && window.document.createElement ? React__namespace.useLayoutEffect : React__namespace.useEffect;
|
|
3922
3927
|
|
|
3923
|
-
function getBoundingClientRect(element) {
|
|
3924
|
-
var rect = element.getBoundingClientRect();
|
|
3925
|
-
return {
|
|
3926
|
-
width: rect.width,
|
|
3927
|
-
height: rect.height,
|
|
3928
|
-
top: rect.top,
|
|
3929
|
-
right: rect.right,
|
|
3930
|
-
bottom: rect.bottom,
|
|
3931
|
-
left: rect.left,
|
|
3932
|
-
x: rect.left,
|
|
3933
|
-
y: rect.top
|
|
3934
|
-
};
|
|
3935
|
-
}
|
|
3936
|
-
|
|
3937
|
-
/*:: import type { Window } from '../types'; */
|
|
3938
|
-
|
|
3939
|
-
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
3940
|
-
function getWindow(node) {
|
|
3941
|
-
if (node.toString() !== '[object Window]') {
|
|
3942
|
-
var ownerDocument = node.ownerDocument;
|
|
3943
|
-
return ownerDocument ? ownerDocument.defaultView : window;
|
|
3944
|
-
}
|
|
3945
|
-
|
|
3946
|
-
return node;
|
|
3947
|
-
}
|
|
3948
|
-
|
|
3949
|
-
function getWindowScroll(node) {
|
|
3950
|
-
var win = getWindow(node);
|
|
3951
|
-
var scrollLeft = win.pageXOffset;
|
|
3952
|
-
var scrollTop = win.pageYOffset;
|
|
3953
|
-
return {
|
|
3954
|
-
scrollLeft: scrollLeft,
|
|
3955
|
-
scrollTop: scrollTop
|
|
3956
|
-
};
|
|
3957
|
-
}
|
|
3958
|
-
|
|
3959
|
-
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
3960
|
-
Element); */
|
|
3961
|
-
|
|
3962
|
-
function isElement(node) {
|
|
3963
|
-
var OwnElement = getWindow(node).Element;
|
|
3964
|
-
return node instanceof OwnElement || node instanceof Element;
|
|
3965
|
-
}
|
|
3966
|
-
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
3967
|
-
HTMLElement); */
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
function isHTMLElement(node) {
|
|
3971
|
-
var OwnElement = getWindow(node).HTMLElement;
|
|
3972
|
-
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
3973
|
-
}
|
|
3974
|
-
|
|
3975
|
-
function getHTMLElementScroll(element) {
|
|
3976
|
-
return {
|
|
3977
|
-
scrollLeft: element.scrollLeft,
|
|
3978
|
-
scrollTop: element.scrollTop
|
|
3979
|
-
};
|
|
3980
|
-
}
|
|
3981
|
-
|
|
3982
|
-
function getNodeScroll(node) {
|
|
3983
|
-
if (node === getWindow(node) || !isHTMLElement(node)) {
|
|
3984
|
-
return getWindowScroll(node);
|
|
3985
|
-
} else {
|
|
3986
|
-
return getHTMLElementScroll(node);
|
|
3987
|
-
}
|
|
3988
|
-
}
|
|
3989
|
-
|
|
3990
|
-
function getNodeName(element) {
|
|
3991
|
-
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
3992
|
-
}
|
|
3993
|
-
|
|
3994
|
-
function getDocumentElement(element) {
|
|
3995
|
-
// $FlowFixMe: assume body is always available
|
|
3996
|
-
return (isElement(element) ? element.ownerDocument : element.document).documentElement;
|
|
3997
|
-
}
|
|
3998
|
-
|
|
3999
|
-
function getWindowScrollBarX(element) {
|
|
4000
|
-
// If <html> has a CSS width greater than the viewport, then this will be
|
|
4001
|
-
// incorrect for RTL.
|
|
4002
|
-
// Popper 1 is broken in this case and never had a bug report so let's assume
|
|
4003
|
-
// it's not an issue. I don't think anyone ever specifies width on <html>
|
|
4004
|
-
// anyway.
|
|
4005
|
-
// Browsers where the left scrollbar doesn't cause an issue report `0` for
|
|
4006
|
-
// this (e.g. Edge 2019, IE11, Safari)
|
|
4007
|
-
return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
|
|
4008
|
-
}
|
|
4009
|
-
|
|
4010
|
-
function getComputedStyle$1(element) {
|
|
4011
|
-
return getWindow(element).getComputedStyle(element);
|
|
4012
|
-
}
|
|
4013
|
-
|
|
4014
|
-
function isScrollParent(element) {
|
|
4015
|
-
// Firefox wants us to check `-x` and `-y` variations as well
|
|
4016
|
-
var _getComputedStyle = getComputedStyle$1(element),
|
|
4017
|
-
overflow = _getComputedStyle.overflow,
|
|
4018
|
-
overflowX = _getComputedStyle.overflowX,
|
|
4019
|
-
overflowY = _getComputedStyle.overflowY;
|
|
4020
|
-
|
|
4021
|
-
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
|
|
4022
|
-
}
|
|
4023
|
-
|
|
4024
|
-
// Composite means it takes into account transforms as well as layout.
|
|
4025
|
-
|
|
4026
|
-
function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
4027
|
-
if (isFixed === void 0) {
|
|
4028
|
-
isFixed = false;
|
|
4029
|
-
}
|
|
4030
|
-
|
|
4031
|
-
var documentElement = getDocumentElement(offsetParent);
|
|
4032
|
-
var rect = getBoundingClientRect(elementOrVirtualElement);
|
|
4033
|
-
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
4034
|
-
var scroll = {
|
|
4035
|
-
scrollLeft: 0,
|
|
4036
|
-
scrollTop: 0
|
|
4037
|
-
};
|
|
4038
|
-
var offsets = {
|
|
4039
|
-
x: 0,
|
|
4040
|
-
y: 0
|
|
4041
|
-
};
|
|
4042
|
-
|
|
4043
|
-
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
4044
|
-
if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078
|
|
4045
|
-
isScrollParent(documentElement)) {
|
|
4046
|
-
scroll = getNodeScroll(offsetParent);
|
|
4047
|
-
}
|
|
4048
|
-
|
|
4049
|
-
if (isHTMLElement(offsetParent)) {
|
|
4050
|
-
offsets = getBoundingClientRect(offsetParent);
|
|
4051
|
-
offsets.x += offsetParent.clientLeft;
|
|
4052
|
-
offsets.y += offsetParent.clientTop;
|
|
4053
|
-
} else if (documentElement) {
|
|
4054
|
-
offsets.x = getWindowScrollBarX(documentElement);
|
|
4055
|
-
}
|
|
4056
|
-
}
|
|
4057
|
-
|
|
4058
|
-
return {
|
|
4059
|
-
x: rect.left + scroll.scrollLeft - offsets.x,
|
|
4060
|
-
y: rect.top + scroll.scrollTop - offsets.y,
|
|
4061
|
-
width: rect.width,
|
|
4062
|
-
height: rect.height
|
|
4063
|
-
};
|
|
4064
|
-
}
|
|
4065
|
-
|
|
4066
|
-
// Returns the layout rect of an element relative to its offsetParent. Layout
|
|
4067
|
-
// means it doesn't take into account transforms.
|
|
4068
|
-
function getLayoutRect(element) {
|
|
4069
|
-
return {
|
|
4070
|
-
x: element.offsetLeft,
|
|
4071
|
-
y: element.offsetTop,
|
|
4072
|
-
width: element.offsetWidth,
|
|
4073
|
-
height: element.offsetHeight
|
|
4074
|
-
};
|
|
4075
|
-
}
|
|
4076
|
-
|
|
4077
|
-
function getParentNode(element) {
|
|
4078
|
-
if (getNodeName(element) === 'html') {
|
|
4079
|
-
return element;
|
|
4080
|
-
}
|
|
4081
|
-
|
|
4082
|
-
return (// $FlowFixMe: this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
4083
|
-
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
4084
|
-
element.parentNode || // DOM Element detected
|
|
4085
|
-
// $FlowFixMe: need a better way to handle this...
|
|
4086
|
-
element.host || // ShadowRoot detected
|
|
4087
|
-
// $FlowFixMe: HTMLElement is a Node
|
|
4088
|
-
getDocumentElement(element) // fallback
|
|
4089
|
-
|
|
4090
|
-
);
|
|
4091
|
-
}
|
|
4092
|
-
|
|
4093
|
-
function getScrollParent(node) {
|
|
4094
|
-
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
|
4095
|
-
// $FlowFixMe: assume body is always available
|
|
4096
|
-
return node.ownerDocument.body;
|
|
4097
|
-
}
|
|
4098
|
-
|
|
4099
|
-
if (isHTMLElement(node) && isScrollParent(node)) {
|
|
4100
|
-
return node;
|
|
4101
|
-
}
|
|
4102
|
-
|
|
4103
|
-
return getScrollParent(getParentNode(node));
|
|
4104
|
-
}
|
|
4105
|
-
|
|
4106
|
-
/*
|
|
4107
|
-
given a DOM element, return the list of all scroll parents, up the list of ancesors
|
|
4108
|
-
until we get to the top window object. This list is what we attach scroll listeners
|
|
4109
|
-
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
4110
|
-
reference element's position.
|
|
4111
|
-
*/
|
|
4112
|
-
|
|
4113
|
-
function listScrollParents(element, list) {
|
|
4114
|
-
if (list === void 0) {
|
|
4115
|
-
list = [];
|
|
4116
|
-
}
|
|
4117
|
-
|
|
4118
|
-
var scrollParent = getScrollParent(element);
|
|
4119
|
-
var isBody = getNodeName(scrollParent) === 'body';
|
|
4120
|
-
var win = getWindow(scrollParent);
|
|
4121
|
-
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
4122
|
-
var updatedList = list.concat(target);
|
|
4123
|
-
return isBody ? updatedList : // $FlowFixMe: isBody tells us target will be an HTMLElement here
|
|
4124
|
-
updatedList.concat(listScrollParents(getParentNode(target)));
|
|
4125
|
-
}
|
|
4126
|
-
|
|
4127
|
-
function isTableElement(element) {
|
|
4128
|
-
return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;
|
|
4129
|
-
}
|
|
4130
|
-
|
|
4131
|
-
function getTrueOffsetParent(element) {
|
|
4132
|
-
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
4133
|
-
getComputedStyle$1(element).position === 'fixed') {
|
|
4134
|
-
return null;
|
|
4135
|
-
}
|
|
4136
|
-
|
|
4137
|
-
var offsetParent = element.offsetParent;
|
|
4138
|
-
|
|
4139
|
-
if (offsetParent) {
|
|
4140
|
-
var html = getDocumentElement(offsetParent);
|
|
4141
|
-
|
|
4142
|
-
if (getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static' && getComputedStyle$1(html).position !== 'static') {
|
|
4143
|
-
return html;
|
|
4144
|
-
}
|
|
4145
|
-
}
|
|
4146
|
-
|
|
4147
|
-
return offsetParent;
|
|
4148
|
-
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
4149
|
-
// return the containing block
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
function getContainingBlock(element) {
|
|
4153
|
-
var currentNode = getParentNode(element);
|
|
4154
|
-
|
|
4155
|
-
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
4156
|
-
var css = getComputedStyle$1(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
4157
|
-
// create a containing block.
|
|
4158
|
-
|
|
4159
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== 'auto') {
|
|
4160
|
-
return currentNode;
|
|
4161
|
-
} else {
|
|
4162
|
-
currentNode = currentNode.parentNode;
|
|
4163
|
-
}
|
|
4164
|
-
}
|
|
4165
|
-
|
|
4166
|
-
return null;
|
|
4167
|
-
} // Gets the closest ancestor positioned element. Handles some edge cases,
|
|
4168
|
-
// such as table ancestors and cross browser bugs.
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
function getOffsetParent(element) {
|
|
4172
|
-
var window = getWindow(element);
|
|
4173
|
-
var offsetParent = getTrueOffsetParent(element);
|
|
4174
|
-
|
|
4175
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {
|
|
4176
|
-
offsetParent = getTrueOffsetParent(offsetParent);
|
|
4177
|
-
}
|
|
4178
|
-
|
|
4179
|
-
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static') {
|
|
4180
|
-
return window;
|
|
4181
|
-
}
|
|
4182
|
-
|
|
4183
|
-
return offsetParent || getContainingBlock(element) || window;
|
|
4184
|
-
}
|
|
4185
|
-
|
|
4186
3928
|
var top = 'top';
|
|
4187
3929
|
var bottom = 'bottom';
|
|
4188
3930
|
var right = 'right';
|
|
@@ -4215,256 +3957,207 @@
|
|
|
4215
3957
|
var afterWrite = 'afterWrite';
|
|
4216
3958
|
var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
|
|
4217
3959
|
|
|
4218
|
-
function
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
var result = [];
|
|
4222
|
-
modifiers.forEach(function (modifier) {
|
|
4223
|
-
map.set(modifier.name, modifier);
|
|
4224
|
-
}); // On visiting object, check for its dependencies and visit them recursively
|
|
3960
|
+
function getNodeName(element) {
|
|
3961
|
+
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
3962
|
+
}
|
|
4225
3963
|
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
if (!visited.has(dep)) {
|
|
4231
|
-
var depModifier = map.get(dep);
|
|
3964
|
+
function getWindow(node) {
|
|
3965
|
+
if (node == null) {
|
|
3966
|
+
return window;
|
|
3967
|
+
}
|
|
4232
3968
|
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
}
|
|
4237
|
-
});
|
|
4238
|
-
result.push(modifier);
|
|
3969
|
+
if (node.toString() !== '[object Window]') {
|
|
3970
|
+
var ownerDocument = node.ownerDocument;
|
|
3971
|
+
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
4239
3972
|
}
|
|
4240
3973
|
|
|
4241
|
-
|
|
4242
|
-
if (!visited.has(modifier.name)) {
|
|
4243
|
-
// check for visited object
|
|
4244
|
-
sort(modifier);
|
|
4245
|
-
}
|
|
4246
|
-
});
|
|
4247
|
-
return result;
|
|
3974
|
+
return node;
|
|
4248
3975
|
}
|
|
4249
3976
|
|
|
4250
|
-
function
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
return modifierPhases.reduce(function (acc, phase) {
|
|
4255
|
-
return acc.concat(orderedModifiers.filter(function (modifier) {
|
|
4256
|
-
return modifier.phase === phase;
|
|
4257
|
-
}));
|
|
4258
|
-
}, []);
|
|
3977
|
+
function isElement(node) {
|
|
3978
|
+
var OwnElement = getWindow(node).Element;
|
|
3979
|
+
return node instanceof OwnElement || node instanceof Element;
|
|
4259
3980
|
}
|
|
4260
3981
|
|
|
4261
|
-
function
|
|
4262
|
-
var
|
|
4263
|
-
return
|
|
4264
|
-
if (!pending) {
|
|
4265
|
-
pending = new Promise(function (resolve) {
|
|
4266
|
-
Promise.resolve().then(function () {
|
|
4267
|
-
pending = undefined;
|
|
4268
|
-
resolve(fn());
|
|
4269
|
-
});
|
|
4270
|
-
});
|
|
4271
|
-
}
|
|
4272
|
-
|
|
4273
|
-
return pending;
|
|
4274
|
-
};
|
|
3982
|
+
function isHTMLElement(node) {
|
|
3983
|
+
var OwnElement = getWindow(node).HTMLElement;
|
|
3984
|
+
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
4275
3985
|
}
|
|
4276
3986
|
|
|
4277
|
-
function
|
|
4278
|
-
|
|
4279
|
-
|
|
3987
|
+
function isShadowRoot(node) {
|
|
3988
|
+
// IE 11 has no ShadowRoot
|
|
3989
|
+
if (typeof ShadowRoot === 'undefined') {
|
|
3990
|
+
return false;
|
|
4280
3991
|
}
|
|
4281
3992
|
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
}, str);
|
|
3993
|
+
var OwnElement = getWindow(node).ShadowRoot;
|
|
3994
|
+
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
4285
3995
|
}
|
|
4286
3996
|
|
|
4287
|
-
|
|
4288
|
-
var MISSING_DEPENDENCY_ERROR = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available';
|
|
4289
|
-
var VALID_PROPERTIES = ['name', 'enabled', 'phase', 'fn', 'effect', 'requires', 'options'];
|
|
4290
|
-
function validateModifiers(modifiers) {
|
|
4291
|
-
modifiers.forEach(function (modifier) {
|
|
4292
|
-
Object.keys(modifier).forEach(function (key) {
|
|
4293
|
-
switch (key) {
|
|
4294
|
-
case 'name':
|
|
4295
|
-
if (typeof modifier.name !== 'string') {
|
|
4296
|
-
console.error(format(INVALID_MODIFIER_ERROR, String(modifier.name), '"name"', '"string"', "\"" + String(modifier.name) + "\""));
|
|
4297
|
-
}
|
|
4298
|
-
|
|
4299
|
-
break;
|
|
4300
|
-
|
|
4301
|
-
case 'enabled':
|
|
4302
|
-
if (typeof modifier.enabled !== 'boolean') {
|
|
4303
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"enabled"', '"boolean"', "\"" + String(modifier.enabled) + "\""));
|
|
4304
|
-
}
|
|
4305
|
-
|
|
4306
|
-
case 'phase':
|
|
4307
|
-
if (modifierPhases.indexOf(modifier.phase) < 0) {
|
|
4308
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"phase"', "either " + modifierPhases.join(', '), "\"" + String(modifier.phase) + "\""));
|
|
4309
|
-
}
|
|
4310
|
-
|
|
4311
|
-
break;
|
|
3997
|
+
// and applies them to the HTMLElements such as popper and arrow
|
|
4312
3998
|
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
3999
|
+
function applyStyles(_ref) {
|
|
4000
|
+
var state = _ref.state;
|
|
4001
|
+
Object.keys(state.elements).forEach(function (name) {
|
|
4002
|
+
var style = state.styles[name] || {};
|
|
4003
|
+
var attributes = state.attributes[name] || {};
|
|
4004
|
+
var element = state.elements[name]; // arrow is optional + virtual elements
|
|
4317
4005
|
|
|
4318
|
-
|
|
4006
|
+
if (!isHTMLElement(element) || !getNodeName(element)) {
|
|
4007
|
+
return;
|
|
4008
|
+
} // Flow doesn't support to extend this property, but it's the most
|
|
4009
|
+
// effective way to apply styles to an HTMLElement
|
|
4010
|
+
// $FlowFixMe[cannot-write]
|
|
4319
4011
|
|
|
4320
|
-
case 'effect':
|
|
4321
|
-
if (typeof modifier.effect !== 'function') {
|
|
4322
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"effect"', '"function"', "\"" + String(modifier.fn) + "\""));
|
|
4323
|
-
}
|
|
4324
4012
|
|
|
4325
|
-
|
|
4013
|
+
Object.assign(element.style, style);
|
|
4014
|
+
Object.keys(attributes).forEach(function (name) {
|
|
4015
|
+
var value = attributes[name];
|
|
4326
4016
|
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4017
|
+
if (value === false) {
|
|
4018
|
+
element.removeAttribute(name);
|
|
4019
|
+
} else {
|
|
4020
|
+
element.setAttribute(name, value === true ? '' : value);
|
|
4021
|
+
}
|
|
4022
|
+
});
|
|
4023
|
+
});
|
|
4024
|
+
}
|
|
4331
4025
|
|
|
4332
|
-
|
|
4026
|
+
function effect$2(_ref2) {
|
|
4027
|
+
var state = _ref2.state;
|
|
4028
|
+
var initialStyles = {
|
|
4029
|
+
popper: {
|
|
4030
|
+
position: state.options.strategy,
|
|
4031
|
+
left: '0',
|
|
4032
|
+
top: '0',
|
|
4033
|
+
margin: '0'
|
|
4034
|
+
},
|
|
4035
|
+
arrow: {
|
|
4036
|
+
position: 'absolute'
|
|
4037
|
+
},
|
|
4038
|
+
reference: {}
|
|
4039
|
+
};
|
|
4040
|
+
Object.assign(state.elements.popper.style, initialStyles.popper);
|
|
4041
|
+
state.styles = initialStyles;
|
|
4333
4042
|
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
}
|
|
4043
|
+
if (state.elements.arrow) {
|
|
4044
|
+
Object.assign(state.elements.arrow.style, initialStyles.arrow);
|
|
4045
|
+
}
|
|
4338
4046
|
|
|
4339
|
-
|
|
4047
|
+
return function () {
|
|
4048
|
+
Object.keys(state.elements).forEach(function (name) {
|
|
4049
|
+
var element = state.elements[name];
|
|
4050
|
+
var attributes = state.attributes[name] || {};
|
|
4051
|
+
var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them
|
|
4340
4052
|
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4053
|
+
var style = styleProperties.reduce(function (style, property) {
|
|
4054
|
+
style[property] = '';
|
|
4055
|
+
return style;
|
|
4056
|
+
}, {}); // arrow is optional + virtual elements
|
|
4344
4057
|
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
return "\"" + s + "\"";
|
|
4348
|
-
}).join(', ') + "; but \"" + key + "\" was provided.");
|
|
4058
|
+
if (!isHTMLElement(element) || !getNodeName(element)) {
|
|
4059
|
+
return;
|
|
4349
4060
|
}
|
|
4350
4061
|
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
}) == null) {
|
|
4355
|
-
console.error(format(MISSING_DEPENDENCY_ERROR, String(modifier.name), requirement, requirement));
|
|
4356
|
-
}
|
|
4062
|
+
Object.assign(element.style, style);
|
|
4063
|
+
Object.keys(attributes).forEach(function (attribute) {
|
|
4064
|
+
element.removeAttribute(attribute);
|
|
4357
4065
|
});
|
|
4358
4066
|
});
|
|
4359
|
-
}
|
|
4360
|
-
}
|
|
4067
|
+
};
|
|
4068
|
+
} // eslint-disable-next-line import/no-unused-modules
|
|
4361
4069
|
|
|
4362
|
-
function uniqueBy(arr, fn) {
|
|
4363
|
-
var identifiers = new Set();
|
|
4364
|
-
return arr.filter(function (item) {
|
|
4365
|
-
var identifier = fn(item);
|
|
4366
4070
|
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4071
|
+
var applyStyles$1 = {
|
|
4072
|
+
name: 'applyStyles',
|
|
4073
|
+
enabled: true,
|
|
4074
|
+
phase: 'write',
|
|
4075
|
+
fn: applyStyles,
|
|
4076
|
+
effect: effect$2,
|
|
4077
|
+
requires: ['computeStyles']
|
|
4078
|
+
};
|
|
4373
4079
|
|
|
4374
4080
|
function getBasePlacement(placement) {
|
|
4375
4081
|
return placement.split('-')[0];
|
|
4376
4082
|
}
|
|
4377
4083
|
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
merged[current.name] = existing ? Object.assign(Object.assign(Object.assign({}, existing), current), {}, {
|
|
4382
|
-
options: Object.assign(Object.assign({}, existing.options), current.options),
|
|
4383
|
-
data: Object.assign(Object.assign({}, existing.data), current.data)
|
|
4384
|
-
}) : current;
|
|
4385
|
-
return merged;
|
|
4386
|
-
}, {}); // IE11 does not support Object.values
|
|
4084
|
+
var max = Math.max;
|
|
4085
|
+
var min = Math.min;
|
|
4086
|
+
var round = Math.round;
|
|
4387
4087
|
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4088
|
+
function getBoundingClientRect(element, includeScale) {
|
|
4089
|
+
if (includeScale === void 0) {
|
|
4090
|
+
includeScale = false;
|
|
4091
|
+
}
|
|
4392
4092
|
|
|
4393
|
-
|
|
4394
|
-
var
|
|
4395
|
-
var
|
|
4396
|
-
var visualViewport = win.visualViewport;
|
|
4397
|
-
var width = html.clientWidth;
|
|
4398
|
-
var height = html.clientHeight;
|
|
4399
|
-
var x = 0;
|
|
4400
|
-
var y = 0; // NB: This isn't supported on iOS <= 12. If the keyboard is open, the popper
|
|
4401
|
-
// can be obscured underneath it.
|
|
4402
|
-
// Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even
|
|
4403
|
-
// if it isn't open, so if this isn't available, the popper will be detected
|
|
4404
|
-
// to overflow the bottom of the screen too early.
|
|
4093
|
+
var rect = element.getBoundingClientRect();
|
|
4094
|
+
var scaleX = 1;
|
|
4095
|
+
var scaleY = 1;
|
|
4405
4096
|
|
|
4406
|
-
if (
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
//
|
|
4410
|
-
// errors due to floating point numbers, so we need to check precision.
|
|
4411
|
-
// Safari returns a number <= 0, usually < -1 when pinch-zoomed
|
|
4412
|
-
// Feature detection fails in mobile emulation mode in Chrome.
|
|
4413
|
-
// Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <
|
|
4414
|
-
// 0.001
|
|
4415
|
-
// Fallback here: "Not Safari" userAgent
|
|
4097
|
+
if (isHTMLElement(element) && includeScale) {
|
|
4098
|
+
var offsetHeight = element.offsetHeight;
|
|
4099
|
+
var offsetWidth = element.offsetWidth; // Do not attempt to divide by 0, otherwise we get `Infinity` as scale
|
|
4100
|
+
// Fallback to 1 in case both values are `0`
|
|
4416
4101
|
|
|
4417
|
-
if (
|
|
4418
|
-
|
|
4419
|
-
|
|
4102
|
+
if (offsetWidth > 0) {
|
|
4103
|
+
scaleX = round(rect.width) / offsetWidth || 1;
|
|
4104
|
+
}
|
|
4105
|
+
|
|
4106
|
+
if (offsetHeight > 0) {
|
|
4107
|
+
scaleY = round(rect.height) / offsetHeight || 1;
|
|
4420
4108
|
}
|
|
4421
4109
|
}
|
|
4422
4110
|
|
|
4423
4111
|
return {
|
|
4424
|
-
width: width,
|
|
4425
|
-
height: height,
|
|
4426
|
-
|
|
4427
|
-
|
|
4112
|
+
width: rect.width / scaleX,
|
|
4113
|
+
height: rect.height / scaleY,
|
|
4114
|
+
top: rect.top / scaleY,
|
|
4115
|
+
right: rect.right / scaleX,
|
|
4116
|
+
bottom: rect.bottom / scaleY,
|
|
4117
|
+
left: rect.left / scaleX,
|
|
4118
|
+
x: rect.left / scaleX,
|
|
4119
|
+
y: rect.top / scaleY
|
|
4428
4120
|
};
|
|
4429
4121
|
}
|
|
4430
4122
|
|
|
4431
|
-
//
|
|
4123
|
+
// means it doesn't take into account transforms.
|
|
4432
4124
|
|
|
4433
|
-
function
|
|
4434
|
-
var
|
|
4435
|
-
|
|
4436
|
-
var body = element.ownerDocument.body;
|
|
4437
|
-
var width = Math.max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
4438
|
-
var height = Math.max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
4439
|
-
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
4440
|
-
var y = -winScroll.scrollTop;
|
|
4125
|
+
function getLayoutRect(element) {
|
|
4126
|
+
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
4127
|
+
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
4441
4128
|
|
|
4442
|
-
|
|
4443
|
-
|
|
4129
|
+
var width = element.offsetWidth;
|
|
4130
|
+
var height = element.offsetHeight;
|
|
4131
|
+
|
|
4132
|
+
if (Math.abs(clientRect.width - width) <= 1) {
|
|
4133
|
+
width = clientRect.width;
|
|
4134
|
+
}
|
|
4135
|
+
|
|
4136
|
+
if (Math.abs(clientRect.height - height) <= 1) {
|
|
4137
|
+
height = clientRect.height;
|
|
4444
4138
|
}
|
|
4445
4139
|
|
|
4446
4140
|
return {
|
|
4141
|
+
x: element.offsetLeft,
|
|
4142
|
+
y: element.offsetTop,
|
|
4447
4143
|
width: width,
|
|
4448
|
-
height: height
|
|
4449
|
-
x: x,
|
|
4450
|
-
y: y
|
|
4144
|
+
height: height
|
|
4451
4145
|
};
|
|
4452
4146
|
}
|
|
4453
4147
|
|
|
4454
4148
|
function contains(parent, child) {
|
|
4455
|
-
|
|
4456
|
-
var isShadow = Boolean(child.getRootNode && child.getRootNode().host); // First, attempt with faster native method
|
|
4149
|
+
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
|
|
4457
4150
|
|
|
4458
4151
|
if (parent.contains(child)) {
|
|
4459
4152
|
return true;
|
|
4460
4153
|
} // then fallback to custom implementation with Shadow DOM support
|
|
4461
|
-
else if (
|
|
4154
|
+
else if (rootNode && isShadowRoot(rootNode)) {
|
|
4462
4155
|
var next = child;
|
|
4463
4156
|
|
|
4464
4157
|
do {
|
|
4465
4158
|
if (next && parent.isSameNode(next)) {
|
|
4466
4159
|
return true;
|
|
4467
|
-
} // $FlowFixMe: need a better way to handle this...
|
|
4160
|
+
} // $FlowFixMe[prop-missing]: need a better way to handle this...
|
|
4468
4161
|
|
|
4469
4162
|
|
|
4470
4163
|
next = next.parentNode || next.host;
|
|
@@ -4475,142 +4168,105 @@
|
|
|
4475
4168
|
return false;
|
|
4476
4169
|
}
|
|
4477
4170
|
|
|
4478
|
-
function
|
|
4479
|
-
return
|
|
4480
|
-
left: rect.x,
|
|
4481
|
-
top: rect.y,
|
|
4482
|
-
right: rect.x + rect.width,
|
|
4483
|
-
bottom: rect.y + rect.height
|
|
4484
|
-
});
|
|
4171
|
+
function getComputedStyle$1(element) {
|
|
4172
|
+
return getWindow(element).getComputedStyle(element);
|
|
4485
4173
|
}
|
|
4486
4174
|
|
|
4487
|
-
function
|
|
4488
|
-
|
|
4489
|
-
rect.top = rect.top + element.clientTop;
|
|
4490
|
-
rect.left = rect.left + element.clientLeft;
|
|
4491
|
-
rect.bottom = rect.top + element.clientHeight;
|
|
4492
|
-
rect.right = rect.left + element.clientWidth;
|
|
4493
|
-
rect.width = element.clientWidth;
|
|
4494
|
-
rect.height = element.clientHeight;
|
|
4495
|
-
rect.x = rect.left;
|
|
4496
|
-
rect.y = rect.top;
|
|
4497
|
-
return rect;
|
|
4175
|
+
function isTableElement(element) {
|
|
4176
|
+
return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;
|
|
4498
4177
|
}
|
|
4499
4178
|
|
|
4500
|
-
function
|
|
4501
|
-
return
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4179
|
+
function getDocumentElement(element) {
|
|
4180
|
+
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
4181
|
+
return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
|
|
4182
|
+
element.document) || window.document).documentElement;
|
|
4183
|
+
}
|
|
4505
4184
|
|
|
4185
|
+
function getParentNode(element) {
|
|
4186
|
+
if (getNodeName(element) === 'html') {
|
|
4187
|
+
return element;
|
|
4188
|
+
}
|
|
4506
4189
|
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4190
|
+
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
4191
|
+
// $FlowFixMe[incompatible-return]
|
|
4192
|
+
// $FlowFixMe[prop-missing]
|
|
4193
|
+
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
4194
|
+
element.parentNode || ( // DOM Element detected
|
|
4195
|
+
isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
|
|
4196
|
+
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
4197
|
+
getDocumentElement(element) // fallback
|
|
4511
4198
|
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
} // $FlowFixMe: https://github.com/facebook/flow/issues/1414
|
|
4199
|
+
);
|
|
4200
|
+
}
|
|
4515
4201
|
|
|
4202
|
+
function getTrueOffsetParent(element) {
|
|
4203
|
+
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
4204
|
+
getComputedStyle$1(element).position === 'fixed') {
|
|
4205
|
+
return null;
|
|
4206
|
+
}
|
|
4516
4207
|
|
|
4517
|
-
return
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
} // Gets the maximum area that the element is visible in due to any number of
|
|
4521
|
-
// clipping parents
|
|
4208
|
+
return element.offsetParent;
|
|
4209
|
+
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
4210
|
+
// return the containing block
|
|
4522
4211
|
|
|
4523
4212
|
|
|
4524
|
-
function
|
|
4525
|
-
var
|
|
4526
|
-
var
|
|
4527
|
-
var firstClippingParent = clippingParents[0];
|
|
4528
|
-
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
4529
|
-
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
4530
|
-
accRect.top = Math.max(rect.top, accRect.top);
|
|
4531
|
-
accRect.right = Math.min(rect.right, accRect.right);
|
|
4532
|
-
accRect.bottom = Math.min(rect.bottom, accRect.bottom);
|
|
4533
|
-
accRect.left = Math.max(rect.left, accRect.left);
|
|
4534
|
-
return accRect;
|
|
4535
|
-
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
4536
|
-
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
4537
|
-
clippingRect.height = clippingRect.bottom - clippingRect.top;
|
|
4538
|
-
clippingRect.x = clippingRect.left;
|
|
4539
|
-
clippingRect.y = clippingRect.top;
|
|
4540
|
-
return clippingRect;
|
|
4541
|
-
}
|
|
4213
|
+
function getContainingBlock(element) {
|
|
4214
|
+
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
|
|
4215
|
+
var isIE = navigator.userAgent.indexOf('Trident') !== -1;
|
|
4542
4216
|
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4217
|
+
if (isIE && isHTMLElement(element)) {
|
|
4218
|
+
// In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
|
|
4219
|
+
var elementCss = getComputedStyle$1(element);
|
|
4546
4220
|
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4221
|
+
if (elementCss.position === 'fixed') {
|
|
4222
|
+
return null;
|
|
4223
|
+
}
|
|
4224
|
+
}
|
|
4550
4225
|
|
|
4551
|
-
|
|
4552
|
-
var reference = _ref.reference,
|
|
4553
|
-
element = _ref.element,
|
|
4554
|
-
placement = _ref.placement;
|
|
4555
|
-
var basePlacement = placement ? getBasePlacement(placement) : null;
|
|
4556
|
-
var variation = placement ? getVariation(placement) : null;
|
|
4557
|
-
var commonX = reference.x + reference.width / 2 - element.width / 2;
|
|
4558
|
-
var commonY = reference.y + reference.height / 2 - element.height / 2;
|
|
4559
|
-
var offsets;
|
|
4226
|
+
var currentNode = getParentNode(element);
|
|
4560
4227
|
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
y: reference.y - element.height
|
|
4566
|
-
};
|
|
4567
|
-
break;
|
|
4228
|
+
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
4229
|
+
var css = getComputedStyle$1(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
4230
|
+
// create a containing block.
|
|
4231
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
4568
4232
|
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4233
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {
|
|
4234
|
+
return currentNode;
|
|
4235
|
+
} else {
|
|
4236
|
+
currentNode = currentNode.parentNode;
|
|
4237
|
+
}
|
|
4238
|
+
}
|
|
4575
4239
|
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
y: commonY
|
|
4580
|
-
};
|
|
4581
|
-
break;
|
|
4240
|
+
return null;
|
|
4241
|
+
} // Gets the closest ancestor positioned element. Handles some edge cases,
|
|
4242
|
+
// such as table ancestors and cross browser bugs.
|
|
4582
4243
|
|
|
4583
|
-
case left:
|
|
4584
|
-
offsets = {
|
|
4585
|
-
x: reference.x - element.width,
|
|
4586
|
-
y: commonY
|
|
4587
|
-
};
|
|
4588
|
-
break;
|
|
4589
4244
|
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
y: reference.y
|
|
4594
|
-
};
|
|
4595
|
-
}
|
|
4245
|
+
function getOffsetParent(element) {
|
|
4246
|
+
var window = getWindow(element);
|
|
4247
|
+
var offsetParent = getTrueOffsetParent(element);
|
|
4596
4248
|
|
|
4597
|
-
|
|
4249
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {
|
|
4250
|
+
offsetParent = getTrueOffsetParent(offsetParent);
|
|
4251
|
+
}
|
|
4598
4252
|
|
|
4599
|
-
if (
|
|
4600
|
-
|
|
4253
|
+
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static')) {
|
|
4254
|
+
return window;
|
|
4255
|
+
}
|
|
4601
4256
|
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
offsets[mainAxis] = Math.floor(offsets[mainAxis]) - Math.floor(reference[len] / 2 - element[len] / 2);
|
|
4605
|
-
break;
|
|
4257
|
+
return offsetParent || getContainingBlock(element) || window;
|
|
4258
|
+
}
|
|
4606
4259
|
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
}
|
|
4611
|
-
}
|
|
4260
|
+
function getMainAxisFromPlacement(placement) {
|
|
4261
|
+
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
4262
|
+
}
|
|
4612
4263
|
|
|
4613
|
-
|
|
4264
|
+
function within(min$1, value, max$1) {
|
|
4265
|
+
return max(min$1, min(value, max$1));
|
|
4266
|
+
}
|
|
4267
|
+
function withinMaxClamp(min, value, max) {
|
|
4268
|
+
var v = within(min, value, max);
|
|
4269
|
+
return v > max ? max : v;
|
|
4614
4270
|
}
|
|
4615
4271
|
|
|
4616
4272
|
function getFreshSideObject() {
|
|
@@ -4623,7 +4279,7 @@
|
|
|
4623
4279
|
}
|
|
4624
4280
|
|
|
4625
4281
|
function mergePaddingObject(paddingObject) {
|
|
4626
|
-
return Object.assign(
|
|
4282
|
+
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
4627
4283
|
}
|
|
4628
4284
|
|
|
4629
4285
|
function expandToHashMap(value, keys) {
|
|
@@ -4633,374 +4289,100 @@
|
|
|
4633
4289
|
}, {});
|
|
4634
4290
|
}
|
|
4635
4291
|
|
|
4636
|
-
function
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
}
|
|
4292
|
+
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
4293
|
+
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
4294
|
+
placement: state.placement
|
|
4295
|
+
})) : padding;
|
|
4296
|
+
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
4297
|
+
};
|
|
4640
4298
|
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
placement = _options$placement === void 0 ? state.placement : _options$placement,
|
|
4644
|
-
_options$boundary = _options.boundary,
|
|
4645
|
-
boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,
|
|
4646
|
-
_options$rootBoundary = _options.rootBoundary,
|
|
4647
|
-
rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,
|
|
4648
|
-
_options$elementConte = _options.elementContext,
|
|
4649
|
-
elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,
|
|
4650
|
-
_options$altBoundary = _options.altBoundary,
|
|
4651
|
-
altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,
|
|
4652
|
-
_options$padding = _options.padding,
|
|
4653
|
-
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
4654
|
-
var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
4655
|
-
var altContext = elementContext === popper ? reference : popper;
|
|
4656
|
-
var referenceElement = state.elements.reference;
|
|
4657
|
-
var popperRect = state.rects.popper;
|
|
4658
|
-
var element = state.elements[altBoundary ? altContext : elementContext];
|
|
4659
|
-
var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
|
|
4660
|
-
var referenceClientRect = getBoundingClientRect(referenceElement);
|
|
4661
|
-
var popperOffsets = computeOffsets({
|
|
4662
|
-
reference: referenceClientRect,
|
|
4663
|
-
element: popperRect,
|
|
4664
|
-
strategy: 'absolute',
|
|
4665
|
-
placement: placement
|
|
4666
|
-
});
|
|
4667
|
-
var popperClientRect = rectToClientRect(Object.assign(Object.assign({}, popperRect), popperOffsets));
|
|
4668
|
-
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
4669
|
-
// 0 or negative = within the clipping rect
|
|
4299
|
+
function arrow(_ref) {
|
|
4300
|
+
var _state$modifiersData$;
|
|
4670
4301
|
|
|
4671
|
-
var
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
var
|
|
4302
|
+
var state = _ref.state,
|
|
4303
|
+
name = _ref.name,
|
|
4304
|
+
options = _ref.options;
|
|
4305
|
+
var arrowElement = state.elements.arrow;
|
|
4306
|
+
var popperOffsets = state.modifiersData.popperOffsets;
|
|
4307
|
+
var basePlacement = getBasePlacement(state.placement);
|
|
4308
|
+
var axis = getMainAxisFromPlacement(basePlacement);
|
|
4309
|
+
var isVertical = [left, right].indexOf(basePlacement) >= 0;
|
|
4310
|
+
var len = isVertical ? 'height' : 'width';
|
|
4678
4311
|
|
|
4679
|
-
if (
|
|
4680
|
-
|
|
4681
|
-
Object.keys(overflowOffsets).forEach(function (key) {
|
|
4682
|
-
var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;
|
|
4683
|
-
var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';
|
|
4684
|
-
overflowOffsets[key] += offset[axis] * multiply;
|
|
4685
|
-
});
|
|
4312
|
+
if (!arrowElement || !popperOffsets) {
|
|
4313
|
+
return;
|
|
4686
4314
|
}
|
|
4687
4315
|
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4316
|
+
var paddingObject = toPaddingObject(options.padding, state);
|
|
4317
|
+
var arrowRect = getLayoutRect(arrowElement);
|
|
4318
|
+
var minProp = axis === 'y' ? top : left;
|
|
4319
|
+
var maxProp = axis === 'y' ? bottom : right;
|
|
4320
|
+
var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];
|
|
4321
|
+
var startDiff = popperOffsets[axis] - state.rects.reference[axis];
|
|
4322
|
+
var arrowOffsetParent = getOffsetParent(arrowElement);
|
|
4323
|
+
var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
|
|
4324
|
+
var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is
|
|
4325
|
+
// outside of the popper bounds
|
|
4698
4326
|
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4327
|
+
var min = paddingObject[minProp];
|
|
4328
|
+
var max = clientSize - arrowRect[len] - paddingObject[maxProp];
|
|
4329
|
+
var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;
|
|
4330
|
+
var offset = within(min, center, max); // Prevents breaking syntax highlighting...
|
|
4703
4331
|
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
});
|
|
4332
|
+
var axisProp = axis;
|
|
4333
|
+
state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
|
|
4707
4334
|
}
|
|
4708
4335
|
|
|
4709
|
-
function
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4336
|
+
function effect$1(_ref2) {
|
|
4337
|
+
var state = _ref2.state,
|
|
4338
|
+
options = _ref2.options;
|
|
4339
|
+
var _options$element = options.element,
|
|
4340
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
|
|
4713
4341
|
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
_generatorOptions$def2 = _generatorOptions.defaultOptions,
|
|
4718
|
-
defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;
|
|
4719
|
-
return function createPopper(reference, popper, options) {
|
|
4720
|
-
if (options === void 0) {
|
|
4721
|
-
options = defaultOptions;
|
|
4722
|
-
}
|
|
4723
|
-
|
|
4724
|
-
var state = {
|
|
4725
|
-
placement: 'bottom',
|
|
4726
|
-
orderedModifiers: [],
|
|
4727
|
-
options: Object.assign(Object.assign({}, DEFAULT_OPTIONS), defaultOptions),
|
|
4728
|
-
modifiersData: {},
|
|
4729
|
-
elements: {
|
|
4730
|
-
reference: reference,
|
|
4731
|
-
popper: popper
|
|
4732
|
-
},
|
|
4733
|
-
attributes: {},
|
|
4734
|
-
styles: {}
|
|
4735
|
-
};
|
|
4736
|
-
var effectCleanupFns = [];
|
|
4737
|
-
var isDestroyed = false;
|
|
4738
|
-
var instance = {
|
|
4739
|
-
state: state,
|
|
4740
|
-
setOptions: function setOptions(options) {
|
|
4741
|
-
cleanupModifierEffects();
|
|
4742
|
-
state.options = Object.assign(Object.assign(Object.assign({}, defaultOptions), state.options), options);
|
|
4743
|
-
state.scrollParents = {
|
|
4744
|
-
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4745
|
-
popper: listScrollParents(popper)
|
|
4746
|
-
}; // Orders the modifiers based on their dependencies and `phase`
|
|
4747
|
-
// properties
|
|
4748
|
-
|
|
4749
|
-
var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers
|
|
4750
|
-
|
|
4751
|
-
state.orderedModifiers = orderedModifiers.filter(function (m) {
|
|
4752
|
-
return m.enabled;
|
|
4753
|
-
}); // Validate the provided modifiers so that the consumer will get warned
|
|
4754
|
-
// if one of the modifiers is invalid for any reason
|
|
4755
|
-
|
|
4756
|
-
{
|
|
4757
|
-
var modifiers = uniqueBy([].concat(orderedModifiers, state.options.modifiers), function (_ref) {
|
|
4758
|
-
var name = _ref.name;
|
|
4759
|
-
return name;
|
|
4760
|
-
});
|
|
4761
|
-
validateModifiers(modifiers);
|
|
4762
|
-
|
|
4763
|
-
if (getBasePlacement(state.options.placement) === auto) {
|
|
4764
|
-
var flipModifier = state.orderedModifiers.find(function (_ref2) {
|
|
4765
|
-
var name = _ref2.name;
|
|
4766
|
-
return name === 'flip';
|
|
4767
|
-
});
|
|
4768
|
-
|
|
4769
|
-
if (!flipModifier) {
|
|
4770
|
-
console.error(['Popper: "auto" placements require the "flip" modifier be', 'present and enabled to work.'].join(' '));
|
|
4771
|
-
}
|
|
4772
|
-
}
|
|
4773
|
-
|
|
4774
|
-
var _getComputedStyle = getComputedStyle$1(popper),
|
|
4775
|
-
marginTop = _getComputedStyle.marginTop,
|
|
4776
|
-
marginRight = _getComputedStyle.marginRight,
|
|
4777
|
-
marginBottom = _getComputedStyle.marginBottom,
|
|
4778
|
-
marginLeft = _getComputedStyle.marginLeft; // We no longer take into account `margins` on the popper, and it can
|
|
4779
|
-
// cause bugs with positioning, so we'll warn the consumer
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
if ([marginTop, marginRight, marginBottom, marginLeft].some(function (margin) {
|
|
4783
|
-
return parseFloat(margin);
|
|
4784
|
-
})) {
|
|
4785
|
-
console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', 'between the popper and its reference element or boundary.', 'To replicate margin, use the `offset` modifier, as well as', 'the `padding` option in the `preventOverflow` and `flip`', 'modifiers.'].join(' '));
|
|
4786
|
-
}
|
|
4787
|
-
}
|
|
4788
|
-
|
|
4789
|
-
runModifierEffects();
|
|
4790
|
-
return instance.update();
|
|
4791
|
-
},
|
|
4792
|
-
// Sync update – it will always be executed, even if not necessary. This
|
|
4793
|
-
// is useful for low frequency updates where sync behavior simplifies the
|
|
4794
|
-
// logic.
|
|
4795
|
-
// For high frequency updates (e.g. `resize` and `scroll` events), always
|
|
4796
|
-
// prefer the async Popper#update method
|
|
4797
|
-
forceUpdate: function forceUpdate() {
|
|
4798
|
-
if (isDestroyed) {
|
|
4799
|
-
return;
|
|
4800
|
-
}
|
|
4801
|
-
|
|
4802
|
-
var _state$elements = state.elements,
|
|
4803
|
-
reference = _state$elements.reference,
|
|
4804
|
-
popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements
|
|
4805
|
-
// anymore
|
|
4806
|
-
|
|
4807
|
-
if (!areValidElements(reference, popper)) {
|
|
4808
|
-
{
|
|
4809
|
-
console.error(INVALID_ELEMENT_ERROR);
|
|
4810
|
-
}
|
|
4811
|
-
|
|
4812
|
-
return;
|
|
4813
|
-
} // Store the reference and popper rects to be read by modifiers
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
state.rects = {
|
|
4817
|
-
reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),
|
|
4818
|
-
popper: getLayoutRect(popper)
|
|
4819
|
-
}; // Modifiers have the ability to reset the current update cycle. The
|
|
4820
|
-
// most common use case for this is the `flip` modifier changing the
|
|
4821
|
-
// placement, which then needs to re-run all the modifiers, because the
|
|
4822
|
-
// logic was previously ran for the previous placement and is therefore
|
|
4823
|
-
// stale/incorrect
|
|
4824
|
-
|
|
4825
|
-
state.reset = false;
|
|
4826
|
-
state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier
|
|
4827
|
-
// is filled with the initial data specified by the modifier. This means
|
|
4828
|
-
// it doesn't persist and is fresh on each update.
|
|
4829
|
-
// To ensure persistent data, use `${name}#persistent`
|
|
4830
|
-
|
|
4831
|
-
state.orderedModifiers.forEach(function (modifier) {
|
|
4832
|
-
return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
|
|
4833
|
-
});
|
|
4834
|
-
var __debug_loops__ = 0;
|
|
4835
|
-
|
|
4836
|
-
for (var index = 0; index < state.orderedModifiers.length; index++) {
|
|
4837
|
-
{
|
|
4838
|
-
__debug_loops__ += 1;
|
|
4839
|
-
|
|
4840
|
-
if (__debug_loops__ > 100) {
|
|
4841
|
-
console.error(INFINITE_LOOP_ERROR);
|
|
4842
|
-
break;
|
|
4843
|
-
}
|
|
4844
|
-
}
|
|
4845
|
-
|
|
4846
|
-
if (state.reset === true) {
|
|
4847
|
-
state.reset = false;
|
|
4848
|
-
index = -1;
|
|
4849
|
-
continue;
|
|
4850
|
-
}
|
|
4851
|
-
|
|
4852
|
-
var _state$orderedModifie = state.orderedModifiers[index],
|
|
4853
|
-
fn = _state$orderedModifie.fn,
|
|
4854
|
-
_state$orderedModifie2 = _state$orderedModifie.options,
|
|
4855
|
-
_options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,
|
|
4856
|
-
name = _state$orderedModifie.name;
|
|
4342
|
+
if (arrowElement == null) {
|
|
4343
|
+
return;
|
|
4344
|
+
} // CSS selector
|
|
4857
4345
|
|
|
4858
|
-
if (typeof fn === 'function') {
|
|
4859
|
-
state = fn({
|
|
4860
|
-
state: state,
|
|
4861
|
-
options: _options,
|
|
4862
|
-
name: name,
|
|
4863
|
-
instance: instance
|
|
4864
|
-
}) || state;
|
|
4865
|
-
}
|
|
4866
|
-
}
|
|
4867
|
-
},
|
|
4868
|
-
// Async and optimistically optimized update – it will not be executed if
|
|
4869
|
-
// not necessary (debounced to run at most once-per-tick)
|
|
4870
|
-
update: debounce$2(function () {
|
|
4871
|
-
return new Promise(function (resolve) {
|
|
4872
|
-
instance.forceUpdate();
|
|
4873
|
-
resolve(state);
|
|
4874
|
-
});
|
|
4875
|
-
}),
|
|
4876
|
-
destroy: function destroy() {
|
|
4877
|
-
cleanupModifierEffects();
|
|
4878
|
-
isDestroyed = true;
|
|
4879
|
-
}
|
|
4880
|
-
};
|
|
4881
4346
|
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
console.error(INVALID_ELEMENT_ERROR);
|
|
4885
|
-
}
|
|
4347
|
+
if (typeof arrowElement === 'string') {
|
|
4348
|
+
arrowElement = state.elements.popper.querySelector(arrowElement);
|
|
4886
4349
|
|
|
4887
|
-
|
|
4350
|
+
if (!arrowElement) {
|
|
4351
|
+
return;
|
|
4888
4352
|
}
|
|
4353
|
+
}
|
|
4889
4354
|
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
}
|
|
4894
|
-
}); // Modifiers have the ability to execute arbitrary code before the first
|
|
4895
|
-
// update cycle runs. They will be executed in the same order as the update
|
|
4896
|
-
// cycle. This is useful when a modifier adds some persistent data that
|
|
4897
|
-
// other modifiers need to use, but the modifier is run after the dependent
|
|
4898
|
-
// one.
|
|
4899
|
-
|
|
4900
|
-
function runModifierEffects() {
|
|
4901
|
-
state.orderedModifiers.forEach(function (_ref3) {
|
|
4902
|
-
var name = _ref3.name,
|
|
4903
|
-
_ref3$options = _ref3.options,
|
|
4904
|
-
options = _ref3$options === void 0 ? {} : _ref3$options,
|
|
4905
|
-
effect = _ref3.effect;
|
|
4906
|
-
|
|
4907
|
-
if (typeof effect === 'function') {
|
|
4908
|
-
var cleanupFn = effect({
|
|
4909
|
-
state: state,
|
|
4910
|
-
name: name,
|
|
4911
|
-
instance: instance,
|
|
4912
|
-
options: options
|
|
4913
|
-
});
|
|
4914
|
-
|
|
4915
|
-
var noopFn = function noopFn() {};
|
|
4916
|
-
|
|
4917
|
-
effectCleanupFns.push(cleanupFn || noopFn);
|
|
4918
|
-
}
|
|
4919
|
-
});
|
|
4355
|
+
{
|
|
4356
|
+
if (!isHTMLElement(arrowElement)) {
|
|
4357
|
+
console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', 'To use an SVG arrow, wrap it in an HTMLElement that will be used as', 'the arrow.'].join(' '));
|
|
4920
4358
|
}
|
|
4359
|
+
}
|
|
4921
4360
|
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
});
|
|
4926
|
-
effectCleanupFns = [];
|
|
4361
|
+
if (!contains(state.elements.popper, arrowElement)) {
|
|
4362
|
+
{
|
|
4363
|
+
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
|
4927
4364
|
}
|
|
4928
4365
|
|
|
4929
|
-
return
|
|
4930
|
-
};
|
|
4931
|
-
}
|
|
4932
|
-
|
|
4933
|
-
var passive = {
|
|
4934
|
-
passive: true
|
|
4935
|
-
};
|
|
4936
|
-
|
|
4937
|
-
function effect$2(_ref) {
|
|
4938
|
-
var state = _ref.state,
|
|
4939
|
-
instance = _ref.instance,
|
|
4940
|
-
options = _ref.options;
|
|
4941
|
-
var _options$scroll = options.scroll,
|
|
4942
|
-
scroll = _options$scroll === void 0 ? true : _options$scroll,
|
|
4943
|
-
_options$resize = options.resize,
|
|
4944
|
-
resize = _options$resize === void 0 ? true : _options$resize;
|
|
4945
|
-
var window = getWindow(state.elements.popper);
|
|
4946
|
-
var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
|
|
4947
|
-
|
|
4948
|
-
if (scroll) {
|
|
4949
|
-
scrollParents.forEach(function (scrollParent) {
|
|
4950
|
-
scrollParent.addEventListener('scroll', instance.update, passive);
|
|
4951
|
-
});
|
|
4952
|
-
}
|
|
4953
|
-
|
|
4954
|
-
if (resize) {
|
|
4955
|
-
window.addEventListener('resize', instance.update, passive);
|
|
4366
|
+
return;
|
|
4956
4367
|
}
|
|
4957
4368
|
|
|
4958
|
-
|
|
4959
|
-
if (scroll) {
|
|
4960
|
-
scrollParents.forEach(function (scrollParent) {
|
|
4961
|
-
scrollParent.removeEventListener('scroll', instance.update, passive);
|
|
4962
|
-
});
|
|
4963
|
-
}
|
|
4964
|
-
|
|
4965
|
-
if (resize) {
|
|
4966
|
-
window.removeEventListener('resize', instance.update, passive);
|
|
4967
|
-
}
|
|
4968
|
-
};
|
|
4369
|
+
state.elements.arrow = arrowElement;
|
|
4969
4370
|
} // eslint-disable-next-line import/no-unused-modules
|
|
4970
4371
|
|
|
4971
4372
|
|
|
4972
|
-
var
|
|
4973
|
-
name: '
|
|
4373
|
+
var arrow$1 = {
|
|
4374
|
+
name: 'arrow',
|
|
4974
4375
|
enabled: true,
|
|
4975
|
-
phase: '
|
|
4976
|
-
fn:
|
|
4977
|
-
effect: effect$
|
|
4978
|
-
|
|
4376
|
+
phase: 'main',
|
|
4377
|
+
fn: arrow,
|
|
4378
|
+
effect: effect$1,
|
|
4379
|
+
requires: ['popperOffsets'],
|
|
4380
|
+
requiresIfExists: ['preventOverflow']
|
|
4979
4381
|
};
|
|
4980
4382
|
|
|
4981
|
-
function
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
// properly positioned near its reference element
|
|
4985
|
-
// This is the most basic placement, and will be adjusted by
|
|
4986
|
-
// the modifiers in the next step
|
|
4987
|
-
|
|
4988
|
-
state.modifiersData[name] = computeOffsets({
|
|
4989
|
-
reference: state.rects.reference,
|
|
4990
|
-
element: state.rects.popper,
|
|
4991
|
-
strategy: 'absolute',
|
|
4992
|
-
placement: state.placement
|
|
4993
|
-
});
|
|
4994
|
-
} // eslint-disable-next-line import/no-unused-modules
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
var popperOffsets$1 = {
|
|
4998
|
-
name: 'popperOffsets',
|
|
4999
|
-
enabled: true,
|
|
5000
|
-
phase: 'read',
|
|
5001
|
-
fn: popperOffsets,
|
|
5002
|
-
data: {}
|
|
5003
|
-
};
|
|
4383
|
+
function getVariation(placement) {
|
|
4384
|
+
return placement.split('-')[1];
|
|
4385
|
+
}
|
|
5004
4386
|
|
|
5005
4387
|
var unsetSides = {
|
|
5006
4388
|
top: 'auto',
|
|
@@ -5011,14 +4393,14 @@
|
|
|
5011
4393
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
5012
4394
|
// cleanly divide the values into the appropriate subpixels.
|
|
5013
4395
|
|
|
5014
|
-
function
|
|
4396
|
+
function roundOffsetsByDPR(_ref) {
|
|
5015
4397
|
var x = _ref.x,
|
|
5016
4398
|
y = _ref.y;
|
|
5017
4399
|
var win = window;
|
|
5018
4400
|
var dpr = win.devicePixelRatio || 1;
|
|
5019
4401
|
return {
|
|
5020
|
-
x:
|
|
5021
|
-
y:
|
|
4402
|
+
x: round(x * dpr) / dpr || 0,
|
|
4403
|
+
y: round(y * dpr) / dpr || 0
|
|
5022
4404
|
};
|
|
5023
4405
|
}
|
|
5024
4406
|
|
|
@@ -5028,15 +4410,28 @@
|
|
|
5028
4410
|
var popper = _ref2.popper,
|
|
5029
4411
|
popperRect = _ref2.popperRect,
|
|
5030
4412
|
placement = _ref2.placement,
|
|
4413
|
+
variation = _ref2.variation,
|
|
5031
4414
|
offsets = _ref2.offsets,
|
|
5032
4415
|
position = _ref2.position,
|
|
5033
4416
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
5034
|
-
adaptive = _ref2.adaptive
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
4417
|
+
adaptive = _ref2.adaptive,
|
|
4418
|
+
roundOffsets = _ref2.roundOffsets,
|
|
4419
|
+
isFixed = _ref2.isFixed;
|
|
4420
|
+
var _offsets$x = offsets.x,
|
|
4421
|
+
x = _offsets$x === void 0 ? 0 : _offsets$x,
|
|
4422
|
+
_offsets$y = offsets.y,
|
|
4423
|
+
y = _offsets$y === void 0 ? 0 : _offsets$y;
|
|
4424
|
+
|
|
4425
|
+
var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({
|
|
4426
|
+
x: x,
|
|
4427
|
+
y: y
|
|
4428
|
+
}) : {
|
|
4429
|
+
x: x,
|
|
4430
|
+
y: y
|
|
4431
|
+
};
|
|
5039
4432
|
|
|
4433
|
+
x = _ref3.x;
|
|
4434
|
+
y = _ref3.y;
|
|
5040
4435
|
var hasX = offsets.hasOwnProperty('x');
|
|
5041
4436
|
var hasY = offsets.hasOwnProperty('y');
|
|
5042
4437
|
var sideX = left;
|
|
@@ -5045,23 +4440,34 @@
|
|
|
5045
4440
|
|
|
5046
4441
|
if (adaptive) {
|
|
5047
4442
|
var offsetParent = getOffsetParent(popper);
|
|
4443
|
+
var heightProp = 'clientHeight';
|
|
4444
|
+
var widthProp = 'clientWidth';
|
|
5048
4445
|
|
|
5049
4446
|
if (offsetParent === getWindow(popper)) {
|
|
5050
4447
|
offsetParent = getDocumentElement(popper);
|
|
5051
|
-
} // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
5052
4448
|
|
|
5053
|
-
|
|
4449
|
+
if (getComputedStyle$1(offsetParent).position !== 'static' && position === 'absolute') {
|
|
4450
|
+
heightProp = 'scrollHeight';
|
|
4451
|
+
widthProp = 'scrollWidth';
|
|
4452
|
+
}
|
|
4453
|
+
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
4454
|
+
|
|
5054
4455
|
|
|
4456
|
+
offsetParent = offsetParent;
|
|
5055
4457
|
|
|
5056
|
-
if (placement === top) {
|
|
4458
|
+
if (placement === top || (placement === left || placement === right) && variation === end) {
|
|
5057
4459
|
sideY = bottom;
|
|
5058
|
-
|
|
4460
|
+
var offsetY = isFixed && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]
|
|
4461
|
+
offsetParent[heightProp];
|
|
4462
|
+
y -= offsetY - popperRect.height;
|
|
5059
4463
|
y *= gpuAcceleration ? 1 : -1;
|
|
5060
4464
|
}
|
|
5061
4465
|
|
|
5062
|
-
if (placement === left) {
|
|
4466
|
+
if (placement === left || (placement === top || placement === bottom) && variation === end) {
|
|
5063
4467
|
sideX = right;
|
|
5064
|
-
|
|
4468
|
+
var offsetX = isFixed && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]
|
|
4469
|
+
offsetParent[widthProp];
|
|
4470
|
+
x -= offsetX - popperRect.width;
|
|
5065
4471
|
x *= gpuAcceleration ? 1 : -1;
|
|
5066
4472
|
}
|
|
5067
4473
|
}
|
|
@@ -5070,22 +4476,35 @@
|
|
|
5070
4476
|
position: position
|
|
5071
4477
|
}, adaptive && unsetSides);
|
|
5072
4478
|
|
|
4479
|
+
var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
|
|
4480
|
+
x: x,
|
|
4481
|
+
y: y
|
|
4482
|
+
}) : {
|
|
4483
|
+
x: x,
|
|
4484
|
+
y: y
|
|
4485
|
+
};
|
|
4486
|
+
|
|
4487
|
+
x = _ref4.x;
|
|
4488
|
+
y = _ref4.y;
|
|
4489
|
+
|
|
5073
4490
|
if (gpuAcceleration) {
|
|
5074
4491
|
var _Object$assign;
|
|
5075
4492
|
|
|
5076
|
-
return Object.assign(
|
|
4493
|
+
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
5077
4494
|
}
|
|
5078
4495
|
|
|
5079
|
-
return Object.assign(
|
|
4496
|
+
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
5080
4497
|
}
|
|
5081
4498
|
|
|
5082
|
-
function computeStyles(
|
|
5083
|
-
var state =
|
|
5084
|
-
options =
|
|
4499
|
+
function computeStyles(_ref5) {
|
|
4500
|
+
var state = _ref5.state,
|
|
4501
|
+
options = _ref5.options;
|
|
5085
4502
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
5086
4503
|
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
|
5087
4504
|
_options$adaptive = options.adaptive,
|
|
5088
|
-
adaptive = _options$adaptive === void 0 ? true : _options$adaptive
|
|
4505
|
+
adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
|
|
4506
|
+
_options$roundOffsets = options.roundOffsets,
|
|
4507
|
+
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
5089
4508
|
|
|
5090
4509
|
{
|
|
5091
4510
|
var transitionProperty = getComputedStyle$1(state.elements.popper).transitionProperty || '';
|
|
@@ -5099,28 +4518,32 @@
|
|
|
5099
4518
|
|
|
5100
4519
|
var commonStyles = {
|
|
5101
4520
|
placement: getBasePlacement(state.placement),
|
|
4521
|
+
variation: getVariation(state.placement),
|
|
5102
4522
|
popper: state.elements.popper,
|
|
5103
4523
|
popperRect: state.rects.popper,
|
|
5104
|
-
gpuAcceleration: gpuAcceleration
|
|
4524
|
+
gpuAcceleration: gpuAcceleration,
|
|
4525
|
+
isFixed: state.options.strategy === 'fixed'
|
|
5105
4526
|
};
|
|
5106
4527
|
|
|
5107
4528
|
if (state.modifiersData.popperOffsets != null) {
|
|
5108
|
-
state.styles.popper = Object.assign(
|
|
4529
|
+
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
5109
4530
|
offsets: state.modifiersData.popperOffsets,
|
|
5110
4531
|
position: state.options.strategy,
|
|
5111
|
-
adaptive: adaptive
|
|
4532
|
+
adaptive: adaptive,
|
|
4533
|
+
roundOffsets: roundOffsets
|
|
5112
4534
|
})));
|
|
5113
4535
|
}
|
|
5114
4536
|
|
|
5115
4537
|
if (state.modifiersData.arrow != null) {
|
|
5116
|
-
state.styles.arrow = Object.assign(
|
|
4538
|
+
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
5117
4539
|
offsets: state.modifiersData.arrow,
|
|
5118
4540
|
position: 'absolute',
|
|
5119
|
-
adaptive: false
|
|
4541
|
+
adaptive: false,
|
|
4542
|
+
roundOffsets: roundOffsets
|
|
5120
4543
|
})));
|
|
5121
4544
|
}
|
|
5122
4545
|
|
|
5123
|
-
state.attributes.popper = Object.assign(
|
|
4546
|
+
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
5124
4547
|
'data-popper-placement': state.placement
|
|
5125
4548
|
});
|
|
5126
4549
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -5134,141 +4557,52 @@
|
|
|
5134
4557
|
data: {}
|
|
5135
4558
|
};
|
|
5136
4559
|
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
var state = _ref.state;
|
|
5141
|
-
Object.keys(state.elements).forEach(function (name) {
|
|
5142
|
-
var style = state.styles[name] || {};
|
|
5143
|
-
var attributes = state.attributes[name] || {};
|
|
5144
|
-
var element = state.elements[name]; // arrow is optional + virtual elements
|
|
5145
|
-
|
|
5146
|
-
if (!isHTMLElement(element) || !getNodeName(element)) {
|
|
5147
|
-
return;
|
|
5148
|
-
} // Flow doesn't support to extend this property, but it's the most
|
|
5149
|
-
// effective way to apply styles to an HTMLElement
|
|
5150
|
-
// $FlowFixMe
|
|
5151
|
-
|
|
4560
|
+
var passive = {
|
|
4561
|
+
passive: true
|
|
4562
|
+
};
|
|
5152
4563
|
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
4564
|
+
function effect(_ref) {
|
|
4565
|
+
var state = _ref.state,
|
|
4566
|
+
instance = _ref.instance,
|
|
4567
|
+
options = _ref.options;
|
|
4568
|
+
var _options$scroll = options.scroll,
|
|
4569
|
+
scroll = _options$scroll === void 0 ? true : _options$scroll,
|
|
4570
|
+
_options$resize = options.resize,
|
|
4571
|
+
resize = _options$resize === void 0 ? true : _options$resize;
|
|
4572
|
+
var window = getWindow(state.elements.popper);
|
|
4573
|
+
var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
|
|
5156
4574
|
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
element.setAttribute(name, value === true ? '' : value);
|
|
5161
|
-
}
|
|
4575
|
+
if (scroll) {
|
|
4576
|
+
scrollParents.forEach(function (scrollParent) {
|
|
4577
|
+
scrollParent.addEventListener('scroll', instance.update, passive);
|
|
5162
4578
|
});
|
|
5163
|
-
}
|
|
5164
|
-
}
|
|
5165
|
-
|
|
5166
|
-
function effect$1(_ref2) {
|
|
5167
|
-
var state = _ref2.state;
|
|
5168
|
-
var initialStyles = {
|
|
5169
|
-
popper: {
|
|
5170
|
-
position: state.options.strategy,
|
|
5171
|
-
left: '0',
|
|
5172
|
-
top: '0',
|
|
5173
|
-
margin: '0'
|
|
5174
|
-
},
|
|
5175
|
-
arrow: {
|
|
5176
|
-
position: 'absolute'
|
|
5177
|
-
},
|
|
5178
|
-
reference: {}
|
|
5179
|
-
};
|
|
5180
|
-
Object.assign(state.elements.popper.style, initialStyles.popper);
|
|
4579
|
+
}
|
|
5181
4580
|
|
|
5182
|
-
if (
|
|
5183
|
-
|
|
4581
|
+
if (resize) {
|
|
4582
|
+
window.addEventListener('resize', instance.update, passive);
|
|
5184
4583
|
}
|
|
5185
4584
|
|
|
5186
4585
|
return function () {
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them
|
|
5191
|
-
|
|
5192
|
-
var style = styleProperties.reduce(function (style, property) {
|
|
5193
|
-
style[property] = '';
|
|
5194
|
-
return style;
|
|
5195
|
-
}, {}); // arrow is optional + virtual elements
|
|
5196
|
-
|
|
5197
|
-
if (!isHTMLElement(element) || !getNodeName(element)) {
|
|
5198
|
-
return;
|
|
5199
|
-
} // Flow doesn't support to extend this property, but it's the most
|
|
5200
|
-
// effective way to apply styles to an HTMLElement
|
|
5201
|
-
// $FlowFixMe
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
Object.assign(element.style, style);
|
|
5205
|
-
Object.keys(attributes).forEach(function (attribute) {
|
|
5206
|
-
element.removeAttribute(attribute);
|
|
4586
|
+
if (scroll) {
|
|
4587
|
+
scrollParents.forEach(function (scrollParent) {
|
|
4588
|
+
scrollParent.removeEventListener('scroll', instance.update, passive);
|
|
5207
4589
|
});
|
|
5208
|
-
}
|
|
5209
|
-
};
|
|
5210
|
-
} // eslint-disable-next-line import/no-unused-modules
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
var applyStyles$1 = {
|
|
5214
|
-
name: 'applyStyles',
|
|
5215
|
-
enabled: true,
|
|
5216
|
-
phase: 'write',
|
|
5217
|
-
fn: applyStyles,
|
|
5218
|
-
effect: effect$1,
|
|
5219
|
-
requires: ['computeStyles']
|
|
5220
|
-
};
|
|
5221
|
-
|
|
5222
|
-
function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
5223
|
-
var basePlacement = getBasePlacement(placement);
|
|
5224
|
-
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
5225
|
-
|
|
5226
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign(Object.assign({}, rects), {}, {
|
|
5227
|
-
placement: placement
|
|
5228
|
-
})) : offset,
|
|
5229
|
-
skidding = _ref[0],
|
|
5230
|
-
distance = _ref[1];
|
|
4590
|
+
}
|
|
5231
4591
|
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
x: distance,
|
|
5236
|
-
y: skidding
|
|
5237
|
-
} : {
|
|
5238
|
-
x: skidding,
|
|
5239
|
-
y: distance
|
|
4592
|
+
if (resize) {
|
|
4593
|
+
window.removeEventListener('resize', instance.update, passive);
|
|
4594
|
+
}
|
|
5240
4595
|
};
|
|
5241
|
-
}
|
|
5242
|
-
|
|
5243
|
-
function offset(_ref2) {
|
|
5244
|
-
var state = _ref2.state,
|
|
5245
|
-
options = _ref2.options,
|
|
5246
|
-
name = _ref2.name;
|
|
5247
|
-
var _options$offset = options.offset,
|
|
5248
|
-
offset = _options$offset === void 0 ? [0, 0] : _options$offset;
|
|
5249
|
-
var data = placements.reduce(function (acc, placement) {
|
|
5250
|
-
acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);
|
|
5251
|
-
return acc;
|
|
5252
|
-
}, {});
|
|
5253
|
-
var _data$state$placement = data[state.placement],
|
|
5254
|
-
x = _data$state$placement.x,
|
|
5255
|
-
y = _data$state$placement.y;
|
|
5256
|
-
|
|
5257
|
-
if (state.modifiersData.popperOffsets != null) {
|
|
5258
|
-
state.modifiersData.popperOffsets.x += x;
|
|
5259
|
-
state.modifiersData.popperOffsets.y += y;
|
|
5260
|
-
}
|
|
5261
|
-
|
|
5262
|
-
state.modifiersData[name] = data;
|
|
5263
4596
|
} // eslint-disable-next-line import/no-unused-modules
|
|
5264
4597
|
|
|
5265
4598
|
|
|
5266
|
-
var
|
|
5267
|
-
name: '
|
|
4599
|
+
var eventListeners = {
|
|
4600
|
+
name: 'eventListeners',
|
|
5268
4601
|
enabled: true,
|
|
5269
|
-
phase: '
|
|
5270
|
-
|
|
5271
|
-
|
|
4602
|
+
phase: 'write',
|
|
4603
|
+
fn: function fn() {},
|
|
4604
|
+
effect: effect,
|
|
4605
|
+
data: {}
|
|
5272
4606
|
};
|
|
5273
4607
|
|
|
5274
4608
|
var hash$1 = {
|
|
@@ -5293,19 +4627,329 @@
|
|
|
5293
4627
|
});
|
|
5294
4628
|
}
|
|
5295
4629
|
|
|
5296
|
-
|
|
4630
|
+
function getWindowScroll(node) {
|
|
4631
|
+
var win = getWindow(node);
|
|
4632
|
+
var scrollLeft = win.pageXOffset;
|
|
4633
|
+
var scrollTop = win.pageYOffset;
|
|
4634
|
+
return {
|
|
4635
|
+
scrollLeft: scrollLeft,
|
|
4636
|
+
scrollTop: scrollTop
|
|
4637
|
+
};
|
|
4638
|
+
}
|
|
5297
4639
|
|
|
5298
|
-
|
|
4640
|
+
function getWindowScrollBarX(element) {
|
|
4641
|
+
// If <html> has a CSS width greater than the viewport, then this will be
|
|
4642
|
+
// incorrect for RTL.
|
|
4643
|
+
// Popper 1 is broken in this case and never had a bug report so let's assume
|
|
4644
|
+
// it's not an issue. I don't think anyone ever specifies width on <html>
|
|
4645
|
+
// anyway.
|
|
4646
|
+
// Browsers where the left scrollbar doesn't cause an issue report `0` for
|
|
4647
|
+
// this (e.g. Edge 2019, IE11, Safari)
|
|
4648
|
+
return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
|
|
4649
|
+
}
|
|
5299
4650
|
|
|
5300
|
-
function
|
|
5301
|
-
|
|
5302
|
-
|
|
4651
|
+
function getViewportRect(element) {
|
|
4652
|
+
var win = getWindow(element);
|
|
4653
|
+
var html = getDocumentElement(element);
|
|
4654
|
+
var visualViewport = win.visualViewport;
|
|
4655
|
+
var width = html.clientWidth;
|
|
4656
|
+
var height = html.clientHeight;
|
|
4657
|
+
var x = 0;
|
|
4658
|
+
var y = 0; // NB: This isn't supported on iOS <= 12. If the keyboard is open, the popper
|
|
4659
|
+
// can be obscured underneath it.
|
|
4660
|
+
// Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even
|
|
4661
|
+
// if it isn't open, so if this isn't available, the popper will be detected
|
|
4662
|
+
// to overflow the bottom of the screen too early.
|
|
4663
|
+
|
|
4664
|
+
if (visualViewport) {
|
|
4665
|
+
width = visualViewport.width;
|
|
4666
|
+
height = visualViewport.height; // Uses Layout Viewport (like Chrome; Safari does not currently)
|
|
4667
|
+
// In Chrome, it returns a value very close to 0 (+/-) but contains rounding
|
|
4668
|
+
// errors due to floating point numbers, so we need to check precision.
|
|
4669
|
+
// Safari returns a number <= 0, usually < -1 when pinch-zoomed
|
|
4670
|
+
// Feature detection fails in mobile emulation mode in Chrome.
|
|
4671
|
+
// Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <
|
|
4672
|
+
// 0.001
|
|
4673
|
+
// Fallback here: "Not Safari" userAgent
|
|
4674
|
+
|
|
4675
|
+
if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
|
|
4676
|
+
x = visualViewport.offsetLeft;
|
|
4677
|
+
y = visualViewport.offsetTop;
|
|
4678
|
+
}
|
|
5303
4679
|
}
|
|
5304
4680
|
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
4681
|
+
return {
|
|
4682
|
+
width: width,
|
|
4683
|
+
height: height,
|
|
4684
|
+
x: x + getWindowScrollBarX(element),
|
|
4685
|
+
y: y
|
|
4686
|
+
};
|
|
4687
|
+
}
|
|
4688
|
+
|
|
4689
|
+
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
4690
|
+
|
|
4691
|
+
function getDocumentRect(element) {
|
|
4692
|
+
var _element$ownerDocumen;
|
|
4693
|
+
|
|
4694
|
+
var html = getDocumentElement(element);
|
|
4695
|
+
var winScroll = getWindowScroll(element);
|
|
4696
|
+
var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
4697
|
+
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
4698
|
+
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
4699
|
+
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
4700
|
+
var y = -winScroll.scrollTop;
|
|
4701
|
+
|
|
4702
|
+
if (getComputedStyle$1(body || html).direction === 'rtl') {
|
|
4703
|
+
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
4704
|
+
}
|
|
4705
|
+
|
|
4706
|
+
return {
|
|
4707
|
+
width: width,
|
|
4708
|
+
height: height,
|
|
4709
|
+
x: x,
|
|
4710
|
+
y: y
|
|
4711
|
+
};
|
|
4712
|
+
}
|
|
4713
|
+
|
|
4714
|
+
function isScrollParent(element) {
|
|
4715
|
+
// Firefox wants us to check `-x` and `-y` variations as well
|
|
4716
|
+
var _getComputedStyle = getComputedStyle$1(element),
|
|
4717
|
+
overflow = _getComputedStyle.overflow,
|
|
4718
|
+
overflowX = _getComputedStyle.overflowX,
|
|
4719
|
+
overflowY = _getComputedStyle.overflowY;
|
|
4720
|
+
|
|
4721
|
+
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
|
|
4722
|
+
}
|
|
4723
|
+
|
|
4724
|
+
function getScrollParent(node) {
|
|
4725
|
+
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
|
4726
|
+
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
4727
|
+
return node.ownerDocument.body;
|
|
4728
|
+
}
|
|
4729
|
+
|
|
4730
|
+
if (isHTMLElement(node) && isScrollParent(node)) {
|
|
4731
|
+
return node;
|
|
4732
|
+
}
|
|
4733
|
+
|
|
4734
|
+
return getScrollParent(getParentNode(node));
|
|
4735
|
+
}
|
|
4736
|
+
|
|
4737
|
+
/*
|
|
4738
|
+
given a DOM element, return the list of all scroll parents, up the list of ancesors
|
|
4739
|
+
until we get to the top window object. This list is what we attach scroll listeners
|
|
4740
|
+
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
4741
|
+
reference element's position.
|
|
4742
|
+
*/
|
|
4743
|
+
|
|
4744
|
+
function listScrollParents(element, list) {
|
|
4745
|
+
var _element$ownerDocumen;
|
|
4746
|
+
|
|
4747
|
+
if (list === void 0) {
|
|
4748
|
+
list = [];
|
|
4749
|
+
}
|
|
4750
|
+
|
|
4751
|
+
var scrollParent = getScrollParent(element);
|
|
4752
|
+
var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
|
|
4753
|
+
var win = getWindow(scrollParent);
|
|
4754
|
+
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
4755
|
+
var updatedList = list.concat(target);
|
|
4756
|
+
return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
4757
|
+
updatedList.concat(listScrollParents(getParentNode(target)));
|
|
4758
|
+
}
|
|
4759
|
+
|
|
4760
|
+
function rectToClientRect(rect) {
|
|
4761
|
+
return Object.assign({}, rect, {
|
|
4762
|
+
left: rect.x,
|
|
4763
|
+
top: rect.y,
|
|
4764
|
+
right: rect.x + rect.width,
|
|
4765
|
+
bottom: rect.y + rect.height
|
|
4766
|
+
});
|
|
4767
|
+
}
|
|
4768
|
+
|
|
4769
|
+
function getInnerBoundingClientRect(element) {
|
|
4770
|
+
var rect = getBoundingClientRect(element);
|
|
4771
|
+
rect.top = rect.top + element.clientTop;
|
|
4772
|
+
rect.left = rect.left + element.clientLeft;
|
|
4773
|
+
rect.bottom = rect.top + element.clientHeight;
|
|
4774
|
+
rect.right = rect.left + element.clientWidth;
|
|
4775
|
+
rect.width = element.clientWidth;
|
|
4776
|
+
rect.height = element.clientHeight;
|
|
4777
|
+
rect.x = rect.left;
|
|
4778
|
+
rect.y = rect.top;
|
|
4779
|
+
return rect;
|
|
4780
|
+
}
|
|
4781
|
+
|
|
4782
|
+
function getClientRectFromMixedType(element, clippingParent) {
|
|
4783
|
+
return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
|
|
4784
|
+
} // A "clipping parent" is an overflowable container with the characteristic of
|
|
4785
|
+
// clipping (or hiding) overflowing elements with a position different from
|
|
4786
|
+
// `initial`
|
|
4787
|
+
|
|
4788
|
+
|
|
4789
|
+
function getClippingParents(element) {
|
|
4790
|
+
var clippingParents = listScrollParents(getParentNode(element));
|
|
4791
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$1(element).position) >= 0;
|
|
4792
|
+
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
4793
|
+
|
|
4794
|
+
if (!isElement(clipperElement)) {
|
|
4795
|
+
return [];
|
|
4796
|
+
} // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
|
|
4797
|
+
|
|
4798
|
+
|
|
4799
|
+
return clippingParents.filter(function (clippingParent) {
|
|
4800
|
+
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
4801
|
+
});
|
|
4802
|
+
} // Gets the maximum area that the element is visible in due to any number of
|
|
4803
|
+
// clipping parents
|
|
4804
|
+
|
|
4805
|
+
|
|
4806
|
+
function getClippingRect(element, boundary, rootBoundary) {
|
|
4807
|
+
var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
|
|
4808
|
+
var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
|
|
4809
|
+
var firstClippingParent = clippingParents[0];
|
|
4810
|
+
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
4811
|
+
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
4812
|
+
accRect.top = max(rect.top, accRect.top);
|
|
4813
|
+
accRect.right = min(rect.right, accRect.right);
|
|
4814
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
4815
|
+
accRect.left = max(rect.left, accRect.left);
|
|
4816
|
+
return accRect;
|
|
4817
|
+
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
4818
|
+
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
4819
|
+
clippingRect.height = clippingRect.bottom - clippingRect.top;
|
|
4820
|
+
clippingRect.x = clippingRect.left;
|
|
4821
|
+
clippingRect.y = clippingRect.top;
|
|
4822
|
+
return clippingRect;
|
|
4823
|
+
}
|
|
4824
|
+
|
|
4825
|
+
function computeOffsets(_ref) {
|
|
4826
|
+
var reference = _ref.reference,
|
|
4827
|
+
element = _ref.element,
|
|
4828
|
+
placement = _ref.placement;
|
|
4829
|
+
var basePlacement = placement ? getBasePlacement(placement) : null;
|
|
4830
|
+
var variation = placement ? getVariation(placement) : null;
|
|
4831
|
+
var commonX = reference.x + reference.width / 2 - element.width / 2;
|
|
4832
|
+
var commonY = reference.y + reference.height / 2 - element.height / 2;
|
|
4833
|
+
var offsets;
|
|
4834
|
+
|
|
4835
|
+
switch (basePlacement) {
|
|
4836
|
+
case top:
|
|
4837
|
+
offsets = {
|
|
4838
|
+
x: commonX,
|
|
4839
|
+
y: reference.y - element.height
|
|
4840
|
+
};
|
|
4841
|
+
break;
|
|
4842
|
+
|
|
4843
|
+
case bottom:
|
|
4844
|
+
offsets = {
|
|
4845
|
+
x: commonX,
|
|
4846
|
+
y: reference.y + reference.height
|
|
4847
|
+
};
|
|
4848
|
+
break;
|
|
4849
|
+
|
|
4850
|
+
case right:
|
|
4851
|
+
offsets = {
|
|
4852
|
+
x: reference.x + reference.width,
|
|
4853
|
+
y: commonY
|
|
4854
|
+
};
|
|
4855
|
+
break;
|
|
4856
|
+
|
|
4857
|
+
case left:
|
|
4858
|
+
offsets = {
|
|
4859
|
+
x: reference.x - element.width,
|
|
4860
|
+
y: commonY
|
|
4861
|
+
};
|
|
4862
|
+
break;
|
|
4863
|
+
|
|
4864
|
+
default:
|
|
4865
|
+
offsets = {
|
|
4866
|
+
x: reference.x,
|
|
4867
|
+
y: reference.y
|
|
4868
|
+
};
|
|
4869
|
+
}
|
|
4870
|
+
|
|
4871
|
+
var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;
|
|
4872
|
+
|
|
4873
|
+
if (mainAxis != null) {
|
|
4874
|
+
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
4875
|
+
|
|
4876
|
+
switch (variation) {
|
|
4877
|
+
case start:
|
|
4878
|
+
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
|
4879
|
+
break;
|
|
4880
|
+
|
|
4881
|
+
case end:
|
|
4882
|
+
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
4883
|
+
break;
|
|
4884
|
+
}
|
|
4885
|
+
}
|
|
4886
|
+
|
|
4887
|
+
return offsets;
|
|
4888
|
+
}
|
|
4889
|
+
|
|
4890
|
+
function detectOverflow(state, options) {
|
|
4891
|
+
if (options === void 0) {
|
|
4892
|
+
options = {};
|
|
4893
|
+
}
|
|
4894
|
+
|
|
4895
|
+
var _options = options,
|
|
4896
|
+
_options$placement = _options.placement,
|
|
4897
|
+
placement = _options$placement === void 0 ? state.placement : _options$placement,
|
|
4898
|
+
_options$boundary = _options.boundary,
|
|
4899
|
+
boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,
|
|
4900
|
+
_options$rootBoundary = _options.rootBoundary,
|
|
4901
|
+
rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,
|
|
4902
|
+
_options$elementConte = _options.elementContext,
|
|
4903
|
+
elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,
|
|
4904
|
+
_options$altBoundary = _options.altBoundary,
|
|
4905
|
+
altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,
|
|
4906
|
+
_options$padding = _options.padding,
|
|
4907
|
+
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
4908
|
+
var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
4909
|
+
var altContext = elementContext === popper ? reference : popper;
|
|
4910
|
+
var popperRect = state.rects.popper;
|
|
4911
|
+
var element = state.elements[altBoundary ? altContext : elementContext];
|
|
4912
|
+
var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
|
|
4913
|
+
var referenceClientRect = getBoundingClientRect(state.elements.reference);
|
|
4914
|
+
var popperOffsets = computeOffsets({
|
|
4915
|
+
reference: referenceClientRect,
|
|
4916
|
+
element: popperRect,
|
|
4917
|
+
strategy: 'absolute',
|
|
4918
|
+
placement: placement
|
|
4919
|
+
});
|
|
4920
|
+
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
4921
|
+
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
4922
|
+
// 0 or negative = within the clipping rect
|
|
4923
|
+
|
|
4924
|
+
var overflowOffsets = {
|
|
4925
|
+
top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
|
|
4926
|
+
bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
|
|
4927
|
+
left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
|
|
4928
|
+
right: elementClientRect.right - clippingClientRect.right + paddingObject.right
|
|
4929
|
+
};
|
|
4930
|
+
var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element
|
|
4931
|
+
|
|
4932
|
+
if (elementContext === popper && offsetData) {
|
|
4933
|
+
var offset = offsetData[placement];
|
|
4934
|
+
Object.keys(overflowOffsets).forEach(function (key) {
|
|
4935
|
+
var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;
|
|
4936
|
+
var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';
|
|
4937
|
+
overflowOffsets[key] += offset[axis] * multiply;
|
|
4938
|
+
});
|
|
4939
|
+
}
|
|
4940
|
+
|
|
4941
|
+
return overflowOffsets;
|
|
4942
|
+
}
|
|
4943
|
+
|
|
4944
|
+
function computeAutoPlacement(state, options) {
|
|
4945
|
+
if (options === void 0) {
|
|
4946
|
+
options = {};
|
|
4947
|
+
}
|
|
4948
|
+
|
|
4949
|
+
var _options = options,
|
|
4950
|
+
placement = _options.placement,
|
|
4951
|
+
boundary = _options.boundary,
|
|
4952
|
+
rootBoundary = _options.rootBoundary,
|
|
5309
4953
|
padding = _options.padding,
|
|
5310
4954
|
flipVariations = _options.flipVariations,
|
|
5311
4955
|
_options$allowedAutoP = _options.allowedAutoPlacements,
|
|
@@ -5313,8 +4957,7 @@
|
|
|
5313
4957
|
var variation = getVariation(placement);
|
|
5314
4958
|
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
5315
4959
|
return getVariation(placement) === variation;
|
|
5316
|
-
}) : basePlacements;
|
|
5317
|
-
|
|
4960
|
+
}) : basePlacements;
|
|
5318
4961
|
var allowedPlacements = placements$1.filter(function (placement) {
|
|
5319
4962
|
return allowedAutoPlacements.indexOf(placement) >= 0;
|
|
5320
4963
|
});
|
|
@@ -5325,7 +4968,7 @@
|
|
|
5325
4968
|
{
|
|
5326
4969
|
console.error(['Popper: The `allowedAutoPlacements` option did not allow any', 'placements. Ensure the `placement` option matches the variation', 'of the allowed placements.', 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(' '));
|
|
5327
4970
|
}
|
|
5328
|
-
} // $FlowFixMe: Flow seems to have problems with two array unions...
|
|
4971
|
+
} // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
|
|
5329
4972
|
|
|
5330
4973
|
|
|
5331
4974
|
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
|
@@ -5409,344 +5052,833 @@
|
|
|
5409
5052
|
});
|
|
5410
5053
|
var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;
|
|
5411
5054
|
|
|
5412
|
-
if (referenceRect[len] > popperRect[len]) {
|
|
5413
|
-
mainVariationSide = getOppositePlacement(mainVariationSide);
|
|
5414
|
-
}
|
|
5055
|
+
if (referenceRect[len] > popperRect[len]) {
|
|
5056
|
+
mainVariationSide = getOppositePlacement(mainVariationSide);
|
|
5057
|
+
}
|
|
5058
|
+
|
|
5059
|
+
var altVariationSide = getOppositePlacement(mainVariationSide);
|
|
5060
|
+
var checks = [];
|
|
5061
|
+
|
|
5062
|
+
if (checkMainAxis) {
|
|
5063
|
+
checks.push(overflow[_basePlacement] <= 0);
|
|
5064
|
+
}
|
|
5065
|
+
|
|
5066
|
+
if (checkAltAxis) {
|
|
5067
|
+
checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);
|
|
5068
|
+
}
|
|
5069
|
+
|
|
5070
|
+
if (checks.every(function (check) {
|
|
5071
|
+
return check;
|
|
5072
|
+
})) {
|
|
5073
|
+
firstFittingPlacement = placement;
|
|
5074
|
+
makeFallbackChecks = false;
|
|
5075
|
+
break;
|
|
5076
|
+
}
|
|
5077
|
+
|
|
5078
|
+
checksMap.set(placement, checks);
|
|
5079
|
+
}
|
|
5080
|
+
|
|
5081
|
+
if (makeFallbackChecks) {
|
|
5082
|
+
// `2` may be desired in some cases – research later
|
|
5083
|
+
var numberOfChecks = flipVariations ? 3 : 1;
|
|
5084
|
+
|
|
5085
|
+
var _loop = function _loop(_i) {
|
|
5086
|
+
var fittingPlacement = placements.find(function (placement) {
|
|
5087
|
+
var checks = checksMap.get(placement);
|
|
5088
|
+
|
|
5089
|
+
if (checks) {
|
|
5090
|
+
return checks.slice(0, _i).every(function (check) {
|
|
5091
|
+
return check;
|
|
5092
|
+
});
|
|
5093
|
+
}
|
|
5094
|
+
});
|
|
5095
|
+
|
|
5096
|
+
if (fittingPlacement) {
|
|
5097
|
+
firstFittingPlacement = fittingPlacement;
|
|
5098
|
+
return "break";
|
|
5099
|
+
}
|
|
5100
|
+
};
|
|
5101
|
+
|
|
5102
|
+
for (var _i = numberOfChecks; _i > 0; _i--) {
|
|
5103
|
+
var _ret = _loop(_i);
|
|
5104
|
+
|
|
5105
|
+
if (_ret === "break") break;
|
|
5106
|
+
}
|
|
5107
|
+
}
|
|
5108
|
+
|
|
5109
|
+
if (state.placement !== firstFittingPlacement) {
|
|
5110
|
+
state.modifiersData[name]._skip = true;
|
|
5111
|
+
state.placement = firstFittingPlacement;
|
|
5112
|
+
state.reset = true;
|
|
5113
|
+
}
|
|
5114
|
+
} // eslint-disable-next-line import/no-unused-modules
|
|
5115
|
+
|
|
5116
|
+
|
|
5117
|
+
var flip$1 = {
|
|
5118
|
+
name: 'flip',
|
|
5119
|
+
enabled: true,
|
|
5120
|
+
phase: 'main',
|
|
5121
|
+
fn: flip,
|
|
5122
|
+
requiresIfExists: ['offset'],
|
|
5123
|
+
data: {
|
|
5124
|
+
_skip: false
|
|
5125
|
+
}
|
|
5126
|
+
};
|
|
5127
|
+
|
|
5128
|
+
function getSideOffsets(overflow, rect, preventedOffsets) {
|
|
5129
|
+
if (preventedOffsets === void 0) {
|
|
5130
|
+
preventedOffsets = {
|
|
5131
|
+
x: 0,
|
|
5132
|
+
y: 0
|
|
5133
|
+
};
|
|
5134
|
+
}
|
|
5135
|
+
|
|
5136
|
+
return {
|
|
5137
|
+
top: overflow.top - rect.height - preventedOffsets.y,
|
|
5138
|
+
right: overflow.right - rect.width + preventedOffsets.x,
|
|
5139
|
+
bottom: overflow.bottom - rect.height + preventedOffsets.y,
|
|
5140
|
+
left: overflow.left - rect.width - preventedOffsets.x
|
|
5141
|
+
};
|
|
5142
|
+
}
|
|
5143
|
+
|
|
5144
|
+
function isAnySideFullyClipped(overflow) {
|
|
5145
|
+
return [top, right, bottom, left].some(function (side) {
|
|
5146
|
+
return overflow[side] >= 0;
|
|
5147
|
+
});
|
|
5148
|
+
}
|
|
5149
|
+
|
|
5150
|
+
function hide(_ref) {
|
|
5151
|
+
var state = _ref.state,
|
|
5152
|
+
name = _ref.name;
|
|
5153
|
+
var referenceRect = state.rects.reference;
|
|
5154
|
+
var popperRect = state.rects.popper;
|
|
5155
|
+
var preventedOffsets = state.modifiersData.preventOverflow;
|
|
5156
|
+
var referenceOverflow = detectOverflow(state, {
|
|
5157
|
+
elementContext: 'reference'
|
|
5158
|
+
});
|
|
5159
|
+
var popperAltOverflow = detectOverflow(state, {
|
|
5160
|
+
altBoundary: true
|
|
5161
|
+
});
|
|
5162
|
+
var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);
|
|
5163
|
+
var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);
|
|
5164
|
+
var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);
|
|
5165
|
+
var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);
|
|
5166
|
+
state.modifiersData[name] = {
|
|
5167
|
+
referenceClippingOffsets: referenceClippingOffsets,
|
|
5168
|
+
popperEscapeOffsets: popperEscapeOffsets,
|
|
5169
|
+
isReferenceHidden: isReferenceHidden,
|
|
5170
|
+
hasPopperEscaped: hasPopperEscaped
|
|
5171
|
+
};
|
|
5172
|
+
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
5173
|
+
'data-popper-reference-hidden': isReferenceHidden,
|
|
5174
|
+
'data-popper-escaped': hasPopperEscaped
|
|
5175
|
+
});
|
|
5176
|
+
} // eslint-disable-next-line import/no-unused-modules
|
|
5177
|
+
|
|
5178
|
+
|
|
5179
|
+
var hide$1 = {
|
|
5180
|
+
name: 'hide',
|
|
5181
|
+
enabled: true,
|
|
5182
|
+
phase: 'main',
|
|
5183
|
+
requiresIfExists: ['preventOverflow'],
|
|
5184
|
+
fn: hide
|
|
5185
|
+
};
|
|
5186
|
+
|
|
5187
|
+
function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
5188
|
+
var basePlacement = getBasePlacement(placement);
|
|
5189
|
+
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
5190
|
+
|
|
5191
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
5192
|
+
placement: placement
|
|
5193
|
+
})) : offset,
|
|
5194
|
+
skidding = _ref[0],
|
|
5195
|
+
distance = _ref[1];
|
|
5196
|
+
|
|
5197
|
+
skidding = skidding || 0;
|
|
5198
|
+
distance = (distance || 0) * invertDistance;
|
|
5199
|
+
return [left, right].indexOf(basePlacement) >= 0 ? {
|
|
5200
|
+
x: distance,
|
|
5201
|
+
y: skidding
|
|
5202
|
+
} : {
|
|
5203
|
+
x: skidding,
|
|
5204
|
+
y: distance
|
|
5205
|
+
};
|
|
5206
|
+
}
|
|
5207
|
+
|
|
5208
|
+
function offset(_ref2) {
|
|
5209
|
+
var state = _ref2.state,
|
|
5210
|
+
options = _ref2.options,
|
|
5211
|
+
name = _ref2.name;
|
|
5212
|
+
var _options$offset = options.offset,
|
|
5213
|
+
offset = _options$offset === void 0 ? [0, 0] : _options$offset;
|
|
5214
|
+
var data = placements.reduce(function (acc, placement) {
|
|
5215
|
+
acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);
|
|
5216
|
+
return acc;
|
|
5217
|
+
}, {});
|
|
5218
|
+
var _data$state$placement = data[state.placement],
|
|
5219
|
+
x = _data$state$placement.x,
|
|
5220
|
+
y = _data$state$placement.y;
|
|
5221
|
+
|
|
5222
|
+
if (state.modifiersData.popperOffsets != null) {
|
|
5223
|
+
state.modifiersData.popperOffsets.x += x;
|
|
5224
|
+
state.modifiersData.popperOffsets.y += y;
|
|
5225
|
+
}
|
|
5226
|
+
|
|
5227
|
+
state.modifiersData[name] = data;
|
|
5228
|
+
} // eslint-disable-next-line import/no-unused-modules
|
|
5229
|
+
|
|
5230
|
+
|
|
5231
|
+
var offset$1 = {
|
|
5232
|
+
name: 'offset',
|
|
5233
|
+
enabled: true,
|
|
5234
|
+
phase: 'main',
|
|
5235
|
+
requires: ['popperOffsets'],
|
|
5236
|
+
fn: offset
|
|
5237
|
+
};
|
|
5238
|
+
|
|
5239
|
+
function popperOffsets(_ref) {
|
|
5240
|
+
var state = _ref.state,
|
|
5241
|
+
name = _ref.name; // Offsets are the actual position the popper needs to have to be
|
|
5242
|
+
// properly positioned near its reference element
|
|
5243
|
+
// This is the most basic placement, and will be adjusted by
|
|
5244
|
+
// the modifiers in the next step
|
|
5245
|
+
|
|
5246
|
+
state.modifiersData[name] = computeOffsets({
|
|
5247
|
+
reference: state.rects.reference,
|
|
5248
|
+
element: state.rects.popper,
|
|
5249
|
+
strategy: 'absolute',
|
|
5250
|
+
placement: state.placement
|
|
5251
|
+
});
|
|
5252
|
+
} // eslint-disable-next-line import/no-unused-modules
|
|
5253
|
+
|
|
5254
|
+
|
|
5255
|
+
var popperOffsets$1 = {
|
|
5256
|
+
name: 'popperOffsets',
|
|
5257
|
+
enabled: true,
|
|
5258
|
+
phase: 'read',
|
|
5259
|
+
fn: popperOffsets,
|
|
5260
|
+
data: {}
|
|
5261
|
+
};
|
|
5262
|
+
|
|
5263
|
+
function getAltAxis(axis) {
|
|
5264
|
+
return axis === 'x' ? 'y' : 'x';
|
|
5265
|
+
}
|
|
5266
|
+
|
|
5267
|
+
function preventOverflow(_ref) {
|
|
5268
|
+
var state = _ref.state,
|
|
5269
|
+
options = _ref.options,
|
|
5270
|
+
name = _ref.name;
|
|
5271
|
+
var _options$mainAxis = options.mainAxis,
|
|
5272
|
+
checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
|
|
5273
|
+
_options$altAxis = options.altAxis,
|
|
5274
|
+
checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,
|
|
5275
|
+
boundary = options.boundary,
|
|
5276
|
+
rootBoundary = options.rootBoundary,
|
|
5277
|
+
altBoundary = options.altBoundary,
|
|
5278
|
+
padding = options.padding,
|
|
5279
|
+
_options$tether = options.tether,
|
|
5280
|
+
tether = _options$tether === void 0 ? true : _options$tether,
|
|
5281
|
+
_options$tetherOffset = options.tetherOffset,
|
|
5282
|
+
tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;
|
|
5283
|
+
var overflow = detectOverflow(state, {
|
|
5284
|
+
boundary: boundary,
|
|
5285
|
+
rootBoundary: rootBoundary,
|
|
5286
|
+
padding: padding,
|
|
5287
|
+
altBoundary: altBoundary
|
|
5288
|
+
});
|
|
5289
|
+
var basePlacement = getBasePlacement(state.placement);
|
|
5290
|
+
var variation = getVariation(state.placement);
|
|
5291
|
+
var isBasePlacement = !variation;
|
|
5292
|
+
var mainAxis = getMainAxisFromPlacement(basePlacement);
|
|
5293
|
+
var altAxis = getAltAxis(mainAxis);
|
|
5294
|
+
var popperOffsets = state.modifiersData.popperOffsets;
|
|
5295
|
+
var referenceRect = state.rects.reference;
|
|
5296
|
+
var popperRect = state.rects.popper;
|
|
5297
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
5298
|
+
placement: state.placement
|
|
5299
|
+
})) : tetherOffset;
|
|
5300
|
+
var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {
|
|
5301
|
+
mainAxis: tetherOffsetValue,
|
|
5302
|
+
altAxis: tetherOffsetValue
|
|
5303
|
+
} : Object.assign({
|
|
5304
|
+
mainAxis: 0,
|
|
5305
|
+
altAxis: 0
|
|
5306
|
+
}, tetherOffsetValue);
|
|
5307
|
+
var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;
|
|
5308
|
+
var data = {
|
|
5309
|
+
x: 0,
|
|
5310
|
+
y: 0
|
|
5311
|
+
};
|
|
5312
|
+
|
|
5313
|
+
if (!popperOffsets) {
|
|
5314
|
+
return;
|
|
5315
|
+
}
|
|
5316
|
+
|
|
5317
|
+
if (checkMainAxis) {
|
|
5318
|
+
var _offsetModifierState$;
|
|
5319
|
+
|
|
5320
|
+
var mainSide = mainAxis === 'y' ? top : left;
|
|
5321
|
+
var altSide = mainAxis === 'y' ? bottom : right;
|
|
5322
|
+
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
5323
|
+
var offset = popperOffsets[mainAxis];
|
|
5324
|
+
var min$1 = offset + overflow[mainSide];
|
|
5325
|
+
var max$1 = offset - overflow[altSide];
|
|
5326
|
+
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
5327
|
+
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
5328
|
+
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
5329
|
+
// outside the reference bounds
|
|
5330
|
+
|
|
5331
|
+
var arrowElement = state.elements.arrow;
|
|
5332
|
+
var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {
|
|
5333
|
+
width: 0,
|
|
5334
|
+
height: 0
|
|
5335
|
+
};
|
|
5336
|
+
var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();
|
|
5337
|
+
var arrowPaddingMin = arrowPaddingObject[mainSide];
|
|
5338
|
+
var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want
|
|
5339
|
+
// to include its full size in the calculation. If the reference is small
|
|
5340
|
+
// and near the edge of a boundary, the popper can overflow even if the
|
|
5341
|
+
// reference is not overflowing as well (e.g. virtual elements with no
|
|
5342
|
+
// width or height)
|
|
5343
|
+
|
|
5344
|
+
var arrowLen = within(0, referenceRect[len], arrowRect[len]);
|
|
5345
|
+
var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;
|
|
5346
|
+
var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;
|
|
5347
|
+
var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
|
|
5348
|
+
var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
|
|
5349
|
+
var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;
|
|
5350
|
+
var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;
|
|
5351
|
+
var tetherMax = offset + maxOffset - offsetModifierValue;
|
|
5352
|
+
var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
|
|
5353
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
5354
|
+
data[mainAxis] = preventedOffset - offset;
|
|
5355
|
+
}
|
|
5356
|
+
|
|
5357
|
+
if (checkAltAxis) {
|
|
5358
|
+
var _offsetModifierState$2;
|
|
5359
|
+
|
|
5360
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
5361
|
+
|
|
5362
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
5363
|
+
|
|
5364
|
+
var _offset = popperOffsets[altAxis];
|
|
5365
|
+
|
|
5366
|
+
var _len = altAxis === 'y' ? 'height' : 'width';
|
|
5367
|
+
|
|
5368
|
+
var _min = _offset + overflow[_mainSide];
|
|
5369
|
+
|
|
5370
|
+
var _max = _offset - overflow[_altSide];
|
|
5371
|
+
|
|
5372
|
+
var isOriginSide = [top, left].indexOf(basePlacement) !== -1;
|
|
5373
|
+
|
|
5374
|
+
var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;
|
|
5375
|
+
|
|
5376
|
+
var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;
|
|
5377
|
+
|
|
5378
|
+
var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;
|
|
5379
|
+
|
|
5380
|
+
var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);
|
|
5381
|
+
|
|
5382
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
5383
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
5384
|
+
}
|
|
5385
|
+
|
|
5386
|
+
state.modifiersData[name] = data;
|
|
5387
|
+
} // eslint-disable-next-line import/no-unused-modules
|
|
5388
|
+
|
|
5389
|
+
|
|
5390
|
+
var preventOverflow$1 = {
|
|
5391
|
+
name: 'preventOverflow',
|
|
5392
|
+
enabled: true,
|
|
5393
|
+
phase: 'main',
|
|
5394
|
+
fn: preventOverflow,
|
|
5395
|
+
requiresIfExists: ['offset']
|
|
5396
|
+
};
|
|
5397
|
+
|
|
5398
|
+
function getHTMLElementScroll(element) {
|
|
5399
|
+
return {
|
|
5400
|
+
scrollLeft: element.scrollLeft,
|
|
5401
|
+
scrollTop: element.scrollTop
|
|
5402
|
+
};
|
|
5403
|
+
}
|
|
5404
|
+
|
|
5405
|
+
function getNodeScroll(node) {
|
|
5406
|
+
if (node === getWindow(node) || !isHTMLElement(node)) {
|
|
5407
|
+
return getWindowScroll(node);
|
|
5408
|
+
} else {
|
|
5409
|
+
return getHTMLElementScroll(node);
|
|
5410
|
+
}
|
|
5411
|
+
}
|
|
5412
|
+
|
|
5413
|
+
function isElementScaled(element) {
|
|
5414
|
+
var rect = element.getBoundingClientRect();
|
|
5415
|
+
var scaleX = round(rect.width) / element.offsetWidth || 1;
|
|
5416
|
+
var scaleY = round(rect.height) / element.offsetHeight || 1;
|
|
5417
|
+
return scaleX !== 1 || scaleY !== 1;
|
|
5418
|
+
} // Returns the composite rect of an element relative to its offsetParent.
|
|
5419
|
+
// Composite means it takes into account transforms as well as layout.
|
|
5420
|
+
|
|
5421
|
+
|
|
5422
|
+
function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
5423
|
+
if (isFixed === void 0) {
|
|
5424
|
+
isFixed = false;
|
|
5425
|
+
}
|
|
5426
|
+
|
|
5427
|
+
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
5428
|
+
var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
5429
|
+
var documentElement = getDocumentElement(offsetParent);
|
|
5430
|
+
var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
|
|
5431
|
+
var scroll = {
|
|
5432
|
+
scrollLeft: 0,
|
|
5433
|
+
scrollTop: 0
|
|
5434
|
+
};
|
|
5435
|
+
var offsets = {
|
|
5436
|
+
x: 0,
|
|
5437
|
+
y: 0
|
|
5438
|
+
};
|
|
5439
|
+
|
|
5440
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
5441
|
+
if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078
|
|
5442
|
+
isScrollParent(documentElement)) {
|
|
5443
|
+
scroll = getNodeScroll(offsetParent);
|
|
5444
|
+
}
|
|
5445
|
+
|
|
5446
|
+
if (isHTMLElement(offsetParent)) {
|
|
5447
|
+
offsets = getBoundingClientRect(offsetParent, true);
|
|
5448
|
+
offsets.x += offsetParent.clientLeft;
|
|
5449
|
+
offsets.y += offsetParent.clientTop;
|
|
5450
|
+
} else if (documentElement) {
|
|
5451
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
5452
|
+
}
|
|
5453
|
+
}
|
|
5454
|
+
|
|
5455
|
+
return {
|
|
5456
|
+
x: rect.left + scroll.scrollLeft - offsets.x,
|
|
5457
|
+
y: rect.top + scroll.scrollTop - offsets.y,
|
|
5458
|
+
width: rect.width,
|
|
5459
|
+
height: rect.height
|
|
5460
|
+
};
|
|
5461
|
+
}
|
|
5462
|
+
|
|
5463
|
+
function order(modifiers) {
|
|
5464
|
+
var map = new Map();
|
|
5465
|
+
var visited = new Set();
|
|
5466
|
+
var result = [];
|
|
5467
|
+
modifiers.forEach(function (modifier) {
|
|
5468
|
+
map.set(modifier.name, modifier);
|
|
5469
|
+
}); // On visiting object, check for its dependencies and visit them recursively
|
|
5470
|
+
|
|
5471
|
+
function sort(modifier) {
|
|
5472
|
+
visited.add(modifier.name);
|
|
5473
|
+
var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);
|
|
5474
|
+
requires.forEach(function (dep) {
|
|
5475
|
+
if (!visited.has(dep)) {
|
|
5476
|
+
var depModifier = map.get(dep);
|
|
5477
|
+
|
|
5478
|
+
if (depModifier) {
|
|
5479
|
+
sort(depModifier);
|
|
5480
|
+
}
|
|
5481
|
+
}
|
|
5482
|
+
});
|
|
5483
|
+
result.push(modifier);
|
|
5484
|
+
}
|
|
5485
|
+
|
|
5486
|
+
modifiers.forEach(function (modifier) {
|
|
5487
|
+
if (!visited.has(modifier.name)) {
|
|
5488
|
+
// check for visited object
|
|
5489
|
+
sort(modifier);
|
|
5490
|
+
}
|
|
5491
|
+
});
|
|
5492
|
+
return result;
|
|
5493
|
+
}
|
|
5494
|
+
|
|
5495
|
+
function orderModifiers(modifiers) {
|
|
5496
|
+
// order based on dependencies
|
|
5497
|
+
var orderedModifiers = order(modifiers); // order based on phase
|
|
5498
|
+
|
|
5499
|
+
return modifierPhases.reduce(function (acc, phase) {
|
|
5500
|
+
return acc.concat(orderedModifiers.filter(function (modifier) {
|
|
5501
|
+
return modifier.phase === phase;
|
|
5502
|
+
}));
|
|
5503
|
+
}, []);
|
|
5504
|
+
}
|
|
5505
|
+
|
|
5506
|
+
function debounce$2(fn) {
|
|
5507
|
+
var pending;
|
|
5508
|
+
return function () {
|
|
5509
|
+
if (!pending) {
|
|
5510
|
+
pending = new Promise(function (resolve) {
|
|
5511
|
+
Promise.resolve().then(function () {
|
|
5512
|
+
pending = undefined;
|
|
5513
|
+
resolve(fn());
|
|
5514
|
+
});
|
|
5515
|
+
});
|
|
5516
|
+
}
|
|
5517
|
+
|
|
5518
|
+
return pending;
|
|
5519
|
+
};
|
|
5520
|
+
}
|
|
5521
|
+
|
|
5522
|
+
function format(str) {
|
|
5523
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
5524
|
+
args[_key - 1] = arguments[_key];
|
|
5525
|
+
}
|
|
5526
|
+
|
|
5527
|
+
return [].concat(args).reduce(function (p, c) {
|
|
5528
|
+
return p.replace(/%s/, c);
|
|
5529
|
+
}, str);
|
|
5530
|
+
}
|
|
5531
|
+
|
|
5532
|
+
var INVALID_MODIFIER_ERROR = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s';
|
|
5533
|
+
var MISSING_DEPENDENCY_ERROR = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available';
|
|
5534
|
+
var VALID_PROPERTIES = ['name', 'enabled', 'phase', 'fn', 'effect', 'requires', 'options'];
|
|
5535
|
+
function validateModifiers(modifiers) {
|
|
5536
|
+
modifiers.forEach(function (modifier) {
|
|
5537
|
+
[].concat(Object.keys(modifier), VALID_PROPERTIES) // IE11-compatible replacement for `new Set(iterable)`
|
|
5538
|
+
.filter(function (value, index, self) {
|
|
5539
|
+
return self.indexOf(value) === index;
|
|
5540
|
+
}).forEach(function (key) {
|
|
5541
|
+
switch (key) {
|
|
5542
|
+
case 'name':
|
|
5543
|
+
if (typeof modifier.name !== 'string') {
|
|
5544
|
+
console.error(format(INVALID_MODIFIER_ERROR, String(modifier.name), '"name"', '"string"', "\"" + String(modifier.name) + "\""));
|
|
5545
|
+
}
|
|
5546
|
+
|
|
5547
|
+
break;
|
|
5548
|
+
|
|
5549
|
+
case 'enabled':
|
|
5550
|
+
if (typeof modifier.enabled !== 'boolean') {
|
|
5551
|
+
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"enabled"', '"boolean"', "\"" + String(modifier.enabled) + "\""));
|
|
5552
|
+
}
|
|
5553
|
+
|
|
5554
|
+
break;
|
|
5555
|
+
|
|
5556
|
+
case 'phase':
|
|
5557
|
+
if (modifierPhases.indexOf(modifier.phase) < 0) {
|
|
5558
|
+
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"phase"', "either " + modifierPhases.join(', '), "\"" + String(modifier.phase) + "\""));
|
|
5559
|
+
}
|
|
5560
|
+
|
|
5561
|
+
break;
|
|
5562
|
+
|
|
5563
|
+
case 'fn':
|
|
5564
|
+
if (typeof modifier.fn !== 'function') {
|
|
5565
|
+
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"fn"', '"function"', "\"" + String(modifier.fn) + "\""));
|
|
5566
|
+
}
|
|
5567
|
+
|
|
5568
|
+
break;
|
|
5569
|
+
|
|
5570
|
+
case 'effect':
|
|
5571
|
+
if (modifier.effect != null && typeof modifier.effect !== 'function') {
|
|
5572
|
+
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"effect"', '"function"', "\"" + String(modifier.fn) + "\""));
|
|
5573
|
+
}
|
|
5415
5574
|
|
|
5416
|
-
|
|
5417
|
-
var checks = [];
|
|
5575
|
+
break;
|
|
5418
5576
|
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5577
|
+
case 'requires':
|
|
5578
|
+
if (modifier.requires != null && !Array.isArray(modifier.requires)) {
|
|
5579
|
+
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requires"', '"array"', "\"" + String(modifier.requires) + "\""));
|
|
5580
|
+
}
|
|
5422
5581
|
|
|
5423
|
-
|
|
5424
|
-
checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);
|
|
5425
|
-
}
|
|
5582
|
+
break;
|
|
5426
5583
|
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
makeFallbackChecks = false;
|
|
5432
|
-
break;
|
|
5433
|
-
}
|
|
5584
|
+
case 'requiresIfExists':
|
|
5585
|
+
if (!Array.isArray(modifier.requiresIfExists)) {
|
|
5586
|
+
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requiresIfExists"', '"array"', "\"" + String(modifier.requiresIfExists) + "\""));
|
|
5587
|
+
}
|
|
5434
5588
|
|
|
5435
|
-
|
|
5436
|
-
}
|
|
5589
|
+
break;
|
|
5437
5590
|
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5591
|
+
case 'options':
|
|
5592
|
+
case 'data':
|
|
5593
|
+
break;
|
|
5441
5594
|
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5595
|
+
default:
|
|
5596
|
+
console.error("PopperJS: an invalid property has been provided to the \"" + modifier.name + "\" modifier, valid properties are " + VALID_PROPERTIES.map(function (s) {
|
|
5597
|
+
return "\"" + s + "\"";
|
|
5598
|
+
}).join(', ') + "; but \"" + key + "\" was provided.");
|
|
5599
|
+
}
|
|
5445
5600
|
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5601
|
+
modifier.requires && modifier.requires.forEach(function (requirement) {
|
|
5602
|
+
if (modifiers.find(function (mod) {
|
|
5603
|
+
return mod.name === requirement;
|
|
5604
|
+
}) == null) {
|
|
5605
|
+
console.error(format(MISSING_DEPENDENCY_ERROR, String(modifier.name), requirement, requirement));
|
|
5450
5606
|
}
|
|
5451
5607
|
});
|
|
5608
|
+
});
|
|
5609
|
+
});
|
|
5610
|
+
}
|
|
5452
5611
|
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
};
|
|
5458
|
-
|
|
5459
|
-
for (var _i = numberOfChecks; _i > 0; _i--) {
|
|
5460
|
-
var _ret = _loop(_i);
|
|
5612
|
+
function uniqueBy(arr, fn) {
|
|
5613
|
+
var identifiers = new Set();
|
|
5614
|
+
return arr.filter(function (item) {
|
|
5615
|
+
var identifier = fn(item);
|
|
5461
5616
|
|
|
5462
|
-
|
|
5617
|
+
if (!identifiers.has(identifier)) {
|
|
5618
|
+
identifiers.add(identifier);
|
|
5619
|
+
return true;
|
|
5463
5620
|
}
|
|
5464
|
-
}
|
|
5621
|
+
});
|
|
5622
|
+
}
|
|
5465
5623
|
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
5624
|
+
function mergeByName(modifiers) {
|
|
5625
|
+
var merged = modifiers.reduce(function (merged, current) {
|
|
5626
|
+
var existing = merged[current.name];
|
|
5627
|
+
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
5628
|
+
options: Object.assign({}, existing.options, current.options),
|
|
5629
|
+
data: Object.assign({}, existing.data, current.data)
|
|
5630
|
+
}) : current;
|
|
5631
|
+
return merged;
|
|
5632
|
+
}, {}); // IE11 does not support Object.values
|
|
5472
5633
|
|
|
5634
|
+
return Object.keys(merged).map(function (key) {
|
|
5635
|
+
return merged[key];
|
|
5636
|
+
});
|
|
5637
|
+
}
|
|
5473
5638
|
|
|
5474
|
-
var
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
data: {
|
|
5481
|
-
_skip: false
|
|
5482
|
-
}
|
|
5639
|
+
var INVALID_ELEMENT_ERROR = 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';
|
|
5640
|
+
var INFINITE_LOOP_ERROR = 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';
|
|
5641
|
+
var DEFAULT_OPTIONS = {
|
|
5642
|
+
placement: 'bottom',
|
|
5643
|
+
modifiers: [],
|
|
5644
|
+
strategy: 'absolute'
|
|
5483
5645
|
};
|
|
5484
5646
|
|
|
5485
|
-
function
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
function within(min, value, max) {
|
|
5490
|
-
return Math.max(min, Math.min(value, max));
|
|
5491
|
-
}
|
|
5647
|
+
function areValidElements() {
|
|
5648
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5649
|
+
args[_key] = arguments[_key];
|
|
5650
|
+
}
|
|
5492
5651
|
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
-
options = _ref.options,
|
|
5496
|
-
name = _ref.name;
|
|
5497
|
-
var _options$mainAxis = options.mainAxis,
|
|
5498
|
-
checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
|
|
5499
|
-
_options$altAxis = options.altAxis,
|
|
5500
|
-
checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,
|
|
5501
|
-
boundary = options.boundary,
|
|
5502
|
-
rootBoundary = options.rootBoundary,
|
|
5503
|
-
altBoundary = options.altBoundary,
|
|
5504
|
-
padding = options.padding,
|
|
5505
|
-
_options$tether = options.tether,
|
|
5506
|
-
tether = _options$tether === void 0 ? true : _options$tether,
|
|
5507
|
-
_options$tetherOffset = options.tetherOffset,
|
|
5508
|
-
tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;
|
|
5509
|
-
var overflow = detectOverflow(state, {
|
|
5510
|
-
boundary: boundary,
|
|
5511
|
-
rootBoundary: rootBoundary,
|
|
5512
|
-
padding: padding,
|
|
5513
|
-
altBoundary: altBoundary
|
|
5652
|
+
return !args.some(function (element) {
|
|
5653
|
+
return !(element && typeof element.getBoundingClientRect === 'function');
|
|
5514
5654
|
});
|
|
5515
|
-
|
|
5516
|
-
var variation = getVariation(state.placement);
|
|
5517
|
-
var isBasePlacement = !variation;
|
|
5518
|
-
var mainAxis = getMainAxisFromPlacement(basePlacement);
|
|
5519
|
-
var altAxis = getAltAxis(mainAxis);
|
|
5520
|
-
var popperOffsets = state.modifiersData.popperOffsets;
|
|
5521
|
-
var referenceRect = state.rects.reference;
|
|
5522
|
-
var popperRect = state.rects.popper;
|
|
5523
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(Object.assign({}, state.rects), {}, {
|
|
5524
|
-
placement: state.placement
|
|
5525
|
-
})) : tetherOffset;
|
|
5526
|
-
var data = {
|
|
5527
|
-
x: 0,
|
|
5528
|
-
y: 0
|
|
5529
|
-
};
|
|
5655
|
+
}
|
|
5530
5656
|
|
|
5531
|
-
|
|
5532
|
-
|
|
5657
|
+
function popperGenerator(generatorOptions) {
|
|
5658
|
+
if (generatorOptions === void 0) {
|
|
5659
|
+
generatorOptions = {};
|
|
5533
5660
|
}
|
|
5534
5661
|
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
5545
|
-
// outside the reference bounds
|
|
5662
|
+
var _generatorOptions = generatorOptions,
|
|
5663
|
+
_generatorOptions$def = _generatorOptions.defaultModifiers,
|
|
5664
|
+
defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,
|
|
5665
|
+
_generatorOptions$def2 = _generatorOptions.defaultOptions,
|
|
5666
|
+
defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;
|
|
5667
|
+
return function createPopper(reference, popper, options) {
|
|
5668
|
+
if (options === void 0) {
|
|
5669
|
+
options = defaultOptions;
|
|
5670
|
+
}
|
|
5546
5671
|
|
|
5547
|
-
var
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5672
|
+
var state = {
|
|
5673
|
+
placement: 'bottom',
|
|
5674
|
+
orderedModifiers: [],
|
|
5675
|
+
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
5676
|
+
modifiersData: {},
|
|
5677
|
+
elements: {
|
|
5678
|
+
reference: reference,
|
|
5679
|
+
popper: popper
|
|
5680
|
+
},
|
|
5681
|
+
attributes: {},
|
|
5682
|
+
styles: {}
|
|
5551
5683
|
};
|
|
5552
|
-
var
|
|
5553
|
-
var
|
|
5554
|
-
var
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5684
|
+
var effectCleanupFns = [];
|
|
5685
|
+
var isDestroyed = false;
|
|
5686
|
+
var instance = {
|
|
5687
|
+
state: state,
|
|
5688
|
+
setOptions: function setOptions(setOptionsAction) {
|
|
5689
|
+
var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;
|
|
5690
|
+
cleanupModifierEffects();
|
|
5691
|
+
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
5692
|
+
state.scrollParents = {
|
|
5693
|
+
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
5694
|
+
popper: listScrollParents(popper)
|
|
5695
|
+
}; // Orders the modifiers based on their dependencies and `phase`
|
|
5696
|
+
// properties
|
|
5559
5697
|
|
|
5560
|
-
|
|
5561
|
-
var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - tetherOffsetValue : minLen - arrowLen - arrowPaddingMin - tetherOffsetValue;
|
|
5562
|
-
var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + tetherOffsetValue : maxLen + arrowLen + arrowPaddingMax + tetherOffsetValue;
|
|
5563
|
-
var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
|
|
5564
|
-
var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
|
|
5565
|
-
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
5566
|
-
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
5567
|
-
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
|
|
5568
|
-
var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
|
|
5569
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
5570
|
-
data[mainAxis] = preventedOffset - offset;
|
|
5571
|
-
}
|
|
5698
|
+
var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers
|
|
5572
5699
|
|
|
5573
|
-
|
|
5574
|
-
|
|
5700
|
+
state.orderedModifiers = orderedModifiers.filter(function (m) {
|
|
5701
|
+
return m.enabled;
|
|
5702
|
+
}); // Validate the provided modifiers so that the consumer will get warned
|
|
5703
|
+
// if one of the modifiers is invalid for any reason
|
|
5575
5704
|
|
|
5576
|
-
|
|
5705
|
+
{
|
|
5706
|
+
var modifiers = uniqueBy([].concat(orderedModifiers, state.options.modifiers), function (_ref) {
|
|
5707
|
+
var name = _ref.name;
|
|
5708
|
+
return name;
|
|
5709
|
+
});
|
|
5710
|
+
validateModifiers(modifiers);
|
|
5577
5711
|
|
|
5578
|
-
|
|
5712
|
+
if (getBasePlacement(state.options.placement) === auto) {
|
|
5713
|
+
var flipModifier = state.orderedModifiers.find(function (_ref2) {
|
|
5714
|
+
var name = _ref2.name;
|
|
5715
|
+
return name === 'flip';
|
|
5716
|
+
});
|
|
5579
5717
|
|
|
5580
|
-
|
|
5718
|
+
if (!flipModifier) {
|
|
5719
|
+
console.error(['Popper: "auto" placements require the "flip" modifier be', 'present and enabled to work.'].join(' '));
|
|
5720
|
+
}
|
|
5721
|
+
}
|
|
5581
5722
|
|
|
5582
|
-
|
|
5723
|
+
var _getComputedStyle = getComputedStyle$1(popper),
|
|
5724
|
+
marginTop = _getComputedStyle.marginTop,
|
|
5725
|
+
marginRight = _getComputedStyle.marginRight,
|
|
5726
|
+
marginBottom = _getComputedStyle.marginBottom,
|
|
5727
|
+
marginLeft = _getComputedStyle.marginLeft; // We no longer take into account `margins` on the popper, and it can
|
|
5728
|
+
// cause bugs with positioning, so we'll warn the consumer
|
|
5583
5729
|
|
|
5584
|
-
var _preventedOffset = within(_min, _offset, _max);
|
|
5585
5730
|
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5731
|
+
if ([marginTop, marginRight, marginBottom, marginLeft].some(function (margin) {
|
|
5732
|
+
return parseFloat(margin);
|
|
5733
|
+
})) {
|
|
5734
|
+
console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', 'between the popper and its reference element or boundary.', 'To replicate margin, use the `offset` modifier, as well as', 'the `padding` option in the `preventOverflow` and `flip`', 'modifiers.'].join(' '));
|
|
5735
|
+
}
|
|
5736
|
+
}
|
|
5589
5737
|
|
|
5590
|
-
|
|
5591
|
-
|
|
5738
|
+
runModifierEffects();
|
|
5739
|
+
return instance.update();
|
|
5740
|
+
},
|
|
5741
|
+
// Sync update – it will always be executed, even if not necessary. This
|
|
5742
|
+
// is useful for low frequency updates where sync behavior simplifies the
|
|
5743
|
+
// logic.
|
|
5744
|
+
// For high frequency updates (e.g. `resize` and `scroll` events), always
|
|
5745
|
+
// prefer the async Popper#update method
|
|
5746
|
+
forceUpdate: function forceUpdate() {
|
|
5747
|
+
if (isDestroyed) {
|
|
5748
|
+
return;
|
|
5749
|
+
}
|
|
5592
5750
|
|
|
5751
|
+
var _state$elements = state.elements,
|
|
5752
|
+
reference = _state$elements.reference,
|
|
5753
|
+
popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements
|
|
5754
|
+
// anymore
|
|
5593
5755
|
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
fn: preventOverflow,
|
|
5599
|
-
requiresIfExists: ['offset']
|
|
5600
|
-
};
|
|
5756
|
+
if (!areValidElements(reference, popper)) {
|
|
5757
|
+
{
|
|
5758
|
+
console.error(INVALID_ELEMENT_ERROR);
|
|
5759
|
+
}
|
|
5601
5760
|
|
|
5602
|
-
|
|
5603
|
-
|
|
5761
|
+
return;
|
|
5762
|
+
} // Store the reference and popper rects to be read by modifiers
|
|
5604
5763
|
|
|
5605
|
-
var state = _ref.state,
|
|
5606
|
-
name = _ref.name;
|
|
5607
|
-
var arrowElement = state.elements.arrow;
|
|
5608
|
-
var popperOffsets = state.modifiersData.popperOffsets;
|
|
5609
|
-
var basePlacement = getBasePlacement(state.placement);
|
|
5610
|
-
var axis = getMainAxisFromPlacement(basePlacement);
|
|
5611
|
-
var isVertical = [left, right].indexOf(basePlacement) >= 0;
|
|
5612
|
-
var len = isVertical ? 'height' : 'width';
|
|
5613
5764
|
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5765
|
+
state.rects = {
|
|
5766
|
+
reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),
|
|
5767
|
+
popper: getLayoutRect(popper)
|
|
5768
|
+
}; // Modifiers have the ability to reset the current update cycle. The
|
|
5769
|
+
// most common use case for this is the `flip` modifier changing the
|
|
5770
|
+
// placement, which then needs to re-run all the modifiers, because the
|
|
5771
|
+
// logic was previously ran for the previous placement and is therefore
|
|
5772
|
+
// stale/incorrect
|
|
5617
5773
|
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
var startDiff = popperOffsets[axis] - state.rects.reference[axis];
|
|
5624
|
-
var arrowOffsetParent = getOffsetParent(arrowElement);
|
|
5625
|
-
var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
|
|
5626
|
-
var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is
|
|
5627
|
-
// outside of the popper bounds
|
|
5774
|
+
state.reset = false;
|
|
5775
|
+
state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier
|
|
5776
|
+
// is filled with the initial data specified by the modifier. This means
|
|
5777
|
+
// it doesn't persist and is fresh on each update.
|
|
5778
|
+
// To ensure persistent data, use `${name}#persistent`
|
|
5628
5779
|
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
|
|
5780
|
+
state.orderedModifiers.forEach(function (modifier) {
|
|
5781
|
+
return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
|
|
5782
|
+
});
|
|
5783
|
+
var __debug_loops__ = 0;
|
|
5633
5784
|
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5785
|
+
for (var index = 0; index < state.orderedModifiers.length; index++) {
|
|
5786
|
+
{
|
|
5787
|
+
__debug_loops__ += 1;
|
|
5637
5788
|
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element,
|
|
5644
|
-
_options$padding = options.padding,
|
|
5645
|
-
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
5789
|
+
if (__debug_loops__ > 100) {
|
|
5790
|
+
console.error(INFINITE_LOOP_ERROR);
|
|
5791
|
+
break;
|
|
5792
|
+
}
|
|
5793
|
+
}
|
|
5646
5794
|
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5795
|
+
if (state.reset === true) {
|
|
5796
|
+
state.reset = false;
|
|
5797
|
+
index = -1;
|
|
5798
|
+
continue;
|
|
5799
|
+
}
|
|
5650
5800
|
|
|
5801
|
+
var _state$orderedModifie = state.orderedModifiers[index],
|
|
5802
|
+
fn = _state$orderedModifie.fn,
|
|
5803
|
+
_state$orderedModifie2 = _state$orderedModifie.options,
|
|
5804
|
+
_options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,
|
|
5805
|
+
name = _state$orderedModifie.name;
|
|
5651
5806
|
|
|
5652
|
-
|
|
5653
|
-
|
|
5807
|
+
if (typeof fn === 'function') {
|
|
5808
|
+
state = fn({
|
|
5809
|
+
state: state,
|
|
5810
|
+
options: _options,
|
|
5811
|
+
name: name,
|
|
5812
|
+
instance: instance
|
|
5813
|
+
}) || state;
|
|
5814
|
+
}
|
|
5815
|
+
}
|
|
5816
|
+
},
|
|
5817
|
+
// Async and optimistically optimized update – it will not be executed if
|
|
5818
|
+
// not necessary (debounced to run at most once-per-tick)
|
|
5819
|
+
update: debounce$2(function () {
|
|
5820
|
+
return new Promise(function (resolve) {
|
|
5821
|
+
instance.forceUpdate();
|
|
5822
|
+
resolve(state);
|
|
5823
|
+
});
|
|
5824
|
+
}),
|
|
5825
|
+
destroy: function destroy() {
|
|
5826
|
+
cleanupModifierEffects();
|
|
5827
|
+
isDestroyed = true;
|
|
5828
|
+
}
|
|
5829
|
+
};
|
|
5654
5830
|
|
|
5655
|
-
if (!
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5831
|
+
if (!areValidElements(reference, popper)) {
|
|
5832
|
+
{
|
|
5833
|
+
console.error(INVALID_ELEMENT_ERROR);
|
|
5834
|
+
}
|
|
5659
5835
|
|
|
5660
|
-
|
|
5661
|
-
if (!isHTMLElement(arrowElement)) {
|
|
5662
|
-
console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', 'To use an SVG arrow, wrap it in an HTMLElement that will be used as', 'the arrow.'].join(' '));
|
|
5836
|
+
return instance;
|
|
5663
5837
|
}
|
|
5664
|
-
}
|
|
5665
5838
|
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5839
|
+
instance.setOptions(options).then(function (state) {
|
|
5840
|
+
if (!isDestroyed && options.onFirstUpdate) {
|
|
5841
|
+
options.onFirstUpdate(state);
|
|
5842
|
+
}
|
|
5843
|
+
}); // Modifiers have the ability to execute arbitrary code before the first
|
|
5844
|
+
// update cycle runs. They will be executed in the same order as the update
|
|
5845
|
+
// cycle. This is useful when a modifier adds some persistent data that
|
|
5846
|
+
// other modifiers need to use, but the modifier is run after the dependent
|
|
5847
|
+
// one.
|
|
5670
5848
|
|
|
5671
|
-
|
|
5672
|
-
|
|
5849
|
+
function runModifierEffects() {
|
|
5850
|
+
state.orderedModifiers.forEach(function (_ref3) {
|
|
5851
|
+
var name = _ref3.name,
|
|
5852
|
+
_ref3$options = _ref3.options,
|
|
5853
|
+
options = _ref3$options === void 0 ? {} : _ref3$options,
|
|
5854
|
+
effect = _ref3.effect;
|
|
5673
5855
|
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5856
|
+
if (typeof effect === 'function') {
|
|
5857
|
+
var cleanupFn = effect({
|
|
5858
|
+
state: state,
|
|
5859
|
+
name: name,
|
|
5860
|
+
instance: instance,
|
|
5861
|
+
options: options
|
|
5862
|
+
});
|
|
5679
5863
|
|
|
5864
|
+
var noopFn = function noopFn() {};
|
|
5680
5865
|
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
fn: arrow,
|
|
5686
|
-
effect: effect,
|
|
5687
|
-
requires: ['popperOffsets'],
|
|
5688
|
-
requiresIfExists: ['preventOverflow']
|
|
5689
|
-
};
|
|
5866
|
+
effectCleanupFns.push(cleanupFn || noopFn);
|
|
5867
|
+
}
|
|
5868
|
+
});
|
|
5869
|
+
}
|
|
5690
5870
|
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
}
|
|
5697
|
-
}
|
|
5871
|
+
function cleanupModifierEffects() {
|
|
5872
|
+
effectCleanupFns.forEach(function (fn) {
|
|
5873
|
+
return fn();
|
|
5874
|
+
});
|
|
5875
|
+
effectCleanupFns = [];
|
|
5876
|
+
}
|
|
5698
5877
|
|
|
5699
|
-
|
|
5700
|
-
top: overflow.top - rect.height - preventedOffsets.y,
|
|
5701
|
-
right: overflow.right - rect.width + preventedOffsets.x,
|
|
5702
|
-
bottom: overflow.bottom - rect.height + preventedOffsets.y,
|
|
5703
|
-
left: overflow.left - rect.width - preventedOffsets.x
|
|
5878
|
+
return instance;
|
|
5704
5879
|
};
|
|
5705
5880
|
}
|
|
5706
5881
|
|
|
5707
|
-
function isAnySideFullyClipped(overflow) {
|
|
5708
|
-
return [top, right, bottom, left].some(function (side) {
|
|
5709
|
-
return overflow[side] >= 0;
|
|
5710
|
-
});
|
|
5711
|
-
}
|
|
5712
|
-
|
|
5713
|
-
function hide(_ref) {
|
|
5714
|
-
var state = _ref.state,
|
|
5715
|
-
name = _ref.name;
|
|
5716
|
-
var referenceRect = state.rects.reference;
|
|
5717
|
-
var popperRect = state.rects.popper;
|
|
5718
|
-
var preventedOffsets = state.modifiersData.preventOverflow;
|
|
5719
|
-
var referenceOverflow = detectOverflow(state, {
|
|
5720
|
-
elementContext: 'reference'
|
|
5721
|
-
});
|
|
5722
|
-
var popperAltOverflow = detectOverflow(state, {
|
|
5723
|
-
altBoundary: true
|
|
5724
|
-
});
|
|
5725
|
-
var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);
|
|
5726
|
-
var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);
|
|
5727
|
-
var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);
|
|
5728
|
-
var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);
|
|
5729
|
-
state.modifiersData[name] = {
|
|
5730
|
-
referenceClippingOffsets: referenceClippingOffsets,
|
|
5731
|
-
popperEscapeOffsets: popperEscapeOffsets,
|
|
5732
|
-
isReferenceHidden: isReferenceHidden,
|
|
5733
|
-
hasPopperEscaped: hasPopperEscaped
|
|
5734
|
-
};
|
|
5735
|
-
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
5736
|
-
'data-popper-reference-hidden': isReferenceHidden,
|
|
5737
|
-
'data-popper-escaped': hasPopperEscaped
|
|
5738
|
-
});
|
|
5739
|
-
} // eslint-disable-next-line import/no-unused-modules
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
var hide$1 = {
|
|
5743
|
-
name: 'hide',
|
|
5744
|
-
enabled: true,
|
|
5745
|
-
phase: 'main',
|
|
5746
|
-
requiresIfExists: ['preventOverflow'],
|
|
5747
|
-
fn: hide
|
|
5748
|
-
};
|
|
5749
|
-
|
|
5750
5882
|
var defaultModifiers = [eventListeners, popperOffsets$1, computeStyles$1, applyStyles$1, offset$1, flip$1, preventOverflow$1, arrow$1, hide$1];
|
|
5751
5883
|
var createPopper = /*#__PURE__*/popperGenerator({
|
|
5752
5884
|
defaultModifiers: defaultModifiers
|
|
@@ -6038,7 +6170,9 @@
|
|
|
6038
6170
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6039
6171
|
var ref = _step.value;
|
|
6040
6172
|
|
|
6041
|
-
if (typeof ref === "function") {
|
|
6173
|
+
if (instance && instance.currentElement && typeof ref === "function") {
|
|
6174
|
+
ref(instance.currentElement);
|
|
6175
|
+
} else if (typeof ref === "function") {
|
|
6042
6176
|
ref(instance);
|
|
6043
6177
|
} else if (ref) {
|
|
6044
6178
|
ref.current = instance;
|
|
@@ -6052,14 +6186,6 @@
|
|
|
6052
6186
|
};
|
|
6053
6187
|
}
|
|
6054
6188
|
|
|
6055
|
-
function usePrevious(state) {
|
|
6056
|
-
var ref = React.useRef();
|
|
6057
|
-
React.useEffect(function () {
|
|
6058
|
-
ref.current = state;
|
|
6059
|
-
});
|
|
6060
|
-
return ref.current;
|
|
6061
|
-
}
|
|
6062
|
-
|
|
6063
6189
|
var Portal = function Portal(props) {
|
|
6064
6190
|
var children = props.children,
|
|
6065
6191
|
attach = props.attach;
|
|
@@ -6262,7 +6388,10 @@
|
|
|
6262
6388
|
var scrollHeight = contentEle.scrollHeight;
|
|
6263
6389
|
var minHeight = presetMaxHeight !== Infinity ? presetMaxHeight : scrollHeight;
|
|
6264
6390
|
contentEle.style.maxHeight = "".concat(minHeight, "px");
|
|
6265
|
-
|
|
6391
|
+
|
|
6392
|
+
if (presetMaxHeight !== Infinity) {
|
|
6393
|
+
contentEle.style.overflow = "";
|
|
6394
|
+
}
|
|
6266
6395
|
}
|
|
6267
6396
|
};
|
|
6268
6397
|
|
|
@@ -6350,8 +6479,6 @@
|
|
|
6350
6479
|
visible = _useDefault2[0],
|
|
6351
6480
|
setVisible = _useDefault2[1];
|
|
6352
6481
|
|
|
6353
|
-
var preVisible = usePrevious(visible);
|
|
6354
|
-
|
|
6355
6482
|
var _useState = React.useState(null),
|
|
6356
6483
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6357
6484
|
triggerRef = _useState2[0],
|
|
@@ -6363,48 +6490,49 @@
|
|
|
6363
6490
|
setOverlayRef = _useState4[1];
|
|
6364
6491
|
|
|
6365
6492
|
var contentRef = React.useRef(null);
|
|
6493
|
+
var popupRef = React.useRef(null);
|
|
6494
|
+
var popperRef = React.useRef(null);
|
|
6495
|
+
var onPopperFirstUpdate = React.useCallback(function (state) {
|
|
6496
|
+
var referenceElmRect = popupRef.current.getBoundingClientRect();
|
|
6497
|
+
var referenceElmTop = referenceElmRect.top,
|
|
6498
|
+
referenceElmLeft = referenceElmRect.left,
|
|
6499
|
+
bottom = referenceElmRect.bottom,
|
|
6500
|
+
right = referenceElmRect.right;
|
|
6501
|
+
var referenceElmBottom = window.innerHeight - bottom;
|
|
6502
|
+
var referenceElmRight = window.innerWidth - right;
|
|
6503
|
+
var _contentRef$current = contentRef.current,
|
|
6504
|
+
contentScrollHeight = _contentRef$current.scrollHeight,
|
|
6505
|
+
contentOffsetWidth = _contentRef$current.offsetWidth;
|
|
6506
|
+
var newPlacement = state.options.placement;
|
|
6366
6507
|
|
|
6367
|
-
|
|
6368
|
-
|
|
6369
|
-
|
|
6370
|
-
setFirstUpdate = _useState6[1];
|
|
6508
|
+
if (referenceElmBottom < contentScrollHeight && referenceElmTop >= contentScrollHeight) {
|
|
6509
|
+
newPlacement = state.options.placement.replace("bottom", "top");
|
|
6510
|
+
}
|
|
6371
6511
|
|
|
6372
|
-
|
|
6373
|
-
|
|
6374
|
-
|
|
6375
|
-
};
|
|
6376
|
-
}, []);
|
|
6377
|
-
var popperOptions = React.useMemo(function () {
|
|
6378
|
-
var _contentRef$current, _childElement$offsetH, _childElement$offsetW;
|
|
6512
|
+
if (referenceElmTop < contentScrollHeight && referenceElmBottom >= contentScrollHeight) {
|
|
6513
|
+
newPlacement = state.options.placement.replace("top", "bottom");
|
|
6514
|
+
}
|
|
6379
6515
|
|
|
6380
|
-
if (
|
|
6381
|
-
|
|
6382
|
-
}
|
|
6383
|
-
var childElement = (_contentRef$current = contentRef.current) === null || _contentRef$current === void 0 ? void 0 : _contentRef$current.firstElementChild;
|
|
6384
|
-
var height = (_childElement$offsetH = childElement === null || childElement === void 0 ? void 0 : childElement.offsetHeight) !== null && _childElement$offsetH !== void 0 ? _childElement$offsetH : 0;
|
|
6385
|
-
var width = (_childElement$offsetW = childElement === null || childElement === void 0 ? void 0 : childElement.offsetWidth) !== null && _childElement$offsetW !== void 0 ? _childElement$offsetW : 0;
|
|
6386
|
-
return {
|
|
6387
|
-
padding: {
|
|
6388
|
-
top: height,
|
|
6389
|
-
left: width,
|
|
6390
|
-
right: width,
|
|
6391
|
-
bottom: height
|
|
6392
|
-
}
|
|
6393
|
-
};
|
|
6394
|
-
}, [visible, overlayRef]);
|
|
6516
|
+
if (referenceElmLeft < contentOffsetWidth && referenceElmRight >= contentOffsetWidth) {
|
|
6517
|
+
newPlacement = state.options.placement.replace("left", "right");
|
|
6518
|
+
}
|
|
6395
6519
|
|
|
6396
|
-
|
|
6397
|
-
|
|
6398
|
-
|
|
6399
|
-
modifiers: [{
|
|
6400
|
-
name: "flip",
|
|
6401
|
-
options: _objectSpread$1R({}, popperOptions)
|
|
6402
|
-
}]
|
|
6403
|
-
}),
|
|
6404
|
-
styles = _usePopper.styles,
|
|
6405
|
-
attributes = _usePopper.attributes,
|
|
6406
|
-
update = _usePopper.update;
|
|
6520
|
+
if (referenceElmRight < contentOffsetWidth && referenceElmLeft >= contentOffsetWidth) {
|
|
6521
|
+
newPlacement = state.options.placement.replace("right", "left");
|
|
6522
|
+
}
|
|
6407
6523
|
|
|
6524
|
+
Object.assign(state.options, _objectSpread$1R(_objectSpread$1R({}, state.options), {}, {
|
|
6525
|
+
placement: newPlacement
|
|
6526
|
+
}));
|
|
6527
|
+
popperRef.current.update();
|
|
6528
|
+
}, []);
|
|
6529
|
+
popperRef.current = usePopper(triggerRef, overlayRef, {
|
|
6530
|
+
placement: placementMap[placement],
|
|
6531
|
+
onFirstUpdate: onPopperFirstUpdate
|
|
6532
|
+
});
|
|
6533
|
+
var _popperRef$current = popperRef.current,
|
|
6534
|
+
styles = _popperRef$current.styles,
|
|
6535
|
+
attributes = _popperRef$current.attributes;
|
|
6408
6536
|
var defaultStyles = React.useMemo(function () {
|
|
6409
6537
|
if (triggerRef && typeof overlayStyle === "function") return _objectSpread$1R(_objectSpread$1R({}, overlayStyle(triggerRef)), {}, {
|
|
6410
6538
|
zIndex: zIndex
|
|
@@ -6447,22 +6575,6 @@
|
|
|
6447
6575
|
classPrefix: classPrefix,
|
|
6448
6576
|
expandAnimation: expandAnimation
|
|
6449
6577
|
});
|
|
6450
|
-
React.useEffect(function () {
|
|
6451
|
-
if ((visible || firstUpdate) && update) {
|
|
6452
|
-
update();
|
|
6453
|
-
}
|
|
6454
|
-
}, [visible, preVisible, update, children, firstUpdate]);
|
|
6455
|
-
|
|
6456
|
-
var handlePopupWrapperMouseDown = function handlePopupWrapperMouseDown() {
|
|
6457
|
-
var removeUpdate = function removeUpdate() {
|
|
6458
|
-
return window.removeEventListener("mousemove", update);
|
|
6459
|
-
};
|
|
6460
|
-
|
|
6461
|
-
window.removeEventListener("mouseup", removeUpdate);
|
|
6462
|
-
window.addEventListener("mousemove", update);
|
|
6463
|
-
window.addEventListener("mouseup", removeUpdate);
|
|
6464
|
-
};
|
|
6465
|
-
|
|
6466
6578
|
var portal = visible || overlayRef ? /* @__PURE__ */React__default["default"].createElement(Portal, {
|
|
6467
6579
|
attach: attach
|
|
6468
6580
|
}, /* @__PURE__ */React__default["default"].createElement(CSSTransition$1, _objectSpread$1R({
|
|
@@ -6483,8 +6595,8 @@
|
|
|
6483
6595
|
}) : null, content)))) : null;
|
|
6484
6596
|
return /* @__PURE__ */React__default["default"].createElement("div", {
|
|
6485
6597
|
className: classNames$1("".concat(classPrefix, "-popup__reference"), className),
|
|
6486
|
-
|
|
6487
|
-
|
|
6598
|
+
style: style,
|
|
6599
|
+
ref: popupRef
|
|
6488
6600
|
}, triggerNode, portal);
|
|
6489
6601
|
});
|
|
6490
6602
|
Popup$1.displayName = "Popup";
|
|
@@ -6683,13 +6795,13 @@
|
|
|
6683
6795
|
}
|
|
6684
6796
|
}
|
|
6685
6797
|
|
|
6686
|
-
return /* @__PURE__ */React__default["default"].createElement("button", _objectSpread$1Q({
|
|
6798
|
+
return /* @__PURE__ */React__default["default"].createElement("button", _objectSpread$1Q(_objectSpread$1Q({}, buttonProps), {}, {
|
|
6687
6799
|
ref: ref || btnRef,
|
|
6688
6800
|
type: type,
|
|
6689
6801
|
className: classNames$1(className, ["".concat(classPrefix, "-button"), "".concat(classPrefix, "-button--theme-").concat(renderTheme), "".concat(classPrefix, "-button--variant-").concat(variant)], (_classNames = {}, _defineProperty$2(_classNames, "".concat(classPrefix, "-button--shape-").concat(shape), shape !== "rectangle"), _defineProperty$2(_classNames, "".concat(classPrefix, "-button--ghost"), ghost), _defineProperty$2(_classNames, "".concat(classPrefix, "-is-loading"), loading), _defineProperty$2(_classNames, "".concat(classPrefix, "-is-disabled"), disabled || loading), _defineProperty$2(_classNames, "".concat(classPrefix, "-size-s"), size === "small"), _defineProperty$2(_classNames, "".concat(classPrefix, "-size-l"), size === "large"), _defineProperty$2(_classNames, "".concat(classPrefix, "-size-full-width"), block), _classNames)),
|
|
6690
6802
|
onClick: !disabled && !loading ? onClick : void 0,
|
|
6691
6803
|
disabled: disabled || loading
|
|
6692
|
-
}
|
|
6804
|
+
}), iconNode ? /* @__PURE__ */React__default["default"].createElement(React__default["default"].Fragment, null, iconNode, (hasChildren || hasContent) && /* @__PURE__ */React__default["default"].createElement("span", {
|
|
6693
6805
|
className: "".concat(classPrefix, "-button__text")
|
|
6694
6806
|
}, childrenNode)) : /* @__PURE__ */React__default["default"].createElement("span", {
|
|
6695
6807
|
className: "".concat(classPrefix, "-button__text")
|
|
@@ -6699,45 +6811,6 @@
|
|
|
6699
6811
|
|
|
6700
6812
|
var Button = Button$1;
|
|
6701
6813
|
|
|
6702
|
-
var baseGetTag$8 = _baseGetTag,
|
|
6703
|
-
isObject$a = isObject_1;
|
|
6704
|
-
/** `Object#toString` result references. */
|
|
6705
|
-
|
|
6706
|
-
var asyncTag = '[object AsyncFunction]',
|
|
6707
|
-
funcTag$2 = '[object Function]',
|
|
6708
|
-
genTag$1 = '[object GeneratorFunction]',
|
|
6709
|
-
proxyTag = '[object Proxy]';
|
|
6710
|
-
/**
|
|
6711
|
-
* Checks if `value` is classified as a `Function` object.
|
|
6712
|
-
*
|
|
6713
|
-
* @static
|
|
6714
|
-
* @memberOf _
|
|
6715
|
-
* @since 0.1.0
|
|
6716
|
-
* @category Lang
|
|
6717
|
-
* @param {*} value The value to check.
|
|
6718
|
-
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
6719
|
-
* @example
|
|
6720
|
-
*
|
|
6721
|
-
* _.isFunction(_);
|
|
6722
|
-
* // => true
|
|
6723
|
-
*
|
|
6724
|
-
* _.isFunction(/abc/);
|
|
6725
|
-
* // => false
|
|
6726
|
-
*/
|
|
6727
|
-
|
|
6728
|
-
function isFunction$3(value) {
|
|
6729
|
-
if (!isObject$a(value)) {
|
|
6730
|
-
return false;
|
|
6731
|
-
} // The use of `Object#toString` avoids issues with the `typeof` operator
|
|
6732
|
-
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
var tag = baseGetTag$8(value);
|
|
6736
|
-
return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
|
|
6737
|
-
}
|
|
6738
|
-
|
|
6739
|
-
var isFunction_1 = isFunction$3;
|
|
6740
|
-
|
|
6741
6814
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
6742
6815
|
if (source == null) return {};
|
|
6743
6816
|
var target = {};
|
|
@@ -8808,7 +8881,7 @@
|
|
|
8808
8881
|
}, restProps);
|
|
8809
8882
|
}
|
|
8810
8883
|
|
|
8811
|
-
var _excluded$m = ["disabled", "status", "size", "className", "style", "prefixIcon", "suffixIcon", "clearable", "value", "onChange", "onClear", "onEnter", "onKeydown", "onCompositionStart", "onCompositionEnd", "autofocus", "readonly"];
|
|
8884
|
+
var _excluded$m = ["disabled", "status", "size", "className", "style", "prefixIcon", "suffixIcon", "clearable", "value", "tips", "onChange", "onClear", "onEnter", "onKeydown", "onFocus", "onBlur", "onPaste", "onCompositionStart", "onCompositionEnd", "autofocus", "readonly"];
|
|
8812
8885
|
|
|
8813
8886
|
function ownKeys$1h(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
8814
8887
|
|
|
@@ -8841,10 +8914,14 @@
|
|
|
8841
8914
|
suffixIcon = _useDefaultValue.suffixIcon,
|
|
8842
8915
|
clearable = _useDefaultValue.clearable,
|
|
8843
8916
|
value = _useDefaultValue.value,
|
|
8917
|
+
tips = _useDefaultValue.tips,
|
|
8844
8918
|
onChange = _useDefaultValue.onChange,
|
|
8845
8919
|
onClear = _useDefaultValue.onClear,
|
|
8846
8920
|
onEnter = _useDefaultValue.onEnter,
|
|
8847
8921
|
onKeydown = _useDefaultValue.onKeydown,
|
|
8922
|
+
onFocus = _useDefaultValue.onFocus,
|
|
8923
|
+
onBlur = _useDefaultValue.onBlur,
|
|
8924
|
+
onPaste = _useDefaultValue.onPaste,
|
|
8848
8925
|
onCompositionStart = _useDefaultValue.onCompositionStart,
|
|
8849
8926
|
onCompositionEnd = _useDefaultValue.onCompositionEnd,
|
|
8850
8927
|
autofocus = _useDefaultValue.autofocus,
|
|
@@ -8855,6 +8932,8 @@
|
|
|
8855
8932
|
classPrefix = _useConfig.classPrefix;
|
|
8856
8933
|
|
|
8857
8934
|
var composingRef = React.useRef(false);
|
|
8935
|
+
var inputRef = React.useRef();
|
|
8936
|
+
var wrapperRef = React.useRef();
|
|
8858
8937
|
|
|
8859
8938
|
var _useState = React.useState(false),
|
|
8860
8939
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -8872,17 +8951,10 @@
|
|
|
8872
8951
|
setComposingValue = _useState6[1];
|
|
8873
8952
|
|
|
8874
8953
|
var isShowClearIcon = clearable && value && !disabled && isHover;
|
|
8875
|
-
var componentType = "input";
|
|
8876
8954
|
var prefixIconContent = renderIcon$1(classPrefix, "prefix", prefixIcon);
|
|
8877
8955
|
var suffixIconNew = isShowClearIcon ? /* @__PURE__ */React__default["default"].createElement(CloseCircleFilledIcon, {
|
|
8878
8956
|
className: "".concat(classPrefix, "-input__suffix-clear"),
|
|
8879
|
-
onClick: handleClear
|
|
8880
|
-
onMouseUp: function onMouseUp(e) {
|
|
8881
|
-
return e.preventDefault();
|
|
8882
|
-
},
|
|
8883
|
-
onMouseDown: function onMouseDown(e) {
|
|
8884
|
-
return e.preventDefault();
|
|
8885
|
-
}
|
|
8957
|
+
onClick: handleClear
|
|
8886
8958
|
}) : suffixIcon;
|
|
8887
8959
|
var suffixIconContent = renderIcon$1(classPrefix, "suffix", suffixIconNew);
|
|
8888
8960
|
var inputPropsNames = Object.keys(restProps).filter(function (key) {
|
|
@@ -8890,7 +8962,9 @@
|
|
|
8890
8962
|
});
|
|
8891
8963
|
var inputProps = inputPropsNames.reduce(function (inputProps2, key) {
|
|
8892
8964
|
return Object.assign(inputProps2, _defineProperty$2({}, key, props[key]));
|
|
8893
|
-
}, {
|
|
8965
|
+
}, {
|
|
8966
|
+
className: ""
|
|
8967
|
+
});
|
|
8894
8968
|
var eventPropsNames = Object.keys(restProps).filter(function (key) {
|
|
8895
8969
|
return /^on[A-Z]/.test(key);
|
|
8896
8970
|
});
|
|
@@ -8902,19 +8976,35 @@
|
|
|
8902
8976
|
}));
|
|
8903
8977
|
return eventProps2;
|
|
8904
8978
|
}, {});
|
|
8979
|
+
var wrapperProps = {
|
|
8980
|
+
style: style,
|
|
8981
|
+
ref: wrapperRef
|
|
8982
|
+
};
|
|
8905
8983
|
var renderInput = /* @__PURE__ */React__default["default"].createElement("input", _objectSpread$1h(_objectSpread$1h(_objectSpread$1h({
|
|
8984
|
+
ref: inputRef
|
|
8985
|
+
}, inputProps), eventProps), {}, {
|
|
8986
|
+
className: classNames$1(inputProps.className, "".concat(classPrefix, "-input__inner")),
|
|
8987
|
+
value: composingRef.current ? composingRefValue : value,
|
|
8906
8988
|
readOnly: readonly,
|
|
8907
8989
|
disabled: disabled,
|
|
8908
|
-
className: "".concat(classPrefix, "-").concat(componentType, "__inner")
|
|
8909
|
-
}, inputProps), {}, {
|
|
8910
|
-
value: composingRef.current ? composingRefValue : value
|
|
8911
|
-
}, eventProps), {}, {
|
|
8912
8990
|
autoFocus: autofocus,
|
|
8913
8991
|
onChange: handleChange,
|
|
8914
8992
|
onKeyDown: handleKeyDown,
|
|
8915
8993
|
onCompositionStart: handleCompositionStart,
|
|
8916
|
-
onCompositionEnd: handleCompositionEnd
|
|
8994
|
+
onCompositionEnd: handleCompositionEnd,
|
|
8995
|
+
onFocus: handleFocus,
|
|
8996
|
+
onBlur: handleBlur,
|
|
8997
|
+
onPaste: handlePaste
|
|
8917
8998
|
}));
|
|
8999
|
+
var renderInputNode = /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$1h(_objectSpread$1h({}, wrapperProps), {}, {
|
|
9000
|
+
className: classNames$1(tips ? "" : className, "".concat(classPrefix, "-input"), (_classNames = {}, _defineProperty$2(_classNames, "".concat(classPrefix, "-is-readonly"), readonly), _defineProperty$2(_classNames, "".concat(classPrefix, "-is-disabled"), disabled), _defineProperty$2(_classNames, "".concat(classPrefix, "-is-focused"), isFocused), _defineProperty$2(_classNames, "".concat(classPrefix, "-size-s"), size === "small"), _defineProperty$2(_classNames, "".concat(classPrefix, "-size-l"), size === "large"), _defineProperty$2(_classNames, "".concat(classPrefix, "-is-").concat(status), status), _defineProperty$2(_classNames, "".concat(classPrefix, "-input--prefix"), prefixIcon), _defineProperty$2(_classNames, "".concat(classPrefix, "-input--suffix"), suffixIconContent), _defineProperty$2(_classNames, "".concat(classPrefix, "-input--focused"), isFocused), _classNames)),
|
|
9001
|
+
onMouseEnter: function onMouseEnter() {
|
|
9002
|
+
return toggleIsHover(true);
|
|
9003
|
+
},
|
|
9004
|
+
onMouseLeave: function onMouseLeave() {
|
|
9005
|
+
return toggleIsHover(false);
|
|
9006
|
+
}
|
|
9007
|
+
}), prefixIconContent, renderInput, suffixIconContent);
|
|
8918
9008
|
|
|
8919
9009
|
function handleChange(e) {
|
|
8920
9010
|
var value2 = e.currentTarget.value;
|
|
@@ -8929,10 +9019,10 @@
|
|
|
8929
9019
|
}
|
|
8930
9020
|
|
|
8931
9021
|
function handleClear(e) {
|
|
8932
|
-
|
|
9022
|
+
onChange === null || onChange === void 0 ? void 0 : onChange("", {
|
|
8933
9023
|
e: e
|
|
8934
9024
|
});
|
|
8935
|
-
|
|
9025
|
+
onClear === null || onClear === void 0 ? void 0 : onClear({
|
|
8936
9026
|
e: e
|
|
8937
9027
|
});
|
|
8938
9028
|
}
|
|
@@ -8940,46 +9030,92 @@
|
|
|
8940
9030
|
function handleKeyDown(e) {
|
|
8941
9031
|
var key = e.key,
|
|
8942
9032
|
value2 = e.currentTarget.value;
|
|
8943
|
-
|
|
9033
|
+
key === "Enter" && (onEnter === null || onEnter === void 0 ? void 0 : onEnter(value2, {
|
|
8944
9034
|
e: e
|
|
8945
|
-
});
|
|
8946
|
-
|
|
9035
|
+
}));
|
|
9036
|
+
onKeydown === null || onKeydown === void 0 ? void 0 : onKeydown(value2, {
|
|
8947
9037
|
e: e
|
|
8948
9038
|
});
|
|
8949
9039
|
}
|
|
8950
9040
|
|
|
8951
|
-
function handleCompositionStart(
|
|
9041
|
+
function handleCompositionStart(e) {
|
|
8952
9042
|
composingRef.current = true;
|
|
8953
|
-
|
|
9043
|
+
var value2 = e.currentTarget.value;
|
|
9044
|
+
onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(value2, {
|
|
9045
|
+
e: e
|
|
9046
|
+
});
|
|
8954
9047
|
}
|
|
8955
9048
|
|
|
8956
|
-
function handleCompositionEnd(
|
|
9049
|
+
function handleCompositionEnd(e) {
|
|
9050
|
+
var value2 = e.currentTarget.value;
|
|
9051
|
+
|
|
8957
9052
|
if (composingRef.current) {
|
|
8958
9053
|
composingRef.current = false;
|
|
8959
|
-
handleChange(
|
|
9054
|
+
handleChange(e);
|
|
8960
9055
|
}
|
|
8961
9056
|
|
|
8962
9057
|
setComposingValue("");
|
|
8963
|
-
|
|
9058
|
+
onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(value2, {
|
|
9059
|
+
e: e
|
|
9060
|
+
});
|
|
8964
9061
|
}
|
|
8965
9062
|
|
|
8966
|
-
|
|
8967
|
-
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
8972
|
-
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
|
|
8977
|
-
|
|
8978
|
-
}
|
|
8979
|
-
|
|
8980
|
-
|
|
8981
|
-
|
|
8982
|
-
|
|
9063
|
+
function handleFocus(e) {
|
|
9064
|
+
var value2 = e.currentTarget.value;
|
|
9065
|
+
onFocus === null || onFocus === void 0 ? void 0 : onFocus(value2, {
|
|
9066
|
+
e: e
|
|
9067
|
+
});
|
|
9068
|
+
toggleIsFocused(true);
|
|
9069
|
+
}
|
|
9070
|
+
|
|
9071
|
+
function handleBlur(e) {
|
|
9072
|
+
var value2 = e.currentTarget.value;
|
|
9073
|
+
onBlur === null || onBlur === void 0 ? void 0 : onBlur(value2, {
|
|
9074
|
+
e: e
|
|
9075
|
+
});
|
|
9076
|
+
toggleIsFocused(false);
|
|
9077
|
+
}
|
|
9078
|
+
|
|
9079
|
+
function handlePaste(e) {
|
|
9080
|
+
var clipData = e.clipboardData;
|
|
9081
|
+
var pasteValue = clipData === null || clipData === void 0 ? void 0 : clipData.getData("text/plain");
|
|
9082
|
+
onPaste === null || onPaste === void 0 ? void 0 : onPaste({
|
|
9083
|
+
e: e,
|
|
9084
|
+
pasteValue: pasteValue
|
|
9085
|
+
});
|
|
9086
|
+
}
|
|
9087
|
+
|
|
9088
|
+
React.useImperativeHandle(ref, function () {
|
|
9089
|
+
return {
|
|
9090
|
+
currentElement: wrapperRef.current,
|
|
9091
|
+
inputElement: inputRef.current,
|
|
9092
|
+
focus: function focus() {
|
|
9093
|
+
var _inputRef$current;
|
|
9094
|
+
|
|
9095
|
+
return (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
9096
|
+
},
|
|
9097
|
+
blur: function blur() {
|
|
9098
|
+
var _inputRef$current2;
|
|
9099
|
+
|
|
9100
|
+
return (_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.blur();
|
|
9101
|
+
},
|
|
9102
|
+
select: function select() {
|
|
9103
|
+
var _inputRef$current3;
|
|
9104
|
+
|
|
9105
|
+
return (_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 ? void 0 : _inputRef$current3.select();
|
|
9106
|
+
}
|
|
9107
|
+
};
|
|
9108
|
+
});
|
|
9109
|
+
|
|
9110
|
+
if (tips) {
|
|
9111
|
+
return /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$1h(_objectSpread$1h({}, wrapperProps), {}, {
|
|
9112
|
+
className: classNames$1(className, "".concat(classPrefix, "-input__wrap"))
|
|
9113
|
+
}), renderInputNode, /* @__PURE__ */React__default["default"].createElement("div", {
|
|
9114
|
+
className: classNames$1("".concat(classPrefix, "-input__tips"), "".concat(classPrefix, "-input__tips--").concat(status || "normal"))
|
|
9115
|
+
}, tips));
|
|
9116
|
+
}
|
|
9117
|
+
|
|
9118
|
+
return renderInputNode;
|
|
8983
9119
|
}, {
|
|
8984
9120
|
Group: InputGroup
|
|
8985
9121
|
});
|
|
@@ -9249,7 +9385,7 @@
|
|
|
9249
9385
|
|
|
9250
9386
|
var _arrayMap = arrayMap$3;
|
|
9251
9387
|
|
|
9252
|
-
var baseGetTag$
|
|
9388
|
+
var baseGetTag$8 = _baseGetTag,
|
|
9253
9389
|
isObjectLike$b = isObjectLike_1;
|
|
9254
9390
|
/** `Object#toString` result references. */
|
|
9255
9391
|
|
|
@@ -9273,7 +9409,7 @@
|
|
|
9273
9409
|
*/
|
|
9274
9410
|
|
|
9275
9411
|
function isSymbol$4(value) {
|
|
9276
|
-
return _typeof(value) == 'symbol' || isObjectLike$b(value) && baseGetTag$
|
|
9412
|
+
return _typeof(value) == 'symbol' || isObjectLike$b(value) && baseGetTag$8(value) == symbolTag$3;
|
|
9277
9413
|
}
|
|
9278
9414
|
|
|
9279
9415
|
var isSymbol_1 = isSymbol$4;
|
|
@@ -10356,7 +10492,7 @@
|
|
|
10356
10492
|
|
|
10357
10493
|
var Radio = Radio$1;
|
|
10358
10494
|
|
|
10359
|
-
var baseGetTag$
|
|
10495
|
+
var baseGetTag$7 = _baseGetTag,
|
|
10360
10496
|
isObjectLike$a = isObjectLike_1;
|
|
10361
10497
|
/** `Object#toString` result references. */
|
|
10362
10498
|
|
|
@@ -10389,7 +10525,7 @@
|
|
|
10389
10525
|
*/
|
|
10390
10526
|
|
|
10391
10527
|
function isNumber(value) {
|
|
10392
|
-
return typeof value == 'number' || isObjectLike$a(value) && baseGetTag$
|
|
10528
|
+
return typeof value == 'number' || isObjectLike$a(value) && baseGetTag$7(value) == numberTag$4;
|
|
10393
10529
|
}
|
|
10394
10530
|
|
|
10395
10531
|
var isNumber_1 = isNumber;
|
|
@@ -11518,7 +11654,7 @@
|
|
|
11518
11654
|
var _baseTrim = baseTrim$1;
|
|
11519
11655
|
|
|
11520
11656
|
var baseTrim = _baseTrim,
|
|
11521
|
-
isObject$
|
|
11657
|
+
isObject$a = isObject_1,
|
|
11522
11658
|
isSymbol$2 = isSymbol_1;
|
|
11523
11659
|
/** Used as references for various `Number` constants. */
|
|
11524
11660
|
|
|
@@ -11568,9 +11704,9 @@
|
|
|
11568
11704
|
return NAN;
|
|
11569
11705
|
}
|
|
11570
11706
|
|
|
11571
|
-
if (isObject$
|
|
11707
|
+
if (isObject$a(value)) {
|
|
11572
11708
|
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
11573
|
-
value = isObject$
|
|
11709
|
+
value = isObject$a(other) ? other + '' : other;
|
|
11574
11710
|
}
|
|
11575
11711
|
|
|
11576
11712
|
if (typeof value != 'string') {
|
|
@@ -11584,7 +11720,7 @@
|
|
|
11584
11720
|
|
|
11585
11721
|
var toNumber_1 = toNumber$2;
|
|
11586
11722
|
|
|
11587
|
-
var isObject$
|
|
11723
|
+
var isObject$9 = isObject_1,
|
|
11588
11724
|
now = now_1,
|
|
11589
11725
|
toNumber$1 = toNumber_1;
|
|
11590
11726
|
/** Error message constants. */
|
|
@@ -11667,7 +11803,7 @@
|
|
|
11667
11803
|
|
|
11668
11804
|
wait = toNumber$1(wait) || 0;
|
|
11669
11805
|
|
|
11670
|
-
if (isObject$
|
|
11806
|
+
if (isObject$9(options)) {
|
|
11671
11807
|
leading = !!options.leading;
|
|
11672
11808
|
maxing = 'maxWait' in options;
|
|
11673
11809
|
maxWait = maxing ? nativeMax$4(toNumber$1(options.maxWait) || 0, wait) : maxWait;
|
|
@@ -11779,7 +11915,7 @@
|
|
|
11779
11915
|
var debounce_1 = debounce$1;
|
|
11780
11916
|
|
|
11781
11917
|
var debounce = debounce_1,
|
|
11782
|
-
isObject$
|
|
11918
|
+
isObject$8 = isObject_1;
|
|
11783
11919
|
/** Error message constants. */
|
|
11784
11920
|
|
|
11785
11921
|
var FUNC_ERROR_TEXT$1 = 'Expected a function';
|
|
@@ -11836,7 +11972,7 @@
|
|
|
11836
11972
|
throw new TypeError(FUNC_ERROR_TEXT$1);
|
|
11837
11973
|
}
|
|
11838
11974
|
|
|
11839
|
-
if (isObject$
|
|
11975
|
+
if (isObject$8(options)) {
|
|
11840
11976
|
leading = 'leading' in options ? !!options.leading : leading;
|
|
11841
11977
|
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
11842
11978
|
}
|
|
@@ -11850,6 +11986,45 @@
|
|
|
11850
11986
|
|
|
11851
11987
|
var throttle_1 = throttle;
|
|
11852
11988
|
|
|
11989
|
+
var baseGetTag$6 = _baseGetTag,
|
|
11990
|
+
isObject$7 = isObject_1;
|
|
11991
|
+
/** `Object#toString` result references. */
|
|
11992
|
+
|
|
11993
|
+
var asyncTag = '[object AsyncFunction]',
|
|
11994
|
+
funcTag$2 = '[object Function]',
|
|
11995
|
+
genTag$1 = '[object GeneratorFunction]',
|
|
11996
|
+
proxyTag = '[object Proxy]';
|
|
11997
|
+
/**
|
|
11998
|
+
* Checks if `value` is classified as a `Function` object.
|
|
11999
|
+
*
|
|
12000
|
+
* @static
|
|
12001
|
+
* @memberOf _
|
|
12002
|
+
* @since 0.1.0
|
|
12003
|
+
* @category Lang
|
|
12004
|
+
* @param {*} value The value to check.
|
|
12005
|
+
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
12006
|
+
* @example
|
|
12007
|
+
*
|
|
12008
|
+
* _.isFunction(_);
|
|
12009
|
+
* // => true
|
|
12010
|
+
*
|
|
12011
|
+
* _.isFunction(/abc/);
|
|
12012
|
+
* // => false
|
|
12013
|
+
*/
|
|
12014
|
+
|
|
12015
|
+
function isFunction$3(value) {
|
|
12016
|
+
if (!isObject$7(value)) {
|
|
12017
|
+
return false;
|
|
12018
|
+
} // The use of `Object#toString` avoids issues with the `typeof` operator
|
|
12019
|
+
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
|
12020
|
+
|
|
12021
|
+
|
|
12022
|
+
var tag = baseGetTag$6(value);
|
|
12023
|
+
return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
|
|
12024
|
+
}
|
|
12025
|
+
|
|
12026
|
+
var isFunction_1 = isFunction$3;
|
|
12027
|
+
|
|
11853
12028
|
var isArray$9 = isArray_1,
|
|
11854
12029
|
isSymbol$1 = isSymbol_1;
|
|
11855
12030
|
/** Used to match property names within property paths. */
|
|
@@ -24309,7 +24484,9 @@
|
|
|
24309
24484
|
var _useConfig = useConfig$1(),
|
|
24310
24485
|
classPrefix = _useConfig.classPrefix;
|
|
24311
24486
|
|
|
24312
|
-
var
|
|
24487
|
+
var className = props.className,
|
|
24488
|
+
style = props.style,
|
|
24489
|
+
_props$bordered = props.bordered,
|
|
24313
24490
|
bordered = _props$bordered === void 0 ? false : _props$bordered,
|
|
24314
24491
|
_props$stripe = props.stripe,
|
|
24315
24492
|
stripe = _props$stripe === void 0 ? false : _props$stripe,
|
|
@@ -24525,10 +24702,10 @@
|
|
|
24525
24702
|
}
|
|
24526
24703
|
|
|
24527
24704
|
function getTableWithFixedHeader() {
|
|
24528
|
-
var
|
|
24705
|
+
var style2 = {};
|
|
24529
24706
|
|
|
24530
24707
|
if (isHasScrollbar) {
|
|
24531
|
-
|
|
24708
|
+
style2 = _objectSpread$T(_objectSpread$T({}, style2), {}, {
|
|
24532
24709
|
paddingRight: scrollBarWidth
|
|
24533
24710
|
});
|
|
24534
24711
|
}
|
|
@@ -24536,7 +24713,7 @@
|
|
|
24536
24713
|
var fixedHeaderRN = /* @__PURE__ */React__default["default"].createElement("div", {
|
|
24537
24714
|
ref: scrollHeaderRef,
|
|
24538
24715
|
className: "".concat(classPrefix, "-table__header"),
|
|
24539
|
-
style:
|
|
24716
|
+
style: style2
|
|
24540
24717
|
}, getTable({
|
|
24541
24718
|
enableBody: false
|
|
24542
24719
|
}));
|
|
@@ -24605,7 +24782,8 @@
|
|
|
24605
24782
|
}
|
|
24606
24783
|
|
|
24607
24784
|
return /* @__PURE__ */React__default["default"].createElement("div", {
|
|
24608
|
-
className: classNames$1("".concat(classPrefix, "-table"), (_classNames = {}, _defineProperty$2(_classNames, "".concat(classPrefix, "-table--striped"), stripe), _defineProperty$2(_classNames, "".concat(classPrefix, "-table--bordered"), bordered), _defineProperty$2(_classNames, "".concat(classPrefix, "-size-l"), size === "large"), _defineProperty$2(_classNames, "".concat(classPrefix, "-size-s"), size === "small"), _defineProperty$2(_classNames, "".concat(classPrefix, "-table--hoverable"), hover), _defineProperty$2(_classNames, "".concat(classPrefix, "-table--align-").concat(verticalAlign), verticalAlign), _defineProperty$2(_classNames, "".concat(classPrefix, "-table__header--fixed"), fixedHeader), _defineProperty$2(_classNames, "".concat(classPrefix, "-table__cell--fixed ").concat(classPrefix, "-table--has-fixed"), hasFixedColumns), _classNames))
|
|
24785
|
+
className: classNames$1("".concat(classPrefix, "-table"), (_classNames = {}, _defineProperty$2(_classNames, "".concat(classPrefix, "-table--striped"), stripe), _defineProperty$2(_classNames, "".concat(classPrefix, "-table--bordered"), bordered), _defineProperty$2(_classNames, "".concat(classPrefix, "-size-l"), size === "large"), _defineProperty$2(_classNames, "".concat(classPrefix, "-size-s"), size === "small"), _defineProperty$2(_classNames, "".concat(classPrefix, "-table--hoverable"), hover), _defineProperty$2(_classNames, "".concat(classPrefix, "-table--align-").concat(verticalAlign), verticalAlign), _defineProperty$2(_classNames, "".concat(classPrefix, "-table__header--fixed"), fixedHeader), _defineProperty$2(_classNames, "".concat(classPrefix, "-table__cell--fixed ").concat(classPrefix, "-table--has-fixed"), hasFixedColumns), _classNames), className),
|
|
24786
|
+
style: style
|
|
24609
24787
|
}, /* @__PURE__ */React__default["default"].createElement(TableContextProvider, {
|
|
24610
24788
|
value: table
|
|
24611
24789
|
}, /* @__PURE__ */React__default["default"].createElement(Loading, {
|
|
@@ -29922,6 +30100,9 @@
|
|
|
29922
30100
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
29923
30101
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
29924
30102
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
30103
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
30104
|
+
writable: false
|
|
30105
|
+
});
|
|
29925
30106
|
return Constructor;
|
|
29926
30107
|
}
|
|
29927
30108
|
|
|
@@ -31658,6 +31839,31 @@
|
|
|
31658
31839
|
});
|
|
31659
31840
|
var pick_1 = pick;
|
|
31660
31841
|
|
|
31842
|
+
var logSet = /* @__PURE__ */new Set();
|
|
31843
|
+
var log = {
|
|
31844
|
+
warn: function warn(componentName, message) {
|
|
31845
|
+
console.warn("TDesign ".concat(componentName, " Warn: ").concat(message));
|
|
31846
|
+
},
|
|
31847
|
+
warnOnce: function warnOnce(componentName, message) {
|
|
31848
|
+
var msgContent = "TDesign ".concat(componentName, " Warn: ").concat(message);
|
|
31849
|
+
if (logSet.has(msgContent)) return;
|
|
31850
|
+
logSet.add(msgContent);
|
|
31851
|
+
console.warn(msgContent);
|
|
31852
|
+
},
|
|
31853
|
+
error: function error(componentName, message) {
|
|
31854
|
+
console.error("TDesign ".concat(componentName, " Error: ").concat(message));
|
|
31855
|
+
},
|
|
31856
|
+
errorOnce: function errorOnce(componentName, message) {
|
|
31857
|
+
var msgContent = "TDesign ".concat(componentName, " Error: ").concat(message);
|
|
31858
|
+
if (logSet.has(msgContent)) return;
|
|
31859
|
+
logSet.add(msgContent);
|
|
31860
|
+
console.error(msgContent);
|
|
31861
|
+
},
|
|
31862
|
+
info: function info(componentName, message) {
|
|
31863
|
+
console.info("TDesign ".concat(componentName, " Info: ").concat(message));
|
|
31864
|
+
}
|
|
31865
|
+
};
|
|
31866
|
+
|
|
31661
31867
|
function ownKeys$x(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
31662
31868
|
|
|
31663
31869
|
function _objectSpread$x(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$x(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$x(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -31758,7 +31964,7 @@
|
|
|
31758
31964
|
var targetNode = tree.getNode(value);
|
|
31759
31965
|
|
|
31760
31966
|
if (!targetNode) {
|
|
31761
|
-
|
|
31967
|
+
log.warnOnce("Tree", "`".concat(value, "` is not exist"));
|
|
31762
31968
|
return;
|
|
31763
31969
|
}
|
|
31764
31970
|
|
|
@@ -31768,7 +31974,7 @@
|
|
|
31768
31974
|
});
|
|
31769
31975
|
|
|
31770
31976
|
if (parentValues.indexOf(node.value) < 0) {
|
|
31771
|
-
|
|
31977
|
+
log.warnOnce("Tree", "`".concat(value, "` is not a childNode of current node"));
|
|
31772
31978
|
return;
|
|
31773
31979
|
}
|
|
31774
31980
|
|
|
@@ -34430,7 +34636,7 @@
|
|
|
34430
34636
|
|
|
34431
34637
|
var TreeSelect = TreeSelect$1;
|
|
34432
34638
|
|
|
34433
|
-
var _excluded$8 = ["layout", "dashed", "align", "className", "style", "children"];
|
|
34639
|
+
var _excluded$8 = ["layout", "dashed", "align", "className", "style", "children", "content"];
|
|
34434
34640
|
|
|
34435
34641
|
function ownKeys$s(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
34436
34642
|
|
|
@@ -34447,18 +34653,27 @@
|
|
|
34447
34653
|
className = props.className,
|
|
34448
34654
|
style = props.style,
|
|
34449
34655
|
children = props.children,
|
|
34656
|
+
content = props.content,
|
|
34450
34657
|
otherDividerProps = _objectWithoutProperties$1(props, _excluded$8);
|
|
34451
34658
|
|
|
34452
34659
|
var _useConfig = useConfig$1(),
|
|
34453
34660
|
classPrefix = _useConfig.classPrefix;
|
|
34454
34661
|
|
|
34455
|
-
var
|
|
34456
|
-
|
|
34662
|
+
var hasChildren = typeof children !== "undefined";
|
|
34663
|
+
var hasContent = typeof content !== "undefined";
|
|
34664
|
+
var childrenNode = children;
|
|
34665
|
+
|
|
34666
|
+
if (!hasChildren && hasContent) {
|
|
34667
|
+
childrenNode = content;
|
|
34668
|
+
}
|
|
34669
|
+
|
|
34670
|
+
var dividerClassNames = classNames$1("".concat(classPrefix, "-divider"), className, (_classNames = {}, _defineProperty$2(_classNames, "".concat(classPrefix, "-divider--horizontal"), layout === "horizontal"), _defineProperty$2(_classNames, "".concat(classPrefix, "-divider--vertical"), layout === "vertical"), _defineProperty$2(_classNames, "".concat(classPrefix, "-divider--dashed"), !!dashed), _defineProperty$2(_classNames, "".concat(classPrefix, "-divider--with-text"), !!childrenNode), _defineProperty$2(_classNames, "".concat(classPrefix, "-divider--with-text-").concat(align), !!childrenNode), _classNames));
|
|
34671
|
+
return /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$s(_objectSpread$s({}, otherDividerProps), {}, {
|
|
34457
34672
|
className: dividerClassNames,
|
|
34458
34673
|
style: style
|
|
34459
|
-
}
|
|
34674
|
+
}), childrenNode ? /* @__PURE__ */React__default["default"].createElement("span", {
|
|
34460
34675
|
className: "".concat(classPrefix, "-divider__inner-text")
|
|
34461
|
-
},
|
|
34676
|
+
}, childrenNode) : null);
|
|
34462
34677
|
};
|
|
34463
34678
|
|
|
34464
34679
|
Divider$1.displayName = "Divider";
|
|
@@ -38926,6 +39141,53 @@
|
|
|
38926
39141
|
}, restProps);
|
|
38927
39142
|
}
|
|
38928
39143
|
|
|
39144
|
+
var SIZE_MAP = {
|
|
39145
|
+
B: 1,
|
|
39146
|
+
KB: 1024,
|
|
39147
|
+
MB: 1048576,
|
|
39148
|
+
GB: 1073741824
|
|
39149
|
+
};
|
|
39150
|
+
|
|
39151
|
+
function judgeIsSuitableSize(fileSize, sizeLimit, unit) {
|
|
39152
|
+
var units = ["B", "KB", "MB", "GB"];
|
|
39153
|
+
var index = units.indexOf(unit);
|
|
39154
|
+
|
|
39155
|
+
if (index === -1) {
|
|
39156
|
+
console.warn("TDesign Upload Warn: `sizeLimit.unit` can only be one of ".concat(units.join()));
|
|
39157
|
+
}
|
|
39158
|
+
|
|
39159
|
+
return fileSize <= sizeLimit * SIZE_MAP[unit];
|
|
39160
|
+
}
|
|
39161
|
+
|
|
39162
|
+
function useHandleLimit() {
|
|
39163
|
+
var _useLocaleReceiver = useLocaleReceiver("upload"),
|
|
39164
|
+
_useLocaleReceiver2 = _slicedToArray(_useLocaleReceiver, 2),
|
|
39165
|
+
local = _useLocaleReceiver2[0],
|
|
39166
|
+
t = _useLocaleReceiver2[1];
|
|
39167
|
+
|
|
39168
|
+
return handleSizeLimit;
|
|
39169
|
+
|
|
39170
|
+
function handleSizeLimit(fileSize, rawSizeLimit) {
|
|
39171
|
+
var sizeLimit = typeof rawSizeLimit === "number" ? {
|
|
39172
|
+
size: rawSizeLimit,
|
|
39173
|
+
unit: "KB"
|
|
39174
|
+
} : rawSizeLimit;
|
|
39175
|
+
sizeLimit.unit = sizeLimit.unit.toUpperCase();
|
|
39176
|
+
var isSuitableSize = judgeIsSuitableSize(fileSize, sizeLimit.size, sizeLimit.unit);
|
|
39177
|
+
var errorMsg;
|
|
39178
|
+
|
|
39179
|
+
if (!isSuitableSize) {
|
|
39180
|
+
errorMsg = sizeLimit.message ? t(sizeLimit.message, {
|
|
39181
|
+
sizeLimit: sizeLimit.size
|
|
39182
|
+
}) : "".concat(t(local.sizeLimitMessage, {
|
|
39183
|
+
sizeLimit: sizeLimit.size
|
|
39184
|
+
}), " ").concat(sizeLimit.unit);
|
|
39185
|
+
}
|
|
39186
|
+
|
|
39187
|
+
return [isSuitableSize, errorMsg];
|
|
39188
|
+
}
|
|
39189
|
+
}
|
|
39190
|
+
|
|
38929
39191
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
38930
39192
|
|
|
38931
39193
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -38960,6 +39222,9 @@
|
|
|
38960
39222
|
withCredentials = _useDefaultValue.withCredentials,
|
|
38961
39223
|
_useDefaultValue$auto = _useDefaultValue.autoUpload,
|
|
38962
39224
|
autoUpload = _useDefaultValue$auto === void 0 ? true : _useDefaultValue$auto,
|
|
39225
|
+
_useDefaultValue$file = _useDefaultValue.files,
|
|
39226
|
+
fileList = _useDefaultValue$file === void 0 ? [] : _useDefaultValue$file,
|
|
39227
|
+
sizeLimit = _useDefaultValue.sizeLimit,
|
|
38963
39228
|
formatResponse = _useDefaultValue.formatResponse,
|
|
38964
39229
|
beforeUpload = _useDefaultValue.beforeUpload,
|
|
38965
39230
|
onProgress = _useDefaultValue.onProgress,
|
|
@@ -38970,8 +39235,6 @@
|
|
|
38970
39235
|
onDragenter = _useDefaultValue.onDragenter,
|
|
38971
39236
|
onDragleave = _useDefaultValue.onDragleave,
|
|
38972
39237
|
requestMethod = _useDefaultValue.requestMethod,
|
|
38973
|
-
_useDefaultValue$file = _useDefaultValue.files,
|
|
38974
|
-
fileList = _useDefaultValue$file === void 0 ? [] : _useDefaultValue$file,
|
|
38975
39238
|
customDraggerRender = _useDefaultValue.customDraggerRender,
|
|
38976
39239
|
children = _useDefaultValue.children;
|
|
38977
39240
|
|
|
@@ -39011,6 +39274,7 @@
|
|
|
39011
39274
|
setShowImg(false);
|
|
39012
39275
|
setImgURL("");
|
|
39013
39276
|
}, []);
|
|
39277
|
+
var handleSizeLimit = useHandleLimit();
|
|
39014
39278
|
var handlePreviewImg = React.useCallback(function (event, file) {
|
|
39015
39279
|
if (!file.url) throw new Error("Error file");
|
|
39016
39280
|
setImgURL(file.url);
|
|
@@ -39265,14 +39529,23 @@
|
|
|
39265
39529
|
if (typeof beforeUpload === "function") {
|
|
39266
39530
|
var r = beforeUpload(file);
|
|
39267
39531
|
if (r instanceof Promise) return r;
|
|
39268
|
-
return
|
|
39269
|
-
return resolve(r);
|
|
39270
|
-
});
|
|
39532
|
+
return Promise.resolve(r);
|
|
39271
39533
|
}
|
|
39272
39534
|
|
|
39273
|
-
|
|
39274
|
-
|
|
39275
|
-
|
|
39535
|
+
if (sizeLimit) {
|
|
39536
|
+
var _handleSizeLimit = handleSizeLimit(file.size, sizeLimit),
|
|
39537
|
+
_handleSizeLimit2 = _slicedToArray(_handleSizeLimit, 2),
|
|
39538
|
+
overrideSize = _handleSizeLimit2[0],
|
|
39539
|
+
errorMsg2 = _handleSizeLimit2[1];
|
|
39540
|
+
|
|
39541
|
+
if (errorMsg2) {
|
|
39542
|
+
setErrorMsg(errorMsg2);
|
|
39543
|
+
}
|
|
39544
|
+
|
|
39545
|
+
return Promise.resolve(overrideSize);
|
|
39546
|
+
}
|
|
39547
|
+
|
|
39548
|
+
return Promise.resolve(true);
|
|
39276
39549
|
};
|
|
39277
39550
|
|
|
39278
39551
|
var uploadFiles = function uploadFiles() {
|
|
@@ -40989,6 +41262,15 @@
|
|
|
40989
41262
|
}, [formValue]);
|
|
40990
41263
|
React.useEffect(function () {
|
|
40991
41264
|
formItemsRef.current.push(currentFormItemRef);
|
|
41265
|
+
return function () {
|
|
41266
|
+
var index = formItemsRef.current.indexOf(currentFormItemRef);
|
|
41267
|
+
|
|
41268
|
+
if (index !== -1) {
|
|
41269
|
+
var _formItemsRef$current;
|
|
41270
|
+
|
|
41271
|
+
(_formItemsRef$current = formItemsRef.current) === null || _formItemsRef$current === void 0 ? void 0 : _formItemsRef$current.splice(index, 1);
|
|
41272
|
+
}
|
|
41273
|
+
};
|
|
40992
41274
|
}, []);
|
|
40993
41275
|
React.useImperativeHandle(currentFormItemRef, function () {
|
|
40994
41276
|
return {
|
|
@@ -41099,6 +41381,7 @@
|
|
|
41099
41381
|
classPrefix = _useConfig.classPrefix;
|
|
41100
41382
|
|
|
41101
41383
|
var formClass = classNames$1(className, "".concat(classPrefix, "-form"), _defineProperty$2({}, "".concat(classPrefix, "-form-inline"), layout === "inline"));
|
|
41384
|
+
var formRef = React.useRef();
|
|
41102
41385
|
var formItemsRef = React.useRef([]);
|
|
41103
41386
|
var FORM_ITEM_CLASS_PREFIX = "".concat(classPrefix, "-form-item__");
|
|
41104
41387
|
|
|
@@ -41141,8 +41424,10 @@
|
|
|
41141
41424
|
e === null || e === void 0 ? void 0 : e.preventDefault();
|
|
41142
41425
|
formItemsRef.current.forEach(function (_ref) {
|
|
41143
41426
|
var formItemRef = _ref.current;
|
|
41144
|
-
|
|
41145
|
-
formItemRef.resetField
|
|
41427
|
+
|
|
41428
|
+
if (formItemRef && isFunction_1(formItemRef.resetField)) {
|
|
41429
|
+
formItemRef.resetField();
|
|
41430
|
+
}
|
|
41146
41431
|
});
|
|
41147
41432
|
onReset === null || onReset === void 0 ? void 0 : onReset({
|
|
41148
41433
|
e: e
|
|
@@ -41162,7 +41447,7 @@
|
|
|
41162
41447
|
|
|
41163
41448
|
var list = formItemsRef.current.filter(function (_ref3) {
|
|
41164
41449
|
var formItemRef = _ref3.current;
|
|
41165
|
-
return isFunction_1(formItemRef.validate) && needValidate(formItemRef.name, fields);
|
|
41450
|
+
return formItemRef && isFunction_1(formItemRef.validate) && needValidate(formItemRef.name, fields);
|
|
41166
41451
|
}).map(function (_ref4) {
|
|
41167
41452
|
var formItemRef = _ref4.current;
|
|
41168
41453
|
return formItemRef.validate(trigger);
|
|
@@ -41187,7 +41472,7 @@
|
|
|
41187
41472
|
formItemsRef.current.forEach(function (_ref5) {
|
|
41188
41473
|
var formItemRef = _ref5.current;
|
|
41189
41474
|
|
|
41190
|
-
if (formItemRef.name) {
|
|
41475
|
+
if (formItemRef !== null && formItemRef !== void 0 && formItemRef.name) {
|
|
41191
41476
|
fieldsValue[formItemRef.name] = formItemRef.value;
|
|
41192
41477
|
}
|
|
41193
41478
|
});
|
|
@@ -41198,7 +41483,7 @@
|
|
|
41198
41483
|
if (!name) return null;
|
|
41199
41484
|
var target = formItemsRef.current.find(function (_ref6) {
|
|
41200
41485
|
var formItemRef = _ref6.current;
|
|
41201
|
-
return formItemRef.name === name;
|
|
41486
|
+
return (formItemRef === null || formItemRef === void 0 ? void 0 : formItemRef.name) === name;
|
|
41202
41487
|
});
|
|
41203
41488
|
return target && target.value;
|
|
41204
41489
|
}
|
|
@@ -41207,8 +41492,13 @@
|
|
|
41207
41492
|
var fileds = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
41208
41493
|
var formItemsMap = formItemsRef.current.reduce(function (acc, _ref7) {
|
|
41209
41494
|
var currItem = _ref7.current;
|
|
41210
|
-
|
|
41211
|
-
|
|
41495
|
+
|
|
41496
|
+
if (currItem !== null && currItem !== void 0 && currItem.name) {
|
|
41497
|
+
var name = currItem.name;
|
|
41498
|
+
return _objectSpread$j(_objectSpread$j({}, acc), {}, _defineProperty$2({}, name, currItem));
|
|
41499
|
+
}
|
|
41500
|
+
|
|
41501
|
+
return acc;
|
|
41212
41502
|
}, {});
|
|
41213
41503
|
Object.keys(fileds).forEach(function (key) {
|
|
41214
41504
|
var _formItemsMap$key;
|
|
@@ -41222,8 +41512,13 @@
|
|
|
41222
41512
|
if (!Array.isArray(fileds)) throw new Error("setFields \u53C2\u6570\u9700\u8981 Array \u7C7B\u578B");
|
|
41223
41513
|
var formItemsMap = formItemsRef.current.reduce(function (acc, _ref8) {
|
|
41224
41514
|
var currItem = _ref8.current;
|
|
41225
|
-
|
|
41226
|
-
|
|
41515
|
+
|
|
41516
|
+
if (currItem !== null && currItem !== void 0 && currItem.name) {
|
|
41517
|
+
var name = currItem.name;
|
|
41518
|
+
return _objectSpread$j(_objectSpread$j({}, acc), {}, _defineProperty$2({}, name, currItem));
|
|
41519
|
+
}
|
|
41520
|
+
|
|
41521
|
+
return acc;
|
|
41227
41522
|
}, {});
|
|
41228
41523
|
fileds.forEach(function (filed) {
|
|
41229
41524
|
var _formItemsMap$name;
|
|
@@ -41240,6 +41535,7 @@
|
|
|
41240
41535
|
|
|
41241
41536
|
React.useImperativeHandle(ref, function () {
|
|
41242
41537
|
return {
|
|
41538
|
+
currentElement: formRef.current,
|
|
41243
41539
|
submit: submitHandler,
|
|
41244
41540
|
reset: resetHandler,
|
|
41245
41541
|
getFieldValue: getFieldValue,
|
|
@@ -41276,7 +41572,7 @@
|
|
|
41276
41572
|
style: style,
|
|
41277
41573
|
onSubmit: submitHandler,
|
|
41278
41574
|
onReset: resetHandler,
|
|
41279
|
-
ref:
|
|
41575
|
+
ref: formRef
|
|
41280
41576
|
}, children));
|
|
41281
41577
|
}, {
|
|
41282
41578
|
FormItem: FormItem
|
|
@@ -41531,7 +41827,7 @@
|
|
|
41531
41827
|
theme: "primary",
|
|
41532
41828
|
onClick: onConfirmClick,
|
|
41533
41829
|
className: "".concat(prefixCls, "__confirm")
|
|
41534
|
-
}, confirmText);
|
|
41830
|
+
}, confirmBtn && typeof confirmBtn === "string" ? confirmBtn : confirmText);
|
|
41535
41831
|
var renderCancelBtn = cancelBtn && /*#__PURE__*/React__default["default"].isValidElement(cancelBtn) ? cancelBtn : defaultCancelBtn;
|
|
41536
41832
|
var renderConfirmBtn = confirmBtn && /*#__PURE__*/React__default["default"].isValidElement(confirmBtn) ? confirmBtn : defaultConfirmBtn;
|
|
41537
41833
|
var footerStyle = {
|
|
@@ -44962,8 +45258,8 @@
|
|
|
44962
45258
|
|
|
44963
45259
|
var _useState = React.useState(void 0),
|
|
44964
45260
|
_useState2 = _slicedToArray(_useState, 2),
|
|
44965
|
-
|
|
44966
|
-
|
|
45261
|
+
formattedValue = _useState2[0],
|
|
45262
|
+
changeFormattedValue = _useState2[1];
|
|
44967
45263
|
|
|
44968
45264
|
React.useEffect(function () {
|
|
44969
45265
|
if (!startTime) return;
|
|
@@ -44971,7 +45267,7 @@
|
|
|
44971
45267
|
var hour = /[h]{1}/.test(format) ? dayjsValue.hour() % 12 : dayjsValue.hour();
|
|
44972
45268
|
var minute = dayjsValue.minute();
|
|
44973
45269
|
var second = dayjsValue.second();
|
|
44974
|
-
|
|
45270
|
+
changeFormattedValue(function (preVal) {
|
|
44975
45271
|
return [{
|
|
44976
45272
|
hour: padStart_1(String(hour), 2, "0"),
|
|
44977
45273
|
minute: padStart_1(String(minute), 2, "0"),
|
|
@@ -44986,7 +45282,7 @@
|
|
|
44986
45282
|
var hour = /[h]{1}/.test(format) ? dayjsValue.hour() % 12 : dayjsValue.hour();
|
|
44987
45283
|
var minute = dayjsValue.minute();
|
|
44988
45284
|
var second = dayjsValue.second();
|
|
44989
|
-
|
|
45285
|
+
changeFormattedValue(function (preVal) {
|
|
44990
45286
|
return [preVal[0], {
|
|
44991
45287
|
hour: padStart_1(String(hour), 2, "0"),
|
|
44992
45288
|
minute: padStart_1(String(minute), 2, "0"),
|
|
@@ -44996,6 +45292,16 @@
|
|
|
44996
45292
|
});
|
|
44997
45293
|
}, [endTime, format]);
|
|
44998
45294
|
var handleInputChange = React.useCallback(function (type, result, index) {
|
|
45295
|
+
var max = 59;
|
|
45296
|
+
|
|
45297
|
+
if (type === EPickerCols.hour) {
|
|
45298
|
+
max = /[h]{1}/.test(format) ? 11 : 23;
|
|
45299
|
+
}
|
|
45300
|
+
|
|
45301
|
+
if (isNaN(Number(result))) return;
|
|
45302
|
+
result = String(result).length > 2 ? String(result).slice(1, 3) : result;
|
|
45303
|
+
if (Number(result) > max) return;
|
|
45304
|
+
|
|
44999
45305
|
if (!isRangePicker) {
|
|
45000
45306
|
var _currentDayjsValue$ty;
|
|
45001
45307
|
|
|
@@ -45026,10 +45332,10 @@
|
|
|
45026
45332
|
var which = e.which;
|
|
45027
45333
|
|
|
45028
45334
|
if ([up, down].includes(which)) {
|
|
45029
|
-
var
|
|
45335
|
+
var _formattedValue$index;
|
|
45030
45336
|
|
|
45031
45337
|
if (type === EPickerCols.meridiem) return;
|
|
45032
|
-
var timeValue =
|
|
45338
|
+
var timeValue = formattedValue === null || formattedValue === void 0 ? void 0 : (_formattedValue$index = formattedValue[index]) === null || _formattedValue$index === void 0 ? void 0 : _formattedValue$index[type];
|
|
45033
45339
|
var current = timeValue ? Number(timeValue) : 0;
|
|
45034
45340
|
var operate = which === up ? -1 : 1;
|
|
45035
45341
|
var result = current + operate;
|
|
@@ -45043,7 +45349,7 @@
|
|
|
45043
45349
|
result = maxHour;
|
|
45044
45350
|
}
|
|
45045
45351
|
} else if (result > 59) {
|
|
45046
|
-
result =
|
|
45352
|
+
result = 0;
|
|
45047
45353
|
} else if (result < 0) {
|
|
45048
45354
|
result = 59;
|
|
45049
45355
|
}
|
|
@@ -45062,7 +45368,7 @@
|
|
|
45062
45368
|
if (input !== null && input !== void 0 && input.focus) input.focus();
|
|
45063
45369
|
}
|
|
45064
45370
|
}
|
|
45065
|
-
}, [allowInput, format,
|
|
45371
|
+
}, [allowInput, format, formattedValue, handleInputChange]);
|
|
45066
45372
|
var TEXT_CONFIG = useTimePickerTextConfig();
|
|
45067
45373
|
|
|
45068
45374
|
function renderMeridiemItem(text) {
|
|
@@ -45100,7 +45406,7 @@
|
|
|
45100
45406
|
onChange: function onChange(e) {
|
|
45101
45407
|
var _e$target2;
|
|
45102
45408
|
|
|
45103
|
-
return handleInputChange(type, e === null || e === void 0 ? void 0 : (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value);
|
|
45409
|
+
return handleInputChange(type, e === null || e === void 0 ? void 0 : (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value, index);
|
|
45104
45410
|
},
|
|
45105
45411
|
onBlur: function onBlur(e) {
|
|
45106
45412
|
return _onBlur({
|
|
@@ -45127,7 +45433,7 @@
|
|
|
45127
45433
|
|
|
45128
45434
|
return /* @__PURE__ */React__default["default"].createElement("div", {
|
|
45129
45435
|
className: inputItemClass
|
|
45130
|
-
}, isRangePicker ? /* @__PURE__ */React__default["default"].createElement(React__default["default"].Fragment, null, renderItems(
|
|
45436
|
+
}, isRangePicker ? /* @__PURE__ */React__default["default"].createElement(React__default["default"].Fragment, null, renderItems(formattedValue === null || formattedValue === void 0 ? void 0 : formattedValue[0], 0), " - ", renderItems(formattedValue === null || formattedValue === void 0 ? void 0 : formattedValue[1], 1)) : renderItems(formattedValue === null || formattedValue === void 0 ? void 0 : formattedValue[0], 0));
|
|
45131
45437
|
};
|
|
45132
45438
|
|
|
45133
45439
|
var TimeRangePicker = function TimeRangePicker(props) {
|
|
@@ -45751,21 +46057,21 @@
|
|
|
45751
46057
|
return str[0].toUpperCase().concat(str.substring(1, str.length));
|
|
45752
46058
|
}
|
|
45753
46059
|
|
|
45754
|
-
function getFirstDayOfMonth(
|
|
45755
|
-
var year =
|
|
45756
|
-
month =
|
|
46060
|
+
function getFirstDayOfMonth(_ref) {
|
|
46061
|
+
var year = _ref.year,
|
|
46062
|
+
month = _ref.month;
|
|
45757
46063
|
return new Date(year, month, 1);
|
|
45758
46064
|
}
|
|
45759
46065
|
|
|
45760
|
-
function getDaysInMonth(
|
|
45761
|
-
var year =
|
|
45762
|
-
month =
|
|
46066
|
+
function getDaysInMonth(_ref2) {
|
|
46067
|
+
var year = _ref2.year,
|
|
46068
|
+
month = _ref2.month;
|
|
45763
46069
|
return new Date(year, month + 1, 0).getDate();
|
|
45764
46070
|
}
|
|
45765
46071
|
|
|
45766
|
-
function getLastDayOfMonth(
|
|
45767
|
-
var year =
|
|
45768
|
-
month =
|
|
46072
|
+
function getLastDayOfMonth(_ref3) {
|
|
46073
|
+
var year = _ref3.year,
|
|
46074
|
+
month = _ref3.month;
|
|
45769
46075
|
return new Date(year, month, getDaysInMonth({
|
|
45770
46076
|
year: year,
|
|
45771
46077
|
month: month
|
|
@@ -45784,9 +46090,9 @@
|
|
|
45784
46090
|
return isSameMonth(date1, date2) && date1.getDate() === date2.getDate();
|
|
45785
46091
|
}
|
|
45786
46092
|
|
|
45787
|
-
function isBetween(value,
|
|
45788
|
-
var start =
|
|
45789
|
-
end =
|
|
46093
|
+
function isBetween(value, _ref4) {
|
|
46094
|
+
var start = _ref4.start,
|
|
46095
|
+
end = _ref4.end;
|
|
45790
46096
|
var date = new Date(value.getFullYear(), value.getMonth(), value.getDate());
|
|
45791
46097
|
var startTime = new Date(start.getFullYear(), start.getMonth(), start.getDate());
|
|
45792
46098
|
var endTime = new Date(end.getFullYear(), end.getMonth(), end.getDate());
|
|
@@ -45818,18 +46124,20 @@
|
|
|
45818
46124
|
return new Date(now.getFullYear(), now.getMonth(), now.getDate(), 0, 0, 0);
|
|
45819
46125
|
}
|
|
45820
46126
|
function getDateObj(date) {
|
|
46127
|
+
var tempDate = date;
|
|
46128
|
+
|
|
45821
46129
|
if (!(date instanceof Date)) {
|
|
45822
|
-
|
|
46130
|
+
tempDate = getToday();
|
|
45823
46131
|
}
|
|
45824
46132
|
|
|
45825
46133
|
return {
|
|
45826
|
-
year:
|
|
45827
|
-
month:
|
|
45828
|
-
date:
|
|
45829
|
-
hours:
|
|
45830
|
-
minutes:
|
|
45831
|
-
seconds:
|
|
45832
|
-
meridiem:
|
|
46134
|
+
year: tempDate.getFullYear(),
|
|
46135
|
+
month: tempDate.getMonth(),
|
|
46136
|
+
date: tempDate.getDate(),
|
|
46137
|
+
hours: tempDate.getHours(),
|
|
46138
|
+
minutes: tempDate.getMinutes(),
|
|
46139
|
+
seconds: tempDate.getSeconds(),
|
|
46140
|
+
meridiem: tempDate.getHours() > 11 ? "PM" : "AM"
|
|
45833
46141
|
};
|
|
45834
46142
|
}
|
|
45835
46143
|
function setDateTime(d, hour, min, sec) {
|
|
@@ -45843,9 +46151,9 @@
|
|
|
45843
46151
|
function subtractMonth(date, num) {
|
|
45844
46152
|
var day = date.getDate();
|
|
45845
46153
|
var newDate = new Date(date);
|
|
45846
|
-
var
|
|
46154
|
+
var _num = num;
|
|
45847
46155
|
|
|
45848
|
-
while (
|
|
46156
|
+
while (_num--) {
|
|
45849
46157
|
newDate.setDate(0);
|
|
45850
46158
|
}
|
|
45851
46159
|
|
|
@@ -45853,22 +46161,22 @@
|
|
|
45853
46161
|
return newDate;
|
|
45854
46162
|
}
|
|
45855
46163
|
function addMonth(date, num) {
|
|
45856
|
-
var
|
|
45857
|
-
if (num < 0)
|
|
46164
|
+
var _num = num;
|
|
46165
|
+
if (num < 0) _num = 0;
|
|
45858
46166
|
var newDate = new Date(date);
|
|
45859
|
-
newDate.setMonth(date.getMonth() +
|
|
46167
|
+
newDate.setMonth(date.getMonth() + _num);
|
|
45860
46168
|
return newDate;
|
|
45861
46169
|
}
|
|
45862
|
-
function getWeeks(
|
|
45863
|
-
var year =
|
|
45864
|
-
month =
|
|
45865
|
-
var firstDayOfWeek =
|
|
45866
|
-
|
|
45867
|
-
disableDate =
|
|
46170
|
+
function getWeeks(_ref5, _ref6) {
|
|
46171
|
+
var year = _ref5.year,
|
|
46172
|
+
month = _ref5.month;
|
|
46173
|
+
var firstDayOfWeek = _ref6.firstDayOfWeek,
|
|
46174
|
+
_ref6$disableDate = _ref6.disableDate,
|
|
46175
|
+
disableDate = _ref6$disableDate === void 0 ? function () {
|
|
45868
46176
|
return false;
|
|
45869
|
-
} :
|
|
45870
|
-
minDate =
|
|
45871
|
-
maxDate =
|
|
46177
|
+
} : _ref6$disableDate,
|
|
46178
|
+
minDate = _ref6.minDate,
|
|
46179
|
+
maxDate = _ref6.maxDate;
|
|
45872
46180
|
var prependDay = getFirstDayOfMonth({
|
|
45873
46181
|
year: year,
|
|
45874
46182
|
month: month
|
|
@@ -45882,15 +46190,16 @@
|
|
|
45882
46190
|
month: month
|
|
45883
46191
|
});
|
|
45884
46192
|
var daysArr = [];
|
|
46193
|
+
var i = 1;
|
|
45885
46194
|
var today = getToday();
|
|
45886
46195
|
|
|
45887
|
-
for (
|
|
46196
|
+
for (i; i <= maxDays; i++) {
|
|
45888
46197
|
var currentDay = new Date(year, month, i);
|
|
45889
46198
|
daysArr.push({
|
|
45890
46199
|
text: i,
|
|
45891
46200
|
active: false,
|
|
45892
46201
|
value: currentDay,
|
|
45893
|
-
disabled: disableDate(currentDay) || outOfRanges(currentDay, minDate, maxDate),
|
|
46202
|
+
disabled: typeof disableDate === "function" && disableDate(currentDay) || outOfRanges(currentDay, minDate, maxDate),
|
|
45894
46203
|
now: isSame(today, currentDay),
|
|
45895
46204
|
firstDayOfMonth: i === 1,
|
|
45896
46205
|
lastDayOfMonth: i === maxDays,
|
|
@@ -45898,16 +46207,15 @@
|
|
|
45898
46207
|
});
|
|
45899
46208
|
}
|
|
45900
46209
|
|
|
45901
|
-
if (prependDay.getDay() !== firstDayOfWeek
|
|
46210
|
+
if (prependDay.getDay() !== firstDayOfWeek) {
|
|
45902
46211
|
prependDay.setDate(0);
|
|
45903
|
-
var FLAG = true;
|
|
45904
46212
|
|
|
45905
|
-
while (
|
|
46213
|
+
while (true) {
|
|
45906
46214
|
daysArr.unshift({
|
|
45907
46215
|
text: prependDay.getDate().toString(),
|
|
45908
46216
|
active: false,
|
|
45909
46217
|
value: new Date(prependDay),
|
|
45910
|
-
disabled: disableDate(prependDay) || outOfRanges(prependDay, minDate, maxDate),
|
|
46218
|
+
disabled: typeof disableDate === "function" && disableDate(prependDay) || outOfRanges(prependDay, minDate, maxDate),
|
|
45911
46219
|
additional: true,
|
|
45912
46220
|
type: "prev-month"
|
|
45913
46221
|
});
|
|
@@ -45924,7 +46232,7 @@
|
|
|
45924
46232
|
text: appendDay.getDate(),
|
|
45925
46233
|
active: false,
|
|
45926
46234
|
value: new Date(appendDay),
|
|
45927
|
-
disabled: disableDate(appendDay) || outOfRanges(appendDay, minDate, maxDate),
|
|
46235
|
+
disabled: typeof disableDate === "function" && disableDate(appendDay) || outOfRanges(appendDay, minDate, maxDate),
|
|
45928
46236
|
additional: true,
|
|
45929
46237
|
type: "next-month"
|
|
45930
46238
|
});
|
|
@@ -45932,13 +46240,13 @@
|
|
|
45932
46240
|
|
|
45933
46241
|
return chunk_1(daysArr, 7);
|
|
45934
46242
|
}
|
|
45935
|
-
function getYears(year,
|
|
45936
|
-
var
|
|
45937
|
-
disableDate =
|
|
46243
|
+
function getYears(year, _ref7) {
|
|
46244
|
+
var _ref7$disableDate = _ref7.disableDate,
|
|
46245
|
+
disableDate = _ref7$disableDate === void 0 ? function () {
|
|
45938
46246
|
return false;
|
|
45939
|
-
} :
|
|
45940
|
-
minDate =
|
|
45941
|
-
maxDate =
|
|
46247
|
+
} : _ref7$disableDate,
|
|
46248
|
+
minDate = _ref7.minDate,
|
|
46249
|
+
maxDate = _ref7.maxDate;
|
|
45942
46250
|
var startYear = parseInt((year / 10).toString(), 10) * 10;
|
|
45943
46251
|
var endYear = startYear + 9;
|
|
45944
46252
|
var yearArr = [];
|
|
@@ -45950,7 +46258,7 @@
|
|
|
45950
46258
|
var outOfRangeMonth = 0;
|
|
45951
46259
|
|
|
45952
46260
|
for (var j = 0; j < 12; j++) {
|
|
45953
|
-
var d = new Date(i, j
|
|
46261
|
+
var d = new Date(i, j);
|
|
45954
46262
|
if (typeof disableDate === "function" && disableDate(d)) disabledMonth += 1;
|
|
45955
46263
|
if (outOfRanges(d, minDate, maxDate)) outOfRangeMonth += 1;
|
|
45956
46264
|
}
|
|
@@ -45966,16 +46274,15 @@
|
|
|
45966
46274
|
|
|
45967
46275
|
return chunk_1(yearArr, 4);
|
|
45968
46276
|
}
|
|
45969
|
-
function getMonths(year,
|
|
45970
|
-
var
|
|
45971
|
-
disableDate =
|
|
46277
|
+
function getMonths(year, params) {
|
|
46278
|
+
var _params$disableDate = params.disableDate,
|
|
46279
|
+
disableDate = _params$disableDate === void 0 ? function () {
|
|
45972
46280
|
return false;
|
|
45973
|
-
} :
|
|
45974
|
-
minDate =
|
|
45975
|
-
maxDate =
|
|
45976
|
-
|
|
45977
|
-
|
|
45978
|
-
var monthArr = [];
|
|
46281
|
+
} : _params$disableDate,
|
|
46282
|
+
minDate = params.minDate,
|
|
46283
|
+
maxDate = params.maxDate,
|
|
46284
|
+
monthLocal = params.monthLocal;
|
|
46285
|
+
var MonthArr = [];
|
|
45979
46286
|
var today = getToday();
|
|
45980
46287
|
|
|
45981
46288
|
for (var i = 0; i <= 11; i++) {
|
|
@@ -45989,23 +46296,23 @@
|
|
|
45989
46296
|
|
|
45990
46297
|
for (var j = 1; j <= daysInMonth; j++) {
|
|
45991
46298
|
var d = new Date(year, i, j);
|
|
45992
|
-
if (disableDate(d)) disabledDay += 1;
|
|
46299
|
+
if (typeof disableDate === "function" && disableDate(d)) disabledDay += 1;
|
|
45993
46300
|
if (outOfRanges(d, minDate, maxDate)) outOfRangeDay += 1;
|
|
45994
46301
|
}
|
|
45995
46302
|
|
|
45996
|
-
|
|
46303
|
+
MonthArr.push({
|
|
45997
46304
|
value: date,
|
|
45998
46305
|
now: isSame(date, today, "month"),
|
|
45999
46306
|
disabled: disabledDay === daysInMonth || outOfRangeDay === daysInMonth,
|
|
46000
46307
|
active: false,
|
|
46001
|
-
text:
|
|
46308
|
+
text: monthLocal[date.getMonth()]
|
|
46002
46309
|
});
|
|
46003
46310
|
}
|
|
46004
46311
|
|
|
46005
|
-
return chunk_1(
|
|
46312
|
+
return chunk_1(MonthArr, 4);
|
|
46006
46313
|
}
|
|
46007
|
-
function flagActive(data,
|
|
46008
|
-
var args = _extends({},
|
|
46314
|
+
function flagActive(data, _ref8) {
|
|
46315
|
+
var args = _extends({}, _ref8);
|
|
46009
46316
|
|
|
46010
46317
|
var start = args.start,
|
|
46011
46318
|
end = args.end,
|
|
@@ -46015,29 +46322,27 @@
|
|
|
46015
46322
|
if (!end) {
|
|
46016
46323
|
return data.map(function (row) {
|
|
46017
46324
|
return row.map(function (item) {
|
|
46018
|
-
|
|
46019
|
-
|
|
46020
|
-
|
|
46021
|
-
return item;
|
|
46325
|
+
var _item = item;
|
|
46326
|
+
_item.active = isSame(item.value, start, type);
|
|
46327
|
+
return _item;
|
|
46022
46328
|
});
|
|
46023
46329
|
});
|
|
46024
46330
|
}
|
|
46025
46331
|
|
|
46026
46332
|
return data.map(function (row) {
|
|
46027
46333
|
return row.map(function (item) {
|
|
46334
|
+
var _item = item;
|
|
46028
46335
|
var date = item.value;
|
|
46029
46336
|
var isStart = isSame(start, date, type);
|
|
46030
46337
|
var isEnd = isSame(end, date, type);
|
|
46031
|
-
|
|
46032
|
-
|
|
46033
|
-
|
|
46034
|
-
|
|
46035
|
-
end: end
|
|
46036
|
-
}),
|
|
46037
|
-
startOfRange: isStart,
|
|
46038
|
-
endOfRange: isEnd
|
|
46338
|
+
_item.active = isStart || isEnd;
|
|
46339
|
+
_item.highlight = isBetween(date, {
|
|
46340
|
+
start: start,
|
|
46341
|
+
end: end
|
|
46039
46342
|
});
|
|
46040
|
-
|
|
46343
|
+
_item.startOfRange = isStart;
|
|
46344
|
+
_item.endOfRange = isEnd;
|
|
46345
|
+
return _item;
|
|
46041
46346
|
});
|
|
46042
46347
|
});
|
|
46043
46348
|
}
|
|
@@ -46050,7 +46355,7 @@
|
|
|
46050
46355
|
local = _useLocaleReceiver2[0],
|
|
46051
46356
|
t = _useLocaleReceiver2[1];
|
|
46052
46357
|
|
|
46053
|
-
var monthAriaLabel = t(local.
|
|
46358
|
+
var monthAriaLabel = t(local.months);
|
|
46054
46359
|
|
|
46055
46360
|
var _useConfig = useConfig$1(),
|
|
46056
46361
|
classPrefix = _useConfig.classPrefix;
|
|
@@ -46130,7 +46435,7 @@
|
|
|
46130
46435
|
minDate: minDate,
|
|
46131
46436
|
maxDate: maxDate,
|
|
46132
46437
|
firstDayOfWeek: firstDayOfWeek,
|
|
46133
|
-
|
|
46438
|
+
monthLocal: monthAriaLabel
|
|
46134
46439
|
};
|
|
46135
46440
|
|
|
46136
46441
|
switch (type) {
|
|
@@ -46211,7 +46516,7 @@
|
|
|
46211
46516
|
local = _useLocaleReceiver2[0],
|
|
46212
46517
|
t = _useLocaleReceiver2[1];
|
|
46213
46518
|
|
|
46214
|
-
var monthAriaLabel = t(local.
|
|
46519
|
+
var monthAriaLabel = t(local.months);
|
|
46215
46520
|
|
|
46216
46521
|
var _useConfig = useConfig$1(),
|
|
46217
46522
|
classPrefix = _useConfig.classPrefix;
|
|
@@ -46458,7 +46763,7 @@
|
|
|
46458
46763
|
minDate: minDate,
|
|
46459
46764
|
maxDate: maxDate,
|
|
46460
46765
|
firstDayOfWeek: firstDayOfWeek,
|
|
46461
|
-
|
|
46766
|
+
monthLocal: monthAriaLabel
|
|
46462
46767
|
};
|
|
46463
46768
|
|
|
46464
46769
|
switch (type) {
|