naive-ui 2.18.1 → 2.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/_internal/clear/src/Clear.d.ts +1 -4
- package/es/_internal/clear/src/Clear.js +1 -4
- package/es/_internal/icons/Checkmark.js +3 -2
- package/es/_internal/select-menu/src/SelectMenu.d.ts +173 -0
- package/es/_internal/select-menu/src/SelectMenu.js +9 -6
- package/es/_internal/select-menu/src/SelectOption.js +2 -1
- package/es/_internal/select-menu/src/styles/index.cssr.js +32 -28
- package/es/_internal/select-menu/styles/light.d.ts +2 -0
- package/es/_internal/select-menu/styles/light.js +1 -1
- package/es/_internal/selection/src/Selection.d.ts +64 -56
- package/es/_internal/selection/src/Selection.js +34 -14
- package/es/_internal/selection/src/styles/index.cssr.js +16 -14
- package/es/_internal/selection/styles/_common.d.ts +1 -8
- package/es/_internal/selection/styles/_common.js +2 -9
- package/es/_internal/selection/styles/dark.js +10 -2
- package/es/_internal/selection/styles/light.d.ts +18 -16
- package/es/_internal/selection/styles/light.js +10 -2
- package/es/_mixins/use-rtl.js +1 -1
- package/es/_styles/common/light.js +1 -1
- package/es/_utils/naive/mutable.d.ts +2 -2
- package/es/alert/src/Alert.js +15 -16
- package/es/anchor/src/AnchorAdapter.d.ts +13 -8
- package/es/anchor/src/AnchorAdapter.js +3 -5
- package/es/anchor/src/BaseAnchor.d.ts +14 -1
- package/es/anchor/src/BaseAnchor.js +20 -7
- package/es/anchor/src/Link.js +5 -5
- package/es/anchor/src/styles/index.cssr.js +25 -16
- package/es/auto-complete/index.d.ts +1 -0
- package/es/auto-complete/src/AutoComplete.d.ts +10 -0
- package/es/auto-complete/src/interface.d.ts +1 -1
- package/es/auto-complete/styles/light.d.ts +1 -0
- package/es/badge/src/styles/index.cssr.js +1 -0
- package/es/card/src/Card.d.ts +17 -1
- package/es/card/src/Card.js +3 -2
- package/es/card/styles/dark.js +6 -1
- package/es/card/styles/light.d.ts +1 -0
- package/es/card/styles/light.js +2 -2
- package/es/cascader/src/Cascader.d.ts +100 -80
- package/es/cascader/src/Cascader.js +28 -19
- package/es/cascader/src/CascaderMenu.js +17 -15
- package/es/cascader/src/CascaderOption.d.ts +10 -8
- package/es/cascader/src/CascaderSelectMenu.d.ts +10 -8
- package/es/cascader/src/CascaderSubmenu.d.ts +10 -8
- package/es/cascader/src/interface.d.ts +2 -2
- package/es/cascader/src/styles/index.cssr.js +6 -1
- package/es/cascader/styles/light.d.ts +10 -8
- package/es/checkbox/src/Checkbox.d.ts +1 -0
- package/es/checkbox/src/Checkbox.js +5 -3
- package/es/checkbox/src/CheckboxGroup.js +1 -1
- package/es/composables/use-theme-vars.js +5 -5
- package/es/config-provider/src/internal-interface.d.ts +2 -0
- package/es/data-table/src/DataTable.d.ts +110 -88
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +20 -16
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +20 -16
- package/es/data-table/src/TableParts/Body.d.ts +20 -16
- package/es/data-table/src/TableParts/Cell.d.ts +40 -32
- package/es/data-table/src/TableParts/Header.d.ts +20 -16
- package/es/data-table/styles/light.d.ts +10 -8
- package/es/date-picker/src/DatePicker.d.ts +8 -3
- package/es/date-picker/src/DatePicker.js +2 -2
- package/es/date-picker/src/panel/date.d.ts +3 -3
- package/es/date-picker/src/panel/date.js +10 -1
- package/es/date-picker/src/panel/daterange.js +10 -1
- package/es/date-picker/src/panel/datetimerange.js +10 -1
- package/es/descriptions/src/Descriptions.d.ts +4 -17
- package/es/descriptions/src/Descriptions.js +2 -8
- package/es/dialog/src/DialogProvider.d.ts +20 -20
- package/es/drawer/src/styles/index.cssr.js +2 -0
- package/es/dropdown/src/Dropdown.d.ts +9 -23
- package/es/dynamic-tags/src/DynamicTags.js +2 -1
- package/es/empty/src/Empty.d.ts +6 -1
- package/es/empty/src/Empty.js +16 -4
- package/es/form/src/FormItemGridItem.d.ts +1 -1
- package/es/form/src/FormItemGridItem.js +2 -2
- package/es/global-style/src/GlobalStyle.js +13 -3
- package/es/grid/src/GridItem.d.ts +2 -2
- package/es/grid/src/GridItem.js +1 -1
- package/es/input-number/src/InputNumber.d.ts +8 -3
- package/es/input-number/src/InputNumber.js +4 -4
- package/es/jest-setup.js +3 -1
- package/es/layout/src/Layout.d.ts +18 -4
- package/es/layout/src/LayoutContent.d.ts +9 -2
- package/es/layout/src/LayoutFooter.d.ts +9 -0
- package/es/layout/src/LayoutHeader.d.ts +6 -0
- package/es/layout/src/LayoutSider.d.ts +11 -0
- package/es/layout/src/LayoutSider.js +4 -2
- package/es/layout/src/ToggleButton.js +7 -3
- package/es/layout/src/styles/layout-sider.cssr.js +31 -15
- package/es/layout/styles/dark.js +3 -2
- package/es/layout/styles/light.d.ts +2 -0
- package/es/layout/styles/light.js +3 -2
- package/es/locales/common/enUS.js +1 -1
- package/es/locales/common/ruRU.js +1 -1
- package/es/locales/common/ukUA.d.ts +3 -0
- package/es/locales/common/ukUA.js +92 -0
- package/es/locales/common/zhCN.js +1 -1
- package/es/locales/date/ukUA.d.ts +3 -0
- package/es/locales/date/ukUA.js +6 -0
- package/es/locales/index.d.ts +2 -0
- package/es/locales/index.js +2 -0
- 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 +6 -1
- package/es/menu/src/Menu.js +10 -1
- package/es/menu/src/MenuOption.d.ts +3 -1
- package/es/menu/src/MenuOptionContent.d.ts +3 -1
- package/es/menu/src/Submenu.d.ts +3 -1
- package/es/modal/src/BodyWrapper.d.ts +5 -0
- package/es/modal/src/Modal.d.ts +36 -55
- package/es/modal/src/Modal.js +18 -39
- package/es/modal/src/presetProps.d.ts +2 -1
- package/es/modal/styles/light.d.ts +1 -0
- package/es/notification/src/Notification.d.ts +1 -1
- package/es/notification/src/NotificationEnvironment.d.ts +1 -1
- package/es/notification/src/NotificationProvider.d.ts +16 -16
- package/es/page-header/src/PageHeader.d.ts +1 -0
- package/es/page-header/src/PageHeader.js +8 -2
- package/es/page-header/src/styles/rtl.cssr.d.ts +2 -0
- package/es/page-header/src/styles/rtl.cssr.js +19 -0
- package/es/page-header/styles/index.d.ts +1 -0
- package/es/page-header/styles/index.js +1 -0
- package/es/page-header/styles/rtl.d.ts +5 -0
- package/es/page-header/styles/rtl.js +5 -0
- package/es/pagination/src/Pagination.d.ts +111 -100
- package/es/pagination/styles/light.d.ts +10 -8
- package/es/popconfirm/src/Popconfirm.d.ts +8 -22
- package/es/popover/src/Popover.d.ts +12 -32
- package/es/popover/src/Popover.js +25 -18
- package/es/popover/src/PopoverBody.d.ts +2 -2
- package/es/popover/src/PopoverBody.js +4 -2
- package/es/popselect/src/Popselect.d.ts +18 -22
- package/es/popselect/src/PopselectPanel.d.ts +1 -0
- package/es/popselect/src/PopselectPanel.js +38 -19
- package/es/popselect/styles/light.d.ts +1 -0
- package/es/select/src/Select.d.ts +111 -83
- package/es/select/src/Select.js +55 -56
- package/es/select/src/interface.d.ts +2 -2
- package/es/select/styles/light.d.ts +10 -8
- package/es/spin/src/Spin.d.ts +34 -25
- package/es/spin/src/Spin.js +27 -20
- package/es/spin/src/styles/index.cssr.js +23 -9
- package/es/spin/styles/light.d.ts +2 -0
- package/es/spin/styles/light.js +3 -1
- package/es/styles.d.ts +1 -0
- package/es/styles.js +1 -0
- package/es/tabs/src/Tab.d.ts +1 -1
- package/es/tabs/src/Tab.js +4 -6
- package/es/tabs/src/Tabs.d.ts +133 -42
- package/es/tabs/src/Tabs.js +37 -38
- package/es/tabs/src/interface.d.ts +2 -1
- package/es/tabs/src/styles/index.cssr.js +34 -10
- package/es/tabs/styles/_common.d.ts +6 -0
- package/es/tabs/styles/_common.js +6 -0
- package/es/tabs/styles/dark.js +7 -1
- package/es/tabs/styles/light.d.ts +13 -0
- package/es/tabs/styles/light.js +3 -3
- package/es/tag/src/styles/index.cssr.js +1 -1
- package/es/time/src/Time.d.ts +14 -22
- package/es/time/src/Time.js +32 -18
- package/es/time-picker/src/TimePicker.d.ts +5 -0
- package/es/time-picker/src/TimePicker.js +2 -2
- package/es/tooltip/src/Tooltip.d.ts +8 -22
- package/es/transfer/src/TransferList.d.ts +1 -1
- package/es/tree/src/Tree.d.ts +25 -10
- package/es/tree/src/Tree.js +34 -11
- package/es/tree/src/TreeNode.js +5 -2
- package/es/tree/src/interface.d.ts +2 -2
- package/es/tree-select/src/TreeSelect.d.ts +103 -81
- package/es/tree-select/src/TreeSelect.js +36 -40
- package/es/tree-select/src/interface.d.ts +2 -2
- package/es/tree-select/styles/light.d.ts +9 -8
- package/es/typography/src/blockquote.d.ts +2 -8
- package/es/typography/src/blockquote.js +1 -4
- package/es/typography/src/ol.d.ts +2 -8
- package/es/typography/src/ol.js +1 -4
- package/es/typography/src/p.d.ts +2 -2
- package/es/typography/src/p.js +1 -1
- package/es/typography/src/text.d.ts +14 -58
- package/es/typography/src/text.js +2 -23
- package/es/typography/src/ul.d.ts +2 -8
- package/es/typography/src/ul.js +1 -4
- package/es/upload/index.d.ts +2 -0
- package/es/upload/index.js +2 -0
- package/es/upload/src/Upload.d.ts +16 -68
- package/es/upload/src/Upload.js +71 -98
- package/es/upload/src/UploadDragger.js +7 -1
- package/es/upload/src/UploadFileList.d.ts +2 -0
- package/es/upload/src/UploadFileList.js +34 -0
- package/es/upload/src/UploadProgress.d.ts +0 -7
- package/es/upload/src/UploadProgress.js +1 -5
- package/es/upload/src/UploadTrigger.d.ts +12 -0
- package/es/upload/src/UploadTrigger.js +63 -0
- package/es/upload/src/interface.d.ts +13 -2
- package/es/upload/src/styles/index.cssr.js +40 -32
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/clear/src/Clear.d.ts +1 -4
- package/lib/_internal/clear/src/Clear.js +1 -4
- package/lib/_internal/icons/Checkmark.js +3 -2
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +173 -0
- package/lib/_internal/select-menu/src/SelectMenu.js +9 -6
- package/lib/_internal/select-menu/src/SelectOption.js +2 -1
- package/lib/_internal/select-menu/src/styles/index.cssr.js +32 -28
- package/lib/_internal/select-menu/styles/light.d.ts +2 -0
- package/lib/_internal/select-menu/styles/light.js +1 -1
- package/lib/_internal/selection/src/Selection.d.ts +64 -56
- package/lib/_internal/selection/src/Selection.js +34 -14
- package/lib/_internal/selection/src/styles/index.cssr.js +16 -14
- package/lib/_internal/selection/styles/_common.d.ts +1 -8
- package/lib/_internal/selection/styles/_common.js +2 -9
- package/lib/_internal/selection/styles/dark.js +10 -2
- package/lib/_internal/selection/styles/light.d.ts +18 -16
- package/lib/_internal/selection/styles/light.js +10 -2
- package/lib/_mixins/use-rtl.js +1 -1
- package/lib/_styles/common/light.js +1 -1
- package/lib/_utils/naive/mutable.d.ts +2 -2
- package/lib/alert/src/Alert.js +15 -16
- package/lib/anchor/src/AnchorAdapter.d.ts +13 -8
- package/lib/anchor/src/AnchorAdapter.js +3 -5
- package/lib/anchor/src/BaseAnchor.d.ts +14 -1
- package/lib/anchor/src/BaseAnchor.js +19 -6
- package/lib/anchor/src/Link.js +5 -5
- package/lib/anchor/src/styles/index.cssr.js +25 -16
- package/lib/auto-complete/index.d.ts +1 -0
- package/lib/auto-complete/src/AutoComplete.d.ts +10 -0
- package/lib/auto-complete/src/interface.d.ts +1 -1
- package/lib/auto-complete/styles/light.d.ts +1 -0
- package/lib/badge/src/styles/index.cssr.js +1 -0
- package/lib/card/src/Card.d.ts +17 -1
- package/lib/card/src/Card.js +3 -2
- package/lib/card/styles/dark.js +6 -1
- package/lib/card/styles/light.d.ts +1 -0
- package/lib/card/styles/light.js +2 -2
- package/lib/cascader/src/Cascader.d.ts +100 -80
- package/lib/cascader/src/Cascader.js +28 -19
- package/lib/cascader/src/CascaderMenu.js +16 -14
- package/lib/cascader/src/CascaderOption.d.ts +10 -8
- package/lib/cascader/src/CascaderSelectMenu.d.ts +10 -8
- package/lib/cascader/src/CascaderSubmenu.d.ts +10 -8
- package/lib/cascader/src/interface.d.ts +2 -2
- package/lib/cascader/src/styles/index.cssr.js +6 -1
- package/lib/cascader/styles/light.d.ts +10 -8
- package/lib/checkbox/src/Checkbox.d.ts +1 -0
- package/lib/checkbox/src/Checkbox.js +5 -3
- package/lib/checkbox/src/CheckboxGroup.js +1 -1
- package/lib/composables/use-theme-vars.js +5 -5
- package/lib/config-provider/src/internal-interface.d.ts +2 -0
- package/lib/data-table/src/DataTable.d.ts +110 -88
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +20 -16
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +20 -16
- package/lib/data-table/src/TableParts/Body.d.ts +20 -16
- package/lib/data-table/src/TableParts/Cell.d.ts +40 -32
- package/lib/data-table/src/TableParts/Header.d.ts +20 -16
- package/lib/data-table/styles/light.d.ts +10 -8
- package/lib/date-picker/src/DatePicker.d.ts +8 -3
- package/lib/date-picker/src/DatePicker.js +2 -2
- package/lib/date-picker/src/panel/date.d.ts +3 -3
- package/lib/date-picker/src/panel/date.js +9 -0
- package/lib/date-picker/src/panel/daterange.js +9 -0
- package/lib/date-picker/src/panel/datetimerange.js +9 -0
- package/lib/descriptions/src/Descriptions.d.ts +4 -17
- package/lib/descriptions/src/Descriptions.js +2 -8
- package/lib/dialog/src/DialogProvider.d.ts +20 -20
- package/lib/drawer/src/styles/index.cssr.js +2 -0
- package/lib/dropdown/src/Dropdown.d.ts +9 -23
- package/lib/dynamic-tags/src/DynamicTags.js +2 -1
- package/lib/empty/src/Empty.d.ts +6 -1
- package/lib/empty/src/Empty.js +15 -3
- package/lib/form/src/FormItemGridItem.d.ts +1 -1
- package/lib/form/src/FormItemGridItem.js +2 -2
- package/lib/global-style/src/GlobalStyle.js +13 -3
- package/lib/grid/src/GridItem.d.ts +2 -2
- package/lib/grid/src/GridItem.js +1 -1
- package/lib/input-number/src/InputNumber.d.ts +8 -3
- package/lib/input-number/src/InputNumber.js +4 -4
- package/lib/jest-setup.js +3 -1
- package/lib/layout/src/Layout.d.ts +18 -4
- package/lib/layout/src/LayoutContent.d.ts +9 -2
- package/lib/layout/src/LayoutFooter.d.ts +9 -0
- package/lib/layout/src/LayoutHeader.d.ts +6 -0
- package/lib/layout/src/LayoutSider.d.ts +11 -0
- package/lib/layout/src/LayoutSider.js +4 -2
- package/lib/layout/src/ToggleButton.js +7 -3
- package/lib/layout/src/styles/layout-sider.cssr.js +31 -15
- package/lib/layout/styles/dark.js +3 -2
- package/lib/layout/styles/light.d.ts +2 -0
- package/lib/layout/styles/light.js +3 -2
- package/lib/locales/common/enUS.js +1 -1
- package/lib/locales/common/ruRU.js +1 -1
- package/lib/locales/common/ukUA.d.ts +3 -0
- package/lib/locales/common/ukUA.js +94 -0
- package/lib/locales/common/zhCN.js +1 -1
- package/lib/locales/date/ukUA.d.ts +3 -0
- package/lib/locales/date/ukUA.js +8 -0
- package/lib/locales/index.d.ts +2 -0
- package/lib/locales/index.js +5 -1
- 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 +6 -1
- package/lib/menu/src/Menu.js +10 -1
- package/lib/menu/src/MenuOption.d.ts +3 -1
- package/lib/menu/src/MenuOptionContent.d.ts +3 -1
- package/lib/menu/src/Submenu.d.ts +3 -1
- package/lib/modal/src/BodyWrapper.d.ts +5 -0
- package/lib/modal/src/Modal.d.ts +36 -55
- package/lib/modal/src/Modal.js +17 -38
- package/lib/modal/src/presetProps.d.ts +2 -1
- package/lib/modal/styles/light.d.ts +1 -0
- package/lib/notification/src/Notification.d.ts +1 -1
- package/lib/notification/src/NotificationEnvironment.d.ts +1 -1
- package/lib/notification/src/NotificationProvider.d.ts +16 -16
- package/lib/page-header/src/PageHeader.d.ts +1 -0
- package/lib/page-header/src/PageHeader.js +8 -2
- package/lib/page-header/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/page-header/src/styles/rtl.cssr.js +26 -0
- package/lib/page-header/styles/index.d.ts +1 -0
- package/lib/page-header/styles/index.js +3 -1
- package/lib/page-header/styles/rtl.d.ts +5 -0
- package/lib/page-header/styles/rtl.js +7 -0
- package/lib/pagination/src/Pagination.d.ts +111 -100
- package/lib/pagination/styles/light.d.ts +10 -8
- package/lib/popconfirm/src/Popconfirm.d.ts +8 -22
- package/lib/popover/src/Popover.d.ts +12 -32
- package/lib/popover/src/Popover.js +23 -16
- package/lib/popover/src/PopoverBody.d.ts +2 -2
- package/lib/popover/src/PopoverBody.js +4 -2
- package/lib/popselect/src/Popselect.d.ts +18 -22
- package/lib/popselect/src/PopselectPanel.d.ts +1 -0
- package/lib/popselect/src/PopselectPanel.js +38 -19
- package/lib/popselect/styles/light.d.ts +1 -0
- package/lib/select/src/Select.d.ts +111 -83
- package/lib/select/src/Select.js +55 -56
- package/lib/select/src/interface.d.ts +2 -2
- package/lib/select/styles/light.d.ts +10 -8
- package/lib/spin/src/Spin.d.ts +34 -25
- package/lib/spin/src/Spin.js +25 -18
- package/lib/spin/src/styles/index.cssr.js +23 -9
- package/lib/spin/styles/light.d.ts +2 -0
- package/lib/spin/styles/light.js +3 -1
- package/lib/styles.d.ts +1 -0
- package/lib/styles.js +63 -61
- package/lib/tabs/src/Tab.d.ts +1 -1
- package/lib/tabs/src/Tab.js +4 -6
- package/lib/tabs/src/Tabs.d.ts +133 -42
- package/lib/tabs/src/Tabs.js +36 -37
- package/lib/tabs/src/interface.d.ts +2 -1
- package/lib/tabs/src/styles/index.cssr.js +34 -10
- package/lib/tabs/styles/_common.d.ts +6 -0
- package/lib/tabs/styles/_common.js +6 -0
- package/lib/tabs/styles/dark.js +7 -1
- package/lib/tabs/styles/light.d.ts +13 -0
- package/lib/tabs/styles/light.js +3 -3
- package/lib/tag/src/styles/index.cssr.js +1 -1
- package/lib/time/src/Time.d.ts +14 -22
- package/lib/time/src/Time.js +31 -17
- package/lib/time-picker/src/TimePicker.d.ts +5 -0
- package/lib/time-picker/src/TimePicker.js +2 -2
- package/lib/tooltip/src/Tooltip.d.ts +8 -22
- package/lib/transfer/src/TransferList.d.ts +1 -1
- package/lib/tree/src/Tree.d.ts +25 -10
- package/lib/tree/src/Tree.js +34 -11
- package/lib/tree/src/TreeNode.js +5 -2
- package/lib/tree/src/interface.d.ts +2 -2
- package/lib/tree-select/src/TreeSelect.d.ts +103 -81
- package/lib/tree-select/src/TreeSelect.js +36 -40
- package/lib/tree-select/src/interface.d.ts +2 -2
- package/lib/tree-select/styles/light.d.ts +9 -8
- package/lib/typography/src/blockquote.d.ts +2 -8
- package/lib/typography/src/blockquote.js +1 -4
- package/lib/typography/src/ol.d.ts +2 -8
- package/lib/typography/src/ol.js +1 -4
- package/lib/typography/src/p.d.ts +2 -2
- package/lib/typography/src/p.js +1 -1
- package/lib/typography/src/text.d.ts +14 -58
- package/lib/typography/src/text.js +2 -23
- package/lib/typography/src/ul.d.ts +2 -8
- package/lib/typography/src/ul.js +1 -4
- package/lib/upload/index.d.ts +2 -0
- package/lib/upload/index.js +5 -1
- package/lib/upload/src/Upload.d.ts +16 -68
- package/lib/upload/src/Upload.js +68 -95
- package/lib/upload/src/UploadDragger.js +7 -1
- package/lib/upload/src/UploadFileList.d.ts +2 -0
- package/lib/upload/src/UploadFileList.js +36 -0
- package/lib/upload/src/UploadProgress.d.ts +0 -7
- package/lib/upload/src/UploadProgress.js +1 -5
- package/lib/upload/src/UploadTrigger.d.ts +12 -0
- package/lib/upload/src/UploadTrigger.js +65 -0
- package/lib/upload/src/interface.d.ts +13 -2
- package/lib/upload/src/styles/index.cssr.js +40 -32
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +9 -7
- package/web-types.json +239 -13
|
@@ -18,13 +18,41 @@ import { c, cM, cB, cE, cNotM } from '../../../_utils/cssr'; // vars:
|
|
|
18
18
|
// --tab-gap
|
|
19
19
|
// --tab-padding
|
|
20
20
|
// --pane-padding
|
|
21
|
+
// --color-segment
|
|
22
|
+
// --font-weight-strong
|
|
23
|
+
// --tab-color-segment
|
|
21
24
|
|
|
22
25
|
export default cB('tabs', `
|
|
23
26
|
width: 100%;
|
|
24
27
|
transition:
|
|
25
28
|
background-color .3s var(--bezier),
|
|
26
29
|
border-color .3s var(--bezier);
|
|
27
|
-
`, [
|
|
30
|
+
`, [cB('tabs-rail', `
|
|
31
|
+
padding: 3px;
|
|
32
|
+
border-radius: var(--tab-border-radius);
|
|
33
|
+
width: 100%;
|
|
34
|
+
background-color: var(--color-segment);
|
|
35
|
+
transition: background-color .3s var(--bezier);
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
`, [cB('tabs-tab-wrapper', `
|
|
39
|
+
flex-basis: 0;
|
|
40
|
+
flex-grow: 1;
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
`, [cB('tabs-tab', `
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
border-radius: var(--tab-border-radius);
|
|
47
|
+
width: 100%;
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
`, [cM('active', `
|
|
52
|
+
font-weight: var(--font-weight-strong);
|
|
53
|
+
background-color: var(--tab-color-segment);
|
|
54
|
+
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08);
|
|
55
|
+
`)])])]), cM('flex', [cB('tabs-nav', {
|
|
28
56
|
width: '100%'
|
|
29
57
|
}, [cB('tabs-wrapper', {
|
|
30
58
|
width: '100%'
|
|
@@ -46,24 +74,19 @@ export default cB('tabs', `
|
|
|
46
74
|
box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12);
|
|
47
75
|
`)]), cM('shadow-after', [c('&::after', `
|
|
48
76
|
box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12);
|
|
49
|
-
`)]), c('&::before', `
|
|
77
|
+
`)]), c('&::before, &::after', `
|
|
50
78
|
transition: box-shadow .3s var(--bezier);
|
|
51
79
|
pointer-events: none;
|
|
52
80
|
content: "";
|
|
53
81
|
position: absolute;
|
|
54
|
-
left: 0;
|
|
55
82
|
top: 0;
|
|
56
83
|
bottom: 0;
|
|
57
84
|
width: 20px;
|
|
85
|
+
z-index: 1;
|
|
86
|
+
`), c('&::before', `
|
|
87
|
+
left: 0;
|
|
58
88
|
`), c('&::after', `
|
|
59
|
-
transition: box-shadow .3s var(--bezier);
|
|
60
|
-
pointer-events: none;
|
|
61
|
-
content: "";
|
|
62
|
-
position: absolute;
|
|
63
89
|
right: 0;
|
|
64
|
-
top: 0;
|
|
65
|
-
bottom: 0;
|
|
66
|
-
width: 20px;
|
|
67
90
|
`)]), cB('tabs-nav-scroll-content', `
|
|
68
91
|
display: flex;
|
|
69
92
|
position: relative;
|
|
@@ -87,6 +110,7 @@ export default cB('tabs', `
|
|
|
87
110
|
background-clip: padding-box;
|
|
88
111
|
padding: var(--tab-padding);
|
|
89
112
|
transition:
|
|
113
|
+
box-shadow .3s var(--bezier),
|
|
90
114
|
color .3s var(--bezier),
|
|
91
115
|
background-color .3s var(--bezier),
|
|
92
116
|
border-color .3s var(--bezier);
|
|
@@ -20,6 +20,12 @@ declare const _default: {
|
|
|
20
20
|
tabPaddingSmallCard: string;
|
|
21
21
|
tabPaddingMediumCard: string;
|
|
22
22
|
tabPaddingLargeCard: string;
|
|
23
|
+
tabPaddingSmallSegment: string;
|
|
24
|
+
tabPaddingMediumSegment: string;
|
|
25
|
+
tabPaddingLargeSegment: string;
|
|
26
|
+
tabGapSmallSegment: string;
|
|
27
|
+
tabGapMediumSegment: string;
|
|
28
|
+
tabGapLargeSegment: string;
|
|
23
29
|
panePaddingSmall: string;
|
|
24
30
|
panePaddingMedium: string;
|
|
25
31
|
panePaddingLarge: string;
|
|
@@ -20,6 +20,12 @@ export default {
|
|
|
20
20
|
tabPaddingSmallCard: '6px 10px',
|
|
21
21
|
tabPaddingMediumCard: '8px 12px',
|
|
22
22
|
tabPaddingLargeCard: '8px 16px',
|
|
23
|
+
tabPaddingSmallSegment: '4px 0',
|
|
24
|
+
tabPaddingMediumSegment: '6px 0',
|
|
25
|
+
tabPaddingLargeSegment: '8px 0',
|
|
26
|
+
tabGapSmallSegment: '0',
|
|
27
|
+
tabGapMediumSegment: '0',
|
|
28
|
+
tabGapLargeSegment: '0',
|
|
23
29
|
panePaddingSmall: '8px 0 0 0',
|
|
24
30
|
panePaddingMedium: '12px 0 0 0',
|
|
25
31
|
panePaddingLarge: '16px 0 0 0'
|
package/es/tabs/styles/dark.js
CHANGED
|
@@ -3,6 +3,12 @@ import { self } from './light';
|
|
|
3
3
|
const tabsDark = {
|
|
4
4
|
name: 'Tabs',
|
|
5
5
|
common: commonDark,
|
|
6
|
-
self
|
|
6
|
+
self(vars) {
|
|
7
|
+
const commonSelf = self(vars);
|
|
8
|
+
const { inputColor } = vars;
|
|
9
|
+
commonSelf.colorSegment = inputColor;
|
|
10
|
+
commonSelf.tabColorSegment = inputColor;
|
|
11
|
+
return commonSelf;
|
|
12
|
+
}
|
|
7
13
|
};
|
|
8
14
|
export default tabsDark;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import type { ThemeCommonVars } from '../../_styles/common';
|
|
2
2
|
import { Theme } from '../../_mixins';
|
|
3
3
|
export declare const self: (vars: ThemeCommonVars) => {
|
|
4
|
+
colorSegment: string;
|
|
4
5
|
tabFontSizeCard: string;
|
|
5
6
|
tabTextColorLine: string;
|
|
6
7
|
tabTextColorActiveLine: string;
|
|
7
8
|
tabTextColorHoverLine: string;
|
|
8
9
|
tabTextColorDisabledLine: string;
|
|
10
|
+
tabTextColorSegment: string;
|
|
11
|
+
tabTextColorActiveSegment: string;
|
|
12
|
+
tabTextColorHoverSegment: string;
|
|
13
|
+
tabTextColorDisabledSegment: string;
|
|
9
14
|
tabTextColorBar: string;
|
|
10
15
|
tabTextColorActiveBar: string;
|
|
11
16
|
tabTextColorHoverBar: string;
|
|
@@ -19,11 +24,13 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
19
24
|
closeColorHover: string;
|
|
20
25
|
closeColorPressed: string;
|
|
21
26
|
tabColor: string;
|
|
27
|
+
tabColorSegment: string;
|
|
22
28
|
tabBorderColor: string;
|
|
23
29
|
tabFontWeightActive: string;
|
|
24
30
|
tabFontWeight: string;
|
|
25
31
|
tabBorderRadius: string;
|
|
26
32
|
paneTextColor: string;
|
|
33
|
+
fontWeightStrong: string;
|
|
27
34
|
tabFontSizeSmall: string;
|
|
28
35
|
tabFontSizeMedium: string;
|
|
29
36
|
tabFontSizeLarge: string;
|
|
@@ -45,6 +52,12 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
45
52
|
tabPaddingSmallCard: string;
|
|
46
53
|
tabPaddingMediumCard: string;
|
|
47
54
|
tabPaddingLargeCard: string;
|
|
55
|
+
tabPaddingSmallSegment: string;
|
|
56
|
+
tabPaddingMediumSegment: string;
|
|
57
|
+
tabPaddingLargeSegment: string;
|
|
58
|
+
tabGapSmallSegment: string;
|
|
59
|
+
tabGapMediumSegment: string;
|
|
60
|
+
tabGapLargeSegment: string;
|
|
48
61
|
panePaddingSmall: string;
|
|
49
62
|
panePaddingMedium: string;
|
|
50
63
|
panePaddingLarge: string;
|
package/es/tabs/styles/light.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import sizeVariables from './_common';
|
|
2
2
|
import { commonLight } from '../../_styles/common';
|
|
3
3
|
export const self = (vars) => {
|
|
4
|
-
const { textColor2, primaryColor, textColorDisabled, closeColor, closeColorHover, closeColorPressed, tabColor, dividerColor, fontWeight, textColor1, borderRadius, fontSize } = vars;
|
|
5
|
-
return Object.assign(Object.assign({}, sizeVariables), { tabFontSizeCard: fontSize, tabTextColorLine: textColor1, tabTextColorActiveLine: primaryColor, tabTextColorHoverLine: primaryColor, tabTextColorDisabledLine: textColorDisabled, tabTextColorBar: textColor1, tabTextColorActiveBar: primaryColor, tabTextColorHoverBar: primaryColor, tabTextColorDisabledBar: textColorDisabled, tabTextColorCard: textColor1, tabTextColorHoverCard: textColor1, tabTextColorActiveCard: primaryColor, tabTextColorDisabledCard: textColorDisabled, barColor: primaryColor, closeColor,
|
|
4
|
+
const { textColor2, primaryColor, textColorDisabled, closeColor, closeColorHover, closeColorPressed, tabColor, baseColor, dividerColor, fontWeight, textColor1, borderRadius, fontSize, fontWeightStrong } = vars;
|
|
5
|
+
return Object.assign(Object.assign({}, sizeVariables), { colorSegment: tabColor, tabFontSizeCard: fontSize, tabTextColorLine: textColor1, tabTextColorActiveLine: primaryColor, tabTextColorHoverLine: primaryColor, tabTextColorDisabledLine: textColorDisabled, tabTextColorSegment: textColor1, tabTextColorActiveSegment: primaryColor, tabTextColorHoverSegment: primaryColor, tabTextColorDisabledSegment: textColorDisabled, tabTextColorBar: textColor1, tabTextColorActiveBar: primaryColor, tabTextColorHoverBar: primaryColor, tabTextColorDisabledBar: textColorDisabled, tabTextColorCard: textColor1, tabTextColorHoverCard: textColor1, tabTextColorActiveCard: primaryColor, tabTextColorDisabledCard: textColorDisabled, barColor: primaryColor, closeColor,
|
|
6
6
|
closeColorHover,
|
|
7
7
|
closeColorPressed,
|
|
8
|
-
tabColor, tabBorderColor: dividerColor, tabFontWeightActive: fontWeight, tabFontWeight: fontWeight, tabBorderRadius: borderRadius, paneTextColor: textColor2 });
|
|
8
|
+
tabColor, tabColorSegment: baseColor, tabBorderColor: dividerColor, tabFontWeightActive: fontWeight, tabFontWeight: fontWeight, tabBorderRadius: borderRadius, paneTextColor: textColor2, fontWeightStrong });
|
|
9
9
|
};
|
|
10
10
|
const tabsLight = {
|
|
11
11
|
name: 'Tabs',
|
package/es/time/src/Time.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ExtractPublicPropTypes } from '../../_utils';
|
|
|
3
3
|
declare const timeProps: {
|
|
4
4
|
readonly time: {
|
|
5
5
|
readonly type: PropType<number | Date>;
|
|
6
|
-
readonly default:
|
|
6
|
+
readonly default: undefined;
|
|
7
7
|
};
|
|
8
8
|
readonly type: {
|
|
9
9
|
readonly type: PropType<"relative" | "date" | "datetime">;
|
|
@@ -11,23 +11,18 @@ declare const timeProps: {
|
|
|
11
11
|
};
|
|
12
12
|
readonly to: {
|
|
13
13
|
readonly type: PropType<number | Date>;
|
|
14
|
-
readonly default:
|
|
15
|
-
};
|
|
16
|
-
readonly unix: {
|
|
17
|
-
readonly type: BooleanConstructor;
|
|
18
|
-
readonly default: false;
|
|
14
|
+
readonly default: undefined;
|
|
19
15
|
};
|
|
16
|
+
readonly unix: BooleanConstructor;
|
|
20
17
|
readonly format: StringConstructor;
|
|
21
|
-
readonly text:
|
|
22
|
-
|
|
23
|
-
readonly default: false;
|
|
24
|
-
};
|
|
18
|
+
readonly text: BooleanConstructor;
|
|
19
|
+
readonly timezone: StringConstructor;
|
|
25
20
|
};
|
|
26
21
|
export declare type TimeProps = ExtractPublicPropTypes<typeof timeProps>;
|
|
27
22
|
declare const _default: import("vue").DefineComponent<{
|
|
28
23
|
readonly time: {
|
|
29
24
|
readonly type: PropType<number | Date>;
|
|
30
|
-
readonly default:
|
|
25
|
+
readonly default: undefined;
|
|
31
26
|
};
|
|
32
27
|
readonly type: {
|
|
33
28
|
readonly type: PropType<"relative" | "date" | "datetime">;
|
|
@@ -35,17 +30,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
30
|
};
|
|
36
31
|
readonly to: {
|
|
37
32
|
readonly type: PropType<number | Date>;
|
|
38
|
-
readonly default:
|
|
39
|
-
};
|
|
40
|
-
readonly unix: {
|
|
41
|
-
readonly type: BooleanConstructor;
|
|
42
|
-
readonly default: false;
|
|
33
|
+
readonly default: undefined;
|
|
43
34
|
};
|
|
35
|
+
readonly unix: BooleanConstructor;
|
|
44
36
|
readonly format: StringConstructor;
|
|
45
|
-
readonly text:
|
|
46
|
-
|
|
47
|
-
readonly default: false;
|
|
48
|
-
};
|
|
37
|
+
readonly text: BooleanConstructor;
|
|
38
|
+
readonly timezone: StringConstructor;
|
|
49
39
|
}, {
|
|
50
40
|
renderedTime: import("vue").ComputedRef<string>;
|
|
51
41
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
@@ -55,14 +45,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
55
45
|
readonly unix?: unknown;
|
|
56
46
|
readonly format?: unknown;
|
|
57
47
|
readonly text?: unknown;
|
|
48
|
+
readonly timezone?: unknown;
|
|
58
49
|
} & {
|
|
59
50
|
type: "relative" | "date" | "datetime";
|
|
60
51
|
text: boolean;
|
|
61
|
-
time: number | Date;
|
|
62
|
-
to: number | Date;
|
|
63
52
|
unix: boolean;
|
|
64
53
|
} & {
|
|
54
|
+
time?: number | Date | undefined;
|
|
65
55
|
format?: string | undefined;
|
|
56
|
+
to?: number | Date | undefined;
|
|
57
|
+
timezone?: string | undefined;
|
|
66
58
|
}>, {
|
|
67
59
|
type: "relative" | "date" | "datetime";
|
|
68
60
|
text: boolean;
|
package/es/time/src/Time.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { h, createTextVNode, defineComponent, computed } from 'vue';
|
|
2
|
-
import { format, formatDistance, fromUnixTime } from 'date-fns';
|
|
2
|
+
import { format, formatDistance, fromUnixTime, getTime } from 'date-fns';
|
|
3
|
+
import { getTimezoneOffset } from 'date-fns-tz';
|
|
3
4
|
import { useLocale } from '../../_mixins';
|
|
4
5
|
const timeProps = {
|
|
5
6
|
time: {
|
|
6
7
|
type: [Number, Date],
|
|
7
|
-
default:
|
|
8
|
+
default: undefined // For unix or non unix mode, it should be different default value
|
|
8
9
|
},
|
|
9
10
|
type: {
|
|
10
11
|
type: String,
|
|
@@ -12,49 +13,62 @@ const timeProps = {
|
|
|
12
13
|
},
|
|
13
14
|
to: {
|
|
14
15
|
type: [Number, Date],
|
|
15
|
-
default:
|
|
16
|
-
},
|
|
17
|
-
unix: {
|
|
18
|
-
type: Boolean,
|
|
19
|
-
default: false
|
|
16
|
+
default: undefined // the same as `time` prop
|
|
20
17
|
},
|
|
18
|
+
unix: Boolean,
|
|
21
19
|
format: String,
|
|
22
|
-
text:
|
|
23
|
-
|
|
24
|
-
default: false
|
|
25
|
-
}
|
|
20
|
+
text: Boolean,
|
|
21
|
+
timezone: String
|
|
26
22
|
};
|
|
27
23
|
export default defineComponent({
|
|
28
24
|
name: 'Time',
|
|
29
25
|
props: timeProps,
|
|
30
26
|
setup(props) {
|
|
27
|
+
const now = Date.now();
|
|
31
28
|
const { localeRef, dateLocaleRef } = useLocale('Time');
|
|
29
|
+
const mergedFormatRef = computed(() => {
|
|
30
|
+
const { timezone } = props;
|
|
31
|
+
if (timezone) {
|
|
32
|
+
return (time, _format) => {
|
|
33
|
+
return format(getTime(time) +
|
|
34
|
+
-getTimezoneOffset(Intl.DateTimeFormat().resolvedOptions().timeZone, time) +
|
|
35
|
+
getTimezoneOffset(timezone, time), _format);
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
return format;
|
|
39
|
+
});
|
|
32
40
|
const dateFnsOptionsRef = computed(() => {
|
|
33
41
|
return {
|
|
34
42
|
locale: dateLocaleRef.value.locale
|
|
35
43
|
};
|
|
36
44
|
});
|
|
37
45
|
const mergedTimeRef = computed(() => {
|
|
46
|
+
const { time } = props;
|
|
38
47
|
if (props.unix) {
|
|
39
|
-
|
|
48
|
+
if (time === undefined)
|
|
49
|
+
return now;
|
|
50
|
+
return fromUnixTime(typeof time === 'number' ? time : time.valueOf());
|
|
40
51
|
}
|
|
41
|
-
return
|
|
52
|
+
return time !== null && time !== void 0 ? time : now;
|
|
42
53
|
});
|
|
43
54
|
const mergedToRef = computed(() => {
|
|
55
|
+
const { to } = props;
|
|
44
56
|
if (props.unix) {
|
|
45
|
-
|
|
57
|
+
if (to === undefined)
|
|
58
|
+
return now;
|
|
59
|
+
return fromUnixTime(typeof to === 'number' ? to : to.valueOf());
|
|
46
60
|
}
|
|
47
|
-
return
|
|
61
|
+
return to !== null && to !== void 0 ? to : now;
|
|
48
62
|
});
|
|
49
63
|
const renderedTimeRef = computed(() => {
|
|
50
64
|
if (props.format) {
|
|
51
|
-
return
|
|
65
|
+
return mergedFormatRef.value(mergedTimeRef.value, props.format, dateFnsOptionsRef.value);
|
|
52
66
|
}
|
|
53
67
|
else if (props.type === 'date') {
|
|
54
|
-
return
|
|
68
|
+
return mergedFormatRef.value(mergedTimeRef.value, localeRef.value.dateFormat, dateFnsOptionsRef.value);
|
|
55
69
|
}
|
|
56
70
|
else if (props.type === 'datetime') {
|
|
57
|
-
return
|
|
71
|
+
return mergedFormatRef.value(mergedTimeRef.value, localeRef.value.dateTimeFormat, dateFnsOptionsRef.value);
|
|
58
72
|
}
|
|
59
73
|
else {
|
|
60
74
|
return formatDistance(mergedTimeRef.value, mergedToRef.value, {
|
|
@@ -29,6 +29,7 @@ declare const timePickerProps: {
|
|
|
29
29
|
size: PropType<Size>;
|
|
30
30
|
isMinuteDisabled: PropType<IsMinuteDisabled>;
|
|
31
31
|
isSecondDisabled: PropType<IsSecondDisabled>;
|
|
32
|
+
inputReadonly: BooleanConstructor;
|
|
32
33
|
clearable: BooleanConstructor;
|
|
33
34
|
'onUpdate:value': PropType<MaybeArray<OnUpdateValue>>;
|
|
34
35
|
onUpdateValue: PropType<MaybeArray<OnUpdateValue>>;
|
|
@@ -921,6 +922,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
921
922
|
size: PropType<Size>;
|
|
922
923
|
isMinuteDisabled: PropType<IsMinuteDisabled>;
|
|
923
924
|
isSecondDisabled: PropType<IsSecondDisabled>;
|
|
925
|
+
inputReadonly: BooleanConstructor;
|
|
924
926
|
clearable: BooleanConstructor;
|
|
925
927
|
'onUpdate:value': PropType<MaybeArray<OnUpdateValue>>;
|
|
926
928
|
onUpdateValue: PropType<MaybeArray<OnUpdateValue>>;
|
|
@@ -2290,6 +2292,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2290
2292
|
size?: unknown;
|
|
2291
2293
|
isMinuteDisabled?: unknown;
|
|
2292
2294
|
isSecondDisabled?: unknown;
|
|
2295
|
+
inputReadonly?: unknown;
|
|
2293
2296
|
clearable?: unknown;
|
|
2294
2297
|
'onUpdate:value'?: unknown;
|
|
2295
2298
|
onUpdateValue?: unknown;
|
|
@@ -2312,6 +2315,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2312
2315
|
defaultValue: number | null;
|
|
2313
2316
|
stateful: boolean;
|
|
2314
2317
|
showIcon: boolean;
|
|
2318
|
+
inputReadonly: boolean;
|
|
2315
2319
|
} & {
|
|
2316
2320
|
value?: number | null | undefined;
|
|
2317
2321
|
size?: Size | undefined;
|
|
@@ -3170,5 +3174,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3170
3174
|
defaultValue: number | null;
|
|
3171
3175
|
stateful: boolean;
|
|
3172
3176
|
showIcon: boolean;
|
|
3177
|
+
inputReadonly: boolean;
|
|
3173
3178
|
}>;
|
|
3174
3179
|
export default _default;
|
|
@@ -39,7 +39,7 @@ const timePickerProps = Object.assign(Object.assign({}, useTheme.props), { to: u
|
|
|
39
39
|
}, value: Number, format: {
|
|
40
40
|
type: String,
|
|
41
41
|
default: 'HH:mm:ss'
|
|
42
|
-
}, isHourDisabled: Function, size: String, isMinuteDisabled: Function, isSecondDisabled: Function, clearable: Boolean, 'onUpdate:value': [Function, Array], onUpdateValue: [Function, Array], onBlur: [Function, Array], onFocus: [Function, Array],
|
|
42
|
+
}, isHourDisabled: Function, size: String, isMinuteDisabled: Function, isSecondDisabled: Function, inputReadonly: Boolean, clearable: Boolean, 'onUpdate:value': [Function, Array], onUpdateValue: [Function, Array], onBlur: [Function, Array], onFocus: [Function, Array],
|
|
43
43
|
// private
|
|
44
44
|
stateful: {
|
|
45
45
|
type: Boolean,
|
|
@@ -519,7 +519,7 @@ export default defineComponent({
|
|
|
519
519
|
h(VBinder, null, {
|
|
520
520
|
default: () => [
|
|
521
521
|
h(VTarget, null, {
|
|
522
|
-
default: () => (h(NInput, { ref: "inputInstRef", value: this.displayTimeString, bordered: this.mergedBordered, passivelyActivated: true, attrSize: this.mergedAttrSize, theme: this.mergedTheme.peers.Input, themeOverrides: this.mergedTheme.peerOverrides.Input, stateful: this.stateful, size: this.mergedSize, placeholder: this.localizedPlaceholder, clearable: this.clearable, disabled: this.mergedDisabled, textDecoration: this.isValueInvalid ? 'line-through' : undefined, onFocus: this.handleTimeInputFocus, onBlur: this.handleTimeInputBlur, onActivate: this.handleTimeInputActivate, onDeactivate: this.handleTimeInputDeactivate, onUpdateValue: this.handleTimeInputUpdateValue, onClear: this.handleTimeInputClear, internalDeactivateOnEnter: true, internalForceFocus: this.active, onClick: this.handleTriggerClick }, this.showIcon
|
|
522
|
+
default: () => (h(NInput, { ref: "inputInstRef", value: this.displayTimeString, bordered: this.mergedBordered, passivelyActivated: true, attrSize: this.mergedAttrSize, theme: this.mergedTheme.peers.Input, themeOverrides: this.mergedTheme.peerOverrides.Input, stateful: this.stateful, size: this.mergedSize, placeholder: this.localizedPlaceholder, clearable: this.clearable, disabled: this.mergedDisabled, textDecoration: this.isValueInvalid ? 'line-through' : undefined, onFocus: this.handleTimeInputFocus, onBlur: this.handleTimeInputBlur, onActivate: this.handleTimeInputActivate, onDeactivate: this.handleTimeInputDeactivate, onUpdateValue: this.handleTimeInputUpdateValue, onClear: this.handleTimeInputClear, internalDeactivateOnEnter: true, internalForceFocus: this.active, readonly: this.inputReadonly || this.mergedDisabled, onClick: this.handleTriggerClick }, this.showIcon
|
|
523
523
|
? {
|
|
524
524
|
[this.clearable ? 'clear' : 'suffix']: () => (h(NBaseIcon, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-time-picker-icon` }, {
|
|
525
525
|
default: () => h(TimeIcon, null)
|
|
@@ -123,16 +123,9 @@ declare const tooltipProps: {
|
|
|
123
123
|
onClickoutside: import("vue").PropType<(e: MouseEvent) => void>;
|
|
124
124
|
'onUpdate:show': import("vue").PropType<import("../../_utils").MaybeArray<(value: boolean) => void>>;
|
|
125
125
|
onUpdateShow: import("vue").PropType<import("../../_utils").MaybeArray<(value: boolean) => void>>;
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
default: undefined;
|
|
130
|
-
};
|
|
131
|
-
onHide: {
|
|
132
|
-
type: import("vue").PropType<import("../../_utils").MaybeArray<(value: boolean) => void> | undefined>;
|
|
133
|
-
validator: () => boolean;
|
|
134
|
-
default: undefined;
|
|
135
|
-
};
|
|
126
|
+
zIndex: NumberConstructor;
|
|
127
|
+
onShow: import("vue").PropType<import("../../_utils").MaybeArray<(value: boolean) => void> | undefined>;
|
|
128
|
+
onHide: import("vue").PropType<import("../../_utils").MaybeArray<(value: boolean) => void> | undefined>;
|
|
136
129
|
arrow: {
|
|
137
130
|
type: import("vue").PropType<boolean | undefined>;
|
|
138
131
|
default: undefined;
|
|
@@ -263,16 +256,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
263
256
|
onClickoutside: import("vue").PropType<(e: MouseEvent) => void>;
|
|
264
257
|
'onUpdate:show': import("vue").PropType<import("../../_utils").MaybeArray<(value: boolean) => void>>;
|
|
265
258
|
onUpdateShow: import("vue").PropType<import("../../_utils").MaybeArray<(value: boolean) => void>>;
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
default: undefined;
|
|
270
|
-
};
|
|
271
|
-
onHide: {
|
|
272
|
-
type: import("vue").PropType<import("../../_utils").MaybeArray<(value: boolean) => void> | undefined>;
|
|
273
|
-
validator: () => boolean;
|
|
274
|
-
default: undefined;
|
|
275
|
-
};
|
|
259
|
+
zIndex: NumberConstructor;
|
|
260
|
+
onShow: import("vue").PropType<import("../../_utils").MaybeArray<(value: boolean) => void> | undefined>;
|
|
261
|
+
onHide: import("vue").PropType<import("../../_utils").MaybeArray<(value: boolean) => void> | undefined>;
|
|
276
262
|
arrow: {
|
|
277
263
|
type: import("vue").PropType<boolean | undefined>;
|
|
278
264
|
default: undefined;
|
|
@@ -450,6 +436,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
450
436
|
onClickoutside?: unknown;
|
|
451
437
|
'onUpdate:show'?: unknown;
|
|
452
438
|
onUpdateShow?: unknown;
|
|
439
|
+
zIndex?: unknown;
|
|
453
440
|
onShow?: unknown;
|
|
454
441
|
onHide?: unknown;
|
|
455
442
|
arrow?: unknown;
|
|
@@ -476,6 +463,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
476
463
|
maxWidth?: number | undefined;
|
|
477
464
|
minWidth?: number | undefined;
|
|
478
465
|
width?: number | "trigger" | undefined;
|
|
466
|
+
zIndex?: number | undefined;
|
|
479
467
|
theme?: import("../../_mixins").Theme<"Tooltip", {
|
|
480
468
|
borderRadius: string;
|
|
481
469
|
boxShadow: string;
|
|
@@ -566,8 +554,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
566
554
|
animated: boolean;
|
|
567
555
|
defaultShow: boolean;
|
|
568
556
|
internalExtraClass: string[];
|
|
569
|
-
onShow: import("../../_utils").MaybeArray<(value: boolean) => void> | undefined;
|
|
570
|
-
onHide: import("../../_utils").MaybeArray<(value: boolean) => void> | undefined;
|
|
571
557
|
arrow: boolean | undefined;
|
|
572
558
|
}>;
|
|
573
559
|
export default _default;
|
|
@@ -513,8 +513,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
513
513
|
disabled: boolean;
|
|
514
514
|
itemSize: number;
|
|
515
515
|
virtualScroll: boolean;
|
|
516
|
-
options: Option[];
|
|
517
516
|
isMounted: boolean;
|
|
517
|
+
options: Option[];
|
|
518
518
|
isInputing: boolean;
|
|
519
519
|
} & {}>, {
|
|
520
520
|
source: boolean;
|
package/es/tree/src/Tree.d.ts
CHANGED
|
@@ -24,6 +24,9 @@ export declare const treeSharedProps: {
|
|
|
24
24
|
readonly type: PropType<Key[]>;
|
|
25
25
|
readonly default: () => never[];
|
|
26
26
|
};
|
|
27
|
+
readonly indeterminateKeys: PropType<Key[]>;
|
|
28
|
+
readonly onUpdateIndeterminateKeys: PropType<MaybeArray<(value: Key[]) => void>>;
|
|
29
|
+
readonly 'onUpdate:indeterminateKeys': PropType<MaybeArray<(value: Key[]) => void>>;
|
|
27
30
|
readonly onUpdateExpandedKeys: PropType<MaybeArray<(value: Key[]) => void>>;
|
|
28
31
|
readonly 'onUpdate:expandedKeys': PropType<MaybeArray<(value: Key[]) => void>>;
|
|
29
32
|
};
|
|
@@ -33,7 +36,7 @@ declare const treeProps: {
|
|
|
33
36
|
readonly internalDataTreeMate: PropType<TreeMate<TreeOption, TreeOption, TreeOption>>;
|
|
34
37
|
readonly internalDisplayTreeMate: PropType<TreeMate<TreeOption, TreeOption, TreeOption>>;
|
|
35
38
|
readonly internalHighlightKeySet: PropType<Set<Key>>;
|
|
36
|
-
readonly
|
|
39
|
+
readonly internalUnifySelectCheck: BooleanConstructor;
|
|
37
40
|
readonly internalHideFilteredNode: BooleanConstructor;
|
|
38
41
|
readonly internalCheckboxFocusable: {
|
|
39
42
|
readonly type: BooleanConstructor;
|
|
@@ -43,7 +46,7 @@ declare const treeProps: {
|
|
|
43
46
|
readonly type: BooleanConstructor;
|
|
44
47
|
readonly default: true;
|
|
45
48
|
};
|
|
46
|
-
readonly
|
|
49
|
+
readonly checkStrategy: {
|
|
47
50
|
readonly type: PropType<CheckStrategy>;
|
|
48
51
|
readonly default: "all";
|
|
49
52
|
};
|
|
@@ -66,6 +69,9 @@ declare const treeProps: {
|
|
|
66
69
|
readonly type: PropType<Key[]>;
|
|
67
70
|
readonly default: () => never[];
|
|
68
71
|
};
|
|
72
|
+
readonly indeterminateKeys: PropType<Key[]>;
|
|
73
|
+
readonly onUpdateIndeterminateKeys: PropType<MaybeArray<(value: Key[]) => void>>;
|
|
74
|
+
readonly 'onUpdate:indeterminateKeys': PropType<MaybeArray<(value: Key[]) => void>>;
|
|
69
75
|
readonly onUpdateExpandedKeys: PropType<MaybeArray<(value: Key[]) => void>>;
|
|
70
76
|
readonly 'onUpdate:expandedKeys': PropType<MaybeArray<(value: Key[]) => void>>;
|
|
71
77
|
readonly data: {
|
|
@@ -277,7 +283,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
277
283
|
readonly internalDataTreeMate: PropType<TreeMate<TreeOption, TreeOption, TreeOption>>;
|
|
278
284
|
readonly internalDisplayTreeMate: PropType<TreeMate<TreeOption, TreeOption, TreeOption>>;
|
|
279
285
|
readonly internalHighlightKeySet: PropType<Set<Key>>;
|
|
280
|
-
readonly
|
|
286
|
+
readonly internalUnifySelectCheck: BooleanConstructor;
|
|
281
287
|
readonly internalHideFilteredNode: BooleanConstructor;
|
|
282
288
|
readonly internalCheckboxFocusable: {
|
|
283
289
|
readonly type: BooleanConstructor;
|
|
@@ -287,7 +293,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
287
293
|
readonly type: BooleanConstructor;
|
|
288
294
|
readonly default: true;
|
|
289
295
|
};
|
|
290
|
-
readonly
|
|
296
|
+
readonly checkStrategy: {
|
|
291
297
|
readonly type: PropType<CheckStrategy>;
|
|
292
298
|
readonly default: "all";
|
|
293
299
|
};
|
|
@@ -310,6 +316,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
310
316
|
readonly type: PropType<Key[]>;
|
|
311
317
|
readonly default: () => never[];
|
|
312
318
|
};
|
|
319
|
+
readonly indeterminateKeys: PropType<Key[]>;
|
|
320
|
+
readonly onUpdateIndeterminateKeys: PropType<MaybeArray<(value: Key[]) => void>>;
|
|
321
|
+
readonly 'onUpdate:indeterminateKeys': PropType<MaybeArray<(value: Key[]) => void>>;
|
|
313
322
|
readonly onUpdateExpandedKeys: PropType<MaybeArray<(value: Key[]) => void>>;
|
|
314
323
|
readonly 'onUpdate:expandedKeys': PropType<MaybeArray<(value: Key[]) => void>>;
|
|
315
324
|
readonly data: {
|
|
@@ -962,11 +971,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
962
971
|
readonly internalDataTreeMate?: unknown;
|
|
963
972
|
readonly internalDisplayTreeMate?: unknown;
|
|
964
973
|
readonly internalHighlightKeySet?: unknown;
|
|
965
|
-
readonly
|
|
974
|
+
readonly internalUnifySelectCheck?: unknown;
|
|
966
975
|
readonly internalHideFilteredNode?: unknown;
|
|
967
976
|
readonly internalCheckboxFocusable?: unknown;
|
|
968
977
|
readonly internalFocusable?: unknown;
|
|
969
|
-
readonly
|
|
978
|
+
readonly checkStrategy?: unknown;
|
|
970
979
|
readonly filter?: unknown;
|
|
971
980
|
readonly defaultExpandAll?: unknown;
|
|
972
981
|
readonly expandedKeys?: unknown;
|
|
@@ -974,6 +983,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
974
983
|
readonly labelField?: unknown;
|
|
975
984
|
readonly childrenField?: unknown;
|
|
976
985
|
readonly defaultExpandedKeys?: unknown;
|
|
986
|
+
readonly indeterminateKeys?: unknown;
|
|
987
|
+
readonly onUpdateIndeterminateKeys?: unknown;
|
|
988
|
+
readonly 'onUpdate:indeterminateKeys'?: unknown;
|
|
977
989
|
readonly onUpdateExpandedKeys?: unknown;
|
|
978
990
|
readonly 'onUpdate:expandedKeys'?: unknown;
|
|
979
991
|
readonly data?: unknown;
|
|
@@ -1028,6 +1040,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1028
1040
|
remote: boolean;
|
|
1029
1041
|
cascade: boolean;
|
|
1030
1042
|
indent: number;
|
|
1043
|
+
checkStrategy: CheckStrategy;
|
|
1031
1044
|
leafOnly: boolean;
|
|
1032
1045
|
labelField: string;
|
|
1033
1046
|
childrenField: string;
|
|
@@ -1037,11 +1050,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1037
1050
|
internalScrollable: boolean;
|
|
1038
1051
|
blockLine: boolean;
|
|
1039
1052
|
selectable: boolean;
|
|
1040
|
-
|
|
1053
|
+
internalUnifySelectCheck: boolean;
|
|
1041
1054
|
internalHideFilteredNode: boolean;
|
|
1042
1055
|
internalCheckboxFocusable: boolean;
|
|
1043
1056
|
internalFocusable: boolean;
|
|
1044
|
-
internalCheckStrategy: CheckStrategy;
|
|
1045
1057
|
expandOnDragenter: boolean;
|
|
1046
1058
|
blockNode: boolean;
|
|
1047
1059
|
defaultCheckedKeys: Key[];
|
|
@@ -1202,6 +1214,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1202
1214
|
internalDataTreeMate?: TreeMate<TreeOption, TreeOption, TreeOption> | undefined;
|
|
1203
1215
|
internalDisplayTreeMate?: TreeMate<TreeOption, TreeOption, TreeOption> | undefined;
|
|
1204
1216
|
internalHighlightKeySet?: Set<Key> | undefined;
|
|
1217
|
+
indeterminateKeys?: Key[] | undefined;
|
|
1218
|
+
onUpdateIndeterminateKeys?: MaybeArray<(value: Key[]) => void> | undefined;
|
|
1219
|
+
"onUpdate:indeterminateKeys"?: MaybeArray<(value: Key[]) => void> | undefined;
|
|
1205
1220
|
selectedKeys?: Key[] | undefined;
|
|
1206
1221
|
onUpdateCheckedKeys?: MaybeArray<(value: Key[]) => void> | undefined;
|
|
1207
1222
|
"onUpdate:checkedKeys"?: MaybeArray<(value: Key[]) => void> | undefined;
|
|
@@ -1220,6 +1235,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1220
1235
|
remote: boolean;
|
|
1221
1236
|
cascade: boolean;
|
|
1222
1237
|
indent: number;
|
|
1238
|
+
checkStrategy: CheckStrategy;
|
|
1223
1239
|
leafOnly: boolean;
|
|
1224
1240
|
labelField: string;
|
|
1225
1241
|
childrenField: string;
|
|
@@ -1229,11 +1245,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1229
1245
|
internalScrollable: boolean;
|
|
1230
1246
|
blockLine: boolean;
|
|
1231
1247
|
selectable: boolean;
|
|
1232
|
-
|
|
1248
|
+
internalUnifySelectCheck: boolean;
|
|
1233
1249
|
internalHideFilteredNode: boolean;
|
|
1234
1250
|
internalCheckboxFocusable: boolean;
|
|
1235
1251
|
internalFocusable: boolean;
|
|
1236
|
-
internalCheckStrategy: CheckStrategy;
|
|
1237
1252
|
expandOnDragenter: boolean;
|
|
1238
1253
|
blockNode: boolean;
|
|
1239
1254
|
defaultCheckedKeys: Key[];
|