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
package/es/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "2.32.
|
|
1
|
+
declare const _default: "2.32.2";
|
|
2
2
|
export default _default;
|
package/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '2.32.
|
|
1
|
+
export default '2.32.2';
|
|
@@ -8,6 +8,7 @@ const vue_1 = require("vue");
|
|
|
8
8
|
const evtd_1 = require("evtd");
|
|
9
9
|
const vueuc_1 = require("vueuc");
|
|
10
10
|
const vooks_1 = require("vooks");
|
|
11
|
+
const seemly_1 = require("seemly");
|
|
11
12
|
const _mixins_1 = require("../../../_mixins");
|
|
12
13
|
const _utils_1 = require("../../../_utils");
|
|
13
14
|
const styles_1 = require("../styles");
|
|
@@ -367,7 +368,7 @@ const Scrollbar = (0, vue_1.defineComponent)({
|
|
|
367
368
|
}
|
|
368
369
|
function isMouseUpAway(e) {
|
|
369
370
|
var _a;
|
|
370
|
-
return !((_a = wrapperRef.value) === null || _a === void 0 ? void 0 : _a.contains(
|
|
371
|
+
return !((_a = wrapperRef.value) === null || _a === void 0 ? void 0 : _a.contains((0, seemly_1.getPreciseEventTarget)(e)));
|
|
371
372
|
}
|
|
372
373
|
function handleXScrollMouseDown(e) {
|
|
373
374
|
e.preventDefault();
|
|
@@ -11,7 +11,7 @@ const _common_1 = __importDefault(require("./_common"));
|
|
|
11
11
|
const _mixins_1 = require("../../../_mixins");
|
|
12
12
|
const self = (vars) => {
|
|
13
13
|
const { borderRadius, popoverColor, textColor3, dividerColor, textColor2, primaryColorPressed, textColorDisabled, primaryColor, opacityDisabled, hoverColor, fontSizeSmall, fontSizeMedium, fontSizeLarge, fontSizeHuge, heightSmall, heightMedium, heightLarge, heightHuge } = vars;
|
|
14
|
-
return Object.assign(Object.assign({}, _common_1.default), { optionFontSizeSmall: fontSizeSmall, optionFontSizeMedium: fontSizeMedium, optionFontSizeLarge: fontSizeLarge, optionFontSizeHuge: fontSizeHuge, optionHeightSmall: heightSmall, optionHeightMedium: heightMedium, optionHeightLarge: heightLarge, optionHeightHuge: heightHuge, borderRadius
|
|
14
|
+
return Object.assign(Object.assign({}, _common_1.default), { optionFontSizeSmall: fontSizeSmall, optionFontSizeMedium: fontSizeMedium, optionFontSizeLarge: fontSizeLarge, optionFontSizeHuge: fontSizeHuge, optionHeightSmall: heightSmall, optionHeightMedium: heightMedium, optionHeightLarge: heightLarge, optionHeightHuge: heightHuge, borderRadius, color: popoverColor, groupHeaderTextColor: textColor3, actionDividerColor: dividerColor, optionTextColor: textColor2, optionTextColorPressed: primaryColorPressed, optionTextColorDisabled: textColorDisabled, optionTextColorActive: primaryColor, optionOpacityDisabled: opacityDisabled, optionCheckColor: primaryColor, optionColorPending: hoverColor, optionColorActive: 'rgba(0, 0, 0, 0)', optionColorActivePending: hoverColor, actionTextColor: textColor2, loadingColor: primaryColor });
|
|
15
15
|
};
|
|
16
16
|
exports.self = self;
|
|
17
17
|
const internalSelectMenuLight = (0, _mixins_1.createTheme)({
|
|
@@ -442,7 +442,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
442
442
|
const createTag = (option) => ((0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-tag-wrapper`, key: option.value }, renderTag ? (renderTag({
|
|
443
443
|
option,
|
|
444
444
|
handleClose: () => this.handleDeleteOption(option)
|
|
445
|
-
})) : ((0, vue_1.h)(tag_1.NTag, { size: size, closable: !option.disabled, disabled: disabled, onClose: () => this.handleDeleteOption(option), internalCloseFocusable: false
|
|
445
|
+
})) : ((0, vue_1.h)(tag_1.NTag, { size: size, closable: !option.disabled, disabled: disabled, onClose: () => this.handleDeleteOption(option), internalCloseFocusable: false }, {
|
|
446
446
|
default: () => renderLabel
|
|
447
447
|
? renderLabel(option, true)
|
|
448
448
|
: (0, _utils_1.render)(option[labelField], option, true)
|
package/lib/_utils/cssr/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.createKey = exports.find = exports.namespace = exports.prefix = exports.asModal = exports.insidePopover = exports.insideModal = exports.cCB = exports.cNotM = exports.cM = exports.cE = exports.cB = exports.c = void 0;
|
|
7
7
|
/* eslint-disable @typescript-eslint/restrict-template-expressions */
|
|
8
|
-
const css_render_1 =
|
|
8
|
+
const css_render_1 = require("css-render");
|
|
9
9
|
const plugin_bem_1 = __importDefault(require("@css-render/plugin-bem"));
|
|
10
10
|
const namespace = 'n';
|
|
11
11
|
exports.namespace = namespace;
|
|
@@ -13,7 +13,7 @@ const prefix = `.${namespace}-`;
|
|
|
13
13
|
exports.prefix = prefix;
|
|
14
14
|
const elementPrefix = '__';
|
|
15
15
|
const modifierPrefix = '--';
|
|
16
|
-
const cssr = (0, css_render_1.
|
|
16
|
+
const cssr = (0, css_render_1.CssRender)();
|
|
17
17
|
const plugin = (0, plugin_bem_1.default)({
|
|
18
18
|
blockPrefix: prefix,
|
|
19
19
|
elementPrefix,
|
package/lib/alert/src/Alert.d.ts
CHANGED
|
@@ -10,6 +10,10 @@ export declare const alertProps: {
|
|
|
10
10
|
type: PropType<"default" | "error" | "info" | "success" | "warning">;
|
|
11
11
|
default: string;
|
|
12
12
|
};
|
|
13
|
+
bordered: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
13
17
|
closable: BooleanConstructor;
|
|
14
18
|
onClose: FunctionConstructor;
|
|
15
19
|
onAfterLeave: FunctionConstructor;
|
|
@@ -222,6 +226,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
222
226
|
type: PropType<"default" | "error" | "info" | "success" | "warning">;
|
|
223
227
|
default: string;
|
|
224
228
|
};
|
|
229
|
+
bordered: {
|
|
230
|
+
type: BooleanConstructor;
|
|
231
|
+
default: boolean;
|
|
232
|
+
};
|
|
225
233
|
closable: BooleanConstructor;
|
|
226
234
|
onClose: FunctionConstructor;
|
|
227
235
|
onAfterLeave: FunctionConstructor;
|
|
@@ -425,6 +433,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
425
433
|
}, {
|
|
426
434
|
rtlEnabled: import("vue").Ref<import("../../config-provider/src/internal-interface").RtlItem | undefined> | undefined;
|
|
427
435
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
436
|
+
mergedBordered: import("vue").ComputedRef<boolean>;
|
|
428
437
|
visible: import("vue").Ref<boolean>;
|
|
429
438
|
handleCloseClick: () => void;
|
|
430
439
|
handleAfterLeave: () => void;
|
|
@@ -644,6 +653,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
644
653
|
type: PropType<"default" | "error" | "info" | "success" | "warning">;
|
|
645
654
|
default: string;
|
|
646
655
|
};
|
|
656
|
+
bordered: {
|
|
657
|
+
type: BooleanConstructor;
|
|
658
|
+
default: boolean;
|
|
659
|
+
};
|
|
647
660
|
closable: BooleanConstructor;
|
|
648
661
|
onClose: FunctionConstructor;
|
|
649
662
|
onAfterLeave: FunctionConstructor;
|
|
@@ -846,6 +859,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
846
859
|
}, any>>>;
|
|
847
860
|
}>>, {
|
|
848
861
|
type: "default" | "error" | "info" | "success" | "warning";
|
|
862
|
+
bordered: boolean;
|
|
849
863
|
showIcon: boolean;
|
|
850
864
|
closable: boolean;
|
|
851
865
|
}>;
|
package/lib/alert/src/Alert.js
CHANGED
|
@@ -19,6 +19,9 @@ exports.alertProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props),
|
|
|
19
19
|
}, type: {
|
|
20
20
|
type: String,
|
|
21
21
|
default: 'default'
|
|
22
|
+
}, bordered: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: true
|
|
22
25
|
}, closable: Boolean, onClose: Function, onAfterLeave: Function,
|
|
23
26
|
/** @deprecated */
|
|
24
27
|
onAfterHide: Function });
|
|
@@ -34,7 +37,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
34
37
|
}
|
|
35
38
|
});
|
|
36
39
|
}
|
|
37
|
-
const { mergedClsPrefixRef, inlineThemeDisabled, mergedRtlRef } = (0, _mixins_1.useConfig)(props);
|
|
40
|
+
const { mergedClsPrefixRef, mergedBorderedRef, inlineThemeDisabled, mergedRtlRef } = (0, _mixins_1.useConfig)(props);
|
|
38
41
|
const themeRef = (0, _mixins_1.useTheme)('Alert', '-alert', index_cssr_1.default, styles_1.alertLight, props, mergedClsPrefixRef);
|
|
39
42
|
const rtlEnabledRef = (0, use_rtl_1.useRtl)('Alert', mergedRtlRef, mergedClsPrefixRef);
|
|
40
43
|
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
@@ -99,6 +102,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
99
102
|
return {
|
|
100
103
|
rtlEnabled: rtlEnabledRef,
|
|
101
104
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
105
|
+
mergedBordered: mergedBorderedRef,
|
|
102
106
|
visible: visibleRef,
|
|
103
107
|
handleCloseClick,
|
|
104
108
|
handleAfterLeave,
|
|
@@ -127,6 +131,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
127
131
|
};
|
|
128
132
|
return this.visible ? ((0, vue_1.h)("div", Object.assign({}, (0, vue_1.mergeProps)(this.$attrs, attrs)),
|
|
129
133
|
this.closable && ((0, vue_1.h)(_internal_1.NBaseClose, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-alert__close`, onClick: this.handleCloseClick })),
|
|
134
|
+
this.bordered && ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-alert__border` })),
|
|
130
135
|
this.showIcon && ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-alert__icon`, "aria-hidden": "true" }, (0, _utils_1.resolveSlot)($slots.icon, () => [
|
|
131
136
|
(0, vue_1.h)(_internal_1.NBaseIcon, { clsPrefix: mergedClsPrefix }, {
|
|
132
137
|
default: () => {
|
|
@@ -145,7 +150,11 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
145
150
|
}
|
|
146
151
|
})
|
|
147
152
|
]))),
|
|
148
|
-
(0, vue_1.h)("div", { class:
|
|
153
|
+
(0, vue_1.h)("div", { class: [
|
|
154
|
+
`${mergedClsPrefix}-alert-body`,
|
|
155
|
+
this.mergedBordered &&
|
|
156
|
+
`${mergedClsPrefix}-alert-body--bordered`
|
|
157
|
+
] },
|
|
149
158
|
(0, _utils_1.resolveWrappedSlot)($slots.header, (children) => {
|
|
150
159
|
const mergedChildren = children || this.title;
|
|
151
160
|
return mergedChildren ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-alert-body__title` }, mergedChildren)) : null;
|
|
@@ -40,12 +40,21 @@ exports.default = (0, cssr_1.cB)('alert', `
|
|
|
40
40
|
background-color: var(--n-color);
|
|
41
41
|
text-align: start;
|
|
42
42
|
word-break: break-word;
|
|
43
|
-
`, [(0, cssr_1.
|
|
43
|
+
`, [(0, cssr_1.cE)('border', `
|
|
44
|
+
border-radius: inherit;
|
|
45
|
+
position: absolute;
|
|
46
|
+
left: 0;
|
|
47
|
+
right: 0;
|
|
48
|
+
top: 0;
|
|
49
|
+
bottom: 0;
|
|
50
|
+
transition: border-color .3s var(--n-bezier);
|
|
51
|
+
border: var(--n-border);
|
|
52
|
+
pointer-events: none;
|
|
53
|
+
`), (0, cssr_1.cM)('closable', [(0, cssr_1.cB)('alert-body', [(0, cssr_1.cE)('title', `
|
|
44
54
|
padding-right: 24px;
|
|
45
55
|
`)])]), (0, cssr_1.cE)('icon', {
|
|
46
56
|
color: 'var(--n-icon-color)'
|
|
47
57
|
}), (0, cssr_1.cB)('alert-body', {
|
|
48
|
-
border: 'var(--n-border)',
|
|
49
58
|
padding: 'var(--n-padding)'
|
|
50
59
|
}, [(0, cssr_1.cE)('title', {
|
|
51
60
|
color: 'var(--n-title-text-color)'
|
package/lib/alert/styles/dark.js
CHANGED
|
@@ -12,7 +12,11 @@ const alertDark = {
|
|
|
12
12
|
self(vars) {
|
|
13
13
|
const { lineHeight, borderRadius, fontWeightStrong, dividerColor, inputColor, textColor1, textColor2, closeColorHover, closeColorPressed, closeIconColor, closeIconColorHover, closeIconColorPressed, infoColorSuppl, successColorSuppl, warningColorSuppl, errorColorSuppl, fontSize } = vars;
|
|
14
14
|
return Object.assign(Object.assign({}, _common_1.default), { fontSize,
|
|
15
|
-
lineHeight, titleFontWeight: fontWeightStrong, borderRadius, border: `1px solid ${dividerColor}`, color: inputColor, titleTextColor: textColor1, iconColor: textColor2, contentTextColor: textColor2, closeBorderRadius: borderRadius, closeColorHover
|
|
15
|
+
lineHeight, titleFontWeight: fontWeightStrong, borderRadius, border: `1px solid ${dividerColor}`, color: inputColor, titleTextColor: textColor1, iconColor: textColor2, contentTextColor: textColor2, closeBorderRadius: borderRadius, closeColorHover,
|
|
16
|
+
closeColorPressed,
|
|
17
|
+
closeIconColor,
|
|
18
|
+
closeIconColorHover,
|
|
19
|
+
closeIconColorPressed, borderInfo: `1px solid ${(0, seemly_1.changeColor)(infoColorSuppl, { alpha: 0.35 })}`, colorInfo: (0, seemly_1.changeColor)(infoColorSuppl, { alpha: 0.25 }), titleTextColorInfo: textColor1, iconColorInfo: infoColorSuppl, contentTextColorInfo: textColor2, closeColorHoverInfo: closeColorHover, closeColorPressedInfo: closeColorPressed, closeIconColorInfo: closeIconColor, closeIconColorHoverInfo: closeIconColorHover, closeIconColorPressedInfo: closeIconColorPressed, borderSuccess: `1px solid ${(0, seemly_1.changeColor)(successColorSuppl, {
|
|
16
20
|
alpha: 0.35
|
|
17
21
|
})}`, colorSuccess: (0, seemly_1.changeColor)(successColorSuppl, { alpha: 0.25 }), titleTextColorSuccess: textColor1, iconColorSuccess: successColorSuppl, contentTextColorSuccess: textColor2, closeColorHoverSuccess: closeColorHover, closeColorPressedSuccess: closeColorPressed, closeIconColorSuccess: closeIconColor, closeIconColorHoverSuccess: closeIconColorHover, closeIconColorPressedSuccess: closeIconColorPressed, borderWarning: `1px solid ${(0, seemly_1.changeColor)(warningColorSuppl, {
|
|
18
22
|
alpha: 0.35
|
|
@@ -9,7 +9,8 @@ const common_1 = require("../../_styles/common");
|
|
|
9
9
|
const _common_1 = __importDefault(require("./_common"));
|
|
10
10
|
const self = (vars) => {
|
|
11
11
|
const { borderRadius, railColor, primaryColor, primaryColorHover, primaryColorPressed, textColor2 } = vars;
|
|
12
|
-
return Object.assign(Object.assign({}, _common_1.default), { borderRadius,
|
|
12
|
+
return Object.assign(Object.assign({}, _common_1.default), { borderRadius,
|
|
13
|
+
railColor, railColorActive: primaryColor, linkColor: (0, seemly_1.changeColor)(primaryColor, { alpha: 0.15 }), linkTextColor: textColor2, linkTextColorHover: primaryColorHover, linkTextColorPressed: primaryColorPressed, linkTextColorActive: primaryColor });
|
|
13
14
|
};
|
|
14
15
|
exports.self = self;
|
|
15
16
|
const anchorLight = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropType, InputHTMLAttributes } from 'vue';
|
|
1
|
+
import { PropType, InputHTMLAttributes, HTMLAttributes } from 'vue';
|
|
2
2
|
import { TreeNode } from 'treemate';
|
|
3
3
|
import { FollowerPlacement } from 'vueuc';
|
|
4
4
|
import { RenderOption, RenderLabel } from '../../_internal/select-menu/src/interface';
|
|
@@ -12,6 +12,7 @@ export declare const autoCompleteProps: {
|
|
|
12
12
|
type: PropType<string | boolean | HTMLElement>;
|
|
13
13
|
default: undefined;
|
|
14
14
|
};
|
|
15
|
+
readonly menuProps: PropType<HTMLAttributes>;
|
|
15
16
|
readonly bordered: {
|
|
16
17
|
readonly type: PropType<boolean | undefined>;
|
|
17
18
|
readonly default: undefined;
|
|
@@ -114,6 +115,7 @@ export declare const autoCompleteProps: {
|
|
|
114
115
|
}, any>;
|
|
115
116
|
}>;
|
|
116
117
|
Input: import("../../_mixins").Theme<"Input", {
|
|
118
|
+
countTextColorDisabled: string;
|
|
117
119
|
countTextColor: string;
|
|
118
120
|
heightTiny: string;
|
|
119
121
|
heightSmall: string;
|
|
@@ -231,6 +233,7 @@ export declare const autoCompleteProps: {
|
|
|
231
233
|
}, any>;
|
|
232
234
|
}>;
|
|
233
235
|
Input: import("../../_mixins").Theme<"Input", {
|
|
236
|
+
countTextColorDisabled: string;
|
|
234
237
|
countTextColor: string;
|
|
235
238
|
heightTiny: string;
|
|
236
239
|
heightSmall: string;
|
|
@@ -348,6 +351,7 @@ export declare const autoCompleteProps: {
|
|
|
348
351
|
}, any>;
|
|
349
352
|
}>;
|
|
350
353
|
Input: import("../../_mixins").Theme<"Input", {
|
|
354
|
+
countTextColorDisabled: string;
|
|
351
355
|
countTextColor: string;
|
|
352
356
|
heightTiny: string;
|
|
353
357
|
heightSmall: string;
|
|
@@ -415,6 +419,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
415
419
|
type: PropType<string | boolean | HTMLElement>;
|
|
416
420
|
default: undefined;
|
|
417
421
|
};
|
|
422
|
+
readonly menuProps: PropType<HTMLAttributes>;
|
|
418
423
|
readonly bordered: {
|
|
419
424
|
readonly type: PropType<boolean | undefined>;
|
|
420
425
|
readonly default: undefined;
|
|
@@ -517,6 +522,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
517
522
|
}, any>;
|
|
518
523
|
}>;
|
|
519
524
|
Input: import("../../_mixins").Theme<"Input", {
|
|
525
|
+
countTextColorDisabled: string;
|
|
520
526
|
countTextColor: string;
|
|
521
527
|
heightTiny: string;
|
|
522
528
|
heightSmall: string;
|
|
@@ -634,6 +640,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
634
640
|
}, any>;
|
|
635
641
|
}>;
|
|
636
642
|
Input: import("../../_mixins").Theme<"Input", {
|
|
643
|
+
countTextColorDisabled: string;
|
|
637
644
|
countTextColor: string;
|
|
638
645
|
heightTiny: string;
|
|
639
646
|
heightSmall: string;
|
|
@@ -751,6 +758,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
751
758
|
}, any>;
|
|
752
759
|
}>;
|
|
753
760
|
Input: import("../../_mixins").Theme<"Input", {
|
|
761
|
+
countTextColorDisabled: string;
|
|
754
762
|
countTextColor: string;
|
|
755
763
|
heightTiny: string;
|
|
756
764
|
heightSmall: string;
|
|
@@ -1015,6 +1023,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1015
1023
|
}, any>;
|
|
1016
1024
|
}>;
|
|
1017
1025
|
Input: import("../../_mixins").Theme<"Input", {
|
|
1026
|
+
countTextColorDisabled: string;
|
|
1018
1027
|
countTextColor: string;
|
|
1019
1028
|
heightTiny: string;
|
|
1020
1029
|
heightSmall: string;
|
|
@@ -1118,6 +1127,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1118
1127
|
type: PropType<string | boolean | HTMLElement>;
|
|
1119
1128
|
default: undefined;
|
|
1120
1129
|
};
|
|
1130
|
+
readonly menuProps: PropType<HTMLAttributes>;
|
|
1121
1131
|
readonly bordered: {
|
|
1122
1132
|
readonly type: PropType<boolean | undefined>;
|
|
1123
1133
|
readonly default: undefined;
|
|
@@ -1220,6 +1230,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1220
1230
|
}, any>;
|
|
1221
1231
|
}>;
|
|
1222
1232
|
Input: import("../../_mixins").Theme<"Input", {
|
|
1233
|
+
countTextColorDisabled: string;
|
|
1223
1234
|
countTextColor: string;
|
|
1224
1235
|
heightTiny: string;
|
|
1225
1236
|
heightSmall: string;
|
|
@@ -1337,6 +1348,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1337
1348
|
}, any>;
|
|
1338
1349
|
}>;
|
|
1339
1350
|
Input: import("../../_mixins").Theme<"Input", {
|
|
1351
|
+
countTextColorDisabled: string;
|
|
1340
1352
|
countTextColor: string;
|
|
1341
1353
|
heightTiny: string;
|
|
1342
1354
|
heightSmall: string;
|
|
@@ -1454,6 +1466,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1454
1466
|
}, any>;
|
|
1455
1467
|
}>;
|
|
1456
1468
|
Input: import("../../_mixins").Theme<"Input", {
|
|
1469
|
+
countTextColorDisabled: string;
|
|
1457
1470
|
countTextColor: string;
|
|
1458
1471
|
heightTiny: string;
|
|
1459
1472
|
heightSmall: string;
|
|
@@ -9,6 +9,7 @@ const treemate_1 = require("treemate");
|
|
|
9
9
|
const vueuc_1 = require("vueuc");
|
|
10
10
|
const vdirs_1 = require("vdirs");
|
|
11
11
|
const vooks_1 = require("vooks");
|
|
12
|
+
const seemly_1 = require("seemly");
|
|
12
13
|
const utils_1 = require("../../select/src/utils");
|
|
13
14
|
const _mixins_1 = require("../../_mixins");
|
|
14
15
|
const _utils_1 = require("../../_utils");
|
|
@@ -17,7 +18,7 @@ const input_1 = require("../../input");
|
|
|
17
18
|
const styles_1 = require("../styles");
|
|
18
19
|
const utils_2 = require("./utils");
|
|
19
20
|
const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
20
|
-
exports.autoCompleteProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { to: _utils_1.useAdjustedTo.propTo, bordered: {
|
|
21
|
+
exports.autoCompleteProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { to: _utils_1.useAdjustedTo.propTo, menuProps: Object, bordered: {
|
|
21
22
|
type: Boolean,
|
|
22
23
|
default: undefined
|
|
23
24
|
}, clearable: {
|
|
@@ -177,7 +178,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
177
178
|
}
|
|
178
179
|
function handleClickOutsideMenu(e) {
|
|
179
180
|
var _a;
|
|
180
|
-
if (!((_a = triggerElRef.value) === null || _a === void 0 ? void 0 : _a.contains(
|
|
181
|
+
if (!((_a = triggerElRef.value) === null || _a === void 0 ? void 0 : _a.contains((0, seemly_1.getPreciseEventTarget)(e)))) {
|
|
181
182
|
canBeActivatedRef.value = false;
|
|
182
183
|
}
|
|
183
184
|
}
|
|
@@ -270,20 +271,25 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
270
271
|
default: () => {
|
|
271
272
|
var _a;
|
|
272
273
|
(_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
274
|
+
if (!this.active)
|
|
275
|
+
return null;
|
|
276
|
+
const { menuProps } = this;
|
|
277
|
+
return (0, vue_1.withDirectives)((0, vue_1.h)(_internal_1.NInternalSelectMenu, Object.assign({}, menuProps, { clsPrefix: mergedClsPrefix, ref: "menuInstRef", theme: this.mergedTheme.peers.InternalSelectMenu, themeOverrides: this.mergedTheme.peerOverrides
|
|
278
|
+
.InternalSelectMenu, "auto-pending": true, class: [
|
|
279
|
+
`${mergedClsPrefix}-auto-complete-menu`,
|
|
280
|
+
this.themeClass,
|
|
281
|
+
menuProps === null || menuProps === void 0 ? void 0 : menuProps.class
|
|
282
|
+
], style: [
|
|
283
|
+
menuProps === null || menuProps === void 0 ? void 0 : menuProps.style,
|
|
284
|
+
this.cssVars
|
|
285
|
+
], treeMate: this.treeMate, multiple: false, renderLabel: this.renderLabel, renderOption: this.renderOption, size: "medium", onToggle: this.handleToggle })), [
|
|
286
|
+
[
|
|
287
|
+
vdirs_1.clickoutside,
|
|
288
|
+
this.handleClickOutsideMenu,
|
|
289
|
+
undefined,
|
|
290
|
+
{ capture: true }
|
|
291
|
+
]
|
|
292
|
+
]);
|
|
287
293
|
}
|
|
288
294
|
}))
|
|
289
295
|
})
|
|
@@ -8,7 +8,7 @@ const _common_1 = __importDefault(require("./_common"));
|
|
|
8
8
|
const common_1 = require("../../_styles/common");
|
|
9
9
|
const self = (vars) => {
|
|
10
10
|
const { fontSize, textColor3, textColor2, borderRadius, buttonColor2Hover, buttonColor2Pressed } = vars;
|
|
11
|
-
return Object.assign(Object.assign({}, _common_1.default), { fontSize
|
|
11
|
+
return Object.assign(Object.assign({}, _common_1.default), { fontSize, itemLineHeight: '1.25', itemTextColor: textColor3, itemTextColorHover: textColor2, itemTextColorPressed: textColor2, itemTextColorActive: textColor2, itemBorderRadius: borderRadius, itemColorHover: buttonColor2Hover, itemColorPressed: buttonColor2Pressed, separatorColor: textColor3 });
|
|
12
12
|
};
|
|
13
13
|
exports.self = self;
|
|
14
14
|
const breadcrumbLight = {
|
|
@@ -11,7 +11,11 @@ const self = (vars) => {
|
|
|
11
11
|
return Object.assign(Object.assign({}, _common_1.default), { heightTiny,
|
|
12
12
|
heightSmall,
|
|
13
13
|
heightMedium,
|
|
14
|
-
heightLarge, borderRadiusTiny: borderRadius, borderRadiusSmall: borderRadius, borderRadiusMedium: borderRadius, borderRadiusLarge: borderRadius, fontSizeTiny
|
|
14
|
+
heightLarge, borderRadiusTiny: borderRadius, borderRadiusSmall: borderRadius, borderRadiusMedium: borderRadius, borderRadiusLarge: borderRadius, fontSizeTiny,
|
|
15
|
+
fontSizeSmall,
|
|
16
|
+
fontSizeMedium,
|
|
17
|
+
fontSizeLarge,
|
|
18
|
+
opacityDisabled,
|
|
15
19
|
// secondary
|
|
16
20
|
colorOpacitySecondary: '0.16', colorOpacitySecondaryHover: '0.22', colorOpacitySecondaryPressed: '0.28', colorSecondary: buttonColor2, colorSecondaryHover: buttonColor2Hover, colorSecondaryPressed: buttonColor2Pressed,
|
|
17
21
|
// tertiary
|
package/lib/card/styles/light.js
CHANGED
|
@@ -8,7 +8,7 @@ const common_1 = require("../../_styles/common");
|
|
|
8
8
|
const _common_1 = __importDefault(require("./_common"));
|
|
9
9
|
const self = (vars) => {
|
|
10
10
|
const { primaryColor, borderRadius, lineHeight, fontSize, cardColor, textColor2, textColor1, dividerColor, fontWeightStrong, closeIconColor, closeIconColorHover, closeIconColorPressed, closeColorHover, closeColorPressed, modalColor, boxShadow1, popoverColor, actionColor } = vars;
|
|
11
|
-
return Object.assign(Object.assign({}, _common_1.default), { lineHeight, color: cardColor, colorModal: modalColor, colorPopover: popoverColor, colorTarget: primaryColor, colorEmbedded: actionColor, textColor: textColor2, titleTextColor: textColor1, borderColor: dividerColor, actionColor
|
|
11
|
+
return Object.assign(Object.assign({}, _common_1.default), { lineHeight, color: cardColor, colorModal: modalColor, colorPopover: popoverColor, colorTarget: primaryColor, colorEmbedded: actionColor, textColor: textColor2, titleTextColor: textColor1, borderColor: dividerColor, actionColor, titleFontWeight: fontWeightStrong, closeColorHover,
|
|
12
12
|
closeColorPressed, closeBorderRadius: borderRadius, closeIconColor,
|
|
13
13
|
closeIconColorHover,
|
|
14
14
|
closeIconColorPressed, fontSizeSmall: fontSize, fontSizeMedium: fontSize, fontSizeLarge: fontSize, fontSizeHuge: fontSize, boxShadow: boxShadow1, borderRadius });
|
|
@@ -31,6 +31,7 @@ const vue_1 = require("vue");
|
|
|
31
31
|
const vueuc_1 = require("vueuc");
|
|
32
32
|
const vooks_1 = require("vooks");
|
|
33
33
|
const evtd_1 = require("evtd");
|
|
34
|
+
const seemly_1 = require("seemly");
|
|
34
35
|
const _mixins_1 = require("../../_mixins");
|
|
35
36
|
const _utils_1 = require("../../_utils");
|
|
36
37
|
const styles_1 = require("../styles");
|
|
@@ -450,8 +451,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
450
451
|
var _a;
|
|
451
452
|
if (globalDragging)
|
|
452
453
|
return;
|
|
453
|
-
if (!((_a = slidesElRef.value) === null || _a === void 0 ? void 0 : _a.contains(
|
|
454
|
+
if (!((_a = slidesElRef.value) === null || _a === void 0 ? void 0 : _a.contains((0, seemly_1.getPreciseEventTarget)(event)))) {
|
|
454
455
|
return;
|
|
456
|
+
}
|
|
455
457
|
globalDragging = true;
|
|
456
458
|
dragging = true;
|
|
457
459
|
isEffectiveDrag = false;
|
|
@@ -653,7 +655,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
653
655
|
return;
|
|
654
656
|
resetAutoplay();
|
|
655
657
|
if (sequenceLayoutRef.value) {
|
|
656
|
-
if (duplicatedableRef.value) {
|
|
658
|
+
if (duplicatedableRef.value && displayTotalViewRef.value > 2) {
|
|
657
659
|
const { value: length } = totalViewRef;
|
|
658
660
|
if (realIndex === length - 2 && lastRealIndex === 1) {
|
|
659
661
|
realIndex = 0;
|
|
@@ -703,9 +705,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
703
705
|
}));
|
|
704
706
|
const caroulseExposedMethod = {
|
|
705
707
|
getCurrentIndex: () => mergedDisplayIndexRef.value,
|
|
706
|
-
to
|
|
707
|
-
prev
|
|
708
|
-
next
|
|
708
|
+
to,
|
|
709
|
+
prev,
|
|
710
|
+
next
|
|
709
711
|
};
|
|
710
712
|
const themeRef = (0, _mixins_1.useTheme)('Carousel', '-carousel', index_cssr_1.default, styles_1.carouselLight, props, mergedClsPrefixRef);
|
|
711
713
|
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
@@ -32,6 +32,10 @@ export declare const cascaderProps: {
|
|
|
32
32
|
readonly type: PropType<boolean | undefined>;
|
|
33
33
|
readonly default: undefined;
|
|
34
34
|
};
|
|
35
|
+
readonly disabledField: {
|
|
36
|
+
readonly type: StringConstructor;
|
|
37
|
+
readonly default: "disabled";
|
|
38
|
+
};
|
|
35
39
|
readonly expandTrigger: {
|
|
36
40
|
readonly type: PropType<ExpandTrigger>;
|
|
37
41
|
readonly default: "click";
|
|
@@ -684,6 +688,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
684
688
|
readonly type: PropType<boolean | undefined>;
|
|
685
689
|
readonly default: undefined;
|
|
686
690
|
};
|
|
691
|
+
readonly disabledField: {
|
|
692
|
+
readonly type: StringConstructor;
|
|
693
|
+
readonly default: "disabled";
|
|
694
|
+
};
|
|
687
695
|
readonly expandTrigger: {
|
|
688
696
|
readonly type: PropType<ExpandTrigger>;
|
|
689
697
|
readonly default: "click";
|
|
@@ -1768,6 +1776,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1768
1776
|
readonly type: PropType<boolean | undefined>;
|
|
1769
1777
|
readonly default: undefined;
|
|
1770
1778
|
};
|
|
1779
|
+
readonly disabledField: {
|
|
1780
|
+
readonly type: StringConstructor;
|
|
1781
|
+
readonly default: "disabled";
|
|
1782
|
+
};
|
|
1771
1783
|
readonly expandTrigger: {
|
|
1772
1784
|
readonly type: PropType<ExpandTrigger>;
|
|
1773
1785
|
readonly default: "click";
|
|
@@ -2413,6 +2425,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2413
2425
|
readonly allowCheckingNotLoaded: boolean;
|
|
2414
2426
|
readonly cascade: boolean;
|
|
2415
2427
|
readonly checkStrategy: CheckStrategy;
|
|
2428
|
+
readonly disabledField: string;
|
|
2416
2429
|
readonly leafOnly: boolean;
|
|
2417
2430
|
readonly showPath: boolean;
|
|
2418
2431
|
}>;
|
|
@@ -30,6 +30,9 @@ exports.cascaderProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props
|
|
|
30
30
|
}, placeholder: String, multiple: Boolean, size: String, filterable: Boolean, disabled: {
|
|
31
31
|
type: Boolean,
|
|
32
32
|
default: undefined
|
|
33
|
+
}, disabledField: {
|
|
34
|
+
type: String,
|
|
35
|
+
default: 'disabled'
|
|
33
36
|
}, expandTrigger: {
|
|
34
37
|
type: String,
|
|
35
38
|
default: 'click'
|
|
@@ -112,8 +115,11 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
112
115
|
loadingKeySetRef.value.delete(key);
|
|
113
116
|
};
|
|
114
117
|
const treeMateRef = (0, vue_1.computed)(() => {
|
|
115
|
-
const { valueField, childrenField } = props;
|
|
118
|
+
const { valueField, childrenField, disabledField } = props;
|
|
116
119
|
return (0, treemate_1.createTreeMate)(props.options, {
|
|
120
|
+
getDisabled(node) {
|
|
121
|
+
return node[disabledField];
|
|
122
|
+
},
|
|
117
123
|
getKey(node) {
|
|
118
124
|
return node[valueField];
|
|
119
125
|
},
|
|
@@ -408,7 +414,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
408
414
|
if (showSelectMenuRef.value)
|
|
409
415
|
return;
|
|
410
416
|
if (mergedShowRef.value) {
|
|
411
|
-
if (!((_a = triggerInstRef.value) === null || _a === void 0 ? void 0 : _a.$el.contains(
|
|
417
|
+
if (!((_a = triggerInstRef.value) === null || _a === void 0 ? void 0 : _a.$el.contains((0, seemly_1.getPreciseEventTarget)(e)))) {
|
|
412
418
|
closeMenu();
|
|
413
419
|
}
|
|
414
420
|
}
|
|
@@ -787,7 +793,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
787
793
|
(0, vue_1.h)(vueuc_1.VBinder, null, {
|
|
788
794
|
default: () => [
|
|
789
795
|
(0, vue_1.h)(vueuc_1.VTarget, null, {
|
|
790
|
-
default: () => ((0, vue_1.h)(_internal_1.NInternalSelection, { onResize: this.handleTriggerResize, ref: "triggerInstRef", status: this.mergedStatus, clsPrefix: mergedClsPrefix, maxTagCount: this.maxTagCount, bordered: this.mergedBordered, size: this.mergedSize, theme: this.mergedTheme.peers.InternalSelection, themeOverrides: this.mergedTheme.peerOverrides.InternalSelection, active: this.mergedShow, pattern: this.pattern, placeholder: this.localizedPlaceholder, selectedOption: this.selectedOption, selectedOptions: this.selectedOptions, multiple: this.multiple, filterable: this.filterable, clearable: this.clearable, disabled: this.mergedDisabled, focused: this.focused, onFocus: this.handleTriggerFocus, onBlur: this.handleTriggerBlur, onClick: this.handleTriggerClick, onClear: this.handleClear, onDeleteOption: this.handleDeleteOption, onPatternInput: this.handlePatternInput, onKeydown: this.handleKeydown }
|
|
796
|
+
default: () => ((0, vue_1.h)(_internal_1.NInternalSelection, { onResize: this.handleTriggerResize, ref: "triggerInstRef", status: this.mergedStatus, clsPrefix: mergedClsPrefix, maxTagCount: this.maxTagCount, bordered: this.mergedBordered, size: this.mergedSize, theme: this.mergedTheme.peers.InternalSelection, themeOverrides: this.mergedTheme.peerOverrides.InternalSelection, active: this.mergedShow, pattern: this.pattern, placeholder: this.localizedPlaceholder, selectedOption: this.selectedOption, selectedOptions: this.selectedOptions, multiple: this.multiple, filterable: this.filterable, clearable: this.clearable, disabled: this.mergedDisabled, focused: this.focused, onFocus: this.handleTriggerFocus, onBlur: this.handleTriggerBlur, onClick: this.handleTriggerClick, onClear: this.handleClear, onDeleteOption: this.handleDeleteOption, onPatternInput: this.handlePatternInput, onKeydown: this.handleKeydown }, {
|
|
797
|
+
arrow: () => { var _a, _b; return (_b = (_a = this.$slots).arrow) === null || _b === void 0 ? void 0 : _b.call(_a); }
|
|
798
|
+
}))
|
|
791
799
|
}),
|
|
792
800
|
(0, vue_1.h)(vueuc_1.VFollower, { key: "cascaderMenu", ref: "cascaderMenuFollowerRef", show: this.mergedShow && !this.showSelectMenu, containerClass: this.namespace, placement: this.placement, width: !this.options.length ? 'target' : undefined, teleportDisabled: this.adjustedTo === _utils_1.useAdjustedTo.tdkey, to: this.adjustedTo }, {
|
|
793
801
|
default: () => {
|
|
@@ -148,9 +148,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
148
148
|
checkedCountRef: checkedCount,
|
|
149
149
|
maxRef: (0, vue_1.toRef)(props, 'max'),
|
|
150
150
|
minRef: (0, vue_1.toRef)(props, 'min'),
|
|
151
|
-
valueSetRef
|
|
151
|
+
valueSetRef,
|
|
152
152
|
disabledRef: mergedDisabledRef,
|
|
153
|
-
mergedSizeRef
|
|
153
|
+
mergedSizeRef,
|
|
154
154
|
toggleCheckbox
|
|
155
155
|
});
|
|
156
156
|
return {
|
|
@@ -11,7 +11,7 @@ const self = (vars) => {
|
|
|
11
11
|
const { baseColor, inputColorDisabled, cardColor, modalColor, popoverColor, textColorDisabled, borderColor, primaryColor, textColor2, fontSizeSmall, fontSizeMedium, fontSizeLarge, borderRadiusSmall, lineHeight } = vars;
|
|
12
12
|
return Object.assign(Object.assign({}, _common_1.default), { labelLineHeight: lineHeight, fontSizeSmall,
|
|
13
13
|
fontSizeMedium,
|
|
14
|
-
fontSizeLarge, borderRadius: borderRadiusSmall, color: baseColor, colorChecked: primaryColor, colorDisabled: inputColorDisabled, colorDisabledChecked: inputColorDisabled, colorTableHeader: cardColor, colorTableHeaderModal: modalColor, colorTableHeaderPopover: popoverColor, checkMarkColor: baseColor, checkMarkColorDisabled: textColorDisabled, checkMarkColorDisabledChecked: textColorDisabled, border: `1px solid ${borderColor}`, borderDisabled: `1px solid ${borderColor}`, borderDisabledChecked: `1px solid ${borderColor}`, borderChecked: `1px solid ${primaryColor}`, borderFocus: `1px solid ${primaryColor}`, boxShadowFocus: `0 0 0 2px ${(0, seemly_1.changeColor)(primaryColor, { alpha: 0.3 })}`, textColor: textColor2, textColorDisabled
|
|
14
|
+
fontSizeLarge, borderRadius: borderRadiusSmall, color: baseColor, colorChecked: primaryColor, colorDisabled: inputColorDisabled, colorDisabledChecked: inputColorDisabled, colorTableHeader: cardColor, colorTableHeaderModal: modalColor, colorTableHeaderPopover: popoverColor, checkMarkColor: baseColor, checkMarkColorDisabled: textColorDisabled, checkMarkColorDisabledChecked: textColorDisabled, border: `1px solid ${borderColor}`, borderDisabled: `1px solid ${borderColor}`, borderDisabledChecked: `1px solid ${borderColor}`, borderChecked: `1px solid ${primaryColor}`, borderFocus: `1px solid ${primaryColor}`, boxShadowFocus: `0 0 0 2px ${(0, seemly_1.changeColor)(primaryColor, { alpha: 0.3 })}`, textColor: textColor2, textColorDisabled });
|
|
15
15
|
};
|
|
16
16
|
exports.self = self;
|
|
17
17
|
const checkboxLight = {
|