naive-ui 2.32.0 → 2.32.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/README.zh-CN.md +1 -1
- package/dist/index.js +46388 -42920
- package/dist/index.prod.js +2 -2
- package/es/_internal/scrollbar/src/Scrollbar.js +2 -1
- package/es/_internal/select-menu/styles/light.js +1 -1
- package/es/_internal/selection/src/Selection.js +1 -1
- package/es/_utils/cssr/index.js +4 -4
- package/es/alert/src/Alert.d.ts +14 -0
- package/es/alert/src/Alert.js +11 -2
- package/es/alert/src/styles/index.cssr.js +11 -2
- package/es/alert/styles/dark.js +5 -1
- package/es/anchor/styles/light.js +2 -1
- package/es/auto-complete/src/AutoComplete.d.ts +14 -1
- package/es/auto-complete/src/AutoComplete.js +22 -16
- package/es/auto-complete/styles/light.d.ts +1 -0
- package/es/breadcrumb/styles/light.js +1 -1
- package/es/button/styles/light.js +5 -1
- package/es/card/styles/light.js +1 -1
- package/es/carousel/src/Carousel.js +7 -5
- package/es/cascader/src/Cascader.d.ts +13 -0
- package/es/cascader/src/Cascader.js +12 -4
- package/es/checkbox/src/CheckboxGroup.js +2 -2
- package/es/checkbox/styles/light.js +1 -1
- package/es/collapse/src/Collapse.d.ts +22 -0
- package/es/collapse/src/Collapse.js +4 -2
- package/es/collapse/src/CollapseItem.d.ts +6 -1
- package/es/collapse/src/CollapseItem.js +4 -2
- package/es/collapse/src/styles/index.cssr.js +10 -21
- package/es/collapse/styles/light.d.ts +2 -0
- package/es/collapse/styles/light.js +5 -3
- package/es/color-picker/src/ColorInputUnit.d.ts +1 -0
- package/es/color-picker/src/ColorPicker.d.ts +9 -0
- package/es/color-picker/src/ColorPicker.js +3 -2
- package/es/color-picker/styles/light.d.ts +1 -0
- package/es/countdown/src/Countdown.js +1 -1
- package/es/data-table/src/DataTable.d.ts +18 -0
- package/es/data-table/src/DataTable.js +6 -3
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +4 -2
- package/es/data-table/src/TableParts/Body.d.ts +6 -0
- package/es/data-table/src/TableParts/Body.js +22 -14
- package/es/data-table/src/TableParts/Cell.d.ts +4 -0
- package/es/data-table/src/TableParts/ExpandTrigger.d.ts +7 -1
- package/es/data-table/src/TableParts/ExpandTrigger.js +15 -9
- package/es/data-table/src/TableParts/Header.d.ts +3 -1
- package/es/data-table/src/interface.d.ts +6 -3
- package/es/data-table/src/styles/index.cssr.js +25 -7
- package/es/data-table/src/use-expand.d.ts +3 -1
- package/es/data-table/src/use-expand.js +15 -8
- package/es/data-table/src/use-group-header.js +1 -1
- package/es/data-table/src/use-sorter.js +1 -1
- package/es/data-table/src/use-table-data.js +1 -1
- package/es/data-table/styles/light.d.ts +1 -0
- package/es/date-picker/src/DatePicker.d.ts +23 -2
- package/es/date-picker/src/DatePicker.js +4 -4
- package/es/date-picker/src/panel/date.d.ts +6 -3
- package/es/date-picker/src/panel/daterange.d.ts +3 -0
- package/es/date-picker/src/panel/datetime.d.ts +3 -0
- package/es/date-picker/src/panel/datetimerange.d.ts +3 -0
- package/es/date-picker/src/panel/month.d.ts +3 -0
- package/es/date-picker/src/panel/monthrange.d.ts +3 -0
- package/es/date-picker/src/panel/panelHeader.d.ts +6 -0
- package/es/date-picker/src/panel/panelHeader.js +3 -1
- package/es/date-picker/src/panel/use-calendar.d.ts +3 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +3 -0
- package/es/date-picker/src/panel/use-panel-common.d.ts +3 -0
- package/es/date-picker/src/styles/index.cssr.js +6 -6
- package/es/date-picker/styles/light.d.ts +2 -0
- package/es/descriptions/styles/light.js +1 -1
- package/es/drawer/src/Drawer.d.ts +8 -8
- package/es/drawer/src/Drawer.js +3 -3
- package/es/drawer/src/DrawerBodyWrapper.d.ts +1 -0
- package/es/drawer/src/DrawerBodyWrapper.js +6 -0
- package/es/drawer/src/styles/rtl.cssr.d.ts +2 -0
- package/es/drawer/src/styles/rtl.cssr.js +8 -0
- package/es/drawer/styles/index.d.ts +1 -0
- package/es/drawer/styles/index.js +1 -0
- package/es/drawer/styles/rtl.d.ts +3 -0
- package/es/drawer/styles/rtl.js +8 -0
- package/es/dropdown/src/Dropdown.js +6 -6
- package/es/dropdown/src/styles/index.cssr.js +35 -33
- package/es/dynamic-input/src/DynamicInput.d.ts +10 -0
- package/es/dynamic-input/src/InputPreset.d.ts +1 -0
- package/es/dynamic-input/src/PairPreset.d.ts +1 -0
- package/es/dynamic-input/styles/light.d.ts +1 -0
- package/es/dynamic-tags/src/DynamicTags.d.ts +10 -0
- package/es/dynamic-tags/styles/light.d.ts +1 -0
- package/es/empty/styles/light.js +1 -1
- package/es/grid/src/Grid.d.ts +5 -0
- package/es/grid/src/Grid.js +18 -0
- package/es/grid/src/GridItem.d.ts +2 -0
- package/es/grid/src/GridItem.js +15 -2
- package/es/input/src/Input.d.ts +21 -1
- package/es/input/src/Input.js +23 -6
- package/es/input/src/InputGroupLabel.d.ts +9 -0
- package/es/input/src/styles/input.cssr.d.ts +1 -0
- package/es/input/src/styles/input.cssr.js +12 -4
- package/es/input/styles/dark.js +1 -1
- package/es/input/styles/light.d.ts +1 -0
- package/es/input/styles/light.js +1 -1
- package/es/input-number/src/InputNumber.d.ts +15 -5
- package/es/input-number/src/InputNumber.js +6 -8
- package/es/input-number/src/interface.d.ts +1 -0
- package/es/input-number/styles/light.d.ts +1 -0
- package/es/layout/src/Layout.js +3 -1
- package/es/legacy-grid/src/Row.js +2 -2
- package/es/legacy-transfer/src/Transfer.d.ts +10 -0
- package/es/legacy-transfer/src/TransferFilter.d.ts +1 -0
- package/es/legacy-transfer/src/TransferList.d.ts +1 -0
- package/es/legacy-transfer/src/TransferListItem.d.ts +1 -0
- package/es/legacy-transfer/styles/light.d.ts +1 -0
- package/es/list/src/List.d.ts +47 -3
- package/es/list/src/List.js +17 -7
- package/es/list/src/ListItem.d.ts +1 -0
- package/es/list/src/ListItem.js +3 -1
- package/es/list/src/styles/index.cssr.js +35 -12
- package/es/list/src/styles/rtl.cssr.d.ts +2 -0
- package/es/list/src/styles/rtl.cssr.js +11 -0
- package/es/list/styles/index.d.ts +1 -0
- package/es/list/styles/index.js +1 -0
- package/es/list/styles/light.d.ts +3 -0
- package/es/list/styles/light.js +4 -1
- package/es/list/styles/rtl.d.ts +2 -0
- package/es/list/styles/rtl.js +5 -0
- package/es/locales/common/viVN.js +7 -9
- package/es/mention/src/Mention.d.ts +10 -0
- package/es/mention/styles/light.d.ts +1 -0
- package/es/menu/src/Menu.d.ts +13 -0
- package/es/menu/src/Menu.js +4 -1
- package/es/menu/src/Submenu.js +1 -1
- package/es/menu/src/utils.d.ts +1 -1
- package/es/menu/src/utils.js +5 -1
- package/es/message/src/Message.d.ts +1 -0
- package/es/message/src/Message.js +8 -3
- package/es/message/src/styles/rtl.cssr.d.ts +2 -0
- package/es/message/src/styles/rtl.cssr.js +8 -0
- package/es/message/styles/index.d.ts +1 -0
- package/es/message/styles/index.js +1 -0
- package/es/message/styles/light.js +4 -1
- package/es/message/styles/rtl.d.ts +2 -0
- package/es/message/styles/rtl.js +5 -0
- package/es/modal/src/Modal.js +2 -1
- package/es/notification/styles/light.js +3 -1
- package/es/number-animation/src/NumberAnimation.js +1 -1
- package/es/pagination/src/Pagination.d.ts +31 -26
- package/es/pagination/src/Pagination.js +207 -164
- package/es/pagination/src/styles/index.cssr.js +7 -1
- package/es/pagination/styles/light.d.ts +1 -0
- package/es/popover/src/Popover.js +2 -2
- package/es/popover/src/PopoverBody.js +3 -2
- package/es/popselect/src/Popselect.d.ts +3 -3
- package/es/radio/styles/dark.js +1 -1
- package/es/radio/styles/light.js +1 -1
- package/es/select/index.d.ts +1 -1
- package/es/select/src/Select.d.ts +4 -1
- package/es/select/src/Select.js +4 -4
- package/es/skeleton/src/Skeleton.js +1 -1
- package/es/slider/styles/dark.js +2 -1
- package/es/slider/styles/light.js +2 -1
- package/es/statistic/src/Statistic.d.ts +10 -0
- package/es/statistic/src/Statistic.js +2 -1
- package/es/statistic/src/styles/index.cssr.js +4 -3
- package/es/statistic/styles/light.d.ts +1 -0
- package/es/statistic/styles/light.js +1 -0
- package/es/steps/src/Steps.d.ts +1 -0
- package/es/steps/src/Steps.js +6 -3
- package/es/steps/src/styles/rtl.cssr.d.ts +2 -0
- package/es/steps/src/styles/rtl.cssr.js +14 -0
- package/es/steps/styles/index.d.ts +1 -0
- package/es/steps/styles/index.js +1 -0
- package/es/steps/styles/rtl.d.ts +2 -0
- package/es/steps/styles/rtl.js +5 -0
- package/es/styles.d.ts +4 -3
- package/es/styles.js +4 -3
- package/es/switch/src/Switch.js +32 -5
- package/es/switch/src/styles/index.cssr.js +2 -2
- package/es/tag/src/Tag.d.ts +4 -4
- package/es/tag/src/Tag.js +3 -3
- package/es/tag/src/styles/index.cssr.js +0 -1
- package/es/tag/styles/light.js +4 -1
- package/es/thing/src/Thing.d.ts +19 -21
- package/es/thing/src/Thing.js +4 -7
- package/es/time-picker/src/Panel.d.ts +1 -0
- package/es/time-picker/src/TimePicker.d.ts +12 -2
- package/es/time-picker/src/TimePicker.js +4 -4
- package/es/time-picker/src/styles/index.cssr.js +12 -12
- package/es/time-picker/styles/light.d.ts +1 -0
- package/es/timeline/src/TimelineItem.js +1 -1
- package/es/tooltip/styles/dark.js +1 -1
- package/es/tooltip/styles/light.js +1 -1
- package/es/transfer/src/Transfer.d.ts +37 -6
- package/es/transfer/src/Transfer.js +32 -23
- package/es/transfer/src/TransferFilter.d.ts +1 -0
- package/es/transfer/src/TransferList.d.ts +1 -0
- package/es/transfer/src/TransferList.js +1 -1
- package/es/transfer/src/TransferListItem.d.ts +1 -0
- package/es/transfer/src/interface.d.ts +1 -1
- package/es/transfer/src/use-transfer-data.d.ts +11 -4
- package/es/transfer/src/use-transfer-data.js +59 -16
- package/es/transfer/styles/light.d.ts +1 -0
- package/es/tree/index.d.ts +1 -1
- package/es/tree/src/Tree.d.ts +34 -1
- package/es/tree/src/Tree.js +25 -11
- package/es/tree/src/interface.d.ts +5 -0
- package/es/tree/src/keyboard.d.ts +4 -1
- package/es/tree/src/keyboard.js +3 -1
- package/es/tree-select/src/TreeSelect.d.ts +13 -0
- package/es/tree-select/src/TreeSelect.js +4 -4
- package/es/typography/styles/light.js +1 -1
- package/es/upload/src/Upload.d.ts +10 -0
- package/es/upload/src/Upload.js +1 -1
- package/es/upload/src/UploadFile.js +4 -2
- package/es/upload/src/utils.d.ts +1 -0
- package/es/upload/src/utils.js +12 -0
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/scrollbar/src/Scrollbar.js +2 -1
- package/lib/_internal/select-menu/styles/light.js +1 -1
- package/lib/_internal/selection/src/Selection.js +1 -1
- package/lib/_utils/cssr/index.js +2 -2
- package/lib/alert/src/Alert.d.ts +14 -0
- package/lib/alert/src/Alert.js +11 -2
- package/lib/alert/src/styles/index.cssr.js +11 -2
- package/lib/alert/styles/dark.js +5 -1
- package/lib/anchor/styles/light.js +2 -1
- package/lib/auto-complete/src/AutoComplete.d.ts +14 -1
- package/lib/auto-complete/src/AutoComplete.js +22 -16
- package/lib/auto-complete/styles/light.d.ts +1 -0
- package/lib/breadcrumb/styles/light.js +1 -1
- package/lib/button/styles/light.js +5 -1
- package/lib/card/styles/light.js +1 -1
- package/lib/carousel/src/Carousel.js +7 -5
- package/lib/cascader/src/Cascader.d.ts +13 -0
- package/lib/cascader/src/Cascader.js +11 -3
- package/lib/checkbox/src/CheckboxGroup.js +2 -2
- package/lib/checkbox/styles/light.js +1 -1
- package/lib/collapse/src/Collapse.d.ts +22 -0
- package/lib/collapse/src/Collapse.js +4 -2
- package/lib/collapse/src/CollapseItem.d.ts +6 -1
- package/lib/collapse/src/CollapseItem.js +4 -2
- package/lib/collapse/src/styles/index.cssr.js +10 -21
- package/lib/collapse/styles/light.d.ts +2 -0
- package/lib/collapse/styles/light.js +5 -3
- package/lib/color-picker/src/ColorInputUnit.d.ts +1 -0
- package/lib/color-picker/src/ColorPicker.d.ts +9 -0
- package/lib/color-picker/src/ColorPicker.js +2 -1
- package/lib/color-picker/styles/light.d.ts +1 -0
- package/lib/countdown/src/Countdown.js +1 -1
- package/lib/data-table/src/DataTable.d.ts +18 -0
- package/lib/data-table/src/DataTable.js +6 -3
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +4 -2
- package/lib/data-table/src/TableParts/Body.d.ts +6 -0
- package/lib/data-table/src/TableParts/Body.js +22 -14
- package/lib/data-table/src/TableParts/Cell.d.ts +4 -0
- package/lib/data-table/src/TableParts/ExpandTrigger.d.ts +7 -1
- package/lib/data-table/src/TableParts/ExpandTrigger.js +15 -9
- package/lib/data-table/src/TableParts/Header.d.ts +3 -1
- package/lib/data-table/src/interface.d.ts +6 -3
- package/lib/data-table/src/styles/index.cssr.js +25 -7
- package/lib/data-table/src/use-expand.d.ts +3 -1
- package/lib/data-table/src/use-expand.js +15 -8
- package/lib/data-table/src/use-group-header.js +1 -1
- package/lib/data-table/src/use-sorter.js +1 -1
- package/lib/data-table/src/use-table-data.js +1 -1
- package/lib/data-table/styles/light.d.ts +1 -0
- package/lib/date-picker/src/DatePicker.d.ts +23 -2
- package/lib/date-picker/src/DatePicker.js +3 -3
- package/lib/date-picker/src/panel/date.d.ts +6 -3
- package/lib/date-picker/src/panel/daterange.d.ts +3 -0
- package/lib/date-picker/src/panel/datetime.d.ts +3 -0
- package/lib/date-picker/src/panel/datetimerange.d.ts +3 -0
- package/lib/date-picker/src/panel/month.d.ts +3 -0
- package/lib/date-picker/src/panel/monthrange.d.ts +3 -0
- package/lib/date-picker/src/panel/panelHeader.d.ts +6 -0
- package/lib/date-picker/src/panel/panelHeader.js +3 -1
- package/lib/date-picker/src/panel/use-calendar.d.ts +3 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +3 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +3 -0
- package/lib/date-picker/src/styles/index.cssr.js +6 -6
- package/lib/date-picker/styles/light.d.ts +2 -0
- package/lib/descriptions/styles/light.js +1 -1
- package/lib/drawer/src/Drawer.d.ts +8 -8
- package/lib/drawer/src/Drawer.js +3 -3
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +1 -0
- package/lib/drawer/src/DrawerBodyWrapper.js +6 -0
- package/lib/drawer/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/drawer/src/styles/rtl.cssr.js +15 -0
- package/lib/drawer/styles/index.d.ts +1 -0
- package/lib/drawer/styles/index.js +3 -1
- package/lib/drawer/styles/rtl.d.ts +3 -0
- package/lib/drawer/styles/rtl.js +14 -0
- package/lib/dropdown/src/Dropdown.js +6 -6
- package/lib/dropdown/src/styles/index.cssr.js +35 -33
- package/lib/dynamic-input/src/DynamicInput.d.ts +10 -0
- package/lib/dynamic-input/src/InputPreset.d.ts +1 -0
- package/lib/dynamic-input/src/PairPreset.d.ts +1 -0
- package/lib/dynamic-input/styles/light.d.ts +1 -0
- package/lib/dynamic-tags/src/DynamicTags.d.ts +10 -0
- package/lib/dynamic-tags/styles/light.d.ts +1 -0
- package/lib/empty/styles/light.js +1 -1
- package/lib/grid/src/Grid.d.ts +5 -0
- package/lib/grid/src/Grid.js +18 -0
- package/lib/grid/src/GridItem.d.ts +2 -0
- package/lib/grid/src/GridItem.js +14 -1
- package/lib/input/src/Input.d.ts +21 -1
- package/lib/input/src/Input.js +45 -5
- package/lib/input/src/InputGroupLabel.d.ts +9 -0
- package/lib/input/src/styles/input.cssr.d.ts +1 -0
- package/lib/input/src/styles/input.cssr.js +13 -4
- package/lib/input/styles/dark.js +1 -1
- package/lib/input/styles/light.d.ts +1 -0
- package/lib/input/styles/light.js +1 -1
- package/lib/input-number/src/InputNumber.d.ts +15 -5
- package/lib/input-number/src/InputNumber.js +6 -8
- package/lib/input-number/src/interface.d.ts +1 -0
- package/lib/input-number/styles/light.d.ts +1 -0
- package/lib/layout/src/Layout.js +3 -1
- package/lib/legacy-grid/src/Row.js +2 -2
- package/lib/legacy-transfer/src/Transfer.d.ts +10 -0
- package/lib/legacy-transfer/src/TransferFilter.d.ts +1 -0
- package/lib/legacy-transfer/src/TransferList.d.ts +1 -0
- package/lib/legacy-transfer/src/TransferListItem.d.ts +1 -0
- package/lib/legacy-transfer/styles/light.d.ts +1 -0
- package/lib/list/src/List.d.ts +47 -3
- package/lib/list/src/List.js +15 -5
- package/lib/list/src/ListItem.d.ts +1 -0
- package/lib/list/src/ListItem.js +3 -1
- package/lib/list/src/styles/index.cssr.js +35 -12
- package/lib/list/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/list/src/styles/rtl.cssr.js +18 -0
- package/lib/list/styles/index.d.ts +1 -0
- package/lib/list/styles/index.js +3 -1
- package/lib/list/styles/light.d.ts +3 -0
- package/lib/list/styles/light.js +4 -1
- package/lib/list/styles/rtl.d.ts +2 -0
- package/lib/list/styles/rtl.js +11 -0
- package/lib/locales/common/viVN.js +7 -9
- package/lib/mention/src/Mention.d.ts +10 -0
- package/lib/mention/styles/light.d.ts +1 -0
- package/lib/menu/src/Menu.d.ts +13 -0
- package/lib/menu/src/Menu.js +4 -1
- package/lib/menu/src/Submenu.js +1 -1
- package/lib/menu/src/utils.d.ts +1 -1
- package/lib/menu/src/utils.js +5 -1
- package/lib/message/src/Message.d.ts +1 -0
- package/lib/message/src/Message.js +7 -2
- package/lib/message/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/message/src/styles/rtl.cssr.js +15 -0
- package/lib/message/styles/index.d.ts +1 -0
- package/lib/message/styles/index.js +3 -1
- package/lib/message/styles/light.js +4 -1
- package/lib/message/styles/rtl.d.ts +2 -0
- package/lib/message/styles/rtl.js +11 -0
- package/lib/modal/src/Modal.js +2 -1
- package/lib/notification/styles/light.js +3 -1
- package/lib/number-animation/src/NumberAnimation.js +1 -1
- package/lib/pagination/src/Pagination.d.ts +31 -26
- package/lib/pagination/src/Pagination.js +206 -163
- package/lib/pagination/src/styles/index.cssr.js +7 -1
- package/lib/pagination/styles/light.d.ts +1 -0
- package/lib/popover/src/Popover.js +2 -2
- package/lib/popover/src/PopoverBody.js +3 -2
- package/lib/popselect/src/Popselect.d.ts +3 -3
- package/lib/radio/styles/dark.js +1 -1
- package/lib/radio/styles/light.js +1 -1
- package/lib/select/index.d.ts +1 -1
- package/lib/select/src/Select.d.ts +4 -1
- package/lib/select/src/Select.js +3 -3
- package/lib/skeleton/src/Skeleton.js +1 -1
- package/lib/slider/styles/dark.js +2 -1
- package/lib/slider/styles/light.js +2 -1
- package/lib/statistic/src/Statistic.d.ts +10 -0
- package/lib/statistic/src/Statistic.js +2 -1
- package/lib/statistic/src/styles/index.cssr.js +4 -3
- package/lib/statistic/styles/light.d.ts +1 -0
- package/lib/statistic/styles/light.js +1 -0
- package/lib/steps/src/Steps.d.ts +1 -0
- package/lib/steps/src/Steps.js +5 -2
- package/lib/steps/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/steps/src/styles/rtl.cssr.js +21 -0
- package/lib/steps/styles/index.d.ts +1 -0
- package/lib/steps/styles/index.js +3 -1
- package/lib/steps/styles/rtl.d.ts +2 -0
- package/lib/steps/styles/rtl.js +11 -0
- package/lib/styles.d.ts +4 -3
- package/lib/styles.js +154 -149
- package/lib/switch/src/Switch.js +32 -5
- package/lib/switch/src/styles/index.cssr.js +2 -2
- package/lib/tag/src/Tag.d.ts +4 -4
- package/lib/tag/src/Tag.js +3 -3
- package/lib/tag/src/styles/index.cssr.js +0 -1
- package/lib/tag/styles/light.js +4 -1
- package/lib/thing/src/Thing.d.ts +19 -21
- package/lib/thing/src/Thing.js +4 -7
- package/lib/time-picker/src/Panel.d.ts +1 -0
- package/lib/time-picker/src/TimePicker.d.ts +12 -2
- package/lib/time-picker/src/TimePicker.js +3 -3
- package/lib/time-picker/src/styles/index.cssr.js +12 -12
- package/lib/time-picker/styles/light.d.ts +1 -0
- package/lib/timeline/src/TimelineItem.js +1 -1
- package/lib/tooltip/styles/dark.js +1 -1
- package/lib/tooltip/styles/light.js +1 -1
- package/lib/transfer/src/Transfer.d.ts +37 -6
- package/lib/transfer/src/Transfer.js +32 -23
- package/lib/transfer/src/TransferFilter.d.ts +1 -0
- package/lib/transfer/src/TransferList.d.ts +1 -0
- package/lib/transfer/src/TransferList.js +1 -1
- package/lib/transfer/src/TransferListItem.d.ts +1 -0
- package/lib/transfer/src/interface.d.ts +1 -1
- package/lib/transfer/src/use-transfer-data.d.ts +11 -4
- package/lib/transfer/src/use-transfer-data.js +59 -16
- package/lib/transfer/styles/light.d.ts +1 -0
- package/lib/tree/index.d.ts +1 -1
- package/lib/tree/src/Tree.d.ts +34 -1
- package/lib/tree/src/Tree.js +25 -11
- package/lib/tree/src/interface.d.ts +5 -0
- package/lib/tree/src/keyboard.d.ts +4 -1
- package/lib/tree/src/keyboard.js +3 -1
- package/lib/tree-select/src/TreeSelect.d.ts +13 -0
- package/lib/tree-select/src/TreeSelect.js +3 -3
- package/lib/typography/styles/light.js +1 -1
- package/lib/upload/src/Upload.d.ts +10 -0
- package/lib/upload/src/Upload.js +1 -1
- package/lib/upload/src/UploadFile.js +3 -1
- package/lib/upload/src/utils.d.ts +1 -0
- package/lib/upload/src/utils.js +14 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +25 -19
- package/volar.d.ts +1 -1
- package/web-types.json +210 -3
|
@@ -369,7 +369,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
369
369
|
function handleClickOutside(e) {
|
|
370
370
|
var _a;
|
|
371
371
|
if (mergedShowRef.value &&
|
|
372
|
-
!((_a = triggerElRef.value) === null || _a === void 0 ? void 0 : _a.contains(
|
|
372
|
+
!((_a = triggerElRef.value) === null || _a === void 0 ? void 0 : _a.contains((0, seemly_1.getPreciseEventTarget)(e)))) {
|
|
373
373
|
closeCalendar({
|
|
374
374
|
returnFocus: false
|
|
375
375
|
});
|
|
@@ -561,8 +561,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
561
561
|
const { common: { cubicBezierEaseInOut }, self: { iconColor, iconColorDisabled } } = themeRef.value;
|
|
562
562
|
return {
|
|
563
563
|
'--n-bezier': cubicBezierEaseInOut,
|
|
564
|
-
'--n-icon-color': iconColor,
|
|
565
|
-
'--n-icon-color-disabled': iconColorDisabled
|
|
564
|
+
'--n-icon-color-override': iconColor,
|
|
565
|
+
'--n-icon-color-disabled-override': iconColorDisabled
|
|
566
566
|
};
|
|
567
567
|
});
|
|
568
568
|
const triggerThemeClassHandle = inlineThemeDisabled
|
|
@@ -229,6 +229,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
229
229
|
};
|
|
230
230
|
peers: {
|
|
231
231
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
232
|
+
countTextColorDisabled: string;
|
|
232
233
|
countTextColor: string;
|
|
233
234
|
heightTiny: string;
|
|
234
235
|
heightSmall: string;
|
|
@@ -415,7 +416,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
415
416
|
textColorGhostDisabledSuccess: string;
|
|
416
417
|
borderSuccess: string;
|
|
417
418
|
borderHoverSuccess: string;
|
|
418
|
-
borderPressedSuccess: string;
|
|
419
|
+
borderPressedSuccess: string; /** we don't need a confirm button for date picking */
|
|
419
420
|
borderFocusSuccess: string;
|
|
420
421
|
borderDisabledSuccess: string;
|
|
421
422
|
rippleColorSuccess: string;
|
|
@@ -645,7 +646,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
645
646
|
textColorGhostDisabledSuccess: string;
|
|
646
647
|
borderSuccess: string;
|
|
647
648
|
borderHoverSuccess: string;
|
|
648
|
-
borderPressedSuccess: string;
|
|
649
|
+
borderPressedSuccess: string; /** we don't need a confirm button for date picking */
|
|
649
650
|
borderFocusSuccess: string;
|
|
650
651
|
borderDisabledSuccess: string;
|
|
651
652
|
rippleColorSuccess: string;
|
|
@@ -728,6 +729,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
728
729
|
rippleDuration: string;
|
|
729
730
|
}, any>;
|
|
730
731
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
732
|
+
countTextColorDisabled: string;
|
|
731
733
|
countTextColor: string;
|
|
732
734
|
heightTiny: string;
|
|
733
735
|
heightSmall: string;
|
|
@@ -937,7 +939,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
937
939
|
textColorGhostDisabledSuccess: string;
|
|
938
940
|
borderSuccess: string;
|
|
939
941
|
borderHoverSuccess: string;
|
|
940
|
-
borderPressedSuccess: string;
|
|
942
|
+
borderPressedSuccess: string; /** we don't need a confirm button for date picking */
|
|
941
943
|
borderFocusSuccess: string;
|
|
942
944
|
borderDisabledSuccess: string;
|
|
943
945
|
rippleColorSuccess: string;
|
|
@@ -1020,6 +1022,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1020
1022
|
rippleDuration: string;
|
|
1021
1023
|
}, any>> | undefined;
|
|
1022
1024
|
Input?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Input", {
|
|
1025
|
+
countTextColorDisabled: string;
|
|
1023
1026
|
countTextColor: string;
|
|
1024
1027
|
heightTiny: string;
|
|
1025
1028
|
heightSmall: string;
|
|
@@ -249,6 +249,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
249
249
|
};
|
|
250
250
|
peers: {
|
|
251
251
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
252
|
+
countTextColorDisabled: string;
|
|
252
253
|
countTextColor: string;
|
|
253
254
|
heightTiny: string;
|
|
254
255
|
heightSmall: string;
|
|
@@ -738,6 +739,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
738
739
|
rippleDuration: string;
|
|
739
740
|
}, any>;
|
|
740
741
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
742
|
+
countTextColorDisabled: string;
|
|
741
743
|
countTextColor: string;
|
|
742
744
|
heightTiny: string;
|
|
743
745
|
heightSmall: string;
|
|
@@ -1025,6 +1027,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1025
1027
|
rippleDuration: string;
|
|
1026
1028
|
}, any>> | undefined;
|
|
1027
1029
|
Input?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Input", {
|
|
1030
|
+
countTextColorDisabled: string;
|
|
1028
1031
|
countTextColor: string;
|
|
1029
1032
|
heightTiny: string;
|
|
1030
1033
|
heightSmall: string;
|
|
@@ -218,6 +218,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
218
218
|
};
|
|
219
219
|
peers: {
|
|
220
220
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
221
|
+
countTextColorDisabled: string;
|
|
221
222
|
countTextColor: string;
|
|
222
223
|
heightTiny: string;
|
|
223
224
|
heightSmall: string;
|
|
@@ -707,6 +708,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
707
708
|
rippleDuration: string;
|
|
708
709
|
}, any>;
|
|
709
710
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
711
|
+
countTextColorDisabled: string;
|
|
710
712
|
countTextColor: string;
|
|
711
713
|
heightTiny: string;
|
|
712
714
|
heightSmall: string;
|
|
@@ -994,6 +996,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
994
996
|
rippleDuration: string;
|
|
995
997
|
}, any>> | undefined;
|
|
996
998
|
Input?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Input", {
|
|
999
|
+
countTextColorDisabled: string;
|
|
997
1000
|
countTextColor: string;
|
|
998
1001
|
heightTiny: string;
|
|
999
1002
|
heightSmall: string;
|
|
@@ -249,6 +249,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
249
249
|
};
|
|
250
250
|
peers: {
|
|
251
251
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
252
|
+
countTextColorDisabled: string;
|
|
252
253
|
countTextColor: string;
|
|
253
254
|
heightTiny: string;
|
|
254
255
|
heightSmall: string;
|
|
@@ -738,6 +739,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
738
739
|
rippleDuration: string;
|
|
739
740
|
}, any>;
|
|
740
741
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
742
|
+
countTextColorDisabled: string;
|
|
741
743
|
countTextColor: string;
|
|
742
744
|
heightTiny: string;
|
|
743
745
|
heightSmall: string;
|
|
@@ -1025,6 +1027,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1025
1027
|
rippleDuration: string;
|
|
1026
1028
|
}, any>> | undefined;
|
|
1027
1029
|
Input?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Input", {
|
|
1030
|
+
countTextColorDisabled: string;
|
|
1028
1031
|
countTextColor: string;
|
|
1029
1032
|
heightTiny: string;
|
|
1030
1033
|
heightSmall: string;
|
|
@@ -226,6 +226,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
226
226
|
};
|
|
227
227
|
peers: {
|
|
228
228
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
229
|
+
countTextColorDisabled: string;
|
|
229
230
|
countTextColor: string;
|
|
230
231
|
heightTiny: string;
|
|
231
232
|
heightSmall: string;
|
|
@@ -715,6 +716,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
715
716
|
rippleDuration: string;
|
|
716
717
|
}, any>;
|
|
717
718
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
719
|
+
countTextColorDisabled: string;
|
|
718
720
|
countTextColor: string;
|
|
719
721
|
heightTiny: string;
|
|
720
722
|
heightSmall: string;
|
|
@@ -1002,6 +1004,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1002
1004
|
rippleDuration: string;
|
|
1003
1005
|
}, any>> | undefined;
|
|
1004
1006
|
Input?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Input", {
|
|
1007
|
+
countTextColorDisabled: string;
|
|
1005
1008
|
countTextColor: string;
|
|
1006
1009
|
heightTiny: string;
|
|
1007
1010
|
heightSmall: string;
|
|
@@ -256,6 +256,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
256
256
|
};
|
|
257
257
|
peers: {
|
|
258
258
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
259
|
+
countTextColorDisabled: string;
|
|
259
260
|
countTextColor: string;
|
|
260
261
|
heightTiny: string;
|
|
261
262
|
heightSmall: string;
|
|
@@ -745,6 +746,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
745
746
|
rippleDuration: string;
|
|
746
747
|
}, any>;
|
|
747
748
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
749
|
+
countTextColorDisabled: string;
|
|
748
750
|
countTextColor: string;
|
|
749
751
|
heightTiny: string;
|
|
750
752
|
heightSmall: string;
|
|
@@ -1032,6 +1034,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1032
1034
|
rippleDuration: string;
|
|
1033
1035
|
}, any>> | undefined;
|
|
1034
1036
|
Input?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Input", {
|
|
1037
|
+
countTextColorDisabled: string;
|
|
1035
1038
|
countTextColor: string;
|
|
1036
1039
|
heightTiny: string;
|
|
1037
1040
|
heightSmall: string;
|
|
@@ -308,6 +308,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
308
308
|
};
|
|
309
309
|
peers: {
|
|
310
310
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
311
|
+
countTextColorDisabled: string;
|
|
311
312
|
countTextColor: string;
|
|
312
313
|
heightTiny: string;
|
|
313
314
|
heightSmall: string;
|
|
@@ -797,6 +798,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
797
798
|
rippleDuration: string;
|
|
798
799
|
}, any>;
|
|
799
800
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
801
|
+
countTextColorDisabled: string;
|
|
800
802
|
countTextColor: string;
|
|
801
803
|
heightTiny: string;
|
|
802
804
|
heightSmall: string;
|
|
@@ -1084,6 +1086,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1084
1086
|
rippleDuration: string;
|
|
1085
1087
|
}, any>> | undefined;
|
|
1086
1088
|
Input?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Input", {
|
|
1089
|
+
countTextColorDisabled: string;
|
|
1087
1090
|
countTextColor: string;
|
|
1088
1091
|
heightTiny: string;
|
|
1089
1092
|
heightSmall: string;
|
|
@@ -1481,6 +1484,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1481
1484
|
};
|
|
1482
1485
|
peers: {
|
|
1483
1486
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
1487
|
+
countTextColorDisabled: string;
|
|
1484
1488
|
countTextColor: string;
|
|
1485
1489
|
heightTiny: string;
|
|
1486
1490
|
heightSmall: string;
|
|
@@ -1970,6 +1974,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1970
1974
|
rippleDuration: string;
|
|
1971
1975
|
}, any>;
|
|
1972
1976
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
1977
|
+
countTextColorDisabled: string;
|
|
1973
1978
|
countTextColor: string;
|
|
1974
1979
|
heightTiny: string;
|
|
1975
1980
|
heightSmall: string;
|
|
@@ -2257,6 +2262,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2257
2262
|
rippleDuration: string;
|
|
2258
2263
|
}, any>> | undefined;
|
|
2259
2264
|
Input?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Input", {
|
|
2265
|
+
countTextColorDisabled: string;
|
|
2260
2266
|
countTextColor: string;
|
|
2261
2267
|
heightTiny: string;
|
|
2262
2268
|
heightSmall: string;
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const vue_1 = require("vue");
|
|
7
7
|
const vueuc_1 = require("vueuc");
|
|
8
8
|
const vdirs_1 = require("vdirs");
|
|
9
|
+
const seemly_1 = require("seemly");
|
|
9
10
|
const month_1 = __importDefault(require("./month"));
|
|
10
11
|
exports.default = (0, vue_1.defineComponent)({
|
|
11
12
|
props: {
|
|
@@ -37,7 +38,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
37
38
|
const showRef = (0, vue_1.ref)(false);
|
|
38
39
|
function handleClickOutside(e) {
|
|
39
40
|
var _a;
|
|
40
|
-
if (showRef.value &&
|
|
41
|
+
if (showRef.value &&
|
|
42
|
+
!((_a = triggerRef.value) === null || _a === void 0 ? void 0 : _a.contains((0, seemly_1.getPreciseEventTarget)(e)))) {
|
|
41
43
|
showRef.value = false;
|
|
42
44
|
}
|
|
43
45
|
}
|
|
@@ -224,6 +224,7 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
|
|
|
224
224
|
};
|
|
225
225
|
peers: {
|
|
226
226
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
227
|
+
countTextColorDisabled: string;
|
|
227
228
|
countTextColor: string;
|
|
228
229
|
heightTiny: string;
|
|
229
230
|
heightSmall: string;
|
|
@@ -713,6 +714,7 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
|
|
|
713
714
|
rippleDuration: string;
|
|
714
715
|
}, any>;
|
|
715
716
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
717
|
+
countTextColorDisabled: string;
|
|
716
718
|
countTextColor: string;
|
|
717
719
|
heightTiny: string;
|
|
718
720
|
heightSmall: string;
|
|
@@ -1000,6 +1002,7 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
|
|
|
1000
1002
|
rippleDuration: string;
|
|
1001
1003
|
}, any>> | undefined;
|
|
1002
1004
|
Input?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Input", {
|
|
1005
|
+
countTextColorDisabled: string;
|
|
1003
1006
|
countTextColor: string;
|
|
1004
1007
|
heightTiny: string;
|
|
1005
1008
|
heightSmall: string;
|
|
@@ -255,6 +255,7 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
|
|
|
255
255
|
};
|
|
256
256
|
peers: {
|
|
257
257
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
258
|
+
countTextColorDisabled: string;
|
|
258
259
|
countTextColor: string;
|
|
259
260
|
heightTiny: string;
|
|
260
261
|
heightSmall: string;
|
|
@@ -744,6 +745,7 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
|
|
|
744
745
|
rippleDuration: string;
|
|
745
746
|
}, any>;
|
|
746
747
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
748
|
+
countTextColorDisabled: string;
|
|
747
749
|
countTextColor: string;
|
|
748
750
|
heightTiny: string;
|
|
749
751
|
heightSmall: string;
|
|
@@ -1031,6 +1033,7 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
|
|
|
1031
1033
|
rippleDuration: string;
|
|
1032
1034
|
}, any>> | undefined;
|
|
1033
1035
|
Input?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Input", {
|
|
1036
|
+
countTextColorDisabled: string;
|
|
1034
1037
|
countTextColor: string;
|
|
1035
1038
|
heightTiny: string;
|
|
1036
1039
|
heightSmall: string;
|
|
@@ -198,6 +198,7 @@ declare function usePanelCommon(props: UsePanelCommonProps): {
|
|
|
198
198
|
};
|
|
199
199
|
peers: {
|
|
200
200
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
201
|
+
countTextColorDisabled: string;
|
|
201
202
|
countTextColor: string;
|
|
202
203
|
heightTiny: string;
|
|
203
204
|
heightSmall: string;
|
|
@@ -687,6 +688,7 @@ declare function usePanelCommon(props: UsePanelCommonProps): {
|
|
|
687
688
|
rippleDuration: string;
|
|
688
689
|
}, any>;
|
|
689
690
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
691
|
+
countTextColorDisabled: string;
|
|
690
692
|
countTextColor: string;
|
|
691
693
|
heightTiny: string;
|
|
692
694
|
heightSmall: string;
|
|
@@ -974,6 +976,7 @@ declare function usePanelCommon(props: UsePanelCommonProps): {
|
|
|
974
976
|
rippleDuration: string;
|
|
975
977
|
}, any>> | undefined;
|
|
976
978
|
Input?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Input", {
|
|
979
|
+
countTextColorDisabled: string;
|
|
977
980
|
countTextColor: string;
|
|
978
981
|
heightTiny: string;
|
|
979
982
|
heightSmall: string;
|
|
@@ -8,8 +8,8 @@ const cssr_1 = require("../../../_utils/cssr");
|
|
|
8
8
|
|
|
9
9
|
const fade_in_scale_up_cssr_1 = require("../../../_styles/transitions/fade-in-scale-up.cssr"); // vars:
|
|
10
10
|
// --n-bezier
|
|
11
|
-
// --n-icon-color
|
|
12
|
-
// --n-icon-color-disabled
|
|
11
|
+
// --n-icon-color-override
|
|
12
|
+
// --n-icon-color-disabled-override
|
|
13
13
|
// --n-panel-border-radius
|
|
14
14
|
// --n-panel-color
|
|
15
15
|
// --n-panel-box-shadow
|
|
@@ -61,15 +61,15 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('date-picker', `
|
|
|
61
61
|
position: relative;
|
|
62
62
|
z-index: auto;
|
|
63
63
|
`, [(0, cssr_1.cB)('date-picker-icon', `
|
|
64
|
-
color: var(--n-icon-color);
|
|
64
|
+
color: var(--n-icon-color-override);
|
|
65
65
|
transition: color .3s var(--n-bezier);
|
|
66
66
|
`), (0, cssr_1.cB)('icon', `
|
|
67
|
-
color: var(--n-icon-color);
|
|
67
|
+
color: var(--n-icon-color-override);
|
|
68
68
|
transition: color .3s var(--n-bezier);
|
|
69
69
|
`), (0, cssr_1.cM)('disabled', [(0, cssr_1.cB)('date-picker-icon', `
|
|
70
|
-
color: var(--n-icon-color-disabled);
|
|
70
|
+
color: var(--n-icon-color-disabled-override);
|
|
71
71
|
`), (0, cssr_1.cB)('icon', `
|
|
72
|
-
color: var(--n-icon-color-disabled);
|
|
72
|
+
color: var(--n-icon-color-disabled-override);
|
|
73
73
|
`)])]), (0, cssr_1.cB)('date-panel', `
|
|
74
74
|
width: fit-content;
|
|
75
75
|
outline: none;
|
|
@@ -127,6 +127,7 @@ declare const datePickerLight: import("../../_mixins").Theme<"DatePicker", {
|
|
|
127
127
|
calendarRightPaddingYearrange: string;
|
|
128
128
|
}, {
|
|
129
129
|
Input: import("../../_mixins").Theme<"Input", {
|
|
130
|
+
countTextColorDisabled: string;
|
|
130
131
|
countTextColor: string;
|
|
131
132
|
heightTiny: string;
|
|
132
133
|
heightSmall: string;
|
|
@@ -616,6 +617,7 @@ declare const datePickerLight: import("../../_mixins").Theme<"DatePicker", {
|
|
|
616
617
|
rippleDuration: string;
|
|
617
618
|
}, any>;
|
|
618
619
|
Input: import("../../_mixins").Theme<"Input", {
|
|
620
|
+
countTextColorDisabled: string;
|
|
619
621
|
countTextColor: string;
|
|
620
622
|
heightTiny: string;
|
|
621
623
|
heightSmall: string;
|
|
@@ -12,7 +12,7 @@ const self = (vars) => {
|
|
|
12
12
|
return Object.assign(Object.assign({}, _common_1.default), { lineHeight,
|
|
13
13
|
fontSizeSmall,
|
|
14
14
|
fontSizeMedium,
|
|
15
|
-
fontSizeLarge, titleTextColor: textColor1, thColor: (0, seemly_1.composite)(cardColor, tableHeaderColor), thColorModal: (0, seemly_1.composite)(modalColor, tableHeaderColor), thColorPopover: (0, seemly_1.composite)(popoverColor, tableHeaderColor), thTextColor: textColor1, thFontWeight: fontWeightStrong, tdTextColor: textColor2, tdColor: cardColor, tdColorModal: modalColor, tdColorPopover: popoverColor, borderColor: (0, seemly_1.composite)(cardColor, dividerColor), borderColorModal: (0, seemly_1.composite)(modalColor, dividerColor), borderColorPopover: (0, seemly_1.composite)(popoverColor, dividerColor), borderRadius
|
|
15
|
+
fontSizeLarge, titleTextColor: textColor1, thColor: (0, seemly_1.composite)(cardColor, tableHeaderColor), thColorModal: (0, seemly_1.composite)(modalColor, tableHeaderColor), thColorPopover: (0, seemly_1.composite)(popoverColor, tableHeaderColor), thTextColor: textColor1, thFontWeight: fontWeightStrong, tdTextColor: textColor2, tdColor: cardColor, tdColorModal: modalColor, tdColorPopover: popoverColor, borderColor: (0, seemly_1.composite)(cardColor, dividerColor), borderColorModal: (0, seemly_1.composite)(modalColor, dividerColor), borderColorPopover: (0, seemly_1.composite)(popoverColor, dividerColor), borderRadius });
|
|
16
16
|
};
|
|
17
17
|
exports.self = self;
|
|
18
18
|
const descriptionsLight = {
|
|
@@ -50,11 +50,11 @@ export declare const drawerProps: {
|
|
|
50
50
|
};
|
|
51
51
|
readonly resizable: BooleanConstructor;
|
|
52
52
|
readonly defaultWidth: {
|
|
53
|
-
readonly type:
|
|
53
|
+
readonly type: PropType<string | number>;
|
|
54
54
|
readonly default: 251;
|
|
55
55
|
};
|
|
56
56
|
readonly defaultHeight: {
|
|
57
|
-
readonly type:
|
|
57
|
+
readonly type: PropType<string | number>;
|
|
58
58
|
readonly default: 251;
|
|
59
59
|
};
|
|
60
60
|
readonly onUpdateWidth: PropType<MaybeArray<(value: number) => void>>;
|
|
@@ -205,11 +205,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
205
205
|
};
|
|
206
206
|
readonly resizable: BooleanConstructor;
|
|
207
207
|
readonly defaultWidth: {
|
|
208
|
-
readonly type:
|
|
208
|
+
readonly type: PropType<string | number>;
|
|
209
209
|
readonly default: 251;
|
|
210
210
|
};
|
|
211
211
|
readonly defaultHeight: {
|
|
212
|
-
readonly type:
|
|
212
|
+
readonly type: PropType<string | number>;
|
|
213
213
|
readonly default: 251;
|
|
214
214
|
};
|
|
215
215
|
readonly onUpdateWidth: PropType<MaybeArray<(value: number) => void>>;
|
|
@@ -536,11 +536,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
536
536
|
};
|
|
537
537
|
readonly resizable: BooleanConstructor;
|
|
538
538
|
readonly defaultWidth: {
|
|
539
|
-
readonly type:
|
|
539
|
+
readonly type: PropType<string | number>;
|
|
540
540
|
readonly default: 251;
|
|
541
541
|
};
|
|
542
542
|
readonly defaultHeight: {
|
|
543
|
-
readonly type:
|
|
543
|
+
readonly type: PropType<string | number>;
|
|
544
544
|
readonly default: 251;
|
|
545
545
|
};
|
|
546
546
|
readonly onUpdateWidth: PropType<MaybeArray<(value: number) => void>>;
|
|
@@ -653,7 +653,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
653
653
|
readonly closeOnEsc: boolean;
|
|
654
654
|
readonly nativeScrollbar: boolean;
|
|
655
655
|
readonly showMask: boolean | "transparent";
|
|
656
|
-
readonly defaultWidth: number;
|
|
657
|
-
readonly defaultHeight: number;
|
|
656
|
+
readonly defaultWidth: string | number;
|
|
657
|
+
readonly defaultHeight: string | number;
|
|
658
658
|
}>;
|
|
659
659
|
export default _default;
|
package/lib/drawer/src/Drawer.js
CHANGED
|
@@ -42,10 +42,10 @@ exports.drawerProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props),
|
|
|
42
42
|
type: Boolean,
|
|
43
43
|
default: true
|
|
44
44
|
}, resizable: Boolean, defaultWidth: {
|
|
45
|
-
type: Number,
|
|
45
|
+
type: [Number, String],
|
|
46
46
|
default: 251
|
|
47
47
|
}, defaultHeight: {
|
|
48
|
-
type: Number,
|
|
48
|
+
type: [Number, String],
|
|
49
49
|
default: 251
|
|
50
50
|
}, onUpdateWidth: [Function, Array], onUpdateHeight: [Function, Array], 'onUpdate:width': [Function, Array], 'onUpdate:height': [Function, Array], 'onUpdate:show': [Function, Array], onUpdateShow: [Function, Array], onAfterEnter: Function, onAfterLeave: Function,
|
|
51
51
|
/** @deprecated */
|
|
@@ -145,7 +145,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
145
145
|
(0, _utils_1.call)(onHide, show);
|
|
146
146
|
}
|
|
147
147
|
(0, vue_1.provide)(interface_1.drawerInjectionKey, {
|
|
148
|
-
isMountedRef
|
|
148
|
+
isMountedRef,
|
|
149
149
|
mergedThemeRef: themeRef,
|
|
150
150
|
mergedClsPrefixRef,
|
|
151
151
|
doUpdateShow,
|
|
@@ -40,6 +40,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
40
|
onEsc: PropType<(e: KeyboardEvent) => void>;
|
|
41
41
|
}, {
|
|
42
42
|
bodyRef: import("vue").Ref<HTMLElement | null>;
|
|
43
|
+
rtlEnabled: import("vue").Ref<import("../../config-provider/src/internal-interface").RtlItem | undefined> | undefined;
|
|
43
44
|
mergedClsPrefix: import("vue").Ref<string>;
|
|
44
45
|
isMounted: import("vue").Ref<boolean>;
|
|
45
46
|
mergedTheme: import("vue").Ref<{
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const vue_1 = require("vue");
|
|
4
4
|
const vueuc_1 = require("vueuc");
|
|
5
5
|
const vdirs_1 = require("vdirs");
|
|
6
|
+
const _mixins_1 = require("../../_mixins");
|
|
6
7
|
const interface_1 = require("../../popover/src/interface");
|
|
7
8
|
const interface_2 = require("../../modal/src/interface");
|
|
8
9
|
const _internal_1 = require("../../_internal");
|
|
@@ -62,6 +63,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
62
63
|
const isVertical = (0, vue_1.computed)(() => {
|
|
63
64
|
return props.placement === 'top' || props.placement === 'bottom';
|
|
64
65
|
});
|
|
66
|
+
const { mergedClsPrefixRef, mergedRtlRef } = (0, _mixins_1.useConfig)(props);
|
|
67
|
+
const rtlEnabledRef = (0, _mixins_1.useRtl)('Drawer', mergedRtlRef, mergedClsPrefixRef);
|
|
65
68
|
const handleMousedownResizeTrigger = (e) => {
|
|
66
69
|
isDraggingRef.value = true;
|
|
67
70
|
startPosition = isVertical.value ? e.clientY : e.clientX;
|
|
@@ -159,6 +162,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
159
162
|
(0, vue_1.provide)(interface_2.modalBodyInjectionKey, null);
|
|
160
163
|
return {
|
|
161
164
|
bodyRef,
|
|
165
|
+
rtlEnabled: rtlEnabledRef,
|
|
162
166
|
mergedClsPrefix: NDrawer.mergedClsPrefixRef,
|
|
163
167
|
isMounted: NDrawer.isMountedRef,
|
|
164
168
|
mergedTheme: NDrawer.mergedThemeRef,
|
|
@@ -195,6 +199,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
195
199
|
'aria-modal': 'true',
|
|
196
200
|
class: [
|
|
197
201
|
`${mergedClsPrefix}-drawer`,
|
|
202
|
+
this.rtlEnabled &&
|
|
203
|
+
`${mergedClsPrefix}-drawer--rtl`,
|
|
198
204
|
`${mergedClsPrefix}-drawer--${this.placement}-placement`,
|
|
199
205
|
/**
|
|
200
206
|
* When the mouse is pressed to resize the drawer,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
const cssr_1 = require("../../../_utils/cssr");
|
|
8
|
+
|
|
9
|
+
exports.default = (0, cssr_1.cB)('drawer', [(0, cssr_1.cM)('rtl', `
|
|
10
|
+
direction: rtl;
|
|
11
|
+
text-align: right;
|
|
12
|
+
`, [(0, cssr_1.cB)('drawer-content', [(0, cssr_1.cB)('drawer-header', [(0, cssr_1.cE)('close', `
|
|
13
|
+
margin-left: 0;
|
|
14
|
+
margin-right: 6px;
|
|
15
|
+
`)])])])]);
|
|
@@ -3,8 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.drawerLight = exports.drawerDark = void 0;
|
|
6
|
+
exports.drawerRtl = exports.drawerLight = exports.drawerDark = void 0;
|
|
7
7
|
var dark_1 = require("./dark");
|
|
8
8
|
Object.defineProperty(exports, "drawerDark", { enumerable: true, get: function () { return __importDefault(dark_1).default; } });
|
|
9
9
|
var light_1 = require("./light");
|
|
10
10
|
Object.defineProperty(exports, "drawerLight", { enumerable: true, get: function () { return __importDefault(light_1).default; } });
|
|
11
|
+
var rtl_1 = require("./rtl");
|
|
12
|
+
Object.defineProperty(exports, "drawerRtl", { enumerable: true, get: function () { return __importDefault(rtl_1).default; } });
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.drawerRtl = void 0;
|
|
7
|
+
const rtl_cssr_1 = __importDefault(require("../src/styles/rtl.cssr"));
|
|
8
|
+
const rtl_1 = require("../../_internal/scrollbar/styles/rtl");
|
|
9
|
+
exports.drawerRtl = {
|
|
10
|
+
name: 'Drawer',
|
|
11
|
+
style: rtl_cssr_1.default,
|
|
12
|
+
peers: [rtl_1.scrollbarRtl]
|
|
13
|
+
};
|
|
14
|
+
exports.default = exports.drawerRtl;
|
|
@@ -131,13 +131,13 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
131
131
|
childrenFieldRef: (0, vue_1.toRef)(props, 'childrenField'),
|
|
132
132
|
renderLabelRef: (0, vue_1.toRef)(props, 'renderLabel'),
|
|
133
133
|
renderIconRef: (0, vue_1.toRef)(props, 'renderIcon'),
|
|
134
|
-
hoverKeyRef
|
|
135
|
-
keyboardKeyRef
|
|
136
|
-
lastToggledSubmenuKeyRef
|
|
137
|
-
pendingKeyPathRef
|
|
138
|
-
activeKeyPathRef
|
|
134
|
+
hoverKeyRef,
|
|
135
|
+
keyboardKeyRef,
|
|
136
|
+
lastToggledSubmenuKeyRef,
|
|
137
|
+
pendingKeyPathRef,
|
|
138
|
+
activeKeyPathRef,
|
|
139
139
|
animatedRef: (0, vue_1.toRef)(props, 'animated'),
|
|
140
|
-
mergedShowRef
|
|
140
|
+
mergedShowRef,
|
|
141
141
|
nodePropsRef: (0, vue_1.toRef)(props, 'nodeProps'),
|
|
142
142
|
renderOptionRef: (0, vue_1.toRef)(props, 'renderOption'),
|
|
143
143
|
menuPropsRef: (0, vue_1.toRef)(props, 'menuProps'),
|