naive-ui 2.24.6 → 2.25.2
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/es/_internal/clear/src/Clear.js +3 -2
- package/es/_internal/close/src/Close.js +1 -1
- package/es/_internal/icon/src/Icon.js +1 -1
- package/es/_internal/icons/ArrowUp.d.ts +2 -0
- package/es/_internal/icons/ArrowUp.js +9 -0
- package/es/_internal/icons/index.d.ts +1 -0
- package/es/_internal/icons/index.js +1 -0
- package/es/_internal/loading/src/Loading.js +1 -1
- package/es/_internal/menu-mask/src/MenuMask.js +1 -1
- package/es/_internal/scrollbar/src/ScrollBar.js +1 -1
- package/es/_internal/select-menu/src/SelectMenu.d.ts +11 -6
- package/es/_internal/select-menu/src/SelectMenu.js +49 -24
- package/es/_internal/selection/src/Selection.d.ts +42 -29
- package/es/_internal/selection/src/Selection.js +100 -93
- package/es/_internal/selection/src/interface.d.ts +2 -2
- package/es/_internal/selection/src/styles/index.cssr.js +16 -31
- package/es/_internal/selection/styles/dark.js +3 -3
- package/es/_internal/selection/styles/light.d.ts +6 -6
- package/es/_internal/selection/styles/light.js +3 -3
- package/es/_internal/slot-machine/src/SlotMachine.js +1 -1
- package/es/_internal/wave/src/Wave.js +1 -1
- package/es/_mixins/index.d.ts +1 -1
- package/es/_mixins/index.js +1 -1
- package/es/_mixins/use-config.js +1 -1
- package/es/_mixins/use-css-vars-class.d.ts +11 -2
- package/es/_mixins/use-css-vars-class.js +49 -18
- package/es/_mixins/use-form-item.d.ts +4 -0
- package/es/_mixins/use-form-item.js +7 -0
- package/es/_mixins/use-hljs.js +1 -1
- package/es/_mixins/use-locale.js +1 -1
- package/es/_mixins/use-style.js +1 -1
- package/es/_mixins/use-theme.d.ts +1 -1
- package/es/_mixins/use-theme.js +2 -2
- package/es/_utils/css/color-to-class.d.ts +1 -0
- package/es/_utils/css/color-to-class.js +3 -0
- package/es/_utils/css/format-length.d.ts +2 -2
- package/es/_utils/css/format-length.js +1 -2
- package/es/_utils/css/index.d.ts +2 -1
- package/es/_utils/css/index.js +2 -1
- package/es/_utils/cssr/index.d.ts +1 -2
- package/es/_utils/cssr/index.js +1 -14
- package/es/_utils/index.d.ts +2 -2
- package/es/_utils/index.js +2 -2
- package/es/_utils/vue/index.d.ts +1 -1
- package/es/_utils/vue/index.js +1 -1
- package/es/_utils/vue/resolve-slot.d.ts +8 -2
- package/es/_utils/vue/resolve-slot.js +17 -1
- package/es/affix/src/Affix.js +1 -1
- package/es/alert/src/Alert.js +1 -1
- package/es/anchor/src/AnchorAdapter.js +1 -1
- package/es/auto-complete/src/AutoComplete.d.ts +16 -1
- package/es/auto-complete/src/AutoComplete.js +9 -5
- package/es/avatar/src/Avatar.js +2 -2
- package/es/avatar/src/AvatarGroup.d.ts +0 -1
- package/es/avatar/src/AvatarGroup.js +2 -3
- package/es/avatar/src/context.d.ts +2 -0
- package/es/avatar/src/context.js +2 -0
- package/es/back-top/src/BackTop.js +1 -1
- package/es/badge/src/Badge.js +1 -1
- package/es/breadcrumb/src/Breadcrumb.js +1 -1
- package/es/button/src/Button.d.ts +4 -2
- package/es/button/src/Button.js +270 -245
- package/es/button/src/ButtonGroup.js +1 -1
- package/es/button/src/styles/button.cssr.js +1 -0
- package/es/button/styles/index.d.ts +1 -1
- package/es/button/styles/index.js +1 -1
- package/es/button/styles/rtl.d.ts +2 -5
- package/es/button/styles/rtl.js +1 -1
- package/es/calendar/src/Calendar.js +1 -1
- package/es/card/src/Card.d.ts +8 -2
- package/es/card/src/Card.js +44 -40
- package/es/card/styles/index.d.ts +1 -1
- package/es/card/styles/index.js +1 -1
- package/es/card/styles/rtl.d.ts +2 -5
- package/es/card/styles/rtl.js +1 -1
- package/es/carousel/src/Carousel.js +4 -1
- package/es/carousel/src/CarouselArrow.js +6 -9
- package/es/carousel/src/styles/index.cssr.js +59 -48
- package/es/carousel/styles/light.js +2 -2
- package/es/cascader/src/Cascader.d.ts +36 -34
- package/es/cascader/src/Cascader.js +6 -6
- package/es/cascader/src/CascaderMenu.d.ts +3 -3
- package/es/cascader/src/CascaderOption.d.ts +3 -3
- package/es/cascader/src/CascaderSelectMenu.d.ts +3 -3
- package/es/cascader/src/CascaderSubmenu.d.ts +3 -3
- package/es/cascader/styles/light.d.ts +3 -3
- package/es/checkbox/src/Checkbox.js +1 -1
- package/es/checkbox/src/styles/index.cssr.js +12 -12
- package/es/code/src/Code.js +1 -1
- package/es/collapse/src/Collapse.js +1 -1
- package/es/collapse-transition/src/CollapseTransition.js +1 -1
- package/es/color-picker/src/ColorInputUnit.js +1 -1
- package/es/color-picker/src/ColorPicker.d.ts +24 -17
- package/es/color-picker/src/ColorPicker.js +7 -4
- package/es/color-picker/src/ColorPickerTrigger.js +1 -1
- package/es/color-picker/src/context.d.ts +9 -0
- package/es/color-picker/src/context.js +2 -0
- package/es/color-picker/src/styles/index.cssr.js +1 -0
- package/es/components.d.ts +2 -1
- package/es/components.js +2 -1
- package/es/composables/use-theme-vars.js +1 -1
- package/es/config-provider/src/ConfigProvider.d.ts +15 -3
- package/es/config-provider/src/ConfigProvider.js +29 -3
- package/es/config-provider/src/context.d.ts +2 -0
- package/es/config-provider/src/context.js +2 -0
- package/es/config-provider/src/interface.d.ts +2 -1
- package/es/config-provider/src/internal-interface.d.ts +4 -0
- package/es/data-table/src/DataTable.d.ts +33 -33
- package/es/data-table/src/DataTable.js +1 -1
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +6 -6
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +6 -6
- package/es/data-table/src/TableParts/Body.d.ts +6 -6
- package/es/data-table/src/TableParts/Cell.d.ts +12 -12
- package/es/data-table/src/TableParts/Header.d.ts +6 -6
- package/es/data-table/src/interface.d.ts +2 -2
- package/es/data-table/src/use-check.d.ts +2 -2
- package/es/data-table/src/use-group-header.d.ts +1 -1
- package/es/data-table/src/use-scroll.d.ts +1 -1
- package/es/data-table/src/use-scroll.js +3 -3
- package/es/data-table/src/use-sorter.d.ts +1 -1
- package/es/data-table/src/use-table-data.d.ts +1 -1
- package/es/data-table/src/utils.d.ts +2 -1
- package/es/data-table/src/utils.js +13 -3
- package/es/data-table/styles/light.d.ts +3 -3
- package/es/date-picker/src/DatePicker.d.ts +2 -1
- package/es/date-picker/src/DatePicker.js +6 -6
- package/es/descriptions/src/Descriptions.d.ts +1 -1
- package/es/descriptions/src/Descriptions.js +1 -1
- package/es/dialog/index.d.ts +3 -3
- package/es/dialog/index.js +2 -2
- package/es/dialog/src/Dialog.d.ts +27 -60
- package/es/dialog/src/Dialog.js +4 -31
- package/es/dialog/src/DialogEnvironment.d.ts +8 -9
- package/es/dialog/src/DialogEnvironment.js +3 -2
- package/es/dialog/src/DialogProvider.d.ts +3 -5
- package/es/dialog/src/DialogProvider.js +5 -6
- package/es/dialog/src/context.d.ts +3 -0
- package/es/dialog/src/context.js +3 -0
- package/es/dialog/src/dialogProps.d.ts +32 -0
- package/es/dialog/src/dialogProps.js +29 -0
- package/es/dialog/src/use-dialog.js +1 -1
- package/es/divider/src/Divider.js +1 -1
- package/es/drawer/index.d.ts +1 -0
- package/es/drawer/src/Drawer.js +1 -1
- package/es/dropdown/src/Dropdown.d.ts +17 -5
- package/es/dropdown/src/Dropdown.js +6 -5
- package/es/dropdown/src/DropdownGroup.js +1 -0
- package/es/dropdown/src/DropdownGroupHeader.js +1 -2
- package/es/dropdown/src/DropdownMenu.d.ts +0 -1
- package/es/dropdown/src/DropdownMenu.js +4 -4
- package/es/dropdown/src/DropdownOption.d.ts +3 -0
- package/es/dropdown/src/DropdownOption.js +4 -4
- package/es/dropdown/src/context.d.ts +6 -0
- package/es/dropdown/src/context.js +4 -0
- package/es/dropdown/src/interface.d.ts +1 -1
- package/es/dynamic-input/src/DynamicInput.d.ts +10 -1
- package/es/dynamic-input/src/DynamicInput.js +61 -18
- package/es/dynamic-tags/src/DynamicTags.d.ts +7 -16
- package/es/dynamic-tags/src/DynamicTags.js +14 -16
- package/es/element/src/Element.js +1 -1
- package/es/ellipsis/src/Ellipsis.js +1 -1
- package/es/empty/src/Empty.js +2 -2
- package/es/form/src/Form.d.ts +1 -1
- package/es/form/src/Form.js +2 -2
- package/es/form/src/FormItem.d.ts +1 -1
- package/es/form/src/FormItem.js +3 -2
- package/es/form/src/FormItemCol.d.ts +1 -1
- package/es/form/src/FormItemGridItem.d.ts +1 -1
- package/es/form/src/context.d.ts +3 -0
- package/es/form/src/context.js +3 -0
- package/es/form/src/interface.d.ts +4 -3
- package/es/form/src/interface.js +1 -3
- package/es/form/src/styles/form-item.cssr.js +6 -5
- package/es/form/src/utils.js +1 -1
- package/es/global-style/src/GlobalStyle.js +1 -1
- package/es/gradient-text/src/GradientText.js +1 -1
- package/es/grid/src/Grid.d.ts +0 -1
- package/es/grid/src/Grid.js +2 -3
- package/es/grid/src/GridItem.js +1 -1
- package/es/grid/src/config.d.ts +3 -0
- package/es/grid/src/config.js +3 -0
- 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 +2 -2
- package/es/icon-wrapper/index.d.ts +1 -0
- package/es/icon-wrapper/index.js +1 -0
- package/es/icon-wrapper/src/IconWrapper.d.ts +50 -0
- package/es/icon-wrapper/src/IconWrapper.js +50 -0
- package/es/icon-wrapper/src/styles/index.cssr.d.ts +2 -0
- package/es/icon-wrapper/src/styles/index.cssr.js +16 -0
- package/es/icon-wrapper/styles/dark.d.ts +3 -0
- package/es/icon-wrapper/styles/dark.js +8 -0
- package/es/icon-wrapper/styles/index.d.ts +3 -0
- package/es/icon-wrapper/styles/index.js +2 -0
- package/es/icon-wrapper/styles/light.d.ts +10 -0
- package/es/icon-wrapper/styles/light.js +14 -0
- package/es/image/src/Image.d.ts +1 -1
- package/es/image/src/ImagePreview.js +1 -1
- package/es/input/src/Input.d.ts +6 -1
- package/es/input/src/Input.js +21 -17
- package/es/input/src/InputGroup.js +1 -1
- package/es/input/src/InputGroupLabel.js +1 -1
- package/es/input/src/WordCount.js +9 -8
- package/es/input/src/styles/input.cssr.js +5 -5
- package/es/input-number/src/InputNumber.d.ts +2 -1
- package/es/input-number/src/InputNumber.js +23 -21
- package/es/layout/src/Layout.js +1 -1
- package/es/layout/src/LayoutFooter.js +1 -1
- package/es/layout/src/LayoutHeader.js +1 -1
- package/es/layout/src/LayoutSider.js +1 -1
- package/es/legacy-grid/src/Col.js +0 -3
- package/es/legacy-grid/src/Row.js +1 -1
- package/es/list/src/List.js +1 -1
- package/es/loading-bar/src/LoadingBar.js +2 -2
- package/es/loading-bar/src/LoadingBarProvider.d.ts +3 -8
- package/es/loading-bar/src/LoadingBarProvider.js +1 -3
- package/es/loading-bar/src/context.d.ts +7 -0
- package/es/loading-bar/src/context.js +3 -0
- package/es/loading-bar/src/use-loading-bar.js +1 -1
- package/es/locales/common/deDE.js +13 -15
- package/es/locales/common/enGB.d.ts +109 -0
- package/es/locales/common/enGB.js +109 -0
- package/es/locales/common/eo.d.ts +109 -0
- package/es/locales/common/eo.js +109 -0
- package/es/locales/common/jaJP.js +12 -14
- package/es/locales/common/plPL.d.ts +3 -0
- package/es/locales/common/plPL.js +109 -0
- package/es/locales/date/enGB.d.ts +3 -0
- package/es/locales/date/enGB.js +6 -0
- package/es/locales/date/eo.d.ts +3 -0
- package/es/locales/date/eo.js +6 -0
- package/es/locales/date/plPL.d.ts +3 -0
- package/es/locales/date/plPL.js +6 -0
- package/es/locales/index.d.ts +6 -0
- package/es/locales/index.js +6 -0
- package/es/log/index.d.ts +1 -1
- package/es/log/src/Log.d.ts +17 -12
- package/es/log/src/Log.js +10 -17
- package/es/log/src/LogLine.js +1 -1
- package/es/log/src/context.d.ts +2 -0
- package/es/log/src/context.js +2 -0
- package/es/log/src/styles/index.cssr.js +2 -3
- package/es/mention/src/Mention.d.ts +16 -1
- package/es/mention/src/Mention.js +7 -3
- package/es/menu/src/Menu.d.ts +3 -5
- package/es/menu/src/Menu.js +3 -3
- package/es/menu/src/MenuDivider.js +1 -1
- package/es/menu/src/MenuOption.d.ts +1 -2
- package/es/menu/src/MenuOption.js +1 -1
- package/es/menu/src/MenuOptionContent.js +1 -1
- package/es/menu/src/MenuOptionGroup.d.ts +1 -4
- package/es/menu/src/MenuOptionGroup.js +4 -5
- package/es/menu/src/Submenu.d.ts +1 -4
- package/es/menu/src/Submenu.js +3 -4
- package/es/menu/src/context.d.ts +4 -0
- package/es/menu/src/context.js +4 -0
- package/es/menu/src/use-menu-child.js +1 -3
- package/es/menu/src/useCheckDeprecated.d.ts +1 -1
- package/es/menu/src/utils.d.ts +1 -1
- package/es/menu/src/utils.js +5 -3
- package/es/message/src/Message.d.ts +2 -158
- package/es/message/src/Message.js +2 -2
- package/es/message/src/MessageProvider.d.ts +4 -9
- package/es/message/src/MessageProvider.js +2 -3
- package/es/message/src/context.d.ts +7 -0
- package/es/message/src/context.js +3 -0
- package/es/message/src/types.d.ts +1 -1
- package/es/message/src/use-message.js +1 -1
- package/es/modal/src/BodyWrapper.d.ts +5 -3
- package/es/modal/src/BodyWrapper.js +2 -2
- package/es/modal/src/Modal.d.ts +7 -4
- package/es/modal/src/Modal.js +2 -2
- package/es/modal/src/presetProps.d.ts +2 -1
- package/es/modal/src/presetProps.js +1 -1
- package/es/notification/index.d.ts +1 -1
- package/es/notification/src/Notification.d.ts +1 -2
- package/es/notification/src/Notification.js +3 -5
- package/es/notification/src/NotificationContainer.d.ts +1 -2
- package/es/notification/src/NotificationContainer.js +2 -2
- package/es/notification/src/NotificationEnvironment.d.ts +3 -4
- package/es/notification/src/NotificationEnvironment.js +3 -3
- package/es/notification/src/NotificationProvider.d.ts +10 -6
- package/es/notification/src/NotificationProvider.js +6 -6
- package/es/notification/src/context.d.ts +2 -0
- package/es/notification/src/context.js +2 -0
- package/es/page-header/src/PageHeader.js +1 -1
- package/es/pagination/src/Pagination.d.ts +33 -33
- package/es/pagination/src/Pagination.js +1 -1
- package/es/pagination/styles/light.d.ts +3 -3
- package/es/popconfirm/src/Popconfirm.d.ts +21 -8
- package/es/popconfirm/src/Popconfirm.js +1 -1
- package/es/popover/index.d.ts +1 -0
- package/es/popover/src/Popover.d.ts +21 -4
- package/es/popover/src/Popover.js +9 -2
- package/es/popover/src/PopoverBody.d.ts +4 -0
- package/es/popover/src/PopoverBody.js +13 -11
- package/es/popover/src/styles/index.cssr.js +2 -2
- package/es/popselect/src/Popselect.d.ts +31 -8
- package/es/popselect/src/Popselect.js +8 -6
- package/es/popselect/src/PopselectPanel.d.ts +2 -5
- package/es/popselect/src/PopselectPanel.js +4 -2
- package/es/progress/src/Circle.d.ts +19 -3
- package/es/progress/src/Circle.js +41 -22
- package/es/progress/src/Progress.d.ts +15 -6
- package/es/progress/src/Progress.js +44 -30
- package/es/progress/src/styles/index.cssr.js +1 -1
- package/es/radio/src/Radio.js +1 -1
- package/es/radio/src/RadioGroup.js +1 -1
- package/es/rate/src/Rate.js +1 -1
- package/es/result/src/Result.js +1 -1
- package/es/select/index.d.ts +2 -0
- package/es/select/src/Select.d.ts +71 -54
- package/es/select/src/Select.js +82 -47
- package/es/select/src/interface.d.ts +2 -0
- package/es/select/styles/light.d.ts +3 -3
- package/es/skeleton/src/Skeleton.js +1 -1
- package/es/slider/src/Slider.js +1 -1
- package/es/space/src/Space.js +1 -1
- package/es/spin/src/Spin.js +1 -1
- package/es/statistic/src/Statistic.js +1 -1
- package/es/steps/src/Steps.js +1 -1
- package/es/switch/src/Switch.js +1 -1
- package/es/table/src/Table.js +1 -1
- package/es/tabs/src/Tabs.d.ts +7 -4
- package/es/tabs/src/Tabs.js +12 -4
- package/es/tag/src/Tag.d.ts +3 -1
- package/es/tag/src/Tag.js +61 -41
- package/es/tag/src/styles/index.cssr.js +5 -17
- package/es/tag/styles/index.d.ts +1 -1
- package/es/tag/styles/index.js +1 -1
- package/es/tag/styles/rtl.d.ts +2 -5
- package/es/tag/styles/rtl.js +1 -1
- package/es/themes/dark.js +3 -0
- package/es/themes/light.js +3 -0
- package/es/themes/utils.d.ts +2 -1
- package/es/themes/utils.js +16 -4
- package/es/thing/src/Thing.js +1 -1
- package/es/time-picker/src/TimePicker.d.ts +7 -5
- package/es/time-picker/src/TimePicker.js +5 -5
- package/es/timeline/src/Timeline.js +1 -1
- package/es/tooltip/src/Tooltip.d.ts +20 -7
- package/es/tooltip/src/Tooltip.js +1 -1
- package/es/transfer/src/Transfer.d.ts +1 -1
- package/es/transfer/src/Transfer.js +1 -1
- package/es/tree/src/Tree.d.ts +6 -2
- package/es/tree/src/Tree.js +15 -8
- package/es/tree/src/TreeNode.d.ts +2 -0
- package/es/tree/src/TreeNode.js +37 -10
- package/es/tree/src/TreeNodeContent.d.ts +3 -1
- package/es/tree/src/TreeNodeContent.js +4 -3
- package/es/tree/src/interface.d.ts +5 -1
- package/es/tree/src/utils.js +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +46 -44
- package/es/tree-select/src/TreeSelect.js +8 -5
- package/es/tree-select/styles/light.d.ts +3 -3
- package/es/typography/src/a.js +1 -1
- package/es/typography/src/blockquote.js +1 -1
- package/es/typography/src/create-header.js +1 -1
- package/es/typography/src/hr.js +1 -1
- package/es/typography/src/ol.js +1 -1
- package/es/typography/src/p.js +1 -1
- package/es/typography/src/text.js +1 -1
- package/es/typography/src/ul.js +1 -1
- package/es/upload/src/Upload.js +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/clear/src/Clear.js +3 -2
- package/lib/_internal/close/src/Close.js +1 -1
- package/lib/_internal/icon/src/Icon.js +1 -1
- package/lib/_internal/icons/ArrowUp.d.ts +2 -0
- package/lib/_internal/icons/ArrowUp.js +11 -0
- package/lib/_internal/icons/index.d.ts +1 -0
- package/lib/_internal/icons/index.js +3 -1
- package/lib/_internal/loading/src/Loading.js +1 -1
- package/lib/_internal/menu-mask/src/MenuMask.js +1 -1
- package/lib/_internal/scrollbar/src/ScrollBar.js +1 -1
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +11 -6
- package/lib/_internal/select-menu/src/SelectMenu.js +47 -22
- package/lib/_internal/selection/src/Selection.d.ts +42 -29
- package/lib/_internal/selection/src/Selection.js +99 -92
- package/lib/_internal/selection/src/interface.d.ts +2 -2
- package/lib/_internal/selection/src/styles/index.cssr.js +15 -30
- package/lib/_internal/selection/styles/dark.js +3 -3
- package/lib/_internal/selection/styles/light.d.ts +6 -6
- package/lib/_internal/selection/styles/light.js +3 -3
- package/lib/_internal/slot-machine/src/SlotMachine.js +1 -1
- package/lib/_internal/wave/src/Wave.js +1 -1
- package/lib/_mixins/index.d.ts +1 -1
- package/lib/_mixins/index.js +3 -2
- package/lib/_mixins/use-config.js +2 -2
- package/lib/_mixins/use-css-vars-class.d.ts +11 -2
- package/lib/_mixins/use-css-vars-class.js +50 -22
- package/lib/_mixins/use-form-item.d.ts +4 -0
- package/lib/_mixins/use-form-item.js +7 -0
- package/lib/_mixins/use-hljs.js +2 -2
- package/lib/_mixins/use-locale.js +2 -2
- package/lib/_mixins/use-style.js +1 -1
- package/lib/_mixins/use-theme.d.ts +1 -1
- package/lib/_mixins/use-theme.js +3 -3
- package/lib/_utils/css/color-to-class.d.ts +1 -0
- package/lib/_utils/css/color-to-class.js +7 -0
- package/lib/_utils/css/format-length.d.ts +2 -2
- package/lib/_utils/css/format-length.js +2 -1
- package/lib/_utils/css/index.d.ts +2 -1
- package/lib/_utils/css/index.js +4 -5
- package/lib/_utils/cssr/index.d.ts +1 -2
- package/lib/_utils/cssr/index.js +1 -15
- package/lib/_utils/index.d.ts +2 -2
- package/lib/_utils/index.js +6 -1
- package/lib/_utils/vue/index.d.ts +1 -1
- package/lib/_utils/vue/index.js +4 -1
- package/lib/_utils/vue/resolve-slot.d.ts +8 -2
- package/lib/_utils/vue/resolve-slot.js +21 -2
- package/lib/affix/src/Affix.js +1 -1
- package/lib/alert/src/Alert.js +1 -1
- package/lib/anchor/src/AnchorAdapter.js +1 -1
- package/lib/auto-complete/src/AutoComplete.d.ts +16 -1
- package/lib/auto-complete/src/AutoComplete.js +9 -5
- package/lib/avatar/src/Avatar.js +3 -3
- package/lib/avatar/src/AvatarGroup.d.ts +0 -1
- package/lib/avatar/src/AvatarGroup.js +3 -5
- package/lib/avatar/src/context.d.ts +2 -0
- package/lib/avatar/src/context.js +5 -0
- package/lib/back-top/src/BackTop.js +1 -1
- package/lib/badge/src/Badge.js +1 -1
- package/lib/breadcrumb/src/Breadcrumb.js +1 -1
- package/lib/button/src/Button.d.ts +4 -2
- package/lib/button/src/Button.js +268 -243
- package/lib/button/src/ButtonGroup.js +1 -1
- package/lib/button/src/styles/button.cssr.js +1 -0
- package/lib/button/styles/index.d.ts +1 -1
- package/lib/button/styles/index.js +1 -1
- package/lib/button/styles/rtl.d.ts +2 -5
- package/lib/button/styles/rtl.js +2 -1
- package/lib/calendar/src/Calendar.js +1 -1
- package/lib/card/src/Card.d.ts +8 -2
- package/lib/card/src/Card.js +43 -39
- package/lib/card/styles/index.d.ts +1 -1
- package/lib/card/styles/index.js +1 -1
- package/lib/card/styles/rtl.d.ts +2 -5
- package/lib/card/styles/rtl.js +2 -1
- package/lib/carousel/src/Carousel.js +4 -1
- package/lib/carousel/src/CarouselArrow.js +5 -8
- package/lib/carousel/src/styles/index.cssr.js +59 -48
- package/lib/carousel/styles/light.js +2 -2
- package/lib/cascader/src/Cascader.d.ts +36 -34
- package/lib/cascader/src/Cascader.js +6 -6
- package/lib/cascader/src/CascaderMenu.d.ts +3 -3
- package/lib/cascader/src/CascaderOption.d.ts +3 -3
- package/lib/cascader/src/CascaderSelectMenu.d.ts +3 -3
- package/lib/cascader/src/CascaderSubmenu.d.ts +3 -3
- package/lib/cascader/styles/light.d.ts +3 -3
- package/lib/checkbox/src/Checkbox.js +1 -1
- package/lib/checkbox/src/styles/index.cssr.js +12 -12
- package/lib/code/src/Code.js +1 -1
- package/lib/collapse/src/Collapse.js +1 -1
- package/lib/collapse-transition/src/CollapseTransition.js +1 -1
- package/lib/color-picker/src/ColorInputUnit.js +2 -2
- package/lib/color-picker/src/ColorPicker.d.ts +24 -17
- package/lib/color-picker/src/ColorPicker.js +8 -5
- package/lib/color-picker/src/ColorPickerTrigger.js +2 -2
- package/lib/color-picker/src/context.d.ts +9 -0
- package/lib/color-picker/src/context.js +5 -0
- package/lib/color-picker/src/styles/index.cssr.js +1 -0
- package/lib/components.d.ts +2 -1
- package/lib/components.js +2 -1
- package/lib/composables/use-theme-vars.js +2 -2
- package/lib/config-provider/src/ConfigProvider.d.ts +15 -3
- package/lib/config-provider/src/ConfigProvider.js +31 -5
- package/lib/config-provider/src/context.d.ts +2 -0
- package/lib/config-provider/src/context.js +5 -0
- package/lib/config-provider/src/interface.d.ts +2 -1
- package/lib/config-provider/src/internal-interface.d.ts +4 -0
- package/lib/data-table/src/DataTable.d.ts +33 -33
- package/lib/data-table/src/DataTable.js +1 -1
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +6 -6
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +6 -6
- package/lib/data-table/src/TableParts/Body.d.ts +6 -6
- package/lib/data-table/src/TableParts/Cell.d.ts +12 -12
- package/lib/data-table/src/TableParts/Header.d.ts +6 -6
- package/lib/data-table/src/interface.d.ts +2 -2
- package/lib/data-table/src/use-check.d.ts +2 -2
- package/lib/data-table/src/use-group-header.d.ts +1 -1
- package/lib/data-table/src/use-scroll.d.ts +1 -1
- package/lib/data-table/src/use-scroll.js +2 -2
- package/lib/data-table/src/use-sorter.d.ts +1 -1
- package/lib/data-table/src/use-table-data.d.ts +1 -1
- package/lib/data-table/src/utils.d.ts +2 -1
- package/lib/data-table/src/utils.js +15 -4
- package/lib/data-table/styles/light.d.ts +3 -3
- package/lib/date-picker/src/DatePicker.d.ts +2 -1
- package/lib/date-picker/src/DatePicker.js +6 -6
- package/lib/descriptions/src/Descriptions.d.ts +1 -1
- package/lib/descriptions/src/Descriptions.js +1 -1
- package/lib/dialog/index.d.ts +3 -3
- package/lib/dialog/index.js +2 -5
- package/lib/dialog/src/Dialog.d.ts +27 -60
- package/lib/dialog/src/Dialog.js +5 -32
- package/lib/dialog/src/DialogEnvironment.d.ts +8 -9
- package/lib/dialog/src/DialogEnvironment.js +6 -24
- package/lib/dialog/src/DialogProvider.d.ts +3 -5
- package/lib/dialog/src/DialogProvider.js +8 -12
- package/lib/dialog/src/context.d.ts +3 -0
- package/lib/dialog/src/context.js +6 -0
- package/lib/dialog/src/dialogProps.d.ts +32 -0
- package/lib/dialog/src/dialogProps.js +32 -0
- package/lib/dialog/src/use-dialog.js +2 -2
- package/lib/divider/src/Divider.js +1 -1
- package/lib/drawer/index.d.ts +1 -0
- package/lib/drawer/src/Drawer.js +1 -1
- package/lib/dropdown/src/Dropdown.d.ts +17 -5
- package/lib/dropdown/src/Dropdown.js +6 -6
- package/lib/dropdown/src/DropdownGroup.js +1 -0
- package/lib/dropdown/src/DropdownGroupHeader.js +3 -4
- package/lib/dropdown/src/DropdownMenu.d.ts +0 -1
- package/lib/dropdown/src/DropdownMenu.js +6 -7
- package/lib/dropdown/src/DropdownOption.d.ts +3 -0
- package/lib/dropdown/src/DropdownOption.js +9 -25
- package/lib/dropdown/src/context.d.ts +6 -0
- package/lib/dropdown/src/context.js +7 -0
- package/lib/dropdown/src/interface.d.ts +1 -1
- package/lib/dynamic-input/src/DynamicInput.d.ts +10 -1
- package/lib/dynamic-input/src/DynamicInput.js +59 -16
- package/lib/dynamic-tags/src/DynamicTags.d.ts +7 -16
- package/lib/dynamic-tags/src/DynamicTags.js +12 -14
- package/lib/element/src/Element.js +1 -1
- package/lib/ellipsis/src/Ellipsis.js +1 -1
- package/lib/empty/src/Empty.js +3 -3
- package/lib/form/src/Form.d.ts +1 -1
- package/lib/form/src/Form.js +4 -4
- package/lib/form/src/FormItem.d.ts +1 -1
- package/lib/form/src/FormItem.js +5 -4
- package/lib/form/src/FormItemCol.d.ts +1 -1
- package/lib/form/src/FormItemGridItem.d.ts +1 -1
- package/lib/form/src/context.d.ts +3 -0
- package/lib/form/src/context.js +6 -0
- package/lib/form/src/interface.d.ts +4 -3
- package/lib/form/src/interface.js +0 -4
- package/lib/form/src/styles/form-item.cssr.js +3 -2
- package/lib/form/src/utils.js +4 -4
- package/lib/global-style/src/GlobalStyle.js +2 -2
- package/lib/gradient-text/src/GradientText.js +1 -1
- package/lib/grid/src/Grid.d.ts +0 -1
- package/lib/grid/src/Grid.js +4 -6
- package/lib/grid/src/GridItem.js +2 -2
- package/lib/grid/src/config.d.ts +3 -0
- package/lib/grid/src/config.js +6 -0
- package/lib/icon/index.d.ts +1 -1
- package/lib/icon/index.js +1 -4
- package/lib/icon/src/Icon.d.ts +1 -2
- package/lib/icon/src/Icon.js +3 -2
- package/lib/icon-wrapper/index.d.ts +1 -0
- package/lib/icon-wrapper/index.js +5 -0
- package/lib/icon-wrapper/src/IconWrapper.d.ts +50 -0
- package/lib/icon-wrapper/src/IconWrapper.js +56 -0
- package/lib/icon-wrapper/src/styles/index.cssr.d.ts +2 -0
- package/lib/icon-wrapper/src/styles/index.cssr.js +23 -0
- package/lib/icon-wrapper/styles/dark.d.ts +3 -0
- package/lib/icon-wrapper/styles/dark.js +10 -0
- package/lib/icon-wrapper/styles/index.d.ts +3 -0
- package/lib/icon-wrapper/styles/index.js +10 -0
- package/lib/icon-wrapper/styles/light.d.ts +10 -0
- package/lib/icon-wrapper/styles/light.js +18 -0
- package/lib/image/src/Image.d.ts +1 -1
- package/lib/image/src/ImagePreview.js +1 -1
- package/lib/input/src/Input.d.ts +6 -1
- package/lib/input/src/Input.js +20 -16
- package/lib/input/src/InputGroup.js +1 -1
- package/lib/input/src/InputGroupLabel.js +1 -1
- package/lib/input/src/WordCount.js +9 -8
- package/lib/input/src/styles/input.cssr.js +4 -4
- package/lib/input-number/src/InputNumber.d.ts +2 -1
- package/lib/input-number/src/InputNumber.js +23 -21
- package/lib/layout/src/Layout.js +1 -1
- package/lib/layout/src/LayoutFooter.js +1 -1
- package/lib/layout/src/LayoutHeader.js +1 -1
- package/lib/layout/src/LayoutSider.js +1 -1
- package/lib/legacy-grid/src/Col.js +0 -6
- package/lib/legacy-grid/src/Row.js +1 -1
- package/lib/list/src/List.js +1 -1
- package/lib/loading-bar/src/LoadingBar.js +3 -3
- package/lib/loading-bar/src/LoadingBarProvider.d.ts +3 -8
- package/lib/loading-bar/src/LoadingBarProvider.js +3 -6
- package/lib/loading-bar/src/context.d.ts +7 -0
- package/lib/loading-bar/src/context.js +6 -0
- package/lib/loading-bar/src/use-loading-bar.js +2 -2
- package/lib/locales/common/deDE.js +13 -15
- package/lib/locales/common/enGB.d.ts +109 -0
- package/lib/locales/common/enGB.js +111 -0
- package/lib/locales/common/eo.d.ts +109 -0
- package/lib/locales/common/eo.js +111 -0
- package/lib/locales/common/jaJP.js +12 -14
- package/lib/locales/common/plPL.d.ts +3 -0
- package/lib/locales/common/plPL.js +111 -0
- package/lib/locales/date/enGB.d.ts +3 -0
- package/lib/locales/date/enGB.js +11 -0
- package/lib/locales/date/eo.d.ts +3 -0
- package/lib/locales/date/eo.js +11 -0
- package/lib/locales/date/plPL.d.ts +3 -0
- package/lib/locales/date/plPL.js +11 -0
- package/lib/locales/index.d.ts +6 -0
- package/lib/locales/index.js +13 -1
- package/lib/log/index.d.ts +1 -1
- package/lib/log/src/Log.d.ts +17 -12
- package/lib/log/src/Log.js +10 -18
- package/lib/log/src/LogLine.js +2 -2
- package/lib/log/src/context.d.ts +2 -0
- package/lib/log/src/context.js +5 -0
- package/lib/log/src/styles/index.cssr.js +2 -3
- package/lib/mention/src/Mention.d.ts +16 -1
- package/lib/mention/src/Mention.js +7 -3
- package/lib/menu/src/Menu.d.ts +3 -5
- package/lib/menu/src/Menu.js +3 -4
- package/lib/menu/src/MenuDivider.js +2 -2
- package/lib/menu/src/MenuOption.d.ts +1 -2
- package/lib/menu/src/MenuOption.js +2 -2
- package/lib/menu/src/MenuOptionContent.js +2 -2
- package/lib/menu/src/MenuOptionGroup.d.ts +1 -4
- package/lib/menu/src/MenuOptionGroup.js +7 -8
- package/lib/menu/src/Submenu.d.ts +1 -4
- package/lib/menu/src/Submenu.js +6 -7
- package/lib/menu/src/context.d.ts +4 -0
- package/lib/menu/src/context.js +7 -0
- package/lib/menu/src/use-menu-child.js +4 -6
- package/lib/menu/src/useCheckDeprecated.d.ts +1 -1
- package/lib/menu/src/utils.d.ts +1 -1
- package/lib/menu/src/utils.js +8 -25
- package/lib/message/src/Message.d.ts +2 -158
- package/lib/message/src/Message.js +3 -3
- package/lib/message/src/MessageProvider.d.ts +4 -9
- package/lib/message/src/MessageProvider.js +3 -5
- package/lib/message/src/context.d.ts +7 -0
- package/lib/message/src/context.js +6 -0
- package/lib/message/src/types.d.ts +1 -1
- package/lib/message/src/use-message.js +2 -2
- package/lib/modal/src/BodyWrapper.d.ts +5 -3
- package/lib/modal/src/BodyWrapper.js +3 -3
- package/lib/modal/src/Modal.d.ts +7 -4
- package/lib/modal/src/Modal.js +3 -3
- package/lib/modal/src/presetProps.d.ts +2 -1
- package/lib/modal/src/presetProps.js +2 -2
- package/lib/notification/index.d.ts +1 -1
- package/lib/notification/src/Notification.d.ts +1 -2
- package/lib/notification/src/Notification.js +5 -7
- package/lib/notification/src/NotificationContainer.d.ts +1 -2
- package/lib/notification/src/NotificationContainer.js +4 -3
- package/lib/notification/src/NotificationEnvironment.d.ts +3 -4
- package/lib/notification/src/NotificationEnvironment.js +4 -23
- package/lib/notification/src/NotificationProvider.d.ts +10 -6
- package/lib/notification/src/NotificationProvider.js +9 -9
- package/lib/notification/src/context.d.ts +2 -0
- package/lib/notification/src/context.js +5 -0
- package/lib/page-header/src/PageHeader.js +1 -1
- package/lib/pagination/src/Pagination.d.ts +33 -33
- package/lib/pagination/src/Pagination.js +1 -1
- package/lib/pagination/styles/light.d.ts +3 -3
- package/lib/popconfirm/src/Popconfirm.d.ts +21 -8
- package/lib/popconfirm/src/Popconfirm.js +1 -1
- package/lib/popover/index.d.ts +1 -0
- package/lib/popover/src/Popover.d.ts +21 -4
- package/lib/popover/src/Popover.js +9 -2
- package/lib/popover/src/PopoverBody.d.ts +4 -0
- package/lib/popover/src/PopoverBody.js +11 -9
- package/lib/popover/src/styles/index.cssr.js +2 -2
- package/lib/popselect/src/Popselect.d.ts +31 -8
- package/lib/popselect/src/Popselect.js +8 -6
- package/lib/popselect/src/PopselectPanel.d.ts +2 -5
- package/lib/popselect/src/PopselectPanel.js +4 -2
- package/lib/progress/src/Circle.d.ts +19 -3
- package/lib/progress/src/Circle.js +40 -21
- package/lib/progress/src/Progress.d.ts +15 -6
- package/lib/progress/src/Progress.js +43 -29
- package/lib/progress/src/styles/index.cssr.js +1 -1
- package/lib/radio/src/Radio.js +1 -1
- package/lib/radio/src/RadioGroup.js +1 -1
- package/lib/rate/src/Rate.js +1 -1
- package/lib/result/src/Result.js +1 -1
- package/lib/select/index.d.ts +2 -0
- package/lib/select/src/Select.d.ts +71 -54
- package/lib/select/src/Select.js +82 -47
- package/lib/select/src/interface.d.ts +2 -0
- package/lib/select/styles/light.d.ts +3 -3
- package/lib/skeleton/src/Skeleton.js +1 -1
- package/lib/slider/src/Slider.js +1 -1
- package/lib/space/src/Space.js +1 -1
- package/lib/spin/src/Spin.js +1 -1
- package/lib/statistic/src/Statistic.js +1 -1
- package/lib/steps/src/Steps.js +1 -1
- package/lib/switch/src/Switch.js +1 -1
- package/lib/table/src/Table.js +1 -1
- package/lib/tabs/src/Tabs.d.ts +7 -4
- package/lib/tabs/src/Tabs.js +12 -4
- package/lib/tag/src/Tag.d.ts +3 -1
- package/lib/tag/src/Tag.js +59 -39
- package/lib/tag/src/styles/index.cssr.js +5 -17
- package/lib/tag/styles/index.d.ts +1 -1
- package/lib/tag/styles/index.js +1 -1
- package/lib/tag/styles/rtl.d.ts +2 -5
- package/lib/tag/styles/rtl.js +2 -1
- package/lib/themes/dark.js +87 -84
- package/lib/themes/light.js +87 -84
- package/lib/themes/utils.d.ts +2 -1
- package/lib/themes/utils.js +16 -4
- package/lib/thing/src/Thing.js +1 -1
- package/lib/time-picker/src/TimePicker.d.ts +7 -5
- package/lib/time-picker/src/TimePicker.js +5 -5
- package/lib/timeline/src/Timeline.js +1 -1
- package/lib/tooltip/src/Tooltip.d.ts +20 -7
- package/lib/tooltip/src/Tooltip.js +1 -1
- package/lib/transfer/src/Transfer.d.ts +1 -1
- package/lib/transfer/src/Transfer.js +1 -1
- package/lib/tree/src/Tree.d.ts +6 -2
- package/lib/tree/src/Tree.js +15 -8
- package/lib/tree/src/TreeNode.d.ts +2 -0
- package/lib/tree/src/TreeNode.js +37 -10
- package/lib/tree/src/TreeNodeContent.d.ts +3 -1
- package/lib/tree/src/TreeNodeContent.js +4 -3
- package/lib/tree/src/interface.d.ts +5 -1
- package/lib/tree/src/utils.js +1 -1
- package/lib/tree-select/src/TreeSelect.d.ts +46 -44
- package/lib/tree-select/src/TreeSelect.js +8 -5
- package/lib/tree-select/styles/light.d.ts +3 -3
- package/lib/typography/src/a.js +1 -1
- package/lib/typography/src/blockquote.js +1 -1
- package/lib/typography/src/create-header.js +1 -1
- package/lib/typography/src/hr.js +1 -1
- package/lib/typography/src/ol.js +1 -1
- package/lib/typography/src/p.js +1 -1
- package/lib/typography/src/text.js +1 -1
- package/lib/typography/src/ul.js +1 -1
- package/lib/upload/src/Upload.js +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +8 -9
- package/volar.d.ts +1 -0
- package/web-types.json +452 -220
|
@@ -15,7 +15,7 @@ export default defineComponent({
|
|
|
15
15
|
onClear: Function
|
|
16
16
|
},
|
|
17
17
|
setup(props) {
|
|
18
|
-
useStyle('
|
|
18
|
+
useStyle('-base-clear', style, toRef(props, 'clsPrefix'));
|
|
19
19
|
const { NConfigProvider } = useConfig();
|
|
20
20
|
return {
|
|
21
21
|
NConfigProvider,
|
|
@@ -29,9 +29,10 @@ export default defineComponent({
|
|
|
29
29
|
return (h("div", { class: `${clsPrefix}-base-clear` },
|
|
30
30
|
h(NIconSwitchTransition, null, {
|
|
31
31
|
default: () => {
|
|
32
|
+
var _a, _b;
|
|
32
33
|
return this.show ? (h(NBaseIcon, { clsPrefix: clsPrefix, key: "dismiss", class: `${clsPrefix}-base-clear__clear`, onClick: this.onClear, onMousedown: this.handleMouseDown, "data-clear": true }, {
|
|
33
34
|
default: () => h(ClearIcon, null)
|
|
34
|
-
})) : (h("div", { key: "icon", class: `${clsPrefix}-base-clear__placeholder` }, this.$slots));
|
|
35
|
+
})) : (h("div", { key: "icon", class: `${clsPrefix}-base-clear__placeholder` }, (_b = (_a = this.$slots).default) === null || _b === void 0 ? void 0 : _b.call(_a)));
|
|
35
36
|
}
|
|
36
37
|
})));
|
|
37
38
|
}
|
|
@@ -17,7 +17,7 @@ export default defineComponent({
|
|
|
17
17
|
onClick: Function
|
|
18
18
|
},
|
|
19
19
|
setup(props) {
|
|
20
|
-
useStyle('
|
|
20
|
+
useStyle('-base-close', style, toRef(props, 'clsPrefix'));
|
|
21
21
|
return () => {
|
|
22
22
|
const { clsPrefix, disabled } = props;
|
|
23
23
|
return (h(NBaseIcon, { role: "button", ariaDisabled: disabled, ariaLabel: "close", clsPrefix: clsPrefix, class: [
|
|
@@ -23,7 +23,7 @@ export default defineComponent({
|
|
|
23
23
|
onMouseup: Function
|
|
24
24
|
},
|
|
25
25
|
setup(props) {
|
|
26
|
-
useStyle('
|
|
26
|
+
useStyle('-base-icon', style, toRef(props, 'clsPrefix'));
|
|
27
27
|
},
|
|
28
28
|
render() {
|
|
29
29
|
return (h("i", { class: `${this.clsPrefix}-base-icon`, onClick: this.onClick, onMousedown: this.onMousedown, onMouseup: this.onMouseup, role: this.role, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, "aria-disabled": this.ariaDisabled }, this.$slots));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { h, defineComponent } from 'vue';
|
|
2
|
+
export default defineComponent({
|
|
3
|
+
name: 'ArrowUp',
|
|
4
|
+
render() {
|
|
5
|
+
return (h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20" },
|
|
6
|
+
h("g", { fill: "none" },
|
|
7
|
+
h("path", { d: "M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z", fill: "currentColor" }))));
|
|
8
|
+
}
|
|
9
|
+
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as AddIcon } from './Add';
|
|
2
2
|
export { default as ArrowDownIcon } from './ArrowDown';
|
|
3
|
+
export { default as ArrowUpIcon } from './ArrowUp';
|
|
3
4
|
export { default as AttachIcon } from './Attach';
|
|
4
5
|
export { default as BackwardIcon } from './Backward';
|
|
5
6
|
export { default as DateIcon } from './Date';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as AddIcon } from './Add';
|
|
2
2
|
export { default as ArrowDownIcon } from './ArrowDown';
|
|
3
|
+
export { default as ArrowUpIcon } from './ArrowUp';
|
|
3
4
|
export { default as AttachIcon } from './Attach';
|
|
4
5
|
export { default as BackwardIcon } from './Backward';
|
|
5
6
|
export { default as DateIcon } from './Date';
|
|
@@ -33,7 +33,7 @@ export default defineComponent({
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
setup(props) {
|
|
36
|
-
useStyle('
|
|
36
|
+
useStyle('-base-loading', style, toRef(props, 'clsPrefix'));
|
|
37
37
|
},
|
|
38
38
|
render() {
|
|
39
39
|
const { clsPrefix, radius, strokeWidth, stroke, scale } = this;
|
|
@@ -10,7 +10,7 @@ export default defineComponent({
|
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
setup(props) {
|
|
13
|
-
useStyle('
|
|
13
|
+
useStyle('-base-menu-mask', style, toRef(props, 'clsPrefix'));
|
|
14
14
|
const messageRef = ref(null);
|
|
15
15
|
let timerId = null;
|
|
16
16
|
const uncontrolledShowRef = ref(false);
|
|
@@ -454,7 +454,7 @@ const Scrollbar = defineComponent({
|
|
|
454
454
|
off('mousemove', window, handleYScrollMouseMove, true);
|
|
455
455
|
off('mouseup', window, handleYScrollMouseUp, true);
|
|
456
456
|
});
|
|
457
|
-
const themeRef = useTheme('Scrollbar', '
|
|
457
|
+
const themeRef = useTheme('Scrollbar', '-scrollbar', style, scrollbarLight, props, mergedClsPrefixRef);
|
|
458
458
|
const exposedMethods = {
|
|
459
459
|
scrollTo,
|
|
460
460
|
sync,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { TreeNode } from 'treemate';
|
|
3
|
-
import type {
|
|
3
|
+
import type { SelectOption, SelectGroupOption, SelectIgnoredOption, Value, SelectTreeMate } from '../../../select/src/interface';
|
|
4
4
|
import type { RenderLabel, Size, RenderOption } from './interface';
|
|
5
5
|
declare const _default: import("vue").DefineComponent<{
|
|
6
6
|
clsPrefix: {
|
|
@@ -51,7 +51,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
51
51
|
type: BooleanConstructor;
|
|
52
52
|
default: boolean;
|
|
53
53
|
};
|
|
54
|
-
|
|
54
|
+
disableInlineTheme: BooleanConstructor;
|
|
55
|
+
onToggle: PropType<(tmNode: TreeNode<SelectOption>) => void>;
|
|
55
56
|
theme: PropType<import("../../../_mixins").Theme<"InternalSelectMenu", {
|
|
56
57
|
optionFontSizeSmall: string;
|
|
57
58
|
optionFontSizeMedium: string;
|
|
@@ -209,8 +210,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
209
210
|
}, any>;
|
|
210
211
|
}>>>;
|
|
211
212
|
}, {
|
|
213
|
+
themeClass?: import("vue").Ref<string> | undefined;
|
|
214
|
+
onRender?: (() => void) | undefined;
|
|
212
215
|
selfRef: import("vue").Ref<HTMLElement | null>;
|
|
213
|
-
getPendingTmNode: () => TreeNode<SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) => import("vue").VNodeChild)>, SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) => import("vue").VNodeChild)>, SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) => import("vue").VNodeChild)>> | null;
|
|
216
|
+
getPendingTmNode: () => TreeNode<import("../../../select/src/interface").SelectBaseOption<string | number, string | ((option: import("../../../select/src/interface").SelectBaseOption<string | number, string | any>, selected: boolean) => import("vue").VNodeChild)>, import("../../../select/src/interface").SelectBaseOption<string | number, string | ((option: import("../../../select/src/interface").SelectBaseOption<string | number, string | any>, selected: boolean) => import("vue").VNodeChild)>, import("../../../select/src/interface").SelectBaseOption<string | number, string | ((option: import("../../../select/src/interface").SelectBaseOption<string | number, string | any>, selected: boolean) => import("vue").VNodeChild)>> | null;
|
|
214
217
|
prev: () => void;
|
|
215
218
|
next: () => void;
|
|
216
219
|
mergedTheme: import("vue").ComputedRef<{
|
|
@@ -422,10 +425,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
422
425
|
'--n-loading-size': string;
|
|
423
426
|
} | {
|
|
424
427
|
width: string | undefined;
|
|
425
|
-
})[]>;
|
|
428
|
+
} | undefined)[]>;
|
|
426
429
|
itemSize: import("vue").ComputedRef<number>;
|
|
427
430
|
padding: import("vue").ComputedRef<import("seemly").Margin>;
|
|
428
|
-
flattenedNodes: import("vue").ComputedRef<TreeNode<SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) => import("vue").VNodeChild)>, SelectGroupOption, SelectIgnoredOption>[]>;
|
|
431
|
+
flattenedNodes: import("vue").ComputedRef<TreeNode<import("../../../select/src/interface").SelectBaseOption<string | number, string | ((option: import("../../../select/src/interface").SelectBaseOption<string | number, string | any>, selected: boolean) => import("vue").VNodeChild)>, SelectGroupOption, SelectIgnoredOption>[]>;
|
|
429
432
|
empty: import("vue").ComputedRef<boolean>;
|
|
430
433
|
virtualListContainer(): HTMLElement;
|
|
431
434
|
virtualListContent(): HTMLElement;
|
|
@@ -486,7 +489,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
486
489
|
type: BooleanConstructor;
|
|
487
490
|
default: boolean;
|
|
488
491
|
};
|
|
489
|
-
|
|
492
|
+
disableInlineTheme: BooleanConstructor;
|
|
493
|
+
onToggle: PropType<(tmNode: TreeNode<SelectOption>) => void>;
|
|
490
494
|
theme: PropType<import("../../../_mixins").Theme<"InternalSelectMenu", {
|
|
491
495
|
optionFontSizeSmall: string;
|
|
492
496
|
optionFontSizeMedium: string;
|
|
@@ -650,6 +654,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
650
654
|
multiple: boolean;
|
|
651
655
|
focusable: boolean;
|
|
652
656
|
loading: boolean;
|
|
657
|
+
disableInlineTheme: boolean;
|
|
653
658
|
scrollable: boolean;
|
|
654
659
|
autoPending: boolean;
|
|
655
660
|
virtualScroll: boolean;
|
|
@@ -4,16 +4,16 @@ import { VirtualList } from 'vueuc';
|
|
|
4
4
|
import { depx, getPadding, happensIn } from 'seemly';
|
|
5
5
|
import { NEmpty } from '../../../empty';
|
|
6
6
|
import { NScrollbar } from '../../scrollbar';
|
|
7
|
-
import { formatLength } from '../../../_utils';
|
|
7
|
+
import { formatLength, resolveSlot, resolveWrappedSlot } from '../../../_utils';
|
|
8
8
|
import { createKey } from '../../../_utils/cssr';
|
|
9
|
-
import { useTheme } from '../../../_mixins';
|
|
9
|
+
import { useThemeClass, useTheme, emptyThemeClassHandle } from '../../../_mixins';
|
|
10
10
|
import NInternalLoading from '../../loading';
|
|
11
11
|
import NFocusDetector from '../../focus-detector';
|
|
12
|
+
import { internalSelectMenuLight } from '../styles';
|
|
12
13
|
import NSelectOption from './SelectOption';
|
|
13
14
|
import NSelectGroupHeader from './SelectGroupHeader';
|
|
14
|
-
import style from './styles/index.cssr';
|
|
15
|
-
import { internalSelectMenuLight } from '../styles';
|
|
16
15
|
import { internalSelectionMenuInjectionKey, internalSelectionMenuBodyInjectionKey } from './interface';
|
|
16
|
+
import style from './styles/index.cssr';
|
|
17
17
|
export default defineComponent({
|
|
18
18
|
name: 'InternalSelectMenu',
|
|
19
19
|
props: Object.assign(Object.assign({}, useTheme.props), { clsPrefix: {
|
|
@@ -42,11 +42,11 @@ export default defineComponent({
|
|
|
42
42
|
}, loading: Boolean, focusable: Boolean, renderLabel: Function, renderOption: Function, onMousedown: Function, onScroll: Function, onFocus: Function, onBlur: Function, onKeyup: Function, onKeydown: Function, onTabOut: Function, onMouseenter: Function, onMouseleave: Function, resetMenuOnOptionsChange: {
|
|
43
43
|
type: Boolean,
|
|
44
44
|
default: true
|
|
45
|
-
},
|
|
45
|
+
}, disableInlineTheme: Boolean,
|
|
46
46
|
// deprecated
|
|
47
47
|
onToggle: Function }),
|
|
48
48
|
setup(props) {
|
|
49
|
-
const themeRef = useTheme('InternalSelectMenu', '
|
|
49
|
+
const themeRef = useTheme('InternalSelectMenu', '-internal-select-menu', style, internalSelectMenuLight, props, toRef(props, 'clsPrefix'));
|
|
50
50
|
const selfRef = ref(null);
|
|
51
51
|
const virtualListRef = ref(null);
|
|
52
52
|
const scrollbarRef = ref(null);
|
|
@@ -55,15 +55,27 @@ export default defineComponent({
|
|
|
55
55
|
const pendingNodeRef = ref(null);
|
|
56
56
|
function initPendingNode() {
|
|
57
57
|
const { treeMate } = props;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
58
|
+
let defaultPendingNode = null;
|
|
59
|
+
if (props.autoPending) {
|
|
60
|
+
const { value } = props;
|
|
61
|
+
if (value === null) {
|
|
62
|
+
defaultPendingNode = treeMate.getFirstAvailableNode();
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
if (props.multiple) {
|
|
66
|
+
defaultPendingNode = treeMate.getNode((value || [])[(value || []).length - 1]);
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
defaultPendingNode = treeMate.getNode(value);
|
|
70
|
+
}
|
|
71
|
+
if (!defaultPendingNode || defaultPendingNode.disabled) {
|
|
72
|
+
defaultPendingNode = treeMate.getFirstAvailableNode();
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
if (defaultPendingNode) {
|
|
76
|
+
setPendingTmNode(defaultPendingNode);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
67
79
|
}
|
|
68
80
|
let initPendingNodeWatchStopHandle;
|
|
69
81
|
watch(toRef(props, 'show'), (value) => {
|
|
@@ -99,9 +111,6 @@ export default defineComponent({
|
|
|
99
111
|
const tmNodes = flattenedNodesRef.value;
|
|
100
112
|
return tmNodes && tmNodes.length === 0;
|
|
101
113
|
});
|
|
102
|
-
const styleRef = computed(() => {
|
|
103
|
-
return [{ width: formatLength(props.width) }, cssVarsRef.value];
|
|
104
|
-
});
|
|
105
114
|
function doToggle(tmNode) {
|
|
106
115
|
const { onToggle } = props;
|
|
107
116
|
if (onToggle)
|
|
@@ -248,13 +257,23 @@ export default defineComponent({
|
|
|
248
257
|
'--n-loading-size': loadingSize
|
|
249
258
|
};
|
|
250
259
|
});
|
|
260
|
+
const { disableInlineTheme } = props;
|
|
261
|
+
const themeClassHandle = disableInlineTheme
|
|
262
|
+
? useThemeClass('internal-select-menu', computed(() => props.size[0]), cssVarsRef, props)
|
|
263
|
+
: emptyThemeClassHandle;
|
|
264
|
+
const styleRef = computed(() => {
|
|
265
|
+
return [
|
|
266
|
+
{ width: formatLength(props.width) },
|
|
267
|
+
disableInlineTheme ? undefined : cssVarsRef.value
|
|
268
|
+
];
|
|
269
|
+
});
|
|
251
270
|
const exposedProps = {
|
|
252
271
|
selfRef,
|
|
253
272
|
next,
|
|
254
273
|
prev,
|
|
255
274
|
getPendingTmNode
|
|
256
275
|
};
|
|
257
|
-
return Object.assign({ mergedTheme: themeRef, virtualListRef,
|
|
276
|
+
return Object.assign(Object.assign({ mergedTheme: themeRef, virtualListRef,
|
|
258
277
|
scrollbarRef, style: styleRef, itemSize: itemSizeRef, padding: paddingRef, flattenedNodes: flattenedNodesRef, empty: emptyRef, virtualListContainer() {
|
|
259
278
|
const { value } = virtualListRef;
|
|
260
279
|
return value === null || value === void 0 ? void 0 : value.listElRef;
|
|
@@ -270,12 +289,14 @@ export default defineComponent({
|
|
|
270
289
|
handleKeyDown,
|
|
271
290
|
handleMouseDown,
|
|
272
291
|
handleVirtualListResize,
|
|
273
|
-
handleVirtualListScroll }, exposedProps);
|
|
292
|
+
handleVirtualListScroll }, exposedProps), themeClassHandle);
|
|
274
293
|
},
|
|
275
294
|
render() {
|
|
276
|
-
const { $slots, virtualScroll, clsPrefix, mergedTheme } = this;
|
|
295
|
+
const { $slots, virtualScroll, clsPrefix, mergedTheme, themeClass, onRender } = this;
|
|
296
|
+
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
277
297
|
return (h("div", { ref: "selfRef", tabindex: this.focusable ? 0 : -1, class: [
|
|
278
298
|
`${clsPrefix}-base-select-menu`,
|
|
299
|
+
themeClass,
|
|
279
300
|
this.multiple && `${clsPrefix}-base-select-menu--multiple`
|
|
280
301
|
], style: this.style, onFocusin: this.handleFocusin, onFocusout: this.handleFocusout, onKeyup: this.handleKeyUp, onKeydown: this.handleKeyDown, onMousedown: this.handleMouseDown, onMouseenter: this.onMouseenter, onMouseleave: this.onMouseleave },
|
|
281
302
|
this.loading ? (h("div", { class: `${clsPrefix}-base-select-menu__loading` },
|
|
@@ -290,8 +311,12 @@ export default defineComponent({
|
|
|
290
311
|
paddingBottom: this.padding.bottom
|
|
291
312
|
} }, this.flattenedNodes.map((tmNode) => tmNode.isGroup ? (h(NSelectGroupHeader, { key: tmNode.key, clsPrefix: clsPrefix, tmNode: tmNode })) : (h(NSelectOption, { clsPrefix: clsPrefix, key: tmNode.key, tmNode: tmNode })))));
|
|
292
313
|
}
|
|
293
|
-
})) : (h("div", { class: `${clsPrefix}-base-select-menu__empty` }, $slots.empty
|
|
294
|
-
|
|
295
|
-
|
|
314
|
+
})) : (h("div", { class: `${clsPrefix}-base-select-menu__empty` }, resolveSlot($slots.empty, () => [
|
|
315
|
+
h(NEmpty, { theme: mergedTheme.peers.Empty, themeOverrides: mergedTheme.peerOverrides.Empty })
|
|
316
|
+
]))),
|
|
317
|
+
resolveWrappedSlot($slots.action, (children) => [
|
|
318
|
+
h("div", { class: `${clsPrefix}-base-select-menu__action`, "data-action": true, key: "action" }, children),
|
|
319
|
+
h(NFocusDetector, { onFocus: this.onTabOut, key: "focus-detector" })
|
|
320
|
+
])));
|
|
296
321
|
}
|
|
297
322
|
});
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { PropType, InputHTMLAttributes } from 'vue';
|
|
2
2
|
import type { SelectBaseOption } from '../../../select/src/interface';
|
|
3
|
-
import {
|
|
3
|
+
import type { FormValidationStatus } from '../../../form/src/interface';
|
|
4
|
+
import type { RenderTag } from './interface';
|
|
4
5
|
import type { RenderLabel, RenderLabelImpl } from '../../select-menu/src/interface';
|
|
5
6
|
export interface InternalSelectionInst {
|
|
7
|
+
isCompositing: boolean;
|
|
6
8
|
focus: () => void;
|
|
7
9
|
focusInput: () => void;
|
|
8
10
|
blur: () => void;
|
|
@@ -20,7 +22,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
22
|
active: BooleanConstructor;
|
|
21
23
|
pattern: {
|
|
22
24
|
type: StringConstructor;
|
|
23
|
-
default:
|
|
25
|
+
default: string;
|
|
24
26
|
};
|
|
25
27
|
placeholder: StringConstructor;
|
|
26
28
|
selectedOption: {
|
|
@@ -57,7 +59,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
57
59
|
maxTagCount: PropType<number | "responsive">;
|
|
58
60
|
onClear: PropType<(e: MouseEvent) => void>;
|
|
59
61
|
onPatternInput: PropType<(e: InputEvent) => void>;
|
|
62
|
+
onPatternFocus: PropType<(e: FocusEvent) => void>;
|
|
63
|
+
onPatternBlur: PropType<(e: FocusEvent) => void>;
|
|
60
64
|
renderLabel: PropType<RenderLabel>;
|
|
65
|
+
status: PropType<FormValidationStatus>;
|
|
66
|
+
disableInlineTheme: BooleanConstructor;
|
|
61
67
|
theme: PropType<import("../../../_mixins").Theme<"InternalSelection", {
|
|
62
68
|
fontSizeTiny: string;
|
|
63
69
|
fontSizeSmall: string;
|
|
@@ -79,7 +85,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
79
85
|
borderHover: string;
|
|
80
86
|
borderActive: string;
|
|
81
87
|
borderFocus: string;
|
|
82
|
-
boxShadowHover:
|
|
88
|
+
boxShadowHover: string;
|
|
83
89
|
boxShadowActive: string;
|
|
84
90
|
boxShadowFocus: string;
|
|
85
91
|
caretColor: string;
|
|
@@ -90,7 +96,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
90
96
|
borderHoverWarning: string;
|
|
91
97
|
borderActiveWarning: string;
|
|
92
98
|
borderFocusWarning: string;
|
|
93
|
-
boxShadowHoverWarning:
|
|
99
|
+
boxShadowHoverWarning: string;
|
|
94
100
|
boxShadowActiveWarning: string;
|
|
95
101
|
boxShadowFocusWarning: string;
|
|
96
102
|
colorActiveWarning: string;
|
|
@@ -99,7 +105,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
99
105
|
borderHoverError: string;
|
|
100
106
|
borderActiveError: string;
|
|
101
107
|
borderFocusError: string;
|
|
102
|
-
boxShadowHoverError:
|
|
108
|
+
boxShadowHoverError: string;
|
|
103
109
|
boxShadowActiveError: string;
|
|
104
110
|
boxShadowFocusError: string;
|
|
105
111
|
colorActiveError: string;
|
|
@@ -148,7 +154,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
148
154
|
borderHover: string;
|
|
149
155
|
borderActive: string;
|
|
150
156
|
borderFocus: string;
|
|
151
|
-
boxShadowHover:
|
|
157
|
+
boxShadowHover: string;
|
|
152
158
|
boxShadowActive: string;
|
|
153
159
|
boxShadowFocus: string;
|
|
154
160
|
caretColor: string;
|
|
@@ -159,7 +165,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
159
165
|
borderHoverWarning: string;
|
|
160
166
|
borderActiveWarning: string;
|
|
161
167
|
borderFocusWarning: string;
|
|
162
|
-
boxShadowHoverWarning:
|
|
168
|
+
boxShadowHoverWarning: string;
|
|
163
169
|
boxShadowActiveWarning: string;
|
|
164
170
|
boxShadowFocusWarning: string;
|
|
165
171
|
colorActiveWarning: string;
|
|
@@ -168,7 +174,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
168
174
|
borderHoverError: string;
|
|
169
175
|
borderActiveError: string;
|
|
170
176
|
borderFocusError: string;
|
|
171
|
-
boxShadowHoverError:
|
|
177
|
+
boxShadowHoverError: string;
|
|
172
178
|
boxShadowActiveError: string;
|
|
173
179
|
boxShadowFocusError: string;
|
|
174
180
|
colorActiveError: string;
|
|
@@ -217,7 +223,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
217
223
|
borderHover: string;
|
|
218
224
|
borderActive: string;
|
|
219
225
|
borderFocus: string;
|
|
220
|
-
boxShadowHover:
|
|
226
|
+
boxShadowHover: string;
|
|
221
227
|
boxShadowActive: string;
|
|
222
228
|
boxShadowFocus: string;
|
|
223
229
|
caretColor: string;
|
|
@@ -228,7 +234,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
228
234
|
borderHoverWarning: string;
|
|
229
235
|
borderActiveWarning: string;
|
|
230
236
|
borderFocusWarning: string;
|
|
231
|
-
boxShadowHoverWarning:
|
|
237
|
+
boxShadowHoverWarning: string;
|
|
232
238
|
boxShadowActiveWarning: string;
|
|
233
239
|
boxShadowFocusWarning: string;
|
|
234
240
|
colorActiveWarning: string;
|
|
@@ -237,7 +243,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
237
243
|
borderHoverError: string;
|
|
238
244
|
borderActiveError: string;
|
|
239
245
|
borderFocusError: string;
|
|
240
|
-
boxShadowHoverError:
|
|
246
|
+
boxShadowHoverError: string;
|
|
241
247
|
boxShadowActiveError: string;
|
|
242
248
|
boxShadowFocusError: string;
|
|
243
249
|
colorActiveError: string;
|
|
@@ -266,6 +272,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
266
272
|
}, any>;
|
|
267
273
|
}>>>;
|
|
268
274
|
}, {
|
|
275
|
+
themeClass?: import("vue").Ref<string> | undefined;
|
|
276
|
+
onRender?: (() => void) | undefined;
|
|
269
277
|
mergedTheme: import("vue").ComputedRef<{
|
|
270
278
|
common: {
|
|
271
279
|
baseColor: string;
|
|
@@ -391,7 +399,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
391
399
|
borderHover: string;
|
|
392
400
|
borderActive: string;
|
|
393
401
|
borderFocus: string;
|
|
394
|
-
boxShadowHover:
|
|
402
|
+
boxShadowHover: string;
|
|
395
403
|
boxShadowActive: string;
|
|
396
404
|
boxShadowFocus: string;
|
|
397
405
|
caretColor: string;
|
|
@@ -402,7 +410,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
402
410
|
borderHoverWarning: string;
|
|
403
411
|
borderActiveWarning: string;
|
|
404
412
|
borderFocusWarning: string;
|
|
405
|
-
boxShadowHoverWarning:
|
|
413
|
+
boxShadowHoverWarning: string;
|
|
406
414
|
boxShadowActiveWarning: string;
|
|
407
415
|
boxShadowFocusWarning: string;
|
|
408
416
|
colorActiveWarning: string;
|
|
@@ -411,7 +419,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
411
419
|
borderHoverError: string;
|
|
412
420
|
borderActiveError: string;
|
|
413
421
|
borderFocusError: string;
|
|
414
|
-
boxShadowHoverError:
|
|
422
|
+
boxShadowHoverError: string;
|
|
415
423
|
boxShadowActiveError: string;
|
|
416
424
|
boxShadowFocusError: string;
|
|
417
425
|
colorActiveError: string;
|
|
@@ -479,7 +487,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
479
487
|
handlePatternKeyDown: (e: KeyboardEvent) => void;
|
|
480
488
|
handlePatternInputInput: (e: InputEvent) => void;
|
|
481
489
|
handlePatternInputBlur: (e: FocusEvent) => void;
|
|
482
|
-
handlePatternInputFocus: () => void;
|
|
490
|
+
handlePatternInputFocus: (e: FocusEvent) => void;
|
|
483
491
|
handleMouseEnterCounter: () => void;
|
|
484
492
|
handleMouseLeaveCounter: () => void;
|
|
485
493
|
handleFocusout: (e: FocusEvent) => void;
|
|
@@ -503,7 +511,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
503
511
|
'--n-border-radius': string;
|
|
504
512
|
'--n-box-shadow-active': string;
|
|
505
513
|
'--n-box-shadow-focus': string;
|
|
506
|
-
'--n-box-shadow-hover':
|
|
514
|
+
'--n-box-shadow-hover': string;
|
|
507
515
|
'--n-caret-color': string;
|
|
508
516
|
'--n-color': string;
|
|
509
517
|
'--n-color-active': string;
|
|
@@ -522,7 +530,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
522
530
|
'--n-color-active-warning': string;
|
|
523
531
|
'--n-box-shadow-focus-warning': string;
|
|
524
532
|
'--n-box-shadow-active-warning': string;
|
|
525
|
-
'--n-box-shadow-hover-warning':
|
|
533
|
+
'--n-box-shadow-hover-warning': string;
|
|
526
534
|
'--n-border-warning': string;
|
|
527
535
|
'--n-border-focus-warning': string;
|
|
528
536
|
'--n-border-hover-warning': string;
|
|
@@ -530,7 +538,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
530
538
|
'--n-color-active-error': string;
|
|
531
539
|
'--n-box-shadow-focus-error': string;
|
|
532
540
|
'--n-box-shadow-active-error': string;
|
|
533
|
-
'--n-box-shadow-hover-error':
|
|
541
|
+
'--n-box-shadow-hover-error': string;
|
|
534
542
|
'--n-border-error': string;
|
|
535
543
|
'--n-border-focus-error': string;
|
|
536
544
|
'--n-border-hover-error': string;
|
|
@@ -540,7 +548,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
540
548
|
'--n-clear-color-hover': string;
|
|
541
549
|
'--n-clear-color-pressed': string;
|
|
542
550
|
'--n-arrow-size': string;
|
|
543
|
-
}
|
|
551
|
+
}> | undefined;
|
|
544
552
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
545
553
|
clsPrefix: {
|
|
546
554
|
type: StringConstructor;
|
|
@@ -553,7 +561,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
553
561
|
active: BooleanConstructor;
|
|
554
562
|
pattern: {
|
|
555
563
|
type: StringConstructor;
|
|
556
|
-
default:
|
|
564
|
+
default: string;
|
|
557
565
|
};
|
|
558
566
|
placeholder: StringConstructor;
|
|
559
567
|
selectedOption: {
|
|
@@ -590,7 +598,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
590
598
|
maxTagCount: PropType<number | "responsive">;
|
|
591
599
|
onClear: PropType<(e: MouseEvent) => void>;
|
|
592
600
|
onPatternInput: PropType<(e: InputEvent) => void>;
|
|
601
|
+
onPatternFocus: PropType<(e: FocusEvent) => void>;
|
|
602
|
+
onPatternBlur: PropType<(e: FocusEvent) => void>;
|
|
593
603
|
renderLabel: PropType<RenderLabel>;
|
|
604
|
+
status: PropType<FormValidationStatus>;
|
|
605
|
+
disableInlineTheme: BooleanConstructor;
|
|
594
606
|
theme: PropType<import("../../../_mixins").Theme<"InternalSelection", {
|
|
595
607
|
fontSizeTiny: string;
|
|
596
608
|
fontSizeSmall: string;
|
|
@@ -612,7 +624,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
612
624
|
borderHover: string;
|
|
613
625
|
borderActive: string;
|
|
614
626
|
borderFocus: string;
|
|
615
|
-
boxShadowHover:
|
|
627
|
+
boxShadowHover: string;
|
|
616
628
|
boxShadowActive: string;
|
|
617
629
|
boxShadowFocus: string;
|
|
618
630
|
caretColor: string;
|
|
@@ -623,7 +635,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
623
635
|
borderHoverWarning: string;
|
|
624
636
|
borderActiveWarning: string;
|
|
625
637
|
borderFocusWarning: string;
|
|
626
|
-
boxShadowHoverWarning:
|
|
638
|
+
boxShadowHoverWarning: string;
|
|
627
639
|
boxShadowActiveWarning: string;
|
|
628
640
|
boxShadowFocusWarning: string;
|
|
629
641
|
colorActiveWarning: string;
|
|
@@ -632,7 +644,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
632
644
|
borderHoverError: string;
|
|
633
645
|
borderActiveError: string;
|
|
634
646
|
borderFocusError: string;
|
|
635
|
-
boxShadowHoverError:
|
|
647
|
+
boxShadowHoverError: string;
|
|
636
648
|
boxShadowActiveError: string;
|
|
637
649
|
boxShadowFocusError: string;
|
|
638
650
|
colorActiveError: string;
|
|
@@ -681,7 +693,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
681
693
|
borderHover: string;
|
|
682
694
|
borderActive: string;
|
|
683
695
|
borderFocus: string;
|
|
684
|
-
boxShadowHover:
|
|
696
|
+
boxShadowHover: string;
|
|
685
697
|
boxShadowActive: string;
|
|
686
698
|
boxShadowFocus: string;
|
|
687
699
|
caretColor: string;
|
|
@@ -692,7 +704,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
692
704
|
borderHoverWarning: string;
|
|
693
705
|
borderActiveWarning: string;
|
|
694
706
|
borderFocusWarning: string;
|
|
695
|
-
boxShadowHoverWarning:
|
|
707
|
+
boxShadowHoverWarning: string;
|
|
696
708
|
boxShadowActiveWarning: string;
|
|
697
709
|
boxShadowFocusWarning: string;
|
|
698
710
|
colorActiveWarning: string;
|
|
@@ -701,7 +713,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
701
713
|
borderHoverError: string;
|
|
702
714
|
borderActiveError: string;
|
|
703
715
|
borderFocusError: string;
|
|
704
|
-
boxShadowHoverError:
|
|
716
|
+
boxShadowHoverError: string;
|
|
705
717
|
boxShadowActiveError: string;
|
|
706
718
|
boxShadowFocusError: string;
|
|
707
719
|
colorActiveError: string;
|
|
@@ -750,7 +762,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
750
762
|
borderHover: string;
|
|
751
763
|
borderActive: string;
|
|
752
764
|
borderFocus: string;
|
|
753
|
-
boxShadowHover:
|
|
765
|
+
boxShadowHover: string;
|
|
754
766
|
boxShadowActive: string;
|
|
755
767
|
boxShadowFocus: string;
|
|
756
768
|
caretColor: string;
|
|
@@ -761,7 +773,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
761
773
|
borderHoverWarning: string;
|
|
762
774
|
borderActiveWarning: string;
|
|
763
775
|
borderFocusWarning: string;
|
|
764
|
-
boxShadowHoverWarning:
|
|
776
|
+
boxShadowHoverWarning: string;
|
|
765
777
|
boxShadowActiveWarning: string;
|
|
766
778
|
boxShadowFocusWarning: string;
|
|
767
779
|
colorActiveWarning: string;
|
|
@@ -770,7 +782,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
770
782
|
borderHoverError: string;
|
|
771
783
|
borderActiveError: string;
|
|
772
784
|
borderFocusError: string;
|
|
773
|
-
boxShadowHoverError:
|
|
785
|
+
boxShadowHoverError: string;
|
|
774
786
|
boxShadowActiveError: string;
|
|
775
787
|
boxShadowFocusError: string;
|
|
776
788
|
colorActiveError: string;
|
|
@@ -807,6 +819,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
807
819
|
autofocus: boolean;
|
|
808
820
|
loading: boolean;
|
|
809
821
|
bordered: boolean | undefined;
|
|
822
|
+
disableInlineTheme: boolean;
|
|
810
823
|
showArrow: boolean;
|
|
811
824
|
selectedOption: SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) => import("vue").VNodeChild)> | null;
|
|
812
825
|
selectedOptions: SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) => import("vue").VNodeChild)>[] | null;
|