naive-ui 2.30.8 → 2.31.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/dist/index.js +1362 -535
- package/dist/index.prod.js +2 -2
- package/es/_internal/scrollbar/src/Scrollbar.js +8 -2
- package/es/_internal/scrollbar/src/styles/index.cssr.js +1 -0
- package/es/_internal/selection/src/styles/index.cssr.js +1 -0
- package/es/_mixins/use-rtl.d.ts +1 -1
- package/es/_mixins/use-rtl.js +1 -1
- package/es/_utils/env/browser.d.ts +3 -0
- package/es/_utils/env/browser.js +4 -0
- package/es/_utils/env/is-native-lazy-load.d.ts +1 -0
- package/es/_utils/env/is-native-lazy-load.js +3 -0
- package/es/affix/index.d.ts +1 -1
- package/es/affix/index.js +1 -1
- package/es/alert/index.d.ts +1 -1
- package/es/alert/index.js +1 -1
- package/es/alert/src/Alert.d.ts +1 -1
- package/es/alert/src/Alert.js +2 -2
- package/es/anchor/index.d.ts +2 -2
- package/es/anchor/index.js +2 -2
- package/es/anchor/src/AnchorAdapter.d.ts +1 -1
- package/es/anchor/src/AnchorAdapter.js +1 -1
- package/es/anchor/src/Link.d.ts +1 -1
- package/es/anchor/src/Link.js +1 -1
- package/es/auto-complete/index.d.ts +1 -1
- package/es/auto-complete/index.js +1 -1
- package/es/auto-complete/src/AutoComplete.d.ts +1 -1
- package/es/auto-complete/src/AutoComplete.js +1 -1
- package/es/avatar/index.d.ts +1 -1
- package/es/avatar/index.js +1 -1
- package/es/avatar/src/Avatar.d.ts +13 -1
- package/es/avatar/src/Avatar.js +61 -8
- package/es/avatar-group/index.d.ts +1 -1
- package/es/avatar-group/index.js +1 -1
- package/es/avatar-group/src/AvatarGroup.d.ts +1 -1
- package/es/avatar-group/src/AvatarGroup.js +2 -2
- package/es/back-top/index.d.ts +1 -1
- package/es/back-top/index.js +1 -1
- package/es/back-top/src/BackTop.d.ts +1 -1
- package/es/back-top/src/BackTop.js +1 -1
- package/es/badge/index.d.ts +1 -1
- package/es/badge/index.js +1 -1
- package/es/badge/src/Badge.d.ts +1 -1
- package/es/badge/src/Badge.js +2 -2
- package/es/breadcrumb/index.d.ts +2 -2
- package/es/breadcrumb/index.js +2 -2
- package/es/breadcrumb/src/Breadcrumb.d.ts +1 -1
- package/es/breadcrumb/src/Breadcrumb.js +1 -1
- package/es/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
- package/es/breadcrumb/src/BreadcrumbItem.js +1 -1
- package/es/breadcrumb/src/styles/index.cssr.js +1 -0
- package/es/button/index.d.ts +1 -1
- package/es/button/index.js +1 -1
- package/es/button/src/Button.d.ts +13 -4
- package/es/button/src/Button.js +8 -4
- package/es/button/src/styles/index.cssr.js +1 -0
- package/es/button-group/index.d.ts +1 -1
- package/es/button-group/index.js +1 -1
- package/es/button-group/src/ButtonGroup.d.ts +1 -1
- package/es/button-group/src/ButtonGroup.js +2 -2
- package/es/calendar/index.d.ts +1 -1
- package/es/calendar/index.js +1 -1
- package/es/calendar/src/Calendar.d.ts +1 -1
- package/es/calendar/src/Calendar.js +1 -1
- package/es/card/index.d.ts +1 -1
- package/es/card/index.js +1 -1
- package/es/card/src/Card.d.ts +2 -2
- package/es/card/src/Card.js +2 -2
- package/es/carousel/index.d.ts +1 -1
- package/es/carousel/index.js +1 -1
- package/es/carousel/src/Carousel.d.ts +1 -1
- package/es/carousel/src/Carousel.js +1 -1
- package/es/carousel/src/styles/index.cssr.js +1 -0
- package/es/cascader/index.d.ts +1 -1
- package/es/cascader/index.js +1 -1
- package/es/cascader/src/Cascader.d.ts +1 -1
- package/es/cascader/src/Cascader.js +1 -1
- package/es/cascader/src/utils.d.ts +1 -4
- package/es/cascader/src/utils.js +18 -28
- package/es/checkbox/index.d.ts +2 -2
- package/es/checkbox/index.js +2 -2
- package/es/checkbox/src/Checkbox.d.ts +1 -1
- package/es/checkbox/src/Checkbox.js +2 -2
- package/es/checkbox/src/CheckboxGroup.d.ts +1 -1
- package/es/checkbox/src/CheckboxGroup.js +1 -1
- package/es/checkbox/src/styles/index.cssr.js +2 -0
- package/es/code/index.d.ts +1 -1
- package/es/code/index.js +1 -1
- package/es/code/src/Code.d.ts +1 -1
- package/es/code/src/Code.js +1 -1
- package/es/collapse/index.d.ts +2 -2
- package/es/collapse/index.js +2 -2
- package/es/collapse/src/Collapse.d.ts +1 -1
- package/es/collapse/src/Collapse.js +2 -2
- package/es/collapse/src/CollapseItem.d.ts +1 -1
- package/es/collapse/src/CollapseItem.js +2 -2
- package/es/collapse-transition/index.d.ts +1 -1
- package/es/collapse-transition/index.js +1 -1
- package/es/collapse-transition/src/CollapseTransition.d.ts +2 -2
- package/es/collapse-transition/src/CollapseTransition.js +3 -3
- package/es/color-picker/index.d.ts +1 -1
- package/es/color-picker/index.js +1 -1
- package/es/color-picker/src/ColorPicker.d.ts +2 -2
- package/es/color-picker/src/ColorPicker.js +2 -2
- package/es/countdown/index.d.ts +2 -2
- package/es/countdown/index.js +1 -1
- package/es/countdown/src/Countdown.d.ts +9 -2
- package/es/countdown/src/Countdown.js +42 -26
- package/es/data-table/index.d.ts +1 -1
- package/es/data-table/index.js +1 -1
- package/es/data-table/src/TableParts/Body.d.ts +4 -0
- package/es/data-table/src/TableParts/Body.js +50 -34
- package/es/data-table/src/TableParts/BodyRadio.d.ts +30 -0
- package/es/data-table/src/TableParts/BodyRadio.js +30 -0
- package/es/data-table/src/TableParts/Header.js +2 -2
- package/es/data-table/src/interface.d.ts +2 -1
- package/es/data-table/src/use-check.d.ts +1 -1
- package/es/data-table/src/use-check.js +15 -3
- package/es/date-picker/index.d.ts +1 -1
- package/es/date-picker/index.js +1 -1
- package/es/date-picker/src/DatePicker.d.ts +1 -1
- package/es/date-picker/src/DatePicker.js +19 -10
- package/es/date-picker/src/panel/daterange.js +1 -1
- package/es/date-picker/src/panel/datetimerange.js +1 -1
- package/es/date-picker/src/panel/month.js +1 -1
- package/es/date-picker/src/panel/monthrange.js +1 -1
- package/es/date-picker/src/styles/index.cssr.js +4 -0
- package/es/descriptions/index.d.ts +2 -2
- package/es/descriptions/index.js +2 -2
- package/es/descriptions/src/Descriptions.d.ts +2 -2
- package/es/descriptions/src/Descriptions.js +2 -2
- package/es/descriptions/src/DescriptionsItem.d.ts +2 -2
- package/es/descriptions/src/DescriptionsItem.js +2 -2
- package/es/dialog/index.d.ts +2 -1
- package/es/dialog/index.js +2 -1
- package/es/dialog/src/DialogProvider.d.ts +1 -1
- package/es/dialog/src/DialogProvider.js +1 -1
- package/es/divider/index.d.ts +1 -1
- package/es/divider/index.js +1 -1
- package/es/divider/src/Divider.d.ts +1 -1
- package/es/divider/src/Divider.js +1 -1
- package/es/drawer/index.d.ts +2 -2
- package/es/drawer/index.js +2 -2
- package/es/drawer/src/Drawer.d.ts +60 -27
- package/es/drawer/src/Drawer.js +39 -18
- package/es/drawer/src/DrawerBodyWrapper.d.ts +9 -0
- package/es/drawer/src/DrawerBodyWrapper.js +97 -2
- package/es/drawer/src/DrawerContent.d.ts +2 -1
- package/es/drawer/src/DrawerContent.js +1 -1
- package/es/drawer/src/interface.d.ts +2 -0
- package/es/drawer/src/styles/index.cssr.js +42 -5
- package/es/drawer/styles/light.d.ts +2 -0
- package/es/drawer/styles/light.js +3 -2
- package/es/dropdown/index.d.ts +2 -2
- package/es/dropdown/index.js +1 -1
- package/es/dropdown/src/Dropdown.d.ts +10 -2
- package/es/dropdown/src/Dropdown.js +15 -4
- package/es/dropdown/src/DropdownMenu.d.ts +3 -0
- package/es/dropdown/src/DropdownMenu.js +23 -15
- package/es/dropdown/src/DropdownOption.d.ts +5 -0
- package/es/dropdown/src/DropdownOption.js +32 -10
- package/es/dropdown/src/interface.d.ts +2 -1
- package/es/dropdown/src/styles/index.cssr.js +17 -11
- package/es/dynamic-input/index.d.ts +1 -1
- package/es/dynamic-input/index.js +1 -1
- package/es/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/es/dynamic-input/src/DynamicInput.js +2 -2
- package/es/dynamic-tags/index.d.ts +1 -1
- package/es/dynamic-tags/index.js +1 -1
- package/es/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/es/dynamic-tags/src/DynamicTags.js +1 -1
- package/es/element/index.d.ts +1 -1
- package/es/element/index.js +1 -1
- package/es/element/src/Element.d.ts +1 -1
- package/es/element/src/Element.js +1 -1
- package/es/ellipsis/index.d.ts +1 -1
- package/es/ellipsis/index.js +1 -1
- package/es/ellipsis/src/Ellipsis.d.ts +1 -1
- package/es/ellipsis/src/Ellipsis.js +1 -1
- package/es/empty/index.d.ts +1 -1
- package/es/empty/index.js +1 -1
- package/es/empty/src/Empty.d.ts +1 -1
- package/es/empty/src/Empty.js +1 -1
- package/es/form/index.d.ts +3 -3
- package/es/form/index.js +3 -3
- package/es/form/src/Form.d.ts +1 -1
- package/es/form/src/Form.js +1 -1
- package/es/form/src/FormItemRow.d.ts +1 -1
- package/es/form/src/FormItemRow.js +1 -1
- package/es/form/src/styles/form-item.cssr.js +2 -0
- package/es/gradient-text/index.d.ts +1 -1
- package/es/gradient-text/index.js +1 -1
- package/es/gradient-text/src/GradientText.d.ts +1 -1
- package/es/gradient-text/src/GradientText.js +1 -1
- package/es/grid/index.d.ts +3 -3
- package/es/grid/index.js +3 -3
- package/es/grid/src/Grid.d.ts +1 -1
- package/es/grid/src/Grid.js +1 -1
- package/es/icon/index.d.ts +1 -1
- package/es/icon/index.js +1 -1
- package/es/icon/src/Icon.d.ts +1 -2
- package/es/icon/src/Icon.js +1 -1
- package/es/icon-wrapper/index.d.ts +1 -1
- package/es/icon-wrapper/index.js +1 -1
- package/es/icon-wrapper/src/IconWrapper.d.ts +1 -2
- package/es/icon-wrapper/src/IconWrapper.js +1 -1
- package/es/image/index.d.ts +2 -2
- package/es/image/index.js +2 -2
- package/es/image/src/Image.d.ts +1 -1
- package/es/image/src/Image.js +17 -10
- package/es/image/src/ImageGroup.d.ts +1 -1
- package/es/image/src/ImageGroup.js +1 -1
- package/es/image/src/styles/index.cssr.js +1 -0
- package/es/input/index.d.ts +3 -3
- package/es/input/index.js +3 -3
- package/es/input/src/Input.d.ts +1 -1
- package/es/input/src/Input.js +2 -2
- package/es/input/src/InputGroup.d.ts +1 -1
- package/es/input/src/InputGroup.js +1 -1
- package/es/input/src/InputGroupLabel.d.ts +1 -1
- package/es/input/src/InputGroupLabel.js +1 -1
- package/es/input/src/styles/input-group-label.cssr.js +1 -0
- package/es/input/src/styles/input.cssr.js +3 -0
- package/es/input-number/index.d.ts +1 -1
- package/es/input-number/index.js +1 -1
- package/es/input-number/src/InputNumber.d.ts +1 -1
- package/es/input-number/src/InputNumber.js +2 -2
- package/es/layout/index.d.ts +4 -4
- package/es/layout/index.js +4 -4
- package/es/layout/src/Layout.d.ts +1 -1
- package/es/layout/src/Layout.js +1 -1
- package/es/layout/src/LayoutFooter.d.ts +1 -1
- package/es/layout/src/LayoutFooter.js +1 -1
- package/es/layout/src/LayoutHeader.d.ts +1 -1
- package/es/layout/src/LayoutHeader.js +1 -1
- package/es/layout/src/LayoutSider.d.ts +1 -1
- package/es/layout/src/LayoutSider.js +1 -1
- package/es/legacy-grid/index.d.ts +2 -2
- package/es/legacy-grid/index.js +2 -2
- package/es/list/index.d.ts +1 -1
- package/es/list/index.js +1 -1
- package/es/list/src/List.d.ts +1 -1
- package/es/list/src/List.js +1 -1
- package/es/loading-bar/index.d.ts +1 -1
- package/es/loading-bar/index.js +1 -1
- package/es/loading-bar/src/LoadingBarProvider.d.ts +3 -3
- package/es/loading-bar/src/LoadingBarProvider.js +2 -2
- package/es/locales/common/ukUA.js +14 -18
- package/es/log/index.d.ts +1 -1
- package/es/log/index.js +1 -1
- package/es/log/src/Log.d.ts +1 -1
- package/es/log/src/Log.js +1 -1
- package/es/mention/index.d.ts +1 -1
- package/es/mention/index.js +1 -1
- package/es/mention/src/Mention.d.ts +1 -1
- package/es/mention/src/Mention.js +1 -1
- package/es/menu/index.d.ts +1 -1
- package/es/menu/index.js +1 -1
- package/es/menu/src/Menu.d.ts +1 -1
- package/es/menu/src/Menu.js +1 -1
- package/es/message/index.d.ts +1 -1
- package/es/message/index.js +1 -1
- package/es/message/src/MessageProvider.d.ts +1 -1
- package/es/message/src/MessageProvider.js +1 -1
- package/es/modal/index.d.ts +1 -1
- package/es/modal/index.js +1 -1
- package/es/modal/src/Modal.d.ts +1 -1
- package/es/modal/src/Modal.js +1 -1
- package/es/modal/src/presetProps.d.ts +1 -1
- package/es/notification/index.d.ts +1 -1
- package/es/notification/index.js +1 -1
- package/es/notification/src/Notification.d.ts +1 -0
- package/es/notification/src/Notification.js +6 -2
- package/es/notification/src/NotificationContainer.js +1 -1
- package/es/notification/src/NotificationProvider.d.ts +1 -1
- package/es/notification/src/NotificationProvider.js +1 -1
- package/es/notification/src/styles/index.cssr.js +1 -3
- package/es/notification/src/styles/rtl.cssr.d.ts +2 -0
- package/es/notification/src/styles/rtl.cssr.js +22 -0
- package/es/notification/styles/index.d.ts +1 -0
- package/es/notification/styles/index.js +1 -0
- package/es/notification/styles/rtl.d.ts +2 -0
- package/es/notification/styles/rtl.js +5 -0
- package/es/number-animation/index.d.ts +1 -1
- package/es/number-animation/index.js +1 -1
- package/es/number-animation/src/NumberAnimation.d.ts +5 -1
- package/es/number-animation/src/NumberAnimation.js +5 -2
- package/es/page-header/index.d.ts +1 -1
- package/es/page-header/index.js +1 -1
- package/es/page-header/src/PageHeader.d.ts +1 -1
- package/es/page-header/src/PageHeader.js +2 -2
- package/es/pagination/index.d.ts +1 -1
- package/es/pagination/index.js +1 -1
- package/es/pagination/src/Pagination.d.ts +1 -1
- package/es/pagination/src/Pagination.js +2 -2
- package/es/pagination/src/styles/index.cssr.js +1 -0
- package/es/popconfirm/index.d.ts +1 -1
- package/es/popconfirm/index.js +1 -1
- package/es/popconfirm/src/Popconfirm.d.ts +4 -1
- package/es/popconfirm/src/Popconfirm.js +1 -1
- package/es/popover/index.d.ts +1 -1
- package/es/popover/index.js +1 -1
- package/es/popover/src/Popover.d.ts +8 -1
- package/es/popover/src/Popover.js +4 -2
- package/es/popover/src/PopoverBody.d.ts +6 -0
- package/es/popover/src/PopoverBody.js +23 -14
- package/es/popover/src/styles/index.cssr.js +19 -15
- package/es/popselect/index.d.ts +1 -1
- package/es/popselect/index.js +1 -1
- package/es/popselect/src/Popselect.d.ts +4 -1
- package/es/popselect/src/Popselect.js +1 -1
- package/es/progress/index.d.ts +1 -1
- package/es/progress/index.js +1 -1
- package/es/progress/src/Progress.d.ts +1 -1
- package/es/progress/src/Progress.js +1 -1
- package/es/radio/index.d.ts +3 -3
- package/es/radio/index.js +3 -3
- package/es/radio/src/Radio.d.ts +25 -0
- package/es/radio/src/Radio.js +2 -1
- package/es/radio/src/RadioButton.d.ts +25 -0
- package/es/radio/src/RadioButton.js +1 -0
- package/es/radio/src/RadioGroup.d.ts +1 -1
- package/es/radio/src/RadioGroup.js +2 -2
- package/es/radio/src/styles/radio-group.cssr.js +2 -0
- package/es/radio/src/styles/radio.cssr.js +1 -0
- package/es/rate/index.d.ts +1 -1
- package/es/rate/index.js +1 -1
- package/es/rate/src/Rate.d.ts +1 -1
- package/es/rate/src/Rate.js +1 -1
- package/es/result/index.d.ts +1 -1
- package/es/result/index.js +1 -1
- package/es/result/src/Result.d.ts +1 -1
- package/es/result/src/Result.js +1 -1
- package/es/scrollbar/index.d.ts +1 -1
- package/es/scrollbar/index.js +1 -1
- package/es/scrollbar/src/Scrollbar.d.ts +1 -1
- package/es/scrollbar/src/Scrollbar.js +1 -1
- package/es/select/index.d.ts +1 -1
- package/es/select/index.js +1 -1
- package/es/select/src/Select.d.ts +1 -1
- package/es/select/src/Select.js +1 -1
- package/es/skeleton/index.d.ts +1 -1
- package/es/skeleton/index.js +1 -1
- package/es/skeleton/src/Skeleton.d.ts +1 -1
- package/es/skeleton/src/Skeleton.js +1 -1
- package/es/slider/index.d.ts +1 -1
- package/es/slider/index.js +1 -1
- package/es/slider/src/Slider.d.ts +1 -1
- package/es/slider/src/Slider.js +1 -1
- package/es/slider/src/styles/index.cssr.js +1 -0
- package/es/space/index.d.ts +1 -1
- package/es/space/index.js +1 -1
- package/es/space/src/Space.d.ts +1 -1
- package/es/space/src/Space.js +2 -2
- package/es/spin/index.d.ts +1 -1
- package/es/spin/index.js +1 -1
- package/es/spin/src/Spin.d.ts +1 -1
- package/es/spin/src/Spin.js +1 -1
- package/es/spin/src/styles/index.cssr.js +1 -0
- package/es/statistic/index.d.ts +1 -1
- package/es/statistic/index.js +1 -1
- package/es/statistic/src/Statistic.d.ts +1 -1
- package/es/statistic/src/Statistic.js +1 -1
- package/es/steps/index.d.ts +2 -2
- package/es/steps/index.js +2 -2
- package/es/steps/src/Step.d.ts +1 -1
- package/es/steps/src/Step.js +1 -1
- package/es/steps/src/Steps.d.ts +1 -1
- package/es/steps/src/Steps.js +1 -1
- package/es/switch/index.d.ts +1 -1
- package/es/switch/index.js +1 -1
- package/es/switch/src/Switch.d.ts +1 -1
- package/es/switch/src/Switch.js +1 -1
- package/es/switch/src/styles/index.cssr.js +1 -0
- package/es/table/index.d.ts +1 -1
- package/es/table/index.js +1 -1
- package/es/table/src/Table.d.ts +1 -1
- package/es/table/src/Table.js +2 -2
- package/es/tabs/index.d.ts +3 -3
- package/es/tabs/index.js +3 -3
- package/es/tabs/src/Tab.d.ts +2 -2
- package/es/tabs/src/Tab.js +2 -2
- package/es/tabs/src/Tabs.d.ts +1 -1
- package/es/tabs/src/Tabs.js +1 -1
- package/es/tag/index.d.ts +1 -1
- package/es/tag/index.js +1 -1
- package/es/tag/src/Tag.d.ts +1 -1
- package/es/tag/src/Tag.js +2 -2
- package/es/thing/index.d.ts +1 -1
- package/es/thing/index.js +1 -1
- package/es/thing/src/Thing.d.ts +1 -1
- package/es/thing/src/Thing.js +1 -1
- package/es/time/index.d.ts +1 -1
- package/es/time/index.js +1 -1
- package/es/time/src/Time.d.ts +1 -1
- package/es/time/src/Time.js +1 -1
- package/es/time-picker/index.d.ts +1 -1
- package/es/time-picker/index.js +1 -1
- package/es/time-picker/src/TimePicker.d.ts +1 -1
- package/es/time-picker/src/TimePicker.js +1 -1
- package/es/timeline/index.d.ts +2 -2
- package/es/timeline/index.js +2 -2
- package/es/timeline/src/Timeline.d.ts +1 -1
- package/es/timeline/src/Timeline.js +1 -1
- package/es/timeline/src/TimelineItem.d.ts +1 -1
- package/es/timeline/src/TimelineItem.js +1 -1
- package/es/tooltip/index.d.ts +1 -1
- package/es/tooltip/index.js +1 -1
- package/es/tooltip/src/Tooltip.d.ts +4 -1
- package/es/tooltip/src/Tooltip.js +1 -1
- package/es/transfer/index.d.ts +1 -1
- package/es/transfer/index.js +1 -1
- package/es/transfer/src/Transfer.d.ts +1 -1
- package/es/transfer/src/Transfer.js +1 -1
- package/es/tree/index.d.ts +1 -1
- package/es/tree/index.js +1 -1
- package/es/tree/src/Tree.d.ts +19 -2
- package/es/tree/src/Tree.js +45 -19
- package/es/tree/src/TreeNode.js +21 -6
- package/es/tree/src/interface.d.ts +2 -0
- package/es/tree-select/index.d.ts +1 -1
- package/es/tree-select/index.js +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +2 -2
- package/es/tree-select/src/TreeSelect.js +2 -2
- package/es/typography/index.d.ts +7 -6
- package/es/typography/index.js +7 -6
- package/es/typography/src/a.d.ts +1 -1
- package/es/typography/src/a.js +1 -1
- package/es/typography/src/blockquote.d.ts +1 -1
- package/es/typography/src/blockquote.js +1 -1
- package/es/typography/src/create-header.d.ts +1 -1
- package/es/typography/src/create-header.js +1 -1
- package/es/typography/src/ol.d.ts +1 -1
- package/es/typography/src/ol.js +1 -1
- package/es/typography/src/p.d.ts +1 -1
- package/es/typography/src/p.js +1 -1
- package/es/typography/src/text.d.ts +1 -1
- package/es/typography/src/text.js +1 -1
- package/es/typography/src/ul.d.ts +1 -1
- package/es/typography/src/ul.js +1 -1
- package/es/upload/index.d.ts +1 -1
- package/es/upload/index.js +1 -1
- package/es/upload/src/Upload.d.ts +1 -1
- package/es/upload/src/Upload.js +1 -1
- package/es/upload/src/UploadFile.d.ts +2 -2
- package/es/upload/src/UploadFile.js +8 -4
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/es/watermark/index.d.ts +1 -1
- package/es/watermark/index.js +1 -1
- package/es/watermark/src/Watermark.d.ts +1 -1
- package/es/watermark/src/Watermark.js +1 -1
- package/es/watermark/src/styles/index.cssr.js +4 -1
- package/lib/_internal/scrollbar/src/Scrollbar.js +8 -2
- package/lib/_internal/scrollbar/src/styles/index.cssr.js +1 -0
- package/lib/_internal/selection/src/styles/index.cssr.js +1 -0
- package/lib/_mixins/use-rtl.d.ts +1 -1
- package/lib/_mixins/use-rtl.js +2 -1
- package/lib/_utils/env/browser.d.ts +3 -0
- package/lib/_utils/env/browser.js +7 -0
- package/lib/_utils/env/is-native-lazy-load.d.ts +1 -0
- package/lib/_utils/env/is-native-lazy-load.js +6 -0
- package/lib/affix/index.d.ts +1 -1
- package/lib/affix/index.js +2 -1
- package/lib/alert/index.d.ts +1 -1
- package/lib/alert/index.js +2 -1
- package/lib/alert/src/Alert.d.ts +1 -1
- package/lib/alert/src/Alert.js +5 -4
- package/lib/anchor/index.d.ts +2 -2
- package/lib/anchor/index.js +3 -1
- package/lib/anchor/src/AnchorAdapter.d.ts +1 -1
- package/lib/anchor/src/AnchorAdapter.js +3 -2
- package/lib/anchor/src/Link.d.ts +1 -1
- package/lib/anchor/src/Link.js +3 -3
- package/lib/auto-complete/index.d.ts +1 -1
- package/lib/auto-complete/index.js +2 -1
- package/lib/auto-complete/src/AutoComplete.d.ts +1 -1
- package/lib/auto-complete/src/AutoComplete.js +3 -2
- package/lib/avatar/index.d.ts +1 -1
- package/lib/avatar/index.js +2 -1
- package/lib/avatar/src/Avatar.d.ts +13 -1
- package/lib/avatar/src/Avatar.js +60 -7
- package/lib/avatar-group/index.d.ts +1 -1
- package/lib/avatar-group/index.js +2 -1
- package/lib/avatar-group/src/AvatarGroup.d.ts +1 -1
- package/lib/avatar-group/src/AvatarGroup.js +5 -4
- package/lib/back-top/index.d.ts +1 -1
- package/lib/back-top/index.js +2 -1
- package/lib/back-top/src/BackTop.d.ts +1 -1
- package/lib/back-top/src/BackTop.js +3 -2
- package/lib/badge/index.d.ts +1 -1
- package/lib/badge/index.js +2 -1
- package/lib/badge/src/Badge.d.ts +1 -1
- package/lib/badge/src/Badge.js +5 -4
- package/lib/breadcrumb/index.d.ts +2 -2
- package/lib/breadcrumb/index.js +3 -1
- package/lib/breadcrumb/src/Breadcrumb.d.ts +1 -1
- package/lib/breadcrumb/src/Breadcrumb.js +3 -3
- package/lib/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
- package/lib/breadcrumb/src/BreadcrumbItem.js +3 -2
- package/lib/breadcrumb/src/styles/index.cssr.js +1 -0
- package/lib/button/index.d.ts +1 -1
- package/lib/button/index.js +2 -1
- package/lib/button/src/Button.d.ts +13 -4
- package/lib/button/src/Button.js +11 -7
- package/lib/button/src/styles/index.cssr.js +1 -0
- package/lib/button-group/index.d.ts +1 -1
- package/lib/button-group/index.js +2 -1
- package/lib/button-group/src/ButtonGroup.d.ts +1 -1
- package/lib/button-group/src/ButtonGroup.js +5 -4
- package/lib/calendar/index.d.ts +1 -1
- package/lib/calendar/index.js +2 -1
- package/lib/calendar/src/Calendar.d.ts +1 -1
- package/lib/calendar/src/Calendar.js +3 -2
- package/lib/card/index.d.ts +1 -1
- package/lib/card/index.js +2 -1
- package/lib/card/src/Card.d.ts +2 -2
- package/lib/card/src/Card.js +5 -5
- package/lib/carousel/index.d.ts +1 -1
- package/lib/carousel/index.js +2 -1
- package/lib/carousel/src/Carousel.d.ts +1 -1
- package/lib/carousel/src/Carousel.js +3 -2
- package/lib/carousel/src/styles/index.cssr.js +1 -0
- package/lib/cascader/index.d.ts +1 -1
- package/lib/cascader/index.js +2 -1
- package/lib/cascader/src/Cascader.d.ts +1 -1
- package/lib/cascader/src/Cascader.js +3 -2
- package/lib/cascader/src/utils.d.ts +1 -4
- package/lib/cascader/src/utils.js +18 -29
- package/lib/checkbox/index.d.ts +2 -2
- package/lib/checkbox/index.js +3 -1
- package/lib/checkbox/src/Checkbox.d.ts +1 -1
- package/lib/checkbox/src/Checkbox.js +5 -4
- package/lib/checkbox/src/CheckboxGroup.d.ts +1 -1
- package/lib/checkbox/src/CheckboxGroup.js +3 -3
- package/lib/checkbox/src/styles/index.cssr.js +2 -0
- package/lib/code/index.d.ts +1 -1
- package/lib/code/index.js +2 -1
- package/lib/code/src/Code.d.ts +1 -1
- package/lib/code/src/Code.js +3 -2
- package/lib/collapse/index.d.ts +2 -2
- package/lib/collapse/index.js +3 -1
- package/lib/collapse/src/Collapse.d.ts +1 -1
- package/lib/collapse/src/Collapse.js +5 -5
- package/lib/collapse/src/CollapseItem.d.ts +1 -1
- package/lib/collapse/src/CollapseItem.js +5 -4
- package/lib/collapse-transition/index.d.ts +1 -1
- package/lib/collapse-transition/index.js +2 -1
- package/lib/collapse-transition/src/CollapseTransition.d.ts +2 -2
- package/lib/collapse-transition/src/CollapseTransition.js +5 -4
- package/lib/color-picker/index.d.ts +1 -1
- package/lib/color-picker/index.js +2 -1
- package/lib/color-picker/src/ColorPicker.d.ts +2 -2
- package/lib/color-picker/src/ColorPicker.js +3 -3
- package/lib/countdown/index.d.ts +2 -2
- package/lib/countdown/index.js +2 -1
- package/lib/countdown/src/Countdown.d.ts +9 -2
- package/lib/countdown/src/Countdown.js +44 -27
- package/lib/data-table/index.d.ts +1 -1
- package/lib/data-table/index.js +2 -1
- package/lib/data-table/src/TableParts/Body.d.ts +4 -0
- package/lib/data-table/src/TableParts/Body.js +50 -34
- package/lib/data-table/src/TableParts/BodyRadio.d.ts +30 -0
- package/lib/data-table/src/TableParts/BodyRadio.js +32 -0
- package/lib/data-table/src/TableParts/Header.js +2 -2
- package/lib/data-table/src/interface.d.ts +2 -1
- package/lib/data-table/src/use-check.d.ts +1 -1
- package/lib/data-table/src/use-check.js +15 -3
- package/lib/date-picker/index.d.ts +1 -1
- package/lib/date-picker/index.js +2 -1
- package/lib/date-picker/src/DatePicker.d.ts +1 -1
- package/lib/date-picker/src/DatePicker.js +21 -11
- package/lib/date-picker/src/panel/daterange.js +1 -1
- package/lib/date-picker/src/panel/datetimerange.js +1 -1
- package/lib/date-picker/src/panel/month.js +1 -1
- package/lib/date-picker/src/panel/monthrange.js +1 -1
- package/lib/date-picker/src/styles/index.cssr.js +4 -0
- package/lib/descriptions/index.d.ts +2 -2
- package/lib/descriptions/index.js +3 -1
- package/lib/descriptions/src/Descriptions.d.ts +2 -2
- package/lib/descriptions/src/Descriptions.js +3 -2
- package/lib/descriptions/src/DescriptionsItem.d.ts +2 -2
- package/lib/descriptions/src/DescriptionsItem.js +3 -2
- package/lib/dialog/index.d.ts +2 -1
- package/lib/dialog/index.js +4 -1
- package/lib/dialog/src/DialogProvider.d.ts +1 -1
- package/lib/dialog/src/DialogProvider.js +3 -3
- package/lib/divider/index.d.ts +1 -1
- package/lib/divider/index.js +2 -1
- package/lib/divider/src/Divider.d.ts +1 -1
- package/lib/divider/src/Divider.js +3 -2
- package/lib/drawer/index.d.ts +2 -2
- package/lib/drawer/index.js +3 -1
- package/lib/drawer/src/Drawer.d.ts +60 -27
- package/lib/drawer/src/Drawer.js +39 -17
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +9 -0
- package/lib/drawer/src/DrawerBodyWrapper.js +96 -1
- package/lib/drawer/src/DrawerContent.d.ts +2 -1
- package/lib/drawer/src/DrawerContent.js +3 -2
- package/lib/drawer/src/interface.d.ts +2 -0
- package/lib/drawer/src/styles/index.cssr.js +42 -5
- package/lib/drawer/styles/light.d.ts +2 -0
- package/lib/drawer/styles/light.js +3 -2
- package/lib/dropdown/index.d.ts +2 -2
- package/lib/dropdown/index.js +2 -1
- package/lib/dropdown/src/Dropdown.d.ts +10 -2
- package/lib/dropdown/src/Dropdown.js +17 -5
- package/lib/dropdown/src/DropdownMenu.d.ts +3 -0
- package/lib/dropdown/src/DropdownMenu.js +23 -15
- package/lib/dropdown/src/DropdownOption.d.ts +5 -0
- package/lib/dropdown/src/DropdownOption.js +32 -10
- package/lib/dropdown/src/interface.d.ts +2 -1
- package/lib/dropdown/src/styles/index.cssr.js +16 -10
- package/lib/dynamic-input/index.d.ts +1 -1
- package/lib/dynamic-input/index.js +2 -1
- package/lib/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/lib/dynamic-input/src/DynamicInput.js +5 -4
- package/lib/dynamic-tags/index.d.ts +1 -1
- package/lib/dynamic-tags/index.js +2 -1
- package/lib/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/lib/dynamic-tags/src/DynamicTags.js +3 -2
- package/lib/element/index.d.ts +1 -1
- package/lib/element/index.js +2 -1
- package/lib/element/src/Element.d.ts +1 -1
- package/lib/element/src/Element.js +3 -2
- package/lib/ellipsis/index.d.ts +1 -1
- package/lib/ellipsis/index.js +2 -1
- package/lib/ellipsis/src/Ellipsis.d.ts +1 -1
- package/lib/ellipsis/src/Ellipsis.js +3 -2
- package/lib/empty/index.d.ts +1 -1
- package/lib/empty/index.js +2 -1
- package/lib/empty/src/Empty.d.ts +1 -1
- package/lib/empty/src/Empty.js +3 -2
- package/lib/form/index.d.ts +3 -3
- package/lib/form/index.js +5 -1
- package/lib/form/src/Form.d.ts +1 -1
- package/lib/form/src/Form.js +3 -2
- package/lib/form/src/FormItemRow.d.ts +1 -1
- package/lib/form/src/FormItemRow.js +3 -2
- package/lib/form/src/styles/form-item.cssr.js +2 -0
- package/lib/gradient-text/index.d.ts +1 -1
- package/lib/gradient-text/index.js +2 -1
- package/lib/gradient-text/src/GradientText.d.ts +1 -1
- package/lib/gradient-text/src/GradientText.js +3 -2
- package/lib/grid/index.d.ts +3 -3
- package/lib/grid/index.js +4 -1
- package/lib/grid/src/Grid.d.ts +1 -1
- package/lib/grid/src/Grid.js +3 -2
- package/lib/icon/index.d.ts +1 -1
- package/lib/icon/index.js +2 -1
- package/lib/icon/src/Icon.d.ts +1 -2
- package/lib/icon/src/Icon.js +3 -3
- package/lib/icon-wrapper/index.d.ts +1 -1
- package/lib/icon-wrapper/index.js +2 -1
- package/lib/icon-wrapper/src/IconWrapper.d.ts +1 -2
- package/lib/icon-wrapper/src/IconWrapper.js +3 -3
- package/lib/image/index.d.ts +2 -2
- package/lib/image/index.js +3 -1
- package/lib/image/src/Image.d.ts +1 -1
- package/lib/image/src/Image.js +19 -11
- package/lib/image/src/ImageGroup.d.ts +1 -1
- package/lib/image/src/ImageGroup.js +3 -3
- package/lib/image/src/styles/index.cssr.js +1 -0
- package/lib/input/index.d.ts +3 -3
- package/lib/input/index.js +4 -1
- package/lib/input/src/Input.d.ts +1 -1
- package/lib/input/src/Input.js +5 -4
- package/lib/input/src/InputGroup.d.ts +1 -1
- package/lib/input/src/InputGroup.js +3 -2
- package/lib/input/src/InputGroupLabel.d.ts +1 -1
- package/lib/input/src/InputGroupLabel.js +3 -2
- package/lib/input/src/styles/input-group-label.cssr.js +1 -0
- package/lib/input/src/styles/input.cssr.js +3 -0
- package/lib/input-number/index.d.ts +1 -1
- package/lib/input-number/index.js +2 -1
- package/lib/input-number/src/InputNumber.d.ts +1 -1
- package/lib/input-number/src/InputNumber.js +5 -4
- package/lib/layout/index.d.ts +4 -4
- package/lib/layout/index.js +6 -1
- package/lib/layout/src/Layout.d.ts +1 -1
- package/lib/layout/src/Layout.js +3 -3
- package/lib/layout/src/LayoutFooter.d.ts +1 -1
- package/lib/layout/src/LayoutFooter.js +3 -2
- package/lib/layout/src/LayoutHeader.d.ts +1 -1
- package/lib/layout/src/LayoutHeader.js +3 -2
- package/lib/layout/src/LayoutSider.d.ts +1 -1
- package/lib/layout/src/LayoutSider.js +3 -2
- package/lib/legacy-grid/index.d.ts +2 -2
- package/lib/legacy-grid/index.js +3 -1
- package/lib/list/index.d.ts +1 -1
- package/lib/list/index.js +2 -1
- package/lib/list/src/List.d.ts +1 -1
- package/lib/list/src/List.js +3 -3
- package/lib/loading-bar/index.d.ts +1 -1
- package/lib/loading-bar/index.js +2 -1
- package/lib/loading-bar/src/LoadingBarProvider.d.ts +3 -3
- package/lib/loading-bar/src/LoadingBarProvider.js +3 -2
- package/lib/locales/common/ukUA.js +14 -18
- package/lib/log/index.d.ts +1 -1
- package/lib/log/index.js +2 -1
- package/lib/log/src/Log.d.ts +1 -1
- package/lib/log/src/Log.js +3 -2
- package/lib/mention/index.d.ts +1 -1
- package/lib/mention/index.js +2 -1
- package/lib/mention/src/Mention.d.ts +1 -1
- package/lib/mention/src/Mention.js +3 -2
- package/lib/menu/index.d.ts +1 -1
- package/lib/menu/index.js +2 -1
- package/lib/menu/src/Menu.d.ts +1 -1
- package/lib/menu/src/Menu.js +3 -2
- package/lib/message/index.d.ts +1 -1
- package/lib/message/index.js +2 -1
- package/lib/message/src/MessageProvider.d.ts +1 -1
- package/lib/message/src/MessageProvider.js +3 -2
- package/lib/modal/index.d.ts +1 -1
- package/lib/modal/index.js +2 -1
- package/lib/modal/src/Modal.d.ts +1 -1
- package/lib/modal/src/Modal.js +3 -2
- package/lib/modal/src/presetProps.d.ts +1 -1
- package/lib/notification/index.d.ts +1 -1
- package/lib/notification/index.js +2 -1
- package/lib/notification/src/Notification.d.ts +1 -0
- package/lib/notification/src/Notification.js +6 -2
- package/lib/notification/src/NotificationContainer.js +1 -1
- package/lib/notification/src/NotificationProvider.d.ts +1 -1
- package/lib/notification/src/NotificationProvider.js +3 -3
- package/lib/notification/src/styles/index.cssr.js +1 -3
- package/lib/notification/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/notification/src/styles/rtl.cssr.js +29 -0
- package/lib/notification/styles/index.d.ts +1 -0
- package/lib/notification/styles/index.js +3 -1
- package/lib/notification/styles/rtl.d.ts +2 -0
- package/lib/notification/styles/rtl.js +11 -0
- package/lib/number-animation/index.d.ts +1 -1
- package/lib/number-animation/index.js +2 -1
- package/lib/number-animation/src/NumberAnimation.d.ts +5 -1
- package/lib/number-animation/src/NumberAnimation.js +7 -3
- package/lib/page-header/index.d.ts +1 -1
- package/lib/page-header/index.js +2 -1
- package/lib/page-header/src/PageHeader.d.ts +1 -1
- package/lib/page-header/src/PageHeader.js +5 -4
- package/lib/pagination/index.d.ts +1 -1
- package/lib/pagination/index.js +2 -1
- package/lib/pagination/src/Pagination.d.ts +1 -1
- package/lib/pagination/src/Pagination.js +5 -4
- package/lib/pagination/src/styles/index.cssr.js +1 -0
- package/lib/popconfirm/index.d.ts +1 -1
- package/lib/popconfirm/index.js +2 -1
- package/lib/popconfirm/src/Popconfirm.d.ts +4 -1
- package/lib/popconfirm/src/Popconfirm.js +3 -2
- package/lib/popover/index.d.ts +1 -1
- package/lib/popover/index.js +2 -1
- package/lib/popover/src/Popover.d.ts +8 -1
- package/lib/popover/src/Popover.js +6 -4
- package/lib/popover/src/PopoverBody.d.ts +6 -0
- package/lib/popover/src/PopoverBody.js +23 -14
- package/lib/popover/src/styles/index.cssr.js +19 -15
- package/lib/popselect/index.d.ts +1 -1
- package/lib/popselect/index.js +2 -1
- package/lib/popselect/src/Popselect.d.ts +4 -1
- package/lib/popselect/src/Popselect.js +3 -2
- package/lib/progress/index.d.ts +1 -1
- package/lib/progress/index.js +2 -1
- package/lib/progress/src/Progress.d.ts +1 -1
- package/lib/progress/src/Progress.js +3 -2
- package/lib/radio/index.d.ts +3 -3
- package/lib/radio/index.js +4 -1
- package/lib/radio/src/Radio.d.ts +25 -0
- package/lib/radio/src/Radio.js +4 -2
- package/lib/radio/src/RadioButton.d.ts +25 -0
- package/lib/radio/src/RadioButton.js +2 -0
- package/lib/radio/src/RadioGroup.d.ts +1 -1
- package/lib/radio/src/RadioGroup.js +5 -4
- package/lib/radio/src/styles/radio-group.cssr.js +2 -0
- package/lib/radio/src/styles/radio.cssr.js +1 -0
- package/lib/rate/index.d.ts +1 -1
- package/lib/rate/index.js +2 -1
- package/lib/rate/src/Rate.d.ts +1 -1
- package/lib/rate/src/Rate.js +3 -2
- package/lib/result/index.d.ts +1 -1
- package/lib/result/index.js +2 -1
- package/lib/result/src/Result.d.ts +1 -1
- package/lib/result/src/Result.js +3 -2
- package/lib/scrollbar/index.d.ts +1 -1
- package/lib/scrollbar/index.js +2 -1
- package/lib/scrollbar/src/Scrollbar.d.ts +1 -1
- package/lib/scrollbar/src/Scrollbar.js +3 -2
- package/lib/select/index.d.ts +1 -1
- package/lib/select/index.js +2 -1
- package/lib/select/src/Select.d.ts +1 -1
- package/lib/select/src/Select.js +3 -2
- package/lib/skeleton/index.d.ts +1 -1
- package/lib/skeleton/index.js +2 -1
- package/lib/skeleton/src/Skeleton.d.ts +1 -1
- package/lib/skeleton/src/Skeleton.js +3 -2
- package/lib/slider/index.d.ts +1 -1
- package/lib/slider/index.js +2 -1
- package/lib/slider/src/Slider.d.ts +1 -1
- package/lib/slider/src/Slider.js +3 -2
- package/lib/slider/src/styles/index.cssr.js +1 -0
- package/lib/space/index.d.ts +1 -1
- package/lib/space/index.js +2 -1
- package/lib/space/src/Space.d.ts +1 -1
- package/lib/space/src/Space.js +5 -7
- package/lib/spin/index.d.ts +1 -1
- package/lib/spin/index.js +2 -1
- package/lib/spin/src/Spin.d.ts +1 -1
- package/lib/spin/src/Spin.js +3 -2
- package/lib/spin/src/styles/index.cssr.js +1 -0
- package/lib/statistic/index.d.ts +1 -1
- package/lib/statistic/index.js +2 -1
- package/lib/statistic/src/Statistic.d.ts +1 -1
- package/lib/statistic/src/Statistic.js +3 -2
- package/lib/steps/index.d.ts +2 -2
- package/lib/steps/index.js +3 -1
- package/lib/steps/src/Step.d.ts +1 -1
- package/lib/steps/src/Step.js +3 -2
- package/lib/steps/src/Steps.d.ts +1 -1
- package/lib/steps/src/Steps.js +3 -3
- package/lib/switch/index.d.ts +1 -1
- package/lib/switch/index.js +2 -1
- package/lib/switch/src/Switch.d.ts +1 -1
- package/lib/switch/src/Switch.js +3 -2
- package/lib/switch/src/styles/index.cssr.js +1 -0
- package/lib/table/index.d.ts +1 -1
- package/lib/table/index.js +2 -1
- package/lib/table/src/Table.d.ts +1 -1
- package/lib/table/src/Table.js +5 -4
- package/lib/tabs/index.d.ts +3 -3
- package/lib/tabs/index.js +4 -1
- package/lib/tabs/src/Tab.d.ts +2 -2
- package/lib/tabs/src/Tab.js +3 -2
- package/lib/tabs/src/Tabs.d.ts +1 -1
- package/lib/tabs/src/Tabs.js +3 -2
- package/lib/tag/index.d.ts +1 -1
- package/lib/tag/index.js +2 -1
- package/lib/tag/src/Tag.d.ts +1 -1
- package/lib/tag/src/Tag.js +5 -5
- package/lib/thing/index.d.ts +1 -1
- package/lib/thing/index.js +2 -1
- package/lib/thing/src/Thing.d.ts +1 -1
- package/lib/thing/src/Thing.js +3 -2
- package/lib/time/index.d.ts +1 -1
- package/lib/time/index.js +2 -1
- package/lib/time/src/Time.d.ts +1 -1
- package/lib/time/src/Time.js +3 -2
- package/lib/time-picker/index.d.ts +1 -1
- package/lib/time-picker/index.js +2 -1
- package/lib/time-picker/src/TimePicker.d.ts +1 -1
- package/lib/time-picker/src/TimePicker.js +3 -2
- package/lib/timeline/index.d.ts +2 -2
- package/lib/timeline/index.js +3 -1
- package/lib/timeline/src/Timeline.d.ts +1 -1
- package/lib/timeline/src/Timeline.js +3 -3
- package/lib/timeline/src/TimelineItem.d.ts +1 -1
- package/lib/timeline/src/TimelineItem.js +3 -2
- package/lib/tooltip/index.d.ts +1 -1
- package/lib/tooltip/index.js +2 -1
- package/lib/tooltip/src/Tooltip.d.ts +4 -1
- package/lib/tooltip/src/Tooltip.js +3 -2
- package/lib/transfer/index.d.ts +1 -1
- package/lib/transfer/index.js +2 -1
- package/lib/transfer/src/Transfer.d.ts +1 -1
- package/lib/transfer/src/Transfer.js +3 -2
- package/lib/tree/index.d.ts +1 -1
- package/lib/tree/index.js +2 -1
- package/lib/tree/src/Tree.d.ts +19 -2
- package/lib/tree/src/Tree.js +47 -21
- package/lib/tree/src/TreeNode.js +21 -6
- package/lib/tree/src/interface.d.ts +2 -0
- package/lib/tree-select/index.d.ts +1 -1
- package/lib/tree-select/index.js +2 -1
- package/lib/tree-select/src/TreeSelect.d.ts +2 -2
- package/lib/tree-select/src/TreeSelect.js +3 -2
- package/lib/typography/index.d.ts +7 -6
- package/lib/typography/index.js +14 -1
- package/lib/typography/src/a.d.ts +1 -1
- package/lib/typography/src/a.js +3 -2
- package/lib/typography/src/blockquote.d.ts +1 -1
- package/lib/typography/src/blockquote.js +3 -2
- package/lib/typography/src/create-header.d.ts +1 -1
- package/lib/typography/src/create-header.js +3 -2
- package/lib/typography/src/ol.d.ts +1 -1
- package/lib/typography/src/ol.js +3 -2
- package/lib/typography/src/p.d.ts +1 -1
- package/lib/typography/src/p.js +3 -2
- package/lib/typography/src/text.d.ts +1 -1
- package/lib/typography/src/text.js +3 -2
- package/lib/typography/src/ul.d.ts +1 -1
- package/lib/typography/src/ul.js +3 -2
- package/lib/upload/index.d.ts +1 -1
- package/lib/upload/index.js +2 -1
- package/lib/upload/src/Upload.d.ts +1 -1
- package/lib/upload/src/Upload.js +3 -2
- package/lib/upload/src/UploadFile.d.ts +2 -2
- package/lib/upload/src/UploadFile.js +8 -4
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/watermark/index.d.ts +1 -1
- package/lib/watermark/index.js +2 -1
- package/lib/watermark/src/Watermark.d.ts +1 -1
- package/lib/watermark/src/Watermark.js +3 -2
- package/lib/watermark/src/styles/index.cssr.js +4 -1
- package/package.json +2 -2
- package/web-types.json +140 -2
package/dist/index.js
CHANGED
|
@@ -849,7 +849,9 @@
|
|
|
849
849
|
}
|
|
850
850
|
|
|
851
851
|
function isNodeVShowFalse(vNode) {
|
|
852
|
-
|
|
852
|
+
var _vNode$dirs;
|
|
853
|
+
|
|
854
|
+
const showDir = (_vNode$dirs = vNode.dirs) === null || _vNode$dirs === void 0 ? void 0 : _vNode$dirs.find(_ref => {
|
|
853
855
|
let {
|
|
854
856
|
dir
|
|
855
857
|
} = _ref;
|
|
@@ -1744,9 +1746,11 @@
|
|
|
1744
1746
|
}
|
|
1745
1747
|
|
|
1746
1748
|
function useInjectionInstanceCollection(injectionName, collectionKey, registerKeyRef) {
|
|
1749
|
+
var _getCurrentInstance;
|
|
1750
|
+
|
|
1747
1751
|
const injection = vue.inject(injectionName, null);
|
|
1748
1752
|
if (injection === null) return;
|
|
1749
|
-
const vm = vue.getCurrentInstance()
|
|
1753
|
+
const vm = (_getCurrentInstance = vue.getCurrentInstance()) === null || _getCurrentInstance === void 0 ? void 0 : _getCurrentInstance.proxy;
|
|
1750
1754
|
vue.watch(registerKeyRef, registerInstance);
|
|
1751
1755
|
registerInstance(registerKeyRef.value);
|
|
1752
1756
|
vue.onBeforeUnmount(() => {
|
|
@@ -2801,13 +2805,13 @@
|
|
|
2801
2805
|
return to;
|
|
2802
2806
|
}
|
|
2803
2807
|
|
|
2804
|
-
if (modal
|
|
2808
|
+
if (modal !== null && modal !== void 0 && modal.value) {
|
|
2805
2809
|
return modal.value.$el ?? modal.value;
|
|
2806
2810
|
}
|
|
2807
2811
|
|
|
2808
|
-
if (drawer
|
|
2809
|
-
if (popover
|
|
2810
|
-
if (selectMenu
|
|
2812
|
+
if (drawer !== null && drawer !== void 0 && drawer.value) return drawer.value;
|
|
2813
|
+
if (popover !== null && popover !== void 0 && popover.value) return popover.value;
|
|
2814
|
+
if (selectMenu !== null && selectMenu !== void 0 && selectMenu.value) return selectMenu.value;
|
|
2811
2815
|
return to ?? (fullscreenElementRef.value || "body");
|
|
2812
2816
|
});
|
|
2813
2817
|
}
|
|
@@ -2824,9 +2828,11 @@
|
|
|
2824
2828
|
if (!window.CSS) return;
|
|
2825
2829
|
|
|
2826
2830
|
if (!houdiniRegistered) {
|
|
2831
|
+
var _window;
|
|
2832
|
+
|
|
2827
2833
|
houdiniRegistered = true;
|
|
2828
2834
|
|
|
2829
|
-
if ("registerProperty" in window
|
|
2835
|
+
if ("registerProperty" in ((_window = window) === null || _window === void 0 ? void 0 : _window.CSS)) {
|
|
2830
2836
|
try {
|
|
2831
2837
|
;
|
|
2832
2838
|
CSS.registerProperty({
|
|
@@ -4222,6 +4228,7 @@
|
|
|
4222
4228
|
follower.style.setProperty('--v-offset-left', `${Math.round(offsetLeftToStandardPlacement)}px`);
|
|
4223
4229
|
follower.style.setProperty('--v-offset-top', `${Math.round(offsetTopToStandardPlacement)}px`);
|
|
4224
4230
|
follower.style.transform = `translateX(${left}) translateY(${top}) ${transform}`;
|
|
4231
|
+
follower.style.setProperty('--v-transform-origin', properTransformOrigin);
|
|
4225
4232
|
follower.style.transformOrigin = properTransformOrigin;
|
|
4226
4233
|
};
|
|
4227
4234
|
|
|
@@ -5398,10 +5405,20 @@
|
|
|
5398
5405
|
(_a = props.onWheel) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
5399
5406
|
|
|
5400
5407
|
if (mayUseWheel) {
|
|
5401
|
-
e.preventDefault();
|
|
5402
5408
|
const listEl = listElRef.value;
|
|
5403
5409
|
|
|
5404
5410
|
if (listEl != null) {
|
|
5411
|
+
if (e.deltaX === 0) {
|
|
5412
|
+
if (listEl.scrollTop === 0 && e.deltaY <= 0) {
|
|
5413
|
+
return;
|
|
5414
|
+
}
|
|
5415
|
+
|
|
5416
|
+
if (listEl.scrollTop + listEl.offsetHeight >= listEl.scrollHeight && e.deltaY >= 0) {
|
|
5417
|
+
return;
|
|
5418
|
+
}
|
|
5419
|
+
}
|
|
5420
|
+
|
|
5421
|
+
e.preventDefault();
|
|
5405
5422
|
listEl.scrollTop += e.deltaY / ensureWheelScale();
|
|
5406
5423
|
listEl.scrollLeft += e.deltaX / ensureWheelScale();
|
|
5407
5424
|
syncViewport();
|
|
@@ -6147,7 +6164,9 @@
|
|
|
6147
6164
|
});
|
|
6148
6165
|
});
|
|
6149
6166
|
vue.onBeforeUnmount(() => {
|
|
6150
|
-
|
|
6167
|
+
var _watchStopHandle;
|
|
6168
|
+
|
|
6169
|
+
(_watchStopHandle = watchStopHandle) === null || _watchStopHandle === void 0 ? void 0 : _watchStopHandle();
|
|
6151
6170
|
|
|
6152
6171
|
if (activated) {
|
|
6153
6172
|
lockCount--;
|
|
@@ -6272,7 +6291,7 @@
|
|
|
6272
6291
|
status
|
|
6273
6292
|
} = props;
|
|
6274
6293
|
if (status) return status;
|
|
6275
|
-
return NFormItem
|
|
6294
|
+
return NFormItem === null || NFormItem === void 0 ? void 0 : NFormItem.mergedValidationStatus.value;
|
|
6276
6295
|
});
|
|
6277
6296
|
vue.onBeforeUnmount(() => {
|
|
6278
6297
|
if (NFormItem) {
|
|
@@ -15851,7 +15870,7 @@
|
|
|
15851
15870
|
|
|
15852
15871
|
if (style) {
|
|
15853
15872
|
const mountStyle = () => {
|
|
15854
|
-
const clsPrefix = clsPrefixRef
|
|
15873
|
+
const clsPrefix = clsPrefixRef === null || clsPrefixRef === void 0 ? void 0 : clsPrefixRef.value;
|
|
15855
15874
|
style.mount({
|
|
15856
15875
|
id: clsPrefix === void 0 ? mountId : clsPrefix + mountId,
|
|
15857
15876
|
head: true,
|
|
@@ -15862,7 +15881,7 @@
|
|
|
15862
15881
|
ssr: ssrAdapter
|
|
15863
15882
|
});
|
|
15864
15883
|
|
|
15865
|
-
if (!NConfigProvider
|
|
15884
|
+
if (!(NConfigProvider !== null && NConfigProvider !== void 0 && NConfigProvider.preflightStyleDisabled)) {
|
|
15866
15885
|
globalStyle.mount({
|
|
15867
15886
|
id: "n-global",
|
|
15868
15887
|
head: true,
|
|
@@ -15880,6 +15899,8 @@
|
|
|
15880
15899
|
}
|
|
15881
15900
|
|
|
15882
15901
|
const mergedThemeRef = vue.computed(() => {
|
|
15902
|
+
var _ref;
|
|
15903
|
+
|
|
15883
15904
|
const {
|
|
15884
15905
|
theme: {
|
|
15885
15906
|
common: selfCommon,
|
|
@@ -15900,17 +15921,17 @@
|
|
|
15900
15921
|
self: globalSelf = void 0,
|
|
15901
15922
|
peers: globalPeers = {}
|
|
15902
15923
|
} = {}
|
|
15903
|
-
} = NConfigProvider
|
|
15924
|
+
} = (NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedThemeRef.value) || {};
|
|
15904
15925
|
const {
|
|
15905
15926
|
common: globalCommonOverrides = void 0,
|
|
15906
15927
|
[resolveId]: globalSelfOverrides = {}
|
|
15907
|
-
} = NConfigProvider
|
|
15928
|
+
} = (NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedThemeOverridesRef.value) || {};
|
|
15908
15929
|
const {
|
|
15909
15930
|
common: globalSelfCommonOverrides,
|
|
15910
15931
|
peers: globalPeersOverrides = {}
|
|
15911
15932
|
} = globalSelfOverrides;
|
|
15912
15933
|
const mergedCommon = lodash.exports.merge({}, selfCommon || globalSelfCommon || globalCommon || defaultTheme.common, globalCommonOverrides, globalSelfCommonOverrides, selfCommonOverrides);
|
|
15913
|
-
const mergedSelf = lodash.exports.merge((self || globalSelf || defaultTheme.self)
|
|
15934
|
+
const mergedSelf = lodash.exports.merge((_ref = self || globalSelf || defaultTheme.self) === null || _ref === void 0 ? void 0 : _ref(mergedCommon), builtinOverrides, globalSelfOverrides, selfOverrides);
|
|
15914
15935
|
return {
|
|
15915
15936
|
common: mergedCommon,
|
|
15916
15937
|
self: mergedSelf,
|
|
@@ -15935,22 +15956,22 @@
|
|
|
15935
15956
|
};
|
|
15936
15957
|
const NConfigProvider = vue.inject(configProviderInjectionKey, null);
|
|
15937
15958
|
return {
|
|
15938
|
-
inlineThemeDisabled: NConfigProvider
|
|
15939
|
-
mergedRtlRef: NConfigProvider
|
|
15940
|
-
mergedComponentPropsRef: NConfigProvider
|
|
15941
|
-
mergedBreakpointsRef: NConfigProvider
|
|
15959
|
+
inlineThemeDisabled: NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.inlineThemeDisabled,
|
|
15960
|
+
mergedRtlRef: NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedRtlRef,
|
|
15961
|
+
mergedComponentPropsRef: NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedComponentPropsRef,
|
|
15962
|
+
mergedBreakpointsRef: NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedBreakpointsRef,
|
|
15942
15963
|
mergedBorderedRef: vue.computed(() => {
|
|
15943
15964
|
const {
|
|
15944
15965
|
bordered
|
|
15945
15966
|
} = props;
|
|
15946
15967
|
if (bordered !== void 0) return bordered;
|
|
15947
|
-
return NConfigProvider
|
|
15968
|
+
return (NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedBorderedRef.value) ?? options.defaultBordered ?? true;
|
|
15948
15969
|
}),
|
|
15949
15970
|
mergedClsPrefixRef: vue.computed(() => {
|
|
15950
|
-
const clsPrefix = NConfigProvider
|
|
15971
|
+
const clsPrefix = NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedClsPrefixRef.value;
|
|
15951
15972
|
return clsPrefix || defaultClsPrefix;
|
|
15952
15973
|
}),
|
|
15953
|
-
namespaceRef: vue.computed(() => NConfigProvider
|
|
15974
|
+
namespaceRef: vue.computed(() => NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedNamespaceRef.value)
|
|
15954
15975
|
};
|
|
15955
15976
|
}
|
|
15956
15977
|
|
|
@@ -16442,22 +16463,22 @@
|
|
|
16442
16463
|
selectDate: "\u041E\u0431\u0440\u0430\u0442\u0438 \u0434\u0430\u0442\u0443",
|
|
16443
16464
|
datePlaceholder: "\u041E\u0431\u0440\u0430\u0442\u0438 \u0434\u0430\u0442\u0443",
|
|
16444
16465
|
datetimePlaceholder: "\u041E\u0431\u0440\u0430\u0442\u0438 \u0434\u0430\u0442\u0443 \u0456 \u0447\u0430\u0441",
|
|
16445
|
-
monthPlaceholder: "\
|
|
16446
|
-
yearPlaceholder: "
|
|
16447
|
-
quarterPlaceholder: "
|
|
16466
|
+
monthPlaceholder: "\u041E\u0431\u0435\u0440\u0456\u0442\u044C \u043C\u0456\u0441\u044F\u0446\u044C",
|
|
16467
|
+
yearPlaceholder: "\u041E\u0431\u0435\u0440\u0456\u0442\u044C \u0440\u0456\u043A",
|
|
16468
|
+
quarterPlaceholder: "\u041E\u0431\u0435\u0440\u0456\u0442\u044C \u043A\u0432\u0430\u0440\u0442\u0430\u043B",
|
|
16448
16469
|
startDatePlaceholder: "\u0414\u0430\u0442\u0430 \u043F\u043E\u0447\u0430\u0442\u043A\u0443",
|
|
16449
16470
|
endDatePlaceholder: "\u0414\u0430\u0442\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u044F",
|
|
16450
16471
|
startDatetimePlaceholder: "\u0414\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441 \u043F\u043E\u0447\u0430\u0442\u043A\u0443",
|
|
16451
16472
|
endDatetimePlaceholder: "\u0414\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u044F",
|
|
16452
|
-
startMonthPlaceholder: "
|
|
16453
|
-
endMonthPlaceholder: "
|
|
16473
|
+
startMonthPlaceholder: "\u041F\u0435\u0440\u0448\u0438\u0439 \u043C\u0456\u0441\u044F\u0446\u044C",
|
|
16474
|
+
endMonthPlaceholder: "\u041E\u0441\u0442\u0430\u043D\u043D\u0456\u0439 \u043C\u0456\u0441\u044F\u0446\u044C",
|
|
16454
16475
|
monthBeforeYear: true,
|
|
16455
16476
|
firstDayOfWeek: 0,
|
|
16456
16477
|
today: "\u0421\u044C\u043E\u0433\u043E\u0434\u043D\u0456"
|
|
16457
16478
|
},
|
|
16458
16479
|
DataTable: {
|
|
16459
16480
|
checkTableAll: "\u041E\u0431\u0440\u0430\u0442\u0438 \u0432\u0441\u0435 \u0432 \u0442\u0430\u0431\u043B\u0438\u0446\u0456",
|
|
16460
|
-
uncheckTableAll: "\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438 \u0432\u0438\u0431\
|
|
16481
|
+
uncheckTableAll: "\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438 \u0432\u0438\u0431\u0456\u0440 \u0443\u0441\u044C\u043E\u0433\u043E \u0432 \u0442\u0430\u0431\u043B\u0438\u0446\u0456",
|
|
16461
16482
|
confirm: "\u041F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0438",
|
|
16462
16483
|
clear: "\u0421\u0442\u0435\u0440\u0442\u0438"
|
|
16463
16484
|
},
|
|
@@ -16507,14 +16528,14 @@
|
|
|
16507
16528
|
restore: "\u0421\u043A\u0438\u043D\u0443\u0442\u0438"
|
|
16508
16529
|
},
|
|
16509
16530
|
Image: {
|
|
16510
|
-
tipPrevious: "
|
|
16511
|
-
tipNext: "
|
|
16512
|
-
tipCounterclockwise: "
|
|
16513
|
-
tipClockwise: "
|
|
16514
|
-
tipZoomOut: "
|
|
16515
|
-
tipZoomIn: "
|
|
16516
|
-
tipClose: "
|
|
16517
|
-
tipOriginalSize: "
|
|
16531
|
+
tipPrevious: "\u041F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u0454 \u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u043D\u044F (\u2190)",
|
|
16532
|
+
tipNext: "\u041D\u0430\u0441\u0442\u0443\u043F\u043D\u0435 \u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u043D\u044F (\u2192)",
|
|
16533
|
+
tipCounterclockwise: "\u041F\u0440\u043E\u0442\u0438 \u0433\u043E\u0434\u0438\u043D\u043D\u0438\u043A\u043E\u0432\u043E\u0457 \u0441\u0442\u0440\u0456\u043B\u043A\u0438",
|
|
16534
|
+
tipClockwise: "\u0417\u0430 \u0433\u043E\u0434\u0438\u043D\u043D\u0438\u043A\u043E\u0432\u043E\u044E \u0441\u0442\u0440\u0456\u043B\u043A\u043E\u044E",
|
|
16535
|
+
tipZoomOut: "\u0412\u0456\u0434\u0434\u0430\u043B\u0438\u0442\u0438",
|
|
16536
|
+
tipZoomIn: "\u041D\u0430\u0431\u043B\u0438\u0437\u0438\u0442\u0438",
|
|
16537
|
+
tipClose: "\u0417\u0430\u043A\u0440\u0438\u0442\u0438 (Esc)",
|
|
16538
|
+
tipOriginalSize: "\u041C\u0430\u0441\u0448\u0442\u0430\u0431\u0443\u0432\u0430\u0442\u0438 \u0434\u043E \u043E\u0440\u0438\u0433\u0456\u043D\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0440\u043E\u0437\u043C\u0456\u0440\u0443"
|
|
16518
16539
|
}
|
|
16519
16540
|
};
|
|
16520
16541
|
var ukUA$1 = ukUA;
|
|
@@ -27358,10 +27379,12 @@
|
|
|
27358
27379
|
mergedDateLocaleRef
|
|
27359
27380
|
} = vue.inject(configProviderInjectionKey, null) || {};
|
|
27360
27381
|
const localeRef = vue.computed(() => {
|
|
27361
|
-
|
|
27382
|
+
var _mergedLocaleRef$valu;
|
|
27383
|
+
|
|
27384
|
+
return (mergedLocaleRef === null || mergedLocaleRef === void 0 ? void 0 : (_mergedLocaleRef$valu = mergedLocaleRef.value) === null || _mergedLocaleRef$valu === void 0 ? void 0 : _mergedLocaleRef$valu[ns]) ?? enUS$2[ns];
|
|
27362
27385
|
});
|
|
27363
27386
|
const dateLocaleRef = vue.computed(() => {
|
|
27364
|
-
return mergedDateLocaleRef
|
|
27387
|
+
return (mergedDateLocaleRef === null || mergedDateLocaleRef === void 0 ? void 0 : mergedDateLocaleRef.value) ?? dateEnUS;
|
|
27365
27388
|
});
|
|
27366
27389
|
return {
|
|
27367
27390
|
dateLocaleRef,
|
|
@@ -27379,7 +27402,7 @@
|
|
|
27379
27402
|
const NConfigProvider = vue.inject(configProviderInjectionKey, null);
|
|
27380
27403
|
|
|
27381
27404
|
const mountStyle = () => {
|
|
27382
|
-
const clsPrefix = clsPrefixRef
|
|
27405
|
+
const clsPrefix = clsPrefixRef === null || clsPrefixRef === void 0 ? void 0 : clsPrefixRef.value;
|
|
27383
27406
|
style.mount({
|
|
27384
27407
|
id: clsPrefix === void 0 ? mountId : clsPrefix + mountId,
|
|
27385
27408
|
head: true,
|
|
@@ -27390,7 +27413,7 @@
|
|
|
27390
27413
|
ssr: ssrAdapter
|
|
27391
27414
|
});
|
|
27392
27415
|
|
|
27393
|
-
if (!NConfigProvider
|
|
27416
|
+
if (!(NConfigProvider !== null && NConfigProvider !== void 0 && NConfigProvider.preflightStyleDisabled)) {
|
|
27394
27417
|
globalStyle.mount({
|
|
27395
27418
|
id: "n-global",
|
|
27396
27419
|
head: true,
|
|
@@ -27412,7 +27435,7 @@
|
|
|
27412
27435
|
|
|
27413
27436
|
{
|
|
27414
27437
|
const warnHljs = () => {
|
|
27415
|
-
if (!props.hljs && !NConfigProvider
|
|
27438
|
+
if (!props.hljs && !(NConfigProvider !== null && NConfigProvider !== void 0 && NConfigProvider.mergedHljsRef.value)) {
|
|
27416
27439
|
warn$2("code", "hljs is not set.");
|
|
27417
27440
|
}
|
|
27418
27441
|
};
|
|
@@ -27429,13 +27452,15 @@
|
|
|
27429
27452
|
}
|
|
27430
27453
|
|
|
27431
27454
|
return vue.computed(() => {
|
|
27432
|
-
return props.hljs || NConfigProvider
|
|
27455
|
+
return props.hljs || (NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedHljsRef.value);
|
|
27433
27456
|
});
|
|
27434
27457
|
}
|
|
27435
27458
|
|
|
27436
27459
|
function useThemeClass(componentName, hashRef, cssVarsRef, props) {
|
|
27460
|
+
var _inject;
|
|
27461
|
+
|
|
27437
27462
|
if (!cssVarsRef) throwError("useThemeClass", "cssVarsRef is not passed");
|
|
27438
|
-
const mergedThemeHashRef = vue.inject(configProviderInjectionKey, null)
|
|
27463
|
+
const mergedThemeHashRef = (_inject = vue.inject(configProviderInjectionKey, null)) === null || _inject === void 0 ? void 0 : _inject.mergedThemeHashRef;
|
|
27439
27464
|
const themeClassRef = vue.ref("");
|
|
27440
27465
|
const ssrAdapter = useSsrAdapter();
|
|
27441
27466
|
let renderCallback;
|
|
@@ -27444,7 +27469,7 @@
|
|
|
27444
27469
|
const mountStyle = () => {
|
|
27445
27470
|
let finalThemeHash = hashClassPrefix;
|
|
27446
27471
|
const hashValue = hashRef ? hashRef.value : void 0;
|
|
27447
|
-
const themeHash = mergedThemeHashRef
|
|
27472
|
+
const themeHash = mergedThemeHashRef === null || mergedThemeHashRef === void 0 ? void 0 : mergedThemeHashRef.value;
|
|
27448
27473
|
if (themeHash) finalThemeHash += "-" + themeHash;
|
|
27449
27474
|
if (hashValue) finalThemeHash += "-" + hashValue;
|
|
27450
27475
|
const {
|
|
@@ -27484,7 +27509,9 @@
|
|
|
27484
27509
|
return {
|
|
27485
27510
|
themeClass: themeClassRef,
|
|
27486
27511
|
onRender: () => {
|
|
27487
|
-
|
|
27512
|
+
var _renderCallback;
|
|
27513
|
+
|
|
27514
|
+
(_renderCallback = renderCallback) === null || _renderCallback === void 0 ? void 0 : _renderCallback();
|
|
27488
27515
|
}
|
|
27489
27516
|
};
|
|
27490
27517
|
}
|
|
@@ -28417,6 +28444,8 @@
|
|
|
28417
28444
|
}
|
|
28418
28445
|
|
|
28419
28446
|
function handleAfterEnter(el) {
|
|
28447
|
+
var _props$onAfterEnter;
|
|
28448
|
+
|
|
28420
28449
|
if (props.width) {
|
|
28421
28450
|
el.style.maxWidth = "";
|
|
28422
28451
|
} else {
|
|
@@ -28425,7 +28454,7 @@
|
|
|
28425
28454
|
}
|
|
28426
28455
|
}
|
|
28427
28456
|
|
|
28428
|
-
props.onAfterEnter
|
|
28457
|
+
(_props$onAfterEnter = props.onAfterEnter) === null || _props$onAfterEnter === void 0 ? void 0 : _props$onAfterEnter.call(props);
|
|
28429
28458
|
}
|
|
28430
28459
|
|
|
28431
28460
|
return () => {
|
|
@@ -30232,6 +30261,7 @@
|
|
|
30232
30261
|
position: absolute;
|
|
30233
30262
|
pointer-events: none;
|
|
30234
30263
|
user-select: none;
|
|
30264
|
+
-webkit-user-select: none;
|
|
30235
30265
|
`, [cM("horizontal", `
|
|
30236
30266
|
left: 2px;
|
|
30237
30267
|
right: 2px;
|
|
@@ -30838,7 +30868,11 @@
|
|
|
30838
30868
|
})),
|
|
30839
30869
|
/* @__PURE__ */ vue.h("div", {
|
|
30840
30870
|
ref: "yRailRef",
|
|
30841
|
-
class:
|
|
30871
|
+
class: [
|
|
30872
|
+
`${mergedClsPrefix}-scrollbar-rail`,
|
|
30873
|
+
`${mergedClsPrefix}-scrollbar-rail--vertical`
|
|
30874
|
+
],
|
|
30875
|
+
"data-scrollbar-rail": true,
|
|
30842
30876
|
style: this.verticalRailStyle,
|
|
30843
30877
|
"aria-hidden": true
|
|
30844
30878
|
}, vue.h(triggerIsNone ? Wrapper : vue.Transition, triggerIsNone ? null : { name: "fade-in-transition" }, {
|
|
@@ -30853,8 +30887,12 @@
|
|
|
30853
30887
|
})),
|
|
30854
30888
|
/* @__PURE__ */ vue.h("div", {
|
|
30855
30889
|
ref: "xRailRef",
|
|
30856
|
-
class:
|
|
30890
|
+
class: [
|
|
30891
|
+
`${mergedClsPrefix}-scrollbar-rail`,
|
|
30892
|
+
`${mergedClsPrefix}-scrollbar-rail--horizontal`
|
|
30893
|
+
],
|
|
30857
30894
|
style: this.horizontalRailStyle,
|
|
30895
|
+
"data-scrollbar-rail": true,
|
|
30858
30896
|
"aria-hidden": true
|
|
30859
30897
|
}, vue.h(triggerIsNone ? Wrapper : vue.Transition, triggerIsNone ? null : { name: "fade-in-transition" }, {
|
|
30860
30898
|
default: () => this.needXBar && this.isShowXBar && !this.isIos ? /* @__PURE__ */ vue.h("div", {
|
|
@@ -31914,11 +31952,15 @@
|
|
|
31914
31952
|
`)]), cNotM("raw", `
|
|
31915
31953
|
background-color: var(--n-color);
|
|
31916
31954
|
border-radius: var(--n-border-radius);
|
|
31917
|
-
`, [cNotM("scrollable", [cNotM("show-header", "padding: var(--n-padding);")])]), cE("header", `
|
|
31955
|
+
`, [cNotM("scrollable", [cNotM("show-header-or-footer", "padding: var(--n-padding);")])]), cE("header", `
|
|
31918
31956
|
padding: var(--n-padding);
|
|
31919
31957
|
border-bottom: 1px solid var(--n-divider-color);
|
|
31920
31958
|
transition: border-color .3s var(--n-bezier);
|
|
31921
|
-
`),
|
|
31959
|
+
`), cE("footer", `
|
|
31960
|
+
padding: var(--n-padding);
|
|
31961
|
+
border-top: 1px solid var(--n-divider-color);
|
|
31962
|
+
transition: border-color .3s var(--n-bezier);
|
|
31963
|
+
`), cM("scrollable, show-header-or-footer", [cE("content", `
|
|
31922
31964
|
padding: var(--n-padding);
|
|
31923
31965
|
`)])]), cB("popover-shared", `
|
|
31924
31966
|
transform-origin: inherit;
|
|
@@ -31957,44 +31999,44 @@
|
|
|
31957
31999
|
opacity .15s var(--n-bezier-ease-in),
|
|
31958
32000
|
transform .15s var(--n-bezier-ease-in);
|
|
31959
32001
|
`)]), placementStyle("top-start", `
|
|
31960
|
-
top: calc(${arrowSize} / -2
|
|
32002
|
+
top: calc(${arrowSize} / -2);
|
|
31961
32003
|
left: calc(${getArrowOffset("top-start")} - var(--v-offset-left));
|
|
31962
32004
|
`), placementStyle("top", `
|
|
31963
|
-
top: calc(${arrowSize} / -2
|
|
32005
|
+
top: calc(${arrowSize} / -2);
|
|
31964
32006
|
transform: translateX(calc(${arrowSize} / -2)) rotate(45deg);
|
|
31965
32007
|
left: 50%;
|
|
31966
32008
|
`), placementStyle("top-end", `
|
|
31967
|
-
top: calc(${arrowSize} / -2
|
|
32009
|
+
top: calc(${arrowSize} / -2);
|
|
31968
32010
|
right: calc(${getArrowOffset("top-end")} + var(--v-offset-left));
|
|
31969
32011
|
`), placementStyle("bottom-start", `
|
|
31970
|
-
bottom: calc(${arrowSize} / -2
|
|
32012
|
+
bottom: calc(${arrowSize} / -2);
|
|
31971
32013
|
left: calc(${getArrowOffset("bottom-start")} - var(--v-offset-left));
|
|
31972
32014
|
`), placementStyle("bottom", `
|
|
31973
|
-
bottom: calc(${arrowSize} / -2
|
|
32015
|
+
bottom: calc(${arrowSize} / -2);
|
|
31974
32016
|
transform: translateX(calc(${arrowSize} / -2)) rotate(45deg);
|
|
31975
32017
|
left: 50%;
|
|
31976
32018
|
`), placementStyle("bottom-end", `
|
|
31977
|
-
bottom: calc(${arrowSize} / -2
|
|
32019
|
+
bottom: calc(${arrowSize} / -2);
|
|
31978
32020
|
right: calc(${getArrowOffset("bottom-end")} + var(--v-offset-left));
|
|
31979
32021
|
`), placementStyle("left-start", `
|
|
31980
|
-
left: calc(${arrowSize} / -2
|
|
32022
|
+
left: calc(${arrowSize} / -2);
|
|
31981
32023
|
top: calc(${getArrowOffset("left-start")} - var(--v-offset-top));
|
|
31982
32024
|
`), placementStyle("left", `
|
|
31983
|
-
left: calc(${arrowSize} / -2
|
|
32025
|
+
left: calc(${arrowSize} / -2);
|
|
31984
32026
|
transform: translateY(calc(${arrowSize} / -2)) rotate(45deg);
|
|
31985
32027
|
top: 50%;
|
|
31986
32028
|
`), placementStyle("left-end", `
|
|
31987
|
-
left: calc(${arrowSize} / -2
|
|
32029
|
+
left: calc(${arrowSize} / -2);
|
|
31988
32030
|
bottom: calc(${getArrowOffset("left-end")} + var(--v-offset-top));
|
|
31989
32031
|
`), placementStyle("right-start", `
|
|
31990
|
-
right: calc(${arrowSize} / -2
|
|
32032
|
+
right: calc(${arrowSize} / -2);
|
|
31991
32033
|
top: calc(${getArrowOffset("right-start")} - var(--v-offset-top));
|
|
31992
32034
|
`), placementStyle("right", `
|
|
31993
|
-
right: calc(${arrowSize} / -2
|
|
32035
|
+
right: calc(${arrowSize} / -2);
|
|
31994
32036
|
transform: translateY(calc(${arrowSize} / -2)) rotate(45deg);
|
|
31995
32037
|
top: 50%;
|
|
31996
32038
|
`), placementStyle("right-end", `
|
|
31997
|
-
right: calc(${arrowSize} / -2
|
|
32039
|
+
right: calc(${arrowSize} / -2);
|
|
31998
32040
|
bottom: calc(${getArrowOffset("right-end")} + var(--v-offset-top));
|
|
31999
32041
|
`), ...lodash.exports.map({
|
|
32000
32042
|
top: ["right-start", "left-start"],
|
|
@@ -32031,7 +32073,7 @@
|
|
|
32031
32073
|
left: 0;
|
|
32032
32074
|
top: 0;
|
|
32033
32075
|
bottom: 0;
|
|
32034
|
-
${position}:
|
|
32076
|
+
${position}: 100%;
|
|
32035
32077
|
${oppositePlacement[position]}: auto;
|
|
32036
32078
|
${sizeStyle}
|
|
32037
32079
|
`, [cB("popover-arrow", arrowStyleLiteral)])])]);
|
|
@@ -32059,10 +32101,12 @@
|
|
|
32059
32101
|
scrollable: Boolean,
|
|
32060
32102
|
contentStyle: [Object, String],
|
|
32061
32103
|
headerStyle: [Object, String],
|
|
32104
|
+
footerStyle: [Object, String],
|
|
32062
32105
|
internalDeactivateImmediately: Boolean,
|
|
32063
32106
|
animated: Boolean,
|
|
32064
32107
|
onClickoutside: Function,
|
|
32065
32108
|
internalTrapFocus: Boolean,
|
|
32109
|
+
internalOnAfterLeave: Function,
|
|
32066
32110
|
minWidth: Number,
|
|
32067
32111
|
maxWidth: Number
|
|
32068
32112
|
};
|
|
@@ -32239,31 +32283,38 @@
|
|
|
32239
32283
|
if (!renderBody) {
|
|
32240
32284
|
const { value: extraClass } = NPopover.extraClassRef;
|
|
32241
32285
|
const { internalTrapFocus } = props;
|
|
32286
|
+
const hasHeaderOrFooter = !isSlotEmpty(slots.header) || !isSlotEmpty(slots.footer);
|
|
32242
32287
|
const renderContentInnerNode = () => {
|
|
32243
|
-
const
|
|
32244
|
-
|
|
32288
|
+
const body = hasHeaderOrFooter ? /* @__PURE__ */ vue.h(vue.Fragment, null, resolveWrappedSlot(slots.header, (children) => {
|
|
32289
|
+
return children ? /* @__PURE__ */ vue.h("div", {
|
|
32245
32290
|
class: `${mergedClsPrefix}-popover__header`,
|
|
32246
32291
|
style: props.headerStyle
|
|
32247
|
-
}, children)
|
|
32292
|
+
}, children) : null;
|
|
32293
|
+
}), resolveWrappedSlot(slots.default, (children) => {
|
|
32294
|
+
return children ? /* @__PURE__ */ vue.h("div", {
|
|
32248
32295
|
class: `${mergedClsPrefix}-popover__content`,
|
|
32249
32296
|
style: props.contentStyle
|
|
32250
|
-
}, slots)
|
|
32251
|
-
|
|
32252
|
-
|
|
32253
|
-
|
|
32254
|
-
|
|
32255
|
-
|
|
32256
|
-
|
|
32257
|
-
|
|
32258
|
-
|
|
32259
|
-
|
|
32260
|
-
|
|
32261
|
-
|
|
32297
|
+
}, slots) : null;
|
|
32298
|
+
}), resolveWrappedSlot(slots.footer, (children) => {
|
|
32299
|
+
return children ? /* @__PURE__ */ vue.h("div", {
|
|
32300
|
+
class: `${mergedClsPrefix}-popover__footer`,
|
|
32301
|
+
style: props.footerStyle
|
|
32302
|
+
}, children) : null;
|
|
32303
|
+
})) : props.scrollable ? slots.default?.() : /* @__PURE__ */ vue.h("div", {
|
|
32304
|
+
class: `${mergedClsPrefix}-popover__content`,
|
|
32305
|
+
style: props.contentStyle
|
|
32306
|
+
}, slots);
|
|
32307
|
+
const maybeScrollableBody = props.scrollable ? /* @__PURE__ */ vue.h(XScrollbar, {
|
|
32308
|
+
contentClass: hasHeaderOrFooter ? void 0 : `${mergedClsPrefix}-popover__content`,
|
|
32309
|
+
contentStyle: hasHeaderOrFooter ? void 0 : props.contentStyle
|
|
32310
|
+
}, {
|
|
32311
|
+
default: () => body
|
|
32312
|
+
}) : body;
|
|
32262
32313
|
const arrow = props.showArrow ? renderArrow({
|
|
32263
32314
|
arrowStyle: props.arrowStyle,
|
|
32264
32315
|
clsPrefix: mergedClsPrefix
|
|
32265
32316
|
}) : null;
|
|
32266
|
-
return [
|
|
32317
|
+
return [maybeScrollableBody, arrow];
|
|
32267
32318
|
};
|
|
32268
32319
|
contentNode = vue.h("div", vue.mergeProps({
|
|
32269
32320
|
class: [
|
|
@@ -32273,7 +32324,7 @@
|
|
|
32273
32324
|
extraClass.map((v) => `${mergedClsPrefix}-${v}`),
|
|
32274
32325
|
{
|
|
32275
32326
|
[`${mergedClsPrefix}-popover--scrollable`]: props.scrollable,
|
|
32276
|
-
[`${mergedClsPrefix}-popover--show-header`]:
|
|
32327
|
+
[`${mergedClsPrefix}-popover--show-header-or-footer`]: hasHeaderOrFooter,
|
|
32277
32328
|
[`${mergedClsPrefix}-popover--raw`]: props.raw,
|
|
32278
32329
|
[`${mergedClsPrefix}-popover-shared--overlap`]: props.overlap,
|
|
32279
32330
|
[`${mergedClsPrefix}-popover-shared--show-arrow`]: props.showArrow,
|
|
@@ -32335,6 +32386,7 @@
|
|
|
32335
32386
|
this.followerEnabled = true;
|
|
32336
32387
|
},
|
|
32337
32388
|
onAfterLeave: () => {
|
|
32389
|
+
this.internalOnAfterLeave?.();
|
|
32338
32390
|
this.followerEnabled = false;
|
|
32339
32391
|
this.displayed = false;
|
|
32340
32392
|
}
|
|
@@ -32433,6 +32485,7 @@
|
|
|
32433
32485
|
scrollable: Boolean,
|
|
32434
32486
|
contentStyle: [Object, String],
|
|
32435
32487
|
headerStyle: [Object, String],
|
|
32488
|
+
footerStyle: [Object, String],
|
|
32436
32489
|
onClickoutside: Function,
|
|
32437
32490
|
"onUpdate:show": [Function, Array],
|
|
32438
32491
|
onUpdateShow: [Function, Array],
|
|
@@ -32459,6 +32512,7 @@
|
|
|
32459
32512
|
const popoverProps = {
|
|
32460
32513
|
...useTheme.props,
|
|
32461
32514
|
...popoverBaseProps,
|
|
32515
|
+
internalOnAfterLeave: Function,
|
|
32462
32516
|
internalRenderBody: Function
|
|
32463
32517
|
};
|
|
32464
32518
|
var NPopover = vue.defineComponent({
|
|
@@ -32789,7 +32843,8 @@
|
|
|
32789
32843
|
show: mergedShow
|
|
32790
32844
|
}), {
|
|
32791
32845
|
default: () => this.$slots.default?.(),
|
|
32792
|
-
header: () => this.$slots.header?.()
|
|
32846
|
+
header: () => this.$slots.header?.(),
|
|
32847
|
+
footer: () => this.$slots.footer?.()
|
|
32793
32848
|
})
|
|
32794
32849
|
];
|
|
32795
32850
|
}
|
|
@@ -34087,6 +34142,7 @@
|
|
|
34087
34142
|
white-space: pre;
|
|
34088
34143
|
visibility: hidden;
|
|
34089
34144
|
user-select: none;
|
|
34145
|
+
-webkit-user-select: none;
|
|
34090
34146
|
opacity: 0;
|
|
34091
34147
|
`)]), ["warning", "error"].map(status => cM(`${status}-status`, [cE("state-border", `border: var(--n-border-${status});`), cNotM("disabled", [c$1("&:hover", [cE("state-border", `
|
|
34092
34148
|
box-shadow: var(--n-box-shadow-hover-${status});
|
|
@@ -36546,6 +36602,8 @@
|
|
|
36546
36602
|
}
|
|
36547
36603
|
|
|
36548
36604
|
function restoreCursor() {
|
|
36605
|
+
var _inputEl$setSelection;
|
|
36606
|
+
|
|
36549
36607
|
const {
|
|
36550
36608
|
value: selection
|
|
36551
36609
|
} = selectionRef;
|
|
@@ -36580,7 +36638,7 @@
|
|
|
36580
36638
|
}
|
|
36581
36639
|
}
|
|
36582
36640
|
|
|
36583
|
-
inputEl.setSelectionRange
|
|
36641
|
+
(_inputEl$setSelection = inputEl.setSelectionRange) === null || _inputEl$setSelection === void 0 ? void 0 : _inputEl$setSelection.call(inputEl, startPos, startPos);
|
|
36584
36642
|
}
|
|
36585
36643
|
|
|
36586
36644
|
function reset() {
|
|
@@ -36646,6 +36704,7 @@
|
|
|
36646
36704
|
background-color: #0000;
|
|
36647
36705
|
text-align: inherit;
|
|
36648
36706
|
transition:
|
|
36707
|
+
-webkit-text-fill-color .3s var(--n-bezier),
|
|
36649
36708
|
caret-color .3s var(--n-bezier),
|
|
36650
36709
|
color .3s var(--n-bezier),
|
|
36651
36710
|
text-decoration-color .3s var(--n-bezier);
|
|
@@ -36741,6 +36800,7 @@
|
|
|
36741
36800
|
align-items: center;
|
|
36742
36801
|
transition: color .3s var(--n-bezier);
|
|
36743
36802
|
color: var(--n-text-color);
|
|
36803
|
+
white-space: nowrap;
|
|
36744
36804
|
`, [cB("icon", `
|
|
36745
36805
|
color: var(--n-icon-color);
|
|
36746
36806
|
`), cB("base-icon", `
|
|
@@ -36752,6 +36812,7 @@
|
|
|
36752
36812
|
cursor: not-allowed;
|
|
36753
36813
|
color: var(--n-text-color-disabled);
|
|
36754
36814
|
text-decoration-color: var(--n-text-color-disabled);
|
|
36815
|
+
-webkit-text-fill-color: var(--n-text-color-disabled);
|
|
36755
36816
|
`), cE("placeholder", "color: var(--n-placeholder-color-disabled);"), cE("separator", "color: var(--n-text-color-disabled);", [cB("icon", `
|
|
36756
36817
|
color: var(--n-icon-color-disabled);
|
|
36757
36818
|
`), cB("base-icon", `
|
|
@@ -37924,6 +37985,7 @@
|
|
|
37924
37985
|
var style$1g = cB("input-group-label", `
|
|
37925
37986
|
position: relative;
|
|
37926
37987
|
user-select: none;
|
|
37988
|
+
-webkit-user-select: none;
|
|
37927
37989
|
box-sizing: border-box;
|
|
37928
37990
|
padding: 0 12px;
|
|
37929
37991
|
display: inline-block;
|
|
@@ -38419,7 +38481,98 @@
|
|
|
38419
38481
|
}
|
|
38420
38482
|
});
|
|
38421
38483
|
|
|
38422
|
-
const
|
|
38484
|
+
const isImageSupportNativeLazy = false;
|
|
38485
|
+
|
|
38486
|
+
const resolveOptionsAndHash = function () {
|
|
38487
|
+
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
38488
|
+
const {
|
|
38489
|
+
root = null
|
|
38490
|
+
} = options;
|
|
38491
|
+
return {
|
|
38492
|
+
hash: `${options.rootMargin || "0px 0px 0px 0px"}-${Array.isArray(options.threshold) ? options.threshold.join(",") : options.threshold ?? "0"}`,
|
|
38493
|
+
options: { ...options,
|
|
38494
|
+
root: (typeof root === "string" ? document.querySelector(root) : root) || document.documentElement
|
|
38495
|
+
}
|
|
38496
|
+
};
|
|
38497
|
+
};
|
|
38498
|
+
const observers = /* @__PURE__ */new WeakMap();
|
|
38499
|
+
const unobserveHandleMap = /* @__PURE__ */new WeakMap();
|
|
38500
|
+
const shouldStartLoadingRefMap = /* @__PURE__ */new WeakMap();
|
|
38501
|
+
const observeIntersection = (el, options, shouldStartLoadingRef) => {
|
|
38502
|
+
if (!el) return () => {};
|
|
38503
|
+
const resolvedOptionsAndHash = resolveOptionsAndHash(options);
|
|
38504
|
+
const {
|
|
38505
|
+
root
|
|
38506
|
+
} = resolvedOptionsAndHash.options;
|
|
38507
|
+
let rootObservers;
|
|
38508
|
+
|
|
38509
|
+
const _rootObservers = observers.get(root);
|
|
38510
|
+
|
|
38511
|
+
if (_rootObservers) {
|
|
38512
|
+
rootObservers = _rootObservers;
|
|
38513
|
+
} else {
|
|
38514
|
+
rootObservers = /* @__PURE__ */new Map();
|
|
38515
|
+
observers.set(root, rootObservers);
|
|
38516
|
+
}
|
|
38517
|
+
|
|
38518
|
+
let observer;
|
|
38519
|
+
let observerAndObservedElements;
|
|
38520
|
+
|
|
38521
|
+
if (rootObservers.has(resolvedOptionsAndHash.hash)) {
|
|
38522
|
+
observerAndObservedElements = rootObservers.get(resolvedOptionsAndHash.hash);
|
|
38523
|
+
|
|
38524
|
+
if (!observerAndObservedElements[1].has(el)) {
|
|
38525
|
+
observer = observerAndObservedElements[0];
|
|
38526
|
+
observerAndObservedElements[1].add(el);
|
|
38527
|
+
observer.observe(el);
|
|
38528
|
+
}
|
|
38529
|
+
} else {
|
|
38530
|
+
observer = new IntersectionObserver(entries => {
|
|
38531
|
+
entries.forEach(entry => {
|
|
38532
|
+
if (entry.isIntersecting) {
|
|
38533
|
+
const _unobserve = unobserveHandleMap.get(entry.target);
|
|
38534
|
+
|
|
38535
|
+
const _shouldStartLoadingRef = shouldStartLoadingRefMap.get(entry.target);
|
|
38536
|
+
|
|
38537
|
+
if (_unobserve) _unobserve();
|
|
38538
|
+
|
|
38539
|
+
if (_shouldStartLoadingRef) {
|
|
38540
|
+
_shouldStartLoadingRef.value = true;
|
|
38541
|
+
}
|
|
38542
|
+
}
|
|
38543
|
+
});
|
|
38544
|
+
}, resolvedOptionsAndHash.options);
|
|
38545
|
+
observer.observe(el);
|
|
38546
|
+
observerAndObservedElements = [observer, /* @__PURE__ */new Set([el])];
|
|
38547
|
+
rootObservers.set(resolvedOptionsAndHash.hash, observerAndObservedElements);
|
|
38548
|
+
}
|
|
38549
|
+
|
|
38550
|
+
let unobservered = false;
|
|
38551
|
+
|
|
38552
|
+
const unobserve = () => {
|
|
38553
|
+
if (unobservered) return;
|
|
38554
|
+
unobserveHandleMap.delete(el);
|
|
38555
|
+
shouldStartLoadingRefMap.delete(el);
|
|
38556
|
+
unobservered = true;
|
|
38557
|
+
|
|
38558
|
+
if (observerAndObservedElements[1].has(el)) {
|
|
38559
|
+
observerAndObservedElements[0].unobserve(el);
|
|
38560
|
+
observerAndObservedElements[1].delete(el);
|
|
38561
|
+
}
|
|
38562
|
+
|
|
38563
|
+
if (observerAndObservedElements[1].size <= 0) {
|
|
38564
|
+
rootObservers.delete(resolvedOptionsAndHash.hash);
|
|
38565
|
+
}
|
|
38566
|
+
|
|
38567
|
+
if (!rootObservers.size) {
|
|
38568
|
+
observers.delete(root);
|
|
38569
|
+
}
|
|
38570
|
+
};
|
|
38571
|
+
|
|
38572
|
+
unobserveHandleMap.set(el, unobserve);
|
|
38573
|
+
shouldStartLoadingRefMap.set(el, shouldStartLoadingRef);
|
|
38574
|
+
return unobserve;
|
|
38575
|
+
};
|
|
38423
38576
|
|
|
38424
38577
|
const self$10 = vars => {
|
|
38425
38578
|
const {
|
|
@@ -38463,6 +38616,8 @@
|
|
|
38463
38616
|
};
|
|
38464
38617
|
var avatarDark$1 = avatarDark;
|
|
38465
38618
|
|
|
38619
|
+
const avatarGroupInjectionKey = createInjectionKey("n-avatar-group");
|
|
38620
|
+
|
|
38466
38621
|
var style$1e = cB("avatar", `
|
|
38467
38622
|
width: var(--n-merged-size);
|
|
38468
38623
|
height: var(--n-merged-size);
|
|
@@ -38513,6 +38668,8 @@
|
|
|
38513
38668
|
},
|
|
38514
38669
|
onError: Function,
|
|
38515
38670
|
fallbackSrc: String,
|
|
38671
|
+
intersectionObserverOptions: Object,
|
|
38672
|
+
lazy: Boolean,
|
|
38516
38673
|
color: String
|
|
38517
38674
|
};
|
|
38518
38675
|
var NAvatar = vue.defineComponent({
|
|
@@ -38569,6 +38726,8 @@
|
|
|
38569
38726
|
return props.bordered || false;
|
|
38570
38727
|
});
|
|
38571
38728
|
const handleError = (e) => {
|
|
38729
|
+
if (!shouldStartLoadingRef.value)
|
|
38730
|
+
return;
|
|
38572
38731
|
hasLoadErrorRef.value = true;
|
|
38573
38732
|
const { onError } = props;
|
|
38574
38733
|
if (onError) {
|
|
@@ -38633,6 +38792,26 @@
|
|
|
38633
38792
|
}
|
|
38634
38793
|
return hash;
|
|
38635
38794
|
}), cssVarsRef, props) : void 0;
|
|
38795
|
+
const imageRef = vue.ref(null);
|
|
38796
|
+
const shouldStartLoadingRef = vue.ref(!props.lazy);
|
|
38797
|
+
vue.onMounted(() => {
|
|
38798
|
+
if (isImageSupportNativeLazy) {
|
|
38799
|
+
return;
|
|
38800
|
+
}
|
|
38801
|
+
let unobserve;
|
|
38802
|
+
const stopWatchHandle = vue.watchEffect(() => {
|
|
38803
|
+
unobserve?.();
|
|
38804
|
+
unobserve = void 0;
|
|
38805
|
+
if (props.lazy) {
|
|
38806
|
+
unobserve = observeIntersection(imageRef.value, props.intersectionObserverOptions, shouldStartLoadingRef);
|
|
38807
|
+
}
|
|
38808
|
+
});
|
|
38809
|
+
vue.onBeforeUnmount(() => {
|
|
38810
|
+
stopWatchHandle();
|
|
38811
|
+
unobserve?.();
|
|
38812
|
+
});
|
|
38813
|
+
});
|
|
38814
|
+
const loadedRef = vue.ref(!props.lazy);
|
|
38636
38815
|
return {
|
|
38637
38816
|
textRef,
|
|
38638
38817
|
selfRef,
|
|
@@ -38643,13 +38822,31 @@
|
|
|
38643
38822
|
themeClass: themeClassHandle?.themeClass,
|
|
38644
38823
|
onRender: themeClassHandle?.onRender,
|
|
38645
38824
|
hasLoadError: hasLoadErrorRef,
|
|
38646
|
-
handleError
|
|
38825
|
+
handleError,
|
|
38826
|
+
imageRef,
|
|
38827
|
+
shouldStartLoading: shouldStartLoadingRef,
|
|
38828
|
+
loaded: loadedRef,
|
|
38829
|
+
mergedOnLoad: (e) => {
|
|
38830
|
+
const { onLoad } = props;
|
|
38831
|
+
onLoad?.(e);
|
|
38832
|
+
loadedRef.value = true;
|
|
38833
|
+
}
|
|
38647
38834
|
};
|
|
38648
38835
|
},
|
|
38649
38836
|
render() {
|
|
38650
|
-
const {
|
|
38837
|
+
const {
|
|
38838
|
+
$slots,
|
|
38839
|
+
src,
|
|
38840
|
+
mergedClsPrefix,
|
|
38841
|
+
lazy,
|
|
38842
|
+
onRender,
|
|
38843
|
+
mergedOnLoad,
|
|
38844
|
+
shouldStartLoading,
|
|
38845
|
+
loaded
|
|
38846
|
+
} = this;
|
|
38651
38847
|
onRender?.();
|
|
38652
38848
|
let img;
|
|
38849
|
+
const placeholderNode = this.$slots.placeholder?.();
|
|
38653
38850
|
if (this.hasLoadError) {
|
|
38654
38851
|
img = /* @__PURE__ */ vue.h("img", {
|
|
38655
38852
|
src: this.fallbackSrc,
|
|
@@ -38667,10 +38864,17 @@
|
|
|
38667
38864
|
}, children)
|
|
38668
38865
|
});
|
|
38669
38866
|
} else if (src) {
|
|
38670
|
-
return
|
|
38671
|
-
|
|
38867
|
+
return vue.h("img", {
|
|
38868
|
+
loading: lazy ? "lazy" : "eager",
|
|
38869
|
+
ref: "imageRef",
|
|
38870
|
+
src: isImageSupportNativeLazy ? src : shouldStartLoading || loaded ? src : void 0,
|
|
38871
|
+
onLoad: mergedOnLoad,
|
|
38872
|
+
"data-image-src": src,
|
|
38672
38873
|
onError: this.handleError,
|
|
38673
|
-
style:
|
|
38874
|
+
style: [
|
|
38875
|
+
{ objectFit: this.objectFit },
|
|
38876
|
+
placeholderNode && !loaded ? { height: "0", width: "0", visibility: "hidden" } : ""
|
|
38877
|
+
]
|
|
38674
38878
|
});
|
|
38675
38879
|
}
|
|
38676
38880
|
});
|
|
@@ -38679,7 +38883,7 @@
|
|
|
38679
38883
|
ref: "selfRef",
|
|
38680
38884
|
class: [`${mergedClsPrefix}-avatar`, this.themeClass],
|
|
38681
38885
|
style: this.cssVars
|
|
38682
|
-
}, img);
|
|
38886
|
+
}, img, lazy && !loaded && placeholderNode);
|
|
38683
38887
|
}
|
|
38684
38888
|
});
|
|
38685
38889
|
|
|
@@ -39488,6 +39692,7 @@
|
|
|
39488
39692
|
color: var(--n-separator-color);
|
|
39489
39693
|
transition: color .3s var(--n-bezier);
|
|
39490
39694
|
user-select: none;
|
|
39695
|
+
-webkit-user-select: none;
|
|
39491
39696
|
`), c$1("&:last-child", [cE("link", `
|
|
39492
39697
|
font-weight: var(--n-font-weight-active);
|
|
39493
39698
|
cursor: unset;
|
|
@@ -39581,7 +39786,7 @@
|
|
|
39581
39786
|
port,
|
|
39582
39787
|
protocol,
|
|
39583
39788
|
search
|
|
39584
|
-
} = customWindow
|
|
39789
|
+
} = (customWindow === null || customWindow === void 0 ? void 0 : customWindow.location) || {};
|
|
39585
39790
|
return {
|
|
39586
39791
|
hash,
|
|
39587
39792
|
host,
|
|
@@ -39668,6 +39873,12 @@
|
|
|
39668
39873
|
return composite(rgb, [0, 0, 0, 0.12]);
|
|
39669
39874
|
}
|
|
39670
39875
|
|
|
39876
|
+
const buttonGroupInjectionKey = createInjectionKey("n-button-group");
|
|
39877
|
+
|
|
39878
|
+
const isChrome = isBrowser$2 && "chrome" in window;
|
|
39879
|
+
isBrowser$2 && navigator.userAgent.includes("Firefox");
|
|
39880
|
+
const isSafari = isBrowser$2 && navigator.userAgent.includes("Safari") && !isChrome;
|
|
39881
|
+
|
|
39671
39882
|
var commonVariables$e = {
|
|
39672
39883
|
paddingTiny: "0 6px",
|
|
39673
39884
|
paddingSmall: "0 10px",
|
|
@@ -39951,8 +40162,6 @@
|
|
|
39951
40162
|
style: rtlStyle$c
|
|
39952
40163
|
};
|
|
39953
40164
|
|
|
39954
|
-
const buttonGroupInjectionKey = createInjectionKey("n-button-group");
|
|
39955
|
-
|
|
39956
40165
|
var style$19 = c$1([cB("button", `
|
|
39957
40166
|
margin: 0;
|
|
39958
40167
|
font-weight: var(--n-font-weight);
|
|
@@ -39976,6 +40185,7 @@
|
|
|
39976
40185
|
align-items: center;
|
|
39977
40186
|
justify-content: center;
|
|
39978
40187
|
user-select: none;
|
|
40188
|
+
-webkit-user-select: none;
|
|
39979
40189
|
text-align: center;
|
|
39980
40190
|
cursor: pointer;
|
|
39981
40191
|
text-decoration: none;
|
|
@@ -40150,7 +40360,10 @@
|
|
|
40150
40360
|
default: true
|
|
40151
40361
|
},
|
|
40152
40362
|
onClick: [Function, Array],
|
|
40153
|
-
nativeFocusBehavior:
|
|
40363
|
+
nativeFocusBehavior: {
|
|
40364
|
+
type: Boolean,
|
|
40365
|
+
default: !isSafari
|
|
40366
|
+
}
|
|
40154
40367
|
};
|
|
40155
40368
|
const Button = vue.defineComponent({
|
|
40156
40369
|
name: "Button",
|
|
@@ -47741,7 +47954,7 @@
|
|
|
47741
47954
|
content: "";
|
|
47742
47955
|
`)])])])])]);
|
|
47743
47956
|
|
|
47744
|
-
const
|
|
47957
|
+
const colorPickerProps = {
|
|
47745
47958
|
...useTheme.props,
|
|
47746
47959
|
value: String,
|
|
47747
47960
|
show: {
|
|
@@ -47785,7 +47998,7 @@
|
|
|
47785
47998
|
};
|
|
47786
47999
|
var NColorPicker = vue.defineComponent({
|
|
47787
48000
|
name: "ColorPicker",
|
|
47788
|
-
props:
|
|
48001
|
+
props: colorPickerProps,
|
|
47789
48002
|
setup(props, { slots }) {
|
|
47790
48003
|
const selfRef = vue.ref(null);
|
|
47791
48004
|
let upcomingValue = null;
|
|
@@ -49055,6 +49268,7 @@
|
|
|
49055
49268
|
color: var(--n-arrow-color);
|
|
49056
49269
|
border-radius: 8px;
|
|
49057
49270
|
user-select: none;
|
|
49271
|
+
-webkit-user-select: none;
|
|
49058
49272
|
font-size: 18px;
|
|
49059
49273
|
`, [c$1("svg", `
|
|
49060
49274
|
height: 1em;
|
|
@@ -50117,40 +50331,36 @@
|
|
|
50117
50331
|
return tmNodes.map(tmNode => tmNode.rawNode);
|
|
50118
50332
|
}
|
|
50119
50333
|
|
|
50120
|
-
function traverseWithCallback(options, beforeCallback, afterCallback) {
|
|
50121
|
-
if (Array.isArray(options)) {
|
|
50122
|
-
for (const option of options) {
|
|
50123
|
-
if (beforeCallback) beforeCallback(option);
|
|
50124
|
-
|
|
50125
|
-
if (option.children) {
|
|
50126
|
-
traverseWithCallback(option.children, beforeCallback, afterCallback);
|
|
50127
|
-
}
|
|
50128
|
-
|
|
50129
|
-
if (afterCallback) afterCallback(option);
|
|
50130
|
-
}
|
|
50131
|
-
}
|
|
50132
|
-
}
|
|
50133
|
-
|
|
50134
50334
|
function createSelectOptions(tmNodes, checkStrategyIsChild, labelField, separator) {
|
|
50135
50335
|
const selectOptions = [];
|
|
50136
50336
|
const path = [];
|
|
50137
|
-
|
|
50138
|
-
|
|
50139
|
-
|
|
50337
|
+
|
|
50338
|
+
function traverse(_tmNodes) {
|
|
50339
|
+
for (const tmNode of _tmNodes) {
|
|
50340
|
+
if (tmNode.disabled) continue;
|
|
50140
50341
|
const {
|
|
50141
50342
|
rawNode
|
|
50142
50343
|
} = tmNode;
|
|
50143
50344
|
path.push(rawNode);
|
|
50144
|
-
|
|
50145
|
-
|
|
50146
|
-
|
|
50147
|
-
|
|
50148
|
-
|
|
50149
|
-
|
|
50345
|
+
|
|
50346
|
+
if (tmNode.isLeaf || !checkStrategyIsChild) {
|
|
50347
|
+
selectOptions.push({
|
|
50348
|
+
label: getPathLabel(tmNode, separator, labelField),
|
|
50349
|
+
value: tmNode.key,
|
|
50350
|
+
rawNode: tmNode.rawNode,
|
|
50351
|
+
path: Array.from(path)
|
|
50352
|
+
});
|
|
50353
|
+
}
|
|
50354
|
+
|
|
50355
|
+
if (!tmNode.isLeaf && tmNode.children) {
|
|
50356
|
+
traverse(tmNode.children);
|
|
50357
|
+
}
|
|
50358
|
+
|
|
50359
|
+
path.pop();
|
|
50150
50360
|
}
|
|
50151
|
-
}
|
|
50152
|
-
|
|
50153
|
-
|
|
50361
|
+
}
|
|
50362
|
+
|
|
50363
|
+
traverse(tmNodes);
|
|
50154
50364
|
return selectOptions;
|
|
50155
50365
|
}
|
|
50156
50366
|
|
|
@@ -50366,6 +50576,7 @@
|
|
|
50366
50576
|
flex-shrink: 0;
|
|
50367
50577
|
flex-grow: 0;
|
|
50368
50578
|
user-select: none;
|
|
50579
|
+
-webkit-user-select: none;
|
|
50369
50580
|
`), cB("checkbox-box", `
|
|
50370
50581
|
position: absolute;
|
|
50371
50582
|
left: 0;
|
|
@@ -50416,6 +50627,7 @@
|
|
|
50416
50627
|
color: var(--n-text-color);
|
|
50417
50628
|
transition: color .3s var(--n-bezier);
|
|
50418
50629
|
user-select: none;
|
|
50630
|
+
-webkit-user-select: none;
|
|
50419
50631
|
padding: var(--n-label-padding);
|
|
50420
50632
|
`, [c$1("&:empty", {
|
|
50421
50633
|
display: "none"
|
|
@@ -52743,7 +52955,7 @@
|
|
|
52743
52955
|
color: var(--n-arrow-color);
|
|
52744
52956
|
`)])])]);
|
|
52745
52957
|
|
|
52746
|
-
const collapseProps
|
|
52958
|
+
const collapseProps = {
|
|
52747
52959
|
...useTheme.props,
|
|
52748
52960
|
defaultExpandedNames: {
|
|
52749
52961
|
type: [Array, String],
|
|
@@ -52779,7 +52991,7 @@
|
|
|
52779
52991
|
const collapseInjectionKey = createInjectionKey("n-collapse");
|
|
52780
52992
|
var NCollapse = vue.defineComponent({
|
|
52781
52993
|
name: "Collapse",
|
|
52782
|
-
props: collapseProps
|
|
52994
|
+
props: collapseProps,
|
|
52783
52995
|
setup(props, { slots }) {
|
|
52784
52996
|
const { mergedClsPrefixRef, inlineThemeDisabled, mergedRtlRef } = useConfig(props);
|
|
52785
52997
|
const uncontrolledExpandedNamesRef = vue.ref(props.defaultExpandedNames);
|
|
@@ -53069,7 +53281,7 @@
|
|
|
53069
53281
|
style: rtlStyle$8
|
|
53070
53282
|
};
|
|
53071
53283
|
|
|
53072
|
-
const
|
|
53284
|
+
const collapseTransitionProps = {
|
|
53073
53285
|
...useTheme.props,
|
|
53074
53286
|
show: {
|
|
53075
53287
|
type: Boolean,
|
|
@@ -53083,7 +53295,7 @@
|
|
|
53083
53295
|
};
|
|
53084
53296
|
var CollapseTransition = vue.defineComponent({
|
|
53085
53297
|
name: "CollapseTransition",
|
|
53086
|
-
props:
|
|
53298
|
+
props: collapseTransitionProps,
|
|
53087
53299
|
inheritAttrs: false,
|
|
53088
53300
|
setup(props) {
|
|
53089
53301
|
{
|
|
@@ -53188,7 +53400,7 @@
|
|
|
53188
53400
|
theme
|
|
53189
53401
|
} = props;
|
|
53190
53402
|
if (theme === null) return void 0;
|
|
53191
|
-
const inheritedTheme = NConfigProvider
|
|
53403
|
+
const inheritedTheme = NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedThemeRef.value;
|
|
53192
53404
|
return theme === void 0 ? inheritedTheme : inheritedTheme === void 0 ? theme : Object.assign({}, inheritedTheme, theme);
|
|
53193
53405
|
});
|
|
53194
53406
|
const mergedThemeOverridesRef = vue.computed(() => {
|
|
@@ -53198,9 +53410,9 @@
|
|
|
53198
53410
|
if (themeOverrides === null) return void 0;
|
|
53199
53411
|
|
|
53200
53412
|
if (themeOverrides === void 0) {
|
|
53201
|
-
return NConfigProvider
|
|
53413
|
+
return NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedThemeOverridesRef.value;
|
|
53202
53414
|
} else {
|
|
53203
|
-
const inheritedThemeOverrides = NConfigProvider
|
|
53415
|
+
const inheritedThemeOverrides = NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedThemeOverridesRef.value;
|
|
53204
53416
|
|
|
53205
53417
|
if (inheritedThemeOverrides === void 0) {
|
|
53206
53418
|
return themeOverrides;
|
|
@@ -53213,33 +53425,33 @@
|
|
|
53213
53425
|
const {
|
|
53214
53426
|
namespace
|
|
53215
53427
|
} = props;
|
|
53216
|
-
return namespace === void 0 ? NConfigProvider
|
|
53428
|
+
return namespace === void 0 ? NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedNamespaceRef.value : namespace;
|
|
53217
53429
|
});
|
|
53218
53430
|
const mergedBorderedRef = useMemo(() => {
|
|
53219
53431
|
const {
|
|
53220
53432
|
bordered
|
|
53221
53433
|
} = props;
|
|
53222
|
-
return bordered === void 0 ? NConfigProvider
|
|
53434
|
+
return bordered === void 0 ? NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedBorderedRef.value : bordered;
|
|
53223
53435
|
});
|
|
53224
53436
|
const mergedIconsRef = vue.computed(() => {
|
|
53225
53437
|
const {
|
|
53226
53438
|
icons
|
|
53227
53439
|
} = props;
|
|
53228
|
-
return icons === void 0 ? NConfigProvider
|
|
53440
|
+
return icons === void 0 ? NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedIconsRef.value : icons;
|
|
53229
53441
|
});
|
|
53230
53442
|
const mergedComponentPropsRef = vue.computed(() => {
|
|
53231
53443
|
const {
|
|
53232
53444
|
componentOptions
|
|
53233
53445
|
} = props;
|
|
53234
53446
|
if (componentOptions !== void 0) return componentOptions;
|
|
53235
|
-
return NConfigProvider
|
|
53447
|
+
return NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedComponentPropsRef.value;
|
|
53236
53448
|
});
|
|
53237
53449
|
const mergedClsPrefixRef = vue.computed(() => {
|
|
53238
53450
|
const {
|
|
53239
53451
|
clsPrefix
|
|
53240
53452
|
} = props;
|
|
53241
53453
|
if (clsPrefix !== void 0) return clsPrefix;
|
|
53242
|
-
return NConfigProvider
|
|
53454
|
+
return NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedClsPrefixRef.value;
|
|
53243
53455
|
});
|
|
53244
53456
|
const mergedRtlRef = vue.computed(() => {
|
|
53245
53457
|
const {
|
|
@@ -53247,14 +53459,16 @@
|
|
|
53247
53459
|
} = props;
|
|
53248
53460
|
|
|
53249
53461
|
if (rtl === void 0) {
|
|
53250
|
-
return NConfigProvider
|
|
53462
|
+
return NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedRtlRef.value;
|
|
53251
53463
|
}
|
|
53252
53464
|
|
|
53253
53465
|
const rtlEnabledState = {};
|
|
53254
53466
|
|
|
53255
53467
|
for (const rtlInfo of rtl) {
|
|
53468
|
+
var _rtlInfo$peers;
|
|
53469
|
+
|
|
53256
53470
|
rtlEnabledState[rtlInfo.name] = vue.markRaw(rtlInfo);
|
|
53257
|
-
rtlInfo.peers
|
|
53471
|
+
(_rtlInfo$peers = rtlInfo.peers) === null || _rtlInfo$peers === void 0 ? void 0 : _rtlInfo$peers.forEach(peerRtlInfo => {
|
|
53258
53472
|
if (!(peerRtlInfo.name in rtlEnabledState)) {
|
|
53259
53473
|
rtlEnabledState[peerRtlInfo.name] = vue.markRaw(peerRtlInfo);
|
|
53260
53474
|
}
|
|
@@ -53264,10 +53478,10 @@
|
|
|
53264
53478
|
return rtlEnabledState;
|
|
53265
53479
|
});
|
|
53266
53480
|
const mergedBreakpointsRef = vue.computed(() => {
|
|
53267
|
-
return props.breakpoints || NConfigProvider
|
|
53481
|
+
return props.breakpoints || (NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedBreakpointsRef.value);
|
|
53268
53482
|
});
|
|
53269
|
-
const inlineThemeDisabled = props.inlineThemeDisabled || NConfigProvider
|
|
53270
|
-
const preflightStyleDisabled = props.preflightStyleDisabled || NConfigProvider
|
|
53483
|
+
const inlineThemeDisabled = props.inlineThemeDisabled || (NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.inlineThemeDisabled);
|
|
53484
|
+
const preflightStyleDisabled = props.preflightStyleDisabled || (NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.preflightStyleDisabled);
|
|
53271
53485
|
const mergedThemeHashRef = vue.computed(() => {
|
|
53272
53486
|
const {
|
|
53273
53487
|
value: theme
|
|
@@ -53276,7 +53490,7 @@
|
|
|
53276
53490
|
value: mergedThemeOverrides
|
|
53277
53491
|
} = mergedThemeOverridesRef;
|
|
53278
53492
|
const hasThemeOverrides = mergedThemeOverrides && Object.keys(mergedThemeOverrides).length !== 0;
|
|
53279
|
-
const themeName = theme
|
|
53493
|
+
const themeName = theme === null || theme === void 0 ? void 0 : theme.name;
|
|
53280
53494
|
|
|
53281
53495
|
if (themeName) {
|
|
53282
53496
|
if (hasThemeOverrides) {
|
|
@@ -53306,20 +53520,20 @@
|
|
|
53306
53520
|
locale
|
|
53307
53521
|
} = props;
|
|
53308
53522
|
if (locale === null) return void 0;
|
|
53309
|
-
return locale === void 0 ? NConfigProvider
|
|
53523
|
+
return locale === void 0 ? NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedLocaleRef.value : locale;
|
|
53310
53524
|
}),
|
|
53311
53525
|
mergedDateLocaleRef: vue.computed(() => {
|
|
53312
53526
|
const {
|
|
53313
53527
|
dateLocale
|
|
53314
53528
|
} = props;
|
|
53315
53529
|
if (dateLocale === null) return void 0;
|
|
53316
|
-
return dateLocale === void 0 ? NConfigProvider
|
|
53530
|
+
return dateLocale === void 0 ? NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedDateLocaleRef.value : dateLocale;
|
|
53317
53531
|
}),
|
|
53318
53532
|
mergedHljsRef: vue.computed(() => {
|
|
53319
53533
|
const {
|
|
53320
53534
|
hljs
|
|
53321
53535
|
} = props;
|
|
53322
|
-
return hljs === void 0 ? NConfigProvider
|
|
53536
|
+
return hljs === void 0 ? NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedHljsRef.value : hljs;
|
|
53323
53537
|
}),
|
|
53324
53538
|
mergedThemeRef,
|
|
53325
53539
|
mergedThemeOverridesRef,
|
|
@@ -53336,9 +53550,11 @@
|
|
|
53336
53550
|
},
|
|
53337
53551
|
|
|
53338
53552
|
render() {
|
|
53553
|
+
var _this$$slots$default, _this$$slots, _this$$slots$default2, _this$$slots2;
|
|
53554
|
+
|
|
53339
53555
|
return !this.abstract ? vue.h(this.as || this.tag, {
|
|
53340
53556
|
class: `${this.mergedClsPrefix || defaultClsPrefix}-config-provider`
|
|
53341
|
-
}, this.$slots.default
|
|
53557
|
+
}, (_this$$slots$default = (_this$$slots = this.$slots).default) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)) : (_this$$slots$default2 = (_this$$slots2 = this.$slots).default) === null || _this$$slots$default2 === void 0 ? void 0 : _this$$slots$default2.call(_this$$slots2);
|
|
53342
53558
|
}
|
|
53343
53559
|
|
|
53344
53560
|
});
|
|
@@ -53448,32 +53664,48 @@
|
|
|
53448
53664
|
vue.onBeforeUnmount(() => {
|
|
53449
53665
|
stopTimer();
|
|
53450
53666
|
});
|
|
53451
|
-
|
|
53452
|
-
|
|
53453
|
-
|
|
53454
|
-
|
|
53455
|
-
|
|
53456
|
-
|
|
53457
|
-
timeInfo = getTimeInfo(distance + 999);
|
|
53458
|
-
timeInfo.milliseconds = 0;
|
|
53459
|
-
break;
|
|
53460
|
-
case 1:
|
|
53461
|
-
timeInfo = getTimeInfo(distance + 99);
|
|
53462
|
-
timeInfo.milliseconds = Math.floor(timeInfo.milliseconds / 100) * 100;
|
|
53463
|
-
break;
|
|
53464
|
-
case 2:
|
|
53465
|
-
timeInfo = getTimeInfo(distance + 9);
|
|
53466
|
-
timeInfo.milliseconds = Math.floor(timeInfo.milliseconds / 10) * 10;
|
|
53467
|
-
break;
|
|
53468
|
-
case 3:
|
|
53469
|
-
timeInfo = getTimeInfo(distance);
|
|
53470
|
-
}
|
|
53471
|
-
if (render) {
|
|
53472
|
-
return render(timeInfo);
|
|
53473
|
-
} else {
|
|
53474
|
-
return getDisplayValue(timeInfo);
|
|
53667
|
+
function reset() {
|
|
53668
|
+
distanceRef.value = props.duration;
|
|
53669
|
+
elapsed = 0;
|
|
53670
|
+
pnow = performance.now();
|
|
53671
|
+
if (props.active && finished) {
|
|
53672
|
+
frame();
|
|
53475
53673
|
}
|
|
53674
|
+
finished = false;
|
|
53675
|
+
}
|
|
53676
|
+
const countdownExposedMethod = {
|
|
53677
|
+
reset
|
|
53476
53678
|
};
|
|
53679
|
+
return Object.assign(countdownExposedMethod, {
|
|
53680
|
+
distance: distanceRef,
|
|
53681
|
+
getTimeInfo,
|
|
53682
|
+
getDisplayValue
|
|
53683
|
+
});
|
|
53684
|
+
},
|
|
53685
|
+
render() {
|
|
53686
|
+
const { render, precision, distance, getTimeInfo, getDisplayValue } = this;
|
|
53687
|
+
let timeInfo;
|
|
53688
|
+
switch (precision) {
|
|
53689
|
+
case 0:
|
|
53690
|
+
timeInfo = getTimeInfo(distance + 999);
|
|
53691
|
+
timeInfo.milliseconds = 0;
|
|
53692
|
+
break;
|
|
53693
|
+
case 1:
|
|
53694
|
+
timeInfo = getTimeInfo(distance + 99);
|
|
53695
|
+
timeInfo.milliseconds = Math.floor(timeInfo.milliseconds / 100) * 100;
|
|
53696
|
+
break;
|
|
53697
|
+
case 2:
|
|
53698
|
+
timeInfo = getTimeInfo(distance + 9);
|
|
53699
|
+
timeInfo.milliseconds = Math.floor(timeInfo.milliseconds / 10) * 10;
|
|
53700
|
+
break;
|
|
53701
|
+
case 3:
|
|
53702
|
+
timeInfo = getTimeInfo(distance);
|
|
53703
|
+
}
|
|
53704
|
+
if (render) {
|
|
53705
|
+
return render(timeInfo);
|
|
53706
|
+
} else {
|
|
53707
|
+
return getDisplayValue(timeInfo);
|
|
53708
|
+
}
|
|
53477
53709
|
}
|
|
53478
53710
|
});
|
|
53479
53711
|
|
|
@@ -53525,7 +53757,8 @@
|
|
|
53525
53757
|
duration: {
|
|
53526
53758
|
type: Number,
|
|
53527
53759
|
default: 2e3
|
|
53528
|
-
}
|
|
53760
|
+
},
|
|
53761
|
+
onFinish: Function
|
|
53529
53762
|
};
|
|
53530
53763
|
var NumberAnimation = vue.defineComponent({
|
|
53531
53764
|
name: "NumberAnimation",
|
|
@@ -53547,6 +53780,7 @@
|
|
|
53547
53780
|
const onFinish = () => {
|
|
53548
53781
|
displayedValueRef.value = props.to;
|
|
53549
53782
|
animating = false;
|
|
53783
|
+
props.onFinish?.();
|
|
53550
53784
|
};
|
|
53551
53785
|
const animate = (from = props.from, to = props.to) => {
|
|
53552
53786
|
animating = true;
|
|
@@ -55052,6 +55286,7 @@
|
|
|
55052
55286
|
position: relative;
|
|
55053
55287
|
cursor: pointer;
|
|
55054
55288
|
user-select: none;
|
|
55289
|
+
-webkit-user-select: none;
|
|
55055
55290
|
display: flex;
|
|
55056
55291
|
align-items: center;
|
|
55057
55292
|
justify-content: center;
|
|
@@ -56413,7 +56648,7 @@
|
|
|
56413
56648
|
|
|
56414
56649
|
});
|
|
56415
56650
|
|
|
56416
|
-
const radioProps = {
|
|
56651
|
+
const radioProps$1 = {
|
|
56417
56652
|
name: String,
|
|
56418
56653
|
value: {
|
|
56419
56654
|
type: [String, Number],
|
|
@@ -56472,8 +56707,8 @@
|
|
|
56472
56707
|
|
|
56473
56708
|
mergedDisabled(NFormItem) {
|
|
56474
56709
|
if (props.disabled) return true;
|
|
56475
|
-
if (NRadioGroup
|
|
56476
|
-
if (NFormItem
|
|
56710
|
+
if (NRadioGroup !== null && NRadioGroup !== void 0 && NRadioGroup.disabledRef.value) return true;
|
|
56711
|
+
if (NFormItem !== null && NFormItem !== void 0 && NFormItem.disabled.value) return true;
|
|
56477
56712
|
return false;
|
|
56478
56713
|
}
|
|
56479
56714
|
|
|
@@ -56563,13 +56798,14 @@
|
|
|
56563
56798
|
};
|
|
56564
56799
|
}
|
|
56565
56800
|
|
|
56566
|
-
setup.props = radioProps;
|
|
56801
|
+
setup.props = radioProps$1;
|
|
56567
56802
|
|
|
56568
56803
|
var style$W = cB("radio", `
|
|
56569
56804
|
line-height: var(--n-label-line-height);
|
|
56570
56805
|
outline: none;
|
|
56571
56806
|
position: relative;
|
|
56572
56807
|
user-select: none;
|
|
56808
|
+
-webkit-user-select: none;
|
|
56573
56809
|
display: inline-flex;
|
|
56574
56810
|
align-items: flex-start;
|
|
56575
56811
|
flex-wrap: nowrap;
|
|
@@ -56650,6 +56886,7 @@
|
|
|
56650
56886
|
cursor: not-allowed;
|
|
56651
56887
|
`)])]);
|
|
56652
56888
|
|
|
56889
|
+
const radioProps = setup.props;
|
|
56653
56890
|
var NRadio = vue.defineComponent({
|
|
56654
56891
|
name: "Radio",
|
|
56655
56892
|
props: {
|
|
@@ -56785,6 +57022,7 @@
|
|
|
56785
57022
|
outline: none;
|
|
56786
57023
|
position: relative;
|
|
56787
57024
|
user-select: none;
|
|
57025
|
+
-webkit-user-select: none;
|
|
56788
57026
|
display: inline-block;
|
|
56789
57027
|
box-sizing: border-box;
|
|
56790
57028
|
padding-left: 14px;
|
|
@@ -56799,6 +57037,7 @@
|
|
|
56799
57037
|
border-top: 1px solid var(--n-button-border-color);
|
|
56800
57038
|
border-bottom: 1px solid var(--n-button-border-color);
|
|
56801
57039
|
`, [cB("radio-input", `
|
|
57040
|
+
pointer-events: none;
|
|
56802
57041
|
position: absolute;
|
|
56803
57042
|
border: 0;
|
|
56804
57043
|
border-radius: inherit;
|
|
@@ -57037,6 +57276,7 @@
|
|
|
57037
57276
|
}
|
|
57038
57277
|
});
|
|
57039
57278
|
|
|
57279
|
+
const radioButtonProps = setup.props;
|
|
57040
57280
|
var RadioButton = vue.defineComponent({
|
|
57041
57281
|
name: "RadioButton",
|
|
57042
57282
|
props: setup.props,
|
|
@@ -57704,12 +57944,14 @@
|
|
|
57704
57944
|
};
|
|
57705
57945
|
}),
|
|
57706
57946
|
cssVars: inlineThemeDisabled ? void 0 : cssVarsRef,
|
|
57707
|
-
themeClass: themeClassHandle
|
|
57708
|
-
onRender: themeClassHandle
|
|
57947
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
57948
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
57709
57949
|
};
|
|
57710
57950
|
},
|
|
57711
57951
|
|
|
57712
57952
|
render() {
|
|
57953
|
+
var _$parent$$options;
|
|
57954
|
+
|
|
57713
57955
|
const {
|
|
57714
57956
|
$parent,
|
|
57715
57957
|
depth,
|
|
@@ -57719,11 +57961,11 @@
|
|
|
57719
57961
|
themeClass
|
|
57720
57962
|
} = this;
|
|
57721
57963
|
|
|
57722
|
-
if ($parent
|
|
57964
|
+
if ($parent !== null && $parent !== void 0 && (_$parent$$options = $parent.$options) !== null && _$parent$$options !== void 0 && _$parent$$options._n_icon__) {
|
|
57723
57965
|
warn$2("icon", "don't wrap `n-icon` inside `n-icon`");
|
|
57724
57966
|
}
|
|
57725
57967
|
|
|
57726
|
-
onRender
|
|
57968
|
+
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
57727
57969
|
return vue.h("i", vue.mergeProps(this.$attrs, {
|
|
57728
57970
|
role: "img",
|
|
57729
57971
|
class: [`${mergedClsPrefix}-icon`, themeClass, {
|
|
@@ -57772,7 +58014,8 @@
|
|
|
57772
58014
|
type: String,
|
|
57773
58015
|
default: "right-start"
|
|
57774
58016
|
},
|
|
57775
|
-
props: Object
|
|
58017
|
+
props: Object,
|
|
58018
|
+
scrollable: Boolean
|
|
57776
58019
|
},
|
|
57777
58020
|
setup(props) {
|
|
57778
58021
|
const NDropdown = vue.inject(dropdownInjectionKey);
|
|
@@ -57789,10 +58032,12 @@
|
|
|
57789
58032
|
labelFieldRef,
|
|
57790
58033
|
childrenFieldRef,
|
|
57791
58034
|
renderOptionRef,
|
|
57792
|
-
nodePropsRef
|
|
58035
|
+
nodePropsRef,
|
|
58036
|
+
menuPropsRef
|
|
57793
58037
|
} = NDropdown;
|
|
57794
58038
|
const NDropdownOption = vue.inject(dropdownOptionInjectionKey, null);
|
|
57795
58039
|
const NDropdownMenu2 = vue.inject(dropdownMenuInjectionKey);
|
|
58040
|
+
const NPopoverBody = vue.inject(popoverBodyInjectionKey);
|
|
57796
58041
|
const rawNodeRef = vue.computed(() => props.tmNode.rawNode);
|
|
57797
58042
|
const hasSubmenuRef = vue.computed(() => {
|
|
57798
58043
|
const { value: childrenField } = childrenFieldRef;
|
|
@@ -57840,6 +58085,8 @@
|
|
|
57840
58085
|
}
|
|
57841
58086
|
function handleMouseEnter() {
|
|
57842
58087
|
const { parentKey, tmNode } = props;
|
|
58088
|
+
if (tmNode.disabled)
|
|
58089
|
+
return;
|
|
57843
58090
|
if (!mergedShowRef.value)
|
|
57844
58091
|
return;
|
|
57845
58092
|
lastToggledSubmenuKeyRef.value = parentKey;
|
|
@@ -57848,6 +58095,8 @@
|
|
|
57848
58095
|
}
|
|
57849
58096
|
function handleMouseMove() {
|
|
57850
58097
|
const { tmNode } = props;
|
|
58098
|
+
if (tmNode.disabled)
|
|
58099
|
+
return;
|
|
57851
58100
|
if (!mergedShowRef.value)
|
|
57852
58101
|
return;
|
|
57853
58102
|
if (hoverKeyRef.value === tmNode.key)
|
|
@@ -57855,10 +58104,12 @@
|
|
|
57855
58104
|
handleMouseEnter();
|
|
57856
58105
|
}
|
|
57857
58106
|
function handleMouseLeave(e) {
|
|
58107
|
+
if (props.tmNode.disabled)
|
|
58108
|
+
return;
|
|
57858
58109
|
if (!mergedShowRef.value)
|
|
57859
58110
|
return;
|
|
57860
58111
|
const { relatedTarget } = e;
|
|
57861
|
-
if (relatedTarget && !happensIn({ target: relatedTarget }, "dropdownOption")) {
|
|
58112
|
+
if (relatedTarget && !happensIn({ target: relatedTarget }, "dropdownOption") && !happensIn({ target: relatedTarget }, "scrollbarRail")) {
|
|
57862
58113
|
hoverKeyRef.value = null;
|
|
57863
58114
|
}
|
|
57864
58115
|
}
|
|
@@ -57878,6 +58129,8 @@
|
|
|
57878
58129
|
renderIcon: renderIconRef,
|
|
57879
58130
|
siblingHasIcon: NDropdownMenu2.showIconRef,
|
|
57880
58131
|
siblingHasSubmenu: NDropdownMenu2.hasSubmenuRef,
|
|
58132
|
+
menuProps: menuPropsRef,
|
|
58133
|
+
popoverBody: NPopoverBody,
|
|
57881
58134
|
animated: animatedRef,
|
|
57882
58135
|
mergedShowSubmenu: vue.computed(() => {
|
|
57883
58136
|
return deferredShowSubmenuRef.value && !parentEnteringSubmenuRef.value;
|
|
@@ -57928,13 +58181,20 @@
|
|
|
57928
58181
|
renderIcon,
|
|
57929
58182
|
renderOption,
|
|
57930
58183
|
nodeProps,
|
|
57931
|
-
props
|
|
58184
|
+
props,
|
|
58185
|
+
scrollable
|
|
57932
58186
|
} = this;
|
|
57933
|
-
|
|
57934
|
-
|
|
57935
|
-
|
|
57936
|
-
|
|
57937
|
-
|
|
58187
|
+
let submenuVNode = null;
|
|
58188
|
+
if (mergedShowSubmenu) {
|
|
58189
|
+
const submenuNodeProps = this.menuProps?.(rawNode, rawNode.children);
|
|
58190
|
+
submenuVNode = /* @__PURE__ */ vue.h(NDropdownMenu, {
|
|
58191
|
+
...submenuNodeProps,
|
|
58192
|
+
clsPrefix,
|
|
58193
|
+
scrollable: this.scrollable,
|
|
58194
|
+
tmNodes: this.tmNode.children,
|
|
58195
|
+
parentKey: this.tmNode.key
|
|
58196
|
+
});
|
|
58197
|
+
}
|
|
57938
58198
|
const builtinProps = {
|
|
57939
58199
|
class: [
|
|
57940
58200
|
`${clsPrefix}-dropdown-option-body`,
|
|
@@ -57948,12 +58208,13 @@
|
|
|
57948
58208
|
onMouseleave: this.handleMouseLeave,
|
|
57949
58209
|
onClick: this.handleClick
|
|
57950
58210
|
};
|
|
58211
|
+
const optionNodeProps = nodeProps?.(rawNode);
|
|
57951
58212
|
const node = /* @__PURE__ */ vue.h("div", {
|
|
57952
|
-
class: `${clsPrefix}-dropdown-option`,
|
|
57953
|
-
|
|
58213
|
+
class: [`${clsPrefix}-dropdown-option`, optionNodeProps?.class],
|
|
58214
|
+
"data-dropdown-option": true,
|
|
58215
|
+
...optionNodeProps
|
|
57954
58216
|
}, vue.h("div", vue.mergeProps(builtinProps, props), [
|
|
57955
58217
|
/* @__PURE__ */ vue.h("div", {
|
|
57956
|
-
"data-dropdown-option": true,
|
|
57957
58218
|
class: [
|
|
57958
58219
|
`${clsPrefix}-dropdown-option-body__prefix`,
|
|
57959
58220
|
siblingHasIcon && `${clsPrefix}-dropdown-option-body__prefix--show-icon`
|
|
@@ -57980,7 +58241,8 @@
|
|
|
57980
58241
|
}, /* @__PURE__ */ vue.h(VFollower, {
|
|
57981
58242
|
show: this.mergedShowSubmenu,
|
|
57982
58243
|
placement: this.placement,
|
|
57983
|
-
|
|
58244
|
+
to: scrollable ? this.popoverBody || void 0 : void 0,
|
|
58245
|
+
teleportDisabled: !scrollable
|
|
57984
58246
|
}, {
|
|
57985
58247
|
default: () => {
|
|
57986
58248
|
return /* @__PURE__ */ vue.h("div", {
|
|
@@ -58133,6 +58395,7 @@
|
|
|
58133
58395
|
var NDropdownMenu = vue.defineComponent({
|
|
58134
58396
|
name: "DropdownMenu",
|
|
58135
58397
|
props: {
|
|
58398
|
+
scrollable: Boolean,
|
|
58136
58399
|
showArrow: Boolean,
|
|
58137
58400
|
arrowStyle: [String, Object],
|
|
58138
58401
|
clsPrefix: {
|
|
@@ -58181,11 +58444,8 @@
|
|
|
58181
58444
|
};
|
|
58182
58445
|
},
|
|
58183
58446
|
render() {
|
|
58184
|
-
const { parentKey, clsPrefix } = this;
|
|
58185
|
-
|
|
58186
|
-
class: `${clsPrefix}-dropdown-menu`,
|
|
58187
|
-
ref: "bodyRef"
|
|
58188
|
-
}, this.tmNodes.map((tmNode) => {
|
|
58447
|
+
const { parentKey, clsPrefix, scrollable } = this;
|
|
58448
|
+
const menuOptionsNode = this.tmNodes.map((tmNode) => {
|
|
58189
58449
|
const { rawNode } = tmNode;
|
|
58190
58450
|
if (isRenderNode(rawNode)) {
|
|
58191
58451
|
return /* @__PURE__ */ vue.h(NDropdownRenderOption, {
|
|
@@ -58212,9 +58472,21 @@
|
|
|
58212
58472
|
tmNode,
|
|
58213
58473
|
parentKey,
|
|
58214
58474
|
key: tmNode.key,
|
|
58215
|
-
props: rawNode.props
|
|
58475
|
+
props: rawNode.props,
|
|
58476
|
+
scrollable
|
|
58216
58477
|
});
|
|
58217
|
-
})
|
|
58478
|
+
});
|
|
58479
|
+
return /* @__PURE__ */ vue.h("div", {
|
|
58480
|
+
class: [
|
|
58481
|
+
`${clsPrefix}-dropdown-menu`,
|
|
58482
|
+
scrollable && `${clsPrefix}-dropdown-menu--scrollable`
|
|
58483
|
+
],
|
|
58484
|
+
ref: "bodyRef"
|
|
58485
|
+
}, scrollable ? /* @__PURE__ */ vue.h(XScrollbar, {
|
|
58486
|
+
contentClass: `${clsPrefix}-dropdown-menu__content`
|
|
58487
|
+
}, {
|
|
58488
|
+
default: () => menuOptionsNode
|
|
58489
|
+
}) : menuOptionsNode, this.showArrow ? renderArrow({
|
|
58218
58490
|
clsPrefix,
|
|
58219
58491
|
arrowStyle: this.arrowStyle
|
|
58220
58492
|
}) : null);
|
|
@@ -58222,8 +58494,7 @@
|
|
|
58222
58494
|
});
|
|
58223
58495
|
|
|
58224
58496
|
var style$T = cB("dropdown-menu", `
|
|
58225
|
-
transform-origin:
|
|
58226
|
-
padding: var(--n-padding);
|
|
58497
|
+
transform-origin: var(--v-transform-origin);
|
|
58227
58498
|
background-color: var(--n-color);
|
|
58228
58499
|
border-radius: var(--n-border-radius);
|
|
58229
58500
|
box-shadow: var(--n-box-shadow);
|
|
@@ -58262,7 +58533,7 @@
|
|
|
58262
58533
|
right: 4px;
|
|
58263
58534
|
transition: background-color .3s var(--n-bezier);
|
|
58264
58535
|
border-radius: var(--n-border-radius);
|
|
58265
|
-
`), cM("pending", {
|
|
58536
|
+
`), cNotM("disabled", [cM("pending", {
|
|
58266
58537
|
color: "var(--n-option-text-color-hover)"
|
|
58267
58538
|
}, [cE("prefix, suffix", {
|
|
58268
58539
|
color: "var(--n-option-text-color-hover)"
|
|
@@ -58270,14 +58541,14 @@
|
|
|
58270
58541
|
color: "var(--n-option-text-color-active)"
|
|
58271
58542
|
}, [cE("prefix, suffix", {
|
|
58272
58543
|
color: "var(--n-option-text-color-active)"
|
|
58273
|
-
}), c$1("&::before", "background-color: var(--n-option-color-active);")]), cM("
|
|
58274
|
-
cursor: "not-allowed",
|
|
58275
|
-
opacity: "var(--n-option-opacity-disabled)"
|
|
58276
|
-
}), cM("child-active", {
|
|
58544
|
+
}), c$1("&::before", "background-color: var(--n-option-color-active);")]), cM("child-active", {
|
|
58277
58545
|
color: "var(--n-option-text-color-child-active)"
|
|
58278
58546
|
}, [cE("prefix, suffix", {
|
|
58279
58547
|
color: "var(--n-option-text-color-child-active)"
|
|
58280
|
-
})]), cM("
|
|
58548
|
+
})])]), cM("disabled", {
|
|
58549
|
+
cursor: "not-allowed",
|
|
58550
|
+
opacity: "var(--n-option-opacity-disabled)"
|
|
58551
|
+
}), cM("group", {
|
|
58281
58552
|
fontSize: "calc(var(--n-font-size) - 1px)",
|
|
58282
58553
|
color: "var(--n-group-header-text-color)"
|
|
58283
58554
|
}, [cE("prefix", {
|
|
@@ -58327,9 +58598,16 @@
|
|
|
58327
58598
|
height: 1px;
|
|
58328
58599
|
margin: 4px 0;
|
|
58329
58600
|
`), cB("dropdown-menu-wrapper", `
|
|
58330
|
-
transform-origin:
|
|
58601
|
+
transform-origin: var(--v-transform-origin);
|
|
58331
58602
|
width: fit-content;
|
|
58332
|
-
`)
|
|
58603
|
+
`), c$1(">", [cB("scrollbar", `
|
|
58604
|
+
height: inherit;
|
|
58605
|
+
max-height: inherit;
|
|
58606
|
+
`)]), cNotM("scrollable", `
|
|
58607
|
+
padding: var(--n-padding);
|
|
58608
|
+
`), cM("scrollable", [cE("content", `
|
|
58609
|
+
padding: var(--n-padding);
|
|
58610
|
+
`)])]);
|
|
58333
58611
|
|
|
58334
58612
|
const dropdownBaseProps = {
|
|
58335
58613
|
animated: {
|
|
@@ -58354,6 +58632,7 @@
|
|
|
58354
58632
|
type: Array,
|
|
58355
58633
|
default: () => []
|
|
58356
58634
|
},
|
|
58635
|
+
menuProps: Function,
|
|
58357
58636
|
showArrow: Boolean,
|
|
58358
58637
|
renderLabel: Function,
|
|
58359
58638
|
renderIcon: Function,
|
|
@@ -58457,12 +58736,14 @@
|
|
|
58457
58736
|
mergedShowRef,
|
|
58458
58737
|
nodePropsRef: vue.toRef(props, "nodeProps"),
|
|
58459
58738
|
renderOptionRef: vue.toRef(props, "renderOption"),
|
|
58739
|
+
menuPropsRef: vue.toRef(props, "menuProps"),
|
|
58460
58740
|
doSelect,
|
|
58461
58741
|
doUpdateShow
|
|
58462
58742
|
});
|
|
58463
58743
|
vue.watch(mergedShowRef, (value) => {
|
|
58464
|
-
if (!value)
|
|
58744
|
+
if (!props.animated && !value) {
|
|
58465
58745
|
clearPendingState();
|
|
58746
|
+
}
|
|
58466
58747
|
});
|
|
58467
58748
|
function doSelect(key, node) {
|
|
58468
58749
|
const { onSelect } = props;
|
|
@@ -58613,6 +58894,11 @@
|
|
|
58613
58894
|
mergedTheme: themeRef,
|
|
58614
58895
|
tmNodes: tmNodesRef,
|
|
58615
58896
|
mergedShow: mergedShowRef,
|
|
58897
|
+
handleAfterLeave: () => {
|
|
58898
|
+
if (!props.animated)
|
|
58899
|
+
return;
|
|
58900
|
+
clearPendingState();
|
|
58901
|
+
},
|
|
58616
58902
|
doUpdateShow,
|
|
58617
58903
|
cssVars: inlineThemeDisabled ? void 0 : cssVarsRef,
|
|
58618
58904
|
themeClass: themeClassHandle?.themeClass,
|
|
@@ -58621,8 +58907,9 @@
|
|
|
58621
58907
|
},
|
|
58622
58908
|
render() {
|
|
58623
58909
|
const renderPopoverBody = (className, ref2, style2, onMouseenter, onMouseleave) => {
|
|
58624
|
-
const { mergedClsPrefix } = this;
|
|
58910
|
+
const { mergedClsPrefix, menuProps } = this;
|
|
58625
58911
|
this.onRender?.();
|
|
58912
|
+
const menuNodeProps = menuProps?.(void 0, this.tmNodes.map((v) => v.rawNode)) || {};
|
|
58626
58913
|
const dropdownProps2 = {
|
|
58627
58914
|
ref: createRefSetter(ref2),
|
|
58628
58915
|
class: [className, `${mergedClsPrefix}-dropdown`, this.themeClass],
|
|
@@ -58631,16 +58918,18 @@
|
|
|
58631
58918
|
style: [style2, this.cssVars],
|
|
58632
58919
|
showArrow: this.showArrow,
|
|
58633
58920
|
arrowStyle: this.arrowStyle,
|
|
58921
|
+
scrollable: this.scrollable,
|
|
58634
58922
|
onMouseenter,
|
|
58635
58923
|
onMouseleave
|
|
58636
58924
|
};
|
|
58637
|
-
return vue.h(NDropdownMenu, vue.mergeProps(this.$attrs, dropdownProps2));
|
|
58925
|
+
return vue.h(NDropdownMenu, vue.mergeProps(this.$attrs, dropdownProps2, menuNodeProps));
|
|
58638
58926
|
};
|
|
58639
58927
|
const { mergedTheme } = this;
|
|
58640
58928
|
const popoverProps = {
|
|
58641
58929
|
show: this.mergedShow,
|
|
58642
58930
|
theme: mergedTheme.peers.Popover,
|
|
58643
58931
|
themeOverrides: mergedTheme.peerOverrides.Popover,
|
|
58932
|
+
internalOnAfterLeave: this.handleAfterLeave,
|
|
58644
58933
|
internalRenderBody: renderPopoverBody,
|
|
58645
58934
|
onUpdateShow: this.doUpdateShow,
|
|
58646
58935
|
"onUpdate:show": void 0
|
|
@@ -58870,7 +59159,7 @@
|
|
|
58870
59159
|
onClick: column.type !== "selection" && column.type !== "expand" && !("children" in column) ? (e) => {
|
|
58871
59160
|
handleColHeaderClick(e, column);
|
|
58872
59161
|
} : void 0
|
|
58873
|
-
}, column.type === "selection" ? /* @__PURE__ */ vue.h(vue.Fragment, null, /* @__PURE__ */ vue.h(NCheckbox, {
|
|
59162
|
+
}, column.type === "selection" ? column.multiple !== false ? /* @__PURE__ */ vue.h(vue.Fragment, null, /* @__PURE__ */ vue.h(NCheckbox, {
|
|
58874
59163
|
key: currentPage,
|
|
58875
59164
|
privateInsideTable: true,
|
|
58876
59165
|
checked: allRowsChecked,
|
|
@@ -58879,7 +59168,7 @@
|
|
|
58879
59168
|
onUpdateChecked: handleCheckboxUpdateChecked
|
|
58880
59169
|
}), checkOptions ? /* @__PURE__ */ vue.h(SelectionMenu, {
|
|
58881
59170
|
clsPrefix: mergedClsPrefix
|
|
58882
|
-
}) : null) : ellipsis === true || ellipsis && !ellipsis.tooltip ? /* @__PURE__ */ vue.h("div", {
|
|
59171
|
+
}) : null) : null : ellipsis === true || ellipsis && !ellipsis.tooltip ? /* @__PURE__ */ vue.h("div", {
|
|
58883
59172
|
class: `${mergedClsPrefix}-data-table-th__ellipsis`
|
|
58884
59173
|
}, renderTitle(column)) : ellipsis && typeof ellipsis === "object" ? /* @__PURE__ */ vue.h(NEllipsis, {
|
|
58885
59174
|
...ellipsis,
|
|
@@ -59051,22 +59340,57 @@
|
|
|
59051
59340
|
}
|
|
59052
59341
|
});
|
|
59053
59342
|
|
|
59343
|
+
var RenderSafeRadio = vue.defineComponent({
|
|
59344
|
+
name: "DataTableBodyRadio",
|
|
59345
|
+
props: {
|
|
59346
|
+
rowKey: {
|
|
59347
|
+
type: [String, Number],
|
|
59348
|
+
required: true
|
|
59349
|
+
},
|
|
59350
|
+
disabled: {
|
|
59351
|
+
type: Boolean,
|
|
59352
|
+
required: true
|
|
59353
|
+
},
|
|
59354
|
+
onUpdateChecked: {
|
|
59355
|
+
type: Function,
|
|
59356
|
+
required: true
|
|
59357
|
+
}
|
|
59358
|
+
},
|
|
59359
|
+
setup(props) {
|
|
59360
|
+
const {
|
|
59361
|
+
mergedCheckedRowKeySetRef,
|
|
59362
|
+
componentId
|
|
59363
|
+
} = vue.inject(dataTableInjectionKey);
|
|
59364
|
+
return () => {
|
|
59365
|
+
const { rowKey } = props;
|
|
59366
|
+
return /* @__PURE__ */ vue.h(NRadio, {
|
|
59367
|
+
name: componentId,
|
|
59368
|
+
disabled: props.disabled,
|
|
59369
|
+
checked: mergedCheckedRowKeySetRef.value.has(rowKey),
|
|
59370
|
+
onUpdateChecked: props.onUpdateChecked
|
|
59371
|
+
});
|
|
59372
|
+
};
|
|
59373
|
+
}
|
|
59374
|
+
});
|
|
59375
|
+
|
|
59054
59376
|
function flatten(rowInfos, expandedRowKeys) {
|
|
59055
59377
|
const fRows = [];
|
|
59056
|
-
function traverse(rs) {
|
|
59378
|
+
function traverse(rs, rootIndex) {
|
|
59057
59379
|
rs.forEach((r) => {
|
|
59058
59380
|
if (r.children && expandedRowKeys.has(r.key)) {
|
|
59059
59381
|
fRows.push({
|
|
59060
59382
|
tmNode: r,
|
|
59061
59383
|
striped: false,
|
|
59062
|
-
key: r.key
|
|
59384
|
+
key: r.key,
|
|
59385
|
+
index: rootIndex
|
|
59063
59386
|
});
|
|
59064
|
-
traverse(r.children);
|
|
59387
|
+
traverse(r.children, rootIndex);
|
|
59065
59388
|
} else {
|
|
59066
59389
|
fRows.push({
|
|
59067
59390
|
key: r.key,
|
|
59068
59391
|
tmNode: r,
|
|
59069
|
-
striped: false
|
|
59392
|
+
striped: false,
|
|
59393
|
+
index: rootIndex
|
|
59070
59394
|
});
|
|
59071
59395
|
}
|
|
59072
59396
|
});
|
|
@@ -59075,7 +59399,7 @@
|
|
|
59075
59399
|
fRows.push(rowInfo);
|
|
59076
59400
|
const { children } = rowInfo.tmNode;
|
|
59077
59401
|
if (children && expandedRowKeys.has(rowInfo.key)) {
|
|
59078
|
-
traverse(children);
|
|
59402
|
+
traverse(children, rowInfo.index);
|
|
59079
59403
|
}
|
|
59080
59404
|
});
|
|
59081
59405
|
return fRows;
|
|
@@ -59188,7 +59512,7 @@
|
|
|
59188
59512
|
}
|
|
59189
59513
|
});
|
|
59190
59514
|
if (checked) {
|
|
59191
|
-
doCheck(rowKeysToCheck);
|
|
59515
|
+
doCheck(rowKeysToCheck, false);
|
|
59192
59516
|
} else {
|
|
59193
59517
|
doUncheck(rowKeysToCheck);
|
|
59194
59518
|
}
|
|
@@ -59197,12 +59521,15 @@
|
|
|
59197
59521
|
}
|
|
59198
59522
|
}
|
|
59199
59523
|
if (checked) {
|
|
59200
|
-
doCheck(tmNode.key);
|
|
59524
|
+
doCheck(tmNode.key, false);
|
|
59201
59525
|
} else {
|
|
59202
59526
|
doUncheck(tmNode.key);
|
|
59203
59527
|
}
|
|
59204
59528
|
lastSelectedKey = tmNode.key;
|
|
59205
59529
|
}
|
|
59530
|
+
function handleRadioUpdateChecked(tmNode) {
|
|
59531
|
+
doCheck(tmNode.key, true);
|
|
59532
|
+
}
|
|
59206
59533
|
function getScrollContainer() {
|
|
59207
59534
|
if (!shouldDisplaySomeTablePartRef.value) {
|
|
59208
59535
|
const { value: emptyEl } = emptyElRef;
|
|
@@ -59356,15 +59683,17 @@
|
|
|
59356
59683
|
return {
|
|
59357
59684
|
tmNode,
|
|
59358
59685
|
key: tmNode.key,
|
|
59359
|
-
striped: index % 2 === 1
|
|
59686
|
+
striped: index % 2 === 1,
|
|
59687
|
+
index
|
|
59360
59688
|
};
|
|
59361
|
-
} : (tmNode) => {
|
|
59689
|
+
} : (tmNode, index) => {
|
|
59362
59690
|
if (!tmNode.isLeaf)
|
|
59363
59691
|
hasChildren = true;
|
|
59364
59692
|
return {
|
|
59365
59693
|
tmNode,
|
|
59366
59694
|
key: tmNode.key,
|
|
59367
|
-
striped: false
|
|
59695
|
+
striped: false,
|
|
59696
|
+
index
|
|
59368
59697
|
};
|
|
59369
59698
|
});
|
|
59370
59699
|
return {
|
|
@@ -59397,6 +59726,7 @@
|
|
|
59397
59726
|
virtualListContent,
|
|
59398
59727
|
handleTableBodyScroll,
|
|
59399
59728
|
handleCheckboxUpdateChecked,
|
|
59729
|
+
handleRadioUpdateChecked,
|
|
59400
59730
|
handleUpdateExpanded,
|
|
59401
59731
|
renderCell,
|
|
59402
59732
|
...exposedMethods
|
|
@@ -59461,6 +59791,7 @@
|
|
|
59461
59791
|
renderExpand,
|
|
59462
59792
|
summary,
|
|
59463
59793
|
handleCheckboxUpdateChecked,
|
|
59794
|
+
handleRadioUpdateChecked,
|
|
59464
59795
|
handleUpdateExpanded
|
|
59465
59796
|
} = this;
|
|
59466
59797
|
const { length: colCount } = cols;
|
|
@@ -59478,7 +59809,8 @@
|
|
|
59478
59809
|
tmNode: {
|
|
59479
59810
|
rawNode: row,
|
|
59480
59811
|
disabled: true
|
|
59481
|
-
}
|
|
59812
|
+
},
|
|
59813
|
+
index: -1
|
|
59482
59814
|
}))
|
|
59483
59815
|
];
|
|
59484
59816
|
} else {
|
|
@@ -59490,7 +59822,8 @@
|
|
|
59490
59822
|
tmNode: {
|
|
59491
59823
|
rawNode: summaryRows,
|
|
59492
59824
|
disabled: true
|
|
59493
|
-
}
|
|
59825
|
+
},
|
|
59826
|
+
index: -1
|
|
59494
59827
|
}
|
|
59495
59828
|
];
|
|
59496
59829
|
}
|
|
@@ -59504,7 +59837,8 @@
|
|
|
59504
59837
|
displayedData.push(rowInfo, {
|
|
59505
59838
|
isExpandedRow: true,
|
|
59506
59839
|
key: `${rowInfo.key}-expand`,
|
|
59507
|
-
tmNode: rowInfo.tmNode
|
|
59840
|
+
tmNode: rowInfo.tmNode,
|
|
59841
|
+
index: rowInfo.index
|
|
59508
59842
|
});
|
|
59509
59843
|
} else {
|
|
59510
59844
|
displayedData.push(rowInfo);
|
|
@@ -59515,7 +59849,8 @@
|
|
|
59515
59849
|
paginatedData.forEach(({ tmNode }, rowIndex) => {
|
|
59516
59850
|
rowIndexToKey[rowIndex] = tmNode.key;
|
|
59517
59851
|
});
|
|
59518
|
-
const renderRow = (rowInfo,
|
|
59852
|
+
const renderRow = (rowInfo, displayedRowIndex, isVirtual) => {
|
|
59853
|
+
const { index: actualRowIndex } = rowInfo;
|
|
59519
59854
|
if ("isExpandedRow" in rowInfo) {
|
|
59520
59855
|
const {
|
|
59521
59856
|
tmNode: { key, rawNode }
|
|
@@ -59527,18 +59862,18 @@
|
|
|
59527
59862
|
class: [
|
|
59528
59863
|
`${mergedClsPrefix}-data-table-td`,
|
|
59529
59864
|
`${mergedClsPrefix}-data-table-td--last-col`,
|
|
59530
|
-
|
|
59865
|
+
displayedRowIndex + 1 === rowCount && `${mergedClsPrefix}-data-table-td--last-row`
|
|
59531
59866
|
],
|
|
59532
59867
|
colspan: colCount
|
|
59533
|
-
}, renderExpand(rawNode,
|
|
59868
|
+
}, renderExpand(rawNode, actualRowIndex)));
|
|
59534
59869
|
}
|
|
59535
59870
|
const isSummary = "isSummaryRow" in rowInfo;
|
|
59536
59871
|
const striped = !isSummary && rowInfo.striped;
|
|
59537
59872
|
const { tmNode, key: rowKey } = rowInfo;
|
|
59538
59873
|
const { rawNode: rowData } = tmNode;
|
|
59539
59874
|
const expanded = mergedExpandedRowKeySet.has(rowKey);
|
|
59540
|
-
const props = rowProps ? rowProps(rowData,
|
|
59541
|
-
const mergedRowClassName = typeof rowClassName === "string" ? rowClassName : createRowClassName(rowData,
|
|
59875
|
+
const props = rowProps ? rowProps(rowData, actualRowIndex) : void 0;
|
|
59876
|
+
const mergedRowClassName = typeof rowClassName === "string" ? rowClassName : createRowClassName(rowData, actualRowIndex, rowClassName);
|
|
59542
59877
|
const row = /* @__PURE__ */ vue.h("tr", {
|
|
59543
59878
|
onMouseenter: () => {
|
|
59544
59879
|
this.hoverKey = rowKey;
|
|
@@ -59552,8 +59887,8 @@
|
|
|
59552
59887
|
],
|
|
59553
59888
|
...props
|
|
59554
59889
|
}, cols.map((col, colIndex) => {
|
|
59555
|
-
if (
|
|
59556
|
-
const cordOfRowToPass = cordToPass[
|
|
59890
|
+
if (displayedRowIndex in cordToPass) {
|
|
59891
|
+
const cordOfRowToPass = cordToPass[displayedRowIndex];
|
|
59557
59892
|
const indexInCordOfRowToPass = cordOfRowToPass.indexOf(colIndex);
|
|
59558
59893
|
if (~indexInCordOfRowToPass) {
|
|
59559
59894
|
cordOfRowToPass.splice(indexInCordOfRowToPass, 1);
|
|
@@ -59563,24 +59898,25 @@
|
|
|
59563
59898
|
const { column } = col;
|
|
59564
59899
|
const colKey = getColKey(col);
|
|
59565
59900
|
const { rowSpan, colSpan } = column;
|
|
59566
|
-
const mergedColSpan = isSummary ? rowInfo.tmNode.rawNode[colKey]?.colSpan || 1 : colSpan ? colSpan(rowData,
|
|
59567
|
-
const mergedRowSpan = isSummary ? rowInfo.tmNode.rawNode[colKey]?.rowSpan || 1 : rowSpan ? rowSpan(rowData,
|
|
59901
|
+
const mergedColSpan = isSummary ? rowInfo.tmNode.rawNode[colKey]?.colSpan || 1 : colSpan ? colSpan(rowData, actualRowIndex) : 1;
|
|
59902
|
+
const mergedRowSpan = isSummary ? rowInfo.tmNode.rawNode[colKey]?.rowSpan || 1 : rowSpan ? rowSpan(rowData, actualRowIndex) : 1;
|
|
59568
59903
|
const isLastCol = colIndex + mergedColSpan === colCount;
|
|
59569
|
-
const isLastRow =
|
|
59904
|
+
const isLastRow = displayedRowIndex + mergedRowSpan === rowCount;
|
|
59570
59905
|
const isCrossRowTd = mergedRowSpan > 1;
|
|
59571
59906
|
if (isCrossRowTd) {
|
|
59572
|
-
cordKey[
|
|
59907
|
+
cordKey[displayedRowIndex] = {
|
|
59573
59908
|
[colIndex]: []
|
|
59574
59909
|
};
|
|
59575
59910
|
}
|
|
59576
59911
|
if (mergedColSpan > 1 || isCrossRowTd) {
|
|
59577
|
-
for (let i =
|
|
59912
|
+
for (let i = displayedRowIndex; i < displayedRowIndex + mergedRowSpan; ++i) {
|
|
59578
59913
|
if (isCrossRowTd) {
|
|
59579
|
-
cordKey[
|
|
59914
|
+
cordKey[displayedRowIndex][colIndex].push(rowIndexToKey[i]);
|
|
59580
59915
|
}
|
|
59581
59916
|
for (let j = colIndex; j < colIndex + mergedColSpan; ++j) {
|
|
59582
|
-
if (i ===
|
|
59917
|
+
if (i === displayedRowIndex && j === colIndex) {
|
|
59583
59918
|
continue;
|
|
59919
|
+
}
|
|
59584
59920
|
if (!(i in cordToPass)) {
|
|
59585
59921
|
cordToPass[i] = [j];
|
|
59586
59922
|
} else {
|
|
@@ -59591,7 +59927,7 @@
|
|
|
59591
59927
|
}
|
|
59592
59928
|
const hoverKey = isCrossRowTd ? this.hoverKey : null;
|
|
59593
59929
|
const { cellProps } = column;
|
|
59594
|
-
const resolvedCellProps = cellProps?.(rowData,
|
|
59930
|
+
const resolvedCellProps = cellProps?.(rowData, actualRowIndex);
|
|
59595
59931
|
return /* @__PURE__ */ vue.h("td", {
|
|
59596
59932
|
...resolvedCellProps,
|
|
59597
59933
|
key: colKey,
|
|
@@ -59611,7 +59947,7 @@
|
|
|
59611
59947
|
column.className,
|
|
59612
59948
|
resolvedCellProps?.class,
|
|
59613
59949
|
isSummary && `${mergedClsPrefix}-data-table-td--summary`,
|
|
59614
|
-
(hoverKey !== null && cordKey[
|
|
59950
|
+
(hoverKey !== null && cordKey[displayedRowIndex][colIndex].includes(hoverKey) || isColumnSorting(column, mergedSortState)) && `${mergedClsPrefix}-data-table-td--hover`,
|
|
59615
59951
|
column.fixed && `${mergedClsPrefix}-data-table-td--fixed-${column.fixed}`,
|
|
59616
59952
|
column.align && `${mergedClsPrefix}-data-table-td--${column.align}-align`,
|
|
59617
59953
|
{
|
|
@@ -59637,7 +59973,12 @@
|
|
|
59637
59973
|
handleUpdateExpanded(rowKey, rowInfo.tmNode);
|
|
59638
59974
|
}
|
|
59639
59975
|
})
|
|
59640
|
-
] : null, column.type === "selection" ? !isSummary ? /* @__PURE__ */ vue.h(
|
|
59976
|
+
] : null, column.type === "selection" ? !isSummary ? column.multiple === false ? /* @__PURE__ */ vue.h(RenderSafeRadio, {
|
|
59977
|
+
key: currentPage,
|
|
59978
|
+
rowKey,
|
|
59979
|
+
disabled: rowInfo.tmNode.disabled,
|
|
59980
|
+
onUpdateChecked: () => handleRadioUpdateChecked(rowInfo.tmNode)
|
|
59981
|
+
}) : /* @__PURE__ */ vue.h(RenderSafeCheckbox, {
|
|
59641
59982
|
key: currentPage,
|
|
59642
59983
|
rowKey,
|
|
59643
59984
|
disabled: rowInfo.tmNode.disabled,
|
|
@@ -59648,7 +59989,7 @@
|
|
|
59648
59989
|
onClick: () => handleUpdateExpanded(rowKey, null)
|
|
59649
59990
|
}) : null : null : /* @__PURE__ */ vue.h(Cell, {
|
|
59650
59991
|
clsPrefix: mergedClsPrefix,
|
|
59651
|
-
index:
|
|
59992
|
+
index: actualRowIndex,
|
|
59652
59993
|
row: rowData,
|
|
59653
59994
|
column,
|
|
59654
59995
|
isSummary,
|
|
@@ -59674,8 +60015,8 @@
|
|
|
59674
60015
|
}) : null, !this.empty ? /* @__PURE__ */ vue.h("tbody", {
|
|
59675
60016
|
"data-n-id": componentId,
|
|
59676
60017
|
class: `${mergedClsPrefix}-data-table-tbody`
|
|
59677
|
-
}, displayedData.map((rowInfo,
|
|
59678
|
-
return renderRow(rowInfo,
|
|
60018
|
+
}, displayedData.map((rowInfo, displayedRowIndex) => {
|
|
60019
|
+
return renderRow(rowInfo, displayedRowIndex, false);
|
|
59679
60020
|
})) : null);
|
|
59680
60021
|
} else {
|
|
59681
60022
|
return /* @__PURE__ */ vue.h(VVirtualList, {
|
|
@@ -59831,10 +60172,21 @@
|
|
|
59831
60172
|
} = data;
|
|
59832
60173
|
const uncontrolledCheckedRowKeysRef = vue.ref(props.defaultCheckedRowKeys);
|
|
59833
60174
|
const mergedCheckState = vue.computed(() => {
|
|
60175
|
+
var _selectionColumnRef$v;
|
|
60176
|
+
|
|
59834
60177
|
const {
|
|
59835
60178
|
checkedRowKeys
|
|
59836
60179
|
} = props;
|
|
59837
|
-
|
|
60180
|
+
const sourceKeys = checkedRowKeys === void 0 ? uncontrolledCheckedRowKeysRef.value : checkedRowKeys;
|
|
60181
|
+
|
|
60182
|
+
if (((_selectionColumnRef$v = selectionColumnRef.value) === null || _selectionColumnRef$v === void 0 ? void 0 : _selectionColumnRef$v.multiple) === false) {
|
|
60183
|
+
return {
|
|
60184
|
+
checkedKeys: sourceKeys.slice(0, 1),
|
|
60185
|
+
indeterminateKeys: []
|
|
60186
|
+
};
|
|
60187
|
+
}
|
|
60188
|
+
|
|
60189
|
+
return treeMateRef.value.getCheckedKeys(sourceKeys, {
|
|
59838
60190
|
cascade: props.cascade,
|
|
59839
60191
|
allowNotLoaded: props.allowCheckingNotLoaded
|
|
59840
60192
|
});
|
|
@@ -59894,7 +60246,9 @@
|
|
|
59894
60246
|
}
|
|
59895
60247
|
} = treeMateRef;
|
|
59896
60248
|
keys.forEach(key => {
|
|
59897
|
-
|
|
60249
|
+
var _getNode;
|
|
60250
|
+
|
|
60251
|
+
const row = (_getNode = getNode(key)) === null || _getNode === void 0 ? void 0 : _getNode.rawNode;
|
|
59898
60252
|
rows.push(row);
|
|
59899
60253
|
});
|
|
59900
60254
|
if (_onUpdateCheckedRowKeys) call(_onUpdateCheckedRowKeys, keys, rows);
|
|
@@ -59904,7 +60258,14 @@
|
|
|
59904
60258
|
}
|
|
59905
60259
|
|
|
59906
60260
|
function doCheck(rowKey) {
|
|
60261
|
+
let single = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
59907
60262
|
if (props.loading) return;
|
|
60263
|
+
|
|
60264
|
+
if (single) {
|
|
60265
|
+
doUpdateCheckedRowKeys(Array.isArray(rowKey) ? rowKey.slice(0, 1) : [rowKey]);
|
|
60266
|
+
return;
|
|
60267
|
+
}
|
|
60268
|
+
|
|
59908
60269
|
doUpdateCheckedRowKeys(treeMateRef.value.check(rowKey, mergedCheckedRowKeysRef.value, {
|
|
59909
60270
|
cascade: props.cascade,
|
|
59910
60271
|
allowNotLoaded: props.allowCheckingNotLoaded
|
|
@@ -60152,7 +60513,7 @@
|
|
|
60152
60513
|
}
|
|
60153
60514
|
|
|
60154
60515
|
function updateSortStatesByNewSortState(sortStates, sortState) {
|
|
60155
|
-
const index = sortStates.findIndex(state => sortState
|
|
60516
|
+
const index = sortStates.findIndex(state => (sortState === null || sortState === void 0 ? void 0 : sortState.columnKey) && state.columnKey === sortState.columnKey);
|
|
60156
60517
|
|
|
60157
60518
|
if (index !== void 0 && index >= 0) {
|
|
60158
60519
|
sortStates[index] = sortState;
|
|
@@ -60200,7 +60561,9 @@
|
|
|
60200
60561
|
getKey: props.rowKey,
|
|
60201
60562
|
getChildren: rowData => rowData[childrenKey],
|
|
60202
60563
|
getDisabled: rowData => {
|
|
60203
|
-
|
|
60564
|
+
var _selectionColumnRef$v, _selectionColumnRef$v2;
|
|
60565
|
+
|
|
60566
|
+
if ((_selectionColumnRef$v = selectionColumnRef.value) !== null && _selectionColumnRef$v !== void 0 && (_selectionColumnRef$v2 = _selectionColumnRef$v.disabled) !== null && _selectionColumnRef$v2 !== void 0 && _selectionColumnRef$v2.call(_selectionColumnRef$v, rowData)) {
|
|
60204
60567
|
return true;
|
|
60205
60568
|
}
|
|
60206
60569
|
|
|
@@ -60618,11 +60981,15 @@
|
|
|
60618
60981
|
let leftActiveFixedColKey = null;
|
|
60619
60982
|
|
|
60620
60983
|
for (let i = 0; i < leftFixedColumns.length; ++i) {
|
|
60984
|
+
var _fixedColumnLeftMap$k;
|
|
60985
|
+
|
|
60621
60986
|
const key = getColKey(leftFixedColumns[i]);
|
|
60622
60987
|
|
|
60623
|
-
if (scrollLeft > (fixedColumnLeftMap[key]
|
|
60988
|
+
if (scrollLeft > (((_fixedColumnLeftMap$k = fixedColumnLeftMap[key]) === null || _fixedColumnLeftMap$k === void 0 ? void 0 : _fixedColumnLeftMap$k.start) || 0) - leftWidth) {
|
|
60989
|
+
var _fixedColumnLeftMap$k2;
|
|
60990
|
+
|
|
60624
60991
|
leftActiveFixedColKey = key;
|
|
60625
|
-
leftWidth = fixedColumnLeftMap[key]
|
|
60992
|
+
leftWidth = ((_fixedColumnLeftMap$k2 = fixedColumnLeftMap[key]) === null || _fixedColumnLeftMap$k2 === void 0 ? void 0 : _fixedColumnLeftMap$k2.end) || 0;
|
|
60626
60993
|
} else {
|
|
60627
60994
|
break;
|
|
60628
60995
|
}
|
|
@@ -60660,11 +61027,15 @@
|
|
|
60660
61027
|
} = fixedColumnRightMapRef;
|
|
60661
61028
|
|
|
60662
61029
|
for (let i = rightFixedColumns.length - 1; i >= 0; --i) {
|
|
61030
|
+
var _fixedColumnRightMap$;
|
|
61031
|
+
|
|
60663
61032
|
const key = getColKey(rightFixedColumns[i]);
|
|
60664
61033
|
|
|
60665
|
-
if (Math.round(scrollLeft + (fixedColumnRightMap[key]
|
|
61034
|
+
if (Math.round(scrollLeft + (((_fixedColumnRightMap$ = fixedColumnRightMap[key]) === null || _fixedColumnRightMap$ === void 0 ? void 0 : _fixedColumnRightMap$.start) || 0) + tableWidth - rightWidth) < scrollWidth) {
|
|
61035
|
+
var _fixedColumnRightMap$2;
|
|
61036
|
+
|
|
60666
61037
|
rightActiveFixedColKey = key;
|
|
60667
|
-
rightWidth = fixedColumnRightMap[key]
|
|
61038
|
+
rightWidth = ((_fixedColumnRightMap$2 = fixedColumnRightMap[key]) === null || _fixedColumnRightMap$2 === void 0 ? void 0 : _fixedColumnRightMap$2.end) || 0;
|
|
60668
61039
|
} else {
|
|
60669
61040
|
break;
|
|
60670
61041
|
}
|
|
@@ -60710,7 +61081,9 @@
|
|
|
60710
61081
|
}
|
|
60711
61082
|
|
|
60712
61083
|
function handleTableBodyScroll(e) {
|
|
60713
|
-
|
|
61084
|
+
var _props$onScroll;
|
|
61085
|
+
|
|
61086
|
+
(_props$onScroll = props.onScroll) === null || _props$onScroll === void 0 ? void 0 : _props$onScroll.call(props, e);
|
|
60714
61087
|
|
|
60715
61088
|
if (scrollPartRef.value === "body") {
|
|
60716
61089
|
beforeNextFrameOnce(syncScrollState);
|
|
@@ -60831,7 +61204,9 @@
|
|
|
60831
61204
|
};
|
|
60832
61205
|
ensureColLayout(column.children, currentDepth + 1);
|
|
60833
61206
|
column.children.forEach(childColumn => {
|
|
60834
|
-
|
|
61207
|
+
var _rowItemMap$get;
|
|
61208
|
+
|
|
61209
|
+
rowItem.colSpan += ((_rowItemMap$get = rowItemMap.get(childColumn)) === null || _rowItemMap$get === void 0 ? void 0 : _rowItemMap$get.colSpan) ?? 0;
|
|
60835
61210
|
});
|
|
60836
61211
|
|
|
60837
61212
|
if (cachedCurrentLeafIndex + rowItem.colSpan === totalRowSpan) {
|
|
@@ -60910,10 +61285,12 @@
|
|
|
60910
61285
|
}
|
|
60911
61286
|
}
|
|
60912
61287
|
|
|
60913
|
-
const uncontrolledExpandedRowKeysRef = vue.ref(props.defaultExpandAll ? renderExpandRef
|
|
61288
|
+
const uncontrolledExpandedRowKeysRef = vue.ref(props.defaultExpandAll ? renderExpandRef !== null && renderExpandRef !== void 0 && renderExpandRef.value ? (() => {
|
|
60914
61289
|
const expandedKeys = [];
|
|
60915
61290
|
treeMateRef.value.treeNodes.forEach(tmNode => {
|
|
60916
|
-
|
|
61291
|
+
var _expandable;
|
|
61292
|
+
|
|
61293
|
+
if ((_expandable = expandable) !== null && _expandable !== void 0 && _expandable(tmNode.rawNode)) {
|
|
60917
61294
|
expandedKeys.push(tmNode.key);
|
|
60918
61295
|
}
|
|
60919
61296
|
});
|
|
@@ -61923,16 +62300,22 @@
|
|
|
61923
62300
|
value
|
|
61924
62301
|
} = mergedValueRef;
|
|
61925
62302
|
if (value === null || Array.isArray(value)) return void 0;
|
|
61926
|
-
return isTimeDisabled
|
|
62303
|
+
return isTimeDisabled === null || isTimeDisabled === void 0 ? void 0 : isTimeDisabled(value);
|
|
61927
62304
|
});
|
|
61928
62305
|
const isHourDisabledRef = vue.computed(() => {
|
|
61929
|
-
|
|
62306
|
+
var _timePickerValidatorR;
|
|
62307
|
+
|
|
62308
|
+
return (_timePickerValidatorR = timePickerValidatorRef.value) === null || _timePickerValidatorR === void 0 ? void 0 : _timePickerValidatorR.isHourDisabled;
|
|
61930
62309
|
});
|
|
61931
62310
|
const isMinuteDisabledRef = vue.computed(() => {
|
|
61932
|
-
|
|
62311
|
+
var _timePickerValidatorR2;
|
|
62312
|
+
|
|
62313
|
+
return (_timePickerValidatorR2 = timePickerValidatorRef.value) === null || _timePickerValidatorR2 === void 0 ? void 0 : _timePickerValidatorR2.isMinuteDisabled;
|
|
61933
62314
|
});
|
|
61934
62315
|
const isSecondDisabledRef = vue.computed(() => {
|
|
61935
|
-
|
|
62316
|
+
var _timePickerValidatorR3;
|
|
62317
|
+
|
|
62318
|
+
return (_timePickerValidatorR3 = timePickerValidatorRef.value) === null || _timePickerValidatorR3 === void 0 ? void 0 : _timePickerValidatorR3.isSecondDisabled;
|
|
61936
62319
|
});
|
|
61937
62320
|
const isDateInvalidRef = vue.computed(() => {
|
|
61938
62321
|
const {
|
|
@@ -62001,15 +62384,39 @@
|
|
|
62001
62384
|
return [void 0, void 0];
|
|
62002
62385
|
}
|
|
62003
62386
|
|
|
62004
|
-
return [isTimeDisabled
|
|
62387
|
+
return [isTimeDisabled === null || isTimeDisabled === void 0 ? void 0 : isTimeDisabled(value[0], "start", value), isTimeDisabled === null || isTimeDisabled === void 0 ? void 0 : isTimeDisabled(value[1], "end", value)];
|
|
62005
62388
|
});
|
|
62006
62389
|
const timeValidator = {
|
|
62007
|
-
isStartHourDisabledRef: vue.computed(() =>
|
|
62008
|
-
|
|
62009
|
-
|
|
62010
|
-
|
|
62011
|
-
|
|
62012
|
-
|
|
62390
|
+
isStartHourDisabledRef: vue.computed(() => {
|
|
62391
|
+
var _timePickerValidatorR4;
|
|
62392
|
+
|
|
62393
|
+
return (_timePickerValidatorR4 = timePickerValidatorRef.value[0]) === null || _timePickerValidatorR4 === void 0 ? void 0 : _timePickerValidatorR4.isHourDisabled;
|
|
62394
|
+
}),
|
|
62395
|
+
isEndHourDisabledRef: vue.computed(() => {
|
|
62396
|
+
var _timePickerValidatorR5;
|
|
62397
|
+
|
|
62398
|
+
return (_timePickerValidatorR5 = timePickerValidatorRef.value[1]) === null || _timePickerValidatorR5 === void 0 ? void 0 : _timePickerValidatorR5.isHourDisabled;
|
|
62399
|
+
}),
|
|
62400
|
+
isStartMinuteDisabledRef: vue.computed(() => {
|
|
62401
|
+
var _timePickerValidatorR6;
|
|
62402
|
+
|
|
62403
|
+
return (_timePickerValidatorR6 = timePickerValidatorRef.value[0]) === null || _timePickerValidatorR6 === void 0 ? void 0 : _timePickerValidatorR6.isMinuteDisabled;
|
|
62404
|
+
}),
|
|
62405
|
+
isEndMinuteDisabledRef: vue.computed(() => {
|
|
62406
|
+
var _timePickerValidatorR7;
|
|
62407
|
+
|
|
62408
|
+
return (_timePickerValidatorR7 = timePickerValidatorRef.value[1]) === null || _timePickerValidatorR7 === void 0 ? void 0 : _timePickerValidatorR7.isMinuteDisabled;
|
|
62409
|
+
}),
|
|
62410
|
+
isStartSecondDisabledRef: vue.computed(() => {
|
|
62411
|
+
var _timePickerValidatorR8;
|
|
62412
|
+
|
|
62413
|
+
return (_timePickerValidatorR8 = timePickerValidatorRef.value[0]) === null || _timePickerValidatorR8 === void 0 ? void 0 : _timePickerValidatorR8.isSecondDisabled;
|
|
62414
|
+
}),
|
|
62415
|
+
isEndSecondDisabledRef: vue.computed(() => {
|
|
62416
|
+
var _timePickerValidatorR9;
|
|
62417
|
+
|
|
62418
|
+
return (_timePickerValidatorR9 = timePickerValidatorRef.value[1]) === null || _timePickerValidatorR9 === void 0 ? void 0 : _timePickerValidatorR9.isSecondDisabled;
|
|
62419
|
+
})
|
|
62013
62420
|
};
|
|
62014
62421
|
const isStartDateInvalidRef = vue.computed(() => {
|
|
62015
62422
|
const {
|
|
@@ -68076,7 +68483,7 @@
|
|
|
68076
68483
|
value: el
|
|
68077
68484
|
} = selfRef;
|
|
68078
68485
|
|
|
68079
|
-
if (keyboardState.tab && e.target === el && el
|
|
68486
|
+
if (keyboardState.tab && e.target === el && el !== null && el !== void 0 && el.contains(e.relatedTarget)) {
|
|
68080
68487
|
doTabOut();
|
|
68081
68488
|
}
|
|
68082
68489
|
}
|
|
@@ -68421,18 +68828,20 @@
|
|
|
68421
68828
|
const {
|
|
68422
68829
|
value
|
|
68423
68830
|
} = yearVlRef;
|
|
68424
|
-
return value
|
|
68831
|
+
return value === null || value === void 0 ? void 0 : value.listElRef;
|
|
68425
68832
|
}
|
|
68426
68833
|
|
|
68427
68834
|
function virtualListContent() {
|
|
68428
68835
|
const {
|
|
68429
68836
|
value
|
|
68430
68837
|
} = yearVlRef;
|
|
68431
|
-
return value
|
|
68838
|
+
return value === null || value === void 0 ? void 0 : value.itemsElRef;
|
|
68432
68839
|
}
|
|
68433
68840
|
|
|
68434
68841
|
function handleVirtualListScroll(e) {
|
|
68435
|
-
|
|
68842
|
+
var _yearScrollbarRef$val;
|
|
68843
|
+
|
|
68844
|
+
(_yearScrollbarRef$val = yearScrollbarRef.value) === null || _yearScrollbarRef$val === void 0 ? void 0 : _yearScrollbarRef$val.sync();
|
|
68436
68845
|
}
|
|
68437
68846
|
|
|
68438
68847
|
function handleTimePickerChange(value) {
|
|
@@ -68537,7 +68946,7 @@
|
|
|
68537
68946
|
case "month":
|
|
68538
68947
|
return item.dateObject.month + 1;
|
|
68539
68948
|
case "quarter":
|
|
68540
|
-
return `Q
|
|
68949
|
+
return `Q${item.dateObject.quarter}`;
|
|
68541
68950
|
}
|
|
68542
68951
|
};
|
|
68543
68952
|
const { useAsQuickJump } = props;
|
|
@@ -69163,7 +69572,9 @@
|
|
|
69163
69572
|
}
|
|
69164
69573
|
|
|
69165
69574
|
function resetSelectingStatus(e) {
|
|
69166
|
-
|
|
69575
|
+
var _startDatesElRef$valu, _endDatesElRef$value;
|
|
69576
|
+
|
|
69577
|
+
if ((_startDatesElRef$valu = startDatesElRef.value) !== null && _startDatesElRef$valu !== void 0 && _startDatesElRef$valu.contains(e.target) || (_endDatesElRef$value = endDatesElRef.value) !== null && _endDatesElRef$value !== void 0 && _endDatesElRef$value.contains(e.target)) ; else {
|
|
69167
69578
|
isSelectingRef.value = false;
|
|
69168
69579
|
}
|
|
69169
69580
|
}
|
|
@@ -69555,26 +69966,38 @@
|
|
|
69555
69966
|
}
|
|
69556
69967
|
|
|
69557
69968
|
function handleStartYearVlScroll() {
|
|
69558
|
-
|
|
69969
|
+
var _startYearScrollbarRe;
|
|
69970
|
+
|
|
69971
|
+
(_startYearScrollbarRe = startYearScrollbarRef.value) === null || _startYearScrollbarRe === void 0 ? void 0 : _startYearScrollbarRe.sync();
|
|
69559
69972
|
}
|
|
69560
69973
|
|
|
69561
69974
|
function handleEndYearVlScroll() {
|
|
69562
|
-
|
|
69975
|
+
var _endYearScrollbarRef$;
|
|
69976
|
+
|
|
69977
|
+
(_endYearScrollbarRef$ = endYearScrollbarRef.value) === null || _endYearScrollbarRef$ === void 0 ? void 0 : _endYearScrollbarRef$.sync();
|
|
69563
69978
|
}
|
|
69564
69979
|
|
|
69565
69980
|
function virtualListContainer(type2) {
|
|
69566
69981
|
if (type2 === "start") {
|
|
69567
|
-
|
|
69982
|
+
var _startYearVlRef$value;
|
|
69983
|
+
|
|
69984
|
+
return (_startYearVlRef$value = startYearVlRef.value) === null || _startYearVlRef$value === void 0 ? void 0 : _startYearVlRef$value.listElRef;
|
|
69568
69985
|
} else {
|
|
69569
|
-
|
|
69986
|
+
var _endYearVlRef$value;
|
|
69987
|
+
|
|
69988
|
+
return (_endYearVlRef$value = endYearVlRef.value) === null || _endYearVlRef$value === void 0 ? void 0 : _endYearVlRef$value.listElRef;
|
|
69570
69989
|
}
|
|
69571
69990
|
}
|
|
69572
69991
|
|
|
69573
69992
|
function virtualListContent(type2) {
|
|
69574
69993
|
if (type2 === "start") {
|
|
69575
|
-
|
|
69994
|
+
var _startYearVlRef$value2;
|
|
69995
|
+
|
|
69996
|
+
return (_startYearVlRef$value2 = startYearVlRef.value) === null || _startYearVlRef$value2 === void 0 ? void 0 : _startYearVlRef$value2.itemsElRef;
|
|
69576
69997
|
} else {
|
|
69577
|
-
|
|
69998
|
+
var _endYearVlRef$value2;
|
|
69999
|
+
|
|
70000
|
+
return (_endYearVlRef$value2 = endYearVlRef.value) === null || _endYearVlRef$value2 === void 0 ? void 0 : _endYearVlRef$value2.itemsElRef;
|
|
69578
70001
|
}
|
|
69579
70002
|
}
|
|
69580
70003
|
|
|
@@ -69888,7 +70311,7 @@
|
|
|
69888
70311
|
themeOverrides: mergedTheme.peerOverrides.Button,
|
|
69889
70312
|
size: "tiny",
|
|
69890
70313
|
type: "primary",
|
|
69891
|
-
disabled: this.isRangeInvalid,
|
|
70314
|
+
disabled: this.isRangeInvalid || this.isSelecting,
|
|
69892
70315
|
onClick: this.handleConfirmClick
|
|
69893
70316
|
}, { default: () => this.locale.confirm }) : null)) : null, /* @__PURE__ */ vue.h(FocusDetector, {
|
|
69894
70317
|
onFocus: this.handleFocusDetectorFocus
|
|
@@ -70178,7 +70601,7 @@
|
|
|
70178
70601
|
themeOverrides: mergedTheme.peerOverrides.Button,
|
|
70179
70602
|
size: "tiny",
|
|
70180
70603
|
type: "primary",
|
|
70181
|
-
disabled: this.isRangeInvalid,
|
|
70604
|
+
disabled: this.isRangeInvalid || this.isSelecting,
|
|
70182
70605
|
onClick: this.handleConfirmClick
|
|
70183
70606
|
}, { default: () => this.locale.confirm }) : null)) : null, /* @__PURE__ */ vue.h(FocusDetector, {
|
|
70184
70607
|
onFocus: this.handleFocusDetectorFocus
|
|
@@ -70221,7 +70644,7 @@
|
|
|
70221
70644
|
onClick: () => {
|
|
70222
70645
|
handleColItemClick(item, type);
|
|
70223
70646
|
}
|
|
70224
|
-
}, item.type === "month" ? item.dateObject.month + 1 : item.type === "quarter" ? item.dateObject.quarter : item.dateObject.year);
|
|
70647
|
+
}, item.type === "month" ? item.dateObject.month + 1 : item.type === "quarter" ? `Q${item.dateObject.quarter}` : item.dateObject.year);
|
|
70225
70648
|
};
|
|
70226
70649
|
vue.onMounted(() => {
|
|
70227
70650
|
useCalendarRef.justifyColumnsScrollState();
|
|
@@ -70410,6 +70833,7 @@
|
|
|
70410
70833
|
min-width: var(--n-scroll-item-width);
|
|
70411
70834
|
height: calc(var(--n-scroll-item-height) * 6);
|
|
70412
70835
|
user-select: none;
|
|
70836
|
+
-webkit-user-select: none;
|
|
70413
70837
|
`, [c$1("&:first-child", `
|
|
70414
70838
|
min-width: calc(var(--n-scroll-item-width) + 4px);
|
|
70415
70839
|
`, [cE("picker-col-item", [c$1("&::before", "left: 4px;")])]), cE("padding", `
|
|
@@ -70518,6 +70942,7 @@
|
|
|
70518
70942
|
color: var(--n-arrow-color);
|
|
70519
70943
|
`), cE("month-year", `
|
|
70520
70944
|
user-select: none;
|
|
70945
|
+
-webkit-user-select: none;
|
|
70521
70946
|
flex-grow: 1;
|
|
70522
70947
|
position: relative;
|
|
70523
70948
|
`, [cE("text", `
|
|
@@ -70545,6 +70970,7 @@
|
|
|
70545
70970
|
border-bottom: 1px solid var(--n-calendar-days-divider-color);
|
|
70546
70971
|
`, [cE("day", `
|
|
70547
70972
|
user-select: none;
|
|
70973
|
+
-webkit-user-select: none;
|
|
70548
70974
|
line-height: 15px;
|
|
70549
70975
|
width: var(--n-item-size);
|
|
70550
70976
|
text-align: center;
|
|
@@ -70560,6 +70986,7 @@
|
|
|
70560
70986
|
flex-wrap: wrap;
|
|
70561
70987
|
`, [cB("date-panel-date", `
|
|
70562
70988
|
user-select: none;
|
|
70989
|
+
-webkit-user-select: none;
|
|
70563
70990
|
position: relative;
|
|
70564
70991
|
width: var(--n-item-size);
|
|
70565
70992
|
height: var(--n-item-size);
|
|
@@ -70887,37 +71314,46 @@
|
|
|
70887
71314
|
}
|
|
70888
71315
|
});
|
|
70889
71316
|
const mergedActionsRef = vue.computed(() => {
|
|
70890
|
-
const { actions, type } = props;
|
|
71317
|
+
const { actions, type, clearable } = props;
|
|
70891
71318
|
if (actions === null)
|
|
70892
71319
|
return [];
|
|
70893
71320
|
if (actions !== void 0)
|
|
70894
71321
|
return actions;
|
|
71322
|
+
const result = clearable ? ["clear"] : [];
|
|
70895
71323
|
switch (type) {
|
|
70896
71324
|
case "date": {
|
|
70897
|
-
|
|
71325
|
+
result.push("now");
|
|
71326
|
+
return result;
|
|
70898
71327
|
}
|
|
70899
71328
|
case "datetime": {
|
|
70900
|
-
|
|
71329
|
+
result.push("now", "confirm");
|
|
71330
|
+
return result;
|
|
70901
71331
|
}
|
|
70902
71332
|
case "daterange": {
|
|
70903
|
-
|
|
71333
|
+
result.push("confirm");
|
|
71334
|
+
return result;
|
|
70904
71335
|
}
|
|
70905
71336
|
case "datetimerange": {
|
|
70906
|
-
|
|
71337
|
+
result.push("confirm");
|
|
71338
|
+
return result;
|
|
70907
71339
|
}
|
|
70908
71340
|
case "month": {
|
|
70909
|
-
|
|
71341
|
+
result.push("now", "confirm");
|
|
71342
|
+
return result;
|
|
70910
71343
|
}
|
|
70911
71344
|
case "year": {
|
|
70912
|
-
|
|
71345
|
+
result.push("now");
|
|
71346
|
+
return result;
|
|
70913
71347
|
}
|
|
70914
71348
|
case "quarter": {
|
|
70915
|
-
|
|
71349
|
+
result.push("now", "confirm");
|
|
71350
|
+
return result;
|
|
70916
71351
|
}
|
|
70917
71352
|
case "monthrange":
|
|
70918
71353
|
case "yearrange":
|
|
70919
71354
|
case "quarterrange": {
|
|
70920
|
-
|
|
71355
|
+
result.push("confirm");
|
|
71356
|
+
return result;
|
|
70921
71357
|
}
|
|
70922
71358
|
default: {
|
|
70923
71359
|
warn$2("data-picker", "The type is wrong, n-date-picker's type only supports `date`, `datetime`, `daterange` and `datetimerange`.");
|
|
@@ -71711,7 +72147,7 @@
|
|
|
71711
72147
|
--n-merged-border-color: var(--n-border-color-popover);
|
|
71712
72148
|
`))]);
|
|
71713
72149
|
|
|
71714
|
-
const
|
|
72150
|
+
const descriptionsProps = {
|
|
71715
72151
|
...useTheme.props,
|
|
71716
72152
|
title: String,
|
|
71717
72153
|
column: {
|
|
@@ -71741,7 +72177,7 @@
|
|
|
71741
72177
|
};
|
|
71742
72178
|
var Descriptions = vue.defineComponent({
|
|
71743
72179
|
name: "Descriptions",
|
|
71744
|
-
props:
|
|
72180
|
+
props: descriptionsProps,
|
|
71745
72181
|
setup(props) {
|
|
71746
72182
|
const { mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props);
|
|
71747
72183
|
const themeRef = useTheme("Descriptions", "-descriptions", style$P, descriptionsLight$1, props, mergedClsPrefixRef);
|
|
@@ -71927,7 +72363,7 @@
|
|
|
71927
72363
|
}
|
|
71928
72364
|
});
|
|
71929
72365
|
|
|
71930
|
-
const
|
|
72366
|
+
const descriptionsItemProps = {
|
|
71931
72367
|
label: String,
|
|
71932
72368
|
span: {
|
|
71933
72369
|
type: Number,
|
|
@@ -71939,7 +72375,7 @@
|
|
|
71939
72375
|
var DescriptionsItem = vue.defineComponent({
|
|
71940
72376
|
name: "DescriptionsItem",
|
|
71941
72377
|
[DESCRIPTION_ITEM_FLAG]: true,
|
|
71942
|
-
props:
|
|
72378
|
+
props: descriptionsItemProps,
|
|
71943
72379
|
|
|
71944
72380
|
render() {
|
|
71945
72381
|
return null;
|
|
@@ -73127,6 +73563,8 @@
|
|
|
73127
73563
|
},
|
|
73128
73564
|
|
|
73129
73565
|
render() {
|
|
73566
|
+
var _this$$slots$default, _this$$slots;
|
|
73567
|
+
|
|
73130
73568
|
return vue.h(vue.Fragment, null, [this.dialogList.map(dialog => vue.h(NDialogEnvironment, omit(dialog, ["destroy", "style"], {
|
|
73131
73569
|
internalStyle: dialog.style,
|
|
73132
73570
|
to: this.to,
|
|
@@ -73139,7 +73577,7 @@
|
|
|
73139
73577
|
},
|
|
73140
73578
|
internalKey: dialog.key,
|
|
73141
73579
|
onInternalAfterLeave: this.handleAfterLeave
|
|
73142
|
-
}))), this.$slots.default
|
|
73580
|
+
}))), (_this$$slots$default = (_this$$slots = this.$slots).default) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)]);
|
|
73143
73581
|
}
|
|
73144
73582
|
|
|
73145
73583
|
});
|
|
@@ -73315,7 +73753,8 @@
|
|
|
73315
73753
|
closeIconColor,
|
|
73316
73754
|
closeIconColorHover,
|
|
73317
73755
|
closeIconColorPressed,
|
|
73318
|
-
borderRadius
|
|
73756
|
+
borderRadius,
|
|
73757
|
+
primaryColorHover
|
|
73319
73758
|
} = vars;
|
|
73320
73759
|
return {
|
|
73321
73760
|
bodyPadding: "16px 24px",
|
|
@@ -73337,7 +73776,8 @@
|
|
|
73337
73776
|
closeIconSize: "18px",
|
|
73338
73777
|
closeColorHover,
|
|
73339
73778
|
closeColorPressed,
|
|
73340
|
-
closeBorderRadius: borderRadius
|
|
73779
|
+
closeBorderRadius: borderRadius,
|
|
73780
|
+
resizableTriggerColorHover: primaryColorHover
|
|
73341
73781
|
};
|
|
73342
73782
|
};
|
|
73343
73783
|
const drawerLight = createTheme$1({
|
|
@@ -73395,6 +73835,7 @@
|
|
|
73395
73835
|
type: [Boolean, String],
|
|
73396
73836
|
required: true
|
|
73397
73837
|
},
|
|
73838
|
+
resizable: Boolean,
|
|
73398
73839
|
onClickoutside: Function,
|
|
73399
73840
|
onAfterLeave: Function,
|
|
73400
73841
|
onAfterEnter: Function,
|
|
@@ -73404,10 +73845,84 @@
|
|
|
73404
73845
|
const displayedRef = vue.ref(!!props.show);
|
|
73405
73846
|
const bodyRef = vue.ref(null);
|
|
73406
73847
|
const NDrawer = vue.inject(drawerInjectionKey);
|
|
73848
|
+
let startPosition = 0;
|
|
73849
|
+
let memoizedBodyStyleCursor = "";
|
|
73850
|
+
let hoverTimerId = null;
|
|
73851
|
+
const isHoverOnResizeTriggerRef = vue.ref(false);
|
|
73852
|
+
const isDraggingRef = vue.ref(false);
|
|
73853
|
+
const isVertical = vue.computed(() => {
|
|
73854
|
+
return props.placement === "top" || props.placement === "bottom";
|
|
73855
|
+
});
|
|
73856
|
+
const handleMousedownResizeTrigger = (e) => {
|
|
73857
|
+
isDraggingRef.value = true;
|
|
73858
|
+
startPosition = isVertical.value ? e.clientY : e.clientX;
|
|
73859
|
+
memoizedBodyStyleCursor = document.body.style.cursor;
|
|
73860
|
+
document.body.style.cursor = isVertical.value ? "ns-resize" : "ew-resize";
|
|
73861
|
+
document.body.addEventListener("mousemove", handleBodyMousemove);
|
|
73862
|
+
document.body.addEventListener("mouseleave", handleBodyMouseleave);
|
|
73863
|
+
document.body.addEventListener("mouseup", handleBodyMouseup);
|
|
73864
|
+
};
|
|
73865
|
+
const handleMouseenterResizeTrigger = () => {
|
|
73866
|
+
if (hoverTimerId !== null) {
|
|
73867
|
+
window.clearTimeout(hoverTimerId);
|
|
73868
|
+
hoverTimerId = null;
|
|
73869
|
+
}
|
|
73870
|
+
if (isDraggingRef.value) {
|
|
73871
|
+
isHoverOnResizeTriggerRef.value = true;
|
|
73872
|
+
} else {
|
|
73873
|
+
hoverTimerId = window.setTimeout(() => {
|
|
73874
|
+
isHoverOnResizeTriggerRef.value = true;
|
|
73875
|
+
}, 300);
|
|
73876
|
+
}
|
|
73877
|
+
};
|
|
73878
|
+
const handleMouseleaveResizeTrigger = () => {
|
|
73879
|
+
if (hoverTimerId !== null) {
|
|
73880
|
+
window.clearTimeout(hoverTimerId);
|
|
73881
|
+
hoverTimerId = null;
|
|
73882
|
+
}
|
|
73883
|
+
isHoverOnResizeTriggerRef.value = false;
|
|
73884
|
+
};
|
|
73885
|
+
const { doUpdateHeight, doUpdateWidth } = NDrawer;
|
|
73886
|
+
const handleBodyMousemove = (e) => {
|
|
73887
|
+
if (isDraggingRef.value) {
|
|
73888
|
+
if (isVertical.value) {
|
|
73889
|
+
let height = bodyRef.value?.offsetHeight || 0;
|
|
73890
|
+
const increment = startPosition - e.clientY;
|
|
73891
|
+
height += props.placement === "bottom" ? increment : -increment;
|
|
73892
|
+
doUpdateHeight(height);
|
|
73893
|
+
startPosition = e.clientY;
|
|
73894
|
+
} else {
|
|
73895
|
+
let width = bodyRef.value?.offsetWidth || 0;
|
|
73896
|
+
const increment = startPosition - e.clientX;
|
|
73897
|
+
width += props.placement === "right" ? increment : -increment;
|
|
73898
|
+
doUpdateWidth(width);
|
|
73899
|
+
startPosition = e.clientX;
|
|
73900
|
+
}
|
|
73901
|
+
}
|
|
73902
|
+
};
|
|
73903
|
+
const handleBodyMouseup = () => {
|
|
73904
|
+
if (isDraggingRef.value) {
|
|
73905
|
+
startPosition = 0;
|
|
73906
|
+
isDraggingRef.value = false;
|
|
73907
|
+
document.body.style.cursor = memoizedBodyStyleCursor;
|
|
73908
|
+
document.body.removeEventListener("mousemove", handleBodyMousemove);
|
|
73909
|
+
document.body.removeEventListener("mouseup", handleBodyMouseup);
|
|
73910
|
+
document.body.removeEventListener("mouseleave", handleBodyMouseleave);
|
|
73911
|
+
}
|
|
73912
|
+
};
|
|
73913
|
+
const handleBodyMouseleave = handleBodyMouseup;
|
|
73407
73914
|
vue.watchEffect(() => {
|
|
73408
73915
|
if (props.show)
|
|
73409
73916
|
displayedRef.value = true;
|
|
73410
73917
|
});
|
|
73918
|
+
vue.watch(() => props.show, (value) => {
|
|
73919
|
+
if (!value) {
|
|
73920
|
+
handleBodyMouseup();
|
|
73921
|
+
}
|
|
73922
|
+
});
|
|
73923
|
+
vue.onBeforeUnmount(() => {
|
|
73924
|
+
handleBodyMouseup();
|
|
73925
|
+
});
|
|
73411
73926
|
const bodyDirectivesRef = vue.computed(() => {
|
|
73412
73927
|
const { show } = props;
|
|
73413
73928
|
const directives = [[vue.vShow, show]];
|
|
@@ -73444,7 +73959,12 @@
|
|
|
73444
73959
|
}[props.placement];
|
|
73445
73960
|
}),
|
|
73446
73961
|
handleAfterLeave,
|
|
73447
|
-
bodyDirectives: bodyDirectivesRef
|
|
73962
|
+
bodyDirectives: bodyDirectivesRef,
|
|
73963
|
+
handleMousedownResizeTrigger,
|
|
73964
|
+
handleMouseenterResizeTrigger,
|
|
73965
|
+
handleMouseleaveResizeTrigger,
|
|
73966
|
+
isDragging: isDraggingRef,
|
|
73967
|
+
isHoverOnResizeTrigger: isHoverOnResizeTriggerRef
|
|
73448
73968
|
};
|
|
73449
73969
|
},
|
|
73450
73970
|
render() {
|
|
@@ -73470,9 +73990,19 @@
|
|
|
73470
73990
|
class: [
|
|
73471
73991
|
`${mergedClsPrefix}-drawer`,
|
|
73472
73992
|
`${mergedClsPrefix}-drawer--${this.placement}-placement`,
|
|
73993
|
+
this.isDragging && `${mergedClsPrefix}-drawer--unselectable`,
|
|
73473
73994
|
this.nativeScrollbar && `${mergedClsPrefix}-drawer--native-scrollbar`
|
|
73474
73995
|
]
|
|
73475
73996
|
}), [
|
|
73997
|
+
this.resizable ? /* @__PURE__ */ vue.h("div", {
|
|
73998
|
+
class: [
|
|
73999
|
+
`${mergedClsPrefix}-drawer__resize-trigger`,
|
|
74000
|
+
(this.isDragging || this.isHoverOnResizeTrigger) && `${mergedClsPrefix}-drawer__resize-trigger--hover`
|
|
74001
|
+
],
|
|
74002
|
+
onMouseenter: this.handleMouseenterResizeTrigger,
|
|
74003
|
+
onMouseleave: this.handleMouseleaveResizeTrigger,
|
|
74004
|
+
onMousedown: this.handleMousedownResizeTrigger
|
|
74005
|
+
}) : null,
|
|
73476
74006
|
this.nativeScrollbar ? /* @__PURE__ */ vue.h("div", {
|
|
73477
74007
|
class: `${mergedClsPrefix}-drawer-content-wrapper`,
|
|
73478
74008
|
style: this.contentStyle,
|
|
@@ -73607,9 +74137,18 @@
|
|
|
73607
74137
|
background-color: var(--n-color);
|
|
73608
74138
|
color: var(--n-text-color);
|
|
73609
74139
|
box-sizing: border-box;
|
|
73610
|
-
`, [slideInFromRightTransition(), slideInFromLeftTransition(), slideInFromTopTransition(), slideInFromBottomTransition(), cM("
|
|
74140
|
+
`, [slideInFromRightTransition(), slideInFromLeftTransition(), slideInFromTopTransition(), slideInFromBottomTransition(), cM("unselectable", `
|
|
74141
|
+
user-select: none;
|
|
74142
|
+
-webkit-user-select: none;
|
|
74143
|
+
`), cM("native-scrollbar", [cB("drawer-content-wrapper", `
|
|
73611
74144
|
overflow: auto;
|
|
73612
74145
|
height: 100%;
|
|
74146
|
+
`)]), cE("resize-trigger", `
|
|
74147
|
+
position: absolute;
|
|
74148
|
+
background-color: #0000;
|
|
74149
|
+
transition: background-color .3s var(--n-bezier);
|
|
74150
|
+
`, [cM("hover", `
|
|
74151
|
+
background-color: var(--n-resize-trigger-color-hover);
|
|
73613
74152
|
`)]), cB("drawer-content-wrapper", `
|
|
73614
74153
|
box-sizing: border-box;
|
|
73615
74154
|
`), cB("drawer-content", `
|
|
@@ -73652,19 +74191,47 @@
|
|
|
73652
74191
|
top: 0;
|
|
73653
74192
|
bottom: 0;
|
|
73654
74193
|
right: 0;
|
|
73655
|
-
|
|
74194
|
+
`, [cE("resize-trigger", `
|
|
74195
|
+
width: 3px;
|
|
74196
|
+
height: 100%;
|
|
74197
|
+
top: 0;
|
|
74198
|
+
left: 0;
|
|
74199
|
+
transform: translateX(-1.5px);
|
|
74200
|
+
cursor: ew-resize;
|
|
74201
|
+
`)]), cM("left-placement", `
|
|
73656
74202
|
top: 0;
|
|
73657
74203
|
bottom: 0;
|
|
73658
74204
|
left: 0;
|
|
73659
|
-
|
|
74205
|
+
`, [cE("resize-trigger", `
|
|
74206
|
+
width: 3px;
|
|
74207
|
+
height: 100%;
|
|
74208
|
+
top: 0;
|
|
74209
|
+
right: 0;
|
|
74210
|
+
transform: translateX(1.5px);
|
|
74211
|
+
cursor: ew-resize;
|
|
74212
|
+
`)]), cM("top-placement", `
|
|
73660
74213
|
top: 0;
|
|
73661
74214
|
left: 0;
|
|
73662
74215
|
right: 0;
|
|
73663
|
-
|
|
74216
|
+
`, [cE("resize-trigger", `
|
|
74217
|
+
width: 100%;
|
|
74218
|
+
height: 3px;
|
|
74219
|
+
bottom: 0;
|
|
74220
|
+
left: 0;
|
|
74221
|
+
transform: translateY(1.5px);
|
|
74222
|
+
cursor: ns-resize;
|
|
74223
|
+
`)]), cM("bottom-placement", `
|
|
73664
74224
|
left: 0;
|
|
73665
74225
|
bottom: 0;
|
|
73666
74226
|
right: 0;
|
|
73667
|
-
|
|
74227
|
+
`, [cE("resize-trigger", `
|
|
74228
|
+
width: 100%;
|
|
74229
|
+
height: 3px;
|
|
74230
|
+
top: 0;
|
|
74231
|
+
left: 0;
|
|
74232
|
+
transform: translateY(-1.5px);
|
|
74233
|
+
cursor: ns-resize;
|
|
74234
|
+
`)])]), c$1("body", [c$1(">", [cB("drawer-container", {
|
|
73668
74235
|
position: "fixed"
|
|
73669
74236
|
})])]), cB("drawer-container", `
|
|
73670
74237
|
position: relative;
|
|
@@ -73695,14 +74262,8 @@
|
|
|
73695
74262
|
const drawerProps = {
|
|
73696
74263
|
...useTheme.props,
|
|
73697
74264
|
show: Boolean,
|
|
73698
|
-
width:
|
|
73699
|
-
|
|
73700
|
-
default: 251
|
|
73701
|
-
},
|
|
73702
|
-
height: {
|
|
73703
|
-
type: [Number, String],
|
|
73704
|
-
default: 251
|
|
73705
|
-
},
|
|
74265
|
+
width: [Number, String],
|
|
74266
|
+
height: [Number, String],
|
|
73706
74267
|
placement: {
|
|
73707
74268
|
type: String,
|
|
73708
74269
|
default: "right"
|
|
@@ -73745,6 +74306,19 @@
|
|
|
73745
74306
|
type: Boolean,
|
|
73746
74307
|
default: true
|
|
73747
74308
|
},
|
|
74309
|
+
resizable: Boolean,
|
|
74310
|
+
defaultWidth: {
|
|
74311
|
+
type: Number,
|
|
74312
|
+
default: 251
|
|
74313
|
+
},
|
|
74314
|
+
defaultHeight: {
|
|
74315
|
+
type: Number,
|
|
74316
|
+
default: 251
|
|
74317
|
+
},
|
|
74318
|
+
onUpdateWidth: [Function, Array],
|
|
74319
|
+
onUpdateHeight: [Function, Array],
|
|
74320
|
+
"onUpdate:width": [Function, Array],
|
|
74321
|
+
"onUpdate:height": [Function, Array],
|
|
73748
74322
|
"onUpdate:show": [Function, Array],
|
|
73749
74323
|
onUpdateShow: [Function, Array],
|
|
73750
74324
|
onAfterEnter: Function,
|
|
@@ -73782,20 +74356,38 @@
|
|
|
73782
74356
|
const { mergedClsPrefixRef, namespaceRef, inlineThemeDisabled } = useConfig(props);
|
|
73783
74357
|
const isMountedRef = isMounted();
|
|
73784
74358
|
const themeRef = useTheme("Drawer", "-drawer", style$L, drawerLight$1, props, mergedClsPrefixRef);
|
|
74359
|
+
const uncontrolledWidthRef = vue.ref(props.defaultWidth);
|
|
74360
|
+
const uncontrolledHeightRef = vue.ref(props.defaultHeight);
|
|
74361
|
+
const mergedWidthRef = useMergedState(vue.toRef(props, "width"), uncontrolledWidthRef);
|
|
74362
|
+
const mergedHeightRef = useMergedState(vue.toRef(props, "height"), uncontrolledHeightRef);
|
|
73785
74363
|
const styleWidthRef = vue.computed(() => {
|
|
73786
74364
|
const { placement } = props;
|
|
73787
74365
|
if (placement === "top" || placement === "bottom")
|
|
73788
74366
|
return "";
|
|
73789
|
-
|
|
73790
|
-
return formatLength(width);
|
|
74367
|
+
return formatLength(mergedWidthRef.value);
|
|
73791
74368
|
});
|
|
73792
74369
|
const styleHeightRef = vue.computed(() => {
|
|
73793
74370
|
const { placement } = props;
|
|
73794
74371
|
if (placement === "left" || placement === "right")
|
|
73795
74372
|
return "";
|
|
73796
|
-
|
|
73797
|
-
|
|
73798
|
-
|
|
74373
|
+
return formatLength(mergedHeightRef.value);
|
|
74374
|
+
});
|
|
74375
|
+
const doUpdateWidth = (value) => {
|
|
74376
|
+
const { onUpdateWidth, "onUpdate:width": _onUpdateWidth } = props;
|
|
74377
|
+
if (onUpdateWidth)
|
|
74378
|
+
call(onUpdateWidth, value);
|
|
74379
|
+
if (_onUpdateWidth)
|
|
74380
|
+
call(_onUpdateWidth, value);
|
|
74381
|
+
uncontrolledWidthRef.value = value;
|
|
74382
|
+
};
|
|
74383
|
+
const doUpdateHeight = (value) => {
|
|
74384
|
+
const { onUpdateHeight, "onUpdate:width": _onUpdateHeight } = props;
|
|
74385
|
+
if (onUpdateHeight)
|
|
74386
|
+
call(onUpdateHeight, value);
|
|
74387
|
+
if (_onUpdateHeight)
|
|
74388
|
+
call(_onUpdateHeight, value);
|
|
74389
|
+
uncontrolledHeightRef.value = value;
|
|
74390
|
+
};
|
|
73799
74391
|
const mergedBodyStyleRef = vue.computed(() => {
|
|
73800
74392
|
return [
|
|
73801
74393
|
{
|
|
@@ -73833,7 +74425,9 @@
|
|
|
73833
74425
|
isMountedRef,
|
|
73834
74426
|
mergedThemeRef: themeRef,
|
|
73835
74427
|
mergedClsPrefixRef,
|
|
73836
|
-
doUpdateShow
|
|
74428
|
+
doUpdateShow,
|
|
74429
|
+
doUpdateHeight,
|
|
74430
|
+
doUpdateWidth
|
|
73837
74431
|
});
|
|
73838
74432
|
const cssVarsRef = vue.computed(() => {
|
|
73839
74433
|
const {
|
|
@@ -73858,7 +74452,8 @@
|
|
|
73858
74452
|
closeColorPressed,
|
|
73859
74453
|
closeIconSize,
|
|
73860
74454
|
closeSize,
|
|
73861
|
-
closeBorderRadius
|
|
74455
|
+
closeBorderRadius,
|
|
74456
|
+
resizableTriggerColorHover
|
|
73862
74457
|
}
|
|
73863
74458
|
} = themeRef.value;
|
|
73864
74459
|
return {
|
|
@@ -73884,7 +74479,8 @@
|
|
|
73884
74479
|
"--n-close-color-hover": closeColorHover,
|
|
73885
74480
|
"--n-close-color-pressed": closeColorPressed,
|
|
73886
74481
|
"--n-close-icon-size": closeIconSize,
|
|
73887
|
-
"--n-close-border-radius": closeBorderRadius
|
|
74482
|
+
"--n-close-border-radius": closeBorderRadius,
|
|
74483
|
+
"--n-resize-trigger-color-hover": resizableTriggerColorHover
|
|
73888
74484
|
};
|
|
73889
74485
|
});
|
|
73890
74486
|
const themeClassHandle = inlineThemeDisabled ? useThemeClass("drawer", void 0, cssVarsRef, props) : void 0;
|
|
@@ -73944,6 +74540,7 @@
|
|
|
73944
74540
|
onAfterLeave: this.onAfterLeave,
|
|
73945
74541
|
trapFocus: this.trapFocus,
|
|
73946
74542
|
autoFocus: this.autoFocus,
|
|
74543
|
+
resizable: this.resizable,
|
|
73947
74544
|
showMask: this.showMask,
|
|
73948
74545
|
onEsc: this.handleEsc,
|
|
73949
74546
|
onClickoutside: this.handleMaskClick
|
|
@@ -75118,12 +75715,14 @@
|
|
|
75118
75715
|
return {
|
|
75119
75716
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
75120
75717
|
cssVars: inlineThemeDisabled ? void 0 : cssVarsRef,
|
|
75121
|
-
themeClass: themeClassHandle
|
|
75122
|
-
onRender: themeClassHandle
|
|
75718
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
75719
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
75123
75720
|
};
|
|
75124
75721
|
},
|
|
75125
75722
|
|
|
75126
75723
|
render() {
|
|
75724
|
+
var _$slots$default;
|
|
75725
|
+
|
|
75127
75726
|
const {
|
|
75128
75727
|
tag,
|
|
75129
75728
|
mergedClsPrefix,
|
|
@@ -75132,12 +75731,12 @@
|
|
|
75132
75731
|
onRender,
|
|
75133
75732
|
$slots
|
|
75134
75733
|
} = this;
|
|
75135
|
-
onRender
|
|
75734
|
+
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
75136
75735
|
return vue.h(tag, {
|
|
75137
75736
|
role: "none",
|
|
75138
75737
|
class: [`${mergedClsPrefix}-element`, themeClass],
|
|
75139
75738
|
style: cssVars
|
|
75140
|
-
}, $slots.default
|
|
75739
|
+
}, (_$slots$default = $slots.default) === null || _$slots$default === void 0 ? void 0 : _$slots$default.call($slots));
|
|
75141
75740
|
}
|
|
75142
75741
|
|
|
75143
75742
|
});
|
|
@@ -76666,7 +77265,7 @@
|
|
|
76666
77265
|
return {
|
|
76667
77266
|
mergedSize: vue.computed(() => {
|
|
76668
77267
|
if (props.size !== void 0) return props.size;
|
|
76669
|
-
if (NForm
|
|
77268
|
+
if ((NForm === null || NForm === void 0 ? void 0 : NForm.props.size) !== void 0) return NForm.props.size;
|
|
76670
77269
|
return "medium";
|
|
76671
77270
|
})
|
|
76672
77271
|
};
|
|
@@ -76683,8 +77282,8 @@
|
|
|
76683
77282
|
return formatLength(labelWidth);
|
|
76684
77283
|
}
|
|
76685
77284
|
|
|
76686
|
-
if (labelWidth === "auto" || NForm
|
|
76687
|
-
const autoComputedWidth = NForm
|
|
77285
|
+
if (labelWidth === "auto" || (NForm === null || NForm === void 0 ? void 0 : NForm.props.labelWidth) === "auto") {
|
|
77286
|
+
const autoComputedWidth = NForm === null || NForm === void 0 ? void 0 : NForm.maxChildLabelWidthRef.value;
|
|
76688
77287
|
|
|
76689
77288
|
if (autoComputedWidth !== void 0) {
|
|
76690
77289
|
return formatLength(autoComputedWidth);
|
|
@@ -76693,7 +77292,7 @@
|
|
|
76693
77292
|
}
|
|
76694
77293
|
}
|
|
76695
77294
|
|
|
76696
|
-
if (NForm
|
|
77295
|
+
if ((NForm === null || NForm === void 0 ? void 0 : NForm.props.labelWidth) !== void 0) {
|
|
76697
77296
|
return formatLength(NForm.props.labelWidth);
|
|
76698
77297
|
}
|
|
76699
77298
|
|
|
@@ -76704,7 +77303,7 @@
|
|
|
76704
77303
|
labelPlacement
|
|
76705
77304
|
} = props;
|
|
76706
77305
|
if (labelPlacement !== void 0) return labelPlacement;
|
|
76707
|
-
if (NForm
|
|
77306
|
+
if (NForm !== null && NForm !== void 0 && NForm.props.labelPlacement) return NForm.props.labelPlacement;
|
|
76708
77307
|
return "top";
|
|
76709
77308
|
});
|
|
76710
77309
|
const mergedLabelAlignRef = vue.computed(() => {
|
|
@@ -76712,11 +77311,13 @@
|
|
|
76712
77311
|
labelAlign
|
|
76713
77312
|
} = props;
|
|
76714
77313
|
if (labelAlign) return labelAlign;
|
|
76715
|
-
if (NForm
|
|
77314
|
+
if (NForm !== null && NForm !== void 0 && NForm.props.labelAlign) return NForm.props.labelAlign;
|
|
76716
77315
|
return void 0;
|
|
76717
77316
|
});
|
|
76718
77317
|
const mergedLabelStyleRef = vue.computed(() => {
|
|
76719
|
-
|
|
77318
|
+
var _props$labelProps;
|
|
77319
|
+
|
|
77320
|
+
return [(_props$labelProps = props.labelProps) === null || _props$labelProps === void 0 ? void 0 : _props$labelProps.style, props.labelStyle, {
|
|
76720
77321
|
width: mergedLabelWidthRef.value
|
|
76721
77322
|
}];
|
|
76722
77323
|
});
|
|
@@ -76725,14 +77326,14 @@
|
|
|
76725
77326
|
showRequireMark
|
|
76726
77327
|
} = props;
|
|
76727
77328
|
if (showRequireMark !== void 0) return showRequireMark;
|
|
76728
|
-
return NForm
|
|
77329
|
+
return NForm === null || NForm === void 0 ? void 0 : NForm.props.showRequireMark;
|
|
76729
77330
|
});
|
|
76730
77331
|
const mergedRequireMarkPlacementRef = vue.computed(() => {
|
|
76731
77332
|
const {
|
|
76732
77333
|
requireMarkPlacement
|
|
76733
77334
|
} = props;
|
|
76734
77335
|
if (requireMarkPlacement !== void 0) return requireMarkPlacement;
|
|
76735
|
-
return NForm
|
|
77336
|
+
return (NForm === null || NForm === void 0 ? void 0 : NForm.props.requireMarkPlacement) || "right";
|
|
76736
77337
|
});
|
|
76737
77338
|
const validationErroredRef = vue.ref(false);
|
|
76738
77339
|
const mergedValidationStatusRef = vue.computed(() => {
|
|
@@ -76748,7 +77349,7 @@
|
|
|
76748
77349
|
showFeedback
|
|
76749
77350
|
} = props;
|
|
76750
77351
|
if (showFeedback !== void 0) return showFeedback;
|
|
76751
|
-
if (NForm
|
|
77352
|
+
if ((NForm === null || NForm === void 0 ? void 0 : NForm.props.showFeedback) !== void 0) return NForm.props.showFeedback;
|
|
76752
77353
|
return true;
|
|
76753
77354
|
});
|
|
76754
77355
|
const mergedShowLabelRef = vue.computed(() => {
|
|
@@ -76756,7 +77357,7 @@
|
|
|
76756
77357
|
showLabel
|
|
76757
77358
|
} = props;
|
|
76758
77359
|
if (showLabel !== void 0) return showLabel;
|
|
76759
|
-
if (NForm
|
|
77360
|
+
if ((NForm === null || NForm === void 0 ? void 0 : NForm.props.showLabel) !== void 0) return NForm.props.showLabel;
|
|
76760
77361
|
return true;
|
|
76761
77362
|
});
|
|
76762
77363
|
return {
|
|
@@ -76870,10 +77471,12 @@
|
|
|
76870
77471
|
box-sizing: border-box;
|
|
76871
77472
|
`, [cE("asterisk", `
|
|
76872
77473
|
user-select: none;
|
|
77474
|
+
-webkit-user-select: none;
|
|
76873
77475
|
color: var(--n-asterisk-color);
|
|
76874
77476
|
transition: color .3s var(--n-bezier);
|
|
76875
77477
|
`), cE("asterisk-placeholder", `
|
|
76876
77478
|
user-select: none;
|
|
77479
|
+
-webkit-user-select: none;
|
|
76877
77480
|
visibility: hidden;
|
|
76878
77481
|
`)]), cB("form-item-blank", {
|
|
76879
77482
|
gridArea: "blank",
|
|
@@ -77686,6 +78289,8 @@
|
|
|
77686
78289
|
let firstApply = true;
|
|
77687
78290
|
vue.onBeforeMount(() => {
|
|
77688
78291
|
vue.watchEffect(() => {
|
|
78292
|
+
var _NConfigProvider$merg, _NConfigProvider$merg2;
|
|
78293
|
+
|
|
77689
78294
|
const {
|
|
77690
78295
|
textColor2,
|
|
77691
78296
|
fontSize,
|
|
@@ -77693,7 +78298,7 @@
|
|
|
77693
78298
|
bodyColor,
|
|
77694
78299
|
cubicBezierEaseInOut,
|
|
77695
78300
|
lineHeight
|
|
77696
|
-
} = NConfigProvider ? lodash.exports.merge({}, NConfigProvider.mergedThemeRef.value
|
|
78301
|
+
} = NConfigProvider ? lodash.exports.merge({}, ((_NConfigProvider$merg = NConfigProvider.mergedThemeRef.value) === null || _NConfigProvider$merg === void 0 ? void 0 : _NConfigProvider$merg.common) || commonLight, (_NConfigProvider$merg2 = NConfigProvider.mergedThemeOverridesRef.value) === null || _NConfigProvider$merg2 === void 0 ? void 0 : _NConfigProvider$merg2.common) : commonLight;
|
|
77697
78302
|
|
|
77698
78303
|
if (styleApplied || !body.hasAttribute("n-styled")) {
|
|
77699
78304
|
style.setProperty("-webkit-text-size-adjust", "100%");
|
|
@@ -78225,6 +78830,14 @@
|
|
|
78225
78830
|
}
|
|
78226
78831
|
});
|
|
78227
78832
|
|
|
78833
|
+
const imagePreviewSharedProps = { ...useTheme.props,
|
|
78834
|
+
showToolbar: {
|
|
78835
|
+
type: Boolean,
|
|
78836
|
+
default: true
|
|
78837
|
+
},
|
|
78838
|
+
showToolbarTooltip: Boolean
|
|
78839
|
+
};
|
|
78840
|
+
|
|
78228
78841
|
function self$u() {
|
|
78229
78842
|
return {
|
|
78230
78843
|
toolbarIconColor: "rgba(255, 255, 255, .9)",
|
|
@@ -80242,14 +80855,6 @@
|
|
|
80242
80855
|
fill: "currentColor"
|
|
80243
80856
|
}));
|
|
80244
80857
|
|
|
80245
|
-
const imagePreviewSharedProps = { ...useTheme.props,
|
|
80246
|
-
showToolbar: {
|
|
80247
|
-
type: Boolean,
|
|
80248
|
-
default: true
|
|
80249
|
-
},
|
|
80250
|
-
showToolbarTooltip: Boolean
|
|
80251
|
-
};
|
|
80252
|
-
|
|
80253
80858
|
var style$D = c$1([c$1("body >", [cB("image-container", "position: fixed;")]), cB("image-preview-container", `
|
|
80254
80859
|
position: fixed;
|
|
80255
80860
|
left: 0;
|
|
@@ -80294,6 +80899,7 @@
|
|
|
80294
80899
|
pointer-events: none;
|
|
80295
80900
|
`, [fadeInScaleUpTransition()]), cB("image-preview", `
|
|
80296
80901
|
user-select: none;
|
|
80902
|
+
-webkit-user-select: none;
|
|
80297
80903
|
pointer-events: all;
|
|
80298
80904
|
margin: auto;
|
|
80299
80905
|
max-height: calc(100vh - 32px);
|
|
@@ -80804,97 +81410,6 @@
|
|
|
80804
81410
|
}
|
|
80805
81411
|
});
|
|
80806
81412
|
|
|
80807
|
-
const resolveOptionsAndHash = function () {
|
|
80808
|
-
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
80809
|
-
const {
|
|
80810
|
-
root = null
|
|
80811
|
-
} = options;
|
|
80812
|
-
return {
|
|
80813
|
-
hash: `${options.rootMargin || "0px 0px 0px 0px"}-${Array.isArray(options.threshold) ? options.threshold.join(",") : options.threshold ?? "0"}`,
|
|
80814
|
-
options: { ...options,
|
|
80815
|
-
root: (typeof root === "string" ? document.querySelector(root) : root) || document.documentElement
|
|
80816
|
-
}
|
|
80817
|
-
};
|
|
80818
|
-
};
|
|
80819
|
-
const observers = /* @__PURE__ */new WeakMap();
|
|
80820
|
-
const unobserveHandleMap = /* @__PURE__ */new WeakMap();
|
|
80821
|
-
const shouldStartLoadingRefMap = /* @__PURE__ */new WeakMap();
|
|
80822
|
-
const observeIntersection = (el, options, shouldStartLoadingRef) => {
|
|
80823
|
-
if (!el) return () => {};
|
|
80824
|
-
const resolvedOptionsAndHash = resolveOptionsAndHash(options);
|
|
80825
|
-
const {
|
|
80826
|
-
root
|
|
80827
|
-
} = resolvedOptionsAndHash.options;
|
|
80828
|
-
let rootObservers;
|
|
80829
|
-
|
|
80830
|
-
const _rootObservers = observers.get(root);
|
|
80831
|
-
|
|
80832
|
-
if (_rootObservers) {
|
|
80833
|
-
rootObservers = _rootObservers;
|
|
80834
|
-
} else {
|
|
80835
|
-
rootObservers = /* @__PURE__ */new Map();
|
|
80836
|
-
observers.set(root, rootObservers);
|
|
80837
|
-
}
|
|
80838
|
-
|
|
80839
|
-
let observer;
|
|
80840
|
-
let observerAndObservedElements;
|
|
80841
|
-
|
|
80842
|
-
if (rootObservers.has(resolvedOptionsAndHash.hash)) {
|
|
80843
|
-
observerAndObservedElements = rootObservers.get(resolvedOptionsAndHash.hash);
|
|
80844
|
-
|
|
80845
|
-
if (!observerAndObservedElements[1].has(el)) {
|
|
80846
|
-
observer = observerAndObservedElements[0];
|
|
80847
|
-
observerAndObservedElements[1].add(el);
|
|
80848
|
-
observer.observe(el);
|
|
80849
|
-
}
|
|
80850
|
-
} else {
|
|
80851
|
-
observer = new IntersectionObserver(entries => {
|
|
80852
|
-
entries.forEach(entry => {
|
|
80853
|
-
if (entry.isIntersecting) {
|
|
80854
|
-
const _unobserve = unobserveHandleMap.get(entry.target);
|
|
80855
|
-
|
|
80856
|
-
const _shouldStartLoadingRef = shouldStartLoadingRefMap.get(entry.target);
|
|
80857
|
-
|
|
80858
|
-
if (_unobserve) _unobserve();
|
|
80859
|
-
|
|
80860
|
-
if (_shouldStartLoadingRef) {
|
|
80861
|
-
_shouldStartLoadingRef.value = true;
|
|
80862
|
-
}
|
|
80863
|
-
}
|
|
80864
|
-
});
|
|
80865
|
-
}, resolvedOptionsAndHash.options);
|
|
80866
|
-
observer.observe(el);
|
|
80867
|
-
observerAndObservedElements = [observer, /* @__PURE__ */new Set([el])];
|
|
80868
|
-
rootObservers.set(resolvedOptionsAndHash.hash, observerAndObservedElements);
|
|
80869
|
-
}
|
|
80870
|
-
|
|
80871
|
-
let unobservered = false;
|
|
80872
|
-
|
|
80873
|
-
const unobserve = () => {
|
|
80874
|
-
if (unobservered) return;
|
|
80875
|
-
unobserveHandleMap.delete(el);
|
|
80876
|
-
shouldStartLoadingRefMap.delete(el);
|
|
80877
|
-
unobservered = true;
|
|
80878
|
-
|
|
80879
|
-
if (observerAndObservedElements[1].has(el)) {
|
|
80880
|
-
observerAndObservedElements[0].unobserve(el);
|
|
80881
|
-
observerAndObservedElements[1].delete(el);
|
|
80882
|
-
}
|
|
80883
|
-
|
|
80884
|
-
if (observerAndObservedElements[1].size <= 0) {
|
|
80885
|
-
rootObservers.delete(resolvedOptionsAndHash.hash);
|
|
80886
|
-
}
|
|
80887
|
-
|
|
80888
|
-
if (!rootObservers.size) {
|
|
80889
|
-
observers.delete(root);
|
|
80890
|
-
}
|
|
80891
|
-
};
|
|
80892
|
-
|
|
80893
|
-
unobserveHandleMap.set(el, unobserve);
|
|
80894
|
-
shouldStartLoadingRefMap.set(el, shouldStartLoadingRef);
|
|
80895
|
-
return unobserve;
|
|
80896
|
-
};
|
|
80897
|
-
|
|
80898
81413
|
const imageProps = {
|
|
80899
81414
|
alt: String,
|
|
80900
81415
|
height: [String, Number],
|
|
@@ -80950,6 +81465,9 @@
|
|
|
80950
81465
|
imageRef.value?.setAttribute("data-group-id", imageGroupHandle?.groupId || "");
|
|
80951
81466
|
});
|
|
80952
81467
|
vue.onMounted(() => {
|
|
81468
|
+
if (isImageSupportNativeLazy) {
|
|
81469
|
+
return;
|
|
81470
|
+
}
|
|
80953
81471
|
let unobserve;
|
|
80954
81472
|
const stopWatchHandle = vue.watchEffect(() => {
|
|
80955
81473
|
unobserve?.();
|
|
@@ -80996,20 +81514,22 @@
|
|
|
80996
81514
|
};
|
|
80997
81515
|
},
|
|
80998
81516
|
render() {
|
|
80999
|
-
const { mergedClsPrefix, imgProps = {}, loaded, $attrs } = this;
|
|
81517
|
+
const { mergedClsPrefix, imgProps = {}, loaded, $attrs, lazy } = this;
|
|
81000
81518
|
const placeholderNode = this.$slots.placeholder?.();
|
|
81001
|
-
const
|
|
81519
|
+
const loadSrc = this.src || imgProps.src || "";
|
|
81520
|
+
const imgNode = vue.h("img", {
|
|
81002
81521
|
...imgProps,
|
|
81003
81522
|
class: imgProps.class,
|
|
81004
81523
|
ref: "imageRef",
|
|
81005
81524
|
width: this.width || imgProps.width,
|
|
81006
81525
|
height: this.height || imgProps.height,
|
|
81007
|
-
src: this.showError ? this.fallbackSrc : this.shouldStartLoading ?
|
|
81526
|
+
src: isImageSupportNativeLazy ? loadSrc : this.showError ? this.fallbackSrc : this.shouldStartLoading ? loadSrc : void 0,
|
|
81008
81527
|
alt: this.alt || imgProps.alt,
|
|
81009
81528
|
"aria-label": this.alt || imgProps.alt,
|
|
81010
81529
|
onClick: this.click,
|
|
81011
81530
|
onError: this.mergedOnError,
|
|
81012
81531
|
onLoad: this.mergedOnLoad,
|
|
81532
|
+
loading: lazy ? "lazy" : "eager",
|
|
81013
81533
|
style: [
|
|
81014
81534
|
imgProps.style || "",
|
|
81015
81535
|
placeholderNode && !loaded ? { height: "0", width: "0", visibility: "hidden" } : "",
|
|
@@ -82792,7 +83312,7 @@
|
|
|
82792
83312
|
}
|
|
82793
83313
|
});
|
|
82794
83314
|
|
|
82795
|
-
const
|
|
83315
|
+
const loadingBarProviderProps = {
|
|
82796
83316
|
...useTheme.props,
|
|
82797
83317
|
to: {
|
|
82798
83318
|
type: [String, Object],
|
|
@@ -82804,7 +83324,7 @@
|
|
|
82804
83324
|
};
|
|
82805
83325
|
var NLoadingBarProvider = vue.defineComponent({
|
|
82806
83326
|
name: "LoadingBarProvider",
|
|
82807
|
-
props:
|
|
83327
|
+
props: loadingBarProviderProps,
|
|
82808
83328
|
setup(props) {
|
|
82809
83329
|
const isMountedRef = isMounted();
|
|
82810
83330
|
const loadingBarRef = vue.ref(null);
|
|
@@ -84402,11 +84922,11 @@
|
|
|
84402
84922
|
throw new Error("textarea-caret-position#getCaretPosition should only be called in a browser");
|
|
84403
84923
|
}
|
|
84404
84924
|
|
|
84405
|
-
const debug = options
|
|
84925
|
+
const debug = options === null || options === void 0 ? void 0 : options.debug;
|
|
84406
84926
|
|
|
84407
84927
|
if (debug) {
|
|
84408
84928
|
const el = document.querySelector("#input-textarea-caret-position-mirror-div");
|
|
84409
|
-
if (el
|
|
84929
|
+
if (el !== null && el !== void 0 && el.parentNode) el.parentNode.removeChild(el);
|
|
84410
84930
|
}
|
|
84411
84931
|
|
|
84412
84932
|
const div = document.createElement("div");
|
|
@@ -85420,7 +85940,8 @@
|
|
|
85420
85940
|
]
|
|
85421
85941
|
}, scrollable ? /* @__PURE__ */ vue.h(NScrollbar, {
|
|
85422
85942
|
theme: mergedTheme.peers.Scrollbar,
|
|
85423
|
-
themeOverrides: mergedTheme.peerOverrides.Scrollbar
|
|
85943
|
+
themeOverrides: mergedTheme.peerOverrides.Scrollbar,
|
|
85944
|
+
contentStyle: { overflow: "hidden" }
|
|
85424
85945
|
}, $slots) : $slots);
|
|
85425
85946
|
}
|
|
85426
85947
|
});
|
|
@@ -85462,7 +85983,8 @@
|
|
|
85462
85983
|
mergedThemeRef,
|
|
85463
85984
|
props: providerProps
|
|
85464
85985
|
} = vue.inject(notificationProviderInjectionKey);
|
|
85465
|
-
const { inlineThemeDisabled } = useConfig();
|
|
85986
|
+
const { inlineThemeDisabled, mergedRtlRef } = useConfig();
|
|
85987
|
+
const rtlEnabledRef = useRtl("Notification", mergedRtlRef, mergedClsPrefixRef);
|
|
85466
85988
|
const cssVarsRef = vue.computed(() => {
|
|
85467
85989
|
const { type } = props;
|
|
85468
85990
|
const {
|
|
@@ -85539,6 +86061,7 @@
|
|
|
85539
86061
|
handleCloseClick() {
|
|
85540
86062
|
props.onClose();
|
|
85541
86063
|
},
|
|
86064
|
+
rtlEnabled: rtlEnabledRef,
|
|
85542
86065
|
cssVars: inlineThemeDisabled ? void 0 : cssVarsRef,
|
|
85543
86066
|
themeClass: themeClassHandle?.themeClass,
|
|
85544
86067
|
onRender: themeClassHandle?.onRender
|
|
@@ -85553,6 +86076,7 @@
|
|
|
85553
86076
|
}, /* @__PURE__ */ vue.h("div", {
|
|
85554
86077
|
class: [
|
|
85555
86078
|
`${mergedClsPrefix}-notification`,
|
|
86079
|
+
this.rtlEnabled && `${mergedClsPrefix}-notification--rtl`,
|
|
85556
86080
|
this.themeClass,
|
|
85557
86081
|
{
|
|
85558
86082
|
[`${mergedClsPrefix}-notification--closable`]: this.closable,
|
|
@@ -85857,9 +86381,7 @@
|
|
|
85857
86381
|
display: flex;
|
|
85858
86382
|
align-items: center;
|
|
85859
86383
|
justify-content: center;
|
|
85860
|
-
`, [cB("icon",
|
|
85861
|
-
transition: "color .3s var(--n-bezier)"
|
|
85862
|
-
})]), cB("notification-main", `
|
|
86384
|
+
`, [cB("icon", "transition: color .3s var(--n-bezier);")]), cB("notification-main", `
|
|
85863
86385
|
padding-top: var(--n-padding-top);
|
|
85864
86386
|
padding-bottom: var(--n-padding-bottom);
|
|
85865
86387
|
box-sizing: border-box;
|
|
@@ -86354,8 +86876,10 @@
|
|
|
86354
86876
|
"onUpdate:show": onUpdateShow
|
|
86355
86877
|
} = props;
|
|
86356
86878
|
void Promise.resolve(onPositiveClick ? onPositiveClick(e) : true).then(value => {
|
|
86879
|
+
var _popoverInstRef$value;
|
|
86880
|
+
|
|
86357
86881
|
if (value === false) return;
|
|
86358
|
-
popoverInstRef.value
|
|
86882
|
+
(_popoverInstRef$value = popoverInstRef.value) === null || _popoverInstRef$value === void 0 ? void 0 : _popoverInstRef$value.setShow(false);
|
|
86359
86883
|
if (onUpdateShow) call(onUpdateShow, false);
|
|
86360
86884
|
});
|
|
86361
86885
|
}
|
|
@@ -86366,8 +86890,10 @@
|
|
|
86366
86890
|
"onUpdate:show": onUpdateShow
|
|
86367
86891
|
} = props;
|
|
86368
86892
|
void Promise.resolve(onNegativeClick ? onNegativeClick(e) : true).then(value => {
|
|
86893
|
+
var _popoverInstRef$value2;
|
|
86894
|
+
|
|
86369
86895
|
if (value === false) return;
|
|
86370
|
-
popoverInstRef.value
|
|
86896
|
+
(_popoverInstRef$value2 = popoverInstRef.value) === null || _popoverInstRef$value2 === void 0 ? void 0 : _popoverInstRef$value2.setShow(false);
|
|
86371
86897
|
if (onUpdateShow) call(onUpdateShow, false);
|
|
86372
86898
|
});
|
|
86373
86899
|
}
|
|
@@ -86379,11 +86905,15 @@
|
|
|
86379
86905
|
});
|
|
86380
86906
|
const exposedMethods = {
|
|
86381
86907
|
setShow(value) {
|
|
86382
|
-
|
|
86908
|
+
var _popoverInstRef$value3;
|
|
86909
|
+
|
|
86910
|
+
(_popoverInstRef$value3 = popoverInstRef.value) === null || _popoverInstRef$value3 === void 0 ? void 0 : _popoverInstRef$value3.setShow(value);
|
|
86383
86911
|
},
|
|
86384
86912
|
|
|
86385
86913
|
syncPosition() {
|
|
86386
|
-
|
|
86914
|
+
var _popoverInstRef$value4;
|
|
86915
|
+
|
|
86916
|
+
(_popoverInstRef$value4 = popoverInstRef.value) === null || _popoverInstRef$value4 === void 0 ? void 0 : _popoverInstRef$value4.syncPosition();
|
|
86387
86917
|
}
|
|
86388
86918
|
|
|
86389
86919
|
};
|
|
@@ -87826,6 +88356,7 @@
|
|
|
87826
88356
|
width: 100%;
|
|
87827
88357
|
cursor: pointer;
|
|
87828
88358
|
user-select: none;
|
|
88359
|
+
-webkit-user-select: none;
|
|
87829
88360
|
`, [cM("reverse", [cB("slider-handles", [cB("slider-handle-wrapper", `
|
|
87830
88361
|
transform: translate(50%, -50%);
|
|
87831
88362
|
`)]), cB("slider-dots", [cB("slider-dot", `
|
|
@@ -88641,6 +89172,7 @@
|
|
|
88641
89172
|
pointer-events: all;
|
|
88642
89173
|
`, [cM("spinning", `
|
|
88643
89174
|
user-select: none;
|
|
89175
|
+
-webkit-user-select: none;
|
|
88644
89176
|
pointer-events: none;
|
|
88645
89177
|
opacity: var(--n-opacity-spinning);
|
|
88646
89178
|
`)])]);
|
|
@@ -89189,6 +89721,7 @@
|
|
|
89189
89721
|
min-width: var(--n-width);
|
|
89190
89722
|
vertical-align: middle;
|
|
89191
89723
|
user-select: none;
|
|
89724
|
+
-webkit-user-select: none;
|
|
89192
89725
|
display: inline-flex;
|
|
89193
89726
|
outline: none;
|
|
89194
89727
|
justify-content: center;
|
|
@@ -89850,7 +90383,7 @@
|
|
|
89850
90383
|
}
|
|
89851
90384
|
});
|
|
89852
90385
|
|
|
89853
|
-
const
|
|
90386
|
+
const tabProps = {
|
|
89854
90387
|
internalLeftPadded: Boolean,
|
|
89855
90388
|
internalAddable: Boolean,
|
|
89856
90389
|
internalCreatedByPane: Boolean,
|
|
@@ -89860,7 +90393,7 @@
|
|
|
89860
90393
|
__TAB__: true,
|
|
89861
90394
|
inheritAttrs: false,
|
|
89862
90395
|
name: "Tab",
|
|
89863
|
-
props:
|
|
90396
|
+
props: tabProps,
|
|
89864
90397
|
setup(props) {
|
|
89865
90398
|
const {
|
|
89866
90399
|
mergedClsPrefixRef,
|
|
@@ -92523,7 +93056,8 @@
|
|
|
92523
93056
|
nodePropsRef,
|
|
92524
93057
|
indentRef,
|
|
92525
93058
|
blockLineRef,
|
|
92526
|
-
checkboxPlacementRef
|
|
93059
|
+
checkboxPlacementRef,
|
|
93060
|
+
checkOnClickRef
|
|
92527
93061
|
} = NTree;
|
|
92528
93062
|
const disabledRef = vue.computed(() => NTree.disabledRef.value || props.tmNode.disabled);
|
|
92529
93063
|
const resolvedNodePropsRef = vue.computed(() => {
|
|
@@ -92560,6 +93094,18 @@
|
|
|
92560
93094
|
}
|
|
92561
93095
|
}
|
|
92562
93096
|
const selectableRef = useMemo(() => !props.tmNode.disabled && NTree.selectableRef.value && (NTree.internalTreeSelect ? NTree.mergedCheckStrategyRef.value !== "child" || NTree.multipleRef.value && NTree.cascadeRef.value || props.tmNode.isLeaf : true));
|
|
93097
|
+
const checkableRef = useMemo(() => NTree.checkableRef.value && (NTree.cascadeRef.value || NTree.mergedCheckStrategyRef.value !== "child" || props.tmNode.isLeaf));
|
|
93098
|
+
const checkedRef = useMemo(() => NTree.displayedCheckedKeysRef.value.includes(props.tmNode.key));
|
|
93099
|
+
const mergedCheckOnClickRef = useMemo(() => {
|
|
93100
|
+
const { value: checkable } = checkableRef;
|
|
93101
|
+
if (!checkable)
|
|
93102
|
+
return false;
|
|
93103
|
+
const { value: checkOnClick } = checkOnClickRef;
|
|
93104
|
+
if (typeof checkOnClick === "boolean") {
|
|
93105
|
+
return checkOnClick;
|
|
93106
|
+
}
|
|
93107
|
+
return checkOnClick(props.tmNode.rawNode);
|
|
93108
|
+
});
|
|
92563
93109
|
function _handleClick(e) {
|
|
92564
93110
|
const { value: expandOnClick } = NTree.expandOnClickRef;
|
|
92565
93111
|
const { value: selectable } = selectableRef;
|
|
@@ -92574,6 +93120,9 @@
|
|
|
92574
93120
|
if (expandOnClick && !tmNode.isLeaf) {
|
|
92575
93121
|
handleSwitcherClick();
|
|
92576
93122
|
}
|
|
93123
|
+
if (mergedCheckOnClickRef.value) {
|
|
93124
|
+
handleCheck(!checkedRef.value);
|
|
93125
|
+
}
|
|
92577
93126
|
}
|
|
92578
93127
|
function handleContentClick(e) {
|
|
92579
93128
|
if (blockLineRef.value)
|
|
@@ -92673,12 +93222,12 @@
|
|
|
92673
93222
|
highlight: useMemo(() => {
|
|
92674
93223
|
return NTree.highlightKeySetRef.value?.has(props.tmNode.key);
|
|
92675
93224
|
}),
|
|
92676
|
-
checked:
|
|
93225
|
+
checked: checkedRef,
|
|
92677
93226
|
indeterminate: useMemo(() => NTree.displayedIndeterminateKeysRef.value.includes(props.tmNode.key)),
|
|
92678
93227
|
selected: useMemo(() => NTree.mergedSelectedKeysRef.value.includes(props.tmNode.key)),
|
|
92679
93228
|
expanded: useMemo(() => NTree.mergedExpandedKeysRef.value.includes(props.tmNode.key)),
|
|
92680
93229
|
disabled: disabledRef,
|
|
92681
|
-
checkable:
|
|
93230
|
+
checkable: checkableRef,
|
|
92682
93231
|
checkboxDisabled: vue.computed(() => !!props.tmNode.rawNode.checkboxDisabled),
|
|
92683
93232
|
selectable: selectableRef,
|
|
92684
93233
|
expandOnClick: NTree.expandOnClickRef,
|
|
@@ -92799,7 +93348,7 @@
|
|
|
92799
93348
|
var NTreeNode = TreeNode;
|
|
92800
93349
|
|
|
92801
93350
|
function traverse(nodes, childrenField, callback, callbackAfter) {
|
|
92802
|
-
nodes
|
|
93351
|
+
nodes === null || nodes === void 0 ? void 0 : nodes.forEach(node => {
|
|
92803
93352
|
callback(node);
|
|
92804
93353
|
traverse(node[childrenField], childrenField, callback, callbackAfter);
|
|
92805
93354
|
callbackAfter(node);
|
|
@@ -93217,6 +93766,7 @@
|
|
|
93217
93766
|
};
|
|
93218
93767
|
const treeProps = {
|
|
93219
93768
|
...useTheme.props,
|
|
93769
|
+
accordion: Boolean,
|
|
93220
93770
|
showIrrelevantNodes: { type: Boolean, default: true },
|
|
93221
93771
|
data: {
|
|
93222
93772
|
type: Array,
|
|
@@ -93227,6 +93777,10 @@
|
|
|
93227
93777
|
default: true
|
|
93228
93778
|
},
|
|
93229
93779
|
expandOnClick: Boolean,
|
|
93780
|
+
checkOnClick: {
|
|
93781
|
+
type: [Boolean, Function],
|
|
93782
|
+
default: false
|
|
93783
|
+
},
|
|
93230
93784
|
cancelable: {
|
|
93231
93785
|
type: Boolean,
|
|
93232
93786
|
default: true
|
|
@@ -93517,7 +94071,7 @@
|
|
|
93517
94071
|
});
|
|
93518
94072
|
});
|
|
93519
94073
|
const aipRef = vue.ref(false);
|
|
93520
|
-
const
|
|
94074
|
+
const afNodesRef = vue.ref([]);
|
|
93521
94075
|
vue.watch(expandedNonLoadingKeysRef, (value, prevValue) => {
|
|
93522
94076
|
if (!props.animated) {
|
|
93523
94077
|
void vue.nextTick(syncScrollbar);
|
|
@@ -93541,19 +94095,30 @@
|
|
|
93541
94095
|
removedKey = expandedKey;
|
|
93542
94096
|
}
|
|
93543
94097
|
}
|
|
93544
|
-
if (addedKey
|
|
94098
|
+
if (addedKey === null && removedKey === null) {
|
|
93545
94099
|
return;
|
|
93546
94100
|
}
|
|
93547
94101
|
const { virtualScroll } = props;
|
|
93548
94102
|
const viewportHeight = (virtualScroll ? virtualListInstRef.value.listElRef : selfElRef.value).offsetHeight;
|
|
93549
94103
|
const viewportItemCount = Math.ceil(viewportHeight / ITEM_SIZE) + 1;
|
|
94104
|
+
let baseExpandedKeys;
|
|
93550
94105
|
if (addedKey !== null) {
|
|
93551
|
-
|
|
93552
|
-
|
|
93553
|
-
|
|
94106
|
+
baseExpandedKeys = prevValue;
|
|
94107
|
+
}
|
|
94108
|
+
if (removedKey !== null) {
|
|
94109
|
+
if (baseExpandedKeys === void 0) {
|
|
94110
|
+
baseExpandedKeys = value;
|
|
94111
|
+
} else {
|
|
94112
|
+
baseExpandedKeys = baseExpandedKeys.filter((key) => key !== removedKey);
|
|
94113
|
+
}
|
|
94114
|
+
}
|
|
94115
|
+
aipRef.value = true;
|
|
94116
|
+
afNodesRef.value = displayTreeMateRef.value.getFlattenedNodes(baseExpandedKeys);
|
|
94117
|
+
if (addedKey !== null) {
|
|
94118
|
+
const expandedNodeIndex = afNodesRef.value.findIndex((node) => node.key === addedKey);
|
|
93554
94119
|
if (~expandedNodeIndex) {
|
|
93555
|
-
const expandedChildren = flatten$1(
|
|
93556
|
-
|
|
94120
|
+
const expandedChildren = flatten$1(afNodesRef.value[expandedNodeIndex].children, value);
|
|
94121
|
+
afNodesRef.value.splice(expandedNodeIndex + 1, 0, {
|
|
93557
94122
|
__motion: true,
|
|
93558
94123
|
mode: "expand",
|
|
93559
94124
|
height: virtualScroll ? expandedChildren.length * ITEM_SIZE : void 0,
|
|
@@ -93562,15 +94127,14 @@
|
|
|
93562
94127
|
}
|
|
93563
94128
|
}
|
|
93564
94129
|
if (removedKey !== null) {
|
|
93565
|
-
|
|
93566
|
-
const collapsedNodeIndex = afNodeRef.value.findIndex((node) => node.key === removedKey);
|
|
94130
|
+
const collapsedNodeIndex = afNodesRef.value.findIndex((node) => node.key === removedKey);
|
|
93567
94131
|
if (~collapsedNodeIndex) {
|
|
93568
|
-
const collapsedNodeChildren =
|
|
94132
|
+
const collapsedNodeChildren = afNodesRef.value[collapsedNodeIndex].children;
|
|
93569
94133
|
if (!collapsedNodeChildren)
|
|
93570
94134
|
return;
|
|
93571
94135
|
aipRef.value = true;
|
|
93572
94136
|
const collapsedChildren = flatten$1(collapsedNodeChildren, value);
|
|
93573
|
-
|
|
94137
|
+
afNodesRef.value.splice(collapsedNodeIndex + 1, 0, {
|
|
93574
94138
|
__motion: true,
|
|
93575
94139
|
mode: "collapse",
|
|
93576
94140
|
height: virtualScroll ? collapsedChildren.length * ITEM_SIZE : void 0,
|
|
@@ -93584,7 +94148,7 @@
|
|
|
93584
94148
|
});
|
|
93585
94149
|
const mergedFNodesRef = vue.computed(() => {
|
|
93586
94150
|
if (aipRef.value)
|
|
93587
|
-
return
|
|
94151
|
+
return afNodesRef.value;
|
|
93588
94152
|
else
|
|
93589
94153
|
return fNodesRef.value;
|
|
93590
94154
|
});
|
|
@@ -93721,9 +94285,10 @@
|
|
|
93721
94285
|
doUpdateCheckedKeys(checkedKeys, getOptionsByKeys(checkedKeys));
|
|
93722
94286
|
doUpdateIndeterminateKeys(indeterminateKeys, getOptionsByKeys(indeterminateKeys));
|
|
93723
94287
|
}
|
|
93724
|
-
function toggleExpand(
|
|
94288
|
+
function toggleExpand(node) {
|
|
93725
94289
|
if (props.disabled)
|
|
93726
94290
|
return;
|
|
94291
|
+
const { key } = node;
|
|
93727
94292
|
const { value: mergedExpandedKeys } = mergedExpandedKeysRef;
|
|
93728
94293
|
const index = mergedExpandedKeys.findIndex((expandNodeId) => expandNodeId === key);
|
|
93729
94294
|
if (~index) {
|
|
@@ -93735,14 +94300,23 @@
|
|
|
93735
94300
|
if (!nodeToBeExpanded || nodeToBeExpanded.isLeaf) {
|
|
93736
94301
|
return;
|
|
93737
94302
|
}
|
|
93738
|
-
|
|
94303
|
+
let nextKeys;
|
|
94304
|
+
if (props.accordion) {
|
|
94305
|
+
const siblingKeySet = new Set(node.siblings.map(({ key: key2 }) => key2));
|
|
94306
|
+
nextKeys = mergedExpandedKeys.filter((expandedKey) => {
|
|
94307
|
+
return !siblingKeySet.has(expandedKey);
|
|
94308
|
+
});
|
|
94309
|
+
nextKeys.push(key);
|
|
94310
|
+
} else {
|
|
94311
|
+
nextKeys = mergedExpandedKeys.concat(key);
|
|
94312
|
+
}
|
|
93739
94313
|
doUpdateExpandedKeys(nextKeys, getOptionsByKeys(nextKeys));
|
|
93740
94314
|
}
|
|
93741
94315
|
}
|
|
93742
94316
|
function handleSwitcherClick(node) {
|
|
93743
94317
|
if (props.disabled || aipRef.value)
|
|
93744
94318
|
return;
|
|
93745
|
-
toggleExpand(node
|
|
94319
|
+
toggleExpand(node);
|
|
93746
94320
|
}
|
|
93747
94321
|
function handleSelect(node) {
|
|
93748
94322
|
if (props.disabled || !props.selectable) {
|
|
@@ -94074,6 +94648,7 @@
|
|
|
94074
94648
|
blockLineRef: vue.toRef(props, "blockLine"),
|
|
94075
94649
|
indentRef: vue.toRef(props, "indent"),
|
|
94076
94650
|
cascadeRef: vue.toRef(props, "cascade"),
|
|
94651
|
+
checkOnClickRef: vue.toRef(props, "checkOnClick"),
|
|
94077
94652
|
checkboxPlacementRef: props.checkboxPlacement,
|
|
94078
94653
|
droppingMouseNodeRef,
|
|
94079
94654
|
droppingNodeParentRef,
|
|
@@ -94319,7 +94894,7 @@
|
|
|
94319
94894
|
color: var(--n-action-text-color);
|
|
94320
94895
|
`), fadeInScaleUpTransition()])]);
|
|
94321
94896
|
|
|
94322
|
-
const
|
|
94897
|
+
const treeSelectProps = {
|
|
94323
94898
|
...useTheme.props,
|
|
94324
94899
|
bordered: {
|
|
94325
94900
|
type: Boolean,
|
|
@@ -94397,11 +94972,11 @@
|
|
|
94397
94972
|
};
|
|
94398
94973
|
var TreeSelect = vue.defineComponent({
|
|
94399
94974
|
name: "TreeSelect",
|
|
94400
|
-
props,
|
|
94401
|
-
setup(
|
|
94975
|
+
props: treeSelectProps,
|
|
94976
|
+
setup(props) {
|
|
94402
94977
|
{
|
|
94403
94978
|
vue.watchEffect(() => {
|
|
94404
|
-
if (
|
|
94979
|
+
if (props.leafOnly) {
|
|
94405
94980
|
warnOnce("tree-select", '`leaf-only` is deprecated, please use `check-strategy="child"` instead.');
|
|
94406
94981
|
}
|
|
94407
94982
|
});
|
|
@@ -94410,7 +94985,7 @@
|
|
|
94410
94985
|
const triggerInstRef = vue.ref(null);
|
|
94411
94986
|
const treeInstRef = vue.ref(null);
|
|
94412
94987
|
const menuElRef = vue.ref(null);
|
|
94413
|
-
const { mergedClsPrefixRef, namespaceRef, inlineThemeDisabled } = useConfig(
|
|
94988
|
+
const { mergedClsPrefixRef, namespaceRef, inlineThemeDisabled } = useConfig(props);
|
|
94414
94989
|
const { localeRef } = useLocale("Select");
|
|
94415
94990
|
const {
|
|
94416
94991
|
mergedSizeRef,
|
|
@@ -94420,49 +94995,49 @@
|
|
|
94420
94995
|
nTriggerFormChange,
|
|
94421
94996
|
nTriggerFormFocus,
|
|
94422
94997
|
nTriggerFormInput
|
|
94423
|
-
} = useFormItem(
|
|
94424
|
-
const uncontrolledValueRef = vue.ref(
|
|
94425
|
-
const controlledValueRef = vue.toRef(
|
|
94998
|
+
} = useFormItem(props);
|
|
94999
|
+
const uncontrolledValueRef = vue.ref(props.defaultValue);
|
|
95000
|
+
const controlledValueRef = vue.toRef(props, "value");
|
|
94426
95001
|
const mergedValueRef = useMergedState(controlledValueRef, uncontrolledValueRef);
|
|
94427
|
-
const uncontrolledShowRef = vue.ref(
|
|
94428
|
-
const controlledShowRef = vue.toRef(
|
|
95002
|
+
const uncontrolledShowRef = vue.ref(props.defaultShow);
|
|
95003
|
+
const controlledShowRef = vue.toRef(props, "show");
|
|
94429
95004
|
const mergedShowRef = useMergedState(controlledShowRef, uncontrolledShowRef);
|
|
94430
95005
|
const patternRef = vue.ref("");
|
|
94431
95006
|
const mergedFilterRef = vue.computed(() => {
|
|
94432
|
-
const { filter } =
|
|
95007
|
+
const { filter } = props;
|
|
94433
95008
|
if (filter)
|
|
94434
95009
|
return filter;
|
|
94435
|
-
const { labelField } =
|
|
95010
|
+
const { labelField } = props;
|
|
94436
95011
|
return (pattern, node) => {
|
|
94437
95012
|
if (!pattern.length)
|
|
94438
95013
|
return true;
|
|
94439
95014
|
return node[labelField].toLowerCase().includes(pattern.toLowerCase());
|
|
94440
95015
|
};
|
|
94441
95016
|
});
|
|
94442
|
-
const dataTreeMateRef = vue.computed(() => createTreeMate(
|
|
95017
|
+
const dataTreeMateRef = vue.computed(() => createTreeMate(props.options, createTreeMateOptions(props.keyField, props.childrenField)));
|
|
94443
95018
|
const { value: initMergedValue } = mergedValueRef;
|
|
94444
|
-
const pendingNodeKeyRef = vue.ref(
|
|
95019
|
+
const pendingNodeKeyRef = vue.ref(props.checkable ? null : Array.isArray(initMergedValue) && initMergedValue.length ? initMergedValue[initMergedValue.length - 1] : null);
|
|
94445
95020
|
const mergedCascadeRef = vue.computed(() => {
|
|
94446
|
-
return
|
|
95021
|
+
return props.multiple && props.cascade && props.checkable;
|
|
94447
95022
|
});
|
|
94448
|
-
const uncontrolledExpandedKeysRef = vue.ref(
|
|
94449
|
-
const controlledExpandedKeysRef = vue.toRef(
|
|
95023
|
+
const uncontrolledExpandedKeysRef = vue.ref(props.defaultExpandAll ? void 0 : props.defaultExpandedKeys || props.expandedKeys);
|
|
95024
|
+
const controlledExpandedKeysRef = vue.toRef(props, "expandedKeys");
|
|
94450
95025
|
const mergedExpandedKeysRef = useMergedState(controlledExpandedKeysRef, uncontrolledExpandedKeysRef);
|
|
94451
95026
|
const focusedRef = vue.ref(false);
|
|
94452
95027
|
const mergedPlaceholderRef = vue.computed(() => {
|
|
94453
|
-
const { placeholder } =
|
|
95028
|
+
const { placeholder } = props;
|
|
94454
95029
|
if (placeholder !== void 0)
|
|
94455
95030
|
return placeholder;
|
|
94456
95031
|
return localeRef.value.placeholder;
|
|
94457
95032
|
});
|
|
94458
95033
|
const treeSelectedKeysRef = vue.computed(() => {
|
|
94459
|
-
if (
|
|
95034
|
+
if (props.checkable)
|
|
94460
95035
|
return [];
|
|
94461
95036
|
return treeCheckedKeysRef.value;
|
|
94462
95037
|
});
|
|
94463
95038
|
const treeCheckedKeysRef = vue.computed(() => {
|
|
94464
95039
|
const { value: mergedValue } = mergedValueRef;
|
|
94465
|
-
if (
|
|
95040
|
+
if (props.multiple) {
|
|
94466
95041
|
if (Array.isArray(mergedValue))
|
|
94467
95042
|
return mergedValue;
|
|
94468
95043
|
else
|
|
@@ -94475,7 +95050,7 @@
|
|
|
94475
95050
|
}
|
|
94476
95051
|
});
|
|
94477
95052
|
const selectedOptionRef = vue.computed(() => {
|
|
94478
|
-
const { multiple, showPath, separator, labelField } =
|
|
95053
|
+
const { multiple, showPath, separator, labelField } = props;
|
|
94479
95054
|
if (multiple)
|
|
94480
95055
|
return null;
|
|
94481
95056
|
const { value: mergedValue } = mergedValueRef;
|
|
@@ -94489,7 +95064,7 @@
|
|
|
94489
95064
|
return null;
|
|
94490
95065
|
});
|
|
94491
95066
|
const selectedOptionsRef = vue.computed(() => {
|
|
94492
|
-
const { multiple, showPath, separator } =
|
|
95067
|
+
const { multiple, showPath, separator } = props;
|
|
94493
95068
|
if (!multiple)
|
|
94494
95069
|
return null;
|
|
94495
95070
|
const { value: mergedValue } = mergedValueRef;
|
|
@@ -94497,11 +95072,11 @@
|
|
|
94497
95072
|
const res = [];
|
|
94498
95073
|
const { value: treeMate } = dataTreeMateRef;
|
|
94499
95074
|
const { checkedKeys } = treeMate.getCheckedKeys(mergedValue, {
|
|
94500
|
-
checkStrategy:
|
|
95075
|
+
checkStrategy: props.checkStrategy,
|
|
94501
95076
|
cascade: mergedCascadeRef.value,
|
|
94502
|
-
allowNotLoaded:
|
|
95077
|
+
allowNotLoaded: props.allowCheckingNotLoaded
|
|
94503
95078
|
});
|
|
94504
|
-
const { labelField } =
|
|
95079
|
+
const { labelField } = props;
|
|
94505
95080
|
checkedKeys.forEach((value) => {
|
|
94506
95081
|
const tmNode = treeMate.getNode(value);
|
|
94507
95082
|
if (tmNode !== null) {
|
|
@@ -94525,7 +95100,7 @@
|
|
|
94525
95100
|
triggerInstRef.value?.focusInput();
|
|
94526
95101
|
}
|
|
94527
95102
|
function doUpdateShow(value) {
|
|
94528
|
-
const { onUpdateShow, "onUpdate:show": _onUpdateShow } =
|
|
95103
|
+
const { onUpdateShow, "onUpdate:show": _onUpdateShow } = props;
|
|
94529
95104
|
if (onUpdateShow)
|
|
94530
95105
|
call(onUpdateShow, value);
|
|
94531
95106
|
if (_onUpdateShow)
|
|
@@ -94533,7 +95108,7 @@
|
|
|
94533
95108
|
uncontrolledShowRef.value = value;
|
|
94534
95109
|
}
|
|
94535
95110
|
function doUpdateValue(value, option) {
|
|
94536
|
-
const { onUpdateValue, "onUpdate:value": _onUpdateValue } =
|
|
95111
|
+
const { onUpdateValue, "onUpdate:value": _onUpdateValue } = props;
|
|
94537
95112
|
if (onUpdateValue)
|
|
94538
95113
|
call(onUpdateValue, value, option);
|
|
94539
95114
|
if (_onUpdateValue) {
|
|
@@ -94547,7 +95122,7 @@
|
|
|
94547
95122
|
const {
|
|
94548
95123
|
onUpdateIndeterminateKeys,
|
|
94549
95124
|
"onUpdate:indeterminateKeys": _onUpdateIndeterminateKeys
|
|
94550
|
-
} =
|
|
95125
|
+
} = props;
|
|
94551
95126
|
if (onUpdateIndeterminateKeys) {
|
|
94552
95127
|
call(onUpdateIndeterminateKeys, value, option);
|
|
94553
95128
|
}
|
|
@@ -94559,7 +95134,7 @@
|
|
|
94559
95134
|
const {
|
|
94560
95135
|
onUpdateExpandedKeys,
|
|
94561
95136
|
"onUpdate:expandedKeys": _onUpdateExpandedKeys
|
|
94562
|
-
} =
|
|
95137
|
+
} = props;
|
|
94563
95138
|
if (onUpdateExpandedKeys) {
|
|
94564
95139
|
call(onUpdateExpandedKeys, keys, option);
|
|
94565
95140
|
}
|
|
@@ -94569,14 +95144,14 @@
|
|
|
94569
95144
|
uncontrolledExpandedKeysRef.value = keys;
|
|
94570
95145
|
}
|
|
94571
95146
|
function doFocus(e) {
|
|
94572
|
-
const { onFocus } =
|
|
95147
|
+
const { onFocus } = props;
|
|
94573
95148
|
if (onFocus)
|
|
94574
95149
|
onFocus(e);
|
|
94575
95150
|
nTriggerFormFocus();
|
|
94576
95151
|
}
|
|
94577
95152
|
function doBlur(e) {
|
|
94578
95153
|
closeMenu();
|
|
94579
|
-
const { onBlur } =
|
|
95154
|
+
const { onBlur } = props;
|
|
94580
95155
|
if (onBlur)
|
|
94581
95156
|
onBlur(e);
|
|
94582
95157
|
nTriggerFormBlur();
|
|
@@ -94588,7 +95163,7 @@
|
|
|
94588
95163
|
if (!mergedDisabledRef.value) {
|
|
94589
95164
|
patternRef.value = "";
|
|
94590
95165
|
doUpdateShow(true);
|
|
94591
|
-
if (
|
|
95166
|
+
if (props.filterable) {
|
|
94592
95167
|
focusSelectionInput();
|
|
94593
95168
|
}
|
|
94594
95169
|
}
|
|
@@ -94609,7 +95184,7 @@
|
|
|
94609
95184
|
if (!mergedShowRef.value) {
|
|
94610
95185
|
openMenu();
|
|
94611
95186
|
} else {
|
|
94612
|
-
if (!
|
|
95187
|
+
if (!props.filterable) {
|
|
94613
95188
|
closeMenu();
|
|
94614
95189
|
}
|
|
94615
95190
|
}
|
|
@@ -94622,23 +95197,23 @@
|
|
|
94622
95197
|
}
|
|
94623
95198
|
function handleUpdateCheckedKeys(keys) {
|
|
94624
95199
|
const options = getOptionsByKeys(keys);
|
|
94625
|
-
if (
|
|
95200
|
+
if (props.multiple) {
|
|
94626
95201
|
doUpdateValue(keys, options);
|
|
94627
95202
|
} else {
|
|
94628
95203
|
keys.length ? doUpdateValue(keys[0], options[0] || null) : doUpdateValue(null, null);
|
|
94629
95204
|
closeMenu();
|
|
94630
|
-
if (!
|
|
95205
|
+
if (!props.filterable) {
|
|
94631
95206
|
focusSelection();
|
|
94632
95207
|
}
|
|
94633
95208
|
}
|
|
94634
|
-
if (
|
|
95209
|
+
if (props.filterable) {
|
|
94635
95210
|
focusSelectionInput();
|
|
94636
|
-
if (
|
|
95211
|
+
if (props.clearFilterAfterSelect)
|
|
94637
95212
|
patternRef.value = "";
|
|
94638
95213
|
}
|
|
94639
95214
|
}
|
|
94640
95215
|
function handleUpdateIndeterminateKeys(keys) {
|
|
94641
|
-
if (
|
|
95216
|
+
if (props.checkable) {
|
|
94642
95217
|
doUpdateIndeterminateKeys(keys, getOptionsByKeys(keys));
|
|
94643
95218
|
}
|
|
94644
95219
|
}
|
|
@@ -94670,8 +95245,8 @@
|
|
|
94670
95245
|
}
|
|
94671
95246
|
function handleClear(e) {
|
|
94672
95247
|
e.stopPropagation();
|
|
94673
|
-
const { multiple } =
|
|
94674
|
-
if (!multiple &&
|
|
95248
|
+
const { multiple } = props;
|
|
95249
|
+
if (!multiple && props.filterable) {
|
|
94675
95250
|
closeMenu();
|
|
94676
95251
|
}
|
|
94677
95252
|
if (multiple) {
|
|
@@ -94686,15 +95261,15 @@
|
|
|
94686
95261
|
const { value: treeMate } = dataTreeMateRef;
|
|
94687
95262
|
const { checkedKeys: checkedKeysValue } = treeMate.getCheckedKeys(mergedValue, {
|
|
94688
95263
|
cascade: mergedCascadeRef.value,
|
|
94689
|
-
allowNotLoaded:
|
|
95264
|
+
allowNotLoaded: props.allowCheckingNotLoaded
|
|
94690
95265
|
});
|
|
94691
95266
|
const index = checkedKeysValue.findIndex((key) => key === option.value);
|
|
94692
95267
|
if (~index) {
|
|
94693
|
-
if (
|
|
95268
|
+
if (props.checkable) {
|
|
94694
95269
|
const { checkedKeys } = treeMate.uncheck(option.value, checkedKeysValue, {
|
|
94695
|
-
checkStrategy:
|
|
95270
|
+
checkStrategy: props.checkStrategy,
|
|
94696
95271
|
cascade: mergedCascadeRef.value,
|
|
94697
|
-
allowNotLoaded:
|
|
95272
|
+
allowNotLoaded: props.allowCheckingNotLoaded
|
|
94698
95273
|
});
|
|
94699
95274
|
doUpdateValue(checkedKeys, getOptionsByKeys(checkedKeys));
|
|
94700
95275
|
} else {
|
|
@@ -94719,7 +95294,7 @@
|
|
|
94719
95294
|
if (e.key === "Enter") {
|
|
94720
95295
|
if (mergedShowRef.value) {
|
|
94721
95296
|
treeHandleKeydown(e);
|
|
94722
|
-
if (!
|
|
95297
|
+
if (!props.multiple) {
|
|
94723
95298
|
closeMenu();
|
|
94724
95299
|
focusSelection();
|
|
94725
95300
|
}
|
|
@@ -94750,7 +95325,7 @@
|
|
|
94750
95325
|
e.preventDefault();
|
|
94751
95326
|
}
|
|
94752
95327
|
const selectionRenderTagRef = vue.computed(() => {
|
|
94753
|
-
const { renderTag } =
|
|
95328
|
+
const { renderTag } = props;
|
|
94754
95329
|
if (!renderTag)
|
|
94755
95330
|
return void 0;
|
|
94756
95331
|
return function selectionRenderTag({
|
|
@@ -94777,7 +95352,7 @@
|
|
|
94777
95352
|
followerInstRef.value?.syncPosition();
|
|
94778
95353
|
}
|
|
94779
95354
|
useOnResize(menuElRef, handleTriggerOrMenuResize);
|
|
94780
|
-
const themeRef = useTheme("TreeSelect", "-tree-select", style$9, treeSelectLight$1,
|
|
95355
|
+
const themeRef = useTheme("TreeSelect", "-tree-select", style$9, treeSelectLight$1, props, mergedClsPrefixRef);
|
|
94781
95356
|
const cssVarsRef = vue.computed(() => {
|
|
94782
95357
|
const {
|
|
94783
95358
|
common: { cubicBezierEaseInOut },
|
|
@@ -94802,7 +95377,7 @@
|
|
|
94802
95377
|
"--n-action-divider-color": actionDividerColor
|
|
94803
95378
|
};
|
|
94804
95379
|
});
|
|
94805
|
-
const themeClassHandle = inlineThemeDisabled ? useThemeClass("tree-select", void 0, cssVarsRef,
|
|
95380
|
+
const themeClassHandle = inlineThemeDisabled ? useThemeClass("tree-select", void 0, cssVarsRef, props) : void 0;
|
|
94806
95381
|
return {
|
|
94807
95382
|
menuElRef,
|
|
94808
95383
|
mergedStatus: mergedStatusRef,
|
|
@@ -94813,7 +95388,7 @@
|
|
|
94813
95388
|
mergedValue: mergedValueRef,
|
|
94814
95389
|
mergedShow: mergedShowRef,
|
|
94815
95390
|
namespace: namespaceRef,
|
|
94816
|
-
adjustedTo: useAdjustedTo(
|
|
95391
|
+
adjustedTo: useAdjustedTo(props),
|
|
94817
95392
|
isMounted: isMounted(),
|
|
94818
95393
|
focused: focusedRef,
|
|
94819
95394
|
menuPadding: menuPaddingRef,
|
|
@@ -95088,12 +95663,14 @@
|
|
|
95088
95663
|
return {
|
|
95089
95664
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
95090
95665
|
cssVars: inlineThemeDisabled ? void 0 : cssVarsRef,
|
|
95091
|
-
themeClass: themeClassHandle
|
|
95092
|
-
onRender: themeClassHandle
|
|
95666
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
95667
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
95093
95668
|
};
|
|
95094
95669
|
},
|
|
95095
95670
|
|
|
95096
95671
|
render() {
|
|
95672
|
+
var _this$onRender;
|
|
95673
|
+
|
|
95097
95674
|
const {
|
|
95098
95675
|
prefix,
|
|
95099
95676
|
alignText,
|
|
@@ -95101,7 +95678,7 @@
|
|
|
95101
95678
|
cssVars,
|
|
95102
95679
|
$slots
|
|
95103
95680
|
} = this;
|
|
95104
|
-
this.onRender
|
|
95681
|
+
(_this$onRender = this.onRender) === null || _this$onRender === void 0 ? void 0 : _this$onRender.call(this);
|
|
95105
95682
|
return vue.h(`h${level}`, {
|
|
95106
95683
|
class: [`${mergedClsPrefix}-h`, `${mergedClsPrefix}-h${level}`, this.themeClass, {
|
|
95107
95684
|
[`${mergedClsPrefix}-h--prefix-bar`]: prefix,
|
|
@@ -95984,14 +96561,17 @@
|
|
|
95984
96561
|
const { file } = props;
|
|
95985
96562
|
return ["error"].includes(file.status);
|
|
95986
96563
|
});
|
|
96564
|
+
const mergedThumbnailUrlRef = useMemo(() => {
|
|
96565
|
+
return thumbnailUrlRef.value || props.file.thumbnailUrl || props.file.url;
|
|
96566
|
+
});
|
|
95987
96567
|
const showPreviewButtonRef = vue.computed(() => {
|
|
95988
96568
|
if (!NUpload.showPreviewButtonRef.value)
|
|
95989
96569
|
return false;
|
|
95990
96570
|
const {
|
|
95991
|
-
file: { status
|
|
96571
|
+
file: { status },
|
|
95992
96572
|
listType
|
|
95993
96573
|
} = props;
|
|
95994
|
-
return ["finished"].includes(status) &&
|
|
96574
|
+
return ["finished"].includes(status) && mergedThumbnailUrlRef.value && listType === "image-card";
|
|
95995
96575
|
});
|
|
95996
96576
|
function handleRetryClick() {
|
|
95997
96577
|
NUpload.submit(props.file.id);
|
|
@@ -96083,7 +96663,7 @@
|
|
|
96083
96663
|
showDownloadButton: showDownloadButtonRef,
|
|
96084
96664
|
showRetryButton: showRetryButtonRef,
|
|
96085
96665
|
showPreviewButton: showPreviewButtonRef,
|
|
96086
|
-
|
|
96666
|
+
mergedThumbnailUrl: mergedThumbnailUrlRef,
|
|
96087
96667
|
imageRef,
|
|
96088
96668
|
handleRemoveOrCancelClick,
|
|
96089
96669
|
handleDownloadClick,
|
|
@@ -96101,19 +96681,19 @@
|
|
|
96101
96681
|
class: `${clsPrefix}-upload-file-info__thumbnail`
|
|
96102
96682
|
}, /* @__PURE__ */ vue.h(NBaseIcon, {
|
|
96103
96683
|
clsPrefix
|
|
96104
|
-
}, { default: () => documentIcon })) :
|
|
96684
|
+
}, { default: () => documentIcon })) : this.mergedThumbnailUrl && file.status !== "error" ? /* @__PURE__ */ vue.h("a", {
|
|
96105
96685
|
rel: "noopener noreferer",
|
|
96106
96686
|
target: "_blank",
|
|
96107
96687
|
href: file.url || void 0,
|
|
96108
96688
|
class: `${clsPrefix}-upload-file-info__thumbnail`,
|
|
96109
96689
|
onClick: this.handlePreviewClick
|
|
96110
96690
|
}, listType === "image-card" ? /* @__PURE__ */ vue.h(NImage, {
|
|
96111
|
-
src: this.
|
|
96691
|
+
src: this.mergedThumbnailUrl || void 0,
|
|
96112
96692
|
previewSrc: file.url || void 0,
|
|
96113
96693
|
alt: file.name,
|
|
96114
96694
|
ref: "imageRef"
|
|
96115
96695
|
}) : /* @__PURE__ */ vue.h("img", {
|
|
96116
|
-
src: this.
|
|
96696
|
+
src: this.mergedThumbnailUrl || void 0,
|
|
96117
96697
|
alt: file.name
|
|
96118
96698
|
})) : /* @__PURE__ */ vue.h("span", {
|
|
96119
96699
|
class: `${clsPrefix}-upload-file-info__thumbnail`
|
|
@@ -97036,7 +97616,10 @@
|
|
|
97036
97616
|
|
|
97037
97617
|
var style = c$1([cB("watermark-container", `
|
|
97038
97618
|
position: relative;
|
|
97039
|
-
`, [cNotM("selectable",
|
|
97619
|
+
`, [cNotM("selectable", `
|
|
97620
|
+
user-select: none;
|
|
97621
|
+
-webkit-user-select: none;
|
|
97622
|
+
`)]), cB("watermark", `
|
|
97040
97623
|
position: absolute;
|
|
97041
97624
|
top: 0;
|
|
97042
97625
|
left: 0;
|
|
@@ -97277,13 +97860,15 @@
|
|
|
97277
97860
|
app.mount(hostEl);
|
|
97278
97861
|
|
|
97279
97862
|
const unmount = () => {
|
|
97863
|
+
var _hostEl$parentNode;
|
|
97864
|
+
|
|
97280
97865
|
if (app === null || hostEl === null) {
|
|
97281
97866
|
warn$2("discrete", "unmount call no need because discrete app has been unmounted");
|
|
97282
97867
|
return;
|
|
97283
97868
|
}
|
|
97284
97869
|
|
|
97285
97870
|
app.unmount();
|
|
97286
|
-
hostEl.parentNode
|
|
97871
|
+
(_hostEl$parentNode = hostEl.parentNode) === null || _hostEl$parentNode === void 0 ? void 0 : _hostEl$parentNode.removeChild(hostEl);
|
|
97287
97872
|
hostEl = null;
|
|
97288
97873
|
app = null;
|
|
97289
97874
|
};
|
|
@@ -97348,153 +97933,274 @@
|
|
|
97348
97933
|
var components = /*#__PURE__*/Object.freeze({
|
|
97349
97934
|
__proto__: null,
|
|
97350
97935
|
NAffix: NAffix,
|
|
97936
|
+
affixProps: affixProps,
|
|
97351
97937
|
NAlert: Alert,
|
|
97938
|
+
alertProps: alertProps,
|
|
97352
97939
|
NAnchor: AnchorAdapter,
|
|
97940
|
+
anchorProps: anchorProps,
|
|
97353
97941
|
NAnchorLink: Link,
|
|
97942
|
+
anchorLinkProps: anchorLinkProps,
|
|
97354
97943
|
NAutoComplete: AutoComplete,
|
|
97944
|
+
autoCompleteProps: autoCompleteProps,
|
|
97355
97945
|
NAvatar: NAvatar,
|
|
97946
|
+
avatarProps: avatarProps,
|
|
97356
97947
|
NAvatarGroup: AvatarGroup,
|
|
97948
|
+
avatarGroupProps: avatarGroupProps,
|
|
97357
97949
|
NBackTop: BackTop,
|
|
97950
|
+
backTopProps: backTopProps,
|
|
97358
97951
|
NBadge: Badge,
|
|
97952
|
+
badgeProps: badgeProps,
|
|
97359
97953
|
NBreadcrumb: Breadcrumb,
|
|
97954
|
+
breadcrumbProps: breadcrumbProps,
|
|
97360
97955
|
NBreadcrumbItem: BreadcrumbItem,
|
|
97956
|
+
breadcrumbItemProps: breadcrumbItemProps,
|
|
97361
97957
|
NButton: NButton,
|
|
97362
97958
|
NxButton: XButton,
|
|
97959
|
+
buttonProps: buttonProps,
|
|
97363
97960
|
NButtonGroup: NButtonGroup,
|
|
97961
|
+
buttonGroupProps: buttonGroupProps,
|
|
97364
97962
|
NCalendar: Calendar,
|
|
97963
|
+
calendarProps: calendarProps,
|
|
97365
97964
|
NColorPicker: NColorPicker,
|
|
97965
|
+
colorPickerProps: colorPickerProps,
|
|
97366
97966
|
NCard: NCard,
|
|
97967
|
+
cardProps: cardProps,
|
|
97367
97968
|
NCarousel: Carousel,
|
|
97969
|
+
carouselProps: carouselProps,
|
|
97368
97970
|
NCarouselItem: NCarouselItem,
|
|
97369
97971
|
NCascader: Cascader,
|
|
97972
|
+
cascaderProps: cascaderProps,
|
|
97370
97973
|
NCheckbox: NCheckbox,
|
|
97974
|
+
checkboxProps: checkboxProps,
|
|
97371
97975
|
NCheckboxGroup: NCheckboxGroup,
|
|
97976
|
+
checkboxGroupProps: checkboxGroupProps,
|
|
97372
97977
|
NCode: NCode,
|
|
97978
|
+
codeProps: codeProps,
|
|
97373
97979
|
NCollapse: NCollapse,
|
|
97980
|
+
collapseProps: collapseProps,
|
|
97374
97981
|
NCollapseItem: NCollapseItem,
|
|
97982
|
+
collapseItemProps: collapseItemProps,
|
|
97375
97983
|
NCollapseTransition: CollapseTransition,
|
|
97984
|
+
collapseTransitionProps: collapseTransitionProps,
|
|
97376
97985
|
NConfigProvider: NConfigProvider,
|
|
97377
97986
|
configProviderProps: configProviderProps,
|
|
97378
97987
|
NCountdown: Countdown,
|
|
97988
|
+
countdownProps: countdownProps,
|
|
97379
97989
|
NNumberAnimation: NumberAnimation,
|
|
97990
|
+
numberAnimationProps: numberAnimationProps,
|
|
97380
97991
|
NDataTable: DataTable,
|
|
97992
|
+
dataTableProps: dataTableProps,
|
|
97381
97993
|
NDatePicker: DatePicker,
|
|
97994
|
+
datePickerProps: datePickerProps,
|
|
97382
97995
|
NDescriptions: Descriptions,
|
|
97996
|
+
descriptionsProps: descriptionsProps,
|
|
97383
97997
|
NDescriptionsItem: DescriptionsItem,
|
|
97998
|
+
descriptionsItemProps: descriptionsItemProps,
|
|
97384
97999
|
NDialog: NDialog,
|
|
98000
|
+
dialogProps: dialogProps,
|
|
97385
98001
|
NDialogProvider: NDialogProvider,
|
|
98002
|
+
dialogProviderProps: dialogProviderProps,
|
|
97386
98003
|
useDialog: useDialog,
|
|
97387
98004
|
NDivider: NDivider,
|
|
98005
|
+
dividerProps: dividerProps,
|
|
97388
98006
|
NDrawer: Drawer,
|
|
98007
|
+
drawerProps: drawerProps,
|
|
97389
98008
|
NDrawerContent: DrawerContent,
|
|
98009
|
+
drawerContentProps: drawerContentProps,
|
|
97390
98010
|
NDropdown: NDropdown,
|
|
98011
|
+
dropdownProps: dropdownProps,
|
|
97391
98012
|
NDynamicInput: DynamicInput,
|
|
98013
|
+
dynamicInputProps: dynamicInputProps,
|
|
97392
98014
|
NDynamicTags: DynamicTags,
|
|
98015
|
+
dynamicTagsProps: dynamicTagsProps,
|
|
97393
98016
|
NElement: NElement,
|
|
98017
|
+
elementProps: elementProps,
|
|
97394
98018
|
NEl: NElement,
|
|
97395
98019
|
NEllipsis: NEllipsis,
|
|
98020
|
+
ellipsisProps: ellipsisProps,
|
|
97396
98021
|
NEmpty: NEmpty,
|
|
98022
|
+
emptyProps: emptyProps,
|
|
97397
98023
|
NForm: Form,
|
|
98024
|
+
formProps: formProps,
|
|
97398
98025
|
NFormItem: NFormItem,
|
|
98026
|
+
formItemProps: formItemProps,
|
|
97399
98027
|
NFormItemGridItem: FormItemGridItem,
|
|
97400
98028
|
NFormItemGi: FormItemGridItem,
|
|
98029
|
+
formItemGiProps: formItemGiProps,
|
|
98030
|
+
formItemGridItemProps: formItemGiProps,
|
|
97401
98031
|
NFormItemCol: NFormItemCol,
|
|
97402
98032
|
NFormItemRow: FormItemRow,
|
|
97403
98033
|
NGlobalStyle: GlobalStyle,
|
|
97404
98034
|
NGradientText: GradientText,
|
|
98035
|
+
gradientTextProps: gradientTextProps,
|
|
97405
98036
|
NGrid: Grid,
|
|
98037
|
+
gridProps: gridProps,
|
|
97406
98038
|
NGridItem: NGridItem,
|
|
98039
|
+
gridItemProps: gridItemProps,
|
|
97407
98040
|
NGi: NGridItem,
|
|
98041
|
+
giProps: gridItemProps,
|
|
97408
98042
|
NIcon: NIcon,
|
|
98043
|
+
iconProps: iconProps,
|
|
97409
98044
|
NIconWrapper: NIconWrapper,
|
|
98045
|
+
iconWrapperProps: iconWrapperProps,
|
|
97410
98046
|
NImage: NImage,
|
|
98047
|
+
imageProps: imageProps,
|
|
97411
98048
|
NImageGroup: NImageGroup,
|
|
98049
|
+
imageGroupProps: imageGroupProps,
|
|
97412
98050
|
NInput: NInput,
|
|
98051
|
+
inputProps: inputProps,
|
|
97413
98052
|
NInputGroup: NInputGroup,
|
|
98053
|
+
inputGroupProps: inputGroupProps,
|
|
97414
98054
|
NInputGroupLabel: InputGroupLabel,
|
|
98055
|
+
inputGroupLabelProps: inputGroupLabelProps,
|
|
97415
98056
|
NInputNumber: InputNumber,
|
|
98057
|
+
inputNumberProps: inputNumberProps,
|
|
97416
98058
|
NLayout: Layout,
|
|
98059
|
+
layoutProps: layoutProps,
|
|
98060
|
+
layoutContentProps: layoutProps,
|
|
97417
98061
|
NLayoutContent: LayoutContent,
|
|
97418
98062
|
NLayoutHeader: LayoutHeader,
|
|
98063
|
+
layoutHeaderProps: headerProps$1,
|
|
97419
98064
|
NLayoutFooter: LayoutFooter,
|
|
98065
|
+
layoutFooterProps: layoutFooterProps,
|
|
97420
98066
|
NLayoutSider: LayoutSider,
|
|
98067
|
+
layoutSiderProps: layoutSiderProps,
|
|
97421
98068
|
NRow: NRow,
|
|
98069
|
+
rowProps: rowProps,
|
|
97422
98070
|
NCol: NCol,
|
|
98071
|
+
colProps: colProps,
|
|
97423
98072
|
NList: List,
|
|
98073
|
+
listProps: listProps,
|
|
97424
98074
|
NListItem: ListItem,
|
|
97425
98075
|
NLoadingBarProvider: NLoadingBarProvider,
|
|
98076
|
+
loadingBarProviderProps: loadingBarProviderProps,
|
|
97426
98077
|
useLoadingBar: useLoadingBar,
|
|
97427
98078
|
NLog: Log,
|
|
98079
|
+
logProps: logProps,
|
|
97428
98080
|
NMenu: Menu,
|
|
98081
|
+
menuProps: menuProps,
|
|
97429
98082
|
NMention: Mention,
|
|
98083
|
+
mentionProps: mentionProps,
|
|
97430
98084
|
NMessageProvider: NMessageProvider,
|
|
98085
|
+
messageProviderProps: messageProviderProps,
|
|
97431
98086
|
useMessage: useMessage,
|
|
97432
98087
|
NModal: NModal,
|
|
98088
|
+
modalProps: modalProps,
|
|
97433
98089
|
NNotificationProvider: NNotificationProvider,
|
|
98090
|
+
notificationProviderProps: notificationProviderProps,
|
|
97434
98091
|
useNotification: useNotification,
|
|
97435
98092
|
NPageHeader: PageHeader,
|
|
98093
|
+
pageHeaderProps: pageHeaderProps,
|
|
97436
98094
|
NPagination: NPagination,
|
|
98095
|
+
paginationProps: paginationProps,
|
|
97437
98096
|
NPopconfirm: Popconfirm,
|
|
98097
|
+
popconfirmProps: popconfirmProps,
|
|
97438
98098
|
NPopover: NPopover,
|
|
98099
|
+
popoverProps: popoverProps,
|
|
97439
98100
|
NPopselect: NPopselect,
|
|
98101
|
+
popselectProps: popselectProps,
|
|
97440
98102
|
NProgress: NProgress,
|
|
98103
|
+
progressProps: progressProps,
|
|
97441
98104
|
NRadio: NRadio,
|
|
98105
|
+
radioProps: radioProps,
|
|
97442
98106
|
NRadioGroup: NRadioGroup,
|
|
98107
|
+
radioGroupProps: radioGroupProps,
|
|
97443
98108
|
NRadioButton: RadioButton,
|
|
98109
|
+
radioButtonProps: radioButtonProps,
|
|
97444
98110
|
NRate: Rate,
|
|
98111
|
+
rateProps: rateProps,
|
|
97445
98112
|
NResult: Result,
|
|
98113
|
+
resultProps: resultProps,
|
|
97446
98114
|
NScrollbar: Scrollbar$1,
|
|
98115
|
+
scrollbarProps: scrollbarProps,
|
|
97447
98116
|
NSelect: NSelect,
|
|
98117
|
+
selectProps: selectProps,
|
|
97448
98118
|
NSkeleton: Skeleton,
|
|
98119
|
+
skeletonProps: skeletonProps,
|
|
97449
98120
|
NSlider: Slider,
|
|
98121
|
+
sliderProps: sliderProps,
|
|
97450
98122
|
NSpace: NSpace,
|
|
98123
|
+
spaceProps: spaceProps,
|
|
97451
98124
|
NSpin: Spin,
|
|
98125
|
+
spinProps: spinProps,
|
|
97452
98126
|
NStatistic: Statistic,
|
|
98127
|
+
statisticProps: statisticProps,
|
|
97453
98128
|
NSteps: Steps,
|
|
98129
|
+
stepsProps: stepsProps,
|
|
97454
98130
|
NStep: Step,
|
|
98131
|
+
stepProps: stepProps,
|
|
97455
98132
|
NSwitch: Switch,
|
|
98133
|
+
switchProps: switchProps,
|
|
97456
98134
|
NTable: Table,
|
|
98135
|
+
tableProps: tableProps,
|
|
97457
98136
|
NTh: Th,
|
|
97458
98137
|
NTr: Tr,
|
|
97459
98138
|
NTd: Td,
|
|
97460
98139
|
NThead: Thead,
|
|
97461
98140
|
NTbody: Tbody,
|
|
97462
98141
|
NTabs: Tabs,
|
|
98142
|
+
tabsProps: tabsProps,
|
|
97463
98143
|
NTabPane: TabPane,
|
|
98144
|
+
tabPaneProps: tabPaneProps,
|
|
97464
98145
|
NTab: Tab,
|
|
98146
|
+
tabProps: tabProps,
|
|
97465
98147
|
NTag: NTag,
|
|
98148
|
+
tagProps: tagProps,
|
|
97466
98149
|
NThing: Thing,
|
|
98150
|
+
thingProps: thingProps,
|
|
97467
98151
|
NTime: Time,
|
|
98152
|
+
timeProps: timeProps,
|
|
97468
98153
|
NTimePicker: NTimePicker,
|
|
98154
|
+
timePickerProps: timePickerProps,
|
|
97469
98155
|
NTimeline: Timeline,
|
|
98156
|
+
timelineProps: timelineProps,
|
|
97470
98157
|
NTimelineItem: TimelineItem,
|
|
98158
|
+
timelineItemProps: timelineItemProps,
|
|
97471
98159
|
NTooltip: NTooltip,
|
|
98160
|
+
tooltipProps: tooltipProps,
|
|
97472
98161
|
NTransfer: Transfer,
|
|
98162
|
+
transferProps: transferProps,
|
|
97473
98163
|
NTree: NTree,
|
|
98164
|
+
treeProps: treeProps,
|
|
97474
98165
|
NTreeSelect: TreeSelect,
|
|
98166
|
+
treeSelectProps: treeSelectProps,
|
|
97475
98167
|
NH1: NH1,
|
|
97476
98168
|
NH2: NH2,
|
|
97477
98169
|
NH3: NH3,
|
|
97478
98170
|
NH4: NH4,
|
|
97479
98171
|
NH5: NH5,
|
|
97480
98172
|
NH6: NH6,
|
|
98173
|
+
h1Props: headerProps,
|
|
98174
|
+
h2Props: headerProps,
|
|
98175
|
+
h3Props: headerProps,
|
|
98176
|
+
h4Props: headerProps,
|
|
98177
|
+
h5Props: headerProps,
|
|
98178
|
+
h6Props: headerProps,
|
|
97481
98179
|
NA: a,
|
|
98180
|
+
aProps: aProps,
|
|
97482
98181
|
NP: p,
|
|
98182
|
+
pProps: pProps,
|
|
97483
98183
|
NBlockquote: blockquote,
|
|
98184
|
+
blockquoteProps: blockquoteProps,
|
|
97484
98185
|
NHr: hr,
|
|
97485
98186
|
NUl: ul,
|
|
98187
|
+
ulProps: ulProps,
|
|
97486
98188
|
NOl: ol,
|
|
98189
|
+
olProps: olProps,
|
|
97487
98190
|
NLi: li,
|
|
97488
98191
|
NText: text,
|
|
98192
|
+
textProps: textProps,
|
|
97489
98193
|
NUpload: Upload,
|
|
98194
|
+
uploadProps: uploadProps,
|
|
97490
98195
|
NUploadDragger: NUploadDragger,
|
|
97491
98196
|
NUploadTrigger: NUploadTrigger,
|
|
97492
98197
|
NUploadFileList: NUploadFileList,
|
|
97493
98198
|
NWatermark: Watermark,
|
|
98199
|
+
watermarkProps: watermarkProps,
|
|
97494
98200
|
createDiscreteApi: createDiscreteApi
|
|
97495
98201
|
});
|
|
97496
98202
|
|
|
97497
|
-
var version = "2.
|
|
98203
|
+
var version = "2.31.0";
|
|
97498
98204
|
|
|
97499
98205
|
function create() {
|
|
97500
98206
|
let {
|
|
@@ -97554,9 +98260,9 @@
|
|
|
97554
98260
|
value: mergedThemeOverrides
|
|
97555
98261
|
}
|
|
97556
98262
|
} = configProviderInjection;
|
|
97557
|
-
const currentThemeVars = mergedTheme
|
|
98263
|
+
const currentThemeVars = (mergedTheme === null || mergedTheme === void 0 ? void 0 : mergedTheme.common) || commonLight;
|
|
97558
98264
|
|
|
97559
|
-
if (mergedThemeOverrides
|
|
98265
|
+
if (mergedThemeOverrides !== null && mergedThemeOverrides !== void 0 && mergedThemeOverrides.common) {
|
|
97560
98266
|
return Object.assign({}, currentThemeVars, mergedThemeOverrides.common);
|
|
97561
98267
|
} else {
|
|
97562
98268
|
return currentThemeVars;
|
|
@@ -98220,34 +98926,63 @@
|
|
|
98220
98926
|
exports.NUploadTrigger = NUploadTrigger;
|
|
98221
98927
|
exports.NWatermark = Watermark;
|
|
98222
98928
|
exports.NxButton = XButton;
|
|
98929
|
+
exports.aProps = aProps;
|
|
98930
|
+
exports.affixProps = affixProps;
|
|
98223
98931
|
exports.alertDark = alertDark$1;
|
|
98932
|
+
exports.alertProps = alertProps;
|
|
98224
98933
|
exports.anchorDark = anchorDark$1;
|
|
98934
|
+
exports.anchorLinkProps = anchorLinkProps;
|
|
98935
|
+
exports.anchorProps = anchorProps;
|
|
98225
98936
|
exports.autoCompleteDark = autoCompleteDark$1;
|
|
98937
|
+
exports.autoCompleteProps = autoCompleteProps;
|
|
98226
98938
|
exports.avatarDark = avatarDark$1;
|
|
98939
|
+
exports.avatarGroupProps = avatarGroupProps;
|
|
98940
|
+
exports.avatarProps = avatarProps;
|
|
98227
98941
|
exports.backTopDark = backTopDark$1;
|
|
98942
|
+
exports.backTopProps = backTopProps;
|
|
98228
98943
|
exports.badgeDark = badgeDark$1;
|
|
98944
|
+
exports.badgeProps = badgeProps;
|
|
98945
|
+
exports.blockquoteProps = blockquoteProps;
|
|
98229
98946
|
exports.breadcrumbDark = breadcrumbDark$1;
|
|
98947
|
+
exports.breadcrumbItemProps = breadcrumbItemProps;
|
|
98948
|
+
exports.breadcrumbProps = breadcrumbProps;
|
|
98230
98949
|
exports.buttonDark = buttonDark$1;
|
|
98231
98950
|
exports.buttonGroupDark = buttonGroupDark$1;
|
|
98951
|
+
exports.buttonGroupProps = buttonGroupProps;
|
|
98952
|
+
exports.buttonProps = buttonProps;
|
|
98232
98953
|
exports.c = c$1;
|
|
98233
98954
|
exports.cB = cB;
|
|
98234
98955
|
exports.cE = cE;
|
|
98235
98956
|
exports.cM = cM;
|
|
98236
98957
|
exports.cNotM = cNotM;
|
|
98958
|
+
exports.calendarProps = calendarProps;
|
|
98237
98959
|
exports.cardDark = cardDark$1;
|
|
98960
|
+
exports.cardProps = cardProps;
|
|
98961
|
+
exports.carouselProps = carouselProps;
|
|
98238
98962
|
exports.cascaderDark = cascaderDark$1;
|
|
98963
|
+
exports.cascaderProps = cascaderProps;
|
|
98239
98964
|
exports.checkboxDark = checkboxDark$1;
|
|
98965
|
+
exports.checkboxGroupProps = checkboxGroupProps;
|
|
98966
|
+
exports.checkboxProps = checkboxProps;
|
|
98240
98967
|
exports.codeDark = codeDark$1;
|
|
98968
|
+
exports.codeProps = codeProps;
|
|
98969
|
+
exports.colProps = colProps;
|
|
98241
98970
|
exports.collapseDark = collapseDark$1;
|
|
98971
|
+
exports.collapseItemProps = collapseItemProps;
|
|
98972
|
+
exports.collapseProps = collapseProps;
|
|
98973
|
+
exports.collapseTransitionProps = collapseTransitionProps;
|
|
98974
|
+
exports.colorPickerProps = colorPickerProps;
|
|
98242
98975
|
exports.commonDark = commonDark;
|
|
98243
98976
|
exports.commonLight = commonLight;
|
|
98244
98977
|
exports.configProviderProps = configProviderProps;
|
|
98978
|
+
exports.countdownProps = countdownProps;
|
|
98245
98979
|
exports.create = create;
|
|
98246
98980
|
exports.createDiscreteApi = createDiscreteApi;
|
|
98247
98981
|
exports.createLocale = createLocale;
|
|
98248
98982
|
exports.createTheme = createTheme;
|
|
98249
98983
|
exports.darkTheme = darkTheme;
|
|
98250
98984
|
exports.dataTableDark = dataTableDark$1;
|
|
98985
|
+
exports.dataTableProps = dataTableProps;
|
|
98251
98986
|
exports.dateDeDE = dateDeDE$1;
|
|
98252
98987
|
exports.dateEnGB = dateEnGB$1;
|
|
98253
98988
|
exports.dateEnUS = dateEnUS;
|
|
@@ -98261,6 +98996,7 @@
|
|
|
98261
98996
|
exports.dateNbNO = dateNbNO$1;
|
|
98262
98997
|
exports.dateNlNL = dateNlNL$1;
|
|
98263
98998
|
exports.datePickerDark = datePickerDark$1;
|
|
98999
|
+
exports.datePickerProps = datePickerProps;
|
|
98264
99000
|
exports.datePlPL = datePlPL$1;
|
|
98265
99001
|
exports.datePtBR = datePtBr$1;
|
|
98266
99002
|
exports.dateRuRU = dateRuRU$1;
|
|
@@ -98273,76 +99009,165 @@
|
|
|
98273
99009
|
exports.deDE = deDE$1;
|
|
98274
99010
|
exports["default"] = naive$1;
|
|
98275
99011
|
exports.descriptionsDark = descriptionsDark$1;
|
|
99012
|
+
exports.descriptionsItemProps = descriptionsItemProps;
|
|
99013
|
+
exports.descriptionsProps = descriptionsProps;
|
|
98276
99014
|
exports.dialogDark = dialogDark$1;
|
|
99015
|
+
exports.dialogProps = dialogProps;
|
|
99016
|
+
exports.dialogProviderProps = dialogProviderProps;
|
|
98277
99017
|
exports.dividerDark = dividerDark$1;
|
|
99018
|
+
exports.dividerProps = dividerProps;
|
|
99019
|
+
exports.drawerContentProps = drawerContentProps;
|
|
98278
99020
|
exports.drawerDark = drawerDark$1;
|
|
99021
|
+
exports.drawerProps = drawerProps;
|
|
98279
99022
|
exports.dropdownDark = dropdownDark$1;
|
|
99023
|
+
exports.dropdownProps = dropdownProps;
|
|
98280
99024
|
exports.dynamicInputDark = dynamicInputDark$1;
|
|
99025
|
+
exports.dynamicInputProps = dynamicInputProps;
|
|
98281
99026
|
exports.dynamicTagsDark = dynamicTagsDark$1;
|
|
99027
|
+
exports.dynamicTagsProps = dynamicTagsProps;
|
|
98282
99028
|
exports.elementDark = elementDark$1;
|
|
99029
|
+
exports.elementProps = elementProps;
|
|
99030
|
+
exports.ellipsisProps = ellipsisProps;
|
|
98283
99031
|
exports.emptyDark = emptyDark$1;
|
|
99032
|
+
exports.emptyProps = emptyProps;
|
|
98284
99033
|
exports.enGB = enGB$1;
|
|
98285
99034
|
exports.enUS = enUS$2;
|
|
98286
99035
|
exports.eo = eo$1;
|
|
98287
99036
|
exports.esAR = esAR$1;
|
|
98288
99037
|
exports.formDark = formDark;
|
|
99038
|
+
exports.formItemGiProps = formItemGiProps;
|
|
99039
|
+
exports.formItemGridItemProps = formItemGiProps;
|
|
99040
|
+
exports.formItemProps = formItemProps;
|
|
99041
|
+
exports.formProps = formProps;
|
|
98289
99042
|
exports.frFR = frFR$1;
|
|
99043
|
+
exports.giProps = gridItemProps;
|
|
98290
99044
|
exports.gradientTextDark = gradientTextDark$1;
|
|
99045
|
+
exports.gradientTextProps = gradientTextProps;
|
|
99046
|
+
exports.gridItemProps = gridItemProps;
|
|
99047
|
+
exports.gridProps = gridProps;
|
|
99048
|
+
exports.h1Props = headerProps;
|
|
99049
|
+
exports.h2Props = headerProps;
|
|
99050
|
+
exports.h3Props = headerProps;
|
|
99051
|
+
exports.h4Props = headerProps;
|
|
99052
|
+
exports.h5Props = headerProps;
|
|
99053
|
+
exports.h6Props = headerProps;
|
|
98291
99054
|
exports.iconDark = iconDark$2;
|
|
99055
|
+
exports.iconProps = iconProps;
|
|
99056
|
+
exports.iconWrapperProps = iconWrapperProps;
|
|
98292
99057
|
exports.idID = idID$1;
|
|
99058
|
+
exports.imageGroupProps = imageGroupProps;
|
|
99059
|
+
exports.imageProps = imageProps;
|
|
98293
99060
|
exports.inputDark = inputDark$1;
|
|
99061
|
+
exports.inputGroupLabelProps = inputGroupLabelProps;
|
|
99062
|
+
exports.inputGroupProps = inputGroupProps;
|
|
98294
99063
|
exports.inputNumberDark = inputNumberDark$1;
|
|
99064
|
+
exports.inputNumberProps = inputNumberProps;
|
|
99065
|
+
exports.inputProps = inputProps;
|
|
98295
99066
|
exports.install = install;
|
|
98296
99067
|
exports.internalSelectMenuDark = internalSelectMenuDark$1;
|
|
98297
99068
|
exports.internalSelectionDark = internalSelectionDark$1;
|
|
98298
99069
|
exports.itIT = itIT$1;
|
|
98299
99070
|
exports.jaJP = jaJP$1;
|
|
98300
99071
|
exports.koKR = koKR$1;
|
|
99072
|
+
exports.layoutContentProps = layoutProps;
|
|
98301
99073
|
exports.layoutDark = layoutDark$1;
|
|
99074
|
+
exports.layoutFooterProps = layoutFooterProps;
|
|
99075
|
+
exports.layoutHeaderProps = headerProps$1;
|
|
99076
|
+
exports.layoutProps = layoutProps;
|
|
99077
|
+
exports.layoutSiderProps = layoutSiderProps;
|
|
98302
99078
|
exports.lightTheme = lightTheme;
|
|
98303
99079
|
exports.listDark = listDark$2;
|
|
99080
|
+
exports.listProps = listProps;
|
|
98304
99081
|
exports.loadingBarDark = loadingBarDark$1;
|
|
99082
|
+
exports.loadingBarProviderProps = loadingBarProviderProps;
|
|
98305
99083
|
exports.logDark = logDark$1;
|
|
99084
|
+
exports.logProps = logProps;
|
|
98306
99085
|
exports.mentionDark = mentionDark;
|
|
99086
|
+
exports.mentionProps = mentionProps;
|
|
98307
99087
|
exports.menuDark = menuDark$1;
|
|
99088
|
+
exports.menuProps = menuProps;
|
|
98308
99089
|
exports.messageDark = messageDark$1;
|
|
99090
|
+
exports.messageProviderProps = messageProviderProps;
|
|
98309
99091
|
exports.modalDark = modalDark$1;
|
|
99092
|
+
exports.modalProps = modalProps;
|
|
98310
99093
|
exports.nbNO = nbNO$1;
|
|
98311
99094
|
exports.nlNL = nlNL$1;
|
|
98312
99095
|
exports.notificationDark = notificationDark$1;
|
|
99096
|
+
exports.notificationProviderProps = notificationProviderProps;
|
|
99097
|
+
exports.numberAnimationProps = numberAnimationProps;
|
|
99098
|
+
exports.olProps = olProps;
|
|
99099
|
+
exports.pProps = pProps;
|
|
99100
|
+
exports.pageHeaderProps = pageHeaderProps;
|
|
98313
99101
|
exports.paginationDark = paginationDark$1;
|
|
99102
|
+
exports.paginationProps = paginationProps;
|
|
98314
99103
|
exports.plPL = plPL$1;
|
|
98315
99104
|
exports.popconfirmDark = popconfirmDark$1;
|
|
99105
|
+
exports.popconfirmProps = popconfirmProps;
|
|
98316
99106
|
exports.popoverDark = popoverDark$1;
|
|
99107
|
+
exports.popoverProps = popoverProps;
|
|
98317
99108
|
exports.popselectDark = popselectDark;
|
|
99109
|
+
exports.popselectProps = popselectProps;
|
|
98318
99110
|
exports.progressDark = progressDark$1;
|
|
99111
|
+
exports.progressProps = progressProps;
|
|
98319
99112
|
exports.ptBR = ptBR$1;
|
|
99113
|
+
exports.radioButtonProps = radioButtonProps;
|
|
98320
99114
|
exports.radioDark = radioDark$1;
|
|
99115
|
+
exports.radioGroupProps = radioGroupProps;
|
|
99116
|
+
exports.radioProps = radioProps;
|
|
98321
99117
|
exports.rateDark = rateDark$1;
|
|
99118
|
+
exports.rateProps = rateProps;
|
|
98322
99119
|
exports.resultDark = resultDark$1;
|
|
99120
|
+
exports.resultProps = resultProps;
|
|
99121
|
+
exports.rowProps = rowProps;
|
|
98323
99122
|
exports.ruRU = ruRu$1;
|
|
98324
99123
|
exports.scrollbarDark = scrollbarDark$1;
|
|
99124
|
+
exports.scrollbarProps = scrollbarProps;
|
|
98325
99125
|
exports.selectDark = selectDark$1;
|
|
99126
|
+
exports.selectProps = selectProps;
|
|
98326
99127
|
exports.skSK = skSK$1;
|
|
99128
|
+
exports.skeletonProps = skeletonProps;
|
|
98327
99129
|
exports.sliderDark = sliderDark$1;
|
|
99130
|
+
exports.sliderProps = sliderProps;
|
|
98328
99131
|
exports.spaceDark = spaceDark$1;
|
|
99132
|
+
exports.spaceProps = spaceProps;
|
|
98329
99133
|
exports.spinDark = spinDark$1;
|
|
99134
|
+
exports.spinProps = spinProps;
|
|
98330
99135
|
exports.statisticDark = statisticDark$1;
|
|
99136
|
+
exports.statisticProps = statisticProps;
|
|
99137
|
+
exports.stepProps = stepProps;
|
|
98331
99138
|
exports.stepsDark = stepsDark$1;
|
|
99139
|
+
exports.stepsProps = stepsProps;
|
|
98332
99140
|
exports.switchDark = switchDark$1;
|
|
99141
|
+
exports.switchProps = switchProps;
|
|
99142
|
+
exports.tabPaneProps = tabPaneProps;
|
|
99143
|
+
exports.tabProps = tabProps;
|
|
98333
99144
|
exports.tableDark = tableDark$1;
|
|
99145
|
+
exports.tableProps = tableProps;
|
|
98334
99146
|
exports.tabsDark = tabsDark$1;
|
|
99147
|
+
exports.tabsProps = tabsProps;
|
|
98335
99148
|
exports.tagDark = tagDark$1;
|
|
99149
|
+
exports.tagProps = tagProps;
|
|
99150
|
+
exports.textProps = textProps;
|
|
98336
99151
|
exports.thTH = thTH$1;
|
|
98337
99152
|
exports.thingDark = thingDark$1;
|
|
99153
|
+
exports.thingProps = thingProps;
|
|
98338
99154
|
exports.timePickerDark = timePickerDark$1;
|
|
99155
|
+
exports.timePickerProps = timePickerProps;
|
|
99156
|
+
exports.timeProps = timeProps;
|
|
98339
99157
|
exports.timelineDark = timelineDark$1;
|
|
99158
|
+
exports.timelineItemProps = timelineItemProps;
|
|
99159
|
+
exports.timelineProps = timelineProps;
|
|
98340
99160
|
exports.tooltipDark = tooltipDark$1;
|
|
99161
|
+
exports.tooltipProps = tooltipProps;
|
|
98341
99162
|
exports.transferDark = transferDark$1;
|
|
99163
|
+
exports.transferProps = transferProps;
|
|
98342
99164
|
exports.treeDark = treeDark$1;
|
|
99165
|
+
exports.treeProps = treeProps;
|
|
98343
99166
|
exports.treeSelectDark = treeSelectDark$1;
|
|
99167
|
+
exports.treeSelectProps = treeSelectProps;
|
|
98344
99168
|
exports.typographyDark = typographyDark$1;
|
|
98345
99169
|
exports.ukUA = ukUA$1;
|
|
99170
|
+
exports.ulProps = ulProps;
|
|
98346
99171
|
exports.unstableAlertRtl = alertRtl;
|
|
98347
99172
|
exports.unstableAvatarGroupRtl = avatarGroupRtl;
|
|
98348
99173
|
exports.unstableBadgeRtl = badgeRtl;
|
|
@@ -98362,6 +99187,7 @@
|
|
|
98362
99187
|
exports.unstableTableRtl = tableRtl;
|
|
98363
99188
|
exports.unstableTagRtl = tagRtl;
|
|
98364
99189
|
exports.uploadDark = uploadDark$1;
|
|
99190
|
+
exports.uploadProps = uploadProps;
|
|
98365
99191
|
exports.useDialog = useDialog;
|
|
98366
99192
|
exports.useLoadingBar = useLoadingBar;
|
|
98367
99193
|
exports.useMessage = useMessage;
|
|
@@ -98371,6 +99197,7 @@
|
|
|
98371
99197
|
exports.version = version;
|
|
98372
99198
|
exports.viVN = viVN$1;
|
|
98373
99199
|
exports.watermarkDark = watermarkDark$1;
|
|
99200
|
+
exports.watermarkProps = watermarkProps;
|
|
98374
99201
|
exports.zhCN = zhCN$1;
|
|
98375
99202
|
exports.zhTW = zhTW$1;
|
|
98376
99203
|
|