naive-ui 2.18.0 → 2.19.1
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 +8 -0
- 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 -0
- package/es/_internal/selection/styles/_common.js +2 -1
- package/es/_internal/selection/styles/light.d.ts +2 -0
- package/es/_styles/common/light.js +1 -1
- package/es/_utils/naive/mutable.d.ts +2 -2
- 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 +20 -0
- package/es/cascader/src/Cascader.js +28 -19
- package/es/cascader/src/CascaderMenu.js +17 -15
- package/es/cascader/src/CascaderOption.d.ts +2 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +2 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +2 -0
- 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 +2 -0
- 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 +22 -0
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +4 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +4 -0
- package/es/data-table/src/TableParts/Body.d.ts +4 -0
- package/es/data-table/src/TableParts/Cell.d.ts +8 -0
- package/es/data-table/src/TableParts/Header.d.ts +4 -0
- package/es/data-table/styles/light.d.ts +2 -0
- 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/Dialog.d.ts +4 -16
- package/es/dialog/src/Dialog.js +2 -8
- package/es/dialog/src/DialogEnvironment.d.ts +28 -36
- package/es/dialog/src/DialogEnvironment.js +2 -2
- package/es/dialog/src/DialogProvider.d.ts +18 -15
- package/es/dialog/src/DialogProvider.js +2 -1
- 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/grid/src/GridItem.d.ts +2 -2
- package/es/grid/src/GridItem.js +1 -1
- package/es/input-number/src/InputNumber.d.ts +5 -0
- package/es/input-number/src/InputNumber.js +9 -8
- 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/zhCN.js +1 -1
- 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 +7 -8
- package/es/modal/src/Modal.d.ts +40 -71
- package/es/modal/src/Modal.js +18 -39
- package/es/modal/src/presetProps.d.ts +4 -9
- 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 +23 -1
- package/es/pagination/styles/light.d.ts +2 -0
- 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 +31 -3
- package/es/select/src/Select.js +55 -56
- package/es/select/src/interface.d.ts +2 -2
- package/es/select/styles/light.d.ts +2 -0
- 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/steps/src/Steps.js +2 -2
- 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/timeline/src/Timeline.d.ts +67 -0
- package/es/timeline/src/Timeline.js +1 -1
- package/es/timeline/src/TimelineItem.d.ts +2 -0
- package/es/timeline/src/TimelineItem.js +11 -11
- package/es/timeline/src/styles/index.cssr.js +26 -17
- package/es/timeline/styles/_common.d.ts +2 -0
- package/es/timeline/styles/_common.js +3 -1
- package/es/timeline/styles/dark.js +1 -1
- package/es/timeline/styles/light.d.ts +7 -0
- package/es/timeline/styles/light.js +1 -1
- 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 +23 -1
- 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 +1 -0
- 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 +8 -0
- 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 -0
- package/lib/_internal/selection/styles/_common.js +2 -1
- package/lib/_internal/selection/styles/light.d.ts +2 -0
- package/lib/_styles/common/light.js +1 -1
- package/lib/_utils/naive/mutable.d.ts +2 -2
- 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 +20 -0
- package/lib/cascader/src/Cascader.js +28 -19
- package/lib/cascader/src/CascaderMenu.js +16 -14
- package/lib/cascader/src/CascaderOption.d.ts +2 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +2 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +2 -0
- 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 +2 -0
- 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 +22 -0
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +4 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +4 -0
- package/lib/data-table/src/TableParts/Body.d.ts +4 -0
- package/lib/data-table/src/TableParts/Cell.d.ts +8 -0
- package/lib/data-table/src/TableParts/Header.d.ts +4 -0
- package/lib/data-table/styles/light.d.ts +2 -0
- 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/Dialog.d.ts +4 -16
- package/lib/dialog/src/Dialog.js +2 -8
- package/lib/dialog/src/DialogEnvironment.d.ts +28 -36
- package/lib/dialog/src/DialogEnvironment.js +2 -2
- package/lib/dialog/src/DialogProvider.d.ts +18 -15
- package/lib/dialog/src/DialogProvider.js +2 -1
- 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/grid/src/GridItem.d.ts +2 -2
- package/lib/grid/src/GridItem.js +1 -1
- package/lib/input-number/src/InputNumber.d.ts +5 -0
- package/lib/input-number/src/InputNumber.js +9 -8
- 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/zhCN.js +1 -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 +7 -8
- package/lib/modal/src/Modal.d.ts +40 -71
- package/lib/modal/src/Modal.js +17 -38
- package/lib/modal/src/presetProps.d.ts +4 -9
- 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 +23 -1
- package/lib/pagination/styles/light.d.ts +2 -0
- 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 +31 -3
- package/lib/select/src/Select.js +55 -56
- package/lib/select/src/interface.d.ts +2 -2
- package/lib/select/styles/light.d.ts +2 -0
- 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/steps/src/Steps.js +1 -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/timeline/src/Timeline.d.ts +67 -0
- package/lib/timeline/src/Timeline.js +1 -1
- package/lib/timeline/src/TimelineItem.d.ts +2 -0
- package/lib/timeline/src/TimelineItem.js +10 -10
- package/lib/timeline/src/styles/index.cssr.js +27 -18
- package/lib/timeline/styles/_common.d.ts +2 -0
- package/lib/timeline/styles/_common.js +3 -1
- package/lib/timeline/styles/dark.js +1 -1
- package/lib/timeline/styles/light.d.ts +7 -0
- package/lib/timeline/styles/light.js +1 -1
- 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 +23 -1
- 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 +1 -0
- 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 +8 -6
- package/web-types.json +248 -13
package/lib/card/src/Card.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export declare const cardBaseProps: {
|
|
|
10
10
|
readonly contentStyle: PropType<string | CSSProperties>;
|
|
11
11
|
readonly headerStyle: PropType<string | CSSProperties>;
|
|
12
12
|
readonly footerStyle: PropType<string | CSSProperties>;
|
|
13
|
+
readonly embedded: BooleanConstructor;
|
|
13
14
|
readonly segmented: {
|
|
14
15
|
readonly type: PropType<boolean | Segmented>;
|
|
15
16
|
readonly default: false;
|
|
@@ -29,12 +30,13 @@ export declare const cardBaseProps: {
|
|
|
29
30
|
readonly hoverable: BooleanConstructor;
|
|
30
31
|
readonly onClose: PropType<MaybeArray<() => void>>;
|
|
31
32
|
};
|
|
32
|
-
export declare const cardBasePropKeys: ("size" | "title" | "contentStyle" | "bordered" | "onClose" | "closable" | "hoverable" | "headerStyle" | "footerStyle" | "segmented")[];
|
|
33
|
+
export declare const cardBasePropKeys: ("size" | "title" | "contentStyle" | "bordered" | "onClose" | "closable" | "hoverable" | "headerStyle" | "footerStyle" | "embedded" | "segmented")[];
|
|
33
34
|
declare const cardProps: {
|
|
34
35
|
title: StringConstructor;
|
|
35
36
|
contentStyle: PropType<string | CSSProperties>;
|
|
36
37
|
headerStyle: PropType<string | CSSProperties>;
|
|
37
38
|
footerStyle: PropType<string | CSSProperties>;
|
|
39
|
+
embedded: BooleanConstructor;
|
|
38
40
|
segmented: {
|
|
39
41
|
readonly type: PropType<boolean | Segmented>;
|
|
40
42
|
readonly default: false;
|
|
@@ -59,6 +61,7 @@ declare const cardProps: {
|
|
|
59
61
|
colorModal: string;
|
|
60
62
|
colorPopover: string;
|
|
61
63
|
colorTarget: string;
|
|
64
|
+
colorEmbedded: string;
|
|
62
65
|
textColor: string;
|
|
63
66
|
titleTextColor: string;
|
|
64
67
|
borderColor: string;
|
|
@@ -89,6 +92,7 @@ declare const cardProps: {
|
|
|
89
92
|
colorModal: string;
|
|
90
93
|
colorPopover: string;
|
|
91
94
|
colorTarget: string;
|
|
95
|
+
colorEmbedded: string;
|
|
92
96
|
textColor: string;
|
|
93
97
|
titleTextColor: string;
|
|
94
98
|
borderColor: string;
|
|
@@ -119,6 +123,7 @@ declare const cardProps: {
|
|
|
119
123
|
colorModal: string;
|
|
120
124
|
colorPopover: string;
|
|
121
125
|
colorTarget: string;
|
|
126
|
+
colorEmbedded: string;
|
|
122
127
|
textColor: string;
|
|
123
128
|
titleTextColor: string;
|
|
124
129
|
borderColor: string;
|
|
@@ -150,6 +155,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
150
155
|
contentStyle: PropType<string | CSSProperties>;
|
|
151
156
|
headerStyle: PropType<string | CSSProperties>;
|
|
152
157
|
footerStyle: PropType<string | CSSProperties>;
|
|
158
|
+
embedded: BooleanConstructor;
|
|
153
159
|
segmented: {
|
|
154
160
|
readonly type: PropType<boolean | Segmented>;
|
|
155
161
|
readonly default: false;
|
|
@@ -174,6 +180,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
174
180
|
colorModal: string;
|
|
175
181
|
colorPopover: string;
|
|
176
182
|
colorTarget: string;
|
|
183
|
+
colorEmbedded: string;
|
|
177
184
|
textColor: string;
|
|
178
185
|
titleTextColor: string;
|
|
179
186
|
borderColor: string;
|
|
@@ -204,6 +211,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
204
211
|
colorModal: string;
|
|
205
212
|
colorPopover: string;
|
|
206
213
|
colorTarget: string;
|
|
214
|
+
colorEmbedded: string;
|
|
207
215
|
textColor: string;
|
|
208
216
|
titleTextColor: string;
|
|
209
217
|
borderColor: string;
|
|
@@ -234,6 +242,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
234
242
|
colorModal: string;
|
|
235
243
|
colorPopover: string;
|
|
236
244
|
colorTarget: string;
|
|
245
|
+
colorEmbedded: string;
|
|
237
246
|
textColor: string;
|
|
238
247
|
titleTextColor: string;
|
|
239
248
|
borderColor: string;
|
|
@@ -367,6 +376,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
367
376
|
colorModal: string;
|
|
368
377
|
colorPopover: string;
|
|
369
378
|
colorTarget: string;
|
|
379
|
+
colorEmbedded: string;
|
|
370
380
|
textColor: string;
|
|
371
381
|
titleTextColor: string;
|
|
372
382
|
borderColor: string;
|
|
@@ -426,6 +436,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
426
436
|
contentStyle?: unknown;
|
|
427
437
|
headerStyle?: unknown;
|
|
428
438
|
footerStyle?: unknown;
|
|
439
|
+
embedded?: unknown;
|
|
429
440
|
segmented?: unknown;
|
|
430
441
|
size?: unknown;
|
|
431
442
|
bordered?: unknown;
|
|
@@ -440,6 +451,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
440
451
|
bordered: boolean;
|
|
441
452
|
closable: boolean;
|
|
442
453
|
hoverable: boolean;
|
|
454
|
+
embedded: boolean;
|
|
443
455
|
segmented: boolean | Segmented;
|
|
444
456
|
} & {
|
|
445
457
|
title?: string | undefined;
|
|
@@ -449,6 +461,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
449
461
|
colorModal: string;
|
|
450
462
|
colorPopover: string;
|
|
451
463
|
colorTarget: string;
|
|
464
|
+
colorEmbedded: string;
|
|
452
465
|
textColor: string;
|
|
453
466
|
titleTextColor: string;
|
|
454
467
|
borderColor: string;
|
|
@@ -479,6 +492,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
479
492
|
colorModal: string;
|
|
480
493
|
colorPopover: string;
|
|
481
494
|
colorTarget: string;
|
|
495
|
+
colorEmbedded: string;
|
|
482
496
|
textColor: string;
|
|
483
497
|
titleTextColor: string;
|
|
484
498
|
borderColor: string;
|
|
@@ -509,6 +523,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
509
523
|
colorModal: string;
|
|
510
524
|
colorPopover: string;
|
|
511
525
|
colorTarget: string;
|
|
526
|
+
colorEmbedded: string;
|
|
512
527
|
textColor: string;
|
|
513
528
|
titleTextColor: string;
|
|
514
529
|
borderColor: string;
|
|
@@ -542,6 +557,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
542
557
|
bordered: boolean;
|
|
543
558
|
closable: boolean;
|
|
544
559
|
hoverable: boolean;
|
|
560
|
+
embedded: boolean;
|
|
545
561
|
segmented: boolean | Segmented;
|
|
546
562
|
}>;
|
|
547
563
|
export default _default;
|
package/lib/card/src/Card.js
CHANGED
|
@@ -14,6 +14,7 @@ exports.cardBaseProps = {
|
|
|
14
14
|
contentStyle: [Object, String],
|
|
15
15
|
headerStyle: [Object, String],
|
|
16
16
|
footerStyle: [Object, String],
|
|
17
|
+
embedded: Boolean,
|
|
17
18
|
segmented: {
|
|
18
19
|
type: [Boolean, Object],
|
|
19
20
|
default: false
|
|
@@ -54,12 +55,12 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
54
55
|
handleCloseClick,
|
|
55
56
|
cssVars: (0, vue_1.computed)(() => {
|
|
56
57
|
const { size } = props;
|
|
57
|
-
const { self: { color, colorModal, colorTarget, textColor, titleTextColor, titleFontWeight, borderColor, actionColor, borderRadius, closeColor, closeColorHover, closeColorPressed, lineHeight, closeSize, boxShadow, colorPopover, [(0, _utils_1.createKey)('padding', size)]: padding, [(0, _utils_1.createKey)('fontSize', size)]: fontSize, [(0, _utils_1.createKey)('titleFontSize', size)]: titleFontSize }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
58
|
+
const { self: { color, colorModal, colorTarget, textColor, titleTextColor, titleFontWeight, borderColor, actionColor, borderRadius, closeColor, closeColorHover, closeColorPressed, lineHeight, closeSize, boxShadow, colorPopover, colorEmbedded, [(0, _utils_1.createKey)('padding', size)]: padding, [(0, _utils_1.createKey)('fontSize', size)]: fontSize, [(0, _utils_1.createKey)('titleFontSize', size)]: titleFontSize }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
58
59
|
const { top: paddingTop, left: paddingLeft, bottom: paddingBottom } = (0, seemly_1.getPadding)(padding);
|
|
59
60
|
return {
|
|
60
61
|
'--bezier': cubicBezierEaseInOut,
|
|
61
62
|
'--border-radius': borderRadius,
|
|
62
|
-
'--color': color,
|
|
63
|
+
'--color': props.embedded ? colorEmbedded : color,
|
|
63
64
|
'--color-modal': colorModal,
|
|
64
65
|
'--color-popover': colorPopover,
|
|
65
66
|
'--color-target': colorTarget,
|
package/lib/card/styles/dark.js
CHANGED
|
@@ -5,6 +5,11 @@ const light_1 = require("./light");
|
|
|
5
5
|
const cardDark = {
|
|
6
6
|
name: 'Card',
|
|
7
7
|
common: common_1.commonDark,
|
|
8
|
-
self
|
|
8
|
+
self(vars) {
|
|
9
|
+
const commonSelf = (0, light_1.self)(vars);
|
|
10
|
+
const { cardColor } = vars;
|
|
11
|
+
commonSelf.colorEmbedded = cardColor;
|
|
12
|
+
return commonSelf;
|
|
13
|
+
}
|
|
9
14
|
};
|
|
10
15
|
exports.default = cardDark;
|
package/lib/card/styles/light.js
CHANGED
|
@@ -4,8 +4,8 @@ exports.self = void 0;
|
|
|
4
4
|
const common_1 = require("../../_styles/common");
|
|
5
5
|
const _common_1 = require("./_common");
|
|
6
6
|
const self = (vars) => {
|
|
7
|
-
const { primaryColor, borderRadius, lineHeight, fontSize, cardColor, textColor2, textColor1, dividerColor,
|
|
8
|
-
return Object.assign(Object.assign({}, _common_1.default), { lineHeight, color: cardColor, colorModal: modalColor, colorPopover: popoverColor, colorTarget: primaryColor, textColor: textColor2, titleTextColor: textColor1, borderColor: dividerColor, actionColor: actionColor, titleFontWeight: fontWeightStrong, closeColor: closeColor, closeColorHover: closeColorHover, closeColorPressed: closeColorPressed, fontSizeSmall: fontSize, fontSizeMedium: fontSize, fontSizeLarge: fontSize, fontSizeHuge: fontSize, boxShadow: boxShadow1, borderRadius });
|
|
7
|
+
const { primaryColor, borderRadius, lineHeight, fontSize, cardColor, textColor2, textColor1, dividerColor, fontWeightStrong, closeColor, closeColorHover, closeColorPressed, modalColor, boxShadow1, popoverColor, actionColor } = vars;
|
|
8
|
+
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: actionColor, titleFontWeight: fontWeightStrong, closeColor: closeColor, closeColorHover: closeColorHover, closeColorPressed: closeColorPressed, fontSizeSmall: fontSize, fontSizeMedium: fontSize, fontSizeLarge: fontSize, fontSizeHuge: fontSize, boxShadow: boxShadow1, borderRadius });
|
|
9
9
|
};
|
|
10
10
|
exports.self = self;
|
|
11
11
|
const cardLight = {
|
|
@@ -122,6 +122,7 @@ declare const cascaderProps: {
|
|
|
122
122
|
optionOpacityDisabled: string;
|
|
123
123
|
optionCheckColor: string;
|
|
124
124
|
optionColorPending: string;
|
|
125
|
+
optionColorActive: string;
|
|
125
126
|
actionTextColor: string;
|
|
126
127
|
loadingColor: string;
|
|
127
128
|
height: string;
|
|
@@ -204,6 +205,7 @@ declare const cascaderProps: {
|
|
|
204
205
|
fontSizeLarge: string;
|
|
205
206
|
paddingSingle: string;
|
|
206
207
|
clearSize: string;
|
|
208
|
+
arrowSize: string;
|
|
207
209
|
}, {
|
|
208
210
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
209
211
|
fontSize: string;
|
|
@@ -290,6 +292,7 @@ declare const cascaderProps: {
|
|
|
290
292
|
optionOpacityDisabled: string;
|
|
291
293
|
optionCheckColor: string;
|
|
292
294
|
optionColorPending: string;
|
|
295
|
+
optionColorActive: string;
|
|
293
296
|
actionTextColor: string;
|
|
294
297
|
loadingColor: string;
|
|
295
298
|
height: string;
|
|
@@ -372,6 +375,7 @@ declare const cascaderProps: {
|
|
|
372
375
|
fontSizeLarge: string;
|
|
373
376
|
paddingSingle: string;
|
|
374
377
|
clearSize: string;
|
|
378
|
+
arrowSize: string;
|
|
375
379
|
}, {
|
|
376
380
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
377
381
|
fontSize: string;
|
|
@@ -458,6 +462,7 @@ declare const cascaderProps: {
|
|
|
458
462
|
optionOpacityDisabled: string;
|
|
459
463
|
optionCheckColor: string;
|
|
460
464
|
optionColorPending: string;
|
|
465
|
+
optionColorActive: string;
|
|
461
466
|
actionTextColor: string;
|
|
462
467
|
loadingColor: string;
|
|
463
468
|
height: string;
|
|
@@ -540,6 +545,7 @@ declare const cascaderProps: {
|
|
|
540
545
|
fontSizeLarge: string;
|
|
541
546
|
paddingSingle: string;
|
|
542
547
|
clearSize: string;
|
|
548
|
+
arrowSize: string;
|
|
543
549
|
}, {
|
|
544
550
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
545
551
|
fontSize: string;
|
|
@@ -709,6 +715,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
709
715
|
optionOpacityDisabled: string;
|
|
710
716
|
optionCheckColor: string;
|
|
711
717
|
optionColorPending: string;
|
|
718
|
+
optionColorActive: string;
|
|
712
719
|
actionTextColor: string;
|
|
713
720
|
loadingColor: string;
|
|
714
721
|
height: string;
|
|
@@ -791,6 +798,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
791
798
|
fontSizeLarge: string;
|
|
792
799
|
paddingSingle: string;
|
|
793
800
|
clearSize: string;
|
|
801
|
+
arrowSize: string;
|
|
794
802
|
}, {
|
|
795
803
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
796
804
|
fontSize: string;
|
|
@@ -877,6 +885,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
877
885
|
optionOpacityDisabled: string;
|
|
878
886
|
optionCheckColor: string;
|
|
879
887
|
optionColorPending: string;
|
|
888
|
+
optionColorActive: string;
|
|
880
889
|
actionTextColor: string;
|
|
881
890
|
loadingColor: string;
|
|
882
891
|
height: string;
|
|
@@ -959,6 +968,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
959
968
|
fontSizeLarge: string;
|
|
960
969
|
paddingSingle: string;
|
|
961
970
|
clearSize: string;
|
|
971
|
+
arrowSize: string;
|
|
962
972
|
}, {
|
|
963
973
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
964
974
|
fontSize: string;
|
|
@@ -1045,6 +1055,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1045
1055
|
optionOpacityDisabled: string;
|
|
1046
1056
|
optionCheckColor: string;
|
|
1047
1057
|
optionColorPending: string;
|
|
1058
|
+
optionColorActive: string;
|
|
1048
1059
|
actionTextColor: string;
|
|
1049
1060
|
loadingColor: string;
|
|
1050
1061
|
height: string;
|
|
@@ -1127,6 +1138,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1127
1138
|
fontSizeLarge: string;
|
|
1128
1139
|
paddingSingle: string;
|
|
1129
1140
|
clearSize: string;
|
|
1141
|
+
arrowSize: string;
|
|
1130
1142
|
}, {
|
|
1131
1143
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
1132
1144
|
fontSize: string;
|
|
@@ -1372,6 +1384,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1372
1384
|
optionOpacityDisabled: string;
|
|
1373
1385
|
optionCheckColor: string;
|
|
1374
1386
|
optionColorPending: string;
|
|
1387
|
+
optionColorActive: string;
|
|
1375
1388
|
actionTextColor: string;
|
|
1376
1389
|
loadingColor: string;
|
|
1377
1390
|
height: string;
|
|
@@ -1454,6 +1467,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1454
1467
|
fontSizeLarge: string;
|
|
1455
1468
|
paddingSingle: string;
|
|
1456
1469
|
clearSize: string;
|
|
1470
|
+
arrowSize: string;
|
|
1457
1471
|
}, {
|
|
1458
1472
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
1459
1473
|
fontSize: string;
|
|
@@ -1677,6 +1691,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1677
1691
|
optionOpacityDisabled: string;
|
|
1678
1692
|
optionCheckColor: string;
|
|
1679
1693
|
optionColorPending: string;
|
|
1694
|
+
optionColorActive: string;
|
|
1680
1695
|
actionTextColor: string;
|
|
1681
1696
|
loadingColor: string;
|
|
1682
1697
|
height: string;
|
|
@@ -1759,6 +1774,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1759
1774
|
fontSizeLarge: string;
|
|
1760
1775
|
paddingSingle: string;
|
|
1761
1776
|
clearSize: string;
|
|
1777
|
+
arrowSize: string;
|
|
1762
1778
|
}, {
|
|
1763
1779
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
1764
1780
|
fontSize: string;
|
|
@@ -1845,6 +1861,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1845
1861
|
optionOpacityDisabled: string;
|
|
1846
1862
|
optionCheckColor: string;
|
|
1847
1863
|
optionColorPending: string;
|
|
1864
|
+
optionColorActive: string;
|
|
1848
1865
|
actionTextColor: string;
|
|
1849
1866
|
loadingColor: string;
|
|
1850
1867
|
height: string;
|
|
@@ -1927,6 +1944,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1927
1944
|
fontSizeLarge: string;
|
|
1928
1945
|
paddingSingle: string;
|
|
1929
1946
|
clearSize: string;
|
|
1947
|
+
arrowSize: string;
|
|
1930
1948
|
}, {
|
|
1931
1949
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
1932
1950
|
fontSize: string;
|
|
@@ -2013,6 +2031,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2013
2031
|
optionOpacityDisabled: string;
|
|
2014
2032
|
optionCheckColor: string;
|
|
2015
2033
|
optionColorPending: string;
|
|
2034
|
+
optionColorActive: string;
|
|
2016
2035
|
actionTextColor: string;
|
|
2017
2036
|
loadingColor: string;
|
|
2018
2037
|
height: string;
|
|
@@ -2095,6 +2114,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2095
2114
|
fontSizeLarge: string;
|
|
2096
2115
|
paddingSingle: string;
|
|
2097
2116
|
clearSize: string;
|
|
2117
|
+
arrowSize: string;
|
|
2098
2118
|
}, {
|
|
2099
2119
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
2100
2120
|
fontSize: string;
|
|
@@ -163,15 +163,16 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
163
163
|
}
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
|
-
function doUpdateValue(value) {
|
|
166
|
+
function doUpdateValue(value, option) {
|
|
167
167
|
const { onUpdateValue, 'onUpdate:value': _onUpdateValue, onChange } = props;
|
|
168
168
|
const { nTriggerFormInput, nTriggerFormChange } = formItem;
|
|
169
169
|
if (onUpdateValue)
|
|
170
|
-
(0, _utils_1.call)(onUpdateValue, value);
|
|
171
|
-
if (_onUpdateValue)
|
|
172
|
-
(0, _utils_1.call)(_onUpdateValue, value);
|
|
170
|
+
(0, _utils_1.call)(onUpdateValue, value, option);
|
|
171
|
+
if (_onUpdateValue) {
|
|
172
|
+
(0, _utils_1.call)(_onUpdateValue, value, option);
|
|
173
|
+
}
|
|
173
174
|
if (onChange)
|
|
174
|
-
(0, _utils_1.call)(onChange, value);
|
|
175
|
+
(0, _utils_1.call)(onChange, value, option);
|
|
175
176
|
uncontrolledValueRef.value = value;
|
|
176
177
|
nTriggerFormInput();
|
|
177
178
|
nTriggerFormChange();
|
|
@@ -184,22 +185,23 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
184
185
|
}
|
|
185
186
|
function doCheck(key) {
|
|
186
187
|
const { cascade, multiple, filterable } = props;
|
|
188
|
+
const { value: { check, getNode } } = treeMateRef;
|
|
187
189
|
if (multiple) {
|
|
188
190
|
try {
|
|
189
|
-
const { checkedKeys } =
|
|
191
|
+
const { checkedKeys } = check(key, mergedKeysRef.value.checkedKeys, {
|
|
190
192
|
cascade,
|
|
191
193
|
checkStrategy: mergedCheckStrategyRef.value
|
|
192
194
|
});
|
|
193
|
-
doUpdateValue(checkedKeys);
|
|
195
|
+
doUpdateValue(checkedKeys, checkedKeys.map((checkedKey) => { var _a; return ((_a = getNode(checkedKey)) === null || _a === void 0 ? void 0 : _a.rawNode) || null; }));
|
|
194
196
|
if (filterable)
|
|
195
197
|
focusSelectionInput();
|
|
196
198
|
}
|
|
197
199
|
catch (err) {
|
|
198
200
|
if (err instanceof treemate_1.SubtreeNotLoadedError) {
|
|
199
201
|
if (cascaderMenuInstRef.value) {
|
|
200
|
-
const
|
|
201
|
-
if (
|
|
202
|
-
cascaderMenuInstRef.value.showErrorMessage(
|
|
202
|
+
const tmNode = getNode(key);
|
|
203
|
+
if (tmNode !== null) {
|
|
204
|
+
cascaderMenuInstRef.value.showErrorMessage(tmNode.rawNode[props.labelField]);
|
|
203
205
|
}
|
|
204
206
|
}
|
|
205
207
|
}
|
|
@@ -210,16 +212,17 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
210
212
|
}
|
|
211
213
|
else {
|
|
212
214
|
if (mergedCheckStrategyRef.value === 'child') {
|
|
213
|
-
const
|
|
214
|
-
if (
|
|
215
|
-
doUpdateValue(key);
|
|
215
|
+
const tmNode = getNode(key);
|
|
216
|
+
if (tmNode === null || tmNode === void 0 ? void 0 : tmNode.isLeaf) {
|
|
217
|
+
doUpdateValue(key, tmNode.rawNode);
|
|
216
218
|
}
|
|
217
219
|
else {
|
|
218
220
|
return false;
|
|
219
221
|
}
|
|
220
222
|
}
|
|
221
223
|
else {
|
|
222
|
-
|
|
224
|
+
const tmNode = getNode(key);
|
|
225
|
+
doUpdateValue(key, (tmNode === null || tmNode === void 0 ? void 0 : tmNode.rawNode) || null);
|
|
223
226
|
}
|
|
224
227
|
}
|
|
225
228
|
return true;
|
|
@@ -227,11 +230,12 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
227
230
|
function doUncheck(key) {
|
|
228
231
|
const { cascade, multiple } = props;
|
|
229
232
|
if (multiple) {
|
|
230
|
-
const {
|
|
233
|
+
const { value: { uncheck, getNode } } = treeMateRef;
|
|
234
|
+
const { checkedKeys } = uncheck(key, mergedKeysRef.value.checkedKeys, {
|
|
231
235
|
cascade,
|
|
232
236
|
checkStrategy: mergedCheckStrategyRef.value
|
|
233
237
|
});
|
|
234
|
-
doUpdateValue(checkedKeys);
|
|
238
|
+
doUpdateValue(checkedKeys, checkedKeys.map((checkedKey) => { var _a; return ((_a = getNode(checkedKey)) === null || _a === void 0 ? void 0 : _a.rawNode) || null; }));
|
|
235
239
|
}
|
|
236
240
|
}
|
|
237
241
|
const selectedOptionsRef = (0, vue_1.computed)(() => {
|
|
@@ -523,7 +527,12 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
523
527
|
// --- search
|
|
524
528
|
function handleClear(e) {
|
|
525
529
|
e.stopPropagation();
|
|
526
|
-
|
|
530
|
+
if (props.multiple) {
|
|
531
|
+
doUpdateValue([], []);
|
|
532
|
+
}
|
|
533
|
+
else {
|
|
534
|
+
doUpdateValue(null, null);
|
|
535
|
+
}
|
|
527
536
|
}
|
|
528
537
|
function handleTriggerFocus(e) {
|
|
529
538
|
var _a;
|
|
@@ -588,7 +597,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
588
597
|
doUncheck(option[valueField]);
|
|
589
598
|
}
|
|
590
599
|
else {
|
|
591
|
-
doUpdateValue(null);
|
|
600
|
+
doUpdateValue(null, null);
|
|
592
601
|
}
|
|
593
602
|
}
|
|
594
603
|
function handleKeyDown(e) {
|
|
@@ -714,7 +723,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
714
723
|
(0, vue_1.h)(vueuc_1.VTarget, null, {
|
|
715
724
|
default: () => ((0, vue_1.h)(_internal_1.NInternalSelection, { ref: "triggerInstRef", 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, onKeyup: this.handleKeyUp }))
|
|
716
725
|
}),
|
|
717
|
-
(0, vue_1.h)(vueuc_1.VFollower, { key: "cascaderMenu", ref: "cascaderMenuFollowerRef", show: this.mergedShow && !this.showSelectMenu, containerClass: this.namespace, placement: "bottom-start", teleportDisabled: this.adjustedTo === _utils_1.useAdjustedTo.tdkey, to: this.adjustedTo }, {
|
|
726
|
+
(0, vue_1.h)(vueuc_1.VFollower, { key: "cascaderMenu", ref: "cascaderMenuFollowerRef", show: this.mergedShow && !this.showSelectMenu, containerClass: this.namespace, placement: "bottom-start", width: !this.options.length ? 'target' : undefined, teleportDisabled: this.adjustedTo === _utils_1.useAdjustedTo.tdkey, to: this.adjustedTo }, {
|
|
718
727
|
default: () => ((0, vue_1.h)(CascaderMenu_1.default, { ref: "cascaderMenuInstRef", value: this.mergedValue, show: this.mergedShow && !this.showSelectMenu, menuModel: this.menuModel, style: this.cssVars, onFocus: this.handleMenuFocus, onBlur: this.handleMenuBlur, onKeyup: this.handleMenuKeyUp, onMousedown: this.handleMenuMousedown, onTabout: this.handleMenuTabout }, this.$slots.action && {
|
|
719
728
|
action: this.$slots.action
|
|
720
729
|
}))
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const vue_1 = require("vue");
|
|
4
4
|
const vdirs_1 = require("vdirs");
|
|
5
|
+
const empty_1 = require("../../empty");
|
|
5
6
|
const _internal_1 = require("../../_internal");
|
|
6
7
|
const CascaderSubmenu_1 = require("./CascaderSubmenu");
|
|
7
8
|
const interface_1 = require("./interface");
|
|
@@ -101,23 +102,24 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
101
102
|
render() {
|
|
102
103
|
const { submenuInstRefs, mergedClsPrefix, $slots } = this;
|
|
103
104
|
return ((0, vue_1.h)(vue_1.Transition, { name: "fade-in-scale-up-transition", appear: this.isMounted }, {
|
|
104
|
-
default: () =>
|
|
105
|
-
|
|
105
|
+
default: () => {
|
|
106
|
+
if (!this.show)
|
|
107
|
+
return null;
|
|
108
|
+
return (0, vue_1.withDirectives)((0, vue_1.h)("div", { tabindex: "0", ref: "selfElRef", class: `${mergedClsPrefix}-cascader-menu`, onMousedown: this.onMousedown, onFocusin: this.handleFocusin, onFocusout: this.handleFocusout, onKeyup: this.onKeyup, style: {
|
|
106
109
|
'--col-count': this.menuModel.length
|
|
107
110
|
} },
|
|
108
|
-
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-cascader-submenu-wrapper` },
|
|
109
|
-
this.menuModel.map((submenuOptions, index) => {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}),
|
|
115
|
-
|
|
116
|
-
$slots.action ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-cascader-menu-action`, "data-action": true }, {
|
|
111
|
+
this.menuModel[0].length ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-cascader-submenu-wrapper` },
|
|
112
|
+
this.menuModel.map((submenuOptions, index) => ((0, vue_1.h)(CascaderSubmenu_1.default, { ref: ((instance) => {
|
|
113
|
+
if (instance) {
|
|
114
|
+
submenuInstRefs[index] = instance;
|
|
115
|
+
}
|
|
116
|
+
}), key: index, tmNodes: submenuOptions, depth: index + 1 }))),
|
|
117
|
+
(0, vue_1.h)(_internal_1.NBaseMenuMask, { clsPrefix: mergedClsPrefix, ref: "maskInstRef" }))) : ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-cascader-menu__empty` }, (0, vue_1.renderSlot)($slots, 'empty', undefined, () => [(0, vue_1.h)(empty_1.NEmpty, null)]))),
|
|
118
|
+
$slots.action && ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-cascader-menu-action`, "data-action": true }, {
|
|
117
119
|
default: $slots.action
|
|
118
|
-
}))
|
|
119
|
-
(0, vue_1.h)(focus_detector_1.default, { onFocus: this.onTabout })), [[vdirs_1.clickoutside, this.handleClickOutside]])
|
|
120
|
-
|
|
120
|
+
})),
|
|
121
|
+
(0, vue_1.h)(focus_detector_1.default, { onFocus: this.onTabout })), [[vdirs_1.clickoutside, this.handleClickOutside]]);
|
|
122
|
+
}
|
|
121
123
|
}));
|
|
122
124
|
}
|
|
123
125
|
});
|
|
@@ -157,6 +157,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
157
157
|
optionOpacityDisabled: string;
|
|
158
158
|
optionCheckColor: string;
|
|
159
159
|
optionColorPending: string;
|
|
160
|
+
optionColorActive: string;
|
|
160
161
|
actionTextColor: string;
|
|
161
162
|
loadingColor: string;
|
|
162
163
|
height: string;
|
|
@@ -239,6 +240,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
239
240
|
fontSizeLarge: string;
|
|
240
241
|
paddingSingle: string;
|
|
241
242
|
clearSize: string;
|
|
243
|
+
arrowSize: string;
|
|
242
244
|
}, {
|
|
243
245
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
244
246
|
fontSize: string;
|
|
@@ -164,6 +164,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
164
164
|
optionOpacityDisabled: string;
|
|
165
165
|
optionCheckColor: string;
|
|
166
166
|
optionColorPending: string;
|
|
167
|
+
optionColorActive: string;
|
|
167
168
|
actionTextColor: string;
|
|
168
169
|
loadingColor: string;
|
|
169
170
|
height: string;
|
|
@@ -246,6 +247,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
246
247
|
fontSizeLarge: string;
|
|
247
248
|
paddingSingle: string;
|
|
248
249
|
clearSize: string;
|
|
250
|
+
arrowSize: string;
|
|
249
251
|
}, {
|
|
250
252
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
251
253
|
fontSize: string;
|
|
@@ -150,6 +150,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
150
150
|
optionOpacityDisabled: string;
|
|
151
151
|
optionCheckColor: string;
|
|
152
152
|
optionColorPending: string;
|
|
153
|
+
optionColorActive: string;
|
|
153
154
|
actionTextColor: string;
|
|
154
155
|
loadingColor: string;
|
|
155
156
|
height: string;
|
|
@@ -232,6 +233,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
232
233
|
fontSizeLarge: string;
|
|
233
234
|
paddingSingle: string;
|
|
234
235
|
clearSize: string;
|
|
236
|
+
arrowSize: string;
|
|
235
237
|
}, {
|
|
236
238
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
237
239
|
fontSize: string;
|
|
@@ -17,8 +17,8 @@ export declare type ExpandTrigger = 'hover' | 'click';
|
|
|
17
17
|
export declare type TmNode = TreeNode<CascaderOption>;
|
|
18
18
|
export declare type Filter = (pattern: string, option: CascaderOption, path: CascaderOption[]) => boolean;
|
|
19
19
|
export declare type OnLoad = (option: CascaderOption) => Promise<void>;
|
|
20
|
-
export declare type OnUpdateValue =
|
|
21
|
-
export declare type OnUpdateValueImpl = (value: Value | null) => void;
|
|
20
|
+
export declare type OnUpdateValue = (value: string & number & string[] & number[] & Array<string | number> & (string | null) & (number | null) & (string[] | null) & (number[] | null) & (Array<string | number> | null), option: CascaderOption & null & CascaderOption[] & Array<CascaderOption | null>) => void;
|
|
21
|
+
export declare type OnUpdateValueImpl = (value: Value | null, option: CascaderOption | null | Array<CascaderOption | null>) => void;
|
|
22
22
|
export declare type MenuModel = TmNode[][];
|
|
23
23
|
export interface CascaderInjection {
|
|
24
24
|
mergedClsPrefixRef: Ref<string>;
|
|
@@ -38,7 +38,12 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('cascader-menu', `
|
|
|
38
38
|
`, [(0, fade_in_scale_up_cssr_1.default)({
|
|
39
39
|
transformOrigin: 'inherit',
|
|
40
40
|
duration: '0.2s'
|
|
41
|
-
}), (0, cssr_1.
|
|
41
|
+
}), (0, cssr_1.cE)('empty', `
|
|
42
|
+
display: flex;
|
|
43
|
+
padding: 12px 32px;
|
|
44
|
+
flex: 1;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
`), (0, cssr_1.cB)('scrollbar', {
|
|
42
47
|
// if width not set, cascader select menu's inner scroll area's width is
|
|
43
48
|
// not correct, which won't change after select menu width is set
|
|
44
49
|
width: '100%'
|
|
@@ -54,6 +54,7 @@ declare const cascaderLight: import("../../_mixins").Theme<"Cascader", {
|
|
|
54
54
|
optionOpacityDisabled: string;
|
|
55
55
|
optionCheckColor: string;
|
|
56
56
|
optionColorPending: string;
|
|
57
|
+
optionColorActive: string;
|
|
57
58
|
actionTextColor: string;
|
|
58
59
|
loadingColor: string;
|
|
59
60
|
height: string;
|
|
@@ -136,6 +137,7 @@ declare const cascaderLight: import("../../_mixins").Theme<"Cascader", {
|
|
|
136
137
|
fontSizeLarge: string;
|
|
137
138
|
paddingSingle: string;
|
|
138
139
|
clearSize: string;
|
|
140
|
+
arrowSize: string;
|
|
139
141
|
}, {
|
|
140
142
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
141
143
|
fontSize: string;
|
|
@@ -9,13 +9,13 @@ function useThemeVars() {
|
|
|
9
9
|
const configProviderInjection = (0, vue_1.inject)(ConfigProvider_1.configProviderInjectionKey, null);
|
|
10
10
|
if (configProviderInjection === null)
|
|
11
11
|
return common_1.commonLight;
|
|
12
|
-
const { mergedThemeRef: { value: mergedTheme } } = configProviderInjection;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return
|
|
12
|
+
const { mergedThemeRef: { value: mergedTheme }, mergedThemeOverridesRef: { value: mergedThemeOverrides } } = configProviderInjection;
|
|
13
|
+
const currentThemeVars = (mergedTheme === null || mergedTheme === void 0 ? void 0 : mergedTheme.common) || common_1.commonLight;
|
|
14
|
+
if (mergedThemeOverrides === null || mergedThemeOverrides === void 0 ? void 0 : mergedThemeOverrides.common) {
|
|
15
|
+
return Object.assign({}, currentThemeVars, mergedThemeOverrides.common);
|
|
16
16
|
}
|
|
17
17
|
else {
|
|
18
|
-
return
|
|
18
|
+
return currentThemeVars;
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
}
|
|
@@ -84,6 +84,7 @@ import { Size as ButtonSize } from '../../button/src/interface';
|
|
|
84
84
|
import { DataTableRenderFilter, DataTableRenderSorter } from '../../data-table';
|
|
85
85
|
import { IconPlacement } from '../../dialog/src/interface';
|
|
86
86
|
import type { GlobalTheme, GlobalThemeOverrides } from './interface';
|
|
87
|
+
import type { EmptyProps } from '../../empty';
|
|
87
88
|
export interface GlobalThemeWithoutCommon {
|
|
88
89
|
Alert?: AlertTheme;
|
|
89
90
|
Anchor?: AnchorTheme;
|
|
@@ -179,6 +180,7 @@ export interface GlobalComponentConfig {
|
|
|
179
180
|
DynamicInput?: {
|
|
180
181
|
buttonSize?: ButtonSize;
|
|
181
182
|
};
|
|
183
|
+
Empty?: Pick<EmptyProps, 'description' | 'renderIcon'>;
|
|
182
184
|
}
|
|
183
185
|
export interface GlobalIconConfig {
|
|
184
186
|
attach?: () => VNodeChild;
|